(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["home","help~personal","search~vulnerability"],{"0079":function(t,e,n){},"00c0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=new Map;function r(t,e){i.set(t,e)}function o(t){return i.get(t)}e.register=r,e.getMethod=o},"01f9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("bd8b");e.default=function(t){return Array.isArray?Array.isArray(t):i.default(t,"Array")}},"0326":function(t,e,n){t.exports=n.p+"assets/img/scenario-map-1-green.ca6fb5d8.png"},"0481f":function(t,e,n){"use strict";var i=n("23e7"),r=n("a2bf"),o=n("7b0b"),a=n("07fa"),s=n("5926"),l=n("65f0");i({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=a(e),i=l(e,0);return i.length=r(i,e,e,n,0,void 0===t?1:s(t)),i}})},"050e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("9ab4"),r=n("dc1b");e.Attribute=r.default;var o={},a=function(t){return o[t.toLowerCase()]};e.getAttribute=a;var s=function(t,e){if(a(t))throw new Error("Attribute type '"+t+"' existed.");o[t.toLowerCase()]=e};e.registerAttribute=s,i.__exportStar(n("f813"),e)},"0573":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("99af"),n("c975"),n("ac1f"),n("5319"),n("1276");var i=function(t){var e=String(t),n=e.split("."),i=n[0],r=n.length>1?".".concat(n[1]):"",o=/(\d+)(\d{3})/;while(o.test(i))i=i.replace(o,"$1,$2");return i+r}},"0611":function(t,e,n){"use strict";var i=n("2129"),r=n.n(i);r.a},"061e":function(t,e,n){"use strict";var i=n("bf85"),r=n.n(i);r.a},"0645":function(t,e,n){"use strict";var i=n("9066"),r=n.n(i);r.a},"06ef":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return"object"===typeof t&&null!==t};e.default=i},"09e7":function(t,e,n){"use strict";n.d(e,"e",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"f",(function(){return o}));n("caad"),n("4d63"),n("ac1f"),n("25f0"),n("2532"),n("1276"),n("498a");var i=function(t){var e=/^(?=^.{3,255}$)((http:\/\/)|(https:\/\/))?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/,n=/^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?$/,i=t.split(".");return i.length<=2?e.test(t):n.test(t)},r=function t(e){var n=/^(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2]\d|3[0-2]))?$/,i=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,r=!1,o=[],a="";return e.includes("ip")?(o=e.split("ip:"),o=e.includes("ip=")?e.split("ip="):e.split("ip:"),2===o.length&&(a=o[1].trim(),a.includes('"')&&t(a.substr(1,a.length-2))&&(a=a.substr(1,a.length-2)),r=n.test(a)||i.test(a))):(a=e.trim(),a.includes('"')&&t(a.substr(1,a.length-2))&&(a=a.substr(1,a.length-2)),a=a.trim(),r=n.test(a)||i.test(a)),r},o=function(t){var e=/^(?:[A-F0-9]{1,4}:){7}(?:[A-F0-9]{1,4}|:)|(?:[A-F0-9]{1,4}:){6}(?:[A-F0-9]{1,4}:[A-F0-9]{1,4}|:[A-F0-9]{1,4}|:)|(?:[A-F0-9]{1,4}:){5}(?::[A-F0-9]{1,4}:{1,2}[A-F0-9]{1,4}|:[A-F0-9]{1,4}|:|::[A-F0-9]{1,4}|:)|(?:[A-F0-9]{1,4}:){4}(?:(?:[A-F0-9]{1,4}:){0,2}[A-F0-9]{1,4}|:[A-F0-9]{1,4}|:|::(?:[A-F0-9]{1,4}:)?[A-F0-9]{1,4}|:)|(?:[A-F0-9]{1,4}:){3}(?:(?:[A-F0-9]{1,4}:){0,3}[A-F0-9]{1,4}|:[A-F0-9]{1,4}|:|::(?:[A-F0-9]{1,4}:){0,2}[A-F0-9]{1,4}|:)|(?:[A-F0-9]{1,4}:){2}(?:(?:[A-F0-9]{1,4}:){0,4}[A-F0-9]{1,4}|:[A-F0-9]{1,4}|:|::(?:[A-F0-9]{1,4}:){0,3}[A-F0-9]{1,4}|:)|(?:[A-F0-9]{1,4}:){1}(?:(?:[A-F0-9]{1,4}:){0,5}[A-F0-9]{1,4}|:[A-F0-9]{1,4}|:|::(?:[A-F0-9]{1,4}:){0,4}[A-F0-9]{1,4}|:)|:(?:(?:[A-F0-9]{1,4}:){0,6}[A-F0-9]{1,4}|:[A-F0-9]{1,4}|:|::(?:[A-F0-9]{1,4}:){0,5}[A-F0-9]{1,4}|:)(?:\/\d{1,3})?$/i;return e.test(t)},a=function(t){var e=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,n=new RegExp(e);return n.test(t)},s=function(t){return/^[1-9]\d*$/.test(t)&&1*t>=1&&1*t<=65535},l=function(t){var e=/^(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2]\d|3[0-2]))?$/,n=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i=!1,o=[],a="";return t.includes("ip")?(o=t.includes("ip=")?t.split("ip="):t.split("ip:"),2===o.length&&(a=o[1].trim(),a.includes('"')&&r(a.substr(1,a.length-2))&&(a=a.substr(1,a.length-2)),i=e.test(a)||n.test(a))):(a=t.trim(),a.includes('"')&&r(a.substr(1,a.length-2))&&(a=a.substr(1,a.length-2)),a=a.trim(),i=e.test(a)||n.test(a)),{isIp:i,ip:a}}},"0acc":function(t,e,n){},"0b25":function(t,e,n){var i=n("5926"),r=n("50c4"),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw o("Wrong length or index");return n}},"0bd8":function(t,e,n){},"0c01":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABgCAYAAAANWhwGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTk5MUE0OTZCRjM5MTFFQTgxNTk5MjMyMTQyOTk1NDQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTk5MUE0OTdCRjM5MTFFQTgxNTk5MjMyMTQyOTk1NDQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1OTkxQTQ5NEJGMzkxMUVBODE1OTkyMzIxNDI5OTU0NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1OTkxQTQ5NUJGMzkxMUVBODE1OTkyMzIxNDI5OTU0NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhqH2/MAAAr+SURBVHja7J1XbxRBEsfbw5JzzjlHkTMimYwQSSB44GvcB7jHk3jiDekQIgp4IIgTIBCcyFEiiYzJOefMza/lWi2+Zb2e6Z4Z925JjbF3vTNT/0pdVV0u+f37tyqnUn/9018j/FVDFckmffDXdn/9w1+PSspBWOivLUXmR073/TUUEEr8/5T5q3Nlv/Hz50/169evIuvyoJo1a+b71n95/j9d8wGgSNZoUsr/p36hPXVJSYnyPE8voe/fv8d1O3VShcb8VCql8INv375Vz58/Vw8ePNCmY8SIEapGjRoqI1CJjFKFxHyk/cqVK+rcuXPqxo0b6tmzZ+r9+/eqZ8+eaujQoWmAiiCYfsByxl69elUdOHBAXb58WX369EmbIiSf11mx3qPrEcrLly/V3r171fHjx7XU87PatWv/oSW1atX6wz8UQTBofm7duqU2bNigbt++rb/PZL4QIXfDhg01OHGYImdBgOEXL15U69atU0+fPlV16tTJCVjLli21aYorQkq5aIKuXbum1q5dq01RLgCQfN7fpUuXWO/Zcw2AJ0+eqI0bN6oXL15oW5+Lfvz4oVq1aqW6du0aaybAGRBwrF+/flXbt29Xd+/ezWr/s/mD/v37qyZNmhRBMEHY9DNnzug9QD55G/JgOORhw4ZpvxCXU3YGBAB48+aN2rdvnzYx+YSbOOEhQ4ao7t27698p+gQDpujEiRPaDOWjBQDQpk0bNWvWrNhSFU6BABPZhJ09e1ablXz8ACHs3LlzVdu2beNM3LkDAlpw79499fDhQw1ILkLiYfrEiRPV6NGjtV9IxDO4YI7YGX/+/DknCABA9DRq1Ci1cOFC/d6kFKiqNQiYH5wq6ehcdh1mowEjR45Uy5cvV3Xr1k2MFlT7HTOm6OPHj3pn/LeICOYD1qRJk9SiRYtUgwYNEuEHnAEB5mJiPnz48H9OGUlHS5o3b66mT5+upkyZkq4pJI1SSWKo2O6qEKYGIMS88D2fxUZs8ODBaurUqapTp05pUORasjJ9hqyCACFbjVcYWPFnlXV4IN2SBYXxSD4JuQEDBqjOnTvrz4P5XFP2EOKkWfxfagqkOuT6/JxrRwEKLS8D/a8X8nlz2JYXGMVD8hnv3r3TyTZCS9LNmBQ+H0Y1a9ZMdezYUbVv3161aNEinYjLdn2YxD6B13hfvXr10u8XBkN8PtcrKytTd+7c0TtsuSb3xe81atRIJ/S6deumr819SGWuqoBUoeXlYiSaIKVEGE+amRIjYSWFdpHGTKbCON7fuHFj1aFDB10D7tOnj2YMzIKQbnlv06ZNs+Z/KObDcK5JTfnRo0c6lJXfk1XRFMF4PpPsat++fVW/fv1U69at9es2UhxWNUEqXDz4qVOn1JEjR/TGCsYDDK/9bZfLA3Mtrik2HkAGDRqkTQ1MkdpwpsR/+fJFX+P8+fO6qI/0c30BNp+8Uua1+R2uNXz4cL3JQztEAExpgjUQRPqR+B07dqhLly6liyj5pBf+xhSI1HOPHj1U7969tdki7ETquRaMJ4dE6Cr3EKZ+LKaIhYOfM2eObo8RfiQWBEmKHTx4UO3evVu9fv1a2+mqMj8XIEij2HKqZ3RQsMSc2Cjcf/v2TT8H4e68efP0df9mnmIFAcZgbnbt2qVTyzDNVktJpi2XiMs2iQCMHTtW774RgmxAxOaYAYAb2rp1qzp06JD+vrKkWthQ14R2VTXIgMFHjx7VgKxYsUKHtmHSIJ7Jm0MiMT8CQJy9PLb3OZglahhovOxDYgcBpiMde/bscRqAig6bIIDoK8zzGjFHqCeZTKSC3EwV7GG1JAkKZsyYoWbOnKmjszDmKGXCDOGId+7cqRtsc/X5uAIAz0hGdvLkyemfxZo7QiIoLbI5qqzPxwUAkPply5alK3MmCkNeWC3AHh4+fFjH0C77AZiNmV28eLEGAEBMVea8sFpw/fp1veJuL4/CCWP/J0yYkFfaIhIQCMm4MVrOJRfkKhFskK+iOIT0m05ve2G04PHjx85rAUxnVwwAfLVRmw6lCeTmSU+7rgWks0kW2moO8IICgISQq5dUs6u+AGc8ZswY/dVWi0xgEIiKKJK4TAhYu3btdFHJZo9SIBAwP5QUX716ZTVBlwQQaBim7Jk4ENAEQMjWauKSKULA6FeV7xMFAkShXBqrXCX8AI0GtikwCNKp4PIGTbo3EgsCjlkarVw2R1FkhAODYHrrnkTK1qCWKBBsbN+TGB1FcZQqVNrCZafMsxF40MeUWBCC9A9VNxBIz9PPlFgQiBqScOjOJgiYIjr4EgsCbYku75aFyI/ZLlgF/mS28nFORomCSNHTTUGOzKbABQIBxtevX18vl0FA+vEJ1NATZ45gPAVv24mtpGgD4xroJLFVvAoEAoyn7YMTMq7vFTBDHGI5duyYtbZLL4yEkGF0OUyVKAmzRGunrVJuYHMEcWiDJJfrJgltwDds2bJF11BM55MCawJAUHUiVC2E0c0IG4dQNm3apDPIJiPDwCCQV+GkJCckXU5pV8wS4KTXr1+vi1qmOg5DaQL2ceDAgem2eNdJjuGePHlSrVmzRo94M5G+CbUNhPG0gnCYrlC0QYBgwtiqVavUhQsX0gdHYgFBTBKH+ApppD9AcDqHU6KrV6/WfuL+/fuBNSK0JiABtAjGNWc6bh9BhXH//v1q5cqV+rx0kBA2dFYKDejVq5cuiBeKSaoYvkpyj8PvkWuCgMDOmdGWcQ/0i4sQPk79s3kNIoihQZDjq0zUKpQ9Q8Xnxz8wWTJofcVIkhwNYA4E2pDEeUI2iWcnc0CUGFQAPVPSgEPiBAuJvULRBpF6GoaxAkF9orFyETeAJiARhaINogVMGQ4TGRoDAelnGz9t2jRd7HFdG8QXogWM5QkTlBgtnKINzCVi7Jnr2sDzMX+JCZNh90dGQZDpu0xBYRyOqyGrtEhymJyMQdjn9GxICD39mCVXu/R4RrQdLTCxQbXSxwHz0QbSGa6ZJaQeH8Cwc1NHqKyAgHQwhZeh4DQDuGKWRKs5yWly5L9nU2IIV2fPnv3HA1Rn4rw2fxSPmRYmx3V6NqUGVeWGsZ10sVV3P0A5d/78+TpNYTIEt9p8L7NKFyxYoNMaSFJ1JDGvzLUgLDXt57woJIiBr8yLowJX3Ry1RHiYVXbGNvybF5UqcxZ46dKlWqJMPkjmMELTs65l6CDzUEtLS62NbY5sKAUPQ7ob30A5kMMXQeqymTNSZdOUeWBFZphqCSufixqk7CgAMNVlyZIl+l5tFa0iA0FGHPNQ+InNmzdXaV6qMFfGMmObcZQUlMhg8jm8zlBauiAYfkLdl7+tAPAyKzWfa6G5vJdQFH+GI7YZZkc6nkWAQCNIa2zbtk3dvHkzPc654ij9zDHNJAVx7hRPpMMj16g3GMlZa/74qfz9Zbro+MzMkmTmjG05DEmplknA48ePT0+dt0mRTo1PX7Sc6WgC87NPnz6tT8QgsTK+n9fp/JbZEqTJaTRDKgWgXD4g888DwESm0zPCmWI8/2c6DUDJMWA0Ca1ilz9u3Didog7zvImYlZ0PiUQCBocxZLwlEs7fQcPkkCCTA91Bry+gy4YLDcFkMbWe6wEA9WEWGiqHBsOQNRBsnV3ONUdVHLCx3Wm5dmTzDQBsKulobUxzHBO+ojwXF9Xh8Vj2CUWqHISPRTbESp8Aocxft4u8iI0OlJQ7IfLNOzHBRZ5ESjf9NUp8wn/8Veqv//rrS5E31umFv/7tr/H+evU/AQYAjO2+uz3JZgoAAAAASUVORK5CYII="},"0ca5":function(t,e,n){"use strict";n.r(e),n.d(e,"DRACOLoader",(function(){return o}));var i=n("5a89");const r=new WeakMap;class o extends i["Loader"]{constructor(t){super(t),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(t){return this.decoderPath=t,this}setDecoderConfig(t){return this.decoderConfig=t,this}setWorkerLimit(t){return this.workerLimit=t,this}load(t,e,n,r){const o=new i["FileLoader"](this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,t=>{const n={attributeIDs:this.defaultAttributeIDs,attributeTypes:this.defaultAttributeTypes,useUniqueIDs:!1};this.decodeGeometry(t,n).then(e).catch(r)},n,r)}decodeDracoFile(t,e,n,i){const r={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:i||this.defaultAttributeTypes,useUniqueIDs:!!n};this.decodeGeometry(t,r).then(e)}decodeGeometry(t,e){for(const r in e.attributeTypes){const t=e.attributeTypes[r];void 0!==t.BYTES_PER_ELEMENT&&(e.attributeTypes[r]=t.name)}const n=JSON.stringify(e);if(r.has(t)){const e=r.get(t);if(e.key===n)return e.promise;if(0===t.byteLength)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let i;const o=this.workerNextTaskID++,a=t.byteLength,s=this._getWorker(o,a).then(n=>{return i=n,new Promise((n,r)=>{i._callbacks[o]={resolve:n,reject:r},i.postMessage({type:"decode",id:o,taskConfig:e,buffer:t},[t])})}).then(t=>this._createGeometry(t.geometry));return s.catch(()=>!0).then(()=>{i&&o&&this._releaseTask(i,o)}),r.set(t,{key:n,promise:s}),s}_createGeometry(t){const e=new i["BufferGeometry"];t.index&&e.setIndex(new i["BufferAttribute"](t.index.array,1));for(let n=0;n<t.attributes.length;n++){const r=t.attributes[n],o=r.name,a=r.array,s=r.itemSize;e.setAttribute(o,new i["BufferAttribute"](a,s))}return e}_loadLibrary(t,e){const n=new i["FileLoader"](this.manager);return n.setPath(this.decoderPath),n.setResponseType(e),n.setWithCredentials(this.withCredentials),new Promise((e,i)=>{n.load(t,e,void 0,i)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const t="object"!==typeof WebAssembly||"js"===this.decoderConfig.type,e=[];return t?e.push(this._loadLibrary("draco_decoder.js","text")):(e.push(this._loadLibrary("draco_wasm_wrapper.js","text")),e.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(e).then(e=>{const n=e[0];t||(this.decoderConfig.wasmBinary=e[1]);const i=a.toString(),r=["/* draco decoder */",n,"","/* worker */",i.substring(i.indexOf("{")+1,i.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([r]))}),this.decoderPending}_getWorker(t,e){return this._initDecoder().then(()=>{if(this.workerPool.length<this.workerLimit){const t=new Worker(this.workerSourceURL);t._callbacks={},t._taskCosts={},t._taskLoad=0,t.postMessage({type:"init",decoderConfig:this.decoderConfig}),t.onmessage=function(e){const n=e.data;switch(n.type){case"decode":t._callbacks[n.id].resolve(n);break;case"error":t._callbacks[n.id].reject(n);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+n.type+'"')}},this.workerPool.push(t)}else this.workerPool.sort((function(t,e){return t._taskLoad>e._taskLoad?-1:1}));const n=this.workerPool[this.workerPool.length-1];return n._taskCosts[t]=e,n._taskLoad+=e,n})}_releaseTask(t,e){t._taskLoad-=t._taskCosts[e],delete t._callbacks[e],delete t._taskCosts[e]}debug(){console.log("Task load: ",this.workerPool.map(t=>t._taskLoad))}dispose(){for(let t=0;t<this.workerPool.length;++t)this.workerPool[t].terminate();return this.workerPool.length=0,this}}function a(){let t,e;function n(t,e,n,o){const a=o.attributeIDs,s=o.attributeTypes;let l,c;const u=e.GetEncodedGeometryType(n);if(u===t.TRIANGULAR_MESH)l=new t.Mesh,c=e.DecodeBufferToMesh(n,l);else{if(u!==t.POINT_CLOUD)throw new Error("THREE.DRACOLoader: Unexpected geometry type.");l=new t.PointCloud,c=e.DecodeBufferToPointCloud(n,l)}if(!c.ok()||0===l.ptr)throw new Error("THREE.DRACOLoader: Decoding failed: "+c.error_msg());const h={index:null,attributes:[]};for(const i in a){const n=self[s[i]];let c,u;if(o.useUniqueIDs)u=a[i],c=e.GetAttributeByUniqueId(l,u);else{if(u=e.GetAttributeId(l,t[a[i]]),-1===u)continue;c=e.GetAttribute(l,u)}h.attributes.push(r(t,e,l,i,n,c))}return u===t.TRIANGULAR_MESH&&(h.index=i(t,e,l)),t.destroy(l),h}function i(t,e,n){const i=n.num_faces(),r=3*i,o=4*r,a=t._malloc(o);e.GetTrianglesUInt32Array(n,o,a);const s=new Uint32Array(t.HEAPF32.buffer,a,r).slice();return t._free(a),{array:s,itemSize:1}}function r(t,e,n,i,r,a){const s=a.num_components(),l=n.num_points(),c=l*s,u=c*r.BYTES_PER_ELEMENT,h=o(t,r),d=t._malloc(u);e.GetAttributeDataArrayForAllPoints(n,a,h,u,d);const p=new r(t.HEAPF32.buffer,d,c).slice();return t._free(d),{name:i,array:p,itemSize:s}}function o(t,e){switch(e){case Float32Array:return t.DT_FLOAT32;case Int8Array:return t.DT_INT8;case Int16Array:return t.DT_INT16;case Int32Array:return t.DT_INT32;case Uint8Array:return t.DT_UINT8;case Uint16Array:return t.DT_UINT16;case Uint32Array:return t.DT_UINT32}}onmessage=function(i){const r=i.data;switch(r.type){case"init":t=r.decoderConfig,e=new Promise((function(e){t.onModuleLoaded=function(t){e({draco:t})},DracoDecoderModule(t)}));break;case"decode":const i=r.buffer,o=r.taskConfig;e.then(t=>{const e=t.draco,a=new e.Decoder,s=new e.DecoderBuffer;s.Init(new Int8Array(i),i.byteLength);try{const t=n(e,a,s,o),i=t.attributes.map(t=>t.array.buffer);t.index&&i.push(t.index.array.buffer),self.postMessage({type:"decode",id:r.id,geometry:t},i)}catch(l){console.error(l),self.postMessage({type:"error",id:r.id,error:l.message})}finally{e.destroy(s),e.destroy(a)}});break}}}},"0ccb":function(t,e,n){var i=n("e330"),r=n("50c4"),o=n("577e"),a=n("1148"),s=n("1d80"),l=i(a),c=i("".slice),u=Math.ceil,h=function(t){return function(e,n,i){var a,h,d=o(s(e)),p=r(n),f=d.length,g=void 0===i?" ":o(i);return p<=f||""==g?d:(a=p-f,h=l(g,u(a/g.length)),h.length>a&&(h=c(h,0,a)),t?d+h:h+d)}};t.exports={start:h(!1),end:h(!0)}},"0cda":function(t,e,n){"use strict";var i=n("521b"),r=n.n(i);r.a},"0cef":function(t,e,n){"use strict";n.d(e,"p",(function(){return m})),n.d(e,"G",(function(){return v})),n.d(e,"d",(function(){return y})),n.d(e,"I",(function(){return b})),n.d(e,"J",(function(){return x})),n.d(e,"m",(function(){return w})),n.d(e,"i",(function(){return _})),n.d(e,"r",(function(){return C})),n.d(e,"s",(function(){return A})),n.d(e,"K",(function(){return I})),n.d(e,"u",(function(){return S})),n.d(e,"k",(function(){return M})),n.d(e,"H",(function(){return k})),n.d(e,"N",(function(){return E})),n.d(e,"n",(function(){return T})),n.d(e,"o",(function(){return O})),n.d(e,"F",(function(){return P})),n.d(e,"c",(function(){return L})),n.d(e,"h",(function(){return D})),n.d(e,"t",(function(){return R})),n.d(e,"w",(function(){return B})),n.d(e,"C",(function(){return N})),n.d(e,"D",(function(){return F})),n.d(e,"z",(function(){return z})),n.d(e,"A",(function(){return V})),n.d(e,"E",(function(){return H})),n.d(e,"v",(function(){return W})),n.d(e,"x",(function(){return U})),n.d(e,"y",(function(){return Z})),n.d(e,"B",(function(){return Y})),n.d(e,"l",(function(){return X})),n.d(e,"O",(function(){return q})),n.d(e,"P",(function(){return K})),n.d(e,"Q",(function(){return Q})),n.d(e,"S",(function(){return J})),n.d(e,"M",(function(){return $})),n.d(e,"b",(function(){return tt})),n.d(e,"T",(function(){return et})),n.d(e,"R",(function(){return it})),n.d(e,"f",(function(){return ct})),n.d(e,"e",(function(){return ut})),n.d(e,"g",(function(){return ht})),n.d(e,"j",(function(){return dt})),n.d(e,"q",(function(){return pt})),n.d(e,"L",(function(){return ft})),n.d(e,"a",(function(){return gt}));var i=n("938d"),r=E(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=E(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,h=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!==typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!rt(t)){e=[];for(var i=0,s=t.length;i<s;i++)e[i]=y(t[i])}}else if(o[n]){if(!rt(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(i=0,s=t.length;i<s;i++)e[i]=t[i]}}}else if(!r[n]&&!rt(t)&&!W(t))for(var c in e={},t)t.hasOwnProperty(c)&&c!==f&&(e[c]=y(t[c]));return e}function b(t,e,n){if(!V(e)||!V(t))return n?y(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==f){var r=t[i],o=e[i];!V(o)||!V(r)||R(o)||R(r)||W(o)||W(r)||G(o)||G(r)||rt(o)||rt(r)?!n&&i in t||(t[i]=y(e[i])):b(r,o,n)}return t}function x(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=b(n,t[i],e);return n}function w(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==f&&(t[n]=e[n]);return t}function _(t,e,n){for(var i=P(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}i["d"].createCanvas;function C(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function A(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function I(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else _(t,e,n)}function S(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function M(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function k(t,e,n){if(!t)return[];if(!e)return J(t);if(t.map&&t.map===h)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function E(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function T(t,e,n){if(!t)return[];if(!e)return J(t);if(t.filter&&t.filter===c)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function O(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function P(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function j(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(u.call(arguments)))}}var L=p&&B(p.bind)?p.call.bind(p.bind):j;function D(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(u.call(arguments)))}}function R(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function B(t){return"function"===typeof t}function N(t){return"string"===typeof t}function F(t){return"[object String]"===a.call(t)}function z(t){return"number"===typeof t}function V(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function G(t){return!!r[a.call(t)]}function H(t){return!!o[a.call(t)]}function W(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function U(t){return null!=t.colorStops}function Z(t){return null!=t.image}function Y(t){return"[object RegExp]"===a.call(t)}function X(t){return t!==t}function q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function K(t,e){return null!=t?t:e}function Q(t,e,n){return null!=t?t:null!=e?e:n}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return u.apply(t,e)}function $(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tt(t,e){if(!t)throw new Error(e)}function et(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var nt="__ec_primitive__";function it(t){t[nt]=!0}function rt(t){return t[nt]}var ot=function(){function t(){this.data={}}return t.prototype["delete"]=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return P(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),at="function"===typeof Map;function st(){return at?new Map:new ot}var lt=function(){function t(e){var n=R(e);this.data=st();var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&M(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return at?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}();function ct(t){return new lt(t)}function ut(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function ht(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&w(n,e),n}function dt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function pt(t,e){return t.hasOwnProperty(e)}function ft(){}var gt=180/Math.PI},"0d55":function(t,e,n){"use strict";var i=n("9648"),r=n.n(i);r.a},"0dc0":function(t,e,n){"use strict";n.r(e),n.d(e,"OBJExporter",(function(){return r}));var i=n("5a89");class r{parse(t){let e="",n=0,r=0,o=0;const a=new i["Vector3"],s=new i["Color"],l=new i["Vector3"],c=new i["Vector2"],u=[];function h(t){let s=0,h=0,d=0;const p=t.geometry,f=new i["Matrix3"];if(!0!==p.isBufferGeometry)throw new Error("THREE.OBJExporter: Geometry is not of type THREE.BufferGeometry.");const g=p.getAttribute("position"),m=p.getAttribute("normal"),v=p.getAttribute("uv"),y=p.getIndex();if(e+="o "+t.name+"\n",t.material&&t.material.name&&(e+="usemtl "+t.material.name+"\n"),void 0!==g)for(let n=0,i=g.count;n<i;n++,s++)a.x=g.getX(n),a.y=g.getY(n),a.z=g.getZ(n),a.applyMatrix4(t.matrixWorld),e+="v "+a.x+" "+a.y+" "+a.z+"\n";if(void 0!==v)for(let n=0,i=v.count;n<i;n++,d++)c.x=v.getX(n),c.y=v.getY(n),e+="vt "+c.x+" "+c.y+"\n";if(void 0!==m){f.getNormalMatrix(t.matrixWorld);for(let t=0,n=m.count;t<n;t++,h++)l.x=m.getX(t),l.y=m.getY(t),l.z=m.getZ(t),l.applyMatrix3(f).normalize(),e+="vn "+l.x+" "+l.y+" "+l.z+"\n"}if(null!==y)for(let i=0,a=y.count;i<a;i+=3){for(let t=0;t<3;t++){const e=y.getX(i+t)+1;u[t]=n+e+(m||v?"/"+(v?r+e:"")+(m?"/"+(o+e):""):"")}e+="f "+u.join(" ")+"\n"}else for(let i=0,a=g.count;i<a;i+=3){for(let t=0;t<3;t++){const e=i+t+1;u[t]=n+e+(m||v?"/"+(v?r+e:"")+(m?"/"+(o+e):""):"")}e+="f "+u.join(" ")+"\n"}n+=s,r+=d,o+=h}function d(t){let i=0;const r=t.geometry,o=t.type;if(!0!==r.isBufferGeometry)throw new Error("THREE.OBJExporter: Geometry is not of type THREE.BufferGeometry.");const s=r.getAttribute("position");if(e+="o "+t.name+"\n",void 0!==s)for(let n=0,l=s.count;n<l;n++,i++)a.x=s.getX(n),a.y=s.getY(n),a.z=s.getZ(n),a.applyMatrix4(t.matrixWorld),e+="v "+a.x+" "+a.y+" "+a.z+"\n";if("Line"===o){e+="l ";for(let t=1,i=s.count;t<=i;t++)e+=n+t+" ";e+="\n"}if("LineSegments"===o)for(let a=1,l=a+1,c=s.count;a<c;a+=2,l=a+1)e+="l "+(n+a)+" "+(n+l)+"\n";n+=i}function p(t){let i=0;const r=t.geometry;if(!0!==r.isBufferGeometry)throw new Error("THREE.OBJExporter: Geometry is not of type THREE.BufferGeometry.");const o=r.getAttribute("position"),l=r.getAttribute("color");if(e+="o "+t.name+"\n",void 0!==o)for(let n=0,c=o.count;n<c;n++,i++)a.fromBufferAttribute(o,n),a.applyMatrix4(t.matrixWorld),e+="v "+a.x+" "+a.y+" "+a.z,void 0!==l&&(s.fromBufferAttribute(l,n),e+=" "+s.r+" "+s.g+" "+s.b),e+="\n";e+="p ";for(let a=1,s=o.count;a<=s;a++)e+=n+a+" ";e+="\n",n+=i}return t.traverse((function(t){!0===t.isMesh&&h(t),!0===t.isLine&&d(t),!0===t.isPoints&&p(t)})),e}}},"0f7e":function(t,e,n){"use strict";n.r(e);var i=n("3480");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r)},"0fb0":function(t,e,n){"use strict";var i=n("b757"),r=n.n(i);r.a},"0fd5":function(t,e,n){"use strict";var i=function(){function t(t){this.value=t}return t}(),r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},"0fe1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.propagationDelegate=void 0;var i=n("9332");function r(t,e,n){var r=new i.default(e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);var o=t.getParent();while(o)o.emitDelegation(e,r),r.propagationPath.push(o),o=o.getParent()}e.propagationDelegate=r},"104d":function(t,e,n){"use strict";const i="[a-fA-F\\d:]",r=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${i})|(?<=${i})(?=\\s|$))`:"",o="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",a="[a-fA-F\\d]{1,4}",s=`\n(?:\n(?:${a}:){7}(?:${a}|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\n(?:${a}:){6}(?:${o}|:${a}|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\n(?:${a}:){5}(?::${o}|(?::${a}){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\n(?:${a}:){4}(?:(?::${a}){0,1}:${o}|(?::${a}){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\n(?:${a}:){3}(?:(?::${a}){0,2}:${o}|(?::${a}){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\n(?:${a}:){2}(?:(?::${a}){0,3}:${o}|(?::${a}){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\n(?:${a}:){1}(?:(?::${a}){0,4}:${o}|(?::${a}){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${a}){0,5}:${o}|(?::${a}){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp(`(?:^${o}$)|(?:^${s}$)`),c=new RegExp(`^${o}$`),u=new RegExp(`^${s}$`),h=t=>t&&t.exact?l:new RegExp(`(?:${r(t)}${o}${r(t)})|(?:${r(t)}${s}${r(t)})`,"g");h.v4=t=>t&&t.exact?c:new RegExp(`${r(t)}${o}${r(t)}`,"g"),h.v6=t=>t&&t.exact?u:new RegExp(`${r(t)}${s}${r(t)}`,"g"),t.exports=h},"11b3":function(t,e,n){},1261:function(t,e,n){t.exports=n.p+"assets/img/360.68ef9c34.png"},1322:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("00c0");e.getBBoxMethod=i.getMethod;var r=n("29d7"),o=n("6cac"),a=n("2b23"),s=n("79cf"),l=n("83bc"),c=n("2d1f"),u=n("d5f3"),h=n("71f5");i.register("rect",r.default),i.register("image",r.default),i.register("circle",o.default),i.register("marker",o.default),i.register("polyline",a.default),i.register("polygon",s.default),i.register("text",l.default),i.register("path",c.default),i.register("line",u.default),i.register("ellipse",h.default)},"13d5":function(t,e,n){"use strict";var i=n("23e7"),r=n("d58f").left,o=n("a640"),a=n("2d00"),s=n("605d"),l=!s&&a>79&&a<83,c=l||!o("reduce");i({target:"Array",proto:!0,forced:c},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},1440:function(t,e,n){"use strict";var i=n("542e"),r=n.n(i);r.a},1448:function(t,e,n){var i=n("dfb9"),r=n("b6b7");t.exports=function(t,e){return i(r(t),e)}},1456:function(t,e,n){t.exports=n.p+"assets/img/statisticService1.7a2dc5c7.png"},"145e":function(t,e,n){"use strict";var i=n("7b0b"),r=n("23cb"),o=n("07fa"),a=n("083a"),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=i(this),l=o(n),c=r(t,l),u=r(e,l),h=arguments.length>2?arguments[2]:void 0,d=s((void 0===h?l:r(h,l))-u,l-c),p=1;u<c&&c<u+d&&(p=-1,u+=d-1,c+=d-1);while(d-- >0)u in n?n[c]=n[u]:a(n,c),c+=p,u+=p;return n}},"159d":function(t,e,n){"use strict";var i=n("3061"),r=n.n(i);r.a},1666:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("IocDialog",{attrs:{dialogConfig:t.viewComponentConfig},on:{cancelDialog:t.onViewComponentDialog}},[[n("div",{staticClass:"content-wrapper"},t._l(t.componentsList,(function(e,i){return n("div",{key:i,staticClass:"item-container"},[n("div",{staticClass:"catalog-line"},[n("div",{staticClass:"svg-box"},[n("svg-icon",{attrs:{"icon-class":"component"}})],1),n("span",{staticClass:"catalog",on:{click:function(n){return t.onSeachComponent("catalog",e.product_catalog[0])}}},[t._v(t._s(("未归档"===e.product_catalog[0]?"其他":e.product_catalog[0])||"--"))])]),n("div",{staticClass:"content-container"},[n("div",{staticClass:"product-name-line"},[n("span",{staticClass:"cn-name",on:{click:function(n){return t.onSeachComponent("app",e.product_name_cn)}}},[t.productLogoPrefix?n("ImageComponent",{staticClass:"logo",attrs:{src:t.productLogoPrefix+e.product_name_cn}}):t._e(),t._v(" "+t._s(e.product_name_cn||"--")+" ")],1)]),n("div",{staticClass:"product-name-line"},[n("span",{staticClass:"en-name",on:{click:function(n){return t.onSeachComponent("app",e.product_name_en)}}},[n("span",{staticClass:"label"},[t._v("英文名称")]),t._v(t._s(e.product_name_en||"--")+" ")])]),n("div",{staticClass:"vendor-line"},[n("div",{on:{click:function(n){return t.onSeachComponent("vendor",e.product_vendor)}}},[n("span",{staticClass:"des"},[n("span",{staticClass:"label"},[t._v("生产厂商")]),t._v(t._s(e.product_vendor||"--")+" ")])]),n("div",{on:{click:function(n){return t.onSeachComponent("level",e.product_level)}}},[n("span",{staticClass:"des"},[n("span",{staticClass:"label"},[t._v("层级")]),t._v(t._s(e.product_level||"--")+" ")])]),n("div",{staticClass:"type-container"},t._l(e.product_type,(function(e,i){return n("span",{key:i,staticClass:"type-item",on:{click:function(n){return t.onSeachComponent("type",e)}}},[t._v(t._s(e))])})),0)])])])})),0)]],2)],1)},r=[],o=(n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("ade3")),a=n("2f62"),s=n("b3f1");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={props:{viewComponentDialogVisible:{type:Boolean,default:!1},componentsList:{type:Array,default:function(){return[]}}},watch:{viewComponentDialogVisible:{handler:function(t){this.viewComponentConfig.dialogVisible=t}}},components:{ImageComponent:s["default"]},data:function(){return{viewComponentConfig:{title:"产品组件",dialogVisible:!1,isShowFooter:!1,width:"774px"}}},computed:c({},Object(a["e"])("site",["role","productLogoPrefix"])),methods:c({},Object(a["b"])("site",["toggleMultiDialog"]),{onViewComponentDialog:function(){this.$emit("changeViewComponentDialogVisible",!1)},onSeachComponent:function(t,e){e&&(this.onViewComponentDialog(),this.role?1===this.role?this.toggleMultiDialog("unVip"):this.$emit("onSeachComponent",t,e):this.toggleMultiDialog("unLogin"))}})},h=u,d=(n("2d12"),n("2877")),p=Object(d["a"])(h,i,r,!1,null,"67070cf2",null);e["a"]=p.exports},"166a":function(t,e,n){"use strict";var i=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function r(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function o(){}n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return S}));var a=.7,s=1/a,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,d=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),p=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),f=new RegExp("^rgba\\("+[l,l,l,c]+"\\)$"),g=new RegExp("^rgba\\("+[u,u,u,c]+"\\)$"),m=new RegExp("^hsl\\("+[c,u,u]+"\\)$"),v=new RegExp("^hsla\\("+[c,u,u,c]+"\\)$"),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function x(){return P(this).formatHsl()}function w(){return this.rgb().formatRgb()}function _(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?C(e):3===n?new M(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?A(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?A(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=d.exec(t))?new M(e[1],e[2],e[3],1):(e=p.exec(t))?new M(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?A(e[1],e[2],e[3],e[4]):(e=g.exec(t))?A(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=m.exec(t))?O(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?O(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?C(y[t]):"transparent"===t?new M(NaN,NaN,NaN,0):null}function C(t){return new M(t>>16&255,t>>8&255,255&t,1)}function A(t,e,n,i){return i<=0&&(t=e=n=NaN),new M(t,e,n,i)}function I(t){return t instanceof o||(t=_(t)),t?(t=t.rgb(),new M(t.r,t.g,t.b,t.opacity)):new M}function S(t,e,n,i){return 1===arguments.length?I(t):new M(t,e,n,null==i?1:i)}function M(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function k(){return"#"+T(this.r)+T(this.g)+T(this.b)}function E(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function T(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function O(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new L(t,e,n,i)}function P(t){if(t instanceof L)return new L(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=_(t)),!t)return new L;if(t instanceof L)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),s=NaN,l=a-r,c=(a+r)/2;return l?(s=e===a?(n-i)/l+6*(n<i):n===a?(i-e)/l+2:(e-n)/l+4,l/=c<.5?a+r:2-a-r,s*=60):l=c>0&&c<1?0:s,new L(s,l,c,t.opacity)}function j(t,e,n,i){return 1===arguments.length?P(t):new L(t,e,n,null==i?1:i)}function L(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function D(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}i(o,_,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:x,formatRgb:w,toString:w}),i(M,S,r(o,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new M(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatRgb:E,toString:E})),i(L,j,r(o,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new L(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new L(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new M(D(t>=240?t-240:t+120,r,i),D(t,r,i),D(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},"170b":function(t,e,n){"use strict";var i=n("ebb5"),r=n("50c4"),o=n("23cb"),a=n("b6b7"),s=i.aTypedArray,l=i.exportTypedArrayMethod;l("subarray",(function(t,e){var n=s(this),i=n.length,l=o(t,i),c=a(n);return new c(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((void 0===e?i:o(e,i))-l))}))},1775:function(t,e,n){
/*! Tweakpane 3.1.10 (c) 2016 cocopon, licensed under the MIT license. */
(function(t,n){n(e)})(0,(function(t){"use strict";class e{constructor(t){const[e,n]=t.split("-"),i=e.split(".");this.major=parseInt(i[0],10),this.minor=parseInt(i[1],10),this.patch=parseInt(i[2],10),this.prerelease=null!==n&&void 0!==n?n:null}toString(){const t=[this.major,this.minor,this.patch].join(".");return null!==this.prerelease?[t,this.prerelease].join("-"):t}}class n{constructor(t){this.controller_=t}get element(){return this.controller_.view.element}get disabled(){return this.controller_.viewProps.get("disabled")}set disabled(t){this.controller_.viewProps.set("disabled",t)}get hidden(){return this.controller_.viewProps.get("hidden")}set hidden(t){this.controller_.viewProps.set("hidden",t)}dispose(){this.controller_.viewProps.set("disposed",!0)}}class i{constructor(t){this.target=t}}class r extends i{constructor(t,e,n,i){super(t),this.value=e,this.presetKey=n,this.last=null===i||void 0===i||i}}class o extends i{constructor(t,e,n){super(t),this.value=e,this.presetKey=n}}class a extends i{constructor(t,e){super(t),this.expanded=e}}class s extends i{constructor(t,e){super(t),this.index=e}}function l(t){return t}function c(t){return null===t||void 0===t}function u(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function h(t,e){let n=t;do{const t=Object.getOwnPropertyDescriptor(n,e);if(t&&(void 0!==t.set||!0===t.writable))return!0;n=Object.getPrototypeOf(n)}while(null!==n);return!1}const d={alreadydisposed:()=>"View has been already disposed",invalidparams:t=>`Invalid parameters for '${t.name}'`,nomatchingcontroller:t=>`No matching controller for '${t.key}'`,nomatchingview:t=>`No matching view for '${JSON.stringify(t.params)}'`,notbindable:()=>"Value is not bindable",propertynotfound:t=>`Property '${t.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class p{static alreadyDisposed(){return new p({type:"alreadydisposed"})}static notBindable(){return new p({type:"notbindable"})}static propertyNotFound(t){return new p({type:"propertynotfound",context:{name:t}})}static shouldNeverHappen(){return new p({type:"shouldneverhappen"})}constructor(t){var e;this.message=null!==(e=d[t.type](l(t.context)))&&void 0!==e?e:"Unexpected error",this.name=this.constructor.name,this.stack=new Error(this.message).stack,this.type=t.type}}class f{constructor(t,e,n){this.obj_=t,this.key_=e,this.presetKey_=null!==n&&void 0!==n?n:e}static isBindable(t){return null!==t&&("object"===typeof t||"function"===typeof t)}get key(){return this.key_}get presetKey(){return this.presetKey_}read(){return this.obj_[this.key_]}write(t){this.obj_[this.key_]=t}writeProperty(t,e){const n=this.read();if(!f.isBindable(n))throw p.notBindable();if(!(t in n))throw p.propertyNotFound(t);n[t]=e}}class g extends n{get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get title(){var t;return null!==(t=this.controller_.valueController.props.get("title"))&&void 0!==t?t:""}set title(t){this.controller_.valueController.props.set("title",t)}on(t,e){const n=e.bind(this),r=this.controller_.valueController.emitter;return r.on(t,()=>{n(new i(this))}),this}}class m{constructor(){this.observers_={}}on(t,e){let n=this.observers_[t];return n||(n=this.observers_[t]=[]),n.push({handler:e}),this}off(t,e){const n=this.observers_[t];return n&&(this.observers_[t]=n.filter(t=>{return t.handler!==e})),this}emit(t,e){const n=this.observers_[t];n&&n.forEach(t=>{t.handler(e)})}}const v="tp";function y(t){const e=(e,n)=>{return[v,"-",t,"v",e?`_${e}`:"",n?`-${n}`:""].join("")};return e}function b(t,e){return n=>e(t(n))}function x(t){return t.rawValue}function w(t,e){t.emitter.on("change",b(x,e)),e(t.rawValue)}function _(t,e,n){w(t.value(e),n)}function C(t,e,n){n?t.classList.add(e):t.classList.remove(e)}function A(t,e){return n=>{C(t,e,n)}}function I(t,e){w(t,t=>{e.textContent=null!==t&&void 0!==t?t:""})}const S=y("btn");class M{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(S()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("button");n.classList.add(S("b")),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;const i=t.createElement("div");i.classList.add(S("t")),I(e.props.value("title"),i),this.buttonElement.appendChild(i)}}class k{constructor(t,e){this.emitter=new m,this.onClick_=this.onClick_.bind(this),this.props=e.props,this.viewProps=e.viewProps,this.view=new M(t,{props:this.props,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class E{constructor(t,e){var n;this.constraint_=null===e||void 0===e?void 0:e.constraint,this.equals_=null!==(n=null===e||void 0===e?void 0:e.equals)&&void 0!==n?n:(t,e)=>t===e,this.emitter=new m,this.rawValue_=t}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!==e&&void 0!==e?e:{forceEmit:!1,last:!0},i=this.constraint_?this.constraint_.constrain(t):t,r=this.rawValue_,o=!this.equals_(r,i);(o||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.rawValue_=i,this.emitter.emit("change",{options:n,previousRawValue:r,rawValue:i,sender:this}))}}class T{constructor(t){this.emitter=new m,this.value_=t}get rawValue(){return this.value_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!==e&&void 0!==e?e:{forceEmit:!1,last:!0},i=this.value_;(i!==t||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.value_=t,this.emitter.emit("change",{options:n,previousRawValue:i,rawValue:this.value_,sender:this}))}}function O(t,e){const n=null===e||void 0===e?void 0:e.constraint,i=null===e||void 0===e?void 0:e.equals;return n||i?new E(t,e):new T(t)}class P{constructor(t){this.emitter=new m,this.valMap_=t;for(const e in this.valMap_){const t=this.valMap_[e];t.emitter.on("change",()=>{this.emitter.emit("change",{key:e,sender:this})})}}static createCore(t){const e=Object.keys(t);return e.reduce((e,n)=>{return Object.assign(e,{[n]:O(t[n])})},{})}static fromObject(t){const e=this.createCore(t);return new P(e)}get(t){return this.valMap_[t].rawValue}set(t,e){this.valMap_[t].rawValue=e}value(t){return this.valMap_[t]}}function j(t,e){const n=Object.keys(e),i=n.reduce((n,i)=>{if(void 0===n)return;const r=e[i],o=r(t[i]);return o.succeeded?Object.assign(Object.assign({},n),{[i]:o.value}):void 0},{});return l(i)}function L(t,e){return t.reduce((t,n)=>{if(void 0===t)return;const i=e(n);return i.succeeded&&void 0!==i.value?[...t,i.value]:void 0},[])}function D(t){return null!==t&&"object"===typeof t}function R(t){return e=>n=>{if(!e&&void 0===n)return{succeeded:!1,value:void 0};if(e&&void 0===n)return{succeeded:!0,value:void 0};const i=t(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function B(t){return{custom:e=>R(e)(t),boolean:R(t=>"boolean"===typeof t?t:void 0)(t),number:R(t=>"number"===typeof t?t:void 0)(t),string:R(t=>"string"===typeof t?t:void 0)(t),function:R(t=>"function"===typeof t?t:void 0)(t),constant:e=>R(t=>t===e?e:void 0)(t),raw:R(t=>t)(t),object:e=>R(t=>{if(D(t))return j(t,e)})(t),array:e=>R(t=>{if(Array.isArray(t))return L(t,e)})(t)}}const N={optional:B(!0),required:B(!1)};function F(t,e){const n=N.required.object(e)(t);return n.succeeded?n.value:void 0}function z(t){console.warn([`Missing '${t.key}' of ${t.target} in ${t.place}.`,"Please rebuild plugins with the latest core package."].join(" "))}function V(t){return t&&t.parentElement&&t.parentElement.removeChild(t),null}class G{constructor(t){this.value_=t}static create(t){return[new G(t),(e,n)=>{t.setRawValue(e,n)}]}get emitter(){return this.value_.emitter}get rawValue(){return this.value_.rawValue}}const H=y("");function W(t,e){return A(t,H(void 0,e))}class U extends P{constructor(t){var e;super(t),this.onDisabledChange_=this.onDisabledChange_.bind(this),this.onParentChange_=this.onParentChange_.bind(this),this.onParentGlobalDisabledChange_=this.onParentGlobalDisabledChange_.bind(this),[this.globalDisabled_,this.setGlobalDisabled_]=G.create(O(this.getGlobalDisabled_())),this.value("disabled").emitter.on("change",this.onDisabledChange_),this.value("parent").emitter.on("change",this.onParentChange_),null===(e=this.get("parent"))||void 0===e||e.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_)}static create(t){var e,n,i;const r=null!==t&&void 0!==t?t:{};return new U(P.createCore({disabled:null!==(e=r.disabled)&&void 0!==e&&e,disposed:!1,hidden:null!==(n=r.hidden)&&void 0!==n&&n,parent:null!==(i=r.parent)&&void 0!==i?i:null}))}get globalDisabled(){return this.globalDisabled_}bindClassModifiers(t){w(this.globalDisabled_,W(t,"disabled")),_(this,"hidden",W(t,"hidden"))}bindDisabled(t){w(this.globalDisabled_,e=>{t.disabled=e})}bindTabIndex(t){w(this.globalDisabled_,e=>{t.tabIndex=e?-1:0})}handleDispose(t){this.value("disposed").emitter.on("change",e=>{e&&t()})}getGlobalDisabled_(){const t=this.get("parent"),e=!!t&&t.globalDisabled.rawValue;return e||this.get("disabled")}updateGlobalDisabled_(){this.setGlobalDisabled_(this.getGlobalDisabled_())}onDisabledChange_(){this.updateGlobalDisabled_()}onParentGlobalDisabledChange_(){this.updateGlobalDisabled_()}onParentChange_(t){var e;const n=t.previousRawValue;null===n||void 0===n||n.globalDisabled.emitter.off("change",this.onParentGlobalDisabledChange_),null===(e=this.get("parent"))||void 0===e||e.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_),this.updateGlobalDisabled_()}}function Z(){return["veryfirst","first","last","verylast"]}const Y=y(""),X={veryfirst:"vfst",first:"fst",last:"lst",verylast:"vlst"};class q{constructor(t){this.parent_=null,this.blade=t.blade,this.view=t.view,this.viewProps=t.viewProps;const e=this.view.element;this.blade.value("positions").emitter.on("change",()=>{Z().forEach(t=>{e.classList.remove(Y(void 0,X[t]))}),this.blade.get("positions").forEach(t=>{e.classList.add(Y(void 0,X[t]))})}),this.viewProps.handleDispose(()=>{V(e)})}get parent(){return this.parent_}set parent(t){this.parent_=t,"parent"in this.viewProps.valMap_?this.viewProps.set("parent",this.parent_?this.parent_.viewProps:null):z({key:"parent",target:U.name,place:"BladeController.parent"})}}const K="http://www.w3.org/2000/svg";function Q(t){t.offsetHeight}function J(t,e){const n=t.style.transition;t.style.transition="none",e(),t.style.transition=n}function $(t){return void 0!==t.ontouchstart}function tt(){return globalThis}function et(){const t=l(tt());return t.document}function nt(t){const e=t.ownerDocument.defaultView;if(!e)return null;const n="document"in e;return n?t.getContext("2d",{willReadFrequently:!0}):null}const it={check:'<path d="M2 8l4 4l8 -8"/>',dropdown:'<path d="M5 7h6l-3 3 z"/>',p2dpad:'<path d="M8 4v8"/><path d="M4 8h8"/><circle cx="12" cy="12" r="1.2"/>'};function rt(t,e){const n=t.createElementNS(K,"svg");return n.innerHTML=it[e],n}function ot(t,e,n){t.insertBefore(e,t.children[n])}function at(t){t.parentElement&&t.parentElement.removeChild(t)}function st(t){while(t.children.length>0)t.removeChild(t.children[0])}function lt(t){while(t.childNodes.length>0)t.removeChild(t.childNodes[0])}function ct(t){return t.relatedTarget?l(t.relatedTarget):"explicitOriginalTarget"in t?t.explicitOriginalTarget:null}const ut=y("lbl");function ht(t,e){const n=t.createDocumentFragment(),i=e.split("\n").map(e=>{return t.createTextNode(e)});return i.forEach((e,i)=>{i>0&&n.appendChild(t.createElement("br")),n.appendChild(e)}),n}class dt{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(ut()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(ut("l")),_(e.props,"label",e=>{c(e)?this.element.classList.add(ut(void 0,"nol")):(this.element.classList.remove(ut(void 0,"nol")),lt(n),n.appendChild(ht(t,e)))}),this.element.appendChild(n),this.labelElement=n;const i=t.createElement("div");i.classList.add(ut("v")),this.element.appendChild(i),this.valueElement=i}}class pt extends q{constructor(t,e){const n=e.valueController.viewProps;super(Object.assign(Object.assign({},e),{view:new dt(t,{props:e.props,viewProps:n}),viewProps:n})),this.props=e.props,this.valueController=e.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}}const ft={id:"button",type:"blade",accept(t){const e=N,n=F(t,{title:e.required.string,view:e.required.constant("button"),label:e.optional.string});return n?{params:n}:null},controller(t){return new pt(t.document,{blade:t.blade,props:P.fromObject({label:t.params.label}),valueController:new k(t.document,{props:P.fromObject({title:t.params.title}),viewProps:t.viewProps})})},api(t){return t.controller instanceof pt&&t.controller.valueController instanceof k?new g(t.controller):null}};class gt extends q{constructor(t){super(t),this.value=t.value}}function mt(){return new P({positions:O([],{equals:u})})}class vt extends P{constructor(t){super(t)}static create(t){const e={completed:!0,expanded:t,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null},n=P.createCore(e);return new vt(n)}get styleExpanded(){var t;return null!==(t=this.get("temporaryExpanded"))&&void 0!==t?t:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";const t=this.get("expandedHeight");return this.get("shouldFixHeight")&&!c(t)?`${t}px`:"auto"}bindExpandedClass(t,e){const n=()=>{const n=this.styleExpanded;n?t.classList.add(e):t.classList.remove(e)};_(this,"expanded",n),_(this,"temporaryExpanded",n)}cleanUpTransition(){this.set("shouldFixHeight",!1),this.set("expandedHeight",null),this.set("completed",!0)}}function yt(t,e){let n=0;return J(e,()=>{t.set("expandedHeight",null),t.set("temporaryExpanded",!0),Q(e),n=e.clientHeight,t.set("temporaryExpanded",null),Q(e)}),n}function bt(t,e){e.style.height=t.styleHeight}function xt(t,e){t.value("expanded").emitter.on("beforechange",()=>{if(t.set("completed",!1),c(t.get("expandedHeight"))){const n=yt(t,e);n>0&&t.set("expandedHeight",n)}t.set("shouldFixHeight",!0),Q(e)}),t.emitter.on("change",()=>{bt(t,e)}),bt(t,e),e.addEventListener("transitionend",e=>{"height"===e.propertyName&&t.cleanUpTransition()})}class wt extends n{constructor(t,e){super(t),this.rackApi_=e}}function _t(t,e){return t.addBlade(Object.assign(Object.assign({},e),{view:"button"}))}function Ct(t,e){return t.addBlade(Object.assign(Object.assign({},e),{view:"folder"}))}function At(t,e){const n=null!==e&&void 0!==e?e:{};return t.addBlade(Object.assign(Object.assign({},n),{view:"separator"}))}function It(t,e){return t.addBlade(Object.assign(Object.assign({},e),{view:"tab"}))}class St{constructor(t){this.emitter=new m,this.items_=[],this.cache_=new Set,this.onSubListAdd_=this.onSubListAdd_.bind(this),this.onSubListRemove_=this.onSubListRemove_.bind(this),this.extract_=t}get items(){return this.items_}allItems(){return Array.from(this.cache_)}find(t){for(const e of this.allItems())if(t(e))return e;return null}includes(t){return this.cache_.has(t)}add(t,e){if(this.includes(t))throw p.shouldNeverHappen();const n=void 0!==e?e:this.items_.length;this.items_.splice(n,0,t),this.cache_.add(t);const i=this.extract_(t);i&&(i.emitter.on("add",this.onSubListAdd_),i.emitter.on("remove",this.onSubListRemove_),i.allItems().forEach(t=>{this.cache_.add(t)})),this.emitter.emit("add",{index:n,item:t,root:this,target:this})}remove(t){const e=this.items_.indexOf(t);if(e<0)return;this.items_.splice(e,1),this.cache_.delete(t);const n=this.extract_(t);n&&(n.emitter.off("add",this.onSubListAdd_),n.emitter.off("remove",this.onSubListRemove_)),this.emitter.emit("remove",{index:e,item:t,root:this,target:this})}onSubListAdd_(t){this.cache_.add(t.item),this.emitter.emit("add",{index:t.index,item:t.item,root:this,target:t.target})}onSubListRemove_(t){this.cache_.delete(t.item),this.emitter.emit("remove",{index:t.index,item:t.item,root:this,target:t.target})}}class Mt extends n{constructor(t){super(t),this.onBindingChange_=this.onBindingChange_.bind(this),this.emitter_=new m,this.controller_.binding.emitter.on("change",this.onBindingChange_)}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}refresh(){this.controller_.binding.read()}onBindingChange_(t){const e=t.sender.target.read();this.emitter_.emit("change",{event:new r(this,l(e),this.controller_.binding.target.presetKey,t.options.last)})}}class kt extends pt{constructor(t,e){super(t,e),this.binding=e.binding}}class Et extends n{constructor(t){super(t),this.onBindingUpdate_=this.onBindingUpdate_.bind(this),this.emitter_=new m,this.controller_.binding.emitter.on("update",this.onBindingUpdate_)}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}refresh(){this.controller_.binding.read()}onBindingUpdate_(t){const e=t.sender.target.read();this.emitter_.emit("update",{event:new o(this,l(e),this.controller_.binding.target.presetKey)})}}class Tt extends pt{constructor(t,e){super(t,e),this.binding=e.binding,this.viewProps.bindDisabled(this.binding.ticker),this.viewProps.handleDispose(()=>{this.binding.dispose()})}}function Ot(t){return t instanceof Lt?t["apiSet_"]:t instanceof wt?t["rackApi_"]["apiSet_"]:null}function Pt(t,e){const n=t.find(t=>t.controller_===e);if(!n)throw p.shouldNeverHappen();return n}function jt(t,e,n){if(!f.isBindable(t))throw p.notBindable();return new f(t,e,n)}class Lt extends n{constructor(t,e){super(t),this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this),this.onRackInputChange_=this.onRackInputChange_.bind(this),this.onRackMonitorUpdate_=this.onRackMonitorUpdate_.bind(this),this.emitter_=new m,this.apiSet_=new St(Ot),this.pool_=e;const n=this.controller_.rack;n.emitter.on("add",this.onRackAdd_),n.emitter.on("remove",this.onRackRemove_),n.emitter.on("inputchange",this.onRackInputChange_),n.emitter.on("monitorupdate",this.onRackMonitorUpdate_),n.children.forEach(t=>{this.setUpApi_(t)})}get children(){return this.controller_.rack.children.map(t=>Pt(this.apiSet_,t))}addInput(t,e,n){const i=null!==n&&void 0!==n?n:{},r=this.controller_.view.element.ownerDocument,o=this.pool_.createInput(r,jt(t,e,i.presetKey),i),a=new Mt(o);return this.add(a,i.index)}addMonitor(t,e,n){const i=null!==n&&void 0!==n?n:{},r=this.controller_.view.element.ownerDocument,o=this.pool_.createMonitor(r,jt(t,e),i),a=new Et(o);return l(this.add(a,i.index))}addFolder(t){return Ct(this,t)}addButton(t){return _t(this,t)}addSeparator(t){return At(this,t)}addTab(t){return It(this,t)}add(t,e){this.controller_.rack.add(t.controller_,e);const n=this.apiSet_.find(e=>e.controller_===t.controller_);return n&&this.apiSet_.remove(n),this.apiSet_.add(t),t}remove(t){this.controller_.rack.remove(t.controller_)}addBlade(t){const e=this.controller_.view.element.ownerDocument,n=this.pool_.createBlade(e,t),i=this.pool_.createBladeApi(n);return this.add(i,t.index)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}setUpApi_(t){const e=this.apiSet_.find(e=>e.controller_===t);e||this.apiSet_.add(this.pool_.createBladeApi(t))}onRackAdd_(t){this.setUpApi_(t.bladeController)}onRackRemove_(t){if(t.isRoot){const e=Pt(this.apiSet_,t.bladeController);this.apiSet_.remove(e)}}onRackInputChange_(t){const e=t.bladeController;if(e instanceof kt){const n=Pt(this.apiSet_,e),i=e.binding;this.emitter_.emit("change",{event:new r(n,l(i.target.read()),i.target.presetKey,t.options.last)})}else if(e instanceof gt){const n=Pt(this.apiSet_,e);this.emitter_.emit("change",{event:new r(n,e.value.rawValue,void 0,t.options.last)})}}onRackMonitorUpdate_(t){if(!(t.bladeController instanceof Tt))throw p.shouldNeverHappen();const e=Pt(this.apiSet_,t.bladeController),n=t.bladeController.binding;this.emitter_.emit("update",{event:new o(e,l(n.target.read()),n.target.presetKey)})}}class Dt extends wt{constructor(t,e){super(t,new Lt(t.rackController,e)),this.emitter_=new m,this.controller_.foldable.value("expanded").emitter.on("change",t=>{this.emitter_.emit("fold",{event:new a(this,t.sender.rawValue)})}),this.rackApi_.on("change",t=>{this.emitter_.emit("change",{event:t})}),this.rackApi_.on("update",t=>{this.emitter_.emit("update",{event:t})})}get expanded(){return this.controller_.foldable.get("expanded")}set expanded(t){this.controller_.foldable.set("expanded",t)}get title(){return this.controller_.props.get("title")}set title(t){this.controller_.props.set("title",t)}get children(){return this.rackApi_.children}addInput(t,e,n){return this.rackApi_.addInput(t,e,n)}addMonitor(t,e,n){return this.rackApi_.addMonitor(t,e,n)}addFolder(t){return this.rackApi_.addFolder(t)}addButton(t){return this.rackApi_.addButton(t)}addSeparator(t){return this.rackApi_.addSeparator(t)}addTab(t){return this.rackApi_.addTab(t)}add(t,e){return this.rackApi_.add(t,e)}remove(t){this.rackApi_.remove(t)}addBlade(t){return this.rackApi_.addBlade(t)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}class Rt extends q{constructor(t){super({blade:t.blade,view:t.view,viewProps:t.rackController.viewProps}),this.rackController=t.rackController}}class Bt{constructor(t,e){const n=y(e.viewName);this.element=t.createElement("div"),this.element.classList.add(n()),e.viewProps.bindClassModifiers(this.element)}}function Nt(t,e){for(let n=0;n<t.length;n++){const i=t[n];if(i instanceof kt&&i.binding===e)return i}return null}function Ft(t,e){for(let n=0;n<t.length;n++){const i=t[n];if(i instanceof Tt&&i.binding===e)return i}return null}function zt(t,e){for(let n=0;n<t.length;n++){const i=t[n];if(i instanceof gt&&i.value===e)return i}return null}function Vt(t){return t instanceof Wt?t.rack:t instanceof Rt?t.rackController.rack:null}function Gt(t){const e=Vt(t);return e?e["bcSet_"]:null}class Ht{constructor(t){var e,n;this.onBladePositionsChange_=this.onBladePositionsChange_.bind(this),this.onSetAdd_=this.onSetAdd_.bind(this),this.onSetRemove_=this.onSetRemove_.bind(this),this.onChildDispose_=this.onChildDispose_.bind(this),this.onChildPositionsChange_=this.onChildPositionsChange_.bind(this),this.onChildInputChange_=this.onChildInputChange_.bind(this),this.onChildMonitorUpdate_=this.onChildMonitorUpdate_.bind(this),this.onChildValueChange_=this.onChildValueChange_.bind(this),this.onChildViewPropsChange_=this.onChildViewPropsChange_.bind(this),this.onDescendantLayout_=this.onDescendantLayout_.bind(this),this.onDescendantInputChange_=this.onDescendantInputChange_.bind(this),this.onDescendantMonitorUpdate_=this.onDescendantMonitorUpdate_.bind(this),this.emitter=new m,this.blade_=null!==(e=t.blade)&&void 0!==e?e:null,null===(n=this.blade_)||void 0===n||n.value("positions").emitter.on("change",this.onBladePositionsChange_),this.viewProps=t.viewProps,this.bcSet_=new St(Gt),this.bcSet_.emitter.on("add",this.onSetAdd_),this.bcSet_.emitter.on("remove",this.onSetRemove_)}get children(){return this.bcSet_.items}add(t,e){var n;null===(n=t.parent)||void 0===n||n.remove(t),h(t,"parent")?t.parent=this:(t["parent_"]=this,z({key:"parent",target:"BladeController",place:"BladeRack.add"})),this.bcSet_.add(t,e)}remove(t){h(t,"parent")?t.parent=null:(t["parent_"]=null,z({key:"parent",target:"BladeController",place:"BladeRack.remove"})),this.bcSet_.remove(t)}find(t){return l(this.bcSet_.allItems().filter(e=>{return e instanceof t}))}onSetAdd_(t){this.updatePositions_();const e=t.target===t.root;if(this.emitter.emit("add",{bladeController:t.item,index:t.index,isRoot:e,sender:this}),!e)return;const n=t.item;if(n.viewProps.emitter.on("change",this.onChildViewPropsChange_),n.blade.value("positions").emitter.on("change",this.onChildPositionsChange_),n.viewProps.handleDispose(this.onChildDispose_),n instanceof kt)n.binding.emitter.on("change",this.onChildInputChange_);else if(n instanceof Tt)n.binding.emitter.on("update",this.onChildMonitorUpdate_);else if(n instanceof gt)n.value.emitter.on("change",this.onChildValueChange_);else{const t=Vt(n);if(t){const e=t.emitter;e.on("layout",this.onDescendantLayout_),e.on("inputchange",this.onDescendantInputChange_),e.on("monitorupdate",this.onDescendantMonitorUpdate_)}}}onSetRemove_(t){this.updatePositions_();const e=t.target===t.root;if(this.emitter.emit("remove",{bladeController:t.item,isRoot:e,sender:this}),!e)return;const n=t.item;if(n instanceof kt)n.binding.emitter.off("change",this.onChildInputChange_);else if(n instanceof Tt)n.binding.emitter.off("update",this.onChildMonitorUpdate_);else if(n instanceof gt)n.value.emitter.off("change",this.onChildValueChange_);else{const t=Vt(n);if(t){const e=t.emitter;e.off("layout",this.onDescendantLayout_),e.off("inputchange",this.onDescendantInputChange_),e.off("monitorupdate",this.onDescendantMonitorUpdate_)}}}updatePositions_(){const t=this.bcSet_.items.filter(t=>!t.viewProps.get("hidden")),e=t[0],n=t[t.length-1];this.bcSet_.items.forEach(t=>{const i=[];t===e&&(i.push("first"),this.blade_&&!this.blade_.get("positions").includes("veryfirst")||i.push("veryfirst")),t===n&&(i.push("last"),this.blade_&&!this.blade_.get("positions").includes("verylast")||i.push("verylast")),t.blade.set("positions",i)})}onChildPositionsChange_(){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildViewPropsChange_(t){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildDispose_(){const t=this.bcSet_.items.filter(t=>{return t.viewProps.get("disposed")});t.forEach(t=>{this.bcSet_.remove(t)})}onChildInputChange_(t){const e=Nt(this.find(kt),t.sender);if(!e)throw p.alreadyDisposed();this.emitter.emit("inputchange",{bladeController:e,options:t.options,sender:this})}onChildMonitorUpdate_(t){const e=Ft(this.find(Tt),t.sender);if(!e)throw p.alreadyDisposed();this.emitter.emit("monitorupdate",{bladeController:e,sender:this})}onChildValueChange_(t){const e=zt(this.find(gt),t.sender);if(!e)throw p.alreadyDisposed();this.emitter.emit("inputchange",{bladeController:e,options:t.options,sender:this})}onDescendantLayout_(t){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onDescendantInputChange_(t){this.emitter.emit("inputchange",{bladeController:t.bladeController,options:t.options,sender:this})}onDescendantMonitorUpdate_(t){this.emitter.emit("monitorupdate",{bladeController:t.bladeController,sender:this})}onBladePositionsChange_(){this.updatePositions_()}}class Wt extends q{constructor(t,e){super(Object.assign(Object.assign({},e),{view:new Bt(t,{viewName:"brk",viewProps:e.viewProps})})),this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this);const n=new Ht({blade:e.root?void 0:e.blade,viewProps:e.viewProps});n.emitter.on("add",this.onRackAdd_),n.emitter.on("remove",this.onRackRemove_),this.rack=n,this.viewProps.handleDispose(()=>{for(let t=this.rack.children.length-1;t>=0;t--){const e=this.rack.children[t];e.viewProps.set("disposed",!0)}})}onRackAdd_(t){t.isRoot&&ot(this.view.element,t.bladeController.view.element,t.index)}onRackRemove_(t){t.isRoot&&at(t.bladeController.view.element)}}const Ut=y("cnt");class Zt{constructor(t,e){var n;this.className_=y(null!==(n=e.viewName)&&void 0!==n?n:"fld"),this.element=t.createElement("div"),this.element.classList.add(this.className_(),Ut()),e.viewProps.bindClassModifiers(this.element),this.foldable_=e.foldable,this.foldable_.bindExpandedClass(this.element,this.className_(void 0,"expanded")),_(this.foldable_,"completed",A(this.element,this.className_(void 0,"cpl")));const i=t.createElement("button");i.classList.add(this.className_("b")),_(e.props,"title",t=>{c(t)?this.element.classList.add(this.className_(void 0,"not")):this.element.classList.remove(this.className_(void 0,"not"))}),e.viewProps.bindDisabled(i),this.element.appendChild(i),this.buttonElement=i;const r=t.createElement("div");r.classList.add(this.className_("i")),this.element.appendChild(r);const o=t.createElement("div");o.classList.add(this.className_("t")),I(e.props.value("title"),o),this.buttonElement.appendChild(o),this.titleElement=o;const a=t.createElement("div");a.classList.add(this.className_("m")),this.buttonElement.appendChild(a);const s=e.containerElement;s.classList.add(this.className_("c")),this.element.appendChild(s),this.containerElement=s}}class Yt extends Rt{constructor(t,e){var n;const i=vt.create(null===(n=e.expanded)||void 0===n||n),r=new Wt(t,{blade:e.blade,root:e.root,viewProps:e.viewProps});super(Object.assign(Object.assign({},e),{rackController:r,view:new Zt(t,{containerElement:r.view.element,foldable:i,props:e.props,viewName:e.root?"rot":void 0,viewProps:e.viewProps})})),this.onTitleClick_=this.onTitleClick_.bind(this),this.props=e.props,this.foldable=i,xt(this.foldable,this.view.containerElement),this.rackController.rack.emitter.on("add",()=>{this.foldable.cleanUpTransition()}),this.rackController.rack.emitter.on("remove",()=>{this.foldable.cleanUpTransition()}),this.view.buttonElement.addEventListener("click",this.onTitleClick_)}get document(){return this.view.element.ownerDocument}onTitleClick_(){this.foldable.set("expanded",!this.foldable.get("expanded"))}}const Xt={id:"folder",type:"blade",accept(t){const e=N,n=F(t,{title:e.required.string,view:e.required.constant("folder"),expanded:e.optional.boolean});return n?{params:n}:null},controller(t){return new Yt(t.document,{blade:t.blade,expanded:t.params.expanded,props:P.fromObject({title:t.params.title}),viewProps:t.viewProps})},api(t){return t.controller instanceof Yt?new Dt(t.controller,t.pool):null}};class qt extends gt{constructor(t,e){const n=e.valueController.viewProps;super(Object.assign(Object.assign({},e),{value:e.valueController.value,view:new dt(t,{props:e.props,viewProps:n}),viewProps:n})),this.props=e.props,this.valueController=e.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}}class Kt extends n{}const Qt=y("spr");class Jt{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Qt()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("hr");n.classList.add(Qt("r")),this.element.appendChild(n)}}class $t extends q{constructor(t,e){super(Object.assign(Object.assign({},e),{view:new Jt(t,{viewProps:e.viewProps})}))}}const te={id:"separator",type:"blade",accept(t){const e=N,n=F(t,{view:e.required.constant("separator")});return n?{params:n}:null},controller(t){return new $t(t.document,{blade:t.blade,viewProps:t.viewProps})},api(t){return t.controller instanceof $t?new Kt(t.controller):null}},ee=y("tbi");class ne{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(ee()),e.viewProps.bindClassModifiers(this.element),_(e.props,"selected",t=>{t?this.element.classList.add(ee(void 0,"sel")):this.element.classList.remove(ee(void 0,"sel"))});const n=t.createElement("button");n.classList.add(ee("b")),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;const i=t.createElement("div");i.classList.add(ee("t")),I(e.props.value("title"),i),this.buttonElement.appendChild(i),this.titleElement=i}}class ie{constructor(t,e){this.emitter=new m,this.onClick_=this.onClick_.bind(this),this.props=e.props,this.viewProps=e.viewProps,this.view=new ne(t,{props:e.props,viewProps:e.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class re{constructor(t,e){this.onItemClick_=this.onItemClick_.bind(this),this.ic_=new ie(t,{props:e.itemProps,viewProps:U.create()}),this.ic_.emitter.on("click",this.onItemClick_),this.cc_=new Wt(t,{blade:mt(),viewProps:U.create()}),this.props=e.props,_(this.props,"selected",t=>{this.itemController.props.set("selected",t),this.contentController.viewProps.set("hidden",!t)})}get itemController(){return this.ic_}get contentController(){return this.cc_}onItemClick_(){this.props.set("selected",!0)}}class oe{constructor(t,e){this.controller_=t,this.rackApi_=e}get title(){var t;return null!==(t=this.controller_.itemController.props.get("title"))&&void 0!==t?t:""}set title(t){this.controller_.itemController.props.set("title",t)}get selected(){return this.controller_.props.get("selected")}set selected(t){this.controller_.props.set("selected",t)}get children(){return this.rackApi_.children}addButton(t){return this.rackApi_.addButton(t)}addFolder(t){return this.rackApi_.addFolder(t)}addSeparator(t){return this.rackApi_.addSeparator(t)}addTab(t){return this.rackApi_.addTab(t)}add(t,e){this.rackApi_.add(t,e)}remove(t){this.rackApi_.remove(t)}addInput(t,e,n){return this.rackApi_.addInput(t,e,n)}addMonitor(t,e,n){return this.rackApi_.addMonitor(t,e,n)}addBlade(t){return this.rackApi_.addBlade(t)}}class ae extends wt{constructor(t,e){super(t,new Lt(t.rackController,e)),this.onPageAdd_=this.onPageAdd_.bind(this),this.onPageRemove_=this.onPageRemove_.bind(this),this.onSelect_=this.onSelect_.bind(this),this.emitter_=new m,this.pageApiMap_=new Map,this.rackApi_.on("change",t=>{this.emitter_.emit("change",{event:t})}),this.rackApi_.on("update",t=>{this.emitter_.emit("update",{event:t})}),this.controller_.tab.selectedIndex.emitter.on("change",this.onSelect_),this.controller_.pageSet.emitter.on("add",this.onPageAdd_),this.controller_.pageSet.emitter.on("remove",this.onPageRemove_),this.controller_.pageSet.items.forEach(t=>{this.setUpPageApi_(t)})}get pages(){return this.controller_.pageSet.items.map(t=>{const e=this.pageApiMap_.get(t);if(!e)throw p.shouldNeverHappen();return e})}addPage(t){const e=this.controller_.view.element.ownerDocument,n=new re(e,{itemProps:P.fromObject({selected:!1,title:t.title}),props:P.fromObject({selected:!1})});this.controller_.add(n,t.index);const i=this.pageApiMap_.get(n);if(!i)throw p.shouldNeverHappen();return i}removePage(t){this.controller_.remove(t)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}setUpPageApi_(t){const e=this.rackApi_["apiSet_"].find(e=>e.controller_===t.contentController);if(!e)throw p.shouldNeverHappen();const n=new oe(t,e);this.pageApiMap_.set(t,n)}onPageAdd_(t){this.setUpPageApi_(t.item)}onPageRemove_(t){const e=this.pageApiMap_.get(t.item);if(!e)throw p.shouldNeverHappen();this.pageApiMap_.delete(t.item)}onSelect_(t){this.emitter_.emit("select",{event:new s(this,t.rawValue)})}}const se=-1;class le{constructor(){this.onItemSelectedChange_=this.onItemSelectedChange_.bind(this),this.empty=O(!0),this.selectedIndex=O(se),this.items_=[]}add(t,e){const n=null!==e&&void 0!==e?e:this.items_.length;this.items_.splice(n,0,t),t.emitter.on("change",this.onItemSelectedChange_),this.keepSelection_()}remove(t){const e=this.items_.indexOf(t);e<0||(this.items_.splice(e,1),t.emitter.off("change",this.onItemSelectedChange_),this.keepSelection_())}keepSelection_(){if(0===this.items_.length)return this.selectedIndex.rawValue=se,void(this.empty.rawValue=!0);const t=this.items_.findIndex(t=>t.rawValue);t<0?(this.items_.forEach((t,e)=>{t.rawValue=0===e}),this.selectedIndex.rawValue=0):(this.items_.forEach((e,n)=>{e.rawValue=n===t}),this.selectedIndex.rawValue=t),this.empty.rawValue=!1}onItemSelectedChange_(t){if(t.rawValue){const e=this.items_.findIndex(e=>e===t.sender);this.items_.forEach((t,n)=>{t.rawValue=n===e}),this.selectedIndex.rawValue=e}else this.keepSelection_()}}const ce=y("tab");class ue{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(ce(),Ut()),e.viewProps.bindClassModifiers(this.element),w(e.empty,A(this.element,ce(void 0,"nop")));const n=t.createElement("div");n.classList.add(ce("t")),this.element.appendChild(n),this.itemsElement=n;const i=t.createElement("div");i.classList.add(ce("i")),this.element.appendChild(i);const r=e.contentsElement;r.classList.add(ce("c")),this.element.appendChild(r),this.contentsElement=r}}class he extends Rt{constructor(t,e){const n=new Wt(t,{blade:e.blade,viewProps:e.viewProps}),i=new le;super({blade:e.blade,rackController:n,view:new ue(t,{contentsElement:n.view.element,empty:i.empty,viewProps:e.viewProps})}),this.onPageAdd_=this.onPageAdd_.bind(this),this.onPageRemove_=this.onPageRemove_.bind(this),this.pageSet_=new St(()=>null),this.pageSet_.emitter.on("add",this.onPageAdd_),this.pageSet_.emitter.on("remove",this.onPageRemove_),this.tab=i}get pageSet(){return this.pageSet_}add(t,e){this.pageSet_.add(t,e)}remove(t){this.pageSet_.remove(this.pageSet_.items[t])}onPageAdd_(t){const e=t.item;ot(this.view.itemsElement,e.itemController.view.element,t.index),e.itemController.viewProps.set("parent",this.viewProps),this.rackController.rack.add(e.contentController,t.index),this.tab.add(e.props.value("selected"))}onPageRemove_(t){const e=t.item;at(e.itemController.view.element),e.itemController.viewProps.set("parent",null),this.rackController.rack.remove(e.contentController),this.tab.remove(e.props.value("selected"))}}const de={id:"tab",type:"blade",accept(t){const e=N,n=F(t,{pages:e.required.array(e.required.object({title:e.required.string})),view:e.required.constant("tab")});return n&&0!==n.pages.length?{params:n}:null},controller(t){const e=new he(t.document,{blade:t.blade,viewProps:t.viewProps});return t.params.pages.forEach(n=>{const i=new re(t.document,{itemProps:P.fromObject({selected:!1,title:n.title}),props:P.fromObject({selected:!1})});e.add(i)}),e},api(t){return t.controller instanceof he?new ae(t.controller,t.pool):null}};function pe(t,e){const n=t.accept(e.params);if(!n)return null;const i=N.optional.boolean(e.params["disabled"]).value,r=N.optional.boolean(e.params["hidden"]).value;return t.controller({blade:mt(),document:e.document,params:l(Object.assign(Object.assign({},n.params),{disabled:i,hidden:r})),viewProps:U.create({disabled:i,hidden:r})})}class fe{constructor(){this.disabled=!1,this.emitter=new m}dispose(){}tick(){this.disabled||this.emitter.emit("tick",{sender:this})}}class ge{constructor(t,e){this.disabled_=!1,this.timerId_=null,this.onTick_=this.onTick_.bind(this),this.doc_=t,this.emitter=new m,this.interval_=e,this.setTimer_()}get disabled(){return this.disabled_}set disabled(t){this.disabled_=t,this.disabled_?this.clearTimer_():this.setTimer_()}dispose(){this.clearTimer_()}clearTimer_(){if(null===this.timerId_)return;const t=this.doc_.defaultView;t&&t.clearInterval(this.timerId_),this.timerId_=null}setTimer_(){if(this.clearTimer_(),this.interval_<=0)return;const t=this.doc_.defaultView;t&&(this.timerId_=t.setInterval(this.onTick_,this.interval_))}onTick_(){this.disabled_||this.emitter.emit("tick",{sender:this})}}class me{constructor(t){this.onValueChange_=this.onValueChange_.bind(this),this.reader=t.reader,this.writer=t.writer,this.emitter=new m,this.value=t.value,this.value.emitter.on("change",this.onValueChange_),this.target=t.target,this.read()}read(){const t=this.target.read();void 0!==t&&(this.value.rawValue=this.reader(t))}write_(t){this.writer(this.target,t)}onValueChange_(t){this.write_(t.rawValue),this.emitter.emit("change",{options:t.options,rawValue:t.rawValue,sender:this})}}function ve(t,e){while(t.length<e)t.push(void 0)}function ye(t){const e=[];return ve(e,t),O(e)}function be(t){const e=t.indexOf(void 0);return l(e<0?t:t.slice(0,e))}function xe(t,e){const n=[...be(t),e];return n.length>t.length?n.splice(0,n.length-t.length):ve(n,t.length),n}class we{constructor(t){this.onTick_=this.onTick_.bind(this),this.reader_=t.reader,this.target=t.target,this.emitter=new m,this.value=t.value,this.ticker=t.ticker,this.ticker.emitter.on("tick",this.onTick_),this.read()}dispose(){this.ticker.dispose()}read(){const t=this.target.read();if(void 0===t)return;const e=this.value.rawValue,n=this.reader_(t);this.value.rawValue=xe(e,n),this.emitter.emit("update",{rawValue:n,sender:this})}onTick_(t){this.read()}}class _e{constructor(t){this.constraints=t}constrain(t){return this.constraints.reduce((t,e)=>{return e.constrain(t)},t)}}function Ce(t,e){if(t instanceof e)return t;if(t instanceof _e){const n=t.constraints.reduce((t,n)=>{return t||(n instanceof e?n:null)},null);if(n)return n}return null}class Ae{constructor(t){this.values=P.fromObject({max:t.max,min:t.min})}constrain(t){const e=this.values.get("max"),n=this.values.get("min");return Math.min(Math.max(t,n),e)}}class Ie{constructor(t){this.values=P.fromObject({options:t})}get options(){return this.values.get("options")}constrain(t){const e=this.values.get("options");if(0===e.length)return t;const n=e.filter(e=>{return e.value===t}).length>0;return n?t:e[0].value}}class Se{constructor(t){this.values=P.fromObject({max:t.max,min:t.min})}get maxValue(){return this.values.get("max")}get minValue(){return this.values.get("min")}constrain(t){const e=this.values.get("max"),n=this.values.get("min");let i=t;return c(n)||(i=Math.max(i,n)),c(e)||(i=Math.min(i,e)),i}}class Me{constructor(t,e=0){this.step=t,this.origin=e}constrain(t){const e=this.origin%this.step,n=Math.round((t-e)/this.step);return e+n*this.step}}const ke=y("lst");class Ee{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.props_=e.props,this.element=t.createElement("div"),this.element.classList.add(ke()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("select");n.classList.add(ke("s")),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.selectElement=n;const i=t.createElement("div");i.classList.add(ke("m")),i.appendChild(rt(t,"dropdown")),this.element.appendChild(i),e.value.emitter.on("change",this.onValueChange_),this.value_=e.value,_(this.props_,"options",e=>{st(this.selectElement),e.forEach(e=>{const n=t.createElement("option");n.textContent=e.text,this.selectElement.appendChild(n)}),this.update_()})}update_(){const t=this.props_.get("options").map(t=>t.value);this.selectElement.selectedIndex=t.indexOf(this.value_.rawValue)}onValueChange_(){this.update_()}}class Te{constructor(t,e){this.onSelectChange_=this.onSelectChange_.bind(this),this.props=e.props,this.value=e.value,this.viewProps=e.viewProps,this.view=new Ee(t,{props:this.props,value:this.value,viewProps:this.viewProps}),this.view.selectElement.addEventListener("change",this.onSelectChange_)}onSelectChange_(t){const e=l(t.currentTarget);this.value.rawValue=this.props.get("options")[e.selectedIndex].value}}const Oe=y("pop");class Pe{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Oe()),e.viewProps.bindClassModifiers(this.element),w(e.shows,A(this.element,Oe(void 0,"v")))}}class je{constructor(t,e){this.shows=O(!1),this.viewProps=e.viewProps,this.view=new Pe(t,{shows:this.shows,viewProps:this.viewProps})}}const Le=y("txt");class De{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(Le()),e.viewProps.bindClassModifiers(this.element),this.props_=e.props,this.props_.emitter.on("change",this.onChange_);const n=t.createElement("input");n.classList.add(Le("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,e.value.emitter.on("change",this.onChange_),this.value_=e.value,this.refresh()}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value_.rawValue)}onChange_(){this.refresh()}}class Re{constructor(t,e){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=e.parser,this.props=e.props,this.value=e.value,this.viewProps=e.viewProps,this.view=new De(t,{props:e.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(t){const e=l(t.currentTarget),n=e.value,i=this.parser_(n);c(i)||(this.value.rawValue=i),this.view.refresh()}}function Be(t){return String(t)}function Ne(t){return"false"!==t&&!!t}function Fe(t){return Be(t)}class ze{constructor(t){this.text=t}evaluate(){return Number(this.text)}toString(){return this.text}}const Ve={"**":(t,e)=>Math.pow(t,e),"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"&":(t,e)=>t&e,"^":(t,e)=>t^e,"|":(t,e)=>t|e};class Ge{constructor(t,e,n){this.left=e,this.operator=t,this.right=n}evaluate(){const t=Ve[this.operator];if(!t)throw new Error(`unexpected binary operator: '${this.operator}`);return t(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}const He={"+":t=>t,"-":t=>-t,"~":t=>~t};class We{constructor(t,e){this.operator=t,this.expression=e}evaluate(){const t=He[this.operator];if(!t)throw new Error(`unexpected unary operator: '${this.operator}`);return t(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function Ue(t){return(e,n)=>{for(let i=0;i<t.length;i++){const r=t[i](e,n);if(""!==r)return r}return""}}function Ze(t,e){var n;const i=t.substr(e).match(/^\s+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Ye(t,e){const n=t.substr(e,1);return n.match(/^[1-9]$/)?n:""}function Xe(t,e){var n;const i=t.substr(e).match(/^[0-9]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function qe(t,e){const n=Xe(t,e);if(""!==n)return n;const i=t.substr(e,1);if(e+=1,"-"!==i&&"+"!==i)return"";const r=Xe(t,e);return""===r?"":i+r}function Ke(t,e){const n=t.substr(e,1);if(e+=1,"e"!==n.toLowerCase())return"";const i=qe(t,e);return""===i?"":n+i}function Qe(t,e){const n=t.substr(e,1);if("0"===n)return n;const i=Ye(t,e);return e+=i.length,""===i?"":i+Xe(t,e)}function Je(t,e){const n=Qe(t,e);if(e+=n.length,""===n)return"";const i=t.substr(e,1);if(e+=i.length,"."!==i)return"";const r=Xe(t,e);return e+=r.length,n+i+r+Ke(t,e)}function $e(t,e){const n=t.substr(e,1);if(e+=n.length,"."!==n)return"";const i=Xe(t,e);return e+=i.length,""===i?"":n+i+Ke(t,e)}function tn(t,e){const n=Qe(t,e);return e+=n.length,""===n?"":n+Ke(t,e)}const en=Ue([Je,$e,tn]);function nn(t,e){var n;const i=t.substr(e).match(/^[01]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function rn(t,e){const n=t.substr(e,2);if(e+=n.length,"0b"!==n.toLowerCase())return"";const i=nn(t,e);return""===i?"":n+i}function on(t,e){var n;const i=t.substr(e).match(/^[0-7]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function an(t,e){const n=t.substr(e,2);if(e+=n.length,"0o"!==n.toLowerCase())return"";const i=on(t,e);return""===i?"":n+i}function sn(t,e){var n;const i=t.substr(e).match(/^[0-9a-f]+/i);return null!==(n=i&&i[0])&&void 0!==n?n:""}function ln(t,e){const n=t.substr(e,2);if(e+=n.length,"0x"!==n.toLowerCase())return"";const i=sn(t,e);return""===i?"":n+i}const cn=Ue([rn,an,ln]),un=Ue([cn,en]);function hn(t,e){const n=un(t,e);return e+=n.length,""===n?null:{evaluable:new ze(n),cursor:e}}function dn(t,e){const n=t.substr(e,1);if(e+=n.length,"("!==n)return null;const i=yn(t,e);if(!i)return null;e=i.cursor,e+=Ze(t,e).length;const r=t.substr(e,1);return e+=r.length,")"!==r?null:{evaluable:i.evaluable,cursor:e}}function pn(t,e){var n;return null!==(n=hn(t,e))&&void 0!==n?n:dn(t,e)}function fn(t,e){const n=pn(t,e);if(n)return n;const i=t.substr(e,1);if(e+=i.length,"+"!==i&&"-"!==i&&"~"!==i)return null;const r=fn(t,e);return r?(e=r.cursor,{cursor:e,evaluable:new We(i,r.evaluable)}):null}function gn(t,e,n){n+=Ze(e,n).length;const i=t.filter(t=>e.startsWith(t,n))[0];return i?(n+=i.length,n+=Ze(e,n).length,{cursor:n,operator:i}):null}function mn(t,e){return(n,i)=>{const r=t(n,i);if(!r)return null;i=r.cursor;let o=r.evaluable;for(;;){const r=gn(e,n,i);if(!r)break;i=r.cursor;const a=t(n,i);if(!a)return null;i=a.cursor,o=new Ge(r.operator,o,a.evaluable)}return o?{cursor:i,evaluable:o}:null}}const vn=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((t,e)=>{return mn(t,e)},fn);function yn(t,e){return e+=Ze(t,e).length,vn(t,e)}function bn(t){const e=yn(t,0);if(!e)return null;const n=e.cursor+Ze(t,e.cursor).length;return n!==t.length?null:e.evaluable}function xn(t){var e;const n=bn(t);return null!==(e=null===n||void 0===n?void 0:n.evaluate())&&void 0!==e?e:null}function wn(t){if("number"===typeof t)return t;if("string"===typeof t){const e=xn(t);if(!c(e))return e}return 0}function _n(t){return String(t)}function Cn(t){return e=>{return e.toFixed(Math.max(Math.min(t,20),0))}}const An=Cn(0);function In(t){return An(t)+"%"}function Sn(t){return String(t)}function Mn(t){return t}function kn({primary:t,secondary:e,forward:n,backward:i}){let r=!1;function o(t){r||(r=!0,t(),r=!1)}t.emitter.on("change",i=>{o(()=>{e.setRawValue(n(t,e),i.options)})}),e.emitter.on("change",r=>{o(()=>{t.setRawValue(i(t,e),r.options)}),o(()=>{e.setRawValue(n(t,e),r.options)})}),o(()=>{e.setRawValue(n(t,e),{forceEmit:!1,last:!0})})}function En(t,e){const n=t*(e.altKey?.1:1)*(e.shiftKey?10:1);return e.upKey?+n:e.downKey?-n:0}function Tn(t){return{altKey:t.altKey,downKey:"ArrowDown"===t.key,shiftKey:t.shiftKey,upKey:"ArrowUp"===t.key}}function On(t){return{altKey:t.altKey,downKey:"ArrowLeft"===t.key,shiftKey:t.shiftKey,upKey:"ArrowRight"===t.key}}function Pn(t){return"ArrowUp"===t||"ArrowDown"===t}function jn(t){return Pn(t)||"ArrowLeft"===t||"ArrowRight"===t}function Ln(t,e){var n,i;const r=e.ownerDocument.defaultView,o=e.getBoundingClientRect();return{x:t.pageX-((null!==(n=r&&r.scrollX)&&void 0!==n?n:0)+o.left),y:t.pageY-((null!==(i=r&&r.scrollY)&&void 0!==i?i:0)+o.top)}}class Dn{constructor(t){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=t,this.emitter=new m,t.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),t.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),t.addEventListener("touchend",this.onTouchEnd_),t.addEventListener("mousedown",this.onMouseDown_)}computePosition_(t){const e=this.elem_.getBoundingClientRect();return{bounds:{width:e.width,height:e.height},point:t?{x:t.x,y:t.y}:null}}onMouseDown_(t){var e;t.preventDefault(),null===(e=t.currentTarget)||void 0===e||e.focus();const n=this.elem_.ownerDocument;n.addEventListener("mousemove",this.onDocumentMouseMove_),n.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(Ln(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseMove_(t){this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(Ln(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseUp_(t){const e=this.elem_.ownerDocument;e.removeEventListener("mousemove",this.onDocumentMouseMove_),e.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(Ln(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onTouchStart_(t){t.preventDefault();const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchMove_(t){const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchEnd_(t){var e;const n=null!==(e=t.targetTouches.item(0))&&void 0!==e?e:this.lastTouch_,i=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(n?{x:n.clientX-i.left,y:n.clientY-i.top}:void 0),sender:this,shiftKey:t.shiftKey})}}function Rn(t,e,n,i,r){const o=(t-e)/(n-e);return i+o*(r-i)}function Bn(t){const e=String(t.toFixed(10)),n=e.split(".")[1];return n.replace(/0+$/,"").length}function Nn(t,e,n){return Math.min(Math.max(t,e),n)}function Fn(t,e){return(t%e+e)%e}const zn=y("txt");class Vn{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.props_=e.props,this.props_.emitter.on("change",this.onChange_),this.element=t.createElement("div"),this.element.classList.add(zn(),zn(void 0,"num")),e.arrayPosition&&this.element.classList.add(zn(void 0,e.arrayPosition)),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("input");n.classList.add(zn("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=e.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(zn()),this.inputElement.classList.add(zn("i"));const i=t.createElement("div");i.classList.add(zn("k")),this.element.appendChild(i),this.knobElement=i;const r=t.createElementNS(K,"svg");r.classList.add(zn("g")),this.knobElement.appendChild(r);const o=t.createElementNS(K,"path");o.classList.add(zn("gb")),r.appendChild(o),this.guideBodyElem_=o;const a=t.createElementNS(K,"path");a.classList.add(zn("gh")),r.appendChild(a),this.guideHeadElem_=a;const s=t.createElement("div");s.classList.add(y("tt")()),this.knobElement.appendChild(s),this.tooltipElem_=s,e.value.emitter.on("change",this.onChange_),this.value=e.value,this.refresh()}onDraggingChange_(t){if(null===t.rawValue)return void this.element.classList.remove(zn(void 0,"drg"));this.element.classList.add(zn(void 0,"drg"));const e=t.rawValue/this.props_.get("draggingScale"),n=e+(e>0?-1:e<0?1:0),i=Nn(-n,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",[`M ${n+i},0 L${n},4 L${n+i},8`,`M ${e},-1 L${e},9`].join(" ")),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${e},4`);const r=this.props_.get("formatter");this.tooltipElem_.textContent=r(this.value.rawValue),this.tooltipElem_.style.left=`${e}px`}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value.rawValue)}onChange_(){this.refresh()}}class Gn{constructor(t,e){var n;this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.parser_=e.parser,this.props=e.props,this.sliderProps_=null!==(n=e.sliderProps)&&void 0!==n?n:null,this.value=e.value,this.viewProps=e.viewProps,this.dragging_=O(null),this.view=new Vn(t,{arrayPosition:e.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);const i=new Dn(this.view.knobElement);i.emitter.on("down",this.onPointerDown_),i.emitter.on("move",this.onPointerMove_),i.emitter.on("up",this.onPointerUp_)}constrainValue_(t){var e,n;const i=null===(e=this.sliderProps_)||void 0===e?void 0:e.get("minValue"),r=null===(n=this.sliderProps_)||void 0===n?void 0:n.get("maxValue");let o=t;return void 0!==i&&(o=Math.max(o,i)),void 0!==r&&(o=Math.min(o,r)),o}onInputChange_(t){const e=l(t.currentTarget),n=e.value,i=this.parser_(n);c(i)||(this.value.rawValue=this.constrainValue_(i)),this.view.refresh()}onInputKeyDown_(t){const e=En(this.baseStep_,Tn(t));0!==e&&this.value.setRawValue(this.constrainValue_(this.value.rawValue+e),{forceEmit:!1,last:!1})}onInputKeyUp_(t){const e=En(this.baseStep_,Tn(t));0!==e&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(t){if(!t.point)return null;const e=t.point.x-t.bounds.width/2;return this.constrainValue_(this.originRawValue_+e*this.props.get("draggingScale"))}onPointerMove_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_)}onPointerUp_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null)}}const Hn=y("sld");class Wn{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.props_=e.props,this.props_.emitter.on("change",this.onChange_),this.element=t.createElement("div"),this.element.classList.add(Hn()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Hn("t")),e.viewProps.bindTabIndex(n),this.element.appendChild(n),this.trackElement=n;const i=t.createElement("div");i.classList.add(Hn("k")),this.trackElement.appendChild(i),this.knobElement=i,e.value.emitter.on("change",this.onChange_),this.value=e.value,this.update_()}update_(){const t=Nn(Rn(this.value.rawValue,this.props_.get("minValue"),this.props_.get("maxValue"),0,100),0,100);this.knobElement.style.width=`${t}%`}onChange_(){this.update_()}}class Un{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDownOrMove_=this.onPointerDownOrMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.value=e.value,this.viewProps=e.viewProps,this.props=e.props,this.view=new Wn(t,{props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Dn(this.view.trackElement),this.ptHandler_.emitter.on("down",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("move",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.trackElement.addEventListener("keydown",this.onKeyDown_),this.view.trackElement.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(t,e){t.point&&this.value.setRawValue(Rn(Nn(t.point.x,0,t.bounds.width),0,t.bounds.width,this.props.get("minValue"),this.props.get("maxValue")),e)}onPointerDownOrMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onKeyDown_(t){const e=En(this.baseStep_,On(t));0!==e&&this.value.setRawValue(this.value.rawValue+e,{forceEmit:!1,last:!1})}onKeyUp_(t){const e=En(this.baseStep_,On(t));0!==e&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}const Zn=y("sldtxt");class Yn{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Zn());const n=t.createElement("div");n.classList.add(Zn("s")),this.sliderView_=e.sliderView,n.appendChild(this.sliderView_.element),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(Zn("t")),this.textView_=e.textView,i.appendChild(this.textView_.element),this.element.appendChild(i)}}class Xn{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.sliderC_=new Un(t,{baseStep:e.baseStep,props:e.sliderProps,value:e.value,viewProps:this.viewProps}),this.textC_=new Gn(t,{baseStep:e.baseStep,parser:e.parser,props:e.textProps,sliderProps:e.sliderProps,value:e.value,viewProps:e.viewProps}),this.view=new Yn(t,{sliderView:this.sliderC_.view,textView:this.textC_.view})}get sliderController(){return this.sliderC_}get textController(){return this.textC_}}function qn(t,e){t.write(e)}function Kn(t){const e=N;return Array.isArray(t)?e.required.array(e.required.object({text:e.required.string,value:e.required.raw}))(t).value:"object"===typeof t?e.required.raw(t).value:void 0}function Qn(t){if("inline"===t||"popup"===t)return t}function Jn(t){const e=N;return e.required.object({max:e.optional.number,min:e.optional.number,step:e.optional.number})(t).value}function $n(t){if(Array.isArray(t))return t;const e=[];return Object.keys(t).forEach(n=>{e.push({text:n,value:t[n]})}),e}function ti(t){return c(t)?null:new Ie($n(l(t)))}function ei(t){const e=t?Ce(t,Me):null;return e?e.step:null}function ni(t,e){const n=t&&Ce(t,Me);return n?Bn(n.step):Math.max(Bn(e),2)}function ii(t){const e=ei(t);return null!==e&&void 0!==e?e:1}function ri(t,e){var n;const i=t&&Ce(t,Me),r=Math.abs(null!==(n=null===i||void 0===i?void 0:i.step)&&void 0!==n?n:e);return 0===r?.1:Math.pow(10,Math.floor(Math.log10(r))-1)}const oi=y("ckb");class ai{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(oi()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("label");n.classList.add(oi("l")),this.element.appendChild(n);const i=t.createElement("input");i.classList.add(oi("i")),i.type="checkbox",n.appendChild(i),this.inputElement=i,e.viewProps.bindDisabled(this.inputElement);const r=t.createElement("div");r.classList.add(oi("w")),n.appendChild(r);const o=rt(t,"check");r.appendChild(o),e.value.emitter.on("change",this.onValueChange_),this.value=e.value,this.update_()}update_(){this.inputElement.checked=this.value.rawValue}onValueChange_(){this.update_()}}class si{constructor(t,e){this.onInputChange_=this.onInputChange_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.view=new ai(t,{value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(t){const e=l(t.currentTarget);this.value.rawValue=e.checked}}function li(t){const e=[],n=ti(t.options);return n&&e.push(n),new _e(e)}const ci={id:"input-bool",type:"input",accept:(t,e)=>{if("boolean"!==typeof t)return null;const n=N,i=F(e,{options:n.optional.custom(Kn)});return i?{initialValue:t,params:i}:null},binding:{reader:t=>Ne,constraint:t=>li(t.params),writer:t=>qn},controller:t=>{const e=t.document,n=t.value,i=t.constraint,r=i&&Ce(i,Ie);return r?new Te(e,{props:new P({options:r.values.value("options")}),value:n,viewProps:t.viewProps}):new si(e,{value:n,viewProps:t.viewProps})}},ui=y("col");class hi{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(ui()),e.foldable.bindExpandedClass(this.element,ui(void 0,"expanded")),_(e.foldable,"completed",A(this.element,ui(void 0,"cpl")));const n=t.createElement("div");n.classList.add(ui("h")),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(ui("s")),n.appendChild(i),this.swatchElement=i;const r=t.createElement("div");if(r.classList.add(ui("t")),n.appendChild(r),this.textElement=r,"inline"===e.pickerLayout){const e=t.createElement("div");e.classList.add(ui("p")),this.element.appendChild(e),this.pickerElement=e}else this.pickerElement=null}}function di(t,e,n){const i=Nn(t/255,0,1),r=Nn(e/255,0,1),o=Nn(n/255,0,1),a=Math.max(i,r,o),s=Math.min(i,r,o),l=a-s;let c=0,u=0;const h=(s+a)/2;return 0!==l&&(u=l/(1-Math.abs(a+s-1)),c=i===a?(r-o)/l:r===a?2+(o-i)/l:4+(i-r)/l,c=c/6+(c<0?1:0)),[360*c,100*u,100*h]}function pi(t,e,n){const i=(t%360+360)%360,r=Nn(e/100,0,1),o=Nn(n/100,0,1),a=(1-Math.abs(2*o-1))*r,s=a*(1-Math.abs(i/60%2-1)),l=o-a/2;let c,u,h;return[c,u,h]=i>=0&&i<60?[a,s,0]:i>=60&&i<120?[s,a,0]:i>=120&&i<180?[0,a,s]:i>=180&&i<240?[0,s,a]:i>=240&&i<300?[s,0,a]:[a,0,s],[255*(c+l),255*(u+l),255*(h+l)]}function fi(t,e,n){const i=Nn(t/255,0,1),r=Nn(e/255,0,1),o=Nn(n/255,0,1),a=Math.max(i,r,o),s=Math.min(i,r,o),l=a-s;let c;c=0===l?0:a===i?((r-o)/l%6+6)%6*60:a===r?60*((o-i)/l+2):60*((i-r)/l+4);const u=0===a?0:l/a,h=a;return[c,100*u,100*h]}function gi(t,e,n){const i=Fn(t,360),r=Nn(e/100,0,1),o=Nn(n/100,0,1),a=o*r,s=a*(1-Math.abs(i/60%2-1)),l=o-a;let c,u,h;return[c,u,h]=i>=0&&i<60?[a,s,0]:i>=60&&i<120?[s,a,0]:i>=120&&i<180?[0,a,s]:i>=180&&i<240?[0,s,a]:i>=240&&i<300?[s,0,a]:[a,0,s],[255*(c+l),255*(u+l),255*(h+l)]}function mi(t,e,n){const i=n+e*(100-Math.abs(2*n-100))/200;return[t,0!==i?e*(100-Math.abs(2*n-100))/i:0,n+e*(100-Math.abs(2*n-100))/200]}function vi(t,e,n){const i=100-Math.abs(n*(200-e)/100-100);return[t,0!==i?e*n/i:0,n*(200-e)/200]}function yi(t){return[t[0],t[1],t[2]]}function bi(t,e){return[t[0],t[1],t[2],e]}const xi={hsl:{hsl:(t,e,n)=>[t,e,n],hsv:mi,rgb:pi},hsv:{hsl:vi,hsv:(t,e,n)=>[t,e,n],rgb:gi},rgb:{hsl:di,hsv:fi,rgb:(t,e,n)=>[t,e,n]}};function wi(t,e){return["float"===e?1:"rgb"===t?255:360,"float"===e?1:"rgb"===t?255:100,"float"===e?1:"rgb"===t?255:100]}function _i(t,e){return t===e?e:Fn(t,e)}function Ci(t,e,n){var i;const r=wi(e,n);return["rgb"===e?Nn(t[0],0,r[0]):_i(t[0],r[0]),Nn(t[1],0,r[1]),Nn(t[2],0,r[2]),Nn(null!==(i=t[3])&&void 0!==i?i:1,0,1)]}function Ai(t,e,n,i){const r=wi(e,n),o=wi(e,i);return t.map((t,e)=>t/r[e]*o[e])}function Ii(t,e,n){const i=Ai(t,e.mode,e.type,"int"),r=xi[e.mode][n.mode](...i);return Ai(r,n.mode,"int",n.type)}function Si(t,e){return"object"===typeof t&&!c(t)&&(e in t&&"number"===typeof t[e])}class Mi{static black(t="int"){return new Mi([0,0,0],"rgb",t)}static fromObject(t,e="int"){const n="a"in t?[t.r,t.g,t.b,t.a]:[t.r,t.g,t.b];return new Mi(n,"rgb",e)}static toRgbaObject(t,e="int"){return t.toRgbaObject(e)}static isRgbColorObject(t){return Si(t,"r")&&Si(t,"g")&&Si(t,"b")}static isRgbaColorObject(t){return this.isRgbColorObject(t)&&Si(t,"a")}static isColorObject(t){return this.isRgbColorObject(t)}static equals(t,e){if(t.mode!==e.mode)return!1;const n=t.comps_,i=e.comps_;for(let r=0;r<n.length;r++)if(n[r]!==i[r])return!1;return!0}constructor(t,e,n="int"){this.mode=e,this.type=n,this.comps_=Ci(t,e,n)}getComponents(t,e="int"){return bi(Ii(yi(this.comps_),{mode:this.mode,type:this.type},{mode:null!==t&&void 0!==t?t:this.mode,type:e}),this.comps_[3])}toRgbaObject(t="int"){const e=this.getComponents("rgb",t);return{r:e[0],g:e[1],b:e[2],a:e[3]}}}const ki=y("colp");class Ei{constructor(t,e){this.alphaViews_=null,this.element=t.createElement("div"),this.element.classList.add(ki()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(ki("hsv"));const i=t.createElement("div");i.classList.add(ki("sv")),this.svPaletteView_=e.svPaletteView,i.appendChild(this.svPaletteView_.element),n.appendChild(i);const r=t.createElement("div");r.classList.add(ki("h")),this.hPaletteView_=e.hPaletteView,r.appendChild(this.hPaletteView_.element),n.appendChild(r),this.element.appendChild(n);const o=t.createElement("div");if(o.classList.add(ki("rgb")),this.textView_=e.textView,o.appendChild(this.textView_.element),this.element.appendChild(o),e.alphaViews){this.alphaViews_={palette:e.alphaViews.palette,text:e.alphaViews.text};const n=t.createElement("div");n.classList.add(ki("a"));const i=t.createElement("div");i.classList.add(ki("ap")),i.appendChild(this.alphaViews_.palette.element),n.appendChild(i);const r=t.createElement("div");r.classList.add(ki("at")),r.appendChild(this.alphaViews_.text.element),n.appendChild(r),this.element.appendChild(n)}}get allFocusableElements(){const t=[this.svPaletteView_.element,this.hPaletteView_.element,this.textView_.modeSelectElement,...this.textView_.textViews.map(t=>t.inputElement)];return this.alphaViews_&&t.push(this.alphaViews_.palette.element,this.alphaViews_.text.inputElement),t}}function Ti(t){return"int"===t?"int":"float"===t?"float":void 0}function Oi(t){const e=N;return F(t,{alpha:e.optional.boolean,color:e.optional.object({alpha:e.optional.boolean,type:e.optional.custom(Ti)}),expanded:e.optional.boolean,picker:e.optional.custom(Qn)})}function Pi(t){return t?.1:1}function ji(t){var e;return null===(e=t.color)||void 0===e?void 0:e.type}function Li(t,e){return t.alpha===e.alpha&&t.mode===e.mode&&t.notation===e.notation&&t.type===e.type}function Di(t,e){const n=t.match(/^(.+)%$/);return n?Math.min(.01*parseFloat(n[1])*e,e):Math.min(parseFloat(t),e)}const Ri={deg:t=>t,grad:t=>360*t/400,rad:t=>360*t/(2*Math.PI),turn:t=>360*t};function Bi(t){const e=t.match(/^([0-9.]+?)(deg|grad|rad|turn)$/);if(!e)return parseFloat(t);const n=parseFloat(e[1]),i=e[2];return Ri[i](n)}function Ni(t){const e=t.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!e)return null;const n=[Di(e[1],255),Di(e[2],255),Di(e[3],255)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function Fi(t){return e=>{const n=Ni(e);return n?new Mi(n,"rgb",t):null}}function zi(t){const e=t.match(/^rgba\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!e)return null;const n=[Di(e[1],255),Di(e[2],255),Di(e[3],255),Di(e[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function Vi(t){return e=>{const n=zi(e);return n?new Mi(n,"rgb",t):null}}function Gi(t){const e=t.match(/^hsl\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!e)return null;const n=[Bi(e[1]),Di(e[2],100),Di(e[3],100)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function Hi(t){return e=>{const n=Gi(e);return n?new Mi(n,"hsl",t):null}}function Wi(t){const e=t.match(/^hsla\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!e)return null;const n=[Bi(e[1]),Di(e[2],100),Di(e[3],100),Di(e[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function Ui(t){return e=>{const n=Wi(e);return n?new Mi(n,"hsl",t):null}}function Zi(t){const e=t.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(e)return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)];const n=t.match(/^(?:#|0x)([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null}function Yi(t){const e=Zi(t);return e?new Mi(e,"rgb","int"):null}function Xi(t){const e=t.match(/^#?([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(e)return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),Rn(parseInt(e[4]+e[4],16),0,255,0,1)];const n=t.match(/^(?:#|0x)?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),Rn(parseInt(n[4],16),0,255,0,1)]:null}function qi(t){const e=Xi(t);return e?new Mi(e,"rgb","int"):null}function Ki(t){const e=t.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!e)return null;const n=[parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function Qi(t){return e=>{const n=Ki(e);return n?new Mi(n,"rgb",t):null}}function Ji(t){const e=t.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*a\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!e)return null;const n=[parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]),parseFloat(e[4])];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function $i(t){return e=>{const n=Ji(e);return n?new Mi(n,"rgb",t):null}}const tr=[{parser:Zi,result:{alpha:!1,mode:"rgb",notation:"hex"}},{parser:Xi,result:{alpha:!0,mode:"rgb",notation:"hex"}},{parser:Ni,result:{alpha:!1,mode:"rgb",notation:"func"}},{parser:zi,result:{alpha:!0,mode:"rgb",notation:"func"}},{parser:Gi,result:{alpha:!1,mode:"hsl",notation:"func"}},{parser:Wi,result:{alpha:!0,mode:"hsl",notation:"func"}},{parser:Ki,result:{alpha:!1,mode:"rgb",notation:"object"}},{parser:Ji,result:{alpha:!0,mode:"rgb",notation:"object"}}];function er(t){return tr.reduce((e,{parser:n,result:i})=>{return e||(n(t)?i:null)},null)}function nr(t,e="int"){const n=er(t);return n?"hex"===n.notation&&"float"!==e?Object.assign(Object.assign({},n),{type:"int"}):"func"===n.notation?Object.assign(Object.assign({},n),{type:e}):null:null}const ir={int:[Yi,qi,Fi("int"),Vi("int"),Hi("int"),Ui("int"),Qi("int"),$i("int")],float:[Fi("float"),Vi("float"),Hi("float"),Ui("float"),Qi("float"),$i("float")]};function rr(t){const e=ir[t];return n=>{if("string"!==typeof n)return Mi.black(t);const i=e.reduce((t,e)=>{return t||e(n)},null);return null!==i&&void 0!==i?i:Mi.black(t)}}function or(t){const e=ir[t];return t=>{return e.reduce((e,n)=>{return e||n(t)},null)}}function ar(t){const e=Nn(Math.floor(t),0,255).toString(16);return 1===e.length?`0${e}`:e}function sr(t,e="#"){const n=yi(t.getComponents("rgb")).map(ar).join("");return`${e}${n}`}function lr(t,e="#"){const n=t.getComponents("rgb"),i=[n[0],n[1],n[2],255*n[3]].map(ar).join("");return`${e}${i}`}function cr(t,e){const n=Cn("float"===e?2:0),i=yi(t.getComponents("rgb",e)).map(t=>n(t));return`rgb(${i.join(", ")})`}function ur(t){return e=>{return cr(e,t)}}function hr(t,e){const n=Cn(2),i=Cn("float"===e?2:0),r=t.getComponents("rgb",e).map((t,e)=>{const r=3===e?n:i;return r(t)});return`rgba(${r.join(", ")})`}function dr(t){return e=>{return hr(e,t)}}function pr(t){const e=[Cn(0),In,In],n=yi(t.getComponents("hsl")).map((t,n)=>e[n](t));return`hsl(${n.join(", ")})`}function fr(t){const e=[Cn(0),In,In,Cn(2)],n=t.getComponents("hsl").map((t,n)=>e[n](t));return`hsla(${n.join(", ")})`}function gr(t,e){const n=Cn("float"===e?2:0),i=["r","g","b"],r=yi(t.getComponents("rgb",e)).map((t,e)=>`${i[e]}: ${n(t)}`);return`{${r.join(", ")}}`}function mr(t){return e=>gr(e,t)}function vr(t,e){const n=Cn(2),i=Cn("float"===e?2:0),r=["r","g","b","a"],o=t.getComponents("rgb",e).map((t,e)=>{const o=3===e?n:i;return`${r[e]}: ${o(t)}`});return`{${o.join(", ")}}`}function yr(t){return e=>vr(e,t)}const br=[{format:{alpha:!1,mode:"rgb",notation:"hex",type:"int"},stringifier:sr},{format:{alpha:!0,mode:"rgb",notation:"hex",type:"int"},stringifier:lr},{format:{alpha:!1,mode:"hsl",notation:"func",type:"int"},stringifier:pr},{format:{alpha:!0,mode:"hsl",notation:"func",type:"int"},stringifier:fr},...["int","float"].reduce((t,e)=>{return[...t,{format:{alpha:!1,mode:"rgb",notation:"func",type:e},stringifier:ur(e)},{format:{alpha:!0,mode:"rgb",notation:"func",type:e},stringifier:dr(e)},{format:{alpha:!1,mode:"rgb",notation:"object",type:e},stringifier:mr(e)},{format:{alpha:!0,mode:"rgb",notation:"object",type:e},stringifier:yr(e)}]},[])];function xr(t){return br.reduce((e,n)=>{return e||(Li(n.format,t)?n.stringifier:null)},null)}const wr=y("apl");class _r{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.value=e.value,this.value.emitter.on("change",this.onValueChange_),this.element=t.createElement("div"),this.element.classList.add(wr()),e.viewProps.bindClassModifiers(this.element),e.viewProps.bindTabIndex(this.element);const n=t.createElement("div");n.classList.add(wr("b")),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(wr("c")),n.appendChild(i),this.colorElem_=i;const r=t.createElement("div");r.classList.add(wr("m")),this.element.appendChild(r),this.markerElem_=r;const o=t.createElement("div");o.classList.add(wr("p")),this.markerElem_.appendChild(o),this.previewElem_=o,this.update_()}update_(){const t=this.value.rawValue,e=t.getComponents("rgb"),n=new Mi([e[0],e[1],e[2],0],"rgb"),i=new Mi([e[0],e[1],e[2],255],"rgb"),r=["to right",hr(n),hr(i)];this.colorElem_.style.background=`linear-gradient(${r.join(",")})`,this.previewElem_.style.backgroundColor=hr(t);const o=Rn(e[3],0,1,0,100);this.markerElem_.style.left=`${o}%`}onValueChange_(){this.update_()}}class Cr{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.view=new _r(t,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Dn(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(t,e){if(!t.point)return;const n=t.point.x/t.bounds.width,i=this.value.rawValue,[r,o,a]=i.getComponents("hsv");this.value.setRawValue(new Mi([r,o,a,n],"hsv"),e)}onPointerDown_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onKeyDown_(t){const e=En(Pi(!0),On(t));if(0===e)return;const n=this.value.rawValue,[i,r,o,a]=n.getComponents("hsv");this.value.setRawValue(new Mi([i,r,o,a+e],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(t){const e=En(Pi(!0),On(t));0!==e&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}const Ar=y("coltxt");function Ir(t){const e=t.createElement("select"),n=[{text:"RGB",value:"rgb"},{text:"HSL",value:"hsl"},{text:"HSV",value:"hsv"}];return e.appendChild(n.reduce((e,n)=>{const i=t.createElement("option");return i.textContent=n.text,i.value=n.value,e.appendChild(i),e},t.createDocumentFragment())),e}class Sr{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Ar()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Ar("m")),this.modeElem_=Ir(t),this.modeElem_.classList.add(Ar("ms")),n.appendChild(this.modeSelectElement),e.viewProps.bindDisabled(this.modeElem_);const i=t.createElement("div");i.classList.add(Ar("mm")),i.appendChild(rt(t,"dropdown")),n.appendChild(i),this.element.appendChild(n);const r=t.createElement("div");r.classList.add(Ar("w")),this.element.appendChild(r),this.textsElem_=r,this.textViews_=e.textViews,this.applyTextViews_(),w(e.colorMode,t=>{this.modeElem_.value=t})}get modeSelectElement(){return this.modeElem_}get textViews(){return this.textViews_}set textViews(t){this.textViews_=t,this.applyTextViews_()}applyTextViews_(){st(this.textsElem_);const t=this.element.ownerDocument;this.textViews_.forEach(e=>{const n=t.createElement("div");n.classList.add(Ar("c")),n.appendChild(e.element),this.textsElem_.appendChild(n)})}}function Mr(t){return Cn("float"===t?2:0)}function kr(t,e,n){const i=wi(t,e)[n];return new Ae({min:0,max:i})}function Er(t,e,n){return new Gn(t,{arrayPosition:0===n?"fst":2===n?"lst":"mid",baseStep:Pi(!1),parser:e.parser,props:P.fromObject({draggingScale:"float"===e.colorType?.01:1,formatter:Mr(e.colorType)}),value:O(0,{constraint:kr(e.colorMode,e.colorType,n)}),viewProps:e.viewProps})}class Tr{constructor(t,e){this.onModeSelectChange_=this.onModeSelectChange_.bind(this),this.colorType_=e.colorType,this.parser_=e.parser,this.value=e.value,this.viewProps=e.viewProps,this.colorMode=O(this.value.rawValue.mode),this.ccs_=this.createComponentControllers_(t),this.view=new Sr(t,{colorMode:this.colorMode,textViews:[this.ccs_[0].view,this.ccs_[1].view,this.ccs_[2].view],viewProps:this.viewProps}),this.view.modeSelectElement.addEventListener("change",this.onModeSelectChange_)}createComponentControllers_(t){const e={colorMode:this.colorMode.rawValue,colorType:this.colorType_,parser:this.parser_,viewProps:this.viewProps},n=[Er(t,e,0),Er(t,e,1),Er(t,e,2)];return n.forEach((t,e)=>{kn({primary:this.value,secondary:t.value,forward:t=>{return t.rawValue.getComponents(this.colorMode.rawValue,this.colorType_)[e]},backward:(t,n)=>{const i=this.colorMode.rawValue,r=t.rawValue.getComponents(i,this.colorType_);return r[e]=n.rawValue,new Mi(bi(yi(r),r[3]),i,this.colorType_)}})}),n}onModeSelectChange_(t){const e=t.currentTarget;this.colorMode.rawValue=e.value,this.ccs_=this.createComponentControllers_(this.view.element.ownerDocument),this.view.textViews=[this.ccs_[0].view,this.ccs_[1].view,this.ccs_[2].view]}}const Or=y("hpl");class Pr{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.value=e.value,this.value.emitter.on("change",this.onValueChange_),this.element=t.createElement("div"),this.element.classList.add(Or()),e.viewProps.bindClassModifiers(this.element),e.viewProps.bindTabIndex(this.element);const n=t.createElement("div");n.classList.add(Or("c")),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(Or("m")),this.element.appendChild(i),this.markerElem_=i,this.update_()}update_(){const t=this.value.rawValue,[e]=t.getComponents("hsv");this.markerElem_.style.backgroundColor=cr(new Mi([e,100,100],"hsv"));const n=Rn(e,0,360,0,100);this.markerElem_.style.left=`${n}%`}onValueChange_(){this.update_()}}class jr{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.view=new Pr(t,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Dn(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(t,e){if(!t.point)return;const n=Rn(Nn(t.point.x,0,t.bounds.width),0,t.bounds.width,0,360),i=this.value.rawValue,[,r,o,a]=i.getComponents("hsv");this.value.setRawValue(new Mi([n,r,o,a],"hsv"),e)}onPointerDown_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onKeyDown_(t){const e=En(Pi(!1),On(t));if(0===e)return;const n=this.value.rawValue,[i,r,o,a]=n.getComponents("hsv");this.value.setRawValue(new Mi([i+e,r,o,a],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(t){const e=En(Pi(!1),On(t));0!==e&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}const Lr=y("svp"),Dr=64;class Rr{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.value=e.value,this.value.emitter.on("change",this.onValueChange_),this.element=t.createElement("div"),this.element.classList.add(Lr()),e.viewProps.bindClassModifiers(this.element),e.viewProps.bindTabIndex(this.element);const n=t.createElement("canvas");n.height=Dr,n.width=Dr,n.classList.add(Lr("c")),this.element.appendChild(n),this.canvasElement=n;const i=t.createElement("div");i.classList.add(Lr("m")),this.element.appendChild(i),this.markerElem_=i,this.update_()}update_(){const t=nt(this.canvasElement);if(!t)return;const e=this.value.rawValue,n=e.getComponents("hsv"),i=this.canvasElement.width,r=this.canvasElement.height,o=t.getImageData(0,0,i,r),a=o.data;for(let c=0;c<r;c++)for(let t=0;t<i;t++){const e=Rn(t,0,i,0,100),o=Rn(c,0,r,100,0),s=gi(n[0],e,o),l=4*(c*i+t);a[l]=s[0],a[l+1]=s[1],a[l+2]=s[2],a[l+3]=255}t.putImageData(o,0,0);const s=Rn(n[1],0,100,0,100);this.markerElem_.style.left=`${s}%`;const l=Rn(n[2],0,100,100,0);this.markerElem_.style.top=`${l}%`}onValueChange_(){this.update_()}}class Br{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.view=new Rr(t,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Dn(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(t,e){if(!t.point)return;const n=Rn(t.point.x,0,t.bounds.width,0,100),i=Rn(t.point.y,0,t.bounds.height,100,0),[r,,,o]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new Mi([r,n,i,o],"hsv"),e)}onPointerDown_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onKeyDown_(t){jn(t.key)&&t.preventDefault();const[e,n,i,r]=this.value.rawValue.getComponents("hsv"),o=Pi(!1),a=En(o,On(t)),s=En(o,Tn(t));0===a&&0===s||this.value.setRawValue(new Mi([e,n+a,i+s,r],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(t){const e=Pi(!1),n=En(e,On(t)),i=En(e,Tn(t));0===n&&0===i||this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class Nr{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.hPaletteC_=new jr(t,{value:this.value,viewProps:this.viewProps}),this.svPaletteC_=new Br(t,{value:this.value,viewProps:this.viewProps}),this.alphaIcs_=e.supportsAlpha?{palette:new Cr(t,{value:this.value,viewProps:this.viewProps}),text:new Gn(t,{parser:xn,baseStep:.1,props:P.fromObject({draggingScale:.01,formatter:Cn(2)}),value:O(0,{constraint:new Ae({min:0,max:1})}),viewProps:this.viewProps})}:null,this.alphaIcs_&&kn({primary:this.value,secondary:this.alphaIcs_.text.value,forward:t=>{return t.rawValue.getComponents()[3]},backward:(t,e)=>{const n=t.rawValue.getComponents();return n[3]=e.rawValue,new Mi(n,t.rawValue.mode)}}),this.textC_=new Tr(t,{colorType:e.colorType,parser:xn,value:this.value,viewProps:this.viewProps}),this.view=new Ei(t,{alphaViews:this.alphaIcs_?{palette:this.alphaIcs_.palette.view,text:this.alphaIcs_.text.view}:null,hPaletteView:this.hPaletteC_.view,supportsAlpha:e.supportsAlpha,svPaletteView:this.svPaletteC_.view,textView:this.textC_.view,viewProps:this.viewProps})}get textController(){return this.textC_}}const Fr=y("colsw");class zr{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),e.value.emitter.on("change",this.onValueChange_),this.value=e.value,this.element=t.createElement("div"),this.element.classList.add(Fr()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Fr("sw")),this.element.appendChild(n),this.swatchElem_=n;const i=t.createElement("button");i.classList.add(Fr("b")),e.viewProps.bindDisabled(i),this.element.appendChild(i),this.buttonElement=i,this.update_()}update_(){const t=this.value.rawValue;this.swatchElem_.style.backgroundColor=lr(t)}onValueChange_(){this.update_()}}class Vr{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new zr(t,{value:this.value,viewProps:this.viewProps})}}class Gr{constructor(t,e){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.foldable_=vt.create(e.expanded),this.swatchC_=new Vr(t,{value:this.value,viewProps:this.viewProps});const n=this.swatchC_.view.buttonElement;n.addEventListener("blur",this.onButtonBlur_),n.addEventListener("click",this.onButtonClick_),this.textC_=new Re(t,{parser:e.parser,props:P.fromObject({formatter:e.formatter}),value:this.value,viewProps:this.viewProps}),this.view=new hi(t,{foldable:this.foldable_,pickerLayout:e.pickerLayout}),this.view.swatchElement.appendChild(this.swatchC_.view.element),this.view.textElement.appendChild(this.textC_.view.element),this.popC_="popup"===e.pickerLayout?new je(t,{viewProps:this.viewProps}):null;const i=new Nr(t,{colorType:e.colorType,supportsAlpha:e.supportsAlpha,value:this.value,viewProps:this.viewProps});i.view.allFocusableElements.forEach(t=>{t.addEventListener("blur",this.onPopupChildBlur_),t.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=i,this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(i.view.element),kn({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:t=>t.rawValue,backward:(t,e)=>e.rawValue})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),xt(this.foldable_,this.view.pickerElement))}get textController(){return this.textC_}onButtonBlur_(t){if(!this.popC_)return;const e=this.view.element,n=l(t.relatedTarget);n&&e.contains(n)||(this.popC_.shows.rawValue=!1)}onButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(t){if(!this.popC_)return;const e=this.popC_.view.element,n=ct(t);n&&e.contains(n)||n&&n===this.swatchC_.view.buttonElement&&!$(e.ownerDocument)||(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(t){this.popC_?"Escape"===t.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===t.key&&this.swatchC_.view.buttonElement.focus()}}function Hr(t,e){return Mi.isColorObject(t)?Mi.fromObject(t,e):Mi.black(e)}function Wr(t){return yi(t.getComponents("rgb")).reduce((t,e)=>{return t<<8|255&Math.floor(e)},0)}function Ur(t){return t.getComponents("rgb").reduce((t,e,n)=>{const i=255&Math.floor(3===n?255*e:e);return t<<8|i},0)>>>0}function Zr(t){return new Mi([t>>16&255,t>>8&255,255&t],"rgb")}function Yr(t){return new Mi([t>>24&255,t>>16&255,t>>8&255,Rn(255&t,0,255,0,1)],"rgb")}function Xr(t){return"number"!==typeof t?Mi.black():Zr(t)}function qr(t){return"number"!==typeof t?Mi.black():Yr(t)}function Kr(t){const e=xr(t);return e?(t,n)=>{qn(t,e(n))}:null}function Qr(t){const e=t?Ur:Wr;return(t,n)=>{qn(t,e(n))}}function Jr(t,e,n){const i=e.toRgbaObject(n);t.writeProperty("r",i.r),t.writeProperty("g",i.g),t.writeProperty("b",i.b),t.writeProperty("a",i.a)}function $r(t,e,n){const i=e.toRgbaObject(n);t.writeProperty("r",i.r),t.writeProperty("g",i.g),t.writeProperty("b",i.b)}function to(t,e){return(n,i)=>{t?Jr(n,i,e):$r(n,i,e)}}function eo(t){var e;return!!((null===t||void 0===t?void 0:t.alpha)||(null===(e=null===t||void 0===t?void 0:t.color)||void 0===e?void 0:e.alpha))}function no(t){return t?t=>lr(t,"0x"):t=>sr(t,"0x")}function io(t){return"color"in t||"view"in t&&"color"===t.view}const ro={id:"input-color-number",type:"input",accept:(t,e)=>{if("number"!==typeof t)return null;if(!io(e))return null;const n=Oi(e);return n?{initialValue:t,params:n}:null},binding:{reader:t=>{return eo(t.params)?qr:Xr},equals:Mi.equals,writer:t=>{return Qr(eo(t.params))}},controller:t=>{const e=eo(t.params),n="expanded"in t.params?t.params.expanded:void 0,i="picker"in t.params?t.params.picker:void 0;return new Gr(t.document,{colorType:"int",expanded:null!==n&&void 0!==n&&n,formatter:no(e),parser:or("int"),pickerLayout:null!==i&&void 0!==i?i:"popup",supportsAlpha:e,value:t.value,viewProps:t.viewProps})}};function oo(t){return Mi.isRgbaColorObject(t)}function ao(t){return e=>{return Hr(e,t)}}function so(t,e){return n=>{return t?vr(n,e):gr(n,e)}}const lo={id:"input-color-object",type:"input",accept:(t,e)=>{if(!Mi.isColorObject(t))return null;const n=Oi(e);return n?{initialValue:t,params:n}:null},binding:{reader:t=>ao(ji(t.params)),equals:Mi.equals,writer:t=>to(oo(t.initialValue),ji(t.params))},controller:t=>{var e;const n=Mi.isRgbaColorObject(t.initialValue),i="expanded"in t.params?t.params.expanded:void 0,r="picker"in t.params?t.params.picker:void 0,o=null!==(e=ji(t.params))&&void 0!==e?e:"int";return new Gr(t.document,{colorType:o,expanded:null!==i&&void 0!==i&&i,formatter:so(n,o),parser:or(o),pickerLayout:null!==r&&void 0!==r?r:"popup",supportsAlpha:n,value:t.value,viewProps:t.viewProps})}},co={id:"input-color-string",type:"input",accept:(t,e)=>{if("string"!==typeof t)return null;if("view"in e&&"text"===e.view)return null;const n=nr(t,ji(e));if(!n)return null;const i=xr(n);if(!i)return null;const r=Oi(e);return r?{initialValue:t,params:r}:null},binding:{reader:t=>{var e;return rr(null!==(e=ji(t.params))&&void 0!==e?e:"int")},equals:Mi.equals,writer:t=>{const e=nr(t.initialValue,ji(t.params));if(!e)throw p.shouldNeverHappen();const n=Kr(e);if(!n)throw p.notBindable();return n}},controller:t=>{const e=nr(t.initialValue,ji(t.params));if(!e)throw p.shouldNeverHappen();const n=xr(e);if(!n)throw p.shouldNeverHappen();const i="expanded"in t.params?t.params.expanded:void 0,r="picker"in t.params?t.params.picker:void 0;return new Gr(t.document,{colorType:e.type,expanded:null!==i&&void 0!==i&&i,formatter:n,parser:or(e.type),pickerLayout:null!==r&&void 0!==r?r:"popup",supportsAlpha:e.alpha,value:t.value,viewProps:t.viewProps})}};class uo{constructor(t){this.components=t.components,this.asm_=t.assembly}constrain(t){const e=this.asm_.toComponents(t).map((t,e)=>{var n,i;return null!==(i=null===(n=this.components[e])||void 0===n?void 0:n.constrain(t))&&void 0!==i?i:t});return this.asm_.fromComponents(e)}}const ho=y("pndtxt");class po{constructor(t,e){this.textViews=e.textViews,this.element=t.createElement("div"),this.element.classList.add(ho()),this.textViews.forEach(e=>{const n=t.createElement("div");n.classList.add(ho("a")),n.appendChild(e.element),this.element.appendChild(n)})}}function fo(t,e,n){return new Gn(t,{arrayPosition:0===n?"fst":n===e.axes.length-1?"lst":"mid",baseStep:e.axes[n].baseStep,parser:e.parser,props:e.axes[n].textProps,value:O(0,{constraint:e.axes[n].constraint}),viewProps:e.viewProps})}class go{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.acs_=e.axes.map((n,i)=>fo(t,e,i)),this.acs_.forEach((t,n)=>{kn({primary:this.value,secondary:t.value,forward:t=>{return e.assembly.toComponents(t.rawValue)[n]},backward:(t,i)=>{const r=e.assembly.toComponents(t.rawValue);return r[n]=i.rawValue,e.assembly.fromComponents(r)}})}),this.view=new po(t,{textViews:this.acs_.map(t=>t.view)})}}function mo(t,e){return"step"in t&&!c(t.step)?new Me(t.step,e):null}function vo(t){return c(t.max)||c(t.min)?c(t.max)&&c(t.min)?null:new Se({max:t.max,min:t.min}):new Ae({max:t.max,min:t.min})}function yo(t){const e=Ce(t,Ae);if(e)return[e.values.get("min"),e.values.get("max")];const n=Ce(t,Se);return n?[n.minValue,n.maxValue]:[void 0,void 0]}function bo(t,e){const n=[],i=mo(t,e);i&&n.push(i);const r=vo(t);r&&n.push(r);const o=ti(t.options);return o&&n.push(o),new _e(n)}const xo={id:"input-number",type:"input",accept:(t,e)=>{if("number"!==typeof t)return null;const n=N,i=F(e,{format:n.optional.function,max:n.optional.number,min:n.optional.number,options:n.optional.custom(Kn),step:n.optional.number});return i?{initialValue:t,params:i}:null},binding:{reader:t=>wn,constraint:t=>bo(t.params,t.initialValue),writer:t=>qn},controller:t=>{var e;const n=t.value,i=t.constraint,r=i&&Ce(i,Ie);if(r)return new Te(t.document,{props:new P({options:r.values.value("options")}),value:n,viewProps:t.viewProps});const o=null!==(e="format"in t.params?t.params.format:void 0)&&void 0!==e?e:Cn(ni(i,n.rawValue)),a=i&&Ce(i,Ae);return a?new Xn(t.document,{baseStep:ii(i),parser:xn,sliderProps:new P({maxValue:a.values.value("max"),minValue:a.values.value("min")}),textProps:P.fromObject({draggingScale:ri(i,n.rawValue),formatter:o}),value:n,viewProps:t.viewProps}):new Gn(t.document,{baseStep:ii(i),parser:xn,props:P.fromObject({draggingScale:ri(i,n.rawValue),formatter:o}),value:n,viewProps:t.viewProps})}};class wo{constructor(t=0,e=0){this.x=t,this.y=e}getComponents(){return[this.x,this.y]}static isObject(t){if(c(t))return!1;const e=t.x,n=t.y;return"number"===typeof e&&"number"===typeof n}static equals(t,e){return t.x===e.x&&t.y===e.y}toObject(){return{x:this.x,y:this.y}}}const _o={toComponents:t=>t.getComponents(),fromComponents:t=>new wo(...t)},Co=y("p2d");class Ao{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Co()),e.viewProps.bindClassModifiers(this.element),w(e.expanded,A(this.element,Co(void 0,"expanded")));const n=t.createElement("div");n.classList.add(Co("h")),this.element.appendChild(n);const i=t.createElement("button");i.classList.add(Co("b")),i.appendChild(rt(t,"p2dpad")),e.viewProps.bindDisabled(i),n.appendChild(i),this.buttonElement=i;const r=t.createElement("div");if(r.classList.add(Co("t")),n.appendChild(r),this.textElement=r,"inline"===e.pickerLayout){const e=t.createElement("div");e.classList.add(Co("p")),this.element.appendChild(e),this.pickerElement=e}else this.pickerElement=null}}const Io=y("p2dp");class So{constructor(t,e){this.onFoldableChange_=this.onFoldableChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.invertsY_=e.invertsY,this.maxValue_=e.maxValue,this.element=t.createElement("div"),this.element.classList.add(Io()),"popup"===e.layout&&this.element.classList.add(Io(void 0,"p")),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Io("p")),e.viewProps.bindTabIndex(n),this.element.appendChild(n),this.padElement=n;const i=t.createElementNS(K,"svg");i.classList.add(Io("g")),this.padElement.appendChild(i),this.svgElem_=i;const r=t.createElementNS(K,"line");r.classList.add(Io("ax")),r.setAttributeNS(null,"x1","0"),r.setAttributeNS(null,"y1","50%"),r.setAttributeNS(null,"x2","100%"),r.setAttributeNS(null,"y2","50%"),this.svgElem_.appendChild(r);const o=t.createElementNS(K,"line");o.classList.add(Io("ax")),o.setAttributeNS(null,"x1","50%"),o.setAttributeNS(null,"y1","0"),o.setAttributeNS(null,"x2","50%"),o.setAttributeNS(null,"y2","100%"),this.svgElem_.appendChild(o);const a=t.createElementNS(K,"line");a.classList.add(Io("l")),a.setAttributeNS(null,"x1","50%"),a.setAttributeNS(null,"y1","50%"),this.svgElem_.appendChild(a),this.lineElem_=a;const s=t.createElement("div");s.classList.add(Io("m")),this.padElement.appendChild(s),this.markerElem_=s,e.value.emitter.on("change",this.onValueChange_),this.value=e.value,this.update_()}get allFocusableElements(){return[this.padElement]}update_(){const[t,e]=this.value.rawValue.getComponents(),n=this.maxValue_,i=Rn(t,-n,+n,0,100),r=Rn(e,-n,+n,0,100),o=this.invertsY_?100-r:r;this.lineElem_.setAttributeNS(null,"x2",`${i}%`),this.lineElem_.setAttributeNS(null,"y2",`${o}%`),this.markerElem_.style.left=`${i}%`,this.markerElem_.style.top=`${o}%`}onValueChange_(){this.update_()}onFoldableChange_(){this.update_()}}function Mo(t,e,n){return[En(e[0],On(t)),En(e[1],Tn(t))*(n?1:-1)]}class ko{constructor(t,e){this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPadKeyUp_=this.onPadKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.baseSteps_=e.baseSteps,this.maxValue_=e.maxValue,this.invertsY_=e.invertsY,this.view=new So(t,{invertsY:this.invertsY_,layout:e.layout,maxValue:this.maxValue_,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Dn(this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_),this.view.padElement.addEventListener("keyup",this.onPadKeyUp_)}handlePointerEvent_(t,e){if(!t.point)return;const n=this.maxValue_,i=Rn(t.point.x,0,t.bounds.width,-n,+n),r=Rn(this.invertsY_?t.bounds.height-t.point.y:t.point.y,0,t.bounds.height,-n,+n);this.value.setRawValue(new wo(i,r),e)}onPointerDown_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onPadKeyDown_(t){jn(t.key)&&t.preventDefault();const[e,n]=Mo(t,this.baseSteps_,this.invertsY_);0===e&&0===n||this.value.setRawValue(new wo(this.value.rawValue.x+e,this.value.rawValue.y+n),{forceEmit:!1,last:!1})}onPadKeyUp_(t){const[e,n]=Mo(t,this.baseSteps_,this.invertsY_);0===e&&0===n||this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class Eo{constructor(t,e){var n,i;this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.onPadButtonBlur_=this.onPadButtonBlur_.bind(this),this.onPadButtonClick_=this.onPadButtonClick_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.foldable_=vt.create(e.expanded),this.popC_="popup"===e.pickerLayout?new je(t,{viewProps:this.viewProps}):null;const r=new ko(t,{baseSteps:[e.axes[0].baseStep,e.axes[1].baseStep],invertsY:e.invertsY,layout:e.pickerLayout,maxValue:e.maxValue,value:this.value,viewProps:this.viewProps});r.view.allFocusableElements.forEach(t=>{t.addEventListener("blur",this.onPopupChildBlur_),t.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=r,this.textC_=new go(t,{assembly:_o,axes:e.axes,parser:e.parser,value:this.value,viewProps:this.viewProps}),this.view=new Ao(t,{expanded:this.foldable_.value("expanded"),pickerLayout:e.pickerLayout,viewProps:this.viewProps}),this.view.textElement.appendChild(this.textC_.view.element),null===(n=this.view.buttonElement)||void 0===n||n.addEventListener("blur",this.onPadButtonBlur_),null===(i=this.view.buttonElement)||void 0===i||i.addEventListener("click",this.onPadButtonClick_),this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(this.pickerC_.view.element),kn({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:t=>t.rawValue,backward:(t,e)=>e.rawValue})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),xt(this.foldable_,this.view.pickerElement))}onPadButtonBlur_(t){if(!this.popC_)return;const e=this.view.element,n=l(t.relatedTarget);n&&e.contains(n)||(this.popC_.shows.rawValue=!1)}onPadButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(t){if(!this.popC_)return;const e=this.popC_.view.element,n=ct(t);n&&e.contains(n)||n&&n===this.view.buttonElement&&!$(e.ownerDocument)||(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(t){this.popC_?"Escape"===t.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===t.key&&this.view.buttonElement.focus()}}class To{constructor(t=0,e=0,n=0){this.x=t,this.y=e,this.z=n}getComponents(){return[this.x,this.y,this.z]}static isObject(t){if(c(t))return!1;const e=t.x,n=t.y,i=t.z;return"number"===typeof e&&"number"===typeof n&&"number"===typeof i}static equals(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z}toObject(){return{x:this.x,y:this.y,z:this.z}}}const Oo={toComponents:t=>t.getComponents(),fromComponents:t=>new To(...t)};function Po(t){return To.isObject(t)?new To(t.x,t.y,t.z):new To}function jo(t,e){t.writeProperty("x",e.x),t.writeProperty("y",e.y),t.writeProperty("z",e.z)}function Lo(t,e){return new uo({assembly:Oo,components:[ma("x"in t?t.x:void 0,e.x),ma("y"in t?t.y:void 0,e.y),ma("z"in t?t.z:void 0,e.z)]})}function Do(t,e){return{baseStep:ii(e),constraint:e,textProps:P.fromObject({draggingScale:ri(e,t),formatter:Cn(ni(e,t))})}}const Ro={id:"input-point3d",type:"input",accept:(t,e)=>{if(!To.isObject(t))return null;const n=N,i=F(e,{x:n.optional.custom(Jn),y:n.optional.custom(Jn),z:n.optional.custom(Jn)});return i?{initialValue:t,params:i}:null},binding:{reader:t=>Po,constraint:t=>Lo(t.params,t.initialValue),equals:To.equals,writer:t=>jo},controller:t=>{const e=t.value,n=t.constraint;if(!(n instanceof uo))throw p.shouldNeverHappen();return new go(t.document,{assembly:Oo,axes:[Do(e.rawValue.x,n.components[0]),Do(e.rawValue.y,n.components[1]),Do(e.rawValue.z,n.components[2])],parser:xn,value:e,viewProps:t.viewProps})}};class Bo{constructor(t=0,e=0,n=0,i=0){this.x=t,this.y=e,this.z=n,this.w=i}getComponents(){return[this.x,this.y,this.z,this.w]}static isObject(t){if(c(t))return!1;const e=t.x,n=t.y,i=t.z,r=t.w;return"number"===typeof e&&"number"===typeof n&&"number"===typeof i&&"number"===typeof r}static equals(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z&&t.w===e.w}toObject(){return{x:this.x,y:this.y,z:this.z,w:this.w}}}const No={toComponents:t=>t.getComponents(),fromComponents:t=>new Bo(...t)};function Fo(t){return Bo.isObject(t)?new Bo(t.x,t.y,t.z,t.w):new Bo}function zo(t,e){t.writeProperty("x",e.x),t.writeProperty("y",e.y),t.writeProperty("z",e.z),t.writeProperty("w",e.w)}function Vo(t,e){return new uo({assembly:No,components:[ma("x"in t?t.x:void 0,e.x),ma("y"in t?t.y:void 0,e.y),ma("z"in t?t.z:void 0,e.z),ma("w"in t?t.w:void 0,e.w)]})}function Go(t,e){return{baseStep:ii(e),constraint:e,textProps:P.fromObject({draggingScale:ri(e,t),formatter:Cn(ni(e,t))})}}const Ho={id:"input-point4d",type:"input",accept:(t,e)=>{if(!Bo.isObject(t))return null;const n=N,i=F(e,{x:n.optional.custom(Jn),y:n.optional.custom(Jn),z:n.optional.custom(Jn),w:n.optional.custom(Jn)});return i?{initialValue:t,params:i}:null},binding:{reader:t=>Fo,constraint:t=>Vo(t.params,t.initialValue),equals:Bo.equals,writer:t=>zo},controller:t=>{const e=t.value,n=t.constraint;if(!(n instanceof uo))throw p.shouldNeverHappen();return new go(t.document,{assembly:No,axes:e.rawValue.getComponents().map((t,e)=>Go(t,n.components[e])),parser:xn,value:e,viewProps:t.viewProps})}};function Wo(t){const e=[],n=ti(t.options);return n&&e.push(n),new _e(e)}const Uo={id:"input-string",type:"input",accept:(t,e)=>{if("string"!==typeof t)return null;const n=N,i=F(e,{options:n.optional.custom(Kn)});return i?{initialValue:t,params:i}:null},binding:{reader:t=>Sn,constraint:t=>Wo(t.params),writer:t=>qn},controller:t=>{const e=t.document,n=t.value,i=t.constraint,r=i&&Ce(i,Ie);return r?new Te(e,{props:new P({options:r.values.value("options")}),value:n,viewProps:t.viewProps}):new Re(e,{parser:t=>t,props:P.fromObject({formatter:Mn}),value:n,viewProps:t.viewProps})}},Zo={monitor:{defaultInterval:200,defaultLineCount:3}},Yo=y("mll");class Xo{constructor(t,e){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=e.formatter,this.element=t.createElement("div"),this.element.classList.add(Yo()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("textarea");n.classList.add(Yo("i")),n.style.height=`calc(var(--bld-us) * ${e.lineCount})`,n.readOnly=!0,e.viewProps.bindDisabled(n),this.element.appendChild(n),this.textareaElem_=n,e.value.emitter.on("change",this.onValueUpdate_),this.value=e.value,this.update_()}update_(){const t=this.textareaElem_,e=t.scrollTop===t.scrollHeight-t.clientHeight,n=[];this.value.rawValue.forEach(t=>{void 0!==t&&n.push(this.formatter_(t))}),t.textContent=n.join("\n"),e&&(t.scrollTop=t.scrollHeight)}onValueUpdate_(){this.update_()}}class qo{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new Xo(t,{formatter:e.formatter,lineCount:e.lineCount,value:this.value,viewProps:this.viewProps})}}const Ko=y("sgl");class Qo{constructor(t,e){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=e.formatter,this.element=t.createElement("div"),this.element.classList.add(Ko()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("input");n.classList.add(Ko("i")),n.readOnly=!0,n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,e.value.emitter.on("change",this.onValueUpdate_),this.value=e.value,this.update_()}update_(){const t=this.value.rawValue,e=t[t.length-1];this.inputElement.value=void 0!==e?this.formatter_(e):""}onValueUpdate_(){this.update_()}}class Jo{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new Qo(t,{formatter:e.formatter,value:this.value,viewProps:this.viewProps})}}const $o={id:"monitor-bool",type:"monitor",accept:(t,e)=>{if("boolean"!==typeof t)return null;const n=N,i=F(e,{lineCount:n.optional.number});return i?{initialValue:t,params:i}:null},binding:{reader:t=>Ne},controller:t=>{var e;return 1===t.value.rawValue.length?new Jo(t.document,{formatter:Fe,value:t.value,viewProps:t.viewProps}):new qo(t.document,{formatter:Fe,lineCount:null!==(e=t.params.lineCount)&&void 0!==e?e:Zo.monitor.defaultLineCount,value:t.value,viewProps:t.viewProps})}},ta=y("grl");class ea{constructor(t,e){this.onCursorChange_=this.onCursorChange_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.element=t.createElement("div"),this.element.classList.add(ta()),e.viewProps.bindClassModifiers(this.element),this.formatter_=e.formatter,this.props_=e.props,this.cursor_=e.cursor,this.cursor_.emitter.on("change",this.onCursorChange_);const n=t.createElementNS(K,"svg");n.classList.add(ta("g")),n.style.height=`calc(var(--bld-us) * ${e.lineCount})`,this.element.appendChild(n),this.svgElem_=n;const i=t.createElementNS(K,"polyline");this.svgElem_.appendChild(i),this.lineElem_=i;const r=t.createElement("div");r.classList.add(ta("t"),y("tt")()),this.element.appendChild(r),this.tooltipElem_=r,e.value.emitter.on("change",this.onValueUpdate_),this.value=e.value,this.update_()}get graphElement(){return this.svgElem_}update_(){const t=this.svgElem_.getBoundingClientRect(),e=this.value.rawValue.length-1,n=this.props_.get("minValue"),i=this.props_.get("maxValue"),r=[];this.value.rawValue.forEach((o,a)=>{if(void 0===o)return;const s=Rn(a,0,e,0,t.width),l=Rn(o,n,i,t.height,0);r.push([s,l].join(","))}),this.lineElem_.setAttributeNS(null,"points",r.join(" "));const o=this.tooltipElem_,a=this.value.rawValue[this.cursor_.rawValue];if(void 0===a)return void o.classList.remove(ta("t","a"));const s=Rn(this.cursor_.rawValue,0,e,0,t.width),l=Rn(a,n,i,t.height,0);o.style.left=`${s}px`,o.style.top=`${l}px`,o.textContent=`${this.formatter_(a)}`,o.classList.contains(ta("t","a"))||(o.classList.add(ta("t","a"),ta("t","in")),Q(o),o.classList.remove(ta("t","in")))}onValueUpdate_(){this.update_()}onCursorChange_(){this.update_()}}class na{constructor(t,e){if(this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphPointerDown_=this.onGraphPointerDown_.bind(this),this.onGraphPointerMove_=this.onGraphPointerMove_.bind(this),this.onGraphPointerUp_=this.onGraphPointerUp_.bind(this),this.props_=e.props,this.value=e.value,this.viewProps=e.viewProps,this.cursor_=O(-1),this.view=new ea(t,{cursor:this.cursor_,formatter:e.formatter,lineCount:e.lineCount,props:this.props_,value:this.value,viewProps:this.viewProps}),$(t)){const t=new Dn(this.view.element);t.emitter.on("down",this.onGraphPointerDown_),t.emitter.on("move",this.onGraphPointerMove_),t.emitter.on("up",this.onGraphPointerUp_)}else this.view.element.addEventListener("mousemove",this.onGraphMouseMove_),this.view.element.addEventListener("mouseleave",this.onGraphMouseLeave_)}onGraphMouseLeave_(){this.cursor_.rawValue=-1}onGraphMouseMove_(t){const e=this.view.element.getBoundingClientRect();this.cursor_.rawValue=Math.floor(Rn(t.offsetX,0,e.width,0,this.value.rawValue.length))}onGraphPointerDown_(t){this.onGraphPointerMove_(t)}onGraphPointerMove_(t){t.data.point?this.cursor_.rawValue=Math.floor(Rn(t.data.point.x,0,t.data.bounds.width,0,this.value.rawValue.length)):this.cursor_.rawValue=-1}onGraphPointerUp_(){this.cursor_.rawValue=-1}}function ia(t){return"format"in t&&!c(t.format)?t.format:Cn(2)}function ra(t){var e;return 1===t.value.rawValue.length?new Jo(t.document,{formatter:ia(t.params),value:t.value,viewProps:t.viewProps}):new qo(t.document,{formatter:ia(t.params),lineCount:null!==(e=t.params.lineCount)&&void 0!==e?e:Zo.monitor.defaultLineCount,value:t.value,viewProps:t.viewProps})}function oa(t){var e,n,i;return new na(t.document,{formatter:ia(t.params),lineCount:null!==(e=t.params.lineCount)&&void 0!==e?e:Zo.monitor.defaultLineCount,props:P.fromObject({maxValue:null!==(n="max"in t.params?t.params.max:null)&&void 0!==n?n:100,minValue:null!==(i="min"in t.params?t.params.min:null)&&void 0!==i?i:0}),value:t.value,viewProps:t.viewProps})}function aa(t){return"view"in t&&"graph"===t.view}const sa={id:"monitor-number",type:"monitor",accept:(t,e)=>{if("number"!==typeof t)return null;const n=N,i=F(e,{format:n.optional.function,lineCount:n.optional.number,max:n.optional.number,min:n.optional.number,view:n.optional.string});return i?{initialValue:t,params:i}:null},binding:{defaultBufferSize:t=>aa(t)?64:1,reader:t=>wn},controller:t=>{return aa(t.params)?oa(t):ra(t)}},la={id:"monitor-string",type:"monitor",accept:(t,e)=>{if("string"!==typeof t)return null;const n=N,i=F(e,{lineCount:n.optional.number,multiline:n.optional.boolean});return i?{initialValue:t,params:i}:null},binding:{reader:t=>Sn},controller:t=>{var e;const n=t.value,i=n.rawValue.length>1||"multiline"in t.params&&t.params.multiline;return i?new qo(t.document,{formatter:Mn,lineCount:null!==(e=t.params.lineCount)&&void 0!==e?e:Zo.monitor.defaultLineCount,value:n,viewProps:t.viewProps}):new Jo(t.document,{formatter:Mn,value:n,viewProps:t.viewProps})}};function ca(t,e){var n;const i=t.accept(e.target.read(),e.params);if(c(i))return null;const r=N,o={target:e.target,initialValue:i.initialValue,params:i.params},a=t.binding.reader(o),s=t.binding.constraint?t.binding.constraint(o):void 0,l=O(a(i.initialValue),{constraint:s,equals:t.binding.equals}),u=new me({reader:a,target:e.target,value:l,writer:t.binding.writer(o)}),h=r.optional.boolean(e.params.disabled).value,d=r.optional.boolean(e.params.hidden).value,p=t.controller({constraint:s,document:e.document,initialValue:i.initialValue,params:i.params,value:u.value,viewProps:U.create({disabled:h,hidden:d})});return new kt(e.document,{binding:u,blade:mt(),props:P.fromObject({label:"label"in e.params?null!==(n=r.optional.string(e.params.label).value)&&void 0!==n?n:null:e.target.key}),valueController:p})}function ua(t,e){return 0===e?new fe:new ge(t,null!==e&&void 0!==e?e:Zo.monitor.defaultInterval)}function ha(t,e){var n,i,r;const o=N,a=t.accept(e.target.read(),e.params);if(c(a))return null;const s={target:e.target,initialValue:a.initialValue,params:a.params},l=t.binding.reader(s),u=null!==(i=null!==(n=o.optional.number(e.params.bufferSize).value)&&void 0!==n?n:t.binding.defaultBufferSize&&t.binding.defaultBufferSize(a.params))&&void 0!==i?i:1,h=o.optional.number(e.params.interval).value,d=new we({reader:l,target:e.target,ticker:ua(e.document,h),value:ye(u)}),p=o.optional.boolean(e.params.disabled).value,f=o.optional.boolean(e.params.hidden).value,g=t.controller({document:e.document,params:a.params,value:d.value,viewProps:U.create({disabled:p,hidden:f})});return new Tt(e.document,{binding:d,blade:mt(),props:P.fromObject({label:"label"in e.params?null!==(r=o.optional.string(e.params.label).value)&&void 0!==r?r:null:e.target.key}),valueController:g})}class da{constructor(){this.pluginsMap_={blades:[],inputs:[],monitors:[]}}getAll(){return[...this.pluginsMap_.blades,...this.pluginsMap_.inputs,...this.pluginsMap_.monitors]}register(t){"blade"===t.type?this.pluginsMap_.blades.unshift(t):"input"===t.type?this.pluginsMap_.inputs.unshift(t):"monitor"===t.type&&this.pluginsMap_.monitors.unshift(t)}createInput(t,e,n){const i=e.read();if(c(i))throw new p({context:{key:e.key},type:"nomatchingcontroller"});const r=this.pluginsMap_.inputs.reduce((i,r)=>null!==i&&void 0!==i?i:ca(r,{document:t,target:e,params:n}),null);if(r)return r;throw new p({context:{key:e.key},type:"nomatchingcontroller"})}createMonitor(t,e,n){const i=this.pluginsMap_.monitors.reduce((i,r)=>null!==i&&void 0!==i?i:ha(r,{document:t,params:n,target:e}),null);if(i)return i;throw new p({context:{key:e.key},type:"nomatchingcontroller"})}createBlade(t,e){const n=this.pluginsMap_.blades.reduce((n,i)=>null!==n&&void 0!==n?n:pe(i,{document:t,params:e}),null);if(!n)throw new p({type:"nomatchingview",context:{params:e}});return n}createBladeApi(t){if(t instanceof kt)return new Mt(t);if(t instanceof Tt)return new Et(t);if(t instanceof Wt)return new Lt(t,this);const e=this.pluginsMap_.blades.reduce((e,n)=>null!==e&&void 0!==e?e:n.api({controller:t,pool:this}),null);if(!e)throw p.shouldNeverHappen();return e}}function pa(){const t=new da;return[_a,Ro,Ho,Uo,xo,co,lo,ro,ci,$o,la,sa,ft,Xt,te,de].forEach(e=>{t.register(e)}),t}function fa(t){return wo.isObject(t)?new wo(t.x,t.y):new wo}function ga(t,e){t.writeProperty("x",e.x),t.writeProperty("y",e.y)}function ma(t,e){if(!t)return;const n=[],i=mo(t,e);i&&n.push(i);const r=vo(t);return r&&n.push(r),new _e(n)}function va(t,e){return new uo({assembly:_o,components:[ma("x"in t?t.x:void 0,e.x),ma("y"in t?t.y:void 0,e.y)]})}function ya(t,e){const[n,i]=t?yo(t):[];if(!c(n)||!c(i))return Math.max(Math.abs(null!==n&&void 0!==n?n:0),Math.abs(null!==i&&void 0!==i?i:0));const r=ii(t);return Math.max(10*Math.abs(r),10*Math.abs(e))}function ba(t,e){const n=e instanceof uo?e.components[0]:void 0,i=e instanceof uo?e.components[1]:void 0,r=ya(n,t.x),o=ya(i,t.y);return Math.max(r,o)}function xa(t,e){return{baseStep:ii(e),constraint:e,textProps:P.fromObject({draggingScale:ri(e,t),formatter:Cn(ni(e,t))})}}function wa(t){if(!("y"in t))return!1;const e=t.y;return!!e&&("inverted"in e&&!!e.inverted)}const _a={id:"input-point2d",type:"input",accept:(t,e)=>{if(!wo.isObject(t))return null;const n=N,i=F(e,{expanded:n.optional.boolean,picker:n.optional.custom(Qn),x:n.optional.custom(Jn),y:n.optional.object({inverted:n.optional.boolean,max:n.optional.number,min:n.optional.number,step:n.optional.number})});return i?{initialValue:t,params:i}:null},binding:{reader:t=>fa,constraint:t=>va(t.params,t.initialValue),equals:wo.equals,writer:t=>ga},controller:t=>{const e=t.document,n=t.value,i=t.constraint;if(!(i instanceof uo))throw p.shouldNeverHappen();const r="expanded"in t.params?t.params.expanded:void 0,o="picker"in t.params?t.params.picker:void 0;return new Eo(e,{axes:[xa(n.rawValue.x,i.components[0]),xa(n.rawValue.y,i.components[1])],expanded:null!==r&&void 0!==r&&r,invertsY:wa(t.params),maxValue:ba(n.rawValue,i),parser:xn,pickerLayout:null!==o&&void 0!==o?o:"popup",value:n,viewProps:t.viewProps})}};class Ca extends n{constructor(t){super(t),this.emitter_=new m,this.controller_.valueController.value.emitter.on("change",t=>{this.emitter_.emit("change",{event:new r(this,t.rawValue)})})}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get options(){return this.controller_.valueController.props.get("options")}set options(t){this.controller_.valueController.props.set("options",t)}get value(){return this.controller_.valueController.value.rawValue}set value(t){this.controller_.valueController.value.rawValue=t}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}class Aa extends n{constructor(t){super(t),this.emitter_=new m,this.controller_.valueController.value.emitter.on("change",t=>{this.emitter_.emit("change",{event:new r(this,t.rawValue)})})}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get maxValue(){return this.controller_.valueController.sliderController.props.get("maxValue")}set maxValue(t){this.controller_.valueController.sliderController.props.set("maxValue",t)}get minValue(){return this.controller_.valueController.sliderController.props.get("minValue")}set minValue(t){this.controller_.valueController.sliderController.props.set("minValue",t)}get value(){return this.controller_.valueController.value.rawValue}set value(t){this.controller_.valueController.value.rawValue=t}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}class Ia extends n{constructor(t){super(t),this.emitter_=new m,this.controller_.valueController.value.emitter.on("change",t=>{this.emitter_.emit("change",{event:new r(this,t.rawValue)})})}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get formatter(){return this.controller_.valueController.props.get("formatter")}set formatter(t){this.controller_.valueController.props.set("formatter",t)}get value(){return this.controller_.valueController.value.rawValue}set value(t){this.controller_.valueController.value.rawValue=t}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}const Sa=function(){return{id:"list",type:"blade",accept(t){const e=N,n=F(t,{options:e.required.custom(Kn),value:e.required.raw,view:e.required.constant("list"),label:e.optional.string});return n?{params:n}:null},controller(t){const e=new Ie($n(t.params.options)),n=O(t.params.value,{constraint:e}),i=new Te(t.document,{props:new P({options:e.values.value("options")}),value:n,viewProps:t.viewProps});return new qt(t.document,{blade:t.blade,props:P.fromObject({label:t.params.label}),valueController:i})},api(t){return t.controller instanceof qt&&t.controller.valueController instanceof Te?new Ca(t.controller):null}}}();function Ma(t){return t.reduce((t,e)=>{return Object.assign(t,{[e.presetKey]:e.read()})},{})}function ka(t,e){t.forEach(t=>{const n=e[t.target.presetKey];void 0!==n&&t.writer(t.target,t.reader(n))})}class Ea extends Dt{constructor(t,e){super(t,e)}get element(){return this.controller_.view.element}importPreset(t){const e=this.controller_.rackController.rack.find(kt).map(t=>{return t.binding});ka(e,t),this.refresh()}exportPreset(){const t=this.controller_.rackController.rack.find(kt).map(t=>{return t.binding.target});return Ma(t)}refresh(){this.controller_.rackController.rack.find(kt).forEach(t=>{t.binding.read()}),this.controller_.rackController.rack.find(Tt).forEach(t=>{t.binding.read()})}}class Ta extends Yt{constructor(t,e){super(t,{expanded:e.expanded,blade:e.blade,props:e.props,root:!0,viewProps:e.viewProps})}}const Oa={id:"slider",type:"blade",accept(t){const e=N,n=F(t,{max:e.required.number,min:e.required.number,view:e.required.constant("slider"),format:e.optional.function,label:e.optional.string,value:e.optional.number});return n?{params:n}:null},controller(t){var e,n;const i=null!==(e=t.params.value)&&void 0!==e?e:0,r=new Ae({max:t.params.max,min:t.params.min}),o=new Xn(t.document,{baseStep:1,parser:xn,sliderProps:new P({maxValue:r.values.value("max"),minValue:r.values.value("min")}),textProps:P.fromObject({draggingScale:ri(void 0,i),formatter:null!==(n=t.params.format)&&void 0!==n?n:_n}),value:O(i,{constraint:r}),viewProps:t.viewProps});return new qt(t.document,{blade:t.blade,props:P.fromObject({label:t.params.label}),valueController:o})},api(t){return t.controller instanceof qt&&t.controller.valueController instanceof Xn?new Aa(t.controller):null}},Pa=function(){return{id:"text",type:"blade",accept(t){const e=N,n=F(t,{parse:e.required.function,value:e.required.raw,view:e.required.constant("text"),format:e.optional.function,label:e.optional.string});return n?{params:n}:null},controller(t){var e;const n=new Re(t.document,{parser:t.params.parse,props:P.fromObject({formatter:null!==(e=t.params.format)&&void 0!==e?e:t=>String(t)}),value:O(t.params.value),viewProps:t.viewProps});return new qt(t.document,{blade:t.blade,props:P.fromObject({label:t.params.label}),valueController:n})},api(t){return t.controller instanceof qt&&t.controller.valueController instanceof Re?new Ia(t.controller):null}}}();function ja(t){const e=t.createElement("div");return e.classList.add(y("dfw")()),t.body&&t.body.appendChild(e),e}function La(t,e,n){if(t.querySelector(`style[data-tp-style=${e}]`))return;const i=t.createElement("style");i.dataset.tpStyle=e,i.textContent=n,t.head.appendChild(i)}class Da extends Ea{constructor(t){var e,n;const i=null!==t&&void 0!==t?t:{},r=null!==(e=i.document)&&void 0!==e?e:et(),o=pa(),a=new Ta(r,{expanded:i.expanded,blade:mt(),props:P.fromObject({title:i.title}),viewProps:U.create()});super(a,o),this.pool_=o,this.containerElem_=null!==(n=i.container)&&void 0!==n?n:ja(r),this.containerElem_.appendChild(this.element),this.doc_=r,this.usesDefaultWrapper_=!i.container,this.setUpDefaultPlugins_()}get document(){if(!this.doc_)throw p.alreadyDisposed();return this.doc_}dispose(){const t=this.containerElem_;if(!t)throw p.alreadyDisposed();if(this.usesDefaultWrapper_){const e=t.parentElement;e&&e.removeChild(t)}this.containerElem_=null,this.doc_=null,super.dispose()}registerPlugin(t){const e="plugin"in t?[t.plugin]:"plugins"in t?t.plugins:[];e.forEach(t=>{this.pool_.register(t),this.embedPluginStyle_(t)})}embedPluginStyle_(t){t.css&&La(this.document,`plugin-${t.id}`,t.css)}setUpDefaultPlugins_(){La(this.document,"default",'.tp-tbiv_b,.tp-coltxtv_ms,.tp-ckbv_i,.tp-rotv_b,.tp-fldv_b,.tp-mllv_i,.tp-sglv_i,.tp-grlv_g,.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw,.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-p2dv_b:hover,.tp-btnv_b:hover,.tp-lstv_s:hover{background-color:var(--btn-bg-h)}.tp-p2dv_b:focus,.tp-btnv_b:focus,.tp-lstv_s:focus{background-color:var(--btn-bg-f)}.tp-p2dv_b:active,.tp-btnv_b:active,.tp-lstv_s:active{background-color:var(--btn-bg-a)}.tp-p2dv_b:disabled,.tp-btnv_b:disabled,.tp-lstv_s:disabled{opacity:.5}.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-txtv_i:hover,.tp-p2dpv_p:hover,.tp-colswv_sw:hover{background-color:var(--in-bg-h)}.tp-txtv_i:focus,.tp-p2dpv_p:focus,.tp-colswv_sw:focus{background-color:var(--in-bg-f)}.tp-txtv_i:active,.tp-p2dpv_p:active,.tp-colswv_sw:active{background-color:var(--in-bg-a)}.tp-txtv_i:disabled,.tp-p2dpv_p:disabled,.tp-colswv_sw:disabled{opacity:.5}.tp-mllv_i,.tp-sglv_i,.tp-grlv_g{background-color:var(--mo-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--mo-fg);height:var(--bld-us);scrollbar-color:currentColor rgba(0,0,0,0);scrollbar-width:thin;width:100%}.tp-mllv_i::-webkit-scrollbar,.tp-sglv_i::-webkit-scrollbar,.tp-grlv_g::-webkit-scrollbar{height:8px;width:8px}.tp-mllv_i::-webkit-scrollbar-corner,.tp-sglv_i::-webkit-scrollbar-corner,.tp-grlv_g::-webkit-scrollbar-corner{background-color:rgba(0,0,0,0)}.tp-mllv_i::-webkit-scrollbar-thumb,.tp-sglv_i::-webkit-scrollbar-thumb,.tp-grlv_g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:currentColor;border:rgba(0,0,0,0) solid 2px;border-radius:4px}.tp-rotv{--font-family: var(--tp-font-family, Roboto Mono, Source Code Pro, Menlo, Courier, monospace);--bs-br: var(--tp-base-border-radius, 6px);--cnt-h-p: var(--tp-container-horizontal-padding, 4px);--cnt-v-p: var(--tp-container-vertical-padding, 4px);--elm-br: var(--tp-element-border-radius, 2px);--bld-s: var(--tp-blade-spacing, 4px);--bld-us: var(--tp-blade-unit-size, 20px);--bs-bg: var(--tp-base-background-color, hsl(230, 7%, 17%));--bs-sh: var(--tp-base-shadow-color, rgba(0, 0, 0, 0.2));--btn-bg: var(--tp-button-background-color, hsl(230, 7%, 70%));--btn-bg-a: var(--tp-button-background-color-active, #d6d7db);--btn-bg-f: var(--tp-button-background-color-focus, #c8cad0);--btn-bg-h: var(--tp-button-background-color-hover, #bbbcc4);--btn-fg: var(--tp-button-foreground-color, hsl(230, 7%, 17%));--cnt-bg: var(--tp-container-background-color, rgba(187, 188, 196, 0.1));--cnt-bg-a: var(--tp-container-background-color-active, rgba(187, 188, 196, 0.25));--cnt-bg-f: var(--tp-container-background-color-focus, rgba(187, 188, 196, 0.2));--cnt-bg-h: var(--tp-container-background-color-hover, rgba(187, 188, 196, 0.15));--cnt-fg: var(--tp-container-foreground-color, hsl(230, 7%, 75%));--in-bg: var(--tp-input-background-color, rgba(187, 188, 196, 0.1));--in-bg-a: var(--tp-input-background-color-active, rgba(187, 188, 196, 0.25));--in-bg-f: var(--tp-input-background-color-focus, rgba(187, 188, 196, 0.2));--in-bg-h: var(--tp-input-background-color-hover, rgba(187, 188, 196, 0.15));--in-fg: var(--tp-input-foreground-color, hsl(230, 7%, 75%));--lbl-fg: var(--tp-label-foreground-color, rgba(187, 188, 196, 0.7));--mo-bg: var(--tp-monitor-background-color, rgba(0, 0, 0, 0.2));--mo-fg: var(--tp-monitor-foreground-color, rgba(187, 188, 196, 0.7));--grv-fg: var(--tp-groove-foreground-color, rgba(187, 188, 196, 0.1))}.tp-rotv_c>.tp-cntv.tp-v-lst,.tp-tabv_c .tp-brkv>.tp-cntv.tp-v-lst,.tp-fldv_c>.tp-cntv.tp-v-lst{margin-bottom:calc(-1*var(--cnt-v-p))}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-tabv_c .tp-brkv>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_c{border-bottom-left-radius:0}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-tabv_c .tp-brkv>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_b{border-bottom-left-radius:0}.tp-rotv_c>*:not(.tp-v-fst),.tp-tabv_c .tp-brkv>*:not(.tp-v-fst),.tp-fldv_c>*:not(.tp-v-fst){margin-top:var(--bld-s)}.tp-rotv_c>.tp-sprv:not(.tp-v-fst),.tp-tabv_c .tp-brkv>.tp-sprv:not(.tp-v-fst),.tp-fldv_c>.tp-sprv:not(.tp-v-fst),.tp-rotv_c>.tp-cntv:not(.tp-v-fst),.tp-tabv_c .tp-brkv>.tp-cntv:not(.tp-v-fst),.tp-fldv_c>.tp-cntv:not(.tp-v-fst){margin-top:var(--cnt-v-p)}.tp-rotv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-tabv_c .tp-brkv>.tp-sprv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-rotv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-tabv_c .tp-brkv>.tp-cntv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-cntv+*:not(.tp-v-hidden){margin-top:var(--cnt-v-p)}.tp-rotv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-tabv_c .tp-brkv>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-fldv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-tabv_c .tp-brkv>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-fldv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv{margin-top:0}.tp-tabv_c .tp-brkv>.tp-cntv,.tp-fldv_c>.tp-cntv{margin-left:4px}.tp-tabv_c .tp-brkv>.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-fldv>.tp-fldv_b{border-top-left-radius:var(--elm-br);border-bottom-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv>.tp-fldv.tp-fldv-expanded>.tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b{border-bottom-left-radius:0}.tp-tabv_c .tp-brkv .tp-fldv>.tp-fldv_c,.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv>.tp-cntv+.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-cntv+.tp-fldv>.tp-fldv_b{border-top-left-radius:0}.tp-tabv_c .tp-brkv>.tp-cntv+.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-cntv+.tp-tabv>.tp-tabv_t{border-top-left-radius:0}.tp-tabv_c .tp-brkv>.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-tabv>.tp-tabv_t{border-top-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv .tp-tabv>.tp-tabv_c,.tp-fldv_c .tp-tabv>.tp-tabv_c{border-bottom-left-radius:var(--elm-br)}.tp-rotv_b,.tp-fldv_b{background-color:var(--cnt-bg);color:var(--cnt-fg);cursor:pointer;display:block;height:calc(var(--bld-us) + 4px);line-height:calc(var(--bld-us) + 4px);overflow:hidden;padding-left:var(--cnt-h-p);padding-right:calc(4px + var(--bld-us) + var(--cnt-h-p));position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-rotv_b:hover,.tp-fldv_b:hover{background-color:var(--cnt-bg-h)}.tp-rotv_b:focus,.tp-fldv_b:focus{background-color:var(--cnt-bg-f)}.tp-rotv_b:active,.tp-fldv_b:active{background-color:var(--cnt-bg-a)}.tp-rotv_b:disabled,.tp-fldv_b:disabled{opacity:.5}.tp-rotv_m,.tp-fldv_m{background:linear-gradient(to left, var(--cnt-fg), var(--cnt-fg) 2px, transparent 2px, transparent 4px, var(--cnt-fg) 4px);border-radius:2px;bottom:0;content:"";display:block;height:6px;right:calc(var(--cnt-h-p) + (var(--bld-us) + 4px - 6px)/2 - 2px);margin:auto;opacity:.5;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_m,.tp-fldv.tp-fldv-expanded>.tp-fldv_b>.tp-fldv_m{transform:none}.tp-rotv_c,.tp-fldv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-rotv.tp-rotv-cpl:not(.tp-rotv-expanded) .tp-rotv_c,.tp-fldv.tp-fldv-cpl:not(.tp-fldv-expanded)>.tp-fldv_c{display:none}.tp-rotv.tp-rotv-expanded .tp-rotv_c,.tp-fldv.tp-fldv-expanded>.tp-fldv_c{opacity:1;padding-bottom:var(--cnt-v-p);padding-top:var(--cnt-v-p);transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-lstv,.tp-coltxtv_m{position:relative}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m,.tp-coltxtv_mm{bottom:0;margin:auto;pointer-events:none;position:absolute;right:2px;top:0}.tp-lstv_m svg,.tp-coltxtv_mm svg{bottom:0;height:16px;margin:auto;position:absolute;right:0;top:0;width:16px}.tp-lstv_m svg path,.tp-coltxtv_mm svg path{fill:currentColor}.tp-pndtxtv,.tp-coltxtv_w{display:flex}.tp-pndtxtv_a,.tp-coltxtv_c{width:100%}.tp-pndtxtv_a+.tp-pndtxtv_a,.tp-coltxtv_c+.tp-pndtxtv_a,.tp-pndtxtv_a+.tp-coltxtv_c,.tp-coltxtv_c+.tp-coltxtv_c{margin-left:2px}.tp-btnv_b{width:100%}.tp-btnv_t{text-align:center}.tp-ckbv_l{display:block;position:relative}.tp-ckbv_i{left:0;opacity:0;position:absolute;top:0}.tp-ckbv_w{background-color:var(--in-bg);border-radius:var(--elm-br);cursor:pointer;display:block;height:var(--bld-us);position:relative;width:var(--bld-us)}.tp-ckbv_w svg{bottom:0;display:block;height:16px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;width:16px}.tp-ckbv_w svg path{fill:none;stroke:var(--in-fg);stroke-width:2}.tp-ckbv_i:hover+.tp-ckbv_w{background-color:var(--in-bg-h)}.tp-ckbv_i:focus+.tp-ckbv_w{background-color:var(--in-bg-f)}.tp-ckbv_i:active+.tp-ckbv_w{background-color:var(--in-bg-a)}.tp-ckbv_i:checked+.tp-ckbv_w svg{opacity:1}.tp-ckbv.tp-v-disabled .tp-ckbv_w{opacity:.5}.tp-colv{position:relative}.tp-colv_h{display:flex}.tp-colv_s{flex-grow:0;flex-shrink:0;width:var(--bld-us)}.tp-colv_t{flex:1;margin-left:4px}.tp-colv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-colv.tp-colv-expanded.tp-colv-cpl .tp-colv_p{overflow:visible}.tp-colv.tp-colv-expanded .tp-colv_p{margin-top:var(--bld-s);opacity:1}.tp-colv .tp-popv{left:calc(-1*var(--cnt-h-p));right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-colpv_h,.tp-colpv_ap{margin-left:6px;margin-right:6px}.tp-colpv_h{margin-top:var(--bld-s)}.tp-colpv_rgb{display:flex;margin-top:var(--bld-s);width:100%}.tp-colpv_a{display:flex;margin-top:var(--cnt-v-p);padding-top:calc(var(--cnt-v-p) + 2px);position:relative}.tp-colpv_a::before{background-color:var(--grv-fg);content:"";height:2px;left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:0}.tp-colpv.tp-v-disabled .tp-colpv_a::before{opacity:.5}.tp-colpv_ap{align-items:center;display:flex;flex:3}.tp-colpv_at{flex:1;margin-left:4px}.tp-svpv{border-radius:var(--elm-br);outline:none;overflow:hidden;position:relative}.tp-svpv.tp-v-disabled{opacity:.5}.tp-svpv_c{cursor:crosshair;display:block;height:calc(var(--bld-us)*4);width:100%}.tp-svpv_m{border-radius:100%;border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;filter:drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpv:focus .tp-svpv_m{border-color:#fff}.tp-hplv{cursor:pointer;height:var(--bld-us);outline:none;position:relative}.tp-hplv.tp-v-disabled{opacity:.5}.tp-hplv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hplv_m{border-radius:var(--elm-br);border:rgba(255,255,255,.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;top:50%;width:12px}.tp-hplv:focus .tp-hplv_m{border-color:#fff}.tp-aplv{cursor:pointer;height:var(--bld-us);outline:none;position:relative;width:100%}.tp-aplv.tp-v-disabled{opacity:.5}.tp-aplv_b{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-aplv_c{bottom:0;left:0;position:absolute;right:0;top:0}.tp-aplv_m{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;border-radius:var(--elm-br);box-shadow:0 0 2px rgba(0,0,0,.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;pointer-events:none;position:absolute;top:50%;width:12px}.tp-aplv_p{border-radius:var(--elm-br);border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;bottom:0;left:0;position:absolute;right:0;top:0}.tp-aplv:focus .tp-aplv_p{border-color:#fff}.tp-colswv{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;border-radius:var(--elm-br);overflow:hidden}.tp-colswv.tp-v-disabled{opacity:.5}.tp-colswv_sw{border-radius:0}.tp-colswv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;cursor:pointer;display:block;height:var(--bld-us);left:0;margin:0;outline:none;padding:0;position:absolute;top:0;width:var(--bld-us)}.tp-colswv_b:focus::after{border:rgba(255,255,255,.75) solid 2px;border-radius:var(--elm-br);bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.tp-coltxtv{display:flex;width:100%}.tp-coltxtv_m{margin-right:4px}.tp-coltxtv_ms{border-radius:var(--elm-br);color:var(--lbl-fg);cursor:pointer;height:var(--bld-us);line-height:var(--bld-us);padding:0 18px 0 4px}.tp-coltxtv_ms:hover{background-color:var(--in-bg-h)}.tp-coltxtv_ms:focus{background-color:var(--in-bg-f)}.tp-coltxtv_ms:active{background-color:var(--in-bg-a)}.tp-coltxtv_mm{color:var(--lbl-fg)}.tp-coltxtv.tp-v-disabled .tp-coltxtv_mm{opacity:.5}.tp-coltxtv_w{flex:1}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv{position:relative}.tp-fldv.tp-fldv-not .tp-fldv_b{display:none}.tp-fldv_t{padding-left:4px}.tp-fldv_b:disabled .tp-fldv_m{display:none}.tp-fldv_c{padding-left:4px}.tp-fldv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--bld-us) + 4px);width:var(--bs-br)}.tp-fldv_i::before{background-color:currentColor;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.tp-fldv_b:hover+.tp-fldv_i{color:var(--cnt-bg-h)}.tp-fldv_b:focus+.tp-fldv_i{color:var(--cnt-bg-f)}.tp-fldv_b:active+.tp-fldv_i{color:var(--cnt-bg-a)}.tp-fldv.tp-v-disabled>.tp-fldv_i{opacity:.5}.tp-grlv{position:relative}.tp-grlv_g{display:block;height:calc(var(--bld-us)*3)}.tp-grlv_g polyline{fill:none;stroke:var(--mo-fg);stroke-linejoin:round}.tp-grlv_t{margin-top:-4px;transition:left .05s,top .05s;visibility:hidden}.tp-grlv_t.tp-grlv_t-a{visibility:visible}.tp-grlv_t.tp-grlv_t-in{transition:none}.tp-grlv.tp-v-disabled .tp-grlv_g{opacity:.5}.tp-grlv .tp-ttv{background-color:var(--mo-fg)}.tp-grlv .tp-ttv::before{border-top-color:var(--mo-fg)}.tp-lblv{align-items:center;display:flex;line-height:1.3;padding-left:var(--cnt-h-p);padding-right:var(--cnt-h-p)}.tp-lblv.tp-lblv-nol{display:block}.tp-lblv_l{color:var(--lbl-fg);flex:1;-webkit-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv.tp-v-disabled .tp-lblv_l{opacity:.5}.tp-lblv.tp-lblv-nol .tp-lblv_l{display:none}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:160px}.tp-lblv.tp-lblv-nol .tp-lblv_v{width:100%}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m{color:var(--btn-fg)}.tp-sglv_i{padding:0 4px}.tp-sglv.tp-v-disabled .tp-sglv_i{opacity:.5}.tp-mllv_i{display:block;height:calc(var(--bld-us)*3);line-height:var(--bld-us);padding:0 4px;resize:none;white-space:pre}.tp-mllv.tp-v-disabled .tp-mllv_i{opacity:.5}.tp-p2dv{position:relative}.tp-p2dv_h{display:flex}.tp-p2dv_b{height:var(--bld-us);margin-right:4px;position:relative;width:var(--bld-us)}.tp-p2dv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dv_b svg path{stroke:currentColor;stroke-width:2}.tp-p2dv_b svg circle{fill:currentColor}.tp-p2dv_t{flex:1}.tp-p2dv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-p2dv.tp-p2dv-expanded .tp-p2dv_p{margin-top:var(--bld-s);opacity:1}.tp-p2dv .tp-popv{left:calc(-1*var(--cnt-h-p));right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-p2dpv{padding-left:calc(var(--bld-us) + 4px)}.tp-p2dpv_p{cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpv.tp-v-disabled .tp-p2dpv_p{opacity:.5}.tp-p2dpv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpv_ax{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_l{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_m{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;position:absolute;width:4px}.tp-p2dpv_p:focus .tp-p2dpv_m{background-color:var(--in-fg);border-width:0}.tp-popv{background-color:var(--bs-bg);border-radius:6px;box-shadow:0 2px 4px var(--bs-sh);display:none;max-width:168px;padding:var(--cnt-v-p) var(--cnt-h-p);position:absolute;visibility:hidden;z-index:1000}.tp-popv.tp-popv-v{display:block;visibility:visible}.tp-sprv_r{background-color:var(--grv-fg);border-width:0;display:block;height:2px;margin:0;width:100%}.tp-sprv.tp-v-disabled .tp-sprv_r{opacity:.5}.tp-sldv.tp-v-disabled{opacity:.5}.tp-sldv_t{box-sizing:border-box;cursor:pointer;height:var(--bld-us);margin:0 6px;outline:none;position:relative}.tp-sldv_t::before{background-color:var(--in-bg);border-radius:1px;bottom:0;content:"";display:block;height:2px;left:0;margin:auto;position:absolute;right:0;top:0}.tp-sldv_k{height:100%;left:0;position:absolute;top:0}.tp-sldv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";display:block;height:2px;left:0;margin-bottom:auto;margin-top:auto;position:absolute;right:0;top:0}.tp-sldv_k::after{background-color:var(--btn-bg);border-radius:var(--elm-br);bottom:0;content:"";display:block;height:12px;margin-bottom:auto;margin-top:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldv_t:hover .tp-sldv_k::after{background-color:var(--btn-bg-h)}.tp-sldv_t:focus .tp-sldv_k::after{background-color:var(--btn-bg-f)}.tp-sldv_t:active .tp-sldv_k::after{background-color:var(--btn-bg-a)}.tp-sldtxtv{display:flex}.tp-sldtxtv_s{flex:2}.tp-sldtxtv_t{flex:1;margin-left:4px}.tp-tabv{position:relative}.tp-tabv_t{align-items:flex-end;color:var(--cnt-bg);display:flex;overflow:hidden;position:relative}.tp-tabv_t:hover{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus){color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active){color:var(--cnt-bg-a)}.tp-tabv_t::before{background-color:currentColor;bottom:0;content:"";height:2px;left:0;pointer-events:none;position:absolute;right:0}.tp-tabv.tp-v-disabled .tp-tabv_t::before{opacity:.5}.tp-tabv.tp-tabv-nop .tp-tabv_t{height:calc(var(--bld-us) + 4px);position:relative}.tp-tabv.tp-tabv-nop .tp-tabv_t::before{background-color:var(--cnt-bg);bottom:0;content:"";height:2px;left:0;position:absolute;right:0}.tp-tabv_c{padding-bottom:var(--cnt-v-p);padding-left:4px;padding-top:var(--cnt-v-p)}.tp-tabv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--bld-us) + 4px);width:var(--bs-br)}.tp-tabv_i::before{background-color:currentColor;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.tp-tabv_t:hover+.tp-tabv_i{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus)+.tp-tabv_i{color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active)+.tp-tabv_i{color:var(--cnt-bg-a)}.tp-tabv.tp-v-disabled>.tp-tabv_i{opacity:.5}.tp-tbiv{flex:1;min-width:0;position:relative}.tp-tbiv+.tp-tbiv{margin-left:2px}.tp-tbiv+.tp-tbiv.tp-v-disabled::before{opacity:.5}.tp-tbiv_b{display:block;padding-left:calc(var(--cnt-h-p) + 4px);padding-right:calc(var(--cnt-h-p) + 4px);position:relative;width:100%}.tp-tbiv_b:disabled{opacity:.5}.tp-tbiv_b::before{background-color:var(--cnt-bg);bottom:2px;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.tp-tbiv_b:hover::before{background-color:var(--cnt-bg-h)}.tp-tbiv_b:focus::before{background-color:var(--cnt-bg-f)}.tp-tbiv_b:active::before{background-color:var(--cnt-bg-a)}.tp-tbiv_t{color:var(--cnt-fg);height:calc(var(--bld-us) + 4px);line-height:calc(var(--bld-us) + 4px);opacity:.5;overflow:hidden;text-overflow:ellipsis}.tp-tbiv.tp-tbiv-sel .tp-tbiv_t{opacity:1}.tp-txtv{position:relative}.tp-txtv_i{padding:0 4px}.tp-txtv.tp-txtv-fst .tp-txtv_i{border-bottom-right-radius:0;border-top-right-radius:0}.tp-txtv.tp-txtv-mid .tp-txtv_i{border-radius:0}.tp-txtv.tp-txtv-lst .tp-txtv_i{border-bottom-left-radius:0;border-top-left-radius:0}.tp-txtv.tp-txtv-num .tp-txtv_i{text-align:right}.tp-txtv.tp-txtv-drg .tp-txtv_i{opacity:.3}.tp-txtv_k{cursor:pointer;height:100%;left:-3px;position:absolute;top:0;width:12px}.tp-txtv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";height:calc(var(--bld-us) - 4px);left:50%;margin-bottom:auto;margin-left:-1px;margin-top:auto;opacity:.1;position:absolute;top:0;transition:border-radius .1s,height .1s,transform .1s,width .1s;width:2px}.tp-txtv_k:hover::before,.tp-txtv.tp-txtv-drg .tp-txtv_k::before{opacity:1}.tp-txtv.tp-txtv-drg .tp-txtv_k::before{border-radius:50%;height:4px;transform:translateX(-1px);width:4px}.tp-txtv_g{bottom:0;display:block;height:8px;left:50%;margin:auto;overflow:visible;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%}.tp-txtv.tp-txtv-drg .tp-txtv_g{visibility:visible}.tp-txtv_gb{fill:none;stroke:var(--in-fg);stroke-dasharray:1}.tp-txtv_gh{fill:none;stroke:var(--in-fg)}.tp-txtv .tp-ttv{margin-left:6px;visibility:hidden}.tp-txtv.tp-txtv-drg .tp-ttv{visibility:visible}.tp-ttv{background-color:var(--in-fg);border-radius:var(--elm-br);color:var(--bs-bg);padding:2px 4px;pointer-events:none;position:absolute;transform:translate(-50%, -100%)}.tp-ttv::before{border-color:var(--in-fg) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:2px;box-sizing:border-box;content:"";font-size:.9em;height:4px;left:50%;margin-left:-2px;position:absolute;top:100%;width:4px}.tp-rotv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);font-family:var(--font-family);font-size:11px;font-weight:500;line-height:1;text-align:left}.tp-rotv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br);border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br);padding-left:calc(4px + var(--bld-us) + var(--cnt-h-p));text-align:center}.tp-rotv.tp-rotv-expanded .tp-rotv_b{border-bottom-left-radius:0;border-bottom-right-radius:0}.tp-rotv.tp-rotv-not .tp-rotv_b{display:none}.tp-rotv_b:disabled .tp-rotv_m{display:none}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c .tp-fldv.tp-v-vlst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst{margin-top:calc(-1*var(--cnt-v-p))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst>.tp-fldv_b{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst{margin-top:calc(-1*var(--cnt-v-p))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst>.tp-tabv_t{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-v-disabled,.tp-rotv .tp-v-disabled{pointer-events:none}.tp-rotv.tp-v-hidden,.tp-rotv .tp-v-hidden{display:none}'),this.pool_.getAll().forEach(t=>{this.embedPluginStyle_(t)}),this.registerPlugin({plugins:[Oa,Sa,de,Pa]})}}const Ra=new e("3.1.10");t.BladeApi=n,t.ButtonApi=g,t.FolderApi=Dt,t.InputBindingApi=Mt,t.ListApi=Ca,t.MonitorBindingApi=Et,t.Pane=Da,t.SeparatorApi=Kt,t.SliderApi=Aa,t.TabApi=ae,t.TabPageApi=oe,t.TextApi=Ia,t.TpChangeEvent=r,t.VERSION=Ra,Object.defineProperty(t,"__esModule",{value:!0})}))},"17b6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_Y=0,e.MARGIN_RATIO=.5,e.DODGE_RATIO=.5,e.GAP=.05},"182d":function(t,e,n){var i=n("f8cd"),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw r("Wrong offset");return n}},"18f2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("72fb"),r=n("01f9"),o=n("61d8"),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;function l(t){var e=t||[];return r.default(e)?e:o.default(e)?(e=e.match(a),i.default(e,(function(t,n){if(t=t.match(s),t[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}i.default(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}e.default=l},1956:function(t,e,n){"use strict";n("d3b7"),n("96cf");var i=n("e581");e["a"]={data:function(){return{tagTypeList:[]}},methods:{ajaxGetAllowTagType:function(){var t;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(Object(i["o"])("data.query_tag.allow_tag_type"));case 2:t=e.sent,0===t.code&&(this.tagTypeList=t.data);case 4:case"end":return e.stop()}}),null,this)}}}},"1a4d":function(t,e,n){},"1ab2":function(t,e,n){var i=n("7bcc"),r=n("bc6c");function o(t,e){var n=new r(e);return n.process(t)}for(var a in e=t.exports=o,e.FilterCSS=r,i)e[a]=i[a];"undefined"!==typeof window&&(window.filterCSS=t.exports)},"1aeb":function(t,e,n){"use strict";var i=n("c41e"),r=n.n(i);r.a},"1b49a":function(t,e,n){t.exports=n.p+"assets/img/statisticService.0bb40a77.png"},"1b53":function(t,e,n){"use strict";n.r(e),n.d(e,"Pass",(function(){return r})),n.d(e,"FullScreenQuad",(function(){return s}));var i=n("5a89");class r{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const o=new i["OrthographicCamera"](-1,1,1,-1,0,1),a=new i["BufferGeometry"];a.setAttribute("position",new i["Float32BufferAttribute"]([-1,3,0,-1,-1,0,3,-1,0],3)),a.setAttribute("uv",new i["Float32BufferAttribute"]([0,2,0,0,2,0],2));class s{constructor(t){this._mesh=new i["Mesh"](a,t)}dispose(){this._mesh.geometry.dispose()}render(t){t.render(this._mesh,o)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}}},"1c2a":function(t,e,n){},"1d5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("01f9"),r="\t\n\v\f\r   ᠎             　\u2028\u2029",o=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");function s(t){if(!t)return null;if(i.default(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(t,i,r){var o=[],s=i.toLowerCase();if(r.replace(a,(function(t,e){e&&o.push(+e)})),"m"===s&&o.length>2&&(n.push([i].concat(o.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===o.length&&n.push([i,o[0]]),"r"===s)n.push([i].concat(o));else while(o.length>=e[s])if(n.push([i].concat(o.splice(0,e[s]))),!e[s])break;return""})),n}e.default=s},"1f05":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"fromMat4",(function(){return o})),n.d(e,"clone",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"fromValues",(function(){return l})),n.d(e,"set",(function(){return c})),n.d(e,"identity",(function(){return u})),n.d(e,"transpose",(function(){return h})),n.d(e,"invert",(function(){return d})),n.d(e,"adjoint",(function(){return p})),n.d(e,"determinant",(function(){return f})),n.d(e,"multiply",(function(){return g})),n.d(e,"translate",(function(){return m})),n.d(e,"rotate",(function(){return v})),n.d(e,"scale",(function(){return y})),n.d(e,"fromTranslation",(function(){return b})),n.d(e,"fromRotation",(function(){return x})),n.d(e,"fromScaling",(function(){return w})),n.d(e,"fromMat2d",(function(){return _})),n.d(e,"fromQuat",(function(){return C})),n.d(e,"normalFromMat4",(function(){return A})),n.d(e,"projection",(function(){return I})),n.d(e,"str",(function(){return S})),n.d(e,"frob",(function(){return M})),n.d(e,"add",(function(){return k})),n.d(e,"subtract",(function(){return E})),n.d(e,"multiplyScalar",(function(){return T})),n.d(e,"multiplyScalarAndAdd",(function(){return O})),n.d(e,"exactEquals",(function(){return P})),n.d(e,"equals",(function(){return j})),n.d(e,"mul",(function(){return L})),n.d(e,"sub",(function(){return D}));var i=n("c94d");function r(){var t=new i["a"](9);return i["a"]!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function a(t){var e=new i["a"](9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function l(t,e,n,r,o,a,s,l,c){var u=new i["a"](9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=a,u[6]=s,u[7]=l,u[8]=c,u}function c(t,e,n,i,r,o,a,s,l,c){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t}function u(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function h(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function d(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=u*a-s*c,d=-u*o+s*l,p=c*o-a*l,f=n*h+i*d+r*p;return f?(f=1/f,t[0]=h*f,t[1]=(-u*i+r*c)*f,t[2]=(s*i-r*a)*f,t[3]=d*f,t[4]=(u*n-r*l)*f,t[5]=(-s*n+r*o)*f,t[6]=p*f,t[7]=(-c*n+i*l)*f,t[8]=(a*n-i*o)*f,t):null}function p(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return t[0]=a*u-s*c,t[1]=r*c-i*u,t[2]=i*s-r*a,t[3]=s*l-o*u,t[4]=n*u-r*l,t[5]=r*o-n*s,t[6]=o*c-a*l,t[7]=i*l-n*c,t[8]=n*a-i*o,t}function f(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8];return e*(c*o-a*l)+n*(-c*r+a*s)+i*(l*r-o*s)}function g(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=n[0],p=n[1],f=n[2],g=n[3],m=n[4],v=n[5],y=n[6],b=n[7],x=n[8];return t[0]=d*i+p*a+f*c,t[1]=d*r+p*s+f*u,t[2]=d*o+p*l+f*h,t[3]=g*i+m*a+v*c,t[4]=g*r+m*s+v*u,t[5]=g*o+m*l+v*h,t[6]=y*i+b*a+x*c,t[7]=y*r+b*s+x*u,t[8]=y*o+b*l+x*h,t}function m(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=d*i+p*a+c,t[7]=d*r+p*s+u,t[8]=d*o+p*l+h,t}function v(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=Math.sin(n),p=Math.cos(n);return t[0]=p*i+d*a,t[1]=p*r+d*s,t[2]=p*o+d*l,t[3]=p*a-d*i,t[4]=p*s-d*r,t[5]=p*l-d*o,t[6]=c,t[7]=u,t[8]=h,t}function y(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function b(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function x(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function _(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function C(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,c=n*a,u=i*a,h=i*s,d=r*a,p=r*s,f=r*l,g=o*a,m=o*s,v=o*l;return t[0]=1-h-f,t[3]=u-v,t[6]=d+m,t[1]=u+v,t[4]=1-c-f,t[7]=p-g,t[2]=d-m,t[5]=p+g,t[8]=1-c-h,t}function A(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*a,b=n*l-r*a,x=n*c-o*a,w=i*l-r*s,_=i*c-o*s,C=r*c-o*l,A=u*g-h*f,I=u*m-d*f,S=u*v-p*f,M=h*m-d*g,k=h*v-p*g,E=d*v-p*m,T=y*E-b*k+x*M+w*S-_*I+C*A;return T?(T=1/T,t[0]=(s*E-l*k+c*M)*T,t[1]=(l*S-a*E-c*I)*T,t[2]=(a*k-s*S+c*A)*T,t[3]=(r*k-i*E-o*M)*T,t[4]=(n*E-r*S+o*I)*T,t[5]=(i*S-n*k-o*A)*T,t[6]=(g*C-m*_+v*w)*T,t[7]=(m*x-f*C-v*b)*T,t[8]=(f*_-g*x+v*y)*T,t):null}function I(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function S(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function M(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function k(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function E(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function T(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function O(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t}function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function j(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=e[0],p=e[1],f=e[2],g=e[3],m=e[4],v=e[5],y=e[6],b=e[7],x=e[8];return Math.abs(n-d)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-p)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(o-f)<=i["b"]*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-g)<=i["b"]*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-m)<=i["b"]*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(l-v)<=i["b"]*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(c-y)<=i["b"]*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-b)<=i["b"]*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=i["b"]*Math.max(1,Math.abs(h),Math.abs(x))}var L=g,D=E},"1f20":function(t,e){(function(){var t,n,i,r,o,a,s,l;l=function(t){var e,n,i,r;return e=(t&255<<24)>>>24,n=(t&255<<16)>>>16,i=(65280&t)>>>8,r=255&t,[e,n,i,r].join(".")},s=function(t){var e,i,r,o,a,s;for(e=[],r=o=0;o<=3;r=++o){if(0===t.length)break;if(r>0){if("."!==t[0])throw new Error("Invalid IP");t=t.substring(1)}s=n(t),a=s[0],i=s[1],t=t.substring(i),e.push(a)}if(0!==t.length)throw new Error("Invalid IP");switch(e.length){case 1:if(e[0]>4294967295)throw new Error("Invalid IP");return e[0]>>>0;case 2:if(e[0]>255||e[1]>16777215)throw new Error("Invalid IP");return(e[0]<<24|e[1])>>>0;case 3:if(e[0]>255||e[1]>255||e[2]>65535)throw new Error("Invalid IP");return(e[0]<<24|e[1]<<16|e[2])>>>0;case 4:if(e[0]>255||e[1]>255||e[2]>255||e[3]>255)throw new Error("Invalid IP");return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0;default:throw new Error("Invalid IP")}},i=function(t){return t.charCodeAt(0)},r=i("0"),a=i("a"),o=i("A"),n=function(t){var e,n,s,l,c;l=0,e=10,n="9",s=0,t.length>1&&"0"===t[s]&&("x"===t[s+1]||"X"===t[s+1]?(s+=2,e=16):"0"<=t[s+1]&&t[s+1]<="9"&&(s++,e=8,n="7")),c=s;while(s<t.length){if("0"<=t[s]&&t[s]<=n)l=l*e+(i(t[s])-r)>>>0;else{if(16!==e)break;if("a"<=t[s]&&t[s]<="f")l=l*e+(10+i(t[s])-a)>>>0;else{if(!("A"<=t[s]&&t[s]<="F"))break;l=l*e+(10+i(t[s])-o)>>>0}}if(l>4294967295)throw new Error("too large");s++}if(s===c)throw new Error("empty octet");return[l,s]},t=function(){function t(t,e){var n,i,r;if("string"!==typeof t)throw new Error("Missing `net' parameter");if(e||(r=t.split("/",2),t=r[0],e=r[1]),e||(e=32),"string"===typeof e&&e.indexOf(".")>-1){try{this.maskLong=s(e)}catch(o){throw o,new Error("Invalid mask: "+e)}for(n=i=32;i>=0;n=--i)if(this.maskLong===4294967295<<32-n>>>0){this.bitmask=n;break}}else{if(!e&&0!==e)throw new Error("Invalid mask: empty");this.bitmask=parseInt(e,10),this.maskLong=0,this.bitmask>0&&(this.maskLong=4294967295<<32-this.bitmask>>>0)}try{this.netLong=(s(t)&this.maskLong)>>>0}catch(o){throw o,new Error("Invalid net address: "+t)}if(!(this.bitmask<=32))throw new Error("Invalid mask for ip4: "+e);this.size=Math.pow(2,32-this.bitmask),this.base=l(this.netLong),this.mask=l(this.maskLong),this.hostmask=l(~this.maskLong),this.first=this.bitmask<=30?l(this.netLong+1):this.base,this.last=this.bitmask<=30?l(this.netLong+this.size-2):l(this.netLong+this.size-1),this.broadcast=this.bitmask<=30?l(this.netLong+this.size-1):void 0}return t.prototype.contains=function(e){return"string"===typeof e&&(e.indexOf("/")>0||4!==e.split(".").length)&&(e=new t(e)),e instanceof t?this.contains(e.base)&&this.contains(e.broadcast||e.last):(s(e)&this.maskLong)>>>0===(this.netLong&this.maskLong)>>>0},t.prototype.next=function(e){return null==e&&(e=1),new t(l(this.netLong+this.size*e),this.mask)},t.prototype.forEach=function(t){var e,n,i;i=s(this.first),n=s(this.last),e=0;while(i<=n)t(l(i),i,e),e++,i++},t.prototype.toString=function(){return this.base+"/"+this.bitmask},t}(),e.ip2long=s,e.long2ip=l,e.Netmask=t}).call(this)},"1f49":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var i=n("34ba"),r=n("99ea"),o=n("29c2"),a=n("af7f"),s=n("744a"),l=n("33e8");const c="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class u extends i["a"]{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),e=this.opts.protocols,n=c?{}:Object(a["c"])(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=s["d"]&&!c?e?new s["a"](t,e):new s["a"](t):new s["a"](t,e,n)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||s["b"],this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const i=e[n],r=n===e.length-1;Object(l["c"])(i,this.supportsBinary,e=>{const n={};if(!s["d"]&&(i.options&&(n.compress=i.options.compress),this.opts.perMessageDeflate)){const i="string"===typeof e?t.byteLength(e):e.length;i<this.opts.perMessageDeflate.threshold&&(n.compress=!1)}try{s["d"]?this.ws.send(e):this.ws.send(e,n)}catch(o){}r&&Object(s["c"])(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const e=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===e&&443!==Number(this.opts.port)||"ws"===e&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Object(o["a"])()),this.supportsBinary||(t.b64=1);const i=Object(r["b"])(t),a=-1!==this.opts.hostname.indexOf(":");return e+"://"+(a?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(i.length?"?"+i:"")}check(){return!!s["a"]}}}).call(this,n("b639").Buffer)},2047:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("bd8b");e.default=function(t){return i.default(t,"Function")}},"20a4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{return"undefined"!==typeof self?self:"undefined"!==typeof window?window:Function("return this")()})()},2129:function(t,e,n){},"219c":function(t,e,n){"use strict";var i=n("da84"),r=n("4625"),o=n("d039"),a=n("59ed"),s=n("addb"),l=n("ebb5"),c=n("04d1"),u=n("d998"),h=n("2d00"),d=n("512ce"),p=l.aTypedArray,f=l.exportTypedArrayMethod,g=i.Uint16Array,m=g&&r(g.prototype.sort),v=!!m&&!(o((function(){m(new g(2),null)}))&&o((function(){m(new g(2),{})}))),y=!!m&&!o((function(){if(h)return h<74;if(c)return c<67;if(u)return!0;if(d)return d<602;var t,e,n=new g(516),i=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,i[t]=t-2*e+3;for(m(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==i[t])return!0})),b=function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!==n?-1:e!==e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}};f("sort",(function(t){return void 0!==t&&a(t),y?m(this,t):s(p(this),b(t))}),!y||v)},"22b5":function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"Easing",(function(){return r})),n.d(e,"Group",(function(){return a})),n.d(e,"Interpolation",(function(){return s})),n.d(e,"Sequence",(function(){return l})),n.d(e,"Tween",(function(){return u})),n.d(e,"VERSION",(function(){return h})),n.d(e,"add",(function(){return m})),n.d(e,"getAll",(function(){return f})),n.d(e,"nextId",(function(){return d})),n.d(e,"now",(function(){return o})),n.d(e,"remove",(function(){return v})),n.d(e,"removeAll",(function(){return g})),n.d(e,"update",(function(){return y}));var i,r={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2,t<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1)}},Back:{In:function(t){var e=1.70158;return t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-r.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*r.Bounce.In(2*t):.5*r.Bounce.Out(2*t-1)+.5}}};i="undefined"===typeof self&&"undefined"!==typeof t&&t.hrtime?function(){var e=t.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!==typeof self&&void 0!==self.performance&&void 0!==self.performance.now?self.performance.now.bind(self.performance):void 0!==Date.now?Date.now:function(){return(new Date).getTime()};var o=i,a=function(){function t(){this._tweens={},this._tweensAddedDuringUpdate={}}return t.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map((function(e){return t._tweens[e]}))},t.prototype.removeAll=function(){this._tweens={}},t.prototype.add=function(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t},t.prototype.remove=function(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]},t.prototype.update=function(t,e){void 0===t&&(t=o()),void 0===e&&(e=!1);var n=Object.keys(this._tweens);if(0===n.length)return!1;while(n.length>0){this._tweensAddedDuringUpdate={};for(var i=0;i<n.length;i++){var r=this._tweens[n[i]],a=!e;r&&!1===r.update(t,a)&&!e&&delete this._tweens[n[i]]}n=Object.keys(this._tweensAddedDuringUpdate)}return!0},t}(),s={Linear:function(t,e){var n=t.length-1,i=n*e,r=Math.floor(i),o=s.Utils.Linear;return e<0?o(t[0],t[1],i):e>1?o(t[n],t[n-1],n-i):o(t[r],t[r+1>n?n:r+1],i-r)},Bezier:function(t,e){for(var n=0,i=t.length-1,r=Math.pow,o=s.Utils.Bernstein,a=0;a<=i;a++)n+=r(1-e,i-a)*r(e,a)*t[a]*o(i,a);return n},CatmullRom:function(t,e){var n=t.length-1,i=n*e,r=Math.floor(i),o=s.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(r=Math.floor(i=n*(1+e))),o(t[(r-1+n)%n],t[r],t[(r+1)%n],t[(r+2)%n],i-r)):e<0?t[0]-(o(t[0],t[0],t[1],t[1],-i)-t[0]):e>1?t[n]-(o(t[n],t[n],t[n-1],t[n-1],i-n)-t[n]):o(t[r?r-1:0],t[r],t[n<r+1?n:r+1],t[n<r+2?n:r+2],i-r)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Bernstein:function(t,e){var n=s.Utils.Factorial;return n(t)/n(e)/n(t-e)},Factorial:function(){var t=[1];return function(e){var n=1;if(t[e])return t[e];for(var i=e;i>1;i--)n*=i;return t[e]=n,n}}(),CatmullRom:function(t,e,n,i,r){var o=.5*(n-t),a=.5*(i-e),s=r*r,l=r*s;return(2*e-2*n+o+a)*l+(-3*e+3*n-2*o-a)*s+o*r+e}}},l=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),c=new a,u=function(){function t(t,e){void 0===e&&(e=c),this._object=t,this._group=e,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=r.Linear.None,this._interpolationFunction=s.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=l.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return t.prototype.getId=function(){return this._id},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isPaused=function(){return this._isPaused},t.prototype.to=function(t,e){return this._valuesEnd=Object.create(t),void 0!==e&&(this._duration=e),this},t.prototype.duration=function(t){return this._duration=t,this},t.prototype.start=function(t){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var e in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==t?"string"===typeof t?o()+parseFloat(t):t:o(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},t.prototype._setupProperties=function(t,e,n,i){for(var r in n){var o=t[r],a=Array.isArray(o),s=a?"array":typeof o,l=!a&&Array.isArray(n[r]);if("undefined"!==s&&"function"!==s){if(l){var c=n[r];if(0===c.length)continue;c=c.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(c)}if("object"!==s&&!a||!o||l)"undefined"===typeof e[r]&&(e[r]=o),a||(e[r]*=1),i[r]=l?n[r].slice().reverse():e[r]||0;else{for(var u in e[r]=a?[]:{},o)e[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,e[r],n[r],i[r])}}}},t.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},t.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},t.prototype.pause=function(t){return void 0===t&&(t=o()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=t,this._group&&this._group.remove(this),this)},t.prototype.resume=function(t){return void 0===t&&(t=o()),this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this):this},t.prototype.stopChainedTweens=function(){for(var t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this},t.prototype.group=function(t){return this._group=t,this},t.prototype.delay=function(t){return this._delayTime=t,this},t.prototype.repeat=function(t){return this._initialRepeat=t,this._repeat=t,this},t.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},t.prototype.yoyo=function(t){return this._yoyo=t,this},t.prototype.easing=function(t){return this._easingFunction=t,this},t.prototype.interpolation=function(t){return this._interpolationFunction=t,this},t.prototype.chain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._chainedTweens=t,this},t.prototype.onStart=function(t){return this._onStartCallback=t,this},t.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},t.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},t.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},t.prototype.onStop=function(t){return this._onStopCallback=t,this},t.prototype.update=function(t,e){if(void 0===t&&(t=o()),void 0===e&&(e=!0),this._isPaused)return!0;var n,i,r=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),i=(t-this._startTime)/this._duration,i=0===this._duration||i>1?1:i;var a=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),1===i){if(this._repeat>0){for(n in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!==typeof this._valuesEnd[n]||(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,l=this._chainedTweens.length;s<l;s++)this._chainedTweens[s].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},t.prototype._updateProperties=function(t,e,n,i){for(var r in n)if(void 0!==e[r]){var o=e[r]||0,a=n[r],s=Array.isArray(t[r]),l=Array.isArray(a),c=!s&&l;c?t[r]=this._interpolationFunction(a,i):"object"===typeof a&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),"number"===typeof a&&(t[r]=o+(a-o)*i))}},t.prototype._handleRelativeValue=function(t,e){return"string"!==typeof e?e:"+"===e.charAt(0)||"-"===e.charAt(0)?t+parseFloat(e):parseFloat(e)},t.prototype._swapEndStartRepeatValues=function(t){var e=this._valuesStartRepeat[t],n=this._valuesEnd[t];this._valuesStartRepeat[t]="string"===typeof n?this._valuesStartRepeat[t]+parseFloat(n):this._valuesEnd[t],this._valuesEnd[t]=e},t}(),h="18.6.4",d=l.nextId,p=c,f=p.getAll.bind(p),g=p.removeAll.bind(p),m=p.add.bind(p),v=p.remove.bind(p),y=p.update.bind(p),b={Easing:r,Group:a,Interpolation:s,now:o,Sequence:l,nextId:d,Tween:u,VERSION:h,getAll:f,removeAll:g,add:m,remove:v,update:y};e["default"]=b}.call(this,n("4362"))},2412:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distanceAtSegment=e.angleAtSegments=e.pointAtSegments=e.lengthOfSegment=void 0;var i=n("c3e2"),r=n("b455");function o(t){for(var e=0,n=[],i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],s=r.distance(o[0],o[1],a[0],a[1]),l={from:o,to:a,length:s};n.push(l),e+=s}return{segments:n,totalLength:e}}function a(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var i=t[n],o=t[n+1];e+=r.distance(i[0],i[1],o[0],o[1])}return e}function s(t,e){if(e>1||e<0||t.length<2)return null;var n=o(t),r=n.segments,a=n.totalLength;if(0===a)return{x:t[0][0],y:t[0][1]};for(var s=0,l=null,c=0;c<r.length;c++){var u=r[c],h=u.from,d=u.to,p=u.length/a;if(e>=s&&e<=s+p){var f=(e-s)/p;l=i.default.pointAt(h[0],h[1],d[0],d[1],f);break}s+=p}return l}function l(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=o(t),i=n.segments,r=n.totalLength,a=0,s=0,l=0;l<i.length;l++){var c=i[l],u=c.from,h=c.to,d=c.length/r;if(e>=a&&e<=a+d){s=Math.atan2(h[1]-u[1],h[0]-u[0]);break}a+=d}return s}function c(t,e,n){for(var r=1/0,o=0;o<t.length-1;o++){var a=t[o],s=t[o+1],l=i.default.pointDistance(a[0],a[1],s[0],s[1],e,n);l<r&&(r=l)}return r}e.lengthOfSegment=a,e.pointAtSegments=s,e.angleAtSegments=l,e.distanceAtSegment=c},"25a1":function(t,e,n){"use strict";var i=n("ebb5"),r=n("d58f").right,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduceRight",(function(t){var e=arguments.length;return r(o(this),t,e,e>1?arguments[1]:void 0)}))},2614:function(t,e,n){"use strict";var i=n("f1bf"),r=n.n(i);r.a},2687:function(t,e,n){},"26ad":function(t,e,n){"use strict";var i=n("ff17");function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function l(t,e,n){return l=s()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=Function.bind.apply(t,i),o=new r;return n&&a(o,n.prototype),o},l.apply(null,arguments)}function c(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function u(t){var e="function"===typeof Map?new Map:void 0;return u=function(t){if(null===t||!c(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return l(t,arguments,o(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,t)},u(t)}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){var e=t.__proto__;Object.defineProperty(t,"__proto__",{get:function(){return e},set:function(t){e.__proto__=t}})}var p=function(t){function e(e){var n;return n=t.call.apply(t,[this].concat(e))||this,d(h(n)),n}return r(e,t),e}(u(Array));function f(t){void 0===t&&(t=[]);var e=[];return t.forEach((function(t){Array.isArray(t)?e.push.apply(e,f(t)):e.push(t)})),e}function g(t,e){return Array.prototype.filter.call(t,e)}function m(t){for(var e=[],n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function v(t,e){if("string"!==typeof t)return[t];for(var n=[],i=e.querySelectorAll(t),r=0;r<i.length;r+=1)n.push(i[r]);return n}function y(t,e){var n=Object(i["b"])(),r=Object(i["a"])(),o=[];if(!e&&t instanceof p)return t;if(!t)return new p(o);if("string"===typeof t){var a=t.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var s="div";0===a.indexOf("<li")&&(s="ul"),0===a.indexOf("<tr")&&(s="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(s="tr"),0===a.indexOf("<tbody")&&(s="table"),0===a.indexOf("<option")&&(s="select");var l=r.createElement(s);l.innerHTML=a;for(var c=0;c<l.childNodes.length;c+=1)o.push(l.childNodes[c])}else o=v(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof p)return t;o=t}return new p(m(o))}function b(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=f(e.map((function(t){return t.split(" ")})));return this.forEach((function(t){var e;(e=t.classList).add.apply(e,i)})),this}function x(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=f(e.map((function(t){return t.split(" ")})));return this.forEach((function(t){var e;(e=t.classList).remove.apply(e,i)})),this}function w(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=f(e.map((function(t){return t.split(" ")})));this.forEach((function(t){i.forEach((function(e){t.classList.toggle(e)}))}))}function _(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=f(e.map((function(t){return t.split(" ")})));return g(this,(function(t){return i.filter((function(e){return t.classList.contains(e)})).length>0})).length>0}function C(t,e){if(1===arguments.length&&"string"===typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(t,e);else for(var i in t)this[n][i]=t[i],this[n].setAttribute(i,t[i]);return this}function A(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function I(t){for(var e=0;e<this.length;e+=1)this[e].style.transform=t;return this}function S(t){for(var e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!==typeof t?t+"ms":t;return this}function M(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e[0],r=e[1],o=e[2],a=e[3];function s(t){var e=t.target;if(e){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),y(e).is(r))o.apply(e,n);else for(var i=y(e).parents(),a=0;a<i.length;a+=1)y(i[a]).is(r)&&o.apply(i[a],n)}}function l(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),o.apply(this,e)}"function"===typeof e[1]&&(i=e[0],o=e[1],a=e[2],r=void 0),a||(a=!1);for(var c,u=i.split(" "),h=0;h<this.length;h+=1){var d=this[h];if(r)for(c=0;c<u.length;c+=1){var p=u[c];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:o,proxyListener:s}),d.addEventListener(p,s,a)}else for(c=0;c<u.length;c+=1){var f=u[c];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[f]||(d.dom7Listeners[f]=[]),d.dom7Listeners[f].push({listener:o,proxyListener:l}),d.addEventListener(f,l,a)}}return this}function k(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e[0],r=e[1],o=e[2],a=e[3];"function"===typeof e[1]&&(i=e[0],o=e[1],a=e[2],r=void 0),a||(a=!1);for(var s=i.split(" "),l=0;l<s.length;l+=1)for(var c=s[l],u=0;u<this.length;u+=1){var h=this[u],d=void 0;if(!r&&h.dom7Listeners?d=h.dom7Listeners[c]:r&&h.dom7LiveListeners&&(d=h.dom7LiveListeners[c]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var f=d[p];o&&f.listener===o?(h.removeEventListener(c,f.proxyListener,a),d.splice(p,1)):o&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===o?(h.removeEventListener(c,f.proxyListener,a),d.splice(p,1)):o||(h.removeEventListener(c,f.proxyListener,a),d.splice(p,1))}}return this}function E(){for(var t=Object(i["b"])(),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var o=n[0].split(" "),a=n[1],s=0;s<o.length;s+=1)for(var l=o[s],c=0;c<this.length;c+=1){var u=this[c];if(t.CustomEvent){var h=new t.CustomEvent(l,{detail:a,bubbles:!0,cancelable:!0});u.dom7EventData=n.filter((function(t,e){return e>0})),u.dispatchEvent(h),u.dom7EventData=[],delete u.dom7EventData}}return this}function T(t){var e=this;function n(i){i.target===this&&(t.call(this,i),e.off("transitionend",n))}return t&&e.on("transitionend",n),this}function O(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function P(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function j(){if(this.length>0){var t=Object(i["b"])(),e=Object(i["a"])(),n=this[0],r=n.getBoundingClientRect(),o=e.body,a=n.clientTop||o.clientTop||0,s=n.clientLeft||o.clientLeft||0,l=n===t?t.scrollY:n.scrollTop,c=n===t?t.scrollX:n.scrollLeft;return{top:r.top+l-a,left:r.left+c-s}}return null}function L(){var t=Object(i["b"])();return this[0]?t.getComputedStyle(this[0],null):{}}function D(t,e){var n,r=Object(i["b"])();if(1===arguments.length){if("string"!==typeof t){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"===typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function R(t){return t?(this.forEach((function(e,n){t.apply(e,[e,n])})),this):this}function B(t){var e=g(this,t);return y(e)}function N(t){if("undefined"===typeof t)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function F(t){if("undefined"===typeof t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function z(t){var e,n,r=Object(i["b"])(),o=Object(i["a"])(),a=this[0];if(!a||"undefined"===typeof t)return!1;if("string"===typeof t){if(a.matches)return a.matches(t);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(t);if(a.msMatchesSelector)return a.msMatchesSelector(t);for(e=y(t),n=0;n<e.length;n+=1)if(e[n]===a)return!0;return!1}if(t===o)return a===o;if(t===r)return a===r;if(t.nodeType||t instanceof p){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===a)return!0;return!1}return!1}function V(){var t,e=this[0];if(e){t=0;while(null!==(e=e.previousSibling))1===e.nodeType&&(t+=1);return t}}function G(t){if("undefined"===typeof t)return this;var e=this.length;if(t>e-1)return y([]);if(t<0){var n=e+t;return y(n<0?[]:[this[n]])}return y([this[t]])}function H(){for(var t,e=Object(i["a"])(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"===typeof t){var o=e.createElement("div");o.innerHTML=t;while(o.firstChild)this[r].appendChild(o.firstChild)}else if(t instanceof p)for(var a=0;a<t.length;a+=1)this[r].appendChild(t[a]);else this[r].appendChild(t)}return this}function W(t){var e,n,r=Object(i["a"])();for(e=0;e<this.length;e+=1)if("string"===typeof t){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof p)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function U(t){return this.length>0?t?this[0].nextElementSibling&&y(this[0].nextElementSibling).is(t)?y([this[0].nextElementSibling]):y([]):this[0].nextElementSibling?y([this[0].nextElementSibling]):y([]):y([])}function Z(t){var e=[],n=this[0];if(!n)return y([]);while(n.nextElementSibling){var i=n.nextElementSibling;t?y(i).is(t)&&e.push(i):e.push(i),n=i}return y(e)}function Y(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&y(e.previousElementSibling).is(t)?y([e.previousElementSibling]):y([]):e.previousElementSibling?y([e.previousElementSibling]):y([])}return y([])}function X(t){var e=[],n=this[0];if(!n)return y([]);while(n.previousElementSibling){var i=n.previousElementSibling;t?y(i).is(t)&&e.push(i):e.push(i),n=i}return y(e)}function q(t){for(var e=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?y(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return y(e)}function K(t){for(var e=[],n=0;n<this.length;n+=1){var i=this[n].parentNode;while(i)t?y(i).is(t)&&e.push(i):e.push(i),i=i.parentNode}return y(e)}function Q(t){var e=this;return"undefined"===typeof t?y([]):(e.is(t)||(e=e.parents(t).eq(0)),e)}function J(t){for(var e=[],n=0;n<this.length;n+=1)for(var i=this[n].querySelectorAll(t),r=0;r<i.length;r+=1)e.push(i[r]);return y(e)}function $(t){for(var e=[],n=0;n<this.length;n+=1)for(var i=this[n].children,r=0;r<i.length;r+=1)t&&!y(i[r]).is(t)||e.push(i[r]);return y(e)}function tt(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}y.fn=p.prototype;var et="resize scroll".split(" ");function nt(t){function e(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if("undefined"===typeof n[0]){for(var r=0;r<this.length;r+=1)et.indexOf(t)<0&&(t in this[r]?this[r][t]():y(this[r]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}return e}nt("click"),nt("blur"),nt("focus"),nt("focusin"),nt("focusout"),nt("keyup"),nt("keydown"),nt("keypress"),nt("submit"),nt("change"),nt("mousedown"),nt("mousemove"),nt("mouseup"),nt("mouseenter"),nt("mouseleave"),nt("mouseout"),nt("mouseover"),nt("touchstart"),nt("touchend"),nt("touchmove"),nt("resize"),nt("scroll");var it={addClass:b,removeClass:x,hasClass:_,toggleClass:w,attr:C,removeAttr:A,transform:I,transition:S,on:M,off:k,trigger:E,transitionEnd:T,outerWidth:O,outerHeight:P,styles:L,offset:j,css:D,each:R,html:N,text:F,is:z,index:V,eq:G,append:H,prepend:W,next:U,nextAll:Z,prev:Y,prevAll:X,parent:q,parents:K,closest:Q,find:J,children:$,filter:B,remove:tt};Object.keys(it).forEach((function(t){Object.defineProperty(y.fn,t,{value:it[t],writable:!0})}));e["a"]=y},"26cb":function(t,e,n){},"26d7":function(t,e,n){},2760:function(t,e,n){},2892:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("8937"),r=n("17b6"),o=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames,r=void 0===i?["x","y"]:i;this.adjustNames=r,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===a?0:a-1],r=n[a===s-1?s-1:a+1],0!==a?i+=(e-i)/2:i-=(r-e)/2,a!==s-1?r-=(r-e)/2:r+=(e-n[s-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);i.each(t,(function(t,e){i.each(r,(function(i,r){n.adjustDim(r,i,t,e)}))}))},t.prototype.groupData=function(t,e){return i.each(t,(function(t){void 0===t[e]&&(t[e]=r.DEFAULT_Y)})),i.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,o=e.yField,a={},s=[];if(n&&this.isAdjust("x")&&s.push(n),o&&this.isAdjust("y")&&s.push(o),s.forEach((function(e){a[e]=i.valuesOfKey(t,e).sort((function(t,e){return t-e}))})),!o&&this.isAdjust("y")){var l="y";a[l]=[r.DEFAULT_Y,1]}return a},t}();e.default=o},"28f6":function(t){t.exports=JSON.parse('{"印度尼西亚":"ID","阿富汗":"AF","奥兰":"AX","阿尔巴尼亚":"AL","阿尔及利亚":"DZ","美属萨摩亚":"AS","安道尔":"AD","安哥拉":"AO","安圭拉":"AI","南极洲":"AQ","安提瓜和巴布达":"AG","阿根廷":"AR","亚美尼亚":"AM","阿鲁巴":"AW","澳大利亚":"AU","奥地利":"AT","阿塞拜疆":"AZ","巴哈马":"BS","巴林":"BH","孟加拉国":"BD","巴巴多斯":"BB","白俄罗斯":"BY","比利时":"BE","伯利兹":"BZ","贝宁":"BJ","百慕大":"BM","不丹":"BT","玻利维亚":"BO","荷兰加勒比区":"BQ","波斯尼亚和黑塞哥维那":"BA","博茨瓦纳":"BW","布韦岛":"BV","巴西":"BR","英属印度洋领地":"IO","文莱":"BN","保加利亚":"BG","布基纳法索":"BF","布隆迪":"BI","佛得角":"CV","柬埔寨":"KH","喀麦隆":"CM","加拿大":"CA","开曼群岛":"KY","中非":"CF","乍得":"TD","智利":"CL","中国":"CN","圣诞岛":"CX","科科斯（基林）群岛":"CC","哥伦比亚":"CO","科摩罗":"KM","刚果（布）":"CG","刚果（金）":"CD","库克群岛":"CK","哥斯达黎加":"CR","科特迪瓦":"CI","克罗地亚":"HR","古巴":"CU","库拉索":"CW","塞浦路斯":"CY","捷克":"CZ","丹麦":"DK","吉布提":"DJ","多米尼克":"DM","多米尼加":"DO","厄瓜多尔":"EC","埃及":"EG","萨尔瓦多":"SV","赤道几内亚":"GQ","厄立特里亚":"ER","爱沙尼亚":"EE","埃塞俄比亚":"ET","福克兰群岛":"FK","法罗群岛":"FO","斐济":"FJ","芬兰":"FI","法国":"FR","法属圭亚那":"GF","法属波利尼西亚":"PF","法属南方和南极洲领地":"TF","加蓬":"GA","冈比亚":"GM","格鲁吉亚":"GE","德国":"DE","加纳":"GH","直布罗陀":"GI","希腊":"GR","格陵兰":"GL","格林纳达":"GD","瓜德罗普":"GP","关岛":"GU","危地马拉":"GT","根西":"GG","几内亚":"GN","几内亚比绍":"GW","圭亚那":"GY","海地":"HT","赫德岛和麦克唐纳群岛":"HM","梵蒂冈":"VA","洪都拉斯":"HN","香港":"HK","匈牙利":"HU","冰岛":"IS","印度":"IN","印尼":"ID","伊朗":"IR","伊拉克":"IQ","爱尔兰":"IE","马恩岛":"IM","以色列":"IL","意大利":"IT","牙买加":"JM","日本":"JP","泽西":"JE","约旦":"JO","哈萨克斯坦":"KZ","肯尼亚":"KE","基里巴斯":"KI","朝鲜":"KP","韩国":"KR","科威特":"KW","吉尔吉斯斯坦":"KG","老挝":"LA","拉脱维亚":"LV","黎巴嫩":"LB","莱索托":"LS","利比里亚":"LR","利比亚":"LY","列支敦士登":"LI","立陶宛":"LT","卢森堡":"LU","澳门":"MO","马其顿":"MK","马达加斯加":"MG","马拉维":"MW","马来西亚":"MY","马尔代夫":"MV","马里":"ML","马耳他":"MT","马绍尔群岛":"MH","马提尼克":"MQ","毛里塔尼亚":"MR","毛里求斯":"MU","马约特":"YT","墨西哥":"MX","密克罗尼西亚联邦":"FM","摩尔多瓦":"MD","摩纳哥":"MC","蒙古国":"MN","黑山":"ME","蒙特塞拉特":"MS","摩洛哥":"MA","莫桑比克":"MZ","缅甸":"MM","纳米比亚":"NA","瑙鲁":"NR","尼泊尔":"NP","荷兰":"NL","新喀里多尼亚":"NC","新西兰":"NZ","尼加拉瓜":"NI","尼日尔":"NE","尼日利亚":"NG","纽埃":"NU","诺福克岛":"NF","北马里亚纳群岛":"MP","挪威":"NO","阿曼":"OM","巴基斯坦":"PK","帕劳":"PW","巴勒斯坦":"PS","巴拿马":"PA","巴布亚新几内亚":"PG","巴拉圭":"PY","秘鲁":"PE","菲律宾":"PH","皮特凯恩群岛":"PN","波兰":"PL","葡萄牙":"PT","波多黎各":"PR","卡塔尔":"QA","留尼汪":"RE","罗马尼亚":"RO","俄罗斯":"RU","卢旺达":"RW","圣巴泰勒米":"BL","圣赫勒拿、阿森松和特里斯坦-达库尼亚":"SH","圣基茨和尼维斯":"KN","圣卢西亚":"LC","法属圣马丁":"MF","圣皮埃尔和密克隆":"PM","圣文森特和格林纳丁斯":"VC","萨摩亚":"WS","圣马力诺":"SM","圣多美和普林西比":"ST","沙特阿拉伯":"SA","塞内加尔":"SN","塞尔维亚":"RS","塞舌尔":"SC","塞拉利昂":"SL","新加坡":"SG","圣马丁":"SX","斯洛伐克":"SK","斯洛文尼亚":"SI","所罗门群岛":"SB","索马里":"SO","南非":"ZA","南乔治亚和南桑威奇群岛":"GS","南苏丹":"SS","西班牙":"ES","斯里兰卡":"LK","苏丹":"SD","苏里南":"SR","斯瓦尔巴和扬马延":"SJ","斯威士兰":"SZ","瑞典":"SE","瑞士":"CH","叙利亚":"SY","中国台湾省":"TW","塔吉克斯坦":"TJ","坦桑尼亚":"TZ","泰国":"TH","东帝汶":"TL","多哥":"TG","托克劳":"TK","汤加":"TO","特立尼达和多巴哥":"TT","突尼斯":"TN","土耳其":"TR","土库曼斯坦":"TM","特克斯和凯科斯群岛":"TC","图瓦卢":"TV","乌干达":"UG","乌克兰":"UA","阿联酋":"AE","英国":"GB","美国":"US","美国本土外小岛屿":"UM","乌拉圭":"UY","乌兹别克斯坦":"UZ","瓦努阿图":"VU","委内瑞拉":"VE","越南":"VN","英属维尔京群岛":"VG","美属维尔京群岛":"VI","瓦利斯和富图纳":"WF","西撒哈拉":"EH","也门":"YE","赞比亚":"ZM","津巴布韦":"ZW"}')},"28f9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return null===t||void 0===t};e.default=i},2954:function(t,e,n){"use strict";var i=n("ebb5"),r=n("b6b7"),o=n("d039"),a=n("f36a"),s=i.aTypedArray,l=i.exportTypedArrayMethod,c=o((function(){new Int8Array(1).slice()}));l("slice",(function(t,e){var n=a(s(this),t,e),i=r(this),o=0,l=n.length,c=new i(l);while(l>o)c[o]=n[o++];return c}),c)},"29c2":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r=64,o={};let a,s=0,l=0;function c(t){let e="";do{e=i[t%r]+e,t=Math.floor(t/r)}while(t>0);return e}function u(){const t=c(+new Date);return t!==a?(s=0,a=t):t+"."+c(s++)}for(;l<r;l++)o[i[l]]=l},"29d7":function(t,e,n){"use strict";function i(t){var e=t.attr(),n=e.x,i=e.y,r=e.width,o=e.height;return{x:n,y:i,width:r,height:o}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"29f4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=1e-5;function r(t,e,n){return void 0===n&&(n=i),Math.abs(t-e)<n}e.default=r},"2a37":function(t){t.exports=JSON.parse('{"name":"@antv/g-base","version":"0.4.7","description":"A common util collection for antv projects","main":"lib/index.js","module":"esm/index.js","types":"lib/index.d.ts","files":["package.json","esm","lib","LICENSE","README.md"],"scripts":{"build":"npm run clean && run-p build:*","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","clean":"rm -rf esm lib","watch:cjs":"tsc-watch -p tsconfig.json --target ES5 --module commonjs --outDir lib --compiler typescript/bin/tsc","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage","test":"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts","tsc":"tsc --noEmit","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/antvis/util.git"},"keywords":["util","antv","g"],"publishConfig":{"access":"public"},"author":"https://github.com/orgs/antvis/people","license":"ISC","bugs":{"url":"https://github.com/antvis/util/issues"},"devDependencies":{"@antv/torch":"^1.0.0","gl-matrix":"^3.0.0","less":"^3.9.0","npm-run-all":"^4.1.5","tsc-watch":"^4.0.0"},"homepage":"https://github.com/antvis/util#readme","dependencies":{"@antv/event-emitter":"^0.1.1","@antv/g-math":"^0.1.3","@antv/matrix-util":"^3.1.0-beta.1","@antv/path-util":"~2.0.5","@antv/util":"~2.0.0","@types/d3-timer":"^1.0.9","d3-ease":"^1.0.5","d3-interpolate":"^1.3.2","d3-timer":"^1.0.9","detect-browser":"^5.1.0"},"__npminstall_done":false,"gitHead":"eb6a2503cb7bb8154697592b10680939d954a31a"}')},"2a7d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=1e-6;function r(t){return Math.abs(t)<i?0:t<0?-1:1}function o(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function a(t,e,n){var i=!1,a=t.length;if(a<=2)return!1;for(var s=0;s<a;s++){var l=t[s],c=t[(s+1)%a];if(o(l,c,[e,n]))return!0;r(l[1]-n)>0!==r(c[1]-n)>0&&r(e-(n-l[1])*(l[0]-c[0])/(l[1]-c[1])-l[0])<0&&(i=!i)}return i}e.default=a},"2b19":function(t,e,n){var i=n("23e7"),r=n("129f");i({target:"Object",stat:!0},{is:r})},"2b23":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("b455"),r=n("3d7d");function o(t){for(var e=t.attr(),n=e.points,o=[],a=[],s=0;s<n.length;s++){var l=n[s];o.push(l[0]),a.push(l[1])}var c=i.getBBoxByArray(o,a),u=c.x,h=c.y,d=c.width,p=c.height,f={minX:u,minY:h,maxX:u+d,maxY:h+p};return f=r.mergeArrowBBox(t,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}e.default=o},"2bed":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"aggregation-wrapper",class:{daytime:"theme-dark-green"!==t.themeClassName}},[t._t("showAggregation"),t.leftLoading?t._e():[t._l(t.aggregationsListLabel,(function(e,i){return[t.aggregations[e.key]?n("div",{key:i,staticClass:"item-container"},[n("el-collapse",{staticClass:"aggregations-lists-collapse",on:{change:function(n){return t.changeCollapse(n,i,5,e)}},model:{value:t.isCollapseActiveNames,callback:function(e){t.isCollapseActiveNames=e},expression:"isCollapseActiveNames"}},[n("el-collapse-item",{attrs:{name:e.label}},[n("template",{slot:"title"},[n("div",[t._v(t._s(e.label))])]),n("div",{staticClass:"item-title"},["analysis"!==t.activeName&&"层级"!==e.label&&t.aggregations[e.key].length?n("i",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.hide,expression:"hide"}],staticClass:"el-icon-arrow-down arrow-down",on:{click:function(n){return t.onChangeAmount(i,e.label)}}}):t._e(),t.currentAggredationIndex===i?n("div",{staticClass:"amount-container"},[t._l(t.amountList,(function(r,o){return["number"===typeof r?[n("div",{key:o,staticClass:"amount",style:{backgroundColor:e.amount===r?"theme-dark-green"===t.themeClassName?"#3E4352":"#EFF1F4":""},on:{click:function(n){return n.stopPropagation(),t.onSelectAmount(i,r,e)}}},[t._v(t._s(r))])]:[e.nomore?t._e():n("div",{key:o,staticClass:"amount",style:{backgroundColor:e.amount===r.value?"#EFF1F4":""},on:{click:function(n){return n.stopPropagation(),t.onSelectAmount(i,r.value,e)}}},[t._v(" "+t._s(r.label)+" ")])]]}))],2):t._e()]),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.aggregationsSingleKey===e.key&&t.aggregationsSingleLoading,expression:"aggregationsSingleKey === item.key && aggregationsSingleLoading"}],staticStyle:{padding:"0 12px"}},[!t.aggregationVersionKeys.includes(e.key)||e.judgeLatest&&!t.isLatest?n("div",{style:{"min-height":"34px"}},[t.aggregations[e.key]&&t.aggregations[e.key].length>0?n("div",t._l(t.aggregations[e.key],(function(i,r){return n("div",{key:r,staticClass:"item-list animate-scale"},[[n("span",{staticClass:"item-key show-tip"},[n("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip",value:"app",expression:"'app'"}],attrs:{effect:"dark",content:String(i.key).slice(0,60),placement:"top-start"}},[n("span",{staticClass:"label"},[n("span",{staticClass:"ellipse-text",on:{click:function(n){n.stopPropagation(),n.preventDefault(),t.onSearchMore(t.computeKey(e.alias||e.key),i.key,i.paramsKey||null)}}},[t._v(t._s(i.key))])])])],1),"analysis"!==t.activeName?n("span",{staticClass:"item-value"},[t._v(t._s(i.doc_count&&i.doc_count.toLocaleString()))]):t._e()]],2)})),0):n("div",{staticStyle:{"text-align":"center"}},[t._v("暂无数据")])]):n("div",[n("el-collapse",{model:{value:t.aggregationVersion[e.key].activeNames,callback:function(n){t.$set(t.aggregationVersion[e.key],"activeNames",n)},expression:"aggregationVersion[item.key].activeNames"}},t._l(t.aggregations[e.key],(function(i,r){return n("el-collapse-item",{key:r,staticClass:"item-collapse",attrs:{name:i.key}},[n("template",{slot:"title"},[n("i",{directives:[{name:"show",rawName:"v-show",value:i.version&&i.version.length,expression:"o.version && o.version.length"}],staticClass:"el-icon-arrow-right transition-time",class:{"rotate-arrow":t.aggregationVersion[e.key].activeNames.includes(i.key)}}),n("div",{staticClass:"item-head-title div-item-title",class:i.version&&i.version.length?"has-child":"no-child",style:i.version&&i.version.length?"":"margin-left: 0"},[n("span",{staticClass:"item-key"},[n("el-tooltip",{attrs:{effect:"dark",content:String(i.key).slice(0,60),placement:"top-start"}},[n("span",{staticClass:"label ellipse-text",on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.onSearchMore(t.aggregationVersion[e.key].grammarKey1,i.key)}}},[t.aggregationVersion[e.key].icon&&t.productLogoPrefix?n("ImageComponent",{staticClass:"logo",attrs:{src:t.productLogoPrefix+i.key}}):t._e(),t._v(" "+t._s(i.key)+" ")],1)])],1),"analysis"!==t.activeName?n("span",{staticClass:"item-value"},[t._v(t._s(i.doc_count.toLocaleString()))]):t._e()])]),i.version.length?n("div",{staticClass:"sub-item"},t._l(i.version,(function(r,o){return n("div",{key:o,staticClass:"collapse-content-item"},[n("span",{staticClass:"label item-key key-left"},[n("span",{on:{click:function(n){return n.stopPropagation(),n.preventDefault(),t.onSearchMore(e.key,r.key,i.key)}}},[t._v(t._s(r.key))])]),n("span",{staticClass:"item-value"},[t._v(t._s(r.doc_count.toLocaleString()))])])})),0):t._e()],2)})),1)],1)])],2)],1)],1):t._e()]}))]],2)},r=[],o=(n("a4d3"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("0d03"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("07ac"),n("25f0"),n("159b"),n("ade3")),a=n("2f62"),s=n("e67d"),l=n.n(s),c=n("b3f1"),u=n("bb30");function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={props:{leftLoading:{type:Boolean,default:!1},aggregationsSingleLoading:{type:Boolean,default:!1},aggregationsSingleKey:{type:String,default:""},aggregationsListLabel:{type:Array,default:function(){return[]}},aggregationsData:{type:Object,default:function(){}},analysisAggregationsData:{type:Object,default:function(){}},selectIndex:{type:String,default:""},activeName:{type:String,default:""}},components:{ImageComponent:c["default"]},data:function(){return{aggMap:{validity_period:"labels"},currentAggredationIndex:-1,activeNames:[],aggregationVersion:u["e"],isCollapse:"全部展开",isCollapseActiveNames:["端口","服务协议"],oldIsCollapseActiveNames:["端口","服务协议"]}},watch:{analysisAggregationsData:{handler:function(t){"analysis"===this.activeName&&(this.isCollapseActiveNames=["证书颁发者信息"],this.initAggregationState(t))},deep:!0}},directives:{ClickOutside:l.a},computed:d({},Object(a["e"])("site",["role","productLogoPrefix","themeClassName"]),{isQuakeCertificate:function(){return this.selectIndex===u["b"]},aggregationVersionKeys:function(){return Object.values(u["e"]).map((function(t){return t.key}))},isLatest:function(){var t=this.$route.query.latest;return"undefined"===typeof t||!("false"===t.toString())},aggregations:function(){return"analysis"===this.activeName?this.analysisAggregationsData:this.aggregationsData},amountList:function(){return"quake_service"===this.selectIndex?[5,10,15,{label:this.$t("search.result_info.view_more"),value:"more"}]:[5,10,15]}}),mounted:function(){this.popupItem=this.$el,this.isQuakeCertificate&&this.resetCollapse("all")},methods:d({},Object(a["b"])("site",["toggleMultiDialog"]),{computeKey:function(t){return"app_and_version"===t?"app":t},initAggregationState:function(t){for(var e=Object.keys(u["e"]),n=0,i=e;n<i.length;n++){var r=i[n];t&&Array.isArray(t[r])&&this.$set(u["e"][r],"activeNames",t[r].map((function(t){return t.key})))}},onSearchMore:function(t,e,n){var i=this.aggMap[t]?this.aggMap[t]:t;this.$emit("onSearchMore",i,e,n)},onChangeAmount:function(t,e){"层级"!==e&&this.currentAggredationIndex!==t?this.currentAggredationIndex=t:this.currentAggredationIndex=-1},onSelectAmount:function(t,e,n){this.role?(this.currentAggredationIndex=-1,this.$emit("onSelectAmount",t,e,d({},n,{key:this.computeKey(n.key)}))):this.toggleMultiDialog("unLogin")},hide:function(){this.currentAggredationIndex=-1},changeIsCollapse:function(t){var e=this;"全部展开"===t&&0!==this.aggregationsListLabel.length?(this.$emit("triggerPostAggregationsList"),this.aggregationsListLabel.forEach((function(t){e.aggregations[t.key]&&e.isCollapseActiveNames.push(t.label)})),this.isCollapse="全部收起"):(this.isCollapse="全部展开",this.isCollapseActiveNames=[])},changeCollapse:function(t,e,n,i){var r=this.getCollapseLength();this.oldIsCollapseActiveNames.indexOf(i.label)>-1||this.$emit("onSelectAmount",e,n,i,!0),this.oldIsCollapseActiveNames=t,t.length===r?this.isCollapse="全部收起":this.isCollapse="全部展开"},getCollapseLength:function(){var t=this,e=0;return this.aggregationsListLabel.forEach((function(n){t.aggregations[n.key]&&(e+=1)})),e},resetCollapse:function(t){this.isCollapseActiveNames=[],this.oldIsCollapseActiveNames=[],this.isCollapseActiveNames=[],this.oldIsCollapseActiveNames=[],this.isCollapse="全部展开";var e=this.$route.query.selectIndex||this.selectIndex;"quake_service"===e?"all"===t||"statistics"===t?(this.isCollapseActiveNames=["端口","服务协议"],this.oldIsCollapseActiveNames=["端口","服务协议"]):(this.isCollapseActiveNames=[],this.oldIsCollapseActiveNames=[]):e===u["d"]?this.isCollapseActiveNames=["端口","服务协议"]:this.isQuakeCertificate?this.isCollapseActiveNames="analysis"===this.activeName?["证书颁发者信息"]:["证书颁发者","证书颁发者所属国家"]:"quake_host"===e&&(this.isCollapseActiveNames=["端口","服务协议"])}})},f=p,g=(n("d42d"),n("2877")),m=Object(g["a"])(f,i,r,!1,null,"1c5a9eb7",null);e["a"]=m.exports},"2d0c":function(t,e,n){},"2d12":function(t,e,n){"use strict";var i=n("db6f"),r=n.n(i);r.a},"2d1f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("c31b"),r=n("7d16"),o=n("a12b"),a=n("be6e"),s=n("29f4"),l=n("3d7d");function c(t,e){for(var n=[],a=[],s=[],l=0;l<t.length;l++){var c=t[l],h=c.currentPoint,d=c.params,p=c.prePoint,f=void 0;switch(c.command){case"Q":f=i.default.box(p[0],p[1],d[1],d[2],d[3],d[4]);break;case"C":f=r.default.box(p[0],p[1],d[1],d[2],d[3],d[4],d[5],d[6]);break;case"A":var g=c.arcParams;f=o.default.box(g.cx,g.cy,g.rx,g.ry,g.xRotation,g.startAngle,g.endAngle);break;default:n.push(h[0]),a.push(h[1]);break}f&&(c.box=f,n.push(f.x,f.x+f.width),a.push(f.y,f.y+f.height)),e&&("L"===c.command||"M"===c.command)&&c.prePoint&&c.nextPoint&&s.push(c)}n=n.filter((function(t){return!Number.isNaN(t)})),a=a.filter((function(t){return!Number.isNaN(t)}));var m=Math.min.apply(null,n),v=Math.min.apply(null,a),y=Math.max.apply(null,n),b=Math.max.apply(null,a);if(0===s.length)return{x:m,y:v,width:y-m,height:b-v};for(l=0;l<s.length;l++){c=s[l],h=c.currentPoint;var x=void 0;h[0]===m?(x=u(c,e),m-=x.xExtra):h[0]===y&&(x=u(c,e),y+=x.xExtra),h[1]===v?(x=u(c,e),v-=x.yExtra):h[1]===b&&(x=u(c,e),b+=x.yExtra)}return{x:m,y:v,width:y-m,height:b-v}}function u(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,o=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),a=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),l=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),c=Math.acos((o+a-l)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!c||0===Math.sin(c)||s.default(c,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),h=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));u=u>Math.PI/2?Math.PI-u:u,h=h>Math.PI/2?Math.PI-h:h;var d={xExtra:Math.cos(c/2-u)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(h-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return d}function h(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,o=t.get("segments")||a.default(n),s=c(o,r),u=s.x,h=s.y,d=s.width,p=s.height,f={minX:u,minY:h,maxX:u+d,maxY:h+p};return f=l.mergeArrowBBox(t,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}e.default=h},"2d95":function(t,e,n){},"2dba":function(t,e,n){},3061:function(t,e,n){},3086:function(t,e,n){},3087:function(t,e,n){},"30d1":function(t,e,n){!function(e,n){t.exports=n()}(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=556)}([function(t,e,n){"use strict";n.r(e),n.d(e,"contains",(function(){return r})),n.d(e,"includes",(function(){return r})),n.d(e,"difference",(function(){return a})),n.d(e,"find",(function(){return x})),n.d(e,"findIndex",(function(){return w})),n.d(e,"firstValue",(function(){return _})),n.d(e,"flatten",(function(){return C})),n.d(e,"flattenDeep",(function(){return A})),n.d(e,"getRange",(function(){return I})),n.d(e,"pull",(function(){return E})),n.d(e,"pullAt",(function(){return O})),n.d(e,"reduce",(function(){return P})),n.d(e,"remove",(function(){return j})),n.d(e,"sortBy",(function(){return D})),n.d(e,"union",(function(){return B})),n.d(e,"uniq",(function(){return R})),n.d(e,"valuesOfKey",(function(){return N})),n.d(e,"head",(function(){return F})),n.d(e,"last",(function(){return z})),n.d(e,"startsWith",(function(){return V})),n.d(e,"endsWith",(function(){return G})),n.d(e,"filter",(function(){return o})),n.d(e,"every",(function(){return H})),n.d(e,"some",(function(){return W})),n.d(e,"group",(function(){return X})),n.d(e,"groupBy",(function(){return Z})),n.d(e,"groupToMap",(function(){return Y})),n.d(e,"getWrapBehavior",(function(){return q})),n.d(e,"wrapBehavior",(function(){return K})),n.d(e,"number2color",(function(){return J})),n.d(e,"parseRadius",(function(){return $})),n.d(e,"clamp",(function(){return tt})),n.d(e,"fixedBase",(function(){return et})),n.d(e,"isDecimal",(function(){return it})),n.d(e,"isEven",(function(){return rt})),n.d(e,"isInteger",(function(){return ot})),n.d(e,"isNegative",(function(){return at})),n.d(e,"isNumberEqual",(function(){return st})),n.d(e,"isOdd",(function(){return lt})),n.d(e,"isPositive",(function(){return ct})),n.d(e,"maxBy",(function(){return ut})),n.d(e,"minBy",(function(){return ht})),n.d(e,"mod",(function(){return dt})),n.d(e,"toDegree",(function(){return ft})),n.d(e,"toInteger",(function(){return gt})),n.d(e,"toRadian",(function(){return vt})),n.d(e,"forIn",(function(){return yt})),n.d(e,"has",(function(){return bt})),n.d(e,"hasKey",(function(){return xt})),n.d(e,"hasValue",(function(){return _t})),n.d(e,"keys",(function(){return g})),n.d(e,"isMatch",(function(){return m})),n.d(e,"values",(function(){return wt})),n.d(e,"lowerCase",(function(){return At})),n.d(e,"lowerFirst",(function(){return It})),n.d(e,"substitute",(function(){return St})),n.d(e,"upperCase",(function(){return Mt})),n.d(e,"upperFirst",(function(){return kt})),n.d(e,"getType",(function(){return Tt})),n.d(e,"isArguments",(function(){return Ot})),n.d(e,"isArray",(function(){return h})),n.d(e,"isArrayLike",(function(){return i})),n.d(e,"isBoolean",(function(){return Pt})),n.d(e,"isDate",(function(){return jt})),n.d(e,"isError",(function(){return Lt})),n.d(e,"isFunction",(function(){return c})),n.d(e,"isFinite",(function(){return Dt})),n.d(e,"isNil",(function(){return u})),n.d(e,"isNull",(function(){return Rt})),n.d(e,"isNumber",(function(){return nt})),n.d(e,"isObject",(function(){return p})),n.d(e,"isObjectLike",(function(){return y})),n.d(e,"isPlainObject",(function(){return b})),n.d(e,"isPrototype",(function(){return Nt})),n.d(e,"isRegExp",(function(){return Ft})),n.d(e,"isString",(function(){return L})),n.d(e,"isType",(function(){return l})),n.d(e,"isUndefined",(function(){return zt})),n.d(e,"isElement",(function(){return Vt})),n.d(e,"requestAnimationFrame",(function(){return Gt})),n.d(e,"clearAnimationFrame",(function(){return Ht})),n.d(e,"augment",(function(){return Zt})),n.d(e,"clone",(function(){return Xt})),n.d(e,"debounce",(function(){return qt})),n.d(e,"memoize",(function(){return Kt})),n.d(e,"deepMix",(function(){return Jt})),n.d(e,"each",(function(){return f})),n.d(e,"extend",(function(){return $t})),n.d(e,"indexOf",(function(){return te})),n.d(e,"isEmpty",(function(){return ne})),n.d(e,"isEqual",(function(){return ie})),n.d(e,"isEqualWith",(function(){return re})),n.d(e,"map",(function(){return oe})),n.d(e,"mapValues",(function(){return se})),n.d(e,"mix",(function(){return Ut})),n.d(e,"assign",(function(){return Ut})),n.d(e,"get",(function(){return le})),n.d(e,"set",(function(){return ce})),n.d(e,"pick",(function(){return he})),n.d(e,"throttle",(function(){return de})),n.d(e,"toArray",(function(){return pe})),n.d(e,"toString",(function(){return Ct})),n.d(e,"uniqueId",(function(){return ge})),n.d(e,"noop",(function(){return me})),n.d(e,"identity",(function(){return ve})),n.d(e,"size",(function(){return ye})),n.d(e,"Cache",(function(){return be}));var i=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},r=function(t,e){return!!i(t)&&t.indexOf(e)>-1},o=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];e(o,r)&&n.push(o)}return n},a=function(t,e){return void 0===e&&(e=[]),o(t,(function(t){return!r(e,t)}))},s={}.toString,l=function(t,e){return s.call(t)==="[object "+e+"]"},c=function(t){return l(t,"Function")},u=function(t){return null==t},h=function(t){return Array.isArray?Array.isArray(t):l(t,"Array")};function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var p=function(t){var e=d(t);return null!==t&&"object"===e||"function"===e},f=function(t,e){if(t)if(h(t))for(var n=0,i=t.length;n<i&&!1!==e(t[n],n);n++);else if(p(t))for(var r in t)if(t.hasOwnProperty(r)&&!1===e(t[r],r))break},g=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return f(t,(function(n,i){c(t)&&"prototype"===i||e.push(i)})),e},m=function(t,e){var n=g(e),i=n.length;if(u(t))return!i;for(var r=0;r<i;r+=1){var o=n[r];if(e[o]!==t[o]||!(o in t))return!1}return!0};function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var y=function(t){return"object"===v(t)&&null!==t},b=function(t){if(!y(t)||!l(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},x=function(t,e){if(!h(t))return null;var n;if(c(e)&&(n=e),b(e)&&(n=function(t){return m(t,e)}),n)for(var i=0;i<t.length;i+=1)if(n(t[i]))return t[i];return null},w=function(t,e,n){void 0===n&&(n=0);for(var i=n;i<t.length;i++)if(e(t[i],i))return i;return-1},_=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i][e];if(!u(r)){n=h(r)?r[0]:r;break}}return n},C=function(t){if(!h(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},A=function t(e,n){if(void 0===n&&(n=[]),h(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n},I=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(h(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var r=Math.max.apply(null,e);return{min:Math.min.apply(null,e),max:r}},S=Array.prototype,M=S.splice,k=S.indexOf,E=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i++)for(var r=e[i],o=-1;(o=k.call(t,r))>-1;)M.call(t,o,1);return t},T=Array.prototype.splice,O=function(t,e){if(!i(t))return[];for(var n=t?e.length:0,r=n-1;n--;){var o=void 0,a=e[n];n!==r&&a===o||(o=a,T.call(t,a,1))}return t},P=function(t,e,n){if(!h(t)&&!b(t))return t;var i=n;return f(t,(function(t,n){i=e(i,t,n)})),i},j=function(t,e){var n=[];if(!i(t))return n;for(var r=-1,o=[],a=t.length;++r<a;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return O(t,o),n},L=function(t){return l(t,"String")},D=function(t,e){var n;if(c(e))n=function(t,n){return e(t)-e(n)};else{var i=[];L(e)?i.push(e):h(e)&&(i=e),n=function(t,e){for(var n=0;n<i.length;n+=1){var r=i[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t},R=function(t){var e=[];return f(t,(function(t){r(e,t)||e.push(t)})),e},B=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return R([].concat.apply([],t))},N=function(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r][e];if(!u(o)){h(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];i[s]||(n.push(s),i[s]=!0)}}}return n};function F(t){if(i(t))return t[0]}function z(t){if(i(t))return t[t.length-1]}var V=function(t,e){return!(!h(t)&&!L(t))&&t[0]===e},G=function(t,e){return!(!h(t)&&!L(t))&&t[t.length-1]===e},H=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},W=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},U=Object.prototype.hasOwnProperty,Z=function(t,e){if(!e||!h(t))return{};for(var n,i={},r=c(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=r(a),U.call(i,n)?i[n].push(a):i[n]=[a]}return i},Y=function(t,e){if(!e)return{0:t};if(!c(e)){var n=h(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}return Z(t,e)},X=function(t,e){if(!e)return[t];var n=Y(t,e),i=[];for(var r in n)i.push(n[r]);return i},q=function(t,e){return t["_wrap_"+e]},K=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},Q={},J=function(t){var e=Q[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,Q[t]=e}return e},$=function(t){var e=0,n=0,i=0,r=0;return h(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}},tt=function(t,e,n){return t<e?e:t>n?n:t},et=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},nt=function(t){return l(t,"Number")},it=function(t){return nt(t)&&t%1!=0},rt=function(t){return nt(t)&&t%2==0},ot=Number.isInteger?Number.isInteger:function(t){return nt(t)&&t%1==0},at=function(t){return nt(t)&&t<0};function st(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var lt=function(t){return nt(t)&&t%2!=0},ct=function(t){return nt(t)&&t>0},ut=function(t,e){if(h(t)){var n,i,r=t[0];return n=c(e)?e(t[0]):t[0][e],f(t,(function(t){(i=c(e)?e(t):t[e])>n&&(r=t,n=i)})),r}},ht=function(t,e){if(h(t)){var n,i,r=t[0];return n=c(e)?e(t[0]):t[0][e],f(t,(function(t){(i=c(e)?e(t):t[e])<n&&(r=t,n=i)})),r}},dt=function(t,e){return(t%e+e)%e},pt=180/Math.PI,ft=function(t){return pt*t},gt=parseInt,mt=Math.PI/180,vt=function(t){return mt*t},yt=f,bt=function(t,e){return t.hasOwnProperty(e)},xt=bt,wt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return f(t,(function(n,i){c(t)&&"prototype"===i||e.push(n)})),e},_t=function(t,e){return r(wt(t),e)},Ct=function(t){return u(t)?"":t.toString()},At=function(t){return Ct(t).toLowerCase()},It=function(t){var e=Ct(t);return e.charAt(0).toLowerCase()+e.substring(1)},St=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t},Mt=function(t){return Ct(t).toUpperCase()},kt=function(t){var e=Ct(t);return e.charAt(0).toUpperCase()+e.substring(1)},Et={}.toString,Tt=function(t){return Et.call(t).replace(/^\[object /,"").replace(/]$/,"")},Ot=function(t){return l(t,"Arguments")},Pt=function(t){return l(t,"Boolean")},jt=function(t){return l(t,"Date")},Lt=function(t){return l(t,"Error")},Dt=function(t){return nt(t)&&isFinite(t)},Rt=function(t){return null===t},Bt=Object.prototype,Nt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Bt)},Ft=function(t){return l(t,"RegExp")},zt=function(t){return void 0===t},Vt=function(t){return t instanceof Element||t instanceof HTMLDocument};function Gt(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function Ht(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Wt(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Ut(t,e,n,i){return e&&Wt(t,e),n&&Wt(t,n),i&&Wt(t,i),t}var Zt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],i=1;i<t.length;i++){var r=t[i];c(r)&&(r=r.prototype),Ut(n.prototype,r)}};function Yt(t){return(Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Xt=function t(e){if("object"!==Yt(e)||null===e)return e;var n;if(h(e)){n=[];for(var i=0,r=e.length;i<r;i++)"object"===Yt(e[i])&&null!=e[i]?n[i]=t(e[i]):n[i]=e[i]}else for(var o in n={},e)"object"===Yt(e[o])&&null!=e[o]?n[o]=t(e[o]):n[o]=e[o];return n},qt=function(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}},Kt=function(t,e){if(!c(t))throw new TypeError("Expected a function");var n=function n(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=e?e.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return a.set(o,s),s};return n.cache=new Map,n};function Qt(t,e,n,i){for(var r in n=n||0,i=i||5,e)if(e.hasOwnProperty(r)){var o=e[r];null!==o&&b(o)?(b(t[r])||(t[r]={}),n<i?Qt(t[r],o,n+1,i):t[r]=e[r]):h(o)?(t[r]=[],t[r]=t[r].concat(o)):void 0!==o&&(t[r]=o)}}var Jt=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)Qt(t,e[i]);return t},$t=function(t,e,n,i){c(e)||(n=e,e=t,t=function(){});var r=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var i=new n;return i.constructor=e,i},o=r(e.prototype,t);return t.prototype=Ut(o,t.prototype),t.superclass=r(e.prototype,e),Ut(o,n),Ut(t,i),t},te=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,o=0;o<t.length;o++)if(t[o]===e){r=o;break}return r},ee=Object.prototype.hasOwnProperty,ne=function(t){if(u(t))return!0;if(i(t))return!t.length;var e=Tt(t);if("Map"===e||"Set"===e)return!t.size;if(Nt(t))return!Object.keys(t).length;for(var n in t)if(ee.call(t,n))return!1;return!0},ie=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(L(e)||L(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var r=!0,o=0;o<e.length&&(r=t(e[o],n[o]));o++);return r}if(y(e)||y(n)){var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(r=!0,o=0;o<a.length&&(r=t(e[a[o]],n[a[o]]));o++);return r}return!1},re=function(t,e,n){return c(n)?!!n(t,e):ie(t,e)},oe=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(e(o,r))}return n},ae=function(t){return t},se=function(t,e){void 0===e&&(e=ae);var n={};return p(t)&&!u(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n},le=function(t,e,n){for(var i=0,r=L(e)?e.split("."):e;t&&i<r.length;)t=t[r[i++]];return void 0===t||i<r.length?n:t},ce=function(t,e,n){var i=t,r=L(e)?e.split("."):e;return r.forEach((function(t,e){e<r.length-1?(p(i[t])||(i[t]=nt(r[e+1])?[]:{}),i=i[t]):i[t]=n})),t},ue=Object.prototype.hasOwnProperty,he=function(t,e){if(null===t||!b(t))return{};var n={};return f(e,(function(e){ue.call(t,e)&&(n[e]=t[e])})),n},de=function(t,e,n){var i,r,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),i=null,a=t.apply(r,o),i||(r=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var u=e-(c-s);return r=this,o=arguments,u<=0||u>e?(i&&(clearTimeout(i),i=null),s=c,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(i),s=0,i=r=o=null},c},pe=function(t){return i(t)?Array.prototype.slice.call(t):[]},fe={},ge=function(t){return fe[t=t||"g"]?fe[t]+=1:fe[t]=1,t+fe[t]},me=function(){},ve=function(t){return t};function ye(t){return u(t)?0:i(t)?t.length:Object.keys(t).length}var be=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return a})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return l})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return h})),n.d(e,"__generator",(function(){return d})),n.d(e,"__createBinding",(function(){return p})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return g})),n.d(e,"__read",(function(){return m})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return x})),n.d(e,"__asyncDelegator",(function(){return w})),n.d(e,"__asyncValues",(function(){return _})),n.d(e,"__makeTemplateObject",(function(){return C})),n.d(e,"__importStar",(function(){return I})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return M})),n.d(e,"__classPrivateFieldSet",(function(){return k}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return(a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function l(t,e,n,r){var o,a=arguments.length,s=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":i(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(e,n,s):o(e,n))||s);return a>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function u(t,e){if("object"===("undefined"==typeof Reflect?"undefined":i(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{l(i.next(t))}catch(t){o(t)}}function s(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function d(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!((r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var p=Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]};function f(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||p(e,t,n)}function g(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function x(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=r[t](e)).value instanceof b?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(t){u(o[0][3],t)}var n}function l(t){s("next",t)}function c(t){s("throw",t)}function u(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:b(t[i](e)),done:"return"===i}:r?r(e):e}:r}}function _(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=g(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,r,(e=t[n](e)).done,e.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var A=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function I(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&p(e,t,n);return A(e,t),e}function S(t){return t&&t.__esModule?t:{default:t}}function M(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function k(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(35);e.default=function(t,e){if(t)if(i.default(t))for(var n=0,o=t.length;n<o&&!1!==e(t[n],n);n++);else if(r.default(t))for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.default=function(t){return i.default(t,"String")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.default=function(t){return Array.isArray?Array.isArray(t):i.default(t,"Array")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o}));var i=1e-6,r="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;Math.PI,Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(72);e.contains=i.default,e.includes=i.default;var r=n(242);e.difference=r.default;var o=n(243);e.find=o.default;var a=n(244);e.findIndex=a.default;var s=n(245);e.firstValue=s.default;var l=n(246);e.flatten=l.default;var c=n(247);e.flattenDeep=c.default;var u=n(248);e.getRange=u.default;var h=n(249);e.pull=h.default;var d=n(140);e.pullAt=d.default;var p=n(250);e.reduce=p.default;var f=n(251);e.remove=f.default;var g=n(252);e.sortBy=g.default;var m=n(253);e.union=m.default;var v=n(141);e.uniq=v.default;var y=n(254);e.valuesOfKey=y.default;var b=n(255);e.head=b.default;var x=n(256);e.last=x.default;var w=n(257);e.startsWith=w.default;var _=n(258);e.endsWith=_.default;var C=n(137);e.filter=C.default;var A=n(259);e.every=A.default;var I=n(260);e.some=I.default;var S=n(261);e.group=S.default;var M=n(69);e.groupBy=M.default;var k=n(142);e.groupToMap=k.default;var E=n(262);e.getWrapBehavior=E.default;var T=n(50);e.wrapBehavior=T.default;var O=n(263);e.number2color=O.default;var P=n(264);e.parseRadius=P.default;var j=n(265);e.clamp=j.default;var L=n(266);e.fixedBase=L.default;var D=n(267);e.isDecimal=D.default;var R=n(268);e.isEven=R.default;var B=n(269);e.isInteger=B.default;var N=n(270);e.isNegative=N.default;var F=n(103);e.isNumberEqual=F.default;var z=n(271);e.isOdd=z.default;var V=n(272);e.isPositive=V.default;var G=n(273);e.maxBy=G.default;var H=n(274);e.minBy=H.default;var W=n(67);e.mod=W.default;var U=n(275);e.toDegree=U.default;var Z=n(276);e.toInteger=Z.default;var Y=n(68);e.toRadian=Y.default;var X=n(277);e.forIn=X.default;var q=n(143);e.has=q.default;var K=n(278);e.hasKey=K.default;var Q=n(279);e.hasValue=Q.default;var J=n(139);e.keys=J.default;var $=n(138);e.isMatch=$.default;var tt=n(144);e.values=tt.default;var et=n(280);e.lowerCase=et.default;var nt=n(281);e.lowerFirst=nt.default;var it=n(282);e.substitute=it.default;var rt=n(283);e.upperCase=rt.default;var ot=n(49);e.upperFirst=ot.default;var at=n(145);e.getType=at.default;var st=n(284);e.isArguments=st.default;var lt=n(4);e.isArray=lt.default;var ct=n(21);e.isArrayLike=ct.default;var ut=n(285);e.isBoolean=ut.default;var ht=n(286);e.isDate=ht.default;var dt=n(287);e.isError=dt.default;var pt=n(14);e.isFunction=pt.default;var ft=n(288);e.isFinite=ft.default;var gt=n(10);e.isNil=gt.default;var mt=n(289);e.isNull=mt.default;var vt=n(11);e.isNumber=vt.default;var yt=n(35);e.isObject=yt.default;var bt=n(102);e.isObjectLike=bt.default;var xt=n(58);e.isPlainObject=xt.default;var wt=n(146);e.isPrototype=wt.default;var _t=n(290);e.isRegExp=_t.default;var Ct=n(3);e.isString=Ct.default;var At=n(27);e.isType=At.default;var It=n(291);e.isUndefined=It.default;var St=n(292);e.isElement=St.default;var Mt=n(147);e.requestAnimationFrame=Mt.default;var kt=n(148);e.clearAnimationFrame=kt.default;var Et=n(293);e.augment=Et.default;var Tt=n(98);e.clone=Tt.default;var Ot=n(294);e.debounce=Ot.default;var Pt=n(295);e.memoize=Pt.default;var jt=n(12);e.deepMix=jt.default;var Lt=n(2);e.each=Lt.default;var Dt=n(296);e.extend=Dt.default;var Rt=n(297);e.indexOf=Rt.default;var Bt=n(298);e.isEmpty=Bt.default;var Nt=n(95);e.isEqual=Nt.default;var Ft=n(299);e.isEqualWith=Ft.default;var zt=n(300);e.map=zt.default;var Vt=n(301);e.mapValues=Vt.default;var Gt=n(17);e.mix=Gt.default,e.assign=Gt.default;var Ht=n(130);e.get=Ht.default;var Wt=n(302);e.set=Wt.default;var Ut=n(303);e.pick=Ut.default;var Zt=n(304);e.throttle=Zt.default;var Yt=n(305);e.toArray=Yt.default;var Xt=n(59);e.toString=Xt.default;var qt=n(306);e.uniqueId=qt.default;var Kt=n(307);e.noop=Kt.default;var Qt=n(308);e.identity=Qt.default;var Jt=n(309);e.size=Jt.default;var $t=n(310);e.Cache=$t.default},function(t,e,n){"use strict";var i,r,o,a;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){i||(i=document.createElement("table"),r=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:r,th:r,"*":document.createElement("div")});var e=o.test(t)&&RegExp.$1;e&&e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var s=n.childNodes[0];return n.removeChild(s),s}},function(t,e,n){"use strict";n.d(e,"j",(function(){return v})),n.d(e,"c",(function(){return y})),n.d(e,"g",(function(){return b})),n.d(e,"b",(function(){return x}));var i=n(10),r=n.n(i);n.d(e,"e",(function(){return r.a}));var o=n(14),a=n.n(o);n.d(e,"d",(function(){return a.a}));var s=n(3),l=n.n(s);n.d(e,"h",(function(){return l.a}));var c=n(35),u=n.n(c);n.d(e,"f",(function(){return u.a})),n(4);var h=n(17),d=n.n(h);n.d(e,"i",(function(){return d.a}));var p=n(2),f=n.n(p);n.d(e,"a",(function(){return f.a}));var g=n(49),m=n.n(g);function v(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"k",(function(){return m.a}));var y="undefined"!=typeof window&&void 0!==window.document;function b(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),i=!1;n;){if(n===t){i=!0;break}n=n.getParent()}return i}function x(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.default=function(t){return i.default(t,"Number")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(58);function o(t,e,n,a){for(var s in n=n||0,a=a||5,e)if(e.hasOwnProperty(s)){var l=e[s];null!==l&&r.default(l)?(r.default(t[s])||(t[s]={}),n<a?o(t[s],l,n+1,a):t[s]=e[s]):i.default(l)?(t[s]=[],t[s]=t[s].concat(l)):void 0!==l&&(t[s]=l)}}e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)o(t,e[i]);return t}},function(t,e,n){var i;try{i={cloneDeep:n(486),constant:n(122),defaults:n(487),each:n(191),filter:n(194),find:n(488),flatten:n(221),forEach:n(192),forIn:n(493),has:n(205),isUndefined:n(206),last:n(494),map:n(207),mapValues:n(495),max:n(496),merge:n(498),min:n(504),minBy:n(505),now:n(506),pick:n(507),range:n(512),reduce:n(209),sortBy:n(515),uniqueId:n(520),values:n(214),zipObject:n(521)}}catch(t){}i||(i=window._),t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.default=function(t){return i.default(t,"Function")}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new i.ARRAY_TYPE(9);return i.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new i.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,r,o,a,s,l,c){var u=new i.ARRAY_TYPE(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=a,u[6]=s,u[7]=l,u[8]=c,u},e.set=function(t,e,n,i,r,o,a,s,l,c){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=u*a-s*c,d=-u*o+s*l,p=c*o-a*l,f=n*h+i*d+r*p;return f?(f=1/f,t[0]=h*f,t[1]=(-u*i+r*c)*f,t[2]=(s*i-r*a)*f,t[3]=d*f,t[4]=(u*n-r*l)*f,t[5]=(-s*n+r*o)*f,t[6]=p*f,t[7]=(-c*n+i*l)*f,t[8]=(a*n-i*o)*f,t):null},e.adjoint=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return t[0]=a*u-s*c,t[1]=r*c-i*u,t[2]=i*s-r*a,t[3]=s*l-o*u,t[4]=n*u-r*l,t[5]=r*o-n*s,t[6]=o*c-a*l,t[7]=i*l-n*c,t[8]=n*a-i*o,t},e.determinant=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8];return e*(c*o-a*l)+n*(-c*r+a*s)+i*(l*r-o*s)},e.multiply=r,e.translate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=d*i+p*a+c,t[7]=d*r+p*s+u,t[8]=d*o+p*l+h,t},e.rotate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=Math.sin(n),p=Math.cos(n);return t[0]=p*i+d*a,t[1]=p*r+d*s,t[2]=p*o+d*l,t[3]=p*a-d*i,t[4]=p*s-d*r,t[5]=p*l-d*o,t[6]=c,t[7]=u,t[8]=h,t},e.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,c=n*a,u=i*a,h=i*s,d=r*a,p=r*s,f=r*l,g=o*a,m=o*s,v=o*l;return t[0]=1-h-f,t[3]=u-v,t[6]=d+m,t[1]=u+v,t[4]=1-c-f,t[7]=p-g,t[2]=d-m,t[5]=p+g,t[8]=1-c-h,t},e.normalFromMat4=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*a,b=n*l-r*a,x=n*c-o*a,w=i*l-r*s,_=i*c-o*s,C=r*c-o*l,A=u*g-h*f,I=u*m-d*f,S=u*v-p*f,M=h*m-d*g,k=h*v-p*g,E=d*v-p*m,T=y*E-b*k+x*M+w*S-_*I+C*A;return T?(T=1/T,t[0]=(s*E-l*k+c*M)*T,t[1]=(l*S-a*E-c*I)*T,t[2]=(a*k-s*S+c*A)*T,t[3]=(r*k-i*E-o*M)*T,t[4]=(n*E-r*S+o*I)*T,t[5]=(i*S-n*k-o*A)*T,t[6]=(g*C-m*_+v*w)*T,t[7]=(m*x-f*C-v*b)*T,t[8]=(f*_-g*x+v*y)*T,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=o,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=e[0],p=e[1],f=e[2],g=e[3],m=e[4],v=e[5],y=e[6],b=e[7],x=e[8];return Math.abs(n-d)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-p)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(p))&&Math.abs(o-f)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(a-g)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-m)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(l-v)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(c-y)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-b)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=i.EPSILON*Math.max(1,Math.abs(h),Math.abs(x))};var i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(104));function r(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=n[0],p=n[1],f=n[2],g=n[3],m=n[4],v=n[5],y=n[6],b=n[7],x=n[8];return t[0]=d*i+p*a+f*c,t[1]=d*r+p*s+f*u,t[2]=d*o+p*l+f*h,t[3]=g*i+m*a+v*c,t[4]=g*r+m*s+v*u,t[5]=g*o+m*l+v*h,t[6]=y*i+b*a+x*c,t[7]=y*r+b*s+x*u,t[8]=y*o+b*l+x*h,t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}e.mul=r,e.sub=o},function(t,e,n){"use strict";function i(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0,e.getPixelRatio=function(){return window?window.devicePixelRatio:1},e.distance=function(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)},e.inBox=function(t,e,n,i,r,o){return r>=t&&r<=t+n&&o>=e&&o<=e+i},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},e.mergeRegion=function(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e},e.isSamePoint=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var i=n(10);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return i.default}});var r=n(3);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.default}});var o=n(14);Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return o.default}});var a=n(4);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return a.default}});var s=n(2);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return s.default}});var l=n(68);Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return l.default}});var c=n(67);Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return c.default}});var u=n(103);Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return u.default}});var h=n(147);Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return h.default}});var d=n(148);Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return d.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=e.SVG_ATTR_MAP=e.SHAPE_TO_TAGS=void 0,e.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},e.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},e.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(t,e,n){"use strict";var i=n(13),r=n(30).Graph;function o(t,e,n,r){var o;do{o=i.uniqueId(r)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return i.max(i.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!i.isUndefined(n))return n})))}t.exports={addDummyNode:o,simplify:function(t){var e=(new r).setGraph(t.graph());return i.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),i.forEach(t.edges(),(function(n){var i=e.edge(n.v,n.w)||{weight:0,minlen:1},r=t.edge(n);e.setEdge(n.v,n.w,{weight:i.weight+r.weight,minlen:Math.max(i.minlen,r.minlen)})})),e},asNonCompoundGraph:function(t){var e=new r({multigraph:t.isMultigraph()}).setGraph(t.graph());return i.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),i.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=i.map(t.nodes(),(function(e){var n={};return i.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return i.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=i.map(t.nodes(),(function(e){var n={};return i.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return i.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,i,r=t.x,o=t.y,a=e.x-r,s=e.y-o,l=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,i=c):(a<0&&(l=-l),n=l,i=l*s/a),{x:r+n,y:o+i}},buildLayerMatrix:function(t){var e=i.map(i.range(a(t)+1),(function(){return[]}));return i.forEach(t.nodes(),(function(n){var r=t.node(n),o=r.rank;i.isUndefined(o)||(e[o][r.order]=n)})),e},normalizeRanks:function(t){var e=i.min(i.map(t.nodes(),(function(e){return t.node(e).rank})));i.forEach(t.nodes(),(function(n){var r=t.node(n);i.has(r,"rank")&&(r.rank-=e)}))},removeEmptyRanks:function(t){var e=i.min(i.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];i.forEach(t.nodes(),(function(i){var r=t.node(i).rank-e;n[r]||(n[r]=[]),n[r].push(i)}));var r=0,o=t.graph().nodeRankFactor;i.forEach(n,(function(e,n){i.isUndefined(e)&&n%o!=0?--r:r&&i.forEach(e,(function(e){t.node(e).rank+=r}))}))},addBorderNode:function(t,e,n,i){var r={width:0,height:0};return arguments.length>=4&&(r.rank=n,r.order=i),o(t,"border",r,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return i.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=i.now();try{return e()}finally{console.log(t+" time: "+(i.now()-n)+"ms")}},notime:function(t,e){return e()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(172);e.mat3=i.default;var r=n(368);e.vec2=r.default;var o=n(369);e.vec3=o.default;var a=n(370);e.transform=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(43),o=n(61),a=n(29),s=n(109),l=n(19),c=n(110),u=n(171),h=n(157),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.draw(i,e)}},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return u.default},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=h.getBBoxMethod(this.get("type"));n&&(e=n(this))}if(e){var i=e.x,r=e.y,o=e.width,a=e.height,s=this.getHitLineWidth(),l=s/2,c=i-l,u=r-l;return{x:c,y:u,minX:c,minY:u,maxX:i+o+l,maxY:r+a+l,width:o+s,height:a+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||a.createDom(this),o.setClip(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),i=n.fill,r=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,c=n.strokeOpacity,u=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",i):"fillStyle"in n&&this._setColor(t,"fill",r):this._setColor(t,"fill",i||r),s&&h.setAttribute(l.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),c&&h.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,c),u&&h.setAttribute(l.SVG_ATTR_MAP.lineWidth,u))},e.prototype._setColor=function(t,e,n){var i=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(r=t.find("gradient",n))||(r=t.addGradient(n)),i.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+r+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var r;(r=t.find("pattern",n))||(r=t.addPattern(n)),i.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+r+")")}else i.setAttribute(l.SVG_ATTR_MAP[e],n);else i.setAttribute(l.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),i=e||n,r=i.shadowOffsetX,a=i.shadowOffsetY,s=i.shadowBlur,l=i.shadowColor;(r||a||s||l)&&o.setShadow(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&o.setTransform(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),i=this.get("canvas").get("el").getBoundingClientRect(),r=t+i.left,o=e+i.top,a=document.elementFromPoint(r,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(r.AbstractShape);e.default=d},function(t,e,n){var i;try{i={clone:n(373),constant:n(122),each:n(191),filter:n(194),has:n(205),isArray:n(15),isEmpty:n(450),isFunction:n(62),isUndefined:n(206),keys:n(41),map:n(207),reduce:n(209),size:n(453),transform:n(459),union:n(460),values:n(214)}}catch(t){}i||(i=window._),t.exports=i},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=o,e.clone=function(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=a,e.multiply=s,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.distance=c,e.squaredDistance=u,e.length=h,e.squaredLength=d,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},e.lerp=function(t,e,n,i){var r=e[0],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t},e.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},e.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},e.rotate=function(t,e,n,i){var r=e[0]-n[0],o=e[1]-n[1],a=Math.sin(i),s=Math.cos(i);return t[0]=r*s-o*a+n[0],t[1]=r*a+o*s+n[1],t},e.angle=function(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],a=n*n+i*i;a>0&&(a=1/Math.sqrt(a));var s=r*r+o*o;s>0&&(s=1/Math.sqrt(s));var l=(n*r+i*o)*a*s;return l>1?0:l<-1?Math.PI:Math.acos(l)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))};var i,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(104));function o(){var t=new r.ARRAY_TYPE(2);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function c(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)}function u(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function h(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function d(t){var e=t[0],n=t[1];return e*e+n*n}e.len=h,e.sub=a,e.mul=s,e.div=l,e.dist=c,e.sqrDist=u,e.sqrLen=d,e.forEach=(i=o(),function(t,e,n,r,o,a){var s=void 0,l=void 0;for(e||(e=2),n||(n=0),l=r?Math.min(r*e+n,t.length):t.length,s=n;s<l;s+=e)i[0]=t[s],i[1]=t[s+1],o(i,i,a),t[s]=i[0],t[s+1]=i[1];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={}.toString;e.default=function(t,e){return i.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(43),o=n(18),a=n(60),s=n(157),l=n(73),c=n(164),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){a.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=s.getBBoxMethod(t)(this),i=e/2,r=n.x-i,o=n.y-i,a=n.x+n.width+i,l=n.y+n.height+i;return{x:r,minX:r,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:a,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),a.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var i=this.getCanvasBBox();if(!o.intersectRect(e,i))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),a.applyAttrsToContext(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=o.intersectRect(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(o.isNil(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=i)),this.isStroke()&&n>0&&(o.isNil(r)||1===r||(t.globalAlpha=r),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),i=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(r.AbstractShape);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var i=n(0),r=n(19);function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e.createSVGElement=o,e.createDom=function(t){var e=r.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var i=o(e);if(t.get("id")&&(i.id=t.get("id")),t.set("el",i),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(i)}return i},e.sortDom=function(t,e){var n=t.get("el"),r=i.toArray(n.children).sort(e),o=document.createDocumentFragment();r.forEach((function(t){o.appendChild(t)})),n.appendChild(o)},e.moveTo=function(t,e){var n=t.parentNode,i=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),r=i[e],o=i.indexOf(t);if(r){if(o>e)n.insertBefore(t,r);else if(o<e){var a=i[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}},function(t,e,n){var i;try{i=n(371)}catch(t){}i||(i=window.graphlib),t.exports=i},function(t,e,n){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(174),o="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,a=r||o||Function("return this")();t.exports=a},function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=e[0],p=e[1],f=e[2],g=e[3],m=e[4],v=e[5],y=e[6],b=e[7],x=e[8];return n[0]=d*i+p*a+f*c,n[1]=d*r+p*s+f*u,n[2]=d*o+p*l+f*h,n[3]=g*i+m*a+v*c,n[4]=g*r+m*s+v*u,n[5]=g*o+m*l+v*h,n[6]=y*i+b*a+x*c,n[7]=y*r+b*s+x*u,n[8]=y*o+b*l+x*h,n}function r(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function o(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=u*a-s*c,d=-u*o+s*l,p=c*o-a*l,f=n*h+i*d+r*p;return f?(f=1/f,e[0]=h*f,e[1]=(-u*i+r*c)*f,e[2]=(s*i-r*a)*f,e[3]=d*f,e[4]=(u*n-r*l)*f,e[5]=(-s*n+r*o)*f,e[6]=p*f,e[7]=(-c*n+i*l)*f,e[8]=(a*n-i*o)*f,e):null}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";function i(t){return Math.min.apply(null,t)}function r(t){return Math.max.apply(null,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=function(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.getBBoxByArray=function(t,e){var n=i(t),o=i(e);return{x:n,y:o,width:r(t)-n,height:r(e)-o}},e.getBBoxRange=function(t,e,n,o){return{minX:i([t,n]),maxX:r([t,n]),minY:i([e,o]),maxY:r([e,o])}},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!=t&&"object"==n(t)}},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=i(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(43),o=n(319),a=n(73),s=n(164),l=n(18),c=n(60),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return s.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||l.getPixelRatio();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var i=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*e,r.height=o*n,o>1&&i.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?o.getShape(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();return e.length&&e[0]===this?t=n:(t=c.getMergedRegion(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=c.mergeView(t,n))),t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(l.clearAnimationFrame(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),c.applyAttrsToContext(t,this),c.drawChildren(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),i=this._getRefreshRegion();i?(t.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.save(),t.beginPath(),t.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.clip(),c.applyAttrsToContext(t,this),c.checkRefresh(this,n,i),c.drawChildren(t,n,i),t.restore()):e.length&&c.clearChanged(e),l.each(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=l.requestAnimationFrame((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e}(r.AbstractCanvas);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"catmullRomToBezier",(function(){return l})),n.d(e,"fillPath",(function(){return T})),n.d(e,"fillPathByDiff",(function(){return j})),n.d(e,"formatPath",(function(){return R})),n.d(e,"intersection",(function(){return M})),n.d(e,"parsePathArray",(function(){return m})),n.d(e,"parsePathString",(function(){return s})),n.d(e,"pathToAbsolute",(function(){return u})),n.d(e,"pathToCurve",(function(){return f})),n.d(e,"rectPath",(function(){return _}));var i=n(0),r="\t\n\v\f\r   ᠎             　\u2028\u2029",o=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),s=function(t){if(!t)return null;if(Object(i.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(i,r,o){var s=[],l=r.toLowerCase();if(o.replace(a,(function(t,e){e&&s.push(+e)})),"m"===l&&s.length>2&&(n.push([r].concat(s.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===s.length&&n.push([r,s[0]]),"r"===l)n.push([r].concat(s));else for(;s.length>=e[l]&&(n.push([r].concat(s.splice(0,e[l]))),e[l]););return t})),n},l=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?o[3]={x:+t[0],y:+t[1]}:r-2===i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},c=function(t,e,n,i,r){var o=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var a=Math.PI/180,s=t+n*Math.cos(-i*a),l=t+n*Math.cos(-r*a);o=[["M",s,e+n*Math.sin(-i*a)],["A",n,n,0,+(r-i>180),0,l,e+n*Math.sin(-r*a)]]}else o=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return o},u=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,i=[],r=0,o=0,a=0,u=0,h=0;"M"===t[0][0]&&(a=r=+t[0][1],u=o=+t[0][2],h++,i[0]=["M",r,o]);for(var d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,f=void 0,g=h,m=t.length;g<m;g++){if(i.push(p=[]),(e=(f=t[g])[0])!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=f[1],p[2]=f[2],p[3]=f[3],p[4]=f[4],p[5]=f[5],p[6]=+f[6]+r,p[7]=+f[7]+o;break;case"V":p[1]=+f[1]+o;break;case"H":p[1]=+f[1]+r;break;case"R":for(var v=2,y=(n=[r,o].concat(f.slice(1))).length;v<y;v++)n[v]=+n[v]+r,n[++v]=+n[v]+o;i.pop(),i=i.concat(l(n,d));break;case"O":i.pop(),(n=c(r,o,f[1],f[2])).push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(c(r,o,f[1],f[2],f[3])),p=["U"].concat(i[i.length-1].slice(-2));break;case"M":a=+f[1]+r,u=+f[2]+o;break;default:for(v=1,y=f.length;v<y;v++)p[v]=+f[v]+(v%2?r:o)}else if("R"===e)n=[r,o].concat(f.slice(1)),i.pop(),i=i.concat(l(n,d)),p=["R"].concat(f.slice(-2));else if("O"===e)i.pop(),(n=c(r,o,f[1],f[2])).push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(c(r,o,f[1],f[2],f[3])),p=["U"].concat(i[i.length-1].slice(-2));else for(var b=0,x=f.length;b<x;b++)p[b]=f[b];if("O"!==(e=e.toUpperCase()))switch(p[0]){case"Z":r=+a,o=+u;break;case"H":r=p[1];break;case"V":o=p[1];break;case"M":a=p[p.length-2],u=p[p.length-1];break;default:r=p[p.length-2],o=p[p.length-1]}}return i},h=function(t,e,n,i){return[t,e,n,i,n,i]},d=function(t,e,n,i,r,o){return[1/3*t+2/3*n,1/3*e+2/3*i,1/3*r+2/3*n,1/3*o+2/3*i,r,o]},p=function t(e,n,i,r,o,a,s,l,c,u){i===r&&(i+=1);var h,d,p,f,g,m=120*Math.PI/180,v=Math.PI/180*(+o||0),y=[],b=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(u)d=u[0],p=u[1],f=u[2],g=u[3];else{e=(h=b(e,n,-v)).x,n=h.y,l=(h=b(l,c,-v)).x,c=h.y,e===l&&n===c&&(l+=1,c+=1);var x=(e-l)/2,w=(n-c)/2,_=x*x/(i*i)+w*w/(r*r);_>1&&(i*=_=Math.sqrt(_),r*=_);var C=i*i,A=r*r,I=(a===s?-1:1)*Math.sqrt(Math.abs((C*A-C*w*w-A*x*x)/(C*w*w+A*x*x)));f=I*i*w/r+(e+l)/2,g=I*-r*x/i+(n+c)/2,d=Math.asin(((n-g)/r).toFixed(9)),p=Math.asin(((c-g)/r).toFixed(9)),d=e<f?Math.PI-d:d,p=l<f?Math.PI-p:p,d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),s&&d>p&&(d-=2*Math.PI),!s&&p>d&&(p-=2*Math.PI)}var S=p-d;if(Math.abs(S)>m){var M=p,k=l,E=c;p=d+m*(s&&p>d?1:-1),y=t(l=f+i*Math.cos(p),c=g+r*Math.sin(p),i,r,o,0,s,k,E,[p,M,f,g])}S=p-d;var T=Math.cos(d),O=Math.sin(d),P=Math.cos(p),j=Math.sin(p),L=Math.tan(S/4),D=4/3*i*L,R=4/3*r*L,B=[e,n],N=[e+D*O,n-R*T],F=[l+D*j,c-R*P],z=[l,c];if(N[0]=2*B[0]-N[0],N[1]=2*B[1]-N[1],u)return[N,F,z].concat(y);for(var V=[],G=0,H=(y=[N,F,z].concat(y).join().split(",")).length;G<H;G++)V[G]=G%2?b(y[G-1],y[G],v).y:b(y[G],y[G+1],v).x;return V},f=function(t,e){var n,i=u(t),r=e&&u(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],c="",f="",g=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(d(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(d(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},m=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",r&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},v=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var y=0;y<n;y++){i[y]&&(c=i[y][0]),"C"!==c&&(s[y]=c,y&&(f=s[y-1])),i[y]=g(i[y],o,f),"A"!==s[y]&&"C"===c&&(s[y]="C"),m(i,y),r&&(r[y]&&(c=r[y][0]),"C"!==c&&(l[y]=c,y&&(f=l[y-1])),r[y]=g(r[y],a,f),"A"!==l[y]&&"C"===c&&(l[y]="C"),m(r,y)),v(i,r,o,a,y),v(r,i,a,o,y);var b=i[y],x=r&&r[y],w=b.length,_=r&&x.length;o.x=b[w-2],o.y=b[w-1],o.bx=parseFloat(b[w-4])||o.x,o.by=parseFloat(b[w-3])||o.y,a.bx=r&&(parseFloat(x[_-4])||a.x),a.by=r&&(parseFloat(x[_-3])||a.y),a.x=r&&x[_-2],a.y=r&&x[_-1]}return r?[i,r]:i},g=/,?([a-z]),?/gi,m=function(t){return t.join(",").replace(g,"$1")},v=function(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n},y=function(t,e,n,i,r,o,a,s,l){null===l&&(l=1);for(var c=(l=l>1?1:l<0?0:l)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<12;p++){var f=c*u[p]+c,g=v(f,t,n,r,a),m=v(f,e,i,o,s),y=g*g+m*m;d+=h[p]*Math.sqrt(y)}return c*d},b=function(t,e,n,i,r,o,a,s){for(var l,c,u,h,d=[],p=[[],[]],f=0;f<2;++f)if(0===f?(c=6*t-12*n+6*r,l=-3*t+9*n-9*r+3*a,u=3*n-3*t):(c=6*e-12*i+6*o,l=-3*e+9*i-9*o+3*s,u=3*i-3*e),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;(h=-u/c)>0&&h<1&&d.push(h)}else{var g=c*c-4*u*l,m=Math.sqrt(g);if(!(g<0)){var v=(-c+m)/(2*l);v>0&&v<1&&d.push(v);var y=(-c-m)/(2*l);y>0&&y<1&&d.push(y)}}for(var b,x=d.length,w=x;x--;)b=1-(h=d[x]),p[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*r+h*h*h*a,p[1][x]=b*b*b*e+3*b*b*h*i+3*b*h*h*o+h*h*h*s;return p[0][w]=t,p[1][w]=e,p[0][w+1]=a,p[1][w+1]=s,p[0].length=p[1].length=w+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,i,r,o,a,s){if(!(Math.max(t,n)<Math.min(r,a)||Math.min(t,n)>Math.max(r,a)||Math.max(e,i)<Math.min(o,s)||Math.min(e,i)>Math.max(o,s))){var l=(t-n)*(o-s)-(e-i)*(r-a);if(l){var c=((t*i-e*n)*(r-a)-(t-n)*(r*s-o*a))/l,u=((t*i-e*n)*(o-s)-(e-i)*(r*s-o*a))/l,h=+c.toFixed(2),d=+u.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,a).toFixed(2)||h>+Math.max(r,a).toFixed(2)||d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:c,y:u}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},_=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=m,o},C=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:_(t,e,n,i),vb:[t,e,n,i].join(" ")}},A=function(t,e,n,r,o,a,s,l){Object(i.isArray)(t)||(t=[t,e,n,r,o,a,s,l]);var c=b.apply(null,t);return C(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},I=function(t,e,n,i,r,o,a,s,l){var c=1-l,u=Math.pow(c,3),h=Math.pow(c,2),d=l*l,p=d*l,f=t+2*l*(n-t)+d*(r-2*n+t),g=e+2*l*(i-e)+d*(o-2*i+e),m=n+2*l*(r-n)+d*(a-2*r+n),v=i+2*l*(o-i)+d*(s-2*o+i);return{x:u*t+3*h*l*n+3*c*l*l*r+p*a,y:u*e+3*h*l*i+3*c*l*l*o+p*s,m:{x:f,y:g},n:{x:m,y:v},start:{x:c*t+l*n,y:c*e+l*i},end:{x:c*r+l*a,y:c*o+l*s},alpha:90-180*Math.atan2(f-m,g-v)/Math.PI}},S=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(A(t),A(e)))return n?0:[];for(var i=~~(y.apply(0,t)/8),r=~~(y.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],c=0;c<i+1;c++){var u=I.apply(0,t.concat(c/i));o.push({x:u.x,y:u.y,t:c/i})}for(c=0;c<r+1;c++)u=I.apply(0,e.concat(c/r)),a.push({x:u.x,y:u.y,t:c/r});for(c=0;c<i;c++)for(var h=0;h<r;h++){var d=o[c],p=o[c+1],f=a[h],g=a[h+1],m=Math.abs(p.x-d.x)<.001?"y":"x",v=Math.abs(g.x-f.x)<.001?"y":"x",b=x(d.x,d.y,p.x,p.y,f.x,f.y,g.x,g.y);if(b){if(s[b.x.toFixed(4)]===b.y.toFixed(4))continue;s[b.x.toFixed(4)]=b.y.toFixed(4);var _=d.t+Math.abs((b[m]-d[m])/(p[m]-d[m]))*(p.t-d.t),S=f.t+Math.abs((b[v]-f[v])/(g[v]-f[v]))*(g.t-f.t);_>=0&&_<=1&&S>=0&&S<=1&&(n?l+=1:l.push({x:b.x,y:b.y,t1:_,t2:S}))}}return l},M=function(t,e){return function(t,e,n){var i,r,o,a,s,l,c,u,h,d;t=f(t),e=f(e);for(var p=n?0:[],g=0,m=t.length;g<m;g++){var v=t[g];if("M"===v[0])i=s=v[1],r=l=v[2];else{"C"===v[0]?(h=[i,r].concat(v.slice(1)),i=h[6],r=h[7]):(h=[i,r,i,r,s,l,s,l],i=s,r=l);for(var y=0,b=e.length;y<b;y++){var x=e[y];if("M"===x[0])o=c=x[1],a=u=x[2];else{"C"===x[0]?(d=[o,a].concat(x.slice(1)),o=d[6],a=d[7]):(d=[o,a,o,a,c,u,c,u],o=c,a=u);var w=S(h,d,n);if(n)p+=w;else{for(var _=0,C=w.length;_<C;_++)w[_].segment1=g,w[_].segment2=y,w[_].bez1=h,w[_].bez2=d;p=p.concat(w)}}}}}return p}(t,e)};function k(t,e){var n=[],i=[];return t.length&&function t(e,r){if(1===e.length)n.push(e[0]),i.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&i.push(e[a+1]),o[a]=[(1-r)*e[a][0]+r*e[a+1][0],(1-r)*e[a][1]+r*e[a+1][1]];t(o,r)}}(t,e),{left:n,right:i.reverse()}}var E=function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var r=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,a=1/n,s=0;s<n-1;s++){var l=k(o,a/(1-a*s));r.push(l.left),o=l.right}return r.push(o),r.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])}))}(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var o=0;o<=n-1;o++)i.push(r)}return i},T=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<i-n;a++)t.push(t[0]);return t}for(a=0;a<i;a++){var s=Math.floor(r*a);o[s]=(o[s]||0)+1}var l=o.reduce((function(e,i,r){return r===n?e.concat(t[n]):e.concat(E(t[r],t[r+1],i))}),[]);return l.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||l.push("Z"),l},O=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(i.each)(t,(function(t,i){if(t!==e[i])return n=!1,!1})),n};function P(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var j=function(t,e){var n=function(t,e){var n,i,r=t.length,o=e.length,a=0;if(0===r||0===o)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var c=0;c<=o;c++)s[0][c]={min:c};for(l=1;l<=r;l++)for(n=t[l-1],c=1;c<=o;c++){i=e[c-1],a=O(n,i)?0:1;var u=s[l-1][c].min+1,h=s[l][c-1].min+1,d=s[l-1][c-1].min+a;s[l][c]=P(u,h,d)}return s}(t,e),i=t.length,r=e.length,o=[],a=1,s=1;if(n[i][r].min!==i){for(var l=1;l<=i;l++){var c=n[l][l].min;s=l;for(var u=a;u<=r;u++)n[l][u].min<c&&(c=n[l][u].min,s=u);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=r-(i=t.length);if(i<r)for(l=0;l<h;l++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t};function L(t,e,n){for(var i,r=[].concat(t),o=1/(n+1),a=D(e)[0],s=1;s<=n;s++)o*=s,0===(i=Math.floor(t.length*o))?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function D(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var R=function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=D(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=L(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=L(n,t[i-1],2)}t[i]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=L(n,t[i-1],1)}t[i]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[i]=e[i]}return t}},function(t,e,n){var i=n(62),r=n(116);t.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},function(t,e,n){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(430),o=n(440),a=n(47),s=n(15),l=n(447);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==i(t)?s(t)?o(t[0],t[1]):r(t):l(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(33),r=n(105);e.default={box:function(t,e,n,r){return i.getBBoxByArray([t,n],[e,r])},length:function(t,e,n,r){return i.distance(t,e,n,r)},pointAt:function(t,e,n,i,r){return{x:(1-r)*t+r*n,y:(1-r)*e+r*i}},pointDistance:function(t,e,n,r,o,a){var s=(n-t)*(o-t)+(r-e)*(a-e);return s<0?i.distance(t,e,o,a):s>(n-t)*(n-t)+(r-e)*(r-e)?i.distance(n,r,o,a):this.pointToLine(t,e,n,r,o,a)},pointToLine:function(t,e,n,i,o,a){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return Math.sqrt((o-t)*(o-t)+(a-e)*(a-e));var l=[-s[1],s[0]];r.normalize(l,l);var c=[o-t,a-e];return Math.abs(r.dot(c,l))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}}},function(t,e,n){var i=n(177),r=n(118),o=n(38);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(43),o=n(19),a=n(109),s=n(61),l=n(29),c=n(110),u=n(171),h=n(362),d=function(t){function e(e){return t.call(this,i.__assign(i.__assign({},e),{autoDraw:!0,renderer:"svg"}))||this}return i.__extends(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return u.default},e.prototype.getShape=function(t,e,n){var i=n.target||n.srcElement;if(!o.SHAPE_TO_TAGS[i.tagName]){for(var r=i.parentNode;r&&!o.SHAPE_TO_TAGS[r.tagName];)r=r.parentNode;i=r}return this.find((function(t){return t.get("el")===i}))},e.prototype.createDom=function(){var t=l.createSVGElement("svg"),e=new h.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var i=this.get("children");i&&i.length&&l.sortDom(this,(function(t,e){return i.indexOf(t)-i.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var r=e.el;r.innerHTML="",n.appendChild(r)}}else"matrix"===t?s.setTransform(this):"clip"===t?s.setClip(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();s.setClip(this,t),e.length&&a.drawChildren(t,e)},e}(r.AbstractCanvas);e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return d}));var i=n(37);n.d(e,"PathUtil",(function(){return i}));var r=n(150);for(var o in r)["default","version","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a=n(151);for(var o in a)["default","version","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var s=n(96);n.d(e,"Event",(function(){return s.a}));var l=n(97);n.d(e,"Base",(function(){return l.a}));var c=n(228);n.d(e,"AbstractCanvas",(function(){return c.a}));var u=n(153);n.d(e,"AbstractGroup",(function(){return u.a}));var h=n(154);n.d(e,"AbstractShape",(function(){return h.a}));var d=n(318).version},function(t,e,n){var i=n(384),r=n(390);t.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},function(t,e,n){var i=n(52),r=n(386),o=n(387),a=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?r(t):o(t)}},function(t,e,n){var i=n(177),r=n(410),o=n(38);t.exports=function(t){return o(t)?i(t,!0):r(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var i=n(0).mix;t.exports={assign:i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(59);e.default=function(t){var e=i.default(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var i=n(31).Symbol;t.exports=i},function(t,e,n){(function(t){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(31),o=n(406),a="object"==i(e)&&e&&!e.nodeType&&e,s=a&&"object"==i(t)&&t&&!t.nodeType&&t,l=s&&s.exports===a?r.Buffer:void 0,c=(l?l.isBuffer:void 0)||o;t.exports=c}).call(this,n(115)(t))},function(t,e,n){var i=n(415),r=n(112),o=n(416),a=n(186),s=n(417),l=n(45),c=n(175),u=c(i),h=c(r),d=c(o),p=c(a),f=c(s),g=l;(i&&"[object DataView]"!=g(new i(new ArrayBuffer(1)))||r&&"[object Map]"!=g(new r)||o&&"[object Promise]"!=g(o.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,i=n?c(n):"";if(i)switch(i){case u:return"[object DataView]";case h:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=g},function(t,e,n){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(45),o=n(34);t.exports=function(t){return"symbol"==i(t)||o(t)&&"[object Symbol]"==r(t)}},function(t,e){var n=[],i=[];function r(t,e){if(e=e||{},void 0===t)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var r,o=!0===e.prepend?"prepend":"append",a=void 0!==e.container?e.container:document.querySelector("head"),s=n.indexOf(a);return-1===s&&(s=n.push(a)-1,i[s]={}),void 0!==i[s]&&void 0!==i[s][o]?r=i[s][o]:(r=i[s][o]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===o?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),r.styleSheet?r.styleSheet.cssText+=t:r.textContent+=t,r}t.exports=r,t.exports.insertCss=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(102),r=n(27);e.default=function(t){if(!i.default(t)||!r.default(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10);e.default=function(t){return i.default(t)?"":t.toString()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.clearChanged=e.checkChildrenRefresh=e.checkRefresh=e.drawChildren=e.applyAttrsToContext=void 0;var i=n(0),r=n(156),o=n(321),a=n(18),s=n(74),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&u(i.cfg.children,e);else if(i.cfg.refresh)i.isGroup()&&c(i.cfg.children,e);else{var r=h(i,e);i.cfg.refresh=r,r&&i.isGroup()&&c(i.cfg.children,e)}}}function u(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.cfg.refresh=!0,i.isGroup()&&u(i.get("children"),e)}}function h(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&a.intersectRect(n,e)}function d(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),i=n&&!(!n.width||!n.height),r=t.getCanvasBBox(),o=r&&!(!r.width||!r.height);i&&o?e=a.mergeRegion(n,r):i?e=n:o&&(e=r)}return e}e.applyAttrsToContext=function(t,e){var n=e.attr();for(var o in n){var a=n[o],s=l[o]?l[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?i.isArray(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=r.parseStyle(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}},e.drawChildren=function(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];r.cfg.visible?r.draw(t,n):r.skipDraw()}},e.checkRefresh=function(t,e,n){var r=t.get("refreshElements");i.each(r,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),r[0]===t?u(e,n):c(e,n)},e.checkChildrenRefresh=c,e.clearChanged=function t(e){for(var n=0;n<e.length;n++){var i=e[n];i.cfg.hasChanged=!1,i.isGroup()&&!i.destroyed&&t(i.cfg.children)}},e.drawPath=function(t,e,n,i){var r=n.path,a=n.startArrow,l=n.endArrow,c=[0,0],u=[0,0],h={dx:0,dy:0};e.beginPath();for(var d=0;d<r.length;d++){var p=r[d],f=p[0];if(0===d&&a&&a.d){var g=t.getStartTangent();h=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else d===r.length-2&&"Z"===r[d+1][0]&&l&&l.d?"Z"===r[d+1][0]&&(g=t.getEndTangent(),h=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],l.d)):d===r.length-1&&l&&l.d&&"Z"!==r[0]&&(g=t.getEndTangent(),h=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],l.d));var m=h.dx,v=h.dy;switch(f){case"M":e.moveTo(p[1]-m,p[2]-v),u=[p[1],p[2]];break;case"L":e.lineTo(p[1]-m,p[2]-v);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-m,p[4]-v);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-m,p[6]-v);break;case"A":var y=void 0;i?(y=i[d])||(y=o.default(c,p),i[d]=y):y=o.default(c,p);var b=y.cx,x=y.cy,w=y.rx,_=y.ry,C=y.startAngle,A=y.endAngle,I=y.xRotation,S=y.sweepFlag;if(e.ellipse)e.ellipse(b,x,w,_,I,C,A,1-S);else{var M=w>_?w:_,k=w>_?1:w/_,E=w>_?_/w:1;e.translate(b,x),e.rotate(I),e.scale(k,E),e.arc(0,0,M,C,A,1-S),e.scale(1/k,1/E),e.rotate(-I),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===f)c=u;else{var T=p.length;c=[p[T-2],p[T-1]]}}},e.refreshElement=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))},e.getRefreshRegion=d,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],r=[],o=[];return i.each(t,(function(t){var i=d(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),o.push(i.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,r),maxY:Math.max.apply(null,o)}},e.mergeView=function(t,e){return t&&e&&a.intersectRect(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var i=n(29);e.setShadow=function(t,e){var n=t.cfg.el,i=t.attr(),r={dx:i.shadowOffsetX,dy:i.shadowOffsetY,blur:i.shadowBlur,color:i.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=e.find("filter",r);o||(o=e.addShadow(r)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);-1===(i=i.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){i.createDom(n),n.createPath(e);var o=e.addClip(n);r.setAttribute("clip-path","url(#"+o+")")}}else r.removeAttribute("clip-path")}},function(t,e,n){var i=n(45),r=n(25);t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var i=n(81),r=n(82);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,l=e.length;++s<l;){var c=e[s],u=o?o(n[c],t[c],c,n,t):void 0;void 0===u&&(u=t[c]),a?r(n,c,u):i(n,c,u)}return n}},function(t,e,n){var i=n(405),r=n(34),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(t){return r(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},function(t,e,n){var i=n(407),r=n(84),o=n(117),a=o&&o.isTypedArray,s=a?r(a):i;t.exports=s},function(t,e,n){var i=n(55);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(t%e+e)%e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Math.PI/180;e.default=function(t){return i*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(14),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(!e||!i.default(t))return{};for(var n,a={},s=r.default(e)?e:function(t){return t[e]},l=0;l<t.length;l++){var c=t[l];n=s(c),o.call(a,n)?a[n].push(c):a[n]=[c]}return a}},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(311),o=n(315),a=[].slice,s=["keyword","gray","hex"],l={};Object.keys(o).forEach((function(t){l[a.call(o[t].labels).sort().join("")]=t}));var c={};function u(t,e){if(!(this instanceof u))return new u(t,e);if(e&&e in s&&(e=null),e&&!(e in o))throw new Error("Unknown model: "+e);var n,i;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof u)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var h=r.get(t);if(null===h)throw new Error("Unable to parse color from string: "+t);this.model=h.model,i=o[this.model].channels,this.color=h.value.slice(0,i),this.valpha="number"==typeof h.value[i]?h.value[i]:1}else if(t.length){this.model=e||"rgb",i=o[this.model].channels;var d=a.call(t,0,i);this.color=f(d,i),this.valpha="number"==typeof t[i]?t[i]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var p=Object.keys(t);"alpha"in t&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var g=p.sort().join("");if(!(g in l))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=l[g];var m=o[this.model].labels,v=[];for(n=0;n<m.length;n++)v.push(t[m[n]]);this.color=f(v)}if(c[this.model])for(i=o[this.model].channels,n=0;n<i;n++){var y=c[this.model][n];y&&(this.color[n]=y(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function h(t,e,n){return(t=Array.isArray(t)?t:[t]).forEach((function(t){(c[t]||(c[t]=[]))[e]=n})),t=t[0],function(i){var r;return arguments.length?(n&&(i=n(i)),(r=this[t]()).color[e]=i,r):(r=this[t]().color[e],n&&(r=n(r)),r)}}function d(t){return function(e){return Math.max(0,Math.min(t,e))}}function p(t){return Array.isArray(t)?t:[t]}function f(t,e){for(var n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}u.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in r.to?this:this.rgb(),n=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return r.to[e.model](n)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:e.color.concat(this.valpha);return r.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=o[this.model].channels,n=o[this.model].labels,i=0;i<e;i++)t[n[i]]=this.color[i];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new u(this.color.map(function(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new u(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:h("rgb",0,d(255)),green:h("rgb",1,d(255)),blue:h("rgb",2,d(255)),hue:h(["hsl","hsv","hsl","hwb","hcg"],0,(function(t){return(t%360+360)%360})),saturationl:h("hsl",1,d(100)),lightness:h("hsl",2,d(100)),saturationv:h("hsv",1,d(100)),value:h("hsv",2,d(100)),chroma:h("hcg",1,d(100)),gray:h("hcg",2,d(100)),white:h("hwb",1,d(100)),wblack:h("hwb",2,d(100)),cyan:h("cmyk",0,d(100)),magenta:h("cmyk",1,d(100)),yellow:h("cmyk",2,d(100)),black:h("cmyk",3,d(100)),x:h("xyz",0,d(100)),y:h("xyz",1,d(100)),z:h("xyz",2,d(100)),l:h("lab",0,d(100)),a:h("lab",1),b:h("lab",2),keyword:function(t){return arguments.length?new u(t):o[this.model].keyword(this.color)},hex:function(t){return arguments.length?new u(t):r.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return u.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n=(n+t)%360)<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+i(t));var n=t.rgb(),r=this.rgb(),o=void 0===e?.5:e,a=2*o-1,s=n.alpha()-r.alpha(),l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2,c=1-l;return u.rgb(l*n.red()+c*r.red(),l*n.green()+c*r.green(),l*n.blue()+c*r.blue(),n.alpha()*o+r.alpha()*(1-o))}},Object.keys(o).forEach((function(t){if(-1===s.indexOf(t)){var e=o[t].channels;u.prototype[t]=function(){if(this.model===t)return new u(this);if(arguments.length)return new u(arguments,t);var n="number"==typeof arguments[e]?e:this.valpha;return new u(p(o[this.model][t].raw(this.color)).concat(n),t)},u[t]=function(n){return"number"==typeof n&&(n=f(a.call(arguments),e)),new u(n,t)}}})),t.exports=u},function(t,e,n){var i;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(o){var a=/^\s+/,s=/\s+$/,l=0,c=o.round,u=o.min,h=o.max,d=o.random;function p(t,e){if(e=e||{},(t=t||"")instanceof p)return t;if(!(this instanceof p))return new p(t,e);var n=function(t){var e,n,i,l={r:0,g:0,b:0},c=1,d=null,p=null,f=null,g=!1,m=!1;return"string"==typeof t&&(t=function(t){t=t.replace(a,"").replace(s,"").toLowerCase();var e,n=!1;if(O[t])t=O[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=W.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=W.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=W.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=W.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=W.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=W.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=W.hex8.exec(t))?{r:R(e[1]),g:R(e[2]),b:R(e[3]),a:z(e[4]),format:n?"name":"hex8"}:(e=W.hex6.exec(t))?{r:R(e[1]),g:R(e[2]),b:R(e[3]),format:n?"name":"hex"}:(e=W.hex4.exec(t))?{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),a:z(e[4]+""+e[4]),format:n?"name":"hex8"}:!!(e=W.hex3.exec(t))&&{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),format:n?"name":"hex"}}(t)),"object"==r(t)&&(U(t.r)&&U(t.g)&&U(t.b)?(e=t.r,n=t.g,i=t.b,l={r:255*L(e,255),g:255*L(n,255),b:255*L(i,255)},g=!0,m="%"===String(t.r).substr(-1)?"prgb":"rgb"):U(t.h)&&U(t.s)&&U(t.v)?(d=N(t.s),p=N(t.v),l=function(t,e,n){t=6*L(t,360),e=L(e,100),n=L(n,100);var i=o.floor(t),r=t-i,a=n*(1-e),s=n*(1-r*e),l=n*(1-(1-r)*e),c=i%6;return{r:255*[n,s,a,a,l,n][c],g:255*[l,n,n,s,a,a][c],b:255*[a,a,l,n,n,s][c]}}(t.h,d,p),g=!0,m="hsv"):U(t.h)&&U(t.s)&&U(t.l)&&(d=N(t.s),f=N(t.l),l=function(t,e,n){var i,r,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=L(t,360),e=L(e,100),n=L(n,100),0===e)i=r=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=a(l,s,t+1/3),r=a(l,s,t),o=a(l,s,t-1/3)}return{r:255*i,g:255*r,b:255*o}}(t.h,d,f),g=!0,m="hsl"),t.hasOwnProperty("a")&&(c=t.a)),c=j(c),{ok:g,format:t.format||m,r:u(255,h(l.r,0)),g:u(255,h(l.g,0)),b:u(255,h(l.b,0)),a:c}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=l++}function f(t,e,n){t=L(t,255),e=L(e,255),n=L(n,255);var i,r,o=h(t,e,n),a=u(t,e,n),s=(o+a)/2;if(o==a)i=r=0;else{var l=o-a;switch(r=s>.5?l/(2-o-a):l/(o+a),o){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4}i/=6}return{h:i,s:r,l:s}}function g(t,e,n){t=L(t,255),e=L(e,255),n=L(n,255);var i,r,o=h(t,e,n),a=u(t,e,n),s=o,l=o-a;if(r=0===o?0:l/o,o==a)i=0;else{switch(o){case t:i=(e-n)/l+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4}i/=6}return{h:i,s:r,v:s}}function m(t,e,n,i){var r=[B(c(t).toString(16)),B(c(e).toString(16)),B(c(n).toString(16))];return i&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function v(t,e,n,i){return[B(F(i)),B(c(t).toString(16)),B(c(e).toString(16)),B(c(n).toString(16))].join("")}function y(t,e){e=0===e?0:e||10;var n=p(t).toHsl();return n.s-=e/100,n.s=D(n.s),p(n)}function b(t,e){e=0===e?0:e||10;var n=p(t).toHsl();return n.s+=e/100,n.s=D(n.s),p(n)}function x(t){return p(t).desaturate(100)}function w(t,e){e=0===e?0:e||10;var n=p(t).toHsl();return n.l+=e/100,n.l=D(n.l),p(n)}function _(t,e){e=0===e?0:e||10;var n=p(t).toRgb();return n.r=h(0,u(255,n.r-c(-e/100*255))),n.g=h(0,u(255,n.g-c(-e/100*255))),n.b=h(0,u(255,n.b-c(-e/100*255))),p(n)}function C(t,e){e=0===e?0:e||10;var n=p(t).toHsl();return n.l-=e/100,n.l=D(n.l),p(n)}function A(t,e){var n=p(t).toHsl(),i=(n.h+e)%360;return n.h=i<0?360+i:i,p(n)}function I(t){var e=p(t).toHsl();return e.h=(e.h+180)%360,p(e)}function S(t){var e=p(t).toHsl(),n=e.h;return[p(t),p({h:(n+120)%360,s:e.s,l:e.l}),p({h:(n+240)%360,s:e.s,l:e.l})]}function M(t){var e=p(t).toHsl(),n=e.h;return[p(t),p({h:(n+90)%360,s:e.s,l:e.l}),p({h:(n+180)%360,s:e.s,l:e.l}),p({h:(n+270)%360,s:e.s,l:e.l})]}function k(t){var e=p(t).toHsl(),n=e.h;return[p(t),p({h:(n+72)%360,s:e.s,l:e.l}),p({h:(n+216)%360,s:e.s,l:e.l})]}function E(t,e,n){e=e||6,n=n||30;var i=p(t).toHsl(),r=360/n,o=[p(t)];for(i.h=(i.h-(r*e>>1)+720)%360;--e;)i.h=(i.h+r)%360,o.push(p(i));return o}function T(t,e){e=e||6;for(var n=p(t).toHsv(),i=n.h,r=n.s,o=n.v,a=[],s=1/e;e--;)a.push(p({h:i,s:r,v:o})),o=(o+s)%1;return a}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,i=this.toRgb();return t=i.r/255,e=i.g/255,n=i.b/255,.2126*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=j(t),this._roundA=c(100*this._a)/100,this},toHsv:function(){var t=g(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=g(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),i=c(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+i+"%)":"hsva("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=f(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),i=c(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+i+"%)":"hsla("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return m(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,i,r){var o=[B(c(t).toString(16)),B(c(e).toString(16)),B(c(n).toString(16)),B(F(i))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*L(this._r,255))+"%",g:c(100*L(this._g,255))+"%",b:c(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*L(this._r,255))+"%, "+c(100*L(this._g,255))+"%, "+c(100*L(this._b,255))+"%)":"rgba("+c(100*L(this._r,255))+"%, "+c(100*L(this._g,255))+"%, "+c(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+v(this._r,this._g,this._b,this._a),n=e,i=this._gradientType?"GradientType = 1, ":"";if(t){var r=p(t);n="#"+v(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,i=this._a<1&&this._a>=0;return e||!i||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(I,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},p.fromRatio=function(t,e){if("object"==r(t)){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]="a"===i?t[i]:N(t[i]));t=n}return p(t,e)},p.equals=function(t,e){return!(!t||!e)&&p(t).toRgbString()==p(e).toRgbString()},p.random=function(){return p.fromRatio({r:d(),g:d(),b:d()})},p.mix=function(t,e,n){n=0===n?0:n||50;var i=p(t).toRgb(),r=p(e).toRgb(),o=n/100;return p({r:(r.r-i.r)*o+i.r,g:(r.g-i.g)*o+i.g,b:(r.b-i.b)*o+i.b,a:(r.a-i.a)*o+i.a})},p.readability=function(t,e){var n=p(t),i=p(e);return(o.max(n.getLuminance(),i.getLuminance())+.05)/(o.min(n.getLuminance(),i.getLuminance())+.05)},p.isReadable=function(t,e,n){var i,r,o=p.readability(t,e);switch(r=!1,(i=function(t){var e,n;return e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:e,size:n}}(n)).level+i.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},p.mostReadable=function(t,e,n){var i,r,o,a,s=null,l=0;r=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<e.length;c++)(i=p.readability(t,e[c]))>l&&(l=i,s=p(e[c]));return p.isReadable(t,s,{level:o,size:a})||!r?s:(n.includeFallbackColors=!1,p.mostReadable(t,["#fff","#000"],n))};var O=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=p.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(O);function j(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function L(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=u(e,h(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),o.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function D(t){return u(1,h(0,t))}function R(t){return parseInt(t,16)}function B(t){return 1==t.length?"0"+t:""+t}function N(t){return t<=1&&(t=100*t+"%"),t}function F(t){return o.round(255*parseFloat(t)).toString(16)}function z(t){return R(t)/255}var V,G,H,W=(G="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",H="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+G),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+G),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+G),hsva:new RegExp("hsva"+H),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!W.CSS_UNIT.exec(t)}t.exports?t.exports=p:void 0===(i=function(){return p}.call(e,n,e,t))||(t.exports=i)}(Math)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(21);e.default=function(t,e){return!!i.default(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(28);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return i.default}});var r=n(334);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r.default}});var o=n(335);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return o.default}});var a=n(336);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return a.default}});var s=n(337);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return s.default}});var l=n(338);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return l.default}});var c=n(340);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.default}});var u=n(342);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return u.default}});var h=n(343);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return h.default}});var d=n(345);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return d.default}});var p=n(348);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return p.default}})},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var r=n(1),o=n(73),a=Math.sin,s=Math.cos,l=Math.atan2,c=Math.PI;function u(t,e,n,i,r,u,h){var d=e.stroke,p=e.lineWidth,f=l(i-u,n-r),g=new o.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(c/6)+","+10*a(c/6)+" L0,0 L"+10*s(c/6)+",-"+10*a(c/6),stroke:d,lineWidth:p}});g.translate(r,u),g.rotateAtPoint(r,u,f),t.set(h?"startArrowShape":"endArrowShape",g)}function h(t,e,n,i,c,u,h){var d=e.startArrow,p=e.endArrow,f=e.stroke,g=e.lineWidth,m=h?d:p,v=m.d,y=m.fill,b=m.stroke,x=m.lineWidth,w=r.__rest(m,["d","fill","stroke","lineWidth"]),_=l(i-u,n-c);v&&(c-=s(_)*v,u-=a(_)*v);var C=new o.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:r.__assign(r.__assign({},w),{stroke:b||f,lineWidth:x||g,fill:y})});C.translate(c,u),C.rotateAtPoint(c,u,_),t.set(h?"startArrowShape":"endArrowShape",C)}e.getShortenOffset=function(t,e,n,i,r){var o=l(i-e,n-t);return{dx:s(o)*r,dy:a(o)*r}},e.addStartArrow=function(t,e,n,r,o,a){"object"===i(e.startArrow)?h(t,e,n,r,o,a,!0):e.startArrow?u(t,e,n,r,o,a,!0):t.set("startArrowShape",null)},e.addEndArrow=function(t,e,n,r,o,a){"object"===i(e.endArrow)?h(t,e,n,r,o,a,!1):e.endArrow?u(t,e,n,r,o,a,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(40);e.default=function(t,e,n,r,o,a,s){var l=Math.min(t,n),c=Math.max(t,n),u=Math.min(e,r),h=Math.max(e,r),d=o/2;return a>=l-d&&a<=c+d&&s>=u-d&&s<=h+d&&i.default.pointToLine(t,e,n,r,a,s)<=o/2}},function(t,e,n){var i=n(77),r=n(379),o=n(380),a=n(381),s=n(382),l=n(383);function c(t){var e=this.__data__=new i(t);this.size=e.size}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,t.exports=c},function(t,e,n){var i=n(374),r=n(375),o=n(376),a=n(377),s=n(378);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var i=n(51);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},function(t,e,n){var i=n(44)(Object,"create");t.exports=i},function(t,e,n){var i=n(399);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var i=n(82),r=n(51),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&r(a,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var i=n(176);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=n(t);return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(178)(Object.getPrototypeOf,Object);t.exports=i},function(t,e,n){var i=n(123),r=n(428)(i);t.exports=r},function(t,e,n){var i=n(89),r=n(66);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[r(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var i=n(15),r=n(126),o=n(442),a=n(201);t.exports=function(t,e){return i(t)?t:r(t,e)?[t]:o(a(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}},function(t,e,n){var i=n(47),r=n(210),o=n(211);t.exports=function(t,e){return o(r(t,e,i),t+"")}},function(t,e,n){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(51),o=n(38),a=n(83),s=n(25);t.exports=function(t,e,n){if(!s(n))return!1;var l=i(e);return!!("number"==l?o(n)&&a(e,n.length):"string"==l&&e in n)&&r(n[e],t)}},function(t,e,n){"use strict";var i=n(13);t.exports={longestPath:function(t){var e={};i.forEach(t.sources(),(function n(r){var o=t.node(r);if(i.has(e,r))return o.rank;e[r]=!0;var a=i.min(i.map(t.outEdges(r),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},function(t,e,n){var i=n(226),r=function(){function t(t,e){void 0===e&&(e={}),this.options=e,this.rootNode=i(t,e)}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(102),r=n(21),o=n(3);e.default=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(o.default(e)||o.default(n))return!1;if(r.default(e)||r.default(n)){if(e.length!==n.length)return!1;for(var a=!0,s=0;s<e.length&&(a=t(e[s],n[s]));s++);return a}if(i.default(e)||i.default(n)){var l=Object.keys(e),c=Object.keys(n);if(l.length!==c.length)return!1;for(a=!0,s=0;s<l.length&&(a=t(e[l[s]],n[l[s]]));s++);return a}return!1}},function(t,e,n){"use strict";var i=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.a=i},function(t,e,n){"use strict";var i=n(1),r=n(99),o=n(9),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=Object(o.i)(i,e),n}return Object(i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(r.a);e.a=a},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);e.default=function t(e){if("object"!==i(e)||null===e)return e;var n;if(r.default(e)){n=[];for(var o=0,a=e.length;o<a;o++)"object"===i(e[o])&&null!=e[o]?n[o]=t(e[o]):n[o]=e[o]}else for(var s in n={},e)"object"===i(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n}},function(t,e,n){"use strict";var i=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this._events[t]||[],o=this._events["*"]||[],a=function(i){for(var r=i.length,o=0;o<r;o++)if(i[o]){var a=i[o],s=a.callback;a.once&&(i.splice(o,1),0===i.length&&delete e._events[t],r--,o--),s.apply(e,n)}};a(r),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],i=n.length,r=0;r<i;r++)n[r].callback===e&&(n.splice(r,1),i--,r--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.a=i},function(t,e,n){"use strict";var i=n(1),r=n(101),o=n(9),a={},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=[],a=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return s.length>0?(Object(o.a)(s,(function(t){var e=t.getBBox();r.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,a),i=Math.max.apply(null,a)):(t=0,e=0,n=0,i=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=[],a=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return s.length>0?(Object(o.a)(s,(function(t){var e=t.getCanvasBBox();r.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,a),i=Math.max.apply(null,a)):(t=0,e=0,n=0,i=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o.a)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],i=t[1];Object(o.f)(n)?i=n:i.type=n;var r=a[i.type];r||(r=Object(o.k)(i.type),a[i.type]=r);var s=this.getShapeBase(),l=new s[r](i);return this.add(l),l},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,i=t[0],r=t[1];if(Object(o.d)(i))n=new i(r||{parent:this});else{var a=i||{},s=this.getGroupBase();n=new s(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!Object(o.b)(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(i=this._findShape(r,a[0],a[1],n))}return i},e.prototype._findShape=function(t,e,n,i){for(var r=null,a=t.length-1;a>=0;a--){var s=t[a];if(Object(o.b)(s)&&(s.isGroup()?r=s.getShape(e,n,i):s.isHit(e,n)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o.j)(t.getChildren(),e)}(r,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var i=e.get("children");i.length&&i.forEach((function(e){t(e,n)}))}}(t,e),i&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var i=e.get("children");i.length&&i.forEach((function(e){t(e,n)}))}}(t,i),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(o.a)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var i=t(e,n);return 0===i?e._INDEX-n._INDEX:i})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o.a)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o.a)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(r.a);e.a=s},function(t,e,n){"use strict";var i=n(1),r=n(0),o=n(133),a=n(9),s=n(32),l=n(97),c=o.ext.transform,u=["zIndex","capture","visible","type"],h=["repeat"];function d(t,e){var n={},i=e.attrs;for(var r in t)n[r]=i[r];return n}function p(t,e){var n={},i=e.attr();return Object(r.each)(t,(function(t,e){-1!==h.indexOf(e)||Object(r.isEqual)(i[e],t)||(n[e]=t)})),n}function f(t,e){if(e.onFrame)return t;var n=e.startTime,i=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(r.each)(t,(function(t){n+i<t.startTime+t.delay+t.duration&&o>t.delay&&Object(r.each)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(r.mix)(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e[0],o=e[1];if(!i)return this.attrs;if(Object(r.isObject)(i)){for(var a in i)this.setAttr(a,i[a]);return this.afterAttrsChange(i),this}return 2===e.length?(this.setAttr(i,o),this.afterAttrsChange(((t={})[i]=o,t)),this):this.attrs[i]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(a.j)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Object(s.b)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Object(s.b)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Object(s.c)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(s.a)(e);if(n)return Object(s.c)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var i=this.getShapeBase()[Object(r.upperFirst)(t.type)];i&&(n=new i({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(r.each)(e,(function(t,i){Object(r.isArray)(e[i])?n[i]=function(t){for(var e=[],n=0;n<t.length;n++)Object(r.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[i]):n[i]=e[i]}));var i=new(0,this.constructor)({attrs:n});return Object(r.each)(u,(function(e){i.set(e,t.get(e))})),i},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var i=this.get("animations")||[];n.timer||n.initTimer();var o,a,s,l,c,u=t[0],h=t[1],g=t[2],m=void 0===g?"easeLinear":g,v=t[3],y=void 0===v?r.noop:v,b=t[4],x=void 0===b?0:b;Object(r.isFunction)(u)?(o=u,u={}):Object(r.isObject)(u)&&u.onFrame&&(o=u.onFrame,a=u.repeat),Object(r.isObject)(h)?(h=(c=h).duration,m=c.easing||"easeLinear",x=c.delay||0,a=c.repeat||a||!1,y=c.callback||r.noop,s=c.pauseCallback||r.noop,l=c.resumeCallback||r.noop):(Object(r.isNumber)(y)&&(x=y,y=null),Object(r.isFunction)(m)?(y=m,m="easeLinear"):m=m||"easeLinear");var w=p(u,this),_={fromAttrs:d(w,this),toAttrs:w,duration:h,easing:m,repeat:a,callback:y,pauseCallback:s,resumeCallback:l,delay:x,startTime:n.getTime(),id:Object(r.uniqueId)(),onFrame:o,pathFormatted:!1};i.length>0?i=f(i,_):n.addAnimator(this),i.push(_),this.set("animations",i),this.set("_pause",{isPaused:!1})},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(r.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(r.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(r.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,i=this,o=e.propagationPath;this.getEvents(),"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],c=s.get("name");if(c){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a.g)(s,n))return"break";Object(r.isArray)(c)?Object(r.each)(c,(function(t){i.emitDelegateEvent(s,t,e)})):l.emitDelegateEvent(s,c,e)}},l=this,c=0;c<o.length;c++)if("break"===s(c))break},e.prototype.emitDelegateEvent=function(t,e,n){var i=this.getEvents(),r=e+":"+n.type;(i[r]||i["*"])&&(n.name=r,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(r,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),i=c(n,[["t",t,e]]);return this.setMatrix(i),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,i=this.attr("y")||0;return this.translate(t-n,e-i),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),i=c(n,[["s",t,e||t]]);return this.setMatrix(i),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=c(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,i=e.y,r=this.getMatrix(),o=c(r,[["t",-n,-i],["r",t],["t",n,i]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var i=this.getMatrix(),r=c(i,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this},e}(l.a);e.a=g},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"object"===i(t)&&null!==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t},e.toRadian=function(t){return t*r},e.equals=function(t,e){return Math.abs(t-e)<=i*Math.max(1,Math.abs(t),Math.abs(e))};var i=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;var r=Math.PI/180},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return u})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return f})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return m})),n.d(e,"round",(function(){return v})),n.d(e,"scale",(function(){return y})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return w})),n.d(e,"length",(function(){return _})),n.d(e,"squaredLength",(function(){return C})),n.d(e,"negate",(function(){return A})),n.d(e,"inverse",(function(){return I})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return M})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return E})),n.d(e,"random",(function(){return T})),n.d(e,"transformMat2",(function(){return O})),n.d(e,"transformMat2d",(function(){return P})),n.d(e,"transformMat3",(function(){return j})),n.d(e,"transformMat4",(function(){return L})),n.d(e,"rotate",(function(){return D})),n.d(e,"angle",(function(){return R})),n.d(e,"zero",(function(){return B})),n.d(e,"str",(function(){return N})),n.d(e,"exactEquals",(function(){return F})),n.d(e,"equals",(function(){return z})),n.d(e,"len",(function(){return G})),n.d(e,"sub",(function(){return H})),n.d(e,"mul",(function(){return W})),n.d(e,"div",(function(){return U})),n.d(e,"dist",(function(){return Z})),n.d(e,"sqrDist",(function(){return Y})),n.d(e,"sqrLen",(function(){return X})),n.d(e,"forEach",(function(){return q}));var i=n(6);function r(){var t=new i.a(2);return i.a!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new i.a(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new i.a(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function l(t,e,n){return t[0]=e,t[1]=n,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function f(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function v(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function x(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.hypot(n,i)}function w(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function _(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function C(t){var e=t[0],n=t[1];return e*e+n*n}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t}function I(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function S(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t}function E(t,e,n,i){var r=e[0],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t}function T(t,e){e=e||1;var n=2*i.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function O(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t}function P(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function j(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function L(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t}function D(t,e,n,i){var r=e[0]-n[0],o=e[1]-n[1],a=Math.sin(i),s=Math.cos(i);return t[0]=r*s-o*a+n[0],t[1]=r*a+o*s+n[1],t}function R(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],a=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+o*o),s=a&&(n*r+i*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function B(t){return t[0]=0,t[1]=0,t}function N(t){return"vec2("+t[0]+", "+t[1]+")"}function F(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],r=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=i.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=i.b*Math.max(1,Math.abs(r),Math.abs(a))}var V,G=_,H=u,W=h,U=d,Z=x,Y=w,X=C,q=(V=r(),function(t,e,n,i,r,o){var a,s;for(e||(e=2),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,a=n;a<s;a+=e)V[0]=t[a],V[1]=t[a+1],r(V,V,o),t[a]=V[0],t[a+1]=V[1];return t})},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return l})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return d})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return f})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return m})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return w})),n.d(e,"squaredDistance",(function(){return _})),n.d(e,"squaredLength",(function(){return C})),n.d(e,"negate",(function(){return A})),n.d(e,"inverse",(function(){return I})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return M})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return E})),n.d(e,"hermite",(function(){return T})),n.d(e,"bezier",(function(){return O})),n.d(e,"random",(function(){return P})),n.d(e,"transformMat4",(function(){return j})),n.d(e,"transformMat3",(function(){return L})),n.d(e,"transformQuat",(function(){return D})),n.d(e,"rotateX",(function(){return R})),n.d(e,"rotateY",(function(){return B})),n.d(e,"rotateZ",(function(){return N})),n.d(e,"angle",(function(){return F})),n.d(e,"zero",(function(){return z})),n.d(e,"str",(function(){return V})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return H})),n.d(e,"sub",(function(){return U})),n.d(e,"mul",(function(){return Z})),n.d(e,"div",(function(){return Y})),n.d(e,"dist",(function(){return X})),n.d(e,"sqrDist",(function(){return q})),n.d(e,"len",(function(){return K})),n.d(e,"sqrLen",(function(){return Q})),n.d(e,"forEach",(function(){return J}));var i=n(6);function r(){var t=new i.a(3);return i.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new i.a(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],i=t[2];return Math.hypot(e,n,i)}function s(t,e,n){var r=new i.a(3);return r[0]=t,r[1]=e,r[2]=n,r}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function w(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.hypot(n,i,r)}function _(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function C(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function I(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t}function E(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t}function T(t,e,n,i,r,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,c=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+i[0]*c+r[0]*u,t[1]=e[1]*s+n[1]*l+i[1]*c+r[1]*u,t[2]=e[2]*s+n[2]*l+i[2]*c+r[2]*u,t}function O(t,e,n,i,r,o){var a=1-o,s=a*a,l=o*o,c=s*a,u=3*o*s,h=3*l*a,d=l*o;return t[0]=e[0]*c+n[0]*u+i[0]*h+r[0]*d,t[1]=e[1]*c+n[1]*u+i[1]*h+r[1]*d,t[2]=e[2]*c+n[2]*u+i[2]*h+r[2]*d,t}function P(t,e){e=e||1;var n=2*i.c()*Math.PI,r=2*i.c()-1,o=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=r*e,t}function j(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t}function L(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function D(t,e,n){var i=n[0],r=n[1],o=n[2],a=n[3],s=e[0],l=e[1],c=e[2],u=r*c-o*l,h=o*s-i*c,d=i*l-r*s,p=r*d-o*h,f=o*u-i*d,g=i*h-r*u,m=2*a;return u*=m,h*=m,d*=m,p*=2,f*=2,g*=2,t[0]=s+u+p,t[1]=l+h+f,t[2]=c+d+g,t}function R(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function N(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function F(t,e){var n=t[0],i=t[1],r=t[2],o=e[0],a=e[1],s=e[2],l=Math.sqrt(n*n+i*i+r*r)*Math.sqrt(o*o+a*a+s*s),c=l&&M(t,e)/l;return Math.acos(Math.min(Math.max(c,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function V(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function H(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=i.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i.b*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-l)<=i.b*Math.max(1,Math.abs(o),Math.abs(l))}var W,U=h,Z=d,Y=p,X=w,q=_,K=a,Q=C,J=(W=r(),function(t,e,n,i,r,o){var a,s;for(e||(e=3),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,a=n;a<s;a+=e)W[0]=t[a],W[1]=t[a+1],W[2]=t[a+2],r(W,W,o),t[a]=W[0],t[a+1]=W[1],t[a+2]=W[2];return t})},function(t,e,n){"use strict";function i(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeArrowBBox=e.mergeBBox=void 0,e.mergeBBox=i,e.mergeArrowBBox=function(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=i(e,n.getCanvasBBox())),r&&(e=i(e,r.getCanvasBBox())),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(33),r=n(40),o=n(161);function a(t,e,n,i,r){var o=1-r;return o*o*o*t+3*e*r*o*o+3*n*r*r*o+i*r*r*r}function s(t,e,n,i,r){var o=1-r;return 3*(o*o*(e-t)+2*o*r*(n-e)+r*r*(i-n))}function l(t,e,n,r){var o,a,s,l=-3*t+9*e-9*n+3*r,c=6*t-12*e+6*n,u=3*e-3*t,h=[];if(i.isNumberEqual(l,0))i.isNumberEqual(c,0)||(o=-u/c)>=0&&o<=1&&h.push(o);else{var d=c*c-4*l*u;i.isNumberEqual(d,0)?h.push(-c/(2*l)):d>0&&(a=(-c-(s=Math.sqrt(d)))/(2*l),(o=(-c+s)/(2*l))>=0&&o<=1&&h.push(o),a>=0&&a<=1&&h.push(a))}return h}function c(t,e,n,i,o,s,l,c,u){var h=a(t,n,o,l,u),d=a(e,i,s,c,u),p=r.default.pointAt(t,e,n,i,u),f=r.default.pointAt(n,i,o,s,u),g=r.default.pointAt(o,s,l,c,u),m=r.default.pointAt(p.x,p.y,f.x,f.y,u),v=r.default.pointAt(f.x,f.y,g.x,g.y,u);return[[t,e,p.x,p.y,m.x,m.y,h,d],[h,d,v.x,v.y,g.x,g.y,l,c]]}e.default={extrema:l,box:function(t,e,n,r,o,s,c,u){for(var h=[t,c],d=[e,u],p=l(t,n,o,c),f=l(e,r,s,u),g=0;g<p.length;g++)h.push(a(t,n,o,c,p[g]));for(g=0;g<f.length;g++)d.push(a(e,r,s,u,f[g]));return i.getBBoxByArray(h,d)},length:function(t,e,n,i,r,a,s,l){return function t(e,n,i,r,a,s,l,u,h){if(0===h)return o.snapLength([e,i,a,l],[n,r,s,u]);var d=c(e,n,i,r,a,s,l,u,.5),p=d[0],f=d[1];return p.push(h-1),f.push(h-1),t.apply(null,p)+t.apply(null,f)}(t,e,n,i,r,a,s,l,3)},nearestPoint:function(t,e,n,i,r,s,l,c,u,h,d){return o.nearestPoint([t,n,r,l],[e,i,s,c],u,h,a,d)},pointDistance:function(t,e,n,r,o,a,s,l,c,u,h){var d=this.nearestPoint(t,e,n,r,o,a,s,l,c,u,h);return i.distance(d.x,d.y,c,u)},interpolationAt:a,pointAt:function(t,e,n,i,r,o,s,l,c){return{x:a(t,n,r,s,c),y:a(e,i,o,l,c)}},divide:function(t,e,n,i,r,o,a,s,l){return c(t,e,n,i,r,o,a,s,l)},tangentAngle:function(t,e,n,r,o,a,l,c,u){var h=s(t,n,o,l,u),d=s(e,r,a,c,u);return i.piMod(Math.atan2(d,h))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refreshElement=e.drawChildren=void 0;var i=n(61),r=n(29);e.drawChildren=function(t,e){e.forEach((function(e){e.draw(t)}))},e.refreshElement=function(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],l=t.get("el");if("remove"===e)if(t.get("isClipShape")){var c=l&&l.parentNode,u=c&&c.parentNode;c&&u&&u.removeChild(c)}else l&&l.parentNode&&l.parentNode.removeChild(l);else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)r.moveTo(l,s.indexOf(t));else if("sort"===e){var h=t.get("children");h&&h.length&&r.sortDom(t,(function(t,e){return h.indexOf(t)-h.indexOf(e)?1:0}))}else"clear"===e?l&&(l.innerHTML=""):"matrix"===e?i.setTransform(t):"clip"===e?i.setClip(t,o):"attr"===e||"add"===e&&t.draw(o)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(23);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return i.default}});var r=n(349);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r.default}});var o=n(350);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return o.default}});var a=n(351);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return a.default}});var s=n(352);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return s.default}});var l=n(353);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return l.default}});var c=n(354);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return c.default}});var u=n(356);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return u.default}});var h=n(357);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return h.default}});var d=n(358);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return d.default}});var p=n(359);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return p.default}});var f=n(361);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return f.default}})},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(24);function o(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(t,e){t[e]?t[e]++:t[e]=1}function s(t,e){--t[e]||delete t[e]}function l(t,e,n,i){var o=""+e,a=""+n;if(!t&&o>a){var s=o;o=a,a=s}return o+""+a+""+(r.isUndefined(i)?"\0":i)}function c(t,e,n,i){var r=""+e,o=""+n;if(!t&&r>o){var a=r;r=o,o=a}var s={v:r,w:o};return i&&(s.name=i),s}function u(t,e){return l(t,e.v,e.w,e.name)}t.exports=o,o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(t){return this._label=t,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},o.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},o.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},o.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},o.prototype.node=function(t){return this._nodes[t]},o.prototype.hasNode=function(t){return r.has(this._nodes,t)},o.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},o.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e="\0";else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},o.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},o.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}},o.prototype.children=function(t){if(r.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if("\0"===t)return this.nodes();if(this.hasNode(t))return[]}},o.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},o.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},o.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},o.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},o.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,i){t(i)&&e.setNode(i,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,function t(r){var o=n.parent(r);return void 0===o||e.hasNode(o)?(i[r]=o,o):o in i?i[o]:t(o)}(t))})),e},o.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},o.prototype.setEdge=function(){var t,e,n,o,s=!1,u=arguments[0];"object"===i(u)&&null!==u&&"v"in u?(t=u.v,e=u.w,n=u.name,2===arguments.length&&(o=arguments[1],s=!0)):(t=u,e=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],s=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var h=l(this._isDirected,t,e,n);if(r.has(this._edgeLabels,h))return s&&(this._edgeLabels[h]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[h]=s?o:this._defaultEdgeLabelFn(t,e,n);var d=c(this._isDirected,t,e,n);return t=d.v,e=d.w,Object.freeze(d),this._edgeObjs[h]=d,a(this._preds[e],t),a(this._sucs[t],e),this._in[e][h]=d,this._out[t][h]=d,this._edgeCount++,this},o.prototype.edge=function(t,e,n){var i=1===arguments.length?u(this._isDirected,arguments[0]):l(this._isDirected,t,e,n);return this._edgeLabels[i]},o.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?u(this._isDirected,arguments[0]):l(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},o.prototype.removeEdge=function(t,e,n){var i=1===arguments.length?u(this._isDirected,arguments[0]):l(this._isDirected,t,e,n),r=this._edgeObjs[i];return r&&(t=r.v,e=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this},o.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},o.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},o.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},function(t,e,n){var i=n(44)(n(31),"Map");t.exports=i},function(t,e,n){var i=n(391),r=n(398),o=n(400),a=n(401),s=n(402);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){(function(t){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(174),o="object"==i(e)&&e&&!e.nodeType&&e,a=o&&"object"==i(t)&&t&&!t.nodeType&&t,s=a&&a.exports===o&&r.process,l=function(){try{var t=a&&a.require&&a.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=l}).call(this,n(115)(t))},function(t,e,n){var i=n(85),r=n(408),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var i=n(181),r=n(182),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),i(a(t),(function(e){return o.call(t,e)})))}:r;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}},function(t,e,n){var i=n(187);t.exports=function(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var i=n(124),r=n(41);t.exports=function(t,e){return t&&i(t,e,r)}},function(t,e,n){var i=n(427)();t.exports=i},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(15),o=n(55),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=i(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||s.test(t)||!a.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var i=n(120),r=n(461);t.exports=function t(e,n,o,a,s){var l=-1,c=e.length;for(o||(o=r),s||(s=[]);++l<c;){var u=e[l];n>0&&o(u)?n>1?t(u,n-1,o,a,s):i(s,u):a||(s[s.length]=u)}return s}},function(t,e,n){var i=n(55);t.exports=function(t,e,n){for(var r=-1,o=t.length;++r<o;){var a=t[r],s=e(a);if(null!=s&&(void 0===l?s==s&&!i(s):n(s,l)))var l=s,c=a}return c}},function(t,e,n){var i=n(227),r=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=r[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=function(t){return o.indexOf(t)>-1}(s),s&&-1===r.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===r[0])n(t,e);else if(s===r[1])n(t,e),t.right2left();else if(s===r[2])n(t,e);else if(s===r[3])n(t,e),t.bottom2top();else if(s===r[4]||s===r[5]){var l=i(t,e),c=l.left,u=l.right;n(c,e),n(u,e),e.isHorizontal?c.right2left():c.bottom2top(),u.translate(c.x-u.x,c.y-u.y),t.x=c.x,t.y=u.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3);e.default=function(t,e,n){for(var r=0,o=i.default(e)?e.split("."):e;t&&r<o.length;)t=t[o[r++]];return void 0===t||r<o.length?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=o,e.clone=function(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=a,e.fromValues=s,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=l,e.multiply=c,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t},e.distance=h,e.squaredDistance=d,e.squaredLength=p,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=f,e.dot=g,e.cross=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t},e.lerp=function(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t},e.hermite=function(t,e,n,i,r,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,c=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+i[0]*c+r[0]*u,t[1]=e[1]*s+n[1]*l+i[1]*c+r[1]*u,t[2]=e[2]*s+n[2]*l+i[2]*c+r[2]*u,t},e.bezier=function(t,e,n,i,r,o){var a=1-o,s=a*a,l=o*o,c=s*a,u=3*o*s,h=3*l*a,d=l*o;return t[0]=e[0]*c+n[0]*u+i[0]*h+r[0]*d,t[1]=e[1]*c+n[1]*u+i[1]*h+r[1]*d,t[2]=e[2]*c+n[2]*u+i[2]*h+r[2]*d,t},e.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t},e.transformQuat=function(t,e,n){var i=n[0],r=n[1],o=n[2],a=n[3],s=e[0],l=e[1],c=e[2],u=r*c-o*l,h=o*s-i*c,d=i*l-r*s,p=r*d-o*h,f=o*u-i*d,g=i*h-r*u,m=2*a;return u*=m,h*=m,d*=m,p*=2,f*=2,g*=2,t[0]=s+u+p,t[1]=l+h+f,t[2]=c+d+g,t},e.rotateX=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.rotateY=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.rotateZ=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},e.angle=function(t,e){var n=s(t[0],t[1],t[2]),i=s(e[0],e[1],e[2]);f(n,n),f(i,i);var r=g(n,i);return r>1?0:r<-1?Math.PI:Math.acos(r)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))};var i,r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(104));function o(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function a(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function s(t,e,n){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function d(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function p(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function f(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function g(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.sub=l,e.mul=c,e.div=u,e.dist=h,e.sqrDist=d,e.len=a,e.sqrLen=p,e.forEach=(i=o(),function(t,e,n,r,o,a){var s=void 0,l=void 0;for(e||(e=3),n||(n=0),l=r?Math.min(r*e+n,t.length):t.length,s=n;s<l;s+=e)i[0]=t[s],i[1]=t[s+1],i[2]=t[s+2],o(i,i,a),t[s]=i[0],t[s+1]=i[1],t[s+2]=i[2];return t})},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"BrowserInfo",(function(){return r})),n.d(e,"NodeInfo",(function(){return o})),n.d(e,"SearchBotDeviceInfo",(function(){return a})),n.d(e,"BotInfo",(function(){return s})),n.d(e,"ReactNativeInfo",(function(){return l})),n.d(e,"detect",(function(){return d})),n.d(e,"browserName",(function(){return f})),n.d(e,"parseUserAgent",(function(){return g})),n.d(e,"detectOS",(function(){return m})),n.d(e,"getNodeVersion",(function(){return v}));var i=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i},r=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"},o=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform},a=function(t,e,n,i){this.name=t,this.version=e,this.os=n,this.bot=i,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},l=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],h=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?g(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!=typeof navigator?g(navigator.userAgent):v()}function p(t){return""!==t&&u.reduce((function(e,n){var i=n[0],r=n[1];if(e)return e;var o=r.exec(t);return!!o&&[i,o]}),!1)}function f(t){var e=p(t);return e?e[0]:null}function g(t){var e=p(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var l=o[1]&&o[1].split(/[._]/).slice(0,3);l?l.length<3&&(l=i(l,function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-l.length))):l=[];var u=l.join("."),h=m(t),d=c.exec(t);return d&&d[1]?new a(n,u,h,d[1]):new r(n,u,h)}function m(t){for(var e=0,n=h.length;e<n;e++){var i=h[e],r=i[0];if(i[1].exec(t))return r}return null}function v(){return void 0!==t&&t.version?new o(t.version.slice(1)):null}}.call(this,n(152))},function(t,e,n){"use strict";n.r(e),n.d(e,"mat3",(function(){return i})),n.d(e,"vec2",(function(){return N})),n.d(e,"vec3",(function(){return F})),n.d(e,"ext",(function(){return r}));var i={};n.r(i),n.d(i,"create",(function(){return a})),n.d(i,"fromMat4",(function(){return s})),n.d(i,"clone",(function(){return l})),n.d(i,"copy",(function(){return c})),n.d(i,"fromValues",(function(){return u})),n.d(i,"set",(function(){return h})),n.d(i,"identity",(function(){return d})),n.d(i,"transpose",(function(){return p})),n.d(i,"invert",(function(){return f})),n.d(i,"adjoint",(function(){return g})),n.d(i,"determinant",(function(){return m})),n.d(i,"multiply",(function(){return v})),n.d(i,"translate",(function(){return y})),n.d(i,"rotate",(function(){return b})),n.d(i,"scale",(function(){return x})),n.d(i,"fromTranslation",(function(){return w})),n.d(i,"fromRotation",(function(){return _})),n.d(i,"fromScaling",(function(){return C})),n.d(i,"fromMat2d",(function(){return A})),n.d(i,"fromQuat",(function(){return I})),n.d(i,"normalFromMat4",(function(){return S})),n.d(i,"projection",(function(){return M})),n.d(i,"str",(function(){return k})),n.d(i,"frob",(function(){return E})),n.d(i,"add",(function(){return T})),n.d(i,"subtract",(function(){return O})),n.d(i,"multiplyScalar",(function(){return P})),n.d(i,"multiplyScalarAndAdd",(function(){return j})),n.d(i,"exactEquals",(function(){return L})),n.d(i,"equals",(function(){return D})),n.d(i,"mul",(function(){return R})),n.d(i,"sub",(function(){return B}));var r={};n.r(r),n.d(r,"leftTranslate",(function(){return z})),n.d(r,"leftRotate",(function(){return V})),n.d(r,"leftScale",(function(){return G})),n.d(r,"transform",(function(){return H})),n.d(r,"direction",(function(){return W})),n.d(r,"angleTo",(function(){return U})),n.d(r,"vertical",(function(){return Z}));var o=n(6);function a(){var t=new o.a(9);return o.a!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function l(t){var e=new o.a(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function u(t,e,n,i,r,a,s,l,c){var u=new o.a(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=i,u[4]=r,u[5]=a,u[6]=s,u[7]=l,u[8]=c,u}function h(t,e,n,i,r,o,a,s,l,c){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t}function d(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function p(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function f(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=u*a-s*c,d=-u*o+s*l,p=c*o-a*l,f=n*h+i*d+r*p;return f?(f=1/f,t[0]=h*f,t[1]=(-u*i+r*c)*f,t[2]=(s*i-r*a)*f,t[3]=d*f,t[4]=(u*n-r*l)*f,t[5]=(-s*n+r*o)*f,t[6]=p*f,t[7]=(-c*n+i*l)*f,t[8]=(a*n-i*o)*f,t):null}function g(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return t[0]=a*u-s*c,t[1]=r*c-i*u,t[2]=i*s-r*a,t[3]=s*l-o*u,t[4]=n*u-r*l,t[5]=r*o-n*s,t[6]=o*c-a*l,t[7]=i*l-n*c,t[8]=n*a-i*o,t}function m(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8];return e*(c*o-a*l)+n*(-c*r+a*s)+i*(l*r-o*s)}function v(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=n[0],p=n[1],f=n[2],g=n[3],m=n[4],v=n[5],y=n[6],b=n[7],x=n[8];return t[0]=d*i+p*a+f*c,t[1]=d*r+p*s+f*u,t[2]=d*o+p*l+f*h,t[3]=g*i+m*a+v*c,t[4]=g*r+m*s+v*u,t[5]=g*o+m*l+v*h,t[6]=y*i+b*a+x*c,t[7]=y*r+b*s+x*u,t[8]=y*o+b*l+x*h,t}function y(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=d*i+p*a+c,t[7]=d*r+p*s+u,t[8]=d*o+p*l+h,t}function b(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],d=Math.sin(n),p=Math.cos(n);return t[0]=p*i+d*a,t[1]=p*r+d*s,t[2]=p*o+d*l,t[3]=p*a-d*i,t[4]=p*s-d*r,t[5]=p*l-d*o,t[6]=c,t[7]=u,t[8]=h,t}function x(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function w(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function _(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function C(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function A(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function I(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,c=n*a,u=i*a,h=i*s,d=r*a,p=r*s,f=r*l,g=o*a,m=o*s,v=o*l;return t[0]=1-h-f,t[3]=u-v,t[6]=d+m,t[1]=u+v,t[4]=1-c-f,t[7]=p-g,t[2]=d-m,t[5]=p+g,t[8]=1-c-h,t}function S(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*a,b=n*l-r*a,x=n*c-o*a,w=i*l-r*s,_=i*c-o*s,C=r*c-o*l,A=u*g-h*f,I=u*m-d*f,S=u*v-p*f,M=h*m-d*g,k=h*v-p*g,E=d*v-p*m,T=y*E-b*k+x*M+w*S-_*I+C*A;return T?(T=1/T,t[0]=(s*E-l*k+c*M)*T,t[1]=(l*S-a*E-c*I)*T,t[2]=(a*k-s*S+c*A)*T,t[3]=(r*k-i*E-o*M)*T,t[4]=(n*E-r*S+o*I)*T,t[5]=(i*S-n*k-o*A)*T,t[6]=(g*C-m*_+v*w)*T,t[7]=(m*x-f*C-v*b)*T,t[8]=(f*_-g*x+v*y)*T,t):null}function M(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function k(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function E(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function T(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function O(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function P(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function j(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t}function L(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function D(t,e){var n=t[0],i=t[1],r=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=e[0],p=e[1],f=e[2],g=e[3],m=e[4],v=e[5],y=e[6],b=e[7],x=e[8];return Math.abs(n-d)<=o.b*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(i-p)<=o.b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(r-f)<=o.b*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(a-g)<=o.b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-m)<=o.b*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(l-v)<=o.b*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(c-y)<=o.b*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-b)<=o.b*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=o.b*Math.max(1,Math.abs(h),Math.abs(x))}var R=v,B=O,N=n(105),F=n(106);function z(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.fromTranslation(r,n),i.multiply(t,r,e)}function V(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.fromRotation(r,n),i.multiply(t,r,e)}function G(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.fromScaling(r,n),i.multiply(t,r,e)}function H(t,e){for(var n,r,o,a=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,l=e.length;s<l;s++){var c=e[s];switch(c[0]){case"t":z(a,a,[c[1],c[2]]);break;case"s":G(a,a,[c[1],c[2]]);break;case"r":V(a,a,c[1]);break;case"m":n=a,r=a,o=c[1],i.multiply(n,o,r)}}return a}function W(t,e){return t[0]*e[1]-e[0]*t[1]}function U(t,e,n){var i=N.angle(t,e),r=W(t,e)>=0;return n?r?2*Math.PI-i:i:r?i:2*Math.PI-i}function Z(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){t.exports={graphlib:n(30),layout:n(485),debug:n(544),util:{time:n(20).time,notime:n(20).notime},version:n(545)}},function(t,e,n){var i={compactBox:n(546),dendrogram:n(548),indented:n(550),mindmap:n(552)};t.exports=i},function(t,e,n){(function(t){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++)n[e[i]]=Object.getOwnPropertyDescriptor(t,e[i]);return n},o=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(l(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,r=i.length,a=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n>=r)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}})),s=i[n];n<r;s=i[++n])m(s)||!w(s)?a+=" "+s:a+=" "+l(s);return a},e.deprecate=function(n,i){if(void 0!==t&&!0===t.noDeprecation)return n;if(void 0===t)return function(){return e.deprecate(n,i).apply(this,arguments)};var r=!1;return function(){if(!r){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),r=!0}return n.apply(this,arguments)}};var a,s={};function l(t,n){var i={seen:[],stylize:u};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),g(n)?i.showHidden=n:n&&e._extend(i,n),b(i.showHidden)&&(i.showHidden=!1),b(i.depth)&&(i.depth=2),b(i.colors)&&(i.colors=!1),b(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),h(i,t,i.depth)}function c(t,e){var n=l.styles[e];return n?"["+l.colors[n][0]+"m"+t+"["+l.colors[n][1]+"m":t}function u(t,e){return t}function h(t,n,i){if(t.customInspect&&n&&A(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return y(r)||(r=h(t,r,i)),r}var o=function(t,e){if(b(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return v(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),C(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(A(n)){var l=n.name?": "+n.name:"";return t.stylize("[Function"+l+"]","special")}if(x(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return t.stylize(Date.prototype.toString.call(n),"date");if(C(n))return d(n)}var c,u="",w=!1,I=["{","}"];return f(n)&&(w=!0,I=["[","]"]),A(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),x(n)&&(u=" "+RegExp.prototype.toString.call(n)),_(n)&&(u=" "+Date.prototype.toUTCString.call(n)),C(n)&&(u=" "+d(n)),0!==a.length||w&&0!=n.length?i<0?x(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=w?function(t,e,n,i,r){for(var o=[],a=0,s=e.length;a<s;++a)E(e,String(a))?o.push(p(t,e,n,i,String(a),!0)):o.push("");return r.forEach((function(r){r.match(/^\d+$/)||o.push(p(t,e,n,i,r,!0))})),o}(t,n,i,s,a):a.map((function(e){return p(t,n,i,s,e,w)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(c,u,I)):I[0]+u+I[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,i,r,o){var a,s,l;if((l=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),E(i,r)||(a="["+r+"]"),s||(t.seen.indexOf(l.value)<0?(s=m(n)?h(t,l.value,null):h(t,l.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return"  "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return"   "+t})).join("\n")):s=t.stylize("[Circular]","special")),b(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function f(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function m(t){return null===t}function v(t){return"number"==typeof t}function y(t){return"string"==typeof t}function b(t){return void 0===t}function x(t){return w(t)&&"[object RegExp]"===I(t)}function w(t){return"object"===i(t)&&null!==t}function _(t){return w(t)&&"[object Date]"===I(t)}function C(t){return w(t)&&("[object Error]"===I(t)||t instanceof Error)}function A(t){return"function"==typeof t}function I(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(b(a)&&(a=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!s[n])if(new RegExp("\\b"+n+"\\b","i").test(a)){var i=t.pid;s[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,i,t)}}else s[n]=function(){};return s[n]},e.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=f,e.isBoolean=g,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=v,e.isString=y,e.isSymbol=function(t){return"symbol"===i(t)},e.isUndefined=b,e.isRegExp=x,e.isObject=w,e.isDate=_,e.isError=C,e.isFunction=A,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===i(t)||void 0===t},e.isBuffer=n(554);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),M[t.getMonth()],e].join(" ")}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",k(),e.format.apply(e,arguments))},e.inherits=n(555),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function O(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(T&&t[T]){var e;if("function"!=typeof(e=t[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,i=new Promise((function(t,i){e=t,n=i})),r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);r.push((function(t,i){t?n(t):e(i)}));try{t.apply(this,r)}catch(t){n(t)}return i}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),T&&Object.defineProperty(e,T,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=T,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);var r=n.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return r.apply(o,arguments)};e.apply(this,n).then((function(e){t.nextTick(a,null,e)}),(function(e){t.nextTick(O,e,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}}).call(this,n(152))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(21);e.default=function(t,e){if(!i.default(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];e(o,r)&&n.push(o)}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),r=n(139);e.default=function(t,e){var n=r.default(e),o=n.length;if(i.default(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(14),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return i.default(t,(function(n,i){r.default(t)&&"prototype"===i||e.push(i)})),e};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(21),r=Array.prototype.splice;e.default=function(t,e){if(!i.default(t))return[];for(var n=t?e.length:0,o=n-1;n--;){var a=void 0,s=e[n];n!==o&&s===a||(a=s,r.call(t,s,1))}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),r=n(2);e.default=function(t){var e=[];return r.default(t,(function(t){i.default(e,t)||e.push(t)})),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(14),o=n(69);e.default=function(t,e){if(!e)return{0:t};if(!r.default(e)){var n=i.default(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}return o.default(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(14),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return i.default(t,(function(n,i){r.default(t)&&"prototype"===i||e.push(n)})),e};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={}.toString;e.default=function(t){return i.call(t).replace(/^\[object /,"").replace(/]$/,"")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},function(t,e,n){var i=n(316),r={};for(var o in i)i.hasOwnProperty(o)&&(r[i[o]]=o);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var l=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:l}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a;return s===a?e=0:i===s?e=(r-o)/l:r===s?e=2+(o-i)/l:o===s&&(e=4+(i-r)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s===a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]},a.rgb.hsv=function(t){var e,n,i,r,o,a=t[0]/255,s=t[1]/255,l=t[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),h=function(t){return(c-t)/6/u+.5};return 0===u?r=o=0:(o=u/c,e=h(a),n=h(s),i=h(l),a===c?r=i-n:s===c?r=1/3+e-i:l===c&&(r=2/3+n-e),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*c]},a.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2];return[a.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(n,i))*100,100*(i=1-1/255*Math.max(e,Math.max(n,i)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,i=t[1]/255,r=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-r)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-r-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=r[t];if(e)return e;var n,o,a,s=1/0;for(var l in i)if(i.hasOwnProperty(l)){var c=i[l],u=(o=t,a=c,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));u<s&&(s=u,n=l)}return n},a.keyword.rgb=function(t){return i[t]},a.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,i=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],i=e[1],r=e[2];return i/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.hsl.rgb=function(t){var e,n,i,r,o,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[o=255*l,o,o];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var c=0;c<3;c++)(i=a+1/3*-(c-1))<0&&i++,i>1&&i--,o=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,r[c]=255*o;return r},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,r=n,o=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,[e,100*(0===i?2*r/(o+r):2*n/(i+n)),(i+n)/2*100]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,r=Math.floor(e)%6,o=e-Math.floor(e),a=255*i*(1-n),s=255*i*(1-n*o),l=255*i*(1-n*(1-o));switch(i*=255,r){case 0:return[i,l,a];case 1:return[s,i,a];case 2:return[a,i,l];case 3:return[a,s,i];case 4:return[l,a,i];case 5:return[i,a,s]}},a.hsv.hsl=function(t){var e,n,i,r=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return i=(2-o)*a,n=o*s,[r,100*(n=(n/=(e=(2-o)*s)<=1?e:2-e)||0),100*(i/=2)]},a.hwb.rgb=function(t){var e,n,i,r,o,a,s,l=t[0]/360,c=t[1]/100,u=t[2]/100,h=c+u;switch(h>1&&(c/=h,u/=h),i=6*l-(e=Math.floor(6*l)),0!=(1&e)&&(i=1-i),r=c+i*((n=1-u)-c),e){default:case 6:case 0:o=n,a=r,s=c;break;case 1:o=r,a=n,s=c;break;case 2:o=c,a=n,s=r;break;case 3:o=c,a=r,s=n;break;case 4:o=r,a=c,s=n;break;case 5:o=n,a=c,s=r}return[255*o,255*a,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,r=t[3]/100;return[255*(1-Math.min(1,e*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},a.xyz.rgb=function(t){var e,n,i,r=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*r+1.8758*o+.0415*a,i=.0557*r+-.204*o+1.057*a,e=(e=3.2406*r+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.lab.xyz=function(t){var e,n,i,r=t[0];e=t[1]/500+(n=(r+16)/116),i=n-t[2]/200;var o=Math.pow(n,3),a=Math.pow(e,3),s=Math.pow(i,3);return n=o>.008856?o:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[e*=95.047,n*=100,i*=108.883]},a.lab.lch=function(t){var e,n=t[0],i=t[1],r=t[2];return(e=360*Math.atan2(r,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+r*r),e]},a.lch.lab=function(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],r=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(r=Math.round(r/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===r&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];return e===n&&n===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(t){var e,n=t[0]/255,i=t[1]/255,r=t[2]/255,o=Math.max(Math.max(n,i),r),a=Math.min(Math.min(n,i),r),s=o-a;return e=s<=0?0:o===n?(i-r)/s%6:o===i?2+(r-n)/s:4+(n-i)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,r=0;return(i=n<.5?2*e*n:2*e*(1-n))<1&&(r=(n-.5*i)/(1-i)),[t[0],100*i,100*r]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,r=0;return i<1&&(r=(n-i)/(1-i)),[t[0],100*i,100*r]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];var r,o=[0,0,0],a=e%1*6,s=a%1,l=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return r=(1-n)*i,[255*(n*o[0]+r),255*(n*o[1]+r),255*(n*o[2]+r)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,i=n-e,r=0;return i<1&&(r=(n-i)/(1-i)),[t[0],100*i,100*r]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e){},function(t,e){},function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length&&p())}function p(){if(!u){var t=s(d);u=!0;for(var e=c.length;e;){for(l=c,c=[];++h<e;)l&&l[h].run();h=-1,e=c.length}l=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function g(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,n){"use strict";var i=n(1),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;i<n.length;i++){var r=n[i];e.add(r.clone())}return e},e}(n(100).a);e.a=r},function(t,e,n){"use strict";var i=n(1),r=n(101),o=n(32),a=function(t){function e(e){return t.call(this,e)||this}return Object(i.__extends)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,i=t.minY,r=t.maxX,a=t.maxY;if(e){var s=Object(o.c)(e,[t.minX,t.minY]),l=Object(o.c)(e,[t.maxX,t.minY]),c=Object(o.c)(e,[t.minX,t.maxY]),u=Object(o.c)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],c[0],u[0]),r=Math.max(s[0],l[0],c[0],u[0]),i=Math.min(s[1],l[1],c[1],u[1]),a=Math.max(s[1],l[1],c[1],u[1])}var h=this.attrs;if(h.shadowColor){var d=h.shadowBlur,p=void 0===d?0:d,f=h.shadowOffsetX,g=void 0===f?0:f,m=h.shadowOffsetY,v=void 0===m?0:m,y=n-p+g,b=r+p+g,x=i-p+v,w=a+p+v;n=Math.min(n,y),r=Math.max(r,b),i=Math.min(i,x),a=Math.max(a,w)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:a,width:r-n,height:a-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),i=this.get("endArrowShape"),r=[t,e,1],o=(r=this.invertFromMatrix(r))[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(i&&i.isHit(o,a))return!0}return!1},e}(r.a);e.a=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAllowCapture=e.isParent=e.isBrowser=e.removeFromArray=void 0,e.removeFromArray=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},e.isBrowser="undefined"!=typeof window&&void 0!==window.document;var i=n(10);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return i.default}});var r=n(14);Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.default}});var o=n(3);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return o.default}});var a=n(35);Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return a.default}});var s=n(4);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return s.default}});var l=n(17);Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return l.default}});var c=n(2);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return c.default}});var u=n(49);Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return u.default}}),e.isParent=function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),i=!1;n;){if(n===t){i=!0;break}n=n.getParent()}return i},e.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var i=n(18),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var n=t.match(s);i.each(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function c(t,e,n){var i,o,a=r.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),c=a[2],u=e.getBBox();s>=0&&s<.5*Math.PI?(i={x:u.minX,y:u.minY},o={x:u.maxX,y:u.maxY}):.5*Math.PI<=s&&s<Math.PI?(i={x:u.maxX,y:u.minY},o={x:u.minX,y:u.maxY}):Math.PI<=s&&s<1.5*Math.PI?(i={x:u.maxX,y:u.maxY},o={x:u.minX,y:u.minY}):(i={x:u.minX,y:u.maxY},o={x:u.maxX,y:u.minY});var h=Math.tan(s),d=h*h,p=(o.x-i.x+h*(o.y-i.y))/(d+1)+i.x,f=h*(o.x-i.x+h*(o.y-i.y))/(d+1)+i.y,g=t.createLinearGradient(i.x,i.y,p,f);return l(c,g),g}function u(t,e,n){var i=o.exec(n),r=parseFloat(i[1]),a=parseFloat(i[2]),c=parseFloat(i[3]),u=i[4];if(0===c){var h=u.match(s);return h[h.length-1].split(":")[1]}var d=e.getBBox(),p=d.maxX-d.minX,f=d.maxY-d.minY,g=Math.sqrt(p*p+f*f)/2,m=t.createRadialGradient(d.minX+p*r,d.minY+f*a,0,d.minX+p/2,d.minY+f/2,c*g);return l(u,m),m}function h(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var i,r,o=a.exec(n),s=o[1],l=o[2];function c(){i=t.createPattern(r,s),e.set("pattern",i),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return r=new Image,l.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=l,r.complete?c():(r.onload=c,r.src=r.src),i}e.parseLineGradient=c,e.parseRadialGradient=u,e.parsePattern=h,e.parseStyle=function(t,e,n){if(i.isString(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return c(t,e,n);if("r"===n[0])return u(t,e,n);if("p"===n[0])return h(t,e,n)}return n}},e.parseRadius=function(t){var e=0,n=0,r=0,o=0;return i.isArray(t)?1===t.length?e=n=r=o=t[0]:2===t.length?(e=r=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],o=t[3]):e=n=r=o=t,[e,n,r,o]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBBoxMethod=void 0;var i=n(322);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var r=n(323),o=n(324),a=n(325),s=n(326),l=n(327),c=n(328),u=n(332),h=n(333);i.register("rect",r.default),i.register("image",r.default),i.register("circle",o.default),i.register("marker",o.default),i.register("polyline",a.default),i.register("polygon",s.default),i.register("text",l.default),i.register("path",c.default),i.register("line",u.default),i.register("ellipse",h.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assembleFont=e.getTextWidth=e.getLineSpaceing=e.getTextHeight=void 0;var i=n(155),r=n(159);function o(t,e){return e?e-t:.14*t}e.getTextHeight=function(t,e,n){var r=1;return i.isString(t)&&(r=t.split("\n").length),r>1?e*r+o(e,n)*(r-1):e},e.getLineSpaceing=o,e.getTextWidth=function(t,e){var n=r.getOffScreenContext(),o=0;if(i.isNil(t)||""===t)return o;if(n.save(),n.font=e,i.isString(t)&&t.includes("\n")){var a=t.split("\n");i.each(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o},e.assembleFont=function(t){var e=t.fontSize,n=t.fontFamily,i=t.fontWeight;return[t.fontStyle,t.fontVariant,i,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOffScreenContext=void 0;var i=null;e.getOffScreenContext=function(){if(!i){var t=document.createElement("canvas");t.width=1,t.height=1,i=t.getContext("2d")}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(40),r=n(33),o=n(161);function a(t,e,n,i){var r=1-i;return r*r*t+2*i*r*e+i*i*n}function s(t,e,n){var i=t+n-2*e;if(r.isNumberEqual(i,0))return[.5];var o=(t-e)/i;return o<=1&&o>=0?[o]:[]}function l(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function c(t,e,n,r,o,s,l){var c=a(t,n,o,l),u=a(e,r,s,l),h=i.default.pointAt(t,e,n,r,l),d=i.default.pointAt(n,r,o,s,l);return[[t,e,h.x,h.y,c,u],[c,u,d.x,d.y,o,s]]}e.default={box:function(t,e,n,i,o,l){var c=s(t,n,o)[0],u=s(e,i,l)[0],h=[t,o],d=[e,l];return void 0!==c&&h.push(a(t,n,o,c)),void 0!==u&&d.push(a(e,i,l,u)),r.getBBoxByArray(h,d)},length:function(t,e,n,i,o,a){return function t(e,n,i,o,a,s,l){if(0===l)return(r.distance(e,n,i,o)+r.distance(i,o,a,s)+r.distance(e,n,a,s))/2;var u=c(e,n,i,o,a,s,.5),h=u[0],d=u[1];return h.push(l-1),d.push(l-1),t.apply(null,h)+t.apply(null,d)}(t,e,n,i,o,a,3)},nearestPoint:function(t,e,n,i,r,s,l,c){return o.nearestPoint([t,n,r],[e,i,s],l,c,a)},pointDistance:function(t,e,n,i,o,a,s,l){var c=this.nearestPoint(t,e,n,i,o,a,s,l);return r.distance(c.x,c.y,s,l)},interpolationAt:a,pointAt:function(t,e,n,i,r,o,s){return{x:a(t,n,r,s),y:a(e,i,o,s)}},divide:function(t,e,n,i,r,o,a){return c(t,e,n,i,r,o,a)},tangentAngle:function(t,e,n,i,o,a,s){var c=l(t,n,o,s),u=l(e,i,a,s),h=Math.atan2(u,c);return r.piMod(h)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.snapLength=e.nearestPoint=void 0;var i=n(33);e.nearestPoint=function(t,e,n,r,o,a){var s,l=1/0,c=[n,r],u=20;a&&a>200&&(u=a/10);for(var h=1/u,d=h/10,p=0;p<=u;p++){var f=p*h,g=[o.apply(null,t.concat([f])),o.apply(null,e.concat([f]))];(b=i.distance(c[0],c[1],g[0],g[1]))<l&&(s=f,l=b)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var m=t.length;return{x:t[m-1],y:e[m-1]}}for(l=1/0,p=0;p<32&&!(d<1e-4);p++){var v=s-d,y=s+d,b=(g=[o.apply(null,t.concat([v])),o.apply(null,e.concat([v]))],i.distance(c[0],c[1],g[0],g[1]));if(v>=0&&b<l)s=v,l=b;else{var x=[o.apply(null,t.concat([y])),o.apply(null,e.concat([y]))],w=i.distance(c[0],c[1],x[0],x[1]);y<=1&&w<l?(s=y,l=w):d*=.5}}return{x:o.apply(null,t.concat([s])),y:o.apply(null,e.concat([s]))}},e.snapLength=function(t,e){for(var n=0,r=t.length,o=0;o<r;o++){var a=t[o],s=e[o],l=t[(o+1)%r],c=e[(o+1)%r];n+=i.distance(a,s,l,c)}return n/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(163),r=n(163),o=n(331);function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){for(var e=[],n=null,s=null,l=null,c=0,u=(t=o.default(t)).length,h=0;h<u;h++){var d=t[h];s=t[h+1];var p=d[0],f={command:p,prePoint:n,params:d,startTangent:null,endTangent:null};switch(p){case"M":l=[d[1],d[2]],c=h;break;case"A":var g=i.default(n,d);f.arcParams=g}if("Z"===p)n=l,s=t[c+1];else{var m=d.length;n=[d[m-2],d[m-1]]}s&&"Z"===s[0]&&(s=t[c],e[c]&&(e[c].prePoint=n)),f.currentPoint=n,e[c]&&r.isSamePoint(n,e[c].currentPoint)&&(e[c].prePoint=f.prePoint);var v=s?[s[s.length-2],s[s.length-1]]:null;f.nextPoint=v;var y=f.prePoint;if(["L","H","V"].includes(p))f.startTangent=[y[0]-n[0],y[1]-n[1]],f.endTangent=[n[0]-y[0],n[1]-y[1]];else if("Q"===p){var b=[d[1],d[2]];f.startTangent=[y[0]-b[0],y[1]-b[1]],f.endTangent=[n[0]-b[0],n[1]-b[1]]}else if("T"===p)b=a((_=e[h-1]).currentPoint,y),"Q"===_.command?(f.command="Q",f.startTangent=[y[0]-b[0],y[1]-b[1]],f.endTangent=[n[0]-b[0],n[1]-b[1]]):(f.command="TL",f.startTangent=[y[0]-n[0],y[1]-n[1]],f.endTangent=[n[0]-y[0],n[1]-y[1]]);else if("C"===p){var x=[d[1],d[2]],w=[d[3],d[4]];f.startTangent=[y[0]-x[0],y[1]-x[1]],f.endTangent=[n[0]-w[0],n[1]-w[1]]}else if("S"===p){var _;x=a((_=e[h-1]).currentPoint,y),w=[d[1],d[2]],"C"===_.command?(f.command="C",f.startTangent=[y[0]-x[0],y[1]-x[1]],f.endTangent=[n[0]-w[0],n[1]-w[1]]):(f.command="SQ",f.startTangent=[y[0]-w[0],y[1]-w[1]],f.endTangent=[n[0]-w[0],n[1]-w[1]])}else if("A"===p){var C=.001,A=f.arcParams||{},I=A.cx,S=void 0===I?0:I,M=A.cy,k=void 0===M?0:M,E=A.rx,T=void 0===E?0:E,O=A.ry,P=void 0===O?0:O,j=A.sweepFlag,L=void 0===j?0:j,D=A.startAngle,R=void 0===D?0:D,B=A.endAngle,N=void 0===B?0:B;0===L&&(C*=-1);var F=T*Math.cos(R-C)+S,z=P*Math.sin(R-C)+k;f.startTangent=[F-l[0],z-l[1]];var V=T*Math.cos(R+N+C)+S,G=P*Math.sin(R+N-C)+k;f.endTangent=[y[0]-V,y[1]-G]}e.push(f)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(67),r=n(68);function o(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return o(t)*o(e)?(t[0]*e[0]+t[1]*e[1])/(o(t)*o(e)):1}function s(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}function l(t,e){return t[0]===e[0]&&t[1]===e[1]}e.isSamePoint=l,e.default=function(t,e){var n=e[1],o=e[2],c=i.default(r.default(e[3]),2*Math.PI),u=e[4],h=e[5],d=t[0],p=t[1],f=e[6],g=e[7],m=Math.cos(c)*(d-f)/2+Math.sin(c)*(p-g)/2,v=-1*Math.sin(c)*(d-f)/2+Math.cos(c)*(p-g)/2,y=m*m/(n*n)+v*v/(o*o);y>1&&(n*=Math.sqrt(y),o*=Math.sqrt(y));var b=n*n*(v*v)+o*o*(m*m),x=b?Math.sqrt((n*n*(o*o)-b)/b):1;u===h&&(x*=-1),isNaN(x)&&(x=0);var w=o?x*n*v/o:0,_=n?x*-o*m/n:0,C=(d+f)/2+Math.cos(c)*w-Math.sin(c)*_,A=(p+g)/2+Math.sin(c)*w+Math.cos(c)*_,I=[(m-w)/n,(v-_)/o],S=[(-1*m-w)/n,(-1*v-_)/o],M=s([1,0],I),k=s(I,S);return a(I,S)<=-1&&(k=Math.PI),a(I,S)>=1&&(k=0),0===h&&k>0&&(k-=2*Math.PI),1===h&&k<0&&(k+=2*Math.PI),{cx:C,cy:A,rx:l(t,[f,g])?0:n,ry:l(t,[f,g])?0:o,startAngle:M,endAngle:M+k,xRotation:c,arcFlag:u,sweepFlag:h}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(43),o=n(73),a=n(60),s=n(0),l=n(18),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onCanvasChange=function(t){a.refreshElement(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),a.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];s.each(t,(function(t){var i=t.cfg.cacheCanvasBBox;i&&t.cfg.isInView&&(e.push(i.minX,i.maxX),n.push(i.minY,i.maxY))}));var i=null;if(e.length){var r=Math.min.apply(null,e),o=Math.max.apply(null,e),a=Math.min.apply(null,n),c=Math.max.apply(null,n);i={minX:r,minY:a,x:r,y:a,maxX:o,maxY:c,width:o-r,height:c-a};var u=this.cfg.canvas;if(u){var h=u.getViewRange();this.set("isInView",l.intersectRect(i,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(t,e){var n=this.cfg.children,i=!e||this.cfg.refresh;n.length&&i&&(t.save(),a.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),a.drawChildren(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(r.AbstractGroup);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(339),r=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){var e=i.default(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a<e.length;a++){var s=e[a][0];if(r.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break}}if(!n)return e;var l=[],c=0,u=0,h=0,d=0,p=0,f=e[0];"M"!==f[0]&&"m"!==f[0]||(h=c=+f[1],d=u=+f[2],p++,l[0]=["M",c,u]),a=p;for(var g=e.length;a<g;a++){var m=e[a],v=l[a-1],y=[],b=(s=m[0]).toUpperCase();if(s!==b)switch(y[0]=b,b){case"A":y[1]=m[1],y[2]=m[2],y[3]=m[3],y[4]=m[4],y[5]=m[5],y[6]=+m[6]+c,y[7]=+m[7]+u;break;case"V":y[1]=+m[1]+u;break;case"H":y[1]=+m[1]+c;break;case"M":h=+m[1]+c,d=+m[2]+u;break;default:for(var x=1,w=m.length;x<w;x++)y[x]=+m[x]+(x%2?c:u)}else y=e[a];switch(b){case"Z":c=+h,u=+d;break;case"H":y=["L",c=y[1],u];break;case"V":y=["L",c,u=y[1]];break;case"T":c=y[1],u=y[2];var _=o([v[1],v[2]],[v[3],v[4]]);y=["Q",_[0],_[1],c,u];break;case"S":c=y[y.length-2],u=y[y.length-1];var C=v.length,A=o([v[C-4],v[C-3]],[v[C-2],v[C-1]]);y=["C",A[0],A[1],y[1],y[2],c,u];break;case"M":h=y[y.length-2],d=y[y.length-1];break;default:c=y[y.length-2],u=y[y.length-1]}l.push(y)}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(159);e.default=function(t,e,n){var r=i.getOffScreenContext();return t.createPath(r),r.isPointInPath(e,n)}},function(t,e,n){"use strict";function i(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function r(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s<a;s++){var l=t[s],c=t[(s+1)%a];if(r(l,c,[e,n]))return!0;i(l[1]-n)>0!=i(c[1]-n)>0&&i(e-(n-l[1])*(l[0]-c[0])/(l[1]-c[1])-l[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18);e.default=function(t,e,n,r,o,a,s,l){var c=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(c<r||c>o)return!1;var u={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return i.distance(u.x,u.y,s,l)<=a/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(75);e.default=function(t,e,n,r,o){var a=t.length;if(a<2)return!1;for(var s=0;s<a-1;s++){var l=t[s][0],c=t[s][1],u=t[s+1][0],h=t[s+1][1];if(i.default(l,c,u,h,e,n,r))return!0}if(o){var d=t[0],p=t[a-1];if(i.default(d[0],d[1],p[0],p[1],e,n,r))return!0}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(344),r=n(33);e.default={box:function(t){for(var e=[],n=[],i=0;i<t.length;i++){var o=t[i];e.push(o[0]),n.push(o[1])}return r.getBBoxByArray(e,n)},length:function(t){return i.lengthOfSegment(t)},pointAt:function(t,e){return i.pointAtSegments(t,e)},pointDistance:function(t,e,n){return i.distanceAtSegment(t,e,n)},tangentAngle:function(t,e){return i.angleAtSegments(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(43),o=n(0),a=n(110),s=n(109),l=n(61),c=n(19),u=n(29),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=u.createSVGElement("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.createPath(i,e)}},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),l.setClip(this,t),this.createPath(t),e.length&&s.drawChildren(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");o.each(e||n,(function(t,e){c.SVG_ATTR_MAP[e]&&i.setAttribute(c.SVG_ATTR_MAP[e],t)})),l.setTransform(this)},e}(r.AbstractGroup);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(16);i.translate=function(t,e,n){var r=new Array(9);return i.fromTranslation(r,n),i.multiply(t,r,e)},i.rotate=function(t,e,n){var r=new Array(9);return i.fromRotation(r,n),i.multiply(t,r,e)},i.scale=function(t,e,n){var r=new Array(9);return i.fromScaling(r,n),i.multiply(t,r,e)},i.transform=function(t,e){for(var n=[].concat(t),r=0,o=e.length;r<o;r++){var a=e[r];switch(a[0]){case"t":i.translate(n,n,[a[1],a[2]]);break;case"s":i.scale(n,n,[a[1],a[2]]);break;case"r":i.rotate(n,n,a[1])}}return n},e.default=i},function(t,e,n){var i=n(76),r=n(114),o=n(81),a=n(403),s=n(409),l=n(179),c=n(180),u=n(412),h=n(413),d=n(184),p=n(414),f=n(54),g=n(418),m=n(419),v=n(189),y=n(15),b=n(53),x=n(423),w=n(25),_=n(425),C=n(41),A=n(46),I={};I["[object Arguments]"]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I["[object Object]"]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I["[object Function]"]=I["[object WeakMap]"]=!1,t.exports=function t(e,n,S,M,k,E){var T,O=1&n,P=2&n,j=4&n;if(S&&(T=k?S(e,M,k,E):S(e)),void 0!==T)return T;if(!w(e))return e;var L=y(e);if(L){if(T=g(e),!O)return c(e,T)}else{var D=f(e),R="[object Function]"==D||"[object GeneratorFunction]"==D;if(b(e))return l(e,O);if("[object Object]"==D||"[object Arguments]"==D||R&&!k){if(T=P||R?{}:v(e),!O)return P?h(e,s(T,e)):u(e,a(T,e))}else{if(!I[D])return k?e:{};T=m(e,D,O)}}E||(E=new i);var B=E.get(e);if(B)return B;E.set(e,T),_(e)?e.forEach((function(i){T.add(t(i,n,S,i,e,E))})):x(e)&&e.forEach((function(i,r){T.set(r,t(i,n,S,r,e,E))}));var N=L?void 0:(j?P?p:d:P?A:C)(e);return r(N||e,(function(i,r){N&&(i=e[r=i]),o(T,r,t(i,n,S,r,e,E))})),T}},function(t,e,n){(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e;t.exports=i}).call(this,n(385))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var i=n(44),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e,n){var i=n(404),r=n(64),o=n(15),a=n(53),s=n(83),l=n(65),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),u=!n&&r(t),h=!n&&!u&&a(t),d=!n&&!u&&!h&&l(t),p=n||u||h||d,f=p?i(t.length,String):[],g=f.length;for(var m in t)!e&&!c.call(t,m)||p&&("length"==m||h&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){(function(t){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(31),o="object"==i(e)&&e&&!e.nodeType&&e,a=o&&"object"==i(t)&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,i=l?l(n):new t.constructor(n);return t.copy(i),i}}).call(this,n(115)(t))},function(t,e){t.exports=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var i=n(120),r=n(86),o=n(119),a=n(182),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,o(t)),t=r(t);return e}:a;t.exports=s},function(t,e,n){var i=n(185),r=n(119),o=n(41);t.exports=function(t){return i(t,o,r)}},function(t,e,n){var i=n(120),r=n(15);t.exports=function(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}},function(t,e,n){var i=n(44)(n(31),"Set");t.exports=i},function(t,e,n){var i=n(31).Uint8Array;t.exports=i},function(t,e,n){var i=n(121);t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var i=n(190),r=n(86),o=n(85);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:i(r(t))}},function(t,e,n){var i=n(25),r=Object.create,o=function(){function t(){}return function(e){if(!i(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){t.exports=n(192)},function(t,e,n){var i=n(114),r=n(87),o=n(193),a=n(15);t.exports=function(t,e){return(a(t)?i:r)(t,o(e))}},function(t,e,n){var i=n(47);t.exports=function(t){return"function"==typeof t?t:i}},function(t,e,n){var i=n(181),r=n(429),o=n(39),a=n(15);t.exports=function(t,e){return(a(t)?i:r)(t,o(e,3))}},function(t,e,n){var i=n(432),r=n(34);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!r(e)&&!r(n)?e!=e&&n!=n:i(e,n,o,a,t,s))}},function(t,e,n){var i=n(197),r=n(435),o=n(198);t.exports=function(t,e,n,a,s,l){var c=1&n,u=t.length,h=e.length;if(u!=h&&!(c&&h>u))return!1;var d=l.get(t),p=l.get(e);if(d&&p)return d==e&&p==t;var f=-1,g=!0,m=2&n?new i:void 0;for(l.set(t,e),l.set(e,t);++f<u;){var v=t[f],y=e[f];if(a)var b=c?a(y,v,f,e,t,l):a(v,y,f,t,e,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!r(e,(function(t,e){if(!o(m,e)&&(v===t||s(v,t,n,a,l)))return m.push(e)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(t),l.delete(e),g}},function(t,e,n){var i=n(113),r=n(433),o=n(434);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=r,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var i=n(25);t.exports=function(t){return t==t&&!i(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){var i=n(445);t.exports=function(t){return null==t?"":i(t)}},function(t,e,n){var i=n(446),r=n(203);t.exports=function(t,e){return null!=t&&r(t,e,i)}},function(t,e,n){var i=n(89),r=n(64),o=n(15),a=n(83),s=n(116),l=n(66);t.exports=function(t,e,n){for(var c=-1,u=(e=i(e,t)).length,h=!1;++c<u;){var d=l(e[c]);if(!(h=null!=t&&n(t,d)))break;t=t[d]}return h||++c!=u?h:!!(u=null==t?0:t.length)&&s(u)&&a(d,u)&&(o(t)||r(t))}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var i=n(449),r=n(203);t.exports=function(t,e){return null!=t&&r(t,e,i)}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var i=n(90),r=n(39),o=n(208),a=n(15);t.exports=function(t,e){return(a(t)?i:o)(t,r(e,3))}},function(t,e,n){var i=n(87),r=n(38);t.exports=function(t,e){var n=-1,o=r(t)?Array(t.length):[];return i(t,(function(t,i,r){o[++n]=e(t,i,r)})),o}},function(t,e,n){var i=n(451),r=n(87),o=n(39),a=n(452),s=n(15);t.exports=function(t,e,n){var l=s(t)?i:a,c=arguments.length<3;return l(t,o(e,4),n,c,r)}},function(t,e,n){var i=n(462),r=Math.max;t.exports=function(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=r(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(l),i(t,this,c)}}},function(t,e,n){var i=n(463),r=n(464)(i);t.exports=r},function(t,e){t.exports=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var i=n(38),r=n(34);t.exports=function(t){return r(t)&&i(t)}},function(t,e,n){var i=n(473),r=n(41);t.exports=function(t){return null==t?[]:i(t,r(t))}},function(t,e,n){var i=n(24),r=n(216);t.exports=function(t,e,n,i){return function(t,e,n,i){var o,a,s={},l=new r,c=function(t){var e=t.v!==o?t.v:t.w,i=s[e],r=n(t),c=a.distance+r;if(r<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+r);c<i.distance&&(i.distance=c,i.predecessor=o,l.decrease(e,c))};for(t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},l.add(t,n)}));l.size()>0&&(o=l.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)i(o).forEach(c);return s}(t,String(e),n||o,i||function(e){return t.outEdges(e)})};var o=i.constant(1)},function(t,e,n){var i=n(24);function r(){this._arr=[],this._keyIndices={}}t.exports=r,r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},r.prototype.has=function(t){return i.has(this._keyIndices,t)},r.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},r.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},r.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!i.has(n,t)){var r=this._arr,o=r.length;return n[t]=o,r.push({key:t,priority:e}),this._decrease(o),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},r.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},r.prototype._heapify=function(t){var e=this._arr,n=2*t,i=n+1,r=t;n<e.length&&(r=e[n].priority<e[r].priority?n:r,i<e.length&&(r=e[i].priority<e[r].priority?i:r),r!==t&&(this._swap(t,r),this._heapify(r)))},r.prototype._decrease=function(t){for(var e,n=this._arr,i=n[t].priority;0!==t&&!(n[e=t>>1].priority<i);)this._swap(t,e),t=e},r.prototype._swap=function(t,e){var n=this._arr,i=this._keyIndices,r=n[t],o=n[e];n[t]=o,n[e]=r,i[o.key]=t,i[r.key]=e}},function(t,e,n){var i=n(24);t.exports=function(t){var e=0,n=[],r={},o=[];return t.nodes().forEach((function(a){i.has(r,a)||function a(s){var l=r[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){i.has(r,t)?r[t].onStack&&(l.lowlink=Math.min(l.lowlink,r[t].index)):(a(t),l.lowlink=Math.min(l.lowlink,r[t].lowlink))})),l.lowlink===l.index){var c,u=[];do{c=n.pop(),r[c].onStack=!1,u.push(c)}while(s!==c);o.push(u)}}(a)})),o}},function(t,e,n){var i=n(24);function r(t){var e={},n={},r=[];if(i.each(t.sinks(),(function a(s){if(i.has(n,s))throw new o;i.has(e,s)||(n[s]=!0,e[s]=!0,i.each(t.predecessors(s),a),delete n[s],r.push(s))})),i.size(e)!==t.nodeCount())throw new o;return r}function o(){}t.exports=r,r.CycleException=o,o.prototype=new Error},function(t,e,n){var i=n(24);t.exports=function(t,e,n){i.isArray(e)||(e=[e]);var r=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],a={};return i.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,r,o,a,s){i.has(o,n)||(o[n]=!0,r||s.push(n),i.each(a(n),(function(n){t(e,n,r,o,a,s)})),r&&s.push(n))}(t,e,"post"===n,a,r,o)})),o}},function(t,e,n){var i=n(492);t.exports=function(t){return t?(t=i(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var i=n(127);t.exports=function(t){return null!=t&&t.length?i(t,1):[]}},function(t,e,n){var i=n(82),r=n(51);t.exports=function(t,e,n){(void 0!==n&&!r(t[e],n)||void 0===n&&!(e in t))&&i(t,e,n)}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,n){"use strict";var i=n(13),r=n(30).Graph,o=n(93).slack;function a(t,e){return i.forEach(t.nodes(),(function n(r){i.forEach(e.nodeEdges(r),(function(i){var a=i.v,s=r===a?i.w:a;t.hasNode(s)||o(e,i)||(t.setNode(s,{}),t.setEdge(r,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return i.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function l(t,e,n){i.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,i=new r({directed:!1}),c=t.nodes()[0],u=t.nodeCount();for(i.setNode(c,{});a(i,t)<u;)e=s(i,t),n=i.hasNode(e.v)?o(t,e):-o(t,e),l(i,t,n);return i}},function(t,e,n){var i=n(48),r={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function o(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var i=e.getHGap(t),r=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(i,r),n}i.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e}))},right2left:function(){var t=this.getBoundingBox();this.eachNode((function(e){e.x=e.x-2*(e.x-t.left)-e.width})),this.translate(t.width,0)},bottom2top:function(){var t=this.getBoundingBox();this.eachNode((function(e){e.y=e.y-2*(e.y-t.top)-e.height})),this.translate(0,t.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=i.assign({},r,e)),l=[s];if(!n&&!t.collapsed)for(;a=l.shift();)if(!a.data.collapsed){var c=e.getChildren(a.data),u=c?c.length:0;if(a.children=new Array(u),c&&u)for(var h=0;h<u;h++){var d=new o(c[h],e);a.children[h]=d,l.push(d),d.parent=a,d.depth=a.depth+1}}return s}},function(t,e,n){var i=n(226);t.exports=function(t,e){for(var n=i(t.data,e,!0),r=i(t.data,e,!0),o=t.children.length,a=Math.round(o/2),s=e.getSide||function(t,e){return e<a?"right":"left"},l=0;l<o;l++){var c=t.children[l];"right"===s(c,l)?r.children.push(c):n.children.push(c)}return n.eachNode((function(t){t.isRoot()||(t.side="left")})),r.eachNode((function(t){t.isRoot()||(t.side="right")})),{left:n,right:r}}},function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"easeLinear",(function(){return M})),n.d(i,"easeQuad",(function(){return T})),n.d(i,"easeQuadIn",(function(){return k})),n.d(i,"easeQuadOut",(function(){return E})),n.d(i,"easeQuadInOut",(function(){return T})),n.d(i,"easeCubic",(function(){return j})),n.d(i,"easeCubicIn",(function(){return O})),n.d(i,"easeCubicOut",(function(){return P})),n.d(i,"easeCubicInOut",(function(){return j})),n.d(i,"easePoly",(function(){return R})),n.d(i,"easePolyIn",(function(){return L})),n.d(i,"easePolyOut",(function(){return D})),n.d(i,"easePolyInOut",(function(){return R})),n.d(i,"easeSin",(function(){return V})),n.d(i,"easeSinIn",(function(){return F})),n.d(i,"easeSinOut",(function(){return z})),n.d(i,"easeSinInOut",(function(){return V})),n.d(i,"easeExp",(function(){return U})),n.d(i,"easeExpIn",(function(){return H})),n.d(i,"easeExpOut",(function(){return W})),n.d(i,"easeExpInOut",(function(){return U})),n.d(i,"easeCircle",(function(){return X})),n.d(i,"easeCircleIn",(function(){return Z})),n.d(i,"easeCircleOut",(function(){return Y})),n.d(i,"easeCircleInOut",(function(){return X})),n.d(i,"easeBounce",(function(){return Q})),n.d(i,"easeBounceIn",(function(){return K})),n.d(i,"easeBounceOut",(function(){return Q})),n.d(i,"easeBounceInOut",(function(){return J})),n.d(i,"easeBack",(function(){return et})),n.d(i,"easeBackIn",(function(){return $})),n.d(i,"easeBackOut",(function(){return tt})),n.d(i,"easeBackInOut",(function(){return et})),n.d(i,"easeElastic",(function(){return rt})),n.d(i,"easeElasticIn",(function(){return it})),n.d(i,"easeElasticOut",(function(){return rt})),n.d(i,"easeElasticInOut",(function(){return ot}));var r=n(1),o=n(132),a=n(100),s=n(9),l=n(0);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u,h,d=0,p=0,f=0,g=0,m=0,v=0,y="object"===("undefined"==typeof performance?"undefined":c(performance))&&performance.now?performance:Date,b="object"===("undefined"==typeof window?"undefined":c(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function x(){return m||(b(w),m=y.now()+v)}function w(){m=0}function _(){this._call=this._time=this._next=null}function C(t,e,n){var i=new _;return i.restart(t,e,n),i}function A(){m=(g=y.now())+v,d=p=0;try{!function(){x(),++d;for(var t,e=u;e;)(t=m-e._time)>=0&&e._call.call(null,t),e=e._next;--d}()}finally{d=0,function(){for(var t,e,n=u,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:u=e);h=t,S(i)}(),m=0}}function I(){var t=y.now(),e=t-g;e>1e3&&(v-=e,g=t)}function S(t){d||(p&&(p=clearTimeout(p)),t-m>24?(t<1/0&&(p=setTimeout(A,t-y.now()-v)),f&&(f=clearInterval(f))):(f||(g=y.now(),f=setInterval(I,1e3)),d=1,b(A)))}function M(t){return+t}function k(t){return t*t}function E(t){return t*(2-t)}function T(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function O(t){return t*t*t}function P(t){return--t*t*t+1}function j(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}_.prototype=C.prototype={constructor:_,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?x():+n)+(null==e?0:+e),this._next||h===this||(h?h._next=this:u=this,h=this),this._call=t,this._time=n,S()},stop:function(){this._call&&(this._call=null,this._time=1/0,S())}};var L=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),D=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),R=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),B=Math.PI,N=B/2;function F(t){return 1==+t?1:1-Math.cos(t*N)}function z(t){return Math.sin(t*N)}function V(t){return(1-Math.cos(B*t))/2}function G(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function H(t){return G(1-+t)}function W(t){return 1-G(t)}function U(t){return((t*=2)<=1?G(1-t):2-G(t-1))/2}function Z(t){return 1-Math.sqrt(1-t*t)}function Y(t){return Math.sqrt(1- --t*t)}function X(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var q=7.5625;function K(t){return 1-Q(1-t)}function Q(t){return(t=+t)<4/11?q*t*t:t<8/11?q*(t-=6/11)*t+.75:t<10/11?q*(t-=9/11)*t+.9375:q*(t-=21/22)*t+63/64}function J(t){return((t*=2)<=1?1-Q(1-t):Q(t-1)+1)/2}var $=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),tt=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),et=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),nt=2*Math.PI,it=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=nt);function r(t){return e*G(- --t)*Math.sin((i-t)/n)}return r.amplitude=function(e){return t(e,n*nt)},r.period=function(n){return t(e,n)},r}(1,.3),rt=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=nt);function r(t){return 1-e*G(t=+t)*Math.sin((t+i)/n)}return r.amplitude=function(e){return t(e,n*nt)},r.period=function(n){return t(e,n)},r}(1,.3),ot=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=nt);function r(t){return((t=2*t-1)<0?e*G(-t)*Math.sin((i-t)/n):2-e*G(t)*Math.sin((i+t)/n))/2}return r.amplitude=function(e){return t(e,n*nt)},r.period=function(n){return t(e,n)},r}(1,.3),at=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function st(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function lt(){}var ct="\\s*([+-]?\\d+)\\s*",ut="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ht="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dt=/^#([0-9a-f]{3,8})$/,pt=new RegExp("^rgb\\("+[ct,ct,ct]+"\\)$"),ft=new RegExp("^rgb\\("+[ht,ht,ht]+"\\)$"),gt=new RegExp("^rgba\\("+[ct,ct,ct,ut]+"\\)$"),mt=new RegExp("^rgba\\("+[ht,ht,ht,ut]+"\\)$"),vt=new RegExp("^hsl\\("+[ut,ht,ht]+"\\)$"),yt=new RegExp("^hsla\\("+[ut,ht,ht,ut]+"\\)$"),bt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function xt(){return this.rgb().formatHex()}function wt(){return this.rgb().formatRgb()}function _t(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=dt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ct(e):3===n?new Mt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?At(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?At(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=pt.exec(t))?new Mt(e[1],e[2],e[3],1):(e=ft.exec(t))?new Mt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=gt.exec(t))?At(e[1],e[2],e[3],e[4]):(e=mt.exec(t))?At(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=vt.exec(t))?Ot(e[1],e[2]/100,e[3]/100,1):(e=yt.exec(t))?Ot(e[1],e[2]/100,e[3]/100,e[4]):bt.hasOwnProperty(t)?Ct(bt[t]):"transparent"===t?new Mt(NaN,NaN,NaN,0):null}function Ct(t){return new Mt(t>>16&255,t>>8&255,255&t,1)}function At(t,e,n,i){return i<=0&&(t=e=n=NaN),new Mt(t,e,n,i)}function It(t){return t instanceof lt||(t=_t(t)),t?new Mt((t=t.rgb()).r,t.g,t.b,t.opacity):new Mt}function St(t,e,n,i){return 1===arguments.length?It(t):new Mt(t,e,n,null==i?1:i)}function Mt(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function kt(){return"#"+Tt(this.r)+Tt(this.g)+Tt(this.b)}function Et(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Tt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ot(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new jt(t,e,n,i)}function Pt(t){if(t instanceof jt)return new jt(t.h,t.s,t.l,t.opacity);if(t instanceof lt||(t=_t(t)),!t)return new jt;if(t instanceof jt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,l=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=l<.5?o+r:2-o-r,a*=60):s=l>0&&l<1?0:a,new jt(a,s,l,t.opacity)}function jt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Lt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Dt(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}at(lt,_t,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:xt,formatHex:xt,formatHsl:function(){return Pt(this).formatHsl()},formatRgb:wt,toString:wt}),at(Mt,St,st(lt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Mt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Mt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kt,formatHex:kt,formatRgb:Et,toString:Et})),at(jt,(function(t,e,n,i){return 1===arguments.length?Pt(t):new jt(t,e,n,null==i?1:i)}),st(lt,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new jt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new jt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Mt(Lt(t>=240?t-240:t+120,r,i),Lt(t,r,i),Lt(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Rt=function(t){return function(){return t}};function Bt(t,e){return function(n){return t+n*e}}function Nt(t){return 1==(t=+t)?Ft:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Rt(isNaN(e)?n:e)}}function Ft(t,e){var n=e-t;return n?Bt(t,n):Rt(isNaN(t)?e:t)}var zt=function t(e){var n=Nt(e);function i(t,e){var i=n((t=St(t)).r,(e=St(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=Ft(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function Vt(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=St(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}Vt((function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=i<e-1?t[i+2]:2*o-r;return Dt((n-i/e)*e,a,r,o,s)}})),Vt((function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return Dt((n-i/e)*e,r,o,a,s)}}));var Gt=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}};function Ht(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Wt(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=$t(t[n],e[n]);for(;n<i;++n)a[n]=e[n];return function(t){for(n=0;n<r;++n)a[n]=o[n](t);return a}}var Ut=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},Zt=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}};function Yt(t){return(Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Xt=function(t,e){var n,i={},r={};for(n in null!==t&&"object"===Yt(t)||(t={}),null!==e&&"object"===Yt(e)||(e={}),e)n in t?i[n]=$t(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}},qt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kt=new RegExp(qt.source,"g"),Qt=function(t,e){var n,i,r,o=qt.lastIndex=Kt.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=qt.exec(t))&&(i=Kt.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:Zt(n,i)})),o=Kt.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)s[(n=l[i]).i]=n.x(t);return s.join("")})};function Jt(t){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var $t=function(t,e){var n,i=Jt(e);return null==e||"boolean"===i?Rt(e):("number"===i?Zt:"string"===i?(n=_t(e))?(e=n,zt):Qt:e instanceof _t?zt:e instanceof Date?Ut:Ht(e)?Gt:Array.isArray(e)?Wt:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Xt:Zt)(t,e)},te=n(37),ee=[1,0,0,0,1,0,0,0,1];function ne(t,e,n){var r,o=e.startTime;if(n<o+e.delay||e._paused)return!1;var a=e.duration,s=e.easing;if(n=n-o-e.delay,e.repeat)r=n%a/a,r=i[s](r);else{if(!((r=n/a)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=i[s](r)}if(e.onFrame){var c=e.onFrame(r);t.attr(c)}else!function(t,e,n){var i={},r=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a,s,c,u;for(var h in o)if(!Object(l.isEqual)(r[h],o[h]))if("path"===h){var d=o[h],p=r[h];d.length>p.length?(d=te.parsePathString(o[h]),p=te.parsePathString(r[h]),p=te.fillPathByDiff(p,d),p=te.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d):e.pathFormatted||(d=te.parsePathString(o[h]),p=te.parsePathString(r[h]),p=te.formatPath(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),i[h]=[];for(var f=0;f<d.length;f++){for(var g=d[f],m=p[f],v=[],y=0;y<g.length;y++)Object(l.isNumber)(g[y])&&m&&Object(l.isNumber)(m[y])?(a=$t(m[y],g[y]),v.push(a(n))):v.push(g[y]);i[h].push(v)}}else if("matrix"===h){var b=(c=r[h]||ee,(Ht(u=o[h]||ee)?Gt:Wt)(c,u))(n);i[h]=b}else["fill","stroke","fillStyle","strokeStyle"].includes(h)&&(s=o[h],/^[r,R,L,l]{1}[\s]*\(/.test(s))?i[h]=o[h]:Object(l.isFunction)(o[h])||(a=$t(r[h],o[h]),i[h]=a(n));t.attr(i)}}(t,e,r);return!1}var ie=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,i=this;this.timer=C((function(r){if(i.current=r,i.animators.length>0){for(var o=i.animators.length-1;o>=0;o--)if((t=i.animators[o]).destroyed)i.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],ne(t,n,r)&&(e.splice(a,1),n.callback&&n.callback());0===e.length&&i.removeAnimator(o)}i.canvas.get("autoDraw")||i.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),re=n(96),oe=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ae(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function se(t,e,n){if(n.bubbles){var i=void 0,r=!1;if("mouseenter"===e?(i=n.fromShape,r=!0):"mouseleave"===e&&(r=!0,i=n.toShape),t.isCanvas()&&r)return;if(i&&Object(s.g)(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var le=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(s.a)(oe,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(s.a)(oe,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,r,o){var a=new re.a(t,e);return a.fromShape=r,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(i),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),i=e.getPointByEvent(t);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),i=this._getShape(n,e),r=this["_on"+t],o=!1;if(r)r.call(this,n,i,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,i),i&&this._emitEvent(t,e,n,i,null,i),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(o||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,i){var r=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,e,n,n,i),this._emitEvent("mouseleave",t,e,n,n,i),i&&!i.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,e,i,n,i),this._emitEvent("mouseenter",t,e,i,n,i)))},t.prototype._emitDragoverEvents=function(t,e,n,i,r){i?(i!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,i),this._emitEvent("dragenter",t,e,i,n,i)),r||this._emitEvent("dragover",t,e,i)):n&&this._emitEvent("dragleave",t,e,n,n,i),r&&this._emitEvent("dragover",t,e,i)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(e,n);i!==t&&this._emitMouseoverEvents(n,e,t,i),this.currentShape=i},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,t,i,e,!0)},t.prototype._onmousemove=function(t,e,n){var i=this.canvas,r=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=n.timeStamp-this.mousedownTimeStamp,c=a.clientX-t.clientX,u=a.clientY-t.clientY;l>120||c*c+u*u>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,i,r,o){var a=this._getEventObj(t,e,n,i,r,o);if(i){a.shape=i,ae(i,t,a);for(var s=i.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||se(s,t,a),a.propagationPath.push(s),s=s.getParent()}else ae(this.canvas,t,a)},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),ce=Object(o.detect)(),ue=ce&&"firefox"===ce.name,he=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(s.h)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new le({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new ie(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.c&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.c&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(ue&&!Object(s.e)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(s.e)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,i=e.y;return this.getPointByClient(n,i)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(a.a);e.a=he},function(t){t.exports=JSON.parse('{"a":"3.8.5"}')},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=i},function(t,e,n){"use strict";t.exports=function(t,e,n,i){try{try{var r;try{r=new window.Blob([t])}catch(e){(r=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder)).append(t),r=r.getBlob()}var o=window.URL||window.webkitURL,a=o.createObjectURL(r),s=new window[e](a,n);return o.revokeObjectURL(a),s}catch(i){return new window[e]("data:application/javascript,".concat(encodeURIComponent(t)),n)}}catch(t){if(!i)throw Error("Inline worker is not supported");return new window[e](i,n)}}},,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(137),r=n(72);e.default=function(t,e){return void 0===e&&(e=[]),i.default(t,(function(t){return!r.default(e,t)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),r=n(138),o=n(4),a=n(58);e.default=function(t,e){if(!o.default(t))return null;var n;if(i.default(e)&&(n=e),a.default(e)&&(n=function(t){return r.default(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){void 0===n&&(n=0);for(var i=n;i<t.length;i++)if(e(t[i],i))return i;return-1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),r=n(4);e.default=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o][e];if(!i.default(a)){n=r.default(a)?a[0]:a;break}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4);e.default=function(t){if(!i.default(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4);e.default=function t(e,n){if(void 0===n&&(n=[]),i.default(e))for(var r=0;r<e.length;r+=1)t(e[r],n);else n.push(e);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4);e.default=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(i.default(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var o=Math.max.apply(null,e);return{min:Math.min.apply(null,e),max:o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Array.prototype,r=i.splice,o=i.indexOf;e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i++)for(var a=e[i],s=-1;(s=o.call(t,a))>-1;)r.call(t,s,1);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(4),o=n(58);e.default=function(t,e,n){if(!r.default(t)&&!o.default(t))return t;var a=n;return i.default(t,(function(t,n){a=e(a,t,n)})),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(21),r=n(140);e.default=function(t,e){var n=[];if(!i.default(t))return n;for(var o=-1,a=[],s=t.length;++o<s;){var l=t[o];e(l,o,t)&&(n.push(l),a.push(o))}return r.default(t,a),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(3),o=n(14);e.default=function(t,e){var n;if(o.default(e))n=function(t,n){return e(t)-e(n)};else{var a=[];r.default(e)?a.push(e):i.default(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var i=a[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(141);e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.default([].concat.apply([],t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(10);e.default=function(t,e){for(var n=[],o={},a=0;a<t.length;a++){var s=t[a][e];if(!r.default(s)){i.default(s)||(s=[s]);for(var l=0;l<s.length;l++){var c=s[l];o[c]||(n.push(c),o[c]=!0)}}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(21);e.default=function(t){if(i.default(t))return t[0]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(21);e.default=function(t){if(i.default(t))return t[t.length-1]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(3);e.default=function(t,e){return!(!i.default(t)&&!r.default(t))&&t[0]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r=n(3);e.default=function(t,e){return!(!i.default(t)&&!r.default(t))&&t[t.length-1]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(142);e.default=function(t,e){if(!e)return[t];var n=i.default(t,e),r=[];for(var o in n)r.push(n[o]);return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t["_wrap_"+e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};e.default=function(t){var e=i[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,i[t]=e}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4);e.default=function(t){var e=0,n=0,r=0,o=0;return i.default(t)?1===t.length?e=n=r=o=t[0]:2===t.length?(e=r=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],o=t[3]):e=n=r=o=t,{r1:e,r2:n,r3:r,r4:o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11);e.default=function(t){return i.default(t)&&t%1!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11);e.default=function(t){return i.default(t)&&t%2==0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),r=Number.isInteger?Number.isInteger:function(t){return i.default(t)&&t%1==0};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11);e.default=function(t){return i.default(t)&&t<0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11);e.default=function(t){return i.default(t)&&t%2!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11);e.default=function(t){return i.default(t)&&t>0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(4),o=n(14);e.default=function(t,e){if(r.default(t)){var n,a,s=t[0];return n=o.default(e)?e(t[0]):t[0][e],i.default(t,(function(t){(a=o.default(e)?e(t):t[e])>n&&(s=t,n=a)})),s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(4),o=n(14);e.default=function(t,e){if(r.default(t)){var n,a,s=t[0];return n=o.default(e)?e(t[0]):t[0][e],i.default(t,(function(t){(a=o.default(e)?e(t):t[e])<n&&(s=t,n=a)})),s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=180/Math.PI;e.default=function(t){return i*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(143);e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),r=n(144);e.default=function(t,e){return i.default(r.default(t),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(59);e.default=function(t){return i.default(t).toLowerCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(59);e.default=function(t){var e=i.default(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(59);e.default=function(t){return i.default(t).toUpperCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.default=function(t){return i.default(t,"Arguments")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.default=function(t){return i.default(t,"Boolean")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.default=function(t){return i.default(t,"Date")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.default=function(t){return i.default(t,"Error")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11);e.default=function(t){return i.default(t)&&isFinite(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(27);e.default=function(t){return i.default(t,"RegExp")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return void 0===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t instanceof Element||t instanceof HTMLDocument}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),r=n(14);e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];r.default(a)&&(a=a.prototype),i.default(n.prototype,a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14);e.default=function(t,e){if(!i.default(t))throw new TypeError("Expected a function");var n=function n(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=e?e.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return a.set(o,s),s};return n.cache=new Map,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),r=n(14);e.default=function(t,e,n,o){r.default(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var i=new n;return i.constructor=e,i},s=a(e.prototype,t);return t.prototype=i.default(s,t.prototype),t.superclass=a(e.prototype,e),i.default(s,n),i.default(t,o),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(21);e.default=function(t,e){if(!i.default(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,o=0;o<t.length;o++)if(t[o]===e){r=o;break}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),r=n(21),o=n(145),a=n(146),s=Object.prototype.hasOwnProperty;e.default=function(t){if(i.default(t))return!0;if(r.default(t))return!t.length;var e=o.default(t);if("Map"===e||"Set"===e)return!t.size;if(a.default(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),r=n(95);e.default=function(t,e,n){return i.default(n)?!!n(t,e):r.default(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(21);e.default=function(t,e){if(!i.default(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(e(o,r))}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),r=n(35),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return r.default(t)&&!i.default(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(35),r=n(3),o=n(11);e.default=function(t,e,n){var a=t,s=r.default(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(i.default(a[t])||(a[t]=o.default(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(58),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!r.default(t))return{};var n={};return i.default(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var i,r,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),i=null,a=t.apply(r,o),i||(r=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var u=e-(c-s);return r=this,o=arguments,u<=0||u>e?(i&&(clearTimeout(i),i=null),s=c,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(i),s=0,i=r=o=null},c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(21);e.default=function(t){return i.default(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};e.default=function(t){return i[t=t||"g"]?i[t]+=1:i[t]=1,t+i[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),r=n(21);e.default=function(t){return i.default(t)?0:r.default(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=i},function(t,e,n){var i=n(312),r=n(313),o={};for(var a in i)i.hasOwnProperty(a)&&(o[i[a]]=a);var s=t.exports={to:{},get:{}};function l(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}s.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=s.get.hsl(t),n="hsl";break;case"hwb":e=s.get.hwb(t),n="hwb";break;default:e=s.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},s.get.rgb=function(t){if(!t)return null;var e,n,r,o=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=e[2],e=e[1],n=0;n<3;n++){var a=2*n;o[n]=parseInt(e.slice(a,a+2),16)}r&&(o[3]=parseInt(r,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(r=(e=e[1])[3],n=0;n<3;n++)o[n]=parseInt(e[n]+e[n],16);r&&(o[3]=parseInt(r+r,16)/255)}else if(e=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(e[n+1],0);e[4]&&(o[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(e=t.match(/(\D+)/))?"transparent"===e[1]?[0,0,0,0]:(o=i[e[1]])?(o[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(o[3]=parseFloat(e[4]))}for(n=0;n<3;n++)o[n]=l(o[n],0,255);return o[3]=l(o[3],0,1),o},s.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,l(parseFloat(e[2]),0,100),l(parseFloat(e[3]),0,100),l(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var t=r(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},s.to.rgb=function(){var t=r(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},s.to.rgb.percent=function(){var t=r(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+i+"%)":"rgba("+e+"%, "+n+"%, "+i+"%, "+t[3]+")"},s.to.hsl=function(){var t=r(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},s.to.hwb=function(){var t=r(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},s.to.keyword=function(t){return o[t.slice(0,3)]}},function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,n){"use strict";var i=n(314),r=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var e=[],n=0,a=t.length;n<a;n++){var s=t[n];i(s)?e=r.call(e,o.call(s)):e.push(s)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},function(t,e){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,e,n){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=n(149),o=n(317),a={};Object.keys(r).forEach((function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:r[t].channels}),Object.defineProperty(a[t],"labels",{value:r[t].labels});var e=o(t);Object.keys(e).forEach((function(n){var r=e[n];a[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===i(n))for(var r=n.length,o=0;o<r;o++)n[o]=Math.round(n[o]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(r),a[t][n].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)}))})),t.exports=a},function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,n){var i=n(149);function r(t){var e=function(){for(var t={},e=Object.keys(i),n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;)for(var r=n.pop(),o=Object.keys(i[r]),a=o.length,s=0;s<a;s++){var l=o[s],c=e[l];-1===c.distance&&(c.distance=e[r].distance+1,c.parent=r,n.unshift(l))}return e}function o(t,e){return function(n){return e(t(n))}}function a(t,e){for(var n=[e[t].parent,t],r=i[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),r=o(i[e[a].parent][a],r),a=e[a].parent;return r.conversion=n,r}t.exports=function(t){for(var e=r(t),n={},i=Object.keys(e),o=i.length,s=0;s<o;s++){var l=i[s];null!==e[l].parent&&(n[l]=a(l,e))}return n}},function(t){t.exports=JSON.parse('{"name":"@antv/g-base","version":"0.5.1","description":"A common util collection for antv projects","main":"lib/index.js","module":"esm/index.js","types":"lib/index.d.ts","files":["package.json","esm","lib","LICENSE","README.md"],"scripts":{"build":"npm run clean && run-p build:*","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","clean":"rm -rf esm lib","watch:cjs":"tsc-watch -p tsconfig.json --target ES5 --module commonjs --outDir lib --compiler typescript/bin/tsc","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage","test":"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive tests/unit","tsc":"tsc --noEmit","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/antvis/util.git"},"keywords":["util","antv","g"],"publishConfig":{"access":"public"},"author":"https://github.com/orgs/antvis/people","license":"ISC","bugs":{"url":"https://github.com/antvis/util/issues"},"devDependencies":{"@antv/torch":"^1.0.0","gl-matrix":"^3.0.0","less":"^3.9.0","npm-run-all":"^4.1.5","tsc-watch":"^4.0.0"},"homepage":"https://github.com/antvis/util#readme","dependencies":{"@antv/event-emitter":"^0.1.1","@antv/g-math":"^0.1.5","@antv/matrix-util":"^3.1.0-beta.1","@antv/path-util":"~2.0.5","@antv/util":"~2.0.0","@types/d3-timer":"^1.0.9","d3-ease":"^1.0.5","d3-interpolate":"^1.3.2","d3-timer":"^1.0.9","detect-browser":"^5.1.0"},"__npminstall_done":true,"gitHead":"ba7ecf8b8deac37682414ac0b7fc2c3e903398bd","_from":"@antv/g-base@0.5.1","_resolved":"https://registry.npm.alibaba-inc.com/@antv/g-base/download/@antv/g-base-0.5.1.tgz"}')},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var i=n(155),r=n(320);function o(t,e,n){var i=t.getTotalMatrix();if(i){var o=function(t,e){if(e){var n=r.invert(e);return r.multiplyVec2(n,t)}return t}([e,n,1],i);return[o[0],o[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!i.isAllowCapture(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=o(t,e,n),a=r[0],s=r[1];if(t.isClipped(a,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}e.getShape=function t(e,n,i){if(!a(e,n,i))return null;for(var r=null,s=e.getChildren(),l=s.length-1;l>=0;l--){var c=s[l];if(c.isGroup())r=t(c,n,i);else if(a(c,n,i)){var u=c,h=o(c,n,i),d=h[0],p=h[1];u.isInShape(d,p)&&(r=c)}if(r)break}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invert=e.multiplyVec2=e.multiplyMatrix=void 0,e.multiplyMatrix=function(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=e[0],p=e[1],f=e[2],g=e[3],m=e[4],v=e[5],y=e[6],b=e[7],x=e[8];return n[0]=d*i+p*a+f*c,n[1]=d*r+p*s+f*u,n[2]=d*o+p*l+f*h,n[3]=g*i+m*a+v*c,n[4]=g*r+m*s+v*u,n[5]=g*o+m*l+v*h,n[6]=y*i+b*a+x*c,n[7]=y*r+b*s+x*u,n[8]=y*o+b*l+x*h,n},e.multiplyVec2=function(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n},e.invert=function(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=u*a-s*c,d=-u*o+s*l,p=c*o-a*l,f=n*h+i*d+r*p;return f?(f=1/f,e[0]=h*f,e[1]=(-u*i+r*c)*f,e[2]=(s*i-r*a)*f,e[3]=d*f,e[4]=(u*n-r*l)*f,e[5]=(-s*n+r*o)*f,e[6]=p*f,e[7]=(-c*n+i*l)*f,e[8]=(a*n-i*o)*f,e):null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18);function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}e.default=function(t,e){var n=e[1],r=e[2],s=i.mod(i.toRadian(e[3]),2*Math.PI),l=e[4],c=e[5],u=t[0],h=t[1],d=e[6],p=e[7],f=Math.cos(s)*(u-d)/2+Math.sin(s)*(h-p)/2,g=-1*Math.sin(s)*(u-d)/2+Math.cos(s)*(h-p)/2,m=f*f/(n*n)+g*g/(r*r);m>1&&(n*=Math.sqrt(m),r*=Math.sqrt(m));var v=n*n*(g*g)+r*r*(f*f),y=v?Math.sqrt((n*n*(r*r)-v)/v):1;l===c&&(y*=-1),isNaN(y)&&(y=0);var b=r?y*n*g/r:0,x=n?y*-r*f/n:0,w=(u+d)/2+Math.cos(s)*b-Math.sin(s)*x,_=(h+p)/2+Math.sin(s)*b+Math.cos(s)*x,C=[(f-b)/n,(g-x)/r],A=[(-1*f-b)/n,(-1*g-x)/r],I=a([1,0],C),S=a(C,A);return o(C,A)<=-1&&(S=Math.PI),o(C,A)>=1&&(S=0),0===c&&S>0&&(S-=2*Math.PI),1===c&&S<0&&(S+=2*Math.PI),{cx:w,cy:_,rx:i.isSamePoint(t,[d,p])?0:n,ry:i.isSamePoint(t,[d,p])?0:r,startAngle:I,endAngle:I+S,xRotation:s,arcFlag:l,sweepFlag:c}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var i=new Map;e.register=function(t,e){i.set(t,e)},e.getMethod=function(t){return i.get(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.r;return{x:n-r,y:i-r,width:2*r,height:2*r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(33),r=n(107);e.default=function(t){for(var e=t.attr().points,n=[],o=[],a=0;a<e.length;a++){var s=e[a];n.push(s[0]),o.push(s[1])}var l=i.getBBoxByArray(n,o),c=l.x,u=l.y,h={minX:c,minY:u,maxX:c+l.width,maxY:u+l.height};return{x:(h=r.mergeArrowBBox(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(33);e.default=function(t){for(var e=t.attr().points,n=[],r=[],o=0;o<e.length;o++){var a=e[o];n.push(a[0]),r.push(a[1])}return i.getBBoxByArray(n,r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(158);e.default=function(t){var e=t.attr(),n=e.x,r=e.y,o=e.text,a=e.fontSize,s=e.lineHeight,l=e.font;l||(l=i.assembleFont(e));var c,u=i.getTextWidth(o,l);if(u){var h=e.textAlign,d=e.textBaseline,p=i.getTextHeight(o,a,s),f={x:n,y:r-p};h&&("end"===h||"right"===h?f.x-=u:"center"===h&&(f.x-=u/2)),d&&("top"===d?f.y+=p:"middle"===d&&(f.y+=p/2)),c={x:f.x,y:f.y,width:u,height:p}}else c={x:n,y:r,width:0,height:0};return c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(160),r=n(108),o=n(329),a=n(162),s=n(103),l=n(107);function c(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,o=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),a=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),l=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),c=Math.acos((o+a-l)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!c||0===Math.sin(c)||s.default(c,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),h=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));return u=u>Math.PI/2?Math.PI-u:u,h=h>Math.PI/2?Math.PI-h:h,{xExtra:Math.cos(c/2-u)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(h-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,s=e.stroke?e.lineWidth:0,u=function(t,e){for(var n=[],a=[],s=[],l=0;l<t.length;l++){var u=(b=t[l]).currentPoint,h=b.params,d=b.prePoint,p=void 0;switch(b.command){case"Q":p=i.default.box(d[0],d[1],h[1],h[2],h[3],h[4]);break;case"C":p=r.default.box(d[0],d[1],h[1],h[2],h[3],h[4],h[5],h[6]);break;case"A":var f=b.arcParams;p=o.default.box(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:n.push(u[0]),a.push(u[1])}p&&(b.box=p,n.push(p.x,p.x+p.width),a.push(p.y,p.y+p.height)),e&&("L"===b.command||"M"===b.command)&&b.prePoint&&b.nextPoint&&s.push(b)}n=n.filter((function(t){return!Number.isNaN(t)})),a=a.filter((function(t){return!Number.isNaN(t)}));var g=Math.min.apply(null,n),m=Math.min.apply(null,a),v=Math.max.apply(null,n),y=Math.max.apply(null,a);if(0===s.length)return{x:g,y:m,width:v-g,height:y-m};for(l=0;l<s.length;l++){var b;(u=(b=s[l]).currentPoint)[0]===g?g-=c(b,e).xExtra:u[0]===v&&(v+=c(b,e).xExtra),u[1]===m?m-=c(b,e).yExtra:u[1]===y&&(y+=c(b,e).yExtra)}return{x:g,y:m,width:v-g,height:y-m}}(t.get("segments")||a.default(n),s),h=u.x,d=u.y,p={minX:h,minY:d,maxX:h+u.width,maxY:d+u.height};return{x:(p=l.mergeArrowBBox(t,p)).minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(33),r=n(330);function o(t,e,n,i,r,o){return n*Math.cos(r)*Math.cos(o)-i*Math.sin(r)*Math.sin(o)+t}function a(t,e,n,i,r,o){return n*Math.sin(r)*Math.cos(o)+i*Math.cos(r)*Math.sin(o)+e}function s(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function l(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}e.default={box:function(t,e,n,i,r,s,l){for(var c=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,i,r),u=1/0,h=-1/0,d=[s,l],p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var f=c+p;s<l?s<f&&f<l&&d.push(f):l<f&&f<s&&d.push(f)}for(p=0;p<d.length;p++){var g=o(t,0,n,i,r,d[p]);g<u&&(u=g),g>h&&(h=g)}var m=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,i,r),v=1/0,y=-1/0,b=[s,l];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=m+p;s<l?s<x&&x<l&&b.push(x):l<x&&x<s&&b.push(x)}for(p=0;p<b.length;p++){var w=a(0,e,n,i,r,b[p]);w<v&&(v=w),w>y&&(y=w)}return{x:u,y:v,width:h-u,height:y-v}},length:function(t,e,n,i,r,o,a){},nearestPoint:function(t,e,n,i,o,a,c,u,h){var d=l(u-t,h-e,-o),p=d[0],f=d[1],g=r.default.nearestPoint(0,0,n,i,p,f),m=function(t,e,n,i){return(Math.atan2(i*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,i,g.x,g.y);m<a?g=s(n,i,a):m>c&&(g=s(n,i,c));var v=l(g.x,g.y,o);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,n,r,o,a,s,l,c){var u=this.nearestPoint(t,e,n,r,l,c);return i.distance(u.x,u.y,l,c)},pointAt:function(t,e,n,i,r,s,l,c){var u=(l-s)*c+s;return{x:o(t,0,n,i,r,u),y:a(0,e,n,i,r,u)}},tangentAngle:function(t,e,n,r,o,a,s,l){var c=(s-a)*l+a,u=function(t,e,n,i,r,o,a,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}(0,0,n,r,o,0,0,c),h=function(t,e,n,i,r,o,a,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}(0,0,n,r,o,0,0,c);return i.piMod(Math.atan2(h,u))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(33);function r(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,i){return{x:t-n,y:e-i,width:2*n,height:2*i}},length:function(t,e,n,i){return Math.PI*(3*(n+i)-Math.sqrt((3*n+i)*(n+3*i)))},nearestPoint:function(t,e,n,i,o,a){var s=n,l=i;if(0===s||0===l)return{x:t,y:e};for(var c,u,h=o-t,d=a-e,p=Math.abs(h),f=Math.abs(d),g=s*s,m=l*l,v=Math.PI/4,y=0;y<4;y++){c=s*Math.cos(v),u=l*Math.sin(v);var b=(g-m)*Math.pow(Math.cos(v),3)/s,x=(m-g)*Math.pow(Math.sin(v),3)/l,w=c-b,_=u-x,C=p-b,A=f-x,I=Math.hypot(_,w),S=Math.hypot(A,C);v+=I*Math.asin((w*A-_*C)/(I*S))/Math.sqrt(g+m-c*c-u*u),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+r(c,h),y:e+r(u,d)}},pointDistance:function(t,e,n,r,o,a){var s=this.nearestPoint(t,e,n,r,o,a);return i.distance(s.x,s.y,o,a)},pointAt:function(t,e,n,i,r){var o=2*Math.PI*r;return{x:t+n*Math.cos(o),y:e+i*Math.sin(o)}},tangentAngle:function(t,e,n,r,o){var a=2*Math.PI*o,s=Math.atan2(r*Math.cos(a),-n*Math.sin(a));return i.piMod(s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),r=n(4),o=n(3),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;e.default=function(t){var e=t||[];return r.default(e)?e:o.default(e)?(e=e.match(a),i.default(e,(function(t,n){if((t=t.match(s))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}i.default(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(107);e.default=function(t){var e=t.attr(),n=e.x1,r=e.y1,o=e.x2,a=e.y2,s={minX:Math.min(n,o),maxX:Math.max(n,o),minY:Math.min(r,a),maxY:Math.max(r,a)};return{x:(s=i.mergeArrowBBox(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;return{x:n-r,y:i-o,width:2*r,height:2*o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(28),o=n(18),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),s=a.x,l=a.y,c=a.r,u=r/2,h=o.distance(s,l,t,e);return i&&n?h<=c+u:i?h<=c:!!n&&h>=c-u&&h<=c+u},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},e}(r.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1);function r(t,e,n,i){return t/(n*n)+e/(i*i)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,o){var a=this.attr(),s=o/2,l=a.x,c=a.y,u=a.rx,h=a.ry,d=(t-l)*(t-l),p=(e-c)*(e-c);return i&&n?r(d,p,u+s,h+s)<=1:i?r(d,p,u,h)<=1:!!n&&r(d,p,u-s,h-s)>=1&&r(d,p,u+s,h+s)<=1},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,o,0,0,2*Math.PI,!1);else{var a=r>o?r:o,s=r>o?1:r/o,l=r>o?o/r:1;t.save(),t.translate(n,i),t.scale(s,l),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(n(28).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(28),o=n(18);function a(t){return t instanceof HTMLElement&&o.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(o.isString(t)){var i=new Image;i.onload=function(){if(e.destroyed)return!1;e.attr("img",i),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},i.crossOrigin="Anonymous",i.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):a(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,i=e.y,r=e.width,s=e.height,l=e.sx,c=e.sy,u=e.swidth,h=e.sheight,d=e.img;(d instanceof Image||a(d))&&(o.isNil(l)||o.isNil(c)||o.isNil(u)||o.isNil(h)?t.drawImage(d,n,i,r,s):t.drawImage(d,l,c,u,h,n,i,r,s))},e}(r.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(40),o=n(28),a=n(75),s=n(74),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2,o=t.startArrow,a=t.endArrow;o&&s.addStartArrow(this,t,i,r,e,n),a&&s.addEndArrow(this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr(),s=o.x1,l=o.y1,c=o.x2,u=o.y2;return a.default(s,l,c,u,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.startArrow,l=e.endArrow,c={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(c=s.getShortenOffset(n,i,r,o,e.startArrow.d)),l&&l.d&&(u=s.getShortenOffset(n,i,r,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,i+c.dy),t.lineTo(r-u.dx,o-u.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,o=t.y2;return r.default.length(e,n,i,o)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,o=e.x2,a=e.y2;return r.default.pointAt(n,i,o,a,t)},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(165),a=n(28),s=n(18),l=n(60),c={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return r.isNil(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,i=this.attr(),r=i.x,a=i.y,l=i.symbol||"circle",c=this._getR(i);return s.isFunction(l)?(n=(t=l)(r,a,c),n=o.default(n)):n=(t=e.Symbols[l])(r,a,c),t?n:(console.warn(l+" marker is not supported."),null)},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");l.drawPath(this,t,{path:e},n)},e.Symbols=c,e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),r="\t\n\v\f\r   ᠎             　\u2028\u2029",o=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig");e.default=function(t){if(!t)return null;if(i.default(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(t,i,r){var o=[],s=i.toLowerCase();if(r.replace(a,(function(t,e){e&&o.push(+e)})),"m"===s&&o.length>2&&(n.push([i].concat(o.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===o.length&&n.push([i,o[0]]),"r"===s)n.push([i].concat(o));else for(;o.length>=e[s]&&(n.push([i].concat(o.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(108),o=n(0),a=n(28),s=n(165),l=n(162),c=n(60),u=n(166),h=n(167),d=n(341),p=n(74);function f(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];if(i=h.default(o,e,n))break}return i}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=s.default(t);var e=d.default.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=l.default(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var i=this.getStartTangent();p.addStartArrow(this,t,i[0][0],i[0][1],i[1][0],i[1][1])}n&&(i=this.getEndTangent(),p.addEndArrow(this,t,i[0][0],i[0][1],i[1][0],i[1][1]))},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=d.default.isPointInStroke(o,r,t,e,l)}if(!s&&i)if(a)s=u.default(this,t,e);else{var c=this.attr("path"),h=d.default.extractPolygons(c);s=f(h.polygons,t,e)||f(h.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");c.drawPath(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return o.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,i=this.get("tCache");i||(this._calculateCurve(),this._setTcache(),i=this.get("tCache"));var a=this.get("curve");if(!i||0===i.length)return a?{x:a[0][1],y:a[0][2]}:null;o.each(i,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var s=a[n];if(o.isNil(s)||o.isNil(n))return null;var l=s.length,c=a[n+1];return r.default.pointAt(s[l-2],s[l-1],c[1],c[2],c[3],c[4],c[5],c[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",d.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,a=0,s=0,l=[],c=this.get("curve");c&&(o.each(c,(function(t,e){n=c[e+1],i=t.length,n&&(a+=r.default.length(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",a),0!==a?(o.each(c,(function(o,u){n=c[u+1],i=o.length,n&&((t=[])[0]=s/a,e=r.default.length(o[i-2],o[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/a,l.push(t))})),this.set("tCache",l)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,i=e[1].currentPoint,r=e[1].startTangent;t=[],r?(t.push([n[0]-r[0],n[1]-r[1]]),t.push([n[0],n[1]])):(t.push([i[0],i[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var i=e[n-2].currentPoint,r=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([r[0]-o[0],r[1]-o[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(a.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(43),o=n(160),a=n(108),s=n(18),l=n(75),c=n(168),u=n(133),h=n(106),d=u.ext.transform;e.default=i.__assign({hasArc:function(t){for(var e=!1,n=t.length,i=0;i<n;i++){var r=t[i][0];if("C"===r||"A"===r||"Q"===r){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],i=[],r=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(r.length&&(i.push(r),r=[]),r.push([a[1],a[2]])):"Z"===s?r.length&&(n.push(r),r=[]):r.push([a[1],a[2]])}return r.length>0&&i.push(r),{polygons:n,polylines:i}},isPointInStroke:function(t,e,n,i,r){for(var u=!1,p=e/2,f=0;f<t.length;f++){var g=t[f],m=g.currentPoint,v=g.params,y=g.prePoint,b=g.box;if(!b||s.inBox(b.x-p,b.y-p,b.width+e,b.height+e,n,i)){switch(g.command){case"L":case"Z":u=l.default(y[0],y[1],m[0],m[1],e,n,i);break;case"Q":u=o.default.pointDistance(y[0],y[1],v[1],v[2],v[3],v[4],n,i)<=e/2;break;case"C":u=a.default.pointDistance(y[0],y[1],v[1],v[2],v[3],v[4],v[5],v[6],n,i,r)<=e/2;break;case"A":var x=g.arcParams,w=x.cx,_=x.cy,C=x.rx,A=x.ry,I=x.startAngle,S=x.endAngle,M=x.xRotation,k=[n,i,1],E=C>A?C:A,T=d(null,[["t",-w,-_],["r",-M],["s",1/(C>A?1:C/A),1/(C>A?A/C:1)]]);h.transformMat3(k,k,T),u=c.default(0,0,E,I,S,e,k[0],k[1])}if(u)break}}return u}},r.PathUtil)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(28),o=n(169),a=n(167),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var s=this.attr().points,l=!1;return n&&(l=o.default(s,r,t,e,!0)),!l&&i&&(l=a.default(s,t,e)),l},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var i=e[n];0===n?t.moveTo(i[0],i[1]):t.lineTo(i[0],i[1])}t.closePath()}},e}(r.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(40),o=n(170),a=n(0),s=n(28),l=n(169),c=n(74),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,i=e.startArrow,r=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],l=n[o-1][0],u=n[o-1][1];i&&c.addStartArrow(this,t,n[1][0],n[1][1],a,s),r&&c.addEndArrow(this,t,n[o-2][0],n[o-2][1],l,u)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr().points;return l.default(o,r,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,i=e.startArrow,r=e.endArrow,o=n.length;if(!(n.length<2)){var a,s=n[0][0],l=n[0][1],u=n[o-1][0],h=n[o-1][1];i&&i.d&&(s+=(a=c.getShortenOffset(s,l,n[1][0],n[1][1],i.d)).dx,l+=a.dy),r&&r.d&&(u-=(a=c.getShortenOffset(n[o-2][0],n[o-2][1],u,h,r.d)).dx,h-=a.dy),t.beginPath(),t.moveTo(s,l);for(var d=0;d<o-1;d++){var p=n[d];t.lineTo(p[0],p[1])}t.lineTo(u,h)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return a.isNil(e)?(this.set("totalLength",o.default.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,o=this.get("tCache");return o||(this._setTcache(),o=this.get("tCache")),a.each(o,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),r.default.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,o=0,s=[];a.each(t,(function(a,l){t[l+1]&&((n=[])[0]=o/e,i=r.default.length(a[0],a[1],t[l+1][0],t[l+1][1]),o+=i,n[1]=o/e,s.push(n))})),this.set("tCache",s)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distanceAtSegment=e.angleAtSegments=e.pointAtSegments=e.lengthOfSegment=void 0;var i=n(40),r=n(33);function o(t){for(var e=0,n=[],i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],s=r.distance(o[0],o[1],a[0],a[1]),l={from:o,to:a,length:s};n.push(l),e+=s}return{segments:n,totalLength:e}}e.lengthOfSegment=function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var i=t[n],o=t[n+1];e+=r.distance(i[0],i[1],o[0],o[1])}return e},e.pointAtSegments=function(t,e){if(e>1||e<0||t.length<2)return null;var n=o(t),r=n.segments,a=n.totalLength;if(0===a)return{x:t[0][0],y:t[0][1]};for(var s=0,l=null,c=0;c<r.length;c++){var u=r[c],h=u.from,d=u.to,p=u.length/a;if(e>=s&&e<=s+p){var f=(e-s)/p;l=i.default.pointAt(h[0],h[1],d[0],d[1],f);break}s+=p}return l},e.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=o(t),i=n.segments,r=n.totalLength,a=0,s=0,l=0;l<i.length;l++){var c=i[l],u=c.from,h=c.to,d=c.length/r;if(e>=a&&e<=a+d){s=Math.atan2(h[1]-u[1],h[0]-u[0]);break}a+=d}return s},e.distanceAtSegment=function(t,e,n){for(var r=1/0,o=0;o<t.length-1;o++){var a=t[o],s=t[o+1],l=i.default.pointDistance(a[0],a[1],s[0],s[1],e,n);l<r&&(r=l)}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(28),o=n(156),a=n(18),s=n(346),l=n(347),c=n(166),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),u=o.x,h=o.y,d=o.width,p=o.height,f=o.radius;if(f){var g=!1;return n&&(g=l.default(u,h,d,p,f,r,t,e)),!g&&i&&(g=c.default(this,t,e)),g}var m=r/2;return i&&n?a.inBox(u-m,h-m,d+m,p+m,t,e):i?a.inBox(u,h,d,p,t,e):n?s.default(u,h,d,p,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,i,r,a);else{var l=o.parseRadius(s),c=l[0],u=l[1],h=l[2],d=l[3];t.moveTo(n+c,i),t.lineTo(n+r-u,i),0!==u&&t.arc(n+r-u,i+u,u,-Math.PI/2,0),t.lineTo(n+r,i+a-h),0!==h&&t.arc(n+r-h,i+a-h,h,0,Math.PI/2),t.lineTo(n+d,i+a),0!==d&&t.arc(n+d,i+a-d,d,Math.PI/2,Math.PI),t.lineTo(n,i+c),0!==c&&t.arc(n+c,i+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(r.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18);e.default=function(t,e,n,r,o,a,s){var l=o/2;return i.inBox(t-l,e-l,n,o,a,s)||i.inBox(t+n-l,e-l,o,r,a,s)||i.inBox(t+l,e+r-l,n,o,a,s)||i.inBox(t-l,e+l,o,r,a,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(75),r=n(168);e.default=function(t,e,n,o,a,s,l,c){return i.default(t+a,e,t+n-a,e,s,l,c)||i.default(t+n,e+a,t+n,e+o-a,s,l,c)||i.default(t+n-a,e+o,t+a,e+o,s,l,c)||i.default(t,e+o-a,t,e+a,s,l,c)||r.default(t+n-a,e+a,a,1.5*Math.PI,2*Math.PI,s,l,c)||r.default(t+n-a,e+o-a,a,0,.5*Math.PI,s,l,c)||r.default(t+a,e+o-a,a,.5*Math.PI,Math.PI,s,l,c)||r.default(t+a,e+a,a,Math.PI,1.5*Math.PI,s,l,c)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(28),o=n(18),a=n(158),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=a.assembleFont(t)},e.prototype._setText=function(t){var e=null;o.isString(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var i,r=this.attrs,s=r.textBaseline,l=r.x,c=r.y,u=1*r.fontSize,h=this._getSpaceingY(),d=a.getTextHeight(r.text,r.fontSize,r.lineHeight);o.each(e,(function(e,r){i=c+r*(h+u)-d+u,"middle"===s&&(i+=d-u-(d-u)/2),"top"===s&&(i+=d-u),n?t.fillText(e,l,i):t.strokeText(e,l,i)}))},e.prototype._drawText=function(t,e){var n=this.attr(),i=n.x,r=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;e?t.fillText(a,i,r):t.strokeText(a,i,r)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&(o.isNil(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(o.isNil(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=i)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(r.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(19),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");r.each(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n(23).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(19),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return i.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");if(r.each(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"==typeof n.html){var a=n.html.call(this,n);if(a instanceof Element||a instanceof HTMLDocument){for(var s=i.childNodes,l=s.length-1;l>=0;l--)i.removeChild(s[l]);i.appendChild(a)}else i.innerHTML=a}else i.innerHTML=n.html},e}(n(23).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(19),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");r.each(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n(23).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(19),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),a=this.get("el");r.each(e||i,(function(t,e){"img"===e?n._setImage(i.img):o.SVG_ATTR_MAP[e]&&a.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(r.isString(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&r.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",i.toDataURL())}},e}(n(23).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(40),o=n(0),a=n(19),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");o.each(e||n,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var s=o.isObject(e)?t.addArrow(n,a.SVG_ATTR_MAP[r]):t.getDefaultArrow(n,a.SVG_ATTR_MAP[r]);i.setAttribute(a.SVG_ATTR_MAP[r],"url(#"+s+")")}else i.removeAttribute(a.SVG_ATTR_MAP[r]);else a.SVG_ATTR_MAP[r]&&i.setAttribute(a.SVG_ATTR_MAP[r],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,o=t.y2;return r.default.length(e,n,i,o)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,o=e.x2,a=e.y2;return r.default.pointAt(n,i,o,a,t)},e}(n(23).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(23),a=n(355),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return r.isArray(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,i=e.y,o=e.r||e.radius,s=e.symbol||"circle";return(t=r.isFunction(s)?s:a.default.get(s))?t(n,i,o):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=a.default,e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},triangleDown:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}};e.default={get:function(t){return i[t]},register:function(t,e){i[t]=e},remove:function(t){delete i[t]},getAll:function(){return i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(19),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),a=this.get("el");r.each(e||i,(function(e,s){if("path"===s&&r.isArray(e))a.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var l=r.isObject(e)?t.addArrow(i,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(i,o.SVG_ATTR_MAP[s]);a.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+l+")")}else a.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&a.setAttribute(o.SVG_ATTR_MAP[s],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var i=e?e.getPointAtLength(t*n):null;return i?{x:i.x,y:i.y}:null},e}(n(23).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(19),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");r.each(e||n,(function(t,e){"points"===e&&r.isArray(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(n(23).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(40),o=n(170),a=n(0),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");a.each(e||n,(function(t,e){"points"===e&&a.isArray(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return a.isNil(e)?(this.set("totalLength",o.default.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,o=this.get("tCache");return o||(this._setTcache(),o=this.get("tCache")),a.each(o,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),r.default.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,o=0,s=[];a.each(t,(function(a,l){t[l+1]&&((n=[])[0]=o/e,i=r.default.length(a[0],a[1],t[l+1][0],t[l+1][1]),o+=i,n[1]=o/e,s.push(n))})),this.set("tCache",s)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(n(23).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(23),a=n(19),s=n(360),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),o=this.get("el"),s=!1,l=["x","y","width","height","radius"];r.each(e||i,(function(t,e){-1===l.indexOf(e)||s?-1===l.indexOf(e)&&a.SVG_ATTR_MAP[e]&&o.setAttribute(a.SVG_ATTR_MAP[e],t):(o.setAttribute("d",n._assembleRect(i)),s=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,o=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var l=s.parseRadius(a);return r.isArray(a)?1===a.length?l.r1=l.r2=l.r3=l.r4=a[0]:2===a.length?(l.r1=l.r3=a[0],l.r2=l.r4=a[1]):3===a.length?(l.r1=a[0],l.r2=l.r4=a[1],l.r3=a[2]):(l.r1=a[0],l.r2=a[1],l.r3=a[2],l.r4=a[3]):l.r1=l.r2=l.r3=l.r4=a,[["M "+(e+l.r1)+","+n],["l "+(i-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(o-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-i)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-o)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]].join(" ")},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var i=n(0),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;e.parseRadius=function(t){var e=0,n=0,r=0,o=0;return i.isArray(t)?1===t.length?e=n=r=o=t[0]:2===t.length?(e=r=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],o=t[3]):e=n=r=o=t,{r1:e,r2:n,r3:r,r4:o}},e.parsePath=function(t){return t=t||[],i.isArray(t)?t:i.isString(t)?(t=t.match(r),i.each(t,(function(e,n){if((e=e.match(o))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}i.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),r=n(0),o=n(132),a=n(61),s=n(19),l=n(23),c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},u={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return i.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return i.__assign(i.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),o=this.get("el");this._setFont(),r.each(e||i,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?a.setTransform(n):s.SVG_ATTR_MAP[e]&&o.setAttribute(s.SVG_ATTR_MAP[e],t)})),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,i=e.textAlign,r=o.detect();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",u[n]||"alphabetic"):t.setAttribute("alignment-baseline",c[n]||"baseline"),t.setAttribute("text-anchor",h[i]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),i=n.x,o=n.textBaseline,a=void 0===o?"bottom":o;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),l=s.length-1,c="";r.each(s,(function(t,e){0===e?"alphabetic"===a?c+='<tspan x="'+i+'" dy="'+-l+'em">'+t+"</tspan>":"top"===a?c+='<tspan x="'+i+'" dy="0.9em">'+t+"</tspan>":"middle"===a?c+='<tspan x="'+i+'" dy="'+-(l-1)/2+'em">'+t+"</tspan>":"bottom"===a?c+='<tspan x="'+i+'" dy="-'+(l+.3)+'em">'+t+"</tspan>":"hanging"===a&&(c+='<tspan x="'+i+'" dy="'+(-(l-1)-.3)+'em">'+t+"</tspan>"):c+='<tspan x="'+i+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(l.default);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(363),o=n(364),a=n(365),s=n(366),l=n(367),c=n(29),u=function(){function t(t){var e=c.createSVGElement("defs"),n=i.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,i=null,r=0;r<n.length;r++)if(n[r].match(t,e)){i=n[r].id;break}return i},t.prototype.findById=function(t){for(var e=this.children,n=null,i=0;i<e.length;i++)if(e[i].id===t){n=e[i];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new a.default(t,e);return this.defaultArrow[n]=i,this.el.appendChild(i.el),this.add(i),i.id},t.prototype.addGradient=function(t){var e=new r.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new a.default(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new o.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new l.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new s.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(29),o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t){var e=t.match(s);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),i.each(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var c=function(){function t(t){this.cfg={};var e=null,n=i.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,a=o.exec(t),s=i.mod(i.toRadian(parseFloat(a[1])),2*Math.PI),c=a[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=s&&s<Math.PI?(n={x:1,y:0},r={x:0,y:1}):Math.PI<=s&&s<1.5*Math.PI?(n={x:1,y:1},r={x:0,y:0}):(n={x:0,y:1},r={x:1,y:0});var u=Math.tan(s),h=u*u,d=(r.x-n.x+u*(r.y-n.y))/(h+1)+n.x,p=u*(r.x-n.x+u*(r.y-n.y))/(h+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",d),e.setAttribute("y2",p),e.innerHTML=l(c)}(t,e=r.createSVGElement("linearGradient")):function(t,e){var n=a.exec(t),i=parseFloat(n[1]),r=parseFloat(n[2]),o=parseFloat(n[3]),s=n[4];e.setAttribute("cx",i),e.setAttribute("cy",r),e.setAttribute("r",o),e.innerHTML=l(s)}(t,e=r.createSVGElement("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(29),o={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},s=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=r.createSVGElement("filter");return i.each(a,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=i.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,r=this.cfg;return i.each(Object.keys(r),(function(t){if(r[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[o[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n      dx="'+(t.dx||0)+'"\n      dy="'+(t.dy||0)+'"\n      stdDeviation="'+(t.blur?t.blur/10:0)+'"\n      flood-color="'+(t.color?t.color:"#000")+'"\n      flood-opacity="'+(t.opacity?t.opacity:1)+'"\n      />';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(29),o=function(){function t(t,e){this.cfg={};var n=r.createSVGElement("marker"),o=i.uniqueId("marker_");n.setAttribute("id",o);var a=r.createSVGElement("path");a.setAttribute("stroke",t.stroke||"none"),a.setAttribute("fill",t.fill||"none"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=o;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,a):(this.cfg=s,this._setMarker(t.lineWidth,a)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,o=this.cfg.d;i.isArray(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),o&&n.setAttribute("refX",""+o/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(29),o=function(){function t(t){this.type="clip",this.cfg={};var e=r.createSVGElement("clipPath");this.el=e,this.id=i.uniqueId("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(29),o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){this.cfg={};var e=r.createSVGElement("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=r.createSVGElement("image");e.appendChild(n);var a=i.uniqueId("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var s=o.exec(t)[2];n.setAttribute("href",s);var l=new Image;function c(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?c():(l.onload=c,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(26),r=n(0);i.angle=function(t,e){var n=i.dot(t,e)/(i.length(t)*i.length(e));return Math.acos(r.clamp(n,-1,1))},i.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},i.angleTo=function(t,e,n){var r=i.angle(t,e),o=i.direction(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r},i.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(131);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),r=n(172);e.default=function(t,e){var n=t?i.clone(t):[1,0,0,0,1,0,0,0,1];return i.each(e,(function(t){switch(t[0]){case"t":r.default.translate(n,n,[t[1],t[2]]);break;case"s":r.default.scale(n,n,[t[1],t[2]]);break;case"r":r.default.rotate(n,n,t[1]);break;case"m":r.default.multiply(n,n,t[1]);break;default:return!1}})),n}},function(t,e,n){var i=n(372);t.exports={Graph:i.Graph,json:n(475),alg:n(476),version:i.version}},function(t,e,n){t.exports={Graph:n(111),version:n(474)}},function(t,e,n){var i=n(173);t.exports=function(t){return i(t,4)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(78),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},function(t,e,n){var i=n(78);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(78);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(78);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var i=n(77);t.exports=function(){this.__data__=new i,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(77),r=n(112),o=n(113);t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var a=n.__data__;if(!r||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var i=n(62),r=n(388),o=n(25),a=n(175),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,d=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||r(t))&&(i(t)?d:s).test(a(t))}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},function(t,e,n){var i=n(52),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var i,r=n(389),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var i=n(31)["__core-js_shared__"];t.exports=i},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var i=n(392),r=n(77),o=n(112);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},function(t,e,n){var i=n(393),r=n(394),o=n(395),a=n(396),s=n(397);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},function(t,e,n){var i=n(79);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var i=n(79),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},function(t,e,n){var i=n(79),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:r.call(e,t)}},function(t,e,n){var i=n(79);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var i=n(80);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var i=n(80);t.exports=function(t){return i(this,t).get(t)}},function(t,e,n){var i=n(80);t.exports=function(t){return i(this,t).has(t)}},function(t,e,n){var i=n(80);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},function(t,e,n){var i=n(63),r=n(41);t.exports=function(t,e){return t&&i(e,r(e),t)}},function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},function(t,e,n){var i=n(45),r=n(34);t.exports=function(t){return r(t)&&"[object Arguments]"==i(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var i=n(45),r=n(116),o=n(34),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&r(t.length)&&!!a[i(t)]}},function(t,e,n){var i=n(178)(Object.keys,Object);t.exports=i},function(t,e,n){var i=n(63),r=n(46);t.exports=function(t,e){return t&&i(e,r(e),t)}},function(t,e,n){var i=n(25),r=n(85),o=n(411),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return o(t);var e=r(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var i=n(63),r=n(119);t.exports=function(t,e){return i(t,r(t),e)}},function(t,e,n){var i=n(63),r=n(183);t.exports=function(t,e){return i(t,r(t),e)}},function(t,e,n){var i=n(185),r=n(183),o=n(46);t.exports=function(t){return i(t,o,r)}},function(t,e,n){var i=n(44)(n(31),"DataView");t.exports=i},function(t,e,n){var i=n(44)(n(31),"Promise");t.exports=i},function(t,e,n){var i=n(44)(n(31),"WeakMap");t.exports=i},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,i=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(i.index=t.index,i.input=t.input),i}},function(t,e,n){var i=n(121),r=n(420),o=n(421),a=n(422),s=n(188);t.exports=function(t,e,n){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return i(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return r(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return o(t);case"[object Set]":return new l;case"[object Symbol]":return a(t)}}},function(t,e,n){var i=n(121);t.exports=function(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var i=n(52),r=i?i.prototype:void 0,o=r?r.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var i=n(424),r=n(84),o=n(117),a=o&&o.isMap,s=a?r(a):i;t.exports=s},function(t,e,n){var i=n(54),r=n(34);t.exports=function(t){return r(t)&&"[object Map]"==i(t)}},function(t,e,n){var i=n(426),r=n(84),o=n(117),a=o&&o.isSet,s=a?r(a):i;t.exports=s},function(t,e,n){var i=n(54),r=n(34);t.exports=function(t){return r(t)&&"[object Set]"==i(t)}},function(t,e){t.exports=function(t){return function(e,n,i){for(var r=-1,o=Object(e),a=i(e),s=a.length;s--;){var l=a[t?s:++r];if(!1===n(o[l],l,o))break}return e}}},function(t,e,n){var i=n(38);t.exports=function(t,e){return function(n,r){if(null==n)return n;if(!i(n))return t(n,r);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==r(s[a],a,s););return n}}},function(t,e,n){var i=n(87);t.exports=function(t,e){var n=[];return i(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}},function(t,e,n){var i=n(431),r=n(439),o=n(200);t.exports=function(t){var e=r(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}},function(t,e,n){var i=n(76),r=n(195);t.exports=function(t,e,n,o){var a=n.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=n[a])[0],h=t[u],d=c[1];if(l&&c[2]){if(void 0===h&&!(u in t))return!1}else{var p=new i;if(o)var f=o(h,d,u,t,e,p);if(!(void 0===f?r(d,h,3,o,p):f))return!1}}return!0}},function(t,e,n){var i=n(76),r=n(196),o=n(436),a=n(438),s=n(54),l=n(15),c=n(53),u=n(65),h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,p,f,g){var m=l(t),v=l(e),y=m?"[object Array]":s(t),b=v?"[object Array]":s(e),x=(y="[object Arguments]"==y?h:y)==h,w=(b="[object Arguments]"==b?h:b)==h,_=y==b;if(_&&c(t)){if(!c(e))return!1;m=!0,x=!1}if(_&&!x)return g||(g=new i),m||u(t)?r(t,e,n,p,f,g):o(t,e,y,n,p,f,g);if(!(1&n)){var C=x&&d.call(t,"__wrapped__"),A=w&&d.call(e,"__wrapped__");if(C||A){var I=C?t.value():t,S=A?e.value():e;return g||(g=new i),f(I,S,n,p,g)}}return!!_&&(g||(g=new i),a(t,e,n,p,f,g))}},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var i=n(52),r=n(187),o=n(51),a=n(196),s=n(437),l=n(125),c=i?i.prototype:void 0,u=c?c.valueOf:void 0;t.exports=function(t,e,n,i,c,h,d){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new r(t),new r(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=s;case"[object Set]":var f=1&i;if(p||(p=l),t.size!=e.size&&!f)return!1;var g=d.get(t);if(g)return g==e;i|=2,d.set(t,e);var m=a(p(t),p(e),i,c,h,d);return d.delete(t),m;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}},function(t,e,n){var i=n(184),r=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var l=1&n,c=i(t),u=c.length;if(u!=i(e).length&&!l)return!1;for(var h=u;h--;){var d=c[h];if(!(l?d in e:r.call(e,d)))return!1}var p=s.get(t),f=s.get(e);if(p&&f)return p==e&&f==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=l;++h<u;){var v=t[d=c[h]],y=e[d];if(o)var b=l?o(y,v,d,e,t,s):o(v,y,d,t,e,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(t),s.delete(e),g}},function(t,e,n){var i=n(199),r=n(41);t.exports=function(t){for(var e=r(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,i(a)]}return e}},function(t,e,n){var i=n(195),r=n(441),o=n(202),a=n(126),s=n(199),l=n(200),c=n(66);t.exports=function(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=r(n,t);return void 0===a&&a===e?o(n,t):i(e,a,3)}}},function(t,e,n){var i=n(88);t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},function(t,e,n){var i=n(443),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,i,r){e.push(i?r.replace(o,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var i=n(444);t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var i=n(113);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(r.Cache||i),n}r.Cache=i,t.exports=r},function(t,e,n){var i=n(52),r=n(90),o=n(15),a=n(55),s=i?i.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return r(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var i=n(204),r=n(448),o=n(126),a=n(66);t.exports=function(t){return o(t)?i(a(t)):r(t)}},function(t,e,n){var i=n(88);t.exports=function(t){return function(e){return i(e,t)}}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},function(t,e,n){var i=n(118),r=n(54),o=n(64),a=n(15),s=n(38),l=n(53),c=n(85),u=n(65),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||o(t)))return!t.length;var e=r(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!i(t).length;for(var n in t)if(h.call(t,n))return!1;return!0}},function(t,e){t.exports=function(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}},function(t,e){t.exports=function(t,e,n,i,r){return r(t,(function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)})),n}},function(t,e,n){var i=n(118),r=n(54),o=n(38),a=n(454),s=n(455);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=r(t);return"[object Map]"==e||"[object Set]"==e?t.size:i(t).length}},function(t,e,n){var i=n(45),r=n(15),o=n(34);t.exports=function(t){return"string"==typeof t||!r(t)&&o(t)&&"[object String]"==i(t)}},function(t,e,n){var i=n(456),r=n(457),o=n(458);t.exports=function(t){return r(t)?o(t):i(t)}},function(t,e,n){var i=n(204)("length");t.exports=i},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n="[\\ud800-\\udfff]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")?",c="[\\ufe0e\\ufe0f]?"+l+"(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*",u="(?:"+[o+i+"?",i,a,s,n].join("|")+")",h=RegExp(r+"(?="+r+")|"+u+c,"g");t.exports=function(t){for(var e=h.lastIndex=0;h.test(t);)++e;return e}},function(t,e,n){var i=n(114),r=n(190),o=n(123),a=n(39),s=n(86),l=n(15),c=n(53),u=n(62),h=n(25),d=n(65);t.exports=function(t,e,n){var p=l(t),f=p||c(t)||d(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=f?p?new g:[]:h(t)&&u(g)?r(s(t)):{}}return(f?i:o)(t,(function(t,i,r){return e(n,t,i,r)})),n}},function(t,e,n){var i=n(127),r=n(91),o=n(465),a=n(213),s=r((function(t){return o(i(t,1,a,!0))}));t.exports=s},function(t,e,n){var i=n(52),r=n(64),o=n(15),a=i?i.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||r(t)||!!(a&&t&&t[a])}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var i=n(122),r=n(176),o=n(47),a=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:o;t.exports=a},function(t,e){var n=Date.now;t.exports=function(t){var e=0,i=0;return function(){var r=n(),o=16-(r-i);if(i=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(197),r=n(466),o=n(470),a=n(198),s=n(471),l=n(125);t.exports=function(t,e,n){var c=-1,u=r,h=t.length,d=!0,p=[],f=p;if(n)d=!1,u=o;else if(h>=200){var g=e?null:s(t);if(g)return l(g);d=!1,u=a,f=new i}else f=e?[]:p;t:for(;++c<h;){var m=t[c],v=e?e(m):m;if(m=n||0!==m?m:0,d&&v==v){for(var y=f.length;y--;)if(f[y]===v)continue t;e&&f.push(v),p.push(m)}else u(f,v,n)||(f!==p&&f.push(v),p.push(m))}return p}},function(t,e,n){var i=n(467);t.exports=function(t,e){return!(null==t||!t.length)&&i(t,e,0)>-1}},function(t,e,n){var i=n(212),r=n(468),o=n(469);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,r,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}},function(t,e){t.exports=function(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}},function(t,e,n){var i=n(186),r=n(472),o=n(125),a=i&&1/o(new i([,-0]))[1]==1/0?function(t){return new i(t)}:r;t.exports=a},function(t,e){t.exports=function(){}},function(t,e,n){var i=n(90);t.exports=function(t,e){return i(e,(function(e){return t[e]}))}},function(t,e){t.exports="2.1.8"},function(t,e,n){var i=n(24),r=n(111);function o(t){return i.map(t.nodes(),(function(e){var n=t.node(e),r=t.parent(e),o={v:e};return i.isUndefined(n)||(o.value=n),i.isUndefined(r)||(o.parent=r),o}))}function a(t){return i.map(t.edges(),(function(e){var n=t.edge(e),r={v:e.v,w:e.w};return i.isUndefined(e.name)||(r.name=e.name),i.isUndefined(n)||(r.value=n),r}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return i.isUndefined(t.graph())||(e.value=i.clone(t.graph())),e},read:function(t){var e=new r(t.options).setGraph(t.value);return i.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),i.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},function(t,e,n){t.exports={components:n(477),dijkstra:n(215),dijkstraAll:n(478),findCycles:n(479),floydWarshall:n(480),isAcyclic:n(481),postorder:n(482),preorder:n(483),prim:n(484),tarjan:n(217),topsort:n(218)}},function(t,e,n){var i=n(24);t.exports=function(t){var e,n={},r=[];function o(r){i.has(n,r)||(n[r]=!0,e.push(r),i.each(t.successors(r),o),i.each(t.predecessors(r),o))}return i.each(t.nodes(),(function(t){e=[],o(t),e.length&&r.push(e)})),r}},function(t,e,n){var i=n(215),r=n(24);t.exports=function(t,e,n){return r.transform(t.nodes(),(function(r,o){r[o]=i(t,o,e,n)}),{})}},function(t,e,n){var i=n(24),r=n(217);t.exports=function(t){return i.filter(r(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,n){var i=n(24);t.exports=function(t,e,n){return function(t,e,n){var i={},r=t.nodes();return r.forEach((function(t){i[t]={},i[t][t]={distance:0},r.forEach((function(e){t!==e&&(i[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var r=n.v===t?n.w:n.v,o=e(n);i[t][r]={distance:o,predecessor:t}}))})),r.forEach((function(t){var e=i[t];r.forEach((function(n){var o=i[n];r.forEach((function(n){var i=o[t],r=e[n],a=o[n],s=i.distance+r.distance;s<a.distance&&(a.distance=s,a.predecessor=r.predecessor)}))}))})),i}(t,e||r,n||function(e){return t.outEdges(e)})};var r=i.constant(1)},function(t,e,n){var i=n(218);t.exports=function(t){try{i(t)}catch(t){if(t instanceof i.CycleException)return!1;throw t}return!0}},function(t,e,n){var i=n(219);t.exports=function(t,e){return i(t,e,"post")}},function(t,e,n){var i=n(219);t.exports=function(t,e){return i(t,e,"pre")}},function(t,e,n){var i=n(24),r=n(111),o=n(216);t.exports=function(t,e){var n,a=new r,s={},l=new o;function c(t){var i=t.v===n?t.w:t.v,r=l.priority(i);if(void 0!==r){var o=e(t);o<r&&(s[i]=n,l.decrease(i,o))}}if(0===t.nodeCount())return a;i.each(t.nodes(),(function(t){l.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),l.decrease(t.nodes()[0],0);for(var u=!1;l.size()>0;){if(n=l.removeMin(),i.has(s,n))a.setEdge(n,s[n]);else{if(u)throw new Error("Input graph is not connected: "+t);u=!0}t.nodeEdges(n).forEach(c)}return a}},function(t,e,n){"use strict";var i=n(13),r=n(523),o=n(526),a=n(527),s=n(20).normalizeRanks,l=n(529),c=n(20).removeEmptyRanks,u=n(530),h=n(531),d=n(532),p=n(533),f=n(542),g=n(20),m=n(30).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n("  buildLayoutGraph",(function(){return function(t){var e=new m({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(i.merge({},y,I(n,v),i.pick(n,b))),i.forEach(t.nodes(),(function(n){var r=S(t.node(n));e.setNode(n,i.defaults(I(r,x),w)),e.setParent(n,t.parent(n))})),i.forEach(t.edges(),(function(n){var r=S(t.edge(n));e.setEdge(n,i.merge({},C,I(r,_),i.pick(r,A)))})),e}(t)}));n("  runLayout",(function(){!function(t,e){e("    makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,i.forEach(t.edges(),(function(n){var i=t.edge(n);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)}))}(t)})),e("    removeSelfEdges",(function(){!function(t){i.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e("    acyclic",(function(){r.run(t)})),e("    nestingGraph.run",(function(){u.run(t)})),e("    rank",(function(){a(g.asNonCompoundGraph(t))})),e("    injectEdgeLabelProxies",(function(){!function(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var i=t.node(e.v),r={rank:(t.node(e.w).rank-i.rank)/2+i.rank,e:e};g.addDummyNode(t,"edge-proxy",r,"_ep")}}))}(t)})),e("    removeEmptyRanks",(function(){c(t)})),e("    nestingGraph.cleanup",(function(){u.cleanup(t)})),e("    normalizeRanks",(function(){s(t)})),e("    assignRankMinMax",(function(){!function(t){var e=0;i.forEach(t.nodes(),(function(n){var r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=i.max(e,r.maxRank))})),t.graph().maxRank=e}(t)})),e("    removeEdgeLabelProxies",(function(){!function(t){i.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e("    normalize.run",(function(){o.run(t)})),e("    parentDummyChains",(function(){l(t)})),e("    addBorderSegments",(function(){h(t)})),e("    order",(function(){p(t)})),e("    insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);i.forEach(e,(function(e){var n=0;i.forEach(e,(function(e,r){var o=t.node(e);o.order=r+n,i.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:r+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e("    adjustCoordinateSystem",(function(){d.adjust(t)})),e("    position",(function(){f(t)})),e("    positionSelfEdges",(function(){!function(t){i.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var i=t.node(n.e.v),r=i.x+i.width/2,o=i.y,a=n.x-r,s=i.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:r+2*a/3,y:o-s},{x:r+5*a/6,y:o-s},{x:r+a,y:o},{x:r+5*a/6,y:o+s},{x:r+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e("    removeBorderNodes",(function(){!function(t){i.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),r=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(i.last(n.borderLeft)),s=t.node(i.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}})),i.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e("    normalize.undo",(function(){o.undo(t)})),e("    fixupEdgeLabelCoords",(function(){!function(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);if(i.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e("    undoCoordinateSystem",(function(){d.undo(t)})),e("    translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,l=a.marginy||0;function c(t){var i=t.x,a=t.y,s=t.width,l=t.height;e=Math.min(e,i-s/2),n=Math.max(n,i+s/2),r=Math.min(r,a-l/2),o=Math.max(o,a+l/2)}i.forEach(t.nodes(),(function(e){c(t.node(e))})),i.forEach(t.edges(),(function(e){var n=t.edge(e);i.has(n,"x")&&c(n)})),e-=s,r-=l,i.forEach(t.nodes(),(function(n){var i=t.node(n);i.x-=e,i.y-=r})),i.forEach(t.edges(),(function(n){var o=t.edge(n);i.forEach(o.points,(function(t){t.x-=e,t.y-=r})),i.has(o,"x")&&(o.x-=e),i.has(o,"y")&&(o.y-=r)})),a.width=n-e+s,a.height=o-r+l}(t)})),e("    assignNodeIntersects",(function(){!function(t){i.forEach(t.edges(),(function(e){var n,i,r=t.edge(e),o=t.node(e.v),a=t.node(e.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=a,i=o),r.points.unshift(g.intersectRect(o,n)),r.points.push(g.intersectRect(a,i))}))}(t)})),e("    reversePoints",(function(){!function(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e("    acyclic.undo",(function(){r.undo(t)}))}(e,n)})),n("  updateInputGraph",(function(){!function(t,e){i.forEach(t.nodes(),(function(n){var i=t.node(n),r=e.node(n);i&&(i.x=r.x,i.y=r.y,e.children(n).length&&(i.width=r.width,i.height=r.height))})),i.forEach(t.edges(),(function(n){var r=t.edge(n),o=e.edge(n);r.points=o.points,i.has(o,"x")&&(r.x=o.x,r.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],C={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},A=["labelpos"];function I(t,e){return i.mapValues(i.pick(t,e),Number)}function S(t){var e={};return i.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},function(t,e,n){var i=n(173);t.exports=function(t){return i(t,5)}},function(t,e,n){var i=n(91),r=n(51),o=n(92),a=n(46),s=Object.prototype,l=s.hasOwnProperty,c=i((function(t,e){t=Object(t);var n=-1,i=e.length,c=i>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(i=1);++n<i;)for(var u=e[n],h=a(u),d=-1,p=h.length;++d<p;){var f=h[d],g=t[f];(void 0===g||r(g,s[f])&&!l.call(t,f))&&(t[f]=u[f])}return t}));t.exports=c},function(t,e,n){var i=n(489)(n(490));t.exports=i},function(t,e,n){var i=n(39),r=n(38),o=n(41);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!r(e)){var l=i(n,3);e=o(e),n=function(t){return l(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[l?e[c]:c]:void 0}}},function(t,e,n){var i=n(212),r=n(39),o=n(491),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),i(t,r(e,3),l)}},function(t,e,n){var i=n(220);t.exports=function(t){var e=i(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var i=n(25),r=n(55),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(r(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){var i=n(124),r=n(193),o=n(46);t.exports=function(t,e){return null==t?t:i(t,r(e),o)}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var i=n(82),r=n(123),o=n(39);t.exports=function(t,e){var n={};return e=o(e,3),r(t,(function(t,r,o){i(n,r,e(t,r,o))})),n}},function(t,e,n){var i=n(128),r=n(497),o=n(47);t.exports=function(t){return t&&t.length?i(t,o,r):void 0}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,n){var i=n(499),r=n(503)((function(t,e,n){i(t,e,n)}));t.exports=r},function(t,e,n){var i=n(76),r=n(222),o=n(124),a=n(500),s=n(25),l=n(46),c=n(223);t.exports=function t(e,n,u,h,d){e!==n&&o(n,(function(o,l){if(d||(d=new i),s(o))a(e,n,l,u,t,h,d);else{var p=h?h(c(e,l),o,l+"",e,n,d):void 0;void 0===p&&(p=o),r(e,l,p)}}),l)}},function(t,e,n){var i=n(222),r=n(179),o=n(188),a=n(180),s=n(189),l=n(64),c=n(15),u=n(213),h=n(53),d=n(62),p=n(25),f=n(501),g=n(65),m=n(223),v=n(502);t.exports=function(t,e,n,y,b,x,w){var _=m(t,n),C=m(e,n),A=w.get(C);if(A)i(t,n,A);else{var I=x?x(_,C,n+"",t,e,w):void 0,S=void 0===I;if(S){var M=c(C),k=!M&&h(C),E=!M&&!k&&g(C);I=C,M||k||E?c(_)?I=_:u(_)?I=a(_):k?(S=!1,I=r(C,!0)):E?(S=!1,I=o(C,!0)):I=[]:f(C)||l(C)?(I=_,l(_)?I=v(_):p(_)&&!d(_)||(I=s(C))):S=!1}S&&(w.set(C,I),b(I,C,y,x,w),w.delete(C)),i(t,n,I)}}},function(t,e,n){var i=n(45),r=n(86),o=n(34),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=i(t))return!1;var e=r(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},function(t,e,n){var i=n(63),r=n(46);t.exports=function(t){return i(t,r(t))}},function(t,e,n){var i=n(91),r=n(92);t.exports=function(t){return i((function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&r(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++i<o;){var l=n[i];l&&t(e,l,i,a)}return e}))}},function(t,e,n){var i=n(128),r=n(224),o=n(47);t.exports=function(t){return t&&t.length?i(t,o,r):void 0}},function(t,e,n){var i=n(128),r=n(39),o=n(224);t.exports=function(t,e){return t&&t.length?i(t,r(e,2),o):void 0}},function(t,e,n){var i=n(31);t.exports=function(){return i.Date.now()}},function(t,e,n){var i=n(508),r=n(511)((function(t,e){return null==t?{}:i(t,e)}));t.exports=r},function(t,e,n){var i=n(509),r=n(202);t.exports=function(t,e){return i(t,e,(function(e,n){return r(t,n)}))}},function(t,e,n){var i=n(88),r=n(510),o=n(89);t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var c=e[a],u=i(t,c);n(u,c)&&r(l,o(c,t),u)}return l}},function(t,e,n){var i=n(81),r=n(89),o=n(83),a=n(25),s=n(66);t.exports=function(t,e,n,l){if(!a(t))return t;for(var c=-1,u=(e=r(e,t)).length,h=u-1,d=t;null!=d&&++c<u;){var p=s(e[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=h){var g=d[p];void 0===(f=l?l(g,p,d):void 0)&&(f=a(g)?g:o(e[c+1])?[]:{})}i(d,p,f),d=d[p]}return t}},function(t,e,n){var i=n(221),r=n(210),o=n(211);t.exports=function(t){return o(r(t,void 0,i),t+"")}},function(t,e,n){var i=n(513)();t.exports=i},function(t,e,n){var i=n(514),r=n(92),o=n(220);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&r(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),i(e,n,a,t)}}},function(t,e){var n=Math.ceil,i=Math.max;t.exports=function(t,e,r,o){for(var a=-1,s=i(n((e-t)/(r||1)),0),l=Array(s);s--;)l[o?s:++a]=t,t+=r;return l}},function(t,e,n){var i=n(127),r=n(516),o=n(91),a=n(92),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),r(t,i(e,1),[])}));t.exports=s},function(t,e,n){var i=n(90),r=n(88),o=n(39),a=n(208),s=n(517),l=n(84),c=n(518),u=n(47),h=n(15);t.exports=function(t,e,n){e=e.length?i(e,(function(t){return h(t)?function(e){return r(e,1===t.length?t[0]:t)}:t})):[u];var d=-1;e=i(e,l(o));var p=a(t,(function(t,n,r){return{criteria:i(e,(function(e){return e(t)})),index:++d,value:t}}));return s(p,(function(t,e){return c(t,e,n)}))}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var i=n(519);t.exports=function(t,e,n){for(var r=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;++r<s;){var c=i(o[r],a[r]);if(c)return r>=l?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}},function(t,e,n){var i=n(55);t.exports=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,a=i(t),s=void 0!==e,l=null===e,c=e==e,u=i(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&t<e||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},function(t,e,n){var i=n(201),r=0;t.exports=function(t){var e=++r;return i(t)+e}},function(t,e,n){var i=n(81),r=n(522);t.exports=function(t,e){return r(t||[],e||[],i)}},function(t,e){t.exports=function(t,e,n){for(var i=-1,r=t.length,o=e.length,a={};++i<r;){var s=i<o?e[i]:void 0;n(a,t[i],s)}return a}},function(t,e,n){"use strict";var i=n(13),r=n(524);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?r(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},r={};function o(a){i.has(r,a)||(r[a]=!0,n[a]=!0,i.forEach(t.outEdges(a),(function(t){i.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])}return i.forEach(t.nodes(),o),e}(t);i.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,i.uniqueId("rev"))}))},undo:function(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var i=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,i)}}))}}},function(t,e,n){var i=n(13),r=n(30).Graph,o=n(525);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new r,a=0,s=0;i.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),i.forEach(t.edges(),(function(t){var i=n.edge(t.v,t.w)||0,r=e(t),o=i+r;n.setEdge(t.v,t.w,o),s=Math.max(s,n.node(t.v).out+=r),a=Math.max(a,n.node(t.w).in+=r)}));var c=i.range(s+a+3).map((function(){return new o})),u=a+1;return i.forEach(n.nodes(),(function(t){l(c,u,n.node(t))})),{graph:n,buckets:c,zeroIdx:u}}(t,e||a),c=function(t,e,n){for(var i,r=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;i=a.dequeue();)s(t,e,n,i);for(;i=o.dequeue();)s(t,e,n,i);if(t.nodeCount())for(var l=e.length-2;l>0;--l)if(i=e[l].dequeue()){r=r.concat(s(t,e,n,i,!0));break}}return r}(n.graph,n.buckets,n.zeroIdx);return i.flatten(i.map(c,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=i.constant(1);function s(t,e,n,r,o){var a=o?[]:void 0;return i.forEach(t.inEdges(r.v),(function(i){var r=t.edge(i),s=t.node(i.v);o&&a.push({v:i.v,w:i.w}),s.out-=r,l(e,n,s)})),i.forEach(t.outEdges(r.v),(function(i){var r=t.edge(i),o=i.w,a=t.node(o);a.in-=r,l(e,n,a)})),t.removeNode(r.v),a}function l(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function i(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return i(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&i(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},function(t,e,n){"use strict";var i=n(13),r=n(20);t.exports={run:function(t){t.graph().dummyChains=[],i.forEach(t.edges(),(function(e){!function(t,e){var n,i,o,a=e.v,s=t.node(a).rank,l=e.w,c=t.node(l).rank,u=e.name,h=t.edge(e),d=h.labelRank;if(c!==s+1){for(t.removeEdge(e),o=0,++s;s<c;++o,++s)h.points=[],i={width:0,height:0,edgeLabel:h,edgeObj:e,rank:s},n=r.addDummyNode(t,"edge",i,"_d"),s===d&&(i.width=h.width,i.height=h.height,i.dummy="edge-label",i.labelpos=h.labelpos),t.setEdge(a,n,{weight:h.weight},u),0===o&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,l,{weight:h.weight},u)}}(t,e)}))},undo:function(t){i.forEach(t.graph().dummyChains,(function(e){var n,i=t.node(e),r=i.edgeLabel;for(t.setEdge(i.edgeObj,r);i.dummy;)n=t.successors(e)[0],t.removeNode(e),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),e=n,i=t.node(e)}))}}},function(t,e,n){"use strict";var i=n(93).longestPath,r=n(225),o=n(528);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":s(t);break;case"tight-tree":!function(t){i(t),r(t)}(t);break;case"longest-path":a(t);break;default:s(t)}};var a=i;function s(t){o(t)}},function(t,e,n){"use strict";var i=n(13),r=n(225),o=n(93).slack,a=n(93).longestPath,s=n(30).alg.preorder,l=n(30).alg.postorder,c=n(20).simplify;function u(t){t=c(t),a(t);var e,n=r(t);for(p(n),h(n,t);e=g(n);)v(n,t,e,m(n,t,e))}function h(t,e){var n=l(t,t.nodes());n=n.slice(0,n.length-1),i.forEach(n,(function(n){!function(t,e,n){var i=t.node(n).parent;t.edge(n,i).cutvalue=d(t,e,n)}(t,e,n)}))}function d(t,e,n){var r=t.node(n).parent,o=!0,a=e.edge(n,r),s=0;return a||(o=!1,a=e.edge(r,n)),s=a.weight,i.forEach(e.nodeEdges(n),(function(i){var a,l,c=i.v===n,u=c?i.w:i.v;if(u!==r){var h=c===o,d=e.edge(i).weight;if(s+=h?d:-d,a=n,l=u,t.hasEdge(a,l)){var p=t.edge(n,u).cutvalue;s+=h?-p:p}}})),s}function p(t,e){arguments.length<2&&(e=t.nodes()[0]),f(t,{},1,e)}function f(t,e,n,r,o){var a=n,s=t.node(r);return e[r]=!0,i.forEach(t.neighbors(r),(function(o){i.has(e,o)||(n=f(t,e,n,o,r))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function g(t){return i.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function m(t,e,n){var r=n.v,a=n.w;e.hasEdge(r,a)||(r=n.w,a=n.v);var s=t.node(r),l=t.node(a),c=s,u=!1;s.lim>l.lim&&(c=l,u=!0);var h=i.filter(e.edges(),(function(e){return u===y(t,t.node(e.v),c)&&u!==y(t,t.node(e.w),c)}));return i.minBy(h,(function(t){return o(e,t)}))}function v(t,e,n,r){var o=n.v,a=n.w;t.removeEdge(o,a),t.setEdge(r.v,r.w,{}),p(t),h(t,e),function(t,e){var n=i.find(t.nodes(),(function(t){return!e.node(t).parent})),r=s(t,n);r=r.slice(1),i.forEach(r,(function(n){var i=t.node(n).parent,r=e.edge(n,i),o=!1;r||(r=e.edge(i,n),o=!0),e.node(n).rank=e.node(i).rank+(o?r.minlen:-r.minlen)}))}(t,e)}function y(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=u,u.initLowLimValues=p,u.initCutValues=h,u.calcCutValue=d,u.leaveEdge=g,u.enterEdge=m,u.exchangeEdges=v},function(t,e,n){var i=n(13);t.exports=function(t){var e=function(t){var e={},n=0;function r(o){var a=n;i.forEach(t.children(o),r),e[o]={low:a,lim:n++}}return i.forEach(t.children(),r),e}(t);i.forEach(t.graph().dummyChains,(function(n){for(var i=t.node(n),r=i.edgeObj,o=function(t,e,n,i){var r,o,a=[],s=[],l=Math.min(e[n].low,e[i].low),c=Math.max(e[n].lim,e[i].lim);r=n;do{r=t.parent(r),a.push(r)}while(r&&(e[r].low>l||c>e[r].lim));for(o=r,r=i;(r=t.parent(r))!==o;)s.push(r);return{path:a.concat(s.reverse()),lca:o}}(t,e,r.v,r.w),a=o.path,s=o.lca,l=0,c=a[l],u=!0;n!==r.w;){if(i=t.node(n),u){for(;(c=a[l])!==s&&t.node(c).maxRank<i.rank;)l++;c===s&&(u=!1)}if(!u){for(;l<a.length-1&&t.node(c=a[l+1]).minRank<=i.rank;)l++;c=a[l]}t.setParent(n,c),n=t.successors(n)[0]}}))}},function(t,e,n){var i=n(13),r=n(20);t.exports={run:function(t){var e=r.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return i.forEach(t.children(),(function(n){!function n(r,o){var a=t.children(r);a&&a.length&&i.forEach(a,(function(t){n(t,o+1)})),e[r]=o}(n,1)})),e}(t),o=i.max(i.values(n))-1,a=2*o+1;t.graph().nestingRoot=e,i.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var s=function(t){return i.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;i.forEach(t.children(),(function(l){!function t(e,n,o,a,s,l,c){var u=e.children(c);if(u.length){var h=r.addBorderNode(e,"_bt"),d=r.addBorderNode(e,"_bb"),p=e.node(c);e.setParent(h,c),p.borderTop=h,e.setParent(d,c),p.borderBottom=d,i.forEach(u,(function(i){t(e,n,o,a,s,l,i);var r=e.node(i),u=r.borderTop?r.borderTop:i,p=r.borderBottom?r.borderBottom:i,f=r.borderTop?a:2*a,g=u!==p?1:s-l[c]+1;e.setEdge(h,u,{weight:f,minlen:g,nestingEdge:!0}),e.setEdge(p,d,{weight:f,minlen:g,nestingEdge:!0})})),e.parent(c)||e.setEdge(n,h,{weight:0,minlen:s+l[c]})}else c!==n&&e.setEdge(n,c,{weight:0,minlen:o})}(t,e,a,s,o,n,l)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,i.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},function(t,e,n){var i=n(13),r=n(20);function o(t,e,n,i,o,a){var s={width:0,height:0,rank:a,borderType:e},l=o[e][a-1],c=r.addDummyNode(t,"border",s,n);o[e][a]=c,t.setParent(c,i),l&&t.setEdge(l,c,{weight:1})}t.exports=function(t){i.forEach(t.children(),(function e(n){var r=t.children(n),a=t.node(n);if(r.length&&i.forEach(r,e),i.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,l=a.maxRank+1;s<l;++s)o(t,"borderLeft","_bl",n,a,s),o(t,"borderRight","_br",n,a,s)}}))}},function(t,e,n){"use strict";var i=n(13);function r(t){i.forEach(t.nodes(),(function(e){o(t.node(e))})),i.forEach(t.edges(),(function(e){o(t.edge(e))}))}function o(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||r(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){i.forEach(t.nodes(),(function(e){a(t.node(e))})),i.forEach(t.edges(),(function(e){var n=t.edge(e);i.forEach(n.points,a),i.has(n,"y")&&a(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){i.forEach(t.nodes(),(function(e){s(t.node(e))})),i.forEach(t.edges(),(function(e){var n=t.edge(e);i.forEach(n.points,s),i.has(n,"x")&&s(n)}))}(t),r(t))}}},function(t,e,n){"use strict";var i=n(13),r=n(534),o=n(535),a=n(536),s=n(540),l=n(541),c=n(30).Graph,u=n(20);function h(t,e,n){return i.map(e,(function(e){return s(t,e,n)}))}function d(t,e){var n=new c;i.forEach(t,(function(t){var r=t.graph().root,o=a(t,r,n,e);i.forEach(o.vs,(function(e,n){t.node(e).order=n})),l(t,n,o.vs)}))}function p(t,e){i.forEach(e,(function(e){i.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=u.maxRank(t),n=h(t,i.range(1,e+1),"inEdges"),a=h(t,i.range(e-1,-1,-1),"outEdges"),s=r(t);p(t,s);for(var l,c=Number.POSITIVE_INFINITY,f=0,g=0;g<4;++f,++g){d(f%2?n:a,f%4>=2),s=u.buildLayerMatrix(t);var m=o(t,s);m<c&&(g=0,l=i.cloneDeep(s),c=m)}p(t,l)}},function(t,e,n){"use strict";var i=n(13);t.exports=function(t){var e={},n=i.filter(t.nodes(),(function(e){return!t.children(e).length})),r=i.max(i.map(n,(function(e){return t.node(e).rank}))),o=i.map(i.range(r+1),(function(){return[]})),a=i.sortBy(n,(function(e){return t.node(e).rank}));return i.forEach(a,(function n(r){if(!i.has(e,r)){e[r]=!0;var a=t.node(r);o[a.rank].push(r),i.forEach(t.successors(r),n)}})),o}},function(t,e,n){"use strict";var i=n(13);function r(t,e,n){for(var r=i.zipObject(n,i.map(n,(function(t,e){return e}))),o=i.flatten(i.map(e,(function(e){return i.sortBy(i.map(t.outEdges(e),(function(e){return{pos:r[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var l=i.map(new Array(s),(function(){return 0})),c=0;return i.forEach(o.forEach((function(t){var e=t.pos+a;l[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=l[e+1]),l[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}t.exports=function(t,e){for(var n=0,i=1;i<e.length;++i)n+=r(t,e[i-1],e[i]);return n}},function(t,e,n){var i=n(13),r=n(537),o=n(538),a=n(539);t.exports=function t(e,n,s,l){var c=e.children(n),u=e.node(n),h=u?u.borderLeft:void 0,d=u?u.borderRight:void 0,p={};h&&(c=i.filter(c,(function(t){return t!==h&&t!==d})));var f=r(e,c);i.forEach(f,(function(n){if(e.children(n.v).length){var r=t(e,n.v,s,l);p[n.v]=r,i.has(r,"barycenter")&&(o=n,a=r,i.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var g=o(f,s);!function(t,e){i.forEach(t,(function(t){t.vs=i.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,p);var m=a(g,l);if(h&&(m.vs=i.flatten([h,m.vs,d],!0),e.predecessors(h).length)){var v=e.node(e.predecessors(h)[0]),y=e.node(e.predecessors(d)[0]);i.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+y.order)/(m.weight+2),m.weight+=2}return m}},function(t,e,n){var i=n(13);t.exports=function(t,e){return i.map(e,(function(e){var n=t.inEdges(e);if(n.length){var r=i.reduce(n,(function(e,n){var i=t.edge(n),r=t.node(n.v);return{sum:e.sum+i.weight*r.order,weight:e.weight+i.weight}}),{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}}))}},function(t,e,n){"use strict";var i=n(13);t.exports=function(t,e){var n={};return i.forEach(t,(function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};i.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)})),i.forEach(e.edges(),(function(t){var e=n[t.v],r=n[t.w];i.isUndefined(e)||i.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(i.isUndefined(e.barycenter)||i.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight),e.weight&&(n+=e.barycenter*e.weight,i+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function r(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),i.forEach(o.in.reverse(),n(o)),i.forEach(o.out,r(o))}return i.map(i.filter(e,(function(t){return!t.merged})),(function(t){return i.pick(t,["vs","i","barycenter","weight"])}))}(i.filter(n,(function(t){return!t.indegree})))}},function(t,e,n){var i=n(13),r=n(20);function o(t,e,n){for(var r;e.length&&(r=i.last(e)).i<=n;)e.pop(),t.push(r.vs),n++;return n}t.exports=function(t,e){var n,a=r.partition(t,(function(t){return i.has(t,"barycenter")})),s=a.lhs,l=i.sortBy(a.rhs,(function(t){return-t.i})),c=[],u=0,h=0,d=0;s.sort((n=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:n?e.i-t.i:t.i-e.i})),d=o(c,l,d),i.forEach(s,(function(t){d+=t.vs.length,c.push(t.vs),u+=t.barycenter*t.weight,h+=t.weight,d=o(c,l,d)}));var p={vs:i.flatten(c,!0)};return h&&(p.barycenter=u/h,p.weight=h),p}},function(t,e,n){var i=n(13),r=n(30).Graph;t.exports=function(t,e,n){var o=function(t){for(var e;t.hasNode(e=i.uniqueId("_root")););return e}(t),a=new r({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return i.forEach(t.nodes(),(function(r){var s=t.node(r),l=t.parent(r);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(r),a.setParent(r,l||o),i.forEach(t[n](r),(function(e){var n=e.v===r?e.w:e.v,o=a.edge(n,r),s=i.isUndefined(o)?0:o.weight;a.setEdge(n,r,{weight:t.edge(e).weight+s})})),i.has(s,"minRank")&&a.setNode(r,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),a}},function(t,e,n){var i=n(13);t.exports=function(t,e,n){var r,o={};i.forEach(n,(function(n){for(var i,a,s=t.parent(n);s;){if((i=t.parent(s))?(a=o[i],o[i]=s):(a=r,r=s),a&&a!==s)return void e.setEdge(a,s);s=i}}))}},function(t,e,n){"use strict";var i=n(13),r=n(20),o=n(543).positionX;t.exports=function(t){(function(t){var e=r.buildLayerMatrix(t),n=t.graph().ranksep,o=0;i.forEach(e,(function(e){var r=i.max(i.map(e,(function(e){return t.node(e).height})));i.forEach(e,(function(e){t.node(e).y=o+r/2})),o+=r+n}))})(t=r.asNonCompoundGraph(t)),i.forEach(o(t),(function(e,n){t.node(n).x=e}))}},function(t,e,n){"use strict";var i=n(13),r=n(30).Graph,o=n(20);function a(t,e){var n={};return i.reduce(e,(function(e,r){var o=0,a=0,s=e.length,c=i.last(r);return i.forEach(r,(function(e,u){var h=function(t,e){if(t.node(e).dummy)return i.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),d=h?t.node(h).order:s;(h||e===c)&&(i.forEach(r.slice(a,u+1),(function(e){i.forEach(t.predecessors(e),(function(i){var r=t.node(i),a=r.order;!(a<o||d<a)||r.dummy&&t.node(e).dummy||l(n,i,e)}))})),a=u+1,o=d)})),r})),n}function s(t,e){var n={};function r(e,r,o,a,s){var c;i.forEach(i.range(r,o),(function(r){c=e[r],t.node(c).dummy&&i.forEach(t.predecessors(c),(function(e){var i=t.node(e);i.dummy&&(i.order<a||i.order>s)&&l(n,e,c)}))}))}return i.reduce(e,(function(e,n){var o,a=-1,s=0;return i.forEach(n,(function(i,l){if("border"===t.node(i).dummy){var c=t.predecessors(i);c.length&&(o=t.node(c[0]).order,r(n,s,l,a,o),s=l,a=o)}r(n,s,n.length,o,e.length)})),n})),n}function l(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function c(t,e,n){if(e>n){var r=e;e=n,n=r}return i.has(t[e],n)}function u(t,e,n,r){var o={},a={},s={};return i.forEach(e,(function(t){i.forEach(t,(function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),i.forEach(e,(function(t){var e=-1;i.forEach(t,(function(t){var l=r(t);if(l.length)for(var u=((l=i.sortBy(l,(function(t){return s[t]}))).length-1)/2,h=Math.floor(u),d=Math.ceil(u);h<=d;++h){var p=l[h];a[t]===t&&e<s[p]&&!c(n,t,p)&&(a[p]=t,a[t]=o[t]=o[p],e=s[p])}}))})),{root:o,align:a}}function h(t,e,n,o,a){var s={},l=function(t,e,n,o){var a=new r,s=t.graph(),l=function(t,e,n){return function(r,o,a){var s,l=r.node(o),c=r.node(a),u=0;if(u+=l.width/2,i.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2}if(s&&(u+=n?s:-s),s=0,u+=(l.dummy?e:t)/2,u+=(c.dummy?e:t)/2,u+=c.width/2,i.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2}return s&&(u+=n?s:-s),s=0,u}}(s.nodesep,s.edgesep,o);return i.forEach(e,(function(e){var r;i.forEach(e,(function(e){var i=n[e];if(a.setNode(i),r){var o=n[r],s=a.edge(o,i);a.setEdge(o,i,Math.max(l(t,e,r),s||0))}r=e}))})),a}(t,e,n,a),c=a?"borderLeft":"borderRight";function u(t,e){for(var n=l.nodes(),i=n.pop(),r={};i;)r[i]?t(i):(r[i]=!0,n.push(i),n=n.concat(e(i))),i=n.pop()}return u((function(t){s[t]=l.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+l.edge(e))}),0)}),l.predecessors.bind(l)),u((function(e){var n=l.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-l.edge(e))}),Number.POSITIVE_INFINITY),i=t.node(e);n!==Number.POSITIVE_INFINITY&&i.borderType!==c&&(s[e]=Math.max(s[e],n))}),l.successors.bind(l)),i.forEach(o,(function(t){s[t]=s[n[t]]})),s}function d(t,e){return i.minBy(i.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return i.forIn(e,(function(e,i){var o=function(t,e){return t.node(e).width}(t,i)/2;n=Math.max(e+o,n),r=Math.min(e-o,r)})),n-r}))}function p(t,e){var n=i.values(e),r=i.min(n),o=i.max(n);i.forEach(["u","d"],(function(n){i.forEach(["l","r"],(function(a){var s,l=n+a,c=t[l];if(c!==e){var u=i.values(c);(s="l"===a?r-i.min(u):o-i.max(u))&&(t[l]=i.mapValues(c,(function(t){return t+s})))}}))}))}function f(t,e){return i.mapValues(t.ul,(function(n,r){if(e)return t[e.toLowerCase()][r];var o=i.sortBy(i.map(t,r));return(o[1]+o[2])/2}))}t.exports={positionX:function(t){var e,n=o.buildLayerMatrix(t),r=i.merge(a(t,n),s(t,n)),l={};i.forEach(["u","d"],(function(o){e="u"===o?n:i.values(n).reverse(),i.forEach(["l","r"],(function(n){"r"===n&&(e=i.map(e,(function(t){return i.values(t).reverse()})));var a=("u"===o?t.predecessors:t.successors).bind(t),s=u(t,e,r,a),c=h(t,e,s.root,s.align,"r"===n);"r"===n&&(c=i.mapValues(c,(function(t){return-t}))),l[o+n]=c}))}));var c=d(t,l);return p(l,c),f(l,t.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:c,verticalAlignment:u,horizontalCompaction:h,alignCoordinates:p,findSmallestWidthAlignment:d,balance:f}},function(t,e,n){var i=n(13),r=n(20),o=n(30).Graph;t.exports={debugOrdering:function(t){var e=r.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return i.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),i.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),i.forEach(e,(function(t,e){var r="layer"+e;n.setNode(r,{rank:"same"}),i.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},function(t,e){t.exports="0.8.5"},function(t,e,n){var i=n(94),r=n(547),o=n(129),a=n(48),s=function(t){var e,n;function i(){return t.apply(this,arguments)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.prototype.execute=function(){return o(this.rootNode,this.options,r)},i}(i),l={};t.exports=function(t,e){return e=a.assign({},l,e),new s(t,e).execute()}},function(t,e){function n(t,e,n,i){void 0===i&&(i=[]);var r=this;r.w=t||0,r.h=e||0,r.y=n||0,r.x=0,r.c=i||[],r.cs=i.length,r.prelim=0,r.mod=0,r.shift=0,r.change=0,r.tl=null,r.tr=null,r.el=null,r.er=null,r.msel=0,r.mser=0}function i(t,e){var n=function t(e,n){var i=n?e.y:e.x;return e.children.forEach((function(e){i=Math.min(t(e,n),i)})),i}(t,e);!function t(e,n,i){i?e.y+=n:e.x+=n,e.children.forEach((function(e){t(e,n,i)}))}(t,-n,e)}n.fromNode=function(t,e){if(!t)return null;var i=[];return t.children.forEach((function(t){i.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,i):new n(t.width,t.height,t.y,i)},t.exports=function(t,e){void 0===e&&(e={});var r=e.isHorizontal;function o(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function a(t,e,n){for(var i=t.c[e-1],r=i.mod,o=t.c[e],a=o.mod;null!==i&&null!==o;){u(i)>n.low&&(n=n.nxt);var h=r+i.prelim+i.w-(a+o.prelim);h>0&&(a+=h,s(t,e,n.index,h));var d=u(i),p=u(o);d<=p&&null!==(i=c(i))&&(r+=i.mod),d>=p&&null!==(o=l(o))&&(a+=o.mod)}!i&&o?function(t,e,n,i){var r=t.c[0].el;r.tl=n;var o=i-n.mod-t.c[0].msel;r.mod+=o,r.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,a):i&&!o&&function(t,e,n,i){var r=t.c[e].er;r.tr=n;var o=i-n.mod-t.c[e].mser;r.mod+=o,r.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,i,r)}function s(t,e,n,i){t.c[e].mod+=i,t.c[e].msel+=i,t.c[e].mser+=i,function(t,e,n,i){if(n!==e-1){var r=e-n;t.c[n+1].shift+=i/r,t.c[e].shift-=i/r,t.c[e].change-=i-i/r}}(t,e,n,i)}function l(t){return 0===t.cs?t.tl:t.c[0]}function c(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function u(t){return t.y+t.h}function h(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}!function t(e,n,i){void 0===i&&(i=0),n?(e.x=i,i+=e.width):(e.y=i,i+=e.height),e.children.forEach((function(e){t(e,n,i)}))}(t,r);var d=n.fromNode(t,r);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=h(u(e.c[0].el),0,null),i=1;i<e.cs;++i){t(e.c[i]);var r=u(e.c[i].er);a(e,i,n),n=h(r,i,n)}!function(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}(e),o(e)}else o(e)}(d),function t(e,n){n+=e.mod,e.x=e.prelim+n,function(t){for(var e=0,n=0,i=0;i<t.cs;i++)e+=t.c[i].shift,n+=e+t.c[i].change,t.c[i].mod+=n}(e);for(var i=0;i<e.cs;i++)t(e.c[i],n)}(d,0),function t(e,n,i){i?n.y=e.x:n.x=e.x,e.c.forEach((function(e,r){t(e,n.children[r],i)}))}(d,t,r),i(t,r),t}},function(t,e,n){var i=n(94),r=n(549),o=n(129),a=n(48),s=function(t){var e,n;function i(){return t.apply(this,arguments)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.prototype.execute=function(){return this.rootNode.width=0,o(this.rootNode,this.options,r)},i}(i),l={};t.exports=function(t,e){return e=a.assign({},l,e),new s(t,e).execute()}},function(t,e,n){var i=n(48);function r(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}var o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};t.exports=function(t,e){void 0===e&&(e={}),e=i.assign({},o,e);var n,a=0,s=function t(e){if(!e)return null;e.width=0,e.depth&&e.depth>a&&(a=e.depth);var n=e.children,i=n.length,o=new r(e.height,[]);return n.forEach((function(e,n){var r=t(e);o.children.push(r),0===n&&(o.leftChild=r),n===i-1&&(o.rightChild=r)})),o.originNode=e,o.isLeaf=e.isLeaf(),o}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=a;else{var n=e.children.map((function(e){return t(e)})),i=Math.min.apply(null,n);e.drawingDepth=i-1}return e.drawingDepth}(s),function t(i){i.x=i.drawingDepth*e.rankSep,i.isLeaf?(i.y=0,n&&(i.y=n.y+n.height+e.nodeSep,i.originNode.parent!==n.originNode.parent&&(i.y+=e.subTreeSep)),n=i):(i.children.forEach((function(e){t(e)})),i.y=(i.leftChild.y+i.rightChild.y)/2)}(s),function t(e,n,i){i?(n.x=e.x,n.y=e.y):(n.x=e.y,n.y=e.x),e.children.forEach((function(e,r){t(e,n.children[r],i)}))}(s,t,e.isHorizontal),t}},function(t,e,n){var i=n(94),r=n(551),o=n(227),a=n(48),s=["LR","RL","H"],l=s[0],c=function(t){var e,n;function i(){return t.apply(this,arguments)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,i=void 0===n?20:n,a=t.dropCap,c=void 0===a||a,u=t.direction||l;if(u&&-1===s.indexOf(u))throw new TypeError("Invalid direction: "+u);if(u===s[0])r(e,i,c);else if(u===s[1])r(e,i,c),e.right2left();else if(u===s[2]){var h=o(e,t),d=h.left,p=h.right;r(d,i,c),d.right2left(),r(p,i,c);var f=d.getBoundingBox();p.translate(f.width,0),e.x=p.x-e.width/2}return e},i}(i),u={};t.exports=function(t,e){return e=a.assign({},u,e),new c(t,e).execute()}},function(t,e){t.exports=function(t,e,n){var i=null;t.eachNode((function(t){!function(t,e,n,i){if(!i)try{if(t.id===t.parent.children[0].id)return t.x+=n*t.depth,void(t.y=e?e.y:0)}catch(t){}t.x+=n*t.depth,t.y=e?e.y+e.height:0}(t,i,e,n),i=t}))}},function(t,e,n){var i=n(94),r=n(553),o=n(129),a=n(48),s=function(t){var e,n;function i(){return t.apply(this,arguments)||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i.prototype.execute=function(){return o(this.rootNode,this.options,r)},i}(i),l={};t.exports=function(t,e){return e=a.assign({},l,e),new s(t,e).execute()}},function(t,e,n){var i=n(48),r={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=i.assign({},r,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,function t(e,n){var i=0;return e.children.length?e.children.forEach((function(e){i+=t(e,n)})):i=e.height,e._subTreeSep=n.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,i)+2*e._subTreeSep,e.totalHeight}(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var i=e[0];if(i.startY=t.startY+t._subTreeSep,1===n)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var r=1;r<n;r++){var o=e[r];o.startY=e[r-1].startY+e[r-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2}}}})),function t(e){var n=e.children,i=n.length;if(i){n.forEach((function(e){t(e)}));var r=n[0],o=n[i-1],a=o.y-r.y+o.height,s=0;if(n.forEach((function(t){s+=t.totalHeight})),a>e.height)e.y=r.y+a/2-e.height/2;else if(1!==n.length||e.height>s){var l=e.y+(e.height-a)/2-r.y;n.forEach((function(t){t.translate(0,l)}))}else e.y=(r.y+r.height/2+o.y+o.height/2)/2-e.height/2}}(t)}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return t&&"object"===n(t)&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";n.r(e),n.d(e,"registerNode",(function(){return cc})),n.d(e,"registerCombo",(function(){return hc})),n.d(e,"Graph",(function(){return Ho})),n.d(e,"TreeGraph",(function(){return Zo})),n.d(e,"Util",(function(){return Ea})),n.d(e,"registerEdge",(function(){return uc})),n.d(e,"Layout",(function(){return ho})),n.d(e,"Global",(function(){return J})),n.d(e,"registerLayout",(function(){return pc})),n.d(e,"Minimap",(function(){return fc})),n.d(e,"Grid",(function(){return gc})),n.d(e,"Bundling",(function(){return mc})),n.d(e,"Menu",(function(){return vc})),n.d(e,"Fisheye",(function(){return yc})),n.d(e,"registerBehavior",(function(){return dc})),n.d(e,"Algorithm",(function(){return c})),n.d(e,"ToolBar",(function(){return bc})),n.d(e,"Tooltip",(function(){return xc})),n.d(e,"TimeBar",(function(){return wc})),n.d(e,"ImageMinimap",(function(){return _c})),n.d(e,"EdgeFilterLens",(function(){return Cc}));var i={};n.r(i),n.d(i,"formatPadding",(function(){return k})),n.d(i,"cloneEvent",(function(){return E})),n.d(i,"isViewportChanged",(function(){return T})),n.d(i,"isNaN",(function(){return O})),n.d(i,"calculationItemsBBox",(function(){return P})),n.d(i,"processParallelEdges",(function(){return j}));var r={};n.r(r),n.d(r,"mixColor",(function(){return q})),n.d(r,"getColorsWithSubjectColor",(function(){return K}));var o={};n.r(o),n.d(o,"getLineIntersect",(function(){return Rt})),n.d(o,"getRectIntersectByPoint",(function(){return Bt})),n.d(o,"getCircleIntersectByPoint",(function(){return Nt})),n.d(o,"getEllipseIntersectByPoint",(function(){return Ft})),n.d(o,"applyMatrix",(function(){return zt})),n.d(o,"invertMatrix",(function(){return Vt})),n.d(o,"getCircleCenterByPoints",(function(){return Gt})),n.d(o,"distance",(function(){return Ht})),n.d(o,"scaleMatrix",(function(){return Wt})),n.d(o,"floydWarshall",(function(){return Ut})),n.d(o,"getAdjMatrix",(function(){return Zt})),n.d(o,"translate",(function(){return Yt})),n.d(o,"move",(function(){return Xt})),n.d(o,"scale",(function(){return qt})),n.d(o,"rotate",(function(){return Kt})),n.d(o,"getDegree",(function(){return Qt})),n.d(o,"isPointInPolygon",(function(){return $t})),n.d(o,"intersectBBox",(function(){return te})),n.d(o,"isPolygonsIntersect",(function(){return ee})),n.d(o,"Line",(function(){return ne})),n.d(o,"getBBoxBoundLine",(function(){return ie})),n.d(o,"itemIntersectByLine",(function(){return oe})),n.d(o,"fractionToLine",(function(){return ae})),n.d(o,"getPointsCenter",(function(){return se})),n.d(o,"squareDist",(function(){return le})),n.d(o,"pointLineSquareDist",(function(){return ce})),n.d(o,"isPointsOverlap",(function(){return ue})),n.d(o,"pointRectSquareDist",(function(){return he}));var a={};n.r(a),n.d(a,"getSpline",(function(){return ye})),n.d(a,"getControlPoint",(function(){return be})),n.d(a,"pointsToPolygon",(function(){return xe})),n.d(a,"pathToPoints",(function(){return we})),n.d(a,"getClosedSpline",(function(){return _e})),n.d(a,"roundedHull",(function(){return Se})),n.d(a,"paddedHull",(function(){return Me}));var s={};n.r(s),n.d(s,"getBBox",(function(){return un})),n.d(s,"getLoopCfgs",(function(){return hn})),n.d(s,"getLabelPosition",(function(){return dn})),n.d(s,"traverseTree",(function(){return gn})),n.d(s,"traverseTreeUp",(function(){return mn})),n.d(s,"radialLayout",(function(){return vn})),n.d(s,"getLetterWidth",(function(){return yn})),n.d(s,"getTextSize",(function(){return bn})),n.d(s,"plainCombosToTrees",(function(){return xn})),n.d(s,"reconstructTree",(function(){return wn})),n.d(s,"getComboBBox",(function(){return _n})),n.d(s,"getChartRegion",(function(){return Cn}));var l={};n.r(l),n.d(l,"default",(function(){return xs})),n.d(l,"assign",(function(){return ts})),n.d(l,"format",(function(){return ys})),n.d(l,"parse",(function(){return bs})),n.d(l,"defaultI18n",(function(){return rs})),n.d(l,"setGlobalDateI18n",(function(){return as})),n.d(l,"setGlobalDateMasks",(function(){return vs}));var c={};n.r(c),n.d(c,"depthFirstSearch",(function(){return Wl})),n.d(c,"breadthFirstSearch",(function(){return Zl})),n.d(c,"detectDirectedCycle",(function(){return Jl})),n.d(c,"degree",(function(){return So})),n.d(c,"adjMatrix",(function(){return Oo})),n.d(c,"floydWarshall",(function(){return Po})),n.d(c,"getConnectedComponents",(function(){return Xl})),n.d(c,"detectAllCycles",(function(){return Ql})),n.d(c,"detectAllDirectedCycle",(function(){return Kl})),n.d(c,"detectAllUndirectedCycle",(function(){return ql})),n.d(c,"findShortestPath",(function(){return tc})),n.d(c,"findAllPath",(function(){return ec})),n.d(c,"minimumSpanningTree",(function(){return sc})),n.d(c,"getPageRank",(function(){return lc}));var u,h=n(229),d=n(2),p=n.n(d),f=n(7),g={getDefaultCfg:function(){return{}},getEvents:function(){return{}},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(t){var e=this,n=this.events;this.graph=t,"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!0),p()(n,(function(e,n){t.on(n,e)})),document.addEventListener("visibilitychange",(function(){e.keydown=!1}))},unbind:function(t){var e=this.events;"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!1),p()(e,(function(e,n){t.off(n,e)}))},get:function(t){return this[t]},set:function(t,e){return this[t]=e,this}},m=function(){function t(){}return t.registerBehavior=function(e,n){if(!n)throw new Error("please specify handler for this behavior: "+e);var i=Object(f.clone)(g);Object.assign(i,n);var r=function(t){var e=this;Object.assign(this,this.getDefaultCfg(),t);var n=this.getEvents();this.events=null;var i={};n&&(Object(f.each)(n,(function(t,n){i[n]=Object(f.wrapBehavior)(e,t)})),this.events=i)};r.prototype=i,t.types[e]=r},t.hasBehavior=function(e){return!!t.types[e]},t.getBehavior=function(e){return t.types[e]},t.types={},t}();!function(t){t.CLICK="click",t.DBLCLICK="dblclick",t.MOUSEDOWN="mousedown",t.MOUDEUP="mouseup",t.CONTEXTMENU="contextmenu",t.MOUSEENTER="mouseenter",t.MOUSEOUT="mouseout",t.MOUSEOVER="mouseover",t.MOUSEMOVE="mousemove",t.MOUSELEAVE="mouseleave",t.DRAGSTART="dragstart",t.DRAGEND="dragend",t.DRAG="drag",t.DRAGENTER="dragenter",t.DRAGLEAVE="dragleave",t.DRAGOVER="dragover",t.DRAGOUT="dragout",t.DDROP="drop",t.KEYUP="keyup",t.KEYDOWN="keydown",t.WHEEL="wheel",t.FOCUS="focus",t.BLUR="blur",t.TOUCHSTART="touchstart",t.TOUCHMOVE="touchmove",t.TOUCHEND="touchend",t.NODE_CONTEXTMENU="node:contextmenu",t.NODE_CLICK="node:click",t.NODE_DBLCLICK="node:dblclick",t.NODE_MOUSEDOWN="node:mousedown",t.NODE_MOUSEUP="node:mouseup",t.NODE_MOUSEENTER="node:mouseenter",t.NODE_MOUSELEAVE="node:mouseleave",t.NODE_MOUSEMOVE="node:mousemove",t.NODE_MOUSEOUT="node:mouseout",t.NODE_MOUSEOVER="node:mouseover",t.NODE_DROP="node:drop",t.NODE_DRAGOVER="node:dragover",t.NODE_DRAGENTER="node:dragenter",t.NODE_DRAGLEAVE="node:dragleave",t.NODE_DRAGSTART="node:dragstart",t.NODE_DRAG="node:drag",t.NODE_DRAGEND="node:dragend",t.COMBO_CONTEXTMENU="combo:contextmenu",t.COMBO_CLICK="combo:click",t.COMBO_DBLCLICK="combo:dblclick",t.COMBO_MOUSEDOWN="combo:mousedown",t.COMBO_MOUSEUP="combo:mouseup",t.COMBO_MOUSEENTER="combo:mouseenter",t.COMBO_MOUSELEAVE="combo:mouseleave",t.COMBO_MOUSEMOVE="combo:mousemove",t.COMBO_MOUSEOUT="combo:mouseout",t.COMBO_MOUSEOVER="combo:mouseover",t.COMBO_DROP="combo:drop",t.COMBO_DRAGOVER="combo:dragover",t.COMBO_DRAGENTER="combo:dragenter",t.COMBO_DRAGLEAVE="combo:dragleave",t.COMBO_DRAGSTART="combo:dragstart",t.COMBO_DRAG="combo:drag",t.COMBO_DRAGEND="combo:dragend",t.EDGE_CONTEXTMENU="edge:contextmenu",t.EDGE_CLICK="edge:click",t.EDGE_DBLCLICK="edge:dblclick",t.EDGE_MOUSEDOWN="edge:mousedown",t.EDGE_MOUSEUP="edge:mouseup",t.EDGE_MOUSEENTER="edge:mouseenter",t.EDGE_MOUSELEAVE="edge:mouseleave",t.EDGE_MOUSEMOVE="edge:mousemove",t.EDGE_MOUSEOUT="edge:mouseout",t.EDGE_MOUSEOVER="edge:mouseover",t.EDGE_DROP="edge:drop",t.EDGE_DRAGOVER="edge:dragover",t.EDGE_DRAGENTER="edge:dragenter",t.EDGE_DRAGLEAVE="edge:dragleave",t.CANVAS_CONTEXTMENU="canvas:contextmenu",t.CANVAS_CLICK="canvas:click",t.CANVAS_DBLCLICK="canvas:dblclick",t.CANVAS_MOUSEDOWN="canvas:mousedown",t.CANVAS_MOUSEUP="canvas:mouseup",t.CANVAS_MOUSEENTER="canvas:mouseenter",t.CANVAS_MOUSELEAVE="canvas:mouseleave",t.CANVAS_MOUSEMOVE="canvas:mousemove",t.CANVAS_MOUSEOUT="canvas:mouseout",t.CANVAS_MOUSEOVER="canvas:mouseover",t.CANVAS_DROP="canvas:drop",t.CANVAS_DRAGENTER="canvas:dragenter",t.CANVAS_DRAGLEAVE="canvas:dragleave",t.CANVAS_DRAGSTART="canvas:dragstart",t.CANVAS_DRAG="canvas:drag",t.CANVAS_DRAGEND="canvas:dragend",t.BEFORERENDER="beforerender",t.AFTERRENDER="afterrender",t.BEFOREADDITEM="beforeadditem",t.AFTERADDITEM="afteradditem",t.BEFOREREMOVEITEM="beforeremoveitem",t.AFTERREMOVEITEM="afterremoveitem",t.BEFOREUPDATEITEM="beforeupdateitem",t.AFTERUPDATEITEM="afterupdateitem",t.BEFOREITEMVISIBILITYCHANGE="beforeitemvisibilitychange",t.AFTERITEMVISIBILITYCHANGE="afteritemvisibilitychange",t.BEFOREITEMSTATECHANGE="beforeitemstatechange",t.AFTERITEMSTATECHANGE="afteritemstatechange",t.BEFOREITEMREFRESH="beforeitemrefresh",t.AFTERITEMREFRESH="afteritemrefresh",t.BEFOREITEMSTATESCLEAR="beforeitemstatesclear",t.AFTERITEMSTATESCLEAR="afteritemstatesclear",t.BEFOREMODECHANGE="beforemodechange",t.AFTERMODECHANGE="aftermodechange",t.BEFORELAYOUT="beforelayout",t.AFTERLAYOUT="afterlayout",t.BEFORECREATEEDGE="beforecreateedge",t.AFTERCREATEEDGE="aftercreateedge",t.BEFOREGRAPHREFRESHPOSITION="beforegraphrefreshposition",t.AFTERGRAPHREFRESHPOSITION="aftergraphrefreshposition",t.BEFOREGRAPHREFRESH="beforegraphrefresh",t.AFTERGRAPHREFRESH="aftergraphrefresh",t.BEFOREANIMATE="beforeanimate",t.AFTERANIMATE="afteranimate",t.BEFOREPAINT="beforepaint",t.AFTERPAINT="afterpaint",t.GRAPHSTATECHANGE="graphstatechange",t.AFTERACTIVATERELATIONS="afteractivaterelations",t.NODESELECTCHANGE="nodeselectchange",t.TOOLTIPCHANGE="tooltipchange",t.WHEELZOOM="wheelzoom",t.VIEWPORTCHANGE="viewportchange",t.DRAGNODEEND="dragnodeend",t.STACKCHANGE="stackchange"}(u||(u={}));var v=n(4),y=n.n(v),b=n(10),x=n.n(b),w=n(11),_=n.n(w),C=n(3),A=n.n(C),I=n(1),S=n(230),M=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.item=n.item,i.canvasX=n.canvasX,i.canvasY=n.canvasY,i.wheelDelta=n.wheelDelta,i.detail=n.detail,i}return Object(I.__extends)(e,t),e}(n.n(S).a),k=function(t){var e=0,n=0,i=0,r=0;return _()(t)?e=n=i=r=t:A()(t)?e=n=i=r=parseInt(t,10):y()(t)&&(e=t[0],i=x()(t[1])?t[0]:t[1],r=x()(t[2])?t[0]:t[2],n=x()(t[3])?i:t[3]),[e,i,r,n]},E=function(t){var e=new M(t.type,t);return e.clientX=t.clientX,e.clientY=t.clientY,e.x=t.x,e.y=t.y,e.target=t.target,e.currentTarget=t.currentTarget,e.bubbles=!0,e.item=t.item,e},T=function(t){if(!t)return!1;for(var e=[1,0,0,0,1,0,0,0,1],n=0;n<9;n++)if(t[n]!==e[n])return!0;return!1},O=function(t){return Number.isNaN(Number(t))},P=function(t){for(var e=1/0,n=-1/0,i=1/0,r=-1/0,o=0;o<t.length;o++){var a=t[o].getBBox(),s=a.minX,l=a.minY,c=a.maxX,u=a.maxY;s<e&&(e=s),l<i&&(i=l),c>n&&(n=c),u>r&&(r=u)}return{x:Math.floor(e),y:Math.floor(i),width:Math.ceil(n)-Math.floor(e),height:Math.ceil(r)-Math.floor(i),minX:e,minY:i,maxX:n,maxY:r}},j=function(t,e){void 0===e&&(e=15);for(var n=t.length,i=2*e,r=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],o={},a=[],s={},l=0;l<n;l++){var c=t[l],u=c.source,h=c.target,d=u+"-"+h;if(!a[l]){o[d]||(o[d]=[]),a[l]=!0,o[d].push(c);for(var p=0;p<n;p++)if(l!==p){var f=t[p],g=f.source,m=f.target;a[p]||(u===m&&h===g?(o[d].push(f),a[p]=!0,s[g+"|"+m+"|"+(o[d].length-1)]=!0):u===g&&h===m&&(o[d].push(f),a[p]=!0))}}}for(var v in o)for(var y=o[v],b=y.length,x=0;x<b;x++){var w=y[x];if(w.source!==w.target){w.type="quadratic";var _=(x%2==0?1:-1)*(s[w.source+"|"+w.target+"|"+x]?-1:1);w.curveOffset=b%2==1?_*Math.ceil(x/2)*i:_*(Math.floor(x/2)*i+e)}else w.type="loop",w.loopCfg={position:r[x%8],dist:20*Math.floor(x/8)+50}}return t},L=Math.abs,D=["shift","ctrl","alt","control"],R={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0}},getEvents:function(){return{dragstart:"onMouseDown",mousedown:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp",mouseup:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onMouseDown",touchmove:"onMouseMove",touchend:"onMouseUp"}},updateViewport:function(t){var e=this.origin,n=+t.clientX,i=+t.clientY;if(!O(n)&&!O(i)){var r=n-e.x,o=i-e.y;"x"===this.get("direction")?o=0:"y"===this.get("direction")&&(r=0),this.origin={x:n,y:i};var a=this.graph.get("width"),s=this.graph.get("height"),l=this.graph.get("canvas").getCanvasBBox();(l.minX<=a+this.scalableRange&&l.minX+r>a+this.scalableRange||l.maxX+this.scalableRange>=0&&l.maxX+this.scalableRange+r<0)&&(r=0),(l.minY<=s+this.scalableRange&&l.minY+o>s+this.scalableRange||l.maxY+this.scalableRange>=0&&l.maxY+this.scalableRange+o<0)&&(o=0),this.graph.translate(r,o)}},onMouseDown:function(t){var e=t.originalEvent;if((!e||0===e.button)&&(t.name===u.TOUCHSTART||!window||!window.event||"undefined"==typeof window||window.event.buttons||window.event.button)&&!this.keydown&&!t.shape&&(this.origin={x:t.clientX,y:t.clientY},this.dragging=!1,this.enableOptimize)){for(var n=this.graph,i=n.getEdges(),r=0,o=i.length;r<o;r++){var a=i[r].get("group").get("children");a&&a.forEach((function(t){t.hide()}))}for(var s=n.getNodes(),l=0,c=s.length;l<c;l++)for(var h=0,d=s[l].getContainer().get("children");h<d.length;h++){var p=d[h];p.get("isKeyShape")||p.hide()}}},onMouseMove:function(t){var e=this.graph;if(!this.keydown&&!t.shape&&(t=E(t),this.origin)){if(this.dragging)t.type="drag",e.emit("canvas:drag",t);else{if(L(this.origin.x-t.clientX)+L(this.origin.y-t.clientY)<10)return;this.shouldBegin.call(this,t)&&(t.type="dragstart",e.emit("canvas:dragstart",t),this.dragging=!0)}this.shouldUpdate.call(this,t)&&this.updateViewport(t)}},onMouseUp:function(t){var e=this.graph;if(!this.keydown&&!t.shape){if(this.enableOptimize){for(var n=e.getEdges(),i=0,r=n.length;i<r;i++){var o=n[i].get("group").get("children");o&&o.forEach((function(t){t.show()}))}for(var a=e.getNodes(),s=0,l=a.length;s<l;s++)for(var c=0,u=a[s].getContainer().get("children");c<u.length;c++){var h=u[c];h.get("isKeyShape")||h.show()}}this.dragging?(t=E(t),this.shouldEnd.call(this,t)&&this.updateViewport(t),t.type="dragend",e.emit("canvas:dragend",t),this.endDrag()):this.origin=null}},endDrag:function(){this.origin=null,this.dragging=!1,this.dragbegin=!1},onKeyDown:function(t){var e=t.key;e&&(D.indexOf(e.toLowerCase())>-1?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1}},B=n(70),N=n.n(B),F=n(71),z=n.n(F),V=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function G(t,e,n){var i;return(i=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-2*e:Math.round(t.h)+2*e:n?Math.round(t.h)+2*e:Math.round(t.h)-2*e)<0?i+=360:i>=360&&(i-=360),i}function H(t,e,n){return 0===t.h&&0===t.s?t.s:((i=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(i=1),n&&5===e&&i>.1&&(i=.1),i<.06&&(i=.06),Number(i.toFixed(2)));var i}function W(t,e,n){var i;return(i=n?t.v+.05*e:t.v-.15*e)>1&&(i=1),Number(i.toFixed(2))}function U(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=z()(t),r=5;r>0;r-=1){var o=i.toHsv(),a=z()({h:G(o,r,!0),s:H(o,r,!0),v:W(o,r,!0)}).toHexString();n.push(a)}n.push(i.toHexString());for(var s=1;s<=4;s+=1){var l=i.toHsv(),c=z()({h:G(l,s),s:H(l,s),v:W(l,s)}).toHexString();n.push(c)}return"dark"===e.theme?V.map((function(t){var i=t.index,r=t.opacity;return z.a.mix(e.backgroundColor||"#141414",n[i],100*r).toHexString()})):n}var Z={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Y={},X={};Object.keys(Z).forEach((function(t){Y[t]=U(Z[t]),Y[t].primary=Y[t][5],X[t]=U(Z[t],{theme:"dark",backgroundColor:"#141414"}),X[t].primary=X[t][5]})),Y.red,Y.volcano,Y.gold,Y.orange,Y.yellow,Y.lime,Y.green,Y.cyan,Y.blue,Y.geekblue,Y.purple,Y.magenta,Y.grey;var q=function(t,e,n){var i=N()(t),r=N()(e);return N()([(1-n)*i.color[0]+n*r.color[0],(1-n)*i.color[1]+n*r.color[1],(1-n)*i.color[2]+n*r.color[2]]).rgb()},K=function(t,e,n,i){void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===i&&(i="rgb(150, 150, 150)");var r=q(e,t,.05).rgb().toString(),o=q(e,i,.02).rgb().toString(),a=q(e,i,.05).rgb().toString(),s=q(e,i,.1).rgb().toString(),l=q(e,i,.2).rgb().toString(),c=q(e,i,.3).rgb().toString(),u=U(t,{theme:n,backgroundColor:e}),h=N()(t).hex().toLowerCase(),d=u.indexOf(h),p=t;return-1!==d&&(p=u[d+1]),{mainStroke:t,mainFill:q(e,t,.1).rgb().toString(),activeStroke:t,activeFill:r,inactiveStroke:q(e,t,.4).rgb().toString(),inactiveFill:r,selectedStroke:t,selectedFill:e,highlightStroke:p,highlightFill:q(e,t,.2).rgb().toString(),disableStroke:c,disableFill:a,edgeMainStroke:c,edgeActiveStroke:t,edgeInactiveStroke:l,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:s,comboMainStroke:c,comboMainFill:o,comboActiveStroke:t,comboActiveFill:r,comboInactiveStroke:c,comboInactiveFill:o,comboSelectedStroke:t,comboSelectedFill:o,comboHighlightStroke:p,comboHighlightFill:o,comboDisableStroke:l,comboDisableFill:a}},Q=K("rgb(95, 149, 255)","rgb(255, 255, 255)"),J={version:"3.8.5",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",customGroupContainerClassName:"custom-group-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:Q.mainStroke,fill:Q.mainFill},size:20,color:Q.mainStroke,linkPoints:{size:8,lineWidth:1,fill:Q.activeFill,stroke:Q.activeStroke}},nodeStateStyles:{active:{fill:Q.activeFill,stroke:Q.activeStroke,lineWidth:2,shadowColor:Q.mainStroke,shadowBlur:10},selected:{fill:Q.selectedFill,stroke:Q.selectedStroke,lineWidth:4,shadowColor:Q.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:Q.highlightFill,stroke:Q.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:Q.inactiveFill,stroke:Q.inactiveStroke,lineWidth:1},disable:{fill:Q.disableFill,stroke:Q.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:"rgb(0, 0, 0)",textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:Q.edgeMainStroke,lineAppendWidth:2},color:Q.edgeMainStroke},edgeStateStyles:{active:{stroke:Q.edgeActiveStroke,lineWidth:1},selected:{stroke:Q.edgeSelectedStroke,lineWidth:2,shadowColor:Q.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Q.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:Q.edgeInactiveStroke,lineWidth:1},disable:{stroke:Q.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:"rgb(0, 0, 0)",textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:Q.comboMainFill,lineWidth:1,stroke:Q.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:Q.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:Q.comboActiveStroke,lineWidth:1,fill:Q.comboActiveFill},selected:{stroke:Q.comboSelectedStroke,lineWidth:2,fill:Q.comboSelectedFill,shadowColor:Q.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Q.comboHighlightStroke,lineWidth:2,fill:Q.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:Q.comboInactiveStroke,fill:Q.comboInactiveFill,lineWidth:1},disable:{stroke:Q.comboDisableStroke,fill:Q.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"},$={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected"}},getEvents:function(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas"}},validationCombo:function(t){return!(!this.origin||!t||t.destroyed)&&"combo"===t.getType()},onDragStart:function(t){var e=this;if(this.shouldBegin.call(this,t)){var n=t.item;if(n&&!n.destroyed&&!n.hasLocked()){n.getContainer().set("capture",!1);var i=t.target;if(i&&i.get("isAnchorPoint"))return;var r=this.graph;this.targets=[],this.targetCombo=null;var o=r.findAllByState("node",this.selectedState),a=n.get("id");0===o.filter((function(t){var e=t.get("id");return a===e})).length?this.targets.push(n):o.length>1?o.forEach((function(t){t.hasLocked()||e.targets.push(t)})):this.targets.push(n);var s=[];this.targets.forEach((function(t){s.push(Object(f.clone)(t.getModel()))})),this.set("beforeDragNodes",s),this.origin={x:t.x,y:t.y},this.point={},this.originPoint={}}}},onDrag:function(t){var e=this;this.origin&&this.shouldUpdate(this,t)&&(this.get("enableDelegate")?this.updateDelegate(t):this.targets.map((function(n){e.update(n,t)})))},onDragEnd:function(t){if(this.origin&&this.shouldEnd.call(this,t)){var e=t.item;e&&e.getContainer().set("capture",!0),this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.updatePositions(t);var n=this.graph;if(n.get("enabledStack")){var i={before:{nodes:this.get("beforeDragNodes"),edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.targets.forEach((function(t){i.after.nodes.push(t.getModel())})),n.pushStack("update",Object(f.clone)(i))}n.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(t){var e=t.item;if(this.validationCombo(e)){this.updatePositions(t);var n=this.graph;if(this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)n.updateCombos();else{var i=e.getModel();this.targets.map((function(t){t.getModel().comboId!==i.id&&n.updateComboTree(t,i.id)})),n.updateCombo(e)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(t){var e=this.graph;this.targets&&0!==this.targets.length&&(this.updatePositions(t),this.onlyChangeComboSize?e.updateCombos():this.targets.map((function(t){t.getModel().comboId&&e.updateComboTree(t)})))},onDropNode:function(t){if(this.targets&&0!==this.targets.length){var e=t.item;this.updatePositions(t);var n=this.graph,i=e.getModel().comboId;if(i){var r=n.findById(i);this.comboActiveState&&n.setItemState(r,this.comboActiveState,!1),this.targets.map((function(t){var e=t.getModel();i!==e.comboId&&n.updateComboTree(t,i)})),n.updateCombo(r)}else this.targets.map((function(t){t.getModel().comboId&&n.updateComboTree(t)}));n.emit("dragnodeend",{items:this.targets,targetItem:e})}},onDragEnter:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!0)}},onDragLeave:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1)}},updatePositions:function(t){var e=this;this.targets&&0!==this.targets.length&&this.get("enableDelegate")&&this.targets.map((function(n){return e.update(n,t)}))},update:function(t,e){var n=this.origin,i=t.get("model"),r=t.get("id");this.point[r]||(this.point[r]={x:i.x||0,y:i.y||0});var o={x:e.x-n.x+this.point[r].x,y:e.y-n.y+this.point[r].y};this.get("updateEdge")?this.graph.updateItem(t,o,!1):t.updatePosition(o)},updateDelegate:function(t){if(this.graph,this.delegateRect){var e=t.x-this.origin.x+this.originPoint.minX,n=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:e,y:n})}else{var i=this.graph.get("group"),r=Object(f.deepMix)({},J.delegateStyle,this.delegateStyle),o=this.calculationGroupPosition(t),a=o.x,s=o.y,l=o.width,c=o.height,u=o.minX,h=o.minY;this.originPoint={x:a,y:s,width:l,height:c,minX:u,minY:h},this.delegateRect=i.addShape("rect",{attrs:Object(I.__assign)({width:l,height:c,x:a,y:s},r),name:"rect-delegate-shape"}),this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.graph.findAllByState("node",this.selectedState);0===e.length&&e.push(t.item);for(var n=1/0,i=-1/0,r=1/0,o=-1/0,a=0;a<e.length;a++){var s=e[a].getBBox(),l=s.minX,c=s.minY,u=s.maxX,h=s.maxY;l<n&&(n=l),c<r&&(r=c),u>i&&(i=u),h>o&&(o=h)}return{x:Math.floor(n),y:Math.floor(r),width:Math.ceil(i)-Math.floor(n),height:Math.ceil(o)-Math.floor(r),minX:n,minY:r}}},tt=Math.min,et=Math.max,nt=Math.abs,it=["drag","shift","ctrl","alt","control"],rt={getDefaultCfg:function(){return{brushStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},selectedState:"selected",trigger:"shift",includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return it.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="shift",console.warn("Behavior brush-select 的 trigger 参数不合法，请输入 'drag'、'shift'、'ctrl' 或 'alt'")),"drag"===this.trigger?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,n=this.brush;e||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&this.updateBrush(t)},onMouseUp:function(t){this.graph,(this.brush||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this.graph,e=this.selectedState,n=t.findAllByState("node",e),i=t.findAllByState("edge",e);n.forEach((function(n){return t.setItemState(n,e,!1)})),i.forEach((function(n){return t.setItemState(n,e,!1)})),this.selectedNodes=[],this.selectedEdges=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedNodes:function(t){var e=this,n=this.graph,i=this.originPoint,r=this.shouldUpdate,o=this.selectedState,a={x:t.x,y:t.y},s=n.getPointByCanvas(i.x,i.y),l=tt(a.x,s.x),c=et(a.x,s.x),u=tt(a.y,s.y),h=et(a.y,s.y),d=[],p=[];n.getNodes().forEach((function(t){var e=t.getBBox();if(e.centerX>=l&&e.centerX<=c&&e.centerY>=u&&e.centerY<=h&&r(t,"select")){d.push(t);var i=t.getModel();p.push(i.id),n.setItemState(t,o,!0)}}));var f=[];this.includeEdges&&d.forEach((function(t){t.getOutEdges().forEach((function(t){var i=t.getModel(),o=i.source,a=i.target;p.includes(o)&&p.includes(a)&&r(t,"select")&&(f.push(t),n.setItemState(t,e.selectedState,!0))}))})),this.selectedEdges=f,this.selectedNodes=d,this.onSelect&&this.onSelect(d,f),n.emit("nodeselectchange",{selectedItems:{nodes:d,edges:f},select:!0})},createBrush:function(){var t=this.graph.get("canvas").addShape("rect",{attrs:this.brushStyle,capture:!1,name:"brush-shape"});return this.brush=t,t},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:nt(t.canvasX-e.x),height:nt(t.canvasY-e.y),x:tt(t.canvasX,e.x),y:tt(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),i=e.toLowerCase();this.keydown=i===n||"control"===i&&"ctrl"===n||"ctrl"===i&&"control"===n}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}},ot=["shift","ctrl","alt","control"],at={getDefaultCfg:function(){return{multiple:!0,trigger:"shift",selectedState:"selected"}},getEvents:function(){return ot.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="shift",console.warn("Behavior brush-select 的 trigger 参数不合法，请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.multiple?{"node:click":"onClick","combo:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,n=t.item;if(n&&!n.destroyed){var i=n.getType(),r=this,o=r.graph,a=r.keydown,s=r.multiple,l=r.shouldUpdate;if(r.shouldBegin.call(this,t)){if(!a||!s){var c=o.findAllByState(i,this.selectedState);p()(c,(function(t){t!==n&&o.setItemState(t,e.selectedState,!1)}))}if(n.hasState(this.selectedState)){l.call(this,t)&&o.setItemState(n,this.selectedState,!1);var u=o.findAllByState("node",this.selectedState),h=o.findAllByState("combo",this.selectedState);o.emit("nodeselectchange",{target:n,selectedItems:{nodes:u,combos:h},select:!1})}else l.call(this,t)&&o.setItemState(n,this.selectedState,!0),u=o.findAllByState("node",this.selectedState),h=o.findAllByState("combo",this.selectedState),o.emit("nodeselectchange",{target:n,selectedItems:{nodes:u,combos:h},select:!0})}}},onCanvasClick:function(){var t=this,e=this.graph,n=e.findAllByState("node",this.selectedState);p()(n,(function(n){e.setItemState(n,t.selectedState,!1)}));var i=e.findAllByState("combo",this.selectedState);p()(i,(function(n){e.setItemState(n,t.selectedState,!1)})),e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1}},st=n(16);st.translate=function(t,e,n){var i=new Array(9);return st.fromTranslation(i,n),st.multiply(t,i,e)},st.rotate=function(t,e,n){var i=new Array(9);return st.fromRotation(i,n),st.multiply(t,i,e)},st.scale=function(t,e,n){var i=new Array(9);return st.fromScaling(i,n),st.multiply(t,i,e)},st.transform=function(t,e){for(var n=[].concat(t),i=0,r=e.length;i<r;i++){var o=e[i];switch(o[0]){case"t":st.translate(n,n,[o[1],o[2]]);break;case"s":st.scale(n,n,[o[1],o[2]]);break;case"r":st.rotate(n,n,o[1])}}return n};var lt=st,ct=n(26),ut=n(0);ct.angle=function(t,e){var n=ct.dot(t,e)/(ct.length(t)*ct.length(e));return Math.acos(Object(ut.clamp)(n,-1,1))},ct.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},ct.angleTo=function(t,e,n){var i=ct.angle(t,e),r=ct.direction(t,e)>=0;return n?r?2*Math.PI-i:i:r?i:2*Math.PI-i},ct.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t};var ht=ct,dt=n(131),pt=function(t,e){var n=t?Object(ut.clone)(t):[1,0,0,0,1,0,0,0,1];return Object(ut.each)(e,(function(t){switch(t[0]){case"t":lt.translate(n,n,[t[1],t[2]]);break;case"s":lt.scale(n,n,[t[1],t[2]]);break;case"r":lt.rotate(n,n,t[1]);break;case"m":lt.multiply(n,n,t[1]);break;default:return!1}})),n},ft={getDefaultCfg:function(){return{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.7,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"}}},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],i=e[1];t.preventDefault(),i&&(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,i&&(this.endPoint={pageX:i.pageX,pageY:i.pageY}),this.originScale=this.currentScale||1)},onTouchMove:function(t){if(this.moveable){t.preventDefault();var e=t.originalEvent.touches,n=e[0],i=e[1];if(i){this.endPoint||(this.endPoint={pageX:i.pageX,pageY:i.pageY});var r=function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)},o=r({x:n.pageX,y:n.pageY},{x:i.pageX,y:i.pageY})/r({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),a=this.originScale*o;this.currentScale=a;var s=this.get("minZoom")||this.graph.get("minZoom");if(!(a>(this.get("maxZoom")||this.graph.get("maxZoom"))||a<s)){var l=this.graph.get("canvas").getPointByClient(t.clientX,t.clientY);this.graph.zoomTo(a,{x:l.x,y:l.y}),this.graph.emit("wheelzoom",t)}}}},onTouchEnd:function(){this.moveable=!1,this.endPoint=null},onWheel:function(t){var e=this,n=this.graph,i=this.fixSelectedItems;if(this.shouldUpdate.call(this,t)){t.preventDefault();var r,o=n.get("canvas").getPointByClient(t.clientX,t.clientY),a=this.get("sensitivity"),s=n.getZoom();r=s*(t.wheelDelta<0?1-.05*a:1/(1-.05*a));var l=this.get("minZoom")||n.get("minZoom");if(!(r>(this.get("maxZoom")||n.get("maxZoom"))||r<l)){if(this.get("enableOptimize")){var c=this.get("optimizeZoom"),u=this.get("optimized"),h=n.getNodes(),d=n.getEdges(),p=h.length,f=d.length;if(!u){for(var g=0;g<p;g++)if(!(I=h[g]).destroyed)for(var m=(Y=I.get("group").get("children")).length,v=0;v<m;v++)(D=Y[v]).destoryed||D.get("isKeyShape")||D.hide();for(var y=0;y<f;y++)for(m=(Y=(Z=d[y]).get("group").get("children")).length,v=0;v<m;v++)(D=Y[v]).hide();this.set("optimized",!0)}clearTimeout(this.get("timeout"));var b=setTimeout((function(){var t=n.getZoom();if(e.get("optimized")){e.set("optimized",!1);for(var i=0;i<p;i++){var r=h[i],o=(l=r.get("group").get("children")).length;if(t<c)r.getKeyShape().show();else for(var a=0;a<o;a++)(g=l[a]).get("visible")||g.show()}for(var s=0;s<f;s++){var l,u=d[s];if(o=(l=u.get("group").get("children")).length,t<c)u.getKeyShape().show();else for(a=0;a<o;a++){var g;(g=l[a]).get("visible")||g.show()}}}}),500);this.set("timeout",b)}if(s<=1){var x=void 0,w=void 0;if(i.fixAll||i.fixLineWidth||i.fixLabel){x=n.findAllByState("node",i.fixState),w=n.findAllByState("edge",i.fixState);for(var _=s/r,C=x.length,A=0;A<C;A++){var I,S=(I=x[A]).getContainer(),M=I.getModel(),k=I.getOriginStyle(),E=I.getStateStyle(i.fixState),T=I.get("shapeFactory").getShape(M.shape||M.type).getStateStyle(i.fixState,I)[i.fixState];if(i.fixAll){if(r<=1){var O=Object(ut.clone)(S.getMatrix());O||(O=[1,0,0,0,1,0,0,0,1]);var P=I.getModel(),j=P.x,L=P.y;lt.translate(O,O,[-j,-L]),lt.scale(O,O,[_,_]),lt.translate(O,O,[j,L]),S.setMatrix(O)}}else for(m=(Y=S.get("children")).length,v=0;v<m;v++){var D=Y[v],R=void 0,B=void 0;if(i.fixLabel&&"text"===D.get("type")){R=D.attr("fontSize")||12;var N=E[D.get("name")],F=T[D.get("name")],z=N?N.fontSize:12,V=F?F.fontSize:12,G=z||V||12;if(r<=1&&D.attr("fontSize",G/r),B)break}if(i.fixLineWidth&&D.get("isKeyShape")){B=D.attr("lineWidth")||0;var H=E.lineWidth||T.lineWidth||k.lineWidth||0;if(r<=1&&D.attr("lineWidth",H/r),R)break}}}for(var W=w.length,U=0;U<W;U++){var Z,Y=(S=(Z=w[U]).getContainer()).get("children");for(M=Z.getModel(),E=Z.getStateStyle(i.fixState),T=Z.get("shapeFactory").getShape(M.shape||M.type).getStateStyle(i.fixState,Z)[i.fixState],m=Y.length,v=0;v<m;v++){if(D=Y[v],R=void 0,B=void 0,(i.fixLabel||i.fixAll)&&"text"===D.get("type")&&(R=D.attr("fontSize")||12,N=E[D.get("name")],F=T[D.get("name")],z=N?N.fontSize:12,V=F?F.fontSize:12,G=z||V||12,r<=1&&D.attr("fontSize",G/r),B))break;if((i.fixLineWidth||i.fixAll)&&D.get("isKeyShape")&&(B=D.attr("lineWidth")||0,H=E.lineWidth||T.lineWidth||1,r<=1&&D.attr("lineWidth",H/r),R))break}}}}n.zoomTo(r,{x:o.x,y:o.y}),n.emit("wheelzoom",t)}}}},gt=n(5),mt=n.n(gt),vt=n(8),yt=n.n(vt),bt={onMouseEnter:function(t){var e=t.item;this.currentTarget=e,this.showTooltip(t),this.graph.emit("tooltipchange",{item:t.item,action:"show"})},onMouseMove:function(t){this.shouldUpdate(t)?this.currentTarget&&t.item===this.currentTarget&&this.updatePosition(t):this.hideTooltip()},onMouseLeave:function(t){this.shouldEnd(t)&&(this.hideTooltip(),this.graph.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null)},showTooltip:function(t){var e=this.container;if(t.item&&!t.item.destroyed){e||(e=this.createTooltip(this.graph.get("canvas")),this.container=e);var n=this.formatText(t.item.get("model"),t);e.innerHTML=n,mt()(this.container,{visibility:"visible"}),this.updatePosition(t)}},hideTooltip:function(){mt()(this.container,{visibility:"hidden"})},updatePosition:function(t){var e=this.get("shouldBegin"),n=this.width,i=this.height,r=this.container,o=this.graph;if(e(t)){var a=o.getPointByClient(t.clientX,t.clientY),s=o.getCanvasByPoint(a.x,a.y),l=s.x,c=s.y,u=r.getBoundingClientRect();l>n/2?l-=u.width:l+=this.offset,c>i/2?c-=u.height:c+=this.offset;var h=l+"px",d=c+"px";mt()(this.container,{left:h,top:d,visibility:"visible"})}else mt()(r,{visibility:"hidden"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var n=yt()('<div class="g6-tooltip g6-'+this.item+'-tooltip"></div>');return e.parentNode.appendChild(n),mt()(n,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},xt=Object(I.__assign)({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},bt),wt=Object(I.__assign)({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: "+t.source+" target: "+t.target}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},bt),_t=n(12),Ct=n.n(_t),At={getDefaultCfg:function(){return{delegate:!0,delegateStyle:{},delegateShapes:{},delegateShapeBBoxs:{}}},getEvents:function(){return{dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd","canvas:mouseleave":"onOutOfRange"}},onDragStart:function(t){var e=this.graph,n=t.target.get("groupId");if(n){var i=e.get("customGroupControll"),r=i.customGroup,o=r[n].nodeGroup;this.targetGroup=o,this.mouseOrigin={x:t.x,y:t.y};for(var a=e.save().groups,s=null,l=0;l<a.length;l++){var c=a[l];if(n===c.id){s=c.parentId;break}}if(s){var u=r[s].nodeGroup;i.setGroupStyle(u.get("keyShape"),"hover")}}},onDrag:function(t){this.mouseOrigin&&this.updateDelegate(t)},onDragEnd:function(t){var e=this.graph,n=t.target.get("groupId");if(this.delegateShapes[n]&&(this.delegateShapeBBox=this.delegateShapes[n].getBBox(),this.delegateShapes[n].remove(),delete this.delegateShapes[n]),this.delegateShapeBBox){var i=e.get("customGroupControll"),r=this.delegateShapeBBoxs[n];i.updateGroup(n,r,this.mouseOrigin),this.mouseOrigin=null,this.shapeOrigin=null,i.resetNodePoint(),this.delegateShapeBBox=null}},updateDelegate:function(t){var e=this.graph,n=t.target.get("groupId"),i=this.targetGroup.get("keyShape"),r=this.delegateShapes[n],o=i.getBBox(),a=i.get("type");if(r){var s=this.mouseOrigin,l=this.shapeOrigin,c=t.x-s.x,u=t.y-s.y,h=c+l.x,d=u+l.y;r.attr({x:h,y:d}),this.delegateShapeBBoxs[n]=r.getBBox()}else{var p=e.get("delegateGroup"),f=o.x,g=o.y,m=o.width,v=o.height,y=Object(I.__assign)({width:m,height:v},Ct()({},J.delegateStyle,this.delegateStyle));if("circle"===a){var b=m>v?m/2:v/2,x=f+b,w=g+b;r=p.addShape("circle",{attrs:Object(I.__assign)({x:x,y:w,r:b},y),name:"circle-delegate-shape"}),this.shapeOrigin={x:x,y:w}}else r=p.addShape("rect",{attrs:Object(I.__assign)({x:f,y:g},y),name:"rect-delegate-shape"}),this.shapeOrigin={x:f,y:g};this.delegateShapes[n]=r,this.delegateShapeBBoxs[n]=r.getBBox()}},onOutOfRange:function(t){var e=this,n=this.graph.get("canvas").get("el"),i=function(r){r.target!==n&&(e.onDragEnd(t),document.body.removeEventListener("mouseup",i,!0))};this.mouseOrigin&&document.body.addEventListener("mouseup",i,!0)}},It=document.body,St={getDefaultCfg:function(){return{updateEdge:!0,delegate:!0,delegateStyle:{},maxMultiple:1.1,minMultiple:1}},getEvents:function(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd","canvas:mouseleave":"onOutOfRange",dragover:"onDragOver",dragleave:"onDragLeave"}},onDragOver:function(t){var e=this.graph,n=t.target.get("groupId");if(n&&this.origin){var i=e.get("customGroupControll"),r=i.getDeletageGroupById(n);if(r){var o=r.nodeGroup.get("keyShape");this.inGroupId=n,i.setGroupStyle(o,"hover")}}},onDragLeave:function(t){var e=this.graph,n=t.target.get("groupId");if(n&&this.origin){var i=e.get("customGroupControll"),r=i.getDeletageGroupById(n);if(r){var o=r.nodeGroup.get("keyShape");i.setGroupStyle(o,"default")}}n||(this.inGroupId=null)},onDragStart:function(t){var e=this.graph;if(this.shouldBegin.call(this,t)){var n=t.item;this.target=n;var i=n.getModel().groupId;if(i){var r=e.get("customGroupControll"),o=r.getDeletageGroupById(i);if(o){var a=o.nodeGroup.get("keyShape");r.setGroupStyle(a,"hover"),this.inGroupId=i}}this.origin={x:t.x,y:t.y},this.point={},this.originPoint={}}},onDrag:function(t){if(this.origin&&this.get("shouldUpdate").call(this,t)){this.update(this.target,t,!0);var e=t.item,n=this.graph,i=e.getModel().groupId;if(i){var r=n.get("customGroupControll"),o=r.getDeletageGroupById(i);if(o){var a=o.nodeGroup.get("keyShape");this.inGroupId!==i?r.setGroupStyle(a,"default"):r.setGroupStyle(a,"hover")}}}},onDragEnd:function(t){if(this.origin&&this.shouldEnd.call(this,t)){if(this.shape&&(this.shape.remove(),this.shape=null),this.target){var e=this.target.get("delegateShape");e&&(e.remove(),this.target.set("delegateShape",null))}this.target&&this.update(this.target,t),this.point={},this.origin=null,this.originPoint={},this.target=null,this.setCurrentGroupStyle(t)}},setCurrentGroupStyle:function(t){var e=this.graph,n=t.item,i=n.getModel(),r=i.groupId,o=i.id,a=e.get("customGroupControll"),s=a.customGroup,l=e.get("groupNodes");if(this.inGroupId&&r){if(!(w=s[r].nodeGroup))return;var c=w.get("keyShape"),u=n.getBBox(),h=c.getBBox(),d=u.centerX,p=u.centerY,f=h.minX,g=h.minY,m=h.maxX,v=h.maxY;if(!(d<m*this.maxMultiple&&d>f*this.minMultiple&&p<v*this.maxMultiple&&p>g*this.minMultiple)||this.inGroupId!==r){var y=l[r];l[r]=y.filter((function(t){return t!==o})),a.dynamicChangeGroupSize(t,w,c),delete i.groupId}if(this.inGroupId!==r){if(!(x=s[this.inGroupId].nodeGroup))return;var b=x.get("keyShape");-1===l[this.inGroupId].indexOf(o)&&l[this.inGroupId].push(o),i.groupId=this.inGroupId,a.dynamicChangeGroupSize(t,x,b)}a.setGroupStyle(c,"default")}else if(this.inGroupId&&!r){var x;if(!(x=s[this.inGroupId].nodeGroup))return;c=x.get("keyShape"),-1===l[this.inGroupId].indexOf(o)&&l[this.inGroupId].push(o),i.groupId=this.inGroupId,a.dynamicChangeGroupSize(t,x,c)}else if(!this.inGroupId&&r){var w;if(Object.keys(l).forEach((function(t){var e=l[t];l[t]=e.filter((function(t){return t!==o}))})),!(w=s[r].nodeGroup))return;c=w.get("keyShape"),a.dynamicChangeGroupSize(t,w,c),delete i.groupId}this.inGroupId=null},onOutOfRange:function(t){var e=this,n=e.graph.get("canvas").get("el");e.origin&&It.addEventListener("mouseup",(function i(r){r.target!==n&&(t.item=e.target,e.onDragEnd(t),document.body.removeEventListener("mouseup",i,!0))}),!0)},update:function(t,e,n){var i=this.origin,r=t.get("model"),o=t.get("id");this.point[o]||(this.point[o]={x:r.x,y:r.y});var a=e.x-i.x+this.point[o].x,s=e.y-i.y+this.point[o].y;if(n)this.updateDelegate(e,a,s);else{var l={x:a,y:s};this.get("updateEdge")?this.graph.updateItem(t,l):(t.updatePosition(l),this.graph.paint())}},updateDelegate:function(t,e,n){var i=this.graph,r=t.item,o=i.get("groupType"),a=r.get("keyShape").getBBox();if(!this.shape){var s=i.get("delegateGroup"),l=Ct()({},J.delegateStyle,this.delegateStyle);this.target&&(this.shape=s.addShape("rect",{attrs:Object(I.__assign)({width:a.width,height:a.height,x:e-a.width/2,y:n-a.height/2},l),name:"delegate-shape"}),this.target.set("delegateShape",this.shape)),this.shape.set("capture",!1)}this.target&&("circle"===o?this.shape.attr({x:e-a.width/2,y:n-a.height/2}):"rect"===o&&this.shape.attr({x:e,y:n}))}},Mt=["click","dblclick"],kt={getDefaultCfg:function(){return{trigger:"dblclick"}},getEvents:function(){var t,e;return Mt.includes(this.trigger)?e=this.trigger:(e="dblclick",console.warn("Behavior collapse-expand-group 的 trigger 参数不合法，请输入 'click' 或 'dblclick'")),(t={})[""+e]="onGroupClick",t},onGroupClick:function(t){var e=t.target,n=this.graph,i=e.get("groupId");i&&n.get("customGroupControll").collapseExpandGroup(i)}},Et=["click","dblclick"],Tt={getDefaultCfg:function(){return{trigger:"click",onChange:function(){}}},getEvents:function(){var t,e;return Et.includes(this.trigger)?e=this.trigger:(e="click",console.warn("Behavior collapse-expand 的 trigger 参数不合法，请输入 'click' 或 'dblclick'")),(t={})["node:"+e]="onNodeClick",t.touchstart="onNodeClick",t},onNodeClick:function(t){var e=t.item,n=this.graph.findDataById(e.get("id"));if(n){var i=n.children;if(i&&0!==i.length){var r=!n.collapsed;if(this.shouldBegin(t,r)&&(n.collapsed=r,e.getModel().collapsed=r,this.graph.emit("itemcollapsed",{item:t.item,collapsed:r}),this.shouldUpdate(t,r))){try{this.onChange(e,r)}catch(t){console.warn("G6 自 3.0.4 版本支持直接从 item.getModel() 获取源数据(临时通知，将在3.2.0版本中清除)",t)}this.graph.layout()}}}}},Ot=function(t,e){if(!1!==e(t)&&t){var n=t.get("combos");if(0===n.length)return!1;Object(f.each)(n,(function(t){Ot(t,e)}))}},Pt={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected"}},getEvents:function(){return{"combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;return!(!e||e.destroyed)&&!!this.shouldUpdate(this,t)&&"combo"===e.getType()},onDragStart:function(t){var e=this,n=this.graph,i=t.item;if(this.validationCombo(t)){this.targets=[];var r=n.findAllByState("combo",this.selectedState),o=i.get("id");0===r.filter((function(t){var e=t.get("id");return o===e})).length?this.targets.push(i):this.targets=r,this.activeState&&this.targets.map((function(t){var i=t.getModel();if(i.parentId){var r=n.findById(i.parentId);r&&n.setItemState(r,e.activeState,!0)}})),this.point={},this.originPoint={},this.origin={x:t.x,y:t.y},this.currentItemChildCombos=[],Ot(i,(function(t){if(t.destroyed)return!1;var n=t.getModel();return e.currentItemChildCombos.push(n.id),!0}))}},onDrag:function(t){var e=this;if(this.origin&&this.validationCombo(t))if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var n=this.graph,i=t.item,r=i.getModel(),o=n.getCombos(),a=i.getBBox(),s=a.centerX,l=a.centerY,c=a.width;o.filter((function(t){var n=t.getModel();return r.parentId,n.id!==r.id&&!e.currentItemChildCombos.includes(n.id)})).map((function(t){var i=t.getBBox(),r=i.centerX,o=i.centerY,a=i.width,u=s-r,h=l-o,d=2*Math.sqrt(u*u+h*h);c+a-d>.8*c?n.setItemState(t,e.activeState,!0):n.setItemState(t,e.activeState,!1)}))}Object(f.each)(this.targets,(function(n){e.updateCombo(n,t)}))}},updatePositions:function(t){var e=this;this.enableDelegate&&Object(f.each)(this.targets,(function(n){e.updateCombo(n,t)}))},onDrop:function(t){var e=this,n=t.item;if(n&&this.targets&&!n.destroyed){this.updatePositions(t);var i=this.graph,r=n.getModel();this.targets.map((function(t){t.getModel().parentId!==r.id?(e.activeState&&i.setItemState(n,e.activeState,!1),e.onlyChangeComboSize?i.updateCombo(t):i.updateComboTree(t,r.id)):i.updateCombo(n)})),this.end(n,t),this.endComparison=!0}},onNodeDrop:function(t){var e=this;if(this.targets&&0!==this.targets.length){this.updatePositions(t);var n,i=this.graph,r=t.item.getModel().comboId;if(r){if(this.activeState){var o=i.findById(r);i.setItemState(o,this.activeState,!1)}this.targets.map((function(t){e.onlyChangeComboSize?i.updateCombo(t):r!==t.getID()&&(n=i.findById(r),r!==t.getModel().parentId&&i.updateComboTree(t,r))}))}else this.targets.map((function(t){e.onlyChangeComboSize?i.updateCombo(t):t.getModel().comboId&&i.updateComboTree(t)}));this.endComparison=!0,this.end(n,t)}},onDragEnter:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){if(this.targets&&0!==this.targets.length){var e=t.item;this.updatePositions(t);var n=this.getParentCombo(e.getModel().parentId),i=this.graph;n&&this.activeState&&i.setItemState(n,this.activeState,!1),this.end(void 0,t)}},end:function(t,e){var n=this;if(this.origin){var i=this.graph;this.delegateShape&&(i.get("delegateGroup").clear(),this.delegateShape=null),t&&this.activeState&&i.setItemState(t,this.activeState,!1),t||this.targets.map((function(t){n.onlyChangeComboSize?i.updateCombo(t):i.updateComboTree(t)})),this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(t,e){var n=this;if(!1!==e(t)&&t){var i=t.get("combos");Object(f.each)(i,(function(t){n.traverse(t,e)}));var r=t.get("nodes");Object(f.each)(r,(function(t){n.traverse(t,e)}))}},updateCombo:function(t,e){var n=this;this.traverse(t,(function(t){return!t.destroyed&&(n.updateSignleItem(t,e),!0)}))},updateSignleItem:function(t,e){var n=this.origin,i=this.graph,r=t.getModel(),o=t.get("id");this.point[o]||(this.point[o]={x:r.x,y:r.y});var a=e.x-n.x+this.point[o].x,s=e.y-n.y+this.point[o].y;i.updateItem(t,{x:a,y:s})},getParentCombo:function(t){var e=this.graph;if(t){var n=e.findById(t);if(n)return n}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var n=t.x-this.origin.x+this.originPoint.minX,i=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:n,y:i})}else{var r=e.get("delegateGroup"),o=null,a=(o=this.targets.length>1?P(this.targets):this.targets[0].getBBox()).x,s=o.y,l=o.width,c=o.height,u=o.minX,h=o.minY;this.originPoint={x:a,y:s,width:l,height:c,minX:u,minY:h};var d=Object(I.__assign)(Object(I.__assign)({},J.delegateStyle),this.delegateStyle);this.delegateShape=r.addShape("rect",{attrs:Object(I.__assign)({width:o.width,height:o.height,x:o.x,y:o.y},d),name:"combo-delegate-shape"})}}},jt=["click","dblclick"],Lt={getDefaultCfg:function(){return{trigger:"dblclick",relayout:!0}},getEvents:function(){var t,e;return jt.includes(this.trigger)?e=this.trigger:(e="dblclick",console.warn("Behavior collapse-expand-group 的 trigger 参数不合法，请输入 'click' 或 'dblclick'")),(t={})["combo:"+e]="onComboClick",t},onComboClick:function(t){var e=t.item,n=this.graph,i=this.relayout;if(e&&!e.destroyed&&"combo"===e.getType()){var r=e.getModel().id;r&&(n.collapseExpandCombo(r),i&&n.get("layout")?n.layout():n.refreshPositions())}}},Dt=function(t,e,n){return t>=e&&t<=n},Rt=function(t,e,n,i){var r=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,l=i.x-n.x,c=i.y-n.y,u=a*c-s*l,h=null;if(u*u>.001*(a*a+s*s)*(l*l+c*c)){var d=(r*c-o*l)/u,p=(r*s-o*a)/u;Dt(d,0,1)&&Dt(p,0,1)&&(h={x:t.x+d*a,y:t.y+d*s})}return h},Bt=function(t,e){var n=t.x,i=t.y,r=t.width,o=t.height,a=[],s={x:n+r/2,y:i+o/2};a.push({x:n,y:i}),a.push({x:n+r,y:i}),a.push({x:n+r,y:i+o}),a.push({x:n,y:i+o}),a.push({x:n,y:i});for(var l=null,c=1;c<a.length&&!(l=Rt(a[c-1],a[c],s,e));c++);return l},Nt=function(t,e){var n=t.x,i=t.y,r=t.r,o=e.x-n,a=e.y-i;if(Math.sqrt(o*o+a*a)<r)return null;var s=Math.sign(o),l=Math.sign(a),c=Math.atan(a/o);return{x:n+Math.abs(r*Math.cos(c))*s,y:i+Math.abs(r*Math.sin(c))*l}},Ft=function(t,e){var n=t.rx,i=t.ry,r=t.x,o=t.y,a=e.x-r,s=e.y-o,l=Math.atan2(s/i,a/n);return l<0&&(l+=2*Math.PI),{x:r+n*Math.cos(l),y:o+i*Math.sin(l)}},zt=function(t,e,n){void 0===n&&(n=1);var i=[t.x,t.y,n];return e&&!isNaN(e[0])||(e=[1,0,0,0,1,0,0,0,1]),dt.transformMat3(i,i,e),{x:i[0],y:i[1]}},Vt=function(t,e,n){void 0===n&&(n=1),e&&!isNaN(e[0])||(e=[1,0,0,0,1,0,0,0,1]);var i=lt.invert([],e);i||(i=[1,0,0,0,1,0,0,0,1]);var r=[t.x,t.y,n];return dt.transformMat3(r,r,i),{x:r[0],y:r[1]}},Gt=function(t,e,n){var i=t.x-e.x,r=t.y-e.y,o=t.x-n.x,a=t.y-n.y,s=(t.x*t.x-e.x*e.x-e.y*e.y+t.y*t.y)/2,l=(t.x*t.x-n.x*n.x-n.y*n.y+t.y*t.y)/2,c=r*o-i*a;return{x:-(a*s-r*l)/c,y:-(i*l-o*s)/c}},Ht=function(t,e){var n=t.x-e.x,i=t.y-e.y;return Math.sqrt(n*n+i*i)},Wt=function(t,e){var n=[];return t.forEach((function(t){var i=[];t.forEach((function(t){i.push(t*e)})),n.push(i)})),n},Ut=function(t){for(var e=[],n=t.length,i=0;i<n;i+=1){e[i]=[];for(var r=0;r<n;r+=1)i===r?e[i][r]=0:0!==t[i][r]&&t[i][r]?e[i][r]=t[i][r]:e[i][r]=1/0}for(var o=0;o<n;o+=1)for(i=0;i<n;i+=1)for(r=0;r<n;r+=1)e[i][r]>e[i][o]+e[o][r]&&(e[i][r]=e[i][o]+e[o][r]);return e},Zt=function(t,e){var n=t.nodes,i=t.edges,r=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.id]=e,r.push([])})),i&&i.forEach((function(t){var n=t.source,i=t.target,a=o[n],s=o[i];r[a][s]=1,e||(r[s][a]=1)})),r},Yt=function(t,e){t.translate(e.x,e.y)},Xt=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var i=t.getCanvasBBox(),r=e.x-i.minX,o=e.y-i.minY,a=pt(n,[["t",r,o]]);t.setMatrix(a)},qt=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var i=e;y()(e)||(i=[e,e]),y()(e)&&1===e.length&&(i=[e[0],e[0]]),n=pt(n,[["s",i[0],i[1]]]),t.setMatrix(n)},Kt=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=pt(n,[["r",e]]),t.setMatrix(n)},Qt=function(t,e,n){for(var i=[],r=0;r<t;r++)i[r]=0;return n.forEach((function(t){t.source&&(i[e[t.source]]+=1),t.target&&(i[e[t.target]]+=1)})),i};function Jt(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}var $t=function(t,e,n){var i=!1,r=t.length;function o(t){return Math.abs(t)<1e-6?0:t<0?-1:1}if(r<=2)return!1;for(var a=0;a<r;a++){var s=t[a],l=t[(a+1)%r];if(Jt(s,l,[e,n]))return!0;o(s[1]-n)>0!=o(l[1]-n)>0&&o(e-(n-s[1])*(s[0]-l[0])/(s[1]-l[1])-s[0])<0&&(i=!i)}return i},te=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},ee=function(t,e){var n=function(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}},i=function(t){for(var e=[],n=t.length,i=0;i<n-1;i++){var r=t[i],o=t[i+1];e.push({from:{x:r[0],y:r[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e};if(t.length<2||e.length<2)return!1;var r=n(t),o=n(e);if(!te(r,o))return!1;var a=!1;if(Object(ut.each)(e,(function(e){if($t(t,e[0],e[1]))return a=!0,!1})),a)return!0;if(Object(ut.each)(t,(function(t){if($t(e,t[0],t[1]))return a=!0,!1})),a)return!0;var s=i(t),l=i(e),c=!1;return Object(ut.each)(l,(function(t){if(function(t,e){var n=!1;return Object(ut.each)(t,(function(t){if(Rt(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(s,t))return c=!0,!1})),c},ne=function(){function t(t,e,n,i){this.x1=t,this.y1=e,this.x2=n,this.y2=i}return t.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),i=Math.max(this.y1,this.y2);return{x:t,y:e,minX:t,minY:e,maxX:n,maxY:i,width:n-t,height:i-e}},t}(),ie=function(t,e){return{top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]}[e]},re=function(t,e){var n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),i=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),r=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(r){var o=n/r,a=i/r;if(o>=0&&o<=1&&a>=0&&a<=1)return o}return Number.POSITIVE_INFINITY},oe=function(t,e){for(var n=["top","left","bottom","right"],i=t.getBBox(),r=0,o=[],a=0;a<4;a++){var s=ie(i,n[a]),l=s[0],c=s[1],u=s[2],h=s[3];o[a]=Rt({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:l,y:c},{x:u,y:h}),o[a]&&(r+=1)}return[o,r]},ae=function(t,e){for(var n=["top","left","bottom","right"],i=t.getBBox(),r=Number.POSITIVE_INFINITY,o=0,a=0;a<4;a++){var s=ie(i,n[a]),l=s[0],c=s[1],u=s[2],h=s[3],d=re(e,new ne(l,c,u,h));(d=Math.abs(d-.5))>=0&&d<=1&&(o+=1,r=d<r?d:r)}return 0===o?-1:r},se=function(t){var e=0,n=0;if(t.length>0){for(var i=0,r=t;i<r.length;i++){var o=r[i];e+=o.x,n+=o.y}e/=t.length,n/=t.length}return{x:e,y:n}},le=function(t,e){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)},ce=function(t,e){var n,i=e.x1,r=e.y1,o=e.x2-i,a=e.y2-r,s=t.x-i,l=t.y-r,c=s*o+l*a;n=c<=0||(c=(s=o-s)*o+(l=a-l)*a)<=0?0:c*c/(o*o+a*a);var u=s*s+l*l-n;return u<0&&(u=0),u},ue=function(t,e,n){return void 0===n&&(n=.001),Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<Math.pow(n,2)},he=function(t,e){var n=t.x<e.x,i=t.x>e.x+e.width,r=t.y>e.y+e.height,o=t.y<e.y;if(!(n||i||r||o))return 0;if(r&&!n&&!i)return Math.pow(e.y+e.height-t.y,2);if(o&&!n&&!i)return Math.pow(t.y-e.y,2);if(n&&!r&&!o)return Math.pow(e.x-t.x,2);if(i&&!r&&!o)return Math.pow(e.x+e.width-t.x,2);var a=Math.min(Math.abs(e.x-t.x),Math.abs(e.x+e.width-t.x)),s=Math.min(Math.abs(e.y-t.y),Math.abs(e.y+e.height-t.y));return a*a+s*s};function de(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?o[3]={x:+t[0],y:+t[1]}:r-2===i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}n(95);var pe="\t\n\v\f\r   ᠎             　\u2028\u2029",fe=new RegExp("([a-z])["+pe+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+pe+"]*,?["+pe+"]*)+)","ig"),ge=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+pe+"]*,?["+pe+"]*","ig");function me(t){if(!t)return null;if(y()(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(fe,(function(t,i,r){var o=[],a=i.toLowerCase();if(r.replace(ge,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([i].concat(o.splice(0,2))),a="l",i="m"===i?"l":"L"),"o"===a&&1===o.length&&n.push([i,o[0]]),"r"===a)n.push([i].concat(o));else for(;o.length>=e[a]&&(n.push([i].concat(o.splice(0,e[a]))),e[a]););return""})),n}n(67),n(68);var ve=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){if("\\"===t.charAt(0))return t.slice(1);var i=e[n];return 0===i&&(i="0"),i||""})):t},ye=function(t){var e=[];if(t.length<2)throw new Error("point length must largn than 2, now it's "+t.length);for(var n=0,i=t;n<i.length;n++){var r=i[n],o=r.x,a=r.y;e.push(o),e.push(a)}var s=de(e);return s.unshift(["M",t[0].x,t[0].y]),s},be=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=0);var r={x:(1-n)*t.x+n*e.x,y:(1-n)*t.y+n*e.y},o=[];ht.normalize(o,[e.x-t.x,e.y-t.y]),0===o.length&&(o=[0,0]);var a=[-o[1]*i,o[0]*i];return r.x+=a[0],r.y+=a[1],r},xe=function(t,e){var n=t.length;if(!n)return"";for(var i="",r=0;r<n;r++){var o=t[r];i+=ve(0===r?"M{x} {y}":"L{x} {y}",o)}return e&&(i+="Z"),i},we=function(t){var e=[];return t.forEach((function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var i=t.length;e.push([t[i-2],t[i-1]])}})),e},_e=function(t){if(t.length<2)throw new Error("point length must largn than 2, now it's "+t.length);var e=t[0],n=t[1],i=t[t.length-1],r=t[t.length-2];t.unshift(i),t.unshift(r),t.push(e),t.push(n);for(var o=[],a=1;a<t.length-2;a+=1){var s=t[a-1].x,l=t[a-1].y,c=t[a].x,u=t[a].y,h=t[a+1].x,d=t[a+1].y,p=c+(h-s)/6,f=u+(d-l)/6,g=h-((a!==t.length-2?t[a+2].x:h)-c)/6,m=d-((a!==t.length-2?t[a+2].y:d)-u)/6;o.push(["C",p,f,g,m,h,d])}return o.unshift(["M",i.x,i.y]),o},Ce=function(t,e){return ht.scale([],ht.normalize([],t),e)},Ae=function(t,e){var n=[t[1]-e[1],e[0]-t[0]],i=Math.sqrt(n[0]*n[0]+n[1]*n[1]);if(0===i)throw new Error("p0 should not be equal to p1");return[n[0]/i,n[1]/i]},Ie=function(t,e){return[e[0]-t[0],e[1]-t[1]]};function Se(t,e){if(!t||t.length<1)return"";if(1===t.length)return function(t){var n=[t[0][0],t[0][1]-e],i=[t[0][0],t[0][1]+e];return"M "+n+" A "+e+","+e+",0,0,0,"+i+" A "+e+","+e+",0,0,0,"+n}(t);if(2===t.length)return function(t){var n=ht.scale([],Ae(t[0],t[1]),e),i=ht.scale([],n,-1),r=ht.add([],t[0],n),o=ht.add([],t[1],n),a=ht.add([],t[1],i),s=ht.add([],t[0],i);return"M "+r+" L "+o+" A "+[e,e,"0,0,0",a].join(",")+" L "+s+" A "+[e,e,"0,0,0",r].join(",")}(t);for(var n=new Array(t.length),i=0;i<n.length;++i){var r=0===i?t[t.length-1]:t[i-1],o=t[i],a=ht.scale([],Ae(r,o),e);n[i]=[ht.add([],r,a),ht.add([],o,a)]}var s="A "+[e,e,"0,0,0,"].join(",");return(n=n.map((function(t,e){var i="";return 0===e&&(i="M "+n[n.length-1][1]+" "),i+(s+t[0]+" L ")+t[1]}))).join(" ")}function Me(t,e){var n,i,r,o=t.length;if(!t||o<1)return"";if(1===o)return i=[(n=t)[0][0],n[0][1]-e],r=[n[0][0],n[0][1]+e],"M "+i+" A "+[e,e,"0,0,0",r].join(",")+" A "+[e,e,"0,0,0",i].join(",");if(2===o)return function(t){var n=Ie(t[0],t[1]),i=Ce(n,e),r=ht.add([],t[0],ht.scale([],i,-1)),o=ht.add([],t[1],i),a=1.2*e,s=Ce(ht.normalize([],n),a),l=ht.scale([],s,-1),c=ht.add([],r,l),u=ht.add([],o,l),h=ht.add([],r,s);return"M "+r+" C "+[c,u,o].join(",")+" S "+[h,r].join(",")+" Z"}(t);for(var a=t.map((function(e,n){var i=t[(n+1)%o];return{p:e,v:ht.normalize([],Ie(e,i))}})),s=0;s<a.length;++s){var l=s>0?s-1:o-1,c=ht.normalize([],ht.add([],a[l].v,ht.scale([],a[s].v,-1)));a[s].p=ht.add([],a[s].p,ht.scale([],c,e))}return a.map((function(t){var e=t.p;return{x:e[0],y:e[1]}}))}var ke=["drag","shift","ctrl","alt","control"],Ee=["click","drag"],Te=["shift","ctrl","control","alt","meta",void 0],Oe=["shift","ctrl","alt","control"],Pe={"drag-canvas":R,"zoom-canvas":ft,"drag-node":$,"activate-relations":{getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return"mouseenter"===this.get("trigger")?{"node:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","canvas:click":"clearAllItemStates"}},setAllItemStates:function(t){var e=t.item,n=this.graph;if(this.item=e,this.shouldUpdate(t.item,{event:t,action:"activate"})){for(var i=this.activeState,r=this.inactiveState,o=n.getNodes(),a=n.getEdges(),s=o.length,l=a.length,c=0;c<s;c++){var u=o[c],h=u.hasState("selected");this.resetSelected&&h&&n.setItemState(u,"selected",!1),n.setItemState(u,i,!1),r&&n.setItemState(u,r,!0)}for(c=0;c<l;c++){var d=a[c];n.setItemState(d,i,!1),r&&n.setItemState(d,r,!0)}r&&n.setItemState(e,r,!1),n.setItemState(e,i,!0);var p=e.getEdges(),f=p.length;for(c=0;c<f;c++){var g=void 0;g=(d=p[c]).getSource()===e?d.getTarget():d.getSource(),r&&n.setItemState(g,r,!1),n.setItemState(g,i,!0),n.setItemState(d,r,!1),n.setItemState(d,i,!0),d.toFront()}n.emit("afteractivaterelations",{item:t.item,action:"activate"})}},clearActiveState:function(t){var e=this.get("graph");if(this.shouldUpdate(t.item,{event:t,action:"deactivate"})){var n=this.activeState,i=this.inactiveState,r=e.get("autoPaint");e.setAutoPaint(!1);for(var o=e.getNodes(),a=e.getEdges(),s=o.length,l=a.length,c=0;c<s;c++){var u=o[c];e.clearItemStates(u,[n,i])}for(c=0;c<l;c++){var h=a[c];e.clearItemStates(h,[n,i,"deactivate"])}e.paint(),e.setAutoPaint(r),e.emit("afteractivaterelations",{item:t.item||this.get("item"),action:"deactivate"})}},clearAllItemStates:function(t){var e=this.graph;if(this.shouldUpdate(t.item,{event:t,action:"deactivate"})){for(var n=this.activeState,i=this.inactiveState,r=e.getNodes(),o=e.getEdges(),a=r.length,s=o.length,l=0;l<a;l++){var c=r[l];e.clearItemStates(c,[n,i])}for(l=0;l<s;l++){var u=o[l];e.clearItemStates(u,[n,i,"deactivate"])}e.emit("afteractivaterelations",{item:t.item||this.get("item"),action:"deactivate"})}}},"brush-select":rt,"click-select":at,"lasso-select":{getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},selectedState:"selected",trigger:"shift",includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return ke.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="shift",console.warn("Behavior lasso-select 的 trigger 参数不合法，请输入 'drag'、'shift'、'ctrl' 或 'alt'")),"drag"===this.trigger?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(t){var e=this.lasso;t.item||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates(),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show())},onDragMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&(this.points.push({x:t.x,y:t.y}),this.updateLasso(t))},onDragEnd:function(t){(this.lasso||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},clearStates:function(){var t=this.graph,e=this.selectedState,n=t.findAllByState("node",e),i=t.findAllByState("edge",e);n.forEach((function(n){return t.setItemState(n,e,!1)})),i.forEach((function(n){return t.setItemState(n,e,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this.graph,n=this.shouldUpdate,i=this.points.map((function(t){return[e.getCanvasByPoint(t.x,t.y).x,e.getCanvasByPoint(t.x,t.y).y]})),r=this.selectedState,o=[],a=[];e.getNodes().forEach((function(t){if(function(t,e){var n,i=t.getKeyShape();if("path"===t.get("type"))n=we(i.attr("path"));else{var r=i.getCanvasBBox();n=[[r.minX,r.minY],[r.maxX,r.minY],[r.maxX,r.maxY],[r.minX,r.maxY]]}return ee(e,n)}(t,i)&&n(t,"select")){o.push(t);var s=t.getModel();a.push(s.id),e.setItemState(t,r,!0)}}));var s=[];this.includeEdges&&o.forEach((function(i){i.getOutEdges().forEach((function(i){var r=i.getModel(),o=r.source,l=r.target;a.includes(o)&&a.includes(l)&&n(i,"select")&&(s.push(i),e.setItemState(i,t.selectedState,!0))}))})),this.selectedEdges=s,this.selectedNodes=o,this.onSelect&&this.onSelect(o,s),e.emit("nodeselectchange",{selectedItems:{nodes:o,edges:s},select:!0})},createLasso:function(){var t=this.graph.get("delegateGroup").addShape("path",{attrs:Object(I.__assign)({path:[]},this.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=t,this.points=[],t},updateLasso:function(t){this.lasso.attr({path:this.getLassoPath()})},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}},tooltip:xt,"edge-tooltip":wt,"drag-group":At,"drag-node-with-group":St,"collapse-expand-group":kt,"collapse-expand":Tt,"drag-combo":Pt,"collapse-expand-combo":Lt,"create-edge":{getDefaultCfg:function(){return{trigger:"click",key:void 0,edgeConfig:{}}},getEvents:function(){var t;return Ee.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="click",console.warn("Behavior create-edge 的 trigger 参数不合法，请输入 'click'，'drag'")),this.key&&-1===Te.indexOf(this.key.toLowerCase())&&(this.trigger=void 0,console.warn("Behavior create-edge 的 key 参数不合法，请输入 'shift'，'ctrl'，'alt'，'control'，或 undefined")),"drag"===this.trigger?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:"click"===this.trigger&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),this.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t},onDragEnd:function(t){if(!this.key||this.keydown){var e=t.item;e&&e.getID()!==this.source&&"node"===e.getType()||this.cancelCreating({item:this.edge,x:t.x,y:t.y})}},onClick:function(t){if(!this.key||this.keydown){var e=t.item,n=this.graph,i=e.getModel();if(this.addingEdge&&this.edge){if(!this.shouldEnd.call(this,t))return;var r={target:i.id};this.source===i.id&&(r.type="loop"),n.emit("beforecreateedge",{}),n.updateItem(this.edge,r),n.emit("aftercreateedge",{edge:this.edge}),this.edge.getKeyShape().set("capture",!0),this.edge=null,this.addingEdge=!1}else{if(!this.shouldBegin.call(this,t))return;this.edge=n.addItem("edge",Object(I.__assign)({source:i.id,target:i.id},this.edgeConfig),!1),this.source=i.id,this.addingEdge=!0,this.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){if(!this.key||this.keydown){var e={x:t.x,y:t.y};this.graph.findById(this.source)?this.addingEdge&&this.edge&&this.graph.updateItem(this.edge,{target:e},!1):this.addingEdge=!1}},cancelCreating:function(t){if(!this.key||this.keydown){var e=this.graph,n=t.item;if(this.addingEdge&&t.target&&t.target.isCanvas&&t.target.isCanvas())return e.removeItem(this.edge,!1),this.edge=null,void(this.addingEdge=!1);if(this.addingEdge&&this.edge===n){var i=!0;if(!e.get("groupByTypes"))for(var r=t.x,o=t.y,a=e.getNodes(),s=a.length,l=0;l<s;l++){var c=a[l],u=c.getModel(),h=c.getBBox();if(r<=h.maxX&&r>=h.minX&&o<=h.maxY&&o>=h.minY){if(!this.shouldEnd.call(this,{x:t.x,y:t.y,canvasX:t.canvasX,canvasY:t.canvasY,clientX:t.clientX,clientY:t.clientY,item:c}))return;e.emit("beforecreateedge",{}),e.updateItem(this.edge,{target:u.id}),e.emit("aftercreateedge",{edge:this.edge}),i=!1;break}}i&&e.removeItem(this.edge,!1),this.edge=null,this.addingEdge=!1}}},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.key.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.addingEdge&&this.edge&&(this.graph.removeItem(this.edge,!1),this.addingEdge=!1,this.edge=null),this.keydown=!1}},"shortcuts-call":{getDefaultCfg:function(){return{trigger:"ctrl",combinedKey:"1",functionName:"fitView",functionParams:[]}},getEvents:function(){return Oe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="ctrl",console.warn("Behavior shortcuts-fit-view 的 trigger 参数 '"+this.trigger+"' 不合法，请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),i=e.toLowerCase();this.triggerKeydown||(this.triggerKeydown=i===n||"control"===i&&"ctrl"===n||"ctrl"===i&&"control"===n);var r=this.graph;if(!r[this.functionName])return console.warn("Behavior shortcuts-fit-view 的 functionName 参数 '"+this.functionName+"' 不合法，它不是 Graph 的一个函数名"),{};if(!this.triggerKeydown||this.combinedKey){var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(i===o||"control"===i&&"ctrl"===o||"ctrl"===i&&"control"===o)&&(this.functionParams&&this.functionParams.length?r[this.functionName].apply(r,this.functionParams):r[this.functionName]())}else this.functionParams&&this.functionParams.length?r[this.functionName].apply(r,this.functionParams):r[this.functionName]()}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}}};p()(Pe,(function(t,e){m.registerBehavior(e,t)}));var je=m,Le=n(99),De=n(36),Re=n.n(De),Be=n(42),Ne=n.n(Be),Fe=n(22),ze=n(69),Ve=n.n(ze),Ge=function(){function t(t){this.graph=t,this.destroyed=!1,this.modes=t.get("modes")||{default:[]},this.formatModes(),this.mode=t.get("defaultMode")||"default",this.currentBehaves=[],this.setMode(this.mode)}return t.prototype.formatModes=function(){var t=this.modes;p()(t,(function(t){p()(t,(function(e,n){A()(e)&&(t[n]={type:e})}))}))},t.prototype.setBehaviors=function(t){var e,n=this.graph,i=this.modes[t],r=[];p()(i||[],(function(t){var i=m.getBehavior(t.type);i&&(e=new i(t))&&(e.bind(n),r.push(e))})),this.currentBehaves=r},t.mergeBehaviors=function(t,e){return p()(e,(function(e){t.indexOf(e)<0&&(A()(e)&&(e={type:e}),t.push(e))})),t},t.filterBehaviors=function(t,e){var n=[];return t.forEach((function(t){var i="";i=A()(t)?t:t.type,e.indexOf(i)<0&&n.push(t)})),n},t.prototype.setMode=function(t){var e=this.modes,n=this.graph,i=t;e[i]&&(n.emit("beforemodechange",{mode:t}),p()(this.currentBehaves,(function(t){t.unbind(n)})),this.setBehaviors(i),n.emit("aftermodechange",{mode:t}),this.mode=t)},t.prototype.getMode=function(){return this.mode},t.prototype.manipulateBehaviors=function(e,n,i){var r,o=this;if(r=y()(e)?e:[e],y()(n))return p()(n,(function(e){o.modes[e]?o.modes[e]=i?t.mergeBehaviors(o.modes[e]||[],r):t.filterBehaviors(o.modes[e]||[],r):i&&(o.modes[e]=r)})),this;var a=n;return n||(a=this.mode),this.modes[a]||i&&(this.modes[a]=r),this.modes[a]=i?t.mergeBehaviors(this.modes[a]||[],r):t.filterBehaviors(this.modes[a]||[],r),this.setMode(this.mode),this},t.prototype.destroy=function(){this.graph=null,this.modes=null,this.currentBehaves=null,this.destroyed=!0},t}(),He=function(){function t(t){this.destroyed=!1,this.graph=t,this.destroyed=!1}return t.prototype.getViewCenter=function(){var t=this.getFormatPadding(),e=this.graph,n=this.graph.get("width"),i=e.get("height");return{x:(n-t[1]-t[3])/2+t[3],y:(i-t[0]-t[2])/2+t[0]}},t.prototype.fitCenter=function(){var t=this.graph,e=t.get("group");e.resetMatrix();var n=e.getCanvasBBox();if(0!==n.width&&0!==n.height){var i=this.getViewCenter(),r=n.x+n.width/2,o=n.y+n.height/2;t.translate(i.x-r,i.y-o)}},t.prototype.fitView=function(){var t=this.graph,e=this.getFormatPadding(),n=t.get("width"),i=t.get("height"),r=t.get("group");r.resetMatrix();var o=r.getCanvasBBox();if(0!==o.width&&0!==o.height){var a=this.getViewCenter(),s=o.x+o.width/2,l=o.y+o.height/2;t.translate(a.x-s,a.y-l);var c=(n-e[1]-e[3])/o.width,u=(i-e[0]-e[2])/o.height,h=c;c>u&&(h=u),t.zoom(h,a)}},t.prototype.getFormatPadding=function(){var t=this.graph.get("fitViewPadding");return k(t)},t.prototype.focusPoint=function(t,e,n){var i=this,r=this.getViewCenter(),o=this.getPointByCanvas(r.x,r.y),a=this.graph.get("group").getMatrix();if(a||(a=[1,0,0,0,1,0,0,0,1]),e){var s=(o.x-t.x)*a[0],l=(o.y-t.y)*a[4],c=0,u=0,h=0,d=0;this.graph.get("canvas").animate((function(t){h=s*t,d=l*t,i.graph.translate(h-c,d-u),c=h,u=d}),Object(I.__assign)({},n))}else this.graph.translate((o.x-t.x)*a[0],(o.y-t.y)*a[4])},t.prototype.getPointByCanvas=function(t,e){var n=this.graph.get("group").getMatrix();return n||(n=[1,0,0,0,1,0,0,0,1]),Vt({x:t,y:e},n)},t.prototype.getPointByClient=function(t,e){var n=this.graph.get("canvas").getPointByClient(t,e);return this.getPointByCanvas(n.x,n.y)},t.prototype.getClientByPoint=function(t,e){var n=this.graph.get("canvas"),i=this.getCanvasByPoint(t,e),r=n.getClientByPoint(i.x,i.y);return{x:r.x,y:r.y}},t.prototype.getCanvasByPoint=function(t,e){var n=this.graph.get("group").getMatrix();return n||(n=[1,0,0,0,1,0,0,0,1]),zt({x:t,y:e},n)},t.prototype.focus=function(t,e,n){A()(t)&&(t=this.graph.findById(t));var i=t.get("group").getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]),t&&this.focusPoint({x:i[6],y:i[7]},e,n)},t.prototype.changeSize=function(t,e){var n=this.graph;if(!_()(t)||!_()(e))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:t,height:e}),n.get("canvas").changeSize(t,e),n.get("plugins").forEach((function(i){if(i.get("gridContainer")){var r=n.get("minZoom");mt()(i.get("container"),{width:t+"px",height:e+"px"}),mt()(i.get("gridContainer"),{width:t/r+"px",height:e/r+"px",left:0,top:0})}}))},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}(),We=n(57),Ue=n.n(We),Ze=n(50),Ye=n.n(Ze),Xe=function(){function t(t){this.preItem=null,this.graph=t,this.extendEvents=[],this.dragging=!1,this.destroyed=!1,this.initEvents()}return t.prototype.initEvents=function(){var t=this.graph,e=this.extendEvents,n=t.get("canvas"),i=n.get("el"),r=Ye()(this,"onCanvasEvents"),o=Ye()(this,"onExtendEvents"),a=Ye()(this,"onWheelEvent");n.on("*",r),this.canvasHandler=r,e.push(Ue()(i,"DOMMouseScroll",a)),e.push(Ue()(i,"mousewheel",a)),"undefined"!=typeof window&&(e.push(Ue()(window,"keydown",o)),e.push(Ue()(window,"keyup",o)),e.push(Ue()(window,"focus",o)))},t.getItemRoot=function(t){for(;t&&!t.get("item");)t=t.get("parent");return t},t.prototype.onCanvasEvents=function(e){var n=this.graph,i=n.get("canvas"),r=e.target,o=e.type;e.canvasX=e.x,e.canvasY=e.y;var a={x:e.canvasX,y:e.canvasY},s=n.get("group").getMatrix();if(s||(s=[1,0,0,0,1,0,0,0,1]),T(s)&&(a=n.getPointByClient(e.clientX,e.clientY)),e.x=a.x,e.y=a.y,e.currentTarget=n,r===i)return"mousemove"===o&&this.handleMouseMove(e,"canvas"),e.target=i,e.item=null,n.emit(o,e),void n.emit("canvas:"+o,e);var l=t.getItemRoot(r);if(l){var c=l.get("item");if(!c.destroyed){var u=c.getType();if(e.target=r,e.item=c,e.canvasX===e.x&&e.canvasY===e.y){var h=n.getCanvasByPoint(e.x,e.y);e.canvasX=h.x,e.canvasY=h.y}n.emit(o,e),e.name&&!e.name.includes(":")?n.emit(u+":"+o,e):n.emit(e.name,e),"dragstart"===o&&(this.dragging=!0),"dragend"===o&&(this.dragging=!1),"mousemove"===o&&this.handleMouseMove(e,u)}}else n.emit(o,e)},t.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t)},t.prototype.onWheelEvent=function(t){x()(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},t.prototype.handleMouseMove=function(t,e){var n=this.graph,i=this.preItem,r=n.get("canvas"),o=t.target===r?null:t.item;t=E(t),i&&i!==o&&!i.destroyed&&(t.item=i,this.emitCustomEvent(i.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(i.getType(),"dragleave",t)),o&&i!==o&&(t.item=o,this.emitCustomEvent(e,"mouseenter",t),this.dragging&&this.emitCustomEvent(e,"dragenter",t)),this.preItem=o},t.prototype.emitCustomEvent=function(t,e,n){n.type=e,this.graph.emit(t+":"+e,n)},t.prototype.destroy=function(){var t=this.graph,e=this.canvasHandler,n=this.extendEvents;t.get("canvas").off("*",e),p()(n,(function(t){t.remove()})),this.dragging=!1,this.preItem=null,this.extendEvents.length=0,this.canvasHandler=null,this.destroyed=!0},t}(),qe=n(98),Ke=n.n(qe),Qe=n(35),Je=n.n(Qe),$e=n(49),tn=n.n($e),en=n(130),nn=n.n(en),rn={" ":.3329986572265625,a:.5589996337890625,A:.6569992065429687,b:.58599853515625,B:.6769989013671875,c:.5469985961914062,C:.7279998779296875,d:.58599853515625,D:.705999755859375,e:.554998779296875,E:.63699951171875,f:.37299957275390627,F:.5769989013671875,g:.5909988403320312,G:.7479995727539063,h:.555999755859375,H:.7199996948242188,i:.255999755859375,I:.23699951171875,j:.26699981689453123,J:.5169998168945312,k:.5289993286132812,K:.6899993896484375,l:.23499908447265624,L:.5879989624023437,m:.854998779296875,M:.8819992065429687,n:.5589996337890625,N:.7189987182617188,o:.58599853515625,O:.7669998168945312,p:.58599853515625,P:.6419998168945312,q:.58599853515625,Q:.7669998168945312,r:.3649993896484375,R:.6759994506835938,s:.504998779296875,S:.6319992065429687,t:.354998779296875,T:.6189987182617187,u:.5599990844726562,U:.7139999389648437,v:.48199920654296874,V:.6389999389648438,w:.754998779296875,W:.929998779296875,x:.5089996337890625,X:.63699951171875,y:.4959991455078125,Y:.66199951171875,z:.48699951171875,Z:.6239990234375,0:.6,1:.40099945068359377,2:.6,3:.6,4:.6,5:.6,6:.6,7:.5469985961914062,8:.6,9:.6,"[":.3329986572265625,"]":.3329986572265625,",":.26399993896484375,".":.26399993896484375,";":.26399993896484375,":":.26399993896484375,"{":.3329986572265625,"}":.3329986572265625,"\\":.5,"|":.19499969482421875,"=":.604998779296875,"+":.604998779296875,"-":.604998779296875,_:.5,"`":.3329986572265625," ~":.8329986572265625,"!":.3329986572265625,"@":.8579986572265625,"#":.6,$:.6,"%":.9699996948242188,"^":.517999267578125,"&":.7259994506835937,"*":.505999755859375,"(":.3329986572265625,")":.3329986572265625,"<":.604998779296875,">":.604998779296875,"/":.5,"?":.53699951171875},on=Math.PI,an=Math.sin,sn=Math.cos,ln=an(on/8),cn=sn(on/8),un=function(t,e){var n=t.getBBox(),i={x:n.minX,y:n.minY},r={x:n.maxX,y:n.maxY};if(e){var o=e.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),i=zt(i,o),r=zt(r,o)}var a=i.x,s=i.y,l=r.x,c=r.y;return{x:a,y:s,minX:a,minY:s,maxX:l,maxY:c,width:l-a,height:c-s}},hn=function(t){var e=t.sourceNode||t.targetNode,n=e.get("group").getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var i=e.getKeyShape().getBBox(),r=t.loopCfg||{},o=r.dist||2*Math.max(i.width,i.height),a=r.position||J.defaultLoopPosition,s=[n[6],n[7]],l=[t.startPoint.x,t.startPoint.y],c=[t.endPoint.x,t.endPoint.y],u=i.height/2,h=i.height/2,d=u*ln,p=u*cn,f=h*ln,g=h*cn;if(l[0]===c[0]&&l[1]===c[1]){switch(a){case"top":l=[s[0]-d,s[1]-p],c=[s[0]+f,s[1]-g];break;case"top-right":u=i.height/2,h=i.width/2,l=[s[0]+(d=u*ln),s[1]-(p=u*cn)],c=[s[0]+(g=h*cn),s[1]-(f=h*ln)];break;case"right":u=i.width/2,h=i.width/2,l=[s[0]+(p=u*cn),s[1]-(d=u*ln)],c=[s[0]+(g=h*cn),s[1]+(f=h*ln)];break;case"bottom-right":u=i.width/2,h=i.height/2,l=[s[0]+(p=u*cn),s[1]+(d=u*ln)],c=[s[0]+(f=h*ln),s[1]+(g=h*cn)];break;case"bottom":u=i.height/2,h=i.height/2,l=[s[0]+(d=u*ln),s[1]+(p=u*cn)],c=[s[0]-(f=h*ln),s[1]+(g=h*cn)];break;case"bottom-left":u=i.height/2,h=i.width/2,l=[s[0]-(d=u*ln),s[1]+(p=u*cn)],c=[s[0]-(g=h*cn),s[1]+(f=h*ln)];break;case"left":u=i.width/2,h=i.width/2,l=[s[0]-(p=u*cn),s[1]+(d=u*ln)],c=[s[0]-(g=h*cn),s[1]-(f=h*ln)];break;case"top-left":u=i.width/2,h=i.height/2,l=[s[0]-(p=u*cn),s[1]-(d=u*ln)],c=[s[0]-(f=h*ln),s[1]-(g=h*cn)];break;default:u=i.width/2,h=i.width/2,l=[s[0]-(d=u*ln),s[1]-(p=u*cn)],c=[s[0]+(f=h*ln),s[1]-(g=h*cn)]}if(!1===r.clockwise){var m=[l[0],l[1]];l=[c[0],c[1]],c=[m[0],m[1]]}}var v=[l[0]-s[0],l[1]-s[1]],y=(u+o)/u,b=(h+o)/h;!1===r.clockwise&&(y=(h+o)/h,b=(u+o)/u);var x=ht.scale([],v,y),w=[s[0]+x[0],s[1]+x[1]],_=[c[0]-s[0],c[1]-s[1]],C=ht.scale([],_,b),A=[s[0]+C[0],s[1]+C[1]];return t.startPoint={x:l[0],y:l[1]},t.endPoint={x:c[0],y:c[1]},t.controlPoints=[{x:w[0],y:w[1]},{x:A[0],y:A[1]}],t},dn=function(t,e,n,i,r){var o=[],a=t.getPoint(e);if(null===a)return{x:0,y:0,angle:0};if(e<1e-4)o=t.getStartTangent().reverse();else if(e>.9999)o=t.getEndTangent();else{var s=t.getPoint(e+1e-4);o.push([a.x,a.y]),o.push([s.x,s.y])}var l=Math.atan2(o[1][1]-o[0][1],o[1][0]-o[0][0]);if(l<0&&(l+=2*on),n&&(a.x+=sn(l)*n,a.y+=an(l)*n),i){var c=l-on/2;l>.5*on&&l<1.5*on&&(c-=on),a.x+=sn(c)*i,a.y+=an(c)*i}var u={x:a.x,y:a.y,angle:l};return r?(l>.5*on&&l<1.5*on&&(l-=on),Object(I.__assign)({rotate:l},u)):u},pn=function(t,e){if(!1===e(t))return!1;if(t&&t.children)for(var n=t.children.length-1;n>=0;n--)if(!pn(t.children[n],e))return!1;return!0},fn=function(t,e){if(t&&t.children)for(var n=t.children.length-1;n>=0;n--)if(!fn(t.children[n],e))return;return!1!==e(t)},gn=function(t,e){"function"==typeof e&&pn(t,e)},mn=function(t,e){"function"==typeof e&&fn(t,e)},vn=function(t,e){var n={x:1/0,y:1/0},i={x:-1/0,y:-1/0},r="x",o="y";e&&["V","TB","BT"].indexOf(e)>=0&&(o="x",r="y");var a=0;gn(t,(function(t){return a++,t.x>i.x&&(i.x=t.x),t.x<n.x&&(n.x=t.x),t.y>i.y&&(i.y=t.y),t.y<n.y&&(n.y=t.y),!0}));var s=2*on/a,l=i[o]-n[o];return 0===l||gn(t,(function(e){var i=(e[o]-n[o])/l*(2*on-s)+s,a=Math.abs("x"===r?e.x-t.x:e.y-t.y);return e.x=a*Math.cos(i),e.y=a*Math.sin(i),!0})),t},yn=function(t,e){return e*(rn[t]||1)},bn=function(t,e){var n=0,i=new RegExp("[一-龥]+");return t.split("").forEach((function(t){i.test(t)?n+=e:n+=yn(t,e)})),[n,e]},xn=function(t,e){var n=[],i={},r={};t.forEach((function(t){r[t.id]=t})),t.forEach((function(t,e){var o=Object(ut.clone)(t);o.itemType="combo",o.children=void 0,o.parentId===o.id?(console.warn("The parentId for combo "+o.id+" can not be the same as the combo's id"),delete o.parentId):o.parentId&&!r[o.parentId]&&(console.warn("The parent combo for combo "+o.id+" does not exist!"),delete o.parentId);var a=i[o.id];if(a){if(o.children=a.children,i[o.id]=o,!(a=o).parentId)return void n.push(a);var s=i[a.parentId];if(s)s.children?s.children.push(o):s.children=[o];else{var l={id:a.parentId,children:[a]};i[a.parentId]=l,i[o.id]=o}}else if(Object(ut.isString)(t.parentId))if(l=i[t.parentId])l.children?l.children.push(o):l.children=[o],i[o.id]=o;else{var c={id:t.parentId,children:[o]};i[c.id]=c,i[o.id]=o}else n.push(o),i[o.id]=o}));var o={};return(e||[]).forEach((function(t){o[t.id]=t;var e=i[t.comboId];if(e){var n={id:t.id,comboId:t.comboId};e.children?e.children.push(n):e.children=[n],n.itemType="node",i[t.id]=n}})),n.forEach((function(t){t.depth=0,pn(t,(function(t){var e,n=i[t.id].itemType;e="node"===n?i[t.comboId]:i[t.parentId],t.depth=e?"node"===n?e.depth+1:e.depth+2:0;var r=o[t.id];return r&&(r.depth=t.depth),!0}))})),n},wn=function(t,e,n){var i,r=t,o={root:{children:t}},a=!1,s="root";(t||[]).forEach((function(t){if(!a)return t.id===e?(i=t,"combo"===t.itemType?i.parentId=n:i.comboId=n,void(a=!0)):void gn(t,(function(t){return o[t.id]={children:t.children},r=o[t.parentId||t.comboId||"root"].children,!t||!t.removed&&e!==t.id||!r||(s=t.parentId||t.comboId||"root",i=t,"combo"===t.itemType?i.parentId=n:i.comboId=n,a=!0,!1)}))}));var l=(r=o[s].children)?r.indexOf(i):-1;if(l>-1&&r.splice(l,1),a||(i={id:e,itemType:"node",comboId:n},o[e]={children:void 0}),e){var c=!1;if(n){var u=0;(t||[]).forEach((function(t){c||gn(t,(function(t){return n!==t.id||(c=!0,t.children?t.children.push(i):t.children=[i],u=t.depth,"node"===i.itemType?i.depth=u+2:i.depth=u+1,!1)}))}))}else n&&c||"node"===i.itemType||t.push(i);var h=i.depth;gn(i,(function(t){return"node"===t.itemType?h+=2:h+=1,t.depth=h,!0}))}return t},_n=function(t,e){var n={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};return t&&0!==t.length?(t.forEach((function(t){var i=e.findById(t.id);if(i&&i.isVisible()){i.set("bboxCanvasCache",void 0);var r=i.getCanvasBBox();r.x&&n.minX>r.minX&&(n.minX=r.minX),r.y&&n.minY>r.minY&&(n.minY=r.minY),r.x&&n.maxX<r.maxX&&(n.maxX=r.maxX),r.y&&n.maxY<r.maxY&&(n.maxY=r.maxY)}})),n.x=(n.minX+n.maxX)/2,n.y=(n.minY+n.maxY)/2,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,Object.keys(n).forEach((function(t){n[t]!==1/0&&n[t]!==-1/0||(n[t]=void 0)})),n):n},Cn=function(t){var e=t.group,n=t.height,i=t.width,r=t.x,o=t.y,a=e.get("canvas"),s=a.get("width"),l=a.get("height"),c={start:{x:0,y:0},end:{x:0,y:0}};return c.start.x=r/s,c.start.y=o/l,c.end.x=(r+i)/s,c.end.y=(o+n)/l,c};function An(t){if("string"!=typeof t)return t;var e=function(t){if("string"!=typeof t)return t;try{return JSON.parse(t.trim())}catch(e){return t.trim()}},n=e(t);if("string"!=typeof n)return n;for(var i=function(t){return t[t.length-1]},r=t.trim(),o=[],a=[],s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.some((function(t){return i(a)===t}))},l=null,c=0,u="";c<r.length;){var h=r[c],d=s('"',"'");if(d||h.trim()){var p="\\"===r[c-1],f=s("}"),g=s("]"),m=s(","),v=i(o);if(d)if(i(a)!==h||p)u+=h;else{a.pop();var y=e(u);v.push(y),l=y,u=""}else if(g&&","===h)u&&(v.push(e(u)),u="");else if(f&&":"===h)a.push(","),u&&(v.push(u),u="");else if(m&&","===h)u&&(v.push(e(u)),u=""),a.pop();else if("}"===h&&(f||m)){u&&(v.push(e(u)),u=""),m&&a.pop();for(var b={},x=1;x<v.length;x+=2)b[v[x-1]]=v[x];o.pop(),o.length&&i(o).push(b),a.pop(),l=b}else"]"===h&&g?(u&&(v.push(e(u)),u=""),o.pop(),o.length&&i(o).push(v),a.pop(),l=v):"{"===h?(o.push([]),a.push("}")):"["===h?(o.push([]),a.push("]")):'"'===h?a.push('"'):"'"===h?a.push("'"):u+=h;c+=1}else c+=1}return l||u}function In(t,e){var n;void 0===e&&(e={x:0,y:0});var i=Object(I.__assign)({x:0,y:0,width:0,height:0},e);if(null===(n=t.children)||void 0===n?void 0:n.length){var r=t.attrs,o=void 0===r?{}:r,a=o.marginTop,s=Object(I.__assign)({},e);a&&(s.y+=a);for(var l=0;l<t.children.length;l++){t.children[l].attrs.key=(o.key||"root")+" -"+l+" ";var c=In(t.children[l],s);if(c.bbox){var u=c.bbox;"inline"===c.attrs.next?s.x+=c.bbox.width:s.y+=c.bbox.height,u.width+u.x>i.width&&(i.width=u.width+u.x),u.height+u.y>i.height&&(i.height=u.height+u.y)}}}return t.bbox=function(t,e,n){var i,r,o=t.attrs,a=void 0===o?{}:o,s={x:e.x||0,y:e.y||0,width:n.width||0,height:n.height||0};switch(t.type){case"maker":case"circle":a.r&&(r=2*a.r,i=2*a.r);break;case"text":a.text&&(r=bn(a.text,a.fontSize||12)[0],i=16,s.y+=i,s.height=i,s.width=r,t.attrs=Object(I.__assign)({fontSize:12,fill:"#000"},a));break;default:a.width&&(r=a.width),a.height&&(i=a.height)}return i>=0&&(s.height=i),r>=0&&(s.width=r),a.marginTop&&(s.y+=a.marginTop),a.marginLeft&&(s.x+=a.marginLeft),s}(t,e,i),t.attrs=Object(I.__assign)(Object(I.__assign)({},t.attrs),t.bbox),t}function Sn(t){var e={},n=function(e){var n=function(t){return function(e){for(var n=t.length,i=[],r=0,o="";r<n;)if("{"===t[r]&&"{"===t[r+1])i.push(o),o="",r+=2;else if("}"===t[r]&&"}"===t[r+1]){if(i.length){var a=i.pop();o=nn()(e,o,a.endsWith("=")?'"{'+o+'}"':o),i.push(a+o)}r+=2,o=""}else o+=t[r],r+=1;return i.push(o),i.map((function(t,e){return i[e-1]&&i[e-1].endsWith("=")?'"{'+t+'}"':t})).join("")}}("function"==typeof t?t(e):t)(e),i=document.createElement("div");i.innerHTML=n;var r=In(function t(e,n){var i={},r=e.getAttributeNames&&e.getAttributeNames()||[],o=e.children&&Array.from(e.children).map((function(e){return t(e,n)})),a={},s=e.tagName?e.tagName.toLowerCase():"group";return"text"===s&&(i.text=e.innerText),a.type=s,"img"===s&&(a.type="image"),Array.from(r).forEach((function(t){var n=t.split("-").reduce((function(t,e){return t+e.charAt(0).toUpperCase()+e.slice(1)})),r=e.getAttribute(t);try{if("style"===n||"attrs"===n){var o=An(r);i=Object(I.__assign)(Object(I.__assign)({},i),o)}else a[n]=An(r)}catch(t){if("style"===n)throw t;a[n]=r}})),a.attrs=i,n&&n.style&&a.name&&"object"==typeof n.style[a.name]&&(a.attrs=Object(I.__assign)(Object(I.__assign)({},a.attrs),n.style[a.name])),n&&n.style&&a.keyshape&&(a.attrs=Object(I.__assign)(Object(I.__assign)({},a.attrs),n.style)),o.length&&(a.children=o),a}(i.children[0],e));return i.remove(),r};return{draw:function(t,i){var r=n(t),o=i,a=function(t){var e=t.attrs,n=void 0===e?{}:e,r=t.bbox,s=t.type,l=t.children,c=Object(I.__rest)(t,["attrs","bbox","type","children"]);if("group"!==t.type){var u=i.addShape(t.type,Object(I.__assign)({attrs:n,origin:{bbox:r,type:s,children:l}},c));t.keyshape&&(o=u)}t.children&&t.children.forEach((function(t){return a(t)}))};return a(r),e[t.id]=[r],o},update:function(t,i){e[t.id]||(e[t.id]=[]);var r=i.getContainer(),o=r.get("children"),a=n(t),s=function t(e,n){var i,r,o,a,s=(e||{}).type,l=((null==n?void 0:n.attrs)||{}).key;if(l&&e&&(e.attrs.key=l),!e&&n)return{action:"delete",val:n,type:s,key:l};if(e&&!n)return{action:"add",val:e,type:s};if(!e&&!n)return{action:"same",type:s};var c=[];if((null===(i=e.children)||void 0===i?void 0:i.length)>0||(null===(r=n.children)||void 0===r?void 0:r.length)>0)for(var u=Math.max(null===(o=e.children)||void 0===o?void 0:o.length,null===(a=n.children)||void 0===a?void 0:a.length),h=n.children||[],d=e.children||[],p=0;p<u;p+=1)c.push(t(d[p],h[p]));var f=Object.keys(n.attrs),g=Object.keys(e.attrs);return n.type!==e.type?{action:"restructure",nowTarget:e,formerTarget:n,key:l,children:c}:f.filter((function(t){return"children"!==t})).some((function(t){return e.attrs[t]!==n.attrs[t]||!g.includes(t)}))?{action:"change",val:e,children:c,type:s,key:l}:{action:"same",children:c,type:s,key:l}}(a,e[t.id].pop()),l=function(t){var e;"group"!==t.type&&r.addShape(t.type,{attrs:t.attrs}),(null===(e=t.children)||void 0===e?void 0:e.length)&&t.children.map((function(t){return l(t)}))},c=function(t){var e,n=o.find((function(e){return e.attrs.key===t.attrs.key}));n&&r.removeChild(n),(null===(e=t.children)||void 0===e?void 0:e.length)&&t.children.map((function(t){return c(t)}))},u=function(t){var e=t.key;if("group"!==t.type){var n=o.find((function(t){return t.attrs.key===e}));switch(t.action){case"change":if(n){var r=t.val.keyshape?i.getOriginStyle():{};n.attr(Object(I.__assign)(Object(I.__assign)({},r),t.val.attrs))}break;case"add":l(t.val);break;case"delete":c(t.val);break;case"restructure":c(t.formerTarget),l(t.nowTarget)}}t.children&&t.children.forEach((function(t){return u(t)}))};u(s),e[t.id].push(a)},getAnchorPoints:function(){return[[0,.5],[1,.5],[.5,1],[.5,0]]}}}var Mn={};function kn(t){return Mn[t]||(Mn[t]=Object(ut.upperFirst)(t)),Mn[t]}var En={defaultShapeType:"defaultType",className:null,getShape:function(t){return this[t]||this[this.defaultShapeType]},draw:function(t,e,n){var i=this.getShape(t),r=i.draw(e,n);return i.afterDraw&&i.afterDraw(e,n,r),r},baseUpdate:function(t,e,n){var i=this.getShape(t);i.update&&i.update(e,n),i.afterUpdate&&i.afterUpdate(e,n)},setState:function(t,e,n,i){this.getShape(t).setState(e,n,i)},shouldUpdate:function(t){return!!this.getShape(t).update},getControlPoints:function(t,e){return this.getShape(t).getControlPoints(e)},getAnchorPoints:function(t,e){return this.getShape(t).getAnchorPoints(e)}},Tn={options:{},draw:function(t,e){return this.drawShape(t,e)},drawShape:function(){},afterDraw:function(){},afterUpdate:function(){},setState:function(){},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e=this.options.anchorPoints;return t.anchorPoints||e}},On=function(){function t(){}return t.registerFactory=function(e,n){var i=kn(e),r=En,o=Object(I.__assign)(Object(I.__assign)({},r),n);return t[i]=o,o.className=i,o},t.getFactory=function(e){return t[kn(e)]},t.registerNode=function(e,n,i){var r,o=t.Node;if("string"==typeof n||"function"==typeof n){var a=Sn(n);r=Object(I.__assign)(Object(I.__assign)({},o.getShape("single-node")),a)}else if(n.jsx)a=Sn(n.jsx),r=Object(I.__assign)(Object(I.__assign)(Object(I.__assign)({},o.getShape("single-node")),a),n);else{var s=i?o.getShape(i):Tn;r=Object(I.__assign)(Object(I.__assign)({},s),n)}return r.type=e,r.itemType="node",o[e]=r,r},t.registerEdge=function(e,n,i){var r=t.Edge,o=i?r.getShape(i):Tn,a=Object(I.__assign)(Object(I.__assign)({},o),n);return a.type=e,a.itemType="edge",r[e]=a,a},t.registerCombo=function(e,n,i){var r=t.Combo,o=i?r.getShape(i):Tn,a=Object(I.__assign)(Object(I.__assign)({},o),n);return a.type=e,a.itemType="combo",r[e]=a,a},t}(),Pn=On;On.registerFactory("node",{defaultShapeType:"circle"}),On.registerFactory("edge",{defaultShapeType:"line"}),On.registerFactory("combo",{defaultShapeType:"circle"});var jn=function(){function t(t){this._cfg={},this.destroyed=!1;var e={id:void 0,type:"item",model:{},group:void 0,animate:!1,visible:!0,locked:!1,event:!0,keyShape:void 0,states:[]};this._cfg=Object.assign(e,this.getDefaultCfg(),t);var n=this.get("model"),i=n.id,r=this.get("type");i||(i=Object(ut.uniqueId)(r),this.get("model").id=i),this.set("id",i);var o=t.group;o&&(o.set("item",this),o.set("id",i)),this.init(),this.draw();var a=n.shape||n.type||("edge"===r?"line":"circle"),s=this.get("shapeFactory");if(s&&s[a]){var l=s[a].options;if(l&&l.stateStyles){var c=this.get("styles")||n.stateStyles;c=Object(ut.deepMix)({},l.stateStyles,c),this.set("styles",c)}}}return t.prototype.calculateBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=un(t,e);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.calculateCanvasBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=un(t,e);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.drawInner=function(){var t=this.get("shapeFactory"),e=this.get("group"),n=this.get("model");e.clear();var i=n.visible;if(void 0===i||i||this.changeVisibility(i),t){this.updatePosition(n);var r=this.getShapeCfg(n),o=r.shape||r.type,a=t.draw(o,r,e);a&&(this.set("keyShape",a),a.set("isKeyShape",!0),a.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",o),this.restoreStates(t,o)}},t.prototype.setOriginStyle=function(t){var e={},n=this.get("group").get("children"),i=this.getKeyShape(),r=this;Object(ut.each)(n,(function(t){var n=t.get("name");if(n)e[n]=r.getShapeStyleByName(n);else{var o=i.get("name"),a=r.getShapeStyleByName();o?e[o]=a:Object.assign(e,a)}}));var o=this.getOriginStyle(),a={};a=t?Object(ut.deepMix)({},o,e,t.style,{labelCfg:t.labelCfg}):Object(ut.deepMix)({},o,e),r.set("originStyle",a)},t.prototype.restoreStates=function(t,e){var n=this,i=n.get("states");Object(ut.each)(i,(function(i){t.setState(e,i,!0,n)}))},t.prototype.init=function(){var t=Pn.getFactory(this.get("type"));this.set("shapeFactory",t)},t.prototype.get=function(t){return this._cfg[t]},t.prototype.set=function(t,e){Object(ut.isPlainObject)(t)?this._cfg=Object(I.__assign)(Object(I.__assign)({},this._cfg),t):this._cfg[t]=e},t.prototype.getDefaultCfg=function(){return{}},t.prototype.clearCache=function(){this.set("bboxCache",null),this.set("bboxCanvasCache",null)},t.prototype.beforeDraw=function(){},t.prototype.afterDraw=function(){},t.prototype.afterUpdate=function(){},t.prototype.draw=function(){this.beforeDraw(),this.drawInner(),this.afterDraw()},t.prototype.getShapeStyleByName=function(t){var e=this.get("group"),n=this.getKeyShape();if(t&&(n=e.find((function(e){return e.get("name")===t}))),n){var i={};return Object(ut.each)(n.attr(),(function(t,e){"img"!==e&&(i[e]=t)})),i}return{}},t.prototype.getShapeCfg=function(t){var e=this.get("styles");if(e){var n=t;return n.style=Object(I.__assign)(Object(I.__assign)({},e),t.style),n}return t},t.prototype.getStateStyle=function(t){var e=this.get("styles");return e&&e[t]},t.prototype.getOriginStyle=function(){return this.get("originStyle")},t.prototype.getCurrentStatesStyle=function(){var t=this,e={};return Object(ut.each)(t.getStates(),(function(n){e=Object.assign(e,t.getStateStyle(n))})),e},t.prototype.setState=function(t,e){var n=this.get("states"),i=this.get("shapeFactory"),r=t,o=t;Object(ut.isString)(e)&&(r=t+":"+e,o=t+":");var a=n;if(Object(ut.isBoolean)(e)){var s=n.indexOf(o);if(e){if(s>-1)return;n.push(r)}else s>-1&&n.splice(s,1)}else if(Object(ut.isString)(e)){var l=n.filter((function(t){return t.includes(o)}));l.length>0&&this.clearStates(l),(a=a.filter((function(t){return!t.includes(o)}))).push(r),this.set("states",a)}if(i){var c=this.get("model"),u=c.shape||c.type;i.setState(u,t,e,this)}},t.prototype.clearStates=function(t){var e=this,n=e.getStates(),i=e.get("shapeFactory"),r=e.get("model"),o=r.shape||r.type;t||(t=n),Object(ut.isString)(t)&&(t=[t]);var a=n.filter((function(e){return-1===t.indexOf(e)}));e.set("states",a),t.forEach((function(t){i.setState(o,t,!1,e)}))},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(t){return this.getStates().indexOf(t)>=0},t.prototype.refresh=function(){var t=this.get("model");this.updatePosition(t),this.updateShape(),this.afterUpdate(),this.clearCache()},t.prototype.isOnlyMove=function(t){return!1},t.prototype.update=function(t){var e=this.get("model"),n=e.visible,i=t.visible;n!==i&&void 0!==i&&this.changeVisibility(i);var r=e.x,o=e.y;t.x=isNaN(t.x)?e.x:t.x,t.y=isNaN(t.y)?e.y:t.y;var a=this.get("styles");if(t.stateStyles){var s=t.stateStyles;Object(ut.mix)(a,s),delete t.stateStyles}Object.assign(e,t),this.isOnlyMove(t)?this.updatePosition(t):(r===t.x&&o===t.y||this.updatePosition(t),this.updateShape()),this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(){var t=this.get("shapeFactory"),e=this.get("model"),n=e.shape||e.type;if(t.shouldUpdate(n)&&n===this.get("currentShape")){var i=this.getShapeCfg(e);t.baseUpdate(n,i,this)}else this.draw();this.setOriginStyle(e),this.restoreStates(t,n)},t.prototype.updatePosition=function(t){var e=this.get("model"),n=Object(ut.isNil)(t.x)?e.x:t.x,i=Object(ut.isNil)(t.y)?e.y:t.y,r=this.get("group");Object(ut.isNil)(n)||Object(ut.isNil)(i)||(r.resetMatrix(),Yt(r,{x:n,y:i}),e.x=n,e.y=i,this.clearCache())},t.prototype.getBBox=function(){var t=this.get("bboxCache");return t||(t=this.calculateBBox(),this.set("bboxCache",t)),t},t.prototype.getCanvasBBox=function(){var t=this.get("bboxCanvasCache");return t||(t=this.calculateCanvasBBox(),this.set("bboxCanvasCache",t)),t},t.prototype.toFront=function(){this.get("group").toFront()},t.prototype.toBack=function(){this.get("group").toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},t.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},t}(),Ln={source:"start",target:"end"},Dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(t,e){var n=Ln[t]+"Point",i=t+"Node",r=this.get(i);r&&!r.destroyed&&r.removeEdge(this),Object(ut.isPlainObject)(e)?(this.set(n,e),this.set(i,null)):(e.addEdge(this),this.set(i,e),this.set(n,null))},e.prototype.getLinkPoint=function(t,e,n){var i=Ln[t]+"Point",r=t+"Node",o=this.get(i);if(!o){var a=this.get(r),s=t+"Anchor",l=this.getPrePoint(t,n),c=e[s];Object(ut.isNil)(c)||(o=a.getLinkPointByAnchor(c)),o=o||a.getLinkPoint(l),Object(ut.isNil)(o.index)||this.set(t+"AnchorIndex",o.index)}return o},e.prototype.getPrePoint=function(t,e){if(e&&e.length)return e["source"===t?0:e.length-1];var n="source"===t?"target":"source";return this.getEndPoint(n)},e.prototype.getEndPoint=function(t){var e=t+"Node",n=Ln[t]+"Point",i=this.get(e);return i?i.get("model"):this.get(n)},e.prototype.getControlPointsByCenter=function(t){var e=this.getEndPoint("source"),n=this.getEndPoint("target"),i=this.get("shapeFactory"),r=t.shape||t.type;return i.getControlPoints(r,{startPoint:e,endPoint:n})},e.prototype.getEndCenter=function(t){var e=t+"Node",n=Ln[t]+"Point",i=this.get(e);if(i){var r=i.getBBox();return{x:r.centerX,y:r.centerY}}return this.get(n)},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(e){var n=this.get("linkCenter"),i=t.prototype.getShapeCfg.call(this,e);if(n)i.startPoint=this.getEndCenter("source"),i.endPoint=this.getEndCenter("target");else{var r=i.controlPoints||this.getControlPointsByCenter(i);i.startPoint=this.getLinkPoint("source",e,r),i.endPoint=this.getLinkPoint("target",e,r)}return i.sourceNode=this.get("sourceNode"),i.targetNode=this.get("targetNode"),i},e.prototype.getModel=function(){var t=this.get("model"),e=this.get("sourceNode"),n=this.get("targetNode");return e?delete t.sourceNode:t.source=this.get("startPoint"),n?delete t.targetNode:t.target=this.get("endPoint"),Object(ut.isString)(t.source)||Object(ut.isPlainObject)(t.source)||(t.source=t.source.getID()),Object(ut.isString)(t.target)||Object(ut.isPlainObject)(t.target)||(t.target=t.target.getID()),t},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t)},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){},e.prototype.update=function(t){var e=this.get("model"),n=e.visible,i=t.visible;n!==i&&void 0!==i&&this.changeVisibility(i);var r=this.get("styles");if(t.stateStyles){var o=t.stateStyles;Object(ut.mix)(r,o),delete t.stateStyles}Object.assign(e,t),this.updateShape(),this.afterUpdate(),this.clearCache()},e.prototype.destroy=function(){var e=this.get("sourceNode"),n=this.get("targetNode");e&&!e.destroyed&&e.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(jn),Rn=n(17),Bn=n.n(Rn),Nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getNearestPoint=function(t,e){for(var n=0,i=t[0],r=Ht(t[0],e),o=0;o<t.length;o++){var a=t[o],s=Ht(a,e);s<r&&(i=a,r=s,n=o)}return i.anchorIndex=n,i},e.prototype.getDefaultCfg=function(){return{type:"node",edges:[]}},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getInEdges=function(){var t=this;return this.get("edges").filter((function(e){return e.get("target")===t}))},e.prototype.getOutEdges=function(){var t=this;return this.get("edges").filter((function(e){return e.get("source")===t}))},e.prototype.getNeighbors=function(t){var e=this,n=this.get("edges");return"target"===t?n.filter((function(t){return t.getSource()===e})).map((function(t){return t.getTarget()})):"source"===t?n.filter((function(t){return t.getTarget()===e})).map((function(t){return t.getSource()})):n.map((function(t){return t.getSource()===e?t.getTarget():t.getSource()}))},e.prototype.getLinkPointByAnchor=function(t){return this.getAnchorPoints()[t]},e.prototype.getLinkPoint=function(t){var e,n,i=this.get("keyShape").get("type"),r=this.get("type"),o=this.getBBox();"combo"===r?(e=(o.maxX+o.minX)/2,n=(o.maxY+o.minY)/2):(e=o.centerX,n=o.centerY);var a,s=this.getAnchorPoints();switch(i){case"circle":a=Nt({x:e,y:n,r:o.width/2},t);break;case"ellipse":a=Ft({x:e,y:n,rx:o.width/2,ry:o.height/2},t);break;default:a=Bt(o,t)}var l=a;return s.length&&(l||(l=t),l=this.getNearestPoint(s,l)),l||(l={x:e,y:n}),l},e.prototype.getAnchorPoints=function(){var t=this.get("anchorPointsCache");if(!t){t=[];var e=this.get("shapeFactory"),n=this.getBBox(),i=this.get("model"),r=this.getShapeCfg(i),o=i.shape||i.type,a=e.getAnchorPoints(o,r)||[];p()(a,(function(e,i){var r=Bn()({x:n.minX+e[0]*n.width,y:n.minY+e[1]*n.height},e[2],{index:i});t.push(r)})),this.set("anchorPointsCache",t)}return t},e.prototype.addEdge=function(t){this.get("edges").push(t)},e.prototype.lock=function(){this.set("locked",!0)},e.prototype.unlock=function(){this.set("locked",!1)},e.prototype.hasLocked=function(){return this.get("locked")},e.prototype.removeEdge=function(t){var e=this.getEdges(),n=e.indexOf(t);n>-1&&e.splice(n,1)},e.prototype.clearCache=function(){this.set("bboxCache",null),this.set("anchorPointsCache",null)},e.prototype.isOnlyMove=function(t){if(!t)return!1;var e=!x()(t.x),n=!x()(t.y),i=Object.keys(t);return 1===i.length&&(e||n)||2===i.length&&e&&n},e}(jn),Fn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{type:"combo",nodes:[],edges:[],combos:[]}},e.prototype.getShapeCfg=function(t){var e=this.get("styles"),n=this.get("bbox");if(e&&n){var i=t,r={r:Math.hypot(n.height,n.width)/2||J.defaultCombo.size[0]/2,width:n.width||J.defaultCombo.size[0],height:n.height||J.defaultCombo.size[1]};i.style=Object(I.__assign)(Object(I.__assign)(Object(I.__assign)({},e),t.style),r);var o=t.padding||J.defaultCombo.padding;return _()(o)?(r.r+=o,r.width+=2*o,r.height+=2*o):(r.r+=o[0],r.width+=o[1]+o[3]||2*o[1],r.height+=o[0]+o[2]||2*o[0]),this.set("sizeCache",r),i}return t},e.prototype.calculateCanvasBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=un(t,e);n.x=n.minX,n.y=n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2;var i=this.get("sizeCache");return i?("circle"===t.get("type")?(n.width=2*i.r,n.height=2*i.r):(n.width=i.width,n.height=i.height),n.minX=n.centerX-n.width/2,n.minY=n.centerY-n.height/2,n.maxX=n.centerX+n.width/2,n.maxY=n.centerY+n.height/2):(n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2),n},e.prototype.getChildren=function(){return{nodes:this.getNodes(),combos:this.getCombos()}},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.addChild=function(t){switch(t.getType()){case"node":this.addNode(t);break;case"combo":this.addCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},e.prototype.addCombo=function(t){return this.get("combos").push(t),!0},e.prototype.addNode=function(t){return this.get("nodes").push(t),!0},e.prototype.removeChild=function(t){switch(t.getType()){case"node":this.removeNode(t);break;case"combo":this.removeCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},e.prototype.removeCombo=function(t){if(t){var e=this.getCombos(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},e.prototype.removeNode=function(t){if(t){var e=this.getNodes(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},e.prototype.isOnlyMove=function(t){return!1},e.prototype.getBBox=function(){return this.set("bboxCanvasCache",null),this.calculateCanvasBBox()},e.prototype.clearCache=function(){this.set("bboxCache",null),this.set("bboxCanvasCache",null),this.set("anchorPointsCache",null)},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),this.clearCache(),this.set("sizeCache",null),this.set("bbox",null),e.remove(),this._cfg=null,this.destroyed=!0}},e}(Nn),zn=Object.hasOwnProperty,Vn=function(){function t(t){this.graph=t,this.destroyed=!1}return t.prototype.addItem=function(t,e){var n=this,i=this.graph,r="vedge"===t?"edge":t,o=i.get(r+"Group")||i.get("group"),a=tn()(r),s=null,l=i.get(r+tn()("stateStyles"))||{},c=i.get("default"+a);e.stateStyles&&(l=e.stateStyles);var u=i.get(r+"Mapper");if(u){var h=u(e);h.stateStyles&&(l=h.stateStyles,delete h.stateStyles),e=Ct()({},c,e,h)}else c&&p()(c,(function(t,n){zn.call(e,n)||(Je()(t)?e[n]=Ke()(t):e[n]=c[n])}));if(e.shape&&!e.type&&console.warn("shape 字段即将被废弃，请使用 type 代替"),i.emit("beforeadditem",{type:t,model:e}),"edge"===t||"vedge"===t){var d=void 0,f=void 0;if(d=e.source,f=e.target,d&&A()(d)&&(d=i.findById(d)),f&&A()(f)&&(f=i.findById(f)),!d||!f)return void console.warn("The source or target node of edge "+e.id+" does not exist!");d.getType&&"combo"===d.getType()&&(e.isComboEdge=!0,i.updateCombo(d)),f.getType&&"combo"===f.getType()&&(e.isComboEdge=!0,i.updateCombo(f)),s=new Dn({model:e,source:d,target:f,styles:l,linkCenter:i.get("linkCenter"),group:o.addGroup()})}else if("node"===t)s=new Nn({model:e,styles:l,group:o.addGroup()});else if("combo"===t){var g=e.children,m=_n(g,i);e.x=m.x||e.x||100*Math.random(),e.y=m.y||e.y||100*Math.random();var v=o.addGroup();v.setZIndex(e.depth);var y=(s=new Fn({model:e,styles:l,bbox:m,group:v})).getModel();(g||[]).forEach((function(t){var e=i.findById(t.id);s.addChild(e),t.depth=y.depth+2})),e.collapsed&&setTimeout((function(){i.collapseCombo(s),n.updateCombo(s,[])}),250)}if(s)return i.get(t+"s").push(s),i.get("itemMap")[s.get("id")]=s,i.emit("afteradditem",{item:s,model:e}),s},t.prototype.updateItem=function(t,e){var n=this.graph;if(A()(t)&&(t=n.findById(t)),t&&!t.destroyed){var i="";t.getType&&(i=t.getType());var r=n.get(i+"Mapper"),o=t.getModel();if(r){var a=r(Ct()({},o,e)),s=Ct()({},o,a,e);a.stateStyles&&(t.set("styles",s.stateStyles),delete s.stateStyles),p()(s,(function(t,n){e[n]=t}))}else p()(e,(function(t,n){o[n]&&Je()(t)&&!y()(t)&&(e[n]=Object(I.__assign)(Object(I.__assign)({},o[n]),e[n]))}));if(n.emit("beforeupdateitem",{item:t,cfg:e}),"edge"===i){if(e.source){var l=e.source;A()(l)&&(l=n.findById(l)),t.setSource(l)}if(e.target){var c=e.target;A()(c)&&(c=n.findById(c)),t.setTarget(c)}}if(t.update(e),"node"===i||"combo"===i){var u=t.getEdges();p()(u,(function(t){t.refresh()}))}n.emit("afterupdateitem",{item:t,cfg:e})}},t.prototype.updateCombo=function(t,e){var n=this.graph;if(A()(t)&&(t=n.findById(t)),t&&!t.destroyed){var i=_n(e,n);t.set("bbox",i),t.update({x:i.x,y:i.y});for(var r=t.getEdges()||[],o=r.length,a=0;a<o;a++){var s=r[a];null==s||s.refresh()}}},t.prototype.collapseCombo=function(t){var e=this.graph;A()(t)&&(t=e.findById(t));var n=t.getChildren();n.nodes.forEach((function(t){e.hideItem(t)})),n.combos.forEach((function(t){e.hideItem(t)}))},t.prototype.expandCombo=function(t){var e=this.graph;A()(t)&&(t=e.findById(t));var n=t.getChildren();n.nodes.forEach((function(t){e.showItem(t)})),n.combos.forEach((function(t){t.getModel().collapsed?t.show():e.showItem(t)}))},t.prototype.removeItem=function(t){var e=this,n=this.graph;if(A()(t)&&(t=n.findById(t)),t&&!t.destroyed){var i=Ke()(t.getModel());n.emit("beforeremoveitem",{item:i});var r="";t.getType&&(r=t.getType());var o=n.get(r+"s"),a=o.indexOf(t);if(a>-1&&o.splice(a,1),"edge"===r){var s=n.get("v"+r+"s"),l=s.indexOf(t);l>-1&&s.splice(l,1)}var c=t.get("id");delete n.get("itemMap")[c];var u=n.get("comboTrees"),h=t.get("id");if("node"===r){var d=t.getModel().comboId;if(u){var p=u,f=!1;u.forEach((function(t){f||gn(t,(function(t){if(t.id===h&&p){var e=p.indexOf(t);return p.splice(e,1),f=!0,!1}return p=t.children,!0}))}))}for(var g=(v=t.getEdges()).length-1;g>=0;g--)n.removeItem(v[g],!1);d&&n.updateCombo(d)}else if("combo"===r){var m,v,y=t.getModel().parentId,b=!1;for((u||[]).forEach((function(t){b||gn(t,(function(t){return t.id!==h||(m=t,b=!0,!1)}))})),m.removed=!0,m&&m.children&&m.children.forEach((function(t){e.removeItem(t.id)})),g=(v=t.getEdges()).length;g>=0;g--)n.removeItem(v[g],!1);y&&n.updateCombo(y)}t.destroy(),n.emit("afterremoveitem",{item:i})}},t.prototype.setItemState=function(t,e,n){var i=this.graph,r=e;A()(n)&&(r=e+":"+n),t.hasState(r)===n||A()(n)&&t.hasState(r)||(i.emit("beforeitemstatechange",{item:t,state:r,enabled:n}),t.setState(e,n),i.autoPaint(),i.emit("afteritemstatechange",{item:t,state:r,enabled:n}))},t.prototype.priorityState=function(t,e){var n=this.graph,i=t;A()(t)&&(i=n.findById(t)),this.setItemState(i,e,!1),this.setItemState(i,e,!0)},t.prototype.clearItemStates=function(t,e){var n=this.graph;A()(t)&&(t=n.findById(t)),n.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),n.emit("afteritemstatesclear",{item:t,states:e})},t.prototype.refreshItem=function(t){var e=this.graph;A()(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},t.prototype.addCombos=function(t,e){var n=this,i=this.graph;(t||[]).forEach((function(t){mn(t,(function(t){var i;return e.forEach((function(e){e.id===t.id&&(e.children=t.children,e.depth=t.depth,i=e)})),i&&n.addItem("combo",i),!0}))}));var r=i.get("comboGroup");r&&r.sort()},t.prototype.changeItemVisibility=function(t,e){var n=this,i=this.graph;if(A()(t)&&(t=i.findById(t)),t){if(i.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&"node"===t.getType()){var r=t.getEdges();p()(r,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}else if(t.getType&&"combo"===t.getType()){var o=i.get("comboTrees"),a=t.get("id"),s=[],l=!1;(o||[]).forEach((function(t){l||t.children&&0!==t.children.length&&gn(t,(function(t){return t.id!==a||(s=t.children,l=!0,!1)}))})),s.forEach((function(t){var r=i.findById(t.id);n.changeItemVisibility(r,e)})),r=t.getEdges(),p()(r,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}return i.emit("afteritemvisibilitychange",{item:t,visible:e}),t}console.warn("The item to be shown or hidden does not exist!")},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),Gn=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.positions=[],this.destroyed=!1}return t.prototype.init=function(t){this.nodes=t.nodes||[],this.edges=t.edges||[],this.combos=t.combos||[]},t.prototype.execute=function(){},t.prototype.layout=function(t){this.init(t),this.execute()},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(t){Bn()(this,t)},t.prototype.destroy=function(){this.positions=null,this.nodes=null,this.edges=null,this.destroyed=!0},t}(),Hn={registerLayout:function(t,e,n){if(void 0===n&&(n=Gn),!e)throw new Error("please specify handler for this layout: "+t);var i=function(t){function n(n){var i=t.call(this)||this,r=i,o={},a=r.getDefaultCfg();return Bn()(o,a,e,n),p()(o,(function(t,e){r[e]=t})),i}return Object(I.__extends)(n,t),n}(n);Hn[t]=i}},Wn=Hn;function Un(t,e){return t.degree<e.degree?-1:t.degree>e.degree?1:0}var Zn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.radius=null,e.startRadius=null,e.endRadius=null,e.startAngle=0,e.endAngle=2*Math.PI,e.clockwise=!0,e.divisions=1,e.ordering=null,e.angleRatio=1,e.nodes=[],e.edges=[],e.nodeMap={},e.degrees=[],e.width=300,e.height=300,e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t=this.nodes,e=this.edges,n=t.length,i=this.center;if(0!==n){if(1===n)return t[0].x=i[0],void(t[0].y=i[1]);var r=this.radius,o=this.startRadius,a=this.endRadius,s=this.divisions,l=this.startAngle,c=this.endAngle,u=(c-l)/n,h={};t.forEach((function(t,e){h[t.id]=e})),this.nodeMap=h;var d=Qt(t.length,h,e);this.degrees=d,this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight),r||o||a?!o&&a?o=a:o&&!a&&(a=o):r=this.height>this.width?this.width/2:this.height/2;var p=u*this.angleRatio;this.astep=p;var f=this.ordering,g=[];g="topology"===f?this.topologyOrdering():"topology-directed"===f?this.topologyOrdering(!0):"degree"===f?this.degreeOrdering():t;for(var m=this.clockwise,v=Math.ceil(n/s),y=0;y<n;++y){var b=r;b||null===o||null===a||(b=o+y*(a-o)/(n-1)),b||(b=10+100*y/(n-1));var x=l+y%v*p+2*Math.PI/s*Math.floor(y/v);m||(x=c-y%v*p-2*Math.PI/s*Math.floor(y/v)),g[y].x=i[0]+Math.cos(x)*b,g[y].y=i[1]+Math.sin(x)*b,g[y].weight=d[y]}}},e.prototype.topologyOrdering=function(t){void 0===t&&(t=!1);var e=this.degrees,n=this.edges,i=this.nodes,r=Object(ut.clone)(i),o=this.nodeMap,a=[r[0]],s=[i[0]],l=[],c=i.length;l[0]=!0,function(t,e,n,i){t.forEach((function(e,n){t[n].children=[],t[n].parent=[]})),i?e.forEach((function(e){var i=0;e.source&&(i=n[e.source]);var r=0;e.target&&(r=n[e.target]),t[i].children.push(t[r].id),t[r].parent.push(t[i].id)})):e.forEach((function(e){var i=0;e.source&&(i=n[e.source]);var r=0;e.target&&(r=n[e.target]),t[i].children.push(t[r].id),t[r].children.push(t[i].id)}))}(r,n,o,t);var u=0;return r.forEach((function(t,h){if(0!==h)if(h!==c-1&&e[h]===e[h+1]&&!function(t,e,n){for(var i=n.length,r=0;r<i;r++)if(t.id===n[r].source&&e.id===n[r].target||e.id===n[r].source&&t.id===n[r].target)return!0;return!1}(a[u],t,n)||!0===l[h]){for(var d=a[u].children,p=!1,f=0;f<d.length;f++){var g=o[d[f]];if(e[g]===e[h]&&!0!==l[g]){a.push(r[g]),s.push(i[o[r[g].id]]),l[g]=!0,p=!0;break}}for(var m=0;!p&&(l[m]||(a.push(r[m]),s.push(i[o[r[m].id]]),l[m]=!0,p=!0),++m!==c););}else a.push(t),s.push(i[o[t.id]]),l[h]=!0,u++})),s},e.prototype.degreeOrdering=function(){var t=this.nodes,e=[],n=this.degrees;return t.forEach((function(t,i){t.degree=n[i],e.push(t)})),e.sort(Un),e},e}(Gn),Yn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.nodeSize=30,e.minNodeSpacing=10,e.preventOverlap=!1,e.equidistant=!1,e.startAngle=1.5*Math.PI,e.clockwise=!0,e.sortBy="degree",e.nodes=[],e.edges=[],e.width=300,e.height=300,e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],nodeSize:30,minNodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,i=e.length,r=t.center;if(0!==i){if(1===i)return e[0].x=r[0],void(e[0].y=r[1]);var o,a=[];o=y()(t.nodeSize)?Math.max(t.nodeSize[0],t.nodeSize[1]):t.nodeSize,e.forEach((function(t){a.push(t);var e=o;y()(t.size)?e=Math.max(t.size[0],t.size[1]):Object(ut.isNumber)(t.size)&&(e=t.size),o=Math.max(o,e)})),t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.clockwise=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise;var s={},l={};if(a.forEach((function(t,e){s[t.id]=t,l[t.id]=e})),!("degree"!==t.sortBy&&A()(t.sortBy)&&void 0!==a[0][t.sortBy]||(t.sortBy="degree",Object(ut.isNumber)(e[0].degree)))){var c=Qt(e.length,l,n);a.forEach((function(t,e){t.degree=c[e]}))}a.sort((function(e,n){return n[t.sortBy]-e[t.sortBy]})),t.maxValueNode=a[0],t.maxLevelDiff=t.maxLevelDiff||t.maxValueNode[t.sortBy]/4;var u=[[]],h=u[0];a.forEach((function(e){if(h.length>0){var n=Math.abs(h[0][t.sortBy]-e[t.sortBy]);t.maxLevelDiff&&n>=t.maxLevelDiff&&(h=[],u.push(h))}h.push(e)}));var d=o+t.minNodeSpacing;if(!t.preventOverlap){var p=u.length>0&&u[0].length>1,f=(Math.min(t.width,t.height)/2-d)/(u.length+(p?1:0));d=Math.min(d,f)}var g=0;if(u.forEach((function(e){var n=t.sweep;void 0===n&&(n=2*Math.PI-2*Math.PI/e.length);var i=e.dTheta=n/Math.max(1,e.length-1);if(e.length>1&&t.preventOverlap){var r=Math.cos(i)-Math.cos(0),o=Math.sin(i)-Math.sin(0),a=Math.sqrt(d*d/(r*r+o*o));g=Math.max(a,g)}e.r=g,g+=d})),t.equidistant){for(var m=0,v=0,b=0;b<u.length;b++){var x=u[b].r-v;m=Math.max(m,x)}v=0,u.forEach((function(t,e){0===e&&(v=t.r),t.r=v,v+=m}))}u.forEach((function(e){var n=e.dTheta,i=e.r;e.forEach((function(e,o){var a=t.startAngle+(t.clockwise?1:-1)*n*o;e.x=r[0]+i*Math.cos(a),e.y=r[1]+i*Math.sin(a)}))}))}},e}(Gn),Xn=n(134),qn=n.n(Xn),Kn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rankdir="TB",e.nodesep=50,e.ranksep=50,e.controlPoints=!1,e.sortByCombo=!1,e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.nodeSize,i=t.rankdir;if(e){var r,o=t.edges||[],a=new qn.a.graphlib.Graph;r=n?y()(n)?function(){return n}:function(){return[n,n]}:function(t){return t.size?y()(t.size)?t.size:[t.size,t.size]:[40,40]};var s,l=Qn(t.nodesepFunc,t.nodesep,50),c=Qn(t.ranksepFunc,t.ranksep,50);"LR"!==i&&"RL"!==i||(l=Qn(t.ranksepFunc,t.ranksep,50),c=Qn(t.nodesepFunc,t.nodesep,50)),a.setDefaultEdgeLabel((function(){return{}})),a.setGraph(t),e.forEach((function(t){var e=r(t),n=c(t),i=l(t),o=e[0]+2*i,s=e[1]+2*n;a.setNode(t.id,{width:o,height:s})})),o.forEach((function(t){a.setEdge(t.source,t.target,{weight:t.weight||1})})),qn.a.layout(a),a.nodes().forEach((function(t){s=a.node(t);var n=e.findIndex((function(e){return e.id===t}));e[n].x=s.x,e[n].y=s.y})),a.edges().forEach((function(e){s=a.edge(e);var n=o.findIndex((function(t){return t.source===e.v&&t.target===e.w}));t.controlPoints&&"loop"!==o[n].type&&"loop"!==o[n].shape&&(o[n].controlPoints=s.points.slice(1,s.points.length-1))})),t.sortByCombo&&t.sortLevel("comboId")}},e.prototype.sortLevel=function(t){var e=this.nodes,n={};e.forEach((function(t){n[t.y]||(n[t.y]={y:t.y,nodes:[]}),n[t.y].nodes.push(t)})),Object.keys(n).forEach((function(e){var i=n[e].nodes,r=i.length,o={};if(i.forEach((function(t){var e=t.comboId;o[e]||(o[e]={x:0,y:0,count:0}),o[e].x+=t.x,o[e].y+=t.y,o[e].count++})),Object.keys(o).forEach((function(t){o[t].x/=o[t].count,o[t].y/=o[t].count})),1!==r){var a=i.sort((function(t,e){return t.x-e.x})),s=a[0].x,l=(a[r-1].x-s)/(r-1);i.sort((function(e,n){var i=e[t]||"undefined",r=n[t]||"undefined";return i<r?-1:i>r?1:0})).forEach((function(t,e){t.x=s+e*l}))}}))},e}(Gn);function Qn(t,e,n){return t||(Object(ut.isNumber)(e)?function(){return e}:function(){return n})}function Jn(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var r,o,a,s,l,c,u,h,d,p=t._root,f={data:i},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=f,t;for(;p.length;)if((c=e>=(o=(g+v)/2))?g=o:v=o,(u=n>=(a=(m+y)/2))?m=a:y=a,r=p,!(p=p[h=u<<1|c]))return r[h]=f,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&&n===l)return f.next=p,r?r[h]=f:t._root=f,t;do{r=r?r[h]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+v)/2))?g=o:v=o,(u=n>=(a=(m+y)/2))?m=a:y=a}while((h=u<<1|c)==(d=(l>=a)<<1|s>=o));return r[d]=p,r[h]=f,t}var $n=function(t,e,n,i,r){this.node=t,this.x0=e,this.y0=n,this.x1=i,this.y1=r};function ti(t){return t[0]}function ei(t){return t[1]}function ni(t,e,n){var i=new ii(null==e?ti:e,null==n?ei:n,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function ii(t,e,n,i,r,o){this._x=t,this._y=e,this._x0=n,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function ri(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var oi=ni.prototype=ii.prototype;oi.copy=function(){var t,e,n=new ii(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=ri(i),n;for(t=[{source:i,target:n._root=new Array(4)}];i=t.pop();)for(var r=0;r<4;++r)(e=i.source[r])&&(e.length?t.push({source:e,target:i.target[r]=new Array(4)}):i.target[r]=ri(e));return n},oi.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return Jn(this.cover(e,n),e,n,t)},oi.addAll=function(t){var e,n,i,r,o=t.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,u=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(r=+this._y.call(null,e))||(a[n]=i,s[n]=r,i<l&&(l=i),i>u&&(u=i),r<c&&(c=r),r>h&&(h=r));if(l>u||c>h)return this;for(this.cover(l,c).cover(u,h),n=0;n<o;++n)Jn(this,a[n],s[n],t[n]);return this},oi.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,r=this._x1,o=this._y1;if(isNaN(n))r=(n=Math.floor(t))+1,o=(i=Math.floor(e))+1;else{for(var a,s,l=r-n||1,c=this._root;n>t||t>=r||i>e||e>=o;)switch(s=(e<i)<<1|t<n,(a=new Array(4))[s]=c,c=a,l*=2,s){case 0:r=n+l,o=i+l;break;case 1:n=r-l,o=i+l;break;case 2:r=n+l,i=o-l;break;case 3:n=r-l,i=o-l}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=r,this._y1=o,this},oi.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},oi.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},oi.find=function(t,e,n){var i,r,o,a,s,l,c,u=this._x0,h=this._y0,d=this._x1,p=this._y1,f=[],g=this._root;for(g&&f.push(new $n(g,u,h,d,p)),null==n?n=1/0:(u=t-n,h=e-n,d=t+n,p=e+n,n*=n);l=f.pop();)if(!(!(g=l.node)||(r=l.x0)>d||(o=l.y0)>p||(a=l.x1)<u||(s=l.y1)<h))if(g.length){var m=(r+a)/2,v=(o+s)/2;f.push(new $n(g[3],m,v,a,s),new $n(g[2],r,v,m,s),new $n(g[1],m,o,a,v),new $n(g[0],r,o,m,v)),(c=(e>=v)<<1|t>=m)&&(l=f[f.length-1],f[f.length-1]=f[f.length-1-c],f[f.length-1-c]=l)}else{var y=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),x=y*y+b*b;if(x<n){var w=Math.sqrt(n=x);u=t-w,h=e-w,d=t+w,p=e+w,i=g.data}}return i},oi.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,i,r,o,a,s,l,c,u,h,d,p=this._root,f=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(s=(f+m)/2))?f=s:m=s,(u=a>=(l=(g+v)/2))?g=l:v=l,e=p,!(p=p[h=u<<1|c]))return this;if(!p.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,d=h)}for(;p.data!==t;)if(i=p,!(p=p.next))return this;return(r=p.next)&&delete p.next,i?(r?i.next=r:delete i.next,this):e?(r?e[h]=r:delete e[h],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[d]=p:this._root=p),this):(this._root=r,this)},oi.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},oi.root=function(){return this._root},oi.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},oi.visit=function(t){var e,n,i,r,o,a,s=[],l=this._root;for(l&&s.push(new $n(l,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(l=e.node,i=e.x0,r=e.y0,o=e.x1,a=e.y1)&&l.length){var c=(i+o)/2,u=(r+a)/2;(n=l[3])&&s.push(new $n(n,c,u,o,a)),(n=l[2])&&s.push(new $n(n,i,u,c,a)),(n=l[1])&&s.push(new $n(n,c,r,o,u)),(n=l[0])&&s.push(new $n(n,i,r,c,u))}return this},oi.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new $n(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var r=e.node;if(r.length){var o,a=e.x0,s=e.y0,l=e.x1,c=e.y1,u=(a+l)/2,h=(s+c)/2;(o=r[0])&&n.push(new $n(o,a,s,u,h)),(o=r[1])&&n.push(new $n(o,u,s,l,h)),(o=r[2])&&n.push(new $n(o,a,h,u,c)),(o=r[3])&&n.push(new $n(o,u,h,l,c))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},oi.x=function(t){return arguments.length?(this._x=t,this):this._x},oi.y=function(t){return arguments.length?(this._y=t,this):this._y};var ai=function(t){return function(){return t}},si=function(t){return 1e-6*(t()-.5)},li={value:function(){}};function ci(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new ui(i)}function ui(t){this._=t}function hi(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function di(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function pi(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=li,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}ui.prototype=ci.prototype={constructor:ui,on:function(t,e){var n,i=this._,r=hi(t+"",i),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=r[o]).type)i[n]=pi(i[n],t.name,e);else if(null==e)for(n in i)i[n]=pi(i[n],t.name,null);return this}for(;++o<a;)if((n=(t=r[o]).type)&&(n=di(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new ui(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var fi=ci;function gi(t){return(gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var mi,vi,yi=0,bi=0,xi=0,wi=0,_i=0,Ci=0,Ai="object"===("undefined"==typeof performance?"undefined":gi(performance))&&performance.now?performance:Date,Ii="object"===("undefined"==typeof window?"undefined":gi(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Si(){return _i||(Ii(Mi),_i=Ai.now()+Ci)}function Mi(){_i=0}function ki(){this._call=this._time=this._next=null}function Ei(t,e,n){var i=new ki;return i.restart(t,e,n),i}function Ti(){_i=(wi=Ai.now())+Ci,yi=bi=0;try{!function(){Si(),++yi;for(var t,e=mi;e;)(t=_i-e._time)>=0&&e._call.call(null,t),e=e._next;--yi}()}finally{yi=0,function(){for(var t,e,n=mi,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:mi=e);vi=t,Pi(i)}(),_i=0}}function Oi(){var t=Ai.now(),e=t-wi;e>1e3&&(Ci-=e,wi=t)}function Pi(t){yi||(bi&&(bi=clearTimeout(bi)),t-_i>24?(t<1/0&&(bi=setTimeout(Ti,t-Ai.now()-Ci)),xi&&(xi=clearInterval(xi))):(xi||(wi=Ai.now(),xi=setInterval(Oi,1e3)),yi=1,Ii(Ti)))}function ji(t){return t.x}function Li(t){return t.y}ki.prototype=Ei.prototype={constructor:ki,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Si():+n)+(null==e?0:+e),this._next||vi===this||(vi?vi._next=this:mi=this,vi=this),this._call=t,this._time=n,Pi()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pi())}};var Di=Math.PI*(3-Math.sqrt(5)),Ri=function(t){var e,n,i=1,r=.001,o=1-Math.pow(r,1/300),a=0,s=.6,l=new Map,c=Ei(d),u=fi("tick","end"),h=(n=1,function(){return(n=(1664525*n+1013904223)%4294967296)/4294967296});function d(){p(),u.call("tick",e),i<r&&(c.stop(),u.call("end",e))}function p(n){var r,c,u=t.length;void 0===n&&(n=1);for(var h=0;h<n;++h)for(i+=(a-i)*o,l.forEach((function(t){t(i)})),r=0;r<u;++r)null==(c=t[r]).fx?c.x+=c.vx*=s:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=s:(c.y=c.fy,c.vy=0);return e}function f(){for(var e,n=0,i=t.length;n<i;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var r=10*Math.sqrt(.5+n),o=n*Di;e.x=r*Math.cos(o),e.y=r*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function g(e){return e.initialize&&e.initialize(t,h),e}return null==t&&(t=[]),f(),e={tick:p,restart:function(){return c.restart(d),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,f(),l.forEach(g),e):t},alpha:function(t){return arguments.length?(i=+t,e):i},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(o=+t,e):+o},alphaTarget:function(t){return arguments.length?(a=+t,e):a},velocityDecay:function(t){return arguments.length?(s=1-t,e):1-s},randomSource:function(t){return arguments.length?(h=t,l.forEach(g),e):h},force:function(t,n){return arguments.length>1?(null==n?l.delete(t):l.set(t,g(n)),e):l.get(t)},find:function(e,n,i){var r,o,a,s,l,c=0,u=t.length;for(null==i?i=1/0:i*=i,c=0;c<u;++c)(a=(r=e-(s=t[c]).x)*r+(o=n-s.y)*o)<i&&(l=s,i=a);return l},on:function(t,n){return arguments.length>1?(u.on(t,n),e):u.on(t)}}},Bi=function(){var t,e,n,i,r,o=ai(-30),a=1,s=1/0,l=.81;function c(n){var r,o=t.length,a=ni(t,ji,Li).visitAfter(h);for(i=n,r=0;r<o;++r)e=t[r],a.visit(d)}function u(){if(t){var e,n,i=t.length;for(r=new Array(i),e=0;e<i;++e)n=t[e],r[n.index]=+o(n,e,t)}}function h(t){var e,n,i,o,a,s=0,l=0;if(t.length){for(i=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(s+=e.value,l+=n,i+=n*e.x,o+=n*e.y);t.x=i/l,t.y=o/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=r[e.data.index]}while(e=e.next)}t.value=s}function d(t,o,c,u){if(!t.value)return!0;var h=t.x-e.x,d=t.y-e.y,p=u-o,f=h*h+d*d;if(p*p/l<f)return f<s&&(0===h&&(f+=(h=si(n))*h),0===d&&(f+=(d=si(n))*d),f<a&&(f=Math.sqrt(a*f)),e.vx+=h*t.value*i/f,e.vy+=d*t.value*i/f),!0;if(!(t.length||f>=s)){(t.data!==e||t.next)&&(0===h&&(f+=(h=si(n))*h),0===d&&(f+=(d=si(n))*d),f<a&&(f=Math.sqrt(a*f)));do{t.data!==e&&(p=r[t.data.index]*i/f,e.vx+=h*p,e.vy+=d*p)}while(t=t.next)}}return c.initialize=function(e,i){t=e,n=i,u()},c.strength=function(t){return arguments.length?(o="function"==typeof t?t:ai(+t),u(),c):o},c.distanceMin=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c.distanceMax=function(t){return arguments.length?(s=t*t,c):Math.sqrt(s)},c.theta=function(t){return arguments.length?(l=t*t,c):Math.sqrt(l)},c};function Ni(t){return(Ni="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fi(t){return t.index}function zi(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}var Vi=function(t){var e,n,i,r,o,a,s=Fi,l=function(t){return 1/Math.min(r[t.source.index],r[t.target.index])},c=ai(30),u=1;function h(i){for(var r=0,s=t.length;r<u;++r)for(var l,c,h,d,p,f,g,m=0;m<s;++m)c=(l=t[m]).source,d=(h=l.target).x+h.vx-c.x-c.vx||si(a),p=h.y+h.vy-c.y-c.vy||si(a),d*=f=((f=Math.sqrt(d*d+p*p))-n[m])/f*i*e[m],p*=f,h.vx-=d*(g=o[m]),h.vy-=p*g,c.vx+=d*(g=1-g),c.vy+=p*g}function d(){if(i){var a,l,c=i.length,u=t.length,h=new Map(i.map((function(t,e){return[s(t,e,i),t]})));for(a=0,r=new Array(c);a<u;++a)(l=t[a]).index=a,"object"!==Ni(l.source)&&(l.source=zi(h,l.source)),"object"!==Ni(l.target)&&(l.target=zi(h,l.target)),r[l.source.index]=(r[l.source.index]||0)+1,r[l.target.index]=(r[l.target.index]||0)+1;for(a=0,o=new Array(u);a<u;++a)l=t[a],o[a]=r[l.source.index]/(r[l.source.index]+r[l.target.index]);e=new Array(u),p(),n=new Array(u),f()}}function p(){if(i)for(var n=0,r=t.length;n<r;++n)e[n]=+l(t[n],n,t)}function f(){if(i)for(var e=0,r=t.length;e<r;++e)n[e]=+c(t[e],e,t)}return null==t&&(t=[]),h.initialize=function(t,e){i=t,a=e,d()},h.links=function(e){return arguments.length?(t=e,d(),h):t},h.id=function(t){return arguments.length?(s=t,h):s},h.iterations=function(t){return arguments.length?(u=+t,h):u},h.strength=function(t){return arguments.length?(l="function"==typeof t?t:ai(+t),p(),h):l},h.distance=function(t){return arguments.length?(c="function"==typeof t?t:ai(+t),f(),h):c},h};function Gi(t){return t.x+t.vx}function Hi(t){return t.y+t.vy}var Wi=function(t){var e,n,i,r=1,o=1;function a(){for(var t,a,l,c,u,h,d,p=e.length,f=0;f<o;++f)for(a=ni(e,Gi,Hi).visitAfter(s),t=0;t<p;++t)l=e[t],h=n[l.index],d=h*h,c=l.x+l.vx,u=l.y+l.vy,a.visit(g);function g(t,e,n,o,a){var s=t.data,p=t.r,f=h+p;if(!s)return e>c+f||o<c-f||n>u+f||a<u-f;if(s.index>l.index){var g=c-s.x-s.vx,m=u-s.y-s.vy,v=g*g+m*m;v<f*f&&(0===g&&(v+=(g=si(i))*g),0===m&&(v+=(m=si(i))*m),v=(f-(v=Math.sqrt(v)))/v*r,l.vx+=(g*=v)*(f=(p*=p)/(d+p)),l.vy+=(m*=v)*f,s.vx-=g*(f=1-f),s.vy-=m*f)}}}function s(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function l(){if(e){var i,r,o=e.length;for(n=new Array(o),i=0;i<o;++i)r=e[i],n[r.index]=+t(r,i,e)}}return"function"!=typeof t&&(t=ai(null==t?1:+t)),a.initialize=function(t,n){e=t,i=n,l()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(r=+t,a):r},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:ai(+e),l(),a):t},a};function Ui(){function t(t){return function(){return t}}var e,n=function(t){return t.cluster},i=t(1),r=t(-1),o=t(100),a=t(.1),s=[0,0],l=[],c={},u=[],h=100,d=100,p={none:{x:0,y:0}},f=[],g="force",m=!0,v=.1;function y(t){if(!m)return y;e.tick(),x();for(var i=0,r=l.length,o=void 0,a=t*v;i<r;++i)(o=l[i]).vx+=(p[n(o)].x-o.x)*a,o.vy+=(p[n(o)].y-o.y)*a}function b(){l&&function(){if(l&&l.length){if(void 0===n(l[0]))throw Error("Couldnt find the grouping attribute for the nodes. Make sure to set it up with forceInABox.groupBy('clusterAttr') before calling .links()");var t,s,p,g,m,v=(s=[],p=[],g={},m=[],t=function(t){var e={};return t.forEach((function(t){var i=n(t);e[i]||(e[i]={count:0,sumforceNodeSize:0})})),t.forEach((function(t){var r=n(t),o=i(t),a=e[r];a.count=a.count+1,a.sumforceNodeSize=a.sumforceNodeSize+Math.PI*(o*o)*1.3,e[r]=a})),e}(l),m=function(t){var e={},i=[];return t.forEach((function(t){var i=function(t){var e=n(c[t.source]),i=n(c[t.target]);return e<=i?e+"~"+i:i+"~"+e}(t),r=0;void 0!==e[i]&&(r=e[i]),r+=1,e[i]=r})),Object.entries(e).forEach((function(t){var e=t[0],n=t[1],r=e.split("~")[0],o=e.split("~")[1];void 0!==r&&void 0!==o&&i.push({source:r,target:o,count:n})})),i}(u),Object.keys(t).forEach((function(e,n){var i=t[e];s.push({id:e,size:i.count,r:Math.sqrt(i.sumforceNodeSize/Math.PI)}),g[e]=n})),m.forEach((function(t){var e=g[t.source],n=g[t.target];void 0!==e&&void 0!==n&&p.push({source:e,target:n,count:t.count})})),{nodes:s,links:p});e=Ri(v.nodes).force("x",function(t){var e,n,i,r=ai(.1);function o(t){for(var r,o=0,a=e.length;o<a;++o)(r=e[o]).vx+=(i[o]-r.x)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),i=new Array(a),o=0;o<a;++o)n[o]=isNaN(i[o]=+t(e[o],o,e))?0:+r(e[o],o,e)}}return"function"!=typeof t&&(t=ai(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(r="function"==typeof t?t:ai(+t),a(),o):r},o.x=function(e){return arguments.length?(t="function"==typeof e?e:ai(+e),a(),o):t},o}(h).strength(.1)).force("y",function(t){var e,n,i,r=ai(.1);function o(t){for(var r,o=0,a=e.length;o<a;++o)(r=e[o]).vy+=(i[o]-r.y)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),i=new Array(a),o=0;o<a;++o)n[o]=isNaN(i[o]=+t(e[o],o,e))?0:+r(e[o],o,e)}}return"function"!=typeof t&&(t=ai(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(r="function"==typeof t?t:ai(+t),a(),o):r},o.y=function(e){return arguments.length?(t="function"==typeof e?e:ai(+e),a(),o):t},o}(d).strength(.1)).force("collide",Wi((function(t){return t.r})).iterations(4)).force("charge",Bi().strength(r)).force("links",Vi(v.nodes.length?v.links:[]).distance(o).strength(a)),f=e.nodes(),x()}}()}function x(){return p={none:{x:0,y:0}},f.forEach((function(t){p[t.id]={x:t.x-s[0],y:t.y-s[1]}})),p}function w(t){c={},t.forEach((function(t){c[t.id]=t}))}return y.initialize=function(t){l=t,b()},y.template=function(t){return arguments.length?(g=t,b(),y):g},y.groupBy=function(t){return arguments.length?"string"==typeof t?(n=function(e){return e[t]},y):(n=t,y):n},y.enableGrouping=function(t){return arguments.length?(m=t,y):m},y.strength=function(t){return arguments.length?(v=t,y):v},y.centerX=function(t){return arguments.length?(h=t,y):h},y.centerY=function(t){return arguments.length?(d=t,y):d},y.nodes=function(t){return arguments.length?(w(t||[]),l=t||[],y):l},y.links=function(t){return arguments.length?(u=t||[],b(),y):u},y.forceNodeSize=function(e){return arguments.length?(i="function"==typeof e?e:t(+e),b(),y):i},y.nodeSize=y.forceNodeSize,y.forceCharge=function(e){return arguments.length?(r="function"==typeof e?e:t(+e),b(),y):r},y.forceLinkDistance=function(e){return arguments.length?(o="function"==typeof e?e:t(+e),b(),y):o},y.forceLinkStrength=function(e){return arguments.length?(a="function"==typeof e?e:t(+e),b(),y):a},y.offset=function(t){return arguments.length?(s=t,y):s},y.getFocis=x,y}var Zi=n(14),Yi=n.n(Zi),Xi="LAYOUT_RUN",qi="LAYOUT_END",Ki="LAYOUT_TICK",Qi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.nodeStrength=null,e.edgeStrength=null,e.preventOverlap=!1,e.clusterNodeStrength=null,e.clusterEdgeStrength=null,e.clusterEdgeDistance=null,e.clusterNodeSize=null,e.clusterFociStrength=null,e.linkDistance=50,e.alphaDecay=.028,e.alphaMin=.001,e.alpha=.3,e.collideStrength=1,e.workerEnabled=!1,e.tick=function(){},e.onLayoutEnd=function(){},e.onTick=function(){},e.ticking=void 0,e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],nodeStrength:null,edgeStrength:null,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,linkDistance:50,forceSimulation:null,alphaDecay:.028,alphaMin:.001,alpha:.3,collideStrength:1,clustering:!1,clusterNodeStrength:-1,clusterEdgeStrength:.1,clusterEdgeDistance:100,clusterFociStrength:.8,clusterNodeSize:10,tick:function(){},onLayoutEnd:function(){},onTick:function(){},workerEnabled:!1}},e.prototype.init=function(t){this.nodes=t.nodes||[];var e=t.edges||[];this.edges=e.map((function(t){var e={},n=["targetNode","sourceNode","startPoint","endPoint"];return Object.keys(t).forEach((function(i){n.indexOf(i)>-1||(e[i]=t[i])})),e})),this.ticking=!1},e.prototype.execute=function(t){var e=this,n=e.nodes,i=e.edges;if(!e.ticking){var r=e.forceSimulation,o=e.alphaMin,a=e.alphaDecay,s=e.alpha;if(r)t&&(e.clustering&&e.clusterForce&&(e.clusterForce.nodes(n),e.clusterForce.links(i)),r.nodes(n),e.edgeForce.links(i)),e.preventOverlap&&e.overlapProcess(r),r.alpha(s).restart(),this.ticking=!0;else try{var l=Bi();if(e.nodeStrength&&l.strength(e.nodeStrength),r=Ri().nodes(n),e.clustering){var c=Ui();c.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),i&&c.links(i),n&&c.nodes(n),c.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=c,r.force("group",c)}if(r.force("center",function(t,e){var n,i=1;function r(){var r,o,a=n.length,s=0,l=0;for(r=0;r<a;++r)s+=(o=n[r]).x,l+=o.y;for(s=(s/a-t)*i,l=(l/a-e)*i,r=0;r<a;++r)(o=n[r]).x-=s,o.y-=l}return null==t&&(t=0),null==e&&(e=0),r.initialize=function(t){n=t},r.x=function(e){return arguments.length?(t=+e,r):t},r.y=function(t){return arguments.length?(e=+t,r):e},r.strength=function(t){return arguments.length?(i=+t,r):i},r}(e.center[0],e.center[1])).force("charge",l).alpha(s).alphaDecay(a).alphaMin(o),e.preventOverlap&&e.overlapProcess(r),i){var u=Vi().id((function(t){return t.id})).links(i);e.edgeStrength&&u.strength(e.edgeStrength),e.linkDistance&&u.distance(e.linkDistance),e.edgeForce=u,r.force("link",u)}if(e.workerEnabled&&!Ji()&&(e.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),e.workerEnabled){r.stop();for(var h=function(t){var e=t.alphaMin(),n=t.alphaTarget(),i=t.alpha(),r=Math.log((e-n)/(i-n))/Math.log(1-t.alphaDecay());return Math.ceil(r)}(r),d=1;d<=h;d++)r.tick(),postMessage({type:Ki,currentTick:d,totalTicks:h,nodes:n},void 0);e.ticking=!1}else r.on("tick",(function(){e.tick()})).on("end",(function(){e.ticking=!1,e.onLayoutEnd&&e.onLayoutEnd()})),e.ticking=!0;e.forceSimulation=r,e.ticking=!0}catch(t){e.ticking=!1,console.warn(t)}}},e.prototype.overlapProcess=function(t){var e,n,i=this.nodeSize,r=this.nodeSpacing,o=this.collideStrength;if(n=_()(r)?function(){return r}:Yi()(r)?r:function(){return 0},i)if(Yi()(i))e=function(t){return i(t)+n(t)};else if(y()(i)){var a=(i[0]>i[1]?i[0]:i[1])/2;e=function(t){return a+n(t)}}else if(_()(i)){var s=i/2;e=function(t){return s+n(t)}}else e=function(){return 10};else e=function(t){return t.size?y()(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+n(t):t.size/2+n(t):10+n(t)};t.force("collisionForce",Wi(e).strength(o))},e.prototype.updateCfg=function(t){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.forceSimulation=null,Bn()(this,t)},e.prototype.destroy=function(){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.nodes=null,this.edges=null,this.destroyed=!0},e}(Gn);function Ji(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}var $i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=500,e.gravity=10,e.clustering=!1,e.clusterGravity=10,e.linkDistance=50,e.alpha=1,e.alphaMin=.001,e.alphaDecay=1-Math.pow(e.alphaMin,1/300),e.alphaTarget=0,e.velocityDecay=.6,e.linkStrength=1,e.nodeStrength=30,e.preventOverlap=!1,e.collideStrength=1,e.optimizeRangeFactor=1,e.tick=function(){},e.nodes=[],e.edges=[],e.width=300,e.height=300,e.bias=[],e.nodeMap={},e.nodeIdxMap={},e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,center:[0,0],gravity:10,clustering:!1,clusterGravity:10,preventOverlap:!1,nodeSpacing:void 0,collideStrength:10}},e.prototype.execute=function(){var t=this.nodes,e=this.center;if(t&&0!==t.length){if(1===t.length)return t[0].x=e[0],void(t[0].y=e[1]);var n={},i={};t.forEach((function(t,e){n[t.id]=t,i[t.id]=e})),this.nodeMap=n,this.nodeIdxMap=i,this.run()}},e.prototype.run=function(){var t=this,e=t.nodes,n=t.edges,i=t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var r,o=t.center,a=t.velocityDecay,s=t.clustering;t.initVals(),s&&(r=t.getClusterMap());for(var l=function(i){var o=[];e.forEach((function(t,e){o[e]={x:0,y:0}})),t.applyCalculate(e,n,o),s&&t.applyClusterForce(r,o),e.forEach((function(t,e){Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(t.y)&&(t.x+=o[e].x*a,t.y+=o[e].y*a)})),c.alpha+=(c.alphaTarget-c.alpha)*c.alphaDecay,t.tick()},c=this,u=0;u<i;u++)l();var h=[0,0];e.forEach((function(t){Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(t.y)&&(h[0]+=t.x,h[1]+=t.y)})),h[0]/=e.length,h[1]/=e.length;var d=[o[0]-h[0],o[1]-h[1]];e.forEach((function(t,e){Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(t.y)&&(t.x+=d[0],t.y+=d[1])}))},e.prototype.initVals=function(){for(var t=this.edges,e={},n=0;n<t.length;++n)e[t[n].source]?e[t[n].source]++:e[t[n].source]=1,e[t[n].target]?e[t[n].target]++:e[t[n].target]=1;var i=[];for(n=0;n<t.length;++n)i[n]=e[t[n].source]/(e[t[n].source]+e[t[n].target]);this.bias=i;var r,o,a=this.nodeSize,s=this.nodeSpacing;if(o=Object(ut.isNumber)(s)?function(){return s}:Object(ut.isFunction)(s)?s:function(){return 0},a)if(Object(ut.isFunction)(a))r=function(t){return a(t)+o(t)};else if(Object(ut.isArray)(a)){var l=(a[0]>a[1]?a[0]:a[1])/2;r=function(t){return l+o(t)}}else if(Object(ut.isNumber)(a)){var c=a/2;r=function(t){return c+o(t)}}else r=function(){return 10};else r=function(t){return t.size?Object(ut.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+o(t):t.size/2+o(t):10+o(t)};this.nodeSize=r;var u,h=this.linkDistance;h||(h=50),Object(ut.isNumber)(h)&&(u=function(t){return h}),this.linkDistance=u;var d,p=this.linkStrength;p||(p=1),Object(ut.isNumber)(p)&&(d=function(t){return p}),this.linkStrength=d;var f,g=this.nodeStrength;g||(g=30),Object(ut.isNumber)(g)&&(f=function(t){return g}),this.nodeStrength=f},e.prototype.getClusterMap=function(){var t=this.nodes,e={};for(var n in t.forEach((function(t){if(void 0===e[t.cluster]){var n={name:t.cluster,cx:0,cy:0,count:0};e[t.cluster]=n}var i=e[t.cluster];Object(ut.isNumber)(t.x)&&(i.cx+=t.x),Object(ut.isNumber)(t.y)&&(i.cy+=t.y),i.count++})),e)e[n].cx/=e[n].count,e[n].cy/=e[n].count;return e},e.prototype.applyClusterForce=function(t,e){var n=this.gravity,i=this.nodes,r=this.clusterGravity||n,o=this.alpha;for(var a in i.forEach((function(n,i){if(Object(ut.isNumber)(n.x)&&Object(ut.isNumber)(n.y)){var a=t[n.cluster],s=n.x-a.cx,l=n.y-a.cy,c=Math.sqrt(s*s+l*l);e[i].x-=s*r*o/c,e[i].y-=l*r*o/c}})),t)t[a].cx=0,t[a].cy=0,t[a].count=0;for(var a in i.forEach((function(e){var n=t[e.cluster];Object(ut.isNumber)(e.x)&&(n.cx+=e.x),Object(ut.isNumber)(e.y)&&(n.cy+=e.y),n.count++})),t)t[a].cx/=t[a].count,t[a].cy/=t[a].count},e.prototype.applyCalculate=function(t,e,n){var i={};t.forEach((function(e,r){n[r]={x:0,y:0},t.forEach((function(t,n){if(!(r<n)){var o=e.x-t.x,a=e.y-t.y,s=o*o+a*a;s<1&&(s=Math.sqrt(s)),0===o&&(s+=(o=.01*Math.random())*o),0===a&&(s+=(a=.01*Math.random())*a);var l=Math.sqrt(s);i[e.id+"-"+t.id]={vx:o,vy:a,vl:s,sqrtVl:l},i[t.id+"-"+e.id]={vx:-o,vy:-a,vl:s,sqrtVl:l}}}))})),this.calRepulsive(t,n,i),this.calAttractive(e,n,i)},e.prototype.calRepulsive=function(t,e,n){var i=this.width*this.optimizeRangeFactor*this.width*this.optimizeRangeFactor,r=this.nodeStrength,o=this.alpha,a=this.collideStrength,s=this.preventOverlap,l=this.nodeSize;t.forEach((function(c,u){t.forEach((function(t,h){if(u!==h&&Object(ut.isNumber)(c.x)&&Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(c.y)&&Object(ut.isNumber)(t.y)){var d=n[c.id+"-"+t.id],p=d.vl,f=d.vx,g=d.vy;if(!(p>i)&&(e[u].x+=f*r(t)*o/p,e[u].y+=g*r(t)*o/p,s&&u<h)){var m=l(c),v=l(t),y=m+v;if(p<y*y){var b=n[c.id+"-"+t.id].sqrtVl,x=(y-b)/b*a,w=v*v/(m*m+v*v),_=f*x,C=g*x;e[u].x+=_*w,e[u].y+=C*w,w=1-w,e[h].x-=_*w,e[h].y-=C*w}}}}))}))},e.prototype.calAttractive=function(t,e,n){var i=this,r=this.linkDistance,o=this.alpha,a=this.linkStrength,s=this.bias;t.forEach((function(t,l){if(t.source&&t.target){var c=i.nodeIdxMap[t.source],u=i.nodeIdxMap[t.target];if(c!==u){var h=i.nodeMap[t.source],d=i.nodeMap[t.target];if(Object(ut.isNumber)(d.x)&&Object(ut.isNumber)(h.x)&&Object(ut.isNumber)(d.y)&&Object(ut.isNumber)(h.y)){var p=n[t.target+"-"+t.source],f=(p.vl,p.sqrtVl),g=p.vx,m=p.vy,v=(f-r(t))/f*o*a(t),y=g*v,b=m*v,x=s[l];e[u].x-=y*x,e[u].y-=b*x,e[c].x+=y*(1-x),e[c].y+=b*(1-x)}}}}))},e}(Gn),tr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=1e3,e.gravity=10,e.speed=1,e.clustering=!1,e.clusterGravity=10,e.nodes=[],e.edges=[],e.width=300,e.height=300,e.nodeMap={},e.nodeIdxMap={},e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,center:[0,0],gravity:10,speed:1,clustering:!1,clusterGravity:10}},e.prototype.execute=function(){var t=this,e=this.nodes,n=this.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=n[0],void(e[0].y=n[1]);var i={},r={};e.forEach((function(e,n){Object(ut.isNumber)(e.x)||(e.x=Math.random()*t.width),Object(ut.isNumber)(e.y)||(e.y=Math.random()*t.height),i[e.id]=e,r[e.id]=n})),this.nodeMap=i,this.nodeIdxMap=r,this.run()}},e.prototype.run=function(){var t=this,e=t.nodes,n=t.edges,i=t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var r=t.center,o=t.width/10,a=Math.sqrt(t.width*t.height/(e.length+1)),s=t.gravity,l=t.speed,c=t.clustering,u={};if(c)for(var h in e.forEach((function(t){if(void 0===u[t.cluster]){var e={name:t.cluster,cx:0,cy:0,count:0};u[t.cluster]=e}var n=u[t.cluster];Object(ut.isNumber)(t.x)&&(n.cx+=t.x),Object(ut.isNumber)(t.y)&&(n.cy+=t.y),n.count++})),u)u[h].cx/=u[h].count,u[h].cy/=u[h].count;for(var d=function(i){var h=[];if(e.forEach((function(t,e){h[e]={x:0,y:0}})),t.applyCalculate(e,n,h,a),c){var d=t.clusterGravity||s;for(var p in e.forEach((function(t,e){if(Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(t.y)){var n=u[t.cluster],i=Math.sqrt((t.x-n.cx)*(t.x-n.cx)+(t.y-n.cy)*(t.y-n.cy)),r=a*d;h[e].x-=r*(t.x-n.cx)/i,h[e].y-=r*(t.y-n.cy)/i}})),u)u[p].cx=0,u[p].cy=0,u[p].count=0;for(var p in e.forEach((function(t){var e=u[t.cluster];Object(ut.isNumber)(t.x)&&(e.cx+=t.x),Object(ut.isNumber)(t.y)&&(e.cy+=t.y),e.count++})),u)u[p].cx/=u[p].count,u[p].cy/=u[p].count}e.forEach((function(t,e){if(Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(t.y)){var n=.01*a*s;h[e].x-=n*(t.x-r[0]),h[e].y-=n*(t.y-r[1])}})),e.forEach((function(t,e){if(Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(t.y)){var n=Math.sqrt(h[e].x*h[e].x+h[e].y*h[e].y);if(n>0){var i=Math.min(o*(l/800),n);t.x+=h[e].x/n*i,t.y+=h[e].y/n*i}}}))},p=0;p<i;p++)d()},e.prototype.applyCalculate=function(t,e,n,i){this.calRepulsive(t,n,i),this.calAttractive(e,n,i)},e.prototype.calRepulsive=function(t,e,n){t.forEach((function(i,r){e[r]={x:0,y:0},t.forEach((function(t,o){if(r!==o&&Object(ut.isNumber)(i.x)&&Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(i.y)&&Object(ut.isNumber)(t.y)){var a=i.x-t.x,s=i.y-t.y,l=a*a+s*s;if(0===l){l=1;var c=r>o?1:-1;a=.01*c,s=.01*c}var u=n*n/l;e[r].x+=a*u,e[r].y+=s*u}}))}))},e.prototype.calAttractive=function(t,e,n){var i=this;t.forEach((function(t){if(t.source&&t.target){var r=i.nodeIdxMap[t.source],o=i.nodeIdxMap[t.target];if(r!==o){var a=i.nodeMap[t.source],s=i.nodeMap[t.target];if(Object(ut.isNumber)(s.x)&&Object(ut.isNumber)(a.x)&&Object(ut.isNumber)(s.y)&&Object(ut.isNumber)(a.y)){var l=s.x-a.x,c=s.y-a.y,u=Math.sqrt(l*l+c*c),h=u*u/n;e[o].x-=l/u*h,e[o].y-=c/u*h,e[r].x+=l/u*h,e[r].y+=c/u*h}}}}))},e}(Gn),er=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.begin=[0,0],e.preventOverlap=!0,e.preventOverlapPadding=10,e.condense=!1,e.sortBy="degree",e.nodeSize=30,e.nodes=[],e.edges=[],e.center=[0,0],e.width=300,e.height=300,e.row=0,e.col=0,e.cellWidth=0,e.cellHeight=0,e.cellUsed={},e.id2manPos={},e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var t=this,e=t.nodes,n=e.length,i=t.center;if(0!==n){if(1===n)return e[0].x=i[0],void(e[0].y=i[1]);var r=t.edges,o=[];e.forEach((function(t){o.push(t)}));var a={};if(o.forEach((function(t,e){a[t.id]=e})),("degree"===t.sortBy||!A()(t.sortBy)||void 0===o[0][t.sortBy])&&(t.sortBy="degree",O(e[0].degree))){var s=Qt(o.length,a,r);o.forEach((function(t,e){t.degree=s[e]}))}o.sort((function(e,n){return n[t.sortBy]-e[t.sortBy]})),t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var l=t.rows,c=null!=t.cols?t.cols:t.columns;if(t.cells=n,null!=l&&null!=c?(t.rows=l,t.cols=c):null!=l&&null==c?(t.rows=l,t.cols=Math.ceil(t.cells/t.rows)):null==l&&null!=c?(t.cols=c,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.cols*t.rows>t.cells)((h=t.small())-1)*(u=t.large())>=t.cells?t.small(h-1):(u-1)*h>=t.cells&&t.large(u-1);else for(;t.cols*t.rows<t.cells;){var u,h=t.small();((u=t.large())+1)*h>=t.cells?t.large(u+1):t.small(h+1)}t.cellWidth=t.width/t.cols,t.cellHeight=t.height/t.rows,t.condense&&(t.cellWidth=0,t.cellHeight=0),t.preventOverlap&&o.forEach((function(e){var n,i;e.x&&e.y||(e.x=0,e.y=0),Object(ut.isArray)(e.size)?(n=e.size[0],i=e.size[1]):Object(ut.isNumber)(e.size)&&(n=e.size,i=e.size),void 0!==n&&void 0!==i||(Object(ut.isArray)(t.nodeSize)?(n=t.nodeSize[0],i=t.nodeSize[1]):Object(ut.isNumber)(t.nodeSize)?(n=t.nodeSize,i=t.nodeSize):(n=30,i=30));var r=t.preventOverlapPadding,o=n+r,a=i+r;t.cellWidth=Math.max(t.cellWidth,o),t.cellHeight=Math.max(t.cellHeight,a)})),t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var d=0;d<o.length;d++){var p=o[d],f=void 0;if(t.position&&(f=t.position(p)),f&&(void 0!==f.row||void 0!==f.col)){var g={row:f.row,col:f.col};if(void 0===g.col)for(g.col=0;t.used(g.row,g.col);)g.col++;else if(void 0===g.row)for(g.row=0;t.used(g.row,g.col);)g.row++;t.id2manPos[p.id]=g,t.use(g.row,g.col)}t.getPos(p)}}},e.prototype.small=function(t){var e,n=this.rows||5,i=this.cols||5;return null==t?e=Math.min(n,i):Math.min(n,i)===this.rows?this.rows=t:this.cols=t,e},e.prototype.large=function(t){var e,n=this.rows||5,i=this.cols||5;return null==t?e=Math.max(n,i):Math.max(n,i)===this.rows?this.rows=t:this.cols=t,e},e.prototype.used=function(t,e){return this.cellUsed["c-"+t+"-"+e]||!1},e.prototype.use=function(t,e){this.cellUsed["c-"+t+"-"+e]=!0},e.prototype.moveToNextCell=function(){var t=this.cols||5;this.col++,this.col>=t&&(this.col=0,this.row++)},e.prototype.getPos=function(t){var e,n,i=this.begin,r=this.cellWidth,o=this.cellHeight,a=this.id2manPos[t.id];if(a)e=a.col*r+r/2+i[0],n=a.row*o+o/2+i[1];else{for(;this.used(this.row,this.col);)this.moveToNextCell();e=this.col*r+r/2+i[0],n=this.row*o+o/2+i[1],this.use(this.row,this.col),this.moveToNextCell()}t.x=e,t.y=n},e}(Gn),nr=Object.prototype.toString;function ir(t){return nr.call(t).endsWith("Array]")}var rr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ir(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,i=void 0===n?0:n,r=e.toIndex,o=void 0===r?t.length:r;if(i<0||i>=t.length||!Number.isInteger(i))throw new Error("fromIndex must be a positive integer smaller than length");if(o<=i||o>t.length||!Number.isInteger(o))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[i],s=i+1;s<o;s++)t[s]>a&&(a=t[s]);return a},or=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ir(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,i=void 0===n?0:n,r=e.toIndex,o=void 0===r?t.length:r;if(i<0||i>=t.length||!Number.isInteger(i))throw new Error("fromIndex must be a positive integer smaller than length");if(o<=i||o>t.length||!Number.isInteger(o))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[i],s=i+1;s<o;s++)t[s]<a&&(a=t[s]);return a},ar=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ir(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");if(void 0!==n.output){if(!ir(n.output))throw new TypeError("output option must be an array if specified");e=n.output}else e=new Array(t.length);var i=or(t),r=rr(t);if(i===r)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var o=n.min,a=void 0===o?n.autoMinMax?i:0:o,s=n.max,l=void 0===s?n.autoMinMax?r:1:s;if(a>=l)throw new RangeError("min option must be smaller than max option");for(var c=(l-a)/(r-i),u=0;u<t.length;u++)e[u]=(t[u]-i)*c+a;return e},sr=" ".repeat(2),lr=" ".repeat(4);function cr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.maxRows,i=void 0===n?15:n,r=e.maxColumns,o=void 0===r?10:r,a=e.maxNumSize,s=void 0===a?8:a;return"".concat(t.constructor.name," {\n").concat(sr,"[\n").concat(lr).concat(ur(t,i,o,s),"\n").concat(sr,"]\n").concat(sr,"rows: ").concat(t.rows,"\n").concat(sr,"columns: ").concat(t.columns,"\n}")}function ur(t,e,n,i){for(var r=t.rows,o=t.columns,a=Math.min(r,e),s=Math.min(o,n),l=[],c=0;c<a;c++){for(var u=[],h=0;h<s;h++)u.push(hr(t.get(c,h),i));l.push("".concat(u.join(" ")))}return s!==o&&(l[l.length-1]+=" ... ".concat(o-n," more columns")),a!==r&&l.push("... ".concat(r-e," more rows")),l.join("\n".concat(lr))}function hr(t,e){var n=String(t);if(n.length<=e)return n.padEnd(e," ");var i=t.toPrecision(e-2);if(i.length<=e)return i;var r=t.toExponential(e-2),o=r.indexOf("e"),a=r.slice(o);return r.slice(0,e-a.length)+a}function dr(t){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pr(t,e,n){var i=n?t.rows:t.rows-1;if(e<0||e>i)throw new RangeError("Row index out of range")}function fr(t,e,n){var i=n?t.columns:t.columns-1;if(e<0||e>i)throw new RangeError("Column index out of range")}function gr(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function mr(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function vr(t,e){if("object"!==dr(e))throw new TypeError("unexpected type for row indices");if(e.some((function(e){return e<0||e>=t.rows})))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function yr(t,e){if("object"!==dr(e))throw new TypeError("unexpected type for column indices");if(e.some((function(e){return e<0||e>=t.columns})))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function br(t,e,n,i,r){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(wr("startRow",e),wr("endRow",n),wr("startColumn",i),wr("endColumn",r),e>n||i>r||e<0||e>=t.rows||n<0||n>=t.rows||i<0||i>=t.columns||r<0||r>=t.columns)throw new RangeError("Submatrix indices are out of range")}function xr(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=0;i<t;i++)n.push(e);return n}function wr(t,e){if("number"!=typeof e)throw new TypeError("".concat(t," must be a number"))}function _r(t,e,n){for(var i=t.rows,r=t.columns,o=[],a=0;a<i;a++){for(var s=0,l=0,c=0,u=0;u<r;u++)s+=c=t.get(a,u)-n[a],l+=c*c;e?o.push((l-s*s/r)/(r-1)):o.push((l-s*s/r)/r)}return o}function Cr(t,e,n){for(var i=t.rows,r=t.columns,o=[],a=0;a<r;a++){for(var s=0,l=0,c=0,u=0;u<i;u++)s+=c=t.get(u,a)-n[a],l+=c*c;e?o.push((l-s*s/i)/(i-1)):o.push((l-s*s/i)/i)}return o}function Ar(t,e,n){for(var i=t.rows,r=t.columns,o=i*r,a=0,s=0,l=0,c=0;c<i;c++)for(var u=0;u<r;u++)a+=l=t.get(c,u)-n,s+=l*l;return e?(s-a*a/o)/(o-1):(s-a*a/o)/o}function Ir(t,e){for(var n=0;n<t.rows;n++)for(var i=0;i<t.columns;i++)t.set(n,i,t.get(n,i)-e[n])}function Sr(t,e){for(var n=0;n<t.rows;n++)for(var i=0;i<t.columns;i++)t.set(n,i,t.get(n,i)-e[i])}function Mr(t,e){for(var n=0;n<t.rows;n++)for(var i=0;i<t.columns;i++)t.set(n,i,t.get(n,i)-e)}function kr(t){for(var e=[],n=0;n<t.rows;n++){for(var i=0,r=0;r<t.columns;r++)i+=Math.pow(t.get(n,r),2)/(t.columns-1);e.push(Math.sqrt(i))}return e}function Er(t,e){for(var n=0;n<t.rows;n++)for(var i=0;i<t.columns;i++)t.set(n,i,t.get(n,i)/e[n])}function Tr(t){for(var e=[],n=0;n<t.columns;n++){for(var i=0,r=0;r<t.rows;r++)i+=Math.pow(t.get(r,n),2)/(t.rows-1);e.push(Math.sqrt(i))}return e}function Or(t,e){for(var n=0;n<t.rows;n++)for(var i=0;i<t.columns;i++)t.set(n,i,t.get(n,i)/e[i])}function Pr(t){for(var e=t.size-1,n=0,i=0;i<t.columns;i++)for(var r=0;r<t.rows;r++)n+=Math.pow(t.get(r,i),2)/e;return Math.sqrt(n)}function jr(t,e){for(var n=0;n<t.rows;n++)for(var i=0;i<t.columns;i++)t.set(n,i,t.get(n,i)/e)}function Lr(t,e){return(Lr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Dr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Br(t);if(e){var r=Br(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Rr(this,n)}}function Rr(t,e){return!e||"object"!==Nr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Br(t){return(Br=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Nr(t){return(Nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Vr(t,e,n){return e&&zr(t.prototype,e),n&&zr(t,n),t}var Gr=function(){function t(){Fr(this,t)}return Vr(t,[{key:"apply",value:function(t){if("function"!=typeof t)throw new TypeError("callback must be a function");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t.call(this,e,n);return this}},{key:"to1DArray",value:function(){for(var t=[],e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t.push(this.get(e,n));return t}},{key:"to2DArray",value:function(){for(var t=[],e=0;e<this.rows;e++){t.push([]);for(var n=0;n<this.columns;n++)t[e].push(this.get(e,n))}return t}},{key:"toJSON",value:function(){return this.to2DArray()}},{key:"isRowVector",value:function(){return 1===this.rows}},{key:"isColumnVector",value:function(){return 1===this.columns}},{key:"isVector",value:function(){return 1===this.rows||1===this.columns}},{key:"isSquare",value:function(){return this.rows===this.columns}},{key:"isSymmetric",value:function(){if(this.isSquare()){for(var t=0;t<this.rows;t++)for(var e=0;e<=t;e++)if(this.get(t,e)!==this.get(e,t))return!1;return!0}return!1}},{key:"isEchelonForm",value:function(){for(var t=0,e=0,n=-1,i=!0,r=!1;t<this.rows&&i;){for(e=0,r=!1;e<this.columns&&!1===r;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(r=!0,n=e):(i=!1,r=!0);t++}return i}},{key:"isReducedEchelonForm",value:function(){for(var t=0,e=0,n=-1,i=!0,r=!1;t<this.rows&&i;){for(e=0,r=!1;e<this.columns&&!1===r;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(r=!0,n=e):(i=!1,r=!0);for(var o=e+1;o<this.rows;o++)0!==this.get(t,o)&&(i=!1);t++}return i}},{key:"echelonForm",value:function(){for(var t=this.clone(),e=0,n=0;e<t.rows&&n<t.columns;){for(var i=e,r=e;r<t.rows;r++)t.get(r,n)>t.get(i,n)&&(i=r);if(0===t.get(i,n))n++;else{t.swapRows(e,i);for(var o=t.get(e,n),a=n;a<t.columns;a++)t.set(e,a,t.get(e,a)/o);for(var s=e+1;s<t.rows;s++){var l=t.get(s,n)/t.get(e,n);t.set(s,n,0);for(var c=n+1;c<t.columns;c++)t.set(s,c,t.get(s,c)-t.get(e,c)*l)}e++,n++}}return t}},{key:"reducedEchelonForm",value:function(){for(var t=this.echelonForm(),e=t.columns,n=t.rows,i=n-1;i>=0;)if(0===t.maxRow(i))i--;else{for(var r=0,o=!1;r<n&&!1===o;)1===t.get(i,r)?o=!0:r++;for(var a=0;a<i;a++)for(var s=t.get(a,r),l=r;l<e;l++){var c=t.get(a,l)-s*t.get(i,l);t.set(a,l,c)}i--}return t}},{key:"set",value:function(){throw new Error("set method is unimplemented")}},{key:"get",value:function(){throw new Error("get method is unimplemented")}},{key:"repeat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==Nr(t))throw new TypeError("options must be an object");var e=t.rows,n=void 0===e?1:e,i=t.columns,r=void 0===i?1:i;if(!Number.isInteger(n)||n<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(r)||r<=0)throw new TypeError("columns must be a positive integer");for(var o=new Zr(this.rows*n,this.columns*r),a=0;a<n;a++)for(var s=0;s<r;s++)o.setSubMatrix(this,this.rows*a,this.columns*s);return o}},{key:"fill",value:function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,t);return this}},{key:"neg",value:function(){return this.mulS(-1)}},{key:"getRow",value:function(t){pr(this,t);for(var e=[],n=0;n<this.columns;n++)e.push(this.get(t,n));return e}},{key:"getRowVector",value:function(t){return Zr.rowVector(this.getRow(t))}},{key:"setRow",value:function(t,e){pr(this,t),e=gr(this,e);for(var n=0;n<this.columns;n++)this.set(t,n,e[n]);return this}},{key:"swapRows",value:function(t,e){pr(this,t),pr(this,e);for(var n=0;n<this.columns;n++){var i=this.get(t,n);this.set(t,n,this.get(e,n)),this.set(e,n,i)}return this}},{key:"getColumn",value:function(t){fr(this,t);for(var e=[],n=0;n<this.rows;n++)e.push(this.get(n,t));return e}},{key:"getColumnVector",value:function(t){return Zr.columnVector(this.getColumn(t))}},{key:"setColumn",value:function(t,e){fr(this,t),e=mr(this,e);for(var n=0;n<this.rows;n++)this.set(n,t,e[n]);return this}},{key:"swapColumns",value:function(t,e){fr(this,t),fr(this,e);for(var n=0;n<this.rows;n++){var i=this.get(n,t);this.set(n,t,this.get(n,e)),this.set(n,e,i)}return this}},{key:"addRowVector",value:function(t){t=gr(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[n]);return this}},{key:"subRowVector",value:function(t){t=gr(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[n]);return this}},{key:"mulRowVector",value:function(t){t=gr(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[n]);return this}},{key:"divRowVector",value:function(t){t=gr(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[n]);return this}},{key:"addColumnVector",value:function(t){t=mr(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[e]);return this}},{key:"subColumnVector",value:function(t){t=mr(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[e]);return this}},{key:"mulColumnVector",value:function(t){t=mr(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[e]);return this}},{key:"divColumnVector",value:function(t){t=mr(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[e]);return this}},{key:"mulRow",value:function(t,e){pr(this,t);for(var n=0;n<this.columns;n++)this.set(t,n,this.get(t,n)*e);return this}},{key:"mulColumn",value:function(t,e){fr(this,t);for(var n=0;n<this.rows;n++)this.set(n,t,this.get(n,t)*e);return this}},{key:"max",value:function(){for(var t=this.get(0,0),e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.get(e,n)>t&&(t=this.get(e,n));return t}},{key:"maxIndex",value:function(){for(var t=this.get(0,0),e=[0,0],n=0;n<this.rows;n++)for(var i=0;i<this.columns;i++)this.get(n,i)>t&&(t=this.get(n,i),e[0]=n,e[1]=i);return e}},{key:"min",value:function(){for(var t=this.get(0,0),e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.get(e,n)<t&&(t=this.get(e,n));return t}},{key:"minIndex",value:function(){for(var t=this.get(0,0),e=[0,0],n=0;n<this.rows;n++)for(var i=0;i<this.columns;i++)this.get(n,i)<t&&(t=this.get(n,i),e[0]=n,e[1]=i);return e}},{key:"maxRow",value:function(t){pr(this,t);for(var e=this.get(t,0),n=1;n<this.columns;n++)this.get(t,n)>e&&(e=this.get(t,n));return e}},{key:"maxRowIndex",value:function(t){pr(this,t);for(var e=this.get(t,0),n=[t,0],i=1;i<this.columns;i++)this.get(t,i)>e&&(e=this.get(t,i),n[1]=i);return n}},{key:"minRow",value:function(t){pr(this,t);for(var e=this.get(t,0),n=1;n<this.columns;n++)this.get(t,n)<e&&(e=this.get(t,n));return e}},{key:"minRowIndex",value:function(t){pr(this,t);for(var e=this.get(t,0),n=[t,0],i=1;i<this.columns;i++)this.get(t,i)<e&&(e=this.get(t,i),n[1]=i);return n}},{key:"maxColumn",value:function(t){fr(this,t);for(var e=this.get(0,t),n=1;n<this.rows;n++)this.get(n,t)>e&&(e=this.get(n,t));return e}},{key:"maxColumnIndex",value:function(t){fr(this,t);for(var e=this.get(0,t),n=[0,t],i=1;i<this.rows;i++)this.get(i,t)>e&&(e=this.get(i,t),n[0]=i);return n}},{key:"minColumn",value:function(t){fr(this,t);for(var e=this.get(0,t),n=1;n<this.rows;n++)this.get(n,t)<e&&(e=this.get(n,t));return e}},{key:"minColumnIndex",value:function(t){fr(this,t);for(var e=this.get(0,t),n=[0,t],i=1;i<this.rows;i++)this.get(i,t)<e&&(e=this.get(i,t),n[0]=i);return n}},{key:"diag",value:function(){for(var t=Math.min(this.rows,this.columns),e=[],n=0;n<t;n++)e.push(this.get(n,n));return e}},{key:"norm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"frobenius",e=0;if("max"===t)return this.max();if("frobenius"===t){for(var n=0;n<this.rows;n++)for(var i=0;i<this.columns;i++)e+=this.get(n,i)*this.get(n,i);return Math.sqrt(e)}throw new RangeError("unknown norm type: ".concat(t))}},{key:"cumulativeSum",value:function(){for(var t=0,e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t+=this.get(e,n),this.set(e,n,t);return this}},{key:"dot",value:function(e){t.isMatrix(e)&&(e=e.to1DArray());var n=this.to1DArray();if(n.length!==e.length)throw new RangeError("vectors do not have the same size");for(var i=0,r=0;r<n.length;r++)i+=n[r]*e[r];return i}},{key:"mmul",value:function(t){t=Zr.checkMatrix(t);for(var e=this.rows,n=this.columns,i=t.columns,r=new Zr(e,i),o=new Float64Array(n),a=0;a<i;a++){for(var s=0;s<n;s++)o[s]=t.get(s,a);for(var l=0;l<e;l++){for(var c=0,u=0;u<n;u++)c+=this.get(l,u)*o[u];r.set(l,a,c)}}return r}},{key:"strassen2x2",value:function(t){t=Zr.checkMatrix(t);var e=new Zr(2,2),n=this.get(0,0),i=t.get(0,0),r=this.get(0,1),o=t.get(0,1),a=this.get(1,0),s=t.get(1,0),l=this.get(1,1),c=t.get(1,1),u=(n+l)*(i+c),h=(a+l)*i,d=n*(o-c),p=l*(s-i),f=(n+r)*c,g=u+p-f+(r-l)*(s+c),m=d+f,v=h+p,y=u-h+d+(a-n)*(i+o);return e.set(0,0,g),e.set(0,1,m),e.set(1,0,v),e.set(1,1,y),e}},{key:"strassen3x3",value:function(t){t=Zr.checkMatrix(t);var e=new Zr(3,3),n=this.get(0,0),i=this.get(0,1),r=this.get(0,2),o=this.get(1,0),a=this.get(1,1),s=this.get(1,2),l=this.get(2,0),c=this.get(2,1),u=this.get(2,2),h=t.get(0,0),d=t.get(0,1),p=t.get(0,2),f=t.get(1,0),g=t.get(1,1),m=t.get(1,2),v=t.get(2,0),y=t.get(2,1),b=t.get(2,2),x=(n-o)*(-d+g),w=(-n+o+a)*(h-d+g),_=(o+a)*(-h+d),C=n*h,A=(-n+l+c)*(h-p+m),I=(-n+l)*(p-m),S=(l+c)*(-h+p),M=(-r+c+u)*(g+v-y),k=(r-u)*(g-y),E=r*v,T=(c+u)*(-v+y),O=(-r+a+s)*(m+v-b),P=(r-s)*(m-b),j=(a+s)*(-v+b),L=C+E+i*f,D=(n+i+r-o-a-c-u)*g+w+_+C+M+E+T,R=C+A+S+(n+i+r-a-s-l-c)*m+E+O+j,B=x+a*(-h+d+f-g-m-v+b)+w+C+E+O+P,N=x+w+_+C+s*y,F=E+O+P+j+o*p,z=C+A+I+c*(-h+p+f-g-m-v+y)+M+k+E,V=M+k+E+T+l*d,G=C+A+I+S+u*b;return e.set(0,0,L),e.set(0,1,D),e.set(0,2,R),e.set(1,0,B),e.set(1,1,N),e.set(1,2,F),e.set(2,0,z),e.set(2,1,V),e.set(2,2,G),e}},{key:"mmulStrassen",value:function(e){e=Zr.checkMatrix(e);var n=this.clone(),i=n.rows,r=n.columns,o=e.rows,a=e.columns;function s(e,n,i){var r=e.rows,o=e.columns;if(r===n&&o===i)return e;var a=t.zeros(n,i);return a.setSubMatrix(e,0,0)}r!==o&&console.warn("Multiplying ".concat(i," x ").concat(r," and ").concat(o," x ").concat(a," matrix: dimensions do not match."));var l=Math.max(i,o),c=Math.max(r,a);return function e(n,i,r,o){if(r<=512||o<=512)return n.mmul(i);r%2==1&&o%2==1?(n=s(n,r+1,o+1),i=s(i,r+1,o+1)):r%2==1?(n=s(n,r+1,o),i=s(i,r+1,o)):o%2==1&&(n=s(n,r,o+1),i=s(i,r,o+1));var a=parseInt(n.rows/2,10),l=parseInt(n.columns/2,10),c=n.subMatrix(0,a-1,0,l-1),u=i.subMatrix(0,a-1,0,l-1),h=n.subMatrix(0,a-1,l,n.columns-1),d=i.subMatrix(0,a-1,l,i.columns-1),p=n.subMatrix(a,n.rows-1,0,l-1),f=i.subMatrix(a,i.rows-1,0,l-1),g=n.subMatrix(a,n.rows-1,l,n.columns-1),m=i.subMatrix(a,i.rows-1,l,i.columns-1),v=e(t.add(c,g),t.add(u,m),a,l),y=e(t.add(p,g),u,a,l),b=e(c,t.sub(d,m),a,l),x=e(g,t.sub(f,u),a,l),w=e(t.add(c,h),m,a,l),_=e(t.sub(p,c),t.add(u,d),a,l),C=e(t.sub(h,g),t.add(f,m),a,l),A=t.add(v,x);A.sub(w),A.add(C);var I=t.add(b,w),S=t.add(y,x),M=t.sub(v,y);M.add(b),M.add(_);var k=t.zeros(2*A.rows,2*A.columns);return(k=(k=(k=(k=k.setSubMatrix(A,0,0)).setSubMatrix(I,A.rows,0)).setSubMatrix(S,0,A.columns)).setSubMatrix(M,A.rows,A.columns)).subMatrix(0,r-1,0,o-1)}(n=s(n,l,c),e=s(e,l,c),l,c)}},{key:"scaleRows",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==Nr(t))throw new TypeError("options must be an object");var e=t.min,n=void 0===e?0:e,i=t.max,r=void 0===i?1:i;if(!Number.isFinite(n))throw new TypeError("min must be a number");if(!Number.isFinite(r))throw new TypeError("max must be a number");if(n>=r)throw new RangeError("min must be smaller than max");for(var o=new Zr(this.rows,this.columns),a=0;a<this.rows;a++){var s=this.getRow(a);ar(s,{min:n,max:r,output:s}),o.setRow(a,s)}return o}},{key:"scaleColumns",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==Nr(t))throw new TypeError("options must be an object");var e=t.min,n=void 0===e?0:e,i=t.max,r=void 0===i?1:i;if(!Number.isFinite(n))throw new TypeError("min must be a number");if(!Number.isFinite(r))throw new TypeError("max must be a number");if(n>=r)throw new RangeError("min must be smaller than max");for(var o=new Zr(this.rows,this.columns),a=0;a<this.columns;a++){var s=this.getColumn(a);ar(s,{min:n,max:r,output:s}),o.setColumn(a,s)}return o}},{key:"flipRows",value:function(){for(var t=Math.ceil(this.columns/2),e=0;e<this.rows;e++)for(var n=0;n<t;n++){var i=this.get(e,n),r=this.get(e,this.columns-1-n);this.set(e,n,r),this.set(e,this.columns-1-n,i)}return this}},{key:"flipColumns",value:function(){for(var t=Math.ceil(this.rows/2),e=0;e<this.columns;e++)for(var n=0;n<t;n++){var i=this.get(n,e),r=this.get(this.rows-1-n,e);this.set(n,e,r),this.set(this.rows-1-n,e,i)}return this}},{key:"kroneckerProduct",value:function(t){t=Zr.checkMatrix(t);for(var e=this.rows,n=this.columns,i=t.rows,r=t.columns,o=new Zr(e*i,n*r),a=0;a<e;a++)for(var s=0;s<n;s++)for(var l=0;l<i;l++)for(var c=0;c<r;c++)o.set(i*a+l,r*s+c,this.get(a,s)*t.get(l,c));return o}},{key:"transpose",value:function(){for(var t=new Zr(this.columns,this.rows),e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t.set(n,e,this.get(e,n));return t}},{key:"sortRows",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hr,e=0;e<this.rows;e++)this.setRow(e,this.getRow(e).sort(t));return this}},{key:"sortColumns",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Hr,e=0;e<this.columns;e++)this.setColumn(e,this.getColumn(e).sort(t));return this}},{key:"subMatrix",value:function(t,e,n,i){br(this,t,e,n,i);for(var r=new Zr(e-t+1,i-n+1),o=t;o<=e;o++)for(var a=n;a<=i;a++)r.set(o-t,a-n,this.get(o,a));return r}},{key:"subMatrixRow",value:function(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.columns-1),e>n||e<0||e>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");for(var i=new Zr(t.length,n-e+1),r=0;r<t.length;r++)for(var o=e;o<=n;o++){if(t[r]<0||t[r]>=this.rows)throw new RangeError("Row index out of range: ".concat(t[r]));i.set(r,o-e,this.get(t[r],o))}return i}},{key:"subMatrixColumn",value:function(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.rows-1),e>n||e<0||e>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");for(var i=new Zr(n-e+1,t.length),r=0;r<t.length;r++)for(var o=e;o<=n;o++){if(t[r]<0||t[r]>=this.columns)throw new RangeError("Column index out of range: ".concat(t[r]));i.set(o-e,r,this.get(o,t[r]))}return i}},{key:"setSubMatrix",value:function(t,e,n){br(this,e,e+(t=Zr.checkMatrix(t)).rows-1,n,n+t.columns-1);for(var i=0;i<t.rows;i++)for(var r=0;r<t.columns;r++)this.set(e+i,n+r,t.get(i,r));return this}},{key:"selection",value:function(t,e){for(var n=function(t,e,n){return{row:vr(t,e),column:yr(t,n)}}(this,t,e),i=new Zr(t.length,e.length),r=0;r<n.row.length;r++)for(var o=n.row[r],a=0;a<n.column.length;a++){var s=n.column[a];i.set(r,a,this.get(o,s))}return i}},{key:"trace",value:function(){for(var t=Math.min(this.rows,this.columns),e=0,n=0;n<t;n++)e+=this.get(n,n);return e}},{key:"clone",value:function(){for(var t=new Zr(this.rows,this.columns),e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t.set(e,n,this.get(e,n));return t}},{key:"sum",value:function(t){switch(t){case"row":return function(t){for(var e=xr(t.rows),n=0;n<t.rows;++n)for(var i=0;i<t.columns;++i)e[n]+=t.get(n,i);return e}(this);case"column":return function(t){for(var e=xr(t.columns),n=0;n<t.rows;++n)for(var i=0;i<t.columns;++i)e[i]+=t.get(n,i);return e}(this);case void 0:return function(t){for(var e=0,n=0;n<t.rows;n++)for(var i=0;i<t.columns;i++)e+=t.get(n,i);return e}(this);default:throw new Error("invalid option: ".concat(t))}}},{key:"product",value:function(t){switch(t){case"row":return function(t){for(var e=xr(t.rows,1),n=0;n<t.rows;++n)for(var i=0;i<t.columns;++i)e[n]*=t.get(n,i);return e}(this);case"column":return function(t){for(var e=xr(t.columns,1),n=0;n<t.rows;++n)for(var i=0;i<t.columns;++i)e[i]*=t.get(n,i);return e}(this);case void 0:return function(t){for(var e=1,n=0;n<t.rows;n++)for(var i=0;i<t.columns;i++)e*=t.get(n,i);return e}(this);default:throw new Error("invalid option: ".concat(t))}}},{key:"mean",value:function(t){var e=this.sum(t);switch(t){case"row":for(var n=0;n<this.rows;n++)e[n]/=this.columns;return e;case"column":for(var i=0;i<this.columns;i++)e[i]/=this.rows;return e;case void 0:return e/this.size;default:throw new Error("invalid option: ".concat(t))}}},{key:"variance",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===Nr(t)&&(e=t,t=void 0),"object"!==Nr(e))throw new TypeError("options must be an object");var n=e,i=n.unbiased,r=void 0===i||i,o=n.mean,a=void 0===o?this.mean(t):o;if("boolean"!=typeof r)throw new TypeError("unbiased must be a boolean");switch(t){case"row":if(!Array.isArray(a))throw new TypeError("mean must be an array");return _r(this,r,a);case"column":if(!Array.isArray(a))throw new TypeError("mean must be an array");return Cr(this,r,a);case void 0:if("number"!=typeof a)throw new TypeError("mean must be a number");return Ar(this,r,a);default:throw new Error("invalid option: ".concat(t))}}},{key:"standardDeviation",value:function(t,e){"object"===Nr(t)&&(e=t,t=void 0);var n=this.variance(t,e);if(void 0===t)return Math.sqrt(n);for(var i=0;i<n.length;i++)n[i]=Math.sqrt(n[i]);return n}},{key:"center",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===Nr(t)&&(e=t,t=void 0),"object"!==Nr(e))throw new TypeError("options must be an object");var n=e,i=n.center,r=void 0===i?this.mean(t):i;switch(t){case"row":if(!Array.isArray(r))throw new TypeError("center must be an array");return Ir(this,r),this;case"column":if(!Array.isArray(r))throw new TypeError("center must be an array");return Sr(this,r),this;case void 0:if("number"!=typeof r)throw new TypeError("center must be a number");return Mr(this,r),this;default:throw new Error("invalid option: ".concat(t))}}},{key:"scale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===Nr(t)&&(e=t,t=void 0),"object"!==Nr(e))throw new TypeError("options must be an object");var n=e.scale;switch(t){case"row":if(void 0===n)n=kr(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return Er(this,n),this;case"column":if(void 0===n)n=Tr(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return Or(this,n),this;case void 0:if(void 0===n)n=Pr(this);else if("number"!=typeof n)throw new TypeError("scale must be a number");return jr(this,n),this;default:throw new Error("invalid option: ".concat(t))}}},{key:"toString",value:function(t){return cr(this,t)}},{key:"size",get:function(){return this.rows*this.columns}}],[{key:"from1DArray",value:function(t,e,n){if(t*e!==n.length)throw new RangeError("data length does not match given dimensions");for(var i=new Zr(t,e),r=0;r<t;r++)for(var o=0;o<e;o++)i.set(r,o,n[r*e+o]);return i}},{key:"rowVector",value:function(t){for(var e=new Zr(1,t.length),n=0;n<t.length;n++)e.set(0,n,t[n]);return e}},{key:"columnVector",value:function(t){for(var e=new Zr(t.length,1),n=0;n<t.length;n++)e.set(n,0,t[n]);return e}},{key:"zeros",value:function(t,e){return new Zr(t,e)}},{key:"ones",value:function(t,e){return new Zr(t,e).fill(1)}},{key:"rand",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!==Nr(n))throw new TypeError("options must be an object");for(var i=n.random,r=void 0===i?Math.random:i,o=new Zr(t,e),a=0;a<t;a++)for(var s=0;s<e;s++)o.set(a,s,r());return o}},{key:"randInt",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!==Nr(n))throw new TypeError("options must be an object");var i=n.min,r=void 0===i?0:i,o=n.max,a=void 0===o?1e3:o,s=n.random,l=void 0===s?Math.random:s;if(!Number.isInteger(r))throw new TypeError("min must be an integer");if(!Number.isInteger(a))throw new TypeError("max must be an integer");if(r>=a)throw new RangeError("min must be smaller than max");for(var c=a-r,u=new Zr(t,e),h=0;h<t;h++)for(var d=0;d<e;d++){var p=r+Math.round(l()*c);u.set(h,d,p)}return u}},{key:"eye",value:function(t,e,n){void 0===e&&(e=t),void 0===n&&(n=1);for(var i=Math.min(t,e),r=this.zeros(t,e),o=0;o<i;o++)r.set(o,o,n);return r}},{key:"diag",value:function(t,e,n){var i=t.length;void 0===e&&(e=i),void 0===n&&(n=e);for(var r=Math.min(i,e,n),o=this.zeros(e,n),a=0;a<r;a++)o.set(a,a,t[a]);return o}},{key:"min",value:function(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);for(var n=t.rows,i=t.columns,r=new Zr(n,i),o=0;o<n;o++)for(var a=0;a<i;a++)r.set(o,a,Math.min(t.get(o,a),e.get(o,a)));return r}},{key:"max",value:function(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);for(var n=t.rows,i=t.columns,r=new this(n,i),o=0;o<n;o++)for(var a=0;a<i;a++)r.set(o,a,Math.max(t.get(o,a),e.get(o,a)));return r}},{key:"checkMatrix",value:function(e){return t.isMatrix(e)?e:new Zr(e)}},{key:"isMatrix",value:function(t){return null!=t&&"Matrix"===t.klass}}]),t}();function Hr(t,e){return t-e}Gr.prototype.klass="Matrix","undefined"!=typeof Symbol&&(Gr.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return cr(this)}),Gr.random=Gr.rand,Gr.randomInt=Gr.randInt,Gr.diagonal=Gr.diag,Gr.prototype.diagonal=Gr.prototype.diag,Gr.identity=Gr.eye,Gr.prototype.negate=Gr.prototype.neg,Gr.prototype.tensorProduct=Gr.prototype.kroneckerProduct;var Wr,Ur,Zr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lr(t,e)}(n,t);var e=Dr(n);function n(t,i){var r;if(Fr(this,n),r=e.call(this),n.isMatrix(t))return Rr(r,t.clone());if(Number.isInteger(t)&&t>0){if(r.data=[],!(Number.isInteger(i)&&i>0))throw new TypeError("nColumns must be a positive integer");for(var o=0;o<t;o++)r.data.push(new Float64Array(i))}else{if(!Array.isArray(t))throw new TypeError("First argument must be a positive number or an array");var a=t;if(t=a.length,"number"!=typeof(i=a[0].length)||0===i)throw new TypeError("Data must be a 2D array with at least one element");r.data=[];for(var s=0;s<t;s++){if(a[s].length!==i)throw new RangeError("Inconsistent array dimensions");r.data.push(Float64Array.from(a[s]))}}return r.rows=t,r.columns=i,r}return Vr(n,[{key:"set",value:function(t,e,n){return this.data[t][e]=n,this}},{key:"get",value:function(t,e){return this.data[t][e]}},{key:"removeRow",value:function(t){if(pr(this,t),1===this.rows)throw new RangeError("A matrix cannot have less than one row");return this.data.splice(t,1),this.rows-=1,this}},{key:"addRow",value:function(t,e){return void 0===e&&(e=t,t=this.rows),pr(this,t,!0),e=Float64Array.from(gr(this,e)),this.data.splice(t,0,e),this.rows+=1,this}},{key:"removeColumn",value:function(t){if(fr(this,t),1===this.columns)throw new RangeError("A matrix cannot have less than one column");for(var e=0;e<this.rows;e++){for(var n=new Float64Array(this.columns-1),i=0;i<t;i++)n[i]=this.data[e][i];for(var r=t+1;r<this.columns;r++)n[r-1]=this.data[e][r];this.data[e]=n}return this.columns-=1,this}},{key:"addColumn",value:function(t,e){void 0===e&&(e=t,t=this.columns),fr(this,t,!0),e=mr(this,e);for(var n=0;n<this.rows;n++){for(var i=new Float64Array(this.columns+1),r=0;r<t;r++)i[r]=this.data[n][r];for(i[r++]=e[n];r<this.columns+1;r++)i[r]=this.data[n][r-1];this.data[n]=i}return this.columns+=1,this}}]),n}(Gr);function Yr(t){return(Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xr(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function qr(t,e){return(qr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Jr(t);if(e){var r=Jr(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Qr(this,n)}}function Qr(t,e){return!e||"object"!==Yr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Jr(t){return(Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Ur=Zr,(Wr=Gr).prototype.add=function(t){return"number"==typeof t?this.addS(t):this.addM(t)},Wr.prototype.addS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t);return this},Wr.prototype.addM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t.get(e,n));return this},Wr.add=function(t,e){return new Ur(t).add(e)},Wr.prototype.sub=function(t){return"number"==typeof t?this.subS(t):this.subM(t)},Wr.prototype.subS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t);return this},Wr.prototype.subM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t.get(e,n));return this},Wr.sub=function(t,e){return new Ur(t).sub(e)},Wr.prototype.subtract=Wr.prototype.sub,Wr.prototype.subtractS=Wr.prototype.subS,Wr.prototype.subtractM=Wr.prototype.subM,Wr.subtract=Wr.sub,Wr.prototype.mul=function(t){return"number"==typeof t?this.mulS(t):this.mulM(t)},Wr.prototype.mulS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t);return this},Wr.prototype.mulM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t.get(e,n));return this},Wr.mul=function(t,e){return new Ur(t).mul(e)},Wr.prototype.multiply=Wr.prototype.mul,Wr.prototype.multiplyS=Wr.prototype.mulS,Wr.prototype.multiplyM=Wr.prototype.mulM,Wr.multiply=Wr.mul,Wr.prototype.div=function(t){return"number"==typeof t?this.divS(t):this.divM(t)},Wr.prototype.divS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t);return this},Wr.prototype.divM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t.get(e,n));return this},Wr.div=function(t,e){return new Ur(t).div(e)},Wr.prototype.divide=Wr.prototype.div,Wr.prototype.divideS=Wr.prototype.divS,Wr.prototype.divideM=Wr.prototype.divM,Wr.divide=Wr.div,Wr.prototype.mod=function(t){return"number"==typeof t?this.modS(t):this.modM(t)},Wr.prototype.modS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t);return this},Wr.prototype.modM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t.get(e,n));return this},Wr.mod=function(t,e){return new Ur(t).mod(e)},Wr.prototype.modulus=Wr.prototype.mod,Wr.prototype.modulusS=Wr.prototype.modS,Wr.prototype.modulusM=Wr.prototype.modM,Wr.modulus=Wr.mod,Wr.prototype.and=function(t){return"number"==typeof t?this.andS(t):this.andM(t)},Wr.prototype.andS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t);return this},Wr.prototype.andM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t.get(e,n));return this},Wr.and=function(t,e){return new Ur(t).and(e)},Wr.prototype.or=function(t){return"number"==typeof t?this.orS(t):this.orM(t)},Wr.prototype.orS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t);return this},Wr.prototype.orM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t.get(e,n));return this},Wr.or=function(t,e){return new Ur(t).or(e)},Wr.prototype.xor=function(t){return"number"==typeof t?this.xorS(t):this.xorM(t)},Wr.prototype.xorS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t);return this},Wr.prototype.xorM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t.get(e,n));return this},Wr.xor=function(t,e){return new Ur(t).xor(e)},Wr.prototype.leftShift=function(t){return"number"==typeof t?this.leftShiftS(t):this.leftShiftM(t)},Wr.prototype.leftShiftS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t);return this},Wr.prototype.leftShiftM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t.get(e,n));return this},Wr.leftShift=function(t,e){return new Ur(t).leftShift(e)},Wr.prototype.signPropagatingRightShift=function(t){return"number"==typeof t?this.signPropagatingRightShiftS(t):this.signPropagatingRightShiftM(t)},Wr.prototype.signPropagatingRightShiftS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t);return this},Wr.prototype.signPropagatingRightShiftM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t.get(e,n));return this},Wr.signPropagatingRightShift=function(t,e){return new Ur(t).signPropagatingRightShift(e)},Wr.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t)},Wr.prototype.rightShiftS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t);return this},Wr.prototype.rightShiftM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t.get(e,n));return this},Wr.rightShift=function(t,e){return new Ur(t).rightShift(e)},Wr.prototype.zeroFillRightShift=Wr.prototype.rightShift,Wr.prototype.zeroFillRightShiftS=Wr.prototype.rightShiftS,Wr.prototype.zeroFillRightShiftM=Wr.prototype.rightShiftM,Wr.zeroFillRightShift=Wr.rightShift,Wr.prototype.not=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,~this.get(t,e));return this},Wr.not=function(t){return new Ur(t).not()},Wr.prototype.abs=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.abs(this.get(t,e)));return this},Wr.abs=function(t){return new Ur(t).abs()},Wr.prototype.acos=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.acos(this.get(t,e)));return this},Wr.acos=function(t){return new Ur(t).acos()},Wr.prototype.acosh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.acosh(this.get(t,e)));return this},Wr.acosh=function(t){return new Ur(t).acosh()},Wr.prototype.asin=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.asin(this.get(t,e)));return this},Wr.asin=function(t){return new Ur(t).asin()},Wr.prototype.asinh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.asinh(this.get(t,e)));return this},Wr.asinh=function(t){return new Ur(t).asinh()},Wr.prototype.atan=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.atan(this.get(t,e)));return this},Wr.atan=function(t){return new Ur(t).atan()},Wr.prototype.atanh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.atanh(this.get(t,e)));return this},Wr.atanh=function(t){return new Ur(t).atanh()},Wr.prototype.cbrt=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.cbrt(this.get(t,e)));return this},Wr.cbrt=function(t){return new Ur(t).cbrt()},Wr.prototype.ceil=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.ceil(this.get(t,e)));return this},Wr.ceil=function(t){return new Ur(t).ceil()},Wr.prototype.clz32=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.clz32(this.get(t,e)));return this},Wr.clz32=function(t){return new Ur(t).clz32()},Wr.prototype.cos=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.cos(this.get(t,e)));return this},Wr.cos=function(t){return new Ur(t).cos()},Wr.prototype.cosh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.cosh(this.get(t,e)));return this},Wr.cosh=function(t){return new Ur(t).cosh()},Wr.prototype.exp=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.exp(this.get(t,e)));return this},Wr.exp=function(t){return new Ur(t).exp()},Wr.prototype.expm1=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.expm1(this.get(t,e)));return this},Wr.expm1=function(t){return new Ur(t).expm1()},Wr.prototype.floor=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.floor(this.get(t,e)));return this},Wr.floor=function(t){return new Ur(t).floor()},Wr.prototype.fround=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.fround(this.get(t,e)));return this},Wr.fround=function(t){return new Ur(t).fround()},Wr.prototype.log=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log(this.get(t,e)));return this},Wr.log=function(t){return new Ur(t).log()},Wr.prototype.log1p=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log1p(this.get(t,e)));return this},Wr.log1p=function(t){return new Ur(t).log1p()},Wr.prototype.log10=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log10(this.get(t,e)));return this},Wr.log10=function(t){return new Ur(t).log10()},Wr.prototype.log2=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log2(this.get(t,e)));return this},Wr.log2=function(t){return new Ur(t).log2()},Wr.prototype.round=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.round(this.get(t,e)));return this},Wr.round=function(t){return new Ur(t).round()},Wr.prototype.sign=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sign(this.get(t,e)));return this},Wr.sign=function(t){return new Ur(t).sign()},Wr.prototype.sin=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sin(this.get(t,e)));return this},Wr.sin=function(t){return new Ur(t).sin()},Wr.prototype.sinh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sinh(this.get(t,e)));return this},Wr.sinh=function(t){return new Ur(t).sinh()},Wr.prototype.sqrt=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sqrt(this.get(t,e)));return this},Wr.sqrt=function(t){return new Ur(t).sqrt()},Wr.prototype.tan=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.tan(this.get(t,e)));return this},Wr.tan=function(t){return new Ur(t).tan()},Wr.prototype.tanh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.tanh(this.get(t,e)));return this},Wr.tanh=function(t){return new Ur(t).tanh()},Wr.prototype.trunc=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.trunc(this.get(t,e)));return this},Wr.trunc=function(t){return new Ur(t).trunc()},Wr.pow=function(t,e){return new Ur(t).pow(e)},Wr.prototype.pow=function(t){return"number"==typeof t?this.powS(t):this.powM(t)},Wr.prototype.powS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t));return this},Wr.prototype.powM=function(t){if(t=Ur.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t.get(e,n)));return this};var $r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qr(t,e)}(o,t);var e,n,i,r=Kr(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=r.call(this)).data=t,e.rows=t.length,e.columns=t[0].length,e}return e=o,(n=[{key:"set",value:function(t,e,n){return this.data[t][e]=n,this}},{key:"get",value:function(t,e){return this.data[t][e]}}])&&Xr(e.prototype,n),i&&Xr(e,i),o}(Gr);function to(t,e){var n=0;return Math.abs(t)>Math.abs(e)?(n=e/t,Math.abs(t)*Math.sqrt(1+n*n)):0!==e?(n=t/e,Math.abs(e)*Math.sqrt(1+n*n)):0}function eo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function no(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var io=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eo(this,t);var i,r=(e=$r.checkMatrix(e)).rows,o=e.columns,a=n.computeLeftSingularVectors,s=void 0===a||a,l=n.computeRightSingularVectors,c=void 0===l||l,u=n.autoTranspose,h=void 0!==u&&u,d=Boolean(s),p=Boolean(c),f=!1;if(r<o)if(h){r=(i=e.transpose()).rows,o=i.columns,f=!0;var g=d;d=p,p=g}else i=e.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else i=e.clone();for(var m=Math.min(r,o),v=Math.min(r+1,o),y=new Float64Array(v),b=new Zr(r,m),x=new Zr(o,o),w=new Float64Array(o),_=new Float64Array(r),C=new Float64Array(v),A=0;A<v;A++)C[A]=A;for(var I=Math.min(r-1,o),S=Math.max(0,Math.min(o-2,r)),M=Math.max(I,S),k=0;k<M;k++){if(k<I){y[k]=0;for(var E=k;E<r;E++)y[k]=to(y[k],i.get(E,k));if(0!==y[k]){i.get(k,k)<0&&(y[k]=-y[k]);for(var T=k;T<r;T++)i.set(T,k,i.get(T,k)/y[k]);i.set(k,k,i.get(k,k)+1)}y[k]=-y[k]}for(var O=k+1;O<o;O++){if(k<I&&0!==y[k]){for(var P=0,j=k;j<r;j++)P+=i.get(j,k)*i.get(j,O);P=-P/i.get(k,k);for(var L=k;L<r;L++)i.set(L,O,i.get(L,O)+P*i.get(L,k))}w[O]=i.get(k,O)}if(d&&k<I)for(var D=k;D<r;D++)b.set(D,k,i.get(D,k));if(k<S){w[k]=0;for(var R=k+1;R<o;R++)w[k]=to(w[k],w[R]);if(0!==w[k]){w[k+1]<0&&(w[k]=0-w[k]);for(var B=k+1;B<o;B++)w[B]/=w[k];w[k+1]+=1}if(w[k]=-w[k],k+1<r&&0!==w[k]){for(var N=k+1;N<r;N++)_[N]=0;for(var F=k+1;F<r;F++)for(var z=k+1;z<o;z++)_[F]+=w[z]*i.get(F,z);for(var V=k+1;V<o;V++)for(var G=-w[V]/w[k+1],H=k+1;H<r;H++)i.set(H,V,i.get(H,V)+G*_[H])}if(p)for(var W=k+1;W<o;W++)x.set(W,k,w[W])}}var U=Math.min(o,r+1);if(I<o&&(y[I]=i.get(I,I)),r<U&&(y[U-1]=0),S+1<U&&(w[S]=i.get(S,U-1)),w[U-1]=0,d){for(var Z=I;Z<m;Z++){for(var Y=0;Y<r;Y++)b.set(Y,Z,0);b.set(Z,Z,1)}for(var X=I-1;X>=0;X--)if(0!==y[X]){for(var q=X+1;q<m;q++){for(var K=0,Q=X;Q<r;Q++)K+=b.get(Q,X)*b.get(Q,q);K=-K/b.get(X,X);for(var J=X;J<r;J++)b.set(J,q,b.get(J,q)+K*b.get(J,X))}for(var $=X;$<r;$++)b.set($,X,-b.get($,X));b.set(X,X,1+b.get(X,X));for(var tt=0;tt<X-1;tt++)b.set(tt,X,0)}else{for(var et=0;et<r;et++)b.set(et,X,0);b.set(X,X,1)}}if(p)for(var nt=o-1;nt>=0;nt--){if(nt<S&&0!==w[nt])for(var it=nt+1;it<o;it++){for(var rt=0,ot=nt+1;ot<o;ot++)rt+=x.get(ot,nt)*x.get(ot,it);rt=-rt/x.get(nt+1,nt);for(var at=nt+1;at<o;at++)x.set(at,it,x.get(at,it)+rt*x.get(at,nt))}for(var st=0;st<o;st++)x.set(st,nt,0);x.set(nt,nt,1)}for(var lt=U-1,ct=Number.EPSILON;U>0;){var ut=void 0,ht=void 0;for(ut=U-2;ut>=-1&&-1!==ut;ut--){var dt=Number.MIN_VALUE+ct*Math.abs(y[ut]+Math.abs(y[ut+1]));if(Math.abs(w[ut])<=dt||Number.isNaN(w[ut])){w[ut]=0;break}}if(ut===U-2)ht=4;else{var pt=void 0;for(pt=U-1;pt>=ut&&pt!==ut;pt--){var ft=(pt!==U?Math.abs(w[pt]):0)+(pt!==ut+1?Math.abs(w[pt-1]):0);if(Math.abs(y[pt])<=ct*ft){y[pt]=0;break}}pt===ut?ht=3:pt===U-1?ht=1:(ht=2,ut=pt)}switch(ut++,ht){case 1:var gt=w[U-2];w[U-2]=0;for(var mt=U-2;mt>=ut;mt--){var vt=to(y[mt],gt),yt=y[mt]/vt,bt=gt/vt;if(y[mt]=vt,mt!==ut&&(gt=-bt*w[mt-1],w[mt-1]=yt*w[mt-1]),p)for(var xt=0;xt<o;xt++)vt=yt*x.get(xt,mt)+bt*x.get(xt,U-1),x.set(xt,U-1,-bt*x.get(xt,mt)+yt*x.get(xt,U-1)),x.set(xt,mt,vt)}break;case 2:var wt=w[ut-1];w[ut-1]=0;for(var _t=ut;_t<U;_t++){var Ct=to(y[_t],wt),At=y[_t]/Ct,It=wt/Ct;if(y[_t]=Ct,wt=-It*w[_t],w[_t]=At*w[_t],d)for(var St=0;St<r;St++)Ct=At*b.get(St,_t)+It*b.get(St,ut-1),b.set(St,ut-1,-It*b.get(St,_t)+At*b.get(St,ut-1)),b.set(St,_t,Ct)}break;case 3:var Mt=Math.max(Math.abs(y[U-1]),Math.abs(y[U-2]),Math.abs(w[U-2]),Math.abs(y[ut]),Math.abs(w[ut])),kt=y[U-1]/Mt,Et=y[U-2]/Mt,Tt=w[U-2]/Mt,Ot=y[ut]/Mt,Pt=w[ut]/Mt,jt=((Et+kt)*(Et-kt)+Tt*Tt)/2,Lt=kt*Tt*(kt*Tt),Dt=0;0===jt&&0===Lt||(Dt=Lt/(jt+(Dt=jt<0?0-Math.sqrt(jt*jt+Lt):Math.sqrt(jt*jt+Lt))));for(var Rt=(Ot+kt)*(Ot-kt)+Dt,Bt=Ot*Pt,Nt=ut;Nt<U-1;Nt++){var Ft=to(Rt,Bt);0===Ft&&(Ft=Number.MIN_VALUE);var zt=Rt/Ft,Vt=Bt/Ft;if(Nt!==ut&&(w[Nt-1]=Ft),Rt=zt*y[Nt]+Vt*w[Nt],w[Nt]=zt*w[Nt]-Vt*y[Nt],Bt=Vt*y[Nt+1],y[Nt+1]=zt*y[Nt+1],p)for(var Gt=0;Gt<o;Gt++)Ft=zt*x.get(Gt,Nt)+Vt*x.get(Gt,Nt+1),x.set(Gt,Nt+1,-Vt*x.get(Gt,Nt)+zt*x.get(Gt,Nt+1)),x.set(Gt,Nt,Ft);if(0===(Ft=to(Rt,Bt))&&(Ft=Number.MIN_VALUE),zt=Rt/Ft,Vt=Bt/Ft,y[Nt]=Ft,Rt=zt*w[Nt]+Vt*y[Nt+1],y[Nt+1]=-Vt*w[Nt]+zt*y[Nt+1],Bt=Vt*w[Nt+1],w[Nt+1]=zt*w[Nt+1],d&&Nt<r-1)for(var Ht=0;Ht<r;Ht++)Ft=zt*b.get(Ht,Nt)+Vt*b.get(Ht,Nt+1),b.set(Ht,Nt+1,-Vt*b.get(Ht,Nt)+zt*b.get(Ht,Nt+1)),b.set(Ht,Nt,Ft)}w[U-2]=Rt;break;case 4:if(y[ut]<=0&&(y[ut]=y[ut]<0?-y[ut]:0,p))for(var Wt=0;Wt<=lt;Wt++)x.set(Wt,ut,-x.get(Wt,ut));for(;ut<lt&&!(y[ut]>=y[ut+1]);){var Ut=y[ut];if(y[ut]=y[ut+1],y[ut+1]=Ut,p&&ut<o-1)for(var Zt=0;Zt<o;Zt++)Ut=x.get(Zt,ut+1),x.set(Zt,ut+1,x.get(Zt,ut)),x.set(Zt,ut,Ut);if(d&&ut<r-1)for(var Yt=0;Yt<r;Yt++)Ut=b.get(Yt,ut+1),b.set(Yt,ut+1,b.get(Yt,ut)),b.set(Yt,ut,Ut);ut++}U--}}if(f){var Xt=x;x=b,b=Xt}this.m=r,this.n=o,this.s=y,this.U=b,this.V=x}var e,n,i;return e=t,(n=[{key:"solve",value:function(t){for(var e=t,n=this.threshold,i=this.s.length,r=Zr.zeros(i,i),o=0;o<i;o++)Math.abs(this.s[o])<=n?r.set(o,o,0):r.set(o,o,1/this.s[o]);for(var a=this.U,s=this.rightSingularVectors,l=s.mmul(r),c=s.rows,u=a.rows,h=Zr.zeros(c,u),d=0;d<c;d++)for(var p=0;p<u;p++){for(var f=0,g=0;g<i;g++)f+=l.get(d,g)*a.get(p,g);h.set(d,p,f)}return h.mmul(e)}},{key:"solveForDiagonal",value:function(t){return this.solve(Zr.diag(t))}},{key:"inverse",value:function(){for(var t=this.V,e=this.threshold,n=t.rows,i=t.columns,r=new Zr(n,this.s.length),o=0;o<n;o++)for(var a=0;a<i;a++)Math.abs(this.s[a])>e&&r.set(o,a,t.get(o,a)/this.s[a]);for(var s=this.U,l=s.rows,c=s.columns,u=new Zr(n,l),h=0;h<n;h++)for(var d=0;d<l;d++){for(var p=0,f=0;f<c;f++)p+=r.get(h,f)*s.get(d,f);u.set(h,d,p)}return u}},{key:"condition",get:function(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}},{key:"norm2",get:function(){return this.s[0]}},{key:"rank",get:function(){for(var t=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,e=0,n=this.s,i=0,r=n.length;i<r;i++)n[i]>t&&e++;return e}},{key:"diagonal",get:function(){return Array.from(this.s)}},{key:"threshold",get:function(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}},{key:"leftSingularVectors",get:function(){return this.U}},{key:"rightSingularVectors",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){return Zr.diag(this.s)}}])&&no(e.prototype,n),i&&no(e,i),t}(),ro=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.linkDistance=50,e.scaledDistances=null,e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],linkDistance:50}},e.prototype.execute=function(){var t=this.nodes,e=this.edges,n=void 0===e?[]:e,i=this.center;if(t&&0!==t.length){if(1===t.length)return t[0].x=i[0],void(t[0].y=i[1]);var r=this.linkDistance,o=Zt({nodes:t,edges:n},!1),a=Ut(o);this.handleInfinity(a);var s=Wt(a,r);this.scaledDistances=s;var l=this.runMDS();this.positions=l,l.forEach((function(e,n){t[n].x=e[0]+i[0],t[n].y=e[1]+i[1]}))}},e.prototype.runMDS=function(){var t=this.scaledDistances,e=Zr.mul(Zr.pow(t,2),-.5),n=e.mean("row"),i=e.mean("column"),r=e.mean();e.add(r).subRowVector(n).subColumnVector(i);var o=new io(e),a=Zr.sqrt(o.diagonalMatrix).diagonal();return o.leftSingularVectors.toJSON().map((function(t){return Zr.mul([t],[a]).toJSON()[0].splice(0,2)}))},e.prototype.handleInfinity=function(t){var e=-999999;t.forEach((function(t){t.forEach((function(t){t!==1/0&&e<t&&(e=t)}))})),t.forEach((function(n,i){n.forEach((function(n,r){n===1/0&&(t[i][r]=e)}))}))},e}(Gn),oo=function(){function t(t){this.distances=t.distances,this.dimension=t.dimension||2,this.linkDistance=t.linkDistance}return t.prototype.layout=function(){var t=this.dimension,e=this.distances,n=this.linkDistance;try{var i=Zr.mul(Zr.pow(e,2),-.5),r=i.mean("row"),o=i.mean("column"),a=i.mean();i.add(a).subRowVector(r).subColumnVector(o);var s=new io(i),l=Zr.sqrt(s.diagonalMatrix).diagonal();return s.leftSingularVectors.toJSON().map((function(e){return Zr.mul([e],[l]).toJSON()[0].splice(0,t)}))}catch(t){for(var c=[],u=0;u<e.length;u++){var h=Math.random()*n,d=Math.random()*n;c.push([h,d])}return c}},t}(),ao=function(){function t(t){this.disp=[],this.positions=t.positions,this.adjMatrix=t.adjMatrix,this.focusID=t.focusID,this.radii=t.radii,this.iterations=t.iterations||10,this.height=t.height||10,this.width=t.width||10,this.speed=t.speed||100,this.gravity=t.gravity||10,this.nodeSizeFunc=t.nodeSizeFunc,this.k=t.k||5,this.strictRadial=t.strictRadial,this.nodes=t.nodes}return t.prototype.layout=function(){var t=this.positions,e=[],n=this.iterations,i=this.width/10;this.maxDisplace=i,this.disp=e;for(var r=0;r<n;r++)t.forEach((function(t,n){e[n]={x:0,y:0}})),this.getRepulsion(),this.updatePositions();return t},t.prototype.getRepulsion=function(){var t=this,e=t.positions,n=t.nodes,i=t.disp,r=t.k,o=t.radii||[];e.forEach((function(a,s){i[s]={x:0,y:0},e.forEach((function(e,l){if(s!==l&&o[s]===o[l]){var c=a[0]-e[0],u=a[1]-e[1],h=Math.sqrt(c*c+u*u);if(0===h){h=1;var d=s>l?1:-1;c=.01*d,u=.01*d}if(h<t.nodeSizeFunc(n[s])/2+t.nodeSizeFunc(n[l])/2){var p=r*r/h;i[s].x+=c/h*p,i[s].y+=u/h*p}}}))}))},t.prototype.updatePositions=function(){var t=this.positions,e=this.disp,n=this.speed,i=this.strictRadial,r=this.focusID,o=this.maxDisplace||this.width/10;i&&e.forEach((function(e,n){var i=t[n][0]-t[r][0],o=t[n][1]-t[r][1],a=Math.sqrt(i*i+o*o),s=o/a,l=-i/a,c=Math.sqrt(e.x*e.x+e.y*e.y),u=Math.acos((s*e.x+l*e.y)/c);u>Math.PI/2&&(u-=Math.PI/2,s*=-1,l*=-1);var h=Math.cos(u)*c;e.x=s*h,e.y=l*h}));var a=this.radii;t.forEach((function(s,l){if(l!==r){var c=Math.sqrt(e[l].x*e[l].x+e[l].y*e[l].y);if(c>0&&l!==r){var u=Math.min(o*(n/800),c);if(s[0]+=e[l].x/c*u,s[1]+=e[l].y/c*u,i){var h=s[0]-t[r][0],d=s[1]-t[r][1],p=Math.sqrt(h*h+d*d);h=h/p*a[l],d=d/p*a[l],s[0]=t[r][0]+h,s[1]=t[r][1]+d}}}}))},t}();function so(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var lo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=1e3,e.focusNode=null,e.unitRadius=null,e.linkDistance=50,e.preventOverlap=!1,e.strictRadial=!0,e.maxPreventOverlapIteration=200,e.sortStrength=10,e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200,sortBy:void 0,sortStrength:10}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges||[],i=t.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=i[0],void(e[0].y=i[1]);var r=t.linkDistance,o=null;if(A()(t.focusNode)){for(var a=!1,s=0;s<e.length;s++)e[s].id===t.focusNode&&(o=e[s],t.focusNode=o,a=!0,s=e.length);a||(o=null)}else o=t.focusNode;o||(o=e[0],t.focusNode=o);var l,c,u,h=(l=e,c=o.id,u=-1,l.forEach((function(t,e){t.id===c&&(u=e)})),u);t.focusIndex=h;var d=Zt({nodes:e,edges:n},!1),p=Ut(d),f=t.maxToFocus(p,h);t.handleInfinity(p,h,f+1),t.distances=p;var g=p[h];t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var m=t.width||500,v=t.height||500,b=m-i[0]>i[0]?i[0]:m-i[0],x=v-i[1]>i[1]?i[1]:v-i[1];0===b&&(b=m/2),0===x&&(x=v/2);var w=x>b?b:x,C=Math.max.apply(Math,g),I=[];g.forEach((function(e,n){t.unitRadius||(t.unitRadius=w/C),I[n]=e*t.unitRadius})),t.radii=I;var S=t.eIdealDisMatrix();t.eIdealDistances=S;var M=function(t){for(var e=t.length,n=t[0].length,i=[],r=0;r<e;r++){for(var o=[],a=0;a<n;a++)0!==t[r][a]?o.push(1/(t[r][a]*t[r][a])):o.push(0);i.push(o)}return i}(S);t.weights=M;var k=new oo({distances:S,linkDistance:r}).layout();k.forEach((function(t){O(t[0])&&(t[0]=Math.random()*r),O(t[1])&&(t[1]=Math.random()*r)})),t.positions=k,k.forEach((function(t,n){e[n].x=t[0]+i[0],e[n].y=t[1]+i[1]})),k.forEach((function(t){t[0]-=k[h][0],t[1]-=k[h][1]})),t.run();var E=t.preventOverlap,T=t.nodeSize,P=t.strictRadial;if(E){var j,L=t.nodeSpacing;j=_()(L)?function(){return L}:Yi()(L)?L:function(){return 0};var D={nodeSizeFunc:T?y()(T)?function(t){return(T[0]>T[1]?T[0]:T[1])+j(t)}:function(t){return T+j(t)}:function(t){return t.size?y()(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])+j(t):t.size+j(t):10+j(t)},adjMatrix:d,positions:k,radii:I,height:v,width:m,strictRadial:P,focusID:h,iterations:t.maxPreventOverlapIteration||200,k:k.length/4.5,nodes:e},R=new ao(D);k=R.layout()}k.forEach((function(t,n){e[n].x=t[0]+i[0],e[n].y=t[1]+i[1]}))}},e.prototype.run=function(){for(var t=this.maxIteration,e=this.positions||[],n=this.weights||[],i=this.eIdealDistances||[],r=this.radii||[],o=0;o<=t;o++){var a=o/t;this.oneIteration(a,e,r,i,n)}},e.prototype.oneIteration=function(t,e,n,i,r){var o=1-t,a=this.focusIndex;e.forEach((function(s,l){var c=so(s,[0,0]),u=0===c?0:1/c;if(l!==a){var h=0,d=0,p=0;e.forEach((function(t,e){if(l!==e){var n=so(s,t),o=0===n?0:1/n,a=i[e][l];p+=r[l][e],h+=r[l][e]*(t[0]+a*(s[0]-t[0])*o),d+=r[l][e]*(t[1]+a*(s[1]-t[1])*o)}}));var f=0===n[l]?0:1/n[l];p*=o,p+=t*f*f,h*=o,h+=t*f*s[0]*u,s[0]=h/p,d*=o,d+=t*f*s[1]*u,s[1]=d/p}}))},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,i=t.linkDistance,r=t.radii||[],o=t.unitRadius||50,a=[];return n&&n.forEach((function(n,s){var l=[];n.forEach((function(n,a){if(s===a)l.push(0);else if(r[s]===r[a])if("data"===t.sortBy)l.push(n*(Math.abs(s-a)*t.sortStrength)/(r[s]/o));else if(t.sortBy){var c=e[s][t.sortBy]||0,u=e[a][t.sortBy]||0;A()(c)&&(c=c.charCodeAt(0)),A()(u)&&(u=u.charCodeAt(0)),l.push(n*(Math.abs(c-u)*t.sortStrength)/(r[s]/o))}else l.push(n*i/(r[s]/o));else{var h=(i+o)/2;l.push(n*h)}})),a.push(l)})),a},e.prototype.handleInfinity=function(t,e,n){for(var i=t.length,r=0;r<i;r++)if(t[e][r]===1/0){t[e][r]=n,t[r][e]=n;for(var o=0;o<i;o++)t[r][o]!==1/0&&t[e][o]===1/0&&(t[e][o]=n+t[r][o],t[o][e]=n+t[r][o])}for(r=0;r<i;r++)if(r!==e)for(o=0;o<i;o++)if(t[r][o]===1/0){var a=Math.abs(t[e][r]-t[e][o]);a=0===a?1:a,t[r][o]=a}},e.prototype.maxToFocus=function(t,e){for(var n=0,i=0;i<t[e].length;i++)t[e][i]!==1/0&&(n=t[e][i]>n?t[e][i]:n);return n},e}(Gn),co=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.width=300,e.height=300,e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),e&&e.forEach((function(e){e.x=.9*(Math.random()-.5)*t.width+n[0],e.y=.9*(Math.random()-.5)*t.height+n[1]}))},e}(Gn),uo={circular:Zn,concentric:Yn,dagre:Kn,force:Qi,g6force:$i,comboForce:function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=100,e.gravity=10,e.comboGravity=10,e.linkDistance=10,e.alpha=1,e.alphaMin=.001,e.alphaDecay=1-Math.pow(e.alphaMin,1/300),e.alphaTarget=0,e.velocityDecay=.6,e.edgeStrength=.2,e.nodeStrength=30,e.preventOverlap=!1,e.preventNodeOverlap=!1,e.preventComboOverlap=!1,e.collideStrength=void 0,e.nodeCollideStrength=void 0,e.comboCollideStrength=void 0,e.optimizeRangeFactor=1,e.onTick=function(){},e.onLayoutEnd=function(){},e.depthAttractiveForceScale=.5,e.depthRepulsiveForceScale=2,e.nodes=[],e.edges=[],e.combos=[],e.comboTrees=[],e.width=300,e.height=300,e.bias=[],e.nodeMap={},e.oriComboMap={},e.nodeIdxMap={},e.comboMap={},e.previousLayouted=!1,e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.2,nodeStrength:30,linkDistance:10}},e.prototype.execute=function(){var t=this.nodes,e=this.center;if(this.comboTree={id:"comboTreeRoot",depth:-1,children:this.comboTrees},t&&0!==t.length){if(1===t.length)return t[0].x=e[0],void(t[0].y=e[1]);this.initVals(),this.run(),this.onLayoutEnd()}},e.prototype.run=function(){var t=this,e=t.nodes,n=t.previousLayouted?t.maxIteration/5:t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var i=t.center,r=t.velocityDecay,o=t.comboMap;t.previousLayouted||t.initPos(o);for(var a=function(n){var i=[];e.forEach((function(t,e){i[e]={x:0,y:0}})),t.applyCalculate(i),t.applyComboCenterForce(i),e.forEach((function(t,e){Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(t.y)&&(t.x+=i[e].x*r,t.y+=i[e].y*r)})),t.alpha+=(t.alphaTarget-t.alpha)*t.alphaDecay,t.onTick()},s=0;s<n;s++)a();var l=[0,0];e.forEach((function(t){Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(t.y)&&(l[0]+=t.x,l[1]+=t.y)})),l[0]/=e.length,l[1]/=e.length;var c=[i[0]-l[0],i[1]-l[1]];e.forEach((function(t,e){Object(ut.isNumber)(t.x)&&Object(ut.isNumber)(t.y)&&(t.x+=c[0],t.y+=c[1])})),t.combos.forEach((function(t){var e=o[t.id];e&&e.empty&&(t.x=e.cx||t.x,t.y=e.cy||t.y)})),t.previousLayouted=!0},e.prototype.initVals=function(){var t=this.edges,e=this.nodes,n=this.combos,i={},r={},o={};e.forEach((function(t,e){r[t.id]=t,o[t.id]=e})),this.nodeMap=r,this.nodeIdxMap=o;var a={};n.forEach((function(t){a[t.id]=t})),this.oriComboMap=a,this.comboMap=this.getComboMap();var s=this.preventOverlap;this.preventComboOverlap=this.preventComboOverlap||s,this.preventNodeOverlap=this.preventNodeOverlap||s;var l=this.collideStrength;l&&(this.comboCollideStrength=l,this.nodeCollideStrength=l);for(var c=0;c<t.length;++c)i[t[c].source]?i[t[c].source]++:i[t[c].source]=1,i[t[c].target]?i[t[c].target]++:i[t[c].target]=1;var u=[];for(c=0;c<t.length;++c)u[c]=i[t[c].source]/(i[t[c].source]+i[t[c].target]);this.bias=u;var h,d,p=this.nodeSize,f=this.nodeSpacing;if(d=Object(ut.isNumber)(f)?function(){return f}:Object(ut.isFunction)(f)?f:function(){return 0},this.nodeSpacing=d,p)if(Object(ut.isFunction)(p))h=function(t){return p(t)};else if(Object(ut.isArray)(p)){var g=(p[0]>p[1]?p[0]:p[1])/2;h=function(t){return g}}else{var m=p/2;h=function(t){return m}}else h=function(t){return t.size?Object(ut.isArray)(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2:t.size/2:10};this.nodeSize=h;var v,y=this.comboSpacing;v=Object(ut.isNumber)(y)?function(){return y}:Object(ut.isFunction)(y)?y:function(){return 0},this.comboSpacing=v;var b,x=this.comboPadding;b=Object(ut.isNumber)(x)?function(){return x}:Object(ut.isArray)(x)?function(){return Math.max.apply(null,x)}:Object(ut.isFunction)(x)?x:function(){return 0},this.comboPadding=b;var w,_=this.linkDistance;_||(_=10),w=Object(ut.isNumber)(_)?function(t){return _}:_,this.linkDistance=w;var C,A=this.edgeStrength;A||(A=1),C=Object(ut.isNumber)(A)?function(t){return A}:A,this.edgeStrength=C;var I,S=this.nodeStrength;S||(S=30),I=Object(ut.isNumber)(S)?function(t){return S}:S,this.nodeStrength=I},e.prototype.initPos=function(t){this.nodes.forEach((function(e,n){if(e.comboId){var i=t[e.comboId];e.x=i.cx+100/(n+1),e.y=i.cy+100/(n+1)}else e.x=100/(n+1),e.y=100/(n+1)}))},e.prototype.getComboMap=function(){var t=this,e=t.nodeMap,n=t.nodeIdxMap,i=t.comboTrees,r=t.oriComboMap,o={};return(i||[]).forEach((function(i){var a=[];mn(i,(function(i){if("node"===i.itemType)return!0;if(!r[i.id])return!0;if(void 0===o[i.id]){var s={name:i.id,cx:0,cy:0,count:0,depth:t.oriComboMap[i.id].depth,children:[]};o[i.id]=s}var l=i.children;l&&l.forEach((function(t){if(!o[t.id]&&!e[t.id])return!0;a.push(t)}));var c=o[i.id];if(c.cx=0,c.cy=0,0===a.length){c.empty=!0;var u=r[i.id],h=Object.keys(e).length,d=i.id+"-visual-child-"+h,p={id:d,x:u.x,y:u.y,depth:c.depth+1,itemType:"node"};t.nodes.push(p),e[d]=p,n[d]=h,c.cx=u.x,c.cy=u.y,a.push(p)}return a.forEach((function(t){if(c.count++,"node"!==t.itemType){var n=o[t.id];return Object(ut.isNumber)(n.cx)&&(c.cx+=n.cx),void(Object(ut.isNumber)(n.cy)&&(c.cy+=n.cy))}var i=e[t.id];i&&(Object(ut.isNumber)(i.x)&&(c.cx+=i.x),Object(ut.isNumber)(i.y)&&(c.cy+=i.y))})),c.cx/=c.count,c.cy/=c.count,c.children=a,!0}))})),o},e.prototype.applyComboCenterForce=function(t){var e=this.gravity,n=this.comboGravity||e,i=this.alpha,r=this.comboTrees,o=this.nodeIdxMap,a=this.nodeMap,s=this.comboMap;(r||[]).forEach((function(e){mn(e,(function(e){if("node"===e.itemType)return!0;if(!s[e.id])return!0;var r=s[e.id],l=.5*(r.depth+1),c=r.cx,u=r.cy;return r.cx=0,r.cy=0,r.children.forEach((function(e){if("node"!==e.itemType){var h=s[e.id];return h&&Object(ut.isNumber)(h.cx)&&(r.cx+=h.cx),void(h&&Object(ut.isNumber)(h.cy)&&(r.cy+=h.cy))}var d=a[e.id],p=d.x-c||.005,f=d.y-u||.005,g=Math.sqrt(p*p+f*f),m=o[d.id],v=n*i/g*l;t[m].x-=p*v,t[m].y-=f*v,Object(ut.isNumber)(d.x)&&(r.cx+=d.x),Object(ut.isNumber)(d.y)&&(r.cy+=d.y)})),r.cx/=r.count,r.cy/=r.count,!0}))}))},e.prototype.applyCalculate=function(t){var e=this.comboMap,n=this.nodes,i={};n.forEach((function(t,e){n.forEach((function(n,r){if(!(e<r)){var o=t.x-n.x||.005,a=t.y-n.y||.005,s=o*o+a*a,l=Math.sqrt(s);s<1&&(s=l),i[t.id+"-"+n.id]={vx:o,vy:a,vl2:s,vl:l},i[n.id+"-"+t.id]={vx:-o,vy:-a,vl2:s,vl:l}}}))})),this.updateComboSizes(e),this.calRepulsive(t,i),this.calAttractive(t,i),this.preventComboOverlap&&this.comboNonOverlapping(t,e)},e.prototype.updateComboSizes=function(t){var e=this,n=e.comboTrees,i=e.nodeMap,r=e.nodeSize,o=e.comboSpacing,a=e.comboPadding;(n||[]).forEach((function(n){var s=[];mn(n,(function(n){if("node"===n.itemType)return!0;var l=t[n.id];if(l){var c=n.children;c&&c.forEach((function(e){(t[e.id]||i[e.id])&&s.push(e)})),l.minX=1/0,l.minY=1/0,l.maxX=-1/0,l.maxY=-1/0,s.forEach((function(t){if("node"!==t.itemType)return!0;var e=i[t.id];if(!e)return!0;var n=r(e),o=e.x-n,a=e.y-n,s=e.x+n,c=e.y+n;l.minX>o&&(l.minX=o),l.minY>a&&(l.minY=a),l.maxX<s&&(l.maxX=s),l.maxY<c&&(l.maxY=c)}));var u=e.oriComboMap[n.id].size||J.defaultCombo.size;Object(ut.isArray)(u)&&(u=u[0]);var h=Math.max(l.maxX-l.minX,l.maxY-l.minY,u);return l.r=h/2+o(l)/2+a(l),!0}}))}))},e.prototype.comboNonOverlapping=function(t,e){var n=this.comboTree,i=this.comboCollideStrength,r=this.nodeIdxMap,o=this.nodeMap;mn(n,(function(n){if(e[n.id]||o[n.id]||"comboTreeRoot"===n.id){var a=n.children;return a&&a.length>1&&a.forEach((function(n,s){if("node"!==n.itemType){var l=e[n.id];l&&a.forEach((function(a,c){if(!(s<=c)&&"node"!==a.itemType){var u=e[a.id];if(u){var h=l.cx-u.cx||.005,d=l.cy-u.cy||.005,p=h*h+d*d,f=l.r,g=u.r,m=f+g,v=g*g,y=f*f;if(p<m*m){var b=n.children;if(!b||0===b.length)return;var x=a.children;if(!x||0===x.length)return;var w=Math.sqrt(p),_=(m-w)/w*i,C=h*_,A=d*_,I=v/(y+v),S=1-I;b.forEach((function(e){if("node"===e.itemType&&o[e.id]){var n=r[e.id];x.forEach((function(e){if("node"===e.itemType&&o[e.id]){var i=r[e.id];t[n].x+=C*I,t[n].y+=A*I,t[i].x-=C*S,t[i].y-=A*S}}))}}))}}}}))}})),!0}}))},e.prototype.calRepulsive=function(t,e){var n=this,i=n.nodes,r=n.width*n.optimizeRangeFactor,o=n.nodeStrength,a=n.alpha,s=n.nodeCollideStrength,l=n.preventNodeOverlap,c=n.nodeSize,u=n.nodeSpacing,h=n.depthRepulsiveForceScale,d=n.center;i.forEach((function(p,f){if(p.x&&p.y){if(d){var g=n.gravity,m=p.x-d[0]||.005,v=p.y-d[1]||.005,y=Math.sqrt(m*m+v*v);t[f].x-=m*g*a/y,t[f].y-=v*g*a/y}i.forEach((function(n,i){if(f!==i&&n.x&&n.y){var d=e[p.id+"-"+n.id],g=d.vl2,m=d.vl;if(!(m>r)){var v=e[p.id+"-"+n.id],y=v.vx,b=v.vy,x=Math.abs(n.depth-p.depth)+1||1;n.comboId!==p.comboId&&x++;var w=x?Math.pow(h,x):1,_=o(n)*a/g*w;if(t[f].x+=y*_,t[f].y+=b*_,f<i&&l){var C=c(p)+u(p),A=c(n)+u(n),I=C+A;if(g<I*I){var S=(I-m)/m*s,M=A*A,k=M/(C*C+M),E=y*S,T=b*S;t[f].x+=E*k,t[f].y+=T*k,k=1-k,t[i].x-=E*k,t[i].y-=T*k}}}}}))}}))},e.prototype.calAttractive=function(t,e){var n=this,i=n.edges,r=n.linkDistance,o=n.alpha,a=n.edgeStrength,s=n.bias,l=n.depthAttractiveForceScale;i.forEach((function(i,c){if(i.source&&i.target&&i.source!==i.target){var u=n.nodeIdxMap[i.source],h=n.nodeIdxMap[i.target],d=n.nodeMap[i.source],p=n.nodeMap[i.target],f=Math.abs(d.depth-p.depth);d.comboId===p.comboId&&(f/=2);var g=f?Math.pow(l,f):1;if(d.comboId!==p.comboId&&1===g?g=l/2:d.comboId===p.comboId&&(g=2),Object(ut.isNumber)(p.x)&&Object(ut.isNumber)(d.x)&&Object(ut.isNumber)(p.y)&&Object(ut.isNumber)(d.y)){var m=e[i.target+"-"+i.source],v=m.vl,y=m.vx,b=m.vy,x=(v-r(i))/v*o*a(i)*g,w=y*x,_=b*x,C=s[c];t[h].x-=w*C,t[h].y-=_*C,t[u].x+=w*(1-C),t[u].y+=_*(1-C)}}}))},e}(Gn),fruchterman:tr,grid:er,mds:ro,radial:lo,random:co};p()(uo,(function(t,e){Wn.registerLayout(e,{},t)}));var ho=Wn,po=n(231),fo=n.n(po),go=function(){return fo()('!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=317)}([function(t,e,r){var n;try{n={cloneDeep:r(250),constant:r(67),defaults:r(251),each:r(93),filter:r(96),find:r(252),flatten:r(123),forEach:r(94),forIn:r(257),has:r(107),isUndefined:r(108),last:r(258),map:r(109),mapValues:r(259),max:r(260),merge:r(262),min:r(268),minBy:r(269),now:r(270),pick:r(271),range:r(276),reduce:r(111),sortBy:r(279),uniqueId:r(284),values:r(116),zipObject:r(285)}}catch(t){}n||(n=window._),t.exports=n},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(34);e.default=function(t){return Array.isArray?Array.isArray(t):n.default(t,"Array")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new n.ARRAY_TYPE(9);n.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0);return t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new n.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,r,o,i,a,u,s,c){var f=new n.ARRAY_TYPE(9);return f[0]=t,f[1]=e,f[2]=r,f[3]=o,f[4]=i,f[5]=a,f[6]=u,f[7]=s,f[8]=c,f},e.set=function(t,e,r,n,o,i,a,u,s,c){return t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=i,t[5]=a,t[6]=u,t[7]=s,t[8]=c,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var r=e[1],n=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var r=e[0],n=e[1],o=e[2],i=e[3],a=e[4],u=e[5],s=e[6],c=e[7],f=e[8],h=f*a-u*c,l=-f*i+u*s,d=c*i-a*s,p=r*h+n*l+o*d;if(!p)return null;return p=1/p,t[0]=h*p,t[1]=(-f*n+o*c)*p,t[2]=(u*n-o*a)*p,t[3]=l*p,t[4]=(f*r-o*s)*p,t[5]=(-u*r+o*i)*p,t[6]=d*p,t[7]=(-c*r+n*s)*p,t[8]=(a*r-n*i)*p,t},e.adjoint=function(t,e){var r=e[0],n=e[1],o=e[2],i=e[3],a=e[4],u=e[5],s=e[6],c=e[7],f=e[8];return t[0]=a*f-u*c,t[1]=o*c-n*f,t[2]=n*u-o*a,t[3]=u*s-i*f,t[4]=r*f-o*s,t[5]=o*i-r*u,t[6]=i*c-a*s,t[7]=n*s-r*c,t[8]=r*a-n*i,t},e.determinant=function(t){var e=t[0],r=t[1],n=t[2],o=t[3],i=t[4],a=t[5],u=t[6],s=t[7],c=t[8];return e*(c*i-a*s)+r*(-c*o+a*u)+n*(s*o-i*u)},e.multiply=o,e.translate=function(t,e,r){var n=e[0],o=e[1],i=e[2],a=e[3],u=e[4],s=e[5],c=e[6],f=e[7],h=e[8],l=r[0],d=r[1];return t[0]=n,t[1]=o,t[2]=i,t[3]=a,t[4]=u,t[5]=s,t[6]=l*n+d*a+c,t[7]=l*o+d*u+f,t[8]=l*i+d*s+h,t},e.rotate=function(t,e,r){var n=e[0],o=e[1],i=e[2],a=e[3],u=e[4],s=e[5],c=e[6],f=e[7],h=e[8],l=Math.sin(r),d=Math.cos(r);return t[0]=d*n+l*a,t[1]=d*o+l*u,t[2]=d*i+l*s,t[3]=d*a-l*n,t[4]=d*u-l*o,t[5]=d*s-l*i,t[6]=c,t[7]=f,t[8]=h,t},e.scale=function(t,e,r){var n=r[0],o=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var r=e[0],n=e[1],o=e[2],i=e[3],a=r+r,u=n+n,s=o+o,c=r*a,f=n*a,h=n*u,l=o*a,d=o*u,p=o*s,v=i*a,g=i*u,y=i*s;return t[0]=1-h-p,t[3]=f-y,t[6]=l+g,t[1]=f+y,t[4]=1-c-p,t[7]=d-v,t[2]=l-g,t[5]=d+v,t[8]=1-c-h,t},e.normalFromMat4=function(t,e){var r=e[0],n=e[1],o=e[2],i=e[3],a=e[4],u=e[5],s=e[6],c=e[7],f=e[8],h=e[9],l=e[10],d=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=r*u-n*a,b=r*s-o*a,w=r*c-i*a,x=n*s-o*u,M=n*c-i*u,k=o*c-i*s,_=f*v-h*p,S=f*g-l*p,E=f*y-d*p,j=h*g-l*v,A=h*y-d*v,O=l*y-d*g,N=m*O-b*A+w*j+x*E-M*S+k*_;if(!N)return null;return N=1/N,t[0]=(u*O-s*A+c*j)*N,t[1]=(s*E-a*O-c*S)*N,t[2]=(a*A-u*E+c*_)*N,t[3]=(o*A-n*O-i*j)*N,t[4]=(r*O-o*E+i*S)*N,t[5]=(n*E-r*A-i*_)*N,t[6]=(v*k-g*M+y*x)*N,t[7]=(g*w-p*k-y*b)*N,t[8]=(p*M-v*w+y*m)*N,t},e.projection=function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},e.subtract=i,e.multiplyScalar=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},e.multiplyScalarAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var r=t[0],o=t[1],i=t[2],a=t[3],u=t[4],s=t[5],c=t[6],f=t[7],h=t[8],l=e[0],d=e[1],p=e[2],v=e[3],g=e[4],y=e[5],m=e[6],b=e[7],w=e[8];return Math.abs(r-l)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(o-d)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(i-p)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-v)<=n.EPSILON*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-g)<=n.EPSILON*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(s-y)<=n.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(c-m)<=n.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(f-b)<=n.EPSILON*Math.max(1,Math.abs(f),Math.abs(b))&&Math.abs(h-w)<=n.EPSILON*Math.max(1,Math.abs(h),Math.abs(w))};var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(r(55));function o(t,e,r){var n=e[0],o=e[1],i=e[2],a=e[3],u=e[4],s=e[5],c=e[6],f=e[7],h=e[8],l=r[0],d=r[1],p=r[2],v=r[3],g=r[4],y=r[5],m=r[6],b=r[7],w=r[8];return t[0]=l*n+d*a+p*c,t[1]=l*o+d*u+p*f,t[2]=l*i+d*s+p*h,t[3]=v*n+g*a+y*c,t[4]=v*o+g*u+y*f,t[5]=v*i+g*s+y*h,t[6]=m*n+b*a+w*c,t[7]=m*o+b*u+w*f,t[8]=m*i+b*s+w*h,t}function i(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}e.mul=o,e.sub=i},function(t,e,r){"use strict";var n=r(0),o=r(7).Graph;function i(t,e,r,o){var i;do{i=n.uniqueId(o)}while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function a(t){return n.max(n.map(t.nodes(),(function(e){var r=t.node(e).rank;if(!n.isUndefined(r))return r})))}t.exports={addDummyNode:i,simplify:function(t){var e=(new o).setGraph(t.graph());return n.forEach(t.nodes(),(function(r){e.setNode(r,t.node(r))})),n.forEach(t.edges(),(function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},o=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})})),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return n.forEach(t.nodes(),(function(r){t.children(r).length||e.setNode(r,t.node(r))})),n.forEach(t.edges(),(function(r){e.setEdge(r,t.edge(r))})),e},successorWeights:function(t){var e=n.map(t.nodes(),(function(e){var r={};return n.forEach(t.outEdges(e),(function(e){r[e.w]=(r[e.w]||0)+t.edge(e).weight})),r}));return n.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=n.map(t.nodes(),(function(e){var r={};return n.forEach(t.inEdges(e),(function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight})),r}));return n.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,o=t.x,i=t.y,a=e.x-o,u=e.y-i,s=t.width/2,c=t.height/2;if(!a&&!u)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(u)*s>Math.abs(a)*c?(u<0&&(c=-c),r=c*a/u,n=c):(a<0&&(s=-s),r=s,n=s*u/a);return{x:o+r,y:i+n}},buildLayerMatrix:function(t){var e=n.map(n.range(a(t)+1),(function(){return[]}));return n.forEach(t.nodes(),(function(r){var o=t.node(r),i=o.rank;n.isUndefined(i)||(e[i][o.order]=r)})),e},normalizeRanks:function(t){var e=n.min(n.map(t.nodes(),(function(e){return t.node(e).rank})));n.forEach(t.nodes(),(function(r){var o=t.node(r);n.has(o,"rank")&&(o.rank-=e)}))},removeEmptyRanks:function(t){var e=n.min(n.map(t.nodes(),(function(e){return t.node(e).rank}))),r=[];n.forEach(t.nodes(),(function(n){var o=t.node(n).rank-e;r[o]||(r[o]=[]),r[o].push(n)}));var o=0,i=t.graph().nodeRankFactor;n.forEach(r,(function(e,r){n.isUndefined(e)&&r%i!=0?--o:o&&n.forEach(e,(function(e){t.node(e).rank+=o}))}))},addBorderNode:function(t,e,r,n){var o={width:0,height:0};arguments.length>=4&&(o.rank=r,o.order=n);return i(t,"border",o,e)},maxRank:a,partition:function(t,e){var r={lhs:[],rhs:[]};return n.forEach(t,(function(t){e(t)?r.lhs.push(t):r.rhs.push(t)})),r},time:function(t,e){var r=n.now();try{return e()}finally{console.log(t+" time: "+(n.now()-r)+"ms")}},notime:function(t,e){return e()}}},function(t,e,r){var n;try{n={clone:r(137),constant:r(67),each:r(93),filter:r(96),has:r(107),isArray:r(1),isEmpty:r(214),isFunction:r(25),isUndefined:r(108),keys:r(14),map:r(109),reduce:r(111),size:r(217),transform:r(223),union:r(224),values:r(116)}}catch(t){}n||(n=window._),t.exports=n},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=r(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n;try{n=r(135)}catch(t){}n||(n=window.graphlib),t.exports=n},function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(76),i="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();t.exports=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=o,e.clone=function(t){var e=new n.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var r=new n.ARRAY_TYPE(2);return r[0]=t,r[1]=e,r},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,r){return t[0]=e,t[1]=r,t},e.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},e.subtract=i,e.multiply=a,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},e.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},e.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},e.distance=s,e.squaredDistance=c,e.length=f,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var r=e[0],n=e[1],o=r*r+n*n;o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o);return t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,r){var n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},e.lerp=function(t,e,r,n){var o=e[0],i=e[1];return t[0]=o+n*(r[0]-o),t[1]=i+n*(r[1]-i),t},e.random=function(t,e){e=e||1;var r=2*n.RANDOM()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},e.transformMat2=function(t,e,r){var n=e[0],o=e[1];return t[0]=r[0]*n+r[2]*o,t[1]=r[1]*n+r[3]*o,t},e.transformMat2d=function(t,e,r){var n=e[0],o=e[1];return t[0]=r[0]*n+r[2]*o+r[4],t[1]=r[1]*n+r[3]*o+r[5],t},e.transformMat3=function(t,e,r){var n=e[0],o=e[1];return t[0]=r[0]*n+r[3]*o+r[6],t[1]=r[1]*n+r[4]*o+r[7],t},e.transformMat4=function(t,e,r){var n=e[0],o=e[1];return t[0]=r[0]*n+r[4]*o+r[12],t[1]=r[1]*n+r[5]*o+r[13],t},e.rotate=function(t,e,r,n){var o=e[0]-r[0],i=e[1]-r[1],a=Math.sin(n),u=Math.cos(n);return t[0]=o*u-i*a+r[0],t[1]=o*a+i*u+r[1],t},e.angle=function(t,e){var r=t[0],n=t[1],o=e[0],i=e[1],a=r*r+n*n;a>0&&(a=1/Math.sqrt(a));var u=o*o+i*i;u>0&&(u=1/Math.sqrt(u));var s=(r*o+n*i)*a*u;return s>1?0:s<-1?Math.PI:Math.acos(s)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var r=t[0],o=t[1],i=e[0],a=e[1];return Math.abs(r-i)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(o-a)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(a))};var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(r(55));function o(){var t=new n.ARRAY_TYPE(2);return n.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function i(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function a(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function u(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function s(t,e){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function c(t,e){var r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function f(t){var e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function h(t){var e=t[0],r=t[1];return e*e+r*r}var l;e.len=f,e.sub=i,e.mul=a,e.div=u,e.dist=s,e.sqrDist=c,e.sqrLen=h,e.forEach=(l=o(),function(t,e,r,n,o,i){var a=void 0,u=void 0;for(e||(e=2),r||(r=0),u=n?Math.min(n*e+r,t.length):t.length,a=r;a<u;a+=e)l[0]=t[a],l[1]=t[a+1],o(l,l,i),t[a]=l[0],t[a+1]=l[1];return t})},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!=t&&"object"==r(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(34);e.default=function(t){return n.default(t,"String")}},function(t,e,r){var n=r(25),o=r(61);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(194),i=r(204),a=r(18),u=r(1),s=r(211);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==n(t)?u(t)?i(t[0],t[1]):o(t):s(t)}},function(t,e,r){var n=r(79),o=r(63),i=r(12);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e,r){var n=r(148),o=r(154);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(21),o=r(150),i=r(151),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e,r){var n=r(79),o=r(174),i=r(12);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(34);e.default=function(t){return n.default(t,"Number")}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(8).Symbol;t.exports=n},function(t,e,r){(function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(8),i=r(170),a="object"==n(e)&&e&&!e.nodeType&&e,u=a&&"object"==n(t)&&t&&!t.nodeType&&t,s=u&&u.exports===a?o.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c}).call(this,r(60)(t))},function(t,e,r){var n=r(179),o=r(57),i=r(180),a=r(88),u=r(181),s=r(16),c=r(77),f=c(n),h=c(o),l=c(i),d=c(a),p=c(u),v=s;(n&&"[object DataView]"!=v(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||u&&"[object WeakMap]"!=v(new u))&&(v=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case f:return"[object DataView]";case h:return"[object Map]";case l:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(16),i=r(10);t.exports=function(t){return"symbol"==n(t)||i(t)&&"[object Symbol]"==o(t)}},function(t,e,r){var n=r(16),o=r(6);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){var n=r(40),o=r(41);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var u=-1,s=e.length;++u<s;){var c=e[u],f=i?i(r[c],t[c],c,r,t):void 0;void 0===f&&(f=t[c]),a?o(r,c,f):n(r,c,f)}return r}},function(t,e,r){var n=r(169),o=r(10),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e,r){var n=r(171),o=r(43),i=r(62),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},function(t,e,r){var n=r(24);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,r){"use strict";function n(t,e){for(var r in e)e.hasOwnProperty(r)&&"constructor"!==r&&void 0!==e[r]&&(t[r]=e[r])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,o){return e&&n(t,e),r&&n(t,r),o&&n(t,o),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(34);e.default=function(t){return n.default(t,"Function")}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(310),i=r(314),a=[].slice,u=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(t){s[a.call(i[t].labels).sort().join("")]=t}));var c={};function f(t,e){if(!(this instanceof f))return new f(t,e);if(e&&e in u&&(e=null),e&&!(e in i))throw new Error("Unknown model: "+e);var r,n;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof f)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var h=o.get(t);if(null===h)throw new Error("Unable to parse color from string: "+t);this.model=h.model,n=i[this.model].channels,this.color=h.value.slice(0,n),this.valpha="number"==typeof h.value[n]?h.value[n]:1}else if(t.length){this.model=e||"rgb",n=i[this.model].channels;var l=a.call(t,0,n);this.color=p(l,n),this.valpha="number"==typeof t[n]?t[n]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var d=Object.keys(t);"alpha"in t&&(d.splice(d.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var v=d.sort().join("");if(!(v in s))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=s[v];var g=i[this.model].labels,y=[];for(r=0;r<g.length;r++)y.push(t[g[r]]);this.color=p(y)}if(c[this.model])for(n=i[this.model].channels,r=0;r<n;r++){var m=c[this.model][r];m&&(this.color[r]=m(this.color[r]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function h(t,e,r){return(t=Array.isArray(t)?t:[t]).forEach((function(t){(c[t]||(c[t]=[]))[e]=r})),t=t[0],function(n){var o;return arguments.length?(r&&(n=r(n)),(o=this[t]()).color[e]=n,o):(o=this[t]().color[e],r&&(o=r(o)),o)}}function l(t){return function(e){return Math.max(0,Math.min(t,e))}}function d(t){return Array.isArray(t)?t:[t]}function p(t,e){for(var r=0;r<e;r++)"number"!=typeof t[r]&&(t[r]=0);return t}f.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in o.to?this:this.rgb(),r=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return o.to[e.model](r)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),r=1===e.valpha?e.color:e.color.concat(this.valpha);return o.to.rgb.percent(r)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=i[this.model].channels,r=i[this.model].labels,n=0;n<e;n++)t[r[n]]=this.color[n];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new f(this.color.map(function(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new f(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:h("rgb",0,l(255)),green:h("rgb",1,l(255)),blue:h("rgb",2,l(255)),hue:h(["hsl","hsv","hsl","hwb","hcg"],0,(function(t){return(t%360+360)%360})),saturationl:h("hsl",1,l(100)),lightness:h("hsl",2,l(100)),saturationv:h("hsv",1,l(100)),value:h("hsv",2,l(100)),chroma:h("hcg",1,l(100)),gray:h("hcg",2,l(100)),white:h("hwb",1,l(100)),wblack:h("hwb",2,l(100)),cyan:h("cmyk",0,l(100)),magenta:h("cmyk",1,l(100)),yellow:h("cmyk",2,l(100)),black:h("cmyk",3,l(100)),x:h("xyz",0,l(100)),y:h("xyz",1,l(100)),z:h("xyz",2,l(100)),l:h("lab",0,l(100)),a:h("lab",1),b:h("lab",2),keyword:function(t){return arguments.length?new f(t):i[this.model].keyword(this.color)},hex:function(t){return arguments.length?new f(t):o.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],r=0;r<t.length;r++){var n=t[r]/255;e[r]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),r=t.luminosity();return e>r?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return f.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r=(r+t)%360)<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error(\'Argument to "mix" was not a Color instance, but rather an instance of \'+n(t));var r=t.rgb(),o=this.rgb(),i=void 0===e?.5:e,a=2*i-1,u=r.alpha()-o.alpha(),s=((a*u==-1?a:(a+u)/(1+a*u))+1)/2,c=1-s;return f.rgb(s*r.red()+c*o.red(),s*r.green()+c*o.green(),s*r.blue()+c*o.blue(),r.alpha()*i+o.alpha()*(1-i))}},Object.keys(i).forEach((function(t){if(-1===u.indexOf(t)){var e=i[t].channels;f.prototype[t]=function(){if(this.model===t)return new f(this);if(arguments.length)return new f(arguments,t);var r="number"==typeof arguments[e]?e:this.valpha;return new f(d(i[this.model][t].raw(this.color)).concat(r),t)},f[t]=function(r){return"number"==typeof r&&(r=p(a.call(arguments),e)),new f(r,t)}}})),t.exports=f},function(t,e,r){var n;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(i){var a=/^\\s+/,u=/\\s+$/,s=0,c=i.round,f=i.min,h=i.max,l=i.random;function d(t,e){if(e=e||{},(t=t||"")instanceof d)return t;if(!(this instanceof d))return new d(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,s=null,c=null,l=!1,d=!1;"string"==typeof t&&(t=function(t){t=t.replace(a,"").replace(u,"").toLowerCase();var e,r=!1;if(I[t])t=I[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=Y.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=Y.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=Y.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=Y.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=Y.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=Y.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=Y.hex8.exec(t))return{r:F(e[1]),g:F(e[2]),b:F(e[3]),a:L(e[4]),format:r?"name":"hex8"};if(e=Y.hex6.exec(t))return{r:F(e[1]),g:F(e[2]),b:F(e[3]),format:r?"name":"hex"};if(e=Y.hex4.exec(t))return{r:F(e[1]+""+e[1]),g:F(e[2]+""+e[2]),b:F(e[3]+""+e[3]),a:L(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=Y.hex3.exec(t))return{r:F(e[1]+""+e[1]),g:F(e[2]+""+e[2]),b:F(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==o(t)&&(H(t.r)&&H(t.g)&&H(t.b)?(p=t.r,v=t.g,g=t.b,e={r:255*C(p,255),g:255*C(v,255),b:255*C(g,255)},l=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(n=D(t.s),s=D(t.v),e=function(t,e,r){t=6*C(t,360),e=C(e,100),r=C(r,100);var n=i.floor(t),o=t-n,a=r*(1-e),u=r*(1-o*e),s=r*(1-(1-o)*e),c=n%6;return{r:255*[r,u,a,a,s,r][c],g:255*[s,r,r,u,a,a][c],b:255*[a,a,s,r,r,u][c]}}(t.h,n,s),l=!0,d="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(n=D(t.s),c=D(t.l),e=function(t,e,r){var n,o,i;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=C(t,360),e=C(e,100),r=C(r,100),0===e)n=o=i=r;else{var u=r<.5?r*(1+e):r+e-r*e,s=2*r-u;n=a(s,u,t+1/3),o=a(s,u,t),i=a(s,u,t-1/3)}return{r:255*n,g:255*o,b:255*i}}(t.h,n,c),l=!0,d="hsl"),t.hasOwnProperty("a")&&(r=t.a));var p,v,g;return r=P(r),{ok:l,format:t.format||d,r:f(255,h(e.r,0)),g:f(255,h(e.g,0)),b:f(255,h(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,o,i=h(t,e,r),a=f(t,e,r),u=(i+a)/2;if(i==a)n=o=0;else{var s=i-a;switch(o=u>.5?s/(2-i-a):s/(i+a),i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,l:u}}function v(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,o,i=h(t,e,r),a=f(t,e,r),u=i,s=i-a;if(o=0===i?0:s/i,i==a)n=0;else{switch(i){case t:n=(e-r)/s+(e<r?6:0);break;case e:n=(r-t)/s+2;break;case r:n=(t-e)/s+4}n/=6}return{h:n,s:o,v:u}}function g(t,e,r,n){var o=[T(c(t).toString(16)),T(c(e).toString(16)),T(c(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function y(t,e,r,n){return[T(q(n)),T(c(t).toString(16)),T(c(e).toString(16)),T(c(r).toString(16))].join("")}function m(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.s-=e/100,r.s=z(r.s),d(r)}function b(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.s+=e/100,r.s=z(r.s),d(r)}function w(t){return d(t).desaturate(100)}function x(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.l+=e/100,r.l=z(r.l),d(r)}function M(t,e){e=0===e?0:e||10;var r=d(t).toRgb();return r.r=h(0,f(255,r.r-c(-e/100*255))),r.g=h(0,f(255,r.g-c(-e/100*255))),r.b=h(0,f(255,r.b-c(-e/100*255))),d(r)}function k(t,e){e=0===e?0:e||10;var r=d(t).toHsl();return r.l-=e/100,r.l=z(r.l),d(r)}function _(t,e){var r=d(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,d(r)}function S(t){var e=d(t).toHsl();return e.h=(e.h+180)%360,d(e)}function E(t){var e=d(t).toHsl(),r=e.h;return[d(t),d({h:(r+120)%360,s:e.s,l:e.l}),d({h:(r+240)%360,s:e.s,l:e.l})]}function j(t){var e=d(t).toHsl(),r=e.h;return[d(t),d({h:(r+90)%360,s:e.s,l:e.l}),d({h:(r+180)%360,s:e.s,l:e.l}),d({h:(r+270)%360,s:e.s,l:e.l})]}function A(t){var e=d(t).toHsl(),r=e.h;return[d(t),d({h:(r+72)%360,s:e.s,l:e.l}),d({h:(r+216)%360,s:e.s,l:e.l})]}function O(t,e,r){e=e||6,r=r||30;var n=d(t).toHsl(),o=360/r,i=[d(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,i.push(d(n));return i}function N(t,e){e=e||6;for(var r=d(t).toHsv(),n=r.h,o=r.s,i=r.v,a=[],u=1/e;e--;)a.push(d({h:n,s:o,v:i})),i=(i+u)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:i.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=P(t),this._roundA=c(100*this._a)/100,this},toHsv:function(){var t=v(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=v(this._r,this._g,this._b),e=c(360*t.h),r=c(100*t.s),n=c(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=p(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=p(this._r,this._g,this._b),e=c(360*t.h),r=c(100*t.s),n=c(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,o){var i=[T(c(t).toString(16)),T(c(e).toString(16)),T(c(r).toString(16)),T(q(n))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*C(this._r,255))+"%",g:c(100*C(this._g,255))+"%",b:c(100*C(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*C(this._r,255))+"%, "+c(100*C(this._g,255))+"%, "+c(100*C(this._b,255))+"%)":"rgba("+c(100*C(this._r,255))+"%, "+c(100*C(this._g,255))+"%, "+c(100*C(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(R[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+y(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=d(t);r="#"+y(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},d.fromRatio=function(t,e){if("object"==o(t)){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:D(t[n]));t=r}return d(t,e)},d.equals=function(t,e){return!(!t||!e)&&d(t).toRgbString()==d(e).toRgbString()},d.random=function(){return d.fromRatio({r:l(),g:l(),b:l()})},d.mix=function(t,e,r){r=0===r?0:r||50;var n=d(t).toRgb(),o=d(e).toRgb(),i=r/100;return d({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},d.readability=function(t,e){var r=d(t),n=d(e);return(i.max(r.getLuminance(),n.getLuminance())+.05)/(i.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(t,e,r){var n,o,i=d.readability(t,e);switch(o=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},d.mostReadable=function(t,e,r){var n,o,i,a,u=null,s=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var c=0;c<e.length;c++)(n=d.readability(t,e[c]))>s&&(s=n,u=d(e[c]));return d.isReadable(t,u,{level:i,size:a})||!o?u:(r.includeFallbackColors=!1,d.mostReadable(t,["#fff","#000"],r))};var I=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R=d.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(I);function P(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function C(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=f(e,h(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function z(t){return f(1,h(0,t))}function F(t){return parseInt(t,16)}function T(t){return 1==t.length?"0"+t:""+t}function D(t){return t<=1&&(t=100*t+"%"),t}function q(t){return i.round(255*parseFloat(t)).toString(16)}function L(t){return F(t)/255}var B,V,U,Y=(V="[\\\\s|\\\\(]+("+(B="(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)")+")[,|\\\\s]+("+B+")[,|\\\\s]+("+B+")\\\\s*\\\\)?",U="[\\\\s|\\\\(]+("+B+")[,|\\\\s]+("+B+")[,|\\\\s]+("+B+")[,|\\\\s]+("+B+")\\\\s*\\\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(t){return!!Y.CSS_UNIT.exec(t)}t.exports?t.exports=d:void 0===(n=function(){return d}.call(e,r,e,t))||(t.exports=n)}(Math)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={}.toString;e.default=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,r){var n=r(36),o=r(143),i=r(144),a=r(145),u=r(146),s=r(147);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=s,t.exports=c},function(t,e,r){var n=r(138),o=r(139),i=r(140),a=r(141),u=r(142);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,r){var n=r(20);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(15)(Object,"create");t.exports=n},function(t,e,r){var n=r(163);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(41),o=r(20),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(78);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=/^(?:0|[1-9]\\d*)$/;t.exports=function(t,e){var o=r(t);return!!(e=null==e?9007199254740991:e)&&("number"==o||"symbol"!=o&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(80)(Object.getPrototypeOf,Object);t.exports=n},function(t,e,r){var n=r(68),o=r(192)(n);t.exports=o},function(t,e,r){var n=r(48),o=r(29);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},function(t,e,r){var n=r(1),o=r(71),i=r(206),a=r(103);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var n=r(18),o=r(112),i=r(113);t.exports=function(t,e){return i(o(t,e,n),t+"")}},function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(20),i=r(12),a=r(42),u=r(6);t.exports=function(t,e,r){if(!u(r))return!1;var s=n(e);return!!("number"==s?i(r)&&a(e,r.length):"string"==s&&e in r)&&o(r[e],t)}},function(t,e,r){"use strict";var n=r(0);t.exports={longestPath:function(t){var e={};n.forEach(t.sources(),(function r(o){var i=t.node(o);if(n.has(e,o))return i.rank;e[o]=!0;var a=n.min(n.map(t.outEdges(o),(function(e){return r(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),i.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),o=r(134);e.default=function(t,e){if(t)if(n.default(t))for(var r=0,i=t.length;r<i&&!1!==e(t[r],r);r++);else if(o.default(t))for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null==t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t},e.toRadian=function(t){return t*o},e.equals=function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))};var n=e.EPSILON=1e-6;e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random;var o=Math.PI/180},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(5);t.exports=i;function i(t){this._isDirected=!o.has(t,"directed")||t.directed,this._isMultigraph=!!o.has(t,"multigraph")&&t.multigraph,this._isCompound=!!o.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=o.constant(void 0),this._defaultEdgeLabelFn=o.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(t,e){t[e]?t[e]++:t[e]=1}function u(t,e){--t[e]||delete t[e]}function s(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var u=i;i=a,a=u}return i+""+a+""+(o.isUndefined(n)?"\\0":n)}function c(t,e,r,n){var o=""+e,i=""+r;if(!t&&o>i){var a=o;o=i,i=a}var u={v:o,w:i};return n&&(u.name=n),u}function f(t,e){return s(t,e.v,e.w,e.name)}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(t){return this._label=t,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(t){return o.isFunction(t)||(t=o.constant(t)),this._defaultNodeLabelFn=t,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return o.keys(this._nodes)},i.prototype.sources=function(){var t=this;return o.filter(this.nodes(),(function(e){return o.isEmpty(t._in[e])}))},i.prototype.sinks=function(){var t=this;return o.filter(this.nodes(),(function(e){return o.isEmpty(t._out[e])}))},i.prototype.setNodes=function(t,e){var r=arguments,n=this;return o.each(t,(function(t){r.length>1?n.setNode(t,e):n.setNode(t)})),this},i.prototype.setNode=function(t,e){return o.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\\0",this._children[t]={},this._children["\\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},i.prototype.node=function(t){return this._nodes[t]},i.prototype.hasNode=function(t){return o.has(this._nodes,t)},i.prototype.removeNode=function(t){var e=this;if(o.has(this._nodes,t)){var r=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],o.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),o.each(o.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],o.each(o.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},i.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(o.isUndefined(e))e="\\0";else{for(var r=e+="";!o.isUndefined(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},i.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},i.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\\0"!==e)return e}},i.prototype.children=function(t){if(o.isUndefined(t)&&(t="\\0"),this._isCompound){var e=this._children[t];if(e)return o.keys(e)}else{if("\\0"===t)return this.nodes();if(this.hasNode(t))return[]}},i.prototype.predecessors=function(t){var e=this._preds[t];if(e)return o.keys(e)},i.prototype.successors=function(t){var e=this._sucs[t];if(e)return o.keys(e)},i.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return o.union(e,this.successors(t))},i.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},i.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;o.each(this._nodes,(function(r,n){t(n)&&e.setNode(n,r)})),o.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))}));var n={};return this._isCompound&&o.each(e.nodes(),(function(t){e.setParent(t,function t(o){var i=r.parent(o);return void 0===i||e.hasNode(i)?(n[o]=i,i):i in n?n[i]:t(i)}(t))})),e},i.prototype.setDefaultEdgeLabel=function(t){return o.isFunction(t)||(t=o.constant(t)),this._defaultEdgeLabelFn=t,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return o.values(this._edgeObjs)},i.prototype.setPath=function(t,e){var r=this,n=arguments;return o.reduce(t,(function(t,o){return n.length>1?r.setEdge(t,o,e):r.setEdge(t,o),o})),this},i.prototype.setEdge=function(){var t,e,r,i,u=!1,f=arguments[0];"object"===n(f)&&null!==f&&"v"in f?(t=f.v,e=f.w,r=f.name,2===arguments.length&&(i=arguments[1],u=!0)):(t=f,e=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],u=!0)),t=""+t,e=""+e,o.isUndefined(r)||(r=""+r);var h=s(this._isDirected,t,e,r);if(o.has(this._edgeLabels,h))return u&&(this._edgeLabels[h]=i),this;if(!o.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[h]=u?i:this._defaultEdgeLabelFn(t,e,r);var l=c(this._isDirected,t,e,r);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[h]=l,a(this._preds[e],t),a(this._sucs[t],e),this._in[e][h]=l,this._out[t][h]=l,this._edgeCount++,this},i.prototype.edge=function(t,e,r){var n=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,r);return this._edgeLabels[n]},i.prototype.hasEdge=function(t,e,r){var n=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,r);return o.has(this._edgeLabels,n)},i.prototype.removeEdge=function(t,e,r){var n=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,r),o=this._edgeObjs[n];return o&&(t=o.v,e=o.w,delete this._edgeLabels[n],delete this._edgeObjs[n],u(this._preds[e],t),u(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},i.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var n=o.values(r);return e?o.filter(n,(function(t){return t.v===e})):n}},i.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var n=o.values(r);return e?o.filter(n,(function(t){return t.w===e})):n}},i.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}},function(t,e,r){var n=r(15)(r(8),"Map");t.exports=n},function(t,e,r){var n=r(155),o=r(162),i=r(164),a=r(165),u=r(166);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,r){(function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(76),i="object"==n(e)&&e&&!e.nodeType&&e,a=i&&"object"==n(t)&&t&&!t.nodeType&&t,u=a&&a.exports===i&&o.process,s=function(){try{var t=a&&a.require&&a.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=s}).call(this,r(60)(t))},function(t,e,r){var n=r(44),o=r(172),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e,r){var n=r(83),o=r(84),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(89);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,r){var n=r(69),o=r(14);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e,r){var n=r(191)();t.exports=n},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(1),i=r(24),a=/\\.|\\[(?:[^[\\]]*|(["\'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,u=/^\\w*$/;t.exports=function(t,e){if(o(t))return!1;var r=n(t);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||(u.test(t)||!a.test(t)||null!=e&&t in Object(e))}},function(t,e,r){var n=r(65),o=r(225);t.exports=function t(e,r,i,a,u){var s=-1,c=e.length;for(i||(i=o),u||(u=[]);++s<c;){var f=e[s];r>0&&i(f)?r>1?t(f,r-1,i,a,u):n(u,f):a||(u[u.length]=f)}return u}},function(t,e,r){var n=r(24);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],u=e(a);if(null!=u&&(void 0===s?u==u&&!n(u):r(u,s)))var s=u,c=a}return c}},function(t,e,r){t.exports={graphlib:r(7),layout:r(249),debug:r(308),util:{time:r(4).time,notime:r(4).notime},version:r(309)}},function(t,e,r){var n=r(35),o=r(59),i=r(40),a=r(167),u=r(173),s=r(81),c=r(82),f=r(176),h=r(177),l=r(86),d=r(178),p=r(23),v=r(182),g=r(183),y=r(91),m=r(1),b=r(22),w=r(187),x=r(6),M=r(189),k=r(14),_=r(17),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,t.exports=function t(e,r,E,j,A,O){var N,I=1&r,R=2&r,P=4&r;if(E&&(N=A?E(e,j,A,O):E(e)),void 0!==N)return N;if(!x(e))return e;var C=m(e);if(C){if(N=v(e),!I)return c(e,N)}else{var z=p(e),F="[object Function]"==z||"[object GeneratorFunction]"==z;if(b(e))return s(e,I);if("[object Object]"==z||"[object Arguments]"==z||F&&!A){if(N=R||F?{}:y(e),!I)return R?h(e,u(N,e)):f(e,a(N,e))}else{if(!S[z])return A?e:{};N=g(e,z,I)}}O||(O=new n);var T=O.get(e);if(T)return T;O.set(e,N),M(e)?e.forEach((function(n){N.add(t(n,r,E,n,e,O))})):w(e)&&e.forEach((function(n,o){N.set(o,t(n,r,E,o,e,O))}));var D=C?void 0:(P?R?d:l:R?_:k)(e);return o(D||e,(function(n,o){D&&(n=e[o=n]),i(N,o,t(n,r,E,o,e,O))})),N}},function(t,e,r){(function(e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n="object"==(void 0===e?"undefined":r(e))&&e&&e.Object===Object&&e;t.exports=n}).call(this,r(149))},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(15),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,r){var n=r(168),o=r(27),i=r(1),a=r(22),u=r(42),s=r(28),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),h=!r&&!f&&a(t),l=!r&&!f&&!h&&s(t),d=r||f||h||l,p=d?n(t.length,String):[],v=p.length;for(var g in t)!e&&!c.call(t,g)||d&&("length"==g||h&&("offset"==g||"parent"==g)||l&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,v))||p.push(g);return p}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){(function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(8),i="object"==n(e)&&e&&!e.nodeType&&e,a=i&&"object"==n(t)&&t&&!t.nodeType&&t,u=a&&a.exports===i?o.Buffer:void 0,s=u?u.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}}).call(this,r(60)(t))},function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(65),o=r(45),i=r(64),a=r(84),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=u},function(t,e,r){var n=r(87),o=r(64),i=r(14);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(65),o=r(1);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},function(t,e,r){var n=r(15)(r(8),"Set");t.exports=n},function(t,e,r){var n=r(8).Uint8Array;t.exports=n},function(t,e,r){var n=r(66);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},function(t,e,r){var n=r(92),o=r(45),i=r(44);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},function(t,e,r){var n=r(6),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},function(t,e,r){t.exports=r(94)},function(t,e,r){var n=r(59),o=r(46),i=r(95),a=r(1);t.exports=function(t,e){return(a(t)?n:o)(t,i(e))}},function(t,e,r){var n=r(18);t.exports=function(t){return"function"==typeof t?t:n}},function(t,e,r){var n=r(83),o=r(193),i=r(13),a=r(1);t.exports=function(t,e){return(a(t)?n:o)(t,i(e,3))}},function(t,e,r){var n=r(196),o=r(10);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},function(t,e,r){var n=r(99),o=r(199),i=r(100);t.exports=function(t,e,r,a,u,s){var c=1&r,f=t.length,h=e.length;if(f!=h&&!(c&&h>f))return!1;var l=s.get(t),d=s.get(e);if(l&&d)return l==e&&d==t;var p=-1,v=!0,g=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++p<f;){var y=t[p],m=e[p];if(a)var b=c?a(m,y,p,e,t,s):a(y,m,p,t,e,s);if(void 0!==b){if(b)continue;v=!1;break}if(g){if(!o(e,(function(t,e){if(!i(g,e)&&(y===t||u(y,t,r,a,s)))return g.push(e)}))){v=!1;break}}else if(y!==m&&!u(y,m,r,a,s)){v=!1;break}}return s.delete(t),s.delete(e),v}},function(t,e,r){var n=r(58),o=r(197),i=r(198);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(6);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},function(t,e,r){var n=r(209);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(210),o=r(105);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e,r){var n=r(48),o=r(27),i=r(1),a=r(42),u=r(61),s=r(29);t.exports=function(t,e,r){for(var c=-1,f=(e=n(e,t)).length,h=!1;++c<f;){var l=s(e[c]);if(!(h=null!=t&&r(t,l)))break;t=t[l]}return h||++c!=f?h:!!(f=null==t?0:t.length)&&u(f)&&a(l,f)&&(i(t)||o(t))}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,r){var n=r(213),o=r(105);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,r){var n=r(49),o=r(13),i=r(110),a=r(1);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},function(t,e,r){var n=r(46),o=r(12);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},function(t,e,r){var n=r(215),o=r(46),i=r(13),a=r(216),u=r(1);t.exports=function(t,e,r){var s=u(t)?n:a,c=arguments.length<3;return s(t,i(e,4),r,c,o)}},function(t,e,r){var n=r(226),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),s=Array(u);++a<u;)s[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=r(s),n(t,this,c)}}},function(t,e,r){var n=r(227),o=r(228)(n);t.exports=o},function(t,e){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e,r){var n=r(12),o=r(10);t.exports=function(t){return o(t)&&n(t)}},function(t,e,r){var n=r(237),o=r(14);t.exports=function(t){return null==t?[]:n(t,o(t))}},function(t,e,r){var n=r(5),o=r(118);t.exports=function(t,e,r,n){return function(t,e,r,n){var i,a,u={},s=new o,c=function(t){var e=t.v!==i?t.v:t.w,n=u[e],o=r(t),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);c<n.distance&&(n.distance=c,n.predecessor=i,s.decrease(e,c))};t.nodes().forEach((function(t){var r=t===e?0:Number.POSITIVE_INFINITY;u[t]={distance:r},s.add(t,r)}));for(;s.size()>0&&(i=s.removeMin(),(a=u[i]).distance!==Number.POSITIVE_INFINITY);)n(i).forEach(c);return u}(t,String(e),r||i,n||function(e){return t.outEdges(e)})};var i=n.constant(1)},function(t,e,r){var n=r(5);function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},o.prototype.has=function(t){return n.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!n.has(r,t)){var o=this._arr,i=o.length;return r[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},o.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},o.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,o=t;r<e.length&&(o=e[r].priority<e[o].priority?r:o,n<e.length&&(o=e[n].priority<e[o].priority?n:o),o!==t&&(this._swap(t,o),this._heapify(o)))},o.prototype._decrease=function(t){for(var e,r=this._arr,n=r[t].priority;0!==t&&!(r[e=t>>1].priority<n);)this._swap(t,e),t=e},o.prototype._swap=function(t,e){var r=this._arr,n=this._keyIndices,o=r[t],i=r[e];r[t]=i,r[e]=o,n[i.key]=t,n[o.key]=e}},function(t,e,r){var n=r(5);t.exports=function(t){var e=0,r=[],o={},i=[];return t.nodes().forEach((function(a){n.has(o,a)||function a(u){var s=o[u]={onStack:!0,lowlink:e,index:e++};if(r.push(u),t.successors(u).forEach((function(t){n.has(o,t)?o[t].onStack&&(s.lowlink=Math.min(s.lowlink,o[t].index)):(a(t),s.lowlink=Math.min(s.lowlink,o[t].lowlink))})),s.lowlink===s.index){var c,f=[];do{c=r.pop(),o[c].onStack=!1,f.push(c)}while(u!==c);i.push(f)}}(a)})),i}},function(t,e,r){var n=r(5);function o(t){var e={},r={},o=[];if(n.each(t.sinks(),(function a(u){if(n.has(r,u))throw new i;n.has(e,u)||(r[u]=!0,e[u]=!0,n.each(t.predecessors(u),a),delete r[u],o.push(u))})),n.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=new Error},function(t,e,r){var n=r(5);t.exports=function(t,e,r){n.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return n.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,r,o,i,a,u){n.has(i,r)||(i[r]=!0,o||u.push(r),n.each(a(r),(function(r){t(e,r,o,i,a,u)})),o&&u.push(r))}(t,e,"post"===r,a,o,i)})),i}},function(t,e,r){var n=r(256);t.exports=function(t){return t?(t=n(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,r){var n=r(72);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},function(t,e,r){var n=r(41),o=r(20);t.exports=function(t,e,r){(void 0!==r&&!o(t[e],r)||void 0===r&&!(e in t))&&n(t,e,r)}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,r){"use strict";var n=r(0),o=r(7).Graph,i=r(52).slack;function a(t,e){return n.forEach(t.nodes(),(function r(o){n.forEach(e.nodeEdges(o),(function(n){var a=n.v,u=o===a?n.w:a;t.hasNode(u)||i(e,n)||(t.setNode(u,{}),t.setEdge(o,u,{}),r(u))}))})),t.nodeCount()}function u(t,e){return n.minBy(e.edges(),(function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return i(e,r)}))}function s(t,e,r){n.forEach(t.nodes(),(function(t){e.node(t).rank+=r}))}t.exports=function(t){var e,r,n=new o({directed:!1}),c=t.nodes()[0],f=t.nodeCount();n.setNode(c,{});for(;a(n,t)<f;)e=u(n,t),r=n.hasNode(e.v)?i(t,e):-i(t,e),s(n,t,r);return n}},function(t,e,r){var n=r(315),o={};for(var i in n)n.hasOwnProperty(i)&&(o[n[i]]=i);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var u in a)if(a.hasOwnProperty(u)){if(!("channels"in a[u]))throw new Error("missing channels property: "+u);if(!("labels"in a[u]))throw new Error("missing channel labels property: "+u);if(a[u].labels.length!==a[u].channels)throw new Error("channel and label counts mismatch: "+u);var s=a[u].channels,c=a[u].labels;delete a[u].channels,delete a[u].labels,Object.defineProperty(a[u],"channels",{value:s}),Object.defineProperty(a[u],"labels",{value:c})}a.rgb.hsl=function(t){var e,r,n=t[0]/255,o=t[1]/255,i=t[2]/255,a=Math.min(n,o,i),u=Math.max(n,o,i),s=u-a;return u===a?e=0:n===u?e=(o-i)/s:o===u?e=2+(i-n)/s:i===u&&(e=4+(n-o)/s),(e=Math.min(60*e,360))<0&&(e+=360),r=(a+u)/2,[e,100*(u===a?0:r<=.5?s/(u+a):s/(2-u-a)),100*r]},a.rgb.hsv=function(t){var e,r,n,o,i,a=t[0]/255,u=t[1]/255,s=t[2]/255,c=Math.max(a,u,s),f=c-Math.min(a,u,s),h=function(t){return(c-t)/6/f+.5};return 0===f?o=i=0:(i=f/c,e=h(a),r=h(u),n=h(s),a===c?o=n-r:u===c?o=1/3+e-n:s===c&&(o=2/3+r-e),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},a.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(r,n))),100*(n=1-1/255*Math.max(e,Math.max(r,n)))]},a.rgb.cmyk=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255;return[100*((1-r-(e=Math.min(1-r,1-n,1-o)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=o[t];if(e)return e;var r,i,a,u=1/0;for(var s in n)if(n.hasOwnProperty(s)){var c=n[s],f=(i=t,a=c,Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)+Math.pow(i[2]-a[2],2));f<u&&(u=f,r=s)}return r},a.keyword.rgb=function(t){return n[t]},a.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*r+.0722*n),100*(.0193*e+.1192*r+.9505*n)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),r=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},a.hsl.rgb=function(t){var e,r,n,o,i,a=t[0]/360,u=t[1]/100,s=t[2]/100;if(0===u)return[i=255*s,i,i];e=2*s-(r=s<.5?s*(1+u):s+u-s*u),o=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0&&n++,n>1&&n--,i=6*n<1?e+6*(r-e)*n:2*n<1?r:3*n<2?e+(r-e)*(2/3-n)*6:e,o[c]=255*i;return o},a.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,o=r,i=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,o*=i<=1?i:2-i,[e,100*(0===n?2*o/(i+o):2*r/(n+r)),100*((n+r)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,o=Math.floor(e)%6,i=e-Math.floor(e),a=255*n*(1-r),u=255*n*(1-r*i),s=255*n*(1-r*(1-i));switch(n*=255,o){case 0:return[n,s,a];case 1:return[u,n,a];case 2:return[a,n,s];case 3:return[a,u,n];case 4:return[s,a,n];case 5:return[n,a,u]}},a.hsv.hsl=function(t){var e,r,n,o=t[0],i=t[1]/100,a=t[2]/100,u=Math.max(a,.01);return n=(2-i)*a,r=i*u,[o,100*(r=(r/=(e=(2-i)*u)<=1?e:2-e)||0),100*(n/=2)]},a.hwb.rgb=function(t){var e,r,n,o,i,a,u,s=t[0]/360,c=t[1]/100,f=t[2]/100,h=c+f;switch(h>1&&(c/=h,f/=h),n=6*s-(e=Math.floor(6*s)),0!=(1&e)&&(n=1-n),o=c+n*((r=1-f)-c),e){default:case 6:case 0:i=r,a=o,u=c;break;case 1:i=o,a=r,u=c;break;case 2:i=c,a=r,u=o;break;case 3:i=c,a=o,u=r;break;case 4:i=o,a=c,u=r;break;case 5:i=r,a=c,u=o}return[255*i,255*a,255*u]},a.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]},a.xyz.rgb=function(t){var e,r,n,o=t[0]/100,i=t[1]/100,a=t[2]/100;return r=-.9689*o+1.8758*i+.0415*a,n=.0557*o+-.204*i+1.057*a,e=(e=3.2406*o+-1.5372*i+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(e=Math.min(Math.max(0,e),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},a.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2];return r/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(e-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},a.lab.xyz=function(t){var e,r,n,o=t[0];e=t[1]/500+(r=(o+16)/116),n=r-t[2]/200;var i=Math.pow(r,3),a=Math.pow(e,3),u=Math.pow(n,3);return r=i>.008856?i:(r-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,[e*=95.047,r*=100,n*=108.883]},a.lab.lch=function(t){var e,r=t[0],n=t[1],o=t[2];return(e=360*Math.atan2(o,n)/2/Math.PI)<0&&(e+=360),[r,Math.sqrt(n*n+o*o),e]},a.lch.lab=function(t){var e,r=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[r,n*Math.cos(e),n*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],o=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return 2===o&&(i+=60),i},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var r;return t-=16,[Math.floor(t/36)/5*255,Math.floor((r=t%36)/6)/5*255,r%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];3===e[0].length&&(r=r.split("").map((function(t){return t+t})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},a.rgb.hcg=function(t){var e,r=t[0]/255,n=t[1]/255,o=t[2]/255,i=Math.max(Math.max(r,n),o),a=Math.min(Math.min(r,n),o),u=i-a;return e=u<=0?0:i===r?(n-o)/u%6:i===n?2+(o-r)/u:4+(r-n)/u+4,e/=6,[360*(e%=1),100*u,100*(u<1?a/(1-u):0)]},a.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,o=0;return(n=r<.5?2*e*r:2*e*(1-r))<1&&(o=(r-.5*n)/(1-n)),[t[0],100*n,100*o]},a.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},a.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(0===r)return[255*n,255*n,255*n];var o,i=[0,0,0],a=e%1*6,u=a%1,s=1-u;switch(Math.floor(a)){case 0:i[0]=1,i[1]=u,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=u;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=u,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return o=(1-r)*n,[255*(r*i[0]+o),255*(r*i[1]+o),255*(r*i[2]+o)]},a.hcg.hsv=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e),n=0;return r>0&&(n=e/r),[t[0],100*n,100*r]},a.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100*(1-e)+.5*e,n=0;return r>0&&r<.5?n=e/(2*r):r>=.5&&r<1&&(n=e/(2*(1-r))),[t[0],100*n,100*r]},a.hcg.hwb=function(t){var e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},a.hwb.hcg=function(t){var e=t[1]/100,r=1-t[2]/100,n=r-e,o=0;return n<1&&(o=(r-n)/(1-n)),[t[0],100*n,100*o]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=o,e.clone=function(t){var e=new n.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=i,e.fromValues=a,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t},e.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},e.subtract=u,e.multiply=s,e.divide=c,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t},e.max=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},e.scaleAndAdd=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t},e.distance=f,e.squaredDistance=h,e.squaredLength=l,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=d,e.dot=p,e.cross=function(t,e,r){var n=e[0],o=e[1],i=e[2],a=r[0],u=r[1],s=r[2];return t[0]=o*s-i*u,t[1]=i*a-n*s,t[2]=n*u-o*a,t},e.lerp=function(t,e,r,n){var o=e[0],i=e[1],a=e[2];return t[0]=o+n*(r[0]-o),t[1]=i+n*(r[1]-i),t[2]=a+n*(r[2]-a),t},e.hermite=function(t,e,r,n,o,i){var a=i*i,u=a*(2*i-3)+1,s=a*(i-2)+i,c=a*(i-1),f=a*(3-2*i);return t[0]=e[0]*u+r[0]*s+n[0]*c+o[0]*f,t[1]=e[1]*u+r[1]*s+n[1]*c+o[1]*f,t[2]=e[2]*u+r[2]*s+n[2]*c+o[2]*f,t},e.bezier=function(t,e,r,n,o,i){var a=1-i,u=a*a,s=i*i,c=u*a,f=3*i*u,h=3*s*a,l=s*i;return t[0]=e[0]*c+r[0]*f+n[0]*h+o[0]*l,t[1]=e[1]*c+r[1]*f+n[1]*h+o[1]*l,t[2]=e[2]*c+r[2]*f+n[2]*h+o[2]*l,t},e.random=function(t,e){e=e||1;var r=2*n.RANDOM()*Math.PI,o=2*n.RANDOM()-1,i=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=o*e,t},e.transformMat4=function(t,e,r){var n=e[0],o=e[1],i=e[2],a=r[3]*n+r[7]*o+r[11]*i+r[15];return a=a||1,t[0]=(r[0]*n+r[4]*o+r[8]*i+r[12])/a,t[1]=(r[1]*n+r[5]*o+r[9]*i+r[13])/a,t[2]=(r[2]*n+r[6]*o+r[10]*i+r[14])/a,t},e.transformMat3=function(t,e,r){var n=e[0],o=e[1],i=e[2];return t[0]=n*r[0]+o*r[3]+i*r[6],t[1]=n*r[1]+o*r[4]+i*r[7],t[2]=n*r[2]+o*r[5]+i*r[8],t},e.transformQuat=function(t,e,r){var n=r[0],o=r[1],i=r[2],a=r[3],u=e[0],s=e[1],c=e[2],f=o*c-i*s,h=i*u-n*c,l=n*s-o*u,d=o*l-i*h,p=i*f-n*l,v=n*h-o*f,g=2*a;return f*=g,h*=g,l*=g,d*=2,p*=2,v*=2,t[0]=u+f+d,t[1]=s+h+p,t[2]=c+l+v,t},e.rotateX=function(t,e,r,n){var o=[],i=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],i[0]=o[0],i[1]=o[1]*Math.cos(n)-o[2]*Math.sin(n),i[2]=o[1]*Math.sin(n)+o[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},e.rotateY=function(t,e,r,n){var o=[],i=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],i[0]=o[2]*Math.sin(n)+o[0]*Math.cos(n),i[1]=o[1],i[2]=o[2]*Math.cos(n)-o[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},e.rotateZ=function(t,e,r,n){var o=[],i=[];return o[0]=e[0]-r[0],o[1]=e[1]-r[1],o[2]=e[2]-r[2],i[0]=o[0]*Math.cos(n)-o[1]*Math.sin(n),i[1]=o[0]*Math.sin(n)+o[1]*Math.cos(n),i[2]=o[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},e.angle=function(t,e){var r=a(t[0],t[1],t[2]),n=a(e[0],e[1],e[2]);d(r,r),d(n,n);var o=p(r,n);return o>1?0:o<-1?Math.PI:Math.acos(o)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var r=t[0],o=t[1],i=t[2],a=e[0],u=e[1],s=e[2];return Math.abs(r-a)<=n.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-u)<=n.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(i-s)<=n.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))};var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}(r(55));function o(){var t=new n.ARRAY_TYPE(3);return n.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function i(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function a(t,e,r){var o=new n.ARRAY_TYPE(3);return o[0]=t,o[1]=e,o[2]=r,o}function u(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function s(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function f(t,e){var r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(r*r+n*n+o*o)}function h(t,e){var r=e[0]-t[0],n=e[1]-t[1],o=e[2]-t[2];return r*r+n*n+o*o}function l(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function d(t,e){var r=e[0],n=e[1],o=e[2],i=r*r+n*n+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}var v;e.sub=u,e.mul=s,e.div=c,e.dist=f,e.sqrDist=h,e.len=i,e.sqrLen=l,e.forEach=(v=o(),function(t,e,r,n,o,i){var a=void 0,u=void 0;for(e||(e=3),r||(r=0),u=n?Math.min(n*e+r,t.length):t.length,a=r;a<u;a+=e)v[0]=t[a],v[1]=t[a+1],v[2]=t[a+2],o(v,v,i),t[a]=v[0],t[a+1]=v[1],t[a+2]=v[2];return t})},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=n},,,,function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=n(t);return null!==t&&"object"===e||"function"===e}},function(t,e,r){var n=r(136);t.exports={Graph:n.Graph,json:r(239),alg:r(240),version:n.version}},function(t,e,r){t.exports={Graph:r(56),version:r(238)}},function(t,e,r){var n=r(75);t.exports=function(t){return n(t,4)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(37),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(37);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(37);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(37);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(36);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(36),o=r(57),i=r(58);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},function(t,e,r){var n=r(25),o=r(152),i=r(6),a=r(77),u=/^\\[object .+?Constructor\\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,h=c.hasOwnProperty,l=RegExp("^"+f.call(h).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?l:u).test(a(t))}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,r){var n=r(21),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(153),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,e,r){var n=r(8)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(156),o=r(36),i=r(57);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(157),o=r(158),i=r(159),a=r(160),u=r(161);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},function(t,e,r){var n=r(38);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(38),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(38),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(38);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,r){var n=r(39);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=r(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(39);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(39);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(39);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(26),o=r(14);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(16),o=r(10);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(16),o=r(61),i=r(10),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,e,r){var n=r(80)(Object.keys,Object);t.exports=n},function(t,e,r){var n=r(26),o=r(17);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(6),o=r(44),i=r(175),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var u in t)("constructor"!=u||!e&&a.call(t,u))&&r.push(u);return r}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,e,r){var n=r(26),o=r(64);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e,r){var n=r(26),o=r(85);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e,r){var n=r(87),o=r(85),i=r(17);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(15)(r(8),"DataView");t.exports=n},function(t,e,r){var n=r(15)(r(8),"Promise");t.exports=n},function(t,e,r){var n=r(15)(r(8),"WeakMap");t.exports=n},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,r){var n=r(66),o=r(184),i=r(185),a=r(186),u=r(90);t.exports=function(t,e,r){var s=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(t,r);case"[object Map]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return i(t);case"[object Set]":return new s;case"[object Symbol]":return a(t)}}},function(t,e,r){var n=r(66);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},function(t,e){var r=/\\w*$/;t.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,r){var n=r(21),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e,r){var n=r(188),o=r(43),i=r(62),a=i&&i.isMap,u=a?o(a):n;t.exports=u},function(t,e,r){var n=r(23),o=r(10);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},function(t,e,r){var n=r(190),o=r(43),i=r(62),a=i&&i.isSet,u=a?o(a):n;t.exports=u},function(t,e,r){var n=r(23),o=r(10);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},function(t,e){t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}},function(t,e,r){var n=r(12);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a<i)&&!1!==o(u[a],a,u););return r}}},function(t,e,r){var n=r(46);t.exports=function(t,e){var r=[];return n(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}},function(t,e,r){var n=r(195),o=r(203),i=r(102);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(35),o=r(97);t.exports=function(t,e,r,i){var a=r.length,u=a,s=!i;if(null==t)return!u;for(t=Object(t);a--;){var c=r[a];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<u;){var f=(c=r[a])[0],h=t[f],l=c[1];if(s&&c[2]){if(void 0===h&&!(f in t))return!1}else{var d=new n;if(i)var p=i(h,l,f,t,e,d);if(!(void 0===p?o(l,h,3,i,d):p))return!1}}return!0}},function(t,e,r){var n=r(35),o=r(98),i=r(200),a=r(202),u=r(23),s=r(1),c=r(22),f=r(28),h="[object Object]",l=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,p,v){var g=s(t),y=s(e),m=g?"[object Array]":u(t),b=y?"[object Array]":u(e),w=(m="[object Arguments]"==m?h:m)==h,x=(b="[object Arguments]"==b?h:b)==h,M=m==b;if(M&&c(t)){if(!c(e))return!1;g=!0,w=!1}if(M&&!w)return v||(v=new n),g||f(t)?o(t,e,r,d,p,v):i(t,e,m,r,d,p,v);if(!(1&r)){var k=w&&l.call(t,"__wrapped__"),_=x&&l.call(e,"__wrapped__");if(k||_){var S=k?t.value():t,E=_?e.value():e;return v||(v=new n),p(S,E,r,d,v)}}return!!M&&(v||(v=new n),a(t,e,r,d,p,v))}},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e,r){var n=r(21),o=r(89),i=r(20),a=r(98),u=r(201),s=r(70),c=n?n.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,h,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=u;case"[object Set]":var p=1&n;if(d||(d=s),t.size!=e.size&&!p)return!1;var v=l.get(t);if(v)return v==e;n|=2,l.set(t,e);var g=a(d(t),d(e),n,c,h,l);return l.delete(t),g;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e,r){var n=r(86),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var s=1&r,c=n(t),f=c.length;if(f!=n(e).length&&!s)return!1;for(var h=f;h--;){var l=c[h];if(!(s?l in e:o.call(e,l)))return!1}var d=u.get(t),p=u.get(e);if(d&&p)return d==e&&p==t;var v=!0;u.set(t,e),u.set(e,t);for(var g=s;++h<f;){var y=t[l=c[h]],m=e[l];if(i)var b=s?i(m,y,l,e,t,u):i(y,m,l,t,e,u);if(!(void 0===b?y===m||a(y,m,r,i,u):b)){v=!1;break}g||(g="constructor"==l)}if(v&&!g){var w=t.constructor,x=e.constructor;w==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(v=!1)}return u.delete(t),u.delete(e),v}},function(t,e,r){var n=r(101),o=r(14);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},function(t,e,r){var n=r(97),o=r(205),i=r(104),a=r(71),u=r(101),s=r(102),c=r(29);t.exports=function(t,e){return a(t)&&u(e)?s(c(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},function(t,e,r){var n=r(47);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},function(t,e,r){var n=r(207),o=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,i=/\\\\(\\\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},function(t,e,r){var n=r(208);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=r(58);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},function(t,e,r){var n=r(21),o=r(49),i=r(1),a=r(24),u=n?n.prototype:void 0,s=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(106),o=r(212),i=r(71),a=r(29);t.exports=function(t){return i(t)?n(a(t)):o(t)}},function(t,e,r){var n=r(47);t.exports=function(t){return function(e){return n(e,t)}}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&r.call(t,e)}},function(t,e,r){var n=r(63),o=r(23),i=r(27),a=r(1),u=r(12),s=r(22),c=r(44),f=r(28),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||f(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!n(t).length;for(var r in t)if(h.call(t,r))return!1;return!0}},function(t,e){t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}},function(t,e){t.exports=function(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}},function(t,e,r){var n=r(63),o=r(23),i=r(12),a=r(218),u=r(219);t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?u(t):t.length;var e=o(t);return"[object Map]"==e||"[object Set]"==e?t.size:n(t).length}},function(t,e,r){var n=r(16),o=r(1),i=r(10);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},function(t,e,r){var n=r(220),o=r(221),i=r(222);t.exports=function(t){return o(t)?i(t):n(t)}},function(t,e,r){var n=r(106)("length");t.exports=n},function(t,e){var r=RegExp("[\\\\u200d\\\\ud800-\\\\udfff\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\\\\ufe0e\\\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e){var r="[\\\\ud800-\\\\udfff]",n="[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]",o="\\\\ud83c[\\\\udffb-\\\\udfff]",i="[^\\\\ud800-\\\\udfff]",a="(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}",u="[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]",s="(?:"+n+"|"+o+")"+"?",c="[\\\\ufe0e\\\\ufe0f]?"+s+("(?:\\\\u200d(?:"+[i,a,u].join("|")+")[\\\\ufe0e\\\\ufe0f]?"+s+")*"),f="(?:"+[i+n+"?",n,a,u,r].join("|")+")",h=RegExp(o+"(?="+o+")|"+f+c,"g");t.exports=function(t){for(var e=h.lastIndex=0;h.test(t);)++e;return e}},function(t,e,r){var n=r(59),o=r(92),i=r(68),a=r(13),u=r(45),s=r(1),c=r(22),f=r(25),h=r(6),l=r(28);t.exports=function(t,e,r){var d=s(t),p=d||c(t)||l(t);if(e=a(e,4),null==r){var v=t&&t.constructor;r=p?d?new v:[]:h(t)&&f(v)?o(u(t)):{}}return(p?n:i)(t,(function(t,n,o){return e(r,t,n,o)})),r}},function(t,e,r){var n=r(72),o=r(50),i=r(229),a=r(115),u=o((function(t){return i(n(t,1,a,!0))}));t.exports=u},function(t,e,r){var n=r(21),o=r(27),i=r(1),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(67),o=r(78),i=r(18),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},function(t,e){var r=Date.now;t.exports=function(t){var e=0,n=0;return function(){var o=r(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(99),o=r(230),i=r(234),a=r(100),u=r(235),s=r(70);t.exports=function(t,e,r){var c=-1,f=o,h=t.length,l=!0,d=[],p=d;if(r)l=!1,f=i;else if(h>=200){var v=e?null:u(t);if(v)return s(v);l=!1,f=a,p=new n}else p=e?[]:d;t:for(;++c<h;){var g=t[c],y=e?e(g):g;if(g=r||0!==g?g:0,l&&y==y){for(var m=p.length;m--;)if(p[m]===y)continue t;e&&p.push(y),d.push(g)}else f(p,y,r)||(p!==d&&p.push(y),d.push(g))}return d}},function(t,e,r){var n=r(231);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},function(t,e,r){var n=r(114),o=r(232),i=r(233);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},function(t,e,r){var n=r(88),o=r(236),i=r(70),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(49);t.exports=function(t,e){return n(e,(function(e){return t[e]}))}},function(t,e){t.exports="2.1.8"},function(t,e,r){var n=r(5),o=r(56);function i(t){return n.map(t.nodes(),(function(e){var r=t.node(e),o=t.parent(e),i={v:e};return n.isUndefined(r)||(i.value=r),n.isUndefined(o)||(i.parent=o),i}))}function a(t){return n.map(t.edges(),(function(e){var r=t.edge(e),o={v:e.v,w:e.w};return n.isUndefined(e.name)||(o.name=e.name),n.isUndefined(r)||(o.value=r),o}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:i(t),edges:a(t)};n.isUndefined(t.graph())||(e.value=n.clone(t.graph()));return e},read:function(t){var e=new o(t.options).setGraph(t.value);return n.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),n.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},function(t,e,r){t.exports={components:r(241),dijkstra:r(117),dijkstraAll:r(242),findCycles:r(243),floydWarshall:r(244),isAcyclic:r(245),postorder:r(246),preorder:r(247),prim:r(248),tarjan:r(119),topsort:r(120)}},function(t,e,r){var n=r(5);t.exports=function(t){var e,r={},o=[];function i(o){n.has(r,o)||(r[o]=!0,e.push(o),n.each(t.successors(o),i),n.each(t.predecessors(o),i))}return n.each(t.nodes(),(function(t){e=[],i(t),e.length&&o.push(e)})),o}},function(t,e,r){var n=r(117),o=r(5);t.exports=function(t,e,r){return o.transform(t.nodes(),(function(o,i){o[i]=n(t,i,e,r)}),{})}},function(t,e,r){var n=r(5),o=r(119);t.exports=function(t){return n.filter(o(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,r){var n=r(5);t.exports=function(t,e,r){return function(t,e,r){var n={},o=t.nodes();return o.forEach((function(t){n[t]={},n[t][t]={distance:0},o.forEach((function(e){t!==e&&(n[t][e]={distance:Number.POSITIVE_INFINITY})})),r(t).forEach((function(r){var o=r.v===t?r.w:r.v,i=e(r);n[t][o]={distance:i,predecessor:t}}))})),o.forEach((function(t){var e=n[t];o.forEach((function(r){var i=n[r];o.forEach((function(r){var n=i[t],o=e[r],a=i[r],u=n.distance+o.distance;u<a.distance&&(a.distance=u,a.predecessor=o.predecessor)}))}))})),n}(t,e||o,r||function(e){return t.outEdges(e)})};var o=n.constant(1)},function(t,e,r){var n=r(120);t.exports=function(t){try{n(t)}catch(t){if(t instanceof n.CycleException)return!1;throw t}return!0}},function(t,e,r){var n=r(121);t.exports=function(t,e){return n(t,e,"post")}},function(t,e,r){var n=r(121);t.exports=function(t,e){return n(t,e,"pre")}},function(t,e,r){var n=r(5),o=r(56),i=r(118);t.exports=function(t,e){var r,a=new o,u={},s=new i;function c(t){var n=t.v===r?t.w:t.v,o=s.priority(n);if(void 0!==o){var i=e(t);i<o&&(u[n]=r,s.decrease(n,i))}}if(0===t.nodeCount())return a;n.each(t.nodes(),(function(t){s.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),s.decrease(t.nodes()[0],0);var f=!1;for(;s.size()>0;){if(r=s.removeMin(),n.has(u,r))a.setEdge(r,u[r]);else{if(f)throw new Error("Input graph is not connected: "+t);f=!0}t.nodeEdges(r).forEach(c)}return a}},function(t,e,r){"use strict";var n=r(0),o=r(287),i=r(290),a=r(291),u=r(4).normalizeRanks,s=r(293),c=r(4).removeEmptyRanks,f=r(294),h=r(295),l=r(296),d=r(297),p=r(306),v=r(4),g=r(7).Graph;t.exports=function(t,e){var r=e&&e.debugTiming?v.time:v.notime;r("layout",(function(){var e=r("  buildLayoutGraph",(function(){return function(t){var e=new g({multigraph:!0,compound:!0}),r=E(t.graph());return e.setGraph(n.merge({},m,S(r,y),n.pick(r,b))),n.forEach(t.nodes(),(function(r){var o=E(t.node(r));e.setNode(r,n.defaults(S(o,w),x)),e.setParent(r,t.parent(r))})),n.forEach(t.edges(),(function(r){var o=E(t.edge(r));e.setEdge(r,n.merge({},k,S(o,M),n.pick(o,_)))})),e}(t)}));r("  runLayout",(function(){!function(t,e){e("    makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,n.forEach(t.edges(),(function(r){var n=t.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}(t)})),e("    removeSelfEdges",(function(){!function(t){n.forEach(t.edges(),(function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e("    acyclic",(function(){o.run(t)})),e("    nestingGraph.run",(function(){f.run(t)})),e("    rank",(function(){a(v.asNonCompoundGraph(t))})),e("    injectEdgeLabelProxies",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),o={rank:(t.node(e.w).rank-n.rank)/2+n.rank,e:e};v.addDummyNode(t,"edge-proxy",o,"_ep")}}))}(t)})),e("    removeEmptyRanks",(function(){c(t)})),e("    nestingGraph.cleanup",(function(){f.cleanup(t)})),e("    normalizeRanks",(function(){u(t)})),e("    assignRankMinMax",(function(){!function(t){var e=0;n.forEach(t.nodes(),(function(r){var o=t.node(r);o.borderTop&&(o.minRank=t.node(o.borderTop).rank,o.maxRank=t.node(o.borderBottom).rank,e=n.max(e,o.maxRank))})),t.graph().maxRank=e}(t)})),e("    removeEdgeLabelProxies",(function(){!function(t){n.forEach(t.nodes(),(function(e){var r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))}))}(t)})),e("    normalize.run",(function(){i.run(t)})),e("    parentDummyChains",(function(){s(t)})),e("    addBorderSegments",(function(){h(t)})),e("    order",(function(){d(t)})),e("    insertSelfEdges",(function(){!function(t){var e=v.buildLayerMatrix(t);n.forEach(e,(function(e){var r=0;n.forEach(e,(function(e,o){var i=t.node(e);i.order=o+r,n.forEach(i.selfEdges,(function(e){v.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++r,e:e.e,label:e.label},"_se")})),delete i.selfEdges}))}))}(t)})),e("    adjustCoordinateSystem",(function(){l.adjust(t)})),e("    position",(function(){p(t)})),e("    positionSelfEdges",(function(){!function(t){n.forEach(t.nodes(),(function(e){var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),o=n.x+n.width/2,i=n.y,a=r.x-o,u=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],r.label.x=r.x,r.label.y=r.y}}))}(t)})),e("    removeBorderNodes",(function(){!function(t){n.forEach(t.nodes(),(function(e){if(t.children(e).length){var r=t.node(e),o=t.node(r.borderTop),i=t.node(r.borderBottom),a=t.node(n.last(r.borderLeft)),u=t.node(n.last(r.borderRight));r.width=Math.abs(u.x-a.x),r.height=Math.abs(i.y-o.y),r.x=a.x+r.width/2,r.y=o.y+r.height/2}})),n.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e("    normalize.undo",(function(){i.undo(t)})),e("    fixupEdgeLabelCoords",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(n.has(r,"x"))switch("l"!==r.labelpos&&"r"!==r.labelpos||(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}}))}(t)})),e("    undoCoordinateSystem",(function(){l.undo(t)})),e("    translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,r=0,o=Number.POSITIVE_INFINITY,i=0,a=t.graph(),u=a.marginx||0,s=a.marginy||0;function c(t){var n=t.x,a=t.y,u=t.width,s=t.height;e=Math.min(e,n-u/2),r=Math.max(r,n+u/2),o=Math.min(o,a-s/2),i=Math.max(i,a+s/2)}n.forEach(t.nodes(),(function(e){c(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.has(r,"x")&&c(r)})),e-=u,o-=s,n.forEach(t.nodes(),(function(r){var n=t.node(r);n.x-=e,n.y-=o})),n.forEach(t.edges(),(function(r){var i=t.edge(r);n.forEach(i.points,(function(t){t.x-=e,t.y-=o})),n.has(i,"x")&&(i.x-=e),n.has(i,"y")&&(i.y-=o)})),a.width=r-e+u,a.height=i-o+s}(t)})),e("    assignNodeIntersects",(function(){!function(t){n.forEach(t.edges(),(function(e){var r,n,o=t.edge(e),i=t.node(e.v),a=t.node(e.w);o.points?(r=o.points[0],n=o.points[o.points.length-1]):(o.points=[],r=a,n=i),o.points.unshift(v.intersectRect(i,r)),o.points.push(v.intersectRect(a,n))}))}(t)})),e("    reversePoints",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);r.reversed&&r.points.reverse()}))}(t)})),e("    acyclic.undo",(function(){o.undo(t)}))}(e,r)})),r("  updateInputGraph",(function(){!function(t,e){n.forEach(t.nodes(),(function(r){var n=t.node(r),o=e.node(r);n&&(n.x=o.x,n.y=o.y,e.children(r).length&&(n.width=o.width,n.height=o.height))})),n.forEach(t.edges(),(function(r){var o=t.edge(r),i=e.edge(r);o.points=i.points,n.has(i,"x")&&(o.x=i.x,o.y=i.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],x={width:0,height:0},M=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_=["labelpos"];function S(t,e){return n.mapValues(n.pick(t,e),Number)}function E(t){var e={};return n.forEach(t,(function(t,r){e[r.toLowerCase()]=t})),e}},function(t,e,r){var n=r(75);t.exports=function(t){return n(t,5)}},function(t,e,r){var n=r(50),o=r(20),i=r(51),a=r(17),u=Object.prototype,s=u.hasOwnProperty,c=n((function(t,e){t=Object(t);var r=-1,n=e.length,c=n>2?e[2]:void 0;for(c&&i(e[0],e[1],c)&&(n=1);++r<n;)for(var f=e[r],h=a(f),l=-1,d=h.length;++l<d;){var p=h[l],v=t[p];(void 0===v||o(v,u[p])&&!s.call(t,p))&&(t[p]=f[p])}return t}));t.exports=c},function(t,e,r){var n=r(253)(r(254));t.exports=n},function(t,e,r){var n=r(13),o=r(12),i=r(14);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var s=n(r,3);e=i(e),r=function(t){return s(u[t],t,u)}}var c=t(e,r,a);return c>-1?u[s?e[c]:c]:void 0}}},function(t,e,r){var n=r(114),o=r(13),i=r(255),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var s=null==r?0:i(r);return s<0&&(s=a(u+s,0)),n(t,o(e,3),s)}},function(t,e,r){var n=r(122);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},function(t,e,r){var n=r(6),o=r(24),i=/^\\s+|\\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var r=u.test(t);return r||s.test(t)?c(t.slice(2),r?2:8):a.test(t)?NaN:+t}},function(t,e,r){var n=r(69),o=r(95),i=r(17);t.exports=function(t,e){return null==t?t:n(t,o(e),i)}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,r){var n=r(41),o=r(68),i=r(13);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},function(t,e,r){var n=r(73),o=r(261),i=r(18);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,r){var n=r(263),o=r(267)((function(t,e,r){n(t,e,r)}));t.exports=o},function(t,e,r){var n=r(35),o=r(124),i=r(69),a=r(264),u=r(6),s=r(17),c=r(125);t.exports=function t(e,r,f,h,l){e!==r&&i(r,(function(i,s){if(l||(l=new n),u(i))a(e,r,s,f,t,h,l);else{var d=h?h(c(e,s),i,s+"",e,r,l):void 0;void 0===d&&(d=i),o(e,s,d)}}),s)}},function(t,e,r){var n=r(124),o=r(81),i=r(90),a=r(82),u=r(91),s=r(27),c=r(1),f=r(115),h=r(22),l=r(25),d=r(6),p=r(265),v=r(28),g=r(125),y=r(266);t.exports=function(t,e,r,m,b,w,x){var M=g(t,r),k=g(e,r),_=x.get(k);if(_)n(t,r,_);else{var S=w?w(M,k,r+"",t,e,x):void 0,E=void 0===S;if(E){var j=c(k),A=!j&&h(k),O=!j&&!A&&v(k);S=k,j||A||O?c(M)?S=M:f(M)?S=a(M):A?(E=!1,S=o(k,!0)):O?(E=!1,S=i(k,!0)):S=[]:p(k)||s(k)?(S=M,s(M)?S=y(M):d(M)&&!l(M)||(S=u(k))):E=!1}E&&(x.set(k,S),b(S,k,m,w,x),x.delete(k)),n(t,r,S)}}},function(t,e,r){var n=r(16),o=r(45),i=r(10),a=Function.prototype,u=Object.prototype,s=a.toString,c=u.hasOwnProperty,f=s.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==f}},function(t,e,r){var n=r(26),o=r(17);t.exports=function(t){return n(t,o(t))}},function(t,e,r){var n=r(50),o=r(51);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(r[0],r[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,a)}return e}))}},function(t,e,r){var n=r(73),o=r(126),i=r(18);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},function(t,e,r){var n=r(73),o=r(13),i=r(126);t.exports=function(t,e){return t&&t.length?n(t,o(e,2),i):void 0}},function(t,e,r){var n=r(8);t.exports=function(){return n.Date.now()}},function(t,e,r){var n=r(272),o=r(275)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},function(t,e,r){var n=r(273),o=r(104);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},function(t,e,r){var n=r(47),o=r(274),i=r(48);t.exports=function(t,e,r){for(var a=-1,u=e.length,s={};++a<u;){var c=e[a],f=n(t,c);r(f,c)&&o(s,i(c,t),f)}return s}},function(t,e,r){var n=r(40),o=r(48),i=r(42),a=r(6),u=r(29);t.exports=function(t,e,r,s){if(!a(t))return t;for(var c=-1,f=(e=o(e,t)).length,h=f-1,l=t;null!=l&&++c<f;){var d=u(e[c]),p=r;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=h){var v=l[d];void 0===(p=s?s(v,d,l):void 0)&&(p=a(v)?v:i(e[c+1])?[]:{})}n(l,d,p),l=l[d]}return t}},function(t,e,r){var n=r(123),o=r(112),i=r(113);t.exports=function(t){return i(o(t,void 0,n),t+"")}},function(t,e,r){var n=r(277)();t.exports=n},function(t,e,r){var n=r(278),o=r(51),i=r(122);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},function(t,e){var r=Math.ceil,n=Math.max;t.exports=function(t,e,o,i){for(var a=-1,u=n(r((e-t)/(o||1)),0),s=Array(u);u--;)s[i?u:++a]=t,t+=o;return s}},function(t,e,r){var n=r(72),o=r(280),i=r(50),a=r(51),u=i((function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=u},function(t,e,r){var n=r(49),o=r(47),i=r(13),a=r(110),u=r(281),s=r(43),c=r(282),f=r(18),h=r(1);t.exports=function(t,e,r){e=e.length?n(e,(function(t){return h(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[f];var l=-1;e=n(e,s(i));var d=a(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++l,value:t}}));return u(d,(function(t,e){return c(t,e,r)}))}},function(t,e){t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},function(t,e,r){var n=r(283);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,s=r.length;++o<u;){var c=n(i[o],a[o]);if(c)return o>=s?c:c*("desc"==r[o]?-1:1)}return t.index-e.index}},function(t,e,r){var n=r(24);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==e,s=null===e,c=e==e,f=n(e);if(!s&&!f&&!a&&t>e||a&&u&&c&&!s&&!f||o&&u&&c||!r&&c||!i)return 1;if(!o&&!a&&!f&&t<e||f&&r&&i&&!o&&!a||s&&r&&i||!u&&i||!c)return-1}return 0}},function(t,e,r){var n=r(103),o=0;t.exports=function(t){var e=++o;return n(t)+e}},function(t,e,r){var n=r(40),o=r(286);t.exports=function(t,e){return o(t||[],e||[],n)}},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=t.length,i=e.length,a={};++n<o;){var u=n<i?e[n]:void 0;r(a,t[n],u)}return a}},function(t,e,r){"use strict";var n=r(0),o=r(288);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?o(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],r={},o={};function i(a){n.has(o,a)||(o[a]=!0,r[a]=!0,n.forEach(t.outEdges(a),(function(t){n.has(r,t.w)?e.push(t):i(t.w)})),delete r[a])}return n.forEach(t.nodes(),i),e}(t);n.forEach(e,(function(e){var r=t.edge(e);t.removeEdge(e),r.forwardName=e.name,r.reversed=!0,t.setEdge(e.w,e.v,r,n.uniqueId("rev"))}))},undo:function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}}))}}},function(t,e,r){var n=r(0),o=r(7).Graph,i=r(289);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var r=function(t,e){var r=new o,a=0,u=0;n.forEach(t.nodes(),(function(t){r.setNode(t,{v:t,in:0,out:0})})),n.forEach(t.edges(),(function(t){var n=r.edge(t.v,t.w)||0,o=e(t),i=n+o;r.setEdge(t.v,t.w,i),u=Math.max(u,r.node(t.v).out+=o),a=Math.max(a,r.node(t.w).in+=o)}));var c=n.range(u+a+3).map((function(){return new i})),f=a+1;return n.forEach(r.nodes(),(function(t){s(c,f,r.node(t))})),{graph:r,buckets:c,zeroIdx:f}}(t,e||a),c=function(t,e,r){var n,o=[],i=e[e.length-1],a=e[0];for(;t.nodeCount();){for(;n=a.dequeue();)u(t,e,r,n);for(;n=i.dequeue();)u(t,e,r,n);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(n=e[s].dequeue()){o=o.concat(u(t,e,r,n,!0));break}}return o}(r.graph,r.buckets,r.zeroIdx);return n.flatten(n.map(c,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=n.constant(1);function u(t,e,r,o,i){var a=i?[]:void 0;return n.forEach(t.inEdges(o.v),(function(n){var o=t.edge(n),u=t.node(n.v);i&&a.push({v:n.v,w:n.w}),u.out-=o,s(e,r,u)})),n.forEach(t.outEdges(o.v),(function(n){var o=t.edge(n),i=n.w,a=t.node(i);a.in-=o,s(e,r,a)})),t.removeNode(o.v),a}function s(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}},function(t,e){function r(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function o(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=r,r.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},r.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},r.prototype.toString=function(){for(var t=[],e=this._sentinel,r=e._prev;r!==e;)t.push(JSON.stringify(r,o)),r=r._prev;return"["+t.join(", ")+"]"}},function(t,e,r){"use strict";var n=r(0),o=r(4);t.exports={run:function(t){t.graph().dummyChains=[],n.forEach(t.edges(),(function(e){!function(t,e){var r,n,i,a=e.v,u=t.node(a).rank,s=e.w,c=t.node(s).rank,f=e.name,h=t.edge(e),l=h.labelRank;if(c===u+1)return;for(t.removeEdge(e),i=0,++u;u<c;++i,++u)h.points=[],n={width:0,height:0,edgeLabel:h,edgeObj:e,rank:u},r=o.addDummyNode(t,"edge",n,"_d"),u===l&&(n.width=h.width,n.height=h.height,n.dummy="edge-label",n.labelpos=h.labelpos),t.setEdge(a,r,{weight:h.weight},f),0===i&&t.graph().dummyChains.push(r),a=r;t.setEdge(a,s,{weight:h.weight},f)}(t,e)}))},undo:function(t){n.forEach(t.graph().dummyChains,(function(e){var r,n=t.node(e),o=n.edgeLabel;for(t.setEdge(n.edgeObj,o);n.dummy;)r=t.successors(e)[0],t.removeNode(e),o.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height),e=r,n=t.node(e)}))}}},function(t,e,r){"use strict";var n=r(52).longestPath,o=r(127),i=r(292);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":u(t);break;case"tight-tree":!function(t){n(t),o(t)}(t);break;case"longest-path":a(t);break;default:u(t)}};var a=n;function u(t){i(t)}},function(t,e,r){"use strict";var n=r(0),o=r(127),i=r(52).slack,a=r(52).longestPath,u=r(7).alg.preorder,s=r(7).alg.postorder,c=r(4).simplify;function f(t){t=c(t),a(t);var e,r=o(t);for(d(r),h(r,t);e=v(r);)y(r,t,e,g(r,t,e))}function h(t,e){var r=s(t,t.nodes());r=r.slice(0,r.length-1),n.forEach(r,(function(r){!function(t,e,r){var n=t.node(r).parent;t.edge(r,n).cutvalue=l(t,e,r)}(t,e,r)}))}function l(t,e,r){var o=t.node(r).parent,i=!0,a=e.edge(r,o),u=0;return a||(i=!1,a=e.edge(o,r)),u=a.weight,n.forEach(e.nodeEdges(r),(function(n){var a,s,c=n.v===r,f=c?n.w:n.v;if(f!==o){var h=c===i,l=e.edge(n).weight;if(u+=h?l:-l,a=r,s=f,t.hasEdge(a,s)){var d=t.edge(r,f).cutvalue;u+=h?-d:d}}})),u}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,r,o,i){var a=r,u=t.node(o);return e[o]=!0,n.forEach(t.neighbors(o),(function(i){n.has(e,i)||(r=p(t,e,r,i,o))})),u.low=a,u.lim=r++,i?u.parent=i:delete u.parent,r}function v(t){return n.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function g(t,e,r){var o=r.v,a=r.w;e.hasEdge(o,a)||(o=r.w,a=r.v);var u=t.node(o),s=t.node(a),c=u,f=!1;u.lim>s.lim&&(c=s,f=!0);var h=n.filter(e.edges(),(function(e){return f===m(t,t.node(e.v),c)&&f!==m(t,t.node(e.w),c)}));return n.minBy(h,(function(t){return i(e,t)}))}function y(t,e,r,o){var i=r.v,a=r.w;t.removeEdge(i,a),t.setEdge(o.v,o.w,{}),d(t),h(t,e),function(t,e){var r=n.find(t.nodes(),(function(t){return!e.node(t).parent})),o=u(t,r);o=o.slice(1),n.forEach(o,(function(r){var n=t.node(r).parent,o=e.edge(r,n),i=!1;o||(o=e.edge(n,r),i=!0),e.node(r).rank=e.node(n).rank+(i?o.minlen:-o.minlen)}))}(t,e)}function m(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}t.exports=f,f.initLowLimValues=d,f.initCutValues=h,f.calcCutValue=l,f.leaveEdge=v,f.enterEdge=g,f.exchangeEdges=y},function(t,e,r){var n=r(0);t.exports=function(t){var e=function(t){var e={},r=0;function o(i){var a=r;n.forEach(t.children(i),o),e[i]={low:a,lim:r++}}return n.forEach(t.children(),o),e}(t);n.forEach(t.graph().dummyChains,(function(r){for(var n=t.node(r),o=n.edgeObj,i=function(t,e,r,n){var o,i,a=[],u=[],s=Math.min(e[r].low,e[n].low),c=Math.max(e[r].lim,e[n].lim);o=r;do{o=t.parent(o),a.push(o)}while(o&&(e[o].low>s||c>e[o].lim));i=o,o=n;for(;(o=t.parent(o))!==i;)u.push(o);return{path:a.concat(u.reverse()),lca:i}}(t,e,o.v,o.w),a=i.path,u=i.lca,s=0,c=a[s],f=!0;r!==o.w;){if(n=t.node(r),f){for(;(c=a[s])!==u&&t.node(c).maxRank<n.rank;)s++;c===u&&(f=!1)}if(!f){for(;s<a.length-1&&t.node(c=a[s+1]).minRank<=n.rank;)s++;c=a[s]}t.setParent(r,c),r=t.successors(r)[0]}}))}},function(t,e,r){var n=r(0),o=r(4);t.exports={run:function(t){var e=o.addDummyNode(t,"root",{},"_root"),r=function(t){var e={};return n.forEach(t.children(),(function(r){!function r(o,i){var a=t.children(o);a&&a.length&&n.forEach(a,(function(t){r(t,i+1)}));e[o]=i}(r,1)})),e}(t),i=n.max(n.values(r))-1,a=2*i+1;t.graph().nestingRoot=e,n.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var u=function(t){return n.reduce(t.edges(),(function(e,r){return e+t.edge(r).weight}),0)}(t)+1;n.forEach(t.children(),(function(s){!function t(e,r,i,a,u,s,c){var f=e.children(c);if(!f.length)return void(c!==r&&e.setEdge(r,c,{weight:0,minlen:i}));var h=o.addBorderNode(e,"_bt"),l=o.addBorderNode(e,"_bb"),d=e.node(c);e.setParent(h,c),d.borderTop=h,e.setParent(l,c),d.borderBottom=l,n.forEach(f,(function(n){t(e,r,i,a,u,s,n);var o=e.node(n),f=o.borderTop?o.borderTop:n,d=o.borderBottom?o.borderBottom:n,p=o.borderTop?a:2*a,v=f!==d?1:u-s[c]+1;e.setEdge(h,f,{weight:p,minlen:v,nestingEdge:!0}),e.setEdge(d,l,{weight:p,minlen:v,nestingEdge:!0})})),e.parent(c)||e.setEdge(r,h,{weight:0,minlen:u+s[c]})}(t,e,a,u,i,r,s)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,n.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},function(t,e,r){var n=r(0),o=r(4);function i(t,e,r,n,i,a){var u={width:0,height:0,rank:a,borderType:e},s=i[e][a-1],c=o.addDummyNode(t,"border",u,r);i[e][a]=c,t.setParent(c,n),s&&t.setEdge(s,c,{weight:1})}t.exports=function(t){n.forEach(t.children(),(function e(r){var o=t.children(r),a=t.node(r);if(o.length&&n.forEach(o,e),n.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,s=a.maxRank+1;u<s;++u)i(t,"borderLeft","_bl",r,a,u),i(t,"borderRight","_br",r,a,u)}}))}},function(t,e,r){"use strict";var n=r(0);function o(t){n.forEach(t.nodes(),(function(e){i(t.node(e))})),n.forEach(t.edges(),(function(e){i(t.edge(e))}))}function i(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function u(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||o(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){n.forEach(t.nodes(),(function(e){a(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.forEach(r.points,a),n.has(r,"y")&&a(r)}))}(t);"lr"!==e&&"rl"!==e||(!function(t){n.forEach(t.nodes(),(function(e){u(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.forEach(r.points,u),n.has(r,"x")&&u(r)}))}(t),o(t))}}},function(t,e,r){"use strict";var n=r(0),o=r(298),i=r(299),a=r(300),u=r(304),s=r(305),c=r(7).Graph,f=r(4);function h(t,e,r){return n.map(e,(function(e){return u(t,e,r)}))}function l(t,e){var r=new c;n.forEach(t,(function(t){var o=t.graph().root,i=a(t,o,r,e);n.forEach(i.vs,(function(e,r){t.node(e).order=r})),s(t,r,i.vs)}))}function d(t,e){n.forEach(e,(function(e){n.forEach(e,(function(e,r){t.node(e).order=r}))}))}t.exports=function(t){var e=f.maxRank(t),r=h(t,n.range(1,e+1),"inEdges"),a=h(t,n.range(e-1,-1,-1),"outEdges"),u=o(t);d(t,u);for(var s,c=Number.POSITIVE_INFINITY,p=0,v=0;v<4;++p,++v){l(p%2?r:a,p%4>=2),u=f.buildLayerMatrix(t);var g=i(t,u);g<c&&(v=0,s=n.cloneDeep(u),c=g)}d(t,s)}},function(t,e,r){"use strict";var n=r(0);t.exports=function(t){var e={},r=n.filter(t.nodes(),(function(e){return!t.children(e).length})),o=n.max(n.map(r,(function(e){return t.node(e).rank}))),i=n.map(n.range(o+1),(function(){return[]}));var a=n.sortBy(r,(function(e){return t.node(e).rank}));return n.forEach(a,(function r(o){if(n.has(e,o))return;e[o]=!0;var a=t.node(o);i[a.rank].push(o),n.forEach(t.successors(o),r)})),i}},function(t,e,r){"use strict";var n=r(0);function o(t,e,r){for(var o=n.zipObject(r,n.map(r,(function(t,e){return e}))),i=n.flatten(n.map(e,(function(e){return n.sortBy(n.map(t.outEdges(e),(function(e){return{pos:o[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<r.length;)a<<=1;var u=2*a-1;a-=1;var s=n.map(new Array(u),(function(){return 0})),c=0;return n.forEach(i.forEach((function(t){var e=t.pos+a;s[e]+=t.weight;for(var r=0;e>0;)e%2&&(r+=s[e+1]),s[e=e-1>>1]+=t.weight;c+=t.weight*r}))),c}t.exports=function(t,e){for(var r=0,n=1;n<e.length;++n)r+=o(t,e[n-1],e[n]);return r}},function(t,e,r){var n=r(0),o=r(301),i=r(302),a=r(303);t.exports=function t(e,r,u,s){var c=e.children(r),f=e.node(r),h=f?f.borderLeft:void 0,l=f?f.borderRight:void 0,d={};h&&(c=n.filter(c,(function(t){return t!==h&&t!==l})));var p=o(e,c);n.forEach(p,(function(r){if(e.children(r.v).length){var o=t(e,r.v,u,s);d[r.v]=o,n.has(o,"barycenter")&&(i=r,a=o,n.isUndefined(i.barycenter)?(i.barycenter=a.barycenter,i.weight=a.weight):(i.barycenter=(i.barycenter*i.weight+a.barycenter*a.weight)/(i.weight+a.weight),i.weight+=a.weight))}var i,a}));var v=i(p,u);!function(t,e){n.forEach(t,(function(t){t.vs=n.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(v,d);var g=a(v,s);if(h&&(g.vs=n.flatten([h,g.vs,l],!0),e.predecessors(h).length)){var y=e.node(e.predecessors(h)[0]),m=e.node(e.predecessors(l)[0]);n.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+y.order+m.order)/(g.weight+2),g.weight+=2}return g}},function(t,e,r){var n=r(0);t.exports=function(t,e){return n.map(e,(function(e){var r=t.inEdges(e);if(r.length){var o=n.reduce(r,(function(e,r){var n=t.edge(r),o=t.node(r.v);return{sum:e.sum+n.weight*o.order,weight:e.weight+n.weight}}),{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}}return{v:e}}))}},function(t,e,r){"use strict";var n=r(0);t.exports=function(t,e){var r={};return n.forEach(t,(function(t,e){var o=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};n.isUndefined(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)})),n.forEach(e.edges(),(function(t){var e=r[t.v],o=r[t.w];n.isUndefined(e)||n.isUndefined(o)||(o.indegree++,e.out.push(r[t.w]))})),function(t){var e=[];function r(t){return function(e){e.merged||(n.isUndefined(e.barycenter)||n.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight);e.weight&&(r+=e.barycenter*e.weight,n+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function o(e){return function(r){r.in.push(e),0==--r.indegree&&t.push(r)}}for(;t.length;){var i=t.pop();e.push(i),n.forEach(i.in.reverse(),r(i)),n.forEach(i.out,o(i))}return n.map(n.filter(e,(function(t){return!t.merged})),(function(t){return n.pick(t,["vs","i","barycenter","weight"])}))}(n.filter(r,(function(t){return!t.indegree})))}},function(t,e,r){var n=r(0),o=r(4);function i(t,e,r){for(var o;e.length&&(o=n.last(e)).i<=r;)e.pop(),t.push(o.vs),r++;return r}t.exports=function(t,e){var r=o.partition(t,(function(t){return n.has(t,"barycenter")})),a=r.lhs,u=n.sortBy(r.rhs,(function(t){return-t.i})),s=[],c=0,f=0,h=0;a.sort((l=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:l?e.i-t.i:t.i-e.i})),h=i(s,u,h),n.forEach(a,(function(t){h+=t.vs.length,s.push(t.vs),c+=t.barycenter*t.weight,f+=t.weight,h=i(s,u,h)}));var l;var d={vs:n.flatten(s,!0)};f&&(d.barycenter=c/f,d.weight=f);return d}},function(t,e,r){var n=r(0),o=r(7).Graph;t.exports=function(t,e,r){var i=function(t){var e;for(;t.hasNode(e=n.uniqueId("_root")););return e}(t),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return n.forEach(t.nodes(),(function(o){var u=t.node(o),s=t.parent(o);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(a.setNode(o),a.setParent(o,s||i),n.forEach(t[r](o),(function(e){var r=e.v===o?e.w:e.v,i=a.edge(r,o),u=n.isUndefined(i)?0:i.weight;a.setEdge(r,o,{weight:t.edge(e).weight+u})})),n.has(u,"minRank")&&a.setNode(o,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))})),a}},function(t,e,r){var n=r(0);t.exports=function(t,e,r){var o,i={};n.forEach(r,(function(r){for(var n,a,u=t.parent(r);u;){if((n=t.parent(u))?(a=i[n],i[n]=u):(a=o,o=u),a&&a!==u)return void e.setEdge(a,u);u=n}}))}},function(t,e,r){"use strict";var n=r(0),o=r(4),i=r(307).positionX;t.exports=function(t){(function(t){var e=o.buildLayerMatrix(t),r=t.graph().ranksep,i=0;n.forEach(e,(function(e){var o=n.max(n.map(e,(function(e){return t.node(e).height})));n.forEach(e,(function(e){t.node(e).y=i+o/2})),i+=o+r}))})(t=o.asNonCompoundGraph(t)),n.forEach(i(t),(function(e,r){t.node(r).x=e}))}},function(t,e,r){"use strict";var n=r(0),o=r(7).Graph,i=r(4);function a(t,e){var r={};return n.reduce(e,(function(e,o){var i=0,a=0,u=e.length,c=n.last(o);return n.forEach(o,(function(e,f){var h=function(t,e){if(t.node(e).dummy)return n.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),l=h?t.node(h).order:u;(h||e===c)&&(n.forEach(o.slice(a,f+1),(function(e){n.forEach(t.predecessors(e),(function(n){var o=t.node(n),a=o.order;!(a<i||l<a)||o.dummy&&t.node(e).dummy||s(r,n,e)}))})),a=f+1,i=l)})),o})),r}function u(t,e){var r={};function o(e,o,i,a,u){var c;n.forEach(n.range(o,i),(function(o){c=e[o],t.node(c).dummy&&n.forEach(t.predecessors(c),(function(e){var n=t.node(e);n.dummy&&(n.order<a||n.order>u)&&s(r,e,c)}))}))}return n.reduce(e,(function(e,r){var i,a=-1,u=0;return n.forEach(r,(function(n,s){if("border"===t.node(n).dummy){var c=t.predecessors(n);c.length&&(i=t.node(c[0]).order,o(r,u,s,a,i),u=s,a=i)}o(r,u,r.length,i,e.length)})),r})),r}function s(t,e,r){if(e>r){var n=e;e=r,r=n}var o=t[e];o||(t[e]=o={}),o[r]=!0}function c(t,e,r){if(e>r){var o=e;e=r,r=o}return n.has(t[e],r)}function f(t,e,r,o){var i={},a={},u={};return n.forEach(e,(function(t){n.forEach(t,(function(t,e){i[t]=t,a[t]=t,u[t]=e}))})),n.forEach(e,(function(t){var e=-1;n.forEach(t,(function(t){var s=o(t);if(s.length)for(var f=((s=n.sortBy(s,(function(t){return u[t]}))).length-1)/2,h=Math.floor(f),l=Math.ceil(f);h<=l;++h){var d=s[h];a[t]===t&&e<u[d]&&!c(r,t,d)&&(a[d]=t,a[t]=i[t]=i[d],e=u[d])}}))})),{root:i,align:a}}function h(t,e,r,i,a){var u={},s=function(t,e,r,i){var a=new o,u=t.graph(),s=function(t,e,r){return function(o,i,a){var u,s=o.node(i),c=o.node(a),f=0;if(f+=s.width/2,n.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=-s.width/2;break;case"r":u=s.width/2}if(u&&(f+=r?u:-u),u=0,f+=(s.dummy?e:t)/2,f+=(c.dummy?e:t)/2,f+=c.width/2,n.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":u=c.width/2;break;case"r":u=-c.width/2}return u&&(f+=r?u:-u),u=0,f}}(u.nodesep,u.edgesep,i);return n.forEach(e,(function(e){var o;n.forEach(e,(function(e){var n=r[e];if(a.setNode(n),o){var i=r[o],u=a.edge(i,n);a.setEdge(i,n,Math.max(s(t,e,o),u||0))}o=e}))})),a}(t,e,r,a),c=a?"borderLeft":"borderRight";function f(t,e){for(var r=s.nodes(),n=r.pop(),o={};n;)o[n]?t(n):(o[n]=!0,r.push(n),r=r.concat(e(n))),n=r.pop()}return f((function(t){u[t]=s.inEdges(t).reduce((function(t,e){return Math.max(t,u[e.v]+s.edge(e))}),0)}),s.predecessors.bind(s)),f((function(e){var r=s.outEdges(e).reduce((function(t,e){return Math.min(t,u[e.w]-s.edge(e))}),Number.POSITIVE_INFINITY),n=t.node(e);r!==Number.POSITIVE_INFINITY&&n.borderType!==c&&(u[e]=Math.max(u[e],r))}),s.successors.bind(s)),n.forEach(i,(function(t){u[t]=u[r[t]]})),u}function l(t,e){return n.minBy(n.values(e),(function(e){var r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return n.forIn(e,(function(e,n){var i=function(t,e){return t.node(e).width}(t,n)/2;r=Math.max(e+i,r),o=Math.min(e-i,o)})),r-o}))}function d(t,e){var r=n.values(e),o=n.min(r),i=n.max(r);n.forEach(["u","d"],(function(r){n.forEach(["l","r"],(function(a){var u,s=r+a,c=t[s];if(c!==e){var f=n.values(c);(u="l"===a?o-n.min(f):i-n.max(f))&&(t[s]=n.mapValues(c,(function(t){return t+u})))}}))}))}function p(t,e){return n.mapValues(t.ul,(function(r,o){if(e)return t[e.toLowerCase()][o];var i=n.sortBy(n.map(t,o));return(i[1]+i[2])/2}))}t.exports={positionX:function(t){var e,r=i.buildLayerMatrix(t),o=n.merge(a(t,r),u(t,r)),s={};n.forEach(["u","d"],(function(i){e="u"===i?r:n.values(r).reverse(),n.forEach(["l","r"],(function(r){"r"===r&&(e=n.map(e,(function(t){return n.values(t).reverse()})));var a=("u"===i?t.predecessors:t.successors).bind(t),u=f(t,e,o,a),c=h(t,e,u.root,u.align,"r"===r);"r"===r&&(c=n.mapValues(c,(function(t){return-t}))),s[i+r]=c}))}));var c=l(t,s);return d(s,c),p(s,t.graph().align)},findType1Conflicts:a,findType2Conflicts:u,addConflict:s,hasConflict:c,verticalAlignment:f,horizontalCompaction:h,alignCoordinates:d,findSmallestWidthAlignment:l,balance:p}},function(t,e,r){var n=r(0),o=r(4),i=r(7).Graph;t.exports={debugOrdering:function(t){var e=o.buildLayerMatrix(t),r=new i({compound:!0,multigraph:!0}).setGraph({});return n.forEach(t.nodes(),(function(e){r.setNode(e,{label:e}),r.setParent(e,"layer"+t.node(e).rank)})),n.forEach(t.edges(),(function(t){r.setEdge(t.v,t.w,{},t.name)})),n.forEach(e,(function(t,e){var o="layer"+e;r.setNode(o,{rank:"same"}),n.reduce(t,(function(t,e){return r.setEdge(t,e,{style:"invis"}),e}))})),r}}},function(t,e){t.exports="0.8.5"},function(t,e,r){var n=r(311),o=r(312),i={};for(var a in n)n.hasOwnProperty(a)&&(i[n[a]]=a);var u=t.exports={to:{},get:{}};function s(t,e,r){return Math.min(Math.max(e,t),r)}function c(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}u.get=function(t){var e,r;switch(t.substring(0,3).toLowerCase()){case"hsl":e=u.get.hsl(t),r="hsl";break;case"hwb":e=u.get.hwb(t),r="hwb";break;default:e=u.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},u.get.rgb=function(t){if(!t)return null;var e,r,o,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=e[2],e=e[1],r=0;r<3;r++){var a=2*r;i[r]=parseInt(e.slice(a,a+2),16)}o&&(i[3]=parseInt(o,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(o=(e=e[1])[3],r=0;r<3;r++)i[r]=parseInt(e[r]+e[r],16);o&&(i[3]=parseInt(o+o,16)/255)}else if(e=t.match(/^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/)){for(r=0;r<3;r++)i[r]=parseInt(e[r+1],0);e[4]&&(i[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/)))return(e=t.match(/(\\D+)/))?"transparent"===e[1]?[0,0,0,0]:(i=n[e[1]])?(i[3]=1,i):null:null;for(r=0;r<3;r++)i[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(i[3]=parseFloat(e[4]))}for(r=0;r<3;r++)i[r]=s(i[r],0,255);return i[3]=s(i[3],0,1),i},u.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\\(\\s*([+-]?(?:\\d*\\.)?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])+360)%360,s(parseFloat(e[2]),0,100),s(parseFloat(e[3]),0,100),s(isNaN(r)?1:r,0,1)]}return null},u.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\\(\\s*([+-]?\\d*[\\.]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/);if(e){var r=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,s(parseFloat(e[2]),0,100),s(parseFloat(e[3]),0,100),s(isNaN(r)?1:r,0,1)]}return null},u.to.hex=function(){var t=o(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},u.to.rgb=function(){var t=o(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},u.to.rgb.percent=function(){var t=o(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},u.to.hsl=function(){var t=o(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},u.to.hwb=function(){var t=o(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},u.to.keyword=function(t){return i[t.slice(0,3)]}},function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,r){"use strict";var n=r(313),o=Array.prototype.concat,i=Array.prototype.slice,a=t.exports=function(t){for(var e=[],r=0,a=t.length;r<a;r++){var u=t[r];n(u)?e=o.call(e,i.call(u)):e.push(u)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},function(t,e){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=r(128),i=r(316),a={};Object.keys(o).forEach((function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:o[t].channels}),Object.defineProperty(a[t],"labels",{value:o[t].labels});var e=i(t);Object.keys(e).forEach((function(r){var o=e[r];a[t][r]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var r=t(e);if("object"===n(r))for(var o=r.length,i=0;i<o;i++)r[i]=Math.round(r[i]);return r};return"conversion"in t&&(e.conversion=t.conversion),e}(o),a[t][r].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(o)}))})),t.exports=a},function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,r){var n=r(128);function o(t){var e=function(){for(var t={},e=Object.keys(n),r=e.length,o=0;o<r;o++)t[e[o]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var o=r.pop(),i=Object.keys(n[o]),a=i.length,u=0;u<a;u++){var s=i[u],c=e[s];-1===c.distance&&(c.distance=e[o].distance+1,c.parent=o,r.unshift(s))}return e}function i(t,e){return function(r){return e(t(r))}}function a(t,e){for(var r=[e[t].parent,t],o=n[e[t].parent][t],a=e[t].parent;e[a].parent;)r.unshift(e[a].parent),o=i(n[e[a].parent][a],o),a=e[a].parent;return o.conversion=r,o}t.exports=function(t){for(var e=o(t),r={},n=Object.keys(e),i=n.length,u=0;u<i;u++){var s=n[u];null!==e[s].parent&&(r[s]=a(s,e))}return r}},function(t,e,r){"use strict";r.r(e);var n=r(53),o=r.n(n);\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function a(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}Object.create;Object.create;var u=r(30),s=r.n(u),c=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.positions=[],this.destroyed=!1}return t.prototype.init=function(t){this.nodes=t.nodes||[],this.edges=t.edges||[],this.combos=t.combos||[]},t.prototype.execute=function(){},t.prototype.layout=function(t){this.init(t),this.execute()},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(t){s()(this,t)},t.prototype.destroy=function(){this.positions=null,this.nodes=null,this.edges=null,this.destroyed=!0},t}(),f={registerLayout:function(t,e,r){if(void 0===r&&(r=c),!e)throw new Error("please specify handler for this layout: "+t);var n=function(t){function r(r){var n=t.call(this)||this,i=n,a={},u=i.getDefaultCfg();return s()(a,u,e,r),o()(a,(function(t,e){i[e]=t})),n}return a(r,t),r}(r);f[t]=n}},h=f,l=r(3);l.translate=function(t,e,r){var n=new Array(9);return l.fromTranslation(n,r),l.multiply(t,n,e)},l.rotate=function(t,e,r){var n=new Array(9);return l.fromRotation(n,r),l.multiply(t,n,e)},l.scale=function(t,e,r){var n=new Array(9);return l.fromScaling(n,r),l.multiply(t,n,e)},l.transform=function(t,e){for(var r=[].concat(t),n=0,o=e.length;n<o;n++){var i=e[n];switch(i[0]){case"t":l.translate(r,r,[i[1],i[2]]);break;case"s":l.scale(r,r,[i[1],i[2]]);break;case"r":l.rotate(r,r,i[1])}}return r};var d=r(9),p={}.toString,v=function(t,e){return p.call(t)==="[object "+e+"]"},g=function(t){return v(t,"Function")},y=function(t){return Array.isArray?Array.isArray(t):v(t,"Array")};function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var b=function(t){var e=m(t);return null!==t&&"object"===e||"function"===e};var w=function(t,e){if(t)if(y(t))for(var r=0,n=t.length;r<n&&!1!==e(t[r],r);r++);else if(b(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break};Object.keys;var x=Array.prototype;x.splice,x.indexOf,Array.prototype.splice;Object.prototype.hasOwnProperty;var M=function(t,e,r){return t<e?e:t>r?r:t},k=function(t){return v(t,"Number")};Number.isInteger&&Number.isInteger;Math.PI,parseInt,Math.PI,Object.values;Object.prototype;function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var S=function t(e){if("object"!==_(e)||null===e)return e;var r;if(y(e)){r=[];for(var n=0,o=e.length;n<o;n++)"object"===_(e[n])&&null!=e[n]?r[n]=t(e[n]):r[n]=e[n]}else for(var i in r={},e)"object"===_(e[i])&&null!=e[i]?r[i]=t(e[i]):r[i]=e[i];return r};Object.prototype.hasOwnProperty;Object.prototype.hasOwnProperty;!function(){function t(){this.map={}}t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var r=this.map[t];return void 0===r?e:r},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length}}();d.angle=function(t,e){var r=d.dot(t,e)/(d.length(t)*d.length(e));return Math.acos(M(r,-1,1))},d.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},d.angleTo=function(t,e,r){var n=d.angle(t,e),o=d.direction(t,e)>=0;return r?o?2*Math.PI-n:n:o?n:2*Math.PI-n},d.vertical=function(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t};r(129);var E=r(2),j=r.n(E),A=function(t){for(var e=[],r=t.length,n=0;n<r;n+=1){e[n]=[];for(var o=0;o<r;o+=1)n===o?e[n][o]=0:0!==t[n][o]&&t[n][o]?e[n][o]=t[n][o]:e[n][o]=1/0}for(var i=0;i<r;i+=1)for(n=0;n<r;n+=1)for(o=0;o<r;o+=1)e[n][o]>e[n][i]+e[i][o]&&(e[n][o]=e[n][i]+e[i][o]);return e},O=function(t,e){var r=t.nodes,n=t.edges,o=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach((function(t,e){i[t.id]=e;o.push([])})),n&&n.forEach((function(t){var r=t.source,n=t.target,a=i[r],u=i[n];o[a][u]=1,e||(o[u][a]=1)})),o},N=function(t,e,r){for(var n=[],o=0;o<t;o++)n[o]=0;return r.forEach((function(t){t.source&&(n[e[t.source]]+=1),t.target&&(n[e[t.target]]+=1)})),n};!function(){function t(t,e,r,n){this.x1=t,this.y1=e,this.x2=r,this.y2=n}t.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),r=Math.max(this.x1,this.x2),n=Math.max(this.y1,this.y2);return{x:t,y:e,minX:t,minY:e,maxX:r,maxY:n,width:r-t,height:n-e}}}();function I(t,e){return t.degree<e.degree?-1:t.degree>e.degree?1:0}var R=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.radius=null,e.startRadius=null,e.endRadius=null,e.startAngle=0,e.endAngle=2*Math.PI,e.clockwise=!0,e.divisions=1,e.ordering=null,e.angleRatio=1,e.nodes=[],e.edges=[],e.nodeMap={},e.degrees=[],e.width=300,e.height=300,e}return a(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t=this.nodes,e=this.edges,r=t.length,n=this.center;if(0!==r){if(1===r)return t[0].x=n[0],void(t[0].y=n[1]);var o=this.radius,i=this.startRadius,a=this.endRadius,u=this.divisions,s=this.startAngle,c=this.endAngle,f=(c-s)/r,h={};t.forEach((function(t,e){h[t.id]=e})),this.nodeMap=h;var l=N(t.length,h,e);this.degrees=l,this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight),o||i||a?!i&&a?i=a:i&&!a&&(a=i):o=this.height>this.width?this.width/2:this.height/2;var d=f*this.angleRatio;this.astep=d;var p=this.ordering,v=[];v="topology"===p?this.topologyOrdering():"topology-directed"===p?this.topologyOrdering(!0):"degree"===p?this.degreeOrdering():t;for(var g=this.clockwise,y=Math.ceil(r/u),m=0;m<r;++m){var b=o;b||null===i||null===a||(b=i+m*(a-i)/(r-1)),b||(b=10+100*m/(r-1));var w=s+m%y*d+2*Math.PI/u*Math.floor(m/y);g||(w=c-m%y*d-2*Math.PI/u*Math.floor(m/y)),v[m].x=n[0]+Math.cos(w)*b,v[m].y=n[1]+Math.sin(w)*b,v[m].weight=l[m]}}},e.prototype.topologyOrdering=function(t){void 0===t&&(t=!1);var e=this.degrees,r=this.edges,n=this.nodes,o=S(n),i=this.nodeMap,a=[o[0]],u=[n[0]],s=[],c=n.length;s[0]=!0,function(t,e,r,n){t.forEach((function(e,r){t[r].children=[],t[r].parent=[]})),n?e.forEach((function(e){var n=0;e.source&&(n=r[e.source]);var o=0;e.target&&(o=r[e.target]),t[n].children.push(t[o].id),t[o].parent.push(t[n].id)})):e.forEach((function(e){var n=0;e.source&&(n=r[e.source]);var o=0;e.target&&(o=r[e.target]),t[n].children.push(t[o].id),t[o].children.push(t[n].id)}))}(o,r,i,t);var f=0;return o.forEach((function(t,h){if(0!==h)if(h!==c-1&&e[h]===e[h+1]&&!function(t,e,r){for(var n=r.length,o=0;o<n;o++)if(t.id===r[o].source&&e.id===r[o].target||e.id===r[o].source&&t.id===r[o].target)return!0;return!1}(a[f],t,r)||!0===s[h]){for(var l=a[f].children,d=!1,p=0;p<l.length;p++){var v=i[l[p]];if(e[v]===e[h]&&!0!==s[v]){a.push(o[v]),u.push(n[i[o[v].id]]),s[v]=!0,d=!0;break}}for(var g=0;!d&&(s[g]||(a.push(o[g]),u.push(n[i[o[g].id]]),s[g]=!0,d=!0),++g!==c););}else a.push(t),u.push(n[i[t.id]]),s[h]=!0,f++})),u},e.prototype.degreeOrdering=function(){var t=this.nodes,e=[],r=this.degrees;return t.forEach((function(t,n){t.degree=r[n],e.push(t)})),e.sort(I),e},e}(c),P=r(11),C=r.n(P),z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.nodeSize=30,e.minNodeSpacing=10,e.preventOverlap=!1,e.equidistant=!1,e.startAngle=1.5*Math.PI,e.clockwise=!0,e.sortBy="degree",e.nodes=[],e.edges=[],e.width=300,e.height=300,e}return a(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],nodeSize:30,minNodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var t=this,e=t.nodes,r=t.edges,n=e.length,o=t.center;if(0!==n){if(1===n)return e[0].x=o[0],void(e[0].y=o[1]);var i,a=[];i=j()(t.nodeSize)?Math.max(t.nodeSize[0],t.nodeSize[1]):t.nodeSize,e.forEach((function(t){a.push(t);var e=i;j()(t.size)?e=Math.max(t.size[0],t.size[1]):k(t.size)&&(e=t.size),i=Math.max(i,e)})),t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.clockwise=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise;var u={},s={};if(a.forEach((function(t,e){u[t.id]=t,s[t.id]=e})),!("degree"!==t.sortBy&&C()(t.sortBy)&&void 0!==a[0][t.sortBy]||(t.sortBy="degree",k(e[0].degree)))){var c=N(e.length,s,r);a.forEach((function(t,e){t.degree=c[e]}))}a.sort((function(e,r){return r[t.sortBy]-e[t.sortBy]})),t.maxValueNode=a[0],t.maxLevelDiff=t.maxLevelDiff||t.maxValueNode[t.sortBy]/4;var f=[[]],h=f[0];a.forEach((function(e){if(h.length>0){var r=Math.abs(h[0][t.sortBy]-e[t.sortBy]);t.maxLevelDiff&&r>=t.maxLevelDiff&&(h=[],f.push(h))}h.push(e)}));var l=i+t.minNodeSpacing;if(!t.preventOverlap){var d=f.length>0&&f[0].length>1,p=(Math.min(t.width,t.height)/2-l)/(f.length+(d?1:0));l=Math.min(l,p)}var v=0;if(f.forEach((function(e){var r=t.sweep;void 0===r&&(r=2*Math.PI-2*Math.PI/e.length);var n=e.dTheta=r/Math.max(1,e.length-1);if(e.length>1&&t.preventOverlap){var o=Math.cos(n)-Math.cos(0),i=Math.sin(n)-Math.sin(0),a=Math.sqrt(l*l/(o*o+i*i));v=Math.max(a,v)}e.r=v,v+=l})),t.equidistant){for(var g=0,y=0,m=0;m<f.length;m++){var b=f[m].r-y;g=Math.max(g,b)}y=0,f.forEach((function(t,e){0===e&&(y=t.r),t.r=y,y+=g}))}f.forEach((function(e){var r=e.dTheta,n=e.r;e.forEach((function(e,i){var a=t.startAngle+(t.clockwise?1:-1)*r*i;e.x=o[0]+n*Math.cos(a),e.y=o[1]+n*Math.sin(a)}))}))}},e}(c),F=r(74),T=r.n(F),D=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rankdir="TB",e.nodesep=50,e.ranksep=50,e.controlPoints=!1,e.sortByCombo=!1,e}return a(e,t),e.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1}},e.prototype.execute=function(){var t=this,e=t.nodes,r=t.nodeSize,n=t.rankdir;if(e){var o,i=t.edges||[],a=new T.a.graphlib.Graph;o=r?j()(r)?function(){return r}:function(){return[r,r]}:function(t){return t.size?j()(t.size)?t.size:[t.size,t.size]:[40,40]};var u,s=q(t.nodesepFunc,t.nodesep,50),c=q(t.ranksepFunc,t.ranksep,50);"LR"!==n&&"RL"!==n||(s=q(t.ranksepFunc,t.ranksep,50),c=q(t.nodesepFunc,t.nodesep,50)),a.setDefaultEdgeLabel((function(){return{}})),a.setGraph(t),e.forEach((function(t){var e=o(t),r=c(t),n=s(t),i=e[0]+2*n,u=e[1]+2*r;a.setNode(t.id,{width:i,height:u})})),i.forEach((function(t){a.setEdge(t.source,t.target,{weight:t.weight||1})})),T.a.layout(a),a.nodes().forEach((function(t){u=a.node(t);var r=e.findIndex((function(e){return e.id===t}));e[r].x=u.x,e[r].y=u.y})),a.edges().forEach((function(e){u=a.edge(e);var r=i.findIndex((function(t){return t.source===e.v&&t.target===e.w}));t.controlPoints&&"loop"!==i[r].type&&"loop"!==i[r].shape&&(i[r].controlPoints=u.points.slice(1,u.points.length-1))})),t.sortByCombo&&t.sortLevel("comboId")}},e.prototype.sortLevel=function(t){var e=this.nodes,r={};e.forEach((function(t){r[t.y]||(r[t.y]={y:t.y,nodes:[]}),r[t.y].nodes.push(t)})),Object.keys(r).forEach((function(e){var n=r[e].nodes,o=n.length,i={};if(n.forEach((function(t){var e=t.comboId;i[e]||(i[e]={x:0,y:0,count:0}),i[e].x+=t.x,i[e].y+=t.y,i[e].count++})),Object.keys(i).forEach((function(t){i[t].x/=i[t].count,i[t].y/=i[t].count})),1!==o){var a=n.sort((function(t,e){return t.x-e.x})),u=a[0].x,s=(a[o-1].x-u)/(o-1);n.sort((function(e,r){var n=e[t]||"undefined",o=r[t]||"undefined";return n<o?-1:n>o?1:0})).forEach((function(t,e){t.x=u+e*s}))}}))},e}(c);function q(t,e,r){return t||(k(e)?function(){return e}:function(){return r})}function L(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var o,i,a,u,s,c,f,h,l,d=t._root,p={data:n},v=t._x0,g=t._y0,y=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=e>=(i=(v+y)/2))?v=i:y=i,(f=r>=(a=(g+m)/2))?g=a:m=a,o=d,!(d=d[h=f<<1|c]))return o[h]=p,t;if(u=+t._x.call(null,d.data),s=+t._y.call(null,d.data),e===u&&r===s)return p.next=d,o?o[h]=p:t._root=p,t;do{o=o?o[h]=new Array(4):t._root=new Array(4),(c=e>=(i=(v+y)/2))?v=i:y=i,(f=r>=(a=(g+m)/2))?g=a:m=a}while((h=f<<1|c)==(l=(s>=a)<<1|u>=i));return o[l]=d,o[h]=p,t}var B=function(t,e,r,n,o){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=o};function V(t){return t[0]}function U(t){return t[1]}function Y(t,e,r){var n=new H(null==e?V:e,null==r?U:r,NaN,NaN,NaN,NaN);return null==t?n:n.addAll(t)}function H(t,e,r,n,o,i){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=o,this._y1=i,this._root=void 0}function W(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var G=Y.prototype=H.prototype;G.copy=function(){var t,e,r=new H(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=W(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var o=0;o<4;++o)(e=n.source[o])&&(e.length?t.push({source:e,target:n.target[o]=new Array(4)}):n.target[o]=W(e));return r},G.add=function(t){var e=+this._x.call(null,t),r=+this._y.call(null,t);return L(this.cover(e,r),e,r,t)},G.addAll=function(t){var e,r,n,o,i=t.length,a=new Array(i),u=new Array(i),s=1/0,c=1/0,f=-1/0,h=-1/0;for(r=0;r<i;++r)isNaN(n=+this._x.call(null,e=t[r]))||isNaN(o=+this._y.call(null,e))||(a[r]=n,u[r]=o,n<s&&(s=n),n>f&&(f=n),o<c&&(c=o),o>h&&(h=o));if(s>f||c>h)return this;for(this.cover(s,c).cover(f,h),r=0;r<i;++r)L(this,a[r],u[r],t[r]);return this},G.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,o=this._x1,i=this._y1;if(isNaN(r))o=(r=Math.floor(t))+1,i=(n=Math.floor(e))+1;else{for(var a,u,s=o-r||1,c=this._root;r>t||t>=o||n>e||e>=i;)switch(u=(e<n)<<1|t<r,(a=new Array(4))[u]=c,c=a,s*=2,u){case 0:o=r+s,i=n+s;break;case 1:r=o-s,i=n+s;break;case 2:o=r+s,n=i-s;break;case 3:r=o-s,n=i-s}this._root&&this._root.length&&(this._root=c)}return this._x0=r,this._y0=n,this._x1=o,this._y1=i,this},G.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},G.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},G.find=function(t,e,r){var n,o,i,a,u,s,c,f=this._x0,h=this._y0,l=this._x1,d=this._y1,p=[],v=this._root;for(v&&p.push(new B(v,f,h,l,d)),null==r?r=1/0:(f=t-r,h=e-r,l=t+r,d=e+r,r*=r);s=p.pop();)if(!(!(v=s.node)||(o=s.x0)>l||(i=s.y0)>d||(a=s.x1)<f||(u=s.y1)<h))if(v.length){var g=(o+a)/2,y=(i+u)/2;p.push(new B(v[3],g,y,a,u),new B(v[2],o,y,g,u),new B(v[1],g,i,a,y),new B(v[0],o,i,g,y)),(c=(e>=y)<<1|t>=g)&&(s=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=s)}else{var m=t-+this._x.call(null,v.data),b=e-+this._y.call(null,v.data),w=m*m+b*b;if(w<r){var x=Math.sqrt(r=w);f=t-x,h=e-x,l=t+x,d=e+x,n=v.data}}return n},G.remove=function(t){if(isNaN(i=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,r,n,o,i,a,u,s,c,f,h,l,d=this._root,p=this._x0,v=this._y0,g=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((c=i>=(u=(p+g)/2))?p=u:g=u,(f=a>=(s=(v+y)/2))?v=s:y=s,e=d,!(d=d[h=f<<1|c]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(r=e,l=h)}for(;d.data!==t;)if(n=d,!(d=d.next))return this;return(o=d.next)&&delete d.next,n?(o?n.next=o:delete n.next,this):e?(o?e[h]=o:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(r?r[l]=d:this._root=d),this):(this._root=o,this)},G.removeAll=function(t){for(var e=0,r=t.length;e<r;++e)this.remove(t[e]);return this},G.root=function(){return this._root},G.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},G.visit=function(t){var e,r,n,o,i,a,u=[],s=this._root;for(s&&u.push(new B(s,this._x0,this._y0,this._x1,this._y1));e=u.pop();)if(!t(s=e.node,n=e.x0,o=e.y0,i=e.x1,a=e.y1)&&s.length){var c=(n+i)/2,f=(o+a)/2;(r=s[3])&&u.push(new B(r,c,f,i,a)),(r=s[2])&&u.push(new B(r,n,f,c,a)),(r=s[1])&&u.push(new B(r,c,o,i,f)),(r=s[0])&&u.push(new B(r,n,o,c,f))}return this},G.visitAfter=function(t){var e,r=[],n=[];for(this._root&&r.push(new B(this._root,this._x0,this._y0,this._x1,this._y1));e=r.pop();){var o=e.node;if(o.length){var i,a=e.x0,u=e.y0,s=e.x1,c=e.y1,f=(a+s)/2,h=(u+c)/2;(i=o[0])&&r.push(new B(i,a,u,f,h)),(i=o[1])&&r.push(new B(i,f,u,s,h)),(i=o[2])&&r.push(new B(i,a,h,f,c)),(i=o[3])&&r.push(new B(i,f,h,s,c))}n.push(e)}for(;e=n.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},G.x=function(t){return arguments.length?(this._x=t,this):this._x},G.y=function(t){return arguments.length?(this._y=t,this):this._y};var $=function(t){return function(){return t}},X=function(t){return 1e-6*(t()-.5)},J={value:function(){}};function Q(){for(var t,e=0,r=arguments.length,n={};e<r;++e){if(!(t=arguments[e]+"")||t in n||/[\\s.]/.test(t))throw new Error("illegal type: "+t);n[t]=[]}return new K(n)}function K(t){this._=t}function Z(t,e){return t.trim().split(/^|\\s+/).map((function(t){var r="",n=t.indexOf(".");if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}}))}function tt(t,e){for(var r,n=0,o=t.length;n<o;++n)if((r=t[n]).name===e)return r.value}function et(t,e,r){for(var n=0,o=t.length;n<o;++n)if(t[n].name===e){t[n]=J,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=r&&t.push({name:e,value:r}),t}K.prototype=Q.prototype={constructor:K,on:function(t,e){var r,n=this._,o=Z(t+"",n),i=-1,a=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++i<a;)if(r=(t=o[i]).type)n[r]=et(n[r],t.name,e);else if(null==e)for(r in n)n[r]=et(n[r],t.name,null);return this}for(;++i<a;)if((r=(t=o[i]).type)&&(r=tt(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new K(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,o=new Array(r),i=0;i<r;++i)o[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=0,r=(n=this._[t]).length;i<r;++i)n[i].value.apply(e,o)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],o=0,i=n.length;o<i;++o)n[o].value.apply(e,r)}};var rt=Q;function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ot,it,at=0,ut=0,st=0,ct=0,ft=0,ht=0,lt="object"===("undefined"==typeof performance?"undefined":nt(performance))&&performance.now?performance:Date,dt="object"===("undefined"==typeof window?"undefined":nt(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function pt(){return ft||(dt(vt),ft=lt.now()+ht)}function vt(){ft=0}function gt(){this._call=this._time=this._next=null}function yt(t,e,r){var n=new gt;return n.restart(t,e,r),n}function mt(){ft=(ct=lt.now())+ht,at=ut=0;try{!function(){pt(),++at;for(var t,e=ot;e;)(t=ft-e._time)>=0&&e._call.call(null,t),e=e._next;--at}()}finally{at=0,function(){var t,e,r=ot,n=1/0;for(;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:ot=e);it=t,wt(n)}(),ft=0}}function bt(){var t=lt.now(),e=t-ct;e>1e3&&(ht-=e,ct=t)}function wt(t){at||(ut&&(ut=clearTimeout(ut)),t-ft>24?(t<1/0&&(ut=setTimeout(mt,t-lt.now()-ht)),st&&(st=clearInterval(st))):(st||(ct=lt.now(),st=setInterval(bt,1e3)),at=1,dt(mt)))}gt.prototype=yt.prototype={constructor:gt,restart:function(t,e,r){if("function"!=typeof t)throw new TypeError("callback is not a function");r=(null==r?pt():+r)+(null==e?0:+e),this._next||it===this||(it?it._next=this:ot=this,it=this),this._call=t,this._time=r,wt()},stop:function(){this._call&&(this._call=null,this._time=1/0,wt())}};function xt(t){return t.x}function Mt(t){return t.y}var kt=Math.PI*(3-Math.sqrt(5)),_t=function(t){var e,r,n=1,o=.001,i=1-Math.pow(o,1/300),a=0,u=.6,s=new Map,c=yt(l),f=rt("tick","end"),h=(r=1,function(){return(r=(1664525*r+1013904223)%4294967296)/4294967296});function l(){d(),f.call("tick",e),n<o&&(c.stop(),f.call("end",e))}function d(r){var o,c,f=t.length;void 0===r&&(r=1);for(var h=0;h<r;++h)for(n+=(a-n)*i,s.forEach((function(t){t(n)})),o=0;o<f;++o)null==(c=t[o]).fx?c.x+=c.vx*=u:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=u:(c.y=c.fy,c.vy=0);return e}function p(){for(var e,r=0,n=t.length;r<n;++r){if((e=t[r]).index=r,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var o=10*Math.sqrt(.5+r),i=r*kt;e.x=o*Math.cos(i),e.y=o*Math.sin(i)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function v(e){return e.initialize&&e.initialize(t,h),e}return null==t&&(t=[]),p(),e={tick:d,restart:function(){return c.restart(l),e},stop:function(){return c.stop(),e},nodes:function(r){return arguments.length?(t=r,p(),s.forEach(v),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(a=+t,e):a},velocityDecay:function(t){return arguments.length?(u=1-t,e):1-u},randomSource:function(t){return arguments.length?(h=t,s.forEach(v),e):h},force:function(t,r){return arguments.length>1?(null==r?s.delete(t):s.set(t,v(r)),e):s.get(t)},find:function(e,r,n){var o,i,a,u,s,c=0,f=t.length;for(null==n?n=1/0:n*=n,c=0;c<f;++c)(a=(o=e-(u=t[c]).x)*o+(i=r-u.y)*i)<n&&(s=u,n=a);return s},on:function(t,r){return arguments.length>1?(f.on(t,r),e):f.on(t)}}},St=function(){var t,e,r,n,o,i=$(-30),a=1,u=1/0,s=.81;function c(r){var o,i=t.length,a=Y(t,xt,Mt).visitAfter(h);for(n=r,o=0;o<i;++o)e=t[o],a.visit(l)}function f(){if(t){var e,r,n=t.length;for(o=new Array(n),e=0;e<n;++e)r=t[e],o[r.index]=+i(r,e,t)}}function h(t){var e,r,n,i,a,u=0,s=0;if(t.length){for(n=i=a=0;a<4;++a)(e=t[a])&&(r=Math.abs(e.value))&&(u+=e.value,s+=r,n+=r*e.x,i+=r*e.y);t.x=n/s,t.y=i/s}else{(e=t).x=e.data.x,e.y=e.data.y;do{u+=o[e.data.index]}while(e=e.next)}t.value=u}function l(t,i,c,f){if(!t.value)return!0;var h=t.x-e.x,l=t.y-e.y,d=f-i,p=h*h+l*l;if(d*d/s<p)return p<u&&(0===h&&(p+=(h=X(r))*h),0===l&&(p+=(l=X(r))*l),p<a&&(p=Math.sqrt(a*p)),e.vx+=h*t.value*n/p,e.vy+=l*t.value*n/p),!0;if(!(t.length||p>=u)){(t.data!==e||t.next)&&(0===h&&(p+=(h=X(r))*h),0===l&&(p+=(l=X(r))*l),p<a&&(p=Math.sqrt(a*p)));do{t.data!==e&&(d=o[t.data.index]*n/p,e.vx+=h*d,e.vy+=l*d)}while(t=t.next)}}return c.initialize=function(e,n){t=e,r=n,f()},c.strength=function(t){return arguments.length?(i="function"==typeof t?t:$(+t),f(),c):i},c.distanceMin=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c.distanceMax=function(t){return arguments.length?(u=t*t,c):Math.sqrt(u)},c.theta=function(t){return arguments.length?(s=t*t,c):Math.sqrt(s)},c};function Et(t){return(Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jt(t){return t.index}function At(t,e){var r=t.get(e);if(!r)throw new Error("node not found: "+e);return r}var Ot=function(t){var e,r,n,o,i,a,u=jt,s=function(t){return 1/Math.min(o[t.source.index],o[t.target.index])},c=$(30),f=1;function h(n){for(var o=0,u=t.length;o<f;++o)for(var s,c,h,l,d,p,v,g=0;g<u;++g)c=(s=t[g]).source,l=(h=s.target).x+h.vx-c.x-c.vx||X(a),d=h.y+h.vy-c.y-c.vy||X(a),l*=p=((p=Math.sqrt(l*l+d*d))-r[g])/p*n*e[g],d*=p,h.vx-=l*(v=i[g]),h.vy-=d*v,c.vx+=l*(v=1-v),c.vy+=d*v}function l(){if(n){var a,s,c=n.length,f=t.length,h=new Map(n.map((function(t,e){return[u(t,e,n),t]})));for(a=0,o=new Array(c);a<f;++a)(s=t[a]).index=a,"object"!==Et(s.source)&&(s.source=At(h,s.source)),"object"!==Et(s.target)&&(s.target=At(h,s.target)),o[s.source.index]=(o[s.source.index]||0)+1,o[s.target.index]=(o[s.target.index]||0)+1;for(a=0,i=new Array(f);a<f;++a)s=t[a],i[a]=o[s.source.index]/(o[s.source.index]+o[s.target.index]);e=new Array(f),d(),r=new Array(f),p()}}function d(){if(n)for(var r=0,o=t.length;r<o;++r)e[r]=+s(t[r],r,t)}function p(){if(n)for(var e=0,o=t.length;e<o;++e)r[e]=+c(t[e],e,t)}return null==t&&(t=[]),h.initialize=function(t,e){n=t,a=e,l()},h.links=function(e){return arguments.length?(t=e,l(),h):t},h.id=function(t){return arguments.length?(u=t,h):u},h.iterations=function(t){return arguments.length?(f=+t,h):f},h.strength=function(t){return arguments.length?(s="function"==typeof t?t:$(+t),d(),h):s},h.distance=function(t){return arguments.length?(c="function"==typeof t?t:$(+t),p(),h):c},h};function Nt(t){return t.x+t.vx}function It(t){return t.y+t.vy}var Rt=function(t){var e,r,n,o=1,i=1;function a(){for(var t,a,s,c,f,h,l,d=e.length,p=0;p<i;++p)for(a=Y(e,Nt,It).visitAfter(u),t=0;t<d;++t)s=e[t],h=r[s.index],l=h*h,c=s.x+s.vx,f=s.y+s.vy,a.visit(v);function v(t,e,r,i,a){var u=t.data,d=t.r,p=h+d;if(!u)return e>c+p||i<c-p||r>f+p||a<f-p;if(u.index>s.index){var v=c-u.x-u.vx,g=f-u.y-u.vy,y=v*v+g*g;y<p*p&&(0===v&&(y+=(v=X(n))*v),0===g&&(y+=(g=X(n))*g),y=(p-(y=Math.sqrt(y)))/y*o,s.vx+=(v*=y)*(p=(d*=d)/(l+d)),s.vy+=(g*=y)*p,u.vx-=v*(p=1-p),u.vy-=g*p)}}}function u(t){if(t.data)return t.r=r[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function s(){if(e){var n,o,i=e.length;for(r=new Array(i),n=0;n<i;++n)o=e[n],r[o.index]=+t(o,n,e)}}return"function"!=typeof t&&(t=$(null==t?1:+t)),a.initialize=function(t,r){e=t,n=r,s()},a.iterations=function(t){return arguments.length?(i=+t,a):i},a.strength=function(t){return arguments.length?(o=+t,a):o},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:$(+e),s(),a):t},a};function Pt(){function t(t){return function(){return t}}var e,r=function(t){return t.cluster},n=t(1),o=t(-1),i=t(100),a=t(.1),u=[0,0],s=[],c={},f=[],h=100,l=100,d={none:{x:0,y:0}},p=[],v="force",g=!0,y=.1;function m(t){if(!g)return m;e.tick(),w();for(var n=0,o=s.length,i=void 0,a=t*y;n<o;++n)(i=s[n]).vx+=(d[r(i)].x-i.x)*a,i.vy+=(d[r(i)].y-i.y)*a}function b(){s&&function(){if(!s||!s.length)return;if(void 0===r(s[0]))throw Error("Couldnt find the grouping attribute for the nodes. Make sure to set it up with forceInABox.groupBy(\'clusterAttr\') before calling .links()");var t=(d=[],v=[],g={},y=[],u=function(t){var e={};return t.forEach((function(t){var n=r(t);e[n]||(e[n]={count:0,sumforceNodeSize:0})})),t.forEach((function(t){var o=r(t),i=n(t),a=e[o];a.count=a.count+1,a.sumforceNodeSize=a.sumforceNodeSize+Math.PI*(i*i)*1.3,e[o]=a})),e}(s),y=function(t){var e={},n=[];return t.forEach((function(t){var n=function(t){var e=r(c[t.source]),n=r(c[t.target]);return e<=n?e+"~"+n:n+"~"+e}(t),o=0;void 0!==e[n]&&(o=e[n]),o+=1,e[n]=o})),Object.entries(e).forEach((function(t){var e=t[0],r=t[1],o=e.split("~")[0],i=e.split("~")[1];void 0!==o&&void 0!==i&&n.push({source:o,target:i,count:r})})),n}(f),Object.keys(u).forEach((function(t,e){var r=u[t];d.push({id:t,size:r.count,r:Math.sqrt(r.sumforceNodeSize/Math.PI)}),g[t]=e})),y.forEach((function(t){var e=g[t.source],r=g[t.target];void 0!==e&&void 0!==r&&v.push({source:e,target:r,count:t.count})})),{nodes:d,links:v});var u,d,v,g,y;e=_t(t.nodes).force("x",function(t){var e,r,n,o=$(.1);function i(t){for(var o,i=0,a=e.length;i<a;++i)(o=e[i]).vx+=(n[i]-o.x)*r[i]*t}function a(){if(e){var i,a=e.length;for(r=new Array(a),n=new Array(a),i=0;i<a;++i)r[i]=isNaN(n[i]=+t(e[i],i,e))?0:+o(e[i],i,e)}}return"function"!=typeof t&&(t=$(null==t?0:+t)),i.initialize=function(t){e=t,a()},i.strength=function(t){return arguments.length?(o="function"==typeof t?t:$(+t),a(),i):o},i.x=function(e){return arguments.length?(t="function"==typeof e?e:$(+e),a(),i):t},i}(h).strength(.1)).force("y",function(t){var e,r,n,o=$(.1);function i(t){for(var o,i=0,a=e.length;i<a;++i)(o=e[i]).vy+=(n[i]-o.y)*r[i]*t}function a(){if(e){var i,a=e.length;for(r=new Array(a),n=new Array(a),i=0;i<a;++i)r[i]=isNaN(n[i]=+t(e[i],i,e))?0:+o(e[i],i,e)}}return"function"!=typeof t&&(t=$(null==t?0:+t)),i.initialize=function(t){e=t,a()},i.strength=function(t){return arguments.length?(o="function"==typeof t?t:$(+t),a(),i):o},i.y=function(e){return arguments.length?(t="function"==typeof e?e:$(+e),a(),i):t},i}(l).strength(.1)).force("collide",Rt((function(t){return t.r})).iterations(4)).force("charge",St().strength(o)).force("links",Ot(t.nodes.length?t.links:[]).distance(i).strength(a)),p=e.nodes(),w()}()}function w(){return d={none:{x:0,y:0}},p.forEach((function(t){d[t.id]={x:t.x-u[0],y:t.y-u[1]}})),d}function x(t){c={},t.forEach((function(t){c[t.id]=t}))}return m.initialize=function(t){s=t,b()},m.template=function(t){return arguments.length?(v=t,b(),m):v},m.groupBy=function(t){return arguments.length?"string"==typeof t?(r=function(e){return e[t]},m):(r=t,m):r},m.enableGrouping=function(t){return arguments.length?(g=t,m):g},m.strength=function(t){return arguments.length?(y=t,m):y},m.centerX=function(t){return arguments.length?(h=t,m):h},m.centerY=function(t){return arguments.length?(l=t,m):l},m.nodes=function(t){return arguments.length?(x(t||[]),s=t||[],m):s},m.links=function(t){return arguments.length?(f=t||[],b(),m):f},m.forceNodeSize=function(e){return arguments.length?(n="function"==typeof e?e:t(+e),b(),m):n},m.nodeSize=m.forceNodeSize,m.forceCharge=function(e){return arguments.length?(o="function"==typeof e?e:t(+e),b(),m):o},m.forceLinkDistance=function(e){return arguments.length?(i="function"==typeof e?e:t(+e),b(),m):i},m.forceLinkStrength=function(e){return arguments.length?(a="function"==typeof e?e:t(+e),b(),m):a},m.offset=function(t){return arguments.length?(u=t,m):u},m.getFocis=w,m}var Ct=r(31),zt=r.n(Ct),Ft=r(19),Tt=r.n(Ft),Dt="LAYOUT_RUN",qt="LAYOUT_END",Lt="LAYOUT_ERROR",Bt="LAYOUT_TICK",Vt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.nodeStrength=null,e.edgeStrength=null,e.preventOverlap=!1,e.clusterNodeStrength=null,e.clusterEdgeStrength=null,e.clusterEdgeDistance=null,e.clusterNodeSize=null,e.clusterFociStrength=null,e.linkDistance=50,e.alphaDecay=.028,e.alphaMin=.001,e.alpha=.3,e.collideStrength=1,e.workerEnabled=!1,e.tick=function(){},e.onLayoutEnd=function(){},e.onTick=function(){},e.ticking=void 0,e}return a(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],nodeStrength:null,edgeStrength:null,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,linkDistance:50,forceSimulation:null,alphaDecay:.028,alphaMin:.001,alpha:.3,collideStrength:1,clustering:!1,clusterNodeStrength:-1,clusterEdgeStrength:.1,clusterEdgeDistance:100,clusterFociStrength:.8,clusterNodeSize:10,tick:function(){},onLayoutEnd:function(){},onTick:function(){},workerEnabled:!1}},e.prototype.init=function(t){this.nodes=t.nodes||[];var e=t.edges||[];this.edges=e.map((function(t){var e={},r=["targetNode","sourceNode","startPoint","endPoint"];return Object.keys(t).forEach((function(n){r.indexOf(n)>-1||(e[n]=t[n])})),e})),this.ticking=!1},e.prototype.execute=function(t){var e=this,r=e.nodes,n=e.edges;if(!e.ticking){var o=e.forceSimulation,i=e.alphaMin,a=e.alphaDecay,u=e.alpha;if(o)t&&(e.clustering&&e.clusterForce&&(e.clusterForce.nodes(r),e.clusterForce.links(n)),o.nodes(r),e.edgeForce.links(n)),e.preventOverlap&&e.overlapProcess(o),o.alpha(u).restart(),this.ticking=!0;else try{var s=St();if(e.nodeStrength&&s.strength(e.nodeStrength),o=_t().nodes(r),e.clustering){var c=Pt();c.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),n&&c.links(n),r&&c.nodes(r),c.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=c,o.force("group",c)}if(o.force("center",function(t,e){var r,n=1;function o(){var o,i,a=r.length,u=0,s=0;for(o=0;o<a;++o)u+=(i=r[o]).x,s+=i.y;for(u=(u/a-t)*n,s=(s/a-e)*n,o=0;o<a;++o)(i=r[o]).x-=u,i.y-=s}return null==t&&(t=0),null==e&&(e=0),o.initialize=function(t){r=t},o.x=function(e){return arguments.length?(t=+e,o):t},o.y=function(t){return arguments.length?(e=+t,o):e},o.strength=function(t){return arguments.length?(n=+t,o):n},o}(e.center[0],e.center[1])).force("charge",s).alpha(u).alphaDecay(a).alphaMin(i),e.preventOverlap&&e.overlapProcess(o),n){var f=Ot().id((function(t){return t.id})).links(n);e.edgeStrength&&f.strength(e.edgeStrength),e.linkDistance&&f.distance(e.linkDistance),e.edgeForce=f,o.force("link",f)}if(e.workerEnabled&&!Ut()&&(e.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),e.workerEnabled){o.stop();for(var h=function(t){var e=t.alphaMin(),r=t.alphaTarget(),n=t.alpha(),o=Math.log((e-r)/(n-r))/Math.log(1-t.alphaDecay());return Math.ceil(o)}(o),l=1;l<=h;l++)o.tick(),postMessage({type:Bt,currentTick:l,totalTicks:h,nodes:r},void 0);e.ticking=!1}else o.on("tick",(function(){e.tick()})).on("end",(function(){e.ticking=!1,e.onLayoutEnd&&e.onLayoutEnd()})),e.ticking=!0;e.forceSimulation=o,e.ticking=!0}catch(t){e.ticking=!1,console.warn(t)}}},e.prototype.overlapProcess=function(t){var e,r,n=this.nodeSize,o=this.nodeSpacing,i=this.collideStrength;if(r=Tt()(o)?function(){return o}:zt()(o)?o:function(){return 0},n)if(zt()(n))e=function(t){return n(t)+r(t)};else if(j()(n)){var a=(n[0]>n[1]?n[0]:n[1])/2;e=function(t){return a+r(t)}}else if(Tt()(n)){var u=n/2;e=function(t){return u+r(t)}}else e=function(){return 10};else e=function(t){return t.size?j()(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+r(t):t.size/2+r(t):10+r(t)};t.force("collisionForce",Rt(e).strength(i))},e.prototype.updateCfg=function(t){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.forceSimulation=null,s()(this,t)},e.prototype.destroy=function(){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.nodes=null,this.edges=null,this.destroyed=!0},e}(c);function Ut(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}var Yt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=500,e.gravity=10,e.clustering=!1,e.clusterGravity=10,e.linkDistance=50,e.alpha=1,e.alphaMin=.001,e.alphaDecay=1-Math.pow(e.alphaMin,1/300),e.alphaTarget=0,e.velocityDecay=.6,e.linkStrength=1,e.nodeStrength=30,e.preventOverlap=!1,e.collideStrength=1,e.optimizeRangeFactor=1,e.tick=function(){},e.nodes=[],e.edges=[],e.width=300,e.height=300,e.bias=[],e.nodeMap={},e.nodeIdxMap={},e}return a(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,center:[0,0],gravity:10,clustering:!1,clusterGravity:10,preventOverlap:!1,nodeSpacing:void 0,collideStrength:10}},e.prototype.execute=function(){var t=this.nodes,e=this.center;if(t&&0!==t.length){if(1===t.length)return t[0].x=e[0],void(t[0].y=e[1]);var r={},n={};t.forEach((function(t,e){r[t.id]=t,n[t.id]=e})),this.nodeMap=r,this.nodeIdxMap=n,this.run()}},e.prototype.run=function(){var t=this,e=t.nodes,r=t.edges,n=t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var o,i=t.center,a=t.velocityDecay,u=t.clustering;t.initVals(),u&&(o=t.getClusterMap());for(var s=function(n){var i=[];e.forEach((function(t,e){i[e]={x:0,y:0}})),t.applyCalculate(e,r,i),u&&t.applyClusterForce(o,i),e.forEach((function(t,e){k(t.x)&&k(t.y)&&(t.x+=i[e].x*a,t.y+=i[e].y*a)})),c.alpha+=(c.alphaTarget-c.alpha)*c.alphaDecay,t.tick()},c=this,f=0;f<n;f++)s();var h=[0,0];e.forEach((function(t){k(t.x)&&k(t.y)&&(h[0]+=t.x,h[1]+=t.y)})),h[0]/=e.length,h[1]/=e.length;var l=[i[0]-h[0],i[1]-h[1]];e.forEach((function(t,e){k(t.x)&&k(t.y)&&(t.x+=l[0],t.y+=l[1])}))},e.prototype.initVals=function(){for(var t=this.edges,e={},r=0;r<t.length;++r)e[t[r].source]?e[t[r].source]++:e[t[r].source]=1,e[t[r].target]?e[t[r].target]++:e[t[r].target]=1;var n=[];for(r=0;r<t.length;++r)n[r]=e[t[r].source]/(e[t[r].source]+e[t[r].target]);this.bias=n;var o,i,a=this.nodeSize,u=this.nodeSpacing;if(i=k(u)?function(){return u}:g(u)?u:function(){return 0},a)if(g(a))o=function(t){return a(t)+i(t)};else if(y(a)){var s=(a[0]>a[1]?a[0]:a[1])/2;o=function(t){return s+i(t)}}else if(k(a)){var c=a/2;o=function(t){return c+i(t)}}else o=function(){return 10};else o=function(t){return t.size?y(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+i(t):t.size/2+i(t):10+i(t)};this.nodeSize=o;var f,h=this.linkDistance;h||(h=50),k(h)&&(f=function(t){return h}),this.linkDistance=f;var l,d=this.linkStrength;d||(d=1),k(d)&&(l=function(t){return d}),this.linkStrength=l;var p,v=this.nodeStrength;v||(v=30),k(v)&&(p=function(t){return v}),this.nodeStrength=p},e.prototype.getClusterMap=function(){var t=this.nodes,e={};for(var r in t.forEach((function(t){if(void 0===e[t.cluster]){var r={name:t.cluster,cx:0,cy:0,count:0};e[t.cluster]=r}var n=e[t.cluster];k(t.x)&&(n.cx+=t.x),k(t.y)&&(n.cy+=t.y),n.count++})),e)e[r].cx/=e[r].count,e[r].cy/=e[r].count;return e},e.prototype.applyClusterForce=function(t,e){var r=this.gravity,n=this.nodes,o=this.clusterGravity||r,i=this.alpha;for(var a in n.forEach((function(r,n){if(k(r.x)&&k(r.y)){var a=t[r.cluster],u=r.x-a.cx,s=r.y-a.cy,c=Math.sqrt(u*u+s*s);e[n].x-=u*o*i/c,e[n].y-=s*o*i/c}})),t)t[a].cx=0,t[a].cy=0,t[a].count=0;for(var a in n.forEach((function(e){var r=t[e.cluster];k(e.x)&&(r.cx+=e.x),k(e.y)&&(r.cy+=e.y),r.count++})),t)t[a].cx/=t[a].count,t[a].cy/=t[a].count},e.prototype.applyCalculate=function(t,e,r){var n={};t.forEach((function(e,o){r[o]={x:0,y:0},t.forEach((function(t,r){if(!(o<r)){var i=e.x-t.x,a=e.y-t.y,u=i*i+a*a;u<1&&(u=Math.sqrt(u)),0===i&&(u+=(i=.01*Math.random())*i),0===a&&(u+=(a=.01*Math.random())*a);var s=Math.sqrt(u);n[e.id+"-"+t.id]={vx:i,vy:a,vl:u,sqrtVl:s},n[t.id+"-"+e.id]={vx:-i,vy:-a,vl:u,sqrtVl:s}}}))})),this.calRepulsive(t,r,n),this.calAttractive(e,r,n)},e.prototype.calRepulsive=function(t,e,r){var n=this.width*this.optimizeRangeFactor*this.width*this.optimizeRangeFactor,o=this.nodeStrength,i=this.alpha,a=this.collideStrength,u=this.preventOverlap,s=this.nodeSize;t.forEach((function(c,f){t.forEach((function(t,h){if(f!==h&&k(c.x)&&k(t.x)&&k(c.y)&&k(t.y)){var l=r[c.id+"-"+t.id],d=l.vl,p=l.vx,v=l.vy;if(!(d>n)&&(e[f].x+=p*o(t)*i/d,e[f].y+=v*o(t)*i/d,u&&f<h)){var g=s(c),y=s(t),m=g+y;if(d<m*m){var b=r[c.id+"-"+t.id].sqrtVl,w=(m-b)/b*a,x=y*y/(g*g+y*y),M=p*w,_=v*w;e[f].x+=M*x,e[f].y+=_*x,x=1-x,e[h].x-=M*x,e[h].y-=_*x}}}}))}))},e.prototype.calAttractive=function(t,e,r){var n=this,o=this.linkDistance,i=this.alpha,a=this.linkStrength,u=this.bias;t.forEach((function(t,s){if(t.source&&t.target){var c=n.nodeIdxMap[t.source],f=n.nodeIdxMap[t.target];if(c!==f){var h=n.nodeMap[t.source],l=n.nodeMap[t.target];if(k(l.x)&&k(h.x)&&k(l.y)&&k(h.y)){var d=r[t.target+"-"+t.source],p=(d.vl,d.sqrtVl),v=d.vx,g=d.vy,y=(p-o(t))/p*i*a(t),m=v*y,b=g*y,w=u[s];e[f].x-=m*w,e[f].y-=b*w,e[c].x+=m*(1-w),e[c].y+=b*(1-w)}}}}))},e}(c),Ht=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=1e3,e.gravity=10,e.speed=1,e.clustering=!1,e.clusterGravity=10,e.nodes=[],e.edges=[],e.width=300,e.height=300,e.nodeMap={},e.nodeIdxMap={},e}return a(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,center:[0,0],gravity:10,speed:1,clustering:!1,clusterGravity:10}},e.prototype.execute=function(){var t=this,e=this.nodes,r=this.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=r[0],void(e[0].y=r[1]);var n={},o={};e.forEach((function(e,r){k(e.x)||(e.x=Math.random()*t.width),k(e.y)||(e.y=Math.random()*t.height),n[e.id]=e,o[e.id]=r})),this.nodeMap=n,this.nodeIdxMap=o,this.run()}},e.prototype.run=function(){var t=this,e=t.nodes,r=t.edges,n=t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var o=t.center,i=t.width/10,a=Math.sqrt(t.width*t.height/(e.length+1)),u=t.gravity,s=t.speed,c=t.clustering,f={};if(c)for(var h in e.forEach((function(t){if(void 0===f[t.cluster]){var e={name:t.cluster,cx:0,cy:0,count:0};f[t.cluster]=e}var r=f[t.cluster];k(t.x)&&(r.cx+=t.x),k(t.y)&&(r.cy+=t.y),r.count++})),f)f[h].cx/=f[h].count,f[h].cy/=f[h].count;for(var l=function(n){var h=[];if(e.forEach((function(t,e){h[e]={x:0,y:0}})),t.applyCalculate(e,r,h,a),c){var l=t.clusterGravity||u;for(var d in e.forEach((function(t,e){if(k(t.x)&&k(t.y)){var r=f[t.cluster],n=Math.sqrt((t.x-r.cx)*(t.x-r.cx)+(t.y-r.cy)*(t.y-r.cy)),o=a*l;h[e].x-=o*(t.x-r.cx)/n,h[e].y-=o*(t.y-r.cy)/n}})),f)f[d].cx=0,f[d].cy=0,f[d].count=0;for(var d in e.forEach((function(t){var e=f[t.cluster];k(t.x)&&(e.cx+=t.x),k(t.y)&&(e.cy+=t.y),e.count++})),f)f[d].cx/=f[d].count,f[d].cy/=f[d].count}e.forEach((function(t,e){if(k(t.x)&&k(t.y)){var r=.01*a*u;h[e].x-=r*(t.x-o[0]),h[e].y-=r*(t.y-o[1])}})),e.forEach((function(t,e){if(k(t.x)&&k(t.y)){var r=Math.sqrt(h[e].x*h[e].x+h[e].y*h[e].y);if(r>0){var n=Math.min(i*(s/800),r);t.x+=h[e].x/r*n,t.y+=h[e].y/r*n}}}))},d=0;d<n;d++)l()},e.prototype.applyCalculate=function(t,e,r,n){this.calRepulsive(t,r,n),this.calAttractive(e,r,n)},e.prototype.calRepulsive=function(t,e,r){t.forEach((function(n,o){e[o]={x:0,y:0},t.forEach((function(t,i){if(o!==i&&k(n.x)&&k(t.x)&&k(n.y)&&k(t.y)){var a=n.x-t.x,u=n.y-t.y,s=a*a+u*u;if(0===s){s=1;var c=o>i?1:-1;a=.01*c,u=.01*c}var f=r*r/s;e[o].x+=a*f,e[o].y+=u*f}}))}))},e.prototype.calAttractive=function(t,e,r){var n=this;t.forEach((function(t){if(t.source&&t.target){var o=n.nodeIdxMap[t.source],i=n.nodeIdxMap[t.target];if(o!==i){var a=n.nodeMap[t.source],u=n.nodeMap[t.target];if(k(u.x)&&k(a.x)&&k(u.y)&&k(a.y)){var s=u.x-a.x,c=u.y-a.y,f=Math.sqrt(s*s+c*c),h=f*f/r;e[i].x-=s/f*h,e[i].y-=c/f*h,e[o].x+=s/f*h,e[o].y+=c/f*h}}}}))},e}(c),Wt=(r(54),r(130)),Gt=(function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.item=r.item,n.canvasX=r.canvasX,n.canvasY=r.canvasY,n.wheelDelta=r.wheelDelta,n.detail=r.detail,n}a(e,t)}(r.n(Wt).a),function(t){return Number.isNaN(Number(t))}),$t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.begin=[0,0],e.preventOverlap=!0,e.preventOverlapPadding=10,e.condense=!1,e.sortBy="degree",e.nodeSize=30,e.nodes=[],e.edges=[],e.center=[0,0],e.width=300,e.height=300,e.row=0,e.col=0,e.cellWidth=0,e.cellHeight=0,e.cellUsed={},e.id2manPos={},e}return a(e,t),e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var t=this,e=t.nodes,r=e.length,n=t.center;if(0!==r){if(1===r)return e[0].x=n[0],void(e[0].y=n[1]);var o=t.edges,i=[];e.forEach((function(t){i.push(t)}));var a={};if(i.forEach((function(t,e){a[t.id]=e})),("degree"===t.sortBy||!C()(t.sortBy)||void 0===i[0][t.sortBy])&&(t.sortBy="degree",Gt(e[0].degree))){var u=N(i.length,a,o);i.forEach((function(t,e){t.degree=u[e]}))}i.sort((function(e,r){return r[t.sortBy]-e[t.sortBy]})),t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var s=t.rows,c=null!=t.cols?t.cols:t.columns;if(t.cells=r,null!=s&&null!=c?(t.rows=s,t.cols=c):null!=s&&null==c?(t.rows=s,t.cols=Math.ceil(t.cells/t.rows)):null==s&&null!=c?(t.cols=c,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.cols*t.rows>t.cells)((h=t.small())-1)*(f=t.large())>=t.cells?t.small(h-1):(f-1)*h>=t.cells&&t.large(f-1);else for(;t.cols*t.rows<t.cells;){var f,h=t.small();((f=t.large())+1)*h>=t.cells?t.large(f+1):t.small(h+1)}t.cellWidth=t.width/t.cols,t.cellHeight=t.height/t.rows,t.condense&&(t.cellWidth=0,t.cellHeight=0),t.preventOverlap&&i.forEach((function(e){var r,n;e.x&&e.y||(e.x=0,e.y=0),y(e.size)?(r=e.size[0],n=e.size[1]):k(e.size)&&(r=e.size,n=e.size),void 0!==r&&void 0!==n||(y(t.nodeSize)?(r=t.nodeSize[0],n=t.nodeSize[1]):k(t.nodeSize)?(r=t.nodeSize,n=t.nodeSize):(r=30,n=30));var o=t.preventOverlapPadding,i=r+o,a=n+o;t.cellWidth=Math.max(t.cellWidth,i),t.cellHeight=Math.max(t.cellHeight,a)})),t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var l=0;l<i.length;l++){var d=i[l],p=void 0;if(t.position&&(p=t.position(d)),p&&(void 0!==p.row||void 0!==p.col)){var v={row:p.row,col:p.col};if(void 0===v.col)for(v.col=0;t.used(v.row,v.col);)v.col++;else if(void 0===v.row)for(v.row=0;t.used(v.row,v.col);)v.row++;t.id2manPos[d.id]=v,t.use(v.row,v.col)}t.getPos(d)}}},e.prototype.small=function(t){var e,r=this.rows||5,n=this.cols||5;null==t?e=Math.min(r,n):Math.min(r,n)===this.rows?this.rows=t:this.cols=t;return e},e.prototype.large=function(t){var e,r=this.rows||5,n=this.cols||5;null==t?e=Math.max(r,n):Math.max(r,n)===this.rows?this.rows=t:this.cols=t;return e},e.prototype.used=function(t,e){return this.cellUsed["c-"+t+"-"+e]||!1},e.prototype.use=function(t,e){this.cellUsed["c-"+t+"-"+e]=!0},e.prototype.moveToNextCell=function(){var t=this.cols||5;this.col++,this.col>=t&&(this.col=0,this.row++)},e.prototype.getPos=function(t){var e,r,n=this.begin,o=this.cellWidth,i=this.cellHeight,a=this.id2manPos[t.id];if(a)e=a.col*o+o/2+n[0],r=a.row*i+i/2+n[1];else{for(;this.used(this.row,this.col);)this.moveToNextCell();e=this.col*o+o/2+n[0],r=this.row*i+i/2+n[1],this.use(this.row,this.col),this.moveToNextCell()}t.x=e,t.y=r},e}(c),Xt=Object.prototype.toString;function Jt(t){return Xt.call(t).endsWith("Array]")}var Qt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Jt(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var r=e.fromIndex,n=void 0===r?0:r,o=e.toIndex,i=void 0===o?t.length:o;if(n<0||n>=t.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>t.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[n],u=n+1;u<i;u++)t[u]>a&&(a=t[u]);return a};var Kt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Jt(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var r=e.fromIndex,n=void 0===r?0:r,o=e.toIndex,i=void 0===o?t.length:o;if(n<0||n>=t.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>t.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[n],u=n+1;u<i;u++)t[u]<a&&(a=t[u]);return a};var Zt=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Jt(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");if(void 0!==r.output){if(!Jt(r.output))throw new TypeError("output option must be an array if specified");e=r.output}else e=new Array(t.length);var n=Kt(t),o=Qt(t);if(n===o)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var i=r.min,a=void 0===i?r.autoMinMax?n:0:i,u=r.max,s=void 0===u?r.autoMinMax?o:1:u;if(a>=s)throw new RangeError("min option must be smaller than max option");for(var c=(s-a)/(o-n),f=0;f<t.length;f++)e[f]=(t[f]-n)*c+a;return e},te=" ".repeat(2),ee=" ".repeat(4);function re(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.maxRows,n=void 0===r?15:r,o=e.maxColumns,i=void 0===o?10:o,a=e.maxNumSize,u=void 0===a?8:a;return"".concat(t.constructor.name," {\\n").concat(te,"[\\n").concat(ee).concat(ne(t,n,i,u),"\\n").concat(te,"]\\n").concat(te,"rows: ").concat(t.rows,"\\n").concat(te,"columns: ").concat(t.columns,"\\n}")}function ne(t,e,r,n){for(var o=t.rows,i=t.columns,a=Math.min(o,e),u=Math.min(i,r),s=[],c=0;c<a;c++){for(var f=[],h=0;h<u;h++)f.push(oe(t.get(c,h),n));s.push("".concat(f.join(" ")))}return u!==i&&(s[s.length-1]+=" ... ".concat(i-r," more columns")),a!==o&&s.push("... ".concat(o-e," more rows")),s.join("\\n".concat(ee))}function oe(t,e){var r=String(t);if(r.length<=e)return r.padEnd(e," ");var n=t.toPrecision(e-2);if(n.length<=e)return n;var o=t.toExponential(e-2),i=o.indexOf("e"),a=o.slice(i);return o.slice(0,e-a.length)+a}function ie(t){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ae(t,e,r){var n=r?t.rows:t.rows-1;if(e<0||e>n)throw new RangeError("Row index out of range")}function ue(t,e,r){var n=r?t.columns:t.columns-1;if(e<0||e>n)throw new RangeError("Column index out of range")}function se(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function ce(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function fe(t,e){if("object"!==ie(e))throw new TypeError("unexpected type for row indices");if(e.some((function(e){return e<0||e>=t.rows})))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function he(t,e){if("object"!==ie(e))throw new TypeError("unexpected type for column indices");if(e.some((function(e){return e<0||e>=t.columns})))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function le(t,e,r,n,o){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(pe("startRow",e),pe("endRow",r),pe("startColumn",n),pe("endColumn",o),e>r||n>o||e<0||e>=t.rows||r<0||r>=t.rows||n<0||n>=t.columns||o<0||o>=t.columns)throw new RangeError("Submatrix indices are out of range")}function de(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=0;n<t;n++)r.push(e);return r}function pe(t,e){if("number"!=typeof e)throw new TypeError("".concat(t," must be a number"))}function ve(t,e,r){for(var n=t.rows,o=t.columns,i=[],a=0;a<n;a++){for(var u=0,s=0,c=0,f=0;f<o;f++)u+=c=t.get(a,f)-r[a],s+=c*c;e?i.push((s-u*u/o)/(o-1)):i.push((s-u*u/o)/o)}return i}function ge(t,e,r){for(var n=t.rows,o=t.columns,i=[],a=0;a<o;a++){for(var u=0,s=0,c=0,f=0;f<n;f++)u+=c=t.get(f,a)-r[a],s+=c*c;e?i.push((s-u*u/n)/(n-1)):i.push((s-u*u/n)/n)}return i}function ye(t,e,r){for(var n=t.rows,o=t.columns,i=n*o,a=0,u=0,s=0,c=0;c<n;c++)for(var f=0;f<o;f++)a+=s=t.get(c,f)-r,u+=s*s;return e?(u-a*a/i)/(i-1):(u-a*a/i)/i}function me(t,e){for(var r=0;r<t.rows;r++)for(var n=0;n<t.columns;n++)t.set(r,n,t.get(r,n)-e[r])}function be(t,e){for(var r=0;r<t.rows;r++)for(var n=0;n<t.columns;n++)t.set(r,n,t.get(r,n)-e[n])}function we(t,e){for(var r=0;r<t.rows;r++)for(var n=0;n<t.columns;n++)t.set(r,n,t.get(r,n)-e)}function xe(t){for(var e=[],r=0;r<t.rows;r++){for(var n=0,o=0;o<t.columns;o++)n+=Math.pow(t.get(r,o),2)/(t.columns-1);e.push(Math.sqrt(n))}return e}function Me(t,e){for(var r=0;r<t.rows;r++)for(var n=0;n<t.columns;n++)t.set(r,n,t.get(r,n)/e[r])}function ke(t){for(var e=[],r=0;r<t.columns;r++){for(var n=0,o=0;o<t.rows;o++)n+=Math.pow(t.get(o,r),2)/(t.rows-1);e.push(Math.sqrt(n))}return e}function _e(t,e){for(var r=0;r<t.rows;r++)for(var n=0;n<t.columns;n++)t.set(r,n,t.get(r,n)/e[n])}function Se(t){for(var e=t.size-1,r=0,n=0;n<t.columns;n++)for(var o=0;o<t.rows;o++)r+=Math.pow(t.get(o,n),2)/e;return Math.sqrt(r)}function Ee(t,e){for(var r=0;r<t.rows;r++)for(var n=0;n<t.columns;n++)t.set(r,n,t.get(r,n)/e)}function je(t,e){return(je=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ae(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Ne(t);if(e){var o=Ne(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Oe(this,r)}}function Oe(t,e){return!e||"object"!==Ie(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function Ne(t){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ie(t){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ce(t,e,r){return e&&Pe(t.prototype,e),r&&Pe(t,r),t}var ze=function(){function t(){Re(this,t)}return Ce(t,[{key:"apply",value:function(t){if("function"!=typeof t)throw new TypeError("callback must be a function");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)t.call(this,e,r);return this}},{key:"to1DArray",value:function(){for(var t=[],e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)t.push(this.get(e,r));return t}},{key:"to2DArray",value:function(){for(var t=[],e=0;e<this.rows;e++){t.push([]);for(var r=0;r<this.columns;r++)t[e].push(this.get(e,r))}return t}},{key:"toJSON",value:function(){return this.to2DArray()}},{key:"isRowVector",value:function(){return 1===this.rows}},{key:"isColumnVector",value:function(){return 1===this.columns}},{key:"isVector",value:function(){return 1===this.rows||1===this.columns}},{key:"isSquare",value:function(){return this.rows===this.columns}},{key:"isSymmetric",value:function(){if(this.isSquare()){for(var t=0;t<this.rows;t++)for(var e=0;e<=t;e++)if(this.get(t,e)!==this.get(e,t))return!1;return!0}return!1}},{key:"isEchelonForm",value:function(){for(var t=0,e=0,r=-1,n=!0,o=!1;t<this.rows&&n;){for(e=0,o=!1;e<this.columns&&!1===o;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>r?(o=!0,r=e):(n=!1,o=!0);t++}return n}},{key:"isReducedEchelonForm",value:function(){for(var t=0,e=0,r=-1,n=!0,o=!1;t<this.rows&&n;){for(e=0,o=!1;e<this.columns&&!1===o;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>r?(o=!0,r=e):(n=!1,o=!0);for(var i=e+1;i<this.rows;i++)0!==this.get(t,i)&&(n=!1);t++}return n}},{key:"echelonForm",value:function(){for(var t=this.clone(),e=0,r=0;e<t.rows&&r<t.columns;){for(var n=e,o=e;o<t.rows;o++)t.get(o,r)>t.get(n,r)&&(n=o);if(0===t.get(n,r))r++;else{t.swapRows(e,n);for(var i=t.get(e,r),a=r;a<t.columns;a++)t.set(e,a,t.get(e,a)/i);for(var u=e+1;u<t.rows;u++){var s=t.get(u,r)/t.get(e,r);t.set(u,r,0);for(var c=r+1;c<t.columns;c++)t.set(u,c,t.get(u,c)-t.get(e,c)*s)}e++,r++}}return t}},{key:"reducedEchelonForm",value:function(){for(var t=this.echelonForm(),e=t.columns,r=t.rows,n=r-1;n>=0;)if(0===t.maxRow(n))n--;else{for(var o=0,i=!1;o<r&&!1===i;)1===t.get(n,o)?i=!0:o++;for(var a=0;a<n;a++)for(var u=t.get(a,o),s=o;s<e;s++){var c=t.get(a,s)-u*t.get(n,s);t.set(a,s,c)}n--}return t}},{key:"set",value:function(){throw new Error("set method is unimplemented")}},{key:"get",value:function(){throw new Error("get method is unimplemented")}},{key:"repeat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==Ie(t))throw new TypeError("options must be an object");var e=t.rows,r=void 0===e?1:e,n=t.columns,o=void 0===n?1:n;if(!Number.isInteger(r)||r<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(o)||o<=0)throw new TypeError("columns must be a positive integer");for(var i=new qe(this.rows*r,this.columns*o),a=0;a<r;a++)for(var u=0;u<o;u++)i.setSubMatrix(this,this.rows*a,this.columns*u);return i}},{key:"fill",value:function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,t);return this}},{key:"neg",value:function(){return this.mulS(-1)}},{key:"getRow",value:function(t){ae(this,t);for(var e=[],r=0;r<this.columns;r++)e.push(this.get(t,r));return e}},{key:"getRowVector",value:function(t){return qe.rowVector(this.getRow(t))}},{key:"setRow",value:function(t,e){ae(this,t),e=se(this,e);for(var r=0;r<this.columns;r++)this.set(t,r,e[r]);return this}},{key:"swapRows",value:function(t,e){ae(this,t),ae(this,e);for(var r=0;r<this.columns;r++){var n=this.get(t,r);this.set(t,r,this.get(e,r)),this.set(e,r,n)}return this}},{key:"getColumn",value:function(t){ue(this,t);for(var e=[],r=0;r<this.rows;r++)e.push(this.get(r,t));return e}},{key:"getColumnVector",value:function(t){return qe.columnVector(this.getColumn(t))}},{key:"setColumn",value:function(t,e){ue(this,t),e=ce(this,e);for(var r=0;r<this.rows;r++)this.set(r,t,e[r]);return this}},{key:"swapColumns",value:function(t,e){ue(this,t),ue(this,e);for(var r=0;r<this.rows;r++){var n=this.get(r,t);this.set(r,t,this.get(r,e)),this.set(r,e,n)}return this}},{key:"addRowVector",value:function(t){t=se(this,t);for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)+t[r]);return this}},{key:"subRowVector",value:function(t){t=se(this,t);for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)-t[r]);return this}},{key:"mulRowVector",value:function(t){t=se(this,t);for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)*t[r]);return this}},{key:"divRowVector",value:function(t){t=se(this,t);for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)/t[r]);return this}},{key:"addColumnVector",value:function(t){t=ce(this,t);for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)+t[e]);return this}},{key:"subColumnVector",value:function(t){t=ce(this,t);for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)-t[e]);return this}},{key:"mulColumnVector",value:function(t){t=ce(this,t);for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)*t[e]);return this}},{key:"divColumnVector",value:function(t){t=ce(this,t);for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)/t[e]);return this}},{key:"mulRow",value:function(t,e){ae(this,t);for(var r=0;r<this.columns;r++)this.set(t,r,this.get(t,r)*e);return this}},{key:"mulColumn",value:function(t,e){ue(this,t);for(var r=0;r<this.rows;r++)this.set(r,t,this.get(r,t)*e);return this}},{key:"max",value:function(){for(var t=this.get(0,0),e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.get(e,r)>t&&(t=this.get(e,r));return t}},{key:"maxIndex",value:function(){for(var t=this.get(0,0),e=[0,0],r=0;r<this.rows;r++)for(var n=0;n<this.columns;n++)this.get(r,n)>t&&(t=this.get(r,n),e[0]=r,e[1]=n);return e}},{key:"min",value:function(){for(var t=this.get(0,0),e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.get(e,r)<t&&(t=this.get(e,r));return t}},{key:"minIndex",value:function(){for(var t=this.get(0,0),e=[0,0],r=0;r<this.rows;r++)for(var n=0;n<this.columns;n++)this.get(r,n)<t&&(t=this.get(r,n),e[0]=r,e[1]=n);return e}},{key:"maxRow",value:function(t){ae(this,t);for(var e=this.get(t,0),r=1;r<this.columns;r++)this.get(t,r)>e&&(e=this.get(t,r));return e}},{key:"maxRowIndex",value:function(t){ae(this,t);for(var e=this.get(t,0),r=[t,0],n=1;n<this.columns;n++)this.get(t,n)>e&&(e=this.get(t,n),r[1]=n);return r}},{key:"minRow",value:function(t){ae(this,t);for(var e=this.get(t,0),r=1;r<this.columns;r++)this.get(t,r)<e&&(e=this.get(t,r));return e}},{key:"minRowIndex",value:function(t){ae(this,t);for(var e=this.get(t,0),r=[t,0],n=1;n<this.columns;n++)this.get(t,n)<e&&(e=this.get(t,n),r[1]=n);return r}},{key:"maxColumn",value:function(t){ue(this,t);for(var e=this.get(0,t),r=1;r<this.rows;r++)this.get(r,t)>e&&(e=this.get(r,t));return e}},{key:"maxColumnIndex",value:function(t){ue(this,t);for(var e=this.get(0,t),r=[0,t],n=1;n<this.rows;n++)this.get(n,t)>e&&(e=this.get(n,t),r[0]=n);return r}},{key:"minColumn",value:function(t){ue(this,t);for(var e=this.get(0,t),r=1;r<this.rows;r++)this.get(r,t)<e&&(e=this.get(r,t));return e}},{key:"minColumnIndex",value:function(t){ue(this,t);for(var e=this.get(0,t),r=[0,t],n=1;n<this.rows;n++)this.get(n,t)<e&&(e=this.get(n,t),r[0]=n);return r}},{key:"diag",value:function(){for(var t=Math.min(this.rows,this.columns),e=[],r=0;r<t;r++)e.push(this.get(r,r));return e}},{key:"norm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"frobenius",e=0;if("max"===t)return this.max();if("frobenius"===t){for(var r=0;r<this.rows;r++)for(var n=0;n<this.columns;n++)e+=this.get(r,n)*this.get(r,n);return Math.sqrt(e)}throw new RangeError("unknown norm type: ".concat(t))}},{key:"cumulativeSum",value:function(){for(var t=0,e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)t+=this.get(e,r),this.set(e,r,t);return this}},{key:"dot",value:function(e){t.isMatrix(e)&&(e=e.to1DArray());var r=this.to1DArray();if(r.length!==e.length)throw new RangeError("vectors do not have the same size");for(var n=0,o=0;o<r.length;o++)n+=r[o]*e[o];return n}},{key:"mmul",value:function(t){t=qe.checkMatrix(t);for(var e=this.rows,r=this.columns,n=t.columns,o=new qe(e,n),i=new Float64Array(r),a=0;a<n;a++){for(var u=0;u<r;u++)i[u]=t.get(u,a);for(var s=0;s<e;s++){for(var c=0,f=0;f<r;f++)c+=this.get(s,f)*i[f];o.set(s,a,c)}}return o}},{key:"strassen2x2",value:function(t){t=qe.checkMatrix(t);var e=new qe(2,2),r=this.get(0,0),n=t.get(0,0),o=this.get(0,1),i=t.get(0,1),a=this.get(1,0),u=t.get(1,0),s=this.get(1,1),c=t.get(1,1),f=(r+s)*(n+c),h=(a+s)*n,l=r*(i-c),d=s*(u-n),p=(r+o)*c,v=f+d-p+(o-s)*(u+c),g=l+p,y=h+d,m=f-h+l+(a-r)*(n+i);return e.set(0,0,v),e.set(0,1,g),e.set(1,0,y),e.set(1,1,m),e}},{key:"strassen3x3",value:function(t){t=qe.checkMatrix(t);var e=new qe(3,3),r=this.get(0,0),n=this.get(0,1),o=this.get(0,2),i=this.get(1,0),a=this.get(1,1),u=this.get(1,2),s=this.get(2,0),c=this.get(2,1),f=this.get(2,2),h=t.get(0,0),l=t.get(0,1),d=t.get(0,2),p=t.get(1,0),v=t.get(1,1),g=t.get(1,2),y=t.get(2,0),m=t.get(2,1),b=t.get(2,2),w=(r-i)*(-l+v),x=(-r+i+a)*(h-l+v),M=(i+a)*(-h+l),k=r*h,_=(-r+s+c)*(h-d+g),S=(-r+s)*(d-g),E=(s+c)*(-h+d),j=(-o+c+f)*(v+y-m),A=(o-f)*(v-m),O=o*y,N=(c+f)*(-y+m),I=(-o+a+u)*(g+y-b),R=(o-u)*(g-b),P=(a+u)*(-y+b),C=k+O+n*p,z=(r+n+o-i-a-c-f)*v+x+M+k+j+O+N,F=k+_+E+(r+n+o-a-u-s-c)*g+O+I+P,T=w+a*(-h+l+p-v-g-y+b)+x+k+O+I+R,D=w+x+M+k+u*m,q=O+I+R+P+i*d,L=k+_+S+c*(-h+d+p-v-g-y+m)+j+A+O,B=j+A+O+N+s*l,V=k+_+S+E+f*b;return e.set(0,0,C),e.set(0,1,z),e.set(0,2,F),e.set(1,0,T),e.set(1,1,D),e.set(1,2,q),e.set(2,0,L),e.set(2,1,B),e.set(2,2,V),e}},{key:"mmulStrassen",value:function(e){e=qe.checkMatrix(e);var r=this.clone(),n=r.rows,o=r.columns,i=e.rows,a=e.columns;function u(e,r,n){var o=e.rows,i=e.columns;if(o===r&&i===n)return e;var a=t.zeros(r,n);return a=a.setSubMatrix(e,0,0)}o!==i&&console.warn("Multiplying ".concat(n," x ").concat(o," and ").concat(i," x ").concat(a," matrix: dimensions do not match."));var s=Math.max(n,i),c=Math.max(o,a);return function e(r,n,o,i){if(o<=512||i<=512)return r.mmul(n);o%2==1&&i%2==1?(r=u(r,o+1,i+1),n=u(n,o+1,i+1)):o%2==1?(r=u(r,o+1,i),n=u(n,o+1,i)):i%2==1&&(r=u(r,o,i+1),n=u(n,o,i+1));var a=parseInt(r.rows/2,10),s=parseInt(r.columns/2,10),c=r.subMatrix(0,a-1,0,s-1),f=n.subMatrix(0,a-1,0,s-1),h=r.subMatrix(0,a-1,s,r.columns-1),l=n.subMatrix(0,a-1,s,n.columns-1),d=r.subMatrix(a,r.rows-1,0,s-1),p=n.subMatrix(a,n.rows-1,0,s-1),v=r.subMatrix(a,r.rows-1,s,r.columns-1),g=n.subMatrix(a,n.rows-1,s,n.columns-1),y=e(t.add(c,v),t.add(f,g),a,s),m=e(t.add(d,v),f,a,s),b=e(c,t.sub(l,g),a,s),w=e(v,t.sub(p,f),a,s),x=e(t.add(c,h),g,a,s),M=e(t.sub(d,c),t.add(f,l),a,s),k=e(t.sub(h,v),t.add(p,g),a,s),_=t.add(y,w);_.sub(x),_.add(k);var S=t.add(b,x),E=t.add(m,w),j=t.sub(y,m);j.add(b),j.add(M);var A=t.zeros(2*_.rows,2*_.columns);return(A=(A=(A=(A=A.setSubMatrix(_,0,0)).setSubMatrix(S,_.rows,0)).setSubMatrix(E,0,_.columns)).setSubMatrix(j,_.rows,_.columns)).subMatrix(0,o-1,0,i-1)}(r=u(r,s,c),e=u(e,s,c),s,c)}},{key:"scaleRows",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==Ie(t))throw new TypeError("options must be an object");var e=t.min,r=void 0===e?0:e,n=t.max,o=void 0===n?1:n;if(!Number.isFinite(r))throw new TypeError("min must be a number");if(!Number.isFinite(o))throw new TypeError("max must be a number");if(r>=o)throw new RangeError("min must be smaller than max");for(var i=new qe(this.rows,this.columns),a=0;a<this.rows;a++){var u=this.getRow(a);Zt(u,{min:r,max:o,output:u}),i.setRow(a,u)}return i}},{key:"scaleColumns",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==Ie(t))throw new TypeError("options must be an object");var e=t.min,r=void 0===e?0:e,n=t.max,o=void 0===n?1:n;if(!Number.isFinite(r))throw new TypeError("min must be a number");if(!Number.isFinite(o))throw new TypeError("max must be a number");if(r>=o)throw new RangeError("min must be smaller than max");for(var i=new qe(this.rows,this.columns),a=0;a<this.columns;a++){var u=this.getColumn(a);Zt(u,{min:r,max:o,output:u}),i.setColumn(a,u)}return i}},{key:"flipRows",value:function(){for(var t=Math.ceil(this.columns/2),e=0;e<this.rows;e++)for(var r=0;r<t;r++){var n=this.get(e,r),o=this.get(e,this.columns-1-r);this.set(e,r,o),this.set(e,this.columns-1-r,n)}return this}},{key:"flipColumns",value:function(){for(var t=Math.ceil(this.rows/2),e=0;e<this.columns;e++)for(var r=0;r<t;r++){var n=this.get(r,e),o=this.get(this.rows-1-r,e);this.set(r,e,o),this.set(this.rows-1-r,e,n)}return this}},{key:"kroneckerProduct",value:function(t){t=qe.checkMatrix(t);for(var e=this.rows,r=this.columns,n=t.rows,o=t.columns,i=new qe(e*n,r*o),a=0;a<e;a++)for(var u=0;u<r;u++)for(var s=0;s<n;s++)for(var c=0;c<o;c++)i.set(n*a+s,o*u+c,this.get(a,u)*t.get(s,c));return i}},{key:"transpose",value:function(){for(var t=new qe(this.columns,this.rows),e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)t.set(r,e,this.get(e,r));return t}},{key:"sortRows",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fe,e=0;e<this.rows;e++)this.setRow(e,this.getRow(e).sort(t));return this}},{key:"sortColumns",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fe,e=0;e<this.columns;e++)this.setColumn(e,this.getColumn(e).sort(t));return this}},{key:"subMatrix",value:function(t,e,r,n){le(this,t,e,r,n);for(var o=new qe(e-t+1,n-r+1),i=t;i<=e;i++)for(var a=r;a<=n;a++)o.set(i-t,a-r,this.get(i,a));return o}},{key:"subMatrixRow",value:function(t,e,r){if(void 0===e&&(e=0),void 0===r&&(r=this.columns-1),e>r||e<0||e>=this.columns||r<0||r>=this.columns)throw new RangeError("Argument out of range");for(var n=new qe(t.length,r-e+1),o=0;o<t.length;o++)for(var i=e;i<=r;i++){if(t[o]<0||t[o]>=this.rows)throw new RangeError("Row index out of range: ".concat(t[o]));n.set(o,i-e,this.get(t[o],i))}return n}},{key:"subMatrixColumn",value:function(t,e,r){if(void 0===e&&(e=0),void 0===r&&(r=this.rows-1),e>r||e<0||e>=this.rows||r<0||r>=this.rows)throw new RangeError("Argument out of range");for(var n=new qe(r-e+1,t.length),o=0;o<t.length;o++)for(var i=e;i<=r;i++){if(t[o]<0||t[o]>=this.columns)throw new RangeError("Column index out of range: ".concat(t[o]));n.set(i-e,o,this.get(i,t[o]))}return n}},{key:"setSubMatrix",value:function(t,e,r){le(this,e,e+(t=qe.checkMatrix(t)).rows-1,r,r+t.columns-1);for(var n=0;n<t.rows;n++)for(var o=0;o<t.columns;o++)this.set(e+n,r+o,t.get(n,o));return this}},{key:"selection",value:function(t,e){for(var r=function(t,e,r){return{row:fe(t,e),column:he(t,r)}}(this,t,e),n=new qe(t.length,e.length),o=0;o<r.row.length;o++)for(var i=r.row[o],a=0;a<r.column.length;a++){var u=r.column[a];n.set(o,a,this.get(i,u))}return n}},{key:"trace",value:function(){for(var t=Math.min(this.rows,this.columns),e=0,r=0;r<t;r++)e+=this.get(r,r);return e}},{key:"clone",value:function(){for(var t=new qe(this.rows,this.columns),e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)t.set(e,r,this.get(e,r));return t}},{key:"sum",value:function(t){switch(t){case"row":return function(t){for(var e=de(t.rows),r=0;r<t.rows;++r)for(var n=0;n<t.columns;++n)e[r]+=t.get(r,n);return e}(this);case"column":return function(t){for(var e=de(t.columns),r=0;r<t.rows;++r)for(var n=0;n<t.columns;++n)e[n]+=t.get(r,n);return e}(this);case void 0:return function(t){for(var e=0,r=0;r<t.rows;r++)for(var n=0;n<t.columns;n++)e+=t.get(r,n);return e}(this);default:throw new Error("invalid option: ".concat(t))}}},{key:"product",value:function(t){switch(t){case"row":return function(t){for(var e=de(t.rows,1),r=0;r<t.rows;++r)for(var n=0;n<t.columns;++n)e[r]*=t.get(r,n);return e}(this);case"column":return function(t){for(var e=de(t.columns,1),r=0;r<t.rows;++r)for(var n=0;n<t.columns;++n)e[n]*=t.get(r,n);return e}(this);case void 0:return function(t){for(var e=1,r=0;r<t.rows;r++)for(var n=0;n<t.columns;n++)e*=t.get(r,n);return e}(this);default:throw new Error("invalid option: ".concat(t))}}},{key:"mean",value:function(t){var e=this.sum(t);switch(t){case"row":for(var r=0;r<this.rows;r++)e[r]/=this.columns;return e;case"column":for(var n=0;n<this.columns;n++)e[n]/=this.rows;return e;case void 0:return e/this.size;default:throw new Error("invalid option: ".concat(t))}}},{key:"variance",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===Ie(t)&&(e=t,t=void 0),"object"!==Ie(e))throw new TypeError("options must be an object");var r=e,n=r.unbiased,o=void 0===n||n,i=r.mean,a=void 0===i?this.mean(t):i;if("boolean"!=typeof o)throw new TypeError("unbiased must be a boolean");switch(t){case"row":if(!Array.isArray(a))throw new TypeError("mean must be an array");return ve(this,o,a);case"column":if(!Array.isArray(a))throw new TypeError("mean must be an array");return ge(this,o,a);case void 0:if("number"!=typeof a)throw new TypeError("mean must be a number");return ye(this,o,a);default:throw new Error("invalid option: ".concat(t))}}},{key:"standardDeviation",value:function(t,e){"object"===Ie(t)&&(e=t,t=void 0);var r=this.variance(t,e);if(void 0===t)return Math.sqrt(r);for(var n=0;n<r.length;n++)r[n]=Math.sqrt(r[n]);return r}},{key:"center",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===Ie(t)&&(e=t,t=void 0),"object"!==Ie(e))throw new TypeError("options must be an object");var r=e,n=r.center,o=void 0===n?this.mean(t):n;switch(t){case"row":if(!Array.isArray(o))throw new TypeError("center must be an array");return me(this,o),this;case"column":if(!Array.isArray(o))throw new TypeError("center must be an array");return be(this,o),this;case void 0:if("number"!=typeof o)throw new TypeError("center must be a number");return we(this,o),this;default:throw new Error("invalid option: ".concat(t))}}},{key:"scale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===Ie(t)&&(e=t,t=void 0),"object"!==Ie(e))throw new TypeError("options must be an object");var r=e.scale;switch(t){case"row":if(void 0===r)r=xe(this);else if(!Array.isArray(r))throw new TypeError("scale must be an array");return Me(this,r),this;case"column":if(void 0===r)r=ke(this);else if(!Array.isArray(r))throw new TypeError("scale must be an array");return _e(this,r),this;case void 0:if(void 0===r)r=Se(this);else if("number"!=typeof r)throw new TypeError("scale must be a number");return Ee(this,r),this;default:throw new Error("invalid option: ".concat(t))}}},{key:"toString",value:function(t){return re(this,t)}},{key:"size",get:function(){return this.rows*this.columns}}],[{key:"from1DArray",value:function(t,e,r){if(t*e!==r.length)throw new RangeError("data length does not match given dimensions");for(var n=new qe(t,e),o=0;o<t;o++)for(var i=0;i<e;i++)n.set(o,i,r[o*e+i]);return n}},{key:"rowVector",value:function(t){for(var e=new qe(1,t.length),r=0;r<t.length;r++)e.set(0,r,t[r]);return e}},{key:"columnVector",value:function(t){for(var e=new qe(t.length,1),r=0;r<t.length;r++)e.set(r,0,t[r]);return e}},{key:"zeros",value:function(t,e){return new qe(t,e)}},{key:"ones",value:function(t,e){return new qe(t,e).fill(1)}},{key:"rand",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!==Ie(r))throw new TypeError("options must be an object");for(var n=r.random,o=void 0===n?Math.random:n,i=new qe(t,e),a=0;a<t;a++)for(var u=0;u<e;u++)i.set(a,u,o());return i}},{key:"randInt",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!==Ie(r))throw new TypeError("options must be an object");var n=r.min,o=void 0===n?0:n,i=r.max,a=void 0===i?1e3:i,u=r.random,s=void 0===u?Math.random:u;if(!Number.isInteger(o))throw new TypeError("min must be an integer");if(!Number.isInteger(a))throw new TypeError("max must be an integer");if(o>=a)throw new RangeError("min must be smaller than max");for(var c=a-o,f=new qe(t,e),h=0;h<t;h++)for(var l=0;l<e;l++){var d=o+Math.round(s()*c);f.set(h,l,d)}return f}},{key:"eye",value:function(t,e,r){void 0===e&&(e=t),void 0===r&&(r=1);for(var n=Math.min(t,e),o=this.zeros(t,e),i=0;i<n;i++)o.set(i,i,r);return o}},{key:"diag",value:function(t,e,r){var n=t.length;void 0===e&&(e=n),void 0===r&&(r=e);for(var o=Math.min(n,e,r),i=this.zeros(e,r),a=0;a<o;a++)i.set(a,a,t[a]);return i}},{key:"min",value:function(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);for(var r=t.rows,n=t.columns,o=new qe(r,n),i=0;i<r;i++)for(var a=0;a<n;a++)o.set(i,a,Math.min(t.get(i,a),e.get(i,a)));return o}},{key:"max",value:function(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);for(var r=t.rows,n=t.columns,o=new this(r,n),i=0;i<r;i++)for(var a=0;a<n;a++)o.set(i,a,Math.max(t.get(i,a),e.get(i,a)));return o}},{key:"checkMatrix",value:function(e){return t.isMatrix(e)?e:new qe(e)}},{key:"isMatrix",value:function(t){return null!=t&&"Matrix"===t.klass}}]),t}();function Fe(t,e){return t-e}ze.prototype.klass="Matrix","undefined"!=typeof Symbol&&(ze.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return re(this)}),ze.random=ze.rand,ze.randomInt=ze.randInt,ze.diagonal=ze.diag,ze.prototype.diagonal=ze.prototype.diag,ze.identity=ze.eye,ze.prototype.negate=ze.prototype.neg,ze.prototype.tensorProduct=ze.prototype.kroneckerProduct;var Te,De,qe=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&je(t,e)}(r,t);var e=Ae(r);function r(t,n){var o;if(Re(this,r),o=e.call(this),r.isMatrix(t))return Oe(o,t.clone());if(Number.isInteger(t)&&t>0){if(o.data=[],!(Number.isInteger(n)&&n>0))throw new TypeError("nColumns must be a positive integer");for(var i=0;i<t;i++)o.data.push(new Float64Array(n))}else{if(!Array.isArray(t))throw new TypeError("First argument must be a positive number or an array");var a=t;if(t=a.length,"number"!=typeof(n=a[0].length)||0===n)throw new TypeError("Data must be a 2D array with at least one element");o.data=[];for(var u=0;u<t;u++){if(a[u].length!==n)throw new RangeError("Inconsistent array dimensions");o.data.push(Float64Array.from(a[u]))}}return o.rows=t,o.columns=n,o}return Ce(r,[{key:"set",value:function(t,e,r){return this.data[t][e]=r,this}},{key:"get",value:function(t,e){return this.data[t][e]}},{key:"removeRow",value:function(t){if(ae(this,t),1===this.rows)throw new RangeError("A matrix cannot have less than one row");return this.data.splice(t,1),this.rows-=1,this}},{key:"addRow",value:function(t,e){return void 0===e&&(e=t,t=this.rows),ae(this,t,!0),e=Float64Array.from(se(this,e)),this.data.splice(t,0,e),this.rows+=1,this}},{key:"removeColumn",value:function(t){if(ue(this,t),1===this.columns)throw new RangeError("A matrix cannot have less than one column");for(var e=0;e<this.rows;e++){for(var r=new Float64Array(this.columns-1),n=0;n<t;n++)r[n]=this.data[e][n];for(var o=t+1;o<this.columns;o++)r[o-1]=this.data[e][o];this.data[e]=r}return this.columns-=1,this}},{key:"addColumn",value:function(t,e){void 0===e&&(e=t,t=this.columns),ue(this,t,!0),e=ce(this,e);for(var r=0;r<this.rows;r++){for(var n=new Float64Array(this.columns+1),o=0;o<t;o++)n[o]=this.data[r][o];for(n[o++]=e[r];o<this.columns+1;o++)n[o]=this.data[r][o-1];this.data[r]=n}return this.columns+=1,this}}]),r}(ze);function Le(t){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Be(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ve(t,e){return(Ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ue(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=He(t);if(e){var o=He(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Ye(this,r)}}function Ye(t,e){return!e||"object"!==Le(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function He(t){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}De=qe,(Te=ze).prototype.add=function(t){return"number"==typeof t?this.addS(t):this.addM(t)},Te.prototype.addS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)+t);return this},Te.prototype.addM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)+t.get(e,r));return this},Te.add=function(t,e){return new De(t).add(e)},Te.prototype.sub=function(t){return"number"==typeof t?this.subS(t):this.subM(t)},Te.prototype.subS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)-t);return this},Te.prototype.subM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)-t.get(e,r));return this},Te.sub=function(t,e){return new De(t).sub(e)},Te.prototype.subtract=Te.prototype.sub,Te.prototype.subtractS=Te.prototype.subS,Te.prototype.subtractM=Te.prototype.subM,Te.subtract=Te.sub,Te.prototype.mul=function(t){return"number"==typeof t?this.mulS(t):this.mulM(t)},Te.prototype.mulS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)*t);return this},Te.prototype.mulM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)*t.get(e,r));return this},Te.mul=function(t,e){return new De(t).mul(e)},Te.prototype.multiply=Te.prototype.mul,Te.prototype.multiplyS=Te.prototype.mulS,Te.prototype.multiplyM=Te.prototype.mulM,Te.multiply=Te.mul,Te.prototype.div=function(t){return"number"==typeof t?this.divS(t):this.divM(t)},Te.prototype.divS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)/t);return this},Te.prototype.divM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)/t.get(e,r));return this},Te.div=function(t,e){return new De(t).div(e)},Te.prototype.divide=Te.prototype.div,Te.prototype.divideS=Te.prototype.divS,Te.prototype.divideM=Te.prototype.divM,Te.divide=Te.div,Te.prototype.mod=function(t){return"number"==typeof t?this.modS(t):this.modM(t)},Te.prototype.modS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)%t);return this},Te.prototype.modM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)%t.get(e,r));return this},Te.mod=function(t,e){return new De(t).mod(e)},Te.prototype.modulus=Te.prototype.mod,Te.prototype.modulusS=Te.prototype.modS,Te.prototype.modulusM=Te.prototype.modM,Te.modulus=Te.mod,Te.prototype.and=function(t){return"number"==typeof t?this.andS(t):this.andM(t)},Te.prototype.andS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)&t);return this},Te.prototype.andM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)&t.get(e,r));return this},Te.and=function(t,e){return new De(t).and(e)},Te.prototype.or=function(t){return"number"==typeof t?this.orS(t):this.orM(t)},Te.prototype.orS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)|t);return this},Te.prototype.orM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)|t.get(e,r));return this},Te.or=function(t,e){return new De(t).or(e)},Te.prototype.xor=function(t){return"number"==typeof t?this.xorS(t):this.xorM(t)},Te.prototype.xorS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)^t);return this},Te.prototype.xorM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)^t.get(e,r));return this},Te.xor=function(t,e){return new De(t).xor(e)},Te.prototype.leftShift=function(t){return"number"==typeof t?this.leftShiftS(t):this.leftShiftM(t)},Te.prototype.leftShiftS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)<<t);return this},Te.prototype.leftShiftM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)<<t.get(e,r));return this},Te.leftShift=function(t,e){return new De(t).leftShift(e)},Te.prototype.signPropagatingRightShift=function(t){return"number"==typeof t?this.signPropagatingRightShiftS(t):this.signPropagatingRightShiftM(t)},Te.prototype.signPropagatingRightShiftS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)>>t);return this},Te.prototype.signPropagatingRightShiftM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)>>t.get(e,r));return this},Te.signPropagatingRightShift=function(t,e){return new De(t).signPropagatingRightShift(e)},Te.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t)},Te.prototype.rightShiftS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)>>>t);return this},Te.prototype.rightShiftM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,this.get(e,r)>>>t.get(e,r));return this},Te.rightShift=function(t,e){return new De(t).rightShift(e)},Te.prototype.zeroFillRightShift=Te.prototype.rightShift,Te.prototype.zeroFillRightShiftS=Te.prototype.rightShiftS,Te.prototype.zeroFillRightShiftM=Te.prototype.rightShiftM,Te.zeroFillRightShift=Te.rightShift,Te.prototype.not=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,~this.get(t,e));return this},Te.not=function(t){return new De(t).not()},Te.prototype.abs=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.abs(this.get(t,e)));return this},Te.abs=function(t){return new De(t).abs()},Te.prototype.acos=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.acos(this.get(t,e)));return this},Te.acos=function(t){return new De(t).acos()},Te.prototype.acosh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.acosh(this.get(t,e)));return this},Te.acosh=function(t){return new De(t).acosh()},Te.prototype.asin=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.asin(this.get(t,e)));return this},Te.asin=function(t){return new De(t).asin()},Te.prototype.asinh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.asinh(this.get(t,e)));return this},Te.asinh=function(t){return new De(t).asinh()},Te.prototype.atan=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.atan(this.get(t,e)));return this},Te.atan=function(t){return new De(t).atan()},Te.prototype.atanh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.atanh(this.get(t,e)));return this},Te.atanh=function(t){return new De(t).atanh()},Te.prototype.cbrt=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.cbrt(this.get(t,e)));return this},Te.cbrt=function(t){return new De(t).cbrt()},Te.prototype.ceil=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.ceil(this.get(t,e)));return this},Te.ceil=function(t){return new De(t).ceil()},Te.prototype.clz32=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.clz32(this.get(t,e)));return this},Te.clz32=function(t){return new De(t).clz32()},Te.prototype.cos=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.cos(this.get(t,e)));return this},Te.cos=function(t){return new De(t).cos()},Te.prototype.cosh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.cosh(this.get(t,e)));return this},Te.cosh=function(t){return new De(t).cosh()},Te.prototype.exp=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.exp(this.get(t,e)));return this},Te.exp=function(t){return new De(t).exp()},Te.prototype.expm1=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.expm1(this.get(t,e)));return this},Te.expm1=function(t){return new De(t).expm1()},Te.prototype.floor=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.floor(this.get(t,e)));return this},Te.floor=function(t){return new De(t).floor()},Te.prototype.fround=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.fround(this.get(t,e)));return this},Te.fround=function(t){return new De(t).fround()},Te.prototype.log=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log(this.get(t,e)));return this},Te.log=function(t){return new De(t).log()},Te.prototype.log1p=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log1p(this.get(t,e)));return this},Te.log1p=function(t){return new De(t).log1p()},Te.prototype.log10=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log10(this.get(t,e)));return this},Te.log10=function(t){return new De(t).log10()},Te.prototype.log2=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log2(this.get(t,e)));return this},Te.log2=function(t){return new De(t).log2()},Te.prototype.round=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.round(this.get(t,e)));return this},Te.round=function(t){return new De(t).round()},Te.prototype.sign=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sign(this.get(t,e)));return this},Te.sign=function(t){return new De(t).sign()},Te.prototype.sin=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sin(this.get(t,e)));return this},Te.sin=function(t){return new De(t).sin()},Te.prototype.sinh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sinh(this.get(t,e)));return this},Te.sinh=function(t){return new De(t).sinh()},Te.prototype.sqrt=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sqrt(this.get(t,e)));return this},Te.sqrt=function(t){return new De(t).sqrt()},Te.prototype.tan=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.tan(this.get(t,e)));return this},Te.tan=function(t){return new De(t).tan()},Te.prototype.tanh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.tanh(this.get(t,e)));return this},Te.tanh=function(t){return new De(t).tanh()},Te.prototype.trunc=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.trunc(this.get(t,e)));return this},Te.trunc=function(t){return new De(t).trunc()},Te.pow=function(t,e){return new De(t).pow(e)},Te.prototype.pow=function(t){return"number"==typeof t?this.powS(t):this.powM(t)},Te.prototype.powS=function(t){for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,Math.pow(this.get(e,r),t));return this},Te.prototype.powM=function(t){if(t=De.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var r=0;r<this.columns;r++)this.set(e,r,Math.pow(this.get(e,r),t.get(e,r)));return this};var We=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ve(t,e)}(i,t);var e,r,n,o=Ue(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).data=t,e.rows=t.length,e.columns=t[0].length,e}return e=i,(r=[{key:"set",value:function(t,e,r){return this.data[t][e]=r,this}},{key:"get",value:function(t,e){return this.data[t][e]}}])&&Be(e.prototype,r),n&&Be(e,n),i}(ze);function Ge(t,e){var r=0;return Math.abs(t)>Math.abs(e)?(r=e/t,Math.abs(t)*Math.sqrt(1+r*r)):0!==e?(r=t/e,Math.abs(e)*Math.sqrt(1+r*r)):0}function $e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var Je=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$e(this,t);var n,o=(e=We.checkMatrix(e)).rows,i=e.columns,a=r.computeLeftSingularVectors,u=void 0===a||a,s=r.computeRightSingularVectors,c=void 0===s||s,f=r.autoTranspose,h=void 0!==f&&f,l=Boolean(u),d=Boolean(c),p=!1;if(o<i)if(h){o=(n=e.transpose()).rows,i=n.columns,p=!0;var v=l;l=d,d=v}else n=e.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else n=e.clone();for(var g=Math.min(o,i),y=Math.min(o+1,i),m=new Float64Array(y),b=new qe(o,g),w=new qe(i,i),x=new Float64Array(i),M=new Float64Array(o),k=new Float64Array(y),_=0;_<y;_++)k[_]=_;for(var S=Math.min(o-1,i),E=Math.max(0,Math.min(i-2,o)),j=Math.max(S,E),A=0;A<j;A++){if(A<S){m[A]=0;for(var O=A;O<o;O++)m[A]=Ge(m[A],n.get(O,A));if(0!==m[A]){n.get(A,A)<0&&(m[A]=-m[A]);for(var N=A;N<o;N++)n.set(N,A,n.get(N,A)/m[A]);n.set(A,A,n.get(A,A)+1)}m[A]=-m[A]}for(var I=A+1;I<i;I++){if(A<S&&0!==m[A]){for(var R=0,P=A;P<o;P++)R+=n.get(P,A)*n.get(P,I);R=-R/n.get(A,A);for(var C=A;C<o;C++)n.set(C,I,n.get(C,I)+R*n.get(C,A))}x[I]=n.get(A,I)}if(l&&A<S)for(var z=A;z<o;z++)b.set(z,A,n.get(z,A));if(A<E){x[A]=0;for(var F=A+1;F<i;F++)x[A]=Ge(x[A],x[F]);if(0!==x[A]){x[A+1]<0&&(x[A]=0-x[A]);for(var T=A+1;T<i;T++)x[T]/=x[A];x[A+1]+=1}if(x[A]=-x[A],A+1<o&&0!==x[A]){for(var D=A+1;D<o;D++)M[D]=0;for(var q=A+1;q<o;q++)for(var L=A+1;L<i;L++)M[q]+=x[L]*n.get(q,L);for(var B=A+1;B<i;B++)for(var V=-x[B]/x[A+1],U=A+1;U<o;U++)n.set(U,B,n.get(U,B)+V*M[U])}if(d)for(var Y=A+1;Y<i;Y++)w.set(Y,A,x[Y])}}var H=Math.min(i,o+1);if(S<i&&(m[S]=n.get(S,S)),o<H&&(m[H-1]=0),E+1<H&&(x[E]=n.get(E,H-1)),x[H-1]=0,l){for(var W=S;W<g;W++){for(var G=0;G<o;G++)b.set(G,W,0);b.set(W,W,1)}for(var $=S-1;$>=0;$--)if(0!==m[$]){for(var X=$+1;X<g;X++){for(var J=0,Q=$;Q<o;Q++)J+=b.get(Q,$)*b.get(Q,X);J=-J/b.get($,$);for(var K=$;K<o;K++)b.set(K,X,b.get(K,X)+J*b.get(K,$))}for(var Z=$;Z<o;Z++)b.set(Z,$,-b.get(Z,$));b.set($,$,1+b.get($,$));for(var tt=0;tt<$-1;tt++)b.set(tt,$,0)}else{for(var et=0;et<o;et++)b.set(et,$,0);b.set($,$,1)}}if(d)for(var rt=i-1;rt>=0;rt--){if(rt<E&&0!==x[rt])for(var nt=rt+1;nt<i;nt++){for(var ot=0,it=rt+1;it<i;it++)ot+=w.get(it,rt)*w.get(it,nt);ot=-ot/w.get(rt+1,rt);for(var at=rt+1;at<i;at++)w.set(at,nt,w.get(at,nt)+ot*w.get(at,rt))}for(var ut=0;ut<i;ut++)w.set(ut,rt,0);w.set(rt,rt,1)}for(var st=H-1,ct=Number.EPSILON;H>0;){var ft=void 0,ht=void 0;for(ft=H-2;ft>=-1&&-1!==ft;ft--){var lt=Number.MIN_VALUE+ct*Math.abs(m[ft]+Math.abs(m[ft+1]));if(Math.abs(x[ft])<=lt||Number.isNaN(x[ft])){x[ft]=0;break}}if(ft===H-2)ht=4;else{var dt=void 0;for(dt=H-1;dt>=ft&&dt!==ft;dt--){var pt=(dt!==H?Math.abs(x[dt]):0)+(dt!==ft+1?Math.abs(x[dt-1]):0);if(Math.abs(m[dt])<=ct*pt){m[dt]=0;break}}dt===ft?ht=3:dt===H-1?ht=1:(ht=2,ft=dt)}switch(ft++,ht){case 1:var vt=x[H-2];x[H-2]=0;for(var gt=H-2;gt>=ft;gt--){var yt=Ge(m[gt],vt),mt=m[gt]/yt,bt=vt/yt;if(m[gt]=yt,gt!==ft&&(vt=-bt*x[gt-1],x[gt-1]=mt*x[gt-1]),d)for(var wt=0;wt<i;wt++)yt=mt*w.get(wt,gt)+bt*w.get(wt,H-1),w.set(wt,H-1,-bt*w.get(wt,gt)+mt*w.get(wt,H-1)),w.set(wt,gt,yt)}break;case 2:var xt=x[ft-1];x[ft-1]=0;for(var Mt=ft;Mt<H;Mt++){var kt=Ge(m[Mt],xt),_t=m[Mt]/kt,St=xt/kt;if(m[Mt]=kt,xt=-St*x[Mt],x[Mt]=_t*x[Mt],l)for(var Et=0;Et<o;Et++)kt=_t*b.get(Et,Mt)+St*b.get(Et,ft-1),b.set(Et,ft-1,-St*b.get(Et,Mt)+_t*b.get(Et,ft-1)),b.set(Et,Mt,kt)}break;case 3:var jt=Math.max(Math.abs(m[H-1]),Math.abs(m[H-2]),Math.abs(x[H-2]),Math.abs(m[ft]),Math.abs(x[ft])),At=m[H-1]/jt,Ot=m[H-2]/jt,Nt=x[H-2]/jt,It=m[ft]/jt,Rt=x[ft]/jt,Pt=((Ot+At)*(Ot-At)+Nt*Nt)/2,Ct=At*Nt*(At*Nt),zt=0;0===Pt&&0===Ct||(zt=Ct/(Pt+(zt=Pt<0?0-Math.sqrt(Pt*Pt+Ct):Math.sqrt(Pt*Pt+Ct))));for(var Ft=(It+At)*(It-At)+zt,Tt=It*Rt,Dt=ft;Dt<H-1;Dt++){var qt=Ge(Ft,Tt);0===qt&&(qt=Number.MIN_VALUE);var Lt=Ft/qt,Bt=Tt/qt;if(Dt!==ft&&(x[Dt-1]=qt),Ft=Lt*m[Dt]+Bt*x[Dt],x[Dt]=Lt*x[Dt]-Bt*m[Dt],Tt=Bt*m[Dt+1],m[Dt+1]=Lt*m[Dt+1],d)for(var Vt=0;Vt<i;Vt++)qt=Lt*w.get(Vt,Dt)+Bt*w.get(Vt,Dt+1),w.set(Vt,Dt+1,-Bt*w.get(Vt,Dt)+Lt*w.get(Vt,Dt+1)),w.set(Vt,Dt,qt);if(0===(qt=Ge(Ft,Tt))&&(qt=Number.MIN_VALUE),Lt=Ft/qt,Bt=Tt/qt,m[Dt]=qt,Ft=Lt*x[Dt]+Bt*m[Dt+1],m[Dt+1]=-Bt*x[Dt]+Lt*m[Dt+1],Tt=Bt*x[Dt+1],x[Dt+1]=Lt*x[Dt+1],l&&Dt<o-1)for(var Ut=0;Ut<o;Ut++)qt=Lt*b.get(Ut,Dt)+Bt*b.get(Ut,Dt+1),b.set(Ut,Dt+1,-Bt*b.get(Ut,Dt)+Lt*b.get(Ut,Dt+1)),b.set(Ut,Dt,qt)}x[H-2]=Ft,1;break;case 4:if(m[ft]<=0&&(m[ft]=m[ft]<0?-m[ft]:0,d))for(var Yt=0;Yt<=st;Yt++)w.set(Yt,ft,-w.get(Yt,ft));for(;ft<st&&!(m[ft]>=m[ft+1]);){var Ht=m[ft];if(m[ft]=m[ft+1],m[ft+1]=Ht,d&&ft<i-1)for(var Wt=0;Wt<i;Wt++)Ht=w.get(Wt,ft+1),w.set(Wt,ft+1,w.get(Wt,ft)),w.set(Wt,ft,Ht);if(l&&ft<o-1)for(var Gt=0;Gt<o;Gt++)Ht=b.get(Gt,ft+1),b.set(Gt,ft+1,b.get(Gt,ft)),b.set(Gt,ft,Ht);ft++}0,H--}}if(p){var $t=w;w=b,b=$t}this.m=o,this.n=i,this.s=m,this.U=b,this.V=w}var e,r,n;return e=t,(r=[{key:"solve",value:function(t){for(var e=t,r=this.threshold,n=this.s.length,o=qe.zeros(n,n),i=0;i<n;i++)Math.abs(this.s[i])<=r?o.set(i,i,0):o.set(i,i,1/this.s[i]);for(var a=this.U,u=this.rightSingularVectors,s=u.mmul(o),c=u.rows,f=a.rows,h=qe.zeros(c,f),l=0;l<c;l++)for(var d=0;d<f;d++){for(var p=0,v=0;v<n;v++)p+=s.get(l,v)*a.get(d,v);h.set(l,d,p)}return h.mmul(e)}},{key:"solveForDiagonal",value:function(t){return this.solve(qe.diag(t))}},{key:"inverse",value:function(){for(var t=this.V,e=this.threshold,r=t.rows,n=t.columns,o=new qe(r,this.s.length),i=0;i<r;i++)for(var a=0;a<n;a++)Math.abs(this.s[a])>e&&o.set(i,a,t.get(i,a)/this.s[a]);for(var u=this.U,s=u.rows,c=u.columns,f=new qe(r,s),h=0;h<r;h++)for(var l=0;l<s;l++){for(var d=0,p=0;p<c;p++)d+=o.get(h,p)*u.get(l,p);f.set(h,l,d)}return f}},{key:"condition",get:function(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}},{key:"norm2",get:function(){return this.s[0]}},{key:"rank",get:function(){for(var t=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,e=0,r=this.s,n=0,o=r.length;n<o;n++)r[n]>t&&e++;return e}},{key:"diagonal",get:function(){return Array.from(this.s)}},{key:"threshold",get:function(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}},{key:"leftSingularVectors",get:function(){return this.U}},{key:"rightSingularVectors",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){return qe.diag(this.s)}}])&&Xe(e.prototype,r),n&&Xe(e,n),t}(),Qe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.linkDistance=50,e.scaledDistances=null,e}return a(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],linkDistance:50}},e.prototype.execute=function(){var t=this.nodes,e=this.edges,r=void 0===e?[]:e,n=this.center;if(t&&0!==t.length){if(1===t.length)return t[0].x=n[0],void(t[0].y=n[1]);var o=this.linkDistance,i=O({nodes:t,edges:r},!1),a=A(i);this.handleInfinity(a);var u,s,c=(u=o,s=[],a.forEach((function(t){var e=[];t.forEach((function(t){e.push(t*u)})),s.push(e)})),s);this.scaledDistances=c;var f=this.runMDS();this.positions=f,f.forEach((function(e,r){t[r].x=e[0]+n[0],t[r].y=e[1]+n[1]}))}},e.prototype.runMDS=function(){var t=this.scaledDistances,e=qe.mul(qe.pow(t,2),-.5),r=e.mean("row"),n=e.mean("column"),o=e.mean();e.add(o).subRowVector(r).subColumnVector(n);var i=new Je(e),a=qe.sqrt(i.diagonalMatrix).diagonal();return i.leftSingularVectors.toJSON().map((function(t){return qe.mul([t],[a]).toJSON()[0].splice(0,2)}))},e.prototype.handleInfinity=function(t){var e=-999999;t.forEach((function(t){t.forEach((function(t){t!==1/0&&e<t&&(e=t)}))})),t.forEach((function(r,n){r.forEach((function(r,o){r===1/0&&(t[n][o]=e)}))}))},e}(c),Ke=function(){function t(t){this.distances=t.distances,this.dimension=t.dimension||2,this.linkDistance=t.linkDistance}return t.prototype.layout=function(){var t=this.dimension,e=this.distances,r=this.linkDistance;try{var n=qe.mul(qe.pow(e,2),-.5),o=n.mean("row"),i=n.mean("column"),a=n.mean();n.add(a).subRowVector(o).subColumnVector(i);var u=new Je(n),s=qe.sqrt(u.diagonalMatrix).diagonal();return u.leftSingularVectors.toJSON().map((function(e){return qe.mul([e],[s]).toJSON()[0].splice(0,t)}))}catch(t){for(var c=[],f=0;f<e.length;f++){var h=Math.random()*r,l=Math.random()*r;c.push([h,l])}return c}},t}(),Ze=function(){function t(t){this.disp=[],this.positions=t.positions,this.adjMatrix=t.adjMatrix,this.focusID=t.focusID,this.radii=t.radii,this.iterations=t.iterations||10,this.height=t.height||10,this.width=t.width||10,this.speed=t.speed||100,this.gravity=t.gravity||10,this.nodeSizeFunc=t.nodeSizeFunc,this.k=t.k||5,this.strictRadial=t.strictRadial,this.nodes=t.nodes}return t.prototype.layout=function(){var t=this.positions,e=[],r=this.iterations,n=this.width/10;this.maxDisplace=n,this.disp=e;for(var o=0;o<r;o++)t.forEach((function(t,r){e[r]={x:0,y:0}})),this.getRepulsion(),this.updatePositions();return t},t.prototype.getRepulsion=function(){var t=this,e=t.positions,r=t.nodes,n=t.disp,o=t.k,i=t.radii||[];e.forEach((function(a,u){n[u]={x:0,y:0},e.forEach((function(e,s){if(u!==s&&i[u]===i[s]){var c=a[0]-e[0],f=a[1]-e[1],h=Math.sqrt(c*c+f*f);if(0===h){h=1;var l=u>s?1:-1;c=.01*l,f=.01*l}if(h<t.nodeSizeFunc(r[u])/2+t.nodeSizeFunc(r[s])/2){var d=o*o/h;n[u].x+=c/h*d,n[u].y+=f/h*d}}}))}))},t.prototype.updatePositions=function(){var t=this.positions,e=this.disp,r=this.speed,n=this.strictRadial,o=this.focusID,i=this.maxDisplace||this.width/10;n&&e.forEach((function(e,r){var n=t[r][0]-t[o][0],i=t[r][1]-t[o][1],a=Math.sqrt(n*n+i*i),u=i/a,s=-n/a,c=Math.sqrt(e.x*e.x+e.y*e.y),f=Math.acos((u*e.x+s*e.y)/c);f>Math.PI/2&&(f-=Math.PI/2,u*=-1,s*=-1);var h=Math.cos(f)*c;e.x=u*h,e.y=s*h}));var a=this.radii;t.forEach((function(u,s){if(s!==o){var c=Math.sqrt(e[s].x*e[s].x+e[s].y*e[s].y);if(c>0&&s!==o){var f=Math.min(i*(r/800),c);if(u[0]+=e[s].x/c*f,u[1]+=e[s].y/c*f,n){var h=u[0]-t[o][0],l=u[1]-t[o][1],d=Math.sqrt(h*h+l*l);h=h/d*a[s],l=l/d*a[s],u[0]=t[o][0]+h,u[1]=t[o][1]+l}}}}))},t}();function tr(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var er=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=1e3,e.focusNode=null,e.unitRadius=null,e.linkDistance=50,e.preventOverlap=!1,e.strictRadial=!0,e.maxPreventOverlapIteration=200,e.sortStrength=10,e}return a(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200,sortBy:void 0,sortStrength:10}},e.prototype.execute=function(){var t=this,e=t.nodes,r=t.edges||[],n=t.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=n[0],void(e[0].y=n[1]);var o=t.linkDistance,i=null;if(C()(t.focusNode)){for(var a=!1,u=0;u<e.length;u++)e[u].id===t.focusNode&&(i=e[u],t.focusNode=i,a=!0,u=e.length);a||(i=null)}else i=t.focusNode;i||(i=e[0],t.focusNode=i);var s,c,f,h=(s=e,c=i.id,f=-1,s.forEach((function(t,e){t.id===c&&(f=e)})),f);t.focusIndex=h;var l=O({nodes:e,edges:r},!1),d=A(l),p=t.maxToFocus(d,h);t.handleInfinity(d,h,p+1),t.distances=d;var v=d[h];t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var g=t.width||500,y=t.height||500,m=g-n[0]>n[0]?n[0]:g-n[0],b=y-n[1]>n[1]?n[1]:y-n[1];0===m&&(m=g/2),0===b&&(b=y/2);var w=b>m?m:b,x=Math.max.apply(Math,v),M=[];v.forEach((function(e,r){t.unitRadius||(t.unitRadius=w/x),M[r]=e*t.unitRadius})),t.radii=M;var k=t.eIdealDisMatrix();t.eIdealDistances=k;var _=function(t){for(var e=t.length,r=t[0].length,n=[],o=0;o<e;o++){for(var i=[],a=0;a<r;a++)0!==t[o][a]?i.push(1/(t[o][a]*t[o][a])):i.push(0);n.push(i)}return n}(k);t.weights=_;var S=new Ke({distances:k,linkDistance:o}).layout();S.forEach((function(t){Gt(t[0])&&(t[0]=Math.random()*o),Gt(t[1])&&(t[1]=Math.random()*o)})),t.positions=S,S.forEach((function(t,r){e[r].x=t[0]+n[0],e[r].y=t[1]+n[1]})),S.forEach((function(t){t[0]-=S[h][0],t[1]-=S[h][1]})),t.run();var E=t.preventOverlap,N=t.nodeSize,I=t.strictRadial;if(E){var R,P=t.nodeSpacing;R=Tt()(P)?function(){return P}:zt()(P)?P:function(){return 0};var z={nodeSizeFunc:N?j()(N)?function(t){return(N[0]>N[1]?N[0]:N[1])+R(t)}:function(t){return N+R(t)}:function(t){return t.size?j()(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])+R(t):t.size+R(t):10+R(t)},adjMatrix:l,positions:S,radii:M,height:y,width:g,strictRadial:I,focusID:h,iterations:t.maxPreventOverlapIteration||200,k:S.length/4.5,nodes:e},F=new Ze(z);S=F.layout()}S.forEach((function(t,r){e[r].x=t[0]+n[0],e[r].y=t[1]+n[1]}))}},e.prototype.run=function(){for(var t=this.maxIteration,e=this.positions||[],r=this.weights||[],n=this.eIdealDistances||[],o=this.radii||[],i=0;i<=t;i++){var a=i/t;this.oneIteration(a,e,o,n,r)}},e.prototype.oneIteration=function(t,e,r,n,o){var i=1-t,a=this.focusIndex;e.forEach((function(u,s){var c=tr(u,[0,0]),f=0===c?0:1/c;if(s!==a){var h=0,l=0,d=0;e.forEach((function(t,e){if(s!==e){var r=tr(u,t),i=0===r?0:1/r,a=n[e][s];d+=o[s][e],h+=o[s][e]*(t[0]+a*(u[0]-t[0])*i),l+=o[s][e]*(t[1]+a*(u[1]-t[1])*i)}}));var p=0===r[s]?0:1/r[s];d*=i,d+=t*p*p,h*=i,h+=t*p*u[0]*f,u[0]=h/d,l*=i,l+=t*p*u[1]*f,u[1]=l/d}}))},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var r=t.distances,n=t.linkDistance,o=t.radii||[],i=t.unitRadius||50,a=[];return r&&r.forEach((function(r,u){var s=[];r.forEach((function(r,a){if(u===a)s.push(0);else if(o[u]===o[a])if("data"===t.sortBy)s.push(r*(Math.abs(u-a)*t.sortStrength)/(o[u]/i));else if(t.sortBy){var c=e[u][t.sortBy]||0,f=e[a][t.sortBy]||0;C()(c)&&(c=c.charCodeAt(0)),C()(f)&&(f=f.charCodeAt(0)),s.push(r*(Math.abs(c-f)*t.sortStrength)/(o[u]/i))}else s.push(r*n/(o[u]/i));else{var h=(n+i)/2;s.push(r*h)}})),a.push(s)})),a},e.prototype.handleInfinity=function(t,e,r){for(var n=t.length,o=0;o<n;o++)if(t[e][o]===1/0){t[e][o]=r,t[o][e]=r;for(var i=0;i<n;i++)t[o][i]!==1/0&&t[e][i]===1/0&&(t[e][i]=r+t[o][i],t[i][e]=r+t[o][i])}for(o=0;o<n;o++)if(o!==e)for(i=0;i<n;i++)if(t[o][i]===1/0){var a=Math.abs(t[e][o]-t[e][i]);a=0===a?1:a,t[o][i]=a}},e.prototype.maxToFocus=function(t,e){for(var r=0,n=0;n<t[e].length;n++)t[e][n]!==1/0&&(r=t[e][n]>r?t[e][n]:r);return r},e}(c),rr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.width=300,e.height=300,e}return a(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,e=t.nodes,r=t.center;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),e&&e.forEach((function(e){e.x=.9*(Math.random()-.5)*t.width+r[0],e.y=.9*(Math.random()-.5)*t.height+r[1]}))},e}(c),nr=r(32),or=r.n(nr),ir=r(33),ar=r.n(ir),ur=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function sr(t,e,r){var n;return(n=Math.round(t.h)>=60&&Math.round(t.h)<=240?r?Math.round(t.h)-2*e:Math.round(t.h)+2*e:r?Math.round(t.h)+2*e:Math.round(t.h)-2*e)<0?n+=360:n>=360&&(n-=360),n}function cr(t,e,r){return 0===t.h&&0===t.s?t.s:((n=r?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(n=1),r&&5===e&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function fr(t,e,r){var n;return(n=r?t.v+.05*e:t.v-.15*e)>1&&(n=1),Number(n.toFixed(2))}function hr(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=ar()(t),o=5;o>0;o-=1){var i=n.toHsv(),a=ar()({h:sr(i,o,!0),s:cr(i,o,!0),v:fr(i,o,!0)}).toHexString();r.push(a)}r.push(n.toHexString());for(var u=1;u<=4;u+=1){var s=n.toHsv(),c=ar()({h:sr(s,u),s:cr(s,u),v:fr(s,u)}).toHexString();r.push(c)}return"dark"===e.theme?ur.map((function(t){var n=t.index,o=t.opacity;return ar.a.mix(e.backgroundColor||"#141414",r[n],100*o).toHexString()})):r}var lr={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},dr={},pr={};Object.keys(lr).forEach((function(t){dr[t]=hr(lr[t]),dr[t].primary=dr[t][5],pr[t]=hr(lr[t],{theme:"dark",backgroundColor:"#141414"}),pr[t].primary=pr[t][5]}));dr.red,dr.volcano,dr.gold,dr.orange,dr.yellow,dr.lime,dr.green,dr.cyan,dr.blue,dr.geekblue,dr.purple,dr.magenta,dr.grey;var vr=function(t,e,r){var n=or()(t),o=or()(e);return or()([(1-r)*n.color[0]+r*o.color[0],(1-r)*n.color[1]+r*o.color[1],(1-r)*n.color[2]+r*o.color[2]]).rgb()},gr=function(t,e,r,n){void 0===e&&(e="#fff"),void 0===r&&(r="default"),void 0===n&&(n="rgb(150, 150, 150)");var o=vr(e,t,.05).rgb().toString(),i=vr(e,n,.02).rgb().toString(),a=vr(e,n,.05).rgb().toString(),u=vr(e,n,.1).rgb().toString(),s=vr(e,n,.2).rgb().toString(),c=vr(e,n,.3).rgb().toString(),f=hr(t,{theme:r,backgroundColor:e}),h=or()(t).hex().toLowerCase(),l=f.indexOf(h),d=t;return-1!==l&&(d=f[l+1]),{mainStroke:t,mainFill:vr(e,t,.1).rgb().toString(),activeStroke:t,activeFill:o,inactiveStroke:vr(e,t,.4).rgb().toString(),inactiveFill:o,selectedStroke:t,selectedFill:e,highlightStroke:d,highlightFill:vr(e,t,.2).rgb().toString(),disableStroke:c,disableFill:a,edgeMainStroke:c,edgeActiveStroke:t,edgeInactiveStroke:s,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:u,comboMainStroke:c,comboMainFill:i,comboActiveStroke:t,comboActiveFill:o,comboInactiveStroke:c,comboInactiveFill:i,comboSelectedStroke:t,comboSelectedFill:i,comboHighlightStroke:d,comboHighlightFill:i,comboDisableStroke:s,comboDisableFill:a}}("rgb(95, 149, 255)","rgb(255, 255, 255)"),yr={version:"3.8.5",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",customGroupContainerClassName:"custom-group-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:gr.mainStroke,fill:gr.mainFill},size:20,color:gr.mainStroke,linkPoints:{size:8,lineWidth:1,fill:gr.activeFill,stroke:gr.activeStroke}},nodeStateStyles:{active:{fill:gr.activeFill,stroke:gr.activeStroke,lineWidth:2,shadowColor:gr.mainStroke,shadowBlur:10},selected:{fill:gr.selectedFill,stroke:gr.selectedStroke,lineWidth:4,shadowColor:gr.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:gr.highlightFill,stroke:gr.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:gr.inactiveFill,stroke:gr.inactiveStroke,lineWidth:1},disable:{fill:gr.disableFill,stroke:gr.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:"rgb(0, 0, 0)",textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:gr.edgeMainStroke,lineAppendWidth:2},color:gr.edgeMainStroke},edgeStateStyles:{active:{stroke:gr.edgeActiveStroke,lineWidth:1},selected:{stroke:gr.edgeSelectedStroke,lineWidth:2,shadowColor:gr.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:gr.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:gr.edgeInactiveStroke,lineWidth:1},disable:{stroke:gr.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:"rgb(0, 0, 0)",textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:gr.comboMainFill,lineWidth:1,stroke:gr.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:gr.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:gr.comboActiveStroke,lineWidth:1,fill:gr.comboActiveFill},selected:{stroke:gr.comboSelectedStroke,lineWidth:2,fill:gr.comboSelectedFill,shadowColor:gr.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:gr.comboHighlightStroke,lineWidth:2,fill:gr.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:gr.comboInactiveStroke,fill:gr.comboInactiveFill,lineWidth:1},disable:{stroke:gr.comboDisableStroke,fill:gr.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"},mr=Math.PI,br=Math.sin,wr=Math.cos,xr=(br(mr/8),wr(mr/8),function(t,e){if(t&&t.children)for(var r=t.children.length-1;r>=0;r--)if(!xr(t.children[r],e))return;return!1!==e(t)}),Mr=function(t,e){"function"==typeof e&&xr(t,e)},kr={circular:R,concentric:z,dagre:D,force:Vt,g6force:Yt,comboForce:function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=100,e.gravity=10,e.comboGravity=10,e.linkDistance=10,e.alpha=1,e.alphaMin=.001,e.alphaDecay=1-Math.pow(e.alphaMin,1/300),e.alphaTarget=0,e.velocityDecay=.6,e.edgeStrength=.2,e.nodeStrength=30,e.preventOverlap=!1,e.preventNodeOverlap=!1,e.preventComboOverlap=!1,e.collideStrength=void 0,e.nodeCollideStrength=void 0,e.comboCollideStrength=void 0,e.optimizeRangeFactor=1,e.onTick=function(){},e.onLayoutEnd=function(){},e.depthAttractiveForceScale=.5,e.depthRepulsiveForceScale=2,e.nodes=[],e.edges=[],e.combos=[],e.comboTrees=[],e.width=300,e.height=300,e.bias=[],e.nodeMap={},e.oriComboMap={},e.nodeIdxMap={},e.comboMap={},e.previousLayouted=!1,e}return a(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.2,nodeStrength:30,linkDistance:10}},e.prototype.execute=function(){var t=this.nodes,e=this.center;if(this.comboTree={id:"comboTreeRoot",depth:-1,children:this.comboTrees},t&&0!==t.length){if(1===t.length)return t[0].x=e[0],void(t[0].y=e[1]);this.initVals(),this.run(),this.onLayoutEnd()}},e.prototype.run=function(){var t=this,e=t.nodes,r=t.previousLayouted?t.maxIteration/5:t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var n=t.center,o=t.velocityDecay,i=t.comboMap;t.previousLayouted||t.initPos(i);for(var a=function(r){var n=[];e.forEach((function(t,e){n[e]={x:0,y:0}})),t.applyCalculate(n),t.applyComboCenterForce(n),e.forEach((function(t,e){k(t.x)&&k(t.y)&&(t.x+=n[e].x*o,t.y+=n[e].y*o)})),t.alpha+=(t.alphaTarget-t.alpha)*t.alphaDecay,t.onTick()},u=0;u<r;u++)a();var s=[0,0];e.forEach((function(t){k(t.x)&&k(t.y)&&(s[0]+=t.x,s[1]+=t.y)})),s[0]/=e.length,s[1]/=e.length;var c=[n[0]-s[0],n[1]-s[1]];e.forEach((function(t,e){k(t.x)&&k(t.y)&&(t.x+=c[0],t.y+=c[1])})),t.combos.forEach((function(t){var e=i[t.id];e&&e.empty&&(t.x=e.cx||t.x,t.y=e.cy||t.y)})),t.previousLayouted=!0},e.prototype.initVals=function(){var t=this.edges,e=this.nodes,r=this.combos,n={},o={},i={};e.forEach((function(t,e){o[t.id]=t,i[t.id]=e})),this.nodeMap=o,this.nodeIdxMap=i;var a={};r.forEach((function(t){a[t.id]=t})),this.oriComboMap=a,this.comboMap=this.getComboMap();var u=this.preventOverlap;this.preventComboOverlap=this.preventComboOverlap||u,this.preventNodeOverlap=this.preventNodeOverlap||u;var s=this.collideStrength;s&&(this.comboCollideStrength=s,this.nodeCollideStrength=s);for(var c=0;c<t.length;++c)n[t[c].source]?n[t[c].source]++:n[t[c].source]=1,n[t[c].target]?n[t[c].target]++:n[t[c].target]=1;var f=[];for(c=0;c<t.length;++c)f[c]=n[t[c].source]/(n[t[c].source]+n[t[c].target]);this.bias=f;var h,l,d=this.nodeSize,p=this.nodeSpacing;if(l=k(p)?function(){return p}:g(p)?p:function(){return 0},this.nodeSpacing=l,d)if(g(d))h=function(t){return d(t)};else if(y(d)){var v=(d[0]>d[1]?d[0]:d[1])/2;h=function(t){return v}}else{var m=d/2;h=function(t){return m}}else h=function(t){return t.size?y(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2:t.size/2:10};this.nodeSize=h;var b,w=this.comboSpacing;b=k(w)?function(){return w}:g(w)?w:function(){return 0},this.comboSpacing=b;var x,M=this.comboPadding;x=k(M)?function(){return M}:y(M)?function(){return Math.max.apply(null,M)}:g(M)?M:function(){return 0},this.comboPadding=x;var _,S=this.linkDistance;S||(S=10),_=k(S)?function(t){return S}:S,this.linkDistance=_;var E,j=this.edgeStrength;j||(j=1),E=k(j)?function(t){return j}:j,this.edgeStrength=E;var A,O=this.nodeStrength;O||(O=30),A=k(O)?function(t){return O}:O,this.nodeStrength=A},e.prototype.initPos=function(t){this.nodes.forEach((function(e,r){if(e.comboId){var n=t[e.comboId];e.x=n.cx+100/(r+1),e.y=n.cy+100/(r+1)}else e.x=100/(r+1),e.y=100/(r+1)}))},e.prototype.getComboMap=function(){var t=this,e=t.nodeMap,r=t.nodeIdxMap,n=t.comboTrees,o=t.oriComboMap,i={};return(n||[]).forEach((function(n){var a=[];Mr(n,(function(n){if("node"===n.itemType)return!0;if(!o[n.id])return!0;if(void 0===i[n.id]){var u={name:n.id,cx:0,cy:0,count:0,depth:t.oriComboMap[n.id].depth,children:[]};i[n.id]=u}var s=n.children;s&&s.forEach((function(t){if(!i[t.id]&&!e[t.id])return!0;a.push(t)}));var c=i[n.id];if(c.cx=0,c.cy=0,0===a.length){c.empty=!0;var f=o[n.id],h=Object.keys(e).length,l=n.id+"-visual-child-"+h,d={id:l,x:f.x,y:f.y,depth:c.depth+1,itemType:"node"};t.nodes.push(d),e[l]=d,r[l]=h,c.cx=f.x,c.cy=f.y,a.push(d)}return a.forEach((function(t){if(c.count++,"node"!==t.itemType){var r=i[t.id];return k(r.cx)&&(c.cx+=r.cx),void(k(r.cy)&&(c.cy+=r.cy))}var n=e[t.id];n&&(k(n.x)&&(c.cx+=n.x),k(n.y)&&(c.cy+=n.y))})),c.cx/=c.count,c.cy/=c.count,c.children=a,!0}))})),i},e.prototype.applyComboCenterForce=function(t){var e=this.gravity,r=this.comboGravity||e,n=this.alpha,o=this.comboTrees,i=this.nodeIdxMap,a=this.nodeMap,u=this.comboMap;(o||[]).forEach((function(e){Mr(e,(function(e){if("node"===e.itemType)return!0;if(!u[e.id])return!0;var o=u[e.id],s=.5*(o.depth+1),c=o.cx,f=o.cy;return o.cx=0,o.cy=0,o.children.forEach((function(e){if("node"!==e.itemType){var h=u[e.id];return h&&k(h.cx)&&(o.cx+=h.cx),void(h&&k(h.cy)&&(o.cy+=h.cy))}var l=a[e.id],d=l.x-c||.005,p=l.y-f||.005,v=Math.sqrt(d*d+p*p),g=i[l.id],y=r*n/v*s;t[g].x-=d*y,t[g].y-=p*y,k(l.x)&&(o.cx+=l.x),k(l.y)&&(o.cy+=l.y)})),o.cx/=o.count,o.cy/=o.count,!0}))}))},e.prototype.applyCalculate=function(t){var e=this.comboMap,r=this.nodes,n={};r.forEach((function(t,e){r.forEach((function(r,o){if(!(e<o)){var i=t.x-r.x||.005,a=t.y-r.y||.005,u=i*i+a*a,s=Math.sqrt(u);u<1&&(u=s),n[t.id+"-"+r.id]={vx:i,vy:a,vl2:u,vl:s},n[r.id+"-"+t.id]={vx:-i,vy:-a,vl2:u,vl:s}}}))})),this.updateComboSizes(e),this.calRepulsive(t,n),this.calAttractive(t,n),this.preventComboOverlap&&this.comboNonOverlapping(t,e)},e.prototype.updateComboSizes=function(t){var e=this,r=e.comboTrees,n=e.nodeMap,o=e.nodeSize,i=e.comboSpacing,a=e.comboPadding;(r||[]).forEach((function(r){var u=[];Mr(r,(function(r){if("node"===r.itemType)return!0;var s=t[r.id];if(s){var c=r.children;c&&c.forEach((function(e){(t[e.id]||n[e.id])&&u.push(e)})),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0,u.forEach((function(t){if("node"!==t.itemType)return!0;var e=n[t.id];if(!e)return!0;var r=o(e),i=e.x-r,a=e.y-r,u=e.x+r,c=e.y+r;s.minX>i&&(s.minX=i),s.minY>a&&(s.minY=a),s.maxX<u&&(s.maxX=u),s.maxY<c&&(s.maxY=c)}));var f=e.oriComboMap[r.id].size||yr.defaultCombo.size;y(f)&&(f=f[0]);var h=Math.max(s.maxX-s.minX,s.maxY-s.minY,f);return s.r=h/2+i(s)/2+a(s),!0}}))}))},e.prototype.comboNonOverlapping=function(t,e){var r=this.comboTree,n=this.comboCollideStrength,o=this.nodeIdxMap,i=this.nodeMap;Mr(r,(function(r){if(e[r.id]||i[r.id]||"comboTreeRoot"===r.id){var a=r.children;return a&&a.length>1&&a.forEach((function(r,u){if("node"!==r.itemType){var s=e[r.id];s&&a.forEach((function(a,c){if(!(u<=c)&&"node"!==a.itemType){var f=e[a.id];if(f){var h=s.cx-f.cx||.005,l=s.cy-f.cy||.005,d=h*h+l*l,p=s.r,v=f.r,g=p+v,y=v*v,m=p*p;if(d<g*g){var b=r.children;if(!b||0===b.length)return;var w=a.children;if(!w||0===w.length)return;var x=Math.sqrt(d),M=(g-x)/x*n,k=h*M,_=l*M,S=y/(m+y),E=1-S;b.forEach((function(e){if("node"===e.itemType&&i[e.id]){var r=o[e.id];w.forEach((function(e){if("node"===e.itemType&&i[e.id]){var n=o[e.id];t[r].x+=k*S,t[r].y+=_*S,t[n].x-=k*E,t[n].y-=_*E}}))}}))}}}}))}})),!0}}))},e.prototype.calRepulsive=function(t,e){var r=this,n=r.nodes,o=r.width*r.optimizeRangeFactor,i=r.nodeStrength,a=r.alpha,u=r.nodeCollideStrength,s=r.preventNodeOverlap,c=r.nodeSize,f=r.nodeSpacing,h=r.depthRepulsiveForceScale,l=r.center;n.forEach((function(d,p){if(d.x&&d.y){if(l){var v=r.gravity,g=d.x-l[0]||.005,y=d.y-l[1]||.005,m=Math.sqrt(g*g+y*y);t[p].x-=g*v*a/m,t[p].y-=y*v*a/m}n.forEach((function(r,n){if(p!==n&&r.x&&r.y){var l=e[d.id+"-"+r.id],v=l.vl2,g=l.vl;if(!(g>o)){var y=e[d.id+"-"+r.id],m=y.vx,b=y.vy,w=Math.abs(r.depth-d.depth)+1||1;r.comboId!==d.comboId&&w++;var x=w?Math.pow(h,w):1,M=i(r)*a/v*x;if(t[p].x+=m*M,t[p].y+=b*M,p<n&&s){var k=c(d)+f(d),_=c(r)+f(r),S=k+_;if(v<S*S){var E=(S-g)/g*u,j=_*_,A=j/(k*k+j),O=m*E,N=b*E;t[p].x+=O*A,t[p].y+=N*A,A=1-A,t[n].x-=O*A,t[n].y-=N*A}}}}}))}}))},e.prototype.calAttractive=function(t,e){var r=this,n=r.edges,o=r.linkDistance,i=r.alpha,a=r.edgeStrength,u=r.bias,s=r.depthAttractiveForceScale;n.forEach((function(n,c){if(n.source&&n.target&&n.source!==n.target){var f=r.nodeIdxMap[n.source],h=r.nodeIdxMap[n.target],l=r.nodeMap[n.source],d=r.nodeMap[n.target],p=Math.abs(l.depth-d.depth);l.comboId===d.comboId&&(p/=2);var v=p?Math.pow(s,p):1;if(l.comboId!==d.comboId&&1===v?v=s/2:l.comboId===d.comboId&&(v=2),k(d.x)&&k(l.x)&&k(d.y)&&k(l.y)){var g=e[n.target+"-"+n.source],y=g.vl,m=g.vx,b=g.vy,w=(y-o(n))/y*i*a(n)*v,x=m*w,M=b*w,_=u[c];t[h].x-=x*_,t[h].y-=M*_,t[f].x+=x*(1-_),t[f].y+=M*(1-_)}}}))},e}(c),fruchterman:Ht,grid:$t,mds:Qe,radial:er,random:rr};o()(kr,(function(t,e){h.registerLayout(e,{},t)}));var _r=h,Sr=self;Sr.onmessage=function(t){(function(t){return t.data.type===Dt})(t)&&function(t){switch(t.data.type){case Dt:var e=t.data,r=e.nodes,n=e.edges,o=e.layoutCfg,i=void 0===o?{}:o,a=i.type,u=_r[a];if(!u){Sr.postMessage({type:Lt,message:"layout "+a+" not found"});break}var s=new u(i);s.init({nodes:r,edges:n}),s.execute(),Sr.postMessage({type:qt,nodes:r}),s.destroy()}}(t)};e.default=null}]);\n//# sourceMappingURL=g6Layout.worker.js.map',"Worker",void 0,n.p+"g6Layout.worker.js")},mo=function(t){return setTimeout(t,16)},vo=function(t){return clearTimeout(t)},yo=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||mo)(t)},bo=function(t){return(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||vo)(t)},xo=function(){function t(t){this.graph=t,this.layoutCfg=t.get("layout")||{},this.layoutType=this.layoutCfg.type,this.worker=null,this.workerData={},this.initLayout()}return t.prototype.initLayout=function(){},t.prototype.getWorker=function(){return this.worker||("undefined"==typeof Worker?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=new go),this.worker},t.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(bo(t.requestId),t.requestId=null),t.requestId2&&(bo(t.requestId2),t.requestId2=null))},t.prototype.getLayoutType=function(){return this.layoutCfg.type},t.prototype.layout=function(t){var e=this.graph;this.data=this.setDataFromGraph();var n=this.data.nodes;if(!n)return!1;var i=e.get("width"),r=e.get("height"),o={};Object.assign(o,{width:i,height:r,center:[i/2,r/2]},this.layoutCfg),this.layoutCfg=o;var a=!!this.layoutType,s=this.layoutMethod;s&&s.destroy(),e.emit("beforelayout");var l=this.initPositions(o.center,n);if(this.stopWorker(),o.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;if("force"===this.layoutType||"g6force"===this.layoutType){var c=o.onTick,u=function(){c&&c(),e.refreshPositions()};o.tick=u;var h=o.onLayoutEnd;o.onLayoutEnd=function(){h&&h(),e.emit("afterlayout")}}else"comboForce"===this.layoutType&&(o.comboTrees=e.get("comboTrees"));var d=!1;if(void 0!==this.layoutType){try{s=new ho[this.layoutType](o)}catch(t){return console.warn("The layout method: "+this.layoutType+" does not exist! Please specify it first."),!1}if(d=s.enableTick){var p=o.onTick,f=o.onLayoutEnd;u=function(){p&&p(),e.refreshPositions()},s.tick=u,s.onLayoutEnd=function(){f&&f(),e.emit("afterlayout")}}s.init(this.data),a&&s.execute(),this.layoutMethod=s}return!a&&l||"force"===this.layoutType||d||(e.emit("afterlayout"),this.refreshLayout()),!1},t.prototype.layoutWithWorker=function(t,e){var n=this,i=t.nodes,r=t.edges,o=this.layoutCfg,a=(this.graph,this.getWorker()),s=this.workerData;if(!a)return!1;s.requestId=null,s.requestId2=null,s.currentTick=null,s.currentTickData=null;var l=function(t,e){var n={};return t&&"object"==typeof t?(Object.keys(t).forEach((function(i){t.hasOwnProperty(i)&&e(t[i])&&(n[i]=t[i])})),n):t}(o,(function(t){return"function"!=typeof t}));return a.postMessage({type:Xi,nodes:i,edges:r,layoutCfg:l}),a.onmessage=function(i){n.handleWorkerMessage(i,t,e)},!0},t.prototype.handleWorkerMessage=function(t,e,n){var i=this.graph,r=this.workerData,o=this.layoutCfg,a=t.data,s=a.type,l=function(){o.onTick&&o.onTick()},c=function(){o.onLayoutEnd&&o.onLayoutEnd(),i.emit("afterlayout")};switch(s){case Ki:r.currentTick=a.currentTick,r.currentTickData=a,r.requestId||(r.requestId=yo((function(){wo(e,a),i.refreshPositions(),l(),1===a.currentTick&&n&&n(),a.currentTick===a.totalTicks?c():r.currentTick===a.totalTicks&&(r.requestId2=yo((function(){wo(e,r.currentTickData),i.refreshPositions(),r.requestId2=null,l(),c()}))),r.requestId=null})));break;case qi:null==r.currentTick&&(wo(e,a),this.refreshLayout(),n&&n(),i.emit("afterlayout"))}},t.prototype.refreshLayout=function(){var t=this.graph;t.get("animate")?t.positionsAnimate():t.refreshPositions()},t.prototype.updateLayoutCfg=function(t){var e=this.graph,n=this.layoutMethod;this.layoutType=t.type,n?(this.data=this.setDataFromGraph(),this.stopWorker(),t.workerEnabled&&this.layoutWithWorker(this.data,null)||(n.init(this.data),n.updateCfg(t),e.emit("beforelayout"),n.execute(),"force"===this.layoutType||n.enableTick||e.emit("afterlayout"),this.refreshLayout())):console.warn("You did not assign any layout type and the graph has no previous layout method!")},t.prototype.changeLayout=function(t){var e=this.graph,n=this.layoutMethod;this.layoutType=t,this.layoutCfg=e.get("layout")||{},this.layoutCfg.type=t,n&&n.destroy(),this.layout()},t.prototype.changeData=function(){var t=this.layoutMethod;t&&t.destroy(),this.layout()},t.prototype.destroyLayout=function(){var t=this.layoutMethod,e=this.graph;t&&t.destroy(),e.set("layout",void 0),this.layoutCfg=void 0,this.layoutType=void 0,this.layoutMethod=void 0},t.prototype.setDataFromGraph=function(){var t=[],e=[],n=[],i=this.graph.getNodes(),r=this.graph.getEdges(),o=this.graph.getCombos();return i.forEach((function(e){if(e.isVisible()){var n=e.getModel();t.push(n)}})),r.forEach((function(t){if(!t.destroyed&&t.isVisible()){var n=t.getModel();n.isComboEdge||e.push(n)}})),o.forEach((function(t){if(!t.destroyed&&t.isVisible()){var e=t.getModel();n.push(e)}})),{nodes:t,edges:e,combos:n}},t.prototype.relayout=function(t){var e=this.graph,n=this.layoutMethod,i=this.layoutCfg;if(t){this.data=this.setDataFromGraph();var r=this.data.nodes;if(!r)return!1;this.initPositions(i.center,r),n.init(this.data)}"force"===this.layoutType&&(n.ticking=!1,n.forceSimulation.stop()),e.emit("beforelayout"),n.execute(t),"force"===this.layoutType||n.enableTick||e.emit("afterlayout"),this.refreshLayout()},t.prototype.layoutAnimate=function(){},t.prototype.moveToZero=function(){var t=this.graph.get("data").nodes;if(void 0!==t[0].x&&null!==t[0].x&&!O(t[0].x)){var e=[0,0];t.forEach((function(t){e[0]+=t.x,e[1]+=t.y})),e[0]/=t.length,e[1]/=t.length,t.forEach((function(t){t.x-=e[0],t.y-=e[1]}))}},t.prototype.initPositions=function(t,e){var n=this.graph;if(!e)return!1;var i=!0,r=.85*n.get("width"),o=.85*n.get("height"),a=e.length,s=Math.ceil(Math.sqrt(a)*(r/o)),l=Math.ceil(a/s),c=r/(s-1),u=o/(l-1);isFinite(c)&&c||(c=0),isFinite(u)&&c||(u=0);var h=t[0]-r/2,d=t[1]-o/2;return e.forEach((function(t,e){O(t.x)&&(i=!1,t.x=e%s*c+h),O(t.y)&&(i=!1,t.y=Math.floor(e/s)*u+d)})),i},t.prototype.destroy=function(){var t=this.layoutMethod;this.graph=null,t&&t.destroy();var e=this.worker;e&&(e.terminate(),this.worker=null),this.destroyed=!0},t}();function wo(t,e){var n=t.nodes,i=e.nodes;n.forEach((function(t,e){t.x=i[e].x,t.y=i[e].y}))}var _o=null,Co=function(){function t(t){this.graph=t,this.cachedStates={enabled:{},disabled:{}},this.destroyed=!1}return t.checkCache=function(t,e,n){if(n[e]){var i=n[e].indexOf(t);i>=0&&n[e].splice(i,1)}},t.cacheState=function(t,e,n){n[e]||(n[e]=[]),n[e].push(t)},t.prototype.updateState=function(e,n,i){var r=this,o=t.checkCache,a=t.cacheState;if(!e.destroyed){var s=this.cachedStates,l=s.enabled,c=s.disabled;i?(o(e,n,c),a(e,n,l)):(o(e,n,l),a(e,n,c)),_o&&clearTimeout(_o),_o=setTimeout((function(){_o=null,r.updateGraphStates()}),16)}},t.prototype.updateStates=function(t,e,n){var i=this;A()(e)?this.updateState(t,e,n):e.forEach((function(e){i.updateState(t,e,n)}))},t.prototype.updateGraphStates=function(){var t=this.graph.get("states"),e=this.cachedStates;p()(e.disabled,(function(e,n){t[n]&&(t[n]=t[n].filter((function(t){return e.indexOf(t)<0&&!e.destroyed})))})),p()(e.enabled,(function(e,n){if(t[n]){var i={};t[n].forEach((function(t){t.destroyed||(i[t.get("id")]=!0)})),e.forEach((function(e){if(!e.destroyed){var r=e.get("id");i[r]||(i[r]=!0,t[n].push(e))}}))}else t[n]=e})),this.graph.emit("graphstatechange",{states:t}),this.cachedStates={enabled:{},disabled:{}}},t.prototype.destroy=function(){this.graph=null,this.cachedStates=null,_o&&clearTimeout(_o),_o=null,this.destroyed=!0},t}(),Ao=null,Io=function(){function t(e){this.graph=e;var n=e.get("groupStyle");this.styles=Ct()({},t.getDefaultCfg(),n),this.customGroup={},this.delegateInGroup={},this.nodePoint=[],this.destroyed=!1}return t.getDefaultCfg=function(){return{default:{lineWidth:1,stroke:"#A3B1BF",strokeOpacity:.9,fill:"#F3F9FF",fillOpacity:.8,opacity:.8,disCoefficient:.6,minDis:30,maxDis:30},hover:{stroke:"#faad14",fill:"#ffe58f",fillOpacity:.3,opacity:.3,lineWidth:3},collapse:{r:30,width:80,height:40,stroke:"#A3B1BF",lineWidth:3,fill:"#F3F9FF",offsetX:-15,offsetY:5},icon:"https://gw.alipayobjects.com/zos/rmsportal/MXXetJAxlqrbisIuZxDO.svg",operatorBtn:{collapse:{img:"https://gw.alipayobjects.com/zos/rmsportal/uZVdwjJGqDooqKLKtvGA.svg",width:16,height:16},expand:{width:16,height:16,img:"https://gw.alipayobjects.com/zos/rmsportal/MXXetJAxlqrbisIuZxDO.svg"}},visible:!1}},t.prototype.create=function(t,e,n,i,r,o){void 0===n&&(n="circle"),void 0===i&&(i=0),void 0===r&&(r=!1),void 0===o&&(o={});var a=this.graph,s=a.get("customGroup");if(s.get("children").map((function(t){return t.get("id")})).indexOf(t)>-1)console.warn("已经存在ID为 "+t+" 的分组，请重新设置分组ID！");else{var l=s.addGroup({id:t,zIndex:i}),c=this.styles.default,u=this.calculationGroupPosition(e),h=u.x,d=u.y,p=u.width,f=u.height,g=u.maxX,m=this.getGroupPadding(t);a.get("groupBBoxs")[t]={x:h,y:d,width:p,height:f,maxX:g};var v=null;if(r){var y=a.get("groups");e.forEach((function(e){var n=a.findById(e).getModel();n.groupId||(n.groupId=t)})),y.find((function(e){return e.id===t}))||(y.push({id:t,title:o}),a.set({groups:y}))}var b=a.get("groups").filter((function(e){return e.id===t}));b&&b.length>0&&(v=b[0].title);var x=0,w=0,_=null;if("circle"===n){var C=(p+2*h)/2,A=(f+2*d)/2,S=(p>f?p/2:f/2)+m;_=l.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},c),{x:C,y:A,r:S}),draggable:!0,capture:!0,zIndex:i,groupId:t,name:"circle-group-shape"}),x=C,w=A-S,this.setDeletageGroupByStyle(t,l,{width:p,height:f,x:C,y:A,r:S})}else{var M=m*c.disCoefficient;_=l.addShape("rect",{attrs:Object(I.__assign)(Object(I.__assign)({},c),{x:h-M,y:d-M,width:p+2*M,height:f+2*M}),draggable:!0,capture:!0,zIndex:i,groupId:t,name:"rect-group-shape"}),x=h-M+15,w=d-M+15,this.setDeletageGroupByStyle(t,l,{x:h-M,y:d-M,width:p+M,height:f+M,btnOffset:g-3})}if(v){var k=v.offsetX,E=void 0===k?0:k,T=v.offsetY,O=void 0===T?0:T,P=v.text,j=void 0===P?v:P,L=Object(I.__rest)(v,["offsetX","offsetY","text"]);l.addShape("text",{attrs:Object(I.__assign)({text:j,stroke:"#444",x:x+E,y:w+O},L),className:"group-title",name:"group-title-shape"}).set("capture",!1)}l.set("keyShape",_),a.get("groupNodes")[t]=e}},t.prototype.setGroupStyle=function(t,e){if(t&&!t.get("destroyed")){var n={},i=this.styles,r=i.hover,o=i.default;A()(e)?"default"===e?n=Ct()({},o):"hover"===e&&(n=Ct()({},r)):n=Ct()({},o,e),Object.keys(n).forEach((function(e){t.attr(e,n[e])}))}},t.prototype.calculationGroupPosition=function(t,e){if(void 0===e&&(e={x:100,y:100}),0===t.length)return{x:e.x,y:e.y,width:100,height:100};var n=this.graph,i=1/0,r=-1/0,o=1/0,a=-1/0;t.forEach((function(t){var e=(A()(t)?n.findById(t):t).getBBox(),s=e.minX,l=e.minY,c=e.maxX,u=e.maxY;s<i&&(i=s),l<o&&(o=l),c>r&&(r=c),u>a&&(a=u)}));var s=Math.floor(i),l=Math.floor(o);return{x:s,y:l,width:Math.ceil(r)-s,height:Math.ceil(a)-l,maxX:Math.ceil(r)}},t.prototype.flatToTree=function(t,e,n){void 0===e&&(e="id"),void 0===n&&(n="parentId");var i=[],r=[];return t.forEach((function(t){i[t[e]]=t})),t.forEach((function(t){var e=i[t[n]];e?(e.children=e.children||[],e.children.push(t)):r.push(t)})),r},t.prototype.getGroupPadding=function(t){var e=this.graph,n=this.styles.default,i=e.get("groups"),r=i.filter((function(e){return e.parentId===t})),o=1;return r.length>0&&(Ao||(Ao=this.flatToTree(i)),gn(Ao[0],(function(e){if(e.parentId===t&&e.children)return o+=e.children.length,!0}))),i.filter((function(e){return e.id===t&&!e.parentId})).length>0&&(o+=1),i.filter((function(e){return e.parentId===t})).length>0?n.maxDis+30*(o>1?o/2:1):n.minDis},t.prototype.setDeletageGroupByStyle=function(t,e,n){var i=n.width,r=n.height,o=n.x,a=n.y,s=n.r,l=n.btnOffset,c=this.customGroup[t];if(c){var u=c.groupStyle,h=Ct()({},u,n);this.customGroup[t]={nodeGroup:e,groupStyle:h}}else this.customGroup[t]={nodeGroup:e,groupStyle:{width:i,height:r,x:o,y:a,r:s,btnOffset:l}}},t.prototype.getDeletageGroupById=function(t){return this.customGroup[t]},t.prototype.collapseExpandGroup=function(t){var e=this.getDeletageGroupById(t).nodeGroup;e.get("hasHidden")?(e.set("hasHidden",!1),this.expandGroup(t)):(e.set("hasHidden",!0),this.collapseGroup(t))},t.prototype.setGroupTmpNode=function(t,e){var n=this.graph,i=n.get("groupNodes"),r=n.get("groups");i[t].indexOf(e)<0&&i[t].push(e);var o=r.filter((function(e){return e.id===t})),a=null;o.length>0&&(a=o[0].parentId),a&&this.setGroupTmpNode(a,e)},t.prototype.collapseGroup=function(t){var e=this,n=this.getDeletageGroupById(t).nodeGroup,i=this.styles.collapse,r=this.graph,o=r.get("groupType"),a=r.get("groupNodes")[t],s=n.get("keyShape"),l=i.r,c=i.width,u=i.height,h=i.offsetX,d=i.offsetY,p=Object(I.__rest)(i,["r","width","height","offsetX","offsetY"]);Object.keys(p).forEach((function(t){s.attr(t,p[t])}));var f={groupId:t,id:t+"-custom-node",x:s.attr("x"),y:s.attr("y"),style:{r:l},type:"circle"},g=n.find((function(t){return"group-title"===t.get("className")}));"circle"===o?(s.animate({r:l},{duration:500,easing:"easeCubic"}),g&&g.attr({x:s.attr("x")+h,y:s.attr("y")+d})):"rect"===o&&(s.animate({width:c,height:u},{duration:500,easing:"easeCubic"}),g&&g.attr({x:s.attr("x")+10,y:s.attr("y")+u/2+5}),f={groupId:t,id:t+"-custom-node",x:s.attr("x")+c/2,y:s.attr("y")+u/2,size:[c,u],type:"rect"});var m=r.getEdges(),v=m.filter((function(t){var e=t.getModel();return!a.includes(e.source)&&a.includes(e.target)})),y=m.filter((function(t){var e=t.getModel();return a.includes(e.source)&&!a.includes(e.target)})),b=m.filter((function(t){var e=t.getModel();return a.includes(e.source)&&a.includes(e.target)}));if(a.forEach((function(n){var i=r.findById(n),o=i.getModel().groupId;o&&o!==t&&e.getDeletageGroupById(o).nodeGroup.hide(),i.hide()})),b.forEach((function(t){var e=t.getSource(),n=t.getTarget();e.isVisible()&&n.isVisible()?t.show():t.hide()})),v.length>0||y.length>0){var x=r.add("node",f);x.set("capture",!1),x.hide(),this.delegateInGroup[t]={delegateNode:x},this.setGroupTmpNode(t,t+"-custom-node"),this.updateEdgeInGroupLinks(t,v,y)}},t.prototype.updateEdgeInGroupLinks=function(t,e,n){var i=this.graph,r={};e.map((function(e){var n=e.getModel(),o=e.get("id"),a=n.target;return r[o]=a,i.updateItem(e,{target:t+"-custom-node"}),!0}));var o={};n.map((function(e){var n=e.getModel(),r=e.get("id"),a=n.source;return o[r]=a,i.updateItem(e,{source:t+"-custom-node"}),!0})),this.delegateInGroup[t]=Ct()({sourceOutTargetInEdges:e,sourceInTargetOutEdges:n,edgesOuts:r,edgesIn:o},this.delegateInGroup[t])},t.prototype.expandGroup=function(t){var e=this,n=this.graph,i=n.get("groupType"),r=n.get("groupNodes")[t],o=r.filter((function(t){return-1===t.indexOf("custom-node")})),a=this.calculationGroupPosition(o),s=a.width,l=a.height,c=this.getDeletageGroupById(t).nodeGroup,u=c.get("keyShape"),h=this.styles,d=h.default,p=h.collapse;Object.keys(d).forEach((function(t){u.attr(t,d[t])}));var f=c.find((function(t){return"group-title"===t.get("className")})),g=this.getGroupPadding(t);if("circle"===i){var m=s>l?s/2:l/2;u.animate({r:m+g},{duration:500,easing:"easeCubic"})}else if("rect"===i){var v=p.width,y=p.height;u.animate({width:v+s+g*d.disCoefficient*2,height:y+l+g*d.disCoefficient*2},{duration:500,easing:"easeCubic"})}if(f){var b=null,x=n.get("groups").filter((function(e){return e.id===t}));x&&x.length>0&&(b=x[0].title);var w=b.offsetX,_=void 0===w?0:w,C=b.offsetY,A=void 0===C?0:C;"circle"===i?f.animate({x:u.attr("x")+_,y:u.attr("y")-u.attr("r")+A},{duration:600,easing:"easeCubic"}):"rect"===i&&f.animate({x:u.attr("x")+(15+_),y:u.attr("y")+(15+A)},{duration:600,easing:"easeCubic"})}setTimeout((function(){r.forEach((function(i){var r=n.findById(i),o=r.getModel().groupId;if(o&&o!==t){var a=e.getDeletageGroupById(o).nodeGroup;a.show(),a.get("hasHidden")||r.show()}else r.show()})),n.getEdges().filter((function(t){var e=t.getModel();return r.includes(e.source)||r.includes(e.target)})).forEach((function(t){var e=t.getSource(),n=t.getTarget();e.isVisible()&&n.isVisible()&&t.show()}))}),300);var I=this.delegateInGroup[t];if(I){var S=I.sourceOutTargetInEdges,M=I.sourceInTargetOutEdges,k=I.edgesOuts,E=I.edgesIn,T=I.delegateNode;S.map((function(t){var e=t.get("id"),i=k[e];return n.updateItem(t,{target:i}),!0})),M.map((function(t){var e=t.get("id"),i=E[e];return n.updateItem(t,{source:i}),!0}));var O=T.getModel();this.deleteTmpNode(t,O.id),n.remove(T),delete this.delegateInGroup[t]}},t.prototype.deleteTmpNode=function(t,e){var n=this.graph,i=n.get("groups"),r=n.get("groupNodes")[t],o=r.indexOf(e);r.splice(o,1);var a=i.filter((function(e){return e.id===t})),s=null;a.length>0&&(s=a[0].parentId),s&&this.deleteTmpNode(s,e)},t.prototype.remove=function(t){var e=this.graph,n=this.getDeletageGroupById(t);if(n){var i=n.nodeGroup,r=e.get("groupNodes"),o=r[t];o.forEach((function(n){var i=e.findById(n),r=i.getModel(),o=r.groupId;o&&t===o&&(delete r.groupId,e.updateItem(i,r))})),i.destroy(),delete this.customGroup[t];var a=e.get("groups");if(a.length>0){var s=a.filter((function(e){return e.id!==t}));e.set("groups",s)}for(var l=null,c=null,u=0;u<a.length;u++){var h=a[u];if(t===h.id){l=h.parentId,c=h;break}}c&&delete c.parentId,delete r[t],l&&(r[l]=r[l].filter((function(t){return!o.includes(t)})))}},t.prototype.updateGroup=function(t,e,n){var i=this.graph,r=i.get("groupType");this.updateItemInGroup(t,e,n);for(var o=i.save().groups,a=null,s=null,l=0;l<o.length;l++){var c=o[l];if(t===c.id){a=c.parentId,s=c;break}}if(a){var u=this.getDeletageGroupById(a).nodeGroup,h=u.get("keyShape");this.setGroupStyle(h,"default");var d=h.getBBox(),p=d.minX,f=d.minY,g=d.maxX,m=d.maxY,v=this.getDeletageGroupById(t).nodeGroup.get("keyShape").getBBox(),y=v.x,b=v.y;if(!(y<g&&y>p&&b<m&&b>f)){delete s.parentId;var x=i.get("groupNodes"),w=x[t],_=x[a];x[a]=_.filter((function(t){return-1===w.indexOf(t)}));var C=this.calculationGroupPosition(x[a]),A=C.x,I=C.y,S=C.width,M=C.height,k=this.getGroupPadding(a),E=u.find((function(t){return"group-title"===t.get("className")})),T=0,O=0;if("circle"===r){var P=S>M?S/2:M/2,j=A,L=I;h.attr({r:P+k,x:j,y:L}),T=j,O=L-h.attr("r")}else if("rect"===r){var D=k*this.styles.default.disCoefficient;h.attr({x:A-D,y:I-D}),T=A-D+15,O=I-D+15}if(E){var R=s.title,B=0,N=0;R&&(B=R.offsetX,N=R.offsetY),E.attr({x:T+B,y:O+N})}}}},t.prototype.updateItemInGroup=function(t,e,n){var i=this,r=this.graph,o=r.get("groupType"),a=r.get("groupNodes"),s=a[t],l=this.getDeletageGroupById(t).nodeGroup.getBBox(),c=[];s.forEach((function(t,n){var o=r.findById(t),a=o.getModel(),s=a.groupId;s&&!c.includes(s)&&c.push(s),i.nodePoint[n]||(i.nodePoint[n]={x:a.x,y:a.y});var u=e.x-l.x+i.nodePoint[n].x,h=e.y-l.y+i.nodePoint[n].y;i.nodePoint[n]={x:u,y:h},r.updateItem(o,{x:u,y:h})})),c.includes(t)||c.push(t),c.forEach((function(t){var n=i.getDeletageGroupById(t).nodeGroup,r=n.get("keyShape"),s=a[t].filter((function(t){return-1===t.indexOf("custom-node")})),l=i.calculationGroupPosition(s,e),c=l.x,u=l.y,h=l.width,d=l.height,p=0,f=0;if("circle"===o){var g=(h+2*c)/2,m=(d+2*u)/2;r.attr({x:g,y:m}),p=g,f=m-r.attr("r")}else if("rect"===o){var v=n.get("hasHidden"),y={},b=i.getGroupPadding(t)*i.styles.default.disCoefficient;p=c-b+15,f=u-b+15,v?(y={x:c-b,y:u-b},f+=10):y={x:c-b,y:u-b,width:h+2*b,height:d+2*b},r.attr(y)}i.updateGroupTitle(n,t,p,f)}))},t.prototype.updateGroupTitle=function(t,e,n,i){var r=this.graph,o=t.find((function(t){return"group-title"===t.get("className")}));if(o){var a=null,s=r.get("groups").filter((function(t){return t.id===e}));s&&s.length>0&&(a=s[0].title);var l=0,c=0;a&&(l=a.offsetX||0,c=a.offsetY||0),o.attr({x:n+l,y:i+c})}},t.prototype.dynamicChangeGroupSize=function(t,e,n){var i=t.item.getModel().groupId,r=this.graph,o=r.get("groupType"),a=r.get("groupNodes"),s=a[i];if(0===s.length){delete a[i];var l=r.get("groups");r.set("groups",l.filter((function(t){return t.id!==i}))),e.remove()}else{var c=this.calculationGroupPosition(s),u=c.x,h=c.y,d=c.width,p=c.height,f=this.getGroupPadding(i),g=0,m=0;if("circle"===o){var v=d>p?d/2:p/2,y=(d+2*u)/2,b=(p+2*h)/2;n.attr({r:v+f,x:y,y:b}),g=y,m=b-n.attr("r")}else if("rect"===o){var x=f*this.styles.default.disCoefficient;n.attr({x:u-x,y:h-x,width:d+2*x,height:p+2*x}),g=u-x+15,m=h-x+15}this.updateGroupTitle(e,i,g,m)}this.setGroupStyle(n,"default")},t.prototype.resetNodePoint=function(){this.nodePoint.length=0},t.prototype.destroy=function(){this.graph=null,this.styles={},this.customGroup={},this.delegateInGroup={},this.resetNodePoint(),this.destroyed=!0},t}(),So=function(t){var e={};return t.getNodes().forEach((function(t){e[t.getID()]={degree:0,inDegree:0,outDegree:0}})),t.getEdges().forEach((function(t){e[t.getSource().getID()].degree++,e[t.getSource().getID()].outDegree++,e[t.getTarget().getID()].degree++,e[t.getTarget().getID()].inDegree++})),e},Mo=function(){function t(e){this.compare=e||t.defaultCompareFunction}return t.defaultCompareFunction=function(t,e){return t===e?0:t<e?-1:1},t.prototype.equal=function(t,e){return 0===this.compare(t,e)},t.prototype.lessThan=function(t,e){return this.compare(t,e)<0},t.prototype.greaterThan=function(t,e){return this.compare(t,e)>0},t.prototype.lessThanOrEqual=function(t,e){return this.lessThan(t,e)||this.equal(t,e)},t.prototype.greaterThanOrEqual=function(t,e){return this.greaterThan(t,e)||this.equal(t,e)},t.prototype.reverse=function(){var t=this.compare;this.compare=function(e,n){return t(n,e)}},t}(),ko=function(){function t(t,e){void 0===e&&(e=null),this.value=t,this.next=e}return t.prototype.toString=function(t){return t?t(this.value):""+this.value},t}(),Eo=function(){function t(t){void 0===t&&(t=null),this.head=null,this.tail=null,this.compare=new Mo(t)}return t.prototype.prepend=function(t){var e=new ko(t,this.head);return this.head=e,this.tail||(this.tail=e),this},t.prototype.append=function(t){var e=new ko(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},t.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare.equal(this.head.value,t);)e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)for(;n.next;)this.compare.equal(n.next.value,t)?(e=n.next,n.next=n.next.next):n=n.next;return this.compare.equal(this.tail.value,t)&&(this.tail=n),e},t.prototype.find=function(t){var e=t.value,n=void 0===e?void 0:e,i=t.callback,r=void 0===i?void 0:i;if(!this.head)return null;for(var o=this.head;o;){if(r&&r(o.value))return o;if(void 0!==n&&this.compare.equal(o.value,n))return o;o=o.next}return null},t.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t},t.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},t.prototype.fromArray=function(t){var e=this;return t.forEach((function(t){return e.append(t)})),this},t.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t},t.prototype.reverse=function(){for(var t=this.head,e=null,n=null;t;)n=t.next,t.next=e,e=t,t=n;this.tail=this.head,this.head=e},t.prototype.toString=function(t){return void 0===t&&(t=void 0),this.toArray().map((function(e){return e.toString(t)})).toString()},t}(),To=function(){function t(t){void 0===t&&(t=10),this.linkedList=new Eo,this.maxStep=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map((function(t){return t.value}))},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},t}(),Oo=function(t,e){var n=t.getNodes(),i=t.getEdges(),r=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.getID()]=e,r.push([])})),i&&i.forEach((function(t){var n=t.getModel(),i=n.source,a=n.target,s=o[i],l=o[a];r[s][l]=1,e||(r[l][s]=1)})),r},Po=function(t,e){var n=t.get("adjMatrix");n||(n=Oo(t,e));for(var i=[],r=n.length,o=0;o<r;o+=1){i[o]=[];for(var a=0;a<r;a+=1)o===a?i[o][a]=0:0!==n[o][a]&&n[o][a]?i[o][a]=n[o][a]:i[o][a]=1/0}for(var s=0;s<r;s+=1)for(o=0;o<r;o+=1)for(a=0;a<r;a+=1)i[o][a]>i[o][s]+i[s][a]&&(i[o][a]=i[o][s]+i[s][a]);return i},jo=function(t,e,n){return(t.y-n.y)*(e.x-n.x)-(t.x-n.x)*(e.y-n.y)},Lo=function(t){var e=t.map((function(t){return{x:t.getModel().x,y:t.getModel().y}}));e.sort((function(t,e){return t.x===e.x?t.y-e.y:t.x-e.x}));for(var n=[],i=0;i<e.length;i++){for(;n.length>=2&&jo(n[n.length-2],n[n.length-1],e[i])<=0;)n.pop();n.push(e[i])}var r=[];for(i=e.length-1;i>=0;i--){for(;r.length>=2&&jo(r[r.length-2],r[r.length-1],e[i])<=0;)r.pop();r.push(e[i])}return r.pop(),n.pop(),n.concat(r)},Do={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function Ro(t,e,n){var i=!1,r=function(t,n){return e.cells[t+n*e.width]},o=function(t,e){var i=0;return r(t-1,e-1)>=n&&(i+=1),r(t,e-1)>n&&(i+=2),r(t-1,e)>n&&(i+=4),r(t,e)>n&&(i+=8),i},a=function(n,i){for(var r,a,s=n,l=i,c=0;c<e.width*e.height;c++){if(r=s,a=l,t.findIndex((function(t){return t.x===s&&t.y===l}))>-1){if(t[0].x===s&&t[0].y===l)return!0}else t.push({x:s,y:l});var u=o(s,l);switch(u){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:s++;break;case 12:case 14:case 4:s--;break;case 6:0===r&&(-1===a?s-=1:s+=1);break;case 1:case 13:case 5:l--;break;case 9:1===r&&(0===a?l-=1:l+=1);break;case 10:case 8:case 11:l++;break;default:return console.warn("Marching squares invalid state: "+u),!0}}};this.march=function(){for(var t=0;t<e.width&&!i;t+=1)for(var s=0;s<e.height&&!i;s+=1)r(t,s)>n&&15!==o(t,s)&&(i=a(t,s));return i}}var Bo=function(t,e){var n=Number.POSITIVE_INFINITY,i=null;return t.forEach((function(t){var r=ae(t,e);r>=0&&r<n&&(i=t,n=r)})),i};function No(t,e,n,i,r){var o=function(t,e,n){var i=null,r=Number.POSITIVE_INFINITY;return e.forEach((function(e){var o={x:t.getModel().x,y:t.getModel().y},a={x:e.getModel().x,y:e.getModel().y},s=le(o,a),l=new ne(o.x,o.y,a.x,a.y),c=n.reduce((function(t,e){return ae(e,l)>0?t+1:t}),0);s*Math.pow(c+1,2)<r&&(i=e,r=s*Math.pow(c+1,2))})),i}(t,n,e);return null===o?[]:function(t){for(var n=[];t.length>0;){var i=t.pop();if(0===t.length){n.push(i);break}var r=t.pop(),o=new ne(i.x1,i.y1,r.x2,r.y2);Bo(e,o)?(n.push(i),t.push(r)):t.push(o)}return n}(function(t,e,n,i){var r=[],o=[];o.push(t);for(var a=!0,s=0,l=function(t,e){var n=!1;return e.forEach((function(e){n||(ue(t,{x:e.x1,y:e.y1})||ue(t,{x:e.x2,y:e.y2}))&&(n=!0)})),n},c=function(t,e){for(var n=0,i=e;n<i.length;n++){var r=i[n].getBBox(),o=[[r.x,r.y],[r.x+r.width,r.y],[r.x,r.y+r.height],[r.x+r.width,r.y+r.height]];if($t(o,t.x,t.y))return!0}return!1};a&&s<n;){a=!1;for(var u=function(){var t=o.pop(),n=Bo(e,t);if(n){var u=oe(n,t),h=u[0];if(2===u[1]){var d=function(s){for(var u=i,d=Vo(n,u,h,s),p=l(d,o)||l(d,r),f=c(d,e);!p&&f&&u>=1;)d=Vo(n,u/=1.5,h,s),p=l(d,o)||l(d,r),f=c(d,e);!d||p||s&&f||(o.push(new ne(t.x1,t.y1,d.x,d.y)),o.push(new ne(d.x,d.y,t.x2,t.y2)),a=!0)};d(!0),a||d(!1)}}a||r.push(t),s+=1};!a&&o.length;)u()}for(;o.length;)r.push(o.pop());return r}(new ne(t.getModel().x,t.getModel().y,o.getModel().x,o.getModel().y),e,i,r))}var Fo=function(t,e,n){var i=Object.assign(Do,n),r=se(t.map((function(t){return{x:t.getModel().x,y:t.getModel().y}})));t=t.sort((function(t,e){return le({x:t.getModel().x,y:t.getModel().y},r)-le({x:e.getModel().x,y:e.getModel().y},r)}));var o=[],a=[];t.forEach((function(t){No(t,e,o,i.maxRoutingIterations,i.morphBuffer).forEach((function(t){a.push(t)})),o.push(t)}));for(var s,l,c,u,h,d=function(t,e,n){var i={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},r=[];t.forEach((function(t){r.push(t.getBBox())})),e.forEach((function(t){r.push(t.getBBox())}));for(var o=0,a=r;o<a.length;o++){var s=a[o];i.minX=(s.minX<i.minX?s.minX:i.minX)-n,i.minY=(s.minY<i.minY?s.minY:i.minY)-n,i.maxX=(s.maxX>i.maxX?s.maxX:i.maxX)+n,i.maxY=(s.maxY>i.maxY?s.maxY:i.maxY)+n}return i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i.x=i.minX,i.y=i.minY,i}(t,a,i.nodeR0),p=(s=d.width,l=d.height,c=i.pixelGroupSize,u=Math.ceil(s/c),h=Math.ceil(l/c),{cells:new Float32Array(Math.max(0,u*h)).fill(0),width:u,height:h}),f=[],g=[],m=0;m<i.maxMarchingIterations;m++)if(zo(t,e,a,d,p,i),g=[],new Ro(f=[],p,i.threshold).march()){var v=f.map((function(t){return{x:Math.round(t.x*i.pixelGroupSize+d.minX),y:Math.round(t.y*i.pixelGroupSize+d.minY)}}));if(v){var y=v.length;if(i.skip>1)for(y=Math.floor(v.length/i.skip);y<3&&i.skip>1;)i.skip-=1,y=Math.floor(v.length/i.skip);for(var b=0,x=0;x<y;x+=1,b+=i.skip)g.push({x:v[b].x,y:v[b].y})}if(g&&function(){for(var e=0,n=t;e<n.length;e++){var i=n[e],r=g.map((function(t){return[t.x,t.y]}));if(!$t(r,i.getBBox().centerX,i.getBBox().centerY))return!1}return!0}())return g;if(i.threshold*=.9,m<=.5*i.maxMarchingIterations)i.memberInfluenceFactor*=1.2,i.edgeInfluenceFactor*=1.2;else{if(!(0!==i.nonMemberInfluenceFactor&&e.length>0))break;i.nonMemberInfluenceFactor*=.8}}return g};function zo(t,e,n,i,r,o){function a(t,e){var n=Math.floor((t-e)/o.pixelGroupSize);return n<0?0:n}function s(t,e){return t*o.pixelGroupSize+e}var l=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),c=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1),u=function(t,e){return[Math.min(a(t.minX,e+i.minX),r.width),Math.min(a(t.minY,e+i.minY),r.height),Math.min(a(t.maxX,-e+i.minX),r.width),Math.min(a(t.maxY,-e+i.minY),r.height)]},h=function(t,e){for(var n=t.getBBox(),a=u(n,o.nodeR1),l=a[0],c=a[1],h=a[2],d=a[3],p=c;p<d;p+=1)for(var f=l;f<h;f+=1)if(!(e<0&&r[f+p*r.width]<=0)){var g=s(f,i.minX),m=s(p,i.minY),v=he({x:g,y:m},{x:n.minX,y:n.minY,width:n.width,height:n.height});if(v<Math.pow(o.nodeR1,2)){var y=Math.sqrt(v)-o.nodeR1;r.cells[f+p*r.width]+=e*y*y}}};o.nodeInfluenceFactor&&t.forEach((function(t){h(t,o.nodeInfluenceFactor/l)})),o.edgeInfluenceFactor&&n.forEach((function(t){!function(t,e){for(var n=t.getBBox(),a=u(n,o.edgeR1),l=a[0],c=a[1],h=a[2],d=a[3],p=c;p<d;p+=1)for(var f=l;f<h;f+=1)if(!(e<0&&r.cells[f+p*r.width]<=0)){var g=s(f,i.minX),m=s(p,i.minY),v=ce({x:g,y:m},t);if(v<Math.pow(o.edgeR1,2)){var y=Math.sqrt(v)-o.edgeR1;r.cells[f+p*r.width]+=e*y*y}}}(t,o.edgeInfluenceFactor/c)})),o.negativeNodeInfluenceFactor&&e.forEach((function(t){h(t,o.negativeNodeInfluenceFactor/l)}))}function Vo(t,e,n,i){var r=t.getBBox(),o=n[0],a=n[1],s=n[2],l=n[3],c={topLeft:{x:r.minX-e,y:r.minY-e},topRight:{x:r.maxX+e,y:r.minY-e},bottomLeft:{x:r.minX-e,y:r.maxY+e},bottomRight:{x:r.maxX+e,y:r.maxY+e}},u=r.height*r.width;function h(t,e){return r.width*(.5*(t.y-r.minY+(e.y-r.minY)))}if(a)return o?i?c.topLeft:c.bottomRight:s?i?c.bottomLeft:c.topRight:h(a,l)<.5*u?a.y>l.y?i?c.topLeft:c.bottomRight:i?c.topRight:c.bottomLeft:a.y<l.y?i?c.bottomLeft:c.topRight:i?c.bottomRight:c.topLeft;if(l){if(o)return i?c.topRight:c.bottomLeft;if(s)return i?c.bottomRight:c.topLeft}return h(o,s)<.5*u?o.x>s.x?i?c.topLeft:c.bottomRight:i?c.bottomLeft:c.topRight:o.x<s.x?i?c.topRight:c.bottomLeft:i?c.bottomRight:c.topLeft}var Go=function(){function t(t,e){this.cfg=Object(ut.deepMix)(this.getDefaultCfg(),e),this.graph=t,this.id=this.cfg.id,this.group=this.cfg.group,this.members=this.cfg.members.map((function(e){return Object(ut.isString)(e)?t.findById(e):e})),this.nonMembers=this.cfg.nonMembers.map((function(e){return Object(ut.isString)(e)?t.findById(e):e})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()}return t.prototype.getDefaultCfg=function(){return{id:"g6-hull",type:"round-convex",members:[],nonMembers:[],style:{fill:"lightblue",stroke:"blue",opacity:.2},padding:10}},t.prototype.setPadding=function(){var t=this.members.length&&this.members[0].getKeyShape().getCanvasBBox().width/2;this.padding=this.cfg.padding>0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t}},t.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),"round-convex"!==this.type&&"smooth-convex"!==this.type&&"bubble"!==this.type&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},t.prototype.calcPath=function(t,e){var n,i,r;switch(this.type){case"round-convex":i=me(r=Se((n=Lo(t)).map((function(t){return[t.x,t.y]})),this.padding));break;case"smooth-convex":r=Me((n=Lo(t)).map((function(t){return[t.x,t.y]})),this.padding),i=n.length>=2&&_e(r);break;case"bubble":i=(n=Fo(t,e,this.cfg.bubbleCfg)).length>=2&&_e(n)}return i},t.prototype.render=function(){this.group.addShape("path",{attrs:Object(I.__assign)({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id}),this.group.toBack()},t.prototype.addMember=function(t){if(t){Object(ut.isString)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.addNonMember=function(t){if(t){Object(ut.isString)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.removeMember=function(t){if(t){Object(ut.isString)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1&&(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.removeNonMember=function(t){if(t){Object(ut.isString)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1&&(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.updateData=function(t,e){var n=this;this.group.findById(this.id).remove(),t&&(this.members=t.map((function(t){return Object(ut.isString)(t)?n.graph.findById(t):t}))),e&&(this.nonMembers=e.map((function(t){return Object(ut.isString)(t)?n.graph.findById(t):t}))),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.updateStyle=function(t){this.group.findById(this.id).attr(Object(I.__assign)({},t))},t.prototype.updateCfg=function(t){var e=this;this.cfg=Object(ut.deepMix)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map((function(t){return Object(ut.isString)(t)?e.graph.findById(t):t}))),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map((function(t){return Object(ut.isString)(t)?e.graph.findById(t):t}))),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.contain=function(t){var e,n,i=this,r=(e=Object(ut.isString)(t)?this.graph.findById(t):t).getKeyShape();if("path"===e.get("type"))n=we(r.attr("path"));else{var o=r.getCanvasBBox();n=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return n=n.map((function(t){var e=i.graph.getPointByCanvas(t[0],t[1]);return[e.x,e.y]})),ee(n,we(this.path))},t.prototype.destroy=function(){this.group.remove(),this.cfg=null},t}(),Ho=function(t){function e(e){var n=t.call(this)||this;return n.cfg=Object(ut.deepMix)(n.getDefaultCfg(),e),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new To(n.cfg.maxStep),n.redoStack=new To(n.cfg.maxStep)),n}return Object(I.__extends)(e,t),e.prototype.init=function(){this.initCanvas();var t=new Xe(this),e=new He(this),n=new Ge(this),i=new Vn(this),r=new xo(this),o=new Co(this),a=new Io(this);this.set({eventController:t,viewController:e,modeController:n,itemController:i,layoutController:r,stateController:o,customGroupControll:a}),this.initPlugin()},e.prototype.initCanvas=function(){var t=this.get("container");if(Object(ut.isString)(t)&&(t=document.getElementById(t),this.set("container",t)),!t)throw new Error("invalid container");var e,n=this.get("width"),i=this.get("height");if("svg"===this.get("renderer"))e=new Ne.a({container:t,width:n,height:i});else{var r={container:t,width:n,height:i},o=this.get("pixelRatio");o&&(r.pixelRatio=o),e=new Re.a(r)}this.set("canvas",e),this.initGroups()},e.prototype.initPlugin=function(){var t=this;Object(ut.each)(t.get("plugins"),(function(e){!e.destroyed&&e.initPlugin&&e.initPlugin(t)}))},e.prototype.initGroups=function(){var t=this.get("canvas"),e=this.get("canvas").get("el").id,n=t.addGroup({id:e+"-root",className:J.rootContainerClassName});if(this.get("groupByTypes")){var i=n.addGroup({id:e+"-edge",className:J.edgeContainerClassName}),r=n.addGroup({id:e+"-node",className:J.nodeContainerClassName}),o=n.addGroup({id:e+"-combo",className:J.comboContainerClassName}),a=n.addGroup({id:e+"-group",className:J.customGroupContainerClassName});a.toBack(),o.toBack(),this.set({nodeGroup:r,edgeGroup:i,customGroup:a,comboGroup:o})}var s=n.addGroup({id:e+"-delegate",className:J.delegateContainerClassName});this.set({delegateGroup:s}),this.set("group",n)},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.2,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,groupType:"circle",groupBBoxs:{},groupNodes:{},groups:[],groupStyle:{},enabledStack:!1,maxStep:10,tooltips:[]}},e.prototype.set=function(t,e){return Object(ut.isPlainObject)(t)?this.cfg=Object(I.__assign)(Object(I.__assign)({},this.cfg),t):this.cfg[t]=e,this},e.prototype.get=function(t){return this.cfg[t]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(t){return this.set("minZoom",t)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(t){return this.set("maxZoom",t)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(t,e){Object(ut.isString)(t)&&(t=this.findById(t));var n=this.get("itemController");e||(e=t.get("states")),n.clearItemStates(t,e),this.get("stateController").updateStates(t,e,!1)},e.prototype.node=function(t){"function"==typeof t&&this.set("nodeMapper",t)},e.prototype.edge=function(t){"function"==typeof t&&this.set("edgeMapper",t)},e.prototype.combo=function(t){"function"==typeof t&&this.set("comboMapper",t)},e.prototype.findById=function(t){return this.get("itemMap")[t]},e.prototype.find=function(t,e){var n,i=this.get(t+"s");return Object(ut.each)(i,(function(t,i){if(e(t,i))return n=t})),n},e.prototype.findAll=function(t,e){var n=[];return Object(ut.each)(this.get(t+"s"),(function(t,i){e(t,i)&&n.push(t)})),n},e.prototype.findAllByState=function(t,e){return this.findAll(t,(function(t){return t.hasState(e)}))},e.prototype.translate=function(t,e){var n=this.get("group"),i=Object(ut.clone)(n.getMatrix());i||(i=[1,0,0,0,1,0,0,0,1]),Fe.mat3.translate(i,i,[t,e]),n.setMatrix(i),this.emit("viewportchange",{action:"translate",matrix:n.getMatrix()}),this.autoPaint()},e.prototype.moveTo=function(t,e){var n=this.get("group");Xt(n,{x:t,y:e}),this.emit("viewportchange",{action:"move",matrix:n.getMatrix()})},e.prototype.fitView=function(t){t&&this.set("fitViewPadding",t),this.get("viewController").fitView(),this.autoPaint()},e.prototype.fitCenter=function(){this.get("viewController").fitCenter(),this.autoPaint()},e.prototype.addBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!0),this},e.prototype.removeBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!1),this},e.prototype.zoom=function(t,e){var n=this.get("group"),i=Object(ut.clone)(n.getMatrix()),r=this.get("minZoom"),o=this.get("maxZoom");i||(i=[1,0,0,0,1,0,0,0,1]),e?(Fe.mat3.translate(i,i,[-e.x,-e.y]),Fe.mat3.scale(i,i,[t,t]),Fe.mat3.translate(i,i,[e.x,e.y])):Fe.mat3.scale(i,i,[t,t]),r&&i[0]<r||o&&i[0]>o||(n.setMatrix(i),this.emit("viewportchange",{action:"zoom",matrix:i}),this.autoPaint())},e.prototype.zoomTo=function(t,e){var n=t/this.getZoom();this.zoom(n,e)},e.prototype.focusItem=function(t,e,n){var i=this.get("viewController"),r=!1;e?r=!0:void 0===e&&(r=this.get("animate"));var o={};n?o=n:void 0===n&&(o=this.get("animateCfg")),i.focus(t,r,o),this.autoPaint()},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(t,e){return this.get("viewController").getPointByClient(t,e)},e.prototype.getClientByPoint=function(t,e){return this.get("viewController").getClientByPoint(t,e)},e.prototype.getPointByCanvas=function(t,e){return this.get("viewController").getPointByCanvas(t,e)},e.prototype.getCanvasByPoint=function(t,e){return this.get("viewController").getCanvasByPoint(t,e)},e.prototype.showItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!0);if(e&&this.get("enabledStack")){var i=n.getID(),r={},o={};switch(n.getType()){case"node":r.nodes=[{id:i,visible:!1}],o.nodes=[{id:i,visible:!0}];break;case"edge":r.nodes=[{id:i,visible:!1}],o.edges=[{id:i,visible:!0}];break;case"combo":r.nodes=[{id:i,visible:!1}],o.combos=[{id:i,visible:!0}]}this.pushStack("visible",{before:r,after:o})}},e.prototype.hideItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!1);if(e&&this.get("enabledStack")){var i=n.getID(),r={},o={};switch(n.getType()){case"node":r.nodes=[{id:i,visible:!0}],o.nodes=[{id:i,visible:!1}];break;case"edge":r.nodes=[{id:i,visible:!0}],o.edges=[{id:i,visible:!1}];break;case"combo":r.nodes=[{id:i,visible:!0}],o.combos=[{id:i,visible:!1}]}this.pushStack("visible",{before:r,after:o})}},e.prototype.refreshItem=function(t){this.get("itemController").refreshItem(t)},e.prototype.setAutoPaint=function(t){this.set("autoPaint",t),this.get("canvas").set("autoDraw",t)},e.prototype.remove=function(t,e){void 0===e&&(e=!0),this.removeItem(t,e)},e.prototype.removeItem=function(t,e){void 0===e&&(e=!0);var n=t;if(Object(ut.isString)(t)&&(n=this.findById(t)),!n&&Object(ut.isString)(t))console.warn("The item to be removed does not exist!"),this.get("customGroupControll").remove(t);else if(n){var i="";if(n.getType&&(i=n.getType()),e&&this.get("enabledStack")){var r=Object(I.__assign)(Object(I.__assign)({},n.getModel()),{itemType:i}),o={};switch(i){case"node":o.nodes=[r],o.edges=[];for(var a=n.getEdges(),s=a.length-1;s>=0;s--)o.edges.push(Object(I.__assign)(Object(I.__assign)({},a[s].getModel()),{itemType:"edge"}));break;case"edge":o.edges=[r];break;case"combo":o.combos=[r]}this.pushStack("delete",{before:o,after:{}})}if(this.get("itemController").removeItem(t),"combo"===i){var l=wn(this.get("comboTrees"));this.set("comboTrees",l)}}},e.prototype.addItem=function(t,e,n,i){void 0===n&&(n=!0),void 0===i&&(i=!0);var r=this.get("comboSorted");this.set("comboSorted",r&&!i);var o=this.get("itemController");if("group"===t){var a=e.groupId,s=e.nodes,l=e.type,c=e.zIndex,u=e.title,h=u;return Object(ut.isString)(u)&&(h={text:u}),this.get("customGroupControll").create(a,s,l,c,!0,h)}if(!e.id||!this.findById(e.id)){var d,p=this.get("comboTrees");if(p||(p=[]),"combo"===t){var f=this.get("itemMap"),g=!1;if(p.forEach((function(n){g||mn(n,(function(n){if(e.parentId===n.id){g=!0;var i=Object(I.__assign)({id:e.id,depth:n.depth+2},e);n.children?n.children.push(i):n.children=[i],e.depth=i.depth,d=o.addItem(t,e)}var r=f[n.id];return g&&r&&r.getType&&"combo"===r.getType()&&o.updateCombo(r,n.children),!0}))})),!g){var m=Object(I.__assign)({id:e.id,depth:0},e);e.depth=m.depth,p.push(m),d=o.addItem(t,e)}this.set("comboTrees",p)}else if("node"===t&&Object(ut.isString)(e.comboId)&&p){var v;if((v=this.findById(e.comboId))&&v.getType&&"combo"!==v.getType())return void console.warn("'"+e.comboId+"' is a not id of a combo in the graph, the node will be added without combo.");d=o.addItem(t,e);var y=this.get("itemMap"),b=!1,x=!1;(p||[]).forEach((function(t){x||b||mn(t,(function(t){if(t.id===e.id)return x=!0,!1;if(e.comboId===t.id&&!x){b=!0;var n=Object(ut.clone)(e);n.itemType="node",t.children?t.children.push(n):t.children=[n],e.depth=t.depth+1}return b&&y[t.id].getType&&"combo"===y[t.id].getType()&&o.updateCombo(y[t.id],t.children),!0}))}))}else d=o.addItem(t,e);("node"===t&&e.comboId||"combo"===t&&e.parentId)&&(v=this.findById(e.comboId||e.parentId))&&v.addChild(d);var w=this.get("combos");if(w&&w.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var _=Object(I.__assign)(Object(I.__assign)({},d.getModel()),{itemType:t}),C={};switch(t){case"node":C.nodes=[_];break;case"edge":C.edges=[_];break;case"combo":C.combos=[_]}this.pushStack("add",{before:{},after:C})}return d}console.warn("This item exists already. Be sure the id %c"+e.id+"%c is unique.","font-size: 20px; color: red;","")},e.prototype.add=function(t,e,n,i){return void 0===n&&(n=!0),void 0===i&&(i=!0),this.addItem(t,e,n,i)},e.prototype.updateItem=function(t,e,n){var i=this;void 0===n&&(n=!0);var r,o=this.get("itemController");r=Object(ut.isString)(t)?this.findById(t):t;var a=Object(ut.clone)(r.getModel()),s="";r.getType&&(s=r.getType());var l=Object(I.__spreadArrays)(r.getStates());if("combo"===s&&Object(ut.each)(l,(function(t){return i.setItemState(r,t,!1)})),o.updateItem(r,e),"combo"===s&&Object(ut.each)(l,(function(t){return i.setItemState(r,t,!0)})),n&&this.get("enabledStack")){var c={nodes:[],edges:[],combos:[]},u={nodes:[],edges:[],combos:[]},h=Object(I.__assign)({id:a.id},e);switch(s){case"node":c.nodes.push(a),u.nodes.push(h);break;case"edge":c.edges.push(a),u.edges.push(h);break;case"combo":c.combos.push(a),u.combos.push(h)}"node"===s&&c.nodes.push(a),this.pushStack("update",{before:c,after:u})}},e.prototype.update=function(t,e,n){void 0===n&&(n=!0),this.updateItem(t,e,n)},e.prototype.setItemState=function(t,e,n){Object(ut.isString)(t)&&(t=this.findById(t)),this.get("itemController").setItemState(t,e,n);var i=this.get("stateController");Object(ut.isString)(n)?i.updateState(t,e+":"+n,!0):i.updateState(t,e,n)},e.prototype.priorityState=function(t,e){this.get("itemController").priorityState(t,e)},e.prototype.data=function(t){this.set("data",t)},e.prototype.render=function(){var t=this;this.set("comboSorted",!1);var e=this.get("data");if(this.get("enabledStack")&&this.clearStack(),!e)throw new Error("data must be defined first");var n=e.nodes,i=void 0===n?[]:n,r=e.edges,o=void 0===r?[]:r,a=e.combos,s=void 0===a?[]:a;if(this.clear(),this.emit("beforerender"),Object(ut.each)(i,(function(e){t.add("node",e,!1,!1)})),s&&0!==s.length){var l=xn(s,i);this.set("comboTrees",l),t.addCombos(s)}Object(ut.each)(o,(function(e){t.add("edge",e,!1,!1)}));var c=t.get("animate");function u(){t.get("fitView")?t.fitView():t.get("fitCenter")&&t.fitCenter(),t.autoPaint(),t.emit("afterrender"),(t.get("fitView")||t.get("fitCenter"))&&t.set("animate",c)}if((t.get("fitView")||t.get("fitCenter"))&&t.set("animate",!1),t.get("layoutController").layout(u)||u(),this.get("groupByTypes")||(s&&0!==s.length?this.sortCombos():e.nodes&&e.edges&&e.nodes.length<e.edges.length?this.getNodes().forEach((function(t){t.toFront()})):this.getEdges().forEach((function(t){t.toBack()}))),e.nodes&&e.nodes.filter((function(t){return t.groupId})).length>0){var h=t.get("groupType");this.renderCustomGroup(e,h)}this.get("enabledStack")&&this.pushStack("render")},e.prototype.read=function(t){this.data(t),this.render()},e.prototype.diffItems=function(t,e,n){var i,r=this,o=this.get("itemMap");Object(ut.each)(n,(function(n){if(i=o[n.id]){if(r.get("animate")&&"node"===t){var a=i.getContainer().getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]),i.set("originAttrs",{x:a[6],y:a[7]})}r.updateItem(i,n,!1)}else i=r.addItem(t,n,!1);e[t+"s"].push(i)}))},e.prototype.changeData=function(t,e){void 0===e&&(e=!0);var n=this;if(!t)return this;e&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.save(),after:t}),this.set("comboSorted",!1),this.getNodes().map((function(t){return n.clearItemStates(t)})),this.getEdges().map((function(t){return n.clearItemStates(t)}));var i=this.get("canvas"),r=i.get("localRefresh");i.set("localRefresh",!1),n.get("data")||(n.data(t),n.render());var o=this.get("itemMap"),a={nodes:[],edges:[]},s=t.combos;if(s){var l=xn(s,t.nodes);this.set("comboTrees",l)}this.diffItems("node",a,t.nodes),Object(ut.each)(o,(function(t,e){o[e].getModel().depth=0,t.getType&&"edge"===t.getType()||(t.getType&&"combo"===t.getType()?(delete o[e],t.destroy()):a.nodes.indexOf(t)<0&&(delete o[e],n.remove(t,!1)))}));for(var c=this.getCombos(),u=c.length-1;u>=0;u--)c[u].destroyed&&c.splice(u,1);s&&(n.addCombos(s),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",a,t.edges),Object(ut.each)(o,(function(t,e){(!t.getType||"node"!==t.getType()&&"combo"!==t.getType())&&a.edges.indexOf(t)<0&&(delete o[e],n.remove(t,!1))})),this.set({nodes:a.nodes,edges:a.edges});var h=this.get("layoutController");return h.changeData(),n.get("animate")&&!h.getLayoutType()?n.positionsAnimate():n.autoPaint(),setTimeout((function(){i.set("localRefresh",r)}),16),this},e.prototype.addCombos=function(t){var e=this.get("comboTrees");this.get("itemController").addCombos(e,t)},e.prototype.createCombo=function(t,e){var n=this;this.set("comboSorted",!1);var i,r="";if(t){if(Object(ut.isString)(t))r=t,i={id:t};else{if(!(r=t.id))return void console.warn("Create combo failed. Please assign a unique string id for the adding combo.");i=t}var o=e.map((function(t){var e=n.findById(t),i="";e.getType&&(i=e.getType());var o={id:e.getID(),itemType:i};return"combo"===i?o.parentId=r:"node"===i&&(o.comboId=r),o}));i.children=o,this.addItem("combo",i,!1),this.set("comboSorted",!1);var a=this.get("comboTrees");(a||[]).forEach((function(t){mn(t,(function(t){return t.id!==r||(t.itemType="combo",t.children=o,!1)}))})),a&&this.sortCombos()}},e.prototype.uncombo=function(t){var e,n=this,i=t;if(Object(ut.isString)(t)&&(i=this.findById(t)),!i||i.getType&&"combo"!==i.getType())console.warn("The item is not a combo!");else{var r=i.getModel().parentId,o=this.get("comboTrees");o||(o=[]);var a,s=this.get("itemMap"),l=i.get("id"),c=[],u=this.get("combos"),h=this.findById(r);if(o.forEach((function(e){a||mn(e,(function(e){var o;if(e.id===l){a=e,i.getEdges().forEach((function(t){n.removeItem(t,!1)}));var d=u.indexOf(t);u.splice(d,1),delete s[l],i.destroy()}return!r||!a||e.id!==r||(h.removeCombo(i),-1!==(d=(c=e.children).indexOf(a))&&c.splice(d,1),null===(o=a.children)||void 0===o||o.forEach((function(t){var e=n.findById(t.id),i=e.getModel();e.getType&&"combo"===e.getType()?(t.parentId=r,delete t.comboId,i.parentId=r,delete i.comboId):e.getType&&"node"===e.getType()&&(t.comboId=r,i.comboId=r),h.addChild(e),c.push(t)})),!1)}))})),!r&&a){var d=o.indexOf(a);o.splice(d,1),null===(e=a.children)||void 0===e||e.forEach((function(t){t.parentId=void 0,n.findById(t.id).getModel().parentId=void 0,"node"!==t.itemType&&o.push(t)}))}}},e.prototype.updateCombos=function(){var t=this,e=this.get("comboTrees"),n=this.get("itemController"),i=this.get("itemMap");(e||[]).forEach((function(e){mn(e,(function(e){if(!e)return!0;var r=i[e.id];if(r&&r.getType&&"combo"===r.getType()){var o=Object(I.__spreadArrays)(r.getStates());Object(ut.each)(o,(function(e){return t.setItemState(r,e,!1)})),n.updateCombo(r,e.children),Object(ut.each)(o,(function(e){return t.setItemState(r,e,!0)}))}return!0}))})),this.sortCombos()},e.prototype.updateCombo=function(t){var e,n=this,i=t;if(Object(ut.isString)(t)&&(i=this.findById(t)),!i||i.getType&&"combo"!==i.getType())console.warn("The item to be updated is not a combo!");else{e=i.get("id");var r=this.get("comboTrees"),o=this.get("itemController"),a=this.get("itemMap");(r||[]).forEach((function(t){mn(t,(function(t){if(!t)return!0;var i=a[t.id];if(e===t.id&&i&&i.getType&&"combo"===i.getType()){var r=Object(I.__spreadArrays)(i.getStates());Object(ut.each)(r,(function(t){i.getStateStyle(t)&&n.setItemState(i,t,!1)})),o.updateCombo(i,t.children),Object(ut.each)(r,(function(t){i.getStateStyle(t)&&n.setItemState(i,t,!0)})),e&&(e=t.parentId)}return!0}))}))}},e.prototype.updateComboTree=function(t,e){var n;this.set("comboSorted",!1);var i=(n=Object(ut.isString)(t)?this.findById(t):t).getModel(),r=i.comboId||i.parentId;if(e&&n.getType&&"combo"===n.getType()){var o,a=this.get("comboTrees"),s=!0;if((a||[]).forEach((function(t){o||gn(t,(function(t){if(!o)return t.id===n.getID()&&(o=t),!0}))})),gn(o,(function(t){return t.id!==e||(s=!1,!1)})),!s)return void console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!")}if(i.parentId||i.comboId){var l=this.findById(i.parentId||i.comboId);l&&l.removeChild(n)}var c,u="";n.getType&&(u=n.getType()),"combo"===u?i.parentId=e:"node"===u&&(i.comboId=e),e&&(c=this.findById(e))&&c.addChild(n),r&&(c=this.findById(r))&&c.removeChild(n);var h=wn(this.get("comboTrees"),i.id,e);this.set("comboTrees",h),this.updateCombos()},e.prototype.renderCustomGroup=function(t,e){var n=this,i=t.groups,r=t.nodes,o=void 0===r?[]:r,a=10;if(i){this.set({groups:i});var s=function(t){var e=Ve()(t.groups,"id"),n=Ve()(t.groups,"parentId"),i={};for(var r in n)if(r){var o=n[r],a=e[r];if(a&&o){var s=Object(I.__spreadArrays)(o,a);i[r]=s}else o&&(i[r]=o)}var l=Object(I.__assign)(Object(I.__assign)({},e),i),c={};for(var u in l)u&&"undefined"!==u&&(o=l[u].map((function(t){return t.id})),c[u]=o);var h={},d=function(e){if(!e||"undefined"===e)return"continue";for(var n=c[e],i=[],r=0,o=n;r<o.length;r++){var a=o[r],s=l[a].map((function(t){return t.id}));i.push.apply(i,s)}var u=t.nodes?t.nodes.filter((function(t){return i.indexOf(t.groupId)>-1||i.indexOf(t.parentId)>-1})).map((function(t){return t.id})):[];h[e]=u};for(var u in c)d(u);return h}(t);Object.keys(s).forEach((function(t){var i=s[t];n.get("customGroupControll").create(t,i,e,a),a--})),this.get("customGroup").sort()}else{var l=o.filter((function(t){return t.groupId})),c=[],u=Object(ut.groupBy)(l,"groupId");Object.keys(u).forEach((function(t){var i=u[t].map((function(t){return t.id}));n.get("customGroupControll").create(t,i,e,a),a--,c.find((function(e){return e.id===t}))||c.push({id:t})})),this.set({groups:c})}},e.prototype.save=function(){var t=[],e=[],n=[];return Object(ut.each)(this.get("nodes"),(function(e){t.push(e.getModel())})),Object(ut.each)(this.get("edges"),(function(t){e.push(t.getModel())})),Object(ut.each)(this.get("combos"),(function(t){n.push(t.getModel())})),{nodes:t,edges:e,combos:n,groups:this.get("groups")}},e.prototype.changeSize=function(t,e){return this.get("viewController").changeSize(t,e),this},e.prototype.refresh=function(){if(this.emit("beforegraphrefresh"),this.get("animate"))this.positionsAnimate();else{var t=this.get("nodes"),e=this.get("edges"),n=this.get("edges");Object(ut.each)(t,(function(t){t.refresh()})),Object(ut.each)(e,(function(t){t.refresh()})),Object(ut.each)(n,(function(t){t.refresh()}))}this.emit("aftergraphrefresh"),this.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(t){if(Object(ut.isString)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType()))return t.getChildren();console.warn("The combo does not exist!")},e.prototype.positionsAnimate=function(){var t=this;t.emit("beforeanimate");var e=t.get("animateCfg"),n=e.onFrame,i=t.getNodes(),r=i.map((function(t){var e=t.getModel();return{id:e.id,x:e.x,y:e.y}}));t.isAnimating()&&t.stopAnimate(),t.get("canvas").animate((function(e){Object(ut.each)(r,(function(i){var r=t.findById(i.id);if(r&&!r.destroyed){var o=r.get("originAttrs"),a=r.get("model");if(!o){var s=r.getContainer().getMatrix();s||(s=[1,0,0,0,1,0,0,0,1]),o={x:s[6],y:s[7]},r.set("originAttrs",o)}if(n){var l=n(r,e,i,o);r.set("model",Object.assign(a,l))}else a.x=o.x+(i.x-o.x)*e,a.y=o.y+(i.y-o.y)*e}})),t.refreshPositions()}),{duration:e.duration,easing:e.easing,callback:function(){Object(ut.each)(i,(function(t){t.set("originAttrs",null)})),e.callback&&e.callback(),t.emit("afteranimate"),t.animating=!1}})},e.prototype.refreshPositions=function(){this.emit("beforegraphrefreshposition");var t,e=this.get("nodes"),n=this.get("edges"),i=this.get("vedges"),r=this.get("combos"),o={};Object(ut.each)(e,(function(e){t=e.getModel();var n=e.get("originAttrs");n&&t.x===n.x&&t.y===n.y||(e.updatePosition({x:t.x,y:t.y}),o[t.id]=!0,t.comboId&&(o[t.comboId]=!0))})),r&&0!==r.length&&this.updateCombos(),Object(ut.each)(n,(function(t){var e=t.getSource().getModel(),n=t.getTarget().getModel();(o[e.id]||o[n.id]||t.getModel().isComboEdge)&&t.refresh()})),Object(ut.each)(i,(function(t){t.refresh()})),this.emit("aftergraphrefreshposition"),this.autoPaint()},e.prototype.stopAnimate=function(){this.get("canvas").stopAnimate()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1},e.prototype.getCurrentMode=function(){return this.get("modeController").getMode()},e.prototype.setMode=function(t){return this.get("modeController").setMode(t),this},e.prototype.clear=function(){return this.get("canvas").clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],groups:[],combos:[],comboTrees:[]}),this.emit("afterrender"),this},e.prototype.toDataURL=function(t,e){var n=this.get("canvas"),i=n.getRenderer(),r=n.get("el");t||(t="image/png");var o="";if("svg"===i){var a=r.cloneNode(!0),s=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),l=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",s);l.replaceChild(a,l.documentElement);var c=(new XMLSerializer).serializeToString(l);o="data:image/svg+xml;charset=utf8,"+encodeURIComponent(c)}else{var u=void 0,h=r.getContext("2d"),d=this.get("width"),p=this.get("height"),f=void 0;if(e){var g=window.devicePixelRatio;u=h.getImageData(0,0,d*g,p*g),f=h.globalCompositeOperation,h.globalCompositeOperation="destination-over",h.fillStyle=e,h.fillRect(0,0,d,p)}o=r.toDataURL(t),e&&(h.clearRect(0,0,d,p),h.putImageData(u,0,0),h.globalCompositeOperation=f)}return o},e.prototype.toFullDataURL=function(t,e,n){var i=this.get("group").getCanvasBBox(),r=i.height,o=i.width,a=this.get("renderer"),s=yt()('<id="virtual-image"></div>'),l=n?n.backgroundColor:void 0,c=n?n.padding:void 0;c?Object(ut.isNumber)(c)&&(c=[c,c,c,c]):c=[0,0,0,0];var u=r+c[0]+c[2],h=o+c[1]+c[3],d={container:s,height:u,width:h,quickHit:!0},p="svg"===a?new Ne.a(d):new Re.a(d),f=this.get("group").clone(),g=Object(ut.clone)(f.getMatrix());g||(g=[1,0,0,0,1,0,0,0,1]);var m=(i.maxX+i.minX)/2,v=(i.maxY+i.minY)/2;Fe.mat3.translate(g,g,[-m,-v]),Fe.mat3.translate(g,g,[o/2+c[3],r/2+c[0]]),f.resetMatrix(),f.setMatrix(g),p.add(f);var y=p.get("el"),b="";e||(e="image/png"),setTimeout((function(){if("svg"===a){var n=y.cloneNode(!0),i=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),r=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",i);r.replaceChild(n,r.documentElement);var o=(new XMLSerializer).serializeToString(r);b="data:image/svg+xml;charset=utf8,"+encodeURIComponent(o)}else{var s=void 0,c=y.getContext("2d"),d=void 0;if(l){var p=window.devicePixelRatio;s=c.getImageData(0,0,h*p,u*p),d=c.globalCompositeOperation,c.globalCompositeOperation="destination-over",c.fillStyle=l,c.fillRect(0,0,h,u)}b=y.toDataURL(e),l&&(c.clearRect(0,0,h,u),c.putImageData(s,0,0),c.globalCompositeOperation=d)}null==t||t(b)}),16)},e.prototype.downloadFullImage=function(t,e,n){var i=this,r=this.get("group").getCanvasBBox(),o=r.height,a=r.width,s=this.get("renderer"),l=yt()('<id="virtual-image"></div>'),c=n?n.backgroundColor:void 0,u=n?n.padding:void 0;u?Object(ut.isNumber)(u)&&(u=[u,u,u,u]):u=[0,0,0,0];var h=o+u[0]+u[2],d=a+u[1]+u[3],p={container:l,height:h,width:d},f="svg"===s?new Ne.a(p):new Re.a(p),g=this.get("group").clone(),m=Object(ut.clone)(g.getMatrix());m||(m=[1,0,0,0,1,0,0,0,1]);var v=(r.maxX+r.minX)/2,y=(r.maxY+r.minY)/2;Fe.mat3.translate(m,m,[-v,-y]),Fe.mat3.translate(m,m,[a/2+u[3],o/2+u[0]]),g.resetMatrix(),g.setMatrix(m),f.add(g);var b=f.get("el");e||(e="image/png"),setTimeout((function(){var n="";if("svg"===s){var r=b.cloneNode(!0),o=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),a=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",o);a.replaceChild(r,a.documentElement);var l=(new XMLSerializer).serializeToString(a);n="data:image/svg+xml;charset=utf8,"+encodeURIComponent(l)}else{var u=void 0,p=b.getContext("2d"),f=void 0;if(c){var g=window.devicePixelRatio;u=p.getImageData(0,0,d*g,h*g),f=p.globalCompositeOperation,p.globalCompositeOperation="destination-over",p.fillStyle=c,p.fillRect(0,0,d,h)}n=b.toDataURL(e),c&&(p.clearRect(0,0,d,h),p.putImageData(u,0,0),p.globalCompositeOperation=f)}var m=document.createElement("a"),v=(t||"graph")+("svg"===s?".svg":"."+e.split("/")[1]);i.dataURLToImage(n,s,m,v);var y=document.createEvent("MouseEvents");y.initEvent("click",!1,!1),m.dispatchEvent(y)}),16)},e.prototype.downloadImage=function(t,e,n){var i=this,r=this;r.isAnimating()&&r.stopAnimate();var o=r.get("canvas").getRenderer();e||(e="image/png");var a=(t||"graph")+("svg"===o?".svg":e.split("/")[1]),s=document.createElement("a");setTimeout((function(){var t=r.toDataURL(e,n);i.dataURLToImage(t,o,s,a);var l=document.createEvent("MouseEvents");l.initEvent("click",!1,!1),s.dispatchEvent(l)}),16)},e.prototype.dataURLToImage=function(t,e,n,i){if("undefined"!=typeof window)if(window.Blob&&window.URL&&"svg"!==e){var r=t.split(","),o="";if(r&&r.length>0){var a=r[0].match(/:(.*?);/);a&&a.length>=2&&(o=a[1])}for(var s=atob(r[1]),l=s.length,c=new Uint8Array(l);l--;)c[l]=s.charCodeAt(l);var u=new Blob([c],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(u,i):n.addEventListener("click",(function(){n.download=i,n.href=window.URL.createObjectURL(u)}))}else n.addEventListener("click",(function(){n.download=i,n.href=t}))},e.prototype.updateLayout=function(t){var e,n=this.get("layoutController");Object(ut.isString)(t)?t={type:e=t}:e=t.type;var i=this.get("layout"),r=i?i.type:void 0;if(e&&r!==e)this.set("layout",t),n.changeLayout(e);else{var o={};Object.assign(o,i,t),o.type=r||"random",this.set("layout",o),n.updateLayoutCfg(o)}},e.prototype.destroyLayout=function(){this.get("layoutController").destroyLayout()},e.prototype.layout=function(){var t=this.get("layoutController"),e=this.get("layout");e&&(e.workerEnabled?t.layout():t.layoutMethod?t.relayout(!0):t.layout())},e.prototype.collapseCombo=function(t){var e=this;if(Object(ut.isString)(t)&&(t=this.findById(t)),t){var n=t.getModel();this.get("itemController").collapseCombo(t),n.collapsed=!0;var i=this.getEdges().concat(this.get("vedges")),r=[],o=[],a=this.get("comboTrees"),s=!1,l={};(a||[]).forEach((function(t){l[t.id]=t})),(a||[]).forEach((function(t){s||gn(t,(function(t){if(s&&l[t.id])return!1;if(n.parentId===t.id?(l={},t.children.forEach((function(t){l[t.id]=t}))):n.id===t.id&&(s=!0),s){var i=e.findById(t.id);i&&i.getType&&"combo"===i.getType()&&(r=r.concat(i.getNodes()),o=o.concat(i.getCombos()))}return!0}))}));var c={},u=[];i.forEach((function(t){if(!t.isVisible()||t.getModel().isVEdge){var i=t.getSource(),a=t.getTarget();if((r.includes(i)||o.includes(i))&&!r.includes(a)&&!o.includes(a)||i.getModel().id===n.id){if((d=t.getModel()).isVEdge)return void e.removeItem(t,!1);for(var s=a.getModel();!a.isVisible();){if(!(a=e.findById(s.parentId||s.comboId))||!s.parentId&&!s.comboId)return;s=a.getModel()}var l=s.id;if(c[n.id+"-"+l])return void(c[n.id+"-"+l]+=d.size||1);var h=e.addItem("vedge",{source:n.id,target:l,isVEdge:!0},!1);c[n.id+"-"+l]=d.size||1,u.push(h)}else if(!r.includes(i)&&!o.includes(i)&&(r.includes(a)||o.includes(a))||a.getModel().id===n.id){var d;if((d=t.getModel()).isVEdge)return void e.removeItem(t,!1);for(var p=i.getModel();!i.isVisible();){if(!(i=e.findById(p.parentId||p.comboId))||!p.parentId&&!p.comboId)return;p=i.getModel()}var f=p.id;if(c[f+"-"+n.id])return void(c[f+"-"+n.id]+=d.size||1);h=e.addItem("vedge",{target:n.id,source:f,isVEdge:!0},!1),c[f+"-"+n.id]=d.size||1,u.push(h)}}})),u.forEach((function(t){var n=t.getModel();e.updateItem(t,{size:c[n.source+"-"+n.target]},!1)}))}else console.warn("The combo to be collapsed does not exist!")},e.prototype.expandCombo=function(t){var e=this;if(Object(ut.isString)(t)&&(t=this.findById(t)),!t||t.getType&&"combo"!==t.getType())console.warn("The combo to be collapsed does not exist!");else{var n=t.getModel();this.get("itemController").expandCombo(t),n.collapsed=!1;var i=this.getEdges().concat(this.get("vedges")),r=[],o=[],a=this.get("comboTrees"),s=!1,l={};(a||[]).forEach((function(t){l[t.id]=t})),(a||[]).forEach((function(t){s||gn(t,(function(t){if(s&&l[t.id])return!1;if(n.parentId===t.id?(l={},t.children.forEach((function(t){l[t.id]=t}))):n.id===t.id&&(s=!0),s){var i=e.findById(t.id);i&&i.getType&&"combo"===i.getType()&&(r=r.concat(i.getNodes()),o=o.concat(i.getCombos()))}return!0}))}));var c={},u={};i.forEach((function(t){if(!t.isVisible()||t.getModel().isVEdge){var i=t.getSource(),a=t.getTarget(),s=i.get("id"),l=a.get("id");if((r.includes(i)||o.includes(i))&&!r.includes(a)&&!o.includes(a)||s===n.id){if(t.getModel().isVEdge)return void e.removeItem(t,!1);for(var h=a.getModel();!a.isVisible();){if(!(a=e.findById(h.comboId||h.parentId))||!h.parentId&&!h.comboId)return;h=a.getModel()}l=h.id;for(var d=i.getModel();!i.isVisible();){if(!(i=e.findById(d.comboId||d.parentId))||!d.parentId&&!d.comboId)return;if(d.comboId===n.id||d.parentId===n.id)break;d=i.getModel()}if(s=d.id,l){if(c[f=s+"-"+l])return c[f]+=t.getModel().size||1,void e.updateItem(u[f],{size:c[f]},!1);var p=e.addItem("vedge",{source:s,target:l,isVEdge:!0},!1);c[f]=t.getModel().size||1,u[f]=p}}else if(!r.includes(i)&&!o.includes(i)&&(r.includes(a)||o.includes(a))||l===n.id){if(t.getModel().isVEdge)return void e.removeItem(t,!1);for(d=i.getModel();!i.isVisible();){if(!(i=e.findById(d.comboId||d.parentId))||!d.parentId&&!d.comboId)return;d=i.getModel()}for(s=d.id,h=a.getModel();!a.isVisible();){if(!(a=e.findById(h.comboId||h.parentId))||!h.parentId&&!h.comboId)return;if(h.comboId===n.id||h.parentId===n.id)break;h=a.getModel()}if(l=h.id,s){var f;if(c[f=s+"-"+l])return c[f]+=t.getModel().size||1,void e.updateItem(u[f],{size:c[f]},!1);p=e.addItem("vedge",{target:l,source:s,isVEdge:!0},!1),c[f]=t.getModel().size||1,u[f]=p}}else(r.includes(i)||o.includes(i))&&(r.includes(a)||o.includes(a))&&i.isVisible()&&a.isVisible()&&t.show()}}))}},e.prototype.collapseExpandCombo=function(t){if(Object(ut.isString)(t)&&(t=this.findById(t)),!t.getType||"combo"===t.getType()){for(var e=t.getModel(),n=this.findById(e.parentId);n;){var i=n.getModel();if(i.collapsed)return console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),void(n=void 0);n=this.findById(i.parentId)}e.collapsed?this.expandCombo(t):this.collapseCombo(t),this.updateCombo(t)}},e.prototype.collapseGroup=function(t){this.get("customGroupControll").collapseGroup(t)},e.prototype.expandGroup=function(t){this.get("customGroupControll").expandGroup(t)},e.prototype.addPlugin=function(t){t.destroyed||(this.get("plugins").push(t),t.initPlugin(this))},e.prototype.removePlugin=function(t){var e=this.get("plugins"),n=e.indexOf(t);n>=0&&(t.destroyPlugin(),e.splice(n,1))},e.prototype.sortCombos=function(){var t=this;if(!this.get("comboSorted")){this.set("comboSorted",!0);var e=[],n={};(this.get("comboTrees")||[]).forEach((function(t){gn(t,(function(t){return e[t.depth]?e[t.depth].push(t.id):e[t.depth]=[t.id],n[t.id]=t.depth,!0}))})),(this.getEdges().concat(this.get("vedges"))||[]).forEach((function(t){var i=t.getModel(),r=n[i.source]||0,o=n[i.target]||0,a=Math.max(r,o);e[a]?e[a].push(i.id):e[a]=[i.id]})),e.forEach((function(e){if(e&&e.length)for(var n=e.length-1;n>=0;n--){var i=t.findById(e[n]);null==i||i.toFront()}}))}},e.prototype.getNeighbors=function(t,e){var n=t;return Object(ut.isString)(t)&&(n=this.findById(t)),n.getNeighbors(e)},e.prototype.getNodeDegree=function(t,e){void 0===e&&(e=void 0);var n=t;Object(ut.isString)(t)&&(n=this.findById(t));var i=this.get("degrees");i||(i=So(this)),this.set("degees",i);var r,o=i[n.getID()];switch(e){case"in":r=o.inDegree;break;case"out":r=o.outDegree;break;case"all":r=o;break;default:r=o.degree}return r},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear())},e.prototype.pushStack=function(t,e,n){if(void 0===t&&(t="update"),void 0===n&&(n="undo"),this.get("enabledStack")){var i=e?Object(ut.clone)(e):{before:{},after:Object(ut.clone)(this.save())};"redo"===n?this.redoStack.push({action:t,data:i}):this.undoStack.push({action:t,data:i}),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack})}else console.warn("请先启用 undo & redo 功能，在实例化 Graph 时候配置 enabledStack: true !")},e.prototype.getAdjMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix");return n&&t||(n=Oo(this,e),this.set("adjMatrix",n)),n},e.prototype.getShortestPathMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix"),i=this.get("shortestPathMatrix");return n&&t||(n=Oo(this,e),this.set("adjMatrix",n)),i&&t||(i=Po(this,e),this.set("shortestPathMatrix",i)),i},e.prototype.destroy=function(){this.clear(),this.clearStack(),Object(ut.each)(this.get("plugins"),(function(t){t.destroyPlugin()}));var t=this.get("tooltips");if(t)for(var e=0;e<t.length;e++){var n=t[e];if(n){var i=n.parentElement;i&&i.removeChild(n)}}this.get("eventController").destroy(),this.get("itemController").destroy(),this.get("modeController").destroy(),this.get("viewController").destroy(),this.get("stateController").destroy(),this.get("layoutController").destroy(),this.get("customGroupControll").destroy(),this.get("canvas").destroy(),this.get("graphWaterMarker")&&this.get("graphWaterMarker").destroy(),document.querySelector(".g6-graph-watermarker")&&document.querySelector(".g6-graph-watermarker").remove(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null},e.prototype.createHull=function(t){var e=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),e||((e=this.get("group").addGroup({id:"hullGroup"})).toBack(),this.set("hullGroup",e)),n[t.id])return console.warn("Existed hull id."),n[t.id];var i=e.addGroup({id:t.id+"-container"}),r=new Go(this,Object(I.__assign)(Object(I.__assign)({},t),{group:i}));return n[r.id]=r,r},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(t){return this.get("hullMap")[t]},e.prototype.removeHull=function(t){var e;e=Object(ut.isString)(t)?this.getHullById(t):t,delete this.get("hullMap")[e.id],e.destroy()},e.prototype.setImageWaterMarker=function(t,e){void 0===t&&(t=J.waterMarkerImage);var n=this.get("container");Object(ut.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var i=this.get("graphWaterMarker"),r=Object(ut.deepMix)({},J.imageWaterMarkerConfig,e),o=r.width,a=r.height,s=r.compatible,l=r.image;if(!i){var c={container:n,width:o,height:a,capture:!1},u=this.get("pixelRatio");u&&(c.pixelRatio=u),i=new Re.a(c),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var h=i.get("context"),d=l.rotate,p=l.x,f=l.y;h.rotate(-d*Math.PI/180);var g=new Image;g.crossOrigin="anonymous",g.src=t,g.onload=function(){if(h.drawImage(g,p,f,l.width,l.height),h.rotate(d*Math.PI/180),s)n.style.cssText="background-image: url("+i.get("el").toDataURL("image/png")+");background-repeat:repeat;";else{var t=document.querySelector(".g6-graph-watermarker");t||((t=document.createElement("div")).className="g6-graph-watermarker"),t.className="g6-graph-watermarker",i.destroyed||(t.style.cssText="background-image: url("+i.get("el").toDataURL("image/png")+");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;",n.appendChild(t))}}},e.prototype.setTextWaterMarker=function(t,e){var n=this.get("container");Object(ut.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var i=this.get("graphWaterMarker"),r=Object(ut.deepMix)({},J.textWaterMarkerConfig,e),o=r.width,a=r.height,s=r.compatible,l=r.text;if(!i){var c={container:n,width:o,height:a,capture:!1},u=this.get("pixelRatio");u&&(c.pixelRatio=u),i=new Re.a(c),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var h=i.get("context"),d=l.rotate,p=l.fill,f=l.fontFamily,g=l.fontSize,m=l.baseline,v=l.x,y=l.y,b=l.lineHeight;h.rotate(-d*Math.PI/180),h.font=g+"px "+f,h.fillStyle=p,h.textBaseline=m;for(var x=t.length-1;x>=0;x--)h.fillText(t[x],v,y+x*b);if(h.rotate(d*Math.PI/180),s)n.style.cssText="background-image: url("+i.get("el").toDataURL("image/png")+");background-repeat:repeat;";else{var w=document.querySelector(".g6-graph-watermarker");w||((w=document.createElement("div")).className="g6-graph-watermarker"),w.style.cssText="background-image: url("+i.get("el").toDataURL("image/png")+");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;",n.appendChild(w)}},e}(Le.a),Wo=n(135),Uo=n.n(Wo),Zo=function(t){function e(e){var n=t.call(this,e)||this;return n.layoutAnimating=!1,n.set("removeList",[]),n.set("layoutMethod",n.getLayout()),n}return Object(I.__extends)(e,t),e.prototype.getLayout=function(){var t=this.get("layout");return t?"function"==typeof t?t:(t.type||(t.type="dendrogram"),t.direction||(t.direction="TB"),t.radial?function(e){var n=Uo.a[t.type](e,t);return vn(n),n}:function(e){return Uo.a[t.type](e,t)}):null},e.indexOfChild=function(t,e){var n=-1;return Object(f.each)(t,(function(t,i){if(e===t.id)return n=i,!1})),n},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.animate=!0,e},e.prototype.innerAddChild=function(t,e,n){var i=this,r=t.data;r&&(r.x=t.x,r.y=t.y,r.depth=t.depth);var o=i.addItem("node",r,!1);if(e){if(o.set("parent",e),n){var a=e.get("originAttrs");if(a)o.set("originAttrs",a);else{var s=e.getModel();o.set("originAttrs",{x:s.x,y:s.y})}}var l=e.get("children");l?l.push(o):e.set("children",[o]),i.addItem("edge",{source:e,target:o,id:e.get("id")+":"+o.get("id")},!1)}return Object(f.each)(t.children||[],(function(t){i.innerAddChild(t,o,n)})),i.emit("afteraddchild",{item:o,parent:e}),o},e.prototype.innerUpdateChild=function(t,n,i){var r=this,o=r.findById(t.id);if(o){Object(f.each)(t.children||[],(function(t){r.innerUpdateChild(t,o,i)}));var a,s,l=o.get("children");if(l&&l.length>0)for(var c=l.length-1;c>=0;c--){var u=l[c].getModel();-1===e.indexOfChild(t.children||[],u.id)&&(r.innerRemoveChild(u.id,{x:t.x,y:t.y},i),l.splice(c,1))}o.get("originAttrs")&&(a=o.get("originAttrs").x,s=o.get("originAttrs").y);var h=o.getModel();i&&o.set("originAttrs",{x:h.x,y:h.y}),o.set("model",t.data),a===t.x&&s===t.y||o.updatePosition({x:t.x,y:t.y})}else r.innerAddChild(t,n,i)},e.prototype.innerRemoveChild=function(t,e,n){var i=this,r=i.findById(t);if(r)if(Object(f.each)(r.get("children"),(function(t){i.innerRemoveChild(t.getModel().id,e,n)})),n){var o=r.getModel();r.set("to",e),r.set("originAttrs",{x:o.x,y:o.y}),i.get("removeList").push(r)}else i.removeItem(r)},e.prototype.changeData=function(t){var e=this;this.getNodes().map((function(t){return e.clearItemStates(t)})),this.getEdges().map((function(t){return e.clearItemStates(t)})),t?(e.data(t),e.render()):e.layout(this.get("fitView"))},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon"),this.updateLayout(t)},e.prototype.updateLayout=function(t){t?(this.set("layout",t),this.set("layoutMethod",this.getLayout()),this.layout()):console.warn("layout cannot be null")},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon"),this.layout(t)},e.prototype.layout=function(t){var e=this.get("data"),n=this.get("layoutMethod")(e,this.get("layout")),i=this.get("animate");this.emit("beforerefreshlayout",{data:e,layoutData:n}),this.emit("beforelayout"),this.innerUpdateChild(n,void 0,i),t&&this.get("viewController").fitView(),i?this.layoutAnimate(n):(this.refresh(),this.paint()),this.emit("afterrefreshlayout",{data:e,layoutData:n}),this.emit("afterlayout")},e.prototype.addChild=function(t,e){this.emit("beforeaddchild",{model:t,parent:e}),Object(f.isString)(e)||(e=e.get("id"));var n=this.findDataById(e);n&&(n.children||(n.children=[]),n.children.push(t),this.changeData())},e.prototype.updateChild=function(t,n){if(n&&this.findById(n)){var i=this.findById(n).getModel(),r=this.findById(t.id);if(i.children||(i.children=[]),r){var o=e.indexOfChild(i.children,t.id);i.children[o]=t}else i.children.push(t);this.changeData()}else this.changeData(t)},e.prototype.removeChild=function(t){var n=this.findById(t);if(n){var i=n.get("parent");if(i&&!i.destroyed){var r=this.findDataById(i.get("id")),o=r&&r.children||[],a=n.getModel(),s=e.indexOfChild(o,a.id);o.splice(s,1)}this.changeData()}},e.prototype.findDataById=function(t,e){var n=this;if(e||(e=n.get("data")),t===e.id)return e;var i=null;return Object(f.each)(e.children||[],(function(e){return e.id===t?(i=e,!1):!(i=n.findDataById(t,e))&&void 0})),i},e.prototype.layoutAnimate=function(t,e){var n=this,i=this.get("animateCfg");n.emit("beforeanimate",{data:t}),n.getEdges().forEach((function(t){var e=t.get("model");e.sourceAnchor||(e.sourceAnchor=t.get("sourceAnchorIndex"))})),this.get("canvas").animate((function(i){gn(t,(function(r){var o=n.findById(r.id);if(o){var a=o.get("originAttrs"),s=o.get("model");if(a||(a={x:s.x,y:s.y},o.set("originAttrs",a)),e){var l=e(o,i,a,t);o.set("model",Object.assign(s,l))}else s.x=a.x+(r.x-a.x)*i,s.y=a.y+(r.y-a.y)*i}return!0})),Object(f.each)(n.get("removeList"),(function(t){var e=t.getModel(),n=t.get("originAttrs"),r=t.get("to");e.x=n.x+(r.x-n.x)*i,e.y=n.y+(r.y-n.y)*i})),n.refreshPositions()}),{duration:i.duration,easing:i.ease,callback:function(){Object(f.each)(n.getNodes(),(function(t){t.set("originAttrs",null)})),Object(f.each)(n.get("removeList"),(function(t){n.removeItem(t)})),n.set("removeList",[]),i.callback&&i.callback(),n.emit("afteranimate",{data:t})},delay:i.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(){if(!this.get("data"))throw new Error("data must be defined first");this.clear(),this.emit("beforerender"),this.layout(this.get("fitView")),this.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e}(Ho),Yo=["startArrow","endArrow"],Xo={options:{},itemType:"",type:"",getCustomConfig:function(t){return{}},getOptions:function(t){return Object(ut.deepMix)({labelCfg:{style:{fontFamily:"undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"}},descriptionCfg:{style:{fontFamily:"undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"}}},this.options,this.getCustomConfig(t)||{},t)},draw:function(t,e){var n=this.drawShape(t,e);return n.set("className",this.itemType+"-shape"),t.label&&this.drawLabel(t,e).set("className",this.itemType+"-label"),n},afterDraw:function(t,e,n){},drawShape:function(t,e){return null},drawLabel:function(t,e){var n=this.getOptions(t).labelCfg||{},i=this.getLabelStyle(t,n,e),r=i.rotate;delete i.rotate;var o=e.addShape("text",{attrs:i,draggable:!0,className:"text-shape",name:"text-shape"});if(r){var a=o.getBBox(),s=o.getMatrix();if(s||(s=[1,0,0,0,1,0,0,0,1]),i.rotateCenter)switch(i.rotateCenter){case"center":s=pt(s,[["t",-a.width/2,-a.height/2],["r",r],["t",a.width/2,a.height/2]]);break;case"lefttop":s=pt(s,[["t",-i.x,-i.y],["r",r],["t",i.x,i.y]]);break;case"leftcenter":s=pt(s,[["t",-i.x,-i.y-a.height/2],["r",r],["t",i.x,i.y+a.height/2]]);break;default:s=pt(s,[["t",-a.width/2,-a.height/2],["r",r],["t",a.width/2,a.height/2]])}else s=pt(s,[["t",-i.x,-i.y-a.height/2],["r",r],["t",i.x,i.y+a.height/2]]);o.setMatrix(s)}if(i.background){var l=this.drawLabelBg(t,e,o),c=this.itemType+"-label-bg";l.set("classname",c),o.toFront()}return o},drawLabelBg:function(t,e,n){var i=this.options.labelCfg,r=Object(ut.mix)({},i,t.labelCfg),o=this.getLabelBgStyleByPosition(n,t,r,e);return e.addShape("rect",{name:"text-bg-shape",attrs:o})},getLabelStyleByPosition:function(t,e,n){return{text:t.label}},getLabelBgStyleByPosition:function(t,e,n,i){return{}},getLabelStyle:function(t,e,n){var i=this.getLabelStyleByPosition(t,e,n),r=this.itemType+"Label",o=J[r]?J[r].style:null;return Object(I.__assign)(Object(I.__assign)(Object(I.__assign)({},o),i),e.style)},getShapeStyle:function(t){return t.style},update:function(t,e){this.updateShapeStyle(t,e),this.updateLabel(t,e)},updateShapeStyle:function(t,e){var n=e.getContainer(),i=e.getKeyShape(),r=Object(ut.mix)({},i.attr(),t.style),o=function(t){var e,o=r[t];if(Object(ut.isPlainObject)(o)){var a=n.find((function(e){return e.get("name")===t}));a&&a.attr(o)}else i.attr(((e={})[t]=o,e))};for(var a in r)o(a)},updateLabel:function(t,e){var n=e.getContainer(),i=this.getOptions({}).labelCfg,r=this.itemType+"-label",o=n.find((function(t){return t.get("className")===r})),a=this.itemType+"-label-bg",s=n.find((function(t){return t.get("classname")===a}));if(t.label||""===t.label)if(o){var l={};e.getModel&&(l=e.getModel().labelCfg);var c=Object(ut.deepMix)({},i,l,t.labelCfg),u=this.getLabelStyleByPosition(t,c,n),h=t.labelCfg?t.labelCfg.style:void 0,d=c.style&&c.style.background,p=Object(I.__assign)(Object(I.__assign)(Object(I.__assign)({},o.attr()),u),h),f=p.rotate;if(delete p.rotate,f){var g=[1,0,0,0,1,0,0,0,1];g=pt(g,[["t",-p.x,-p.y],["r",f],["t",p.x,p.y]]),o.resetMatrix(),o.attr(Object(I.__assign)(Object(I.__assign)({},p),{matrix:g}))}else o.resetMatrix(),o.attr(p);if(s)if(p.background){var m=this.getLabelBgStyleByPosition(o,t,c,n),v=Object(I.__assign)(Object(I.__assign)({},m),d);s.resetMatrix(),f&&s.rotateAtStart(f),s.attr(v)}else n.removeChild(s);else p.background&&((s=this.drawLabelBg(t,n,o)).set("classname",a),o.toFront())}else this.drawLabel(t,n).set("className",r)},afterUpdate:function(t,e){},setState:function(t,e,n){var i,r,o=n.get("keyShape");if(o){var a=n.getType(),s=Object(ut.isBoolean)(e)?t:t+":"+e,l=this.getStateStyle(s,n),c=n.getStateStyle(s);if(c||l){var u=Object(ut.mix)({},c||l),h=n.getContainer();if(e){var d=function(t){var e,n=u[t];if(Object(ut.isPlainObject)(n)&&!Yo.includes(t)){var i=h.find((function(e){return e.get("name")===t}));i&&i.attr(n)}else o.attr(((e={})[t]=n,e))};for(var p in u)d(p)}else{var f=Object(ut.clone)(n.getCurrentStatesStyle()),g=n.getModel(),m=Object(ut.mix)({},g.style,Object(ut.clone)(n.getOriginStyle())),v=o.get("name"),y=o.attr(),b={},x=function(t){var e=u[t];if(Object(ut.isPlainObject)(e)&&!Yo.includes(t)){var n=h.find((function(e){return e.get("name")===t}));if(n){var i=n.attr();Object(ut.each)(e,(function(t,e){(i[e]||0===i[e])&&delete i[e]})),b[t]=i}}else y[t]&&!{x:1,y:1,cx:1,cy:1}[t]&&delete y[t]};for(var w in u)x(w);for(var p in v?b[v]=y:Object(ut.mix)(b,y),f){var _=f[p];Object(ut.isPlainObject)(_)&&!Yo.includes(p)||(v?(Object(ut.mix)(m[v],((r={})[p]=_,r)),delete m[p]):Object(ut.mix)(m,((i={})[p]=_,i)),delete f[p])}var C={};Object(ut.deepMix)(C,m,b,f);var A=function(t){var e,n,i=C[t];if(Object(ut.isPlainObject)(i)&&!Yo.includes(t)){var r=h.find((function(e){return e.get("name")===t}));r&&r.attr(i)}else"combo"===a?v||o.attr(((e={})[t]=i,e)):o.attr(((n={})[t]=i,n))};for(var I in C)A(I)}}}},getStateStyle:function(t,e){var n=e.getModel(),i=e.getType(),r=this.getOptions(n),o=r.stateStyles,a=r.style,s=void 0===a?{}:a,l=n.stateStyles?n.stateStyles[t]:o&&o[t];return"combo"===i?Object(ut.clone)(l):Object(ut.mix)({},s,l)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){return this.getOptions(t).anchorPoints}},qo={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:J.nodeLabel.offset,getSize:function(t){var e=t.size||this.getOptions({}).size||J.defaultNode.size;return Object(ut.isArray)(e)&&1===e.length&&(e=[e[0],e[0]]),Object(ut.isArray)(e)||(e=[e,e]),e},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition;if("center"===n)return{x:0,y:0,text:t.label};var i=e.offset;Object(ut.isNil)(i)&&(i=this.offset);var r,o=this.getSize(t),a=o[0],s=o[1];switch(n){case"top":r={x:0,y:0-s/2-i,textBaseline:"bottom"};break;case"bottom":r={x:0,y:s/2+i,textBaseline:"top"};break;case"left":r={x:0-a/2-i,y:0,textAlign:"right"};break;default:r={x:a/2+i,y:0,textAlign:"left"}}return r.text=t.label,r},getLabelBgStyleByPosition:function(t,e,n,i){if(!t)return{};var r=t.getBBox(),o=n.style&&n.style.background;if(!o)return{};var a,s=k(o.padding),l=r.width+s[1]+s[3],c=r.height+s[0]+s[2],u=n.offset;return Object(ut.isNil)(u)&&(u=this.offset),a={x:r.minX-s[3],y:r.minY-s[0]},Object(I.__assign)(Object(I.__assign)(Object(I.__assign)({},a),o),{width:l,height:c})},drawShape:function(t,e){var n=this.shapeType,i=this.getShapeStyle(t);return e.addShape(n,{attrs:i,draggable:!0,name:"node-shape"})},updateLinkPoints:function(t,e){var n,i=this.getOptions(t).linkPoints,r=e.find((function(t){return"link-point-left"===t.get("className")})),o=e.find((function(t){return"link-point-right"===t.get("className")})),a=e.find((function(t){return"link-point-top"===t.get("className")})),s=e.find((function(t){return"link-point-bottom"===t.get("className")}));r&&(n=r.attr()),o&&!n&&(n=o.attr()),a&&!n&&(n=a.attr()),s&&!n&&(n=s.attr()),n||(n=i);var l=Object(ut.mix)({},n,t.linkPoints),c=l.fill,u=l.stroke,h=l.lineWidth,d=l.size/2;d||(d=l.r);var p=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},f=p.left,g=p.right,m=p.top,v=p.bottom,y=this.getSize(t),b=y[0],x=y[1],w={r:d,fill:c,stroke:u,lineWidth:h};r?f||void 0===f?r.attr(Object(I.__assign)(Object(I.__assign)({},w),{x:-b/2,y:0})):r.remove():f&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},w),{x:-b/2,y:0}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),o?(g||void 0===g||o.remove(),o.attr(Object(I.__assign)(Object(I.__assign)({},w),{x:b/2,y:0}))):g&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},w),{x:b/2,y:0}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),a?(m||void 0===m||a.remove(),a.attr(Object(I.__assign)(Object(I.__assign)({},w),{x:0,y:-x/2}))):m&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},w),{x:0,y:-x/2}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s?v||void 0===v?s.attr(Object(I.__assign)(Object(I.__assign)({},w),{x:0,y:x/2})):s.remove():v&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},w),{x:0,y:x/2}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},updateShape:function(t,e,n,i){e.get("keyShape").attr(Object(I.__assign)({},n)),this.updateLabel(t,e),i&&this.updateIcon(t,e)},updateIcon:function(t,e){var n=this,i=e.getContainer(),r=this.getOptions(t).icon,o=(t.icon?t.icon:{show:void 0}).show,a=i.find((function(t){return t.get("className")===n.type+"-icon"}));if(a)if(o||void 0===o){var s=Object(ut.mix)({},a.attr(),r),l=s.width,c=s.height;a.attr(Object(I.__assign)(Object(I.__assign)({},s),{x:-l/2,y:-c/2}))}else a.remove();else if(o){l=r.width,c=r.height,i.addShape("image",{attrs:Object(I.__assign)(Object(I.__assign)({},r),{x:-l/2,y:-c/2}),className:this.type+"-icon",name:this.type+"-icon"});var u=i.find((function(t){return"node-label"===t.get("className")}));u&&u.toFront()}}},Ko=Object(I.__assign)(Object(I.__assign)({},Xo),qo);Pn.registerNode("single-node",Ko);var Qo={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:J.defaultEdge.size,style:{x:0,y:0,stroke:J.defaultEdge.style.stroke,lineAppendWidth:J.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:J.edgeLabel.style.fill,fontSize:J.edgeLabel.style.fontSize}},stateStyles:Object(I.__assign)({},J.edgeStateStyles)},getPath:function(t){var e=[];return Object(ut.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},i=Object(ut.mix)({},e,n,t.style),r=t.size||J.defaultEdge.size,o=(t=this.getPathPoints(t)).startPoint,a=t.endPoint,s=this.getControlPoints(t),l=[o];s&&(l=l.concat(s)),l.push(a);var c=this.getPath(l);return Object(ut.mix)({},J.defaultEdge.style,{stroke:J.defaultEdge.color,lineWidth:r,path:c},i)},updateShapeStyle:function(t,e){var n=e.getContainer(),i={stroke:t.color},r=n.find((function(t){return"edge-shape"===t.get("className")}))||e.getKeyShape(),o=t.size,a=(t=this.getPathPoints(t)).startPoint,s=t.endPoint,l=this.getControlPoints(t),c=[a];l&&(c=c.concat(l)),c.push(s);var u=Object(ut.mix)({},i,r.attr(),t.style),h=t.sourceNode,d=t.targetNode,p={radius:u.radius};l||(p={source:h,target:d,offset:u.offset,radius:u.radius});var f=this.getPath(c,p),g=Object(ut.mix)(i,r.attr(),{lineWidth:o,path:f},t.style);r&&r.attr(g)},getLabelStyleByPosition:function(t,e,n){var i,r=e.position||this.labelPosition,o={},a=n&&n.find((function(t){return"edge-shape"===t.get("className")}));i="start"===r?0:"end"===r?1:.5;var s=e.refX||this.refX,l=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return o.x=t.startPoint.x+s,o.y=t.startPoint.y+l,o.text=t.label,o;var c=Object(ut.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate,u=dn(a,i,s,l,c);return o.x=u.x,o.y=u.y,o.rotate=u.rotate,o.textAlign=this._getTextAlign(r,u.angle),o.text=t.label,o},getLabelBgStyleByPosition:function(t,e,n,i){if(!t)return{};var r=t.getBBox(),o=n.style&&n.style.background;if(!o)return{};var a,s=o.padding,l=r.width+s[1]+s[3],c=r.height+s[0]+s[2],u=n.position||this.labelPosition,h=Object(I.__assign)(Object(I.__assign)({},o),{width:l,height:c,x:r.minX-s[2],y:r.minY-s[0],rotate:0}),d=Object(ut.isNil)(n.autoRotate)?this.labelAutoRotate:n.autoRotate,p=i&&i.find((function(t){return"edge-shape"===t.get("className")}));a="start"===u?0:"end"===u?1:.5;var f=n.refX||this.refX,g=n.refY||this.refY;if(e.startPoint.x===e.endPoint.x&&e.startPoint.y===e.endPoint.y)return h.x=e.startPoint.x+f,h.y=e.startPoint.y+g,h;var m=dn(p,a,f-l/2,g+c/2,d),v=m.angle;return v>.5*Math.PI&&v<1.5*Math.PI&&(m=dn(p,a,f+l/2,g+c/2,d)),d&&(h.x=m.x,h.y=m.y),h.rotate=m.rotate,h},_getTextAlign:function(t,e){var n="center";return e?(e%=2*Math.PI,"center"!==t&&(n=e>=0&&e<=Math.PI/2||e>=1.5*Math.PI&&e<2*Math.PI?t:function(t){var e=t;return"start"===t?e="end":"end"===t&&(e="start"),e}(t)),n):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n})},drawLabel:function(t,e){var n=this.options.labelCfg,i=Object(ut.deepMix)({fontFamily:"undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"},n,t.labelCfg),r=this.getLabelStyle(t,i,e),o=r.rotate;delete r.rotate;var a=e.addShape("text",{attrs:r,name:"text-shape"});if(o&&a.rotateAtStart(o),r.background){var s=this.drawLabelBg(t,e,a),l=this.itemType+"-label-bg";s.set("classname",l),a.toFront()}return a},drawLabelBg:function(t,e,n){var i=this.options.labelCfg,r=Object(ut.deepMix)({},i,t.labelCfg),o=this.getLabelStyle(t,r,e).rotate,a=this.getLabelBgStyleByPosition(n,t,r,e);delete a.rotate;var s=e.addShape("rect",{name:"text-bg-shape",attrs:a});return o&&s.rotateAtStart(o),s}},Jo=Object(I.__assign)(Object(I.__assign)({},Xo),Qo);Pn.registerEdge("single-edge",Jo),Pn.registerEdge("line",{getControlPoints:function(){}},"single-edge"),Pn.registerEdge("spline",{getPath:function(t){return ye(t)}},"single-edge"),Pn.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e,n,i=t.startPoint,r=t.endPoint,o=(i.x+r.x)/2,a=(i.y+r.y)/2;if(void 0!==t.controlPoints){if(n=t.controlPoints[0],e=Gt(i,n,r),i.x<=r.x&&i.y>r.y?this.clockwise=e.x>n.x?0:1:i.x<=r.x&&i.y<r.y?this.clockwise=e.x>n.x?1:0:i.x>r.x&&i.y<=r.y?this.clockwise=e.y<n.y?0:1:this.clockwise=e.y<n.y?1:0,(n.x-i.x)/(n.y-i.y)==(r.x-i.x)/(r.y-i.y))return[]}else{void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),y()(t.curveOffset)&&(t.curveOffset=t.curveOffset[0]),t.curveOffset<0?this.clockwise=0:this.clockwise=1;var s={x:r.x-i.x,y:r.y-i.y},l=Math.atan2(s.y,s.x);n={x:t.curveOffset*Math.cos(-Math.PI/2+l)+o,y:t.curveOffset*Math.sin(-Math.PI/2+l)+a},e=Gt(i,n,r)}var c=Ht(i,e);return[{x:c,y:c}]},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),2===t.length?e.push(["L",t[1].x,t[1].y]):e.push(["A",t[1].x,t[1].y,0,0,this.clockwise,t[2].x,t[2].y]),e}},"single-edge"),Pn.registerEdge("quadratic",{curvePosition:.5,curveOffset:-20,getControlPoints:function(t){var e=t.controlPoints;if(!e||!e.length){var n=t.startPoint,i=t.endPoint;void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),y()(this.curveOffset)&&(t.curveOffset=t.curveOffset[0]),y()(this.curvePosition)&&(t.curvePosition=t.curveOffset[0]),e=[be(n,i,t.curvePosition,t.curveOffset)]}return e},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["Q",t[1].x,t[1].y,t[2].x,t[2].y]),e}},"single-edge"),Pn.registerEdge("cubic",{curvePosition:[.5,.5],curveOffset:[-20,20],getControlPoints:function(t){var e=t.controlPoints;if(void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),_()(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),_()(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]),!e||!e.length||e.length<2){var n=t.startPoint,i=t.endPoint;e=[be(n,i,t.curvePosition[0],t.curveOffset[0]),be(n,i,t.curvePosition[1],t.curveOffset[1])]}return e},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y]),e}},"single-edge"),Pn.registerEdge("cubic-vertical",{curvePosition:[.5,.5],getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;return void 0!==t.curvePosition&&(this.curvePosition=t.curvePosition),_()(this.curvePosition)&&(this.curvePosition=[this.curvePosition,1-this.curvePosition]),[{x:e.x,y:(n.y-e.y)*this.curvePosition[0]+e.y},{x:n.x,y:(n.y-e.y)*this.curvePosition[1]+e.y}]}},"cubic"),Pn.registerEdge("cubic-horizontal",{curvePosition:[.5,.5],getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;return void 0!==t.curvePosition&&(this.curvePosition=t.curvePosition),_()(this.curvePosition)&&(this.curvePosition=[this.curvePosition,1-this.curvePosition]),[{x:(n.x-e.x)*this.curvePosition[0]+e.x,y:e.y},{x:(n.x-e.x)*this.curvePosition[1]+e.x,y:n.y}]}},"cubic"),Pn.registerEdge("loop",{getPathPoints:function(t){return hn(t)},getControlPoints:function(t){return t.controlPoints},afterDraw:function(t){t.controlPoints=void 0},afterUpdate:function(t){t.controlPoints=void 0}},"cubic");var $o={itemType:"combo",shapeType:"single-combo",labelPosition:"top",refX:J.comboLabel.refX,refY:J.comboLabel.refY,options:{style:{stroke:J.defaultCombo.style.stroke,fill:J.defaultCombo.style.fill,lineWidth:J.defaultCombo.style.lineWidth},labelCfg:{style:{fill:J.comboLabel.style.fill,fontSize:J.comboLabel.style.fontSize}},stateStyles:Object(I.__assign)({},J.comboStateStyles)},getSize:function(t){var e=Object(ut.clone)(t.size||this.options.size||J.defaultCombo.size);return Object(ut.isArray)(e)&&1===e.length&&(e=[e[0],e[0]]),Object(ut.isArray)(e)||(e=[e,e]),e},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition,i=t.style,r=t.padding||this.options.padding;Object(ut.isArray)(r)&&(r=r[0]);var o=e.refX,a=e.refY;Object(ut.isNil)(o)&&(o=this.refX),Object(ut.isNil)(a)&&(a=this.refY);var s,l=this.getSize(t),c=(Math.max(i.r,l[0]/2)||l[0]/2)+r;switch(n){case"top":s={x:0,y:-c-a,textBaseline:"bottom",textAlign:"center"};break;case"bottom":s={x:0,y:c+a,textBaseline:"bottom",textAlign:"center"};break;case"left":s={x:-c+o,y:0,textAlign:"left"};break;case"center":s={x:0,y:0,text:t.label,textAlign:"center"};break;default:s={x:c+o,y:0,textAlign:"right"}}return s.text=t.label,s},drawShape:function(t,e){var n=this.shapeType,i=this.getShapeStyle(t);return e.addShape(n,{attrs:i,draggable:!0,name:"combo-shape"})},updateShape:function(t,e,n){var i=e.get("keyShape");(void 0===t.animate?this.options.animate:t.animate)&&i.animate?i.animate(n,{duration:200,easing:"easeLinear"}):i.attr(Object(I.__assign)({},n)),this.updateLabel(t,e)}},ta=Object(I.__assign)(Object(I.__assign)({},Xo),$o);Pn.registerCombo("single-combo",ta),Pn.registerCombo("circle",{options:{size:[J.defaultCombo.size[0],J.defaultCombo.size[0]],padding:J.defaultCombo.padding[0],animate:!0,style:{stroke:J.defaultCombo.style.stroke,fill:J.defaultCombo.style.fill,lineWidth:J.defaultCombo.style.lineWidth},labelCfg:{style:{fill:J.comboLabel.style.fill,fontSize:J.comboLabel.style.fontSize},refX:0,refY:0},stateStyles:Object(I.__assign)({},J.comboStateStyles)},shapeType:"circle",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t);return delete n.height,delete n.width,e.addShape("circle",{attrs:n,className:"circle-combo",name:"circle-combo",draggable:!0})},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;Object(ut.isArray)(n)&&(n=n[0]);var i,r={stroke:t.color},o=Object(ut.mix)({},e,r,t.style),a=this.getSize(t);i=!Object(ut.isNumber)(o.r)||isNaN(o.r)?a[0]/2||J.defaultCombo.style.r:Math.max(o.r,a[0]/2)||a[0]/2,o.r=i+n;var s=Object(I.__assign)({x:0,y:0},o);return t.style?t.style.r=i:t.style={r:i},s},update:function(t,e){var n=this.getSize(t),i=t.padding||this.options.padding;Object(ut.isArray)(i)&&(i=i[0]);var r=Object(ut.clone)(t.style),o=Math.max(r.r,n[0]/2)||n[0]/2;r.r=o+i;var a=e.get("sizeCache");a&&(a.r=r.r);var s={stroke:t.color},l=e.get("keyShape"),c=Object(ut.mix)({},l.attr(),s,r);t.style?t.style.r=o:t.style={r:o},this.updateShape(t,e,c,!0)}},"single-combo"),Pn.registerCombo("rect",{options:{size:[40,5],padding:[25,20,15,20],animate:!0,style:{radius:0,stroke:J.defaultCombo.style.stroke,fill:J.defaultCombo.style.fill,lineWidth:J.defaultCombo.style.lineWidth},labelCfg:{style:{fill:J.comboLabel.style.fill,fontSize:J.comboLabel.style.fontSize}},anchorPoints:[[0,.5],[1,.5]],stateStyles:Object(I.__assign)({},J.comboStateStyles)},shapeType:"rect",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("rect",{attrs:n,className:"rect-combo",name:"rect-combo",draggable:!0})},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition,i=t.style,r=t.padding||this.options.padding;Object(ut.isNumber)(r)&&(r=[r,r,r,r]);var o=e.refX,a=e.refY;Object(ut.isNil)(o)&&(o=this.refX),Object(ut.isNil)(a)&&(a=this.refY);var s,l=i.width/2+r[3],c=i.height/2+r[0];switch(n){case"top":s={x:0-l+o,y:0-c+a,textBaseline:"top",textAlign:"left"};break;case"bottom":s={x:0,y:c+a,textBaseline:"bottom",textAlign:"center"};break;case"left":s={x:0-l+a,y:0,textAlign:"left"};break;case"center":s={x:0,y:0,text:t.label,textAlign:"center"};break;default:s={x:l+o,y:0,textAlign:"right"}}return s.text=t.label,s},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;Object(ut.isNumber)(n)&&(n=[n,n,n,n]);var i,r,o={stroke:t.color},a=Object(ut.mix)({},e,o,t.style),s=this.getSize(t);i=!Object(ut.isNumber)(a.width)||isNaN(a.width)?s[0]||J.defaultCombo.style.width:Math.max(a.width,s[0])||s[0],r=!Object(ut.isNumber)(a.height)||isNaN(a.height)?s[1]||J.defaultCombo.style.height:Math.max(a.height,s[1])||s[1];var l=-i/2-n[3],c=-r/2-n[0];a.width=i+n[1]+n[3],a.height=r+n[0]+n[2];var u=Object(I.__assign)({x:l,y:c},a);return t.style?(t.style.width=i,t.style.height=r):t.style={width:i,height:r},u},update:function(t,e){var n=this.getSize(t),i=t.padding||this.options.padding;Object(ut.isNumber)(i)&&(i=[i,i,i,i]);var r=Object(ut.clone)(t.style),o=Math.max(r.width,n[0])||n[0],a=Math.max(r.height,n[1])||n[1];r.width=o+i[1]+i[3],r.height=a+i[0]+i[2];var s=e.get("sizeCache");s&&(s.width=r.width,s.height=r.height),r.x=-o/2-i[3],r.y=-a/2-i[0];var l={stroke:t.color},c=e.get("keyShape"),u=Object(ut.mix)({},c.attr(),l,r);t.style?(t.style.width=o,t.style.height=a):t.style={width:o,height:a},this.updateShape(t,e,u,!1)},updateShape:function(t,e,n){var i=e.get("keyShape");(void 0===t.animate?this.options.animate:t.animate)&&i.animate?i.animate(n,{duration:200,easing:"easeLinear"}):i.attr(Object(I.__assign)({},n)),this.updateLabel(t,e)}},"single-combo"),Pn.registerNode("circle",{options:{size:J.defaultNode.size,style:{x:0,y:0,stroke:J.defaultNode.style.stroke,fill:J.defaultNode.style.fill,lineWidth:J.defaultNode.style.lineWidth},labelCfg:{style:{fill:J.nodeLabel.style.fill,fontSize:J.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:J.defaultNode.linkPoints.size,lineWidth:J.defaultNode.linkPoints.lineWidth,fill:J.defaultNode.linkPoints.fill,stroke:J.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Object(I.__assign)({},J.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=this.getOptions(t).icon,i=void 0===n?{}:n,r=this.getShapeStyle(t),o=Ct()({},i,t.icon),a=e.addShape("circle",{attrs:r,className:this.type+"-keyShape",draggable:!0}),s=o.width,l=o.height;return o.show&&e.addShape("image",{attrs:Object(I.__assign)({x:-s/2,y:-l/2},o),className:this.type+"-icon",name:this.type+"-icon",draggable:!0}),this.drawLinkPoints(t,e),a},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,i=void 0===n?{}:n,r=i.top,o=i.left,a=i.right,s=i.bottom,l=i.size,c=i.r,u=Object(I.__rest)(i,["top","left","right","bottom","size","r"]),h=this.getSize(t)[0]/2;o&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:-h,y:0,r:l/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:h,y:0,r:l/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),r&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:-h,r:l/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:h,r:l/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},i=Ct()({},e,n),r=this.getSize(t)[0]/2;return Object(I.__assign)({x:0,y:0,r:r},i)},update:function(t,e){var n=e.getContainer(),i=this.getSize(t),r={stroke:t.color,r:i[0]/2},o=e.get("keyShape"),a=Ct()({},o.attr(),r,t.style);this.updateShape(t,e,a,!0),this.updateLinkPoints(t,n)}},"single-node"),Pn.registerNode("rect",{options:{size:[100,30],style:{radius:0,stroke:J.defaultNode.style.stroke,fill:J.defaultNode.style.fill,lineWidth:J.defaultNode.style.lineWidth},labelCfg:{style:{fill:J.nodeLabel.style.fill,fontSize:J.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:J.defaultNode.linkPoints.size,lineWidth:J.defaultNode.linkPoints.lineWidth,fill:J.defaultNode.linkPoints.fill,stroke:J.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:Object(I.__assign)({},J.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t),i=e.addShape("rect",{attrs:n,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0});return this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,i=void 0===n?{}:n,r=i.top,o=i.left,a=i.right,s=i.bottom,l=i.size,c=i.r,u=Object(I.__rest)(i,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],p=h[1];o&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:-d/2,y:0,r:l/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:d/2,y:0,r:l/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),r&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:-p/2,r:l/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:p/2,r:l/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},i=Object(ut.mix)({},e,n),r=this.getSize(t),o=i.width||r[0],a=i.height||r[1];return Object(I.__assign)({x:-o/2,y:-a/2,width:o,height:a},i)},update:function(t,e){var n=e.getContainer(),i=this.getOptions({}).style,r=this.getSize(t),o=e.get("keyShape");t.size||(r[0]=o.attr("width")||i.width,r[1]=o.attr("height")||i.height);var a={stroke:t.color,x:-r[0]/2,y:-r[1]/2,width:r[0],height:r[1]},s=Object(ut.mix)({},i,o.attr(),a);s=Object(ut.mix)(s,t.style),this.updateShape(t,e,s,!1),this.updateLinkPoints(t,n)}},"single-node"),Pn.registerNode("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:J.defaultNode.style.stroke,fill:J.defaultNode.style.fill,lineWidth:J.defaultNode.style.lineWidth},labelCfg:{style:{fill:J.nodeLabel.style.fill,fontSize:J.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:J.defaultNode.linkPoints.size,lineWidth:J.defaultNode.linkPoints.lineWidth,fill:J.defaultNode.linkPoints.fill,stroke:J.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Object(I.__assign)({},J.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var n=this.getOptions(t).icon,i=void 0===n?{}:n,r=this.getShapeStyle(t),o=e.addShape("ellipse",{attrs:r,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0}),a=i.width,s=i.height;return i.show&&e.addShape("image",{attrs:Object(I.__assign)({x:-a/2,y:-s/2},i),className:this.type+"-icon",name:this.type+"-icon",draggable:!0}),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,i=void 0===n?{}:n,r=i.top,o=i.left,a=i.right,s=i.bottom,l=i.size,c=i.r,u=Object(I.__rest)(i,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0]/2,p=h[1]/2;o&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:-d,y:0,r:l/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:d,y:0,r:l/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),r&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:-p,r:l/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:p,r:l/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},i=Object(ut.mix)({},e,n),r=this.getSize(t),o=r[0]/2,a=r[1]/2;return Object(I.__assign)({x:0,y:0,rx:o,ry:a},i)},update:function(t,e){var n=e.getContainer(),i=this.getOptions({}).style,r=this.getSize(t),o={stroke:t.color,rx:r[0]/2,ry:r[1]/2},a=e.get("keyShape"),s=Object(ut.mix)({},i,a.attr(),o);s=Object(ut.mix)(s,t.style),this.updateShape(t,e,s,!0),this.updateLinkPoints(t,n)}},"single-node"),Pn.registerNode("diamond",{options:{size:[80,80],style:{stroke:J.defaultNode.style.stroke,fill:J.defaultNode.style.fill,lineWidth:J.defaultNode.style.lineWidth},labelCfg:{style:{fill:J.nodeLabel.style.fill,fontSize:J.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:J.defaultNode.linkPoints.size,lineWidth:J.defaultNode.linkPoints.lineWidth,fill:J.defaultNode.linkPoints.fill,stroke:J.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Object(I.__assign)({},J.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var n=this.getOptions(t).icon,i=void 0===n?{}:n,r=this.getShapeStyle(t),o=e.addShape("path",{attrs:r,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0}),a=i.width,s=i.height;return i.show&&e.addShape("image",{attrs:Object(I.__assign)({x:-a/2,y:-s/2},i),className:this.type+"-icon",name:this.type+"-icon",draggable:!0}),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,i=void 0===n?{}:n,r=i.top,o=i.left,a=i.right,s=i.bottom,l=i.size,c=i.r,u=Object(I.__rest)(i,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],p=h[1];o&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:-d/2,y:0,r:l/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:d/2,y:0,r:l/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),r&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:-p/2,r:l/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:p/2,r:l/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getPath:function(t){var e=this.getSize(t),n=e[0],i=e[1];return[["M",0,-i/2],["L",n/2,0],["L",0,i/2],["L",-n/2,0],["Z"]]},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},i=Object(ut.mix)({},e,n),r=this.getPath(t);return Object(I.__assign)({path:r},i)},update:function(t,e){var n=e.getContainer(),i=this.getOptions({}).style,r=this.getPath(t),o={stroke:t.color,path:r},a=e.get("keyShape"),s=Object(ut.mix)({},i,a.attr(),o);s=Object(ut.mix)(s,t.style),this.updateShape(t,e,s,!0),this.updateLinkPoints(t,n)}},"single-node"),Pn.registerNode("triangle",{options:{size:40,direction:"up",style:{stroke:J.defaultNode.style.stroke,fill:J.defaultNode.style.fill,lineWidth:J.defaultNode.style.lineWidth},labelCfg:{style:{fill:J.nodeLabel.style.fill,fontSize:J.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:J.defaultNode.linkPoints.size,lineWidth:J.defaultNode.linkPoints.lineWidth,fill:J.defaultNode.linkPoints.fill,stroke:J.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:Object(I.__assign)({},J.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var n=this.getOptions(t),i=n.icon,r=void 0===i?{}:i,o=n.direction,a=this.getShapeStyle(t),s=t.direction||o,l=e.addShape("path",{attrs:a,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0}),c=r.width,u=r.height,h=r.show,d=r.offset;if(h){var p=-c/2,f=-u/2;"up"!==s&&"down"!==s||(f+=d),"left"!==s&&"right"!==s||(p+=d),e.addShape("image",{attrs:Object(I.__assign)({x:p,y:f},r),className:this.type+"-icon",name:this.type+"-icon",draggable:!0})}return this.drawLinkPoints(t,e),l},drawLinkPoints:function(t,e){var n=this.getOptions(t),i=n.linkPoints,r=void 0===i?{}:i,o=n.direction,a=t.direction||o,s=r.top,l=r.left,c=r.right,u=r.bottom,h=r.size,d=r.r,p=Object(I.__rest)(r,["top","left","right","bottom","size","r"]),f=this.getSize(t)[0];if(l){var g=null,m=f*Math.sin(1/3*Math.PI),v=f*Math.sin(1/3*Math.PI);"up"===a?g=[-v,m]:"down"===a?g=[-v,-m]:"left"===a&&(g=[-v,v-m]),g&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},p),{x:g[0],y:g[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"})}if(c){var y=null;m=f*Math.sin(1/3*Math.PI),v=f*Math.sin(1/3*Math.PI),"up"===a?y=[v,m]:"down"===a?y=[v,-m]:"right"===a&&(y=[v,v-m]),y&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},p),{x:y[0],y:y[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"})}if(s){var b=null;m=f*Math.sin(1/3*Math.PI),v=f*Math.sin(1/3*Math.PI),"up"===a?b=[v-m,-m]:"left"===a?b=[v,-m]:"right"===a&&(b=[-v,-m]),b&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},p),{x:b[0],y:b[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"})}if(u){var x=null;m=f*Math.sin(1/3*Math.PI),v=f*Math.sin(1/3*Math.PI),"down"===a?x=[-v+m,m]:"left"===a?x=[v,m]:"right"===a&&(x=[-v,m]),x&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},p),{x:x[0],y:x[1],r:h/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"})}},getPath:function(t){var e=this.getOptions(t).direction,n=t.direction||e,i=this.getSize(t)[0],r=i*Math.sin(1/3*Math.PI),o=i*Math.sin(1/3*Math.PI),a=[["M",-o,r],["L",0,-r],["L",o,r],["Z"]];return"down"===n?a=[["M",-o,-r],["L",o,-r],["L",0,r],["Z"]]:"left"===n?a=[["M",-o,o-r],["L",o,-o],["L",o,o],["Z"]]:"right"===n&&(a=[["M",o,o-r],["L",-o,o],["L",-o,-o],["Z"]]),a},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},i=Object(ut.mix)({},e,n),r=this.getPath(t);return Object(I.__assign)({path:r},i)},update:function(t,e){var n=e.getContainer(),i=this.getOptions({}).style,r=this.getPath(t),o={stroke:t.color,path:r},a=e.get("keyShape"),s=Object(ut.mix)({},i,a.attr(),o);s=Object(ut.mix)(s,t.style),this.updateShape(t,e,s,!0),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var n=this.getOptions({}),i=n.linkPoints,r=n.direction,o=t.direction||r,a=e.find((function(t){return"link-point-left"===t.get("className")})),s=e.find((function(t){return"link-point-right"===t.get("className")})),l=e.find((function(t){return"link-point-top"===t.get("className")})),c=e.find((function(t){return"link-point-bottom"===t.get("className")})),u=i,h=a||s||l||c;h&&(u=h.attr());var d=Object(ut.mix)({},u,t.linkPoints),p=d.fill,f=d.stroke,g=d.lineWidth,m=d.size/2;m||(m=d.r);var v=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},y=v.left,b=v.right,x=v.top,w=v.bottom,_=this.getSize(t)[0],C={r:m,fill:p,stroke:f,lineWidth:g},A=null,S=_*Math.sin(1/3*Math.PI),M=_*Math.sin(1/3*Math.PI);"up"===o?A=[-M,S]:"down"===o?A=[-M,-S]:"left"===o&&(A=[-M,M-S]),A&&(a?y||void 0===y?a.attr(Object(I.__assign)(Object(I.__assign)({},C),{x:A[0],y:A[1]})):a.remove():y&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},C),{x:A[0],y:A[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}));var k=null;"up"===o?k=[M,S]:"down"===o?k=[M,-S]:"right"===o&&(k=[M,M-S]),k&&(s?b||void 0===b?s.attr(Object(I.__assign)(Object(I.__assign)({},C),{x:k[0],y:k[1]})):s.remove():b&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},C),{x:k[0],y:k[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}));var E=null;"up"===o?E=[M-S,-S]:"left"===o?E=[M,-S]:"right"===o&&(E=[-M,-S]),E&&(l?x||void 0===x?l.attr(Object(I.__assign)(Object(I.__assign)({},C),{x:E[0],y:E[1]})):l.remove():x&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},C),{x:E[0],y:E[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}));var T=null;"down"===o?T=[-M+S,S]:"left"===o?T=[M,S]:"right"===o&&(T=[-M,S]),T&&(c?w||void 0===w?c.attr(Object(I.__assign)(Object(I.__assign)({},C),{x:T[0],y:T[1]})):c.remove():w&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},C),{x:T[0],y:T[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))}},"single-node"),Pn.registerNode("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:J.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf"},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var n=this.getOptions(t).preRect,i=void 0===n?{}:n,r=this.getShapeStyle(t),o=this.getSize(t),a=o[0],s=o[1],l=e.addShape("rect",{attrs:r,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0}),c=i.show,u=Object(I.__rest)(i,["show"]);return c&&e.addShape("rect",{attrs:Object(I.__assign)({x:-a/2,y:-s/2,height:s},u),className:"pre-rect",name:"pre-rect",draggable:!0}),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),l},drawLogoIcon:function(t,e){var n=this.getOptions(t).logoIcon,i=void 0===n?{}:n,r=this.getSize(t)[0];if(i.show){var o=i.width,a=i.height,s=i.x,l=i.y,c=i.offset,u=Object(I.__rest)(i,["width","height","x","y","offset"]);e.addShape("image",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:s||-r/2+o+c,y:l||-a/2,width:o,height:a}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var n=this.getOptions(t).stateIcon,i=void 0===n?{}:n,r=this.getSize(t)[0];if(i.show){var o=i.width,a=i.height,s=i.x,l=i.y,c=i.offset,u=Object(I.__rest)(i,["width","height","x","y","offset"]);e.addShape("image",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:s||r/2-o+c,y:l||-a/2,width:o,height:a}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,i=void 0===n?{}:n,r=i.top,o=i.left,a=i.right,s=i.bottom,l=i.size,c=i.r,u=Object(I.__rest)(i,["top","left","right","bottom","size","r"]),h=this.getSize(t),d=h[0],p=h[1];o&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:-d/2,y:0,r:l/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:d/2,y:0,r:l/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),r&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:-p/2,r:l/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},u),{x:0,y:p/2,r:l/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},drawLabel:function(t,e){var n=this.getOptions(t),i=n.labelCfg,r=void 0===i?{}:i,o=n.logoIcon,a=void 0===o?{}:o,s=n.descriptionCfg,l=void 0===s?{}:s,c=this.getSize(t)[0],u=null,h=a.show,d=a.width,p=-c/2+r.offset;h&&(p=-c/2+d+r.offset);var f=r.style,g=l.style,m=l.paddingTop;return Object(ut.isString)(t.description)?(u=e.addShape("text",{attrs:Object(I.__assign)(Object(I.__assign)({},f),{x:p,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0}),e.addShape("text",{attrs:Object(I.__assign)(Object(I.__assign)({},g),{x:p,y:17+(m||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0})):u=e.addShape("text",{attrs:Object(I.__assign)(Object(I.__assign)({},f),{x:p,y:7,text:t.label}),draggable:!0}),u},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},i=Object(ut.mix)({},e,n),r=this.getSize(t),o=i.width||r[0],a=i.height||r[1];return Object(I.__assign)({x:-o/2,y:-a/2,width:o,height:a},i)},update:function(t,e){var n=this.getOptions(t),i=n.style,r=void 0===i?{}:i,o=n.labelCfg,a=void 0===o?{}:o,s=n.descriptionCfg,l=void 0===s?{}:s,c=this.getSize(t),u=c[0],h=c[1];e.get("keyShape").attr(Object(I.__assign)(Object(I.__assign)({},r),{x:-u/2,y:-h/2,width:u,height:h}));var d=e.getContainer(),p=d.find((function(t){return"rect-logo-icon"===t.get("className")})),f=p?p.attr():{},g=Object(ut.mix)({},f,t.logoIcon),m=g.width;void 0===m&&(m=this.options.logoIcon.width);var v=t.logoIcon?t.logoIcon.show:void 0,y=a.offset,b=-u/2+m+y;v||void 0===v||(b=-u/2+y);var x=d.find((function(t){return"node-label"===t.get("className")})),w=d.find((function(t){return"rect-description"===t.get("className")}));if(t.label)if(x){var _=t.labelCfg?t.labelCfg.style:{},C=Object(ut.mix)({},x.attr(),_);t.label&&(C.text=t.label),C.x=b,Object(ut.isString)(t.description)&&(C.y=-5),w&&(w.resetMatrix(),w.attr({x:b})),x.resetMatrix(),x.attr(C)}else d.addShape("text",{attrs:Object(I.__assign)(Object(I.__assign)({},a.style),{x:b,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0});if(Object(ut.isString)(t.description)){var A=l.paddingTop;if(w){_=t.descriptionCfg?t.descriptionCfg.style:{};var S=Object(ut.mix)({},w.attr(),_);Object(ut.isString)(t.description)&&(S.text=t.description),S.x=b,w.resetMatrix(),w.attr(Object(I.__assign)(Object(I.__assign)({},S),{y:17+(A||0)}))}else d.addShape("text",{attrs:Object(I.__assign)(Object(I.__assign)({},l.style),{x:b,y:17+(A||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0})}var M=d.find((function(t){return"pre-rect"===t.get("className")}));if(M){var k=Object(ut.mix)({},M.attr(),t.preRect);M.attr(Object(I.__assign)(Object(I.__assign)({},k),{x:-u/2,y:-h/2,height:h}))}if(p)if(v||void 0===v){var E=g.width,T=g.height,O=g.x,P=g.y,j=g.offset,L=Object(I.__rest)(g,["width","height","x","y","offset"]);p.attr(Object(I.__assign)(Object(I.__assign)({},L),{x:O||-u/2+E+j,y:P||-T/2,width:E,height:T}))}else p.remove();else v&&this.drawLogoIcon(t,d);var D=d.find((function(t){return"rect-state-icon"===t.get("className")})),R=D?D.attr():{},B=Object(ut.mix)({},R,t.stateIcon);if(D){B.show||void 0===B.show||D.remove();var N=B.width,F=(T=B.height,O=B.x,P=B.y,B.offset),z=Object(I.__rest)(B,["width","height","x","y","offset"]);D.attr(Object(I.__assign)(Object(I.__assign)({},z),{x:O||u/2-N+F,y:P||-T/2,width:N,height:T}))}else B.show&&this.drawStateIcon(t,d);this.updateLinkPoints(t,d)}},"single-node"),Pn.registerNode("star",{options:{size:60,style:{stroke:J.defaultNode.style.stroke,fill:J.defaultNode.style.fill,lineWidth:J.defaultNode.style.lineWidth},labelCfg:{style:{fill:J.nodeLabel.style.fill,fontSize:J.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:J.defaultNode.linkPoints.size,lineWidth:J.defaultNode.linkPoints.lineWidth,fill:J.defaultNode.linkPoints.fill,stroke:J.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Object(I.__assign)({},J.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var n=this.getOptions(t).icon,i=void 0===n?{}:n,r=this.getShapeStyle(t),o=e.addShape("path",{attrs:r,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0}),a=i.width,s=i.height;return i.show&&e.addShape("image",{attrs:Object(I.__assign)({x:-a/2,y:-s/2},i),className:this.type+"-icon",name:this.type+"-icon",draggable:!0}),this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,i=void 0===n?{}:n,r=i.top,o=i.left,a=i.right,s=i.leftBottom,l=i.rightBottom,c=i.size,u=i.r,h=Object(I.__rest)(i,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(t)[0];if(a){var p=Math.cos(.1*Math.PI)*d,f=Math.sin(.1*Math.PI)*d;e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},h),{x:p,y:-f,r:c/2||u||5}),className:"link-point-right",name:"link-point-right"})}r&&(p=Math.cos(.5*Math.PI)*d,f=Math.sin(.5*Math.PI)*d,e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},h),{x:p,y:-f,r:c/2||u||5}),className:"link-point-top",name:"link-point-top"})),o&&(p=Math.cos(.9*Math.PI)*d,f=Math.sin(.9*Math.PI)*d,e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},h),{x:p,y:-f,r:c/2||u||5}),className:"link-point-left",name:"link-point-left"})),s&&(p=Math.cos(1.3*Math.PI)*d,f=Math.sin(1.3*Math.PI)*d,e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},h),{x:p,y:-f,r:c/2||u||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})),l&&(p=Math.cos(1.7*Math.PI)*d,f=Math.sin(1.7*Math.PI)*d,e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},h),{x:p,y:-f,r:c/2||u||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"}))},getPath:function(t){for(var e=this.getSize(t)[0],n=3*e/8,i=t.innerR||n,r=[],o=0;o<5;o++){var a=Math.cos((18+72*o)/180*Math.PI)*e,s=Math.sin((18+72*o)/180*Math.PI)*e,l=Math.cos((54+72*o)/180*Math.PI)*i,c=Math.sin((54+72*o)/180*Math.PI)*i;0===o?r.push(["M",a,-s]):r.push(["L",a,-s]),r.push(["L",l,-c])}return r.push(["Z"]),r},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},i=Object(ut.mix)({},e,n),r=this.getPath(t);return Object(I.__assign)({path:r},i)},update:function(t,e){var n=e.getContainer(),i=this.getOptions({}).style,r=this.getPath(t),o={stroke:t.color,path:r},a=e.get("keyShape"),s=Object(ut.mix)({},i,a.attr(),o);s=Object(ut.mix)(s,t.style),this.updateShape(t,e,s,!0),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var n=this.getOptions({}).linkPoints,i=e.find((function(t){return"link-point-left"===t.get("className")})),r=e.find((function(t){return"link-point-right"===t.get("className")})),o=e.find((function(t){return"link-point-top"===t.get("className")})),a=e.find((function(t){return"link-point-left-bottom"===t.get("className")})),s=e.find((function(t){return"link-point-right-bottom"===t.get("className")})),l=n,c=i||r||o||a||s;c&&(l=c.attr());var u=Object(ut.mix)({},l,t.linkPoints),h=u.fill,d=u.stroke,p=u.lineWidth,f=u.size/2;f||(f=u.r);var g=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},m=g.left,v=g.right,y=g.top,b=g.leftBottom,x=g.rightBottom,w=this.getSize(t)[0],_={r:f,fill:h,stroke:d,lineWidth:p},C=Math.cos(.1*Math.PI)*w,A=Math.sin(.1*Math.PI)*w;r?v||void 0===v?r.attr(Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A})):r.remove():v&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),C=Math.cos(.5*Math.PI)*w,A=Math.sin(.5*Math.PI)*w,o?y||void 0===y?o.attr(Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A})):o.remove():y&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),C=Math.cos(.9*Math.PI)*w,A=Math.sin(.9*Math.PI)*w,i?m||void 0===m?i.attr(Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A})):i.remove():m&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),C=Math.cos(1.3*Math.PI)*w,A=Math.sin(1.3*Math.PI)*w,a?b||void 0===b?a.attr(Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A})):a.remove():b&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0}),C=Math.cos(1.7*Math.PI)*w,A=Math.sin(1.7*Math.PI)*w,s?x||void 0===x?s.attr(Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A})):a.remove():x&&e.addShape("circle",{attrs:Object(I.__assign)(Object(I.__assign)({},_),{x:C,y:-A}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0})}},"single-node"),Pn.registerNode("image",{options:{img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*eD7nT6tmYgAAAAAAAAAAAABkARQnAQ",size:200,clipCfg:{show:!1,type:"circle",r:50,rx:50,ry:35,width:50,height:35,points:[[30,12],[12,30],[30,48],[48,30]],path:[["M",25,25],["L",50,25],["A",12.5,12.5,0,1,1,50,50],["A",12.5,12.5,0,1,0,50,50],["L",25,75],["Z"]],x:0,y:0}},shapeType:"image",labelPosition:"bottom",drawShape:function(t,e){var n=this.shapeType,i=this.getShapeStyle(t);delete i.fill;var r=e.addShape(n,{attrs:i,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0});return this.drawClip(t,r),r},drawClip:function(t,e){var n=this.getOptions(t).clipCfg;if(n.show){var i=n.type,r=n.x,o=n.y,a=n.style;if("circle"===i){var s=n.r;e.setClip({type:"circle",attrs:Object(I.__assign)({r:s,x:r,y:o},a)})}else if("rect"===i){var l=n.width,c=n.height,u=r-l/2,h=o-c/2;e.setClip({type:"rect",attrs:Object(I.__assign)({x:u,y:h,width:l,height:c},a)})}else if("ellipse"===i){var d=n.rx,p=n.ry;e.setClip({type:"ellipse",attrs:Object(I.__assign)({x:r,y:o,rx:d,ry:p},a)})}else if("polygon"===i){var f=n.points;e.setClip({type:"polygon",attrs:Object(I.__assign)({points:f},a)})}else if("path"===i){var g=n.path;e.setClip({type:"path",attrs:Object(I.__assign)({path:g},a)})}}},getShapeStyle:function(t){var e=this.getOptions(t).style,n=this.getSize(t),i=this.getOptions(t).img,r=n[0],o=n[1];return e&&(r=e.width||n[0],o=e.height||n[1]),Object(I.__assign)({x:-r/2,y:-o/2,width:r,height:o,img:i},e)},updateShapeStyle:function(t,e){var n=e.getContainer(),i=this.itemType+"-shape",r=n.find((function(t){return t.get("className")===i}))||e.getKeyShape(),o=this.getShapeStyle(t);r&&r.attr(o)}},"single-node");var ea=function(t){var e=t.x,n=t.y;return{x:e,y:n,centerX:e,centerY:n,minX:e,minY:n,maxX:e,maxY:n,height:0,width:0}},na=function(t,e){return 2*Math.abs(t.centerX-e.centerX)<t.width+e.width&&2*Math.abs(t.centerY-e.centerY)<t.height+e.height},ia=function(t){var e=[],n={};return t.forEach((function(t){var e=t.x+"-"+t.y;t.id=e,n[e]=t})),Object(ut.each)(n,(function(t){e.push(t)})),e},ra=function(t){return ia(t)},oa=function(t,e){return[t,{x:t.x,y:e.y},e]},aa=function(t,e){return 0===t.width&&0===t.height?t:{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}},sa=function(t,e){return function(t,e){var n=Math.abs(t.x-e.centerX),i=Math.abs(t.y-e.centerY);return n/e.width>i/e.height}(e,t)?{x:e.x>t.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},la=function(t,e){var n=Math.min(t.minX,e.minX),i=Math.min(t.minY,e.minY),r=Math.max(t.maxX,e.maxX),o=Math.max(t.maxY,e.maxY);return{centerX:(n+r)/2,centerY:(i+o)/2,minX:n,minY:i,maxX:r,maxY:o,height:o-i,width:r-n}},ca=function(t){var e=t.minX,n=t.minY,i=t.maxX,r=t.maxY;return[{x:e,y:n},{x:i,y:n},{x:i,y:r},{x:e,y:r}]},ua=function(t,e){var n=t.x,i=t.y;return n<e.minX||n>e.maxX||i<e.minY||i>e.maxY},ha=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},da=function(t,e,n,i,r){return ha(t,e)+ha(t,n)+function(t,e){var n=0;return e.forEach((function(e){e&&(t.x===e.x&&(n+=-2),t.y===e.y&&(n+=-2))})),n}(t,[e,n,i,r])},pa=function(t,e,n,i,r){void 0===r&&(r=0),t.unshift(e[i]),n[i]&&n[i]!==i&&r<=100&&pa(t,e,n,n[i],r+1)},fa=function(t,e,n,i){var r=e.x-t.x,o=e.y-t.y,a=i.x-n.x,s=i.y-n.y,l=(-o*(t.x-n.x)+r*(t.y-n.y))/(-a*o+r*s),c=(a*(t.y-n.y)-s*(t.x-n.x))/(-a*o+r*s);return l>=0&&l<=1&&c>=0&&c<=1},ga=function(t,e,n){if(0===n.width&&0===n.height)return!1;var i=ca(n),r=i[0],o=i[1],a=i[2],s=i[3];return fa(t,e,r,o)||fa(t,e,r,s)||fa(t,e,o,a)||fa(t,e,a,s)},ma=function(t,e,n,i,r,o,a){var s=[],l=[e],c={},u={},h={};u[e.id]=0,h[e.id]=da(e,n,e);var d={};t.forEach((function(t){d[t.id]=t}));for(var p=function(){var p,f,g,m,v=1/0;if(l.forEach((function(t){h[t.id]<v&&(v=h[t.id],p=t)})),p===n){var y=[];return pa(y,d,c,n.id),{value:y}}g=p,(m=(f=l).indexOf(g))>-1&&f.splice(m,1),s.push(p),function(t,e,n,i){var r=[];return t.forEach((function(t){t!==e&&(t.x!==e.x&&t.y!==e.y||ga(t,e,n)||ga(t,e,i)||r.push(t))})),ia(r)}(t,p,i,r).forEach((function(t){if(-1===s.indexOf(t)){-1===l.indexOf(t)&&l.push(t);var i=h[p.id]+ha(p,t);u[t.id]&&i>=u[t.id]||(c[t.id]=p.id,u[t.id]=i,h[t.id]=u[t.id]+da(t,n,e,o,a))}}))};l.length;){var f=p();if("object"==typeof f)return f.value}return[e,n]},va=function(t,e){var n=[],i=t[0];return n.push("M"+i.x+" "+i.y),t.forEach((function(i,r){var o=t[r+1],a=t[r+2];if(o&&a)if(function(t,e,n){return!(t.x===e.x&&e.x===n.x||t.y===e.y&&e.y===n.y)}(i,o,a)){var s=function(t,e,n,i){var r=ha(t,e),o=ha(n,e);return r<i&&(i=r),o<i&&(i=o),[{x:e.x-i/r*(e.x-t.x),y:e.y-i/r*(e.y-t.y)},{x:e.x-i/o*(e.x-n.x),y:e.y-i/o*(e.y-n.y)}]}(i,o,a,e),l=s[0],c=s[1];n.push("L"+l.x+" "+l.y),n.push("Q"+o.x+" "+o.y+" "+c.x+" "+c.y),n.push("L"+c.x+" "+c.y)}else n.push("L"+o.x+" "+o.y);else o&&n.push("L"+o.x+" "+o.y)})),n.join("")},ya=function(t,e,n,i,r){var o,a;if(n&&n.getType()?"combo"===n.getType()?((o=n.getKeyShape().getCanvasBBox()||ea(t)).centerX=(o.minX+o.maxX)/2,o.centerY=(o.minY+o.maxY)/2):o=n.getBBox():o=ea(t),i&&i.getType()?"combo"===i.getType()?((a=i.getKeyShape().getCanvasBBox()||ea(e)).centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2):a=i&&i.getBBox():a=ea(e),na(o,a))return ra(oa(t,e));var s=aa(o,r),l=aa(a,r);if(na(s,l))return ra(oa(t,e));var c=sa(s,t),u=sa(l,e),h=function(t){void 0===t&&(t=[]);var e=[],n=[];t.forEach((function(t){e.push(t.x),n.push(t.y)}));var i=Math.min.apply(Math,e),r=Math.max.apply(Math,e),o=Math.min.apply(Math,n),a=Math.max.apply(Math,n);return{centerX:(i+r)/2,centerY:(o+a)/2,maxX:r,maxY:a,minX:i,minY:o,height:a-o,width:r-i}}([c,u]),d=(la(s,l),la(s,h)),p=la(l,h),f=[];f=(f=f.concat(ca(d))).concat(ca(p));var g={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[h,d,p].forEach((function(t){f=f.concat(function(t,e){return function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]}(t,e.x).concat(function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]}(t,e.y))}(t,g).filter((function(t){return ua(t,s)&&ua(t,l)})))})),[{x:c.x,y:u.y},{x:u.x,y:c.y}].forEach((function(t){ua(t,s)&&ua(t,l)&&f.push(t)})),f.unshift(c),f.push(u),f=ia(f);var m=ma(f,c,u,o,a,t,e);return m.unshift(t),m.push(e),ra(m)},ba={offset:20,maxAllowedDirectionChange:90,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},fallbackRoute:function(t,e,n,i,r){return ra(ya(t,e,n,i,r.offset))}},xa=function(t,e){var n=Math.floor(t/e);return n<0?0:n},wa=function(t,e){var n=e.x-t.x,i=e.y-t.y;return n||i?(360+180*Math.atan2(i,n)/Math.PI)%360:0},_a=function(t,e){var n=Math.abs(t-e);return n>180?360-n:n},Ca=function(t,e,n){for(var i=1/0,r=0,o=e.length;r<o;r++){var a=n(t,e[r]);a<i&&(i=a)}return i},Aa=function(t,e,n){var i=[];if(!e)return i;var r=n.directions,o=n.offset,a=e.getBBox(),s=aa(e.getBBox(),o);for(var l in s)s[l]=xa(s[l],n.gridSize);if(t.x>xa(a.minX,n.gridSize)&&t.x<xa(a.maxX,n.gridSize)&&t.y>xa(a.minY,n.gridSize)&&t.y<xa(a.maxY,n.gridSize))for(var c=0,u=r;c<u.length;c++){var h=u[c],d=[[{x:s.minX,y:s.minY},{x:s.maxX,y:s.minY}],[{x:s.minX,y:s.minY},{x:s.minX,y:s.maxY}],[{x:s.maxX,y:s.minY},{x:s.maxX,y:s.maxY}],[{x:s.minX,y:s.maxY},{x:s.maxX,y:s.maxY}]];for(l=0;l<4;l++){var p,f=d[l];(p=Rt(t,{x:t.x+h.stepX*s.width,y:t.y+h.stepY*s.height},f[0],f[1]))&&!ga(t,p,e.getBBox())&&(p.id=p.x+"-"+p.y,i.push(p))}}else(p=sa(s,t)).id=p.x+"-"+p.y,i.push(p);return i},Ia=function(t,e,n,i,r){var o=Ct()(ba,r);o.obstacles=o.obstacles||[];var a=function(t,e,n){var i={};return t.forEach((function(t){if(t)for(var r=aa(t.getBBox(),n),o=xa(r.minX,e);o<=xa(r.maxX,e);o+=1)for(var a=xa(r.minY,e);a<=xa(r.maxY,e);a+=1)i[o+"-"+a]=!0})),i}(o.obstacles.concat([n,i]),o.gridSize,o.offset),s={x:xa(t.x,o.gridSize),y:xa(t.y,o.gridSize)},l={x:xa(e.x,o.gridSize),y:xa(e.y,o.gridSize)};t.id=s.x+"-"+s.y,e.id=l.x+"-"+l.y;var c=Aa(s,n,o),u=Aa(l,i,o);c.forEach((function(t){delete a[t.id]})),u.forEach((function(t){delete a[t.id]}));for(var h={},d={},p={},f={},g={},m=0;m<c.length;m++){var v=c[m];h[v.id]=v,f[v.id]=0,g[v.id]=Ca(v,u,o.distFunc)}for(var y=function(t,e){var n,i=wa(t,e);if(p[t.id]){var r=wa({x:parseFloat(p[t.id].split("-")[0]),y:parseFloat(p[t.id].split("-")[1])},t);n=_a(r,i)}else{var o=wa(s,t);n=_a(o,i)}return n},b=o.maximumLoops,x=function(){var n,i=1/0;for(var r in h)g[r]<=i&&(i=g[r],n=h[r]);if(!n)return"break";if(u.findIndex((function(t){return t.x===n.x&&t.y===n.y}))>-1)return{value:function(n){var i=[e],r={x:parseFloat(n.split("-")[0]),y:parseFloat(n.split("-")[1]),id:n};for(y(r,l)&&i.unshift({x:r.x===l.x?e.x:r.x*o.gridSize,y:r.y===l.y?e.y:r.y*o.gridSize});p[n]&&p[n]!==n;){var a={x:parseFloat(n.split("-")[0]),y:parseFloat(n.split("-")[1]),id:n},c=p[n],u={x:parseFloat(c.split("-")[0]),y:parseFloat(c.split("-")[1]),id:c};y(u,a)&&i.unshift({x:u.x===a.x?i[0].x:u.x*o.gridSize,y:u.y===a.y?i[0].y:u.y*o.gridSize}),n=c}var h=parseFloat(n.split("-")[0]),d=parseFloat(n.split("-")[1]);return i[0].x=h===s.x?t.x:i[0].x,i[0].y=d===s.y?t.y:i[0].y,i.unshift(t),i}(n.id)};delete h[n.id],d[n.id]=!0;for(var c=0;c<o.directions.length;c++){var m=o.directions[c],v={x:n.x+m.stepX,y:n.y+m.stepY,id:n.x+m.stepX+"-"+(n.y+m.stepY)};if(!d[v.id]){var x=y(n,v);if(!(x>o.maxAllowedDirectionChange||a[v.id])){h[v.id]||(h[v.id]=v);var w=o.distFunc(n,v)+(isNaN(o.penalties[x])?o.gridSize:o.penalties[x]),_=f[n.id]+w;f[v.id]&&_>=f[v.id]||(p[v.id]=n.id,f[v.id]=_,g[v.id]=_+Ca(v,u,o.distFunc))}}}b-=1};Object.keys(h).length>0&&b>0;){var w=x();if("object"==typeof w)return w.value;if("break"===w)break}return o.fallbackRoute(t,e,n,i,o)};Pn.registerEdge("polyline",{options:{color:J.defaultEdge.color,size:J.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:J.defaultEdge.style.stroke,lineAppendWidth:J.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:J.edgeLabel.style.fill,fontSize:J.edgeLabel.style.fontSize}},routeCfg:{obstacles:[],maxAllowedDirectionChange:90,maximumLoops:1e3,gridSize:10},stateStyles:Object(I.__assign)({},J.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);return 0===n.radius&&delete n.radius,e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n})},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},i=Object(ut.mix)({},e,n,t.style);t=this.getPathPoints(t),this.radius=i.radius,this.offset=i.offset;var r=t.startPoint,o=t.endPoint,a=this.getControlPoints(t),s=[r];a&&(s=s.concat(a)),s.push(o);var l=t.sourceNode,c=t.targetNode,u=i.radius,h=this.options.routeCfg;h.offset=i.offset;var d=this.getPath(s,l,c,u,h);return(Object(ut.isArray)(d)&&d.length<=1||Object(ut.isString)(d)&&-1===d.indexOf("L"))&&(d="M0 0, L0 0"),(isNaN(r.x)||isNaN(r.y)||isNaN(o.x)||isNaN(o.y))&&(d="M0 0, L0 0"),Object(ut.mix)({},J.defaultEdge.style,i,{lineWidth:t.size,path:d})},updateShapeStyle:function(t,e){var n=e.getContainer(),i={stroke:t.color},r=n.find((function(t){return"edge-shape"===t.get("className")}))||e.getKeyShape(),o=t.size,a=(t=this.getPathPoints(t)).startPoint,s=t.endPoint,l=this.getControlPoints(t),c=[a];l&&(c=c.concat(l)),c.push(s);var u=Object(ut.mix)({},i,r.attr(),t.style),h=t.sourceNode,d=t.targetNode,p=u.radius,f=this.options.routeCfg;f.offset=u.offset;var g=this.getPath(c,h,d,p,f);(Object(ut.isArray)(g)&&g.length<=1||Object(ut.isString)(g)&&-1===g.indexOf("L"))&&(g="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(s.x)||isNaN(s.y))&&(g="M0 0, L0 0");var m=Object(ut.mix)(i,r.attr(),{lineWidth:o,path:g},t.style);r&&r.attr(m)},getPath:function(t,e,n,i,r){var o;if(!r.offset||t.length>2){if(i)return va(t,i);var a=[];return Object(ut.each)(t,(function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["L",t.x,t.y])})),a}return i?(o=Ia(t[0],t[t.length-1],e,n,r),va(o,i)):(o=Ia(t[0],t[t.length-1],e,n,r),xe(o))}},"single-edge");var Sa={collapse:function(t,e,n){return[["M",t-n,e],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0],["M",t-n+4,e],["L",t+n-4,e]]},expand:function(t,e,n){return[["M",t-n,e],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0],["M",t-n+4,e],["L",t-n+2*n-4,e],["M",t-n+n,e-n+4],["L",t,e+n-4]]},upTriangle:function(t,e,n){var i=n*Math.cos(Math.PI/6),r=n*Math.sin(Math.PI/6);return[["M",t-i,e+r],["L",t+i,e+r],["L",t,e-n],["Z"]]},downTriangle:function(t,e,n){var i=n*Math.cos(Math.PI/6),r=n*Math.sin(Math.PI/6);return[["M",t-i,e-r],["L",t+i,e-r],["L",t,e+n],["Z"]]}},Ma=Pn,ka={mat3:Fe.mat3,mix:Bn.a,deepMix:Ct.a,transform:Fe.transform},Ea=Object(I.__assign)(Object(I.__assign)(Object(I.__assign)(Object(I.__assign)(Object(I.__assign)(Object(I.__assign)({},ka),i),s),a),o),r),Ta=function(){function t(t){this._cfgs=Ct()(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return t.prototype.getDefaultCfgs=function(){return{}},t.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var n=e.getEvents(),i={};p()(n,(function(n,r){var o=Ye()(e,n);i[r]=o,t.on(r,o)})),this._events=i,this.init()},t.prototype.init=function(){},t.prototype.getEvents=function(){return{}},t.prototype.get=function(t){return this._cfgs[t]},t.prototype.set=function(t,e){this._cfgs[t]=e},t.prototype.destroy=function(){},t.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;p()(e,(function(e,n){t.off(n,e)})),this._events=null,this._cfgs=null,this.destroyed=!0},t}(),Oa="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{img:Oa}},e.prototype.init=function(){var t=this.get("graph"),e=t.get("minZoom"),n=t.get("container"),i=t.get("canvas").get("el"),r=t.get("width"),o=t.get("height"),a=this.get("img")||Oa,s=yt()("<div class='g6-grid-container' style=\"position: absolute; left:0;top:0;right:0;bottom:0;overflow: hidden;z-index: -1;\"></div>"),l=yt()("<div \n        class='g6-grid' \n        style='position:absolute;\n        transform-origin: 0% 0% 0px;\n        background-image: "+a+";\n        user-select: none\n        '></div>");s.appendChild(l),mt()(s,{width:r+"px",height:o+"px",left:n.offsetLeft+"px",top:n.offsetTop+"px"}),mt()(l,{width:r/e+"px",height:o/e+"px",left:"0px",top:"0px"}),n.insertBefore(s,i),this.set("container",s),this.set("gridContainer",l)},e.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},e.prototype.updateGrid=function(t){var e=this.get("gridContainer"),n=t.matrix;n||(n=[1,0,0,0,1,0,0,0,1]);var i="matrix("+n[0]+", "+n[1]+", "+n[3]+", "+n[4]+", 0, 0)";mt()(e,{transform:i})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t=this.get("graph").get("container"),e=this.get("container");t.removeChild(e)},e}(Ta),ja=n(56),La=n.n(ja);La()("\n  .g6-component-contextmenu {\n    border: 1px solid #e2e2e2;\n    border-radius: 4px;\n    font-size: 12px;\n    color: #545454;\n    background-color: rgba(255, 255, 255, 0.9);\n    padding: 10px 8px;\n    box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n  }\n  .g6-contextmenu-ul {\n    padding: 0;\n    margin: 0;\n    list-style: none;\n  }\n\n");var Da=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(t){return"\n          <ul class='g6-contextmenu-ul'>\n            <li>菜单项1</li>\n            <li>菜单项2</li>\n          </ul>\n        "},shouldBegin:function(t){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"]}},e.prototype.getEvents=function(){return{contextmenu:"onMenuShow"}},e.prototype.init=function(){var t=this.get("className"),e=yt()("<div class="+(t||"g6-component-contextmenu")+"></div>");mt()(e,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),n.appendChild(e),this.set("menu",e)},e.prototype.onMenuShow=function(t){var e=this;if(t.preventDefault(),t.stopPropagation(),t.item&&this.get("shouldBegin")(t)){var n=this.get("itemTypes");if(t.item&&t.item.getType&&-1===n.indexOf(t.item.getType()))e.onMenuHide();else if(t.item){var i=this.get("menu"),r=this.get("getContent"),o=this.get("graph"),a=r(t,o);A()(a)?i.innerHTML=a:i.innerHTML=a.outerHTML,this.removeMenuEventListener();var s=this.get("handleMenuClick");if(s){var l=function(e){s(e.target,t.item,o)};this.set("handleMenuClickWrapper",l),i.addEventListener("click",l)}var c=o.get("width"),u=o.get("height"),h=i.getBoundingClientRect(),d=this.get("offsetX")||0,p=this.get("offsetY")||0,f=o.getContainer().offsetTop,g=o.getContainer().offsetLeft,m=t.canvasX+g+d,v=t.canvasY+f+p;m+h.width>c&&(m=t.canvasX-h.width-d+g),v+h.height>u&&(v=t.canvasY-h.height-p+f),mt()(i,{top:v+"px",left:m+"px",visibility:"visible"});var y=function(t){e.onMenuHide()};document.body.addEventListener("click",y),this.set("handler",y)}}},e.prototype.removeMenuEventListener=function(){var t=this.get("handleMenuClickWrapper"),e=this.get("handler");t&&(this.get("menu").removeEventListener("click",t),this.set("handleMenuClickWrapper",null)),e&&document.body.removeEventListener("click",e)},e.prototype.onMenuHide=function(){var t=this.get("menu");t&&mt()(t,{visibility:"hidden"}),this.removeMenuEventListener()},e.prototype.destroy=function(){var t=this.get("menu");if(this.removeMenuEventListener(),t){var e=this.get("container");e||(e=this.get("graph").get("container")),e.removeChild(t)}},e}(Ta),Ra=Math.max,Ba=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleUpdateCanvas=Object(ut.debounce)((function(t){var n=e;n.destroyed||n.updateCanvas()}),100,!1),e}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",type:"default",padding:50,size:[200,120],delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.size,i=e.graph;if(!this.destroyed){var r=this.get("canvas").get("container"),o=yt()("\n      <div\n        class="+e.viewportClassName+"\n        style='position:absolute;\n          left:0;\n          top:0;\n          box-sizing:border-box;\n          border: 2px solid #1980ff'\n        draggable=true>\n      </div>"),a=0,s=0,l=!1,c=0,u=0,h=0,d=0,p=0,f=0;o.addEventListener("dragstart",(function(r){if(r.dataTransfer){var g=new Image;g.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",r.dataTransfer.setDragImage(g,0,0),r.dataTransfer.setData("text","view-port-minimap")}if(e.refresh=!1,r.target===o){var m=o.style;c=parseInt(m.left,10),u=parseInt(m.top,10),h=parseInt(m.width,10),d=parseInt(m.height,10),h>n[0]||d>n[1]||(f=i.getZoom(),p=t.get("ratio"),l=!0,a=r.clientX,s=r.clientY)}}),!1),o.addEventListener("drag",(function(t){if(l&&!x()(t.clientX)&&!x()(t.clientY)){var e=a-t.clientX,r=s-t.clientY;(c-e<0||c-e+h>=n[0])&&(e=0),(u-r<0||u-r+d>=n[1])&&(r=0),c-=e,u-=r,mt()(o,{left:c+"px",top:u+"px"}),i.translate(e*f/p,r*f/p),a=t.clientX,s=t.clientY}}),!1),o.addEventListener("dragend",(function(){l=!1,e.refresh=!0}),!1),this.set("viewport",o),r.appendChild(o)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=(this.get("dx"),this.get("dy"),this.get("totaldx")),n=this.get("totaldy"),i=this.get("graph"),r=this.get("size"),o=i.get("width"),a=i.get("height"),s=i.getPointByCanvas(0,0),l=i.getPointByCanvas(o,a),c=this.get("viewport");c||this.initViewport(),i.getZoom();var u=(l.x-s.x)*t,h=(l.y-s.y)*t,d=s.x*t+e,p=s.y*t+n,f=d+u,g=p+h;d<0&&(u+=d,d=0),f>r[0]&&(u-=f-r[0]),p<0&&(h+=p,p=0),g>r[1]&&(h-=g-r[1]),this.set("ratio",t);var m=d+"px",v=p+"px";mt()(c,{left:m,top:v,width:u+"px",height:h+"px"})}},e.prototype.updateGraphShapes=function(){var t=this._cfgs.graph,e=this.get("canvas"),n=t.get("group");if(!n.destroyed){var i=n.clone();i.resetMatrix(),e.clear(),e.add(i),"svg"===t.get("renderer")&&this.updateVisible(i)}},e.prototype.updateVisible=function(t){var e=this;if(t.isGroup()||t.get("visible")){var n=t.get("children");if(!n||!n.length)return;n.forEach((function(t){t.get("visible")||t.hide(),e.updateVisible(t)}))}else t.hide()},e.prototype.updateKeyShapes=function(){var t=this,e=this._cfgs.graph;p()(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e)})),p()(e.getNodes(),(function(e){t.updateOneNodeKeyShape(e)})),this.clearDestroyedShapes()},e.prototype.updateOneNodeKeyShape=function(t){var e=this.get("canvas"),n=e.get("children")[0]||e.addGroup(),i=this.get("itemMap")||{},r=i[t.get("id")],o=t.getBBox(),a=t.get("keyShape").clone(),s=a.attr(),l={x:o.centerX,y:o.centerY};r?l=Object.assign(s,l):(r=a,n.add(r));var c=r.get("type");"rect"!==c&&"image"!==c||(l.x=o.minX,l.y=o.minY),r.attr(l),t.isVisible()||r.hide(),r.exist=!0,i[t.get("id")]=r,this.set("itemMap",i)},e.prototype.updateDelegateShapes=function(){var t=this,e=this._cfgs.graph;p()(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e)})),p()(e.getNodes(),(function(e){t.updateOneNodeDelegateShape(e)})),this.clearDestroyedShapes()},e.prototype.clearDestroyedShapes=function(){var t=this.get("itemMap")||{},e=Object.keys(t);if(e&&0!==e.length)for(var n=e.length-1;n>=0;n--){var i=t[e[n]],r=i.exist;i.exist=!1,r||(i.remove(),delete t[e[n]])}},e.prototype.updateOneEdgeKeyShape=function(t){var e=this.get("canvas"),n=e.get("children")[0]||e.addGroup(),i=this.get("itemMap")||{},r=i[t.get("id")];if(r){var o=t.get("keyShape").attr("path");r.attr("path",o)}else r=t.get("keyShape").clone(),n.add(r),r.toBack();t.isVisible()||r.hide(),r.exist=!0,i[t.get("id")]=r,this.set("itemMap",i)},e.prototype.updateOneNodeDelegateShape=function(t){var e=this.get("canvas"),n=e.get("children")[0]||e.addGroup(),i=this.get("delegateStyle"),r=this.get("itemMap")||{},o=r[t.get("id")],a=t.getBBox();if(o){var s={x:a.minX,y:a.minY,width:a.width,height:a.height};o.attr(s)}else o=n.addShape("rect",{attrs:Object(I.__assign)({x:a.minX,y:a.minY,width:a.width,height:a.height},i),name:"minimap-node-shape"});t.isVisible()||o.hide(),o.exist=!0,r[t.get("id")]=o,this.set("itemMap",r)},e.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},e.prototype.initContainer=function(){var t=this.get("graph"),e=this.get("size"),n=this.get("className"),i=this.get("container"),r=yt()("<div class='"+n+"' style='width: "+e[0]+"px; height: "+e[1]+"px; overflow: hidden'></div>");A()(i)&&(i=document.getElementById(i)),i?i.appendChild(r):t.get("container").appendChild(r),this.set("container",r);var o,a=yt()('<div class="g6-minimap-container" style="position: relative;"></div>');r.appendChild(a),o="svg"===t.get("renderer")?new Ne.a({container:a,width:e[0],height:e[1]}):new Re.a({container:a,width:e[0],height:e[1]}),this.set("canvas",o),this.updateCanvas()},e.prototype.updateCanvas=function(){if(this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("size"),n=this.get("canvas"),i=this.get("type"),r=this.get("padding");if(!n.destroyed){switch(i){case"default":this.updateGraphShapes();break;case"keyShape":this.updateKeyShapes();break;case"delegate":this.updateDelegateShapes()}var o=n.get("children")[0];if(o){o.resetMatrix();var a=o.getCanvasBBox(),s=t.get("canvas").getBBox(),l=s.width,c=s.height;Number.isFinite(a.width)&&(l=Ra(a.width,l),c=Ra(a.height,c)),l+=2*r,c+=2*r;var u=Math.min(e[0]/l,e[1]/c),h=[1,0,0,0,1,0,0,0,1],d=0,p=0;Number.isFinite(a.minX)&&(d=-a.minX),Number.isFinite(a.minY)&&(p=-a.minY);var f=(e[0]-(l-2*r)*u)/2,g=(e[1]-(c-2*r)*u)/2;h=pt(h,[["t",d,p],["s",u,u],["t",f,g]]),o.setMatrix(h),this.set("ratio",u),this.set("totaldx",f+d*u),this.set("totaldy",g+p*u),this.set("dx",f),this.set("dy",g),this.updateViewport()}}}}},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){this.get("canvas").destroy();var t=this.get("container");t.parentNode.removeChild(t)},e}(Ta);function Na(t,e,n){var i=t.x-e.x,r=t.y-e.y;return!n||Math.abs(i)>n||Math.abs(r)>n?Math.sqrt(i*i+r*r):n}function Fa(t,e){var n=(e.source.y-e.target.y)/(e.source.x-e.target.x),i=(n*n*e.source.x+n*(t.y-e.source.y)+t.x)/(n*n+1);return{x:i,y:n*(i-e.source.x)+e.source.y}}var za=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},e.prototype.init=function(){var t=this.get("graph"),e=this.get("onTick");this.set("tick",(function(){e&&e(),t.refreshPositions()}))},e.prototype.bundling=function(t){var e=this;if(e.set("data",t),!e.isTicking()){var n=t.edges||[],i=t.nodes||[],r={},o=!1;if(i.forEach((function(t){null!==t.x&&null!==!t.y&&void 0!==t.x&&void 0!==!t.y||(o=!0),r[t.id]=t})),o)throw new Error("please layout the graph or assign x and y for nodes first");e.set("nodeIdMap",r);var a=e.get("divisions"),s=e.get("divRate"),l=e.divideEdges(a);e.set("edgePoints",l);var c=e.getEdgeBundles();e.set("edgeBundles",c);for(var u=e.get("cycles"),h=e.get("iterations"),d=e.get("iterRate"),p=e.get("lambda"),f=0;f<u;f++){for(var g=function(t){var i=[];n.forEach((function(t,n){if(t.source!==t.target){var o=r[t.source],s=r[t.target];i[n]=e.getEdgeForces({source:o,target:s},n,a,p);for(var c=0;c<a+1;c++)l[n][c].x+=i[n][c].x,l[n][c].y+=i[n][c].y}}))},m=0;m<h;m++)g();p/=2,a*=s,h*=d,l=e.divideEdges(a),e.set("edgePoints",l)}n.forEach((function(t,e){t.source!==t.target&&(t.shape="polyline",t.type="polyline",t.controlPoints=l[e].slice(1,l[e].length-1))})),e.get("graph").refresh()}},e.prototype.updateBundling=function(t){var e=this,n=t.data;if(n&&e.set("data",n),e.get("ticking")&&e.set("ticking",!1),Object.keys(t).forEach((function(n){e.set(n,t[n])})),t.onTick){var i=this.get("graph");e.set("tick",(function(){t.onTick(),i.refresh()}))}e.bundling(n)},e.prototype.divideEdges=function(t){var e=this,n=e.get("data").edges,i=e.get("nodeIdMap"),r=e.get("edgePoints");return r&&void 0!==r||(r=[]),n.forEach((function(n,o){r[o]&&void 0!==r[o]||(r[o]=[]);var a=i[n.source],s=i[n.target];if(1===t)r[o].push({x:a.x,y:a.y}),r[o].push({x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),r[o].push({x:s.x,y:s.y});else{var l=(r[o]&&r[o]!==[]?e.getEdgeLength(r[o]):Na({x:a.x,y:a.y},{x:s.x,y:s.y}))/(t+1),c=l,u=[{x:a.x,y:a.y}];r[o].forEach((function(t,e){if(0!==e){for(var n=Na(t,r[o][e-1]);n>c;){var i=c/n,a={x:r[o][e-1].x,y:r[o][e-1].y};a.x+=i*(t.x-r[o][e-1].x),a.y+=i*(t.y-r[o][e-1].y),u.push(a),n-=c,c=l}c-=n}})),u.push({x:s.x,y:s.y}),r[o]=u}})),r},e.prototype.getEdgeLength=function(t){var e=0;return t.forEach((function(n,i){0!==i&&(e+=Na(n,t[i-1]))})),e},e.prototype.getEdgeBundles=function(){var t=this,e=t.get("data").edges||[],n=t.get("bundleThreshold"),i=t.get("nodeIdMap"),r=t.get("edgeBundles");return r||(r=[]),e.forEach((function(t,e){r[e]&&void 0!==r[e]||(r[e]=[])})),e.forEach((function(o,a){var s=i[o.source],l=i[o.target];e.forEach((function(e,o){if(!(o<=a)){var c=i[e.source],u=i[e.target];t.getBundleScore({source:s,target:l},{source:c,target:u})>=n&&(r[a].push(o),r[o].push(a))}}))})),r},e.prototype.getBundleScore=function(t,e){return t.vx=t.target.x-t.source.x,t.vy=t.target.y-t.source.y,e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,t.length=Na({x:t.source.x,y:t.source.y},{x:t.target.x,y:t.target.y}),e.length=Na({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),this.getAngleScore(t,e)*this.getScaleScore(t,e)*this.getPositionScore(t,e)*this.getVisibilityScore(t,e)},e.prototype.getAngleScore=function(t,e){return function(t,e){return t.x*e.x+t.y*e.y}({x:t.vx,y:t.vy},{x:e.vx,y:e.vy})/(t.length*e.length)},e.prototype.getScaleScore=function(t,e){var n=(t.length+e.length)/2;return 2/(n/Math.min(t.length,e.length)+Math.max(t.length,e.length)/n)},e.prototype.getPositionScore=function(t,e){var n=(t.length+e.length)/2;return n/(n+Na({x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2},{x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2}))},e.prototype.getVisibilityScore=function(t,e){var n=this.getEdgeVisibility(t,e),i=this.getEdgeVisibility(e,t);return n<i?n:i},e.prototype.getEdgeVisibility=function(t,e){var n=Fa(e.source,t),i=Fa(e.target,t),r={x:(n.x+i.x)/2,y:(n.y+i.y)/2},o={x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2};return Math.max(0,1-2*Na(r,o)/Na(n,i))},e.prototype.getEdgeForces=function(t,e,n,i){for(var r=this.get("edgePoints"),o=this.get("K")/(Na(t.source,t.target)*(n+1)),a=[{x:0,y:0}],s=1;s<n;s++){var l={x:0,y:0},c=this.getSpringForce({pre:r[e][s-1],cur:r[e][s],next:r[e][s+1]},o),u=this.getElectrostaticForce(s,e);l.x=i*(c.x+u.x),l.y=i*(c.y+u.y),a.push(l)}return a.push({x:0,y:0}),a},e.prototype.getSpringForce=function(t,e){var n=t.pre.x+t.next.x-2*t.cur.x,i=t.pre.y+t.next.y-2*t.cur.y;return{x:n*=e,y:i*=e}},e.prototype.getElectrostaticForce=function(t,e){var n=this.get("eps"),i=this.get("edgeBundles"),r=this.get("edgePoints"),o=i[e],a={x:0,y:0};return o.forEach((function(i){var o={x:r[i][t].x-r[e][t].x,y:r[i][t].y-r[e][t].y};if(Math.abs(o.x)>n||Math.abs(o.y)>n){var s=1/Na(r[i][t],r[e][t]);a.x+=o.x*s,a.y+=o.y*s}})),a},e.prototype.isTicking=function(){return this.get("ticking")},e.prototype.getSimulation=function(){return this.get("forceSimulation")},e.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),t.prototype.destroy.call(this)},e}(Ta),Va={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:.1,fill:"#ccc"},Ga=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{trigger:"mousemove",d:1.5,r:300,delegateStyle:Object(f.clone)(Va),showLabel:!1,maxD:5,minD:0,scaleRBy:"unset",scaleDBy:"unset",showDPercent:!0}},e.prototype.getEvents=function(){var t;switch(this.get("trigger")){case"click":t={click:"magnify"};break;case"drag":t={click:"createDelegate"};break;default:t={mousemove:"magnify"}}return t},e.prototype.init=function(){var t=this.get("r");this.set("cachedMagnifiedModels",[]),this.set("cachedOriginPositions",{}),this.set("r2",t*t);var e=this.get("d");this.set("molecularParam",(e+1)*t)},e.prototype.createDelegate=function(t){var e=this,n=this,i=n.get("delegate");i&&!i.destroyed||(n.magnify(t),(i=n.get("delegate")).on("dragstart",(function(t){n.set("delegateCenterDiff",{x:i.attr("x")-t.x,y:i.attr("y")-t.y})})),i.on("drag",(function(t){n.magnify(t)})),"wheel"===this.get("scaleDBy")&&i.on("mousewheel",(function(t){e.scaleDByWheel(t)})),"wheel"===this.get("scaleRBy")&&i.on("mousewheel",(function(t){n.scaleRByWheel(t)})))},e.prototype.scaleRByWheel=function(t){if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var e,n=this.get("graph"),i=this.get("delegate"),r=(i?{x:i.attr("x"),y:i.attr("y")}:void 0)||n.getPointByClient(t.clientX,t.clientY);e=t.originalEvent.wheelDelta<0?.95:1/.95;var o=this.get("maxR"),a=this.get("minR"),s=this.get("r");(s>(o||n.get("height"))&&e>1||s<(a||.05*n.get("height"))&&e<1)&&(e=1),s*=e,this.set("r",s),this.set("r2",s*s);var l=this.get("d");this.set("molecularParam",(l+1)*s),this.set("delegateCenterDiff",void 0),this.magnify(t,r)}},e.prototype.scaleRByDrag=function(t){if(t){var e,n=this.get("dragPrePos"),i=this.get("graph"),r=i.getPointByClient(t.clientX,t.clientY);e=t.x-n.x<0?.95:1/.95;var o=this.get("maxR"),a=this.get("minR"),s=this.get("r");(s>(o||i.get("height"))&&e>1||s<(a||.05*i.get("height"))&&e<1)&&(e=1),s*=e,this.set("r",s),this.set("r2",s*s);var l=this.get("d");this.set("molecularParam",(l+1)*s),this.magnify(t,r),this.set("dragPrePos",{x:t.x,y:t.y})}},e.prototype.scaleDByWheel=function(t){if(t||t.originalEvent){t.preventDefault&&t.preventDefault();var e=0;e=t.originalEvent.wheelDelta<0?-.1:.1;var n=this.get("d")+e,i=this.get("maxD"),r=this.get("minD");if(n<i&&n>r){this.set("d",n);var o=this.get("r");this.set("molecularParam",(n+1)*o);var a=this.get("delegate"),s=a?{x:a.attr("x"),y:a.attr("y")}:void 0;this.set("delegateCenterDiff",void 0),this.magnify(t,s)}}},e.prototype.scaleDByDrag=function(t){var e=this.get("dragPrePos"),n=t.x-e.x>0?.1:-.1,i=this.get("d")+n,r=this.get("maxD"),o=this.get("minD");if(i<r&&i>o){this.set("d",i);var a=this.get("r");this.set("molecularParam",(i+1)*a),this.magnify(t)}this.set("dragPrePos",{x:t.x,y:t.y})},e.prototype.magnify=function(t,e){this.restoreCache();var n=this.get("graph"),i=this.get("cachedMagnifiedModels"),r=this.get("cachedOriginPositions"),o=this.get("showLabel"),a=this.get("r"),s=this.get("r2"),l=this.get("d"),c=this.get("molecularParam"),u=n.getNodes(),h=u.length,d=e?{x:e.x,y:e.y}:{x:t.x,y:t.y};!this.get("dragging")||"mousemove"!==this.get("trigger")&&"click"!==this.get("trigger")||(d=this.get("cacheCenter"));var p=this.get("delegateCenterDiff");p&&(d.x+=p.x,d.y+=p.y),this.updateDelegate(d,a);for(var f=0;f<h;f++){var g=u[f].getModel(),m=g.x,v=g.y;if(!isNaN(m)&&!isNaN(v)){var y=(m-d.x)*(m-d.x)+(v-d.y)*(v-d.y);if(!isNaN(y)&&y<s&&0!==y){var b=Math.sqrt(y),x=c*b/(l*b+a),w=(m-d.x)/b,_=(v-d.y)/b;if(g.x=w*x+d.x,g.y=_*x+d.y,r[g.id]||(r[g.id]={x:m,y:v,texts:[]}),i.push(g),o&&2*b<a)for(var C=u[f].getContainer().getChildren(),A=C.length,I=0;I<A;I++){var S=C[I];"text"===S.get("type")&&(r[g.id].texts.push({visible:S.get("visible"),shape:S}),S.set("visible",!0))}}}}n.refreshPositions()},e.prototype.restoreCache=function(){for(var t=this.get("cachedMagnifiedModels"),e=this.get("cachedOriginPositions"),n=t.length,i=0;i<n;i++){var r=t[i],o=e[r.id];r.x=o.x,r.y=o.y;for(var a=o.texts.length,s=0;s<a;s++){var l=o.texts[s];l.shape.set("visible",l.visible)}}this.set("cachedMagnifiedModels",[]),this.set("cachedOriginPositions",{})},e.prototype.updateParams=function(t){var e=t.r,n=t.d,i=t.trigger,r=t.minD,o=t.maxD,a=t.minR,s=t.maxR,l=t.scaleDBy,c=t.scaleRBy;isNaN(t.r)||(this.set("r",e),this.set("r2",e*e)),isNaN(n)||this.set("d",n),isNaN(o)||this.set("maxD",o),isNaN(r)||this.set("minD",r),isNaN(s)||this.set("maxR",s),isNaN(a)||this.set("minR",a);var u,h=this.get("d"),d=this.get("r");this.set("molecularParam",(h+1)*d),"mousemove"!==i&&"click"!==i&&"drag"!==i||this.set("trigger",i),("drag"===l||"wheel"===l||"unset"===l)&&(this.set("scaleDBy",l),this.get("delegate").remove(),this.get("delegate").destroy(),(u=this.get("dPercentText"))&&(u.remove(),u.destroy())),"drag"!==c&&"wheel"!==c&&"unset"!==c||(this.set("scaleRBy",c),this.get("delegate").remove(),this.get("delegate").destroy(),(u=this.get("dPercentText"))&&(u.remove(),u.destroy()))},e.prototype.updateDelegate=function(t,e){var n=this,i=this,r=i.get("graph"),o=i.get("delegate");if(!o||o.destroyed){var a=r.get("group"),s=i.get("delegateStyle")||Va;o=a.addShape("circle",{attrs:Object(I.__assign)({r:e/1.5,x:t.x,y:t.y},s),name:"lens-shape",draggable:!0}),"drag"!==this.get("trigger")&&("wheel"===this.get("scaleRBy")?o.on("mousewheel",(function(t){i.scaleRByWheel(t)})):"drag"===this.get("scaleRBy")&&(o.on("dragstart",(function(t){i.set("dragging",!0),i.set("cacheCenter",{x:t.x,y:t.y}),i.set("dragPrePos",{x:t.x,y:t.y})})),o.on("drag",(function(t){i.scaleRByDrag(t)})),o.on("dragend",(function(t){i.set("dragging",!1)}))),"wheel"===this.get("scaleDBy")?o.on("mousewheel",(function(t){n.scaleDByWheel(t)})):"drag"===this.get("scaleDBy")&&(o.on("dragstart",(function(t){i.set("dragging",!0),i.set("cacheCenter",{x:t.x,y:t.y}),i.set("dragPrePos",{x:t.x,y:t.y})})),o.on("drag",(function(t){n.scaleDByDrag(t)})),o.on("dragend",(function(t){i.set("dragging",!1)}))))}else o.attr({x:t.x,y:t.y,r:e/1.5});if(i.get("showDPercent")){var l=Math.round((i.get("d")-i.get("minD"))/(i.get("maxD")-i.get("minD"))*100),c=i.get("dPercentText"),u=t.y+e/1.5+16;!c||c.destroyed?(c=(a=r.get("group")).addShape("text",{attrs:{text:l+"%",x:t.x,y:u,fill:"#aaa",stroke:"#fff",lineWidth:1,fontSize:12}}),i.set("dPercentText",c)):c.attr({text:l+"%",x:t.x,y:u})}i.set("delegate",o)},e.prototype.clear=function(){var t=this.get("graph");this.restoreCache(),t.refreshPositions();var e=this.get("delegate");e&&!e.destroyed&&(e.remove(),e.destroy());var n=this.get("dPercentText");n&&!n.destroyed&&(n.remove(),n.destroy())},e.prototype.destroy=function(){this.clear()},e}(Ta);La()("\n  .g6-component-toolbar {\n    position: absolute;\n    list-style-type: none;\n    padding: 6px;\n    left: 0px;\n    top: 0px;\n    background-color: rgba(255, 255, 255, 0.9);\n    border: 1px solid #e2e2e2;\n    border-radius: 4px;\n    font-size: 12px;\n    color: #545454;\n    margin: 0;\n  }\n  .g6-component-toolbar li {\n    float: left;\n    text-align: center;\n    width: 35px;\n    height: 24px;\n    cursor: pointer;\n\t\tlist-style-type:none;\n    list-style: none;\n    margin-left: 0px;\n  }\n  .g6-component-toolbar li .icon {\n    opacity: 0.7;\n  }\n  .g6-component-toolbar li .icon:hover {\n    opacity: 1;\n  }\n");var Ha=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{handleClick:void 0,getContent:function(t){return'\n          <ul class=\'g6-component-toolbar\'>\n            <li code=\'redo\'>\n              <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n                <path d="M256 682.666667c0-102.741333 66.730667-213.333333 213.333333-213.333334 107.008 0 190.762667 56.576 230.570667 125.354667L611.968 682.666667H853.333333v-241.365334l-91.562666 91.562667C704.768 448.469333 601.130667 384 469.333333 384c-196.096 0-298.666667 150.229333-298.666666 298.666667h85.333333z" fill="" p-id="2041"></path>\n              </svg>\n            </li>\n            <li code=\'undo\'>\n              <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n                <path d="M170.666667 682.666667h241.365333l-87.936-87.978667C363.904 525.909333 447.658667 469.333333 554.666667 469.333333c146.602667 0 213.333333 110.592 213.333333 213.333334h85.333333c0-148.437333-102.570667-298.666667-298.666666-298.666667-131.797333 0-235.392 64.469333-292.48 148.821333L170.666667 441.301333V682.666667z" fill="" p-id="2764"></path>\n              </svg>\n            </li>\n            <li  code=\'zoomOut\'>\n              <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n                <path d="M658.432 428.736a33.216 33.216 0 0 1-33.152 33.152H525.824v99.456a33.216 33.216 0 0 1-66.304 0V461.888H360.064a33.152 33.152 0 0 1 0-66.304H459.52V296.128a33.152 33.152 0 0 1 66.304 0V395.52H625.28c18.24 0 33.152 14.848 33.152 33.152z m299.776 521.792a43.328 43.328 0 0 1-60.864-6.912l-189.248-220.992a362.368 362.368 0 0 1-215.36 70.848 364.8 364.8 0 1 1 364.8-364.736 363.072 363.072 0 0 1-86.912 235.968l192.384 224.64a43.392 43.392 0 0 1-4.8 61.184z m-465.536-223.36a298.816 298.816 0 0 0 298.432-298.432 298.816 298.816 0 0 0-298.432-298.432A298.816 298.816 0 0 0 194.24 428.8a298.816 298.816 0 0 0 298.432 298.432z"></path>\n              </svg>\n            </li>\n            <li code=\'zoomIn\'>\n              <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\n                <path d="M639.936 416a32 32 0 0 1-32 32h-256a32 32 0 0 1 0-64h256a32 32 0 0 1 32 32z m289.28 503.552a41.792 41.792 0 0 1-58.752-6.656l-182.656-213.248A349.76 349.76 0 0 1 480 768 352 352 0 1 1 832 416a350.4 350.4 0 0 1-83.84 227.712l185.664 216.768a41.856 41.856 0 0 1-4.608 59.072zM479.936 704c158.784 0 288-129.216 288-288S638.72 128 479.936 128a288.32 288.32 0 0 0-288 288c0 158.784 129.216 288 288 288z" p-id="3853"></path>\n              </svg>\n            </li>\n            <li code=\'realZoom\'>\n              <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">\n                <path d="M384 320v384H320V320h64z m256 0v384H576V320h64zM512 576v64H448V576h64z m0-192v64H448V384h64z m355.968 576H92.032A28.16 28.16 0 0 1 64 931.968V28.032C64 12.608 76.608 0 95.168 0h610.368L896 192v739.968a28.16 28.16 0 0 1-28.032 28.032zM704 64v128h128l-128-128z m128 192h-190.464V64H128v832h704V256z"></path>\n              </svg>\n            </li>\n            <li code=\'autoZoom\'>\n              <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">\n                <path d="M684.288 305.28l0.128-0.64-0.128-0.64V99.712c0-19.84 15.552-35.904 34.496-35.712a35.072 35.072 0 0 1 34.56 35.776v171.008h170.944c19.648 0 35.84 15.488 35.712 34.432a35.072 35.072 0 0 1-35.84 34.496h-204.16l-0.64-0.128a32.768 32.768 0 0 1-20.864-7.552c-1.344-1.024-2.816-1.664-3.968-2.816-0.384-0.32-0.512-0.768-0.832-1.088a33.472 33.472 0 0 1-9.408-22.848zM305.28 64a35.072 35.072 0 0 0-34.56 35.776v171.008H99.776A35.072 35.072 0 0 0 64 305.216c0 18.944 15.872 34.496 35.84 34.496h204.16l0.64-0.128a32.896 32.896 0 0 0 20.864-7.552c1.344-1.024 2.816-1.664 3.904-2.816 0.384-0.32 0.512-0.768 0.768-1.088a33.024 33.024 0 0 0 9.536-22.848l-0.128-0.64 0.128-0.704V99.712A35.008 35.008 0 0 0 305.216 64z m618.944 620.288h-204.16l-0.64 0.128-0.512-0.128c-7.808 0-14.72 3.2-20.48 7.68-1.28 1.024-2.752 1.664-3.84 2.752-0.384 0.32-0.512 0.768-0.832 1.088a33.664 33.664 0 0 0-9.408 22.912l0.128 0.64-0.128 0.704v204.288c0 19.712 15.552 35.904 34.496 35.712a35.072 35.072 0 0 0 34.56-35.776V753.28h170.944c19.648 0 35.84-15.488 35.712-34.432a35.072 35.072 0 0 0-35.84-34.496z m-593.92 11.52c-0.256-0.32-0.384-0.768-0.768-1.088-1.088-1.088-2.56-1.728-3.84-2.688a33.088 33.088 0 0 0-20.48-7.68l-0.512 0.064-0.64-0.128H99.84a35.072 35.072 0 0 0-35.84 34.496 35.072 35.072 0 0 0 35.712 34.432H270.72v171.008c0 19.84 15.552 35.84 34.56 35.776a35.008 35.008 0 0 0 34.432-35.712V720l-0.128-0.64 0.128-0.704a33.344 33.344 0 0 0-9.472-22.848zM512 374.144a137.92 137.92 0 1 0 0.128 275.84A137.92 137.92 0 0 0 512 374.08z"></path>\n              </svg>\n            </li>\n          </ul>\n        '}}},e.prototype.init=function(){var t=this,e=this.get("graph"),n=this.get("getContent")(e),i=n;Object(f.isString)(n)&&(i=yt()(n));var r=this.get("className");i.setAttribute("class",r||"g6-component-toolbar");var o=this.get("container");o||(o=this.get("graph").get("container")),o.appendChild(i),this.set("toolBar",i);var a=this.get("handleClick");i.addEventListener("click",(function(n){var i=n.path.filter((function(t){return"LI"===t.nodeName}));if(0!==i.length){var r=i[0].getAttribute("code");r&&(a?a(r,e):t.handleDefaultOperator(r,e))}}));var s=this.get("position");s&&mt()(i,{top:s.y+"px",left:s.x+"px"}),this.bindUndoRedo()},e.prototype.bindUndoRedo=function(){var t=this.get("graph"),e=document.querySelector('.g6-component-toolbar li[code="undo"]'),n=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),i=document.querySelector('.g6-component-toolbar li[code="redo"]'),r=document.querySelector('.g6-component-toolbar li[code="redo"] svg');e&&n&&i&&r&&t.on("stackchange",(function(t){var o=t.undoStack,a=t.redoStack,s=o.length,l=a.length;1===s?(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(e.removeAttribute("style"),n.removeAttribute("style")),0===l?(i.setAttribute("style","cursor: not-allowed"),r.setAttribute("style","opacity: 0.4")):(i.removeAttribute("style"),r.removeAttribute("style"))}))},e.prototype.undo=function(){var t=this.get("graph"),e=t.getUndoStack();if(e&&0!==e.length){var n=e.pop();if(n){var i=n.action;t.pushStack(i,Object(f.clone)(n.data),"redo");var r=n.data.before;if("add"===i&&(r=n.data.after),!r)return;switch(i){case"visible":Object.keys(r).forEach((function(e){var n=r[e];n&&n.forEach((function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)}))}));break;case"render":case"update":Object.keys(r).forEach((function(e){var n=r[e];n&&n.forEach((function(e){t.updateItem(e.id,e,!1)}))}));break;case"changedata":t.changeData(r,!1);break;case"delete":Object.keys(r).forEach((function(e){var n=r[e];n&&n.forEach((function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)}))}));break;case"add":Object.keys(r).forEach((function(e){var n=r[e];n&&n.forEach((function(e){t.removeItem(e.id,!1)}))}))}}}},e.prototype.redo=function(){var t=this.get("graph"),e=t.getRedoStack();if(e&&0!==e.length){var n=e.pop();if(n){var i=n.action,r=n.data.after;if(t.pushStack(i,Object(f.clone)(n.data)),"delete"===i&&(r=n.data.before),!r)return;switch(i){case"visible":Object.keys(r).forEach((function(e){var n=r[e];n&&n.forEach((function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)}))}));break;case"render":case"update":Object.keys(r).forEach((function(e){var n=r[e];n&&n.forEach((function(e){t.updateItem(e.id,e,!1)}))}));break;case"changedata":t.changeData(r,!1);break;case"delete":r.edges&&r.edges.forEach((function(e){t.removeItem(e.id,!1)})),r.nodes&&r.nodes.forEach((function(e){t.removeItem(e.id,!1)})),r.combos&&r.combos.forEach((function(e){t.removeItem(e.id,!1)}));break;case"add":Object.keys(r).forEach((function(e){var n=r[e];n&&n.forEach((function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)}))}))}}}},e.prototype.handleDefaultOperator=function(t,e){var n=e.getZoom();switch(t){case"redo":this.redo();break;case"undo":this.undo();break;case"zoomOut":if(1.25*n>5)return;e.zoomTo(1.1*n);break;case"zoomIn":if(.75*n<.3)return;e.zoomTo(.9*n);break;case"realZoom":e.zoomTo(1);break;case"autoZoom":e.fitView([20,20])}},e.prototype.destroy=function(){var t=this.get("toolBar");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),e.removeChild(t)}var n=this.get("handleClick");n&&t.removeEventListener("click",n)},e}(Ta);La()("\n  .g6-component-tooltip {\n    border: 1px solid #e2e2e2;\n    border-radius: 4px;\n    font-size: 12px;\n    color: #545454;\n    background-color: rgba(255, 255, 255, 0.9);\n    padding: 10px 8px;\n    box-shadow: rgb(174, 174, 174) 0px 0px 10px;\n  }\n  .tooltip-type {\n    padding: 0;\n    margin: 0;\n  }\n  .tooltip-id {\n    color: #531dab;\n  }\n");var Wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,getContent:function(t){return"\n          <h4 class='tooltip-type'>类型："+t.item.getType()+"</h4>\n          <span class='tooltip-id'>ID："+t.item.getID()+"</span>\n        "},shouldBegin:function(t){return!0},itemTypes:["node","edge","combo"]}},e.prototype.getEvents=function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},e.prototype.init=function(){var t=this.get("className")||"g6-component-tooltip",e=yt()("<div class="+t+"></div>"),n=this.get("container");n||(n=this.get("graph").get("container")),mt()(e,{position:"absolute",visibility:"hidden"}),n.appendChild(e),this.set("tooltip",e)},e.prototype.onMouseEnter=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,i=this.get("graph");this.currentTarget=n,this.showTooltip(t),i.emit("tooltipchange",{item:t.item,action:"show"})}},e.prototype.onMouseMove=function(t){var e=this.get("itemTypes");t.item&&t.item.getType&&-1===e.indexOf(t.item.getType())||this.currentTarget&&t.item===this.currentTarget&&this.showTooltip(t)},e.prototype.onMouseLeave=function(){this.hideTooltip(),this.get("graph").emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},e.prototype.showTooltip=function(t){if(t.item){var e=this.get("itemTypes");if(!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=this.get("tooltip"),i=this.get("getContent")(t);A()(i)?n.innerHTML=i:n.innerHTML=i.outerHTML,this.updatePosition(t)}}},e.prototype.hideTooltip=function(){var t=this.get("tooltip");t&&mt()(t,{visibility:"hidden"})},e.prototype.updatePosition=function(t){var e=this.get("shouldBegin"),n=this.get("tooltip");if(e(t)){var i=this.get("graph"),r=i.get("width"),o=i.get("height"),a=this.get("offsetX")||0,s=this.get("offsetY")||0,l=i.getPointByClient(t.clientX,t.clientY),c=i.getCanvasByPoint(l.x,l.y),u=c.x,h=c.y;u+=a,h+=s;var d=n.getBoundingClientRect();u+d.width>r&&(u=u-d.width-a),h+d.height>o&&(h=h-d.height-s),mt()(n,{left:u+"px",top:h+"px",visibility:"visible"})}else mt()(n,{visibility:"hidden"})},e.prototype.hide=function(){this.onMouseLeave()},e.prototype.destroy=function(){var t=this.get("tooltip");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),e.removeChild(t)}},e}(Ta),Ua={};function Za(t,e){Ua[t]=e}var Ya=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(ut.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(ut.map)(this.ticks,(function(e,n){return Object(ut.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return Object(ut.isNil)(i)||!Object(ut.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(ut.assign)(this,this.__cfg__),this.setDomain(),Object(ut.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(ut.isString)(t)){var n=Ua[t];if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(ut.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return Object(ut.head)(this.range)},t.prototype.rangeMax=function(){return Object(ut.last)(this.range)},t.prototype.calcPercent=function(t,e,n){return Object(ut.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),Xa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(I.__extends)(e,t),e.prototype.translate=function(t){var e=Object(ut.indexOf)(this.values,t);return-1===e?Object(ut.isNumber)(t)?t:NaN:e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),i=Math.round(e*n)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=e;return Object(ut.isNumber)(e)&&!this.values.includes(e)&&(r=this.values[r]),t.prototype.getText.apply(this,Object(I.__spreadArrays)([r],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(ut.isNil)(this.getConfig("min"))&&(this.min=0),Object(ut.isNil)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}},e}(Ya),qa=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Ka="[^\\s]+",Qa=/\[([^]*?)\]/gm;function Ja(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}var $a=function(t){return function(e,n){var i=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return i>-1?i:null}};function ts(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o=r[i];for(var a in o)t[a]=o[a]}return t}var es=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ns=["January","February","March","April","May","June","July","August","September","October","November","December"],is=Ja(ns,3),rs={dayNamesShort:Ja(es,3),dayNames:es,monthNamesShort:is,monthNames:ns,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},os=ts({},rs),as=function(t){return os=ts(os,t)},ss=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},ls=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},cs={D:function(t){return String(t.getDate())},DD:function(t){return ls(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return ls(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return ls(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return ls(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return ls(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return ls(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return ls(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return ls(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return ls(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return ls(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return ls(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+ls(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+ls(Math.floor(Math.abs(e)/60),2)+":"+ls(Math.abs(e)%60,2)}},us=function(t){return+t-1},hs=[null,"[1-9]\\d?"],ds=[null,Ka],ps=["isPm",Ka,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],fs=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],gs={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+Ka,function(t){return parseInt(t,10)}],M:["month","[1-9]\\d?",us],MM:["month","\\d\\d",us],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:hs,dd:hs,ddd:ds,dddd:ds,MMM:["month",Ka,$a("monthNamesShort")],MMMM:["month",Ka,$a("monthNames")],a:ps,A:ps,ZZ:fs,Z:fs},ms={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},vs=function(t){return ts(ms,t)},ys=function(t,e,n){if(void 0===e&&(e=ms.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=ms[e]||e).replace(Qa,(function(t,e){return i.push(e),"@@@"}));var r=ts(ts({},os),n);return(e=e.replace(qa,(function(e){return cs[e](t,r)}))).replace(/@@@/g,(function(){return i.shift()}))};function bs(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=ms[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},r=[],o=[],a=e.replace(Qa,(function(t,e){return o.push(ss(e)),"@@@"})),s={},l={};a=ss(a).replace(qa,(function(t){var e=gs[t],n=e[0],i=e[1],o=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(l[o]=!0),r.push(e),"("+i+")"})),Object.keys(l).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var c=t.match(new RegExp(a,"i"));if(!c)return null;for(var u=ts(ts({},os),n),h=1;h<c.length;h++){var d=r[h-1],p=d[0],f=d[2],g=f?f(c[h],u):+c[h];if(null==g)return null;i[p]=g}1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0);for(var m=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond),v=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],y=(h=0,v.length);h<y;h++)if(s[v[h][0]]&&i[v[h][0]]!==m[v[h][1]]())return null;return null==i.timezoneOffset?m:new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond))}var xs={format:ys,parse:bs,defaultI18n:rs,setGlobalDateI18n:as,setGlobalDateMasks:vs};function ws(t,e){return(l.format||xs.format)(t,e)}function _s(t){return Object(ut.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(ut.isDate)(t)&&(t=t.getTime()),t}var Cs=36e5,As=24*Cs,Is=31*As,Ss=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",Cs],["HH",6*Cs],["HH",12*Cs],["YYYY-MM-DD",As],["YYYY-MM-DD",4*As],["YYYY-WW",7*As],["YYYY-MM",Is],["YYYY-MM",4*Is],["YYYY-MM",6*Is],["YYYY",380*As]];function Ms(t,e,n){var i,r=(i=function(t){return t[1]},function(t,e,n,r){for(var o=Object(ut.isNil)(n)?0:n,a=Object(ut.isNil)(r)?t.length:r;o<a;){var s=o+a>>>1;i(t[s])>e?a=s:o=s+1}return o})(Ss,(e-t)/n)-1,o=Ss[r];return r<0?o=Ss[0]:r>=Ss.length&&(o=Object(ut.last)(Ss)),o}var ks=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(I.__extends)(e,t),e.prototype.translate=function(t){t=_s(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(ut.isNumber)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var i=this.values[n],r=this.formatter;return r?r(i,e):ws(i,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(ut.each)(e,(function(t,n){e[n]=_s(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(Xa),Es=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(I.__extends)(e,t),e.prototype.scale=function(t){if(Object(ut.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(ut.head)(e),i=Object(ut.last)(e);n<this.min&&(this.min=n),i>this.max&&(this.max=i),Object(ut.isNil)(this.minLimit)||(this.min=n),Object(ut.isNil)(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=Object(ut.getRange)(this.values),e=t.min,n=t.max;Object(ut.isNil)(this.min)&&(this.min=e),Object(ut.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(ut.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(Ya),Ts=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(I.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(Es);function Os(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function Ps(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function js(t,e,n){Object(ut.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return Object(ut.each)(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i}var Ls=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(I.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,i=Ps(n,this.max),r=this.rangeMin(),o=this.rangeMax()-r,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(i-(e=Ps(n,a/n)))*o;if(t<s)return t/s*a}else e=Ps(n,this.min);var l=(t-r)/o*(i-e)+e;return Math.pow(n,l)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=js(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var i=this.base,r=this.positiveMin;return r&&(n=1*r/i),t<r?t/r/(Ps(i,e)-Ps(i,n)):(Ps(i,t)-Ps(i,n))/(Ps(i,e)-Ps(i,n))},e}(Es),Ds=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(I.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,i=Os(n,this.max),r=Os(n,this.min),o=e*(i-r)+r,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var i=this.exponent;return(Os(i,t)-Os(i,n))/(Os(i,e)-Os(i,n))},e}(Es),Rs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(I.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):ws(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(ut.isString)(n)||Object(ut.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return _s(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(ut.isNil)(e)&&Object(ut.isNumber)(e)||(this.min=this.translate(this.min)),Object(ut.isNil)(n)&&Object(ut.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],r=1/0,o=r,a=0;Object(ut.each)(t,(function(t){var e=_s(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");r>e?(o=r,r=e):o>e&&(o=e),a<e&&(a=e),i.push(e)})),t.length>1&&(this.minTickInterval=o-r),Object(ut.isNil)(e)&&(this.min=r),Object(ut.isNil)(n)&&(this.max=a)}},e}(Ts),Bs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(I.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),r=Math.floor(i*(n-1));if(r>=n-1)return Object(ut.last)(e);if(r<0)return Object(ut.head)(e);var o=e[r],a=r/(n-1);return o+(i-a)/((r+1)/(n-1)-a)*(e[r+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(ut.last)(e)!==this.max&&e.push(this.max),Object(ut.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(ut.head)(e))return 0;if(t>Object(ut.last)(e))return 1;var n=0;return Object(ut.each)(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(Es),Ns=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(I.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Bs),Fs={};function zs(t,e){if(function(t){return Fs[t]}(t))throw new Error("type '"+t+"' existed.");Fs[t]=e}var Vs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(I.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(ut.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(Ya),Gs=[1,5,2,2.5,4,3],Hs=100*Number.EPSILON;function Ws(t,e,n,i,r,o){var a=Object(ut.size)(e),s=Object(ut.indexOf)(e,t),l=0,c=function(t,e){return(t%e+e)%e}(i,o);return(c<Hs||o-c<Hs)&&i<=0&&r>=0&&(l=1),1-s/(a-1)-n+l}function Us(t,e,n){var i=Object(ut.size)(e);return 1-Object(ut.indexOf)(e,t)/(i-1)-n+1}function Zs(t,e,n,i,r,o){var a=(t-1)/(o-r),s=(e-1)/(Math.max(o,i)-Math.min(n,r));return 2-Math.max(a/s,s/a)}function Ys(t,e){return t>=e?2-(t-1)/(e-1):1}function Xs(t,e,n,i){var r=e-t;return 1-.5*(Math.pow(e-i,2)+Math.pow(t-n,2))/Math.pow(.1*r,2)}function qs(t,e,n){var i=e-t;if(n>i){var r=(n-i)/2;return 1-Math.pow(r,2)/Math.pow(.1*i,2)}return 1}function Ks(t,e,n,i,r,o){if(void 0===n&&(n=5),void 0===i&&(i=!0),void 0===r&&(r=Gs),void 0===o&&(o=[.25,.2,.5,.05]),"number"!=typeof t||"number"!=typeof e)return{min:0,max:0,ticks:[]};if(t===e||1===n)return{min:t,max:e,ticks:[t]};for(var a={score:-2,lmin:0,lmax:0,lstep:0},s=1;s<1/0;){for(var l=0,c=r;l<c.length;l++){var u=c[l],h=Us(u,r,s);if(Number.isNaN(h))throw new Error("NaN");if(o[0]*h+o[1]+o[2]+o[3]<a.score){s=1/0;break}for(var d=2;d<1/0;){var p=Ys(d,n);if(o[0]*h+o[1]+o[2]*p+o[3]<a.score)break;for(var f=(e-t)/(d+1)/s/u,g=Math.ceil(Math.log10(f));g<1/0;){var m=s*u*Math.pow(10,g),v=qs(t,e,m*(d-1));if(o[0]*h+o[1]*v+o[2]*p+o[3]<a.score)break;var y=Math.floor(e/m)*s-(d-1)*s,b=Math.ceil(t/m)*s;if(y>b)g+=1;else{for(var x=y;x<=b;x+=1){var w=x*(m/s),_=w+m*(d-1),C=m,A=Ws(u,r,s,w,_,C),I=Xs(t,e,w,_),S=Zs(d,n,t,e,w,_),M=o[0]*A+o[1]*I+o[2]*S+1*o[3];M>a.score&&(!i||w<=t&&_>=e)&&(a.lmin=w,a.lmax=_,a.lstep=C,a.score=M)}g+=1}}d+=1}}s+=1}for(var k=Number.isInteger(a.lstep)?0:Math.ceil(Math.abs(Math.log10(a.lstep))),E=[],T=a.lmin;T<=a.lmax;T+=a.lstep)E.push(T);var O=k?Object(ut.map)(E,(function(t){return Number.parseFloat(t.toFixed(k))})):E;return{min:Math.min(t,Object(ut.head)(O)),max:Math.max(e,Object(ut.last)(O)),ticks:O}}function Qs(t){var e=t.values,n=t.tickInterval,i=t.tickCount,r=e;if(Object(ut.isNumber)(n))return Object(ut.filter)(r,(function(t,e){return e%n==0}));var o=t.min,a=t.max;if(Object(ut.isNil)(o)&&(o=0),Object(ut.isNil)(a)&&(a=e.length-1),Object(ut.isNumber)(i)&&i<a-o){var s=Ks(o,a,i,!1,[1,2,5,3,4,7,6,8,9]).ticks;return Object(ut.filter)(s,(function(t){return t>=o&&t<=a})).map((function(t){return e[t]}))}return e.slice(o,a+1)}var Js=Math.sqrt(50),$s=Math.sqrt(10),tl=Math.sqrt(2),el=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var i,r=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],l=this._domain[a];return l<s&&(s=(e=[l,s])[0],l=e[1],o=(n=[a,o])[0],a=n[1]),(i=nl(s,l,t))>0?i=nl(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,t):i<0&&(i=nl(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,t)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(l/i)*i,this.domain(r)):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(l*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var i,r,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=nl(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(r=Math.ceil(e-t+1));++s<r;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(r=Math.ceil(t-e+1));++s<r;)o[s]=(t-s)/a;return i&&o.reverse(),o}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function nl(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=Js?10:o>=$s?5:o>=tl?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=Js?10:o>=$s?5:o>=tl?2:1)}function il(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function rl(t,e,n){var i=il(t,n,"floor"),r=il(e,n,"ceil");i=Object(ut.fixedBase)(i,n),r=Object(ut.fixedBase)(r,n);for(var o=[],a=i;a<=r;a+=n){var s=Object(ut.fixedBase)(a,n);o.push(s)}return{min:i,max:r,ticks:o}}function ol(t,e,n){var i,r=t.minLimit,o=t.maxLimit,a=t.min,s=t.max,l=t.tickCount,c=void 0===l?5:l,u=Object(ut.isNil)(r)?Object(ut.isNil)(e)?a:e:r,h=Object(ut.isNil)(o)?Object(ut.isNil)(n)?s:n:o;if(u>h&&(h=(i=[u,h])[0],u=i[1]),c<=2)return[u,h];for(var d=(h-u)/(c-1),p=[],f=0;f<c;f++)p.push(u+d*f);return p}function al(t,e,n){void 0===n&&(n=5);var i={max:0,min:0,ticks:[]};if(t===e)return{max:e,min:t,ticks:[t]};var r=(e-t)/n,o=Math.pow(10,Math.floor(Math.log10(r))),a=o<1?Math.ceil(Math.abs(Math.log10(o))):0,s=o;2*o-r<1.5*(r-s)&&5*o-r<2.75*(r-(s=2*o))&&10*o-r<1.5*(r-(s=5*o))&&(s=10*o);var l=Math.ceil(e/s),c=Math.floor(t/s);i.max=Math.max(l*s,e),i.min=Math.min(c*s,t);for(var u=Number.parseFloat((c*s).toFixed(a));u<e;)i.ticks.push(u),u+=s,a&&(u=Number.parseFloat(u.toFixed(a)));return i.ticks.push(u),i}function sl(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function ll(t){return new Date(t).getFullYear()}function cl(t){return new Date(t,0,1).getTime()}function ul(t){return new Date(t).getMonth()}function hl(t,e){return new Date(t,e,1).getTime()}Za("cat",Qs),Za("time-cat",(function(t){var e=Qs(t),n=Object(ut.last)(t.values);return n!==Object(ut.last)(e)&&e.push(n),e})),Za("wilkinson-extended",(function(t){var e=t.min,n=t.max,i=t.tickCount,r=t.nice,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,l=Ks(e,n,i,r).ticks;return Object(ut.isNil)(a)&&Object(ut.isNil)(s)?o?rl(e,n,o).ticks:l:ol(t,Object(ut.head)(l),Object(ut.last)(l))})),Za("r-pretty",(function(t){var e=t.min,n=t.max,i=t.tickCount,r=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=al(e,n,i).ticks;return Object(ut.isNil)(o)&&Object(ut.isNil)(a)?r?rl(e,n,r).ticks:s:ol(t,Object(ut.head)(s),Object(ut.last)(s))})),Za("time",(function(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,o=t.tickCount;if(r)o=Math.ceil((n-e)/r);else{var a=(n-e)/(r=Ms(e,n,o)[1])/o;a>1&&(r*=Math.ceil(a)),i&&r<i&&(r=i)}for(var s=[],l=e;l<n+r;l+=r)s.push(l);return s})),Za("time-pretty",(function(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/r,i&&o<i&&(o=i));var s=ll(e);if(o>31536e6)for(var l=ll(n),c=Math.ceil(o/31536e6),u=s;u<=l+c;u+=c)a.push(cl(u));else if(o>Is){var h=Math.ceil(o/Is),d=ul(e),p=function(t,e){var n=ll(t),i=ll(e),r=ul(t);return 12*(i-n)+(ul(e)-r)%12}(e,n);for(u=0;u<=p+h;u+=h)a.push(hl(s,u+d))}else if(o>As){var f=(b=new Date(e)).getFullYear(),g=b.getMonth(),m=b.getDate(),v=Math.ceil(o/As),y=function(t,e){return Math.ceil((e-t)/As)}(e,n);for(u=0;u<y+v;u+=v)a.push(new Date(f,g,m+u).getTime())}else if(o>Cs){f=(b=new Date(e)).getFullYear(),g=b.getMonth(),v=b.getDate();var b,x=b.getHours(),w=Math.ceil(o/Cs),_=function(t,e){return Math.ceil((e-t)/Cs)}(e,n);for(u=0;u<=_+w;u+=w)a.push(new Date(f,g,v,x+u).getTime())}else if(o>6e4){var C=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),A=Math.ceil(o/6e4);for(u=0;u<=C+A;u+=A)a.push(e+6e4*u)}else{var I=o;I<1e3&&(I=1e3);var S=1e3*Math.floor(e/1e3),M=Math.ceil((n-e)/1e3),k=Math.ceil(I/1e3);for(u=0;u<M+k;u+=k)a.push(S+1e3*u)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),Za("log",(function(t){var e,n=t.base,i=t.tickCount,r=t.min,o=t.max,a=t.values,s=Ps(n,o);if(r>0)e=Math.floor(Ps(n,r));else{var l=js(a,n,o);e=Math.floor(Ps(n,l))}for(var c=s-e,u=Math.ceil(c/i),h=[],d=e;d<s+u;d+=u)h.push(Math.pow(n,d));return r<=0&&h.unshift(0),h})),Za("pow",(function(t){var e=t.exponent,n=t.tickCount,i=Math.ceil(Os(e,t.max));return al(Math.floor(Os(e,t.min)),i,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))})),Za("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),r=[],o=0;o<e;o++){var a=o/(e-1);r.push(sl(i,a))}return r})),Za("d3-linear",(function(t){var e=t.min,n=t.max,i=t.tickInterval,r=t.minLimit,o=t.maxLimit,a=function(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,o=new el;return o.domain([e,n]),i&&o.nice(r),o.ticks(r)}(t);return Object(ut.isNil)(r)&&Object(ut.isNil)(o)?i?rl(e,n,i).ticks:a:ol(t,Object(ut.head)(a),Object(ut.last)(a))})),zs("cat",Xa),zs("category",Xa),zs("identity",Vs),zs("linear",Ts),zs("log",Ls),zs("pow",Ds),zs("time",Rs),zs("timeCat",ks),zs("quantize",Bs),zs("quantile",Ns);var dl=n(136);function pl(t){return function(t){return Object(ut.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function fl(t,e,n,i){void 0===i&&(i=!0);var r=new Ts({values:t}),o=new Xa({values:Object(ut.map)(t,(function(t,e){return e}))}),a=Object(ut.map)(t,(function(t,i){return[o.scale(i)*e,n-r.scale(t)*n]}));return i?function(t){if(t.length<=2)return pl(t);var e=[];Object(ut.each)(t,(function(t){Object(ut.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=de(e,!1),i=Object(ut.head)(t),r=i[0],o=i[1];return n.unshift(["M",r,o]),n}(a):pl(a)}function gl(t,e,n){for(var i=new Ts({values:t}),r=new Xa({values:Object(ut.map)(t,(function(t,e){return e}))}),o=Object(ut.map)(t,(function(t,o){return[r.scale(o)*e,n-i.scale(t)*n]})),a=[],s=0;s<o.length;s++){var l=o[s],c=vl({x:l[0],y:l[1],y0:n,size:5});a.push.apply(a,c)}return function(t,e){void 0===e&&(e=!0);var n=[],i=t[0];n.push(["M",i.x,i.y]);for(var r=1,o=t.length;r<o;r++)n.push(["L",t[r].x,t[r].y]);return e&&(n.push(["L",i.x,i.y]),n.push(["z"])),n}(a)}function ml(t,e,n,i){var r=Object(I.__spreadArrays)(t),o=function(t,e){var n=new Ts({values:t}),i=Math.max(0,n.min);return e-n.scale(i)*e}(i,n);return r.push(["L",e,o]),r.push(["L",0,o]),r.push(["Z"]),r}function vl(t){var e,n,i,r,o=t.x,a=t.y,s=t.y0,l=t.size;Object(dl.isArray)(a)?(e=a[0],n=a[1]):(e=s,n=a),Object(dl.isArray)(o)?(i=o[0],r=o[1]):(i=o-l/2,r=o+l/2);var c=[{x:i,y:e},{x:i,y:n}];return c.push({x:r,y:n},{x:r,y:e}),c}var yl={stroke:"#C5C5C5",strokeOpacity:.85},bl={fill:"#CACED4",opacity:.85},xl=function(){function t(t){var e=t.x,n=void 0===e?0:e,i=t.y,r=void 0===i?0:i,o=t.width,a=void 0===o?200:o,s=t.height,l=void 0===s?26:s,c=t.smooth,u=void 0===c||c,h=t.isArea,d=void 0!==h&&h,p=t.data,f=void 0===p?[]:p,g=t.lineStyle,m=t.areaStyle,v=t.group,y=t.interval,b=void 0===y?null:y;this.group=v,this.x=n,this.y=r,this.width=a,this.height=l,this.data=f,this.smooth=u,this.isArea=d,this.lineStyle=Object.assign({},yl,g),this.areaStyle=Object.assign({},bl,m),this.intervalConfig=b,this.renderLine()}return t.prototype.renderLine=function(){var t=this,e=t.x,n=t.y,i=t.width,r=t.height,o=t.data,a=t.smooth,s=t.isArea,l=(t.backgroundStyle,t.lineStyle),c=t.areaStyle,u=this.group.addGroup({name:"trend-group"});if(o){var h=fl(o,i,r,a);if(u.addShape("path",{attrs:Object(I.__assign)({path:h},l)}),s){var d=ml(h,i,r,o);u.addShape("path",{attrs:Object(I.__assign)({path:d},c)})}}this.intervalConfig&&u.addShape("path",{attrs:Object(I.__assign)({path:gl(this.intervalConfig.data,i,r)},this.intervalConfig.style)}),u.move(e,n)},t.prototype.destory=function(){this.group.destroy()},t}(),wl={fill:"#1890ff",stroke:"#1890ff",type:"trend",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#0050b3"},_l={fill:"#fff",stroke:"#1890ff",radius:2,opacity:1,cursor:"ew-resize"},Cl=function(){function t(t){var e=t.group,n=t.name,i=t.type,r=t.x,o=void 0===r?0:r,a=t.y,s=void 0===a?0:a,l=t.width,c=void 0===l?2:l,u=t.height,h=void 0===u?24:u,d=t.style,p=void 0===d?{}:d;this.group=e,this.name=n,this.handleType=i,this.x=o,this.y=s,this.width=c,this.height=h,"trend"===i?this.style=Object(I.__assign)(Object(I.__assign)({},wl),p):"simple"===i&&(this.style=Object(I.__assign)(Object(I.__assign)({},_l),p)),this.renderHandle()}return t.prototype.setX=function(t){this.setXY(t,void 0)},t.prototype.setY=function(t){this.setXY(void 0,t)},t.prototype.setXY=function(t,e){Object(ut.isNumber)(t)&&(this.x=t),Object(ut.isNumber)(e)&&(this.y=e),this.updateXY()},t.prototype.renderHandle=function(){var t=this.width,e=this.height,n=this.style,i=this.name,r=n.fill,o=n.stroke,a=n.radius,s=n.opacity,l=n.cursor;this.handleGroup=this.group.addGroup(),"trend"===this.handleType?(this.background=this.handleGroup.addShape("rect",{attrs:{x:0,y:0,width:t,height:e,fill:r,stroke:o,radius:a,opacity:s,cursor:l},name:i+"-handler"}),this.handleGroup.addShape("circle",{attrs:{x:t/2,y:0,r:2*t,fill:r,stroke:o,radius:a,opacity:s,cursor:l},name:i+"-handler"}),this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e,r:2*t,fill:r,stroke:o,radius:a,opacity:s,cursor:l},name:i+"-handler"})):"simple"===this.handleType&&(this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e/2,r:2*t,fill:r,stroke:o,radius:a,opacity:s,cursor:l},name:i+"-handler"}),this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e/2,r:2*t,fill:r,stroke:o,radius:a,opacity:s,cursor:l},name:i+"-handler"})),this.updateXY(),"trend"===this.handleType&&this.bindEvents()},t.prototype.bindEvents=function(){var t=this,e=this.name;this.handleGroup.on(e+"-handler:mouseenter",(function(){var e=t.style.highLightFill;t.background.attr("fill",e)})),this.handleGroup.on(e+"-handler:mouseleave",(function(){var e=t.style.fill;t.background.attr("fill",e)}))},t.prototype.show=function(){this.handleGroup.show()},t.prototype.hide=function(){this.handleGroup.hide()},t.prototype.updateXY=function(){this.handleGroup.setMatrix([1,0,0,0,1,0,this.x,this.y,1])},t}(),Al=function(){function t(t){this.config=Object(ut.deepMix)({},t),this.init()}return t.prototype.update=function(t){this.config=Object(ut.deepMix)({},this.config,t),this.updateElement(),this.renderMarker()},t.prototype.init=function(){this.initElement(),this.renderMarker()},t.prototype.initElement=function(){var t=this.config,e=t.group,n=t.style;this.circle=e.addShape("circle",{attrs:Object(I.__assign)({x:this.config.x,y:this.config.y,r:this.config.r},n)}),this.startMarker=e.addShape("path",{attrs:{path:this.getStartMarkerPath(),fill:"#ccc"},name:"playPauseBtn"}),this.pauseGroupMarker=e.addGroup();var i=.25*this.config.r,r=.5*this.config.r*Math.sqrt(3);this.pauseGroupMarker.addShape("rect",{attrs:{x:this.config.x-.375*this.config.r,y:this.config.y-r/2,width:2.5*i,height:r,fill:"#fff"},name:"playPauseBtn"}),this.pauseLeftMarker=this.pauseGroupMarker.addShape("rect",{attrs:{x:this.config.x-.375*this.config.r,y:this.config.y-r/2,width:i,height:r,fill:"#ccc"},name:"playPauseBtn"}),this.pauseRightMarker=this.pauseGroupMarker.addShape("rect",{attrs:{x:this.config.x+1/8*this.config.r,y:this.config.y-r/2,width:i,height:r,fill:"#ccc"},name:"playPauseBtn"})},t.prototype.updateElement=function(){this.circle.attr("x",this.config.x),this.circle.attr("y",this.config.y),this.circle.attr("r",this.config.r),this.startMarker.attr("path",this.getStartMarkerPath());var t=.25*this.config.r,e=.5*this.config.r*Math.sqrt(3);this.pauseLeftMarker.attr("x",this.config.x-.375*this.config.r),this.pauseLeftMarker.attr("y",this.config.y-e/2),this.pauseLeftMarker.attr("width",t),this.pauseLeftMarker.attr("height",e),this.pauseRightMarker.attr("x",this.config.x+1/8*this.config.r),this.pauseRightMarker.attr("y",this.config.y-e/2),this.pauseRightMarker.attr("width",t),this.pauseRightMarker.attr("height",e)},t.prototype.renderMarker=function(){this.config.isPlay?(this.startMarker.hide(),this.pauseGroupMarker.show()):(this.startMarker.show(),this.pauseGroupMarker.hide())},t.prototype.getStartMarkerPath=function(){var t=.5*this.config.r*Math.sqrt(3);return[["M",this.config.x-t/Math.sqrt(3)/2,this.config.y-t/2],["L",this.config.x+t/Math.sqrt(3),this.config.y],["L",this.config.x-t/Math.sqrt(3)/2,this.config.y+t/2]]},t}(),Il={fill:"#607889",stroke:"#607889"},Sl={fill:"#fff"},Ml={fill:"green"},kl={speed:2,loop:!1,fill:"#fff",stroke:"#fff",hiddleToggle:!1,preBtnStyle:{fill:"#ccc",stroke:"#ccc"},nextBtnStyle:{fill:"#ccc",stroke:"#ccc"},playBtnStyle:{fill:"#fff",stroke:"#ccc"}},El=function(){function t(t){this.controllerCfg=Object(ut.deepMix)({},kl,t),this.group=t.group,this.speedAxisY=[],this.currentSpeed=this.controllerCfg.speed,this.currentType="range",this.init()}return t.prototype.init=function(){this.renderPlayButton()},t.prototype.getNextMarkerPath=function(t,e,n){return[["M",t,e-n],["L",t+n,e],["L",t,e+n]]},t.prototype.getPreMarkerPath=function(t,e,n){return[["M",t,e-n],["L",t-n,e],["L",t,e+n]]},t.prototype.renderPlayButton=function(){var t=this.controllerCfg,e=t.width,n=t.height,i=t.x,r=t.y,o=t.hiddleToggle,a=t.fill,s=void 0===a?"#ccc":a,l=t.stroke,c=void 0===l?"green":l,u=t.playBtnStyle,h=void 0===u?Il:u,d=t.preBtnStyle,p=void 0===d?Sl:d,f=t.nextBtnStyle,g=void 0===f?Ml:f,m=n/2-5,v=r+10,y=this.group.addShape("rect",{attrs:{x:i,y:v,width:e,height:n,stroke:c,fill:s},name:"container-rect"});this.playButton?this.playButton.update({x:e/2,y:v,r:m}):this.playButton=new Al({group:this.group,x:e/2,y:v+m+5,r:m,isPlay:this.isPlay,style:h}),this.group.addShape("path",{attrs:Object(I.__assign)({path:this.getPreMarkerPath(e/2-5*m,v+m+5,.5*m)},p),name:"preStepBtn"}),this.group.addShape("path",{attrs:Object(I.__assign)({path:this.getPreMarkerPath(e/2-4.5*m,v+m+5,.5*m)},p),name:"preStepBtn"}),this.group.addShape("path",{attrs:Object(I.__assign)({path:this.getNextMarkerPath(e/2+5*m,v+m+5,.5*m)},g),name:"nextStepBtn"}),this.group.addShape("path",{attrs:Object(I.__assign)({path:this.getNextMarkerPath(e/2+4.5*m,v+m+5,.5*m)},g),name:"nextStepBtn"}),y.toBack(),this.renderSpeedBtn(),o||this.renderToggleTime(),this.bindEvent()},t.prototype.renderSpeedBtn=function(){var t=this.controllerCfg,e=t.y,n=t.width,i=t.hiddleToggle,r=this.group.addGroup({name:"speed-group"});this.speedGroup=r;for(var o=1,a=[],s=9,l=0;l<5;l++){var c=e+15+l*(l+1)+o;r.addShape("rect",{attrs:{x:n-(i?50:110),y:c,width:15,height:2,fill:"#ccc"},speed:s,name:"speed-rect"}),this.speedAxisY.push(c),a.push(s),s-=2,o++}for(l=0;l<4;l++)r.addShape("rect",{attrs:{x:n-(i?50:110),y:this.speedAxisY[l]+2,width:15,height:2*l+1,fill:"#fff",opacity:.3},speed:a[l]-1,name:"speed-rect"});this.speedText=r.addShape("text",{attrs:{x:n-(i?50:110)+20,y:this.speedAxisY[1]+15,text:"1.0X",fill:"#ccc"}}),this.speedPoint=r.addShape("path",{attrs:{path:this.getPath(n-(i?50:110),this.speedAxisY[4]),fill:"#ccc"}})},t.prototype.getPath=function(t,e){return[["M",t,e],["L",t-12,e-6],["L",t-12,e+6],["Z"]]},t.prototype.renderToggleTime=function(){var t=this.controllerCfg.width;this.toggleGroup=this.group.addGroup({name:"toggle-group"}),this.toggleGroup.addShape("rect",{attrs:{width:14,height:14,x:t-50,y:this.speedAxisY[1],fill:"#fff",stroke:"#ccc",lineWidth:2,radius:3},isChecked:!1,name:"toggle-model"}),this.checkedIcon=this.toggleGroup.addShape("path",{attrs:{path:[["M",t-50+3,this.speedAxisY[1]+6],["L",t-50+7,this.speedAxisY[1]+10],["L",t-50+12,this.speedAxisY[1]+4]],stroke:"green",lineWidth:3},capture:!1}),this.checkedIcon.hide(),this.checkedText=this.toggleGroup.addShape("text",{attrs:{text:"单一时间",x:t-50+20,y:this.speedAxisY[1]+15,fill:"#ccc"}})},t.prototype.bindEvent=function(){var t=this,e=this.controllerCfg,n=e.width,i=e.hiddleToggle;this.speedGroup.on("speed-rect:click",(function(e){t.speedPoint.attr("path",t.getPath(n-(i?50:110),e.y)),t.currentSpeed=e.target.get("speed"),t.speedText.attr("text",t.currentSpeed+".0X"),t.group.emit("timebarConfigChanged",{speed:t.currentSpeed,type:t.currentType})})),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",(function(e){var n=e.target.get("isChecked");n?(t.checkedIcon.hide(),t.checkedText.attr("text","单一时间"),t.currentType="range"):(t.checkedIcon.show(),t.checkedText.attr("text","时间范围"),t.currentType="single"),e.target.set("isChecked",!n),t.group.emit("timebarConfigChanged",{type:t.currentType,speed:t.currentSpeed})}))},t.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},t}(),Tl={fill:"#416180",opacity:.05},Ol={fill:"#416180",opacity:.15,radius:5},Pl={fill:"#5B8FF9",opacity:.3,cursor:"move"},jl={width:2,height:24},Ll={textBaseline:"middle",fill:"#000",opacity:.45},Dl=function(){function t(t){var e=this;this.prevX=0,this.onMouseDown=function(t){return function(n){e.currentHandler=t;var i=n.originalEvent;i.stopPropagation(),i.preventDefault(),e.prevX=Object(ut.get)(i,"touches.0.pageX",i.pageX);var r=e.canvas.get("container");r.addEventListener("mousemove",e.onMouseMove),r.addEventListener("mouseup",e.onMouseUp),r.addEventListener("mouseleave",e.onMouseUp),r.addEventListener("touchmove",e.onMouseMove),r.addEventListener("touchend",e.onMouseUp),r.addEventListener("touchcancel",e.onMouseUp)}},this.onMouseMove=function(t){t.stopPropagation(),t.preventDefault();var n=Object(ut.get)(t,"touches.0.pageX",t.pageX),i=n-e.prevX,r=e.adjustOffsetRange(i/e.width);e.updateStartEnd(r),e.updateUI(),e.prevX=n},this.onMouseUp=function(){e.currentHandler&&(e.currentHandler=void 0);var t=e.canvas.get("container");t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))};var n=t.x,i=void 0===n?0:n,r=t.y,o=void 0===r?0:r,a=t.width,s=void 0===a?100:a,l=t.height,c=t.padding,u=void 0===c?10:c,h=t.trendCfg,d=t.controllerCfg,p=void 0===d?{speed:1}:d,f=t.backgroundStyle,g=void 0===f?{}:f,m=t.foregroundStyle,v=void 0===m?{}:m,y=t.handlerStyle,b=void 0===y?{}:y,x=t.textStyle,w=void 0===x?{}:x,_=t.start,C=void 0===_?0:_,A=t.end,S=void 0===A?1:A,M=t.minText,k=void 0===M?"":M,E=t.maxText,T=void 0===E?"":E,O=t.group,P=t.graph,j=t.canvas,L=t.ticks,D=t.type;this.graph=P,this.canvas=j,this.group=O,this.timeBarType=D,this.x=i,this.y=o,this.width=s,this.height=l,this.padding=u,this.ticks=L,this.trendCfg=h,this.controllerCfg=p,this.currentSpeed=p.speed,"trend"===D?this.backgroundStyle=Object(I.__assign)(Object(I.__assign)({},Tl),g):"simple"===D&&(this.backgroundStyle=Object(I.__assign)(Object(I.__assign)({},Ol),g)),this.foregroundStyle=Object(I.__assign)(Object(I.__assign)({},Pl),v),this.handlerStyle=Object(I.__assign)(Object(I.__assign)({},jl),b),this.textStyle=Object(I.__assign)(Object(I.__assign)({},Ll),w),this.currentMode="range",this.start=C,this.end=S,this.minText=k,this.maxText=T,this.renderSlider()}return t.prototype.update=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o=t.minText,a=t.maxText,s=t.start,l=t.end;this.start=Math.min(1,Math.max(s,0)),this.end=Math.min(1,Math.max(l,0)),Object(ut.assign)(this,{x:e,y:n,width:i,height:r,minText:o,maxText:a}),this.updateUI()},t.prototype.setText=function(t,e){this.minTextShape.attr("text",t),this.maxTextShape.attr("text",e)},t.prototype.renderSlider=function(){var t=this,e=this.width,n=this.height,i=this.timeBarType;if("trend"===i&&Object(ut.size)(Object(ut.get)(this.trendCfg,"data"))){var r=new xl(Object(I.__assign)(Object(I.__assign)({x:this.x,y:this.y,width:e,height:n},this.trendCfg),{group:this.group}));this.trendComponent=r}var o=this.group.addGroup({name:"slider-group"});o.addShape("rect",{attrs:Object(I.__assign)({x:0,y:0,width:e,height:n},this.backgroundStyle)});var a=this.group.addGroup();"trend"===i?(this.minTextShape=a.addShape("text",{attrs:Object(I.__assign)({x:0,y:n/2+this.y,textAlign:"right",text:this.minText,silent:!1},this.textStyle),capture:!1}),this.maxTextShape=a.addShape("text",{attrs:Object(I.__assign)({y:n/2+this.y,textAlign:"left",text:this.maxText,silent:!1},this.textStyle),capture:!1})):(this.minTextShape=a.addShape("text",{attrs:Object(I.__assign)({x:0,y:this.y-10,textAlign:"center",text:this.minText,silent:!1},this.textStyle),capture:!1}),this.maxTextShape=a.addShape("text",{attrs:Object(I.__assign)({y:this.y-10,textAlign:"center",text:this.maxText,silent:!1},this.textStyle),capture:!1})),this.foregroundShape=this.group.addGroup().addShape("rect",{attrs:Object(I.__assign)({x:0,y:this.y,height:n},this.foregroundStyle)});var s=Object(ut.get)(this.handlerStyle,"width",2),l=Object(ut.get)(this.handlerStyle,"height",24),c=this.group.addGroup({name:"minHandlerShape"});this.minHandlerShape=new Cl(Object(I.__assign)({name:"minHandlerShape",group:c,type:i,x:this.x,y:this.y,width:s,height:l,cursor:"ew-resize"},this.handlerStyle));var u=this.group.addGroup({name:"maxHandlerShape"});this.maxHandlerShape=new Cl(Object(I.__assign)({name:"maxHandlerShape",group:u,type:i,x:this.x,y:this.y,width:s,height:l,cursor:"ew-resize"},this.handlerStyle));var h=this.ticks,d=e/(h.length-1);this.tickPosList=[],this.textList&&this.textList.length&&this.textList.forEach((function(t){t.destroy()}));var p=-1/0;this.textList=h.map((function(e,i){t.tickPosList.push(t.x+i*d);var r=t.group.addShape("text",{attrs:{x:t.x+i*d,y:t.y+n+5,text:e,textAlign:"center",textBaseline:"top",fill:"#607889",opacity:.35}}),o=t.group.addShape("line",{attrs:{x1:t.x+i*d,y1:t.y+n+2,x2:t.x+i*d,y2:t.y+n+6,lineWidth:1,stroke:"#ccc"}}),a=r.getBBox();return a.minX>p?(r.show(),o.show(),p=a.minX+a.width+10):(r.hide(),o.hide()),r})),this.controllerBtnGroup=new El({group:this.group,x:this.x,y:this.y+n+25,width:e,height:40}),this.updateUI(),o.move(this.x,this.y),this.bindEvents()},t.prototype.bindEvents=function(){var t=this,e=this.group.find((function(t){return"minHandlerShape"===t.get("name")}));e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var n=this.group.find((function(t){return"maxHandlerShape"===t.get("name")}));n&&(n.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),n.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("playPauseBtn:click",(function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()})),this.group.on("nextStepBtn:click",(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()})),this.group.on("preStepBtn:click",(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()})),this.group.on("timebarConfigChanged",(function(e){var n=e.type,i=e.speed;t.currentSpeed=i,t.currentMode=n,"single"===n?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):"range"===n&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show())}))},t.prototype.adjustTickIndex=function(t){for(var e=0;e<this.tickPosList.length-1;e++)if(this.tickPosList[e]<=t&&t<=this.tickPosList[e+1])return Math.abs(this.tickPosList[e]-t)<Math.abs(t-this.tickPosList[e+1])?e:e+1},t.prototype.adjustOffsetRange=function(t){switch(this.currentHandler){case this.minHandlerShape:var e=0-this.start,n=1-this.start;return Math.min(n,Math.max(e,t));case this.maxHandlerShape:return e=0-this.end,n=1-this.end,Math.min(n,Math.max(e,t));case this.foregroundShape:return e=0-this.start,n=1-this.end,Math.min(n,Math.max(e,t));default:return 0}},t.prototype.updateStartEnd=function(t){switch(this.currentHandler){case this.minHandlerShape:this.maxText=this.maxTextShape.attr("text"),this.start+=t,this.minText=this.ticks[this.adjustTickIndex(this.start*this.width)];break;case this.maxHandlerShape:this.minText=this.minTextShape.attr("text"),this.end+=t,this.maxText=this.ticks[this.adjustTickIndex(this.end*this.width)];break;case this.foregroundShape:this.start+=t,this.end+=t,this.minText=this.ticks[this.adjustTickIndex(this.start*this.width)],this.maxText=this.ticks[this.adjustTickIndex(this.end*this.width)]}},t.prototype.updateUI=function(){var t=this;this.start<0&&(this.start=0),this.end>1&&(this.end=1);var e=this.start*this.width,n=this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",n-e);var i=Object(ut.get)(this.handlerStyle,"width",2);this.setText(this.minText,this.maxText);var r=this.dodgeText([e,n]),o=r[0],a=r[1];this.minHandlerShape.setX(e-i/2),Object(ut.each)(o,(function(e,n){return t.minTextShape.attr(n,e)})),this.maxHandlerShape.setX(n-i/2),Object(ut.each)(a,(function(e,n){return t.maxTextShape.attr(n,e)})),"range"===this.currentMode?this.graph.emit("valueChange",{value:[this.start,this.end].sort()}):"single"===this.currentMode&&this.graph.emit("valueChange",{value:[this.end,this.end]})},t.prototype.dodgeText=function(t){var e,n,i=Object(ut.get)(this.handlerStyle,"width",2),r=this.minTextShape,o=this.maxTextShape,a=t[0],s=t[1],l=!1;a>s&&(a=(e=[s,a])[0],s=e[1],r=(n=[o,r])[0],o=n[1],l=!0);var c=r.getBBox(),u=o.getBBox(),h=null,d=null;return"trend"===this.timeBarType?(h=c.width>a-2?{x:a+i/2+2,textAlign:"left"}:{x:a-i/2-2,textAlign:"right"},d=u.width>this.width-s-2?{x:s-i/2-2,textAlign:"right"}:{x:s+i/2+2,textAlign:"left"}):"simple"===this.timeBarType&&(h=c.width>a-2?{x:a+i/2+2,textAlign:"center"}:{x:a-i/2-2,textAlign:"center"},d=u.width>this.width-s-2?{x:s-i/2-2,textAlign:"center"}:{x:s+i/2+2,textAlign:"center"}),l?[d,h]:[h,d]},t.prototype.startPlay=function(){var t=this;return window.requestAnimationFrame((function(){var e=t,n=e.ticks,i=e.width,r=t.currentSpeed,o=i/n.length/(1e3*(10-r)/60),a=t.adjustOffsetRange(o/t.width);t.updateStartEnd(a),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay())}))},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit("timelinestart",null)):this.playHandler&&(window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit("timelineend",null))},t.prototype.destory=function(){this.graph.off("valueChange");var t=this.group,e=t.find((function(t){return"minHandlerShape"===t.get("name")}));e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var n=t.find((function(t){return"maxHandlerShape"===t.get("name")}));n&&(n.off("maxHandlerShape-handler:mousedown"),n.off("maxHandlerShape-handler:touchstart"),n.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("playPauseBtn:click"),t.off("nextStepBtn:click"),t.off("preStepBtn:click"),t.off("timebarConfigChanged"),t.destroy(),this.trendComponent&&this.trendComponent.destory()},t}(),Rl=function(){function t(t){var e=t.x,n=void 0===e?0:e,i=t.y,r=void 0===i?0:i,o=t.container,a=t.text,s=t.padding,l=void 0===s?[4,4,4,4]:s,c=t.className,u=void 0===c?"g6-component-timebar-tooltip":c,h=t.backgroundColor,d=void 0===h?"#000":h,p=t.textColor,f=void 0===p?"#fff":p,g=t.opacity,m=void 0===g?.8:g,v=t.fontSize,y=void 0===v?12:v;this.container=o,this.className=u,this.backgroundColor=d,this.textColor=f,this.x=n,this.y=r,this.text=a,this.padding=l,this.opacity=m,this.fontSize=y,this.render()}return t.prototype.render=function(){var t=this.className,e=(this.x,this.y,this.backgroundColor),n=this.textColor,i=this.text,r=this.padding,o=this.opacity,a=this.fontSize,s=this.container,l=yt()("<div class='"+t+"' style=\"position: absolute; width: fit-content; height: fit-content; opacity: "+o+'"></div>');Object(ut.isString)(s)&&(s=document.getElementById(s)),s.appendChild(l),this.parentHeight=s.offsetHeight,this.parentWidth=s.offsetWidth,mt()(l,{visibility:"hidden",top:0,left:0});var c=yt()("\n      <div style='position: absolute; white-space:nowrap; background-color: "+e+"; font-size: "+a+"px; border-radius: 4px; width: fit-content; height: fit-content; color: "+n+"; padding: "+r[0]+"px "+r[1]+"px "+r[2]+"px "+r[3]+"px'></div>");c.innerHTML=i,l.appendChild(c),this.backgroundDOM=c;var u=yt()("<div style='position: absolute; width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid "+e+"'></div>");l.appendChild(u),this.arrowDOM=u,this.container=l},t.prototype.show=function(t){var e=t.text,n=t.x;t.y,t.clientX,t.clientY,this.backgroundDOM.innerHTML=e;var i=this.backgroundDOM.offsetWidth,r=this.backgroundDOM.offsetHeight,o=this.arrowDOM.offsetWidth,a=this.arrowDOM.offsetHeight;mt()(this.container,{top:-r-a+"px",left:n+"px",visibility:"visible"}),mt()(this.backgroundDOM,{marginLeft:-i/2+"px"}),mt()(this.arrowDOM,{marginLeft:-o/2+"px",top:r+"px"});var s=n-i/2,l=n+i/2;s<0?mt()(this.backgroundDOM,{marginLeft:-i/2-s+"px"}):l>this.parentWidth&&mt()(this.backgroundDOM,{marginLeft:-i/2-l+this.parentWidth+12+"px"})},t.prototype.hide=function(){mt()(this.container,{top:0,left:0,visibility:"hidden"})},t}(),Bl={fill:"#5B8FF9"},Nl={fill:"#e6e8e9"},Fl=function(){function t(t){this.frameCount=0;var e=t.graph,n=t.canvas,i=t.group,r=t.width,o=t.height,a=t.padding,s=t.data,l=t.start,c=t.end,u=t.x,h=void 0===u?0:u,d=t.y,p=void 0===d?0:d,f=t.tickLabelFormatter,g=t.selectedTickStyle,m=void 0===g?Bl:g,v=t.unselectedTickStyle,y=void 0===v?Nl:v,b=t.tooltipBackgroundColor,x=t.tooltipFomatter;this.graph=e,this.group=i,this.sliceGroup=i.addGroup({name:"slice-group"}),this.canvas=n,this.width=r,this.height=o,this.padding=a,this.data=s,this.start=l,this.end=c,this.tickLabelFormatter=f,this.selectedTickStyle=m,this.unselectedTickStyle=y,this.x=h,this.y=p,this.tooltipBackgroundColor=b,this.tooltipFomatter=x,this.renderSlices(),this.initEvent()}return t.prototype.renderSlices=function(){var t=this,e=t.width,n=t.height,i=t.padding,r=t.data,o=t.start,a=t.end,s=t.tickLabelFormatter,l=t.selectedTickStyle,c=t.unselectedTickStyle,u=e-2*i,h=n-(3*i+4+10)-2*i,d=r.length,p=(u-2*(d-1))/d;this.tickWidth=p;var f=this.sliceGroup,g=[],m=[],v=Math.round(d*o),y=Math.round(d*a);this.startTickRectId=v,this.endTickRectId=y,r.forEach((function(t,n){var r=n>=v&&n<=y?l:c,o=f.addShape("rect",{attrs:Object(I.__assign)({x:i+n*(p+2),y:i,width:p,height:h},r),draggable:!0,name:"tick-rect-"+n}),a=f.addShape("rect",{attrs:{x:i+n*p+2*(2*n-1)/2,y:i,width:0===n||n===d-1?p+1:p+2,height:h,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-"+n});a.toFront();var u,b=o.getBBox(),x=(b.minX+b.maxX)/2;if(g.push({rect:o,pickRect:a,value:t.date,x:x,y:b.minY}),s?(u=s(t),!Object(ut.isString)(u)&&u&&(u=t.date)):n%Math.round(d/10)==0&&(u=t.date),u){m.push(u);var w=b.maxY+2*i;f.addShape("line",{attrs:{stroke:"#BFBFBF",x1:x,y1:w,x2:x,y2:w+4}});var _=w+4+i,C=f.addShape("text",{attrs:{fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:x,y:_,textAlign:"center",text:u,textBaseline:"top",fontSize:10},capture:!1}),A=C.getBBox();A.maxX>e?C.attr("textAlign","right"):A.minX<0&&C.attr("textAlign","left")}})),this.tickRects=g;var b=this.group;this.currentSpeed=1,this.controllerBtnGroup=new El({group:b,x:this.x,y:this.y+n+5,width:e,height:40,hiddleToggle:!0,speed:this.currentSpeed})},t.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",(function(e){var n=e.target;if("rect"===n.get("type")&&n.get("name")){var i=parseInt(n.get("name").split("-")[2],10);if(!isNaN(i)){var r=t.tickRects,o=t.unselectedTickStyle;r.forEach((function(t){t.rect.attr(o)}));var a=t.selectedTickStyle;r[i].rect.attr(a),t.startTickRectId=i,t.endTickRectId=i;var s=i/r.length;t.graph.emit("valueChange",{value:[s,s]})}}})),e.on("dragstart",(function(e){var n=t.tickRects,i=t.unselectedTickStyle;n.forEach((function(t){t.rect.attr(i)}));var r=e.target,o=parseInt(r.get("name").split("-")[2],10),a=t.selectedTickStyle;n[o].rect.attr(a),t.startTickRectId=o;var s=o/n.length;t.graph.emit("valueChange",{value:[s,s]}),t.dragging=!0})),e.on("dragover",(function(e){if(t.dragging&&"rect"===e.target.get("type")){for(var n=parseInt(e.target.get("name").split("-")[2],10),i=t.startTickRectId,r=t.tickRects,o=t.selectedTickStyle,a=t.unselectedTickStyle,s=0;s<r.length;s++){var l=s>=i&&s<=n?o:a;r[s].rect.attr(l)}var c=r.length;t.endTickRectId=n;var u=i/c,h=n/c;t.graph.emit("valueChange",{value:[u,h]})}})),e.on("drop",(function(e){if(t.dragging&&(t.dragging=!1,"rect"===e.target.get("type"))){var n=t.startTickRectId,i=parseInt(e.target.get("name").split("-")[2],10);if(!(i<n)){var r=t.selectedTickStyle,o=t.tickRects;o[i].rect.attr(r),t.endTickRectId=i;var a=o.length,s=n/a,l=i/a;t.graph.emit("valueChange",{value:[s,l]})}}}));var n=this.tooltipBackgroundColor,i=this.tooltipFomatter,r=this.canvas,o=new Rl({container:r.get("container"),backgroundColor:n}),a=this.tickRects;a.forEach((function(t){var e=t.pickRect;e.on("mouseenter",(function(t){var e=t.target;if("rect"===e.get("type")){var n=parseInt(e.get("name").split("-")[2],10),s=r.getClientByPoint(a[n].x,a[n].y);o.show({x:a[n].x,y:a[n].y,clientX:s.x,clientY:s.y,text:i?i(a[n].value):a[n].value})}})),e.on("mouseleave",(function(t){o.hide()}))}));var s=this.group;s.on("playPauseBtn:click",(function(){t.isPlay=!t.isPlay,t.changePlayStatus()})),s.on("nextStepBtn:click",(function(){t.updateStartEnd(1)})),s.on("preStepBtn:click",(function(){t.updateStartEnd(-1)})),s.on("timebarConfigChanged",(function(e){e.type;var n=e.speed;t.currentSpeed=n}))},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit("timelinestart",null)):this.playHandler&&(window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit("timelineend",null))},t.prototype.startPlay=function(){var t=this;return window.requestAnimationFrame((function(){var e=t.currentSpeed;t.frameCount%(60/e)==0&&(t.frameCount=0,t.updateStartEnd(1)),t.frameCount++,t.isPlay&&(t.playHandler=t.startPlay())}))},t.prototype.updateStartEnd=function(t){var e=this.tickRects,n=e.length,i=this.unselectedTickStyle,r=this.selectedTickStyle,o=this.endTickRectId;if(t>0?this.endTickRectId++:(e[this.endTickRectId].rect.attr(i),this.endTickRectId--),o!==this.startTickRectId)this.endTickRectId<this.startTickRectId&&(this.startTickRectId=this.endTickRectId);else{for(var a=this.startTickRectId;a<=this.endTickRectId-1;a++)e[a].rect.attr(i);this.startTickRectId=this.endTickRectId}if(e[this.endTickRectId]){e[this.endTickRectId].rect.attr(r);var s=this.startTickRectId/n,l=this.endTickRectId/n;this.graph.emit("valueChange",{value:[s,l]})}},t.prototype.destory=function(){this.graph.off("valueChange");var t=this.sliceGroup;t.off("click"),t.off("dragstart"),t.off("dragover"),t.off("drop"),this.tickRects.forEach((function(t){var e=t.pickRect;e.off("mouseenter"),e.off("mouseleave")})),this.tickRects.length=0,t.off("playPauseBtn:click"),t.off("nextStepBtn:click"),t.off("preStepBtn:click"),t.off("timebarConfigChanged"),this.sliceGroup.destroy()},t}(),zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-component-timebar",padding:10,type:"trend",trend:{data:[],isArea:!1,smooth:!0},controllerCfg:{speed:2,loop:!1},slider:{start:.1,end:.9,minText:"min",maxText:"max"},tick:{start:.1,end:.9,data:[]}}},e.prototype.initContainer=function(){var t,e,n=this.get("graph"),i=this._cfgs,r=i.width,o=i.height,a=this.get("className")||"g6-component-timebar",s=this.get("container"),l=this.get("graph").get("container");s?t=s:(t=yt()("<div class='"+a+"'></div>"),mt()(t,{position:"relative"})),l.appendChild(t),this.set("timeBarContainer",t),e="SVG"===n.get("renderer")?new Ne.a({container:t,width:r,height:o}):new Re.a({container:t,width:r,height:o}),this.set("canvas",e)},e.prototype.init=function(){this.initContainer();var t=this.get("canvas").addGroup({name:"timebar-group"});this.set("timeBarGroup",t),this.renderTrend(),this.initEvent()},e.prototype.renderTrend=function(){var t=this._cfgs,e=t.width,n=t.x,i=t.y,r=t.padding,o=t.type,a=t.trend,s=t.slider,l=t.controllerCfg,c=a.data,u=Object(I.__rest)(a,["data"]),h=e-2*r,d="trend"===o?26:8,p=this.get("graph"),f=this.get("timeBarGroup"),g=this.get("canvas"),m=null;if("trend"===o||"simple"===o)m=new Dl(Object(I.__assign)(Object(I.__assign)({graph:p,canvas:g,group:f,type:o,x:n+r,y:"trend"===o?i+r:i+r+15,width:h,height:d,padding:r,trendCfg:Object(I.__assign)(Object(I.__assign)({},u),{data:c.map((function(t){return t.value}))})},s),{ticks:c.map((function(t){return t.date})),handlerStyle:Object(I.__assign)(Object(I.__assign)({},s.handlerStyle),{height:s.height||d}),controllerCfg:l}));else if("tick"===o){var v=this._cfgs.tick;m=new Fl(Object(I.__assign)({graph:p,canvas:g,group:f,x:n+r,y:i+r},v))}this.set("timebar",m)},e.prototype.filterData=function(t){var e=t.value,n=null,i=this._cfgs.type;if("trend"===i||"simple"===i?n=this._cfgs.trend.data:"tick"===i&&(n=this._cfgs.tick.data),n&&0!==n.length){var r=this.get("rangeChange"),o=this.get("graph"),a=Math.round(n.length*e[0]),s=Math.round(n.length*e[1]);s=s>=n.length?n.length-1:s;var l=n[a].date,c=n[s].date;if("tick"!==i&&this.get("timebar").setText(l,c),r)r(o,l,c);else{var u=o.save();(!this.cacheGraphData||this.cacheGraphData.nodes&&0===this.cacheGraphData.nodes.length)&&(this.cacheGraphData=u);var h=this.cacheGraphData.nodes.filter((function(t){return t.date>=l&&t.date<=c})),d=h.map((function(t){return t.id})),p=this.cacheGraphData.edges.filter((function(t){return d.includes(t.source)&&d.includes(t.target)}));o.changeData({nodes:h,edges:p})}}else console.warn("请配置 TimeBar 组件的数据")},e.prototype.initEvent=function(){var t=this,e=0,n=0,i=this._cfgs.type;i&&"trend"!==i&&"simple"!==i?"tick"===i&&(e=this._cfgs.tick.start,n=this._cfgs.tick.end):(e=this._cfgs.slider.start,n=this._cfgs.slider.end);var r=this.get("graph");r.on("afterrender",(function(){t.filterData({value:[e,n]})})),r.on("valueChange",(function(e){t.filterData(e)}))},e.prototype.destroy=function(){var e=this.get("timebar");e&&e.destory&&e.destory(),t.prototype.destroy.call(this);var n=this.get("timeBarContainer");if(n){var i=this.get("container");i||(i=this.get("graph").get("container")),i.removeChild(n)}},e}(Ta),Vl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.graph;if(!this.destroyed){var i=this.get("container"),r=yt()("<div class="+e.viewportClassName+"\n      style='position:absolute;\n        left:0;\n        top:0;\n        box-sizing:border-box;\n        border: 2px solid #1980ff'>\n      </div>"),o=0,a=0,s=!1,l=0,c=0,u=0,h=0,d=0,p=0;i.addEventListener("mousedown",(function(i){if(e.refresh=!1,i.target===r){var l=r.style;u=parseInt(l.width,10),h=parseInt(l.height,10);var c=t.get("width"),f=t.get("height");u>c||h>f||(p=n.getZoom(),d=t.get("ratio"),s=!0,o=i.clientX,a=i.clientY)}}),!1),i.addEventListener("mousemove",(function(e){if(s&&!x()(e.clientX)&&!x()(e.clientY)){var i=t.get("width"),f=t.get("height"),g=r.style;l=parseInt(g.left,10),c=parseInt(g.top,10),u=parseInt(g.width,10),h=parseInt(g.height,10);var m=o-e.clientX,v=a-e.clientY;l-m<0?m=l:l-m+u>=i&&(m=0),c-v<0?v=c:c-v+h>=f&&(v=0),l-=m,c-=v,mt()(r,{left:l+"px",top:c+"px"}),n.translate(m*p/d,v*p/d),o=e.clientX,a=e.clientY}}),!1),i.addEventListener("mouseleave",(function(){s=!1,e.refresh=!0}),!1),i.addEventListener("mouseup",(function(){s=!1,e.refresh=!0}),!1),this.set("viewport",r),i.appendChild(r)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("width"),n=this.get("height"),i=this.get("graph"),r=i.get("width"),o=r/i.get("height"),a=i.getGroup(),s=a.getCanvasBBox(),l=[(s.minX+s.maxX)/2,(s.minY+s.maxY)/2],c=[s.maxX-s.minX,s.maxY-s.minY],u={centerX:l[0],centerY:l[1],width:0,height:0,minX:0,minY:0};s[0]/s[1]>o?(u.width=c[0],u.height=u.width/o):(u.height=c[1],u.width=u.height*o),u.minX=l[0]-u.width/2,u.minY=l[1]-u.height/2;var h=a.getMatrix();h||(h=[1,0,0,0,1,0,0,0,1]);var d=lt.invert([],h),p=zt({x:u.minX,y:u.minY},d),f=i.getCanvasByPoint(p.x,p.y),g=this.get("viewport");g||this.initViewport();var m=r/u.width,v=m*e,y=m*n,b=e*-f.x/u.width,x=n*-f.y/u.height,w=b+v,_=x+y;b<0&&(v+=b,b=0),w>e&&(v-=w-e),x<0&&(y+=x,x=0),_>n&&(y-=_-n),this.set("ratio",t);var C=b+"px",A=x+"px";mt()(g,{left:C,top:A,width:v+"px",height:y+"px"})}},e.prototype.init=function(){this.initContainer()},e.prototype.initContainer=function(){var t=this.get("graph"),e=t.get("width"),n=t.get("height")/e,i=this.get("className"),r=this.get("container"),o=this.get("width"),a=this.get("height");o||a||(o=200),o?(a=n*o,this.set("height",a)):(o=1/n*a,this.set("width",o));var s=yt()("<div class='"+i+"' style='width: "+o+"px; height: "+a+"px; overflow: hidden; position: relative;'></div>");A()(r)&&(r=document.getElementById(r)),r?r.appendChild(s):t.get("container").appendChild(s),this.set("container",s);var l=yt()('<div class="g6-minimap-container" style="position: relative; width: 100%; height: 100%; text-align: center; display: table;"></div>');s.appendChild(l);var c=yt()('<span style="display: table-cell; vertical-align: middle; "></span>');l.appendChild(c),this.set("containerDOM",l),this.set("containerSpan",c);var u=yt()('<img alt="" src="'+this.get("graphImg")+'" style="display: inline-block;" ondragstart="return false;" onselectstart="return false;"/>');this.set("imgDOM",u),this.updateImgSize(),c.appendChild(u),this.updateCanvas()},e.prototype.updateImgSize=function(){var t=this.get("imgDOM"),e=this.get("width"),n=this.get("height");t.onload=function(){var i=function(t,e){var n,i;if(t.naturalWidth)n=t.naturalWidth,i=t.naturalHeight;else{var r=new Image;r.src=t.src,r.onload=function(){null==e||e(r.width,r.height)}}return[n,i]}(t);i[0]>i[1]?t.width=e:t.height=n}},e.prototype.updateCanvas=function(){if(this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("width")/t.get("canvas").getCanvasBBox().width;this.set("ratio",e),this.updateViewport()}}},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateGraphImg=function(t){this.get("imgDOM").remove(),this.set("graphImg",t);var e=yt()('<img alt="" src="'+t+'" style="display: inline-block;" ondragstart="return false;" onselectstart="return false;"/>');this.set("imgDOM",e),e.src=t,this.updateImgSize(),this.get("containerSpan").appendChild(e),this.updateCanvas()},e.prototype.destroy=function(){var t=this.get("container");t.parentNode.removeChild(t)},e}(Ta),Gl={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:1,fill:"#fff"},Hl={Menu:Da,Grid:Pa,Minimap:Ba,Bundling:za,ToolBar:Ha,Tooltip:Wa,Fisheye:Ga,TimeBar:zl,ImageMinimap:Vl,EdgeFilterLens:function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(I.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{type:"both",trigger:"mousemove",r:60,delegateStyle:Object(f.clone)(Gl),showLabel:"edge",scaleRBy:"wheel"}},e.prototype.getEvents=function(){var t;switch(this.get("trigger")){case"click":t={click:"filter"};break;case"drag":t={click:"createDelegate"};break;default:t={mousemove:"filter"}}return t},e.prototype.init=function(){var t=this.get("showLabel"),e="node"===t||"both"===t,n="edge"===t||"both"===t;this.set("showNodeLabel",e),this.set("showEdgeLabel",n),this.get("shouldShow")||this.set("shouldShow",(function(){return!0}))},e.prototype.createDelegate=function(t){var e=this,n=e.get("delegate");n&&!n.destroyed||(e.filter(t),(n=e.get("delegate")).on("dragstart",(function(t){})),n.on("drag",(function(t){e.filter(t)})),"wheel"===this.get("scaleRBy")&&n.on("mousewheel",(function(t){e.scaleRByWheel(t)})))},e.prototype.scaleRByWheel=function(t){if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var e,n=this.get("graph"),i=this.get("delegate");(i?(i.attr("x"),i.attr("y"),1):void 0)||n.getPointByClient(t.clientX,t.clientY),e=t.originalEvent.wheelDelta<0?.95:1/.95;var r=this.get("maxR"),o=this.get("minR"),a=this.get("r");(a>(r||n.get("height"))&&e>1||a<(o||.05*n.get("height"))&&e<1)&&(e=1),a*=e,this.set("r",a),this.filter(t)}},e.prototype.filter=function(t){var e=this.get("graph"),n=e.getNodes(),i={},r=this.get("r"),o=this.get("type"),a={x:t.x,y:t.y};this.updateDelegate(a,r);var s=this.get("shouldShow"),l=this.get("vShapes");l&&l.forEach((function(t){t.remove(),t.destroy()})),l=[],n.forEach((function(t){var e=t.getModel(),n=e.x,o=e.y;Ht({x:n,y:o},a)<r&&(i[e.id]=t)}));var c=e.getEdges(),u=[];c.forEach((function(t){var e=t.getModel(),n=e.source,r=e.target;s(e)&&("only-source"===o||"one"===o?i[n]&&!i[r]&&u.push(t):"only-target"===o||"one"===o?i[r]&&!i[n]&&u.push(t):"both"===o&&i[n]&&i[r]&&u.push(t))}));var h=this.get("showNodeLabel"),d=this.get("showEdgelabel"),p=e.get("group");u.forEach((function(t){t.get("group").get("children").forEach((function(t){var e=t.get("type"),n=p.addShape(e,{attrs:t.attr()});l.push(n),h&&"text"===e&&n.set("visible",!0)}))})),Object.keys(i).forEach((function(t){var e=i[t].get("group").clone();if(p.add(e),l.push(e),d)for(var n=e.get("children"),r=0;r<n.length;r++){var o=n[r];"text"===o.get("type")&&o.set("visible",!0)}})),this.set("vShapes",l)},e.prototype.updateParams=function(t){var e=t.r,n=t.trigger,i=t.minR,r=t.maxR,o=t.scaleRBy,a=t.showLabel,s=t.shouldShow;if(isNaN(t.r)||this.set("r",e),isNaN(r)||this.set("maxR",r),isNaN(i)||this.set("minR",i),"mousemove"!==n&&"click"!==n||this.set("trigger",n),"wheel"===o||"unset"===o){this.set("scaleRBy",o),this.get("delegate").remove(),this.get("delegate").destroy();var l=this.get("dPercentText");l&&(l.remove(),l.destroy())}"node"!==a&&"both"!==a||this.set("showNodeLabel",!0),"edge"!==a&&"both"!==a||this.set("showEdgeLabel",!0),s&&this.set("shouldShow",s)},e.prototype.updateDelegate=function(t,e){var n=this,i=n.get("graph"),r=n.get("delegate");if(!r||r.destroyed){var o=i.get("group"),a=n.get("delegateStyle")||Gl;r=o.addShape("circle",{attrs:Object(I.__assign)({r:e,x:t.x,y:t.y},a),name:"lens-shape",draggable:!0}),"drag"!==this.get("trigger")&&"wheel"===this.get("scaleRBy")&&r.on("mousewheel",(function(t){n.scaleRByWheel(t)}))}else r.attr({x:t.x,y:t.y,r:e});n.set("delegate",r)},e.prototype.clear=function(){var t=this.get("vShapes");t&&t.forEach((function(t){t.remove(),t.destroy()})),t=[],this.set("vShapes",t);var e=this.get("delegate");e&&!e.destroyed&&(e.remove(),e.destroy())},e.prototype.destroy=function(){this.clear()},e}(Ta)};function Wl(t,e,n){var i=t.findById(e);!function t(e,n,i,r){r.enter({current:n,previous:i}),e.getNeighbors(n,"target").forEach((function(o){r.allowTraversal({previous:i,current:n,next:o})&&t(e,o,n,r)})),r.leave({current:n,previous:i})}(t,i,null,function(t){void 0===t&&(t={});var e,n=t,i=function(){},r=(e={},function(t){var n=t.next;return!e[n.get("id")]&&(e[n.get("id")]=!0,!0)});return n.allowTraversal=t.allowTraversal||r,n.enter=t.enter||i,n.leave=t.leave||i,n}(n))}var Ul=function(){function t(){this.linkedList=new Eo}return t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},t.prototype.enqueue=function(t){this.linkedList.append(t)},t.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toString=function(t){return this.linkedList.toString(t)},t}(),Zl=function(t,e,n){var i=function(t){void 0===t&&(t={});var e,n=t,i=function(){},r=(e={},function(t){var n=t.next.get("id");return!e[n]&&(e[n]=!0,!0)});return n.allowTraversal=t.allowTraversal||r,n.enter=t.enter||i,n.leave=t.leave||i,n}(n),r=new Ul,o=t.findById(e);r.enqueue(o);for(var a=null,s=function(){var e=r.dequeue();i.enter({current:e,previous:a}),t.getNeighbors(e,"target").forEach((function(t){i.allowTraversal({previous:a,current:e,next:t})&&r.enqueue(t)})),i.leave({current:e,previous:a}),a=e};!r.isEmpty();)s()};function Yl(t){for(var e=[],n={},i={},r={},o=[],a=0,s=function(l){i[l.get("id")]=a,r[l.get("id")]=a,a+=1,e.push(l),n[l.get("id")]=!0;for(var c=l.getNeighbors("target").filter((function(e){return t.indexOf(e)>-1})),u=0;u<c.length;u++){var h=c[u];i[h.get("id")]||0===i[h.get("id")]?n[h.get("id")]&&(r[l.get("id")]=Math.min(r[l.get("id")],i[h.get("id")])):(s(h),r[l.get("id")]=Math.min(r[l.get("id")],r[h.get("id")]))}if(r[l.get("id")]===i[l.get("id")]){for(var d=[];e.length>0;){var p=e.pop();if(n[p.get("id")]=!1,d.push(p),p===l)break}d.length>0&&o.push(d)}},l=0,c=t;l<c.length;l++){var u=c[l];i[u.get("id")]||0===i[u.get("id")]||s(u)}return o}function Xl(t,e){var n=void 0===e?t.get("directed"):e,i=t.getNodes();return n?Yl(i):function(t){for(var e=[],n={},i=[],r=function(t){i.push(t),n[t.get("id")]=!0;for(var e=t.getNeighbors(),o=0;o<e.length;++o){var a=e[o];n[a.get("id")]||r(a)}},o=0;o<t.length;o++){var a=t[o];if(!n[a.get("id")]){r(a);for(var s=[];i.length>0;)s.push(i.pop());e.push(s)}}return e}(i)}var ql=function(t,e,n){var i,r,o;void 0===n&&(n=!0);for(var a=[],s=0,l=Xl(t,!1);s<l.length;s++){var c=l[s];if(c.length)for(var u=c[0],h=u.get("id"),d=[u],p=((i={})[h]=u,i),f=((r={})[h]=new Set,r);d.length>0;)for(var g=d.pop(),m=g.get("id"),v=g.getNeighbors(),y=0;y<v.length;y+=1){var b=v[y],x=b.get("id");if(x===m)a.push(((o={})[b.getID()]=g,o));else if(x in f){if(!f[m].has(b)){for(var w=!0,_=[b,g],C=p[m];f[x].size&&!f[x].has(C)&&(_.push(C),C!==p[C.getID()]);)C=p[C.getID()];if(_.push(C),e&&n?(w=!1,_.findIndex((function(t){return e.indexOf(t.get("id"))>-1}))>-1&&(w=!0)):e&&!n&&_.findIndex((function(t){return e.indexOf(t.get("id"))>-1}))>-1&&(w=!1),w){for(var A={},I=1;I<_.length;I+=1)A[_[I-1].getID()]=_[I];_.length&&(A[_[_.length-1].getID()]=_[0]),a.push(A)}f[x].add(g)}}else p[x]=g,d.push(b),f[x]=new Set([g])}}return a},Kl=function(t,e,n){void 0===n&&(n=!0);for(var i=[],r=new Set,o=[],a=[],s={},l={},c=function(t,l,u){var h=!1;if(e&&!1===n&&e.indexOf(t.get("id"))>-1)return h;i.push(t),r.add(t);for(var d=u[t.getID()],p=0;p<d.length;p+=1)if((m=s[d[p]])===l){for(var f={},g=1;g<i.length;g+=1)f[i[g-1].getID()]=i[g];i.length&&(f[i[i.length-1].getID()]=i[0]),a.push(f),h=!0}else r.has(m)||c(m,l,u)&&(h=!0);if(h)!function(t){for(var e=[t];e.length>0;){var n=e.pop();r.has(n)&&(r.delete(n),o[n.get("id")].forEach((function(t){e.push(t)})),o[n.get("id")].clear())}}(t);else for(p=0;p<d.length;p+=1){var m=s[d[p]];o[m.get("id")].has(t)||o[m.get("id")].add(t)}return i.pop(),h},u=t.getNodes(),h=0;h<u.length;h+=1){var d=u[h],p=d.getID();l[p]=h,s[h]=d}if(e&&n)for(h=0;h<e.length;h++)p=e[h],l[u[h].getID()]=l[p],l[p]=0,s[0]=t.findById(p),s[l[u[h].getID()]]=u[h];for(var f=function(t){for(var i,r,o=1/0,s=0;s<t.length;s+=1)for(var c=t[s],u=0;u<c.length;u++){var h=l[c[u].getID()];h<o&&(o=h,r=s)}var d=t[r],p=[];for(s=0;s<d.length;s+=1){var f=d[s];p[f.getID()]=[];for(var g=0,m=f.getNeighbors("target").filter((function(t){return d.indexOf(t)>-1}));g<m.length;g++){var v=m[g];v!==f||!1===n&&e.indexOf(f.getId())>-1?p[f.getID()].push(l[v.getID()]):a.push(((i={})[f.getID()]=f,i))}}return{component:d,adjList:p,minIdx:o}},g=0;g<u.length;){var m=Yl(u.filter((function(t){return l[t.getID()]>=g}))).filter((function(t){return t.length>1}));if(0===m.length)break;var v=f(m),y=v.minIdx,b=v.adjList,x=v.component;if(!(x.length>1))break;x.forEach((function(t){o[t.get("id")]=new Set}));var w=s[y];if(e&&n&&-1===e.indexOf(w.get("id")))return a;c(w,w,b),g=y+1}return a},Ql=function(t,e,n,i){return void 0===i&&(i=!0),void 0===e&&(e=t.get("directed")),e?Kl(t,n,i):ql(t,n,i)},Jl=function(t){var e=null,n={},i={},r={},o={};t.getNodes().forEach((function(t){i[t.getID()]=t}));for(var a={enter:function(t){var o=t.current,a=t.previous;if(r[o.getID()]){e={};for(var s=o,l=a;l.getID()!==o.getID();)e[s.getID()]=l,s=l,l=n[l.getID()];e[s.getID()]=l}else r[o.getID()]=o,delete i[o.getID()],n[o.getID()]=a},leave:function(t){var e=t.current;o[e.getID()]=e,delete r[e.getID()]},allowTraversal:function(t){var n=t.next;return!e&&!o[n.getID()]}};Object.keys(i).length;)Wl(t,Object.keys(i)[0],a);return e},$l=function(t,e,n,i){var r=t.getNodes(),o=[],a={},s={},l={};r.forEach((function(t,n){var i=t.getID();o.push(i),s[i]=1/0,i===e&&(s[i]=0)}));for(var c=r.length,u=function(t){var e=function(t,e,n){for(var i,r=1/0,o=0;o<e.length;o++){var a=e[o].get("id");!n[a]&&t[a]<=r&&(r=t[a],i=e[o])}return i}(s,r,a),o=e.get("id");if(a[o]=!0,s[o]===1/0)return"continue";(n?e.getOutEdges():e.getEdges()).forEach((function(t){var n=t.getTarget().getID(),r=t.getSource().getID(),a=n===o?r:n,c=i&&t.getModel()[i]?t.getModel()[i]:1;s[a]>s[e.get("id")]+c&&(s[a]=s[e.get("id")]+c,l[a]=e.get("id"))}))},h=0;h<c;h++)u();var d={};for(var p in s){d[p]=[p];for(var f=l[p];void 0!==f;)d[p].unshift(f),f=l[f]}return{length:s,path:d}},tc=function(t,e,n,i,r){Object(ut.isString)(e)&&(e=t.findById(e)),Object(ut.isString)(n)&&(n=t.findById(n));var o=$l(t,e.get("id"),i,r),a=o.length,s=o.path;return{length:a[n.get("id")],path:s[n.get("id")]}},ec=function(t,e,n,i){var r;if(Object(ut.isString)(e)&&(e=t.findById(e)),Object(ut.isString)(n)&&(n=t.findById(n)),void 0===i&&(i=t.get("directed")),e===n)return[[e.get("id")]];var o=[e],a=((r={})[e.get("id")]=!0,r),s=[],l=[],c=i?e.getNeighbors("target"):e.getNeighbors();for(s.push(c);o.length>0&&s.length>0;){var u=s[s.length-1];if(u.length){var h=u.shift();if(h&&(o.push(h),a[h.get("id")]=!0,c=i?h.getNeighbors("target"):h.getNeighbors(),s.push(c.filter((function(t){return!a[t.get("id")]})))),o[o.length-1]===n){var d=o.map((function(t){return t.get("id")}));l.push(d),p=o.pop(),a[p.get("id")]=!1,s.pop()}}else{var p=o.pop();a[p.get("id")]=!1,s.pop()}}return l},nc=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e<n.length;e++){var i=n[e];this.parent[i]=i}}return t.prototype.find=function(t){for(;this.parent[t]!==t;)t=this.parent[t];return t},t.prototype.union=function(t,e){var n=this.find(t),i=this.find(e);n!==i&&(n<i?(this.parent[e]!==e&&this.union(this.parent[e],t),this.parent[e]=this.parent[t]):(this.parent[t]!==t&&this.union(this.parent[t],e),this.parent[t]=this.parent[e]))},t.prototype.connected=function(t,e){return this.find(t)===this.find(e)},t}(),ic=function(t,e){return t-e},rc=function(){function t(t){void 0===t&&(t=ic),this.compareFn=t,this.list=[]}return t.prototype.getLeft=function(t){return 2*t+1},t.prototype.getRight=function(t){return 2*t+2},t.prototype.getParent=function(t){return 0===t?null:Math.floor((t-1)/2)},t.prototype.isEmpty=function(){return this.list.length<=0},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},t.prototype.delMin=function(){var t=this.top(),e=this.list.pop();return this.list.length>0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,i=this.getLeft(t),r=this.getRight(t),o=this.list.length;null!==i&&i<o&&this.compareFn(this.list[n],this.list[i])>0?n=i:null!==r&&r<o&&this.compareFn(this.list[n],this.list[r])>0&&(n=r),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))},t}(),oc=function(t,e){var n=[],i=t.getNodes();if(0===i.length)return n;var r=i[0],o=new Set;o.add(r);var a=new rc((function(t,n){return e?t.getModel()[e]-n.getModel()[e]:0}));for(r.getEdges().forEach((function(t){a.insert(t)}));!a.isEmpty();){var s=a.delMin(),l=s.getSource(),c=s.getTarget();o.has(l)&&o.has(c)||(n.push(s),o.has(l)||(o.add(l),l.getEdges().forEach((function(t){a.insert(t)}))),o.has(c)||(o.add(c),c.getEdges().forEach((function(t){a.insert(t)}))))}return n},ac=function(t,e){var n=[];if(0===t.getNodes().length)return n;var i=t.getEdges().map((function(t){return t}));e&&i.sort((function(t,n){return t.getModel()[e]-n.getModel()[e]}));for(var r=new nc(t.getNodes().map((function(t){return t.get("id")})));i.length>0;){var o=i.shift(),a=o.getSource().get("id"),s=o.getTarget().get("id");r.connected(a,s)||(n.push(o),r.union(a,s))}return n};function sc(t,e,n){return n?{prim:oc,kruskal:ac}[n](t,e):ac(t,e)}var lc=function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var i,r=1,o=0,a=1e3,s=t.getNodes(),l=s.length,c={},u={},h=0;h<l;++h)c[d=(v=s[h]).get("id")]=1/l,u[d]=1/l;for(;a>0&&r>e;){for(o=0,h=0;h<l;++h){var d=(v=s[h]).get("id");if(i=0,0===t.getNodeDegree(v,"in"))c[d]=0;else{for(var p=v.getNeighbors("source"),f=0;f<p.length;++f){var g=p[f],m=t.getNodeDegree(g,"out");m>0&&(i+=u[g.get("id")]/m)}c[d]=n*i,o+=c[d]}}for(o=(1-o)/l,r=0,h=0;h<l;++h){var v;i=c[d=(v=s[h]).get("id")]+o,r+=Math.abs(i-u[d]),u[d]=i}a-=1}return u},cc=Ma.registerNode,uc=Ma.registerEdge,hc=Ma.registerCombo,dc=je.registerBehavior,pc=ho.registerLayout,fc=Hl.Minimap,gc=Hl.Grid,mc=Hl.Bundling,vc=Hl.Menu,yc=Hl.Fisheye,bc=Hl.ToolBar,xc=Hl.Tooltip,wc=Hl.TimeBar,_c=Hl.ImageMinimap,Cc=Hl.EdgeFilterLens;e.default={version:h.a,Graph:Ho,TreeGraph:Zo,Util:Ea,registerNode:Ma.registerNode,registerEdge:Ma.registerEdge,registerCombo:Ma.registerCombo,registerBehavior:je.registerBehavior,registerLayout:ho.registerLayout,Layout:ho,Global:J,Minimap:Hl.Minimap,Grid:Hl.Grid,Bundling:Hl.Bundling,Menu:Hl.Menu,ToolBar:Hl.ToolBar,Tooltip:Hl.Tooltip,TimeBar:wc,Fisheye:yc,ImageMinimap:_c,EdgeFilterLens:Cc,Algorithm:c,Arrow:{triangle:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=15),void 0===n&&(n=0);var i=2*n;return"M "+i+",0 L "+(i+e)+",-"+t/2+" L "+(i+e)+","+t/2+" Z"},vee:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=20),void 0===n&&(n=0);var i=2*n;return"M "+i+",0 L "+(i+e)+",-"+t/2+"\n        L "+(i+2*e/3)+",0 L "+(i+e)+","+t/2+" Z"},circle:function(t,e){return void 0===t&&(t=5),void 0===e&&(e=0),"M "+2*e+", 0\n            a "+t+","+t+" 0 1,0 "+2*t+",0\n            a "+t+","+t+" 0 1,0 "+2*-t+",0"},rect:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=10),void 0===n&&(n=0);var i=2*n;return"M "+i+","+-t/2+" \n        L "+(i+e)+","+-t/2+" \n        L "+(i+e)+","+t/2+" \n        L "+i+","+t/2+" Z"},diamond:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=15),void 0===n&&(n=0);var i=2*n;return"M "+i+",0 \n        L "+(i+e/2)+","+-t/2+" \n        L "+(i+e)+",0 \n        L "+(i+e/2)+","+t/2+" Z"},triangleRect:function(t,e,n,i,r,o){void 0===t&&(t=15),void 0===e&&(e=15),void 0===n&&(n=15),void 0===i&&(i=3),void 0===r&&(r=5),void 0===o&&(o=0);var a=2*o,s=a+e+r;return"M "+a+",0 L "+(a+e)+",-"+t/2+" L "+(a+e)+","+t/2+" Z\n            M "+s+", -"+n/2+"\n            L "+(s+i)+" -"+n/2+"\n            L "+(s+i)+" "+n/2+"\n            L "+s+" "+n/2+"\n            Z"}},Marker:Sa}}]).default}))},"31b4":function(t,e,n){t.exports=n.p+"assets/img/statisticHost.63d0e272.png"},"3219f":function(t,e,n){},3280:function(t,e,n){"use strict";var i=n("ebb5"),r=n("2ba4"),o=n("e58c"),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("lastIndexOf",(function(t){var e=arguments.length;return r(o,a(this),e>1?[t,arguments[1]]:[t])}))},"32ab":function(t,e,n){"use strict";n.r(e),n.d(e,"CSS3DObject",(function(){return s})),n.d(e,"CSS3DSprite",(function(){return l})),n.d(e,"CSS3DRenderer",(function(){return h}));var i=n("5a89");const r=new i["Vector3"],o=new i["Quaternion"],a=new i["Vector3"];class s extends i["Object3D"]{constructor(t=document.createElement("div")){super(),this.element=t,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.addEventListener("removed",(function(){this.traverse((function(t){t.element instanceof Element&&null!==t.element.parentNode&&t.element.parentNode.removeChild(t.element)}))}))}copy(t,e){return super.copy(t,e),this.element=t.element.cloneNode(!0),this}}s.prototype.isCSS3DObject=!0;class l extends s{constructor(t){super(t),this.rotation2D=0}copy(t,e){return super.copy(t,e),this.rotation2D=t.rotation2D,this}}l.prototype.isCSS3DSprite=!0;const c=new i["Matrix4"],u=new i["Matrix4"];class h{constructor(t={}){const e=this;let n,i,s,l;const h={camera:{fov:0,style:""},objects:new WeakMap},d=void 0!==t.element?t.element:document.createElement("div");d.style.overflow="hidden",this.domElement=d;const p=document.createElement("div");function f(t){return Math.abs(t)<1e-10?0:t}function g(t){const e=t.elements;return"matrix3d("+f(e[0])+","+f(-e[1])+","+f(e[2])+","+f(e[3])+","+f(e[4])+","+f(-e[5])+","+f(e[6])+","+f(e[7])+","+f(e[8])+","+f(-e[9])+","+f(e[10])+","+f(e[11])+","+f(e[12])+","+f(-e[13])+","+f(e[14])+","+f(e[15])+")"}function m(t){const e=t.elements,n="matrix3d("+f(e[0])+","+f(e[1])+","+f(e[2])+","+f(e[3])+","+f(-e[4])+","+f(-e[5])+","+f(-e[6])+","+f(-e[7])+","+f(e[8])+","+f(e[9])+","+f(e[10])+","+f(e[11])+","+f(e[12])+","+f(e[13])+","+f(e[14])+","+f(e[15])+")";return"translate(-50%,-50%)"+n}function v(t,n,i,s){if(t.isCSS3DObject){let s;t.onBeforeRender(e,n,i),t.isCSS3DSprite?(c.copy(i.matrixWorldInverse),c.transpose(),0!==t.rotation2D&&c.multiply(u.makeRotationZ(t.rotation2D)),t.matrixWorld.decompose(r,o,a),c.setPosition(r),c.scale(a),c.elements[3]=0,c.elements[7]=0,c.elements[11]=0,c.elements[15]=1,s=m(c)):s=m(t.matrixWorld);const l=t.element,d=h.objects.get(t);if(void 0===d||d.style!==s){l.style.transform=s;const e={style:s};h.objects.set(t,e)}l.style.display=t.visible?"":"none",l.parentNode!==p&&p.appendChild(l),t.onAfterRender(e,n,i)}for(let e=0,r=t.children.length;e<r;e++)v(t.children[e],n,i,s)}p.style.transformStyle="preserve-3d",p.style.pointerEvents="none",d.appendChild(p),this.getSize=function(){return{width:n,height:i}},this.render=function(t,e){const n=e.projectionMatrix.elements[5]*l;let i,r;h.camera.fov!==n&&(d.style.perspective=e.isPerspectiveCamera?n+"px":"",h.camera.fov=n),!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),e.isOrthographicCamera&&(i=-(e.right+e.left)/2,r=(e.top+e.bottom)/2);const o=e.isOrthographicCamera?"scale("+n+")translate("+f(i)+"px,"+f(r)+"px)"+g(e.matrixWorldInverse):"translateZ("+n+"px)"+g(e.matrixWorldInverse),a=o+"translate("+s+"px,"+l+"px)";h.camera.style!==a&&(p.style.transform=a,h.camera.style=a),v(t,t,e,o)},this.setSize=function(t,e){n=t,i=e,s=n/2,l=i/2,d.style.width=t+"px",d.style.height=e+"px",p.style.width=t+"px",p.style.height=e+"px"}}}},"32d9":function(t,e,n){"use strict";n.r(e);var i=n("5a89"),r=n("e9d2"),o=n("360d"),a=n("1b53");class s extends a["Pass"]{constructor(t,e){super(),this.scene=t,this.camera=e,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(t,e,n){const i=t.getContext(),r=t.state;let o,a;r.buffers.color.setMask(!1),r.buffers.depth.setMask(!1),r.buffers.color.setLocked(!0),r.buffers.depth.setLocked(!0),this.inverse?(o=0,a=1):(o=1,a=0),r.buffers.stencil.setTest(!0),r.buffers.stencil.setOp(i.REPLACE,i.REPLACE,i.REPLACE),r.buffers.stencil.setFunc(i.ALWAYS,o,4294967295),r.buffers.stencil.setClear(a),r.buffers.stencil.setLocked(!0),t.setRenderTarget(n),this.clear&&t.clear(),t.render(this.scene,this.camera),t.setRenderTarget(e),this.clear&&t.clear(),t.render(this.scene,this.camera),r.buffers.color.setLocked(!1),r.buffers.depth.setLocked(!1),r.buffers.stencil.setLocked(!1),r.buffers.stencil.setFunc(i.EQUAL,1,4294967295),r.buffers.stencil.setOp(i.KEEP,i.KEEP,i.KEEP),r.buffers.stencil.setLocked(!0)}}class l extends a["Pass"]{constructor(){super(),this.needsSwap=!1}render(t){t.state.buffers.stencil.setLocked(!1),t.state.buffers.stencil.setTest(!1)}}n.d(e,"EffectComposer",(function(){return c})),n.d(e,"Pass",(function(){return u})),n.d(e,"FullScreenQuad",(function(){return p}));class c{constructor(t,e){if(this.renderer=t,void 0===e){const n={minFilter:i["LinearFilter"],magFilter:i["LinearFilter"],format:i["RGBAFormat"]},r=t.getSize(new i["Vector2"]);this._pixelRatio=t.getPixelRatio(),this._width=r.width,this._height=r.height,e=new i["WebGLRenderTarget"](this._width*this._pixelRatio,this._height*this._pixelRatio,n),e.texture.name="EffectComposer.rt1"}else this._pixelRatio=1,this._width=e.width,this._height=e.height;this.renderTarget1=e,this.renderTarget2=e.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],void 0===r["CopyShader"]&&console.error("THREE.EffectComposer relies on CopyShader"),void 0===o["ShaderPass"]&&console.error("THREE.EffectComposer relies on ShaderPass"),this.copyPass=new o["ShaderPass"](r["CopyShader"]),this.clock=new i["Clock"]}swapBuffers(){const t=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=t}addPass(t){this.passes.push(t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(t,e){this.passes.splice(e,0,t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(t){const e=this.passes.indexOf(t);-1!==e&&this.passes.splice(e,1)}isLastEnabledPass(t){for(let e=t+1;e<this.passes.length;e++)if(this.passes[e].enabled)return!1;return!0}render(t){void 0===t&&(t=this.clock.getDelta());const e=this.renderer.getRenderTarget();let n=!1;for(let i=0,r=this.passes.length;i<r;i++){const e=this.passes[i];if(!1!==e.enabled){if(e.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(i),e.render(this.renderer,this.writeBuffer,this.readBuffer,t,n),e.needsSwap){if(n){const e=this.renderer.getContext(),n=this.renderer.state.buffers.stencil;n.setFunc(e.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,t),n.setFunc(e.EQUAL,1,4294967295)}this.swapBuffers()}void 0!==s&&(e instanceof s?n=!0:e instanceof l&&(n=!1))}}this.renderer.setRenderTarget(e)}reset(t){if(void 0===t){const e=this.renderer.getSize(new i["Vector2"]);this._pixelRatio=this.renderer.getPixelRatio(),this._width=e.width,this._height=e.height,t=this.renderTarget1.clone(),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=t,this.renderTarget2=t.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(t,e){this._width=t,this._height=e;const n=this._width*this._pixelRatio,i=this._height*this._pixelRatio;this.renderTarget1.setSize(n,i),this.renderTarget2.setSize(n,i);for(let r=0;r<this.passes.length;r++)this.passes[r].setSize(n,i)}setPixelRatio(t){this._pixelRatio=t,this.setSize(this._width,this._height)}}class u{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const h=new i["OrthographicCamera"](-1,1,1,-1,0,1),d=new i["BufferGeometry"];d.setAttribute("position",new i["Float32BufferAttribute"]([-1,3,0,-1,-1,0,3,-1,0],3)),d.setAttribute("uv",new i["Float32BufferAttribute"]([0,2,0,0,2,0],2));class p{constructor(t){this._mesh=new i["Mesh"](d,t)}dispose(){this._mesh.geometry.dispose()}render(t){t.render(this._mesh,h)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}}},3318:function(t,e,n){"use strict";var i=n("0079"),r=n.n(i);r.a},"33e8":function(t,e,n){"use strict";const i=Object.create(null);i["open"]="0",i["close"]="1",i["ping"]="2",i["pong"]="3",i["message"]="4",i["upgrade"]="5",i["noop"]="6";const r=Object.create(null);Object.keys(i).forEach(t=>{r[i[t]]=t});const o={type:"error",data:"parser error"},a="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),s="function"===typeof ArrayBuffer,l=t=>{return"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},c=({type:t,data:e},n,r)=>{return a&&e instanceof Blob?n?r(e):u(e,r):s&&(e instanceof ArrayBuffer||l(e))?n?r(e):u(new Blob([e]),r):r(i[t]+(e||""))},u=(t,e)=>{const n=new FileReader;return n.onload=function(){const t=n.result.split(",")[1];e("b"+(t||""))},n.readAsDataURL(t)};var h=c;const d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let A=0;A<d.length;A++)p[d.charCodeAt(A)]=A;const f=t=>{let e,n,i,r,o,a=.75*t.length,s=t.length,l=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);const c=new ArrayBuffer(a),u=new Uint8Array(c);for(e=0;e<s;e+=4)n=p[t.charCodeAt(e)],i=p[t.charCodeAt(e+1)],r=p[t.charCodeAt(e+2)],o=p[t.charCodeAt(e+3)],u[l++]=n<<2|i>>4,u[l++]=(15&i)<<4|r>>2,u[l++]=(3&r)<<6|63&o;return c},g="function"===typeof ArrayBuffer,m=(t,e)=>{if("string"!==typeof t)return{type:"message",data:y(t,e)};const n=t.charAt(0);if("b"===n)return{type:"message",data:v(t.substring(1),e)};const i=r[n];return i?t.length>1?{type:r[n],data:t.substring(1)}:{type:r[n]}:o},v=(t,e)=>{if(g){const n=f(t);return y(n,e)}return{base64:!0,data:t}},y=(t,e)=>{switch(e){case"blob":return t instanceof ArrayBuffer?new Blob([t]):t;case"arraybuffer":default:return t}};var b=m;n.d(e,"e",(function(){return C})),n.d(e,"d",(function(){return w})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return h})),n.d(e,"a",(function(){return b}));const x=String.fromCharCode(30),w=(t,e)=>{const n=t.length,i=new Array(n);let r=0;t.forEach((t,o)=>{h(t,!1,t=>{i[o]=t,++r===n&&e(i.join(x))})})},_=(t,e)=>{const n=t.split(x),i=[];for(let r=0;r<n.length;r++){const t=b(n[r],e);if(i.push(t),"error"===t.type)break}return i},C=4},3480:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},"349e":function(t,e,n){!function(e,i){t.exports=i(n("a026"),n("b311"))}(0,(function(t,e){return r={},n.m=i=[function(t,e,n){"use strict";function i(t,e,n,i,r,o,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:c}}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var i=n(2),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),a(n(27));var i=a(n(21)),r=a(n(38)),o=n(39);function a(t){return t&&t.__esModule?t:{default:t}}e.default={name:"JsonViewer",components:{JsonBox:i.default},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"}},provide:function(){return{expandDepth:this.expandDepth}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},watch:{value:function(){this.onResized()}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var t=this.copyable,e=t.copyText;return{copyText:e||"copy",copiedText:t.copiedText||"copied!",timeout:t.timeout||2e3}}},mounted:function(){var t=this;this.debounceResized=(0,o.debounce)(this.debResized.bind(this),200),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new r.default(this.$refs.clip,{text:function(){return JSON.stringify(t.value,null,2)}}).on("success",(function(e){t.onCopied(e)}))},methods:{onResized:function(){this.debounceResized()},debResized:function(){var t=this;this.$nextTick((function(){t.$refs.jsonBox&&(250<=t.$refs.jsonBox.$el.clientHeight?t.expandableCode=!0:t.expandableCode=!1)}))},onCopied:function(t){var e=this;this.copied||(this.copied=!0,setTimeout((function(){e.copied=!1}),this.copyText.timeout),this.$emit("copied",t))},toggleExpandCode:function(){this.expandCode=!this.expandCode}}}},function(t,e,n){"use strict";n.r(e);var i=n(4),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=h(n(28)),o=h(n(29)),a=h(n(30)),s=h(n(31)),l=h(n(32)),c=h(n(33)),u=h(n(34));function h(t){return t&&t.__esModule?t:{default:t}}e.default={name:"JsonBox",inject:["expandDepth"],props:{value:{type:[Object,Array,String,Number,Boolean,Function],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0}},data:function(){return{expand:!0}},mounted:function(){this.expand=!(this.depth>=this.expandDepth)},methods:{toggle:function(){this.expand=!this.expand;try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(t){var e=this,n=[],h=void 0;null===this.value||void 0===this.value?h=o.default:Array.isArray(this.value)?h=c.default:"object"===i(this.value)?h=l.default:"number"==typeof this.value?h=a.default:"string"==typeof this.value?h=r.default:"boolean"==typeof this.value?h=s.default:"function"==typeof this.value&&(h=u.default);var d=this.keyName&&this.value&&(Array.isArray(this.value)||"object"===i(this.value));return d&&n.push(t("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:this.toggle}})),this.keyName&&n.push(t("span",{class:{"jv-key":!0},domProps:{innerText:this.keyName+":"}})),n.push(t(h,{class:{"jv-push":!0},props:{jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand},on:{"update:expand":function(t){e.expand=t}}})),t("div",{class:{"jv-node":!0,toggle:d}},n)}}},function(t,e,n){"use strict";n.r(e);var i=n(6),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r=/^\w+:\/\//;e.default={name:"JsonString",functional:!0,props:{jsonValue:{type:String,required:!0}},render:function(t,e){var n=e.props.jsonValue,o=void 0;return o=r.test(n)?{innerHTML:'"'+(n='<a href="'+n+'" target="_blank" style="color: #0366d6;">'+n+"</a>").toString()+'"'}:{innerText:'"'+n.toString()+'"'},t("span",{class:{"jv-item":!0,"jv-string":!0},domProps:i({},o)})}}},function(t,e,n){"use strict";n.r(e);var i=n(8),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(t,e){return t("span",{class:{"jv-item":!0,"jv-undefined":!0},domProps:{innerText:null===e.props.jsonValue?"null":"undefined"}})}}},function(t,e,n){"use strict";n.r(e);var i=n(10),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(t,e){return t("span",{class:{"jv-item":!0,"jv-number":!0},domProps:{innerText:e.props.jsonValue.toString()}})}}},function(t,e,n){"use strict";n.r(e);var i=n(12),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(t,e){return t("span",{class:{"jv-item":!0,"jv-boolean":!0},domProps:{innerText:e.props.jsonValue.toString()}})}}},function(t,e,n){"use strict";n.r(e);var i=n(14),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(21),o=(i=r)&&i.__esModule?i:{default:i};e.default={name:"JsonObject",data:function(){return{value:{}}},props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,sort:Boolean},computed:{ordered:function(){var t=this;if(!this.sort)return this.value;var e={};return Object.keys(this.value).sort().forEach((function(n){e[n]=t.value[n]})),e}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var e=this;setTimeout((function(){e.value=t}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(t){var e=[];if(this.keyName||e.push(t("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:this.toggle}})),e.push(t("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"{"}})),this.expand)for(var n in this.ordered)if(this.ordered.hasOwnProperty(n)){var i=this.ordered[n];e.push(t(o.default,{key:n,style:{display:this.expand?void 0:"none"},props:{sort:this.sort,keyName:n,depth:this.depth+1,value:i}}))}return!this.expand&&Object.keys(this.value).length&&e.push(t("span",{style:{display:this.expand?"none":void 0},class:{"jv-ellipsis":!0},on:{click:this.toggle},attrs:{title:"click to reveal object content (keys: "+Object.keys(this.ordered).join(", ")+")"},domProps:{innerText:"..."}})),e.push(t("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"}"}})),t("span",e)}}},function(t,e,n){"use strict";n.r(e);var i=n(16),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(21),o=(i=r)&&i.__esModule?i:{default:i};e.default={name:"JsonArray",data:function(){return{value:[]}},props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean},computed:{ordered:function(){var t=this.value;return this.sort?t.sort():t}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t,e){var n=this,i=1<arguments.length&&void 0!==e?e:0;0===i&&(this.value=[]),setTimeout((function(){t.length>i&&(n.value.push(t[i]),n.setValue(t,i+1))}),0)},toggle:function(){this.$emit("update:expand",!this.expand);try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(t){var e=this,n=[];return this.keyName||n.push(t("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:this.toggle}})),n.push(t("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"["}})),this.expand&&this.ordered.forEach((function(i,r){n.push(t(o.default,{key:r,style:{display:e.expand?void 0:"none"},props:{sort:e.sort,depth:e.depth+1,value:i}}))})),!this.expand&&this.value.length&&n.push(t("span",{style:{display:void 0},class:{"jv-ellipsis":!0},on:{click:this.toggle},attrs:{title:"click to reveal "+this.value.length+" hidden items"},domProps:{innerText:"..."}})),n.push(t("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"]"}})),t("span",n)}}},function(t,e,n){"use strict";n.r(e);var i=n(18),r=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(t,e){return t("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.props.jsonValue.toString()},domProps:{innerHTML:"&lt;function&gt;"}})}}},function(t,e,n){var i=n(36);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0};n(24)(i,r),i.locals&&(t.exports=i.locals)},function(t,e,n){var i=n(41);"string"==typeof i&&(i=[[t.i,i,""]]);var r={hmr:!0,transform:void 0};n(24)(i,r),i.locals&&(t.exports=i.locals)},function(t,e,n){"use strict";n.r(e);var i=n(3);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n(35);var o=n(0),a=Object(o.a)(i.default,void 0,void 0,!1,null,null,null);a.options.__file="lib/json-box.vue",e.default=a.exports},function(t,e,n){"use strict";function i(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.jvClass},[t.copyable?n("div",{staticClass:"jv-tooltip"},[n("span",{ref:"clip",staticClass:"jv-button",class:{copied:t.copied}},[t._t("copy",[t._v("\n        "+t._s(t.copied?t.copyText.copiedText:t.copyText.copyText)+"\n      ")],{copied:t.copied})],2)]):t._e(),t._v(" "),n("div",{staticClass:"jv-code",class:{open:t.expandCode,boxed:t.boxed}},[n("json-box",{ref:"jsonBox",attrs:{value:t.value,sort:t.sort}})],1),t._v(" "),t.expandableCode&&t.boxed?n("div",{staticClass:"jv-more",on:{click:t.toggleExpandCode}},[n("span",{staticClass:"jv-toggle",class:{open:!!t.expandCode}})]):t._e()])}var r=[];i._withStripped=!0,n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}))},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}(i),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot).concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2],"{").concat(n,"}"):n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(var a=0;a<t.length;a++){var s=t[a];null!=s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="(".concat(s[2],") and (").concat(n,")")),e.push(s))}},e}},function(t,e,n){var i,r,o,a={},s=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),l=(o={},function(t){if(void 0===o[t]){var e=function(t){return document.querySelector(t)}.call(this,t);if(e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}o[t]=e}return o[t]}),c=null,u=0,h=[],d=n(37);function p(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=a[i.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(b(i.parts[o],e))}else{var s=[];for(o=0;o<i.parts.length;o++)s.push(b(i.parts[o],e));a[i.id]={id:i.id,refs:1,parts:s}}}}function f(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=e.base?o[0]+e.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}function g(t,e){var n=l(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=h[h.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),h.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=l(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,r)}}function m(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=h.indexOf(t);0<=e&&h.splice(e,1)}function v(t){var e=document.createElement("style");return t.attrs.type="text/css",y(e,t.attrs),g(t,e),e}function y(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function b(t,e){var n,i,r,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var a=u++;n=c=c||v(e),i=_.bind(null,n,a,!1),r=_.bind(null,n,a,!0)}else r=t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",y(e,t.attrs),g(t,e),e}(e),i=function(t,e,n){var i=n.css,r=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||o)&&(i=d(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=t.href;t.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,e),function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(e),i=function(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),function(){m(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=f(t,e);return p(n,e),function(t){for(var i=[],r=0;r<n.length;r++){var o=n[r];(s=a[o.id]).refs--,i.push(s)}for(t&&p(f(t,e),e),r=0;r<i.length;r++){var s;if(0===(s=i[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete a[s.id]}}}};var x,w=(x=[],function(t,e){return x[t]=e,x.filter(Boolean).join("\n")});function _(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=w(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=n(26),o=(i=r)&&i.__esModule?i:{default:i};e.default=Object.assign(o.default,{install:function(t){t.component("JsonViewer",o.default)}})},function(t,e,n){"use strict";n.r(e);var i=n(22),r=n(1);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n(40);var a=n(0),s=Object(a.a)(r.default,i.a,i.b,!1,null,null,null);s.options.__file="lib/json-viewer.vue",e.default=s.exports},function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e);var i=n(5);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o=n(0),a=Object(o.a)(i.default,void 0,void 0,!1,null,null,null);a.options.__file="lib/types/json-string.vue",e.default=a.exports},function(t,e,n){"use strict";n.r(e);var i=n(7);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o=n(0),a=Object(o.a)(i.default,void 0,void 0,!1,null,null,null);a.options.__file="lib/types/json-undefined.vue",e.default=a.exports},function(t,e,n){"use strict";n.r(e);var i=n(9);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o=n(0),a=Object(o.a)(i.default,void 0,void 0,!1,null,null,null);a.options.__file="lib/types/json-number.vue",e.default=a.exports},function(t,e,n){"use strict";n.r(e);var i=n(11);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o=n(0),a=Object(o.a)(i.default,void 0,void 0,!1,null,null,null);a.options.__file="lib/types/json-boolean.vue",e.default=a.exports},function(t,e,n){"use strict";n.r(e);var i=n(13);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o=n(0),a=Object(o.a)(i.default,void 0,void 0,!1,null,null,null);a.options.__file="lib/types/json-object.vue",e.default=a.exports},function(t,e,n){"use strict";n.r(e);var i=n(15);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o=n(0),a=Object(o.a)(i.default,void 0,void 0,!1,null,null,null);a.options.__file="lib/types/json-array.vue",e.default=a.exports},function(t,e,n){"use strict";n.r(e);var i=n(17);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var o=n(0),a=Object(o.a)(i.default,void 0,void 0,!1,null,null,null);a.options.__file="lib/types/json-function.vue",e.default=a.exports},function(t,e,n){"use strict";var i=n(19);n.n(i).a},function(t,e,n){(t.exports=n(23)(!1)).push([t.i,".jv-node{position:relative}.jv-node:after{content:','}.jv-node:last-of-type:after{content:''}.jv-node.toggle{margin-left:13px !important}.jv-node .jv-node{margin-left:25px}\n",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,i=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var r,o=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?t:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=function(t,e){var n=Date.now(),i=void 0;return function(){for(var r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];Date.now()-n<e&&i&&clearTimeout(i),i=setTimeout((function(){t.apply(void 0,o)}),e),n=Date.now()}}},function(t,e,n){"use strict";var i=n(20);n.n(i).a},function(t,e,n){e=t.exports=n(23)(!1);var i=n(42)(n(43));e.push([t.i,".jv-container{box-sizing:border-box;position:relative}.jv-container.boxed{border:1px solid #eee;border-radius:6px}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,0.15);border-color:transparent;position:relative}.jv-container.jv-light{background:#fff;white-space:nowrap;color:#525252;font-size:14px;font-family:Consolas, Menlo, Courier, monospace}.jv-container.jv-light .jv-ellipsis{color:#999;background-color:#eee;display:inline-block;line-height:0.9;font-size:0.9em;padding:0px 4px 2px 4px;margin:0 4px;border-radius:3px;vertical-align:2px;cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.jv-container.jv-light .jv-button{color:#49b3ff}.jv-container.jv-light .jv-key{color:#111111;margin-right:4px}.jv-container.jv-light .jv-item.jv-array{color:#111111}.jv-container.jv-light .jv-item.jv-boolean{color:#fc1e70}.jv-container.jv-light .jv-item.jv-function{color:#067bca}.jv-container.jv-light .jv-item.jv-number{color:#fc1e70}.jv-container.jv-light .jv-item.jv-object{color:#111111}.jv-container.jv-light .jv-item.jv-undefined{color:#e08331}.jv-container.jv-light .jv-item.jv-string{color:#42b983;word-break:break-word;white-space:normal}.jv-container.jv-light .jv-code .jv-toggle:before{padding:0px 2px;border-radius:2px}.jv-container.jv-light .jv-code .jv-toggle:hover:before{background:#eee}.jv-container .jv-code{overflow:hidden;padding:20px}.jv-container .jv-code.boxed{max-height:300px}.jv-container .jv-code.open{max-height:initial !important;overflow:visible;overflow-x:auto;padding-bottom:45px}.jv-container .jv-toggle{background-image:url("+i+');background-repeat:no-repeat;background-size:contain;background-position:center center;cursor:pointer;width:10px;height:10px;margin-right:2px;display:inline-block;-webkit-transition:-webkit-transform 0.1s;transition:-webkit-transform 0.1s;transition:transform 0.1s;transition:transform 0.1s, -webkit-transform 0.1s}.jv-container .jv-toggle.open{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more{position:absolute;z-index:1;bottom:0;left:0;right:0;height:40px;width:100%;text-align:center;cursor:pointer}.jv-container .jv-more .jv-toggle{position:relative;top:40%;z-index:2;color:#888;-webkit-transition:all 0.1s;transition:all 0.1s;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more .jv-toggle.open{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.jv-container .jv-more:after{content:"";width:100%;height:100%;position:absolute;bottom:0;left:0;z-index:1;background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);-webkit-transition:all 0.1s;transition:all 0.1s}.jv-container .jv-more:hover .jv-toggle{top:50%;color:#111}.jv-container .jv-more:hover:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.jv-container .jv-button{position:relative;cursor:pointer;display:inline-block;padding:5px;z-index:5}.jv-container .jv-button.copied{opacity:0.4;cursor:default}.jv-container .jv-tooltip{position:absolute;right:15px;top:10px}.jv-container .j-icon{font-size:12px}\n',""])},function(t,e,n){"use strict";t.exports=function(t,e){return"string"!=typeof(t=t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)||e?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIAo8cG9seWdvbiBwb2ludHM9IjAsMCA4LDggMCwxNiIKc3R5bGU9ImZpbGw6IzY2NjtzdHJva2U6cHVycGxlO3N0cm9rZS13aWR0aDowIiAvPgo8L3N2Zz4="}],n.c=r,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=25);function n(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var i,r}))},"34ad":function(t,e,n){"use strict";n.r(e),n.d(e,"GLTFLoader",(function(){return r}));var i=n("5a89");class r extends i["Loader"]{constructor(t){super(t),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register((function(t){return new c(t)})),this.register((function(t){return new g(t)})),this.register((function(t){return new m(t)})),this.register((function(t){return new u(t)})),this.register((function(t){return new h(t)})),this.register((function(t){return new d(t)})),this.register((function(t){return new p(t)})),this.register((function(t){return new f(t)})),this.register((function(t){return new s(t)})),this.register((function(t){return new v(t)}))}load(t,e,n,r){const o=this;let a;a=""!==this.resourcePath?this.resourcePath:""!==this.path?this.path:i["LoaderUtils"].extractUrlBase(t),this.manager.itemStart(t);const s=function(e){r?r(e):console.error(e),o.manager.itemError(t),o.manager.itemEnd(t)},l=new i["FileLoader"](this.manager);l.setPath(this.path),l.setResponseType("arraybuffer"),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(t,(function(n){try{o.parse(n,a,(function(n){e(n),o.manager.itemEnd(t)}),s)}catch(i){s(i)}}),n,s)}setDRACOLoader(t){return this.dracoLoader=t,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(t){return this.ktx2Loader=t,this}setMeshoptDecoder(t){return this.meshoptDecoder=t,this}register(t){return-1===this.pluginCallbacks.indexOf(t)&&this.pluginCallbacks.push(t),this}unregister(t){return-1!==this.pluginCallbacks.indexOf(t)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(t),1),this}parse(t,e,n,r){let o;const s={},c={};if("string"===typeof t)o=t;else{const e=i["LoaderUtils"].decodeText(new Uint8Array(t,0,4));if(e===y){try{s[a.KHR_BINARY_GLTF]=new w(t)}catch(d){return void(r&&r(d))}o=s[a.KHR_BINARY_GLTF].content}else o=i["LoaderUtils"].decodeText(new Uint8Array(t))}const u=JSON.parse(o);if(void 0===u.asset||u.asset.version[0]<2)return void(r&&r(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.")));const h=new Y(u,{path:e||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});h.fileLoader.setRequestHeader(this.requestHeader);for(let i=0;i<this.pluginCallbacks.length;i++){const t=this.pluginCallbacks[i](h);c[t.name]=t,s[t.name]=!0}if(u.extensionsUsed)for(let i=0;i<u.extensionsUsed.length;++i){const t=u.extensionsUsed[i],e=u.extensionsRequired||[];switch(t){case a.KHR_MATERIALS_UNLIT:s[t]=new l;break;case a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:s[t]=new I;break;case a.KHR_DRACO_MESH_COMPRESSION:s[t]=new _(u,this.dracoLoader);break;case a.KHR_TEXTURE_TRANSFORM:s[t]=new C;break;case a.KHR_MESH_QUANTIZATION:s[t]=new S;break;default:e.indexOf(t)>=0&&void 0===c[t]&&console.warn('THREE.GLTFLoader: Unknown extension "'+t+'".')}}h.setExtensions(s),h.setPlugins(c),h.parse(n,r)}parseAsync(t,e){const n=this;return new Promise((function(i,r){n.parse(t,e,i,r)}))}}function o(){let t={};return{get:function(e){return t[e]},add:function(e,n){t[e]=n},remove:function(e){delete t[e]},removeAll:function(){t={}}}}const a={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:"KHR_materials_pbrSpecularGlossiness",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression"};class s{constructor(t){this.parser=t,this.name=a.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const t=this.parser,e=this.parser.json.nodes||[];for(let n=0,i=e.length;n<i;n++){const i=e[n];i.extensions&&i.extensions[this.name]&&void 0!==i.extensions[this.name].light&&t._addNodeRef(this.cache,i.extensions[this.name].light)}}_loadLight(t){const e=this.parser,n="light:"+t;let r=e.cache.get(n);if(r)return r;const o=e.json,a=o.extensions&&o.extensions[this.name]||{},s=a.lights||[],l=s[t];let c;const u=new i["Color"](16777215);void 0!==l.color&&u.fromArray(l.color);const h=void 0!==l.range?l.range:0;switch(l.type){case"directional":c=new i["DirectionalLight"](u),c.target.position.set(0,0,-1),c.add(c.target);break;case"point":c=new i["PointLight"](u),c.distance=h;break;case"spot":c=new i["SpotLight"](u),c.distance=h,l.spot=l.spot||{},l.spot.innerConeAngle=void 0!==l.spot.innerConeAngle?l.spot.innerConeAngle:0,l.spot.outerConeAngle=void 0!==l.spot.outerConeAngle?l.spot.outerConeAngle:Math.PI/4,c.angle=l.spot.outerConeAngle,c.penumbra=1-l.spot.innerConeAngle/l.spot.outerConeAngle,c.target.position.set(0,0,-1),c.add(c.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+l.type)}return c.position.set(0,0,0),c.decay=2,void 0!==l.intensity&&(c.intensity=l.intensity),c.name=e.createUniqueName(l.name||"light_"+t),r=Promise.resolve(c),e.cache.add(n,r),r}createNodeAttachment(t){const e=this,n=this.parser,i=n.json,r=i.nodes[t],o=r.extensions&&r.extensions[this.name]||{},a=o.light;return void 0===a?null:this._loadLight(a).then((function(t){return n._getNodeRef(e.cache,a,t)}))}}class l{constructor(){this.name=a.KHR_MATERIALS_UNLIT}getMaterialType(){return i["MeshBasicMaterial"]}extendParams(t,e,n){const r=[];t.color=new i["Color"](1,1,1),t.opacity=1;const o=e.pbrMetallicRoughness;if(o){if(Array.isArray(o.baseColorFactor)){const e=o.baseColorFactor;t.color.fromArray(e),t.opacity=e[3]}void 0!==o.baseColorTexture&&r.push(n.assignTexture(t,"map",o.baseColorTexture))}return Promise.all(r)}}class c{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_CLEARCOAT}getMaterialType(t){const e=this.parser,n=e.json.materials[t];return n.extensions&&n.extensions[this.name]?i["MeshPhysicalMaterial"]:null}extendMaterialParams(t,e){const n=this.parser,r=n.json.materials[t];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const o=[],a=r.extensions[this.name];if(void 0!==a.clearcoatFactor&&(e.clearcoat=a.clearcoatFactor),void 0!==a.clearcoatTexture&&o.push(n.assignTexture(e,"clearcoatMap",a.clearcoatTexture)),void 0!==a.clearcoatRoughnessFactor&&(e.clearcoatRoughness=a.clearcoatRoughnessFactor),void 0!==a.clearcoatRoughnessTexture&&o.push(n.assignTexture(e,"clearcoatRoughnessMap",a.clearcoatRoughnessTexture)),void 0!==a.clearcoatNormalTexture&&(o.push(n.assignTexture(e,"clearcoatNormalMap",a.clearcoatNormalTexture)),void 0!==a.clearcoatNormalTexture.scale)){const t=a.clearcoatNormalTexture.scale;e.clearcoatNormalScale=new i["Vector2"](t,t)}return Promise.all(o)}}class u{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_SHEEN}getMaterialType(t){const e=this.parser,n=e.json.materials[t];return n.extensions&&n.extensions[this.name]?i["MeshPhysicalMaterial"]:null}extendMaterialParams(t,e){const n=this.parser,r=n.json.materials[t];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const o=[];e.sheenColor=new i["Color"](0,0,0),e.sheenRoughness=0,e.sheen=1;const a=r.extensions[this.name];return void 0!==a.sheenColorFactor&&e.sheenColor.fromArray(a.sheenColorFactor),void 0!==a.sheenRoughnessFactor&&(e.sheenRoughness=a.sheenRoughnessFactor),void 0!==a.sheenColorTexture&&o.push(n.assignTexture(e,"sheenColorMap",a.sheenColorTexture)),void 0!==a.sheenRoughnessTexture&&o.push(n.assignTexture(e,"sheenRoughnessMap",a.sheenRoughnessTexture)),Promise.all(o)}}class h{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_TRANSMISSION}getMaterialType(t){const e=this.parser,n=e.json.materials[t];return n.extensions&&n.extensions[this.name]?i["MeshPhysicalMaterial"]:null}extendMaterialParams(t,e){const n=this.parser,i=n.json.materials[t];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],o=i.extensions[this.name];return void 0!==o.transmissionFactor&&(e.transmission=o.transmissionFactor),void 0!==o.transmissionTexture&&r.push(n.assignTexture(e,"transmissionMap",o.transmissionTexture)),Promise.all(r)}}class d{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_VOLUME}getMaterialType(t){const e=this.parser,n=e.json.materials[t];return n.extensions&&n.extensions[this.name]?i["MeshPhysicalMaterial"]:null}extendMaterialParams(t,e){const n=this.parser,r=n.json.materials[t];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const o=[],a=r.extensions[this.name];e.thickness=void 0!==a.thicknessFactor?a.thicknessFactor:0,void 0!==a.thicknessTexture&&o.push(n.assignTexture(e,"thicknessMap",a.thicknessTexture)),e.attenuationDistance=a.attenuationDistance||0;const s=a.attenuationColor||[1,1,1];return e.attenuationColor=new i["Color"](s[0],s[1],s[2]),Promise.all(o)}}class p{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_IOR}getMaterialType(t){const e=this.parser,n=e.json.materials[t];return n.extensions&&n.extensions[this.name]?i["MeshPhysicalMaterial"]:null}extendMaterialParams(t,e){const n=this.parser,i=n.json.materials[t];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=i.extensions[this.name];return e.ior=void 0!==r.ior?r.ior:1.5,Promise.resolve()}}class f{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_SPECULAR}getMaterialType(t){const e=this.parser,n=e.json.materials[t];return n.extensions&&n.extensions[this.name]?i["MeshPhysicalMaterial"]:null}extendMaterialParams(t,e){const n=this.parser,r=n.json.materials[t];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const o=[],a=r.extensions[this.name];e.specularIntensity=void 0!==a.specularFactor?a.specularFactor:1,void 0!==a.specularTexture&&o.push(n.assignTexture(e,"specularIntensityMap",a.specularTexture));const s=a.specularColorFactor||[1,1,1];return e.specularColor=new i["Color"](s[0],s[1],s[2]),void 0!==a.specularColorTexture&&o.push(n.assignTexture(e,"specularColorMap",a.specularColorTexture).then((function(t){t.encoding=i["sRGBEncoding"]}))),Promise.all(o)}}class g{constructor(t){this.parser=t,this.name=a.KHR_TEXTURE_BASISU}loadTexture(t){const e=this.parser,n=e.json,i=n.textures[t];if(!i.extensions||!i.extensions[this.name])return null;const r=i.extensions[this.name],o=n.images[r.source],a=e.options.ktx2Loader;if(!a){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return e.loadTextureImage(t,o,a)}}class m{constructor(t){this.parser=t,this.name=a.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(t){const e=this.name,n=this.parser,i=n.json,r=i.textures[t];if(!r.extensions||!r.extensions[e])return null;const o=r.extensions[e],a=i.images[o.source];let s=n.textureLoader;if(a.uri){const t=n.options.manager.getHandler(a.uri);null!==t&&(s=t)}return this.detectSupport().then((function(r){if(r)return n.loadTextureImage(t,a,s);if(i.extensionsRequired&&i.extensionsRequired.indexOf(e)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(t)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(t){const e=new Image;e.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",e.onload=e.onerror=function(){t(1===e.height)}}))),this.isSupported}}class v{constructor(t){this.name=a.EXT_MESHOPT_COMPRESSION,this.parser=t}loadBufferView(t){const e=this.parser.json,n=e.bufferViews[t];if(n.extensions&&n.extensions[this.name]){const t=n.extensions[this.name],i=this.parser.getDependency("buffer",t.buffer),r=this.parser.options.meshoptDecoder;if(!r||!r.supported){if(e.extensionsRequired&&e.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return Promise.all([i,r.ready]).then((function(e){const n=t.byteOffset||0,i=t.byteLength||0,o=t.count,a=t.byteStride,s=new ArrayBuffer(o*a),l=new Uint8Array(e[0],n,i);return r.decodeGltfBuffer(new Uint8Array(s),o,a,l,t.mode,t.filter),s}))}return null}}const y="glTF",b=12,x={JSON:1313821514,BIN:5130562};class w{constructor(t){this.name=a.KHR_BINARY_GLTF,this.content=null,this.body=null;const e=new DataView(t,0,b);if(this.header={magic:i["LoaderUtils"].decodeText(new Uint8Array(t.slice(0,4))),version:e.getUint32(4,!0),length:e.getUint32(8,!0)},this.header.magic!==y)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const n=this.header.length-b,r=new DataView(t,b);let o=0;while(o<n){const e=r.getUint32(o,!0);o+=4;const n=r.getUint32(o,!0);if(o+=4,n===x.JSON){const n=new Uint8Array(t,b+o,e);this.content=i["LoaderUtils"].decodeText(n)}else if(n===x.BIN){const n=b+o;this.body=t.slice(n,n+e)}o+=e}if(null===this.content)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class _{constructor(t,e){if(!e)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=a.KHR_DRACO_MESH_COMPRESSION,this.json=t,this.dracoLoader=e,this.dracoLoader.preload()}decodePrimitive(t,e){const n=this.json,i=this.dracoLoader,r=t.extensions[this.name].bufferView,o=t.extensions[this.name].attributes,a={},s={},l={};for(const c in o){const t=D[c]||c.toLowerCase();a[t]=o[c]}for(const c in t.attributes){const e=D[c]||c.toLowerCase();if(void 0!==o[c]){const i=n.accessors[t.attributes[c]],r=O[i.componentType];l[e]=r,s[e]=!0===i.normalized}}return e.getDependency("bufferView",r).then((function(t){return new Promise((function(e){i.decodeDracoFile(t,(function(t){for(const e in t.attributes){const n=t.attributes[e],i=s[e];void 0!==i&&(n.normalized=i)}e(t)}),a,l)}))}))}}class C{constructor(){this.name=a.KHR_TEXTURE_TRANSFORM}extendTexture(t,e){return void 0!==e.texCoord&&console.warn('THREE.GLTFLoader: Custom UV sets in "'+this.name+'" extension not yet supported.'),void 0===e.offset&&void 0===e.rotation&&void 0===e.scale?t:(t=t.clone(),void 0!==e.offset&&t.offset.fromArray(e.offset),void 0!==e.rotation&&(t.rotation=e.rotation),void 0!==e.scale&&t.repeat.fromArray(e.scale),t.needsUpdate=!0,t)}}class A extends i["MeshStandardMaterial"]{constructor(t){super(),this.isGLTFSpecularGlossinessMaterial=!0;const e=["#ifdef USE_SPECULARMAP","\tuniform sampler2D specularMap;","#endif"].join("\n"),n=["#ifdef USE_GLOSSINESSMAP","\tuniform sampler2D glossinessMap;","#endif"].join("\n"),r=["vec3 specularFactor = specular;","#ifdef USE_SPECULARMAP","\tvec4 texelSpecular = texture2D( specularMap, vUv );","\ttexelSpecular = sRGBToLinear( texelSpecular );","\t// reads channel RGB, compatible with a glTF Specular-Glossiness (RGBA) texture","\tspecularFactor *= texelSpecular.rgb;","#endif"].join("\n"),o=["float glossinessFactor = glossiness;","#ifdef USE_GLOSSINESSMAP","\tvec4 texelGlossiness = texture2D( glossinessMap, vUv );","\t// reads channel A, compatible with a glTF Specular-Glossiness (RGBA) texture","\tglossinessFactor *= texelGlossiness.a;","#endif"].join("\n"),a=["PhysicalMaterial material;","material.diffuseColor = diffuseColor.rgb * ( 1. - max( specularFactor.r, max( specularFactor.g, specularFactor.b ) ) );","vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );","float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );","material.roughness = max( 1.0 - glossinessFactor, 0.0525 ); // 0.0525 corresponds to the base mip of a 256 cubemap.","material.roughness += geometryRoughness;","material.roughness = min( material.roughness, 1.0 );","material.specularColor = specularFactor;"].join("\n"),s={specular:{value:(new i["Color"]).setHex(16777215)},glossiness:{value:1},specularMap:{value:null},glossinessMap:{value:null}};this._extraUniforms=s,this.onBeforeCompile=function(t){for(const e in s)t.uniforms[e]=s[e];t.fragmentShader=t.fragmentShader.replace("uniform float roughness;","uniform vec3 specular;").replace("uniform float metalness;","uniform float glossiness;").replace("#include <roughnessmap_pars_fragment>",e).replace("#include <metalnessmap_pars_fragment>",n).replace("#include <roughnessmap_fragment>",r).replace("#include <metalnessmap_fragment>",o).replace("#include <lights_physical_fragment>",a)},Object.defineProperties(this,{specular:{get:function(){return s.specular.value},set:function(t){s.specular.value=t}},specularMap:{get:function(){return s.specularMap.value},set:function(t){s.specularMap.value=t,t?this.defines.USE_SPECULARMAP="":delete this.defines.USE_SPECULARMAP}},glossiness:{get:function(){return s.glossiness.value},set:function(t){s.glossiness.value=t}},glossinessMap:{get:function(){return s.glossinessMap.value},set:function(t){s.glossinessMap.value=t,t?(this.defines.USE_GLOSSINESSMAP="",this.defines.USE_UV=""):(delete this.defines.USE_GLOSSINESSMAP,delete this.defines.USE_UV)}}}),delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this.setValues(t)}copy(t){return super.copy(t),this.specularMap=t.specularMap,this.specular.copy(t.specular),this.glossinessMap=t.glossinessMap,this.glossiness=t.glossiness,delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this}}class I{constructor(){this.name=a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,this.specularGlossinessParams=["color","map","lightMap","lightMapIntensity","aoMap","aoMapIntensity","emissive","emissiveIntensity","emissiveMap","bumpMap","bumpScale","normalMap","normalMapType","displacementMap","displacementScale","displacementBias","specularMap","specular","glossinessMap","glossiness","alphaMap","envMap","envMapIntensity","refractionRatio"]}getMaterialType(){return A}extendParams(t,e,n){const r=e.extensions[this.name];t.color=new i["Color"](1,1,1),t.opacity=1;const o=[];if(Array.isArray(r.diffuseFactor)){const e=r.diffuseFactor;t.color.fromArray(e),t.opacity=e[3]}if(void 0!==r.diffuseTexture&&o.push(n.assignTexture(t,"map",r.diffuseTexture)),t.emissive=new i["Color"](0,0,0),t.glossiness=void 0!==r.glossinessFactor?r.glossinessFactor:1,t.specular=new i["Color"](1,1,1),Array.isArray(r.specularFactor)&&t.specular.fromArray(r.specularFactor),void 0!==r.specularGlossinessTexture){const e=r.specularGlossinessTexture;o.push(n.assignTexture(t,"glossinessMap",e)),o.push(n.assignTexture(t,"specularMap",e))}return Promise.all(o)}createMaterial(t){const e=new A(t);return e.fog=!0,e.color=t.color,e.map=void 0===t.map?null:t.map,e.lightMap=null,e.lightMapIntensity=1,e.aoMap=void 0===t.aoMap?null:t.aoMap,e.aoMapIntensity=1,e.emissive=t.emissive,e.emissiveIntensity=1,e.emissiveMap=void 0===t.emissiveMap?null:t.emissiveMap,e.bumpMap=void 0===t.bumpMap?null:t.bumpMap,e.bumpScale=1,e.normalMap=void 0===t.normalMap?null:t.normalMap,e.normalMapType=i["TangentSpaceNormalMap"],t.normalScale&&(e.normalScale=t.normalScale),e.displacementMap=null,e.displacementScale=1,e.displacementBias=0,e.specularMap=void 0===t.specularMap?null:t.specularMap,e.specular=t.specular,e.glossinessMap=void 0===t.glossinessMap?null:t.glossinessMap,e.glossiness=t.glossiness,e.alphaMap=null,e.envMap=void 0===t.envMap?null:t.envMap,e.envMapIntensity=1,e.refractionRatio=.98,e}}class S{constructor(){this.name=a.KHR_MESH_QUANTIZATION}}class M extends i["Interpolant"]{constructor(t,e,n,i){super(t,e,n,i)}copySampleValue_(t){const e=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=t*i*3+i;for(let o=0;o!==i;o++)e[o]=n[r+o];return e}}M.prototype.beforeStart_=M.prototype.copySampleValue_,M.prototype.afterEnd_=M.prototype.copySampleValue_,M.prototype.interpolate_=function(t,e,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=2*a,l=3*a,c=i-e,u=(n-e)/c,h=u*u,d=h*u,p=t*l,f=p-l,g=-2*d+3*h,m=d-h,v=1-g,y=m-h+u;for(let b=0;b!==a;b++){const t=o[f+b+a],e=o[f+b+s]*c,n=o[p+b+a],i=o[p+b]*c;r[b]=v*t+y*e+g*n+m*i}return r};const k=new i["Quaternion"];class E extends M{interpolate_(t,e,n,i){const r=super.interpolate_(t,e,n,i);return k.fromArray(r).normalize().toArray(r),r}}const T={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},O={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},P={9728:i["NearestFilter"],9729:i["LinearFilter"],9984:i["NearestMipmapNearestFilter"],9985:i["LinearMipmapNearestFilter"],9986:i["NearestMipmapLinearFilter"],9987:i["LinearMipmapLinearFilter"]},j={33071:i["ClampToEdgeWrapping"],33648:i["MirroredRepeatWrapping"],10497:i["RepeatWrapping"]},L={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},D={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv2",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},R={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},B={CUBICSPLINE:void 0,LINEAR:i["InterpolateLinear"],STEP:i["InterpolateDiscrete"]},N={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function F(t){return void 0===t["DefaultMaterial"]&&(t["DefaultMaterial"]=new i["MeshStandardMaterial"]({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:i["FrontSide"]})),t["DefaultMaterial"]}function z(t,e,n){for(const i in n.extensions)void 0===t[i]&&(e.userData.gltfExtensions=e.userData.gltfExtensions||{},e.userData.gltfExtensions[i]=n.extensions[i])}function V(t,e){void 0!==e.extras&&("object"===typeof e.extras?Object.assign(t.userData,e.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+e.extras))}function G(t,e,n){let i=!1,r=!1;for(let s=0,l=e.length;s<l;s++){const t=e[s];if(void 0!==t.POSITION&&(i=!0),void 0!==t.NORMAL&&(r=!0),i&&r)break}if(!i&&!r)return Promise.resolve(t);const o=[],a=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(i){const e=void 0!==l.POSITION?n.getDependency("accessor",l.POSITION):t.attributes.position;o.push(e)}if(r){const e=void 0!==l.NORMAL?n.getDependency("accessor",l.NORMAL):t.attributes.normal;a.push(e)}}return Promise.all([Promise.all(o),Promise.all(a)]).then((function(e){const n=e[0],o=e[1];return i&&(t.morphAttributes.position=n),r&&(t.morphAttributes.normal=o),t.morphTargetsRelative=!0,t}))}function H(t,e){if(t.updateMorphTargets(),void 0!==e.weights)for(let n=0,i=e.weights.length;n<i;n++)t.morphTargetInfluences[n]=e.weights[n];if(e.extras&&Array.isArray(e.extras.targetNames)){const n=e.extras.targetNames;if(t.morphTargetInfluences.length===n.length){t.morphTargetDictionary={};for(let e=0,i=n.length;e<i;e++)t.morphTargetDictionary[n[e]]=e}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function W(t){const e=t.extensions&&t.extensions[a.KHR_DRACO_MESH_COMPRESSION];let n;return n=e?"draco:"+e.bufferView+":"+e.indices+":"+U(e.attributes):t.indices+":"+U(t.attributes)+":"+t.mode,n}function U(t){let e="";const n=Object.keys(t).sort();for(let i=0,r=n.length;i<r;i++)e+=n[i]+":"+t[n[i]]+";";return e}function Z(t){switch(t){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}class Y{constructor(t={},e={}){this.json=t,this.extensions={},this.plugins={},this.options=e,this.cache=new o,this.associations=new Map,this.primitiveCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.textureCache={},this.nodeNamesUsed={},"undefined"!==typeof createImageBitmap&&!1===/Firefox|Safari/.test(navigator.userAgent)?this.textureLoader=new i["ImageBitmapLoader"](this.options.manager):this.textureLoader=new i["TextureLoader"](this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new i["FileLoader"](this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(t){this.extensions=t}setPlugins(t){this.plugins=t}parse(t,e){const n=this,i=this.json,r=this.extensions;this.cache.removeAll(),this._invokeAll((function(t){return t._markDefs&&t._markDefs()})),Promise.all(this._invokeAll((function(t){return t.beforeRoot&&t.beforeRoot()}))).then((function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])})).then((function(e){const o={scene:e[0][i.scene||0],scenes:e[0],animations:e[1],cameras:e[2],asset:i.asset,parser:n,userData:{}};z(r,o,i),V(o,i),Promise.all(n._invokeAll((function(t){return t.afterRoot&&t.afterRoot(o)}))).then((function(){t(o)}))})).catch(e)}_markDefs(){const t=this.json.nodes||[],e=this.json.skins||[],n=this.json.meshes||[];for(let i=0,r=e.length;i<r;i++){const n=e[i].joints;for(let e=0,i=n.length;e<i;e++)t[n[e]].isBone=!0}for(let i=0,r=t.length;i<r;i++){const e=t[i];void 0!==e.mesh&&(this._addNodeRef(this.meshCache,e.mesh),void 0!==e.skin&&(n[e.mesh].isSkinnedMesh=!0)),void 0!==e.camera&&this._addNodeRef(this.cameraCache,e.camera)}}_addNodeRef(t,e){void 0!==e&&(void 0===t.refs[e]&&(t.refs[e]=t.uses[e]=0),t.refs[e]++)}_getNodeRef(t,e,n){if(t.refs[e]<=1)return n;const i=n.clone(),r=(t,e)=>{const n=this.associations.get(t);null!=n&&this.associations.set(e,n);for(const[i,o]of t.children.entries())r(o,e.children[i])};return r(n,i),i.name+="_instance_"+t.uses[e]++,i}_invokeOne(t){const e=Object.values(this.plugins);e.push(this);for(let n=0;n<e.length;n++){const i=t(e[n]);if(i)return i}return null}_invokeAll(t){const e=Object.values(this.plugins);e.unshift(this);const n=[];for(let i=0;i<e.length;i++){const r=t(e[i]);r&&n.push(r)}return n}getDependency(t,e){const n=t+":"+e;let i=this.cache.get(n);if(!i){switch(t){case"scene":i=this.loadScene(e);break;case"node":i=this.loadNode(e);break;case"mesh":i=this._invokeOne((function(t){return t.loadMesh&&t.loadMesh(e)}));break;case"accessor":i=this.loadAccessor(e);break;case"bufferView":i=this._invokeOne((function(t){return t.loadBufferView&&t.loadBufferView(e)}));break;case"buffer":i=this.loadBuffer(e);break;case"material":i=this._invokeOne((function(t){return t.loadMaterial&&t.loadMaterial(e)}));break;case"texture":i=this._invokeOne((function(t){return t.loadTexture&&t.loadTexture(e)}));break;case"skin":i=this.loadSkin(e);break;case"animation":i=this.loadAnimation(e);break;case"camera":i=this.loadCamera(e);break;default:throw new Error("Unknown type: "+t)}this.cache.add(n,i)}return i}getDependencies(t){let e=this.cache.get(t);if(!e){const n=this,i=this.json[t+("mesh"===t?"es":"s")]||[];e=Promise.all(i.map((function(e,i){return n.getDependency(t,i)}))),this.cache.add(t,e)}return e}loadBuffer(t){const e=this.json.buffers[t],n=this.fileLoader;if(e.type&&"arraybuffer"!==e.type)throw new Error("THREE.GLTFLoader: "+e.type+" buffer type is not supported.");if(void 0===e.uri&&0===t)return Promise.resolve(this.extensions[a.KHR_BINARY_GLTF].body);const r=this.options;return new Promise((function(t,o){n.load(i["LoaderUtils"].resolveURL(e.uri,r.path),t,void 0,(function(){o(new Error('THREE.GLTFLoader: Failed to load buffer "'+e.uri+'".'))}))}))}loadBufferView(t){const e=this.json.bufferViews[t];return this.getDependency("buffer",e.buffer).then((function(t){const n=e.byteLength||0,i=e.byteOffset||0;return t.slice(i,i+n)}))}loadAccessor(t){const e=this,n=this.json,r=this.json.accessors[t];if(void 0===r.bufferView&&void 0===r.sparse)return Promise.resolve(null);const o=[];return void 0!==r.bufferView?o.push(this.getDependency("bufferView",r.bufferView)):o.push(null),void 0!==r.sparse&&(o.push(this.getDependency("bufferView",r.sparse.indices.bufferView)),o.push(this.getDependency("bufferView",r.sparse.values.bufferView))),Promise.all(o).then((function(t){const o=t[0],a=L[r.type],s=O[r.componentType],l=s.BYTES_PER_ELEMENT,c=l*a,u=r.byteOffset||0,h=void 0!==r.bufferView?n.bufferViews[r.bufferView].byteStride:void 0,d=!0===r.normalized;let p,f;if(h&&h!==c){const t=Math.floor(u/h),n="InterleavedBuffer:"+r.bufferView+":"+r.componentType+":"+t+":"+r.count;let c=e.cache.get(n);c||(p=new s(o,t*h,r.count*h/l),c=new i["InterleavedBuffer"](p,h/l),e.cache.add(n,c)),f=new i["InterleavedBufferAttribute"](c,a,u%h/l,d)}else p=null===o?new s(r.count*a):new s(o,u,r.count*a),f=new i["BufferAttribute"](p,a,d);if(void 0!==r.sparse){const e=L.SCALAR,n=O[r.sparse.indices.componentType],l=r.sparse.indices.byteOffset||0,c=r.sparse.values.byteOffset||0,u=new n(t[1],l,r.sparse.count*e),h=new s(t[2],c,r.sparse.count*a);null!==o&&(f=new i["BufferAttribute"](f.array.slice(),f.itemSize,f.normalized));for(let t=0,i=u.length;t<i;t++){const e=u[t];if(f.setX(e,h[t*a]),a>=2&&f.setY(e,h[t*a+1]),a>=3&&f.setZ(e,h[t*a+2]),a>=4&&f.setW(e,h[t*a+3]),a>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return f}))}loadTexture(t){const e=this.json,n=this.options,i=e.textures[t],r=e.images[i.source];let o=this.textureLoader;if(r.uri){const t=n.manager.getHandler(r.uri);null!==t&&(o=t)}return this.loadTextureImage(t,r,o)}loadTextureImage(t,e,n){const r=this,o=this.json,a=this.options,s=o.textures[t],l=(e.uri||e.bufferView)+":"+s.sampler;if(this.textureCache[l])return this.textureCache[l];const c=self.URL||self.webkitURL;let u=e.uri||"",h=!1;if(void 0!==e.bufferView)u=r.getDependency("bufferView",e.bufferView).then((function(t){h=!0;const n=new Blob([t],{type:e.mimeType});return u=c.createObjectURL(n),u}));else if(void 0===e.uri)throw new Error("THREE.GLTFLoader: Image "+t+" is missing URI and bufferView");const d=Promise.resolve(u).then((function(t){return new Promise((function(e,r){let o=e;!0===n.isImageBitmapLoader&&(o=function(t){const n=new i["Texture"](t);n.needsUpdate=!0,e(n)}),n.load(i["LoaderUtils"].resolveURL(t,a.path),o,void 0,r)}))})).then((function(e){!0===h&&c.revokeObjectURL(u),e.flipY=!1,s.name&&(e.name=s.name);const n=o.samplers||{},a=n[s.sampler]||{};return e.magFilter=P[a.magFilter]||i["LinearFilter"],e.minFilter=P[a.minFilter]||i["LinearMipmapLinearFilter"],e.wrapS=j[a.wrapS]||i["RepeatWrapping"],e.wrapT=j[a.wrapT]||i["RepeatWrapping"],r.associations.set(e,{textures:t}),e})).catch((function(){return console.error("THREE.GLTFLoader: Couldn't load texture",u),null}));return this.textureCache[l]=d,d}assignTexture(t,e,n){const i=this;return this.getDependency("texture",n.index).then((function(r){if(void 0===n.texCoord||0==n.texCoord||"aoMap"===e&&1==n.texCoord||console.warn("THREE.GLTFLoader: Custom UV set "+n.texCoord+" for texture "+e+" not yet supported."),i.extensions[a.KHR_TEXTURE_TRANSFORM]){const t=void 0!==n.extensions?n.extensions[a.KHR_TEXTURE_TRANSFORM]:void 0;if(t){const e=i.associations.get(r);r=i.extensions[a.KHR_TEXTURE_TRANSFORM].extendTexture(r,t),i.associations.set(r,e)}}return t[e]=r,r}))}assignFinalMaterial(t){const e=t.geometry;let n=t.material;const r=void 0===e.attributes.tangent,o=void 0!==e.attributes.color,a=void 0===e.attributes.normal;if(t.isPoints){const t="PointsMaterial:"+n.uuid;let e=this.cache.get(t);e||(e=new i["PointsMaterial"],i["Material"].prototype.copy.call(e,n),e.color.copy(n.color),e.map=n.map,e.sizeAttenuation=!1,this.cache.add(t,e)),n=e}else if(t.isLine){const t="LineBasicMaterial:"+n.uuid;let e=this.cache.get(t);e||(e=new i["LineBasicMaterial"],i["Material"].prototype.copy.call(e,n),e.color.copy(n.color),this.cache.add(t,e)),n=e}if(r||o||a){let t="ClonedMaterial:"+n.uuid+":";n.isGLTFSpecularGlossinessMaterial&&(t+="specular-glossiness:"),r&&(t+="derivative-tangents:"),o&&(t+="vertex-colors:"),a&&(t+="flat-shading:");let e=this.cache.get(t);e||(e=n.clone(),o&&(e.vertexColors=!0),a&&(e.flatShading=!0),r&&(e.normalScale&&(e.normalScale.y*=-1),e.clearcoatNormalScale&&(e.clearcoatNormalScale.y*=-1)),this.cache.add(t,e),this.associations.set(e,this.associations.get(n))),n=e}n.aoMap&&void 0===e.attributes.uv2&&void 0!==e.attributes.uv&&e.setAttribute("uv2",e.attributes.uv),t.material=n}getMaterialType(){return i["MeshStandardMaterial"]}loadMaterial(t){const e=this,n=this.json,r=this.extensions,o=n.materials[t];let s;const l={},c=o.extensions||{},u=[];if(c[a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]){const t=r[a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];s=t.getMaterialType(),u.push(t.extendParams(l,o,e))}else if(c[a.KHR_MATERIALS_UNLIT]){const t=r[a.KHR_MATERIALS_UNLIT];s=t.getMaterialType(),u.push(t.extendParams(l,o,e))}else{const n=o.pbrMetallicRoughness||{};if(l.color=new i["Color"](1,1,1),l.opacity=1,Array.isArray(n.baseColorFactor)){const t=n.baseColorFactor;l.color.fromArray(t),l.opacity=t[3]}void 0!==n.baseColorTexture&&u.push(e.assignTexture(l,"map",n.baseColorTexture)),l.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,l.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(u.push(e.assignTexture(l,"metalnessMap",n.metallicRoughnessTexture)),u.push(e.assignTexture(l,"roughnessMap",n.metallicRoughnessTexture))),s=this._invokeOne((function(e){return e.getMaterialType&&e.getMaterialType(t)})),u.push(Promise.all(this._invokeAll((function(e){return e.extendMaterialParams&&e.extendMaterialParams(t,l)}))))}!0===o.doubleSided&&(l.side=i["DoubleSide"]);const h=o.alphaMode||N.OPAQUE;if(h===N.BLEND?(l.transparent=!0,l.depthWrite=!1):(l.format=i["RGBFormat"],l.transparent=!1,h===N.MASK&&(l.alphaTest=void 0!==o.alphaCutoff?o.alphaCutoff:.5)),void 0!==o.normalTexture&&s!==i["MeshBasicMaterial"]&&(u.push(e.assignTexture(l,"normalMap",o.normalTexture)),l.normalScale=new i["Vector2"](1,1),void 0!==o.normalTexture.scale)){const t=o.normalTexture.scale;l.normalScale.set(t,t)}return void 0!==o.occlusionTexture&&s!==i["MeshBasicMaterial"]&&(u.push(e.assignTexture(l,"aoMap",o.occlusionTexture)),void 0!==o.occlusionTexture.strength&&(l.aoMapIntensity=o.occlusionTexture.strength)),void 0!==o.emissiveFactor&&s!==i["MeshBasicMaterial"]&&(l.emissive=(new i["Color"]).fromArray(o.emissiveFactor)),void 0!==o.emissiveTexture&&s!==i["MeshBasicMaterial"]&&u.push(e.assignTexture(l,"emissiveMap",o.emissiveTexture)),Promise.all(u).then((function(){let n;return n=s===A?r[a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(l):new s(l),o.name&&(n.name=o.name),n.map&&(n.map.encoding=i["sRGBEncoding"]),n.emissiveMap&&(n.emissiveMap.encoding=i["sRGBEncoding"]),V(n,o),e.associations.set(n,{materials:t}),o.extensions&&z(r,n,o),n}))}createUniqueName(t){const e=i["PropertyBinding"].sanitizeNodeName(t||"");let n=e;for(let i=1;this.nodeNamesUsed[n];++i)n=e+"_"+i;return this.nodeNamesUsed[n]=!0,n}loadGeometries(t){const e=this,n=this.extensions,r=this.primitiveCache;function o(t){return n[a.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(t,e).then((function(n){return K(n,t,e)}))}const s=[];for(let l=0,c=t.length;l<c;l++){const n=t[l],c=W(n),u=r[c];if(u)s.push(u.promise);else{let t;t=n.extensions&&n.extensions[a.KHR_DRACO_MESH_COMPRESSION]?o(n):K(new i["BufferGeometry"],n,e),r[c]={primitive:n,promise:t},s.push(t)}}return Promise.all(s)}loadMesh(t){const e=this,n=this.json,r=this.extensions,o=n.meshes[t],a=o.primitives,s=[];for(let i=0,l=a.length;i<l;i++){const t=void 0===a[i].material?F(this.cache):this.getDependency("material",a[i].material);s.push(t)}return s.push(e.loadGeometries(a)),Promise.all(s).then((function(n){const s=n.slice(0,n.length-1),l=n[n.length-1],c=[];for(let h=0,d=l.length;h<d;h++){const n=l[h],u=a[h];let d;const p=s[h];if(u.mode===T.TRIANGLES||u.mode===T.TRIANGLE_STRIP||u.mode===T.TRIANGLE_FAN||void 0===u.mode)d=!0===o.isSkinnedMesh?new i["SkinnedMesh"](n,p):new i["Mesh"](n,p),!0!==d.isSkinnedMesh||d.geometry.attributes.skinWeight.normalized||d.normalizeSkinWeights(),u.mode===T.TRIANGLE_STRIP?d.geometry=Q(d.geometry,i["TriangleStripDrawMode"]):u.mode===T.TRIANGLE_FAN&&(d.geometry=Q(d.geometry,i["TriangleFanDrawMode"]));else if(u.mode===T.LINES)d=new i["LineSegments"](n,p);else if(u.mode===T.LINE_STRIP)d=new i["Line"](n,p);else if(u.mode===T.LINE_LOOP)d=new i["LineLoop"](n,p);else{if(u.mode!==T.POINTS)throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+u.mode);d=new i["Points"](n,p)}Object.keys(d.geometry.morphAttributes).length>0&&H(d,o),d.name=e.createUniqueName(o.name||"mesh_"+t),V(d,o),u.extensions&&z(r,d,u),e.assignFinalMaterial(d),c.push(d)}for(let i=0,r=c.length;i<r;i++)e.associations.set(c[i],{meshes:t,primitives:i});if(1===c.length)return c[0];const u=new i["Group"];e.associations.set(u,{meshes:t});for(let t=0,e=c.length;t<e;t++)u.add(c[t]);return u}))}loadCamera(t){let e;const n=this.json.cameras[t],r=n[n.type];if(r)return"perspective"===n.type?e=new i["PerspectiveCamera"](i["MathUtils"].radToDeg(r.yfov),r.aspectRatio||1,r.znear||1,r.zfar||2e6):"orthographic"===n.type&&(e=new i["OrthographicCamera"](-r.xmag,r.xmag,r.ymag,-r.ymag,r.znear,r.zfar)),n.name&&(e.name=this.createUniqueName(n.name)),V(e,n),Promise.resolve(e);console.warn("THREE.GLTFLoader: Missing camera parameters.")}loadSkin(t){const e=this.json.skins[t],n={joints:e.joints};return void 0===e.inverseBindMatrices?Promise.resolve(n):this.getDependency("accessor",e.inverseBindMatrices).then((function(t){return n.inverseBindMatrices=t,n}))}loadAnimation(t){const e=this.json,n=e.animations[t],r=[],o=[],a=[],s=[],l=[];for(let i=0,c=n.channels.length;i<c;i++){const t=n.channels[i],e=n.samplers[t.sampler],c=t.target,u=void 0!==c.node?c.node:c.id,h=void 0!==n.parameters?n.parameters[e.input]:e.input,d=void 0!==n.parameters?n.parameters[e.output]:e.output;r.push(this.getDependency("node",u)),o.push(this.getDependency("accessor",h)),a.push(this.getDependency("accessor",d)),s.push(e),l.push(c)}return Promise.all([Promise.all(r),Promise.all(o),Promise.all(a),Promise.all(s),Promise.all(l)]).then((function(e){const r=e[0],o=e[1],a=e[2],s=e[3],l=e[4],c=[];for(let t=0,n=r.length;t<n;t++){const e=r[t],n=o[t],u=a[t],h=s[t],d=l[t];if(void 0===e)continue;let p;switch(e.updateMatrix(),e.matrixAutoUpdate=!0,R[d.path]){case R.weights:p=i["NumberKeyframeTrack"];break;case R.rotation:p=i["QuaternionKeyframeTrack"];break;case R.position:case R.scale:default:p=i["VectorKeyframeTrack"];break}const f=e.name?e.name:e.uuid,g=void 0!==h.interpolation?B[h.interpolation]:i["InterpolateLinear"],m=[];R[d.path]===R.weights?e.traverse((function(t){t.morphTargetInfluences&&m.push(t.name?t.name:t.uuid)})):m.push(f);let v=u.array;if(u.normalized){const t=Z(v.constructor),e=new Float32Array(v.length);for(let n=0,i=v.length;n<i;n++)e[n]=v[n]*t;v=e}for(let t=0,r=m.length;t<r;t++){const e=new p(m[t]+"."+R[d.path],n.array,v,g);"CUBICSPLINE"===h.interpolation&&(e.createInterpolant=function(t){const e=this instanceof i["QuaternionKeyframeTrack"]?E:M;return new e(this.times,this.values,this.getValueSize()/3,t)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0),c.push(e)}}const u=n.name?n.name:"animation_"+t;return new i["AnimationClip"](u,void 0,c)}))}createNodeMesh(t){const e=this.json,n=this,i=e.nodes[t];return void 0===i.mesh?null:n.getDependency("mesh",i.mesh).then((function(t){const e=n._getNodeRef(n.meshCache,i.mesh,t);return void 0!==i.weights&&e.traverse((function(t){if(t.isMesh)for(let e=0,n=i.weights.length;e<n;e++)t.morphTargetInfluences[e]=i.weights[e]})),e}))}loadNode(t){const e=this.json,n=this.extensions,r=this,o=e.nodes[t],a=o.name?r.createUniqueName(o.name):"";return function(){const e=[],n=r._invokeOne((function(e){return e.createNodeMesh&&e.createNodeMesh(t)}));return n&&e.push(n),void 0!==o.camera&&e.push(r.getDependency("camera",o.camera).then((function(t){return r._getNodeRef(r.cameraCache,o.camera,t)}))),r._invokeAll((function(e){return e.createNodeAttachment&&e.createNodeAttachment(t)})).forEach((function(t){e.push(t)})),Promise.all(e)}().then((function(e){let s;if(s=!0===o.isBone?new i["Bone"]:e.length>1?new i["Group"]:1===e.length?e[0]:new i["Object3D"],s!==e[0])for(let t=0,n=e.length;t<n;t++)s.add(e[t]);if(o.name&&(s.userData.name=o.name,s.name=a),V(s,o),o.extensions&&z(n,s,o),void 0!==o.matrix){const t=new i["Matrix4"];t.fromArray(o.matrix),s.applyMatrix4(t)}else void 0!==o.translation&&s.position.fromArray(o.translation),void 0!==o.rotation&&s.quaternion.fromArray(o.rotation),void 0!==o.scale&&s.scale.fromArray(o.scale);return r.associations.has(s)||r.associations.set(s,{}),r.associations.get(s).nodes=t,s}))}loadScene(t){const e=this.json,n=this.extensions,r=this.json.scenes[t],o=this,a=new i["Group"];r.name&&(a.name=o.createUniqueName(r.name)),V(a,r),r.extensions&&z(n,a,r);const s=r.nodes||[],l=[];for(let i=0,c=s.length;i<c;i++)l.push(X(s[i],a,e,o));return Promise.all(l).then((function(){const t=t=>{const e=new Map;for(const[n,r]of o.associations)(n instanceof i["Material"]||n instanceof i["Texture"])&&e.set(n,r);return t.traverse(t=>{const n=o.associations.get(t);null!=n&&e.set(t,n)}),e};return o.associations=t(a),a}))}}function X(t,e,n,r){const o=n.nodes[t];return r.getDependency("node",t).then((function(t){if(void 0===o.skin)return t;let e;return r.getDependency("skin",o.skin).then((function(t){e=t;const n=[];for(let i=0,o=e.joints.length;i<o;i++)n.push(r.getDependency("node",e.joints[i]));return Promise.all(n)})).then((function(n){return t.traverse((function(t){if(!t.isMesh)return;const r=[],o=[];for(let a=0,s=n.length;a<s;a++){const t=n[a];if(t){r.push(t);const n=new i["Matrix4"];void 0!==e.inverseBindMatrices&&n.fromArray(e.inverseBindMatrices.array,16*a),o.push(n)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',e.joints[a])}t.bind(new i["Skeleton"](r,o),t.matrixWorld)})),t}))})).then((function(t){e.add(t);const i=[];if(o.children){const e=o.children;for(let o=0,a=e.length;o<a;o++){const a=e[o];i.push(X(a,t,n,r))}}return Promise.all(i)}))}function q(t,e,n){const r=e.attributes,o=new i["Box3"];if(void 0===r.POSITION)return;{const t=n.json.accessors[r.POSITION],e=t.min,a=t.max;if(void 0===e||void 0===a)return void console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");if(o.set(new i["Vector3"](e[0],e[1],e[2]),new i["Vector3"](a[0],a[1],a[2])),t.normalized){const e=Z(O[t.componentType]);o.min.multiplyScalar(e),o.max.multiplyScalar(e)}}const a=e.targets;if(void 0!==a){const t=new i["Vector3"],e=new i["Vector3"];for(let i=0,r=a.length;i<r;i++){const r=a[i];if(void 0!==r.POSITION){const i=n.json.accessors[r.POSITION],o=i.min,a=i.max;if(void 0!==o&&void 0!==a){if(e.setX(Math.max(Math.abs(o[0]),Math.abs(a[0]))),e.setY(Math.max(Math.abs(o[1]),Math.abs(a[1]))),e.setZ(Math.max(Math.abs(o[2]),Math.abs(a[2]))),i.normalized){const t=Z(O[i.componentType]);e.multiplyScalar(t)}t.max(e)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}o.expandByVector(t)}t.boundingBox=o;const s=new i["Sphere"];o.getCenter(s.center),s.radius=o.min.distanceTo(o.max)/2,t.boundingSphere=s}function K(t,e,n){const i=e.attributes,r=[];function o(e,i){return n.getDependency("accessor",e).then((function(e){t.setAttribute(i,e)}))}for(const a in i){const e=D[a]||a.toLowerCase();e in t.attributes||r.push(o(i[a],e))}if(void 0!==e.indices&&!t.index){const i=n.getDependency("accessor",e.indices).then((function(e){t.setIndex(e)}));r.push(i)}return V(t,e),q(t,e,n),Promise.all(r).then((function(){return void 0!==e.targets?G(t,e.targets,n):t}))}function Q(t,e){let n=t.getIndex();if(null===n){const e=[],i=t.getAttribute("position");if(void 0===i)return console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t;for(let t=0;t<i.count;t++)e.push(t);t.setIndex(e),n=t.getIndex()}const r=n.count-2,o=[];if(e===i["TriangleFanDrawMode"])for(let i=1;i<=r;i++)o.push(n.getX(0)),o.push(n.getX(i)),o.push(n.getX(i+1));else for(let i=0;i<r;i++)i%2===0?(o.push(n.getX(i)),o.push(n.getX(i+1)),o.push(n.getX(i+2))):(o.push(n.getX(i+2)),o.push(n.getX(i+1)),o.push(n.getX(i)));o.length/3!==r&&console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const a=t.clone();return a.setIndex(o),a}},"34ba":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("33e8"),r=n("b007"),o=n("af7f");class a extends Error{constructor(t,e,n){super(t),this.description=e,this.context=n,this.type="TransportError"}}class s extends r["a"]{constructor(t){super(),this.writable=!1,Object(o["b"])(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,e,n){return super.emitReserved("error",new a(t,e,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const e=Object(i["a"])(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}},"34c6":function(t,e,n){},"35ca":function(t,e,n){},"360d":function(t,e,n){"use strict";n.r(e),n.d(e,"ShaderPass",(function(){return o}));var i=n("5a89"),r=n("1b53");class o extends r["Pass"]{constructor(t,e){super(),this.textureID=void 0!==e?e:"tDiffuse",t instanceof i["ShaderMaterial"]?(this.uniforms=t.uniforms,this.material=t):t&&(this.uniforms=i["UniformsUtils"].clone(t.uniforms),this.material=new i["ShaderMaterial"]({defines:Object.assign({},t.defines),uniforms:this.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader})),this.fsQuad=new r["FullScreenQuad"](this.material)}render(t,e,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this.fsQuad.material=this.material,this.renderToScreen?(t.setRenderTarget(null),this.fsQuad.render(t)):(t.setRenderTarget(e),this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),this.fsQuad.render(t))}}},3753:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Math.PI/180,r=function(t){return i*t};e.default=r},"3934c":function(t,e,n){"use strict";n.r(e),n.d(e,"GammaCorrectionShader",(function(){return i}));const i={uniforms:{tDiffuse:{value:null}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 tex = texture2D( tDiffuse, vUv );\n\n\t\t\tgl_FragColor = LinearTosRGB( tex );\n\n\t\t}"}},"3a7b":function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").findIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"3b16":function(t,e,n){var i=n("1ab2").FilterCSS,r=n("bda0"),o=n("50e1"),a=o.parseTag,s=o.parseAttr,l=n("eb71");function c(t){return void 0===t||null===t}function u(t){var e=l.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};t=l.trim(t.slice(e+1,-1));var n="/"===t[t.length-1];return n&&(t=l.trim(t.slice(0,-1))),{html:t,closing:n}}function h(t){var e={};for(var n in t)e[n]=t[n];return e}function d(t){t=h(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=r.onIgnoreTagStripAll),t.whiteList=t.whiteList||r.whiteList,t.onTag=t.onTag||r.onTag,t.onTagAttr=t.onTagAttr||r.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||r.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||r.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||r.safeAttrValue,t.escapeHtml=t.escapeHtml||r.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new i(t.css))}d.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,n=e.options,i=n.whiteList,o=n.onTag,h=n.onIgnoreTag,d=n.onTagAttr,p=n.onIgnoreTagAttr,f=n.safeAttrValue,g=n.escapeHtml,m=e.cssFilter;n.stripBlankChar&&(t=r.stripBlankChar(t)),n.allowCommentTag||(t=r.stripCommentTag(t));var v=!1;if(n.stripIgnoreTagBody){v=r.StripTagBody(n.stripIgnoreTagBody,h);h=v.onIgnoreTag}var y=a(t,(function(t,e,n,r,a){var v={sourcePosition:t,position:e,isClosing:a,isWhite:i.hasOwnProperty(n)},y=o(n,r,v);if(!c(y))return y;if(v.isWhite){if(v.isClosing)return"</"+n+">";var b=u(r),x=i[n],w=s(b.html,(function(t,e){var i=-1!==l.indexOf(x,t),r=d(n,t,e,i);if(!c(r))return r;if(i)return e=f(n,t,e,m),e?t+'="'+e+'"':t;r=p(n,t,e,i);return c(r)?void 0:r}));r="<"+n;return w&&(r+=" "+w),b.closing&&(r+=" /"),r+=">",r}y=h(n,r,v);return c(y)?g(r):y}),g);return v&&(y=v.remove(y)),y},t.exports=d},"3b98":function(t,e,n){},"3c5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("739e"),r=function(t){var e=i.default(t);return e.charAt(0).toUpperCase()+e.substring(1)};e.default=r},"3c5d":function(t,e,n){"use strict";var i=n("da84"),r=n("c65b"),o=n("ebb5"),a=n("07fa"),s=n("182d"),l=n("7b0b"),c=n("d039"),u=i.RangeError,h=i.Int8Array,d=h&&h.prototype,p=d&&d.set,f=o.aTypedArray,g=o.exportTypedArrayMethod,m=!c((function(){var t=new Uint8ClampedArray(2);return r(p,t,{length:1,0:3},1),3!==t[1]})),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));g("set",(function(t){f(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=l(t);if(m)return r(p,this,n,e);var i=this.length,o=a(n),c=0;if(o+e>i)throw u("Wrong length");while(c<o)this[e+c]=n[c++]}),!m||v)},"3ccf":function(t,e,n){"use strict";var i=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),r=function(){function t(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new r;function a(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"3d5e":function(t,e,n){"use strict";n("99af"),n("caad"),n("b0c0"),n("2532");var i=n("09e7");e["a"]={data:function(){return{quakeDomain:["360zqaq.net","360.net","360.cn","qihoo.net"]}},methods:{ipv4OrIpv6OrDomainHref:function(t){var e=this._.get(t,"service.name");if(!e)return"#";var n=e.includes("https")||e.includes("ssl")||e.includes("tls")?"https://":"".concat(t.service.name,"://"),r="",o=this._.get(t,"service.http.host")||t.ip;return r=Object(i["c"])(o)?t.port?"[".concat(o,"]:").concat(t.port):"[".concat(o,"]"):t.port?"".concat(o,":").concat(t.port):o,"".concat(n).concat(r)}}}},"3d7d":function(t,e,n){"use strict";function i(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function r(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape"),o=null,a=null;return n&&(o=n.getCanvasBBox(),e=i(e,o)),r&&(a=r.getCanvasBBox(),e=i(e,a)),e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeBBox=i,e.mergeArrowBBox=r},"3de9":function(t,e,n){},"3ec1":function(t,e,n){t.exports=n.p+"assets/img/loading.8155862a.gif"},"3f2a":function(t,e,n){"use strict";var i=n("ca50"),r=n.n(i);r.a},"3fb2":function(t,e,n){},"3fcc":function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").map,o=n("b6b7"),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("map",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},4069:function(t,e,n){var i=n("44d2");i("flat")},4134:function(t,e,n){"use strict";var i=n("ec15"),r=n.n(i);r.a},4203:function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";class e{constructor(t){this.controller_=t}get element(){return this.controller_.view.element}get disabled(){return this.controller_.viewProps.get("disabled")}set disabled(t){this.controller_.viewProps.set("disabled",t)}get hidden(){return this.controller_.viewProps.get("hidden")}set hidden(t){this.controller_.viewProps.set("hidden",t)}dispose(){this.controller_.viewProps.set("disposed",!0)}}class n{constructor(t){this.target=t}}class i extends n{constructor(t,e,n,i){super(t),this.value=e,this.presetKey=n,this.last=null===i||void 0===i||i}}function r(t){return t}function o(t){return null===t||void 0===t}const a={alreadydisposed:()=>"View has been already disposed",invalidparams:t=>`Invalid parameters for '${t.name}'`,nomatchingcontroller:t=>`No matching controller for '${t.key}'`,nomatchingview:t=>`No matching view for '${JSON.stringify(t.params)}'`,notbindable:()=>"Value is not bindable",propertynotfound:t=>`Property '${t.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class s{constructor(t){var e;this.message=null!==(e=a[t.type](r(t.context)))&&void 0!==e?e:"Unexpected error",this.name=this.constructor.name,this.stack=new Error(this.message).stack,this.type=t.type}static alreadyDisposed(){return new s({type:"alreadydisposed"})}static notBindable(){return new s({type:"notbindable"})}static propertyNotFound(t){return new s({type:"propertynotfound",context:{name:t}})}static shouldNeverHappen(){return new s({type:"shouldneverhappen"})}}class l{constructor(){this.observers_={}}on(t,e){let n=this.observers_[t];return n||(n=this.observers_[t]=[]),n.push({handler:e}),this}off(t,e){const n=this.observers_[t];return n&&(this.observers_[t]=n.filter(t=>{return t.handler!==e})),this}emit(t,e){const n=this.observers_[t];n&&n.forEach(t=>{t.handler(e)})}}const c="tp";function u(t){const e=(e,n)=>{return[c,"-",t,"v",e?`_${e}`:"",n?`-${n}`:""].join("")};return e}function h(t,e){return n=>e(t(n))}function d(t){return t.rawValue}function p(t,e){t.emitter.on("change",h(d,e)),e(t.rawValue)}function f(t,e,n){p(t.value(e),n)}function g(t,e,n){n?t.classList.add(e):t.classList.remove(e)}function m(t,e){return n=>{g(t,e,n)}}function v(t,e){p(t,t=>{e.textContent=null!==t&&void 0!==t?t:""})}const y=u("btn");class b{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(y()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("button");n.classList.add(y("b")),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;const i=t.createElement("div");i.classList.add(y("t")),v(e.props.value("title"),i),this.buttonElement.appendChild(i)}}class x{constructor(t,e){this.emitter=new l,this.onClick_=this.onClick_.bind(this),this.props=e.props,this.viewProps=e.viewProps,this.view=new b(t,{props:this.props,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class w{constructor(t,e){var n;this.constraint_=null===e||void 0===e?void 0:e.constraint,this.equals_=null!==(n=null===e||void 0===e?void 0:e.equals)&&void 0!==n?n:(t,e)=>t===e,this.emitter=new l,this.rawValue_=t}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!==e&&void 0!==e?e:{forceEmit:!1,last:!0},i=this.constraint_?this.constraint_.constrain(t):t,r=this.rawValue_,o=!this.equals_(r,i);(o||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.rawValue_=i,this.emitter.emit("change",{options:n,previousRawValue:r,rawValue:i,sender:this}))}}class _{constructor(t){this.emitter=new l,this.value_=t}get rawValue(){return this.value_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!==e&&void 0!==e?e:{forceEmit:!1,last:!0},i=this.value_;(i!==t||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.value_=t,this.emitter.emit("change",{options:n,previousRawValue:i,rawValue:this.value_,sender:this}))}}function C(t,e){const n=null===e||void 0===e?void 0:e.constraint,i=null===e||void 0===e?void 0:e.equals;return n||i?new w(t,e):new _(t)}class A{constructor(t){this.emitter=new l,this.valMap_=t;for(const e in this.valMap_){const t=this.valMap_[e];t.emitter.on("change",()=>{this.emitter.emit("change",{key:e,sender:this})})}}static createCore(t){const e=Object.keys(t);return e.reduce((e,n)=>{return Object.assign(e,{[n]:C(t[n])})},{})}static fromObject(t){const e=this.createCore(t);return new A(e)}get(t){return this.valMap_[t].rawValue}set(t,e){this.valMap_[t].rawValue=e}value(t){return this.valMap_[t]}}function I(t,e){const n=Object.keys(e),i=n.reduce((n,i)=>{if(void 0===n)return;const r=e[i],o=r(t[i]);return o.succeeded?Object.assign(Object.assign({},n),{[i]:o.value}):void 0},{});return r(i)}function S(t,e){return t.reduce((t,n)=>{if(void 0===t)return;const i=e(n);return i.succeeded&&void 0!==i.value?[...t,i.value]:void 0},[])}function M(t){return null!==t&&"object"===typeof t}function k(t){return e=>n=>{if(!e&&void 0===n)return{succeeded:!1,value:void 0};if(e&&void 0===n)return{succeeded:!0,value:void 0};const i=t(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function E(t){return{custom:e=>k(e)(t),boolean:k(t=>"boolean"===typeof t?t:void 0)(t),number:k(t=>"number"===typeof t?t:void 0)(t),string:k(t=>"string"===typeof t?t:void 0)(t),function:k(t=>"function"===typeof t?t:void 0)(t),constant:e=>k(t=>t===e?e:void 0)(t),raw:k(t=>t)(t),object:e=>k(t=>{if(M(t))return I(t,e)})(t),array:e=>k(t=>{if(Array.isArray(t))return S(t,e)})(t)}}const T={optional:E(!0),required:E(!1)};function O(t,e){const n=T.required.object(e)(t);return n.succeeded?n.value:void 0}function P(t){console.warn([`Missing '${t.key}' of ${t.target} in ${t.place}.`,"Please rebuild plugins with the latest core package."].join(" "))}function j(t){return t&&t.parentElement&&t.parentElement.removeChild(t),null}class L{constructor(t){this.value_=t}static create(t){return[new L(t),(e,n)=>{t.setRawValue(e,n)}]}get emitter(){return this.value_.emitter}get rawValue(){return this.value_.rawValue}}const D=u("");function R(t,e){return m(t,D(void 0,e))}class B extends A{constructor(t){var e;super(t),this.onDisabledChange_=this.onDisabledChange_.bind(this),this.onParentChange_=this.onParentChange_.bind(this),this.onParentGlobalDisabledChange_=this.onParentGlobalDisabledChange_.bind(this),[this.globalDisabled_,this.setGlobalDisabled_]=L.create(C(this.getGlobalDisabled_())),this.value("disabled").emitter.on("change",this.onDisabledChange_),this.value("parent").emitter.on("change",this.onParentChange_),null===(e=this.get("parent"))||void 0===e||e.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_)}static create(t){var e,n,i;const r=null!==t&&void 0!==t?t:{};return new B(A.createCore({disabled:null!==(e=r.disabled)&&void 0!==e&&e,disposed:!1,hidden:null!==(n=r.hidden)&&void 0!==n&&n,parent:null!==(i=r.parent)&&void 0!==i?i:null}))}get globalDisabled(){return this.globalDisabled_}bindClassModifiers(t){p(this.globalDisabled_,R(t,"disabled")),f(this,"hidden",R(t,"hidden"))}bindDisabled(t){p(this.globalDisabled_,e=>{t.disabled=e})}bindTabIndex(t){p(this.globalDisabled_,e=>{t.tabIndex=e?-1:0})}handleDispose(t){this.value("disposed").emitter.on("change",e=>{e&&t()})}getGlobalDisabled_(){const t=this.get("parent"),e=!!t&&t.globalDisabled.rawValue;return e||this.get("disabled")}updateGlobalDisabled_(){this.setGlobalDisabled_(this.getGlobalDisabled_())}onDisabledChange_(){this.updateGlobalDisabled_()}onParentGlobalDisabledChange_(){this.updateGlobalDisabled_()}onParentChange_(t){var e;const n=t.previousRawValue;null===n||void 0===n||n.globalDisabled.emitter.off("change",this.onParentGlobalDisabledChange_),null===(e=this.get("parent"))||void 0===e||e.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_),this.updateGlobalDisabled_()}}function N(){return["veryfirst","first","last","verylast"]}const F=u(""),z={veryfirst:"vfst",first:"fst",last:"lst",verylast:"vlst"};class V{constructor(t){this.parent_=null,this.blade=t.blade,this.view=t.view,this.viewProps=t.viewProps;const e=this.view.element;this.blade.value("positions").emitter.on("change",()=>{N().forEach(t=>{e.classList.remove(F(void 0,z[t]))}),this.blade.get("positions").forEach(t=>{e.classList.add(F(void 0,z[t]))})}),this.viewProps.handleDispose(()=>{j(e)})}get parent(){return this.parent_}set parent(t){this.parent_=t,"parent"in this.viewProps.valMap_?this.viewProps.set("parent",this.parent_?this.parent_.viewProps:null):P({key:"parent",target:B.name,place:"BladeController.parent"})}}const G="http://www.w3.org/2000/svg";function H(t){t.offsetHeight}function W(t,e){const n=t.style.transition;t.style.transition="none",e(),t.style.transition=n}function U(t){return void 0!==t.ontouchstart}function Z(t){while(t.childNodes.length>0)t.removeChild(t.childNodes[0])}function Y(t){return t.relatedTarget?r(t.relatedTarget):"explicitOriginalTarget"in t?t.explicitOriginalTarget:null}const X=u("lbl");function q(t,e){const n=t.createDocumentFragment(),i=e.split("\n").map(e=>{return t.createTextNode(e)});return i.forEach((e,i)=>{i>0&&n.appendChild(t.createElement("br")),n.appendChild(e)}),n}class K{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(X()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(X("l")),f(e.props,"label",e=>{o(e)?this.element.classList.add(X(void 0,"nol")):(this.element.classList.remove(X(void 0,"nol")),Z(n),n.appendChild(q(t,e)))}),this.element.appendChild(n),this.labelElement=n;const i=t.createElement("div");i.classList.add(X("v")),this.element.appendChild(i),this.valueElement=i}}class Q extends V{constructor(t,e){const n=e.valueController.viewProps;super(Object.assign(Object.assign({},e),{view:new K(t,{props:e.props,viewProps:n}),viewProps:n})),this.props=e.props,this.valueController=e.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}}class J extends V{constructor(t){super(t),this.value=t.value}}class $ extends A{constructor(t){super(t)}static create(t){const e={completed:!0,expanded:t,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null},n=A.createCore(e);return new $(n)}get styleExpanded(){var t;return null!==(t=this.get("temporaryExpanded"))&&void 0!==t?t:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";const t=this.get("expandedHeight");return this.get("shouldFixHeight")&&!o(t)?`${t}px`:"auto"}bindExpandedClass(t,e){const n=()=>{const n=this.styleExpanded;n?t.classList.add(e):t.classList.remove(e)};f(this,"expanded",n),f(this,"temporaryExpanded",n)}cleanUpTransition(){this.set("shouldFixHeight",!1),this.set("expandedHeight",null),this.set("completed",!0)}}function tt(t){return $.create(t)}function et(t,e){let n=0;return W(e,()=>{t.set("expandedHeight",null),t.set("temporaryExpanded",!0),H(e),n=e.clientHeight,t.set("temporaryExpanded",null),H(e)}),n}function nt(t,e){e.style.height=t.styleHeight}function it(t,e){t.value("expanded").emitter.on("beforechange",()=>{t.set("completed",!1),o(t.get("expandedHeight"))&&t.set("expandedHeight",et(t,e)),t.set("shouldFixHeight",!0),H(e)}),t.emitter.on("change",()=>{nt(t,e)}),nt(t,e),e.addEventListener("transitionend",e=>{"height"===e.propertyName&&t.cleanUpTransition()})}class rt{constructor(t,e){const n=u(e.viewName);this.element=t.createElement("div"),this.element.classList.add(n()),e.viewProps.bindClassModifiers(this.element)}}class ot extends J{constructor(t,e){const n=e.valueController.viewProps;super(Object.assign(Object.assign({},e),{value:e.valueController.value,view:new K(t,{props:e.props,viewProps:n}),viewProps:n})),this.props=e.props,this.valueController=e.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}}class at{constructor(){this.disabled=!1,this.emitter=new l}dispose(){}tick(){this.disabled||this.emitter.emit("tick",{sender:this})}}class st{constructor(t,e){this.disabled_=!1,this.timerId_=null,this.onTick_=this.onTick_.bind(this),this.doc_=t,this.emitter=new l,this.interval_=e,this.setTimer_()}get disabled(){return this.disabled_}set disabled(t){this.disabled_=t,this.disabled_?this.clearTimer_():this.setTimer_()}dispose(){this.clearTimer_()}clearTimer_(){if(null===this.timerId_)return;const t=this.doc_.defaultView;t&&t.clearInterval(this.timerId_),this.timerId_=null}setTimer_(){if(this.clearTimer_(),this.interval_<=0)return;const t=this.doc_.defaultView;t&&(this.timerId_=t.setInterval(this.onTick_,this.interval_))}onTick_(){this.disabled_||this.emitter.emit("tick",{sender:this})}}class lt{constructor(t){this.constraints=t}constrain(t){return this.constraints.reduce((t,e)=>{return e.constrain(t)},t)}}function ct(t,e){if(t instanceof e)return t;if(t instanceof lt){const n=t.constraints.reduce((t,n)=>{return t||(n instanceof e?n:null)},null);if(n)return n}return null}class ut{constructor(t){this.values=A.fromObject({max:t.max,min:t.min})}constrain(t){const e=this.values.get("max"),n=this.values.get("min");return Math.min(Math.max(t,n),e)}}class ht{constructor(t){this.values=A.fromObject({max:t.max,min:t.min})}get maxValue(){return this.values.get("max")}get minValue(){return this.values.get("min")}constrain(t){const e=this.values.get("max"),n=this.values.get("min");let i=t;return o(n)||(i=Math.max(i,n)),o(e)||(i=Math.min(i,e)),i}}class dt{constructor(t,e=0){this.step=t,this.origin=e}constrain(t){const e=this.origin%this.step,n=Math.round((t-e)/this.step);return e+n*this.step}}const pt=u("pop");class ft{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(pt()),e.viewProps.bindClassModifiers(this.element),p(e.shows,m(this.element,pt(void 0,"v")))}}class gt{constructor(t,e){this.shows=C(!1),this.viewProps=e.viewProps,this.view=new ft(t,{shows:this.shows,viewProps:this.viewProps})}}const mt=u("txt");class vt{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(mt()),e.viewProps.bindClassModifiers(this.element),this.props_=e.props,this.props_.emitter.on("change",this.onChange_);const n=t.createElement("input");n.classList.add(mt("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,e.value.emitter.on("change",this.onChange_),this.value_=e.value,this.refresh()}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value_.rawValue)}onChange_(){this.refresh()}}class yt{constructor(t,e){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=e.parser,this.props=e.props,this.value=e.value,this.viewProps=e.viewProps,this.view=new vt(t,{props:e.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(t){const e=r(t.currentTarget),n=e.value,i=this.parser_(n);o(i)||(this.value.rawValue=i),this.view.refresh()}}function bt(t){return"false"!==t&&!!t}class xt{constructor(t){this.text=t}evaluate(){return Number(this.text)}toString(){return this.text}}const wt={"**":(t,e)=>Math.pow(t,e),"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"&":(t,e)=>t&e,"^":(t,e)=>t^e,"|":(t,e)=>t|e};class _t{constructor(t,e,n){this.left=e,this.operator=t,this.right=n}evaluate(){const t=wt[this.operator];if(!t)throw new Error(`unexpected binary operator: '${this.operator}`);return t(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}const Ct={"+":t=>t,"-":t=>-t,"~":t=>~t};class At{constructor(t,e){this.operator=t,this.expression=e}evaluate(){const t=Ct[this.operator];if(!t)throw new Error(`unexpected unary operator: '${this.operator}`);return t(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function It(t){return(e,n)=>{for(let i=0;i<t.length;i++){const r=t[i](e,n);if(""!==r)return r}return""}}function St(t,e){var n;const i=t.substr(e).match(/^\s+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Mt(t,e){const n=t.substr(e,1);return n.match(/^[1-9]$/)?n:""}function kt(t,e){var n;const i=t.substr(e).match(/^[0-9]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Et(t,e){const n=kt(t,e);if(""!==n)return n;const i=t.substr(e,1);if(e+=1,"-"!==i&&"+"!==i)return"";const r=kt(t,e);return""===r?"":i+r}function Tt(t,e){const n=t.substr(e,1);if(e+=1,"e"!==n.toLowerCase())return"";const i=Et(t,e);return""===i?"":n+i}function Ot(t,e){const n=t.substr(e,1);if("0"===n)return n;const i=Mt(t,e);return e+=i.length,""===i?"":i+kt(t,e)}function Pt(t,e){const n=Ot(t,e);if(e+=n.length,""===n)return"";const i=t.substr(e,1);if(e+=i.length,"."!==i)return"";const r=kt(t,e);return e+=r.length,n+i+r+Tt(t,e)}function jt(t,e){const n=t.substr(e,1);if(e+=n.length,"."!==n)return"";const i=kt(t,e);return e+=i.length,""===i?"":n+i+Tt(t,e)}function Lt(t,e){const n=Ot(t,e);return e+=n.length,""===n?"":n+Tt(t,e)}const Dt=It([Pt,jt,Lt]);function Rt(t,e){var n;const i=t.substr(e).match(/^[01]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Bt(t,e){const n=t.substr(e,2);if(e+=n.length,"0b"!==n.toLowerCase())return"";const i=Rt(t,e);return""===i?"":n+i}function Nt(t,e){var n;const i=t.substr(e).match(/^[0-7]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Ft(t,e){const n=t.substr(e,2);if(e+=n.length,"0o"!==n.toLowerCase())return"";const i=Nt(t,e);return""===i?"":n+i}function zt(t,e){var n;const i=t.substr(e).match(/^[0-9a-f]+/i);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Vt(t,e){const n=t.substr(e,2);if(e+=n.length,"0x"!==n.toLowerCase())return"";const i=zt(t,e);return""===i?"":n+i}const Gt=It([Bt,Ft,Vt]),Ht=It([Gt,Dt]);function Wt(t,e){const n=Ht(t,e);return e+=n.length,""===n?null:{evaluable:new xt(n),cursor:e}}function Ut(t,e){const n=t.substr(e,1);if(e+=n.length,"("!==n)return null;const i=Qt(t,e);if(!i)return null;e=i.cursor,e+=St(t,e).length;const r=t.substr(e,1);return e+=r.length,")"!==r?null:{evaluable:i.evaluable,cursor:e}}function Zt(t,e){var n;return null!==(n=Wt(t,e))&&void 0!==n?n:Ut(t,e)}function Yt(t,e){const n=Zt(t,e);if(n)return n;const i=t.substr(e,1);if(e+=i.length,"+"!==i&&"-"!==i&&"~"!==i)return null;const r=Yt(t,e);return r?(e=r.cursor,{cursor:e,evaluable:new At(i,r.evaluable)}):null}function Xt(t,e,n){n+=St(e,n).length;const i=t.filter(t=>e.startsWith(t,n))[0];return i?(n+=i.length,n+=St(e,n).length,{cursor:n,operator:i}):null}function qt(t,e){return(n,i)=>{const r=t(n,i);if(!r)return null;i=r.cursor;let o=r.evaluable;for(;;){const r=Xt(e,n,i);if(!r)break;i=r.cursor;const a=t(n,i);if(!a)return null;i=a.cursor,o=new _t(r.operator,o,a.evaluable)}return o?{cursor:i,evaluable:o}:null}}const Kt=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((t,e)=>{return qt(t,e)},Yt);function Qt(t,e){return e+=St(t,e).length,Kt(t,e)}function Jt(t){const e=Qt(t,0);if(!e)return null;const n=e.cursor+St(t,e.cursor).length;return n!==t.length?null:e.evaluable}function $t(t){var e;const n=Jt(t);return null!==(e=null===n||void 0===n?void 0:n.evaluate())&&void 0!==e?e:null}function te(t){if("number"===typeof t)return t;if("string"===typeof t){const e=$t(t);if(!o(e))return e}return 0}function ee(t){return e=>{return e.toFixed(Math.max(Math.min(t,20),0))}}ee(0);function ne(t){return String(t)}function ie(t,e){while(t.length<e)t.push(void 0)}function re(t){const e=[];return ie(e,t),C(e)}function oe(t){const e=t.indexOf(void 0);return r(e<0?t:t.slice(0,e))}function ae(t,e){const n=[...oe(t),e];return n.length>t.length?n.splice(0,n.length-t.length):ie(n,t.length),n}function se({primary:t,secondary:e,forward:n,backward:i}){let r=!1;function o(t){r||(r=!0,t(),r=!1)}t.emitter.on("change",i=>{o(()=>{e.setRawValue(n(t,e),i.options)})}),e.emitter.on("change",r=>{o(()=>{t.setRawValue(i(t,e),r.options)}),o(()=>{e.setRawValue(n(t,e),r.options)})}),o(()=>{e.setRawValue(n(t,e),{forceEmit:!1,last:!0})})}function le(t,e){const n=t*(e.altKey?.1:1)*(e.shiftKey?10:1);return e.upKey?+n:e.downKey?-n:0}function ce(t){return{altKey:t.altKey,downKey:"ArrowDown"===t.key,shiftKey:t.shiftKey,upKey:"ArrowUp"===t.key}}function ue(t){return{altKey:t.altKey,downKey:"ArrowLeft"===t.key,shiftKey:t.shiftKey,upKey:"ArrowRight"===t.key}}function he(t){return"ArrowUp"===t||"ArrowDown"===t}function de(t){return he(t)||"ArrowLeft"===t||"ArrowRight"===t}function pe(t,e){var n,i;const r=e.ownerDocument.defaultView,o=e.getBoundingClientRect();return{x:t.pageX-((null!==(n=r&&r.scrollX)&&void 0!==n?n:0)+o.left),y:t.pageY-((null!==(i=r&&r.scrollY)&&void 0!==i?i:0)+o.top)}}class fe{constructor(t){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=t,this.emitter=new l,t.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),t.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),t.addEventListener("touchend",this.onTouchEnd_),t.addEventListener("mousedown",this.onMouseDown_)}computePosition_(t){const e=this.elem_.getBoundingClientRect();return{bounds:{width:e.width,height:e.height},point:t?{x:t.x,y:t.y}:null}}onMouseDown_(t){var e;t.preventDefault(),null===(e=t.currentTarget)||void 0===e||e.focus();const n=this.elem_.ownerDocument;n.addEventListener("mousemove",this.onDocumentMouseMove_),n.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(pe(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseMove_(t){this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(pe(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseUp_(t){const e=this.elem_.ownerDocument;e.removeEventListener("mousemove",this.onDocumentMouseMove_),e.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(pe(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onTouchStart_(t){t.preventDefault();const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchMove_(t){const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchEnd_(t){var e;const n=null!==(e=t.targetTouches.item(0))&&void 0!==e?e:this.lastTouch_,i=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(n?{x:n.clientX-i.left,y:n.clientY-i.top}:void 0),sender:this,shiftKey:t.shiftKey})}}function ge(t,e,n,i,r){const o=(t-e)/(n-e);return i+o*(r-i)}function me(t){const e=String(t.toFixed(10)),n=e.split(".")[1];return n.replace(/0+$/,"").length}function ve(t,e,n){return Math.min(Math.max(t,e),n)}const ye=u("txt");class be{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.props_=e.props,this.props_.emitter.on("change",this.onChange_),this.element=t.createElement("div"),this.element.classList.add(ye(),ye(void 0,"num")),e.arrayPosition&&this.element.classList.add(ye(void 0,e.arrayPosition)),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("input");n.classList.add(ye("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=e.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(ye()),this.inputElement.classList.add(ye("i"));const i=t.createElement("div");i.classList.add(ye("k")),this.element.appendChild(i),this.knobElement=i;const r=t.createElementNS(G,"svg");r.classList.add(ye("g")),this.knobElement.appendChild(r);const o=t.createElementNS(G,"path");o.classList.add(ye("gb")),r.appendChild(o),this.guideBodyElem_=o;const a=t.createElementNS(G,"path");a.classList.add(ye("gh")),r.appendChild(a),this.guideHeadElem_=a;const s=t.createElement("div");s.classList.add(u("tt")()),this.knobElement.appendChild(s),this.tooltipElem_=s,e.value.emitter.on("change",this.onChange_),this.value=e.value,this.refresh()}onDraggingChange_(t){if(null===t.rawValue)return void this.element.classList.remove(ye(void 0,"drg"));this.element.classList.add(ye(void 0,"drg"));const e=t.rawValue/this.props_.get("draggingScale"),n=e+(e>0?-1:e<0?1:0),i=ve(-n,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",[`M ${n+i},0 L${n},4 L${n+i},8`,`M ${e},-1 L${e},9`].join(" ")),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${e},4`);const r=this.props_.get("formatter");this.tooltipElem_.textContent=r(this.value.rawValue),this.tooltipElem_.style.left=`${e}px`}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value.rawValue)}onChange_(){this.refresh()}}class xe{constructor(t,e){var n;this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.parser_=e.parser,this.props=e.props,this.sliderProps_=null!==(n=e.sliderProps)&&void 0!==n?n:null,this.value=e.value,this.viewProps=e.viewProps,this.dragging_=C(null),this.view=new be(t,{arrayPosition:e.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);const i=new fe(this.view.knobElement);i.emitter.on("down",this.onPointerDown_),i.emitter.on("move",this.onPointerMove_),i.emitter.on("up",this.onPointerUp_)}constrainValue_(t){var e,n;const i=null===(e=this.sliderProps_)||void 0===e?void 0:e.get("minValue"),r=null===(n=this.sliderProps_)||void 0===n?void 0:n.get("maxValue");let o=t;return void 0!==i&&(o=Math.max(o,i)),void 0!==r&&(o=Math.min(o,r)),o}onInputChange_(t){const e=r(t.currentTarget),n=e.value,i=this.parser_(n);o(i)||(this.value.rawValue=this.constrainValue_(i)),this.view.refresh()}onInputKeyDown_(t){const e=le(this.baseStep_,ce(t));0!==e&&this.value.setRawValue(this.constrainValue_(this.value.rawValue+e),{forceEmit:!1,last:!1})}onInputKeyUp_(t){const e=le(this.baseStep_,ce(t));0!==e&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(t){if(!t.point)return null;const e=t.point.x-t.bounds.width/2;return this.constrainValue_(this.originRawValue_+e*this.props.get("draggingScale"))}onPointerMove_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_)}onPointerUp_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null)}}function we(t,e){t.write(e)}function _e(t){const e=t?ct(t,dt):null;return e?e.step:null}function Ce(t,e){const n=t&&ct(t,dt);return n?me(n.step):Math.max(me(e),2)}function Ae(t){const e=_e(t);return null!==e&&void 0!==e?e:1}function Ie(t,e){var n;const i=t&&ct(t,dt),r=Math.abs(null!==(n=null===i||void 0===i?void 0:i.step)&&void 0!==n?n:e);return 0===r?.1:Math.pow(10,Math.floor(Math.log10(r))-1)}function Se(t){return[t[0],t[1],t[2]]}function Me(t,e){const n=ee("float"===e?2:0),i=Se(t.getComponents("rgb",e)).map(t=>n(t));return`rgb(${i.join(", ")})`}function ke(t){return e=>{return Me(e,t)}}function Ee(t,e){const n=ee(2),i=ee("float"===e?2:0),r=t.getComponents("rgb",e).map((t,e)=>{const r=3===e?n:i;return r(t)});return`rgba(${r.join(", ")})`}function Te(t){return e=>{return Ee(e,t)}}function Oe(t,e){const n=ee("float"===e?2:0),i=["r","g","b"],r=Se(t.getComponents("rgb",e)).map((t,e)=>`${i[e]}: ${n(t)}`);return`{${r.join(", ")}}`}function Pe(t){return e=>Oe(e,t)}function je(t,e){const n=ee(2),i=ee("float"===e?2:0),r=["r","g","b","a"],o=t.getComponents("rgb",e).map((t,e)=>{const o=3===e?n:i;return`${r[e]}: ${o(t)}`});return`{${o.join(", ")}}`}function Le(t){return e=>je(e,t)}["int","float"].reduce((t,e)=>{return[...t,{format:{alpha:!1,mode:"rgb",notation:"func",type:e},stringifier:ke(e)},{format:{alpha:!0,mode:"rgb",notation:"func",type:e},stringifier:Te(e)},{format:{alpha:!1,mode:"rgb",notation:"object",type:e},stringifier:Pe(e)},{format:{alpha:!0,mode:"rgb",notation:"object",type:e},stringifier:Le(e)}]},[]);class De{constructor(t){this.components=t.components,this.asm_=t.assembly}constrain(t){const e=this.asm_.toComponents(t).map((t,e)=>{var n,i;return null!==(i=null===(n=this.components[e])||void 0===n?void 0:n.constrain(t))&&void 0!==i?i:t});return this.asm_.fromComponents(e)}}const Re=u("pndtxt");class Be{constructor(t,e){this.textViews=e.textViews,this.element=t.createElement("div"),this.element.classList.add(Re()),this.textViews.forEach(e=>{const n=t.createElement("div");n.classList.add(Re("a")),n.appendChild(e.element),this.element.appendChild(n)})}}function Ne(t,e,n){return new xe(t,{arrayPosition:0===n?"fst":n===e.axes.length-1?"lst":"mid",baseStep:e.axes[n].baseStep,parser:e.parser,props:e.axes[n].textProps,value:C(0,{constraint:e.axes[n].constraint}),viewProps:e.viewProps})}class Fe{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.acs_=e.axes.map((n,i)=>Ne(t,e,i)),this.acs_.forEach((t,n)=>{se({primary:this.value,secondary:t.value,forward:t=>{return e.assembly.toComponents(t.rawValue)[n]},backward:(t,i)=>{const r=e.assembly.toComponents(t.rawValue);return r[n]=i.rawValue,e.assembly.fromComponents(r)}})}),this.view=new Be(t,{textViews:this.acs_.map(t=>t.view)})}}function ze(t,e){return"step"in t&&!o(t.step)?new dt(t.step,e):null}function Ve(t){return o(t.max)||o(t.min)?o(t.max)&&o(t.min)?null:new ht({max:t.max,min:t.min}):new ut({max:t.max,min:t.min})}const Ge={monitor:{defaultInterval:200,defaultLineCount:3}},He=u("grl");class We{constructor(t,e){this.onCursorChange_=this.onCursorChange_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.element=t.createElement("div"),this.element.classList.add(He()),e.viewProps.bindClassModifiers(this.element),this.formatter_=e.formatter,this.props_=e.props,this.cursor_=e.cursor,this.cursor_.emitter.on("change",this.onCursorChange_);const n=t.createElementNS(G,"svg");n.classList.add(He("g")),n.style.height=`calc(var(--bld-us) * ${e.lineCount})`,this.element.appendChild(n),this.svgElem_=n;const i=t.createElementNS(G,"polyline");this.svgElem_.appendChild(i),this.lineElem_=i;const r=t.createElement("div");r.classList.add(He("t"),u("tt")()),this.element.appendChild(r),this.tooltipElem_=r,e.value.emitter.on("change",this.onValueUpdate_),this.value=e.value,this.update_()}get graphElement(){return this.svgElem_}update_(){const t=this.svgElem_.getBoundingClientRect(),e=this.value.rawValue.length-1,n=this.props_.get("minValue"),i=this.props_.get("maxValue"),r=[];this.value.rawValue.forEach((o,a)=>{if(void 0===o)return;const s=ge(a,0,e,0,t.width),l=ge(o,n,i,t.height,0);r.push([s,l].join(","))}),this.lineElem_.setAttributeNS(null,"points",r.join(" "));const o=this.tooltipElem_,a=this.value.rawValue[this.cursor_.rawValue];if(void 0===a)return void o.classList.remove(He("t","a"));const s=ge(this.cursor_.rawValue,0,e,0,t.width),l=ge(a,n,i,t.height,0);o.style.left=`${s}px`,o.style.top=`${l}px`,o.textContent=`${this.formatter_(a)}`,o.classList.contains(He("t","a"))||(o.classList.add(He("t","a"),He("t","in")),H(o),o.classList.remove(He("t","in")))}onValueUpdate_(){this.update_()}onCursorChange_(){this.update_()}}class Ue{constructor(t,e){if(this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphPointerDown_=this.onGraphPointerDown_.bind(this),this.onGraphPointerMove_=this.onGraphPointerMove_.bind(this),this.onGraphPointerUp_=this.onGraphPointerUp_.bind(this),this.props_=e.props,this.value=e.value,this.viewProps=e.viewProps,this.cursor_=C(-1),this.view=new We(t,{cursor:this.cursor_,formatter:e.formatter,lineCount:e.lineCount,props:this.props_,value:this.value,viewProps:this.viewProps}),U(t)){const t=new fe(this.view.element);t.emitter.on("down",this.onGraphPointerDown_),t.emitter.on("move",this.onGraphPointerMove_),t.emitter.on("up",this.onGraphPointerUp_)}else this.view.element.addEventListener("mousemove",this.onGraphMouseMove_),this.view.element.addEventListener("mouseleave",this.onGraphMouseLeave_)}onGraphMouseLeave_(){this.cursor_.rawValue=-1}onGraphMouseMove_(t){const e=this.view.element.getBoundingClientRect();this.cursor_.rawValue=Math.floor(ge(t.offsetX,0,e.width,0,this.value.rawValue.length))}onGraphPointerDown_(t){this.onGraphPointerMove_(t)}onGraphPointerMove_(t){t.data.point?this.cursor_.rawValue=Math.floor(ge(t.data.point.x,0,t.data.bounds.width,0,this.value.rawValue.length)):this.cursor_.rawValue=-1}onGraphPointerUp_(){this.cursor_.rawValue=-1}}class Ze{constructor(t){this.controller_=t}get disabled(){return this.controller_.viewProps.get("disabled")}set disabled(t){this.controller_.viewProps.set("disabled",t)}get title(){var t;return null!==(t=this.controller_.props.get("title"))&&void 0!==t?t:""}set title(t){this.controller_.props.set("title",t)}on(t,e){const i=e.bind(this),r=this.controller_.emitter;return r.on(t,()=>{i(new n(this))}),this}}class Ye extends n{constructor(t,e,n){super(t),this.cell=e,this.index=n}}class Xe extends e{constructor(t){super(t),this.cellToApiMap_=new Map,this.emitter_=new l;const e=this.controller_.valueController;e.cellControllers.forEach((t,n)=>{const i=new Ze(t);this.cellToApiMap_.set(t,i),t.emitter.on("click",()=>{const t=n%e.size[0],r=Math.floor(n/e.size[0]);this.emitter_.emit("click",{event:new Ye(this,i,[t,r])})})})}cell(t,e){const n=this.controller_.valueController,i=n.cellControllers[e*n.size[0]+t];return this.cellToApiMap_.get(i)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}class qe{constructor(t,e){this.size=e.size;const[n,i]=this.size,r=[];for(let o=0;o<i;o++)for(let i=0;i<n;i++){const n=new x(t,{props:A.fromObject(Object.assign({},e.cellConfig(i,o))),viewProps:B.create()});r.push(n)}this.cellCs_=r,this.viewProps=B.create(),this.viewProps.handleDispose(()=>{this.cellCs_.forEach(t=>{t.viewProps.set("disposed",!0)})}),this.view=new rt(t,{viewProps:this.viewProps,viewName:"btngrid"}),this.view.element.style.gridTemplateColumns=`repeat(${n}, 1fr)`,this.cellCs_.forEach(t=>{this.view.element.appendChild(t.view.element)})}get cellControllers(){return this.cellCs_}}const Ke={id:"buttongrid",type:"blade",css:'.tp-cbzgv,.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-radv_b:hover,.tp-rslv_k:hover,.tp-cbzv_b:hover{background-color:var(--btn-bg-h)}.tp-radv_b:focus,.tp-rslv_k:focus,.tp-cbzv_b:focus{background-color:var(--btn-bg-f)}.tp-radv_b:active,.tp-rslv_k:active,.tp-cbzv_b:active{background-color:var(--btn-bg-a)}.tp-radv_b:disabled,.tp-rslv_k:disabled,.tp-cbzv_b:disabled{opacity:.5}.tp-cbzgv{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-cbzgv:hover{background-color:var(--in-bg-h)}.tp-cbzgv:focus{background-color:var(--in-bg-f)}.tp-cbzgv:active{background-color:var(--in-bg-a)}.tp-cbzgv:disabled{opacity:.5}.tp-btngridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-btngridv.tp-v-disabled{opacity:.5}.tp-btngridv .tp-btnv_b:disabled{opacity:1}.tp-btngridv .tp-btnv_b:disabled .tp-btnv_t{opacity:.5}.tp-btngridv .tp-btnv_b{border-radius:0}.tp-cbzv{position:relative}.tp-cbzv_h{display:flex}.tp-cbzv_b{margin-right:4px;position:relative;width:var(--bld-us)}.tp-cbzv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-cbzv_b svg path{stroke:var(--bs-bg);stroke-width:2}.tp-cbzv_t{flex:1}.tp-cbzv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-cbzv.tp-cbzv-expanded .tp-cbzv_p{margin-top:var(--bld-s);opacity:1}.tp-cbzv.tp-cbzv-cpl .tp-cbzv_p{overflow:visible}.tp-cbzv .tp-popv{left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-cbzpv_t{margin-top:var(--bld-s)}.tp-cbzgv{height:auto;overflow:hidden;position:relative}.tp-cbzgv.tp-v-disabled{opacity:.5}.tp-cbzgv_p{left:16px;position:absolute;right:16px;top:0}.tp-cbzgv_g{cursor:pointer;display:block;height:calc(var(--bld-us)*5);width:100%}.tp-cbzgv_u{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_l{fill:rgba(0,0,0,0);stroke:var(--in-fg)}.tp-cbzgv_v{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_h{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;pointer-events:none;position:absolute;width:4px}.tp-cbzgv:focus .tp-cbzgv_h-sel{background-color:var(--in-fg);border-width:0}.tp-cbzprvv{cursor:pointer;height:4px;padding:4px 0;position:relative}.tp-cbzprvv_g{display:block;height:100%;overflow:visible;width:100%}.tp-cbzprvv_t{opacity:.5;stroke:var(--mo-fg)}.tp-cbzprvv_m{background-color:var(--mo-fg);border-radius:50%;height:4px;margin-left:-2px;margin-top:-2px;opacity:0;position:absolute;top:50%;transition:opacity .2s ease-out;width:4px}.tp-cbzprvv_m.tp-cbzprvv_m-a{opacity:1}.tp-fpsv{position:relative}.tp-fpsv_l{bottom:4px;color:var(--mo-fg);line-height:1;right:4px;pointer-events:none;position:absolute}.tp-fpsv_u{margin-left:.2em;opacity:.7}.tp-rslv{cursor:pointer;padding-left:8px;padding-right:8px}.tp-rslv.tp-v-disabled{opacity:.5}.tp-rslv_t{height:calc(var(--bld-us));position:relative}.tp-rslv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:-4px;right:-4px}.tp-rslv_b{bottom:0;top:0;position:absolute}.tp-rslv_b::before{background-color:var(--in-fg);content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}.tp-rslv_k{height:calc(var(--bld-us) - 8px);margin-top:calc((var(--bld-us) - 8px)/-2);position:absolute;top:50%;width:8px}.tp-rslv_k.tp-rslv_k-min{margin-left:-8px}.tp-rslv_k.tp-rslv_k-max{margin-left:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-min{border-bottom-right-radius:0;border-top-right-radius:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-max{border-bottom-left-radius:0;border-top-left-radius:0}.tp-rsltxtv{display:flex}.tp-rsltxtv_s{flex:1}.tp-rsltxtv_t{flex:1;margin-left:4px}.tp-radv_l{display:block;position:relative}.tp-radv_i{left:0;opacity:0;position:absolute;top:0}.tp-radv_b{opacity:.5}.tp-radv_i:hover+.tp-radv_b{background-color:var(--btn-bg-h)}.tp-radv_i:focus+.tp-radv_b{background-color:var(--btn-bg-f)}.tp-radv_i:active+.tp-radv_b{background-color:var(--btn-bg-a)}.tp-radv_i:checked+.tp-radv_b{opacity:1}.tp-radv_t{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0}.tp-radv_i:disabled+.tp-radv_b>.tp-radv_t{opacity:.5}.tp-radgridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-radgridv.tp-v-disabled{opacity:.5}.tp-radgridv .tp-radv_b{border-radius:0}',accept(t){const e=T,n=O(t,{cells:e.required.function,size:e.required.array(e.required.number),view:e.required.constant("buttongrid"),label:e.optional.string});return n?{params:n}:null},controller(t){return new Q(t.document,{blade:t.blade,props:A.fromObject({label:t.params.label}),valueController:new qe(t.document,{cellConfig:t.params.cells,size:t.params.size})})},api(t){return t.controller instanceof Q&&t.controller.valueController instanceof qe?new Xe(t.controller):null}};class Qe extends e{get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get value(){return this.controller_.valueController.value.rawValue}set value(t){this.controller_.valueController.value.rawValue=t}on(t,e){const n=e.bind(this);return this.controller_.valueController.value.emitter.on(t,t=>{n(new i(this,t.rawValue,void 0,t.options.last))}),this}}function Je(t,e,n){return t*(1-n)+e*n}const $e=20,tn=.001,en=100;function nn(t,e){let n=.25,i=.5,r=-1;for(let o=0;o<$e;o++){const[o,a]=t.curve(i);if(i+=n*(o<e?1:-1),r=a,n*=.5,Math.abs(e-o)<tn)break}return r}class rn{constructor(t=0,e=0,n=1,i=1){this.cache_=[],this.comps_=[t,e,n,i]}get x1(){return this.comps_[0]}get y1(){return this.comps_[1]}get x2(){return this.comps_[2]}get y2(){return this.comps_[3]}static isObject(t){return!o(t)&&(!!Array.isArray(t)&&("number"===typeof t[0]&&"number"===typeof t[1]&&"number"===typeof t[2]&&"number"===typeof t[3]))}static equals(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2}curve(t){const e=Je(0,this.x1,t),n=Je(0,this.y1,t),i=Je(this.x1,this.x2,t),r=Je(this.y1,this.y2,t),o=Je(this.x2,1,t),a=Je(this.y2,1,t),s=Je(e,i,t),l=Je(n,r,t),c=Je(i,o,t),u=Je(r,a,t);return[Je(s,c,t),Je(l,u,t)]}y(t){if(0===this.cache_.length){const t=[];for(let e=0;e<en;e++)t.push(nn(this,ge(e,0,en-1,0,1)));this.cache_=t}return this.cache_[Math.round(ge(ve(t,0,1),0,1,0,en-1))]}toObject(){return[this.comps_[0],this.comps_[1],this.comps_[2],this.comps_[3]]}}const on={toComponents:t=>t.toObject(),fromComponents:t=>new rn(...t)};function an(t){const e=ee(2),n=t.toObject().map(t=>e(t));return`cubic-bezier(${n.join(", ")})`}const sn=[0,.5,.5,1];function ln(t){const e=t.match(/^cubic-bezier\s*\(\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)\s*\)$/);if(!e)return new rn(...sn);const n=[e[1],e[2],e[3],e[4]].reduce((t,e)=>{if(!t)return null;const n=Number(e);return isNaN(n)?null:[...t,n]},[]);return new rn(...null!==n&&void 0!==n?n:sn)}const cn=u("cbz");class un{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(cn()),e.viewProps.bindClassModifiers(this.element),e.foldable.bindExpandedClass(this.element,cn(void 0,"expanded")),f(e.foldable,"completed",m(this.element,cn(void 0,"cpl")));const n=t.createElement("div");n.classList.add(cn("h")),this.element.appendChild(n);const i=t.createElement("button");i.classList.add(cn("b")),e.viewProps.bindDisabled(i);const r=t.createElementNS(G,"svg");r.innerHTML='<path d="M2 13C8 13 8 3 14 3"/>',i.appendChild(r),n.appendChild(i),this.buttonElement=i;const o=t.createElement("div");if(o.classList.add(cn("t")),n.appendChild(o),this.textElement=o,"inline"===e.pickerLayout){const e=t.createElement("div");e.classList.add(cn("p")),this.element.appendChild(e),this.pickerElement=e}else this.pickerElement=null}}const hn=u("cbzp");class dn{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(hn()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(hn("g")),this.element.appendChild(n),this.graphElement=n;const i=t.createElement("div");i.classList.add(hn("t")),this.element.appendChild(i),this.textElement=i}}function pn(t,e){const n=new MutationObserver(t=>{for(const i of t)"childList"===i.type&&i.addedNodes.forEach(t=>{t.contains(t)&&(e(),n.disconnect())})}),i=t.ownerDocument;n.observe(i.body,{attributes:!0,childList:!0,subtree:!0})}const fn=u("cbzg");function gn(t,e){return n=>e(t(n))}class mn{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(fn()),e.viewProps.bindClassModifiers(this.element),e.viewProps.bindTabIndex(this.element);const n=t.createElement("div");n.classList.add(fn("p")),this.element.appendChild(n),this.previewElement=n;const i=t.createElementNS(G,"svg");i.classList.add(fn("g")),this.element.appendChild(i),this.svgElem_=i;const r=t.createElementNS(G,"path");r.classList.add(fn("u")),this.svgElem_.appendChild(r),this.guideElem_=r;const o=t.createElementNS(G,"polyline");o.classList.add(fn("l")),this.svgElem_.appendChild(o),this.lineElem_=o,this.handleElems_=[t.createElement("div"),t.createElement("div")],this.handleElems_.forEach(t=>{t.classList.add(fn("h")),this.element.appendChild(t)}),this.vectorElems_=[t.createElementNS(G,"line"),t.createElementNS(G,"line")],this.vectorElems_.forEach(t=>{t.classList.add(fn("v")),this.svgElem_.appendChild(t)}),this.value_=e.value,this.value_.emitter.on("change",this.onValueChange_.bind(this)),this.sel_=e.selection,this.handleElems_.forEach((t,e)=>{p(this.sel_,gn(t=>t===e,m(t,fn("h","sel"))))}),pn(this.element,()=>{this.refresh()})}getVertMargin_(t){return.25*t}valueToPosition(t,e){const n=this.element.getBoundingClientRect(),i=n.width,r=n.height,o=this.getVertMargin_(r);return{x:ge(t,0,1,0,i),y:ge(e,0,1,r-o,o)}}positionToValue(t,e){const n=this.element.getBoundingClientRect(),i=n.width,r=n.height,o=this.getVertMargin_(r);return{x:ve(ge(t,0,i,0,1),0,1),y:ge(e,r-o,o,0,1)}}refresh(){this.guideElem_.setAttributeNS(null,"d",[0,1].map(t=>{const e=this.valueToPosition(0,t),n=this.valueToPosition(1,t);return[`M ${e.x},${e.y}`,`L ${n.x},${n.y}`].join(" ")}).join(" "));const t=this.value_.rawValue,e=[];let n=0;for(;;){const i=this.valueToPosition(...t.curve(n));if(e.push([i.x,i.y].join(",")),n>=1)break;n=Math.min(n+.05,1)}this.lineElem_.setAttributeNS(null,"points",e.join(" "));const i=t.toObject();[0,1].forEach(t=>{const e=this.valueToPosition(t,t),n=this.valueToPosition(i[2*t],i[2*t+1]),r=this.vectorElems_[t];r.setAttributeNS(null,"x1",String(e.x)),r.setAttributeNS(null,"y1",String(e.y)),r.setAttributeNS(null,"x2",String(n.x)),r.setAttributeNS(null,"y2",String(n.y));const o=this.handleElems_[t];o.style.left=`${n.x}px`,o.style.top=`${n.y}px`})}onValueChange_(){this.refresh()}}const vn=24,yn=400,bn=1e3,xn=u("cbzprv");class wn{constructor(t,e){this.stopped_=!0,this.startTime_=-1,this.onDispose_=this.onDispose_.bind(this),this.onTimer_=this.onTimer_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(xn()),e.viewProps.bindClassModifiers(this.element);const n=t.createElementNS(G,"svg");n.classList.add(xn("g")),this.element.appendChild(n),this.svgElem_=n;const i=t.createElementNS(G,"path");i.classList.add(xn("t")),this.svgElem_.appendChild(i),this.ticksElem_=i;const r=t.createElement("div");r.classList.add(xn("m")),this.element.appendChild(r),this.markerElem_=r,this.value_=e.value,this.value_.emitter.on("change",this.onValueChange_),e.viewProps.handleDispose(this.onDispose_),pn(this.element,()=>{this.refresh()})}play(){this.stop(),this.updateMarker_(0),this.markerElem_.classList.add(xn("m","a")),this.startTime_=(new Date).getTime()+yn,this.stopped_=!1,requestAnimationFrame(this.onTimer_)}stop(){this.stopped_=!0,this.markerElem_.classList.remove(xn("m","a"))}onDispose_(){this.stop()}updateMarker_(t){const e=this.value_.rawValue.y(ve(t,0,1));this.markerElem_.style.left=`${100*e}%`}refresh(){const t=this.svgElem_.getBoundingClientRect(),e=t.width,n=t.height,i=[],r=this.value_.rawValue;for(let o=0;o<vn;o++){const t=ge(o,0,vn-1,0,1),a=ge(r.y(t),0,1,0,e);i.push(`M ${a},0 v${n}`)}this.ticksElem_.setAttributeNS(null,"d",i.join(" "))}onTimer_(){if(null===this.startTime_)return;const t=(new Date).getTime()-this.startTime_,e=t/bn;this.updateMarker_(e),t>bn+yn&&this.stop(),this.stopped_||requestAnimationFrame(this.onTimer_)}onValueChange_(){this.refresh(),this.play()}}function _n(t,e,n,i){const r=n-t,o=i-e;return Math.sqrt(r*r+o*o)}function Cn(t,e,n,i){const r=_n(t,e,n,i),o=Math.atan2(i-e,n-t),a=Math.round(o/(Math.PI/4))*Math.PI/4;return{x:t+Math.cos(a)*r,y:e+Math.sin(a)*r}}class An{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.value=e.value,this.sel_=C(0),this.viewProps=e.viewProps,this.view=new mn(t,{selection:this.sel_,value:this.value,viewProps:this.viewProps}),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_),this.prevView_=new wn(t,{value:this.value,viewProps:this.viewProps}),this.prevView_.element.addEventListener("mousedown",t=>{t.stopImmediatePropagation(),t.preventDefault(),this.prevView_.play()}),this.view.previewElement.appendChild(this.prevView_.element);const n=new fe(this.view.element);n.emitter.on("down",this.onPointerDown_),n.emitter.on("move",this.onPointerMove_),n.emitter.on("up",this.onPointerUp_)}refresh(){this.view.refresh(),this.prevView_.refresh(),this.prevView_.play()}updateValue_(t,e,n){const i=this.sel_.rawValue,r=this.value.rawValue.toObject(),o=this.view.positionToValue(t.x,t.y),a=e?Cn(i,i,o.x,o.y):o;r[2*i]=a.x,r[2*i+1]=a.y,this.value.setRawValue(new rn(...r),n)}onPointerDown_(t){const e=t.data;if(!e.point)return;const n=this.value.rawValue,i=this.view.valueToPosition(n.x1,n.y1),r=_n(e.point.x,e.point.y,i.x,i.y),o=this.view.valueToPosition(n.x2,n.y2),a=_n(e.point.x,e.point.y,o.x,o.y);this.sel_.rawValue=r<=a?0:1,this.updateValue_(e.point,t.shiftKey,{forceEmit:!1,last:!1})}onPointerMove_(t){const e=t.data;e.point&&this.updateValue_(e.point,t.shiftKey,{forceEmit:!1,last:!1})}onPointerUp_(t){const e=t.data;e.point&&this.updateValue_(e.point,t.shiftKey,{forceEmit:!0,last:!0})}onKeyDown_(t){de(t.key)&&t.preventDefault();const e=this.sel_.rawValue,n=this.value.rawValue.toObject();n[2*e]+=le(this.baseStep_,ue(t)),n[2*e+1]+=le(this.baseStep_,ce(t)),this.value.setRawValue(new rn(...n),{forceEmit:!1,last:!1})}onKeyUp_(t){de(t.key)&&t.preventDefault();const e=le(this.baseStep_,ue(t)),n=le(this.baseStep_,ce(t));0===e&&0===n||this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class In{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new dn(t,{viewProps:this.viewProps}),this.gc_=new An(t,{baseStep:e.axis.baseStep,value:this.value,viewProps:this.viewProps}),this.view.graphElement.appendChild(this.gc_.view.element);const n=Object.assign(Object.assign({},e.axis),{constraint:new ht({max:1,min:0})}),i=Object.assign(Object.assign({},e.axis),{constraint:void 0});this.tc_=new Fe(t,{assembly:on,axes:[n,i,n,i],parser:$t,value:this.value,viewProps:this.viewProps}),this.view.textElement.appendChild(this.tc_.view.element)}get allFocusableElements(){return[this.gc_.view.element,...this.tc_.view.textViews.map(t=>t.inputElement)]}refresh(){this.gc_.refresh()}}class Sn{constructor(t,e){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.foldable_=tt(e.expanded),this.view=new un(t,{foldable:this.foldable_,pickerLayout:e.pickerLayout,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("blur",this.onButtonBlur_),this.view.buttonElement.addEventListener("click",this.onButtonClick_),this.tc_=new yt(t,{parser:ln,props:A.fromObject({formatter:an}),value:this.value,viewProps:this.viewProps}),this.view.textElement.appendChild(this.tc_.view.element),this.popC_="popup"===e.pickerLayout?new gt(t,{viewProps:this.viewProps}):null;const n=new In(t,{axis:e.axis,value:this.value,viewProps:this.viewProps});n.allFocusableElements.forEach(t=>{t.addEventListener("blur",this.onPopupChildBlur_),t.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=n,this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(this.pickerC_.view.element),p(this.popC_.shows,t=>{t&&n.refresh()}),se({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:t=>t.rawValue,backward:(t,e)=>e.rawValue})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),it(this.foldable_,this.view.pickerElement))}onButtonBlur_(t){if(!this.popC_)return;const e=r(t.relatedTarget);e&&this.popC_.view.element.contains(e)||(this.popC_.shows.rawValue=!1)}onButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.allFocusableElements[0].focus()}onPopupChildBlur_(t){if(!this.popC_)return;const e=this.popC_.view.element,n=Y(t);n&&e.contains(n)||n&&n===this.view.buttonElement&&!U(e.ownerDocument)||(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(t){this.popC_&&"Escape"===t.key&&(this.popC_.shows.rawValue=!1)}}function Mn(){return new De({assembly:on,components:[0,1,2,3].map(t=>t%2===0?new ht({min:0,max:1}):void 0)})}const kn={id:"cubic-bezier",type:"blade",css:'.tp-cbzgv,.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-radv_b:hover,.tp-rslv_k:hover,.tp-cbzv_b:hover{background-color:var(--btn-bg-h)}.tp-radv_b:focus,.tp-rslv_k:focus,.tp-cbzv_b:focus{background-color:var(--btn-bg-f)}.tp-radv_b:active,.tp-rslv_k:active,.tp-cbzv_b:active{background-color:var(--btn-bg-a)}.tp-radv_b:disabled,.tp-rslv_k:disabled,.tp-cbzv_b:disabled{opacity:.5}.tp-cbzgv{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-cbzgv:hover{background-color:var(--in-bg-h)}.tp-cbzgv:focus{background-color:var(--in-bg-f)}.tp-cbzgv:active{background-color:var(--in-bg-a)}.tp-cbzgv:disabled{opacity:.5}.tp-btngridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-btngridv.tp-v-disabled{opacity:.5}.tp-btngridv .tp-btnv_b:disabled{opacity:1}.tp-btngridv .tp-btnv_b:disabled .tp-btnv_t{opacity:.5}.tp-btngridv .tp-btnv_b{border-radius:0}.tp-cbzv{position:relative}.tp-cbzv_h{display:flex}.tp-cbzv_b{margin-right:4px;position:relative;width:var(--bld-us)}.tp-cbzv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-cbzv_b svg path{stroke:var(--bs-bg);stroke-width:2}.tp-cbzv_t{flex:1}.tp-cbzv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-cbzv.tp-cbzv-expanded .tp-cbzv_p{margin-top:var(--bld-s);opacity:1}.tp-cbzv.tp-cbzv-cpl .tp-cbzv_p{overflow:visible}.tp-cbzv .tp-popv{left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-cbzpv_t{margin-top:var(--bld-s)}.tp-cbzgv{height:auto;overflow:hidden;position:relative}.tp-cbzgv.tp-v-disabled{opacity:.5}.tp-cbzgv_p{left:16px;position:absolute;right:16px;top:0}.tp-cbzgv_g{cursor:pointer;display:block;height:calc(var(--bld-us)*5);width:100%}.tp-cbzgv_u{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_l{fill:rgba(0,0,0,0);stroke:var(--in-fg)}.tp-cbzgv_v{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_h{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;pointer-events:none;position:absolute;width:4px}.tp-cbzgv:focus .tp-cbzgv_h-sel{background-color:var(--in-fg);border-width:0}.tp-cbzprvv{cursor:pointer;height:4px;padding:4px 0;position:relative}.tp-cbzprvv_g{display:block;height:100%;overflow:visible;width:100%}.tp-cbzprvv_t{opacity:.5;stroke:var(--mo-fg)}.tp-cbzprvv_m{background-color:var(--mo-fg);border-radius:50%;height:4px;margin-left:-2px;margin-top:-2px;opacity:0;position:absolute;top:50%;transition:opacity .2s ease-out;width:4px}.tp-cbzprvv_m.tp-cbzprvv_m-a{opacity:1}.tp-fpsv{position:relative}.tp-fpsv_l{bottom:4px;color:var(--mo-fg);line-height:1;right:4px;pointer-events:none;position:absolute}.tp-fpsv_u{margin-left:.2em;opacity:.7}.tp-rslv{cursor:pointer;padding-left:8px;padding-right:8px}.tp-rslv.tp-v-disabled{opacity:.5}.tp-rslv_t{height:calc(var(--bld-us));position:relative}.tp-rslv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:-4px;right:-4px}.tp-rslv_b{bottom:0;top:0;position:absolute}.tp-rslv_b::before{background-color:var(--in-fg);content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}.tp-rslv_k{height:calc(var(--bld-us) - 8px);margin-top:calc((var(--bld-us) - 8px)/-2);position:absolute;top:50%;width:8px}.tp-rslv_k.tp-rslv_k-min{margin-left:-8px}.tp-rslv_k.tp-rslv_k-max{margin-left:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-min{border-bottom-right-radius:0;border-top-right-radius:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-max{border-bottom-left-radius:0;border-top-left-radius:0}.tp-rsltxtv{display:flex}.tp-rsltxtv_s{flex:1}.tp-rsltxtv_t{flex:1;margin-left:4px}.tp-radv_l{display:block;position:relative}.tp-radv_i{left:0;opacity:0;position:absolute;top:0}.tp-radv_b{opacity:.5}.tp-radv_i:hover+.tp-radv_b{background-color:var(--btn-bg-h)}.tp-radv_i:focus+.tp-radv_b{background-color:var(--btn-bg-f)}.tp-radv_i:active+.tp-radv_b{background-color:var(--btn-bg-a)}.tp-radv_i:checked+.tp-radv_b{opacity:1}.tp-radv_t{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0}.tp-radv_i:disabled+.tp-radv_b>.tp-radv_t{opacity:.5}.tp-radgridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-radgridv.tp-v-disabled{opacity:.5}.tp-radgridv .tp-radv_b{border-radius:0}',accept(t){const e=T,n=O(t,{value:e.required.array(e.required.number),view:e.required.constant("cubicbezier"),expanded:e.optional.boolean,label:e.optional.string,picker:e.optional.custom(t=>{return"inline"===t||"popup"===t?t:void 0})});return n?{params:n}:null},controller(t){var e,n;const i=new rn(...t.params.value),r=C(i,{constraint:Mn(),equals:rn.equals}),o=new Sn(t.document,{axis:{baseStep:.1,textProps:A.fromObject({draggingScale:.01,formatter:ee(2)})},expanded:null!==(e=t.params.expanded)&&void 0!==e&&e,pickerLayout:null!==(n=t.params.picker)&&void 0!==n?n:"popup",value:r,viewProps:t.viewProps});return new ot(t.document,{blade:t.blade,props:A.fromObject({label:t.params.label}),valueController:o})},api(t){return t.controller instanceof ot&&t.controller.valueController instanceof Sn?new Qe(t.controller):null}};class En extends e{begin(){this.controller_.valueController.begin()}end(){this.controller_.valueController.end()}}const Tn=20;class On{constructor(){this.start_=null,this.duration_=0,this.fps_=null,this.frameCount_=0,this.timestamps_=[]}get duration(){return this.duration_}get fps(){return this.fps_}begin(t){this.start_=t.getTime()}calculateFps_(t){if(0===this.timestamps_.length)return null;const e=this.timestamps_[0];return 1e3*(this.frameCount_-e.frameCount)/(t-e.time)}compactTimestamps_(){if(this.timestamps_.length<=Tn)return;const t=this.timestamps_.length-Tn;this.timestamps_.splice(0,t);const e=this.timestamps_[0].frameCount;this.timestamps_.forEach(t=>{t.frameCount-=e}),this.frameCount_-=e}end(t){if(null===this.start_)return;const e=t.getTime();this.duration_=e-this.start_,this.start_=null,this.fps_=this.calculateFps_(e),this.timestamps_.push({frameCount:this.frameCount_,time:e}),++this.frameCount_,this.compactTimestamps_()}}const Pn=u("fps");class jn{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Pn()),e.viewProps.bindClassModifiers(this.element),this.graphElement=t.createElement("div"),this.graphElement.classList.add(Pn("g")),this.element.appendChild(this.graphElement);const n=t.createElement("div");n.classList.add(Pn("l")),this.element.appendChild(n);const i=t.createElement("span");i.classList.add(Pn("v")),i.textContent="--",n.appendChild(i),this.valueElement=i;const r=t.createElement("span");r.classList.add(Pn("u")),r.textContent="FPS",n.appendChild(r)}}class Ln{constructor(t,e){this.stopwatch_=new On,this.onTick_=this.onTick_.bind(this),this.ticker_=e.ticker,this.ticker_.emitter.on("tick",this.onTick_),this.value_=e.value,this.viewProps=e.viewProps,this.view=new jn(t,{viewProps:this.viewProps}),this.graphC_=new Ue(t,{formatter:ee(0),lineCount:e.lineCount,props:A.fromObject({maxValue:e.maxValue,minValue:e.minValue}),value:this.value_,viewProps:this.viewProps}),this.view.graphElement.appendChild(this.graphC_.view.element),this.viewProps.handleDispose(()=>{this.graphC_.viewProps.set("disposed",!0),this.ticker_.dispose()})}begin(){this.stopwatch_.begin(new Date)}end(){this.stopwatch_.end(new Date)}onTick_(){const t=this.stopwatch_.fps;if(null!==t){const e=this.value_.rawValue;this.value_.rawValue=ae(e,t),this.view.valueElement.textContent=t.toFixed(0)}}}function Dn(t,e){return 0===e?new at:new st(t,null!==e&&void 0!==e?e:Ge.monitor.defaultInterval)}const Rn={id:"fpsgraph",type:"blade",accept(t){const e=T,n=O(t,{view:e.required.constant("fpsgraph"),interval:e.optional.number,label:e.optional.string,lineCount:e.optional.number,max:e.optional.number,min:e.optional.number});return n?{params:n}:null},controller(t){var e,n,i,r;const o=null!==(e=t.params.interval)&&void 0!==e?e:500;return new Q(t.document,{blade:t.blade,props:A.fromObject({label:t.params.label}),valueController:new Ln(t.document,{lineCount:null!==(n=t.params.lineCount)&&void 0!==n?n:2,maxValue:null!==(i=t.params.max)&&void 0!==i?i:90,minValue:null!==(r=t.params.min)&&void 0!==r?r:0,ticker:Dn(t.document,o),value:re(80),viewProps:t.viewProps})})},api(t){return t.controller instanceof Q&&t.controller.valueController instanceof Ln?new En(t.controller):null}};class Bn{constructor(t,e){this.min=t,this.max=e}static isObject(t){if("object"!==typeof t||null===t)return!1;const e=t.min,n=t.max;return"number"===typeof e&&"number"===typeof n}static equals(t,e){return t.min===e.min&&t.max===e.max}get length(){return this.max-this.min}toObject(){return{min:this.min,max:this.max}}}const Nn={fromComponents:t=>new Bn(t[0],t[1]),toComponents:t=>[t.min,t.max]};class Fn{constructor(t){this.edge=t}constrain(t){var e,n,i,r,o,a,s,l;if(t.min<=t.max)return new Bn(null!==(n=null===(e=this.edge)||void 0===e?void 0:e.constrain(t.min))&&void 0!==n?n:t.min,null!==(r=null===(i=this.edge)||void 0===i?void 0:i.constrain(t.max))&&void 0!==r?r:t.max);const c=(t.min+t.max)/2;return new Bn(null!==(a=null===(o=this.edge)||void 0===o?void 0:o.constrain(c))&&void 0!==a?a:c,null!==(l=null===(s=this.edge)||void 0===s?void 0:s.constrain(c))&&void 0!==l?l:c)}}const zn=u("rsltxt");class Vn{constructor(t,e){this.sliderView_=e.sliderView,this.textView_=e.textView,this.element=t.createElement("div"),this.element.classList.add(zn());const n=t.createElement("div");n.classList.add(zn("s")),n.appendChild(this.sliderView_.element),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(zn("t")),i.appendChild(this.textView_.element),this.element.appendChild(i)}}const Gn=u("rsl");class Hn{constructor(t,e){this.onSliderPropsChange_=this.onSliderPropsChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.sliderProps_=e.sliderProps,this.sliderProps_.emitter.on("change",this.onSliderPropsChange_),this.element=t.createElement("div"),this.element.classList.add(Gn()),e.viewProps.bindClassModifiers(this.element),this.value_=e.value,this.value_.emitter.on("change",this.onValueChange_);const n=t.createElement("div");n.classList.add(Gn("t")),this.element.appendChild(n),this.trackElement=n;const i=t.createElement("div");i.classList.add(Gn("b")),n.appendChild(i),this.barElement=i;const r=["min","max"].map(e=>{const i=t.createElement("div");return i.classList.add(Gn("k"),Gn("k",e)),n.appendChild(i),i});this.knobElements=[r[0],r[1]],this.update_()}valueToX_(t){const e=this.sliderProps_.get("minValue"),n=this.sliderProps_.get("maxValue");return 100*ve(ge(t,e,n,0,1),0,1)}update_(){const t=this.value_.rawValue;0===t.length?this.element.classList.add(Gn(void 0,"zero")):this.element.classList.remove(Gn(void 0,"zero"));const e=[this.valueToX_(t.min),this.valueToX_(t.max)];this.barElement.style.left=`${e[0]}%`,this.barElement.style.right=`${100-e[1]}%`,this.knobElements.forEach((t,n)=>{t.style.left=`${e[n]}%`})}onSliderPropsChange_(){this.update_()}onValueChange_(){this.update_()}}class Wn{constructor(t,e){this.grabbing_=null,this.grabOffset_=0,this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.sliderProps=e.sliderProps,this.viewProps=e.viewProps,this.value=e.value,this.view=new Hn(t,{sliderProps:this.sliderProps,value:this.value,viewProps:e.viewProps});const n=new fe(this.view.trackElement);n.emitter.on("down",this.onPointerDown_),n.emitter.on("move",this.onPointerMove_),n.emitter.on("up",this.onPointerUp_)}ofs_(){return"min"===this.grabbing_?this.view.knobElements[0].getBoundingClientRect().width/2:"max"===this.grabbing_?-this.view.knobElements[1].getBoundingClientRect().width/2:0}valueFromData_(t){if(!t.point)return null;const e=(t.point.x+this.ofs_())/t.bounds.width,n=this.sliderProps.get("minValue"),i=this.sliderProps.get("maxValue");return ge(e,0,1,n,i)}onPointerDown_(t){if(!t.data.point)return;const e=t.data.point.x/t.data.bounds.width,n=this.value.rawValue,i=this.sliderProps.get("minValue"),r=this.sliderProps.get("maxValue"),o=ge(n.min,i,r,0,1),a=ge(n.max,i,r,0,1);Math.abs(a-e)<=.025?this.grabbing_="max":Math.abs(o-e)<=.025?this.grabbing_="min":e>=o&&e<=a?(this.grabbing_="length",this.grabOffset_=ge(e-o,0,1,0,r-i)):e<o?(this.grabbing_="min",this.onPointerMove_(t)):e>a&&(this.grabbing_="max",this.onPointerMove_(t))}applyPointToValue_(t,e){const n=this.valueFromData_(t);if(null===n)return;const i=this.sliderProps.get("minValue"),r=this.sliderProps.get("maxValue");if("min"===this.grabbing_)this.value.setRawValue(new Bn(n,this.value.rawValue.max),e);else if("max"===this.grabbing_)this.value.setRawValue(new Bn(this.value.rawValue.min,n),e);else if("length"===this.grabbing_){const t=this.value.rawValue.length;let o=n-this.grabOffset_,a=o+t;o<i?(o=i,a=i+t):a>r&&(o=r-t,a=r),this.value.setRawValue(new Bn(o,a),e)}}onPointerMove_(t){this.applyPointToValue_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.applyPointToValue_(t.data,{forceEmit:!0,last:!0}),this.grabbing_=null}}class Un{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.sc_=new Wn(t,e);const n={baseStep:e.baseStep,constraint:e.constraint,textProps:A.fromObject({draggingScale:e.draggingScale,formatter:e.formatter})};this.tc_=new Fe(t,{assembly:Nn,axes:[n,n],parser:e.parser,value:this.value,viewProps:e.viewProps}),this.view=new Vn(t,{sliderView:this.sc_.view,textView:this.tc_.view})}get textController(){return this.tc_}}function Zn(t){return Bn.isObject(t)?new Bn(t.min,t.max):new Bn(0,0)}function Yn(t,e){t.writeProperty("max",e.max),t.writeProperty("min",e.min)}function Xn(t){const e=[],n=Ve(t);n&&e.push(n);const i=ze(t);return i&&e.push(i),new Fn(new lt(e))}const qn={id:"input-interval",type:"input",css:'.tp-cbzgv,.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-radv_b:hover,.tp-rslv_k:hover,.tp-cbzv_b:hover{background-color:var(--btn-bg-h)}.tp-radv_b:focus,.tp-rslv_k:focus,.tp-cbzv_b:focus{background-color:var(--btn-bg-f)}.tp-radv_b:active,.tp-rslv_k:active,.tp-cbzv_b:active{background-color:var(--btn-bg-a)}.tp-radv_b:disabled,.tp-rslv_k:disabled,.tp-cbzv_b:disabled{opacity:.5}.tp-cbzgv{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-cbzgv:hover{background-color:var(--in-bg-h)}.tp-cbzgv:focus{background-color:var(--in-bg-f)}.tp-cbzgv:active{background-color:var(--in-bg-a)}.tp-cbzgv:disabled{opacity:.5}.tp-btngridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-btngridv.tp-v-disabled{opacity:.5}.tp-btngridv .tp-btnv_b:disabled{opacity:1}.tp-btngridv .tp-btnv_b:disabled .tp-btnv_t{opacity:.5}.tp-btngridv .tp-btnv_b{border-radius:0}.tp-cbzv{position:relative}.tp-cbzv_h{display:flex}.tp-cbzv_b{margin-right:4px;position:relative;width:var(--bld-us)}.tp-cbzv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-cbzv_b svg path{stroke:var(--bs-bg);stroke-width:2}.tp-cbzv_t{flex:1}.tp-cbzv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-cbzv.tp-cbzv-expanded .tp-cbzv_p{margin-top:var(--bld-s);opacity:1}.tp-cbzv.tp-cbzv-cpl .tp-cbzv_p{overflow:visible}.tp-cbzv .tp-popv{left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-cbzpv_t{margin-top:var(--bld-s)}.tp-cbzgv{height:auto;overflow:hidden;position:relative}.tp-cbzgv.tp-v-disabled{opacity:.5}.tp-cbzgv_p{left:16px;position:absolute;right:16px;top:0}.tp-cbzgv_g{cursor:pointer;display:block;height:calc(var(--bld-us)*5);width:100%}.tp-cbzgv_u{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_l{fill:rgba(0,0,0,0);stroke:var(--in-fg)}.tp-cbzgv_v{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_h{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;pointer-events:none;position:absolute;width:4px}.tp-cbzgv:focus .tp-cbzgv_h-sel{background-color:var(--in-fg);border-width:0}.tp-cbzprvv{cursor:pointer;height:4px;padding:4px 0;position:relative}.tp-cbzprvv_g{display:block;height:100%;overflow:visible;width:100%}.tp-cbzprvv_t{opacity:.5;stroke:var(--mo-fg)}.tp-cbzprvv_m{background-color:var(--mo-fg);border-radius:50%;height:4px;margin-left:-2px;margin-top:-2px;opacity:0;position:absolute;top:50%;transition:opacity .2s ease-out;width:4px}.tp-cbzprvv_m.tp-cbzprvv_m-a{opacity:1}.tp-fpsv{position:relative}.tp-fpsv_l{bottom:4px;color:var(--mo-fg);line-height:1;right:4px;pointer-events:none;position:absolute}.tp-fpsv_u{margin-left:.2em;opacity:.7}.tp-rslv{cursor:pointer;padding-left:8px;padding-right:8px}.tp-rslv.tp-v-disabled{opacity:.5}.tp-rslv_t{height:calc(var(--bld-us));position:relative}.tp-rslv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:-4px;right:-4px}.tp-rslv_b{bottom:0;top:0;position:absolute}.tp-rslv_b::before{background-color:var(--in-fg);content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}.tp-rslv_k{height:calc(var(--bld-us) - 8px);margin-top:calc((var(--bld-us) - 8px)/-2);position:absolute;top:50%;width:8px}.tp-rslv_k.tp-rslv_k-min{margin-left:-8px}.tp-rslv_k.tp-rslv_k-max{margin-left:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-min{border-bottom-right-radius:0;border-top-right-radius:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-max{border-bottom-left-radius:0;border-top-left-radius:0}.tp-rsltxtv{display:flex}.tp-rsltxtv_s{flex:1}.tp-rsltxtv_t{flex:1;margin-left:4px}.tp-radv_l{display:block;position:relative}.tp-radv_i{left:0;opacity:0;position:absolute;top:0}.tp-radv_b{opacity:.5}.tp-radv_i:hover+.tp-radv_b{background-color:var(--btn-bg-h)}.tp-radv_i:focus+.tp-radv_b{background-color:var(--btn-bg-f)}.tp-radv_i:active+.tp-radv_b{background-color:var(--btn-bg-a)}.tp-radv_i:checked+.tp-radv_b{opacity:1}.tp-radv_t{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0}.tp-radv_i:disabled+.tp-radv_b>.tp-radv_t{opacity:.5}.tp-radgridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-radgridv.tp-v-disabled{opacity:.5}.tp-radgridv .tp-radv_b{border-radius:0}',accept:(t,e)=>{if(!Bn.isObject(t))return null;const n=T,i=O(e,{format:n.optional.function,max:n.optional.number,min:n.optional.number,step:n.optional.number});return i?{initialValue:new Bn(t.min,t.max),params:i}:null},binding:{reader:t=>Zn,constraint:t=>Xn(t.params),equals:Bn.equals,writer:t=>Yn},controller(t){var e;const n=t.value,i=t.constraint;if(!(i instanceof Fn))throw s.shouldNeverHappen();const r=(n.rawValue.min+n.rawValue.max)/2,o=null!==(e=t.params.format)&&void 0!==e?e:ee(Ce(i.edge,r)),a=i.edge&&ct(i.edge,ut);if(a)return new Un(t.document,{baseStep:Ae(i.edge),constraint:i.edge,draggingScale:Ie(i.edge,r),formatter:o,parser:$t,sliderProps:new A({maxValue:a.values.value("max"),minValue:a.values.value("min")}),value:n,viewProps:t.viewProps});const l={baseStep:Ae(i.edge),constraint:i.edge,textProps:A.fromObject({draggingScale:r,formatter:o})};return new Fe(t.document,{assembly:Nn,axes:[l,l],parser:$t,value:n,viewProps:t.viewProps})}};class Kn{constructor(t){this.controller_=t}get disabled(){return this.controller_.viewProps.get("disabled")}set disabled(t){this.controller_.viewProps.set("disabled",t)}get title(){var t;return null!==(t=this.controller_.props.get("title"))&&void 0!==t?t:""}set title(t){this.controller_.props.set("title",t)}}class Qn extends i{constructor(t,e,n,i,r){super(t,i,r),this.cell=e,this.index=n}}class Jn extends e{constructor(t){super(t),this.cellToApiMap_=new Map;const e=this.controller_.valueController;e.cellControllers.forEach(t=>{const e=new Kn(t);this.cellToApiMap_.set(t,e)})}get value(){return this.controller_.value}cell(t,e){const n=this.controller_.valueController,i=n.cellControllers[e*n.size[0]+t];return this.cellToApiMap_.get(i)}on(t,e){const n=e.bind(this);this.controller_.value.emitter.on(t,t=>{const e=this.controller_.valueController,i=e.findCellByValue(t.rawValue);if(!i)return;const r=this.cellToApiMap_.get(i);if(!r)return;const o=e.cellControllers.indexOf(i);n(new Qn(this,r,[o%e.size[0],Math.floor(o/e.size[0])],t.rawValue,void 0))})}}const $n=u("rad");class ti{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add($n()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("label");n.classList.add($n("l")),this.element.appendChild(n);const i=t.createElement("input");i.classList.add($n("i")),i.name=e.name,i.type="radio",e.viewProps.bindDisabled(i),n.appendChild(i),this.inputElement=i;const r=t.createElement("div");r.classList.add($n("b")),n.appendChild(r);const o=t.createElement("div");o.classList.add($n("t")),r.appendChild(o),f(e.props,"title",t=>{o.textContent=t})}}class ei{constructor(t,e){this.props=e.props,this.viewProps=e.viewProps,this.view=new ti(t,{name:e.name,props:this.props,viewProps:this.viewProps})}}class ni{constructor(t,e){this.cellCs_=[],this.cellValues_=[],this.onCellInputChange_=this.onCellInputChange_.bind(this),this.size=e.size;const[n,i]=this.size;for(let r=0;r<i;r++)for(let i=0;i<n;i++){const n=new ei(t,{name:e.groupName,props:A.fromObject(Object.assign({},e.cellConfig(i,r))),viewProps:B.create()});this.cellCs_.push(n),this.cellValues_.push(e.cellConfig(i,r).value)}this.value=e.value,p(this.value,t=>{const e=this.findCellByValue(t);e&&(e.view.inputElement.checked=!0)}),this.viewProps=B.create(),this.view=new rt(t,{viewProps:this.viewProps,viewName:"radgrid"}),this.view.element.style.gridTemplateColumns=`repeat(${n}, 1fr)`,this.cellCs_.forEach(t=>{t.view.inputElement.addEventListener("change",this.onCellInputChange_),this.view.element.appendChild(t.view.element)})}get cellControllers(){return this.cellCs_}findCellByValue(t){const e=this.cellValues_.findIndex(e=>e===t);return e<0?null:this.cellCs_[e]}onCellInputChange_(t){const e=t.currentTarget,n=this.cellCs_.findIndex(t=>t.view.inputElement===e);n<0||(this.value.rawValue=this.cellValues_[n])}}const ii=function(){return{id:"radiogrid",type:"blade",accept(t){const e=T,n=O(t,{cells:e.required.function,groupName:e.required.string,size:e.required.array(e.required.number),value:e.required.raw,view:e.required.constant("radiogrid"),label:e.optional.string});return n?{params:n}:null},controller(t){return new ot(t.document,{blade:t.blade,props:A.fromObject({label:t.params.label}),valueController:new ni(t.document,{groupName:t.params.groupName,cellConfig:t.params.cells,size:t.params.size,value:C(t.params.value)})})},api(t){return t.controller instanceof ot&&t.controller.valueController instanceof ni?new Jn(t.controller):null}}}();function ri(t){return{id:"input-radiogrid",type:"input",accept(e,n){if(!t.isType(e))return null;const i=T,r=O(n,{cells:i.required.function,groupName:i.required.string,size:i.required.array(i.required.number),view:i.required.constant("radiogrid")});return r?{initialValue:e,params:r}:null},binding:t.binding,controller:t=>{return new ni(t.document,{cellConfig:t.params.cells,groupName:t.params.groupName,size:t.params.size,value:t.value})}}}const oi=ri({isType:t=>{return"number"===typeof t},binding:{reader:t=>te,writer:t=>we}}),ai=ri({isType:t=>{return"string"===typeof t},binding:{reader:t=>ne,writer:t=>we}}),si=ri({isType:t=>{return"boolean"===typeof t},binding:{reader:t=>bt,writer:t=>we}}),li=[Ke,kn,Rn,qn,ii,si,oi,ai];t.ButtonCellApi=Ze,t.ButtonGridApi=Xe,t.ButtonGridController=qe,t.CubicBezier=rn,t.CubicBezierApi=Qe,t.CubicBezierAssembly=on,t.CubicBezierController=Sn,t.CubicBezierGraphController=An,t.CubicBezierGraphView=mn,t.CubicBezierPickerController=In,t.CubicBezierPickerView=dn,t.CubicBezierPreviewView=wn,t.CubicBezierView=un,t.FpsGraphBladeApi=En,t.FpsGraphController=Ln,t.FpsView=jn,t.Fpswatch=On,t.Interval=Bn,t.IntervalAssembly=Nn,t.IntervalConstraint=Fn,t.RadioCellApi=Kn,t.RadioController=ei,t.RadioGridApi=Jn,t.RadioGridController=ni,t.RadioView=ti,t.RangeSliderController=Wn,t.RangeSliderTextController=Un,t.RangeSliderTextView=Vn,t.RangeSliderView=Hn,t.TpRadioGridChangeEvent=Qn,t.plugins=li,Object.defineProperty(t,"__esModule",{value:!0})}))},4364:function(t){t.exports=JSON.parse('[{"url":"searchResult?searchVal=&selectIndex=quake_service&latest=true","category":"服务数据"},{"url":"searchResult?searchVal=&selectIndex=quake_host","category":"主机数据"},{"url":"searchResult?searchVal=&selectIndex=quake_image&latest=true","category":"图像数据"},{"url":"searchResult?searchVal=&selectIndex=quake_certificate","category":"证书数据"},{"url":"searchResult?searchVal=&selectIndex=quake_vulnerability","category":"漏洞数据"},{"url":"searchResult?searchVal=&selectIndex=quake_tipping_point","category":"情报数据"},{"url":"region?activeName=Unit","category":"目标单位"},{"url":"region?activeName=Assets","category":"目标资产"},{"url":"asset","category":"监测"},{"url":"antifraud","category":"同源性拓展"},{"url":"graph","category":"拓扑分析"},{"url":"/quake/visualization/city_asset_map#/city/map","isOutSide":true,"category":"资产态势"},{"url":"vulvisual","category":"漏洞态势"},{"url":"wallchartfight","category":"挂图作战"}]')},"436e":function(t,e,n){},4448:function(t,e,n){"use strict";var i=n("1c2a"),r=n.n(i);r.a},"449e":function(t,e,n){t.exports=n.p+"assets/img/scenario-map-4-blue.1c09ce78.png"},"45a9":function(t,e,n){},4721:function(t,e,n){"use strict";n.r(e),n.d(e,"OrbitControls",(function(){return s})),n.d(e,"MapControls",(function(){return l}));var i=n("5a89");const r={type:"change"},o={type:"start"},a={type:"end"};class s extends i["EventDispatcher"]{constructor(t,e){super(),void 0===e&&console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'),e===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),this.object=t,this.domElement=e,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new i["Vector3"],this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:i["MOUSE"].ROTATE,MIDDLE:i["MOUSE"].DOLLY,RIGHT:i["MOUSE"].PAN},this.touches={ONE:i["TOUCH"].ROTATE,TWO:i["TOUCH"].DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return u.phi},this.getAzimuthalAngle=function(){return u.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(t){t.addEventListener("keydown",at),this._domElementKeyEvents=t},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(r),n.update(),l=s.NONE},this.update=function(){const e=new i["Vector3"],o=(new i["Quaternion"]).setFromUnitVectors(t.up,new i["Vector3"](0,1,0)),a=o.clone().invert(),g=new i["Vector3"],m=new i["Quaternion"],v=2*Math.PI;return function(){const t=n.object.position;e.copy(t).sub(n.target),e.applyQuaternion(o),u.setFromVector3(e),n.autoRotate&&l===s.NONE&&k(S()),n.enableDamping?(u.theta+=h.theta*n.dampingFactor,u.phi+=h.phi*n.dampingFactor):(u.theta+=h.theta,u.phi+=h.phi);let i=n.minAzimuthAngle,y=n.maxAzimuthAngle;return isFinite(i)&&isFinite(y)&&(i<-Math.PI?i+=v:i>Math.PI&&(i-=v),y<-Math.PI?y+=v:y>Math.PI&&(y-=v),u.theta=i<=y?Math.max(i,Math.min(y,u.theta)):u.theta>(i+y)/2?Math.max(i,u.theta):Math.min(y,u.theta)),u.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,u.phi)),u.makeSafe(),u.radius*=d,u.radius=Math.max(n.minDistance,Math.min(n.maxDistance,u.radius)),!0===n.enableDamping?n.target.addScaledVector(p,n.dampingFactor):n.target.add(p),e.setFromSpherical(u),e.applyQuaternion(a),t.copy(n.target).add(e),n.object.lookAt(n.target),!0===n.enableDamping?(h.theta*=1-n.dampingFactor,h.phi*=1-n.dampingFactor,p.multiplyScalar(1-n.dampingFactor)):(h.set(0,0,0),p.set(0,0,0)),d=1,!!(f||g.distanceToSquared(n.object.position)>c||8*(1-m.dot(n.object.quaternion))>c)&&(n.dispatchEvent(r),g.copy(n.object.position),m.copy(n.object.quaternion),f=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",ct),n.domElement.removeEventListener("pointerdown",$),n.domElement.removeEventListener("pointercancel",nt),n.domElement.removeEventListener("wheel",ot),n.domElement.removeEventListener("pointermove",tt),n.domElement.removeEventListener("pointerup",et),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",at)};const n=this,s={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=s.NONE;const c=1e-6,u=new i["Spherical"],h=new i["Spherical"];let d=1;const p=new i["Vector3"];let f=!1;const g=new i["Vector2"],m=new i["Vector2"],v=new i["Vector2"],y=new i["Vector2"],b=new i["Vector2"],x=new i["Vector2"],w=new i["Vector2"],_=new i["Vector2"],C=new i["Vector2"],A=[],I={};function S(){return 2*Math.PI/60/60*n.autoRotateSpeed}function M(){return Math.pow(.95,n.zoomSpeed)}function k(t){h.theta-=t}function E(t){h.phi-=t}const T=function(){const t=new i["Vector3"];return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),p.add(t)}}(),O=function(){const t=new i["Vector3"];return function(e,i){!0===n.screenSpacePanning?t.setFromMatrixColumn(i,1):(t.setFromMatrixColumn(i,0),t.crossVectors(n.object.up,t)),t.multiplyScalar(e),p.add(t)}}(),P=function(){const t=new i["Vector3"];return function(e,i){const r=n.domElement;if(n.object.isPerspectiveCamera){const o=n.object.position;t.copy(o).sub(n.target);let a=t.length();a*=Math.tan(n.object.fov/2*Math.PI/180),T(2*e*a/r.clientHeight,n.object.matrix),O(2*i*a/r.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(T(e*(n.object.right-n.object.left)/n.object.zoom/r.clientWidth,n.object.matrix),O(i*(n.object.top-n.object.bottom)/n.object.zoom/r.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function j(t){n.object.isPerspectiveCamera?d/=t:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*t)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function L(t){n.object.isPerspectiveCamera?d*=t:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/t)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function D(t){g.set(t.clientX,t.clientY)}function R(t){w.set(t.clientX,t.clientY)}function B(t){y.set(t.clientX,t.clientY)}function N(t){m.set(t.clientX,t.clientY),v.subVectors(m,g).multiplyScalar(n.rotateSpeed);const e=n.domElement;k(2*Math.PI*v.x/e.clientHeight),E(2*Math.PI*v.y/e.clientHeight),g.copy(m),n.update()}function F(t){_.set(t.clientX,t.clientY),C.subVectors(_,w),C.y>0?j(M()):C.y<0&&L(M()),w.copy(_),n.update()}function z(t){b.set(t.clientX,t.clientY),x.subVectors(b,y).multiplyScalar(n.panSpeed),P(x.x,x.y),y.copy(b),n.update()}function V(t){t.deltaY<0?L(M()):t.deltaY>0&&j(M()),n.update()}function G(t){let e=!1;switch(t.code){case n.keys.UP:P(0,n.keyPanSpeed),e=!0;break;case n.keys.BOTTOM:P(0,-n.keyPanSpeed),e=!0;break;case n.keys.LEFT:P(n.keyPanSpeed,0),e=!0;break;case n.keys.RIGHT:P(-n.keyPanSpeed,0),e=!0;break}e&&(t.preventDefault(),n.update())}function H(){if(1===A.length)g.set(A[0].pageX,A[0].pageY);else{const t=.5*(A[0].pageX+A[1].pageX),e=.5*(A[0].pageY+A[1].pageY);g.set(t,e)}}function W(){if(1===A.length)y.set(A[0].pageX,A[0].pageY);else{const t=.5*(A[0].pageX+A[1].pageX),e=.5*(A[0].pageY+A[1].pageY);y.set(t,e)}}function U(){const t=A[0].pageX-A[1].pageX,e=A[0].pageY-A[1].pageY,n=Math.sqrt(t*t+e*e);w.set(0,n)}function Z(){n.enableZoom&&U(),n.enablePan&&W()}function Y(){n.enableZoom&&U(),n.enableRotate&&H()}function X(t){if(1==A.length)m.set(t.pageX,t.pageY);else{const e=pt(t),n=.5*(t.pageX+e.x),i=.5*(t.pageY+e.y);m.set(n,i)}v.subVectors(m,g).multiplyScalar(n.rotateSpeed);const e=n.domElement;k(2*Math.PI*v.x/e.clientHeight),E(2*Math.PI*v.y/e.clientHeight),g.copy(m)}function q(t){if(1===A.length)b.set(t.pageX,t.pageY);else{const e=pt(t),n=.5*(t.pageX+e.x),i=.5*(t.pageY+e.y);b.set(n,i)}x.subVectors(b,y).multiplyScalar(n.panSpeed),P(x.x,x.y),y.copy(b)}function K(t){const e=pt(t),i=t.pageX-e.x,r=t.pageY-e.y,o=Math.sqrt(i*i+r*r);_.set(0,o),C.set(0,Math.pow(_.y/w.y,n.zoomSpeed)),j(C.y),w.copy(_)}function Q(t){n.enableZoom&&K(t),n.enablePan&&q(t)}function J(t){n.enableZoom&&K(t),n.enableRotate&&X(t)}function $(t){!1!==n.enabled&&(0===A.length&&(n.domElement.setPointerCapture(t.pointerId),n.domElement.addEventListener("pointermove",tt),n.domElement.addEventListener("pointerup",et)),ut(t),"touch"===t.pointerType?st(t):it(t))}function tt(t){!1!==n.enabled&&("touch"===t.pointerType?lt(t):rt(t))}function et(t){ht(t),0===A.length&&(n.domElement.releasePointerCapture(t.pointerId),n.domElement.removeEventListener("pointermove",tt),n.domElement.removeEventListener("pointerup",et)),n.dispatchEvent(a),l=s.NONE}function nt(t){ht(t)}function it(t){let e;switch(t.button){case 0:e=n.mouseButtons.LEFT;break;case 1:e=n.mouseButtons.MIDDLE;break;case 2:e=n.mouseButtons.RIGHT;break;default:e=-1}switch(e){case i["MOUSE"].DOLLY:if(!1===n.enableZoom)return;R(t),l=s.DOLLY;break;case i["MOUSE"].ROTATE:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===n.enablePan)return;B(t),l=s.PAN}else{if(!1===n.enableRotate)return;D(t),l=s.ROTATE}break;case i["MOUSE"].PAN:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===n.enableRotate)return;D(t),l=s.ROTATE}else{if(!1===n.enablePan)return;B(t),l=s.PAN}break;default:l=s.NONE}l!==s.NONE&&n.dispatchEvent(o)}function rt(t){if(!1!==n.enabled)switch(l){case s.ROTATE:if(!1===n.enableRotate)return;N(t);break;case s.DOLLY:if(!1===n.enableZoom)return;F(t);break;case s.PAN:if(!1===n.enablePan)return;z(t);break}}function ot(t){!1!==n.enabled&&!1!==n.enableZoom&&l===s.NONE&&(t.preventDefault(),n.dispatchEvent(o),V(t),n.dispatchEvent(a))}function at(t){!1!==n.enabled&&!1!==n.enablePan&&G(t)}function st(t){switch(dt(t),A.length){case 1:switch(n.touches.ONE){case i["TOUCH"].ROTATE:if(!1===n.enableRotate)return;H(),l=s.TOUCH_ROTATE;break;case i["TOUCH"].PAN:if(!1===n.enablePan)return;W(),l=s.TOUCH_PAN;break;default:l=s.NONE}break;case 2:switch(n.touches.TWO){case i["TOUCH"].DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;Z(),l=s.TOUCH_DOLLY_PAN;break;case i["TOUCH"].DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;Y(),l=s.TOUCH_DOLLY_ROTATE;break;default:l=s.NONE}break;default:l=s.NONE}l!==s.NONE&&n.dispatchEvent(o)}function lt(t){switch(dt(t),l){case s.TOUCH_ROTATE:if(!1===n.enableRotate)return;X(t),n.update();break;case s.TOUCH_PAN:if(!1===n.enablePan)return;q(t),n.update();break;case s.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;Q(t),n.update();break;case s.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;J(t),n.update();break;default:l=s.NONE}}function ct(t){!1!==n.enabled&&t.preventDefault()}function ut(t){A.push(t)}function ht(t){delete I[t.pointerId];for(let e=0;e<A.length;e++)if(A[e].pointerId==t.pointerId)return void A.splice(e,1)}function dt(t){let e=I[t.pointerId];void 0===e&&(e=new i["Vector2"],I[t.pointerId]=e),e.set(t.pageX,t.pageY)}function pt(t){const e=t.pointerId===A[0].pointerId?A[1]:A[0];return I[e.pointerId]}n.domElement.addEventListener("contextmenu",ct),n.domElement.addEventListener("pointerdown",$),n.domElement.addEventListener("pointercancel",nt),n.domElement.addEventListener("wheel",ot,{passive:!1}),this.update()}}class l extends s{constructor(t,e){super(t,e),this.screenSpacePanning=!1,this.mouseButtons.LEFT=i["MOUSE"].PAN,this.mouseButtons.RIGHT=i["MOUSE"].ROTATE,this.touches.ONE=i["TOUCH"].PAN,this.touches.TWO=i["TOUCH"].DOLLY_ROTATE}}},4799:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"Base",(function(){return h})),n.d(i,"Circle",(function(){return p})),n.d(i,"Ellipse",(function(){return m})),n.d(i,"Image",(function(){return b})),n.d(i,"Line",(function(){return I})),n.d(i,"Marker",(function(){return O})),n.d(i,"Path",(function(){return $})),n.d(i,"Polygon",(function(){return nt})),n.d(i,"Polyline",(function(){return at})),n.d(i,"Rect",(function(){return ht})),n.d(i,"Text",(function(){return ft}));var r=n("9ab4"),o=n("6855"),a=n("7326"),s=n("f5e5"),l=n("1322"),c=n("c2ad"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return c["a"]},e.prototype.onCanvasChange=function(t){Object(s["f"])(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(l["getBBoxMethod"])(t),i=n(this),r=e/2,o=i.x-r,a=i.y-r,s=i.x+i.width+r,c=i.y+i.height+r;return{x:o,minX:o,y:a,minY:a,width:i.width+e,height:i.height+e,maxX:s,maxY:c}},e.prototype.isFill=function(){return!!this.attrs["fill"]||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs["stroke"]},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(s["a"])(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.getClip();if(e){var i=n?Object(s["d"])([this,n]):this.getCanvasBBox();if(!Object(a["f"])(e,i))return void this.set("hasChanged",!1)}t.save(),Object(s["a"])(t,this),this._applyClip(t,this.getClip()),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype._afterDraw=function(){var t=this.getCanvasBBox(),e=this.getCanvas();if(this.set("cacheCanvasBBox",t),e){var n=e.getViewRange();this.set("isInView",Object(a["f"])(t,n))}this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(Object(a["i"])(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=i)),this.isStroke()&&n>0&&(Object(a["i"])(r)||1===r||(t.globalAlpha=r),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),i=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t["lineWidth"]+t["lineAppendWidth"]},e}(o["c"]),h=u,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),s=o.x,l=o.y,c=o.r,u=r/2,h=Object(a["b"])(s,l,t,e);return i&&n?h<=c+u:i?h<=c:!!n&&(h>=c-u&&h<=c+u)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},e}(h),p=d;function f(t,e,n,i){return t/(n*n)+e/(i*i)}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),a=r/2,s=o.x,l=o.y,c=o.rx,u=o.ry,h=(t-s)*(t-s),d=(e-l)*(e-l);return i&&n?f(h,d,c+a,u+a)<=1:i?f(h,d,c,u)<=1:!!n&&(f(h,d,c-a,u-a)>=1&&f(h,d,c+a,u+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,o,0,0,2*Math.PI,!1);else{var a=r>o?r:o,s=r>o?1:r/o,l=r>o?o/r:1;t.save(),t.translate(n,i),t.scale(s,l),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(h),m=g;function v(t){return t instanceof HTMLElement&&Object(a["k"])(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(a["k"])(t)){var i=new Image;i.onload=function(){if(e.destroyed)return!1;e.attr("img",i),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},i.src=t,i.crossOrigin="Anonymous",this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):v(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,i=e.y,r=e.width,o=e.height,s=e.sx,l=e.sy,c=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||v(h))&&(Object(a["i"])(s)||Object(a["i"])(l)||Object(a["i"])(c)||Object(a["i"])(u)?t.drawImage(h,n,i,r,o):t.drawImage(h,s,l,c,u,n,i,r,o))},e}(h),b=y,x=n("c3e2"),w=n.n(x);function _(t,e,n,i,r,o,a){var s=Math.min(t,n),l=Math.max(t,n),c=Math.min(e,i),u=Math.max(e,i),h=r/2;return o>=s-h&&o<=l+h&&a>=c-h&&a<=u+h&&w.a.pointToLine(t,e,n,i,o,a)<=r/2}var C=n("9f27"),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2,o=t.startArrow,a=t.endArrow;o&&C["b"](this,t,i,r,e,n),a&&C["a"](this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr(),a=o.x1,s=o.y1,l=o.x2,c=o.y2;return _(a,s,l,c,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};a&&a.d&&(l=C["c"](n,i,r,o,e.startArrow.d)),s&&s.d&&(c=C["c"](n,i,r,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,i+l.dy),t.lineTo(r-c.dx,o-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return w.a.length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2;return w.a.pointAt(n,i,r,o,t)},e}(h),I=A,S=n("8937"),M=n("e3ad"),k=n.n(M),E={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(S["isNil"])(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,i=this.attr(),r=i.x,o=i.y,s=i.symbol||"circle",l=this._getR(i);return Object(a["h"])(s)?(t=s,n=t(r,o,l),n=k()(n)):(t=e.Symbols[s],n=t(r,o,l)),t?n:(console.warn(s+" marker is not supported."),null)},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s["c"])(this,t,{path:e},n)},e.Symbols=E,e}(h),O=T,P=n("7d16"),j=n.n(P),L=n("be6e"),D=n.n(L),R=n("f4c83");function B(t,e,n){var i=Object(R["getOffScreenContext"])();return t.createPath(i),i.isPointInPath(e,n)}var N=1e-6;function F(t){return Math.abs(t)<N?0:t<0?-1:1}function z(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function V(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=t[o],s=t[(o+1)%r];if(z(a,s,[e,n]))return!0;F(a[1]-n)>0!==F(s[1]-n)>0&&F(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}var G=n("c31b"),H=n.n(G);function W(t,e,n,i,r,o,s,l){var c=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(c<i||c>r)return!1;var u={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return Object(a["b"])(u.x,u.y,s,l)<=o/2}var U=n("1f05"),Z=n("9fe7");function Y(t){for(var e=!1,n=t.length,i=0;i<n;i++){var r=t[i],o=r[0];if("C"===o||"A"===o||"Q"===o){e=!0;break}}return e}function X(t,e,n,i){for(var r=!1,o=e/2,s=0;s<t.length;s++){var l=t[s],c=l.currentPoint,u=l.params,h=l.prePoint,d=l.box;if(!d||Object(a["e"])(d.x-o,d.y-o,d.width+e,d.height+e,n,i)){switch(l.command){case"L":case"Z":r=_(h[0],h[1],c[0],c[1],e,n,i);break;case"Q":var p=H.a.pointDistance(h[0],h[1],u[1],u[2],u[3],u[4],n,i);r=p<=e/2;break;case"C":var f=j.a.pointDistance(h[0],h[1],u[1],u[2],u[3],u[4],u[5],u[6],n,i);r=f<=e/2;break;case"A":var g=l.arcParams,m=g.cx,v=g.cy,y=g.rx,b=g.ry,x=g.startAngle,w=g.endAngle,C=g.xRotation,A=[n,i,1],I=[1,0,0,0,1,0,0,0,1],S=y>b?y:b,M=y>b?1:y/b,k=y>b?b/y:1;U["translate"](I,I,[-m,-v]),U["rotate"](I,I,-C),U["scale"](I,I,[1/M,1/k]),Z["transformMat3"](A,A,I),r=W(0,0,S,x,w,e,A[0],A[1]);break;default:break}if(r)break}}return r}function q(t){for(var e=t.length,n=[],i=[],r=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(r.length&&(i.push(r),r=[]),r.push([a[1],a[2]])):"Z"===s?r.length&&(n.push(r),r=[]):r.push([a[1],a[2]])}return r.length>0&&i.push(r),{polygons:n,polylines:i}}var K=Object(r["__assign"])({hasArc:Y,extractPolygons:q,isPointInStroke:X},o["f"]);function Q(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];if(i=V(o,e,n),i)break}return i}var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=k()(t);var e=K.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=D()(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var i=this.getStartTangent();C["b"](this,t,i[0][0],i[0][1],i[1][0],i[1][1])}if(n){i=this.getEndTangent();C["a"](this,t,i[0][0],i[0][1],i[1][0],i[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n&&(s=K.isPointInStroke(o,r,t,e)),!s&&i)if(a)s=B(this,t,e);else{var l=this.attr("path"),c=K.extractPolygons(l);s=Q(c.polygons,t,e)||Q(c.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(s["c"])(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return Object(S["isNil"])(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,i=this.get("tCache");i||(this._calculateCurve(),this._setTcache(),i=this.get("tCache"));var r=this.get("curve");if(!i||0===i.length)return r?{x:r[0][1],y:r[0][2]}:null;Object(S["each"])(i,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var o=r[n];if(Object(S["isNil"])(o)||Object(S["isNil"])(n))return null;var a=o.length,s=r[n+1];return j.a.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",K.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,o=0,a=[],s=this.get("curve");s&&(Object(S["each"])(s,(function(t,e){n=s[e+1],i=t.length,n&&(r+=j.a.length(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",r),0!==r?(Object(S["each"])(s,(function(l,c){n=s[c+1],i=l.length,n&&(t=[],t[0]=o/r,e=j.a.length(l[i-2],l[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/r,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,i=e[1].currentPoint,r=e[1].startTangent;t=[],r?(t.push([n[0]-r[0],n[1]-r[1]]),t.push([n[0],n[1]])):(t.push([i[0],i[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var i=e[n-2].currentPoint,r=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([r[0]-o[0],r[1]-o[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(h),$=J;function tt(t,e,n,i,r){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){var s=t[a][0],l=t[a][1],c=t[a+1][0],u=t[a+1][1];if(_(s,l,c,u,e,n,i))return!0}if(r){var h=t[0],d=t[o-1];if(_(h[0],h[1],d[0],d[1],e,n,i))return!0}return!1}var et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr().points,a=!1;return n&&(a=tt(o,r,t,e,!0)),!a&&i&&(a=V(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var i=0;i<n.length;i++){var r=n[i];0===i?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(h),nt=et,it=n("d6a3"),rt=n.n(it),ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,i=e.startArrow,r=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],l=n[o-1][0],c=n[o-1][1];i&&C["b"](this,t,n[1][0],n[1][1],a,s),r&&C["a"](this,t,n[o-2][0],n[o-2][1],l,c)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr().points;return tt(o,r,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,i=e.startArrow,r=e.endArrow,o=n.length;if(!(n.length<2)){var a=n[0][0],s=n[0][1],l=n[o-1][0],c=n[o-1][1];if(i&&i.d){var u=C["c"](a,s,n[1][0],n[1][1],i.d);a+=u.dx,s+=u.dy}if(r&&r.d){u=C["c"](n[o-2][0],n[o-2][1],l,c,r.d);l-=u.dx,c-=u.dy}t.beginPath(),t.moveTo(a,s);for(var h=0;h<o-1;h++){var d=n[h];t.lineTo(d[0],d[1])}t.lineTo(l,c)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(S["isNil"])(e)?(this.set("totalLength",rt.a.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),Object(S["each"])(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),w.a.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,o=[];Object(S["each"])(t,(function(a,s){t[s+1]&&(n=[],n[0]=r/e,i=w.a.length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(h),at=ot,st=n("af40");function lt(t,e,n,i,r,o,s){var l=r/2;return Object(a["e"])(t-l,e-l,n,r,o,s)||Object(a["e"])(t+n-l,e-l,r,i,o,s)||Object(a["e"])(t+l,e+i-l,n,r,o,s)||Object(a["e"])(t-l,e+l,r,i,o,s)}function ct(t,e,n,i,r,o,a,s){return _(t+r,e,t+n-r,e,o,a,s)||_(t+n,e+r,t+n,e+i-r,o,a,s)||_(t+n-r,e+i,t+r,e+i,o,a,s)||_(t,e+i-r,t,e+r,o,a,s)||W(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,o,a,s)||W(t+n-r,e+i-r,r,0,.5*Math.PI,o,a,s)||W(t+r,e+i-r,r,.5*Math.PI,Math.PI,o,a,s)||W(t+r,e+r,r,Math.PI,1.5*Math.PI,o,a,s)}var ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),s=o.x,l=o.y,c=o.width,u=o.height,h=o.radius;if(h){var d=!1;return n&&(d=ct(s,l,c,u,h,r,t,e)),!d&&i&&(d=B(this,t,e)),d}var p=r/2;return i&&n?Object(a["e"])(s-p,l-p,c+p,u+p,t,e):i?Object(a["e"])(s,l,c,u,t,e):n?lt(s,l,c,u,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,i,r,o);else{var s=Object(st["a"])(a),l=s[0],c=s[1],u=s[2],h=s[3];t.moveTo(n+l,i),t.lineTo(n+r-c,i),0!==c&&t.arc(n+r-c,i+c,c,-Math.PI/2,0),t.lineTo(n+r,i+o-u),0!==u&&t.arc(n+r-u,i+o-u,u,0,Math.PI/2),t.lineTo(n+h,i+o),0!==h&&t.arc(n+h,i+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,i+l),0!==l&&t.arc(n+l,i+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(h),ht=ut,dt=n("5d64"),pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(dt["assembleFont"])(t)},e.prototype._setText=function(t){var e=null;Object(a["k"])(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var i,r=this.attrs,o=r.textBaseline,s=r.x,l=r.y,c=1*r.fontSize,u=this._getSpaceingY(),h=Object(dt["getTextHeight"])(r.text,r.fontSize,r.lineHeight);Object(a["c"])(e,(function(e,r){i=l+r*(u+c)-h+c,"middle"===o&&(i+=h-c-(h-c)/2),"top"===o&&(i+=h-c),n?t.fillText(e,s,i):t.strokeText(e,s,i)}))},e.prototype._drawText=function(t,e){var n=this.attr(),i=n.x,r=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;e?t.fillText(a,i,r):t.strokeText(a,i,r)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(a["i"])(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(Object(a["i"])(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=i)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(h),ft=pt;n.d(e,"Base",(function(){return h})),n.d(e,"Circle",(function(){return p})),n.d(e,"Ellipse",(function(){return m})),n.d(e,"Image",(function(){return b})),n.d(e,"Line",(function(){return I})),n.d(e,"Marker",(function(){return O})),n.d(e,"Path",(function(){return $})),n.d(e,"Polygon",(function(){return nt})),n.d(e,"Polyline",(function(){return at})),n.d(e,"Rect",(function(){return ht})),n.d(e,"Text",(function(){return ft}))},4803:function(t,e,n){"use strict";var i=n("893e"),r=n.n(i);r.a},"491c":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n(t.getActivePage,{tag:"component"})],1)},r=[],o=(n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b"),n("ade3")),a=n("2f62"),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"enterprise-index"},[n("div",{staticClass:"enterprise-introduce-nav"},[n("div",{ref:"introduceCenter",staticClass:"introduce-nav-center"},[n("div",{staticClass:"introduce-nav-center-sub"},[n("svg-icon",{staticClass:"introduce-nav-arrow-icon",class:{forbidden:t.forbiddenPrev},attrs:{"icon-class":"arrow_left"},on:{click:t.handlePrev}}),n("div",{ref:"introduceContent",staticClass:"introduce-nav-center-content",style:{width:t.scrollWidth+"px"}},[n("div",{staticClass:"introduce-nav-center-content-scroll",style:{transform:t.transformXValue}},t._l(t.introduceNavOption,(function(e,i){return n("div",{key:e.category,staticClass:"introduce-nav-item",class:{active:t.currentIndex===i+1},on:{click:function(n){return t.handleCenterItem(e,i)}}},[n("svg-icon",{staticClass:"introduce-nav-item-icon",attrs:{"icon-class":e.category+"_enterprise"}}),n("span",{staticClass:"text"},[t._v(t._s(e.category))]),e.is_new?n("svg-icon",{staticClass:"introduce-nav-new-icon",attrs:{"icon-class":"new_radius_red"}}):t._e()],1)})),0)]),n("svg-icon",{staticClass:"introduce-nav-arrow-icon",class:{forbidden:t.forbiddenNext},attrs:{"icon-class":"arrow_right"},on:{click:t.handleNext}})],1)])]),n("div",{staticClass:"enterprise-introduce-body"},t._l(t.anchorData,(function(e,i){return n("div",{key:i,staticClass:"enterprise-introduce-item-container",class:[e.category+"-nav-title",{"index-even-bg":i%2!==0&&"theme-dark-green"!==t.themeClassName,"index-even-bg-dark":i%2!==0&&"theme-dark-green"===t.themeClassName,"padding-bottom":1===t.divideArray(e.subclass).length}]},[n("div",{staticClass:"enterprise-introduce-item",style:{width:t.scrollWidth-50+"px"}},[n("div",{staticClass:"enterprise-introduce-item-header"},[n("div",{staticClass:"title",class:{link:!e.access},on:{click:function(n){return t.handleGoVipIntroduce(e.access,e)}}},[n("svg-icon",{staticClass:"header-item-icon",attrs:{"icon-class":e.category+"_enterprise"}}),n("span",{staticClass:"title-text",class:{"open-hover":!e.access}},[t._v(t._s(e.category))]),e.access?t._e():n("svg-icon",{staticClass:"header-item-arrow",class:{"open-hover":!e.access},attrs:{"icon-class":"arrow_right"}}),e.access?t._e():n("span",{staticClass:"wait-open"},[t._v("待开通")])],1),n("span",{staticClass:"desc"},[t._v(t._s(e.description))]),e.access?n("el-button",{staticStyle:{"font-size":"14px"},attrs:{type:"primary"},on:{click:function(n){return t.handleGoUse(e)}}},[t._v("立即使用")]):t._e()],1),t.divideArray(e.subclass).length>1?n("swiper",{ref:"swiperVip",refInFor:!0,staticClass:"swiper",attrs:{options:t.swiperOption}},[t._l(t.divideArray(e.subclass),(function(r,o){return n("swiper-slide",{key:o},[n("EnterpriseIntroduceItemContent",{class:[{"flex-start":r.length<=t.swiperItemNum},"bottom"],attrs:{data:r,index:i,category:e.category,access:e.access}})],1)})),n("div",{staticClass:"swiper-pagination",attrs:{slot:"pagination"},slot:"pagination"})],2):n("EnterpriseIntroduceItemContent",{class:[{"flex-start":t.divideArray(e.subclass)[0].length<=t.swiperItemNum},"top"],attrs:{data:t.divideArray(e.subclass)[0],access:e.access,category:e.category,index:i}})],1)])})),0)])},l=[],c=(n("e01a"),n("d28b"),n("caad"),n("d81d"),n("4e82"),n("4ec9"),n("d3b7"),n("2532"),n("3ca3"),n("ddb0"),n("96cf"),n("7212")),u=n("6d3b"),h=n("5dc8"),d=n("d17a");n("99af"),n("b0c0");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var g={data:function(){return{swiperItemNum:4}},computed:f({},Object(a["e"])("site",["themeClassName"]),{swiperItemPercent:function(){return"".concat(100/this.swiperItemNum,"%")}}),methods:{handleGoVipIntroduce:function(t,e,n,i){if(n){if(t&&e.access)return;if(!t)return}if(n||!t){var r=this.$router.resolve({name:"enterprisevip",query:{anchor:n?"".concat(i,"-").concat(e.name):"".concat(e.category,"-").concat(e.subclass[0].name)}}),o=r.href;window.open(o,"_blank")}},divideArray:function(t){if(!t||!Array.isArray(t)||!t.length)return[];for(var e=[],n=[],i=2*this.swiperItemNum,r=0;r<t.length;r++)n.push(t[r]),(r+1)%i!==0&&r!==t.length-1||(e.push(n),n=[]);return e}}},m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"enterprise-introduce-item-content",class:[{border:t.index%2===0,width33:1===t.data.length,width66:2===t.data.length},"theme-dark-green"===t.themeClassName?"dark-time":"daytime"]},t._l(t.data,(function(e,i){return n("div",{key:i,staticClass:"enterprise-introduce-item-content-item",class:[{link:t.access&&!e.access}],style:{width:t.getItemWidth},on:{click:function(n){return t.handleGoVipIntroduce(t.access,e,!0,t.category)}}},[n("div",{staticClass:"name-warp"},[n("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{effect:"dark",disabled:!t.access,content:e.name,placement:"top"}},[n("span",{staticClass:"name"},[n("span",{staticClass:"ellipse-text name-style",class:{forbidden:!t.access}},[t._v(t._s(e.name))])])])],1),n("el-tooltip",{attrs:{effect:"dark",content:t.access?e.description:t.defaultTip,"popper-class":"tooltip-custom",placement:"bottom"}},[n("p",{staticClass:"info"},[n("span",{staticClass:"ellipse-text info-text",class:{forbidden:!t.access}},[t._v(" "+t._s(e.description)+" ")])])]),t.access&&!e.access?n("div",{staticClass:"ready-open-sign"},[n("span",[t._v("待开通")])]):t._e()],1)})),0)},v=[],y=(n("a9e3"),{name:"EnterpriseIntroduceItemContent",mixins:[g],props:{data:{type:Array,default:function(){return[]}},index:{type:Number,required:!0},access:{type:Boolean,required:!0},category:{type:String,required:!0}},data:function(){return{defaultTip:"功能项未开通，请联系我们，邮箱：quake@360.cn"}},computed:{getItemWidth:function(){return 1===this.data.length?"100%":2===this.data.length?"50%":this.swiperItemPercent}},mounted:function(){},methods:{}}),b=y,x=(n("77d9"),n("2877")),w=Object(x["a"])(b,m,v,!1,null,"96255672",null),_=w.exports,C=n("9240"),A=n("4364"),I=(n("bbe3"),n("6fcc")),S=n("5f87");function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?M(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}u["a"].use([h["a"],d["a"]]);var E={components:{Swiper:c["Swiper"],SwiperSlide:c["SwiperSlide"],EnterpriseIntroduceItemContent:_},mixins:[g],data:function(){return{loading:!1,transformXValue:"",itemWidth:140,currentIndex:1,scrollWidth:0,viewNum:0,startScrollIndex:5,anchorData:[],swiperOption:{slidesPerView:1,spaceBetween:30,loop:!0,autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},pagination:{el:".swiper-pagination",clickable:!0,bulletActiveClass:"my-bullet-active"}}}},computed:k({},Object(a["e"])("site",["themeClassName","isMonitorNewVersion"]),{introduceNavOption:function(){return this.anchorData&&this.anchorData.length?this.anchorData.map((function(t){return{access:t.access,category:t.category}})):[]},forbiddenPrev:function(){return 1===this.currentIndex},forbiddenNext:function(){return this.currentIndex===this.introduceNavOption.length},lastMidNum:function(){var t=this.introduceNavOption.length;return this.startScrollIndex+(t-this.viewNum)}}),mounted:function(){this.initAllDomWidth(),this.ajaxGetSubscribeAccess(),window.addEventListener("resize",this._.debounce(this.initAllDomWidth,30))},beforeDestroy:function(){window.removeEventListener("resize",this.initAllDomWidth)},methods:{handleGoUse:function(t){var e=t.access,n=t.category;if(e){var i=A.filter((function(t){return t.category===n}))[0];i.isOutSide?window.open(i.url):window.open("/quake/#/".concat(i.url))}},ajaxGetSubscribeAccess:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.loading=!0,r.next=3,regeneratorRuntime.awrap(Object(I["a"])());case 3:t=r.sent,e=t.code,n=t.data,0===e&&(i=["情报数据","同源性拓展","拓扑分析"],this.anchorData=this._.cloneDeep(Object(S["b"])()&&!Object(S["d"])()?n.filter((function(t){return!i.includes(t.category)})):n)),this.loading=!1;case 8:case"end":return r.stop()}}),null,this)},sortSubscribeAccess:function(t){t.forEach((function(t){t.subclass&&t.subclass.length&&t.subclass.sort((function(t,e){return t.order-e.order}))})),t.sort((function(t,e){return t.order-e.order}))},handleMouseEnterSwiperVip:function(){this.$refs.swiperVip.autoplay.stop()},handleMouseLeaveSwiperVip:function(){this.$refs.swiperVip.autoplay.start()},divideArray:function(t){if(!t||!Array.isArray(t)||!t.length)return[];for(var e=[],n=[],i=2*this.swiperItemNum,r=0;r<t.length;r++)n.push(t[r]),(r+1)%i!==0&&r!==t.length-1||(e.push(n),n=[]);return e},getTestLeftData:function(){var t=[],e=new Map,n=!0,i=!1,r=void 0;try{for(var o,a=C[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(e.has(s.module_name)){var l=e.get(s.module_name);l.push(s),e.set(s.module_name,l)}else e.set(s.module_name,[s])}}catch(g){i=!0,r=g}finally{try{n||null==a.return||a.return()}finally{if(i)throw r}}var c=!0,u=!1,h=void 0;try{for(var d,p=e.entries()[Symbol.iterator]();!(c=(d=p.next()).done);c=!0){var f=d.value;t.push({name:f[0],children:f[1]})}}catch(g){u=!0,h=g}finally{try{c||null==p.return||p.return()}finally{if(u)throw h}}console.log("时间菲利克斯:",t),this.anchorData=t},initAllDomWidth:function(){console.log("宽度:",window.screen.width,window.outerWidth,window.innerWidth);var t=this.itemWidth,e=window.screen.width;this.swiperItemNum=e<=1440?3:4;var n=this.$refs.introduceCenter;this.scrollWidth=Math.floor((n.clientWidth-64)/t)*t,this.viewNum=this.scrollWidth/t},handleNext:function(){if(!this.forbiddenNext){var t=this.introduceNavOption[this.currentIndex],e=this.currentIndex;this.handleCenterItem(t,e)}},handlePrev:function(){if(1!==this.currentIndex){var t=this.introduceNavOption[this.currentIndex-2],e=this.currentIndex-2;this.handleCenterItem(t,e)}},scrollToTarget:function(t){var e=document.querySelector(".".concat(t,"-nav-title"));e&&window.InputSearch.scrollToView({el:e,headerOffset:200})},handleCenterItem:function(t,e){var n=this;this.$nextTick((function(){n.scrollToTarget(t.category);var i=n.introduceNavOption.length,r=n.itemWidth,o=e+1;if(n.currentIndex=o,console.log("item:",n.lastMidNum,o,t),o>n.lastMidNum)n.transformXValue="translateX(-".concat((i-n.viewNum)*r,"px)");else{var a=(o-n.startScrollIndex)*r;n.transformXValue=o<n.startScrollIndex?"translateX(".concat(0,"px)"):"translateX(-".concat(a,"px)")}}))}}},T=E,O=(n("a941e"),n("0611"),Object(x["a"])(T,s,l,!1,null,"53440a9a",null)),P=O.exports,j=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isMobile?i("div",{staticClass:"index-mobile-wrapper"},[i("div",{staticClass:"nav-container"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"logo"},on:{click:t.onGoWelcome}}),i("span",{staticClass:"btn",on:{click:t.onEnterSystem}},[t._v(t._s(t.role?"退出":"登录"))])],1),i("div",{staticClass:"content-container"},[i("div",{staticClass:"title"},["en"===t.localLanguage?i("span",[t._v("Safe by View")]):i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"theme-quake"===t.themeClassName?"indexTitle1":"indexTitle"}})],1),i("ResultToolBar",{attrs:{isMobile:t.isMobile,searchList:t.searchList,toolBarComprehensiveConfig:t.toolBarComprehensiveConfig},on:{onSearch:t.onSearch}}),i("div",{staticClass:"hot-search"},[t.hotSearchConfig.loading?i("img",{staticClass:"loading-gif",attrs:{src:t.hotSearchConfig.loadingGif,alt:""}}):[i("div",{staticClass:"common-title"},[i("span",{staticClass:"name"},[t._v("热门搜索")]),i("span",{staticClass:"refresh",on:{click:t.getHotSearch}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"refresh"}}),i("span",[t._v("换一批")])],1)]),t._l(t.hotSearchConfig.hotSearchList,(function(e,n){return i("div",{key:n,staticClass:"hot-item",on:{click:function(n){return t.onHotSearch(e.query_string)}}},[i("span",{style:{color:t.hotSearchConfig.colors[n]}},[t._v(t._s(e.name))])])}))]],2),i("div",{staticClass:"view-line"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"broadcast"}}),i("span",{staticClass:"des"},[t._v("立即查看 "),i("span",{on:{click:t.onSearchGuide}},[t._v("检索引导"),i("svg-icon",{attrs:{"icon-class":"more"}})],1)])],1)],1),i("Footer"),t.isMobile&&t.isShowMobileTip?i("div",{staticClass:"mobile-tip"},[i("span",[t._v("我们最佳的搜索体验位于PC端上，请移步查看")]),i("svg-icon",{staticClass:"close",attrs:{"icon-class":"close"},on:{click:function(e){t.isShowMobileTip=!1}}})],1):t._e(),t.isShowMobileGuide?i("div",{staticClass:"mobile-guide-mobile"},[i("div",{staticClass:"guide-container"},[i("div",{staticClass:"title-line"},[i("span",[t._v("检索引导")]),i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"close"},on:{click:function(e){t.isShowMobileGuide=!1}}})],1),t._m(0),i("div",{staticClass:"guide-content"},t._l(t.guideConfig.mobileGuideList,(function(e,n){return i("div",{key:n,staticClass:"item-guide"},[i("span",{staticClass:"column"},[t._v(t._s(e.name))]),i("span",{staticClass:"column"},t._l(e.exampleList,(function(e,n){return i("el-tag",{key:n,staticClass:"tag",on:{click:function(n){return t.onHotSearch(e)}}},[t._v(t._s(e))])})),1)])})),0),i("div",{staticClass:"item-guide"},[i("span",{staticClass:"btn",on:{click:t.onQuikUse}},[t._v("开始使用")])])])]):t._e()],1):i("div",{staticClass:"index-wrapper"},[i("div",{staticClass:"index-container"},[i("div",{staticClass:"title"},["en"===t.localLanguage?i("span",{staticClass:"text"},[t._v("Safe by View")]):i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"theme-quake"===t.themeClassName?"index_title_blue":"index_title_green"}})],1),i("div",{staticClass:"input"},[i("ResultToolBar",{attrs:{searchList:t.searchList,toolBarComprehensiveConfig:t.toolBarComprehensiveConfig},on:{onSearch:t.onSearch},scopedSlots:t._u([{key:"favicon",fn:function(){return[t.role?i("IpListCollect",{attrs:{indices:t.indices,selectIndex:t.searchList.selectIndex,from:"index"}}):t._e(),i("SearchSyntax",{attrs:{selectIndex:t.searchList.selectIndex,from:"index"},on:{onTriggerSyntax:t.onTriggerSyntax}}),i("Favicon",{attrs:{from:"index",searchList:t.searchList}})]},proxy:!0}])})],1),i("div",{staticClass:"reference-container"},[i("div",{staticClass:"left"},[t.hotSearchConfig.loading?i("img",{staticClass:"loading-gif",attrs:{src:t.hotSearchConfig.loadingGif,alt:""}}):[i("div",{staticClass:"common-title"},[i("span",{staticClass:"name"},[t._v(t._s(t.$t("home.top_search")))]),i("span",{staticClass:"refresh",on:{click:t.getHotSearch}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"refresh"}}),i("span",[t._v(t._s(t.$t("search.change_for_another")))])],1)]),t._l(t.hotSearchConfig.hotSearchList,(function(e,n){return i("div",{key:n,staticClass:"hot-item",on:{click:function(n){return t.onHotSearch(e.query_string)}}},[i("span",{style:{color:t.hotSearchConfig.colors[n]}},[t._v(t._s(n+1)+"、"+t._s(e.name))])])}))]],2),i("div",{staticClass:"right",attrs:{id:"searchAndGpt"}},[i("el-tabs",{on:{"tab-click":t.handleChangeSearchName},model:{value:t.activeSearchName,callback:function(e){t.activeSearchName=e},expression:"activeSearchName"}},[i("el-tab-pane",{attrs:{label:"检索引导",name:"检索引导"}},[i("div",{staticStyle:{padding:"10px"}},[i("div",{staticClass:"item-guide guide-header"},[i("span",{staticClass:"column"},[t._v(t._s(t.$t("home.grammar")))]),i("span",{staticClass:"column"},[t._v(t._s(t.$t("home.description")))]),i("span",{staticClass:"column"},[t._v(t._s(t.$t("home.example")))])]),i("div",{staticClass:"guide-content"},t._l(t.guideConfig.guideList,(function(e,n){return i("div",{key:n,staticClass:"item-guide"},[i("span",{staticClass:"column"},[t._v(t._s(e.name))]),i("span",{staticClass:"column"},[t._v(t._s(e.introduction[t.localLanguage]))]),i("span",{staticClass:"column"},t._l(e.exampleList,(function(e,n){return i("el-tag",{key:n,staticClass:"tag",on:{click:function(n){return t.onHotSearch(e,!1)}}},[t._v(t._s(e))])})),1)])})),0)])]),t.hasGptPermission?i("el-tab-pane",{attrs:{name:"GPT"}},[i("span",{attrs:{slot:"label"},slot:"label"},[i("svg-icon",{attrs:{"icon-class":"gpt_fire"}}),t._v(" 360安全万事通")],1),i("div",{staticClass:"gpt-search-container",class:{"gpt-search-bg-blue":"theme-quake"===t.themeClassName&&!t.gptMessage.length,"gpt-search-bg-green":"theme-green"===t.themeClassName&&!t.gptMessage.length,"gpt-search-bg-dark-green":"theme-dark-green"===t.themeClassName&&!t.gptMessage.length}},[t.gptMessage.length?[i("div",{ref:"messageChat",staticClass:"message-chat"},[t._l(t.gptMessage,(function(e,r){return i("div",{key:r,staticClass:"message-item"},[e.self?i("div",{staticClass:"item-right"},[i("div",{staticClass:"bubble-flex"},[i("span",{staticClass:"bubble-flex-content content-right"},[t._v(t._s(e.content))])])]):i("div",{staticClass:"item-left"},[i("img",{staticClass:"avatar",attrs:{src:n("0013"),alt:""}}),i("div",{staticClass:"bubble-flex"},[i("span",{staticClass:"bubble-flex-content content-left"},[r===t.gptMessage.length-1?i("vue-typed-js",{attrs:{contentType:"null",strings:[e.content]},on:{preStringTyped:function(e){return t.watchTypedElement("#searchAndGpt")},onComplete:function(e){return t.handleCompleteType("#searchAndGpt")}}},[i("span",{staticClass:"typing"})]):i("span",[t._v(t._s(e.content))]),i("span",{staticClass:"tool-bar"},[i("svg-icon",{staticClass:"gpt-tool-icon",attrs:{"icon-class":"gpt_copy"},on:{click:function(n){return t.handleCopyGptResult(e.content)}}}),i("svg-icon",{staticClass:"gpt-tool-icon",attrs:{"icon-class":"gpt_search"},on:{click:function(n){return t.handleSearchByGptResult(e.content)}}})],1)],1)])])])})),i("div",{directives:[{name:"show",rawName:"v-show",value:t.gptLoading,expression:"gptLoading"}],staticClass:"message-item"},[i("div",{staticClass:"item-left"},[i("img",{staticClass:"avatar",attrs:{src:n("0013"),alt:""}}),i("div",{staticClass:"bubble-flex"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.gptLoading,expression:"gptLoading"}],staticClass:"loading-main",attrs:{"element-loading-spinner":"el-icon-loading"}})])])])],2)]:[i("span",{staticClass:"title"},[t._v("我们可以浪费时间，但不可以浪费生活，复杂的语法让它替你完成。")]),i("div",{staticClass:"try"},[t._v("试试输入：")]),i("div",{staticClass:"try-grammar"},t._l(t.adviceList,(function(e,n){return i("span",{key:n,staticClass:"try-grammar-item",on:{click:function(n){return t.handleAuToChat(e)}}},[i("span",[t._v(t._s(e))]),i("i",{staticClass:"el-icon-arrow-right",staticStyle:{"margin-left":"12px"}})])})),0)],i("div",{staticClass:"input-line"},[i("el-tooltip",{attrs:{effect:"dark",content:"删除历史会话",placement:"top"}},[i("svg-icon",{staticClass:"gpt-delete",attrs:{"icon-class":"gpt_delete"},on:{click:function(e){return t.handleRemoveAllMessages("index")}}})],1),i("div",{staticClass:"input-container"},[i("el-input",{staticClass:"gpt-input",class:{"dark-time":"theme-dark-green"===t.themeClassName},staticStyle:{flex:"1"},attrs:{placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSubmitGptQuery(e)}},model:{value:t.gptSearch,callback:function(e){t.gptSearch=e},expression:"gptSearch"}}),i("el-button",{staticClass:"gpt-submit",attrs:{type:"primary"},on:{click:t.handleSubmitGptQuery}},[t._v(" 提交")])],1)],1)],2)]):t._e()],1),i("span",{staticClass:"refresh",on:{click:t.onViewMore}},[i("span",{staticClass:"svg"},[t._v(t._s(t.$t("home.more_advanced_grammar")))]),i("svg-icon",{attrs:{"icon-class":"more"}})],1)],1)]),i("div",{staticClass:"statistic-container"},t._l(t.statisticList,(function(e,n){return i("div",{key:n,staticClass:"statistic-item"},[i("img",{attrs:{src:"theme-quake"===t.themeClassName?e.src_blue:e.src_green,alt:""}}),i("div",{staticClass:"des"},[i("div",{staticClass:"label"},[t._v(t._s(e.label))]),i("div",{staticClass:"number"},[i("AnimatedNumber",{attrs:{value:t.statisticsDataConfig.statisticsData[e.key]||0,formatValue:t.format,round:!0,duration:2e3}})],1)])])})),0),i("div",{staticClass:"vscan-container"},[i("div",{staticClass:"vscan-logo",class:"zh"===t.localLanguage?t.themeClassName:t.themeClassName+"-en"})])])]),t.isMobile?t._e():i("div",{staticClass:"quake-viewing"},[i("SectionFeature"),i("SectionScenario"),i("SectionAdvantage"),i("SectionFooter"),i("Contact")],1)])},L=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item-guide guide-header"},[n("span",{staticClass:"column"},[t._v("语法")]),n("span",{staticClass:"column"},[t._v("范例")])])}],D=(n("7db0"),n("0d03"),n("e25e"),n("ac1f"),n("466d"),n("498a"),n("2909")),R=n("daa8"),B=n("e581"),N=n("670e"),F=n("d3e3"),z=n("95b7"),V=n("e982"),G=n("e955"),H=n("bc48"),W=n("9e17"),U=n("925c"),Z=n("b37b"),Y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quake-section section-feature",class:"theme-dark-green"===t.themeClassName?"dark-time":"daytime"},[n("div",{staticClass:"section-container"},[n("div",{staticClass:"section-wrapper"},[n("div",{staticClass:"section-title",class:"theme-dark-green"===t.themeClassName?"dark-time":"daytime"}),t._m(0),n("div",{staticClass:"video-btn-wrapper"},[n("div",{staticClass:"video-btn",on:{click:t.openLayer}},[n("i",{staticClass:"icon-video",class:t.themeClassName}),n("span",[t._v("视频介绍")])])]),n("div",{staticClass:"feature-box"},t._l(t.features,(function(e,i){return n("div",{key:i,staticClass:"feature-item",class:t.themeClassName},[n("div",{staticClass:"icon",class:"icon-"+(parseInt(i)+1)}),n("div",{staticClass:"title"},[t._v(t._s(e.title))]),n("div",{staticClass:"description"},[t._v(t._s(e.description))])])})),0)])]),n("transition",{attrs:{name:"fade"}},[t.layer.active?n("div",{staticClass:"video-layer",on:{click:t.closeLayer}},[n("div",{staticClass:"operate"},[n("a",{staticClass:"close",attrs:{href:"javascript:;"},on:{click:t.closeLayer}},[n("i",{staticClass:"custom-icon icon-cross"})])]),n("div",{staticClass:"wrapper video",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"video-wrapper"},[n("video",{attrs:{src:t.layer.url,autoplay:"",controls:""}})])])]):t._e()])],1)},X=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"section-sub-title"},[t._v(" Quake网络空间测绘系统是360安全大脑-测绘云的核心系统"),n("br"),t._v(" 持续性探测全球IPv4、IPv6地址，做到实时感知全球网络空间中各类资产并发现其安全风险 ")])}];function q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Q={name:"SectionFeature",computed:K({},Object(a["e"])("site",["themeClassName"])),data:function(){return{layer:{active:"",url:"https://pub-shbt.s3.360.cn/quake-external-data/c81a08549e50b4f5d2ad92a30d0118f4_1080.mp4"},features:[{title:"资产测绘",icon:"icon-1",description:"虚拟网络空间可视化，动态呈现多视角、多维度网络空间对象"},{title:"漏洞感知",icon:"icon-2",description:"感知全网安全漏洞风险，监控漏洞全生命周期"},{title:"多维画像",icon:"icon-3",description:"关联多层次网络空间资源属性，形成多维度画像"},{title:"区域监测",icon:"icon-4",description:"掌握区域网络资产底数与基础信息，赋能城市级态势感知"},{title:"空间探索",icon:"icon-5",description:"建立虚实映射，激活数据价值，探索网络空间黑暗森林"}]}},methods:{openLayer:function(){this.layer.active=!0},closeLayer:function(){this.layer.active=!1}}},J=Q,$=(n("9a10"),Object(x["a"])(J,Y,X,!1,null,"00a1fc9c",null)),tt=$.exports,et=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"quake-section section-scenario"},[i("div",{staticClass:"section-container"},[i("div",{staticClass:"section-wrapper"},[i("div",{staticClass:"section-title"},[t._v("产品应用")]),i("div",{staticClass:"scenario-box"},[i("ul",{staticClass:"scenario-tab"},t._l(t.scenarios,(function(e,n){return i("li",{key:n,staticClass:"tab-item",class:{active:t.activeIndex==n},on:{click:function(e){t.activeIndex=n}}},[i("span",{staticClass:"icon-wrapper"},[i("i",{staticClass:"title-icon",class:[e.icon,t.themeClassName,t.activeIndex==n?"active":""]})]),i("span",[t._v(t._s(e.label))])])})),0),i("div",{staticClass:"scenario-content clearfix"},[i("div",{staticClass:"content",class:t.themeClassName,domProps:{innerHTML:t._s(t.activeScenario.content)}}),i("div",{staticClass:"scenario-map",style:{backgroundImage:"url("+n("8909")("./scenario-map-"+(parseInt(t.activeIndex)+1)+"-"+t.themeClassName.replace("theme-","").replace("quake","blue").replace("dark-","")+".png")+")"}})])])])])])},nt=[];function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ot={name:"SectionScenario",data:function(){return{scenarios:[{label:"网络空间资产测绘",icon:"icon-1",content:'\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>全球视角</b></span><br><br>\n                        整个网络空间中有多少互联网资产？他们的分布情况是怎样的？<br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>地区视角</b></span><br><br>\n                        某个国家、地区有多少联网资产，是否存在安全问题？<br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>行业视角</b></span><br><br>\n                        某些垂直行业，如金融、医疗、能源、交通等有哪些重点资产？<br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>企业视角</b></span><br><br>企业暴露在互联网上的资产有多少，这些资产是否安全？\n                    '},{label:"漏洞评估与响应",icon:"icon-2",content:'\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>漏洞评估</b></span><br><br>\n                        评估当前网络空间整体安全状况<br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>漏洞响应</b></span><br><br>\n                        掌握漏洞黄金响应时间，有效预警用户安全风险<br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>漏洞追溯</b></span><br><br>\n                        追溯并评估某个安全漏洞在全网造成的影响，绘制完整生命周期曲线\n                    '},{label:"城市资产安全监测",icon:"icon-3",content:'\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>企业资产归属</b></span><br><br>\n                        全面掌握区域内重点资产分布<br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>资产变动监测</b></span><br><br>\n                        针对重点单位互联网资产的持续性监测，第一时间发现资产的变动情况<br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>资产安全监测</b></span><br><br>\n                        结合360-CERT的安全预警能力和应急响应经验，并收录各个厂商产品的漏洞及漏洞PoC，第一时间对漏洞影响的重点单位进行预警\n                    '},{label:"安全攻防与研究",icon:"icon-4",content:'\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>发现、探索某类产品（如工控设备、IOT设备）、特定网络协议的安全问题</b></span><br><br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>自动化信息收集与资产统计，提升攻防对抗演练效果</b></span><br><br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>为安全攻防研究提供能力支持</b></span><br><br><br>\n                        <span class="title"><i class="title-icon icon-check-circle"></i><b>利用系统提供的资源，更深入的探索网络空间</b></span>\n                    '}],activeIndex:0}},computed:rt({activeScenario:function(){return this.scenarios[this.activeIndex]}},Object(a["e"])("site",["themeClassName"]))},at=ot,st=(n("159d"),Object(x["a"])(at,et,nt,!1,null,"55c5ec57",null)),lt=st.exports,ct=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quake-section section-advantage",class:"theme-dark-green"===t.themeClassName?"dark-time":"daytime"},[n("div",{staticClass:"section-container"},[n("div",{staticClass:"section-wrapper"},[n("div",{staticClass:"section-title"},[t._v("产品优势")]),n("div",{staticClass:"advantage-box"},[n("ul",{staticClass:"advantage-list"},t._l(t.advantages,(function(e,i){return n("li",{key:i,staticClass:"advantage-item",class:"theme-dark-green"===t.themeClassName?"dark-time":"daytime"},[n("div",{staticClass:"icon",class:{daytime:"theme-dark-green"!==t.themeClassName}},[t._v(t._s("0"+(i+1)))]),n("div",{staticClass:"text-wrapper"},[n("div",{staticClass:"title"},[t._v(t._s(e.title))]),n("div",{staticClass:"content"},[t._v(t._s(e.content))])])])})),0)])])])])},ut=[];function ht(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ht(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var pt={name:"SectionAdvantage",data:function(){return{advantages:[{title:"360安全大数据赋能",content:"始于资产而不止于资产，Quake融合360安全大脑2EB安全大数据，包括威胁情报、PDNS、Whois、ICP、证书等，建立多维度多层次网络空间资产视角"},{title:"测绘数据积累全球领先",content:"Quake累计测绘全网数据数百亿条，覆盖常见网络协议、工控协议1000余种，包括通信，工控、区块链、IOT、视频在内的20余个大类，120个小类，全球领先"},{title:"自研Vscan网络空间测绘引擎",content:"对比传统扫描引擎，能够获取更全面更深入的资产信息，结合人工智能算法模型显著提升识别率，并配合多种任务策略与计算基础设施组合，实现全网动态资产测绘"},{title:"网络空间虚实映射",content:"利用360数据资源及独有的网络空间测绘技术，针对网络空间中的IP归属与定位进行专项测绘，实现虚拟空间与现实世界的指向性映射"}]}},computed:dt({},Object(a["e"])("site",["themeClassName"]))},ft=pt,gt=(n("0645"),Object(x["a"])(ft,ct,ut,!1,null,"3c293e82",null)),mt=gt.exports,vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quake-section section-footer"},[n("div",{staticClass:"footer-subscribe",class:t.themeClassName},[n("div",{staticClass:"clearfix"},[n("span",{staticClass:"slogan",class:"theme-dark-green"===t.themeClassName?"dark-time":"daytime"},[t._v("开启空间测绘新征程，获取定制专属权益")]),n("a",{staticClass:"float-right btn btn-primary-plain login-btn",class:"theme-dark-green"===t.themeClassName?"dark-time":"daytime",attrs:{href:"/quake/#/member"}},[t._v("立即订阅")])])])])},yt=[];function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function xt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bt(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var wt={name:"SectionFooter",data:function(){return{currentYear:(new Date).getFullYear()}},computed:xt({},Object(a["e"])("site",["themeClassName"]))},_t=wt,Ct=(n("ecfb"),Object(x["a"])(_t,vt,yt,!1,null,"266b941f",null)),At=Ct.exports,It=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"contact-btn",class:"theme-dark-green"===t.themeClassName?"dark-time":"daytime",on:{click:t.openUrl}},[n("i",{staticClass:"iconfont icon-contact"}),n("div",{staticClass:"text"},[t._v("咨询")])])},St=[];function Mt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function kt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mt(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Et={name:"contact",data:function(){return{url:"https://webchat.7moor.com/wapchat.html?accessId=e78b7760-7af3-11ea-9ec1-ad39ec7d0154&fromUrl=&urlTitle="}},computed:kt({},Object(a["e"])("site",["themeClassName"])),methods:{openUrl:function(){window.open(this.url)}}},Tt=Et,Ot=(n("78b3"),Object(x["a"])(Tt,It,St,!1,null,"2b354d70",null)),Pt=Ot.exports,jt=n("9458"),Lt=n("6bcd");function Dt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dt(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Bt={components:{ResultToolBar:G["a"],IpListCollect:H["a"],SearchSyntax:W["a"],Favicon:U["a"],Footer:z["a"],SectionFeature:tt,SectionScenario:lt,SectionAdvantage:mt,SectionFooter:At,Contact:Pt},mixins:[Z["a"],Lt["a"]],data:function(){return{messageIdx:0,gptLoading:!1,socket:null,gptSearch:"",activeSearchName:window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt?"GPT":"检索引导",svg:"",isShowMobileTip:!0,isShowMobileGuide:!1,indices:[],searchList:{selectIndex:"quake_service",searchVal:""},toolBarComprehensiveConfig:{isShowPermissionTip:!1,includesFiled:""},hotSearchConfig:{loading:!1,loadingGif:n("3ec1"),hotSearchList:[],pagination:{},params:{start:0,size:6},colors:["#6F83FF","#C292E7","#6DC5FF"]},statisticsDataConfig:{statisticsData:{}}}},computed:Rt({},Object(a["e"])("site",["role","themeClassName","localLanguage","isChatgpt"]),{},Object(a["e"])("gpt",["gptMessage"]),{hasGptPermission:function(){return window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt},isMobile:function(){return!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},day:function(){var t=Date.parse(new Date),e=Date.parse("2017-01-01"),n=parseInt((t-e)/864e5,10);return String(n)},statisticList:function(){return[{key:"service_count",label:this.$t("home.total_service_count"),src_green:n("1b49a"),src_blue:n("1456")},{key:"vulnerability_count",label:this.$t("home.total_vul_count"),src_green:n("7025"),src_blue:n("98c9")},{key:"ip_count",label:this.$t("home.total_host_count"),src_green:n("31b4"),src_blue:n("c764")}]},guideConfig:function(){return{guideList:[{name:"ip",introduction:{en:"Support retrieval of a single IP, CIDR address range, support for IPv6 addresses",zh:"支持检索单个IP、CIDR地址段、支持IPv6地址"},exampleList:['ip:"1.1.1.1"','ip: "1.1.1.1/16"']},{name:"domain",introduction:{en:"Website domain information",zh:"网站域名信息"},exampleList:['domain:"360.cn"']},{name:"port、ports",introduction:{en:"Single port, open multiple ports at the same time",zh:"单一端口、同时开放多端口"},exampleList:['port:"80"','ports:"80,8080,8000"']},{name:"service、services",introduction:{en:"Protocols and Services",zh:"协议和服务"},exampleList:['service:"http"','services:"rtsp,https,telnet"']},{name:"cert",introduction:{en:"SSL\\TLS certificate information",zh:"SSL\\TLS证书信息"},exampleList:['cert:"baidu.com"','cert:"TLSv1.2"']},{name:"country、province、city",introduction:{en:"Location",zh:"位置和属地"},exampleList:['country:"China"','province:"shanxi"','province:"Inner Mongolia"','city:"beijing"']}],mobileGuideList:[{name:"ip",exampleList:['ip:"1.1.1.1"','ip: "1.1.1.1/16"']},{name:"is_ipv6",exampleList:['is_ipv6:"true"']},{name:"asn",exampleList:['asn:"12345"']},{name:"hostname",exampleList:['hostname:"50-87-74-222.unifi-edlayer.com"']},{name:"service",exampleList:['service:"http"service:"http"']}]}}}),created:function(){var t=this;this.initGptMessage().then((function(){t.strollToBottom(V["c"])})),this.getIndices(),this.getHotSearch(),this.ajaxGetIndexStatisticsBottom()},mounted:function(){var t=this;F["a"].$on("knowItAllSearch",(function(e){t.searchList.searchVal=e,t.onSearchByGpt(e)}))},watch:{gptMessage:{handler:function(){this.strollToBottom(V["c"])},deep:!0},isChatgpt:{handler:function(){this.activeSearchName=window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt?"GPT":"检索引导"},deep:!0,immediate:!0}},methods:Rt({},Object(a["b"])("site",["updateUserInfo","getUserRole"]),{},Object(a["b"])("gpt",["setGptMessages"]),{ajaxGetIndexStatisticsBottom:function(){var t;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(Object(B["u"])());case 2:t=e.sent,0===t.code&&(this.statisticsDataConfig.statisticsData=t.data);case 4:case"end":return e.stop()}}),null,this)},onSearchByGpt:function(t){t&&(this.searchList.searchVal=t,this.onSearch())},handleSearchByGptResult:function(t){t&&this.$router.push({name:"searchResult",query:{searchVal:t,selectIndex:this.searchList.selectIndex,latest:!0}})},handleChangeSearchName:function(t){this.activeSearchName=t.name},commonGptChat:function(t){var e=t,n=this.buildMessageObj(e,!0);this.gptSearch="",this.setGptMessages([].concat(Object(D["a"])(this.gptMessage),[n])),this.strollToBottom(V["c"]),this.ajaxGetGptQuery({query:e})},handleAuToChat:function(t){this.commonGptChat(t)},handleSubmitGptQuery:function(){this.gptSearch&&this.commonGptChat(this.gptSearch.trim())},ajaxGetGptQuery:function(t){var e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.gptLoading=!0,r.next=3,regeneratorRuntime.awrap(Object(jt["a"])(t));case 3:e=r.sent,n=this._.cloneDeep(this.gptMessage),0===e.code?(this.gptLoading=!1,i=this.buildMessageObj(e.data,!1),this.setGptMessages([].concat(Object(D["a"])(this.gptMessage),[i]))):(this.gptLoading=!1,n[n.length-1].content="出错了",this.setGptMessages(Object(D["a"])(n)));case 6:case"end":return r.stop()}}),null,this)},initSocketIo:function(){var t=Object(R["a"])("http://dev.quake.360zqaq.net/chat",{autoConnect:!1,withCredentials:!0});this.socket=t,t.connect(),t.on("connect",(function(){t.emit("connect_chat",{username:"songlongfei1"})})),this.socket.on("status",(function(){})),this.socket.on("response",(function(t){console.log("响应数据----response",t)}))},onEnterSystem:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:if(!this.role){i.next=8;break}return i.next=3,regeneratorRuntime.awrap(Object(N["h"])());case 3:t=i.sent,e=t.code,n=t.data,0===e&&(localStorage.isLogin=0,this.getUserRole(0),this.updateUserInfo(null),window.location.href=n),i.next=9;break;case 8:window.location.href="/quake/login";case 9:case"end":return i.stop()}}),null,this)},onGoWelcome:function(){window.location.href="/quake/welcome"},getIndices:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(Object(B["z"])());case 2:t=r.sent,e=t.code,n=t.data,0===e&&(this.indices=n,i=n.find((function(t){return t.default})),this.searchList.selectIndex=i.name);case 5:case"end":return r.stop()}}),null,this)},onTriggerSyntax:function(t){var e=this.searchList.searchVal;this.searchList.searchVal=e?"".concat(e," AND ").concat(t):t},onSearch:function(){return this.includesFiled=this.fieldsSearchPermission(this.role,this.searchList.selectIndex,this.searchList.searchVal),this.includesFiled?this.toolBarComprehensiveConfig.isShowPermissionTip=!0:(this.toolBarComprehensiveConfig.isShowPermissionTip=!1,this.$router.push({name:"searchResult",query:{searchVal:this.searchList.searchVal,selectIndex:this.searchList.selectIndex,latest:!0}})),!0},getHotSearch:function(){var t,e,n,i,r,o,a;return regeneratorRuntime.async((function(s){while(1)switch(s.prev=s.next){case 0:return t=this.hotSearchConfig,e=t.pagination,n=t.params,e.total&&n.start>=e.total&&(this.hotSearchConfig.params.start=0),this.hotSearchConfig.loading=!0,s.next=5,regeneratorRuntime.awrap(Object(B["r"])({start:this.hotSearchConfig.params.start,size:this.hotSearchConfig.params.size}));case 5:i=s.sent,r=i.code,o=i.data,a=i.meta,0===r&&(this.hotSearchConfig.pagination=a.pagination,this.hotSearchConfig.hotSearchList=o,this.hotSearchConfig.params.start+=4),this.hotSearchConfig.loading=!1;case 9:case"end":return s.stop()}}),null,this)},onHotSearch:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e?this.$router.push({name:"searchResult",query:{searchVal:t,selectIndex:this.searchList.selectIndex,latest:!0}}):this.searchList.searchVal=this.searchList.searchVal?"".concat(this.searchList.searchVal," AND ").concat(t):t},onQuikUse:function(){this.isShowMobileGuide=!1;var t='port:"8080" OR service:"http"';this.onHotSearch(t)},onSearchGuide:function(){this.isShowMobileGuide=!0},onViewMore:function(){this.$router.push({name:"help",query:{id:"5eb238f110d2e850d5c6aec8",title:"检索关键词"}})},getIndexStatistics:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(Object(B["t"])());case 2:t=i.sent,e=t.code,n=t.data,0===e&&(this.statisticsDataConfig.statisticsData=n);case 5:case"end":return i.stop()}}),null,this)},format:function(t){return t.toLocaleString()}})},Nt=Bt,Ft=(n("f5e9"),Object(x["a"])(Nt,j,L,!1,null,"6048c249",null)),zt=Ft.exports,Vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.isMobile?n("div",{staticClass:"index-mobile-wrapper"},[n("div",{staticClass:"nav-container"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"logo"},on:{click:t.onGoWelcome}}),n("span",{staticClass:"btn",on:{click:t.onEnterSystem}},[t._v(t._s(t.role?"退出":"登录"))])],1),n("div",{staticClass:"content-container"},[n("div",{staticClass:"title"},["en"===t.localLanguage?n("span",[t._v("Safe by View")]):n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"theme-quake"===t.themeClassName?"indexTitle1":"indexTitle"}})],1),n("ResultToolBar",{attrs:{isMobile:t.isMobile,searchList:t.searchList,toolBarComprehensiveConfig:t.toolBarComprehensiveConfig},on:{onSearch:t.onSearch}}),n("div",{staticClass:"hot-search"},[t.hotSearchConfig.loading?n("img",{staticClass:"loading-gif",attrs:{src:t.hotSearchConfig.loadingGif,alt:""}}):[n("div",{staticClass:"common-title"},[n("span",{staticClass:"name"},[t._v("热门搜索")]),n("span",{staticClass:"refresh",on:{click:t.getHotSearch}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"refresh"}}),n("span",[t._v("换一批")])],1)]),t._l(t.hotSearchConfig.hotSearchList,(function(e,i){return n("div",{key:i,staticClass:"hot-item",on:{click:function(n){return t.onHotSearch(e.query_string)}}},[n("span",{style:{color:t.hotSearchConfig.colors[i]}},[t._v(t._s(e.name))])])}))]],2),n("div",{staticClass:"view-line"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"broadcast"}}),n("span",{staticClass:"des"},[t._v("立即查看 "),n("span",{on:{click:t.onSearchGuide}},[t._v("检索引导"),n("svg-icon",{attrs:{"icon-class":"more"}})],1)])],1)],1),n("Footer"),t.isMobile&&t.isShowMobileTip?n("div",{staticClass:"mobile-tip"},[n("span",[t._v("我们最佳的搜索体验位于PC端上，请移步查看")]),n("svg-icon",{staticClass:"close",attrs:{"icon-class":"close"},on:{click:function(e){t.isShowMobileTip=!1}}})],1):t._e(),t.isShowMobileGuide?n("div",{staticClass:"mobile-guide-mobile"},[n("div",{staticClass:"guide-container"},[n("div",{staticClass:"title-line"},[n("span",[t._v("检索引导")]),n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"close"},on:{click:function(e){t.isShowMobileGuide=!1}}})],1),t._m(0),n("div",{staticClass:"guide-content"},t._l(t.guideConfig.mobileGuideList,(function(e,i){return n("div",{key:i,staticClass:"item-guide"},[n("span",{staticClass:"column"},[t._v(t._s(e.name))]),n("span",{staticClass:"column"},t._l(e.exampleList,(function(e,i){return n("el-tag",{key:i,staticClass:"tag",on:{click:function(n){return t.onHotSearch(e,!1)}}},[t._v(t._s(e))])})),1)])})),0),n("div",{staticClass:"item-guide"},[n("span",{staticClass:"btn",on:{click:t.onQuikUse}},[t._v("开始使用")])])])]):t._e()],1):n("div",{staticClass:"index-wrapper"},[n("World",{attrs:{data:t.mapData,mode:"earth"}}),n("stat")],1),n("div",{staticClass:"vscan-container",class:t.themeClassName},[n("div",{staticClass:"vscan-logo",class:"zh"===t.localLanguage?t.themeClassName:t.themeClassName+"-en"})]),t.isMobile?t._e():n("div",{staticClass:"quake-viewing"},[n("SectionFeature"),n("SectionScenario"),n("SectionAdvantage"),n("SectionFooter")],1)])},Gt=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item-guide guide-header"},[n("span",{staticClass:"column"},[t._v("语法")]),n("span",{staticClass:"column"},[t._v("范例")])])}],Ht=(n("0481f"),n("4069"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"containerRef",staticClass:"chinamap",style:{transform:"scale(1)",width:"100%",height:"100%",transformOrigin:"0 0"},attrs:{id:"threeMap"}})}),Wt=[],Ut=n("e1d8"),Zt=n("5a89"),Yt={props:{data:{type:Array,default:function(){return[]}},mode:{type:String,required:!0}},data:function(){return{map:null,isPlayer:!1,timer:-1}},watch:{mode:function(t){this.map.changeMode(t)},data:{handler:function(){this.updateHeatmap()},deep:!0}},mounted:function(){this.init360Map()},methods:{init360Map:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return localStorage.setItem("multisampling","2"),this.map=new Ut["World"](document.querySelector("#threeMap"),{heatmap:{blur:.4,radius:2,randomPos:0,randomNumber:0,newHeatmapTime:3e3,maxOpacity:1,gradient:{0:"rgba(255,255,255,0)",.05:"rgba(255,255,255,0)",.06:"rgba(150, 103,37, 0.8)",.98:"rgba(225, 224, 24, 1)",1:"#fefecb"},speed:500,color:new Zt["Color"]("#0c7362"),blurPlus:!1,blurPlusOptions:{blur:0,sv:0}},lineSpeed:.003,bloomParams:{strength:2,threshold:0,radius:.6},bloomAnimationStrength:2.5,preferConfig:"high",staticPath:"/quake/static/index/static"}),t.next=4,regeneratorRuntime.awrap(this.map.init());case 4:return t.next=6,regeneratorRuntime.awrap(this.map.animateIn());case 6:document.addEventListener("visibilitychange",this.handleVisibilityChange),this.data&&this.data.length&&this.updateHeatmap();case 8:case"end":return t.stop()}}),null,this)},updateHeatmap:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:this.map.setHeatmapData(this.data),-1!==this.timer&&clearInterval(this.timer);case 2:case"end":return t.stop()}}),null,this)},handleVisibilityChange:function(){"visible"===document.visibilityState?this.isPlayer=!0:this.isPlayer=!1}}},Xt=Yt,qt=(n("b699"),Object(x["a"])(Xt,Ht,Wt,!1,null,"75b1a127",null)),Kt=qt.exports,Qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"stat"},[n("div",{staticClass:"stat-left"},[t._m(0),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statCountLoading,expression:"statCountLoading"}],staticClass:"stat-count",attrs:{"element-loading-background":"rgba(0, 0, 0, 0.8)"}},[t._m(1),n("div",{staticClass:"stat-earth-country"},[n("div",{staticClass:"country-region"},[n("span",[t._v(t._s(t.$t("home.cover_country")))]),n("div",{staticClass:"num-item-container"},[t._l(String(t.todayRealtimeNerve.country_covered),(function(e,i){return n("span",{key:i,staticClass:"num-item"},[t._v(t._s(e))])})),n("span",{staticClass:"num-unit"},[t._v("个")])],2)])]),n("div",{staticClass:"nerve"},[n("span",[t._v(t._s(t.$t("home.gather_real_time")))]),n("AnimatedNumber",{staticClass:"nerve-num",attrs:{value:t.todayRealtimeNerve.realtime_count||0,formatValue:t.format,round:!0,duration:2e3}})],1)]),t._m(2),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.hotAssetLoading,expression:"hotAssetLoading"}],staticClass:"hot-realtime",attrs:{"element-loading-background":"rgba(0, 0, 0, 0.8)"}},[n("span",{staticClass:"hot-realtime-title"}),t._l(t.hotAssetRealtime,(function(e,i,r){return n("div",{key:r,staticClass:"hot-realtime-item"},[n("div",{staticClass:"left"},[n("svg-icon",{attrs:{"icon-class":i,"class-name":"hot-realtime-icon"}}),n("span",{staticClass:"name"},[t._v(t._s(t.hotAssetRealtimeText[i]))])],1),n("AnimatedNumber",{staticClass:"right-count",attrs:{value:e||0,formatValue:t.format,round:!0,duration:2e3}})],1)}))],2)]),n("div",{staticClass:"stat-bottom"},t._l(t.bottomStatistics,(function(e,i,r){return n("div",{key:r,staticClass:"stat-bottom-item"},[n("svg-icon",{attrs:{"icon-class":t.bottomStatisticsText[i],"class-name":"statistics-icon"}}),n("div",{staticClass:"right"},[n("div",{staticClass:"name"},[t._v(t._s(t.bottomStatisticsText[i]))]),n("AnimatedNumber",{staticClass:"count",attrs:{value:e||0,formatValue:t.format,round:!0,duration:2e3}})],1)],1)})),0),n("div",{staticClass:"scroll-next",on:{click:t.handleGoNextPage}},[n("i",{staticClass:"el-icon-arrow-down scroll-next-icon"})]),n("div",{staticClass:"stat-right"},[n("SearchToolBar",{staticClass:"search-toolbar-container",attrs:{"search-list":t.searchList,"is-expand":t.isSearchToolbarExpand,refList:{collect:t.$refs.collect,syntax:t.$refs.syntax,favicon:t.$refs.favicon}},on:{"update:isExpand":function(e){t.isSearchToolbarExpand=e},"update:is-expand":function(e){t.isSearchToolbarExpand=e},onSearch:t.onSearch},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticStyle:{width:"90px",display:"flex","align-items":"center"},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.handleClickTool(e)}}},[t.role?n("IpListCollect",{ref:"collect",attrs:{indices:t.indices,selectIndex:t.searchList.selectIndex,from:"indexNew"}}):t._e(),n("SearchSyntax",{ref:"syntax",attrs:{selectIndex:t.searchList.selectIndex,from:"indexNew"},on:{onTriggerSyntax:t.onTriggerSyntax}}),n("Favicon",{ref:"favicon",attrs:{from:"indexNew",searchList:t.searchList}})],1)]}}])}),n("div",{staticClass:"stat-right-main"},[n("div",{staticClass:"realtime-nerve"},[n("span",{staticClass:"realtime-nerve-bg common-bg"}),n("ScrollTable",{directives:[{name:"loading",rawName:"v-loading",value:t.realtimeNerveLoading,expression:"realtimeNerveLoading"}],staticClass:"realtime-nerve-table",attrs:{"element-loading-background":"rgba(0, 0, 0, 0.8)",columns:t.realtimeTableColumn,data:t.realTimeNerveTableData,"header-style":{height:44,backgroundColor:"#21404C",color:"#fff"},"even-row-style":{color:"#AEB2B8",height:44,backgroundColor:"rgba(75, 112, 143, 0.16)"},"odd-row-style":{color:"#AEB2B8",height:44},"limit-scroll-num":6}})],1),n("div",{staticClass:"world-asset-top10"},[n("span",{staticClass:"realtime-nerve-bg common-bg"}),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.worldAssetTop10Loading,expression:"worldAssetTop10Loading"}],staticClass:"realtime-nerve-rankbar",attrs:{"element-loading-background":"rgba(0, 0, 0, 0.8)"}},[n("RankBar",{attrs:{margin:10,data:t.worldAssetTop10,limitScrollNum:10}})],1)])])],1)])},Jt=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divide-line-top"},[n("div",{staticClass:"divide-line top"},[n("span",{staticClass:"rectangle"}),n("span",{staticClass:"center-line top"}),n("span",{staticClass:"rectangle"})])])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"stat-earth"},[i("img",{staticClass:"earth-bg",attrs:{src:n("73cc"),alt:""}}),i("img",{staticClass:"earth-gif",attrs:{src:n("e7ea"),alt:""}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divide-line bottom"},[n("span",{staticClass:"rectangle"}),n("span",{staticClass:"center-line bottom"}),n("span",{staticClass:"rectangle"})])}],$t=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search-toolbar"},[n("transition",{attrs:{name:"search-expand"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isExpand,expression:"isExpand"}],staticClass:"search-toolbar-expand",on:{mouseenter:t.removeTimer,mouseleave:t.handleLeaveToolbar}},[n("el-input",{staticClass:"expand-input",attrs:{placeholder:"请输入内容"},on:{change:t.handleChangeInput,focus:t.handleFocusInput,blur:t.handleBlurInput},model:{value:t.searchList.searchVal,callback:function(e){t.$set(t.searchList,"searchVal",e)},expression:"searchList.searchVal"}},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),n("div",{staticClass:"search-btn",on:{click:t.onSearch}},[t._v(t._s(t.$t("global.search")))]),n("div",{staticClass:"extra-btn"},[t._t("default",null,{removeTimer:t.removeTimer})],2)],1)]),n("transition",{staticClass:"try-collapse",attrs:{name:"search"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.isExpand,expression:"!isExpand"}],staticClass:"search-toolbar-collapse"},[n("el-button",{attrs:{type:"primary",icon:"el-icon-search"},nativeOn:{mouseenter:function(e){return t.handleExpandSearch(e)}}},[t._v(t._s(t.$t("global.search")))])],1)])],1)},te=[],ee=n("651f"),ne={props:{searchList:{type:Object,default:function(){}},isExpand:{type:Boolean,default:!1},refList:{type:Object,required:!0}},data:function(){return{shortcutSwitch:{outside:[],insideOfMore:[]},completeSearchTipGrammar:"",pageName:this.$route.name,invalidBracket:"",searchHistoryConfig:{historyLoading:!1,isShowHistory:!1,hasRequertSearchHistoryList:!1,searchHistoryList:[],appList:[],dialogConfig:{title:"",width:"600px",dialogVisible:!1}},searchExpandTimer:null,isFocused:!1}},computed:{threeShow:function(){var t=this.refList,e=t.collect,n=t.syntax,i=t.favicon;return{isShowCollect:e?e.isShowCollect:{},isShowSyntax:n?n.isShowSyntax:{},isShowFavicon:i?i.isShowFavicon:{}}}},watch:{threeShow:{handler:function(){var t=this.refList,e=t.collect,n=t.syntax,i=t.favicon;e.isShowCollect||n.isShowSyntax||i.isShowFavicon?this.removeTimer():this.handleChangeInput()},deep:!0}},mounted:function(){},methods:{handleLeaveToolbar:function(){var t=this.refList,e=t.collect,n=t.syntax,i=t.favicon;e.isShowCollect||n.isShowSyntax||i.isShowFavicon||this.isFocused||this.handleChangeInput()},handleBlurInput:function(){this.isFocused=!1,this.handleChangeInput()},handleFocusInput:function(){this.isFocused=!0,this.removeTimer()},handleChangeInput:function(){this.searchList.searchVal?this.removeTimer():this.refreshTimer()},removeTimer:function(){clearInterval(this.searchExpandTimer)},refreshTimer:function(){var t=this;this.removeTimer(),this.searchExpandTimer=setInterval((function(){t.$emit("update:isExpand",!1),t.removeTimer()}),5e3)},handleExpandSearch:function(){this.$emit("update:isExpand",!0),this.refreshTimer()},onSearch:function(){if(this.role<3&&"quake_image"===this.searchList.selectIndex)return!1;if(!this.validateSearchVal())return!1;var t=[];return[].concat(Object(D["a"])(this.shortcutSwitch.insideOfMore),Object(D["a"])(this.shortcutSwitch.outside)).forEach((function(e){e.value&&t.push(e.id)})),this.searchList.shortcuts=t,this.searchHistoryConfig.hasRequertSearchHistoryList=!1,this.$emit("onSearch"),!0},validateSearchVal:function(){if(this.completeSearchTipGrammar="",!this.searchList.searchVal)return!0;var t=this.searchList.searchVal,e=Object(ee["c"])(t);return!e||(this.invalidBracket=e,this.dialogVisible=!0,!1)}}},ie=ne,re=(n("c49d"),Object(x["a"])(ie,$t,te,!1,null,"4f319f05",null)),oe=re.exports,ae=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"scroll-table"},[n("div",{staticClass:"scroll-table-header",style:t.headerStyle?t.headerStyle:{}},t._l(t.columns,(function(e){return n("div",{key:e.label,staticClass:"scroll-table-header-item",style:{width:e.width,textAlign:e.titleAlign||"left"}},[t._v(" "+t._s(e.label)+" ")])})),0),n("vue-seamless-scroll",{staticClass:"seamless-wrap",attrs:{data:t.data,"class-option":t.seamlessScrollOptions}},[n("div",t._l(t.data,(function(e,i){return n("div",{key:i,staticClass:"seamless-wrap-line",style:i%2!==0?t.evenRowStyle?t.evenRowStyle:t.tableStyles[t.size].evenRowStyle:t.oddRowStyle?t.oddRowStyle:t.tableStyles[t.size].oddRowStyle},t._l(t.columns,(function(r,o){return n("div",{key:o,staticClass:"seamless-wrap-line-item",style:{width:r.width,textAlign:r.align||"left"},attrs:{title:"string"===typeof t.getValue(e,r.dataIndex)?t.getValue(e,r.dataIndex):""}},[t._t(r.slot,[n("span",[t._v(t._s(t.getValue(e,r.dataIndex)))])],{item:t.getValue(e,r.dataIndex),col:e,index:i+1,sIndex:o})],2)})),0)})),0)])],1)},se=[],le=(n("13d5"),{small:{tableStyle:{paddingTop:18},headerStyle:{background:"none",height:17},evenRowStyle:{background:"none",height:30},oddRowStyle:{background:"rgba(182,200,212,0.08)",height:30}},middle:{tableStyle:{},headerStyle:{},evenRowStyle:{},oddRowStyle:{}},large:{tableStyle:{paddingTop:34},headerStyle:{height:34},evenRowStyle:{background:"rgba(182,200,212,0.08)",height:40},oddRowStyle:{height:40}}}),ce={props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},size:{type:String,default:"small"},speed:{type:Number,default:.8},limitScrollNum:{type:Number,default:5},headerStyle:{type:Object,default:function(){}},scrollBar:{type:Boolean,default:!1},evenRowStyle:{type:Object,default:function(){}},oddRowStyle:{type:Object,default:function(){}}},data:function(){return{tableStyles:le,seamlessScrollOptions:{step:this.speed,limitMoveNum:this.limitScrollNum,hoverStop:!0}}},mounted:function(){},methods:{getValue:function(t,e){return Array.isArray(e)?e.reduce((function(t,e){return t[e]}),t):t[e]}}},ue=ce,he=(n("fdd0"),Object(x["a"])(ue,ae,se,!1,null,"3e7fe259",null)),de=he.exports,pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rank-bar"},[n("vue-seamless-scroll",{staticClass:"scroll-container",attrs:{"class-option":t.seamlessScrollOptions,data:t.barData}},[n("div",t._l(t.barData,(function(e,i){return n("div",{key:e.name,staticClass:"rank-bar-line",style:{marginBottom:t.margin+"px"}},[n("div",{staticClass:"rank-bar-line-country"},[n("div",{staticClass:"rank-bar-line-country-item index-count"},[t._v(" "+t._s((i+1).toString().padStart(2,"0"))+" ")]),t.countryIso[e.name]?n("span",{staticClass:"country-icon",class:["fi","fi-"+t.countryIso[e.name].toLowerCase()]}):t._e(),n("div",{staticClass:"rank-bar-line-country-item country"},[t._v(" "+t._s(e.name)+" ")]),n("div",{staticClass:"rank-bar-line-country-item num"},[t._v(" "+t._s(e.value?e.value.toLocaleString():0)+" ")])]),n("div",{staticClass:"rank-bar-line-progress"},[n("div",{staticClass:"rank-bar-line-progress-bar"},[n("div",{staticClass:"rank-bar-line-progress-bar-inner",class:t.colors[i%t.colors.length],style:{width:e.progress+"%"}},[i>0?n("div",{staticClass:"glow"}):t._e()])])])])})),0)])],1)},fe=[],ge=(n("cb29"),n("28f6")),me=["blue","green","purple","orange","cyan"],ve={props:{data:{type:Array,default:function(){return[]}},speed:{type:Number,default:.8},limitScrollNum:{type:Number,default:5},margin:{type:Number,default:0},visible:{type:Boolean,default:!0}},data:function(){return{seamlessScrollOptions:{step:this.speed,limitMoveNum:this.limitScrollNum,hoverStop:!0},countryIso:ge,colors:me,barData:[]}},watch:{data:{handler:function(){var t=this;this.barData=new Array(this.data.length).fill(0).map((function(e,n){return{name:t.data[n].name,progress:0,value:t.data[n].value}})),setTimeout((function(){var e=Math.max.apply(Math,Object(D["a"])(t.data.map((function(t){return t.value}))));t.barData=t.data.map((function(t){return{name:t.name,progress:t.progress?t.progress:t.value/e*100,value:t.value}}))}),100)},deep:!0,immediate:!0}},mounted:function(){},methods:{}},ye=ve,be=(n("1440"),Object(x["a"])(ye,pe,fe,!1,null,"175270e0",null)),xe=be.exports,we=n("cf45");function _e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ce(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_e(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ae=[100,75,68,60,50],Ie=[{label:"资产",width:"26%",dataIndex:"asset"},{label:"归属地",width:"36%",dataIndex:"belonging"},{label:"类型",width:"16%",dataIndex:"asset_type"},{label:"发现时间",width:"22%",dataIndex:"time"}],Se={components:{SearchSyntax:W["a"],IpListCollect:H["a"],Favicon:U["a"],SearchToolBar:oe,ScrollTable:de,RankBar:xe},mixins:[Z["a"]],data:function(){return{realtimeTableColumn:Ie,isSearchToolbarExpand:!1,statCountLoading:!1,hotAssetLoading:!1,realtimeNerveLoading:!1,worldAssetTop10Loading:!1,indices:[],searchList:{selectIndex:"quake_service",searchVal:""},toolBarComprehensiveConfig:{isShowPermissionTip:!1,includesFiled:""},todayRealtimeNerve:{country_covered:0,realtime_count:0},hotAssetRealtime:{pc_count:0,mobile_count:0,web_count:0,db_count:0,iot_count:0,cloud_service_count:0,oa_count:0,os_count:0,industry_count:0},hotAssetRealtimeText:{cloud_service_count:"云服务",oa_count:"OA系统",iot_count:"IOT",industry_count:"工控设备",db_count:"数据库",web_count:"网站",os_count:"操作系统",pc_count:"PC终端",mobile_count:"移动终端"},bottomStatistics:{service_count:0,ip_count:0,vulnerability_count:0},bottomStatisticsText:{service_count:"测绘服务数",ip_count:"测绘主机数",vulnerability_count:"测绘漏洞数"},realTimeNerveTableData:[],worldAssetTop10:[],statisticsHotTimer:null,statisticsRealTimeNerveTimer:null,statisticsHotTimerSpeed:6,statisticsRealTimeNerveSpeed:3}},computed:Ce({},Object(a["e"])("site",["role","themeClassName","localLanguage"])),mounted:function(){this.getIndices(),this.ajaxGetIndexStatisticsRealtime(),this.ajaxGetIndexStatisticsHot(),this.ajaxGetIndexRealtime(),this.ajaxGetIndexStatisticsDistributeTop10(),this.ajaxGetIndexStatisticsBottom(),this.initStatisticsHotTimer(),this.initStatisticsRealTimeNerveTimer()},beforeDestroy:function(){clearInterval(this.statisticsHotTimer),clearInterval(this.statisticsRealTimeNerveTimer)},methods:{initStatisticsRealTimeNerveTimer:function(){var t=this;clearInterval(this.statisticsRealTimeNerveTimer),this.statisticsRealTimeNerveTimer=setInterval((function(){t.ajaxGetIndexStatisticsRealtime(!0)}),1e4)},initStatisticsHotTimer:function(){var t=this;clearTimeout(this.statisticsHotTimer);var e=function e(n){t.statisticsHotTimer=setTimeout((function(){t.ajaxGetIndexStatisticsHot(!0),t.statisticsHotTimerSpeed=Object(we["e"])(55,65),clearTimeout(t.statisticsHotTimer),e(t.statisticsHotTimerSpeed)}),1e3*n)};e(Object(we["e"])(6,9))},handleClickTool:function(t){t.removeTimer()},format:function(t){return t.toLocaleString()},animate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,e=10,n=setInterval((function(){e+=20,document.documentElement.scrollTop=e,e>=document.body.clientHeight-60&&clearInterval(n)}),t)},handleGoNextPage:function(){this.animate()},filterWorldAssetTop10:function(t){return t&&Array.isArray(t)&&t.length?t.map((function(t,e){return{name:t.key,value:t.doc_count,progress:Ae[e]}})):[]},ajaxGetIndexStatisticsBottom:function(){var t;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(Object(B["u"])());case 2:t=e.sent,0===t.code&&(this.bottomStatistics=t.data);case 4:case"end":return e.stop()}}),null,this)},ajaxGetIndexStatisticsDistributeTop10:function(){var t;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return this.worldAssetTop10Loading=!0,e.next=3,regeneratorRuntime.awrap(Object(B["v"])());case 3:t=e.sent,0===t.code?(this.worldAssetTop10Loading=!1,this.worldAssetTop10=this.filterWorldAssetTop10(t.data.country)):this.worldAssetTop10Loading=!1;case 5:case"end":return e.stop()}}),null,this)},ajaxGetIndexRealtime:function(){var t;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return this.realtimeNerveLoading=!0,e.next=3,regeneratorRuntime.awrap(Object(B["s"])());case 3:t=e.sent,0===t.code?(this.realTimeNerveTableData=t.data,this.realtimeNerveLoading=!1):this.realtimeNerveLoading=!1;case 5:case"end":return e.stop()}}),null,this)},onTriggerSyntax:function(t){var e=this.searchList.searchVal;this.searchList.searchVal=e?"".concat(e," AND ").concat(t):t},getIndices:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(Object(B["z"])());case 2:t=r.sent,e=t.code,n=t.data,0===e&&(this.indices=n,i=n.find((function(t){return t.default})),this.searchList.selectIndex=i.name);case 5:case"end":return r.stop()}}),null,this)},onSearch:function(){return this.includesFiled=this.fieldsSearchPermission(this.role,this.searchList.selectIndex,this.searchList.searchVal),this.includesFiled?this.toolBarComprehensiveConfig.isShowPermissionTip=!0:(this.toolBarComprehensiveConfig.isShowPermissionTip=!1,this.$router.push({name:"searchResult",query:{searchVal:this.searchList.searchVal,selectIndex:this.searchList.selectIndex,latest:!0}})),!0},ajaxGetIndexStatisticsHot:function(){var t,e,n,i=this,r=arguments;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:return t=r.length>0&&void 0!==r[0]&&r[0],this.hotAssetLoading=!t,e=Object(we["f"])(0,8,Object(we["e"])(1,8)),o.next=5,regeneratorRuntime.awrap(Object(B["w"])());case 5:n=o.sent,0===n.code&&Object.keys(this.hotAssetRealtime).forEach((function(r,o){t?t&&e.includes(o)&&(i.hotAssetRealtime[r]=n.data[r]):i.hotAssetRealtime[r]=n.data[r]})),this.hotAssetLoading=!1;case 8:case"end":return o.stop()}}),null,this)},ajaxGetIndexStatisticsRealtime:function(){var t,e,n=arguments;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return t=n.length>0&&void 0!==n[0]&&n[0],this.statCountLoading=!t,i.next=4,regeneratorRuntime.awrap(Object(B["y"])());case 4:e=i.sent,0===e.code&&(this.todayRealtimeNerve=e.data),this.statCountLoading=!1;case 7:case"end":return i.stop()}}),null,this)},isMobile:function(){return!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)}}},Me=Se,ke=(n("2614"),Object(x["a"])(Me,Qt,Jt,!1,null,"ecc50188",null)),Ee=ke.exports;function Te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Oe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Te(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Pe={components:{World:Kt,ResultToolBar:G["a"],Footer:z["a"],SectionFeature:tt,SectionScenario:lt,SectionAdvantage:mt,SectionFooter:At,Stat:Ee},mixins:[Z["a"],Lt["a"]],data:function(){return{messageIdx:0,gptLoading:!1,socket:null,gptSearch:"",activeSearchName:window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt?"GPT":"检索引导",svg:"",isShowMobileTip:!0,isShowMobileGuide:!1,indices:[],searchList:{selectIndex:"quake_service",searchVal:""},toolBarComprehensiveConfig:{isShowPermissionTip:!1,includesFiled:""},hotSearchConfig:{loading:!1,loadingGif:n("3ec1"),hotSearchList:[],pagination:{},params:{start:0,size:6},colors:["#6F83FF","#C292E7","#6DC5FF"]},statisticsDataConfig:{statisticsData:{}},mapData:[]}},computed:Oe({},Object(a["e"])("site",["role","themeClassName","localLanguage","isChatgpt"]),{},Object(a["e"])("gpt",["gptMessage"]),{hasGptPermission:function(){return window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt},isMobile:function(){return!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},day:function(){var t=Date.parse(new Date),e=Date.parse("2017-01-01"),n=parseInt((t-e)/864e5,10);return String(n)},statisticList:function(){return[{key:"service_count",label:this.$t("home.total_service_count"),src_green:n("1b49a"),src_blue:n("1456")},{key:"vulnerability_count",label:this.$t("home.total_vul_count"),src_green:n("7025"),src_blue:n("98c9")},{key:"ip_count",label:this.$t("home.total_host_count"),src_green:n("31b4"),src_blue:n("c764")}]},guideConfig:function(){return{guideList:[{name:"ip",introduction:{en:"Support retrieval of a single IP, CIDR address range, support for IPv6 addresses",zh:"支持检索单个IP、CIDR地址段、支持IPv6地址"},exampleList:['ip:"1.1.1.1"','ip: "1.1.1.1/16"']},{name:"domain",introduction:{en:"Website domain information",zh:"网站域名信息"},exampleList:['domain:"360.cn"']},{name:"port、ports",introduction:{en:"Single port, open multiple ports at the same time",zh:"单一端口、同时开放多端口"},exampleList:['port:"80"','ports:"80,8080,8000"']},{name:"service、services",introduction:{en:"Protocols and Services",zh:"协议和服务"},exampleList:['service:"http"','services:"rtsp,https,telnet"']},{name:"cert",introduction:{en:"SSL\\TLS certificate information",zh:"SSL\\TLS证书信息"},exampleList:['cert:"baidu.com"','cert:"TLSv1.2"']},{name:"country、province、city",introduction:{en:"Location",zh:"位置和属地"},exampleList:['country:"China"','province:"shanxi"','province:"Inner Mongolia"','city:"beijing"']}],mobileGuideList:[{name:"ip",exampleList:['ip:"1.1.1.1"','ip: "1.1.1.1/16"']},{name:"is_ipv6",exampleList:['is_ipv6:"true"']},{name:"asn",exampleList:['asn:"12345"']},{name:"hostname",exampleList:['hostname:"50-87-74-222.unifi-edlayer.com"']},{name:"service",exampleList:['service:"http"service:"http"']}]}}}),created:function(){var t=this;this.initGptMessage().then((function(){t.strollToBottom(V["c"])})),this.getIndices(),this.getHotSearch(),this.ajaxGetIndexStatisticsMap()},mounted:function(){var t=this;F["a"].$on("knowItAllSearch",(function(e){t.searchList.searchVal=e,t.onSearchByGpt(e)}))},watch:{gptMessage:{handler:function(){this.strollToBottom(V["c"])},deep:!0},isChatgpt:{handler:function(){this.activeSearchName=window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt?"GPT":"检索引导"},deep:!0,immediate:!0}},methods:Oe({},Object(a["b"])("site",["updateUserInfo","getUserRole"]),{},Object(a["b"])("gpt",["setGptMessages"]),{ajaxGetIndexStatisticsMap:function(){var t,e,n,i,r,o=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t="all",e={country_size:250,dot_size:1e3,include_country:["中国,".concat("all"===t?2e4:1e4),"美国,".concat("all"===t?10001:2e3),"澳大利亚,20000","印度,10000","俄罗斯,".concat("all"===t?1e4:2e4),"沙特阿拉伯,10000","越南,10000","泰国,10000","西班牙,1000","丹麦,1000","法国,1000","德国,1000","捷克,1000","匈牙利,1000","希腊,1000","乌克兰,1000","波兰,1000","白俄罗斯,1000","英国,1000","挪威,1000","瑞士,1000","罗马尼西亚,1000","罗马尼亚,1000","奥地利,1000","斯洛伐克,1000","匈牙利,1000","摩尔多瓦,1000","塞尔维亚,1000","黑山,1000","保加利亚,1000","阿尔尼利亚,1000","克罗地亚,1000","波黑,1000","卢布尔雅那,1000","比利时,1000","荷兰,1000","意大利,1000","爱尔兰,1000","葡萄牙,1000","希腊,1000","土耳其,1000","摩洛哥,1000","阿尔及利亚,1000","瑞典,1000","芬兰,1000","北马其顿,1000"]},a.next=4,regeneratorRuntime.awrap(Object(B["x"])(e));case 4:n=a.sent,0===n.code&&(i=Object.keys(n.data),r=i.map((function(e){return"中国"===e?o.getArr(n.data[e],3):"美国"===e?o.getArr(n.data[e],2):"印度"===e?o.getArr(n.data[e],2):"俄罗斯"===e?o.getArr(n.data[e],"all"===t?2:3):"沙特阿拉伯"===e?o.getArr(n.data[e],"all"===t?3:2):"澳大利亚"===e?o.getArr(n.data[e],"all"===t?3:2):"other_country"===e?o.getArr(n.data[e],"all"===t?3:2):n.data[e]})).flat(),this.mapData=r.map((function(t){return{position:t.gps,value:30}})));case 6:case"end":return a.stop()}}),null,this)},getArr:function(t,e){for(var n=[],i=0;i<e;i++)n.push.apply(n,Object(D["a"])(t));return n},onSearchByGpt:function(t){t&&(this.searchList.searchVal=t,this.onSearch())},handleSearchByGptResult:function(t){t&&this.$router.push({name:"searchResult",query:{searchVal:t,selectIndex:this.searchList.selectIndex,latest:!0}})},handleChangeSearchName:function(t){this.activeSearchName=t.name},commonGptChat:function(t){var e=t,n=this.buildMessageObj(e,!0);this.gptSearch="",this.setGptMessages([].concat(Object(D["a"])(this.gptMessage),[n])),this.strollToBottom(V["c"]),this.ajaxGetGptQuery({query:e})},handleAuToChat:function(t){this.commonGptChat(t)},handleSubmitGptQuery:function(){this.gptSearch&&this.commonGptChat(this.gptSearch.trim())},ajaxGetGptQuery:function(t){var e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.gptLoading=!0,r.next=3,regeneratorRuntime.awrap(Object(jt["a"])(t));case 3:e=r.sent,n=this._.cloneDeep(this.gptMessage),0===e.code?(this.gptLoading=!1,i=this.buildMessageObj(e.data,!1),this.setGptMessages([].concat(Object(D["a"])(this.gptMessage),[i]))):(this.gptLoading=!1,n[n.length-1].content="出错了",this.setGptMessages(Object(D["a"])(n)));case 6:case"end":return r.stop()}}),null,this)},onEnterSystem:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:if(!this.role){i.next=8;break}return i.next=3,regeneratorRuntime.awrap(Object(N["h"])());case 3:t=i.sent,e=t.code,n=t.data,0===e&&(localStorage.isLogin=0,this.getUserRole(0),this.updateUserInfo(null),window.location.href=n),i.next=9;break;case 8:window.location.href="/quake/login";case 9:case"end":return i.stop()}}),null,this)},onGoWelcome:function(){window.location.href="/quake/welcome"},getIndices:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(Object(B["z"])());case 2:t=r.sent,e=t.code,n=t.data,0===e&&(this.indices=n,i=n.find((function(t){return t.default})),this.searchList.selectIndex=i.name);case 5:case"end":return r.stop()}}),null,this)},onTriggerSyntax:function(t){var e=this.searchList.searchVal;this.searchList.searchVal=e?"".concat(e," AND ").concat(t):t},onSearch:function(){return this.includesFiled=this.fieldsSearchPermission(this.role,this.searchList.selectIndex,this.searchList.searchVal),this.includesFiled?this.toolBarComprehensiveConfig.isShowPermissionTip=!0:(this.toolBarComprehensiveConfig.isShowPermissionTip=!1,this.$router.push({name:"searchResult",query:{searchVal:this.searchList.searchVal,selectIndex:this.searchList.selectIndex,latest:!0}})),!0},getHotSearch:function(){var t,e,n,i,r,o,a;return regeneratorRuntime.async((function(s){while(1)switch(s.prev=s.next){case 0:return t=this.hotSearchConfig,e=t.pagination,n=t.params,e.total&&n.start>=e.total&&(this.hotSearchConfig.params.start=0),this.hotSearchConfig.loading=!0,s.next=5,regeneratorRuntime.awrap(Object(B["r"])({start:this.hotSearchConfig.params.start,size:this.hotSearchConfig.params.size}));case 5:i=s.sent,r=i.code,o=i.data,a=i.meta,0===r&&(this.hotSearchConfig.pagination=a.pagination,this.hotSearchConfig.hotSearchList=o,this.hotSearchConfig.params.start+=4),this.hotSearchConfig.loading=!1;case 9:case"end":return s.stop()}}),null,this)},onHotSearch:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e?this.$router.push({name:"searchResult",query:{searchVal:t,selectIndex:this.searchList.selectIndex,latest:!0}}):this.searchList.searchVal=this.searchList.searchVal?"".concat(this.searchList.searchVal," AND ").concat(t):t},onQuikUse:function(){this.isShowMobileGuide=!1;var t='port:"8080" OR service:"http"';this.onHotSearch(t)},onSearchGuide:function(){this.isShowMobileGuide=!0},onViewMore:function(){this.$router.push({name:"help",query:{id:"5eb238f110d2e850d5c6aec8",title:"检索关键词"}})},getIndexStatistics:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(Object(B["t"])());case 2:t=i.sent,e=t.code,n=t.data,0===e&&(this.statisticsDataConfig.statisticsData=n);case 5:case"end":return i.stop()}}),null,this)},format:function(t){return t.toLocaleString()}})},je=Pe,Le=(n("b644"),Object(x["a"])(je,Vt,Gt,!1,null,"074c4518",null)),De=Le.exports;function Re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Re(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Ne={components:{OldIndex:zt,NewIndex:De,EnterpriseIndex:P},data:function(){return{}},computed:Be({},Object(a["c"])("site",["loginType"]),{getActivePage:function(){return"enterprise"===this.loginType?"EnterpriseIndex":"OldIndex"}}),mounted:function(){},methods:{}},Fe=Ne,ze=Object(x["a"])(Fe,i,r,!1,null,"46fe2827",null);e["default"]=ze.exports},"493b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.snapLength=e.nearestPoint=void 0;var i=n("b455"),r=1e-4;function o(t,e,n,o,a,s){var l,c=1/0,u=[n,o],h=20;s&&s>200&&(h=s/10);for(var d=1/h,p=d/10,f=0;f<=h;f++){var g=f*d,m=[a.apply(null,t.concat([g])),a.apply(null,e.concat([g]))],v=i.distance(u[0],u[1],m[0],m[1]);v<c&&(l=g,c=v)}if(0===l)return{x:t[0],y:e[0]};if(1===l){var y=t.length;return{x:t[y-1],y:e[y-1]}}c=1/0;for(f=0;f<32;f++){if(p<r)break;var b=l-p,x=l+p;m=[a.apply(null,t.concat([b])),a.apply(null,e.concat([b]))],v=i.distance(u[0],u[1],m[0],m[1]);if(b>=0&&v<c)l=b,c=v;else{var w=[a.apply(null,t.concat([x])),a.apply(null,e.concat([x]))],_=i.distance(u[0],u[1],w[0],w[1]);x<=1&&_<c?(l=x,c=_):p*=.5}}return{x:a.apply(null,t.concat([l])),y:a.apply(null,e.concat([l]))}}function a(t,e){for(var n=0,r=t.length,o=0;o<r;o++){var a=t[o],s=e[o],l=t[(o+1)%r],c=e[(o+1)%r];n+=i.distance(a,s,l,c)}return n/2}e.nearestPoint=o,e.snapLength=a},"4b11":function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4d90":function(t,e,n){"use strict";var i=n("23e7"),r=n("0ccb").start,o=n("9a0c");i({target:"String",proto:!0,forced:o},{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"4da1":function(t,e,n){"use strict";n.r(e);var i=n("6d3b"),r=n("26ad"),o=n("70a4");function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)}var s={update:function(t){var e=this,n=e.params,i=n.slidesPerView,r=n.slidesPerGroup,a=n.centeredSlides,s=e.params.virtual,l=s.addSlidesBefore,c=s.addSlidesAfter,u=e.virtual,h=u.from,d=u.to,p=u.slides,f=u.slidesGrid,g=u.renderSlide,m=u.offset;e.updateActiveIndex();var v,y,b,x=e.activeIndex||0;v=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",a?(y=Math.floor(i/2)+r+c,b=Math.floor(i/2)+r+l):(y=i+(r-1)+c,b=r+l);var w=Math.max((x||0)-b,0),_=Math.min((x||0)+y,p.length-1),C=(e.slidesGrid[w]||0)-(e.slidesGrid[0]||0);function A(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(Object(o["e"])(e.virtual,{from:w,to:_,offset:C,slidesGrid:e.slidesGrid}),h===w&&d===_&&!t)return e.slidesGrid!==f&&C!==m&&e.slides.css(v,C+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:C,from:w,to:_,slides:function(){for(var t=[],e=w;e<=_;e+=1)t.push(p[e]);return t}()}),void(e.params.virtual.renderExternalUpdate&&A());var I=[],S=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(var M=h;M<=d;M+=1)(M<w||M>_)&&e.$wrapperEl.find("."+e.params.slideClass+'[data-swiper-slide-index="'+M+'"]').remove();for(var k=0;k<p.length;k+=1)k>=w&&k<=_&&("undefined"===typeof d||t?S.push(k):(k>d&&S.push(k),k<h&&I.push(k)));S.forEach((function(t){e.$wrapperEl.append(g(p[t],t))})),I.sort((function(t,e){return e-t})).forEach((function(t){e.$wrapperEl.prepend(g(p[t],t))})),e.$wrapperEl.children(".swiper-slide").css(v,C+"px"),A()},renderSlide:function(t,e){var n=this,i=n.params.virtual;if(i.cache&&n.virtual.cache[e])return n.virtual.cache[e];var o=i.renderSlide?Object(r["a"])(i.renderSlide.call(n,t,e)):Object(r["a"])('<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+e+'">'+t+"</div>");return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",e),i.cache&&(n.virtual.cache[e]=o),o},appendSlide:function(t){var e=this;if("object"===typeof t&&"length"in t)for(var n=0;n<t.length;n+=1)t[n]&&e.virtual.slides.push(t[n]);else e.virtual.slides.push(t);e.virtual.update(!0)},prependSlide:function(t){var e=this,n=e.activeIndex,i=n+1,r=1;if(Array.isArray(t)){for(var o=0;o<t.length;o+=1)t[o]&&e.virtual.slides.unshift(t[o]);i=n+t.length,r=t.length}else e.virtual.slides.unshift(t);if(e.params.virtual.cache){var a=e.virtual.cache,s={};Object.keys(a).forEach((function(t){var e=a[t],n=e.attr("data-swiper-slide-index");n&&e.attr("data-swiper-slide-index",parseInt(n,10)+1),s[parseInt(t,10)+r]=e})),e.virtual.cache=s}e.virtual.update(!0),e.slideTo(i,0)},removeSlide:function(t){var e=this;if("undefined"!==typeof t&&null!==t){var n=e.activeIndex;if(Array.isArray(t))for(var i=t.length-1;i>=0;i-=1)e.virtual.slides.splice(t[i],1),e.params.virtual.cache&&delete e.virtual.cache[t[i]],t[i]<n&&(n-=1),n=Math.max(n,0);else e.virtual.slides.splice(t,1),e.params.virtual.cache&&delete e.virtual.cache[t],t<n&&(n-=1),n=Math.max(n,0);e.virtual.update(!0),e.slideTo(n,0)}},removeAllSlides:function(){var t=this;t.virtual.slides=[],t.params.virtual.cache&&(t.virtual.cache={}),t.virtual.update(!0),t.slideTo(0,0)}},l={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var t=this;Object(o["a"])(t,{virtual:a({},s,{slides:t.params.virtual.slides,cache:{}})})},on:{beforeInit:function(t){if(t.params.virtual.enabled){t.classNames.push(t.params.containerModifierClass+"virtual");var e={watchSlidesProgress:!0};Object(o["e"])(t.params,e),Object(o["e"])(t.originalParams,e),t.params.initialSlide||t.virtual.update()}},setTranslate:function(t){t.params.virtual.enabled&&t.virtual.update()}}},c=n("ff17");function u(){return u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},u.apply(this,arguments)}var h={handle:function(t){var e=this;if(e.enabled){var n=Object(c["b"])(),i=Object(c["a"])(),r=e.rtlTranslate,o=t;o.originalEvent&&(o=o.originalEvent);var a=o.keyCode||o.charCode,s=e.params.keyboard.pageUpDown,l=s&&33===a,u=s&&34===a,h=37===a,d=39===a,p=38===a,f=40===a;if(!e.allowSlideNext&&(e.isHorizontal()&&d||e.isVertical()&&f||u))return!1;if(!e.allowSlidePrev&&(e.isHorizontal()&&h||e.isVertical()&&p||l))return!1;if(!(o.shiftKey||o.altKey||o.ctrlKey||o.metaKey)&&(!i.activeElement||!i.activeElement.nodeName||"input"!==i.activeElement.nodeName.toLowerCase()&&"textarea"!==i.activeElement.nodeName.toLowerCase())){if(e.params.keyboard.onlyInViewport&&(l||u||h||d||p||f)){var g=!1;if(e.$el.parents("."+e.params.slideClass).length>0&&0===e.$el.parents("."+e.params.slideActiveClass).length)return;var m=e.$el,v=m[0].clientWidth,y=m[0].clientHeight,b=n.innerWidth,x=n.innerHeight,w=e.$el.offset();r&&(w.left-=e.$el[0].scrollLeft);for(var _=[[w.left,w.top],[w.left+v,w.top],[w.left,w.top+y],[w.left+v,w.top+y]],C=0;C<_.length;C+=1){var A=_[C];if(A[0]>=0&&A[0]<=b&&A[1]>=0&&A[1]<=x){if(0===A[0]&&0===A[1])continue;g=!0}}if(!g)return}e.isHorizontal()?((l||u||h||d)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),((u||d)&&!r||(l||h)&&r)&&e.slideNext(),((l||h)&&!r||(u||d)&&r)&&e.slidePrev()):((l||u||p||f)&&(o.preventDefault?o.preventDefault():o.returnValue=!1),(u||f)&&e.slideNext(),(l||p)&&e.slidePrev()),e.emit("keyPress",a)}}},enable:function(){var t=this,e=Object(c["a"])();t.keyboard.enabled||(Object(r["a"])(e).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this,e=Object(c["a"])();t.keyboard.enabled&&(Object(r["a"])(e).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},d={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function(){var t=this;Object(o["a"])(t,{keyboard:u({enabled:!1},h)})},on:{init:function(t){t.params.keyboard.enabled&&t.keyboard.enable()},destroy:function(t){t.keyboard.enabled&&t.keyboard.disable()}}};function p(){var t=Object(c["a"])(),e="onwheel",n=e in t;if(!n){var i=t.createElement("div");i.setAttribute(e,"return;"),n="function"===typeof i[e]}return!n&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")&&(n=t.implementation.hasFeature("Events.wheel","3.0")),n}var f={lastScrollTime:Object(o["i"])(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){var t=Object(c["b"])();return t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":p()?"wheel":"mousewheel"},normalize:function(t){var e=10,n=40,i=800,r=0,o=0,a=0,s=0;return"detail"in t&&(o=t.detail),"wheelDelta"in t&&(o=-t.wheelDelta/120),"wheelDeltaY"in t&&(o=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(r=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(r=o,o=0),a=r*e,s=o*e,"deltaY"in t&&(s=t.deltaY),"deltaX"in t&&(a=t.deltaX),t.shiftKey&&!a&&(a=s,s=0),(a||s)&&t.deltaMode&&(1===t.deltaMode?(a*=n,s*=n):(a*=i,s*=i)),a&&!r&&(r=a<1?-1:1),s&&!o&&(o=s<1?-1:1),{spinX:r,spinY:o,pixelX:a,pixelY:s}},handleMouseEnter:function(){var t=this;t.enabled&&(t.mouseEntered=!0)},handleMouseLeave:function(){var t=this;t.enabled&&(t.mouseEntered=!1)},handle:function(t){var e=t,n=!0,i=this;if(i.enabled){var a=i.params.mousewheel;i.params.cssMode&&e.preventDefault();var s=i.$el;if("container"!==i.params.mousewheel.eventsTarget&&(s=Object(r["a"])(i.params.mousewheel.eventsTarget)),!i.mouseEntered&&!s[0].contains(e.target)&&!a.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);var l=0,c=i.rtlTranslate?-1:1,u=f.normalize(e);if(a.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(u.pixelX)>Math.abs(u.pixelY)))return!0;l=-u.pixelX*c}else{if(!(Math.abs(u.pixelY)>Math.abs(u.pixelX)))return!0;l=-u.pixelY}else l=Math.abs(u.pixelX)>Math.abs(u.pixelY)?-u.pixelX*c:-u.pixelY;if(0===l)return!0;a.invert&&(l=-l);var h=i.getTranslate()+l*a.sensitivity;if(h>=i.minTranslate()&&(h=i.minTranslate()),h<=i.maxTranslate()&&(h=i.maxTranslate()),n=!!i.params.loop||!(h===i.minTranslate()||h===i.maxTranslate()),n&&i.params.nested&&e.stopPropagation(),i.params.freeMode){var d={time:Object(o["i"])(),delta:Math.abs(l),direction:Math.sign(l)},p=i.mousewheel.lastEventBeforeSnap,g=p&&d.time<p.time+500&&d.delta<=p.delta&&d.direction===p.direction;if(!g){i.mousewheel.lastEventBeforeSnap=void 0,i.params.loop&&i.loopFix();var m=i.getTranslate()+l*a.sensitivity,v=i.isBeginning,y=i.isEnd;if(m>=i.minTranslate()&&(m=i.minTranslate()),m<=i.maxTranslate()&&(m=i.maxTranslate()),i.setTransition(0),i.setTranslate(m),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!v&&i.isBeginning||!y&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var b=i.mousewheel.recentWheelEvents;b.length>=15&&b.shift();var x=b.length?b[b.length-1]:void 0,w=b[0];if(b.push(d),x&&(d.delta>x.delta||d.direction!==x.direction))b.splice(0);else if(b.length>=15&&d.time-w.time<500&&w.delta-d.delta>=1&&d.delta<=6){var _=l>0?.8:.2;i.mousewheel.lastEventBeforeSnap=d,b.splice(0),i.mousewheel.timeout=Object(o["h"])((function(){i.slideToClosest(i.params.speed,!0,void 0,_)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=Object(o["h"])((function(){var t=.5;i.mousewheel.lastEventBeforeSnap=d,b.splice(0),i.slideToClosest(i.params.speed,!0,void 0,t)}),500))}if(g||i.emit("scroll",e),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),m===i.minTranslate()||m===i.maxTranslate())return!0}}else{var C={time:Object(o["i"])(),delta:Math.abs(l),direction:Math.sign(l),raw:t},A=i.mousewheel.recentWheelEvents;A.length>=2&&A.shift();var I=A.length?A[A.length-1]:void 0;if(A.push(C),I?(C.direction!==I.direction||C.delta>I.delta||C.time>I.time+150)&&i.mousewheel.animateSlider(C):i.mousewheel.animateSlider(C),i.mousewheel.releaseScroll(C))return!0}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1}},animateSlider:function(t){var e=this,n=Object(c["b"])();return!(this.params.mousewheel.thresholdDelta&&t.delta<this.params.mousewheel.thresholdDelta)&&(!(this.params.mousewheel.thresholdTime&&Object(o["i"])()-e.mousewheel.lastScrollTime<this.params.mousewheel.thresholdTime)&&(t.delta>=6&&Object(o["i"])()-e.mousewheel.lastScrollTime<60||(t.direction<0?e.isEnd&&!e.params.loop||e.animating||(e.slideNext(),e.emit("scroll",t.raw)):e.isBeginning&&!e.params.loop||e.animating||(e.slidePrev(),e.emit("scroll",t.raw)),e.mousewheel.lastScrollTime=(new n.Date).getTime(),!1)))},releaseScroll:function(t){var e=this,n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1},enable:function(){var t=this,e=f.event();if(t.params.cssMode)return t.wrapperEl.removeEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(t.mousewheel.enabled)return!1;var n=t.$el;return"container"!==t.params.mousewheel.eventsTarget&&(n=Object(r["a"])(t.params.mousewheel.eventsTarget)),n.on("mouseenter",t.mousewheel.handleMouseEnter),n.on("mouseleave",t.mousewheel.handleMouseLeave),n.on(e,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this,e=f.event();if(t.params.cssMode)return t.wrapperEl.addEventListener(e,t.mousewheel.handle),!0;if(!e)return!1;if(!t.mousewheel.enabled)return!1;var n=t.$el;return"container"!==t.params.mousewheel.eventsTarget&&(n=Object(r["a"])(t.params.mousewheel.eventsTarget)),n.off(e,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}},g={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}},create:function(){var t=this;Object(o["a"])(t,{mousewheel:{enabled:!1,lastScrollTime:Object(o["i"])(),lastEventBeforeSnap:void 0,recentWheelEvents:[],enable:f.enable,disable:f.disable,handle:f.handle,handleMouseEnter:f.handleMouseEnter,handleMouseLeave:f.handleMouseLeave,animateSlider:f.animateSlider,releaseScroll:f.releaseScroll}})},on:{init:function(t){!t.params.mousewheel.enabled&&t.params.cssMode&&t.mousewheel.disable(),t.params.mousewheel.enabled&&t.mousewheel.enable()},destroy:function(t){t.params.cssMode&&t.mousewheel.enable(),t.mousewheel.enabled&&t.mousewheel.disable()}}};function m(){return m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},m.apply(this,arguments)}var v={toggleEl:function(t,e){t[e?"addClass":"removeClass"](this.params.navigation.disabledClass),t[0]&&"BUTTON"===t[0].tagName&&(t[0].disabled=e)},update:function(){var t=this,e=t.params.navigation,n=t.navigation.toggleEl;if(!t.params.loop){var i=t.navigation,r=i.$nextEl,o=i.$prevEl;o&&o.length>0&&(t.isBeginning?n(o,!0):n(o,!1),t.params.watchOverflow&&t.enabled&&o[t.isLocked?"addClass":"removeClass"](e.lockClass)),r&&r.length>0&&(t.isEnd?n(r,!0):n(r,!1),t.params.watchOverflow&&t.enabled&&r[t.isLocked?"addClass":"removeClass"](e.lockClass))}},onPrevClick:function(t){var e=this;t.preventDefault(),e.isBeginning&&!e.params.loop||e.slidePrev()},onNextClick:function(t){var e=this;t.preventDefault(),e.isEnd&&!e.params.loop||e.slideNext()},init:function(){var t,e,n=this,i=n.params.navigation;(n.params.navigation=Object(o["c"])(n.$el,n.params.navigation,n.params.createElements,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),i.nextEl||i.prevEl)&&(i.nextEl&&(t=Object(r["a"])(i.nextEl),n.params.uniqueNavElements&&"string"===typeof i.nextEl&&t.length>1&&1===n.$el.find(i.nextEl).length&&(t=n.$el.find(i.nextEl))),i.prevEl&&(e=Object(r["a"])(i.prevEl),n.params.uniqueNavElements&&"string"===typeof i.prevEl&&e.length>1&&1===n.$el.find(i.prevEl).length&&(e=n.$el.find(i.prevEl))),t&&t.length>0&&t.on("click",n.navigation.onNextClick),e&&e.length>0&&e.on("click",n.navigation.onPrevClick),Object(o["e"])(n.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}),n.enabled||(t&&t.addClass(i.lockClass),e&&e.addClass(i.lockClass)))},destroy:function(){var t=this,e=t.navigation,n=e.$nextEl,i=e.$prevEl;n&&n.length&&(n.off("click",t.navigation.onNextClick),n.removeClass(t.params.navigation.disabledClass)),i&&i.length&&(i.off("click",t.navigation.onPrevClick),i.removeClass(t.params.navigation.disabledClass))}},y={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var t=this;Object(o["a"])(t,{navigation:m({},v)})},on:{init:function(t){t.navigation.init(),t.navigation.update()},toEdge:function(t){t.navigation.update()},fromEdge:function(t){t.navigation.update()},destroy:function(t){t.navigation.destroy()},"enable disable":function(t){var e=t.navigation,n=e.$nextEl,i=e.$prevEl;n&&n[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),i&&i[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)},click:function(t,e){var n=t.navigation,i=n.$nextEl,o=n.$prevEl,a=e.target;if(t.params.navigation.hideOnClick&&!Object(r["a"])(a).is(o)&&!Object(r["a"])(a).is(i)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;var s;i?s=i.hasClass(t.params.navigation.hiddenClass):o&&(s=o.hasClass(t.params.navigation.hiddenClass)),!0===s?t.emit("navigationShow"):t.emit("navigationHide"),i&&i.toggleClass(t.params.navigation.hiddenClass),o&&o.toggleClass(t.params.navigation.hiddenClass)}}}},b=n("5dc8");function x(){return x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},x.apply(this,arguments)}var w={setTranslate:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var e=t.scrollbar,n=t.rtlTranslate,i=t.progress,r=e.dragSize,o=e.trackSize,a=e.$dragEl,s=e.$el,l=t.params.scrollbar,c=r,u=(o-r)*i;n?(u=-u,u>0?(c=r-u,u=0):-u+r>o&&(c=o+u)):u<0?(c=r+u,u=0):u+r>o&&(c=o-u),t.isHorizontal()?(a.transform("translate3d("+u+"px, 0, 0)"),a[0].style.width=c+"px"):(a.transform("translate3d(0px, "+u+"px, 0)"),a[0].style.height=c+"px"),l.hide&&(clearTimeout(t.scrollbar.timeout),s[0].style.opacity=1,t.scrollbar.timeout=setTimeout((function(){s[0].style.opacity=0,s.transition(400)}),1e3))}},setTransition:function(t){var e=this;e.params.scrollbar.el&&e.scrollbar.el&&e.scrollbar.$dragEl.transition(t)},updateSize:function(){var t=this;if(t.params.scrollbar.el&&t.scrollbar.el){var e=t.scrollbar,n=e.$dragEl,i=e.$el;n[0].style.width="",n[0].style.height="";var r,a=t.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,s=t.size/t.virtualSize,l=s*(a/t.size);r="auto"===t.params.scrollbar.dragSize?a*s:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n[0].style.width=r+"px":n[0].style.height=r+"px",i[0].style.display=s>=1?"none":"",t.params.scrollbar.hide&&(i[0].style.opacity=0),Object(o["e"])(e,{trackSize:a,divider:s,moveDivider:l,dragSize:r}),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}},getPointerPosition:function(t){var e=this;return e.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientX:t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].clientY:t.clientY},setDragPosition:function(t){var e,n=this,i=n.scrollbar,r=n.rtlTranslate,o=i.$el,a=i.dragSize,s=i.trackSize,l=i.dragStartPos;e=(i.getPointerPosition(t)-o.offset()[n.isHorizontal()?"left":"top"]-(null!==l?l:a/2))/(s-a),e=Math.max(Math.min(e,1),0),r&&(e=1-e);var c=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*e;n.updateProgress(c),n.setTranslate(c),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(t){var e=this,n=e.params.scrollbar,i=e.scrollbar,r=e.$wrapperEl,o=i.$el,a=i.$dragEl;e.scrollbar.isTouched=!0,e.scrollbar.dragStartPos=t.target===a[0]||t.target===a?i.getPointerPosition(t)-t.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),r.transition(100),a.transition(100),i.setDragPosition(t),clearTimeout(e.scrollbar.dragTimeout),o.transition(0),n.hide&&o.css("opacity",1),e.params.cssMode&&e.$wrapperEl.css("scroll-snap-type","none"),e.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this,n=e.scrollbar,i=e.$wrapperEl,r=n.$el,o=n.$dragEl;e.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,n.setDragPosition(t),i.transition(0),r.transition(0),o.transition(0),e.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this,n=e.params.scrollbar,i=e.scrollbar,r=e.$wrapperEl,a=i.$el;e.scrollbar.isTouched&&(e.scrollbar.isTouched=!1,e.params.cssMode&&(e.$wrapperEl.css("scroll-snap-type",""),r.transition("")),n.hide&&(clearTimeout(e.scrollbar.dragTimeout),e.scrollbar.dragTimeout=Object(o["h"])((function(){a.css("opacity",0),a.transition(400)}),1e3)),e.emit("scrollbarDragEnd",t),n.snapOnRelease&&e.slideToClosest())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var e=Object(c["a"])(),n=t.scrollbar,i=t.touchEventsTouch,r=t.touchEventsDesktop,o=t.params,a=t.support,s=n.$el,l=s[0],u=!(!a.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},h=!(!a.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};l&&(a.touch?(l.addEventListener(i.start,t.scrollbar.onDragStart,u),l.addEventListener(i.move,t.scrollbar.onDragMove,u),l.addEventListener(i.end,t.scrollbar.onDragEnd,h)):(l.addEventListener(r.start,t.scrollbar.onDragStart,u),e.addEventListener(r.move,t.scrollbar.onDragMove,u),e.addEventListener(r.end,t.scrollbar.onDragEnd,h)))}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var e=Object(c["a"])(),n=t.scrollbar,i=t.touchEventsTouch,r=t.touchEventsDesktop,o=t.params,a=t.support,s=n.$el,l=s[0],u=!(!a.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},h=!(!a.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};l&&(a.touch?(l.removeEventListener(i.start,t.scrollbar.onDragStart,u),l.removeEventListener(i.move,t.scrollbar.onDragMove,u),l.removeEventListener(i.end,t.scrollbar.onDragEnd,h)):(l.removeEventListener(r.start,t.scrollbar.onDragStart,u),e.removeEventListener(r.move,t.scrollbar.onDragMove,u),e.removeEventListener(r.end,t.scrollbar.onDragEnd,h)))}},init:function(){var t=this,e=t.scrollbar,n=t.$el;t.params.scrollbar=Object(o["c"])(n,t.params.scrollbar,t.params.createElements,{el:"swiper-scrollbar"});var i=t.params.scrollbar;if(i.el){var a=Object(r["a"])(i.el);t.params.uniqueNavElements&&"string"===typeof i.el&&a.length>1&&1===n.find(i.el).length&&(a=n.find(i.el));var s=a.find("."+t.params.scrollbar.dragClass);0===s.length&&(s=Object(r["a"])('<div class="'+t.params.scrollbar.dragClass+'"></div>'),a.append(s)),Object(o["e"])(e,{$el:a,el:a[0],$dragEl:s,dragEl:s[0]}),i.draggable&&e.enableDraggable(),a&&a[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}},destroy:function(){var t=this;t.scrollbar.disableDraggable()}},_={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var t=this;Object(o["a"])(t,{scrollbar:x({isTouched:!1,timeout:null,dragTimeout:null},w)})},on:{init:function(t){t.scrollbar.init(),t.scrollbar.updateSize(),t.scrollbar.setTranslate()},update:function(t){t.scrollbar.updateSize()},resize:function(t){t.scrollbar.updateSize()},observerUpdate:function(t){t.scrollbar.updateSize()},setTranslate:function(t){t.scrollbar.setTranslate()},setTransition:function(t,e){t.scrollbar.setTransition(e)},"enable disable":function(t){var e=t.scrollbar.$el;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)},destroy:function(t){t.scrollbar.destroy()}}};function C(){return C=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},C.apply(this,arguments)}var A={setTransform:function(t,e){var n=this,i=n.rtl,o=Object(r["a"])(t),a=i?-1:1,s=o.attr("data-swiper-parallax")||"0",l=o.attr("data-swiper-parallax-x"),c=o.attr("data-swiper-parallax-y"),u=o.attr("data-swiper-parallax-scale"),h=o.attr("data-swiper-parallax-opacity");if(l||c?(l=l||"0",c=c||"0"):n.isHorizontal()?(l=s,c="0"):(c=s,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*e*a+"%":l*e*a+"px",c=c.indexOf("%")>=0?parseInt(c,10)*e+"%":c*e+"px","undefined"!==typeof h&&null!==h){var d=h-(h-1)*(1-Math.abs(e));o[0].style.opacity=d}if("undefined"===typeof u||null===u)o.transform("translate3d("+l+", "+c+", 0px)");else{var p=u-(u-1)*(1-Math.abs(e));o.transform("translate3d("+l+", "+c+", 0px) scale("+p+")")}},setTranslate:function(){var t=this,e=t.$el,n=t.slides,i=t.progress,o=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e){t.parallax.setTransform(e,i)})),n.each((function(e,n){var a=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(a+=Math.ceil(n/2)-i*(o.length-1)),a=Math.min(Math.max(a,-1),1),Object(r["a"])(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e){t.parallax.setTransform(e,a)}))}))},setTransition:function(t){void 0===t&&(t=this.params.speed);var e=this,n=e.$el;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e){var n=Object(r["a"])(e),i=parseInt(n.attr("data-swiper-parallax-duration"),10)||t;0===t&&(i=0),n.transition(i)}))}},I={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var t=this;Object(o["a"])(t,{parallax:C({},A)})},on:{beforeInit:function(t){t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},init:function(t){t.params.parallax.enabled&&t.parallax.setTranslate()},setTranslate:function(t){t.params.parallax.enabled&&t.parallax.setTranslate()},setTransition:function(t,e){t.params.parallax.enabled&&t.parallax.setTransition(e)}}};function S(){return S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},S.apply(this,arguments)}var M={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,i=t.targetTouches[1].pageX,r=t.targetTouches[1].pageY,o=Math.sqrt(Math.pow(i-e,2)+Math.pow(r-n,2));return o},onGestureStart:function(t){var e=this,n=e.support,i=e.params.zoom,o=e.zoom,a=o.gesture;if(o.fakeGestureTouched=!1,o.fakeGestureMoved=!1,!n.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;o.fakeGestureTouched=!0,a.scaleStart=M.getDistanceBetweenTouches(t)}a.$slideEl&&a.$slideEl.length||(a.$slideEl=Object(r["a"])(t.target).closest("."+e.params.slideClass),0===a.$slideEl.length&&(a.$slideEl=e.slides.eq(e.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),a.$imageWrapEl=a.$imageEl.parent("."+i.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl&&a.$imageEl.transition(0),e.zoom.isScaling=!0):a.$imageEl=void 0},onGestureChange:function(t){var e=this,n=e.support,i=e.params.zoom,r=e.zoom,o=r.gesture;if(!n.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;r.fakeGestureMoved=!0,o.scaleMove=M.getDistanceBetweenTouches(t)}o.$imageEl&&0!==o.$imageEl.length?(n.gestures?r.scale=t.scale*r.currentScale:r.scale=o.scaleMove/o.scaleStart*r.currentScale,r.scale>o.maxRatio&&(r.scale=o.maxRatio-1+Math.pow(r.scale-o.maxRatio+1,.5)),r.scale<i.minRatio&&(r.scale=i.minRatio+1-Math.pow(i.minRatio-r.scale+1,.5)),o.$imageEl.transform("translate3d(0,0,0) scale("+r.scale+")")):"gesturechange"===t.type&&r.onGestureStart(t)},onGestureEnd:function(t){var e=this,n=e.device,i=e.support,r=e.params.zoom,o=e.zoom,a=o.gesture;if(!i.gestures){if(!o.fakeGestureTouched||!o.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!n.android)return;o.fakeGestureTouched=!1,o.fakeGestureMoved=!1}a.$imageEl&&0!==a.$imageEl.length&&(o.scale=Math.max(Math.min(o.scale,a.maxRatio),r.minRatio),a.$imageEl.transition(e.params.speed).transform("translate3d(0,0,0) scale("+o.scale+")"),o.currentScale=o.scale,o.isScaling=!1,1===o.scale&&(a.$slideEl=void 0))},onTouchStart:function(t){var e=this,n=e.device,i=e.zoom,r=i.gesture,o=i.image;r.$imageEl&&0!==r.$imageEl.length&&(o.isTouched||(n.android&&t.cancelable&&t.preventDefault(),o.isTouched=!0,o.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,o.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(t){var e=this,n=e.zoom,i=n.gesture,r=n.image,a=n.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(e.allowClick=!1,r.isTouched&&i.$slideEl)){r.isMoved||(r.width=i.$imageEl[0].offsetWidth,r.height=i.$imageEl[0].offsetHeight,r.startX=Object(o["f"])(i.$imageWrapEl[0],"x")||0,r.startY=Object(o["f"])(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0));var s=r.width*n.scale,l=r.height*n.scale;if(!(s<i.slideWidth&&l<i.slideHeight)){if(r.minX=Math.min(i.slideWidth/2-s/2,0),r.maxX=-r.minX,r.minY=Math.min(i.slideHeight/2-l/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,r.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!r.isMoved&&!n.isScaling){if(e.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x))return void(r.isTouched=!1);if(!e.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))return void(r.isTouched=!1)}t.cancelable&&t.preventDefault(),t.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),a.prevPositionX||(a.prevPositionX=r.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=r.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(r.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(r.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(r.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(r.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=r.touchesCurrent.x,a.prevPositionY=r.touchesCurrent.y,a.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var t=this,e=t.zoom,n=e.gesture,i=e.image,r=e.velocity;if(n.$imageEl&&0!==n.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var o=300,a=300,s=r.x*o,l=i.currentX+s,c=r.y*a,u=i.currentY+c;0!==r.x&&(o=Math.abs((l-i.currentX)/r.x)),0!==r.y&&(a=Math.abs((u-i.currentY)/r.y));var h=Math.max(o,a);i.currentX=l,i.currentY=u;var d=i.width*e.scale,p=i.height*e.scale;i.minX=Math.min(n.slideWidth/2-d/2,0),i.maxX=-i.minX,i.minY=Math.min(n.slideHeight/2-p/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),n.$imageWrapEl.transition(h).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var t=this,e=t.zoom,n=e.gesture;n.$slideEl&&t.previousIndex!==t.activeIndex&&(n.$imageEl&&n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl&&n.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(t){var e=this,n=e.zoom;n.scale&&1!==n.scale?n.out():n.in(t)},in:function(t){var e,n,i,o,a,s,l,u,h,d,p,f,g,m,v,y,b,x,w=this,_=Object(c["b"])(),C=w.zoom,A=w.params.zoom,I=C.gesture,S=C.image;(I.$slideEl||(t&&t.target&&(I.$slideEl=Object(r["a"])(t.target).closest("."+w.params.slideClass)),I.$slideEl||(w.params.virtual&&w.params.virtual.enabled&&w.virtual?I.$slideEl=w.$wrapperEl.children("."+w.params.slideActiveClass):I.$slideEl=w.slides.eq(w.activeIndex)),I.$imageEl=I.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),I.$imageWrapEl=I.$imageEl.parent("."+A.containerClass)),I.$imageEl&&0!==I.$imageEl.length&&I.$imageWrapEl&&0!==I.$imageWrapEl.length)&&(I.$slideEl.addClass(""+A.zoomedSlideClass),"undefined"===typeof S.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,n="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=S.touchesStart.x,n=S.touchesStart.y),C.scale=I.$imageWrapEl.attr("data-swiper-zoom")||A.maxRatio,C.currentScale=I.$imageWrapEl.attr("data-swiper-zoom")||A.maxRatio,t?(b=I.$slideEl[0].offsetWidth,x=I.$slideEl[0].offsetHeight,i=I.$slideEl.offset().left+_.scrollX,o=I.$slideEl.offset().top+_.scrollY,a=i+b/2-e,s=o+x/2-n,h=I.$imageEl[0].offsetWidth,d=I.$imageEl[0].offsetHeight,p=h*C.scale,f=d*C.scale,g=Math.min(b/2-p/2,0),m=Math.min(x/2-f/2,0),v=-g,y=-m,l=a*C.scale,u=s*C.scale,l<g&&(l=g),l>v&&(l=v),u<m&&(u=m),u>y&&(u=y)):(l=0,u=0),I.$imageWrapEl.transition(300).transform("translate3d("+l+"px, "+u+"px,0)"),I.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+C.scale+")"))},out:function(){var t=this,e=t.zoom,n=t.params.zoom,i=e.gesture;i.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?i.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):i.$slideEl=t.slides.eq(t.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imageWrapEl=i.$imageEl.parent("."+n.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&i.$imageWrapEl&&0!==i.$imageWrapEl.length&&(e.scale=1,e.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+n.zoomedSlideClass),i.$slideEl=void 0)},toggleGestures:function(t){var e=this,n=e.zoom,i=n.slideSelector,r=n.passiveListener;e.$wrapperEl[t]("gesturestart",i,n.onGestureStart,r),e.$wrapperEl[t]("gesturechange",i,n.onGestureChange,r),e.$wrapperEl[t]("gestureend",i,n.onGestureEnd,r)},enableGestures:function(){this.zoom.gesturesEnabled||(this.zoom.gesturesEnabled=!0,this.zoom.toggleGestures("on"))},disableGestures:function(){this.zoom.gesturesEnabled&&(this.zoom.gesturesEnabled=!1,this.zoom.toggleGestures("off"))},enable:function(){var t=this,e=t.support,n=t.zoom;if(!n.enabled){n.enabled=!0;var i=!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},r=!e.passiveListener||{passive:!1,capture:!0},o="."+t.params.slideClass;t.zoom.passiveListener=i,t.zoom.slideSelector=o,e.gestures?(t.$wrapperEl.on(t.touchEvents.start,t.zoom.enableGestures,i),t.$wrapperEl.on(t.touchEvents.end,t.zoom.disableGestures,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,o,n.onGestureStart,i),t.$wrapperEl.on(t.touchEvents.move,o,n.onGestureChange,r),t.$wrapperEl.on(t.touchEvents.end,o,n.onGestureEnd,i),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,o,n.onGestureEnd,i)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,n.onTouchMove,r)}},disable:function(){var t=this,e=t.zoom;if(e.enabled){var n=t.support;t.zoom.enabled=!1;var i=!("touchstart"!==t.touchEvents.start||!n.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},r=!n.passiveListener||{passive:!1,capture:!0},o="."+t.params.slideClass;n.gestures?(t.$wrapperEl.off(t.touchEvents.start,t.zoom.enableGestures,i),t.$wrapperEl.off(t.touchEvents.end,t.zoom.disableGestures,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,o,e.onGestureStart,i),t.$wrapperEl.off(t.touchEvents.move,o,e.onGestureChange,r),t.$wrapperEl.off(t.touchEvents.end,o,e.onGestureEnd,i),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,o,e.onGestureEnd,i)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,e.onTouchMove,r)}}},k={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this;Object(o["a"])(t,{zoom:S({enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}},M)});var e=1;Object.defineProperty(t.zoom,"scale",{get:function(){return e},set:function(n){if(e!==n){var i=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",n,i,r)}e=n}})},on:{init:function(t){t.params.zoom.enabled&&t.zoom.enable()},destroy:function(t){t.zoom.disable()},touchStart:function(t,e){t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(t,e){t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(t,e){!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(t){t.zoom.enabled&&t.params.zoom.enabled&&t.zoom.onTransitionEnd()},slideChange:function(t){t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&t.zoom.onTransitionEnd()}}};function E(){return E=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},E.apply(this,arguments)}var T={loadInSlide:function(t,e){void 0===e&&(e=!0);var n=this,i=n.params.lazy;if("undefined"!==typeof t&&0!==n.slides.length){var o=n.virtual&&n.params.virtual.enabled,a=o?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):n.slides.eq(t),s=a.find("."+i.elementClass+":not(."+i.loadedClass+"):not(."+i.loadingClass+")");!a.hasClass(i.elementClass)||a.hasClass(i.loadedClass)||a.hasClass(i.loadingClass)||s.push(a[0]),0!==s.length&&s.each((function(t){var o=Object(r["a"])(t);o.addClass(i.loadingClass);var s=o.attr("data-background"),l=o.attr("data-src"),c=o.attr("data-srcset"),u=o.attr("data-sizes"),h=o.parent("picture");n.loadImage(o[0],l||s,c,u,!1,(function(){if("undefined"!==typeof n&&null!==n&&n&&(!n||n.params)&&!n.destroyed){if(s?(o.css("background-image",'url("'+s+'")'),o.removeAttr("data-background")):(c&&(o.attr("srcset",c),o.removeAttr("data-srcset")),u&&(o.attr("sizes",u),o.removeAttr("data-sizes")),h.length&&h.children("source").each((function(t){var e=Object(r["a"])(t);e.attr("data-srcset")&&(e.attr("srcset",e.attr("data-srcset")),e.removeAttr("data-srcset"))})),l&&(o.attr("src",l),o.removeAttr("data-src"))),o.addClass(i.loadedClass).removeClass(i.loadingClass),a.find("."+i.preloaderClass).remove(),n.params.loop&&e){var t=a.attr("data-swiper-slide-index");if(a.hasClass(n.params.slideDuplicateClass)){var d=n.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(d.index(),!1)}else{var p=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');n.lazy.loadInSlide(p.index(),!1)}}n.emit("lazyImageReady",a[0],o[0]),n.params.autoHeight&&n.updateAutoHeight()}})),n.emit("lazyImageLoad",a[0],o[0])}))}},load:function(){var t=this,e=t.$wrapperEl,n=t.params,i=t.slides,o=t.activeIndex,a=t.virtual&&n.virtual.enabled,s=n.lazy,l=n.slidesPerView;function c(t){if(a){if(e.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(i[t])return!0;return!1}function u(t){return a?Object(r["a"])(t).attr("data-swiper-slide-index"):Object(r["a"])(t).index()}if("auto"===l&&(l=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+n.slideVisibleClass).each((function(e){var n=a?Object(r["a"])(e).attr("data-swiper-slide-index"):Object(r["a"])(e).index();t.lazy.loadInSlide(n)}));else if(l>1)for(var h=o;h<o+l;h+=1)c(h)&&t.lazy.loadInSlide(h);else t.lazy.loadInSlide(o);if(s.loadPrevNext)if(l>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){for(var d=s.loadPrevNextAmount,p=l,f=Math.min(o+p+Math.max(d,p),i.length),g=Math.max(o-Math.max(p,d),0),m=o+l;m<f;m+=1)c(m)&&t.lazy.loadInSlide(m);for(var v=g;v<o;v+=1)c(v)&&t.lazy.loadInSlide(v)}else{var y=e.children("."+n.slideNextClass);y.length>0&&t.lazy.loadInSlide(u(y));var b=e.children("."+n.slidePrevClass);b.length>0&&t.lazy.loadInSlide(u(b))}},checkInViewOnLoad:function(){var t=Object(c["b"])(),e=this;if(e&&!e.destroyed){var n=e.params.lazy.scrollingElement?Object(r["a"])(e.params.lazy.scrollingElement):Object(r["a"])(t),i=n[0]===t,o=i?t.innerWidth:n[0].offsetWidth,a=i?t.innerHeight:n[0].offsetHeight,s=e.$el.offset(),l=e.rtlTranslate,u=!1;l&&(s.left-=e.$el[0].scrollLeft);for(var h=[[s.left,s.top],[s.left+e.width,s.top],[s.left,s.top+e.height],[s.left+e.width,s.top+e.height]],d=0;d<h.length;d+=1){var p=h[d];if(p[0]>=0&&p[0]<=o&&p[1]>=0&&p[1]<=a){if(0===p[0]&&0===p[1])continue;u=!0}}var f=!("touchstart"!==e.touchEvents.start||!e.support.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};u?(e.lazy.load(),n.off("scroll",e.lazy.checkInViewOnLoad,f)):e.lazy.scrollHandlerAttached||(e.lazy.scrollHandlerAttached=!0,n.on("scroll",e.lazy.checkInViewOnLoad,f))}}},O={name:"lazy",params:{lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var t=this;Object(o["a"])(t,{lazy:E({initialImageLoaded:!1},T)})},on:{beforeInit:function(t){t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)},init:function(t){t.params.lazy.enabled&&!t.params.loop&&0===t.params.initialSlide&&(t.params.lazy.checkInView?t.lazy.checkInViewOnLoad():t.lazy.load())},scroll:function(t){t.params.freeMode&&!t.params.freeModeSticky&&t.lazy.load()},"scrollbarDragMove resize _freeModeNoMomentumRelease":function(t){t.params.lazy.enabled&&t.lazy.load()},transitionStart:function(t){t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!t.lazy.initialImageLoaded)&&t.lazy.load()},transitionEnd:function(t){t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&t.lazy.load()},slideChange:function(t){var e=t.params,n=e.lazy,i=e.cssMode,r=e.watchSlidesVisibility,o=e.watchSlidesProgress,a=e.touchReleaseOnEdges,s=e.resistanceRatio;n.enabled&&(i||(r||o)&&(a||0===s))&&t.lazy.load()}}};function P(){return P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},P.apply(this,arguments)}var j={LinearSpline:function(t,e){var n,i,r=function(){var t,e,n;return function(i,r){e=-1,t=i.length;while(t-e>1)n=t+e>>1,i[n]<=r?e=n:t=n;return t}}();return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(i=r(this.x,t),n=i-1,(t-this.x[n])*(this.y[i]-this.y[n])/(this.x[i]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(t){var e=this;e.controller.spline||(e.controller.spline=e.params.loop?new j.LinearSpline(e.slidesGrid,t.slidesGrid):new j.LinearSpline(e.snapGrid,t.snapGrid))},setTranslate:function(t,e){var n,i,r=this,o=r.controller.control,a=r.constructor;function s(t){var e=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(t),i=-r.controller.spline.interpolate(-e)),i&&"container"!==r.params.controller.by||(n=(t.maxTranslate()-t.minTranslate())/(r.maxTranslate()-r.minTranslate()),i=(e-r.minTranslate())*n+t.minTranslate()),r.params.controller.inverse&&(i=t.maxTranslate()-i),t.updateProgress(i),t.setTranslate(i,r),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(o))for(var l=0;l<o.length;l+=1)o[l]!==e&&o[l]instanceof a&&s(o[l]);else o instanceof a&&e!==o&&s(o)},setTransition:function(t,e){var n,i=this,r=i.constructor,a=i.controller.control;function s(e){e.setTransition(t,i),0!==t&&(e.transitionStart(),e.params.autoHeight&&Object(o["h"])((function(){e.updateAutoHeight()})),e.$wrapperEl.transitionEnd((function(){a&&(e.params.loop&&"slide"===i.params.controller.by&&e.loopFix(),e.transitionEnd())})))}if(Array.isArray(a))for(n=0;n<a.length;n+=1)a[n]!==e&&a[n]instanceof r&&s(a[n]);else a instanceof r&&e!==a&&s(a)}},L={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var t=this;Object(o["a"])(t,{controller:P({control:t.params.controller.control},j)})},on:{update:function(t){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},resize:function(t){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},observerUpdate:function(t){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)},setTranslate:function(t,e,n){t.controller.control&&t.controller.setTranslate(e,n)},setTransition:function(t,e,n){t.controller.control&&t.controller.setTransition(e,n)}}};function D(){return D=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},D.apply(this,arguments)}var R={getRandomNumber:function(t){void 0===t&&(t=16);var e=function(){return Math.round(16*Math.random()).toString(16)};return"x".repeat(t).replace(/x/g,e)},makeElFocusable:function(t){return t.attr("tabIndex","0"),t},makeElNotFocusable:function(t){return t.attr("tabIndex","-1"),t},addElRole:function(t,e){return t.attr("role",e),t},addElRoleDescription:function(t,e){return t.attr("aria-roledescription",e),t},addElControls:function(t,e){return t.attr("aria-controls",e),t},addElLabel:function(t,e){return t.attr("aria-label",e),t},addElId:function(t,e){return t.attr("id",e),t},addElLive:function(t,e){return t.attr("aria-live",e),t},disableEl:function(t){return t.attr("aria-disabled",!0),t},enableEl:function(t){return t.attr("aria-disabled",!1),t},onEnterOrSpaceKey:function(t){if(13===t.keyCode||32===t.keyCode){var e=this,n=e.params.a11y,i=Object(r["a"])(t.target);e.navigation&&e.navigation.$nextEl&&i.is(e.navigation.$nextEl)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?e.a11y.notify(n.lastSlideMessage):e.a11y.notify(n.nextSlideMessage)),e.navigation&&e.navigation.$prevEl&&i.is(e.navigation.$prevEl)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?e.a11y.notify(n.firstSlideMessage):e.a11y.notify(n.prevSlideMessage)),e.pagination&&i.is(Object(o["b"])(e.params.pagination.bulletClass))&&i[0].click()}},notify:function(t){var e=this,n=e.a11y.liveRegion;0!==n.length&&(n.html(""),n.html(t))},updateNavigation:function(){var t=this;if(!t.params.loop&&t.navigation){var e=t.navigation,n=e.$nextEl,i=e.$prevEl;i&&i.length>0&&(t.isBeginning?(t.a11y.disableEl(i),t.a11y.makeElNotFocusable(i)):(t.a11y.enableEl(i),t.a11y.makeElFocusable(i))),n&&n.length>0&&(t.isEnd?(t.a11y.disableEl(n),t.a11y.makeElNotFocusable(n)):(t.a11y.enableEl(n),t.a11y.makeElFocusable(n)))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(n){var i=Object(r["a"])(n);t.a11y.makeElFocusable(i),t.params.pagination.renderBullet||(t.a11y.addElRole(i,"button"),t.a11y.addElLabel(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1)))}))},init:function(){var t=this,e=t.params.a11y;t.$el.append(t.a11y.liveRegion);var n=t.$el;e.containerRoleDescriptionMessage&&t.a11y.addElRoleDescription(n,e.containerRoleDescriptionMessage),e.containerMessage&&t.a11y.addElLabel(n,e.containerMessage);var i=t.$wrapperEl,a=i.attr("id")||"swiper-wrapper-"+t.a11y.getRandomNumber(16),s=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";t.a11y.addElId(i,a),t.a11y.addElLive(i,s),e.itemRoleDescriptionMessage&&t.a11y.addElRoleDescription(Object(r["a"])(t.slides),e.itemRoleDescriptionMessage),t.a11y.addElRole(Object(r["a"])(t.slides),e.slideRole);var l,c,u=t.params.loop?t.slides.filter((function(e){return!e.classList.contains(t.params.slideDuplicateClass)})).length:t.slides.length;t.slides.each((function(n,i){var o=Object(r["a"])(n),a=t.params.loop?parseInt(o.attr("data-swiper-slide-index"),10):i,s=e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,u);t.a11y.addElLabel(o,s)})),t.navigation&&t.navigation.$nextEl&&(l=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(c=t.navigation.$prevEl),l&&l.length&&(t.a11y.makeElFocusable(l),"BUTTON"!==l[0].tagName&&(t.a11y.addElRole(l,"button"),l.on("keydown",t.a11y.onEnterOrSpaceKey)),t.a11y.addElLabel(l,e.nextSlideMessage),t.a11y.addElControls(l,a)),c&&c.length&&(t.a11y.makeElFocusable(c),"BUTTON"!==c[0].tagName&&(t.a11y.addElRole(c,"button"),c.on("keydown",t.a11y.onEnterOrSpaceKey)),t.a11y.addElLabel(c,e.prevSlideMessage),t.a11y.addElControls(c,a)),t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.$el.on("keydown",Object(o["b"])(t.params.pagination.bulletClass),t.a11y.onEnterOrSpaceKey)},destroy:function(){var t,e,n=this;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(t=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(e=n.navigation.$prevEl),t&&t.off("keydown",n.a11y.onEnterOrSpaceKey),e&&e.off("keydown",n.a11y.onEnterOrSpaceKey),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown",Object(o["b"])(n.params.pagination.bulletClass),n.a11y.onEnterOrSpaceKey)}},B={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group"}},create:function(){var t=this;Object(o["a"])(t,{a11y:D({},R,{liveRegion:Object(r["a"])('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')})})},on:{afterInit:function(t){t.params.a11y.enabled&&(t.a11y.init(),t.a11y.updateNavigation())},toEdge:function(t){t.params.a11y.enabled&&t.a11y.updateNavigation()},fromEdge:function(t){t.params.a11y.enabled&&t.a11y.updateNavigation()},paginationUpdate:function(t){t.params.a11y.enabled&&t.a11y.updatePagination()},destroy:function(t){t.params.a11y.enabled&&t.a11y.destroy()}}};function N(){return N=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},N.apply(this,arguments)}var F={init:function(){var t=this,e=Object(c["b"])();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);var n=t.history;n.initialized=!0,n.paths=F.getPathValues(t.params.url),(n.paths.key||n.paths.value)&&(n.scrollToSlide(0,n.paths.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",t.history.setHistoryPopState))}},destroy:function(){var t=this,e=Object(c["b"])();t.params.history.replaceState||e.removeEventListener("popstate",t.history.setHistoryPopState)},setHistoryPopState:function(){var t=this;t.history.paths=F.getPathValues(t.params.url),t.history.scrollToSlide(t.params.speed,t.history.paths.value,!1)},getPathValues:function(t){var e,n=Object(c["b"])();e=t?new URL(t):n.location;var i=e.pathname.slice(1).split("/").filter((function(t){return""!==t})),r=i.length,o=i[r-2],a=i[r-1];return{key:o,value:a}},setHistory:function(t,e){var n=this,i=Object(c["b"])();if(n.history.initialized&&n.params.history.enabled){var r;r=n.params.url?new URL(n.params.url):i.location;var o=n.slides.eq(e),a=F.slugify(o.attr("data-history"));if(n.params.history.root.length>0){var s=n.params.history.root;"/"===s[s.length-1]&&(s=s.slice(0,s.length-1)),a=s+"/"+t+"/"+a}else r.pathname.includes(t)||(a=t+"/"+a);var l=i.history.state;l&&l.value===a||(n.params.history.replaceState?i.history.replaceState({value:a},null,a):i.history.pushState({value:a},null,a))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,n){var i=this;if(e)for(var r=0,o=i.slides.length;r<o;r+=1){var a=i.slides.eq(r),s=F.slugify(a.attr("data-history"));if(s===e&&!a.hasClass(i.params.slideDuplicateClass)){var l=a.index();i.slideTo(l,t,n)}}else i.slideTo(0,t,n)}},z={name:"history",params:{history:{enabled:!1,root:"",replaceState:!1,key:"slides"}},create:function(){var t=this;Object(o["a"])(t,{history:N({},F)})},on:{init:function(t){t.params.history.enabled&&t.history.init()},destroy:function(t){t.params.history.enabled&&t.history.destroy()},"transitionEnd _freeModeNoMomentumRelease":function(t){t.history.initialized&&t.history.setHistory(t.params.history.key,t.activeIndex)},slideChange:function(t){t.history.initialized&&t.params.cssMode&&t.history.setHistory(t.params.history.key,t.activeIndex)}}};function V(){return V=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},V.apply(this,arguments)}var G={onHashChange:function(){var t=this,e=Object(c["a"])();t.emit("hashChange");var n=e.location.hash.replace("#",""),i=t.slides.eq(t.activeIndex).attr("data-hash");if(n!==i){var r=t.$wrapperEl.children("."+t.params.slideClass+'[data-hash="'+n+'"]').index();if("undefined"===typeof r)return;t.slideTo(r)}},setHash:function(){var t=this,e=Object(c["b"])(),n=Object(c["a"])();if(t.hashNavigation.initialized&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&e.history&&e.history.replaceState)e.history.replaceState(null,null,"#"+t.slides.eq(t.activeIndex).attr("data-hash")||!1),t.emit("hashSet");else{var i=t.slides.eq(t.activeIndex),r=i.attr("data-hash")||i.attr("data-history");n.location.hash=r||"",t.emit("hashSet")}},init:function(){var t=this,e=Object(c["a"])(),n=Object(c["b"])();if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var i=e.location.hash.replace("#","");if(i)for(var o=0,a=0,s=t.slides.length;a<s;a+=1){var l=t.slides.eq(a),u=l.attr("data-hash")||l.attr("data-history");if(u===i&&!l.hasClass(t.params.slideDuplicateClass)){var h=l.index();t.slideTo(h,o,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&Object(r["a"])(n).on("hashchange",t.hashNavigation.onHashChange)}},destroy:function(){var t=this,e=Object(c["b"])();t.params.hashNavigation.watchState&&Object(r["a"])(e).off("hashchange",t.hashNavigation.onHashChange)}},H={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var t=this;Object(o["a"])(t,{hashNavigation:V({initialized:!1},G)})},on:{init:function(t){t.params.hashNavigation.enabled&&t.hashNavigation.init()},destroy:function(t){t.params.hashNavigation.enabled&&t.hashNavigation.destroy()},"transitionEnd _freeModeNoMomentumRelease":function(t){t.hashNavigation.initialized&&t.hashNavigation.setHash()},slideChange:function(t){t.hashNavigation.initialized&&t.params.cssMode&&t.hashNavigation.setHash()}}},W=n("d17a");function U(){return U=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},U.apply(this,arguments)}var Z={setTranslate:function(){for(var t=this,e=t.slides,n=0;n<e.length;n+=1){var i=t.slides.eq(n),r=i[0].swiperSlideOffset,o=-r;t.params.virtualTranslate||(o-=t.translate);var a=0;t.isHorizontal()||(a=o,o=0);var s=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:s}).transform("translate3d("+o+"px, "+a+"px, 0px)")}},setTransition:function(t){var e=this,n=e.slides,i=e.$wrapperEl;if(n.transition(t),e.params.virtualTranslate&&0!==t){var r=!1;n.transitionEnd((function(){if(!r&&e&&!e.destroyed){r=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],n=0;n<t.length;n+=1)i.trigger(t[n])}}))}}},Y={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var t=this;Object(o["a"])(t,{fadeEffect:U({},Z)})},on:{beforeInit:function(t){if("fade"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"fade");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Object(o["e"])(t.params,e),Object(o["e"])(t.originalParams,e)}},setTranslate:function(t){"fade"===t.params.effect&&t.fadeEffect.setTranslate()},setTransition:function(t,e){"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}};function X(){return X=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},X.apply(this,arguments)}var q={setTranslate:function(){var t,e=this,n=e.$el,i=e.$wrapperEl,o=e.slides,a=e.width,s=e.height,l=e.rtlTranslate,c=e.size,u=e.browser,h=e.params.cubeEffect,d=e.isHorizontal(),p=e.virtual&&e.params.virtual.enabled,f=0;h.shadow&&(d?(t=i.find(".swiper-cube-shadow"),0===t.length&&(t=Object(r["a"])('<div class="swiper-cube-shadow"></div>'),i.append(t)),t.css({height:a+"px"})):(t=n.find(".swiper-cube-shadow"),0===t.length&&(t=Object(r["a"])('<div class="swiper-cube-shadow"></div>'),n.append(t))));for(var g=0;g<o.length;g+=1){var m=o.eq(g),v=g;p&&(v=parseInt(m.attr("data-swiper-slide-index"),10));var y=90*v,b=Math.floor(y/360);l&&(y=-y,b=Math.floor(-y/360));var x=Math.max(Math.min(m[0].progress,1),-1),w=0,_=0,C=0;v%4===0?(w=4*-b*c,C=0):(v-1)%4===0?(w=0,C=4*-b*c):(v-2)%4===0?(w=c+4*b*c,C=c):(v-3)%4===0&&(w=-c,C=3*c+4*c*b),l&&(w=-w),d||(_=w,w=0);var A="rotateX("+(d?0:-y)+"deg) rotateY("+(d?y:0)+"deg) translate3d("+w+"px, "+_+"px, "+C+"px)";if(x<=1&&x>-1&&(f=90*v+90*x,l&&(f=90*-v-90*x)),m.transform(A),h.slideShadows){var I=d?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),S=d?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===I.length&&(I=Object(r["a"])('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),m.append(I)),0===S.length&&(S=Object(r["a"])('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),m.append(S)),I.length&&(I[0].style.opacity=Math.max(-x,0)),S.length&&(S[0].style.opacity=Math.max(x,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+c/2+"px","-moz-transform-origin":"50% 50% -"+c/2+"px","-ms-transform-origin":"50% 50% -"+c/2+"px","transform-origin":"50% 50% -"+c/2+"px"}),h.shadow)if(d)t.transform("translate3d(0px, "+(a/2+h.shadowOffset)+"px, "+-a/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.shadowScale+")");else{var M=Math.abs(f)-90*Math.floor(Math.abs(f)/90),k=1.5-(Math.sin(2*M*Math.PI/360)/2+Math.cos(2*M*Math.PI/360)/2),E=h.shadowScale,T=h.shadowScale/k,O=h.shadowOffset;t.transform("scale3d("+E+", 1, "+T+") translate3d(0px, "+(s/2+O)+"px, "+-s/2/T+"px) rotateX(-90deg)")}var P=u.isSafari||u.isWebView?-c/2:0;i.transform("translate3d(0px,0,"+P+"px) rotateX("+(e.isHorizontal()?0:f)+"deg) rotateY("+(e.isHorizontal()?-f:0)+"deg)")},setTransition:function(t){var e=this,n=e.$el,i=e.slides;i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.cubeEffect.shadow&&!e.isHorizontal()&&n.find(".swiper-cube-shadow").transition(t)}},K={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var t=this;Object(o["a"])(t,{cubeEffect:X({},q)})},on:{beforeInit:function(t){if("cube"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};Object(o["e"])(t.params,e),Object(o["e"])(t.originalParams,e)}},setTranslate:function(t){"cube"===t.params.effect&&t.cubeEffect.setTranslate()},setTransition:function(t,e){"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}};function Q(){return Q=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Q.apply(this,arguments)}var J={setTranslate:function(){for(var t=this,e=t.slides,n=t.rtlTranslate,i=0;i<e.length;i+=1){var o=e.eq(i),a=o[0].progress;t.params.flipEffect.limitRotation&&(a=Math.max(Math.min(o[0].progress,1),-1));var s=o[0].swiperSlideOffset,l=-180*a,c=l,u=0,h=-s,d=0;if(t.isHorizontal()?n&&(c=-c):(d=h,h=0,u=-c,c=0),o[0].style.zIndex=-Math.abs(Math.round(a))+e.length,t.params.flipEffect.slideShadows){var p=t.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),f=t.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===p.length&&(p=Object(r["a"])('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),o.append(p)),0===f.length&&(f=Object(r["a"])('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),o.append(f)),p.length&&(p[0].style.opacity=Math.max(-a,0)),f.length&&(f[0].style.opacity=Math.max(a,0))}o.transform("translate3d("+h+"px, "+d+"px, 0px) rotateX("+u+"deg) rotateY("+c+"deg)")}},setTransition:function(t){var e=this,n=e.slides,i=e.activeIndex,r=e.$wrapperEl;if(n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var o=!1;n.eq(i).transitionEnd((function(){if(!o&&e&&!e.destroyed){o=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],n=0;n<t.length;n+=1)r.trigger(t[n])}}))}}},$={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var t=this;Object(o["a"])(t,{flipEffect:Q({},J)})},on:{beforeInit:function(t){if("flip"===t.params.effect){t.classNames.push(t.params.containerModifierClass+"flip"),t.classNames.push(t.params.containerModifierClass+"3d");var e={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Object(o["e"])(t.params,e),Object(o["e"])(t.originalParams,e)}},setTranslate:function(t){"flip"===t.params.effect&&t.flipEffect.setTranslate()},setTransition:function(t,e){"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}};function tt(){return tt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},tt.apply(this,arguments)}var et={setTranslate:function(){for(var t=this,e=t.width,n=t.height,i=t.slides,o=t.slidesSizesGrid,a=t.params.coverflowEffect,s=t.isHorizontal(),l=t.translate,c=s?e/2-l:n/2-l,u=s?a.rotate:-a.rotate,h=a.depth,d=0,p=i.length;d<p;d+=1){var f=i.eq(d),g=o[d],m=f[0].swiperSlideOffset,v=(c-m-g/2)/g*a.modifier,y=s?u*v:0,b=s?0:u*v,x=-h*Math.abs(v),w=a.stretch;"string"===typeof w&&-1!==w.indexOf("%")&&(w=parseFloat(a.stretch)/100*g);var _=s?0:w*v,C=s?w*v:0,A=1-(1-a.scale)*Math.abs(v);Math.abs(C)<.001&&(C=0),Math.abs(_)<.001&&(_=0),Math.abs(x)<.001&&(x=0),Math.abs(y)<.001&&(y=0),Math.abs(b)<.001&&(b=0),Math.abs(A)<.001&&(A=0);var I="translate3d("+C+"px,"+_+"px,"+x+"px)  rotateX("+b+"deg) rotateY("+y+"deg) scale("+A+")";if(f.transform(I),f[0].style.zIndex=1-Math.abs(Math.round(v)),a.slideShadows){var S=s?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),M=s?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===S.length&&(S=Object(r["a"])('<div class="swiper-slide-shadow-'+(s?"left":"top")+'"></div>'),f.append(S)),0===M.length&&(M=Object(r["a"])('<div class="swiper-slide-shadow-'+(s?"right":"bottom")+'"></div>'),f.append(M)),S.length&&(S[0].style.opacity=v>0?v:0),M.length&&(M[0].style.opacity=-v>0?-v:0)}}},setTransition:function(t){var e=this;e.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},nt={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){var t=this;Object(o["a"])(t,{coverflowEffect:tt({},et)})},on:{beforeInit:function(t){"coverflow"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"coverflow"),t.classNames.push(t.params.containerModifierClass+"3d"),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)},setTranslate:function(t){"coverflow"===t.params.effect&&t.coverflowEffect.setTranslate()},setTransition:function(t,e){"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}};function it(){return it=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},it.apply(this,arguments)}var rt={init:function(){var t=this,e=t.params.thumbs;if(t.thumbs.initialized)return!1;t.thumbs.initialized=!0;var n=t.constructor;return e.swiper instanceof n?(t.thumbs.swiper=e.swiper,Object(o["e"])(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object(o["e"])(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):Object(o["g"])(e.swiper)&&(t.thumbs.swiper=new n(Object(o["e"])({},e.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),t.thumbs.swiperCreated=!0),t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",t.thumbs.onThumbClick),!0},onThumbClick:function(){var t=this,e=t.thumbs.swiper;if(e){var n=e.clickedIndex,i=e.clickedSlide;if((!i||!Object(r["a"])(i).hasClass(t.params.thumbs.slideThumbActiveClass))&&"undefined"!==typeof n&&null!==n){var o;if(o=e.params.loop?parseInt(Object(r["a"])(e.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){var a=t.activeIndex;t.slides.eq(a).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,a=t.activeIndex);var s=t.slides.eq(a).prevAll('[data-swiper-slide-index="'+o+'"]').eq(0).index(),l=t.slides.eq(a).nextAll('[data-swiper-slide-index="'+o+'"]').eq(0).index();o="undefined"===typeof s?l:"undefined"===typeof l?s:l-a<a-s?l:s}t.slideTo(o)}}},update:function(t){var e=this,n=e.thumbs.swiper;if(n){var i="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView,r=e.params.thumbs.autoScrollOffset,o=r&&!n.params.loop;if(e.realIndex!==n.realIndex||o){var a,s,l=n.activeIndex;if(n.params.loop){n.slides.eq(l).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,l=n.activeIndex);var c=n.slides.eq(l).prevAll('[data-swiper-slide-index="'+e.realIndex+'"]').eq(0).index(),u=n.slides.eq(l).nextAll('[data-swiper-slide-index="'+e.realIndex+'"]').eq(0).index();a="undefined"===typeof c?u:"undefined"===typeof u?c:u-l===l-c?n.params.slidesPerGroup>1?u:l:u-l<l-c?u:c,s=e.activeIndex>e.previousIndex?"next":"prev"}else a=e.realIndex,s=a>e.previousIndex?"next":"prev";o&&(a+="next"===s?r:-1*r),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(a)<0&&(n.params.centeredSlides?a=a>l?a-Math.floor(i/2)+1:a+Math.floor(i/2)-1:a>l&&n.params.slidesPerGroup,n.slideTo(a,t?0:void 0))}var h=1,d=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(h=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(h=1),h=Math.floor(h),n.slides.removeClass(d),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(var p=0;p<h;p+=1)n.$wrapperEl.children('[data-swiper-slide-index="'+(e.realIndex+p)+'"]').addClass(d);else for(var f=0;f<h;f+=1)n.slides.eq(e.realIndex+f).addClass(d)}}},ot={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var t=this;Object(o["a"])(t,{thumbs:it({swiper:null,initialized:!1},rt)})},on:{beforeInit:function(t){var e=t.params.thumbs;e&&e.swiper&&(t.thumbs.init(),t.thumbs.update(!0))},slideChange:function(t){t.thumbs.swiper&&t.thumbs.update()},update:function(t){t.thumbs.swiper&&t.thumbs.update()},resize:function(t){t.thumbs.swiper&&t.thumbs.update()},observerUpdate:function(t){t.thumbs.swiper&&t.thumbs.update()},setTransition:function(t,e){var n=t.thumbs.swiper;n&&n.setTransition(e)},beforeDestroy:function(t){var e=t.thumbs.swiper;e&&t.thumbs.swiperCreated&&e&&e.destroy()}}};n.d(e,"Swiper",(function(){return i["a"]})),n.d(e,"default",(function(){return i["a"]})),n.d(e,"Virtual",(function(){return l})),n.d(e,"Keyboard",(function(){return d})),n.d(e,"Mousewheel",(function(){return g})),n.d(e,"Navigation",(function(){return y})),n.d(e,"Pagination",(function(){return b["a"]})),n.d(e,"Scrollbar",(function(){return _})),n.d(e,"Parallax",(function(){return I})),n.d(e,"Zoom",(function(){return k})),n.d(e,"Lazy",(function(){return O})),n.d(e,"Controller",(function(){return L})),n.d(e,"A11y",(function(){return B})),n.d(e,"History",(function(){return z})),n.d(e,"HashNavigation",(function(){return H})),n.d(e,"Autoplay",(function(){return W["a"]})),n.d(e,"EffectFade",(function(){return Y})),n.d(e,"EffectCube",(function(){return K})),n.d(e,"EffectFlip",(function(){return $})),n.d(e,"EffectCoverflow",(function(){return nt})),n.d(e,"Thumbs",(function(){return ot}))},"4e15":function(t,e,n){"use strict";n.r(e),n.d(e,"OutlinePass",(function(){return a}));var i=n("5a89"),r=n("1b53"),o=n("e9d2");class a extends r["Pass"]{constructor(t,e,n,a){super(),this.renderScene=e,this.renderCamera=n,this.selectedObjects=void 0!==a?a:[],this.visibleEdgeColor=new i["Color"](1,1,1),this.hiddenEdgeColor=new i["Color"](.1,.04,.02),this.edgeGlow=0,this.usePatternTexture=!1,this.edgeThickness=1,this.edgeStrength=3,this.downSampleRatio=2,this.pulsePeriod=0,this._visibilityCache=new Map,this.resolution=void 0!==t?new i["Vector2"](t.x,t.y):new i["Vector2"](256,256);const s={minFilter:i["LinearFilter"],magFilter:i["LinearFilter"],format:i["RGBAFormat"]},l=Math.round(this.resolution.x/this.downSampleRatio),c=Math.round(this.resolution.y/this.downSampleRatio);this.maskBufferMaterial=new i["MeshBasicMaterial"]({color:16777215}),this.maskBufferMaterial.side=i["DoubleSide"],this.renderTargetMaskBuffer=new i["WebGLRenderTarget"](this.resolution.x,this.resolution.y,s),this.renderTargetMaskBuffer.texture.name="OutlinePass.mask",this.renderTargetMaskBuffer.texture.generateMipmaps=!1,this.depthMaterial=new i["MeshDepthMaterial"],this.depthMaterial.side=i["DoubleSide"],this.depthMaterial.depthPacking=i["RGBADepthPacking"],this.depthMaterial.blending=i["NoBlending"],this.prepareMaskMaterial=this.getPrepareMaskMaterial(),this.prepareMaskMaterial.side=i["DoubleSide"],this.prepareMaskMaterial.fragmentShader=p(this.prepareMaskMaterial.fragmentShader,this.renderCamera),this.renderTargetDepthBuffer=new i["WebGLRenderTarget"](this.resolution.x,this.resolution.y,s),this.renderTargetDepthBuffer.texture.name="OutlinePass.depth",this.renderTargetDepthBuffer.texture.generateMipmaps=!1,this.renderTargetMaskDownSampleBuffer=new i["WebGLRenderTarget"](l,c,s),this.renderTargetMaskDownSampleBuffer.texture.name="OutlinePass.depthDownSample",this.renderTargetMaskDownSampleBuffer.texture.generateMipmaps=!1,this.renderTargetBlurBuffer1=new i["WebGLRenderTarget"](l,c,s),this.renderTargetBlurBuffer1.texture.name="OutlinePass.blur1",this.renderTargetBlurBuffer1.texture.generateMipmaps=!1,this.renderTargetBlurBuffer2=new i["WebGLRenderTarget"](Math.round(l/2),Math.round(c/2),s),this.renderTargetBlurBuffer2.texture.name="OutlinePass.blur2",this.renderTargetBlurBuffer2.texture.generateMipmaps=!1,this.edgeDetectionMaterial=this.getEdgeDetectionMaterial(),this.renderTargetEdgeBuffer1=new i["WebGLRenderTarget"](l,c,s),this.renderTargetEdgeBuffer1.texture.name="OutlinePass.edge1",this.renderTargetEdgeBuffer1.texture.generateMipmaps=!1,this.renderTargetEdgeBuffer2=new i["WebGLRenderTarget"](Math.round(l/2),Math.round(c/2),s),this.renderTargetEdgeBuffer2.texture.name="OutlinePass.edge2",this.renderTargetEdgeBuffer2.texture.generateMipmaps=!1;const u=4,h=4;this.separableBlurMaterial1=this.getSeperableBlurMaterial(u),this.separableBlurMaterial1.uniforms["texSize"].value.set(l,c),this.separableBlurMaterial1.uniforms["kernelRadius"].value=1,this.separableBlurMaterial2=this.getSeperableBlurMaterial(h),this.separableBlurMaterial2.uniforms["texSize"].value.set(Math.round(l/2),Math.round(c/2)),this.separableBlurMaterial2.uniforms["kernelRadius"].value=h,this.overlayMaterial=this.getOverlayMaterial(),void 0===o["CopyShader"]&&console.error("THREE.OutlinePass relies on CopyShader");const d=o["CopyShader"];function p(t,e){var n=e.isPerspectiveCamera?"perspective":"orthographic";return t.replace(/DEPTH_TO_VIEW_Z/g,n+"DepthToViewZ")}this.copyUniforms=i["UniformsUtils"].clone(d.uniforms),this.copyUniforms["opacity"].value=1,this.materialCopy=new i["ShaderMaterial"]({uniforms:this.copyUniforms,vertexShader:d.vertexShader,fragmentShader:d.fragmentShader,blending:i["NoBlending"],depthTest:!1,depthWrite:!1,transparent:!0}),this.enabled=!0,this.needsSwap=!1,this._oldClearColor=new i["Color"],this.oldClearAlpha=1,this.fsQuad=new r["FullScreenQuad"](null),this.tempPulseColor1=new i["Color"],this.tempPulseColor2=new i["Color"],this.textureMatrix=new i["Matrix4"]}dispose(){this.renderTargetMaskBuffer.dispose(),this.renderTargetDepthBuffer.dispose(),this.renderTargetMaskDownSampleBuffer.dispose(),this.renderTargetBlurBuffer1.dispose(),this.renderTargetBlurBuffer2.dispose(),this.renderTargetEdgeBuffer1.dispose(),this.renderTargetEdgeBuffer2.dispose()}setSize(t,e){this.renderTargetMaskBuffer.setSize(t,e),this.renderTargetDepthBuffer.setSize(t,e);let n=Math.round(t/this.downSampleRatio),i=Math.round(e/this.downSampleRatio);this.renderTargetMaskDownSampleBuffer.setSize(n,i),this.renderTargetBlurBuffer1.setSize(n,i),this.renderTargetEdgeBuffer1.setSize(n,i),this.separableBlurMaterial1.uniforms["texSize"].value.set(n,i),n=Math.round(n/2),i=Math.round(i/2),this.renderTargetBlurBuffer2.setSize(n,i),this.renderTargetEdgeBuffer2.setSize(n,i),this.separableBlurMaterial2.uniforms["texSize"].value.set(n,i)}changeVisibilityOfSelectedObjects(t){const e=this._visibilityCache;function n(n){n.isMesh&&(!0===t?n.visible=e.get(n):(e.set(n,n.visible),n.visible=t))}for(let i=0;i<this.selectedObjects.length;i++){const t=this.selectedObjects[i];t.traverse(n)}}changeVisibilityOfNonSelectedObjects(t){const e=this._visibilityCache,n=[];function i(t){t.isMesh&&n.push(t)}for(let o=0;o<this.selectedObjects.length;o++){const t=this.selectedObjects[o];t.traverse(i)}function r(i){if(i.isMesh||i.isSprite){let r=!1;for(let t=0;t<n.length;t++){const e=n[t].id;if(e===i.id){r=!0;break}}if(!1===r){const n=i.visible;!1!==t&&!0!==e.get(i)||(i.visible=t),e.set(i,n)}}else(i.isPoints||i.isLine)&&(!0===t?i.visible=e.get(i):(e.set(i,i.visible),i.visible=t))}this.renderScene.traverse(r)}updateTextureMatrix(){this.textureMatrix.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),this.textureMatrix.multiply(this.renderCamera.projectionMatrix),this.textureMatrix.multiply(this.renderCamera.matrixWorldInverse)}render(t,e,n,i,r){if(this.selectedObjects.length>0){t.getClearColor(this._oldClearColor),this.oldClearAlpha=t.getClearAlpha();const e=t.autoClear;t.autoClear=!1,r&&t.state.buffers.stencil.setTest(!1),t.setClearColor(16777215,1),this.changeVisibilityOfSelectedObjects(!1);const i=this.renderScene.background;if(this.renderScene.background=null,this.renderScene.overrideMaterial=this.depthMaterial,t.setRenderTarget(this.renderTargetDepthBuffer),t.clear(),t.render(this.renderScene,this.renderCamera),this.changeVisibilityOfSelectedObjects(!0),this._visibilityCache.clear(),this.updateTextureMatrix(),this.changeVisibilityOfNonSelectedObjects(!1),this.renderScene.overrideMaterial=this.prepareMaskMaterial,this.prepareMaskMaterial.uniforms["cameraNearFar"].value.set(this.renderCamera.near,this.renderCamera.far),this.prepareMaskMaterial.uniforms["depthTexture"].value=this.renderTargetDepthBuffer.texture,this.prepareMaskMaterial.uniforms["textureMatrix"].value=this.textureMatrix,t.setRenderTarget(this.renderTargetMaskBuffer),t.clear(),t.render(this.renderScene,this.renderCamera),this.renderScene.overrideMaterial=null,this.changeVisibilityOfNonSelectedObjects(!0),this._visibilityCache.clear(),this.renderScene.background=i,this.fsQuad.material=this.materialCopy,this.copyUniforms["tDiffuse"].value=this.renderTargetMaskBuffer.texture,t.setRenderTarget(this.renderTargetMaskDownSampleBuffer),t.clear(),this.fsQuad.render(t),this.tempPulseColor1.copy(this.visibleEdgeColor),this.tempPulseColor2.copy(this.hiddenEdgeColor),this.pulsePeriod>0){const t=.625+.75*Math.cos(.01*performance.now()/this.pulsePeriod)/2;this.tempPulseColor1.multiplyScalar(t),this.tempPulseColor2.multiplyScalar(t)}this.fsQuad.material=this.edgeDetectionMaterial,this.edgeDetectionMaterial.uniforms["maskTexture"].value=this.renderTargetMaskDownSampleBuffer.texture,this.edgeDetectionMaterial.uniforms["texSize"].value.set(this.renderTargetMaskDownSampleBuffer.width,this.renderTargetMaskDownSampleBuffer.height),this.edgeDetectionMaterial.uniforms["visibleEdgeColor"].value=this.tempPulseColor1,this.edgeDetectionMaterial.uniforms["hiddenEdgeColor"].value=this.tempPulseColor2,t.setRenderTarget(this.renderTargetEdgeBuffer1),t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.separableBlurMaterial1,this.separableBlurMaterial1.uniforms["colorTexture"].value=this.renderTargetEdgeBuffer1.texture,this.separableBlurMaterial1.uniforms["direction"].value=a.BlurDirectionX,this.separableBlurMaterial1.uniforms["kernelRadius"].value=this.edgeThickness,t.setRenderTarget(this.renderTargetBlurBuffer1),t.clear(),this.fsQuad.render(t),this.separableBlurMaterial1.uniforms["colorTexture"].value=this.renderTargetBlurBuffer1.texture,this.separableBlurMaterial1.uniforms["direction"].value=a.BlurDirectionY,t.setRenderTarget(this.renderTargetEdgeBuffer1),t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.separableBlurMaterial2,this.separableBlurMaterial2.uniforms["colorTexture"].value=this.renderTargetEdgeBuffer1.texture,this.separableBlurMaterial2.uniforms["direction"].value=a.BlurDirectionX,t.setRenderTarget(this.renderTargetBlurBuffer2),t.clear(),this.fsQuad.render(t),this.separableBlurMaterial2.uniforms["colorTexture"].value=this.renderTargetBlurBuffer2.texture,this.separableBlurMaterial2.uniforms["direction"].value=a.BlurDirectionY,t.setRenderTarget(this.renderTargetEdgeBuffer2),t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.overlayMaterial,this.overlayMaterial.uniforms["maskTexture"].value=this.renderTargetMaskBuffer.texture,this.overlayMaterial.uniforms["edgeTexture1"].value=this.renderTargetEdgeBuffer1.texture,this.overlayMaterial.uniforms["edgeTexture2"].value=this.renderTargetEdgeBuffer2.texture,this.overlayMaterial.uniforms["patternTexture"].value=this.patternTexture,this.overlayMaterial.uniforms["edgeStrength"].value=this.edgeStrength,this.overlayMaterial.uniforms["edgeGlow"].value=this.edgeGlow,this.overlayMaterial.uniforms["usePatternTexture"].value=this.usePatternTexture,r&&t.state.buffers.stencil.setTest(!0),t.setRenderTarget(n),this.fsQuad.render(t),t.setClearColor(this._oldClearColor,this.oldClearAlpha),t.autoClear=e}this.renderToScreen&&(this.fsQuad.material=this.materialCopy,this.copyUniforms["tDiffuse"].value=n.texture,t.setRenderTarget(null),this.fsQuad.render(t))}getPrepareMaskMaterial(){return new i["ShaderMaterial"]({uniforms:{depthTexture:{value:null},cameraNearFar:{value:new i["Vector2"](.5,.5)},textureMatrix:{value:null}},vertexShader:"#include <morphtarget_pars_vertex>\n\t\t\t\t#include <skinning_pars_vertex>\n\n\t\t\t\tvarying vec4 projTexCoord;\n\t\t\t\tvarying vec4 vPosition;\n\t\t\t\tuniform mat4 textureMatrix;\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\t#include <skinbase_vertex>\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <morphtarget_vertex>\n\t\t\t\t\t#include <skinning_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t\tvPosition = mvPosition;\n\t\t\t\t\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\n\t\t\t\t\tprojTexCoord = textureMatrix * worldPosition;\n\n\t\t\t\t}",fragmentShader:"#include <packing>\n\t\t\t\tvarying vec4 vPosition;\n\t\t\t\tvarying vec4 projTexCoord;\n\t\t\t\tuniform sampler2D depthTexture;\n\t\t\t\tuniform vec2 cameraNearFar;\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tfloat depth = unpackRGBAToDepth(texture2DProj( depthTexture, projTexCoord ));\n\t\t\t\t\tfloat viewZ = - DEPTH_TO_VIEW_Z( depth, cameraNearFar.x, cameraNearFar.y );\n\t\t\t\t\tfloat depthTest = (-vPosition.z > viewZ) ? 1.0 : 0.0;\n\t\t\t\t\tgl_FragColor = vec4(0.0, depthTest, 1.0, 1.0);\n\n\t\t\t\t}"})}getEdgeDetectionMaterial(){return new i["ShaderMaterial"]({uniforms:{maskTexture:{value:null},texSize:{value:new i["Vector2"](.5,.5)},visibleEdgeColor:{value:new i["Vector3"](1,1,1)},hiddenEdgeColor:{value:new i["Vector3"](1,1,1)}},vertexShader:"varying vec2 vUv;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"varying vec2 vUv;\n\n\t\t\t\tuniform sampler2D maskTexture;\n\t\t\t\tuniform vec2 texSize;\n\t\t\t\tuniform vec3 visibleEdgeColor;\n\t\t\t\tuniform vec3 hiddenEdgeColor;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvec2 invSize = 1.0 / texSize;\n\t\t\t\t\tvec4 uvOffset = vec4(1.0, 0.0, 0.0, 1.0) * vec4(invSize, invSize);\n\t\t\t\t\tvec4 c1 = texture2D( maskTexture, vUv + uvOffset.xy);\n\t\t\t\t\tvec4 c2 = texture2D( maskTexture, vUv - uvOffset.xy);\n\t\t\t\t\tvec4 c3 = texture2D( maskTexture, vUv + uvOffset.yw);\n\t\t\t\t\tvec4 c4 = texture2D( maskTexture, vUv - uvOffset.yw);\n\t\t\t\t\tfloat diff1 = (c1.r - c2.r)*0.5;\n\t\t\t\t\tfloat diff2 = (c3.r - c4.r)*0.5;\n\t\t\t\t\tfloat d = length( vec2(diff1, diff2) );\n\t\t\t\t\tfloat a1 = min(c1.g, c2.g);\n\t\t\t\t\tfloat a2 = min(c3.g, c4.g);\n\t\t\t\t\tfloat visibilityFactor = min(a1, a2);\n\t\t\t\t\tvec3 edgeColor = 1.0 - visibilityFactor > 0.001 ? visibleEdgeColor : hiddenEdgeColor;\n\t\t\t\t\tgl_FragColor = vec4(edgeColor, 1.0) * vec4(d);\n\t\t\t\t}"})}getSeperableBlurMaterial(t){return new i["ShaderMaterial"]({defines:{MAX_RADIUS:t},uniforms:{colorTexture:{value:null},texSize:{value:new i["Vector2"](.5,.5)},direction:{value:new i["Vector2"](.5,.5)},kernelRadius:{value:1}},vertexShader:"varying vec2 vUv;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"#include <common>\n\t\t\t\tvarying vec2 vUv;\n\t\t\t\tuniform sampler2D colorTexture;\n\t\t\t\tuniform vec2 texSize;\n\t\t\t\tuniform vec2 direction;\n\t\t\t\tuniform float kernelRadius;\n\n\t\t\t\tfloat gaussianPdf(in float x, in float sigma) {\n\t\t\t\t\treturn 0.39894 * exp( -0.5 * x * x/( sigma * sigma))/sigma;\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvec2 invSize = 1.0 / texSize;\n\t\t\t\t\tfloat weightSum = gaussianPdf(0.0, kernelRadius);\n\t\t\t\t\tvec4 diffuseSum = texture2D( colorTexture, vUv) * weightSum;\n\t\t\t\t\tvec2 delta = direction * invSize * kernelRadius/float(MAX_RADIUS);\n\t\t\t\t\tvec2 uvOffset = delta;\n\t\t\t\t\tfor( int i = 1; i <= MAX_RADIUS; i ++ ) {\n\t\t\t\t\t\tfloat w = gaussianPdf(uvOffset.x, kernelRadius);\n\t\t\t\t\t\tvec4 sample1 = texture2D( colorTexture, vUv + uvOffset);\n\t\t\t\t\t\tvec4 sample2 = texture2D( colorTexture, vUv - uvOffset);\n\t\t\t\t\t\tdiffuseSum += ((sample1 + sample2) * w);\n\t\t\t\t\t\tweightSum += (2.0 * w);\n\t\t\t\t\t\tuvOffset += delta;\n\t\t\t\t\t}\n\t\t\t\t\tgl_FragColor = diffuseSum/weightSum;\n\t\t\t\t}"})}getOverlayMaterial(){return new i["ShaderMaterial"]({uniforms:{maskTexture:{value:null},edgeTexture1:{value:null},edgeTexture2:{value:null},patternTexture:{value:null},edgeStrength:{value:1},edgeGlow:{value:1},usePatternTexture:{value:0}},vertexShader:"varying vec2 vUv;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"varying vec2 vUv;\n\n\t\t\t\tuniform sampler2D maskTexture;\n\t\t\t\tuniform sampler2D edgeTexture1;\n\t\t\t\tuniform sampler2D edgeTexture2;\n\t\t\t\tuniform sampler2D patternTexture;\n\t\t\t\tuniform float edgeStrength;\n\t\t\t\tuniform float edgeGlow;\n\t\t\t\tuniform bool usePatternTexture;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvec4 edgeValue1 = texture2D(edgeTexture1, vUv);\n\t\t\t\t\tvec4 edgeValue2 = texture2D(edgeTexture2, vUv);\n\t\t\t\t\tvec4 maskColor = texture2D(maskTexture, vUv);\n\t\t\t\t\tvec4 patternColor = texture2D(patternTexture, 6.0 * vUv);\n\t\t\t\t\tfloat visibilityFactor = 1.0 - maskColor.g > 0.0 ? 1.0 : 0.5;\n\t\t\t\t\tvec4 edgeValue = edgeValue1 + edgeValue2 * edgeGlow;\n\t\t\t\t\tvec4 finalColor = edgeStrength * maskColor.r * edgeValue;\n\t\t\t\t\tif(usePatternTexture)\n\t\t\t\t\t\tfinalColor += + visibilityFactor * (1.0 - maskColor.r) * (1.0 - patternColor.r);\n\t\t\t\t\tgl_FragColor = finalColor;\n\t\t\t\t}",blending:i["AdditiveBlending"],depthTest:!1,depthWrite:!1,transparent:!0})}}a.BlurDirectionX=new i["Vector2"](1,0),a.BlurDirectionY=new i["Vector2"](0,1)},"4f53":function(t,e,n){"use strict";var i=n("d05f"),r=n.n(i);r.a},"4fad":function(t,e,n){var i=n("d039"),r=n("861d"),o=n("c6b6"),a=n("d86b"),s=Object.isExtensible,l=i((function(){s(1)}));t.exports=l||a?function(t){return!!r(t)&&((!a||"ArrayBuffer"!=o(t))&&(!s||s(t)))}:s},"503e":function(t,e,n){"use strict";function i(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function r(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"50e1":function(t,e,n){var i=n("eb71");function r(t){var e=i.spaceIndex(t);if(-1===e)var n=t.slice(1,-1);else n=t.slice(1,e+1);return n=i.trim(n).toLowerCase(),"/"===n.slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}function o(t){return"</"===t.slice(0,2)}function a(t,e,n){"use strict";var i="",a=0,s=!1,l=!1,c=0,u=t.length,h="",d="";t:for(c=0;c<u;c++){var p=t.charAt(c);if(!1===s){if("<"===p){s=c;continue}}else if(!1===l){if("<"===p){i+=n(t.slice(a,c)),s=c,a=c;continue}if(">"===p){i+=n(t.slice(a,s)),d=t.slice(s,c+1),h=r(d),i+=e(s,i.length,h,d,o(d)),a=c+1,s=!1;continue}if('"'===p||"'"===p){var f=1,g=t.charAt(c-f);while(" "===g||"="===g){if("="===g){l=p;continue t}g=t.charAt(c-++f)}}}else if(p===l){l=!1;continue}}return a<t.length&&(i+=n(t.substr(a))),i}var s=/[^a-zA-Z0-9_:\.\-]/gim;function l(t,e){"use strict";var n=0,r=[],o=!1,a=t.length;function l(t,n){if(t=i.trim(t),t=t.replace(s,"").toLowerCase(),!(t.length<1)){var o=e(t,n||"");o&&r.push(o)}}for(var h=0;h<a;h++){var p,f,g=t.charAt(h);if(!1!==o||"="!==g)if(!1===o||h!==n||'"'!==g&&"'"!==g||"="!==t.charAt(h-1))if(/\s|\n|\t/.test(g)){if(t=t.replace(/\s|\n|\t/g," "),!1===o){if(f=c(t,h),-1===f){p=i.trim(t.slice(n,h)),l(p),o=!1,n=h+1;continue}h=f-1;continue}if(f=u(t,h-1),-1===f){p=i.trim(t.slice(n,h)),p=d(p),l(o,p),o=!1,n=h+1;continue}}else;else{if(f=t.indexOf(g,h+1),-1===f)break;p=i.trim(t.slice(n+1,f)),l(o,p),o=!1,h=f,n=h+1}else o=t.slice(n,h),n=h+1}return n<t.length&&(!1===o?l(t.slice(n)):l(o,d(i.trim(t.slice(n))))),i.trim(r.join(" "))}function c(t,e){for(;e<t.length;e++){var n=t[e];if(" "!==n)return"="===n?e:-1}}function u(t,e){for(;e>0;e--){var n=t[e];if(" "!==n)return"="===n?e:-1}}function h(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}function d(t){return h(t)?t.substr(1,t.length-2):t}e.parseTag=a,e.parseAttr=l},"516b":function(t,e,n){"use strict";function i(){return window?window.devicePixelRatio:1}function r(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function o(t,e,n,i,r,o){return r>=t&&r<=t+n&&o>=e&&o<=e+i}function a(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function s(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function l(t,e){return t[0]===e[0]&&t[1]===e[1]}Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0,e.getPixelRatio=i,e.distance=r,e.inBox=o,e.intersectRect=a,e.mergeRegion=s,e.isSamePoint=l;var c=n("28f9");Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return c.default}});var u=n("61d8");Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return u.default}});var h=n("2047");Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return h.default}});var d=n("01f9");Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return d.default}});var p=n("72fb");Object.defineProperty(e,"each",{enumerable:!0,get:function(){return p.default}});var f=n("3753");Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return f.default}});var g=n("df01");Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return g.default}});var m=n("29f4");Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return m.default}});var v=n("f105");Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return v.default}});var y=n("83be");Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return y.default}})},"51de":function(t,e,n){"use strict";function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,"b",(function(){return i})),e["a"]=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}}},5205:function(t,e,n){t.exports=n.p+"assets/img/meituan.e2ae67fd.png"},"521b":function(t,e,n){},"535d":function(t,e,n){"use strict";var i=n("b952"),r=n.n(i);r.a},"53c8":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return h}));var i=n("4799");n.d(e,"Shape",(function(){return i}));var r=n("0f7e");for(var o in r)["version","Event","Canvas","Group","Shape","default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);var a=n("5f38");for(var o in a)["version","Event","Canvas","Group","Shape","default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var s=n("6855");n.d(e,"Event",(function(){return s["e"]}));var l=n("b182");n.d(e,"Canvas",(function(){return l["a"]}));var c=n("c2ad");n.d(e,"Group",(function(){return c["a"]}));var u=n("6813"),h=u.version},"542e":function(t,e,n){},54508:function(t,e,n){},"569b":function(t,e,n){"use strict";var i=n("7699"),r=n.n(i);r.a},"56e7":function(t,e,n){},"57b1":function(t,e,n){},5977:function(t,e){},"5a89":function(t,e,n){"use strict";n.r(e),n.d(e,"ACESFilmicToneMapping",(function(){return nt})),n.d(e,"AddEquation",(function(){return I})),n.d(e,"AddOperation",(function(){return Q})),n.d(e,"AdditiveAnimationBlendMode",(function(){return Ue})),n.d(e,"AdditiveBlending",(function(){return w})),n.d(e,"AlphaFormat",(function(){return Rt})),n.d(e,"AlwaysDepth",(function(){return G})),n.d(e,"AlwaysStencilFunc",(function(){return vn})),n.d(e,"AmbientLight",(function(){return Mg})),n.d(e,"AmbientLightProbe",(function(){return Wg})),n.d(e,"AnimationClip",(function(){return Qf})),n.d(e,"AnimationLoader",(function(){return ag})),n.d(e,"AnimationMixer",(function(){return Am})),n.d(e,"AnimationObjectGroup",(function(){return _m})),n.d(e,"AnimationUtils",(function(){return Nf})),n.d(e,"ArcCurve",(function(){return ep})),n.d(e,"ArrayCamera",(function(){return Ch})),n.d(e,"ArrowHelper",(function(){return pv})),n.d(e,"Audio",(function(){return nm})),n.d(e,"AudioAnalyser",(function(){return lm})),n.d(e,"AudioContext",(function(){return Vg})),n.d(e,"AudioListener",(function(){return em})),n.d(e,"AudioLoader",(function(){return Gg})),n.d(e,"AxesHelper",(function(){return fv})),n.d(e,"AxisHelper",(function(){return Hv})),n.d(e,"BackSide",(function(){return g})),n.d(e,"BasicDepthPacking",(function(){return Qe})),n.d(e,"BasicShadowMap",(function(){return u})),n.d(e,"BinaryTextureLoader",(function(){return Xv})),n.d(e,"Bone",(function(){return ud})),n.d(e,"BooleanKeyframeTrack",(function(){return Wf})),n.d(e,"BoundingBoxHelper",(function(){return Wv})),n.d(e,"Box2",(function(){return Lm})),n.d(e,"Box3",(function(){return xi})),n.d(e,"Box3Helper",(function(){return lv})),n.d(e,"BoxBufferGeometry",(function(){return Eo})),n.d(e,"BoxGeometry",(function(){return Eo})),n.d(e,"BoxHelper",(function(){return sv})),n.d(e,"BufferAttribute",(function(){return Hr})),n.d(e,"BufferGeometry",(function(){return so})),n.d(e,"BufferGeometryLoader",(function(){return Lg})),n.d(e,"ByteType",(function(){return It})),n.d(e,"Cache",(function(){return tg})),n.d(e,"Camera",(function(){return Ro})),n.d(e,"CameraHelper",(function(){return rv})),n.d(e,"CanvasRenderer",(function(){return Kv})),n.d(e,"CanvasTexture",(function(){return Gd})),n.d(e,"CatmullRomCurve3",(function(){return sp})),n.d(e,"CineonToneMapping",(function(){return et})),n.d(e,"CircleBufferGeometry",(function(){return Hd})),n.d(e,"CircleGeometry",(function(){return Hd})),n.d(e,"ClampToEdgeWrapping",(function(){return dt})),n.d(e,"Clock",(function(){return qg})),n.d(e,"Color",(function(){return Fr})),n.d(e,"ColorKeyframeTrack",(function(){return Uf})),n.d(e,"CompressedTexture",(function(){return Vd})),n.d(e,"CompressedTextureLoader",(function(){return sg})),n.d(e,"ConeBufferGeometry",(function(){return Ud})),n.d(e,"ConeGeometry",(function(){return Ud})),n.d(e,"CubeCamera",(function(){return zo})),n.d(e,"CubeReflectionMapping",(function(){return ot})),n.d(e,"CubeRefractionMapping",(function(){return at})),n.d(e,"CubeTexture",(function(){return Vo})),n.d(e,"CubeTextureLoader",(function(){return cg})),n.d(e,"CubeUVReflectionMapping",(function(){return ct})),n.d(e,"CubeUVRefractionMapping",(function(){return ut})),n.d(e,"CubicBezierCurve",(function(){return yp})),n.d(e,"CubicBezierCurve3",(function(){return bp})),n.d(e,"CubicInterpolant",(function(){return zf})),n.d(e,"CullFaceBack",(function(){return s})),n.d(e,"CullFaceFront",(function(){return l})),n.d(e,"CullFaceFrontBack",(function(){return c})),n.d(e,"CullFaceNone",(function(){return a})),n.d(e,"Curve",(function(){return $d})),n.d(e,"CurvePath",(function(){return Sp})),n.d(e,"CustomBlending",(function(){return A})),n.d(e,"CustomToneMapping",(function(){return it})),n.d(e,"CylinderBufferGeometry",(function(){return Wd})),n.d(e,"CylinderGeometry",(function(){return Wd})),n.d(e,"Cylindrical",(function(){return Pm})),n.d(e,"DataTexture",(function(){return hd})),n.d(e,"DataTexture2DArray",(function(){return dc})),n.d(e,"DataTexture3D",(function(){return yc})),n.d(e,"DataTextureLoader",(function(){return ug})),n.d(e,"DataUtils",(function(){return yv})),n.d(e,"DecrementStencilOp",(function(){return an})),n.d(e,"DecrementWrapStencilOp",(function(){return ln})),n.d(e,"DefaultLoadingManager",(function(){return ng})),n.d(e,"DepthFormat",(function(){return Vt})),n.d(e,"DepthStencilFormat",(function(){return Gt})),n.d(e,"DepthTexture",(function(){return Mh})),n.d(e,"DirectionalLight",(function(){return Sg})),n.d(e,"DirectionalLightHelper",(function(){return ev})),n.d(e,"DiscreteInterpolant",(function(){return Gf})),n.d(e,"DodecahedronBufferGeometry",(function(){return Yd})),n.d(e,"DodecahedronGeometry",(function(){return Yd})),n.d(e,"DoubleSide",(function(){return m})),n.d(e,"DstAlphaFactor",(function(){return R})),n.d(e,"DstColorFactor",(function(){return N})),n.d(e,"DynamicBufferAttribute",(function(){return jv})),n.d(e,"DynamicCopyUsage",(function(){return In})),n.d(e,"DynamicDrawUsage",(function(){return bn})),n.d(e,"DynamicReadUsage",(function(){return _n})),n.d(e,"EdgesGeometry",(function(){return Jd})),n.d(e,"EdgesHelper",(function(){return Uv})),n.d(e,"EllipseCurve",(function(){return tp})),n.d(e,"EqualDepth",(function(){return U})),n.d(e,"EqualStencilFunc",(function(){return dn})),n.d(e,"EquirectangularReflectionMapping",(function(){return st})),n.d(e,"EquirectangularRefractionMapping",(function(){return lt})),n.d(e,"Euler",(function(){return rr})),n.d(e,"EventDispatcher",(function(){return En})),n.d(e,"ExtrudeBufferGeometry",(function(){return hf})),n.d(e,"ExtrudeGeometry",(function(){return hf})),n.d(e,"FaceColors",(function(){return _v})),n.d(e,"FileLoader",(function(){return og})),n.d(e,"FlatShading",(function(){return v})),n.d(e,"Float16BufferAttribute",(function(){return Qr})),n.d(e,"Float32Attribute",(function(){return Vv})),n.d(e,"Float32BufferAttribute",(function(){return Jr})),n.d(e,"Float64Attribute",(function(){return Gv})),n.d(e,"Float64BufferAttribute",(function(){return $r})),n.d(e,"FloatType",(function(){return Tt})),n.d(e,"Fog",(function(){return Lh})),n.d(e,"FogExp2",(function(){return jh})),n.d(e,"Font",(function(){return iy})),n.d(e,"FontLoader",(function(){return ny})),n.d(e,"FramebufferTexture",(function(){return zd})),n.d(e,"FrontSide",(function(){return f})),n.d(e,"Frustum",(function(){return qo})),n.d(e,"GLBufferAttribute",(function(){return Mm})),n.d(e,"GLSL1",(function(){return Mn})),n.d(e,"GLSL3",(function(){return kn})),n.d(e,"GreaterDepth",(function(){return Y})),n.d(e,"GreaterEqualDepth",(function(){return Z})),n.d(e,"GreaterEqualStencilFunc",(function(){return mn})),n.d(e,"GreaterStencilFunc",(function(){return fn})),n.d(e,"GridHelper",(function(){return Km})),n.d(e,"Group",(function(){return Ah})),n.d(e,"HalfFloatType",(function(){return Ot})),n.d(e,"HemisphereLight",(function(){return pg})),n.d(e,"HemisphereLightHelper",(function(){return qm})),n.d(e,"HemisphereLightProbe",(function(){return Hg})),n.d(e,"IcosahedronBufferGeometry",(function(){return ff})),n.d(e,"IcosahedronGeometry",(function(){return ff})),n.d(e,"ImageBitmapLoader",(function(){return Fg})),n.d(e,"ImageLoader",(function(){return lg})),n.d(e,"ImageUtils",(function(){return li})),n.d(e,"ImmediateRenderObject",(function(){return ry})),n.d(e,"IncrementStencilOp",(function(){return on})),n.d(e,"IncrementWrapStencilOp",(function(){return sn})),n.d(e,"InstancedBufferAttribute",(function(){return gd})),n.d(e,"InstancedBufferGeometry",(function(){return jg})),n.d(e,"InstancedInterleavedBuffer",(function(){return Sm})),n.d(e,"InstancedMesh",(function(){return xd})),n.d(e,"Int16Attribute",(function(){return Bv})),n.d(e,"Int16BufferAttribute",(function(){return Yr})),n.d(e,"Int32Attribute",(function(){return Fv})),n.d(e,"Int32BufferAttribute",(function(){return qr})),n.d(e,"Int8Attribute",(function(){return Lv})),n.d(e,"Int8BufferAttribute",(function(){return Wr})),n.d(e,"IntType",(function(){return kt})),n.d(e,"InterleavedBuffer",(function(){return Rh})),n.d(e,"InterleavedBufferAttribute",(function(){return Nh})),n.d(e,"Interpolant",(function(){return Ff})),n.d(e,"InterpolateDiscrete",(function(){return Ne})),n.d(e,"InterpolateLinear",(function(){return Fe})),n.d(e,"InterpolateSmooth",(function(){return ze})),n.d(e,"InvertStencilOp",(function(){return cn})),n.d(e,"JSONLoader",(function(){return Qv})),n.d(e,"KeepStencilOp",(function(){return nn})),n.d(e,"KeyframeTrack",(function(){return Hf})),n.d(e,"LOD",(function(){return id})),n.d(e,"LatheBufferGeometry",(function(){return gf})),n.d(e,"LatheGeometry",(function(){return gf})),n.d(e,"Layers",(function(){return or})),n.d(e,"LensFlare",(function(){return $v})),n.d(e,"LessDepth",(function(){return H})),n.d(e,"LessEqualDepth",(function(){return W})),n.d(e,"LessEqualStencilFunc",(function(){return pn})),n.d(e,"LessStencilFunc",(function(){return hn})),n.d(e,"Light",(function(){return dg})),n.d(e,"LightProbe",(function(){return Tg})),n.d(e,"Line",(function(){return Md})),n.d(e,"Line3",(function(){return Bm})),n.d(e,"LineBasicMaterial",(function(){return wd})),n.d(e,"LineCurve",(function(){return xp})),n.d(e,"LineCurve3",(function(){return wp})),n.d(e,"LineDashedMaterial",(function(){return Rf})),n.d(e,"LineLoop",(function(){return Od})),n.d(e,"LinePieces",(function(){return xv})),n.d(e,"LineSegments",(function(){return Td})),n.d(e,"LineStrip",(function(){return bv})),n.d(e,"LinearEncoding",(function(){return qe})),n.d(e,"LinearFilter",(function(){return bt})),n.d(e,"LinearInterpolant",(function(){return Vf})),n.d(e,"LinearMipMapLinearFilter",(function(){return Ct})),n.d(e,"LinearMipMapNearestFilter",(function(){return wt})),n.d(e,"LinearMipmapLinearFilter",(function(){return _t})),n.d(e,"LinearMipmapNearestFilter",(function(){return xt})),n.d(e,"LinearToneMapping",(function(){return $})),n.d(e,"Loader",(function(){return ig})),n.d(e,"LoaderUtils",(function(){return Pg})),n.d(e,"LoadingManager",(function(){return eg})),n.d(e,"LoopOnce",(function(){return De})),n.d(e,"LoopPingPong",(function(){return Be})),n.d(e,"LoopRepeat",(function(){return Re})),n.d(e,"LuminanceAlphaFormat",(function(){return zt})),n.d(e,"LuminanceFormat",(function(){return Ft})),n.d(e,"MOUSE",(function(){return r})),n.d(e,"Material",(function(){return Pr})),n.d(e,"MaterialLoader",(function(){return Og})),n.d(e,"Math",(function(){return ti})),n.d(e,"MathUtils",(function(){return ti})),n.d(e,"Matrix3",(function(){return ni})),n.d(e,"Matrix4",(function(){return Xi})),n.d(e,"MaxEquation",(function(){return E})),n.d(e,"Mesh",(function(){return So})),n.d(e,"MeshBasicMaterial",(function(){return zr})),n.d(e,"MeshDepthMaterial",(function(){return gh})),n.d(e,"MeshDistanceMaterial",(function(){return mh})),n.d(e,"MeshFaceMaterial",(function(){return Av})),n.d(e,"MeshLambertMaterial",(function(){return Lf})),n.d(e,"MeshMatcapMaterial",(function(){return Df})),n.d(e,"MeshNormalMaterial",(function(){return jf})),n.d(e,"MeshPhongMaterial",(function(){return Of})),n.d(e,"MeshPhysicalMaterial",(function(){return Tf})),n.d(e,"MeshStandardMaterial",(function(){return Ef})),n.d(e,"MeshToonMaterial",(function(){return Pf})),n.d(e,"MinEquation",(function(){return k})),n.d(e,"MirroredRepeatWrapping",(function(){return pt})),n.d(e,"MixOperation",(function(){return K})),n.d(e,"MultiMaterial",(function(){return Iv})),n.d(e,"MultiplyBlending",(function(){return C})),n.d(e,"MultiplyOperation",(function(){return q})),n.d(e,"NearestFilter",(function(){return ft})),n.d(e,"NearestMipMapLinearFilter",(function(){return yt})),n.d(e,"NearestMipMapNearestFilter",(function(){return mt})),n.d(e,"NearestMipmapLinearFilter",(function(){return vt})),n.d(e,"NearestMipmapNearestFilter",(function(){return gt})),n.d(e,"NeverDepth",(function(){return V})),n.d(e,"NeverStencilFunc",(function(){return un})),n.d(e,"NoBlending",(function(){return b})),n.d(e,"NoColors",(function(){return wv})),n.d(e,"NoToneMapping",(function(){return J})),n.d(e,"NormalAnimationBlendMode",(function(){return We})),n.d(e,"NormalBlending",(function(){return x})),n.d(e,"NotEqualDepth",(function(){return X})),n.d(e,"NotEqualStencilFunc",(function(){return gn})),n.d(e,"NumberKeyframeTrack",(function(){return Zf})),n.d(e,"Object3D",(function(){return br})),n.d(e,"ObjectLoader",(function(){return Dg})),n.d(e,"ObjectSpaceNormalMap",(function(){return tn})),n.d(e,"OctahedronBufferGeometry",(function(){return mf})),n.d(e,"OctahedronGeometry",(function(){return mf})),n.d(e,"OneFactor",(function(){return O})),n.d(e,"OneMinusDstAlphaFactor",(function(){return B})),n.d(e,"OneMinusDstColorFactor",(function(){return F})),n.d(e,"OneMinusSrcAlphaFactor",(function(){return D})),n.d(e,"OneMinusSrcColorFactor",(function(){return j})),n.d(e,"OrthographicCamera",(function(){return Ll})),n.d(e,"PCFShadowMap",(function(){return h})),n.d(e,"PCFSoftShadowMap",(function(){return d})),n.d(e,"PMREMGenerator",(function(){return Jl})),n.d(e,"ParametricGeometry",(function(){return ty})),n.d(e,"Particle",(function(){return Mv})),n.d(e,"ParticleBasicMaterial",(function(){return Tv})),n.d(e,"ParticleSystem",(function(){return kv})),n.d(e,"ParticleSystemMaterial",(function(){return Ov})),n.d(e,"Path",(function(){return Mp})),n.d(e,"PerspectiveCamera",(function(){return Bo})),n.d(e,"Plane",(function(){return Zo})),n.d(e,"PlaneBufferGeometry",(function(){return Jo})),n.d(e,"PlaneGeometry",(function(){return Jo})),n.d(e,"PlaneHelper",(function(){return cv})),n.d(e,"PointCloud",(function(){return Sv})),n.d(e,"PointCloudMaterial",(function(){return Ev})),n.d(e,"PointLight",(function(){return Ag})),n.d(e,"PointLightHelper",(function(){return Um})),n.d(e,"Points",(function(){return Bd})),n.d(e,"PointsMaterial",(function(){return Pd})),n.d(e,"PolarGridHelper",(function(){return Qm})),n.d(e,"PolyhedronBufferGeometry",(function(){return Zd})),n.d(e,"PolyhedronGeometry",(function(){return Zd})),n.d(e,"PositionalAudio",(function(){return sm})),n.d(e,"PropertyBinding",(function(){return wm})),n.d(e,"PropertyMixer",(function(){return cm})),n.d(e,"QuadraticBezierCurve",(function(){return _p})),n.d(e,"QuadraticBezierCurve3",(function(){return Cp})),n.d(e,"Quaternion",(function(){return mi})),n.d(e,"QuaternionKeyframeTrack",(function(){return Xf})),n.d(e,"QuaternionLinearInterpolant",(function(){return Yf})),n.d(e,"REVISION",(function(){return i})),n.d(e,"RGBADepthPacking",(function(){return Je})),n.d(e,"RGBAFormat",(function(){return Nt})),n.d(e,"RGBAIntegerFormat",(function(){return Xt})),n.d(e,"RGBA_ASTC_10x10_Format",(function(){return ve})),n.d(e,"RGBA_ASTC_10x5_Format",(function(){return fe})),n.d(e,"RGBA_ASTC_10x6_Format",(function(){return ge})),n.d(e,"RGBA_ASTC_10x8_Format",(function(){return me})),n.d(e,"RGBA_ASTC_12x10_Format",(function(){return ye})),n.d(e,"RGBA_ASTC_12x12_Format",(function(){return be})),n.d(e,"RGBA_ASTC_4x4_Format",(function(){return ae})),n.d(e,"RGBA_ASTC_5x4_Format",(function(){return se})),n.d(e,"RGBA_ASTC_5x5_Format",(function(){return le})),n.d(e,"RGBA_ASTC_6x5_Format",(function(){return ce})),n.d(e,"RGBA_ASTC_6x6_Format",(function(){return ue})),n.d(e,"RGBA_ASTC_8x5_Format",(function(){return he})),n.d(e,"RGBA_ASTC_8x6_Format",(function(){return de})),n.d(e,"RGBA_ASTC_8x8_Format",(function(){return pe})),n.d(e,"RGBA_BPTC_Format",(function(){return xe})),n.d(e,"RGBA_ETC2_EAC_Format",(function(){return oe})),n.d(e,"RGBA_PVRTC_2BPPV1_Format",(function(){return ne})),n.d(e,"RGBA_PVRTC_4BPPV1_Format",(function(){return ee})),n.d(e,"RGBA_S3TC_DXT1_Format",(function(){return Kt})),n.d(e,"RGBA_S3TC_DXT3_Format",(function(){return Qt})),n.d(e,"RGBA_S3TC_DXT5_Format",(function(){return Jt})),n.d(e,"RGBFormat",(function(){return Bt})),n.d(e,"RGBIntegerFormat",(function(){return Yt})),n.d(e,"RGB_ETC1_Format",(function(){return ie})),n.d(e,"RGB_ETC2_Format",(function(){return re})),n.d(e,"RGB_PVRTC_2BPPV1_Format",(function(){return te})),n.d(e,"RGB_PVRTC_4BPPV1_Format",(function(){return $t})),n.d(e,"RGB_S3TC_DXT1_Format",(function(){return qt})),n.d(e,"RGFormat",(function(){return Ut})),n.d(e,"RGIntegerFormat",(function(){return Zt})),n.d(e,"RawShaderMaterial",(function(){return Dl})),n.d(e,"Ray",(function(){return Yi})),n.d(e,"Raycaster",(function(){return km})),n.d(e,"RectAreaLight",(function(){return kg})),n.d(e,"RedFormat",(function(){return Ht})),n.d(e,"RedIntegerFormat",(function(){return Wt})),n.d(e,"ReinhardToneMapping",(function(){return tt})),n.d(e,"RepeatWrapping",(function(){return ht})),n.d(e,"ReplaceStencilOp",(function(){return rn})),n.d(e,"ReverseSubtractEquation",(function(){return M})),n.d(e,"RingBufferGeometry",(function(){return vf})),n.d(e,"RingGeometry",(function(){return vf})),n.d(e,"SRGB8_ALPHA8_ASTC_10x10_Format",(function(){return Pe})),n.d(e,"SRGB8_ALPHA8_ASTC_10x5_Format",(function(){return Ee})),n.d(e,"SRGB8_ALPHA8_ASTC_10x6_Format",(function(){return Te})),n.d(e,"SRGB8_ALPHA8_ASTC_10x8_Format",(function(){return Oe})),n.d(e,"SRGB8_ALPHA8_ASTC_12x10_Format",(function(){return je})),n.d(e,"SRGB8_ALPHA8_ASTC_12x12_Format",(function(){return Le})),n.d(e,"SRGB8_ALPHA8_ASTC_4x4_Format",(function(){return we})),n.d(e,"SRGB8_ALPHA8_ASTC_5x4_Format",(function(){return _e})),n.d(e,"SRGB8_ALPHA8_ASTC_5x5_Format",(function(){return Ce})),n.d(e,"SRGB8_ALPHA8_ASTC_6x5_Format",(function(){return Ae})),n.d(e,"SRGB8_ALPHA8_ASTC_6x6_Format",(function(){return Ie})),n.d(e,"SRGB8_ALPHA8_ASTC_8x5_Format",(function(){return Se})),n.d(e,"SRGB8_ALPHA8_ASTC_8x6_Format",(function(){return Me})),n.d(e,"SRGB8_ALPHA8_ASTC_8x8_Format",(function(){return ke})),n.d(e,"Scene",(function(){return Dh})),n.d(e,"SceneUtils",(function(){return Jv})),n.d(e,"ShaderChunk",(function(){return Il})),n.d(e,"ShaderLib",(function(){return Ml})),n.d(e,"ShaderMaterial",(function(){return Do})),n.d(e,"ShadowMaterial",(function(){return kf})),n.d(e,"Shape",(function(){return kp})),n.d(e,"ShapeBufferGeometry",(function(){return yf})),n.d(e,"ShapeGeometry",(function(){return yf})),n.d(e,"ShapePath",(function(){return gv})),n.d(e,"ShapeUtils",(function(){return lf})),n.d(e,"ShortType",(function(){return St})),n.d(e,"Skeleton",(function(){return fd})),n.d(e,"SkeletonHelper",(function(){return Hm})),n.d(e,"SkinnedMesh",(function(){return cd})),n.d(e,"SmoothShading",(function(){return y})),n.d(e,"Sphere",(function(){return Fi})),n.d(e,"SphereBufferGeometry",(function(){return xf})),n.d(e,"SphereGeometry",(function(){return xf})),n.d(e,"Spherical",(function(){return Om})),n.d(e,"SphericalHarmonics3",(function(){return Eg})),n.d(e,"SplineCurve",(function(){return Ap})),n.d(e,"SpotLight",(function(){return bg})),n.d(e,"SpotLightHelper",(function(){return Fm})),n.d(e,"Sprite",(function(){return $h})),n.d(e,"SpriteMaterial",(function(){return Fh})),n.d(e,"SrcAlphaFactor",(function(){return L})),n.d(e,"SrcAlphaSaturateFactor",(function(){return z})),n.d(e,"SrcColorFactor",(function(){return P})),n.d(e,"StaticCopyUsage",(function(){return An})),n.d(e,"StaticDrawUsage",(function(){return yn})),n.d(e,"StaticReadUsage",(function(){return wn})),n.d(e,"StereoCamera",(function(){return Xg})),n.d(e,"StreamCopyUsage",(function(){return Sn})),n.d(e,"StreamDrawUsage",(function(){return xn})),n.d(e,"StreamReadUsage",(function(){return Cn})),n.d(e,"StringKeyframeTrack",(function(){return qf})),n.d(e,"SubtractEquation",(function(){return S})),n.d(e,"SubtractiveBlending",(function(){return _})),n.d(e,"TOUCH",(function(){return o})),n.d(e,"TangentSpaceNormalMap",(function(){return $e})),n.d(e,"TetrahedronBufferGeometry",(function(){return wf})),n.d(e,"TetrahedronGeometry",(function(){return wf})),n.d(e,"TextGeometry",(function(){return ey})),n.d(e,"Texture",(function(){return ui})),n.d(e,"TextureLoader",(function(){return hg})),n.d(e,"TorusBufferGeometry",(function(){return _f})),n.d(e,"TorusGeometry",(function(){return _f})),n.d(e,"TorusKnotBufferGeometry",(function(){return Cf})),n.d(e,"TorusKnotGeometry",(function(){return Cf})),n.d(e,"Triangle",(function(){return Tr})),n.d(e,"TriangleFanDrawMode",(function(){return Xe})),n.d(e,"TriangleStripDrawMode",(function(){return Ye})),n.d(e,"TrianglesDrawMode",(function(){return Ze})),n.d(e,"TubeBufferGeometry",(function(){return Af})),n.d(e,"TubeGeometry",(function(){return Af})),n.d(e,"UVMapping",(function(){return rt})),n.d(e,"Uint16Attribute",(function(){return Nv})),n.d(e,"Uint16BufferAttribute",(function(){return Xr})),n.d(e,"Uint32Attribute",(function(){return zv})),n.d(e,"Uint32BufferAttribute",(function(){return Kr})),n.d(e,"Uint8Attribute",(function(){return Dv})),n.d(e,"Uint8BufferAttribute",(function(){return Ur})),n.d(e,"Uint8ClampedAttribute",(function(){return Rv})),n.d(e,"Uint8ClampedBufferAttribute",(function(){return Zr})),n.d(e,"Uniform",(function(){return Im})),n.d(e,"UniformsLib",(function(){return Sl})),n.d(e,"UniformsUtils",(function(){return Po})),n.d(e,"UnsignedByteType",(function(){return At})),n.d(e,"UnsignedInt248Type",(function(){return Dt})),n.d(e,"UnsignedIntType",(function(){return Et})),n.d(e,"UnsignedShort4444Type",(function(){return Pt})),n.d(e,"UnsignedShort5551Type",(function(){return jt})),n.d(e,"UnsignedShort565Type",(function(){return Lt})),n.d(e,"UnsignedShortType",(function(){return Mt})),n.d(e,"VSMShadowMap",(function(){return p})),n.d(e,"Vector2",(function(){return ei})),n.d(e,"Vector3",(function(){return vi})),n.d(e,"Vector4",(function(){return di})),n.d(e,"VectorKeyframeTrack",(function(){return Kf})),n.d(e,"Vertex",(function(){return Pv})),n.d(e,"VertexColors",(function(){return Cv})),n.d(e,"VideoTexture",(function(){return Fd})),n.d(e,"WebGL1Renderer",(function(){return Ph})),n.d(e,"WebGLCubeRenderTarget",(function(){return Go})),n.d(e,"WebGLMultipleRenderTargets",(function(){return fi})),n.d(e,"WebGLMultisampleRenderTarget",(function(){return gi})),n.d(e,"WebGLRenderTarget",(function(){return pi})),n.d(e,"WebGLRenderTargetCube",(function(){return qv})),n.d(e,"WebGLRenderer",(function(){return Oh})),n.d(e,"WebGLUtils",(function(){return _h})),n.d(e,"WireframeGeometry",(function(){return If})),n.d(e,"WireframeHelper",(function(){return Zv})),n.d(e,"WrapAroundEnding",(function(){return He})),n.d(e,"XHRLoader",(function(){return Yv})),n.d(e,"ZeroCurvatureEnding",(function(){return Ve})),n.d(e,"ZeroFactor",(function(){return T})),n.d(e,"ZeroSlopeEnding",(function(){return Ge})),n.d(e,"ZeroStencilOp",(function(){return en})),n.d(e,"sRGBEncoding",(function(){return Ke}));
/**
 * @license
 * Copyright 2010-2021 Three.js Authors
 * SPDX-License-Identifier: MIT
 */
const i="136",r={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},o={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},a=0,s=1,l=2,c=3,u=0,h=1,d=2,p=3,f=0,g=1,m=2,v=1,y=2,b=0,x=1,w=2,_=3,C=4,A=5,I=100,S=101,M=102,k=103,E=104,T=200,O=201,P=202,j=203,L=204,D=205,R=206,B=207,N=208,F=209,z=210,V=0,G=1,H=2,W=3,U=4,Z=5,Y=6,X=7,q=0,K=1,Q=2,J=0,$=1,tt=2,et=3,nt=4,it=5,rt=300,ot=301,at=302,st=303,lt=304,ct=306,ut=307,ht=1e3,dt=1001,pt=1002,ft=1003,gt=1004,mt=1004,vt=1005,yt=1005,bt=1006,xt=1007,wt=1007,_t=1008,Ct=1008,At=1009,It=1010,St=1011,Mt=1012,kt=1013,Et=1014,Tt=1015,Ot=1016,Pt=1017,jt=1018,Lt=1019,Dt=1020,Rt=1021,Bt=1022,Nt=1023,Ft=1024,zt=1025,Vt=1026,Gt=1027,Ht=1028,Wt=1029,Ut=1030,Zt=1031,Yt=1032,Xt=1033,qt=33776,Kt=33777,Qt=33778,Jt=33779,$t=35840,te=35841,ee=35842,ne=35843,ie=36196,re=37492,oe=37496,ae=37808,se=37809,le=37810,ce=37811,ue=37812,he=37813,de=37814,pe=37815,fe=37816,ge=37817,me=37818,ve=37819,ye=37820,be=37821,xe=36492,we=37840,_e=37841,Ce=37842,Ae=37843,Ie=37844,Se=37845,Me=37846,ke=37847,Ee=37848,Te=37849,Oe=37850,Pe=37851,je=37852,Le=37853,De=2200,Re=2201,Be=2202,Ne=2300,Fe=2301,ze=2302,Ve=2400,Ge=2401,He=2402,We=2500,Ue=2501,Ze=0,Ye=1,Xe=2,qe=3e3,Ke=3001,Qe=3200,Je=3201,$e=0,tn=1,en=0,nn=7680,rn=7681,on=7682,an=7683,sn=34055,ln=34056,cn=5386,un=512,hn=513,dn=514,pn=515,fn=516,gn=517,mn=518,vn=519,yn=35044,bn=35048,xn=35040,wn=35045,_n=35049,Cn=35041,An=35046,In=35050,Sn=35042,Mn="100",kn="300 es";class En{addEventListener(t,e){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)}hasEventListener(t,e){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)}removeEventListener(t,e){if(void 0===this._listeners)return;const n=this._listeners,i=n[t];if(void 0!==i){const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}dispatchEvent(t){if(void 0===this._listeners)return;const e=this._listeners,n=e[t.type];if(void 0!==n){t.target=this;const e=n.slice(0);for(let n=0,i=e.length;n<i;n++)e[n].call(this,t);t.target=null}}}const Tn=[];for(let oy=0;oy<256;oy++)Tn[oy]=(oy<16?"0":"")+oy.toString(16);let On=1234567;const Pn=Math.PI/180,jn=180/Math.PI;function Ln(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0,r=Tn[255&t]+Tn[t>>8&255]+Tn[t>>16&255]+Tn[t>>24&255]+"-"+Tn[255&e]+Tn[e>>8&255]+"-"+Tn[e>>16&15|64]+Tn[e>>24&255]+"-"+Tn[63&n|128]+Tn[n>>8&255]+"-"+Tn[n>>16&255]+Tn[n>>24&255]+Tn[255&i]+Tn[i>>8&255]+Tn[i>>16&255]+Tn[i>>24&255];return r.toUpperCase()}function Dn(t,e,n){return Math.max(e,Math.min(n,t))}function Rn(t,e){return(t%e+e)%e}function Bn(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)}function Nn(t,e,n){return t!==e?(n-t)/(e-t):0}function Fn(t,e,n){return(1-n)*t+n*e}function zn(t,e,n,i){return Fn(t,e,1-Math.exp(-n*i))}function Vn(t,e=1){return e-Math.abs(Rn(t,2*e)-e)}function Gn(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*(3-2*t))}function Hn(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e),t*t*t*(t*(6*t-15)+10))}function Wn(t,e){return t+Math.floor(Math.random()*(e-t+1))}function Un(t,e){return t+Math.random()*(e-t)}function Zn(t){return t*(.5-Math.random())}function Yn(t){return void 0!==t&&(On=t%2147483647),On=16807*On%2147483647,(On-1)/2147483646}function Xn(t){return t*Pn}function qn(t){return t*jn}function Kn(t){return 0===(t&t-1)&&0!==t}function Qn(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function Jn(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function $n(t,e,n,i,r){const o=Math.cos,a=Math.sin,s=o(n/2),l=a(n/2),c=o((e+i)/2),u=a((e+i)/2),h=o((e-i)/2),d=a((e-i)/2),p=o((i-e)/2),f=a((i-e)/2);switch(r){case"XYX":t.set(s*u,l*h,l*d,s*c);break;case"YZY":t.set(l*d,s*u,l*h,s*c);break;case"ZXZ":t.set(l*h,l*d,s*u,s*c);break;case"XZX":t.set(s*u,l*f,l*p,s*c);break;case"YXY":t.set(l*p,s*u,l*f,s*c);break;case"ZYZ":t.set(l*f,l*p,s*u,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}var ti=Object.freeze({__proto__:null,DEG2RAD:Pn,RAD2DEG:jn,generateUUID:Ln,clamp:Dn,euclideanModulo:Rn,mapLinear:Bn,inverseLerp:Nn,lerp:Fn,damp:zn,pingpong:Vn,smoothstep:Gn,smootherstep:Hn,randInt:Wn,randFloat:Un,randFloatSpread:Zn,seededRandom:Yn,degToRad:Xn,radToDeg:qn,isPowerOfTwo:Kn,ceilPowerOfTwo:Qn,floorPowerOfTwo:Jn,setQuaternionFromProperEuler:$n});class ei{constructor(t=0,e=0){this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6],this.y=i[1]*e+i[4]*n+i[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){const t=Math.atan2(-this.y,-this.x)+Math.PI;return t}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,o=this.y-t.y;return this.x=r*n-o*i+t.x,this.y=r*i+o*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}ei.prototype.isVector2=!0;class ni{constructor(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,i,r,o,a,s,l){const c=this.elements;return c[0]=t,c[1]=i,c[2]=a,c[3]=e,c[4]=r,c[5]=s,c[6]=n,c[7]=o,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,o=n[0],a=n[3],s=n[6],l=n[1],c=n[4],u=n[7],h=n[2],d=n[5],p=n[8],f=i[0],g=i[3],m=i[6],v=i[1],y=i[4],b=i[7],x=i[2],w=i[5],_=i[8];return r[0]=o*f+a*v+s*x,r[3]=o*g+a*y+s*w,r[6]=o*m+a*b+s*_,r[1]=l*f+c*v+u*x,r[4]=l*g+c*y+u*w,r[7]=l*m+c*b+u*_,r[2]=h*f+d*v+p*x,r[5]=h*g+d*y+p*w,r[8]=h*m+d*b+p*_,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8];return e*o*c-e*a*l-n*r*c+n*a*s+i*r*l-i*o*s}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=c*o-a*l,h=a*s-c*r,d=l*r-o*s,p=e*u+n*h+i*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const f=1/p;return t[0]=u*f,t[1]=(i*l-c*n)*f,t[2]=(a*n-i*o)*f,t[3]=h*f,t[4]=(c*e-i*s)*f,t[5]=(i*r-a*e)*f,t[6]=d*f,t[7]=(n*s-l*e)*f,t[8]=(o*e-n*r)*f,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,i,r,o,a){const s=Math.cos(r),l=Math.sin(r);return this.set(n*s,n*l,-n*(s*o+l*a)+o+t,-i*l,i*s,-i*(-l*o+s*a)+a+e,0,0,1),this}scale(t,e){const n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this}rotate(t){const e=Math.cos(t),n=Math.sin(t),i=this.elements,r=i[0],o=i[3],a=i[6],s=i[1],l=i[4],c=i[7];return i[0]=e*r+n*s,i[3]=e*o+n*l,i[6]=e*a+n*c,i[1]=-n*r+e*s,i[4]=-n*o+e*l,i[7]=-n*a+e*c,this}translate(t,e){const n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this}equals(t){const e=this.elements,n=t.elements;for(let i=0;i<9;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return(new this.constructor).fromArray(this.elements)}}function ii(t){if(0===t.length)return-1/0;let e=t[0];for(let n=1,i=t.length;n<i;++n)t[n]>e&&(e=t[n]);return e}ni.prototype.isMatrix3=!0;const ri={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function oi(t,e){return new ri[t](e)}function ai(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}let si;class li{static getDataURL(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===si&&(si=ai("canvas")),si.width=t.width,si.height=t.height;const n=si.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=si}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}}let ci=0;class ui extends En{constructor(t=ui.DEFAULT_IMAGE,e=ui.DEFAULT_MAPPING,n=dt,i=dt,r=bt,o=_t,a=Nt,s=At,l=1,c=qe){super(),Object.defineProperty(this,"id",{value:ci++}),this.uuid=Ln(),this.name="",this.image=t,this.mipmaps=[],this.mapping=e,this.wrapS=n,this.wrapT=i,this.magFilter=r,this.minFilter=o,this.anisotropy=l,this.format=a,this.internalFormat=null,this.type=s,this.offset=new ei(0,0),this.repeat=new ei(1,1),this.center=new ei(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new ni,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=c,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this.userData=JSON.parse(JSON.stringify(t.userData)),this}toJSON(t){const e=void 0===t||"string"===typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];const n={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){const i=this.image;if(void 0===i.uuid&&(i.uuid=Ln()),!e&&void 0===t.images[i.uuid]){let e;if(Array.isArray(i)){e=[];for(let t=0,n=i.length;t<n;t++)i[t].isDataTexture?e.push(hi(i[t].image)):e.push(hi(i[t]))}else e=hi(i);t.images[i.uuid]={uuid:i.uuid,url:e}}n.image=i.uuid}return"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==rt)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case ht:t.x=t.x-Math.floor(t.x);break;case dt:t.x=t.x<0?0:1;break;case pt:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case ht:t.y=t.y-Math.floor(t.y);break;case dt:t.y=t.y<0?0:1;break;case pt:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&this.version++}}function hi(t){return"undefined"!==typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap?li.getDataURL(t):t.data?{data:Array.prototype.slice.call(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}ui.DEFAULT_IMAGE=void 0,ui.DEFAULT_MAPPING=rt,ui.prototype.isTexture=!0;class di{constructor(t=0,e=0,n=0,i=1){this.x=t,this.y=e,this.z=n,this.w=i}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=this.w,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*i+o[12]*r,this.y=o[1]*e+o[5]*n+o[9]*i+o[13]*r,this.z=o[2]*e+o[6]*n+o[10]*i+o[14]*r,this.w=o[3]*e+o[7]*n+o[11]*i+o[15]*r,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,i,r;const o=.01,a=.1,s=t.elements,l=s[0],c=s[4],u=s[8],h=s[1],d=s[5],p=s[9],f=s[2],g=s[6],m=s[10];if(Math.abs(c-h)<o&&Math.abs(u-f)<o&&Math.abs(p-g)<o){if(Math.abs(c+h)<a&&Math.abs(u+f)<a&&Math.abs(p+g)<a&&Math.abs(l+d+m-3)<a)return this.set(1,0,0,0),this;e=Math.PI;const t=(l+1)/2,s=(d+1)/2,v=(m+1)/2,y=(c+h)/4,b=(u+f)/4,x=(p+g)/4;return t>s&&t>v?t<o?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(t),i=y/n,r=b/n):s>v?s<o?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(s),n=y/i,r=x/i):v<o?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(v),n=b/r,i=x/r),this.set(n,i,r,e),this}let v=Math.sqrt((g-p)*(g-p)+(u-f)*(u-f)+(h-c)*(h-c));return Math.abs(v)<.001&&(v=1),this.x=(g-p)/v,this.y=(u-f)/v,this.z=(h-c)/v,this.w=Math.acos((l+d+m-1)/2),this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this.w=Math.max(t,Math.min(e,this.w)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this.w=t.w+(e.w-t.w)*n,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}di.prototype.isVector4=!0;class pi extends En{constructor(t,e,n={}){super(),this.width=t,this.height=e,this.depth=1,this.scissor=new di(0,0,t,e),this.scissorTest=!1,this.viewport=new di(0,0,t,e),this.texture=new ui(void 0,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.isRenderTargetTexture=!0,this.texture.image={width:t,height:e,depth:1},this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.internalFormat=void 0!==n.internalFormat?n.internalFormat:null,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:bt,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0!==n.stencilBuffer&&n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}setTexture(t){t.image={width:this.width,height:this.height,depth:this.depth},this.texture=t}setSize(t,e,n=1){this.width===t&&this.height===e&&this.depth===n||(this.width=t,this.height=e,this.depth=n,this.texture.image.width=t,this.texture.image.height=e,this.texture.image.depth=n,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)}clone(){return(new this.constructor).copy(this)}copy(t){return this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.texture.image={...this.texture.image},this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this}dispose(){this.dispatchEvent({type:"dispose"})}}pi.prototype.isWebGLRenderTarget=!0;class fi extends pi{constructor(t,e,n){super(t,e);const i=this.texture;this.texture=[];for(let r=0;r<n;r++)this.texture[r]=i.clone()}setSize(t,e,n=1){if(this.width!==t||this.height!==e||this.depth!==n){this.width=t,this.height=e,this.depth=n;for(let i=0,r=this.texture.length;i<r;i++)this.texture[i].image.width=t,this.texture[i].image.height=e,this.texture[i].image.depth=n;this.dispose()}return this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e),this}copy(t){this.dispose(),this.width=t.width,this.height=t.height,this.depth=t.depth,this.viewport.set(0,0,this.width,this.height),this.scissor.set(0,0,this.width,this.height),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this.texture.length=0;for(let e=0,n=t.texture.length;e<n;e++)this.texture[e]=t.texture[e].clone();return this}}fi.prototype.isWebGLMultipleRenderTargets=!0;class gi extends pi{constructor(t,e,n={}){super(t,e,n),this.samples=4,this.ignoreDepthForMultisampleCopy=void 0===n.ignoreDepth||n.ignoreDepth,this.useRenderToTexture=void 0!==n.useRenderToTexture&&n.useRenderToTexture,this.useRenderbuffer=!1===this.useRenderToTexture}copy(t){return super.copy.call(this,t),this.samples=t.samples,this.useRenderToTexture=t.useRenderToTexture,this.useRenderbuffer=t.useRenderbuffer,this}}gi.prototype.isWebGLMultisampleRenderTarget=!0;class mi{constructor(t=0,e=0,n=0,i=1){this._x=t,this._y=e,this._z=n,this._w=i}static slerp(t,e,n,i){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(t,e,i)}static slerpFlat(t,e,n,i,r,o,a){let s=n[i+0],l=n[i+1],c=n[i+2],u=n[i+3];const h=r[o+0],d=r[o+1],p=r[o+2],f=r[o+3];if(0===a)return t[e+0]=s,t[e+1]=l,t[e+2]=c,void(t[e+3]=u);if(1===a)return t[e+0]=h,t[e+1]=d,t[e+2]=p,void(t[e+3]=f);if(u!==f||s!==h||l!==d||c!==p){let t=1-a;const e=s*h+l*d+c*p+u*f,n=e>=0?1:-1,i=1-e*e;if(i>Number.EPSILON){const r=Math.sqrt(i),o=Math.atan2(r,e*n);t=Math.sin(t*o)/r,a=Math.sin(a*o)/r}const r=a*n;if(s=s*t+h*r,l=l*t+d*r,c=c*t+p*r,u=u*t+f*r,t===1-a){const t=1/Math.sqrt(s*s+l*l+c*c+u*u);s*=t,l*=t,c*=t,u*=t}}t[e]=s,t[e+1]=l,t[e+2]=c,t[e+3]=u}static multiplyQuaternionsFlat(t,e,n,i,r,o){const a=n[i],s=n[i+1],l=n[i+2],c=n[i+3],u=r[o],h=r[o+1],d=r[o+2],p=r[o+3];return t[e]=a*p+c*u+s*d-l*h,t[e+1]=s*p+c*h+l*u-a*d,t[e+2]=l*p+c*d+a*h-s*u,t[e+3]=c*p-a*u-s*h-l*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const n=t._x,i=t._y,r=t._z,o=t._order,a=Math.cos,s=Math.sin,l=a(n/2),c=a(i/2),u=a(r/2),h=s(n/2),d=s(i/2),p=s(r/2);switch(o){case"XYZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"YXZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"ZXY":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"ZYX":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"YZX":this._x=h*c*u+l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u-h*d*p;break;case"XZY":this._x=h*c*u-l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u+h*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],i=e[4],r=e[8],o=e[1],a=e[5],s=e[9],l=e[2],c=e[6],u=e[10],h=n+a+u;if(h>0){const t=.5/Math.sqrt(h+1);this._w=.25/t,this._x=(c-s)*t,this._y=(r-l)*t,this._z=(o-i)*t}else if(n>a&&n>u){const t=2*Math.sqrt(1+n-a-u);this._w=(c-s)/t,this._x=.25*t,this._y=(i+o)/t,this._z=(r+l)/t}else if(a>u){const t=2*Math.sqrt(1+a-n-u);this._w=(r-l)/t,this._x=(i+o)/t,this._y=.25*t,this._z=(s+c)/t}else{const t=2*Math.sqrt(1+u-n-a);this._w=(o-i)/t,this._x=(r+l)/t,this._y=(s+c)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Dn(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const i=Math.min(1,e/n);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,i=t._y,r=t._z,o=t._w,a=e._x,s=e._y,l=e._z,c=e._w;return this._x=n*c+o*a+i*l-r*s,this._y=i*c+o*s+r*a-n*l,this._z=r*c+o*l+n*s-i*a,this._w=o*c-n*a-i*s-r*l,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,i=this._y,r=this._z,o=this._w;let a=o*t._w+n*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;const s=1-a*a;if(s<=Number.EPSILON){const t=1-e;return this._w=t*o+e*this._w,this._x=t*n+e*this._x,this._y=t*i+e*this._y,this._z=t*r+e*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(s),c=Math.atan2(l,a),u=Math.sin((1-e)*c)/l,h=Math.sin(e*c)/l;return this._w=o*u+this._w*h,this._x=n*u+this._x*h,this._y=i*u+this._y*h,this._z=r*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,e,n){this.copy(t).slerp(e,n)}random(){const t=Math.random(),e=Math.sqrt(1-t),n=Math.sqrt(t),i=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(e*Math.cos(i),n*Math.sin(r),n*Math.cos(r),e*Math.sin(i))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}mi.prototype.isQuaternion=!0;class vi{constructor(t=0,e=0,n=0){this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(bi.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(bi.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=t.elements,o=1/(r[3]*e+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*n+r[8]*i+r[12])*o,this.y=(r[1]*e+r[5]*n+r[9]*i+r[13])*o,this.z=(r[2]*e+r[6]*n+r[10]*i+r[14])*o,this}applyQuaternion(t){const e=this.x,n=this.y,i=this.z,r=t.x,o=t.y,a=t.z,s=t.w,l=s*e+o*i-a*n,c=s*n+a*e-r*i,u=s*i+r*n-o*e,h=-r*e-o*n-a*i;return this.x=l*s+h*-r+c*-a-u*-o,this.y=c*s+h*-o+u*-r-l*-a,this.z=u*s+h*-a+l*-o-c*-r,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,i=t.y,r=t.z,o=e.x,a=e.y,s=e.z;return this.x=i*s-r*a,this.y=r*o-n*s,this.z=n*a-i*o,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return yi.copy(this).projectOnVector(t),this.sub(yi)}reflect(t){return this.sub(yi.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Dn(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const i=Math.sin(e)*t;return this.x=i*Math.sin(n),this.y=Math.cos(e)*t,this.z=i*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=2*(Math.random()-.5),e=Math.random()*Math.PI*2,n=Math.sqrt(1-t**2);return this.x=n*Math.cos(e),this.y=n*Math.sin(e),this.z=t,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}vi.prototype.isVector3=!0;const yi=new vi,bi=new mi;class xi{constructor(t=new vi(1/0,1/0,1/0),e=new vi(-1/0,-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){let e=1/0,n=1/0,i=1/0,r=-1/0,o=-1/0,a=-1/0;for(let s=0,l=t.length;s<l;s+=3){const l=t[s],c=t[s+1],u=t[s+2];l<e&&(e=l),c<n&&(n=c),u<i&&(i=u),l>r&&(r=l),c>o&&(o=c),u>a&&(a=u)}return this.min.set(e,n,i),this.max.set(r,o,a),this}setFromBufferAttribute(t){let e=1/0,n=1/0,i=1/0,r=-1/0,o=-1/0,a=-1/0;for(let s=0,l=t.count;s<l;s++){const l=t.getX(s),c=t.getY(s),u=t.getZ(s);l<e&&(e=l),c<n&&(n=c),u<i&&(i=u),l>r&&(r=l),c>o&&(o=c),u>a&&(a=u)}return this.min.set(e,n,i),this.max.set(r,o,a),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=_i.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}setFromObject(t){return this.makeEmpty(),this.expandByObject(t)}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(t){return this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}expandByObject(t){t.updateWorldMatrix(!1,!1);const e=t.geometry;void 0!==e&&(null===e.boundingBox&&e.computeBoundingBox(),Ci.copy(e.boundingBox),Ci.applyMatrix4(t.matrixWorld),this.union(Ci));const n=t.children;for(let i=0,r=n.length;i<r;i++)this.expandByObject(n[i]);return this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)}intersectsSphere(t){return this.clampPoint(t.center,_i),_i.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(Ti),Oi.subVectors(this.max,Ti),Ai.subVectors(t.a,Ti),Ii.subVectors(t.b,Ti),Si.subVectors(t.c,Ti),Mi.subVectors(Ii,Ai),ki.subVectors(Si,Ii),Ei.subVectors(Ai,Si);let e=[0,-Mi.z,Mi.y,0,-ki.z,ki.y,0,-Ei.z,Ei.y,Mi.z,0,-Mi.x,ki.z,0,-ki.x,Ei.z,0,-Ei.x,-Mi.y,Mi.x,0,-ki.y,ki.x,0,-Ei.y,Ei.x,0];return!!Li(e,Ai,Ii,Si,Oi)&&(e=[1,0,0,0,1,0,0,0,1],!!Li(e,Ai,Ii,Si,Oi)&&(Pi.crossVectors(Mi,ki),e=[Pi.x,Pi.y,Pi.z],Li(e,Ai,Ii,Si,Oi)))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){const e=_i.copy(t).clamp(this.min,this.max);return e.sub(t).length()}getBoundingSphere(t){return this.getCenter(t.center),t.radius=.5*this.getSize(_i).length(),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()?this:(wi[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),wi[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),wi[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),wi[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),wi[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),wi[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),wi[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),wi[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(wi),this)}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}xi.prototype.isBox3=!0;const wi=[new vi,new vi,new vi,new vi,new vi,new vi,new vi,new vi],_i=new vi,Ci=new xi,Ai=new vi,Ii=new vi,Si=new vi,Mi=new vi,ki=new vi,Ei=new vi,Ti=new vi,Oi=new vi,Pi=new vi,ji=new vi;function Li(t,e,n,i,r){for(let o=0,a=t.length-3;o<=a;o+=3){ji.fromArray(t,o);const a=r.x*Math.abs(ji.x)+r.y*Math.abs(ji.y)+r.z*Math.abs(ji.z),s=e.dot(ji),l=n.dot(ji),c=i.dot(ji);if(Math.max(-Math.max(s,l,c),Math.min(s,l,c))>a)return!1}return!0}const Di=new xi,Ri=new vi,Bi=new vi,Ni=new vi;class Fi{constructor(t=new vi,e=-1){this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const n=this.center;void 0!==e?n.copy(e):Di.setFromPoints(t).getCenter(n);let i=0;for(let r=0,o=t.length;r<o;r++)i=Math.max(i,n.distanceToSquared(t[r]));return this.radius=Math.sqrt(i),this}copy(t){return this.center.copy(t.center),this.radius=t.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(t){return t.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(t){return t.distanceTo(this.center)-this.radius}intersectsSphere(t){const e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e}intersectsBox(t){return t.intersectsSphere(this)}intersectsPlane(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius}clampPoint(t,e){const n=this.center.distanceToSquared(t);return e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){Ni.subVectors(t,this.center);const e=Ni.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),n=.5*(t-this.radius);this.center.add(Ni.multiplyScalar(n/t)),this.radius+=n}return this}union(t){return!0===this.center.equals(t.center)?Bi.set(0,0,1).multiplyScalar(t.radius):Bi.subVectors(t.center,this.center).normalize().multiplyScalar(t.radius),this.expandByPoint(Ri.copy(t.center).add(Bi)),this.expandByPoint(Ri.copy(t.center).sub(Bi)),this}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const zi=new vi,Vi=new vi,Gi=new vi,Hi=new vi,Wi=new vi,Ui=new vi,Zi=new vi;class Yi{constructor(t=new vi,e=new vi(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.direction).multiplyScalar(t).add(this.origin)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,zi)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(n).add(this.origin)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=zi.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(zi.copy(this.direction).multiplyScalar(e).add(this.origin),zi.distanceToSquared(t))}distanceSqToSegment(t,e,n,i){Vi.copy(t).add(e).multiplyScalar(.5),Gi.copy(e).sub(t).normalize(),Hi.copy(this.origin).sub(Vi);const r=.5*t.distanceTo(e),o=-this.direction.dot(Gi),a=Hi.dot(this.direction),s=-Hi.dot(Gi),l=Hi.lengthSq(),c=Math.abs(1-o*o);let u,h,d,p;if(c>0)if(u=o*s-a,h=o*a-s,p=r*c,u>=0)if(h>=-p)if(h<=p){const t=1/c;u*=t,h*=t,d=u*(u+o*h+2*a)+h*(o*u+h+2*s)+l}else h=r,u=Math.max(0,-(o*h+a)),d=-u*u+h*(h+2*s)+l;else h=-r,u=Math.max(0,-(o*h+a)),d=-u*u+h*(h+2*s)+l;else h<=-p?(u=Math.max(0,-(-o*r+a)),h=u>0?-r:Math.min(Math.max(-r,-s),r),d=-u*u+h*(h+2*s)+l):h<=p?(u=0,h=Math.min(Math.max(-r,-s),r),d=h*(h+2*s)+l):(u=Math.max(0,-(o*r+a)),h=u>0?r:Math.min(Math.max(-r,-s),r),d=-u*u+h*(h+2*s)+l);else h=o>0?-r:r,u=Math.max(0,-(o*h+a)),d=-u*u+h*(h+2*s)+l;return n&&n.copy(this.direction).multiplyScalar(u).add(this.origin),i&&i.copy(Gi).multiplyScalar(h).add(Vi),d}intersectSphere(t,e){zi.subVectors(t.center,this.origin);const n=zi.dot(this.direction),i=zi.dot(zi)-n*n,r=t.radius*t.radius;if(i>r)return null;const o=Math.sqrt(r-i),a=n-o,s=n+o;return a<0&&s<0?null:a<0?this.at(s,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){const n=this.distanceToPlane(t);return null===n?null:this.at(n,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;const n=t.normal.dot(this.direction);return n*e<0}intersectBox(t,e){let n,i,r,o,a,s;const l=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,h=this.origin;return l>=0?(n=(t.min.x-h.x)*l,i=(t.max.x-h.x)*l):(n=(t.max.x-h.x)*l,i=(t.min.x-h.x)*l),c>=0?(r=(t.min.y-h.y)*c,o=(t.max.y-h.y)*c):(r=(t.max.y-h.y)*c,o=(t.min.y-h.y)*c),n>o||r>i?null:((r>n||n!==n)&&(n=r),(o<i||i!==i)&&(i=o),u>=0?(a=(t.min.z-h.z)*u,s=(t.max.z-h.z)*u):(a=(t.max.z-h.z)*u,s=(t.min.z-h.z)*u),n>s||a>i?null:((a>n||n!==n)&&(n=a),(s<i||i!==i)&&(i=s),i<0?null:this.at(n>=0?n:i,e)))}intersectsBox(t){return null!==this.intersectBox(t,zi)}intersectTriangle(t,e,n,i,r){Wi.subVectors(e,t),Ui.subVectors(n,t),Zi.crossVectors(Wi,Ui);let o,a=this.direction.dot(Zi);if(a>0){if(i)return null;o=1}else{if(!(a<0))return null;o=-1,a=-a}Hi.subVectors(this.origin,t);const s=o*this.direction.dot(Ui.crossVectors(Hi,Ui));if(s<0)return null;const l=o*this.direction.dot(Wi.cross(Hi));if(l<0)return null;if(s+l>a)return null;const c=-o*Hi.dot(Zi);return c<0?null:this.at(c/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Xi{constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,i,r,o,a,s,l,c,u,h,d,p,f,g){const m=this.elements;return m[0]=t,m[4]=e,m[8]=n,m[12]=i,m[1]=r,m[5]=o,m[9]=a,m[13]=s,m[2]=l,m[6]=c,m[10]=u,m[14]=h,m[3]=d,m[7]=p,m[11]=f,m[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Xi).fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,i=1/qi.setFromMatrixColumn(t,0).length(),r=1/qi.setFromMatrixColumn(t,1).length(),o=1/qi.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=0,e[4]=n[4]*r,e[5]=n[5]*r,e[6]=n[6]*r,e[7]=0,e[8]=n[8]*o,e[9]=n[9]*o,e[10]=n[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const e=this.elements,n=t.x,i=t.y,r=t.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r);if("XYZ"===t.order){const t=o*c,n=o*u,i=a*c,r=a*u;e[0]=s*c,e[4]=-s*u,e[8]=l,e[1]=n+i*l,e[5]=t-r*l,e[9]=-a*s,e[2]=r-t*l,e[6]=i+n*l,e[10]=o*s}else if("YXZ"===t.order){const t=s*c,n=s*u,i=l*c,r=l*u;e[0]=t+r*a,e[4]=i*a-n,e[8]=o*l,e[1]=o*u,e[5]=o*c,e[9]=-a,e[2]=n*a-i,e[6]=r+t*a,e[10]=o*s}else if("ZXY"===t.order){const t=s*c,n=s*u,i=l*c,r=l*u;e[0]=t-r*a,e[4]=-o*u,e[8]=i+n*a,e[1]=n+i*a,e[5]=o*c,e[9]=r-t*a,e[2]=-o*l,e[6]=a,e[10]=o*s}else if("ZYX"===t.order){const t=o*c,n=o*u,i=a*c,r=a*u;e[0]=s*c,e[4]=i*l-n,e[8]=t*l+r,e[1]=s*u,e[5]=r*l+t,e[9]=n*l-i,e[2]=-l,e[6]=a*s,e[10]=o*s}else if("YZX"===t.order){const t=o*s,n=o*l,i=a*s,r=a*l;e[0]=s*c,e[4]=r-t*u,e[8]=i*u+n,e[1]=u,e[5]=o*c,e[9]=-a*c,e[2]=-l*c,e[6]=n*u+i,e[10]=t-r*u}else if("XZY"===t.order){const t=o*s,n=o*l,i=a*s,r=a*l;e[0]=s*c,e[4]=-u,e[8]=l*c,e[1]=t*u+r,e[5]=o*c,e[9]=n*u-i,e[2]=i*u-n,e[6]=a*c,e[10]=r*u+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Qi,t,Ji)}lookAt(t,e,n){const i=this.elements;return er.subVectors(t,e),0===er.lengthSq()&&(er.z=1),er.normalize(),$i.crossVectors(n,er),0===$i.lengthSq()&&(1===Math.abs(n.z)?er.x+=1e-4:er.z+=1e-4,er.normalize(),$i.crossVectors(n,er)),$i.normalize(),tr.crossVectors(er,$i),i[0]=$i.x,i[4]=tr.x,i[8]=er.x,i[1]=$i.y,i[5]=tr.y,i[9]=er.y,i[2]=$i.z,i[6]=tr.z,i[10]=er.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,o=n[0],a=n[4],s=n[8],l=n[12],c=n[1],u=n[5],h=n[9],d=n[13],p=n[2],f=n[6],g=n[10],m=n[14],v=n[3],y=n[7],b=n[11],x=n[15],w=i[0],_=i[4],C=i[8],A=i[12],I=i[1],S=i[5],M=i[9],k=i[13],E=i[2],T=i[6],O=i[10],P=i[14],j=i[3],L=i[7],D=i[11],R=i[15];return r[0]=o*w+a*I+s*E+l*j,r[4]=o*_+a*S+s*T+l*L,r[8]=o*C+a*M+s*O+l*D,r[12]=o*A+a*k+s*P+l*R,r[1]=c*w+u*I+h*E+d*j,r[5]=c*_+u*S+h*T+d*L,r[9]=c*C+u*M+h*O+d*D,r[13]=c*A+u*k+h*P+d*R,r[2]=p*w+f*I+g*E+m*j,r[6]=p*_+f*S+g*T+m*L,r[10]=p*C+f*M+g*O+m*D,r[14]=p*A+f*k+g*P+m*R,r[3]=v*w+y*I+b*E+x*j,r[7]=v*_+y*S+b*T+x*L,r[11]=v*C+y*M+b*O+x*D,r[15]=v*A+y*k+b*P+x*R,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],i=t[8],r=t[12],o=t[1],a=t[5],s=t[9],l=t[13],c=t[2],u=t[6],h=t[10],d=t[14],p=t[3],f=t[7],g=t[11],m=t[15];return p*(+r*s*u-i*l*u-r*a*h+n*l*h+i*a*d-n*s*d)+f*(+e*s*d-e*l*h+r*o*h-i*o*d+i*l*c-r*s*c)+g*(+e*l*u-e*a*d-r*o*u+n*o*d+r*a*c-n*l*c)+m*(-i*a*c-e*s*u+e*a*h+i*o*u-n*o*h+n*s*c)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const i=this.elements;return t.isVector3?(i[12]=t.x,i[13]=t.y,i[14]=t.z):(i[12]=t,i[13]=e,i[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],h=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15],v=u*g*l-f*h*l+f*s*d-a*g*d-u*s*m+a*h*m,y=p*h*l-c*g*l-p*s*d+o*g*d+c*s*m-o*h*m,b=c*f*l-p*u*l+p*a*d-o*f*d-c*a*m+o*u*m,x=p*u*s-c*f*s-p*a*h+o*f*h+c*a*g-o*u*g,w=e*v+n*y+i*b+r*x;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const _=1/w;return t[0]=v*_,t[1]=(f*h*r-u*g*r-f*i*d+n*g*d+u*i*m-n*h*m)*_,t[2]=(a*g*r-f*s*r+f*i*l-n*g*l-a*i*m+n*s*m)*_,t[3]=(u*s*r-a*h*r-u*i*l+n*h*l+a*i*d-n*s*d)*_,t[4]=y*_,t[5]=(c*g*r-p*h*r+p*i*d-e*g*d-c*i*m+e*h*m)*_,t[6]=(p*s*r-o*g*r-p*i*l+e*g*l+o*i*m-e*s*m)*_,t[7]=(o*h*r-c*s*r+c*i*l-e*h*l-o*i*d+e*s*d)*_,t[8]=b*_,t[9]=(p*u*r-c*f*r-p*n*d+e*f*d+c*n*m-e*u*m)*_,t[10]=(o*f*r-p*a*r+p*n*l-e*f*l-o*n*m+e*a*m)*_,t[11]=(c*a*r-o*u*r-c*n*l+e*u*l+o*n*d-e*a*d)*_,t[12]=x*_,t[13]=(c*f*i-p*u*i+p*n*h-e*f*h-c*n*g+e*u*g)*_,t[14]=(p*a*i-o*f*i-p*n*s+e*f*s+o*n*g-e*a*g)*_,t[15]=(o*u*i-c*a*i+c*n*s-e*u*s-o*n*h+e*a*h)*_,this}scale(t){const e=this.elements,n=t.x,i=t.y,r=t.z;return e[0]*=n,e[4]*=i,e[8]*=r,e[1]*=n,e[5]*=i,e[9]*=r,e[2]*=n,e[6]*=i,e[10]*=r,e[3]*=n,e[7]*=i,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,i))}makeTranslation(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),i=Math.sin(e),r=1-n,o=t.x,a=t.y,s=t.z,l=r*o,c=r*a;return this.set(l*o+n,l*a-i*s,l*s+i*a,0,l*a+i*s,c*a+n,c*s-i*o,0,l*s-i*a,c*s+i*o,r*s*s+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,i,r,o){return this.set(1,n,r,0,t,1,o,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){const i=this.elements,r=e._x,o=e._y,a=e._z,s=e._w,l=r+r,c=o+o,u=a+a,h=r*l,d=r*c,p=r*u,f=o*c,g=o*u,m=a*u,v=s*l,y=s*c,b=s*u,x=n.x,w=n.y,_=n.z;return i[0]=(1-(f+m))*x,i[1]=(d+b)*x,i[2]=(p-y)*x,i[3]=0,i[4]=(d-b)*w,i[5]=(1-(h+m))*w,i[6]=(g+v)*w,i[7]=0,i[8]=(p+y)*_,i[9]=(g-v)*_,i[10]=(1-(h+f))*_,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,n){const i=this.elements;let r=qi.set(i[0],i[1],i[2]).length();const o=qi.set(i[4],i[5],i[6]).length(),a=qi.set(i[8],i[9],i[10]).length(),s=this.determinant();s<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],Ki.copy(this);const l=1/r,c=1/o,u=1/a;return Ki.elements[0]*=l,Ki.elements[1]*=l,Ki.elements[2]*=l,Ki.elements[4]*=c,Ki.elements[5]*=c,Ki.elements[6]*=c,Ki.elements[8]*=u,Ki.elements[9]*=u,Ki.elements[10]*=u,e.setFromRotationMatrix(Ki),n.x=r,n.y=o,n.z=a,this}makePerspective(t,e,n,i,r,o){void 0===o&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const a=this.elements,s=2*r/(e-t),l=2*r/(n-i),c=(e+t)/(e-t),u=(n+i)/(n-i),h=-(o+r)/(o-r),d=-2*o*r/(o-r);return a[0]=s,a[4]=0,a[8]=c,a[12]=0,a[1]=0,a[5]=l,a[9]=u,a[13]=0,a[2]=0,a[6]=0,a[10]=h,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(t,e,n,i,r,o){const a=this.elements,s=1/(e-t),l=1/(n-i),c=1/(o-r),u=(e+t)*s,h=(n+i)*l,d=(o+r)*c;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-u,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-h,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let i=0;i<16;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}Xi.prototype.isMatrix4=!0;const qi=new vi,Ki=new Xi,Qi=new vi(0,0,0),Ji=new vi(1,1,1),$i=new vi,tr=new vi,er=new vi,nr=new Xi,ir=new mi;class rr{constructor(t=0,e=0,n=0,i=rr.DefaultOrder){this._x=t,this._y=e,this._z=n,this._order=i}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,i=this._order){return this._x=t,this._y=e,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){const i=t.elements,r=i[0],o=i[4],a=i[8],s=i[1],l=i[5],c=i[9],u=i[2],h=i[6],d=i[10];switch(e){case"XYZ":this._y=Math.asin(Dn(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(h,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Dn(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(s,l)):(this._y=Math.atan2(-u,r),this._z=0);break;case"ZXY":this._x=Math.asin(Dn(h,-1,1)),Math.abs(h)<.9999999?(this._y=Math.atan2(-u,d),this._z=Math.atan2(-o,l)):(this._y=0,this._z=Math.atan2(s,r));break;case"ZYX":this._y=Math.asin(-Dn(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(h,d),this._z=Math.atan2(s,r)):(this._x=0,this._z=Math.atan2(-o,l));break;case"YZX":this._z=Math.asin(Dn(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-Dn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(h,l),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-c,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e)}return this._order=e,!0===n&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return nr.makeRotationFromQuaternion(t),this.setFromRotationMatrix(nr,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return ir.setFromEuler(this),this.setFromQuaternion(ir,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}toVector3(t){return t?t.set(this._x,this._y,this._z):new vi(this._x,this._y,this._z)}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}rr.prototype.isEuler=!0,rr.DefaultOrder="XYZ",rr.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"];class or{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return 0!==(this.mask&t.mask)}isEnabled(t){return 0!==(this.mask&(1<<t|0))}}let ar=0;const sr=new vi,lr=new mi,cr=new Xi,ur=new vi,hr=new vi,dr=new vi,pr=new mi,fr=new vi(1,0,0),gr=new vi(0,1,0),mr=new vi(0,0,1),vr={type:"added"},yr={type:"removed"};class br extends En{constructor(){super(),Object.defineProperty(this,"id",{value:ar++}),this.uuid=Ln(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=br.DefaultUp.clone();const t=new vi,e=new rr,n=new mi,i=new vi(1,1,1);function r(){n.setFromEuler(e,!1)}function o(){e.setFromQuaternion(n,void 0,!1)}e._onChange(r),n._onChange(o),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Xi},normalMatrix:{value:new ni}}),this.matrix=new Xi,this.matrixWorld=new Xi,this.matrixAutoUpdate=br.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new or,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,e){this.quaternion.setFromAxisAngle(t,e)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,e){return lr.setFromAxisAngle(t,e),this.quaternion.multiply(lr),this}rotateOnWorldAxis(t,e){return lr.setFromAxisAngle(t,e),this.quaternion.premultiply(lr),this}rotateX(t){return this.rotateOnAxis(fr,t)}rotateY(t){return this.rotateOnAxis(gr,t)}rotateZ(t){return this.rotateOnAxis(mr,t)}translateOnAxis(t,e){return sr.copy(t).applyQuaternion(this.quaternion),this.position.add(sr.multiplyScalar(e)),this}translateX(t){return this.translateOnAxis(fr,t)}translateY(t){return this.translateOnAxis(gr,t)}translateZ(t){return this.translateOnAxis(mr,t)}localToWorld(t){return t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return t.applyMatrix4(cr.copy(this.matrixWorld).invert())}lookAt(t,e,n){t.isVector3?ur.copy(t):ur.set(t,e,n);const i=this.parent;this.updateWorldMatrix(!0,!1),hr.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?cr.lookAt(hr,ur,this.up):cr.lookAt(ur,hr,this.up),this.quaternion.setFromRotationMatrix(cr),i&&(cr.extractRotation(i.matrixWorld),lr.setFromRotationMatrix(cr),this.quaternion.premultiply(lr.invert()))}add(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,this.children.push(t),t.dispatchEvent(vr)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.remove(arguments[t]);return this}const e=this.children.indexOf(t);return-1!==e&&(t.parent=null,this.children.splice(e,1),t.dispatchEvent(yr)),this}removeFromParent(){const t=this.parent;return null!==t&&t.remove(this),this}clear(){for(let t=0;t<this.children.length;t++){const e=this.children[t];e.parent=null,e.dispatchEvent(yr)}return this.children.length=0,this}attach(t){return this.updateWorldMatrix(!0,!1),cr.copy(this.matrixWorld).invert(),null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),cr.multiply(t.parent.matrixWorld)),t.applyMatrix4(cr),this.add(t),t.updateWorldMatrix(!1,!0),this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,e){if(this[t]===e)return this;for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n],r=i.getObjectByProperty(t,e);if(void 0!==r)return r}}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(hr,t,dr),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(hr,pr,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverse(t)}traverseVisible(t){if(!1===this.visible)return;t(this);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].traverseVisible(t)}traverseAncestors(t){const e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);const e=this.children;for(let n=0,i=e.length;n<i;n++)e[n].updateMatrixWorld(t)}updateWorldMatrix(t,e){const n=this.parent;if(!0===t&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===e){const t=this.children;for(let e=0,n=t.length;e<n;e++)t[e].updateWorldMatrix(!1,!0)}}toJSON(t){const e=void 0===t||"string"===typeof t,n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});const i={};function r(e,n){return void 0===e[n.uuid]&&(e[n.uuid]=n.toJSON(t)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&(i.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const n=e.shapes;if(Array.isArray(n))for(let e=0,i=n.length;e<i;e++){const i=n[e];r(t.shapes,i)}else r(t.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(r(t.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const e=[];for(let n=0,i=this.material.length;n<i;n++)e.push(r(t.materials,this.material[n]));i.material=e}else i.material=r(t.materials,this.material);if(this.children.length>0){i.children=[];for(let e=0;e<this.children.length;e++)i.children.push(this.children[e].toJSON(t).object)}if(this.animations.length>0){i.animations=[];for(let e=0;e<this.animations.length;e++){const n=this.animations[e];i.animations.push(r(t.animations,n))}}if(e){const e=o(t.geometries),i=o(t.materials),r=o(t.textures),a=o(t.images),s=o(t.shapes),l=o(t.skeletons),c=o(t.animations);e.length>0&&(n.geometries=e),i.length>0&&(n.materials=i),r.length>0&&(n.textures=r),a.length>0&&(n.images=a),s.length>0&&(n.shapes=s),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c)}return n.object=i,n;function o(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}}clone(t){return(new this.constructor).copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let n=0;n<t.children.length;n++){const e=t.children[n];this.add(e.clone())}return this}}br.DefaultUp=new vi(0,1,0),br.DefaultMatrixAutoUpdate=!0,br.prototype.isObject3D=!0;const xr=new vi,wr=new vi,_r=new vi,Cr=new vi,Ar=new vi,Ir=new vi,Sr=new vi,Mr=new vi,kr=new vi,Er=new vi;class Tr{constructor(t=new vi,e=new vi,n=new vi){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,i){i.subVectors(n,e),xr.subVectors(t,e),i.cross(xr);const r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(t,e,n,i,r){xr.subVectors(i,e),wr.subVectors(n,e),_r.subVectors(t,e);const o=xr.dot(xr),a=xr.dot(wr),s=xr.dot(_r),l=wr.dot(wr),c=wr.dot(_r),u=o*l-a*a;if(0===u)return r.set(-2,-1,-1);const h=1/u,d=(l*s-a*c)*h,p=(o*c-a*s)*h;return r.set(1-d-p,p,d)}static containsPoint(t,e,n,i){return this.getBarycoord(t,e,n,i,Cr),Cr.x>=0&&Cr.y>=0&&Cr.x+Cr.y<=1}static getUV(t,e,n,i,r,o,a,s){return this.getBarycoord(t,e,n,i,Cr),s.set(0,0),s.addScaledVector(r,Cr.x),s.addScaledVector(o,Cr.y),s.addScaledVector(a,Cr.z),s}static isFrontFacing(t,e,n,i){return xr.subVectors(n,e),wr.subVectors(t,e),xr.cross(wr).dot(i)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this}setFromAttributeAndIndices(t,e,n,i){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,i),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return xr.subVectors(this.c,this.b),wr.subVectors(this.a,this.b),.5*xr.cross(wr).length()}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return Tr.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return Tr.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,n,i,r){return Tr.getUV(t,this.a,this.b,this.c,e,n,i,r)}containsPoint(t){return Tr.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return Tr.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const n=this.a,i=this.b,r=this.c;let o,a;Ar.subVectors(i,n),Ir.subVectors(r,n),Mr.subVectors(t,n);const s=Ar.dot(Mr),l=Ir.dot(Mr);if(s<=0&&l<=0)return e.copy(n);kr.subVectors(t,i);const c=Ar.dot(kr),u=Ir.dot(kr);if(c>=0&&u<=c)return e.copy(i);const h=s*u-c*l;if(h<=0&&s>=0&&c<=0)return o=s/(s-c),e.copy(n).addScaledVector(Ar,o);Er.subVectors(t,r);const d=Ar.dot(Er),p=Ir.dot(Er);if(p>=0&&d<=p)return e.copy(r);const f=d*l-s*p;if(f<=0&&l>=0&&p<=0)return a=l/(l-p),e.copy(n).addScaledVector(Ir,a);const g=c*p-d*u;if(g<=0&&u-c>=0&&d-p>=0)return Sr.subVectors(r,i),a=(u-c)/(u-c+(d-p)),e.copy(i).addScaledVector(Sr,a);const m=1/(g+f+h);return o=f*m,a=h*m,e.copy(n).addScaledVector(Ar,o).addScaledVector(Ir,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}let Or=0;class Pr extends En{constructor(){super(),Object.defineProperty(this,"id",{value:Or++}),this.uuid=Ln(),this.name="",this.type="Material",this.fog=!0,this.blending=x,this.side=f,this.vertexColors=!1,this.opacity=1,this.format=Nt,this.transparent=!1,this.blendSrc=L,this.blendDst=D,this.blendEquation=I,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=W,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=vn,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=nn,this.stencilZFail=nn,this.stencilZPass=nn,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!==t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(void 0!==t)for(const e in t){const n=t[e];if(void 0===n){console.warn("THREE.Material: '"+e+"' parameter is undefined.");continue}if("shading"===e){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===v;continue}const i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=n:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}}toJSON(t){const e=void 0===t||"string"===typeof t;e&&(t={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function i(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==x&&(n.blending=this.blending),this.side!==f&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.format!==Nt&&(n.format=this.format),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),e){const e=i(t.textures),r=i(t.images);e.length>0&&(n.textures=e),r.length>0&&(n.images=r)}return n}clone(){return(new this.constructor).copy(this)}copy(t){this.name=t.name,this.fog=t.fog,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.format=t.format,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let n=null;if(null!==e){const t=e.length;n=new Array(t);for(let i=0;i!==t;++i)n[i]=e[i].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){!0===t&&this.version++}}Pr.prototype.isMaterial=!0;const jr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Lr={h:0,s:0,l:0},Dr={h:0,s:0,l:0};function Rr(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}function Br(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function Nr(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}class Fr{constructor(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}set(t){return t&&t.isColor?this.copy(t):"number"===typeof t?this.setHex(t):"string"===typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this}setRGB(t,e,n){return this.r=t,this.g=e,this.b=n,this}setHSL(t,e,n){if(t=Rn(t,1),e=Dn(e,0,1),n=Dn(n,0,1),0===e)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+e):n+e-n*e,r=2*n-i;this.r=Rr(r,i,t+1/3),this.g=Rr(r,i,t),this.b=Rr(r,i,t-1/3)}return this}setStyle(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let n;if(n=/^((?:rgb|hsl)a?)\(([^\)]*)\)/.exec(t)){let t;const i=n[1],r=n[2];switch(i){case"rgb":case"rgba":if(t=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return this.r=Math.min(255,parseInt(t[1],10))/255,this.g=Math.min(255,parseInt(t[2],10))/255,this.b=Math.min(255,parseInt(t[3],10))/255,e(t[4]),this;if(t=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return this.r=Math.min(100,parseInt(t[1],10))/100,this.g=Math.min(100,parseInt(t[2],10))/100,this.b=Math.min(100,parseInt(t[3],10))/100,e(t[4]),this;break;case"hsl":case"hsla":if(t=/^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r)){const n=parseFloat(t[1])/360,i=parseInt(t[2],10)/100,r=parseInt(t[3],10)/100;return e(t[4]),this.setHSL(n,i,r)}break}}else if(n=/^\#([A-Fa-f\d]+)$/.exec(t)){const t=n[1],e=t.length;if(3===e)return this.r=parseInt(t.charAt(0)+t.charAt(0),16)/255,this.g=parseInt(t.charAt(1)+t.charAt(1),16)/255,this.b=parseInt(t.charAt(2)+t.charAt(2),16)/255,this;if(6===e)return this.r=parseInt(t.charAt(0)+t.charAt(1),16)/255,this.g=parseInt(t.charAt(2)+t.charAt(3),16)/255,this.b=parseInt(t.charAt(4)+t.charAt(5),16)/255,this}return t&&t.length>0?this.setColorName(t):this}setColorName(t){const e=jr[t.toLowerCase()];return void 0!==e?this.setHex(e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Br(t.r),this.g=Br(t.g),this.b=Br(t.b),this}copyLinearToSRGB(t){return this.r=Nr(t.r),this.g=Nr(t.g),this.b=Nr(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0}getHexString(){return("000000"+this.getHex().toString(16)).slice(-6)}getHSL(t){const e=this.r,n=this.g,i=this.b,r=Math.max(e,n,i),o=Math.min(e,n,i);let a,s;const l=(o+r)/2;if(o===r)a=0,s=0;else{const t=r-o;switch(s=l<=.5?t/(r+o):t/(2-r-o),r){case e:a=(n-i)/t+(n<i?6:0);break;case n:a=(i-e)/t+2;break;case i:a=(e-n)/t+4;break}a/=6}return t.h=a,t.s=s,t.l=l,t}getStyle(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"}offsetHSL(t,e,n){return this.getHSL(Lr),Lr.h+=t,Lr.s+=e,Lr.l+=n,this.setHSL(Lr.h,Lr.s,Lr.l),this}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}lerpColors(t,e,n){return this.r=t.r+(e.r-t.r)*n,this.g=t.g+(e.g-t.g)*n,this.b=t.b+(e.b-t.b)*n,this}lerpHSL(t,e){this.getHSL(Lr),t.getHSL(Dr);const n=Fn(Lr.h,Dr.h,e),i=Fn(Lr.s,Dr.s,e),r=Fn(Lr.l,Dr.l,e);return this.setHSL(n,i,r),this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,e=0){return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}toArray(t=[],e=0){return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}fromBufferAttribute(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),!0===t.normalized&&(this.r/=255,this.g/=255,this.b/=255),this}toJSON(){return this.getHex()}}Fr.NAMES=jr,Fr.prototype.isColor=!0,Fr.prototype.r=1,Fr.prototype.g=1,Fr.prototype.b=1;class zr extends Pr{constructor(t){super(),this.type="MeshBasicMaterial",this.color=new Fr(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=q,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this}}zr.prototype.isMeshBasicMaterial=!0;const Vr=new vi,Gr=new ei;class Hr{constructor(t,e,n){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=!0===n,this.usage=yn,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this}copyAt(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let i=0,r=this.itemSize;i<r;i++)this.array[t+i]=e.array[n+i];return this}copyArray(t){return this.array.set(t),this}copyColorsArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",i),r=new Fr),e[n++]=r.r,e[n++]=r.g,e[n++]=r.b}return this}copyVector2sArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",i),r=new ei),e[n++]=r.x,e[n++]=r.y}return this}copyVector3sArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",i),r=new vi),e[n++]=r.x,e[n++]=r.y,e[n++]=r.z}return this}copyVector4sArray(t){const e=this.array;let n=0;for(let i=0,r=t.length;i<r;i++){let r=t[i];void 0===r&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",i),r=new di),e[n++]=r.x,e[n++]=r.y,e[n++]=r.z,e[n++]=r.w}return this}applyMatrix3(t){if(2===this.itemSize)for(let e=0,n=this.count;e<n;e++)Gr.fromBufferAttribute(this,e),Gr.applyMatrix3(t),this.setXY(e,Gr.x,Gr.y);else if(3===this.itemSize)for(let e=0,n=this.count;e<n;e++)Vr.fromBufferAttribute(this,e),Vr.applyMatrix3(t),this.setXYZ(e,Vr.x,Vr.y,Vr.z);return this}applyMatrix4(t){for(let e=0,n=this.count;e<n;e++)Vr.x=this.getX(e),Vr.y=this.getY(e),Vr.z=this.getZ(e),Vr.applyMatrix4(t),this.setXYZ(e,Vr.x,Vr.y,Vr.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)Vr.x=this.getX(e),Vr.y=this.getY(e),Vr.z=this.getZ(e),Vr.applyNormalMatrix(t),this.setXYZ(e,Vr.x,Vr.y,Vr.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)Vr.x=this.getX(e),Vr.y=this.getY(e),Vr.z=this.getZ(e),Vr.transformDirection(t),this.setXYZ(e,Vr.x,Vr.y,Vr.z);return this}set(t,e=0){return this.array.set(t,e),this}getX(t){return this.array[t*this.itemSize]}setX(t,e){return this.array[t*this.itemSize]=e,this}getY(t){return this.array[t*this.itemSize+1]}setY(t,e){return this.array[t*this.itemSize+1]=e,this}getZ(t){return this.array[t*this.itemSize+2]}setZ(t,e){return this.array[t*this.itemSize+2]=e,this}getW(t){return this.array[t*this.itemSize+3]}setW(t,e){return this.array[t*this.itemSize+3]=e,this}setXY(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this}setXYZ(t,e,n,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this}setXYZW(t,e,n,i,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this.array[t+3]=r,this}onUpload(t){return this.onUploadCallback=t,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.prototype.slice.call(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==yn&&(t.usage=this.usage),0===this.updateRange.offset&&-1===this.updateRange.count||(t.updateRange=this.updateRange),t}}Hr.prototype.isBufferAttribute=!0;class Wr extends Hr{constructor(t,e,n){super(new Int8Array(t),e,n)}}class Ur extends Hr{constructor(t,e,n){super(new Uint8Array(t),e,n)}}class Zr extends Hr{constructor(t,e,n){super(new Uint8ClampedArray(t),e,n)}}class Yr extends Hr{constructor(t,e,n){super(new Int16Array(t),e,n)}}class Xr extends Hr{constructor(t,e,n){super(new Uint16Array(t),e,n)}}class qr extends Hr{constructor(t,e,n){super(new Int32Array(t),e,n)}}class Kr extends Hr{constructor(t,e,n){super(new Uint32Array(t),e,n)}}class Qr extends Hr{constructor(t,e,n){super(new Uint16Array(t),e,n)}}Qr.prototype.isFloat16BufferAttribute=!0;class Jr extends Hr{constructor(t,e,n){super(new Float32Array(t),e,n)}}class $r extends Hr{constructor(t,e,n){super(new Float64Array(t),e,n)}}let to=0;const eo=new Xi,no=new br,io=new vi,ro=new xi,oo=new xi,ao=new vi;class so extends En{constructor(){super(),Object.defineProperty(this,"id",{value:to++}),this.uuid=Ln(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(t){return Array.isArray(t)?this.index=new(ii(t)>65535?Kr:Xr)(t,1):this.index=t,this}getAttribute(t){return this.attributes[t]}setAttribute(t,e){return this.attributes[t]=e,this}deleteAttribute(t){return delete this.attributes[t],this}hasAttribute(t){return void 0!==this.attributes[t]}addGroup(t,e,n=0){this.groups.push({start:t,count:e,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(t,e){this.drawRange.start=t,this.drawRange.count=e}applyMatrix4(t){const e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const e=(new ni).getNormalMatrix(t);n.applyNormalMatrix(e),n.needsUpdate=!0}const i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(t),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(t){return eo.makeRotationFromQuaternion(t),this.applyMatrix4(eo),this}rotateX(t){return eo.makeRotationX(t),this.applyMatrix4(eo),this}rotateY(t){return eo.makeRotationY(t),this.applyMatrix4(eo),this}rotateZ(t){return eo.makeRotationZ(t),this.applyMatrix4(eo),this}translate(t,e,n){return eo.makeTranslation(t,e,n),this.applyMatrix4(eo),this}scale(t,e,n){return eo.makeScale(t,e,n),this.applyMatrix4(eo),this}lookAt(t){return no.lookAt(t),no.updateMatrix(),this.applyMatrix4(no.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(io).negate(),this.translate(io.x,io.y,io.z),this}setFromPoints(t){const e=[];for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new Jr(e,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new xi);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingBox.set(new vi(-1/0,-1/0,-1/0),new vi(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(let n=0,i=e.length;n<i;n++){const t=e[n];ro.setFromBufferAttribute(t),this.morphTargetsRelative?(ao.addVectors(this.boundingBox.min,ro.min),this.boundingBox.expandByPoint(ao),ao.addVectors(this.boundingBox.max,ro.max),this.boundingBox.expandByPoint(ao)):(this.boundingBox.expandByPoint(ro.min),this.boundingBox.expandByPoint(ro.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new Fi);const t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set "mesh.frustumCulled" to "false".',this),void this.boundingSphere.set(new vi,1/0);if(t){const n=this.boundingSphere.center;if(ro.setFromBufferAttribute(t),e)for(let t=0,r=e.length;t<r;t++){const n=e[t];oo.setFromBufferAttribute(n),this.morphTargetsRelative?(ao.addVectors(ro.min,oo.min),ro.expandByPoint(ao),ao.addVectors(ro.max,oo.max),ro.expandByPoint(ao)):(ro.expandByPoint(oo.min),ro.expandByPoint(oo.max))}ro.getCenter(n);let i=0;for(let e=0,r=t.count;e<r;e++)ao.fromBufferAttribute(t,e),i=Math.max(i,n.distanceToSquared(ao));if(e)for(let r=0,o=e.length;r<o;r++){const o=e[r],a=this.morphTargetsRelative;for(let e=0,r=o.count;e<r;e++)ao.fromBufferAttribute(o,e),a&&(io.fromBufferAttribute(t,e),ao.add(io)),i=Math.max(i,n.distanceToSquared(ao))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const t=this.index,e=this.attributes;if(null===t||void 0===e.position||void 0===e.normal||void 0===e.uv)return void console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");const n=t.array,i=e.position.array,r=e.normal.array,o=e.uv.array,a=i.length/3;void 0===e.tangent&&this.setAttribute("tangent",new Hr(new Float32Array(4*a),4));const s=e.tangent.array,l=[],c=[];for(let I=0;I<a;I++)l[I]=new vi,c[I]=new vi;const u=new vi,h=new vi,d=new vi,p=new ei,f=new ei,g=new ei,m=new vi,v=new vi;function y(t,e,n){u.fromArray(i,3*t),h.fromArray(i,3*e),d.fromArray(i,3*n),p.fromArray(o,2*t),f.fromArray(o,2*e),g.fromArray(o,2*n),h.sub(u),d.sub(u),f.sub(p),g.sub(p);const r=1/(f.x*g.y-g.x*f.y);isFinite(r)&&(m.copy(h).multiplyScalar(g.y).addScaledVector(d,-f.y).multiplyScalar(r),v.copy(d).multiplyScalar(f.x).addScaledVector(h,-g.x).multiplyScalar(r),l[t].add(m),l[e].add(m),l[n].add(m),c[t].add(v),c[e].add(v),c[n].add(v))}let b=this.groups;0===b.length&&(b=[{start:0,count:n.length}]);for(let I=0,S=b.length;I<S;++I){const t=b[I],e=t.start,i=t.count;for(let r=e,o=e+i;r<o;r+=3)y(n[r+0],n[r+1],n[r+2])}const x=new vi,w=new vi,_=new vi,C=new vi;function A(t){_.fromArray(r,3*t),C.copy(_);const e=l[t];x.copy(e),x.sub(_.multiplyScalar(_.dot(e))).normalize(),w.crossVectors(C,e);const n=w.dot(c[t]),i=n<0?-1:1;s[4*t]=x.x,s[4*t+1]=x.y,s[4*t+2]=x.z,s[4*t+3]=i}for(let I=0,S=b.length;I<S;++I){const t=b[I],e=t.start,i=t.count;for(let r=e,o=e+i;r<o;r+=3)A(n[r+0]),A(n[r+1]),A(n[r+2])}}computeVertexNormals(){const t=this.index,e=this.getAttribute("position");if(void 0!==e){let n=this.getAttribute("normal");if(void 0===n)n=new Hr(new Float32Array(3*e.count),3),this.setAttribute("normal",n);else for(let t=0,e=n.count;t<e;t++)n.setXYZ(t,0,0,0);const i=new vi,r=new vi,o=new vi,a=new vi,s=new vi,l=new vi,c=new vi,u=new vi;if(t)for(let h=0,d=t.count;h<d;h+=3){const d=t.getX(h+0),p=t.getX(h+1),f=t.getX(h+2);i.fromBufferAttribute(e,d),r.fromBufferAttribute(e,p),o.fromBufferAttribute(e,f),c.subVectors(o,r),u.subVectors(i,r),c.cross(u),a.fromBufferAttribute(n,d),s.fromBufferAttribute(n,p),l.fromBufferAttribute(n,f),a.add(c),s.add(c),l.add(c),n.setXYZ(d,a.x,a.y,a.z),n.setXYZ(p,s.x,s.y,s.z),n.setXYZ(f,l.x,l.y,l.z)}else for(let t=0,h=e.count;t<h;t+=3)i.fromBufferAttribute(e,t+0),r.fromBufferAttribute(e,t+1),o.fromBufferAttribute(e,t+2),c.subVectors(o,r),u.subVectors(i,r),c.cross(u),n.setXYZ(t+0,c.x,c.y,c.z),n.setXYZ(t+1,c.x,c.y,c.z),n.setXYZ(t+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}merge(t,e){if(!t||!t.isBufferGeometry)return void console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);void 0===e&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));const n=this.attributes;for(const i in n){if(void 0===t.attributes[i])continue;const r=n[i],o=r.array,a=t.attributes[i],s=a.array,l=a.itemSize*e,c=Math.min(s.length,o.length-l);for(let t=0,e=l;t<c;t++,e++)o[e]=s[t]}return this}normalizeNormals(){const t=this.attributes.normal;for(let e=0,n=t.count;e<n;e++)ao.fromBufferAttribute(t,e),ao.normalize(),t.setXYZ(e,ao.x,ao.y,ao.z)}toNonIndexed(){function t(t,e){const n=t.array,i=t.itemSize,r=t.normalized,o=new n.constructor(e.length*i);let a=0,s=0;for(let l=0,c=e.length;l<c;l++){a=t.isInterleavedBufferAttribute?e[l]*t.data.stride+t.offset:e[l]*i;for(let t=0;t<i;t++)o[s++]=n[a++]}return new Hr(o,i,r)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const e=new so,n=this.index.array,i=this.attributes;for(const a in i){const r=i[a],o=t(r,n);e.setAttribute(a,o)}const r=this.morphAttributes;for(const a in r){const i=[],o=r[a];for(let e=0,r=o.length;e<r;e++){const r=o[e],a=t(r,n);i.push(a)}e.morphAttributes[a]=i}e.morphTargetsRelative=this.morphTargetsRelative;const o=this.groups;for(let a=0,s=o.length;a<s;a++){const t=o[a];e.addGroup(t.start,t.count,t.materialIndex)}return e}toJSON(){const t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const n=this.attributes;for(const s in n){const e=n[s];t.data.attributes[s]=e.toJSON(t.data)}const i={};let r=!1;for(const s in this.morphAttributes){const e=this.morphAttributes[s],n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];n.push(r.toJSON(t.data))}n.length>0&&(i[s]=n,r=!0)}r&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(t.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t}clone(){return(new this.constructor).copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const n=t.index;null!==n&&this.setIndex(n.clone(e));const i=t.attributes;for(const l in i){const t=i[l];this.setAttribute(l,t.clone(e))}const r=t.morphAttributes;for(const l in r){const t=[],n=r[l];for(let i=0,r=n.length;i<r;i++)t.push(n[i].clone(e));this.morphAttributes[l]=t}this.morphTargetsRelative=t.morphTargetsRelative;const o=t.groups;for(let l=0,c=o.length;l<c;l++){const t=o[l];this.addGroup(t.start,t.count,t.materialIndex)}const a=t.boundingBox;null!==a&&(this.boundingBox=a.clone());const s=t.boundingSphere;return null!==s&&(this.boundingSphere=s.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,void 0!==t.parameters&&(this.parameters=Object.assign({},t.parameters)),this}dispose(){this.dispatchEvent({type:"dispose"})}}so.prototype.isBufferGeometry=!0;const lo=new Xi,co=new Yi,uo=new Fi,ho=new vi,po=new vi,fo=new vi,go=new vi,mo=new vi,vo=new vi,yo=new vi,bo=new vi,xo=new vi,wo=new ei,_o=new ei,Co=new ei,Ao=new vi,Io=new vi;class So extends br{constructor(t=new so,e=new zr){super(),this.type="Mesh",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t){return super.copy(t),void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this.material=t.material,this.geometry=t.geometry,this}updateMorphTargets(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}raycast(t,e){const n=this.geometry,i=this.material,r=this.matrixWorld;if(void 0===i)return;if(null===n.boundingSphere&&n.computeBoundingSphere(),uo.copy(n.boundingSphere),uo.applyMatrix4(r),!1===t.ray.intersectsSphere(uo))return;if(lo.copy(r).invert(),co.copy(t.ray).applyMatrix4(lo),null!==n.boundingBox&&!1===co.intersectsBox(n.boundingBox))return;let o;if(n.isBufferGeometry){const r=n.index,a=n.attributes.position,s=n.morphAttributes.position,l=n.morphTargetsRelative,c=n.attributes.uv,u=n.attributes.uv2,h=n.groups,d=n.drawRange;if(null!==r)if(Array.isArray(i))for(let n=0,p=h.length;n<p;n++){const p=h[n],f=i[p.materialIndex],g=Math.max(p.start,d.start),m=Math.min(r.count,Math.min(p.start+p.count,d.start+d.count));for(let n=g,i=m;n<i;n+=3){const i=r.getX(n),h=r.getX(n+1),d=r.getX(n+2);o=ko(this,f,t,co,a,s,l,c,u,i,h,d),o&&(o.faceIndex=Math.floor(n/3),o.face.materialIndex=p.materialIndex,e.push(o))}}else{const n=Math.max(0,d.start),h=Math.min(r.count,d.start+d.count);for(let d=n,p=h;d<p;d+=3){const n=r.getX(d),h=r.getX(d+1),p=r.getX(d+2);o=ko(this,i,t,co,a,s,l,c,u,n,h,p),o&&(o.faceIndex=Math.floor(d/3),e.push(o))}}else if(void 0!==a)if(Array.isArray(i))for(let n=0,p=h.length;n<p;n++){const r=h[n],p=i[r.materialIndex],f=Math.max(r.start,d.start),g=Math.min(a.count,Math.min(r.start+r.count,d.start+d.count));for(let n=f,i=g;n<i;n+=3){const i=n,h=n+1,d=n+2;o=ko(this,p,t,co,a,s,l,c,u,i,h,d),o&&(o.faceIndex=Math.floor(n/3),o.face.materialIndex=r.materialIndex,e.push(o))}}else{const n=Math.max(0,d.start),r=Math.min(a.count,d.start+d.count);for(let h=n,d=r;h<d;h+=3){const n=h,r=h+1,d=h+2;o=ko(this,i,t,co,a,s,l,c,u,n,r,d),o&&(o.faceIndex=Math.floor(h/3),e.push(o))}}}else n.isGeometry&&console.error("THREE.Mesh.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}}function Mo(t,e,n,i,r,o,a,s){let l;if(l=e.side===g?i.intersectTriangle(a,o,r,!0,s):i.intersectTriangle(r,o,a,e.side!==m,s),null===l)return null;Io.copy(s),Io.applyMatrix4(t.matrixWorld);const c=n.ray.origin.distanceTo(Io);return c<n.near||c>n.far?null:{distance:c,point:Io.clone(),object:t}}function ko(t,e,n,i,r,o,a,s,l,c,u,h){ho.fromBufferAttribute(r,c),po.fromBufferAttribute(r,u),fo.fromBufferAttribute(r,h);const d=t.morphTargetInfluences;if(o&&d){yo.set(0,0,0),bo.set(0,0,0),xo.set(0,0,0);for(let t=0,e=o.length;t<e;t++){const e=d[t],n=o[t];0!==e&&(go.fromBufferAttribute(n,c),mo.fromBufferAttribute(n,u),vo.fromBufferAttribute(n,h),a?(yo.addScaledVector(go,e),bo.addScaledVector(mo,e),xo.addScaledVector(vo,e)):(yo.addScaledVector(go.sub(ho),e),bo.addScaledVector(mo.sub(po),e),xo.addScaledVector(vo.sub(fo),e)))}ho.add(yo),po.add(bo),fo.add(xo)}t.isSkinnedMesh&&(t.boneTransform(c,ho),t.boneTransform(u,po),t.boneTransform(h,fo));const p=Mo(t,e,n,i,ho,po,fo,Ao);if(p){s&&(wo.fromBufferAttribute(s,c),_o.fromBufferAttribute(s,u),Co.fromBufferAttribute(s,h),p.uv=Tr.getUV(Ao,ho,po,fo,wo,_o,Co,new ei)),l&&(wo.fromBufferAttribute(l,c),_o.fromBufferAttribute(l,u),Co.fromBufferAttribute(l,h),p.uv2=Tr.getUV(Ao,ho,po,fo,wo,_o,Co,new ei));const t={a:c,b:u,c:h,normal:new vi,materialIndex:0};Tr.getNormal(ho,po,fo,t.normal),p.face=t}return p}So.prototype.isMesh=!0;class Eo extends so{constructor(t=1,e=1,n=1,i=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:o};const a=this;i=Math.floor(i),r=Math.floor(r),o=Math.floor(o);const s=[],l=[],c=[],u=[];let h=0,d=0;function p(t,e,n,i,r,o,p,f,g,m,v){const y=o/g,b=p/m,x=o/2,w=p/2,_=f/2,C=g+1,A=m+1;let I=0,S=0;const M=new vi;for(let a=0;a<A;a++){const o=a*b-w;for(let s=0;s<C;s++){const h=s*y-x;M[t]=h*i,M[e]=o*r,M[n]=_,l.push(M.x,M.y,M.z),M[t]=0,M[e]=0,M[n]=f>0?1:-1,c.push(M.x,M.y,M.z),u.push(s/g),u.push(1-a/m),I+=1}}for(let a=0;a<m;a++)for(let t=0;t<g;t++){const e=h+t+C*a,n=h+t+C*(a+1),i=h+(t+1)+C*(a+1),r=h+(t+1)+C*a;s.push(e,n,r),s.push(n,i,r),S+=6}a.addGroup(d,S,v),d+=S,h+=I}p("z","y","x",-1,-1,n,e,t,o,r,0),p("z","y","x",1,-1,n,e,-t,o,r,1),p("x","z","y",1,1,t,n,e,i,o,2),p("x","z","y",1,-1,t,n,-e,i,o,3),p("x","y","z",1,-1,t,e,n,i,r,4),p("x","y","z",-1,-1,t,e,-n,i,r,5),this.setIndex(s),this.setAttribute("position",new Jr(l,3)),this.setAttribute("normal",new Jr(c,3)),this.setAttribute("uv",new Jr(u,2))}static fromJSON(t){return new Eo(t.width,t.height,t.depth,t.widthSegments,t.heightSegments,t.depthSegments)}}function To(t){const e={};for(const n in t){e[n]={};for(const i in t[n]){const r=t[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?e[n][i]=r.clone():Array.isArray(r)?e[n][i]=r.slice():e[n][i]=r}}return e}function Oo(t){const e={};for(let n=0;n<t.length;n++){const i=To(t[n]);for(const t in i)e[t]=i[t]}return e}const Po={clone:To,merge:Oo};var jo="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",Lo="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}";class Do extends Pr{constructor(t){super(),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=jo,this.fragmentShader=Lo,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}copy(t){return super.copy(t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=To(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.extensions=Object.assign({},t.extensions),this.glslVersion=t.glslVersion,this}toJSON(t){const e=super.toJSON(t);e.glslVersion=this.glslVersion,e.uniforms={};for(const i in this.uniforms){const n=this.uniforms[i],r=n.value;r&&r.isTexture?e.uniforms[i]={type:"t",value:r.toJSON(t).uuid}:r&&r.isColor?e.uniforms[i]={type:"c",value:r.getHex()}:r&&r.isVector2?e.uniforms[i]={type:"v2",value:r.toArray()}:r&&r.isVector3?e.uniforms[i]={type:"v3",value:r.toArray()}:r&&r.isVector4?e.uniforms[i]={type:"v4",value:r.toArray()}:r&&r.isMatrix3?e.uniforms[i]={type:"m3",value:r.toArray()}:r&&r.isMatrix4?e.uniforms[i]={type:"m4",value:r.toArray()}:e.uniforms[i]={value:r}}Object.keys(this.defines).length>0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const n={};for(const i in this.extensions)!0===this.extensions[i]&&(n[i]=!0);return Object.keys(n).length>0&&(e.extensions=n),e}}Do.prototype.isShaderMaterial=!0;class Ro extends br{constructor(){super(),this.type="Camera",this.matrixWorldInverse=new Xi,this.projectionMatrix=new Xi,this.projectionMatrixInverse=new Xi}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}Ro.prototype.isCamera=!0;class Bo extends Ro{constructor(t=50,e=1,n=.1,i=2e3){super(),this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=2*jn*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(.5*Pn*this.fov);return.5*this.getFilmHeight()/t}getEffectiveFOV(){return 2*jn*Math.atan(Math.tan(.5*Pn*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(t,e,n,i,r,o){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(.5*Pn*this.fov)/this.zoom,n=2*e,i=this.aspect*n,r=-.5*i;const o=this.view;if(null!==this.view&&this.view.enabled){const t=o.fullWidth,a=o.fullHeight;r+=o.offsetX*i/t,e-=o.offsetY*n/a,i*=o.width/t,n*=o.height/a}const a=this.filmOffset;0!==a&&(r+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,e,e-n,t,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}Bo.prototype.isPerspectiveCamera=!0;const No=90,Fo=1;class zo extends br{constructor(t,e,n){if(super(),this.type="CubeCamera",!0!==n.isWebGLCubeRenderTarget)return void console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.");this.renderTarget=n;const i=new Bo(No,Fo,t,e);i.layers=this.layers,i.up.set(0,-1,0),i.lookAt(new vi(1,0,0)),this.add(i);const r=new Bo(No,Fo,t,e);r.layers=this.layers,r.up.set(0,-1,0),r.lookAt(new vi(-1,0,0)),this.add(r);const o=new Bo(No,Fo,t,e);o.layers=this.layers,o.up.set(0,0,1),o.lookAt(new vi(0,1,0)),this.add(o);const a=new Bo(No,Fo,t,e);a.layers=this.layers,a.up.set(0,0,-1),a.lookAt(new vi(0,-1,0)),this.add(a);const s=new Bo(No,Fo,t,e);s.layers=this.layers,s.up.set(0,-1,0),s.lookAt(new vi(0,0,1)),this.add(s);const l=new Bo(No,Fo,t,e);l.layers=this.layers,l.up.set(0,-1,0),l.lookAt(new vi(0,0,-1)),this.add(l)}update(t,e){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[i,r,o,a,s,l]=this.children,c=t.xr.enabled,u=t.getRenderTarget();t.xr.enabled=!1;const h=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0),t.render(e,i),t.setRenderTarget(n,1),t.render(e,r),t.setRenderTarget(n,2),t.render(e,o),t.setRenderTarget(n,3),t.render(e,a),t.setRenderTarget(n,4),t.render(e,s),n.texture.generateMipmaps=h,t.setRenderTarget(n,5),t.render(e,l),t.setRenderTarget(u),t.xr.enabled=c}}class Vo extends ui{constructor(t,e,n,i,r,o,a,s,l,c){t=void 0!==t?t:[],e=void 0!==e?e:ot,super(t,e,n,i,r,o,a,s,l,c),this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}Vo.prototype.isCubeTexture=!0;class Go extends pi{constructor(t,e,n){Number.isInteger(e)&&(console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"),e=n),super(t,t,e),e=e||{},this.texture=new Vo(void 0,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:bt,this.texture._needsFlipEnvMap=!1}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.format=Nt,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new Eo(5,5,5),r=new Do({name:"CubemapFromEquirect",uniforms:To(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:g,blending:b});r.uniforms.tEquirect.value=e;const o=new So(i,r),a=e.minFilter;e.minFilter===_t&&(e.minFilter=bt);const s=new zo(1,10,this);return s.update(t,o),e.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(t,e,n,i){const r=t.getRenderTarget();for(let o=0;o<6;o++)t.setRenderTarget(this,o),t.clear(e,n,i);t.setRenderTarget(r)}}Go.prototype.isWebGLCubeRenderTarget=!0;const Ho=new vi,Wo=new vi,Uo=new ni;class Zo{constructor(t=new vi(1,0,0),e=0){this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,i){return this.normal.set(t,e,n),this.constant=i,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){const i=Ho.subVectors(n,e).cross(Wo.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(i,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)}intersectLine(t,e){const n=t.delta(Ho),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const r=-(t.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:e.copy(n).multiplyScalar(r).add(t.start)}intersectsLine(t){const e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const n=e||Uo.getNormalMatrix(t),i=this.coplanarPoint(Ho).applyMatrix4(t),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return(new this.constructor).copy(this)}}Zo.prototype.isPlane=!0;const Yo=new Fi,Xo=new vi;class qo{constructor(t=new Zo,e=new Zo,n=new Zo,i=new Zo,r=new Zo,o=new Zo){this.planes=[t,e,n,i,r,o]}set(t,e,n,i,r,o){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(o),this}copy(t){const e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t){const e=this.planes,n=t.elements,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7],h=n[8],d=n[9],p=n[10],f=n[11],g=n[12],m=n[13],v=n[14],y=n[15];return e[0].setComponents(a-i,u-s,f-h,y-g).normalize(),e[1].setComponents(a+i,u+s,f+h,y+g).normalize(),e[2].setComponents(a+r,u+l,f+d,y+m).normalize(),e[3].setComponents(a-r,u-l,f-d,y-m).normalize(),e[4].setComponents(a-o,u-c,f-p,y-v).normalize(),e[5].setComponents(a+o,u+c,f+p,y+v).normalize(),this}intersectsObject(t){const e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),Yo.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(Yo)}intersectsSprite(t){return Yo.center.set(0,0,0),Yo.radius=.7071067811865476,Yo.applyMatrix4(t.matrixWorld),this.intersectsSphere(Yo)}intersectsSphere(t){const e=this.planes,n=t.center,i=-t.radius;for(let r=0;r<6;r++){const t=e[r].distanceToPoint(n);if(t<i)return!1}return!0}intersectsBox(t){const e=this.planes;for(let n=0;n<6;n++){const i=e[n];if(Xo.x=i.normal.x>0?t.max.x:t.min.x,Xo.y=i.normal.y>0?t.max.y:t.min.y,Xo.z=i.normal.z>0?t.max.z:t.min.z,i.distanceToPoint(Xo)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Ko(){let t=null,e=!1,n=null,i=null;function r(e,o){n(e,o),i=t.requestAnimationFrame(r)}return{start:function(){!0!==e&&null!==n&&(i=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function Qo(t,e){const n=e.isWebGL2,i=new WeakMap;function r(e,i){const r=e.array,o=e.usage,a=t.createBuffer();t.bindBuffer(i,a),t.bufferData(i,r,o),e.onUploadCallback();let s=5126;return r instanceof Float32Array?s=5126:r instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):r instanceof Uint16Array?e.isFloat16BufferAttribute?n?s=5131:console.warn("THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2."):s=5123:r instanceof Int16Array?s=5122:r instanceof Uint32Array?s=5125:r instanceof Int32Array?s=5124:r instanceof Int8Array?s=5120:r instanceof Uint8Array?s=5121:r instanceof Uint8ClampedArray&&(s=5121),{buffer:a,type:s,bytesPerElement:r.BYTES_PER_ELEMENT,version:e.version}}function o(e,i,r){const o=i.array,a=i.updateRange;t.bindBuffer(r,e),-1===a.count?t.bufferSubData(r,0,o):(n?t.bufferSubData(r,a.offset*o.BYTES_PER_ELEMENT,o,a.offset,a.count):t.bufferSubData(r,a.offset*o.BYTES_PER_ELEMENT,o.subarray(a.offset,a.offset+a.count)),a.count=-1)}function a(t){return t.isInterleavedBufferAttribute&&(t=t.data),i.get(t)}function s(e){e.isInterleavedBufferAttribute&&(e=e.data);const n=i.get(e);n&&(t.deleteBuffer(n.buffer),i.delete(e))}function l(t,e){if(t.isGLBufferAttribute){const e=i.get(t);return void((!e||e.version<t.version)&&i.set(t,{buffer:t.buffer,type:t.type,bytesPerElement:t.elementSize,version:t.version}))}t.isInterleavedBufferAttribute&&(t=t.data);const n=i.get(t);void 0===n?i.set(t,r(t,e)):n.version<t.version&&(o(n.buffer,t,e),n.version=t.version)}return{get:a,remove:s,update:l}}class Jo extends so{constructor(t=1,e=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i};const r=t/2,o=e/2,a=Math.floor(n),s=Math.floor(i),l=a+1,c=s+1,u=t/a,h=e/s,d=[],p=[],f=[],g=[];for(let m=0;m<c;m++){const t=m*h-o;for(let e=0;e<l;e++){const n=e*u-r;p.push(n,-t,0),f.push(0,0,1),g.push(e/a),g.push(1-m/s)}}for(let m=0;m<s;m++)for(let t=0;t<a;t++){const e=t+l*m,n=t+l*(m+1),i=t+1+l*(m+1),r=t+1+l*m;d.push(e,n,r),d.push(n,i,r)}this.setIndex(d),this.setAttribute("position",new Jr(p,3)),this.setAttribute("normal",new Jr(f,3)),this.setAttribute("uv",new Jr(g,2))}static fromJSON(t){return new Jo(t.width,t.height,t.widthSegments,t.heightSegments)}}var $o="#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",ta="#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",ea="#ifdef USE_ALPHATEST\n\tif ( diffuseColor.a < alphaTest ) discard;\n#endif",na="#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",ia="#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",ra="#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",oa="vec3 transformed = vec3( position );",aa="vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",sa="vec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 f0, const in float f90, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif",la="#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",ca="#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",ua="#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",ha="#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",da="#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",pa="#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",fa="#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",ga="#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",ma="#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",va="#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}",ya="#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 ) + 0.5;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\treturn texture2D( envMap, uv ).rgb;\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",ba="vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",xa="#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",wa="#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif",_a="#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",Ca="#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",Aa="gl_FragColor = linearToOutputTexel( gl_FragColor );",Ia="vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",Sa="#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t\tenvColor = envMapTexelToLinear( envColor );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",Ma="#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",ka="#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",Ea="#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",Ta="#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",Oa="#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",Pa="#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",ja="#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",La="#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",Da="#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}",Ra="#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tlightMapIrradiance *= PI;\n\t#endif\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",Ba="#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",Na="vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry.normal );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry.normal );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointLightInfo( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotLightInfo( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalLightInfo( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry.normal );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif",Fa="uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#else\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",za="#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec;\n\t\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\t\treflectVec = reflect( - viewDir, normal );\n\t\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\t#else\n\t\t\t\treflectVec = refract( - viewDir, normal, refractionRatio );\n\t\t\t#endif\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n#endif",Va="ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",Ga="varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)",Ha="BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",Wa="varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)",Ua="PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\t#ifdef SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULARINTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;\n\t\t#endif\n\t\t#ifdef USE_SPECULARCOLORMAP\n\t\t\tspecularColorFactor *= specularColorMapTexelToLinear( texture2D( specularColorMap, vUv ) ).rgb;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( ior - 1.0 ) / ( ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tmaterial.sheenColor *= sheenColorMapTexelToLinear( texture2D( sheenColorMap, vUv ) ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;\n\t#endif\n#endif",Za="struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\tvec3 FssEss = specularColor * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",Ya="\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",Xa="#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",qa="#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",Ka="#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",Qa="#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",Ja="#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",$a="#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",ts="#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif",es="#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",ns="#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",is="#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",rs="float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",os="#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",as="#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] > 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1, 2 ) * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",ss="#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform vec2 morphTargetsTextureSize;\n\t\tvec3 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset, const in int stride ) {\n\t\t\tfloat texelIndex = float( vertexIndex * stride + offset );\n\t\t\tfloat y = floor( texelIndex / morphTargetsTextureSize.x );\n\t\t\tfloat x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tvec3 morphUV = vec3( ( x + 0.5 ) / morphTargetsTextureSize.x, y / morphTargetsTextureSize.y, morphTargetIndex );\n\t\t\treturn texture( morphTargetsTexture, morphUV ).xyz;\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",ls="#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\t#ifndef USE_MORPHNORMALS\n\t\t\t\tif ( morphTargetInfluences[ i ] > 0.0 ) transformed += getMorph( gl_VertexID, i, 0, 1 ) * morphTargetInfluences[ i ];\n\t\t\t#else\n\t\t\t\tif ( morphTargetInfluences[ i ] > 0.0 ) transformed += getMorph( gl_VertexID, i, 0, 2 ) * morphTargetInfluences[ i ];\n\t\t\t#endif\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",cs="float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;",us="#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",hs="#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",ds="#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",ps="#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",fs="#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif",gs="#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",ms="#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif",vs="#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif",ys="#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",bs="vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}",xs="#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",ws="vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",_s="#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",Cs="#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",As="float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",Is="#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",Ss="#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t  f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",Ms="#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",ks="#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif",Es="float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",Ts="#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",Os="#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif",Ps="#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",js="#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",Ls="float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",Ds="#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",Rs="#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",Bs="#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3(  1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108,  1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605,  1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",Ns="#ifdef USE_TRANSMISSION\n\tfloat transmissionAlpha = 1.0;\n\tfloat transmissionFactor = transmission;\n\tfloat thicknessFactor = thickness;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\ttransmissionFactor *= texture2D( transmissionMap, vUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tthicknessFactor *= texture2D( thicknessMap, vUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, roughnessFactor, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,\n\t\tattenuationColor, attenuationDistance );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor );\n\ttransmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor );\n#endif",Fs="#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tvec3 getVolumeTransmissionRay( vec3 n, vec3 v, float thickness, float ior, mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( float roughness, float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( vec2 fragCoord, float roughness, float ior ) {\n\t\tfloat framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\treturn texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#else\n\t\t\treturn texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n\t\t#endif\n\t}\n\tvec3 applyVolumeAttenuation( vec3 radiance, float transmissionDistance, vec3 attenuationColor, float attenuationDistance ) {\n\t\tif ( attenuationDistance == 0.0 ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( vec3 n, vec3 v, float roughness, vec3 diffuseColor, vec3 specularColor, float specularF90,\n\t\tvec3 position, mat4 modelMatrix, mat4 viewMatrix, mat4 projMatrix, float ior, float thickness,\n\t\tvec3 attenuationColor, float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",zs="#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",Vs="#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",Gs="#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",Hs="#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",Ws="#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",Us="#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",Zs="#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif";const Ys="varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",Xs="uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",qs="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",Ks="#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",Qs="#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",Js="#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",$s="#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",tl="#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",el="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",nl="uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",il="uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",rl="uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",ol="#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",al="uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",sl="#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",ll="uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",cl="#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",ul="#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",hl="#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",dl="#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}",pl="#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",fl="#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <cube_uv_reflection_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",gl="#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",ml="#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULARINTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n\t#ifdef USE_SPECULARCOLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEENCOLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEENROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",vl="#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",yl="#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",bl="uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",xl="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",wl="#include <common>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",_l="uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",Cl="uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",Al="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <output_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",Il={alphamap_fragment:$o,alphamap_pars_fragment:ta,alphatest_fragment:ea,alphatest_pars_fragment:na,aomap_fragment:ia,aomap_pars_fragment:ra,begin_vertex:oa,beginnormal_vertex:aa,bsdfs:sa,bumpmap_pars_fragment:la,clipping_planes_fragment:ca,clipping_planes_pars_fragment:ua,clipping_planes_pars_vertex:ha,clipping_planes_vertex:da,color_fragment:pa,color_pars_fragment:fa,color_pars_vertex:ga,color_vertex:ma,common:va,cube_uv_reflection_fragment:ya,defaultnormal_vertex:ba,displacementmap_pars_vertex:xa,displacementmap_vertex:wa,emissivemap_fragment:_a,emissivemap_pars_fragment:Ca,encodings_fragment:Aa,encodings_pars_fragment:Ia,envmap_fragment:Sa,envmap_common_pars_fragment:Ma,envmap_pars_fragment:ka,envmap_pars_vertex:Ea,envmap_physical_pars_fragment:za,envmap_vertex:Ta,fog_vertex:Oa,fog_pars_vertex:Pa,fog_fragment:ja,fog_pars_fragment:La,gradientmap_pars_fragment:Da,lightmap_fragment:Ra,lightmap_pars_fragment:Ba,lights_lambert_vertex:Na,lights_pars_begin:Fa,lights_toon_fragment:Va,lights_toon_pars_fragment:Ga,lights_phong_fragment:Ha,lights_phong_pars_fragment:Wa,lights_physical_fragment:Ua,lights_physical_pars_fragment:Za,lights_fragment_begin:Ya,lights_fragment_maps:Xa,lights_fragment_end:qa,logdepthbuf_fragment:Ka,logdepthbuf_pars_fragment:Qa,logdepthbuf_pars_vertex:Ja,logdepthbuf_vertex:$a,map_fragment:ts,map_pars_fragment:es,map_particle_fragment:ns,map_particle_pars_fragment:is,metalnessmap_fragment:rs,metalnessmap_pars_fragment:os,morphnormal_vertex:as,morphtarget_pars_vertex:ss,morphtarget_vertex:ls,normal_fragment_begin:cs,normal_fragment_maps:us,normal_pars_fragment:hs,normal_pars_vertex:ds,normal_vertex:ps,normalmap_pars_fragment:fs,clearcoat_normal_fragment_begin:gs,clearcoat_normal_fragment_maps:ms,clearcoat_pars_fragment:vs,output_fragment:ys,packing:bs,premultiplied_alpha_fragment:xs,project_vertex:ws,dithering_fragment:_s,dithering_pars_fragment:Cs,roughnessmap_fragment:As,roughnessmap_pars_fragment:Is,shadowmap_pars_fragment:Ss,shadowmap_pars_vertex:Ms,shadowmap_vertex:ks,shadowmask_pars_fragment:Es,skinbase_vertex:Ts,skinning_pars_vertex:Os,skinning_vertex:Ps,skinnormal_vertex:js,specularmap_fragment:Ls,specularmap_pars_fragment:Ds,tonemapping_fragment:Rs,tonemapping_pars_fragment:Bs,transmission_fragment:Ns,transmission_pars_fragment:Fs,uv_pars_fragment:zs,uv_pars_vertex:Vs,uv_vertex:Gs,uv2_pars_fragment:Hs,uv2_pars_vertex:Ws,uv2_vertex:Us,worldpos_vertex:Zs,background_vert:Ys,background_frag:Xs,cube_vert:qs,cube_frag:Ks,depth_vert:Qs,depth_frag:Js,distanceRGBA_vert:$s,distanceRGBA_frag:tl,equirect_vert:el,equirect_frag:nl,linedashed_vert:il,linedashed_frag:rl,meshbasic_vert:ol,meshbasic_frag:al,meshlambert_vert:sl,meshlambert_frag:ll,meshmatcap_vert:cl,meshmatcap_frag:ul,meshnormal_vert:hl,meshnormal_frag:dl,meshphong_vert:pl,meshphong_frag:fl,meshphysical_vert:gl,meshphysical_frag:ml,meshtoon_vert:vl,meshtoon_frag:yl,points_vert:bl,points_frag:xl,shadow_vert:wl,shadow_frag:_l,sprite_vert:Cl,sprite_frag:Al},Sl={common:{diffuse:{value:new Fr(16777215)},opacity:{value:1},map:{value:null},uvTransform:{value:new ni},uv2Transform:{value:new ni},alphaMap:{value:null},alphaTest:{value:0}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1}},emissivemap:{emissiveMap:{value:null}},bumpmap:{bumpMap:{value:null},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalScale:{value:new ei(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Fr(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotShadowMap:{value:[]},spotShadowMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Fr(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new ni}},sprite:{diffuse:{value:new Fr(16777215)},opacity:{value:1},center:{value:new ei(.5,.5)},rotation:{value:0},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new ni}}},Ml={basic:{uniforms:Oo([Sl.common,Sl.specularmap,Sl.envmap,Sl.aomap,Sl.lightmap,Sl.fog]),vertexShader:Il.meshbasic_vert,fragmentShader:Il.meshbasic_frag},lambert:{uniforms:Oo([Sl.common,Sl.specularmap,Sl.envmap,Sl.aomap,Sl.lightmap,Sl.emissivemap,Sl.fog,Sl.lights,{emissive:{value:new Fr(0)}}]),vertexShader:Il.meshlambert_vert,fragmentShader:Il.meshlambert_frag},phong:{uniforms:Oo([Sl.common,Sl.specularmap,Sl.envmap,Sl.aomap,Sl.lightmap,Sl.emissivemap,Sl.bumpmap,Sl.normalmap,Sl.displacementmap,Sl.fog,Sl.lights,{emissive:{value:new Fr(0)},specular:{value:new Fr(1118481)},shininess:{value:30}}]),vertexShader:Il.meshphong_vert,fragmentShader:Il.meshphong_frag},standard:{uniforms:Oo([Sl.common,Sl.envmap,Sl.aomap,Sl.lightmap,Sl.emissivemap,Sl.bumpmap,Sl.normalmap,Sl.displacementmap,Sl.roughnessmap,Sl.metalnessmap,Sl.fog,Sl.lights,{emissive:{value:new Fr(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Il.meshphysical_vert,fragmentShader:Il.meshphysical_frag},toon:{uniforms:Oo([Sl.common,Sl.aomap,Sl.lightmap,Sl.emissivemap,Sl.bumpmap,Sl.normalmap,Sl.displacementmap,Sl.gradientmap,Sl.fog,Sl.lights,{emissive:{value:new Fr(0)}}]),vertexShader:Il.meshtoon_vert,fragmentShader:Il.meshtoon_frag},matcap:{uniforms:Oo([Sl.common,Sl.bumpmap,Sl.normalmap,Sl.displacementmap,Sl.fog,{matcap:{value:null}}]),vertexShader:Il.meshmatcap_vert,fragmentShader:Il.meshmatcap_frag},points:{uniforms:Oo([Sl.points,Sl.fog]),vertexShader:Il.points_vert,fragmentShader:Il.points_frag},dashed:{uniforms:Oo([Sl.common,Sl.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Il.linedashed_vert,fragmentShader:Il.linedashed_frag},depth:{uniforms:Oo([Sl.common,Sl.displacementmap]),vertexShader:Il.depth_vert,fragmentShader:Il.depth_frag},normal:{uniforms:Oo([Sl.common,Sl.bumpmap,Sl.normalmap,Sl.displacementmap,{opacity:{value:1}}]),vertexShader:Il.meshnormal_vert,fragmentShader:Il.meshnormal_frag},sprite:{uniforms:Oo([Sl.sprite,Sl.fog]),vertexShader:Il.sprite_vert,fragmentShader:Il.sprite_frag},background:{uniforms:{uvTransform:{value:new ni},t2D:{value:null}},vertexShader:Il.background_vert,fragmentShader:Il.background_frag},cube:{uniforms:Oo([Sl.envmap,{opacity:{value:1}}]),vertexShader:Il.cube_vert,fragmentShader:Il.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Il.equirect_vert,fragmentShader:Il.equirect_frag},distanceRGBA:{uniforms:Oo([Sl.common,Sl.displacementmap,{referencePosition:{value:new vi},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Il.distanceRGBA_vert,fragmentShader:Il.distanceRGBA_frag},shadow:{uniforms:Oo([Sl.lights,Sl.fog,{color:{value:new Fr(0)},opacity:{value:1}}]),vertexShader:Il.shadow_vert,fragmentShader:Il.shadow_frag}};function kl(t,e,n,i,r){const o=new Fr(0);let a,s,l=0,c=null,u=0,h=null;function d(n,r){let d=!1,m=!0===r.isScene?r.background:null;m&&m.isTexture&&(m=e.get(m));const v=t.xr,y=v.getSession&&v.getSession();y&&"additive"===y.environmentBlendMode&&(m=null),null===m?p(o,l):m&&m.isColor&&(p(m,1),d=!0),(t.autoClear||d)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),m&&(m.isCubeTexture||m.mapping===ct)?(void 0===s&&(s=new So(new Eo(1,1,1),new Do({name:"BackgroundCubeMaterial",uniforms:To(Ml.cube.uniforms),vertexShader:Ml.cube.vertexShader,fragmentShader:Ml.cube.fragmentShader,side:g,depthTest:!1,depthWrite:!1,fog:!1})),s.geometry.deleteAttribute("normal"),s.geometry.deleteAttribute("uv"),s.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(s.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(s)),s.material.uniforms.envMap.value=m,s.material.uniforms.flipEnvMap.value=m.isCubeTexture&&!1===m.isRenderTargetTexture?-1:1,c===m&&u===m.version&&h===t.toneMapping||(s.material.needsUpdate=!0,c=m,u=m.version,h=t.toneMapping),n.unshift(s,s.geometry,s.material,0,0,null)):m&&m.isTexture&&(void 0===a&&(a=new So(new Jo(2,2),new Do({name:"BackgroundMaterial",uniforms:To(Ml.background.uniforms),vertexShader:Ml.background.vertexShader,fragmentShader:Ml.background.fragmentShader,side:f,depthTest:!1,depthWrite:!1,fog:!1})),a.geometry.deleteAttribute("normal"),Object.defineProperty(a.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(a)),a.material.uniforms.t2D.value=m,!0===m.matrixAutoUpdate&&m.updateMatrix(),a.material.uniforms.uvTransform.value.copy(m.matrix),c===m&&u===m.version&&h===t.toneMapping||(a.material.needsUpdate=!0,c=m,u=m.version,h=t.toneMapping),n.unshift(a,a.geometry,a.material,0,0,null))}function p(t,e){n.buffers.color.setClear(t.r,t.g,t.b,e,r)}return{getClearColor:function(){return o},setClearColor:function(t,e=1){o.set(t),l=e,p(o,l)},getClearAlpha:function(){return l},setClearAlpha:function(t){l=t,p(o,l)},render:d}}function El(t,e,n,i){const r=t.getParameter(34921),o=i.isWebGL2?null:e.get("OES_vertex_array_object"),a=i.isWebGL2||null!==o,s={},l=g(null);let c=l;function u(e,i,r,o,s){let l=!1;if(a){const t=f(o,r,i);c!==t&&(c=t,d(c.object)),l=m(o,s),l&&v(o,s)}else{const t=!0===i.wireframe;c.geometry===o.id&&c.program===r.id&&c.wireframe===t||(c.geometry=o.id,c.program=r.id,c.wireframe=t,l=!0)}!0===e.isInstancedMesh&&(l=!0),null!==s&&n.update(s,34963),l&&(C(e,i,r,o),null!==s&&t.bindBuffer(34963,n.get(s).buffer))}function h(){return i.isWebGL2?t.createVertexArray():o.createVertexArrayOES()}function d(e){return i.isWebGL2?t.bindVertexArray(e):o.bindVertexArrayOES(e)}function p(e){return i.isWebGL2?t.deleteVertexArray(e):o.deleteVertexArrayOES(e)}function f(t,e,n){const i=!0===n.wireframe;let r=s[t.id];void 0===r&&(r={},s[t.id]=r);let o=r[e.id];void 0===o&&(o={},r[e.id]=o);let a=o[i];return void 0===a&&(a=g(h()),o[i]=a),a}function g(t){const e=[],n=[],i=[];for(let o=0;o<r;o++)e[o]=0,n[o]=0,i[o]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:e,enabledAttributes:n,attributeDivisors:i,object:t,attributes:{},index:null}}function m(t,e){const n=c.attributes,i=t.attributes;let r=0;for(const o in i){const t=n[o],e=i[o];if(void 0===t)return!0;if(t.attribute!==e)return!0;if(t.data!==e.data)return!0;r++}return c.attributesNum!==r||c.index!==e}function v(t,e){const n={},i=t.attributes;let r=0;for(const o in i){const t=i[o],e={};e.attribute=t,t.data&&(e.data=t.data),n[o]=e,r++}c.attributes=n,c.attributesNum=r,c.index=e}function y(){const t=c.newAttributes;for(let e=0,n=t.length;e<n;e++)t[e]=0}function b(t){x(t,0)}function x(n,r){const o=c.newAttributes,a=c.enabledAttributes,s=c.attributeDivisors;if(o[n]=1,0===a[n]&&(t.enableVertexAttribArray(n),a[n]=1),s[n]!==r){const o=i.isWebGL2?t:e.get("ANGLE_instanced_arrays");o[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,r),s[n]=r}}function w(){const e=c.newAttributes,n=c.enabledAttributes;for(let i=0,r=n.length;i<r;i++)n[i]!==e[i]&&(t.disableVertexAttribArray(i),n[i]=0)}function _(e,n,r,o,a,s){!0!==i.isWebGL2||5124!==r&&5125!==r?t.vertexAttribPointer(e,n,r,o,a,s):t.vertexAttribIPointer(e,n,r,a,s)}function C(r,o,a,s){if(!1===i.isWebGL2&&(r.isInstancedMesh||s.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;y();const l=s.attributes,c=a.getAttributes(),u=o.defaultAttributeValues;for(const e in c){const i=c[e];if(i.location>=0){let o=l[e];if(void 0===o&&("instanceMatrix"===e&&r.instanceMatrix&&(o=r.instanceMatrix),"instanceColor"===e&&r.instanceColor&&(o=r.instanceColor)),void 0!==o){const e=o.normalized,a=o.itemSize,l=n.get(o);if(void 0===l)continue;const c=l.buffer,u=l.type,h=l.bytesPerElement;if(o.isInterleavedBufferAttribute){const n=o.data,l=n.stride,d=o.offset;if(n&&n.isInstancedInterleavedBuffer){for(let t=0;t<i.locationSize;t++)x(i.location+t,n.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=n.meshPerAttribute*n.count)}else for(let t=0;t<i.locationSize;t++)b(i.location+t);t.bindBuffer(34962,c);for(let t=0;t<i.locationSize;t++)_(i.location+t,a/i.locationSize,u,e,l*h,(d+a/i.locationSize*t)*h)}else{if(o.isInstancedBufferAttribute){for(let t=0;t<i.locationSize;t++)x(i.location+t,o.meshPerAttribute);!0!==r.isInstancedMesh&&void 0===s._maxInstanceCount&&(s._maxInstanceCount=o.meshPerAttribute*o.count)}else for(let t=0;t<i.locationSize;t++)b(i.location+t);t.bindBuffer(34962,c);for(let t=0;t<i.locationSize;t++)_(i.location+t,a/i.locationSize,u,e,a*h,a/i.locationSize*t*h)}}else if(void 0!==u){const n=u[e];if(void 0!==n)switch(n.length){case 2:t.vertexAttrib2fv(i.location,n);break;case 3:t.vertexAttrib3fv(i.location,n);break;case 4:t.vertexAttrib4fv(i.location,n);break;default:t.vertexAttrib1fv(i.location,n)}}}}w()}function A(){M();for(const t in s){const e=s[t];for(const t in e){const n=e[t];for(const t in n)p(n[t].object),delete n[t];delete e[t]}delete s[t]}}function I(t){if(void 0===s[t.id])return;const e=s[t.id];for(const n in e){const t=e[n];for(const e in t)p(t[e].object),delete t[e];delete e[n]}delete s[t.id]}function S(t){for(const e in s){const n=s[e];if(void 0===n[t.id])continue;const i=n[t.id];for(const t in i)p(i[t].object),delete i[t];delete n[t.id]}}function M(){k(),c!==l&&(c=l,d(c.object))}function k(){l.geometry=null,l.program=null,l.wireframe=!1}return{setup:u,reset:M,resetDefaultState:k,dispose:A,releaseStatesOfGeometry:I,releaseStatesOfProgram:S,initAttributes:y,enableAttribute:b,disableUnusedAttributes:w}}function Tl(t,e,n,i){const r=i.isWebGL2;let o;function a(t){o=t}function s(e,i){t.drawArrays(o,e,i),n.update(i,o,1)}function l(i,a,s){if(0===s)return;let l,c;if(r)l=t,c="drawArraysInstanced";else if(l=e.get("ANGLE_instanced_arrays"),c="drawArraysInstancedANGLE",null===l)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");l[c](o,i,a,s),n.update(a,o,s)}this.setMode=a,this.render=s,this.renderInstances=l}function Ol(t,e,n){let i;function r(){if(void 0!==i)return i;if(!0===e.has("EXT_texture_filter_anisotropic")){const n=e.get("EXT_texture_filter_anisotropic");i=t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function o(e){if("highp"===e){if(t.getShaderPrecisionFormat(35633,36338).precision>0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const a="undefined"!==typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext||"undefined"!==typeof WebGL2ComputeRenderingContext&&t instanceof WebGL2ComputeRenderingContext;let s=void 0!==n.precision?n.precision:"highp";const l=o(s);l!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",l,"instead."),s=l);const c=a||e.has("WEBGL_draw_buffers"),u=!0===n.logarithmicDepthBuffer,h=t.getParameter(34930),d=t.getParameter(35660),p=t.getParameter(3379),f=t.getParameter(34076),g=t.getParameter(34921),m=t.getParameter(36347),v=t.getParameter(36348),y=t.getParameter(36349),b=d>0,x=a||e.has("OES_texture_float"),w=b&&x,_=a?t.getParameter(36183):0;return{isWebGL2:a,drawBuffers:c,getMaxAnisotropy:r,getMaxPrecision:o,precision:s,logarithmicDepthBuffer:u,maxTextures:h,maxVertexTextures:d,maxTextureSize:p,maxCubemapSize:f,maxAttributes:g,maxVertexUniforms:m,maxVaryings:v,maxFragmentUniforms:y,vertexTextures:b,floatFragmentTextures:x,floatVertexTextures:w,maxSamples:_}}function Pl(t){const e=this;let n=null,i=0,r=!1,o=!1;const a=new Zo,s=new ni,l={value:null,needsUpdate:!1};function c(){l.value!==n&&(l.value=n,l.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function u(t,n,i,r){const o=null!==t?t.length:0;let c=null;if(0!==o){if(c=l.value,!0!==r||null===c){const e=i+4*o,r=n.matrixWorldInverse;s.getNormalMatrix(r),(null===c||c.length<e)&&(c=new Float32Array(e));for(let n=0,l=i;n!==o;++n,l+=4)a.copy(t[n]).applyMatrix4(r,s),a.normal.toArray(c,l),c[l+3]=a.constant}l.value=c,l.needsUpdate=!0}return e.numPlanes=o,e.numIntersection=0,c}this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(t,e,o){const a=0!==t.length||e||0!==i||r;return r=e,n=u(t,o,0),i=t.length,a},this.beginShadows=function(){o=!0,u(null)},this.endShadows=function(){o=!1,c()},this.setState=function(e,a,s){const h=e.clippingPlanes,d=e.clipIntersection,p=e.clipShadows,f=t.get(e);if(!r||null===h||0===h.length||o&&!p)o?u(null):c();else{const t=o?0:i,e=4*t;let r=f.clippingState||null;l.value=r,r=u(h,a,e,s);for(let i=0;i!==e;++i)r[i]=n[i];f.clippingState=r,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function jl(t){let e=new WeakMap;function n(t,e){return e===st?t.mapping=ot:e===lt&&(t.mapping=at),t}function i(i){if(i&&i.isTexture&&!1===i.isRenderTargetTexture){const o=i.mapping;if(o===st||o===lt){if(e.has(i)){const t=e.get(i).texture;return n(t,i.mapping)}{const o=i.image;if(o&&o.height>0){const a=t.getRenderTarget(),s=new Go(o.height/2);return s.fromEquirectangularTexture(t,i),e.set(i,s),t.setRenderTarget(a),i.addEventListener("dispose",r),n(s.texture,i.mapping)}return null}}}return i}function r(t){const n=t.target;n.removeEventListener("dispose",r);const i=e.get(n);void 0!==i&&(e.delete(n),i.dispose())}function o(){e=new WeakMap}return{get:i,dispose:o}}Ml.physical={uniforms:Oo([Ml.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new ei(1,1)},clearcoatNormalMap:{value:null},sheen:{value:0},sheenColor:{value:new Fr(0)},sheenColorMap:{value:null},sheenRoughness:{value:0},sheenRoughnessMap:{value:null},transmission:{value:0},transmissionMap:{value:null},transmissionSamplerSize:{value:new ei},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},attenuationDistance:{value:0},attenuationColor:{value:new Fr(0)},specularIntensity:{value:0},specularIntensityMap:{value:null},specularColor:{value:new Fr(1,1,1)},specularColorMap:{value:null}}]),vertexShader:Il.meshphysical_vert,fragmentShader:Il.meshphysical_frag};class Ll extends Ro{constructor(t=-1,e=1,n=1,i=-1,r=.1,o=2e3){super(),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=i,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,n,i,r,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-t,o=n+t,a=i+e,s=i-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=t*this.view.offsetX,o=r+t*this.view.width,a-=e*this.view.offsetY,s=a-e*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,s,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}Ll.prototype.isOrthographicCamera=!0;class Dl extends Do{constructor(t){super(t),this.type="RawShaderMaterial"}}Dl.prototype.isRawShaderMaterial=!0;const Rl=4,Bl=8,Nl=Math.pow(2,Bl),Fl=[.125,.215,.35,.446,.526,.582],zl=Bl-Rl+1+Fl.length,Vl=20,Gl={[qe]:0,[Ke]:1},Hl=new Ll,{_lodPlanes:Wl,_sizeLods:Ul,_sigmas:Zl}=$l(),Yl=new Fr;let Xl=null;const ql=(1+Math.sqrt(5))/2,Kl=1/ql,Ql=[new vi(1,1,1),new vi(-1,1,1),new vi(1,1,-1),new vi(-1,1,-1),new vi(0,ql,Kl),new vi(0,ql,-Kl),new vi(Kl,0,ql),new vi(-Kl,0,ql),new vi(ql,Kl,0),new vi(-ql,Kl,0)];class Jl{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._blurMaterial=nc(Vl),this._equirectShader=null,this._cubemapShader=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,n=.1,i=100){Xl=this._renderer.getRenderTarget();const r=this._allocateTargets();return this._sceneToCubeUV(t,n,i,r),e>0&&this._blur(r,0,0,e),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(t){return this._fromTexture(t)}fromCubemap(t){return this._fromTexture(t)}compileCubemapShader(){null===this._cubemapShader&&(this._cubemapShader=rc(),this._compileMaterial(this._cubemapShader))}compileEquirectangularShader(){null===this._equirectShader&&(this._equirectShader=ic(),this._compileMaterial(this._equirectShader))}dispose(){this._blurMaterial.dispose(),null!==this._cubemapShader&&this._cubemapShader.dispose(),null!==this._equirectShader&&this._equirectShader.dispose();for(let t=0;t<Wl.length;t++)Wl[t].dispose()}_cleanup(t){this._pingPongRenderTarget.dispose(),this._renderer.setRenderTarget(Xl),t.scissorTest=!1,ec(t,0,0,t.width,t.height)}_fromTexture(t){Xl=this._renderer.getRenderTarget();const e=this._allocateTargets(t);return this._textureToCubeUV(t,e),this._applyPMREM(e),this._cleanup(e),e}_allocateTargets(t){const e={magFilter:bt,minFilter:bt,generateMipmaps:!1,type:Ot,format:Nt,encoding:qe,depthBuffer:!1},n=tc(e);return n.depthBuffer=!t,this._pingPongRenderTarget=tc(e),n}_compileMaterial(t){const e=new So(Wl[0],t);this._renderer.compile(e,Hl)}_sceneToCubeUV(t,e,n,i){const r=90,o=1,a=new Bo(r,o,e,n),s=[1,-1,1,1,1,1],l=[1,1,1,-1,-1,-1],c=this._renderer,u=c.autoClear,h=c.toneMapping;c.getClearColor(Yl),c.toneMapping=J,c.autoClear=!1;const d=new zr({name:"PMREM.Background",side:g,depthWrite:!1,depthTest:!1}),p=new So(new Eo,d);let f=!1;const m=t.background;m?m.isColor&&(d.color.copy(m),t.background=null,f=!0):(d.color.copy(Yl),f=!0);for(let g=0;g<6;g++){const e=g%3;0==e?(a.up.set(0,s[g],0),a.lookAt(l[g],0,0)):1==e?(a.up.set(0,0,s[g]),a.lookAt(0,l[g],0)):(a.up.set(0,s[g],0),a.lookAt(0,0,l[g])),ec(i,e*Nl,g>2?Nl:0,Nl,Nl),c.setRenderTarget(i),f&&c.render(p,a),c.render(t,a)}p.geometry.dispose(),p.material.dispose(),c.toneMapping=h,c.autoClear=u,t.background=m}_setEncoding(t,e){!0===this._renderer.capabilities.isWebGL2&&e.format===Nt&&e.type===At&&e.encoding===Ke?t.value=Gl[qe]:t.value=Gl[e.encoding]}_textureToCubeUV(t,e){const n=this._renderer,i=t.mapping===ot||t.mapping===at;i?null==this._cubemapShader&&(this._cubemapShader=rc()):null==this._equirectShader&&(this._equirectShader=ic());const r=i?this._cubemapShader:this._equirectShader,o=new So(Wl[0],r),a=r.uniforms;a["envMap"].value=t,i||a["texelSize"].value.set(1/t.image.width,1/t.image.height),this._setEncoding(a["inputEncoding"],t),ec(e,0,0,3*Nl,2*Nl),n.setRenderTarget(e),n.render(o,Hl)}_applyPMREM(t){const e=this._renderer,n=e.autoClear;e.autoClear=!1;for(let i=1;i<zl;i++){const e=Math.sqrt(Zl[i]*Zl[i]-Zl[i-1]*Zl[i-1]),n=Ql[(i-1)%Ql.length];this._blur(t,i-1,i,e,n)}e.autoClear=n}_blur(t,e,n,i,r){const o=this._pingPongRenderTarget;this._halfBlur(t,o,e,n,i,"latitudinal",r),this._halfBlur(o,t,n,n,i,"longitudinal",r)}_halfBlur(t,e,n,i,r,o,a){const s=this._renderer,l=this._blurMaterial;"latitudinal"!==o&&"longitudinal"!==o&&console.error("blur direction must be either latitudinal or longitudinal!");const c=3,u=new So(Wl[i],l),h=l.uniforms,d=Ul[n]-1,p=isFinite(r)?Math.PI/(2*d):2*Math.PI/(2*Vl-1),f=r/p,g=isFinite(r)?1+Math.floor(c*f):Vl;g>Vl&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${g} samples when the maximum is set to ${Vl}`);const m=[];let v=0;for(let w=0;w<Vl;++w){const t=w/f,e=Math.exp(-t*t/2);m.push(e),0==w?v+=e:w<g&&(v+=2*e)}for(let w=0;w<m.length;w++)m[w]=m[w]/v;h["envMap"].value=t.texture,h["samples"].value=g,h["weights"].value=m,h["latitudinal"].value="latitudinal"===o,a&&(h["poleAxis"].value=a),h["dTheta"].value=p,h["mipInt"].value=Bl-n;const y=Ul[i],b=3*Math.max(0,Nl-2*y),x=(0===i?0:2*Nl)+2*y*(i>Bl-Rl?i-Bl+Rl:0);ec(e,b,x,3*y,2*y),s.setRenderTarget(e),s.render(u,Hl)}}function $l(){const t=[],e=[],n=[];let i=Bl;for(let r=0;r<zl;r++){const o=Math.pow(2,i);e.push(o);let a=1/o;r>Bl-Rl?a=Fl[r-Bl+Rl-1]:0==r&&(a=0),n.push(a);const s=1/(o-1),l=-s/2,c=1+s/2,u=[l,l,c,l,c,c,l,l,c,c,l,c],h=6,d=6,p=3,f=2,g=1,m=new Float32Array(p*d*h),v=new Float32Array(f*d*h),y=new Float32Array(g*d*h);for(let t=0;t<h;t++){const e=t%3*2/3-1,n=t>2?0:-1,i=[e,n,0,e+2/3,n,0,e+2/3,n+1,0,e,n,0,e+2/3,n+1,0,e,n+1,0];m.set(i,p*d*t),v.set(u,f*d*t);const r=[t,t,t,t,t,t];y.set(r,g*d*t)}const b=new so;b.setAttribute("position",new Hr(m,p)),b.setAttribute("uv",new Hr(v,f)),b.setAttribute("faceIndex",new Hr(y,g)),t.push(b),i>Rl&&i--}return{_lodPlanes:t,_sizeLods:e,_sigmas:n}}function tc(t){const e=new pi(3*Nl,3*Nl,t);return e.texture.mapping=ct,e.texture.name="PMREM.cubeUv",e.scissorTest=!0,e}function ec(t,e,n,i,r){t.viewport.set(e,n,i,r),t.scissor.set(e,n,i,r)}function nc(t){const e=new Float32Array(t),n=new vi(0,1,0),i=new Dl({name:"SphericalGaussianBlur",defines:{n:t},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:e},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:n}},vertexShader:oc(),fragmentShader:`\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t${ac()}\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t`,blending:b,depthTest:!1,depthWrite:!1});return i}function ic(){const t=new ei(1,1),e=new Dl({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:t},inputEncoding:{value:Gl[qe]}},vertexShader:oc(),fragmentShader:`\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform vec2 texelSize;\n\n\t\t\t${ac()}\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tvec2 f = fract( uv / texelSize - 0.5 );\n\t\t\t\tuv -= f * texelSize;\n\t\t\t\tvec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x += texelSize.x;\n\t\t\t\tvec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.y += texelSize.y;\n\t\t\t\tvec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x -= texelSize.x;\n\t\t\t\tvec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\n\t\t\t\tvec3 tm = mix( tl, tr, f.x );\n\t\t\t\tvec3 bm = mix( bl, br, f.x );\n\t\t\t\tgl_FragColor.rgb = mix( tm, bm, f.y );\n\n\t\t\t}\n\t\t`,blending:b,depthTest:!1,depthWrite:!1});return e}function rc(){const t=new Dl({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},inputEncoding:{value:Gl[qe]}},vertexShader:oc(),fragmentShader:`\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\t${ac()}\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) );\n\n\t\t\t}\n\t\t`,blending:b,depthTest:!1,depthWrite:!1});return t}function oc(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function ac(){return"\n\n\t\tuniform int inputEncoding;\n\n\t\t#include <encodings_pars_fragment>\n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t"}function sc(t){let e=new WeakMap,n=null;function i(i){if(i&&i.isTexture&&!1===i.isRenderTargetTexture){const a=i.mapping,s=a===st||a===lt,l=a===ot||a===at;if(s||l){if(e.has(i))return e.get(i).texture;{const a=i.image;if(s&&a&&a.height>0||l&&a&&r(a)){const r=t.getRenderTarget();null===n&&(n=new Jl(t));const a=s?n.fromEquirectangular(i):n.fromCubemap(i);return e.set(i,a),t.setRenderTarget(r),i.addEventListener("dispose",o),a.texture}return null}}}return i}function r(t){let e=0;const n=6;for(let i=0;i<n;i++)void 0!==t[i]&&e++;return e===n}function o(t){const n=t.target;n.removeEventListener("dispose",o);const i=e.get(n);void 0!==i&&(e.delete(n),i.dispose())}function a(){e=new WeakMap,null!==n&&(n.dispose(),n=null)}return{get:i,dispose:a}}function lc(t){const e={};function n(n){if(void 0!==e[n])return e[n];let i;switch(n){case"WEBGL_depth_texture":i=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=t.getExtension(n)}return e[n]=i,i}return{has:function(t){return null!==n(t)},init:function(t){t.isWebGL2?n("EXT_color_buffer_float"):(n("WEBGL_depth_texture"),n("OES_texture_float"),n("OES_texture_half_float"),n("OES_texture_half_float_linear"),n("OES_standard_derivatives"),n("OES_element_index_uint"),n("OES_vertex_array_object"),n("ANGLE_instanced_arrays")),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture")},get:function(t){const e=n(t);return null===e&&console.warn("THREE.WebGLRenderer: "+t+" extension not supported."),e}}}function cc(t,e,n,i){const r={},o=new WeakMap;function a(t){const s=t.target;null!==s.index&&e.remove(s.index);for(const n in s.attributes)e.remove(s.attributes[n]);s.removeEventListener("dispose",a),delete r[s.id];const l=o.get(s);l&&(e.remove(l),o.delete(s)),i.releaseStatesOfGeometry(s),!0===s.isInstancedBufferGeometry&&delete s._maxInstanceCount,n.memory.geometries--}function s(t,e){return!0===r[e.id]?e:(e.addEventListener("dispose",a),r[e.id]=!0,n.memory.geometries++,e)}function l(t){const n=t.attributes;for(const r in n)e.update(n[r],34962);const i=t.morphAttributes;for(const r in i){const t=i[r];for(let n=0,i=t.length;n<i;n++)e.update(t[n],34962)}}function c(t){const n=[],i=t.index,r=t.attributes.position;let a=0;if(null!==i){const t=i.array;a=i.version;for(let e=0,i=t.length;e<i;e+=3){const i=t[e+0],r=t[e+1],o=t[e+2];n.push(i,r,r,o,o,i)}}else{const t=r.array;a=r.version;for(let e=0,i=t.length/3-1;e<i;e+=3){const t=e+0,i=e+1,r=e+2;n.push(t,i,i,r,r,t)}}const s=new(ii(n)>65535?Kr:Xr)(n,1);s.version=a;const l=o.get(t);l&&e.remove(l),o.set(t,s)}function u(t){const e=o.get(t);if(e){const n=t.index;null!==n&&e.version<n.version&&c(t)}else c(t);return o.get(t)}return{get:s,update:l,getWireframeAttribute:u}}function uc(t,e,n,i){const r=i.isWebGL2;let o,a,s;function l(t){o=t}function c(t){a=t.type,s=t.bytesPerElement}function u(e,i){t.drawElements(o,i,a,e*s),n.update(i,o,1)}function h(i,l,c){if(0===c)return;let u,h;if(r)u=t,h="drawElementsInstanced";else if(u=e.get("ANGLE_instanced_arrays"),h="drawElementsInstancedANGLE",null===u)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[h](o,l,a,i*s,c),n.update(l,o,c)}this.setMode=l,this.setIndex=c,this.render=u,this.renderInstances=h}function hc(t){const e={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function i(t,e,i){switch(n.calls++,e){case 4:n.triangles+=i*(t/3);break;case 1:n.lines+=i*(t/2);break;case 3:n.lines+=i*(t-1);break;case 2:n.lines+=i*t;break;case 0:n.points+=i*t;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",e);break}}function r(){n.frame++,n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:e,render:n,programs:null,autoReset:!0,reset:r,update:i}}class dc extends ui{constructor(t=null,e=1,n=1,i=1){super(null),this.image={data:t,width:e,height:n,depth:i},this.magFilter=ft,this.minFilter=ft,this.wrapR=dt,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}function pc(t,e){return t[0]-e[0]}function fc(t,e){return Math.abs(e[1])-Math.abs(t[1])}function gc(t,e){let n=1;const i=e.isInterleavedBufferAttribute?e.data.array:e.array;i instanceof Int8Array?n=127:i instanceof Int16Array?n=32767:i instanceof Int32Array?n=2147483647:console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ",i),t.divideScalar(n)}function mc(t,e,n){const i={},r=new Float32Array(8),o=new WeakMap,a=new vi,s=[];for(let c=0;c<8;c++)s[c]=[c,0];function l(l,c,u,h){const d=l.morphTargetInfluences;if(!0===e.isWebGL2){const i=c.morphAttributes.position.length;let r=o.get(c);if(void 0===r||r.count!==i){void 0!==r&&r.texture.dispose();const t=void 0!==c.morphAttributes.normal,n=c.morphAttributes.position,s=c.morphAttributes.normal||[],l=c.attributes.position.count,u=!0===t?2:1;let h=l*u,d=1;h>e.maxTextureSize&&(d=Math.ceil(h/e.maxTextureSize),h=e.maxTextureSize);const p=new Float32Array(h*d*4*i),f=new dc(p,h,d,i);f.format=Nt,f.type=Tt,f.needsUpdate=!0;const g=4*u;for(let e=0;e<i;e++){const i=n[e],r=s[e],o=h*d*4*e;for(let e=0;e<i.count;e++){a.fromBufferAttribute(i,e),!0===i.normalized&&gc(a,i);const n=e*g;p[o+n+0]=a.x,p[o+n+1]=a.y,p[o+n+2]=a.z,p[o+n+3]=0,!0===t&&(a.fromBufferAttribute(r,e),!0===r.normalized&&gc(a,r),p[o+n+4]=a.x,p[o+n+5]=a.y,p[o+n+6]=a.z,p[o+n+7]=0)}}r={count:i,texture:f,size:new ei(h,d)},o.set(c,r)}let s=0;for(let t=0;t<d.length;t++)s+=d[t];const l=c.morphTargetsRelative?1:1-s;h.getUniforms().setValue(t,"morphTargetBaseInfluence",l),h.getUniforms().setValue(t,"morphTargetInfluences",d),h.getUniforms().setValue(t,"morphTargetsTexture",r.texture,n),h.getUniforms().setValue(t,"morphTargetsTextureSize",r.size)}else{const e=void 0===d?0:d.length;let n=i[c.id];if(void 0===n||n.length!==e){n=[];for(let t=0;t<e;t++)n[t]=[t,0];i[c.id]=n}for(let t=0;t<e;t++){const e=n[t];e[0]=t,e[1]=d[t]}n.sort(fc);for(let t=0;t<8;t++)t<e&&n[t][1]?(s[t][0]=n[t][0],s[t][1]=n[t][1]):(s[t][0]=Number.MAX_SAFE_INTEGER,s[t][1]=0);s.sort(pc);const o=c.morphAttributes.position,a=c.morphAttributes.normal;let l=0;for(let t=0;t<8;t++){const e=s[t],n=e[0],i=e[1];n!==Number.MAX_SAFE_INTEGER&&i?(o&&c.getAttribute("morphTarget"+t)!==o[n]&&c.setAttribute("morphTarget"+t,o[n]),a&&c.getAttribute("morphNormal"+t)!==a[n]&&c.setAttribute("morphNormal"+t,a[n]),r[t]=i,l+=i):(o&&!0===c.hasAttribute("morphTarget"+t)&&c.deleteAttribute("morphTarget"+t),a&&!0===c.hasAttribute("morphNormal"+t)&&c.deleteAttribute("morphNormal"+t),r[t]=0)}const u=c.morphTargetsRelative?1:1-l;h.getUniforms().setValue(t,"morphTargetBaseInfluence",u),h.getUniforms().setValue(t,"morphTargetInfluences",r)}}return{update:l}}function vc(t,e,n,i){let r=new WeakMap;function o(t){const o=i.render.frame,a=t.geometry,l=e.get(t,a);return r.get(l)!==o&&(e.update(l),r.set(l,o)),t.isInstancedMesh&&(!1===t.hasEventListener("dispose",s)&&t.addEventListener("dispose",s),n.update(t.instanceMatrix,34962),null!==t.instanceColor&&n.update(t.instanceColor,34962)),l}function a(){r=new WeakMap}function s(t){const e=t.target;e.removeEventListener("dispose",s),n.remove(e.instanceMatrix),null!==e.instanceColor&&n.remove(e.instanceColor)}return{update:o,dispose:a}}dc.prototype.isDataTexture2DArray=!0;class yc extends ui{constructor(t=null,e=1,n=1,i=1){super(null),this.image={data:t,width:e,height:n,depth:i},this.magFilter=ft,this.minFilter=ft,this.wrapR=dt,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}yc.prototype.isDataTexture3D=!0;const bc=new ui,xc=new dc,wc=new yc,_c=new Vo,Cc=[],Ac=[],Ic=new Float32Array(16),Sc=new Float32Array(9),Mc=new Float32Array(4);function kc(t,e,n){const i=t[0];if(i<=0||i>0)return t;const r=e*n;let o=Cc[r];if(void 0===o&&(o=new Float32Array(r),Cc[r]=o),0!==e){i.toArray(o,0);for(let i=1,r=0;i!==e;++i)r+=n,t[i].toArray(o,r)}return o}function Ec(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function Tc(t,e){for(let n=0,i=e.length;n<i;n++)t[n]=e[n]}function Oc(t,e){let n=Ac[e];void 0===n&&(n=new Int32Array(e),Ac[e]=n);for(let i=0;i!==e;++i)n[i]=t.allocateTextureUnit();return n}function Pc(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function jc(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(Ec(n,e))return;t.uniform2fv(this.addr,e),Tc(n,e)}}function Lc(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(void 0!==e.r)n[0]===e.r&&n[1]===e.g&&n[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(Ec(n,e))return;t.uniform3fv(this.addr,e),Tc(n,e)}}function Dc(t,e){const n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(Ec(n,e))return;t.uniform4fv(this.addr,e),Tc(n,e)}}function Rc(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(Ec(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),Tc(n,e)}else{if(Ec(n,i))return;Mc.set(i),t.uniformMatrix2fv(this.addr,!1,Mc),Tc(n,i)}}function Bc(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(Ec(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),Tc(n,e)}else{if(Ec(n,i))return;Sc.set(i),t.uniformMatrix3fv(this.addr,!1,Sc),Tc(n,i)}}function Nc(t,e){const n=this.cache,i=e.elements;if(void 0===i){if(Ec(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),Tc(n,e)}else{if(Ec(n,i))return;Ic.set(i),t.uniformMatrix4fv(this.addr,!1,Ic),Tc(n,i)}}function Fc(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function zc(t,e){const n=this.cache;Ec(n,e)||(t.uniform2iv(this.addr,e),Tc(n,e))}function Vc(t,e){const n=this.cache;Ec(n,e)||(t.uniform3iv(this.addr,e),Tc(n,e))}function Gc(t,e){const n=this.cache;Ec(n,e)||(t.uniform4iv(this.addr,e),Tc(n,e))}function Hc(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function Wc(t,e){const n=this.cache;Ec(n,e)||(t.uniform2uiv(this.addr,e),Tc(n,e))}function Uc(t,e){const n=this.cache;Ec(n,e)||(t.uniform3uiv(this.addr,e),Tc(n,e))}function Zc(t,e){const n=this.cache;Ec(n,e)||(t.uniform4uiv(this.addr,e),Tc(n,e))}function Yc(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.safeSetTexture2D(e||bc,r)}function Xc(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(e||wc,r)}function qc(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.safeSetTextureCube(e||_c,r)}function Kc(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(e||xc,r)}function Qc(t){switch(t){case 5126:return Pc;case 35664:return jc;case 35665:return Lc;case 35666:return Dc;case 35674:return Rc;case 35675:return Bc;case 35676:return Nc;case 5124:case 35670:return Fc;case 35667:case 35671:return zc;case 35668:case 35672:return Vc;case 35669:case 35673:return Gc;case 5125:return Hc;case 36294:return Wc;case 36295:return Uc;case 36296:return Zc;case 35678:case 36198:case 36298:case 36306:case 35682:return Yc;case 35679:case 36299:case 36307:return Xc;case 35680:case 36300:case 36308:case 36293:return qc;case 36289:case 36303:case 36311:case 36292:return Kc}}function Jc(t,e){t.uniform1fv(this.addr,e)}function $c(t,e){const n=kc(e,this.size,2);t.uniform2fv(this.addr,n)}function tu(t,e){const n=kc(e,this.size,3);t.uniform3fv(this.addr,n)}function eu(t,e){const n=kc(e,this.size,4);t.uniform4fv(this.addr,n)}function nu(t,e){const n=kc(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function iu(t,e){const n=kc(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function ru(t,e){const n=kc(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function ou(t,e){t.uniform1iv(this.addr,e)}function au(t,e){t.uniform2iv(this.addr,e)}function su(t,e){t.uniform3iv(this.addr,e)}function lu(t,e){t.uniform4iv(this.addr,e)}function cu(t,e){t.uniform1uiv(this.addr,e)}function uu(t,e){t.uniform2uiv(this.addr,e)}function hu(t,e){t.uniform3uiv(this.addr,e)}function du(t,e){t.uniform4uiv(this.addr,e)}function pu(t,e,n){const i=e.length,r=Oc(n,i);t.uniform1iv(this.addr,r);for(let o=0;o!==i;++o)n.safeSetTexture2D(e[o]||bc,r[o])}function fu(t,e,n){const i=e.length,r=Oc(n,i);t.uniform1iv(this.addr,r);for(let o=0;o!==i;++o)n.setTexture3D(e[o]||wc,r[o])}function gu(t,e,n){const i=e.length,r=Oc(n,i);t.uniform1iv(this.addr,r);for(let o=0;o!==i;++o)n.safeSetTextureCube(e[o]||_c,r[o])}function mu(t,e,n){const i=e.length,r=Oc(n,i);t.uniform1iv(this.addr,r);for(let o=0;o!==i;++o)n.setTexture2DArray(e[o]||xc,r[o])}function vu(t){switch(t){case 5126:return Jc;case 35664:return $c;case 35665:return tu;case 35666:return eu;case 35674:return nu;case 35675:return iu;case 35676:return ru;case 5124:case 35670:return ou;case 35667:case 35671:return au;case 35668:case 35672:return su;case 35669:case 35673:return lu;case 5125:return cu;case 36294:return uu;case 36295:return hu;case 36296:return du;case 35678:case 36198:case 36298:case 36306:case 35682:return pu;case 35679:case 36299:case 36307:return fu;case 35680:case 36300:case 36308:case 36293:return gu;case 36289:case 36303:case 36311:case 36292:return mu}}function yu(t,e,n){this.id=t,this.addr=n,this.cache=[],this.setValue=Qc(e.type)}function bu(t,e,n){this.id=t,this.addr=n,this.cache=[],this.size=e.size,this.setValue=vu(e.type)}function xu(t){this.id=t,this.seq=[],this.map={}}bu.prototype.updateCache=function(t){const e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),Tc(e,t)},xu.prototype.setValue=function(t,e,n){const i=this.seq;for(let r=0,o=i.length;r!==o;++r){const o=i[r];o.setValue(t,e[o.id],n)}};const wu=/(\w+)(\])?(\[|\.)?/g;function _u(t,e){t.seq.push(e),t.map[e.id]=e}function Cu(t,e,n){const i=t.name,r=i.length;wu.lastIndex=0;while(1){const o=wu.exec(i),a=wu.lastIndex;let s=o[1];const l="]"===o[2],c=o[3];if(l&&(s|=0),void 0===c||"["===c&&a+2===r){_u(n,void 0===c?new yu(s,t,e):new bu(s,t,e));break}{const t=n.map;let e=t[s];void 0===e&&(e=new xu(s),_u(n,e)),n=e}}}function Au(t,e){this.seq=[],this.map={};const n=t.getProgramParameter(e,35718);for(let i=0;i<n;++i){const n=t.getActiveUniform(e,i),r=t.getUniformLocation(e,n.name);Cu(n,r,this)}}function Iu(t,e,n){const i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),i}Au.prototype.setValue=function(t,e,n,i){const r=this.map[e];void 0!==r&&r.setValue(t,n,i)},Au.prototype.setOptional=function(t,e,n){const i=e[n];void 0!==i&&this.setValue(t,n,i)},Au.upload=function(t,e,n,i){for(let r=0,o=e.length;r!==o;++r){const o=e[r],a=n[o.id];!1!==a.needsUpdate&&o.setValue(t,a.value,i)}},Au.seqWithValue=function(t,e){const n=[];for(let i=0,r=t.length;i!==r;++i){const r=t[i];r.id in e&&n.push(r)}return n};let Su=0;function Mu(t){const e=t.split("\n");for(let n=0;n<e.length;n++)e[n]=n+1+": "+e[n];return e.join("\n")}function ku(t){switch(t){case qe:return["Linear","( value )"];case Ke:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"]}}function Eu(t,e,n){const i=t.getShaderParameter(e,35713),r=t.getShaderInfoLog(e).trim();return i&&""===r?"":n.toUpperCase()+"\n\n"+r+"\n\n"+Mu(t.getShaderSource(e))}function Tu(t,e){const n=ku(e);return"vec4 "+t+"( vec4 value ) { return "+n[0]+"ToLinear"+n[1]+"; }"}function Ou(t,e){const n=ku(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Pu(t,e){let n;switch(e){case $:n="Linear";break;case tt:n="Reinhard";break;case et:n="OptimizedCineon";break;case nt:n="ACESFilmic";break;case it:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function ju(t){const e=[t.extensionDerivatives||t.envMapCubeUV||t.bumpMap||t.tangentSpaceNormalMap||t.clearcoatNormalMap||t.flatShading||"physical"===t.shaderID?"#extension GL_OES_standard_derivatives : enable":"",(t.extensionFragDepth||t.logarithmicDepthBuffer)&&t.rendererExtensionFragDepth?"#extension GL_EXT_frag_depth : enable":"",t.extensionDrawBuffers&&t.rendererExtensionDrawBuffers?"#extension GL_EXT_draw_buffers : require":"",(t.extensionShaderTextureLOD||t.envMap||t.transmission)&&t.rendererExtensionShaderTextureLod?"#extension GL_EXT_shader_texture_lod : enable":""];return e.filter(Ru).join("\n")}function Lu(t){const e=[];for(const n in t){const i=t[n];!1!==i&&e.push("#define "+n+" "+i)}return e.join("\n")}function Du(t,e){const n={},i=t.getProgramParameter(e,35721);for(let r=0;r<i;r++){const i=t.getActiveAttrib(e,r),o=i.name;let a=1;35674===i.type&&(a=2),35675===i.type&&(a=3),35676===i.type&&(a=4),n[o]={type:i.type,location:t.getAttribLocation(e,o),locationSize:a}}return n}function Ru(t){return""!==t}function Bu(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function Nu(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const Fu=/^[ \t]*#include +<([\w\d./]+)>/gm;function zu(t){return t.replace(Fu,Vu)}function Vu(t,e){const n=Il[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return zu(n)}const Gu=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Hu=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Wu(t){return t.replace(Hu,Zu).replace(Gu,Uu)}function Uu(t,e,n,i){return console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."),Zu(t,e,n,i)}function Zu(t,e,n,i){let r="";for(let o=parseInt(e);o<parseInt(n);o++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+o+" ]").replace(/UNROLLED_LOOP_INDEX/g,o);return r}function Yu(t){let e="precision "+t.precision+" float;\nprecision "+t.precision+" int;";return"highp"===t.precision?e+="\n#define HIGH_PRECISION":"mediump"===t.precision?e+="\n#define MEDIUM_PRECISION":"lowp"===t.precision&&(e+="\n#define LOW_PRECISION"),e}function Xu(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===h?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===d?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===p&&(e="SHADOWMAP_TYPE_VSM"),e}function qu(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case ot:case at:e="ENVMAP_TYPE_CUBE";break;case ct:case ut:e="ENVMAP_TYPE_CUBE_UV";break}return e}function Ku(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case at:case ut:e="ENVMAP_MODE_REFRACTION";break}return e}function Qu(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case q:e="ENVMAP_BLENDING_MULTIPLY";break;case K:e="ENVMAP_BLENDING_MIX";break;case Q:e="ENVMAP_BLENDING_ADD";break}return e}function Ju(t,e,n,i){const r=t.getContext(),o=n.defines;let a=n.vertexShader,s=n.fragmentShader;const l=Xu(n),c=qu(n),u=Ku(n),h=Qu(n),d=n.isWebGL2?"":ju(n),p=Lu(o),f=r.createProgram();let g,m,v=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(g=[p].filter(Ru).join("\n"),g.length>0&&(g+="\n"),m=[d,p].filter(Ru).join("\n"),m.length>0&&(m+="\n")):(g=[Yu(n),"#define SHADER_NAME "+n.shaderName,p,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define MAX_BONES "+n.maxBones,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.displacementMap&&n.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.useVertexTexture?"#define BONE_TEXTURE":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargets&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Ru).join("\n"),m=[d,Yu(n),"#define SHADER_NAME "+n.shaderName,p,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+h:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMap&&n.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",n.normalMap&&n.tangentSpaceNormalMap?"#define TANGENTSPACE_NORMALMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularIntensityMap?"#define USE_SPECULARINTENSITYMAP":"",n.specularColorMap?"#define USE_SPECULARCOLORMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEENCOLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEENROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs?"#define USE_UV":"",n.uvsVertexOnly?"#define UVS_VERTEX_ONLY":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+l:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"",(n.extensionShaderTextureLOD||n.envMap)&&n.rendererExtensionShaderTextureLod?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==J?"#define TONE_MAPPING":"",n.toneMapping!==J?Il["tonemapping_pars_fragment"]:"",n.toneMapping!==J?Pu("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.format===Bt?"#define OPAQUE":"",Il["encodings_pars_fragment"],n.map?Tu("mapTexelToLinear",n.mapEncoding):"",n.matcap?Tu("matcapTexelToLinear",n.matcapEncoding):"",n.envMap?Tu("envMapTexelToLinear",n.envMapEncoding):"",n.emissiveMap?Tu("emissiveMapTexelToLinear",n.emissiveMapEncoding):"",n.specularColorMap?Tu("specularColorMapTexelToLinear",n.specularColorMapEncoding):"",n.sheenColorMap?Tu("sheenColorMapTexelToLinear",n.sheenColorMapEncoding):"",n.lightMap?Tu("lightMapTexelToLinear",n.lightMapEncoding):"",Ou("linearToOutputTexel",n.outputEncoding),n.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Ru).join("\n")),a=zu(a),a=Bu(a,n),a=Nu(a,n),s=zu(s),s=Bu(s,n),s=Nu(s,n),a=Wu(a),s=Wu(s),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(v="#version 300 es\n",g=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+g,m=["#define varying in",n.glslVersion===kn?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===kn?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+m);const y=v+g+a,b=v+m+s,x=Iu(r,35633,y),w=Iu(r,35632,b);if(r.attachShader(f,x),r.attachShader(f,w),void 0!==n.index0AttributeName?r.bindAttribLocation(f,0,n.index0AttributeName):!0===n.morphTargets&&r.bindAttribLocation(f,0,"position"),r.linkProgram(f),t.debug.checkShaderErrors){const t=r.getProgramInfoLog(f).trim(),e=r.getShaderInfoLog(x).trim(),n=r.getShaderInfoLog(w).trim();let i=!0,o=!0;if(!1===r.getProgramParameter(f,35714)){i=!1;const e=Eu(r,x,"vertex"),n=Eu(r,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(f,35715)+"\n\nProgram Info Log: "+t+"\n"+e+"\n"+n)}else""!==t?console.warn("THREE.WebGLProgram: Program Info Log:",t):""!==e&&""!==n||(o=!1);o&&(this.diagnostics={runnable:i,programLog:t,vertexShader:{log:e,prefix:g},fragmentShader:{log:n,prefix:m}})}let _,C;return r.deleteShader(x),r.deleteShader(w),this.getUniforms=function(){return void 0===_&&(_=new Au(r,f)),_},this.getAttributes=function(){return void 0===C&&(C=Du(r,f)),C},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(f),this.program=void 0},this.name=n.shaderName,this.id=Su++,this.cacheKey=e,this.usedTimes=1,this.program=f,this.vertexShader=x,this.fragmentShader=w,this}let $u=0;class th{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(t){const e=t.vertexShader,n=t.fragmentShader,i=this._getShaderStage(e),r=this._getShaderStage(n),o=this._getShaderCacheForMaterial(t);return!1===o.has(i)&&(o.add(i),i.usedTimes++),!1===o.has(r)&&(o.add(r),r.usedTimes++),this}remove(t){const e=this.materialCache.get(t);for(const n of e)n.usedTimes--,0===n.usedTimes&&this.shaderCache.delete(n);return this.materialCache.delete(t),this}getVertexShaderID(t){return this._getShaderStage(t.vertexShader).id}getFragmentShaderID(t){return this._getShaderStage(t.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(t){const e=this.materialCache;return!1===e.has(t)&&e.set(t,new Set),e.get(t)}_getShaderStage(t){const e=this.shaderCache;if(!1===e.has(t)){const n=new eh;e.set(t,n)}return e.get(t)}}class eh{constructor(){this.id=$u++,this.usedTimes=0}}function nh(t,e,n,i,r,o,a){const s=new or,l=new th,c=[],u=r.isWebGL2,h=r.logarithmicDepthBuffer,d=r.floatVertexTextures,p=r.maxVertexUniforms,f=r.vertexTextures;let v=r.precision;const y={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function b(t){const e=t.skeleton,n=e.bones;if(d)return 1024;{const t=p,e=Math.floor((t-20)/4),i=Math.min(e,n.length);return i<n.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+n.length+" bones. This GPU supports "+i+"."),0):i}}function x(t){let e;return t&&t.isTexture?e=t.encoding:t&&t.isWebGLRenderTarget?(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),e=t.texture.encoding):e=qe,u&&t&&t.isTexture&&t.format===Nt&&t.type===At&&t.encoding===Ke&&(e=qe),e}function w(o,s,c,p,w){const _=p.fog,C=o.isMeshStandardMaterial?p.environment:null,A=(o.isMeshStandardMaterial?n:e).get(o.envMap||C),I=y[o.type],S=w.isSkinnedMesh?b(w):0;let M,k,E,T;if(null!==o.precision&&(v=r.getMaxPrecision(o.precision),v!==o.precision&&console.warn("THREE.WebGLProgram.getParameters:",o.precision,"not supported, using",v,"instead.")),I){const t=Ml[I];M=t.vertexShader,k=t.fragmentShader}else M=o.vertexShader,k=o.fragmentShader,l.update(o),E=l.getVertexShaderID(o),T=l.getFragmentShaderID(o);const O=t.getRenderTarget(),P=o.alphaTest>0,j=o.clearcoat>0,L={isWebGL2:u,shaderID:I,shaderName:o.type,vertexShader:M,fragmentShader:k,defines:o.defines,customVertexShaderID:E,customFragmentShaderID:T,isRawShaderMaterial:!0===o.isRawShaderMaterial,glslVersion:o.glslVersion,precision:v,instancing:!0===w.isInstancedMesh,instancingColor:!0===w.isInstancedMesh&&null!==w.instanceColor,supportsVertexTextures:f,outputEncoding:null!==O?x(O.texture):t.outputEncoding,map:!!o.map,mapEncoding:x(o.map),matcap:!!o.matcap,matcapEncoding:x(o.matcap),envMap:!!A,envMapMode:A&&A.mapping,envMapEncoding:x(A),envMapCubeUV:!!A&&(A.mapping===ct||A.mapping===ut),lightMap:!!o.lightMap,lightMapEncoding:x(o.lightMap),aoMap:!!o.aoMap,emissiveMap:!!o.emissiveMap,emissiveMapEncoding:x(o.emissiveMap),bumpMap:!!o.bumpMap,normalMap:!!o.normalMap,objectSpaceNormalMap:o.normalMapType===tn,tangentSpaceNormalMap:o.normalMapType===$e,clearcoat:j,clearcoatMap:j&&!!o.clearcoatMap,clearcoatRoughnessMap:j&&!!o.clearcoatRoughnessMap,clearcoatNormalMap:j&&!!o.clearcoatNormalMap,displacementMap:!!o.displacementMap,roughnessMap:!!o.roughnessMap,metalnessMap:!!o.metalnessMap,specularMap:!!o.specularMap,specularIntensityMap:!!o.specularIntensityMap,specularColorMap:!!o.specularColorMap,specularColorMapEncoding:x(o.specularColorMap),alphaMap:!!o.alphaMap,alphaTest:P,gradientMap:!!o.gradientMap,sheen:o.sheen>0,sheenColorMap:!!o.sheenColorMap,sheenColorMapEncoding:x(o.sheenColorMap),sheenRoughnessMap:!!o.sheenRoughnessMap,transmission:o.transmission>0,transmissionMap:!!o.transmissionMap,thicknessMap:!!o.thicknessMap,combine:o.combine,vertexTangents:!!o.normalMap&&!!w.geometry&&!!w.geometry.attributes.tangent,vertexColors:o.vertexColors,vertexAlphas:!0===o.vertexColors&&!!w.geometry&&!!w.geometry.attributes.color&&4===w.geometry.attributes.color.itemSize,vertexUvs:!!o.map||!!o.bumpMap||!!o.normalMap||!!o.specularMap||!!o.alphaMap||!!o.emissiveMap||!!o.roughnessMap||!!o.metalnessMap||!!o.clearcoatMap||!!o.clearcoatRoughnessMap||!!o.clearcoatNormalMap||!!o.displacementMap||!!o.transmissionMap||!!o.thicknessMap||!!o.specularIntensityMap||!!o.specularColorMap||!!o.sheenColorMap||!!o.sheenRoughnessMap,uvsVertexOnly:!(o.map||o.bumpMap||o.normalMap||o.specularMap||o.alphaMap||o.emissiveMap||o.roughnessMap||o.metalnessMap||o.clearcoatNormalMap||o.transmission>0||o.transmissionMap||o.thicknessMap||o.specularIntensityMap||o.specularColorMap||o.sheen>0||o.sheenColorMap||o.sheenRoughnessMap)&&!!o.displacementMap,fog:!!_,useFog:o.fog,fogExp2:_&&_.isFogExp2,flatShading:!!o.flatShading,sizeAttenuation:o.sizeAttenuation,logarithmicDepthBuffer:h,skinning:!0===w.isSkinnedMesh&&S>0,maxBones:S,useVertexTexture:d,morphTargets:!!w.geometry&&!!w.geometry.morphAttributes.position,morphNormals:!!w.geometry&&!!w.geometry.morphAttributes.normal,morphTargetsCount:w.geometry&&w.geometry.morphAttributes.position?w.geometry.morphAttributes.position.length:0,numDirLights:s.directional.length,numPointLights:s.point.length,numSpotLights:s.spot.length,numRectAreaLights:s.rectArea.length,numHemiLights:s.hemi.length,numDirLightShadows:s.directionalShadowMap.length,numPointLightShadows:s.pointShadowMap.length,numSpotLightShadows:s.spotShadowMap.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,format:o.format,dithering:o.dithering,shadowMapEnabled:t.shadowMap.enabled&&c.length>0,shadowMapType:t.shadowMap.type,toneMapping:o.toneMapped?t.toneMapping:J,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:o.premultipliedAlpha,doubleSided:o.side===m,flipSided:o.side===g,depthPacking:void 0!==o.depthPacking&&o.depthPacking,index0AttributeName:o.index0AttributeName,extensionDerivatives:o.extensions&&o.extensions.derivatives,extensionFragDepth:o.extensions&&o.extensions.fragDepth,extensionDrawBuffers:o.extensions&&o.extensions.drawBuffers,extensionShaderTextureLOD:o.extensions&&o.extensions.shaderTextureLOD,rendererExtensionFragDepth:u||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:u||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:u||i.has("EXT_shader_texture_lod"),customProgramCacheKey:o.customProgramCacheKey()};return L}function _(e){const n=[];if(e.shaderID?n.push(e.shaderID):(n.push(e.customVertexShaderID),n.push(e.customFragmentShaderID)),void 0!==e.defines)for(const t in e.defines)n.push(t),n.push(e.defines[t]);return!1===e.isRawShaderMaterial&&(C(n,e),A(n,e),n.push(t.outputEncoding)),n.push(e.customProgramCacheKey),n.join()}function C(t,e){t.push(e.precision),t.push(e.outputEncoding),t.push(e.mapEncoding),t.push(e.matcapEncoding),t.push(e.envMapMode),t.push(e.envMapEncoding),t.push(e.lightMapEncoding),t.push(e.emissiveMapEncoding),t.push(e.combine),t.push(e.vertexUvs),t.push(e.fogExp2),t.push(e.sizeAttenuation),t.push(e.maxBones),t.push(e.morphTargetsCount),t.push(e.numDirLights),t.push(e.numPointLights),t.push(e.numSpotLights),t.push(e.numHemiLights),t.push(e.numRectAreaLights),t.push(e.numDirLightShadows),t.push(e.numPointLightShadows),t.push(e.numSpotLightShadows),t.push(e.shadowMapType),t.push(e.toneMapping),t.push(e.numClippingPlanes),t.push(e.numClipIntersection),t.push(e.format),t.push(e.specularColorMapEncoding),t.push(e.sheenColorMapEncoding)}function A(t,e){s.disableAll(),e.isWebGL2&&s.enable(0),e.supportsVertexTextures&&s.enable(1),e.instancing&&s.enable(2),e.instancingColor&&s.enable(3),e.map&&s.enable(4),e.matcap&&s.enable(5),e.envMap&&s.enable(6),e.envMapCubeUV&&s.enable(7),e.lightMap&&s.enable(8),e.aoMap&&s.enable(9),e.emissiveMap&&s.enable(10),e.bumpMap&&s.enable(11),e.normalMap&&s.enable(12),e.objectSpaceNormalMap&&s.enable(13),e.tangentSpaceNormalMap&&s.enable(14),e.clearcoat&&s.enable(15),e.clearcoatMap&&s.enable(16),e.clearcoatRoughnessMap&&s.enable(17),e.clearcoatNormalMap&&s.enable(18),e.displacementMap&&s.enable(19),e.specularMap&&s.enable(20),e.roughnessMap&&s.enable(21),e.metalnessMap&&s.enable(22),e.gradientMap&&s.enable(23),e.alphaMap&&s.enable(24),e.alphaTest&&s.enable(25),e.vertexColors&&s.enable(26),e.vertexAlphas&&s.enable(27),e.vertexUvs&&s.enable(28),e.vertexTangents&&s.enable(29),e.uvsVertexOnly&&s.enable(30),e.fog&&s.enable(31),t.push(s.mask),s.disableAll(),e.useFog&&s.enable(0),e.flatShading&&s.enable(1),e.logarithmicDepthBuffer&&s.enable(2),e.skinning&&s.enable(3),e.useVertexTexture&&s.enable(4),e.morphTargets&&s.enable(5),e.morphNormals&&s.enable(6),e.premultipliedAlpha&&s.enable(7),e.shadowMapEnabled&&s.enable(8),e.physicallyCorrectLights&&s.enable(9),e.doubleSided&&s.enable(10),e.flipSided&&s.enable(11),e.depthPacking&&s.enable(12),e.dithering&&s.enable(13),e.specularIntensityMap&&s.enable(14),e.specularColorMap&&s.enable(15),e.transmission&&s.enable(16),e.transmissionMap&&s.enable(17),e.thicknessMap&&s.enable(18),e.sheen&&s.enable(19),e.sheenColorMap&&s.enable(20),e.sheenRoughnessMap&&s.enable(21),t.push(s.mask)}function I(t){const e=y[t.type];let n;if(e){const t=Ml[e];n=Po.clone(t.uniforms)}else n=t.uniforms;return n}function S(e,n){let i;for(let t=0,r=c.length;t<r;t++){const e=c[t];if(e.cacheKey===n){i=e,++i.usedTimes;break}}return void 0===i&&(i=new Ju(t,n,e,o),c.push(i)),i}function M(t){if(0===--t.usedTimes){const e=c.indexOf(t);c[e]=c[c.length-1],c.pop(),t.destroy()}}function k(t){l.remove(t)}function E(){l.dispose()}return{getParameters:w,getProgramCacheKey:_,getUniforms:I,acquireProgram:S,releaseProgram:M,releaseShaderCache:k,programs:c,dispose:E}}function ih(){let t=new WeakMap;function e(e){let n=t.get(e);return void 0===n&&(n={},t.set(e,n)),n}function n(e){t.delete(e)}function i(e,n,i){t.get(e)[n]=i}function r(){t=new WeakMap}return{get:e,remove:n,update:i,dispose:r}}function rh(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function oh(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function ah(){const t=[];let e=0;const n=[],i=[],r=[];function o(){e=0,n.length=0,i.length=0,r.length=0}function a(n,i,r,o,a,s){let l=t[e];return void 0===l?(l={id:n.id,object:n,geometry:i,material:r,groupOrder:o,renderOrder:n.renderOrder,z:a,group:s},t[e]=l):(l.id=n.id,l.object=n,l.geometry=i,l.material=r,l.groupOrder=o,l.renderOrder=n.renderOrder,l.z=a,l.group=s),e++,l}function s(t,e,o,s,l,c){const u=a(t,e,o,s,l,c);o.transmission>0?i.push(u):!0===o.transparent?r.push(u):n.push(u)}function l(t,e,o,s,l,c){const u=a(t,e,o,s,l,c);o.transmission>0?i.unshift(u):!0===o.transparent?r.unshift(u):n.unshift(u)}function c(t,e){n.length>1&&n.sort(t||rh),i.length>1&&i.sort(e||oh),r.length>1&&r.sort(e||oh)}function u(){for(let n=e,i=t.length;n<i;n++){const e=t[n];if(null===e.id)break;e.id=null,e.object=null,e.geometry=null,e.material=null,e.group=null}}return{opaque:n,transmissive:i,transparent:r,init:o,push:s,unshift:l,finish:u,sort:c}}function sh(){let t=new WeakMap;function e(e,n){let i;return!1===t.has(e)?(i=new ah,t.set(e,[i])):n>=t.get(e).length?(i=new ah,t.get(e).push(i)):i=t.get(e)[n],i}function n(){t=new WeakMap}return{get:e,dispose:n}}function lh(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new vi,color:new Fr};break;case"SpotLight":n={position:new vi,direction:new vi,color:new Fr,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new vi,color:new Fr,distance:0,decay:0};break;case"HemisphereLight":n={direction:new vi,skyColor:new Fr,groundColor:new Fr};break;case"RectAreaLight":n={color:new Fr,position:new vi,halfWidth:new vi,halfHeight:new vi};break}return t[e.id]=n,n}}}function ch(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ei};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ei};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new ei,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let uh=0;function hh(t,e){return(e.castShadow?1:0)-(t.castShadow?1:0)}function dh(t,e){const n=new lh,i=ch(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadow:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]};for(let u=0;u<9;u++)r.probe.push(new vi);const o=new vi,a=new Xi,s=new Xi;function l(o,a){let s=0,l=0,c=0;for(let t=0;t<9;t++)r.probe[t].set(0,0,0);let u=0,h=0,d=0,p=0,f=0,g=0,m=0,v=0;o.sort(hh);const y=!0!==a?Math.PI:1;for(let t=0,e=o.length;t<e;t++){const e=o[t],a=e.color,b=e.intensity,x=e.distance,w=e.shadow&&e.shadow.map?e.shadow.map.texture:null;if(e.isAmbientLight)s+=a.r*b*y,l+=a.g*b*y,c+=a.b*b*y;else if(e.isLightProbe)for(let t=0;t<9;t++)r.probe[t].addScaledVector(e.sh.coefficients[t],b);else if(e.isDirectionalLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*y),e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,r.directionalShadow[u]=n,r.directionalShadowMap[u]=w,r.directionalShadowMatrix[u]=e.shadow.matrix,g++}r.directional[u]=t,u++}else if(e.isSpotLight){const t=n.get(e);if(t.position.setFromMatrixPosition(e.matrixWorld),t.color.copy(a).multiplyScalar(b*y),t.distance=x,t.coneCos=Math.cos(e.angle),t.penumbraCos=Math.cos(e.angle*(1-e.penumbra)),t.decay=e.decay,e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,r.spotShadow[d]=n,r.spotShadowMap[d]=w,r.spotShadowMatrix[d]=e.shadow.matrix,v++}r.spot[d]=t,d++}else if(e.isRectAreaLight){const t=n.get(e);t.color.copy(a).multiplyScalar(b),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),r.rectArea[p]=t,p++}else if(e.isPointLight){const t=n.get(e);if(t.color.copy(e.color).multiplyScalar(e.intensity*y),t.distance=e.distance,t.decay=e.decay,e.castShadow){const t=e.shadow,n=i.get(e);n.shadowBias=t.bias,n.shadowNormalBias=t.normalBias,n.shadowRadius=t.radius,n.shadowMapSize=t.mapSize,n.shadowCameraNear=t.camera.near,n.shadowCameraFar=t.camera.far,r.pointShadow[h]=n,r.pointShadowMap[h]=w,r.pointShadowMatrix[h]=e.shadow.matrix,m++}r.point[h]=t,h++}else if(e.isHemisphereLight){const t=n.get(e);t.skyColor.copy(e.color).multiplyScalar(b*y),t.groundColor.copy(e.groundColor).multiplyScalar(b*y),r.hemi[f]=t,f++}}p>0&&(e.isWebGL2?(r.rectAreaLTC1=Sl.LTC_FLOAT_1,r.rectAreaLTC2=Sl.LTC_FLOAT_2):!0===t.has("OES_texture_float_linear")?(r.rectAreaLTC1=Sl.LTC_FLOAT_1,r.rectAreaLTC2=Sl.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(r.rectAreaLTC1=Sl.LTC_HALF_1,r.rectAreaLTC2=Sl.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=s,r.ambient[1]=l,r.ambient[2]=c;const b=r.hash;b.directionalLength===u&&b.pointLength===h&&b.spotLength===d&&b.rectAreaLength===p&&b.hemiLength===f&&b.numDirectionalShadows===g&&b.numPointShadows===m&&b.numSpotShadows===v||(r.directional.length=u,r.spot.length=d,r.rectArea.length=p,r.point.length=h,r.hemi.length=f,r.directionalShadow.length=g,r.directionalShadowMap.length=g,r.pointShadow.length=m,r.pointShadowMap.length=m,r.spotShadow.length=v,r.spotShadowMap.length=v,r.directionalShadowMatrix.length=g,r.pointShadowMatrix.length=m,r.spotShadowMatrix.length=v,b.directionalLength=u,b.pointLength=h,b.spotLength=d,b.rectAreaLength=p,b.hemiLength=f,b.numDirectionalShadows=g,b.numPointShadows=m,b.numSpotShadows=v,r.version=uh++)}function c(t,e){let n=0,i=0,l=0,c=0,u=0;const h=e.matrixWorldInverse;for(let d=0,p=t.length;d<p;d++){const e=t[d];if(e.isDirectionalLight){const t=r.directional[n];t.direction.setFromMatrixPosition(e.matrixWorld),o.setFromMatrixPosition(e.target.matrixWorld),t.direction.sub(o),t.direction.transformDirection(h),n++}else if(e.isSpotLight){const t=r.spot[l];t.position.setFromMatrixPosition(e.matrixWorld),t.position.applyMatrix4(h),t.direction.setFromMatrixPosition(e.matrixWorld),o.setFromMatrixPosition(e.target.matrixWorld),t.direction.sub(o),t.direction.transformDirection(h),l++}else if(e.isRectAreaLight){const t=r.rectArea[c];t.position.setFromMatrixPosition(e.matrixWorld),t.position.applyMatrix4(h),s.identity(),a.copy(e.matrixWorld),a.premultiply(h),s.extractRotation(a),t.halfWidth.set(.5*e.width,0,0),t.halfHeight.set(0,.5*e.height,0),t.halfWidth.applyMatrix4(s),t.halfHeight.applyMatrix4(s),c++}else if(e.isPointLight){const t=r.point[i];t.position.setFromMatrixPosition(e.matrixWorld),t.position.applyMatrix4(h),i++}else if(e.isHemisphereLight){const t=r.hemi[u];t.direction.setFromMatrixPosition(e.matrixWorld),t.direction.transformDirection(h),t.direction.normalize(),u++}}}return{setup:l,setupView:c,state:r}}function ph(t,e){const n=new dh(t,e),i=[],r=[];function o(){i.length=0,r.length=0}function a(t){i.push(t)}function s(t){r.push(t)}function l(t){n.setup(i,t)}function c(t){n.setupView(i,t)}const u={lightsArray:i,shadowsArray:r,lights:n};return{init:o,state:u,setupLights:l,setupLightsView:c,pushLight:a,pushShadow:s}}function fh(t,e){let n=new WeakMap;function i(i,r=0){let o;return!1===n.has(i)?(o=new ph(t,e),n.set(i,[o])):r>=n.get(i).length?(o=new ph(t,e),n.get(i).push(o)):o=n.get(i)[r],o}function r(){n=new WeakMap}return{get:i,dispose:r}}class gh extends Pr{constructor(t){super(),this.type="MeshDepthMaterial",this.depthPacking=Qe,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}gh.prototype.isMeshDepthMaterial=!0;class mh extends Pr{constructor(t){super(),this.type="MeshDistanceMaterial",this.referencePosition=new vi,this.nearDistance=1,this.farDistance=1e3,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.setValues(t)}copy(t){return super.copy(t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}mh.prototype.isMeshDistanceMaterial=!0;const vh="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",yh="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function bh(t,e,n){let i=new qo;const r=new ei,o=new ei,a=new di,s=new gh({depthPacking:Je}),l=new mh,c={},u=n.maxTextureSize,d={0:g,1:f,2:m},v=new Do({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new ei},radius:{value:4}},vertexShader:vh,fragmentShader:yh}),y=v.clone();y.defines.HORIZONTAL_PASS=1;const x=new so;x.setAttribute("position",new Hr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const w=new So(x,v),_=this;function C(n,i){const r=e.update(w);v.defines.VSM_SAMPLES!==n.blurSamples&&(v.defines.VSM_SAMPLES=n.blurSamples,y.defines.VSM_SAMPLES=n.blurSamples,v.needsUpdate=!0,y.needsUpdate=!0),v.uniforms.shadow_pass.value=n.map.texture,v.uniforms.resolution.value=n.mapSize,v.uniforms.radius.value=n.radius,t.setRenderTarget(n.mapPass),t.clear(),t.renderBufferDirect(i,null,r,v,w,null),y.uniforms.shadow_pass.value=n.mapPass.texture,y.uniforms.resolution.value=n.mapSize,y.uniforms.radius.value=n.radius,t.setRenderTarget(n.map),t.clear(),t.renderBufferDirect(i,null,r,y,w,null)}function A(e,n,i,r,o,a,u){let h=null;const f=!0===r.isPointLight?e.customDistanceMaterial:e.customDepthMaterial;if(h=void 0!==f?f:!0===r.isPointLight?l:s,t.localClippingEnabled&&!0===i.clipShadows&&0!==i.clippingPlanes.length||i.displacementMap&&0!==i.displacementScale||i.alphaMap&&i.alphaTest>0){const t=h.uuid,e=i.uuid;let n=c[t];void 0===n&&(n={},c[t]=n);let r=n[e];void 0===r&&(r=h.clone(),n[e]=r),h=r}return h.visible=i.visible,h.wireframe=i.wireframe,h.side=u===p?null!==i.shadowSide?i.shadowSide:i.side:null!==i.shadowSide?i.shadowSide:d[i.side],h.alphaMap=i.alphaMap,h.alphaTest=i.alphaTest,h.clipShadows=i.clipShadows,h.clippingPlanes=i.clippingPlanes,h.clipIntersection=i.clipIntersection,h.displacementMap=i.displacementMap,h.displacementScale=i.displacementScale,h.displacementBias=i.displacementBias,h.wireframeLinewidth=i.wireframeLinewidth,h.linewidth=i.linewidth,!0===r.isPointLight&&!0===h.isMeshDistanceMaterial&&(h.referencePosition.setFromMatrixPosition(r.matrixWorld),h.nearDistance=o,h.farDistance=a),h}function I(n,r,o,a,s){if(!1===n.visible)return;const l=n.layers.test(r.layers);if(l&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===p)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);const i=e.update(n),r=n.material;if(Array.isArray(r)){const e=i.groups;for(let l=0,c=e.length;l<c;l++){const c=e[l],u=r[c.materialIndex];if(u&&u.visible){const e=A(n,i,u,a,o.near,o.far,s);t.renderBufferDirect(o,null,i,e,n,c)}}}else if(r.visible){const e=A(n,i,r,a,o.near,o.far,s);t.renderBufferDirect(o,null,i,e,n,null)}}const c=n.children;for(let t=0,e=c.length;t<e;t++)I(c[t],r,o,a,s)}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=h,this.render=function(e,n,s){if(!1===_.enabled)return;if(!1===_.autoUpdate&&!1===_.needsUpdate)return;if(0===e.length)return;const l=t.getRenderTarget(),c=t.getActiveCubeFace(),h=t.getActiveMipmapLevel(),d=t.state;d.setBlending(b),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);for(let f=0,g=e.length;f<g;f++){const l=e[f],c=l.shadow;if(void 0===c){console.warn("THREE.WebGLShadowMap:",l,"has no shadow.");continue}if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;r.copy(c.mapSize);const h=c.getFrameExtents();if(r.multiply(h),o.copy(c.mapSize),(r.x>u||r.y>u)&&(r.x>u&&(o.x=Math.floor(u/h.x),r.x=o.x*h.x,c.mapSize.x=o.x),r.y>u&&(o.y=Math.floor(u/h.y),r.y=o.y*h.y,c.mapSize.y=o.y)),null===c.map&&!c.isPointLightShadow&&this.type===p){const t={minFilter:bt,magFilter:bt,format:Nt};c.map=new pi(r.x,r.y,t),c.map.texture.name=l.name+".shadowMap",c.mapPass=new pi(r.x,r.y,t),c.camera.updateProjectionMatrix()}if(null===c.map){const t={minFilter:ft,magFilter:ft,format:Nt};c.map=new pi(r.x,r.y,t),c.map.texture.name=l.name+".shadowMap",c.camera.updateProjectionMatrix()}t.setRenderTarget(c.map),t.clear();const g=c.getViewportCount();for(let t=0;t<g;t++){const e=c.getViewport(t);a.set(o.x*e.x,o.y*e.y,o.x*e.z,o.y*e.w),d.viewport(a),c.updateMatrices(l,t),i=c.getFrustum(),I(n,s,c.camera,l,this.type)}c.isPointLightShadow||this.type!==p||C(c,s),c.needsUpdate=!1}_.needsUpdate=!1,t.setRenderTarget(l,c,h)}}function xh(t,e,n){const i=n.isWebGL2;function r(){let e=!1;const n=new di;let i=null;const r=new di(0,0,0,0);return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,o,a,s){!0===s&&(e*=a,i*=a,o*=a),n.set(e,i,o,a),!1===r.equals(n)&&(t.clearColor(e,i,o,a),r.copy(n))},reset:function(){e=!1,i=null,r.set(-1,0,0,0)}}}function o(){let e=!1,n=null,i=null,r=null;return{setTest:function(t){t?xt(2929):wt(2929)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){if(e)switch(e){case V:t.depthFunc(512);break;case G:t.depthFunc(519);break;case H:t.depthFunc(513);break;case W:t.depthFunc(515);break;case U:t.depthFunc(514);break;case Z:t.depthFunc(518);break;case Y:t.depthFunc(516);break;case X:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,n=null,i=null,r=null}}}function c(){let e=!1,n=null,i=null,r=null,o=null,a=null,s=null,l=null,c=null;return{setTest:function(t){e||(t?xt(2960):wt(2960))},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,a){i===e&&r===n&&o===a||(t.stencilFunc(e,n,a),i=e,r=n,o=a)},setOp:function(e,n,i){a===e&&s===n&&l===i||(t.stencilOp(e,n,i),a=e,s=n,l=i)},setLocked:function(t){e=t},setClear:function(e){c!==e&&(t.clearStencil(e),c=e)},reset:function(){e=!1,n=null,i=null,r=null,o=null,a=null,s=null,l=null,c=null}}}const u=new r,h=new o,d=new c;let p={},f={},v=null,y=!1,q=null,K=null,Q=null,J=null,$=null,tt=null,et=null,nt=!1,it=null,rt=null,ot=null,at=null,st=null;const lt=t.getParameter(35661);let ct=!1,ut=0;const ht=t.getParameter(7938);-1!==ht.indexOf("WebGL")?(ut=parseFloat(/^WebGL (\d)/.exec(ht)[1]),ct=ut>=1):-1!==ht.indexOf("OpenGL ES")&&(ut=parseFloat(/^OpenGL ES (\d)/.exec(ht)[1]),ct=ut>=2);let dt=null,pt={};const ft=t.getParameter(3088),gt=t.getParameter(2978),mt=(new di).fromArray(ft),vt=(new di).fromArray(gt);function yt(e,n,i){const r=new Uint8Array(4),o=t.createTexture();t.bindTexture(e,o),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let a=0;a<i;a++)t.texImage2D(n+a,0,6408,1,1,0,6408,5121,r);return o}const bt={};function xt(e){!0!==p[e]&&(t.enable(e),p[e]=!0)}function wt(e){!1!==p[e]&&(t.disable(e),p[e]=!1)}function _t(e,n){return f[e]!==n&&(t.bindFramebuffer(e,n),f[e]=n,i&&(36009===e&&(f[36160]=n),36160===e&&(f[36009]=n)),!0)}function Ct(e){return v!==e&&(t.useProgram(e),v=e,!0)}bt[3553]=yt(3553,3553,1),bt[34067]=yt(34067,34069,6),u.setClear(0,0,0,1),h.setClear(1),d.setClear(0),xt(2929),h.setFunc(W),kt(!1),Et(s),xt(2884),St(b);const At={[I]:32774,[S]:32778,[M]:32779};if(i)At[k]=32775,At[E]=32776;else{const t=e.get("EXT_blend_minmax");null!==t&&(At[k]=t.MIN_EXT,At[E]=t.MAX_EXT)}const It={[T]:0,[O]:1,[P]:768,[L]:770,[z]:776,[N]:774,[R]:772,[j]:769,[D]:771,[F]:775,[B]:773};function St(e,n,i,r,o,a,s,l){if(e!==b){if(!1===y&&(xt(3042),y=!0),e===A)o=o||n,a=a||i,s=s||r,n===K&&o===$||(t.blendEquationSeparate(At[n],At[o]),K=n,$=o),i===Q&&r===J&&a===tt&&s===et||(t.blendFuncSeparate(It[i],It[r],It[a],It[s]),Q=i,J=r,tt=a,et=s),q=e,nt=null;else if(e!==q||l!==nt){if(K===I&&$===I||(t.blendEquation(32774),K=I,$=I),l)switch(e){case x:t.blendFuncSeparate(1,771,1,771);break;case w:t.blendFunc(1,1);break;case _:t.blendFuncSeparate(0,0,769,771);break;case C:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",e);break}else switch(e){case x:t.blendFuncSeparate(770,771,1,771);break;case w:t.blendFunc(770,1);break;case _:t.blendFunc(0,769);break;case C:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",e);break}Q=null,J=null,tt=null,et=null,q=e,nt=l}}else!0===y&&(wt(3042),y=!1)}function Mt(t,e){t.side===m?wt(2884):xt(2884);let n=t.side===g;e&&(n=!n),kt(n),t.blending===x&&!1===t.transparent?St(b):St(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha),h.setFunc(t.depthFunc),h.setTest(t.depthTest),h.setMask(t.depthWrite),u.setMask(t.colorWrite);const i=t.stencilWrite;d.setTest(i),i&&(d.setMask(t.stencilWriteMask),d.setFunc(t.stencilFunc,t.stencilRef,t.stencilFuncMask),d.setOp(t.stencilFail,t.stencilZFail,t.stencilZPass)),Ot(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits),!0===t.alphaToCoverage?xt(32926):wt(32926)}function kt(e){it!==e&&(e?t.frontFace(2304):t.frontFace(2305),it=e)}function Et(e){e!==a?(xt(2884),e!==rt&&(e===s?t.cullFace(1029):e===l?t.cullFace(1028):t.cullFace(1032))):wt(2884),rt=e}function Tt(e){e!==ot&&(ct&&t.lineWidth(e),ot=e)}function Ot(e,n,i){e?(xt(32823),at===n&&st===i||(t.polygonOffset(n,i),at=n,st=i)):wt(32823)}function Pt(t){t?xt(3089):wt(3089)}function jt(e){void 0===e&&(e=33984+lt-1),dt!==e&&(t.activeTexture(e),dt=e)}function Lt(e,n){null===dt&&jt();let i=pt[dt];void 0===i&&(i={type:void 0,texture:void 0},pt[dt]=i),i.type===e&&i.texture===n||(t.bindTexture(e,n||bt[e]),i.type=e,i.texture=n)}function Dt(){const e=pt[dt];void 0!==e&&void 0!==e.type&&(t.bindTexture(e.type,null),e.type=void 0,e.texture=void 0)}function Rt(){try{t.compressedTexImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}}function Bt(){try{t.texSubImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}}function Nt(){try{t.texSubImage3D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}}function Ft(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}}function zt(){try{t.texStorage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}}function Vt(){try{t.texStorage3D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}}function Gt(){try{t.texImage2D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}}function Ht(){try{t.texImage3D.apply(t,arguments)}catch(e){console.error("THREE.WebGLState:",e)}}function Wt(e){!1===mt.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),mt.copy(e))}function Ut(e){!1===vt.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),vt.copy(e))}function Zt(){t.disable(3042),t.disable(2884),t.disable(2929),t.disable(32823),t.disable(3089),t.disable(2960),t.disable(32926),t.blendEquation(32774),t.blendFunc(1,0),t.blendFuncSeparate(1,0,1,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(513),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(519,0,4294967295),t.stencilOp(7680,7680,7680),t.clearStencil(0),t.cullFace(1029),t.frontFace(2305),t.polygonOffset(0,0),t.activeTexture(33984),t.bindFramebuffer(36160,null),!0===i&&(t.bindFramebuffer(36009,null),t.bindFramebuffer(36008,null)),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),p={},dt=null,pt={},f={},v=null,y=!1,q=null,K=null,Q=null,J=null,$=null,tt=null,et=null,nt=!1,it=null,rt=null,ot=null,at=null,st=null,mt.set(0,0,t.canvas.width,t.canvas.height),vt.set(0,0,t.canvas.width,t.canvas.height),u.reset(),h.reset(),d.reset()}return{buffers:{color:u,depth:h,stencil:d},enable:xt,disable:wt,bindFramebuffer:_t,useProgram:Ct,setBlending:St,setMaterial:Mt,setFlipSided:kt,setCullFace:Et,setLineWidth:Tt,setPolygonOffset:Ot,setScissorTest:Pt,activeTexture:jt,bindTexture:Lt,unbindTexture:Dt,compressedTexImage2D:Rt,texImage2D:Gt,texImage3D:Ht,texStorage2D:zt,texStorage3D:Vt,texSubImage2D:Bt,texSubImage3D:Nt,compressedTexSubImage2D:Ft,scissor:Wt,viewport:Ut,reset:Zt}}function wh(t,e,n,i,r,o,a){const s=r.isWebGL2,l=r.maxTextures,c=r.maxCubemapSize,u=r.maxTextureSize,h=r.maxSamples,d=e.has("WEBGL_multisampled_render_to_texture"),p=d?e.get("WEBGL_multisampled_render_to_texture"):void 0,f=new WeakMap;let g,m=!1;try{m="undefined"!==typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(it){}function v(t,e){return m?new OffscreenCanvas(t,e):ai("canvas")}function y(t,e,n,i){let r=1;if((t.width>i||t.height>i)&&(r=i/Math.max(t.width,t.height)),r<1||!0===e){if("undefined"!==typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!==typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap){const i=e?Jn:Math.floor,o=i(r*t.width),a=i(r*t.height);void 0===g&&(g=v(o,a));const s=n?v(o,a):g;s.width=o,s.height=a;const l=s.getContext("2d");return l.drawImage(t,0,0,o,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+o+"x"+a+")."),s}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function b(t){return Kn(t.width)&&Kn(t.height)}function x(t){return!s&&(t.wrapS!==dt||t.wrapT!==dt||t.minFilter!==ft&&t.minFilter!==bt)}function w(t,e){return t.generateMipmaps&&e&&t.minFilter!==ft&&t.minFilter!==bt}function _(e){t.generateMipmap(e)}function C(n,i,r,o){if(!1===s)return i;if(null!==n){if(void 0!==t[n])return t[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let a=i;return 6403===i&&(5126===r&&(a=33326),5131===r&&(a=33325),5121===r&&(a=33321)),6407===i&&(5126===r&&(a=34837),5131===r&&(a=34843),5121===r&&(a=32849)),6408===i&&(5126===r&&(a=34836),5131===r&&(a=34842),5121===r&&(a=o===Ke?35907:32856)),33325!==a&&33326!==a&&34842!==a&&34836!==a||e.get("EXT_color_buffer_float"),a}function A(t,e,n){return!0===w(t,n)||t.isFramebufferTexture&&t.minFilter!==ft&&t.minFilter!==bt?Math.log2(Math.max(e.width,e.height))+1:void 0!==t.mipmaps&&t.mipmaps.length>0?t.mipmaps.length:t.isCompressedTexture&&Array.isArray(t.image)?e.mipmaps.length:1}function I(t){return t===ft||t===gt||t===vt?9728:9729}function S(t){const e=t.target;e.removeEventListener("dispose",S),k(e),e.isVideoTexture&&f.delete(e),a.memory.textures--}function M(t){const e=t.target;e.removeEventListener("dispose",M),E(e)}function k(e){const n=i.get(e);void 0!==n.__webglInit&&(t.deleteTexture(n.__webglTexture),i.remove(e))}function E(e){const n=e.texture,r=i.get(e),o=i.get(n);if(e){if(void 0!==o.__webglTexture&&(t.deleteTexture(o.__webglTexture),a.memory.textures--),e.depthTexture&&e.depthTexture.dispose(),e.isWebGLCubeRenderTarget)for(let e=0;e<6;e++)t.deleteFramebuffer(r.__webglFramebuffer[e]),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer[e]);else t.deleteFramebuffer(r.__webglFramebuffer),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer),r.__webglMultisampledFramebuffer&&t.deleteFramebuffer(r.__webglMultisampledFramebuffer),r.__webglColorRenderbuffer&&t.deleteRenderbuffer(r.__webglColorRenderbuffer),r.__webglDepthRenderbuffer&&t.deleteRenderbuffer(r.__webglDepthRenderbuffer);if(e.isWebGLMultipleRenderTargets)for(let e=0,r=n.length;e<r;e++){const r=i.get(n[e]);r.__webglTexture&&(t.deleteTexture(r.__webglTexture),a.memory.textures--),i.remove(n[e])}i.remove(n),i.remove(e)}}let T=0;function O(){T=0}function P(){const t=T;return t>=l&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+l),T+=1,t}function j(t,e){const r=i.get(t);if(t.isVideoTexture&&J(t),t.version>0&&r.__version!==t.version){const n=t.image;if(void 0===n)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==n.complete)return void V(r,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+e),n.bindTexture(3553,r.__webglTexture)}function L(t,e){const r=i.get(t);t.version>0&&r.__version!==t.version?V(r,t,e):(n.activeTexture(33984+e),n.bindTexture(35866,r.__webglTexture))}function D(t,e){const r=i.get(t);t.version>0&&r.__version!==t.version?V(r,t,e):(n.activeTexture(33984+e),n.bindTexture(32879,r.__webglTexture))}function R(t,e){const r=i.get(t);t.version>0&&r.__version!==t.version?G(r,t,e):(n.activeTexture(33984+e),n.bindTexture(34067,r.__webglTexture))}const B={[ht]:10497,[dt]:33071,[pt]:33648},N={[ft]:9728,[gt]:9984,[vt]:9986,[bt]:9729,[xt]:9985,[_t]:9987};function F(n,o,a){if(a?(t.texParameteri(n,10242,B[o.wrapS]),t.texParameteri(n,10243,B[o.wrapT]),32879!==n&&35866!==n||t.texParameteri(n,32882,B[o.wrapR]),t.texParameteri(n,10240,N[o.magFilter]),t.texParameteri(n,10241,N[o.minFilter])):(t.texParameteri(n,10242,33071),t.texParameteri(n,10243,33071),32879!==n&&35866!==n||t.texParameteri(n,32882,33071),o.wrapS===dt&&o.wrapT===dt||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,10240,I(o.magFilter)),t.texParameteri(n,10241,I(o.minFilter)),o.minFilter!==ft&&o.minFilter!==bt&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===e.has("EXT_texture_filter_anisotropic")){const a=e.get("EXT_texture_filter_anisotropic");if(o.type===Tt&&!1===e.has("OES_texture_float_linear"))return;if(!1===s&&o.type===Ot&&!1===e.has("OES_texture_half_float_linear"))return;(o.anisotropy>1||i.get(o).__currentAnisotropy)&&(t.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(o.anisotropy,r.getMaxAnisotropy())),i.get(o).__currentAnisotropy=o.anisotropy)}}function z(e,n){void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",S),e.__webglTexture=t.createTexture(),a.memory.textures++)}function V(e,i,r){let a=3553;i.isDataTexture2DArray&&(a=35866),i.isDataTexture3D&&(a=32879),z(e,i),n.activeTexture(33984+r),n.bindTexture(a,e.__webglTexture),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const l=x(i)&&!1===b(i.image),c=y(i.image,l,!1,u),h=b(c)||s,d=o.convert(i.format);let p,f=o.convert(i.type),g=C(i.internalFormat,d,f,i.encoding);F(a,i,h);const m=i.mipmaps,v=s&&!0!==i.isVideoTexture,I=void 0===e.__version,S=A(i,c,h);if(i.isDepthTexture)g=6402,s?g=i.type===Tt?36012:i.type===Et?33190:i.type===Dt?35056:33189:i.type===Tt&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),i.format===Vt&&6402===g&&i.type!==Mt&&i.type!==Et&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=Mt,f=o.convert(i.type)),i.format===Gt&&6402===g&&(g=34041,i.type!==Dt&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=Dt,f=o.convert(i.type))),v&&I?n.texStorage2D(3553,1,g,c.width,c.height):n.texImage2D(3553,0,g,c.width,c.height,0,d,f,null);else if(i.isDataTexture)if(m.length>0&&h){v&&I&&n.texStorage2D(3553,S,g,m[0].width,m[0].height);for(let t=0,e=m.length;t<e;t++)p=m[t],v?n.texSubImage2D(3553,0,0,0,p.width,p.height,d,f,p.data):n.texImage2D(3553,t,g,p.width,p.height,0,d,f,p.data);i.generateMipmaps=!1}else v?(I&&n.texStorage2D(3553,S,g,c.width,c.height),n.texSubImage2D(3553,0,0,0,c.width,c.height,d,f,c.data)):n.texImage2D(3553,0,g,c.width,c.height,0,d,f,c.data);else if(i.isCompressedTexture){v&&I&&n.texStorage2D(3553,S,g,m[0].width,m[0].height);for(let t=0,e=m.length;t<e;t++)p=m[t],i.format!==Nt&&i.format!==Bt?null!==d?v?n.compressedTexSubImage2D(3553,t,0,0,p.width,p.height,d,p.data):n.compressedTexImage2D(3553,t,g,p.width,p.height,0,p.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):v?n.texSubImage2D(3553,t,0,0,p.width,p.height,d,f,p.data):n.texImage2D(3553,t,g,p.width,p.height,0,d,f,p.data)}else if(i.isDataTexture2DArray)v?(I&&n.texStorage3D(35866,S,g,c.width,c.height,c.depth),n.texSubImage3D(35866,0,0,0,0,c.width,c.height,c.depth,d,f,c.data)):n.texImage3D(35866,0,g,c.width,c.height,c.depth,0,d,f,c.data);else if(i.isDataTexture3D)v?(I&&n.texStorage3D(32879,S,g,c.width,c.height,c.depth),n.texSubImage3D(32879,0,0,0,0,c.width,c.height,c.depth,d,f,c.data)):n.texImage3D(32879,0,g,c.width,c.height,c.depth,0,d,f,c.data);else if(i.isFramebufferTexture)v&&I?n.texStorage2D(3553,S,g,c.width,c.height):n.texImage2D(3553,0,g,c.width,c.height,0,d,f,null);else if(m.length>0&&h){v&&I&&n.texStorage2D(3553,S,g,m[0].width,m[0].height);for(let t=0,e=m.length;t<e;t++)p=m[t],v?n.texSubImage2D(3553,t,0,0,d,f,p):n.texImage2D(3553,t,g,d,f,p);i.generateMipmaps=!1}else v?(I&&n.texStorage2D(3553,S,g,c.width,c.height),n.texSubImage2D(3553,0,0,0,d,f,c)):n.texImage2D(3553,0,g,d,f,c);w(i,h)&&_(a),e.__version=i.version,i.onUpdate&&i.onUpdate(i)}function G(e,i,r){if(6!==i.image.length)return;z(e,i),n.activeTexture(33984+r),n.bindTexture(34067,e.__webglTexture),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment),t.pixelStorei(37443,0);const a=i&&(i.isCompressedTexture||i.image[0].isCompressedTexture),l=i.image[0]&&i.image[0].isDataTexture,u=[];for(let t=0;t<6;t++)u[t]=a||l?l?i.image[t].image:i.image[t]:y(i.image[t],!1,!0,c);const h=u[0],d=b(h)||s,p=o.convert(i.format),f=o.convert(i.type),g=C(i.internalFormat,p,f,i.encoding),m=s&&!0!==i.isVideoTexture,v=void 0===e.__version;let x,I=A(i,h,d);if(F(34067,i,d),a){m&&v&&n.texStorage2D(34067,I,g,h.width,h.height);for(let t=0;t<6;t++){x=u[t].mipmaps;for(let e=0;e<x.length;e++){const r=x[e];i.format!==Nt&&i.format!==Bt?null!==p?m?n.compressedTexSubImage2D(34069+t,e,0,0,r.width,r.height,p,r.data):n.compressedTexImage2D(34069+t,e,g,r.width,r.height,0,r.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):m?n.texSubImage2D(34069+t,e,0,0,r.width,r.height,p,f,r.data):n.texImage2D(34069+t,e,g,r.width,r.height,0,p,f,r.data)}}}else{x=i.mipmaps,m&&v&&(x.length>0&&I++,n.texStorage2D(34067,I,g,u[0].width,u[0].height));for(let t=0;t<6;t++)if(l){m?n.texSubImage2D(34069+t,0,0,0,u[t].width,u[t].height,p,f,u[t].data):n.texImage2D(34069+t,0,g,u[t].width,u[t].height,0,p,f,u[t].data);for(let e=0;e<x.length;e++){const i=x[e],r=i.image[t].image;m?n.texSubImage2D(34069+t,e+1,0,0,r.width,r.height,p,f,r.data):n.texImage2D(34069+t,e+1,g,r.width,r.height,0,p,f,r.data)}}else{m?n.texSubImage2D(34069+t,0,0,0,p,f,u[t]):n.texImage2D(34069+t,0,g,p,f,u[t]);for(let e=0;e<x.length;e++){const i=x[e];m?n.texSubImage2D(34069+t,e+1,0,0,p,f,i.image[t]):n.texImage2D(34069+t,e+1,g,p,f,i.image[t])}}}w(i,d)&&_(34067),e.__version=i.version,i.onUpdate&&i.onUpdate(i)}function H(e,r,a,s,l){const c=o.convert(a.format),u=o.convert(a.type),h=C(a.internalFormat,c,u,a.encoding),d=i.get(r);d.__hasExternalTextures||(32879===l||35866===l?n.texImage3D(l,0,h,r.width,r.height,r.depth,0,c,u,null):n.texImage2D(l,0,h,r.width,r.height,0,c,u,null)),n.bindFramebuffer(36160,e),r.useRenderToTexture?p.framebufferTexture2DMultisampleEXT(36160,s,l,i.get(a).__webglTexture,0,Q(r)):t.framebufferTexture2D(36160,s,l,i.get(a).__webglTexture,0),n.bindFramebuffer(36160,null)}function W(e,n,i){if(t.bindRenderbuffer(36161,e),n.depthBuffer&&!n.stencilBuffer){let r=33189;if(i||n.useRenderToTexture){const e=n.depthTexture;e&&e.isDepthTexture&&(e.type===Tt?r=36012:e.type===Et&&(r=33190));const i=Q(n);n.useRenderToTexture?p.renderbufferStorageMultisampleEXT(36161,i,r,n.width,n.height):t.renderbufferStorageMultisample(36161,i,r,n.width,n.height)}else t.renderbufferStorage(36161,r,n.width,n.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(n.depthBuffer&&n.stencilBuffer){const r=Q(n);i&&n.useRenderbuffer?t.renderbufferStorageMultisample(36161,r,35056,n.width,n.height):n.useRenderToTexture?p.renderbufferStorageMultisampleEXT(36161,r,35056,n.width,n.height):t.renderbufferStorage(36161,34041,n.width,n.height),t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=!0===n.isWebGLMultipleRenderTargets?n.texture[0]:n.texture,r=o.convert(e.format),a=o.convert(e.type),s=C(e.internalFormat,r,a,e.encoding),l=Q(n);i&&n.useRenderbuffer?t.renderbufferStorageMultisample(36161,l,s,n.width,n.height):n.useRenderToTexture?p.renderbufferStorageMultisampleEXT(36161,l,s,n.width,n.height):t.renderbufferStorage(36161,s,n.width,n.height)}t.bindRenderbuffer(36161,null)}function U(e,r){const o=r&&r.isWebGLCubeRenderTarget;if(o)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(36160,e),!r.depthTexture||!r.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(r.depthTexture).__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),j(r.depthTexture,0);const a=i.get(r.depthTexture).__webglTexture,s=Q(r);if(r.depthTexture.format===Vt)r.useRenderToTexture?p.framebufferTexture2DMultisampleEXT(36160,36096,3553,a,0,s):t.framebufferTexture2D(36160,36096,3553,a,0);else{if(r.depthTexture.format!==Gt)throw new Error("Unknown depthTexture format");r.useRenderToTexture?p.framebufferTexture2DMultisampleEXT(36160,33306,3553,a,0,s):t.framebufferTexture2D(36160,33306,3553,a,0)}}function Z(e){const r=i.get(e),o=!0===e.isWebGLCubeRenderTarget;if(e.depthTexture&&!r.__autoAllocateDepthBuffer){if(o)throw new Error("target.depthTexture not supported in Cube render targets");U(r.__webglFramebuffer,e)}else if(o){r.__webglDepthbuffer=[];for(let i=0;i<6;i++)n.bindFramebuffer(36160,r.__webglFramebuffer[i]),r.__webglDepthbuffer[i]=t.createRenderbuffer(),W(r.__webglDepthbuffer[i],e,!1)}else n.bindFramebuffer(36160,r.__webglFramebuffer),r.__webglDepthbuffer=t.createRenderbuffer(),W(r.__webglDepthbuffer,e,!1);n.bindFramebuffer(36160,null)}function Y(t,e,n){const r=i.get(t);void 0!==e&&H(r.__webglFramebuffer,t,t.texture,36064,3553),void 0!==n&&Z(t)}function X(e){const l=e.texture,c=i.get(e),u=i.get(l);e.addEventListener("dispose",M),!0!==e.isWebGLMultipleRenderTargets&&(void 0===u.__webglTexture&&(u.__webglTexture=t.createTexture()),u.__version=l.version,a.memory.textures++);const h=!0===e.isWebGLCubeRenderTarget,d=!0===e.isWebGLMultipleRenderTargets,p=l.isDataTexture3D||l.isDataTexture2DArray,f=b(e)||s;if(!s||l.format!==Bt||l.type!==Tt&&l.type!==Ot||(l.format=Nt,console.warn("THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.")),h){c.__webglFramebuffer=[];for(let e=0;e<6;e++)c.__webglFramebuffer[e]=t.createFramebuffer()}else if(c.__webglFramebuffer=t.createFramebuffer(),d)if(r.drawBuffers){const n=e.texture;for(let e=0,r=n.length;e<r;e++){const r=i.get(n[e]);void 0===r.__webglTexture&&(r.__webglTexture=t.createTexture(),a.memory.textures++)}}else console.warn("THREE.WebGLRenderer: WebGLMultipleRenderTargets can only be used with WebGL2 or WEBGL_draw_buffers extension.");else if(e.useRenderbuffer)if(s){c.__webglMultisampledFramebuffer=t.createFramebuffer(),c.__webglColorRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,c.__webglColorRenderbuffer);const i=o.convert(l.format),r=o.convert(l.type),a=C(l.internalFormat,i,r,l.encoding),s=Q(e);t.renderbufferStorageMultisample(36161,s,a,e.width,e.height),n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064,36161,c.__webglColorRenderbuffer),t.bindRenderbuffer(36161,null),e.depthBuffer&&(c.__webglDepthRenderbuffer=t.createRenderbuffer(),W(c.__webglDepthRenderbuffer,e,!0)),n.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");if(h){n.bindTexture(34067,u.__webglTexture),F(34067,l,f);for(let t=0;t<6;t++)H(c.__webglFramebuffer[t],e,l,36064,34069+t);w(l,f)&&_(34067),n.unbindTexture()}else if(d){const t=e.texture;for(let r=0,o=t.length;r<o;r++){const o=t[r],a=i.get(o);n.bindTexture(3553,a.__webglTexture),F(3553,o,f),H(c.__webglFramebuffer,e,o,36064+r,3553),w(o,f)&&_(3553)}n.unbindTexture()}else{let t=3553;if(p)if(s){const e=l.isDataTexture3D;t=e?32879:35866}else console.warn("THREE.DataTexture3D and THREE.DataTexture2DArray only supported with WebGL2.");n.bindTexture(t,u.__webglTexture),F(t,l,f),H(c.__webglFramebuffer,e,l,36064,t),w(l,f)&&_(t),n.unbindTexture()}e.depthBuffer&&Z(e)}function q(t){const e=b(t)||s,r=!0===t.isWebGLMultipleRenderTargets?t.texture:[t.texture];for(let o=0,a=r.length;o<a;o++){const a=r[o];if(w(a,e)){const e=t.isWebGLCubeRenderTarget?34067:3553,r=i.get(a).__webglTexture;n.bindTexture(e,r),_(e),n.unbindTexture()}}}function K(e){if(e.useRenderbuffer)if(s){const r=e.width,o=e.height;let a=16384;const s=[36064],l=e.stencilBuffer?33306:36096;e.depthBuffer&&s.push(l),e.ignoreDepthForMultisampleCopy||(e.depthBuffer&&(a|=256),e.stencilBuffer&&(a|=1024));const c=i.get(e);n.bindFramebuffer(36008,c.__webglMultisampledFramebuffer),n.bindFramebuffer(36009,c.__webglFramebuffer),e.ignoreDepthForMultisampleCopy&&(t.invalidateFramebuffer(36008,[l]),t.invalidateFramebuffer(36009,[l])),t.blitFramebuffer(0,0,r,o,0,0,r,o,a,9728),t.invalidateFramebuffer(36008,s),n.bindFramebuffer(36008,null),n.bindFramebuffer(36009,c.__webglMultisampledFramebuffer)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")}function Q(t){return s&&(t.useRenderbuffer||t.useRenderToTexture)?Math.min(h,t.samples):0}function J(t){const e=a.render.frame;f.get(t)!==e&&(f.set(t,e),t.update())}let $=!1,tt=!1;function et(t,e){t&&t.isWebGLRenderTarget&&(!1===$&&(console.warn("THREE.WebGLTextures.safeSetTexture2D: don't use render targets as textures. Use their .texture property instead."),$=!0),t=t.texture),j(t,e)}function nt(t,e){t&&t.isWebGLCubeRenderTarget&&(!1===tt&&(console.warn("THREE.WebGLTextures.safeSetTextureCube: don't use cube render targets as textures. Use their .texture property instead."),tt=!0),t=t.texture),R(t,e)}this.allocateTextureUnit=P,this.resetTextureUnits=O,this.setTexture2D=j,this.setTexture2DArray=L,this.setTexture3D=D,this.setTextureCube=R,this.rebindTextures=Y,this.setupRenderTarget=X,this.updateRenderTargetMipmap=q,this.updateMultisampleRenderTarget=K,this.setupDepthRenderbuffer=Z,this.setupFrameBufferTexture=H,this.safeSetTexture2D=et,this.safeSetTextureCube=nt}function _h(t,e,n){const i=n.isWebGL2;function r(t){let n;if(t===At)return 5121;if(t===Pt)return 32819;if(t===jt)return 32820;if(t===Lt)return 33635;if(t===It)return 5120;if(t===St)return 5122;if(t===Mt)return 5123;if(t===kt)return 5124;if(t===Et)return 5125;if(t===Tt)return 5126;if(t===Ot)return i?5131:(n=e.get("OES_texture_half_float"),null!==n?n.HALF_FLOAT_OES:null);if(t===Rt)return 6406;if(t===Bt)return 6407;if(t===Nt)return 6408;if(t===Ft)return 6409;if(t===zt)return 6410;if(t===Vt)return 6402;if(t===Gt)return 34041;if(t===Ht)return 6403;if(t===Wt)return 36244;if(t===Ut)return 33319;if(t===Zt)return 33320;if(t===Yt)return 36248;if(t===Xt)return 36249;if(t===qt||t===Kt||t===Qt||t===Jt){if(n=e.get("WEBGL_compressed_texture_s3tc"),null===n)return null;if(t===qt)return n.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===Kt)return n.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===Qt)return n.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===Jt)return n.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(t===$t||t===te||t===ee||t===ne){if(n=e.get("WEBGL_compressed_texture_pvrtc"),null===n)return null;if(t===$t)return n.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(t===te)return n.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(t===ee)return n.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(t===ne)return n.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(t===ie)return n=e.get("WEBGL_compressed_texture_etc1"),null!==n?n.COMPRESSED_RGB_ETC1_WEBGL:null;if((t===re||t===oe)&&(n=e.get("WEBGL_compressed_texture_etc"),null!==n)){if(t===re)return n.COMPRESSED_RGB8_ETC2;if(t===oe)return n.COMPRESSED_RGBA8_ETC2_EAC}return t===ae||t===se||t===le||t===ce||t===ue||t===he||t===de||t===pe||t===fe||t===ge||t===me||t===ve||t===ye||t===be||t===we||t===_e||t===Ce||t===Ae||t===Ie||t===Se||t===Me||t===ke||t===Ee||t===Te||t===Oe||t===Pe||t===je||t===Le?(n=e.get("WEBGL_compressed_texture_astc"),null!==n?t:null):t===xe?(n=e.get("EXT_texture_compression_bptc"),null!==n?t:null):t===Dt?i?34042:(n=e.get("WEBGL_depth_texture"),null!==n?n.UNSIGNED_INT_24_8_WEBGL:null):void 0}return{convert:r}}class Ch extends Bo{constructor(t=[]){super(),this.cameras=t}}Ch.prototype.isArrayCamera=!0;class Ah extends br{constructor(){super(),this.type="Group"}}Ah.prototype.isGroup=!0;const Ih={type:"move"};class Sh{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new Ah,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new Ah,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new vi,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new vi),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new Ah,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new vi,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new vi),this._grip}dispatchEvent(t){return null!==this._targetRay&&this._targetRay.dispatchEvent(t),null!==this._grip&&this._grip.dispatchEvent(t),null!==this._hand&&this._hand.dispatchEvent(t),this}disconnect(t){return this.dispatchEvent({type:"disconnected",data:t}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(t,e,n){let i=null,r=null,o=null;const a=this._targetRay,s=this._grip,l=this._hand;if(t&&"visible-blurred"!==e.session.visibilityState)if(null!==a&&(i=e.getPose(t.targetRaySpace,n),null!==i&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(Ih))),l&&t.hand){o=!0;for(const o of t.hand.values()){const t=e.getJointPose(o,n);if(void 0===l.joints[o.jointName]){const t=new Ah;t.matrixAutoUpdate=!1,t.visible=!1,l.joints[o.jointName]=t,l.add(t)}const i=l.joints[o.jointName];null!==t&&(i.matrix.fromArray(t.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.jointRadius=t.radius),i.visible=null!==t}const i=l.joints["index-finger-tip"],r=l.joints["thumb-tip"],a=i.position.distanceTo(r.position),s=.02,c=.005;l.inputState.pinching&&a>s+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!l.inputState.pinching&&a<=s-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==s&&t.gripSpace&&(r=e.getPose(t.gripSpace,n),null!==r&&(s.matrix.fromArray(r.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),r.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(r.linearVelocity)):s.hasLinearVelocity=!1,r.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(r.angularVelocity)):s.hasAngularVelocity=!1));return null!==a&&(a.visible=null!==i),null!==s&&(s.visible=null!==r),null!==l&&(l.visible=null!==o),this}}class Mh extends ui{constructor(t,e,n,i,r,o,a,s,l,c){if(c=void 0!==c?c:Vt,c!==Vt&&c!==Gt)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===Vt&&(n=Mt),void 0===n&&c===Gt&&(n=Dt),super(null,i,r,o,a,s,c,n,l),this.image={width:t,height:e},this.magFilter=void 0!==a?a:ft,this.minFilter=void 0!==s?s:ft,this.flipY=!1,this.generateMipmaps=!1}}Mh.prototype.isDepthTexture=!0;class kh extends En{constructor(t,e){super();const n=this;let i=null,r=1,o=null,a="local-floor";const s=t.extensions.has("WEBGL_multisampled_render_to_texture");let l=null,c=null,u=null,h=null,d=!1,p=null;const f=e.getContextAttributes();let g=null,m=null;const v=[],y=new Map,b=new Bo;b.layers.enable(1),b.viewport=new di;const x=new Bo;x.layers.enable(2),x.viewport=new di;const w=[b,x],_=new Ch;_.layers.enable(1),_.layers.enable(2);let C=null,A=null;function I(t){const e=y.get(t.inputSource);e&&e.dispatchEvent({type:t.type,data:t.inputSource})}function S(){y.forEach((function(t,e){t.disconnect(e)})),y.clear(),C=null,A=null,t.setRenderTarget(g),h=null,u=null,c=null,i=null,m=null,L.stop(),n.isPresenting=!1,n.dispatchEvent({type:"sessionend"})}function M(t){const e=i.inputSources;for(let n=0;n<v.length;n++)y.set(e[n],v[n]);for(let n=0;n<t.removed.length;n++){const e=t.removed[n],i=y.get(e);i&&(i.dispatchEvent({type:"disconnected",data:e}),y.delete(e))}for(let n=0;n<t.added.length;n++){const e=t.added[n],i=y.get(e);i&&i.dispatchEvent({type:"connected",data:e})}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=v[t];return void 0===e&&(e=new Sh,v[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=v[t];return void 0===e&&(e=new Sh,v[t]=e),e.getGripSpace()},this.getHand=function(t){let e=v[t];return void 0===e&&(e=new Sh,v[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){r=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return o},this.getBaseLayer=function(){return null!==u?u:h},this.getBinding=function(){return c},this.getFrame=function(){return p},this.getSession=function(){return i},this.setSession=async function(l){if(i=l,null!==i){if(g=t.getRenderTarget(),i.addEventListener("select",I),i.addEventListener("selectstart",I),i.addEventListener("selectend",I),i.addEventListener("squeeze",I),i.addEventListener("squeezestart",I),i.addEventListener("squeezeend",I),i.addEventListener("end",S),i.addEventListener("inputsourceschange",M),!0!==f.xrCompatible&&await e.makeXRCompatible(),void 0===i.renderState.layers||!1===t.capabilities.isWebGL2){const n={antialias:void 0!==i.renderState.layers||f.antialias,alpha:f.alpha,depth:f.depth,stencil:f.stencil,framebufferScaleFactor:r};h=new XRWebGLLayer(i,e,n),i.updateRenderState({baseLayer:h}),m=new pi(h.framebufferWidth,h.framebufferHeight,{format:Nt,type:At,encoding:t.outputEncoding})}else{d=f.antialias;let n=null,o=null,a=null;f.depth&&(a=f.stencil?35056:33190,n=f.stencil?Gt:Vt,o=f.stencil?Dt:Mt);const l={colorFormat:f.alpha||d?32856:32849,depthFormat:a,scaleFactor:r};c=new XRWebGLBinding(i,e),u=c.createProjectionLayer(l),i.updateRenderState({layers:[u]}),m=d?new gi(u.textureWidth,u.textureHeight,{format:Nt,type:At,depthTexture:new Mh(u.textureWidth,u.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,ignoreDepth:u.ignoreDepthValues,useRenderToTexture:s,encoding:t.outputEncoding}):new pi(u.textureWidth,u.textureHeight,{format:f.alpha?Nt:Bt,type:At,depthTexture:new Mh(u.textureWidth,u.textureHeight,o,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,ignoreDepth:u.ignoreDepthValues,encoding:t.outputEncoding})}this.setFoveation(1),o=await i.requestReferenceSpace(a),L.setContext(i),L.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const k=new vi,E=new vi;function T(t,e,n){k.setFromMatrixPosition(e.matrixWorld),E.setFromMatrixPosition(n.matrixWorld);const i=k.distanceTo(E),r=e.projectionMatrix.elements,o=n.projectionMatrix.elements,a=r[14]/(r[10]-1),s=r[14]/(r[10]+1),l=(r[9]+1)/r[5],c=(r[9]-1)/r[5],u=(r[8]-1)/r[0],h=(o[8]+1)/o[0],d=a*u,p=a*h,f=i/(-u+h),g=f*-u;e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(g),t.translateZ(f),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.copy(t.matrixWorld).invert();const m=a+f,v=s+f,y=d-g,b=p+(i-g),x=l*s/v*m,w=c*s/v*m;t.projectionMatrix.makePerspective(y,b,x,w,m,v)}function O(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.updateCamera=function(t){if(null===i)return;_.near=x.near=b.near=t.near,_.far=x.far=b.far=t.far,C===_.near&&A===_.far||(i.updateRenderState({depthNear:_.near,depthFar:_.far}),C=_.near,A=_.far);const e=t.parent,n=_.cameras;O(_,e);for(let i=0;i<n.length;i++)O(n[i],e);_.matrixWorld.decompose(_.position,_.quaternion,_.scale),t.position.copy(_.position),t.quaternion.copy(_.quaternion),t.scale.copy(_.scale),t.matrix.copy(_.matrix),t.matrixWorld.copy(_.matrixWorld);const r=t.children;for(let i=0,o=r.length;i<o;i++)r[i].updateMatrixWorld(!0);2===n.length?T(_,b,x):_.projectionMatrix.copy(b.projectionMatrix)},this.getCamera=function(){return _},this.getFoveation=function(){return null!==u?u.fixedFoveation:null!==h?h.fixedFoveation:void 0},this.setFoveation=function(t){null!==u&&(u.fixedFoveation=t),null!==h&&void 0!==h.fixedFoveation&&(h.fixedFoveation=t)};let P=null;function j(e,n){if(l=n.getViewerPose(o),p=n,null!==l){const e=l.views;null!==h&&(t.setRenderTargetFramebuffer(m,h.framebuffer),t.setRenderTarget(m));let n=!1;e.length!==_.cameras.length&&(_.cameras.length=0,n=!0);for(let i=0;i<e.length;i++){const r=e[i];let o=null;if(null!==h)o=h.getViewport(r);else{const e=c.getViewSubImage(u,r);o=e.viewport,0===i&&(t.setRenderTargetTextures(m,e.colorTexture,u.ignoreDepthValues?void 0:e.depthStencilTexture),t.setRenderTarget(m))}const a=w[i];a.matrix.fromArray(r.transform.matrix),a.projectionMatrix.fromArray(r.projectionMatrix),a.viewport.set(o.x,o.y,o.width,o.height),0===i&&_.matrix.copy(a.matrix),!0===n&&_.cameras.push(a)}}const r=i.inputSources;for(let t=0;t<v.length;t++){const e=v[t],i=r[t];e.update(i,n,o)}P&&P(e,n),p=null}const L=new Ko;L.setAnimationLoop(j),this.setAnimationLoop=function(t){P=t},this.dispose=function(){}}}function Eh(t){function e(t,e){t.fogColor.value.copy(e.color),e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)}function n(t,e,n,g,y){e.isMeshBasicMaterial?i(t,e):e.isMeshLambertMaterial?(i(t,e),l(t,e)):e.isMeshToonMaterial?(i(t,e),u(t,e)):e.isMeshPhongMaterial?(i(t,e),c(t,e)):e.isMeshStandardMaterial?(i(t,e),e.isMeshPhysicalMaterial?d(t,e,y):h(t,e)):e.isMeshMatcapMaterial?(i(t,e),p(t,e)):e.isMeshDepthMaterial?(i(t,e),f(t,e)):e.isMeshDistanceMaterial?(i(t,e),m(t,e)):e.isMeshNormalMaterial?(i(t,e),v(t,e)):e.isLineBasicMaterial?(r(t,e),e.isLineDashedMaterial&&o(t,e)):e.isPointsMaterial?a(t,e,n,g):e.isSpriteMaterial?s(t,e):e.isShadowMaterial?(t.color.value.copy(e.color),t.opacity.value=e.opacity):e.isShaderMaterial&&(e.uniformsNeedUpdate=!1)}function i(e,n){e.opacity.value=n.opacity,n.color&&e.diffuse.value.copy(n.color),n.emissive&&e.emissive.value.copy(n.emissive).multiplyScalar(n.emissiveIntensity),n.map&&(e.map.value=n.map),n.alphaMap&&(e.alphaMap.value=n.alphaMap),n.specularMap&&(e.specularMap.value=n.specularMap),n.alphaTest>0&&(e.alphaTest.value=n.alphaTest);const i=t.get(n).envMap;let r,o;i&&(e.envMap.value=i,e.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,e.reflectivity.value=n.reflectivity,e.ior.value=n.ior,e.refractionRatio.value=n.refractionRatio),n.lightMap&&(e.lightMap.value=n.lightMap,e.lightMapIntensity.value=n.lightMapIntensity),n.aoMap&&(e.aoMap.value=n.aoMap,e.aoMapIntensity.value=n.aoMapIntensity),n.map?r=n.map:n.specularMap?r=n.specularMap:n.displacementMap?r=n.displacementMap:n.normalMap?r=n.normalMap:n.bumpMap?r=n.bumpMap:n.roughnessMap?r=n.roughnessMap:n.metalnessMap?r=n.metalnessMap:n.alphaMap?r=n.alphaMap:n.emissiveMap?r=n.emissiveMap:n.clearcoatMap?r=n.clearcoatMap:n.clearcoatNormalMap?r=n.clearcoatNormalMap:n.clearcoatRoughnessMap?r=n.clearcoatRoughnessMap:n.specularIntensityMap?r=n.specularIntensityMap:n.specularColorMap?r=n.specularColorMap:n.transmissionMap?r=n.transmissionMap:n.thicknessMap?r=n.thicknessMap:n.sheenColorMap?r=n.sheenColorMap:n.sheenRoughnessMap&&(r=n.sheenRoughnessMap),void 0!==r&&(r.isWebGLRenderTarget&&(r=r.texture),!0===r.matrixAutoUpdate&&r.updateMatrix(),e.uvTransform.value.copy(r.matrix)),n.aoMap?o=n.aoMap:n.lightMap&&(o=n.lightMap),void 0!==o&&(o.isWebGLRenderTarget&&(o=o.texture),!0===o.matrixAutoUpdate&&o.updateMatrix(),e.uv2Transform.value.copy(o.matrix))}function r(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity}function o(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}function a(t,e,n,i){let r;t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*n,t.scale.value=.5*i,e.map&&(t.map.value=e.map),e.alphaMap&&(t.alphaMap.value=e.alphaMap),e.alphaTest>0&&(t.alphaTest.value=e.alphaTest),e.map?r=e.map:e.alphaMap&&(r=e.alphaMap),void 0!==r&&(!0===r.matrixAutoUpdate&&r.updateMatrix(),t.uvTransform.value.copy(r.matrix))}function s(t,e){let n;t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map),e.alphaMap&&(t.alphaMap.value=e.alphaMap),e.alphaTest>0&&(t.alphaTest.value=e.alphaTest),e.map?n=e.map:e.alphaMap&&(n=e.alphaMap),void 0!==n&&(!0===n.matrixAutoUpdate&&n.updateMatrix(),t.uvTransform.value.copy(n.matrix))}function l(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}function c(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===g&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===g&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function u(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===g&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===g&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function h(e,n){e.roughness.value=n.roughness,e.metalness.value=n.metalness,n.roughnessMap&&(e.roughnessMap.value=n.roughnessMap),n.metalnessMap&&(e.metalnessMap.value=n.metalnessMap),n.emissiveMap&&(e.emissiveMap.value=n.emissiveMap),n.bumpMap&&(e.bumpMap.value=n.bumpMap,e.bumpScale.value=n.bumpScale,n.side===g&&(e.bumpScale.value*=-1)),n.normalMap&&(e.normalMap.value=n.normalMap,e.normalScale.value.copy(n.normalScale),n.side===g&&e.normalScale.value.negate()),n.displacementMap&&(e.displacementMap.value=n.displacementMap,e.displacementScale.value=n.displacementScale,e.displacementBias.value=n.displacementBias);const i=t.get(n).envMap;i&&(e.envMapIntensity.value=n.envMapIntensity)}function d(t,e,n){h(t,e),t.ior.value=e.ior,e.sheen>0&&(t.sheenColor.value.copy(e.sheenColor).multiplyScalar(e.sheen),t.sheenRoughness.value=e.sheenRoughness,e.sheenColorMap&&(t.sheenColorMap.value=e.sheenColorMap),e.sheenRoughnessMap&&(t.sheenRoughnessMap.value=e.sheenRoughnessMap)),e.clearcoat>0&&(t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap),e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap),e.clearcoatNormalMap&&(t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),t.clearcoatNormalMap.value=e.clearcoatNormalMap,e.side===g&&t.clearcoatNormalScale.value.negate())),e.transmission>0&&(t.transmission.value=e.transmission,t.transmissionSamplerMap.value=n.texture,t.transmissionSamplerSize.value.set(n.width,n.height),e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap),t.thickness.value=e.thickness,e.thicknessMap&&(t.thicknessMap.value=e.thicknessMap),t.attenuationDistance.value=e.attenuationDistance,t.attenuationColor.value.copy(e.attenuationColor)),t.specularIntensity.value=e.specularIntensity,t.specularColor.value.copy(e.specularColor),e.specularIntensityMap&&(t.specularIntensityMap.value=e.specularIntensityMap),e.specularColorMap&&(t.specularColorMap.value=e.specularColorMap)}function p(t,e){e.matcap&&(t.matcap.value=e.matcap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===g&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===g&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function f(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function m(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),t.referencePosition.value.copy(e.referencePosition),t.nearDistance.value=e.nearDistance,t.farDistance.value=e.farDistance}function v(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===g&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===g&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}return{refreshFogUniforms:e,refreshMaterialUniforms:n}}function Th(){const t=ai("canvas");return t.style.display="block",t}function Oh(t={}){const e=void 0!==t.canvas?t.canvas:Th(),n=void 0!==t.context?t.context:null,r=void 0!==t.alpha&&t.alpha,o=void 0===t.depth||t.depth,a=void 0===t.stencil||t.stencil,s=void 0!==t.antialias&&t.antialias,l=void 0===t.premultipliedAlpha||t.premultipliedAlpha,c=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,u=void 0!==t.powerPreference?t.powerPreference:"default",h=void 0!==t.failIfMajorPerformanceCaveat&&t.failIfMajorPerformanceCaveat;let d=null,p=null;const v=[],y=[];this.domElement=e,this.debug={checkShaderErrors:!0},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.outputEncoding=qe,this.physicallyCorrectLights=!1,this.toneMapping=J,this.toneMappingExposure=1;const b=this;let x=!1,w=0,_=0,C=null,A=-1,I=null;const S=new di,M=new di;let k=null,E=e.width,T=e.height,O=1,P=null,j=null;const L=new di(0,0,E,T),D=new di(0,0,E,T);let R=!1;const B=[],N=new qo;let F=!1,z=!1,V=null;const G=new Xi,H=new vi,W={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function U(){return null===C?O:1}let Z,Y,X,q,K,Q,$,tt,et,nt,it,rt,ot,at,st,lt,ct,ut,ht,pt,gt,mt,vt,yt=n;function bt(t,n){for(let i=0;i<t.length;i++){const r=t[i],o=e.getContext(r,n);if(null!==o)return o}return null}try{const t={alpha:r,depth:o,stencil:a,antialias:s,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:h};if("setAttribute"in e&&e.setAttribute("data-engine",`three.js r${i}`),e.addEventListener("webglcontextlost",Ct,!1),e.addEventListener("webglcontextrestored",It,!1),null===yt){const e=["webgl2","webgl","experimental-webgl"];if(!0===b.isWebGL1Renderer&&e.shift(),yt=bt(e,t),null===yt)throw bt(e)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}void 0===yt.getShaderPrecisionFormat&&(yt.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(Yt){throw console.error("THREE.WebGLRenderer: "+Yt.message),Yt}function xt(){Z=new lc(yt),Y=new Ol(yt,Z,t),Z.init(Y),mt=new _h(yt,Z,Y),X=new xh(yt,Z,Y),B[0]=1029,q=new hc(yt),K=new ih,Q=new wh(yt,Z,X,K,Y,mt,q),$=new jl(b),tt=new sc(b),et=new Qo(yt,Y),vt=new El(yt,Z,et,Y),nt=new cc(yt,et,q,vt),it=new vc(yt,nt,et,q),ht=new mc(yt,Y,Q),lt=new Pl(K),rt=new nh(b,$,tt,Z,Y,vt,lt),ot=new Eh(K),at=new sh,st=new fh(Z,Y),ut=new kl(b,$,X,it,l),ct=new bh(b,it,Y),pt=new Tl(yt,Z,q,Y),gt=new uc(yt,Z,q,Y),q.programs=rt.programs,b.capabilities=Y,b.extensions=Z,b.properties=K,b.renderLists=at,b.shadowMap=ct,b.state=X,b.info=q}xt();const wt=new kh(b,yt);function Ct(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),x=!0}function It(){console.log("THREE.WebGLRenderer: Context Restored."),x=!1;const t=q.autoReset,e=ct.enabled,n=ct.autoUpdate,i=ct.needsUpdate,r=ct.type;xt(),q.autoReset=t,ct.enabled=e,ct.autoUpdate=n,ct.needsUpdate=i,ct.type=r}function St(t){const e=t.target;e.removeEventListener("dispose",St),Mt(e)}function Mt(t){kt(t),K.remove(t)}function kt(t){const e=K.get(t).programs;void 0!==e&&(e.forEach((function(t){rt.releaseProgram(t)})),t.isShaderMaterial&&rt.releaseShaderCache(t))}this.xr=wt,this.getContext=function(){return yt},this.getContextAttributes=function(){return yt.getContextAttributes()},this.forceContextLoss=function(){const t=Z.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){const t=Z.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return O},this.setPixelRatio=function(t){void 0!==t&&(O=t,this.setSize(E,T,!1))},this.getSize=function(t){return t.set(E,T)},this.setSize=function(t,n,i){wt.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(E=t,T=n,e.width=Math.floor(t*O),e.height=Math.floor(n*O),!1!==i&&(e.style.width=t+"px",e.style.height=n+"px"),this.setViewport(0,0,t,n))},this.getDrawingBufferSize=function(t){return t.set(E*O,T*O).floor()},this.setDrawingBufferSize=function(t,n,i){E=t,T=n,O=i,e.width=Math.floor(t*i),e.height=Math.floor(n*i),this.setViewport(0,0,t,n)},this.getCurrentViewport=function(t){return t.copy(S)},this.getViewport=function(t){return t.copy(L)},this.setViewport=function(t,e,n,i){t.isVector4?L.set(t.x,t.y,t.z,t.w):L.set(t,e,n,i),X.viewport(S.copy(L).multiplyScalar(O).floor())},this.getScissor=function(t){return t.copy(D)},this.setScissor=function(t,e,n,i){t.isVector4?D.set(t.x,t.y,t.z,t.w):D.set(t,e,n,i),X.scissor(M.copy(D).multiplyScalar(O).floor())},this.getScissorTest=function(){return R},this.setScissorTest=function(t){X.setScissorTest(R=t)},this.setOpaqueSort=function(t){P=t},this.setTransparentSort=function(t){j=t},this.getClearColor=function(t){return t.copy(ut.getClearColor())},this.setClearColor=function(){ut.setClearColor.apply(ut,arguments)},this.getClearAlpha=function(){return ut.getClearAlpha()},this.setClearAlpha=function(){ut.setClearAlpha.apply(ut,arguments)},this.clear=function(t,e,n){let i=0;(void 0===t||t)&&(i|=16384),(void 0===e||e)&&(i|=256),(void 0===n||n)&&(i|=1024),yt.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){e.removeEventListener("webglcontextlost",Ct,!1),e.removeEventListener("webglcontextrestored",It,!1),at.dispose(),st.dispose(),K.dispose(),$.dispose(),tt.dispose(),it.dispose(),vt.dispose(),rt.dispose(),wt.dispose(),wt.removeEventListener("sessionstart",jt),wt.removeEventListener("sessionend",Lt),V&&(V.dispose(),V=null),Dt.stop()},this.renderBufferDirect=function(t,e,n,i,r,o){null===e&&(e=W);const a=r.isMesh&&r.matrixWorld.determinant()<0,s=Wt(t,e,n,i,r);X.setMaterial(i,a);let l=n.index;const c=n.attributes.position;if(null===l){if(void 0===c||0===c.count)return}else if(0===l.count)return;let u,h=1;!0===i.wireframe&&(l=nt.getWireframeAttribute(n),h=2),vt.setup(r,i,s,n,l);let d=pt;null!==l&&(u=et.get(l),d=gt,d.setIndex(u));const p=null!==l?l.count:c.count,f=n.drawRange.start*h,g=n.drawRange.count*h,m=null!==o?o.start*h:0,v=null!==o?o.count*h:1/0,y=Math.max(f,m),b=Math.min(p,f+g,m+v)-1,x=Math.max(0,b-y+1);if(0!==x){if(r.isMesh)!0===i.wireframe?(X.setLineWidth(i.wireframeLinewidth*U()),d.setMode(1)):d.setMode(4);else if(r.isLine){let t=i.linewidth;void 0===t&&(t=1),X.setLineWidth(t*U()),r.isLineSegments?d.setMode(1):r.isLineLoop?d.setMode(2):d.setMode(3)}else r.isPoints?d.setMode(0):r.isSprite&&d.setMode(4);if(r.isInstancedMesh)d.renderInstances(y,x,r.count);else if(n.isInstancedBufferGeometry){const t=Math.min(n.instanceCount,n._maxInstanceCount);d.renderInstances(y,x,t)}else d.render(y,x)}},this.compile=function(t,e){p=st.get(t),p.init(),y.push(p),t.traverseVisible((function(t){t.isLight&&t.layers.test(e.layers)&&(p.pushLight(t),t.castShadow&&p.pushShadow(t))})),p.setupLights(b.physicallyCorrectLights),t.traverse((function(e){const n=e.material;if(n)if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];Gt(r,t,e)}else Gt(n,t,e)})),y.pop(),p=null};let Et=null;function Pt(t){Et&&Et(t)}function jt(){Dt.stop()}function Lt(){Dt.start()}const Dt=new Ko;function Rt(t,e,n,i){if(!1===t.visible)return;const r=t.layers.test(e.layers);if(r)if(t.isGroup)n=t.renderOrder;else if(t.isLOD)!0===t.autoUpdate&&t.update(e);else if(t.isLight)p.pushLight(t),t.castShadow&&p.pushShadow(t);else if(t.isSprite){if(!t.frustumCulled||N.intersectsSprite(t)){i&&H.setFromMatrixPosition(t.matrixWorld).applyMatrix4(G);const e=it.update(t),r=t.material;r.visible&&d.push(t,e,r,n,H.z,null)}}else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.frame!==q.render.frame&&(t.skeleton.update(),t.skeleton.frame=q.render.frame),!t.frustumCulled||N.intersectsObject(t))){i&&H.setFromMatrixPosition(t.matrixWorld).applyMatrix4(G);const e=it.update(t),r=t.material;if(Array.isArray(r)){const i=e.groups;for(let o=0,a=i.length;o<a;o++){const a=i[o],s=r[a.materialIndex];s&&s.visible&&d.push(t,e,s,n,H.z,a)}}else r.visible&&d.push(t,e,r,n,H.z,null)}const o=t.children;for(let a=0,s=o.length;a<s;a++)Rt(o[a],e,n,i)}function Bt(t,e,n,i){const r=t.opaque,o=t.transmissive,a=t.transparent;p.setupLightsView(n),o.length>0&&Ft(r,e,n),i&&X.viewport(S.copy(i)),r.length>0&&zt(r,e,n),o.length>0&&zt(o,e,n),a.length>0&&zt(a,e,n)}function Ft(t,e,n){if(null===V){const t=!0===s&&!0===Y.isWebGL2,e=t?gi:pi;V=new e(1024,1024,{generateMipmaps:!0,type:null!==mt.convert(Ot)?Ot:At,minFilter:_t,magFilter:ft,wrapS:dt,wrapT:dt,useRenderToTexture:Z.has("WEBGL_multisampled_render_to_texture")})}const i=b.getRenderTarget();b.setRenderTarget(V),b.clear();const r=b.toneMapping;b.toneMapping=J,zt(t,e,n),b.toneMapping=r,Q.updateMultisampleRenderTarget(V),Q.updateRenderTargetMipmap(V),b.setRenderTarget(i)}function zt(t,e,n){const i=!0===e.isScene?e.overrideMaterial:null;for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.object,s=o.geometry,l=null===i?o.material:i,c=o.group;a.layers.test(n.layers)&&Vt(a,e,n,s,l,c)}}function Vt(t,e,n,i,r,o){t.onBeforeRender(b,e,n,i,r,o),t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),r.onBeforeRender(b,e,n,i,t,o),!0===r.transparent&&r.side===m?(r.side=g,r.needsUpdate=!0,b.renderBufferDirect(n,e,i,r,t,o),r.side=f,r.needsUpdate=!0,b.renderBufferDirect(n,e,i,r,t,o),r.side=m):b.renderBufferDirect(n,e,i,r,t,o),t.onAfterRender(b,e,n,i,r,o)}function Gt(t,e,n){!0!==e.isScene&&(e=W);const i=K.get(t),r=p.state.lights,o=p.state.shadowsArray,a=r.state.version,s=rt.getParameters(t,r.state,o,e,n),l=rt.getProgramCacheKey(s);let c=i.programs;i.environment=t.isMeshStandardMaterial?e.environment:null,i.fog=e.fog,i.envMap=(t.isMeshStandardMaterial?tt:$).get(t.envMap||i.environment),void 0===c&&(t.addEventListener("dispose",St),c=new Map,i.programs=c);let u=c.get(l);if(void 0!==u){if(i.currentProgram===u&&i.lightsStateVersion===a)return Ht(t,s),u}else s.uniforms=rt.getUniforms(t),t.onBuild(n,s,b),t.onBeforeCompile(s,b),u=rt.acquireProgram(s,l),c.set(l,u),i.uniforms=s.uniforms;const h=i.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(h.clippingPlanes=lt.uniform),Ht(t,s),i.needsLights=Zt(t),i.lightsStateVersion=a,i.needsLights&&(h.ambientLightColor.value=r.state.ambient,h.lightProbe.value=r.state.probe,h.directionalLights.value=r.state.directional,h.directionalLightShadows.value=r.state.directionalShadow,h.spotLights.value=r.state.spot,h.spotLightShadows.value=r.state.spotShadow,h.rectAreaLights.value=r.state.rectArea,h.ltc_1.value=r.state.rectAreaLTC1,h.ltc_2.value=r.state.rectAreaLTC2,h.pointLights.value=r.state.point,h.pointLightShadows.value=r.state.pointShadow,h.hemisphereLights.value=r.state.hemi,h.directionalShadowMap.value=r.state.directionalShadowMap,h.directionalShadowMatrix.value=r.state.directionalShadowMatrix,h.spotShadowMap.value=r.state.spotShadowMap,h.spotShadowMatrix.value=r.state.spotShadowMatrix,h.pointShadowMap.value=r.state.pointShadowMap,h.pointShadowMatrix.value=r.state.pointShadowMatrix);const d=u.getUniforms(),f=Au.seqWithValue(d.seq,h);return i.currentProgram=u,i.uniformsList=f,u}function Ht(t,e){const n=K.get(t);n.outputEncoding=e.outputEncoding,n.instancing=e.instancing,n.skinning=e.skinning,n.morphTargets=e.morphTargets,n.morphNormals=e.morphNormals,n.morphTargetsCount=e.morphTargetsCount,n.numClippingPlanes=e.numClippingPlanes,n.numIntersection=e.numClipIntersection,n.vertexAlphas=e.vertexAlphas,n.vertexTangents=e.vertexTangents,n.toneMapping=e.toneMapping}function Wt(t,e,n,i,r){!0!==e.isScene&&(e=W),Q.resetTextureUnits();const o=e.fog,a=i.isMeshStandardMaterial?e.environment:null,s=null===C?b.outputEncoding:C.texture.encoding,l=(i.isMeshStandardMaterial?tt:$).get(i.envMap||a),c=!0===i.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!i.normalMap&&!!n.attributes.tangent,h=!!n.morphAttributes.position,d=!!n.morphAttributes.normal,f=n.morphAttributes.position?n.morphAttributes.position.length:0,g=i.toneMapped?b.toneMapping:J,m=K.get(i),v=p.state.lights;if(!0===F&&(!0===z||t!==I)){const e=t===I&&i.id===A;lt.setState(i,t,e)}let y=!1;i.version===m.__version?m.needsLights&&m.lightsStateVersion!==v.state.version?y=!0:m.outputEncoding!==s?y=!0:r.isInstancedMesh&&!1===m.instancing?y=!0:r.isInstancedMesh||!0!==m.instancing?r.isSkinnedMesh&&!1===m.skinning?y=!0:r.isSkinnedMesh||!0!==m.skinning?m.envMap!==l?y=!0:i.fog&&m.fog!==o?y=!0:void 0===m.numClippingPlanes||m.numClippingPlanes===lt.numPlanes&&m.numIntersection===lt.numIntersection?m.vertexAlphas!==c?y=!0:m.vertexTangents!==u?y=!0:m.morphTargets!==h?y=!0:m.morphNormals!==d?y=!0:m.toneMapping!==g?y=!0:!0===Y.isWebGL2&&m.morphTargetsCount!==f&&(y=!0):y=!0:y=!0:y=!0:(y=!0,m.__version=i.version);let x=m.currentProgram;!0===y&&(x=Gt(i,e,r));let w=!1,_=!1,S=!1;const M=x.getUniforms(),k=m.uniforms;if(X.useProgram(x.program)&&(w=!0,_=!0,S=!0),i.id!==A&&(A=i.id,_=!0),w||I!==t){if(M.setValue(yt,"projectionMatrix",t.projectionMatrix),Y.logarithmicDepthBuffer&&M.setValue(yt,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),I!==t&&(I=t,_=!0,S=!0),i.isShaderMaterial||i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshStandardMaterial||i.envMap){const e=M.map.cameraPosition;void 0!==e&&e.setValue(yt,H.setFromMatrixPosition(t.matrixWorld))}(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial)&&M.setValue(yt,"isOrthographic",!0===t.isOrthographicCamera),(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial||i.isShadowMaterial||r.isSkinnedMesh)&&M.setValue(yt,"viewMatrix",t.matrixWorldInverse)}if(r.isSkinnedMesh){M.setOptional(yt,r,"bindMatrix"),M.setOptional(yt,r,"bindMatrixInverse");const t=r.skeleton;t&&(Y.floatVertexTextures?(null===t.boneTexture&&t.computeBoneTexture(),M.setValue(yt,"boneTexture",t.boneTexture,Q),M.setValue(yt,"boneTextureSize",t.boneTextureSize)):M.setOptional(yt,t,"boneMatrices"))}return!n||void 0===n.morphAttributes.position&&void 0===n.morphAttributes.normal||ht.update(r,n,i,x),(_||m.receiveShadow!==r.receiveShadow)&&(m.receiveShadow=r.receiveShadow,M.setValue(yt,"receiveShadow",r.receiveShadow)),_&&(M.setValue(yt,"toneMappingExposure",b.toneMappingExposure),m.needsLights&&Ut(k,S),o&&i.fog&&ot.refreshFogUniforms(k,o),ot.refreshMaterialUniforms(k,i,O,T,V),Au.upload(yt,m.uniformsList,k,Q)),i.isShaderMaterial&&!0===i.uniformsNeedUpdate&&(Au.upload(yt,m.uniformsList,k,Q),i.uniformsNeedUpdate=!1),i.isSpriteMaterial&&M.setValue(yt,"center",r.center),M.setValue(yt,"modelViewMatrix",r.modelViewMatrix),M.setValue(yt,"normalMatrix",r.normalMatrix),M.setValue(yt,"modelMatrix",r.matrixWorld),x}function Ut(t,e){t.ambientLightColor.needsUpdate=e,t.lightProbe.needsUpdate=e,t.directionalLights.needsUpdate=e,t.directionalLightShadows.needsUpdate=e,t.pointLights.needsUpdate=e,t.pointLightShadows.needsUpdate=e,t.spotLights.needsUpdate=e,t.spotLightShadows.needsUpdate=e,t.rectAreaLights.needsUpdate=e,t.hemisphereLights.needsUpdate=e}function Zt(t){return t.isMeshLambertMaterial||t.isMeshToonMaterial||t.isMeshPhongMaterial||t.isMeshStandardMaterial||t.isShadowMaterial||t.isShaderMaterial&&!0===t.lights}Dt.setAnimationLoop(Pt),"undefined"!==typeof window&&Dt.setContext(window),this.setAnimationLoop=function(t){Et=t,wt.setAnimationLoop(t),null===t?Dt.stop():Dt.start()},wt.addEventListener("sessionstart",jt),wt.addEventListener("sessionend",Lt),this.render=function(t,e){if(void 0!==e&&!0!==e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!0===x)return;!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),!0===wt.enabled&&!0===wt.isPresenting&&(!0===wt.cameraAutoUpdate&&wt.updateCamera(e),e=wt.getCamera()),!0===t.isScene&&t.onBeforeRender(b,t,e,C),p=st.get(t,y.length),p.init(),y.push(p),G.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),N.setFromProjectionMatrix(G),z=this.localClippingEnabled,F=lt.init(this.clippingPlanes,z,e),d=at.get(t,v.length),d.init(),v.push(d),Rt(t,e,0,b.sortObjects),d.finish(),!0===b.sortObjects&&d.sort(P,j),!0===F&&lt.beginShadows();const n=p.state.shadowsArray;if(ct.render(n,t,e),!0===F&&lt.endShadows(),!0===this.info.autoReset&&this.info.reset(),ut.render(d,t),p.setupLights(b.physicallyCorrectLights),e.isArrayCamera){const n=e.cameras;for(let e=0,i=n.length;e<i;e++){const i=n[e];Bt(d,t,i,i.viewport)}}else Bt(d,t,e);null!==C&&(Q.updateMultisampleRenderTarget(C),Q.updateRenderTargetMipmap(C)),!0===t.isScene&&t.onAfterRender(b,t,e),X.buffers.depth.setTest(!0),X.buffers.depth.setMask(!0),X.buffers.color.setMask(!0),X.setPolygonOffset(!1),vt.resetDefaultState(),A=-1,I=null,y.pop(),p=y.length>0?y[y.length-1]:null,v.pop(),d=v.length>0?v[v.length-1]:null},this.getActiveCubeFace=function(){return w},this.getActiveMipmapLevel=function(){return _},this.getRenderTarget=function(){return C},this.setRenderTargetTextures=function(t,e,n){K.get(t.texture).__webglTexture=e,K.get(t.depthTexture).__webglTexture=n;const i=K.get(t);i.__hasExternalTextures=!0,i.__hasExternalTextures&&(i.__autoAllocateDepthBuffer=void 0===n,i.__autoAllocateDepthBuffer||t.useRenderToTexture&&(console.warn("render-to-texture extension was disabled because an external texture was provided"),t.useRenderToTexture=!1,t.useRenderbuffer=!0))},this.setRenderTargetFramebuffer=function(t,e){const n=K.get(t);n.__webglFramebuffer=e,n.__useDefaultFramebuffer=void 0===e},this.setRenderTarget=function(t,e=0,n=0){C=t,w=e,_=n;let i=!0;if(t){const e=K.get(t);void 0!==e.__useDefaultFramebuffer?(X.bindFramebuffer(36160,null),i=!1):void 0===e.__webglFramebuffer?Q.setupRenderTarget(t):e.__hasExternalTextures&&Q.rebindTextures(t,K.get(t.texture).__webglTexture,K.get(t.depthTexture).__webglTexture)}let r=null,o=!1,a=!1;if(t){const n=t.texture;(n.isDataTexture3D||n.isDataTexture2DArray)&&(a=!0);const i=K.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(r=i[e],o=!0):r=t.useRenderbuffer?K.get(t).__webglMultisampledFramebuffer:i,S.copy(t.viewport),M.copy(t.scissor),k=t.scissorTest}else S.copy(L).multiplyScalar(O).floor(),M.copy(D).multiplyScalar(O).floor(),k=R;const s=X.bindFramebuffer(36160,r);if(s&&Y.drawBuffers&&i){let e=!1;if(t)if(t.isWebGLMultipleRenderTargets){const n=t.texture;if(B.length!==n.length||36064!==B[0]){for(let t=0,e=n.length;t<e;t++)B[t]=36064+t;B.length=n.length,e=!0}}else 1===B.length&&36064===B[0]||(B[0]=36064,B.length=1,e=!0);else 1===B.length&&1029===B[0]||(B[0]=1029,B.length=1,e=!0);e&&(Y.isWebGL2?yt.drawBuffers(B):Z.get("WEBGL_draw_buffers").drawBuffersWEBGL(B))}if(X.viewport(S),X.scissor(M),X.setScissorTest(k),o){const i=K.get(t.texture);yt.framebufferTexture2D(36160,36064,34069+e,i.__webglTexture,n)}else if(a){const i=K.get(t.texture),r=e||0;yt.framebufferTextureLayer(36160,36064,i.__webglTexture,n||0,r)}A=-1},this.readRenderTargetPixels=function(t,e,n,i,r,o,a){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let s=K.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==a&&(s=s[a]),s){X.bindFramebuffer(36160,s);try{const a=t.texture,s=a.format,l=a.type;if(s!==Nt&&mt.convert(s)!==yt.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===Ot&&(Z.has("EXT_color_buffer_half_float")||Y.isWebGL2&&Z.has("EXT_color_buffer_float"));if(l!==At&&mt.convert(l)!==yt.getParameter(35738)&&(l!==Tt||!(Y.isWebGL2||Z.has("OES_texture_float")||Z.has("WEBGL_color_buffer_float")))&&!c)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===yt.checkFramebufferStatus(36160)?e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&yt.readPixels(e,n,i,r,mt.convert(s),mt.convert(l),o):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{const t=null!==C?K.get(C).__webglFramebuffer:null;X.bindFramebuffer(36160,t)}}},this.copyFramebufferToTexture=function(t,e,n=0){if(!0!==e.isFramebufferTexture)return void console.error("THREE.WebGLRenderer: copyFramebufferToTexture() can only be used with FramebufferTexture.");const i=Math.pow(2,-n),r=Math.floor(e.image.width*i),o=Math.floor(e.image.height*i);Q.setTexture2D(e,0),yt.copyTexSubImage2D(3553,n,0,0,t.x,t.y,r,o),X.unbindTexture()},this.copyTextureToTexture=function(t,e,n,i=0){const r=e.image.width,o=e.image.height,a=mt.convert(n.format),s=mt.convert(n.type);Q.setTexture2D(n,0),yt.pixelStorei(37440,n.flipY),yt.pixelStorei(37441,n.premultiplyAlpha),yt.pixelStorei(3317,n.unpackAlignment),e.isDataTexture?yt.texSubImage2D(3553,i,t.x,t.y,r,o,a,s,e.image.data):e.isCompressedTexture?yt.compressedTexSubImage2D(3553,i,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,a,e.mipmaps[0].data):yt.texSubImage2D(3553,i,t.x,t.y,a,s,e.image),0===i&&n.generateMipmaps&&yt.generateMipmap(3553),X.unbindTexture()},this.copyTextureToTexture3D=function(t,e,n,i,r=0){if(b.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const o=t.max.x-t.min.x+1,a=t.max.y-t.min.y+1,s=t.max.z-t.min.z+1,l=mt.convert(i.format),c=mt.convert(i.type);let u;if(i.isDataTexture3D)Q.setTexture3D(i,0),u=32879;else{if(!i.isDataTexture2DArray)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");Q.setTexture2DArray(i,0),u=35866}yt.pixelStorei(37440,i.flipY),yt.pixelStorei(37441,i.premultiplyAlpha),yt.pixelStorei(3317,i.unpackAlignment);const h=yt.getParameter(3314),d=yt.getParameter(32878),p=yt.getParameter(3316),f=yt.getParameter(3315),g=yt.getParameter(32877),m=n.isCompressedTexture?n.mipmaps[0]:n.image;yt.pixelStorei(3314,m.width),yt.pixelStorei(32878,m.height),yt.pixelStorei(3316,t.min.x),yt.pixelStorei(3315,t.min.y),yt.pixelStorei(32877,t.min.z),n.isDataTexture||n.isDataTexture3D?yt.texSubImage3D(u,r,e.x,e.y,e.z,o,a,s,l,c,m.data):n.isCompressedTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),yt.compressedTexSubImage3D(u,r,e.x,e.y,e.z,o,a,s,l,m.data)):yt.texSubImage3D(u,r,e.x,e.y,e.z,o,a,s,l,c,m),yt.pixelStorei(3314,h),yt.pixelStorei(32878,d),yt.pixelStorei(3316,p),yt.pixelStorei(3315,f),yt.pixelStorei(32877,g),0===r&&i.generateMipmaps&&yt.generateMipmap(u),X.unbindTexture()},this.initTexture=function(t){Q.setTexture2D(t,0),X.unbindTexture()},this.resetState=function(){w=0,_=0,C=null,X.reset(),vt.reset()},"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}Oh.prototype.isWebGLRenderer=!0;class Ph extends Oh{}Ph.prototype.isWebGL1Renderer=!0;class jh{constructor(t,e=25e-5){this.name="",this.color=new Fr(t),this.density=e}clone(){return new jh(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}jh.prototype.isFogExp2=!0;class Lh{constructor(t,e=1,n=1e3){this.name="",this.color=new Fr(t),this.near=e,this.far=n}clone(){return new Lh(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}Lh.prototype.isFog=!0;class Dh extends br{constructor(){super(),this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0,"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.fog&&(e.object.fog=this.fog.toJSON()),e}}Dh.prototype.isScene=!0;class Rh{constructor(t,e){this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=yn,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Ln()}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,e,n){t*=this.stride,n*=e.stride;for(let i=0,r=this.stride;i<r;i++)this.array[t+i]=e.array[n+i];return this}set(t,e=0){return this.array.set(t,e),this}clone(t){void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Ln()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const e=new this.array.constructor(t.arrayBuffers[this.array.buffer._uuid]),n=new this.constructor(e,this.stride);return n.setUsage(this.usage),n}onUpload(t){return this.onUploadCallback=t,this}toJSON(t){return void 0===t.arrayBuffers&&(t.arrayBuffers={}),void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=Ln()),void 0===t.arrayBuffers[this.array.buffer._uuid]&&(t.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}Rh.prototype.isInterleavedBuffer=!0;const Bh=new vi;class Nh{constructor(t,e,n,i=!1){this.name="",this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===i}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(t){this.data.needsUpdate=t}applyMatrix4(t){for(let e=0,n=this.data.count;e<n;e++)Bh.x=this.getX(e),Bh.y=this.getY(e),Bh.z=this.getZ(e),Bh.applyMatrix4(t),this.setXYZ(e,Bh.x,Bh.y,Bh.z);return this}applyNormalMatrix(t){for(let e=0,n=this.count;e<n;e++)Bh.x=this.getX(e),Bh.y=this.getY(e),Bh.z=this.getZ(e),Bh.applyNormalMatrix(t),this.setXYZ(e,Bh.x,Bh.y,Bh.z);return this}transformDirection(t){for(let e=0,n=this.count;e<n;e++)Bh.x=this.getX(e),Bh.y=this.getY(e),Bh.z=this.getZ(e),Bh.transformDirection(t),this.setXYZ(e,Bh.x,Bh.y,Bh.z);return this}setX(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this}setY(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this}setZ(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this}setW(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this}getX(t){return this.data.array[t*this.data.stride+this.offset]}getY(t){return this.data.array[t*this.data.stride+this.offset+1]}getZ(t){return this.data.array[t*this.data.stride+this.offset+2]}getW(t){return this.data.array[t*this.data.stride+this.offset+3]}setXY(t,e,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this}setXYZ(t,e,n,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this}setXYZW(t,e,n,i,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this.data.array[t+3]=r,this}clone(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return new Hr(new this.array.constructor(t),this.itemSize,this.normalized)}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.clone(t)),new Nh(t.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(t){if(void 0===t){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");const t=[];for(let e=0;e<this.count;e++){const n=e*this.data.stride+this.offset;for(let e=0;e<this.itemSize;e++)t.push(this.data.array[n+e])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}return void 0===t.interleavedBuffers&&(t.interleavedBuffers={}),void 0===t.interleavedBuffers[this.data.uuid]&&(t.interleavedBuffers[this.data.uuid]=this.data.toJSON(t)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}Nh.prototype.isInterleavedBufferAttribute=!0;class Fh extends Pr{constructor(t){super(),this.type="SpriteMaterial",this.color=new Fr(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this}}let zh;Fh.prototype.isSpriteMaterial=!0;const Vh=new vi,Gh=new vi,Hh=new vi,Wh=new ei,Uh=new ei,Zh=new Xi,Yh=new vi,Xh=new vi,qh=new vi,Kh=new ei,Qh=new ei,Jh=new ei;class $h extends br{constructor(t){if(super(),this.type="Sprite",void 0===zh){zh=new so;const t=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),e=new Rh(t,5);zh.setIndex([0,1,2,0,2,3]),zh.setAttribute("position",new Nh(e,3,0,!1)),zh.setAttribute("uv",new Nh(e,2,3,!1))}this.geometry=zh,this.material=void 0!==t?t:new Fh,this.center=new ei(.5,.5)}raycast(t,e){null===t.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),Gh.setFromMatrixScale(this.matrixWorld),Zh.copy(t.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(t.camera.matrixWorldInverse,this.matrixWorld),Hh.setFromMatrixPosition(this.modelViewMatrix),t.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&Gh.multiplyScalar(-Hh.z);const n=this.material.rotation;let i,r;0!==n&&(r=Math.cos(n),i=Math.sin(n));const o=this.center;td(Yh.set(-.5,-.5,0),Hh,o,Gh,i,r),td(Xh.set(.5,-.5,0),Hh,o,Gh,i,r),td(qh.set(.5,.5,0),Hh,o,Gh,i,r),Kh.set(0,0),Qh.set(1,0),Jh.set(1,1);let a=t.ray.intersectTriangle(Yh,Xh,qh,!1,Vh);if(null===a&&(td(Xh.set(-.5,.5,0),Hh,o,Gh,i,r),Qh.set(0,1),a=t.ray.intersectTriangle(Yh,qh,Xh,!1,Vh),null===a))return;const s=t.ray.origin.distanceTo(Vh);s<t.near||s>t.far||e.push({distance:s,point:Vh.clone(),uv:Tr.getUV(Vh,Yh,Xh,qh,Kh,Qh,Jh,new ei),face:null,object:this})}copy(t){return super.copy(t),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}}function td(t,e,n,i,r,o){Wh.subVectors(t,n).addScalar(.5).multiply(i),void 0!==r?(Uh.x=o*Wh.x-r*Wh.y,Uh.y=r*Wh.x+o*Wh.y):Uh.copy(Wh),t.copy(e),t.x+=Uh.x,t.y+=Uh.y,t.applyMatrix4(Zh)}$h.prototype.isSprite=!0;const ed=new vi,nd=new vi;class id extends br{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(t){super.copy(t,!1);const e=t.levels;for(let n=0,i=e.length;n<i;n++){const t=e[n];this.addLevel(t.object.clone(),t.distance)}return this.autoUpdate=t.autoUpdate,this}addLevel(t,e=0){e=Math.abs(e);const n=this.levels;let i;for(i=0;i<n.length;i++)if(e<n[i].distance)break;return n.splice(i,0,{distance:e,object:t}),this.add(t),this}getCurrentLevel(){return this._currentLevel}getObjectForDistance(t){const e=this.levels;if(e.length>0){let n,i;for(n=1,i=e.length;n<i;n++)if(t<e[n].distance)break;return e[n-1].object}return null}raycast(t,e){const n=this.levels;if(n.length>0){ed.setFromMatrixPosition(this.matrixWorld);const n=t.ray.origin.distanceTo(ed);this.getObjectForDistance(n).raycast(t,e)}}update(t){const e=this.levels;if(e.length>1){ed.setFromMatrixPosition(t.matrixWorld),nd.setFromMatrixPosition(this.matrixWorld);const n=ed.distanceTo(nd)/t.zoom;let i,r;for(e[0].object.visible=!0,i=1,r=e.length;i<r;i++){if(!(n>=e[i].distance))break;e[i-1].object.visible=!1,e[i].object.visible=!0}for(this._currentLevel=i-1;i<r;i++)e[i].object.visible=!1}}toJSON(t){const e=super.toJSON(t);!1===this.autoUpdate&&(e.object.autoUpdate=!1),e.object.levels=[];const n=this.levels;for(let i=0,r=n.length;i<r;i++){const t=n[i];e.object.levels.push({object:t.object.uuid,distance:t.distance})}return e}}const rd=new vi,od=new di,ad=new di,sd=new vi,ld=new Xi;class cd extends So{constructor(t,e){super(t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Xi,this.bindMatrixInverse=new Xi}copy(t){return super.copy(t),this.bindMode=t.bindMode,this.bindMatrix.copy(t.bindMatrix),this.bindMatrixInverse.copy(t.bindMatrixInverse),this.skeleton=t.skeleton,this}bind(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.copy(e).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const t=new di,e=this.geometry.attributes.skinWeight;for(let n=0,i=e.count;n<i;n++){t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.w=e.getW(n);const i=1/t.manhattanLength();i!==1/0?t.multiplyScalar(i):t.set(1,0,0,0),e.setXYZW(n,t.x,t.y,t.z,t.w)}}updateMatrixWorld(t){super.updateMatrixWorld(t),"attached"===this.bindMode?this.bindMatrixInverse.copy(this.matrixWorld).invert():"detached"===this.bindMode?this.bindMatrixInverse.copy(this.bindMatrix).invert():console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)}boneTransform(t,e){const n=this.skeleton,i=this.geometry;od.fromBufferAttribute(i.attributes.skinIndex,t),ad.fromBufferAttribute(i.attributes.skinWeight,t),rd.copy(e).applyMatrix4(this.bindMatrix),e.set(0,0,0);for(let r=0;r<4;r++){const t=ad.getComponent(r);if(0!==t){const i=od.getComponent(r);ld.multiplyMatrices(n.bones[i].matrixWorld,n.boneInverses[i]),e.addScaledVector(sd.copy(rd).applyMatrix4(ld),t)}}return e.applyMatrix4(this.bindMatrixInverse)}}cd.prototype.isSkinnedMesh=!0;class ud extends br{constructor(){super(),this.type="Bone"}}ud.prototype.isBone=!0;class hd extends ui{constructor(t=null,e=1,n=1,i,r,o,a,s,l=ft,c=ft,u,h){super(null,o,a,s,l,c,i,r,u,h),this.image={data:t,width:e,height:n},this.magFilter=l,this.minFilter=c,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}hd.prototype.isDataTexture=!0;const dd=new Xi,pd=new Xi;class fd{constructor(t=[],e=[]){this.uuid=Ln(),this.bones=t.slice(0),this.boneInverses=e,this.boneMatrices=null,this.boneTexture=null,this.boneTextureSize=0,this.frame=-1,this.init()}init(){const t=this.bones,e=this.boneInverses;if(this.boneMatrices=new Float32Array(16*t.length),0===e.length)this.calculateInverses();else if(t.length!==e.length){console.warn("THREE.Skeleton: Number of inverse bone matrices does not match amount of bones."),this.boneInverses=[];for(let t=0,e=this.bones.length;t<e;t++)this.boneInverses.push(new Xi)}}calculateInverses(){this.boneInverses.length=0;for(let t=0,e=this.bones.length;t<e;t++){const e=new Xi;this.bones[t]&&e.copy(this.bones[t].matrixWorld).invert(),this.boneInverses.push(e)}}pose(){for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];e&&e.matrixWorld.copy(this.boneInverses[t]).invert()}for(let t=0,e=this.bones.length;t<e;t++){const e=this.bones[t];e&&(e.parent&&e.parent.isBone?(e.matrix.copy(e.parent.matrixWorld).invert(),e.matrix.multiply(e.matrixWorld)):e.matrix.copy(e.matrixWorld),e.matrix.decompose(e.position,e.quaternion,e.scale))}}update(){const t=this.bones,e=this.boneInverses,n=this.boneMatrices,i=this.boneTexture;for(let r=0,o=t.length;r<o;r++){const i=t[r]?t[r].matrixWorld:pd;dd.multiplyMatrices(i,e[r]),dd.toArray(n,16*r)}null!==i&&(i.needsUpdate=!0)}clone(){return new fd(this.bones,this.boneInverses)}computeBoneTexture(){let t=Math.sqrt(4*this.bones.length);t=Qn(t),t=Math.max(t,4);const e=new Float32Array(t*t*4);e.set(this.boneMatrices);const n=new hd(e,t,t,Nt,Tt);return n.needsUpdate=!0,this.boneMatrices=e,this.boneTexture=n,this.boneTextureSize=t,this}getBoneByName(t){for(let e=0,n=this.bones.length;e<n;e++){const n=this.bones[e];if(n.name===t)return n}}dispose(){null!==this.boneTexture&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(t,e){this.uuid=t.uuid;for(let n=0,i=t.bones.length;n<i;n++){const i=t.bones[n];let r=e[i];void 0===r&&(console.warn("THREE.Skeleton: No bone found with UUID:",i),r=new ud),this.bones.push(r),this.boneInverses.push((new Xi).fromArray(t.boneInverses[n]))}return this.init(),this}toJSON(){const t={metadata:{version:4.5,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};t.uuid=this.uuid;const e=this.bones,n=this.boneInverses;for(let i=0,r=e.length;i<r;i++){const r=e[i];t.bones.push(r.uuid);const o=n[i];t.boneInverses.push(o.toArray())}return t}}class gd extends Hr{constructor(t,e,n,i=1){"number"===typeof n&&(i=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),super(t,e,n),this.meshPerAttribute=i}copy(t){return super.copy(t),this.meshPerAttribute=t.meshPerAttribute,this}toJSON(){const t=super.toJSON();return t.meshPerAttribute=this.meshPerAttribute,t.isInstancedBufferAttribute=!0,t}}gd.prototype.isInstancedBufferAttribute=!0;const md=new Xi,vd=new Xi,yd=[],bd=new So;class xd extends So{constructor(t,e,n){super(t,e),this.instanceMatrix=new gd(new Float32Array(16*n),16),this.instanceColor=null,this.count=n,this.frustumCulled=!1}copy(t){return super.copy(t),this.instanceMatrix.copy(t.instanceMatrix),null!==t.instanceColor&&(this.instanceColor=t.instanceColor.clone()),this.count=t.count,this}getColorAt(t,e){e.fromArray(this.instanceColor.array,3*t)}getMatrixAt(t,e){e.fromArray(this.instanceMatrix.array,16*t)}raycast(t,e){const n=this.matrixWorld,i=this.count;if(bd.geometry=this.geometry,bd.material=this.material,void 0!==bd.material)for(let r=0;r<i;r++){this.getMatrixAt(r,md),vd.multiplyMatrices(n,md),bd.matrixWorld=vd,bd.raycast(t,yd);for(let t=0,n=yd.length;t<n;t++){const n=yd[t];n.instanceId=r,n.object=this,e.push(n)}yd.length=0}}setColorAt(t,e){null===this.instanceColor&&(this.instanceColor=new gd(new Float32Array(3*this.instanceMatrix.count),3)),e.toArray(this.instanceColor.array,3*t)}setMatrixAt(t,e){e.toArray(this.instanceMatrix.array,16*t)}updateMorphTargets(){}dispose(){this.dispatchEvent({type:"dispose"})}}xd.prototype.isInstancedMesh=!0;class wd extends Pr{constructor(t){super(),this.type="LineBasicMaterial",this.color=new Fr(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this}}wd.prototype.isLineBasicMaterial=!0;const _d=new vi,Cd=new vi,Ad=new Xi,Id=new Yi,Sd=new Fi;class Md extends br{constructor(t=new so,e=new wd){super(),this.type="Line",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t){return super.copy(t),this.material=t.material,this.geometry=t.geometry,this}computeLineDistances(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[0];for(let t=1,i=e.count;t<i;t++)_d.fromBufferAttribute(e,t-1),Cd.fromBufferAttribute(e,t),n[t]=n[t-1],n[t]+=_d.distanceTo(Cd);t.setAttribute("lineDistance",new Jr(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.Line.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}raycast(t,e){const n=this.geometry,i=this.matrixWorld,r=t.params.Line.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Sd.copy(n.boundingSphere),Sd.applyMatrix4(i),Sd.radius+=r,!1===t.ray.intersectsSphere(Sd))return;Ad.copy(i).invert(),Id.copy(t.ray).applyMatrix4(Ad);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),s=a*a,l=new vi,c=new vi,u=new vi,h=new vi,d=this.isLineSegments?2:1;if(n.isBufferGeometry){const i=n.index,r=n.attributes,a=r.position;if(null!==i){const n=Math.max(0,o.start),r=Math.min(i.count,o.start+o.count);for(let o=n,p=r-1;o<p;o+=d){const n=i.getX(o),r=i.getX(o+1);l.fromBufferAttribute(a,n),c.fromBufferAttribute(a,r);const d=Id.distanceSqToSegment(l,c,h,u);if(d>s)continue;h.applyMatrix4(this.matrixWorld);const p=t.ray.origin.distanceTo(h);p<t.near||p>t.far||e.push({distance:p,point:u.clone().applyMatrix4(this.matrixWorld),index:o,face:null,faceIndex:null,object:this})}}else{const n=Math.max(0,o.start),i=Math.min(a.count,o.start+o.count);for(let r=n,o=i-1;r<o;r+=d){l.fromBufferAttribute(a,r),c.fromBufferAttribute(a,r+1);const n=Id.distanceSqToSegment(l,c,h,u);if(n>s)continue;h.applyMatrix4(this.matrixWorld);const i=t.ray.origin.distanceTo(h);i<t.near||i>t.far||e.push({distance:i,point:u.clone().applyMatrix4(this.matrixWorld),index:r,face:null,faceIndex:null,object:this})}}}else n.isGeometry&&console.error("THREE.Line.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Line.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}Md.prototype.isLine=!0;const kd=new vi,Ed=new vi;class Td extends Md{constructor(t,e){super(t,e),this.type="LineSegments"}computeLineDistances(){const t=this.geometry;if(t.isBufferGeometry)if(null===t.index){const e=t.attributes.position,n=[];for(let t=0,i=e.count;t<i;t+=2)kd.fromBufferAttribute(e,t),Ed.fromBufferAttribute(e,t+1),n[t]=0===t?0:n[t-1],n[t+1]=n[t]+kd.distanceTo(Ed);t.setAttribute("lineDistance",new Jr(n,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else t.isGeometry&&console.error("THREE.LineSegments.computeLineDistances() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");return this}}Td.prototype.isLineSegments=!0;class Od extends Md{constructor(t,e){super(t,e),this.type="LineLoop"}}Od.prototype.isLineLoop=!0;class Pd extends Pr{constructor(t){super(),this.type="PointsMaterial",this.color=new Fr(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.alphaMap=t.alphaMap,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this}}Pd.prototype.isPointsMaterial=!0;const jd=new Xi,Ld=new Yi,Dd=new Fi,Rd=new vi;class Bd extends br{constructor(t=new so,e=new Pd){super(),this.type="Points",this.geometry=t,this.material=e,this.updateMorphTargets()}copy(t){return super.copy(t),this.material=t.material,this.geometry=t.geometry,this}raycast(t,e){const n=this.geometry,i=this.matrixWorld,r=t.params.Points.threshold,o=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),Dd.copy(n.boundingSphere),Dd.applyMatrix4(i),Dd.radius+=r,!1===t.ray.intersectsSphere(Dd))return;jd.copy(i).invert(),Ld.copy(t.ray).applyMatrix4(jd);const a=r/((this.scale.x+this.scale.y+this.scale.z)/3),s=a*a;if(n.isBufferGeometry){const r=n.index,a=n.attributes,l=a.position;if(null!==r){const n=Math.max(0,o.start),a=Math.min(r.count,o.start+o.count);for(let o=n,c=a;o<c;o++){const n=r.getX(o);Rd.fromBufferAttribute(l,n),Nd(Rd,n,s,i,t,e,this)}}else{const n=Math.max(0,o.start),r=Math.min(l.count,o.start+o.count);for(let o=n,a=r;o<a;o++)Rd.fromBufferAttribute(l,o),Nd(Rd,o,s,i,t,e,this)}}else console.error("THREE.Points.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}updateMorphTargets(){const t=this.geometry;if(t.isBufferGeometry){const e=t.morphAttributes,n=Object.keys(e);if(n.length>0){const t=e[n[0]];if(void 0!==t){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,n=t.length;e<n;e++){const n=t[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=e}}}}else{const e=t.morphTargets;void 0!==e&&e.length>0&&console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.")}}}function Nd(t,e,n,i,r,o,a){const s=Ld.distanceSqToPoint(t);if(s<n){const n=new vi;Ld.closestPointToPoint(t,n),n.applyMatrix4(i);const l=r.ray.origin.distanceTo(n);if(l<r.near||l>r.far)return;o.push({distance:l,distanceToRay:Math.sqrt(s),point:n,index:e,face:null,object:a})}}Bd.prototype.isPoints=!0;class Fd extends ui{constructor(t,e,n,i,r,o,a,s,l){super(t,e,n,i,r,o,a,s,l),this.format=void 0!==a?a:Bt,this.minFilter=void 0!==o?o:bt,this.magFilter=void 0!==r?r:bt,this.generateMipmaps=!1;const c=this;function u(){c.needsUpdate=!0,t.requestVideoFrameCallback(u)}"requestVideoFrameCallback"in t&&t.requestVideoFrameCallback(u)}clone(){return new this.constructor(this.image).copy(this)}update(){const t=this.image,e="requestVideoFrameCallback"in t;!1===e&&t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}Fd.prototype.isVideoTexture=!0;class zd extends ui{constructor(t,e,n){super({width:t,height:e}),this.format=n,this.magFilter=ft,this.minFilter=ft,this.generateMipmaps=!1,this.needsUpdate=!0}}zd.prototype.isFramebufferTexture=!0;class Vd extends ui{constructor(t,e,n,i,r,o,a,s,l,c,u,h){super(null,o,a,s,l,c,i,r,u,h),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}}Vd.prototype.isCompressedTexture=!0;class Gd extends ui{constructor(t,e,n,i,r,o,a,s,l){super(t,e,n,i,r,o,a,s,l),this.needsUpdate=!0}}Gd.prototype.isCanvasTexture=!0;class Hd extends so{constructor(t=1,e=8,n=0,i=2*Math.PI){super(),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},e=Math.max(3,e);const r=[],o=[],a=[],s=[],l=new vi,c=new ei;o.push(0,0,0),a.push(0,0,1),s.push(.5,.5);for(let u=0,h=3;u<=e;u++,h+=3){const r=n+u/e*i;l.x=t*Math.cos(r),l.y=t*Math.sin(r),o.push(l.x,l.y,l.z),a.push(0,0,1),c.x=(o[h]/t+1)/2,c.y=(o[h+1]/t+1)/2,s.push(c.x,c.y)}for(let u=1;u<=e;u++)r.push(u,u+1,0);this.setIndex(r),this.setAttribute("position",new Jr(o,3)),this.setAttribute("normal",new Jr(a,3)),this.setAttribute("uv",new Jr(s,2))}static fromJSON(t){return new Hd(t.radius,t.segments,t.thetaStart,t.thetaLength)}}class Wd extends so{constructor(t=1,e=1,n=1,i=8,r=1,o=!1,a=0,s=2*Math.PI){super(),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:i,heightSegments:r,openEnded:o,thetaStart:a,thetaLength:s};const l=this;i=Math.floor(i),r=Math.floor(r);const c=[],u=[],h=[],d=[];let p=0;const f=[],g=n/2;let m=0;function v(){const o=new vi,v=new vi;let y=0;const b=(e-t)/n;for(let l=0;l<=r;l++){const c=[],m=l/r,y=m*(e-t)+t;for(let t=0;t<=i;t++){const e=t/i,r=e*s+a,l=Math.sin(r),f=Math.cos(r);v.x=y*l,v.y=-m*n+g,v.z=y*f,u.push(v.x,v.y,v.z),o.set(l,b,f).normalize(),h.push(o.x,o.y,o.z),d.push(e,1-m),c.push(p++)}f.push(c)}for(let t=0;t<i;t++)for(let e=0;e<r;e++){const n=f[e][t],i=f[e+1][t],r=f[e+1][t+1],o=f[e][t+1];c.push(n,i,o),c.push(i,r,o),y+=6}l.addGroup(m,y,0),m+=y}function y(n){const r=p,o=new ei,f=new vi;let v=0;const y=!0===n?t:e,b=!0===n?1:-1;for(let t=1;t<=i;t++)u.push(0,g*b,0),h.push(0,b,0),d.push(.5,.5),p++;const x=p;for(let t=0;t<=i;t++){const e=t/i,n=e*s+a,r=Math.cos(n),l=Math.sin(n);f.x=y*l,f.y=g*b,f.z=y*r,u.push(f.x,f.y,f.z),h.push(0,b,0),o.x=.5*r+.5,o.y=.5*l*b+.5,d.push(o.x,o.y),p++}for(let t=0;t<i;t++){const e=r+t,i=x+t;!0===n?c.push(i,i+1,e):c.push(i+1,i,e),v+=3}l.addGroup(m,v,!0===n?1:2),m+=v}v(),!1===o&&(t>0&&y(!0),e>0&&y(!1)),this.setIndex(c),this.setAttribute("position",new Jr(u,3)),this.setAttribute("normal",new Jr(h,3)),this.setAttribute("uv",new Jr(d,2))}static fromJSON(t){return new Wd(t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}class Ud extends Wd{constructor(t=1,e=1,n=8,i=1,r=!1,o=0,a=2*Math.PI){super(0,t,e,n,i,r,o,a),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:o,thetaLength:a}}static fromJSON(t){return new Ud(t.radius,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}class Zd extends so{constructor(t=[],e=[],n=1,i=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:i};const r=[],o=[];function a(t){const n=new vi,i=new vi,r=new vi;for(let o=0;o<e.length;o+=3)d(e[o+0],n),d(e[o+1],i),d(e[o+2],r),s(n,i,r,t)}function s(t,e,n,i){const r=i+1,o=[];for(let a=0;a<=r;a++){o[a]=[];const i=t.clone().lerp(n,a/r),s=e.clone().lerp(n,a/r),l=r-a;for(let t=0;t<=l;t++)o[a][t]=0===t&&a===r?i:i.clone().lerp(s,t/l)}for(let a=0;a<r;a++)for(let t=0;t<2*(r-a)-1;t++){const e=Math.floor(t/2);t%2===0?(h(o[a][e+1]),h(o[a+1][e]),h(o[a][e])):(h(o[a][e+1]),h(o[a+1][e+1]),h(o[a+1][e]))}}function l(t){const e=new vi;for(let n=0;n<r.length;n+=3)e.x=r[n+0],e.y=r[n+1],e.z=r[n+2],e.normalize().multiplyScalar(t),r[n+0]=e.x,r[n+1]=e.y,r[n+2]=e.z}function c(){const t=new vi;for(let e=0;e<r.length;e+=3){t.x=r[e+0],t.y=r[e+1],t.z=r[e+2];const n=g(t)/2/Math.PI+.5,i=m(t)/Math.PI+.5;o.push(n,1-i)}p(),u()}function u(){for(let t=0;t<o.length;t+=6){const e=o[t+0],n=o[t+2],i=o[t+4],r=Math.max(e,n,i),a=Math.min(e,n,i);r>.9&&a<.1&&(e<.2&&(o[t+0]+=1),n<.2&&(o[t+2]+=1),i<.2&&(o[t+4]+=1))}}function h(t){r.push(t.x,t.y,t.z)}function d(e,n){const i=3*e;n.x=t[i+0],n.y=t[i+1],n.z=t[i+2]}function p(){const t=new vi,e=new vi,n=new vi,i=new vi,a=new ei,s=new ei,l=new ei;for(let c=0,u=0;c<r.length;c+=9,u+=6){t.set(r[c+0],r[c+1],r[c+2]),e.set(r[c+3],r[c+4],r[c+5]),n.set(r[c+6],r[c+7],r[c+8]),a.set(o[u+0],o[u+1]),s.set(o[u+2],o[u+3]),l.set(o[u+4],o[u+5]),i.copy(t).add(e).add(n).divideScalar(3);const h=g(i);f(a,u+0,t,h),f(s,u+2,e,h),f(l,u+4,n,h)}}function f(t,e,n,i){i<0&&1===t.x&&(o[e]=t.x-1),0===n.x&&0===n.z&&(o[e]=i/2/Math.PI+.5)}function g(t){return Math.atan2(t.z,-t.x)}function m(t){return Math.atan2(-t.y,Math.sqrt(t.x*t.x+t.z*t.z))}a(i),l(n),c(),this.setAttribute("position",new Jr(r,3)),this.setAttribute("normal",new Jr(r.slice(),3)),this.setAttribute("uv",new Jr(o,2)),0===i?this.computeVertexNormals():this.normalizeNormals()}static fromJSON(t){return new Zd(t.vertices,t.indices,t.radius,t.details)}}class Yd extends Zd{constructor(t=1,e=0){const n=(1+Math.sqrt(5))/2,i=1/n,r=[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-i,-n,0,-i,n,0,i,-n,0,i,n,-i,-n,0,-i,n,0,i,-n,0,i,n,0,-n,0,-i,n,0,-i,-n,0,i,n,0,i],o=[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9];super(r,o,t,e),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new Yd(t.radius,t.detail)}}const Xd=new vi,qd=new vi,Kd=new vi,Qd=new Tr;class Jd extends so{constructor(t=null,e=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:t,thresholdAngle:e},null!==t){const n=4,i=Math.pow(10,n),r=Math.cos(Pn*e),o=t.getIndex(),a=t.getAttribute("position"),s=o?o.count:a.count,l=[0,0,0],c=["a","b","c"],u=new Array(3),h={},d=[];for(let t=0;t<s;t+=3){o?(l[0]=o.getX(t),l[1]=o.getX(t+1),l[2]=o.getX(t+2)):(l[0]=t,l[1]=t+1,l[2]=t+2);const{a:e,b:n,c:s}=Qd;if(e.fromBufferAttribute(a,l[0]),n.fromBufferAttribute(a,l[1]),s.fromBufferAttribute(a,l[2]),Qd.getNormal(Kd),u[0]=`${Math.round(e.x*i)},${Math.round(e.y*i)},${Math.round(e.z*i)}`,u[1]=`${Math.round(n.x*i)},${Math.round(n.y*i)},${Math.round(n.z*i)}`,u[2]=`${Math.round(s.x*i)},${Math.round(s.y*i)},${Math.round(s.z*i)}`,u[0]!==u[1]&&u[1]!==u[2]&&u[2]!==u[0])for(let t=0;t<3;t++){const e=(t+1)%3,n=u[t],i=u[e],o=Qd[c[t]],a=Qd[c[e]],s=`${n}_${i}`,p=`${i}_${n}`;p in h&&h[p]?(Kd.dot(h[p].normal)<=r&&(d.push(o.x,o.y,o.z),d.push(a.x,a.y,a.z)),h[p]=null):s in h||(h[s]={index0:l[t],index1:l[e],normal:Kd.clone()})}}for(const t in h)if(h[t]){const{index0:e,index1:n}=h[t];Xd.fromBufferAttribute(a,e),qd.fromBufferAttribute(a,n),d.push(Xd.x,Xd.y,Xd.z),d.push(qd.x,qd.y,qd.z)}this.setAttribute("position",new Jr(d,3))}}}class $d{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,i=this.getPoint(0),r=0;e.push(0);for(let o=1;o<=t;o++)n=this.getPoint(o/t),r+=n.distanceTo(i),e.push(r),i=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let i=0;const r=n.length;let o;o=e||t*n[r-1];let a,s=0,l=r-1;while(s<=l)if(i=Math.floor(s+(l-s)/2),a=n[i]-o,a<0)s=i+1;else{if(!(a>0)){l=i;break}l=i-1}if(i=l,n[i]===o)return i/(r-1);const c=n[i],u=n[i+1],h=u-c,d=(o-c)/h,p=(i+d)/(r-1);return p}getTangent(t,e){const n=1e-4;let i=t-n,r=t+n;i<0&&(i=0),r>1&&(r=1);const o=this.getPoint(i),a=this.getPoint(r),s=e||(o.isVector2?new ei:new vi);return s.copy(a).sub(o).normalize(),s}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new vi,i=[],r=[],o=[],a=new vi,s=new Xi;for(let d=0;d<=t;d++){const e=d/t;i[d]=this.getTangentAt(e,new vi)}r[0]=new vi,o[0]=new vi;let l=Number.MAX_VALUE;const c=Math.abs(i[0].x),u=Math.abs(i[0].y),h=Math.abs(i[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),h<=l&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],a),o[0].crossVectors(i[0],r[0]);for(let d=1;d<=t;d++){if(r[d]=r[d-1].clone(),o[d]=o[d-1].clone(),a.crossVectors(i[d-1],i[d]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(Dn(i[d-1].dot(i[d]),-1,1));r[d].applyMatrix4(s.makeRotationAxis(a,t))}o[d].crossVectors(i[d],r[d])}if(!0===e){let e=Math.acos(Dn(r[0].dot(r[t]),-1,1));e/=t,i[0].dot(a.crossVectors(r[0],r[t]))>0&&(e=-e);for(let n=1;n<=t;n++)r[n].applyMatrix4(s.makeRotationAxis(i[n],e*n)),o[n].crossVectors(i[n],r[n])}return{tangents:i,normals:r,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class tp extends $d{constructor(t=0,e=0,n=1,i=1,r=0,o=2*Math.PI,a=!1,s=0){super(),this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s}getPoint(t,e){const n=e||new ei,i=2*Math.PI;let r=this.aEndAngle-this.aStartAngle;const o=Math.abs(r)<Number.EPSILON;while(r<0)r+=i;while(r>i)r-=i;r<Number.EPSILON&&(r=o?0:i),!0!==this.aClockwise||o||(r===i?r=-i:r-=i);const a=this.aStartAngle+t*r;let s=this.aX+this.xRadius*Math.cos(a),l=this.aY+this.yRadius*Math.sin(a);if(0!==this.aRotation){const t=Math.cos(this.aRotation),e=Math.sin(this.aRotation),n=s-this.aX,i=l-this.aY;s=n*t-i*e+this.aX,l=n*e+i*t+this.aY}return n.set(s,l)}copy(t){return super.copy(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}toJSON(){const t=super.toJSON();return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t}fromJSON(t){return super.fromJSON(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}}tp.prototype.isEllipseCurve=!0;class ep extends tp{constructor(t,e,n,i,r,o){super(t,e,n,n,i,r,o),this.type="ArcCurve"}}function np(){let t=0,e=0,n=0,i=0;function r(r,o,a,s){t=r,e=a,n=-3*r+3*o-2*a-s,i=2*r-2*o+a+s}return{initCatmullRom:function(t,e,n,i,o){r(e,n,o*(n-t),o*(i-e))},initNonuniformCatmullRom:function(t,e,n,i,o,a,s){let l=(e-t)/o-(n-t)/(o+a)+(n-e)/a,c=(n-e)/a-(i-e)/(a+s)+(i-n)/s;l*=a,c*=a,r(e,n,l,c)},calc:function(r){const o=r*r,a=o*r;return t+e*r+n*o+i*a}}}ep.prototype.isArcCurve=!0;const ip=new vi,rp=new np,op=new np,ap=new np;class sp extends $d{constructor(t=[],e=!1,n="centripetal",i=.5){super(),this.type="CatmullRomCurve3",this.points=t,this.closed=e,this.curveType=n,this.tension=i}getPoint(t,e=new vi){const n=e,i=this.points,r=i.length,o=(r-(this.closed?0:1))*t;let a,s,l=Math.floor(o),c=o-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/r)+1)*r:0===c&&l===r-1&&(l=r-2,c=1),this.closed||l>0?a=i[(l-1)%r]:(ip.subVectors(i[0],i[1]).add(i[0]),a=ip);const u=i[l%r],h=i[(l+1)%r];if(this.closed||l+2<r?s=i[(l+2)%r]:(ip.subVectors(i[r-1],i[r-2]).add(i[r-1]),s=ip),"centripetal"===this.curveType||"chordal"===this.curveType){const t="chordal"===this.curveType?.5:.25;let e=Math.pow(a.distanceToSquared(u),t),n=Math.pow(u.distanceToSquared(h),t),i=Math.pow(h.distanceToSquared(s),t);n<1e-4&&(n=1),e<1e-4&&(e=n),i<1e-4&&(i=n),rp.initNonuniformCatmullRom(a.x,u.x,h.x,s.x,e,n,i),op.initNonuniformCatmullRom(a.y,u.y,h.y,s.y,e,n,i),ap.initNonuniformCatmullRom(a.z,u.z,h.z,s.z,e,n,i)}else"catmullrom"===this.curveType&&(rp.initCatmullRom(a.x,u.x,h.x,s.x,this.tension),op.initCatmullRom(a.y,u.y,h.y,s.y,this.tension),ap.initCatmullRom(a.z,u.z,h.z,s.z,this.tension));return n.set(rp.calc(c),op.calc(c),ap.calc(c)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new vi).fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}}function lp(t,e,n,i,r){const o=.5*(i-e),a=.5*(r-n),s=t*t,l=t*s;return(2*n-2*i+o+a)*l+(-3*n+3*i-2*o-a)*s+o*t+n}function cp(t,e){const n=1-t;return n*n*e}function up(t,e){return 2*(1-t)*t*e}function hp(t,e){return t*t*e}function dp(t,e,n,i){return cp(t,e)+up(t,n)+hp(t,i)}function pp(t,e){const n=1-t;return n*n*n*e}function fp(t,e){const n=1-t;return 3*n*n*t*e}function gp(t,e){return 3*(1-t)*t*t*e}function mp(t,e){return t*t*t*e}function vp(t,e,n,i,r){return pp(t,e)+fp(t,n)+gp(t,i)+mp(t,r)}sp.prototype.isCatmullRomCurve3=!0;class yp extends $d{constructor(t=new ei,e=new ei,n=new ei,i=new ei){super(),this.type="CubicBezierCurve",this.v0=t,this.v1=e,this.v2=n,this.v3=i}getPoint(t,e=new ei){const n=e,i=this.v0,r=this.v1,o=this.v2,a=this.v3;return n.set(vp(t,i.x,r.x,o.x,a.x),vp(t,i.y,r.y,o.y,a.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}yp.prototype.isCubicBezierCurve=!0;class bp extends $d{constructor(t=new vi,e=new vi,n=new vi,i=new vi){super(),this.type="CubicBezierCurve3",this.v0=t,this.v1=e,this.v2=n,this.v3=i}getPoint(t,e=new vi){const n=e,i=this.v0,r=this.v1,o=this.v2,a=this.v3;return n.set(vp(t,i.x,r.x,o.x,a.x),vp(t,i.y,r.y,o.y,a.y),vp(t,i.z,r.z,o.z,a.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}bp.prototype.isCubicBezierCurve3=!0;class xp extends $d{constructor(t=new ei,e=new ei){super(),this.type="LineCurve",this.v1=t,this.v2=e}getPoint(t,e=new ei){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}getTangent(t,e){const n=e||new ei;return n.copy(this.v2).sub(this.v1).normalize(),n}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}xp.prototype.isLineCurve=!0;class wp extends $d{constructor(t=new vi,e=new vi){super(),this.type="LineCurve3",this.isLineCurve3=!0,this.v1=t,this.v2=e}getPoint(t,e=new vi){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}class _p extends $d{constructor(t=new ei,e=new ei,n=new ei){super(),this.type="QuadraticBezierCurve",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new ei){const n=e,i=this.v0,r=this.v1,o=this.v2;return n.set(dp(t,i.x,r.x,o.x),dp(t,i.y,r.y,o.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}_p.prototype.isQuadraticBezierCurve=!0;class Cp extends $d{constructor(t=new vi,e=new vi,n=new vi){super(),this.type="QuadraticBezierCurve3",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new vi){const n=e,i=this.v0,r=this.v1,o=this.v2;return n.set(dp(t,i.x,r.x,o.x),dp(t,i.y,r.y,o.y),dp(t,i.z,r.z,o.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}Cp.prototype.isQuadraticBezierCurve3=!0;class Ap extends $d{constructor(t=[]){super(),this.type="SplineCurve",this.points=t}getPoint(t,e=new ei){const n=e,i=this.points,r=(i.length-1)*t,o=Math.floor(r),a=r-o,s=i[0===o?o:o-1],l=i[o],c=i[o>i.length-2?i.length-1:o+1],u=i[o>i.length-3?i.length-1:o+2];return n.set(lp(a,s.x,l.x,c.x,u.x),lp(a,s.y,l.y,c.y,u.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new ei).fromArray(n))}return this}}Ap.prototype.isSplineCurve=!0;var Ip=Object.freeze({__proto__:null,ArcCurve:ep,CatmullRomCurve3:sp,CubicBezierCurve:yp,CubicBezierCurve3:bp,EllipseCurve:tp,LineCurve:xp,LineCurve3:wp,QuadraticBezierCurve:_p,QuadraticBezierCurve3:Cp,SplineCurve:Ap});class Sp extends $d{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(t){this.curves.push(t)}closePath(){const t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new xp(e,t))}getPoint(t,e){const n=t*this.getLength(),i=this.getCurveLengths();let r=0;while(r<i.length){if(i[r]>=n){const t=i[r]-n,o=this.curves[r],a=o.getLength(),s=0===a?0:1-t/a;return o.getPointAt(s,e)}r++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let n=0,i=this.curves.length;n<i;n++)e+=this.curves[n].getLength(),t.push(e);return this.cacheLengths=t,t}getSpacedPoints(t=40){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return this.autoClose&&e.push(e[0]),e}getPoints(t=12){const e=[];let n;for(let i=0,r=this.curves;i<r.length;i++){const o=r[i],a=o&&o.isEllipseCurve?2*t:o&&(o.isLineCurve||o.isLineCurve3)?1:o&&o.isSplineCurve?t*o.points.length:t,s=o.getPoints(a);for(let t=0;t<s.length;t++){const i=s[t];n&&n.equals(i)||(e.push(i),n=i)}}return this.autoClose&&e.length>1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push(n.clone())}return this.autoClose=t.autoClose,this}toJSON(){const t=super.toJSON();t.autoClose=this.autoClose,t.curves=[];for(let e=0,n=this.curves.length;e<n;e++){const n=this.curves[e];t.curves.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.autoClose=t.autoClose,this.curves=[];for(let e=0,n=t.curves.length;e<n;e++){const n=t.curves[e];this.curves.push((new Ip[n.type]).fromJSON(n))}return this}}class Mp extends Sp{constructor(t){super(),this.type="Path",this.currentPoint=new ei,t&&this.setFromPoints(t)}setFromPoints(t){this.moveTo(t[0].x,t[0].y);for(let e=1,n=t.length;e<n;e++)this.lineTo(t[e].x,t[e].y);return this}moveTo(t,e){return this.currentPoint.set(t,e),this}lineTo(t,e){const n=new xp(this.currentPoint.clone(),new ei(t,e));return this.curves.push(n),this.currentPoint.set(t,e),this}quadraticCurveTo(t,e,n,i){const r=new _p(this.currentPoint.clone(),new ei(t,e),new ei(n,i));return this.curves.push(r),this.currentPoint.set(n,i),this}bezierCurveTo(t,e,n,i,r,o){const a=new yp(this.currentPoint.clone(),new ei(t,e),new ei(n,i),new ei(r,o));return this.curves.push(a),this.currentPoint.set(r,o),this}splineThru(t){const e=[this.currentPoint.clone()].concat(t),n=new Ap(e);return this.curves.push(n),this.currentPoint.copy(t[t.length-1]),this}arc(t,e,n,i,r,o){const a=this.currentPoint.x,s=this.currentPoint.y;return this.absarc(t+a,e+s,n,i,r,o),this}absarc(t,e,n,i,r,o){return this.absellipse(t,e,n,n,i,r,o),this}ellipse(t,e,n,i,r,o,a,s){const l=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(t+l,e+c,n,i,r,o,a,s),this}absellipse(t,e,n,i,r,o,a,s){const l=new tp(t,e,n,i,r,o,a,s);if(this.curves.length>0){const t=l.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class kp extends Mp{constructor(t){super(t),this.uuid=Ln(),this.type="Shape",this.holes=[]}getPointsHoles(t){const e=[];for(let n=0,i=this.holes.length;n<i;n++)e[n]=this.holes[n].getPoints(t);return e}extractPoints(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}}copy(t){super.copy(t),this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.uuid=this.uuid,t.holes=[];for(let e=0,n=this.holes.length;e<n;e++){const n=this.holes[e];t.holes.push(n.toJSON())}return t}fromJSON(t){super.fromJSON(t),this.uuid=t.uuid,this.holes=[];for(let e=0,n=t.holes.length;e<n;e++){const n=t.holes[e];this.holes.push((new Mp).fromJSON(n))}return this}}const Ep={triangulate:function(t,e,n=2){const i=e&&e.length,r=i?e[0]*n:t.length;let o=Tp(t,0,r,n,!0);const a=[];if(!o||o.next===o.prev)return a;let s,l,c,u,h,d,p;if(i&&(o=Bp(t,e,o,n)),t.length>80*n){s=c=t[0],l=u=t[1];for(let e=n;e<r;e+=n)h=t[e],d=t[e+1],h<s&&(s=h),d<l&&(l=d),h>c&&(c=h),d>u&&(u=d);p=Math.max(c-s,u-l),p=0!==p?1/p:0}return Pp(o,a,n,s,l,p),a}};function Tp(t,e,n,i,r){let o,a;if(r===sf(t,e,n,i)>0)for(o=e;o<n;o+=i)a=rf(o,t[o],t[o+1],a);else for(o=n-i;o>=e;o-=i)a=rf(o,t[o],t[o+1],a);return a&&qp(a,a.next)&&(of(a),a=a.next),a}function Op(t,e){if(!t)return t;e||(e=t);let n,i=t;do{if(n=!1,i.steiner||!qp(i,i.next)&&0!==Xp(i.prev,i,i.next))i=i.next;else{if(of(i),i=e=i.prev,i===i.next)break;n=!0}}while(n||i!==e);return e}function Pp(t,e,n,i,r,o,a){if(!t)return;!a&&o&&Gp(t,i,r,o);let s,l,c=t;while(t.prev!==t.next)if(s=t.prev,l=t.next,o?Lp(t,i,r,o):jp(t))e.push(s.i/n),e.push(t.i/n),e.push(l.i/n),of(t),t=l.next,c=l.next;else if(t=l,t===c){a?1===a?(t=Dp(Op(t),e,n),Pp(t,e,n,i,r,o,2)):2===a&&Rp(t,e,n,i,r,o):Pp(Op(t),e,n,i,r,o,1);break}}function jp(t){const e=t.prev,n=t,i=t.next;if(Xp(e,n,i)>=0)return!1;let r=t.next.next;while(r!==t.prev){if(Zp(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&Xp(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function Lp(t,e,n,i){const r=t.prev,o=t,a=t.next;if(Xp(r,o,a)>=0)return!1;const s=r.x<o.x?r.x<a.x?r.x:a.x:o.x<a.x?o.x:a.x,l=r.y<o.y?r.y<a.y?r.y:a.y:o.y<a.y?o.y:a.y,c=r.x>o.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,u=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,h=Wp(s,l,e,n,i),d=Wp(c,u,e,n,i);let p=t.prevZ,f=t.nextZ;while(p&&p.z>=h&&f&&f.z<=d){if(p!==t.prev&&p!==t.next&&Zp(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Xp(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,f!==t.prev&&f!==t.next&&Zp(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Xp(f.prev,f,f.next)>=0)return!1;f=f.nextZ}while(p&&p.z>=h){if(p!==t.prev&&p!==t.next&&Zp(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&Xp(p.prev,p,p.next)>=0)return!1;p=p.prevZ}while(f&&f.z<=d){if(f!==t.prev&&f!==t.next&&Zp(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&Xp(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function Dp(t,e,n){let i=t;do{const r=i.prev,o=i.next.next;!qp(r,o)&&Kp(r,i,i.next,o)&&tf(r,o)&&tf(o,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(o.i/n),of(i),of(i.next),i=t=o),i=i.next}while(i!==t);return Op(i)}function Rp(t,e,n,i,r,o){let a=t;do{let t=a.next.next;while(t!==a.prev){if(a.i!==t.i&&Yp(a,t)){let s=nf(a,t);return a=Op(a,a.next),s=Op(s,s.next),Pp(a,e,n,i,r,o),void Pp(s,e,n,i,r,o)}t=t.next}a=a.next}while(a!==t)}function Bp(t,e,n,i){const r=[];let o,a,s,l,c;for(o=0,a=e.length;o<a;o++)s=e[o]*i,l=o<a-1?e[o+1]*i:t.length,c=Tp(t,s,l,i,!1),c===c.next&&(c.steiner=!0),r.push(Up(c));for(r.sort(Np),o=0;o<r.length;o++)Fp(r[o],n),n=Op(n,n.next);return n}function Np(t,e){return t.x-e.x}function Fp(t,e){if(e=zp(t,e),e){const n=nf(e,t);Op(e,e.next),Op(n,n.next)}}function zp(t,e){let n=e;const i=t.x,r=t.y;let o,a=-1/0;do{if(r<=n.y&&r>=n.next.y&&n.next.y!==n.y){const t=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(t<=i&&t>a){if(a=t,t===i){if(r===n.y)return n;if(r===n.next.y)return n.next}o=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!o)return null;if(i===a)return o;const s=o,l=o.x,c=o.y;let u,h=1/0;n=o;do{i>=n.x&&n.x>=l&&i!==n.x&&Zp(r<c?i:a,r,l,c,r<c?a:i,r,n.x,n.y)&&(u=Math.abs(r-n.y)/(i-n.x),tf(n,t)&&(u<h||u===h&&(n.x>o.x||n.x===o.x&&Vp(o,n)))&&(o=n,h=u)),n=n.next}while(n!==s);return o}function Vp(t,e){return Xp(t.prev,t,e.prev)<0&&Xp(e.next,t,t.next)<0}function Gp(t,e,n,i){let r=t;do{null===r.z&&(r.z=Wp(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,Hp(r)}function Hp(t){let e,n,i,r,o,a,s,l,c=1;do{n=t,t=null,o=null,a=0;while(n){for(a++,i=n,s=0,e=0;e<c;e++)if(s++,i=i.nextZ,!i)break;l=c;while(s>0||l>0&&i)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,c*=2}while(a>1);return t}function Wp(t,e,n,i,r){return t=32767*(t-n)*r,e=32767*(e-i)*r,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1}function Up(t){let e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function Zp(t,e,n,i,r,o,a,s){return(r-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(i-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(r-a)*(i-s)>=0}function Yp(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!$p(t,e)&&(tf(t,e)&&tf(e,t)&&ef(t,e)&&(Xp(t.prev,t,e.prev)||Xp(t,e.prev,e))||qp(t,e)&&Xp(t.prev,t,t.next)>0&&Xp(e.prev,e,e.next)>0)}function Xp(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function qp(t,e){return t.x===e.x&&t.y===e.y}function Kp(t,e,n,i){const r=Jp(Xp(t,e,n)),o=Jp(Xp(t,e,i)),a=Jp(Xp(n,i,t)),s=Jp(Xp(n,i,e));return r!==o&&a!==s||(!(0!==r||!Qp(t,n,e))||(!(0!==o||!Qp(t,i,e))||(!(0!==a||!Qp(n,t,i))||!(0!==s||!Qp(n,e,i)))))}function Qp(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function Jp(t){return t>0?1:t<0?-1:0}function $p(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Kp(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function tf(t,e){return Xp(t.prev,t,t.next)<0?Xp(t,e,t.next)>=0&&Xp(t,t.prev,e)>=0:Xp(t,e,t.prev)<0||Xp(t,t.next,e)<0}function ef(t,e){let n=t,i=!1;const r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!==n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}function nf(t,e){const n=new af(t.i,t.x,t.y),i=new af(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function rf(t,e,n,i){const r=new af(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function of(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function af(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function sf(t,e,n,i){let r=0;for(let o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}class lf{static area(t){const e=t.length;let n=0;for(let i=e-1,r=0;r<e;i=r++)n+=t[i].x*t[r].y-t[r].x*t[i].y;return.5*n}static isClockWise(t){return lf.area(t)<0}static triangulateShape(t,e){const n=[],i=[],r=[];cf(t),uf(n,t);let o=t.length;e.forEach(cf);for(let s=0;s<e.length;s++)i.push(o),o+=e[s].length,uf(n,e[s]);const a=Ep.triangulate(n,i);for(let s=0;s<a.length;s+=3)r.push(a.slice(s,s+3));return r}}function cf(t){const e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function uf(t,e){for(let n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}class hf extends so{constructor(t=new kp([new ei(.5,.5),new ei(-.5,.5),new ei(-.5,-.5),new ei(.5,-.5)]),e={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];const n=this,i=[],r=[];for(let a=0,s=t.length;a<s;a++){const e=t[a];o(e)}function o(t){const o=[],a=void 0!==e.curveSegments?e.curveSegments:12,s=void 0!==e.steps?e.steps:1;let l=void 0!==e.depth?e.depth:1,c=void 0===e.bevelEnabled||e.bevelEnabled,u=void 0!==e.bevelThickness?e.bevelThickness:.2,h=void 0!==e.bevelSize?e.bevelSize:u-.1,d=void 0!==e.bevelOffset?e.bevelOffset:0,p=void 0!==e.bevelSegments?e.bevelSegments:3;const f=e.extrudePath,g=void 0!==e.UVGenerator?e.UVGenerator:df;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),l=e.amount);let m,v,y,b,x,w=!1;f&&(m=f.getSpacedPoints(s),w=!0,c=!1,v=f.computeFrenetFrames(s,!1),y=new vi,b=new vi,x=new vi),c||(p=0,u=0,h=0,d=0);const _=t.extractPoints(a);let C=_.shape;const A=_.holes,I=!lf.isClockWise(C);if(I){C=C.reverse();for(let t=0,e=A.length;t<e;t++){const e=A[t];lf.isClockWise(e)&&(A[t]=e.reverse())}}const S=lf.triangulateShape(C,A),M=C;for(let e=0,n=A.length;e<n;e++){const t=A[e];C=C.concat(t)}function k(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}const E=C.length,T=S.length;function O(t,e,n){let i,r,o;const a=t.x-e.x,s=t.y-e.y,l=n.x-t.x,c=n.y-t.y,u=a*a+s*s,h=a*c-s*l;if(Math.abs(h)>Number.EPSILON){const h=Math.sqrt(u),d=Math.sqrt(l*l+c*c),p=e.x-s/h,f=e.y+a/h,g=n.x-c/d,m=n.y+l/d,v=((g-p)*c-(m-f)*l)/(a*c-s*l);i=p+a*v-t.x,r=f+s*v-t.y;const y=i*i+r*r;if(y<=2)return new ei(i,r);o=Math.sqrt(y/2)}else{let t=!1;a>Number.EPSILON?l>Number.EPSILON&&(t=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(t=!0):Math.sign(s)===Math.sign(c)&&(t=!0),t?(i=-s,r=a,o=Math.sqrt(u)):(i=a,r=s,o=Math.sqrt(u/2))}return new ei(i/o,r/o)}const P=[];for(let e=0,n=M.length,i=n-1,r=e+1;e<n;e++,i++,r++)i===n&&(i=0),r===n&&(r=0),P[e]=O(M[e],M[i],M[r]);const j=[];let L,D=P.concat();for(let e=0,n=A.length;e<n;e++){const t=A[e];L=[];for(let e=0,n=t.length,i=n-1,r=e+1;e<n;e++,i++,r++)i===n&&(i=0),r===n&&(r=0),L[e]=O(t[e],t[i],t[r]);j.push(L),D=D.concat(L)}for(let e=0;e<p;e++){const t=e/p,n=u*Math.cos(t*Math.PI/2),i=h*Math.sin(t*Math.PI/2)+d;for(let e=0,r=M.length;e<r;e++){const t=k(M[e],P[e],i);z(t.x,t.y,-n)}for(let e=0,r=A.length;e<r;e++){const t=A[e];L=j[e];for(let e=0,r=t.length;e<r;e++){const r=k(t[e],L[e],i);z(r.x,r.y,-n)}}}const R=h+d;for(let e=0;e<E;e++){const t=c?k(C[e],D[e],R):C[e];w?(b.copy(v.normals[0]).multiplyScalar(t.x),y.copy(v.binormals[0]).multiplyScalar(t.y),x.copy(m[0]).add(b).add(y),z(x.x,x.y,x.z)):z(t.x,t.y,0)}for(let e=1;e<=s;e++)for(let t=0;t<E;t++){const n=c?k(C[t],D[t],R):C[t];w?(b.copy(v.normals[e]).multiplyScalar(n.x),y.copy(v.binormals[e]).multiplyScalar(n.y),x.copy(m[e]).add(b).add(y),z(x.x,x.y,x.z)):z(n.x,n.y,l/s*e)}for(let e=p-1;e>=0;e--){const t=e/p,n=u*Math.cos(t*Math.PI/2),i=h*Math.sin(t*Math.PI/2)+d;for(let e=0,r=M.length;e<r;e++){const t=k(M[e],P[e],i);z(t.x,t.y,l+n)}for(let e=0,r=A.length;e<r;e++){const t=A[e];L=j[e];for(let e=0,r=t.length;e<r;e++){const r=k(t[e],L[e],i);w?z(r.x,r.y+m[s-1].y,m[s-1].x+n):z(r.x,r.y,l+n)}}}function B(){const t=i.length/3;if(c){let t=0,e=E*t;for(let n=0;n<T;n++){const t=S[n];V(t[2]+e,t[1]+e,t[0]+e)}t=s+2*p,e=E*t;for(let n=0;n<T;n++){const t=S[n];V(t[0]+e,t[1]+e,t[2]+e)}}else{for(let t=0;t<T;t++){const e=S[t];V(e[2],e[1],e[0])}for(let t=0;t<T;t++){const e=S[t];V(e[0]+E*s,e[1]+E*s,e[2]+E*s)}}n.addGroup(t,i.length/3-t,0)}function N(){const t=i.length/3;let e=0;F(M,e),e+=M.length;for(let n=0,i=A.length;n<i;n++){const t=A[n];F(t,e),e+=t.length}n.addGroup(t,i.length/3-t,1)}function F(t,e){let n=t.length;while(--n>=0){const i=n;let r=n-1;r<0&&(r=t.length-1);for(let t=0,n=s+2*p;t<n;t++){const n=E*t,o=E*(t+1),a=e+i+n,s=e+r+n,l=e+r+o,c=e+i+o;G(a,s,l,c)}}}function z(t,e,n){o.push(t),o.push(e),o.push(n)}function V(t,e,r){H(t),H(e),H(r);const o=i.length/3,a=g.generateTopUV(n,i,o-3,o-2,o-1);W(a[0]),W(a[1]),W(a[2])}function G(t,e,r,o){H(t),H(e),H(o),H(e),H(r),H(o);const a=i.length/3,s=g.generateSideWallUV(n,i,a-6,a-3,a-2,a-1);W(s[0]),W(s[1]),W(s[3]),W(s[1]),W(s[2]),W(s[3])}function H(t){i.push(o[3*t+0]),i.push(o[3*t+1]),i.push(o[3*t+2])}function W(t){r.push(t.x),r.push(t.y)}B(),N()}this.setAttribute("position",new Jr(i,3)),this.setAttribute("uv",new Jr(r,2)),this.computeVertexNormals()}toJSON(){const t=super.toJSON(),e=this.parameters.shapes,n=this.parameters.options;return pf(e,n,t)}static fromJSON(t,e){const n=[];for(let r=0,o=t.shapes.length;r<o;r++){const i=e[t.shapes[r]];n.push(i)}const i=t.options.extrudePath;return void 0!==i&&(t.options.extrudePath=(new Ip[i.type]).fromJSON(i)),new hf(n,t.options)}}const df={generateTopUV:function(t,e,n,i,r){const o=e[3*n],a=e[3*n+1],s=e[3*i],l=e[3*i+1],c=e[3*r],u=e[3*r+1];return[new ei(o,a),new ei(s,l),new ei(c,u)]},generateSideWallUV:function(t,e,n,i,r,o){const a=e[3*n],s=e[3*n+1],l=e[3*n+2],c=e[3*i],u=e[3*i+1],h=e[3*i+2],d=e[3*r],p=e[3*r+1],f=e[3*r+2],g=e[3*o],m=e[3*o+1],v=e[3*o+2];return Math.abs(s-u)<Math.abs(a-c)?[new ei(a,1-l),new ei(c,1-h),new ei(d,1-f),new ei(g,1-v)]:[new ei(s,1-l),new ei(u,1-h),new ei(p,1-f),new ei(m,1-v)]}};function pf(t,e,n){if(n.shapes=[],Array.isArray(t))for(let i=0,r=t.length;i<r;i++){const e=t[i];n.shapes.push(e.uuid)}else n.shapes.push(t.uuid);return void 0!==e.extrudePath&&(n.options.extrudePath=e.extrudePath.toJSON()),n}class ff extends Zd{constructor(t=1,e=0){const n=(1+Math.sqrt(5))/2,i=[-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1],r=[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1];super(i,r,t,e),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new ff(t.radius,t.detail)}}class gf extends so{constructor(t=[new ei(0,.5),new ei(.5,0),new ei(0,-.5)],e=12,n=0,i=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:i},e=Math.floor(e),i=Dn(i,0,2*Math.PI);const r=[],o=[],a=[],s=[],l=[],c=1/e,u=new vi,h=new ei,d=new vi,p=new vi,f=new vi;let g=0,m=0;for(let v=0;v<=t.length-1;v++)switch(v){case 0:g=t[v+1].x-t[v].x,m=t[v+1].y-t[v].y,d.x=1*m,d.y=-g,d.z=0*m,f.copy(d),d.normalize(),s.push(d.x,d.y,d.z);break;case t.length-1:s.push(f.x,f.y,f.z);break;default:g=t[v+1].x-t[v].x,m=t[v+1].y-t[v].y,d.x=1*m,d.y=-g,d.z=0*m,p.copy(d),d.x+=f.x,d.y+=f.y,d.z+=f.z,d.normalize(),s.push(d.x,d.y,d.z),f.copy(p)}for(let v=0;v<=e;v++){const r=n+v*c*i,d=Math.sin(r),p=Math.cos(r);for(let n=0;n<=t.length-1;n++){u.x=t[n].x*d,u.y=t[n].y,u.z=t[n].x*p,o.push(u.x,u.y,u.z),h.x=v/e,h.y=n/(t.length-1),a.push(h.x,h.y);const i=s[3*n+0]*d,r=s[3*n+1],c=s[3*n+0]*p;l.push(i,r,c)}}for(let v=0;v<e;v++)for(let e=0;e<t.length-1;e++){const n=e+v*t.length,i=n,o=n+t.length,a=n+t.length+1,s=n+1;r.push(i,o,s),r.push(o,a,s)}this.setIndex(r),this.setAttribute("position",new Jr(o,3)),this.setAttribute("uv",new Jr(a,2)),this.setAttribute("normal",new Jr(l,3))}static fromJSON(t){return new gf(t.points,t.segments,t.phiStart,t.phiLength)}}class mf extends Zd{constructor(t=1,e=0){const n=[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],i=[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2];super(n,i,t,e),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new mf(t.radius,t.detail)}}class vf extends so{constructor(t=.5,e=1,n=8,i=1,r=0,o=2*Math.PI){super(),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:i,thetaStart:r,thetaLength:o},n=Math.max(3,n),i=Math.max(1,i);const a=[],s=[],l=[],c=[];let u=t;const h=(e-t)/i,d=new vi,p=new ei;for(let f=0;f<=i;f++){for(let t=0;t<=n;t++){const i=r+t/n*o;d.x=u*Math.cos(i),d.y=u*Math.sin(i),s.push(d.x,d.y,d.z),l.push(0,0,1),p.x=(d.x/e+1)/2,p.y=(d.y/e+1)/2,c.push(p.x,p.y)}u+=h}for(let f=0;f<i;f++){const t=f*(n+1);for(let e=0;e<n;e++){const i=e+t,r=i,o=i+n+1,s=i+n+2,l=i+1;a.push(r,o,l),a.push(o,s,l)}}this.setIndex(a),this.setAttribute("position",new Jr(s,3)),this.setAttribute("normal",new Jr(l,3)),this.setAttribute("uv",new Jr(c,2))}static fromJSON(t){return new vf(t.innerRadius,t.outerRadius,t.thetaSegments,t.phiSegments,t.thetaStart,t.thetaLength)}}class yf extends so{constructor(t=new kp([new ei(0,.5),new ei(-.5,-.5),new ei(.5,-.5)]),e=12){super(),this.type="ShapeGeometry",this.parameters={shapes:t,curveSegments:e};const n=[],i=[],r=[],o=[];let a=0,s=0;if(!1===Array.isArray(t))l(t);else for(let c=0;c<t.length;c++)l(t[c]),this.addGroup(a,s,c),a+=s,s=0;function l(t){const a=i.length/3,l=t.extractPoints(e);let c=l.shape;const u=l.holes;!1===lf.isClockWise(c)&&(c=c.reverse());for(let e=0,n=u.length;e<n;e++){const t=u[e];!0===lf.isClockWise(t)&&(u[e]=t.reverse())}const h=lf.triangulateShape(c,u);for(let e=0,n=u.length;e<n;e++){const t=u[e];c=c.concat(t)}for(let e=0,n=c.length;e<n;e++){const t=c[e];i.push(t.x,t.y,0),r.push(0,0,1),o.push(t.x,t.y)}for(let e=0,i=h.length;e<i;e++){const t=h[e],i=t[0]+a,r=t[1]+a,o=t[2]+a;n.push(i,r,o),s+=3}}this.setIndex(n),this.setAttribute("position",new Jr(i,3)),this.setAttribute("normal",new Jr(r,3)),this.setAttribute("uv",new Jr(o,2))}toJSON(){const t=super.toJSON(),e=this.parameters.shapes;return bf(e,t)}static fromJSON(t,e){const n=[];for(let i=0,r=t.shapes.length;i<r;i++){const r=e[t.shapes[i]];n.push(r)}return new yf(n,t.curveSegments)}}function bf(t,e){if(e.shapes=[],Array.isArray(t))for(let n=0,i=t.length;n<i;n++){const i=t[n];e.shapes.push(i.uuid)}else e.shapes.push(t.uuid);return e}class xf extends so{constructor(t=1,e=32,n=16,i=0,r=2*Math.PI,o=0,a=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:o,thetaLength:a},e=Math.max(3,Math.floor(e)),n=Math.max(2,Math.floor(n));const s=Math.min(o+a,Math.PI);let l=0;const c=[],u=new vi,h=new vi,d=[],p=[],f=[],g=[];for(let m=0;m<=n;m++){const d=[],v=m/n;let y=0;0==m&&0==o?y=.5/e:m==n&&s==Math.PI&&(y=-.5/e);for(let n=0;n<=e;n++){const s=n/e;u.x=-t*Math.cos(i+s*r)*Math.sin(o+v*a),u.y=t*Math.cos(o+v*a),u.z=t*Math.sin(i+s*r)*Math.sin(o+v*a),p.push(u.x,u.y,u.z),h.copy(u).normalize(),f.push(h.x,h.y,h.z),g.push(s+y,1-v),d.push(l++)}c.push(d)}for(let m=0;m<n;m++)for(let t=0;t<e;t++){const e=c[m][t+1],i=c[m][t],r=c[m+1][t],a=c[m+1][t+1];(0!==m||o>0)&&d.push(e,i,a),(m!==n-1||s<Math.PI)&&d.push(i,r,a)}this.setIndex(d),this.setAttribute("position",new Jr(p,3)),this.setAttribute("normal",new Jr(f,3)),this.setAttribute("uv",new Jr(g,2))}static fromJSON(t){return new xf(t.radius,t.widthSegments,t.heightSegments,t.phiStart,t.phiLength,t.thetaStart,t.thetaLength)}}class wf extends Zd{constructor(t=1,e=0){const n=[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],i=[2,1,0,0,3,2,1,3,0,2,3,1];super(n,i,t,e),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new wf(t.radius,t.detail)}}class _f extends so{constructor(t=1,e=.4,n=8,i=6,r=2*Math.PI){super(),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:i,arc:r},n=Math.floor(n),i=Math.floor(i);const o=[],a=[],s=[],l=[],c=new vi,u=new vi,h=new vi;for(let d=0;d<=n;d++)for(let o=0;o<=i;o++){const p=o/i*r,f=d/n*Math.PI*2;u.x=(t+e*Math.cos(f))*Math.cos(p),u.y=(t+e*Math.cos(f))*Math.sin(p),u.z=e*Math.sin(f),a.push(u.x,u.y,u.z),c.x=t*Math.cos(p),c.y=t*Math.sin(p),h.subVectors(u,c).normalize(),s.push(h.x,h.y,h.z),l.push(o/i),l.push(d/n)}for(let d=1;d<=n;d++)for(let t=1;t<=i;t++){const e=(i+1)*d+t-1,n=(i+1)*(d-1)+t-1,r=(i+1)*(d-1)+t,a=(i+1)*d+t;o.push(e,n,a),o.push(n,r,a)}this.setIndex(o),this.setAttribute("position",new Jr(a,3)),this.setAttribute("normal",new Jr(s,3)),this.setAttribute("uv",new Jr(l,2))}static fromJSON(t){return new _f(t.radius,t.tube,t.radialSegments,t.tubularSegments,t.arc)}}class Cf extends so{constructor(t=1,e=.4,n=64,i=8,r=2,o=3){super(),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:i,p:r,q:o},n=Math.floor(n),i=Math.floor(i);const a=[],s=[],l=[],c=[],u=new vi,h=new vi,d=new vi,p=new vi,f=new vi,g=new vi,m=new vi;for(let y=0;y<=n;++y){const a=y/n*r*Math.PI*2;v(a,r,o,t,d),v(a+.01,r,o,t,p),g.subVectors(p,d),m.addVectors(p,d),f.crossVectors(g,m),m.crossVectors(f,g),f.normalize(),m.normalize();for(let t=0;t<=i;++t){const r=t/i*Math.PI*2,o=-e*Math.cos(r),a=e*Math.sin(r);u.x=d.x+(o*m.x+a*f.x),u.y=d.y+(o*m.y+a*f.y),u.z=d.z+(o*m.z+a*f.z),s.push(u.x,u.y,u.z),h.subVectors(u,d).normalize(),l.push(h.x,h.y,h.z),c.push(y/n),c.push(t/i)}}for(let y=1;y<=n;y++)for(let t=1;t<=i;t++){const e=(i+1)*(y-1)+(t-1),n=(i+1)*y+(t-1),r=(i+1)*y+t,o=(i+1)*(y-1)+t;a.push(e,n,o),a.push(n,r,o)}function v(t,e,n,i,r){const o=Math.cos(t),a=Math.sin(t),s=n/e*t,l=Math.cos(s);r.x=i*(2+l)*.5*o,r.y=i*(2+l)*a*.5,r.z=i*Math.sin(s)*.5}this.setIndex(a),this.setAttribute("position",new Jr(s,3)),this.setAttribute("normal",new Jr(l,3)),this.setAttribute("uv",new Jr(c,2))}static fromJSON(t){return new Cf(t.radius,t.tube,t.tubularSegments,t.radialSegments,t.p,t.q)}}class Af extends so{constructor(t=new Cp(new vi(-1,-1,0),new vi(-1,1,0),new vi(1,1,0)),e=64,n=1,i=8,r=!1){super(),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:i,closed:r};const o=t.computeFrenetFrames(e,r);this.tangents=o.tangents,this.normals=o.normals,this.binormals=o.binormals;const a=new vi,s=new vi,l=new ei;let c=new vi;const u=[],h=[],d=[],p=[];function f(){for(let t=0;t<e;t++)g(t);g(!1===r?e:0),v(),m()}function g(r){c=t.getPointAt(r/e,c);const l=o.normals[r],d=o.binormals[r];for(let t=0;t<=i;t++){const e=t/i*Math.PI*2,r=Math.sin(e),o=-Math.cos(e);s.x=o*l.x+r*d.x,s.y=o*l.y+r*d.y,s.z=o*l.z+r*d.z,s.normalize(),h.push(s.x,s.y,s.z),a.x=c.x+n*s.x,a.y=c.y+n*s.y,a.z=c.z+n*s.z,u.push(a.x,a.y,a.z)}}function m(){for(let t=1;t<=e;t++)for(let e=1;e<=i;e++){const n=(i+1)*(t-1)+(e-1),r=(i+1)*t+(e-1),o=(i+1)*t+e,a=(i+1)*(t-1)+e;p.push(n,r,a),p.push(r,o,a)}}function v(){for(let t=0;t<=e;t++)for(let n=0;n<=i;n++)l.x=t/e,l.y=n/i,d.push(l.x,l.y)}f(),this.setIndex(p),this.setAttribute("position",new Jr(u,3)),this.setAttribute("normal",new Jr(h,3)),this.setAttribute("uv",new Jr(d,2))}toJSON(){const t=super.toJSON();return t.path=this.parameters.path.toJSON(),t}static fromJSON(t){return new Af((new Ip[t.path.type]).fromJSON(t.path),t.tubularSegments,t.radius,t.radialSegments,t.closed)}}class If extends so{constructor(t=null){if(super(),this.type="WireframeGeometry",this.parameters={geometry:t},null!==t){const e=[],n=new Set,i=new vi,r=new vi;if(null!==t.index){const o=t.attributes.position,a=t.index;let s=t.groups;0===s.length&&(s=[{start:0,count:a.count,materialIndex:0}]);for(let t=0,l=s.length;t<l;++t){const l=s[t],c=l.start,u=l.count;for(let t=c,s=c+u;t<s;t+=3)for(let l=0;l<3;l++){const s=a.getX(t+l),c=a.getX(t+(l+1)%3);i.fromBufferAttribute(o,s),r.fromBufferAttribute(o,c),!0===Sf(i,r,n)&&(e.push(i.x,i.y,i.z),e.push(r.x,r.y,r.z))}}}else{const o=t.attributes.position;for(let t=0,a=o.count/3;t<a;t++)for(let s=0;s<3;s++){const a=3*t+s,l=3*t+(s+1)%3;i.fromBufferAttribute(o,a),r.fromBufferAttribute(o,l),!0===Sf(i,r,n)&&(e.push(i.x,i.y,i.z),e.push(r.x,r.y,r.z))}}this.setAttribute("position",new Jr(e,3))}}}function Sf(t,e,n){const i=`${t.x},${t.y},${t.z}-${e.x},${e.y},${e.z}`,r=`${e.x},${e.y},${e.z}-${t.x},${t.y},${t.z}`;return!0!==n.has(i)&&!0!==n.has(r)&&(n.add(i,r),!0)}var Mf=Object.freeze({__proto__:null,BoxGeometry:Eo,BoxBufferGeometry:Eo,CircleGeometry:Hd,CircleBufferGeometry:Hd,ConeGeometry:Ud,ConeBufferGeometry:Ud,CylinderGeometry:Wd,CylinderBufferGeometry:Wd,DodecahedronGeometry:Yd,DodecahedronBufferGeometry:Yd,EdgesGeometry:Jd,ExtrudeGeometry:hf,ExtrudeBufferGeometry:hf,IcosahedronGeometry:ff,IcosahedronBufferGeometry:ff,LatheGeometry:gf,LatheBufferGeometry:gf,OctahedronGeometry:mf,OctahedronBufferGeometry:mf,PlaneGeometry:Jo,PlaneBufferGeometry:Jo,PolyhedronGeometry:Zd,PolyhedronBufferGeometry:Zd,RingGeometry:vf,RingBufferGeometry:vf,ShapeGeometry:yf,ShapeBufferGeometry:yf,SphereGeometry:xf,SphereBufferGeometry:xf,TetrahedronGeometry:wf,TetrahedronBufferGeometry:wf,TorusGeometry:_f,TorusBufferGeometry:_f,TorusKnotGeometry:Cf,TorusKnotBufferGeometry:Cf,TubeGeometry:Af,TubeBufferGeometry:Af,WireframeGeometry:If});class kf extends Pr{constructor(t){super(),this.type="ShadowMaterial",this.color=new Fr(0),this.transparent=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this}}kf.prototype.isShadowMaterial=!0;class Ef extends Pr{constructor(t){super(),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new Fr(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Fr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=$e,this.normalScale=new ei(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this}}Ef.prototype.isMeshStandardMaterial=!0;class Tf extends Ef{constructor(t){super(),this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new ei(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Dn(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.sheenColor=new Fr(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=0,this.attenuationColor=new Fr(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new Fr(1,1,1),this.specularColorMap=null,this._sheen=0,this._clearcoat=0,this._transmission=0,this.setValues(t)}get sheen(){return this._sheen}set sheen(t){this._sheen>0!==t>0&&this.version++,this._sheen=t}get clearcoat(){return this._clearcoat}set clearcoat(t){this._clearcoat>0!==t>0&&this.version++,this._clearcoat=t}get transmission(){return this._transmission}set transmission(t){this._transmission>0!==t>0&&this.version++,this._transmission=t}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.ior=t.ior,this.sheen=t.sheen,this.sheenColor.copy(t.sheenColor),this.sheenColorMap=t.sheenColorMap,this.sheenRoughness=t.sheenRoughness,this.sheenRoughnessMap=t.sheenRoughnessMap,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this.specularIntensity=t.specularIntensity,this.specularIntensityMap=t.specularIntensityMap,this.specularColor.copy(t.specularColor),this.specularColorMap=t.specularColorMap,this}}Tf.prototype.isMeshPhysicalMaterial=!0;class Of extends Pr{constructor(t){super(),this.type="MeshPhongMaterial",this.color=new Fr(16777215),this.specular=new Fr(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Fr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=$e,this.normalScale=new ei(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=q,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this}}Of.prototype.isMeshPhongMaterial=!0;class Pf extends Pr{constructor(t){super(),this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Fr(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Fr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=$e,this.normalScale=new ei(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.gradientMap=t.gradientMap,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this}}Pf.prototype.isMeshToonMaterial=!0;class jf extends Pr{constructor(t){super(),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=$e,this.normalScale=new ei(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.flatShading=t.flatShading,this}}jf.prototype.isMeshNormalMaterial=!0;class Lf extends Pr{constructor(t){super(),this.type="MeshLambertMaterial",this.color=new Fr(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Fr(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=q,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this}}Lf.prototype.isMeshLambertMaterial=!0;class Df extends Pr{constructor(t){super(),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Fr(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=$e,this.normalScale=new ei(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.flatShading=t.flatShading,this}}Df.prototype.isMeshMatcapMaterial=!0;class Rf extends wd{constructor(t){super(),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}copy(t){return super.copy(t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this}}Rf.prototype.isLineDashedMaterial=!0;var Bf=Object.freeze({__proto__:null,ShadowMaterial:kf,SpriteMaterial:Fh,RawShaderMaterial:Dl,ShaderMaterial:Do,PointsMaterial:Pd,MeshPhysicalMaterial:Tf,MeshStandardMaterial:Ef,MeshPhongMaterial:Of,MeshToonMaterial:Pf,MeshNormalMaterial:jf,MeshLambertMaterial:Lf,MeshDepthMaterial:gh,MeshDistanceMaterial:mh,MeshBasicMaterial:zr,MeshMatcapMaterial:Df,LineDashedMaterial:Rf,LineBasicMaterial:wd,Material:Pr});const Nf={arraySlice:function(t,e,n){return Nf.isTypedArray(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"===typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){function e(e,n){return t[e]-t[n]}const n=t.length,i=new Array(n);for(let r=0;r!==n;++r)i[r]=r;return i.sort(e),i},sortedArray:function(t,e,n){const i=t.length,r=new t.constructor(i);for(let o=0,a=0;a!==i;++o){const i=n[o]*e;for(let n=0;n!==e;++n)r[a++]=t[i+n]}return r},flattenJSON:function(t,e,n,i){let r=1,o=t[0];while(void 0!==o&&void 0===o[i])o=t[r++];if(void 0===o)return;let a=o[i];if(void 0!==a)if(Array.isArray(a))do{a=o[i],void 0!==a&&(e.push(o.time),n.push.apply(n,a)),o=t[r++]}while(void 0!==o);else if(void 0!==a.toArray)do{a=o[i],void 0!==a&&(e.push(o.time),a.toArray(n,n.length)),o=t[r++]}while(void 0!==o);else do{a=o[i],void 0!==a&&(e.push(o.time),n.push(a)),o=t[r++]}while(void 0!==o)},subclip:function(t,e,n,i,r=30){const o=t.clone();o.name=e;const a=[];for(let l=0;l<o.tracks.length;++l){const t=o.tracks[l],e=t.getValueSize(),s=[],c=[];for(let o=0;o<t.times.length;++o){const a=t.times[o]*r;if(!(a<n||a>=i)){s.push(t.times[o]);for(let n=0;n<e;++n)c.push(t.values[o*e+n])}}0!==s.length&&(t.times=Nf.convertArray(s,t.times.constructor),t.values=Nf.convertArray(c,t.values.constructor),a.push(t))}o.tracks=a;let s=1/0;for(let l=0;l<o.tracks.length;++l)s>o.tracks[l].times[0]&&(s=o.tracks[l].times[0]);for(let l=0;l<o.tracks.length;++l)o.tracks[l].shift(-1*s);return o.resetDuration(),o},makeClipAdditive:function(t,e=0,n=t,i=30){i<=0&&(i=30);const r=n.tracks.length,o=e/i;for(let a=0;a<r;++a){const e=n.tracks[a],i=e.ValueTypeName;if("bool"===i||"string"===i)continue;const r=t.tracks.find((function(t){return t.name===e.name&&t.ValueTypeName===i}));if(void 0===r)continue;let s=0;const l=e.getValueSize();e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(s=l/3);let c=0;const u=r.getValueSize();r.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(c=u/3);const h=e.times.length-1;let d;if(o<=e.times[0]){const t=s,n=l-s;d=Nf.arraySlice(e.values,t,n)}else if(o>=e.times[h]){const t=h*l+s,n=t+l-s;d=Nf.arraySlice(e.values,t,n)}else{const t=e.createInterpolant(),n=s,i=l-s;t.evaluate(o),d=Nf.arraySlice(t.resultBuffer,n,i)}if("quaternion"===i){const t=(new mi).fromArray(d).normalize().conjugate();t.toArray(d)}const p=r.times.length;for(let t=0;t<p;++t){const e=t*u+c;if("quaternion"===i)mi.multiplyQuaternionsFlat(r.values,e,d,0,r.values,e);else{const t=u-2*c;for(let n=0;n<t;++n)r.values[e+n]-=d[n]}}}return t.blendMode=Ue,t}};class Ff{constructor(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(t){const e=this.parameterPositions;let n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{let o;n:{i:if(!(t<i)){for(let o=n+2;;){if(void 0===i){if(t<r)break i;return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,t,r)}if(n===o)break;if(r=i,i=e[++n],t<i)break e}o=e.length;break n}if(t>=r)break t;{const a=e[1];t<a&&(n=2,r=a);for(let o=n-2;;){if(void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,i);if(n===o)break;if(i=r,r=e[--n-1],t>=r)break e}o=n,n=0}}while(n<o){const i=n+o>>>1;t<e[i]?o=i:n=i+1}if(i=e[n],r=e[n-1],void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,i);if(void 0===i)return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,r,t)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,t,i)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(t){const e=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=t*i;for(let o=0;o!==i;++o)e[o]=n[r+o];return e}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}Ff.prototype.beforeStart_=Ff.prototype.copySampleValue_,Ff.prototype.afterEnd_=Ff.prototype.copySampleValue_;class zf extends Ff{constructor(t,e,n,i){super(t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:Ve,endingEnd:Ve}}intervalChanged_(t,e,n){const i=this.parameterPositions;let r=t-2,o=t+1,a=i[r],s=i[o];if(void 0===a)switch(this.getSettings_().endingStart){case Ge:r=t,a=2*e-n;break;case He:r=i.length-2,a=e+i[r]-i[r+1];break;default:r=t,a=n}if(void 0===s)switch(this.getSettings_().endingEnd){case Ge:o=t,s=2*n-e;break;case He:o=1,s=n+i[1]-i[0];break;default:o=t-1,s=e}const l=.5*(n-e),c=this.valueSize;this._weightPrev=l/(e-a),this._weightNext=l/(s-n),this._offsetPrev=r*c,this._offsetNext=o*c}interpolate_(t,e,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,l=s-a,c=this._offsetPrev,u=this._offsetNext,h=this._weightPrev,d=this._weightNext,p=(n-e)/(i-e),f=p*p,g=f*p,m=-h*g+2*h*f-h*p,v=(1+h)*g+(-1.5-2*h)*f+(-.5+h)*p+1,y=(-1-d)*g+(1.5+d)*f+.5*p,b=d*g-d*f;for(let x=0;x!==a;++x)r[x]=m*o[c+x]+v*o[l+x]+y*o[s+x]+b*o[u+x];return r}}class Vf extends Ff{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,l=s-a,c=(n-e)/(i-e),u=1-c;for(let h=0;h!==a;++h)r[h]=o[l+h]*u+o[s+h]*c;return r}}class Gf extends Ff{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t){return this.copySampleValue_(t-1)}}class Hf{constructor(t,e,n,i){if(void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=Nf.convertArray(e,this.TimeBufferType),this.values=Nf.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}static toJSON(t){const e=t.constructor;let n;if(e.toJSON!==this.toJSON)n=e.toJSON(t);else{n={name:t.name,times:Nf.convertArray(t.times,Array),values:Nf.convertArray(t.values,Array)};const e=t.getInterpolation();e!==t.DefaultInterpolation&&(n.interpolation=e)}return n.type=t.ValueTypeName,n}InterpolantFactoryMethodDiscrete(t){return new Gf(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodLinear(t){return new Vf(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodSmooth(t){return new zf(this.times,this.values,this.getValueSize(),t)}setInterpolation(t){let e;switch(t){case Ne:e=this.InterpolantFactoryMethodDiscrete;break;case Fe:e=this.InterpolantFactoryMethodLinear;break;case ze:e=this.InterpolantFactoryMethodSmooth;break}if(void 0===e){const e="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(e);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",e),this}return this.createInterpolant=e,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return Ne;case this.InterpolantFactoryMethodLinear:return Fe;case this.InterpolantFactoryMethodSmooth:return ze}}getValueSize(){return this.values.length/this.times.length}shift(t){if(0!==t){const e=this.times;for(let n=0,i=e.length;n!==i;++n)e[n]+=t}return this}scale(t){if(1!==t){const e=this.times;for(let n=0,i=e.length;n!==i;++n)e[n]*=t}return this}trim(t,e){const n=this.times,i=n.length;let r=0,o=i-1;while(r!==i&&n[r]<t)++r;while(-1!==o&&n[o]>e)--o;if(++o,0!==r||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);const t=this.getValueSize();this.times=Nf.arraySlice(n,r,o),this.values=Nf.arraySlice(this.values,r*t,o*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let o=null;for(let a=0;a!==r;a++){const e=n[a];if("number"===typeof e&&isNaN(e)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,e),t=!1;break}if(null!==o&&o>e){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,e,o),t=!1;break}o=e}if(void 0!==i&&Nf.isTypedArray(i))for(let a=0,s=i.length;a!==s;++a){const e=i[a];if(isNaN(e)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,e),t=!1;break}}return t}optimize(){const t=Nf.arraySlice(this.times),e=Nf.arraySlice(this.values),n=this.getValueSize(),i=this.getInterpolation()===ze,r=t.length-1;let o=1;for(let a=1;a<r;++a){let r=!1;const s=t[a],l=t[a+1];if(s!==l&&(1!==a||s!==t[0]))if(i)r=!0;else{const t=a*n,i=t-n,o=t+n;for(let a=0;a!==n;++a){const n=e[t+a];if(n!==e[i+a]||n!==e[o+a]){r=!0;break}}}if(r){if(a!==o){t[o]=t[a];const i=a*n,r=o*n;for(let t=0;t!==n;++t)e[r+t]=e[i+t]}++o}}if(r>0){t[o]=t[r];for(let t=r*n,i=o*n,a=0;a!==n;++a)e[i+a]=e[t+a];++o}return o!==t.length?(this.times=Nf.arraySlice(t,0,o),this.values=Nf.arraySlice(e,0,o*n)):(this.times=t,this.values=e),this}clone(){const t=Nf.arraySlice(this.times,0),e=Nf.arraySlice(this.values,0),n=this.constructor,i=new n(this.name,t,e);return i.createInterpolant=this.createInterpolant,i}}Hf.prototype.TimeBufferType=Float32Array,Hf.prototype.ValueBufferType=Float32Array,Hf.prototype.DefaultInterpolation=Fe;class Wf extends Hf{}Wf.prototype.ValueTypeName="bool",Wf.prototype.ValueBufferType=Array,Wf.prototype.DefaultInterpolation=Ne,Wf.prototype.InterpolantFactoryMethodLinear=void 0,Wf.prototype.InterpolantFactoryMethodSmooth=void 0;class Uf extends Hf{}Uf.prototype.ValueTypeName="color";class Zf extends Hf{}Zf.prototype.ValueTypeName="number";class Yf extends Ff{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=(n-e)/(i-e);let l=t*a;for(let c=l+a;l!==c;l+=4)mi.slerpFlat(r,0,o,l-a,o,l,s);return r}}class Xf extends Hf{InterpolantFactoryMethodLinear(t){return new Yf(this.times,this.values,this.getValueSize(),t)}}Xf.prototype.ValueTypeName="quaternion",Xf.prototype.DefaultInterpolation=Fe,Xf.prototype.InterpolantFactoryMethodSmooth=void 0;class qf extends Hf{}qf.prototype.ValueTypeName="string",qf.prototype.ValueBufferType=Array,qf.prototype.DefaultInterpolation=Ne,qf.prototype.InterpolantFactoryMethodLinear=void 0,qf.prototype.InterpolantFactoryMethodSmooth=void 0;class Kf extends Hf{}Kf.prototype.ValueTypeName="vector";class Qf{constructor(t,e=-1,n,i=We){this.name=t,this.tracks=n,this.duration=e,this.blendMode=i,this.uuid=Ln(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,i=1/(t.fps||1);for(let o=0,a=n.length;o!==a;++o)e.push($f(n[o]).scale(i));const r=new this(t.name,t.duration,e,t.blendMode);return r.uuid=t.uuid,r}static toJSON(t){const e=[],n=t.tracks,i={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let r=0,o=n.length;r!==o;++r)e.push(Hf.toJSON(n[r]));return i}static CreateFromMorphTargetSequence(t,e,n,i){const r=e.length,o=[];for(let a=0;a<r;a++){let t=[],s=[];t.push((a+r-1)%r,a,(a+1)%r),s.push(0,1,0);const l=Nf.getKeyframeOrder(t);t=Nf.sortedArray(t,1,l),s=Nf.sortedArray(s,1,l),i||0!==t[0]||(t.push(r),s.push(s[0])),o.push(new Zf(".morphTargetInfluences["+e[a].name+"]",t,s).scale(1/n))}return new this(t,-1,o)}static findByName(t,e){let n=t;if(!Array.isArray(t)){const e=t;n=e.geometry&&e.geometry.animations||e.animations}for(let i=0;i<n.length;i++)if(n[i].name===e)return n[i];return null}static CreateClipsFromMorphTargetSequences(t,e,n){const i={},r=/^([\w-]*?)([\d]+)$/;for(let a=0,s=t.length;a<s;a++){const e=t[a],n=e.name.match(r);if(n&&n.length>1){const t=n[1];let r=i[t];r||(i[t]=r=[]),r.push(e)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],e,n));return o}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(t,e,n,i,r){if(0!==n.length){const o=[],a=[];Nf.flattenJSON(n,o,a,i),0!==o.length&&r.push(new t(e,o,a))}},i=[],r=t.name||"default",o=t.fps||30,a=t.blendMode;let s=t.length||-1;const l=t.hierarchy||[];for(let u=0;u<l.length;u++){const t=l[u].keys;if(t&&0!==t.length)if(t[0].morphTargets){const e={};let n;for(n=0;n<t.length;n++)if(t[n].morphTargets)for(let i=0;i<t[n].morphTargets.length;i++)e[t[n].morphTargets[i]]=-1;for(const r in e){const e=[],o=[];for(let i=0;i!==t[n].morphTargets.length;++i){const i=t[n];e.push(i.time),o.push(i.morphTarget===r?1:0)}i.push(new Zf(".morphTargetInfluence["+r+"]",e,o))}s=e.length*(o||1)}else{const r=".bones["+e[u].name+"]";n(Kf,r+".position",t,"pos",i),n(Xf,r+".quaternion",t,"rot",i),n(Kf,r+".scale",t,"scl",i)}}if(0===i.length)return null;const c=new this(r,s,i,a);return c}resetDuration(){const t=this.tracks;let e=0;for(let n=0,i=t.length;n!==i;++n){const t=this.tracks[n];e=Math.max(e,t.times[t.times.length-1])}return this.duration=e,this}trim(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this}validate(){let t=!0;for(let e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t}optimize(){for(let t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}clone(){const t=[];for(let e=0;e<this.tracks.length;e++)t.push(this.tracks[e].clone());return new this.constructor(this.name,this.duration,t,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function Jf(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return Zf;case"vector":case"vector2":case"vector3":case"vector4":return Kf;case"color":return Uf;case"quaternion":return Xf;case"bool":case"boolean":return Wf;case"string":return qf}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}function $f(t){if(void 0===t.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=Jf(t.type);if(void 0===t.times){const e=[],n=[];Nf.flattenJSON(t.keys,e,n,"value"),t.times=e,t.values=n}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}const tg={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};class eg{constructor(t,e,n){const i=this;let r=!1,o=0,a=0,s=void 0;const l=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){a++,!1===r&&void 0!==i.onStart&&i.onStart(t,o,a),r=!0},this.itemEnd=function(t){o++,void 0!==i.onProgress&&i.onProgress(t,o,a),o===a&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)},this.resolveURL=function(t){return s?s(t):t},this.setURLModifier=function(t){return s=t,this},this.addHandler=function(t,e){return l.push(t,e),this},this.removeHandler=function(t){const e=l.indexOf(t);return-1!==e&&l.splice(e,2),this},this.getHandler=function(t){for(let e=0,n=l.length;e<n;e+=2){const n=l[e],i=l[e+1];if(n.global&&(n.lastIndex=0),n.test(t))return i}return null}}}const ng=new eg;class ig{constructor(t){this.manager=void 0!==t?t:ng,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,e){const n=this;return new Promise((function(i,r){n.load(t,i,e,r)}))}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}}const rg={};class og extends ig{constructor(t){super(t)}load(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=tg.get(t);if(void 0!==r)return this.manager.itemStart(t),setTimeout(()=>{e&&e(r),this.manager.itemEnd(t)},0),r;if(void 0!==rg[t])return void rg[t].push({onLoad:e,onProgress:n,onError:i});rg[t]=[],rg[t].push({onLoad:e,onProgress:n,onError:i});const o=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"});fetch(o).then(e=>{if(200===e.status||0===e.status){if(0===e.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"===typeof ReadableStream||void 0===e.body.getReader)return e;const n=rg[t],i=e.body.getReader(),r=e.headers.get("Content-Length"),o=r?parseInt(r):0,a=0!==o;let s=0;const l=new ReadableStream({start(t){function e(){i.read().then(({done:i,value:r})=>{if(i)t.close();else{s+=r.byteLength;const i=new ProgressEvent("progress",{lengthComputable:a,loaded:s,total:o});for(let t=0,e=n.length;t<e;t++){const e=n[t];e.onProgress&&e.onProgress(i)}t.enqueue(r),e()}})}e()}});return new Response(l)}throw Error(`fetch for "${e.url}" responded with ${e.status}: ${e.statusText}`)}).then(t=>{switch(this.responseType){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"document":return t.text().then(t=>{const e=new DOMParser;return e.parseFromString(t,this.mimeType)});case"json":return t.json();default:return t.text()}}).then(e=>{tg.add(t,e);const n=rg[t];delete rg[t];for(let t=0,i=n.length;t<i;t++){const i=n[t];i.onLoad&&i.onLoad(e)}}).catch(e=>{const n=rg[t];if(void 0===n)throw this.manager.itemError(t),e;delete rg[t];for(let t=0,i=n.length;t<i;t++){const i=n[t];i.onError&&i.onError(e)}this.manager.itemError(t)}).finally(()=>{this.manager.itemEnd(t)}),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class ag extends ig{constructor(t){super(t)}load(t,e,n,i){const r=this,o=new og(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(function(n){try{e(r.parse(JSON.parse(n)))}catch(o){i?i(o):console.error(o),r.manager.itemError(t)}}),n,i)}parse(t){const e=[];for(let n=0;n<t.length;n++){const i=Qf.parse(t[n]);e.push(i)}return e}}class sg extends ig{constructor(t){super(t)}load(t,e,n,i){const r=this,o=[],a=new Vd,s=new og(this.manager);s.setPath(this.path),s.setResponseType("arraybuffer"),s.setRequestHeader(this.requestHeader),s.setWithCredentials(r.withCredentials);let l=0;function c(c){s.load(t[c],(function(t){const n=r.parse(t,!0);o[c]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},l+=1,6===l&&(1===n.mipmapCount&&(a.minFilter=bt),a.image=o,a.format=n.format,a.needsUpdate=!0,e&&e(a))}),n,i)}if(Array.isArray(t))for(let u=0,h=t.length;u<h;++u)c(u);else s.load(t,(function(t){const n=r.parse(t,!0);if(n.isCubemap){const t=n.mipmaps.length/n.mipmapCount;for(let e=0;e<t;e++){o[e]={mipmaps:[]};for(let t=0;t<n.mipmapCount;t++)o[e].mipmaps.push(n.mipmaps[e*n.mipmapCount+t]),o[e].format=n.format,o[e].width=n.width,o[e].height=n.height}a.image=o}else a.image.width=n.width,a.image.height=n.height,a.mipmaps=n.mipmaps;1===n.mipmapCount&&(a.minFilter=bt),a.format=n.format,a.needsUpdate=!0,e&&e(a)}),n,i);return a}}class lg extends ig{constructor(t){super(t)}load(t,e,n,i){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,o=tg.get(t);if(void 0!==o)return r.manager.itemStart(t),setTimeout((function(){e&&e(o),r.manager.itemEnd(t)}),0),o;const a=ai("img");function s(){c(),tg.add(t,this),e&&e(this),r.manager.itemEnd(t)}function l(e){c(),i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)}function c(){a.removeEventListener("load",s,!1),a.removeEventListener("error",l,!1)}return a.addEventListener("load",s,!1),a.addEventListener("error",l,!1),"data:"!==t.substr(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(t),a.src=t,a}}class cg extends ig{constructor(t){super(t)}load(t,e,n,i){const r=new Vo,o=new lg(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);let a=0;function s(n){o.load(t[n],(function(t){r.images[n]=t,a++,6===a&&(r.needsUpdate=!0,e&&e(r))}),void 0,i)}for(let l=0;l<t.length;++l)s(l);return r}}class ug extends ig{constructor(t){super(t)}load(t,e,n,i){const r=this,o=new hd,a=new og(this.manager);return a.setResponseType("arraybuffer"),a.setRequestHeader(this.requestHeader),a.setPath(this.path),a.setWithCredentials(r.withCredentials),a.load(t,(function(t){const n=r.parse(t);n&&(void 0!==n.image?o.image=n.image:void 0!==n.data&&(o.image.width=n.width,o.image.height=n.height,o.image.data=n.data),o.wrapS=void 0!==n.wrapS?n.wrapS:dt,o.wrapT=void 0!==n.wrapT?n.wrapT:dt,o.magFilter=void 0!==n.magFilter?n.magFilter:bt,o.minFilter=void 0!==n.minFilter?n.minFilter:bt,o.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.encoding&&(o.encoding=n.encoding),void 0!==n.flipY&&(o.flipY=n.flipY),void 0!==n.format&&(o.format=n.format),void 0!==n.type&&(o.type=n.type),void 0!==n.mipmaps&&(o.mipmaps=n.mipmaps,o.minFilter=_t),1===n.mipmapCount&&(o.minFilter=bt),void 0!==n.generateMipmaps&&(o.generateMipmaps=n.generateMipmaps),o.needsUpdate=!0,e&&e(o,n))}),n,i),o}}class hg extends ig{constructor(t){super(t)}load(t,e,n,i){const r=new ui,o=new lg(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,(function(t){r.image=t,r.needsUpdate=!0,void 0!==e&&e(r)}),n,i),r}}class dg extends br{constructor(t,e=1){super(),this.type="Light",this.color=new Fr(t),this.intensity=e}dispose(){}copy(t){return super.copy(t),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}dg.prototype.isLight=!0;class pg extends dg{constructor(t,e,n){super(t,n),this.type="HemisphereLight",this.position.copy(br.DefaultUp),this.updateMatrix(),this.groundColor=new Fr(e)}copy(t){return dg.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}pg.prototype.isHemisphereLight=!0;const fg=new Xi,gg=new vi,mg=new vi;class vg{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new ei(512,512),this.map=null,this.mapPass=null,this.matrix=new Xi,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new qo,this._frameExtents=new ei(1,1),this._viewportCount=1,this._viewports=[new di(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;gg.setFromMatrixPosition(t.matrixWorld),e.position.copy(gg),mg.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(mg),e.updateMatrixWorld(),fg.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(fg),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(e.projectionMatrix),n.multiply(e.matrixWorldInverse)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return(new this.constructor).copy(this)}toJSON(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class yg extends vg{constructor(){super(new Bo(50,1,.5,500)),this.focus=1}updateMatrices(t){const e=this.camera,n=2*jn*t.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=t.distance||e.far;n===e.fov&&i===e.aspect&&r===e.far||(e.fov=n,e.aspect=i,e.far=r,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}yg.prototype.isSpotLightShadow=!0;class bg extends dg{constructor(t,e,n=0,i=Math.PI/3,r=0,o=1){super(t,e),this.type="SpotLight",this.position.copy(br.DefaultUp),this.updateMatrix(),this.target=new br,this.distance=n,this.angle=i,this.penumbra=r,this.decay=o,this.shadow=new yg}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}bg.prototype.isSpotLight=!0;const xg=new Xi,wg=new vi,_g=new vi;class Cg extends vg{constructor(){super(new Bo(90,1,.5,500)),this._frameExtents=new ei(4,2),this._viewportCount=6,this._viewports=[new di(2,1,1,1),new di(0,1,1,1),new di(3,1,1,1),new di(1,1,1,1),new di(3,0,1,1),new di(1,0,1,1)],this._cubeDirections=[new vi(1,0,0),new vi(-1,0,0),new vi(0,0,1),new vi(0,0,-1),new vi(0,1,0),new vi(0,-1,0)],this._cubeUps=[new vi(0,1,0),new vi(0,1,0),new vi(0,1,0),new vi(0,1,0),new vi(0,0,1),new vi(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,i=this.matrix,r=t.distance||n.far;r!==n.far&&(n.far=r,n.updateProjectionMatrix()),wg.setFromMatrixPosition(t.matrixWorld),n.position.copy(wg),_g.copy(n.position),_g.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(_g),n.updateMatrixWorld(),i.makeTranslation(-wg.x,-wg.y,-wg.z),xg.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(xg)}}Cg.prototype.isPointLightShadow=!0;class Ag extends dg{constructor(t,e,n=0,i=1){super(t,e),this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new Cg}get power(){return 4*this.intensity*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}Ag.prototype.isPointLight=!0;class Ig extends vg{constructor(){super(new Ll(-5,5,5,-5,.5,500))}}Ig.prototype.isDirectionalLightShadow=!0;class Sg extends dg{constructor(t,e){super(t,e),this.type="DirectionalLight",this.position.copy(br.DefaultUp),this.updateMatrix(),this.target=new br,this.shadow=new Ig}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}Sg.prototype.isDirectionalLight=!0;class Mg extends dg{constructor(t,e){super(t,e),this.type="AmbientLight"}}Mg.prototype.isAmbientLight=!0;class kg extends dg{constructor(t,e,n=10,i=10){super(t,e),this.type="RectAreaLight",this.width=n,this.height=i}get power(){return this.intensity*this.width*this.height*Math.PI}set power(t){this.intensity=t/(this.width*this.height*Math.PI)}copy(t){return super.copy(t),this.width=t.width,this.height=t.height,this}toJSON(t){const e=super.toJSON(t);return e.object.width=this.width,e.object.height=this.height,e}}kg.prototype.isRectAreaLight=!0;class Eg{constructor(){this.coefficients=[];for(let t=0;t<9;t++)this.coefficients.push(new vi)}set(t){for(let e=0;e<9;e++)this.coefficients[e].copy(t[e]);return this}zero(){for(let t=0;t<9;t++)this.coefficients[t].set(0,0,0);return this}getAt(t,e){const n=t.x,i=t.y,r=t.z,o=this.coefficients;return e.copy(o[0]).multiplyScalar(.282095),e.addScaledVector(o[1],.488603*i),e.addScaledVector(o[2],.488603*r),e.addScaledVector(o[3],.488603*n),e.addScaledVector(o[4],n*i*1.092548),e.addScaledVector(o[5],i*r*1.092548),e.addScaledVector(o[6],.315392*(3*r*r-1)),e.addScaledVector(o[7],n*r*1.092548),e.addScaledVector(o[8],.546274*(n*n-i*i)),e}getIrradianceAt(t,e){const n=t.x,i=t.y,r=t.z,o=this.coefficients;return e.copy(o[0]).multiplyScalar(.886227),e.addScaledVector(o[1],1.023328*i),e.addScaledVector(o[2],1.023328*r),e.addScaledVector(o[3],1.023328*n),e.addScaledVector(o[4],.858086*n*i),e.addScaledVector(o[5],.858086*i*r),e.addScaledVector(o[6],.743125*r*r-.247708),e.addScaledVector(o[7],.858086*n*r),e.addScaledVector(o[8],.429043*(n*n-i*i)),e}add(t){for(let e=0;e<9;e++)this.coefficients[e].add(t.coefficients[e]);return this}addScaledSH(t,e){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(t.coefficients[n],e);return this}scale(t){for(let e=0;e<9;e++)this.coefficients[e].multiplyScalar(t);return this}lerp(t,e){for(let n=0;n<9;n++)this.coefficients[n].lerp(t.coefficients[n],e);return this}equals(t){for(let e=0;e<9;e++)if(!this.coefficients[e].equals(t.coefficients[e]))return!1;return!0}copy(t){return this.set(t.coefficients)}clone(){return(new this.constructor).copy(this)}fromArray(t,e=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].fromArray(t,e+3*i);return this}toArray(t=[],e=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].toArray(t,e+3*i);return t}static getBasisAt(t,e){const n=t.x,i=t.y,r=t.z;e[0]=.282095,e[1]=.488603*i,e[2]=.488603*r,e[3]=.488603*n,e[4]=1.092548*n*i,e[5]=1.092548*i*r,e[6]=.315392*(3*r*r-1),e[7]=1.092548*n*r,e[8]=.546274*(n*n-i*i)}}Eg.prototype.isSphericalHarmonics3=!0;class Tg extends dg{constructor(t=new Eg,e=1){super(void 0,e),this.sh=t}copy(t){return super.copy(t),this.sh.copy(t.sh),this}fromJSON(t){return this.intensity=t.intensity,this.sh.fromArray(t.sh),this}toJSON(t){const e=super.toJSON(t);return e.object.sh=this.sh.toArray(),e}}Tg.prototype.isLightProbe=!0;class Og extends ig{constructor(t){super(t),this.textures={}}load(t,e,n,i){const r=this,o=new og(r.manager);o.setPath(r.path),o.setRequestHeader(r.requestHeader),o.setWithCredentials(r.withCredentials),o.load(t,(function(n){try{e(r.parse(JSON.parse(n)))}catch(o){i?i(o):console.error(o),r.manager.itemError(t)}}),n,i)}parse(t){const e=this.textures;function n(t){return void 0===e[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),e[t]}const i=new Bf[t.type];if(void 0!==t.uuid&&(i.uuid=t.uuid),void 0!==t.name&&(i.name=t.name),void 0!==t.color&&void 0!==i.color&&i.color.setHex(t.color),void 0!==t.roughness&&(i.roughness=t.roughness),void 0!==t.metalness&&(i.metalness=t.metalness),void 0!==t.sheen&&(i.sheen=t.sheen),void 0!==t.sheenColor&&(i.sheenColor=(new Fr).setHex(t.sheenColor)),void 0!==t.sheenRoughness&&(i.sheenRoughness=t.sheenRoughness),void 0!==t.emissive&&void 0!==i.emissive&&i.emissive.setHex(t.emissive),void 0!==t.specular&&void 0!==i.specular&&i.specular.setHex(t.specular),void 0!==t.specularIntensity&&(i.specularIntensity=t.specularIntensity),void 0!==t.specularColor&&void 0!==i.specularColor&&i.specularColor.setHex(t.specularColor),void 0!==t.shininess&&(i.shininess=t.shininess),void 0!==t.clearcoat&&(i.clearcoat=t.clearcoat),void 0!==t.clearcoatRoughness&&(i.clearcoatRoughness=t.clearcoatRoughness),void 0!==t.transmission&&(i.transmission=t.transmission),void 0!==t.thickness&&(i.thickness=t.thickness),void 0!==t.attenuationDistance&&(i.attenuationDistance=t.attenuationDistance),void 0!==t.attenuationColor&&void 0!==i.attenuationColor&&i.attenuationColor.setHex(t.attenuationColor),void 0!==t.fog&&(i.fog=t.fog),void 0!==t.flatShading&&(i.flatShading=t.flatShading),void 0!==t.blending&&(i.blending=t.blending),void 0!==t.combine&&(i.combine=t.combine),void 0!==t.side&&(i.side=t.side),void 0!==t.shadowSide&&(i.shadowSide=t.shadowSide),void 0!==t.opacity&&(i.opacity=t.opacity),void 0!==t.format&&(i.format=t.format),void 0!==t.transparent&&(i.transparent=t.transparent),void 0!==t.alphaTest&&(i.alphaTest=t.alphaTest),void 0!==t.depthTest&&(i.depthTest=t.depthTest),void 0!==t.depthWrite&&(i.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(i.colorWrite=t.colorWrite),void 0!==t.stencilWrite&&(i.stencilWrite=t.stencilWrite),void 0!==t.stencilWriteMask&&(i.stencilWriteMask=t.stencilWriteMask),void 0!==t.stencilFunc&&(i.stencilFunc=t.stencilFunc),void 0!==t.stencilRef&&(i.stencilRef=t.stencilRef),void 0!==t.stencilFuncMask&&(i.stencilFuncMask=t.stencilFuncMask),void 0!==t.stencilFail&&(i.stencilFail=t.stencilFail),void 0!==t.stencilZFail&&(i.stencilZFail=t.stencilZFail),void 0!==t.stencilZPass&&(i.stencilZPass=t.stencilZPass),void 0!==t.wireframe&&(i.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(i.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.wireframeLinecap&&(i.wireframeLinecap=t.wireframeLinecap),void 0!==t.wireframeLinejoin&&(i.wireframeLinejoin=t.wireframeLinejoin),void 0!==t.rotation&&(i.rotation=t.rotation),1!==t.linewidth&&(i.linewidth=t.linewidth),void 0!==t.dashSize&&(i.dashSize=t.dashSize),void 0!==t.gapSize&&(i.gapSize=t.gapSize),void 0!==t.scale&&(i.scale=t.scale),void 0!==t.polygonOffset&&(i.polygonOffset=t.polygonOffset),void 0!==t.polygonOffsetFactor&&(i.polygonOffsetFactor=t.polygonOffsetFactor),void 0!==t.polygonOffsetUnits&&(i.polygonOffsetUnits=t.polygonOffsetUnits),void 0!==t.dithering&&(i.dithering=t.dithering),void 0!==t.alphaToCoverage&&(i.alphaToCoverage=t.alphaToCoverage),void 0!==t.premultipliedAlpha&&(i.premultipliedAlpha=t.premultipliedAlpha),void 0!==t.visible&&(i.visible=t.visible),void 0!==t.toneMapped&&(i.toneMapped=t.toneMapped),void 0!==t.userData&&(i.userData=t.userData),void 0!==t.vertexColors&&("number"===typeof t.vertexColors?i.vertexColors=t.vertexColors>0:i.vertexColors=t.vertexColors),void 0!==t.uniforms)for(const r in t.uniforms){const e=t.uniforms[r];switch(i.uniforms[r]={},e.type){case"t":i.uniforms[r].value=n(e.value);break;case"c":i.uniforms[r].value=(new Fr).setHex(e.value);break;case"v2":i.uniforms[r].value=(new ei).fromArray(e.value);break;case"v3":i.uniforms[r].value=(new vi).fromArray(e.value);break;case"v4":i.uniforms[r].value=(new di).fromArray(e.value);break;case"m3":i.uniforms[r].value=(new ni).fromArray(e.value);break;case"m4":i.uniforms[r].value=(new Xi).fromArray(e.value);break;default:i.uniforms[r].value=e.value}}if(void 0!==t.defines&&(i.defines=t.defines),void 0!==t.vertexShader&&(i.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(i.fragmentShader=t.fragmentShader),void 0!==t.extensions)for(const r in t.extensions)i.extensions[r]=t.extensions[r];if(void 0!==t.shading&&(i.flatShading=1===t.shading),void 0!==t.size&&(i.size=t.size),void 0!==t.sizeAttenuation&&(i.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(i.map=n(t.map)),void 0!==t.matcap&&(i.matcap=n(t.matcap)),void 0!==t.alphaMap&&(i.alphaMap=n(t.alphaMap)),void 0!==t.bumpMap&&(i.bumpMap=n(t.bumpMap)),void 0!==t.bumpScale&&(i.bumpScale=t.bumpScale),void 0!==t.normalMap&&(i.normalMap=n(t.normalMap)),void 0!==t.normalMapType&&(i.normalMapType=t.normalMapType),void 0!==t.normalScale){let e=t.normalScale;!1===Array.isArray(e)&&(e=[e,e]),i.normalScale=(new ei).fromArray(e)}return void 0!==t.displacementMap&&(i.displacementMap=n(t.displacementMap)),void 0!==t.displacementScale&&(i.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(i.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(i.roughnessMap=n(t.roughnessMap)),void 0!==t.metalnessMap&&(i.metalnessMap=n(t.metalnessMap)),void 0!==t.emissiveMap&&(i.emissiveMap=n(t.emissiveMap)),void 0!==t.emissiveIntensity&&(i.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(i.specularMap=n(t.specularMap)),void 0!==t.specularIntensityMap&&(i.specularIntensityMap=n(t.specularIntensityMap)),void 0!==t.specularColorMap&&(i.specularColorMap=n(t.specularColorMap)),void 0!==t.envMap&&(i.envMap=n(t.envMap)),void 0!==t.envMapIntensity&&(i.envMapIntensity=t.envMapIntensity),void 0!==t.reflectivity&&(i.reflectivity=t.reflectivity),void 0!==t.refractionRatio&&(i.refractionRatio=t.refractionRatio),void 0!==t.lightMap&&(i.lightMap=n(t.lightMap)),void 0!==t.lightMapIntensity&&(i.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(i.aoMap=n(t.aoMap)),void 0!==t.aoMapIntensity&&(i.aoMapIntensity=t.aoMapIntensity),void 0!==t.gradientMap&&(i.gradientMap=n(t.gradientMap)),void 0!==t.clearcoatMap&&(i.clearcoatMap=n(t.clearcoatMap)),void 0!==t.clearcoatRoughnessMap&&(i.clearcoatRoughnessMap=n(t.clearcoatRoughnessMap)),void 0!==t.clearcoatNormalMap&&(i.clearcoatNormalMap=n(t.clearcoatNormalMap)),void 0!==t.clearcoatNormalScale&&(i.clearcoatNormalScale=(new ei).fromArray(t.clearcoatNormalScale)),void 0!==t.transmissionMap&&(i.transmissionMap=n(t.transmissionMap)),void 0!==t.thicknessMap&&(i.thicknessMap=n(t.thicknessMap)),void 0!==t.sheenColorMap&&(i.sheenColorMap=n(t.sheenColorMap)),void 0!==t.sheenRoughnessMap&&(i.sheenRoughnessMap=n(t.sheenRoughnessMap)),i}setTextures(t){return this.textures=t,this}}class Pg{static decodeText(t){if("undefined"!==typeof TextDecoder)return(new TextDecoder).decode(t);let e="";for(let i=0,r=t.length;i<r;i++)e+=String.fromCharCode(t[i]);try{return decodeURIComponent(escape(e))}catch(n){return e}}static extractUrlBase(t){const e=t.lastIndexOf("/");return-1===e?"./":t.substr(0,e+1)}static resolveURL(t,e){return"string"!==typeof t||""===t?"":(/^https?:\/\//i.test(e)&&/^\//.test(t)&&(e=e.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(t)?t:/^data:.*,.*$/i.test(t)?t:/^blob:.*$/i.test(t)?t:e+t)}}class jg extends so{constructor(){super(),this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(t){return super.copy(t),this.instanceCount=t.instanceCount,this}clone(){return(new this.constructor).copy(this)}toJSON(){const t=super.toJSON(this);return t.instanceCount=this.instanceCount,t.isInstancedBufferGeometry=!0,t}}jg.prototype.isInstancedBufferGeometry=!0;class Lg extends ig{constructor(t){super(t)}load(t,e,n,i){const r=this,o=new og(r.manager);o.setPath(r.path),o.setRequestHeader(r.requestHeader),o.setWithCredentials(r.withCredentials),o.load(t,(function(n){try{e(r.parse(JSON.parse(n)))}catch(o){i?i(o):console.error(o),r.manager.itemError(t)}}),n,i)}parse(t){const e={},n={};function i(t,n){if(void 0!==e[n])return e[n];const i=t.interleavedBuffers,o=i[n],a=r(t,o.buffer),s=oi(o.type,a),l=new Rh(s,o.stride);return l.uuid=o.uuid,e[n]=l,l}function r(t,e){if(void 0!==n[e])return n[e];const i=t.arrayBuffers,r=i[e],o=new Uint32Array(r).buffer;return n[e]=o,o}const o=t.isInstancedBufferGeometry?new jg:new so,a=t.data.index;if(void 0!==a){const t=oi(a.type,a.array);o.setIndex(new Hr(t,1))}const s=t.data.attributes;for(const d in s){const e=s[d];let n;if(e.isInterleavedBufferAttribute){const r=i(t.data,e.data);n=new Nh(r,e.itemSize,e.offset,e.normalized)}else{const t=oi(e.type,e.array),i=e.isInstancedBufferAttribute?gd:Hr;n=new i(t,e.itemSize,e.normalized)}void 0!==e.name&&(n.name=e.name),void 0!==e.usage&&n.setUsage(e.usage),void 0!==e.updateRange&&(n.updateRange.offset=e.updateRange.offset,n.updateRange.count=e.updateRange.count),o.setAttribute(d,n)}const l=t.data.morphAttributes;if(l)for(const d in l){const e=l[d],n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];let a;if(o.isInterleavedBufferAttribute){const e=i(t.data,o.data);a=new Nh(e,o.itemSize,o.offset,o.normalized)}else{const t=oi(o.type,o.array);a=new Hr(t,o.itemSize,o.normalized)}void 0!==o.name&&(a.name=o.name),n.push(a)}o.morphAttributes[d]=n}const c=t.data.morphTargetsRelative;c&&(o.morphTargetsRelative=!0);const u=t.data.groups||t.data.drawcalls||t.data.offsets;if(void 0!==u)for(let d=0,p=u.length;d!==p;++d){const t=u[d];o.addGroup(t.start,t.count,t.materialIndex)}const h=t.data.boundingSphere;if(void 0!==h){const t=new vi;void 0!==h.center&&t.fromArray(h.center),o.boundingSphere=new Fi(t,h.radius)}return t.name&&(o.name=t.name),t.userData&&(o.userData=t.userData),o}}class Dg extends ig{constructor(t){super(t)}load(t,e,n,i){const r=this,o=""===this.path?Pg.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||o;const a=new og(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(t,(function(n){let o=null;try{o=JSON.parse(n)}catch(s){return void 0!==i&&i(s),void console.error("THREE:ObjectLoader: Can't parse "+t+".",s.message)}const a=o.metadata;void 0!==a&&void 0!==a.type&&"geometry"!==a.type.toLowerCase()?r.parse(o,e):console.error("THREE.ObjectLoader: Can't load "+t)}),n,i)}async loadAsync(t,e){const n=this,i=""===this.path?Pg.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||i;const r=new og(this.manager);r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials);const o=await r.loadAsync(t,e),a=JSON.parse(o),s=a.metadata;if(void 0===s||void 0===s.type||"geometry"===s.type.toLowerCase())throw new Error("THREE.ObjectLoader: Can't load "+t);return await n.parseAsync(a)}parse(t,e){const n=this.parseAnimations(t.animations),i=this.parseShapes(t.shapes),r=this.parseGeometries(t.geometries,i),o=this.parseImages(t.images,(function(){void 0!==e&&e(l)})),a=this.parseTextures(t.textures,o),s=this.parseMaterials(t.materials,a),l=this.parseObject(t.object,r,s,a,n),c=this.parseSkeletons(t.skeletons,l);if(this.bindSkeletons(l,c),void 0!==e){let t=!1;for(const e in o)if(o[e]instanceof HTMLImageElement){t=!0;break}!1===t&&e(l)}return l}async parseAsync(t){const e=this.parseAnimations(t.animations),n=this.parseShapes(t.shapes),i=this.parseGeometries(t.geometries,n),r=await this.parseImagesAsync(t.images),o=this.parseTextures(t.textures,r),a=this.parseMaterials(t.materials,o),s=this.parseObject(t.object,i,a,o,e),l=this.parseSkeletons(t.skeletons,s);return this.bindSkeletons(s,l),s}parseShapes(t){const e={};if(void 0!==t)for(let n=0,i=t.length;n<i;n++){const i=(new kp).fromJSON(t[n]);e[i.uuid]=i}return e}parseSkeletons(t,e){const n={},i={};if(e.traverse((function(t){t.isBone&&(i[t.uuid]=t)})),void 0!==t)for(let r=0,o=t.length;r<o;r++){const e=(new fd).fromJSON(t[r],i);n[e.uuid]=e}return n}parseGeometries(t,e){const n={};if(void 0!==t){const i=new Lg;for(let r=0,o=t.length;r<o;r++){let o;const a=t[r];switch(a.type){case"BufferGeometry":case"InstancedBufferGeometry":o=i.parse(a);break;case"Geometry":console.error("THREE.ObjectLoader: The legacy Geometry type is no longer supported.");break;default:a.type in Mf?o=Mf[a.type].fromJSON(a,e):console.warn(`THREE.ObjectLoader: Unsupported geometry type "${a.type}"`)}o.uuid=a.uuid,void 0!==a.name&&(o.name=a.name),!0===o.isBufferGeometry&&void 0!==a.userData&&(o.userData=a.userData),n[a.uuid]=o}}return n}parseMaterials(t,e){const n={},i={};if(void 0!==t){const r=new Og;r.setTextures(e);for(let e=0,o=t.length;e<o;e++){const o=t[e];if("MultiMaterial"===o.type){const t=[];for(let e=0;e<o.materials.length;e++){const i=o.materials[e];void 0===n[i.uuid]&&(n[i.uuid]=r.parse(i)),t.push(n[i.uuid])}i[o.uuid]=t}else void 0===n[o.uuid]&&(n[o.uuid]=r.parse(o)),i[o.uuid]=n[o.uuid]}}return i}parseAnimations(t){const e={};if(void 0!==t)for(let n=0;n<t.length;n++){const i=t[n],r=Qf.parse(i);e[r.uuid]=r}return e}parseImages(t,e){const n=this,i={};let r;function o(t){return n.manager.itemStart(t),r.load(t,(function(){n.manager.itemEnd(t)}),void 0,(function(){n.manager.itemError(t),n.manager.itemEnd(t)}))}function a(t){if("string"===typeof t){const e=t,i=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(e)?e:n.resourcePath+e;return o(i)}return t.data?{data:oi(t.type,t.data),width:t.width,height:t.height}:null}if(void 0!==t&&t.length>0){const n=new eg(e);r=new lg(n),r.setCrossOrigin(this.crossOrigin);for(let e=0,r=t.length;e<r;e++){const n=t[e],r=n.url;if(Array.isArray(r)){i[n.uuid]=[];for(let t=0,e=r.length;t<e;t++){const e=r[t],o=a(e);null!==o&&(o instanceof HTMLImageElement?i[n.uuid].push(o):i[n.uuid].push(new hd(o.data,o.width,o.height)))}}else{const t=a(n.url);null!==t&&(i[n.uuid]=t)}}}return i}async parseImagesAsync(t){const e=this,n={};let i;async function r(t){if("string"===typeof t){const n=t,r=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(n)?n:e.resourcePath+n;return await i.loadAsync(r)}return t.data?{data:oi(t.type,t.data),width:t.width,height:t.height}:null}if(void 0!==t&&t.length>0){i=new lg(this.manager),i.setCrossOrigin(this.crossOrigin);for(let e=0,i=t.length;e<i;e++){const i=t[e],o=i.url;if(Array.isArray(o)){n[i.uuid]=[];for(let t=0,e=o.length;t<e;t++){const e=o[t],a=await r(e);null!==a&&(a instanceof HTMLImageElement?n[i.uuid].push(a):n[i.uuid].push(new hd(a.data,a.width,a.height)))}}else{const t=await r(i.url);null!==t&&(n[i.uuid]=t)}}}return n}parseTextures(t,e){function n(t,e){return"number"===typeof t?t:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",t),e[t])}const i={};if(void 0!==t)for(let r=0,o=t.length;r<o;r++){const o=t[r];let a;void 0===o.image&&console.warn('THREE.ObjectLoader: No "image" specified for',o.uuid),void 0===e[o.image]&&console.warn("THREE.ObjectLoader: Undefined image",o.image);const s=e[o.image];Array.isArray(s)?(a=new Vo(s),6===s.length&&(a.needsUpdate=!0)):(a=s&&s.data?new hd(s.data,s.width,s.height):new ui(s),s&&(a.needsUpdate=!0)),a.uuid=o.uuid,void 0!==o.name&&(a.name=o.name),void 0!==o.mapping&&(a.mapping=n(o.mapping,Rg)),void 0!==o.offset&&a.offset.fromArray(o.offset),void 0!==o.repeat&&a.repeat.fromArray(o.repeat),void 0!==o.center&&a.center.fromArray(o.center),void 0!==o.rotation&&(a.rotation=o.rotation),void 0!==o.wrap&&(a.wrapS=n(o.wrap[0],Bg),a.wrapT=n(o.wrap[1],Bg)),void 0!==o.format&&(a.format=o.format),void 0!==o.type&&(a.type=o.type),void 0!==o.encoding&&(a.encoding=o.encoding),void 0!==o.minFilter&&(a.minFilter=n(o.minFilter,Ng)),void 0!==o.magFilter&&(a.magFilter=n(o.magFilter,Ng)),void 0!==o.anisotropy&&(a.anisotropy=o.anisotropy),void 0!==o.flipY&&(a.flipY=o.flipY),void 0!==o.premultiplyAlpha&&(a.premultiplyAlpha=o.premultiplyAlpha),void 0!==o.unpackAlignment&&(a.unpackAlignment=o.unpackAlignment),void 0!==o.userData&&(a.userData=o.userData),i[o.uuid]=a}return i}parseObject(t,e,n,i,r){let o,a,s;function l(t){return void 0===e[t]&&console.warn("THREE.ObjectLoader: Undefined geometry",t),e[t]}function c(t){if(void 0!==t){if(Array.isArray(t)){const e=[];for(let i=0,r=t.length;i<r;i++){const r=t[i];void 0===n[r]&&console.warn("THREE.ObjectLoader: Undefined material",r),e.push(n[r])}return e}return void 0===n[t]&&console.warn("THREE.ObjectLoader: Undefined material",t),n[t]}}function u(t){return void 0===i[t]&&console.warn("THREE.ObjectLoader: Undefined texture",t),i[t]}switch(t.type){case"Scene":o=new Dh,void 0!==t.background&&(Number.isInteger(t.background)?o.background=new Fr(t.background):o.background=u(t.background)),void 0!==t.environment&&(o.environment=u(t.environment)),void 0!==t.fog&&("Fog"===t.fog.type?o.fog=new Lh(t.fog.color,t.fog.near,t.fog.far):"FogExp2"===t.fog.type&&(o.fog=new jh(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":o=new Bo(t.fov,t.aspect,t.near,t.far),void 0!==t.focus&&(o.focus=t.focus),void 0!==t.zoom&&(o.zoom=t.zoom),void 0!==t.filmGauge&&(o.filmGauge=t.filmGauge),void 0!==t.filmOffset&&(o.filmOffset=t.filmOffset),void 0!==t.view&&(o.view=Object.assign({},t.view));break;case"OrthographicCamera":o=new Ll(t.left,t.right,t.top,t.bottom,t.near,t.far),void 0!==t.zoom&&(o.zoom=t.zoom),void 0!==t.view&&(o.view=Object.assign({},t.view));break;case"AmbientLight":o=new Mg(t.color,t.intensity);break;case"DirectionalLight":o=new Sg(t.color,t.intensity);break;case"PointLight":o=new Ag(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":o=new kg(t.color,t.intensity,t.width,t.height);break;case"SpotLight":o=new bg(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":o=new pg(t.color,t.groundColor,t.intensity);break;case"LightProbe":o=(new Tg).fromJSON(t);break;case"SkinnedMesh":a=l(t.geometry),s=c(t.material),o=new cd(a,s),void 0!==t.bindMode&&(o.bindMode=t.bindMode),void 0!==t.bindMatrix&&o.bindMatrix.fromArray(t.bindMatrix),void 0!==t.skeleton&&(o.skeleton=t.skeleton);break;case"Mesh":a=l(t.geometry),s=c(t.material),o=new So(a,s);break;case"InstancedMesh":a=l(t.geometry),s=c(t.material);const e=t.count,n=t.instanceMatrix,i=t.instanceColor;o=new xd(a,s,e),o.instanceMatrix=new gd(new Float32Array(n.array),16),void 0!==i&&(o.instanceColor=new gd(new Float32Array(i.array),i.itemSize));break;case"LOD":o=new id;break;case"Line":o=new Md(l(t.geometry),c(t.material));break;case"LineLoop":o=new Od(l(t.geometry),c(t.material));break;case"LineSegments":o=new Td(l(t.geometry),c(t.material));break;case"PointCloud":case"Points":o=new Bd(l(t.geometry),c(t.material));break;case"Sprite":o=new $h(c(t.material));break;case"Group":o=new Ah;break;case"Bone":o=new ud;break;default:o=new br}if(o.uuid=t.uuid,void 0!==t.name&&(o.name=t.name),void 0!==t.matrix?(o.matrix.fromArray(t.matrix),void 0!==t.matrixAutoUpdate&&(o.matrixAutoUpdate=t.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(void 0!==t.position&&o.position.fromArray(t.position),void 0!==t.rotation&&o.rotation.fromArray(t.rotation),void 0!==t.quaternion&&o.quaternion.fromArray(t.quaternion),void 0!==t.scale&&o.scale.fromArray(t.scale)),void 0!==t.castShadow&&(o.castShadow=t.castShadow),void 0!==t.receiveShadow&&(o.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(o.shadow.bias=t.shadow.bias),void 0!==t.shadow.normalBias&&(o.shadow.normalBias=t.shadow.normalBias),void 0!==t.shadow.radius&&(o.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&o.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(o.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(o.visible=t.visible),void 0!==t.frustumCulled&&(o.frustumCulled=t.frustumCulled),void 0!==t.renderOrder&&(o.renderOrder=t.renderOrder),void 0!==t.userData&&(o.userData=t.userData),void 0!==t.layers&&(o.layers.mask=t.layers),void 0!==t.children){const a=t.children;for(let t=0;t<a.length;t++)o.add(this.parseObject(a[t],e,n,i,r))}if(void 0!==t.animations){const e=t.animations;for(let t=0;t<e.length;t++){const n=e[t];o.animations.push(r[n])}}if("LOD"===t.type){void 0!==t.autoUpdate&&(o.autoUpdate=t.autoUpdate);const e=t.levels;for(let t=0;t<e.length;t++){const n=e[t],i=o.getObjectByProperty("uuid",n.object);void 0!==i&&o.addLevel(i,n.distance)}}return o}bindSkeletons(t,e){0!==Object.keys(e).length&&t.traverse((function(t){if(!0===t.isSkinnedMesh&&void 0!==t.skeleton){const n=e[t.skeleton];void 0===n?console.warn("THREE.ObjectLoader: No skeleton found with UUID:",t.skeleton):t.bind(n,t.bindMatrix)}}))}setTexturePath(t){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}const Rg={UVMapping:rt,CubeReflectionMapping:ot,CubeRefractionMapping:at,EquirectangularReflectionMapping:st,EquirectangularRefractionMapping:lt,CubeUVReflectionMapping:ct,CubeUVRefractionMapping:ut},Bg={RepeatWrapping:ht,ClampToEdgeWrapping:dt,MirroredRepeatWrapping:pt},Ng={NearestFilter:ft,NearestMipmapNearestFilter:gt,NearestMipmapLinearFilter:vt,LinearFilter:bt,LinearMipmapNearestFilter:xt,LinearMipmapLinearFilter:_t};class Fg extends ig{constructor(t){super(t),"undefined"===typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(t){return this.options=t,this}load(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,o=tg.get(t);if(void 0!==o)return r.manager.itemStart(t),setTimeout((function(){e&&e(o),r.manager.itemEnd(t)}),0),o;const a={};a.credentials="anonymous"===this.crossOrigin?"same-origin":"include",a.headers=this.requestHeader,fetch(t,a).then((function(t){return t.blob()})).then((function(t){return createImageBitmap(t,Object.assign(r.options,{colorSpaceConversion:"none"}))})).then((function(n){tg.add(t,n),e&&e(n),r.manager.itemEnd(t)})).catch((function(e){i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)})),r.manager.itemStart(t)}}let zg;Fg.prototype.isImageBitmapLoader=!0;const Vg={getContext:function(){return void 0===zg&&(zg=new(window.AudioContext||window.webkitAudioContext)),zg},setContext:function(t){zg=t}};class Gg extends ig{constructor(t){super(t)}load(t,e,n,i){const r=this,o=new og(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(function(n){try{const t=n.slice(0),i=Vg.getContext();i.decodeAudioData(t,(function(t){e(t)}))}catch(o){i?i(o):console.error(o),r.manager.itemError(t)}}),n,i)}}class Hg extends Tg{constructor(t,e,n=1){super(void 0,n);const i=(new Fr).set(t),r=(new Fr).set(e),o=new vi(i.r,i.g,i.b),a=new vi(r.r,r.g,r.b),s=Math.sqrt(Math.PI),l=s*Math.sqrt(.75);this.sh.coefficients[0].copy(o).add(a).multiplyScalar(s),this.sh.coefficients[1].copy(o).sub(a).multiplyScalar(l)}}Hg.prototype.isHemisphereLightProbe=!0;class Wg extends Tg{constructor(t,e=1){super(void 0,e);const n=(new Fr).set(t);this.sh.coefficients[0].set(n.r,n.g,n.b).multiplyScalar(2*Math.sqrt(Math.PI))}}Wg.prototype.isAmbientLightProbe=!0;const Ug=new Xi,Zg=new Xi,Yg=new Xi;class Xg{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Bo,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Bo,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(t){const e=this._cache,n=e.focus!==t.focus||e.fov!==t.fov||e.aspect!==t.aspect*this.aspect||e.near!==t.near||e.far!==t.far||e.zoom!==t.zoom||e.eyeSep!==this.eyeSep;if(n){e.focus=t.focus,e.fov=t.fov,e.aspect=t.aspect*this.aspect,e.near=t.near,e.far=t.far,e.zoom=t.zoom,e.eyeSep=this.eyeSep,Yg.copy(t.projectionMatrix);const n=e.eyeSep/2,i=n*e.near/e.focus,r=e.near*Math.tan(Pn*e.fov*.5)/e.zoom;let o,a;Zg.elements[12]=-n,Ug.elements[12]=n,o=-r*e.aspect+i,a=r*e.aspect+i,Yg.elements[0]=2*e.near/(a-o),Yg.elements[8]=(a+o)/(a-o),this.cameraL.projectionMatrix.copy(Yg),o=-r*e.aspect-i,a=r*e.aspect-i,Yg.elements[0]=2*e.near/(a-o),Yg.elements[8]=(a+o)/(a-o),this.cameraR.projectionMatrix.copy(Yg)}this.cameraL.matrixWorld.copy(t.matrixWorld).multiply(Zg),this.cameraR.matrixWorld.copy(t.matrixWorld).multiply(Ug)}}class qg{constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Kg(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=Kg();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}function Kg(){return("undefined"===typeof performance?Date:performance).now()}const Qg=new vi,Jg=new mi,$g=new vi,tm=new vi;class em extends br{constructor(){super(),this.type="AudioListener",this.context=Vg.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new qg}getInput(){return this.gain}removeFilter(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(t){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}updateMatrixWorld(t){super.updateMatrixWorld(t);const e=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(Qg,Jg,$g),tm.set(0,0,-1).applyQuaternion(Jg),e.positionX){const t=this.context.currentTime+this.timeDelta;e.positionX.linearRampToValueAtTime(Qg.x,t),e.positionY.linearRampToValueAtTime(Qg.y,t),e.positionZ.linearRampToValueAtTime(Qg.z,t),e.forwardX.linearRampToValueAtTime(tm.x,t),e.forwardY.linearRampToValueAtTime(tm.y,t),e.forwardZ.linearRampToValueAtTime(tm.z,t),e.upX.linearRampToValueAtTime(n.x,t),e.upY.linearRampToValueAtTime(n.y,t),e.upZ.linearRampToValueAtTime(n.z,t)}else e.setPosition(Qg.x,Qg.y,Qg.z),e.setOrientation(tm.x,tm.y,tm.z,n.x,n.y,n.z)}}class nm extends br{constructor(t){super(),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this}setMediaElementSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this}setMediaStreamSource(t){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(t),this.connect(),this}setBuffer(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this}play(t=0){if(!0===this.isPlaying)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");this._startedAt=this.context.currentTime+t;const e=this.context.createBufferSource();return e.buffer=this.buffer,e.loop=this.loop,e.loopStart=this.loopStart,e.loopEnd=this.loopEnd,e.onended=this.onEnded.bind(this),e.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=e,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,!0===this.loop&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")}stop(){if(!1!==this.hasPlaybackControl)return this._progress=0,this.source.stop(),this.source.onended=null,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}getFilters(){return this.filters}setFilters(t){return t||(t=[]),!0===this._connected?(this.disconnect(),this.filters=t.slice(),this.connect()):this.filters=t.slice(),this}setDetune(t){if(this.detune=t,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(t){return this.setFilters(t?[t]:[])}setPlaybackRate(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1}getLoop(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop}setLoop(t){if(!1!==this.hasPlaybackControl)return this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")}setLoopStart(t){return this.loopStart=t,this}setLoopEnd(t){return this.loopEnd=t,this}getVolume(){return this.gain.gain.value}setVolume(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}const im=new vi,rm=new mi,om=new vi,am=new vi;class sm extends nm{constructor(t){super(t),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}getOutput(){return this.panner}getRefDistance(){return this.panner.refDistance}setRefDistance(t){return this.panner.refDistance=t,this}getRolloffFactor(){return this.panner.rolloffFactor}setRolloffFactor(t){return this.panner.rolloffFactor=t,this}getDistanceModel(){return this.panner.distanceModel}setDistanceModel(t){return this.panner.distanceModel=t,this}getMaxDistance(){return this.panner.maxDistance}setMaxDistance(t){return this.panner.maxDistance=t,this}setDirectionalCone(t,e,n){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=n,this}updateMatrixWorld(t){if(super.updateMatrixWorld(t),!0===this.hasPlaybackControl&&!1===this.isPlaying)return;this.matrixWorld.decompose(im,rm,om),am.set(0,0,1).applyQuaternion(rm);const e=this.panner;if(e.positionX){const t=this.context.currentTime+this.listener.timeDelta;e.positionX.linearRampToValueAtTime(im.x,t),e.positionY.linearRampToValueAtTime(im.y,t),e.positionZ.linearRampToValueAtTime(im.z,t),e.orientationX.linearRampToValueAtTime(am.x,t),e.orientationY.linearRampToValueAtTime(am.y,t),e.orientationZ.linearRampToValueAtTime(am.z,t)}else e.setPosition(im.x,im.y,im.z),e.setOrientation(am.x,am.y,am.z)}}class lm{constructor(t,e=2048){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=e,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let t=0;const e=this.getFrequencyData();for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}}class cm{constructor(t,e,n){let i,r,o;switch(this.binding=t,this.valueSize=n,e){case"quaternion":i=this._slerp,r=this._slerpAdditive,o=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(6*n),this._workIndex=5;break;case"string":case"bool":i=this._select,r=this._select,o=this._setAdditiveIdentityOther,this.buffer=new Array(5*n);break;default:i=this._lerp,r=this._lerpAdditive,o=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*n)}this._mixBufferRegion=i,this._mixBufferRegionAdditive=r,this._setIdentity=o,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(t,e){const n=this.buffer,i=this.valueSize,r=t*i+i;let o=this.cumulativeWeight;if(0===o){for(let t=0;t!==i;++t)n[r+t]=n[t];o=e}else{o+=e;const t=e/o;this._mixBufferRegion(n,r,0,t,i)}this.cumulativeWeight=o}accumulateAdditive(t){const e=this.buffer,n=this.valueSize,i=n*this._addIndex;0===this.cumulativeWeightAdditive&&this._setIdentity(),this._mixBufferRegionAdditive(e,i,0,t,n),this.cumulativeWeightAdditive+=t}apply(t){const e=this.valueSize,n=this.buffer,i=t*e+e,r=this.cumulativeWeight,o=this.cumulativeWeightAdditive,a=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,r<1){const t=e*this._origIndex;this._mixBufferRegion(n,i,t,1-r,e)}o>0&&this._mixBufferRegionAdditive(n,i,this._addIndex*e,1,e);for(let s=e,l=e+e;s!==l;++s)if(n[s]!==n[s+e]){a.setValue(n,i);break}}saveOriginalState(){const t=this.binding,e=this.buffer,n=this.valueSize,i=n*this._origIndex;t.getValue(e,i);for(let r=n,o=i;r!==o;++r)e[r]=e[i+r%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const t=3*this.valueSize;this.binding.setValue(this.buffer,t)}_setAdditiveIdentityNumeric(){const t=this._addIndex*this.valueSize,e=t+this.valueSize;for(let n=t;n<e;n++)this.buffer[n]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const t=this._origIndex*this.valueSize,e=this._addIndex*this.valueSize;for(let n=0;n<this.valueSize;n++)this.buffer[e+n]=this.buffer[t+n]}_select(t,e,n,i,r){if(i>=.5)for(let o=0;o!==r;++o)t[e+o]=t[n+o]}_slerp(t,e,n,i){mi.slerpFlat(t,e,t,e,t,n,i)}_slerpAdditive(t,e,n,i,r){const o=this._workIndex*r;mi.multiplyQuaternionsFlat(t,o,t,e,t,n),mi.slerpFlat(t,e,t,e,t,o,i)}_lerp(t,e,n,i,r){const o=1-i;for(let a=0;a!==r;++a){const r=e+a;t[r]=t[r]*o+t[n+a]*i}}_lerpAdditive(t,e,n,i,r){for(let o=0;o!==r;++o){const r=e+o;t[r]=t[r]+t[n+o]*i}}}const um="\\[\\]\\.:\\/",hm=new RegExp("["+um+"]","g"),dm="[^"+um+"]",pm="[^"+um.replace("\\.","")+"]",fm=/((?:WC+[\/:])*)/.source.replace("WC",dm),gm=/(WCOD+)?/.source.replace("WCOD",pm),mm=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",dm),vm=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",dm),ym=new RegExp("^"+fm+gm+mm+vm+"$"),bm=["material","materials","bones"];class xm{constructor(t,e,n){const i=n||wm.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,i)}getValue(t,e){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];void 0!==i&&i.getValue(t,e)}setValue(t,e){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(t,e)}bind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()}unbind(){const t=this._bindings;for(let e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}}class wm{constructor(t,e,n){this.path=e,this.parsedPath=n||wm.parseTrackName(e),this.node=wm.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,e,n){return t&&t.isAnimationObjectGroup?new wm.Composite(t,e,n):new wm(t,e,n)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(hm,"")}static parseTrackName(t){const e=ym.exec(t);if(!e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){const t=n.nodeName.substring(i+1);-1!==bm.indexOf(t)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=t)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n}static findNode(t,e){if(!e||""===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){const n=t.skeleton.getBoneByName(e);if(void 0!==n)return n}if(t.children){const n=function(t){for(let i=0;i<t.length;i++){const r=t[i];if(r.name===e||r.uuid===e)return r;const o=n(r.children);if(o)return o}return null},i=n(t.children);if(i)return i}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(t,e){t[e]=this.targetObject[this.propertyName]}_getValue_array(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)t[e++]=n[i]}_getValue_arrayElement(t,e){t[e]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(t,e){this.resolvedProperty.toArray(t,e)}_setValue_direct(t,e){this.targetObject[this.propertyName]=t[e]}_setValue_direct_setNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++]}_setValue_array_setNeedsUpdate(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(t,e){const n=this.resolvedProperty;for(let i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(t,e){this.resolvedProperty[this.propertyIndex]=t[e]}_setValue_arrayElement_setNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(t,e){this.resolvedProperty.fromArray(t,e)}_setValue_fromArray_setNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(t,e){this.bind(),this.getValue(t,e)}_setValue_unbound(t,e){this.bind(),this.setValue(t,e)}bind(){let t=this.node;const e=this.parsedPath,n=e.objectName,i=e.propertyName;let r=e.propertyIndex;if(t||(t=wm.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");if(n){let i=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(let e=0;e<t.length;e++)if(t[e].name===i){i=e;break}break;default:if(void 0===t[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[n]}if(void 0!==i){if(void 0===t[i])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[i]}}const o=t[i];if(void 0===o){const n=e.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+n+"."+i+" but it wasn't found.",t)}let a=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?a=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(a=this.Versioning.MatrixWorldNeedsUpdate);let s=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===i){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(!t.geometry.isBufferGeometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences on THREE.Geometry. Use THREE.BufferGeometry instead.",this);if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);void 0!==t.morphTargetDictionary[r]&&(r=t.morphTargetDictionary[r])}s=this.BindingType.ArrayElement,this.resolvedProperty=o,this.propertyIndex=r}else void 0!==o.fromArray&&void 0!==o.toArray?(s=this.BindingType.HasFromToArray,this.resolvedProperty=o):Array.isArray(o)?(s=this.BindingType.EntireArray,this.resolvedProperty=o):this.propertyName=i;this.getValue=this.GetterByBindingType[s],this.setValue=this.SetterByBindingTypeAndVersioning[s][a]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}wm.Composite=xm,wm.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},wm.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},wm.prototype.GetterByBindingType=[wm.prototype._getValue_direct,wm.prototype._getValue_array,wm.prototype._getValue_arrayElement,wm.prototype._getValue_toArray],wm.prototype.SetterByBindingTypeAndVersioning=[[wm.prototype._setValue_direct,wm.prototype._setValue_direct_setNeedsUpdate,wm.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[wm.prototype._setValue_array,wm.prototype._setValue_array_setNeedsUpdate,wm.prototype._setValue_array_setMatrixWorldNeedsUpdate],[wm.prototype._setValue_arrayElement,wm.prototype._setValue_arrayElement_setNeedsUpdate,wm.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[wm.prototype._setValue_fromArray,wm.prototype._setValue_fromArray_setNeedsUpdate,wm.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class _m{constructor(){this.uuid=Ln(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;const t={};this._indicesByUUID=t;for(let n=0,i=arguments.length;n!==i;++n)t[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};const e=this;this.stats={objects:{get total(){return e._objects.length},get inUse(){return this.total-e.nCachedObjects_}},get bindingsPerObject(){return e._bindings.length}}}add(){const t=this._objects,e=this._indicesByUUID,n=this._paths,i=this._parsedPaths,r=this._bindings,o=r.length;let a=void 0,s=t.length,l=this.nCachedObjects_;for(let c=0,u=arguments.length;c!==u;++c){const u=arguments[c],h=u.uuid;let d=e[h];if(void 0===d){d=s++,e[h]=d,t.push(u);for(let t=0,e=o;t!==e;++t)r[t].push(new wm(u,n[t],i[t]))}else if(d<l){a=t[d];const s=--l,c=t[s];e[c.uuid]=d,t[d]=c,e[h]=s,t[s]=u;for(let t=0,e=o;t!==e;++t){const e=r[t],o=e[s];let a=e[d];e[d]=o,void 0===a&&(a=new wm(u,n[t],i[t])),e[s]=a}}else t[d]!==a&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=l}remove(){const t=this._objects,e=this._indicesByUUID,n=this._bindings,i=n.length;let r=this.nCachedObjects_;for(let o=0,a=arguments.length;o!==a;++o){const a=arguments[o],s=a.uuid,l=e[s];if(void 0!==l&&l>=r){const o=r++,c=t[o];e[c.uuid]=l,t[l]=c,e[s]=o,t[o]=a;for(let t=0,e=i;t!==e;++t){const e=n[t],i=e[o],r=e[l];e[l]=i,e[o]=r}}}this.nCachedObjects_=r}uncache(){const t=this._objects,e=this._indicesByUUID,n=this._bindings,i=n.length;let r=this.nCachedObjects_,o=t.length;for(let a=0,s=arguments.length;a!==s;++a){const s=arguments[a],l=s.uuid,c=e[l];if(void 0!==c)if(delete e[l],c<r){const a=--r,s=t[a],l=--o,u=t[l];e[s.uuid]=c,t[c]=s,e[u.uuid]=a,t[a]=u,t.pop();for(let t=0,e=i;t!==e;++t){const e=n[t],i=e[a],r=e[l];e[c]=i,e[a]=r,e.pop()}}else{const r=--o,a=t[r];r>0&&(e[a.uuid]=c),t[c]=a,t.pop();for(let t=0,e=i;t!==e;++t){const e=n[t];e[c]=e[r],e.pop()}}}this.nCachedObjects_=r}subscribe_(t,e){const n=this._bindingsIndicesByPath;let i=n[t];const r=this._bindings;if(void 0!==i)return r[i];const o=this._paths,a=this._parsedPaths,s=this._objects,l=s.length,c=this.nCachedObjects_,u=new Array(l);i=r.length,n[t]=i,o.push(t),a.push(e),r.push(u);for(let h=c,d=s.length;h!==d;++h){const n=s[h];u[h]=new wm(n,t,e)}return u}unsubscribe_(t){const e=this._bindingsIndicesByPath,n=e[t];if(void 0!==n){const i=this._paths,r=this._parsedPaths,o=this._bindings,a=o.length-1,s=o[a],l=t[a];e[l]=n,o[n]=s,o.pop(),r[n]=r[a],r.pop(),i[n]=i[a],i.pop()}}}_m.prototype.isAnimationObjectGroup=!0;class Cm{constructor(t,e,n=null,i=e.blendMode){this._mixer=t,this._clip=e,this._localRoot=n,this.blendMode=i;const r=e.tracks,o=r.length,a=new Array(o),s={endingStart:Ve,endingEnd:Ve};for(let l=0;l!==o;++l){const t=r[l].createInterpolant(null);a[l]=t,t.settings=s}this._interpolantSettings=s,this._interpolants=a,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Re,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(t){return this._startTime=t,this}setLoop(t,e){return this.loop=t,this.repetitions=e,this}setEffectiveWeight(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(t){return this._scheduleFading(t,0,1)}fadeOut(t){return this._scheduleFading(t,1,0)}crossFadeFrom(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){const n=this._clip.duration,i=t._clip.duration,r=i/n,o=n/i;t.warp(1,r,e),this.warp(o,1,e)}return this}crossFadeTo(t,e,n){return t.crossFadeFrom(this,e,n)}stopFading(){const t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}setEffectiveTimeScale(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(t){return this.timeScale=this._clip.duration/t,this.stopWarping()}syncWith(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()}halt(t){return this.warp(this._effectiveTimeScale,0,t)}warp(t,e,n){const i=this._mixer,r=i.time,o=this.timeScale;let a=this._timeScaleInterpolant;null===a&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);const s=a.parameterPositions,l=a.sampleValues;return s[0]=r,s[1]=r+n,l[0]=t/o,l[1]=e/o,this}stopWarping(){const t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(t,e,n,i){if(!this.enabled)return void this._updateWeight(t);const r=this._startTime;if(null!==r){const i=(t-r)*n;if(i<0||0===n)return;this._startTime=null,e=n*i}e*=this._updateTimeScale(t);const o=this._updateTime(e),a=this._updateWeight(t);if(a>0){const t=this._interpolants,e=this._propertyBindings;switch(this.blendMode){case Ue:for(let n=0,i=t.length;n!==i;++n)t[n].evaluate(o),e[n].accumulateAdditive(a);break;case We:default:for(let n=0,r=t.length;n!==r;++n)t[n].evaluate(o),e[n].accumulate(i,a)}}}_updateWeight(t){let e=0;if(this.enabled){e=this.weight;const n=this._weightInterpolant;if(null!==n){const i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e,e}_updateTimeScale(t){let e=0;if(!this.paused){e=this.timeScale;const n=this._timeScaleInterpolant;if(null!==n){const i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e}_updateTime(t){const e=this._clip.duration,n=this.loop;let i=this.time+t,r=this._loopCount;const o=n===Be;if(0===t)return-1===r?i:o&&1===(1&r)?e-i:i;if(n===De){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(i>=e)i=e;else{if(!(i<0)){this.time=i;break t}i=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),i>=e||i<0){const n=Math.floor(i/e);i-=e*n,r+=Math.abs(n);const a=this.repetitions-r;if(a<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=t>0?e:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(1===a){const e=t<0;this._setEndings(e,!e,o)}else this._setEndings(!1,!1,o);this._loopCount=r,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=i;if(o&&1===(1&r))return e-i}return i}_setEndings(t,e,n){const i=this._interpolantSettings;n?(i.endingStart=Ge,i.endingEnd=Ge):(i.endingStart=t?this.zeroSlopeAtStart?Ge:Ve:He,i.endingEnd=e?this.zeroSlopeAtEnd?Ge:Ve:He)}_scheduleFading(t,e,n){const i=this._mixer,r=i.time;let o=this._weightInterpolant;null===o&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);const a=o.parameterPositions,s=o.sampleValues;return a[0]=r,s[0]=e,a[1]=r+t,s[1]=n,this}}class Am extends En{constructor(t){super(),this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(t,e){const n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,o=t._propertyBindings,a=t._interpolants,s=n.uuid,l=this._bindingsByRootAndName;let c=l[s];void 0===c&&(c={},l[s]=c);for(let u=0;u!==r;++u){const t=i[u],r=t.name;let l=c[r];if(void 0!==l)o[u]=l;else{if(l=o[u],void 0!==l){null===l._cacheIndex&&(++l.referenceCount,this._addInactiveBinding(l,s,r));continue}const i=e&&e._propertyBindings[u].binding.parsedPath;l=new cm(wm.create(n,r,i),t.ValueTypeName,t.getValueSize()),++l.referenceCount,this._addInactiveBinding(l,s,r),o[u]=l}a[u].resultBuffer=l.buffer}}_activateAction(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){const e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n];this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e)}const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0===n.useCount++&&(this._lendBinding(n),n.saveOriginalState())}this._lendAction(t)}}_deactivateAction(t){if(this._isActiveAction(t)){const e=t._propertyBindings;for(let t=0,n=e.length;t!==n;++t){const n=e[t];0===--n.useCount&&(n.restoreOriginalState(),this._takeBackBinding(n))}this._takeBackAction(t)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}}_isActiveAction(t){const e=t._cacheIndex;return null!==e&&e<this._nActiveActions}_addInactiveAction(t,e,n){const i=this._actions,r=this._actionsByClip;let o=r[e];if(void 0===o)o={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,r[e]=o;else{const e=o.knownActions;t._byClipCacheIndex=e.length,e.push(t)}t._cacheIndex=i.length,i.push(t),o.actionByRoot[n]=t}_removeInactiveAction(t){const e=this._actions,n=e[e.length-1],i=t._cacheIndex;n._cacheIndex=i,e[i]=n,e.pop(),t._cacheIndex=null;const r=t._clip.uuid,o=this._actionsByClip,a=o[r],s=a.knownActions,l=s[s.length-1],c=t._byClipCacheIndex;l._byClipCacheIndex=c,s[c]=l,s.pop(),t._byClipCacheIndex=null;const u=a.actionByRoot,h=(t._localRoot||this._root).uuid;delete u[h],0===s.length&&delete o[r],this._removeInactiveBindingsForAction(t)}_removeInactiveBindingsForAction(t){const e=t._propertyBindings;for(let n=0,i=e.length;n!==i;++n){const t=e[n];0===--t.referenceCount&&this._removeInactiveBinding(t)}}_lendAction(t){const e=this._actions,n=t._cacheIndex,i=this._nActiveActions++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_takeBackAction(t){const e=this._actions,n=t._cacheIndex,i=--this._nActiveActions,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_addInactiveBinding(t,e,n){const i=this._bindingsByRootAndName,r=this._bindings;let o=i[e];void 0===o&&(o={},i[e]=o),o[n]=t,t._cacheIndex=r.length,r.push(t)}_removeInactiveBinding(t){const e=this._bindings,n=t.binding,i=n.rootNode.uuid,r=n.path,o=this._bindingsByRootAndName,a=o[i],s=e[e.length-1],l=t._cacheIndex;s._cacheIndex=l,e[l]=s,e.pop(),delete a[r],0===Object.keys(a).length&&delete o[i]}_lendBinding(t){const e=this._bindings,n=t._cacheIndex,i=this._nActiveBindings++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_takeBackBinding(t){const e=this._bindings,n=t._cacheIndex,i=--this._nActiveBindings,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r}_lendControlInterpolant(){const t=this._controlInterpolants,e=this._nActiveControlInterpolants++;let n=t[e];return void 0===n&&(n=new Vf(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),n.__cacheIndex=e,t[e]=n),n}_takeBackControlInterpolant(t){const e=this._controlInterpolants,n=t.__cacheIndex,i=--this._nActiveControlInterpolants,r=e[i];t.__cacheIndex=i,e[i]=t,r.__cacheIndex=n,e[n]=r}clipAction(t,e,n){const i=e||this._root,r=i.uuid;let o="string"===typeof t?Qf.findByName(i,t):t;const a=null!==o?o.uuid:t,s=this._actionsByClip[a];let l=null;if(void 0===n&&(n=null!==o?o.blendMode:We),void 0!==s){const t=s.actionByRoot[r];if(void 0!==t&&t.blendMode===n)return t;l=s.knownActions[0],null===o&&(o=l._clip)}if(null===o)return null;const c=new Cm(this,o,e,n);return this._bindAction(c,l),this._addInactiveAction(c,a,r),c}existingAction(t,e){const n=e||this._root,i=n.uuid,r="string"===typeof t?Qf.findByName(n,t):t,o=r?r.uuid:t,a=this._actionsByClip[o];return void 0!==a&&a.actionByRoot[i]||null}stopAllAction(){const t=this._actions,e=this._nActiveActions;for(let n=e-1;n>=0;--n)t[n].stop();return this}update(t){t*=this.timeScale;const e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),o=this._accuIndex^=1;for(let l=0;l!==n;++l){const n=e[l];n._update(i,t,r,o)}const a=this._bindings,s=this._nActiveBindings;for(let l=0;l!==s;++l)a[l].apply(o);return this}setTime(t){this.time=0;for(let e=0;e<this._actions.length;e++)this._actions[e].time=0;return this.update(t)}getRoot(){return this._root}uncacheClip(t){const e=this._actions,n=t.uuid,i=this._actionsByClip,r=i[n];if(void 0!==r){const t=r.knownActions;for(let n=0,i=t.length;n!==i;++n){const i=t[n];this._deactivateAction(i);const r=i._cacheIndex,o=e[e.length-1];i._cacheIndex=null,i._byClipCacheIndex=null,o._cacheIndex=r,e[r]=o,e.pop(),this._removeInactiveBindingsForAction(i)}delete i[n]}}uncacheRoot(t){const e=t.uuid,n=this._actionsByClip;for(const o in n){const t=n[o].actionByRoot,i=t[e];void 0!==i&&(this._deactivateAction(i),this._removeInactiveAction(i))}const i=this._bindingsByRootAndName,r=i[e];if(void 0!==r)for(const o in r){const t=r[o];t.restoreOriginalState(),this._removeInactiveBinding(t)}}uncacheAction(t,e){const n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}Am.prototype._controlInterpolantsResultBuffer=new Float32Array(1);class Im{constructor(t){"string"===typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}clone(){return new Im(void 0===this.value.clone?this.value:this.value.clone())}}class Sm extends Rh{constructor(t,e,n=1){super(t,e),this.meshPerAttribute=n}copy(t){return super.copy(t),this.meshPerAttribute=t.meshPerAttribute,this}clone(t){const e=super.clone(t);return e.meshPerAttribute=this.meshPerAttribute,e}toJSON(t){const e=super.toJSON(t);return e.isInstancedInterleavedBuffer=!0,e.meshPerAttribute=this.meshPerAttribute,e}}Sm.prototype.isInstancedInterleavedBuffer=!0;class Mm{constructor(t,e,n,i,r){this.buffer=t,this.type=e,this.itemSize=n,this.elementSize=i,this.count=r,this.version=0}set needsUpdate(t){!0===t&&this.version++}setBuffer(t){return this.buffer=t,this}setType(t,e){return this.type=t,this.elementSize=e,this}setItemSize(t){return this.itemSize=t,this}setCount(t){return this.count=t,this}}Mm.prototype.isGLBufferAttribute=!0;class km{constructor(t,e,n=0,i=1/0){this.ray=new Yi(t,e),this.near=n,this.far=i,this.camera=null,this.layers=new or,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(t,e){this.ray.set(t,e)}setFromCamera(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):console.error("THREE.Raycaster: Unsupported camera type: "+e.type)}intersectObject(t,e=!0,n=[]){return Tm(t,this,n,e),n.sort(Em),n}intersectObjects(t,e=!0,n=[]){for(let i=0,r=t.length;i<r;i++)Tm(t[i],this,n,e);return n.sort(Em),n}}function Em(t,e){return t.distance-e.distance}function Tm(t,e,n,i){if(t.layers.test(e.layers)&&t.raycast(e,n),!0===i){const i=t.children;for(let t=0,r=i.length;t<r;t++)Tm(i[t],e,n,!0)}}class Om{constructor(t=1,e=0,n=0){return this.radius=t,this.phi=e,this.theta=n,this}set(t,e,n){return this.radius=t,this.phi=e,this.theta=n,this}copy(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this}makeSafe(){const t=1e-6;return this.phi=Math.max(t,Math.min(Math.PI-t,this.phi)),this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,n){return this.radius=Math.sqrt(t*t+e*e+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t,n),this.phi=Math.acos(Dn(e/this.radius,-1,1))),this}clone(){return(new this.constructor).copy(this)}}class Pm{constructor(t=1,e=0,n=0){return this.radius=t,this.theta=e,this.y=n,this}set(t,e,n){return this.radius=t,this.theta=e,this.y=n,this}copy(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this}setFromVector3(t){return this.setFromCartesianCoords(t.x,t.y,t.z)}setFromCartesianCoords(t,e,n){return this.radius=Math.sqrt(t*t+n*n),this.theta=Math.atan2(t,n),this.y=e,this}clone(){return(new this.constructor).copy(this)}}const jm=new ei;class Lm{constructor(t=new ei(1/0,1/0),e=new ei(-1/0,-1/0)){this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromPoints(t){this.makeEmpty();for(let e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this}setFromCenterAndSize(t,e){const n=jm.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(n),this.max.copy(t).add(n),this}clone(){return(new this.constructor).copy(this)}copy(t){return this.min.copy(t.min),this.max.copy(t.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(t){return this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(t){return this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)}expandByPoint(t){return this.min.min(t),this.max.max(t),this}expandByVector(t){return this.min.sub(t),this.max.add(t),this}expandByScalar(t){return this.min.addScalar(-t),this.max.addScalar(t),this}containsPoint(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){const e=jm.copy(t).clamp(this.min,this.max);return e.sub(t).length()}intersect(t){return this.min.max(t.min),this.max.min(t.max),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}Lm.prototype.isBox2=!0;const Dm=new vi,Rm=new vi;class Bm{constructor(t=new vi,e=new vi){this.start=t,this.end=e}set(t,e){return this.start.copy(t),this.end.copy(e),this}copy(t){return this.start.copy(t.start),this.end.copy(t.end),this}getCenter(t){return t.addVectors(this.start,this.end).multiplyScalar(.5)}delta(t){return t.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(t,e){return this.delta(e).multiplyScalar(t).add(this.start)}closestPointToPointParameter(t,e){Dm.subVectors(t,this.start),Rm.subVectors(this.end,this.start);const n=Rm.dot(Rm),i=Rm.dot(Dm);let r=i/n;return e&&(r=Dn(r,0,1)),r}closestPointToPoint(t,e,n){const i=this.closestPointToPointParameter(t,e);return this.delta(n).multiplyScalar(i).add(this.start)}applyMatrix4(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this}equals(t){return t.start.equals(this.start)&&t.end.equals(this.end)}clone(){return(new this.constructor).copy(this)}}const Nm=new vi;class Fm extends br{constructor(t,e){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e;const n=new so,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let o=0,a=1,s=32;o<s;o++,a++){const t=o/s*Math.PI*2,e=a/s*Math.PI*2;i.push(Math.cos(t),Math.sin(t),1,Math.cos(e),Math.sin(e),1)}n.setAttribute("position",new Jr(i,3));const r=new wd({fog:!1,toneMapped:!1});this.cone=new Td(n,r),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateMatrixWorld();const t=this.light.distance?this.light.distance:1e3,e=t*Math.tan(this.light.angle);this.cone.scale.set(e,e,t),Nm.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(Nm),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}const zm=new vi,Vm=new Xi,Gm=new Xi;class Hm extends Td{constructor(t){const e=Wm(t),n=new so,i=[],r=[],o=new Fr(0,0,1),a=new Fr(0,1,0);for(let l=0;l<e.length;l++){const t=e[l];t.parent&&t.parent.isBone&&(i.push(0,0,0),i.push(0,0,0),r.push(o.r,o.g,o.b),r.push(a.r,a.g,a.b))}n.setAttribute("position",new Jr(i,3)),n.setAttribute("color",new Jr(r,3));const s=new wd({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0});super(n,s),this.type="SkeletonHelper",this.isSkeletonHelper=!0,this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(t){const e=this.bones,n=this.geometry,i=n.getAttribute("position");Gm.copy(this.root.matrixWorld).invert();for(let r=0,o=0;r<e.length;r++){const t=e[r];t.parent&&t.parent.isBone&&(Vm.multiplyMatrices(Gm,t.matrixWorld),zm.setFromMatrixPosition(Vm),i.setXYZ(o,zm.x,zm.y,zm.z),Vm.multiplyMatrices(Gm,t.parent.matrixWorld),zm.setFromMatrixPosition(Vm),i.setXYZ(o+1,zm.x,zm.y,zm.z),o+=2)}n.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(t)}}function Wm(t){const e=[];t&&t.isBone&&e.push(t);for(let n=0;n<t.children.length;n++)e.push.apply(e,Wm(t.children[n]));return e}class Um extends So{constructor(t,e,n){const i=new xf(e,4,2),r=new zr({wireframe:!0,fog:!1,toneMapped:!1});super(i,r),this.light=t,this.light.updateMatrixWorld(),this.color=n,this.type="PointLightHelper",this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}dispose(){this.geometry.dispose(),this.material.dispose()}update(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)}}const Zm=new vi,Ym=new Fr,Xm=new Fr;class qm extends br{constructor(t,e,n){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n;const i=new mf(e);i.rotateY(.5*Math.PI),this.material=new zr({wireframe:!0,fog:!1,toneMapped:!1}),void 0===this.color&&(this.material.vertexColors=!0);const r=i.getAttribute("position"),o=new Float32Array(3*r.count);i.setAttribute("color",new Hr(o,3)),this.add(new So(i,this.material)),this.update()}dispose(){this.children[0].geometry.dispose(),this.children[0].material.dispose()}update(){const t=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{const e=t.geometry.getAttribute("color");Ym.copy(this.light.color),Xm.copy(this.light.groundColor);for(let t=0,n=e.count;t<n;t++){const i=t<n/2?Ym:Xm;e.setXYZ(t,i.r,i.g,i.b)}e.needsUpdate=!0}t.lookAt(Zm.setFromMatrixPosition(this.light.matrixWorld).negate())}}class Km extends Td{constructor(t=10,e=10,n=4473924,i=8947848){n=new Fr(n),i=new Fr(i);const r=e/2,o=t/e,a=t/2,s=[],l=[];for(let h=0,d=0,p=-a;h<=e;h++,p+=o){s.push(-a,0,p,a,0,p),s.push(p,0,-a,p,0,a);const t=h===r?n:i;t.toArray(l,d),d+=3,t.toArray(l,d),d+=3,t.toArray(l,d),d+=3,t.toArray(l,d),d+=3}const c=new so;c.setAttribute("position",new Jr(s,3)),c.setAttribute("color",new Jr(l,3));const u=new wd({vertexColors:!0,toneMapped:!1});super(c,u),this.type="GridHelper"}}class Qm extends Td{constructor(t=10,e=16,n=8,i=64,r=4473924,o=8947848){r=new Fr(r),o=new Fr(o);const a=[],s=[];for(let u=0;u<=e;u++){const n=u/e*(2*Math.PI),i=Math.sin(n)*t,l=Math.cos(n)*t;a.push(0,0,0),a.push(i,0,l);const c=1&u?r:o;s.push(c.r,c.g,c.b),s.push(c.r,c.g,c.b)}for(let u=0;u<=n;u++){const e=1&u?r:o,l=t-t/n*u;for(let t=0;t<i;t++){let n=t/i*(2*Math.PI),r=Math.sin(n)*l,o=Math.cos(n)*l;a.push(r,0,o),s.push(e.r,e.g,e.b),n=(t+1)/i*(2*Math.PI),r=Math.sin(n)*l,o=Math.cos(n)*l,a.push(r,0,o),s.push(e.r,e.g,e.b)}}const l=new so;l.setAttribute("position",new Jr(a,3)),l.setAttribute("color",new Jr(s,3));const c=new wd({vertexColors:!0,toneMapped:!1});super(l,c),this.type="PolarGridHelper"}}const Jm=new vi,$m=new vi,tv=new vi;class ev extends br{constructor(t,e,n){super(),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,void 0===e&&(e=1);let i=new so;i.setAttribute("position",new Jr([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3));const r=new wd({fog:!1,toneMapped:!1});this.lightPlane=new Md(i,r),this.add(this.lightPlane),i=new so,i.setAttribute("position",new Jr([0,0,0,0,0,1],3)),this.targetLine=new Md(i,r),this.add(this.targetLine),this.update()}dispose(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()}update(){Jm.setFromMatrixPosition(this.light.matrixWorld),$m.setFromMatrixPosition(this.light.target.matrixWorld),tv.subVectors($m,Jm),this.lightPlane.lookAt($m),void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt($m),this.targetLine.scale.z=tv.length()}}const nv=new vi,iv=new Ro;class rv extends Td{constructor(t){const e=new so,n=new wd({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],r=[],o={},a=new Fr(16755200),s=new Fr(16711680),l=new Fr(43775),c=new Fr(16777215),u=new Fr(3355443);function h(t,e,n){d(t,n),d(e,n)}function d(t,e){i.push(0,0,0),r.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(i.length/3-1)}h("n1","n2",a),h("n2","n4",a),h("n4","n3",a),h("n3","n1",a),h("f1","f2",a),h("f2","f4",a),h("f4","f3",a),h("f3","f1",a),h("n1","f1",a),h("n2","f2",a),h("n3","f3",a),h("n4","f4",a),h("p","n1",s),h("p","n2",s),h("p","n3",s),h("p","n4",s),h("u1","u2",l),h("u2","u3",l),h("u3","u1",l),h("c","t",c),h("p","c",u),h("cn1","cn2",u),h("cn3","cn4",u),h("cf1","cf2",u),h("cf3","cf4",u),e.setAttribute("position",new Jr(i,3)),e.setAttribute("color",new Jr(r,3)),super(e,n),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){const t=this.geometry,e=this.pointMap,n=1,i=1;iv.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),ov("c",e,t,iv,0,0,-1),ov("t",e,t,iv,0,0,1),ov("n1",e,t,iv,-n,-i,-1),ov("n2",e,t,iv,n,-i,-1),ov("n3",e,t,iv,-n,i,-1),ov("n4",e,t,iv,n,i,-1),ov("f1",e,t,iv,-n,-i,1),ov("f2",e,t,iv,n,-i,1),ov("f3",e,t,iv,-n,i,1),ov("f4",e,t,iv,n,i,1),ov("u1",e,t,iv,.7*n,1.1*i,-1),ov("u2",e,t,iv,.7*-n,1.1*i,-1),ov("u3",e,t,iv,0,2*i,-1),ov("cf1",e,t,iv,-n,0,1),ov("cf2",e,t,iv,n,0,1),ov("cf3",e,t,iv,0,-i,1),ov("cf4",e,t,iv,0,i,1),ov("cn1",e,t,iv,-n,0,-1),ov("cn2",e,t,iv,n,0,-1),ov("cn3",e,t,iv,0,-i,-1),ov("cn4",e,t,iv,0,i,-1),t.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}}function ov(t,e,n,i,r,o,a){nv.set(r,o,a).unproject(i);const s=e[t];if(void 0!==s){const t=n.getAttribute("position");for(let e=0,n=s.length;e<n;e++)t.setXYZ(s[e],nv.x,nv.y,nv.z)}}const av=new xi;class sv extends Td{constructor(t,e=16776960){const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),i=new Float32Array(24),r=new so;r.setIndex(new Hr(n,1)),r.setAttribute("position",new Hr(i,3)),super(r,new wd({color:e,toneMapped:!1})),this.object=t,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(t){if(void 0!==t&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&av.setFromObject(this.object),av.isEmpty())return;const e=av.min,n=av.max,i=this.geometry.attributes.position,r=i.array;r[0]=n.x,r[1]=n.y,r[2]=n.z,r[3]=e.x,r[4]=n.y,r[5]=n.z,r[6]=e.x,r[7]=e.y,r[8]=n.z,r[9]=n.x,r[10]=e.y,r[11]=n.z,r[12]=n.x,r[13]=n.y,r[14]=e.z,r[15]=e.x,r[16]=n.y,r[17]=e.z,r[18]=e.x,r[19]=e.y,r[20]=e.z,r[21]=n.x,r[22]=e.y,r[23]=e.z,i.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(t){return this.object=t,this.update(),this}copy(t){return Td.prototype.copy.call(this,t),this.object=t.object,this}}class lv extends Td{constructor(t,e=16776960){const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),i=[1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],r=new so;r.setIndex(new Hr(n,1)),r.setAttribute("position",new Jr(i,3)),super(r,new wd({color:e,toneMapped:!1})),this.box=t,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(t){const e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(t))}}class cv extends Md{constructor(t,e=1,n=16776960){const i=n,r=[1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],o=new so;o.setAttribute("position",new Jr(r,3)),o.computeBoundingSphere(),super(o,new wd({color:i,toneMapped:!1})),this.type="PlaneHelper",this.plane=t,this.size=e;const a=[1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],s=new so;s.setAttribute("position",new Jr(a,3)),s.computeBoundingSphere(),this.add(new So(s,new zr({color:i,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(t){let e=-this.plane.constant;Math.abs(e)<1e-8&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=e<0?g:f,this.lookAt(this.plane.normal),super.updateMatrixWorld(t)}}const uv=new vi;let hv,dv;class pv extends br{constructor(t=new vi(0,0,1),e=new vi(0,0,0),n=1,i=16776960,r=.2*n,o=.2*r){super(),this.type="ArrowHelper",void 0===hv&&(hv=new so,hv.setAttribute("position",new Jr([0,0,0,0,1,0],3)),dv=new Wd(0,.5,1,5,1),dv.translate(0,-.5,0)),this.position.copy(e),this.line=new Md(hv,new wd({color:i,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new So(dv,new zr({color:i,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(n,r,o)}setDirection(t){if(t.y>.99999)this.quaternion.set(0,0,0,1);else if(t.y<-.99999)this.quaternion.set(1,0,0,0);else{uv.set(t.z,0,-t.x).normalize();const e=Math.acos(t.y);this.quaternion.setFromAxisAngle(uv,e)}}setLength(t,e=.2*t,n=.2*e){this.line.scale.set(1,Math.max(1e-4,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()}setColor(t){this.line.material.color.set(t),this.cone.material.color.set(t)}copy(t){return super.copy(t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this}}class fv extends Td{constructor(t=1){const e=[0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t],n=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new so;i.setAttribute("position",new Jr(e,3)),i.setAttribute("color",new Jr(n,3));const r=new wd({vertexColors:!0,toneMapped:!1});super(i,r),this.type="AxesHelper"}setColors(t,e,n){const i=new Fr,r=this.geometry.attributes.color.array;return i.set(t),i.toArray(r,0),i.toArray(r,3),i.set(e),i.toArray(r,6),i.toArray(r,9),i.set(n),i.toArray(r,12),i.toArray(r,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class gv{constructor(){this.type="ShapePath",this.color=new Fr,this.subPaths=[],this.currentPath=null}moveTo(t,e){return this.currentPath=new Mp,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e),this}lineTo(t,e){return this.currentPath.lineTo(t,e),this}quadraticCurveTo(t,e,n,i){return this.currentPath.quadraticCurveTo(t,e,n,i),this}bezierCurveTo(t,e,n,i,r,o){return this.currentPath.bezierCurveTo(t,e,n,i,r,o),this}splineThru(t){return this.currentPath.splineThru(t),this}toShapes(t,e){function n(t){const e=[];for(let n=0,i=t.length;n<i;n++){const i=t[n],r=new kp;r.curves=i.curves,e.push(r)}return e}function i(t,e){const n=e.length;let i=!1;for(let r=n-1,o=0;o<n;r=o++){let n=e[r],a=e[o],s=a.x-n.x,l=a.y-n.y;if(Math.abs(l)>Number.EPSILON){if(l<0&&(n=e[o],s=-s,a=e[r],l=-l),t.y<n.y||t.y>a.y)continue;if(t.y===n.y){if(t.x===n.x)return!0}else{const e=l*(t.x-n.x)-s*(t.y-n.y);if(0===e)return!0;if(e<0)continue;i=!i}}else{if(t.y!==n.y)continue;if(a.x<=t.x&&t.x<=n.x||n.x<=t.x&&t.x<=a.x)return!0}}return i}const r=lf.isClockWise,o=this.subPaths;if(0===o.length)return[];if(!0===e)return n(o);let a,s,l;const c=[];if(1===o.length)return s=o[0],l=new kp,l.curves=s.curves,c.push(l),c;let u=!r(o[0].getPoints());u=t?!u:u;const h=[],d=[];let p,f,g=[],m=0;d[m]=void 0,g[m]=[];for(let v=0,y=o.length;v<y;v++)s=o[v],p=s.getPoints(),a=r(p),a=t?!a:a,a?(!u&&d[m]&&m++,d[m]={s:new kp,p:p},d[m].s.curves=s.curves,u&&m++,g[m]=[]):g[m].push({h:s,p:p[0]});if(!d[0])return n(o);if(d.length>1){let t=!1;const e=[];for(let n=0,i=d.length;n<i;n++)h[n]=[];for(let n=0,r=d.length;n<r;n++){const r=g[n];for(let o=0;o<r.length;o++){const a=r[o];let s=!0;for(let r=0;r<d.length;r++)i(a.p,d[r].p)&&(n!==r&&e.push({froms:n,tos:r,hole:o}),s?(s=!1,h[r].push(a)):t=!0);s&&h[n].push(a)}}e.length>0&&(t||(g=h))}for(let v=0,y=d.length;v<y;v++){l=d[v].s,c.push(l),f=g[v];for(let t=0,e=f.length;t<e;t++)l.holes.push(f[t].h)}return c}}const mv=new Float32Array(1),vv=new Int32Array(mv.buffer);class yv{static toHalfFloat(t){t>65504&&(console.warn("THREE.DataUtils.toHalfFloat(): value exceeds 65504."),t=65504),mv[0]=t;const e=vv[0];let n=e>>16&32768,i=e>>12&2047;const r=e>>23&255;return r<103?n:r>142?(n|=31744,n|=(255==r?0:1)&&8388607&e,n):r<113?(i|=2048,n|=(i>>114-r)+(i>>113-r&1),n):(n|=r-112<<10|i>>1,n+=1&i,n)}}const bv=0,xv=1,wv=0,_v=1,Cv=2;function Av(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t}function Iv(t=[]){return console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t}function Sv(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new Bd(t,e)}function Mv(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new $h(t)}function kv(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new Bd(t,e)}function Ev(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Pd(t)}function Tv(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Pd(t)}function Ov(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Pd(t)}function Pv(t,e,n){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new vi(t,e,n)}function jv(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."),new Hr(t,e).setUsage(bn)}function Lv(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new Wr(t,e)}function Dv(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new Ur(t,e)}function Rv(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new Zr(t,e)}function Bv(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new Yr(t,e)}function Nv(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new Xr(t,e)}function Fv(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new qr(t,e)}function zv(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new Kr(t,e)}function Vv(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new Jr(t,e)}function Gv(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new $r(t,e)}function Hv(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new fv(t)}function Wv(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new sv(t,e)}function Uv(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new Td(new Jd(t.geometry),new wd({color:void 0!==e?e:16777215}))}function Zv(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new Td(new If(t.geometry),new wd({color:void 0!==e?e:16777215}))}function Yv(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new og(t)}function Xv(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new ug(t)}function qv(t,e,n){return console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."),new Go(t,n)}function Kv(){console.error("THREE.CanvasRenderer has been removed")}function Qv(){console.error("THREE.JSONLoader has been removed.")}$d.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create($d.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Mp.prototype.fromPoints=function(t){return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)},Km.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Hm.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},ig.prototype.extractUrlBase=function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),Pg.extractUrlBase(t)},ig.Handlers={add:function(){console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead.")},get:function(){console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead.")}},Lm.prototype.center=function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},Lm.prototype.empty=function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},Lm.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},Lm.prototype.size=function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)},xi.prototype.center=function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},xi.prototype.empty=function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},xi.prototype.isIntersectionBox=function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},xi.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},xi.prototype.size=function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)},Fi.prototype.empty=function(){return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."),this.isEmpty()},qo.prototype.setFromMatrix=function(t){return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."),this.setFromProjectionMatrix(t)},Bm.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},ni.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},ni.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},ni.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},ni.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},ni.prototype.applyToVector3Array=function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")},ni.prototype.getInverse=function(t){return console.warn("THREE.Matrix3: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},Xi.prototype.extractPosition=function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},Xi.prototype.flattenToArrayOffset=function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},Xi.prototype.getPosition=function(){return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),(new vi).setFromMatrixColumn(this,3)},Xi.prototype.setRotationFromQuaternion=function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},Xi.prototype.multiplyToArray=function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},Xi.prototype.multiplyVector3=function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Xi.prototype.multiplyVector4=function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Xi.prototype.multiplyVector3Array=function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},Xi.prototype.rotateAxis=function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},Xi.prototype.crossVector=function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Xi.prototype.translate=function(){console.error("THREE.Matrix4: .translate() has been removed.")},Xi.prototype.rotateX=function(){console.error("THREE.Matrix4: .rotateX() has been removed.")},Xi.prototype.rotateY=function(){console.error("THREE.Matrix4: .rotateY() has been removed.")},Xi.prototype.rotateZ=function(){console.error("THREE.Matrix4: .rotateZ() has been removed.")},Xi.prototype.rotateByAxis=function(){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")},Xi.prototype.applyToBufferAttribute=function(t){return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},Xi.prototype.applyToVector3Array=function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},Xi.prototype.makeFrustum=function(t,e,n,i,r,o){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,i,n,r,o)},Xi.prototype.getInverse=function(t){return console.warn("THREE.Matrix4: .getInverse() has been removed. Use matrixInv.copy( matrix ).invert(); instead."),this.copy(t).invert()},Zo.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},mi.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},mi.prototype.inverse=function(){return console.warn("THREE.Quaternion: .inverse() has been renamed to invert()."),this.invert()},Yi.prototype.isIntersectionBox=function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},Yi.prototype.isIntersectionPlane=function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},Yi.prototype.isIntersectionSphere=function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},Tr.prototype.area=function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},Tr.prototype.barycoordFromPoint=function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},Tr.prototype.midpoint=function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},Tr.prototypenormal=function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},Tr.prototype.plane=function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)},Tr.barycoordFromPoint=function(t,e,n,i,r){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Tr.getBarycoord(t,e,n,i,r)},Tr.normal=function(t,e,n,i){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Tr.getNormal(t,e,n,i)},kp.prototype.extractAllPoints=function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},kp.prototype.extrude=function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new hf(this,t)},kp.prototype.makeGeometry=function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new yf(this,t)},ei.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},ei.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},ei.prototype.lengthManhattan=function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},vi.prototype.setEulerFromRotationMatrix=function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},vi.prototype.setEulerFromQuaternion=function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},vi.prototype.getPositionFromMatrix=function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},vi.prototype.getScaleFromMatrix=function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},vi.prototype.getColumnFromMatrix=function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},vi.prototype.applyProjection=function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},vi.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},vi.prototype.distanceToManhattan=function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},vi.prototype.lengthManhattan=function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},di.prototype.fromAttribute=function(t,e,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},di.prototype.lengthManhattan=function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()},br.prototype.getChildByName=function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},br.prototype.renderDepth=function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},br.prototype.translate=function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},br.prototype.getWorldRotation=function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")},br.prototype.applyMatrix=function(t){return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties(br.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),So.prototype.setDrawMode=function(){console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")},Object.defineProperties(So.prototype,{drawMode:{get:function(){return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."),Ze},set:function(){console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary.")}}}),cd.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Bo.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==e&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(dg.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(Hr.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},dynamic:{get:function(){return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.usage===bn},set:function(){console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."),this.setUsage(bn)}}}),Hr.prototype.setDynamic=function(t){return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?bn:yn),this},Hr.prototype.copyIndicesArray=function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")},Hr.prototype.setArray=function(){console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},so.prototype.addIndex=function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},so.prototype.addAttribute=function(t,e){return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."),e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):this.setAttribute(t,e):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.setAttribute(t,new Hr(arguments[1],arguments[2])))},so.prototype.addDrawCall=function(t,e,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},so.prototype.clearDrawCalls=function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},so.prototype.computeOffsets=function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")},so.prototype.removeAttribute=function(t){return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."),this.deleteAttribute(t)},so.prototype.applyMatrix=function(t){return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."),this.applyMatrix4(t)},Object.defineProperties(so.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Rh.prototype.setDynamic=function(t){return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."),this.setUsage(!0===t?bn:yn),this},Rh.prototype.setArray=function(){console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers")},hf.prototype.getArrays=function(){console.error("THREE.ExtrudeGeometry: .getArrays() has been removed.")},hf.prototype.addShapeList=function(){console.error("THREE.ExtrudeGeometry: .addShapeList() has been removed.")},hf.prototype.addShape=function(){console.error("THREE.ExtrudeGeometry: .addShape() has been removed.")},Dh.prototype.dispose=function(){console.error("THREE.Scene: .dispose() has been removed.")},Im.prototype.onUpdate=function(){return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."),this},Object.defineProperties(Pr.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new Fr}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=t===v}},stencilMask:{get:function(){return console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask},set:function(t){console.warn("THREE."+this.type+": .stencilMask has been removed. Use .stencilFuncMask instead."),this.stencilFuncMask=t}},vertexTangents:{get:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")},set:function(){console.warn("THREE."+this.type+": .vertexTangents has been removed.")}}}),Object.defineProperties(Do.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Oh.prototype.clearTarget=function(t,e,n,i){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,n,i)},Oh.prototype.animate=function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},Oh.prototype.getCurrentRenderTarget=function(){return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."),this.getRenderTarget()},Oh.prototype.getMaxAnisotropy=function(){return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."),this.capabilities.getMaxAnisotropy()},Oh.prototype.getPrecision=function(){return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."),this.capabilities.precision},Oh.prototype.resetGLState=function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},Oh.prototype.supportsFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},Oh.prototype.supportsHalfFloatTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},Oh.prototype.supportsStandardDerivatives=function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},Oh.prototype.supportsCompressedTextureS3TC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},Oh.prototype.supportsCompressedTexturePVRTC=function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},Oh.prototype.supportsBlendMinMax=function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},Oh.prototype.supportsVertexTextures=function(){return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."),this.capabilities.vertexTextures},Oh.prototype.supportsInstancedArrays=function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},Oh.prototype.enableScissorTest=function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},Oh.prototype.initMaterial=function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},Oh.prototype.addPrePlugin=function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},Oh.prototype.addPostPlugin=function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},Oh.prototype.updateShadowMap=function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")},Oh.prototype.setFaceCulling=function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")},Oh.prototype.allocTextureUnit=function(){console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed.")},Oh.prototype.setTexture=function(){console.warn("THREE.WebGLRenderer: .setTexture() has been removed.")},Oh.prototype.setTexture2D=function(){console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed.")},Oh.prototype.setTextureCube=function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},Oh.prototype.getActiveMipMapLevel=function(){return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."),this.getActiveMipmapLevel()},Object.defineProperties(Oh.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."),this.getContext()}},vr:{get:function(){return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"),this.xr}},gammaInput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."),!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),!1},set:function(t){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."),this.outputEncoding=!0===t?Ke:qe}},toneMappingWhitePoint:{get:function(){return console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed."),1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}},gammaFactor:{get:function(){return console.warn("THREE.WebGLRenderer: .gammaFactor has been removed."),2},set:function(){console.warn("THREE.WebGLRenderer: .gammaFactor has been removed.")}}}),Object.defineProperties(bh.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(pi.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),nm.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");const e=this,n=new Gg;return n.load(t,(function(t){e.setBuffer(t)})),this},lm.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},zo.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)},zo.prototype.clear=function(t,e,n,i){return console.warn("THREE.CubeCamera: .clear() is now .renderTarget.clear()."),this.renderTarget.clear(t,e,n,i)},li.crossOrigin=void 0,li.loadTexture=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");const r=new hg;r.setCrossOrigin(this.crossOrigin);const o=r.load(t,n,void 0,i);return e&&(o.mapping=e),o},li.loadTextureCube=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");const r=new cg;r.setCrossOrigin(this.crossOrigin);const o=r.load(t,n,void 0,i);return e&&(o.mapping=e),o},li.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},li.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};const Jv={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};function $v(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")}function ty(){return console.error("THREE.ParametricGeometry has been moved to /examples/jsm/geometries/ParametricGeometry.js"),new so}function ey(){return console.error("THREE.TextGeometry has been moved to /examples/jsm/geometries/TextGeometry.js"),new so}function ny(){console.error("THREE.FontLoader has been moved to /examples/jsm/loaders/FontLoader.js")}function iy(){console.error("THREE.Font has been moved to /examples/jsm/loaders/FontLoader.js")}function ry(){console.error("THREE.ImmediateRenderObject has been removed.")}"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:i}})),"undefined"!==typeof window&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=i)},"5b8d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e.default=i},"5cc6":function(t,e,n){var i=n("74e8");i("Uint8",(function(t){return function(e,n,i){return t(this,e,n,i)}}))},"5d64":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("d080"),r=n("f4c83");function o(t,e,n){var r=1;if(i.isString(t)&&(r=t.split("\n").length),r>1){var o=a(e,n);return e*r+o*(r-1)}return e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=r.getOffScreenContext(),o=0;if(i.isNil(t)||""===t)return o;if(n.save(),n.font=e,i.isString(t)&&t.includes("\n")){var a=t.split("\n");i.each(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function l(t){var e=t.fontSize,n=t.fontFamily,i=t.fontWeight,r=t.fontStyle,o=t.fontVariant;return[r,o,i,e+"px",n].join(" ").trim()}e.getTextHeight=o,e.getLineSpaceing=a,e.getTextWidth=s,e.assembleFont=l},"5dc8":function(t,e,n){"use strict";var i=n("26ad"),r=n("70a4");function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}var a={update:function(){var t=this,e=t.rtl,n=t.params.pagination;if(n.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var o,a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el,l=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),o>a-1-2*t.loopedSlides&&(o-=a-2*t.loopedSlides),o>l-1&&(o-=l),o<0&&"bullets"!==t.params.paginationType&&(o=l+o)):o="undefined"!==typeof t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var c,u,h,d=t.pagination.bullets;if(n.dynamicBullets&&(t.pagination.bulletSize=d.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=o-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),c=o-t.pagination.dynamicBulletIndex,u=c+(Math.min(d.length,n.dynamicMainBullets)-1),h=(u+c)/2),d.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),s.length>1)d.each((function(t){var e=Object(i["a"])(t),r=e.index();r===o&&e.addClass(n.bulletActiveClass),n.dynamicBullets&&(r>=c&&r<=u&&e.addClass(n.bulletActiveClass+"-main"),r===c&&e.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),r===u&&e.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))}));else{var p=d.eq(o),f=p.index();if(p.addClass(n.bulletActiveClass),n.dynamicBullets){for(var g=d.eq(c),m=d.eq(u),v=c;v<=u;v+=1)d.eq(v).addClass(n.bulletActiveClass+"-main");if(t.params.loop)if(f>=d.length-n.dynamicMainBullets){for(var y=n.dynamicMainBullets;y>=0;y-=1)d.eq(d.length-y).addClass(n.bulletActiveClass+"-main");d.eq(d.length-n.dynamicMainBullets-1).addClass(n.bulletActiveClass+"-prev")}else g.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),m.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next");else g.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),m.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}}if(n.dynamicBullets){var b=Math.min(d.length,n.dynamicMainBullets+4),x=(t.pagination.bulletSize*b-t.pagination.bulletSize)/2-h*t.pagination.bulletSize,w=e?"right":"left";d.css(t.isHorizontal()?w:"top",x+"px")}}if("fraction"===n.type&&(s.find(Object(r["b"])(n.currentClass)).text(n.formatFractionCurrent(o+1)),s.find(Object(r["b"])(n.totalClass)).text(n.formatFractionTotal(l))),"progressbar"===n.type){var _;_=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var C=(o+1)/l,A=1,I=1;"horizontal"===_?A=C:I=C,s.find(Object(r["b"])(n.progressbarFillClass)).transform("translate3d(0,0,0) scaleX("+A+") scaleY("+I+")").transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(s.html(n.renderCustom(t,o+1,l)),t.emit("paginationRender",s[0])):t.emit("paginationUpdate",s[0]),t.params.watchOverflow&&t.enabled&&s[t.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el,o="";if("bullets"===e.type){var a=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&!t.params.loop&&a>n&&(a=n);for(var s=0;s<a;s+=1)e.renderBullet?o+=e.renderBullet.call(t,s,e.bulletClass):o+="<"+e.bulletElement+' class="'+e.bulletClass+'"></'+e.bulletElement+">";i.html(o),t.pagination.bullets=i.find(Object(r["b"])(e.bulletClass))}"fraction"===e.type&&(o=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):'<span class="'+e.currentClass+'"></span> / <span class="'+e.totalClass+'"></span>',i.html(o)),"progressbar"===e.type&&(o=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):'<span class="'+e.progressbarFillClass+'"></span>',i.html(o)),"custom"!==e.type&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var t=this;t.params.pagination=Object(r["c"])(t.$el,t.params.pagination,t.params.createElements,{el:"swiper-pagination"});var e=t.params.pagination;if(e.el){var n=Object(i["a"])(e.el);0!==n.length&&(t.params.uniqueNavElements&&"string"===typeof e.el&&n.length>1&&(n=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(n.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click",Object(r["b"])(e.bulletClass),(function(e){e.preventDefault();var n=Object(i["a"])(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)})),Object(r["e"])(t.pagination,{$el:n,el:n[0]}),t.enabled||n.addClass(e.lockClass))}},destroy:function(){var t=this,e=t.params.pagination;if(e.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var n=t.pagination.$el;n.removeClass(e.hiddenClass),n.removeClass(e.modifierClass+e.type),t.pagination.bullets&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&n.off("click",Object(r["b"])(e.bulletClass))}}};e["a"]={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var t=this;Object(r["a"])(t,{pagination:o({dynamicBulletIndex:0},a)})},on:{init:function(t){t.pagination.init(),t.pagination.render(),t.pagination.update()},activeIndexChange:function(t){t.params.loop?t.pagination.update():"undefined"===typeof t.snapIndex&&t.pagination.update()},snapIndexChange:function(t){t.params.loop||t.pagination.update()},slidesLengthChange:function(t){t.params.loop&&(t.pagination.render(),t.pagination.update())},snapGridLengthChange:function(t){t.params.loop||(t.pagination.render(),t.pagination.update())},destroy:function(t){t.pagination.destroy()},"enable disable":function(t){var e=t.pagination.$el;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)},click:function(t,e){var n=e.target;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!Object(i["a"])(n).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&n===t.navigation.nextEl||t.navigation.prevEl&&n===t.navigation.prevEl))return;var r=t.pagination.$el.hasClass(t.params.pagination.hiddenClass);!0===r?t.emit("paginationShow"):t.emit("paginationHide"),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}}},"5e38":function(t,e,n){var i=n("bda0"),r=n("50e1"),o=n("3b16");function a(t,e){var n=new o(e);return n.process(t)}for(var s in e=t.exports=a,e.filterXSS=a,e.FilterXSS=o,i)e[s]=i[s];for(var s in r)e[s]=r[s];function l(){return"undefined"!==typeof self&&"undefined"!==typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope}"undefined"!==typeof window&&(window.filterXSS=t.exports),l()&&(self.filterXSS=t.exports)},"5f07":function(t,e,n){t.exports=n.p+"assets/img/scenario-map-3-green.1d049f9f.png"},"5f12":function(t,e,n){"use strict";var i=n("c67d"),r=n.n(i);r.a},"5f38":function(t,e,n){"use strict";n.r(e);var i=n("a755");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r)},"5f96":function(t,e,n){"use strict";var i=n("ebb5"),r=n("e330"),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=r([].join);a("join",(function(t){return s(o(this),t)}))},"5f9f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTdBODAwMTBCRjM5MTFFQTgxNTk5MjMyMTQyOTk1NDQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTdBODAwMTFCRjM5MTFFQTgxNTk5MjMyMTQyOTk1NDQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1N0E4MDAwRUJGMzkxMUVBODE1OTkyMzIxNDI5OTU0NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1N0E4MDAwRkJGMzkxMUVBODE1OTkyMzIxNDI5OTU0NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PlEewAQAAAJdSURBVHja7Jg9iBpBFMfffRQqiBi1sJUTtrARLWICEiWp9DwQBG0UbGxsJFgFLCRYCUpqESyChWChFhaHWKW10OLAyiOwpeGOU7u79yxkx+P2PmI2OzB/+C87s7o7v5333s7ukSRJgHqH/or+graBviWjh+ga+u4UNw70L/QZ8CEX+iM6jv50Yrfbf+DOZ+BPTvT9MW4ugF+dE4CdYwDLMXAuASAABADnOn3uB263+8lj8/n8RRdRO8dLpHYdVYBSqQSpVEr15JvNBtbrNTQaDWg2m4+Oj0YjcDqdbx48nd/r9f67EDIYDGC1WqFYLG4Hy3UO0J3udDpMH83Of80BpWKxGBOP8Xgc8vk8EyIej4f5TyQSeTIver3erj0YDLazqOkMdLtdCIfDIMsy018oFPgKofF4fNCqozmA2Wx+U3nVDYDP52PaFM/cALRaLSaJZ7OZpjPwqipUqVRgtVqByWQCm822rf/0HNi9bWMyJxIJfS0llNovkUrRndd68Ad9kBHcZDKBbDar3xlQ1nsKHaPRyIQQ7dPDyGKxQK1W0x9ALpd7lKBU8+v1Orhcrl1fOp3WDOCvQ4iAaLmwPztahdLBcqDf7zNtv9/PF8BisWDaDoeDL4BAIMC0p9MpPwCUyNFolOlrt9v6q0L7CgaDkEwmIRQKMf3L5VKz5cSrAJQvIGrvsJlMRp8PsudEd75arep3Maf2VWI4HEK5XNZ8LXQkSdI98Ktr8WlRAAgAASAABMANx+PfEMAlxwCXBPAN/YfDwf9GfyeAK/R7dBd9y8HAl+if6A9o+UGAAQDQzK6KQZi+hQAAAABJRU5ErkJggg=="},"607a":function(t,e,n){"use strict";var i=n("dbce"),r=n.n(i);r.a},"609b":function(t,e,n){},"60bd":function(t,e,n){"use strict";var i=n("da84"),r=n("d039"),o=n("e330"),a=n("ebb5"),s=n("e260"),l=n("b622"),c=l("iterator"),u=i.Uint8Array,h=o(s.values),d=o(s.keys),p=o(s.entries),f=a.aTypedArray,g=a.exportTypedArrayMethod,m=u&&u.prototype,v=!r((function(){m[c].call([1])})),y=!!m&&m.values&&m[c]===m.values&&"values"===m.values.name,b=function(){return h(f(this))};g("entries",(function(){return p(f(this))}),v),g("keys",(function(){return d(f(this))}),v),g("values",b,v||!y,{name:"values"}),g(c,b,v||!y,{name:"values"})},"613d":function(t,e,n){"use strict";var i=n("3b98"),r=n.n(i);r.a},"61d8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("bd8b");e.default=function(t){return i.default(t,"String")}},"621a":function(t,e,n){"use strict";var i=n("da84"),r=n("e330"),o=n("83ab"),a=n("4b11"),s=n("5e77"),l=n("9112"),c=n("edd0"),u=n("6964"),h=n("d039"),d=n("19aa"),p=n("5926"),f=n("50c4"),g=n("0b25"),m=n("77a7"),v=n("e163"),y=n("d2bb"),b=n("241c").f,x=n("81d5"),w=n("4dae"),_=n("d44e"),C=n("69f3"),A=s.PROPER,I=s.CONFIGURABLE,S="ArrayBuffer",M="DataView",k="prototype",E="Wrong length",T="Wrong index",O=C.getterFor(S),P=C.getterFor(M),j=C.set,L=i[S],D=L,R=D&&D[k],B=i[M],N=B&&B[k],F=Object.prototype,z=i.Array,V=i.RangeError,G=r(x),H=r([].reverse),W=m.pack,U=m.unpack,Z=function(t){return[255&t]},Y=function(t){return[255&t,t>>8&255]},X=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},q=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},K=function(t){return W(t,23,4)},Q=function(t){return W(t,52,8)},J=function(t,e,n){c(t[k],e,{configurable:!0,get:function(){return n(this)[e]}})},$=function(t,e,n,i){var r=g(n),o=P(t);if(r+e>o.byteLength)throw V(T);var a=o.bytes,s=r+o.byteOffset,l=w(a,s,s+e);return i?l:H(l)},tt=function(t,e,n,i,r,o){var a=g(n),s=P(t);if(a+e>s.byteLength)throw V(T);for(var l=s.bytes,c=a+s.byteOffset,u=i(+r),h=0;h<e;h++)l[c+h]=u[o?h:e-h-1]};if(a){var et=A&&L.name!==S;if(h((function(){L(1)}))&&h((function(){new L(-1)}))&&!h((function(){return new L,new L(1.5),new L(NaN),1!=L.length||et&&!I})))et&&I&&l(L,"name",S);else{D=function(t){return d(this,R),new L(g(t))},D[k]=R;for(var nt,it=b(L),rt=0;it.length>rt;)(nt=it[rt++])in D||l(D,nt,L[nt]);R.constructor=D}y&&v(N)!==F&&y(N,F);var ot=new B(new D(2)),at=r(N.setInt8);ot.setInt8(0,2147483648),ot.setInt8(1,2147483649),!ot.getInt8(0)&&ot.getInt8(1)||u(N,{setInt8:function(t,e){at(this,t,e<<24>>24)},setUint8:function(t,e){at(this,t,e<<24>>24)}},{unsafe:!0})}else D=function(t){d(this,R);var e=g(t);j(this,{type:S,bytes:G(z(e),0),byteLength:e}),o||(this.byteLength=e,this.detached=!1)},R=D[k],B=function(t,e,n){d(this,N),d(t,R);var i=O(t),r=i.byteLength,a=p(e);if(a<0||a>r)throw V("Wrong offset");if(n=void 0===n?r-a:f(n),a+n>r)throw V(E);j(this,{type:M,buffer:t,byteLength:n,byteOffset:a,bytes:i.bytes}),o||(this.buffer=t,this.byteLength=n,this.byteOffset=a)},N=B[k],o&&(J(D,"byteLength",O),J(B,"buffer",P),J(B,"byteLength",P),J(B,"byteOffset",P)),u(N,{getInt8:function(t){return $(this,1,t)[0]<<24>>24},getUint8:function(t){return $(this,1,t)[0]},getInt16:function(t){var e=$(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=$(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return q($(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return q($(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return U($(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return U($(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){tt(this,1,t,Z,e)},setUint8:function(t,e){tt(this,1,t,Z,e)},setInt16:function(t,e){tt(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){tt(this,2,t,Y,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){tt(this,4,t,X,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){tt(this,4,t,X,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){tt(this,4,t,K,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){tt(this,8,t,Q,e,arguments.length>2?arguments[2]:void 0)}});_(D,S),_(B,M),t.exports={ArrayBuffer:D,DataView:B}},"625d":function(t,e,n){},"629d":function(t,e,n){"use strict";var i=n("d9da"),r=n.n(i);r.a},"62b5":function(t){t.exports=JSON.parse('{"name":"area","type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[117.210024,40.082262],[117.105315,40.074479],[117.102851,40.073563],[117.102235,40.073105],[117.102851,40.073563],[116.999989,40.030053],[116.927924,40.054788],[116.783794,40.035093],[116.757925,39.968176],[116.786874,39.886963],[116.926076,39.835524],[116.949482,39.778529],[116.902055,39.763813],[116.90575,39.687883],[116.812128,39.616018],[116.717273,39.603572],[116.720969,39.599884],[116.726512,39.595274],[116.703106,39.588819],[116.607636,39.619705],[116.524484,39.596657],[116.440716,39.527466],[116.433325,39.44296],[116.332927,39.457744],[116.245464,39.515466],[116.204196,39.588819],[116.10195,39.576368],[115.957204,39.561147],[115.910393,39.600345],[115.855574,39.554689],[115.846951,39.550999],[115.821081,39.517312],[115.752712,39.512696],[115.738545,39.539464],[115.738545,39.539925],[115.738545,39.539464],[115.738545,39.539925],[115.737314,39.544078],[115.723763,39.544539],[115.721299,39.543617],[115.721299,39.55146],[115.716988,39.560225],[115.699125,39.577751],[115.698509,39.577751],[115.699125,39.577751],[115.698509,39.577751],[115.69543,39.579135],[115.586408,39.58928],[115.478619,39.650578],[115.498945,39.69617],[115.443511,39.785426],[115.567314,39.816224],[115.514344,39.837821],[115.522967,39.898898],[115.426264,39.95029],[115.454597,40.029595],[115.599343,40.11979],[115.73485,40.129398],[115.773038,40.176044],[115.85311,40.148609],[115.89869,40.234536],[115.968907,40.264219],[115.9184,40.354103],[115.861733,40.364589],[115.779197,40.442501],[115.755792,40.540333],[115.907929,40.617133],[116.005247,40.58397],[116.088399,40.62667],[116.22021,40.744181],[116.247311,40.791762],[116.464738,40.771827],[116.334159,40.90446],[116.473977,40.895867],[116.455499,40.98084],[116.519557,40.981292],[116.599013,40.974516],[116.615643,41.053072],[116.688324,41.044499],[116.677853,40.970902],[116.730208,40.897676],[116.858323,40.833423],[116.964881,40.70972],[117.110858,40.70836],[117.286401,40.660719],[117.386799,40.684317],[117.49582,40.674334],[117.389879,40.5617],[117.344299,40.582152],[117.213104,40.512136],[117.225423,40.369148],[117.309191,40.279284],[117.309807,40.279284],[117.309191,40.279284],[117.309807,40.279284],[117.389879,40.228141],[117.367089,40.172387],[117.367089,40.172844],[117.367089,40.173301],[117.367089,40.172844],[117.367089,40.172387],[117.344299,40.13443],[117.210024,40.082262]]]},"properties":{"id":1,"adcode":110000,"name":"北京","cp":[116.4551,40.2639],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[117.389879,40.228141],[117.309807,40.279284],[117.309191,40.279284],[117.309807,40.279284],[117.309191,40.279284],[117.225423,40.369148],[117.213104,40.512136],[117.344299,40.582152],[117.389879,40.5617],[117.49582,40.674334],[117.386799,40.684317],[117.286401,40.660719],[117.110858,40.70836],[116.964881,40.70972],[116.858323,40.833423],[116.730208,40.897676],[116.677853,40.970902],[116.688324,41.044499],[116.615643,41.053072],[116.599013,40.974516],[116.519557,40.981292],[116.455499,40.98084],[116.473977,40.895867],[116.334159,40.90446],[116.464738,40.771827],[116.247311,40.791762],[116.22021,40.744181],[116.088399,40.62667],[116.005247,40.58397],[115.907929,40.617133],[115.755792,40.540333],[115.779197,40.442501],[115.861733,40.364589],[115.9184,40.354103],[115.968907,40.264219],[115.89869,40.234536],[115.85311,40.148609],[115.773038,40.176044],[115.73485,40.129398],[115.599343,40.11979],[115.454597,40.029595],[115.426264,39.95029],[115.522967,39.898898],[115.514344,39.837821],[115.567314,39.816224],[115.443511,39.785426],[115.498945,39.69617],[115.478619,39.650578],[115.586408,39.58928],[115.69543,39.579135],[115.698509,39.577751],[115.699125,39.577751],[115.698509,39.577751],[115.699125,39.577751],[115.716988,39.560225],[115.721299,39.55146],[115.721299,39.543617],[115.723763,39.544539],[115.737314,39.544078],[115.738545,39.539925],[115.738545,39.539464],[115.738545,39.539925],[115.738545,39.539464],[115.752712,39.512696],[115.821081,39.517312],[115.846951,39.550999],[115.855574,39.554689],[115.910393,39.600345],[115.957204,39.561147],[116.10195,39.576368],[116.204196,39.588819],[116.245464,39.515466],[116.332927,39.457744],[116.433325,39.44296],[116.440716,39.527466],[116.524484,39.596657],[116.607636,39.619705],[116.703106,39.588819],[116.726512,39.595274],[116.720969,39.599884],[116.717273,39.603572],[116.812128,39.616018],[116.796113,39.446656],[116.870642,39.357426],[116.892816,39.224061],[116.865714,39.155428],[116.912526,39.110873],[116.91191,39.111338],[116.912526,39.110873],[116.812744,39.050959],[116.783179,39.050959],[116.708034,38.931907],[116.737599,38.784677],[116.766548,38.742222],[116.858939,38.741289],[116.877417,38.680594],[116.950714,38.689468],[116.95133,38.689468],[116.950714,38.689468],[116.947634,38.689468],[116.95133,38.689468],[117.042489,38.706279],[117.097924,38.587118],[117.176764,38.617978],[117.213104,38.639947],[117.252524,38.556711],[117.39419,38.573553],[117.47919,38.617043],[117.639334,38.62686],[117.638102,38.545013],[117.781,38.374004],[117.937449,38.387606],[117.895565,38.30173],[117.808718,38.228445],[117.771761,38.136734],[117.70216,38.075529],[117.5839,38.070819],[117.513067,37.94353],[117.438538,37.853823],[117.34122,37.863271],[117.267923,37.838704],[117.093612,37.849571],[117.023395,37.832561],[116.788106,37.843429],[116.724664,37.744139],[116.433941,37.47349],[116.38097,37.522858],[116.379738,37.521909],[116.38097,37.522858],[116.379738,37.521909],[116.337238,37.580255],[116.291659,37.557966],[116.27626,37.466841],[116.240536,37.489633],[116.226369,37.428365],[116.2855,37.404604],[116.236224,37.361816],[116.169087,37.384164],[116.051443,37.367998],[115.984921,37.326616],[115.969523,37.239497],[115.909777,37.206622],[115.868509,37.076414],[115.776734,36.992829],[115.79706,36.968931],[115.71206,36.883313],[115.683727,36.808139],[115.479851,36.76022],[115.365902,36.622043],[115.283366,36.486505],[115.308004,36.461967],[115.366518,36.308793],[115.466916,36.259115],[115.483547,36.149036],[115.312931,36.088137],[115.201446,36.210371],[115.064092,36.178985],[114.996955,36.06831],[114.914419,36.051865],[114.912571,36.140339],[114.591666,36.130192],[114.345291,36.255738],[114.169132,36.243675],[114.060727,36.276482],[114.055799,36.330005],[113.982502,36.358921],[113.911054,36.314578],[113.881488,36.354102],[113.819894,36.330969],[113.731199,36.363257],[113.708409,36.423461],[113.554425,36.494682],[113.588301,36.562955],[113.476816,36.655171],[113.499606,36.740564],[113.680692,36.789933],[113.696707,36.882356],[113.773083,36.855072],[113.76138,36.956022],[113.791561,36.987572],[113.758301,37.075459],[113.773083,37.1518],[113.832213,37.167536],[113.90243,37.309962],[114.014531,37.424564],[114.036705,37.49438],[114.123553,37.60159],[114.12848,37.698231],[113.993589,37.706752],[114.044712,37.762116],[113.976959,37.816965],[113.951706,37.917573],[113.872249,37.990228],[113.876561,38.055273],[113.810039,38.112729],[113.825438,38.169199],[113.720728,38.174843],[113.711489,38.213873],[113.570439,38.237375],[113.525475,38.382916],[113.583374,38.459793],[113.561816,38.558115],[113.612939,38.646022],[113.70225,38.65163],[113.720728,38.713283],[113.839605,38.758554],[113.855619,38.828972],[113.776163,38.885814],[113.76754,38.959828],[113.898119,39.067684],[114.050872,39.135939],[114.10877,39.052352],[114.345907,39.075116],[114.388406,39.176767],[114.47587,39.216181],[114.416124,39.243063],[114.480797,39.350023],[114.470942,39.408759],[114.568877,39.574062],[114.408117,39.65196],[114.395182,39.867218],[114.225183,39.857114],[114.17406,39.897521],[114.047176,39.916339],[114.021307,39.992017],[113.910438,40.011725],[113.956017,40.031428],[113.989278,40.112469],[114.044712,40.05662],[114.101995,40.099655],[114.073046,40.168729],[114.235654,40.198442],[114.255364,40.236363],[114.46971,40.267872],[114.530688,40.344983],[114.446305,40.372795],[114.31203,40.372795],[114.267066,40.474369],[114.283081,40.590785],[114.209168,40.629848],[114.134639,40.737381],[114.044712,40.83116],[114.073661,40.857412],[113.973263,40.983099],[113.819279,41.097726],[113.920293,41.172081],[113.996669,41.192345],[113.927068,41.326829],[113.94493,41.39105],[113.871017,41.41349],[113.930764,41.485693],[114.100147,41.537218],[114.230726,41.513477],[114.203009,41.793334],[114.34837,41.947049],[114.510978,41.973299],[114.466015,42.038656],[114.510978,42.111047],[114.765361,42.118593],[114.828803,42.147434],[114.9021,42.015544],[114.922426,41.824999],[114.866991,41.803147],[114.899636,41.756299],[114.895325,41.636567],[114.862064,41.603915],[115.0992,41.624045],[115.252569,41.579303],[115.376989,41.602126],[115.319091,41.691546],[115.654162,41.829011],[115.811226,41.912328],[115.916552,41.945269],[116.016334,41.777273],[116.09887,41.776381],[116.122892,41.861995],[116.194341,41.861995],[116.233145,41.941263],[116.310137,41.997316],[116.409303,41.994203],[116.386514,41.952389],[116.510933,41.974189],[116.560209,41.928356],[116.727744,41.951054],[116.879881,42.018211],[116.890352,42.092846],[116.789338,42.200202],[116.907598,42.191337],[116.886656,42.366641],[116.910062,42.394928],[116.927308,42.40509],[116.929156,42.407741],[116.929156,42.408182],[116.929156,42.407741],[116.929156,42.408182],[116.936547,42.410833],[116.944555,42.415251],[116.976583,42.427618],[116.984591,42.427176],[116.993214,42.425851],[116.995678,42.426734],[117.001837,42.432476],[117.004301,42.432476],[117.005533,42.4338],[117.133648,42.470443],[117.147815,42.470443],[117.264227,42.476621],[117.412669,42.472649],[117.387415,42.517648],[117.43669,42.584205],[117.516146,42.599622],[117.687377,42.582884],[117.779768,42.618558],[117.874007,42.510151],[118.019369,42.39537],[118.060021,42.298083],[117.977485,42.229892],[118.109296,42.165176],[118.097593,42.105277],[118.155491,42.081301],[118.119767,42.034656],[118.194296,42.031545],[118.212774,42.081301],[118.297157,42.048876],[118.237411,42.023101],[118.313788,41.987977],[118.268824,41.930136],[118.340273,41.872688],[118.29223,41.772811],[118.165962,41.813405],[118.130854,41.74246],[118.214006,41.641933],[118.230636,41.581989],[118.307012,41.569008],[118.271904,41.471349],[118.348896,41.428296],[118.35136,41.337163],[118.519511,41.353783],[118.677192,41.350639],[118.741866,41.324133],[118.843496,41.374439],[118.890923,41.300764],[118.96422,41.309303],[119.197661,41.282781],[119.239545,41.314696],[119.2494,41.279634],[119.126212,41.138744],[119.037516,41.067509],[118.96422,41.079236],[118.951901,41.01832],[119.013495,41.007485],[118.977154,40.959155],[118.90201,40.960963],[118.849039,40.800821],[118.911249,40.776811],[119.054147,40.664804],[119.184726,40.680233],[119.162552,40.599872],[119.30237,40.530329],[119.571536,40.540333],[119.598637,40.465266],[119.586934,40.37553],[119.642369,40.291151],[119.625123,40.224029],[119.745847,40.208038],[119.736608,40.10469],[119.779723,40.049293],[119.780339,40.047002],[119.817296,40.049751],[119.848093,40.020432],[119.845629,40.000726],[119.854252,39.988349],[119.791426,39.952124],[119.540739,39.88834],[119.536427,39.808871],[119.466826,39.810709],[119.357805,39.721946],[119.269726,39.498385],[119.314689,39.412457],[119.190885,39.368528],[119.096031,39.242136],[118.948821,39.138259],[118.955597,39.176303],[118.76096,39.133618],[118.637156,39.157284],[118.533062,39.090907],[118.604511,38.971458],[118.491178,38.909097],[118.377845,38.971923],[118.366143,39.016101],[118.225092,39.034694],[118.120999,39.186043],[118.037231,39.220353],[118.024912,39.292164],[118.024296,39.289386],[118.021833,39.287071],[117.982412,39.298647],[117.972557,39.312536],[117.846906,39.328274],[117.870311,39.454972],[117.933753,39.574062],[117.866,39.596657],[117.74774,39.58928],[117.736037,39.560686],[117.619008,39.603111],[117.66274,39.636295],[117.644262,39.702155],[117.57774,39.727009],[117.540784,39.822658],[117.537704,39.835064],[117.513067,39.910373],[117.589443,39.997059],[117.614697,39.972303],[117.782232,39.968634],[117.75821,40.073563],[117.71879,40.082262],[117.651037,40.122535],[117.652269,40.12345],[117.571581,40.21809],[117.450857,40.252347],[117.389879,40.228141]]],[[[116.90575,39.687883],[116.902055,39.763813],[116.949482,39.778529],[116.926076,39.835524],[116.786874,39.886963],[116.757925,39.968176],[116.783794,40.035093],[116.927924,40.054788],[116.999989,40.030053],[117.102851,40.073563],[117.102235,40.073105],[117.102851,40.073563],[117.105315,40.074479],[117.210024,40.082262],[117.198322,39.992933],[117.150894,39.944785],[117.152126,39.878239],[117.229735,39.852981],[117.156438,39.817603],[117.205713,39.763813],[117.165061,39.718725],[117.177996,39.64551],[117.126873,39.61694],[116.983975,39.63906],[116.916837,39.703996],[116.90575,39.687883]]]]},"properties":{"id":2,"adcode":130000,"name":"河北","cp":[115.4004,38.1688],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[113.731199,36.363257],[113.716417,36.262492],[113.651743,36.172224],[113.694859,36.026707],[113.637576,35.98847],[113.656671,35.836792],[113.604316,35.797008],[113.578446,35.63378],[113.485439,35.520879],[113.31236,35.481424],[113.298194,35.427325],[113.189789,35.449261],[113.126347,35.332197],[112.997,35.362455],[112.992072,35.296068],[112.911384,35.24673],[112.818377,35.258457],[112.766022,35.203718],[112.628052,35.263342],[112.637291,35.225716],[112.513487,35.218384],[112.058924,35.279951],[112.078634,35.219362],[112.062004,35.055937],[111.900012,35.079933],[111.66965,34.988319],[111.570484,34.843094],[111.346282,34.831798],[111.232949,34.789551],[111.148566,34.80773],[111.118385,34.756622],[110.966248,34.70499],[110.929907,34.731548],[110.883712,34.642498],[110.749437,34.652342],[110.710017,34.605078],[110.533242,34.583406],[110.474728,34.617389],[110.379257,34.600646],[110.310272,34.608033],[110.241287,34.682361],[110.232664,34.803308],[110.257301,34.93487],[110.325671,35.014785],[110.39404,35.271647],[110.45009,35.327803],[110.477808,35.413672],[110.525851,35.44195],[110.609619,35.632321],[110.57759,35.701346],[110.549257,35.877527],[110.511684,35.879951],[110.447011,36.164495],[110.474112,36.248018],[110.45933,36.330969],[110.503677,36.487948],[110.496902,36.582175],[110.394656,36.676768],[110.447011,36.737687],[110.416214,36.790892],[110.425453,36.960325],[110.382953,37.021975],[110.444547,37.007164],[110.53509,37.137969],[110.690307,37.287115],[110.695234,37.34945],[110.630561,37.373228],[110.644111,37.435017],[110.745125,37.450693],[110.795017,37.566029],[110.796248,37.66319],[110.706321,37.705332],[110.758676,37.744139],[110.663821,37.803256],[110.59422,37.921821],[110.522771,37.954853],[110.501213,38.031713],[110.509221,38.192245],[110.565887,38.215283],[110.57759,38.297035],[110.661358,38.308773],[110.746973,38.366029],[110.77777,38.44105],[110.874473,38.453702],[110.920052,38.581973],[110.880016,38.618446],[111.009363,38.847614],[110.980414,38.970063],[111.138711,39.064897],[111.163348,39.152644],[111.247732,39.302351],[111.125776,39.366678],[111.171971,39.42355],[111.337043,39.420777],[111.418963,39.500232],[111.462079,39.626157],[111.502115,39.663015],[111.646245,39.644128],[111.783599,39.588819],[111.842729,39.620166],[111.93204,39.61233],[111.970229,39.79646],[112.28559,40.197985],[112.310227,40.256457],[112.456205,40.300278],[112.6299,40.235906],[112.72845,40.168272],[112.844863,40.203926],[112.892906,40.326284],[113.251382,40.413352],[113.316056,40.319898],[113.559968,40.348631],[113.794641,40.518049],[113.855619,40.457071],[113.948626,40.514865],[114.061959,40.528964],[114.041633,40.608503],[114.074277,40.723325],[114.134639,40.737381],[114.209168,40.629848],[114.283081,40.590785],[114.267066,40.474369],[114.31203,40.372795],[114.446305,40.372795],[114.530688,40.344983],[114.46971,40.267872],[114.255364,40.236363],[114.235654,40.198442],[114.073046,40.168729],[114.101995,40.099655],[114.044712,40.05662],[113.989278,40.112469],[113.956017,40.031428],[113.910438,40.011725],[114.021307,39.992017],[114.047176,39.916339],[114.17406,39.897521],[114.225183,39.857114],[114.395182,39.867218],[114.408117,39.65196],[114.568877,39.574062],[114.470942,39.408759],[114.480797,39.350023],[114.416124,39.243063],[114.47587,39.216181],[114.388406,39.176767],[114.345907,39.075116],[114.10877,39.052352],[114.050872,39.135939],[113.898119,39.067684],[113.76754,38.959828],[113.776163,38.885814],[113.855619,38.828972],[113.839605,38.758554],[113.720728,38.713283],[113.70225,38.65163],[113.612939,38.646022],[113.561816,38.558115],[113.583374,38.459793],[113.525475,38.382916],[113.570439,38.237375],[113.711489,38.213873],[113.720728,38.174843],[113.825438,38.169199],[113.810039,38.112729],[113.876561,38.055273],[113.872249,37.990228],[113.951706,37.917573],[113.976959,37.816965],[114.044712,37.762116],[113.993589,37.706752],[114.12848,37.698231],[114.123553,37.60159],[114.036705,37.49438],[114.014531,37.424564],[113.90243,37.309962],[113.832213,37.167536],[113.773083,37.1518],[113.758301,37.075459],[113.791561,36.987572],[113.76138,36.956022],[113.773083,36.855072],[113.696707,36.882356],[113.680692,36.789933],[113.499606,36.740564],[113.476816,36.655171],[113.588301,36.562955],[113.554425,36.494682],[113.708409,36.423461],[113.731199,36.363257]]]},"properties":{"id":3,"adcode":140000,"name":"山西","cp":[112.4121,36.6611],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[119.239545,41.314696],[119.326392,41.329525],[119.30545,41.402271],[119.376283,41.422015],[119.405848,41.508548],[119.361501,41.56498],[119.415703,41.590044],[119.307914,41.657581],[119.294363,41.775935],[119.334399,41.869569],[119.324544,41.969296],[119.384906,42.089738],[119.315921,42.119037],[119.237697,42.201088],[119.284508,42.265325],[119.415703,42.309588],[119.502551,42.387857],[119.572152,42.359568],[119.541971,42.292329],[119.744615,42.211725],[119.846861,42.21527],[119.837622,42.135455],[119.989759,41.898969],[120.051968,41.775935],[120.035954,41.708075],[120.096316,41.696907],[120.188707,41.848179],[120.373489,41.994648],[120.456641,42.016433],[120.466496,42.105277],[120.58414,42.167394],[120.624792,42.154532],[120.745516,42.223689],[120.79048,42.218372],[120.933378,42.279493],[121.068884,42.252483],[121.285079,42.387857],[121.304789,42.435567],[121.388557,42.475297],[121.604752,42.494271],[121.66573,42.437333],[121.904714,42.569666],[121.940438,42.688525],[122.071634,42.711391],[122.20406,42.683687],[122.203445,42.731171],[122.338951,42.670051],[122.395002,42.683687],[122.457212,42.774227],[122.374676,42.774667],[122.35127,42.830419],[122.436886,42.843142],[122.563769,42.826031],[122.624747,42.773349],[122.732536,42.786524],[122.786123,42.756218],[122.831087,42.722381],[122.887137,42.770275],[123.058368,42.768957],[123.227752,42.831735],[123.169853,42.859811],[123.18402,42.926002],[123.259165,42.992997],[123.474743,43.04243],[123.515395,43.027561],[123.572678,43.0035],[123.666916,43.179585],[123.664453,43.264606],[123.703873,43.370824],[123.710032,43.417344],[123.791952,43.491182],[123.87264,43.451234],[123.84985,43.415606],[123.896046,43.361689],[124.032784,43.280724],[124.098074,43.29292],[124.114704,43.247175],[124.226805,43.241945],[124.282856,43.230176],[124.284088,43.166058],[124.425754,43.076092],[124.333363,42.997373],[124.422674,42.975927],[124.431913,42.930821],[124.369087,42.882613],[124.435609,42.88086],[124.454703,42.823836],[124.514449,42.873406],[124.539086,42.867266],[124.659195,42.972862],[124.686912,43.051176],[124.785462,43.117161],[124.896331,43.129826],[124.840897,43.032372],[124.869846,42.988183],[124.859375,42.822959],[124.897563,42.787841],[124.975171,42.802768],[124.996113,42.745234],[124.968396,42.72282],[125.038613,42.615476],[125.097127,42.62252],[125.068794,42.499564],[125.186439,42.428059],[125.175352,42.308261],[125.29854,42.290116],[125.305931,42.146103],[125.353358,42.178923],[125.490097,42.136343],[125.369989,42.003096],[125.291764,41.958618],[125.299156,41.872243],[125.297308,41.861995],[125.29238,41.83971],[125.319482,41.777273],[125.323793,41.771026],[125.325025,41.670097],[125.450677,41.674119],[125.450061,41.598099],[125.534444,41.478073],[125.547995,41.401373],[125.637306,41.34435],[125.646545,41.264344],[125.758646,41.232404],[125.737088,41.179737],[125.791291,41.167577],[125.712451,41.095471],[125.726617,41.055328],[125.674879,40.974516],[125.589263,40.931135],[125.707523,40.866915],[125.544915,40.72922],[125.49564,40.728767],[125.422343,40.635297],[125.279445,40.655273],[125.018287,40.53624],[124.985642,40.475279],[124.897563,40.47892],[124.851368,40.427017],[124.74481,40.375074],[124.718325,40.319441],[124.62039,40.290695],[124.388797,40.113384],[124.38079,40.108808],[124.336442,40.049751],[124.372167,40.021348],[124.239124,39.927352],[124.173218,39.841496],[124.144885,39.745413],[124.103001,39.823577],[124.002603,39.800137],[123.828908,39.831389],[123.697097,39.807032],[123.665684,39.831389],[123.612714,39.77485],[123.536337,39.788644],[123.392823,39.723787],[123.383584,39.766572],[123.274563,39.753693],[123.253005,39.689724],[123.010941,39.655184],[122.972753,39.594813],[122.85634,39.606799],[122.808913,39.559764],[122.581631,39.464211],[122.489856,39.403673],[122.412864,39.411995],[122.274893,39.322257],[122.242865,39.267618],[122.117213,39.213863],[122.167104,39.158676],[122.048228,39.101123],[121.963228,39.030046],[121.864062,39.037018],[121.920728,38.969598],[121.863446,38.942611],[121.790149,39.022609],[121.671273,39.010057],[121.655874,38.9468],[121.719316,38.92027],[121.708845,38.872772],[121.565331,38.875101],[121.509897,38.817784],[121.359608,38.822446],[121.259825,38.786543],[121.198848,38.721686],[121.13479,38.72402],[121.128014,38.958897],[121.204391,38.941215],[121.341129,38.980761],[121.370695,39.060251],[121.508049,39.034229],[121.68236,39.117837],[121.604136,39.166098],[121.598592,39.279198],[121.668193,39.276419],[121.723628,39.367603],[121.621382,39.32596],[121.474788,39.296332],[121.432904,39.357426],[121.246891,39.421702],[121.304173,39.481762],[121.224717,39.51962],[121.297398,39.605877],[121.450151,39.625235],[121.501274,39.706758],[121.45939,39.747713],[121.530223,39.851603],[121.626925,39.882831],[121.699606,39.937445],[121.76428,39.933316],[121.82341,40.036467],[121.884388,40.053415],[122.01004,40.149067],[121.940438,40.2423],[122.02667,40.245041],[122.040221,40.322178],[122.198517,40.382367],[122.245944,40.519868],[122.133843,40.614408],[122.148626,40.671612],[122.06609,40.648464],[121.951525,40.680687],[121.934279,40.798103],[121.852359,40.821199],[121.816019,40.894962],[121.682976,40.829802],[121.526527,40.851529],[121.499426,40.880035],[121.335586,40.900842],[121.23642,40.851077],[121.126167,40.869177],[121.086747,40.798103],[120.991276,40.744181],[121.033776,40.70972],[120.8299,40.671158],[120.822509,40.593966],[120.72827,40.539423],[120.674683,40.471183],[120.616169,40.457071],[120.599539,40.355471],[120.537329,40.325372],[120.523778,40.256914],[120.465264,40.178787],[120.371641,40.174673],[120.273091,40.127111],[119.955882,40.046544],[119.913998,39.988349],[119.854252,39.988349],[119.845629,40.000726],[119.848093,40.020432],[119.817296,40.049751],[119.780339,40.047002],[119.779723,40.049293],[119.736608,40.10469],[119.745847,40.208038],[119.625123,40.224029],[119.642369,40.291151],[119.586934,40.37553],[119.598637,40.465266],[119.571536,40.540333],[119.30237,40.530329],[119.162552,40.599872],[119.184726,40.680233],[119.054147,40.664804],[118.911249,40.776811],[118.849039,40.800821],[118.90201,40.960963],[118.977154,40.959155],[119.013495,41.007485],[118.951901,41.01832],[118.96422,41.079236],[119.037516,41.067509],[119.126212,41.138744],[119.2494,41.279634],[119.239545,41.314696]]],[[[122.969057,39.513158],[122.978912,39.561609],[123.036194,39.533004],[122.969057,39.513158]]]]},"properties":{"id":4,"adcode":210000,"name":"辽宁","cp":[123.0438,41.0889],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[125.707523,40.866915],[125.589263,40.931135],[125.674879,40.974516],[125.726617,41.055328],[125.712451,41.095471],[125.791291,41.167577],[125.737088,41.179737],[125.758646,41.232404],[125.646545,41.264344],[125.637306,41.34435],[125.547995,41.401373],[125.534444,41.478073],[125.450061,41.598099],[125.450677,41.674119],[125.325025,41.670097],[125.323793,41.771026],[125.319482,41.777273],[125.29238,41.83971],[125.297308,41.861995],[125.299156,41.872243],[125.291764,41.958618],[125.369989,42.003096],[125.490097,42.136343],[125.353358,42.178923],[125.305931,42.146103],[125.29854,42.290116],[125.175352,42.308261],[125.186439,42.428059],[125.068794,42.499564],[125.097127,42.62252],[125.038613,42.615476],[124.968396,42.72282],[124.996113,42.745234],[124.975171,42.802768],[124.897563,42.787841],[124.859375,42.822959],[124.869846,42.988183],[124.840897,43.032372],[124.896331,43.129826],[124.785462,43.117161],[124.686912,43.051176],[124.659195,42.972862],[124.539086,42.867266],[124.514449,42.873406],[124.454703,42.823836],[124.435609,42.88086],[124.369087,42.882613],[124.431913,42.930821],[124.422674,42.975927],[124.333363,42.997373],[124.425754,43.076092],[124.284088,43.166058],[124.282856,43.230176],[124.226805,43.241945],[124.114704,43.247175],[124.098074,43.29292],[124.032784,43.280724],[123.896046,43.361689],[123.84985,43.415606],[123.87264,43.451234],[123.791952,43.491182],[123.710032,43.417344],[123.703873,43.370824],[123.608402,43.366474],[123.486446,43.445587],[123.419925,43.409955],[123.382968,43.46904],[123.315831,43.49205],[123.304744,43.551055],[123.439019,43.577501],[123.5117,43.59267],[123.52525,43.695718],[123.400831,43.979264],[123.332461,44.028326],[123.32815,44.083795],[123.386664,44.161966],[123.323838,44.179991],[123.196955,44.34496],[123.128585,44.366778],[123.125506,44.509466],[123.025108,44.492823],[122.85634,44.398422],[122.76087,44.369772],[122.676486,44.28631],[122.483697,44.237032],[122.319241,44.232745],[122.271198,44.255463],[122.291524,44.310291],[122.28598,44.477883],[122.228082,44.480017],[122.196053,44.559794],[122.13138,44.577697],[122.103046,44.673935],[122.161561,44.728371],[122.114749,44.776386],[122.04946,44.912987],[122.079025,44.914258],[122.074713,45.006553],[122.119677,45.068705],[122.109822,45.142186],[122.143082,45.183108],[122.22993,45.20672],[122.239169,45.276234],[122.147394,45.295598],[122.163408,45.443979],[122.02359,45.490137],[121.966308,45.596157],[122.003264,45.623363],[121.949062,45.711169],[121.867142,45.719942],[121.811091,45.686932],[121.713773,45.701977],[121.644172,45.752516],[121.754425,45.795084],[121.817251,45.875539],[121.809243,45.96087],[121.762432,45.999538],[121.84312,46.02447],[122.040221,45.95879],[122.091344,45.881787],[122.200981,45.85679],[122.258879,45.794666],[122.372828,45.855957],[122.362357,45.917597],[122.446125,45.916764],[122.496016,45.858041],[122.504639,45.787157],[122.555146,45.821359],[122.640761,45.7713],[122.671558,45.700723],[122.741775,45.70532],[122.792283,45.766291],[122.752246,45.834701],[122.828623,45.912185],[122.792898,46.073056],[123.04605,46.10003],[123.112571,46.129894],[123.102716,46.172172],[123.178476,46.247944],[123.248078,46.273178],[123.319527,46.253736],[123.373113,46.223112],[123.498765,46.259528],[123.565902,46.22601],[123.610866,46.252909],[123.779633,46.264078],[123.896046,46.303774],[123.982893,46.22601],[123.99398,46.101275],[124.040176,46.019484],[123.970574,45.971267],[123.996444,45.907189],[124.061118,45.886369],[124.064813,45.797586],[124.009379,45.78215],[124.13811,45.68735],[124.129487,45.637589],[124.273001,45.584014],[124.287783,45.539191],[124.354305,45.546734],[124.398652,45.44062],[124.480572,45.456151],[124.544014,45.412066],[124.625318,45.437262],[124.886476,45.442719],[124.923433,45.541286],[124.961005,45.49517],[125.025678,45.493492],[125.06941,45.384757],[125.248649,45.417526],[125.347815,45.395262],[125.398322,45.416686],[125.424807,45.485523],[125.497488,45.469161],[125.628067,45.522006],[125.687813,45.51404],[125.716146,45.421725],[125.697052,45.349447],[125.760494,45.291389],[125.915095,45.196602],[126.166398,45.133323],[126.321615,45.178891],[126.428172,45.2358],[126.567375,45.252651],[126.831613,45.146406],[126.96404,45.132056],[126.968351,45.074621],[127.085995,44.944757],[127.021938,44.899002],[126.984366,44.823936],[127.037336,44.72157],[127.049039,44.567041],[127.094003,44.615189],[127.182082,44.644144],[127.392733,44.632223],[127.557189,44.575566],[127.536247,44.522266],[127.463566,44.484713],[127.50853,44.437312],[127.483892,44.401842],[127.623095,44.277743],[127.591066,44.227601],[127.681609,44.167116],[127.724109,44.196723],[127.729036,44.098836],[127.862079,44.063162],[128.059796,44.110007],[128.089977,44.132342],[128.101679,44.290593],[128.049941,44.349239],[128.190375,44.367206],[128.211317,44.431757],[128.373309,44.51416],[128.46262,44.433894],[128.481714,44.375332],[128.450301,44.203157],[128.574721,44.047682],[128.584576,43.990887],[128.644938,43.936193],[128.636315,43.891366],[128.723778,43.894816],[128.760734,43.857724],[128.719467,43.816724],[128.877763,43.540213],[128.949212,43.55409],[129.014501,43.523295],[129.230696,43.59527],[129.211602,43.784336],[129.406855,43.819314],[129.467833,43.874548],[129.742542,43.875841],[129.784426,43.964623],[129.869425,44.005521],[129.880512,44.000357],[129.98091,44.014128],[130.017251,43.962039],[130.027106,43.851684],[130.079461,43.835285],[130.189098,43.940501],[130.260547,43.948256],[130.353554,44.050262],[130.338155,43.949979],[130.383119,43.906025],[130.380039,43.783904],[130.423771,43.742853],[130.4133,43.652009],[130.488444,43.655905],[130.823515,43.502901],[130.841378,43.454274],[130.907283,43.434291],[131.026775,43.508542],[131.134565,43.428643],[131.294093,43.469909],[131.304564,43.502033],[131.314419,43.392567],[131.275615,43.369084],[131.255289,43.265041],[131.206014,43.23715],[131.218332,43.146853],[131.171521,43.069536],[131.102536,43.021],[131.151195,42.968485],[131.114855,42.915048],[131.034167,42.929069],[131.045869,42.866828],[130.949167,42.876913],[130.890653,42.852793],[130.801957,42.879544],[130.784095,42.842265],[130.666451,42.847968],[130.40714,42.731611],[130.464423,42.688525],[130.586995,42.67621],[130.633806,42.603586],[130.570364,42.557327],[130.558661,42.496035],[130.482285,42.626483],[130.388046,42.603145],[130.242069,42.738643],[130.265474,42.904092],[130.10225,42.922935],[130.144134,42.976365],[129.994461,42.980304],[129.98707,42.977678],[129.939642,43.01225],[129.899606,43.002187],[129.85957,42.966295],[129.858338,42.964544],[129.839244,42.879983],[129.835549,42.866828],[129.821382,42.854109],[129.816454,42.851039],[129.7641,42.716227],[129.764716,42.713149],[129.776418,42.69908],[129.794281,42.684127],[129.741926,42.580681],[129.748701,42.470884],[129.704354,42.427176],[129.612579,42.436892],[129.601492,42.42276],[129.546057,42.361336],[129.452434,42.440866],[129.344029,42.451462],[129.239935,42.36841],[129.231928,42.36001],[129.260261,42.335689],[129.183269,42.262225],[129.215914,42.20818],[129.120443,42.142111],[128.954755,42.083966],[128.930734,42.014211],[128.737945,42.050209],[128.70222,42.020434],[128.60675,42.030212],[128.569177,41.996426],[128.466316,42.020878],[128.090593,42.022656],[128.033926,42.000428],[128.106607,41.950164],[128.112766,41.79378],[128.171897,41.713882],[128.278454,41.658922],[128.317258,41.593177],[128.242114,41.501827],[128.203309,41.411246],[128.113998,41.364561],[127.932296,41.446686],[127.850376,41.422912],[127.636645,41.41349],[127.547334,41.477176],[127.40998,41.463278],[127.294183,41.48659],[127.283096,41.513925],[127.115561,41.540353],[127.179618,41.599888],[127.039184,41.671884],[127.051503,41.744693],[126.943714,41.772365],[126.931395,41.812959],[126.808207,41.748264],[126.798968,41.697354],[126.726903,41.751389],[126.688099,41.674119],[126.608643,41.670543],[126.569838,41.621809],[126.497158,41.406758],[126.539041,41.366806],[126.435564,41.351088],[126.322847,41.231054],[126.293282,41.17073],[126.157775,41.091413],[126.031507,40.927067],[125.959442,40.881845],[125.875059,40.90853],[125.817161,40.866915],[125.785132,40.895867],[125.707523,40.866915]]]},"properties":{"id":5,"adcode":220000,"name":"吉林","cp":[126.1746,43.5938],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[121.970004,30.789217],[121.943518,30.77688],[121.904714,30.814399],[121.601056,30.805149],[121.426129,30.730089],[121.362071,30.679673],[121.274608,30.677615],[121.217942,30.785105],[121.123087,30.778936],[121.097218,30.85704],[120.989428,30.833924],[120.991892,31.00793],[120.901349,31.017673],[120.881023,31.134513],[121.076892,31.158581],[121.063341,31.268088],[121.150188,31.275247],[121.106457,31.364697],[121.173594,31.448956],[121.25613,31.478047],[121.302325,31.498966],[121.343593,31.512229],[121.520984,31.394835],[121.713773,31.308992],[121.946598,31.065861],[121.990945,30.968434],[121.970004,30.789217]]],[[[121.371926,31.553028],[121.145261,31.753699],[121.200079,31.835066],[121.323267,31.86861],[121.43352,31.768452],[121.715005,31.673788],[121.974931,31.617249],[121.995873,31.493354],[121.890547,31.428537],[121.819098,31.438237],[121.547469,31.531101],[121.434136,31.59024],[121.371926,31.553028]]],[[[121.74149,31.345792],[121.509897,31.482639],[121.742106,31.407091],[121.74149,31.345792]]],[[[121.844352,31.294678],[121.792613,31.377468],[121.914569,31.343236],[121.844352,31.294678]]],[[[121.943518,31.215397],[122.008808,31.221026],[121.995873,31.160629],[121.943518,31.215397]]]]},"properties":{"id":6,"adcode":310000,"name":"上海","cp":[121.438732,31.072508],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[121.974931,31.617249],[121.715005,31.673788],[121.43352,31.768452],[121.323267,31.86861],[121.200079,31.835066],[121.145261,31.753699],[121.371926,31.553028],[121.343593,31.512229],[121.302325,31.498966],[121.25613,31.478047],[121.173594,31.448956],[121.106457,31.364697],[121.150188,31.275247],[121.063341,31.268088],[121.076892,31.158581],[120.881023,31.134513],[120.901349,31.017673],[120.698089,30.970999],[120.713487,30.885286],[120.589068,30.854472],[120.504684,30.757858],[120.423996,30.900689],[120.35809,30.88734],[120.371025,30.948424],[120.226279,30.926356],[120.13512,30.941752],[120.001461,31.026902],[119.919542,31.170868],[119.678093,31.168308],[119.623891,31.130416],[119.460051,31.156533],[119.388602,31.194415],[119.379979,31.269622],[119.267878,31.250698],[119.199508,31.293655],[119.075089,31.232282],[118.781286,31.239956],[118.728931,31.281384],[118.745561,31.37287],[118.853967,31.39841],[118.876756,31.532631],[118.873061,31.53569],[118.858278,31.624382],[118.804691,31.618268],[118.77451,31.682444],[118.736938,31.634061],[118.643931,31.65138],[118.697518,31.709935],[118.638388,31.759295],[118.552772,31.729275],[118.481939,31.778117],[118.504729,31.841674],[118.363679,31.930581],[118.400019,32.077724],[118.499801,32.1203],[118.522591,32.188178],[118.642083,32.208937],[118.69567,32.31721],[118.69259,32.463224],[118.592192,32.481396],[118.563859,32.56363],[118.719076,32.614042],[118.92172,32.557074],[118.922336,32.557074],[118.92172,32.557074],[118.922336,32.557074],[118.978386,32.504106],[119.041212,32.515207],[119.084944,32.452622],[119.22045,32.57674],[119.184726,32.825465],[119.104038,32.82647],[118.995017,32.958604],[118.849039,32.956596],[118.811467,32.854622],[118.74125,32.850601],[118.756648,32.737433],[118.707373,32.720319],[118.375382,32.718809],[118.250346,32.84859],[118.2331,32.914414],[118.293462,32.947056],[118.244803,32.998256],[118.221397,33.182228],[118.038463,33.134642],[117.939297,33.262813],[117.971941,33.277821],[118.050782,33.492148],[118.108064,33.475181],[118.112376,33.617302],[118.16781,33.66313],[118.116071,33.767645],[117.901724,33.719883],[117.805638,33.736304],[117.752667,33.711422],[117.758826,33.885445],[117.715095,33.879485],[117.629479,34.028872],[117.575892,33.982744],[117.514914,34.061097],[117.410205,34.026888],[117.352922,34.089842],[117.192778,34.068532],[117.025243,34.167106],[117.04988,34.242321],[116.971656,34.279409],[116.969192,34.387613],[116.828142,34.389094],[116.774555,34.452764],[116.574991,34.488773],[116.595933,34.510469],[116.491839,34.57109],[116.429629,34.652834],[116.374195,34.640036],[116.408071,34.85095],[116.445028,34.89562],[116.677853,34.939285],[116.821983,34.929475],[116.966728,34.875497],[117.000605,34.793482],[117.088069,34.702039],[117.07575,34.637575],[117.137344,34.633144],[117.175532,34.47003],[117.242669,34.445856],[117.301184,34.557294],[117.322125,34.566656],[117.32151,34.566656],[117.322125,34.574046],[117.402813,34.569612],[117.465023,34.484827],[117.592523,34.462631],[117.684298,34.547439],[117.801942,34.51885],[117.793935,34.65185],[117.902956,34.644467],[117.951615,34.678424],[118.084042,34.655788],[118.079115,34.569612],[118.185056,34.543989],[118.132702,34.483348],[118.177665,34.453257],[118.179513,34.379218],[118.290382,34.424637],[118.404947,34.427598],[118.440671,34.527724],[118.424657,34.595228],[118.460997,34.65628],[118.601431,34.714336],[118.690127,34.678424],[118.783749,34.723188],[118.719076,34.745315],[118.772047,34.794464],[118.860742,34.94419],[118.865053,35.029974],[118.928495,35.051039],[119.114509,35.054958],[119.137915,35.09609],[119.286972,35.11518],[119.306066,35.076506],[119.238929,35.04908],[119.202588,34.890222],[119.238313,34.799378],[119.378747,34.764487],[119.459435,34.770876],[119.50871,34.729089],[119.465594,34.673012],[119.582623,34.598676],[119.781571,34.515892],[119.811752,34.48532],[119.962657,34.458684],[120.311895,34.307091],[120.367329,34.091328],[120.583524,33.668608],[120.651277,33.575937],[120.741205,33.337826],[120.821893,33.298327],[120.90566,33.030366],[120.929682,32.876232],[120.974646,32.874724],[120.966638,32.770141],[120.900733,32.72334],[120.916131,32.642261],[121.153268,32.529333],[121.352216,32.47433],[121.425513,32.430909],[121.472941,32.138034],[121.524063,32.137528],[121.759352,32.059471],[121.856055,31.95546],[121.970004,31.719096],[121.974931,31.617249]]]},"properties":{"id":7,"adcode":320000,"name":"江苏","cp":[119.8586,32.915],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[113.94185,29.047374],[113.952321,29.092871],[114.061959,29.204176],[114.252284,29.234985],[114.259059,29.344049],[114.519602,29.325271],[114.660652,29.393585],[114.759818,29.363345],[114.931049,29.422252],[114.860216,29.475917],[114.940904,29.494147],[115.00065,29.572235],[115.154019,29.51029],[115.142316,29.651822],[115.359127,29.646623],[115.471844,29.742777],[115.511264,29.839877],[115.667712,29.850257],[115.837096,29.748491],[115.965827,29.724593],[116.13521,29.819634],[116.207891,29.82742],[116.26271,29.782251],[116.473361,29.89747],[116.552201,29.909918],[116.586078,30.046226],[116.666766,30.076779],[116.747454,30.057101],[116.83307,29.957621],[116.900207,29.949326],[116.882961,29.89332],[116.789954,29.795233],[116.684012,29.72823],[116.677237,29.66898],[116.651983,29.637262],[116.780715,29.570153],[117.112706,29.712121],[117.136728,29.7755],[117.073286,29.832092],[117.17738,29.921846],[117.246365,29.915104],[117.29256,29.822749],[117.384335,29.84351],[117.455168,29.749011],[117.453936,29.688214],[117.532161,29.651822],[117.545711,29.594089],[117.647957,29.614897],[117.707703,29.548815],[117.807486,29.573796],[117.872775,29.547774],[118.008282,29.578479],[118.134549,29.508728],[118.136397,29.419125],[118.193064,29.395149],[118.20723,29.346135],[118.136397,29.284052],[118.077883,29.290836],[118.027992,29.168132],[118.037847,29.097054],[118.111144,28.997671],[118.270056,28.918619],[118.306396,28.823782],[118.379077,28.785509],[118.431432,28.679528],[118.423425,28.587626],[118.421577,28.541908],[118.421577,28.540331],[118.425273,28.537177],[118.426505,28.532447],[118.425273,28.537177],[118.426505,28.532447],[118.472084,28.482497],[118.432048,28.402003],[118.486867,28.328821],[118.433896,28.288786],[118.314404,28.22238],[118.37415,28.188106],[118.356288,28.091555],[118.155491,28.061992],[118.096977,27.96744],[117.999043,27.991218],[117.856145,27.945772],[117.78716,27.896076],[117.740348,27.800321],[117.608537,27.863814],[117.52169,27.982236],[117.341836,27.855879],[117.27901,27.870161],[117.296872,27.764854],[117.204481,27.683819],[117.118865,27.694416],[117.096692,27.626582],[117.040641,27.670043],[117.01662,27.563481],[117.084989,27.564011],[117.133032,27.4223],[117.100387,27.338886],[117.171836,27.290509],[117.043721,27.139928],[117.05296,27.100519],[116.910062,27.034453],[116.679085,26.978479],[116.548506,26.839758],[116.557745,26.774073],[116.516477,26.69071],[116.566368,26.650075],[116.539267,26.559129],[116.610716,26.477216],[116.601476,26.372733],[116.519557,26.410251],[116.412999,26.298197],[116.396985,26.166168],[116.471513,26.175296],[116.489375,26.113529],[116.383434,26.029687],[116.36434,25.960312],[116.258398,25.902736],[116.176478,25.893048],[116.131515,25.82413],[116.18079,25.774571],[116.067457,25.703967],[116.063145,25.563173],[116.005247,25.490284],[116.008327,25.319496],[115.929487,25.234553],[115.855574,25.209654],[115.880212,25.092126],[115.928255,25.050396],[115.873436,25.020038],[115.89253,24.937056],[115.907313,24.880075],[115.822313,24.90884],[115.756408,24.749192],[115.845103,24.563221],[115.688038,24.545261],[115.67264,24.604028],[115.573474,24.617083],[115.556227,24.682883],[115.412714,24.792654],[115.358511,24.735064],[115.308004,24.758429],[115.095505,24.674184],[115.056701,24.703541],[114.909491,24.661679],[114.868839,24.562132],[114.729637,24.608924],[114.704999,24.526211],[114.664963,24.583898],[114.589819,24.537642],[114.534384,24.558867],[114.428443,24.486468],[114.391486,24.562677],[114.308334,24.574104],[114.258443,24.641558],[114.169132,24.689407],[114.27261,24.700279],[114.33482,24.747562],[114.403189,24.877361],[114.395798,24.951161],[114.506051,24.999975],[114.561485,25.077495],[114.640326,25.073702],[114.735796,25.121925],[114.679746,25.194495],[114.743188,25.274597],[114.63663,25.324364],[114.535616,25.41681],[114.381015,25.31571],[114.31511,25.338424],[114.262755,25.29191],[114.13156,25.30922],[114.039785,25.250789],[114.051488,25.348699],[113.94493,25.441667],[113.983118,25.599332],[113.913517,25.701272],[113.971416,25.835979],[114.028082,25.893586],[114.007756,26.007104],[114.044096,26.076452],[114.237501,26.152204],[114.181451,26.214489],[114.088444,26.168316],[113.944314,26.16402],[114.029314,26.266545],[114.030546,26.376485],[114.085364,26.4065],[114.073046,26.480965],[114.106306,26.576254],[113.915365,26.613706],[113.860546,26.663978],[113.834677,26.803983],[113.927068,26.949149],[113.821126,27.037651],[113.779242,27.137265],[113.848844,27.225087],[113.872865,27.385116],[113.616635,27.345264],[113.632033,27.405303],[113.583374,27.524754],[113.607395,27.625522],[113.763228,27.799262],[113.729967,27.887086],[113.752141,27.933614],[113.864242,28.004954],[113.914133,27.991218],[114.047176,28.05724],[113.992357,28.161207],[114.107538,28.182833],[114.25598,28.323554],[114.252284,28.395687],[114.172212,28.432524],[114.218407,28.484601],[114.08598,28.558201],[114.157429,28.761384],[114.152502,28.83479],[114.076741,28.834266],[114.008988,28.955273],[113.966488,28.945326],[113.94185,29.047374]]]},"properties":{"id":8,"adcode":360000,"name":"江西","cp":[115.7156,27.99],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[105.720292,30.252662],[105.624822,30.275917],[105.642684,30.186484],[105.571235,30.17976],[105.56138,30.188035],[105.558916,30.18545],[105.56138,30.183898],[105.574315,30.130611],[105.582938,30.123884],[105.687648,30.038974],[105.753553,30.018254],[105.70243,29.924957],[105.709206,29.840396],[105.619894,29.846624],[105.575547,29.745374],[105.476996,29.674699],[105.38399,29.67002],[105.289751,29.552979],[105.324859,29.448828],[105.380294,29.456643],[105.428337,29.417562],[105.427721,29.316924],[105.518264,29.264219],[105.693807,29.267351],[105.762176,28.991391],[105.88906,28.909716],[105.970364,28.966267],[106.043661,28.954226],[106.048588,28.906573],[106.173008,28.92019],[106.248152,28.829024],[106.304203,28.650653],[106.37442,28.525613],[106.330688,28.481971],[106.2925,28.537177],[106.103407,28.636476],[105.966668,28.76086],[105.891524,28.672179],[105.884748,28.594981],[105.749242,28.614943],[105.683952,28.535601],[105.62359,28.518253],[105.639604,28.32408],[105.730147,28.271925],[105.826234,28.304064],[105.88906,28.238722],[105.860111,28.165955],[105.975907,28.107917],[106.126812,28.16701],[106.206885,28.134302],[106.328225,27.952643],[106.304819,27.899249],[106.343007,27.821489],[106.193334,27.754265],[106.120653,27.779677],[106.023335,27.746851],[105.78435,27.719312],[105.62359,27.666333],[105.605112,27.715605],[105.508409,27.769089],[105.353809,27.74897],[105.308229,27.705011],[105.273736,27.795028],[105.308229,27.810376],[105.244171,27.823077],[105.233084,27.895547],[105.284823,27.935729],[105.270657,27.99703],[105.186273,27.995445],[105.186889,28.0546],[105.05939,28.097889],[104.872144,27.905594],[104.743413,27.901892],[104.573413,27.840537],[104.40095,27.952114],[104.354139,28.019744],[104.44653,28.112666],[104.44961,28.269817],[104.384936,28.329874],[104.314103,28.306698],[104.254357,28.408844],[104.261748,28.537177],[104.318415,28.538229],[104.425588,28.626497],[104.314719,28.615468],[104.12501,28.637526],[103.940844,28.606013],[103.844757,28.660104],[103.838598,28.587101],[103.781931,28.525613],[103.877402,28.311966],[103.721569,28.201817],[103.639649,28.261912],[103.573128,28.230815],[103.471498,28.123221],[103.430846,28.044039],[103.488128,28.03242],[103.515846,27.965326],[103.487512,27.795028],[103.29226,27.632943],[103.295955,27.568785],[103.222043,27.566133],[103.111789,27.401054],[102.989833,27.368114],[102.941174,27.405303],[102.882044,27.293168],[102.913457,27.133538],[102.870957,27.026992],[102.898674,26.908073],[102.991681,26.775675],[103.018783,26.593911],[103.056971,26.525943],[102.989833,26.483108],[102.998457,26.371661],[102.739762,26.268691],[102.674473,26.205363],[102.60056,26.250448],[102.638748,26.307852],[102.567915,26.36362],[102.392372,26.296588],[102.349257,26.244545],[102.245163,26.212341],[102.107808,26.068391],[102.005562,26.091499],[101.917483,26.108156],[101.86328,26.052266],[101.799223,26.109231],[101.807846,26.156501],[101.690202,26.241861],[101.630455,26.224687],[101.586724,26.279422],[101.660636,26.346999],[101.636615,26.395245],[101.506652,26.499708],[101.458608,26.495424],[101.400094,26.605146],[101.451833,26.600867],[101.453065,26.692848],[101.512195,26.756443],[101.389623,26.723314],[101.357594,26.770868],[101.399478,26.841893],[101.267667,26.902737],[101.264587,26.955549],[101.136472,27.023794],[101.170349,27.195821],[101.057016,27.20061],[101.021907,27.332508],[100.936908,27.469026],[100.848212,27.670573],[100.782307,27.691767],[100.707162,27.80085],[100.681293,27.923041],[100.633866,27.915111],[100.54517,27.809318],[100.442924,27.866459],[100.327744,27.720372],[100.295099,27.869633],[100.210715,27.877037],[100.196549,27.936257],[100.086296,28.030836],[100.033941,28.184942],[100.157129,28.210254],[100.176223,28.324607],[100.054267,28.376737],[100.073977,28.42621],[99.990209,28.476712],[99.987129,28.524561],[99.793724,28.699473],[99.733362,28.719415],[99.717964,28.846321],[99.625573,28.814871],[99.615718,28.741975],[99.532566,28.681628],[99.463581,28.549266],[99.403219,28.546638],[99.437095,28.398318],[99.374886,28.181778],[99.306516,28.227652],[99.280647,28.298269],[99.174705,28.402003],[99.183944,28.588677],[99.126662,28.699473],[99.103872,28.842128],[99.132206,28.948467],[99.113727,29.221409],[99.075539,29.314316],[99.052133,29.563908],[98.993003,29.656502],[99.0238,29.846105],[99.068148,29.93118],[99.044742,30.079885],[98.989308,30.151826],[98.907388,30.698196],[98.957895,30.765056],[98.901844,30.785105],[98.774345,30.907877],[98.806374,30.995621],[98.736772,31.049459],[98.709671,31.118635],[98.602498,31.192367],[98.64007,31.337615],[98.691809,31.333016],[98.773113,31.249163],[98.88583,31.376446],[98.837787,31.436705],[98.713367,31.510189],[98.553839,31.656473],[98.543983,31.718588],[98.414636,31.832525],[98.434962,32.007734],[98.301919,32.12334],[98.218768,32.234752],[98.218768,32.342489],[97.937283,32.484425],[97.730944,32.527315],[97.543698,32.621602],[97.42359,32.704713],[97.386018,32.779196],[97.373699,32.956094],[97.523988,32.988721],[97.542466,33.036385],[97.487648,33.10658],[97.487648,33.168205],[97.576343,33.221779],[97.621306,33.334327],[97.676125,33.340825],[97.753733,33.410277],[97.625618,33.461705],[97.552321,33.465698],[97.52522,33.575937],[97.415583,33.605343],[97.435293,33.680558],[97.388481,33.884452],[97.458698,33.886935],[97.660111,33.956444],[97.70261,34.036805],[97.665654,34.126997],[97.834421,34.208186],[97.937283,34.196804],[98.051848,34.115604],[98.21076,34.078444],[98.401702,34.08786],[98.440506,33.981255],[98.406629,33.867065],[98.462064,33.849178],[98.539056,33.746752],[98.6567,33.647193],[98.61728,33.63723],[98.648077,33.549014],[98.742316,33.477677],[98.734309,33.409278],[98.779272,33.37181],[98.759562,33.277321],[98.858728,33.150674],[99.002242,33.08252],[99.179633,33.044912],[99.235067,32.982197],[99.268328,32.878744],[99.385973,32.900349],[99.558436,32.839039],[99.607711,32.780705],[99.763543,32.778693],[99.788181,32.956596],[99.854086,32.945048],[99.877492,33.045915],[99.956332,32.948061],[100.038252,32.928979],[100.123252,32.837028],[100.139266,32.724346],[100.088143,32.668959],[100.208252,32.606482],[100.258759,32.742466],[100.339447,32.719313],[100.399809,32.756556],[100.516837,32.630168],[100.54517,32.569681],[100.645568,32.526306],[100.690532,32.678025],[100.93198,32.600433],[101.075494,32.683061],[101.157414,32.661404],[101.22332,32.725856],[101.237486,32.824962],[101.124153,32.909893],[101.129081,32.989725],[101.183899,32.984204],[101.169733,33.100566],[101.11553,33.194746],[101.183283,33.270317],[101.297232,33.262313],[101.393935,33.157687],[101.405022,33.225783],[101.486326,33.227285],[101.625528,33.100566],[101.739477,33.265815],[101.64955,33.323328],[101.695745,33.433748],[101.769658,33.447728],[101.769042,33.538541],[101.844186,33.602353],[101.907012,33.542032],[101.9452,33.437742],[101.885454,33.380804],[101.878063,33.315829],[101.769658,33.268816],[101.841723,33.184731],[101.865744,33.103072],[101.935345,33.186734],[102.08933,33.204759],[102.112736,33.287324],[102.217446,33.248303],[102.186649,33.332327],[102.264873,33.417269],[102.396684,33.40678],[102.462589,33.449724],[102.440416,33.57494],[102.33817,33.614313],[102.342481,33.725357],[102.299981,33.782566],[102.239619,33.788036],[102.234076,33.870046],[102.136142,33.965377],[102.237772,33.963392],[102.315996,33.994154],[102.391756,33.970836],[102.437336,34.087364],[102.471213,34.072993],[102.655994,34.113623],[102.599328,34.145321],[102.798276,34.272982],[102.911609,34.313022],[102.978747,34.249246],[102.973203,34.205217],[103.124108,34.16166],[103.178927,34.079931],[103.119797,34.034822],[103.124108,33.968354],[103.181391,33.900842],[103.153057,33.814884],[103.279325,33.806433],[103.349542,33.74327],[103.525085,33.798975],[103.520157,33.678566],[103.626099,33.727347],[103.778236,33.658648],[103.871243,33.68255],[104.046169,33.686533],[104.168741,33.611821],[104.155191,33.542531],[104.22048,33.404782],[104.292545,33.336326],[104.432979,33.325828],[104.303632,33.304328],[104.378161,33.109086],[104.337509,33.038392],[104.426204,33.0108],[104.378161,32.953081],[104.288234,32.94304],[104.294393,32.83552],[104.363994,32.822448],[104.458849,32.748504],[104.582653,32.722333],[104.643015,32.661908],[104.739717,32.635711],[104.845659,32.653848],[104.881999,32.600938],[105.026745,32.650322],[105.111128,32.59388],[105.347033,32.682558],[105.455439,32.737433],[105.391381,32.835017],[105.414171,32.921948],[105.49917,32.911902],[105.563844,32.72485],[105.596489,32.699175],[105.719061,32.759575],[105.822538,32.770141],[105.825002,32.824962],[106.025798,32.85814],[106.093552,32.823956],[106.07261,32.764103],[106.076305,32.753537],[106.17424,32.697664],[106.347935,32.670974],[106.421231,32.616562],[106.585687,32.688097],[106.663296,32.690615],[106.733513,32.739446],[106.82344,32.705217],[107.066736,32.708741],[107.108004,32.600938],[107.080286,32.542448],[107.127098,32.482406],[107.263836,32.403129],[107.313727,32.489976],[107.382097,32.54043],[107.436299,32.529837],[107.456625,32.417778],[107.533002,32.383426],[107.680211,32.398078],[107.707929,32.331873],[107.75474,32.338445],[107.812022,32.24791],[107.979558,32.14614],[108.070717,32.233234],[108.179122,32.222099],[108.251187,32.273208],[108.312781,32.232222],[108.46923,32.270173],[108.509882,32.201343],[108.369447,32.173493],[108.447672,32.07164],[108.373759,32.077217],[108.259194,31.966628],[108.343578,31.860987],[108.535135,31.757769],[108.517889,31.665131],[108.391621,31.593298],[108.34173,31.509679],[108.191441,31.492333],[108.216079,31.410666],[108.153869,31.371338],[108.185898,31.337104],[108.095354,31.268088],[108.083652,31.185713],[108.009123,31.10839],[108.053471,31.040745],[107.943833,30.989466],[107.994956,30.90839],[107.85329,30.793842],[107.763979,30.816968],[107.739957,30.884259],[107.645103,30.821079],[107.514524,30.854986],[107.424597,30.740889],[107.516987,30.644675],[107.359923,30.456087],[107.221337,30.213891],[107.058113,30.043118],[107.053801,30.043636],[106.981736,30.085062],[106.980504,30.087651],[106.980504,30.085062],[106.978041,30.087133],[106.978041,30.087651],[106.978041,30.087133],[106.978041,30.087651],[106.978041,30.087133],[106.976193,30.083509],[106.976193,30.087651],[106.974345,30.082992],[106.913367,30.025506],[106.825904,30.031205],[106.726121,30.033277],[106.677462,30.157],[106.611557,30.235605],[106.612173,30.235605],[106.611557,30.235605],[106.612173,30.235605],[106.612789,30.235605],[106.610941,30.292451],[106.451412,30.307949],[106.428623,30.254729],[106.262935,30.211306],[106.261703,30.205101],[106.260471,30.204067],[106.256776,30.19631],[106.180399,30.23302],[106.17116,30.306399],[106.10587,30.310531],[106.031958,30.373529],[105.881053,30.387465],[105.792357,30.427199],[105.714749,30.322927],[105.720292,30.252662]],[[106.262935,30.211306],[106.256776,30.19631],[106.260471,30.204067],[106.261703,30.205101],[106.262935,30.211306]]],[[[105.571235,30.17976],[105.56138,30.183898],[105.558916,30.18545],[105.56138,30.188035],[105.571235,30.17976]]],[[[106.980504,30.085062],[106.976193,30.083509],[106.978041,30.087133],[106.980504,30.085062]]],[[[106.976193,30.083509],[106.974345,30.082992],[106.976193,30.087651],[106.976193,30.083509]]],[[[106.981736,30.085062],[106.980504,30.085062],[106.980504,30.087651],[106.981736,30.085062]]]]},"properties":{"id":11,"adcode":510000,"name":"四川","cp":[102.9199,30.1904],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[105.542902,23.18449],[105.445584,23.292797],[105.372903,23.317525],[105.325475,23.390034],[105.238012,23.264217],[105.093266,23.260919],[104.886311,23.169088],[104.804391,23.110218],[104.860441,22.970917],[104.737869,22.825957],[104.579573,22.84636],[104.375697,22.690228],[104.272219,22.738245],[104.274067,22.828163],[104.117618,22.808861],[104.045553,22.728312],[104.009213,22.51789],[103.964249,22.502966],[103.825047,22.615685],[103.642113,22.795071],[103.566969,22.698508],[103.53494,22.594143],[103.436389,22.697404],[103.441317,22.753144],[103.323057,22.807758],[103.283021,22.678635],[103.195557,22.648268],[103.183854,22.557679],[103.081608,22.506835],[103.079761,22.448784],[102.930703,22.482512],[102.880196,22.586961],[102.688639,22.700164],[102.603024,22.731623],[102.570379,22.700164],[102.510633,22.774661],[102.384365,22.679739],[102.420706,22.636119],[102.322771,22.554364],[102.25625,22.457631],[102.270416,22.419472],[102.046214,22.457631],[101.907628,22.43717],[101.862665,22.389048],[101.76473,22.506282],[101.672339,22.474772],[101.625528,22.282789],[101.547304,22.237936],[101.596579,22.160933],[101.573789,22.114933],[101.626144,22.006247],[101.606434,21.967965],[101.701288,21.938553],[101.777049,21.826954],[101.747484,21.730276],[101.780129,21.640763],[101.754875,21.585137],[101.745636,21.29721],[101.833715,21.252606],[101.76473,21.147733],[101.672339,21.195158],[101.605818,21.172285],[101.604586,21.229741],[101.532521,21.252606],[101.387775,21.225837],[101.290457,21.178422],[101.222088,21.234203],[101.244877,21.302227],[101.142631,21.409218],[101.194986,21.425372],[101.209153,21.557316],[101.117378,21.689141],[101.123537,21.771956],[101.015132,21.70693],[100.870386,21.672461],[100.730568,21.518914],[100.558105,21.450434],[100.48296,21.459343],[100.437381,21.532829],[100.351765,21.52949],[100.247056,21.463798],[100.199628,21.512791],[100.126948,21.508338],[100.107853,21.585137],[100.169447,21.663564],[100.095535,21.704151],[99.991441,21.703595],[99.944014,21.821955],[99.999448,21.970184],[99.972347,22.052837],[99.871333,22.0667],[99.870101,22.029544],[99.486987,22.12879],[99.400139,22.099966],[99.220901,22.111053],[99.156227,22.160933],[99.235683,22.250673],[99.282495,22.401219],[99.381661,22.503519],[99.385973,22.57094],[99.31514,22.737693],[99.385973,22.761972],[99.457421,22.84636],[99.456806,22.932901],[99.563363,22.925737],[99.517168,23.006719],[99.528255,23.065635],[99.3484,23.128927],[99.255393,23.077746],[99.106336,23.086552],[98.889525,23.209238],[98.936953,23.309833],[98.872279,23.484456],[98.826084,23.470187],[98.808221,23.547549],[98.877823,23.59197],[98.786048,23.781551],[98.669019,23.800713],[98.701664,23.834103],[98.701048,23.946251],[98.899996,24.109102],[98.875975,24.150056],[98.716446,24.12767],[98.611737,24.08507],[98.550759,24.125485],[98.360434,24.097087],[98.225543,24.113471],[98.110978,24.092171],[97.902175,24.01404],[97.894168,23.973589],[97.769748,23.933126],[97.711234,23.861465],[97.5283,23.926563],[97.634241,24.046828],[97.730944,24.113471],[97.729712,24.227013],[97.767284,24.258656],[97.658879,24.326279],[97.716161,24.358987],[97.669966,24.452703],[97.531995,24.43146],[97.570799,24.602396],[97.570183,24.766579],[97.701379,24.842617],[97.764204,24.824155],[97.785762,24.875733],[97.716777,24.978283],[97.839349,25.27081],[97.914494,25.211278],[98.014892,25.305433],[98.06971,25.311924],[98.15779,25.457334],[98.131304,25.510266],[98.189818,25.569111],[98.170724,25.620374],[98.247717,25.607965],[98.314854,25.543201],[98.402317,25.593936],[98.457752,25.68294],[98.476846,25.777265],[98.553839,25.845672],[98.640686,25.798815],[98.704744,25.852133],[98.686881,25.925877],[98.614201,25.968919],[98.575396,26.118364],[98.634527,26.145759],[98.662244,26.0872],[98.735541,26.183351],[98.672715,26.240251],[98.733693,26.350753],[98.753403,26.559129],[98.781736,26.62066],[98.746012,26.697125],[98.757098,26.87819],[98.732461,27.002472],[98.765722,27.050973],[98.712135,27.077081],[98.696121,27.211253],[98.734309,27.35111],[98.706591,27.362269],[98.674563,27.582044],[98.583404,27.571437],[98.444201,27.665274],[98.429419,27.548628],[98.317318,27.519448],[98.278514,27.659974],[98.234166,27.690707],[98.222463,27.812493],[98.169492,27.851118],[98.205217,27.88973],[98.133152,27.99069],[98.160253,28.101056],[98.139311,28.142216],[98.168876,28.204454],[98.266195,28.24083],[98.208913,28.35831],[98.301303,28.384633],[98.37768,28.246101],[98.389383,28.114777],[98.428803,28.10475],[98.559382,28.182833],[98.626519,28.165427],[98.712135,28.229233],[98.752787,28.333561],[98.677026,28.463563],[98.627751,28.487756],[98.638222,28.55242],[98.594491,28.667979],[98.683802,28.739877],[98.652389,28.816968],[98.657932,28.93014],[98.765722,29.006044],[98.815613,28.948991],[98.828547,28.820113],[98.912931,28.800715],[98.972677,28.832693],[98.917243,28.888239],[98.925866,28.978306],[99.009018,29.031158],[98.967134,29.128418],[98.976373,29.204698],[99.113727,29.221409],[99.132206,28.948467],[99.103872,28.842128],[99.126662,28.699473],[99.183944,28.588677],[99.174705,28.402003],[99.280647,28.298269],[99.306516,28.227652],[99.374886,28.181778],[99.437095,28.398318],[99.403219,28.546638],[99.463581,28.549266],[99.532566,28.681628],[99.615718,28.741975],[99.625573,28.814871],[99.717964,28.846321],[99.733362,28.719415],[99.793724,28.699473],[99.987129,28.524561],[99.990209,28.476712],[100.073977,28.42621],[100.054267,28.376737],[100.176223,28.324607],[100.157129,28.210254],[100.033941,28.184942],[100.086296,28.030836],[100.196549,27.936257],[100.210715,27.877037],[100.295099,27.869633],[100.327744,27.720372],[100.442924,27.866459],[100.54517,27.809318],[100.633866,27.915111],[100.681293,27.923041],[100.707162,27.80085],[100.782307,27.691767],[100.848212,27.670573],[100.936908,27.469026],[101.021907,27.332508],[101.057016,27.20061],[101.170349,27.195821],[101.136472,27.023794],[101.264587,26.955549],[101.267667,26.902737],[101.399478,26.841893],[101.357594,26.770868],[101.389623,26.723314],[101.512195,26.756443],[101.453065,26.692848],[101.451833,26.600867],[101.400094,26.605146],[101.458608,26.495424],[101.506652,26.499708],[101.636615,26.395245],[101.660636,26.346999],[101.586724,26.279422],[101.630455,26.224687],[101.690202,26.241861],[101.807846,26.156501],[101.799223,26.109231],[101.86328,26.052266],[101.917483,26.108156],[102.005562,26.091499],[102.107808,26.068391],[102.245163,26.212341],[102.349257,26.244545],[102.392372,26.296588],[102.567915,26.36362],[102.638748,26.307852],[102.60056,26.250448],[102.674473,26.205363],[102.739762,26.268691],[102.998457,26.371661],[102.989833,26.483108],[103.056971,26.525943],[103.018783,26.593911],[102.991681,26.775675],[102.898674,26.908073],[102.870957,27.026992],[102.913457,27.133538],[102.882044,27.293168],[102.941174,27.405303],[102.989833,27.368114],[103.111789,27.401054],[103.222043,27.566133],[103.295955,27.568785],[103.29226,27.632943],[103.487512,27.795028],[103.515846,27.965326],[103.488128,28.03242],[103.430846,28.044039],[103.471498,28.123221],[103.573128,28.230815],[103.639649,28.261912],[103.721569,28.201817],[103.877402,28.311966],[103.781931,28.525613],[103.838598,28.587101],[103.844757,28.660104],[103.940844,28.606013],[104.12501,28.637526],[104.314719,28.615468],[104.425588,28.626497],[104.318415,28.538229],[104.261748,28.537177],[104.254357,28.408844],[104.314103,28.306698],[104.384936,28.329874],[104.44961,28.269817],[104.44653,28.112666],[104.354139,28.019744],[104.40095,27.952114],[104.573413,27.840537],[104.743413,27.901892],[104.872144,27.905594],[105.05939,28.097889],[105.186889,28.0546],[105.186273,27.995445],[105.270657,27.99703],[105.284823,27.935729],[105.233084,27.895547],[105.244171,27.823077],[105.308229,27.810376],[105.273736,27.795028],[105.308229,27.705011],[105.305149,27.612799],[105.232469,27.546506],[105.260186,27.514672],[105.184425,27.393085],[105.067397,27.418051],[104.871528,27.291041],[104.808702,27.35483],[104.609754,27.306991],[104.546312,27.330382],[104.497653,27.411677],[104.363378,27.467964],[104.174285,27.262856],[104.113307,27.338354],[104.01722,27.383523],[104.015372,27.429204],[103.932221,27.444072],[103.903271,27.347921],[103.711714,27.14259],[103.624251,27.112237],[103.638418,27.013133],[103.675374,27.051506],[103.77454,26.951815],[103.779468,26.874454],[103.705555,26.794904],[103.773308,26.716901],[103.764685,26.584816],[103.865699,26.512023],[104.052329,26.507204],[104.120082,26.636705],[104.354139,26.621194],[104.421276,26.712091],[104.487798,26.579465],[104.554935,26.590701],[104.683667,26.377557],[104.592508,26.317506],[104.499501,26.070541],[104.414501,25.909733],[104.441602,25.869362],[104.373233,25.731459],[104.328886,25.760561],[104.309791,25.648964],[104.332581,25.598792],[104.420661,25.585301],[104.434827,25.47246],[104.556783,25.524845],[104.543232,25.400597],[104.646094,25.356809],[104.639935,25.298942],[104.816094,25.262152],[104.822869,25.17013],[104.750804,25.215067],[104.667652,25.05961],[104.713232,24.996179],[104.539537,24.813836],[104.529682,24.73126],[104.492109,24.656241],[104.610986,24.376973],[104.70892,24.321372],[104.72863,24.446167],[104.83642,24.446712],[104.979933,24.412937],[105.063085,24.429281],[105.188121,24.346995],[105.164715,24.288109],[105.229389,24.165888],[105.20044,24.105279],[105.260186,24.061033],[105.320548,24.116202],[105.481924,24.018958],[105.529967,24.129308],[105.628518,24.126577],[105.649459,24.033167],[105.704278,24.066497],[105.89214,24.040271],[105.933407,24.123847],[106.04982,24.089986],[106.192102,23.824798],[106.136667,23.795238],[106.157609,23.724048],[106.120653,23.605129],[106.141595,23.569487],[105.999929,23.447683],[105.89214,23.525058],[105.815763,23.506953],[105.699966,23.401566],[105.694423,23.363122],[105.531815,23.248275],[105.542902,23.18449]]]},"properties":{"id":12,"adcode":530000,"name":"云南","cp":[101.0652,24.6807],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[79.039649,34.33427],[79.0107,34.399956],[79.161605,34.441416],[79.229358,34.413778],[79.504683,34.454737],[79.675914,34.451284],[79.801566,34.478909],[79.906892,34.683837],[79.947544,34.820993],[80.034391,34.902],[80.031311,35.034384],[80.118159,35.066222],[80.23026,35.147476],[80.257977,35.20323],[80.362687,35.209096],[80.268448,35.294114],[80.321419,35.386848],[80.412578,35.433663],[80.516672,35.392214],[80.65649,35.394165],[80.689135,35.33903],[80.844351,35.345375],[81.026053,35.312181],[81.031597,35.380506],[81.09935,35.407333],[81.219458,35.319016],[81.362356,35.354647],[81.494167,35.292161],[81.513261,35.235002],[81.675253,35.233536],[81.736847,35.262365],[81.927789,35.271158],[82.05344,35.350255],[82.033114,35.450236],[82.328149,35.559342],[82.336156,35.651284],[82.424852,35.713006],[82.628727,35.692114],[82.731589,35.63767],[82.788872,35.684824],[82.960719,35.671702],[82.998907,35.484348],[83.067892,35.462908],[83.127022,35.398554],[83.242203,35.420011],[83.451006,35.38197],[83.622238,35.335614],[83.677672,35.360991],[83.885244,35.367334],[84.005968,35.422449],[84.095895,35.362943],[84.1618,35.359039],[84.335495,35.414647],[84.45314,35.473141],[84.448828,35.55058],[84.729081,35.613353],[85.053065,35.751862],[85.159006,35.745549],[85.271107,35.788757],[85.372121,35.701346],[85.613569,35.652257],[85.65299,35.731465],[85.811286,35.779049],[85.949256,35.779049],[86.060125,35.846008],[86.132806,35.979271],[86.199944,36.032513],[86.187625,36.131158],[86.392733,36.206992],[86.515305,36.205543],[86.701318,36.245122],[86.746282,36.291916],[86.862078,36.300114],[86.887332,36.262492],[86.996353,36.308793],[87.149106,36.29722],[87.193454,36.349283],[87.306787,36.363739],[87.361605,36.419128],[87.460155,36.409498],[87.470626,36.354102],[87.570409,36.342536],[87.731785,36.384936],[87.949211,36.401312],[87.983088,36.437903],[88.134609,36.427313],[88.241782,36.468704],[88.365586,36.457636],[88.470912,36.482175],[88.573158,36.461005],[88.623665,36.389271],[88.783809,36.291916],[88.802903,36.337717],[88.926091,36.364221],[88.964279,36.318917],[89.10225,36.281305],[89.127503,36.249465],[89.232213,36.295774],[89.287647,36.235954],[89.375727,36.228231],[89.490291,36.150969],[89.711414,36.092972],[89.638117,36.04993],[89.476125,36.021868],[89.418843,36.04606],[89.429929,35.916302],[89.549422,35.858132],[89.801957,35.847948],[89.747138,35.751862],[89.765616,35.599732],[89.700327,35.537435],[89.744058,35.479963],[89.68616,35.414647],[89.497067,35.361479],[89.532175,35.285323],[89.449639,35.226693],[89.513081,35.139158],[89.593153,35.104412],[89.560509,34.938794],[89.654747,34.883351],[89.707102,34.919663],[89.821667,34.902981],[89.867862,34.810677],[89.799493,34.74384],[89.732356,34.732039],[89.72558,34.660709],[89.798877,34.628714],[89.823515,34.455231],[89.801957,34.390575],[89.872174,34.335752],[89.825362,34.293746],[89.818587,34.174037],[89.655979,34.096778],[89.635037,34.0492],[89.691704,33.957933],[89.795181,33.865575],[89.837065,33.869052],[89.933768,33.796986],[89.907282,33.74128],[90.008296,33.688026],[89.984275,33.61232],[90.01076,33.553501],[90.080977,33.530561],[90.092064,33.469691],[90.246665,33.42426],[90.332896,33.310829],[90.405577,33.260311],[90.486881,33.266815],[90.70554,33.135645],[90.805938,33.114599],[91.001807,33.116102],[91.134849,33.073495],[91.262349,33.141156],[91.436044,33.065974],[91.49887,33.109086],[91.58079,33.039395],[91.785281,32.944044],[91.896766,32.907884],[91.955897,32.820437],[92.145606,32.885779],[92.227526,32.820939],[92.198577,32.755046],[92.255243,32.720823],[92.355641,32.764606],[92.63651,32.720319],[92.686401,32.765109],[92.877342,32.697161],[93.019624,32.737433],[93.069515,32.626137],[93.239514,32.662411],[93.385492,32.525297],[93.4631,32.556065],[93.516687,32.475844],[93.618933,32.522775],[93.654657,32.57321],[93.820345,32.549509],[93.861613,32.466253],[93.958931,32.484929],[94.136322,32.433939],[94.196684,32.516216],[94.371611,32.524793],[94.395016,32.594385],[94.53853,32.599425],[94.614291,32.673492],[94.772587,32.555057],[94.80708,32.486444],[94.889616,32.472311],[94.912405,32.415758],[94.985086,32.421819],[95.081789,32.384942],[95.218527,32.397067],[95.261643,32.348049],[95.096571,32.322267],[95.10581,32.259042],[95.241317,32.32075],[95.26965,32.194761],[95.312766,32.148673],[95.406389,32.182102],[95.454432,32.062006],[95.360809,31.959013],[95.439649,31.831508],[95.546823,31.739961],[95.618272,31.783712],[95.779648,31.74912],[95.825227,31.681935],[95.89914,31.817273],[95.982908,31.816765],[96.041422,31.734364],[96.135661,31.702299],[96.160298,31.600943],[96.204646,31.598904],[96.252689,31.69619],[96.176313,31.777608],[96.253921,31.929566],[96.389428,31.919917],[96.468268,31.769978],[96.576057,31.712989],[96.616093,31.736908],[96.775006,31.673788],[96.840295,31.720623],[96.760223,31.856922],[96.81073,31.894521],[96.722651,32.013314],[96.894498,32.013822],[97.008447,32.067076],[97.130403,32.04375],[97.308409,32.074682],[97.264062,32.183621],[97.299786,32.294959],[97.371235,32.273208],[97.424822,32.323278],[97.387865,32.427374],[97.341054,32.441009],[97.388481,32.501583],[97.334895,32.514198],[97.448843,32.586823],[97.472249,32.54497],[97.670582,32.517225],[97.730944,32.527315],[97.937283,32.484425],[98.218768,32.342489],[98.218768,32.234752],[98.301919,32.12334],[98.434962,32.007734],[98.414636,31.832525],[98.543983,31.718588],[98.553839,31.656473],[98.713367,31.510189],[98.837787,31.436705],[98.88583,31.376446],[98.773113,31.249163],[98.691809,31.333016],[98.64007,31.337615],[98.602498,31.192367],[98.709671,31.118635],[98.736772,31.049459],[98.806374,30.995621],[98.774345,30.907877],[98.901844,30.785105],[98.957895,30.765056],[98.907388,30.698196],[98.989308,30.151826],[99.044742,30.079885],[99.068148,29.93118],[99.0238,29.846105],[98.993003,29.656502],[99.052133,29.563908],[99.075539,29.314316],[99.113727,29.221409],[98.976373,29.204698],[98.967134,29.128418],[99.009018,29.031158],[98.925866,28.978306],[98.917243,28.888239],[98.972677,28.832693],[98.912931,28.800715],[98.828547,28.820113],[98.815613,28.948991],[98.765722,29.006044],[98.657932,28.93014],[98.652389,28.816968],[98.683802,28.739877],[98.594491,28.667979],[98.638222,28.55242],[98.627751,28.487756],[98.677026,28.463563],[98.752787,28.333561],[98.712135,28.229233],[98.626519,28.165427],[98.559382,28.182833],[98.428803,28.10475],[98.389383,28.114777],[98.37768,28.246101],[98.301303,28.384633],[98.208913,28.35831],[98.266195,28.24083],[98.168876,28.204454],[98.139311,28.142216],[98.090036,28.195489],[98.03337,28.187052],[98.020435,28.25348],[97.907718,28.363575],[97.801161,28.326714],[97.738335,28.396213],[97.737103,28.465667],[97.68598,28.51983],[97.569567,28.541382],[97.506126,28.471453],[97.485184,28.386212],[97.518445,28.327767],[97.460546,28.268236],[97.42359,28.297742],[97.350909,28.23714],[97.321344,28.054071],[97.413119,28.013406],[97.386634,27.882855],[97.303482,27.913525],[97.062649,27.742615],[97.049099,27.814081],[96.972722,27.861169],[96.849534,27.874393],[96.784245,27.9315],[96.690622,27.948943],[96.572978,28.058296],[96.499681,28.067271],[96.46334,28.143271],[96.398667,28.118471],[96.297037,28.141161],[96.275479,28.228179],[95.989067,28.198126],[95.874502,28.297742],[95.674322,28.254007],[95.371896,28.110028],[95.28628,27.939957],[95.015267,27.828897],[94.88592,27.743145],[94.524979,27.596362],[94.277372,27.580983],[93.970634,27.305396],[93.849294,27.168676],[93.841903,27.045645],[93.56781,26.937948],[93.232739,26.907006],[93.111399,26.880325],[92.909371,26.914475],[92.802813,26.895267],[92.682089,26.948082],[92.57122,26.946482],[92.404916,26.902737],[92.109265,26.854705],[92.124664,26.959815],[92.043976,27.052572],[92.032273,27.168144],[92.125896,27.27296],[92.010715,27.474866],[91.839484,27.489728],[91.753868,27.462656],[91.585101,27.54014],[91.570934,27.650965],[91.642383,27.766442],[91.611586,27.891316],[91.486551,27.937314],[91.464993,28.002841],[91.309776,28.057768],[91.251878,27.970611],[91.162567,27.968497],[91.113292,27.846357],[90.96485,27.900306],[90.96177,27.9537],[90.896481,27.9463],[90.802242,28.040342],[90.701844,28.076246],[90.591591,28.021329],[90.513983,28.061992],[90.384019,28.060936],[90.296556,28.15435],[90.231882,28.144854],[90.124709,28.190743],[90.03355,28.13694],[89.976268,28.189161],[89.906051,28.180723],[89.789638,28.24083],[89.720037,28.170175],[89.605472,28.161735],[89.461958,28.031892],[89.375727,27.875979],[89.238988,27.796616],[89.184786,27.673752],[89.131815,27.633474],[89.163228,27.574619],[89.095474,27.471681],[89.182938,27.373959],[89.077612,27.287319],[89.057286,27.234663],[88.975982,27.217106],[88.911924,27.274024],[88.920548,27.325598],[88.809063,27.405834],[88.770874,27.567724],[88.852178,27.671103],[88.888519,27.846886],[88.842939,28.006539],[88.764099,28.068327],[88.67602,28.068327],[88.645223,28.111083],[88.565151,28.083109],[88.554064,28.027667],[88.478919,28.034005],[88.401311,27.976952],[88.254101,27.939429],[88.156783,27.957928],[88.111819,27.864872],[87.826639,27.927799],[87.727473,27.802967],[87.590119,27.848473],[87.45954,27.82096],[87.420735,27.859053],[87.364069,27.824135],[87.280917,27.845299],[87.227946,27.813022],[87.118309,27.840537],[87.035157,27.9463],[86.935375,27.955285],[86.864542,28.022385],[86.756753,28.032948],[86.700086,28.101583],[86.647732,28.069383],[86.568891,28.103167],[86.514689,27.954757],[86.450015,27.908766],[86.231972,27.97431],[86.19132,28.16701],[86.082915,28.01816],[86.125415,27.923041],[86.053966,27.900306],[85.949256,27.937314],[85.980053,27.984349],[85.901213,28.053543],[85.854402,28.172284],[85.753388,28.227652],[85.720743,28.371999],[85.682555,28.375684],[85.650526,28.283517],[85.526106,28.324607],[85.415853,28.321447],[85.272339,28.282463],[85.209513,28.338827],[85.113427,28.34462],[85.108499,28.461459],[85.189803,28.545062],[85.195963,28.623871],[85.126361,28.675854],[85.05676,28.674279],[84.981616,28.586576],[84.857196,28.56766],[84.698284,28.633325],[84.650856,28.714692],[84.483321,28.735155],[84.408176,28.854182],[84.234481,28.889287],[84.248648,29.030635],[84.194445,29.044759],[84.20738,29.118487],[84.116837,29.286661],[84.002272,29.291358],[83.917273,29.324749],[83.727563,29.244383],[83.656114,29.167088],[83.548941,29.201042],[83.266841,29.571194],[83.12887,29.62374],[83.088834,29.605014],[82.9484,29.704846],[82.830756,29.687694],[82.703872,29.847662],[82.6238,29.834687],[82.560974,29.955547],[82.498148,29.947771],[82.412533,30.012037],[82.246845,30.071601],[82.17786,30.067976],[82.207425,30.143548],[82.114418,30.226816],[82.104563,30.346682],[81.99123,30.322927],[81.872354,30.373012],[81.759021,30.385401],[81.63029,30.446802],[81.566232,30.428747],[81.555761,30.369399],[81.406704,30.40398],[81.427646,30.305366],[81.393769,30.199413],[81.335871,30.150791],[81.269349,30.153378],[81.293371,30.094899],[81.225618,30.005301],[81.131995,30.016181],[81.034677,30.246977],[80.81725,30.321378],[80.719316,30.414816],[80.633084,30.458665],[80.549316,30.448866],[80.322035,30.564338],[80.214245,30.585974],[80.124934,30.558671],[80.04363,30.603485],[79.970333,30.685848],[79.961094,30.771225],[79.890877,30.854986],[79.835443,30.850876],[79.75845,30.93662],[79.668523,30.980233],[79.59769,30.925843],[79.505915,31.027415],[79.427075,31.018186],[79.421531,31.067399],[79.316206,31.017673],[79.33222,30.96946],[79.227511,30.94945],[79.181931,31.015622],[79.0957,30.993057],[79.010084,31.044333],[78.997765,31.159093],[78.865338,31.313082],[78.841933,31.288542],[78.755085,31.3555],[78.792041,31.436195],[78.729832,31.478047],[78.740303,31.532631],[78.845628,31.610115],[78.763092,31.668696],[78.706426,31.778626],[78.654071,31.821849],[78.739687,31.885376],[78.762476,31.946829],[78.599868,32.024982],[78.519796,32.123847],[78.469905,32.127901],[78.430485,32.211975],[78.511173,32.308108],[78.458818,32.379889],[78.472985,32.435454],[78.395377,32.530342],[78.518564,32.605978],[78.628202,32.630168],[78.741534,32.703706],[78.781571,32.607994],[78.760629,32.56363],[78.81052,32.436464],[78.970664,32.331873],[79.005772,32.375341],[79.103091,32.369782],[79.135736,32.472311],[79.252148,32.51672],[79.308199,32.596905],[79.27309,32.678025],[79.301423,32.728877],[79.224431,32.784729],[79.255844,32.942537],[79.162837,33.011804],[79.139431,33.117606],[79.162221,33.166202],[79.072294,33.228286],[79.022403,33.323328],[78.84686,33.421264],[78.74215,33.553501],[78.755085,33.623281],[78.692259,33.676575],[78.779723,33.732323],[78.758165,33.791019],[78.744614,33.980759],[78.656535,34.030359],[78.661462,34.086868],[78.750158,34.092815],[78.793273,34.132445],[78.9257,34.155719],[78.981751,34.318458],[79.039649,34.33427]]]},"properties":{"id":13,"adcode":540000,"name":"西藏","cp":[87.8695,31.6846],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[107.288474,37.00812],[107.268764,37.099324],[107.336517,37.165628],[107.257677,37.337082],[107.284162,37.482036],[107.342061,37.515265],[107.348836,37.608226],[107.484959,37.706279],[107.499125,37.7659],[107.620465,37.775832],[107.65003,37.864688],[107.982022,37.787181],[108.025137,37.649926],[108.134159,37.621971],[108.219158,37.661295],[108.304158,37.638556],[108.440896,37.654663],[108.532671,37.690656],[108.611512,37.65419],[108.777815,37.683554],[108.799989,37.783871],[108.798141,37.93362],[108.82709,37.989285],[108.797525,38.047735],[108.871438,38.027471],[108.938575,37.920877],[109.017416,37.969949],[109.069155,38.091071],[108.963829,38.155085],[108.938575,38.207291],[109.051908,38.432146],[109.178792,38.520675],[109.276726,38.623121],[109.367269,38.627328],[109.338936,38.70161],[109.404226,38.720752],[109.511399,38.833633],[109.549587,38.805662],[109.624116,38.854603],[109.683862,38.935631],[109.665384,38.981691],[109.961035,39.191608],[110.217881,39.28105],[110.146432,39.455434],[110.243751,39.42355],[110.39096,39.31161],[110.434692,39.381016],[110.528315,39.380091],[110.604075,39.277345],[110.702626,39.27364],[110.740198,39.351874],[110.892335,39.509927],[111.134399,39.586513],[111.148566,39.531619],[111.064182,39.400899],[111.125776,39.366678],[111.247732,39.302351],[111.163348,39.152644],[111.138711,39.064897],[110.980414,38.970063],[111.009363,38.847614],[110.880016,38.618446],[110.920052,38.581973],[110.874473,38.453702],[110.77777,38.44105],[110.746973,38.366029],[110.661358,38.308773],[110.57759,38.297035],[110.565887,38.215283],[110.509221,38.192245],[110.501213,38.031713],[110.522771,37.954853],[110.59422,37.921821],[110.663821,37.803256],[110.758676,37.744139],[110.706321,37.705332],[110.796248,37.66319],[110.795017,37.566029],[110.745125,37.450693],[110.644111,37.435017],[110.630561,37.373228],[110.695234,37.34945],[110.690307,37.287115],[110.53509,37.137969],[110.444547,37.007164],[110.382953,37.021975],[110.425453,36.960325],[110.416214,36.790892],[110.447011,36.737687],[110.394656,36.676768],[110.496902,36.582175],[110.503677,36.487948],[110.45933,36.330969],[110.474112,36.248018],[110.447011,36.164495],[110.511684,35.879951],[110.549257,35.877527],[110.57759,35.701346],[110.609619,35.632321],[110.525851,35.44195],[110.477808,35.413672],[110.45009,35.327803],[110.39404,35.271647],[110.325671,35.014785],[110.257301,34.93487],[110.232664,34.803308],[110.241287,34.682361],[110.310272,34.608033],[110.379257,34.600646],[110.360779,34.516878],[110.403279,34.43352],[110.503677,34.337234],[110.426685,34.275454],[110.43962,34.24331],[110.642264,34.16067],[110.590525,34.096778],[110.669365,33.939072],[110.587445,33.887929],[110.782698,33.795494],[110.877552,33.635238],[111.00382,33.578429],[111.02661,33.478675],[111.022914,33.475181],[111.022914,33.474682],[111.02661,33.474183],[110.996429,33.435745],[111.025994,33.330327],[110.984726,33.255308],[110.824582,33.158188],[110.745741,33.147167],[110.702626,33.097057],[110.59422,33.168706],[110.54125,33.255809],[110.468569,33.181226],[110.218497,33.163197],[110.164911,33.209265],[110.031252,33.191742],[109.852013,33.247803],[109.732521,33.231288],[109.619804,33.27532],[109.537268,33.2438],[109.438718,33.152177],[109.576073,33.110088],[109.688174,33.116603],[109.794731,33.066977],[109.76455,32.909391],[109.988752,32.886281],[110.10886,32.82999],[110.159367,32.767122],[110.156903,32.683061],[110.206179,32.633191],[110.153824,32.593376],[110.085454,32.613034],[110.017701,32.546987],[109.910528,32.592872],[109.816905,32.577244],[109.726978,32.608498],[109.631507,32.599929],[109.637051,32.540935],[109.575457,32.506629],[109.502776,32.389489],[109.495385,32.300522],[109.592703,32.219568],[109.621652,32.106617],[109.590855,32.012807],[109.631507,31.962059],[109.584696,31.900617],[109.638282,31.811172],[109.585928,31.726731],[109.281654,31.717061],[109.273646,31.801003],[109.195422,31.817782],[109.164009,31.877247],[108.988466,31.979317],[108.902235,31.984899],[108.734084,32.106617],[108.67249,32.104083],[108.509882,32.201343],[108.46923,32.270173],[108.312781,32.232222],[108.251187,32.273208],[108.179122,32.222099],[108.070717,32.233234],[107.979558,32.14614],[107.812022,32.24791],[107.75474,32.338445],[107.707929,32.331873],[107.680211,32.398078],[107.533002,32.383426],[107.456625,32.417778],[107.436299,32.529837],[107.382097,32.54043],[107.313727,32.489976],[107.263836,32.403129],[107.127098,32.482406],[107.080286,32.542448],[107.108004,32.600938],[107.066736,32.708741],[106.82344,32.705217],[106.733513,32.739446],[106.663296,32.690615],[106.585687,32.688097],[106.421231,32.616562],[106.347935,32.670974],[106.17424,32.697664],[106.076305,32.753537],[106.076305,32.758065],[106.076921,32.764103],[106.07261,32.764103],[106.093552,32.823956],[106.025798,32.85814],[105.825002,32.824962],[105.822538,32.770141],[105.719061,32.759575],[105.596489,32.699175],[105.563844,32.72485],[105.49917,32.911902],[105.590329,32.876734],[105.735691,32.905372],[105.917393,32.993739],[105.930944,33.177721],[105.965436,33.204759],[105.862574,33.234291],[105.74801,33.298827],[105.723372,33.390796],[105.82993,33.382802],[105.842248,33.490152],[105.956197,33.612818],[106.129276,33.604347],[106.187174,33.54652],[106.303587,33.604347],[106.447101,33.613316],[106.456956,33.533055],[106.54134,33.513103],[106.58076,33.575937],[106.539492,33.691013],[106.480362,33.715403],[106.461883,33.789528],[106.493296,33.846197],[106.41076,33.906304],[106.474202,33.970836],[106.501919,34.104706],[106.585071,34.149282],[106.526557,34.291768],[106.663912,34.24331],[106.717498,34.369342],[106.624491,34.410323],[106.610325,34.454244],[106.455108,34.531667],[106.334384,34.517864],[106.314058,34.578973],[106.419384,34.643482],[106.505615,34.74679],[106.575216,34.769893],[106.493296,34.941247],[106.494528,35.005964],[106.5746,35.089236],[106.710723,35.100495],[106.838222,35.079933],[106.901664,35.094621],[107.08275,35.024095],[107.089526,34.976553],[107.189308,34.893166],[107.252134,34.880896],[107.286626,34.931927],[107.523763,34.909851],[107.561951,34.966747],[107.634016,34.950565],[107.804631,34.95694],[107.863761,34.996161],[107.757204,35.076016],[107.686371,35.217895],[107.651878,35.239889],[107.745501,35.311693],[107.867457,35.256014],[108.049159,35.254059],[108.174811,35.305345],[108.2401,35.256014],[108.352817,35.285812],[108.48894,35.275066],[108.614591,35.32878],[108.631222,35.418548],[108.618287,35.556908],[108.539447,35.605569],[108.517273,35.715921],[108.524664,35.839703],[108.498179,35.876072],[108.588722,35.950214],[108.656475,35.952636],[108.712526,36.13889],[108.646004,36.25429],[108.651548,36.384936],[108.618903,36.434052],[108.510498,36.474478],[108.495099,36.422498],[108.407636,36.458117],[108.340498,36.55911],[108.262274,36.549497],[108.194521,36.625405],[108.163724,36.563916],[108.007891,36.61628],[108.004811,36.683006],[107.939522,36.655651],[107.907493,36.751591],[107.720863,36.802391],[107.540393,36.828736],[107.478183,36.908674],[107.310032,36.912501],[107.288474,37.00812]]],[[[106.076305,32.753537],[106.07261,32.764103],[106.076921,32.764103],[106.076305,32.758065],[106.076305,32.753537]]],[[[111.022914,33.474682],[111.022914,33.475181],[111.02661,33.478675],[111.02661,33.474183],[111.022914,33.474682]]]]},"properties":{"id":14,"adcode":610000,"name":"陕西","cp":[108.5996,33.7396],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[91.001807,33.116102],[90.805938,33.114599],[90.70554,33.135645],[90.486881,33.266815],[90.405577,33.260311],[90.332896,33.310829],[90.246665,33.42426],[90.092064,33.469691],[90.080977,33.530561],[90.01076,33.553501],[89.984275,33.61232],[90.008296,33.688026],[89.907282,33.74128],[89.933768,33.796986],[89.837065,33.869052],[89.795181,33.865575],[89.691704,33.957933],[89.635037,34.0492],[89.655979,34.096778],[89.818587,34.174037],[89.825362,34.293746],[89.872174,34.335752],[89.801957,34.390575],[89.823515,34.455231],[89.798877,34.628714],[89.72558,34.660709],[89.732356,34.732039],[89.799493,34.74384],[89.867862,34.810677],[89.821667,34.902981],[89.707102,34.919663],[89.654747,34.883351],[89.560509,34.938794],[89.593153,35.104412],[89.513081,35.139158],[89.449639,35.226693],[89.532175,35.285323],[89.497067,35.361479],[89.68616,35.414647],[89.744058,35.479963],[89.700327,35.537435],[89.765616,35.599732],[89.747138,35.751862],[89.801957,35.847948],[89.549422,35.858132],[89.429929,35.916302],[89.418843,36.04606],[89.476125,36.021868],[89.638117,36.04993],[89.711414,36.092972],[89.941159,36.067343],[89.937463,36.130675],[89.999057,36.169809],[90.028006,36.25815],[90.145651,36.238849],[90.128405,36.208923],[90.234962,36.161597],[90.430215,36.133091],[90.526917,36.148553],[90.66304,36.134058],[90.776373,36.086203],[90.841046,36.01848],[90.922966,36.029126],[90.979017,36.106992],[91.09235,36.088621],[91.124994,36.115693],[91.07264,36.299149],[91.026444,36.323738],[91.05293,36.432608],[91.035683,36.529788],[90.7388,36.58746],[90.720938,36.708912],[90.735105,36.827778],[90.853981,36.915371],[90.983944,36.913458],[91.181045,37.025318],[91.303617,37.01242],[91.280211,37.163721],[91.1909,37.205669],[91.192132,37.27807],[91.134849,37.32614],[91.099741,37.447843],[91.057241,37.483936],[90.958075,37.477763],[90.863836,37.534246],[90.882314,37.575513],[90.776373,37.6504],[90.612027,37.702733],[90.614503,38.204687],[90.589743,38.286401],[90.498131,38.286401],[90.408995,38.237762],[90.352607,38.233615],[90.292625,38.263054],[90.228249,38.393405],[90.238153,38.434263],[90.453563,38.438153],[90.480799,38.469283],[90.463476,38.556711],[90.610685,38.596003],[90.619308,38.664245],[90.831191,38.667982],[91.307928,38.751089],[91.446515,38.813588],[91.87952,38.884417],[91.966368,38.930976],[92.173323,38.960758],[92.263866,39.002153],[92.38459,39.000758],[92.41046,39.038412],[92.489916,39.09973],[92.866871,39.138723],[92.938936,39.169809],[92.978356,39.143364],[93.142196,39.160531],[93.131725,39.108088],[93.198246,39.045847],[93.187286,39.008315],[93.336991,38.985298],[93.523771,38.988497],[93.758195,38.984654],[93.864159,38.937853],[93.905542,38.893765],[93.762583,38.885646],[93.745331,38.859712],[93.750647,38.834893],[93.842545,38.79384],[93.964825,38.770972],[94.053213,38.794211],[94.336242,38.795953],[94.370379,38.762753],[94.511429,38.445268],[94.527443,38.36556],[94.67958,38.387137],[94.810775,38.385261],[94.973999,38.430271],[95.121825,38.417615],[95.261027,38.301261],[95.320157,38.32051],[95.51849,38.295156],[95.702039,38.400736],[95.83693,38.343977],[95.856024,38.284355],[96.063596,38.172962],[96.109175,38.187072],[96.221892,38.148969],[96.313051,38.162142],[96.335841,38.246303],[96.46334,38.27778],[96.665369,38.230325],[96.626564,38.356177],[96.698013,38.422302],[96.6666,38.483684],[96.780549,38.504289],[96.7941,38.60816],[96.975802,38.559519],[97.055874,38.5946],[97.057722,38.672654],[97.009063,38.702544],[96.983809,38.869046],[96.940693,38.907701],[96.969643,39.097873],[97.012142,39.141972],[96.962867,39.198564],[97.220946,39.192999],[97.371235,39.14058],[97.679205,39.010522],[97.701379,38.963085],[97.828878,38.930046],[98.009348,38.859262],[98.094964,38.786077],[98.251412,38.891403],[98.280977,39.027257],[98.383839,39.029581],[98.457752,38.952849],[98.584635,38.930046],[98.743548,39.086728],[98.816845,39.085799],[98.951735,38.987737],[99.1088,38.946334],[99.068764,38.896991],[99.222133,38.788875],[99.361951,38.718418],[99.450646,38.60442],[99.50916,38.608628],[99.555972,38.520207],[99.65945,38.449017],[99.826985,38.370251],[99.937238,38.34163],[100.126332,38.231735],[100.182998,38.221864],[100.157744,38.309712],[100.093071,38.4073],[100.001296,38.466821],[100.064122,38.518802],[100.24028,38.441519],[100.261222,38.366498],[100.318505,38.329428],[100.474953,38.289052],[100.546402,38.246773],[100.619083,38.265567],[100.74843,38.239724],[100.825423,38.158849],[100.93814,38.160261],[100.887633,38.050562],[101.150639,37.876969],[101.362522,37.791437],[101.459224,37.866105],[101.597195,37.828308],[101.659405,37.733256],[101.791832,37.695864],[101.815853,37.65419],[101.946432,37.728051],[102.036359,37.684974],[102.035743,37.627184],[102.130598,37.544684],[102.102881,37.48441],[102.19712,37.420287],[102.428097,37.308534],[102.457662,37.24807],[102.599944,37.174687],[102.642444,37.099801],[102.488459,37.079278],[102.506321,37.019108],[102.450271,36.968453],[102.56114,36.919676],[102.587009,36.869912],[102.704654,36.792329],[102.606719,36.682526],[102.761936,36.568721],[102.769943,36.472072],[102.830305,36.362294],[102.830305,36.358439],[103.024326,36.257185],[103.068058,36.203612],[102.98737,36.193956],[102.941174,36.105058],[102.882044,36.082335],[102.971971,35.995247],[102.955957,35.861041],[102.78411,35.862496],[102.686175,35.772253],[102.808747,35.560315],[102.742226,35.495065],[102.504473,35.583189],[102.447807,35.437563],[102.407155,35.408308],[102.317228,35.433663],[102.279655,35.304857],[102.370814,35.262854],[102.402227,35.191006],[102.310452,35.128883],[102.29567,35.071609],[102.218677,35.058386],[102.094874,34.986848],[102.048062,34.910832],[101.917483,34.875497],[101.919947,34.621821],[102.003715,34.538074],[102.155852,34.507511],[102.210054,34.399462],[102.237772,34.343163],[102.237156,34.343163],[102.237772,34.343163],[102.237156,34.343163],[102.189728,34.355018],[102.149692,34.271993],[102.067772,34.293746],[102.062229,34.227976],[101.965526,34.167601],[101.955055,34.10966],[101.84665,34.150272],[101.736397,34.079931],[101.622448,34.178492],[101.530057,34.21066],[101.331109,34.245289],[101.235022,34.325376],[101.054552,34.322905],[100.986799,34.374774],[100.895024,34.375268],[100.821727,34.317469],[100.764445,34.178987],[100.806329,34.155224],[100.999118,33.889419],[101.153718,33.844706],[101.191907,33.786047],[101.166653,33.660142],[101.238718,33.685039],[101.385312,33.644702],[101.501724,33.70296],[101.582412,33.675081],[101.622448,33.502127],[101.735781,33.49614],[101.769042,33.538541],[101.769658,33.447728],[101.695745,33.433748],[101.64955,33.323328],[101.739477,33.265815],[101.625528,33.100566],[101.486326,33.227285],[101.405022,33.225783],[101.393935,33.157687],[101.297232,33.262313],[101.183283,33.270317],[101.11553,33.194746],[101.169733,33.100566],[101.183899,32.984204],[101.129081,32.989725],[101.124153,32.909893],[101.237486,32.824962],[101.22332,32.725856],[101.157414,32.661404],[101.075494,32.683061],[100.93198,32.600433],[100.690532,32.678025],[100.645568,32.526306],[100.54517,32.569681],[100.516837,32.630168],[100.399809,32.756556],[100.339447,32.719313],[100.258759,32.742466],[100.208252,32.606482],[100.088143,32.668959],[100.139266,32.724346],[100.123252,32.837028],[100.038252,32.928979],[99.956332,32.948061],[99.877492,33.045915],[99.854086,32.945048],[99.788181,32.956596],[99.763543,32.778693],[99.607711,32.780705],[99.558436,32.839039],[99.385973,32.900349],[99.268328,32.878744],[99.235067,32.982197],[99.179633,33.044912],[99.002242,33.08252],[98.858728,33.150674],[98.759562,33.277321],[98.779272,33.37181],[98.734309,33.409278],[98.742316,33.477677],[98.648077,33.549014],[98.61728,33.63723],[98.6567,33.647193],[98.539056,33.746752],[98.462064,33.849178],[98.406629,33.867065],[98.440506,33.981255],[98.401702,34.08786],[98.21076,34.078444],[98.051848,34.115604],[97.937283,34.196804],[97.834421,34.208186],[97.665654,34.126997],[97.70261,34.036805],[97.660111,33.956444],[97.458698,33.886935],[97.388481,33.884452],[97.435293,33.680558],[97.415583,33.605343],[97.52522,33.575937],[97.552321,33.465698],[97.625618,33.461705],[97.753733,33.410277],[97.676125,33.340825],[97.621306,33.334327],[97.576343,33.221779],[97.487648,33.168205],[97.487648,33.10658],[97.542466,33.036385],[97.523988,32.988721],[97.373699,32.956094],[97.386018,32.779196],[97.42359,32.704713],[97.543698,32.621602],[97.730944,32.527315],[97.670582,32.517225],[97.472249,32.54497],[97.448843,32.586823],[97.334895,32.514198],[97.388481,32.501583],[97.341054,32.441009],[97.387865,32.427374],[97.424822,32.323278],[97.371235,32.273208],[97.299786,32.294959],[97.264062,32.183621],[97.308409,32.074682],[97.130403,32.04375],[97.008447,32.067076],[96.894498,32.013822],[96.722651,32.013314],[96.81073,31.894521],[96.760223,31.856922],[96.840295,31.720623],[96.775006,31.673788],[96.616093,31.736908],[96.576057,31.712989],[96.468268,31.769978],[96.389428,31.919917],[96.253921,31.929566],[96.176313,31.777608],[96.252689,31.69619],[96.204646,31.598904],[96.160298,31.600943],[96.135661,31.702299],[96.041422,31.734364],[95.982908,31.816765],[95.89914,31.817273],[95.825227,31.681935],[95.779648,31.74912],[95.618272,31.783712],[95.546823,31.739961],[95.439649,31.831508],[95.360809,31.959013],[95.454432,32.062006],[95.406389,32.182102],[95.312766,32.148673],[95.26965,32.194761],[95.241317,32.32075],[95.10581,32.259042],[95.096571,32.322267],[95.261643,32.348049],[95.218527,32.397067],[95.081789,32.384942],[94.985086,32.421819],[94.912405,32.415758],[94.889616,32.472311],[94.80708,32.486444],[94.772587,32.555057],[94.614291,32.673492],[94.53853,32.599425],[94.395016,32.594385],[94.371611,32.524793],[94.196684,32.516216],[94.136322,32.433939],[93.958931,32.484929],[93.861613,32.466253],[93.820345,32.549509],[93.654657,32.57321],[93.618933,32.522775],[93.516687,32.475844],[93.4631,32.556065],[93.385492,32.525297],[93.239514,32.662411],[93.069515,32.626137],[93.019624,32.737433],[92.877342,32.697161],[92.686401,32.765109],[92.63651,32.720319],[92.355641,32.764606],[92.255243,32.720823],[92.198577,32.755046],[92.227526,32.820939],[92.145606,32.885779],[91.955897,32.820437],[91.896766,32.907884],[91.785281,32.944044],[91.58079,33.039395],[91.49887,33.109086],[91.436044,33.065974],[91.262349,33.141156],[91.134849,33.073495],[91.001807,33.116102]]]},"properties":{"id":15,"adcode":630000,"name":"青海","cp":[95.2402,35.4199],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[117.210024,40.082262],[117.344299,40.13443],[117.367089,40.172387],[117.367089,40.172844],[117.367089,40.173301],[117.367089,40.172844],[117.367089,40.172387],[117.389879,40.228141],[117.450857,40.252347],[117.571581,40.21809],[117.652269,40.12345],[117.651037,40.122535],[117.71879,40.082262],[117.75821,40.073563],[117.782232,39.968634],[117.614697,39.972303],[117.589443,39.997059],[117.513067,39.910373],[117.537704,39.835064],[117.540784,39.822658],[117.57774,39.727009],[117.644262,39.702155],[117.66274,39.636295],[117.619008,39.603111],[117.736037,39.560686],[117.74774,39.58928],[117.866,39.596657],[117.933753,39.574062],[117.870311,39.454972],[117.846906,39.328274],[117.972557,39.312536],[117.982412,39.298647],[118.021833,39.287071],[118.024296,39.289386],[118.024912,39.292164],[118.037231,39.220353],[117.871543,39.122479],[117.837667,39.056999],[117.855529,38.957502],[117.898029,38.948661],[117.847522,38.855535],[117.778536,38.869046],[117.64611,38.828972],[117.646725,38.788875],[117.740964,38.753888],[117.729261,38.680127],[117.639334,38.62686],[117.47919,38.617043],[117.39419,38.573553],[117.252524,38.556711],[117.213104,38.639947],[117.176764,38.617978],[117.097924,38.587118],[117.042489,38.706279],[116.95133,38.689468],[116.947634,38.689468],[116.950714,38.689468],[116.95133,38.689468],[116.950714,38.689468],[116.877417,38.680594],[116.858939,38.741289],[116.766548,38.742222],[116.737599,38.784677],[116.708034,38.931907],[116.783179,39.050959],[116.812744,39.050959],[116.912526,39.110873],[116.91191,39.111338],[116.912526,39.110873],[116.865714,39.155428],[116.892816,39.224061],[116.870642,39.357426],[116.796113,39.446656],[116.812128,39.616018],[116.90575,39.687883],[116.916837,39.703996],[116.983975,39.63906],[117.126873,39.61694],[117.177996,39.64551],[117.165061,39.718725],[117.205713,39.763813],[117.156438,39.817603],[117.229735,39.852981],[117.152126,39.878239],[117.150894,39.944785],[117.198322,39.992933],[117.210024,40.082262]]]},"properties":{"id":19,"adcode":120000,"name":"天津","cp":[117.351154,39.28914],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[120.461568,27.14259],[120.393199,27.081343],[120.287257,27.094128],[120.29588,27.035519],[120.231823,26.907006],[120.117258,26.916609],[120.047041,26.824809],[120.1382,26.79704],[120.165917,26.73133],[120.110483,26.692848],[120.1382,26.637775],[119.967585,26.597657],[119.896136,26.516306],[119.827767,26.524872],[119.851788,26.595516],[119.949107,26.624404],[120.052584,26.786892],[119.942947,26.784756],[119.86965,26.642588],[119.83023,26.69071],[119.711354,26.686433],[119.665159,26.725986],[119.577695,26.622264],[119.788346,26.58321],[119.876426,26.359867],[119.962657,26.373269],[119.8986,26.308388],[119.841317,26.322333],[119.668854,26.256887],[119.604181,26.168853],[119.668854,26.025924],[119.723673,26.011406],[119.688564,25.897892],[119.632514,25.884436],[119.635594,25.746011],[119.601101,25.683479],[119.472986,25.662448],[119.586934,25.592317],[119.634362,25.475161],[119.716898,25.550758],[119.716898,25.551838],[119.683637,25.592856],[119.785883,25.667841],[119.790194,25.614439],[119.883817,25.54644],[119.812368,25.523225],[119.864107,25.479482],[119.764325,25.433562],[119.773564,25.395732],[119.646064,25.460576],[119.649144,25.34275],[119.549362,25.367082],[119.48592,25.364919],[119.490232,25.447069],[119.438493,25.412487],[119.452044,25.490824],[119.36458,25.521065],[119.354725,25.427077],[119.288204,25.410865],[119.256175,25.488664],[119.14469,25.388165],[119.299291,25.32869],[119.380595,25.250247],[119.293131,25.23347],[119.26911,25.15984],[119.131755,25.223187],[119.165632,25.145217],[119.119436,25.012447],[119.107118,25.075327],[119.035669,25.125717],[119.081248,25.218856],[118.989473,25.202075],[118.996864,25.266481],[118.911249,25.241589],[118.981466,25.19612],[118.975923,25.118133],[118.868133,25.082372],[118.928495,25.025459],[119.02335,25.04877],[118.989473,24.973944],[119.032589,24.962011],[119.032589,24.961468],[118.918024,24.924034],[118.96114,24.871933],[118.86259,24.886589],[118.650707,24.808949],[118.786213,24.776358],[118.703677,24.665485],[118.675344,24.57628],[118.558316,24.512602],[118.557084,24.573016],[118.444367,24.614907],[118.355056,24.534376],[118.242955,24.512602],[118.134549,24.575736],[118.12531,24.571927],[118.113454,24.548092],[118.142557,24.561588],[118.20723,24.487012],[118.143173,24.421109],[118.079115,24.444533],[118.089071,24.499075],[118.048934,24.418385],[118.088354,24.409123],[118.158571,24.270111],[118.001507,24.176805],[117.762522,23.88718],[117.671979,23.877879],[117.612849,23.71364],[117.500132,23.703232],[117.463791,23.58539],[117.387415,23.555228],[117.192778,23.561809],[117.192778,23.629799],[117.053576,23.696657],[117.012308,23.855446],[116.980279,23.881709],[116.981511,23.999282],[116.939627,24.033713],[116.9347,24.127123],[116.998757,24.178988],[116.933468,24.21992],[116.903903,24.369888],[116.860787,24.462507],[116.789338,24.50988],[116.761005,24.58281],[116.815207,24.655154],[116.778867,24.680165],[116.597165,24.65461],[116.525716,24.604572],[116.486912,24.71876],[116.44626,24.714412],[116.376659,24.820353],[116.245464,24.793197],[116.18079,24.87519],[116.068073,24.849675],[116.014486,24.905584],[115.89253,24.937056],[115.873436,25.020038],[115.928255,25.050396],[115.880212,25.092126],[115.855574,25.209654],[115.929487,25.234553],[116.008327,25.319496],[116.005247,25.490284],[116.063145,25.563173],[116.067457,25.703967],[116.18079,25.774571],[116.131515,25.82413],[116.176478,25.893048],[116.258398,25.902736],[116.36434,25.960312],[116.383434,26.029687],[116.489375,26.113529],[116.471513,26.175296],[116.396985,26.166168],[116.412999,26.298197],[116.519557,26.410251],[116.601476,26.372733],[116.610716,26.477216],[116.539267,26.559129],[116.566368,26.650075],[116.516477,26.69071],[116.557745,26.774073],[116.548506,26.839758],[116.679085,26.978479],[116.910062,27.034453],[117.05296,27.100519],[117.043721,27.139928],[117.171836,27.290509],[117.100387,27.338886],[117.133032,27.4223],[117.084989,27.564011],[117.01662,27.563481],[117.040641,27.670043],[117.096692,27.626582],[117.118865,27.694416],[117.204481,27.683819],[117.296872,27.764854],[117.27901,27.870161],[117.341836,27.855879],[117.52169,27.982236],[117.608537,27.863814],[117.740348,27.800321],[117.78716,27.896076],[117.856145,27.945772],[117.999043,27.991218],[118.096977,27.96744],[118.155491,28.061992],[118.356288,28.091555],[118.37415,28.188106],[118.314404,28.22238],[118.433896,28.288786],[118.444367,28.25348],[118.587881,28.28299],[118.674728,28.271398],[118.700598,28.310912],[118.802228,28.240303],[118.771431,28.188634],[118.802228,28.117416],[118.719076,28.063576],[118.730163,27.970611],[118.818242,27.916697],[118.913713,27.61651],[118.869365,27.54014],[118.903858,27.462125],[118.983314,27.498751],[119.194581,27.418582],[119.267878,27.421237],[119.376899,27.534835],[119.474833,27.539079],[119.501319,27.649905],[119.644217,27.663684],[119.630666,27.582574],[119.70889,27.514141],[119.685485,27.438762],[119.770484,27.305928],[119.843165,27.300611],[120.007005,27.376084],[120.052584,27.338886],[120.13512,27.420175],[120.26262,27.432921],[120.34146,27.39946],[120.430155,27.258601],[120.401206,27.211253],[120.461568,27.14259]]],[[[119.737224,26.646332],[119.668238,26.628683],[119.673782,26.681087],[119.737224,26.646332]]],[[[119.532116,25.203158],[119.549362,25.162007],[119.444036,25.202075],[119.473601,25.259988],[119.532116,25.203158]]],[[[118.412338,24.514235],[118.477012,24.437452],[118.335962,24.385148],[118.316252,24.487557],[118.374766,24.458695],[118.412338,24.514235]]]]},"properties":{"id":20,"adcode":350000,"name":"福建","cp":[118.3008,25.9277],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[116.196804,34.576017],[116.204196,34.508497],[116.162312,34.459178],[116.213435,34.382181],[116.26271,34.375762],[116.409303,34.273971],[116.516477,34.296217],[116.565752,34.173541],[116.530643,34.107183],[116.575607,34.069028],[116.648288,33.973317],[116.64336,33.896869],[116.437637,33.846694],[116.437021,33.801461],[116.316297,33.771127],[116.263326,33.729835],[116.155536,33.709929],[116.074232,33.781571],[116.05945,33.861103],[115.987385,33.900842],[116.00032,33.964881],[115.95782,34.007547],[115.877132,34.003083],[115.736082,34.076957],[115.60735,34.030359],[115.546988,33.875014],[115.629524,33.871536],[115.614126,33.775603],[115.563003,33.771624],[115.639995,33.584909],[115.421953,33.556992],[115.345576,33.503125],[115.312931,33.376307],[115.365286,33.335826],[115.301229,33.141657],[115.168186,33.088535],[115.042534,33.08653],[114.966158,33.147167],[114.902716,33.129632],[114.925506,33.016821],[114.883006,32.990227],[114.943368,32.935005],[115.139237,32.897837],[115.197135,32.85613],[115.183584,32.665937],[115.20083,32.591864],[115.304924,32.553039],[115.409018,32.549005],[115.5088,32.468777],[115.509416,32.466758],[115.567314,32.421819],[115.667712,32.409696],[115.706517,32.494014],[115.789052,32.468777],[115.845719,32.501583],[115.899306,32.391005],[115.912856,32.227666],[115.941805,32.166402],[115.931334,31.994541],[115.893146,31.833033],[115.909777,31.791849],[115.816154,31.762348],[115.767495,31.787272],[115.660937,31.760822],[115.496481,31.674297],[115.371446,31.495905],[115.373909,31.405559],[115.301229,31.384109],[115.22054,31.426494],[115.235323,31.556597],[115.12507,31.598904],[115.088729,31.507638],[115.024056,31.528551],[114.830035,31.458654],[114.778912,31.5209],[114.696376,31.526001],[114.641558,31.582085],[114.560869,31.561185],[114.549783,31.642721],[114.586123,31.762348],[114.448769,31.728257],[114.292936,31.752173],[114.195002,31.850315],[114.135871,31.843707],[114.088444,31.781677],[113.988662,31.750138],[113.954785,31.856413],[113.838373,31.854889],[113.791561,32.036142],[113.728735,32.0833],[113.783554,32.186153],[113.749677,32.272196],[113.758301,32.296476],[113.752757,32.388478],[113.664062,32.422324],[113.624642,32.361191],[113.425693,32.269161],[113.211962,32.431919],[113.118956,32.375846],[113.025949,32.425354],[112.992072,32.378373],[112.860877,32.395552],[112.733993,32.363718],[112.729066,32.366245],[112.544284,32.403635],[112.451893,32.344511],[112.390915,32.371298],[112.328089,32.321761],[112.228923,32.385447],[112.014576,32.450098],[111.948671,32.517225],[111.890157,32.503097],[111.640701,32.634703],[111.577875,32.593376],[111.380159,32.828984],[111.293311,32.859145],[111.242804,32.930486],[111.273601,32.971656],[111.238493,33.040899],[111.151029,33.053438],[111.179363,33.115601],[111.056791,33.192743],[111.032769,33.209265],[110.984726,33.255308],[111.025994,33.330327],[110.996429,33.435745],[111.02661,33.474183],[111.02661,33.478675],[111.00382,33.578429],[110.877552,33.635238],[110.782698,33.795494],[110.587445,33.887929],[110.669365,33.939072],[110.590525,34.096778],[110.642264,34.16067],[110.43962,34.24331],[110.426685,34.275454],[110.503677,34.337234],[110.403279,34.43352],[110.360779,34.516878],[110.379257,34.600646],[110.474728,34.617389],[110.533242,34.583406],[110.710017,34.605078],[110.749437,34.652342],[110.883712,34.642498],[110.929907,34.731548],[110.966248,34.70499],[111.118385,34.756622],[111.148566,34.80773],[111.232949,34.789551],[111.346282,34.831798],[111.570484,34.843094],[111.66965,34.988319],[111.900012,35.079933],[112.062004,35.055937],[112.078634,35.219362],[112.058924,35.279951],[112.513487,35.218384],[112.637291,35.225716],[112.628052,35.263342],[112.766022,35.203718],[112.818377,35.258457],[112.911384,35.24673],[112.992072,35.296068],[112.997,35.362455],[113.126347,35.332197],[113.189789,35.449261],[113.298194,35.427325],[113.31236,35.481424],[113.485439,35.520879],[113.578446,35.63378],[113.604316,35.797008],[113.656671,35.836792],[113.637576,35.98847],[113.694859,36.026707],[113.651743,36.172224],[113.716417,36.262492],[113.731199,36.363257],[113.819894,36.330969],[113.881488,36.354102],[113.911054,36.314578],[113.982502,36.358921],[114.055799,36.330005],[114.060727,36.276482],[114.169132,36.243675],[114.345291,36.255738],[114.591666,36.130192],[114.912571,36.140339],[114.914419,36.051865],[114.996955,36.06831],[115.064092,36.178985],[115.201446,36.210371],[115.312931,36.088137],[115.483547,36.149036],[115.447822,36.012672],[115.362822,35.972008],[115.335105,35.796522],[115.363438,35.78002],[115.460141,35.86783],[115.496481,35.885283],[115.646155,35.920663],[115.989849,36.045576],[116.099486,36.111826],[116.048979,35.970071],[115.911624,35.960385],[115.875284,35.859102],[115.773654,35.854252],[115.693582,35.75429],[115.48601,35.710091],[115.383148,35.569076],[115.357895,35.498475],[115.237171,35.422937],[115.093657,35.41611],[115.02036,35.364406],[114.929817,35.248196],[114.932281,35.197362],[114.841738,35.151389],[114.883006,35.098537],[114.824492,35.012335],[114.923658,34.968709],[115.028983,34.97165],[115.12815,35.004493],[115.189128,34.914757],[115.251953,34.906416],[115.256265,34.845549],[115.317243,34.859297],[115.42688,34.805273],[115.461373,34.637083],[115.515575,34.582421],[115.667096,34.557294],[115.697278,34.594243],[115.83032,34.562714],[116.101334,34.605571],[116.134594,34.559758],[116.196804,34.576017]]]},"properties":{"id":21,"adcode":410000,"name":"河南","cp":[113.0668,33.8818],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[121.13479,27.787088],[121.134174,27.786029],[121.134174,27.787088],[121.152036,27.815139],[121.027616,27.832601],[120.942001,27.896605],[120.797871,27.779677],[120.634647,27.577271],[120.703016,27.478581],[120.673451,27.369708],[120.572437,27.313903],[120.544104,27.154303],[120.461568,27.14259],[120.401206,27.211253],[120.430155,27.258601],[120.34146,27.39946],[120.26262,27.432921],[120.13512,27.420175],[120.052584,27.338886],[120.007005,27.376084],[119.843165,27.300611],[119.770484,27.305928],[119.685485,27.438762],[119.70889,27.514141],[119.630666,27.582574],[119.644217,27.663684],[119.501319,27.649905],[119.474833,27.539079],[119.376899,27.534835],[119.267878,27.421237],[119.194581,27.418582],[118.983314,27.498751],[118.903858,27.462125],[118.869365,27.54014],[118.913713,27.61651],[118.818242,27.916697],[118.730163,27.970611],[118.719076,28.063576],[118.802228,28.117416],[118.771431,28.188634],[118.802228,28.240303],[118.700598,28.310912],[118.674728,28.271398],[118.587881,28.28299],[118.444367,28.25348],[118.433896,28.288786],[118.486867,28.328821],[118.432048,28.402003],[118.472084,28.482497],[118.426505,28.532447],[118.425273,28.537177],[118.421577,28.540331],[118.421577,28.541908],[118.423425,28.587626],[118.431432,28.679528],[118.379077,28.785509],[118.306396,28.823782],[118.270056,28.918619],[118.111144,28.997671],[118.037847,29.097054],[118.027992,29.168132],[118.077883,29.290836],[118.136397,29.284052],[118.20723,29.346135],[118.193064,29.395149],[118.316252,29.422774],[118.310708,29.49623],[118.496106,29.519662],[118.500417,29.575877],[118.573714,29.638302],[118.644547,29.641942],[118.744945,29.738621],[118.755416,29.845586],[118.894619,29.93792],[118.902626,30.029133],[118.847807,30.163208],[118.929727,30.202515],[118.880452,30.31518],[118.954365,30.360106],[119.06277,30.304849],[119.201356,30.290901],[119.246936,30.341002],[119.36766,30.384885],[119.326392,30.532906],[119.237081,30.54682],[119.238929,30.60915],[119.312225,30.620993],[119.386754,30.685333],[119.416935,30.642101],[119.482841,30.70437],[119.479761,30.772253],[119.575847,30.829814],[119.585702,30.976642],[119.633746,31.019724],[119.623891,31.130416],[119.678093,31.168308],[119.919542,31.170868],[120.001461,31.026902],[120.13512,30.941752],[120.226279,30.926356],[120.371025,30.948424],[120.35809,30.88734],[120.423996,30.900689],[120.504684,30.757858],[120.589068,30.854472],[120.713487,30.885286],[120.698089,30.970999],[120.901349,31.017673],[120.991892,31.00793],[120.989428,30.833924],[121.097218,30.85704],[121.123087,30.778936],[121.217942,30.785105],[121.274608,30.677615],[121.058413,30.563823],[121.225333,30.404496],[121.328195,30.397271],[121.497578,30.258864],[121.632469,30.072119],[121.721164,29.992865],[121.78399,29.993383],[121.919497,29.920808],[121.968156,29.956584],[122.00696,29.891764],[122.140003,29.901619],[122.10243,29.859597],[121.997721,29.759919],[121.937359,29.748491],[121.833265,29.653382],[121.966308,29.635702],[122.000185,29.582642],[121.968772,29.515497],[121.993409,29.451954],[121.937975,29.384201],[121.986634,29.15507],[121.966308,29.053128],[121.884388,29.105419],[121.780294,29.109601],[121.767975,29.166565],[121.660186,29.118487],[121.774751,28.864138],[121.668193,28.873046],[121.704534,28.816443],[121.689135,28.719415],[121.540694,28.655379],[121.634317,28.56293],[121.687287,28.40095],[121.627541,28.251899],[121.499426,28.306171],[121.373774,28.133246],[121.288159,28.144854],[121.261057,28.034533],[121.140949,28.031364],[121.108304,28.13905],[121.059029,28.096305],[120.991892,27.95],[121.05595,27.900306],[121.162507,27.90718],[121.152652,27.810376],[121.153268,27.809847],[121.149572,27.801908],[121.149572,27.801379],[121.149572,27.80085],[121.13479,27.787088]]],[[[122.397465,30.225266],[122.317393,30.249561],[122.40732,30.272817],[122.397465,30.225266]]],[[[122.435038,29.906287],[122.391922,29.831573],[122.327248,29.922883],[122.411632,29.951918],[122.435038,29.906287]]],[[[121.041783,27.943657],[121.0695,27.984349],[121.136638,27.948414],[121.041783,27.943657]]],[[[122.310002,29.766671],[122.221307,29.832611],[122.303843,29.832611],[122.310002,29.766671]]],[[[121.874533,29.964878],[121.835113,29.992865],[121.855439,30.085062],[121.924424,30.052441],[121.933047,29.994938],[121.874533,29.964878]]],[[[122.353734,30.464339],[122.423335,30.408624],[122.281669,30.418944],[122.277973,30.471558],[122.353734,30.464339]]],[[[121.943518,30.77688],[121.970004,30.789217],[122.011271,30.669381],[121.968156,30.68842],[121.943518,30.77688]]],[[[122.301379,29.942068],[122.163408,29.988201],[122.038989,29.989756],[121.991561,30.075743],[121.990945,30.076261],[121.952757,30.183898],[122.152938,30.113015],[122.293988,30.100075],[122.347574,30.014109],[122.301379,29.942068]]],[[[122.13138,29.673659],[122.047612,29.719396],[122.130148,29.79056],[122.200981,29.711082],[122.192358,29.655462],[122.13138,29.673659]]],[[[122.100583,30.304333],[122.228082,30.329641],[122.22993,30.232503],[122.058083,30.291934],[122.100583,30.304333]]]]},"properties":{"id":22,"adcode":330000,"name":"浙江","cp":[120.498,29.0918],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[115.5088,32.468777],[115.409018,32.549005],[115.304924,32.553039],[115.20083,32.591864],[115.183584,32.665937],[115.197135,32.85613],[115.139237,32.897837],[114.943368,32.935005],[114.883006,32.990227],[114.925506,33.016821],[114.902716,33.129632],[114.966158,33.147167],[115.042534,33.08653],[115.168186,33.088535],[115.301229,33.141657],[115.365286,33.335826],[115.312931,33.376307],[115.345576,33.503125],[115.421953,33.556992],[115.639995,33.584909],[115.563003,33.771624],[115.614126,33.775603],[115.629524,33.871536],[115.546988,33.875014],[115.60735,34.030359],[115.736082,34.076957],[115.877132,34.003083],[115.95782,34.007547],[116.00032,33.964881],[115.987385,33.900842],[116.05945,33.861103],[116.074232,33.781571],[116.155536,33.709929],[116.263326,33.729835],[116.316297,33.771127],[116.437021,33.801461],[116.437637,33.846694],[116.64336,33.896869],[116.648288,33.973317],[116.575607,34.069028],[116.530643,34.107183],[116.565752,34.173541],[116.516477,34.296217],[116.409303,34.273971],[116.26271,34.375762],[116.213435,34.382181],[116.162312,34.459178],[116.204196,34.508497],[116.196804,34.576017],[116.240536,34.552367],[116.281188,34.60754],[116.374195,34.640036],[116.429629,34.652834],[116.491839,34.57109],[116.595933,34.510469],[116.574991,34.488773],[116.774555,34.452764],[116.828142,34.389094],[116.969192,34.387613],[116.971656,34.279409],[117.04988,34.242321],[117.025243,34.167106],[117.192778,34.068532],[117.352922,34.089842],[117.410205,34.026888],[117.514914,34.061097],[117.575892,33.982744],[117.629479,34.028872],[117.715095,33.879485],[117.758826,33.885445],[117.752667,33.711422],[117.805638,33.736304],[117.901724,33.719883],[118.116071,33.767645],[118.16781,33.66313],[118.112376,33.617302],[118.108064,33.475181],[118.050782,33.492148],[117.971941,33.277821],[117.939297,33.262813],[118.038463,33.134642],[118.221397,33.182228],[118.244803,32.998256],[118.293462,32.947056],[118.2331,32.914414],[118.250346,32.84859],[118.375382,32.718809],[118.707373,32.720319],[118.756648,32.737433],[118.74125,32.850601],[118.811467,32.854622],[118.849039,32.956596],[118.995017,32.958604],[119.104038,32.82647],[119.184726,32.825465],[119.22045,32.57674],[119.084944,32.452622],[119.041212,32.515207],[118.978386,32.504106],[118.922336,32.557074],[118.92172,32.557074],[118.922336,32.557074],[118.92172,32.557074],[118.719076,32.614042],[118.563859,32.56363],[118.592192,32.481396],[118.69259,32.463224],[118.69567,32.31721],[118.642083,32.208937],[118.522591,32.188178],[118.499801,32.1203],[118.400019,32.077724],[118.363679,31.930581],[118.504729,31.841674],[118.481939,31.778117],[118.552772,31.729275],[118.638388,31.759295],[118.697518,31.709935],[118.643931,31.65138],[118.736938,31.634061],[118.77451,31.682444],[118.804691,31.618268],[118.858278,31.624382],[118.873061,31.53569],[118.876756,31.532631],[118.853967,31.39841],[118.745561,31.37287],[118.728931,31.281384],[118.781286,31.239956],[119.075089,31.232282],[119.199508,31.293655],[119.267878,31.250698],[119.379979,31.269622],[119.388602,31.194415],[119.460051,31.156533],[119.623891,31.130416],[119.633746,31.019724],[119.585702,30.976642],[119.575847,30.829814],[119.479761,30.772253],[119.482841,30.70437],[119.416935,30.642101],[119.386754,30.685333],[119.312225,30.620993],[119.238929,30.60915],[119.237081,30.54682],[119.326392,30.532906],[119.36766,30.384885],[119.246936,30.341002],[119.201356,30.290901],[119.06277,30.304849],[118.954365,30.360106],[118.880452,30.31518],[118.929727,30.202515],[118.847807,30.163208],[118.902626,30.029133],[118.894619,29.93792],[118.755416,29.845586],[118.744945,29.738621],[118.644547,29.641942],[118.573714,29.638302],[118.500417,29.575877],[118.496106,29.519662],[118.310708,29.49623],[118.316252,29.422774],[118.193064,29.395149],[118.136397,29.419125],[118.134549,29.508728],[118.008282,29.578479],[117.872775,29.547774],[117.807486,29.573796],[117.707703,29.548815],[117.647957,29.614897],[117.545711,29.594089],[117.532161,29.651822],[117.453936,29.688214],[117.455168,29.749011],[117.384335,29.84351],[117.29256,29.822749],[117.246365,29.915104],[117.17738,29.921846],[117.073286,29.832092],[117.136728,29.7755],[117.112706,29.712121],[116.780715,29.570153],[116.651983,29.637262],[116.677237,29.66898],[116.684012,29.72823],[116.789954,29.795233],[116.882961,29.89332],[116.900207,29.949326],[116.83307,29.957621],[116.747454,30.057101],[116.666766,30.076779],[116.586078,30.046226],[116.552201,29.909918],[116.473361,29.89747],[116.26271,29.782251],[116.207891,29.82742],[116.13521,29.819634],[116.127203,29.899544],[116.073616,29.970061],[116.091479,30.036385],[116.065609,30.204584],[115.985537,30.290901],[115.903001,30.313631],[115.921479,30.416364],[115.876516,30.582368],[115.819234,30.59782],[115.762567,30.685848],[115.782893,30.751687],[115.851262,30.756829],[115.865429,30.864231],[115.976298,30.931488],[116.071769,30.956633],[116.058834,31.012545],[115.938726,31.047409],[115.869125,31.147828],[115.763799,31.118123],[115.700973,31.201068],[115.646155,31.209768],[115.559307,31.160117],[115.516191,31.263485],[115.457677,31.281384],[115.442279,31.346303],[115.372062,31.349368],[115.373909,31.405559],[115.371446,31.495905],[115.496481,31.674297],[115.660937,31.760822],[115.767495,31.787272],[115.816154,31.762348],[115.909777,31.791849],[115.893146,31.833033],[115.931334,31.994541],[115.941805,32.166402],[115.912856,32.227666],[115.899306,32.391005],[115.845719,32.501583],[115.789052,32.468777],[115.706517,32.494014],[115.667712,32.409696],[115.567314,32.421819],[115.509416,32.466758],[115.5088,32.468777]]]},"properties":{"id":23,"adcode":340000,"name":"安徽","cp":[117.2461,31.0361],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[109.103647,30.565883],[109.09256,30.578762],[109.114734,30.64416],[108.971836,30.627686],[108.808612,30.491153],[108.743939,30.494762],[108.688504,30.587519],[108.56778,30.468464],[108.42673,30.492184],[108.402092,30.376626],[108.460606,30.35959],[108.581947,30.255763],[108.56778,30.157517],[108.513577,30.057619],[108.542526,29.998047],[108.516041,29.885539],[108.371295,29.841434],[108.424266,29.816],[108.437201,29.741218],[108.504338,29.707964],[108.602273,29.865824],[108.666946,29.842472],[108.690968,29.689773],[108.785822,29.633622],[108.844337,29.658582],[108.91209,29.571714],[108.880677,29.442576],[108.927488,29.435281],[108.919481,29.326314],[109.11227,29.360737],[109.110422,29.215143],[109.232378,29.119533],[109.319842,29.042667],[109.235458,28.882476],[109.241002,28.776594],[109.2989,28.747221],[109.201581,28.598133],[109.304443,28.623871],[109.321074,28.581322],[109.274262,28.494592],[109.191726,28.470927],[109.152306,28.349885],[109.081473,28.249264],[109.086401,28.184942],[109.026655,28.220271],[109.006329,28.163317],[108.922561,28.217635],[108.772888,28.21289],[108.726692,28.282463],[108.764881,28.306698],[108.779663,28.425158],[108.710678,28.500902],[108.640461,28.457251],[108.688504,28.422527],[108.668178,28.334614],[108.611512,28.324607],[108.577019,28.534024],[108.636149,28.621245],[108.565316,28.662204],[108.471077,28.627548],[108.332491,28.679528],[108.385462,28.772398],[108.352817,28.815395],[108.350353,28.933282],[108.268433,29.089734],[108.256115,29.040574],[108.068253,29.086597],[108.024521,29.038482],[107.930899,29.035343],[107.867457,28.960508],[107.784921,29.04842],[107.810791,29.138348],[107.751044,29.199997],[107.701769,29.142006],[107.589052,29.149845],[107.570574,29.218276],[107.486806,29.174402],[107.404271,29.187984],[107.412894,29.095485],[107.36485,29.010753],[107.441227,28.943755],[107.383945,28.848417],[107.219489,28.772923],[107.191156,28.888763],[107.057497,28.895049],[106.983584,28.851561],[106.986664,28.793899],[106.926302,28.809104],[106.824056,28.756139],[106.883186,28.69265],[106.866556,28.624397],[106.73844,28.554522],[106.7446,28.465667],[106.632499,28.503531],[106.564745,28.485127],[106.63681,28.623346],[106.562897,28.753516],[106.45326,28.816968],[106.504999,28.662204],[106.484057,28.530344],[106.395978,28.570287],[106.37442,28.525613],[106.304203,28.650653],[106.248152,28.829024],[106.173008,28.92019],[106.048588,28.906573],[106.043661,28.954226],[105.970364,28.966267],[105.88906,28.909716],[105.762176,28.991391],[105.693807,29.267351],[105.518264,29.264219],[105.427721,29.316924],[105.428337,29.417562],[105.380294,29.456643],[105.324859,29.448828],[105.289751,29.552979],[105.38399,29.67002],[105.476996,29.674699],[105.575547,29.745374],[105.619894,29.846624],[105.709206,29.840396],[105.70243,29.924957],[105.753553,30.018254],[105.687648,30.038974],[105.582938,30.123884],[105.582938,30.127507],[105.580474,30.129577],[105.574315,30.130611],[105.56138,30.183898],[105.571235,30.17976],[105.642684,30.186484],[105.624822,30.275917],[105.720292,30.252662],[105.714749,30.322927],[105.792357,30.427199],[105.881053,30.387465],[106.031958,30.373529],[106.10587,30.310531],[106.17116,30.306399],[106.180399,30.23302],[106.256776,30.19631],[106.262935,30.211306],[106.428623,30.254729],[106.451412,30.307949],[106.610941,30.292451],[106.612789,30.235605],[106.612173,30.235605],[106.611557,30.235605],[106.612173,30.235605],[106.611557,30.235605],[106.677462,30.157],[106.726121,30.033277],[106.825904,30.031205],[106.913367,30.025506],[106.974345,30.082992],[106.976193,30.083509],[106.980504,30.085062],[106.981736,30.085062],[107.053801,30.043636],[107.054417,30.041046],[107.055649,30.040528],[107.058113,30.043118],[107.221337,30.213891],[107.359923,30.456087],[107.516987,30.644675],[107.424597,30.740889],[107.514524,30.854986],[107.645103,30.821079],[107.739957,30.884259],[107.763979,30.816968],[107.85329,30.793842],[107.994956,30.90839],[107.943833,30.989466],[108.053471,31.040745],[108.009123,31.10839],[108.083652,31.185713],[108.095354,31.268088],[108.185898,31.337104],[108.153869,31.371338],[108.216079,31.410666],[108.191441,31.492333],[108.34173,31.509679],[108.391621,31.593298],[108.517889,31.665131],[108.535135,31.757769],[108.343578,31.860987],[108.259194,31.966628],[108.373759,32.077217],[108.447672,32.07164],[108.369447,32.173493],[108.509882,32.201343],[108.67249,32.104083],[108.734084,32.106617],[108.902235,31.984899],[108.988466,31.979317],[109.164009,31.877247],[109.195422,31.817782],[109.273646,31.801003],[109.281654,31.717061],[109.585928,31.726731],[109.731289,31.700263],[109.76455,31.602981],[109.719586,31.555067],[109.848934,31.552008],[109.946252,31.506108],[110.054042,31.410666],[110.140273,31.390238],[110.189548,31.129391],[110.119947,31.088409],[110.135961,30.986902],[110.172918,30.978694],[110.082375,30.799496],[110.008462,30.883746],[109.893897,30.899662],[109.780564,30.848822],[109.590855,30.693566],[109.435638,30.59576],[109.35495,30.487028],[109.36111,30.550942],[109.299516,30.630775],[109.143683,30.521052],[109.103647,30.565883]],[[105.574315,30.130611],[105.580474,30.129577],[105.582938,30.127507],[105.582938,30.123884],[105.574315,30.130611]],[[107.053801,30.043636],[107.058113,30.043118],[107.055649,30.040528],[107.054417,30.041046],[107.053801,30.043636]]]},"properties":{"id":24,"adcode":500000,"name":"重庆","cp":[107.7539,29.8904],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[109.52187,26.748964],[109.454117,26.761252],[109.35495,26.693383],[109.407305,26.532902],[109.326001,26.427398],[109.285965,26.296052],[109.340784,26.264399],[109.466435,26.314288],[109.439334,26.238641],[109.486761,26.148445],[109.449805,26.101709],[109.48245,26.029687],[109.408537,25.967305],[109.435022,25.933411],[109.339552,25.834363],[109.3414,25.732537],[109.147995,25.7417],[109.143683,25.795044],[108.989698,25.778881],[108.896076,25.71421],[108.953974,25.686714],[109.000785,25.73631],[109.07901,25.720679],[109.030966,25.629545],[109.088249,25.550758],[109.025423,25.512426],[108.949046,25.557236],[108.781511,25.554537],[108.763649,25.637097],[108.68912,25.623072],[108.6072,25.491904],[108.625062,25.308138],[108.471693,25.458955],[108.418723,25.443287],[108.348506,25.536183],[108.142782,25.390867],[108.152021,25.324364],[108.115065,25.210195],[108.001732,25.196661],[107.841587,25.115966],[107.741805,25.239965],[107.700537,25.193954],[107.659885,25.316251],[107.599523,25.250789],[107.472024,25.213984],[107.481263,25.300024],[107.432604,25.289205],[107.420901,25.393029],[107.318039,25.401677],[107.336517,25.461116],[107.228728,25.604728],[107.064272,25.559395],[107.066736,25.509186],[106.963874,25.437884],[107.012533,25.353024],[107.013765,25.275138],[106.912751,25.243212],[106.900432,25.194495],[106.732281,25.162548],[106.684238,25.178252],[106.590615,25.087791],[106.304819,24.973944],[106.215508,24.982079],[106.146522,24.948449],[106.206269,24.851304],[106.173008,24.760059],[106.045508,24.681796],[106.023335,24.632313],[105.942031,24.724738],[105.827466,24.702997],[105.70551,24.768752],[105.500402,24.807862],[105.445584,24.918608],[105.365511,24.943566],[105.265729,24.930003],[105.198592,24.995095],[105.09573,24.928375],[105.077868,24.918065],[105.03352,24.787765],[104.899245,24.752996],[104.841963,24.676359],[104.743413,24.621978],[104.63316,24.65896],[104.529682,24.73126],[104.539537,24.813836],[104.713232,24.996179],[104.667652,25.05961],[104.750804,25.215067],[104.822869,25.17013],[104.816094,25.262152],[104.639935,25.298942],[104.646094,25.356809],[104.543232,25.400597],[104.556783,25.524845],[104.434827,25.47246],[104.420661,25.585301],[104.332581,25.598792],[104.309791,25.648964],[104.328886,25.760561],[104.373233,25.731459],[104.441602,25.869362],[104.414501,25.909733],[104.499501,26.070541],[104.592508,26.317506],[104.683667,26.377557],[104.554935,26.590701],[104.487798,26.579465],[104.421276,26.712091],[104.354139,26.621194],[104.120082,26.636705],[104.052329,26.507204],[103.865699,26.512023],[103.764685,26.584816],[103.773308,26.716901],[103.705555,26.794904],[103.779468,26.874454],[103.77454,26.951815],[103.675374,27.051506],[103.638418,27.013133],[103.624251,27.112237],[103.711714,27.14259],[103.903271,27.347921],[103.932221,27.444072],[104.015372,27.429204],[104.01722,27.383523],[104.113307,27.338354],[104.174285,27.262856],[104.363378,27.467964],[104.497653,27.411677],[104.546312,27.330382],[104.609754,27.306991],[104.808702,27.35483],[104.871528,27.291041],[105.067397,27.418051],[105.184425,27.393085],[105.260186,27.514672],[105.232469,27.546506],[105.305149,27.612799],[105.308229,27.705011],[105.353809,27.74897],[105.508409,27.769089],[105.605112,27.715605],[105.62359,27.666333],[105.78435,27.719312],[106.023335,27.746851],[106.120653,27.779677],[106.193334,27.754265],[106.343007,27.821489],[106.304819,27.899249],[106.328225,27.952643],[106.206885,28.134302],[106.126812,28.16701],[105.975907,28.107917],[105.860111,28.165955],[105.88906,28.238722],[105.826234,28.304064],[105.730147,28.271925],[105.639604,28.32408],[105.62359,28.518253],[105.683952,28.535601],[105.749242,28.614943],[105.884748,28.594981],[105.891524,28.672179],[105.966668,28.76086],[106.103407,28.636476],[106.2925,28.537177],[106.330688,28.481971],[106.37442,28.525613],[106.395978,28.570287],[106.484057,28.530344],[106.504999,28.662204],[106.45326,28.816968],[106.562897,28.753516],[106.63681,28.623346],[106.564745,28.485127],[106.632499,28.503531],[106.7446,28.465667],[106.73844,28.554522],[106.866556,28.624397],[106.883186,28.69265],[106.824056,28.756139],[106.926302,28.809104],[106.986664,28.793899],[106.983584,28.851561],[107.057497,28.895049],[107.191156,28.888763],[107.219489,28.772923],[107.383945,28.848417],[107.441227,28.943755],[107.36485,29.010753],[107.412894,29.095485],[107.404271,29.187984],[107.486806,29.174402],[107.570574,29.218276],[107.589052,29.149845],[107.701769,29.142006],[107.751044,29.199997],[107.810791,29.138348],[107.784921,29.04842],[107.867457,28.960508],[107.930899,29.035343],[108.024521,29.038482],[108.068253,29.086597],[108.256115,29.040574],[108.268433,29.089734],[108.350353,28.933282],[108.352817,28.815395],[108.385462,28.772398],[108.332491,28.679528],[108.471077,28.627548],[108.565316,28.662204],[108.636149,28.621245],[108.577019,28.534024],[108.611512,28.324607],[108.668178,28.334614],[108.688504,28.422527],[108.640461,28.457251],[108.710678,28.500902],[108.779663,28.425158],[108.764881,28.306698],[108.726692,28.282463],[108.772888,28.21289],[108.922561,28.217635],[109.006329,28.163317],[109.026655,28.220271],[109.086401,28.184942],[109.081473,28.249264],[109.152306,28.349885],[109.191726,28.470927],[109.274262,28.494592],[109.27303,28.310386],[109.388211,28.268236],[109.340168,28.190216],[109.298284,28.036117],[109.378972,28.032948],[109.30198,27.956342],[109.345711,27.840537],[109.332777,27.782853],[109.470747,27.68011],[109.461508,27.567724],[109.303211,27.475396],[109.300132,27.423893],[109.202197,27.449913],[109.142451,27.418051],[109.040821,27.276151],[108.907162,27.2054],[108.878829,27.106378],[108.791366,27.084539],[108.87575,26.999273],[109.07901,27.115965],[109.164625,27.065893],[109.267487,27.128746],[109.415928,27.15377],[109.472595,27.135136],[109.454733,27.069622],[109.520022,27.058433],[109.555131,26.947015],[109.486761,26.895267],[109.500928,26.828546],[109.504624,26.805051],[109.52187,26.748964]]]},"properties":{"id":25,"adcode":520000,"name":"贵州","cp":[106.6113,26.6385],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[116.38097,37.522858],[116.433941,37.47349],[116.724664,37.744139],[116.788106,37.843429],[117.023395,37.832561],[117.093612,37.849571],[117.267923,37.838704],[117.34122,37.863271],[117.438538,37.853823],[117.513067,37.94353],[117.5839,38.070819],[117.70216,38.075529],[117.771761,38.136734],[117.808718,38.228445],[117.895565,38.30173],[117.997811,38.211992],[118.045238,38.207761],[118.143788,38.297035],[118.07234,38.170139],[118.331034,38.124968],[118.504729,38.114141],[118.552156,38.055744],[118.607591,38.129204],[118.726467,38.154144],[118.853967,38.155085],[118.974075,38.094367],[119.004872,37.992114],[119.110813,37.921349],[119.12806,37.814601],[119.217371,37.810347],[119.259871,37.702492],[119.080016,37.696337],[118.99748,37.632396],[118.939582,37.527129],[118.983314,37.349926],[119.054147,37.254738],[119.12806,37.254738],[119.298675,37.197567],[119.329472,37.115548],[119.489616,37.13463],[119.566608,37.100755],[119.744615,37.135107],[119.89244,37.263786],[119.843781,37.376557],[120.144359,37.482036],[120.246605,37.556543],[120.215192,37.621023],[120.272475,37.636661],[120.227511,37.693497],[120.367945,37.697758],[120.466496,37.757858],[120.595227,37.767318],[120.733197,37.833506],[120.938305,37.821219],[121.037471,37.718585],[121.136022,37.723318],[121.153884,37.613914],[121.217326,37.582626],[121.354064,37.595901],[121.362071,37.634292],[121.4791,37.474914],[121.565331,37.440242],[121.635548,37.49438],[121.66573,37.47349],[121.923808,37.473015],[122.08888,37.554171],[122.166488,37.439292],[122.234857,37.469216],[122.284133,37.426464],[122.41656,37.414585],[122.487393,37.434541],[122.553914,37.406981],[122.670942,37.429315],[122.573624,37.296159],[122.629059,37.194708],[122.581015,37.147508],[122.505871,37.149892],[122.467067,37.03726],[122.575472,37.054452],[122.532356,36.901497],[122.344495,36.828257],[122.174495,36.842623],[122.141235,36.93833],[122.051923,36.904846],[122.008808,36.962238],[121.767975,36.874698],[121.762432,36.846454],[121.627541,36.795683],[121.647867,36.723301],[121.492035,36.789933],[121.454462,36.75255],[121.209318,36.671489],[121.028848,36.573046],[120.847146,36.618682],[120.983269,36.546133],[120.890878,36.373375],[120.828668,36.466779],[120.759683,36.462448],[120.694393,36.390234],[120.7449,36.330969],[120.66298,36.331933],[120.712255,36.126809],[120.478199,36.091522],[120.343308,36.04219],[120.290337,36.061539],[120.362402,36.19637],[120.181316,36.204095],[120.108635,36.127292],[120.241062,36.047995],[120.213345,35.998152],[120.292801,36.017512],[120.262004,35.965712],[120.062439,35.870739],[120.011317,35.713006],[119.926317,35.759631],[119.923237,35.635238],[119.718129,35.615785],[119.665775,35.57005],[119.543819,35.347815],[119.411392,35.231581],[119.373819,35.078464],[119.306066,35.076506],[119.286972,35.11518],[119.137915,35.09609],[119.114509,35.054958],[118.928495,35.051039],[118.865053,35.029974],[118.860742,34.94419],[118.772047,34.794464],[118.719076,34.745315],[118.783749,34.723188],[118.690127,34.678424],[118.601431,34.714336],[118.460997,34.65628],[118.424657,34.595228],[118.440671,34.527724],[118.404947,34.427598],[118.290382,34.424637],[118.179513,34.379218],[118.177665,34.453257],[118.132702,34.483348],[118.185056,34.543989],[118.079115,34.569612],[118.084042,34.655788],[117.951615,34.678424],[117.902956,34.644467],[117.793935,34.65185],[117.801942,34.51885],[117.684298,34.547439],[117.592523,34.462631],[117.465023,34.484827],[117.402813,34.569612],[117.322125,34.574046],[117.32151,34.566656],[117.322125,34.566656],[117.301184,34.557294],[117.242669,34.445856],[117.175532,34.47003],[117.137344,34.633144],[117.07575,34.637575],[117.088069,34.702039],[117.000605,34.793482],[116.966728,34.875497],[116.821983,34.929475],[116.677853,34.939285],[116.445028,34.89562],[116.408071,34.85095],[116.374195,34.640036],[116.281188,34.60754],[116.240536,34.552367],[116.196804,34.576017],[116.134594,34.559758],[116.101334,34.605571],[115.83032,34.562714],[115.697278,34.594243],[115.667096,34.557294],[115.515575,34.582421],[115.461373,34.637083],[115.42688,34.805273],[115.317243,34.859297],[115.256265,34.845549],[115.251953,34.906416],[115.189128,34.914757],[115.12815,35.004493],[115.028983,34.97165],[114.923658,34.968709],[114.824492,35.012335],[114.883006,35.098537],[114.841738,35.151389],[114.932281,35.197362],[114.929817,35.248196],[115.02036,35.364406],[115.093657,35.41611],[115.237171,35.422937],[115.357895,35.498475],[115.383148,35.569076],[115.48601,35.710091],[115.693582,35.75429],[115.773654,35.854252],[115.875284,35.859102],[115.911624,35.960385],[116.048979,35.970071],[116.099486,36.111826],[115.989849,36.045576],[115.646155,35.920663],[115.496481,35.885283],[115.460141,35.86783],[115.363438,35.78002],[115.335105,35.796522],[115.362822,35.972008],[115.447822,36.012672],[115.483547,36.149036],[115.466916,36.259115],[115.366518,36.308793],[115.308004,36.461967],[115.283366,36.486505],[115.365902,36.622043],[115.479851,36.76022],[115.683727,36.808139],[115.71206,36.883313],[115.79706,36.968931],[115.776734,36.992829],[115.868509,37.076414],[115.909777,37.206622],[115.969523,37.239497],[115.984921,37.326616],[116.051443,37.367998],[116.169087,37.384164],[116.236224,37.361816],[116.2855,37.404604],[116.226369,37.428365],[116.240536,37.489633],[116.27626,37.466841],[116.291659,37.557966],[116.337238,37.580255],[116.379738,37.521909],[116.38097,37.522858]]]},"properties":{"id":27,"adcode":370000,"name":"山东","cp":[118.186283,36.374485],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[106.06953,35.458034],[106.071994,35.463395],[106.078153,35.489707],[106.070762,35.491655],[106.015943,35.52234],[105.868734,35.53987],[105.847176,35.490681],[105.690727,35.698431],[105.754785,35.730494],[105.671017,35.749434],[105.570003,35.716407],[105.481924,35.727094],[105.392613,35.865405],[105.333483,35.887707],[105.343954,36.033965],[105.513337,36.150003],[105.460366,36.223887],[105.473301,36.298185],[105.401236,36.370002],[105.398156,36.430683],[105.319932,36.536038],[105.281744,36.522575],[105.22015,36.631167],[105.218302,36.730494],[105.319932,36.742961],[105.334714,36.800953],[105.244787,36.894798],[105.190585,36.886185],[105.165331,36.995218],[104.95468,37.040125],[104.85613,37.211864],[104.775442,37.246641],[104.638087,37.201857],[104.600515,37.242831],[104.632544,37.299015],[104.713848,37.32947],[104.679971,37.407931],[104.437907,37.445943],[104.287002,37.42789],[104.407726,37.464467],[104.419429,37.511943],[104.801311,37.538516],[104.866601,37.566503],[105.024281,37.579781],[105.111128,37.633818],[105.315004,37.702018],[105.598952,37.699178],[105.622974,37.778669],[105.760944,37.799947],[105.80406,37.861854],[105.799749,37.940227],[105.840401,38.003902],[105.780655,38.084949],[105.775111,38.186601],[105.86627,38.296565],[105.821307,38.366967],[105.874277,38.593197],[105.852719,38.641349],[105.90569,38.731488],[105.897683,38.788875],[106.003625,38.874636],[105.97098,38.909097],[106.060907,38.968667],[106.096631,39.08487],[106.145907,39.153108],[106.283877,39.14522],[106.284493,39.270397],[106.402753,39.291701],[106.506231,39.269934],[106.602318,39.375466],[106.683622,39.357426],[106.751375,39.381478],[106.806809,39.318554],[106.795723,39.214327],[106.859164,39.107623],[106.96757,39.054676],[106.954019,38.941215],[106.709491,38.718885],[106.66268,38.601614],[106.647897,38.470569],[106.601702,38.392295],[106.482825,38.319571],[106.546883,38.269794],[106.768621,38.174843],[107.014997,38.120261],[107.19054,38.154144],[107.329742,38.087774],[107.438147,37.992586],[107.419669,37.940699],[107.49235,37.944945],[107.65003,37.864688],[107.620465,37.775832],[107.499125,37.7659],[107.484959,37.706279],[107.348836,37.608226],[107.342061,37.515265],[107.284162,37.482036],[107.257677,37.337082],[107.336517,37.165628],[107.268764,37.099324],[107.180685,37.143692],[107.095685,37.115548],[107.030395,37.140831],[106.891193,37.098369],[106.777244,37.156569],[106.750143,37.098847],[106.605397,37.127475],[106.666991,37.01672],[106.595542,36.940243],[106.658368,36.811972],[106.631883,36.723301],[106.589383,36.750153],[106.519782,36.708912],[106.471738,36.581214],[106.401521,36.546133],[106.521014,36.479289],[106.488369,36.400348],[106.505615,36.265869],[106.599238,36.274552],[106.858548,36.206992],[106.957715,36.091522],[106.950939,36.004444],[106.849925,35.887707],[106.92199,35.803316],[106.86594,35.737779],[106.737208,35.689198],[106.504383,35.738265],[106.501304,35.737779],[106.434782,35.688712],[106.476666,35.580756],[106.440941,35.526723],[106.503767,35.415135],[106.472354,35.310716],[106.319601,35.265296],[106.174856,35.438538],[106.107102,35.364894],[106.079385,35.427325],[106.071378,35.449261],[106.06953,35.458034]]]},"properties":{"id":28,"adcode":640000,"name":"宁夏","cp":[105.9961,37.1096],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[106.079385,35.427325],[106.107102,35.364894],[106.174856,35.438538],[106.319601,35.265296],[106.472354,35.310716],[106.503767,35.415135],[106.440941,35.526723],[106.476666,35.580756],[106.434782,35.688712],[106.501304,35.737779],[106.504383,35.738265],[106.737208,35.689198],[106.86594,35.737779],[106.92199,35.803316],[106.849925,35.887707],[106.950939,36.004444],[106.957715,36.091522],[106.858548,36.206992],[106.599238,36.274552],[106.505615,36.265869],[106.488369,36.400348],[106.521014,36.479289],[106.401521,36.546133],[106.471738,36.581214],[106.519782,36.708912],[106.589383,36.750153],[106.631883,36.723301],[106.658368,36.811972],[106.595542,36.940243],[106.666991,37.01672],[106.605397,37.127475],[106.750143,37.098847],[106.777244,37.156569],[106.891193,37.098369],[107.030395,37.140831],[107.095685,37.115548],[107.180685,37.143692],[107.268764,37.099324],[107.288474,37.00812],[107.310032,36.912501],[107.478183,36.908674],[107.540393,36.828736],[107.720863,36.802391],[107.907493,36.751591],[107.939522,36.655651],[108.004811,36.683006],[108.007891,36.61628],[108.163724,36.563916],[108.194521,36.625405],[108.262274,36.549497],[108.340498,36.55911],[108.407636,36.458117],[108.495099,36.422498],[108.510498,36.474478],[108.618903,36.434052],[108.651548,36.384936],[108.646004,36.25429],[108.712526,36.13889],[108.656475,35.952636],[108.588722,35.950214],[108.498179,35.876072],[108.524664,35.839703],[108.517273,35.715921],[108.539447,35.605569],[108.618287,35.556908],[108.631222,35.418548],[108.614591,35.32878],[108.48894,35.275066],[108.352817,35.285812],[108.2401,35.256014],[108.174811,35.305345],[108.049159,35.254059],[107.867457,35.256014],[107.745501,35.311693],[107.651878,35.239889],[107.686371,35.217895],[107.757204,35.076016],[107.863761,34.996161],[107.804631,34.95694],[107.634016,34.950565],[107.561951,34.966747],[107.523763,34.909851],[107.286626,34.931927],[107.252134,34.880896],[107.189308,34.893166],[107.089526,34.976553],[107.08275,35.024095],[106.901664,35.094621],[106.838222,35.079933],[106.710723,35.100495],[106.5746,35.089236],[106.494528,35.005964],[106.493296,34.941247],[106.575216,34.769893],[106.505615,34.74679],[106.419384,34.643482],[106.314058,34.578973],[106.334384,34.517864],[106.455108,34.531667],[106.610325,34.454244],[106.624491,34.410323],[106.717498,34.369342],[106.663912,34.24331],[106.526557,34.291768],[106.585071,34.149282],[106.501919,34.104706],[106.474202,33.970836],[106.41076,33.906304],[106.493296,33.846197],[106.461883,33.789528],[106.480362,33.715403],[106.539492,33.691013],[106.58076,33.575937],[106.54134,33.513103],[106.456956,33.533055],[106.447101,33.613316],[106.303587,33.604347],[106.187174,33.54652],[106.129276,33.604347],[105.956197,33.612818],[105.842248,33.490152],[105.82993,33.382802],[105.723372,33.390796],[105.74801,33.298827],[105.862574,33.234291],[105.965436,33.204759],[105.930944,33.177721],[105.917393,32.993739],[105.735691,32.905372],[105.590329,32.876734],[105.49917,32.911902],[105.414171,32.921948],[105.391381,32.835017],[105.455439,32.737433],[105.347033,32.682558],[105.111128,32.59388],[105.026745,32.650322],[104.881999,32.600938],[104.845659,32.653848],[104.739717,32.635711],[104.643015,32.661908],[104.582653,32.722333],[104.458849,32.748504],[104.363994,32.822448],[104.294393,32.83552],[104.288234,32.94304],[104.378161,32.953081],[104.426204,33.0108],[104.337509,33.038392],[104.378161,33.109086],[104.303632,33.304328],[104.432979,33.325828],[104.292545,33.336326],[104.22048,33.404782],[104.155191,33.542531],[104.168741,33.611821],[104.046169,33.686533],[103.871243,33.68255],[103.778236,33.658648],[103.626099,33.727347],[103.520157,33.678566],[103.525085,33.798975],[103.349542,33.74327],[103.279325,33.806433],[103.153057,33.814884],[103.181391,33.900842],[103.124108,33.968354],[103.119797,34.034822],[103.178927,34.079931],[103.124108,34.16166],[102.973203,34.205217],[102.978747,34.249246],[102.911609,34.313022],[102.798276,34.272982],[102.599328,34.145321],[102.655994,34.113623],[102.471213,34.072993],[102.437336,34.087364],[102.391756,33.970836],[102.315996,33.994154],[102.237772,33.963392],[102.136142,33.965377],[102.234076,33.870046],[102.239619,33.788036],[102.299981,33.782566],[102.342481,33.725357],[102.33817,33.614313],[102.440416,33.57494],[102.462589,33.449724],[102.396684,33.40678],[102.264873,33.417269],[102.186649,33.332327],[102.217446,33.248303],[102.112736,33.287324],[102.08933,33.204759],[101.935345,33.186734],[101.865744,33.103072],[101.841723,33.184731],[101.769658,33.268816],[101.878063,33.315829],[101.885454,33.380804],[101.9452,33.437742],[101.907012,33.542032],[101.844186,33.602353],[101.769042,33.538541],[101.735781,33.49614],[101.622448,33.502127],[101.582412,33.675081],[101.501724,33.70296],[101.385312,33.644702],[101.238718,33.685039],[101.166653,33.660142],[101.191907,33.786047],[101.153718,33.844706],[100.999118,33.889419],[100.806329,34.155224],[100.764445,34.178987],[100.821727,34.317469],[100.895024,34.375268],[100.986799,34.374774],[101.054552,34.322905],[101.235022,34.325376],[101.331109,34.245289],[101.530057,34.21066],[101.622448,34.178492],[101.736397,34.079931],[101.84665,34.150272],[101.955055,34.10966],[101.965526,34.167601],[102.062229,34.227976],[102.067772,34.293746],[102.149692,34.271993],[102.189728,34.355018],[102.237156,34.343163],[102.237772,34.343163],[102.210054,34.399462],[102.155852,34.507511],[102.003715,34.538074],[101.919947,34.621821],[101.917483,34.875497],[102.048062,34.910832],[102.094874,34.986848],[102.218677,35.058386],[102.29567,35.071609],[102.310452,35.128883],[102.402227,35.191006],[102.370814,35.262854],[102.279655,35.304857],[102.317228,35.433663],[102.407155,35.408308],[102.447807,35.437563],[102.504473,35.583189],[102.742226,35.495065],[102.808747,35.560315],[102.686175,35.772253],[102.78411,35.862496],[102.955957,35.861041],[102.971971,35.995247],[102.882044,36.082335],[102.941174,36.105058],[102.98737,36.193956],[103.068058,36.203612],[103.024326,36.257185],[102.830305,36.358439],[102.830305,36.362294],[102.769943,36.472072],[102.761936,36.568721],[102.606719,36.682526],[102.704654,36.792329],[102.587009,36.869912],[102.56114,36.919676],[102.450271,36.968453],[102.506321,37.019108],[102.488459,37.079278],[102.642444,37.099801],[102.599944,37.174687],[102.457662,37.24807],[102.428097,37.308534],[102.19712,37.420287],[102.102881,37.48441],[102.130598,37.544684],[102.035743,37.627184],[102.036359,37.684974],[101.946432,37.728051],[101.815853,37.65419],[101.791832,37.695864],[101.659405,37.733256],[101.597195,37.828308],[101.459224,37.866105],[101.362522,37.791437],[101.150639,37.876969],[100.887633,38.050562],[100.93814,38.160261],[100.825423,38.158849],[100.74843,38.239724],[100.619083,38.265567],[100.546402,38.246773],[100.474953,38.289052],[100.318505,38.329428],[100.261222,38.366498],[100.24028,38.441519],[100.064122,38.518802],[100.001296,38.466821],[100.093071,38.4073],[100.157744,38.309712],[100.182998,38.221864],[100.126332,38.231735],[99.937238,38.34163],[99.826985,38.370251],[99.65945,38.449017],[99.555972,38.520207],[99.50916,38.608628],[99.450646,38.60442],[99.361951,38.718418],[99.222133,38.788875],[99.068764,38.896991],[99.1088,38.946334],[98.951735,38.987737],[98.816845,39.085799],[98.743548,39.086728],[98.584635,38.930046],[98.457752,38.952849],[98.383839,39.029581],[98.280977,39.027257],[98.251412,38.891403],[98.094964,38.786077],[98.009348,38.859262],[97.828878,38.930046],[97.701379,38.963085],[97.679205,39.010522],[97.371235,39.14058],[97.220946,39.192999],[96.962867,39.198564],[97.012142,39.141972],[96.969643,39.097873],[96.940693,38.907701],[96.983809,38.869046],[97.009063,38.702544],[97.057722,38.672654],[97.055874,38.5946],[96.975802,38.559519],[96.7941,38.60816],[96.780549,38.504289],[96.6666,38.483684],[96.698013,38.422302],[96.626564,38.356177],[96.665369,38.230325],[96.46334,38.27778],[96.335841,38.246303],[96.313051,38.162142],[96.221892,38.148969],[96.109175,38.187072],[96.063596,38.172962],[95.856024,38.284355],[95.83693,38.343977],[95.702039,38.400736],[95.51849,38.295156],[95.320157,38.32051],[95.261027,38.301261],[95.121825,38.417615],[94.973999,38.430271],[94.810775,38.385261],[94.67958,38.387137],[94.527443,38.36556],[94.511429,38.445268],[94.370379,38.762753],[94.336242,38.795953],[94.053213,38.794211],[93.964825,38.770972],[93.842545,38.79384],[93.750647,38.834893],[93.745331,38.859712],[93.762583,38.885646],[93.905542,38.893765],[93.864159,38.937853],[93.758195,38.984654],[93.523771,38.988497],[93.336991,38.985298],[93.187286,39.008315],[93.198246,39.045847],[93.131725,39.108088],[93.142196,39.160531],[92.978356,39.143364],[92.938936,39.169809],[92.866871,39.138723],[92.489916,39.09973],[92.41046,39.038412],[92.366728,39.059322],[92.339011,39.236575],[92.52564,39.368528],[92.639589,39.514543],[92.745531,39.868137],[92.796654,40.15364],[92.906907,40.310773],[93.001574,40.420205],[93.011291,40.675962],[93.810581,40.740178],[93.820961,40.793574],[93.809874,40.879583],[94.01067,41.114857],[94.184365,41.268392],[94.534219,41.50586],[94.750413,41.538114],[94.861898,41.668309],[95.135991,41.772811],[95.29552,41.569456],[95.39407,41.693333],[95.57146,41.796011],[95.677402,41.830795],[95.855408,41.849516],[96.038342,41.924794],[96.117183,41.985753],[96.13874,42.054207],[96.077147,42.149652],[96.178161,42.217929],[96.040806,42.3264],[96.06606,42.414367],[95.978596,42.436892],[96.02356,42.54234],[96.103632,42.604026],[96.386348,42.727655],[96.742361,42.757096],[96.968411,42.756218],[97.160155,42.792968],[97.356883,42.772196],[97.877507,41.734585],[97.672067,41.584454],[97.653198,41.543986],[98.042072,41.175972],[98.349802,40.992392],[98.346029,40.655049],[98.640156,40.745966],[98.582075,40.818466],[98.646159,40.838022],[98.713939,40.729935],[98.813984,40.667578],[98.805394,40.7647],[98.998669,40.837488],[99.024244,40.792598],[99.059555,40.756183],[99.125264,40.741931],[99.185536,40.815605],[99.20213,40.910242],[99.567076,40.888391],[99.685565,40.984523],[100.057346,40.908077],[100.107853,40.875511],[100.237201,40.716977],[100.242744,40.618495],[100.169447,40.541242],[100.169447,40.277458],[100.002528,40.197528],[99.965637,40.085346],[99.482823,39.954193],[99.472919,39.910383],[99.792319,39.913871],[99.957648,39.807423],[100.044541,39.77973],[100.142343,39.729488],[100.294461,39.701773],[100.339475,39.627854],[100.344808,39.55067],[100.509464,39.498849],[100.520597,39.482052],[100.52477,39.414981],[100.842053,39.405523],[100.857664,39.39543],[100.842669,39.199955],[100.864227,39.106695],[100.835278,39.025863],[100.961545,39.005873],[100.969553,38.9468],[101.117378,38.97518],[101.228863,39.02075],[101.198682,38.943077],[101.24303,38.86066],[101.334189,38.848545],[101.307087,38.802865],[101.562702,38.712816],[101.601506,38.6549],[101.679115,38.690869],[101.777049,38.660507],[101.941505,38.808926],[102.075164,38.891403],[101.926106,39.000758],[101.830636,39.093229],[102.280887,39.190217],[102.45335,39.25511],[102.601792,39.172129],[103.007696,39.09973],[103.344615,39.331514],[103.595302,39.386565],[103.839214,39.460516],[103.964865,39.455434],[104.091133,39.418466],[104.047401,39.297721],[104.162481,39.140495],[104.171081,39.090641],[104.162414,38.970776],[104.032425,38.733752],[103.897484,38.605974],[103.486209,38.375766],[103.507838,38.281068],[103.583556,38.138076],[103.293907,38.046887],[103.315779,37.869882],[103.53165,37.814113],[103.713025,37.699209],[103.948235,37.564606],[104.183524,37.406981],[104.287002,37.42789],[104.437907,37.445943],[104.679971,37.407931],[104.713848,37.32947],[104.632544,37.299015],[104.600515,37.242831],[104.638087,37.201857],[104.775442,37.246641],[104.85613,37.211864],[104.95468,37.040125],[105.165331,36.995218],[105.190585,36.886185],[105.244787,36.894798],[105.334714,36.800953],[105.319932,36.742961],[105.218302,36.730494],[105.22015,36.631167],[105.281744,36.522575],[105.319932,36.536038],[105.398156,36.430683],[105.401236,36.370002],[105.473301,36.298185],[105.460366,36.223887],[105.513337,36.150003],[105.343954,36.033965],[105.333483,35.887707],[105.392613,35.865405],[105.481924,35.727094],[105.570003,35.716407],[105.671017,35.749434],[105.754785,35.730494],[105.690727,35.698431],[105.847176,35.490681],[105.868734,35.53987],[106.015943,35.52234],[106.070762,35.491655],[106.078153,35.489707],[106.071994,35.463395],[106.06953,35.458034],[106.071378,35.449261],[106.079385,35.427325]]]},"properties":{"id":29,"adcode":620000,"name":"甘肃","cp":[102.7129,38.166],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[109.48245,26.029687],[109.449805,26.101709],[109.486761,26.148445],[109.439334,26.238641],[109.466435,26.314288],[109.340784,26.264399],[109.285965,26.296052],[109.326001,26.427398],[109.407305,26.532902],[109.35495,26.693383],[109.454117,26.761252],[109.52187,26.748964],[109.504624,26.805051],[109.500928,26.828546],[109.486761,26.895267],[109.555131,26.947015],[109.520022,27.058433],[109.454733,27.069622],[109.472595,27.135136],[109.415928,27.15377],[109.267487,27.128746],[109.164625,27.065893],[109.07901,27.115965],[108.87575,26.999273],[108.791366,27.084539],[108.878829,27.106378],[108.907162,27.2054],[109.040821,27.276151],[109.142451,27.418051],[109.202197,27.449913],[109.300132,27.423893],[109.303211,27.475396],[109.461508,27.567724],[109.470747,27.68011],[109.332777,27.782853],[109.345711,27.840537],[109.30198,27.956342],[109.378972,28.032948],[109.298284,28.036117],[109.340168,28.190216],[109.388211,28.268236],[109.27303,28.310386],[109.274262,28.494592],[109.321074,28.581322],[109.304443,28.623871],[109.201581,28.598133],[109.2989,28.747221],[109.241002,28.776594],[109.235458,28.882476],[109.319842,29.042667],[109.232378,29.119533],[109.274262,29.122146],[109.258248,29.21932],[109.352487,29.284574],[109.343863,29.369602],[109.458428,29.513414],[109.516326,29.62582],[109.717739,29.614897],[109.714043,29.673139],[109.775637,29.755244],[109.869876,29.774462],[110.02386,29.769788],[110.113788,29.789521],[110.219729,29.746413],[110.360779,29.635702],[110.507373,29.691853],[110.642264,29.777578],[110.60038,29.839877],[110.498134,29.910955],[110.557264,29.988201],[110.497518,30.05503],[110.650887,30.077814],[110.712481,30.033277],[110.746973,30.113015],[110.924364,30.111463],[110.929907,30.063316],[111.244036,30.039492],[111.39063,29.914585],[111.709686,29.897988],[111.723853,29.909399],[111.807005,29.904213],[111.862439,29.856484],[111.962222,29.837282],[111.95483,29.796791],[112.07617,29.740179],[112.111279,29.659622],[112.303452,29.585244],[112.281278,29.536842],[112.369973,29.542048],[112.439574,29.633622],[112.687182,29.592528],[112.788812,29.681457],[112.79374,29.736023],[112.861493,29.78329],[112.926782,29.763036],[112.926782,29.692372],[113.020405,29.772384],[113.004391,29.692892],[112.912,29.607095],[112.950188,29.472792],[113.057362,29.522265],[113.078304,29.438407],[113.145441,29.449349],[113.37765,29.703287],[113.566127,29.846105],[113.547033,29.675219],[113.664678,29.683536],[113.736743,29.576918],[113.630801,29.523307],[113.753373,29.43997],[113.686236,29.392021],[113.606779,29.253779],[113.689931,29.230808],[113.66283,29.1697],[113.749677,29.060973],[113.816199,29.105419],[113.877793,29.035343],[113.94185,29.047374],[113.966488,28.945326],[114.008988,28.955273],[114.076741,28.834266],[114.152502,28.83479],[114.157429,28.761384],[114.08598,28.558201],[114.218407,28.484601],[114.172212,28.432524],[114.252284,28.395687],[114.25598,28.323554],[114.107538,28.182833],[113.992357,28.161207],[114.047176,28.05724],[113.914133,27.991218],[113.864242,28.004954],[113.752141,27.933614],[113.729967,27.887086],[113.763228,27.799262],[113.607395,27.625522],[113.583374,27.524754],[113.632033,27.405303],[113.616635,27.345264],[113.872865,27.385116],[113.848844,27.225087],[113.779242,27.137265],[113.821126,27.037651],[113.927068,26.949149],[113.834677,26.803983],[113.860546,26.663978],[113.915365,26.613706],[114.106306,26.576254],[114.073046,26.480965],[114.085364,26.4065],[114.030546,26.376485],[114.029314,26.266545],[113.944314,26.16402],[114.088444,26.168316],[114.181451,26.214489],[114.237501,26.152204],[114.044096,26.076452],[114.007756,26.007104],[114.028082,25.893586],[113.971416,25.835979],[113.913517,25.701272],[113.983118,25.599332],[113.94493,25.441667],[113.887032,25.436804],[113.822974,25.331935],[113.753373,25.362756],[113.611707,25.326527],[113.535946,25.368704],[113.449715,25.359512],[113.373338,25.402758],[113.311129,25.490284],[113.248919,25.514045],[113.11834,25.445449],[113.080151,25.3833],[112.900297,25.311383],[112.867036,25.249706],[112.992688,25.247],[113.034572,25.198285],[112.96805,25.141426],[113.018557,25.082914],[112.979137,25.034133],[113.011782,24.946279],[112.871348,24.895816],[112.780805,24.896901],[112.712436,25.083456],[112.660081,25.132759],[112.414937,25.142509],[112.369357,25.189081],[112.3053,25.157132],[112.187039,25.182584],[112.155626,25.026544],[112.119902,24.963638],[112.175337,24.92729],[112.171025,24.86379],[112.097112,24.826327],[112.024431,24.739955],[111.951135,24.769839],[111.68936,24.778531],[111.570484,24.644821],[111.431282,24.687776],[111.479325,24.797543],[111.470086,24.928917],[111.43313,24.97991],[111.435593,25.09321],[111.321645,25.10513],[111.274833,25.151175],[111.200921,25.074786],[111.101754,25.035218],[111.100522,24.945736],[110.991501,24.924034],[110.951465,25.043891],[110.998892,25.161465],[111.112841,25.217232],[111.103602,25.284877],[111.301319,25.450851],[111.343202,25.602569],[111.30871,25.72014],[111.442369,25.771877],[111.43313,25.84621],[111.49226,25.868824],[111.346282,25.906504],[111.252043,25.864517],[111.189834,25.953318],[111.267442,26.058716],[111.279761,26.271911],[111.204616,26.307852],[111.092515,26.306779],[110.94469,26.373805],[110.939146,26.28425],[110.76114,26.248838],[110.612083,26.333594],[110.555416,26.286396],[110.516612,26.186035],[110.373098,26.08935],[110.325671,25.975373],[110.257301,25.961388],[110.201251,26.066241],[110.165527,26.023773],[110.065128,26.051191],[110.099005,26.16939],[109.965962,26.195699],[109.906832,26.143611],[109.864332,26.027537],[109.783028,25.988282],[109.806434,25.874746],[109.685094,25.880129],[109.730057,25.989895],[109.635203,26.047428],[109.513247,25.997962],[109.48245,26.029687]]]},"properties":{"id":30,"adcode":860000,"name":"湖南","cp":[111.5332,27.3779],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[109.232378,29.119533],[109.110422,29.215143],[109.11227,29.360737],[108.919481,29.326314],[108.927488,29.435281],[108.880677,29.442576],[108.91209,29.571714],[108.844337,29.658582],[108.785822,29.633622],[108.690968,29.689773],[108.666946,29.842472],[108.602273,29.865824],[108.504338,29.707964],[108.437201,29.741218],[108.424266,29.816],[108.371295,29.841434],[108.516041,29.885539],[108.542526,29.998047],[108.513577,30.057619],[108.56778,30.157517],[108.581947,30.255763],[108.460606,30.35959],[108.402092,30.376626],[108.42673,30.492184],[108.56778,30.468464],[108.688504,30.587519],[108.743939,30.494762],[108.808612,30.491153],[108.971836,30.627686],[109.114734,30.64416],[109.09256,30.578762],[109.103647,30.565883],[109.143683,30.521052],[109.299516,30.630775],[109.36111,30.550942],[109.35495,30.487028],[109.435638,30.59576],[109.590855,30.693566],[109.780564,30.848822],[109.893897,30.899662],[110.008462,30.883746],[110.082375,30.799496],[110.172918,30.978694],[110.135961,30.986902],[110.119947,31.088409],[110.189548,31.129391],[110.140273,31.390238],[110.054042,31.410666],[109.946252,31.506108],[109.848934,31.552008],[109.719586,31.555067],[109.76455,31.602981],[109.731289,31.700263],[109.585928,31.726731],[109.638282,31.811172],[109.584696,31.900617],[109.631507,31.962059],[109.590855,32.012807],[109.621652,32.106617],[109.592703,32.219568],[109.495385,32.300522],[109.502776,32.389489],[109.575457,32.506629],[109.637051,32.540935],[109.631507,32.599929],[109.726978,32.608498],[109.816905,32.577244],[109.910528,32.592872],[110.017701,32.546987],[110.085454,32.613034],[110.153824,32.593376],[110.206179,32.633191],[110.156903,32.683061],[110.159367,32.767122],[110.10886,32.82999],[109.988752,32.886281],[109.76455,32.909391],[109.794731,33.066977],[109.688174,33.116603],[109.576073,33.110088],[109.438718,33.152177],[109.537268,33.2438],[109.619804,33.27532],[109.732521,33.231288],[109.852013,33.247803],[110.031252,33.191742],[110.164911,33.209265],[110.218497,33.163197],[110.468569,33.181226],[110.54125,33.255809],[110.59422,33.168706],[110.702626,33.097057],[110.745741,33.147167],[110.824582,33.158188],[110.984726,33.255308],[111.032769,33.209265],[111.056791,33.192743],[111.179363,33.115601],[111.151029,33.053438],[111.238493,33.040899],[111.273601,32.971656],[111.242804,32.930486],[111.293311,32.859145],[111.380159,32.828984],[111.577875,32.593376],[111.640701,32.634703],[111.890157,32.503097],[111.948671,32.517225],[112.014576,32.450098],[112.228923,32.385447],[112.328089,32.321761],[112.390915,32.371298],[112.451893,32.344511],[112.544284,32.403635],[112.729066,32.366245],[112.733993,32.363718],[112.860877,32.395552],[112.992072,32.378373],[113.025949,32.425354],[113.118956,32.375846],[113.211962,32.431919],[113.425693,32.269161],[113.624642,32.361191],[113.664062,32.422324],[113.752757,32.388478],[113.758301,32.296476],[113.749677,32.272196],[113.783554,32.186153],[113.728735,32.0833],[113.791561,32.036142],[113.838373,31.854889],[113.954785,31.856413],[113.988662,31.750138],[114.088444,31.781677],[114.135871,31.843707],[114.195002,31.850315],[114.292936,31.752173],[114.448769,31.728257],[114.586123,31.762348],[114.549783,31.642721],[114.560869,31.561185],[114.641558,31.582085],[114.696376,31.526001],[114.778912,31.5209],[114.830035,31.458654],[115.024056,31.528551],[115.088729,31.507638],[115.12507,31.598904],[115.235323,31.556597],[115.22054,31.426494],[115.301229,31.384109],[115.373909,31.405559],[115.372062,31.349368],[115.442279,31.346303],[115.457677,31.281384],[115.516191,31.263485],[115.559307,31.160117],[115.646155,31.209768],[115.700973,31.201068],[115.763799,31.118123],[115.869125,31.147828],[115.938726,31.047409],[116.058834,31.012545],[116.071769,30.956633],[115.976298,30.931488],[115.865429,30.864231],[115.851262,30.756829],[115.782893,30.751687],[115.762567,30.685848],[115.819234,30.59782],[115.876516,30.582368],[115.921479,30.416364],[115.903001,30.313631],[115.985537,30.290901],[116.065609,30.204584],[116.091479,30.036385],[116.073616,29.970061],[116.127203,29.899544],[116.13521,29.819634],[115.965827,29.724593],[115.837096,29.748491],[115.667712,29.850257],[115.511264,29.839877],[115.471844,29.742777],[115.359127,29.646623],[115.142316,29.651822],[115.154019,29.51029],[115.00065,29.572235],[114.940904,29.494147],[114.860216,29.475917],[114.931049,29.422252],[114.759818,29.363345],[114.660652,29.393585],[114.519602,29.325271],[114.259059,29.344049],[114.252284,29.234985],[114.061959,29.204176],[113.952321,29.092871],[113.94185,29.047374],[113.877793,29.035343],[113.816199,29.105419],[113.749677,29.060973],[113.66283,29.1697],[113.689931,29.230808],[113.606779,29.253779],[113.686236,29.392021],[113.753373,29.43997],[113.630801,29.523307],[113.736743,29.576918],[113.664678,29.683536],[113.547033,29.675219],[113.566127,29.846105],[113.37765,29.703287],[113.145441,29.449349],[113.078304,29.438407],[113.057362,29.522265],[112.950188,29.472792],[112.912,29.607095],[113.004391,29.692892],[113.020405,29.772384],[112.926782,29.692372],[112.926782,29.763036],[112.861493,29.78329],[112.79374,29.736023],[112.788812,29.681457],[112.687182,29.592528],[112.439574,29.633622],[112.369973,29.542048],[112.281278,29.536842],[112.303452,29.585244],[112.111279,29.659622],[112.07617,29.740179],[111.95483,29.796791],[111.962222,29.837282],[111.862439,29.856484],[111.807005,29.904213],[111.723853,29.909399],[111.709686,29.897988],[111.39063,29.914585],[111.244036,30.039492],[110.929907,30.063316],[110.924364,30.111463],[110.746973,30.113015],[110.712481,30.033277],[110.650887,30.077814],[110.497518,30.05503],[110.557264,29.988201],[110.498134,29.910955],[110.60038,29.839877],[110.642264,29.777578],[110.507373,29.691853],[110.360779,29.635702],[110.219729,29.746413],[110.113788,29.789521],[110.02386,29.769788],[109.869876,29.774462],[109.775637,29.755244],[109.714043,29.673139],[109.717739,29.614897],[109.516326,29.62582],[109.458428,29.513414],[109.343863,29.369602],[109.352487,29.284574],[109.258248,29.21932],[109.274262,29.122146],[109.232378,29.119533]]]},"properties":{"id":31,"adcode":420000,"name":"湖北","cp":[112.2363,30.8572],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[79.039649,34.33427],[78.958961,34.386132],[78.878273,34.391563],[78.742766,34.454737],[78.708274,34.522301],[78.634977,34.538074],[78.58139,34.505539],[78.542586,34.574539],[78.436029,34.543496],[78.427405,34.594243],[78.280812,34.623298],[78.267261,34.705482],[78.213059,34.717778],[78.237696,34.882369],[78.182262,34.936832],[78.201972,34.974592],[78.123131,35.036833],[78.124979,35.108327],[78.062769,35.11469],[78.01719,35.22816],[78.013494,35.36587],[78.136066,35.49263],[78.009799,35.491655],[77.914944,35.464857],[77.816394,35.518445],[77.690742,35.448287],[77.518895,35.481912],[77.396939,35.467781],[77.307628,35.540356],[77.195527,35.519419],[77.072339,35.590974],[76.967013,35.591947],[76.83705,35.66198],[76.76129,35.65566],[76.69292,35.747492],[76.593754,35.772253],[76.566037,35.819328],[76.59745,35.895947],[76.54879,35.919209],[76.365857,35.82418],[76.298719,35.841643],[76.147198,35.833397],[76.16506,35.909033],[76.104082,36.018964],[75.961184,36.051381],[75.942706,36.137923],[76.016619,36.165461],[76.011691,36.229197],[76.060967,36.225335],[75.989518,36.340127],[76.035097,36.409017],[75.945786,36.588421],[75.871873,36.66621],[75.724048,36.750632],[75.537418,36.773161],[75.536802,36.730015],[75.458578,36.720903],[75.425933,36.778912],[75.413614,36.954588],[75.244847,36.963194],[75.130898,37.010987],[75.032348,37.01672],[74.893762,36.939764],[74.84695,37.056839],[74.739161,37.028185],[74.70898,37.084529],[74.56793,37.032961],[74.498944,37.072595],[74.465068,37.147031],[74.511263,37.239973],[74.665864,37.235686],[74.727458,37.282831],[74.816153,37.216629],[74.911008,37.23378],[74.927022,37.277594],[75.125971,37.322334],[75.153072,37.414109],[75.069304,37.513367],[75.035428,37.501026],[74.940573,37.558914],[74.891914,37.668399],[75.006478,37.771102],[74.917167,37.844847],[74.911008,37.967118],[74.821697,38.102842],[74.789668,38.324734],[74.868508,38.404018],[74.862965,38.484152],[74.792747,38.536121],[74.717603,38.542205],[74.639995,38.599744],[74.506336,38.63761],[74.229779,38.656302],[74.147859,38.676858],[74.068403,38.585714],[74.090577,38.542205],[73.926121,38.536121],[73.89902,38.579166],[73.799237,38.610966],[73.757353,38.719818],[73.769056,38.775815],[73.699455,38.857865],[73.767824,38.941215],[73.826339,38.917012],[73.820179,39.041665],[73.743187,39.029581],[73.719781,39.108088],[73.639709,39.220353],[73.542391,39.269471],[73.554094,39.350023],[73.502355,39.383791],[73.592898,39.412457],[73.61076,39.466059],[73.745651,39.461902],[73.868223,39.482686],[73.953838,39.600345],[73.905795,39.742193],[73.841737,39.756453],[73.845433,39.831389],[73.907027,39.873647],[73.910722,39.934693],[73.980324,40.004851],[73.943367,40.015849],[74.023439,40.085008],[74.26304,40.125281],[74.356662,40.089128],[74.442894,40.137175],[74.577169,40.260567],[74.673255,40.278828],[74.697893,40.344527],[74.908544,40.339055],[74.795211,40.443412],[74.819233,40.505767],[74.891914,40.507587],[74.973218,40.460258],[75.102565,40.439769],[75.13521,40.463445],[75.242383,40.448876],[75.355716,40.538059],[75.432093,40.563518],[75.550353,40.648917],[75.636584,40.624399],[75.646439,40.516684],[75.733287,40.474369],[75.669845,40.363678],[75.709265,40.28111],[75.831221,40.327196],[75.921764,40.291151],[75.986438,40.381911],[76.176147,40.381455],[76.279625,40.439314],[76.333212,40.343615],[76.442233,40.391482],[76.539551,40.4639],[76.556798,40.542606],[76.657196,40.620312],[76.676906,40.696113],[76.646725,40.760045],[76.731724,40.818935],[76.761905,40.954185],[76.85368,40.976323],[76.885709,41.027348],[76.976556,41.0638],[77.043802,41.203848],[77.088335,41.248383],[77.204449,41.287425],[77.336434,41.315298],[77.385371,41.304618],[77.467337,41.217843],[77.562343,41.170443],[77.677184,41.166146],[77.814546,41.134238],[78.073693,41.155898],[78.129291,41.228354],[78.155224,41.249192],[78.294055,41.23306],[78.509465,41.289746],[78.580774,41.481659],[78.658483,41.547879],[78.739071,41.555578],[78.804603,41.527395],[78.90225,41.512224],[78.96446,41.516695],[79.101571,41.615483],[79.180412,41.618162],[79.289433,41.70206],[79.323943,41.725509],[79.425573,41.777677],[79.550879,41.833915],[79.640806,41.884717],[79.809511,41.937149],[79.852689,42.015544],[79.918594,42.041322],[79.990223,42.049474],[79.978525,42.087247],[79.980476,42.125007],[80.032188,42.183315],[80.168005,42.207069],[80.28631,42.232993],[80.283847,42.320649],[80.229028,42.358241],[80.206238,42.428943],[80.265368,42.502211],[80.164354,42.627363],[80.228412,42.692923],[80.261673,42.825592],[80.417505,42.838755],[80.500041,42.879544],[80.602903,42.89445],[80.487106,42.94878],[80.378701,43.031497],[80.593048,43.133319],[80.79446,43.137248],[80.777214,43.30816],[80.69283,43.32035],[80.761199,43.446456],[80.75504,43.49422],[80.522215,43.816724],[80.511128,43.906887],[80.453846,43.989596],[80.449534,44.077778],[80.3941,44.127189],[80.413194,44.264461],[80.350368,44.484713],[80.411962,44.605392],[80.313412,44.704987],[80.200695,44.75642],[80.169898,44.844727],[79.999283,44.793797],[79.969102,44.877383],[79.887798,44.909173],[80.144644,45.058985],[80.24381,45.031507],[80.328194,45.069973],[80.404571,45.049264],[80.493882,45.126991],[80.599207,45.10588],[80.731634,45.156111],[80.897938,45.127413],[80.93551,45.16033],[81.024821,45.162862],[81.111669,45.218522],[81.170183,45.210935],[81.44982,45.265707],[81.575471,45.307803],[81.634601,45.357856],[81.78797,45.383497],[81.933735,45.324471],[82.052824,45.25602],[82.109491,45.211357],[82.294272,45.247596],[82.487061,45.181],[82.58746,45.224001],[82.60101,45.346083],[82.546808,45.425925],[82.281954,45.538772],[82.266555,45.620015],[82.289961,45.7166],[82.340468,45.772552],[82.342932,45.935076],[82.461808,45.979999],[82.518474,46.153938],[82.726662,46.494818],[82.829524,46.772551],[82.876335,46.82375],[82.937929,47.014193],[82.993364,47.06557],[83.02724,47.215341],[83.15474,47.236063],[83.257602,47.173057],[83.370318,47.178751],[83.418978,47.118934],[83.463325,47.131961],[83.576042,47.059049],[83.766367,47.026838],[83.932671,46.970117],[84.002888,46.990527],[84.086656,46.965217],[84.167064,46.968974],[84.345334,46.977406],[84.412186,46.982466],[84.531033,46.982466],[84.717231,46.964288],[84.818245,46.889707],[84.904905,46.817186],[85.093079,46.974033],[85.239161,47.022943],[85.429788,47.009652],[85.551137,47.039808],[85.608124,47.149263],[85.682555,47.222655],[85.675163,47.318063],[85.701649,47.384138],[85.614801,47.497853],[85.590753,47.55333],[85.547048,48.00833],[85.529186,48.02714],[85.587035,48.188486],[85.627889,48.218316],[85.66998,48.304492],[85.695489,48.335129],[85.791576,48.418986],[85.916612,48.438043],[86.225813,48.432485],[86.305269,48.491999],[86.416138,48.481688],[86.579978,48.538768],[86.640956,48.629012],[86.780774,48.73133],[86.754289,48.78458],[86.822042,48.849193],[86.757985,48.894844],[86.732731,48.995444],[86.836209,49.051159],[86.88918,49.132656],[87.088128,49.13383],[87.112766,49.155748],[87.239033,49.114644],[87.388707,49.098193],[87.43675,49.075073],[87.511894,49.101718],[87.49896,49.141268],[87.821096,49.173745],[87.867291,49.108769],[87.833415,49.050374],[87.911639,48.980132],[87.87653,48.949099],[87.763198,48.926697],[87.742256,48.881074],[87.93874,48.757765],[88.029283,48.75027],[88.089645,48.695009],[88.027436,48.62743],[87.96153,48.599344],[88.041602,48.548275],[88.10874,48.545898],[88.196819,48.493982],[88.363123,48.460267],[88.443811,48.391579],[88.503557,48.413029],[88.605803,48.337914],[88.575006,48.277423],[88.663085,48.172189],[88.79736,48.133869],[88.824461,48.106708],[88.939026,48.115497],[89.078228,47.98711],[89.231597,47.980301],[89.38127,48.046344],[89.569132,48.037943],[89.651052,47.913774],[89.735435,47.897329],[89.761921,47.835916],[89.957789,47.842743],[89.960253,47.885694],[90.086521,47.865628],[90.07605,47.777646],[90.13518,47.723337],[90.331665,47.68146],[90.398186,47.547551],[90.468403,47.497853],[90.468403,47.404795],[90.526301,47.378871],[90.488113,47.317252],[90.56141,47.207212],[90.767134,46.992568],[90.901408,46.960725],[90.958075,46.8794],[90.942676,46.825797],[91.054161,46.71761],[91.017821,46.582483],[91.079415,46.558626],[90.983328,46.374823],[90.900177,46.31204],[91.021517,46.121185],[91.028292,46.023224],[90.850285,45.888035],[90.714779,45.728714],[90.676591,45.582339],[90.671047,45.48762],[90.772677,45.432223],[90.804706,45.294756],[90.877387,45.280865],[90.881698,45.191964],[91.007966,45.218522],[91.129922,45.215993],[91.242023,45.137544],[91.37753,45.110947],[91.448978,45.156533],[91.561695,45.075466],[91.694738,45.065325],[91.803144,45.082649],[92.100026,45.081381],[92.240461,45.015859],[92.315605,45.02897],[92.501003,45.001054],[92.779407,45.050532],[92.884117,45.046727],[92.932776,45.017551],[93.174225,45.015436],[93.434767,44.955343],[93.509296,44.968044],[93.716251,44.89434],[93.723642,44.86551],[94.215162,44.667978],[94.329727,44.582811],[94.359292,44.51544],[94.470777,44.509466],[94.606283,44.448418],[94.722696,44.340681],[94.945666,44.292734],[94.998637,44.25332],[95.398381,44.294447],[95.326932,44.028756],[95.527113,44.007243],[95.623199,43.855567],[95.735916,43.597437],[95.857872,43.417779],[95.880046,43.280289],[95.921314,43.22974],[96.363558,42.900586],[96.386348,42.727655],[96.103632,42.604026],[96.02356,42.54234],[95.978596,42.436892],[96.06606,42.414367],[96.040806,42.3264],[96.178161,42.217929],[96.077147,42.149652],[96.13874,42.054207],[96.117183,41.985753],[96.038342,41.924794],[95.855408,41.849516],[95.677402,41.830795],[95.57146,41.796011],[95.39407,41.693333],[95.29552,41.569456],[95.135991,41.772811],[94.861898,41.668309],[94.750413,41.538114],[94.534219,41.50586],[94.184365,41.268392],[94.01067,41.114857],[93.809874,40.879583],[93.820961,40.793574],[93.810581,40.740178],[93.011291,40.675962],[93.001574,40.420205],[92.906907,40.310773],[92.796654,40.15364],[92.745531,39.868137],[92.639589,39.514543],[92.52564,39.368528],[92.339011,39.236575],[92.366728,39.059322],[92.41046,39.038412],[92.38459,39.000758],[92.263866,39.002153],[92.173323,38.960758],[91.966368,38.930976],[91.87952,38.884417],[91.446515,38.813588],[91.307928,38.751089],[90.831191,38.667982],[90.619308,38.664245],[90.610685,38.596003],[90.463476,38.556711],[90.480799,38.469283],[90.453563,38.438153],[90.238153,38.434263],[90.228249,38.393405],[90.292625,38.263054],[90.352607,38.233615],[90.408995,38.237762],[90.498131,38.286401],[90.589743,38.286401],[90.614503,38.204687],[90.612027,37.702733],[90.776373,37.6504],[90.882314,37.575513],[90.863836,37.534246],[90.958075,37.477763],[91.057241,37.483936],[91.099741,37.447843],[91.134849,37.32614],[91.192132,37.27807],[91.1909,37.205669],[91.280211,37.163721],[91.303617,37.01242],[91.181045,37.025318],[90.983944,36.913458],[90.853981,36.915371],[90.735105,36.827778],[90.720938,36.708912],[90.7388,36.58746],[91.035683,36.529788],[91.05293,36.432608],[91.026444,36.323738],[91.07264,36.299149],[91.124994,36.115693],[91.09235,36.088621],[90.979017,36.106992],[90.922966,36.029126],[90.841046,36.01848],[90.776373,36.086203],[90.66304,36.134058],[90.526917,36.148553],[90.430215,36.133091],[90.234962,36.161597],[90.128405,36.208923],[90.145651,36.238849],[90.028006,36.25815],[89.999057,36.169809],[89.937463,36.130675],[89.941159,36.067343],[89.711414,36.092972],[89.490291,36.150969],[89.375727,36.228231],[89.287647,36.235954],[89.232213,36.295774],[89.127503,36.249465],[89.10225,36.281305],[88.964279,36.318917],[88.926091,36.364221],[88.802903,36.337717],[88.783809,36.291916],[88.623665,36.389271],[88.573158,36.461005],[88.470912,36.482175],[88.365586,36.457636],[88.241782,36.468704],[88.134609,36.427313],[87.983088,36.437903],[87.949211,36.401312],[87.731785,36.384936],[87.570409,36.342536],[87.470626,36.354102],[87.460155,36.409498],[87.361605,36.419128],[87.306787,36.363739],[87.193454,36.349283],[87.149106,36.29722],[86.996353,36.308793],[86.887332,36.262492],[86.862078,36.300114],[86.746282,36.291916],[86.701318,36.245122],[86.515305,36.205543],[86.392733,36.206992],[86.187625,36.131158],[86.199944,36.032513],[86.132806,35.979271],[86.060125,35.846008],[85.949256,35.779049],[85.811286,35.779049],[85.65299,35.731465],[85.613569,35.652257],[85.372121,35.701346],[85.271107,35.788757],[85.159006,35.745549],[85.053065,35.751862],[84.729081,35.613353],[84.448828,35.55058],[84.45314,35.473141],[84.335495,35.414647],[84.1618,35.359039],[84.095895,35.362943],[84.005968,35.422449],[83.885244,35.367334],[83.677672,35.360991],[83.622238,35.335614],[83.451006,35.38197],[83.242203,35.420011],[83.127022,35.398554],[83.067892,35.462908],[82.998907,35.484348],[82.960719,35.671702],[82.788872,35.684824],[82.731589,35.63767],[82.628727,35.692114],[82.424852,35.713006],[82.336156,35.651284],[82.328149,35.559342],[82.033114,35.450236],[82.05344,35.350255],[81.927789,35.271158],[81.736847,35.262365],[81.675253,35.233536],[81.513261,35.235002],[81.494167,35.292161],[81.362356,35.354647],[81.219458,35.319016],[81.09935,35.407333],[81.031597,35.380506],[81.026053,35.312181],[80.844351,35.345375],[80.689135,35.33903],[80.65649,35.394165],[80.516672,35.392214],[80.412578,35.433663],[80.321419,35.386848],[80.268448,35.294114],[80.362687,35.209096],[80.257977,35.20323],[80.23026,35.147476],[80.118159,35.066222],[80.031311,35.034384],[80.034391,34.902],[79.947544,34.820993],[79.906892,34.683837],[79.801566,34.478909],[79.675914,34.451284],[79.504683,34.454737],[79.229358,34.413778],[79.161605,34.441416],[79.0107,34.399956],[79.039649,34.33427]]]},"properties":{"id":32,"adcode":650000,"name":"新疆","cp":[86.9023,41.148],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[123.319527,46.253736],[123.248078,46.273178],[123.178476,46.247944],[123.011557,46.43506],[123.002318,46.574257],[123.04605,46.617426],[123.18094,46.614138],[123.228368,46.58824],[123.276411,46.660972],[123.366338,46.677805],[123.603475,46.689299],[123.631808,46.728685],[123.625648,46.84749],[123.576989,46.891259],[123.562823,46.825797],[123.483366,46.845854],[123.52833,46.944797],[123.404526,46.935401],[123.374345,46.837668],[123.309056,46.86222],[123.221592,46.850355],[123.163694,46.740167],[123.026339,46.718841],[122.906847,46.807372],[122.895144,46.960317],[122.796594,46.938261],[122.778116,47.00277],[122.845869,47.046819],[122.679566,47.094092],[122.556378,47.17265],[122.418407,47.350503],[122.507103,47.401555],[122.543443,47.495427],[122.59395,47.547551],[122.763333,47.613338],[122.855108,47.677432],[123.166158,47.783677],[123.228983,47.840735],[123.300432,47.953861],[123.537569,48.021938],[123.746373,48.19772],[123.873256,48.281006],[124.07898,48.436058],[124.25945,48.536391],[124.314269,48.503894],[124.317964,48.347856],[124.404812,48.264679],[124.418978,48.181765],[124.467637,48.178972],[124.463942,48.097518],[124.578507,48.251931],[124.579738,48.304095],[124.51876,48.378068],[124.507674,48.445584],[124.555717,48.467805],[124.520608,48.556196],[124.579122,48.596574],[124.653651,48.777089],[124.697383,48.841711],[124.709086,48.920406],[124.808252,49.020563],[124.807636,49.108769],[124.906802,49.183915],[125.117453,49.126],[125.219699,49.188999],[125.261583,49.318656],[125.264047,49.461585],[125.228323,49.486857],[125.234482,49.592077],[125.132236,49.671909],[125.219699,49.669199],[125.222779,49.799137],[125.177815,49.829637],[125.239409,49.844687],[125.231402,49.957606],[125.294228,50.029151],[125.258504,50.103659],[125.334264,50.165023],[125.448829,50.216354],[125.466075,50.297452],[125.519662,50.315795],[125.590495,50.452378],[125.632379,50.443996],[125.740784,50.523184],[125.829479,50.561589],[125.787595,50.677373],[125.825784,50.703906],[125.758646,50.746706],[125.890457,50.805729],[126.073391,50.963514],[126.033971,51.010971],[126.059225,51.043711],[125.878138,51.159431],[125.840566,51.220555],[125.756798,51.227675],[125.743248,51.275984],[125.670567,51.34555],[125.668103,51.347419],[125.63977,51.372451],[125.623756,51.387762],[125.600966,51.413518],[125.597886,51.414638],[125.595422,51.416877],[125.567089,51.455668],[125.35151,51.623876],[125.130388,51.635389],[125.098975,51.658408],[125.047236,51.529801],[124.928976,51.498523],[124.942527,51.447465],[124.864302,51.379547],[124.783614,51.392243],[124.693687,51.332842],[124.62655,51.327608],[124.58713,51.363486],[124.490427,51.380294],[124.43684,51.353772],[124.406659,51.271867],[124.271769,51.308162],[124.239124,51.344429],[124.128255,51.347419],[124.071588,51.320878],[123.926227,51.300681],[123.842459,51.367595],[123.711264,51.398216],[123.661989,51.319008],[123.465504,51.287212],[123.294273,51.25427],[123.058984,51.321999],[122.978296,51.331346],[122.965977,51.387015],[122.903768,51.415384],[122.854492,51.477659],[122.85634,51.606786],[122.749167,51.746661],[122.771957,51.779619],[122.706051,51.890166],[122.726377,51.978704],[122.683877,51.974649],[122.629059,52.136529],[122.769493,52.179843],[122.76087,52.26671],[122.585943,52.266344],[122.478153,52.29636],[122.484313,52.341711],[122.342031,52.41403],[122.310618,52.475299],[122.207756,52.469103],[122.168952,52.513549],[122.091344,52.427167],[121.94783,52.298555],[121.841272,52.282818],[121.714389,52.317944],[121.63986,52.444311],[121.519136,52.456709],[121.416274,52.499346],[121.325731,52.572498],[121.182217,52.599399],[121.373158,52.683268],[121.476636,52.772043],[121.591201,52.824499],[121.610295,52.892416],[121.66265,52.912626],[121.715621,52.998054],[121.785838,53.018575],[121.817867,53.061744],[121.754425,53.146519],[121.665114,53.170556],[121.679896,53.240437],[121.612143,53.260484],[121.499426,53.337008],[121.596128,53.352368],[121.697758,53.392705],[121.754425,53.389494],[121.875765,53.426587],[122.111054,53.426944],[122.161561,53.468635],[122.227466,53.461868],[122.350038,53.50566],[122.435038,53.444766],[122.608117,53.46543],[122.894528,53.462936],[123.052209,53.506727],[123.137209,53.498186],[123.274563,53.563269],[123.454417,53.536608],[123.510468,53.509218],[123.517243,53.558293],[123.569598,53.505304],[123.58746,53.546919],[123.668764,53.533763],[123.698329,53.498542],[123.865249,53.489644],[124.058038,53.404121],[124.125791,53.348082],[124.239124,53.379501],[124.327819,53.332006],[124.375863,53.259053],[124.435609,53.223962],[124.563108,53.201389],[124.683832,53.206406],[124.734339,53.146519],[124.832889,53.145083],[124.87231,53.099123],[124.887708,53.164458],[124.970244,53.194221],[125.195062,53.198522],[125.315786,53.145083],[125.503647,53.095171],[125.530749,53.050956],[125.613901,53.083313],[125.684118,53.008136],[125.742632,52.993733],[125.737704,52.945087],[125.665023,52.913348],[125.678574,52.860999],[125.772197,52.89783],[125.855349,52.866418],[125.985312,52.758648],[126.058609,52.798098],[126.115275,52.757924],[126.045058,52.738366],[126.061688,52.673473],[125.995783,52.675287],[125.968682,52.630279],[126.030891,52.576135],[126.066616,52.60376],[126.213209,52.5252],[126.205202,52.466187],[126.266796,52.475664],[126.353644,52.389207],[126.327774,52.310628],[126.4331,52.298555],[126.300673,52.220915],[126.34502,52.192315],[126.499005,52.160394],[126.563679,52.119266],[126.514404,52.037264],[126.450962,52.027693],[126.462665,51.948473],[126.510092,51.922281],[126.622809,51.777397],[126.734294,51.711454],[126.741069,51.642073],[126.69549,51.578536],[126.837156,51.536128],[126.784185,51.44821],[126.908605,51.407174],[126.930163,51.359376],[126.837156,51.345177],[126.841468,51.258763],[126.92154,51.259512],[126.887047,51.321999],[126.978822,51.329477],[126.976358,51.291702],[126.899982,51.200689],[126.922772,51.061764],[127.143894,50.91035],[127.236285,50.781524],[127.295415,50.755035],[127.294799,50.663721],[127.370559,50.581349],[127.293567,50.46571],[127.3644,50.43828],[127.332371,50.340623],[127.371791,50.296688],[127.603385,50.23932],[127.58737,50.137802],[127.501755,50.056817],[127.495595,49.994545],[127.543638,49.944131],[127.531936,49.825777],[127.563964,49.793343],[127.660051,49.77905],[127.677913,49.697846],[127.815268,49.594017],[127.897804,49.578889],[128.001281,49.592465],[128.070882,49.55677],[128.185447,49.539301],[128.287077,49.566473],[128.343128,49.545125],[128.389939,49.590138],[128.537764,49.604487],[128.715155,49.56492],[128.744104,49.594792],[128.813089,49.558323],[128.754575,49.506676],[128.792147,49.473251],[128.871604,49.492298],[129.013886,49.457307],[129.055769,49.382188],[129.143849,49.357253],[129.215298,49.398935],[129.320623,49.358422],[129.379138,49.366995],[129.390224,49.432799],[129.448739,49.441359],[129.546057,49.395041],[129.562687,49.299541],[129.604571,49.278858],[129.714209,49.296029],[129.761636,49.257384],[129.753629,49.208547],[129.847867,49.181177],[129.866962,49.114252],[129.913157,49.108377],[129.937179,49.04057],[130.020946,49.020955],[130.059135,48.978954],[130.211272,48.901137],[130.245148,48.866514],[130.471198,48.905464],[130.501995,48.86612],[130.680617,48.881074],[130.689856,48.849586],[130.622103,48.783792],[130.538335,48.612004],[130.605473,48.5942],[130.620871,48.495964],[130.767465,48.507858],[130.740363,48.425339],[130.845073,48.296533],[130.769313,48.23121],[130.765617,48.189344],[130.673842,48.128278],[130.699711,48.044344],[130.891269,47.927006],[130.961486,47.827882],[130.966413,47.732996],[131.029855,47.694752],[131.115471,47.689919],[131.273767,47.739032],[131.456085,47.747079],[131.543548,47.735813],[131.59036,47.660912],[131.695685,47.709248],[131.825649,47.677432],[131.970394,47.671388],[132.000575,47.712066],[132.086191,47.703208],[132.272205,47.718507],[132.371987,47.76518],[132.469305,47.726154],[132.570319,47.720922],[132.599268,47.792521],[132.687348,47.885293],[132.661478,47.944643],[132.723072,47.963076],[132.819159,47.937028],[132.883216,48.002325],[132.992238,48.035142],[133.041513,48.102313],[133.15423,48.137063],[133.302055,48.103112],[133.407997,48.124684],[133.536728,48.117494],[133.59709,48.194928],[133.693177,48.186951],[133.740604,48.25472],[134.0689,48.338311],[134.131109,48.335527],[134.20379,48.38244],[134.350384,48.378466],[134.501905,48.418986],[134.696542,48.407072],[134.820961,48.376081],[134.927519,48.451537],[135.09567,48.437646],[135.082736,48.396346],[134.864077,48.332345],[134.679295,48.256314],[134.67252,48.170593],[134.632484,48.099516],[134.551796,48.032742],[134.607846,47.909362],[134.660201,47.900538],[134.678679,47.819446],[134.772918,47.763572],[134.779694,47.716091],[134.684223,47.631889],[134.685455,47.603253],[134.576434,47.519273],[134.568426,47.478445],[134.493898,47.446894],[134.339297,47.43961],[134.177305,47.32658],[134.156979,47.248656],[134.230276,47.182411],[134.222268,47.105496],[134.142812,47.093277],[134.042414,46.886761],[134.011001,46.637971],[133.919842,46.596052],[133.852089,46.449903],[133.950023,46.394634],[133.876726,46.362438],[133.922922,46.330635],[133.904444,46.25084],[133.83977,46.202825],[133.706111,46.163056],[133.745531,46.075547],[133.676546,45.942982],[133.616184,45.943398],[133.576148,45.870957],[133.51209,45.886785],[133.470822,45.838035],[133.484373,45.738737],[133.445569,45.70532],[133.491764,45.672301],[133.371656,45.576895],[133.21028,45.516975],[133.141295,45.427605],[133.095715,45.246753],[133.138215,45.178469],[133.103107,45.107147],[132.945426,45.020512],[132.867202,45.061944],[132.394161,45.163706],[132.025829,45.250545],[131.93159,45.288442],[131.917423,45.339354],[131.82996,45.31159],[131.79362,45.211778],[131.721555,45.234536],[131.650722,45.159909],[131.695685,45.132056],[131.632244,45.074621],[131.484418,44.995553],[131.464708,44.963388],[131.355687,44.98963],[131.274999,44.919766],[131.16105,44.948145],[131.090217,44.924426],[131.07913,44.881623],[130.967029,44.854059],[131.016304,44.789551],[131.064348,44.787003],[131.111775,44.71009],[131.310723,44.046392],[131.263912,44.030047],[131.267608,43.938778],[131.211557,43.826221],[131.244818,43.604369],[131.20047,43.531971],[131.304564,43.502033],[131.294093,43.469909],[131.134565,43.428643],[131.026775,43.508542],[130.907283,43.434291],[130.841378,43.454274],[130.823515,43.502901],[130.488444,43.655905],[130.4133,43.652009],[130.423771,43.742853],[130.380039,43.783904],[130.383119,43.906025],[130.338155,43.949979],[130.353554,44.050262],[130.260547,43.948256],[130.189098,43.940501],[130.079461,43.835285],[130.027106,43.851684],[130.017251,43.962039],[129.98091,44.014128],[129.880512,44.000357],[129.869425,44.005521],[129.784426,43.964623],[129.742542,43.875841],[129.467833,43.874548],[129.406855,43.819314],[129.211602,43.784336],[129.230696,43.59527],[129.014501,43.523295],[128.949212,43.55409],[128.877763,43.540213],[128.719467,43.816724],[128.760734,43.857724],[128.723778,43.894816],[128.636315,43.891366],[128.644938,43.936193],[128.584576,43.990887],[128.574721,44.047682],[128.450301,44.203157],[128.481714,44.375332],[128.46262,44.433894],[128.373309,44.51416],[128.211317,44.431757],[128.190375,44.367206],[128.049941,44.349239],[128.101679,44.290593],[128.089977,44.132342],[128.059796,44.110007],[127.862079,44.063162],[127.729036,44.098836],[127.724109,44.196723],[127.681609,44.167116],[127.591066,44.227601],[127.623095,44.277743],[127.483892,44.401842],[127.50853,44.437312],[127.463566,44.484713],[127.536247,44.522266],[127.557189,44.575566],[127.392733,44.632223],[127.182082,44.644144],[127.094003,44.615189],[127.049039,44.567041],[127.037336,44.72157],[126.984366,44.823936],[127.021938,44.899002],[127.085995,44.944757],[126.968351,45.074621],[126.96404,45.132056],[126.831613,45.146406],[126.567375,45.252651],[126.428172,45.2358],[126.321615,45.178891],[126.166398,45.133323],[125.915095,45.196602],[125.760494,45.291389],[125.697052,45.349447],[125.716146,45.421725],[125.687813,45.51404],[125.628067,45.522006],[125.497488,45.469161],[125.424807,45.485523],[125.398322,45.416686],[125.347815,45.395262],[125.248649,45.417526],[125.06941,45.384757],[125.025678,45.493492],[124.961005,45.49517],[124.923433,45.541286],[124.886476,45.442719],[124.625318,45.437262],[124.544014,45.412066],[124.480572,45.456151],[124.398652,45.44062],[124.354305,45.546734],[124.287783,45.539191],[124.273001,45.584014],[124.129487,45.637589],[124.13811,45.68735],[124.009379,45.78215],[124.064813,45.797586],[124.061118,45.886369],[123.996444,45.907189],[123.970574,45.971267],[124.040176,46.019484],[123.99398,46.101275],[123.982893,46.22601],[123.896046,46.303774],[123.779633,46.264078],[123.610866,46.252909],[123.565902,46.22601],[123.498765,46.259528],[123.373113,46.223112],[123.319527,46.253736]]]},"properties":{"id":33,"adcode":230000,"name":"黑龙江","cp":[128.1445,46.7156],"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[125.177815,49.829637],[125.222779,49.799137],[125.219699,49.669199],[125.132236,49.671909],[125.234482,49.592077],[125.228323,49.486857],[125.264047,49.461585],[125.261583,49.318656],[125.219699,49.188999],[125.117453,49.126],[124.906802,49.183915],[124.807636,49.108769],[124.808252,49.020563],[124.709086,48.920406],[124.697383,48.841711],[124.653651,48.777089],[124.579122,48.596574],[124.520608,48.556196],[124.555717,48.467805],[124.507674,48.445584],[124.51876,48.378068],[124.579738,48.304095],[124.578507,48.251931],[124.463942,48.097518],[124.467637,48.178972],[124.418978,48.181765],[124.404812,48.264679],[124.317964,48.347856],[124.314269,48.503894],[124.25945,48.536391],[124.07898,48.436058],[123.873256,48.281006],[123.746373,48.19772],[123.537569,48.021938],[123.300432,47.953861],[123.228983,47.840735],[123.166158,47.783677],[122.855108,47.677432],[122.763333,47.613338],[122.59395,47.547551],[122.543443,47.495427],[122.507103,47.401555],[122.418407,47.350503],[122.556378,47.17265],[122.679566,47.094092],[122.845869,47.046819],[122.778116,47.00277],[122.796594,46.938261],[122.895144,46.960317],[122.906847,46.807372],[123.026339,46.718841],[123.163694,46.740167],[123.221592,46.850355],[123.309056,46.86222],[123.374345,46.837668],[123.404526,46.935401],[123.52833,46.944797],[123.483366,46.845854],[123.562823,46.825797],[123.576989,46.891259],[123.625648,46.84749],[123.631808,46.728685],[123.603475,46.689299],[123.366338,46.677805],[123.276411,46.660972],[123.228368,46.58824],[123.18094,46.614138],[123.04605,46.617426],[123.002318,46.574257],[123.011557,46.43506],[123.178476,46.247944],[123.102716,46.172172],[123.112571,46.129894],[123.04605,46.10003],[122.792898,46.073056],[122.828623,45.912185],[122.752246,45.834701],[122.792283,45.766291],[122.741775,45.70532],[122.671558,45.700723],[122.640761,45.7713],[122.555146,45.821359],[122.504639,45.787157],[122.496016,45.858041],[122.446125,45.916764],[122.362357,45.917597],[122.372828,45.855957],[122.258879,45.794666],[122.200981,45.85679],[122.091344,45.881787],[122.040221,45.95879],[121.84312,46.02447],[121.762432,45.999538],[121.809243,45.96087],[121.817251,45.875539],[121.754425,45.795084],[121.644172,45.752516],[121.713773,45.701977],[121.811091,45.686932],[121.867142,45.719942],[121.949062,45.711169],[122.003264,45.623363],[121.966308,45.596157],[122.02359,45.490137],[122.163408,45.443979],[122.147394,45.295598],[122.239169,45.276234],[122.22993,45.20672],[122.143082,45.183108],[122.109822,45.142186],[122.119677,45.068705],[122.074713,45.006553],[122.079025,44.914258],[122.04946,44.912987],[122.114749,44.776386],[122.161561,44.728371],[122.103046,44.673935],[122.13138,44.577697],[122.196053,44.559794],[122.228082,44.480017],[122.28598,44.477883],[122.291524,44.310291],[122.271198,44.255463],[122.319241,44.232745],[122.483697,44.237032],[122.676486,44.28631],[122.76087,44.369772],[122.85634,44.398422],[123.025108,44.492823],[123.125506,44.509466],[123.128585,44.366778],[123.196955,44.34496],[123.323838,44.179991],[123.386664,44.161966],[123.32815,44.083795],[123.332461,44.028326],[123.400831,43.979264],[123.52525,43.695718],[123.5117,43.59267],[123.439019,43.577501],[123.304744,43.551055],[123.315831,43.49205],[123.382968,43.46904],[123.419925,43.409955],[123.486446,43.445587],[123.608402,43.366474],[123.703873,43.370824],[123.664453,43.264606],[123.666916,43.179585],[123.572678,43.0035],[123.515395,43.027561],[123.474743,43.04243],[123.259165,42.992997],[123.18402,42.926002],[123.169853,42.859811],[123.227752,42.831735],[123.058368,42.768957],[122.887137,42.770275],[122.831087,42.722381],[122.786123,42.756218],[122.732536,42.786524],[122.624747,42.773349],[122.563769,42.826031],[122.436886,42.843142],[122.35127,42.830419],[122.374676,42.774667],[122.457212,42.774227],[122.395002,42.683687],[122.338951,42.670051],[122.203445,42.731171],[122.20406,42.683687],[122.071634,42.711391],[121.940438,42.688525],[121.904714,42.569666],[121.66573,42.437333],[121.604752,42.494271],[121.388557,42.475297],[121.304789,42.435567],[121.285079,42.387857],[121.068884,42.252483],[120.933378,42.279493],[120.79048,42.218372],[120.745516,42.223689],[120.624792,42.154532],[120.58414,42.167394],[120.466496,42.105277],[120.456641,42.016433],[120.373489,41.994648],[120.188707,41.848179],[120.096316,41.696907],[120.035954,41.708075],[120.051968,41.775935],[119.989759,41.898969],[119.837622,42.135455],[119.846861,42.21527],[119.744615,42.211725],[119.541971,42.292329],[119.572152,42.359568],[119.502551,42.387857],[119.415703,42.309588],[119.284508,42.265325],[119.237697,42.201088],[119.315921,42.119037],[119.384906,42.089738],[119.324544,41.969296],[119.334399,41.869569],[119.294363,41.775935],[119.307914,41.657581],[119.415703,41.590044],[119.361501,41.56498],[119.405848,41.508548],[119.376283,41.422015],[119.30545,41.402271],[119.326392,41.329525],[119.239545,41.314696],[119.197661,41.282781],[118.96422,41.309303],[118.890923,41.300764],[118.843496,41.374439],[118.741866,41.324133],[118.677192,41.350639],[118.519511,41.353783],[118.35136,41.337163],[118.348896,41.428296],[118.271904,41.471349],[118.307012,41.569008],[118.230636,41.581989],[118.214006,41.641933],[118.130854,41.74246],[118.165962,41.813405],[118.29223,41.772811],[118.340273,41.872688],[118.268824,41.930136],[118.313788,41.987977],[118.237411,42.023101],[118.297157,42.048876],[118.212774,42.081301],[118.194296,42.031545],[118.119767,42.034656],[118.155491,42.081301],[118.097593,42.105277],[118.109296,42.165176],[117.977485,42.229892],[118.060021,42.298083],[118.019369,42.39537],[117.874007,42.510151],[117.779768,42.618558],[117.687377,42.582884],[117.516146,42.599622],[117.43669,42.584205],[117.387415,42.517648],[117.412669,42.472649],[117.264227,42.476621],[117.147815,42.470443],[117.133648,42.470443],[117.005533,42.4338],[117.004301,42.432476],[117.001837,42.432476],[116.995678,42.426734],[116.993214,42.425851],[116.984591,42.427176],[116.976583,42.427618],[116.944555,42.415251],[116.936547,42.410833],[116.929156,42.408182],[116.929156,42.407741],[116.927308,42.40509],[116.910062,42.394928],[116.886656,42.366641],[116.907598,42.191337],[116.789338,42.200202],[116.890352,42.092846],[116.879881,42.018211],[116.727744,41.951054],[116.560209,41.928356],[116.510933,41.974189],[116.386514,41.952389],[116.409303,41.994203],[116.310137,41.997316],[116.233145,41.941263],[116.194341,41.861995],[116.122892,41.861995],[116.09887,41.776381],[116.016334,41.777273],[115.916552,41.945269],[115.811226,41.912328],[115.654162,41.829011],[115.319091,41.691546],[115.376989,41.602126],[115.252569,41.579303],[115.0992,41.624045],[114.862064,41.603915],[114.895325,41.636567],[114.899636,41.756299],[114.866991,41.803147],[114.922426,41.824999],[114.9021,42.015544],[114.828803,42.147434],[114.765361,42.118593],[114.510978,42.111047],[114.466015,42.038656],[114.510978,41.973299],[114.34837,41.947049],[114.203009,41.793334],[114.230726,41.513477],[114.100147,41.537218],[113.930764,41.485693],[113.871017,41.41349],[113.94493,41.39105],[113.927068,41.326829],[113.996669,41.192345],[113.920293,41.172081],[113.819279,41.097726],[113.973263,40.983099],[114.073661,40.857412],[114.044712,40.83116],[114.134639,40.737381],[114.074277,40.723325],[114.041633,40.608503],[114.061959,40.528964],[113.948626,40.514865],[113.855619,40.457071],[113.794641,40.518049],[113.559968,40.348631],[113.316056,40.319898],[113.251382,40.413352],[112.892906,40.326284],[112.844863,40.203926],[112.72845,40.168272],[112.6299,40.235906],[112.456205,40.300278],[112.310227,40.256457],[112.28559,40.197985],[111.970229,39.79646],[111.93204,39.61233],[111.842729,39.620166],[111.783599,39.588819],[111.646245,39.644128],[111.502115,39.663015],[111.462079,39.626157],[111.418963,39.500232],[111.337043,39.420777],[111.171971,39.42355],[111.125776,39.366678],[111.064182,39.400899],[111.148566,39.531619],[111.134399,39.586513],[110.892335,39.509927],[110.740198,39.351874],[110.702626,39.27364],[110.604075,39.277345],[110.528315,39.380091],[110.434692,39.381016],[110.39096,39.31161],[110.243751,39.42355],[110.146432,39.455434],[110.217881,39.28105],[109.961035,39.191608],[109.665384,38.981691],[109.683862,38.935631],[109.624116,38.854603],[109.549587,38.805662],[109.511399,38.833633],[109.404226,38.720752],[109.338936,38.70161],[109.367269,38.627328],[109.276726,38.623121],[109.178792,38.520675],[109.051908,38.432146],[108.938575,38.207291],[108.963829,38.155085],[109.069155,38.091071],[109.017416,37.969949],[108.938575,37.920877],[108.871438,38.027471],[108.797525,38.047735],[108.82709,37.989285],[108.798141,37.93362],[108.799989,37.783871],[108.777815,37.683554],[108.611512,37.65419],[108.532671,37.690656],[108.440896,37.654663],[108.304158,37.638556],[108.219158,37.661295],[108.134159,37.621971],[108.025137,37.649926],[107.982022,37.787181],[107.65003,37.864688],[107.49235,37.944945],[107.419669,37.940699],[107.438147,37.992586],[107.329742,38.087774],[107.19054,38.154144],[107.014997,38.120261],[106.768621,38.174843],[106.546883,38.269794],[106.482825,38.319571],[106.601702,38.392295],[106.647897,38.470569],[106.66268,38.601614],[106.709491,38.718885],[106.954019,38.941215],[106.96757,39.054676],[106.859164,39.107623],[106.795723,39.214327],[106.806809,39.318554],[106.751375,39.381478],[106.683622,39.357426],[106.602318,39.375466],[106.506231,39.269934],[106.402753,39.291701],[106.284493,39.270397],[106.283877,39.14522],[106.145907,39.153108],[106.096631,39.08487],[106.060907,38.968667],[105.97098,38.909097],[106.003625,38.874636],[105.897683,38.788875],[105.90569,38.731488],[105.852719,38.641349],[105.874277,38.593197],[105.821307,38.366967],[105.86627,38.296565],[105.775111,38.186601],[105.780655,38.084949],[105.840401,38.003902],[105.799749,37.940227],[105.80406,37.861854],[105.760944,37.799947],[105.622974,37.778669],[105.598952,37.699178],[105.315004,37.702018],[105.111128,37.633818],[105.024281,37.579781],[104.866601,37.566503],[104.801311,37.538516],[104.419429,37.511943],[104.407726,37.464467],[104.287002,37.42789],[104.183524,37.406981],[103.948235,37.564606],[103.713025,37.699209],[103.53165,37.814113],[103.315779,37.869882],[103.293907,38.046887],[103.583556,38.138076],[103.507838,38.281068],[103.486209,38.375766],[103.897484,38.605974],[104.032425,38.733752],[104.162414,38.970776],[104.171081,39.090641],[104.162481,39.140495],[104.047401,39.297721],[104.091133,39.418466],[103.964865,39.455434],[103.839214,39.460516],[103.595302,39.386565],[103.344615,39.331514],[103.007696,39.09973],[102.601792,39.172129],[102.45335,39.25511],[102.280887,39.190217],[101.830636,39.093229],[101.926106,39.000758],[102.075164,38.891403],[101.941505,38.808926],[101.777049,38.660507],[101.679115,38.690869],[101.601506,38.6549],[101.562702,38.712816],[101.307087,38.802865],[101.334189,38.848545],[101.24303,38.86066],[101.198682,38.943077],[101.228863,39.02075],[101.117378,38.97518],[100.969553,38.9468],[100.961545,39.005873],[100.835278,39.025863],[100.864227,39.106695],[100.842669,39.199955],[100.857664,39.39543],[100.842053,39.405523],[100.52477,39.414981],[100.520597,39.482052],[100.509464,39.498849],[100.344808,39.55067],[100.339475,39.627854],[100.294461,39.701773],[100.142343,39.729488],[100.044541,39.77973],[99.957648,39.807423],[99.792319,39.913871],[99.472919,39.910383],[99.482823,39.954193],[99.965637,40.085346],[100.002528,40.197528],[100.169447,40.277458],[100.169447,40.541242],[100.242744,40.618495],[100.237201,40.716977],[100.107853,40.875511],[100.057346,40.908077],[99.685565,40.984523],[99.567076,40.888391],[99.20213,40.910242],[99.185536,40.815605],[99.125264,40.741931],[99.059555,40.756183],[99.024244,40.792598],[98.998669,40.837488],[98.805394,40.7647],[98.813984,40.667578],[98.713939,40.729935],[98.646159,40.838022],[98.582075,40.818466],[98.640156,40.745966],[98.346029,40.655049],[98.349802,40.992392],[98.042072,41.175972],[97.653198,41.543986],[97.672067,41.584454],[97.877507,41.734585],[97.356883,42.772196],[98.195362,42.653331],[98.546447,42.638368],[99.503001,42.568344],[99.969267,42.648051],[100.272309,42.636167],[100.32528,42.689845],[100.826655,42.67533],[101.23995,42.59698],[101.581796,42.525145],[101.803534,42.503534],[102.070236,42.232107],[102.449039,42.143885],[102.540814,42.162072],[102.712045,42.152757],[103.021862,42.02799],[103.418527,41.882489],[103.868779,41.802701],[104.080046,41.804931],[104.530298,41.874916],[104.524138,41.662051],[104.68613,41.64551],[104.923267,41.654005],[105.009498,41.583331],[105.230621,41.750942],[105.291599,41.750049],[105.74185,41.949274],[106.01348,42.03199],[106.619564,42.243625],[106.785867,42.291444],[107.051337,42.319322],[107.269996,42.363547],[107.303872,42.4126],[107.46648,42.458967],[107.57427,42.413042],[107.939522,42.403764],[108.022058,42.433359],[108.238252,42.460291],[108.298614,42.438216],[108.532671,42.443073],[108.845569,42.395811],[109.026039,42.458525],[109.291509,42.435567],[109.544044,42.472208],[109.683862,42.559089],[109.906216,42.635727],[110.108244,42.642769],[110.139657,42.67489],[110.437156,42.781254],[110.469801,42.839194],[110.631177,42.936078],[110.736502,43.089639],[110.769763,43.099251],[111.02045,43.329926],[111.183674,43.396045],[111.354289,43.436029],[111.456535,43.49422],[111.564325,43.490314],[111.79407,43.67192],[111.951135,43.693122],[111.959758,43.8232],[111.870447,43.940071],[111.773128,44.010686],[111.662875,44.061012],[111.559397,44.171408],[111.507042,44.294019],[111.415883,44.357368],[111.478709,44.488982],[111.569868,44.576418],[111.560629,44.647124],[111.624687,44.778509],[111.764505,44.969314],[111.889541,45.045459],[112.002874,45.090675],[112.113743,45.072931],[112.438959,45.071663],[112.540589,45.001054],[112.599719,44.93078],[112.850406,44.840484],[112.937869,44.84006],[113.11526,44.799741],[113.503918,44.77766],[113.631417,44.745372],[113.907358,44.915105],[114.065038,44.931204],[114.19069,45.036581],[114.347139,45.119392],[114.519602,45.283812],[114.551014,45.387699],[114.745035,45.438521],[114.974165,45.377193],[115.153403,45.395682],[115.36467,45.392321],[115.699741,45.459509],[115.936878,45.632987],[116.035428,45.68526],[116.17463,45.688604],[116.286731,45.775056],[116.288579,45.838869],[116.243,45.875956],[116.271949,45.966692],[116.414231,46.13404],[116.439484,46.137771],[116.585462,46.292199],[116.745606,46.327743],[116.826294,46.380602],[117.097308,46.35707],[117.372017,46.360373],[117.392343,46.463093],[117.447777,46.528172],[117.42006,46.582071],[117.49582,46.600574],[117.622704,46.596052],[117.704008,46.516645],[117.870927,46.549985],[117.914659,46.607973],[118.04647,46.631398],[118.124078,46.678216],[118.192448,46.682731],[118.316252,46.739347],[118.446831,46.704482],[118.586033,46.692992],[118.639004,46.721302],[118.788061,46.687246],[118.845343,46.771731],[118.914329,46.775009],[118.912481,46.733196],[119.011647,46.745498],[119.123132,46.642901],[119.26295,46.649062],[119.374435,46.60304],[119.431718,46.638793],[119.656535,46.625645],[119.677477,46.584539],[119.783419,46.626056],[119.8136,46.668363],[119.911534,46.669595],[119.93494,46.712688],[119.928781,46.903933],[119.859795,46.917013],[119.795122,47.01297],[119.806825,47.054973],[119.716282,47.195829],[119.56784,47.24825],[119.559833,47.303053],[119.487152,47.329419],[119.353493,47.43192],[119.365812,47.477232],[119.152081,47.540685],[119.134219,47.664539],[118.773278,47.771213],[118.568171,47.992315],[118.424041,48.014734],[118.299621,48.005127],[118.231252,48.043943],[117.96147,48.011132],[117.813645,48.016335],[117.493357,47.758343],[117.384335,47.641162],[117.094844,47.823865],[116.879265,47.893718],[116.669846,47.890509],[116.453035,47.837522],[116.26579,47.876866],[116.111189,47.811812],[115.939342,47.683071],[115.580249,47.921793],[115.529126,48.155029],[115.822929,48.2595],[115.799523,48.514993],[115.83032,48.560156],[116.077928,48.822412],[116.048363,48.873598],[116.717889,49.847388],[116.736367,49.847388],[117.068974,49.695524],[117.278394,49.636272],[117.485349,49.633172],[117.809333,49.521049],[117.867848,49.592853],[117.980565,49.621158],[118.084658,49.618057],[118.122231,49.669586],[118.205998,49.684686],[118.225708,49.734211],[118.388316,49.786004],[118.395092,49.819601],[118.49549,49.843144],[118.485635,49.86706],[118.574946,49.931423],[118.741866,49.946441],[118.929111,49.989545],[119.092335,49.986082],[119.163168,50.027613],[119.190269,50.087538],[119.243856,50.078324],[119.360269,50.196441],[119.319001,50.220948],[119.358421,50.358949],[119.259871,50.345205],[119.125596,50.389095],[119.250631,50.448568],[119.28266,50.604899],[119.361501,50.632611],[119.383674,50.682301],[119.450196,50.695569],[119.506862,50.764118],[119.491464,50.879026],[119.633746,51.010218],[119.726137,51.050105],[119.788346,51.16656],[119.760629,51.21231],[119.944795,51.366848],[120.002693,51.459396],[119.985447,51.505227],[120.051968,51.553245],[120.035338,51.586343],[120.087077,51.678076],[120.172693,51.679931],[120.363634,51.789982],[120.398742,51.832153],[120.480046,51.855072],[120.481278,51.885735],[120.656821,51.92634],[120.719031,52.014438],[120.68577,52.036896],[120.747364,52.076996],[120.786784,52.157824],[120.7449,52.206984],[120.755371,52.258287],[120.627256,52.324161],[120.62356,52.361081],[120.688234,52.427531],[120.689466,52.516098],[120.727654,52.529568],[120.467728,52.644076],[120.40367,52.617929],[120.287873,52.623378],[120.196714,52.579043],[120.049505,52.598672],[120.035338,52.646255],[120.071063,52.706113],[120.038418,52.780006],[120.222584,52.842934],[120.350699,52.906131],[120.455409,53.011376],[120.549647,53.076125],[120.643886,53.106667],[120.736277,53.204615],[120.840371,53.24724],[120.882871,53.294472],[121.129246,53.277303],[121.285695,53.291253],[121.347289,53.327003],[121.499426,53.337008],[121.612143,53.260484],[121.679896,53.240437],[121.665114,53.170556],[121.754425,53.146519],[121.817867,53.061744],[121.785838,53.018575],[121.715621,52.998054],[121.66265,52.912626],[121.610295,52.892416],[121.591201,52.824499],[121.476636,52.772043],[121.373158,52.683268],[121.182217,52.599399],[121.325731,52.572498],[121.416274,52.499346],[121.519136,52.456709],[121.63986,52.444311],[121.714389,52.317944],[121.841272,52.282818],[121.94783,52.298555],[122.091344,52.427167],[122.168952,52.513549],[122.207756,52.469103],[122.310618,52.475299],[122.342031,52.41403],[122.484313,52.341711],[122.478153,52.29636],[122.585943,52.266344],[122.76087,52.26671],[122.769493,52.179843],[122.629059,52.136529],[122.683877,51.974649],[122.726377,51.978704],[122.706051,51.890166],[122.771957,51.779619],[122.749167,51.746661],[122.85634,51.606786],[122.854492,51.477659],[122.903768,51.415384],[122.965977,51.387015],[122.978296,51.331346],[123.058984,51.321999],[123.294273,51.25427],[123.465504,51.287212],[123.661989,51.319008],[123.711264,51.398216],[123.842459,51.367595],[123.926227,51.300681],[124.071588,51.320878],[124.128255,51.347419],[124.239124,51.344429],[124.271769,51.308162],[124.406659,51.271867],[124.43684,51.353772],[124.490427,51.380294],[124.58713,51.363486],[124.62655,51.327608],[124.693687,51.332842],[124.783614,51.392243],[124.864302,51.379547],[124.942527,51.447465],[124.928976,51.498523],[125.047236,51.529801],[125.098975,51.658408],[125.130388,51.635389],[125.35151,51.623876],[125.567089,51.455668],[125.595422,51.416877],[125.597886,51.414638],[125.600966,51.413518],[125.623756,51.387762],[125.63977,51.372451],[125.668103,51.347419],[125.670567,51.34555],[125.743248,51.275984],[125.756798,51.227675],[125.840566,51.220555],[125.878138,51.159431],[126.059225,51.043711],[126.033971,51.010971],[126.073391,50.963514],[125.890457,50.805729],[125.758646,50.746706],[125.825784,50.703906],[125.787595,50.677373],[125.829479,50.561589],[125.740784,50.523184],[125.632379,50.443996],[125.590495,50.452378],[125.519662,50.315795],[125.466075,50.297452],[125.448829,50.216354],[125.334264,50.165023],[125.258504,50.103659],[125.294228,50.029151],[125.231402,49.957606],[125.239409,49.844687],[125.177815,49.829637]]]},"properties":{"id":0,"adcode":300000,"name":"内蒙古","cp":[110.5977,41.3408],"src":"360"}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[136.011228,18.073769],[136.011228,30.860483],[124.980973,30.860483],[124.980973,18.073769],[136.011228,18.073769]]},"properties":{"id":35,"adcode":0,"src":"360"}},{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[136.011228,18.073769],[136.011228,19.321953],[130.953327,19.321953],[130.953327,18.073769],[136.011228,18.073769]]]},"properties":{"id":34,"adcode":0,"name":"南海诸岛","cp":[133.426556,18.718501],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[109.231147,19.863293],[109.300748,19.917868],[109.498464,19.873422],[109.585312,19.98817],[109.712195,20.017406],[109.76147,19.981422],[109.965346,19.993792],[110.106396,20.026963],[110.144585,20.074176],[110.291178,20.056754],[110.318279,20.109015],[110.526467,20.0753],[110.562191,20.109577],[110.717408,20.148901],[110.744509,20.074176],[110.871393,20.011784],[110.969327,20.010097],[111.071573,19.629025],[110.920668,19.552926],[110.844292,19.450278],[110.729727,19.378611],[110.619474,19.152118],[110.578206,18.78489],[110.499366,18.751466],[110.495054,18.65002],[110.329366,18.64265],[110.246215,18.609764],[110.117483,18.507666],[110.090382,18.399262],[110.022629,18.360083],[109.919767,18.375415],[109.785492,18.339639],[109.749767,18.193617],[109.584696,18.143589],[109.355566,18.215216],[109.287813,18.264655],[109.138756,18.268064],[109.117814,18.322032],[108.944735,18.31408],[108.888068,18.412319],[108.68912,18.447513],[108.644772,18.486672],[108.663866,18.673261],[108.593033,18.809246],[108.637997,18.920785],[108.591186,19.14477],[108.609048,19.276417],[108.663866,19.374095],[108.765496,19.401187],[109.048829,19.620007],[109.169553,19.736628],[109.159082,19.790684],[109.231147,19.863293]]],[[[133.319743,25.873216],[133.321229,25.858317],[133.313062,25.846803],[133.295254,25.846801],[133.250711,25.852197],[133.23958,25.873198],[133.234384,25.892828],[133.247011,25.895557],[133.256645,25.904356],[133.287088,25.888787],[133.308598,25.884036],[133.319743,25.873216]]],[[[133.179157,23.153611],[133.191085,23.162325],[133.19944,23.170493],[133.202273,23.17007],[133.228683,23.166135],[133.235246,23.151975],[133.233459,23.138904],[133.208395,23.144894],[133.203738,23.146297],[133.179157,23.153611]]],[[[127.485555,28.798211],[127.532801,28.832019],[127.667015,28.804485],[127.725969,28.875571],[127.8121,28.893681],[127.84555,28.87139],[127.983944,28.879052],[128.079692,28.899602],[128.105616,28.928849],[128.205126,28.918057],[128.223522,28.950432],[128.364846,28.929545],[128.389095,28.950779],[128.49446,28.97514],[128.512857,28.928849],[128.598988,28.890199],[128.665468,28.889153],[128.734874,28.653085],[128.632437,28.605944],[128.580591,28.542354],[128.502822,28.497958],[128.42798,28.357649],[128.399967,28.130157],[128.346449,28.109452],[128.343521,28.046607],[128.231049,28.042042],[128.174604,28.021669],[128.087218,27.958422],[128.068822,27.891266],[128.022829,27.866996],[127.953004,27.876494],[127.861855,27.854331],[127.837605,27.763873],[127.725552,27.732881],[127.570012,27.777253],[127.52402,27.80788],[127.422838,27.809991],[127.408622,27.843424],[127.291132,27.838498],[127.252665,27.899356],[127.117616,27.921158],[127.087511,27.945416],[127.100471,28.061005],[127.05239,28.145245],[127.082912,28.214342],[127.051136,28.353097],[127.063261,28.43465],[127.100471,28.49516],[127.16946,28.511943],[127.361794,28.647499],[127.443744,28.719744],[127.436635,28.753231],[127.485555,28.798211]]],[[[133.142849,23.085994],[133.159707,23.074241],[133.158865,23.068647],[133.15271,23.066606],[133.139175,23.062118],[133.129034,23.066478],[133.105176,23.075206],[133.111126,23.086085],[133.118253,23.086716],[133.12464,23.087275],[133.142849,23.085994]]],[[[127.559009,21.070573],[127.557837,21.061381],[127.557121,21.049274],[127.545952,21.039895],[127.528988,21.030932],[127.501751,21.026046],[127.493273,21.03379],[127.494995,21.044609],[127.500918,21.056509],[127.513958,21.06787],[127.532335,21.077066],[127.54834,21.079767],[127.559009,21.070573]]],[[[132.988803,23.143603],[132.983888,23.137132],[132.96537,23.136636],[132.946307,23.143598],[132.940859,23.151551],[132.946602,23.156791],[132.947947,23.158014],[132.957275,23.161398],[132.984934,23.155331],[132.988406,23.144807],[132.988803,23.143603]]],[[[127.569599,21.066776],[127.565133,21.084705],[127.577208,21.105093],[127.599087,21.107133],[127.620672,21.095458],[127.615342,21.077612],[127.588818,21.062716],[127.577389,21.061915],[127.569599,21.066776]]],[[[132.965363,22.967214],[132.96391,22.96342],[132.962352,22.961003],[132.960602,22.958289],[132.960601,22.946675],[132.9565,22.940441],[132.944933,22.937554],[132.932197,22.941906],[132.929698,22.954766],[132.931516,22.967418],[132.931525,22.967428],[132.933403,22.970994],[132.937658,22.979034],[132.947668,22.982773],[132.957647,22.984005],[132.965615,22.978757],[132.965972,22.968797],[132.965363,22.967214]]],[[[127.673218,21.109994],[127.695536,21.096138],[127.701797,21.07454],[127.684701,21.067338],[127.662059,21.068431],[127.637587,21.077408],[127.629569,21.081402],[127.630558,21.095872],[127.644197,21.112437],[127.673218,21.109994]]],[[[132.716647,22.358899],[132.718826,22.358463],[132.719942,22.357223],[132.720424,22.355763],[132.72065,22.355068],[132.720237,22.352968],[132.720369,22.350444],[132.717653,22.348448],[132.715766,22.346673],[132.713823,22.345543],[132.712223,22.345434],[132.710806,22.345003],[132.708918,22.345108],[132.707322,22.346186],[132.706732,22.347694],[132.706202,22.350226],[132.70685,22.352003],[132.70819,22.353303],[132.709842,22.354872],[132.711996,22.356921],[132.714285,22.358315],[132.715349,22.358592],[132.716647,22.358899]]],[[[127.677869,21.217255],[127.65882,21.227765],[127.663743,21.255224],[127.689037,21.265684],[127.733755,21.266359],[127.743553,21.248741],[127.748654,21.237788],[127.746425,21.225545],[127.698728,21.21671],[127.677869,21.217255]]],[[[132.618933,23.231161],[132.62196,23.236889],[132.627577,23.24597],[132.645545,23.243797],[132.660385,23.238891],[132.661552,23.236679],[132.665233,23.228591],[132.666097,23.217324],[132.662423,23.218318],[132.650519,23.2199],[132.63103,23.223635],[132.621951,23.227403],[132.620351,23.22939],[132.618933,23.231161]]],[[[127.695713,21.309144],[127.679711,21.310545],[127.662648,21.314539],[127.662956,21.316714],[127.663266,21.326837],[127.669962,21.343443],[127.683256,21.349104],[127.708959,21.345036],[127.727591,21.33696],[127.727591,21.320773],[127.715504,21.31226],[127.695713,21.309144]]],[[[132.55014,23.016272],[132.54936,23.019587],[132.553483,23.027494],[132.567435,23.031641],[132.584064,23.029723],[132.592175,23.023549],[132.592385,23.023391],[132.599322,23.014844],[132.598908,23.010513],[132.598286,23.004074],[132.581629,23.000911],[132.55839,23.004711],[132.551441,23.010723],[132.550248,23.015829],[132.55014,23.016272]]],[[[128.08786,21.308813],[128.08571,21.312995],[128.082482,21.334595],[128.087855,21.339496],[128.092166,21.343433],[128.113687,21.34638],[128.131977,21.335579],[128.144439,21.307905],[128.138579,21.281183],[128.118085,21.275169],[128.097587,21.289866],[128.08786,21.308813]]],[[[132.500403,22.072809],[132.499047,22.082007],[132.509879,22.09111],[132.521559,22.097353],[132.538688,22.101011],[132.549495,22.099174],[132.557478,22.092149],[132.557195,22.079921],[132.544074,22.064168],[132.510598,22.062842],[132.500403,22.072809]]],[[[128.132728,21.451545],[128.107836,21.470919],[128.088942,21.501507],[128.105079,21.516237],[128.135205,21.518201],[128.148833,21.492964],[128.153228,21.456219],[128.132728,21.451545]]],[[[132.488971,22.51864],[132.48927,22.519077],[132.489807,22.51924],[132.490343,22.519186],[132.490762,22.518749],[132.491381,22.517892],[132.492017,22.517007],[132.493926,22.514394],[132.494155,22.513359],[132.494097,22.512487],[132.49345,22.511999],[132.492853,22.511779],[132.491416,22.51178],[132.491386,22.511784],[132.490402,22.511997],[132.490166,22.512487],[132.490285,22.513196],[132.490226,22.514012],[132.489806,22.514828],[132.489088,22.515592],[132.488193,22.516464],[132.486584,22.517064],[132.486106,22.517389],[132.486165,22.517662],[132.486584,22.517714],[132.48712,22.517714],[132.487715,22.517442],[132.488193,22.517334],[132.488552,22.517334],[132.488793,22.517824],[132.488971,22.51864]]],[[[128.141659,21.386634],[128.119071,21.401362],[128.119071,21.408261],[128.119071,21.412163],[128.139318,21.430833],[128.178841,21.43751],[128.209432,21.423937],[128.208351,21.412154],[128.202891,21.408254],[128.199342,21.39141],[128.1664,21.382705],[128.141659,21.386634]]],[[[132.48553,23.009458],[132.488655,23.019904],[132.490526,23.023317],[132.491429,23.024973],[132.521619,23.027191],[132.523704,23.025295],[132.531392,23.018488],[132.534447,23.015788],[132.534572,23.012945],[132.534803,23.008196],[132.517102,23.003125],[132.491429,23.004707],[132.491126,23.00495],[132.48553,23.009458]]],[[[128.841113,26.273002],[128.839788,26.2707],[128.837856,26.267855],[128.835618,26.266367],[128.832787,26.265008],[128.828937,26.264611],[128.824314,26.264614],[128.821507,26.2653],[128.819861,26.266523],[128.818815,26.268556],[128.818815,26.270591],[128.820006,26.273441],[128.821925,26.274745],[128.822984,26.275466],[128.828485,26.278174],[128.828729,26.278275],[128.8293,26.278509],[128.833083,26.280061],[128.836213,26.281021],[128.83874,26.280881],[128.840531,26.280062],[128.841573,26.278297],[128.841567,26.276916],[128.841561,26.275584],[128.841113,26.273002]]],[[[132.488375,22.51924],[132.48778,22.51875],[132.487303,22.518805],[132.487179,22.519186],[132.487179,22.51984],[132.486702,22.520384],[132.485152,22.521093],[132.483661,22.521801],[132.482583,22.522509],[132.482347,22.523219],[132.482347,22.523872],[132.482766,22.524308],[132.483361,22.524417],[132.484197,22.524415],[132.485748,22.52387],[132.486943,22.523543],[132.487956,22.522944],[132.488611,22.522398],[132.489212,22.521527],[132.489154,22.52071],[132.489089,22.520003],[132.488375,22.51924]]],[[[129.059568,26.685585],[129.059779,26.683243],[129.059262,26.681043],[129.058049,26.679113],[129.055867,26.676988],[129.05428,26.675744],[129.052552,26.675202],[129.051135,26.675209],[129.048855,26.675076],[129.045087,26.675048],[129.04165,26.674965],[129.039222,26.674965],[129.036803,26.67505],[129.034182,26.675306],[129.031115,26.675223],[129.027849,26.675563],[129.026135,26.676965],[129.025854,26.678172],[129.02562,26.678722],[129.025621,26.679754],[129.026083,26.681268],[129.026671,26.682557],[129.027782,26.684168],[129.029705,26.685399],[129.031644,26.686602],[129.034572,26.687529],[129.038479,26.688444],[129.041314,26.688512],[129.044065,26.688769],[129.046147,26.689284],[129.048049,26.689613],[129.050529,26.690151],[129.052714,26.690218],[129.054966,26.689863],[129.056776,26.689028],[129.058357,26.687519],[129.059568,26.685585]]],[[[132.479529,22.524835],[132.47918,22.52409],[132.478992,22.523417],[132.478157,22.523315],[132.477531,22.5236],[132.477526,22.523609],[132.477243,22.524187],[132.47735,22.524837],[132.477508,22.525344],[132.477526,22.525422],[132.477691,22.526052],[132.478268,22.526255],[132.47875,22.526214],[132.479464,22.525728],[132.479691,22.525446],[132.479529,22.524835]]],[[[129.063159,27.091665],[129.068123,27.089146],[129.070602,27.08209],[129.066466,27.078316],[129.059574,27.078318],[129.056939,27.077629],[129.053785,27.076812],[129.048818,27.072534],[129.043856,27.075814],[129.042765,27.079337],[129.044959,27.085626],[129.049097,27.088143],[129.055161,27.09066],[129.058863,27.091124],[129.063159,27.091665]]],[[[132.474421,22.518431],[132.47561,22.518429],[132.476378,22.518538],[132.477334,22.518539],[132.477528,22.518539],[132.478287,22.518538],[132.479301,22.518426],[132.480138,22.518263],[132.480791,22.517717],[132.480916,22.517227],[132.480674,22.516738],[132.48002,22.516468],[132.478883,22.516468],[132.477528,22.516607],[132.477272,22.51663],[132.475795,22.516687],[132.47448,22.516689],[132.473703,22.516908],[132.473461,22.517453],[132.473461,22.517835],[132.47382,22.51816],[132.474421,22.518431]]],[[[129.076124,26.507624],[129.074565,26.511248],[129.073717,26.514979],[129.074323,26.519575],[129.076144,26.52459],[129.079293,26.529452],[129.082645,26.534011],[129.086775,26.538784],[129.091044,26.542518],[129.096447,26.546598],[129.102403,26.550358],[129.10902,26.554387],[129.111562,26.555932],[129.122939,26.562613],[129.128517,26.565744],[129.130006,26.566582],[129.139544,26.56973],[129.14735,26.571646],[129.154197,26.572269],[129.162462,26.572697],[129.169546,26.571373],[129.177164,26.572803],[129.18309,26.572705],[129.18518,26.57267],[129.19423,26.573214],[129.203286,26.573217],[129.212044,26.573897],[129.219589,26.572301],[129.225298,26.572289],[129.229639,26.571375],[129.233182,26.569563],[129.236936,26.565951],[129.239906,26.56127],[129.241682,26.555135],[129.241682,26.554566],[129.241681,26.550086],[129.240892,26.54612],[129.238328,26.542517],[129.235067,26.539478],[129.23089,26.536223],[129.226333,26.53344],[129.218759,26.530307],[129.211138,26.527552],[129.204949,26.526127],[129.199022,26.525767],[129.193883,26.526127],[129.189565,26.526974],[129.187688,26.527343],[129.185034,26.528757],[129.184178,26.530083],[129.183978,26.531345],[129.18373,26.532995],[129.185519,26.535123],[129.188222,26.536468],[129.189542,26.537129],[129.196515,26.537815],[129.202466,26.537977],[129.207538,26.538777],[129.212443,26.540218],[129.217191,26.541667],[129.220516,26.543102],[129.224178,26.545652],[129.226466,26.548371],[129.228026,26.550765],[129.22786,26.553641],[129.227427,26.554549],[129.222076,26.560083],[129.208073,26.562171],[129.186567,26.562764],[129.159813,26.560355],[129.135107,26.554418],[129.132427,26.553301],[129.128558,26.551596],[129.123417,26.549329],[129.114783,26.543305],[129.102749,26.535531],[129.096427,26.530246],[129.09148,26.525196],[129.086676,26.520475],[129.085456,26.517262],[129.085775,26.514741],[129.088241,26.512849],[129.093152,26.512962],[129.099529,26.51551],[129.106517,26.520078],[129.114218,26.524061],[129.121407,26.529658],[129.128625,26.533028],[129.129641,26.533502],[129.139421,26.537165],[129.149584,26.539882],[129.155707,26.538444],[129.159952,26.536027],[129.160818,26.532757],[129.160622,26.531133],[129.159028,26.529144],[129.153271,26.527502],[129.146688,26.525969],[129.139643,26.524006],[129.134748,26.522745],[129.13098,26.521111],[129.128673,26.519465],[129.126771,26.518109],[129.121216,26.513407],[129.114088,26.509785],[129.106962,26.506359],[129.099244,26.50437],[129.093857,26.5034],[129.085139,26.504088],[129.080074,26.505452],[129.076124,26.507624]]],[[[132.474003,22.522789],[132.47322,22.523607],[132.47292,22.524969],[132.472861,22.526277],[132.473162,22.527254],[132.473939,22.52807],[132.474198,22.528235],[132.474539,22.528451],[132.47501,22.528559],[132.475906,22.528559],[132.476441,22.528449],[132.476796,22.528176],[132.476973,22.527686],[132.476938,22.527587],[132.476817,22.527246],[132.476818,22.527246],[132.476689,22.52687],[132.47633,22.526],[132.475971,22.525618],[132.475671,22.525839],[132.475611,22.526655],[132.475341,22.527069],[132.475051,22.527147],[132.474628,22.527068],[132.474316,22.526682],[132.474209,22.526317],[132.47424,22.526001],[132.474538,22.525565],[132.474599,22.52464],[132.474598,22.523605],[132.474421,22.522897],[132.474003,22.522789]]],[[[129.077236,26.690063],[129.077153,26.69305],[129.077314,26.695589],[129.077814,26.697378],[129.078385,26.699692],[129.079281,26.701556],[129.080264,26.703274],[129.080836,26.704692],[129.08295,26.707151],[129.083604,26.708121],[129.084588,26.708716],[129.086059,26.70864],[129.087978,26.707326],[129.089408,26.705356],[129.090716,26.703637],[129.092767,26.701396],[129.095135,26.699005],[129.097103,26.696394],[129.098653,26.693707],[129.100045,26.691392],[129.100946,26.689003],[129.101429,26.686614],[129.10233,26.683553],[129.102248,26.681314],[129.101917,26.679596],[129.10111,26.678626],[129.0989,26.677954],[129.095466,26.677656],[129.091783,26.677806],[129.087074,26.678957],[129.08303,26.680571],[129.08074,26.682293],[129.07928,26.684163],[129.077974,26.687228],[129.077236,26.690063]]],[[[132.522389,23.606008],[132.490675,23.603599],[132.468623,23.61402],[132.476545,23.626076],[132.479195,23.633311],[132.493143,23.636294],[132.509165,23.638157],[132.526782,23.63816],[132.535595,23.622084],[132.522389,23.606008]]],[[[129.163309,21.268547],[129.171407,21.250068],[129.163307,21.238364],[129.140356,21.229124],[129.088538,21.240783],[129.083696,21.247727],[129.087157,21.258455],[129.10168,21.267922],[129.125185,21.26918],[129.163309,21.268547]]],[[[132.467991,22.528737],[132.467916,22.528784],[132.467615,22.529057],[132.467499,22.529548],[132.468003,22.530291],[132.469202,22.530636],[132.470978,22.530674],[132.4718,22.530188],[132.471956,22.529539],[132.471889,22.529093],[132.471502,22.528738],[132.471499,22.528738],[132.471487,22.528729],[132.470715,22.528467],[132.469343,22.528348],[132.468339,22.528529],[132.468002,22.528737],[132.467991,22.528737]]],[[[129.086909,26.714174],[129.085637,26.714434],[129.08503,26.714746],[129.084464,26.715779],[129.084429,26.716561],[129.084446,26.718028],[129.084553,26.719089],[129.085061,26.720053],[129.086068,26.720568],[129.087254,26.720669],[129.088714,26.720239],[129.089657,26.71934],[129.090163,26.718474],[129.090022,26.71701],[129.089639,26.715599],[129.088644,26.714513],[129.086909,26.714174]]],[[[132.462163,22.528276],[132.462011,22.528575],[132.462306,22.529173],[132.462666,22.529501],[132.463446,22.529722],[132.464537,22.529968],[132.465514,22.529723],[132.466112,22.529215],[132.466419,22.528133],[132.466419,22.527754],[132.466183,22.527374],[132.464999,22.527375],[132.46351,22.527379],[132.462431,22.527763],[132.462231,22.528146],[132.462163,22.528276]]],[[[129.096644,26.731075],[129.095401,26.732341],[129.094375,26.733191],[129.094004,26.73404],[129.09322,26.735652],[129.09338,26.73783],[129.09624,26.74051],[129.09838,26.741965],[129.101575,26.743489],[129.104831,26.744437],[129.109618,26.745238],[129.112792,26.74538],[129.114627,26.744654],[129.115223,26.743385],[129.115499,26.742452],[129.115499,26.741348],[129.115584,26.739643],[129.115136,26.738527],[129.113997,26.736809],[129.112156,26.735354],[129.110409,26.734195],[129.109381,26.733181],[129.108024,26.732452],[129.106508,26.732018],[129.105158,26.731653],[129.103648,26.731291],[129.101973,26.731071],[129.100382,26.730783],[129.09823,26.730638],[129.096644,26.731075]]],[[[132.458606,22.528219],[132.458379,22.528691],[132.458795,22.529125],[132.459273,22.529343],[132.459984,22.52934],[132.460705,22.528904],[132.461122,22.52814],[132.461066,22.527266],[132.461075,22.527266],[132.461068,22.527219],[132.460648,22.526618],[132.459814,22.526566],[132.459161,22.526842],[132.459001,22.527272],[132.458796,22.527823],[132.458606,22.528219]]],[[[129.131813,26.750896],[129.131278,26.752767],[129.130767,26.753655],[129.130459,26.755253],[129.131569,26.757795],[129.134439,26.760119],[129.137469,26.761868],[129.141298,26.76376],[129.144547,26.764329],[129.146537,26.764116],[129.148055,26.762811],[129.148953,26.760498],[129.15021,26.759545],[129.15068,26.758019],[129.150284,26.756492],[129.14861,26.754892],[129.145854,26.752737],[129.143616,26.75106],[129.141148,26.749675],[129.138667,26.748873],[129.135486,26.748431],[129.133012,26.749154],[129.131813,26.750896]]],[[[132.464345,22.525415],[132.464999,22.525251],[132.465646,22.524867],[132.46594,22.524377],[132.46594,22.523832],[132.465646,22.523561],[132.464999,22.523453],[132.464104,22.523402],[132.463684,22.523128],[132.463449,22.52253],[132.462673,22.522207],[132.461535,22.521989],[132.460352,22.521558],[132.459575,22.521179],[132.458857,22.521012],[132.458376,22.520905],[132.45791,22.520962],[132.457793,22.521234],[132.457793,22.521453],[132.458075,22.521723],[132.458493,22.521885],[132.45964,22.522322],[132.460652,22.523244],[132.461829,22.523731],[132.462855,22.52373],[132.463266,22.523946],[132.463451,22.524602],[132.46381,22.525091],[132.464345,22.525415]]],[[[129.180515,21.353122],[129.148698,21.363849],[129.140399,21.375209],[129.146627,21.393513],[129.164604,21.403613],[129.198415,21.396063],[129.215106,21.38216],[129.217864,21.355022],[129.180515,21.353122]]],[[[132.458095,22.527269],[132.458181,22.52709],[132.458181,22.52634],[132.457963,22.525712],[132.457145,22.52541],[132.456034,22.525352],[132.455541,22.525388],[132.455048,22.525632],[132.454501,22.526466],[132.454577,22.527123],[132.454622,22.527274],[132.454623,22.527274],[132.454664,22.527392],[132.454946,22.528208],[132.454968,22.528223],[132.455581,22.528697],[132.456715,22.528992],[132.457424,22.528747],[132.457788,22.527874],[132.45809,22.527269],[132.458095,22.527269]]],[[[129.170992,21.284686],[129.152849,21.289375],[129.145243,21.301998],[129.152155,21.32535],[129.170057,21.34185],[129.192337,21.336311],[129.192544,21.313499],[129.188287,21.295654],[129.170992,21.284686]]],[[[132.432193,22.528729],[132.431976,22.529524],[132.432176,22.530072],[132.432576,22.530709],[132.433674,22.530885],[132.435866,22.530965],[132.437958,22.53123],[132.440444,22.531216],[132.442866,22.531051],[132.444959,22.530586],[132.445759,22.530125],[132.446058,22.5293],[132.446058,22.528478],[132.445464,22.527756],[132.444271,22.527488],[132.44148,22.527501],[132.439755,22.527388],[132.438999,22.527283],[132.43787,22.527125],[132.436367,22.526859],[132.434872,22.526592],[132.433585,22.52669],[132.432857,22.527273],[132.432681,22.527426],[132.432355,22.528248],[132.432282,22.528433],[132.432201,22.528729],[132.432193,22.528729]]],[[[129.157621,26.767729],[129.157249,26.769003],[129.157066,26.770191],[129.157349,26.771618],[129.158436,26.773178],[129.160988,26.774585],[129.163939,26.775297],[129.166973,26.775727],[129.170244,26.775661],[129.173819,26.774461],[129.176597,26.772824],[129.18056,26.769431],[129.182419,26.767307],[129.184275,26.765251],[129.185678,26.761639],[129.186144,26.758879],[129.185447,26.756045],[129.184427,26.754203],[129.182032,26.75384],[129.181195,26.75316],[129.179892,26.752904],[129.178488,26.753669],[129.176282,26.756183],[129.173416,26.758523],[129.170236,26.760854],[129.167439,26.762626],[129.165727,26.763686],[129.163711,26.764675],[129.162083,26.765388],[129.160134,26.76595],[129.158641,26.766792],[129.157621,26.767729]]],[[[132.420136,22.510313],[132.420536,22.509989],[132.420858,22.509439],[132.420824,22.509186],[132.420501,22.508848],[132.41989,22.508596],[132.418767,22.508045],[132.417346,22.507455],[132.416992,22.507336],[132.416017,22.507038],[132.415528,22.506804],[132.414982,22.506869],[132.414588,22.50722],[132.414497,22.508104],[132.414697,22.509285],[132.415026,22.5099],[132.415766,22.510189],[132.416999,22.510356],[132.417082,22.51037],[132.41868,22.510384],[132.420136,22.510313]]],[[[129.168162,26.678236],[129.166233,26.678694],[129.163747,26.67929],[129.161627,26.680343],[129.160402,26.681429],[129.160219,26.682416],[129.160314,26.683263],[129.160733,26.684429],[129.161383,26.685394],[129.162367,26.685987],[129.163766,26.686246],[129.164972,26.686245],[129.166101,26.685997],[129.16684,26.685485],[129.167679,26.684299],[129.167835,26.683772],[129.168145,26.682772],[129.168516,26.681414],[129.169366,26.681078],[129.170381,26.681245],[129.171308,26.681758],[129.171772,26.682776],[129.171601,26.68334],[129.170922,26.683398],[129.170376,26.68337],[129.169323,26.683635],[129.168543,26.684663],[129.168449,26.685543],[129.169127,26.686276],[129.170608,26.686601],[129.172989,26.686104],[129.174474,26.684943],[129.175672,26.683109],[129.176668,26.681864],[129.176409,26.679896],[129.174151,26.678944],[129.170611,26.678706],[129.168162,26.678236]]],[[[132.280672,23.236509],[132.268144,23.236512],[132.252544,23.246435],[132.244607,23.264951],[132.24084,23.273745],[132.248871,23.279021],[132.263647,23.27961],[132.271354,23.271689],[132.28003,23.252641],[132.280367,23.244204],[132.280672,23.236509]]],[[[129.181974,26.533627],[129.181477,26.531893],[129.179949,26.529908],[129.178574,26.529392],[129.176923,26.528912],[129.174185,26.528689],[129.169536,26.529186],[129.167381,26.529788],[129.166047,26.53039],[129.16512,26.531297],[129.164389,26.532385],[129.164508,26.534923],[129.165441,26.536073],[129.167396,26.537406],[129.170358,26.538326],[129.173067,26.53847],[129.176094,26.53847],[129.179048,26.538116],[129.181126,26.536784],[129.181999,26.535136],[129.181974,26.533627]]],[[[132.289278,22.023643],[132.28421,22.009043],[132.263183,22.002703],[132.263101,22.002678],[132.253749,21.999862],[132.22508,22.005258],[132.219811,22.016805],[132.223794,22.023742],[132.236667,22.037199],[132.260169,22.039595],[132.263122,22.038928],[132.263187,22.038914],[132.280936,22.034879],[132.289278,22.023643]]],[[[129.188908,26.686951],[129.188625,26.688395],[129.18937,26.690519],[129.189747,26.692225],[129.190337,26.693833],[129.192105,26.696423],[129.195235,26.697852],[129.197382,26.699456],[129.199828,26.701422],[129.20277,26.703297],[129.20561,26.705797],[129.208155,26.709191],[129.210492,26.712761],[129.211378,26.71553],[129.211767,26.718299],[129.211084,26.720888],[129.209917,26.723479],[129.207568,26.72598],[129.205113,26.728386],[129.201396,26.731778],[129.197677,26.734098],[129.19474,26.736243],[129.192635,26.738737],[129.192169,26.739671],[129.19208,26.741369],[129.191803,26.74315],[129.191614,26.744509],[129.191614,26.745529],[129.192363,26.746292],[129.193382,26.746549],[129.196584,26.746354],[129.19992,26.74522],[129.203649,26.743054],[129.206759,26.740734],[129.209649,26.738615],[129.211909,26.736606],[129.214458,26.734747],[129.217452,26.732174],[129.219323,26.729748],[129.221018,26.727061],[129.221917,26.725563],[129.222925,26.719867],[129.222783,26.715825],[129.221216,26.710091],[129.217067,26.703829],[129.212564,26.698539],[129.208217,26.694429],[129.203493,26.691175],[129.198202,26.688304],[129.196346,26.68713],[129.19301,26.686532],[129.191136,26.68602],[129.189744,26.686019],[129.188908,26.686951]]],[[[132.096254,22.254848],[132.095818,22.260634],[132.09918,22.265817],[132.108482,22.267174],[132.11423,22.26342],[132.124229,22.24606],[132.126744,22.238259],[132.127285,22.236582],[132.128051,22.234232],[132.138228,22.22052],[132.130274,22.213929],[132.120999,22.212726],[132.11377,22.216612],[132.106473,22.234224],[132.106401,22.23432],[132.106189,22.234616],[132.096822,22.247129],[132.096254,22.254848]]],[[[129.232565,26.44952],[129.23973,26.450386],[129.24521,26.450378],[129.248393,26.449785],[129.250699,26.448263],[129.251564,26.445559],[129.252001,26.443317],[129.251565,26.440219],[129.249548,26.437388],[129.247379,26.435611],[129.244322,26.433573],[129.241752,26.431458],[129.238857,26.429613],[129.235452,26.427489],[129.231187,26.425585],[129.226175,26.424384],[129.22172,26.423424],[129.218524,26.423139],[129.216074,26.423514],[129.213195,26.424391],[129.210464,26.426083],[129.208303,26.427559],[129.205945,26.429463],[129.203305,26.431769],[129.20139,26.433905],[129.200436,26.435845],[129.200329,26.438077],[129.200965,26.440309],[129.201708,26.441184],[129.203518,26.442059],[129.207485,26.443915],[129.214204,26.445369],[129.22008,26.446767],[129.225753,26.447681],[129.232565,26.44952]]],[[[132.017473,22.390649],[131.998504,22.415192],[131.999766,22.422498],[132.002445,22.429225],[132.015847,22.433503],[132.017469,22.43139],[132.033262,22.410859],[132.037968,22.391279],[132.027036,22.378271],[132.01749,22.387576],[132.017472,22.387601],[132.017473,22.390649]]],[[[129.294787,21.831721],[129.263232,21.823085],[129.204314,21.860524],[129.223251,21.880688],[129.243244,21.89509],[129.279013,21.889329],[129.302183,21.876308],[129.306358,21.873963],[129.302182,21.858726],[129.294787,21.831721]]],[[[131.961328,23.191183],[131.960246,23.191394],[131.95974,23.19181],[131.959622,23.19228],[131.959793,23.192852],[131.960582,23.19492],[131.961727,23.196511],[131.962974,23.197199],[131.96443,23.197387],[131.965736,23.197388],[131.966932,23.196912],[131.967582,23.196148],[131.967841,23.195601],[131.967841,23.194483],[131.967316,23.19367],[131.966197,23.193315],[131.965261,23.192936],[131.964585,23.192462],[131.963728,23.191821],[131.963003,23.191353],[131.962181,23.191235],[131.961328,23.191183]]],[[[129.266975,21.459793],[129.244164,21.476849],[129.247607,21.507129],[129.261439,21.531111],[129.280091,21.526033],[129.295888,21.509209],[129.287717,21.47683],[129.266975,21.459793]]],[[[131.950842,23.139753],[131.949878,23.139236],[131.948796,23.139134],[131.947711,23.139135],[131.946976,23.139398],[131.946655,23.139623],[131.946355,23.140212],[131.946242,23.141112],[131.946329,23.141725],[131.94683,23.143329],[131.947763,23.144262],[131.948725,23.144767],[131.949475,23.144707],[131.950672,23.14455],[131.951353,23.144079],[131.951806,23.143137],[131.951868,23.142045],[131.951586,23.140743],[131.950842,23.139753]]],[[[129.345107,26.607784],[129.345285,26.613312],[129.347838,26.619573],[129.353325,26.624586],[129.362933,26.628161],[129.375256,26.631637],[129.376242,26.631914],[129.38373,26.632471],[129.393118,26.633183],[129.404503,26.632672],[129.414144,26.631641],[129.414853,26.631568],[129.418175,26.627278],[129.419761,26.621566],[129.416992,26.614303],[129.415127,26.611952],[129.409503,26.611945],[129.399776,26.611746],[129.393294,26.611003],[129.386624,26.610824],[129.379964,26.609392],[129.374285,26.607961],[129.367318,26.605862],[129.361702,26.603511],[129.353738,26.603077],[129.348345,26.603902],[129.347393,26.605178],[129.345107,26.607784]]],[[[131.931762,22.261717],[131.922657,22.25546],[131.911101,22.259589],[131.899774,22.267058],[131.888458,22.283791],[131.887682,22.296965],[131.893919,22.307641],[131.902507,22.310496],[131.919283,22.306225],[131.934892,22.290205],[131.936059,22.268919],[131.931762,22.261717]]],[[[129.390255,18.875647],[129.389191,18.882134],[129.397506,18.888206],[129.407934,18.882438],[129.422381,18.877169],[129.428914,18.875681],[129.437084,18.87382],[129.454169,18.872157],[129.469896,18.871656],[129.483034,18.871425],[129.48855,18.870374],[129.490454,18.862741],[129.481047,18.857694],[129.467218,18.856935],[129.445091,18.856429],[129.416599,18.857937],[129.391134,18.870278],[129.390255,18.875647]]],[[[131.844599,21.691634],[131.821615,21.684834],[131.791216,21.692915],[131.77566,21.697312],[131.765724,21.719417],[131.817886,21.722814],[131.836519,21.718277],[131.844599,21.691634]]],[[[129.558389,21.994651],[129.55892,21.992231],[129.558649,21.988841],[129.554671,21.984968],[129.549899,21.982062],[129.544854,21.979639],[129.539285,21.976008],[129.534778,21.97141],[129.528428,21.969477],[129.521274,21.96924],[129.513323,21.96949],[129.506709,21.970952],[129.50168,21.973376],[129.497716,21.976535],[129.495601,21.979442],[129.496131,21.983071],[129.500886,21.987414],[129.506711,21.991521],[129.515454,21.996353],[129.523129,21.998518],[129.532656,21.998508],[129.54671,21.99803],[129.554671,21.997067],[129.558389,21.994651]]],[[[131.79527,22.637576],[131.797486,22.634544],[131.798147,22.631715],[131.797928,22.627069],[131.79549,22.622833],[131.792176,22.619199],[131.788193,22.615971],[131.783334,22.612344],[131.779328,22.609905],[131.775143,22.608507],[131.773603,22.608513],[131.770958,22.608726],[131.768313,22.610152],[131.764336,22.61097],[131.758819,22.611584],[131.753315,22.612825],[131.750014,22.613853],[131.746936,22.616091],[131.744075,22.620147],[131.742313,22.623387],[131.741819,22.627992],[131.742042,22.634051],[131.743365,22.637291],[131.744909,22.640518],[131.746901,22.64334],[131.749334,22.645354],[131.753745,22.646756],[131.759044,22.646742],[131.765473,22.645935],[131.771197,22.64409],[131.777587,22.642045],[131.782437,22.641422],[131.787321,22.641028],[131.791293,22.639806],[131.79527,22.637576]]],[[[129.567748,27.008806],[129.566786,27.007939],[129.565387,27.006445],[129.563748,27.005697],[129.561035,27.005303],[129.555986,27.004706],[129.550101,27.004897],[129.544548,27.00461],[129.539733,27.004512],[129.534062,27.004123],[129.527118,27.003441],[129.521843,27.002725],[129.517987,27.001766],[129.51462,27.001195],[129.510007,27.001533],[129.506425,27.003004],[129.503807,27.004394],[129.502996,27.006471],[129.503112,27.007637],[129.505091,27.011145],[129.507108,27.015644],[129.512033,27.019553],[129.518774,27.021898],[129.524648,27.02326],[129.530213,27.023841],[129.537379,27.025016],[129.54305,27.024038],[129.550967,27.022184],[129.558335,27.020128],[129.563038,27.017392],[129.566346,27.013976],[129.568191,27.010857],[129.567748,27.008806]]],[[[131.693148,22.301483],[131.693015,22.301806],[131.693015,22.303646],[131.694704,22.306255],[131.696217,22.308865],[131.698229,22.312242],[131.700592,22.315006],[131.70361,22.317454],[131.705621,22.320058],[131.706962,22.322818],[131.707968,22.325271],[131.709317,22.326968],[131.710158,22.327119],[131.711655,22.326485],[131.71266,22.324332],[131.714522,22.319275],[131.715361,22.315893],[131.715527,22.311593],[131.715527,22.306524],[131.715527,22.304635],[131.715526,22.301764],[131.716541,22.296855],[131.717876,22.294239],[131.71905,22.292697],[131.719386,22.291928],[131.719222,22.290393],[131.717711,22.28917],[131.714679,22.287015],[131.712333,22.285336],[131.709823,22.283809],[131.707641,22.28351],[131.704118,22.283829],[131.701101,22.285528],[131.698235,22.287211],[131.697549,22.289812],[131.696384,22.292887],[131.695372,22.296421],[131.693695,22.30011],[131.693148,22.301483]]],[[[129.540751,18.930314],[129.540831,18.930377],[129.507953,18.93692],[129.505847,18.944143],[129.507015,18.949443],[129.515535,18.94923],[129.53497,18.95081],[129.576766,18.942958],[129.592927,18.944687],[129.596662,18.936726],[129.593746,18.930318],[129.59435,18.930319],[129.592861,18.928367],[129.590847,18.927081],[129.575172,18.924336],[129.561081,18.924684],[129.548432,18.927634],[129.541152,18.930314],[129.540751,18.930314]]],[[[131.649407,22.838621],[131.648397,22.839494],[131.648313,22.841813],[131.649536,22.844214],[131.651864,22.846282],[131.654621,22.847234],[131.657183,22.847565],[131.659265,22.846898],[131.660795,22.846117],[131.661714,22.844499],[131.661337,22.842762],[131.660784,22.841143],[131.658275,22.838687],[131.655164,22.837741],[131.652652,22.837403],[131.650701,22.837631],[131.649407,22.838621]]],[[[129.522806,18.887471],[129.517818,18.895572],[129.520285,18.900729],[129.521341,18.902555],[129.523139,18.902982],[129.525704,18.902769],[129.54407,18.891377],[129.551012,18.887186],[129.563137,18.885251],[129.575064,18.885445],[129.578107,18.877621],[129.575577,18.875676],[129.572857,18.873584],[129.562619,18.871314],[129.548629,18.875679],[129.540777,18.878131],[129.522806,18.887471]]],[[[131.619978,22.805237],[131.613453,22.800887],[131.608424,22.798585],[131.603407,22.797437],[131.600888,22.797431],[131.598373,22.799254],[131.596616,22.802681],[131.596374,22.806346],[131.596622,22.809777],[131.597376,22.812982],[131.598386,22.815499],[131.600144,22.817104],[131.602658,22.81711],[131.607184,22.81415],[131.610202,22.812786],[131.61469,22.81254],[131.619478,22.813242],[131.622749,22.814396],[131.625766,22.815551],[131.627272,22.815098],[131.627525,22.813728],[131.625766,22.811204],[131.619978,22.805237]]],[[[129.606844,26.972174],[129.604235,26.973543],[129.603185,26.974709],[129.602572,26.976478],[129.600487,26.979514],[129.598813,26.98305],[129.595937,26.987223],[129.592417,26.990888],[129.588319,26.994633],[129.583586,26.997544],[129.578679,26.999551],[129.575423,27.001468],[129.574252,27.002844],[129.574252,27.003907],[129.575681,27.006201],[129.578449,27.007086],[129.583449,27.007473],[129.590511,27.005322],[129.596622,27.002044],[129.601993,26.997975],[129.608096,26.992663],[129.612965,26.984457],[129.614767,26.978512],[129.611993,26.9737],[129.609483,26.972303],[129.606844,26.972174]]],[[[131.616512,21.355001],[131.596667,21.342682],[131.577718,21.346675],[131.558773,21.365296],[131.545917,21.391401],[131.560477,21.398768],[131.573371,21.396762],[131.592339,21.387828],[131.606706,21.372899],[131.616512,21.355001]]],[[[129.604803,26.920676],[129.604096,26.919737],[129.603422,26.918982],[129.602484,26.918107],[129.600034,26.917421],[129.59618,26.914184],[129.594561,26.915241],[129.596368,26.916744],[129.594479,26.918594],[129.59333,26.920183],[129.5928,26.920718],[129.592251,26.920401],[129.59201,26.920014],[129.591836,26.920022],[129.590698,26.920653],[129.590466,26.921005],[129.590023,26.921777],[129.590178,26.921856],[129.590872,26.920803],[129.592323,26.92084],[129.59236,26.922768],[129.590785,26.923887],[129.591454,26.924299],[129.592449,26.923807],[129.593056,26.923848],[129.593598,26.924343],[129.594407,26.924691],[129.595741,26.925509],[129.598634,26.925844],[129.599738,26.925599],[129.599773,26.924907],[129.60113,26.924102],[129.603553,26.926018],[129.603337,26.926676],[129.604132,26.928425],[129.604729,26.92836],[129.604439,26.927667],[129.605127,26.927157],[129.60811,26.926206],[129.608941,26.926817],[129.609736,26.926142],[129.604793,26.921848],[129.604959,26.921307],[129.604803,26.920676]]],[[[131.598312,21.672695],[131.597325,21.668798],[131.595341,21.666385],[131.589431,21.665489],[131.581206,21.666978],[131.572984,21.667275],[131.563457,21.66758],[131.552947,21.66759],[131.546054,21.668494],[131.541463,21.669405],[131.537209,21.672414],[131.532621,21.676324],[131.529021,21.679932],[131.527029,21.682913],[131.526376,21.686811],[131.528668,21.690404],[131.531638,21.691612],[131.534585,21.692201],[131.539827,21.692185],[131.543204,21.691949],[131.547365,21.690367],[131.550652,21.687378],[131.554596,21.683775],[131.559845,21.68107],[131.567399,21.679268],[131.572655,21.679267],[131.578242,21.680167],[131.584814,21.681964],[131.590086,21.681972],[131.593698,21.679876],[131.596997,21.676287],[131.598312,21.672695]]],[[[129.714886,26.404962],[129.716531,26.419047],[129.720874,26.433128],[129.738607,26.446128],[129.76236,26.450745],[129.773181,26.451905],[129.778492,26.452474],[129.790204,26.446979],[129.797496,26.440618],[129.800659,26.431947],[129.804142,26.421542],[129.789583,26.412586],[129.775017,26.406235],[129.770834,26.404962],[129.761715,26.402189],[129.742698,26.39726],[129.730992,26.396152],[129.721554,26.39565],[129.714868,26.404807],[129.714886,26.404962]]],[[[131.411043,23.371724],[131.424555,23.368812],[131.435705,23.355028],[131.439698,23.336911],[131.440218,23.325698],[131.430874,23.319221],[131.418925,23.316376],[131.402315,23.318904],[131.387171,23.331065],[131.382749,23.342738],[131.385691,23.357108],[131.396204,23.368059],[131.411043,23.371724]]],[[[129.828454,20.017296],[129.799308,19.999565],[129.771279,20.003921],[129.75074,19.993661],[129.737792,20.006962],[129.752364,20.023215],[129.755543,20.02429],[129.796074,20.037986],[129.821975,20.043895],[129.826758,20.024282],[129.828454,20.017296]]],[[[131.37524,23.401493],[131.374479,23.40998],[131.379477,23.416344],[131.388574,23.420357],[131.402065,23.425336],[131.41844,23.426583],[131.42996,23.425617],[131.437543,23.42368],[131.440572,23.417593],[131.443755,23.406802],[131.438091,23.398592],[131.417828,23.394485],[131.400698,23.393505],[131.382575,23.391084],[131.37524,23.401493]]],[[[129.799549,20.060297],[129.772171,20.048937],[129.745137,20.129313],[129.763697,20.169508],[129.791213,20.176892],[129.807406,20.160635],[129.807405,20.116304],[129.810645,20.077883],[129.799549,20.060297]]],[[[131.310832,26.48651],[131.325932,26.488629],[131.343359,26.474303],[131.356747,26.452566],[131.356741,26.421808],[131.346846,26.409075],[131.328618,26.411705],[131.321282,26.425522],[131.318395,26.441967],[131.313739,26.449918],[131.305201,26.470949],[131.310832,26.48651]]],[[[129.799178,22.01339],[129.796215,21.996889],[129.778056,21.999337],[129.765555,22.008305],[129.760335,22.033474],[129.76504,22.061179],[129.774484,22.070801],[129.7977,22.072157],[129.809614,22.059656],[129.811996,22.042265],[129.799178,22.01339]]],[[[131.280447,26.365299],[131.278801,26.377328],[131.285281,26.385197],[131.294003,26.381377],[131.299125,26.370695],[131.297403,26.364752],[131.297225,26.364139],[131.29723,26.364134],[131.294966,26.352926],[131.287002,26.352927],[131.280188,26.354488],[131.280529,26.364134],[131.280529,26.364139],[131.280488,26.364735],[131.280447,26.365299]]],[[[129.822457,19.781892],[129.817126,19.78825],[129.81934,19.791399],[129.831691,19.808938],[129.862464,19.805986],[129.889439,19.791511],[129.889997,19.791211],[129.889997,19.781899],[129.889997,19.776436],[129.879221,19.763155],[129.834409,19.767653],[129.822457,19.781892]]],[[[131.274098,23.399383],[131.274004,23.39797],[131.273135,23.396831],[131.271977,23.396567],[131.270817,23.396746],[131.269464,23.397542],[131.26745,23.398518],[131.265707,23.399487],[131.263186,23.399925],[131.260492,23.40002],[131.259721,23.400727],[131.259721,23.401434],[131.260009,23.402406],[131.260585,23.403023],[131.261738,23.403726],[131.26377,23.404252],[131.266088,23.404344],[131.269078,23.404335],[131.270626,23.403713],[131.272368,23.402567],[131.273521,23.400974],[131.274098,23.399383]]],[[[129.855403,26.789171],[129.861267,26.782603],[129.861767,26.77695],[129.860258,26.771755],[129.851556,26.770532],[129.851075,26.770619],[129.843168,26.772048],[129.838139,26.777388],[129.835802,26.783966],[129.836631,26.788862],[129.839582,26.792757],[129.844848,26.794048],[129.855403,26.789171]]],[[[131.242962,26.315826],[131.237379,26.335015],[131.241931,26.352657],[131.253004,26.355523],[131.264241,26.353299],[131.267662,26.332427],[131.263698,26.309788],[131.249115,26.306559],[131.242962,26.315826]]],[[[129.837667,22.027361],[129.836943,22.053826],[129.84566,22.065082],[129.886977,22.074339],[129.906553,22.064421],[129.906553,22.052511],[129.910903,22.043911],[129.872494,22.023407],[129.837667,22.027361]]],[[[131.224882,26.539944],[131.227889,26.547733],[131.241249,26.558501],[131.26302,26.562749],[131.277091,26.553392],[131.27563,26.541291],[131.272731,26.534028],[131.252449,26.525733],[131.236406,26.527086],[131.224882,26.539944]]],[[[129.856744,26.79528],[129.853055,26.79711],[129.84803,26.802],[129.846354,26.806885],[129.847066,26.80987],[129.847505,26.811707],[129.853049,26.814981],[129.85774,26.813765],[129.859234,26.81272],[129.864282,26.809186],[129.867137,26.804763],[129.866135,26.798039],[129.860603,26.795592],[129.856744,26.79528]]],[[[131.214632,26.295255],[131.203652,26.3051],[131.196836,26.313663],[131.196362,26.322217],[131.201302,26.325221],[131.205481,26.326808],[131.21284,26.326804],[131.22757,26.315217],[131.230547,26.301792],[131.22495,26.298508],[131.214632,26.295255]]],[[[129.860348,26.817021],[129.858413,26.818345],[129.858175,26.819012],[129.858175,26.820231],[129.858319,26.821908],[129.858673,26.823944],[129.859787,26.824716],[129.861201,26.824767],[129.863057,26.824593],[129.866428,26.823622],[129.870113,26.821389],[129.872804,26.819204],[129.874572,26.816894],[129.874691,26.816342],[129.874985,26.814957],[129.87482,26.814384],[129.874301,26.813888],[129.873513,26.81339],[129.871849,26.812721],[129.870062,26.812269],[129.868848,26.812158],[129.867279,26.812271],[129.86499,26.813388],[129.864418,26.813936],[129.863156,26.815143],[129.860348,26.817021]]],[[[131.177363,26.524662],[131.181473,26.534818],[131.191265,26.539984],[131.202686,26.541274],[131.20883,26.538122],[131.212166,26.530172],[131.209181,26.523003],[131.198234,26.51739],[131.186863,26.518549],[131.177363,26.524662]]],[[[129.867951,19.532987],[129.868076,19.534349],[129.869443,19.548956],[129.910663,19.544924],[129.917478,19.54576],[129.931378,19.547464],[129.937345,19.534354],[129.94379,19.520204],[129.878828,19.518398],[129.867951,19.532987]]],[[[131.166966,26.210911],[131.171329,26.229079],[131.178702,26.239475],[131.186543,26.245579],[131.197747,26.242297],[131.202952,26.234634],[131.201453,26.224821],[131.200566,26.213483],[131.191417,26.205888],[131.177495,26.204104],[131.166966,26.210911]]],[[[129.917476,19.825504],[129.904572,19.826679],[129.885851,19.840221],[129.872184,19.881351],[129.894853,19.897608],[129.909429,19.906476],[129.917479,19.905317],[129.940195,19.902044],[129.941816,19.85919],[129.945058,19.835546],[129.936962,19.823726],[129.917476,19.825504]]],[[[131.118039,26.498744],[131.117161,26.505203],[131.126004,26.516499],[131.141903,26.525288],[131.156609,26.530769],[131.166889,26.531593],[131.171532,26.517296],[131.168015,26.508424],[131.154287,26.499137],[131.139267,26.493492],[131.122913,26.491075],[131.118039,26.498744]]],[[[129.917476,19.644287],[129.914152,19.644349],[129.897592,19.648323],[129.890616,19.659458],[129.904069,19.69278],[129.917478,19.690574],[129.973602,19.681331],[129.978644,19.664228],[129.968185,19.648322],[129.95773,19.643551],[129.917476,19.644287]]],[[[131.149257,26.184516],[131.149256,26.172914],[131.135884,26.164366],[131.123378,26.162745],[131.1082,26.166775],[131.108595,26.181001],[131.119824,26.187579],[131.13455,26.190016],[131.139047,26.188784],[131.149257,26.184516]]],[[[129.969059,19.536968],[129.964433,19.552515],[129.999264,19.567189],[130.008271,19.560823],[130.017887,19.537778],[130.017185,19.534364],[130.015237,19.525029],[129.980387,19.516285],[129.970486,19.534352],[129.969059,19.536968]]],[[[131.084627,23.12469],[131.084627,23.125559],[131.084314,23.127588],[131.08589,23.128595],[131.087311,23.129165],[131.088886,23.129159],[131.09094,23.128723],[131.093156,23.127416],[131.093309,23.125682],[131.092997,23.124234],[131.091095,23.122499],[131.089208,23.122363],[131.086833,23.122803],[131.084627,23.12469]]],[[[129.979239,22.419555],[129.983288,22.415467],[129.980047,22.410819],[129.974258,22.406804],[129.969955,22.405663],[129.96541,22.407289],[129.96662,22.412511],[129.970555,22.416948],[129.975182,22.419906],[129.979239,22.419555]]],[[[131.075085,22.645188],[131.074779,22.646146],[131.07478,22.647679],[131.075297,22.648729],[131.076957,22.650212],[131.078942,22.650912],[131.08104,22.650912],[131.082204,22.650458],[131.083451,22.649573],[131.084187,22.647838],[131.086381,22.645057],[131.086904,22.643427],[131.086968,22.642574],[131.086904,22.641703],[131.086064,22.640362],[131.085535,22.639558],[131.084813,22.639027],[131.083454,22.638842],[131.082387,22.639117],[131.082192,22.639425],[131.082181,22.640076],[131.082597,22.641414],[131.083121,22.643328],[131.083122,22.644764],[131.082699,22.645818],[131.081659,22.646876],[131.08093,22.647264],[131.079574,22.647367],[131.078321,22.647182],[131.077588,22.646772],[131.077277,22.646325],[131.0771,22.645461],[131.077382,22.644697],[131.080906,22.641899],[131.081218,22.641425],[131.081105,22.640979],[131.080817,22.640876],[131.080336,22.641166],[131.07956,22.642194],[131.078703,22.64288],[131.077963,22.643304],[131.076958,22.64373],[131.075919,22.644322],[131.075085,22.645188]]],[[[129.993088,22.437863],[129.992921,22.439167],[129.993111,22.440204],[129.99361,22.440748],[129.994349,22.440809],[129.996067,22.440914],[129.997376,22.440554],[129.999181,22.439605],[130.00022,22.438568],[130.000603,22.437445],[130.000414,22.436668],[129.999654,22.436235],[129.998288,22.436142],[129.996646,22.436503],[129.995009,22.437009],[129.993088,22.437863]]],[[[131.107442,22.867756],[131.096208,22.862935],[131.084792,22.861848],[131.073792,22.862535],[131.069171,22.866328],[131.072704,22.873517],[131.08386,22.881057],[131.097758,22.886635],[131.109196,22.891224],[131.116665,22.890519],[131.119563,22.888288],[131.120782,22.882019],[131.117738,22.874783],[131.107442,22.867756]]],[[[130.030314,22.468604],[130.029475,22.469394],[130.029093,22.470601],[130.028903,22.471552],[130.029288,22.472159],[130.030428,22.473115],[130.032242,22.473988],[130.034124,22.474413],[130.036128,22.474422],[130.037747,22.474345],[130.039158,22.473649],[130.0404,22.472447],[130.0404,22.471323],[130.039833,22.470283],[130.038495,22.468979],[130.037177,22.46795],[130.035362,22.467595],[130.033175,22.467582],[130.031839,22.467835],[130.030314,22.468604]]],[[[131.070663,22.602671],[131.07027,22.603116],[131.07027,22.603517],[131.07061,22.603919],[131.071238,22.604318],[131.071685,22.604718],[131.071779,22.605163],[131.071732,22.605832],[131.071286,22.606369],[131.070851,22.606725],[131.070029,22.606816],[131.069342,22.606775],[131.069148,22.606507],[131.068861,22.605973],[131.068614,22.605886],[131.068373,22.606064],[131.068326,22.606465],[131.068567,22.607089],[131.068761,22.607399],[131.069389,22.607799],[131.070029,22.608243],[131.070897,22.608731],[131.07212,22.608817],[131.072896,22.608815],[131.074311,22.608231],[131.075185,22.607381],[131.07592,22.606355],[131.076114,22.60582],[131.076114,22.605061],[131.07558,22.604351],[131.074891,22.603816],[131.073923,22.603241],[131.073136,22.602753],[131.072366,22.602531],[131.071779,22.602355],[131.071191,22.602357],[131.070663,22.602671]]],[[[130.07707,19.564384],[130.044908,19.546505],[130.030141,19.574581],[130.030926,19.586273],[130.067539,19.610134],[130.077072,19.604046],[130.085021,19.599042],[130.084967,19.568777],[130.07707,19.564384]]],[[[131.058048,22.593478],[131.057613,22.594415],[131.057467,22.595174],[131.057214,22.595798],[131.056874,22.596245],[131.056726,22.596781],[131.056826,22.597226],[131.05702,22.597671],[131.057807,22.597847],[131.058389,22.597845],[131.058923,22.597532],[131.059558,22.596951],[131.060098,22.596504],[131.06072,22.596101],[131.061359,22.595431],[131.061553,22.594493],[131.061407,22.593871],[131.06092,22.593382],[131.060098,22.593028],[131.059317,22.592984],[131.058676,22.593076],[131.058048,22.593478]]],[[[130.111594,21.493188],[130.106176,21.464363],[130.06661,21.454346],[130.04751,21.452003],[130.040866,21.46584],[130.047511,21.482473],[130.080001,21.4973],[130.09625,21.507184],[130.111594,21.493188]]],[[[131.056675,22.630204],[131.056358,22.631067],[131.05688,22.632503],[131.058032,22.633457],[131.059077,22.634699],[131.059388,22.635944],[131.059495,22.637188],[131.059917,22.63824],[131.061274,22.639193],[131.062993,22.639221],[131.064866,22.639021],[131.067162,22.638146],[131.06789,22.637376],[131.067968,22.636111],[131.067863,22.634674],[131.066607,22.634008],[131.064826,22.634108],[131.063048,22.634113],[131.060957,22.633832],[131.060441,22.633163],[131.060545,22.632396],[131.061486,22.631819],[131.063371,22.631239],[131.064721,22.631428],[131.065978,22.631903],[131.067135,22.632187],[131.067652,22.63209],[131.067452,22.631324],[131.066295,22.629891],[131.064937,22.628553],[131.063371,22.628366],[131.061062,22.628373],[131.059495,22.628569],[131.057404,22.629437],[131.056675,22.630204]]],[[[130.056935,22.479666],[130.056481,22.480988],[130.057481,22.48212],[130.058437,22.482688],[130.059556,22.482659],[130.060982,22.482557],[130.061797,22.482471],[130.06253,22.481769],[130.062728,22.480025],[130.062442,22.4789],[130.061107,22.478116],[130.059216,22.478294],[130.057507,22.479236],[130.056935,22.479666]]],[[[131.05973,22.925685],[131.051178,22.923312],[131.047433,22.923221],[131.048789,22.92742],[131.055174,22.92878],[131.058821,22.928204],[131.05973,22.925685]]],[[[130.35765,20.575741],[130.278653,20.509888],[130.238562,20.479704],[130.183192,20.492345],[130.208114,20.550464],[130.236629,20.582276],[130.257948,20.606053],[130.329957,20.606061],[130.35167,20.582284],[130.35765,20.575741]]],[[[131.039732,22.579795],[131.039538,22.580242],[131.03935,22.581133],[131.039397,22.582472],[131.039397,22.583719],[131.039397,22.584567],[131.039586,22.585412],[131.039832,22.585635],[131.040319,22.585812],[131.041295,22.585766],[131.042024,22.58554],[131.042611,22.584603],[131.04358,22.583577],[131.044262,22.582861],[131.044561,22.582013],[131.044609,22.581256],[131.044115,22.580633],[131.043346,22.579921],[131.042364,22.579478],[131.041442,22.579347],[131.04056,22.579393],[131.039732,22.579795]]],[[[130.283163,21.580788],[130.28141,21.583651],[130.28141,21.587476],[130.282836,21.591651],[130.283528,21.59739],[130.283528,21.603446],[130.283538,21.609832],[130.284944,21.615256],[130.286333,21.618766],[130.28844,21.622278],[130.291598,21.625157],[130.296508,21.62772],[130.299641,21.627713],[130.301741,21.626439],[130.303487,21.62357],[130.304536,21.615916],[130.30385,21.602203],[130.301396,21.591361],[130.299642,21.585295],[130.297196,21.582103],[130.292635,21.57986],[130.28632,21.58016],[130.283163,21.580788]]],[[[131.035483,23.105801],[131.035242,23.107239],[131.03556,23.108173],[131.036665,23.108673],[131.037992,23.107592],[131.039486,23.10608],[131.039561,23.104931],[131.03878,23.103783],[131.037599,23.103355],[131.036582,23.104076],[131.035483,23.105801]]],[[[130.408317,22.304952],[130.423794,22.318932],[130.439417,22.321241],[130.454612,22.318156],[130.466015,22.312766],[130.4724,22.289984],[130.48376,22.271539],[130.480791,22.249944],[130.460522,22.24378],[130.442507,22.254282],[130.437299,22.256185],[130.415111,22.276024],[130.408317,22.304952]]],[[[131.034903,22.630352],[131.035004,22.631405],[131.036473,22.632456],[131.038253,22.632834],[131.039829,22.632831],[131.041397,22.632157],[131.042754,22.631197],[131.044634,22.630044],[131.046102,22.629178],[131.047465,22.628217],[131.048405,22.626875],[131.048299,22.625629],[131.047571,22.623812],[131.046413,22.622473],[131.045163,22.621998],[131.043593,22.622289],[131.041708,22.623251],[131.039087,22.625268],[131.036996,22.627379],[131.035433,22.62901],[131.034903,22.630352]]],[[[130.512801,20.880155],[130.559789,20.853711],[130.580001,20.817289],[130.579179,20.803171],[130.569182,20.785072],[130.545942,20.770316],[130.47921,20.786624],[130.440715,20.818333],[130.426265,20.842752],[130.429109,20.863018],[130.467258,20.876522],[130.512801,20.880155]]],[[[131.016546,23.10123],[131.016562,23.099106],[131.015819,23.097981],[131.014591,23.09742],[131.012619,23.097532],[131.010889,23.098322],[131.009912,23.099225],[131.009912,23.100124],[131.009784,23.101466],[131.010154,23.103381],[131.011014,23.104731],[131.012733,23.105181],[131.015075,23.1045],[131.015928,23.103597],[131.016546,23.10123]]],[[[130.529524,22.047079],[130.534302,22.036392],[130.528724,22.033736],[130.522338,22.032999],[130.5149,22.033004],[130.508791,22.03374],[130.497885,22.035674],[130.490165,22.040028],[130.48113,22.046824],[130.476613,22.057745],[130.479272,22.069876],[130.488055,22.073043],[130.495743,22.075056],[130.500039,22.072418],[130.496199,22.066574],[130.494856,22.055539],[130.496816,22.050952],[130.498893,22.049414],[130.506924,22.047562],[130.520476,22.049494],[130.529524,22.047079]]],[[[130.999867,22.922323],[131.000166,22.92369],[130.99986,22.926333],[131.006207,22.928341],[131.00974,22.926938],[131.01185,22.924878],[131.012347,22.92269],[131.007953,22.922598],[131.002459,22.922415],[130.999867,22.922323]]],[[[130.538937,26.154233],[130.513949,26.161762],[130.513536,26.183399],[130.519662,26.192862],[130.531094,26.194024],[130.549525,26.183995],[130.55502,26.163758],[130.538937,26.154233]]],[[[131.000969,22.5632],[131.001859,22.561488],[131.001859,22.56002],[131.000969,22.55896],[130.999713,22.558715],[130.998106,22.559122],[130.997034,22.560427],[130.996498,22.561731],[130.996498,22.562874],[130.996858,22.564014],[130.997841,22.564423],[130.999362,22.56426],[131.000969,22.5632]]],[[[130.580899,26.108135],[130.571619,26.100065],[130.565746,26.100861],[130.546975,26.108648],[130.541897,26.11927],[130.543647,26.12467],[130.554368,26.13078],[130.563286,26.134731],[130.577049,26.127394],[130.581129,26.117957],[130.580899,26.108135]]],[[[130.989053,22.624011],[130.988982,22.624623],[130.989207,22.625372],[130.989878,22.625849],[130.991146,22.626121],[130.992712,22.626122],[130.994351,22.625647],[130.996065,22.624422],[130.997185,22.623469],[130.998084,22.62245],[130.998238,22.621564],[130.997714,22.621019],[130.996735,22.62061],[130.994728,22.62027],[130.993307,22.620066],[130.992489,22.620336],[130.991887,22.62129],[130.990774,22.62231],[130.989353,22.623466],[130.989053,22.624011]]],[[[130.610743,21.206593],[130.601068,21.206609],[130.590946,21.206621],[130.582602,21.206644],[130.577767,21.207058],[130.574217,21.20986],[130.574217,21.212272],[130.576885,21.216306],[130.583904,21.219503],[130.595317,21.223893],[130.605489,21.224311],[130.614699,21.222269],[130.61999,21.219449],[130.621741,21.215016],[130.620414,21.211801],[130.616462,21.20779],[130.610743,21.206593]]],[[[130.984781,23.593395],[130.984781,23.594125],[130.985581,23.595221],[130.988381,23.596685],[130.99025,23.597418],[130.993049,23.597663],[130.994516,23.597421],[130.995983,23.596569],[130.997049,23.59523],[130.997314,23.592917],[130.997579,23.590114],[130.997314,23.588166],[130.996513,23.587312],[130.995045,23.587312],[130.993449,23.587677],[130.991581,23.589501],[130.990379,23.590717],[130.988783,23.591325],[130.98705,23.591815],[130.985847,23.592421],[130.984781,23.593395]]],[[[130.585837,21.059535],[130.582921,21.060543],[130.58165,21.06188],[130.582008,21.062878],[130.584384,21.063876],[130.587482,21.06504],[130.590035,21.065703],[130.593503,21.065698],[130.597689,21.066026],[130.60152,21.066851],[130.604436,21.06718],[130.60717,21.06801],[130.610996,21.06817],[130.616462,21.068159],[130.620839,21.067647],[130.623212,21.066646],[130.625029,21.06564],[130.625758,21.064304],[130.625758,21.06247],[130.62321,21.061313],[130.620113,21.059484],[130.616826,21.057156],[130.613544,21.056156],[130.609547,21.05567],[130.605186,21.055685],[130.601548,21.056364],[130.598996,21.057039],[130.59591,21.057549],[130.590024,21.058357],[130.585837,21.059535]]],[[[130.984209,26.156904],[130.981301,26.163752],[130.979962,26.172297],[130.988213,26.179166],[131.003017,26.180998],[131.021013,26.174433],[131.022605,26.160201],[131.019812,26.154361],[130.996608,26.152528],[130.984209,26.156904]]],[[[130.609254,26.094153],[130.615371,26.10007],[130.623302,26.100866],[130.636524,26.097839],[130.643728,26.093589],[130.646682,26.086247],[130.640023,26.079487],[130.631281,26.07587],[130.623973,26.077665],[130.61093,26.085093],[130.609254,26.094153]]],[[[130.974304,21.540176],[130.971022,21.56016],[130.982962,21.575426],[131.001861,21.586567],[131.018119,21.585155],[131.02903,21.570764],[131.022497,21.538185],[130.986357,21.527194],[130.974304,21.540176]]],[[[130.63023,22.720617],[130.630823,22.719344],[130.631048,22.716248],[130.631499,22.712429],[130.631951,22.709024],[130.631951,22.703452],[130.632065,22.697156],[130.631502,22.691895],[130.630485,22.688488],[130.62732,22.68591],[130.624146,22.684801],[130.62223,22.685026],[130.619422,22.686644],[130.617849,22.690675],[130.617623,22.696143],[130.617736,22.699342],[130.618525,22.704918],[130.618977,22.712449],[130.619653,22.719568],[130.621296,22.725406],[130.621089,22.729377],[130.621089,22.734136],[130.621463,22.74121],[130.622482,22.74878],[130.623785,22.754204],[130.62547,22.759964],[130.625815,22.764716],[130.627096,22.767675],[130.629174,22.769995],[130.631252,22.770203],[130.635526,22.769881],[130.637028,22.7684],[130.637732,22.762813],[130.637732,22.757745],[130.63785,22.754682],[130.636916,22.750133],[130.636916,22.746438],[130.636223,22.741264],[130.634378,22.732927],[130.632519,22.724469],[130.63023,22.720617]]],[[[130.981073,22.921988],[130.979363,22.920553],[130.977275,22.919714],[130.974915,22.918635],[130.972812,22.918394],[130.970717,22.91839],[130.968883,22.918506],[130.967308,22.918863],[130.966912,22.91946],[130.96692,22.920421],[130.968106,22.9215],[130.969286,22.921861],[130.970466,22.921984],[130.974536,22.923666],[130.977153,22.924151],[130.978968,22.924137],[130.980418,22.923781],[130.981073,22.923064],[130.981073,22.921988]]],[[[130.638461,26.213815],[130.642019,26.220876],[130.648151,26.221654],[130.653925,26.217953],[130.656374,26.208079],[130.656745,26.199221],[130.651253,26.19742],[130.645579,26.19878],[130.642039,26.20285],[130.638461,26.213815]]],[[[130.961963,23.583877],[130.96116,23.584725],[130.961157,23.585817],[130.961999,23.587493],[130.963593,23.589734],[130.965472,23.591103],[130.96852,23.592428],[130.971446,23.592748],[130.9732,23.592341],[130.973888,23.590968],[130.973457,23.589871],[130.972112,23.588772],[130.970242,23.588158],[130.968909,23.586937],[130.967175,23.585227],[130.965435,23.584248],[130.963428,23.583632],[130.961963,23.583877]]],[[[130.64941,26.262708],[130.643222,26.267052],[130.640989,26.278262],[130.643231,26.282958],[130.65061,26.281988],[130.659825,26.276856],[130.662104,26.276126],[130.664955,26.268049],[130.660448,26.263802],[130.659836,26.263802],[130.65983,26.263802],[130.64941,26.262708]]],[[[130.959298,22.79928],[130.959298,22.800245],[130.960359,22.800894],[130.961888,22.801113],[130.964956,22.801231],[130.968846,22.801237],[130.973681,22.801141],[130.975687,22.80104],[130.978496,22.800388],[130.980147,22.799532],[130.980147,22.79878],[130.979799,22.797383],[130.977671,22.795556],[130.976272,22.794924],[130.974745,22.795133],[130.973211,22.795774],[130.970733,22.796735],[130.967672,22.797369],[130.964015,22.79768],[130.961652,22.797678],[130.960124,22.798102],[130.959298,22.79928]]],[[[130.647847,21.449092],[130.649477,21.451475],[130.653438,21.454284],[130.658719,21.455489],[130.65983,21.455571],[130.664453,21.455898],[130.671512,21.455101],[130.675478,21.451893],[130.677781,21.449092],[130.680775,21.445445],[130.684308,21.439427],[130.690487,21.431388],[130.694024,21.421748],[130.694904,21.414116],[130.691816,21.409276],[130.689586,21.408257],[130.687398,21.407255],[130.681211,21.407638],[130.680802,21.408244],[130.679336,21.413779],[130.672836,21.42235],[130.667058,21.428284],[130.663884,21.43224],[130.659833,21.437308],[130.65652,21.439005],[130.650351,21.441824],[130.647279,21.445446],[130.647279,21.448261],[130.647847,21.449092]]],[[[130.959132,23.340731],[130.959031,23.339852],[130.958076,23.339059],[130.956624,23.339144],[130.955672,23.340209],[130.956234,23.341078],[130.956812,23.341608],[130.957786,23.34196],[130.958364,23.341873],[130.959132,23.340731]]],[[[130.659831,26.309372],[130.652062,26.310328],[130.649666,26.316588],[130.651344,26.322546],[130.65875,26.325592],[130.659833,26.325821],[130.670366,26.331567],[130.677832,26.326964],[130.680618,26.322196],[130.677274,26.314034],[130.663089,26.308972],[130.659831,26.309372]]],[[[130.956096,26.454156],[130.952106,26.462223],[130.955211,26.467885],[130.972415,26.472175],[130.990398,26.473503],[131.018524,26.476159],[131.042871,26.484389],[131.069692,26.486247],[131.089723,26.483776],[131.087713,26.464235],[131.055927,26.449186],[131.034179,26.441638],[131.006058,26.439122],[130.975316,26.441758],[130.956096,26.454156]]],[[[130.69798,21.219042],[130.70063,21.211002],[130.697537,21.206973],[130.691359,21.205755],[130.683412,21.205742],[130.676353,21.207344],[130.671944,21.212972],[130.671944,21.216997],[130.67415,21.221422],[130.680759,21.223441],[130.687382,21.223448],[130.693129,21.222251],[130.69798,21.219042]]],[[[130.983374,23.138928],[130.974947,23.131725],[130.965842,23.126921],[130.959094,23.123843],[130.95189,23.128602],[130.950751,23.137305],[130.95829,23.148082],[130.967685,23.150552],[130.971674,23.152116],[130.977933,23.151075],[130.98237,23.148166],[130.985905,23.142769],[130.983374,23.138928]]],[[[130.720997,26.355525],[130.716446,26.338536],[130.704239,26.331074],[130.691527,26.328017],[130.689594,26.338001],[130.692865,26.35184],[130.705504,26.360584],[130.71495,26.361003],[130.720997,26.355525]]],[[[130.948611,23.570623],[130.948026,23.571097],[130.947546,23.571635],[130.947805,23.57338],[130.94869,23.575438],[130.950375,23.577003],[130.951317,23.577629],[130.952117,23.577943],[130.953116,23.57745],[130.95363,23.576384],[130.953414,23.575287],[130.952812,23.573234],[130.951768,23.57159],[130.949968,23.570627],[130.948611,23.570623]]],[[[130.722753,26.07054],[130.725858,26.070098],[130.726312,26.070033],[130.731459,26.069303],[130.745054,26.060535],[130.745278,26.05568],[130.742627,26.046001],[130.735857,26.041934],[130.726361,26.041747],[130.725864,26.04174],[130.722753,26.041679],[130.71705,26.041569],[130.700908,26.046498],[130.695543,26.055037],[130.702852,26.065361],[130.713467,26.07186],[130.722753,26.07054]]],[[[130.945586,22.61653],[130.945138,22.617685],[130.945433,22.618298],[130.946035,22.618776],[130.947086,22.618982],[130.948726,22.619053],[130.950065,22.619056],[130.951641,22.61865],[130.952909,22.617835],[130.953576,22.616815],[130.9538,22.616068],[130.953576,22.615046],[130.952833,22.614432],[130.952013,22.614226],[130.950597,22.614223],[130.949021,22.614425],[130.947162,22.614898],[130.946258,22.615713],[130.945586,22.61653]]],[[[130.779053,22.715312],[130.780522,22.694772],[130.770527,22.681701],[130.754854,22.672859],[130.740953,22.675153],[130.733048,22.681809],[130.731578,22.688502],[130.736705,22.697598],[130.747087,22.708037],[130.752913,22.71577],[130.752208,22.723641],[130.749566,22.728786],[130.753966,22.733127],[130.762072,22.735859],[130.770525,22.736503],[130.777042,22.731844],[130.779337,22.72526],[130.779053,22.715312]]],[[[130.941111,23.344837],[130.940533,23.345011],[130.940338,23.345803],[130.941779,23.347031],[130.944581,23.348536],[130.946416,23.349421],[130.94805,23.34978],[130.94893,23.34943],[130.94912,23.348288],[130.949025,23.347231],[130.948152,23.346348],[130.946502,23.345719],[130.944103,23.345375],[130.942267,23.345105],[130.941111,23.344837]]],[[[130.761317,21.933581],[130.753397,21.93355],[130.748572,21.935948],[130.742414,21.940337],[130.741097,21.947136],[130.741541,21.950341],[130.744609,21.952746],[130.749881,21.95356],[130.755595,21.952771],[130.761311,21.949985],[130.767454,21.947189],[130.770975,21.943596],[130.771411,21.939993],[130.768335,21.935987],[130.761317,21.933581]]],[[[130.953749,23.341873],[130.95307,23.341078],[130.951236,23.34116],[130.947754,23.341237],[130.944686,23.341154],[130.941594,23.341144],[130.938986,23.341055],[130.937541,23.341314],[130.936774,23.342017],[130.936963,23.342897],[130.93793,23.343427],[130.939175,23.34351],[130.941205,23.343781],[130.944492,23.344145],[130.946987,23.344401],[130.950368,23.344412],[130.952681,23.34442],[130.953265,23.344336],[130.954038,23.343105],[130.953749,23.341873]]],[[[130.760025,26.404962],[130.763288,26.408874],[130.784554,26.41292],[130.803968,26.412923],[130.808186,26.404962],[130.80871,26.403973],[130.808716,26.403961],[130.811592,26.398517],[130.794088,26.385385],[130.764218,26.375668],[130.749747,26.37871],[130.749256,26.392042],[130.759135,26.403895],[130.759162,26.40393],[130.760025,26.404962]]],[[[130.930718,22.612557],[130.930647,22.613238],[130.930872,22.613851],[130.93132,22.614533],[130.932364,22.614669],[130.933414,22.614671],[130.93476,22.614333],[130.935574,22.61379],[130.9364,22.61277],[130.937142,22.611751],[130.937142,22.611069],[130.93655,22.610452],[130.935953,22.610313],[130.93431,22.610452],[130.93296,22.610791],[130.931768,22.611403],[130.930718,22.612557]]],[[[130.796008,23.25694],[130.794825,23.255675],[130.792898,23.254208],[130.791409,23.25372],[130.789054,23.252643],[130.787451,23.251469],[130.786703,23.250295],[130.785745,23.249243],[130.784142,23.248557],[130.781467,23.248162],[130.779646,23.247963],[130.777825,23.247766],[130.775791,23.247957],[130.772796,23.24844],[130.76947,23.249116],[130.767005,23.249501],[130.7654,23.249984],[130.76442,23.250858],[130.763889,23.25203],[130.763996,23.253301],[130.765063,23.254084],[130.766794,23.255171],[130.768608,23.256338],[130.770744,23.257806],[130.77289,23.259958],[130.774387,23.262599],[130.77546,23.266216],[130.776746,23.268271],[130.778889,23.269932],[130.78167,23.271598],[130.785848,23.273069],[130.788626,23.273361],[130.790333,23.272776],[130.791728,23.271408],[130.793435,23.269747],[130.794935,23.268088],[130.796756,23.26623],[130.797073,23.264958],[130.797073,23.263589],[130.796649,23.261047],[130.796544,23.258799],[130.796008,23.25694]]],[[[130.92686,23.540105],[130.926264,23.540787],[130.926068,23.542228],[130.925925,23.544621],[130.926288,23.548009],[130.926726,23.549903],[130.927346,23.551164],[130.928692,23.551995],[130.929888,23.552891],[130.931656,23.553231],[130.933161,23.552824],[130.933615,23.552415],[130.933763,23.551458],[130.933461,23.550226],[130.933013,23.548314],[130.933013,23.546537],[130.933763,23.545581],[130.935254,23.543807],[130.935107,23.542166],[130.933614,23.540661],[130.930759,23.54011],[130.92837,23.53997],[130.92686,23.540105]]],[[[130.793902,21.308241],[130.809294,21.314961],[130.825801,21.319847],[130.854127,21.319843],[130.878916,21.314936],[130.876653,21.303155],[130.869502,21.294061],[130.86193,21.287281],[130.839895,21.279328],[130.816436,21.279749],[130.797027,21.288295],[130.793902,21.308241]]],[[[130.943366,23.161089],[130.939192,23.155546],[130.934136,23.153701],[130.930559,23.151328],[130.924358,23.150622],[130.922331,23.154316],[130.923082,23.160319],[130.92638,23.163549],[130.931441,23.167519],[130.936885,23.169147],[130.942336,23.167433],[130.943366,23.161089]]],[[[130.819857,26.053638],[130.821063,26.062397],[130.825461,26.067142],[130.832262,26.071158],[130.841066,26.071158],[130.852256,26.067499],[130.865017,26.0631],[130.858645,26.052544],[130.848716,26.050867],[130.823872,26.050719],[130.819857,26.053638]]],[[[130.925792,23.341487],[130.925987,23.339992],[130.924918,23.338406],[130.923185,23.337433],[130.920484,23.336635],[130.917683,23.336541],[130.915762,23.336537],[130.914888,23.336976],[130.914506,23.337767],[130.914795,23.339263],[130.915083,23.340232],[130.915372,23.340849],[130.915372,23.342344],[130.915762,23.34384],[130.916817,23.344899],[130.918367,23.345429],[130.920775,23.345435],[130.923086,23.344648],[130.92482,23.343421],[130.925792,23.341487]]],[[[130.848085,25.93209],[130.844801,25.926818],[130.836767,25.922542],[130.826064,25.93048],[130.820675,25.943792],[130.822262,25.955102],[130.82746,25.961673],[130.836278,25.964966],[130.847046,25.962757],[130.850656,25.94817],[130.848085,25.93209]]],[[[130.914912,22.593041],[130.913562,22.59378],[130.912619,22.595627],[130.912053,22.597835],[130.912283,22.599672],[130.912619,22.600435],[130.913292,22.600805],[130.914511,22.600807],[130.915454,22.600067],[130.91667,22.598712],[130.917584,22.596683],[130.918025,22.595138],[130.91789,22.593906],[130.917282,22.59328],[130.916163,22.593005],[130.914912,22.593041]]],[[[130.88882,21.698276],[130.869162,21.693223],[130.853104,21.698532],[130.83566,21.710159],[130.823193,21.721069],[130.821255,21.729613],[130.82867,21.735061],[130.846735,21.740228],[130.865244,21.73149],[130.883002,21.72026],[130.889375,21.707372],[130.88882,21.698276]]],[[[130.914618,22.525484],[130.915372,22.525792],[130.91688,22.525791],[130.918643,22.525793],[130.920069,22.525491],[130.920825,22.524881],[130.920825,22.524193],[130.920405,22.523809],[130.919398,22.523884],[130.918054,22.52388],[130.917216,22.522885],[130.916374,22.520818],[130.916126,22.519137],[130.916126,22.517913],[130.916544,22.516384],[130.9173,22.515239],[130.917973,22.514017],[130.917882,22.512331],[130.916709,22.510417],[130.9152,22.508808],[130.914618,22.507353],[130.914446,22.506054],[130.914446,22.505135],[130.914948,22.504526],[130.915791,22.504374],[130.917045,22.504678],[130.917799,22.505291],[130.919484,22.50728],[130.920655,22.50904],[130.922082,22.512409],[130.92233,22.514169],[130.922584,22.516847],[130.922584,22.518378],[130.923593,22.519221],[130.924011,22.519221],[130.92443,22.518687],[130.924684,22.517159],[130.924601,22.514633],[130.923845,22.511648],[130.922837,22.508358],[130.92183,22.506215],[130.92024,22.504379],[130.91839,22.502616],[130.916544,22.501313],[130.915036,22.500927],[130.913099,22.501002],[130.911843,22.501689],[130.910669,22.502914],[130.91008,22.504672],[130.910334,22.506279],[130.910929,22.508193],[130.911512,22.510948],[130.911512,22.513395],[130.911431,22.51546],[130.910841,22.517448],[130.910841,22.519361],[130.910835,22.520811],[130.911253,22.52196],[130.912262,22.522802],[130.913187,22.524027],[130.914618,22.525484]]],[[[130.936434,26.448306],[130.936461,26.436119],[130.919728,26.431226],[130.89186,26.426687],[130.858183,26.424535],[130.8452,26.427227],[130.845482,26.436221],[130.850041,26.442077],[130.875048,26.45288],[130.900838,26.457103],[130.919675,26.457098],[130.936434,26.448306]]],[[[130.898327,23.351298],[130.898039,23.352529],[130.897656,23.353936],[130.897656,23.355343],[130.898711,23.355783],[130.900442,23.35587],[130.902181,23.355343],[130.902946,23.354552],[130.903523,23.353321],[130.903141,23.352442],[130.90208,23.351475],[130.900831,23.350858],[130.899287,23.350506],[130.898327,23.351298]]],[[[130.855022,23.335035],[130.854761,23.335928],[130.855022,23.337419],[130.855924,23.33857],[130.856824,23.339066],[130.857845,23.338964],[130.858647,23.338449],[130.858835,23.337607],[130.858519,23.336201],[130.857973,23.335086],[130.856958,23.33464],[130.855977,23.334658],[130.855022,23.335035]]],[[[130.90321,22.540468],[130.902033,22.539779],[130.901196,22.539549],[130.900277,22.539932],[130.899351,22.541003],[130.898852,22.542149],[130.897927,22.542763],[130.897007,22.543298],[130.896254,22.544062],[130.896001,22.545286],[130.895919,22.546968],[130.895919,22.548115],[130.896337,22.549417],[130.896838,22.550335],[130.89768,22.551022],[130.898433,22.551099],[130.899178,22.551314],[130.899925,22.550917],[130.901352,22.550295],[130.902964,22.548368],[130.904019,22.546104],[130.905055,22.543987],[130.905809,22.54284],[130.905809,22.542227],[130.905137,22.541692],[130.904213,22.541156],[130.90321,22.540468]]],[[[130.864197,23.340335],[130.864008,23.340951],[130.863714,23.342182],[130.864197,23.343149],[130.865255,23.343762],[130.866983,23.34376],[130.868231,23.343407],[130.868425,23.34244],[130.868424,23.341033],[130.867366,23.339363],[130.866118,23.338222],[130.86516,23.338223],[130.864585,23.338928],[130.864197,23.340335]]],[[[130.946921,21.529181],[130.941455,21.512193],[130.912984,21.499203],[130.898747,21.503202],[130.891081,21.510199],[130.891082,21.52419],[130.905313,21.53718],[130.929405,21.54617],[130.943641,21.538175],[130.946921,21.529181]]],[[[130.882768,22.807713],[130.878396,22.80658],[130.872343,22.808954],[130.868708,22.813872],[130.866956,22.823595],[130.866579,22.830571],[130.869837,22.834002],[130.877477,22.836288],[130.884618,22.836974],[130.890381,22.829764],[130.890036,22.817586],[130.885957,22.809493],[130.882768,22.807713]]],[[[130.891925,22.78752],[130.890748,22.791851],[130.892208,22.794472],[130.896718,22.794728],[130.90458,22.794277],[130.909544,22.791201],[130.909188,22.784888],[130.906353,22.782623],[130.903334,22.782623],[130.891925,22.78752]]],[[[130.872747,23.34472],[130.872459,23.345424],[130.872747,23.346127],[130.874161,23.347125],[130.876407,23.34754],[130.879644,23.347644],[130.882054,23.347591],[130.883446,23.346917],[130.88407,23.345958],[130.883897,23.344972],[130.883514,23.344006],[130.882455,23.343479],[130.881495,23.343745],[130.880054,23.344712],[130.879089,23.344625],[130.878318,23.344098],[130.877841,23.342779],[130.876977,23.342428],[130.875824,23.34243],[130.874483,23.34296],[130.873424,23.343752],[130.872747,23.34472]]],[[[130.902633,26.112382],[130.894245,26.119316],[130.888289,26.129561],[130.897651,26.136887],[130.904344,26.135052],[130.915825,26.132086],[130.925024,26.125149],[130.917423,26.114567],[130.902633,26.112382]]]]},"properties":{"id":10,"adcode":460000,"name":"海南","cp":[109.9512,19.2041],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[112.024431,24.739955],[111.961606,24.720934],[111.937584,24.595323],[112.007185,24.534376],[111.985011,24.467953],[112.057692,24.387327],[112.029975,24.297925],[111.939432,24.230287],[111.877838,24.229196],[111.878454,24.110195],[111.940664,23.987803],[111.812548,23.887727],[111.8107,23.806735],[111.664723,23.83465],[111.621607,23.725692],[111.667187,23.718023],[111.615448,23.639117],[111.487332,23.62651],[111.479941,23.532738],[111.399869,23.469638],[111.353673,23.28895],[111.388782,23.210337],[111.377695,23.082149],[111.433746,23.036456],[111.363528,22.968713],[111.358601,22.889362],[111.202152,22.740452],[111.056791,22.72776],[111.055559,22.648268],[110.778386,22.585304],[110.711249,22.369684],[110.785777,22.294415],[110.725415,22.295522],[110.646575,22.222982],[110.629329,22.149296],[110.560344,22.196393],[110.488895,22.144863],[110.414366,22.20858],[110.350924,22.072799],[110.355236,22.061709],[110.388497,21.89026],[110.200019,21.898587],[110.119947,21.901918],[110.051578,21.856945],[109.94502,21.844172],[109.940709,21.734723],[109.898209,21.649661],[109.742992,21.61629],[109.785492,21.457116],[109.704188,21.462684],[109.612413,21.55676],[109.540964,21.466025],[109.245929,21.425929],[109.138756,21.389163],[109.042669,21.464355],[109.150459,21.523924],[109.142451,21.56455],[108.937959,21.589588],[108.881293,21.627415],[108.74517,21.599046],[108.710062,21.646881],[108.591802,21.677465],[108.479085,21.546743],[108.338651,21.541177],[108.230245,21.49108],[108.235173,21.60294],[108.106441,21.508895],[108.030681,21.546186],[107.956768,21.535055],[107.860066,21.651886],[107.546553,21.58625],[107.46956,21.659671],[107.388256,21.594039],[107.310648,21.733611],[107.247206,21.703039],[107.088294,21.805291],[107.011917,21.826399],[107.05996,21.915241],[106.999598,21.947433],[106.73844,22.007911],[106.681158,21.995152],[106.717498,22.074463],[106.673151,22.182543],[106.7021,22.206918],[106.663296,22.330948],[106.562282,22.34589],[106.562282,22.462608],[106.61402,22.601876],[106.710723,22.57536],[106.768621,22.739349],[106.841302,22.799484],[106.606013,22.925737],[106.366413,22.857939],[106.286957,22.86676],[106.206885,22.978629],[106.019639,22.990747],[105.994385,22.93786],[105.893987,22.936758],[105.724604,23.062332],[105.574931,23.066186],[105.542902,23.18449],[105.531815,23.248275],[105.694423,23.363122],[105.699966,23.401566],[105.815763,23.506953],[105.89214,23.525058],[105.999929,23.447683],[106.141595,23.569487],[106.120653,23.605129],[106.157609,23.724048],[106.136667,23.795238],[106.192102,23.824798],[106.04982,24.089986],[105.933407,24.123847],[105.89214,24.040271],[105.704278,24.066497],[105.649459,24.033167],[105.628518,24.126577],[105.529967,24.129308],[105.481924,24.018958],[105.320548,24.116202],[105.260186,24.061033],[105.20044,24.105279],[105.229389,24.165888],[105.164715,24.288109],[105.188121,24.346995],[105.063085,24.429281],[104.979933,24.412937],[104.83642,24.446712],[104.72863,24.446167],[104.70892,24.321372],[104.610986,24.376973],[104.492109,24.656241],[104.529682,24.73126],[104.63316,24.65896],[104.743413,24.621978],[104.841963,24.676359],[104.899245,24.752996],[105.03352,24.787765],[105.077868,24.918065],[105.09573,24.928375],[105.198592,24.995095],[105.265729,24.930003],[105.365511,24.943566],[105.445584,24.918608],[105.500402,24.807862],[105.70551,24.768752],[105.827466,24.702997],[105.942031,24.724738],[106.023335,24.632313],[106.045508,24.681796],[106.173008,24.760059],[106.206269,24.851304],[106.146522,24.948449],[106.215508,24.982079],[106.304819,24.973944],[106.590615,25.087791],[106.684238,25.178252],[106.732281,25.162548],[106.900432,25.194495],[106.912751,25.243212],[107.013765,25.275138],[107.012533,25.353024],[106.963874,25.437884],[107.066736,25.509186],[107.064272,25.559395],[107.228728,25.604728],[107.336517,25.461116],[107.318039,25.401677],[107.420901,25.393029],[107.432604,25.289205],[107.481263,25.300024],[107.472024,25.213984],[107.599523,25.250789],[107.659885,25.316251],[107.700537,25.193954],[107.741805,25.239965],[107.841587,25.115966],[108.001732,25.196661],[108.115065,25.210195],[108.152021,25.324364],[108.142782,25.390867],[108.348506,25.536183],[108.418723,25.443287],[108.471693,25.458955],[108.625062,25.308138],[108.6072,25.491904],[108.68912,25.623072],[108.763649,25.637097],[108.781511,25.554537],[108.949046,25.557236],[109.025423,25.512426],[109.088249,25.550758],[109.030966,25.629545],[109.07901,25.720679],[109.000785,25.73631],[108.953974,25.686714],[108.896076,25.71421],[108.989698,25.778881],[109.143683,25.795044],[109.147995,25.7417],[109.3414,25.732537],[109.339552,25.834363],[109.435022,25.933411],[109.408537,25.967305],[109.48245,26.029687],[109.513247,25.997962],[109.635203,26.047428],[109.730057,25.989895],[109.685094,25.880129],[109.806434,25.874746],[109.783028,25.988282],[109.864332,26.027537],[109.906832,26.143611],[109.965962,26.195699],[110.099005,26.16939],[110.065128,26.051191],[110.165527,26.023773],[110.201251,26.066241],[110.257301,25.961388],[110.325671,25.975373],[110.373098,26.08935],[110.516612,26.186035],[110.555416,26.286396],[110.612083,26.333594],[110.76114,26.248838],[110.939146,26.28425],[110.94469,26.373805],[111.092515,26.306779],[111.204616,26.307852],[111.279761,26.271911],[111.267442,26.058716],[111.189834,25.953318],[111.252043,25.864517],[111.346282,25.906504],[111.49226,25.868824],[111.43313,25.84621],[111.442369,25.771877],[111.30871,25.72014],[111.343202,25.602569],[111.301319,25.450851],[111.103602,25.284877],[111.112841,25.217232],[110.998892,25.161465],[110.951465,25.043891],[110.991501,24.924034],[111.100522,24.945736],[111.101754,25.035218],[111.200921,25.074786],[111.274833,25.151175],[111.321645,25.10513],[111.435593,25.09321],[111.43313,24.97991],[111.470086,24.928917],[111.479325,24.797543],[111.431282,24.687776],[111.570484,24.644821],[111.68936,24.778531],[111.951135,24.769839],[112.024431,24.739955]]],[[[124.980973,30.860483],[128.949144,30.860483],[128.942677,30.79224],[128.980726,30.763935],[128.93306,30.721968],[128.929716,30.672812],[128.823514,30.580564],[128.72484,30.572702],[128.724004,30.523458],[128.535853,30.484453],[128.490279,30.350879],[128.540871,30.304252],[128.499895,30.304937],[128.446377,30.26],[128.43467,30.214352],[128.387841,30.243528],[128.33934,30.211606],[128.288748,30.251078],[128.245683,30.166964],[128.248611,30.160094],[128.271188,30.053885],[128.143246,30.059043],[128.088891,30.061106],[128.042481,30.033246],[127.970146,30.025333],[127.96722,29.957531],[127.93837,29.904837],[127.833006,29.884164],[127.861855,29.785558],[127.806665,29.789007],[127.744366,29.847286],[127.695865,29.791078],[127.495588,29.766238],[127.422838,29.743463],[127.357612,29.790043],[127.430782,29.826945],[127.425346,29.852112],[127.286532,29.867622],[127.248067,29.891055],[127.155663,29.873481],[127.131831,29.903114],[127.051554,29.922061],[126.975039,29.84108],[126.879709,29.837632],[126.806121,29.806598],[126.809466,29.875894],[126.72208,29.817635],[126.670652,29.840735],[126.620479,29.83384],[126.554836,29.906215],[126.342016,29.865555],[126.289752,29.911038],[126.234561,29.87038],[126.181879,29.956843],[126.138813,29.937904],[126.030941,30.001247],[125.979094,30.014323],[126.011707,30.069359],[125.970732,30.089302],[125.793452,30.126767],[125.754568,30.118863],[125.779237,30.167995],[125.749132,30.234949],[125.768784,30.250048],[125.742443,30.326883],[125.673873,30.33614],[125.673873,30.408445],[125.708993,30.494719],[125.774637,30.478293],[125.81394,30.57988],[125.863277,30.617134],[125.703558,30.695346],[125.540913,30.653346],[125.486976,30.658811],[125.432622,30.72811],[125.305515,30.735618],[125.288371,30.702856],[125.22022,30.702172],[125.105239,30.779964],[125.003638,30.782351],[124.981896,30.855639],[124.980973,30.860483]]]]},"properties":{"id":26,"adcode":450000,"name":"广西","cp":[108.7813,23.6426],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[120.443706,22.441042],[120.297112,22.531154],[120.20041,22.721137],[120.131425,23.002313],[120.018708,23.073342],[120.108019,23.34115],[120.12157,23.504758],[120.095084,23.587583],[120.102476,23.70104],[120.175156,23.807282],[120.245989,23.84067],[120.278018,23.927657],[120.68885,24.600764],[120.82374,24.68832],[120.89211,24.767665],[120.914899,24.864876],[121.024537,25.040639],[121.209318,25.127342],[121.371926,25.15984],[121.444607,25.27081],[121.53515,25.307597],[121.62323,25.294614],[121.745186,25.162007],[121.917033,25.137634],[121.947214,25.031965],[122.012503,25.001602],[121.844968,24.836101],[121.841272,24.733977],[121.892395,24.618171],[121.88562,24.529477],[121.809243,24.338818],[121.643556,24.097633],[121.65957,24.006934],[121.621382,23.920547],[121.522832,23.538772],[121.479716,23.32247],[121.415042,23.196039],[121.430441,23.137181],[121.370695,23.084351],[121.324499,22.945574],[121.170514,22.723345],[121.03316,22.650477],[120.914899,22.302718],[120.907508,22.033426],[120.86624,21.98461],[120.873016,21.897477],[120.701784,21.926898],[120.651277,22.033426],[120.640806,22.241259],[120.569973,22.361938],[120.443706,22.441042]]],[[[135.833451,30.141919],[135.820136,30.156618],[135.820882,30.164063],[135.815662,30.170408],[135.815198,30.172807],[135.815647,30.174974],[135.816604,30.176058],[135.818741,30.176047],[135.825165,30.172317],[135.863539,30.173545],[135.865442,30.17201],[135.8652,30.169395],[135.86257,30.16722],[135.86257,30.16526],[135.866151,30.159589],[135.866151,30.158498],[135.861854,30.157196],[135.860196,30.155456],[135.863772,30.144771],[135.866873,30.142368],[135.868241,30.141852],[135.881909,30.136688],[135.882864,30.134072],[135.882628,30.130155],[135.87976,30.123613],[135.874259,30.120998],[135.862094,30.123186],[135.860182,30.125154],[135.859718,30.128423],[135.853743,30.135618],[135.836382,30.138745],[135.833451,30.141919]]],[[[119.322218,23.397062],[119.320909,23.397324],[119.319848,23.399154],[119.319847,23.400989],[119.323784,23.407013],[119.323784,23.410946],[119.325263,23.411752],[119.326655,23.411505],[119.330092,23.407558],[119.33692,23.406005],[119.33718,23.405219],[119.336128,23.403644],[119.334554,23.403113],[119.332971,23.401534],[119.332436,23.399424],[119.331401,23.398389],[119.322218,23.397062]]],[[[135.801076,30.533187],[135.797017,30.537705],[135.797364,30.540213],[135.799413,30.542717],[135.804209,30.54522],[135.826764,30.544187],[135.831551,30.540712],[135.832914,30.536317],[135.832622,30.533061],[135.832581,30.532575],[135.824393,30.523839],[135.819603,30.521667],[135.810697,30.522307],[135.801076,30.533187]]],[[[119.326845,23.322885],[119.326524,23.322453],[119.323605,23.323093],[119.323605,23.324283],[119.324032,23.324824],[119.324684,23.325045],[119.326628,23.323643],[119.326845,23.322885]]],[[[134.835312,30.860483],[135.756903,30.860483],[135.766694,30.826331],[135.726138,30.793603],[135.694778,30.707634],[135.590251,30.569966],[135.497011,30.524827],[135.416733,30.309394],[135.411716,30.142573],[135.383702,30.112332],[135.388302,30.058355],[135.272066,30.076581],[135.237781,30.142573],[135.230673,30.271322],[135.18259,30.346081],[135.096877,30.395085],[134.997366,30.450908],[134.931723,30.568599],[134.884894,30.742783],[134.808379,30.786785],[134.835312,30.860483]]],[[[119.342384,23.316112],[119.340261,23.315991],[119.339505,23.31653],[119.339509,23.31891],[119.340475,23.321067],[119.341214,23.321132],[119.341822,23.320766],[119.342566,23.316786],[119.342384,23.316112]]],[[[134.405174,30.860483],[134.411797,30.860483],[134.411779,30.860198],[134.413038,30.857728],[134.413031,30.856825],[134.41249,30.855674],[134.411683,30.855594],[134.411237,30.856252],[134.411142,30.857237],[134.408998,30.858807],[134.405174,30.860483]]],[[[119.452844,23.217275],[119.452445,23.216348],[119.449146,23.212647],[119.44808,23.197923],[119.447023,23.197795],[119.445049,23.199526],[119.440684,23.199534],[119.436313,23.196887],[119.434588,23.193971],[119.434458,23.19185],[119.436313,23.187864],[119.436303,23.186404],[119.435506,23.184546],[119.434319,23.184418],[119.43366,23.18548],[119.433521,23.187072],[119.430363,23.189604],[119.423736,23.192787],[119.423337,23.193979],[119.423606,23.195306],[119.424797,23.19703],[119.425067,23.203132],[119.415926,23.211359],[119.415928,23.213615],[119.419232,23.213746],[119.448208,23.219538],[119.452177,23.218339],[119.452844,23.217275]]],[[[124.553264,25.897547],[124.556667,25.903422],[124.563269,25.909921],[124.574189,25.914018],[124.582948,25.915043],[124.589753,25.913903],[124.595835,25.911226],[124.600064,25.906279],[124.603158,25.899573],[124.605633,25.891949],[124.606562,25.885037],[124.606046,25.878125],[124.603054,25.873999],[124.597585,25.870814],[124.591602,25.868648],[124.58511,25.867514],[124.579127,25.867823],[124.57139,25.869061],[124.562229,25.872277],[124.556359,25.880637],[124.55347,25.888271],[124.553264,25.897547]]],[[[119.523846,23.564128],[119.521823,23.562361],[119.500118,23.564734],[119.498311,23.562668],[119.494936,23.561112],[119.486954,23.56193],[119.481285,23.557281],[119.476867,23.55728],[119.474297,23.558588],[119.473787,23.562216],[119.476112,23.563763],[119.481285,23.565313],[119.484624,23.5684],[119.485395,23.572022],[119.486683,23.573572],[119.488007,23.57385],[119.495203,23.568627],[119.498061,23.568627],[119.506077,23.574319],[119.510208,23.582854],[119.509128,23.586187],[119.50707,23.588272],[119.498853,23.591703],[119.498083,23.594815],[119.499112,23.597142],[119.504241,23.596839],[119.506309,23.595789],[119.508127,23.596578],[119.509676,23.598383],[119.509676,23.602786],[119.512504,23.607693],[119.512504,23.609765],[119.507336,23.615477],[119.506826,23.618586],[119.509422,23.632835],[119.517701,23.648115],[119.523635,23.649133],[119.526472,23.647573],[119.528258,23.645209],[119.520758,23.569328],[119.523846,23.565682],[119.523846,23.564128]]],[[[123.830605,26.036592],[123.835284,26.040991],[123.842992,26.044561],[123.848491,26.045787],[123.855388,26.044822],[123.859785,26.042464],[123.862957,26.038055],[123.865703,26.032117],[123.866262,26.026056],[123.864324,26.019435],[123.859788,26.014764],[123.853733,26.011878],[123.844361,26.010231],[123.836523,26.011492],[123.831419,26.015768],[123.82867,26.021974],[123.827849,26.026943],[123.828398,26.032178],[123.830605,26.036592]]],[[[119.516158,23.353156],[119.493356,23.352931],[119.492015,23.354865],[119.492997,23.36044],[119.497254,23.364689],[119.4992,23.368937],[119.499517,23.386614],[119.495608,23.39319],[119.495609,23.395478],[119.497262,23.396471],[119.499536,23.396458],[119.501505,23.395155],[119.51879,23.372159],[119.518781,23.368226],[119.515847,23.365612],[119.514855,23.361676],[119.515512,23.358725],[119.517808,23.35611],[119.517464,23.354132],[119.516158,23.353156]]],[[[123.690322,25.923187],[123.691554,25.921572],[123.690938,25.917267],[123.690938,25.916729],[123.690322,25.923187]]],[[[119.515067,23.265637],[119.514029,23.264889],[119.508535,23.266787],[119.508009,23.269882],[119.508234,23.270485],[119.508831,23.270709],[119.514097,23.270622],[119.51484,23.26986],[119.515067,23.265637]]],[[[123.650807,25.733701],[123.654245,25.739241],[123.660577,25.743463],[123.667346,25.745022],[123.675445,25.745364],[123.682108,25.744159],[123.686666,25.741847],[123.690101,25.738301],[123.69267,25.732996],[123.694102,25.728237],[123.694209,25.723252],[123.692215,25.716937],[123.688439,25.711504],[123.683775,25.708836],[123.67856,25.70728],[123.671121,25.706602],[123.663565,25.707025],[123.657349,25.708452],[123.653692,25.711998],[123.650805,25.718081],[123.649808,25.723953],[123.649588,25.728271],[123.650807,25.733701]]],[[[119.517566,23.483293],[119.515637,23.484388],[119.514326,23.486332],[119.514075,23.49013],[119.514733,23.491107],[119.515624,23.491302],[119.518653,23.488061],[119.52167,23.488049],[119.536773,23.496887],[119.543466,23.497953],[119.545612,23.49729],[119.5482,23.49425],[119.5482,23.49317],[119.532892,23.484776],[119.517566,23.483293]]],[[[123.630842,25.82009],[123.633595,25.824991],[123.640061,25.829301],[123.646168,25.831097],[123.653477,25.83159],[123.66126,25.830173],[123.664846,25.826467],[123.667243,25.821574],[123.668559,25.816201],[123.669038,25.809864],[123.668318,25.804486],[123.664365,25.798864],[123.659093,25.795388],[123.65155,25.794421],[123.641854,25.795845],[123.63563,25.798706],[123.632159,25.802645],[123.630125,25.807663],[123.629646,25.814593],[123.630842,25.82009]]],[[[119.526637,23.259645],[119.52597,23.258819],[119.523404,23.257768],[119.519955,23.25288],[119.51928,23.252884],[119.518156,23.253341],[119.515734,23.253411],[119.515284,23.25379],[119.51544,23.254317],[119.51882,23.257176],[119.519202,23.26035],[119.520405,23.261551],[119.522273,23.262368],[119.525815,23.262065],[119.52649,23.261004],[119.526637,23.259645]]],[[[123.568042,25.680055],[123.572001,25.685093],[123.579392,25.687977],[123.588216,25.68923],[123.594161,25.688144],[123.600648,25.685257],[123.605515,25.679674],[123.606957,25.674629],[123.607317,25.668322],[123.604793,25.660396],[123.597223,25.65391],[123.587853,25.652112],[123.573979,25.65392],[123.567677,25.65753],[123.565354,25.664395],[123.565535,25.672146],[123.568042,25.680055]]],[[[119.524658,23.364934],[119.528258,23.366567],[119.533148,23.372445],[119.535752,23.37374],[119.542586,23.373712],[119.546188,23.371746],[119.54815,23.368466],[119.54815,23.366498],[119.546851,23.364541],[119.534774,23.363919],[119.532825,23.360984],[119.528569,23.360007],[119.524658,23.362312],[119.524658,23.364934]]],[[[123.559743,25.717984],[123.548656,25.720679],[123.549272,25.720679],[123.559743,25.718523],[123.560359,25.718523],[123.560359,25.717984],[123.559743,25.717984]]],[[[119.574609,23.510385],[119.574134,23.512241],[119.577678,23.518573],[119.577532,23.521521],[119.575376,23.523531],[119.563042,23.524954],[119.560561,23.526803],[119.554985,23.535622],[119.554829,23.537323],[119.553765,23.538411],[119.546817,23.538577],[119.545417,23.539973],[119.546984,23.546477],[119.549286,23.548014],[119.550844,23.551423],[119.552229,23.552346],[119.555302,23.552023],[119.556687,23.550317],[119.556384,23.541808],[119.557306,23.540563],[119.561469,23.538859],[119.56224,23.536382],[119.561635,23.531903],[119.56273,23.529442],[119.568732,23.530659],[119.571981,23.532816],[119.575516,23.533272],[119.577067,23.532185],[119.578151,23.523842],[119.580473,23.522442],[119.581401,23.522596],[119.583707,23.524449],[119.587105,23.532487],[119.591423,23.532793],[119.593123,23.532171],[119.597929,23.527694],[119.599934,23.527384],[119.601635,23.528312],[119.601947,23.530168],[119.601477,23.531869],[119.598701,23.536511],[119.599482,23.540224],[119.602724,23.543471],[119.602568,23.545793],[119.601032,23.547802],[119.572611,23.547827],[119.568581,23.549368],[119.567499,23.552156],[119.567802,23.553238],[119.569659,23.554015],[119.57954,23.554926],[119.58077,23.557245],[119.580614,23.559408],[119.579228,23.560651],[119.577215,23.561112],[119.565199,23.55944],[119.562245,23.561598],[119.561665,23.5658],[119.566736,23.570262],[119.56781,23.572735],[119.567035,23.581704],[119.567991,23.583888],[119.570156,23.585271],[119.580476,23.586329],[119.585105,23.591116],[119.586952,23.591115],[119.58881,23.589722],[119.595302,23.5724],[119.597314,23.571625],[119.599483,23.571779],[119.600871,23.574563],[119.601027,23.577347],[119.608755,23.586629],[119.609224,23.601168],[119.602574,23.612307],[119.603034,23.614778],[119.604431,23.616944],[119.609381,23.619109],[119.615726,23.618496],[119.617887,23.616179],[119.6182,23.613239],[119.615257,23.603185],[119.617271,23.601485],[119.620214,23.601489],[119.626095,23.606444],[119.632123,23.60645],[119.635218,23.603966],[119.636304,23.60134],[119.635836,23.598712],[119.631499,23.591751],[119.631038,23.588502],[119.632741,23.586032],[119.635058,23.585414],[119.636613,23.585726],[119.638012,23.586813],[119.637391,23.59454],[119.638625,23.595937],[119.647293,23.596253],[119.649153,23.597962],[119.650387,23.603069],[119.655037,23.607255],[119.659826,23.607542],[119.661373,23.604917],[119.662471,23.596595],[119.664644,23.595054],[119.669594,23.594901],[119.677041,23.597863],[119.680605,23.597876],[119.685414,23.593711],[119.688036,23.568181],[119.693918,23.562466],[119.701211,23.558624],[119.702132,23.55646],[119.700741,23.553826],[119.679664,23.553622],[119.656885,23.558205],[119.615092,23.532336],[119.613243,23.529397],[119.613243,23.526459],[119.616021,23.524451],[119.61695,23.523058],[119.616334,23.520431],[119.613391,23.516404],[119.614172,23.509907],[119.613087,23.508361],[119.611229,23.508048],[119.597319,23.511915],[119.578775,23.50775],[119.576307,23.50868],[119.574609,23.510385]]],[[[123.546192,25.729303],[123.549272,25.724991],[123.546192,25.728764],[123.546192,25.729303]]],[[[119.600865,23.619509],[119.594009,23.620336],[119.593195,23.623095],[119.593458,23.62693],[119.59483,23.629677],[119.595377,23.640389],[119.582759,23.655234],[119.572339,23.65635],[119.561635,23.655259],[119.556701,23.658014],[119.556701,23.662957],[119.561931,23.671212],[119.57015,23.675861],[119.590981,23.676104],[119.614326,23.660177],[119.616255,23.656604],[119.615152,23.649461],[119.612687,23.647262],[119.608287,23.645605],[119.605536,23.643135],[119.60472,23.639015],[119.604718,23.624454],[119.603338,23.621431],[119.600865,23.619509]]],[[[119.604996,23.736541],[119.602523,23.737091],[119.601699,23.738738],[119.601699,23.739838],[119.614615,23.750828],[119.622583,23.749734],[119.62478,23.747265],[119.625604,23.745071],[119.625604,23.742597],[119.624232,23.740671],[119.604996,23.736541]]],[[[119.624522,23.249308],[119.623592,23.244121],[119.622654,23.242925],[119.621325,23.242522],[119.615083,23.244244],[119.614285,23.245173],[119.613886,23.246501],[119.614024,23.247831],[119.615083,23.248892],[119.618807,23.250492],[119.623852,23.250099],[119.624522,23.249308]]],[[[123.447951,25.749017],[123.460765,25.761329],[123.466509,25.766081],[123.47438,25.76901],[123.485871,25.770299],[123.507708,25.770739],[123.512317,25.769093],[123.517891,25.765781],[123.520684,25.76183],[123.522822,25.757223],[123.522651,25.751128],[123.521173,25.745046],[123.517396,25.738968],[123.512142,25.735196],[123.504263,25.732747],[123.494575,25.731456],[123.48752,25.730162],[123.481613,25.727056],[123.477021,25.721975],[123.471772,25.718371],[123.464865,25.715746],[123.456992,25.715774],[123.45156,25.717913],[123.447946,25.72269],[123.444987,25.729437],[123.444166,25.735859],[123.445152,25.74326],[123.447951,25.749017]]],[[[119.670665,23.248838],[119.672262,23.252962],[119.672262,23.254026],[119.67159,23.255215],[119.670791,23.255741],[119.670263,23.257604],[119.670933,23.258671],[119.673062,23.259743],[119.682248,23.260027],[119.683178,23.259365],[119.683175,23.258298],[119.681705,23.253508],[119.67851,23.251243],[119.676389,23.24327],[119.67572,23.243004],[119.674926,23.243274],[119.671065,23.247643],[119.670665,23.248838]]],[[[122.040213,25.329546],[122.038915,25.333791],[122.039803,25.340491],[122.043155,25.34517],[122.043425,25.345444],[122.047387,25.349408],[122.056789,25.351888],[122.070681,25.345721],[122.074209,25.341394],[122.075105,25.333806],[122.073942,25.329615],[122.073307,25.327327],[122.06885,25.321968],[122.060808,25.319516],[122.06033,25.319552],[122.045618,25.3233],[122.040483,25.328661],[122.040213,25.329546]]],[[[122.031829,25.410608],[122.01824,25.410541],[122.00904,25.417088],[122.007097,25.428899],[122.009396,25.434803],[122.018263,25.441702],[122.026783,25.443994],[122.031979,25.442713],[122.036252,25.44168],[122.042184,25.436785],[122.045465,25.429573],[122.046129,25.421056],[122.043803,25.415457],[122.031829,25.410608]]],[[[121.481092,22.663973],[121.47511,22.671267],[121.475622,22.675314],[121.478642,22.679357],[121.485706,22.683398],[121.518934,22.68173],[121.525985,22.676121],[121.527992,22.669026],[121.527562,22.66377],[121.527502,22.662986],[121.515439,22.648884],[121.508384,22.645378],[121.495264,22.646409],[121.481092,22.663973]]],[[[121.931476,25.329337],[121.930074,25.335492],[121.932659,25.346006],[121.934667,25.349587],[121.938599,25.351881],[121.957943,25.35057],[121.963801,25.346005],[121.963836,25.345978],[121.96613,25.340724],[121.96646,25.333528],[121.964397,25.329399],[121.963179,25.326962],[121.956951,25.321722],[121.94254,25.319428],[121.936633,25.322383],[121.931716,25.32828],[121.931476,25.329337]]],[[[121.528784,22.032369],[121.509169,22.056098],[121.510268,22.068116],[121.502578,22.078359],[121.501894,22.082231],[121.502555,22.085729],[121.503966,22.087479],[121.507115,22.087461],[121.516576,22.08144],[121.573107,22.083423],[121.575911,22.080944],[121.575555,22.076723],[121.571681,22.073212],[121.571681,22.070047],[121.576954,22.060893],[121.576954,22.059134],[121.570626,22.057031],[121.568182,22.054223],[121.573451,22.036975],[121.578019,22.033096],[121.580034,22.032262],[121.600168,22.023927],[121.601576,22.019704],[121.601229,22.013379],[121.597002,22.00282],[121.588899,21.9986],[121.570978,22.002131],[121.568162,22.005308],[121.567478,22.010585],[121.558676,22.022198],[121.533101,22.027246],[121.528784,22.032369]]]]},"properties":{"id":16,"adcode":710000,"name":"台湾","cp":[120.8254,23.5986],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[109.785492,21.457116],[109.742992,21.61629],[109.898209,21.649661],[109.940709,21.734723],[109.94502,21.844172],[110.051578,21.856945],[110.119947,21.901918],[110.200019,21.898587],[110.388497,21.89026],[110.355236,22.061709],[110.350924,22.072799],[110.414366,22.20858],[110.488895,22.144863],[110.560344,22.196393],[110.629329,22.149296],[110.646575,22.222982],[110.725415,22.295522],[110.785777,22.294415],[110.711249,22.369684],[110.778386,22.585304],[111.055559,22.648268],[111.056791,22.72776],[111.202152,22.740452],[111.358601,22.889362],[111.363528,22.968713],[111.433746,23.036456],[111.377695,23.082149],[111.388782,23.210337],[111.353673,23.28895],[111.399869,23.469638],[111.479941,23.532738],[111.487332,23.62651],[111.615448,23.639117],[111.667187,23.718023],[111.621607,23.725692],[111.664723,23.83465],[111.8107,23.806735],[111.812548,23.887727],[111.940664,23.987803],[111.878454,24.110195],[111.877838,24.229196],[111.939432,24.230287],[112.029975,24.297925],[112.057692,24.387327],[111.985011,24.467953],[112.007185,24.534376],[111.937584,24.595323],[111.961606,24.720934],[112.024431,24.739955],[112.097112,24.826327],[112.171025,24.86379],[112.175337,24.92729],[112.119902,24.963638],[112.155626,25.026544],[112.187039,25.182584],[112.3053,25.157132],[112.369357,25.189081],[112.414937,25.142509],[112.660081,25.132759],[112.712436,25.083456],[112.780805,24.896901],[112.871348,24.895816],[113.011782,24.946279],[112.979137,25.034133],[113.018557,25.082914],[112.96805,25.141426],[113.034572,25.198285],[112.992688,25.247],[112.867036,25.249706],[112.900297,25.311383],[113.080151,25.3833],[113.11834,25.445449],[113.248919,25.514045],[113.311129,25.490284],[113.373338,25.402758],[113.449715,25.359512],[113.535946,25.368704],[113.611707,25.326527],[113.753373,25.362756],[113.822974,25.331935],[113.887032,25.436804],[113.94493,25.441667],[114.051488,25.348699],[114.039785,25.250789],[114.13156,25.30922],[114.262755,25.29191],[114.31511,25.338424],[114.381015,25.31571],[114.535616,25.41681],[114.63663,25.324364],[114.743188,25.274597],[114.679746,25.194495],[114.735796,25.121925],[114.640326,25.073702],[114.561485,25.077495],[114.506051,24.999975],[114.395798,24.951161],[114.403189,24.877361],[114.33482,24.747562],[114.27261,24.700279],[114.169132,24.689407],[114.258443,24.641558],[114.308334,24.574104],[114.391486,24.562677],[114.428443,24.486468],[114.534384,24.558867],[114.589819,24.537642],[114.664963,24.583898],[114.704999,24.526211],[114.729637,24.608924],[114.868839,24.562132],[114.909491,24.661679],[115.056701,24.703541],[115.095505,24.674184],[115.308004,24.758429],[115.358511,24.735064],[115.412714,24.792654],[115.556227,24.682883],[115.573474,24.617083],[115.67264,24.604028],[115.688038,24.545261],[115.845103,24.563221],[115.756408,24.749192],[115.822313,24.90884],[115.907313,24.880075],[115.89253,24.937056],[116.014486,24.905584],[116.068073,24.849675],[116.18079,24.87519],[116.245464,24.793197],[116.376659,24.820353],[116.44626,24.714412],[116.486912,24.71876],[116.525716,24.604572],[116.597165,24.65461],[116.778867,24.680165],[116.815207,24.655154],[116.761005,24.58281],[116.789338,24.50988],[116.860787,24.462507],[116.903903,24.369888],[116.933468,24.21992],[116.998757,24.178988],[116.9347,24.127123],[116.939627,24.033713],[116.981511,23.999282],[116.980279,23.881709],[117.012308,23.855446],[117.053576,23.696657],[117.192778,23.629799],[117.192778,23.561809],[117.054192,23.542064],[117.01046,23.502564],[116.921765,23.53219],[116.874953,23.447683],[116.874338,23.447683],[116.871258,23.416391],[116.871874,23.415842],[116.782563,23.313679],[116.806584,23.200989],[116.74499,23.215286],[116.550969,23.109668],[116.576839,23.014429],[116.50539,22.930696],[116.382818,22.919124],[116.317528,22.952736],[116.226985,22.914715],[116.106877,22.817685],[116.073616,22.8425],[115.883291,22.785142],[115.796444,22.739349],[115.788437,22.809964],[115.654162,22.865657],[115.542677,22.76142],[115.606119,22.754799],[115.57409,22.650477],[115.471844,22.697956],[115.381301,22.684156],[115.338185,22.776867],[115.230396,22.776867],[115.236555,22.825406],[115.054853,22.777419],[115.04007,22.712307],[114.87623,22.589724],[114.747499,22.581437],[114.728405,22.651029],[114.749963,22.764179],[114.709927,22.7879],[114.512826,22.655446],[114.603369,22.63888],[114.559022,22.583094],[114.616304,22.54276],[114.611377,22.481959],[114.485109,22.446572],[114.467863,22.533365],[114.41058,22.599667],[114.232574,22.539997],[114.185762,22.551601],[114.045944,22.502413],[114.044096,22.502413],[114.031778,22.504071],[113.959097,22.505177],[113.891959,22.442701],[113.733663,22.73659],[113.678228,22.726104],[113.740438,22.53447],[113.631417,22.475877],[113.669605,22.416154],[113.558736,22.213012],[113.553809,22.107727],[113.442324,22.009575],[113.330223,21.961861],[113.246455,21.880266],[113.091854,22.065591],[113.032724,22.072799],[113.037652,21.935223],[112.944645,21.84195],[112.795587,21.923567],[112.651458,21.761954],[112.523342,21.760842],[112.439574,21.803624],[112.415553,21.734723],[112.24001,21.701371],[112.192583,21.78918],[112.036134,21.761398],[111.951135,21.671904],[112.026895,21.633533],[111.811316,21.558985],[111.810084,21.604609],[111.693672,21.590144],[111.677658,21.52949],[111.382623,21.495534],[111.257587,21.413675],[111.28284,21.485513],[111.061102,21.44932],[110.929291,21.375792],[110.799328,21.374678],[110.626249,21.215797],[110.422373,21.190695],[110.388497,21.125968],[110.296722,21.093594],[110.180925,20.981905],[110.201251,20.867337],[110.390344,20.820367],[110.392192,20.682727],[110.466105,20.680488],[110.548025,20.477715],[110.545561,20.42726],[110.452554,20.311151],[110.349076,20.258958],[110.118099,20.219661],[110.082375,20.258958],[109.910528,20.224152],[109.916071,20.316762],[109.861252,20.376789],[109.888354,20.475473],[109.839695,20.489485],[109.793499,20.61554],[109.74484,20.62114],[109.730057,20.719667],[109.654913,20.903673],[109.674623,21.136572],[109.763934,21.226395],[109.757775,21.346816],[109.868644,21.365763],[109.894513,21.44208],[109.785492,21.457116]]],[[[132.601271,29.34889],[132.60021,29.350756],[132.599567,29.353493],[132.600422,29.356231],[132.60321,29.358968],[132.610952,29.361722],[132.614797,29.362693],[132.619623,29.363117],[132.627852,29.363836],[132.638786,29.363842],[132.652023,29.363796],[132.663166,29.363781],[132.675157,29.36376],[132.681788,29.362181],[132.688433,29.359054],[132.692292,29.356117],[132.697651,29.35005],[132.704299,29.342299],[132.709335,29.330769],[132.711022,29.322322],[132.711452,29.314263],[132.710616,29.306195],[132.708586,29.297442],[132.705586,29.289224],[132.701078,29.281011],[132.693637,29.271962],[132.692716,29.270843],[132.686282,29.264785],[132.674065,29.257148],[132.667429,29.253452],[132.660803,29.251518],[132.645585,29.248784],[132.63639,29.247446],[132.628477,29.246876],[132.620784,29.246899],[132.610275,29.249637],[132.602131,29.252182],[132.593133,29.256094],[132.592483,29.258444],[132.593132,29.260202],[132.595384,29.26309],[132.599532,29.2646],[132.608486,29.262179],[132.617445,29.260677],[132.624408,29.260375],[132.630716,29.260979],[132.638689,29.262046],[132.646473,29.2637],[132.654945,29.26689],[132.66123,29.268394],[132.670017,29.271875],[132.675169,29.276117],[132.679143,29.279291],[132.681959,29.282164],[132.685271,29.286703],[132.689254,29.293058],[132.691895,29.299355],[132.693103,29.30422],[132.694548,29.312842],[132.693823,29.321027],[132.691242,29.327872],[132.685839,29.335179],[132.680138,29.341801],[132.675179,29.345139],[132.668156,29.346462],[132.658463,29.347127],[132.647535,29.34755],[132.63593,29.347128],[132.626227,29.347774],[132.61606,29.347126],[132.607573,29.348002],[132.601271,29.34889]]],[[[132.578795,29.317549],[132.580157,29.31648],[132.581042,29.315228],[132.581532,29.31398],[132.581708,29.312458],[132.58011,29.311808],[132.577785,29.312021],[132.575047,29.312451],[132.5726,29.312593],[132.57068,29.313021],[132.568574,29.313476],[132.566351,29.31478],[132.565354,29.316831],[132.565236,29.3178],[132.565337,29.318336],[132.565644,29.31914],[132.565933,29.320038],[132.566517,29.320483],[132.567598,29.320756],[132.568862,29.321108],[132.569658,29.321113],[132.571027,29.320846],[132.572497,29.319865],[132.57369,29.319331],[132.575349,29.318796],[132.577615,29.318262],[132.578795,29.317549]]],[[[110.495054,21.075171],[110.560344,21.061213],[110.535706,20.923235],[110.47288,20.983022],[110.347845,20.984698],[110.201251,20.938324],[110.211106,20.986933],[110.305961,21.088012],[110.495054,21.075171]]],[[[132.334704,29.476663],[132.317403,29.516603],[132.325162,29.533117],[132.354874,29.528409],[132.374253,29.516632],[132.375552,29.476558],[132.349708,29.467117],[132.334704,29.476663]]],[[[110.501829,21.142711],[110.431612,21.181211],[110.634256,21.21022],[110.582517,21.094711],[110.501829,21.142711]]],[[[132.261875,29.395221],[132.277365,29.381072],[132.294159,29.366926],[132.294157,29.34571],[132.286419,29.328034],[132.234313,29.340831],[132.217987,29.355158],[132.219438,29.361524],[132.22345,29.379101],[132.224434,29.383445],[132.229607,29.396409],[132.246387,29.396403],[132.261875,29.395221]]],[[[110.598532,20.857273],[110.548641,20.908703],[110.584365,20.948941],[110.646575,20.917087],[110.598532,20.857273]]],[[[129.944476,29.960974],[129.911443,29.927572],[129.919806,29.867967],[129.861271,29.882441],[129.895974,29.914827],[129.844128,29.923094],[129.929423,29.982661],[129.944476,29.960974]]],[[[112.535045,21.628527],[112.663776,21.714157],[112.625588,21.616847],[112.535045,21.628527]]],[[[129.789773,29.884509],[129.728311,29.891745],[129.815696,29.944791],[129.789773,29.884509]]],[[[112.853486,21.74028],[112.804826,21.686361],[112.817145,21.590144],[112.730914,21.613509],[112.782037,21.665788],[112.70566,21.679133],[112.831312,21.77529],[112.853486,21.74028]]],[[[116.267346,20.827015],[116.290165,20.804176],[116.314904,20.781341],[116.314902,20.747093],[116.303502,20.718558],[116.226743,20.739216],[116.202692,20.762345],[116.20483,20.772619],[116.21074,20.800995],[116.21219,20.808006],[116.219809,20.828932],[116.244529,20.828923],[116.267346,20.827015]]],[[[116.374632,20.958484],[116.349146,21.022955],[116.360575,21.049613],[116.404346,21.042014],[116.432895,21.023003],[116.434807,20.958313],[116.396735,20.943074],[116.374632,20.958484]]],[[[128.413764,29.413965],[128.379897,29.445825],[128.404147,29.470751],[128.446377,29.451019],[128.413764,29.413965]]],[[[116.734213,20.701633],[116.73622,20.699908],[116.737523,20.697886],[116.738245,20.695871],[116.738505,20.693415],[116.73615,20.692366],[116.732726,20.69271],[116.728693,20.693405],[116.725086,20.693634],[116.72226,20.694325],[116.719156,20.695059],[116.715882,20.697163],[116.714413,20.700474],[116.714239,20.702038],[116.714387,20.702904],[116.714839,20.704202],[116.715266,20.70565],[116.716126,20.706371],[116.717718,20.70681],[116.71958,20.70738],[116.720754,20.707386],[116.722771,20.706956],[116.724936,20.705372],[116.726692,20.704511],[116.729137,20.703645],[116.732475,20.702784],[116.734213,20.701633]]],[[[128.348121,29.59079],[128.300455,29.61464],[128.438014,29.63261],[128.402893,29.561054],[128.348121,29.59079]]],[[[116.767323,20.752225],[116.76576,20.755236],[116.764814,20.759656],[116.766073,20.764076],[116.770179,20.768494],[116.781584,20.772941],[116.787249,20.774508],[116.79436,20.775191],[116.806481,20.776353],[116.822588,20.776362],[116.842089,20.776288],[116.858504,20.776263],[116.876168,20.77623],[116.885937,20.773681],[116.895725,20.768633],[116.901411,20.763892],[116.909305,20.754099],[116.919097,20.741587],[116.926517,20.722975],[116.929003,20.709338],[116.929636,20.696329],[116.928404,20.683306],[116.925413,20.669177],[116.920994,20.65591],[116.914354,20.642653],[116.903391,20.628045],[116.902036,20.626238],[116.892557,20.616459],[116.874559,20.604132],[116.864785,20.598166],[116.855023,20.595043],[116.832605,20.59063],[116.819058,20.58847],[116.807401,20.587551],[116.796069,20.587586],[116.780587,20.592007],[116.76859,20.596115],[116.755335,20.60243],[116.754378,20.606223],[116.755334,20.609061],[116.758651,20.613723],[116.764762,20.616162],[116.777953,20.612253],[116.79115,20.609827],[116.801408,20.60934],[116.810701,20.610316],[116.822447,20.612039],[116.833913,20.614708],[116.846394,20.619858],[116.855652,20.622284],[116.868597,20.627906],[116.876185,20.634752],[116.88204,20.639876],[116.886188,20.644514],[116.891066,20.65184],[116.896935,20.662099],[116.900825,20.672265],[116.902605,20.680117],[116.904733,20.694036],[116.903666,20.707248],[116.899864,20.718298],[116.891904,20.730093],[116.883505,20.740782],[116.876201,20.746171],[116.865855,20.748305],[116.851576,20.74938],[116.835477,20.750064],[116.818381,20.749382],[116.804088,20.750425],[116.789111,20.749379],[116.776608,20.750792],[116.767323,20.752225]]],[[[128.343521,29.548949],[128.387841,29.540303],[128.371117,29.454828],[128.328469,29.491864],[128.243593,29.492902],[128.144081,29.464176],[128.150772,29.494287],[128.215161,29.556904],[128.343521,29.548949]]],[[[116.946402,23.421881],[117.129336,23.483358],[117.100387,23.401566],[116.946402,23.421881]]],[[[127.861855,29.785558],[127.833006,29.884164],[127.93837,29.904837],[127.96722,29.957531],[127.970146,30.025333],[128.042481,30.033246],[128.088891,30.061106],[128.143246,30.059043],[128.271188,30.053885],[128.248611,30.160094],[128.245683,30.166964],[128.288748,30.251078],[128.33934,30.211606],[128.387841,30.243528],[128.43467,30.214352],[128.446377,30.26],[128.499895,30.304937],[128.540871,30.304252],[128.490279,30.350879],[128.535853,30.484453],[128.724004,30.523458],[128.72484,30.572702],[128.823514,30.580564],[128.929716,30.672812],[128.93306,30.721968],[128.980726,30.763935],[128.942677,30.79224],[128.949144,30.860483],[132.557459,30.860483],[132.454406,30.809288],[132.471966,30.750289],[132.423464,30.698418],[132.340261,30.691249],[132.29594,30.712071],[132.234477,30.688517],[132.152946,30.628409],[132.130367,30.643782],[132.001171,30.608249],[131.942218,30.57988],[131.936782,30.623626],[131.845633,30.658126],[131.769955,30.593554],[131.813021,30.589452],[131.791279,30.524827],[131.721872,30.554239],[131.66041,30.54569],[131.631141,30.603123],[131.557972,30.603123],[131.562153,30.633192],[131.43881,30.603464],[131.428774,30.563129],[131.317557,30.487191],[131.230171,30.482057],[131.21721,30.525168],[131.231844,30.595263],[131.204667,30.609957],[131.07087,30.527905],[131.132332,30.517642],[131.102229,30.483083],[131.141113,30.458097],[131.137768,30.420432],[131.052055,30.398511],[131.040348,30.452277],[131.001463,30.49335],[130.880629,30.456385],[130.848853,30.463575],[130.753941,30.433103],[130.752686,30.433103],[130.744325,30.43413],[130.694988,30.434815],[130.649413,30.396112],[130.541958,30.578172],[130.504328,30.571675],[130.546557,30.452962],[130.472551,30.416665],[130.498474,30.379666],[130.423214,30.253823],[130.419869,30.188601],[130.34419,30.127798],[130.268095,30.098239],[130.21123,30.047693],[130.106285,30.162499],[130.066145,30.166964],[130.069491,30.081738],[130.006356,30.023956],[129.905172,30.074517],[129.807334,29.974401],[129.720366,29.973712],[129.663503,30.000215],[129.647197,29.957531],[129.528034,29.93687],[129.49584,29.991267],[129.389639,29.974057],[129.33194,29.918616],[129.383367,29.894846],[129.237027,29.848664],[129.236192,29.876928],[129.157169,29.867967],[129.146298,29.830392],[128.946022,29.809357],[128.861145,29.758647],[128.878287,29.803149],[128.727767,29.780729],[128.63829,29.735179],[128.550069,29.734489],[128.43258,29.636065],[128.294184,29.620515],[128.271188,29.580417],[128.20889,29.560362],[128.130284,29.491172],[128.144081,29.4202],[128.272442,29.391103],[128.273697,29.305837],[128.323869,29.304449],[128.379479,29.178836],[128.377807,29.147579],[128.314671,29.075651],[128.244428,29.043319],[128.087637,29.018975],[128.063386,29.043319],[127.946733,29.021757],[127.950495,29.079127],[127.913284,29.116314],[127.931681,29.177446],[127.898649,29.186126],[127.867291,29.264215],[127.83426,29.267685],[127.824225,29.32872],[127.773216,29.442709],[127.786595,29.586987],[127.847221,29.642631],[127.843041,29.71723],[127.918301,29.728966],[127.935862,29.776244],[127.861855,29.785558]]]]},"properties":{"id":9,"adcode":440000,"name":"广东","cp":[113.8668,23.4076],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[114.031778,22.504071],[114.044096,22.502413],[114.045944,22.502413],[114.185762,22.551601],[114.232574,22.539997],[114.232574,22.528944],[114.263371,22.541654],[114.263987,22.541654],[114.271994,22.535023],[114.28924,22.522864],[114.355762,22.434958],[114.406269,22.433299],[114.406269,22.432746],[114.356994,22.340356],[114.323733,22.384622],[114.315726,22.299951],[114.315726,22.298843],[114.248588,22.274484],[114.265835,22.200825],[114.195002,22.232951],[114.120473,22.272269],[114.121089,22.320985],[114.034857,22.301058],[114.026234,22.229628],[113.848844,22.191961],[113.898119,22.308808],[114.015763,22.332054],[113.920293,22.368024],[113.918445,22.418366],[114.031778,22.504071]]],[[[130.986673,30.370311],[130.986628,30.370803],[130.98792,30.370653],[130.986673,30.370311]]],[[[114.350834,22.260087],[114.355146,22.268393],[114.355762,22.268393],[114.350834,22.260087]]],[[[114.372392,22.322645],[114.372392,22.323752],[114.37424,22.323199],[114.372392,22.322645]]],[[[130.97744,30.345243],[130.974394,30.341278],[130.977019,30.345209],[130.97744,30.345243]]],[[[130.752686,30.433103],[130.753941,30.433103],[130.848853,30.463575],[130.880629,30.456385],[130.904886,30.460094],[130.909299,30.459861],[130.921615,30.45533],[130.970769,30.419561],[131.005478,30.421442],[131.005501,30.421194],[130.975402,30.377413],[130.950815,30.395439],[130.948715,30.357245],[130.948759,30.356749],[130.90368,30.342395],[130.918461,30.310426],[130.868589,30.321082],[130.815891,30.334759],[130.814362,30.356527],[130.756008,30.343162],[130.752956,30.310843],[130.632787,30.28483],[130.661905,30.339524],[130.741669,30.356],[130.674743,30.367097],[130.671457,30.389462],[130.752686,30.433103]]]]},"properties":{"id":17,"adcode":810000,"name":"香港","cp":[115.7178,22.3242],"src":"360"}},{"type":"Feature","geometry":{"type":"MultiPolygon","coordinates":[[[[113.553809,22.107727],[113.558736,22.213012],[113.6037,22.132116],[113.553809,22.107727]]],[[[130.458563,30.205821],[130.419869,30.188601],[130.423214,30.253823],[130.458563,30.205821]]]]},"properties":{"id":18,"adcode":820000,"name":"澳门","cp":[113.3547,21.6484],"src":"360"}}]}')},"649e":function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").some,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("some",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"651f":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a}));n("4160"),n("a15b"),n("a434"),n("0d03"),n("4ec9"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("6062"),n("3ca3"),n("466d"),n("5319"),n("1276"),n("498a"),n("159b"),n("ddb0");var i=n("2909"),r=function(t){var e=/titel?/g,n=/respon(s|e)(:|：)|(^|\s)esponse(:|：)/g,i=!1,r=t.trim();return e.test(r)&&(r=r.replace(e,"title"),i=!0),n.test(r)&&(r=r.replace(n,"response:"),i=!0),i?r:""},o=function(t){for(var e=new Map([["201c",'"'],["201d",'"'],["2018","'"],["2019","'"],["：",":"]]),n=t.trim(),i=!1,r=0;r<n.length;r++){var o=n[r],a=o.charCodeAt(0).toString(16);if(e.has(a)||e.has(o)){i=!0;var s=new RegExp("[".concat(o,"]"),"g"),l=e.get(a)?e.get(a):e.get(o);n=n.replace(s,String(l))}}return i?n:""},a=function(t){for(var e=new Map([[")","("],["}","{"],["]","["]]),n=new Set(Object(i["a"])(e.values())),r=[],o="",a="$_$",s=t.replace(/\\"/g,a),l=s.match(/".*?"/g),c=s.replace(/".*?"/g,'""').split(""),u=c,h=0;h<c.length;h++){var d=c[h];if(e.has(d)){if(!r.length||r[r.length-1].value!==e.get(d)){var p='<span class="invalid-bracket">'.concat(d,"</span>");return u.splice(h,1,p),o=u.join(""),l.forEach((function(t){o=o.replace(/""/,t)})),o=o.replace(/\$_\$/g,'"'),o}r.pop()}else n.has(d)&&r.push({value:d,sourceIdx:h})}if(r.length>0){var f='<span class="invalid-bracket">'.concat(r[0].value,"</span>");u.splice(r[0].sourceIdx,1,f),o=u.join(""),l.forEach((function(t){o=o.replace(/""/,t)})),o=o.replace(/\$_\$/g,'"')}return r.length?o:""}},6566:function(t,e,n){"use strict";var i=n("7c73"),r=n("edd0"),o=n("6964"),a=n("0366"),s=n("19aa"),l=n("7234"),c=n("2266"),u=n("c6d2"),h=n("4754"),d=n("2626"),p=n("83ab"),f=n("f183").fastKey,g=n("69f3"),m=g.set,v=g.getterFor;t.exports={getConstructor:function(t,e,n,u){var h=t((function(t,r){s(t,d),m(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),p||(t.size=0),l(r)||c(r,t[u],{that:t,AS_ENTRIES:n})})),d=h.prototype,g=v(e),y=function(t,e,n){var i,r,o=g(t),a=b(t,e);return a?a.value=n:(o.last=a={index:r=f(e,!0),key:e,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),p?o.size++:t.size++,"F"!==r&&(o.index[r]=a)),t},b=function(t,e){var n,i=g(t),r=f(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==e)return n};return o(d,{clear:function(){var t=this,e=g(t),n=e.index,i=e.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;e.first=e.last=void 0,p?e.size=0:t.size=0},delete:function(t){var e=this,n=g(e),i=b(e,t);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),p?n.size--:e.size--}return!!i},forEach:function(t){var e,n=g(this),i=a(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:n.first){i(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!b(this,t)}}),o(d,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),p&&r(d,"size",{configurable:!0,get:function(){return g(this).size}}),h},setStrong:function(t,e,n){var i=e+" Iterator",r=v(e),o=v(i);u(t,e,(function(t,e){m(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?h("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,h(void 0,!0))}),n?"entries":"values",!n,!0),d(e)}}},"660a":function(t,e,n){"use strict";var i=n("87ec"),r=n.n(i);r.a},"662e":function(t,e,n){t.exports=n.p+"assets/img/scenario-map-3-blue.4e9ee3a7.png"},6658:function(t,e,n){t.exports=n.p+"assets/img/scenario-map-2-blue.047c48c1.png"},6668:function(t,e,n){"use strict";var i=n("9dcd"),r=n.n(i);r.a},6671:function(t,e,n){t.exports=n.p+"assets/img/baidu.bea6c3bf.png"},6711:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return u})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return f})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return m})),n.d(e,"round",(function(){return v})),n.d(e,"scale",(function(){return y})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return w})),n.d(e,"length",(function(){return _})),n.d(e,"squaredLength",(function(){return C})),n.d(e,"negate",(function(){return A})),n.d(e,"inverse",(function(){return I})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return M})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return E})),n.d(e,"random",(function(){return T})),n.d(e,"transformMat2",(function(){return O})),n.d(e,"transformMat2d",(function(){return P})),n.d(e,"transformMat3",(function(){return j})),n.d(e,"transformMat4",(function(){return L})),n.d(e,"rotate",(function(){return D})),n.d(e,"angle",(function(){return R})),n.d(e,"zero",(function(){return B})),n.d(e,"str",(function(){return N})),n.d(e,"exactEquals",(function(){return F})),n.d(e,"equals",(function(){return z})),n.d(e,"len",(function(){return V})),n.d(e,"sub",(function(){return G})),n.d(e,"mul",(function(){return H})),n.d(e,"div",(function(){return W})),n.d(e,"dist",(function(){return U})),n.d(e,"sqrDist",(function(){return Z})),n.d(e,"sqrLen",(function(){return Y})),n.d(e,"forEach",(function(){return X}));var i=n("c94d");function r(){var t=new i["a"](2);return i["a"]!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new i["a"](2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new i["a"](2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function l(t,e,n){return t[0]=e,t[1]=n,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function f(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function v(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function x(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.hypot(n,i)}function w(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function _(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function C(t){var e=t[0],n=t[1];return e*e+n*n}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t}function I(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function S(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t}function E(t,e,n,i){var r=e[0],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t}function T(t,e){e=e||1;var n=2*i["c"]()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function O(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t}function P(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function j(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function L(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t}function D(t,e,n,i){var r=e[0]-n[0],o=e[1]-n[1],a=Math.sin(i),s=Math.cos(i);return t[0]=r*s-o*a+n[0],t[1]=r*a+o*s+n[1],t}function R(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],a=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+o*o),s=a&&(n*r+i*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function B(t){return t[0]=0,t[1]=0,t}function N(t){return"vec2("+t[0]+", "+t[1]+")"}function F(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],r=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(a))}var V=_,G=u,H=h,W=d,U=x,Z=w,Y=C,X=function(){var t=r();return function(e,n,i,r,o,a){var s,l;for(n||(n=2),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],o(t,t,a),e[s]=t[0],e[s+1]=t[1];return e}}()},6730:function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var i=n("ea1d"),r=n("51de");function o(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,a=new Array(o),s=new Array(r);for(n=0;n<o;++n)a[n]=Object(i["a"])(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<o;++n)s[n]=a[n](t);return s}}e["a"]=function(t,e){return(Object(r["b"])(e)?r["a"]:o)(t,e)}},6813:function(t){t.exports=JSON.parse('{"name":"@antv/g-canvas","version":"0.4.14","description":"A canvas library which providing 2d","main":"lib/index.js","module":"esm/index.js","unpkg":"dist/g.min.js","types":"lib/index.d.ts","files":["package.json","esm","lib","dist","LICENSE","README.md"],"scripts":{"build":"npm run clean && run-p build:*","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","build:umd":"webpack --config webpack.config.js --mode production","clean":"rm -rf esm lib dist","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage","test":"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts","tsc":"tsc --noEmit","typecheck":"tsc --noEmit","dist":"webpack --config webpack.config.js --mode production"},"repository":{"type":"git","url":"git+https://github.com/antvis/g.git"},"keywords":["util","antv","g"],"publishConfig":{"access":"public"},"author":"https://github.com/orgs/antvis/people","license":"ISC","bugs":{"url":"https://github.com/antvis/g/issues"},"devDependencies":{"@antv/torch":"^1.0.0","less":"^3.9.0","npm-run-all":"^4.1.5","webpack":"^4.26.1","webpack-cli":"^3.1.2"},"homepage":"https://github.com/antvis/g#readme","dependencies":{"@antv/g-base":"^0.4.7","@antv/g-math":"^0.1.3","@antv/path-util":"~2.0.5","@antv/util":"~2.0.0","gl-matrix":"^3.0.0"},"__npminstall_done":false,"gitHead":"6b4107c8cfae1b893c385758ad8e870236f73f6b"}')},6855:function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"catmullRomToBezier",(function(){return c})),n.d(i,"fillPath",(function(){return L})),n.d(i,"fillPathByDiff",(function(){return N})),n.d(i,"formatPath",(function(){return V})),n.d(i,"intersection",(function(){return T})),n.d(i,"parsePathArray",(function(){return v})),n.d(i,"parsePathString",(function(){return l})),n.d(i,"pathToAbsolute",(function(){return h})),n.d(i,"pathToCurve",(function(){return g})),n.d(i,"rectPath",(function(){return C}));var r=n("8937"),o="\t\n\v\f\r   ᠎             　\u2028\u2029",a=new RegExp("([a-z])["+o+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+o+"]*,?["+o+"]*)+)","ig"),s=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+o+"]*,?["+o+"]*","ig"),l=function(t){if(!t)return null;if(Object(r["isArray"])(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(i,r,o){var a=[],l=r.toLowerCase();if(o.replace(s,(function(t,e){e&&a.push(+e)})),"m"===l&&a.length>2&&(n.push([r].concat(a.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===a.length&&n.push([r,a[0]]),"r"===l)n.push([r].concat(a));else while(a.length>=e[l])if(n.push([r].concat(a.splice(0,e[l]))),!e[l])break;return t})),n},c=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?o[3]={x:+t[0],y:+t[1]}:r-2===i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},u=function(t,e,n,i,r){var o=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var a=Math.PI/180,s=t+n*Math.cos(-i*a),l=t+n*Math.cos(-r*a),c=e+n*Math.sin(-i*a),u=e+n*Math.sin(-r*a);o=[["M",s,c],["A",n,n,0,+(r-i>180),0,l,u]]}else o=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return o},h=function(t){if(t=l(t),!t||!t.length)return[["M",0,0]];var e,n,i=[],r=0,o=0,a=0,s=0,h=0;"M"===t[0][0]&&(r=+t[0][1],o=+t[0][2],a=r,s=o,h++,i[0]=["M",r,o]);for(var d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,f=void 0,g=h,m=t.length;g<m;g++){if(i.push(p=[]),f=t[g],e=f[0],e!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=f[1],p[2]=f[2],p[3]=f[3],p[4]=f[4],p[5]=f[5],p[6]=+f[6]+r,p[7]=+f[7]+o;break;case"V":p[1]=+f[1]+o;break;case"H":p[1]=+f[1]+r;break;case"R":n=[r,o].concat(f.slice(1));for(var v=2,y=n.length;v<y;v++)n[v]=+n[v]+r,n[++v]=+n[v]+o;i.pop(),i=i.concat(c(n,d));break;case"O":i.pop(),n=u(r,o,f[1],f[2]),n.push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(u(r,o,f[1],f[2],f[3])),p=["U"].concat(i[i.length-1].slice(-2));break;case"M":a=+f[1]+r,s=+f[2]+o;break;default:for(v=1,y=f.length;v<y;v++)p[v]=+f[v]+(v%2?r:o)}else if("R"===e)n=[r,o].concat(f.slice(1)),i.pop(),i=i.concat(c(n,d)),p=["R"].concat(f.slice(-2));else if("O"===e)i.pop(),n=u(r,o,f[1],f[2]),n.push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(u(r,o,f[1],f[2],f[3])),p=["U"].concat(i[i.length-1].slice(-2));else for(var b=0,x=f.length;b<x;b++)p[b]=f[b];if(e=e.toUpperCase(),"O"!==e)switch(p[0]){case"Z":r=+a,o=+s;break;case"H":r=p[1];break;case"V":o=p[1];break;case"M":a=p[p.length-2],s=p[p.length-1];break;default:r=p[p.length-2],o=p[p.length-1]}}return i},d=function(t,e,n,i){return[t,e,n,i,n,i]},p=function(t,e,n,i,r,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*i,a*r+s*n,a*o+s*i,r,o]},f=function(t,e,n,i,r,o,a,s,l,c){n===i&&(n+=1);var u,h,d,p,g,m=120*Math.PI/180,v=Math.PI/180*(+r||0),y=[],b=function(t,e,n){var i=t*Math.cos(n)-e*Math.sin(n),r=t*Math.sin(n)+e*Math.cos(n);return{x:i,y:r}};if(c)h=c[0],d=c[1],p=c[2],g=c[3];else{u=b(t,e,-v),t=u.x,e=u.y,u=b(s,l,-v),s=u.x,l=u.y,t===s&&e===l&&(s+=1,l+=1);var x=(t-s)/2,w=(e-l)/2,_=x*x/(n*n)+w*w/(i*i);_>1&&(_=Math.sqrt(_),n*=_,i*=_);var C=n*n,A=i*i,I=(o===a?-1:1)*Math.sqrt(Math.abs((C*A-C*w*w-A*x*x)/(C*w*w+A*x*x)));p=I*n*w/i+(t+s)/2,g=I*-i*x/n+(e+l)/2,h=Math.asin(((e-g)/i).toFixed(9)),d=Math.asin(((l-g)/i).toFixed(9)),h=t<p?Math.PI-h:h,d=s<p?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),a&&h>d&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var S=d-h;if(Math.abs(S)>m){var M=d,k=s,E=l;d=h+m*(a&&d>h?1:-1),s=p+n*Math.cos(d),l=g+i*Math.sin(d),y=f(s,l,n,i,r,0,a,k,E,[d,M,p,g])}S=d-h;var T=Math.cos(h),O=Math.sin(h),P=Math.cos(d),j=Math.sin(d),L=Math.tan(S/4),D=4/3*n*L,R=4/3*i*L,B=[t,e],N=[t+D*O,e-R*T],F=[s+D*j,l-R*P],z=[s,l];if(N[0]=2*B[0]-N[0],N[1]=2*B[1]-N[1],c)return[N,F,z].concat(y);y=[N,F,z].concat(y).join().split(",");for(var V=[],G=0,H=y.length;G<H;G++)V[G]=G%2?b(y[G-1],y[G],v).y:b(y[G],y[G+1],v).x;return V},g=function(t,e){var n,i=h(t),r=e&&h(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],c="",u="",g=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(f.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(p(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(p(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(d(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(d(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(d(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(d(e.x,e.y,e.X,e.Y));break;default:break}return t},m=function(t,e){if(t[e].length>7){t[e].shift();var o=t[e];while(o.length)s[e]="A",r&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},v=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var y=0;y<n;y++){i[y]&&(c=i[y][0]),"C"!==c&&(s[y]=c,y&&(u=s[y-1])),i[y]=g(i[y],o,u),"A"!==s[y]&&"C"===c&&(s[y]="C"),m(i,y),r&&(r[y]&&(c=r[y][0]),"C"!==c&&(l[y]=c,y&&(u=l[y-1])),r[y]=g(r[y],a,u),"A"!==l[y]&&"C"===c&&(l[y]="C"),m(r,y)),v(i,r,o,a,y),v(r,i,a,o,y);var b=i[y],x=r&&r[y],w=b.length,_=r&&x.length;o.x=b[w-2],o.y=b[w-1],o.bx=parseFloat(b[w-4])||o.x,o.by=parseFloat(b[w-3])||o.y,a.bx=r&&(parseFloat(x[_-4])||a.x),a.by=r&&(parseFloat(x[_-3])||a.y),a.x=r&&x[_-2],a.y=r&&x[_-1]}return r?[i,r]:i},m=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(m,"$1")},y=function(t,e,n,i,r){var o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n},b=function(t,e,n,i,r,o,a,s,l){null===l&&(l=1),l=l>1?1:l<0?0:l;for(var c=l/2,u=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,f=0;f<u;f++){var g=c*h[f]+c,m=y(g,t,n,r,a),v=y(g,e,i,o,s),b=m*m+v*v;p+=d[f]*Math.sqrt(b)}return c*p},x=function(t,e,n,i,r,o,a,s){for(var l,c,u,h,d=[],p=[[],[]],f=0;f<2;++f)if(0===f?(c=6*t-12*n+6*r,l=-3*t+9*n-9*r+3*a,u=3*n-3*t):(c=6*e-12*i+6*o,l=-3*e+9*i-9*o+3*s,u=3*i-3*e),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;h=-u/c,h>0&&h<1&&d.push(h)}else{var g=c*c-4*u*l,m=Math.sqrt(g);if(!(g<0)){var v=(-c+m)/(2*l);v>0&&v<1&&d.push(v);var y=(-c-m)/(2*l);y>0&&y<1&&d.push(y)}}var b,x=d.length,w=x;while(x--)h=d[x],b=1-h,p[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*r+h*h*h*a,p[1][x]=b*b*b*e+3*b*b*h*i+3*b*h*h*o+h*h*h*s;return p[0][w]=t,p[1][w]=e,p[0][w+1]=a,p[1][w+1]=s,p[0].length=p[1].length=w+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},w=function(t,e,n,i,r,o,a,s){if(!(Math.max(t,n)<Math.min(r,a)||Math.min(t,n)>Math.max(r,a)||Math.max(e,i)<Math.min(o,s)||Math.min(e,i)>Math.max(o,s))){var l=(t*i-e*n)*(r-a)-(t-n)*(r*s-o*a),c=(t*i-e*n)*(o-s)-(e-i)*(r*s-o*a),u=(t-n)*(o-s)-(e-i)*(r-a);if(u){var h=l/u,d=c/u,p=+h.toFixed(2),f=+d.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(r,a).toFixed(2)||p>+Math.max(r,a).toFixed(2)||f<+Math.min(e,i).toFixed(2)||f>+Math.max(e,i).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:h,y:d}}}},_=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},C=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=v,o},A=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:C(t,e,n,i),vb:[t,e,n,i].join(" ")}},I=function(t,e){return t=A(t),e=A(e),_(e,t.x,t.y)||_(e,t.x2,t.y)||_(e,t.x,t.y2)||_(e,t.x2,t.y2)||_(t,e.x,e.y)||_(t,e.x2,e.y)||_(t,e.x,e.y2)||_(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},S=function(t,e,n,i,o,a,s,l){Object(r["isArray"])(t)||(t=[t,e,n,i,o,a,s,l]);var c=x.apply(null,t);return A(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},M=function(t,e,n,i,r,o,a,s,l){var c=1-l,u=Math.pow(c,3),h=Math.pow(c,2),d=l*l,p=d*l,f=u*t+3*h*l*n+3*c*l*l*r+p*a,g=u*e+3*h*l*i+3*c*l*l*o+p*s,m=t+2*l*(n-t)+d*(r-2*n+t),v=e+2*l*(i-e)+d*(o-2*i+e),y=n+2*l*(r-n)+d*(a-2*r+n),b=i+2*l*(o-i)+d*(s-2*o+i),x=c*t+l*n,w=c*e+l*i,_=c*r+l*a,C=c*o+l*s,A=90-180*Math.atan2(m-y,v-b)/Math.PI;return{x:f,y:g,m:{x:m,y:v},n:{x:y,y:b},start:{x:x,y:w},end:{x:_,y:C},alpha:A}},k=function(t,e,n){var i=S(t),r=S(e);if(!I(i,r))return n?0:[];for(var o=b.apply(0,t),a=b.apply(0,e),s=~~(o/8),l=~~(a/8),c=[],u=[],h={},d=n?0:[],p=0;p<s+1;p++){var f=M.apply(0,t.concat(p/s));c.push({x:f.x,y:f.y,t:p/s})}for(p=0;p<l+1;p++){f=M.apply(0,e.concat(p/l));u.push({x:f.x,y:f.y,t:p/l})}for(p=0;p<s;p++)for(var g=0;g<l;g++){var m=c[p],v=c[p+1],y=u[g],x=u[g+1],_=Math.abs(v.x-m.x)<.001?"y":"x",C=Math.abs(x.x-y.x)<.001?"y":"x",A=w(m.x,m.y,v.x,v.y,y.x,y.y,x.x,x.y);if(A){if(h[A.x.toFixed(4)]===A.y.toFixed(4))continue;h[A.x.toFixed(4)]=A.y.toFixed(4);var k=m.t+Math.abs((A[_]-m[_])/(v[_]-m[_]))*(v.t-m.t),E=y.t+Math.abs((A[C]-y[C])/(x[C]-y[C]))*(x.t-y.t);k>=0&&k<=1&&E>=0&&E<=1&&(n?d+=1:d.push({x:A.x,y:A.y,t1:k,t2:E}))}}return d},E=function(t,e,n){var i,r,o,a,s,l,c,u,h,d;t=g(t),e=g(e);for(var p=n?0:[],f=0,m=t.length;f<m;f++){var v=t[f];if("M"===v[0])i=s=v[1],r=l=v[2];else{"C"===v[0]?(h=[i,r].concat(v.slice(1)),i=h[6],r=h[7]):(h=[i,r,i,r,s,l,s,l],i=s,r=l);for(var y=0,b=e.length;y<b;y++){var x=e[y];if("M"===x[0])o=c=x[1],a=u=x[2];else{"C"===x[0]?(d=[o,a].concat(x.slice(1)),o=d[6],a=d[7]):(d=[o,a,o,a,c,u,c,u],o=c,a=u);var w=k(h,d,n);if(n)p+=w;else{for(var _=0,C=w.length;_<C;_++)w[_].segment1=f,w[_].segment2=y,w[_].bez1=h,w[_].bez2=d;p=p.concat(w)}}}}}return p},T=function(t,e){return E(t,e)};function O(t,e){var n=[],i=[];function r(t,e){if(1===t.length)n.push(t[0]),i.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&i.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];r(o,e)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function P(t,e,n){var i=[[t[1],t[2]]];n=n||2;var r=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,a=1/n,s=0;s<n-1;s++){var l=a/(1-a*s),c=O(o,l);r.push(c.left),o=c.right}r.push(o);var u=r.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return u}var j=function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(P(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var o=0;o<=n-1;o++)i.push(r)}return i},L=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<i-n;a++)t.push(t[0]);return t}for(a=0;a<i;a++){var s=Math.floor(r*a);o[s]=(o[s]||0)+1}var l=o.reduce((function(e,i,r){return r===n?e.concat(t[n]):e.concat(j(t[r],t[r+1],i))}),[]);return l.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||l.push("Z"),l},D=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(r["each"])(t,(function(t,i){if(t!==e[i])return n=!1,!1})),n};function R(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var B=function(t,e){var n,i,r=t.length,o=e.length,a=0;if(0===r||0===o)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var c=0;c<=o;c++)s[0][c]={min:c};for(l=1;l<=r;l++){n=t[l-1];for(c=1;c<=o;c++){i=e[c-1],a=D(n,i)?0:1;var u=s[l-1][c].min+1,h=s[l][c-1].min+1,d=s[l-1][c-1].min+a;s[l][c]=R(u,h,d)}}return s},N=function(t,e){var n=B(t,e),i=t.length,r=e.length,o=[],a=1,s=1;if(n[i][r].min!==i){for(var l=1;l<=i;l++){var c=n[l][l].min;s=l;for(var u=a;u<=r;u++)n[l][u].min<c&&(c=n[l][u].min,s=u);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}i=t.length;var h=r-i;if(i<r)for(l=0;l<h;l++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t};function F(t,e,n){for(var i,r=[].concat(t),o=1/(n+1),a=z(e)[0],s=1;s<=n;s++)o*=s,i=Math.floor(t.length*o),0===i?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function z(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var V=function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=z(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=F(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=F(n,t[i-1],2)}t[i]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=F(n,t[i-1],1)}t[i]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[i]=e[i]}return t},G=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}(),H=G,W=n("9ab4"),U=n("7fa2"),Z=n("28f9"),Y=n.n(Z),X=n("2047"),q=n.n(X),K=n("61d8"),Q=n.n(K),J=n("9ab4f"),$=n.n(J),tt=(n("01f9"),n("503e")),et=n.n(tt),nt=n("72fb"),it=n.n(nt),rt=n("3c5c"),ot=n.n(rt);function at(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var st="undefined"!==typeof window&&"undefined"!==typeof window.document;function lt(t,e){if(t.isCanvas())return!0;var n=e.getParent(),i=!1;while(n){if(n===t){i=!0;break}n=n.getParent()}return i}function ct(t){return t.cfg.visible&&t.cfg.capture}var ut=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=et()(i,e),n}return Object(W["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(U["a"]),ht=ut,dt=n("7b46"),pt=n("e897");function ft(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=e[0],p=e[1],f=e[2],g=e[3],m=e[4],v=e[5],y=e[6],b=e[7],x=e[8];return n[0]=d*i+p*a+f*c,n[1]=d*r+p*s+f*u,n[2]=d*o+p*l+f*h,n[3]=g*i+m*a+v*c,n[4]=g*r+m*s+v*u,n[5]=g*o+m*l+v*h,n[6]=y*i+b*a+x*c,n[7]=y*r+b*s+x*u,n[8]=y*o+b*l+x*h,n}function gt(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function mt(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=u*a-s*c,d=-u*o+s*l,p=c*o-a*l,f=n*h+i*d+r*p;return f?(f=1/f,e[0]=h*f,e[1]=(-u*i+r*c)*f,e[2]=(s*i-r*a)*f,e[3]=d*f,e[4]=(u*n-r*l)*f,e[5]=(-s*n+r*o)*f,e[6]=p*f,e[7]=(-c*n+i*l)*f,e[8]=(a*n-i*o)*f,e):null}var vt="matrix",yt=["zIndex","capture","visible","type"],bt=["repeat"],xt=":",wt="*";function _t(t){for(var e=[],n=0;n<t.length;n++)Object(r["isArray"])(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function Ct(t,e){var n={},i=e.attrs;for(var r in t)n[r]=i[r];return n}function At(t,e){var n={},i=e.attr();return Object(r["each"])(t,(function(t,e){-1!==bt.indexOf(e)||Object(r["isEqual"])(i[e],t)||(n[e]=t)})),n}function It(t,e){if(e.onFrame)return t;var n=e.startTime,i=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(r["each"])(t,(function(t){n+i<t.startTime+t.delay+t.duration&&o>t.delay&&Object(r["each"])(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var St=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(r["mix"])(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(W["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e[0],o=e[1];if(!i)return this.attrs;if(Object(r["isObject"])(i)){for(var a in i)this.setAttr(a,i[a]);return this.afterAttrsChange(i),this}return 2===e.length?(this.setAttr(i,o),this.afterAttrsChange((t={},t[i]=o,t)),this):this.attrs[i]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(at(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(vt,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(vt)},e.prototype.setMatrix=function(t){this.attr(vt,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.get("totalMatrix");if(!t){var e=this.attr("matrix"),n=this.get("parentMatrix");t=n&&e?ft(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?ft(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?gt(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=mt(e);if(n)return gt(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var i=this.getShapeBase(),o=Object(r["upperFirst"])(t.type),a=i[o];a&&(n=new a({type:t.type,isClipShape:!0,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(r["each"])(e,(function(t,i){Object(r["isArray"])(e[i])?n[i]=_t(e[i]):n[i]=e[i]}));var i=this.constructor,o=new i({attrs:n});return Object(r["each"])(yt,(function(e){o.set(e,t.get(e))})),o},e.prototype.destroy=function(){var e=this.destroyed;e||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var i=this.get("animations")||[];n.timer||n.initTimer();var o,a,s,l,c,u=t[0],h=t[1],d=t[2],p=void 0===d?"easeLinear":d,f=t[3],g=void 0===f?r["noop"]:f,m=t[4],v=void 0===m?0:m;Object(r["isFunction"])(u)?(o=u,u={}):Object(r["isObject"])(u)&&u.onFrame&&(o=u.onFrame,a=u.repeat),Object(r["isObject"])(h)?(c=h,h=c.duration,p=c.easing||"easeLinear",v=c.delay||0,a=c.repeat||a||!1,g=c.callback||r["noop"],s=c.pauseCallback||r["noop"],l=c.resumeCallback||r["noop"]):(Object(r["isNumber"])(g)&&(v=g,g=null),Object(r["isFunction"])(p)?(g=p,p="easeLinear"):p=p||"easeLinear");var y=At(u,this),b={fromAttrs:Ct(y,this),toAttrs:y,duration:h,easing:p,repeat:a,callback:g,pauseCallback:s,resumeCallback:l,delay:v,startTime:n.getTime(),id:Object(r["uniqueId"])(),onFrame:o,pathFormatted:!1};i.length>0?i=It(i,b):n.addAnimator(this),i.push(b),this.set("animations",i),this.set("_pause",{isPaused:!1})},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(r["each"])(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(r["each"])(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),i=this.get("_pause").pauseTime;return Object(r["each"])(n,(function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,i=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var a=function(t){var a=o[t],l=a.get("name");if(l){if((a.isGroup()||a.isCanvas&&a.isCanvas())&&n&&lt(a,n))return"break";Object(r["isArray"])(l)?Object(r["each"])(l,(function(t){i.emitDelegateEvent(a,t,e)})):s.emitDelegateEvent(a,l,e)}},s=this,l=0;l<o.length;l++){var c=a(l);if("break"===c)break}},e.prototype.emitDelegateEvent=function(t,e,n){var i=this.getEvents(),r=e+xt+n.type;(i[r]||i[wt])&&(n.name=r,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(r,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),i=pt["a"].transform(n,[["t",t,e]]);return this.setMatrix(i),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,i=this.attr("y")||0;return this.translate(t-n,e-i),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),i=pt["a"].transform(n,[["s",t,e||t]]);return this.setMatrix(i),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=pt["a"].transform(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,i=e.y,r=this.getMatrix(),o=pt["a"].transform(r,[["t",-n,-i],["r",t],["t",n,i]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var i=this.getMatrix(),r=pt["a"].transform(i,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this},e}(ht),Mt=St,kt={},Et="_INDEX";function Tt(t){t.isGroup()?(t.isEntityGroup()||t.get("children").length)&&t.onCanvasChange("add"):t.onCanvasChange("add")}function Ot(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){Ot(t,e)}))}}function Pt(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){Pt(t,e)}))}}function jt(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),at(t.getChildren(),e)}function Lt(t){return function(e,n){var i=t(e,n);return 0===i?e[Et]-n[Et]:i}}var Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(W["__extends"])(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=[],o=[],a=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));a.length>0?(it()(a,(function(t){var e=t.getBBox();r.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,o),i=Math.max.apply(null,o)):(t=0,e=0,n=0,i=0);var s={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return s},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=[],o=[],a=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));a.length>0?(it()(a,(function(t){var e=t.getCanvasBBox();r.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,o),i=Math.max.apply(null,o)):(t=0,e=0,n=0,i=0);var s={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return s},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();it()(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],i=t[1];$()(n)?i=n:i["type"]=n;var r=kt[i.type];r||(r=ot()(i.type),kt[i.type]=r);var o=this.getShapeBase(),a=new o[r](i);return this.add(a),a},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,i=t[0],r=t[1];if(q()(i))n=new i(r||{parent:this});else{var o=i||{},a=this.getGroupBase();n=new a(o)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!ct(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(i=this._findShape(r,o[0],o[1],n))}return i},e.prototype._findShape=function(t,e,n,i){for(var r=null,o=t.length-1;o>=0;o--){var a=t[o];if(ct(a)&&(a.isGroup()?r=a.getShape(e,n,i):a.isHit(e,n)&&(r=a)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&jt(r,t,!1),t.set("parent",this),e&&Ot(t,e),i&&Pt(t,i),n.push(t),Tt(t),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();it()(t,(function(t,e){return t[Et]=e,t})),t.sort(Lt((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return it()(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return it()(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(Mt),Rt=Dt,Bt=n("74f4"),Nt=n("fb77"),Ft=n("ea1d"),zt=n("6730"),Vt=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},Gt=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},Ht=[1,0,0,0,1,0,0,0,1];function Wt(t,e,n){var i={},o=e.fromAttrs,a=e.toAttrs;if(!t.destroyed){var s;for(var c in a)if(!Object(r["isEqual"])(o[c],a[c]))if("path"===c){var u=a[c],h=o[c];u.length>h.length?(u=l(a[c]),h=l(o[c]),h=N(h,u),h=V(h,u),e.fromAttrs.path=h,e.toAttrs.path=u):e.pathFormatted||(u=l(a[c]),h=l(o[c]),h=V(h,u),e.fromAttrs.path=h,e.toAttrs.path=u,e.pathFormatted=!0),i[c]=[];for(var d=0;d<u.length;d++){for(var p=u[d],f=h[d],g=[],m=0;m<p.length;m++)Object(r["isNumber"])(p[m])&&f&&Object(r["isNumber"])(f[m])?(s=Object(Ft["a"])(f[m],p[m]),g.push(s(n))):g.push(p[m]);i[c].push(g)}}else if("matrix"===c){var v=Object(zt["a"])(o[c]||Ht,a[c]||Ht),y=v(n);i[c]=y}else Vt(c)&&Gt(a[c])?i[c]=a[c]:Object(r["isFunction"])(a[c])||(s=Object(Ft["a"])(o[c],a[c]),i[c]=s(n));t.attr(i)}}function Ut(t,e,n){var i,r=e.startTime,o=e.delay;if(n<r+o||e._paused)return!1;var a=e.duration,s=e.easing;if(n=n-r-e.delay,e.repeat)i=n%a/a,i=Nt[s](i);else{if(i=n/a,!(i<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;i=Nt[s](i)}if(e.onFrame){var l=e.onFrame(i);t.attr(l)}else Wt(t,e,i);return!1}var Zt=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,i=this,r=!1;this.timer=Bt["c"]((function(o){if(i.current=o,i.animators.length>0){for(var a=i.animators.length-1;a>=0;a--)if(t=i.animators[a],t.destroyed)i.removeAnimator(a);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],r=Ut(t,n,o),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(a)}var l=i.canvas.get("autoDraw");l||i.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),Yt=Zt,Xt=40,qt=0,Kt=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Qt(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Jt(t,e,n){if(n.bubbles){var i=void 0,r=!1;if("mouseenter"===e?(i=n.fromShape,r=!0):"mouseleave"===e&&(r=!0,i=n.toShape),t.isCanvas()&&r)return;if(i&&lt(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var $t=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&(e.dragging||e.currentShape)){var r=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,r,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&e.dragging){var r=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,r,null),e._emitEvent("dragend",t,r,e.draggingShape),e._afterDrag(e.draggingShape,r,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");it()(Kt,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");it()(Kt,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,r,o){var a=new H(t,e);return a.fromShape=r,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(i),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),i=e.getPointByEvent(t);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),i=this._getShape(n,e),r=this["_on"+t],o=!1;if(r)r.call(this,n,i,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,i),i&&this._emitEvent(t,e,n,i,null,i),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(o||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas,l=s.get("el");l.style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===qt&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,i){var r=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,e,n,n,i),this._emitEvent("mouseleave",t,e,n,n,i),i&&!i.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,e,i,n,i),this._emitEvent("mouseenter",t,e,i,n,i)))},t.prototype._emitDragoverEvents=function(t,e,n,i,r){i?(i!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,i),this._emitEvent("dragenter",t,e,i,n,i)),r||this._emitEvent("dragover",t,e,i)):n&&this._emitEvent("dragleave",t,e,n,n,i),r&&this._emitEvent("dragover",t,e,i)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(e,n);i!==t&&this._emitMouseoverEvents(n,e,t,i),this.currentShape=i},t.prototype._onmouseup=function(t,e,n){if(n.button===qt){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,t,i,e,!0)},t.prototype._onmousemove=function(t,e,n){var i=this.canvas,r=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=n.timeStamp,c=l-this.mousedownTimeStamp,u=a.clientX-t.clientX,h=a.clientY-t.clientY,d=u*u+h*h;c>120||d>Xt?s&&s.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,i,r,o){var a=this._getEventObj(t,e,n,i,r,o);if(i){a.shape=i,Qt(i,t,a);var s=i.getParent();while(s)s.emitDelegation(t,a),a.propagationStopped||Jt(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var l=this.canvas;Qt(l,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),te=$t,ee="px",ne=Object(dt["a"])(),ie=ne&&"firefox"===ne.name,re=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(W["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["cursor"]="default",e["supportCSSTransform"]=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Q()(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new te({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Yt(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");st&&(n.style.width=t+ee,n.style.height=e+ee)},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");st&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(ie&&!Y()(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Y()(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),i=n.x,r=n.y;return this.getPointByClient(i,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t-i.left,y:e-i.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t+i.left,y:e+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(Rt),oe=re,ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(W["__extends"])(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;i<n.length;i++){var r=n[i];e.add(r.clone())}return e},e}(Rt),se=ae,le=function(t){function e(e){return t.call(this,e)||this}return Object(W["__extends"])(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.get("bbox");return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.get("canvasBox");return t||(t=this.calculateCanvasBBox(),this.set("canvasBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,i=t.minY,r=t.maxX,o=t.maxY;if(e){var a=gt(e,[t.minX,t.minY]),s=gt(e,[t.maxX,t.minY]),l=gt(e,[t.minX,t.maxY]),c=gt(e,[t.maxX,t.maxY]);n=Math.min(a[0],s[0],l[0],c[0]),r=Math.max(a[0],s[0],l[0],c[0]),i=Math.min(a[1],s[1],l[1],c[1]),o=Math.max(a[1],s[1],l[1],c[1])}var u=this.attrs;if(u.shadowColor){var h=u.shadowBlur,d=void 0===h?0:h,p=u.shadowOffsetX,f=void 0===p?0:p,g=u.shadowOffsetY,m=void 0===g?0:g,v=n-d+f,y=r+d+f,b=i-d+m,x=o+d+m;n=Math.min(n,v),r=Math.max(r,y),i=Math.min(i,b),o=Math.max(o,x)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:o,width:r-n,height:o-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),i=this.get("endArrowShape"),r=[t,e,1];r=this.invertFromMatrix(r);var o=r[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(i&&i.isHit(o,a))return!0}return!1},e}(Mt),ce=le;n.d(e,"e",(function(){return H})),n.d(e,"d",(function(){return ht})),n.d(e,"a",(function(){return oe})),n.d(e,"b",(function(){return se})),n.d(e,"c",(function(){return ce})),n.d(e,"f",(function(){return i}));var ue=n("2a37");ue.version},6899:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var i=n("c1fb"),r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i["a"])({url:"/search/field/association/quake_certificate",method:"post",data:t})},o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i["a"])({url:"/search/certificate/related/assets",method:"post",data:t})},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i["a"])({url:"/search/query_string/quake_certificate/export",method:"post",data:t})}},6944:function(t,e,n){},6945:function(t,e,n){!function(){var e={7757:function(t,e,n){t.exports=n(5666)},8031:function(t,e,n){"use strict";n.d(e,{j8:function(){return f.CSS2DObject},cp:function(){return g.CSS3DObject},P7:function(){return g.CSS3DSprite},ZP:function(){return m}});var i=n(9611),r=n(8814);function o(t,e,n){return o=(0,r.Z)()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&(0,i.Z)(o,n.prototype),o},o.apply(null,arguments)}var a=n(5671),s=n(3144),l=n(136),c=n(3668),u=n(5644),h=n(1270),d=n(645),p=n(5006),f=n(6209),g=n(6530),m=function(t){(0,l.Z)(n,t);var e=(0,c.Z)(n);function n(t){var i;return(0,a.Z)(this,n),(i=e.call(this)).objecttype__="BaseObject",i.key=void 0,i.name=void 0,i.pencil=void 0,i.object3d=void 0,i.isAdd=!1,i.userData={},i.pm=(0,h.Z)(),i.visible=!1,i}return(0,s.Z)(n,[{key:"parent",get:function(){var t=this.object3d.parent;return(null===t||void 0===t?void 0:t.userData.BaseObject_)||this.pencil.scene}},{key:"children",get:function(){return this.object3d.children.map((function(t){return t.userData.BaseObject_})).filter((function(t){return!!t}))}},{key:"draw",value:function(){return new Promise((function(t){t("")}))}},{key:"init",value:function(){}},{key:"create",value:function(){}},{key:"precreate",value:function(){}},{key:"render",value:function(){}},{key:"update",value:function(t,e){}},{key:"resize",value:function(t,e){}},{key:"nameFunc",value:function(t){return"".concat(this.name,"-").concat(t)}},{key:"show",value:function(){return this.object3d&&(this.object3d.visible=!0),this.visible=!0,this}},{key:"hide",value:function(){return this.object3d&&(this.object3d.visible=!1),this.visible=!1,this}},{key:"isVisible",value:function(){return this.visible}},{key:"createMesh",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.object3d=o(u.Mesh,e),this}},{key:"createGroup",value:function(){return this.object3d=new u.Group,this}},{key:"createPoints",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.object3d=o(u.Points,e),this}},{key:"createCSS2DObject",value:function(t){return this.object3d=new f.CSS2DObject(t),this}},{key:"createCSS3DObject",value:function(t){return this.object3d=new g.CSS3DObject(t),this}},{key:"createCSS3DSprite",value:function(t){return this.object3d=new g.CSS3DSprite(t),this}},{key:"add",value:function(){var t;return(t=this.object3d).add.apply(t,arguments),this}},{key:"remove",value:function(){var t;return(t=this.object3d).remove.apply(t,arguments),this}},{key:"getSize",value:function(){var t=(new u.Box3).setFromObject(this.object3d);return{min:t.min,max:t.max,size:t.getSize(new u.Vector3)}}},{key:"traverse",value:function(t){t(this),this.children.forEach((function(e){e.traverse(t)}))}},{key:"dispose",value:function(){var t;null===(t=this.object3d)||void 0===t||t.traverse((function(t){(0,p.disposeMesh)(t)}))}}]),n}(d.Z)},645:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(5671),r=n(3144),o=n(2494),a=n.n(o),s=function(){function t(){(0,i.Z)(this,t),this.guiParams={}}return(0,r.Z)(t,[{key:"checkGuiParams",value:function(){this.guiParams=this.guiParams instanceof Function?this.guiParams():this.guiParams}},{key:"showGuiParams",value:function(t){var e=this;this.checkGuiParams(),t&&Object.keys(this.guiParams).forEach((function(n){var i=t.addFolder(n),r=i.title,o=e.guiParams[n];Object.keys(o).forEach((function(a){var s=o[a],l=s.view,c=s.min,u=s.max,h=s.step,d=s.name,p=s.paramMap,f=s.items,g=s.value,m=s.target,v=s.onClick,y="".concat(r,"-").concat(a),b="undefined"===typeof g&&m,x=b?m():o[a],w=b?a:"value";if("point"===l){var _=m(),C={};Object.keys(_).forEach((function(t){C[t]={min:c,max:u,step:h}})),t.addPointPicker({name:a,value:_,group:i,range:C})}else"euler"===l?t.addRotationPicker({name:a,value:m(),group:i}):"material"===l?t.addMaterialPickerGroup({name:a,value:m(),group:i}):"object3D"===l?t.addObjectPickerGroup({name:a,value:m(),group:i}):"button"===l?i.addButton({title:d||a}).on("click",(function(){null===v||void 0===v||v()})):i.addInput(x,w,{label:d||a,min:c,max:u,step:h,presetKey:y,options:f}).on("change",(function(t){var i=t.value;e.setGuiTargetValue(n,a,i,p)}))}))}))}},{key:"setGuiTargetValue",value:function(t,e,n,i){var r=this.guiParams[t][e],o=r.onChange,a=r.target,s=r.value,l=e.toLowerCase().indexOf("color")>-1;if(a&&("undefined"!==typeof s||!a)){var c=a();Array.isArray(c)||(c=[c]),c.forEach((function(t){if(t)if(l)try{t[i||e].set(n)}catch(r){"color"===e||i||console.warn("".concat(e," is not a color,set paramMap"))}else t[i||e]=n}))}o&&o(n)}},{key:"setGuiTargetValueByParams",value:function(){var t=this;this.checkGuiParams(),Object.keys(this.guiParams).forEach((function(e){Object.keys(t.guiParams[e]).forEach((function(n){var i=t.guiParams[e][n];"undefined"!==typeof i.value&&t.setGuiTargetValue(e,n,i.value,i.paramMap)}))}))}},{key:"guiParamTween",value:function(t,e,n){var i=this,r=n.duration,o=void 0===r?0:r;this.checkGuiParams();var s=this.guiParams[t][e],l=s.to,c=s.paramMap,u=void 0===c?"":c;return new(a().Tween)(this.guiParams[t][e]).to({value:l},o).onUpdate((function(n){i.setGuiTargetValue(t,e,n.value,u)}))}}]),t}()},4811:function(t,e,i){"use strict";i.d(e,{lJ:function(){return u}});var r=i(4942),o=i(5861),a=i(7757),s=i.n(a),l=n("6fb9"),c=i(203),u=function(){var t=(0,o.Z)(s().mark((function t(e,n){var i,o,a,u,h;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.version,t.next=3,(0,l.get)(e);case 3:if(!(a=t.sent)||!a[i]){t.next=8;break}o=a[i],t.next=14;break;case 8:return t.next=10,(0,c.Z)(fetch(e).then((function(t){if(t.ok)return t.blob();throw new Error})));case 10:u=t.sent,h=u.res,u.err||(o=h,(0,l.set)(e,(0,r.Z)({},i,h)));case 14:return t.abrupt("return",o?{url:URL.createObjectURL(o)}:{url:e});case 15:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},5006:function(t,e,i){"use strict";i.d(e,{disposeMesh:function(){return o},getCache:function(){return l.lJ},isPlainObject:function(){return s},makePromiseCreator:function(){return r.Z}});var r=i(1270);function o(t){t.geometry&&t.geometry.dispose(),t.material&&(Array.isArray(t.material)?t.material:[t.material]).forEach((function(t){var e,n,i,r,o,a,s,l,c,u,h,d,p;null===(e=t.map)||void 0===e||e.dispose(),null===(n=t.lightMap)||void 0===n||n.dispose(),null===(i=t.bumpMap)||void 0===i||i.dispose(),null===(r=t.normalMap)||void 0===r||r.dispose(),null===(o=t.specularMap)||void 0===o||o.dispose(),null===(a=t.envMap)||void 0===a||a.dispose(),null===(s=t.alphaMap)||void 0===s||s.dispose(),null===(l=t.aoMap)||void 0===l||l.dispose(),null===(c=t.displacementMap)||void 0===c||c.dispose(),null===(u=t.emissiveMap)||void 0===u||u.dispose(),null===(h=t.gradientMap)||void 0===h||h.dispose(),null===(d=t.metalnessMap)||void 0===d||d.dispose(),null===(p=t.roughnessMap)||void 0===p||p.dispose(),t.dispose()}))}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function s(t){if(!1===a(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!1!==a(n)&&!1!==n.hasOwnProperty("isPrototypeOf")}i(7757),i(5644);var l=i(4811);n("0dc0")},1270:function(t,e,n){"use strict";var i=n(203);e.Z=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return n.promise=new Promise((function(t,e){n.resolve=t,n.reject=e})),t&&(n.promise=(0,i.Z)(n.promise,e)),n}},203:function(t,e,n){"use strict";var i=n(1413);e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.then((function(t){return(0,i.Z)({err:null,res:t},e)})).catch((function(t){return(0,i.Z)({err:t,res:void 0},e)}))}},1988:function(t,e,n){"use strict";var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,".AQRoVkVcwAXxOpPhl6wX{position:fixed;top:8px;right:8px;z-index:9999;width:400px;max-height:80vh;overflow:auto}.clkVvR10CkFH7lhgjQhC{position:fixed;top:8px;right:410px;max-height:80vh;z-index:9999;overflow-y:auto;pointer-events:all;visibility:visible}.QfTBCyt6hUW1bNspajG_{visibility:hidden;pointer-events:none}",""]),a.locals={"pencil-gui-container":"AQRoVkVcwAXxOpPhl6wX","pencil-old-gui-container":"clkVvR10CkFH7lhgjQhC",hidden:"QfTBCyt6hUW1bNspajG_"},e.Z=a},6004:function(t,e,n){"use strict";var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,"._Is5gonPPM56gH54DXJH{border:1px solid #5af;background-color:rgba(75,160,255,.3);position:fixed}",""]),a.locals={"selection-helper":"_Is5gonPPM56gH54DXJH"},e.Z=a},3645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i="undefined"!==typeof e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"===typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&a[u[0]]||("undefined"!==typeof o&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},8081:function(t){"use strict";t.exports=function(t){return t[1]}},7187:function(t){"use strict";var e,n="object"===typeof Reflect?Reflect:null,i=n&&"function"===typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!==t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,i){function r(n){t.removeListener(e,o),i(n)}function o(){"function"===typeof t.removeListener&&t.removeListener("error",r),n([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"===typeof t.on&&g(t,"error",e,n)}(t,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,n,i){var r,o,a,c;if(s(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"===typeof a?a=o[e]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=l(t))>0&&a.length>r&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=u.bind(i);return r.listener=n,i.wrapFn=r,r}function d(t,e,n){var i=t._events;if(void 0===i)return[];var r=i[e];return void 0===r?[]:"function"===typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(r):f(r,r.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function g(t,e,n,i){if("function"===typeof t.on)i.once?t.once(e,n):t.on(e,n);else{if("function"!==typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){i.once&&t.removeEventListener(e,r),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!==typeof t||t<0||r(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||r(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[t];if(void 0===l)return!1;if("function"===typeof l)i(l,this,e);else{var c=l.length,u=f(l,c);for(n=0;n<c;++n)i(u[n],this,e)}return!0},o.prototype.addListener=function(t,e){return c(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return c(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,h(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,h(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,i,r,o,a;if(s(e),void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!==typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,r),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},5666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(O){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new k(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return T()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=u(t,e,n);if("normal"===l.type){if(i=n.done?f:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=f,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}t.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",f="completed",g={};function m(){}function v(){}function y(){}var b={};l(b,o,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var _=y.prototype=m.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(r,o,a,s){var l=u(t[r],t,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"===typeof h&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}}function I(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var n=t[o];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return v.prototype=y,l(_,"constructor",y),l(y,"constructor",v),v.displayName=l(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},C(A.prototype),l(A.prototype,a,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new A(c(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(_),l(_,s,"Generator"),l(_,o,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:E(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},3379:function(t){"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],c=i.base?l[0]+i.base:l[0],u=o[c]||0,h="".concat(c," ").concat(u);o[c]=u+1;var d=n(h),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var f=r(p,i);i.byIndex=s,e.splice(s,0,{identifier:h,updater:f,references:1})}a.push(h)}return a}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var o=i(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var l=i(t,r),c=0;c<o.length;c++){var u=n(o[c]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}o=l}}},569:function(t){"use strict";var e={};t.exports=function(t,n){var i=function(t){if("undefined"===typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(i){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:function(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:function(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:function(t){"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r="undefined"!==typeof n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!==typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},1488:function(t){"use strict";t.exports="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\n\nvarying vec2 vUv;\n\nvoid main() {\n  \n  gl_FragColor = (texture2D(baseTexture, vUv) + vec4(1.0) * texture2D(bloomTexture, vUv));\n  \n}"},3978:function(t){"use strict";t.exports="varying vec2 vUv;\n\nvoid main() {\n  \n  vUv = uv;\n  \n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n  \n}"},2494:function(t){"use strict";t.exports=n("22b5")},7874:function(t){"use strict";t.exports=n("c4e3")},5644:function(t){"use strict";t.exports=n("5a89")},5456:function(t){"use strict";t.exports=n("34ad")},6209:function(t){"use strict";t.exports=n("aea1")},6530:function(t){"use strict";t.exports=n("32ab")},907:function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{Z:function(){return i}})},3878:function(t,e,n){"use strict";function i(t){if(Array.isArray(t))return t}n.d(e,{Z:function(){return i}})},7326:function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{Z:function(){return i}})},5861:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(i,r)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,l,"next",t)}function l(t){i(a,r,o,s,l,"throw",t)}s(void 0)}))}}n.d(e,{Z:function(){return r}})},5671:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return i}})},3144:function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.d(e,{Z:function(){return r}})},3668:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(1120),r=n(8814);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var a=n(7326);function s(t,e){if(e&&("object"===o(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(t)}function l(t){var e=(0,r.Z)();return function(){var n,r=(0,i.Z)(t);if(e){var o=(0,i.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}},4942:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return i}})},1752:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(1120);function r(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=(0,i.Z)(t)););return t}function o(){return o="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},o.apply(this,arguments)}},1120:function(t,e,n){"use strict";function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}n.d(e,{Z:function(){return i}})},136:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(9611);function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,i.Z)(t,e)}},8814:function(t,e,n){"use strict";function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}n.d(e,{Z:function(){return i}})},1902:function(t,e,n){"use strict";function i(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}n.d(e,{Z:function(){return i}})},5267:function(t,e,n){"use strict";function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{Z:function(){return i}})},1413:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(4942);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},4925:function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}n.d(e,{Z:function(){return i}})},9611:function(t,e,n){"use strict";function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}n.d(e,{Z:function(){return i}})},3324:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(3878),r=n(1902),o=n(181),a=n(5267);function s(t,e){return(0,i.Z)(t)||(0,r.Z)(t,e)||(0,o.Z)(t,e)||(0,a.Z)()}},2982:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(907),r=n(181);function o(t){return function(t){if(Array.isArray(t))return(0,i.Z)(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,r.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},181:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(907);function r(t,e){if(t){if("string"===typeof t)return(0,i.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.Z)(t,e):void 0}}}},i={};function r(t){var n=i[t];if(void 0!==n)return n.exports;var o=i[t]={id:t,exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};!function(){"use strict";r.r(o),r.d(o,{BaseObject:function(){return me.ZP},CSS2DObject:function(){return me.j8},CSS3DObject:function(){return me.cp},CSS3DSprite:function(){return me.P7},DrawController:function(){return ye},GUIController:function(){return de},Pencil:function(){return ge},default:function(){return ge}});var t=r(181);function e(e,n){var i="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=(0,t.Z)(e))||n&&e&&"number"===typeof e.length){i&&(e=i);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){i=i.call(e)},n:function(){var t=i.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw a}}}}var i=r(1413),a=r(5671),s=r(3144),l=r(2494),c=r.n(l),u=r(5644),h=r(7187),d=n("fc76"),p=r.n(d),f=n("ef20"),g=r.n(f),m=r(645),v={None:u.NoToneMapping,Linear:u.LinearToneMapping,Reinhard:u.ReinhardToneMapping,Cineon:u.CineonToneMapping,ACESFilmic:u.ACESFilmicToneMapping},y={canvas:void 0,context:null,antialias:!1,devicePixelRatio:window.devicePixelRatio,powerPreference:"high-performance",toneMapping:"None",toneMappingExposure:1,alpha:!1,autoClear:!1,outputEncoding:u.LinearEncoding,logarithmicDepthBuffer:!1,preserveDrawingBuffer:!1},b=function(){function t(e){(0,a.Z)(this,t),this.renderer=void 0,this.options=void 0,this.options=e;var n=e.width,i=e.height,r=e.rendererParams,o=r.canvas,s=r.context,l=r.alpha,c=r.autoClear,h=r.devicePixelRatio,d=r.antialias,p=r.powerPreference,f=r.toneMapping,g=r.toneMappingExposure,m=r.outputEncoding,y=r.logarithmicDepthBuffer,b=r.preserveDrawingBuffer,x=new u.WebGLRenderer({canvas:o,context:s,alpha:l,antialias:d,powerPreference:p,logarithmicDepthBuffer:y,preserveDrawingBuffer:b});x.setSize(n,i),x.setPixelRatio(h),x.autoClear=c,x.sortObjects=!1,x.toneMapping=v[f],x.toneMappingExposure=g,x.outputEncoding=m,x.domElement.tabIndex=0,x.domElement.style.outline="none",this.renderer=x}return(0,s.Z)(t,[{key:"setSize",value:function(t,e){this.renderer.setSize(t,e)}},{key:"render",value:function(){var t=this.options,e=t.scene,n=t.camera;this.renderer.render(e,n)}},{key:"setGui",value:function(t){var e=this,n=new m.Z;n.guiParams={renderer:{toneMapping:{value:v[this.options.rendererParams.toneMapping],items:v,target:function(){return e.renderer}},toneMappingExposure:{value:this.options.rendererParams.toneMappingExposure,min:0,max:Math.pow(2,4),target:function(){return e.renderer}}}},n.showGuiParams(t)}},{key:"dispose",value:function(){var t,e,n;null===(t=this.renderer)||void 0===t||t.clear(),null===(e=this.renderer)||void 0===e||e.dispose(),null===(n=this.renderer)||void 0===n||n.renderLists.dispose(),this.renderer=void 0}}]),t}(),x=function(){function t(e){(0,a.Z)(this,t),this.options=void 0,this.camera=void 0,this.oldCameraPosition=new u.Vector3,this.oldCameraRotation=new u.Euler,this.customCamera=!1,this.options=e;var n=e.isdev,i=e.width,r=e.height,o=e.cameraParams;if(o instanceof u.Camera)this.camera=o,this.customCamera=!0;else{var s=o.fov,l=o.far,c=o.near,h=new u.PerspectiveCamera(s,i/r,c,l);s&&l||!n||(console.warn("camera.fov 默认值为 45，旧版本为 12"),console.warn("camera.far 默认值为 1000，旧版本为 20000")),h.position.set(0,0,400),h.lookAt(0,0,0),this.camera=h}}return(0,s.Z)(t,[{key:"checkCameraChange",value:function(){var t=this.camera,e=this.oldCameraPosition.equals(t.position)&&this.oldCameraRotation.equals(t.rotation);return this.oldCameraPosition=t.position.clone(),this.oldCameraRotation=t.rotation.clone(),!e}},{key:"setSize",value:function(t,e){this.camera instanceof u.PerspectiveCamera&&(this.camera.aspect=t/e),this.camera.updateProjectionMatrix()}},{key:"dispose",value:function(){this.camera=void 0}},{key:"setGui",value:function(t){var e=this,n=new m.Z;n.guiParams={camera:{x:{min:-1e4,max:1e4,step:.01,target:function(){return e.camera.position}},y:{min:-1e4,max:1e4,step:.01,target:function(){return e.camera.position}},z:{min:-1e4,max:1e4,step:.01,target:function(){return e.camera.position}},near:{min:0,max:1e3,step:1,target:function(){return e.camera},onChange:function(t){e.camera.updateProjectionMatrix()}},far:{min:0,max:2e4,step:1,target:function(){return e.camera},onChange:function(t){e.camera.updateProjectionMatrix()}}}},this.camera instanceof u.PerspectiveCamera&&(n.guiParams.camera.fov={min:0,max:90,step:1,target:function(){return e.camera},onChange:function(t){e.camera.updateProjectionMatrix()}}),n.showGuiParams(t)}}]),t}(),w=r(5006),_=function(){function t(e){(0,a.Z)(this,t),this.options=void 0,this.scene=void 0,this.options=e;var n=e.camera,i=e.sceneParams.background,r=new u.Scene;i&&(r.background=i),r.add(n),this.scene=r}return(0,s.Z)(t,[{key:"addLight",value:function(){var t;null===(t=this.scene)||void 0===t||t.add(new u.AmbientLight(4210752),new u.PointLight(16777215,1))}},{key:"addAxesHelper",value:function(){var t,e=new u.AxesHelper(100);null===(t=this.scene)||void 0===t||t.add(e)}},{key:"dispose",value:function(){var t;null===(t=this.scene)||void 0===t||t.traverse((function(t){(0,w.disposeMesh)(t)})),this.scene=void 0}}]),t}(),C=n("4721"),A=function(){function t(e){(0,a.Z)(this,t),this.options=void 0,this.control=void 0,this.limitPanV=void 0,this.options=e;var n=e.camera,i=e.controlParams,r=e.mapControl,o=i.domElement,s=r?new C.MapControls(n,o):new C.OrbitControls(n,o);s.minPolarAngle=.15*Math.PI,s.maxPolarAngle=.85*Math.PI,s.enableDamping=!0,s.dampingFactor=.063,s.autoRotate=!1,s.autoRotateSpeed=-60,s.enableZoom=!0,s.zoomSpeed=.2,this.control=s}return(0,s.Z)(t,[{key:"limitPan",value:function(t){var e=t.maxX,n=void 0===e?1/0:e,i=t.minX,r=void 0===i?-1/0:i,o=t.maxZ,a=void 0===o?1/0:o,s=t.minZ,l=void 0===s?-1/0:s,c=t.maxY,h=void 0===c?1/0:c,d=t.minY,p=void 0===d?-1/0:d,f=this.limitPanV||new u.Vector3,g=this.control,m=this.options.camera,v=new u.Vector3(r,p,l),y=new u.Vector3(n,h,a);this.limitPanV=f,f.copy(g.target),g.target.clamp(v,y),f.sub(g.target),m.position.sub(f)}},{key:"setGui",value:function(t){var e,n,i=t.findFolder("camera"),r=null===(e=this.control)||void 0===e?void 0:e.target,o=t.addFolder("target",i);r instanceof u.Vector3&&(o.addInput(r,"x",{min:-1e4,max:1e4,step:.01}),o.addInput(r,"y",{min:-1e4,max:1e4,step:.01}),o.addInput(r,"z",{min:-1e4,max:1e4,step:.01}),null===(n=this.control)||void 0===n||n.addEventListener("change",(function(){var e;null===(e=t.pane)||void 0===e||e.refresh()})))}},{key:"update",value:function(){var t;null===(t=this.control)||void 0===t||t.update()}},{key:"dispose",value:function(){var t;null===(t=this.control)||void 0===t||t.dispose(),this.control=void 0}}]),t}(),I=r(2982),S=n("b1f1"),M=n("b210"),k=function(){function t(e,n){(0,a.Z)(this,t),this.element=void 0,this.renderer=void 0,this.startPoint=new u.Vector2,this.pointTopLeft=new u.Vector2,this.pointBottomRight=new u.Vector2,this.isDown=!1,this.active=!1,this.onPointerDownHandler=void 0,this.onPointerMoveHandler=void 0,this.onPointerUpHandler=void 0,this.element=document.createElement("div"),this.element.classList.add(n),this.element.style.pointerEvents="none",this.renderer=e,this.onPointerDownHandler=this.onPointerDown.bind(this),this.onPointerMoveHandler=this.onPointerMove.bind(this),this.onPointerUpHandler=this.onPointerUp.bind(this),this.renderer.domElement.addEventListener("pointerdown",this.onPointerDownHandler),this.renderer.domElement.addEventListener("pointermove",this.onPointerMoveHandler),this.renderer.domElement.addEventListener("pointerup",this.onPointerUpHandler)}return(0,s.Z)(t,[{key:"dispose",value:function(){this.renderer.domElement.removeEventListener("pointerdown",this.onPointerDownHandler),this.renderer.domElement.removeEventListener("pointermove",this.onPointerMoveHandler),this.renderer.domElement.removeEventListener("pointerup",this.onPointerUpHandler),this.element=void 0,this.renderer=void 0}},{key:"onPointerDown",value:function(t){this.active&&(this.isDown=!0,this.onSelectStart(t))}},{key:"onPointerMove",value:function(t){this.isDown&&this.active&&this.onSelectMove(t)}},{key:"onPointerUp",value:function(){this.active&&(this.isDown=!1,this.onSelectOver())}},{key:"onSelectStart",value:function(t){this.element&&this.renderer&&(this.element.style.display="none",this.renderer.domElement.parentElement.appendChild(this.element),this.element.style.left="".concat(t.clientX,"px"),this.element.style.top="".concat(t.clientY,"px"),this.element.style.width="0px",this.element.style.height="0px",this.startPoint.x=t.clientX,this.startPoint.y=t.clientY)}},{key:"onSelectMove",value:function(t){this.element&&this.renderer&&(this.element.style.display="block",this.pointBottomRight.x=Math.max(this.startPoint.x,t.clientX),this.pointBottomRight.y=Math.max(this.startPoint.y,t.clientY),this.pointTopLeft.x=Math.min(this.startPoint.x,t.clientX),this.pointTopLeft.y=Math.min(this.startPoint.y,t.clientY),this.element.style.left="".concat(this.pointTopLeft.x,"px"),this.element.style.top="".concat(this.pointTopLeft.y,"px"),this.element.style.width="".concat(this.pointBottomRight.x-this.pointTopLeft.x,"px"),this.element.style.height="".concat(this.pointBottomRight.y-this.pointTopLeft.y,"px"))}},{key:"onSelectOver",value:function(){var t;this.element&&this.renderer&&(null===(t=this.element.parentElement)||void 0===t||t.removeChild(this.element))}}]),t}(),E=r(3379),T=r.n(E),O=r(7795),P=r.n(O),j=r(569),L=r.n(j),D=r(3565),R=r.n(D),B=r(9216),N=r.n(B),F=r(4589),z=r.n(F),V=r(6004),G={};G.styleTagTransform=z(),G.setAttributes=R(),G.insert=L().bind(null,"head"),G.domAPI=P(),G.insertStyleElement=N(),T()(V.Z,G);var H=V.Z&&V.Z.locals?V.Z.locals:void 0,W=function(){function t(e){var n=this;(0,a.Z)(this,t),this.control=void 0,this.options=void 0,this.eventList=[],this.pickGroup=new u.Object3D,this.selectionBox=void 0,this.selectionHelper=void 0,this.selecItems=[];var i=e.domElement,r=e.pencil,o=new S.TransformControls(r.camera,i);o.addEventListener("dragging-changed",(function(t){r.control&&(r.control.enabled=!t.value)})),o.addEventListener("enabled-changed",(function(t){t.value||o.detach()})),o.addEventListener("change",(function(){var t,e;if((null===(t=o.object)||void 0===t?void 0:t.uuid)===(null===(e=n.pickGroup)||void 0===e?void 0:e.uuid)&&o.dragging)switch(o.mode){case"translate":n.selecItems.forEach((function(t){var e;return t.position.add(n.pickGroup.position.clone().sub(null===(e=n.pickGroup)||void 0===e?void 0:e.userData.oldPosition))})),n.pickGroup.userData.oldPosition=o.object.position.clone();break;case"scale":n.selecItems.forEach((function(t){return t.scale.copy(o.object.scale)}));break;case"rotate":n.selecItems.forEach((function(t){return t.rotation.copy(o.object.rotation)}))}}));var s=new M.SelectionBox(r.camera,r.scene),l=new k(r.renderer,H["selection-helper"]);this.selectionBox=s,this.selectionHelper=l,this.eventList.push({event:"pointerdown",handler:this.pointerDownHandler.bind(this)},{event:"pointerup",handler:this.pointerUpHandler.bind(this)},{event:"keydown",handler:this.keyDownHandler.bind(this)},{event:"keyup",handler:this.keyUpHandler.bind(this)}),this.eventList.forEach((function(t){var e=t.event,n=t.handler;i.addEventListener(e,n)})),o.enabled=!1,this.options=e,this.control=o}return(0,s.Z)(t,[{key:"traverse",value:function(t,e){var n=this;t.length&&t.forEach((function(t){e(t),n.traverse(t.children,e)}))}},{key:"getParent",value:function(t){return t.parent&&t.parent!==this.options.pencil.scene?this.getParent(t.parent):t}},{key:"allMeshes",get:function(){var t,e=[];return this.traverse(null===(t=this.options.pencil.scene)||void 0===t?void 0:t.children.filter((function(t){return t.userData.BaseObject_})),(function(t){t instanceof u.Mesh&&t.visible&&e.push(t)})),e}},{key:"pointerDownHandler",value:function(t){var e,n;if(null!==(e=this.control)&&void 0!==e&&e.enabled){var i=t.ctrlKey||t.metaKey;null!==(n=this.selectionHelper)&&void 0!==n&&n.active&&this.selectionBox.startPoint.set(t.clientX/window.innerWidth*2-1,-t.clientY/window.innerHeight*2+1,.5);var r,o,a=this.options.pencil.pick(t,this.allMeshes);if(a)if(i){var s,l=this.getParent(a.object);this.selecItems.find((function(t){return t.uuid===l.uuid}))||null===(s=this.selecItems)||void 0===s||s.push(l)}else(null===(r=this.control)||void 0===r||null===(o=r.object)||void 0===o?void 0:o.uuid)!==a.object.uuid&&(this.attach(a.object),this.selecItems.length=0)}}},{key:"getCenter",value:function(t){if(!t.length)return new u.Vector3(0,0,0);var e=t.map((function(t){return t.getWorldPosition(new u.Vector3)})),n=e.map((function(t){return t.x})),i=e.map((function(t){return t.y})),r=e.map((function(t){return t.z})),o=Math.min.apply(Math,(0,I.Z)(n)),a=Math.max.apply(Math,(0,I.Z)(n)),s=Math.min.apply(Math,(0,I.Z)(i)),l=Math.max.apply(Math,(0,I.Z)(i)),c=Math.min.apply(Math,(0,I.Z)(r)),h=Math.max.apply(Math,(0,I.Z)(r));return new u.Vector3((o+a)/2,(s+l)/2,(c+h)/2)}},{key:"pointerUpHandler",value:function(t){var e,n,i,r,o,a=this;if(null!==(e=this.selectionHelper)&&void 0!==e&&e.active&&this.control.enabled){this.selectionBox.endPoint.set(t.clientX/window.innerWidth*2-1,-t.clientY/window.innerHeight*2+1,.5);var s=this.selectionBox.select().filter((function(t){return a.allMeshes.find((function(e){return e.uuid===t.uuid}))})).map((function(t){return a.getParent(t)}));s.length&&(this.selecItems=s);var l,c,u,h=this.getCenter(this.selecItems);null===(n=this.pickGroup)||void 0===n||n.position.copy(h),this.pickGroup.userData.oldPosition=h.clone(),this.selecItems.length&&(null===(i=this.control)||void 0===i||null===(r=i.object)||void 0===r?void 0:r.uuid)!==(null===(o=this.pickGroup)||void 0===o?void 0:o.uuid)&&(null===(l=this.pickGroup)||void 0===l||l.rotation.set(0,0,0),null===(c=this.pickGroup)||void 0===c||c.scale.set(1,1,1),null===(u=this.options.pencil.scene)||void 0===u||u.add(this.pickGroup),this.attach(this.pickGroup))}}},{key:"keyDownHandler",value:function(t){var e,n=this.options.pencil.gui;switch(t.key){case"Meta":case"Alt":this.options.pencil.control&&(this.options.pencil.control.enabled=!1),this.selectionHelper.active=!0;break;case"Shift":null===(e=this.control)||void 0===e||e.setSpace("local"===this.control.space?"world":"local"),n.pane.refresh();break;case"Escape":this.detach();break;case"t":this.control.setMode("translate"),n.pane.refresh();break;case"r":this.control.setMode("rotate"),n.pane.refresh();break;case"s":this.control.setMode("scale"),n.pane.refresh();break;case" ":this.control.enabled=!this.control.enabled,n.pane.refresh()}}},{key:"keyUpHandler",value:function(){var t;null!==(t=this.control)&&void 0!==t&&t.enabled&&(this.options.pencil.control&&(this.options.pencil.control.enabled=!0),this.selectionHelper.active=!1)}},{key:"attach",value:function(t){var e;null===(e=this.control)||void 0===e||e.attach(t)}},{key:"detach",value:function(){var t;null===(t=this.control)||void 0===t||t.detach()}},{key:"setGui",value:function(t){var e=this;if(this.control){var n=new m.Z;n.guiParams={transformControl:{enabled:{target:function(){return e.control}},size:{target:function(){return e.control},min:0,max:5,step:.1},mode:{target:function(){return e.control},items:{translate:"translate",rotate:"rotate",scale:"scale"},onChange:function(t){var n;null===(n=e.control)||void 0===n||n.setMode(t)}},space:{target:function(){return e.control},items:{world:"world",local:"local"},onChange:function(t){var n;null===(n=e.control)||void 0===n||n.setSpace(t)}},detach:{view:"button",onClick:function(){var t;null===(t=e.control)||void 0===t||t.detach()}},reset:{view:"button",onClick:function(){var t;null===(t=e.control)||void 0===t||t.reset()}}}},n.showGuiParams(t);var i=t.addFolder("object",t.findFolder("transformControl")),r=["position","scale","rotation"];this.control.addEventListener("object-changed",(function(t){if(i.children.length&&i.children.forEach((function(t){i.remove(t)})),t.value){var n=t.value;r.forEach((function(t){i.addMonitor(n[t],"x",{label:"".concat(t,".x"),multiline:!0}),i.addMonitor(n[t],"y",{label:"".concat(t,".y"),multiline:!0}),i.addMonitor(n[t],"z",{label:"".concat(t,".z"),multiline:!0})})),i.expanded=!0}else{var o;i.expanded=!1,e.selecItems.length&&(null===(o=e.pickGroup)||void 0===o||o.removeFromParent(),e.selecItems.length=0)}}))}}},{key:"dispose",value:function(){var t,e,n=this;this.eventList.forEach((function(t){var e=t.event,i=t.handler;n.options.domElement.removeEventListener(e,i)})),this.eventList.length=0,null===(t=this.control)||void 0===t||t.dispose(),this.control=void 0,null===(e=this.selectionHelper)||void 0===e||e.dispose(),this.selectionHelper=void 0,this.selectionBox=void 0,this.selecItems.length=0,this.pickGroup&&(this.pickGroup.removeFromParent(),this.pickGroup=void 0)}}]),t}(),U=r(6530),Z=new u.Vector3,Y=new u.Matrix4,X=new u.Matrix4,q=new u.Vector3,K=new u.Vector3,Q=(0,s.Z)((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)(this,t);var n,i,r,o,s=this,l={objects:new WeakMap},c=void 0!==e.element?e.element:document.createElement("div");function h(t,e,n){if(t.isCSS2DObject){Z.setFromMatrixPosition(t.matrixWorld),Z.applyMatrix4(X);var i=!0===t.visible&&Z.z>=-1&&Z.z<=1&&!0===t.layers.test(n.layers);if(t.element.style.display=!0===i?"":"none",!0===i){t.onBeforeRender(s,e,n);var a=t.element;a.style.transform="translate(-50%,-50%) translate(".concat(Z.x*r+r,"px,").concat(-Z.y*o+o,"px)"),a.parentNode!==c&&c.appendChild(a),t.onAfterRender(s,e,n)}var u={distanceToCameraSquared:d(n,t)};l.objects.set(t,u)}for(var p=0,f=t.children.length;p<f;p++)h(t.children[p],e,n)}function d(t,e){return q.setFromMatrixPosition(t.matrixWorld),K.setFromMatrixPosition(e.matrixWorld),q.distanceToSquared(K)}function p(t){var e=[];return t.traverse((function(t){t.isCSS2DObject&&e.push(t)})),e}function f(t){for(var e=p(t).sort((function(t,e){return t.renderOrder!==e.renderOrder?e.renderOrder-t.renderOrder:l.objects.get(t).distanceToCameraSquared-l.objects.get(e).distanceToCameraSquared})),n=e.length,i=0,r=e.length;i<r;i++){var o=e[i].userData.zIndexFix||0,a=e[i].userData.zIndex;e[i].element.style.zIndex=null!==a&&void 0!==a?a:n-i+o}}c.style.overflow="hidden",this.domElement=c,this.getSize=function(){return{width:n,height:i}},this.render=function(t,e){+u.REVISION<144?(!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld()):(!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),null===e.parent&&!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld()),Y.copy(e.matrixWorldInverse),X.multiplyMatrices(e.projectionMatrix,Y),h(t,t,e),f(t)},this.setSize=function(t,e){r=(n=t)/2,o=(i=e)/2,c.style.width="".concat(t,"px"),c.style.height="".concat(e,"px")}})),J={zIndex:"auto"},$=function(){function t(e){(0,a.Z)(this,t),this.css2Drenderer=void 0,this.css3Drenderer=void 0,this.container=void 0,this.staticRender=!1,this.container=e}return(0,s.Z)(t,[{key:"addRenderer",value:function(t,e){var n=this.container,i=n.offsetWidth,r=n.offsetHeight,o="css2d"===t?new Q:new U.CSS3DRenderer;o.domElement.style.position="absolute",o.domElement.style.top="0",o.domElement.style.pointerEvents="none",o.domElement.style.zIndex=e.zIndex,o.setSize(i,r),n.appendChild(o.domElement),"css2d"===t?this.css2Drenderer=o:"css3d"===t&&(this.css3Drenderer=o)}},{key:"setSize",value:function(t,e){var n,i;null===(n=this.css2Drenderer)||void 0===n||n.setSize(t,e),null===(i=this.css3Drenderer)||void 0===i||i.setSize(t,e)}},{key:"render",value:function(t,e,n){var i,r;this.staticRender&&!n.checkCameraChange()||(null===(i=this.css2Drenderer)||void 0===i||i.render(t,e),null===(r=this.css3Drenderer)||void 0===r||r.render(t,e))}},{key:"dispose",value:function(){this.css2Drenderer=void 0,this.css3Drenderer=void 0}}]),t}(),tt=n("32d9"),et=n("93e9"),nt=n("360d"),it=n("e9d2"),rt=n("3934c"),ot=n("f7dd"),at=n("f9e9"),st=n("6c18"),lt=!1,ct=!1!==function(){try{var t=document.createElement("canvas");return!(!window.WebGL2RenderingContext||!t.getContext("webgl2"))}catch(e){return!1}}(),ut=[{text:"UVMapping",value:u.UVMapping},{text:"CubeReflectionMapping",value:u.CubeReflectionMapping},{text:"CubeRefractionMapping",value:u.CubeRefractionMapping},{text:"EquirectangularReflectionMapping",value:u.EquirectangularReflectionMapping},{text:"EquirectangularRefractionMapping",value:u.EquirectangularRefractionMapping},{text:"CubeUVReflectionMapping",value:u.CubeUVReflectionMapping}],ht=[{text:"RepeatWrapping",value:u.RepeatWrapping},{text:"ClampToEdgeWrapping",value:u.ClampToEdgeWrapping},{text:"MirroredRepeatWrapping",value:u.MirroredRepeatWrapping}],dt=[{text:"NearestFilter",value:u.NearestFilter},{text:"LinearFilter",value:u.LinearFilter}],pt=[{text:"NearestFilter",value:u.NearestFilter},{text:"NearestMipMapNearestFilter",value:u.NearestMipMapNearestFilter},{text:"NearestMipMapLinearFilter",value:u.NearestMipMapLinearFilter},{text:"LinearFilter",value:u.LinearFilter},{text:"LinearMipMapNearestFilter",value:u.LinearMipMapNearestFilter},{text:"LinearMipMapLinearFilter",value:u.LinearMipMapLinearFilter}],ft=[{text:"LinearEncoding",value:u.LinearEncoding},{text:"sRGBEncoding",value:u.sRGBEncoding},{text:"BasicDepthPacking",value:u.BasicDepthPacking},{text:"RGBADepthPacking",value:u.RGBADepthPacking}],gt=[{text:"FrontSide",value:u.FrontSide},{text:"BackSide",value:u.BackSide},{text:"DoubleSide",value:u.DoubleSide}],mt=[{text:"NoBlending",value:u.NoBlending},{text:"NormalBlending",value:u.NormalBlending},{text:"AdditiveBlending",value:u.AdditiveBlending},{text:"SubtractiveBlending",value:u.SubtractiveBlending},{text:"MultiplyBlending",value:u.MultiplyBlending},{text:"CustomBlending",value:u.CustomBlending}],vt=r(3978),yt=r(1488),bt=r(136),xt=r(3668),wt=n("1b53"),_t=n("ab70"),Ct=function(t){(0,bt.Z)(n,t);var e=(0,xt.Z)(n);function n(t,i,r,o){var s;(0,a.Z)(this,n),(s=e.call(this)).strength=void 0,s.radius=void 0,s.threshold=void 0,s.resolution=void 0,s.clearColor=void 0,s.renderTargetsHorizontal=void 0,s.renderTargetsVertical=void 0,s.nMips=void 0,s.renderTargetBright=void 0,s.highPassUniforms=void 0,s.materialHighPassFilter=void 0,s.separableBlurMaterials=void 0,s.compositeMaterial=void 0,s.bloomTintColors=void 0,s.copyUniforms=void 0,s.materialCopy=void 0,s._oldClearColor=void 0,s.oldClearAlpha=void 0,s.basic=void 0,s.fsQuad=void 0,s.strength=void 0!==i?i:1,s.radius=r,s.threshold=o,s.resolution=void 0!==t?new u.Vector2(t.x,t.y):new u.Vector2(256,256),s.clearColor=new u.Color(0,0,0);var l={minFilter:u.LinearFilter,magFilter:u.LinearFilter,format:u.RGBAFormat};s.renderTargetsHorizontal=[],s.renderTargetsVertical=[],s.nMips=5;var c=Math.round(s.resolution.x/2),h=Math.round(s.resolution.y/2);s.renderTargetBright=new u.WebGLRenderTarget(c,h,l),s.renderTargetBright.texture.name="UnrealBloomPass.bright",s.renderTargetBright.texture.generateMipmaps=!1;for(var d=0;d<s.nMips;d++){var p=new u.WebGLRenderTarget(c,h,l);p.texture.name="UnrealBloomPass.h".concat(d),p.texture.generateMipmaps=!1,s.renderTargetsHorizontal.push(p);var f=new u.WebGLRenderTarget(c,h,l);f.texture.name="UnrealBloomPass.v".concat(d),f.texture.generateMipmaps=!1,s.renderTargetsVertical.push(f),c=Math.round(c/2),h=Math.round(h/2)}void 0===_t.LuminosityHighPassShader&&console.error("THREE.UnrealBloomPass relies on LuminosityHighPassShader");var g=_t.LuminosityHighPassShader;s.highPassUniforms=u.UniformsUtils.clone(g.uniforms),s.highPassUniforms.luminosityThreshold.value=o,s.highPassUniforms.smoothWidth.value=.01,s.materialHighPassFilter=new u.ShaderMaterial({uniforms:s.highPassUniforms,vertexShader:g.vertexShader,fragmentShader:g.fragmentShader,defines:{}}),s.separableBlurMaterials=[];var m=[3,5,7,9,11];c=Math.round(s.resolution.x/2),h=Math.round(s.resolution.y/2);for(var v=0;v<s.nMips;v++)s.separableBlurMaterials.push(s.getSeperableBlurMaterial(m[v])),s.separableBlurMaterials[v].uniforms.texSize.value=new u.Vector2(c,h),c=Math.round(c/2),h=Math.round(h/2);s.compositeMaterial=s.getCompositeMaterial(s.nMips),s.compositeMaterial.uniforms.blurTexture1.value=s.renderTargetsVertical[0].texture,s.compositeMaterial.uniforms.blurTexture2.value=s.renderTargetsVertical[1].texture,s.compositeMaterial.uniforms.blurTexture3.value=s.renderTargetsVertical[2].texture,s.compositeMaterial.uniforms.blurTexture4.value=s.renderTargetsVertical[3].texture,s.compositeMaterial.uniforms.blurTexture5.value=s.renderTargetsVertical[4].texture,s.compositeMaterial.uniforms.bloomStrength.value=i,s.compositeMaterial.uniforms.bloomRadius.value=.1,s.compositeMaterial.needsUpdate=!0,s.compositeMaterial.uniforms.bloomFactors.value=[1,.8,.6,.4,.2],s.bloomTintColors=[new u.Vector3(1,1,1),new u.Vector3(1,1,1),new u.Vector3(1,1,1),new u.Vector3(1,1,1),new u.Vector3(1,1,1)],s.compositeMaterial.uniforms.bloomTintColors.value=s.bloomTintColors,void 0===it.CopyShader&&console.error("THREE.UnrealBloomPass relies on CopyShader");var y=it.CopyShader;return s.copyUniforms=u.UniformsUtils.clone(y.uniforms),s.copyUniforms.opacity.value=1,s.materialCopy=new u.ShaderMaterial({uniforms:s.copyUniforms,vertexShader:y.vertexShader,fragmentShader:y.fragmentShader,blending:u.AdditiveBlending,depthTest:!1,depthWrite:!1,transparent:!0}),s.enabled=!0,s.needsSwap=!1,s._oldClearColor=new u.Color,s.oldClearAlpha=1,s.basic=new u.MeshBasicMaterial,s.fsQuad=new wt.FullScreenQuad(void 0),s}return(0,s.Z)(n,[{key:"dispose",value:function(){for(var t=0;t<this.renderTargetsHorizontal.length;t++)this.renderTargetsHorizontal[t].dispose();for(var e=0;e<this.renderTargetsVertical.length;e++)this.renderTargetsVertical[e].dispose();this.renderTargetBright.dispose()}},{key:"setSize",value:function(t,e){var n=Math.round(t/2),i=Math.round(e/2);this.renderTargetBright.setSize(n,i);for(var r=0;r<this.nMips;r++)this.renderTargetsHorizontal[r].setSize(n,i),this.renderTargetsVertical[r].setSize(n,i),this.separableBlurMaterials[r].uniforms.texSize.value=new u.Vector2(n,i),n=Math.round(n/2),i=Math.round(i/2)}},{key:"render",value:function(t,e,i,r,o){t.getClearColor(this._oldClearColor),this.oldClearAlpha=t.getClearAlpha();var a=t.autoClear;t.autoClear=!1,t.setClearColor(this.clearColor,0),o&&t.state.buffers.stencil.setTest(!1),this.renderToScreen&&(this.fsQuad.material=this.basic,this.basic.map=i.texture,t.setRenderTarget(null),t.clear(),this.fsQuad.render(t)),this.highPassUniforms.tDiffuse.value=i.texture,this.highPassUniforms.luminosityThreshold.value=this.threshold,this.fsQuad.material=this.materialHighPassFilter,t.setRenderTarget(this.renderTargetBright),t.clear(),this.fsQuad.render(t);for(var s=this.renderTargetBright,l=0;l<this.nMips;l++)this.fsQuad.material=this.separableBlurMaterials[l],this.separableBlurMaterials[l].uniforms.colorTexture.value=s.texture,this.separableBlurMaterials[l].uniforms.direction.value=n.BlurDirectionX,t.setRenderTarget(this.renderTargetsHorizontal[l]),t.clear(),this.fsQuad.render(t),this.separableBlurMaterials[l].uniforms.colorTexture.value=this.renderTargetsHorizontal[l].texture,this.separableBlurMaterials[l].uniforms.direction.value=n.BlurDirectionY,t.setRenderTarget(this.renderTargetsVertical[l]),t.clear(),this.fsQuad.render(t),s=this.renderTargetsVertical[l];this.fsQuad.material=this.compositeMaterial,this.compositeMaterial.uniforms.bloomStrength.value=this.strength,this.compositeMaterial.uniforms.bloomRadius.value=this.radius,this.compositeMaterial.uniforms.bloomTintColors.value=this.bloomTintColors,t.setRenderTarget(this.renderTargetsHorizontal[0]),t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.materialCopy,this.copyUniforms.tDiffuse.value=this.renderTargetsHorizontal[0].texture,o&&t.state.buffers.stencil.setTest(!0),this.renderToScreen?(t.setRenderTarget(null),this.fsQuad.render(t)):(t.setRenderTarget(i),this.fsQuad.render(t)),t.setClearColor(this._oldClearColor,this.oldClearAlpha),t.autoClear=a}},{key:"getSeperableBlurMaterial",value:function(t){return new u.ShaderMaterial({defines:{KERNEL_RADIUS:t,SIGMA:t},uniforms:{colorTexture:{value:null},texSize:{value:new u.Vector2(.5,.5)},direction:{value:new u.Vector2(.5,.5)}},vertexShader:"varying vec2 vUv;\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"#include <common>\n\t\t\t\tvarying vec2 vUv;\n\t\t\t\tuniform sampler2D colorTexture;\n\t\t\t\tuniform vec2 texSize;\n\t\t\t\tuniform vec2 direction;\n\t\t\t\tfloat gaussianPdf(in float x, in float sigma) {\n\t\t\t\t\treturn 0.39894 * exp( -0.5 * x * x/( sigma * sigma))/sigma;\n\t\t\t\t}\n\t\t\t\tvoid main() {\n          vec2 invSize = 1.0 / texSize;          float fSigma = float(SIGMA);          float weightSum = gaussianPdf(0.0, fSigma);          float alphaSum = 0.0;          vec3 diffuseSum = texture2D( colorTexture, vUv).rgb * weightSum;          for( int i = 1; i < KERNEL_RADIUS; i ++ ) {            float x = float(i);            float w = gaussianPdf(x, fSigma);            vec2 uvOffset = direction * invSize * x;            vec4 sample1 = texture2D( colorTexture, vUv + uvOffset);            vec4 sample2 = texture2D( colorTexture, vUv - uvOffset);            diffuseSum += (sample1.rgb + sample2.rgb) * w;            alphaSum += (sample1.a + sample2.a) * w;            weightSum += 2.0 * w;          }          gl_FragColor = vec4(diffuseSum/weightSum, alphaSum/weightSum);\n        }"})}},{key:"getCompositeMaterial",value:function(t){return new u.ShaderMaterial({defines:{NUM_MIPS:t},uniforms:{blurTexture1:{value:null},blurTexture2:{value:null},blurTexture3:{value:null},blurTexture4:{value:null},blurTexture5:{value:null},dirtTexture:{value:null},bloomStrength:{value:1},bloomFactors:{value:null},bloomTintColors:{value:null},bloomRadius:{value:0}},vertexShader:"varying vec2 vUv;\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"varying vec2 vUv;\n\t\t\t\tuniform sampler2D blurTexture1;\n\t\t\t\tuniform sampler2D blurTexture2;\n\t\t\t\tuniform sampler2D blurTexture3;\n\t\t\t\tuniform sampler2D blurTexture4;\n\t\t\t\tuniform sampler2D blurTexture5;\n\t\t\t\tuniform sampler2D dirtTexture;\n\t\t\t\tuniform float bloomStrength;\n\t\t\t\tuniform float bloomRadius;\n\t\t\t\tuniform float bloomFactors[NUM_MIPS];\n\t\t\t\tuniform vec3 bloomTintColors[NUM_MIPS];\n\t\t\t\tfloat lerpBloomFactor(const in float factor) {\n\t\t\t\t\tfloat mirrorFactor = 1.2 - factor;\n\t\t\t\t\treturn mix(factor, mirrorFactor, bloomRadius);\n\t\t\t\t}\n\t\t\t\tvoid main() {\n\t\t\t\t\tgl_FragColor = bloomStrength * ( lerpBloomFactor(bloomFactors[0]) * vec4(bloomTintColors[0], 1.0) * texture2D(blurTexture1, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[1]) * vec4(bloomTintColors[1], 1.0) * texture2D(blurTexture2, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[2]) * vec4(bloomTintColors[2], 1.0) * texture2D(blurTexture3, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[3]) * vec4(bloomTintColors[3], 1.0) * texture2D(blurTexture4, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[4]) * vec4(bloomTintColors[4], 1.0) * texture2D(blurTexture5, vUv) );\n\t\t\t\t}"})}}]),n}(wt.Pass);Ct.BlurDirectionX=void 0,Ct.BlurDirectionY=void 0,Ct.BlurDirectionX=new u.Vector2(1,0),Ct.BlurDirectionY=new u.Vector2(0,1);var At=new u.MeshBasicMaterial({color:"black"}),It=new u.SpriteMaterial({color:"#000"}),St=function(){function t(e,n){(0,a.Z)(this,t),this.composerController=void 0,this.bloomComposer=void 0,this.bloomPass=void 0,this.finalPass=void 0,this.options=void 0,this.materials={},this.bloomLayer=new u.Layers,this.active=!0,this.composerController=e,this.options=n;var i=e.renderer,r=e.renderPass,o=e.finalComposer,s=e.getSize(),l=s.width,c=s.height,h=new Ct(new u.Vector2(l,c),n.strength,n.radius,n.threshold);this.bloomPass=h;var d=new tt.EffectComposer(i);d.renderToScreen=!1,d.addPass(r),d.addPass(this.bloomPass),this.bloomComposer=d,this.bloomLayer.set(1);var p=new u.ShaderMaterial({uniforms:{baseTexture:{value:null},bloomTexture:{value:d.renderTarget2.texture}},vertexShader:vt,fragmentShader:yt,defines:{}}),f=new nt.ShaderPass(p,"baseTexture");f.needsSwap=!0,this.finalPass=f,o.addPass(f)}return(0,s.Z)(t,[{key:"enable",value:function(){this.active||(this.finalPass.enabled=!0,this.bloomPass.enabled=!0,this.active=!0)}},{key:"disable",value:function(){this.active&&(this.finalPass.enabled=!1,this.bloomPass.enabled=!1,this.active=!1)}},{key:"render",value:function(t){if(this.active){var e=this.bloomComposer,n=this.bloomLayer,i=this.materials;t.traverse((function(t){var e=t;e.material&&!1===n.test(e.layers)&&(i[e.uuid]=e.material,e.material=e.isSprite?It:At)})),e.render(),t.traverse((function(t){var e=t;i[e.uuid]&&(e.material=i[e.uuid],delete i[e.uuid])}))}}},{key:"setSize",value:function(t,e){this.bloomComposer.setSize(t,e)}},{key:"setGui",value:function(t){var e=this,n=new m.Z;n.guiParams={bloom:{threshold:{value:this.options.threshold,min:0,max:1,target:function(){return e.bloomPass}},strength:{value:this.options.strength,min:0,max:10,target:function(){return e.bloomPass}},radius:{value:this.options.radius,min:0,max:2,step:.01,target:function(){return e.bloomPass}}}},n.showGuiParams(t)}},{key:"dispose",value:function(){this.bloomPass.dispose(),this.materials={}}}]),t}(),Mt=n("4e15"),kt=function(){function t(e,n){(0,a.Z)(this,t),this.composerController=void 0,this.outlinePass=void 0,this.options=void 0,this.selectedObjects=[],this.active=!0,this.outlineGui=void 0,this.composerController=e,this.options=n;var i=e.scene,r=e.camera,o=e.finalComposer,s=e.getSize(),l=s.width,c=s.height,h=new Mt.OutlinePass(new u.Vector2(l,c),i,r);h.selectedObjects=this.selectedObjects,this.outlinePass=h,o.addPass(h),this.setGui()}return(0,s.Z)(t,[{key:"enable",value:function(){this.active||(this.outlinePass.enabled=!0,this.active=!0)}},{key:"disable",value:function(){this.active&&(this.outlinePass.enabled=!1,this.active=!1)}},{key:"setGui",value:function(){var t=this,e=new m.Z;e.guiParams={outline:{edgeStrength:{value:this.options.edgeStrength,min:.01,max:10,step:.01,target:function(){return t.outlinePass}},edgeGlow:{value:this.options.edgeGlow,min:0,max:10,step:.01,target:function(){return t.outlinePass}},edgeThickness:{value:this.options.edgeThickness,min:0,max:4,step:.01,target:function(){return t.outlinePass}},pulsePeriod:{value:this.options.pulsePeriod,min:0,max:4,step:.01,target:function(){return t.outlinePass}},usePatternTexture:{value:this.options.usePatternTexture,target:function(){return t.outlinePass}},visibleEdgeColor:{value:this.options.visibleEdgeColor,target:function(){return t.outlinePass}},hiddenEdgeColor:{value:this.options.hiddenEdgeColor,target:function(){return t.outlinePass}}}},e.setGuiTargetValueByParams(),this.outlineGui=e}},{key:"dispose",value:function(){this.outlinePass.dispose(),this.selectedObjects=[]}}]),t}(),Et=r(4925),Tt=n("e7ec"),Ot=n("f149"),Pt=["width","height"],jt={width:1,height:1,clipBias:3e-4,color:8947848,useDepthTexture:!0},Lt=function(){function t(e,n){(0,a.Z)(this,t),this.composerController=void 0,this.ssrPass=void 0,this.options=void 0,this.selectedObjects=[],this.groundReflector=void 0,this.ssrGui=void 0,this.active=!0,this.composerController=e,this.options=n;var i=e.scene,r=e.camera,o=e.renderer,s=e.finalComposer,l=e.getSize(),c=l.width,u=l.height,h=new Tt.SSRPass({renderer:o,scene:i,camera:r,width:c,height:u,groundReflector:null,selects:this.selectedObjects});this.ssrPass=h,s.addPass(h),this.setGui()}return(0,s.Z)(t,[{key:"addGroundReflector",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,i.Z)((0,i.Z)({},jt),t),n=e.width,r=e.height,o=(0,Et.Z)(e,Pt),a=this.composerController,s=a.scene,l=a.getSize(),c=new u.PlaneGeometry(n,r),h=new Ot.ReflectorForSSRPass(c,(0,i.Z)((0,i.Z)({},o),{},{textureWidth:l.width,textureHeight:l.height}));h.material.depthWrite=!1,h.rotation.x=-Math.PI/2,h.visible=!1,s.add(h),this.ssrPass.groundReflector=this.groundReflector,this.groundReflector=h}},{key:"removeaGroundReflector",value:function(){this.ssrPass.groundReflector=null,this.groundReflector=void 0}},{key:"enable",value:function(){this.active||(this.ssrPass.enabled=!0,this.active=!0)}},{key:"disable",value:function(){this.active&&(this.ssrPass.enabled=!1,this.active=!1)}},{key:"setSize",value:function(t,e){var n=this.groundReflector;n&&(n.getRenderTarget().setSize(t,e),n.resolution.set(t,e))}},{key:"setGui",value:function(){var t=this,e=new m.Z;e.guiParams={ssr:{thickness:{value:.018,min:0,max:.1,step:1e-4,target:function(){return t.ssrPass}},infiniteThick:{value:!1,target:function(){return t.ssrPass}},fresnel:{value:!0,target:function(){return[t.ssrPass,t.groundReflector]}},distanceAttenuation:{value:!0,target:function(){return[t.ssrPass,t.groundReflector]}},selects:{value:this.options.selects,onChange:function(e){t.ssrPass.selects=e?t.selectedObjects:null}},maxDistance:{value:this.options.maxDistance,min:0,max:100,step:.001,target:function(){return[t.ssrPass,t.groundReflector]}},opacity:{value:1,min:0,max:1,step:.01,target:function(){return[t.ssrPass,t.groundReflector]}}}},e.setGuiTargetValueByParams(),this.ssrGui=e}},{key:"dispose",value:function(){this.ssrPass.dispose(),this.selectedObjects=[]}}]),t}(),Dt=function(){function t(e){(0,a.Z)(this,t),this.renderer=void 0,this.scene=void 0,this.camera=void 0,this.finalComposer=void 0,this.renderPass=void 0,this.copyPass=void 0,this.gammaCorrectionPass=void 0,this.smaaPass=void 0,this.fxaaPass=void 0,this.ssaaPass=void 0,this.bloomController=void 0,this.outlineController=void 0,this.ssrController=void 0,this.renderTarget=void 0,this.options=void 0,this.active=!0,this.options=e;var n=e.renderer,i=e.scene,r=e.camera,o=this.createRenderTarget(),s=new tt.EffectComposer(n,o);s.setPixelRatio(n.getPixelRatio()),this.finalComposer=s,this.addRenderPasss(),this.renderer=n,this.scene=i,this.renderTarget=o,this.camera=r}return(0,s.Z)(t,[{key:"createRenderTarget",value:function(){var t,e=this.options.composerParams,n=e.multisampling,r=e.type,o=e.encoding,a=this.getSize(),s={minFilter:u.LinearFilter,magFilter:u.LinearFilter,format:u.RGBAFormat,encoding:o,type:r};if(+u.REVISION<138&&n>0){var l=new u.WebGLMultisampleRenderTarget(a.width,a.height,s);l.samples=n,t=l}else t=+u.REVISION>=138&&n>0?new u.WebGLRenderTarget(a.width,a.height,(0,i.Z)((0,i.Z)({},s),{},{samples:n})):new u.WebGLRenderTarget(a.width,a.height,s);return t.texture.name="EffectComposer.rt1",t}},{key:"addRenderPasss",value:function(){var t=this.options,e=t.scene,n=t.camera,i=new et.RenderPass(e,n);this.finalComposer.addPass(i),this.renderPass=i}},{key:"addCopyPass",value:function(){var t=new nt.ShaderPass(it.CopyShader);this.finalComposer.addPass(t),this.copyPass=t}},{key:"addGammaCorrectionPass",value:function(){var t=new nt.ShaderPass(rt.GammaCorrectionShader);this.finalComposer.addPass(t),this.gammaCorrectionPass=t}},{key:"addFXAAPass",value:function(){var t=this.getSize(),e=t.width,n=t.height,i=new nt.ShaderPass(st.FXAAShader);this.finalComposer.addPass(i),this.fxaaPass=i,this.setFXAAPassSize(e,n)}},{key:"addSMAAPass",value:function(){var t=this.getSize(),e=t.width,n=t.height,i=this.options.renderer,r=new ot.SMAAPass(e*i.getPixelRatio(),n*i.getPixelRatio());this.finalComposer.addPass(r),this.smaaPass=r}},{key:"addSSAAPass",value:function(){var t=this.options,e=t.scene,n=t.camera,i=new at.SSAARenderPass(e,n,0,0);i.unbiased=!0,i.sampleLevel=1,this.finalComposer.addPass(i),this.ssaaPass=i}},{key:"addBloomPass",value:function(t){var e=new St(this,t);e.disable(),this.options.gui&&e.setGui(this.options.gui),this.bloomController=e}},{key:"addOutlinePass",value:function(t){var e=new kt(this,t);e.disable(),this.options.gui&&e.outlineGui.showGuiParams(this.options.gui),this.outlineController=e}},{key:"addSSRPass",value:function(t){var e=new Lt(this,t);e.disable(),this.options.gui&&e.ssrGui.showGuiParams(this.options.gui),this.ssrController=e}},{key:"getSize",value:function(){return this.options.renderer.getSize(new u.Vector2)}},{key:"enable",value:function(){this.active||(this.active=!0)}},{key:"disable",value:function(){this.active&&(this.active=!1)}},{key:"checkCopyPass",value:function(){var t=this,e=this.finalComposer.passes.some((function(e){return e!==t.renderPass&&e!==t.copyPass&&e.enabled}));e&&this.copyPass?this.copyPass.enabled=!1:!e&&this.copyPass?this.copyPass.enabled=!0:e||this.copyPass||this.addCopyPass()}},{key:"setSize",value:function(t,e){var n,i;this.finalComposer.setSize(t,e),null===(n=this.bloomController)||void 0===n||n.setSize(t,e),null===(i=this.ssrController)||void 0===i||i.setSize(t,e),this.setFXAAPassSize(t,e)}},{key:"setFXAAPassSize",value:function(t,e){if(this.fxaaPass){var n=this.options.renderer.getPixelRatio();this.fxaaPass.material.uniforms.resolution.value.x=1/(t*n),this.fxaaPass.material.uniforms.resolution.value.y=1/(e*n)}}},{key:"render",value:function(){var t;if(this.active){var e=this.options.scene;null===(t=this.bloomController)||void 0===t||t.render(e),this.finalComposer.render()}}},{key:"dispose",value:function(){var t,e,n,i,r;null===(t=this.bloomController)||void 0===t||t.dispose(),null===(e=this.outlineController)||void 0===e||e.dispose(),null===(n=this.ssrController)||void 0===n||n.dispose(),null===(i=this.finalComposer)||void 0===i||i.passes.forEach((function(t){var e,n,i;null===(e=t.fsQuad)||void 0===e||e.dispose(),null===(n=t.fsQuad)||void 0===n||null===(i=n.material)||void 0===i||i.dispose()})),null===(r=this.renderTarget)||void 0===r||r.dispose(),this.renderer=void 0,this.scene=void 0,this.camera=void 0,this.finalComposer=void 0,this.renderTarget=void 0,this.renderPass=void 0,this.copyPass=void 0,this.gammaCorrectionPass=void 0,this.smaaPass=void 0,this.ssaaPass=void 0,this.fxaaPass=void 0,this.bloomController=void 0,this.outlineController=void 0,this.ssrController=void 0}}]),t}(),Rt=function(){function t(){(0,a.Z)(this,t),this.cache=new Map}return(0,s.Z)(t,[{key:"init",value:function(t){var e=(0,w.makePromiseCreator)();this.cache.set(t,e)}},{key:"get",value:function(t){var e;return null===(e=this.cache.get(t))||void 0===e?void 0:e.promise}},{key:"set",value:function(t,e){var n=this.cache.get(t);n?n.resolve(e):console.warn("init cache first")}},{key:"dispose",value:function(){this.cache.forEach((function(t,e){t.reject("stop set cache:".concat(e))})),this.cache.clear()}}]),t}(),Bt=r(5861),Nt=r(7757),Ft=r.n(Nt),zt=r(1752),Vt=r(1120);const Gt=new class{constructor(t,e,n){const i=this;let r,o=!1,a=0,s=0;const l=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){s++,!1===o&&void 0!==i.onStart&&i.onStart(t,a,s),o=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,s),a===s&&(o=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)},this.resolveURL=function(t){return r?r(t):t},this.setURLModifier=function(t){return r=t,this},this.addHandler=function(t,e){return l.push(t,e),this},this.removeHandler=function(t){const e=l.indexOf(t);return-1!==e&&l.splice(e,2),this},this.getHandler=function(t){for(let e=0,n=l.length;e<n;e+=2){const n=l[e],i=l[e+1];if(n.global&&(n.lastIndex=0),n.test(t))return i}return null}}};class Ht{constructor(t){this.manager=void 0!==t?t:Gt,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,e){const n=this;return new Promise((function(i,r){n.load(t,i,e,r)}))}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}}const Wt={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};var Ut={},Zt=function(t){(0,bt.Z)(n,t);var e=(0,xt.Z)(n);function n(){var t;(0,a.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))).responseType=void 0,t.mimeType=void 0,t}return(0,s.Z)(n,[{key:"load",value:function(t,e,n,i){var r=this;void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var o=Wt.get(t);if(void 0!==o)return this.manager.itemStart(t),setTimeout((function(){e&&e(o),r.manager.itemEnd(t)}),0),o;if(void 0===Ut[t]){Ut[t]=[],Ut[t].push({onLoad:e,onProgress:n,onError:i});var a={headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"};fetch(t,a).then((function(e){if(200===e.status||0===e.status){if(0===e.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"===typeof ReadableStream||void 0===e.body.getReader)return e;var n=Ut[t],i=e.body.getReader(),r=e.headers.get("Content-Length"),o=r?parseInt(r,10):0,a=0!==o,s=0,l=new ReadableStream({start:function(t){!function e(){i.read().then((function(i){var r=i.done,l=i.value;if(r)t.close();else{s+=l.byteLength;for(var c=new ProgressEvent("progress",{lengthComputable:a,loaded:s,total:o}),u=0,h=n.length;u<h;u++){var d=n[u];d.onProgress&&d.onProgress(c)}t.enqueue(l),e()}}))}()}});return new Response(l)}throw Error('fetch for "'.concat(e.url,'" responded with ').concat(e.status,": ").concat(e.statusText))})).then((function(t){switch(r.responseType){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"document":return t.text().then((function(t){return(new DOMParser).parseFromString(t,r.mimeType)}));case"json":return t.json();default:return t.text()}})).then((function(e){Wt.add(t,e);var n=Ut[t];delete Ut[t];for(var i=0,r=n.length;i<r;i++){var o=n[i];o.onLoad&&o.onLoad(e)}})).catch((function(e){var n=Ut[t];if(void 0===n)throw r.manager.itemError(t),e;delete Ut[t];for(var i=0,o=n.length;i<o;i++){var a=n[i];a.onError&&a.onError(e)}r.manager.itemError(t)})).finally((function(){r.manager.itemEnd(t)})),this.manager.itemStart(t)}else Ut[t].push({onLoad:e,onProgress:n,onError:i})}},{key:"setResponseType",value:function(t){return this.responseType=t,this}},{key:"setMimeType",value:function(t){return this.mimeType=t,this}}]),n}(Ht),Yt=function(t){(0,bt.Z)(i,t);var n=(0,xt.Z)(i);function i(){var t;return(0,a.Z)(this,i),(t=n.call(this)).fileLoader=void 0,u.Cache.enabled=!0,t.fileLoader=new Zt,t.fileLoader.setResponseType("blob"),t}return(0,s.Z)(i,[{key:"loadAsync",value:function(t,n){var r=this,o=[["svg","image/svg+xml"]];return new Promise((function(a,s){u.Cache.get(t)?(0,zt.Z)((0,Vt.Z)(i.prototype),"load",r).call(r,t,a,(function(){}),s):r.fileLoader.load(t,(function(n){var l,c=t.match(/\.([\w\d]+)$/)||[],h=e(o);try{for(h.s();!(l=h.n()).done;){var d=l.value;if(c[1]===d[0]){n=new Blob([n],{type:d[1]});break}}}catch(v){h.e(v)}finally{h.f()}var p=URL.createObjectURL(n),f=document.createElementNS("http://www.w3.org/1999/xhtml","img"),g=function(t){s(t)};f.addEventListener("error",g,!1),f.addEventListener("load",(function e(){u.Cache.add(t,f),URL.revokeObjectURL(p),f.removeEventListener("error",g,!1),f.removeEventListener("load",e,!1),document.body.removeChild(f),(0,zt.Z)((0,Vt.Z)(i.prototype),"load",r).call(r,t,a,(function(){}),s)}),!1),f.src=p,f.style.visibility="hidden",document.body.appendChild(f)}),n,s)}))}}]),i}(u.TextureLoader),Xt=r(5456),qt=n("0ca5"),Kt=new qt.DRACOLoader;Kt.setDecoderPath("/draco/");var Qt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(i,r){var o=new Xt.GLTFLoader;n&&(Kt||(Kt=new qt.DRACOLoader).setDecoderPath("/draco/"),Kt.preload(),o.setDRACOLoader(Kt)),o.load(t,(function(t){t.scene.userData.gltf=t,i(t.scene)}),(function(t){e&&e(t)}),(function(t){return r(t)}))}))},Jt=function(){function t(e){(0,a.Z)(this,t),this.assetMap=void 0,this.loadingMap=void 0,this.loadingQueue=[],this.totalSize=0,this.pencil=void 0,this.loadPromise=void 0,this.assetMap=new Map,this.loadingMap=new Map,u.Cache.enabled=!0,this.pencil=e,this.loadPromise=(0,w.makePromiseCreator)()}return(0,s.Z)(t,[{key:"setDecoderPath",value:function(t){(Kt=new qt.DRACOLoader).setDecoderPath(t),Kt.preload()}},{key:"register",value:function(){var t;(t=this.loadingQueue).push.apply(t,arguments)}},{key:"load",value:function(){var t=(0,Bt.Z)(Ft().mark((function t(){var e,n=this;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.loadingQueue.length){t.next=2;break}return t.abrupt("return");case 2:return e=this.loadingQueue.map(function(){var t=(0,Bt.Z)(Ft().mark((function t(e){var i,r,o,a,s,l,c,h,d,p,f,g,m,v,y,b;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.name,r=e.url,o=e.loader,a=e.cache,s=e.version,l=e.type,c=e.draco,h=(0,w.makePromiseCreator)(),d=h.promise,p=h.resolve,n.assetMap.set(i,d),n.loadingMap.set(i,{loaded:0,total:void 0}),!a){t.next=10;break}return t.next=7,(0,w.getCache)(r,{version:null!==s&&void 0!==s?s:"0.0.1"});case 7:f=t.sent,g=f.url,r=g;case 10:if("gltf"!==o){t.next=17;break}return t.next=13,Qt(r,(function(t){n.onProgress(i,t)}),c);case 13:m=t.sent,p(m),t.next=36;break;case 17:if("texture"!==o){t.next=24;break}return t.next=20,(new Yt).loadAsync(r,(function(t){n.onProgress(i,t)}));case 20:v=t.sent,p(v),t.next=36;break;case 24:if("texture2"!==o){t.next=31;break}return t.next=27,(new u.TextureLoader).loadAsync(r);case 27:y=t.sent,p(y),t.next=36;break;case 31:if("file"!==o){t.next=36;break}return t.next=34,(new Zt).setResponseType(l||"text").loadAsync(r,(function(t){n.onProgress(i,t)}));case 34:b=t.sent,p(b);case 36:a&&URL.revokeObjectURL(r);case 37:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.abrupt("return",Promise.all(e).then((function(){n.loadPromise.resolve()})));case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"onProgress",value:function(t,e){var n=this.loadingMap.get(t);"undefined"===typeof n.total&&(n.total=e.total||e.loaded),n.loaded=e.loaded;var i=Array.from(this.loadingMap.values()).filter((function(t){return"undefined"!==typeof t.total}));if(i.length===this.loadingQueue.length){this.totalSize||(this.totalSize=i.reduce((function(t,e){return t+e.total}),0));var r=i.reduce((function(t,e){return t+e.loaded}),0);this.pencil.event.emit("loading",parseInt((r/this.totalSize*100).toFixed(2),10))}}},{key:"get",value:function(){var t=(0,Bt.Z)(Ft().mark((function t(e){return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadPromise.promise;case 2:return t.abrupt("return",this.assetMap.get(e));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"clear",value:function(){this.assetMap.clear(),this.loadingMap.clear(),this.loadingQueue.length=0,this.totalSize=0}},{key:"dispose",value:function(){this.clear(),this.pencil=void 0,Kt&&(Kt.dispose(),Kt=void 0)}}]),t}(),$t=r(4942),te=n("1775"),ee=n("9771"),ne=n("e171"),ie=n("9d5e"),re=n("4203"),oe=r(7874),ae=r.n(oe),se=r(1270);function le(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/png",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=(0,se.Z)(),r=i.promise,o=i.resolve,a=document.createElement("canvas");return a.width=t.width,a.height=t.height,a.getContext("2d").drawImage(t,0,0),a.toBlob(o,e,n),r}var ce=r(1988),ue={};ue.styleTagTransform=z(),ue.setAttributes=R(),ue.insert=L().bind(null,"head"),ue.domAPI=P(),ue.insertStyleElement=N(),T()(ce.Z,ue);var he=ce.Z&&ce.Z.locals?ce.Z.locals:void 0,de=function(){function t(e){if((0,a.Z)(this,t),this.pane=void 0,this.parentMap=new Map,this.itemMap=new Map,this.textureMap=new Map,this.container=void 0,this.staticPath="/",this.amcp=this.addMaterialColorPicker.bind(this),this.acp=this.addColorPicker.bind(this),this.anp=this.addNumberPicker.bind(this),this.abp=this.addBooleanPicker.bind(this),this.app=this.addPointPicker.bind(this),this.amgp=this.addMaterialPickerGroup.bind(this),this.algp=this.addLightPickerGroup.bind(this),this.asp=this.addSelectPicker.bind(this),this.atpg=this.addTexturePickerGroup.bind(this),!e.container){var n=document.createElement("div");n.className=he["pencil-gui-container"],document.body.appendChild(n),e.container=n}this.container=e.container,this.pane=new te.Pane(e),this.staticPath=e.staticPath||this.staticPath,this.pane.registerPlugin(ne),this.pane.registerPlugin(ie),this.pane.registerPlugin(re),ee.supported?console.log("Using the File System Access API."):console.log("Using the fallback implementation."),this.initPostMessage()}return(0,s.Z)(t,[{key:"addMaterialColorPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=(0,$t.Z)({},o||"color","#".concat(r.color.getHexString())),l=n.addInput(s,o||"color",{presetKey:i,picker:"inline",label:a});return l.on("change",(function(t){r[o||"color"]=new u.Color(t.value)})),this.addInputAfter(l,t,r,i),l}},{key:"addColorPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=(0,$t.Z)({},o||"color","#".concat(r.getHexString())),l=n.addInput(s,o||"color",{presetKey:i,picker:"inline",label:a});return l.on("change",(function(t){r.set(t.value)})),this.itemMap.set(i,l),l}},{key:"addNumberPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=n.addInput(r,o,{presetKey:i,min:t.min||0,max:t.max||1,step:t.step||.1,label:a});return this.addInputAfter(s,t,r,i),s}},{key:"addBooleanPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=n.addInput(r,o,{presetKey:i,view:"checkbox",label:a});return this.addInputAfter(s,t,r,i),s}},{key:"addSelectPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=e.options,l=n.addInput(r,o,{presetKey:i,options:s,label:a});return this.addInputAfter(l,t,r,i),l}},{key:"addPointPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,r=e.presetKey,o=e.value,a=e.label,s=e.key,l=(0,$t.Z)({},s,o),c=n.addInput(l,s,(0,i.Z)({presetKey:r,label:a},t.range));return this.addInputAfter(c,t,o,r),c}},{key:"addRotationPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.key,o=e.value,a=e.label,s=t.rotationMode,l=void 0===s?"euler":s,c=(0,$t.Z)({},r,"euler"===l?{x:o.rotation.x,y:o.rotation.y,z:o.rotation.z}:{x:o.quaternion.x,y:o.quaternion.y,z:o.quaternion.z,w:o.quaternion.w}),u=n.addInput(c,r,{view:"rotation",rotationMode:l,order:"XYZ",units:"deg",presetKey:i,label:a});return u.on("change",(function(t){var e=t.value;"euler"===l?o.rotation.set(e.x,e.y,e.z):o.quaternion.set(e.x,e.y,e.z,e.w)})),this.addInputAfter(u,t,o,i),u}},{key:"addFolder",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e?e.addFolder({title:t,expanded:n}):this.pane.addFolder({title:t,expanded:n});return e&&(i.parent=e),this.parentMap.set(this.getName(i),i),i}},{key:"addMaterialPickerGroup",value:function(t){var e=this.getItemInfo(t),n=e.parent,r=e.name,o=e.value,a=this.addFolder(r,n);a.addBlade({view:"text",label:"type",parse:function(t){return String(t)},value:o.type});var s={value:o,group:a};return this.amcp((0,i.Z)((0,i.Z)({name:"color"},s),{},{key:"color"})),this.addNumberPicker((0,i.Z)({name:"opacity"},s)),this.addBooleanPicker((0,i.Z)({name:"transparent"},s)),this.addNumberPicker((0,i.Z)({name:"alphaTest"},s)),this.addBooleanPicker((0,i.Z)({name:"depthTest"},s)),this.addBooleanPicker((0,i.Z)({name:"depthWrite"},s)),this.addBooleanPicker((0,i.Z)({name:"visible"},s)),o instanceof u.MeshStandardMaterial&&(this.addBooleanPicker((0,i.Z)({name:"flatShading"},s)),this.addTexturePickerGroup((0,i.Z)((0,i.Z)({name:"envMap"},s),{},{value:o,key:"envMap"})),this.addNumberPicker((0,i.Z)((0,i.Z)({name:"envMapIntensity"},s),{},{min:0,max:1,step:.01}))),this.addSelectPicker((0,i.Z)((0,i.Z)({name:"side"},s),{},{options:gt})),this.addSelectPicker((0,i.Z)((0,i.Z)({name:"blending"},s),{},{options:mt})),this.addTexturePickerGroup((0,i.Z)((0,i.Z)({name:"map"},s),{},{key:"map"})),this.addTexturePickerGroup((0,i.Z)((0,i.Z)({name:"alphaMap"},s),{},{key:"alphaMap"})),"undefined"!==typeof o.normalMap&&(this.addTexturePickerGroup((0,i.Z)((0,i.Z)({name:"normalMap"},s),{},{value:o,key:"normalMap"})),this.app((0,i.Z)((0,i.Z)({name:"normalScale"},s),{},{value:o.normalScale})),this.addSelectPicker((0,i.Z)((0,i.Z)({name:"normalMapType"},s),{},{options:[{text:"Tangent",value:u.TangentSpaceNormalMap},{text:"Object",value:u.ObjectSpaceNormalMap}]}))),"number"===typeof o.roughness&&(this.addTexturePickerGroup((0,i.Z)((0,i.Z)({name:"roughnessMap"},s),{},{value:o,key:"roughnessMap"})),this.addNumberPicker((0,i.Z)((0,i.Z)({name:"roughness"},s),{},{min:0,max:1}))),"number"===typeof o.metalness&&(this.addTexturePickerGroup((0,i.Z)((0,i.Z)({name:"metalnessMap"},s),{},{value:o,key:"metalnessMap"})),this.addNumberPicker((0,i.Z)((0,i.Z)({name:"metalness"},s),{},{min:0,max:1}))),"number"===typeof o.emissiveIntensity&&(this.amcp((0,i.Z)((0,i.Z)({name:"emissive"},s),{},{key:"emissive"})),this.addTexturePickerGroup((0,i.Z)((0,i.Z)({name:"emissiveMap"},s),{},{value:o,key:"emissiveMap"})),this.addNumberPicker((0,i.Z)((0,i.Z)({name:"emissiveIntensity"},s),{},{max:15}))),a}},{key:"addLightPickerGroup",value:function(t){var e=this.getItemInfo(t),n=e.parent,r=e.name,o=e.value,a=this.addFolder(r,n);a.addBlade({view:"text",label:"type",parse:function(t){return String(t)},value:o.type});var s={value:o,group:a};return this.addColorPicker({name:"color",value:o.color,group:a}),this.addNumberPicker((0,i.Z)((0,i.Z)({name:"intensity"},s),{},{max:4})),this.addBooleanPicker((0,i.Z)({name:"castShadow"},s)),o instanceof u.DirectionalLight&&this.app({name:"target",value:o.position,group:a}),a}},{key:"addTexturePickerGroup",value:function(t){var e,n=this,i=this.getItemInfo(t),r=i.parent,o=i.presetKey,a=i.name,s=i.value,l=i.key,c=this.addFolder(a,r),h={url:s[l]?null===(e=s[l].image)||void 0===e?void 0:e.src:"placeholder"},d=c.addInput(h,"url",{view:"input-image",imageFit:"contain",extensions:[".png",".jpg",".jpeg",".webp"],presetKey:o}),p=this.addTextureParamsPickerGroup({name:"params",group:c,value:s[l]});return c.addButton({title:"删除贴图"}).on("click",(function(){s[l]&&(s[l].dispose(),s[l]=null,s.needsUpdate=!0,h.url="",p&&(p instanceof te.FolderApi?n.disposeGroup(p):p.dispose(),p=n.addTextureParamsPickerGroup({name:"params",group:c,value:s[l]})))})),d.on("change",function(){var t=(0,Bt.Z)(Ft().mark((function t(e){var i,r,a;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!((i=e.value)instanceof HTMLImageElement)){t.next=11;break}return t.next=4,le(i);case 4:a=t.sent,n.textureMap.set(o,a),(r=new u.Texture).image=i,r.needsUpdate=!0,t.next=15;break;case 11:if(!i){t.next=15;break}return t.next=14,(new u.TextureLoader).loadAsync(i);case 14:r=t.sent;case 15:r&&(s[l]=r,s.needsUpdate=!0,p&&(p instanceof te.FolderApi?n.disposeGroup(p):p.dispose(),p=n.addTextureParamsPickerGroup({name:"params",group:c,value:r})));case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.addInputAfter(d,t,s,o),d}},{key:"addTextureParamsPickerGroup",value:function(t){var e=this.getItemInfo(t),n=e.parent,r=e.name,o=e.value;if(!t.value)return n.addBlade({view:"text",label:r,parse:function(t){return String(t)},value:"无"});var a=this.addFolder(r,n),s={value:o,group:a};return this.asp((0,i.Z)((0,i.Z)({name:"mapping"},s),{},{options:ut,needsUpdate:!0})),this.asp((0,i.Z)((0,i.Z)({name:"wrapS"},s),{},{options:ht,needsUpdate:!0})),this.asp((0,i.Z)((0,i.Z)({name:"wrapT"},s),{},{options:ht,needsUpdate:!0})),this.asp((0,i.Z)((0,i.Z)({name:"magFilter"},s),{},{options:dt,needsUpdate:!0})),this.asp((0,i.Z)((0,i.Z)({name:"minFilter"},s),{},{options:pt,needsUpdate:!0})),this.app((0,i.Z)((0,i.Z)({name:"offset"},s),{},{value:o.offset})),this.app((0,i.Z)((0,i.Z)({name:"repeat"},s),{},{value:o.repeat})),this.app((0,i.Z)((0,i.Z)({name:"center"},s),{},{value:o.center})),this.addNumberPicker((0,i.Z)((0,i.Z)({name:"rotation"},s),{},{min:0,max:2*Math.PI})),this.addBooleanPicker((0,i.Z)((0,i.Z)({name:"flipY"},s),{},{needsUpdate:!0})),this.asp((0,i.Z)((0,i.Z)({name:"encoding"},s),{},{options:ft,needsUpdate:!0})),a}},{key:"addUniformsPickerGroup",value:function(t){var e=this,n=this.getItemInfo(t),r=n.parent,o=n.name,a=n.value,s=this.addFolder(o,r),l={value:a,group:s};return Object.keys(a).forEach((function(t){var n=a[t];n.value instanceof u.Texture?e.addTextureParamsPickerGroup((0,i.Z)((0,i.Z)({name:t},l),{},{value:n.value})):n.value instanceof u.Color?e.addColorPicker((0,i.Z)((0,i.Z)({name:t},l),{},{value:n.value})):n.value instanceof u.Vector2||n.value instanceof u.Vector3||n.value instanceof u.Vector4?e.addPointPicker((0,i.Z)((0,i.Z)({name:t},l),{},{value:n.value})):"number"===typeof n.value&&e.addNumberPicker((0,i.Z)((0,i.Z)({name:t},l),{},{value:n,key:"value",min:n.min,max:n.max}))})),s}},{key:"addObjectPickerGroup",value:function(t){var e=this.getItemInfo(t),n=e.parent,r=e.name,o=e.value,a={value:o,group:this.addFolder(r,n)};this.addBooleanPicker((0,i.Z)({name:"visible"},a)),this.addBooleanPicker((0,i.Z)({name:"castShadow"},a)),this.addBooleanPicker((0,i.Z)({name:"receiveShadow"},a)),this.addPointPicker((0,i.Z)((0,i.Z)({name:"position"},a),{},{value:o.position})),this.addRotationPicker((0,i.Z)((0,i.Z)({name:"rotation"},a),{},{value:o,rotationMode:"euler"})),this.addPointPicker((0,i.Z)((0,i.Z)({name:"scale"},a),{},{value:o.scale}))}},{key:"findFolder",value:function(t){return this.folders.get(t)}},{key:"folders",get:function(){var t=this,e=new Map;return this.pane.children.filter((function(t){return t instanceof te.FolderApi})).forEach((function(n){e.set(t.getName(n),n),n.children.length&&t.getFolderChildren(n,e)})),e}},{key:"getFolderChildren",value:function(t,e){var n=this;t.children.filter((function(t){return t instanceof te.FolderApi})).forEach((function(t){e.set(n.getName(t),t),t.children.length&&n.getFolderChildren(t,e)}))}},{key:"addInputAfter",value:function(t,e,n,i){t.on("change",(function(t){var i=t.value;e.needsUpdate&&(n.needsUpdate=!0),e.onChange&&e.onChange(i)})),this.itemMap.set(i,t)}},{key:"getItemInfo",value:function(t){var e=t.name,n=t.group,r=t.label,o=t.key,a=this.getParent(n),s=this.getName(a,e);return(0,i.Z)((0,i.Z)({},t),{},{parent:a,presetKey:s,label:r||e,key:o||e})}},{key:"getParent",value:function(t){if(!t)return this.pane;if("string"===typeof t){if(this.parentMap.has(t))return this.parentMap.get(t);var e=this.pane.addFolder({title:t});return this.parentMap.set(this.getName(e),e),e}if(Array.isArray(t)){var n=this.folders.get(t.join("-"));return n||this.pane}return t}},{key:"getName",value:function(t,e){return t.parent?e?this.getName(t.parent,"".concat(t.title,"-").concat(e)):this.getName(t.parent,t.title):e?t.title?"".concat(t.title,"-").concat(e):e:t.title||""}},{key:"addExportButton",value:function(){var t=this,e=this.pane.addButton({title:"导出配置"}),n=this.staticPath;e.on("click",(function(){var e=new(ae()),i=e.folder("textures"),r=t.pane.exportPreset();t.textureMap.forEach((function(t,e){r[e]="".concat(n,"textures/").concat(e,".png"),i.file("".concat(e,".png"),t,{binary:!0})})),e.file("preset.json",JSON.stringify(r)),e.generateAsync({type:"blob"}).then((function(t){var e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download="preset.zip",n.click()}))}))}},{key:"addSaveButton",value:function(){var t=this;this.pane.addButton({title:"保存配置"}).on("click",(function(){var e=t.pane.exportPreset();window.parent.postMessage({type:"savePreset",data:e},"*")}))}},{key:"initPostMessage",value:function(){var t=this;window.addEventListener("message",(function(e){"setPreset"===e.data.type&&t.pane.importPreset(JSON.parse(e.data.data))}))}},{key:"addImportButton",value:function(){var t=this;this.pane.addButton({title:"导入配置"}).on("click",(0,Bt.Z)(Ft().mark((function e(){var n,i;return Ft().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ee.fileOpen)({mimeTypes:["application/json"],extensions:[".json"],excludeAcceptAllOption:!0,description:"Preset File",id:"config",multiple:!1});case 2:return n=e.sent,e.next=5,n.text();case 5:i=e.sent,t.importPreset(JSON.parse(i));case 7:case"end":return e.stop()}}),e)}))))}},{key:"importPreset",value:function(t){this.pane.importPreset(t)}},{key:"hide",value:function(){var t;this.pane.hidden=!0,null===(t=this.container)||void 0===t||t.classList.add(he.hidden)}},{key:"show",value:function(){var t;this.pane.hidden=!1,null===(t=this.container)||void 0===t||t.classList.remove(he.hidden)}},{key:"dispose",value:function(){this.pane.dispose(),this.parentMap.clear(),this.itemMap.clear(),document.body.removeChild(this.container),this.pane=void 0}},{key:"disposeItem",value:function(t){var e=this.itemMap.get(t);e&&(e.dispose(),this.itemMap.delete(t))}},{key:"disposeGroup",value:function(t){var e=this,n=this.getName(t);t.children.forEach((function(n){e.disposeItem(e.getName(t,n.label))})),t.dispose(),this.parentMap.delete(n)}}]),t}(),pe=n("80a4"),fe=r.n(pe),ge=function(){function t(e,n){var i=this;(0,a.Z)(this,t),this.options=void 0,this.composerController=void 0,this.rendererController=void 0,this.cssRendererController=void 0,this.cameraController=void 0,this.controlController=void 0,this.transformController=void 0,this.sceneController=void 0,this.drawController=void 0,this.cacheController=void 0,this.stats=void 0,this.gui=void 0,this.oldGui=void 0,this.assetController=void 0,this.resizeObserver=void 0,this.raycaster=new u.Raycaster,this.event=new h.EventEmitter,this.clock=new u.Clock,this.resizeHandler=void 0,this.getAssetPath=function(t){var e=i.options.staticPath;return"".concat(e).concat(t)},this.options=p()(t.options,e,{isMergeableObject:w.isPlainObject});var r=this.options,o=r.container;if(r.stats){var s=new(g());s.showPanel(0),s.dom.style.position="absolute",o.appendChild(s.dom),this.stats=s}this.initGui(),this.init(),this.initComposer(),this.initCSSRenderer(),this.initControl(),this.cacheController=new Rt,n&&(n.initObjectFactories(),n.pencil=this,this.drawController=n),this.assetController=new Jt(this),this.clock.getDelta(),this.clock.getElapsedTime()}return(0,s.Z)(t,[{key:"renderer",get:function(){var t;return null===(t=this.rendererController)||void 0===t?void 0:t.renderer}},{key:"control",get:function(){var t;return null===(t=this.controlController)||void 0===t?void 0:t.control}},{key:"camera",get:function(){var t;return null===(t=this.cameraController)||void 0===t?void 0:t.camera}},{key:"scene",get:function(){var t;return null===(t=this.sceneController)||void 0===t?void 0:t.scene}},{key:"bloom",get:function(){var t;return null===(t=this.composerController)||void 0===t?void 0:t.bloomController}},{key:"draw",get:function(){return console.warn("pencil.draw is deprecated, use drawController.draw"),this.drawController.draw.bind(this.drawController)}},{key:"erase",get:function(){return console.warn("pencil.erase is deprecated, use drawController.erase"),this.drawController.erase.bind(this.drawController)}},{key:"getObject",get:function(){return console.warn("pencil.getObject is deprecated, use drawController.getObject"),this.drawController.getObject.bind(this.drawController)}},{key:"objectsPromise",get:function(){return console.warn("pencil.objectsPromise is deprecated, use drawController.objectsPromise"),this.drawController.objectsPromise}},{key:"init",value:function(){var t=this,n=this.options,r=n.container,o=n.isdev,a=n.axesHelper,s=n.renderer,l=n.scene,c=n.light,h=n.camera,d=n.resizeObserverType,p=this.getSize(),f=p.width,g=p.height,m=new x({isdev:o,width:f,height:g,cameraParams:h});this.gui&&m.setGui(this.gui);var v=m.camera,y=new _({camera:v,sceneParams:l}),w=y.scene,C=new b({width:f,height:g,scene:w,camera:v,isdev:o,rendererParams:(0,i.Z)((0,i.Z)({},s),{},{outputEncoding:"auto"===this.options.renderer.antialias?s.outputEncoding:u.LinearEncoding,antialias:"auto"===this.options.renderer.antialias})});this.gui&&C.setGui(this.gui);var A=C.renderer;if(c&&y.addLight(),a&&y.addAxesHelper(),this.sceneController=y,this.rendererController=C,this.cameraController=m,r.contains(A.domElement)||r.appendChild(A.domElement),"resizeObserver"===d){var I=new ResizeObserver((function(n){var i,r=e(n);try{for(r.s();!(i=r.n()).done;){var o=i.value.contentRect;t.handleResize(o.width,o.height),t.render()}}catch(a){r.e(a)}finally{r.f()}}));I.observe(r),this.resizeObserver=I}else"window"===d&&(this.resizeHandler=function(){var e=t.getSize(),n=e.width,i=e.height;t.handleResize(n,i)},r.addEventListener("resize",this.resizeHandler))}},{key:"resizeRendererToDisplaySize",value:function(){var t,e=this.renderer.domElement,n=this.getSize(),i=n.width,r=n.height,o=null!==(t=this.options.renderer.devicePixelRatio)&&void 0!==t?t:window.devicePixelRatio;return e.width!==i*o||e.height!==r*o}},{key:"initComposer",value:function(){var t=this.options,e=t.bloom,n=t.outline,i=t.ssr,r=t.renderer,o=t.bloomParams,a=t.outlineParams,s=t.ssrParams,l=t.multisampling,c=r.antialias;"msaa"!==c||ct||(c=!1,console.warn("MSAA is not supported on this browser"));var h=new Dt({renderer:this.renderer,scene:this.scene,camera:this.camera,gui:this.gui,composerParams:{multisampling:"msaa"===c?l:0,type:u.UnsignedByteType,encoding:r.outputEncoding}});this.composerController=h,"ssaa"!==c&&"auto"!==c||h.addSSAAPass(),i&&h.addSSRPass(s),e&&h.addBloomPass(o),n&&h.addOutlinePass(a),r.outputEncoding===u.sRGBEncoding&&h.addGammaCorrectionPass(),"fxaa"===c?h.addFXAAPass():"smaa"===c&&h.addSMAAPass(),"auto"===r.antialias?(this.composerController.disable(),this.event.on("passcheck",(function(){var t,e,n;null!==(t=h.bloomController)&&void 0!==t&&t.active||null!==(e=h.outlineController)&&void 0!==e&&e.active||null!==(n=h.ssrController)&&void 0!==n&&n.active?h.enable():h.disable()}))):(h.checkCopyPass(),this.event.on("passcheck",(function(){h.checkCopyPass()})))}},{key:"initCSSRenderer",value:function(){var t=this.options,e=t.container,n=t.css2DRenderer,i=t.css3DRenderer,r=t.css2DRendererParams,o=t.css3DRendererParams;if(n||i){var a=new $(e);a.staticRender=this.options.cssStaticRender,n&&a.addRenderer("css2d",r),i&&a.addRenderer("css3d",o),this.cssRendererController=a}}},{key:"initControl",value:function(){var t=this.options,e=t.control,n=t.mapControl,i=t.transformControl,r=t.controlParams;if(e){var o=new A({camera:this.camera,controlParams:{domElement:(null===r||void 0===r?void 0:r.domElement)||this.renderer.domElement},mapControl:n});this.controlController=o,this.gui&&this.controlController.setGui(this.gui)}if(i){var a=new W({domElement:(null===r||void 0===r?void 0:r.domElement)||this.renderer.domElement,pencil:this});this.scene.add(a.control),this.transformController=a,this.gui&&this.transformController.setGui(this.gui)}}},{key:"initGui",value:function(){var t=this.options,e=t.gui,n=t.guiParams;if(e){var i=n.lilGui,r=n.container,o=new de({title:"控制面板",expanded:!1,staticPath:this.options.staticPath,container:r});if(this.gui=o,i){var a=document.createElement("div");a.className=he["pencil-old-gui-container"],document.body.appendChild(a),this.oldGui=new(fe())({container:a}),this.oldGui.open(!1)}}}},{key:"getSize",value:function(){var t=this.options.container;return{width:t.offsetWidth,height:t.offsetHeight}}},{key:"handleResize",value:function(t,e){var n=this.rendererController,i=this.cameraController,r=this.composerController,o=this.cssRendererController,a=this.drawController;null===i||void 0===i||i.setSize(t,e),null===n||void 0===n||n.setSize(t,e),null===r||void 0===r||r.setSize(t,e),null===o||void 0===o||o.setSize(t,e),null===a||void 0===a||a.setSize(t,e),this.event.emit("resize",{width:t,height:e})}},{key:"pick",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.raycaster,r=this.options,o=r.container,a=new u.Vector2,s=o.getBoundingClientRect();if(a.x=(t.clientX-s.left)/(s.right-s.left)*2-1,a.y=-(t.clientY-s.top)/(s.bottom-s.top)*2+1,this.camera&&this.scene){i.setFromCamera(a,this.camera);var l=i.intersectObjects(e||this.scene.children,n);if(l.length)return{object:l[0].object,intersects:l}}}},{key:"render",value:function(){var t,e,n,i,r,o=this.renderer,a=this.scene,s=this.camera,l=this.clock;if(o&&a&&s&&(!this.options.staticRender||this.cameraController.checkCameraChange())){var u,h=l.getDelta(),d=l.getElapsedTime();o.clear(),c().update(),null===(t=this.controlController)||void 0===t||t.update(),null===(e=this.drawController)||void 0===e||e.update(h,d),null!==(n=this.composerController)&&void 0!==n&&n.active?this.composerController.render():null===(u=this.rendererController)||void 0===u||u.render(),null===(i=this.cssRendererController)||void 0===i||i.render(a,s,this.cameraController),null===(r=this.stats)||void 0===r||r.update(),this.event.emit("render")}}},{key:"start",value:function(){this.renderer.setAnimationLoop(this.render.bind(this)),this.event.emit("start")}},{key:"stop",value:function(){this.renderer.setAnimationLoop(null),this.event.emit("stop")}},{key:"dispose",value:function(){var t,e,n,i,r,o,a,s,l,u,h,d,p;this.stop(),c().removeAll(),this.handleResize(0,0),null===(t=this.resizeObserver)||void 0===t||t.unobserve(this.options.container),this.resizeObserver=void 0,this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),null===(e=this.assetController)||void 0===e||e.dispose(),null===(n=this.cacheController)||void 0===n||n.dispose(),null===(i=this.drawController)||void 0===i||i.dispose(),this.cacheController=void 0,this.drawController=void 0,null===(r=this.controlController)||void 0===r||r.dispose(),null===(o=this.transformController)||void 0===o||o.dispose(),null===(a=this.cssRendererController)||void 0===a||a.dispose(),null===(s=this.cameraController)||void 0===s||s.dispose(),null===(l=this.sceneController)||void 0===l||l.dispose(),null===(u=this.composerController)||void 0===u||u.dispose(),null===(h=this.rendererController)||void 0===h||h.dispose(),null===(d=this.gui)||void 0===d||d.dispose();var f=document.querySelector(".".concat(he["pencil-old-gui-container"]));null===(p=this.oldGui)||void 0===p||p.destroy(),f&&f.remove(),this.controlController=void 0,this.transformController=void 0,this.cssRendererController=void 0,this.cameraController=void 0,this.sceneController=void 0,this.composerController=void 0,this.rendererController=void 0,this.gui=void 0,this.oldGui=void 0,this.event.removeAllListeners()}}]),t}();ge.options={isdev:lt,stats:lt,gui:lt,guiParams:{lilGui:!1,container:null},axesHelper:lt,control:!1,transformControl:!1,light:!0,renderer:(0,i.Z)((0,i.Z)({},y),{},{antialias:ct?"msaa":"smaa"}),staticRender:!1,cssStaticRender:!1,multisampling:8,scene:{background:null},camera:{fov:45,near:1,far:1e3},bloom:!1,bloomParams:{threshold:.2,strength:.5,radius:0},outline:!1,outlineParams:{edgeStrength:3,edgeGlow:4,edgeThickness:1,pulsePeriod:0,rotate:!1,usePatternTexture:!1,visibleEdgeColor:"#5ee8e8",hiddenEdgeColor:"#190a05"},css2DRenderer:!1,ssr:!1,ssrParams:{maxDistance:10,selects:!0},css2DRendererParams:(0,i.Z)({},J),css3DRenderer:!1,css3DRendererParams:(0,i.Z)({},J),staticPath:"/",resizeObserverType:"resizeObserver"};var me=r(8031),ve=r(3324),ye=function(){function t(e){(0,a.Z)(this,t),this.pencil=void 0,this.objects_=void 0,this.objectNamesToFactories=new Map,this.objects=new Map,this.objects_=e}return(0,s.Z)(t,[{key:"objectsPromise",get:function(){var t=[];return this.objects.forEach((function(e){t.push(e.pm.promise)})),t}},{key:"initObjectFactories",value:function(){var t=this,e=this.objects_;Object.keys(e).forEach((function(n){var i=function(){function t(){(0,a.Z)(this,t)}return(0,s.Z)(t,[{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e[n](t)}}]),t}();t.objectNamesToFactories.set(n,i)}))}},{key:"getObject",value:function(t,e){t.includes("#")&&console.warn("getObject:err:不支持 #",t);var n=(e||{}).key,i="".concat(t).concat(n?"#".concat(n):"");return this.objects.get(i)}},{key:"getAllObject",value:function(t,e){t.includes("#")&&console.warn("getAllObject:err:不支持 #",t);var n=(e||{}).key,i="".concat(t).concat(n?"#".concat(n):""),r=[];return this.objects.forEach((function(t,e){(e.startsWith("".concat(i,"#"))||e===i)&&r.push(t)})),r}},{key:"draw",value:function(){var t=(0,Bt.Z)(Ft().mark((function t(e,n,i){var r,o,a,s,l,c,h;return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=this.objectNamesToFactories.get(e))){t.next=14;break}return o=(n||{}).key,a="".concat(e).concat(o?"#".concat(o):""),this.objects.has(a)&&(s=u.MathUtils.generateUUID(),a+="#".concat(s)),l=(null===n||void 0===n?void 0:n.target)||i,c="string"===typeof l?this.objects.get(l):"BaseObject"===(null===l||void 0===l?void 0:l.objecttype__)?l:this.pencil.scene,(h=(new r).create(n)).pencil=this.pencil,h.key=a,this.objects.set(a,h),t.next=13,this.addMesh(h,c);case 13:return t.abrupt("return",h);case 14:throw new Error("Unrecognized:".concat(e));case 15:case"end":return t.stop()}}),t,this)})));return function(e,n,i){return t.apply(this,arguments)}}()},{key:"predraw",value:function(t,e,n){var i=this,r=this.objectNamesToFactories.get(t);if(r){var o=(e||{}).key,a="".concat(t).concat(o?"#".concat(o):"");if(this.objects.has(a)){var s=u.MathUtils.generateUUID();a+="#".concat(s)}var l,c=(null===e||void 0===e?void 0:e.target)||n;l="string"===typeof c?this.objects.get(c):"BaseObject"===(null===c||void 0===c?void 0:c.objecttype__)?c:this.pencil.scene;var h=(new r).create(e);return h.pencil=this.pencil,h.key=a,this.objects.set(a,h),h.precreate(),h.draw=(0,Bt.Z)(Ft().mark((function t(){return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.addMesh(h,l);case 2:case"end":return t.stop()}}),t)}))),h}throw new Error("Unrecognized:".concat(t))}},{key:"addMesh",value:function(){var t=(0,Bt.Z)(Ft().mark((function t(e,n){return Ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.init();case 2:return t.next=4,e.create();case 4:e.object3d&&(e.object3d.userData.BaseObject_=e,n.add(e.object3d)),e.isAdd||(e.isAdd=!0,e.visible=!0),e.showGuiParams(this.pencil.gui),e.render(),e.pm.resolve();case 9:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"erase",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];[].concat(n).forEach((function(e){var n=[];if("string"===typeof e){var i=e.split("#"),r=(0,ve.Z)(i,2),o=r[0],a=r[1];n.push.apply(n,(0,I.Z)(t.getAllObject(o,{key:a})))}else n.push(e);n.forEach((function(e){t.removeMesh(e)}))}))}},{key:"removeMesh",value:function(t){var e,n=this,i=t.parent;t.object3d&&(null===i||void 0===i||null===(e=i.remove)||void 0===e||e.call(i,t.object3d)),t.traverse((function(t){var e,i;t.isAdd&&(t.isAdd=!1,t.visible=!1),t.dispose(),null===(e=n.objects)||void 0===e||null===(i=e.delete)||void 0===i||i.call(e,t.key)}))}},{key:"update",value:function(t,e){this.objects.forEach((function(n){"BaseObject"===n.objecttype__&&n.update(t,e)}))}},{key:"setSize",value:function(t,e){this.objects.forEach((function(n){"BaseObject"===n.objecttype__&&n.resize(t,e)}))}},{key:"dispose",value:function(){this.objects.forEach((function(t,e){"BaseObject"===t.objecttype__&&(t.dispose(),t.pm.reject("stop draw:".concat(e)))})),this.objects.clear(),this.objectNamesToFactories.clear()}}]),t}()}(),t.exports=o}()},"69a0":function(t,e,n){(function(e){t.exports=e()})((function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],i=t[1],r=t[2],o=t[3];n+=(i&r|~i&o)+e[0]-680876936|0,n=(n<<7|n>>>25)+i|0,o+=(n&i|~n&r)+e[1]-389564586|0,o=(o<<12|o>>>20)+n|0,r+=(o&n|~o&i)+e[2]+606105819|0,r=(r<<17|r>>>15)+o|0,i+=(r&o|~r&n)+e[3]-1044525330|0,i=(i<<22|i>>>10)+r|0,n+=(i&r|~i&o)+e[4]-176418897|0,n=(n<<7|n>>>25)+i|0,o+=(n&i|~n&r)+e[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,r+=(o&n|~o&i)+e[6]-1473231341|0,r=(r<<17|r>>>15)+o|0,i+=(r&o|~r&n)+e[7]-45705983|0,i=(i<<22|i>>>10)+r|0,n+=(i&r|~i&o)+e[8]+1770035416|0,n=(n<<7|n>>>25)+i|0,o+=(n&i|~n&r)+e[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,r+=(o&n|~o&i)+e[10]-42063|0,r=(r<<17|r>>>15)+o|0,i+=(r&o|~r&n)+e[11]-1990404162|0,i=(i<<22|i>>>10)+r|0,n+=(i&r|~i&o)+e[12]+1804603682|0,n=(n<<7|n>>>25)+i|0,o+=(n&i|~n&r)+e[13]-40341101|0,o=(o<<12|o>>>20)+n|0,r+=(o&n|~o&i)+e[14]-1502002290|0,r=(r<<17|r>>>15)+o|0,i+=(r&o|~r&n)+e[15]+1236535329|0,i=(i<<22|i>>>10)+r|0,n+=(i&o|r&~o)+e[1]-165796510|0,n=(n<<5|n>>>27)+i|0,o+=(n&r|i&~r)+e[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,r+=(o&i|n&~i)+e[11]+643717713|0,r=(r<<14|r>>>18)+o|0,i+=(r&n|o&~n)+e[0]-373897302|0,i=(i<<20|i>>>12)+r|0,n+=(i&o|r&~o)+e[5]-701558691|0,n=(n<<5|n>>>27)+i|0,o+=(n&r|i&~r)+e[10]+38016083|0,o=(o<<9|o>>>23)+n|0,r+=(o&i|n&~i)+e[15]-660478335|0,r=(r<<14|r>>>18)+o|0,i+=(r&n|o&~n)+e[4]-405537848|0,i=(i<<20|i>>>12)+r|0,n+=(i&o|r&~o)+e[9]+568446438|0,n=(n<<5|n>>>27)+i|0,o+=(n&r|i&~r)+e[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,r+=(o&i|n&~i)+e[3]-187363961|0,r=(r<<14|r>>>18)+o|0,i+=(r&n|o&~n)+e[8]+1163531501|0,i=(i<<20|i>>>12)+r|0,n+=(i&o|r&~o)+e[13]-1444681467|0,n=(n<<5|n>>>27)+i|0,o+=(n&r|i&~r)+e[2]-51403784|0,o=(o<<9|o>>>23)+n|0,r+=(o&i|n&~i)+e[7]+1735328473|0,r=(r<<14|r>>>18)+o|0,i+=(r&n|o&~n)+e[12]-1926607734|0,i=(i<<20|i>>>12)+r|0,n+=(i^r^o)+e[5]-378558|0,n=(n<<4|n>>>28)+i|0,o+=(n^i^r)+e[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,r+=(o^n^i)+e[11]+1839030562|0,r=(r<<16|r>>>16)+o|0,i+=(r^o^n)+e[14]-35309556|0,i=(i<<23|i>>>9)+r|0,n+=(i^r^o)+e[1]-1530992060|0,n=(n<<4|n>>>28)+i|0,o+=(n^i^r)+e[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,r+=(o^n^i)+e[7]-155497632|0,r=(r<<16|r>>>16)+o|0,i+=(r^o^n)+e[10]-1094730640|0,i=(i<<23|i>>>9)+r|0,n+=(i^r^o)+e[13]+681279174|0,n=(n<<4|n>>>28)+i|0,o+=(n^i^r)+e[0]-358537222|0,o=(o<<11|o>>>21)+n|0,r+=(o^n^i)+e[3]-722521979|0,r=(r<<16|r>>>16)+o|0,i+=(r^o^n)+e[6]+76029189|0,i=(i<<23|i>>>9)+r|0,n+=(i^r^o)+e[9]-640364487|0,n=(n<<4|n>>>28)+i|0,o+=(n^i^r)+e[12]-421815835|0,o=(o<<11|o>>>21)+n|0,r+=(o^n^i)+e[15]+530742520|0,r=(r<<16|r>>>16)+o|0,i+=(r^o^n)+e[2]-995338651|0,i=(i<<23|i>>>9)+r|0,n+=(r^(i|~o))+e[0]-198630844|0,n=(n<<6|n>>>26)+i|0,o+=(i^(n|~r))+e[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,r+=(n^(o|~i))+e[14]-1416354905|0,r=(r<<15|r>>>17)+o|0,i+=(o^(r|~n))+e[5]-57434055|0,i=(i<<21|i>>>11)+r|0,n+=(r^(i|~o))+e[12]+1700485571|0,n=(n<<6|n>>>26)+i|0,o+=(i^(n|~r))+e[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,r+=(n^(o|~i))+e[10]-1051523|0,r=(r<<15|r>>>17)+o|0,i+=(o^(r|~n))+e[1]-2054922799|0,i=(i<<21|i>>>11)+r|0,n+=(r^(i|~o))+e[8]+1873313359|0,n=(n<<6|n>>>26)+i|0,o+=(i^(n|~r))+e[15]-30611744|0,o=(o<<10|o>>>22)+n|0,r+=(n^(o|~i))+e[6]-1560198380|0,r=(r<<15|r>>>17)+o|0,i+=(o^(r|~n))+e[13]+1309151649|0,i=(i<<21|i>>>11)+r|0,n+=(r^(i|~o))+e[4]-145523070|0,n=(n<<6|n>>>26)+i|0,o+=(i^(n|~r))+e[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,r+=(n^(o|~i))+e[2]+718787259|0,r=(r<<15|r>>>17)+o|0,i+=(o^(r|~n))+e[9]-343485551|0,i=(i<<21|i>>>11)+r|0,t[0]=n+t[0]|0,t[1]=i+t[1]|0,t[2]=r+t[2]|0,t[3]=o+t[3]|0}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,r,o,a,s,l,c=t.length,u=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(u,i(t.substring(e-64,e)));for(t=t.substring(e-64),r=t.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(u,o),e=0;e<16;e+=1)o[e]=0;return a=8*c,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(u,o),u}function a(t){var e,i,o,a,s,l,c=t.length,u=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(u,r(t.subarray(e-64,e)));for(t=e-64<c?t.subarray(e-64):new Uint8Array(0),i=t.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(u,o),e=0;e<16;e+=1)o[e]=0;return a=8*c,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(u,o),u}function s(t){var n,i="";for(n=0;n<4;n+=1)i+=e[t>>8*n+4&15]+e[t>>8*n&15];return i}function l(t){var e;for(e=0;e<t.length;e+=1)t[e]=s(t[e]);return t.join("")}function c(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function u(t,e){var n,i=t.length,r=new ArrayBuffer(i),o=new Uint8Array(r);for(n=0;n<i;n+=1)o[n]=t.charCodeAt(n);return e?o:r}function h(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function d(t,e,n){var i=new Uint8Array(t.byteLength+e.byteLength);return i.set(new Uint8Array(t)),i.set(new Uint8Array(e),t.byteLength),n?i:i.buffer}function p(t){var e,n=[],i=t.length;for(e=0;e<i-1;e+=2)n.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,n)}function f(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==l(o("hello"))&&function(t,e){var n=(65535&t)+(65535&e),i=(t>>16)+(e>>16)+(n>>16);return i<<16|65535&n},"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return t=0|t||0,t<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(n,i){var r,o,a,s,l=this.byteLength,c=e(n,l),u=l;return i!==t&&(u=e(i,l)),c>u?new ArrayBuffer(0):(r=u-c,o=new ArrayBuffer(r),a=new Uint8Array(o),s=new Uint8Array(this,c,r),a.set(s),o)}}(),f.prototype.append=function(t){return this.appendBinary(c(t)),this},f.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,r=this._buff.length;for(e=64;e<=r;e+=64)n(this._hash,i(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},f.prototype.end=function(t){var e,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r;e+=1)o[e>>2]|=i.charCodeAt(e)<<(e%4<<3);return this._finish(o,r),n=l(this._hash),t&&(n=p(n)),this.reset(),n},f.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},f.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},f.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},f.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},f.prototype._finish=function(t,e){var i,r,o,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,t),a=0;a<16;a+=1)t[a]=0;i=8*this._length,i=i.toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(i[2],16),o=parseInt(i[1],16)||0,t[14]=r,t[15]=o,n(this._hash,t)},f.hash=function(t,e){return f.hashBinary(c(t),e)},f.hashBinary=function(t,e){var n=o(t),i=l(n);return e?p(i):i},f.ArrayBuffer=function(){this.reset()},f.ArrayBuffer.prototype.append=function(t){var e,i=d(this._buff.buffer,t,!0),o=i.length;for(this._length+=t.byteLength,e=64;e<=o;e+=64)n(this._hash,r(i.subarray(e-64,e)));return this._buff=e-64<o?new Uint8Array(i.buffer.slice(e-64)):new Uint8Array(0),this},f.ArrayBuffer.prototype.end=function(t){var e,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r;e+=1)o[e>>2]|=i[e]<<(e%4<<3);return this._finish(o,r),n=l(this._hash),t&&(n=p(n)),this.reset(),n},f.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},f.ArrayBuffer.prototype.getState=function(){var t=f.prototype.getState.call(this);return t.buff=h(t.buff),t},f.ArrayBuffer.prototype.setState=function(t){return t.buff=u(t.buff,!0),f.prototype.setState.call(this,t)},f.ArrayBuffer.prototype.destroy=f.prototype.destroy,f.ArrayBuffer.prototype._finish=f.prototype._finish,f.ArrayBuffer.hash=function(t,e){var n=a(new Uint8Array(t)),i=l(n);return e?p(i):i},f}))},"6bcd":function(t,e,n){"use strict";n("a4d3"),n("4de4"),n("4160"),n("0d03"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("159b"),n("96cf");var i=n("ade3"),r=n("2f62");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e["a"]={data:function(){return{adviceList:["搜索北京市端口为8000的http服务",'搜索html标题包含"测试"的中国非北京市数据']}},computed:{},created:function(){},methods:a({},Object(r["b"])("gpt",["initGptMessage","setGptMessages","setGptChatMessages"]),{handleRemoveAllMessages:function(t){var e=this;this.$confirm("此操作将永久删除您的对话记录, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:return"index"===t?e.setGptMessages([]):e.setGptChatMessages([]),n.next=3,regeneratorRuntime.awrap(e.ajaxGetGptQuery({query:"#清除记忆"}));case 3:e.$message({type:"success",message:"删除成功!"});case 4:case"end":return n.stop()}}))})).catch((function(){e.$message({type:"info",message:"已取消"})}))},watchTypedElement:function(){},watchTypedElement1:function(t){var e=this,n=document.querySelector(t);if(n){var i=n.querySelectorAll(".typed-element");if(i){var r=i[i.length-1],o=r.offsetHeight;r.addEventListener("DOMNodeInserted",(function(){var t=r.offsetHeight;t!==o&&e.strollToBottom()}))}}},setTypeCursor:function(t){var e=document.querySelector(t),n=e.querySelectorAll(".typed-cursor");if(n){var i=n[n.length-1];i.style.display="none"}},handleStringTyped:function(){},handleCompleteType:function(t){this.setTypeCursor(t)},handleCopyGptResult:function(t){var e=this;this.$copyText(t).then((function(){e.$message({message:e.$t("global.copy_success"),type:"success"})}))},buildMessageObj:function(t,e){return{content:t,self:e,time:this.dayjs(new Date).format("YYYY-MM-DD HH:mm:ss"),type:"text"}},strollToBottom:function(t){this.$nextTick((function(){var e=document.querySelector(t);if(e){var n=e.querySelector(".message-chat");n&&(n.scrollTop=n.scrollHeight)}}))}})}},"6c18":function(t,e,n){"use strict";n.r(e),n.d(e,"FXAAShader",(function(){return r}));var i=n("5a89");const r={uniforms:{tDiffuse:{value:null},resolution:{value:new i["Vector2"](1/1024,1/512)}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:'\n\n\t\tprecision highp float;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\n\t\t#define FXAA_PC 1\n\t\t#define FXAA_GLSL_100 1\n\t\t#define FXAA_QUALITY_PRESET 12\n\n\t\t#define FXAA_GREEN_AS_LUMA 1\n\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_PC_CONSOLE\n\t\t\t\t//\n\t\t\t\t// The console algorithm for PC is included\n\t\t\t\t// for developers targeting really low spec machines.\n\t\t\t\t// Likely better to just run FXAA_PC, and use a really low preset.\n\t\t\t\t//\n\t\t\t\t#define FXAA_PC_CONSOLE 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_GLSL_120\n\t\t\t\t#define FXAA_GLSL_120 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_GLSL_130\n\t\t\t\t#define FXAA_GLSL_130 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_HLSL_3\n\t\t\t\t#define FXAA_HLSL_3 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_HLSL_4\n\t\t\t\t#define FXAA_HLSL_4 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_HLSL_5\n\t\t\t\t#define FXAA_HLSL_5 0\n\t\t#endif\n\t\t/*==========================================================================*/\n\t\t#ifndef FXAA_GREEN_AS_LUMA\n\t\t\t\t//\n\t\t\t\t// For those using non-linear color,\n\t\t\t\t// and either not able to get luma in alpha, or not wanting to,\n\t\t\t\t// this enables FXAA to run using green as a proxy for luma.\n\t\t\t\t// So with this enabled, no need to pack luma in alpha.\n\t\t\t\t//\n\t\t\t\t// This will turn off AA on anything which lacks some amount of green.\n\t\t\t\t// Pure red and blue or combination of only R and B, will get no AA.\n\t\t\t\t//\n\t\t\t\t// Might want to lower the settings for both,\n\t\t\t\t//\t\tfxaaConsoleEdgeThresholdMin\n\t\t\t\t//\t\tfxaaQualityEdgeThresholdMin\n\t\t\t\t// In order to insure AA does not get turned off on colors\n\t\t\t\t// which contain a minor amount of green.\n\t\t\t\t//\n\t\t\t\t// 1 = On.\n\t\t\t\t// 0 = Off.\n\t\t\t\t//\n\t\t\t\t#define FXAA_GREEN_AS_LUMA 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_EARLY_EXIT\n\t\t\t\t//\n\t\t\t\t// Controls algorithm\'s early exit path.\n\t\t\t\t// On PS3 turning this ON adds 2 cycles to the shader.\n\t\t\t\t// On 360 turning this OFF adds 10ths of a millisecond to the shader.\n\t\t\t\t// Turning this off on console will result in a more blurry image.\n\t\t\t\t// So this defaults to on.\n\t\t\t\t//\n\t\t\t\t// 1 = On.\n\t\t\t\t// 0 = Off.\n\t\t\t\t//\n\t\t\t\t#define FXAA_EARLY_EXIT 1\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_DISCARD\n\t\t\t\t//\n\t\t\t\t// Only valid for PC OpenGL currently.\n\t\t\t\t// Probably will not work when FXAA_GREEN_AS_LUMA = 1.\n\t\t\t\t//\n\t\t\t\t// 1 = Use discard on pixels which don\'t need AA.\n\t\t\t\t//\t\t For APIs which enable concurrent TEX+ROP from same surface.\n\t\t\t\t// 0 = Return unchanged color on pixels which don\'t need AA.\n\t\t\t\t//\n\t\t\t\t#define FXAA_DISCARD 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_FAST_PIXEL_OFFSET\n\t\t\t\t//\n\t\t\t\t// Used for GLSL 120 only.\n\t\t\t\t//\n\t\t\t\t// 1 = GL API supports fast pixel offsets\n\t\t\t\t// 0 = do not use fast pixel offsets\n\t\t\t\t//\n\t\t\t\t#ifdef GL_EXT_gpu_shader4\n\t\t\t\t\t\t#define FXAA_FAST_PIXEL_OFFSET 1\n\t\t\t\t#endif\n\t\t\t\t#ifdef GL_NV_gpu_shader5\n\t\t\t\t\t\t#define FXAA_FAST_PIXEL_OFFSET 1\n\t\t\t\t#endif\n\t\t\t\t#ifdef GL_ARB_gpu_shader5\n\t\t\t\t\t\t#define FXAA_FAST_PIXEL_OFFSET 1\n\t\t\t\t#endif\n\t\t\t\t#ifndef FXAA_FAST_PIXEL_OFFSET\n\t\t\t\t\t\t#define FXAA_FAST_PIXEL_OFFSET 0\n\t\t\t\t#endif\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_GATHER4_ALPHA\n\t\t\t\t//\n\t\t\t\t// 1 = API supports gather4 on alpha channel.\n\t\t\t\t// 0 = API does not support gather4 on alpha channel.\n\t\t\t\t//\n\t\t\t\t#if (FXAA_HLSL_5 == 1)\n\t\t\t\t\t\t#define FXAA_GATHER4_ALPHA 1\n\t\t\t\t#endif\n\t\t\t\t#ifdef GL_ARB_gpu_shader5\n\t\t\t\t\t\t#define FXAA_GATHER4_ALPHA 1\n\t\t\t\t#endif\n\t\t\t\t#ifdef GL_NV_gpu_shader5\n\t\t\t\t\t\t#define FXAA_GATHER4_ALPHA 1\n\t\t\t\t#endif\n\t\t\t\t#ifndef FXAA_GATHER4_ALPHA\n\t\t\t\t\t\t#define FXAA_GATHER4_ALPHA 0\n\t\t\t\t#endif\n\t\t#endif\n\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tFXAA QUALITY - TUNING KNOBS\n\t\t------------------------------------------------------------------------------\n\t\tNOTE the other tuning knobs are now in the shader function inputs!\n\t\t============================================================================*/\n\t\t#ifndef FXAA_QUALITY_PRESET\n\t\t\t\t//\n\t\t\t\t// Choose the quality preset.\n\t\t\t\t// This needs to be compiled into the shader as it effects code.\n\t\t\t\t// Best option to include multiple presets is to\n\t\t\t\t// in each shader define the preset, then include this file.\n\t\t\t\t//\n\t\t\t\t// OPTIONS\n\t\t\t\t// -----------------------------------------------------------------------\n\t\t\t\t// 10 to 15 - default medium dither (10=fastest, 15=highest quality)\n\t\t\t\t// 20 to 29 - less dither, more expensive (20=fastest, 29=highest quality)\n\t\t\t\t// 39\t\t\t - no dither, very expensive\n\t\t\t\t//\n\t\t\t\t// NOTES\n\t\t\t\t// -----------------------------------------------------------------------\n\t\t\t\t// 12 = slightly faster then FXAA 3.9 and higher edge quality (default)\n\t\t\t\t// 13 = about same speed as FXAA 3.9 and better than 12\n\t\t\t\t// 23 = closest to FXAA 3.9 visually and performance wise\n\t\t\t\t//\t_ = the lowest digit is directly related to performance\n\t\t\t\t// _\t= the highest digit is directly related to style\n\t\t\t\t//\n\t\t\t\t#define FXAA_QUALITY_PRESET 12\n\t\t#endif\n\n\n\t\t/*============================================================================\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t FXAA QUALITY - PRESETS\n\n\t\t============================================================================*/\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t\t FXAA QUALITY - MEDIUM DITHER PRESETS\n\t\t============================================================================*/\n\t\t#if (FXAA_QUALITY_PRESET == 10)\n\t\t\t\t#define FXAA_QUALITY_PS 3\n\t\t\t\t#define FXAA_QUALITY_P0 1.5\n\t\t\t\t#define FXAA_QUALITY_P1 3.0\n\t\t\t\t#define FXAA_QUALITY_P2 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 11)\n\t\t\t\t#define FXAA_QUALITY_PS 4\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 3.0\n\t\t\t\t#define FXAA_QUALITY_P3 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 12)\n\t\t\t\t#define FXAA_QUALITY_PS 5\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 4.0\n\t\t\t\t#define FXAA_QUALITY_P4 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 13)\n\t\t\t\t#define FXAA_QUALITY_PS 6\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 4.0\n\t\t\t\t#define FXAA_QUALITY_P5 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 14)\n\t\t\t\t#define FXAA_QUALITY_PS 7\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 4.0\n\t\t\t\t#define FXAA_QUALITY_P6 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 15)\n\t\t\t\t#define FXAA_QUALITY_PS 8\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 4.0\n\t\t\t\t#define FXAA_QUALITY_P7 12.0\n\t\t#endif\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t\t FXAA QUALITY - LOW DITHER PRESETS\n\t\t============================================================================*/\n\t\t#if (FXAA_QUALITY_PRESET == 20)\n\t\t\t\t#define FXAA_QUALITY_PS 3\n\t\t\t\t#define FXAA_QUALITY_P0 1.5\n\t\t\t\t#define FXAA_QUALITY_P1 2.0\n\t\t\t\t#define FXAA_QUALITY_P2 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 21)\n\t\t\t\t#define FXAA_QUALITY_PS 4\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 22)\n\t\t\t\t#define FXAA_QUALITY_PS 5\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 23)\n\t\t\t\t#define FXAA_QUALITY_PS 6\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 24)\n\t\t\t\t#define FXAA_QUALITY_PS 7\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 3.0\n\t\t\t\t#define FXAA_QUALITY_P6 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 25)\n\t\t\t\t#define FXAA_QUALITY_PS 8\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 4.0\n\t\t\t\t#define FXAA_QUALITY_P7 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 26)\n\t\t\t\t#define FXAA_QUALITY_PS 9\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 4.0\n\t\t\t\t#define FXAA_QUALITY_P8 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 27)\n\t\t\t\t#define FXAA_QUALITY_PS 10\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 2.0\n\t\t\t\t#define FXAA_QUALITY_P8 4.0\n\t\t\t\t#define FXAA_QUALITY_P9 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 28)\n\t\t\t\t#define FXAA_QUALITY_PS 11\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 2.0\n\t\t\t\t#define FXAA_QUALITY_P8 2.0\n\t\t\t\t#define FXAA_QUALITY_P9 4.0\n\t\t\t\t#define FXAA_QUALITY_P10 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 29)\n\t\t\t\t#define FXAA_QUALITY_PS 12\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 2.0\n\t\t\t\t#define FXAA_QUALITY_P8 2.0\n\t\t\t\t#define FXAA_QUALITY_P9 2.0\n\t\t\t\t#define FXAA_QUALITY_P10 4.0\n\t\t\t\t#define FXAA_QUALITY_P11 8.0\n\t\t#endif\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t\t FXAA QUALITY - EXTREME QUALITY\n\t\t============================================================================*/\n\t\t#if (FXAA_QUALITY_PRESET == 39)\n\t\t\t\t#define FXAA_QUALITY_PS 12\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.0\n\t\t\t\t#define FXAA_QUALITY_P2 1.0\n\t\t\t\t#define FXAA_QUALITY_P3 1.0\n\t\t\t\t#define FXAA_QUALITY_P4 1.0\n\t\t\t\t#define FXAA_QUALITY_P5 1.5\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 2.0\n\t\t\t\t#define FXAA_QUALITY_P8 2.0\n\t\t\t\t#define FXAA_QUALITY_P9 2.0\n\t\t\t\t#define FXAA_QUALITY_P10 4.0\n\t\t\t\t#define FXAA_QUALITY_P11 8.0\n\t\t#endif\n\n\n\n\t\t/*============================================================================\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAPI PORTING\n\n\t\t============================================================================*/\n\t\t#if (FXAA_GLSL_100 == 1) || (FXAA_GLSL_120 == 1) || (FXAA_GLSL_130 == 1)\n\t\t\t\t#define FxaaBool bool\n\t\t\t\t#define FxaaDiscard discard\n\t\t\t\t#define FxaaFloat float\n\t\t\t\t#define FxaaFloat2 vec2\n\t\t\t\t#define FxaaFloat3 vec3\n\t\t\t\t#define FxaaFloat4 vec4\n\t\t\t\t#define FxaaHalf float\n\t\t\t\t#define FxaaHalf2 vec2\n\t\t\t\t#define FxaaHalf3 vec3\n\t\t\t\t#define FxaaHalf4 vec4\n\t\t\t\t#define FxaaInt2 ivec2\n\t\t\t\t#define FxaaSat(x) clamp(x, 0.0, 1.0)\n\t\t\t\t#define FxaaTex sampler2D\n\t\t#else\n\t\t\t\t#define FxaaBool bool\n\t\t\t\t#define FxaaDiscard clip(-1)\n\t\t\t\t#define FxaaFloat float\n\t\t\t\t#define FxaaFloat2 float2\n\t\t\t\t#define FxaaFloat3 float3\n\t\t\t\t#define FxaaFloat4 float4\n\t\t\t\t#define FxaaHalf half\n\t\t\t\t#define FxaaHalf2 half2\n\t\t\t\t#define FxaaHalf3 half3\n\t\t\t\t#define FxaaHalf4 half4\n\t\t\t\t#define FxaaSat(x) saturate(x)\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_GLSL_100 == 1)\n\t\t\t#define FxaaTexTop(t, p) texture2D(t, p, 0.0)\n\t\t\t#define FxaaTexOff(t, p, o, r) texture2D(t, p + (o * r), 0.0)\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_GLSL_120 == 1)\n\t\t\t\t// Requires,\n\t\t\t\t//\t#version 120\n\t\t\t\t// And at least,\n\t\t\t\t//\t#extension GL_EXT_gpu_shader4 : enable\n\t\t\t\t//\t(or set FXAA_FAST_PIXEL_OFFSET 1 to work like DX9)\n\t\t\t\t#define FxaaTexTop(t, p) texture2DLod(t, p, 0.0)\n\t\t\t\t#if (FXAA_FAST_PIXEL_OFFSET == 1)\n\t\t\t\t\t\t#define FxaaTexOff(t, p, o, r) texture2DLodOffset(t, p, 0.0, o)\n\t\t\t\t#else\n\t\t\t\t\t\t#define FxaaTexOff(t, p, o, r) texture2DLod(t, p + (o * r), 0.0)\n\t\t\t\t#endif\n\t\t\t\t#if (FXAA_GATHER4_ALPHA == 1)\n\t\t\t\t\t\t// use #extension GL_ARB_gpu_shader5 : enable\n\t\t\t\t\t\t#define FxaaTexAlpha4(t, p) textureGather(t, p, 3)\n\t\t\t\t\t\t#define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)\n\t\t\t\t\t\t#define FxaaTexGreen4(t, p) textureGather(t, p, 1)\n\t\t\t\t\t\t#define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)\n\t\t\t\t#endif\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_GLSL_130 == 1)\n\t\t\t\t// Requires "#version 130" or better\n\t\t\t\t#define FxaaTexTop(t, p) textureLod(t, p, 0.0)\n\t\t\t\t#define FxaaTexOff(t, p, o, r) textureLodOffset(t, p, 0.0, o)\n\t\t\t\t#if (FXAA_GATHER4_ALPHA == 1)\n\t\t\t\t\t\t// use #extension GL_ARB_gpu_shader5 : enable\n\t\t\t\t\t\t#define FxaaTexAlpha4(t, p) textureGather(t, p, 3)\n\t\t\t\t\t\t#define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)\n\t\t\t\t\t\t#define FxaaTexGreen4(t, p) textureGather(t, p, 1)\n\t\t\t\t\t\t#define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)\n\t\t\t\t#endif\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_HLSL_3 == 1)\n\t\t\t\t#define FxaaInt2 float2\n\t\t\t\t#define FxaaTex sampler2D\n\t\t\t\t#define FxaaTexTop(t, p) tex2Dlod(t, float4(p, 0.0, 0.0))\n\t\t\t\t#define FxaaTexOff(t, p, o, r) tex2Dlod(t, float4(p + (o * r), 0, 0))\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_HLSL_4 == 1)\n\t\t\t\t#define FxaaInt2 int2\n\t\t\t\tstruct FxaaTex { SamplerState smpl; Texture2D tex; };\n\t\t\t\t#define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)\n\t\t\t\t#define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_HLSL_5 == 1)\n\t\t\t\t#define FxaaInt2 int2\n\t\t\t\tstruct FxaaTex { SamplerState smpl; Texture2D tex; };\n\t\t\t\t#define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)\n\t\t\t\t#define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)\n\t\t\t\t#define FxaaTexAlpha4(t, p) t.tex.GatherAlpha(t.smpl, p)\n\t\t\t\t#define FxaaTexOffAlpha4(t, p, o) t.tex.GatherAlpha(t.smpl, p, o)\n\t\t\t\t#define FxaaTexGreen4(t, p) t.tex.GatherGreen(t.smpl, p)\n\t\t\t\t#define FxaaTexOffGreen4(t, p, o) t.tex.GatherGreen(t.smpl, p, o)\n\t\t#endif\n\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t GREEN AS LUMA OPTION SUPPORT FUNCTION\n\t\t============================================================================*/\n\t\t#if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\tFxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.w; }\n\t\t#else\n\t\t\t\tFxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.y; }\n\t\t#endif\n\n\n\n\n\t\t/*============================================================================\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t FXAA3 QUALITY - PC\n\n\t\t============================================================================*/\n\t\t#if (FXAA_PC == 1)\n\t\t/*--------------------------------------------------------------------------*/\n\t\tFxaaFloat4 FxaaPixelShader(\n\t\t\t\t//\n\t\t\t\t// Use noperspective interpolation here (turn off perspective interpolation).\n\t\t\t\t// {xy} = center of pixel\n\t\t\t\tFxaaFloat2 pos,\n\t\t\t\t//\n\t\t\t\t// Used only for FXAA Console, and not used on the 360 version.\n\t\t\t\t// Use noperspective interpolation here (turn off perspective interpolation).\n\t\t\t\t// {xy_} = upper left of pixel\n\t\t\t\t// {_zw} = lower right of pixel\n\t\t\t\tFxaaFloat4 fxaaConsolePosPos,\n\t\t\t\t//\n\t\t\t\t// Input color texture.\n\t\t\t\t// {rgb_} = color in linear or perceptual color space\n\t\t\t\t// if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\t//\t\t {__a} = luma in perceptual color space (not linear)\n\t\t\t\tFxaaTex tex,\n\t\t\t\t//\n\t\t\t\t// Only used on the optimized 360 version of FXAA Console.\n\t\t\t\t// For everything but 360, just use the same input here as for "tex".\n\t\t\t\t// For 360, same texture, just alias with a 2nd sampler.\n\t\t\t\t// This sampler needs to have an exponent bias of -1.\n\t\t\t\tFxaaTex fxaaConsole360TexExpBiasNegOne,\n\t\t\t\t//\n\t\t\t\t// Only used on the optimized 360 version of FXAA Console.\n\t\t\t\t// For everything but 360, just use the same input here as for "tex".\n\t\t\t\t// For 360, same texture, just alias with a 3nd sampler.\n\t\t\t\t// This sampler needs to have an exponent bias of -2.\n\t\t\t\tFxaaTex fxaaConsole360TexExpBiasNegTwo,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Quality.\n\t\t\t\t// This must be from a constant/uniform.\n\t\t\t\t// {x_} = 1.0/screenWidthInPixels\n\t\t\t\t// {_y} = 1.0/screenHeightInPixels\n\t\t\t\tFxaaFloat2 fxaaQualityRcpFrame,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// This must be from a constant/uniform.\n\t\t\t\t// This effects sub-pixel AA quality and inversely sharpness.\n\t\t\t\t//\t Where N ranges between,\n\t\t\t\t//\t\t N = 0.50 (default)\n\t\t\t\t//\t\t N = 0.33 (sharper)\n\t\t\t\t// {x__} = -N/screenWidthInPixels\n\t\t\t\t// {_y_} = -N/screenHeightInPixels\n\t\t\t\t// {_z_} =\tN/screenWidthInPixels\n\t\t\t\t// {__w} =\tN/screenHeightInPixels\n\t\t\t\tFxaaFloat4 fxaaConsoleRcpFrameOpt,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// Not used on 360, but used on PS3 and PC.\n\t\t\t\t// This must be from a constant/uniform.\n\t\t\t\t// {x__} = -2.0/screenWidthInPixels\n\t\t\t\t// {_y_} = -2.0/screenHeightInPixels\n\t\t\t\t// {_z_} =\t2.0/screenWidthInPixels\n\t\t\t\t// {__w} =\t2.0/screenHeightInPixels\n\t\t\t\tFxaaFloat4 fxaaConsoleRcpFrameOpt2,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// Only used on 360 in place of fxaaConsoleRcpFrameOpt2.\n\t\t\t\t// This must be from a constant/uniform.\n\t\t\t\t// {x__} =\t8.0/screenWidthInPixels\n\t\t\t\t// {_y_} =\t8.0/screenHeightInPixels\n\t\t\t\t// {_z_} = -4.0/screenWidthInPixels\n\t\t\t\t// {__w} = -4.0/screenHeightInPixels\n\t\t\t\tFxaaFloat4 fxaaConsole360RcpFrameOpt2,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Quality.\n\t\t\t\t// This used to be the FXAA_QUALITY_SUBPIX define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// Choose the amount of sub-pixel aliasing removal.\n\t\t\t\t// This can effect sharpness.\n\t\t\t\t//\t 1.00 - upper limit (softer)\n\t\t\t\t//\t 0.75 - default amount of filtering\n\t\t\t\t//\t 0.50 - lower limit (sharper, less sub-pixel aliasing removal)\n\t\t\t\t//\t 0.25 - almost off\n\t\t\t\t//\t 0.00 - completely off\n\t\t\t\tFxaaFloat fxaaQualitySubpix,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Quality.\n\t\t\t\t// This used to be the FXAA_QUALITY_EDGE_THRESHOLD define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// The minimum amount of local contrast required to apply algorithm.\n\t\t\t\t//\t 0.333 - too little (faster)\n\t\t\t\t//\t 0.250 - low quality\n\t\t\t\t//\t 0.166 - default\n\t\t\t\t//\t 0.125 - high quality\n\t\t\t\t//\t 0.063 - overkill (slower)\n\t\t\t\tFxaaFloat fxaaQualityEdgeThreshold,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Quality.\n\t\t\t\t// This used to be the FXAA_QUALITY_EDGE_THRESHOLD_MIN define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// Trims the algorithm from processing darks.\n\t\t\t\t//\t 0.0833 - upper limit (default, the start of visible unfiltered edges)\n\t\t\t\t//\t 0.0625 - high quality (faster)\n\t\t\t\t//\t 0.0312 - visible limit (slower)\n\t\t\t\t// Special notes when using FXAA_GREEN_AS_LUMA,\n\t\t\t\t//\t Likely want to set this to zero.\n\t\t\t\t//\t As colors that are mostly not-green\n\t\t\t\t//\t will appear very dark in the green channel!\n\t\t\t\t//\t Tune by looking at mostly non-green content,\n\t\t\t\t//\t then start at zero and increase until aliasing is a problem.\n\t\t\t\tFxaaFloat fxaaQualityEdgeThresholdMin,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// This used to be the FXAA_CONSOLE_EDGE_SHARPNESS define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// This does not effect PS3, as this needs to be compiled in.\n\t\t\t\t//\t Use FXAA_CONSOLE_PS3_EDGE_SHARPNESS for PS3.\n\t\t\t\t//\t Due to the PS3 being ALU bound,\n\t\t\t\t//\t there are only three safe values here: 2 and 4 and 8.\n\t\t\t\t//\t These options use the shaders ability to a free *|/ by 2|4|8.\n\t\t\t\t// For all other platforms can be a non-power of two.\n\t\t\t\t//\t 8.0 is sharper (default!!!)\n\t\t\t\t//\t 4.0 is softer\n\t\t\t\t//\t 2.0 is really soft (good only for vector graphics inputs)\n\t\t\t\tFxaaFloat fxaaConsoleEdgeSharpness,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// This used to be the FXAA_CONSOLE_EDGE_THRESHOLD define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// This does not effect PS3, as this needs to be compiled in.\n\t\t\t\t//\t Use FXAA_CONSOLE_PS3_EDGE_THRESHOLD for PS3.\n\t\t\t\t//\t Due to the PS3 being ALU bound,\n\t\t\t\t//\t there are only two safe values here: 1/4 and 1/8.\n\t\t\t\t//\t These options use the shaders ability to a free *|/ by 2|4|8.\n\t\t\t\t// The console setting has a different mapping than the quality setting.\n\t\t\t\t// Other platforms can use other values.\n\t\t\t\t//\t 0.125 leaves less aliasing, but is softer (default!!!)\n\t\t\t\t//\t 0.25 leaves more aliasing, and is sharper\n\t\t\t\tFxaaFloat fxaaConsoleEdgeThreshold,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// This used to be the FXAA_CONSOLE_EDGE_THRESHOLD_MIN define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// Trims the algorithm from processing darks.\n\t\t\t\t// The console setting has a different mapping than the quality setting.\n\t\t\t\t// This only applies when FXAA_EARLY_EXIT is 1.\n\t\t\t\t// This does not apply to PS3,\n\t\t\t\t// PS3 was simplified to avoid more shader instructions.\n\t\t\t\t//\t 0.06 - faster but more aliasing in darks\n\t\t\t\t//\t 0.05 - default\n\t\t\t\t//\t 0.04 - slower and less aliasing in darks\n\t\t\t\t// Special notes when using FXAA_GREEN_AS_LUMA,\n\t\t\t\t//\t Likely want to set this to zero.\n\t\t\t\t//\t As colors that are mostly not-green\n\t\t\t\t//\t will appear very dark in the green channel!\n\t\t\t\t//\t Tune by looking at mostly non-green content,\n\t\t\t\t//\t then start at zero and increase until aliasing is a problem.\n\t\t\t\tFxaaFloat fxaaConsoleEdgeThresholdMin,\n\t\t\t\t//\n\t\t\t\t// Extra constants for 360 FXAA Console only.\n\t\t\t\t// Use zeros or anything else for other platforms.\n\t\t\t\t// These must be in physical constant registers and NOT immediates.\n\t\t\t\t// Immediates will result in compiler un-optimizing.\n\t\t\t\t// {xyzw} = float4(1.0, -1.0, 0.25, -0.25)\n\t\t\t\tFxaaFloat4 fxaaConsole360ConstDir\n\t\t) {\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat2 posM;\n\t\t\t\tposM.x = pos.x;\n\t\t\t\tposM.y = pos.y;\n\t\t\t\t#if (FXAA_GATHER4_ALPHA == 1)\n\t\t\t\t\t\t#if (FXAA_DISCARD == 0)\n\t\t\t\t\t\t\t\tFxaaFloat4 rgbyM = FxaaTexTop(tex, posM);\n\t\t\t\t\t\t\t\t#if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\t\t\t\t\t\t\t#define lumaM rgbyM.w\n\t\t\t\t\t\t\t\t#else\n\t\t\t\t\t\t\t\t\t\t#define lumaM rgbyM.y\n\t\t\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\t\t\t\t\tFxaaFloat4 luma4A = FxaaTexAlpha4(tex, posM);\n\t\t\t\t\t\t\t\tFxaaFloat4 luma4B = FxaaTexOffAlpha4(tex, posM, FxaaInt2(-1, -1));\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\t\tFxaaFloat4 luma4A = FxaaTexGreen4(tex, posM);\n\t\t\t\t\t\t\t\tFxaaFloat4 luma4B = FxaaTexOffGreen4(tex, posM, FxaaInt2(-1, -1));\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#if (FXAA_DISCARD == 1)\n\t\t\t\t\t\t\t\t#define lumaM luma4A.w\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#define lumaE luma4A.z\n\t\t\t\t\t\t#define lumaS luma4A.x\n\t\t\t\t\t\t#define lumaSE luma4A.y\n\t\t\t\t\t\t#define lumaNW luma4B.w\n\t\t\t\t\t\t#define lumaN luma4B.z\n\t\t\t\t\t\t#define lumaW luma4B.x\n\t\t\t\t#else\n\t\t\t\t\t\tFxaaFloat4 rgbyM = FxaaTexTop(tex, posM);\n\t\t\t\t\t\t#if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\t\t\t\t\t#define lumaM rgbyM.w\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\t\t#define lumaM rgbyM.y\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#if (FXAA_GLSL_100 == 1)\n\t\t\t\t\t\t\tFxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0, 1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 0.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0,-1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 0.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\tFxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0, 1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0,-1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t#endif\n\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat maxSM = max(lumaS, lumaM);\n\t\t\t\tFxaaFloat minSM = min(lumaS, lumaM);\n\t\t\t\tFxaaFloat maxESM = max(lumaE, maxSM);\n\t\t\t\tFxaaFloat minESM = min(lumaE, minSM);\n\t\t\t\tFxaaFloat maxWN = max(lumaN, lumaW);\n\t\t\t\tFxaaFloat minWN = min(lumaN, lumaW);\n\t\t\t\tFxaaFloat rangeMax = max(maxWN, maxESM);\n\t\t\t\tFxaaFloat rangeMin = min(minWN, minESM);\n\t\t\t\tFxaaFloat rangeMaxScaled = rangeMax * fxaaQualityEdgeThreshold;\n\t\t\t\tFxaaFloat range = rangeMax - rangeMin;\n\t\t\t\tFxaaFloat rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);\n\t\t\t\tFxaaBool earlyExit = range < rangeMaxClamped;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tif(earlyExit)\n\t\t\t\t\t\t#if (FXAA_DISCARD == 1)\n\t\t\t\t\t\t\t\tFxaaDiscard;\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\t\treturn rgbyM;\n\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t#if (FXAA_GATHER4_ALPHA == 0)\n\t\t\t\t\t\t#if (FXAA_GLSL_100 == 1)\n\t\t\t\t\t\t\tFxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0,-1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0,-1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\tFxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1,-1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1,-1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t#endif\n\t\t\t\t#else\n\t\t\t\t\t\tFxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(1, -1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\tFxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));\n\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat lumaNS = lumaN + lumaS;\n\t\t\t\tFxaaFloat lumaWE = lumaW + lumaE;\n\t\t\t\tFxaaFloat subpixRcpRange = 1.0/range;\n\t\t\t\tFxaaFloat subpixNSWE = lumaNS + lumaWE;\n\t\t\t\tFxaaFloat edgeHorz1 = (-2.0 * lumaM) + lumaNS;\n\t\t\t\tFxaaFloat edgeVert1 = (-2.0 * lumaM) + lumaWE;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat lumaNESE = lumaNE + lumaSE;\n\t\t\t\tFxaaFloat lumaNWNE = lumaNW + lumaNE;\n\t\t\t\tFxaaFloat edgeHorz2 = (-2.0 * lumaE) + lumaNESE;\n\t\t\t\tFxaaFloat edgeVert2 = (-2.0 * lumaN) + lumaNWNE;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat lumaNWSW = lumaNW + lumaSW;\n\t\t\t\tFxaaFloat lumaSWSE = lumaSW + lumaSE;\n\t\t\t\tFxaaFloat edgeHorz4 = (abs(edgeHorz1) * 2.0) + abs(edgeHorz2);\n\t\t\t\tFxaaFloat edgeVert4 = (abs(edgeVert1) * 2.0) + abs(edgeVert2);\n\t\t\t\tFxaaFloat edgeHorz3 = (-2.0 * lumaW) + lumaNWSW;\n\t\t\t\tFxaaFloat edgeVert3 = (-2.0 * lumaS) + lumaSWSE;\n\t\t\t\tFxaaFloat edgeHorz = abs(edgeHorz3) + edgeHorz4;\n\t\t\t\tFxaaFloat edgeVert = abs(edgeVert3) + edgeVert4;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat subpixNWSWNESE = lumaNWSW + lumaNESE;\n\t\t\t\tFxaaFloat lengthSign = fxaaQualityRcpFrame.x;\n\t\t\t\tFxaaBool horzSpan = edgeHorz >= edgeVert;\n\t\t\t\tFxaaFloat subpixA = subpixNSWE * 2.0 + subpixNWSWNESE;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tif(!horzSpan) lumaN = lumaW;\n\t\t\t\tif(!horzSpan) lumaS = lumaE;\n\t\t\t\tif(horzSpan) lengthSign = fxaaQualityRcpFrame.y;\n\t\t\t\tFxaaFloat subpixB = (subpixA * (1.0/12.0)) - lumaM;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat gradientN = lumaN - lumaM;\n\t\t\t\tFxaaFloat gradientS = lumaS - lumaM;\n\t\t\t\tFxaaFloat lumaNN = lumaN + lumaM;\n\t\t\t\tFxaaFloat lumaSS = lumaS + lumaM;\n\t\t\t\tFxaaBool pairN = abs(gradientN) >= abs(gradientS);\n\t\t\t\tFxaaFloat gradient = max(abs(gradientN), abs(gradientS));\n\t\t\t\tif(pairN) lengthSign = -lengthSign;\n\t\t\t\tFxaaFloat subpixC = FxaaSat(abs(subpixB) * subpixRcpRange);\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat2 posB;\n\t\t\t\tposB.x = posM.x;\n\t\t\t\tposB.y = posM.y;\n\t\t\t\tFxaaFloat2 offNP;\n\t\t\t\toffNP.x = (!horzSpan) ? 0.0 : fxaaQualityRcpFrame.x;\n\t\t\t\toffNP.y = ( horzSpan) ? 0.0 : fxaaQualityRcpFrame.y;\n\t\t\t\tif(!horzSpan) posB.x += lengthSign * 0.5;\n\t\t\t\tif( horzSpan) posB.y += lengthSign * 0.5;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat2 posN;\n\t\t\t\tposN.x = posB.x - offNP.x * FXAA_QUALITY_P0;\n\t\t\t\tposN.y = posB.y - offNP.y * FXAA_QUALITY_P0;\n\t\t\t\tFxaaFloat2 posP;\n\t\t\t\tposP.x = posB.x + offNP.x * FXAA_QUALITY_P0;\n\t\t\t\tposP.y = posB.y + offNP.y * FXAA_QUALITY_P0;\n\t\t\t\tFxaaFloat subpixD = ((-2.0)*subpixC) + 3.0;\n\t\t\t\tFxaaFloat lumaEndN = FxaaLuma(FxaaTexTop(tex, posN));\n\t\t\t\tFxaaFloat subpixE = subpixC * subpixC;\n\t\t\t\tFxaaFloat lumaEndP = FxaaLuma(FxaaTexTop(tex, posP));\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tif(!pairN) lumaNN = lumaSS;\n\t\t\t\tFxaaFloat gradientScaled = gradient * 1.0/4.0;\n\t\t\t\tFxaaFloat lumaMM = lumaM - lumaNN * 0.5;\n\t\t\t\tFxaaFloat subpixF = subpixD * subpixE;\n\t\t\t\tFxaaBool lumaMLTZero = lumaMM < 0.0;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tlumaEndN -= lumaNN * 0.5;\n\t\t\t\tlumaEndP -= lumaNN * 0.5;\n\t\t\t\tFxaaBool doneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\tFxaaBool doneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P1;\n\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P1;\n\t\t\t\tFxaaBool doneNP = (!doneN) || (!doneP);\n\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P1;\n\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P1;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tif(doneNP) {\n\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P2;\n\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P2;\n\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P2;\n\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P2;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 3)\n\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P3;\n\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P3;\n\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P3;\n\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P3;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 4)\n\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P4;\n\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P4;\n\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P4;\n\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P4;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 5)\n\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P5;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P5;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P5;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P5;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 6)\n\t\t\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P6;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P6;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P6;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P6;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 7)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P7;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P7;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P7;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P7;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t#if (FXAA_QUALITY_PS > 8)\n\t\t\t\tif(doneNP) {\n\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P8;\n\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P8;\n\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P8;\n\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P8;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 9)\n\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P9;\n\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P9;\n\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P9;\n\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P9;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 10)\n\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P10;\n\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P10;\n\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P10;\n\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P10;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 11)\n\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P11;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P11;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P11;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P11;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 12)\n\t\t\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P12;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P12;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P12;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P12;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t}\n\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t}\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat dstN = posM.x - posN.x;\n\t\t\t\tFxaaFloat dstP = posP.x - posM.x;\n\t\t\t\tif(!horzSpan) dstN = posM.y - posN.y;\n\t\t\t\tif(!horzSpan) dstP = posP.y - posM.y;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaBool goodSpanN = (lumaEndN < 0.0) != lumaMLTZero;\n\t\t\t\tFxaaFloat spanLength = (dstP + dstN);\n\t\t\t\tFxaaBool goodSpanP = (lumaEndP < 0.0) != lumaMLTZero;\n\t\t\t\tFxaaFloat spanLengthRcp = 1.0/spanLength;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaBool directionN = dstN < dstP;\n\t\t\t\tFxaaFloat dst = min(dstN, dstP);\n\t\t\t\tFxaaBool goodSpan = directionN ? goodSpanN : goodSpanP;\n\t\t\t\tFxaaFloat subpixG = subpixF * subpixF;\n\t\t\t\tFxaaFloat pixelOffset = (dst * (-spanLengthRcp)) + 0.5;\n\t\t\t\tFxaaFloat subpixH = subpixG * fxaaQualitySubpix;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat pixelOffsetGood = goodSpan ? pixelOffset : 0.0;\n\t\t\t\tFxaaFloat pixelOffsetSubpix = max(pixelOffsetGood, subpixH);\n\t\t\t\tif(!horzSpan) posM.x += pixelOffsetSubpix * lengthSign;\n\t\t\t\tif( horzSpan) posM.y += pixelOffsetSubpix * lengthSign;\n\t\t\t\t#if (FXAA_DISCARD == 1)\n\t\t\t\t\t\treturn FxaaTexTop(tex, posM);\n\t\t\t\t#else\n\t\t\t\t\t\treturn FxaaFloat4(FxaaTexTop(tex, posM).xyz, lumaM);\n\t\t\t\t#endif\n\t\t}\n\t\t/*==========================================================================*/\n\t\t#endif\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = FxaaPixelShader(\n\t\t\t\tvUv,\n\t\t\t\tvec4(0.0),\n\t\t\t\ttDiffuse,\n\t\t\t\ttDiffuse,\n\t\t\t\ttDiffuse,\n\t\t\t\tresolution,\n\t\t\t\tvec4(0.0),\n\t\t\t\tvec4(0.0),\n\t\t\t\tvec4(0.0),\n\t\t\t\t0.75,\n\t\t\t\t0.166,\n\t\t\t\t0.0833,\n\t\t\t\t0.0,\n\t\t\t\t0.0,\n\t\t\t\t0.0,\n\t\t\t\tvec4(0.0)\n\t\t\t);\n\n\t\t\t// TODO avoid querying texture twice for same texel\n\t\t\tgl_FragColor.a = texture2D(tDiffuse, vUv).a;\n\t\t}'}},"6cac":function(t,e,n){"use strict";function i(t){var e=t.attr(),n=e.x,i=e.y,r=e.r;return{x:n-r,y:i-r,width:2*r,height:2*r}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"6d3b":function(t,e,n){"use strict";var i,r,o,a=n("ff17"),s=n("26ad"),l=n("70a4");function c(){var t=Object(a["b"])(),e=Object(a["a"])();return{touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!t.PointerEvent&&"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>=0,observer:function(){return"MutationObserver"in t||"WebkitMutationObserver"in t}(),passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(i){}return e}(),gestures:function(){return"ongesturestart"in t}()}}function u(){return i||(i=c()),i}function h(t){var e=void 0===t?{}:t,n=e.userAgent,i=u(),r=Object(a["b"])(),o=r.navigator.platform,s=n||r.navigator.userAgent,l={ios:!1,android:!1},c=r.screen.width,h=r.screen.height,d=s.match(/(Android);?[\s\/]+([\d.]+)?/),p=s.match(/(iPad).*OS\s([\d_]+)/),f=s.match(/(iPod)(.*OS\s([\d_]+))?/),g=!p&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===o,v="MacIntel"===o,y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!p&&v&&i.touch&&y.indexOf(c+"x"+h)>=0&&(p=s.match(/(Version)\/([\d.]+)/),p||(p=[0,1,"13_0_0"]),v=!1),d&&!m&&(l.os="android",l.android=!0),(p||g||f)&&(l.os="ios",l.ios=!0),l}function d(t){return void 0===t&&(t={}),r||(r=h(t)),r}function p(){var t=Object(a["b"])();function e(){var e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function f(){return o||(o=p()),o}var g=function(){var t=Object(a["b"])();return"undefined"!==typeof t.ResizeObserver},m={name:"resize",create:function(){var t=this;Object(l["e"])(t,{resize:{observer:null,createObserver:function(){t&&!t.destroyed&&t.initialized&&(t.resize.observer=new ResizeObserver((function(e){var n=t.width,i=t.height,r=n,o=i;e.forEach((function(e){var n=e.contentBoxSize,i=e.contentRect,a=e.target;a&&a!==t.el||(r=i?i.width:(n[0]||n).inlineSize,o=i?i.height:(n[0]||n).blockSize)})),r===n&&o===i||t.resize.resizeHandler()})),t.resize.observer.observe(t.el))},removeObserver:function(){t.resize.observer&&t.resize.observer.unobserve&&t.el&&(t.resize.observer.unobserve(t.el),t.resize.observer=null)},resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(t){var e=Object(a["b"])();t.params.resizeObserver&&g()?t.resize.createObserver():(e.addEventListener("resize",t.resize.resizeHandler),e.addEventListener("orientationchange",t.resize.orientationChangeHandler))},destroy:function(t){var e=Object(a["b"])();t.resize.removeObserver(),e.removeEventListener("resize",t.resize.resizeHandler),e.removeEventListener("orientationchange",t.resize.orientationChangeHandler)}}};function v(){return v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},v.apply(this,arguments)}var y={attach:function(t,e){void 0===e&&(e={});var n=Object(a["b"])(),i=this,r=n.MutationObserver||n.WebkitMutationObserver,o=new r((function(t){if(1!==t.length){var e=function(){i.emit("observerUpdate",t[0])};n.requestAnimationFrame?n.requestAnimationFrame(e):n.setTimeout(e,0)}else i.emit("observerUpdate",t[0])}));o.observe(t,{attributes:"undefined"===typeof e.attributes||e.attributes,childList:"undefined"===typeof e.childList||e.childList,characterData:"undefined"===typeof e.characterData||e.characterData}),i.observer.observers.push(o)},init:function(){var t=this;if(t.support.observer&&t.params.observer){if(t.params.observeParents)for(var e=t.$el.parents(),n=0;n<e.length;n+=1)t.observer.attach(e[n]);t.observer.attach(t.$el[0],{childList:t.params.observeSlideChildren}),t.observer.attach(t.$wrapperEl[0],{attributes:!1})}},destroy:function(){var t=this;t.observer.observers.forEach((function(t){t.disconnect()})),t.observer.observers=[]}},b={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var t=this;Object(l["a"])(t,{observer:v({},y,{observers:[]})})},on:{init:function(t){t.observer.init()},destroy:function(t){t.observer.destroy()}}},x={useParams:function(t){var e=this;e.modules&&Object.keys(e.modules).forEach((function(n){var i=e.modules[n];i.params&&Object(l["e"])(t,i.params)}))},useModules:function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach((function(n){var i=e.modules[n],r=t[n]||{};i.on&&e.on&&Object.keys(i.on).forEach((function(t){e.on(t,i.on[t])})),i.create&&i.create.bind(e)(r)}))}},w={on:function(t,e,n){var i=this;if("function"!==typeof e)return i;var r=n?"unshift":"push";return t.split(" ").forEach((function(t){i.eventsListeners[t]||(i.eventsListeners[t]=[]),i.eventsListeners[t][r](e)})),i},once:function(t,e,n){var i=this;if("function"!==typeof e)return i;function r(){i.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];e.apply(i,o)}return r.__emitterProxy=e,i.on(t,r,n)},onAny:function(t,e){var n=this;if("function"!==typeof t)return n;var i=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[i](t),n},offAny:function(t){var e=this;if(!e.eventsAnyListeners)return e;var n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off:function(t,e){var n=this;return n.eventsListeners?(t.split(" ").forEach((function(t){"undefined"===typeof e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].forEach((function(i,r){(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[t].splice(r,1)}))})),n):n},emit:function(){var t,e,n,i=this;if(!i.eventsListeners)return i;for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];"string"===typeof o[0]||Array.isArray(o[0])?(t=o[0],e=o.slice(1,o.length),n=i):(t=o[0].events,e=o[0].data,n=o[0].context||i),e.unshift(n);var s=Array.isArray(t)?t:t.split(" ");return s.forEach((function(t){i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach((function(i){i.apply(n,[t].concat(e))})),i.eventsListeners&&i.eventsListeners[t]&&i.eventsListeners[t].forEach((function(t){t.apply(n,e)}))})),i}};function _(){var t,e,n=this,i=n.$el;t="undefined"!==typeof n.params.width&&null!==n.params.width?n.params.width:i[0].clientWidth,e="undefined"!==typeof n.params.height&&null!==n.params.height?n.params.height:i[0].clientHeight,0===t&&n.isHorizontal()||0===e&&n.isVertical()||(t=t-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),e=e-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(e)&&(e=0),Object(l["e"])(n,{width:t,height:e,size:n.isHorizontal()?t:e}))}function C(){var t=this;function e(e){return t.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function n(t,n){return parseFloat(t.getPropertyValue(e(n))||0)}var i=t.params,r=t.$wrapperEl,o=t.size,a=t.rtlTranslate,s=t.wrongRTL,c=t.virtual&&i.virtual.enabled,u=c?t.virtual.slides.length:t.slides.length,h=r.children("."+t.params.slideClass),d=c?t.virtual.slides.length:h.length,p=[],f=[],g=[],m=i.slidesOffsetBefore;"function"===typeof m&&(m=i.slidesOffsetBefore.call(t));var v=i.slidesOffsetAfter;"function"===typeof v&&(v=i.slidesOffsetAfter.call(t));var y=t.snapGrid.length,b=t.slidesGrid.length,x=i.spaceBetween,w=-m,_=0,C=0;if("undefined"!==typeof o){var A,I;"string"===typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*o),t.virtualSize=-x,a?h.css({marginLeft:"",marginBottom:"",marginTop:""}):h.css({marginRight:"",marginBottom:"",marginTop:""}),i.slidesPerColumn>1&&(A=Math.floor(d/i.slidesPerColumn)===d/t.params.slidesPerColumn?d:Math.ceil(d/i.slidesPerColumn)*i.slidesPerColumn,"auto"!==i.slidesPerView&&"row"===i.slidesPerColumnFill&&(A=Math.max(A,i.slidesPerView*i.slidesPerColumn)));for(var S,M,k,E=i.slidesPerColumn,T=A/E,O=Math.floor(d/i.slidesPerColumn),P=0;P<d;P+=1){I=0;var j=h.eq(P);if(i.slidesPerColumn>1){var L=void 0,D=void 0,R=void 0;if("row"===i.slidesPerColumnFill&&i.slidesPerGroup>1){var B=Math.floor(P/(i.slidesPerGroup*i.slidesPerColumn)),N=P-i.slidesPerColumn*i.slidesPerGroup*B,F=0===B?i.slidesPerGroup:Math.min(Math.ceil((d-B*E*i.slidesPerGroup)/E),i.slidesPerGroup);R=Math.floor(N/F),D=N-R*F+B*i.slidesPerGroup,L=D+R*A/E,j.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===i.slidesPerColumnFill?(D=Math.floor(P/E),R=P-D*E,(D>O||D===O&&R===E-1)&&(R+=1,R>=E&&(R=0,D+=1))):(R=Math.floor(P/T),D=P-R*T);j.css(e("margin-top"),0!==R?i.spaceBetween&&i.spaceBetween+"px":"")}if("none"!==j.css("display")){if("auto"===i.slidesPerView){var z=getComputedStyle(j[0]),V=j[0].style.transform,G=j[0].style.webkitTransform;if(V&&(j[0].style.transform="none"),G&&(j[0].style.webkitTransform="none"),i.roundLengths)I=t.isHorizontal()?j.outerWidth(!0):j.outerHeight(!0);else{var H=n(z,"width"),W=n(z,"padding-left"),U=n(z,"padding-right"),Z=n(z,"margin-left"),Y=n(z,"margin-right"),X=z.getPropertyValue("box-sizing");if(X&&"border-box"===X)I=H+Z+Y;else{var q=j[0],K=q.clientWidth,Q=q.offsetWidth;I=H+W+U+Z+Y+(Q-K)}}V&&(j[0].style.transform=V),G&&(j[0].style.webkitTransform=G),i.roundLengths&&(I=Math.floor(I))}else I=(o-(i.slidesPerView-1)*x)/i.slidesPerView,i.roundLengths&&(I=Math.floor(I)),h[P]&&(h[P].style[e("width")]=I+"px");h[P]&&(h[P].swiperSlideSize=I),g.push(I),i.centeredSlides?(w=w+I/2+_/2+x,0===_&&0!==P&&(w=w-o/2-x),0===P&&(w=w-o/2-x),Math.abs(w)<.001&&(w=0),i.roundLengths&&(w=Math.floor(w)),C%i.slidesPerGroup===0&&p.push(w),f.push(w)):(i.roundLengths&&(w=Math.floor(w)),(C-Math.min(t.params.slidesPerGroupSkip,C))%t.params.slidesPerGroup===0&&p.push(w),f.push(w),w=w+I+x),t.virtualSize+=I+x,_=I,C+=1}}if(t.virtualSize=Math.max(t.virtualSize,o)+v,a&&s&&("slide"===i.effect||"coverflow"===i.effect)&&r.css({width:t.virtualSize+i.spaceBetween+"px"}),i.setWrapperSize)r.css((M={},M[e("width")]=t.virtualSize+i.spaceBetween+"px",M));if(i.slidesPerColumn>1)if(t.virtualSize=(I+i.spaceBetween)*A,t.virtualSize=Math.ceil(t.virtualSize/i.slidesPerColumn)-i.spaceBetween,r.css((k={},k[e("width")]=t.virtualSize+i.spaceBetween+"px",k)),i.centeredSlides){S=[];for(var J=0;J<p.length;J+=1){var $=p[J];i.roundLengths&&($=Math.floor($)),p[J]<t.virtualSize+p[0]&&S.push($)}p=S}if(!i.centeredSlides){S=[];for(var tt=0;tt<p.length;tt+=1){var et=p[tt];i.roundLengths&&(et=Math.floor(et)),p[tt]<=t.virtualSize-o&&S.push(et)}p=S,Math.floor(t.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(t.virtualSize-o)}if(0===p.length&&(p=[0]),0!==i.spaceBetween){var nt,it=t.isHorizontal()&&a?"marginLeft":e("marginRight");h.filter((function(t,e){return!i.cssMode||e!==h.length-1})).css((nt={},nt[it]=x+"px",nt))}if(i.centeredSlides&&i.centeredSlidesBounds){var rt=0;g.forEach((function(t){rt+=t+(i.spaceBetween?i.spaceBetween:0)})),rt-=i.spaceBetween;var ot=rt-o;p=p.map((function(t){return t<0?-m:t>ot?ot+v:t}))}if(i.centerInsufficientSlides){var at=0;if(g.forEach((function(t){at+=t+(i.spaceBetween?i.spaceBetween:0)})),at-=i.spaceBetween,at<o){var st=(o-at)/2;p.forEach((function(t,e){p[e]=t-st})),f.forEach((function(t,e){f[e]=t+st}))}}Object(l["e"])(t,{slides:h,snapGrid:p,slidesGrid:f,slidesSizesGrid:g}),d!==u&&t.emit("slidesLengthChange"),p.length!==y&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==b&&t.emit("slidesGridLengthChange"),(i.watchSlidesProgress||i.watchSlidesVisibility)&&t.updateSlidesOffset()}}function A(t){var e,n=this,i=[],r=n.virtual&&n.params.virtual.enabled,o=0;"number"===typeof t?n.setTransition(t):!0===t&&n.setTransition(n.params.speed);var a=function(t){return r?n.slides.filter((function(e){return parseInt(e.getAttribute("data-swiper-slide-index"),10)===t}))[0]:n.slides.eq(t)[0]};if("auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)if(n.params.centeredSlides)n.visibleSlides.each((function(t){i.push(t)}));else for(e=0;e<Math.ceil(n.params.slidesPerView);e+=1){var s=n.activeIndex+e;if(s>n.slides.length&&!r)break;i.push(a(s))}else i.push(a(n.activeIndex));for(e=0;e<i.length;e+=1)if("undefined"!==typeof i[e]){var l=i[e].offsetHeight;o=l>o?l:o}o&&n.$wrapperEl.css("height",o+"px")}function I(){for(var t=this,e=t.slides,n=0;n<e.length;n+=1)e[n].swiperSlideOffset=t.isHorizontal()?e[n].offsetLeft:e[n].offsetTop}function S(t){void 0===t&&(t=this&&this.translate||0);var e=this,n=e.params,i=e.slides,r=e.rtlTranslate;if(0!==i.length){"undefined"===typeof i[0].swiperSlideOffset&&e.updateSlidesOffset();var o=-t;r&&(o=t),i.removeClass(n.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(var a=0;a<i.length;a+=1){var l=i[a],c=(o+(n.centeredSlides?e.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.autoHeight){var u=-(o-l.swiperSlideOffset),h=u+e.slidesSizesGrid[a],d=u>=0&&u<e.size-1||h>1&&h<=e.size||u<=0&&h>=e.size;d&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(a),i.eq(a).addClass(n.slideVisibleClass))}l.progress=r?-c:c}e.visibleSlides=Object(s["a"])(e.visibleSlides)}}function M(t){var e=this;if("undefined"===typeof t){var n=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*n||0}var i=e.params,r=e.maxTranslate()-e.minTranslate(),o=e.progress,a=e.isBeginning,s=e.isEnd,c=a,u=s;0===r?(o=0,a=!0,s=!0):(o=(t-e.minTranslate())/r,a=o<=0,s=o>=1),Object(l["e"])(e,{progress:o,isBeginning:a,isEnd:s}),(i.watchSlidesProgress||i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),a&&!c&&e.emit("reachBeginning toEdge"),s&&!u&&e.emit("reachEnd toEdge"),(c&&!a||u&&!s)&&e.emit("fromEdge"),e.emit("progress",o)}function k(){var t,e=this,n=e.slides,i=e.params,r=e.$wrapperEl,o=e.activeIndex,a=e.realIndex,s=e.virtual&&i.virtual.enabled;n.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),t=s?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+o+'"]'):n.eq(o),t.addClass(i.slideActiveClass),i.loop&&(t.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass));var l=t.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=n.eq(0),l.addClass(i.slideNextClass));var c=t.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===c.length&&(c=n.eq(-1),c.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),c.hasClass(i.slideDuplicateClass)?r.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):r.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass)),e.emitSlidesClasses()}function E(t){var e,n=this,i=n.rtlTranslate?n.translate:-n.translate,r=n.slidesGrid,o=n.snapGrid,a=n.params,s=n.activeIndex,c=n.realIndex,u=n.snapIndex,h=t;if("undefined"===typeof h){for(var d=0;d<r.length;d+=1)"undefined"!==typeof r[d+1]?i>=r[d]&&i<r[d+1]-(r[d+1]-r[d])/2?h=d:i>=r[d]&&i<r[d+1]&&(h=d+1):i>=r[d]&&(h=d);a.normalizeSlideIndex&&(h<0||"undefined"===typeof h)&&(h=0)}if(o.indexOf(i)>=0)e=o.indexOf(i);else{var p=Math.min(a.slidesPerGroupSkip,h);e=p+Math.floor((h-p)/a.slidesPerGroup)}if(e>=o.length&&(e=o.length-1),h!==s){var f=parseInt(n.slides.eq(h).attr("data-swiper-slide-index")||h,10);Object(l["e"])(n,{snapIndex:e,realIndex:f,previousIndex:s,activeIndex:h}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),c!==f&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else e!==u&&(n.snapIndex=e,n.emit("snapIndexChange"))}function T(t){var e,n=this,i=n.params,r=Object(s["a"])(t.target).closest("."+i.slideClass)[0],o=!1;if(r)for(var a=0;a<n.slides.length;a+=1)if(n.slides[a]===r){o=!0,e=a;break}if(!r||!o)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(Object(s["a"])(r).attr("data-swiper-slide-index"),10):n.clickedIndex=e,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var O={updateSize:_,updateSlides:C,updateAutoHeight:A,updateSlidesOffset:I,updateSlidesProgress:S,updateProgress:M,updateSlidesClasses:k,updateActiveIndex:E,updateClickedSlide:T};function P(t){void 0===t&&(t=this.isHorizontal()?"x":"y");var e=this,n=e.params,i=e.rtlTranslate,r=e.translate,o=e.$wrapperEl;if(n.virtualTranslate)return i?-r:r;if(n.cssMode)return r;var a=Object(l["f"])(o[0],t);return i&&(a=-a),a||0}function j(t,e){var n,i=this,r=i.rtlTranslate,o=i.params,a=i.$wrapperEl,s=i.wrapperEl,l=i.progress,c=0,u=0,h=0;i.isHorizontal()?c=r?-t:t:u=t,o.roundLengths&&(c=Math.floor(c),u=Math.floor(u)),o.cssMode?s[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-c:-u:o.virtualTranslate||a.transform("translate3d("+c+"px, "+u+"px, "+h+"px)"),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?c:u;var d=i.maxTranslate()-i.minTranslate();n=0===d?0:(t-i.minTranslate())/d,n!==l&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)}function L(){return-this.snapGrid[0]}function D(){return-this.snapGrid[this.snapGrid.length-1]}function R(t,e,n,i,r){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);var o=this,a=o.params,s=o.wrapperEl;if(o.animating&&a.preventInteractionOnTransition)return!1;var l,c=o.minTranslate(),u=o.maxTranslate();if(l=i&&t>c?c:i&&t<u?u:t,o.updateProgress(l),a.cssMode){var h,d=o.isHorizontal();if(0===e)s[d?"scrollLeft":"scrollTop"]=-l;else if(s.scrollTo)s.scrollTo((h={},h[d?"left":"top"]=-l,h.behavior="smooth",h));else s[d?"scrollLeft":"scrollTop"]=-l;return!0}return 0===e?(o.setTransition(0),o.setTranslate(l),n&&(o.emit("beforeTransitionStart",e,r),o.emit("transitionEnd"))):(o.setTransition(e),o.setTranslate(l),n&&(o.emit("beforeTransitionStart",e,r),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(t){o&&!o.destroyed&&t.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.$wrapperEl[0].addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onTranslateToWrapperTransitionEnd))),!0}var B={getTranslate:P,setTranslate:j,minTranslate:L,maxTranslate:D,translateTo:R};function N(t,e){var n=this;n.params.cssMode||n.$wrapperEl.transition(t),n.emit("setTransition",t,e)}function F(t,e){void 0===t&&(t=!0);var n=this,i=n.activeIndex,r=n.params,o=n.previousIndex;if(!r.cssMode){r.autoHeight&&n.updateAutoHeight();var a=e;if(a||(a=i>o?"next":i<o?"prev":"reset"),n.emit("transitionStart"),t&&i!==o){if("reset"===a)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===a?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}}function z(t,e){void 0===t&&(t=!0);var n=this,i=n.activeIndex,r=n.previousIndex,o=n.params;if(n.animating=!1,!o.cssMode){n.setTransition(0);var a=e;if(a||(a=i>r?"next":i<r?"prev":"reset"),n.emit("transitionEnd"),t&&i!==r){if("reset"===a)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===a?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}}var V={setTransition:N,transitionStart:F,transitionEnd:z};function G(t,e,n,i,r){if(void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0),"number"!==typeof t&&"string"!==typeof t)throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof t+"] given.");if("string"===typeof t){var o=parseInt(t,10),a=isFinite(o);if(!a)throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+t+"] given.");t=o}var s=this,l=t;l<0&&(l=0);var c=s.params,u=s.snapGrid,h=s.slidesGrid,d=s.previousIndex,p=s.activeIndex,f=s.rtlTranslate,g=s.wrapperEl,m=s.enabled;if(s.animating&&c.preventInteractionOnTransition||!m&&!i&&!r)return!1;var v=Math.min(s.params.slidesPerGroupSkip,l),y=v+Math.floor((l-v)/s.params.slidesPerGroup);y>=u.length&&(y=u.length-1),(p||c.initialSlide||0)===(d||0)&&n&&s.emit("beforeSlideChangeStart");var b,x=-u[y];if(s.updateProgress(x),c.normalizeSlideIndex)for(var w=0;w<h.length;w+=1){var _=-Math.floor(100*x),C=Math.floor(100*h[w]),A=Math.floor(100*h[w+1]);"undefined"!==typeof h[w+1]?_>=C&&_<A-(A-C)/2?l=w:_>=C&&_<A&&(l=w+1):_>=C&&(l=w)}if(s.initialized&&l!==p){if(!s.allowSlideNext&&x<s.translate&&x<s.minTranslate())return!1;if(!s.allowSlidePrev&&x>s.translate&&x>s.maxTranslate()&&(p||0)!==l)return!1}if(b=l>p?"next":l<p?"prev":"reset",f&&-x===s.translate||!f&&x===s.translate)return s.updateActiveIndex(l),c.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==c.effect&&s.setTranslate(x),"reset"!==b&&(s.transitionStart(n,b),s.transitionEnd(n,b)),!1;if(c.cssMode){var I,S=s.isHorizontal(),M=-x;if(f&&(M=g.scrollWidth-g.offsetWidth-M),0===e)g[S?"scrollLeft":"scrollTop"]=M;else if(g.scrollTo)g.scrollTo((I={},I[S?"left":"top"]=M,I.behavior="smooth",I));else g[S?"scrollLeft":"scrollTop"]=M;return!0}return 0===e?(s.setTransition(0),s.setTranslate(x),s.updateActiveIndex(l),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,i),s.transitionStart(n,b),s.transitionEnd(n,b)):(s.setTransition(e),s.setTranslate(x),s.updateActiveIndex(l),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,i),s.transitionStart(n,b),s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,b))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd))),!0}function H(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0);var r=this,o=t;return r.params.loop&&(o+=r.loopedSlides),r.slideTo(o,e,n,i)}function W(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this,r=i.params,o=i.animating,a=i.enabled;if(!a)return i;var s=i.activeIndex<r.slidesPerGroupSkip?1:r.slidesPerGroup;if(r.loop){if(o&&r.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}return i.slideTo(i.activeIndex+s,t,e,n)}function U(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this,r=i.params,o=i.animating,a=i.snapGrid,s=i.slidesGrid,l=i.rtlTranslate,c=i.enabled;if(!c)return i;if(r.loop){if(o&&r.loopPreventsSlide)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}var u=l?i.translate:-i.translate;function h(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var d,p=h(u),f=a.map((function(t){return h(t)})),g=a[f.indexOf(p)-1];return"undefined"===typeof g&&r.cssMode&&a.forEach((function(t){!g&&p>=t&&(g=t)})),"undefined"!==typeof g&&(d=s.indexOf(g),d<0&&(d=i.activeIndex-1)),i.slideTo(d,t,e,n)}function Z(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this;return i.slideTo(i.activeIndex,t,e,n)}function Y(t,e,n,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),void 0===i&&(i=.5);var r=this,o=r.activeIndex,a=Math.min(r.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[s]){var c=r.snapGrid[s],u=r.snapGrid[s+1];l-c>(u-c)*i&&(o+=r.params.slidesPerGroup)}else{var h=r.snapGrid[s-1],d=r.snapGrid[s];l-h<=(d-h)*i&&(o-=r.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,r.slidesGrid.length-1),r.slideTo(o,t,e,n)}function X(){var t,e=this,n=e.params,i=e.$wrapperEl,r="auto"===n.slidesPerView?e.slidesPerViewDynamic():n.slidesPerView,o=e.clickedIndex;if(n.loop){if(e.animating)return;t=parseInt(Object(s["a"])(e.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?o<e.loopedSlides-r/2||o>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),o=i.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Object(l["h"])((function(){e.slideTo(o)}))):e.slideTo(o):o>e.slides.length-r?(e.loopFix(),o=i.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Object(l["h"])((function(){e.slideTo(o)}))):e.slideTo(o)}else e.slideTo(o)}var q={slideTo:G,slideToLoop:H,slideNext:W,slidePrev:U,slideReset:Z,slideToClosest:Y,slideToClickedSlide:X};function K(){var t=this,e=Object(a["a"])(),n=t.params,i=t.$wrapperEl;i.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var r=i.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var o=n.slidesPerGroup-r.length%n.slidesPerGroup;if(o!==n.slidesPerGroup){for(var l=0;l<o;l+=1){var c=Object(s["a"])(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);i.append(c)}r=i.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=r.length),t.loopedSlides=Math.ceil(parseFloat(n.loopedSlides||n.slidesPerView,10)),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);var u=[],h=[];r.each((function(e,n){var i=Object(s["a"])(e);n<t.loopedSlides&&h.push(e),n<r.length&&n>=r.length-t.loopedSlides&&u.push(e),i.attr("data-swiper-slide-index",n)}));for(var d=0;d<h.length;d+=1)i.append(Object(s["a"])(h[d].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var p=u.length-1;p>=0;p-=1)i.prepend(Object(s["a"])(u[p].cloneNode(!0)).addClass(n.slideDuplicateClass))}function Q(){var t=this;t.emit("beforeLoopFix");var e,n=t.activeIndex,i=t.slides,r=t.loopedSlides,o=t.allowSlidePrev,a=t.allowSlideNext,s=t.snapGrid,l=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-s[n],u=c-t.getTranslate();if(n<r){e=i.length-3*r+n,e+=r;var h=t.slideTo(e,0,!1,!0);h&&0!==u&&t.setTranslate((l?-t.translate:t.translate)-u)}else if(n>=i.length-r){e=-i.length+n+r,e+=r;var d=t.slideTo(e,0,!1,!0);d&&0!==u&&t.setTranslate((l?-t.translate:t.translate)-u)}t.allowSlidePrev=o,t.allowSlideNext=a,t.emit("loopFix")}function J(){var t=this,e=t.$wrapperEl,n=t.params,i=t.slides;e.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}var $={loopCreate:K,loopFix:Q,loopDestroy:J};function tt(t){var e=this;if(!(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)){var n=e.el;n.style.cursor="move",n.style.cursor=t?"-webkit-grabbing":"-webkit-grab",n.style.cursor=t?"-moz-grabbin":"-moz-grab",n.style.cursor=t?"grabbing":"grab"}}function et(){var t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.el.style.cursor="")}var nt={setGrabCursor:tt,unsetGrabCursor:et};function it(t){var e=this,n=e.$wrapperEl,i=e.params;if(i.loop&&e.loopDestroy(),"object"===typeof t&&"length"in t)for(var r=0;r<t.length;r+=1)t[r]&&n.append(t[r]);else n.append(t);i.loop&&e.loopCreate(),i.observer&&e.support.observer||e.update()}function rt(t){var e=this,n=e.params,i=e.$wrapperEl,r=e.activeIndex;n.loop&&e.loopDestroy();var o=r+1;if("object"===typeof t&&"length"in t){for(var a=0;a<t.length;a+=1)t[a]&&i.prepend(t[a]);o=r+t.length}else i.prepend(t);n.loop&&e.loopCreate(),n.observer&&e.support.observer||e.update(),e.slideTo(o,0,!1)}function ot(t,e){var n=this,i=n.$wrapperEl,r=n.params,o=n.activeIndex,a=o;r.loop&&(a-=n.loopedSlides,n.loopDestroy(),n.slides=i.children("."+r.slideClass));var s=n.slides.length;if(t<=0)n.prependSlide(e);else if(t>=s)n.appendSlide(e);else{for(var l=a>t?a+1:a,c=[],u=s-1;u>=t;u-=1){var h=n.slides.eq(u);h.remove(),c.unshift(h)}if("object"===typeof e&&"length"in e){for(var d=0;d<e.length;d+=1)e[d]&&i.append(e[d]);l=a>t?a+e.length:a}else i.append(e);for(var p=0;p<c.length;p+=1)i.append(c[p]);r.loop&&n.loopCreate(),r.observer&&n.support.observer||n.update(),r.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}}function at(t){var e=this,n=e.params,i=e.$wrapperEl,r=e.activeIndex,o=r;n.loop&&(o-=e.loopedSlides,e.loopDestroy(),e.slides=i.children("."+n.slideClass));var a,s=o;if("object"===typeof t&&"length"in t){for(var l=0;l<t.length;l+=1)a=t[l],e.slides[a]&&e.slides.eq(a).remove(),a<s&&(s-=1);s=Math.max(s,0)}else a=t,e.slides[a]&&e.slides.eq(a).remove(),a<s&&(s-=1),s=Math.max(s,0);n.loop&&e.loopCreate(),n.observer&&e.support.observer||e.update(),n.loop?e.slideTo(s+e.loopedSlides,0,!1):e.slideTo(s,0,!1)}function st(){for(var t=this,e=[],n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}var lt={appendSlide:it,prependSlide:rt,addSlide:ot,removeSlide:at,removeAllSlides:st};function ct(t,e){function n(e){if(!e||e===Object(a["a"])()||e===Object(a["b"])())return null;e.assignedSlot&&(e=e.assignedSlot);var i=e.closest(t);return i||n(e.getRootNode().host)}return void 0===e&&(e=this),n(e)}function ut(t){var e=this,n=Object(a["a"])(),i=Object(a["b"])(),r=e.touchEventsData,o=e.params,c=e.touches,u=e.enabled;if(u&&(!e.animating||!o.preventInteractionOnTransition)){var h=t;h.originalEvent&&(h=h.originalEvent);var d=Object(s["a"])(h.target);if(("wrapper"!==o.touchEventsTarget||d.closest(e.wrapperEl).length)&&(r.isTouchEvent="touchstart"===h.type,(r.isTouchEvent||!("which"in h)||3!==h.which)&&!(!r.isTouchEvent&&"button"in h&&h.button>0)&&(!r.isTouched||!r.isMoved))){var p=!!o.noSwipingClass&&""!==o.noSwipingClass;p&&h.target&&h.target.shadowRoot&&t.path&&t.path[0]&&(d=Object(s["a"])(t.path[0]));var f=o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass,g=!(!h.target||!h.target.shadowRoot);if(o.noSwiping&&(g?ct(f,h.target):d.closest(f)[0]))e.allowClick=!0;else if(!o.swipeHandler||d.closest(o.swipeHandler)[0]){c.currentX="touchstart"===h.type?h.targetTouches[0].pageX:h.pageX,c.currentY="touchstart"===h.type?h.targetTouches[0].pageY:h.pageY;var m=c.currentX,v=c.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,b=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(y&&(m<=b||m>=i.innerWidth-b)){if("prevent"!==y)return;t.preventDefault()}if(Object(l["e"])(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=m,c.startY=v,r.touchStartTime=Object(l["i"])(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==h.type){var x=!0;d.is(r.focusableElements)&&(x=!1),n.activeElement&&Object(s["a"])(n.activeElement).is(r.focusableElements)&&n.activeElement!==d[0]&&n.activeElement.blur();var w=x&&e.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!w||d[0].isContentEditable||h.preventDefault()}e.emit("touchStart",h)}}}}function ht(t){var e=Object(a["a"])(),n=this,i=n.touchEventsData,r=n.params,o=n.touches,c=n.rtlTranslate,u=n.enabled;if(u){var h=t;if(h.originalEvent&&(h=h.originalEvent),i.isTouched){if(!i.isTouchEvent||"touchmove"===h.type){var d="touchmove"===h.type&&h.targetTouches&&(h.targetTouches[0]||h.changedTouches[0]),p="touchmove"===h.type?d.pageX:h.pageX,f="touchmove"===h.type?d.pageY:h.pageY;if(h.preventedByNestedSwiper)return o.startX=p,void(o.startY=f);if(!n.allowTouchMove)return n.allowClick=!1,void(i.isTouched&&(Object(l["e"])(o,{startX:p,startY:f,currentX:p,currentY:f}),i.touchStartTime=Object(l["i"])()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(n.isVertical()){if(f<o.startY&&n.translate<=n.maxTranslate()||f>o.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(p<o.startX&&n.translate<=n.maxTranslate()||p>o.startX&&n.translate>=n.minTranslate())return;if(i.isTouchEvent&&e.activeElement&&h.target===e.activeElement&&Object(s["a"])(h.target).is(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);if(i.allowTouchCallbacks&&n.emit("touchMove",h),!(h.targetTouches&&h.targetTouches.length>1)){o.currentX=p,o.currentY=f;var g=o.currentX-o.startX,m=o.currentY-o.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(g,2)+Math.pow(m,2))<n.params.threshold)){var v;if("undefined"===typeof i.isScrolling)n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:g*g+m*m>=25&&(v=180*Math.atan2(Math.abs(m),Math.abs(g))/Math.PI,i.isScrolling=n.isHorizontal()?v>r.touchAngle:90-v>r.touchAngle);if(i.isScrolling&&n.emit("touchMoveOpposite",h),"undefined"===typeof i.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){n.allowClick=!1,!r.cssMode&&h.cancelable&&h.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&h.stopPropagation(),i.isMoved||(r.loop&&n.loopFix(),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",h)),n.emit("sliderMove",h),i.isMoved=!0;var y=n.isHorizontal()?g:m;o.diff=y,y*=r.touchRatio,c&&(y=-y),n.swipeDirection=y>0?"prev":"next",i.currentTranslate=y+i.startTranslate;var b=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),y>0&&i.currentTranslate>n.minTranslate()?(b=!1,r.resistance&&(i.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+i.startTranslate+y,x))):y<0&&i.currentTranslate<n.maxTranslate()&&(b=!1,r.resistance&&(i.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-i.startTranslate-y,x))),b&&(h.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.allowSlidePrev||n.allowSlideNext||(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(y)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&!r.cssMode&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),r.freeMode&&(0===i.velocities.length&&i.velocities.push({position:o[n.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:o[n.isHorizontal()?"currentX":"currentY"],time:Object(l["i"])()})),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}}}}}else i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",h)}}function dt(t){var e=this,n=e.touchEventsData,i=e.params,r=e.touches,o=e.rtlTranslate,a=e.$wrapperEl,s=e.slidesGrid,c=e.snapGrid,u=e.enabled;if(u){var h=t;if(h.originalEvent&&(h=h.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",h),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var d,p=Object(l["i"])(),f=p-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(h),e.emit("tap click",h),f<300&&p-n.lastClickTime<300&&e.emit("doubleTap doubleClick",h)),n.lastClickTime=Object(l["i"])(),Object(l["h"])((function(){e.destroyed||(e.allowClick=!0)})),!n.isTouched||!n.isMoved||!e.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,d=i.followFinger?o?e.translate:-e.translate:-n.currentTranslate,!i.cssMode)if(i.freeMode){if(d<-e.minTranslate())return void e.slideTo(e.activeIndex);if(d>-e.maxTranslate())return void(e.slides.length<c.length?e.slideTo(c.length-1):e.slideTo(e.slides.length-1));if(i.freeModeMomentum){if(n.velocities.length>1){var g=n.velocities.pop(),m=n.velocities.pop(),v=g.position-m.position,y=g.time-m.time;e.velocity=v/y,e.velocity/=2,Math.abs(e.velocity)<i.freeModeMinimumVelocity&&(e.velocity=0),(y>150||Object(l["i"])()-g.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeModeMomentumVelocityRatio,n.velocities.length=0;var b=1e3*i.freeModeMomentumRatio,x=e.velocity*b,w=e.translate+x;o&&(w=-w);var _,C,A=!1,I=20*Math.abs(e.velocity)*i.freeModeMomentumBounceRatio;if(w<e.maxTranslate())i.freeModeMomentumBounce?(w+e.maxTranslate()<-I&&(w=e.maxTranslate()-I),_=e.maxTranslate(),A=!0,n.allowMomentumBounce=!0):w=e.maxTranslate(),i.loop&&i.centeredSlides&&(C=!0);else if(w>e.minTranslate())i.freeModeMomentumBounce?(w-e.minTranslate()>I&&(w=e.minTranslate()+I),_=e.minTranslate(),A=!0,n.allowMomentumBounce=!0):w=e.minTranslate(),i.loop&&i.centeredSlides&&(C=!0);else if(i.freeModeSticky){for(var S,M=0;M<c.length;M+=1)if(c[M]>-w){S=M;break}w=Math.abs(c[S]-w)<Math.abs(c[S-1]-w)||"next"===e.swipeDirection?c[S]:c[S-1],w=-w}if(C&&e.once("transitionEnd",(function(){e.loopFix()})),0!==e.velocity){if(b=o?Math.abs((-w-e.translate)/e.velocity):Math.abs((w-e.translate)/e.velocity),i.freeModeSticky){var k=Math.abs((o?-w:w)-e.translate),E=e.slidesSizesGrid[e.activeIndex];b=k<E?i.speed:k<2*E?1.5*i.speed:2.5*i.speed}}else if(i.freeModeSticky)return void e.slideToClosest();i.freeModeMomentumBounce&&A?(e.updateProgress(_),e.setTransition(b),e.setTranslate(w),e.transitionStart(!0,e.swipeDirection),e.animating=!0,a.transitionEnd((function(){e&&!e.destroyed&&n.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(i.speed),setTimeout((function(){e.setTranslate(_),a.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()}))}),0))}))):e.velocity?(e.updateProgress(w),e.setTransition(b),e.setTranslate(w),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,a.transitionEnd((function(){e&&!e.destroyed&&e.transitionEnd()})))):(e.emit("_freeModeNoMomentumRelease"),e.updateProgress(w)),e.updateActiveIndex(),e.updateSlidesClasses()}else{if(i.freeModeSticky)return void e.slideToClosest();i.freeMode&&e.emit("_freeModeNoMomentumRelease")}(!i.freeModeMomentum||f>=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var T=0,O=e.slidesSizesGrid[0],P=0;P<s.length;P+=P<i.slidesPerGroupSkip?1:i.slidesPerGroup){var j=P<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;"undefined"!==typeof s[P+j]?d>=s[P]&&d<s[P+j]&&(T=P,O=s[P+j]-s[P]):d>=s[P]&&(T=P,O=s[s.length-1]-s[s.length-2])}var L=(d-s[T])/O,D=T<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(f>i.longSwipesMs){if(!i.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(L>=i.longSwipesRatio?e.slideTo(T+D):e.slideTo(T)),"prev"===e.swipeDirection&&(L>1-i.longSwipesRatio?e.slideTo(T+D):e.slideTo(T))}else{if(!i.shortSwipes)return void e.slideTo(e.activeIndex);var R=e.navigation&&(h.target===e.navigation.nextEl||h.target===e.navigation.prevEl);R?h.target===e.navigation.nextEl?e.slideTo(T+D):e.slideTo(T):("next"===e.swipeDirection&&e.slideTo(T+D),"prev"===e.swipeDirection&&e.slideTo(T))}}}}function pt(){var t=this,e=t.params,n=t.el;if(!n||0!==n.offsetWidth){e.breakpoints&&t.setBreakpoint();var i=t.allowSlideNext,r=t.allowSlidePrev,o=t.snapGrid;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&o!==t.snapGrid&&t.checkOverflow()}}function ft(t){var e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function gt(){var t=this,e=t.wrapperEl,n=t.rtlTranslate,i=t.enabled;if(i){var r;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=n?e.scrollWidth-e.offsetWidth-e.scrollLeft:-e.scrollLeft:t.translate=-e.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();var o=t.maxTranslate()-t.minTranslate();r=0===o?0:(t.translate-t.minTranslate())/o,r!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}}var mt=!1;function vt(){}function yt(){var t=this,e=Object(a["a"])(),n=t.params,i=t.touchEvents,r=t.el,o=t.wrapperEl,s=t.device,l=t.support;t.onTouchStart=ut.bind(t),t.onTouchMove=ht.bind(t),t.onTouchEnd=dt.bind(t),n.cssMode&&(t.onScroll=gt.bind(t)),t.onClick=ft.bind(t);var c=!!n.nested;if(!l.touch&&l.pointerEvents)r.addEventListener(i.start,t.onTouchStart,!1),e.addEventListener(i.move,t.onTouchMove,c),e.addEventListener(i.end,t.onTouchEnd,!1);else{if(l.touch){var u=!("touchstart"!==i.start||!l.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(i.start,t.onTouchStart,u),r.addEventListener(i.move,t.onTouchMove,l.passiveListener?{passive:!1,capture:c}:c),r.addEventListener(i.end,t.onTouchEnd,u),i.cancel&&r.addEventListener(i.cancel,t.onTouchEnd,u),mt||(e.addEventListener("touchstart",vt),mt=!0)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!l.touch&&s.ios)&&(r.addEventListener("mousedown",t.onTouchStart,!1),e.addEventListener("mousemove",t.onTouchMove,c),e.addEventListener("mouseup",t.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&r.addEventListener("click",t.onClick,!0),n.cssMode&&o.addEventListener("scroll",t.onScroll),n.updateOnWindowResize?t.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",pt,!0):t.on("observerUpdate",pt,!0)}function bt(){var t=this,e=Object(a["a"])(),n=t.params,i=t.touchEvents,r=t.el,o=t.wrapperEl,s=t.device,l=t.support,c=!!n.nested;if(!l.touch&&l.pointerEvents)r.removeEventListener(i.start,t.onTouchStart,!1),e.removeEventListener(i.move,t.onTouchMove,c),e.removeEventListener(i.end,t.onTouchEnd,!1);else{if(l.touch){var u=!("onTouchStart"!==i.start||!l.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(i.start,t.onTouchStart,u),r.removeEventListener(i.move,t.onTouchMove,c),r.removeEventListener(i.end,t.onTouchEnd,u),i.cancel&&r.removeEventListener(i.cancel,t.onTouchEnd,u)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!l.touch&&s.ios)&&(r.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,c),e.removeEventListener("mouseup",t.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&r.removeEventListener("click",t.onClick,!0),n.cssMode&&o.removeEventListener("scroll",t.onScroll),t.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",pt)}var xt={attachEvents:yt,detachEvents:bt};function wt(){var t=this,e=t.activeIndex,n=t.initialized,i=t.loopedSlides,r=void 0===i?0:i,o=t.params,a=t.$el,s=o.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var c=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(c&&t.currentBreakpoint!==c){var u=c in s?s[c]:void 0;u&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(t){var e=u[t];"undefined"!==typeof e&&(u[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")}));var h=u||t.originalParams,d=o.slidesPerColumn>1,p=h.slidesPerColumn>1,f=o.enabled;d&&!p?(a.removeClass(o.containerModifierClass+"multirow "+o.containerModifierClass+"multirow-column"),t.emitContainerClasses()):!d&&p&&(a.addClass(o.containerModifierClass+"multirow"),(h.slidesPerColumnFill&&"column"===h.slidesPerColumnFill||!h.slidesPerColumnFill&&"column"===o.slidesPerColumnFill)&&a.addClass(o.containerModifierClass+"multirow-column"),t.emitContainerClasses());var g=h.direction&&h.direction!==o.direction,m=o.loop&&(h.slidesPerView!==o.slidesPerView||g);g&&n&&t.changeDirection(),Object(l["e"])(t.params,h);var v=t.params.enabled;Object(l["e"])(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!v?t.disable():!f&&v&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",h),m&&n&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-r+t.loopedSlides,0,!1)),t.emit("breakpoint",h)}}}function _t(t,e,n){if(void 0===e&&(e="window"),t&&("container"!==e||n)){var i=!1,r=Object(a["b"])(),o="window"===e?r.innerHeight:n.clientHeight,s=Object.keys(t).map((function(t){if("string"===typeof t&&0===t.indexOf("@")){var e=parseFloat(t.substr(1)),n=o*e;return{value:n,point:t}}return{value:t,point:t}}));s.sort((function(t,e){return parseInt(t.value,10)-parseInt(e.value,10)}));for(var l=0;l<s.length;l+=1){var c=s[l],u=c.point,h=c.value;"window"===e?r.matchMedia("(min-width: "+h+"px)").matches&&(i=u):h<=n.clientWidth&&(i=u)}return i||"max"}}var Ct={setBreakpoint:wt,getBreakpoint:_t};function At(t,e){var n=[];return t.forEach((function(t){"object"===typeof t?Object.keys(t).forEach((function(i){t[i]&&n.push(e+i)})):"string"===typeof t&&n.push(e+t)})),n}function It(){var t=this,e=t.classNames,n=t.params,i=t.rtl,r=t.$el,o=t.device,a=t.support,s=At(["initialized",n.direction,{"pointer-events":a.pointerEvents&&!a.touch},{"free-mode":n.freeMode},{autoheight:n.autoHeight},{rtl:i},{multirow:n.slidesPerColumn>1},{"multirow-column":n.slidesPerColumn>1&&"column"===n.slidesPerColumnFill},{android:o.android},{ios:o.ios},{"css-mode":n.cssMode}],n.containerModifierClass);e.push.apply(e,s),r.addClass([].concat(e).join(" ")),t.emitContainerClasses()}function St(){var t=this,e=t.$el,n=t.classNames;e.removeClass(n.join(" ")),t.emitContainerClasses()}var Mt={addClasses:It,removeClasses:St};function kt(t,e,n,i,r,o){var l,c=Object(a["b"])();function u(){o&&o()}var h=Object(s["a"])(t).parent("picture")[0];h||t.complete&&r?u():e?(l=new c.Image,l.onload=u,l.onerror=u,i&&(l.sizes=i),n&&(l.srcset=n),e&&(l.src=e)):u()}function Et(){var t=this;function e(){"undefined"!==typeof t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var n=0;n<t.imagesToLoad.length;n+=1){var i=t.imagesToLoad[n];t.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,e)}}var Tt={loadImage:kt,preloadImages:Et};function Ot(){var t=this,e=t.params,n=t.isLocked,i=t.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(t.slides.length-1)+t.slides[0].offsetWidth*t.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&i?t.isLocked=i<=t.size:t.isLocked=1===t.snapGrid.length,t.allowSlideNext=!t.isLocked,t.allowSlidePrev=!t.isLocked,n!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock"),n&&n!==t.isLocked&&(t.isEnd=!1,t.navigation&&t.navigation.update())}var Pt={checkOverflow:Ot},jt={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function Lt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Dt(t,e,n){return e&&Lt(t.prototype,e),n&&Lt(t,n),t}var Rt={modular:x,eventsEmitter:w,update:O,translate:B,transition:V,slide:q,loop:$,grabCursor:nt,manipulation:lt,events:xt,breakpoints:Ct,checkOverflow:Pt,classes:Mt,images:Tt},Bt={},Nt=function(){function t(){for(var e,n,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];if(1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?n=r[0]:(e=r[0],n=r[1]),n||(n={}),n=Object(l["e"])({},n),e&&!n.el&&(n.el=e),n.el&&Object(s["a"])(n.el).length>1){var a=[];return Object(s["a"])(n.el).each((function(e){var i=Object(l["e"])({},n,{el:e});a.push(new t(i))})),a}var c=this;c.__swiper__=!0,c.support=u(),c.device=d({userAgent:n.userAgent}),c.browser=f(),c.eventsListeners={},c.eventsAnyListeners=[],"undefined"===typeof c.modules&&(c.modules={}),Object.keys(c.modules).forEach((function(t){var e=c.modules[t];if(e.params){var i=Object.keys(e.params)[0],r=e.params[i];if("object"!==typeof r||null===r)return;if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===n[i]&&(n[i]={auto:!0}),!(i in n&&"enabled"in r))return;!0===n[i]&&(n[i]={enabled:!0}),"object"!==typeof n[i]||"enabled"in n[i]||(n[i].enabled=!0),n[i]||(n[i]={enabled:!1})}}));var h=Object(l["e"])({},jt);return c.useParams(h),c.params=Object(l["e"])({},h,Bt,n),c.originalParams=Object(l["e"])({},c.params),c.passedParams=Object(l["e"])({},n),c.params&&c.params.on&&Object.keys(c.params.on).forEach((function(t){c.on(t,c.params.on[t])})),c.params&&c.params.onAny&&c.onAny(c.params.onAny),c.$=s["a"],Object(l["e"])(c,{enabled:c.params.enabled,el:e,classNames:[],slides:Object(s["a"])(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===c.params.direction},isVertical:function(){return"vertical"===c.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEvents:function(){var t=["touchstart","touchmove","touchend","touchcancel"],e=["mousedown","mousemove","mouseup"];return c.support.pointerEvents&&(e=["pointerdown","pointermove","pointerup"]),c.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},c.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},c.support.touch||!c.params.simulateTouch?c.touchEventsTouch:c.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:c.params.focusableElements,lastClickTime:Object(l["i"])(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.useModules(),c.emit("_swiper"),c.params.init&&c.init(),c}var e=t.prototype;return e.enable=function(){var t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))},e.disable=function(){var t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))},e.setProgress=function(t,e){var n=this;t=Math.min(Math.max(t,0),1);var i=n.minTranslate(),r=n.maxTranslate(),o=(r-i)*t+i;n.translateTo(o,"undefined"===typeof e?0:e),n.updateActiveIndex(),n.updateSlidesClasses()},e.emitContainerClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=t.el.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-container")||0===e.indexOf(t.params.containerModifierClass)}));t.emit("_containerClasses",e.join(" "))}},e.getSlideClasses=function(t){var e=this;return t.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)})).join(" ")},e.emitSlidesClasses=function(){var t=this;if(t.params._emitClasses&&t.el){var e=[];t.slides.each((function(n){var i=t.getSlideClasses(n);e.push({slideEl:n,classNames:i}),t.emit("_slideClass",n,i)})),t.emit("_slideClasses",e)}},e.slidesPerViewDynamic=function(){var t=this,e=t.params,n=t.slides,i=t.slidesGrid,r=t.size,o=t.activeIndex,a=1;if(e.centeredSlides){for(var s,l=n[o].swiperSlideSize,c=o+1;c<n.length;c+=1)n[c]&&!s&&(l+=n[c].swiperSlideSize,a+=1,l>r&&(s=!0));for(var u=o-1;u>=0;u-=1)n[u]&&!s&&(l+=n[u].swiperSlideSize,a+=1,l>r&&(s=!0))}else for(var h=o+1;h<n.length;h+=1)i[h]-i[o]<r&&(a+=1);return a},e.update=function(){var t=this;if(t&&!t.destroyed){var e,n=t.snapGrid,i=t.params;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(r(),t.params.autoHeight&&t.updateAutoHeight()):(e=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),e||r()),i.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function r(){var e=t.rtlTranslate?-1*t.translate:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}},e.changeDirection=function(t,e){void 0===e&&(e=!0);var n=this,i=n.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t?n:(n.$el.removeClass(""+n.params.containerModifierClass+i).addClass(""+n.params.containerModifierClass+t),n.emitContainerClasses(),n.params.direction=t,n.slides.each((function(e){"vertical"===t?e.style.width="":e.style.height=""})),n.emit("changeDirection"),e&&n.update(),n)},e.mount=function(t){var e=this;if(e.mounted)return!0;var n=Object(s["a"])(t||e.params.el);if(t=n[0],!t)return!1;t.swiper=e;var i=function(){return"."+(e.params.wrapperClass||"").trim().split(" ").join(".")},r=function(){if(t&&t.shadowRoot&&t.shadowRoot.querySelector){var e=Object(s["a"])(t.shadowRoot.querySelector(i()));return e.children=function(t){return n.children(t)},e}return n.children(i())},o=r();if(0===o.length&&e.params.createElements){var c=Object(a["a"])(),u=c.createElement("div");o=Object(s["a"])(u),u.className=e.params.wrapperClass,n.append(u),n.children("."+e.params.slideClass).each((function(t){o.append(t)}))}return Object(l["e"])(e,{$el:n,el:t,$wrapperEl:o,wrapperEl:o[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===o.css("display")}),!0},e.init=function(t){var e=this;if(e.initialized)return e;var n=e.mount(t);return!1===n?e:(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit"),e)},e.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var n=this,i=n.params,r=n.$el,o=n.$wrapperEl,a=n.slides;return"undefined"===typeof n.params||n.destroyed?null:(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),e&&(n.removeClasses(),r.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((function(t){n.off(t)})),!1!==t&&(n.$el[0].swiper=null,Object(l["d"])(n)),n.destroyed=!0,null)},t.extendDefaults=function(t){Object(l["e"])(Bt,t)},t.installModule=function(e){t.prototype.modules||(t.prototype.modules={});var n=e.name||Object.keys(t.prototype.modules).length+"_"+Object(l["i"])();t.prototype.modules[n]=e},t.use=function(e){return Array.isArray(e)?(e.forEach((function(e){return t.installModule(e)})),t):(t.installModule(e),t)},Dt(t,null,[{key:"extendedDefaults",get:function(){return Bt}},{key:"defaults",get:function(){return jt}}]),t}();Object.keys(Rt).forEach((function(t){Object.keys(Rt[t]).forEach((function(e){Nt.prototype[e]=Rt[t][e]}))})),Nt.use([m,b]);e["a"]=Nt},"6d61":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("e330"),a=n("94ca"),s=n("cb2d"),l=n("f183"),c=n("2266"),u=n("19aa"),h=n("1626"),d=n("7234"),p=n("861d"),f=n("d039"),g=n("1c7e"),m=n("d44e"),v=n("7156");t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),x=y?"set":"add",w=r[t],_=w&&w.prototype,C=w,A={},I=function(t){var e=o(_[t]);s(_,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},S=a(t,!h(w)||!(b||_.forEach&&!f((function(){(new w).entries().next()}))));if(S)C=n.getConstructor(e,t,y,x),l.enable();else if(a(t,!0)){var M=new C,k=M[x](b?{}:-0,1)!=M,E=f((function(){M.has(1)})),T=g((function(t){new w(t)})),O=!b&&f((function(){var t=new w,e=5;while(e--)t[x](e,e);return!t.has(-0)}));T||(C=e((function(t,e){u(t,_);var n=v(new w,t,C);return d(e)||c(e,n[x],{that:n,AS_ENTRIES:y}),n})),C.prototype=_,_.constructor=C),(E||O)&&(I("delete"),I("has"),y&&I("get")),(O||k)&&I(x),b&&_.clear&&delete _.clear}return A[t]=C,i({global:!0,constructor:!0,forced:C!=w},A),m(C,t),b||n.setStrong(C,t,y),C}},"6fcc":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("c1fb"),r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i["a"])({url:"/subscribe/access",method:"get",params:t})}},"6fcd":function(t,e,n){t.exports=n.p+"assets/img/dahua.b3857065.png"},7025:function(t,e,n){t.exports=n.p+"assets/img/statisticVul.38b094fb.png"},"703e":function(t,e,n){},"70a4":function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return a})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return f}));var i=n("ff17");function r(t){var e=t;Object.keys(e).forEach((function(t){try{e[t]=null}catch(n){}try{delete e[t]}catch(n){}}))}function o(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function a(){return Date.now()}function s(t){var e,n=Object(i["b"])();return n.getComputedStyle&&(e=n.getComputedStyle(t,null)),!e&&t.currentStyle&&(e=t.currentStyle),e||(e=t.style),e}function l(t,e){void 0===e&&(e="x");var n,r,o,a=Object(i["b"])(),l=s(t,null);return a.WebKitCSSMatrix?(r=l.transform||l.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((function(t){return t.replace(",",".")})).join(", ")),o=new a.WebKitCSSMatrix("none"===r?"":r)):(o=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===e&&(r=a.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===e&&(r=a.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function c(t){return"object"===typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function u(t){return"undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function h(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"],n=1;n<arguments.length;n+=1){var i=n<0||arguments.length<=n?void 0:arguments[n];if(void 0!==i&&null!==i&&!u(i))for(var r=Object.keys(Object(i)).filter((function(t){return e.indexOf(t)<0})),o=0,a=r.length;o<a;o+=1){var s=r[o],l=Object.getOwnPropertyDescriptor(i,s);void 0!==l&&l.enumerable&&(c(t[s])&&c(i[s])?i[s].__swiper__?t[s]=i[s]:h(t[s],i[s]):!c(t[s])&&c(i[s])?(t[s]={},i[s].__swiper__?t[s]=i[s]:h(t[s],i[s])):t[s]=i[s])}}return t}function d(t,e){Object.keys(e).forEach((function(n){c(e[n])&&Object.keys(e[n]).forEach((function(i){"function"===typeof e[n][i]&&(e[n][i]=e[n][i].bind(t))})),t[n]=e[n]}))}function p(t){return void 0===t&&(t=""),"."+t.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function f(t,e,n,r){var o=Object(i["a"])();return n&&Object.keys(r).forEach((function(n){if(!e[n]&&!0===e.auto){var i=o.createElement("div");i.className=r[n],t.append(i),e[n]=i}})),e}},"70e3":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"detail-wrapper"},[n("div",{staticClass:"detail-container"},[n("BaseInfo",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{searchList:t.searchList,independentPort:t.independentPort,detail:t.detail,certCount:t.certCount},on:{onClickStatistics:t.onClickStatistics,onSearchMoreFromBaseInfo:t.onSearchMoreFromBaseInfo}}),n("div",{staticClass:"main-container"},[n("History",{attrs:{scanHistory:t.scanHistory,loading:t.loading},on:{onSearchPort:t.onSearchPort}}),n("div",{staticClass:"right"},[n("div",{staticClass:"tab-container"},t._l(t.tabListDisplay,(function(e,i){return n("span",{key:i,staticClass:"tab-item",class:{"active-tab":t.activeTab===e.componentName},on:{click:function(n){return t.onChangeTab(e.componentName)}}},["Vul"===e.componentName?n("span",[t._v(" "+t._s(e.tabName)+" ")]):t._e(),"Vul"!==e.componentName?n("span",[t._v(t._s(e.tabName))]):t._e()])})),0),n("keep-alive",[n(t.activeTab,{tag:"component",attrs:{detail:t.detail,ip:t.searchList.ip,port:t.searchList.port},on:{onNotifyCertCount:t.onNotifyCertCount}})],1)],1)],1)],1)])},r=[],o=(n("a4d3"),n("99af"),n("4de4"),n("4160"),n("caad"),n("c975"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("2532"),n("159b"),n("96cf"),n("ade3")),a=n("2f62"),s=n("e581"),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"base-info-wrapper"},[n("div",{staticClass:"base-container"},[n("div",{staticClass:"statistics-content block"},[n("div",{staticClass:"infoContaine"},[n("div",{staticClass:"ip-line"},[t._v(" "+t._s(t.searchList.ip)+" "),n("svg-icon",{staticClass:"copy_btn",staticStyle:{"font-size":"14px",color:"#A3A9B3",cursor:"pointer"},attrs:{"data-clipboard-text":t.searchList.ip,"icon-class":"copy"},on:{click:t.onCopy}}),n("el-tooltip",{attrs:{effect:"dark",content:"C段",placement:"top"}},[n("svg-icon",{staticClass:"svg-info",attrs:{"icon-class":"ipC"},on:{click:function(e){return t.onSearchMoreInBaseInfo("ip",t.searchList.ip+"/24","ipC")}}})],1),t.window&&t.window.Config&&t.window.Config.permission&&t.window.Config.permission.includes("front.concern.asset")?n("el-tooltip",{attrs:{effect:"dark",content:"添加监测",placement:"top"}},[n("svg-icon",{staticClass:"svg-info",attrs:{"icon-class":"add"},on:{click:function(e){return t.addAssetWatch(t.searchList)}}})],1):t._e(),t.huntingDetail&&t.huntingDetail.service&&t.huntingDetail.service.http&&t.filterHuntingMenu.length>0?n("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.one_key_hunting"),placement:"top"}},[n("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommandHunting}},[n("div",{staticClass:"hunting-container"},[n("svg-icon",{staticClass:"svg-info svg-hunting",attrs:{"icon-class":"hunting"}}),n("svg-icon",{staticClass:"new-tag-icon",attrs:{"icon-class":"newTag"}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.filterHuntingMenu,(function(e,i){return n("el-dropdown-item",{key:i,attrs:{command:e}},[t._v(" "+t._s(t.$t("search.menuItem."+e.grammar))+" ")])})),1)],1)],1):t._e(),t.huntingDetail&&t.huntingDetail.cdn&&t.huntingDetail.cdn.is_cdn?n("span",{staticClass:"cdn-tag"},[n("svg-icon",{staticClass:"cdn-icon",attrs:{"icon-class":"cdn_tag"}}),n("span",[t._v("CDN")])],1):t._e()],1),t.detail.document&&t.detail.document.location?n("div",{staticClass:"location-line"},[n("i",{class:[t.formatFlagClass(t.detail.document.location.country_code),"flag"]}),n("span",{staticClass:"country"},[n("span",{staticClass:"name"},[t._v(t._s(t.detail.document.location.country_cn))]),t.detail.document.location.province_cn?n("span",{staticClass:"name"},[t._v(" - "+t._s(t.detail.document.location.province_cn))]):t._e(),t.detail.document.location.city_cn?n("span",{staticClass:"name"},[t._v(" - "+t._s(t.detail.document.location.city_cn))]):t._e()])]):t._e()]),t.detail.document&&t.detail.document.tags&&t.detail.document.tags.length?n("div",{staticClass:"tag-container"},t._l(t.detail.document.tags,(function(e,i){return n("span",{key:i,staticClass:"tag"},[t._v(t._s(e.tag_name))])})),0):t._e(),n("div",{staticClass:"statistics-container"},t._l(t.statistics,(function(e,i){return n("div",{key:i,staticClass:"statistics-item"},[n("div",{staticClass:"icon"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":e.icon}})],1),n("div",[n("div",{staticClass:"name"},[t._v(t._s(e.label))]),"独立端口"===e.label?n("div",{staticClass:"number"},[n("span",[t._v(t._s(t.independentPort))])]):n("div",{staticClass:"number"},["cert"===e.key?n("span",[t._v(t._s(t.certCount||0))]):n("span",[t._v(t._s(t._.get(t.detail,e.key)||0))])])])])})),0),n("div",{staticClass:"des-content"},[t._l(t.banseInfo,(function(e,i){return n("div",{key:i,staticClass:"des-item"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":e.icon}}),n("span",{staticClass:"name"},[t._v(t._s(e.label))]),"location"===e.key?n("span",[t.detail.document&&t.detail.document.location&&t.detail.document.location.province_cn?n("span",[n("el-tooltip",{attrs:{effect:"dark",content:t.detail.document.location.province_cn+t.detail.document.location.city_cn+t.detail.document.location.district_cn+t.detail.document.location.street_cn,disabled:!t.detail.document.location.province_cn,placement:"top-start"}},[n("span",{staticClass:"value"},[t._v(" "+t._s(t.detail.document.location.province_cn)+t._s(t.detail.document.location.city_cn)+t._s(t.detail.document.location.district_cn)+t._s(t.detail.document.location.street_cn)+" ")])])],1):n("span",[t._v("--")]),t.detail.document&&t.detail.document.location&&t.detail.document.location.district_cn?n("span",{staticClass:"hight-precision"},[t._v("高精")]):t._e()]):n("span",[n("el-tooltip",{attrs:{effect:"dark",content:String(t._.get(t.detail.document,e.key)||""),disabled:!String(t._.get(t.detail.document,e.key)||""),placement:"top-start"}},[n("span",{staticClass:"value"},[t._v(t._s(String(t._.get(t.detail.document,e.key)||"--")))])])],1)],1)}))],2)]),t._m(0)]),n("AddAsset",{ref:"addAssetWatch",attrs:{data:t.addAssetWatchData}})],1)},c=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"right-container block"},[n("div",{staticClass:"map-content"},[n("div",{staticClass:"map-title"},[t._v("地理位置")]),n("div",{attrs:{id:"map"}})])])}],u=(n("a9e3"),n("3835")),h=n("e192"),d=n.n(h),p=(n("ac6d"),n("b311")),f=n.n(p),g=n("bcfe");function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var y={components:{AddAsset:g["a"]},props:{independentPort:{type:Number,default:0},detail:{type:Object,default:function(){return{document:{}}}},searchList:{type:Object,default:function(){return{}}},certCount:{type:Number,default:0}},data:function(){return{addAssetWatchData:{},center:{lng:0,lat:0}}},computed:v({},Object(a["e"])("site",["role","huntingDetail"]),{statistics:function(){return[{key:"document.services.length",label:this.$t("ip_detail.independent_port"),icon:"detailPort"},{key:"service_count",label:this.$t("ip_detail.cumulative_service"),icon:"detail_services"},{key:"domain_count",label:this.$t("ip_detail.domain"),icon:"detail_host"},{key:"component_count",label:this.$t("ip_detail.product_component"),icon:"detail_product"},{key:"vulnerability_count",label:this.$t("ip_detail.cumulative_vulnerability"),icon:"detail_vul"}]},banseInfo:function(){return[{key:"asn",label:"ASN",icon:"detail_ASN"},{key:"org",label:this.$t("ip_detail.organization"),icon:"detail_org"},{key:"location.isp",label:this.$t("ip_detail.isp"),icon:"detail_isp"},{key:"location.owner",label:this.$t("ip_detail.ip_owner"),icon:"detail_owner"},{key:"hostname",label:this.$t("ip_detail.hostname"),icon:"detail_hostname"},{key:"os_name",label:this.$t("ip_detail.os"),icon:"detail_system"},{key:"location",label:this.$t("ip_detail.location"),icon:"detail_gps"}]},filterHuntingMenu:function(){var t=this.huntingDetail,e=[];return t.service?(t.service.http.html_hash&&e.push({grammar:"html_hash",value:t.service.http.html_hash}),t.service.http.dom_tree&&t.service.http.dom_tree.dom_hash&&e.push({grammar:"dom_hash",value:t.service.http.dom_tree.dom_hash}),t.service.http.favicon.hash&&e.push({grammar:"favicon",value:t.service.http.favicon.hash}),e):[]}}),watch:{detail:{handler:function(t){var e=this;if(t.document&&t.document.location&&t.document.location.gps){var n=Object(u["a"])(t.document.location.gps,2),i=n[0],r=n[1];this.center={lng:i,lat:r},this.$nextTick((function(){e.mapInit()}))}},deep:!0}},mounted:function(){},methods:{handleCommandHunting:function(t){var e=this.$router.resolve({name:"searchResult",query:{searchVal:"".concat(t.grammar,':"').concat(t.value,'"')}}),n=e.href;window.open(n,"_blank")},onCopy:function(){var t=this,e=new f.a(".copy_btn");e.on("success",(function(){t.$message({message:t.$t("global.copy_success"),type:"success"}),e.destroy()})),e.on("error",(function(){t.$message({message:"复制失败！",type:"warning"}),e.destroy()}))},addAssetWatch:function(t){this.addAssetWatchData=t,this.$refs.addAssetWatch.dialogConfig.dialogVisible=!0},onSearchMoreInBaseInfo:function(t,e,n){var i=this;clearTimeout(this.copyTimer),this.copyTimer=setTimeout((function(){e&&i.$emit("onSearchMoreFromBaseInfo",t,e,n)}),500)},onClickStatistics:function(t){this.$emit("onClickStatistics",t)},formatFlagClass:function(t){return t&&-1===["CN","HK","TW","MO"].indexOf(t)?t.toLowerCase():"cn"},mapInit:function(){var t=this;d.a.accessToken="pk.eyJ1IjoicXVha2UxMjMiLCJhIjoiY2xkY3h6MjVlMGYzdzNxazZ3aDFpY2QzMiJ9.Nz_YiGrkrmj8SHGO6r72hg";var e=new d.a.Map({container:"map",style:"mapbox://styles/quake123/cln2jny1j004v01rch31q1wne",center:[this.center.lng,this.center.lat],zoom:3,pitch:0,bearing:0});e.on("load",(function(){var n=document.createElement("div");n.className="markerLocation";var i="<span class='location'>Location</span>\n                <br>\n                <span class='position'>".concat(t.center.lng,", ").concat(t.center.lat,"</span>");new d.a.Marker(n).setLngLat([t.center.lng,t.center.lat]).setPopup(new d.a.Popup({offset:10,className:"markerPopup"}).setHTML(i)).addTo(e),t.worldView(e)}))},worldView:function(t){var e=["admin-0-boundary","admin-1-boundary","admin-0-boundary-disputed","admin-1-boundary-bg","admin-0-boundary-bg"];e.forEach((function(e){t.setFilter(e,["match",["get","worldview"],["all","CN"],!0,!1])}))}}},b=y,x=(n("061e"),n("2877")),w=Object(x["a"])(b,l,c,!1,null,"ccf7cc0e",null),_=w.exports,C=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"port-wrapper"},[n("div",{staticClass:"search-input2"},[n("el-input",{attrs:{placeholder:t.$t("ip_detail.port_placeholder"),clearable:"","prefix-icon":"el-icon-search"},on:{clear:t.onClear},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSearch(e)}},model:{value:t.searchList.searchVal,callback:function(e){t.$set(t.searchList,"searchVal",e)},expression:"searchList.searchVal"}})],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"list-conatiner detailTable"},[t.searchResultList.length?[n("el-table",{ref:"porttable",staticStyle:{width:"100%"},attrs:{data:t.searchResultList,size:"medium","header-row-class-name":"tableHeader","row-style":{margin:"15px"}}},[n("el-table-column",{attrs:{label:"端口",align:"left",sortable:"","sort-by":"port"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"port-container"},[n("span",{staticClass:"port-box"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"detailPort"}}),n("span",{staticClass:"port"},[t._v(t._s(e.row.port))])],1),n("el-tooltip",{attrs:{effect:"dark",content:"复制",placement:"top"}},[n("i",{staticClass:"el-icon-copy-document copy_btn",staticStyle:{"font-size":"14px","margin-right":"5px",position:"relative",cursor:"pointer"},attrs:{"data-clipboard-text":e.row.ip+":"+e.row.port},on:{click:t.onCopy}})]),n("el-tooltip",{attrs:{effect:"dark",content:"跳转",placement:"top"}},[n("a",{attrs:{target:"_blank",href:t.ipv4OrIpv6OrDomainHref(e.row),rel:t.ipv4OrIpv6OrDomainHref(e.row).includes(t.quakeDomain)?"":"noreferrer noopener nofollow"}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"forward"}})],1)])],1)]}}],null,!1,1899532356)}),n("el-table-column",{attrs:{label:"传输层",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.transport||"-")+" ")]}}],null,!1,2918369747)}),n("el-table-column",{attrs:{label:"服务协议",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"serviceName"},[t._v(" "+t._s(e.row.service.name||"-")+" ")])]}}],null,!1,1827606691)}),n("el-table-column",{attrs:{label:"产品应用",sortable:"","sort-by":"service.product",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.components&&!e.row.components.length||e.row.service.product?n("div",{class:{"port-product":e.row.service.product}},[t._v(t._s(e.row.service.product||"-"))]):t._e(),e.row.components&&e.row.components.length>0?n("div",{staticClass:"port-component"},[n("el-tooltip",{attrs:{effect:"dark",content:"查看全部",placement:"top"}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"detail_product_component"},on:{click:function(n){return t.openAppDialog(e.row.components)}}})],1),n("el-tooltip",{attrs:{effect:"dark",content:e.row.components.map((function(t){return t.product_name_cn})).join(","),placement:"top"}},[n("span",{staticClass:"appNameContainer"},t._l(e.row.components,(function(e,i){return n("span",{key:i,staticClass:"app-name",on:{click:function(n){return t.onSeachComponent("app",e.product_name_cn)}}},[t._v(" "+t._s(e.product_name_cn)+" ")])})),0)])],1):t._e()]}}],null,!1,445896319)}),n("el-table-column",{attrs:{label:"版本",sortable:"","sort-by":"service.version",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.service.version||"-")+" ")]}}],null,!1,1592043257)}),n("el-table-column",{attrs:{label:"发现时间",prop:"time",sortable:"","sort-by":"time",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.dayjs(e.row.time).format("YYYY-MM-DD HH:mm:ss")||"-")+" ")]}}],null,!1,673528941)}),n("el-table-column",{attrs:{label:"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"checkDetailBtn",class:{"active-checkDetailBtn":e.row.expand},attrs:{round:""},on:{click:function(n){return t.toogleExpand(e.row)}}},[t._v(" 更多 "),n("i",{staticClass:"el-icon-arrow-down"})])]}}],null,!1,2678508125)}),n("el-table-column",{attrs:{type:"expand",width:"1"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"content-container"},[n("div",{staticClass:"top-menu"},[n("div",{staticClass:"menu-item",class:{"active-menu":e.row.activeTabName===e.$index+"0"},on:{click:function(n){return t.onChangTab(e.$index,"0")}}},[n("span",[t._v(t._s(t.$t("search.port_response")))])]),t._l(e.row.service&&e.row.service.protocalList,(function(i,r){return n("div",{key:r,staticClass:"menu-item",class:{"active-menu":e.row.activeTabName===e.$index+i},on:{click:function(n){return t.onChangTab(e.$index,i)}}},[t._v(" "+t._s(i)+"协议 ")])})),e.row.components&&e.row.components.length?n("div",{staticClass:"menu-item",class:{"active-menu":e.row.activeTabName===e.$index+"2"},on:{click:function(n){return t.onChangTab(e.$index,"2")}}},[n("span",[t._v(t._s(t.$t("search.product_component")))])]):t._e(),e.row.service&&e.row.service.http&&e.row.service.http.robots?n("div",{staticClass:"menu-item",class:{"active-menu":e.row.activeTabName===e.$index+"3"},on:{click:function(n){return t.onChangTab(e.$index,"3")}}},[n("span",[t._v("Robots")])]):t._e(),e.row.service&&e.row.service.http&&e.row.service.http.sitemap?n("div",{staticClass:"menu-item",class:{"active-menu":e.row.activeTabName===e.$index+"4"},on:{click:function(n){return t.onChangTab(e.$index,"4")}}},[n("span",[t._v("Sitemap")])]):t._e()],2),n("div",{staticClass:"content",class:{"component-content":e.row.activeTabName===e.$index+"2"},staticStyle:{position:"relative"}},[e.row.activeTabName===e.$index+"0"?n("div",[e.row.service&&e.row.service.response?n("div",[n("div",{staticClass:"show-all",on:{click:function(n){return t.onShowAll(e.row,"response")}}},[t._v("查看全部"),n("i",{staticClass:"el-icon-d-arrow-right"})]),n("el-tooltip",{attrs:{effect:"dark",content:"复制",placement:"top"}},[n("svg-icon",{staticClass:"svg copy_btn",attrs:{"icon-class":"copy","data-clipboard-text":JSON.stringify(e.row.service.response)},on:{click:t.onCopy}})],1),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.row.service.response,expression:"props.row.service.response"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.row.service.response},on:{input:function(n){n.target.composing||t.$set(e.row.service,"response",n.target.value)}}})],1):n("div",{staticStyle:{padding:"30px 0","text-align":"center"}},[t._v(t._s(t.$t("ip_detail.no_data")))])]):t._e(),e.row.activeTabName===e.$index+"1"?n("div",[n("div",{staticClass:"show-all",on:{click:function(n){return t.onShowAll(e.row,"cert")}}},[t._v("查看全部"),n("i",{staticClass:"el-icon-d-arrow-right"})]),n("el-tooltip",{attrs:{effect:"dark",content:"复制",placement:"top"}},[n("svg-icon",{staticClass:"svg copy_btn",attrs:{"icon-class":"copy","data-clipboard-text":JSON.stringify(e.row.service.cert)},on:{click:t.onCopy}})],1),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.row.service.cert,expression:"props.row.service.cert"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.row.service.cert},on:{input:function(n){n.target.composing||t.$set(e.row.service,"cert",n.target.value)}}})],1):t._e(),t._l(e.row.service&&e.row.service.protocalList,(function(i,r){return n("div",{key:r},[e.row.activeTabName===e.$index+i?n("span",[n("div",{staticClass:"show-all",on:{click:function(n){return t.onShowAll(e.row,i)}}},[t._v("查看全部"),n("i",{staticClass:"el-icon-d-arrow-right"})]),n("el-tooltip",{attrs:{effect:"dark",content:"复制",placement:"top"}},[n("svg-icon",{staticClass:"svg copy_btn",attrs:{"icon-class":"copy","data-clipboard-text":JSON.stringify(e.row.service[i])},on:{click:t.onCopy}})],1),n("VJsoneditor",{attrs:{options:t.options,plus:!1,height:"270px"},model:{value:e.row.service[i],callback:function(n){t.$set(e.row.service,i,n)},expression:"props.row.service[p]"}})],1):t._e()])})),e.row.activeTabName===e.$index+"2"?n("div",[n("div",{staticClass:"content-wrapper"},t._l(e.row.components,(function(e,i){return n("div",{key:i,staticClass:"port_product_item"},[n("div",{staticClass:"catalog-line"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"detail_product_component"}}),n("span",{staticClass:"catalog",on:{click:function(n){return t.onSeachComponent("catalog",e.product_catalog[0])}}},[t._v(t._s(e.product_catalog[0]))])],1),n("div",{staticClass:"productBody"},[n("div",{staticClass:"productHeadContainer"},[n("div",[n("div",{staticClass:"title",on:{click:function(n){return t.onSeachComponent("app",e.product_name_cn)}}},[t._v(t._s(e.product_name_cn))]),n("div",{staticClass:"title-en",on:{click:function(n){return t.onSeachComponent("app",e.product_name_en)}}},[n("span",{staticClass:"en-label"},[t._v("英文名称")]),t._v(" "+t._s(e.product_name_en))])]),n("div",{staticClass:"catelogs"},t._l(e.product_catalog,(function(e,i){return n("span",{key:i,staticClass:"catalog-item",on:{click:function(n){return t.onSeachComponent("catalog",e)}}},[t._v(t._s(e))])})),0)]),n("div",{staticClass:"vendor"},[n("span",{on:{click:function(n){return t.onSeachComponent("vendor",e.product_vendor)}}},[n("span",{staticClass:"en-label"},[t._v("厂商")]),t._v(t._s(e.product_vendor))])]),n("div",{staticClass:"vendor"},[n("span",{on:{click:function(n){return t.onSeachComponent("level",e.product_level)}}},[n("span",{staticClass:"en-label"},[t._v("层级")]),t._v(t._s(e.product_level))])]),n("div",{staticClass:"type-container"},t._l(e.product_type,(function(e,i){return n("span",{key:i,staticClass:"type-item",on:{click:function(n){return t.onSeachComponent("type",e)}}},[t._v(t._s(e))])})),0)])])})),0)]):t._e(),e.row.activeTabName===e.$index+"3"?n("div",[n("div",{staticClass:"show-all",on:{click:function(n){return t.onShowAll(e.row,"robots")}}},[t._v("查看全部"),n("i",{staticClass:"el-icon-d-arrow-right"})]),n("el-tooltip",{attrs:{effect:"dark",content:"复制",placement:"top"}},[n("svg-icon",{staticClass:"svg copy_btn",attrs:{"icon-class":"copy","data-clipboard-text":JSON.stringify(e.row.service.http.robots)},on:{click:t.onCopy}})],1),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.row.service.http.robots,expression:"props.row.service.http.robots"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.row.service.http.robots},on:{input:function(n){n.target.composing||t.$set(e.row.service.http,"robots",n.target.value)}}})],1):t._e(),e.row.activeTabName===e.$index+"4"?n("div",[n("div",{staticClass:"show-all",on:{click:function(n){return t.onShowAll(e.row,"sitemap")}}},[t._v("查看全部"),n("i",{staticClass:"el-icon-d-arrow-right"})]),n("el-tooltip",{attrs:{effect:"dark",content:"复制",placement:"top"}},[n("svg-icon",{staticClass:"svg copy_btn",attrs:{"icon-class":"copy","data-clipboard-text":JSON.stringify(e.row.service.http.sitemap)},on:{click:t.onCopy}})],1),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.row.service.http.sitemap,expression:"props.row.service.http.sitemap"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.row.service.http.sitemap},on:{input:function(n){n.target.composing||t.$set(e.row.service.http,"sitemap",n.target.value)}}})],1):t._e()],2)])]}}],null,!1,2457505909)})],1),n("IocPagination",{attrs:{type:"full",total:t.paginationConfig.total&&t.paginationConfig.total.value,currentPage:t.paginationConfig.page&&t.paginationConfig.page.value,pageSize:t.paginationConfig.size&&t.paginationConfig.size.value},on:{"size-change":t.paginationConfig.sizeChange.value,"current-change":t.paginationConfig.currentChange.value}})]:n("div",{staticClass:"no-data"},[n("svg-icon",{staticClass:"svg",staticStyle:{width:"65px",height:"100px"},attrs:{"icon-class":"no-data-icon"}}),n("div",[t._v(t._s(t.$t("ip_detail.no_data")))])],1)],2),n("el-dialog",{staticClass:"detail-dialog",attrs:{visible:t.showAllDialogConfig.dialogVisible,width:"70%"},on:{"update:visible":function(e){return t.$set(t.showAllDialogConfig,"dialogVisible",e)}}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("DialogTitle",{attrs:{showAllData:t.showAllData,selectIndex:"quake_service"}})],1),n("DialogBody",{attrs:{showAllData:t.showAllData,selectIndex:"quake_service",tabIndex:t.tabIndex}})],1),n("el-dialog",{staticClass:"product-component-dialog",attrs:{visible:t.adddialogVisible,width:"800px",title:""},on:{"update:visible":function(e){t.adddialogVisible=e}}},[n("p",[t._v("产品组件")]),t._l(t.appDialogData,(function(e,i){return n("div",{key:i,staticClass:"port_product_item"},[n("div",{staticClass:"catalog-line"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"detail_product_component"}}),n("span",{staticClass:"catalog",on:{click:function(n){return t.onSeachComponent("catalog",e.product_catalog[0])}}},[t._v(t._s(e.product_catalog[0]))])],1),n("div",{staticClass:"productBody"},[n("div",{staticClass:"productHeadContainer"},[n("div",[n("div",{staticClass:"title",on:{click:function(n){return t.onSeachComponent("app",e.product_name_cn)}}},[t._v(t._s(e.product_name_cn))]),n("div",{staticClass:"title-en",on:{click:function(n){return t.onSeachComponent("app",e.product_name_en)}}},[n("span",{staticClass:"en-label"},[t._v("英文名称")]),t._v(" "+t._s(e.product_name_en))])]),n("div",{staticClass:"catelogs"},t._l(e.product_catalog,(function(e,i){return n("span",{key:i,staticClass:"catalog-item",on:{click:function(n){return t.onSeachComponent("catalog",e)}}},[t._v(t._s(e))])})),0)]),n("div",{staticClass:"vendor"},[n("span",{on:{click:function(n){return t.onSeachComponent("vendor",e.product_vendor)}}},[n("span",{staticClass:"en-label"},[t._v("厂商")]),t._v(t._s(e.product_vendor))])]),n("div",{staticClass:"vendor"},[n("span",{on:{click:function(n){return t.onSeachComponent("level",e.product_level)}}},[n("span",{staticClass:"en-label"},[t._v("层级")]),t._v(t._s(e.product_level))])]),n("div",{staticClass:"type-container"},t._l(e.product_type,(function(e,i){return n("span",{key:i,staticClass:"type-item",on:{click:function(n){return t.onSeachComponent("type",e)}}},[t._v(t._s(e))])})),0)])])}))],2)],1)},A=[],I=(n("4ec9"),n("ac1f"),n("3ca3"),n("5319"),n("498a"),n("ddb0"),n("4702")),S=n("bcb2"),M=n.n(S),k=n("e83a"),E=n("2ef0"),T=n.n(E),O=n("3d5e"),P=n("7791"),j=n("955b"),L={mixins:[I["a"],O["a"]],components:{VJsoneditor:M.a,DialogTitle:P["a"],DialogBody:j["a"]},props:{port:{type:Number,default:void 0}},watch:{port:{handler:function(t){t&&(this.searchList.searchVal=t,this.onSearch())}}},data:function(){return{components:[{id:"5eba5f57c7671160b7a4b564",product_catalog:["Web系统与CMS"],product_level:"中间支撑层",product_name_cn:"Apache-HTTP-Server",product_name_en:"apache",product_type:["Web服务器"],product_vendor:"apache_stats",version:"2.4.29"}],loading:!1,searchList:{searchVal:""},tableHeaderConfig:{showOther:!0},searchResultList:[],indexList:[{key:"transport",label:"传输层",svg:"ipDetailTcp",bgColor:"#DEDEF2",color:"#6F68C4"},{key:"service.name",label:"服务协议",svg:"ipDetailProtocal",bgColor:"#D2E4F6",color:"#3987D6"},{key:"service.product",label:"产品",svg:"ipDetailProduct",bgColor:"#FAE0EB",color:"#E07474"},{key:"service.version",label:"版本",svg:"version",bgColor:"#D6D0FC",color:"#4355CB"}],options:{mainMenuBar:!1,mode:"code",onEditable:function(){}},componentMapping:new Map([["操作系统","componentOs"],["网络设备与服务","componentNetworkDeviceServer"],["通信设备","componentCommunicationDevice"],["网络安全设备","componentNetworkSecurityDevice"],["企业办公","componentEnterpriseOffice"],["Web系统与CMS","componentWebSystem"],["Web系统与应用","componentWebSystem"],["文件存储与管理","componentFileManage"],["开发与运维","componentDevelop"],["影音媒体","componentAv"],["电子商务","componentCommerce"],["IoT物联网","componentIot"],["IOT物联网","componentIot"],["工业控制系统","componentIndustryControl"],["运维","componentDevOps"],["开发","componentDevOps"],["区块链","componentBlockChain"],["移动设备","componentMobileDevice"],["未归档","componentUnfiled"],["特定行业产品与设备","componentUnfiled"]]),showAllData:{},tabIndex:"response",showAllDialogConfig:{dialogVisible:!1},jsonActiveName:"json",appDialogData:[],adddialogVisible:!1}},created:function(){this.objectPlat=k["a"],this._=T.a},methods:{toogleExpand:function(t){var e=t,n=this.$refs.porttable;n.toggleRowExpansion(t),e.expand=!t.expand},onToggleDialogTab:function(t){this.jsonActiveName=t},getTableData:function(){var t,e,n,i,r,o=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return this.loading=!0,t={},t.size=this.paginationConfig.size.value,t.start=(this.paginationConfig.page.value-1)*this.paginationConfig.size.value,this.searchList.searchVal?t.query='ip:"'.concat(this.$route.query.ip,'" AND port:').concat(this.searchList.searchVal):t.query='ip:"'.concat(this.$route.query.ip,'"'),a.next=7,regeneratorRuntime.awrap(Object(s["X"])(t,"quake_service"));case 7:e=a.sent,n=e.code,i=e.data,r=e.meta,0===n&&(i.forEach((function(t,e){o.$set(t,"activeTabName","".concat(e,"0")),t.service&&t.service.response&&(t.service.response=t.service.response.replace(/\\x0d\\x0a/g,"\n"),t.service.response=t.service.response.replace(/\\x09/g,"\n"),t.service.response=t.service.response.replace(/\\x0a/g,"\n")),t.service&&(o.$set(t.service,"protocalList",[]),Object.keys(t.service).forEach((function(e){if("name"!==e&&"product"!==e&&"version"!==e&&"banner"!==e&&"response"!==e&&"cert"!==e&&"protocalList"!==e){if(t.service.protocalList.push(e),t.service[e].response){var n=t.service[e].response.replace(/\n/g,"");t.service[e].response=n}if(t.service[e].body){var i=t.service[e].body.replace(/\n/g,"");t.service[e].body=i}}})))})),this.searchResultList=i,this.paginationConfig.total.value=r.pagination.total),this.loading=!1;case 11:case"end":return a.stop()}}),null,this)},onSearch:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:this.getTableData();case 1:case"end":return t.stop()}}),null,this)},onClear:function(){this.getTableData()},handleSizeChange:function(t){this.paginationConfig.size.value=t,this.getTableData()},handleCurrentChange:function(t){this.paginationConfig.page.value=t,this.getTableData()},onCopy:function(){var t=this,e=new f.a(".copy_btn");e.on("success",(function(){t.$message({message:t.$t("global.copy_success"),type:"success"}),e.destroy()})),e.on("error",(function(){t.$message({message:"复制失败！",type:"warning"}),e.destroy()}))},onChangTab:function(t,e){this.searchResultList[t].activeTabName=t+e},onSeachComponent:function(t,e){var n="".concat(t,': "').concat(e.trim(),'"'),i=this.$router.resolve({name:"searchResult",query:{searchVal:n,selectIndex:"quake_service"}}),r=i.href;window.open(r,"_blank")},onShowAll:function(t,e){this.showAllData=t,this.tabIndex=e,this.showAllDialogConfig.dialogVisible=!0},openAppDialog:function(t){this.appDialogData=t,this.adddialogVisible=!0}}},D=L,R=(n("f62a"),Object(x["a"])(D,C,A,!1,null,"59694c67",null)),B=R.exports,N=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"domain-wrapper"},[n("div",{staticClass:"search-input2"},[n("el-input",{attrs:{placeholder:t.$t("ip_detail.domain_placeholder"),clearable:"","prefix-icon":"el-icon-search"},on:{clear:t.onClear},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSearch(e)}},model:{value:t.searchList.domain,callback:function(e){t.$set(t.searchList,"domain",e)},expression:"searchList.domain"}})],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-content detailTable"},[t.tableData.length?[n("el-table",{ref:"domaintable",staticStyle:{width:"100%"},attrs:{data:t.tableData,size:"medium","header-row-class-name":"tableHeader","row-style":{margin:"15px"}},on:{"expand-change":t.handleExpandChange}},[n("el-table-column",{attrs:{label:"域名",sortable:"","sort-by":"domain",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.domain||"-")+" ")]}}],null,!1,1117637744)}),n("el-table-column",{attrs:{label:"类型",sortable:"","sort-by":"type",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.type||"-")+" ")]}}],null,!1,3833714856)}),n("el-table-column",{attrs:{label:"时间",sortable:"","sort-by":"time_last",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.dayjs(e.row.time_last).format("YYYY-MM-DD HH:mm:ss")||"-")+" ")]}}],null,!1,3306934968)}),n("el-table-column",{attrs:{label:"操作",width:"280",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"actionBtn",attrs:{type:"text",round:""},on:{click:function(n){return t.onSearchDomain(e.row)}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"detail_check"}}),t._v(" 检索 ")],1),n("el-button",{staticClass:"actionBtn",attrs:{type:"text",round:""},on:{click:function(n){return t.onSkipToSite(e.row)}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"detail_link"}}),t._v(" 跳转 ")],1),n("el-button",{staticClass:"checkDetailBtn",class:{"active-checkDetailBtn":e.row.expand},attrs:{round:""},on:{click:function(n){return t.toogleExpand(e.row,e.$index)}}},[t._v(" 更多 "),n("i",{staticClass:"el-icon-arrow-down"})])]}}],null,!1,695143979)}),n("el-table-column",{attrs:{type:"expand",width:"1"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.expandLoading,expression:"expandLoading"}]},[t.whoisExpandData&&Object.keys(t.whoisExpandData).length?n("div",{staticClass:"expand-conatiner"},[n("div",{staticClass:"expand-title"},[t._v(" Whois注册信息（数据来源：360 NetLab） ")]),n("div",{staticClass:"expand-time-line"},t._l(t.whiosTimeMapping,(function(i,r){return n("div",{key:r,staticClass:"time-item"},[n("span",{staticClass:"icon-container",style:{backgroundColor:i.color}},[n("svg-icon",{staticClass:"svg",style:{color:"#fff"},attrs:{"icon-class":i.icon}})],1),n("div",{staticClass:"des",style:{color:i.color}},[t._v(t._s(i.text)+" ")]),t.whoisExpandData[e.$index]?n("div",{staticClass:"time"},[t._v(t._s(t.whoisExpandData[e.$index][i.key]))]):t._e()])})),0),n("div",{staticClass:"expand-native-table"},[n("Table",{attrs:{tableData:t.whoisExpandData[e.$index]}})],1)]):n("div",{staticClass:"no-data"},[n("svg-icon",{staticStyle:{fontSize:"65px","margin-bottom":"10px"},attrs:{"icon-class":"no-data-icon"}}),n("div",[t._v(t._s(t.$t("ip_detail.no_data")))])],1)])]}}],null,!1,1752452044)})],1),n("IocPagination",{attrs:{type:"full",total:t.paginationConfig.total&&t.paginationConfig.total.value,currentPage:t.paginationConfig.page&&t.paginationConfig.page.value,pageSize:t.paginationConfig.size&&t.paginationConfig.size.value},on:{"size-change":t.paginationConfig.sizeChange.value,"current-change":t.paginationConfig.currentChange.value}})]:n("div",{staticClass:"no-data no-data-main"},[n("div",[n("svg-icon",{staticStyle:{fontSize:"65px","margin-bottom":"10px"},attrs:{"icon-class":"no-data-icon"}}),n("div",[t._v(t._s(t.$t("ip_detail.no_data")))])],1)])],2)])},F=[],z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table-wrapper"},[t._m(0),n("table",{staticClass:"table"},t._l(t.whiosMapping,(function(e,i){return n("tr",{key:i},[n("td",[t._v(t._s(e.text))]),n("td",t._l(t._.get(t.tableData,e.key),(function(e,i){return n("div",{key:i},[t._v(t._s(e))])})),0)])})),0),t._m(1),n("table",{staticClass:"table"},t._l(t.additionalMapping,(function(e,i){return n("tr",{key:i},[n("td",[t._v(t._s(e.text))]),n("td",t._l(t._.get(t.tableData,e.key),(function(e,i){return n("div",{key:i},[t._v(t._s(e))])})),0)])})),0)])},V=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table-title"},[n("span",[t._v("0x01 基本信息")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"table-title"},[n("span",[t._v("0x02 附加信息")])])}],G={props:{tableData:{type:Object,default:function(){}}},data:function(){return{whiosMapping:[{key:"extra.registrant_name",text:"注册者",type:"array"},{key:"extra.registrant_email",text:"注册者邮箱",type:"array"},{key:"registrarname",text:"域名注册服务单位",type:"array"}],additionalMapping:[{key:"nameservers",text:"DNS服务器",type:"array"}]}}},H=G,W=(n("607a"),Object(x["a"])(H,z,V,!1,null,"14989c48",null)),U=W.exports,Z={mixins:[I["a"]],components:{Table:U},data:function(){return{expandLoading:!1,searchList:{domain:""},tableConfig:{border:!1,stripe:!1},tableHeaderConfig:{type:["expand"],headerConfig:[{name:"域名",property:"domain",sortable:!0},{name:"类型",property:"type",width:"140",sortable:!0},{name:"时间",property:"time_last",width:"200",sortable:!0},{name:"操作",property:"operation",width:"110",operation:[{name:"检索",iconClass:"ipDetailOperate1",clickFun:this.onSearchDomain},{name:"跳转",iconClass:"ipDetailOperate2",clickFun:this.onSkipToSite}]}]},whiosData:null,whoisExpandData:{},whiosTimeMapping:[{key:"createdate",text:"创建时间",color:"#6F83FF",icon:"detail_creat"},{key:"expiratedate",text:"过期时间",color:"#F49763",icon:"detail_expire"},{key:"record_date",text:"首次发现时间",color:"#36C68D",icon:"detail_firstsee"},{key:"last_check",text:"最后发现时间",color:"#90A4AE",icon:"detail_lastsee"},{key:"updatedate",text:"更新时间",color:"#5790E6",icon:"detail_update"}]}},created:function(){this._=T.a},methods:{toogleExpand:function(t,e){var n=t,i=this.$refs.domaintable;i.toggleRowExpansion(t),n.expand=!t.expand,this.getIpDetailDomainWhois(this.$route.query.ip,t.domain,e)},onSearch:function(){this.getTableData()},onClear:function(){this.getTableData()},getTableData:function(){var t,e,n=this;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return this.loading=!0,t={},t.size=this.paginationConfig.size.value,t.start=(this.paginationConfig.page.value-1)*this.paginationConfig.size.value,this.searchList.domain&&(t.domain=this.searchList.domain),i.next=7,regeneratorRuntime.awrap(Object(s["D"])(t,this.$route.query.ip));case 7:e=i.sent,this.processResponseData(e),this.tableData.forEach((function(t,e){n.$set(t,"pk",e)}));case 10:case"end":return i.stop()}}),null,this)},onSearchDomain:function(t){var e='domain: "'.concat(t.domain,'"'),n=this.$router.resolve({name:"searchResult",query:{searchVal:e,selectIndex:"quake_service"}}),i=n.href;window.open(i,"_blank")},onSkipToSite:function(t){var e="http://".concat(t.domain);window.open(e)},getIpDetailDomainWhois:function(t,e,n){var i,r,o;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return this.whiosData=null,this.expandLoading=!0,a.next=4,regeneratorRuntime.awrap(Object(s["E"])(t,e));case 4:i=a.sent,r=i.code,o=i.data,0===r&&this.$set(this.whoisExpandData,n,o),this.expandLoading=!1;case 8:case"end":return a.stop()}}),null,this)},handleSizeChange:function(t){this.paginationConfig.size.value=t,this.getTableData()},handleCurrentChange:function(t){this.paginationConfig.page.value=t,this.getTableData()},handleExpandChange:function(){}}},Y=Z,X=(n("0d55"),Object(x["a"])(Y,N,F,!1,null,"1e2c691f",null)),q=X.exports,K=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"cert-wrapper"},[n("div",{staticClass:"search-input"},[n("el-input",{staticStyle:{width:"400px"},attrs:{placeholder:"请输入端口",clearable:""},on:{clear:t.onClear},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSearch(e)}},model:{value:t.searchList.port,callback:function(e){t.$set(t.searchList,"port",e)},expression:"searchList.port"}},[n("el-button",{attrs:{slot:"append"},on:{click:t.onSearch},slot:"append"},[t._v("确定")])],1)],1),n("IocTable",{attrs:{tableData:t.tableData,tableHeaderConfig:t.tableHeaderConfig,paginationConfig:t.paginationConfig},on:{handleSelectionChange:t.handleSelectionChange,handleExpandChange:t.handleExpandChange}},t._l(t.tableData,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[n("div",{staticClass:"top-container"},[n("div",{staticClass:"port-line"},[n("span",{staticClass:"port"},[t._v(t._s(e.port)+"-"+t._s(e["service.name"]))]),n("svg-icon",{attrs:{"icon-class":"ipDetailCertDownload","class-name":"svg"},on:{click:function(e){return t.onDownload(i)}}})],1),n("div",{staticClass:"time-line"},[n("svg-icon",{staticClass:"icon",attrs:{"icon-class":"clock"}}),n("span",[t._v(t._s(t.dayjs(e.time).format("YYYY-MM-DD HH:mm:ss")))])],1)]),n("div",{staticClass:"native-table-container"},[n("table",{staticClass:"table"},[t._l(e.certList,(function(e,r){return["Raw"!==e.key?n("tr",{key:r},[n("td",[t._v(t._s(e.key))]),n("td",[t.highlightKeys.includes(e.key)&&e.value?n("div",{staticClass:"des-value",class:{"highlight-value":t.highlightKeys.includes(e.key)},on:{click:function(n){return t.onSearchCert(e.value)}}},[t._v(" "+t._s(e.value)+" ")]):n("div",{staticClass:"des-value",class:[!e.isExpand&&String(e.value).trim()&&t.expandKeys.includes(e.key)?"des-value-collapse":""]},[n("span",[t._v(t._s(e.value||"-"))]),e.isExpand?n("span",{staticClass:"collapse",on:{click:function(e){return t.onCollapse(i,r)}}},[t._v("收起")]):t._e()]),!e.isExpand&&String(e.value).trim()&&t.expandKeys.includes(e.key)?n("span",{staticClass:"expand",on:{click:function(e){return t.onExpand(i,r)}}},[t._v("展开")]):t._e()])]):t._e()]}))],2)])])})),0)],1)},Q=[],J=(n("1276"),n("2b3d"),{mixins:[I["a"]],data:function(){return{init:!0,searchList:{port:""},tableHeaderConfig:{showOther:!0},highlightKeys:["Serial Number","Authority Key Identifier","Subject Key Identifier","subjectAltName"],expandKeys:["Subject Public Key Info","Certificate Signature"]}},methods:{getTableData:function(){var t,e,n=this;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return this.loading=!0,t={},t.size=this.paginationConfig.size.value,t.start=(this.paginationConfig.page.value-1)*this.paginationConfig.size.value,this.searchList.port&&(t.port=this.searchList.port),i.next=7,regeneratorRuntime.awrap(Object(s["C"])(t,this.$route.query.ip));case 7:e=i.sent,this.processResponseData(e),this.tableData.forEach((function(t){var e=[],i=t["service.cert"].replace(/\r\n\t/g,"").replace(/\n\t/g,"").split(/\r\n/g);i.forEach((function(t){if(t){var n=t.trim().replace(/:/,"@@@").split("@@@"),i=Object(u["a"])(n,2),r=i[0],o=i[1],a={key:r,value:o,isExpand:!1};e.push(a)}})),n.$set(t,"certList",e)})),this.init&&(this.init=!1,this.$emit("onNotifyCertCount",e.meta.pagination.total));case 11:case"end":return i.stop()}}),null,this)},onSearch:function(){this.getTableData()},onClear:function(){this.getTableData()},handleSizeChange:function(t){this.paginationConfig.size.value=t,this.getTableData()},handleCurrentChange:function(t){this.paginationConfig.page.value=t,this.getTableData()},onDownload:function(t){var e=this.tableData[t].certList,n=e.length,i=new Blob([JSON.stringify(e[n-1].value)]),r=URL.createObjectURL(i),o=document.createElement("a");o.download="Serial Number.pem",o.href=r,document.body.appendChild(o),o.click();var a=setTimeout((function(){clearTimeout(a),document.body.removeChild(o),window.URL.revokeObjectURL(r)}),100)},onSearchCert:function(t){var e='cert: "'.concat(t.trim(),'"'),n=this.$router.resolve({name:"searchResult",query:{searchVal:e,selectIndex:"quake_service"}}),i=n.href;window.open(i,"_blank")},onExpand:function(t,e){this.tableData[t].certList[e].isExpand=!0},onCollapse:function(t,e){this.tableData[t].certList[e].isExpand=!1}}}),$=J,tt=(n("0cda"),Object(x["a"])($,K,Q,!1,null,"205d21cd",null)),et=tt.exports,nt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vul-wrapper"},[n("div",{staticClass:"search-input2"},[n("el-input",{attrs:{placeholder:t.$t("ip_detail.vulnerability_placeholder"),clearable:"","prefix-icon":"el-icon-search"},on:{clear:t.onClear},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onSearch(e)}},model:{value:t.searchList.vulnerability_name,callback:function(e){t.$set(t.searchList,"vulnerability_name",e)},expression:"searchList.vulnerability_name"}})],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table-content detailTable"},[t.tableData.length?[n("el-table",{ref:"vultable",staticStyle:{width:"100%"},attrs:{data:t.tableData,size:"medium","header-row-class-name":"tableHeader","row-style":{margin:"15px"}},on:{"expand-change":t.handleExpandChange}},[n("el-table-column",{attrs:{label:"漏洞名称",sortable:"",width:t.titleWidth,"sort-by":"name",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.name||"-")+" ")]}}],null,!1,2078098359)}),n("el-table-column",{attrs:{label:"等级",sortable:"","sort-by":"level",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return["低危"===e.row.level?n("span",[n("span",{staticClass:"level low-level"},[t._v("低危")])]):"中危"===e.row.level?n("span",[n("span",{staticClass:"level medium-level"},[t._v("中危")])]):"高危"===e.row.level?n("span",[n("span",{staticClass:"level high-level"},[t._v("高危")])]):"严重"===e.row.level?n("span",[n("span",{staticClass:"level critic-level"},[t._v("严重")])]):n("span",[t._v("-")])]}}],null,!1,3101537543)}),n("el-table-column",{attrs:{label:"类型",sortable:"","sort-by":"type",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"typeContainer"},[t._v(" "+t._s(e.row.type||"-")+" ")])]}}],null,!1,2059596202)}),n("el-table-column",{attrs:{label:"端口",sortable:"","sort-by":"port",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{staticClass:"port-box"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"ipDetailPort"}}),n("span",{staticClass:"port"},[t._v(t._s(e.row.port))])],1)]}}],null,!1,3353244291)}),n("el-table-column",{attrs:{label:"时间",sortable:"","sort-by":"time",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.dayjs(e.row.time).format("YYYY-MM-DD HH:mm:ss")||"-")+" ")]}}],null,!1,673528941)}),n("el-table-column",{attrs:{label:"操作",width:"180",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{staticClass:"actionBtn",attrs:{type:"text",round:""},on:{click:function(n){return t.onDetail("",e.row)}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"detail"}}),t._v(" 详情 ")],1),n("el-button",{staticClass:"checkDetailBtn",class:{"active-checkDetailBtn":e.row.expand},attrs:{round:""},on:{click:function(n){return t.toogleExpand(e.row)}}},[t._v(" 更多 "),n("i",{staticClass:"el-icon-arrow-down"})])]}}],null,!1,2159067594)}),n("el-table-column",{attrs:{type:"expand",width:"1"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"expand-conatiner"},[n("div",{staticClass:"expand-title"},[t._v(" 漏洞证明 "),t._e()]),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.expandLoading,expression:"expandLoading"},{name:"highlight",rawName:"v-highlight"}],staticClass:"expand-code"},[t.vulProveText.trim().length?n("pre",[n("code",{domProps:{innerHTML:t._s(t.DOMPurify.sanitize(t.vulProveText))}})]):n("div",{staticClass:"no-data"},[n("svg-icon",{staticStyle:{fontSize:"65px","margin-bottom":"10px"},attrs:{"icon-class":"no-data-icon"}}),n("div",[t._v(t._s(t.$t("ip_detail.no_data")))])],1)])])]}}],null,!1,1497578889)})],1),n("IocPagination",{attrs:{type:"full",total:t.paginationConfig.total&&t.paginationConfig.total.value,currentPage:t.paginationConfig.page&&t.paginationConfig.page.value,pageSize:t.paginationConfig.size&&t.paginationConfig.size.value},on:{"size-change":t.paginationConfig.sizeChange.value,"current-change":t.paginationConfig.currentChange.value}})]:n("div",{staticClass:"no-data no-data-main"},[n("div",[n("svg-icon",{staticClass:"svg",staticStyle:{width:"65px",height:"100px"},attrs:{"icon-class":"no-data-icon"}}),n("div",[t._v(t._s(t.$t("ip_detail.no_data")))])],1)])],2)])},it=[],rt=(n("b0c0"),{mixins:[I["a"]],data:function(){return{expandLoading:!1,searchList:{vulnerability_name:""},vulProveText:"",tableConfig:{border:!1,stripe:!1},tableHeaderConfig:{type:["expand"],headerConfig:[{name:"漏洞名称",property:"name",sortable:!0},{name:"等级",property:"level",width:"80",sortable:!0,type:"status"},{name:"类型",property:"type",width:"140",sortable:!0},{name:"端口",property:"port",width:"140",sortable:!0,type:"status"},{name:"时间",property:"time",width:"190",sortable:!0},{name:"操作",property:"operation",width:"70",operation:[{name:"详情",iconClass:"detail",clickFun:this.onDetail}]}]}}},computed:{titleWidth:function(){return window.innerWidth<1440?150:320}},methods:{toogleExpand:function(t){var e=t,n=this.$refs.vultable;n.toggleRowExpansion(t),e.expand=!t.expand},onSearch:function(){this.getTableData()},onClear:function(){this.getTableData()},getTableData:function(){var t,e,n,i,r,o,a,l,c,u=this;return regeneratorRuntime.async((function(h){while(1)switch(h.prev=h.next){case 0:return this.loading=!0,t={},t.size=this.paginationConfig.size.value,t.start=(this.paginationConfig.page.value-1)*this.paginationConfig.size.value,this.searchList.vulnerability_name&&(t.vulnerability_name=this.searchList.vulnerability_name),h.next=7,regeneratorRuntime.awrap(Object(s["H"])(t,this.$route.query.ip));case 7:e=h.sent,n=e.code,i=e.data,0===n&&(this.tableData=i,this.tableData.forEach((function(t){u.$set(t,"pk",t.id),u.$set(t,"name",t.vulnerability.name),u.$set(t,"level",t.vulnerability.level),u.$set(t,"type",t.vulnerability.type)})),e.meta&&e.meta.pagination&&(r=e.meta.pagination,o=r.total,a=r.page_index,l=r.page_size,c=r.count,this.paginationConfig.page.value=a,this.paginationConfig.size.value=l,this.paginationConfig.count.value=c,this.paginationConfig.total.value=o)),this.loading=!1;case 11:case"end":return h.stop()}}),null,this)},onSkipDetail:function(t){for(var e=t.vulnerability.number,n="",i=0;i<e.length;i++)if(e[i].includes("QH")){n=e[i];break}var r=this.$router.resolve({name:"vulDetail",params:{id:n,state:"front"}}),o=r.href;window.open(o,"_blank")},getIpDetailVulInfo:function(t){var e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.vulProveText="",this.expandLoading=!0,r.next=4,regeneratorRuntime.awrap(Object(s["G"])(t));case 4:e=r.sent,n=e.code,i=e.data,0===n&&(this.vulProveText=i),this.expandLoading=!1;case 8:case"end":return r.stop()}}),null,this)},handleSizeChange:function(t){this.paginationConfig.size.value=t,this.getTableData()},handleCurrentChange:function(t){this.paginationConfig.page.value=t,this.getTableData()},handleExpandChange:function(t){this.getIpDetailVulInfo(t.pk)}}}),ot=rt,at=(n("e4c9"),Object(x["a"])(ot,nt,it,!1,null,"10603945",null)),st=at.exports,lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"left"},[n("div",{staticClass:"history-container"},[t.scanHistory&&t.scanHistory.length?n("div",{staticClass:"dotLine",style:{height:t.timeContainerHeight+"px"}}):t._e(),n("div",{staticClass:"title"},[t._v("扫描历史（近一年）")]),t.scanHistory&&t.scanHistory.length?n("VuePerfectScrollbar",[n("div",{staticClass:"time-container"},t._l(t.history_list_year,(function(e,i){return n("div",{key:i},[n("div",{staticClass:"history-year"},[t._v(t._s(e))]),t._l(t.scanHistory,(function(i,r){return[t.dayjs(i.time).get("year")===e?n("div",{key:r,staticClass:"time-line",class:{"time-last-line":r+1===(t.endNumber<t.scanHistory.length?t.endNumber:t.scanHistory.length)}},[n("span",{staticClass:"time"},[t._v(t._s(i.time))]),n("span",{staticClass:"box"}),n("el-tooltip",{attrs:{effect:"dark",content:String(i.port),placement:"top"}},[n("span",{staticClass:"port",on:{click:function(e){return t.onSearchPort(i.port)}}},[n("svg-icon",{attrs:{"icon-class":"detailPort"}}),t._v(" "+t._s(i.port)+" ")],1)]),n("el-tooltip",{attrs:{effect:"dark",content:i.name,placement:"top"}},[n("span",{staticClass:"serviceName"},[t._v(" "+t._s(i.name)+" ")])])],1):t._e()]}))],2)})),0)]):n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"no-data"},[n("div",[n("svg-icon",{staticClass:"svg",staticStyle:{width:"65px",height:"100px"},attrs:{"icon-class":"no-data-icon"}}),n("div",[t._v(t._s(t.$t("ip_detail.no_data")))])],1)])],1)])},ct=[],ut=(n("a630"),n("d81d"),n("6062"),n("5a0c")),ht=n.n(ut),dt=n("9d63"),pt=n.n(dt),ft={props:{scanHistory:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1}},data:function(){return{endNumber:5,timeContainerHeight:0}},components:{VuePerfectScrollbar:pt.a},watch:{scanHistory:{handler:function(){var t=this;this.$nextTick((function(){t.$el.querySelector(".time-container")&&(t.timeContainerHeight=t.$el.querySelector(".time-container").offsetHeight-70)}))},deep:!0}},computed:{productLevel:function(){var t=[{level:"应用业务层",products:[]},{level:"中间支撑层",products:[]},{level:"服务协议层",products:[]},{level:"操作系统层",products:[]},{level:"硬件设备层",products:[]}];if(this.detail&&this.detail.document&&this.detail.document.services){var e=["应用业务层","中间支撑层","服务协议层","操作系统层","硬件设备层"];this.detail.document.services.forEach((function(n){n.components.forEach((function(n){var i=e.indexOf(n.product_level);t[i].products.push(n.product_name_cn)}))}))}return t},history_list_year:function(){var t=this.scanHistory.map((function(t){return ht()(t.time).get("year")}));return Array.from(new Set(t))}},methods:{onMore:function(){this.endNumber+=80},onSearchPort:function(t){this.$emit("onSearchPort",t)}}},gt=ft,mt=(n("5f12"),Object(x["a"])(gt,lt,ct,!1,null,"b74889e2",null)),vt=mt.exports,yt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"product-level-container"},[n("div",{staticClass:"content"},[n("div",{staticClass:"btnContainer"},[n("div",{staticClass:"btn level",class:[{active:"level"===t.active},t.getThemeClass],on:{click:function(e){return t.changeGraph("level")}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"theme-dark-green"===t.themeClassName?"detail_level_dark_green":"detail_level"}}),n("div",{staticClass:"num"},[n("span",{staticClass:"number"},[t._v(t._s(t.flatComponentsLevel||0))]),n("span",{staticClass:"name"},[t._v(t._s(t.$t("ip_detail.product_application")))])])],1),n("div",{staticClass:"btn vendor",class:[{active:"vendor"===t.active},t.getThemeClass],on:{click:function(e){return t.changeGraph("vendor")}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"theme-dark-green"===t.themeClassName?"detail_vendor_dark_green":"detail_vendor"}}),n("div",{staticClass:"num"},[n("span",{staticClass:"number"},[t._v(t._s(t.flatComponentsVendor||0))]),n("span",{staticClass:"name"},[t._v(t._s(t.$t("ip_detail.vendor")))])])],1),n("div",{staticClass:"btn catalog",class:[{active:"catalog"===t.active},t.getThemeClass],on:{click:function(e){return t.changeGraph("catalog")}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"theme-dark-green"===t.themeClassName?"detail_catalog_dark_green":"detail_catalog"}}),n("div",{staticClass:"num"},[n("span",{staticClass:"number"},[t._v(t._s(t.flatComponentsCatalog||0))]),n("span",{staticClass:"name"},[t._v(t._s(t.$t("ip_detail.type_category")))])])],1)]),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{id:"container"}}),t.noData?n("div",{staticClass:"no-data"},[n("div",[n("svg-icon",{staticClass:"svg",staticStyle:{width:"65px",height:"100px"},attrs:{"icon-class":"no-data-icon"}}),n("div",[t._v(t._s(t.$t("ip_detail.no_data")))])],1)]):t._e()])])},bt=[],xt=(n("a15b"),n("45fc"),n("4d63"),n("25f0"),n("30d1")),wt=n.n(xt),_t=n("873b");function Ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function At(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var It={level:"#4279FD",vendor:"#9F85F2",name:"#9F85F2",type:"#38D0C9",catalog:"#40C4F1"},St={mixins:[_t["a"]],props:{detail:{type:Object,default:function(){return{}}},ip:{type:String,default:""}},data:function(){return{data:{nodes:[],edges:[]},loading:!1,active:"level",noData:!1,ipDetailGraph:null}},computed:At({},Object(a["e"])("site",["themeClassName"]),{flatComponents:function(){var t=[];return this.detail&&this.detail.document&&this.detail.document.services.length>0&&this.detail.document.services.forEach((function(e){e&&e.components&&Array.isArray(e.components)&&e.components.forEach((function(e){t.push(e)}))})),t},flatComponentsLevel:function(){var t=this.flatComponents.map((function(t){return t.product_level}));return this._.uniq(t).length},flatComponentsVendor:function(){var t=this.flatComponents.map((function(t){return t.product_vendor}));return this._.uniq(t).length},flatComponentsCatalog:function(){var t=[];return this.flatComponents.forEach((function(e){t=t.concat(e.product_type),t=t.concat(e.product_catalog)})),this._.uniq(t).length}}),mounted:function(){this.registeNodeEdge(),this.levelTransData(),this.graphRender()},watch:{flatComponents:function(){this.$el.querySelector("#container").innerHTML="",this.levelTransData(),this.graphRender()},themeClassName:function(){this.$el.querySelector("#container").innerHTML="",this.levelTransData(),this.graphRender()}},methods:{fittingString:function(t,e,n){var i="...",r=wt.a.Util.getTextSize(i,n)[0],o=0,a=t,s=new RegExp("[一-龥]+");return t.split("").forEach((function(l,c){o>e-r||(s.test(l)?o+=n:o+=wt.a.Util.getLetterWidth(l,n),o>e-r&&(a="".concat(t.substr(0,c)).concat(i)))})),a},changeGraph:function(t){this.$el.querySelector("#container").innerHTML="",this.active=t,"level"===t&&(this.loading=!0,this.levelTransData(),this.graphRender(),this.loading=!1),"vendor"===t&&(this.loading=!0,this.venderTransData(),this.graphRender(),this.loading=!1),"catalog"===t&&(this.loading=!0,this.catalogTransData(),this.graphRender(),this.loading=!1)},levelTransData:function(){var t=this;this.data={nodes:[{id:this.ip,label:this.ip,labelOrigin:this.ip,recttype:"level"}],edges:[]},this.flatComponents.forEach((function(e,n){var i=e.product_level,r=t.data.nodes.some((function(t){return t.id===i}));r||(t.data.nodes.push({id:i,label:i,labelOrigin:i,recttype:"level"}),t.data.edges.push({source:t.ip,target:i,recttype:"level",style:{stroke:It.level}}));var o=e.product_name_cn;t.data.nodes.push({id:"".concat(o).concat(n),label:o,labelOrigin:o,recttype:"name"}),t.data.edges.push({source:i,target:"".concat(o).concat(n),recttype:"name",style:{stroke:It.name}});var a=e.product_catalog.join(" | "),s=e.product_type.join(" | ");t.data.nodes.push({id:"".concat(a).concat(n),label:a,labelOrigin:a,recttype:"catalog"}),t.data.edges.push({source:"".concat(o).concat(n),target:"".concat(a).concat(n),recttype:"catalog",style:{stroke:It.catalog}}),t.data.nodes.push({id:"".concat(s).concat(n),label:s,labelOrigin:s,recttype:"type"}),t.data.edges.push({source:"".concat(o).concat(n),target:"".concat(s).concat(n),recttype:"type",style:{stroke:It.type}})}))},venderTransData:function(){var t=this;this.data={nodes:[{id:this.ip,label:this.ip,labelOrigin:this.ip,recttype:"level"}],edges:[]},this.flatComponents.forEach((function(e,n){var i=e.product_vendor,r=t.data.nodes.some((function(t){return t.id===i}));r||(t.data.nodes.push({id:i,label:i,labelOrigin:i,recttype:"vendor"}),t.data.edges.push({source:t.ip,target:i,recttype:"vendor",style:{stroke:It.vendor}}));var o=e.product_name_cn;t.data.nodes.push({id:"".concat(o).concat(n),label:o,labelOrigin:o,recttype:"name"}),t.data.edges.push({source:i,target:"".concat(o).concat(n),recttype:"name",style:{stroke:It.name}});var a=e.product_catalog.join(" | "),s=e.product_type.join(" | ");t.data.nodes.push({id:"".concat(a).concat(n),label:a,labelOrigin:a,recttype:"catalog"}),t.data.edges.push({source:"".concat(o).concat(n),target:"".concat(a).concat(n),recttype:"catalog",style:{stroke:It.catalog}}),t.data.nodes.push({id:"".concat(s).concat(n),label:s,labelOrigin:s,recttype:"type"}),t.data.edges.push({source:"".concat(o).concat(n),target:"".concat(s).concat(n),recttype:"type",style:{stroke:It.type}})}))},catalogTransData:function(){var t=this;this.data={nodes:[{id:this.ip,label:this.ip,labelOrigin:this.ip,recttype:"level"}],edges:[]},this.flatComponents.forEach((function(e,n){var i=e.product_catalog.join(" | "),r=t.data.nodes.some((function(t){return t.id===i}));r||(t.data.nodes.push({id:i,label:i,labelOrigin:i,recttype:"catalog"}),t.data.edges.push({source:t.ip,target:i,recttype:"catalog",style:{stroke:It.catalog}}));var o=e.product_type.join(" | ");t.data.nodes.push({id:"".concat(o).concat(n),label:o,labelOrigin:o,recttype:"type"}),t.data.edges.push({source:i,target:"".concat(o).concat(n),recttype:"type",style:{stroke:It.type}});var a=e.product_name_cn;t.data.nodes.push({id:"".concat(a).concat(n),label:a,labelOrigin:a,recttype:"name"}),t.data.edges.push({source:"".concat(o).concat(n),target:"".concat(a).concat(n),recttype:"name",style:{stroke:It.name}})}))},graphRender:function(){var t=this,e=this.$el.querySelector("#container"),n=e.scrollWidth,i=e.scrollHeight||375;if(1===this.data.nodes.length&&0===this.data.edges.length)return this.$el.querySelector("#container").innerHTML="",void(this.noData=!0);this.noData=!1,this.data.nodes.forEach((function(e){var n=e;n.label=t.fittingString(e.label,150,14)}));var r=this,o=(new wt.a.Tooltip({getContent:function(t){var e=document.createElement("div");return console.log("e",t),"node"===t.item._cfg.type?(e.style.width="200px",e.innerHTML='\n                  <div style="\n                  width: 100%;height: 100%;\n                  background: '.concat("theme-dark-green"===r.themeClassName?"#21232D":"",";\n                  color: ").concat("theme-dark-green"===r.themeClassName?"#9DA6B2":"",';\n                  ">\n                    ').concat(t.item._cfg.id,"\n                  </div>\n                "),e):(e.style.display="none",e)}}),new wt.a.Minimap({})),a=new wt.a.Graph({container:e,plugins:[o],width:n,height:i,layout:{type:"dagre",rankdir:"LR",nodesep:30,ranksep:100},modes:{default:["drag-canvas","zoom-canvas",{type:"tooltip",className:"app-level-tooltip",formatText:function(t){return t.labelOrigin},shouldUpdate:function(){return!0}}]},defaultNode:{type:"round-rect",labelCfg:{style:{fill:"theme-dark-green"===this.themeClassName?"#9DA6B2":"#000000A6",fontSize:14,color:"#26323E",fontWeight:"bolder",textArr:["aaaa","bbbbb","cccc"]}},style:{stroke:"#72CC4A",width:150}},defaultEdge:{type:"cubic-horizontal",style:{lineWidth:1.2,endArrow:!1}}});this.ipDetailGraph=a;var s=document.getElementsByClassName("g6-tooltip")[0];s&&(s.style.backgroundColor="#1C1E26"),a.data(this.data),a.render();var l=a.getEdges();l.forEach((function(t){var e=t.getKeyShape(),n=e.attr("stroke"),i=t.getTarget();i.update({style:{stroke:n}})})),a.paint()},registeNodeEdge:function(){wt.a.registerNode("round-rect",{drawShape:function(t,e){var n=t.style.width,i=It[t.recttype],r=e.addShape("rect",{attrs:{x:-n/2,y:-18,width:n,height:36,radius:8,stroke:i,lineWidth:1.2,fillOpacity:1},name:"rect-shape"});return e.addShape("circle",{attrs:{x:-n/2,y:0,r:3,fill:i},name:"circle-shape"}),e.addShape("circle",{attrs:{x:n/2,y:0,r:3,fill:i},name:"circle-shape2"}),r},getAnchorPoints:function(){return[[0,.5],[1,.5]]},update:function(t,e){var n=e.getContainer(),i=n.get("children"),r=i[0],o=i[1],a=i[2],s=t.style.stroke;s&&(r.attr("stroke",s),o.attr("fill",s),a.attr("fill",s))}},"single-node"),wt.a.registerEdge("polyline",{itemType:"edge",draw:function(t,e){var n=t.startPoint,i=t.endPoint,r=i.y-n.y,o=0!==r?500/Math.abs(r):0,a=16,s=r<0?a:-a,l={x:n.x+o,y:i.y+s},c={x:l.x+a,y:i.y},u={x:(l.x-n.x)*(i.y-n.y)/(l.y-n.y)+n.x,y:i.y},h=[["M",n.x,n.y],["L",l.x,l.y],["Q",u.x,u.y,c.x,c.y],["L",i.x,i.y]];0===r&&(h=[["M",n.x,n.y],["L",i.x,i.y]]);var d=e.addShape("path",{attrs:{path:h,stroke:It[t.recttype],lineWidth:1.2,endArrow:!1},name:"path-shape"});return d}})}}},Mt=St,kt=(n("ed58"),Object(x["a"])(Mt,yt,bt,!1,null,"007bedcd",null)),Et=kt.exports;function Tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Ot(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Pt={components:{BaseInfo:_,Port:B,Domain:q,Cert:et,Vul:st,History:vt,Product:Et},data:function(){return{certCount:0,loading:!1,searchList:{ip:this.$route.query.ip||"",port:void 0},detail:{},scanHistory:[],activeTab:"Port",independentPort:0}},computed:Ot({},Object(a["e"])("site",["role"]),{tabListDisplay:function(){return window.Config&&window.Config.permission&&window.Config.permission.includes("front.vulnerability.query")?this.tabList:[{tabName:this.$t("ip_detail.port_list"),componentName:"Port"},{tabName:"".concat(this.$t("ip_detail.domain"),"/Whois"),componentName:"Domain"},{tabName:this.$t("ip_detail.product_level"),componentName:"Product"}]},tabList:function(){return[{tabName:this.$t("ip_detail.port_list"),componentName:"Port"},{tabName:"".concat(this.$t("ip_detail.domain"),"/Whois"),componentName:"Domain"},{tabName:this.$t("ip_detail.vulnerability_information"),componentName:"Vul"},{tabName:this.$t("ip_detail.product_level"),componentName:"Product"}]}}),watch:{"$route.query":{handler:function(t){t.tab?this.activeTab=t.tab:this.activeTab="Port"},immediate:!0}},created:function(){this.getHostIndependentPort(),this.getIpDetail(),this.ajaxGetIpDetailScanHistory()},methods:{onSearchMoreFromBaseInfo:function(t,e,n){if(String(e).includes("暂无权限"))return this.toggleMultiDialog("unAuth"),!1;if("ipC"===n){this.searchList.searchVal="".concat(t,': "').concat(e,'"');var i=this.$router.resolve({name:"searchResult",query:{searchVal:this.searchList.searchVal}}),r=i.href;return window.open(r,"_blank"),!1}if(this.searchList.searchVal){var o=this.searchList.searchVal;(o.includes("OR")||o.includes("||")||o.includes("app")||o.includes("NOT"))&&(o="(".concat(o,")")),"version"===t?this.searchList.searchVal="".concat(o,' AND product: "').concat(e,'" AND ').concat(t,': "').concat(n,'"'):"is_ipv6"===t?e.indexOf(":")>0?this.searchList.searchVal="".concat(o," AND ").concat(t,": true"):this.searchList.searchVal="".concat(o," AND ").concat(t,": false"):this.searchList.searchVal="".concat(o," AND ").concat(t,': "').concat(e,'"')}else"version"===t?this.searchList.searchVal='product: "'.concat(e,'" AND ').concat(t,': "').concat(n,'"'):"is_ipv6"===t?e.indexOf(":")>=0?this.searchList.searchVal="".concat(t,": true"):this.searchList.searchVal="".concat(t,": false"):this.searchList.searchVal="".concat(t,': "').concat(e,'"');return!0},onNotifyCertCount:function(t){this.certCount=t},onChangeTab:function(t){this.$router.push({name:"ipDetail",query:{ip:this.searchList.ip,tab:t}}),this.activeTab=t},ajaxGetIpDetailScanHistory:function(){var t;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,regeneratorRuntime.awrap(Object(s["F"])({ip:this.searchList.ip}));case 3:t=e.sent,0===t.code&&(this.scanHistory=t.data),this.loading=!1;case 6:case"end":return e.stop()}}),null,this)},getIpDetail:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.loading=!0,r.prev=1,t={ip:this.searchList.ip},r.next=5,regeneratorRuntime.awrap(Object(s["B"])(t));case 5:e=r.sent,n=e.code,i=e.data,0===n&&(this.detail=i),this.loading=!1,r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](1),this.loading=!1;case 14:case"end":return r.stop()}}),null,this,[[1,11]])},getHostIndependentPort:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return t={ip:this.searchList.ip},r.next=3,regeneratorRuntime.awrap(Object(s["q"])(t));case 3:e=r.sent,n=e.code,i=e.data,0===n&&(this.independentPort=i);case 6:case"end":return r.stop()}}),null,this)},onClickStatistics:function(t){t&&(this.activeTab=t)},onSearchPort:function(t){this.activeTab="Port",this.searchList.port=t}}},jt=Pt,Lt=(n("79a0"),Object(x["a"])(jt,i,r,!1,null,"ce718f92",null));e["default"]=Lt.exports},7104:function(t,e,n){(function(e,n){t.exports=n()})(window,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/index.ts")}({"./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js":
/*!********************************************************************************!*\
  !*** ./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js ***!
  \********************************************************************************/
/*! no static exports found */function(t,e,n){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e,n){var i=n(7);t.exports={assign:i}},function(t,e,n){var i=n(3),r=function(){function t(t,e){void 0===e&&(e={});var n=this;n.options=e,n.rootNode=i(t,e)}var e=t.prototype;return e.execute=function(){throw new Error("please override this method")},t}();t.exports=r},function(t,e,n){var i=n(4),r=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=function(t){return o.indexOf(t)>-1},s=r[0];t.exports=function(t,e,n){var o=e.direction||s;if(e.isHorizontal=a(o),o&&-1===r.indexOf(o))throw new TypeError("Invalid direction: "+o);if(o===r[0])n(t,e);else if(o===r[1])n(t,e),t.right2left();else if(o===r[2])n(t,e);else if(o===r[3])n(t,e),t.bottom2top();else if(o===r[4]||o===r[5]){var l=i(t,e),c=l.left,u=l.right;n(c,e),n(u,e),e.isHorizontal?c.right2left():c.bottom2top(),u.translate(c.x-u.x,c.y-u.y),t.x=c.x,t.y=u.y;var h=t.getBoundingBox();e.isHorizontal?h.top<0&&t.translate(0,-h.top):h.left<0&&t.translate(-h.left,0)}var d=e.fixedRoot;return void 0===d&&(d=!0),d&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var i=n(0),r=18,o=2*r,a=r,s={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||a},getVGap:function(t){return t.vgap||a},getChildren:function(t){return t.children},getHeight:function(t){return t.height||o},getWidth:function(t){var e=t.name||" ";return t.width||e.split("").length*r}};function l(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof l)return t;n.data=t;var i=e.getHGap(t),r=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(i,r),n}function c(t,e,n){void 0===e&&(e={}),e=i.assign({},s,e);var r,o=new l(t,e),a=[o];if(!n&&!t.collapsed)while(r=a.pop())if(!r.data.collapsed){var c=e.getChildren(r.data),u=c?c.length:0;if(r.children=new Array(u),c&&u)for(var h=0;h<u;h++){var d=new l(c[h],e);r.children[h]=d,a.push(d),d.parent=r,d.depth=r.depth+1}}return o}i.assign(l.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){var e,n=this,i=[n];while(e=i.pop())t(e),i=i.concat(e.children)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){var e,n=this,i=[n];while(e=i.shift())t(e),i=i.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e}))},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=c},function(t,e,n){var i=n(3);t.exports=function(t,e){for(var n=i(t.data,e,!0),r=i(t.data,e,!0),o=t.children.length,a=Math.round(o/2),s=e.getSide||function(t,e){return e<a?"right":"left"},l=0;l<o;l++){var c=t.children[l],u=s(c,l);"right"===u?r.children.push(c):n.children.push(c)}return n.eachNode((function(t){t.isRoot()||(t.side="left")})),r.eachNode((function(t){t.isRoot()||(t.side="right")})),{left:n,right:r}}},function(t,e,n){var i={compactBox:n(6),dendrogram:n(9),indented:n(11),mindmap:n(13)};t.exports=i},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(1),o=n(8),a=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.execute=function(){var t=this;return a(t.rootNode,t.options,o)},e}(r),c={};function u(t,e){return e=s.assign({},c,e),new l(t,e).execute()}t.exports=u},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}var i=function(t,e,i,r){return e&&n(t,e),i&&n(t,i),r&&n(t,r),t};t.exports=i},function(t,e){function n(t,e,n,i){void 0===i&&(i=[]);var r=this;r.w=t||0,r.h=e||0,r.y=n||0,r.x=0,r.c=i||[],r.cs=i.length,r.prelim=0,r.mod=0,r.shift=0,r.change=0,r.tl=null,r.tr=null,r.el=null,r.er=null,r.msel=0,r.mser=0}function i(t,e,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){i(t,e,n)}))}function r(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(r(t,e),n)})),n}function o(t,e){var n=r(t,e);i(t,-n,e)}function a(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,i){a(t,e.children[i],n)}))}function s(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){s(t,e,n)}))}n.fromNode=function(t,e){if(!t)return null;var i=[];return t.children.forEach((function(t){i.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,i):new n(t.width,t.height,t.y,i)},t.exports=function(t,e){void 0===e&&(e={});var i=e.isHorizontal;function r(t){if(0!==t.cs){r(t.c[0]);for(var e=x(p(t.c[0].el),0,null),n=1;n<t.cs;++n){r(t.c[n]);var i=p(t.c[n].er);c(t,n,e),e=x(i,n,e)}m(t),l(t)}else l(t)}function l(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function c(t,e,n){var i=t.c[e-1],r=i.mod,o=t.c[e],a=o.mod;while(null!==i&&null!==o){p(i)>n.low&&(n=n.nxt);var s=r+i.prelim+i.w-(a+o.prelim);s>0&&(a+=s,u(t,e,n.index,s));var l=p(i),c=p(o);l<=c&&(i=d(i),null!==i&&(r+=i.mod)),l>=c&&(o=h(o),null!==o&&(a+=o.mod))}!i&&o?f(t,e,o,a):i&&!o&&g(t,e,i,r)}function u(t,e,n,i){t.c[e].mod+=i,t.c[e].msel+=i,t.c[e].mser+=i,y(t,e,n,i)}function h(t){return 0===t.cs?t.tl:t.c[0]}function d(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function p(t){return t.y+t.h}function f(t,e,n,i){var r=t.c[0].el;r.tl=n;var o=i-n.mod-t.c[0].msel;r.mod+=o,r.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}function g(t,e,n,i){var r=t.c[e].er;r.tr=n;var o=i-n.mod-t.c[e].mser;r.mod+=o,r.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}function m(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}function v(t,e){e+=t.mod,t.x=t.prelim+e,b(t);for(var n=0;n<t.cs;n++)v(t.c[n],e)}function y(t,e,n,i){if(n!==e-1){var r=e-n;t.c[n+1].shift+=i/r,t.c[e].shift-=i/r,t.c[e].change-=i-i/r}}function b(t){for(var e=0,n=0,i=0;i<t.cs;i++)e+=t.c[i].shift,n+=e+t.c[i].change,t.c[i].mod+=n}function x(t,e,n){while(null!==n&&t>=n.low)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,i);var w=n.fromNode(t,i);return r(w),v(w,0),a(w,t,i),o(t,i),t}},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(1),o=n(10),a=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.execute=function(){var t=this;return t.rootNode.width=0,a(t.rootNode,t.options,o)},e}(r),c={};function u(t,e){return e=s.assign({},c,e),new l(t,e).execute()}t.exports=u},function(t,e,n){var i=n(0);function r(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}var o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function a(t,e,n){n?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach((function(t,i){a(t,e.children[i],n)}))}t.exports=function(t,e){void 0===e&&(e={}),e=i.assign({},o,e);var n,s=0;function l(t){if(!t)return null;t.width=0,t.depth&&t.depth>s&&(s=t.depth);var e=t.children,n=e.length,i=new r(t.height,[]);return e.forEach((function(t,e){var r=l(t);i.children.push(r),0===e&&(i.leftChild=r),e===n-1&&(i.rightChild=r)})),i.originNode=t,i.isLeaf=t.isLeaf(),i}function c(t){if(t.isLeaf||0===t.children.length)t.drawingDepth=s;else{var e=t.children.map((function(t){return c(t)})),n=Math.min.apply(null,e);t.drawingDepth=n-1}return t.drawingDepth}function u(t){t.x=t.drawingDepth*e.rankSep,t.isLeaf?(t.y=0,n&&(t.y=n.y+n.height+e.nodeSep,t.originNode.parent!==n.originNode.parent&&(t.y+=e.subTreeSep)),n=t):(t.children.forEach((function(t){u(t)})),t.y=(t.leftChild.y+t.rightChild.y)/2)}var h=l(t);return c(h),u(h),a(h,t,e.isHorizontal),t}},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(1),o=n(12),a=n(4),s=n(0),l=["LR","RL","H"],c=l[0],u=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.execute=function(){var t=this,e=t.options,n=t.rootNode;e.isHorizontal=!0;var i=e.indent,r=e.direction||c;if(r&&-1===l.indexOf(r))throw new TypeError("Invalid direction: "+r);if(r===l[0])o(n,i);else if(r===l[1])o(n,i),n.right2left();else if(r===l[2]){var s=a(n,e),u=s.left,h=s.right;o(u,i),u.right2left(),o(h,i);var d=u.getBoundingBox();h.translate(d.width,0),n.x=h.x-n.width/2}return n},e}(r),h={};function d(t,e){return e=s.assign({},h,e),new u(t,e).execute()}t.exports=d},function(t,e){var n=20;function i(t,e,n){t.x+=n*t.depth,t.y=e?e.y+e.height:0}t.exports=function(t,e){void 0===e&&(e=n);var r=null;t.eachNode((function(t){i(t,r,e),r=t}))}},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(1),o=n(14),a=n(2),s=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.execute=function(){var t=this;return a(t.rootNode,t.options,o)},e}(r),c={};function u(t,e){return e=s.assign({},c,e),new l(t,e).execute()}t.exports=u},function(t,e,n){var i=n(0);function r(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=r(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function o(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){o(t)}));var i=e[0],r=e[n-1],a=r.y-i.y+r.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),a>t.height)t.y=i.y+a/2-t.height/2;else if(1!==e.length||t.height>s){var l=t.y+(t.height-a)/2-i.y;e.forEach((function(t){t.translate(0,l)}))}else t.y=(i.y+i.height/2+r.y+r.height/2)/2-t.height/2}}var a={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=i.assign({},a,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,r(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var i=e[0];if(i.startY=t.startY+t._subTreeSep,1===n)i.y=t.y+t.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var r=1;r<n;r++){var o=e[r];o.startY=e[r-1].startY+e[r-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2}}}})),o(t)}}])}))},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/augment.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/augment.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./mix */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/mix.js"),r=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];r.default(a)&&(a=a.prototype),i.default(n.prototype,a)}};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/cache.js":
/*!****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/cache.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clamp.js":
/*!****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/clamp.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,n){return t<e?e:t>n?n:t};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clear-animation-frame.js":
/*!********************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/clear-animation-frame.js ***!
  \********************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";function i(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clone.js":
/*!****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/clone.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=function(t){if("object"!==typeof t||null===t)return t;var e;if(i.default(t)){e=[];for(var n=0,o=t.length;n<o;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=r(t[n]):e[n]=t[n]}else for(var a in e={},t)"object"===typeof t[a]&&null!=t[a]?e[a]=r(t[a]):e[a]=t[a];return e};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/contains.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/contains.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),r=function(t,e){return!!i.default(t)&&t.indexOf(e)>-1};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/debounce.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/debounce.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";function i(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/deep-mix.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/deep-mix.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js"),o=5;function a(t,e,n,s){for(var l in n=n||0,s=s||o,e)if(e.hasOwnProperty(l)){var c=e[l];null!==c&&r.default(c)?(r.default(t[l])||(t[l]={}),n<s?a(t[l],c,n+1,s):t[l]=e[l]):i.default(c)?(t[l]=[],t[l]=t[l].concat(c)):void 0!==c&&(t[l]=c)}}var s=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)a(t,e[i]);return t};e.default=s},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/difference.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/difference.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./filter */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/filter.js"),r=n(/*! ./contains */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/contains.js"),o=function(t,e){return void 0===e&&(e=[]),i.default(t,(function(t){return!r.default(e,t)}))};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=n(/*! ./is-object */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js");function o(t,e){var n;if(t)if(i.default(t)){for(var o=0,a=t.length;o<a;o++)if(n=e(t[o],o),!1===n)break}else if(r.default(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/ends-with.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/ends-with.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js");function o(t,e){return!(!i.default(t)&&!r.default(t))&&t[t.length-1]===e}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/every.js":
/*!****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/every.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/extend.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/extend.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./mix */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/mix.js"),r=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),o=function(t,e,n,o){r.default(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var i=new n;return i.constructor=e,i},s=a(e.prototype,t);return t.prototype=i.default(s,t.prototype),t.superclass=a(e.prototype,e),i.default(s,n),i.default(t,o),t};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/filter.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/filter.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),o=function(t,e){if(!r.default(t))return t;var n=[];return i.default(t,(function(t,i){e(t,i)&&n.push(t)})),n};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/find-index.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/find-index.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";function i(t,e,n){void 0===n&&(n=0);for(var i=n;i<t.length;i++)if(e(t[i],i))return i;return-1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/find.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/find.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),r=n(/*! ./is-match */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-match.js"),o=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),a=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js");function s(t,e){if(!o.default(t))return null;var n;if(i.default(e)&&(n=e),a.default(e)&&(n=function(t){return r.default(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}e.default=s},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/first-value.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/first-value.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js"),r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),o=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o],s=a[e];if(!i.default(s)){n=r.default(s)?s[0]:s;break}}return n};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/fixed-base.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/fixed-base.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten-deep.js":
/*!***********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten-deep.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=function(t,e){if(void 0===e&&(e=[]),i.default(t))for(var n=0;n<t.length;n+=1)r(t[n],e);else e.push(t);return e};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=function(t){if(!i.default(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/for-in.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/for-in.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js");e.default=i.default},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-range.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-range.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=n(/*! ./filter */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/filter.js"),o=function(t){if(t=r.default(t,(function(t){return!isNaN(t)})),!t.length)return{min:0,max:0};if(i.default(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var o=Math.max.apply(null,t),a=Math.min.apply(null,t);return{min:a,max:o}};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-type.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-type.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={}.toString,r=function(t){return i.call(t).replace(/^\[object /,"").replace(/]$/,"")};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-wrap-behavior.js":
/*!****************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-wrap-behavior.js ***!
  \****************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";function i(t,e){return t["_wrap_"+e]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get.js":
/*!**************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/get.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js");e.default=function(t,e,n){var r=0,o=i.default(e)?e.split("."):e;while(t&&r<o.length)t=t[o[r++]];return void 0===t||r<o.length?n:t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-by.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-by.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),o=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),a=Object.prototype.hasOwnProperty;function s(t,e){if(!e||!r.default(t))return{};var n,s={},l=o.default(e)?e:function(t){return t[e]};return i.default(t,(function(t){n=l(t),a.call(s,n)?s[n].push(t):s[n]=[t]})),s}e.default=s},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-to-map.js":
/*!***********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-to-map.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),o=n(/*! ./group-by */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-by.js"),a=function(t,e){if(!e)return{0:t};if(!r.default(e)){var n=i.default(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}var a=o.default(t,e);return a};e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group.js":
/*!****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/group.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./group-to-map */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-to-map.js");e.default=function(t,e){if(!e)return[t];var n=i.default(t,e),r=[];for(var o in n)r.push(n[o]);return r}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-key.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-key.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./has */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has.js");e.default=i.default},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-value.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-value.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./contains */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/contains.js"),r=n(/*! ./values */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/values.js");e.default=function(t,e){return i.default(r.default(t),e)}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has.js":
/*!**************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/has.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.hasOwnProperty(e)}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/head.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/head.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");function r(t){if(i.default(t))return t[0]}e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/identity.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/identity.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index-of.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/index-of.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),r=function(t,e){if(!i.default(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,o=0;o<t.length;o++)if(t[o]===e){r=o;break}return r};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js":
/*!****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./contains */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/contains.js");e.contains=i.default,e.includes=i.default;var r=n(/*! ./difference */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/difference.js");e.difference=r.default;var o=n(/*! ./find */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/find.js");e.find=o.default;var a=n(/*! ./find-index */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/find-index.js");e.findIndex=a.default;var s=n(/*! ./first-value */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/first-value.js");e.firstValue=s.default;var l=n(/*! ./flatten */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten.js");e.flatten=l.default;var c=n(/*! ./flatten-deep */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten-deep.js");e.flattenDeep=c.default;var u=n(/*! ./get-range */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-range.js");e.getRange=u.default;var h=n(/*! ./pull */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull.js");e.pull=h.default;var d=n(/*! ./pull-at */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull-at.js");e.pullAt=d.default;var p=n(/*! ./reduce */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/reduce.js");e.reduce=p.default;var f=n(/*! ./remove */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/remove.js");e.remove=f.default;var g=n(/*! ./sort-by */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/sort-by.js");e.sortBy=g.default;var m=n(/*! ./union */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/union.js");e.union=m.default;var v=n(/*! ./uniq */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/uniq.js");e.uniq=v.default;var y=n(/*! ./values-of-key */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/values-of-key.js");e.valuesOfKey=y.default;var b=n(/*! ./head */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/head.js");e.head=b.default;var x=n(/*! ./last */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/last.js");e.last=x.default;var w=n(/*! ./starts-with */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/starts-with.js");e.startsWith=w.default;var _=n(/*! ./ends-with */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/ends-with.js");e.endsWith=_.default;var C=n(/*! ./filter */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/filter.js");e.filter=C.default;var A=n(/*! ./every */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/every.js");e.every=A.default;var I=n(/*! ./some */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/some.js");e.some=I.default;var S=n(/*! ./group */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group.js");e.group=S.default;var M=n(/*! ./group-by */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-by.js");e.groupBy=M.default;var k=n(/*! ./group-to-map */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/group-to-map.js");e.groupToMap=k.default;var E=n(/*! ./get-wrap-behavior */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-wrap-behavior.js");e.getWrapBehavior=E.default;var T=n(/*! ./wrap-behavior */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/wrap-behavior.js");e.wrapBehavior=T.default;var O=n(/*! ./number2color */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/number2color.js");e.number2color=O.default;var P=n(/*! ./parse-radius */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/parse-radius.js");e.parseRadius=P.default;var j=n(/*! ./clamp */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clamp.js");e.clamp=j.default;var L=n(/*! ./fixed-base */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/fixed-base.js");e.fixedBase=L.default;var D=n(/*! ./is-decimal */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-decimal.js");e.isDecimal=D.default;var R=n(/*! ./is-even */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-even.js");e.isEven=R.default;var B=n(/*! ./is-integer */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-integer.js");e.isInteger=B.default;var N=n(/*! ./is-negative */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-negative.js");e.isNegative=N.default;var F=n(/*! ./is-number-equal */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number-equal.js");e.isNumberEqual=F.default;var z=n(/*! ./is-odd */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-odd.js");e.isOdd=z.default;var V=n(/*! ./is-positive */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-positive.js");e.isPositive=V.default;var G=n(/*! ./max-by */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/max-by.js");e.maxBy=G.default;var H=n(/*! ./min-by */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/min-by.js");e.minBy=H.default;var W=n(/*! ./mod */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/mod.js");e.mod=W.default;var U=n(/*! ./to-degree */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-degree.js");e.toDegree=U.default;var Z=n(/*! ./to-integer */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-integer.js");e.toInteger=Z.default;var Y=n(/*! ./to-radian */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-radian.js");e.toRadian=Y.default;var X=n(/*! ./for-in */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/for-in.js");e.forIn=X.default;var q=n(/*! ./has */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has.js");e.has=q.default;var K=n(/*! ./has-key */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-key.js");e.hasKey=K.default;var Q=n(/*! ./has-value */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/has-value.js");e.hasValue=Q.default;var J=n(/*! ./keys */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/keys.js");e.keys=J.default;var $=n(/*! ./is-match */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-match.js");e.isMatch=$.default;var tt=n(/*! ./values */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/values.js");e.values=tt.default;var et=n(/*! ./lower-case */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-case.js");e.lowerCase=et.default;var nt=n(/*! ./lower-first */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-first.js");e.lowerFirst=nt.default;var it=n(/*! ./substitute */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/substitute.js");e.substitute=it.default;var rt=n(/*! ./upper-case */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-case.js");e.upperCase=rt.default;var ot=n(/*! ./upper-first */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-first.js");e.upperFirst=ot.default;var at=n(/*! ./get-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-type.js");e.getType=at.default;var st=n(/*! ./is-arguments */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-arguments.js");e.isArguments=st.default;var lt=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js");e.isArray=lt.default;var ct=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");e.isArrayLike=ct.default;var ut=n(/*! ./is-boolean */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-boolean.js");e.isBoolean=ut.default;var ht=n(/*! ./is-date */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-date.js");e.isDate=ht.default;var dt=n(/*! ./is-error */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-error.js");e.isError=dt.default;var pt=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.isFunction=pt.default;var ft=n(/*! ./is-finite */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-finite.js");e.isFinite=ft.default;var gt=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js");e.isNil=gt.default;var mt=n(/*! ./is-null */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-null.js");e.isNull=mt.default;var vt=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js");e.isNumber=vt.default;var yt=n(/*! ./is-object */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js");e.isObject=yt.default;var bt=n(/*! ./is-object-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object-like.js");e.isObjectLike=bt.default;var xt=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js");e.isPlainObject=xt.default;var wt=n(/*! ./is-prototype */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-prototype.js");e.isPrototype=wt.default;var _t=n(/*! ./is-reg-exp */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-reg-exp.js");e.isRegExp=_t.default;var Ct=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js");e.isString=Ct.default;var At=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js");e.isType=At.default;var It=n(/*! ./is-undefined */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-undefined.js");e.isUndefined=It.default;var St=n(/*! ./is-element */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-element.js");e.isElement=St.default;var Mt=n(/*! ./request-animation-frame */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/request-animation-frame.js");e.requestAnimationFrame=Mt.default;var kt=n(/*! ./clear-animation-frame */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clear-animation-frame.js");e.clearAnimationFrame=kt.default;var Et=n(/*! ./augment */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/augment.js");e.augment=Et.default;var Tt=n(/*! ./clone */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clone.js");e.clone=Tt.default;var Ot=n(/*! ./debounce */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/debounce.js");e.debounce=Ot.default;var Pt=n(/*! ./memoize */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/memoize.js");e.memoize=Pt.default;var jt=n(/*! ./deep-mix */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/deep-mix.js");e.deepMix=jt.default;var Lt=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js");e.each=Lt.default;var Dt=n(/*! ./extend */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/extend.js");e.extend=Dt.default;var Rt=n(/*! ./index-of */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index-of.js");e.indexOf=Rt.default;var Bt=n(/*! ./is-empty */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-empty.js");e.isEmpty=Bt.default;var Nt=n(/*! ./is-equal */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal.js");e.isEqual=Nt.default;var Ft=n(/*! ./is-equal-with */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal-with.js");e.isEqualWith=Ft.default;var zt=n(/*! ./map */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/map.js");e.map=zt.default;var Vt=n(/*! ./map-values */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/map-values.js");e.mapValues=Vt.default;var Gt=n(/*! ./mix */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/mix.js");e.mix=Gt.default,e.assign=Gt.default;var Ht=n(/*! ./get */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get.js");e.get=Ht.default;var Wt=n(/*! ./set */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/set.js");e.set=Wt.default;var Ut=n(/*! ./pick */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pick.js");e.pick=Ut.default;var Zt=n(/*! ./throttle */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/throttle.js");e.throttle=Zt.default;var Yt=n(/*! ./to-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-array.js");e.toArray=Yt.default;var Xt=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js");e.toString=Xt.default;var qt=n(/*! ./unique-id */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/unique-id.js");e.uniqueId=qt.default;var Kt=n(/*! ./noop */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/noop.js");e.noop=Kt.default;var Qt=n(/*! ./identity */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/identity.js");e.identity=Qt.default;var Jt=n(/*! ./size */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/size.js");e.size=Jt.default;var $t=n(/*! ./cache */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/cache.js");e.Cache=$t.default},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-arguments.js":
/*!***********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-arguments.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js"),r=function(t){return i.default(t,"Arguments")};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js":
/*!************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js ***!
  \************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js");e.default=function(t){return Array.isArray?Array.isArray(t):i.default(t,"Array")}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-boolean.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-boolean.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js"),r=function(t){return i.default(t,"Boolean")};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-date.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-date.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js"),r=function(t){return i.default(t,"Date")};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-decimal.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-decimal.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js"),r=function(t){return i.default(t)&&t%1!==0};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-element.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-element.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t instanceof Element||t instanceof HTMLDocument};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-empty.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-empty.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js"),r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),o=n(/*! ./get-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/get-type.js"),a=n(/*! ./is-prototype */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-prototype.js"),s=Object.prototype.hasOwnProperty;function l(t){if(i.default(t))return!0;if(r.default(t))return!t.length;var e=o.default(t);if("Map"===e||"Set"===e)return!t.size;if(a.default(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}e.default=l},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal-with.js":
/*!************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal-with.js ***!
  \************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),r=n(/*! ./is-equal */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal.js");e.default=function(t,e,n){return i.default(n)?!!n(t,e):r.default(t,e)}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-equal.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-object-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object-like.js"),r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),o=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js"),a=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(o.default(t)||o.default(e))return!1;if(r.default(t)||r.default(e)){if(t.length!==e.length)return!1;for(var n=!0,s=0;s<t.length;s++)if(n=a(t[s],e[s]),!n)break;return n}if(i.default(t)||i.default(e)){var l=Object.keys(t),c=Object.keys(e);if(l.length!==c.length)return!1;for(n=!0,s=0;s<l.length;s++)if(n=a(t[l[s]],e[l[s]]),!n)break;return n}return!1};e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-error.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-error.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js"),r=function(t){return i.default(t,"Error")};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-even.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-even.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js"),r=function(t){return i.default(t)&&t%2===0};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-finite.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-finite.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js");function r(t){return i.default(t)&&isFinite(t)}e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js");e.default=function(t){return i.default(t,"Function")}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-integer.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-integer.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js"),r=Number.isInteger?Number.isInteger:function(t){return i.default(t)&&t%1===0};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-match.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-match.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js"),r=n(/*! ./keys */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/keys.js");function o(t,e){var n=r.default(e),o=n.length;if(i.default(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-negative.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-negative.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js"),r=function(t){return i.default(t)&&t<0};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return null===t||void 0===t};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-null.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-null.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return null===t};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number-equal.js":
/*!**************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number-equal.js ***!
  \**************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=1e-5;function r(t,e,n){return void 0===n&&(n=i),Math.abs(t-e)<n}e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js"),r=function(t){return i.default(t,"Number")};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object-like.js":
/*!*************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object-like.js ***!
  \*************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return"object"===typeof t&&null!==t};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-odd.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-odd.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js"),r=function(t){return i.default(t)&&t%2!==0};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js":
/*!**************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js ***!
  \**************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-object-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object-like.js"),r=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js"),o=function(t){if(!i.default(t)||!r.default(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-positive.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-positive.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js"),r=function(t){return i.default(t)&&t>0};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-prototype.js":
/*!***********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-prototype.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Object.prototype,r=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||i;return t===n};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-reg-exp.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-reg-exp.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js"),r=function(t){return i.default(t,"RegExp")};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-type */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js");e.default=function(t){return i.default(t,"String")}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={}.toString,r=function(t,e){return i.call(t)==="[object "+e+"]"};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-undefined.js":
/*!***********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-undefined.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return void 0===t};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/keys.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/keys.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return i.default(t,(function(n,i){r.default(t)&&"prototype"===i||e.push(i)})),e};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/last.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/last.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");function r(t){if(i.default(t)){var e=t;return e[e.length-1]}}e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-case.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-case.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js"),r=function(t){return i.default(t).toLowerCase()};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-first.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-first.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js"),r=function(t){var e=i.default(t);return e.charAt(0).toLowerCase()+e.substring(1)};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/map-values.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/map-values.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js"),r=n(/*! ./is-object */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js"),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return r.default(t)&&!i.default(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/map.js":
/*!**************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/map.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),o=function(t,e){if(!r.default(t))return t;var n=[];return i.default(t,(function(t,i){n.push(e(t,i))})),n};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/max-by.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/max-by.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),o=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.default=function(t,e){if(r.default(t)){var n,a,s=t[0];return n=o.default(e)?e(t[0]):t[0][e],i.default(t,(function(t){a=o.default(e)?e(t):t[e],a>n&&(s=t,n=a)})),s}}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/memoize.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/memoize.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.default=function(t,e){if(!i.default(t))throw new TypeError("Expected a function");var n=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=e?e.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return a.set(o,s),s};return n.cache=new Map,n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/min-by.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/min-by.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),o=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.default=function(t,e){if(r.default(t)){var n,a,s=t[0];return n=o.default(e)?e(t[0]):t[0][e],i.default(t,(function(t){a=o.default(e)?e(t):t[e],a<n&&(s=t,n=a)})),s}}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/mix.js":
/*!**************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/mix.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){"use strict";function i(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function r(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/mod.js":
/*!**************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/mod.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){return(t%e+e)%e};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/noop.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/noop.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/number2color.js":
/*!***********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/number2color.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};function r(t){var e=i[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,i[t]=e}return e}e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/parse-radius.js":
/*!***********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/parse-radius.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js");function r(t){var e=0,n=0,r=0,o=0;return i.default(t)?1===t.length?e=n=r=o=t[0]:2===t.length?(e=r=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],o=t[3]):e=n=r=o=t,{r1:e,r2:n,r3:r,r4:o}}e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pick.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/pick.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js"),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!r.default(t))return{};var n={};return i.default(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull-at.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull-at.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),r=Array.prototype.splice,o=function(t,e){if(!i.default(t))return[];var n=t?e.length:0,o=n-1;while(n--){var a=void 0,s=e[n];n!==o&&s===a||(a=s,r.call(t,s,1))}return t};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Array.prototype,r=i.splice,o=i.indexOf,a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i++){var a=e[i],s=-1;while((s=o.call(t,a))>-1)r.call(t,s,1)}return t};e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/reduce.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/reduce.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),o=n(/*! ./is-plain-object */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js"),a=function(t,e,n){if(!r.default(t)&&!o.default(t))return t;var a=n;return i.default(t,(function(t,n){a=e(a,t,n)})),a};e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/remove.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/remove.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),r=n(/*! ./pull-at */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull-at.js"),o=function(t,e){var n=[];if(!i.default(t))return n;var o=-1,a=[],s=t.length;while(++o<s){var l=t[o];e(l,o,t)&&(n.push(l),a.push(o))}return r.default(t,a),n};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/request-animation-frame.js":
/*!**********************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/request-animation-frame.js ***!
  \**********************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";function i(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/set.js":
/*!**************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/set.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-object */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js"),r=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js"),o=n(/*! ./is-number */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-number.js");e.default=function(t,e,n){var a=t,s=r.default(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(i.default(a[t])||(a[t]=o.default(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/size.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/size.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js"),r=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");function o(t){return i.default(t)?0:r.default(t)?t.length:Object.keys(t).length}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/some.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/some.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/sort-by.js":
/*!******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/sort-by.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js"),o=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");function a(t,e){var n;if(o.default(e))n=function(t,n){return e(t)-e(n)};else{var a=[];r.default(e)?a.push(e):i.default(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var i=a[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}e.default=a},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/starts-with.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/starts-with.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),r=n(/*! ./is-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js");function o(t,e){return!(!i.default(t)&&!r.default(t))&&t[0]===e}e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/substitute.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/substitute.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";function i(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/throttle.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/throttle.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var i,r,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),i=null,a=t.apply(r,o),i||(r=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var u=e-(c-s);return r=this,o=arguments,u<=0||u>e?(i&&(clearTimeout(i),i=null),s=c,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(i),s=0,i=r=o=null},c}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-array.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-array.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-array-like */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");e.default=function(t){return i.default(t)?Array.prototype.slice.call(t):[]}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-degree.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-degree.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=180/Math.PI,r=function(t){return i*t};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-integer.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-integer.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-radian.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-radian.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=Math.PI/180,r=function(t){return i*t};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js");e.default=function(t){return i.default(t)?"":t.toString()}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/union.js":
/*!****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/union.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./uniq */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/uniq.js"),r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.default([].concat.apply([],t))};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/uniq.js":
/*!***************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/uniq.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./contains */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/contains.js"),r=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),o=function(t){var e=[];return r.default(t,(function(t){i.default(e,t)||e.push(t)})),e};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/unique-id.js":
/*!********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/unique-id.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};e.default=function(t){return t=t||"g",i[t]?i[t]+=1:i[t]=1,t+i[t]}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-case.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-case.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js"),r=function(t){return i.default(t).toUpperCase()};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-first.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/upper-first.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./to-string */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js"),r=function(t){var e=i.default(t);return e.charAt(0).toUpperCase()+e.substring(1)};e.default=r},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/values-of-key.js":
/*!************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/values-of-key.js ***!
  \************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-array */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),o=n(/*! ./is-nil */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js");e.default=function(t,e){var n=[],a={};return t.forEach((function(t){var s=t[e];o.default(s)||(r.default(s)||(s=[s]),i.default(s,(function(t){a[t]||(n.push(t),a[t]=!0)})))})),n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/values.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/values.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ./each */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),r=n(/*! ./is-function */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return i.default(t,(function(n,i){r.default(t)&&"prototype"===i||e.push(n)})),e};e.default=o},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/wrap-behavior.js":
/*!************************************************************************!*\
  !*** ./node_modules/_@antv_util@2.0.7@@antv/util/lib/wrap-behavior.js ***!
  \************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";function i(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"./node_modules/_abs-svg-path@0.1.1@abs-svg-path/index.js":
/*!****************************************************************!*\
  !*** ./node_modules/_abs-svg-path@0.1.1@abs-svg-path/index.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e){function n(t){var e=0,n=0,i=0,r=0;return t.map((function(t){t=t.slice();var o=t[0],a=o.toUpperCase();if(o!=a)switch(t[0]=a,o){case"a":t[6]+=i,t[7]+=r;break;case"v":t[1]+=r;break;case"h":t[1]+=i;break;default:for(var s=1;s<t.length;)t[s++]+=i,t[s++]+=r}switch(a){case"Z":i=e,r=n;break;case"H":i=t[1];break;case"V":r=t[1];break;case"M":i=e=t[1],r=n=t[2];break;default:i=t[t.length-2],r=t[t.length-1]}return t}))}t.exports=n},"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js":
/*!****************************************************************!*\
  !*** ./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function n(t){return 1===t.length&&(t=i(t)),{left:function(e,n,i,r){null==i&&(i=0),null==r&&(r=e.length);while(i<r){var o=i+r>>>1;t(e[o],n)<0?i=o+1:r=o}return i},right:function(e,n,i,r){null==i&&(i=0),null==r&&(r=e.length);while(i<r){var o=i+r>>>1;t(e[o],n)>0?r=o:i=o+1}return i}}}function i(t){return function(n,i){return e(t(n),i)}}var r=n(e),o=r.right,a=r.left;function s(t,e){null==e&&(e=l);var n=0,i=t.length-1,r=t[0],o=new Array(i<0?0:i);while(n<i)o[n]=e(r,r=t[++n]);return o}function l(t,e){return[t,e]}function c(t,e,n){var i,r,o,a,s=t.length,c=e.length,u=new Array(s*c);for(null==n&&(n=l),i=o=0;i<s;++i)for(a=t[i],r=0;r<c;++r,++o)u[o]=n(a,e[r]);return u}function u(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function h(t){return null===t?NaN:+t}function d(t,e){var n,i,r=t.length,o=0,a=-1,s=0,l=0;if(null==e)while(++a<r)isNaN(n=h(t[a]))||(i=n-s,s+=i/++o,l+=i*(n-s));else while(++a<r)isNaN(n=h(e(t[a],a,t)))||(i=n-s,s+=i/++o,l+=i*(n-s));if(o>1)return l/(o-1)}function p(t,e){var n=d(t,e);return n?Math.sqrt(n):n}function f(t,e){var n,i,r,o=t.length,a=-1;if(null==e){while(++a<o)if(null!=(n=t[a])&&n>=n){i=r=n;while(++a<o)null!=(n=t[a])&&(i>n&&(i=n),r<n&&(r=n))}}else while(++a<o)if(null!=(n=e(t[a],a,t))&&n>=n){i=r=n;while(++a<o)null!=(n=e(t[a],a,t))&&(i>n&&(i=n),r<n&&(r=n))}return[i,r]}var g=Array.prototype,m=g.slice,v=g.map;function y(t){return function(){return t}}function b(t){return t}function x(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(r);while(++i<r)o[i]=t+i*n;return o}var w=Math.sqrt(50),_=Math.sqrt(10),C=Math.sqrt(2);function A(t,e,n){var i,r,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=I(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(r=Math.ceil(e-t+1));while(++s<r)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(r=Math.ceil(t-e+1));while(++s<r)o[s]=(t-s)/a}return i&&o.reverse(),o}function I(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=w?10:o>=_?5:o>=C?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=w?10:o>=_?5:o>=C?2:1)}function S(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=w?r*=10:o>=_?r*=5:o>=C&&(r*=2),e<t?-r:r}function M(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function k(){var t=b,e=f,n=M;function i(i){var r,a,s=i.length,l=new Array(s);for(r=0;r<s;++r)l[r]=t(i[r],r,i);var c=e(l),u=c[0],h=c[1],d=n(l,u,h);Array.isArray(d)||(d=S(u,h,d),d=x(Math.ceil(u/d)*d,h,d));var p=d.length;while(d[0]<=u)d.shift(),--p;while(d[p-1]>h)d.pop(),--p;var f,g=new Array(p+1);for(r=0;r<=p;++r)f=g[r]=[],f.x0=r>0?d[r-1]:u,f.x1=r<p?d[r]:h;for(r=0;r<s;++r)a=l[r],u<=a&&a<=h&&g[o(d,a,0,p)].push(i[r]);return g}return i.value=function(e){return arguments.length?(t="function"===typeof e?e:y(e),i):t},i.domain=function(t){return arguments.length?(e="function"===typeof t?t:y([t[0],t[1]]),i):e},i.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?y(m.call(t)):y(t),i):n},i}function E(t,e,n){if(null==n&&(n=h),i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,o=Math.floor(r),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(r-o)}}function T(t,n,i){return t=v.call(t,h).sort(e),Math.ceil((i-n)/(2*(E(t,.75)-E(t,.25))*Math.pow(t.length,-1/3)))}function O(t,e,n){return Math.ceil((n-e)/(3.5*p(t)*Math.pow(t.length,-1/3)))}function P(t,e){var n,i,r=t.length,o=-1;if(null==e){while(++o<r)if(null!=(n=t[o])&&n>=n){i=n;while(++o<r)null!=(n=t[o])&&n>i&&(i=n)}}else while(++o<r)if(null!=(n=e(t[o],o,t))&&n>=n){i=n;while(++o<r)null!=(n=e(t[o],o,t))&&n>i&&(i=n)}return i}function j(t,e){var n,i=t.length,r=i,o=-1,a=0;if(null==e)while(++o<i)isNaN(n=h(t[o]))?--r:a+=n;else while(++o<i)isNaN(n=h(e(t[o],o,t)))?--r:a+=n;if(r)return a/r}function L(t,n){var i,r=t.length,o=-1,a=[];if(null==n)while(++o<r)isNaN(i=h(t[o]))||a.push(i);else while(++o<r)isNaN(i=h(n(t[o],o,t)))||a.push(i);return E(a.sort(e),.5)}function D(t){var e,n,i,r=t.length,o=-1,a=0;while(++o<r)a+=t[o].length;n=new Array(a);while(--r>=0){i=t[r],e=i.length;while(--e>=0)n[--a]=i[e]}return n}function R(t,e){var n,i,r=t.length,o=-1;if(null==e){while(++o<r)if(null!=(n=t[o])&&n>=n){i=n;while(++o<r)null!=(n=t[o])&&i>n&&(i=n)}}else while(++o<r)if(null!=(n=e(t[o],o,t))&&n>=n){i=n;while(++o<r)null!=(n=e(t[o],o,t))&&i>n&&(i=n)}return i}function B(t,e){var n=e.length,i=new Array(n);while(n--)i[n]=t[e[n]];return i}function N(t,n){if(i=t.length){var i,r,o=0,a=0,s=t[a];null==n&&(n=e);while(++o<i)(n(r=t[o],s)<0||0!==n(s,s))&&(s=r,a=o);return 0===n(s,s)?a:void 0}}function F(t,e,n){var i,r,o=(null==n?t.length:n)-(e=null==e?0:+e);while(o)r=Math.random()*o--|0,i=t[o+e],t[o+e]=t[r+e],t[r+e]=i;return t}function z(t,e){var n,i=t.length,r=-1,o=0;if(null==e)while(++r<i)(n=+t[r])&&(o+=n);else while(++r<i)(n=+e(t[r],r,t))&&(o+=n);return o}function V(t){if(!(r=t.length))return[];for(var e=-1,n=R(t,G),i=new Array(n);++e<n;)for(var r,o=-1,a=i[e]=new Array(r);++o<r;)a[o]=t[o][e];return i}function G(t){return t.length}function H(){return V(arguments)}t.bisect=o,t.bisectRight=o,t.bisectLeft=a,t.ascending=e,t.bisector=n,t.cross=c,t.descending=u,t.deviation=p,t.extent=f,t.histogram=k,t.thresholdFreedmanDiaconis=T,t.thresholdScott=O,t.thresholdSturges=M,t.max=P,t.mean=j,t.median=L,t.merge=D,t.min=R,t.pairs=s,t.permute=B,t.quantile=E,t.range=x,t.scan=N,t.shuffle=F,t.sum=z,t.ticks=A,t.tickIncrement=I,t.tickStep=S,t.transpose=V,t.variance=d,t.zip=H,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js ***!
  \*******************************************************************************/
/*! no static exports found */function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";var e="$";function n(){}function i(t,e){var i=new n;if(t instanceof n)t.each((function(t,e){i.set(e,t)}));else if(Array.isArray(t)){var r,o=-1,a=t.length;if(null==e)while(++o<a)i.set(o,t[o]);else while(++o<a)i.set(e(r=t[o],o,t),r)}else if(t)for(var s in t)i.set(s,t[s]);return i}function r(){var t,e,n,r=[],c=[];function u(n,o,a,s){if(o>=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;var l,c,h,d=-1,p=n.length,f=r[o++],g=i(),m=a();while(++d<p)(h=g.get(l=f(c=n[d])+""))?h.push(c):g.set(l,[c]);return g.each((function(t,e){s(m,e,u(t,o,a,s))})),m}function h(t,n){if(++n>r.length)return t;var i,o=c[n-1];return null!=e&&n>=r.length?i=t.entries():(i=[],t.each((function(t,e){i.push({key:e,values:h(t,n)})}))),null!=o?i.sort((function(t,e){return o(t.key,e.key)})):i}return n={object:function(t){return u(t,0,o,a)},map:function(t){return u(t,0,s,l)},entries:function(t){return h(u(t,0,s,l),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return c[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function o(){return{}}function a(t,e,n){t[e]=n}function s(){return i()}function l(t,e,n){t.set(e,n)}function c(){}n.prototype=i.prototype={constructor:n,has:function(t){return e+t in this},get:function(t){return this[e+t]},set:function(t,n){return this[e+t]=n,this},remove:function(t){var n=e+t;return n in this&&delete this[n]},clear:function(){for(var t in this)t[0]===e&&delete this[t]},keys:function(){var t=[];for(var n in this)n[0]===e&&t.push(n.slice(1));return t},values:function(){var t=[];for(var n in this)n[0]===e&&t.push(this[n]);return t},entries:function(){var t=[];for(var n in this)n[0]===e&&t.push({key:n.slice(1),value:this[n]});return t},size:function(){var t=0;for(var n in this)n[0]===e&&++t;return t},empty:function(){for(var t in this)if(t[0]===e)return!1;return!0},each:function(t){for(var n in this)n[0]===e&&t(this[n],n.slice(1),this)}};var u=i.prototype;function h(t,e){var n=new c;if(t instanceof c)t.each((function(t){n.add(t)}));else if(t){var i=-1,r=t.length;if(null==e)while(++i<r)n.add(t[i]);else while(++i<r)n.add(e(t[i],i,t))}return n}function d(t){var e=[];for(var n in t)e.push(n);return e}function p(t){var e=[];for(var n in t)e.push(t[n]);return e}function f(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e}c.prototype=h.prototype={constructor:c,has:u.has,add:function(t){return t+="",this[e+t]=t,this},remove:u.remove,clear:u.clear,values:u.keys,size:u.size,empty:u.empty,each:u.each},t.nest=r,t.set=h,t.map=i,t.keys=d,t.values=p,t.entries=f,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-composite-projections@1.3.2@d3-composite-projections/d3-composite-projections.js":
/*!***********************************************************************************************************!*\
  !*** ./node_modules/_d3-composite-projections@1.3.2@d3-composite-projections/d3-composite-projections.js ***!
  \***********************************************************************************************************/
/*! no static exports found */function(t,e,n){(function(t,i){i(e,n(/*! d3-geo */"./node_modules/_d3-geo@1.11.9@d3-geo/dist/d3-geo.js"),n(/*! d3-path */"./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js"))})(0,(function(t,e,n){"use strict";var i=1e-6;function r(){}var o=1/0,a=o,s=-o,l=s,c={point:u,lineStart:r,lineEnd:r,polygonStart:r,polygonEnd:r,result:function(){var t=[[o,a],[s,l]];return s=l=-(a=o=1/0),t}};function u(t,e){t<o&&(o=t),t>s&&(s=t),e<a&&(a=e),e>l&&(l=e)}function h(t,n,i){var r=n[1][0]-n[0][0],o=n[1][1]-n[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),e.geoStream(i,t.stream(c));var s=c.result(),l=Math.min(r/(s[1][0]-s[0][0]),o/(s[1][1]-s[0][1])),u=+n[0][0]+(r-l*(s[1][0]+s[0][0]))/2,h=+n[0][1]+(o-l*(s[1][1]+s[0][1]))/2;return null!=a&&t.clipExtent(a),t.scale(150*l).translate([u,h])}function d(t,e,n){return h(t,[[0,0],e],n)}function p(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function f(){var t,r,o,a,s,l,c=e.geoAlbers(),u=e.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),f=e.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),g={point:function(t,e){l=[t,e]}};function m(t){var e=t[0],n=t[1];return l=null,o.point(e,n),l||(a.point(e,n),l)||(s.point(e,n),l)}function v(){return t=r=null,m}return m.invert=function(t){var e=c.scale(),n=c.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?u:r>=.166&&r<.234&&i>=-.214&&i<-.115?f:c).invert(t)},m.stream=function(e){return t&&r===e?t:t=p([c.stream(r=e),u.stream(e),f.stream(e)])},m.precision=function(t){return arguments.length?(c.precision(t),u.precision(t),f.precision(t),v()):c.precision()},m.scale=function(t){return arguments.length?(c.scale(t),u.scale(.35*t),f.scale(t),m.translate(c.translate())):c.scale()},m.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],r=+t[1];return o=c.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(g),a=u.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+i,r+.12*e+i],[n-.214*e-i,r+.234*e-i]]).stream(g),s=f.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+i,r+.166*e+i],[n-.115*e-i,r+.234*e-i]]).stream(g),v()},m.fitExtent=function(t,e){return h(m,t,e)},m.fitSize=function(t,e){return d(m,t,e)},m.drawCompositionBorders=function(t){var e=c([-102.91,26.3]),n=c([-104,27.5]),i=c([-108,29.1]),r=c([-110,29.1]),o=c([-110,26.7]),a=c([-112.8,27.6]),s=c([-114.3,30.6]),l=c([-119.3,30.1]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1])},m.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},m.scale(1070)}function g(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function m(){var t,r,o,a,s,l,c,u,p,f=e.geoAlbers(),m=e.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),v=e.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),y=e.geoConicEqualArea().rotate([66,0]).center([0,18]).parallels([8,18]),b=e.geoEquirectangular().rotate([173,14]),x=e.geoEquirectangular().rotate([-145,-16.8]),w={point:function(t,e){p=[t,e]}};function _(t){var e=t[0],n=t[1];return p=null,o.point(e,n),p||(a.point(e,n),p)||(s.point(e,n),p)||(l.point(e,n),p)||(c.point(e,n),p)||(u.point(e,n),p)}function C(){return t=r=null,_}return _.invert=function(t){var e=f.scale(),n=f.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?m:r>=.166&&r<.234&&i>=-.214&&i<-.115?v:r>=.2064&&r<.2413&&i>=.312&&i<.385?y:r>=.09&&r<.1197&&i>=-.4243&&i<-.3232?b:r>=-.0518&&r<.0895&&i>=-.4243&&i<-.3824?x:f).invert(t)},_.stream=function(e){return t&&r===e?t:t=g([f.stream(r=e),m.stream(e),v.stream(e),y.stream(e),b.stream(e),x.stream(e)])},_.precision=function(t){return arguments.length?(f.precision(t),m.precision(t),v.precision(t),y.precision(t),b.precision(t),x.precision(t),C()):f.precision()},_.scale=function(t){return arguments.length?(f.scale(t),m.scale(.35*t),v.scale(t),y.scale(t),b.scale(2*t),x.scale(t),_.translate(f.translate())):f.scale()},_.translate=function(t){if(!arguments.length)return f.translate();var e=f.scale(),n=+t[0],r=+t[1];return o=f.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(w),a=m.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+i,r+.12*e+i],[n-.214*e-i,r+.233*e-i]]).stream(w),s=v.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+i,r+.166*e+i],[n-.115*e-i,r+.233*e-i]]).stream(w),l=y.translate([n+.35*e,r+.224*e]).clipExtent([[n+.312*e+i,r+.2064*e+i],[n+.385*e-i,r+.233*e-i]]).stream(w),c=b.translate([n-.492*e,r+.09*e]).clipExtent([[n-.4243*e+i,r+.0903*e+i],[n-.3233*e-i,r+.1197*e-i]]).stream(w),u=x.translate([n-.408*e,r+.018*e]).clipExtent([[n-.4244*e+i,r-.0519*e+i],[n-.3824*e-i,r+.0895*e-i]]).stream(w),C()},_.fitExtent=function(t,e){return h(_,t,e)},_.fitSize=function(t,e){return d(_,t,e)},_.drawCompositionBorders=function(t){var e=f([-110.4641,28.2805]),n=f([-104.0597,28.9528]),i=f([-103.7049,25.1031]),r=f([-109.8337,24.4531]),o=f([-124.4745,28.1407]),a=f([-110.931,30.8844]),s=f([-109.8337,24.4531]),l=f([-122.4628,21.8562]),c=f([-76.8579,25.1544]),u=f([-72.429,24.2097]),h=f([-72.8265,22.7056]),d=f([-77.1852,23.6392]),p=f([-125.0093,29.7791]),g=f([-118.5193,31.3262]),m=f([-118.064,29.6912]),v=f([-124.4369,28.169]),y=f([-128.1314,37.4582]),b=f([-125.2132,38.214]),x=f([-122.3616,30.5115]),w=f([-125.0315,29.8211]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1]),t.closePath(),t.moveTo(c[0],c[1]),t.lineTo(u[0],u[1]),t.lineTo(h[0],h[1]),t.lineTo(h[0],h[1]),t.lineTo(d[0],d[1]),t.closePath(),t.moveTo(p[0],p[1]),t.lineTo(g[0],g[1]),t.lineTo(m[0],m[1]),t.lineTo(m[0],m[1]),t.lineTo(v[0],v[1]),t.closePath(),t.moveTo(y[0],y[1]),t.lineTo(b[0],b[1]),t.lineTo(x[0],x[1]),t.lineTo(x[0],x[1]),t.lineTo(w[0],w[1]),t.closePath()},_.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},_.scale(1070)}function v(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function y(){var t,r,o,a,s,l=e.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),c=e.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),u={point:function(t,e){s=[t,e]}};function p(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function f(){return t=r=null,p}return p.invert=function(t){var e=l.scale(),n=l.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.05346&&r<.0897&&i>=-.13388&&i<-.0322?c:l).invert(t)},p.stream=function(e){return t&&r===e?t:t=v([l.stream(r=e),c.stream(e)])},p.precision=function(t){return arguments.length?(l.precision(t),c.precision(t),f()):l.precision()},p.scale=function(t){return arguments.length?(l.scale(t),c.scale(t),p.translate(l.translate())):l.scale()},p.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];return o=l.translate(t).clipExtent([[n-.06857*e,r-.1288*e],[n+.13249*e,r+.06*e]]).stream(u),a=c.translate([n+.1*e,r-.094*e]).clipExtent([[n-.1331*e+i,r+.053457*e+i],[n-.0354*e-i,r+.08969*e-i]]).stream(u),f()},p.fitExtent=function(t,e){return h(p,t,e)},p.fitSize=function(t,e){return d(p,t,e)},p.drawCompositionBorders=function(t){var e=l([-14.034675,34.965007]),n=l([-7.4208899,35.536988]),i=l([-7.3148275,33.54359]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1])},p.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},p.scale(2700)}function b(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function x(){var t,r,o,a,s,l,c=e.geoConicConformal().rotate([10,-39.3]).parallels([0,60]),u=e.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),p=e.geoConicConformal().rotate([27.8,-38.6]).parallels([0,60]),f={point:function(t,e){l=[t,e]}};function g(t){var e=t[0],n=t[1];return l=null,o.point(e,n),l||(a.point(e,n),l)||(s.point(e,n),l)}function m(){return t=r=null,g}return g.invert=function(t){var e=c.scale(),n=c.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.0093&&r<.03678&&i>=-.03875&&i<-.0116?u:r>=-.0412&&r<.0091&&i>=-.07782&&i<-.01166?p:c).invert(t)},g.stream=function(e){return t&&r===e?t:t=b([c.stream(r=e),u.stream(e),p.stream(e)])},g.precision=function(t){return arguments.length?(c.precision(t),u.precision(t),p.precision(t),m()):c.precision()},g.scale=function(t){return arguments.length?(c.scale(t),u.scale(t),p.scale(.6*t),g.translate(c.translate())):c.scale()},g.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],r=+t[1];return o=c.translate(t).clipExtent([[n-.0115*e,r-.1138*e],[n+.2105*e,r+.0673*e]]).stream(f),a=u.translate([n-.0265*e,r+.025*e]).clipExtent([[n-.0388*e+i,r+.0093*e+i],[n-.0116*e-i,r+.0368*e-i]]).stream(f),s=p.translate([n-.045*e,r+-.02*e]).clipExtent([[n-.0778*e+i,r-.0413*e+i],[n-.0117*e-i,r+.0091*e-i]]).stream(f),m()},g.fitExtent=function(t,e){return h(g,t,e)},g.fitSize=function(t,e){return d(g,t,e)},g.drawCompositionBorders=function(t){var e=c([-12.8351,38.7113]),n=c([-10.8482,38.7633]),i=c([-10.8181,37.2072]),r=c([-12.7345,37.1573]),o=c([-16.0753,41.4436]),a=c([-10.9168,41.6861]),s=c([-10.8557,38.7747]),l=c([-15.6728,38.5505]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1]),t.closePath()},g.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},g.scale(4200)}function w(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function _(){var t,r,o,a,s,l=e.geoMercator().rotate([80,1.5]),c=e.geoMercator().rotate([90.73,1]),u={point:function(t,e){s=[t,e]}};function p(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function f(){return t=r=null,p}return p.invert=function(t){var e=l.scale(),n=l.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.0676&&r<-.026&&i>=-.0857&&i<-.0263?c:l).invert(t)},p.stream=function(e){return t&&r===e?t:t=w([l.stream(r=e),c.stream(e)])},p.precision=function(t){return arguments.length?(l.precision(t),c.precision(t),f()):l.precision()},p.scale=function(t){return arguments.length?(l.scale(t),c.scale(t),p.translate(l.translate())):l.scale()},p.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];return o=l.translate(t).clipExtent([[n-.0262*e,r-.0734*e],[n+.1741*e,r+.079*e]]).stream(u),a=c.translate([n-.06*e,r-.04*e]).clipExtent([[n-.0857*e+i,r-.0676*e+i],[n-.0263*e-i,r-.026*e-i]]).stream(u),f()},p.fitExtent=function(t,e){return h(p,t,e)},p.fitSize=function(t,e){return d(p,t,e)},p.drawCompositionBorders=function(t){var e=l([-84.9032,2.3757]),n=l([-81.5047,2.3708]),i=l([-81.5063,-.01]),r=l([-84.9086,-.005]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath()},p.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},p.scale(3500)}function C(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function A(){var t,r,o,a,s,l,c,u=e.geoTransverseMercator().rotate([72,37]),p=e.geoStereographic().rotate([72,0]),f=e.geoMercator().rotate([80,33.5]),g=e.geoMercator().rotate([110,25]),m={point:function(t,e){c=[t,e]}};function v(t){var e=t[0],n=t[1];return c=null,o.point(e,n),c||(a.point(e,n),c)||(s.point(e,n),c)||(l.point(e,n),c)}function y(){return t=r=null,v}return v.invert=function(t){var e=u.scale(),n=u.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.2582&&r<.32&&i>=-.1036&&i<-.087?p:r>=-.01298&&r<.0133&&i>=-.11396&&i<-.05944?f:r>=.01539&&r<.03911&&i>=-.089&&i<-.0588?g:u).invert(t)},v.stream=function(e){return t&&r===e?t:t=C([u.stream(r=e),p.stream(e),f.stream(e),g.stream(e)])},v.precision=function(t){return arguments.length?(u.precision(t),p.precision(t),f.precision(t),g.precision(t),y()):u.precision()},v.scale=function(t){return arguments.length?(u.scale(t),p.scale(.15*t),f.scale(1.5*t),g.scale(1.5*t),v.translate(u.translate())):u.scale()},v.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],r=+t[1];return o=u.translate(t).clipExtent([[n-.059*e,r-.3835*e],[n+.4498*e,r+.3375*e]]).stream(m),a=p.translate([n-.087*e,r+.17*e]).clipExtent([[n-.1166*e+i,r+.2582*e+i],[n-.06*e-i,r+.32*e-i]]).stream(m),s=f.translate([n-.092*e,r-0*e]).clipExtent([[n-.114*e+i,r-.013*e+i],[n-.0594*e-i,r+.0133*e-i]]).stream(m),l=g.translate([n-.089*e,r-.0265*e]).clipExtent([[n-.089*e+i,r+.0154*e+i],[n-.0588*e-i,r+.0391*e-i]]).stream(m),y()},v.fitExtent=function(t,e){return h(v,t,e)},v.fitSize=function(t,e){return d(v,t,e)},v.drawCompositionBorders=function(t){var e=u([-82.6999,-51.3043]),n=u([-77.5442,-51.6631]),i=u([-78.0254,-55.186]),r=u([-83.6106,-54.7785]),o=u([-80.0638,-35.984]),a=u([-76.2153,-36.1811]),s=u([-76.2994,-37.6839]),l=u([-80.2231,-37.4757]),c=u([-78.442,-37.706]),h=u([-76.263,-37.8054]),d=u([-76.344,-39.1595]),p=u([-78.5638,-39.0559]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1]),t.closePath(),t.moveTo(c[0],c[1]),t.lineTo(h[0],h[1]),t.lineTo(d[0],d[1]),t.lineTo(d[0],d[1]),t.lineTo(p[0],p[1]),t.closePath()},v.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},v.scale(700)}function I(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function S(){var t,r,o,a,s,l,c=e.geoConicEquidistant().rotate([-136,-22]).parallels([40,34]),u=e.geoConicEquidistant().rotate([-146,-26]).parallels([40,34]),p=e.geoConicEquidistant().rotate([-126,-19]).parallels([40,34]),f={point:function(t,e){l=[t,e]}};function g(t){var e=t[0],n=t[1];return l=null,o.point(e,n),l||(a.point(e,n),l)||(s.point(e,n),l)}function m(){return t=r=null,g}return g.invert=function(t){var e=c.scale(),n=c.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.10925&&r<-.02701&&i>=-.135&&i<-.0397?u:r>=.04713&&r<.11138&&i>=-.03986&&i<.051?p:c).invert(t)},g.stream=function(e){return t&&r===e?t:t=I([c.stream(r=e),u.stream(e),p.stream(e)])},g.precision=function(t){return arguments.length?(c.precision(t),u.precision(t),p.precision(t),m()):c.precision()},g.scale=function(t){return arguments.length?(c.scale(t),u.scale(t),p.scale(.7*t),g.translate(c.translate())):c.scale()},g.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],r=+t[1];return o=c.translate(t).clipExtent([[n-.1352*e,r-.1091*e],[n+.117*e,r+.098*e]]).stream(f),a=u.translate([n-.0425*e,r-.005*e]).clipExtent([[n-.135*e+i,r-.1093*e+i],[n-.0397*e-i,r-.027*e-i]]).stream(f),s=p.translate(t).clipExtent([[n-.0399*e+i,r+.0471*e+i],[n+.051*e-i,r+.1114*e-i]]).stream(f),m()},g.fitExtent=function(t,e){return h(g,t,e)},g.fitSize=function(t,e){return d(g,t,e)},g.drawCompositionBorders=function(t){var e=c([126.01320483689143,41.621090310215585]),n=c([133.04304387025903,42.15087523707186]),i=c([133.3021766080688,37.43975444725098]),r=c([126.87889168628224,36.95488945159779]),o=c([132.9,29.8]),a=c([134,33]),s=c([139.3,33.2]),l=c([139.16,30.5]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(l[0],l[1])},g.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},g.scale(2200)}function M(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function k(){var t,r,o,a,s,l,c,u,p,f,g,m,v,y,b,x=e.geoConicConformal().rotate([-3,-46.2]).parallels([0,60]),w=e.geoMercator().center([-53.2,3.9]),_=e.geoMercator().center([-61.03,14.67]),C=e.geoMercator().center([-61.46,16.14]),A=e.geoMercator().center([-62.85,17.92]),I=e.geoMercator().center([-56.23,46.93]),S=e.geoMercator().center([45.16,-12.8]),k=e.geoMercator().center([55.52,-21.13]),E=e.geoMercator().center([165.8,-21.07]),T=e.geoMercator().center([-178.1,-14.3]),O=e.geoMercator().center([-150.55,-17.11]),P=e.geoMercator().center([-150.55,-17.11]),j={point:function(t,e){b=[t,e]}};function L(t){var e=t[0],n=t[1];return b=null,o.point(e,n),b||(a.point(e,n),b)||(s.point(e,n),b)||(l.point(e,n),b)||(c.point(e,n),b)||(u.point(e,n),b)||(p.point(e,n),b)||(f.point(e,n),b)||(g.point(e,n),b)||(m.point(e,n),b)||(v.point(e,n),b)||(y.point(e,n),b)}function D(){return t=r=null,L}return L.invert=function(t){var e=x.scale(),n=x.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.029&&r<.0864&&i>=-.14&&i<-.0996?w:r>=0&&r<.029&&i>=-.14&&i<-.0996?_:r>=-.032&&r<0&&i>=-.14&&i<-.0996?C:r>=-.052&&r<-.032&&i>=-.14&&i<-.0996?A:r>=-.076&&r<.052&&i>=-.14&&i<-.0996?I:r>=-.076&&r<-.052&&i>=.0967&&i<.1371?S:r>=-.052&&r<-.02&&i>=.0967&&i<.1371?k:r>=-.02&&r<.012&&i>=.0967&&i<.1371?E:r>=.012&&r<.033&&i>=.0967&&i<.1371?T:r>=.033&&r<.0864&&i>=.0967&&i<.1371?O:x).invert(t)},L.stream=function(e){return t&&r===e?t:t=M([x.stream(r=e),w.stream(e),_.stream(e),C.stream(e),A.stream(e),I.stream(e),S.stream(e),k.stream(e),E.stream(e),T.stream(e),O.stream(e),P.stream(e)])},L.precision=function(t){return arguments.length?(x.precision(t),w.precision(t),_.precision(t),C.precision(t),A.precision(t),I.precision(t),S.precision(t),k.precision(t),E.precision(t),T.precision(t),O.precision(t),P.precision(t),D()):x.precision()},L.scale=function(t){return arguments.length?(x.scale(t),w.scale(.6*t),_.scale(1.6*t),C.scale(1.4*t),A.scale(5*t),I.scale(1.3*t),S.scale(1.6*t),k.scale(1.2*t),E.scale(.3*t),T.scale(2.7*t),O.scale(.5*t),P.scale(.06*t),L.translate(x.translate())):x.scale()},L.translate=function(t){if(!arguments.length)return x.translate();var e=x.scale(),n=+t[0],r=+t[1];return o=x.translate(t).clipExtent([[n-.0996*e,r-.0908*e],[n+.0967*e,r+.0864*e]]).stream(j),a=w.translate([n-.12*e,r+.0575*e]).clipExtent([[n-.14*e+i,r+.029*e+i],[n-.0996*e-i,r+.0864*e-i]]).stream(j),s=_.translate([n-.12*e,r+.013*e]).clipExtent([[n-.14*e+i,r+0*e+i],[n-.0996*e-i,r+.029*e-i]]).stream(j),l=C.translate([n-.12*e,r-.014*e]).clipExtent([[n-.14*e+i,r-.032*e+i],[n-.0996*e-i,r+0*e-i]]).stream(j),c=A.translate([n-.12*e,r-.044*e]).clipExtent([[n-.14*e+i,r-.052*e+i],[n-.0996*e-i,r-.032*e-i]]).stream(j),u=I.translate([n-.12*e,r-.065*e]).clipExtent([[n-.14*e+i,r-.076*e+i],[n-.0996*e-i,r-.052*e-i]]).stream(j),p=S.translate([n+.117*e,r-.064*e]).clipExtent([[n+.0967*e+i,r-.076*e+i],[n+.1371*e-i,r-.052*e-i]]).stream(j),f=k.translate([n+.116*e,r-.0355*e]).clipExtent([[n+.0967*e+i,r-.052*e+i],[n+.1371*e-i,r-.02*e-i]]).stream(j),g=E.translate([n+.116*e,r-.0048*e]).clipExtent([[n+.0967*e+i,r-.02*e+i],[n+.1371*e-i,r+.012*e-i]]).stream(j),m=T.translate([n+.116*e,r+.022*e]).clipExtent([[n+.0967*e+i,r+.012*e+i],[n+.1371*e-i,r+.033*e-i]]).stream(j),y=P.translate([n+.11*e,r+.045*e]).clipExtent([[n+.0967*e+i,r+.033*e+i],[n+.1371*e-i,r+.06*e-i]]).stream(j),v=O.translate([n+.115*e,r+.075*e]).clipExtent([[n+.0967*e+i,r+.06*e+i],[n+.1371*e-i,r+.0864*e-i]]).stream(j),D()},L.fitExtent=function(t,e){return h(L,t,e)},L.fitSize=function(t,e){return d(L,t,e)},L.drawCompositionBorders=function(t){var e,n,i,r;e=x([-7.938886725111036,43.7219460918835]),n=x([-4.832080896458295,44.12930268549372]),i=x([-4.205299743793263,40.98096346967365]),r=x([-7.071796453126152,40.610037319181444]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([-8.42751373617692,45.32889452553031]),n=x([-5.18599305777107,45.7566442062976]),i=x([-4.832080905154431,44.129302726751426]),r=x([-7.938886737126192,43.72194613263854]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([-9.012656899657046,47.127733821030176]),n=x([-5.6105244772793155,47.579777861410626]),i=x([-5.185993067168585,45.756644248170346]),r=x([-8.427513749141811,45.32889456686326]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([-9.405747558985553,48.26506375557457]),n=x([-5.896175018439575,48.733352850851624]),i=x([-5.610524487556043,47.57977790393761]),r=x([-9.012656913808351,47.127733862971255]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([-9.908436061346974,49.642448789505856]),n=x([-6.262026716233124,50.131426841787174]),i=x([-5.896175029331232,48.73335289377258]),r=x([-9.40574757396393,48.26506379787767]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([11.996907706504462,50.16039028163579]),n=x([15.649907879773343,49.68279246765253]),i=x([15.156712840526632,48.30371557625831]),r=x([11.64122661754411,48.761078240546816]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([11.641226606955788,48.7610781975889]),n=x([15.156712825832164,48.30371553390465]),i=x([14.549932166241172,46.4866532486199]),r=x([11.204443787952183,46.91899233914248]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([11.204443778297161,46.918992296823646]),n=x([14.549932152815039,46.486653206856396]),i=x([13.994409796764009,44.695833444323256]),r=x([10.805306599253848,45.105133870684924]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([10.805306590412085,45.10513382903308]),n=x([13.99440978444733,44.695833403183606]),i=x([13.654633799024392,43.53552468558152]),r=x([10.561516803980956,43.930671459798624]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([10.561516795617383,43.93067141859757]),n=x([13.654633787361952,43.5355246448671]),i=x([12.867691604239901,40.640701985019405]),r=x([9.997809515987688,41.00288343254471]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([10.8,42.4]),n=x([12.8,42.13]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1])},L.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},L.scale(2700)}function E(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function T(){var t,r,o,a,s,l,c,u,p,f,g,m,v,y,b,x=e.geoConicConformal().rotate([-10,-53]).parallels([0,60]),w=e.geoMercator().center([-61.46,16.14]),_=e.geoMercator().center([-53.2,3.9]),C=e.geoConicConformal().rotate([27.8,-38.9]).parallels([0,60]),A=e.geoConicConformal().rotate([25.43,-37.398]).parallels([0,60]),I=e.geoConicConformal().rotate([31.17,-39.539]).parallels([0,60]),S=e.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),M=e.geoConicConformal().rotate([16,-28.5]).parallels([0,60]),k=e.geoMercator().center([-61.03,14.67]),T=e.geoMercator().center([45.16,-12.8]),O=e.geoMercator().center([55.52,-21.13]),P=e.geoConicConformal().rotate([-14.4,-35.95]).parallels([0,60]),j={point:function(t,e){b=[t,e]}};function L(t){var e=t[0],n=t[1];return b=null,o.point(e,n),b||(s.point(e,n),b)||(g.point(e,n),b)||(a.point(e,n),b)||(f.point(e,n),b)||(p.point(e,n),b)||(m.point(e,n),b)||(v.point(e,n),b)||(y.point(e,n),b)||(l.point(e,n),b)||(c.point(e,n),b)||(u.point(e,n),b)}function D(){return t=r=null,L}return L.invert=function(t){var e=x.scale(),n=x.translate(),i=(t[0]-(n[0]+.08*e))/e,r=(t[1]-n[1])/e;return(r>=-.31&&r<-.24&&i>=.14&&i<.24?w:r>=-.24&&r<-.17&&i>=.14&&i<.24?_:r>=-.17&&r<-.12&&i>=.21&&i<.24?A:r>=-.17&&r<-.14&&i>=.14&&i<.165?I:r>=-.17&&r<-.1&&i>=.14&&i<.24?C:r>=-.1&&r<-.03&&i>=.14&&i<.24?S:r>=-.03&&r<.04&&i>=.14&&i<.24?M:r>=-.31&&r<-.24&&i>=.24&&i<.34?k:r>=-.24&&r<-.17&&i>=.24&&i<.34?T:r>=-.17&&r<-.1&&i>=.24&&i<.34?O:r>=-.1&&r<-.03&&i>=.24&&i<.34?P:x).invert(t)},L.stream=function(e){return t&&r===e?t:t=E([x.stream(r=e),_.stream(e),k.stream(e),w.stream(e),M.stream(e),S.stream(e),T.stream(e),O.stream(e),P.stream(e),C.stream(e),A.stream(e),I.stream(e)])},L.precision=function(t){return arguments.length?(x.precision(t),_.precision(t),k.precision(t),w.precision(t),M.precision(t),S.precision(t),T.precision(t),O.precision(t),P.precision(t),C.precision(t),A.precision(t),I.precision(t),D()):x.precision()},L.scale=function(t){return arguments.length?(x.scale(t),w.scale(3*t),_.scale(.8*t),k.scale(3.5*t),O.scale(2.7*t),C.scale(2*t),A.scale(2*t),I.scale(2*t),S.scale(3*t),M.scale(t),T.scale(5.5*t),P.scale(6*t),L.translate(x.translate())):x.scale()},L.translate=function(t){if(!arguments.length)return x.translate();var e=x.scale(),n=+t[0],r=+t[1];return o=x.translate([n-.08*e,r]).clipExtent([[n-.51*e,r-.33*e],[n+.5*e,r+.33*e]]).stream(j),a=w.translate([n+.19*e,r-.275*e]).clipExtent([[n+.14*e+i,r-.31*e+i],[n+.24*e-i,r-.24*e-i]]).stream(j),s=_.translate([n+.19*e,r-.205*e]).clipExtent([[n+.14*e+i,r-.24*e+i],[n+.24*e-i,r-.17*e-i]]).stream(j),l=C.translate([n+.19*e,r-.135*e]).clipExtent([[n+.14*e+i,r-.17*e+i],[n+.24*e-i,r-.1*e-i]]).stream(j),c=A.translate([n+.225*e,r-.147*e]).clipExtent([[n+.21*e+i,r-.17*e+i],[n+.24*e-i,r-.12*e-i]]).stream(j),u=I.translate([n+.153*e,r-.15*e]).clipExtent([[n+.14*e+i,r-.17*e+i],[n+.165*e-i,r-.14*e-i]]).stream(j),p=S.translate([n+.19*e,r-.065*e]).clipExtent([[n+.14*e+i,r-.1*e+i],[n+.24*e-i,r-.03*e-i]]).stream(j),f=M.translate([n+.19*e,r+.005*e]).clipExtent([[n+.14*e+i,r-.03*e+i],[n+.24*e-i,r+.04*e-i]]).stream(j),g=k.translate([n+.29*e,r-.275*e]).clipExtent([[n+.24*e+i,r-.31*e+i],[n+.34*e-i,r-.24*e-i]]).stream(j),m=T.translate([n+.29*e,r-.205*e]).clipExtent([[n+.24*e+i,r-.24*e+i],[n+.34*e-i,r-.17*e-i]]).stream(j),v=O.translate([n+.29*e,r-.135*e]).clipExtent([[n+.24*e+i,r-.17*e+i],[n+.34*e-i,r-.1*e-i]]).stream(j),y=P.translate([n+.29*e,r-.065*e]).clipExtent([[n+.24*e+i,r-.1*e+i],[n+.34*e-i,r-.03*e-i]]).stream(j),D()},L.fitExtent=function(t,e){return h(L,t,e)},L.fitSize=function(t,e){return d(L,t,e)},L.drawCompositionBorders=function(t){var e,n,i,r;e=x([42.45755610828648,63.343658547914934]),n=x([52.65837266667029,59.35045080290929]),i=x([47.19754502247785,56.12653496548117]),r=x([37.673034273363044,59.61638268506111]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([59.41110754003403,62.35069727399336]),n=x([66.75050228640794,57.11797303636038]),i=x([60.236065725110436,54.63331433818992]),r=x([52.65837313153311,59.350450804599355]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([48.81091130080243,66.93353402634641]),n=x([59.41110730654679,62.35069740653086]),i=x([52.6583728974441,59.3504509222445]),r=x([42.45755631675751,63.34365868805821]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([31.054198418446475,52.1080673766184]),n=x([39.09869284884117,49.400700047190554]),i=x([36.0580811499175,46.02944174908498]),r=x([28.690508588835726,48.433126979386415]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([33.977877745912025,55.849945501331]),n=x([42.75328432167726,52.78455122462353]),i=x([39.09869297540224,49.400700176148625]),r=x([31.05419851807008,52.10806751810923]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([52.658372900759296,59.35045068526415]),n=x([60.23606549583304,54.63331423800264]),i=x([54.6756370953122,51.892298789399455]),r=x([47.19754524788189,56.126534861222794]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([47.19754506082455,56.126534735591456]),n=x([54.675636900123514,51.892298681337095]),i=x([49.94448648951486,48.98775484983285]),r=x([42.75328468716108,52.78455126060818]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([42.75328453416769,52.78455113209101]),n=x([49.94448632339758,48.98775473706457]),i=x([45.912339990394315,45.99361784987003]),r=x([39.09869317356607,49.40070009378711]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([37.673034114296634,59.61638254183119]),n=x([47.197544835420544,56.126534839849846]),i=x([42.75328447467064,52.78455135314068]),r=x([33.977877870363905,55.849945644671145]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([44.56748486446032,57.26489367845818]),i=x([43.9335791193588,53.746540942601726]),r=x([43,56]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=x([37.673034114296634,59.61638254183119]),n=x([40.25902691953466,58.83002044222639]),i=x([38.458270492742024,57.26232178028002]),r=x([35.97754948030156,58.00266637992386]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath()},L.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},L.scale(750)}function O(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function P(){var t,r,o,a,s,l=e.geoMercator().center([105.25,4]),c=e.geoMercator().center([118.65,2.86]),u={point:function(t,e){s=[t,e]}};function p(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function f(){return t=r=null,p}return p.invert=function(t){var e=l.scale(),n=l.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.0521&&r<.0229&&i>=-.0111&&i<.1?c:l).invert(t)},p.stream=function(e){return t&&r===e?t:t=O([l.stream(r=e),c.stream(e)])},p.precision=function(t){return arguments.length?(l.precision(t),c.precision(t),f()):l.precision()},p.scale=function(t){return arguments.length?(l.scale(t),c.scale(.615*t),p.translate(l.translate())):l.scale()},p.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];return o=l.translate(t).clipExtent([[n-.11*e,r-.0521*e],[n-.0111*e,r+.0521*e]]).stream(u),a=c.translate([n+.09*e,r-0*e]).clipExtent([[n-.0111*e+i,r-.0521*e+i],[n+.1*e-i,r+.024*e-i]]).stream(u),f()},p.fitExtent=function(t,e){return h(p,t,e)},p.fitSize=function(t,e){return d(p,t,e)},p.drawCompositionBorders=function(t){var e=l([106.3214,2.0228]),n=l([105.1843,2.3761]),i=l([104.2151,3.3618]),r=l([104.215,4.5651]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1])},p.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},p.scale(4800)}function j(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function L(){var t,r,o,a,s,l,c=e.geoMercator().rotate([-9.5,-1.5]),u=e.geoMercator().rotate([-8.6,-3.5]),p=e.geoMercator().rotate([-5.6,1.45]),f={point:function(t,e){l=[t,e]}};function g(t){var e=t[0],n=t[1];return l=null,o.point(e,n),l||(a.point(e,n),l)||(s.point(e,n),l)}function m(){return t=r=null,g}return g.invert=function(t){var e=c.scale(),n=c.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.02&&r<0&&i>=-.038&&i<-.005?u:r>=0&&r<.02&&i>=-.038&&i<-.005?p:c).invert(t)},g.stream=function(e){return t&&r===e?t:t=j([c.stream(r=e),u.stream(e),p.stream(e)])},g.precision=function(t){return arguments.length?(c.precision(t),u.precision(t),p.precision(t),m()):c.precision()},g.scale=function(t){return arguments.length?(c.scale(t),u.scale(1.5*t),p.scale(4*t),g.translate(c.translate())):c.scale()},g.translate=function(t){if(!arguments.length)return c.translate();var e=c.scale(),n=+t[0],r=+t[1];return o=c.translate(t).clipExtent([[n-.005*e,r-.02*e],[n+.038*e,r+.02*e]]).stream(f),a=u.translate([n-.025*e,r-.01*e]).clipExtent([[n-.038*e+i,r-.02*e+i],[n-.005*e-i,r+0*e-i]]).stream(f),s=p.translate([n-.025*e,r+.01*e]).clipExtent([[n-.038*e+i,r-0*e+i],[n-.005*e-i,r+.02*e-i]]).stream(f),m()},g.fitExtent=function(t,e){return h(g,t,e)},g.fitSize=function(t,e){return d(g,t,e)},g.drawCompositionBorders=function(t){var e,n,i,r;e=c([9.21327272751682,2.645820439454123]),n=c([11.679126293239872,2.644755519268689]),i=c([11.676845389029227,.35307824637606433]),r=c([9.213572917774014,.35414205204417754]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=c([7.320873711543669,2.64475551449975]),n=c([9.213272722738658,2.645820434679803]),i=c([9.213422896480349,1.4999812505283054]),r=c([7.322014760520787,1.4989168878985566]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=c([7.3220147605302905,1.4989168783492766]),n=c([9.213422896481598,1.499981240979021]),i=c([9.213572912999604,.354142056817247]),r=c([7.323154615739809,.353078251154504]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath()},g.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},g.scale(12e3)}function D(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function R(){var t,r,o,a,s,l=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),c=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),u={point:function(t,e){s=[t,e]}};function p(t){var e=t[0],n=t[1];return s=null,o.point(e,n),s||(a.point(e,n),s)}function f(){return t=r=null,p}return p.invert=function(t){var e=l.scale(),n=l.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.089&&r<.06&&i>=.029&&i<.046?c:l).invert(t)},p.stream=function(e){return t&&r===e?t:t=D([l.stream(r=e),c.stream(e)])},p.precision=function(t){return arguments.length?(l.precision(t),c.precision(t),f()):l.precision()},p.scale=function(t){return arguments.length?(l.scale(t),c.scale(t),p.translate(l.translate())):l.scale()},p.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];return o=l.translate(t).clipExtent([[n-.065*e,r-.089*e],[n+.075*e,r+.089*e]]).stream(u),a=c.translate([n+.01*e,r+.025*e]).clipExtent([[n+.029*e+i,r-.089*e+i],[n+.046*e-i,r-.06*e-i]]).stream(u),f()},p.fitExtent=function(t,e){return h(p,t,e)},p.fitSize=function(t,e){return d(p,t,e)},p.drawCompositionBorders=function(t){var e,n,i,r;e=l([-1.113205870242365,59.64920050773357]),n=l([.807899092399606,59.59085836472269]),i=l([.5778611961420386,57.93467822832577]),r=l([-1.25867782078448,57.99029450085142]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath()},p.getCompositionBorders=function(){var t=n.path();return this.drawCompositionBorders(t),t.toString()},p.scale(2800)}t.geoAlbersUk=R,t.geoAlbersUsa=f,t.geoAlbersUsaTerritories=m,t.geoConicConformalEurope=T,t.geoConicConformalFrance=k,t.geoConicConformalPortugal=x,t.geoConicConformalSpain=y,t.geoConicEquidistantJapan=S,t.geoMercatorEcuador=_,t.geoMercatorEquatorialGuinea=L,t.geoMercatorMalaysia=P,t.geoTransverseMercatorChile=A,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-dsv@1.2.0@d3-dsv/dist/d3-dsv.js":
/*!**********************************************************!*\
  !*** ./node_modules/_d3-dsv@1.2.0@d3-dsv/dist/d3-dsv.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";var e={},n={},i=34,r=10,o=13;function a(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function s(t,e){var n=a(t);return function(i,r){return e(n(i),r,t)}}function l(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var i in t)i in e||n.push(e[i]=i)})),n}function c(t,e){var n=t+"",i=n.length;return i<e?new Array(e-i+1).join(0)+n:n}function u(t){return t<0?"-"+c(-t,6):t>9999?"+"+c(t,6):c(t,4)}function h(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),i=t.getUTCSeconds(),r=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":u(t.getUTCFullYear())+"-"+c(t.getUTCMonth()+1,2)+"-"+c(t.getUTCDate(),2)+(r?"T"+c(e,2)+":"+c(n,2)+":"+c(i,2)+"."+c(r,3)+"Z":i?"T"+c(e,2)+":"+c(n,2)+":"+c(i,2)+"Z":n||e?"T"+c(e,2)+":"+c(n,2)+"Z":"")}function d(t){var c=new RegExp('["'+t+"\n\r]"),u=t.charCodeAt(0);function d(t,e){var n,i,r=p(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?s(t,e):a(t)}));return r.columns=i||[],r}function p(t,a){var s,l=[],c=t.length,h=0,d=0,p=c<=0,f=!1;function g(){if(p)return n;if(f)return f=!1,e;var a,s,l=h;if(t.charCodeAt(l)===i){while(h++<c&&t.charCodeAt(h)!==i||t.charCodeAt(++h)===i);return(a=h)>=c?p=!0:(s=t.charCodeAt(h++))===r?f=!0:s===o&&(f=!0,t.charCodeAt(h)===r&&++h),t.slice(l+1,a-1).replace(/""/g,'"')}while(h<c){if((s=t.charCodeAt(a=h++))===r)f=!0;else if(s===o)f=!0,t.charCodeAt(h)===r&&++h;else if(s!==u)continue;return t.slice(l,a)}return p=!0,t.slice(l,c)}t.charCodeAt(c-1)===r&&--c,t.charCodeAt(c-1)===o&&--c;while((s=g())!==n){var m=[];while(s!==e&&s!==n)m.push(s),s=g();a&&null==(m=a(m,d++))||l.push(m)}return l}function f(e,n){return e.map((function(e){return n.map((function(t){return b(e[t])})).join(t)}))}function g(e,n){return null==n&&(n=l(e)),[n.map(b).join(t)].concat(f(e,n)).join("\n")}function m(t,e){return null==e&&(e=l(t)),f(t,e).join("\n")}function v(t){return t.map(y).join("\n")}function y(e){return e.map(b).join(t)}function b(t){return null==t?"":t instanceof Date?h(t):c.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:d,parseRows:p,format:g,formatBody:m,formatRows:v,formatRow:y,formatValue:b}}var p=d(","),f=p.parse,g=p.parseRows,m=p.format,v=p.formatBody,y=p.formatRows,b=p.formatRow,x=p.formatValue,w=d("\t"),_=w.parse,C=w.parseRows,A=w.format,I=w.formatBody,S=w.formatRows,M=w.formatRow,k=w.formatValue;function E(t){for(var e in t){var n,i,r=t[e].trim();if(r)if("true"===r)r=!0;else if("false"===r)r=!1;else if("NaN"===r)r=NaN;else if(isNaN(n=+r)){if(!(i=r.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;T&&i[4]&&!i[7]&&(r=r.replace(/-/g,"/").replace(/T/," ")),r=new Date(r)}else r=n;else r=null;t[e]=r}return t}var T=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();t.autoType=E,t.csvFormat=m,t.csvFormatBody=v,t.csvFormatRow=b,t.csvFormatRows=y,t.csvFormatValue=x,t.csvParse=f,t.csvParseRows=g,t.dsvFormat=d,t.tsvFormat=A,t.tsvFormatBody=I,t.tsvFormatRow=M,t.tsvFormatRows=S,t.tsvFormatValue=k,t.tsvParse=_,t.tsvParseRows=C,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js":
/*!********************************************************************************************!*\
  !*** ./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js ***!
  \********************************************************************************************/
/*! no static exports found */function(t,e,n){(function(t,i){i(e,n(/*! d3-geo */"./node_modules/_d3-geo@1.11.9@d3-geo/dist/d3-geo.js"),n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))})(0,(function(t,e,n){"use strict";var i=Math.abs,r=Math.atan,o=Math.atan2,a=Math.cos,s=Math.exp,l=Math.floor,c=Math.log,u=Math.max,h=Math.min,d=Math.pow,p=Math.round,f=Math.sign||function(t){return t>0?1:t<0?-1:0},g=Math.sin,m=Math.tan,v=1e-6,y=1e-12,b=Math.PI,x=b/2,w=b/4,_=Math.SQRT1_2,C=O(2),A=O(b),I=2*b,S=180/b,M=b/180;function k(t){return t?t/Math.sin(t):1}function E(t){return t>1?x:t<-1?-x:Math.asin(t)}function T(t){return t>1?0:t<-1?b:Math.acos(t)}function O(t){return t>0?Math.sqrt(t):0}function P(t){return t=s(2*t),(t-1)/(t+1)}function j(t){return(s(t)-s(-t))/2}function L(t){return(s(t)+s(-t))/2}function D(t){return c(t+O(t*t+1))}function R(t){return c(t+O(t*t-1))}function B(t){var e=m(t/2),n=2*c(a(t/2))/(e*e);function r(t,e){var i=a(t),r=a(e),o=g(e),s=r*i,l=-((1-s?c((1+s)/2)/(1-s):-.5)+n/(1+s));return[l*r*g(t),l*o]}return r.invert=function(e,r){var s,l=O(e*e+r*r),u=-t/2,h=50;if(!l)return[0,0];do{var d=u/2,p=a(d),f=g(d),y=m(d),b=c(1/p);u-=s=(2/y*b-n*y-l)/(-b/(f*f)+1-n/(2*p*p))}while(i(s)>v&&--h>0);var x=g(u);return[o(e*x,l*a(u)),E(r*x/l)]},r}var N=function(){var t=x,n=e.geoProjectionMutator(B),i=n(t);return i.radius=function(e){return arguments.length?n(t=e*M):t*S},i.scale(179.976).clipAngle(147)};function F(t,e){var n=a(e),i=k(T(n*a(t/=2)));return[2*n*g(t)*i,g(e)*i]}F.invert=function(t,e){if(!(t*t+4*e*e>b*b+v)){var n=t,r=e,o=25;do{var s,l=g(n),c=g(n/2),u=a(n/2),h=g(r),d=a(r),p=g(2*r),f=h*h,m=d*d,y=c*c,x=1-m*u*u,w=x?T(d*u)*O(s=1/x):s=0,_=2*w*d*c-t,C=w*h-e,A=s*(m*y+w*d*u*f),I=s*(.5*l*p-2*w*h*c),S=.25*s*(p*c-w*h*m*l),M=s*(f*u+w*y*d),k=I*S-M*A;if(!k)break;var E=(C*I-_*M)/k,P=(_*S-C*A)/k;n-=E,r-=P}while((i(E)>v||i(P)>v)&&--o>0);return[n,r]}};var z=function(){return e.geoProjection(F).scale(152.63)};function V(t){var e=g(t),n=a(t),r=t>=0?1:-1,s=m(r*t),l=(1+e-n)/2;function c(t,i){var c=a(i),u=a(t/=2);return[(1+c)*g(t),(r*i>-o(u,s)-.001?0:10*-r)+l+g(i)*n-(1+c)*e*u]}return c.invert=function(t,c){var u=0,h=0,d=50;do{var p=a(u),f=g(u),m=a(h),y=g(h),b=1+m,x=b*f-t,w=l+y*n-b*e*p-c,_=b*p/2,C=-f*y,A=e*b*f/2,I=n*m+e*p*y,S=C*A-I*_,M=(w*C-x*I)/S/2,k=(x*A-w*_)/S;u-=M,h-=k}while((i(M)>v||i(k)>v)&&--d>0);return r*h>-o(a(u),s)-.001?[2*u,h]:null},c}var G=function(){var t=20*M,n=t>=0?1:-1,i=m(n*t),r=e.geoProjectionMutator(V),s=r(t),l=s.stream;return s.parallel=function(e){return arguments.length?(i=m((n=(t=e*M)>=0?1:-1)*t),r(t)):t*S},s.stream=function(e){var r=s.rotate(),c=l(e),u=(s.rotate([0,0]),l(e));return s.rotate(r),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=-180*n;n*e<180;e+=90*n)u.point(e,90*n);while(n*(e-=t)>=-180)u.point(e,n*-o(a(e*M/2),i)*S);u.lineEnd(),u.polygonEnd()},c},s.scale(218.695).center([0,28.0974])};function H(t,e){var n=m(e/2),i=O(1-n*n),r=1+i*a(t/=2),o=g(t)*i/r,s=n/r,l=o*o,c=s*s;return[4/3*o*(3+l-3*c),4/3*s*(3+3*l-c)]}H.invert=function(t,e){if(t*=3/8,e*=3/8,!t&&i(e)>1)return null;var n=t*t,r=e*e,s=1+n+r,l=O((s-O(s*s-4*e*e))/2),c=E(l)/3,u=l?R(i(e/l))/3:D(i(t))/3,h=a(c),d=L(u),p=d*d-h*h;return[2*f(t)*o(j(u)*h,.25-p),2*f(e)*o(d*g(c),.25+p)]};var W=function(){return e.geoProjection(H).scale(66.1603)},U=O(8),Z=c(1+C);function Y(t,e){var n=i(e);return n<w?[t,c(m(w+e/2))]:[t*a(n)*(2*C-1/g(n)),f(e)*(2*C*(n-w)-c(m(n/2)))]}Y.invert=function(t,e){if((o=i(e))<Z)return[t,2*r(s(e))-x];var n,o,l=w,u=25;do{var h=a(l/2),d=m(l/2);l-=n=(U*(l-w)-c(d)-o)/(U-h*h/(2*d))}while(i(n)>y&&--u>0);return[t/(a(l)*(U-1/g(l))),f(e)*l]};var X=function(){return e.geoProjection(Y).scale(112.314)};function q(t){var n=2*b/t;function s(t,r){var s=e.geoAzimuthalEquidistantRaw(t,r);if(i(t)>x){var l=o(s[1],s[0]),c=O(s[0]*s[0]+s[1]*s[1]),u=n*p((l-x)/n)+x,h=o(g(l-=u),2-a(l));l=u+E(b/c*g(h))-h,s[0]=c*a(l),s[1]=c*g(l)}return s}return s.invert=function(t,i){var s=O(t*t+i*i);if(s>x){var l=o(i,t),c=n*p((l-x)/n)+x,u=l>c?-1:1,h=s*a(c-l),d=1/m(u*T((h-b)/O(b*(b-2*h)+s*s)));l=c+2*r((d+u*O(d*d-3))/3),t=s*a(l),i=s*g(l)}return e.geoAzimuthalEquidistantRaw.invert(t,i)},s}var K=function(){var t=5,n=e.geoProjectionMutator(q),i=n(t),r=i.stream,s=.01,l=-a(s*M),c=g(s*M);return i.lobes=function(e){return arguments.length?n(t=+e):t},i.stream=function(e){var n=i.rotate(),u=r(e),h=(i.rotate([0,0]),r(e));return i.rotate(n),u.sphere=function(){h.polygonStart(),h.lineStart();for(var e=0,n=360/t,i=2*b/t,r=90-180/t,u=x;e<t;++e,r-=n,u-=i)h.point(o(c*a(u),l)*S,E(c*g(u))*S),r<-90?(h.point(-90,-180-r-s),h.point(-90,-180-r+s)):(h.point(90,r+s),h.point(90,r-s));h.lineEnd(),h.polygonEnd()},u},i.scale(87.8076).center([0,17.1875]).clipAngle(179.999)};function Q(t,e){var n,r=t*g(e),o=30;do{e-=n=(e+g(e)-r)/(1+a(e))}while(i(n)>v&&--o>0);return e/2}function J(t,e,n){function i(i,r){return[t*i*a(r=Q(n,r)),e*g(r)]}return i.invert=function(i,r){return r=E(r/e),[i/(t*a(r)),E((2*r+g(2*r))/n)]},i}var $=J(C/x,C,b),tt=function(){return e.geoProjection($).scale(169.529)},et=2.00276,nt=1.11072;function it(t,e){var n=Q(b,e);return[et*t/(1/a(e)+nt/a(n)),(e+C*g(n))/et]}it.invert=function(t,e){var n,r,o=et*e,s=e<0?-w:w,l=25;do{r=o-C*g(s),s-=n=(g(2*s)+2*s-b*g(r))/(2*a(2*s)+2+b*a(r)*C*a(s))}while(i(n)>v&&--l>0);return r=o-C*g(s),[t*(1/a(r)+nt/a(s))/et,r]};var rt=function(){return e.geoProjection(it).scale(160.857)},ot=function(t){var n=0,i=e.geoProjectionMutator(t),r=i(n);return r.parallel=function(t){return arguments.length?i(n=t*M):n*S},r};function at(t,e){return[t*a(e),e]}at.invert=function(t,e){return[t/a(e),e]};var st=function(){return e.geoProjection(at).scale(152.63)};function lt(t){if(!t)return at;var e=1/m(t);function n(n,i){var r=e+t-i,o=r?n*a(i)/r:r;return[r*g(o),e-r*a(o)]}return n.invert=function(n,i){var r=O(n*n+(i=e-i)*i),s=e+t-r;return[r/a(s)*o(n,i),s]},n}var ct=function(){return ot(lt).scale(123.082).center([0,26.1441]).parallel(45)};function ut(t){function e(e,n){var i=x-n,r=i?e*t*g(i)/i:i;return[i*g(r)/t,x-i*a(r)]}return e.invert=function(e,n){var i=e*t,r=x-n,a=O(i*i+r*r),s=o(i,r);return[(a?a/g(a):1)*s/t,x-a]},e}var ht=function(){var t=.5,n=e.geoProjectionMutator(ut),i=n(t);return i.fraction=function(e){return arguments.length?n(t=+e):t},i.scale(158.837)},dt=J(1,4/b,b),pt=function(){return e.geoProjection(dt).scale(152.63)};function ft(t,e,n,r,s,l){var c,u=a(l);if(i(t)>1||i(l)>1)c=T(n*s+e*r*u);else{var h=g(t/2),d=g(l/2);c=2*E(O(h*h+e*r*d*d))}return i(c)>v?[c,o(r*g(l),e*s-n*r*u)]:[0,0]}function gt(t,e,n){return T((t*t+e*e-n*n)/(2*t*e))}function mt(t){return t-2*b*l((t+b)/(2*b))}function vt(t,e,n){for(var i,r=[[t[0],t[1],g(t[1]),a(t[1])],[e[0],e[1],g(e[1]),a(e[1])],[n[0],n[1],g(n[1]),a(n[1])]],o=r[2],s=0;s<3;++s,o=i)i=r[s],o.v=ft(i[1]-o[1],o[3],o[2],i[3],i[2],i[0]-o[0]),o.point=[0,0];var l=gt(r[0].v[0],r[2].v[0],r[1].v[0]),c=gt(r[0].v[0],r[1].v[0],r[2].v[0]),u=b-l;r[2].point[1]=0,r[0].point[0]=-(r[1].point[0]=r[0].v[0]/2);var h=[r[2].point[0]=r[0].point[0]+r[2].v[0]*a(l),2*(r[0].point[1]=r[1].point[1]=r[2].v[0]*g(l))];function d(t,e){var n,i=g(e),o=a(e),s=new Array(3);for(n=0;n<3;++n){var l=r[n];if(s[n]=ft(e-l[1],l[3],l[2],o,i,t-l[0]),!s[n][0])return l.point;s[n][1]=mt(s[n][1]-l.v[1])}var d=h.slice();for(n=0;n<3;++n){var p=2==n?0:n+1,f=gt(r[n].v[0],s[n][0],s[p][0]);s[n][1]<0&&(f=-f),n?1==n?(f=c-f,d[0]-=s[n][0]*a(f),d[1]-=s[n][0]*g(f)):(f=u-f,d[0]+=s[n][0]*a(f),d[1]+=s[n][0]*g(f)):(d[0]+=s[n][0]*a(f),d[1]-=s[n][0]*g(f))}return d[0]/=3,d[1]/=3,d}return d}function yt(t){return t[0]*=M,t[1]*=M,t}function bt(){return xt([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function xt(t,n,i){var r=e.geoCentroid({type:"MultiPoint",coordinates:[t,n,i]}),o=[-r[0],-r[1]],a=e.geoRotation(o),s=e.geoProjection(vt(yt(a(t)),yt(a(n)),yt(a(i)))).rotate(o),l=s.center;return delete s.rotate,s.center=function(t){return arguments.length?l(a(t)):a.invert(l())},s.clipAngle(90)}function wt(t,e){var n=O(1-g(e));return[2/A*t*n,A*(1-n)]}wt.invert=function(t,e){var n=(n=e/A-1)*n;return[n>0?t*O(b/n)/2:0,E(1-n)]};var _t=function(){return e.geoProjection(wt).scale(95.6464).center([0,30])};function Ct(t){var e=m(t);function n(t,n){return[t,(t?t/g(t):1)*(g(n)*a(t)-e*a(n))]}return n.invert=e?function(t,n){t&&(n*=g(t)/t);var i=a(t);return[t,2*o(O(i*i+e*e-n*n)-i,e-n)]}:function(t,e){return[t,E(t?e*m(t)/t:e)]},n}var At=function(){return ot(Ct).scale(249.828).clipAngle(90)},It=O(3);function St(t,e){return[It*t*(2*a(2*e/3)-1)/A,It*A*g(e/3)]}St.invert=function(t,e){var n=3*E(e/(It*A));return[A*t/(It*(2*a(2*n/3)-1)),n]};var Mt=function(){return e.geoProjection(St).scale(156.19)};function kt(t){var e=a(t);function n(t,n){return[t*e,g(n)/e]}return n.invert=function(t,n){return[t/e,E(n*e)]},n}var Et=function(){return ot(kt).parallel(38.58).scale(195.044)};function Tt(t){var e=a(t);function n(t,n){return[t*e,(1+e)*m(n/2)]}return n.invert=function(t,n){return[t/e,2*r(n/(1+e))]},n}var Ot=function(){return ot(Tt).scale(124.75)};function Pt(t,e){var n=O(8/(3*b));return[n*t*(1-i(e)/b),n*e]}Pt.invert=function(t,e){var n=O(8/(3*b)),r=e/n;return[t/(n*(1-i(r)/b)),r]};var jt=function(){return e.geoProjection(Pt).scale(165.664)};function Lt(t,e){var n=O(4-3*g(i(e)));return[2/O(6*b)*t*n,f(e)*O(2*b/3)*(2-n)]}Lt.invert=function(t,e){var n=2-i(e)/O(2*b/3);return[t*O(6*b)/(2*n),f(e)*E((4-n*n)/3)]};var Dt=function(){return e.geoProjection(Lt).scale(165.664)};function Rt(t,e){var n=O(b*(4+b));return[2/n*t*(1+O(1-4*e*e/(b*b))),4/n*e]}Rt.invert=function(t,e){var n=O(b*(4+b))/2;return[t*n/(1+O(1-e*e*(4+b)/(4*b))),e*n/2]};var Bt=function(){return e.geoProjection(Rt).scale(180.739)};function Nt(t,e){var n=(2+x)*g(e);e/=2;for(var r=0,o=1/0;r<10&&i(o)>v;r++){var s=a(e);e-=o=(e+g(e)*(s+2)-n)/(2*s*(1+s))}return[2/O(b*(4+b))*t*(1+a(e)),2*O(b/(4+b))*g(e)]}Nt.invert=function(t,e){var n=e*O((4+b)/b)/2,i=E(n),r=a(i);return[t/(2/O(b*(4+b))*(1+r)),E((i+n*(r+2))/(2+x))]};var Ft=function(){return e.geoProjection(Nt).scale(180.739)};function zt(t,e){return[t*(1+a(e))/O(2+b),2*e/O(2+b)]}zt.invert=function(t,e){var n=O(2+b),i=e*n/2;return[n*t/(1+a(i)),i]};var Vt=function(){return e.geoProjection(zt).scale(173.044)};function Gt(t,e){for(var n=(1+x)*g(e),r=0,o=1/0;r<10&&i(o)>v;r++)e-=o=(e+g(e)-n)/(1+a(e));return n=O(2+b),[t*(1+a(e))/n,2*e/n]}Gt.invert=function(t,e){var n=1+x,i=O(n/2);return[2*t*i/(1+a(e*=i)),E((e+g(e))/n)]};var Ht=function(){return e.geoProjection(Gt).scale(173.044)},Wt=3+2*C;function Ut(t,e){var n=g(t/=2),i=a(t),o=O(a(e)),s=a(e/=2),l=g(e)/(s+C*i*o),u=O(2/(1+l*l)),h=O((C*s+(i+n)*o)/(C*s+(i-n)*o));return[Wt*(u*(h-1/h)-2*c(h)),Wt*(u*l*(h+1/h)-2*r(l))]}Ut.invert=function(t,e){if(!(n=H.invert(t/1.2,1.065*e)))return null;var n,o=n[0],s=n[1],l=20;t/=Wt,e/=Wt;do{var d=o/2,p=s/2,f=g(d),m=a(d),y=g(p),b=a(p),w=a(s),A=O(w),I=y/(b+C*m*A),S=I*I,M=O(2/(1+S)),k=C*b+(m+f)*A,E=C*b+(m-f)*A,T=k/E,P=O(T),j=P-1/P,L=P+1/P,D=M*j-2*c(P)-t,R=M*I*L-2*r(I)-e,B=y&&_*A*f*S/y,N=(C*m*b+A)/(2*(b+C*m*A)*(b+C*m*A)*A),F=-.5*I*M*M*M,z=F*B,V=F*N,G=(G=2*b+C*A*(m-f))*G*P,W=(C*m*b*A+w)/G,U=-C*f*y/(A*G),Z=j*z-2*W/P+M*(W+W/T),Y=j*V-2*U/P+M*(U+U/T),X=I*L*z-2*B/(1+S)+M*L*B+M*I*(W-W/T),q=I*L*V-2*N/(1+S)+M*L*N+M*I*(U-U/T),K=Y*X-q*Z;if(!K)break;var Q=(R*Y-D*q)/K,J=(D*X-R*Z)/K;o-=Q,s=u(-x,h(x,s-J))}while((i(Q)>v||i(J)>v)&&--l>0);return i(i(s)-x)<v?[0,s]:l&&[o,s]};var Zt=function(){return e.geoProjection(Ut).scale(62.5271)},Yt=a(35*M);function Xt(t,e){var n=m(e/2);return[t*Yt*O(1-n*n),(1+Yt)*n]}Xt.invert=function(t,e){var n=e/(1+Yt);return[t&&t/(Yt*O(1-n*n)),2*r(n)]};var qt=function(){return e.geoProjection(Xt).scale(137.152)};function Kt(t,e){var n=e/2,i=a(n);return[2*t/A*a(e)*i*i,A*m(n)]}Kt.invert=function(t,e){var n=r(e/A),i=a(n),o=2*n;return[t*A/2/(a(o)*i*i),o]};var Qt=function(){return e.geoProjection(Kt).scale(135.264)};function Jt(t){return[t[0]/2,E(m(t[1]/2*M))*S]}function $t(t){return[2*t[0],2*r(g(t[1]*M))*S]}var te=function(t){null==t&&(t=e.geoOrthographic);var n=t(),i=e.geoEquirectangular().scale(S).precision(0).clipAngle(null).translate([0,0]);function r(t){return n(Jt(t))}function o(t){r[t]=function(e){return arguments.length?(n[t](e),r):n[t]()}}return n.invert&&(r.invert=function(t){return $t(n.invert(t))}),r.stream=function(t){var e=n.stream(t),r=i.stream({point:function(t,n){e.point(t/2,E(m(-n/2*M))*S)},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}});return r.sphere=e.sphere,r},r.rotate=function(t){return arguments.length?(i.rotate(t),r):i.rotate()},r.center=function(t){return arguments.length?(n.center(Jt(t)),r):$t(n.center())},o("clipAngle"),o("clipExtent"),o("scale"),o("translate"),o("precision"),r.scale(249.5)};function ee(t,n){var r=2*b/n,s=t*t;function l(n,l){var c=e.geoAzimuthalEquidistantRaw(n,l),u=c[0],h=c[1],d=u*u+h*h;if(d>s){var f=O(d),m=o(h,u),y=r*p(m/r),w=m-y,_=t*a(w),C=(t*g(w)-w*g(_))/(x-_),A=ne(w,C),I=(b-t)/ie(A,_,b);u=f;var S,M=50;do{u-=S=(t+ie(A,_,u)*I-f)/(A(u)*I)}while(i(S)>v&&--M>0);h=w*g(u),u<x&&(h-=C*(u-x));var k=g(y),E=a(y);c[0]=u*E-h*k,c[1]=u*k+h*E}return c}return l.invert=function(n,l){var c=n*n+l*l;if(c>s){var u=O(c),h=o(l,n),d=r*p(h/r),f=h-d;n=u*a(f),l=u*g(f);var m=n-x,v=g(n),w=l/v,_=n<x?1/0:0,C=10;while(1){var A=t*g(w),I=t*a(w),S=g(I),M=x-I,k=(A-w*S)/M,E=ne(w,k);if(i(_)<y||!--C)break;w-=_=(w*v-k*m-l)/(v-2*m*(M*(I+w*A*a(I)-S)-A*(A-w*S))/(M*M))}u=t+ie(E,I,n)*(b-t)/ie(E,I,b),h=d+w,n=u*a(h),l=u*g(h)}return e.geoAzimuthalEquidistantRaw.invert(n,l)},l}function ne(t,e){return function(n){var i=t*a(n);return n<x&&(i-=e),O(1+i*i)}}function ie(t,e,n){for(var i=50,r=(n-e)/i,o=t(e)+t(n),a=1,s=e;a<i;++a)o+=2*t(s+=r);return.5*o*r}var re=function(){var t=6,n=30*M,i=a(n),r=g(n),s=e.geoProjectionMutator(ee),l=s(n,t),c=l.stream,u=.01,h=-a(u*M),d=g(u*M);return l.radius=function(e){return arguments.length?(i=a(n=e*M),r=g(n),s(n,t)):n*S},l.lobes=function(e){return arguments.length?s(n,t=+e):t},l.stream=function(e){var n=l.rotate(),s=c(e),u=(l.rotate([0,0]),c(e));return l.rotate(n),s.sphere=function(){u.polygonStart(),u.lineStart();for(var e=0,n=2*b/t,s=0;e<t;++e,s-=n)u.point(o(d*a(s),h)*S,E(d*g(s))*S),u.point(o(r*a(s-n/2),i)*S,E(r*g(s-n/2))*S);u.lineEnd(),u.polygonEnd()},s},l.rotate([90,-40]).scale(91.7095).clipAngle(179.999)},oe=function(t,e,n,r,o,s,l,c){function u(i,u){if(!u)return[t*i/b,0];var h=u*u,d=t+h*(e+h*(n+h*r)),p=u*(o-1+h*(s-c+h*l)),f=(d*d+p*p)/(2*p),m=i*E(d/f)/b;return[f*g(m),u*(1+h*c)+f*(1-a(m))]}return arguments.length<8&&(c=0),u.invert=function(u,h){var d,p,f=b*u/t,m=h,y=50;do{var x=m*m,w=t+x*(e+x*(n+x*r)),_=m*(o-1+x*(s-c+x*l)),C=w*w+_*_,A=2*_,I=C/A,S=I*I,M=E(w/I)/b,k=f*M,T=w*w,P=(2*e+x*(4*n+6*x*r))*m,j=o+x*(3*s+5*x*l),L=2*(w*P+_*(j-1)),D=2*(j-1),R=(L*A-C*D)/(A*A),B=a(k),N=g(k),F=I*B,z=I*N,V=f/b*(1/O(1-T/S))*(P*I-w*R)/S,G=z-u,H=m*(1+x*c)+I-F-h,W=R*N+F*V,U=F*M,Z=1+R-(R*B-z*V),Y=z*M,X=W*Y-Z*U;if(!X)break;f-=d=(H*W-G*Z)/X,m-=p=(G*Y-H*U)/X}while((i(d)>v||i(p)>v)&&--y>0);return[f,m]},u},ae=oe(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),se=function(){return e.geoProjection(ae).scale(149.995)},le=oe(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),ce=function(){return e.geoProjection(le).scale(153.93)},ue=oe(5/6*b,-.62636,-.0344,0,1.3493,-.05524,0,.045),he=function(){return e.geoProjection(ue).scale(130.945)};function de(t,e){var n=t*t,i=e*e;return[t*(1-.162388*i)*(.87-952426e-9*n*n),e*(1+i/12)]}de.invert=function(t,e){var n,r=t,o=e,a=50;do{var s=o*o;o-=n=(o*(1+s/12)-e)/(1+s/4)}while(i(n)>v&&--a>0);a=50,t/=1-.162388*s;do{var l=(l=r*r)*l;r-=n=(r*(.87-952426e-9*l)-t)/(.87-.00476213*l)}while(i(n)>v&&--a>0);return[r,o]};var pe=function(){return e.geoProjection(de).scale(131.747)},fe=oe(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762),ge=function(){return e.geoProjection(fe).scale(131.087)},me=function(t){var e=t(x,0)[0]-t(-x,0)[0];function n(n,i){var r=n>0?-.5:.5,o=t(n+r*b,i);return o[0]-=r*e,o}return t.invert&&(n.invert=function(n,i){var r=n>0?-.5:.5,o=t.invert(n+r*e,i),a=o[0]-r*b;return a<-b?a+=2*b:a>b&&(a-=2*b),o[0]=a,o}),n};function ve(t,e){var n=f(t),r=f(e),s=a(e),l=a(t)*s,c=g(t)*s,u=g(r*e);t=i(o(c,u)),e=E(l),i(t-x)>v&&(t%=x);var h=ye(t>b/4?x-t:t,e);return t>b/4&&(u=h[0],h[0]=-h[1],h[1]=-u),h[0]*=n,h[1]*=-r,h}function ye(t,e){if(e===x)return[0,0];var n,r,o=g(e),s=o*o,l=s*s,c=1+l,u=1+3*l,h=1-l,d=E(1/O(c)),p=h+s*c*d,f=(1-o)/p,m=O(f),y=f*c,w=O(y),_=m*h;if(0===t)return[0,-(_+s*w)];var C,A=a(e),I=1/A,S=2*o*A,M=(-3*s+d*u)*S,k=(-p*A-(1-o)*M)/(p*p),T=.5*k/m,P=h*T-2*s*m*S,j=s*c*k+f*u*S,L=-I*S,D=-I*j,R=-2*I*P,B=4*t/b;if(t>.222*b||e<b/4&&t>.175*b){if(n=(_+s*O(y*(1+l)-_*_))/(1+l),t>b/4)return[n,n];var N=n,F=.5*n;n=.5*(F+N),r=50;do{var z=O(y-n*n),V=n*(R+L*z)+D*E(n/w)-B;if(!V)break;V<0?F=n:N=n,n=.5*(F+N)}while(i(N-F)>v&&--r>0)}else{n=v,r=25;do{var G=n*n,H=O(y-G),W=R+L*H,U=n*W+D*E(n/w)-B,Z=W+(D-L*G)/H;n-=C=H?U/Z:0}while(i(C)>v&&--r>0)}return[n,-_-s*O(y-n*n)]}function be(t,e){var n=0,r=1,o=.5,s=50;while(1){var l=o*o,c=O(o),u=E(1/O(1+l)),h=1-l+o*(1+l)*u,d=(1-c)/h,p=O(d),f=d*(1+l),g=p*(1-l),m=f-t*t,v=O(m),x=e+g+o*v;if(i(r-n)<y||0===--s||0===x)break;x>0?n=o:r=o,o=.5*(n+r)}if(!s)return null;var w=E(c),_=a(w),C=1/_,A=2*c*_,I=(-3*o+u*(1+3*l))*A,S=(-h*_-(1-c)*I)/(h*h),M=.5*S/p,k=(1-l)*M-2*o*p*A,T=-2*C*k,P=-C*A,j=-C*(o*(1+l)*S+d*(1+3*l)*A);return[b/4*(t*(T+P*v)+j*E(t/O(f))),w]}ve.invert=function(t,e){i(t)>1&&(t=2*f(t)-t),i(e)>1&&(e=2*f(e)-e);var n=f(t),r=f(e),s=-n*t,l=-r*e,c=l/s<1,u=be(c?l:s,c?s:l),h=u[0],d=u[1],p=a(d);return c&&(h=-x-h),[n*(o(g(h)*p,-g(d))+b),r*E(a(h)*p)]};var xe=function(){return e.geoProjection(me(ve)).scale(239.75)};function we(t,e,n){var i,r,o;return t?(i=_e(t,n),e?(r=_e(e,1-n),o=r[1]*r[1]+n*i[0]*i[0]*r[0]*r[0],[[i[0]*r[2]/o,i[1]*i[2]*r[0]*r[1]/o],[i[1]*r[1]/o,-i[0]*i[2]*r[0]*r[2]/o],[i[2]*r[1]*r[2]/o,-n*i[0]*i[1]*r[0]/o]]):[[i[0],0],[i[1],0],[i[2],0]]):(r=_e(e,1-n),[[0,r[0]/r[1]],[1/r[1],0],[r[2]/r[1],0]])}function _e(t,e){var n,o,l,c,u;if(e<v)return c=g(t),o=a(t),n=e*(t-c*o)/4,[c-n*o,o+n*c,1-e*c*c/2,t-n];if(e>=1-v)return n=(1-e)/4,o=L(t),c=P(t),l=1/o,u=o*j(t),[c+n*(u-t)/(o*o),l-n*c*l*(u-t),l+n*c*l*(u+t),2*r(s(t))-x+n*(u-t)/o];var h=[1,0,0,0,0,0,0,0,0],d=[O(e),0,0,0,0,0,0,0,0],p=0;o=O(1-e),u=1;while(i(d[p]/h[p])>v&&p<8)n=h[p++],d[p]=(n-o)/2,h[p]=(n+o)/2,o=O(n*o),u*=2;l=u*h[p]*t;do{c=d[p]*g(o=l)/h[p],l=(E(c)+l)/2}while(--p);return[g(l),c=a(l),c/a(l-o),l]}function Ce(t,e,n){var o=i(t),a=i(e),s=j(a);if(o){var l=1/g(o),c=1/(m(o)*m(o)),u=-(c+n*(s*s*l*l)-1+n),h=(n-1)*c,d=(-u+O(u*u-4*h))/2;return[Ae(r(1/O(d)),n)*f(t),Ae(r(O((d/c-1)/n)),1-n)*f(e)]}return[0,Ae(r(s),1-n)*f(e)]}function Ae(t,e){if(!e)return t;if(1===e)return c(m(t/2+w));for(var n=1,o=O(1-e),a=O(e),s=0;i(a)>v;s++){if(t%b){var l=r(o*m(t)/n);l<0&&(l+=b),t+=l+~~(t/b)*b}else t+=t;a=(n+o)/2,o=O(n*o),a=((n=a)-o)/2}return t/(d(2,s)*n)}function Ie(t,e){var n=(C-1)/(C+1),r=O(1-n*n),o=Ae(x,r*r),l=-1,u=c(m(b/4+i(e)/2)),h=s(l*u)/O(n),d=Se(h*a(l*t),h*g(l*t)),p=Ce(d[0],d[1],r*r);return[-p[1],(e>=0?1:-1)*(.5*o-p[0])]}function Se(t,e){var n=t*t,i=e+1,r=1-n-e*e;return[.5*((t>=0?x:-x)-o(r,2*t)),-.25*c(r*r+4*n)+.5*c(i*i+n)]}function Me(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}Ie.invert=function(t,e){var n=(C-1)/(C+1),i=O(1-n*n),a=Ae(x,i*i),l=-1,u=we(.5*a-e,-t,i*i),h=Me(u[0],u[1]),d=o(h[1],h[0])/l;return[d,2*r(s(.5/l*c(n*h[0]*h[0]+n*h[1]*h[1])))-x]};var ke=function(){return e.geoProjection(me(Ie)).scale(151.496)};function Ee(t,n){if(arguments.length<2&&(n=t),1===n)return e.geoAzimuthalEqualAreaRaw;if(n===1/0)return Te;function i(i,r){var o=e.geoAzimuthalEqualAreaRaw(i/n,r);return o[0]*=t,o}return i.invert=function(i,r){var o=e.geoAzimuthalEqualAreaRaw.invert(i/t,r);return o[0]*=n,o},i}function Te(t,e){return[t*a(e)/a(e/=2),2*g(e)]}Te.invert=function(t,e){var n=2*E(e/2);return[t*a(n/2)/a(n),n]};var Oe=function(){var t=2,n=e.geoProjectionMutator(Ee),i=n(t);return i.coefficient=function(e){return arguments.length?n(t=+e):t},i.scale(169.529)};function Pe(t){var e=g(t),n=a(t),r=je(t);function s(t,o){var s=r(t,o);t=s[0],o=s[1];var l=g(o),c=a(o),u=a(t),h=T(e*l+n*c*u),d=g(h),p=i(d)>v?h/d:1;return[p*n*g(t),(i(t)>x?p:-p)*(e*c-n*l*u)]}return r.invert=je(-t),s.invert=function(t,n){var i=O(t*t+n*n),s=-g(i),l=a(i),c=i*l,u=-n*s,h=i*e,d=O(c*c+u*u-h*h),p=o(c*h+u*d,u*h-c*d),f=(i>x?-1:1)*o(t*s,i*a(p)*l+n*g(p)*s);return r.invert(f,p)},s}function je(t){var e=g(t),n=a(t);return function(t,i){var r=a(i),s=a(t)*r,l=g(t)*r,c=g(i);return[o(l,s*n-c*e),E(c*n+s*e)]}}var Le=function(){var t=0,n=e.geoProjectionMutator(Pe),i=n(t),r=i.rotate,o=i.stream,a=e.geoCircle();return i.parallel=function(e){if(!arguments.length)return t*S;var r=i.rotate();return n(t=e*M).rotate(r)},i.rotate=function(e){return arguments.length?(r.call(i,[e[0],e[1]-t*S]),a.center([-e[0],-e[1]]),i):(e=r.call(i),e[1]+=t*S,e)},i.stream=function(t){return t=o(t),t.sphere=function(){t.polygonStart();var e,n=.01,i=a.radius(90-n)().coordinates[0],r=i.length-1,o=-1;t.lineStart();while(++o<r)t.point((e=i[o])[0],e[1]);t.lineEnd(),i=a.radius(90+n)().coordinates[0],r=i.length-1,t.lineStart();while(--o>=0)t.point((e=i[o])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},i.scale(79.4187).parallel(45).clipAngle(179.999)},De=41+48/36+37/3600,Re=kt(0);function Be(t){var e=De*M,n=wt(b,e)[0]-wt(-b,e)[0],r=Re(0,e)[1],o=wt(0,e)[1],a=A-o,s=I/t,c=4/I,d=r+a*a*4/I;function p(p,f){var g,m=i(f);if(m>e){var v=h(t-1,u(0,l((p+b)/s)));p+=b*(t-1)/t-v*s,g=wt(p,m),g[0]=g[0]*I/n-I*(t-1)/(2*t)+v*I/t,g[1]=r+4*(g[1]-o)*a/I,f<0&&(g[1]=-g[1])}else g=Re(p,f);return g[0]*=c,g[1]/=d,g}return p.invert=function(e,p){e/=c,p*=d;var f=i(p);if(f>r){var g=h(t-1,u(0,l((e+b)/s)));e=(e+b*(t-1)/t-g*s)*n/I;var m=wt.invert(e,.25*(f-r)*I/a+o);return m[0]-=b*(t-1)/t-g*s,p<0&&(m[1]=-m[1]),m}return Re.invert(e,p)},p}function Ne(t){return{type:"Polygon",coordinates:[n.range(-180,180+t/2,t).map((function(t,e){return[t,1&e?90-1e-6:De]})).concat(n.range(180,-180-t/2,-t).map((function(t,e){return[t,1&e?1e-6-90:-De]})))]}}var Fe=function(){var t=4,n=e.geoProjectionMutator(Be),i=n(t),r=i.stream;return i.lobes=function(e){return arguments.length?n(t=+e):t},i.stream=function(n){var o=i.rotate(),a=r(n),s=(i.rotate([0,0]),r(n));return i.rotate(o),a.sphere=function(){e.geoStream(Ne(180/t),s)},a},i.scale(239.75)};function ze(t){var e,n=1+t,r=g(1/n),s=E(r),l=2*O(b/(e=b+4*s*n)),c=.5*l*(n+O(t*(2+t))),u=t*t,h=n*n;function d(r,d){var p,f,m=1-g(d);if(m&&m<2){var v,w=x-d,_=25;do{var C=g(w),A=a(w),I=s+o(C,n-A),S=1+h-2*n*A;w-=v=(w-u*s-n*C+S*I-.5*m*e)/(2*n*C*I)}while(i(v)>y&&--_>0);p=l*O(S),f=r*I/b}else p=l*(t+m),f=r*s/b;return[p*g(f),c-p*a(f)]}return d.invert=function(t,i){var r=t*t+(i-=c)*i,a=(1+h-r/(l*l))/(2*n),d=T(a),p=g(d),f=s+o(p,n-a);return[E(t/O(r))*b/f,E(1-2*(d-u*s-n*p+(1+h-2*n*a)*f)/e)]},d}var Ve=function(){var t=1,n=e.geoProjectionMutator(ze),i=n(t);return i.ratio=function(e){return arguments.length?n(t=+e):t},i.scale(167.774).center([0,18.67])},Ge=.7109889596207567,He=.0528035274542;function We(t,e){return e>-Ge?(t=$(t,e),t[1]+=He,t):at(t,e)}We.invert=function(t,e){return e>-Ge?$.invert(t,e-He):at.invert(t,e)};var Ue=function(){return e.geoProjection(We).rotate([-20,-55]).scale(164.263).center([0,-5.4036])};function Ze(t,e){return i(e)>Ge?(t=$(t,e),t[1]-=e>0?He:-He,t):at(t,e)}Ze.invert=function(t,e){return i(e)>Ge?$.invert(t,e+(e>0?He:-He)):at.invert(t,e)};var Ye=function(){return e.geoProjection(Ze).scale(152.63)};function Xe(t,e){return i(t[0]-e[0])<v&&i(t[1]-e[1])<v}function qe(t,e){var n,i,r,o=-1,a=t.length,s=t[0],l=[];while(++o<a){n=t[o],i=(n[0]-s[0])/e,r=(n[1]-s[1])/e;for(var c=0;c<e;++c)l.push([s[0]+c*i,s[1]+c*r]);s=n}return l.push(n),l}function Ke(t){var e,i,r,o,a,s,l,c=[],u=t[0].length;for(l=0;l<u;++l)e=t[0][l],i=e[0][0],r=e[0][1],o=e[1][1],a=e[2][0],s=e[2][1],c.push(qe([[i+v,r+v],[i+v,o-v],[a-v,o-v],[a-v,s+v]],30));for(l=t[1].length-1;l>=0;--l)e=t[1][l],i=e[0][0],r=e[0][1],o=e[1][1],a=e[2][0],s=e[2][1],c.push(qe([[a-v,s-v],[a-v,o+v],[i+v,o+v],[i+v,r-v]],30));return{type:"Polygon",coordinates:[n.merge(c)]}}var Qe=function(t,n){var i=Ke(n);n=n.map((function(t){return t.map((function(t){return[[t[0][0]*M,t[0][1]*M],[t[1][0]*M,t[1][1]*M],[t[2][0]*M,t[2][1]*M]]}))}));var r=n.map((function(e){return e.map((function(e){var n,i=t(e[0][0],e[0][1])[0],r=t(e[2][0],e[2][1])[0],o=t(e[1][0],e[0][1])[1],a=t(e[1][0],e[1][1])[1];return o>a&&(n=o,o=a,a=n),[[i,o],[r,a]]}))}));function o(e,i){for(var r=i<0?-1:1,o=n[+(i<0)],a=0,s=o.length-1;a<s&&e>o[a][2][0];++a);var l=t(e-o[a][1][0],i);return l[0]+=t(o[a][1][0],r*i>r*o[a][0][1]?o[a][0][1]:i)[0],l}t.invert&&(o.invert=function(e,i){for(var a=r[+(i<0)],s=n[+(i<0)],l=0,c=a.length;l<c;++l){var u=a[l];if(u[0][0]<=e&&e<u[1][0]&&u[0][1]<=i&&i<u[1][1]){var h=t.invert(e-t(s[l][1][0],0)[0],i);return h[0]+=s[l][1][0],Xe(o(h[0],h[1]),[e,i])?h:null}}});var a=e.geoProjection(o),s=a.stream;return a.stream=function(t){var n=a.rotate(),r=s(t),o=(a.rotate([0,0]),s(t));return a.rotate(n),r.sphere=function(){e.geoStream(i,o)},r},a},Je=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],$e=function(){return Qe(it,Je).scale(160.857)},tn=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],en=function(){return Qe(Ze,tn).scale(152.63)},nn=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]],rn=function(){return Qe($,nn).scale(169.529)},on=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]],an=function(){return Qe($,on).scale(169.529).rotate([20,0])},sn=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]],ln=function(){return Qe(We,sn).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},cn=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]],un=function(){return Qe(at,cn).scale(152.63).rotate([-20,0])};function hn(t,e){return[3/I*t*O(b*b/3-e*e),e]}hn.invert=function(t,e){return[I/3*t/O(b*b/3-e*e),e]};var dn=function(){return e.geoProjection(hn).scale(158.837)};function pn(t){function e(e,n){if(i(i(n)-x)<v)return[0,n<0?-2:2];var r=g(n),o=d((1+r)/(1-r),t/2),s=.5*(o+1/o)+a(e*=t);return[2*g(e)/s,(o-1/o)/s]}return e.invert=function(e,n){var r=i(n);if(i(r-2)<v)return e?null:[0,f(n)*x];if(r>2)return null;e/=2,n/=2;var a=e*e,s=n*n,l=2*n/(1+a+s);return l=d((1+l)/(1-l),1/t),[o(2*e,1-a-s)/t,E((l-1)/(l+1))]},e}var fn=function(){var t=.5,n=e.geoProjectionMutator(pn),i=n(t);return i.spacing=function(e){return arguments.length?n(t=+e):t},i.scale(124.75)},gn=b/C;function mn(t,e){return[t*(1+O(a(e)))/2,e/(a(e/2)*a(t/6))]}mn.invert=function(t,e){var n=i(t),r=i(e),o=v,s=x;r<gn?s*=r/gn:o+=6*T(gn/r);for(var l=0;l<25;l++){var c=g(s),u=O(a(s)),h=g(s/2),d=a(s/2),p=g(o/6),f=a(o/6),m=.5*o*(1+u)-n,y=s/(d*f)-r,b=u?-.25*o*c/u:0,w=.5*(1+u),_=(1+.5*s*h/d)/(d*f),C=s/d*(p/6)/(f*f),A=b*C-_*w,I=(m*C-y*w)/A,S=(y*b-m*_)/A;if(s-=I,o-=S,i(I)<v&&i(S)<v)break}return[t<0?-o:o,e<0?-s:s]};var vn=function(){return e.geoProjection(mn).scale(97.2672)};function yn(t,e){var n=t*t,i=e*e;return[t*(.975534+i*(-.0143059*n-.119161+-.0547009*i)),e*(1.00384+n*(.0802894+-.02855*i+199025e-9*n)+i*(.0998909+-.0491032*i))]}yn.invert=function(t,e){var n=f(t)*b,r=e/2,o=50;do{var a=n*n,s=r*r,l=n*r,c=n*(.975534+s*(-.0143059*a-.119161+-.0547009*s))-t,u=r*(1.00384+a*(.0802894+-.02855*s+199025e-9*a)+s*(.0998909+-.0491032*s))-e,h=.975534-s*(.119161+3*a*.0143059+.0547009*s),d=-l*(.238322+.2188036*s+.0286118*a),p=l*(.1605788+7961e-7*a+-.0571*s),g=1.00384+a*(.0802894+199025e-9*a)+s*(3*(.0998909-.02855*a)-.245516*s),m=d*p-g*h,y=(u*d-c*g)/m,x=(c*p-u*h)/m;n-=y,r-=x}while((i(y)>v||i(x)>v)&&--o>0);return o&&[n,r]};var bn=function(){return e.geoProjection(yn).scale(139.98)};function xn(t,e){return[g(t)/a(e),m(e)*a(t)]}xn.invert=function(t,e){var n=t*t,i=e*e,r=i+1,o=t?_*O((r-O(n*n+2*n*(i-1)+r*r))/n+1):1/O(r);return[E(t*o),f(e)*T(o)]};var wn=function(){return e.geoProjection(xn).scale(144.049).clipAngle(89.999)};function _n(t){var e=a(t),n=m(w+t/2);function r(r,o){var a=o-t,s=i(a)<v?r*e:i(s=w+o/2)<v||i(i(s)-x)<v?0:r*a/c(m(s)/n);return[s,a]}return r.invert=function(r,o){var a,s=o+t;return[i(o)<v?r/e:i(a=w+s/2)<v||i(i(a)-x)<v?0:r*c(m(a)/n)/o,s]},r}var Cn=function(){return ot(_n).parallel(40).scale(158.837)};function An(t,e){return[t,1.25*c(m(w+.4*e))]}An.invert=function(t,e){return[t,2.5*r(s(.8*e))-.625*b]};var In=function(){return e.geoProjection(An).scale(108.318)};function Sn(t){var e=t.length-1;function n(n,i){var r,o=a(i),s=2/(1+o*a(n)),l=s*o*g(n),c=s*g(i),u=e,h=t[u],d=h[0],p=h[1];while(--u>=0)h=t[u],d=h[0]+l*(r=d)-c*p,p=h[1]+l*p+c*r;return d=l*(r=d)-c*p,p=l*p+c*r,[d,p]}return n.invert=function(n,s){var l=20,c=n,u=s;do{var h,d=e,p=t[d],f=p[0],m=p[1],y=0,b=0;while(--d>=0)p=t[d],y=f+c*(h=y)-u*b,b=m+c*b+u*h,f=p[0]+c*(h=f)-u*m,m=p[1]+c*m+u*h;y=f+c*(h=y)-u*b,b=m+c*b+u*h,f=c*(h=f)-u*m-n,m=c*m+u*h-s;var x,w,_=y*y+b*b;c-=x=(f*y+m*b)/_,u-=w=(m*y-f*b)/_}while(i(x)+i(w)>v*v&&--l>0);if(l){var C=O(c*c+u*u),A=2*r(.5*C),I=g(A);return[o(c*I,C*a(A)),C?E(u*I/C):0]}},n}var Mn=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],kn=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],En=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Tn=[[.9245,0],[0,0],[.01943,0]],On=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Pn(){return Bn(Mn,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)}function jn(){return Bn(kn,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Ln(){return Bn(En,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Dn(){return Bn(Tn,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function Rn(){return Bn(On,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Bn(t,n){var i=e.geoProjection(Sn(t)).rotate(n).clipAngle(90),r=e.geoRotation(n),o=i.center;return delete i.rotate,i.center=function(t){return arguments.length?o(r(t)):r.invert(o())},i}var Nn=O(6),Fn=O(7);function zn(t,e){var n=E(7*g(e)/(3*Nn));return[Nn*t*(2*a(2*n/3)-1)/Fn,9*g(n/3)/Fn]}zn.invert=function(t,e){var n=3*E(e*Fn/9);return[t*Fn/(Nn*(2*a(2*n/3)-1)),E(3*g(n)*Nn/7)]};var Vn=function(){return e.geoProjection(zn).scale(164.859)};function Gn(t,e){for(var n,r=(1+_)*g(e),o=e,s=0;s<25;s++)if(o-=n=(g(o/2)+g(o)-r)/(.5*a(o/2)+a(o)),i(n)<v)break;return[t*(1+2*a(o)/a(o/2))/(3*C),2*O(3)*g(o/2)/O(2+C)]}Gn.invert=function(t,e){var n=e*O(2+C)/(2*O(3)),i=2*E(n);return[3*C*t/(1+2*a(i)/a(i/2)),E((n+g(i))/(1+_))]};var Hn=function(){return e.geoProjection(Gn).scale(188.209)};function Wn(t,e){for(var n,r=O(6/(4+b)),o=(1+b/4)*g(e),s=e/2,l=0;l<25;l++)if(s-=n=(s/2+g(s)-o)/(.5+a(s)),i(n)<v)break;return[r*(.5+a(s))*t/1.5,r*s]}Wn.invert=function(t,e){var n=O(6/(4+b)),r=e/n;return i(i(r)-x)<v&&(r=r<0?-x:x),[1.5*t/(n*(.5+a(r))),E((r/2+g(r))/(1+b/4))]};var Un=function(){return e.geoProjection(Wn).scale(166.518)};function Zn(t,e){var n=e*e,i=n*n;return[t*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),e*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}Zn.invert=function(t,e){var n,r=e,o=25;do{var a=r*r,s=a*a;r-=n=(r*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(i(n)>v&&--o>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]};var Yn=function(){return e.geoProjection(Zn).scale(175.295)};function Xn(t,e){var n=e*e,i=n*n,r=n*i;return[t*(.84719-.13063*n+r*r*(.05494*n-.04515-.02326*i+.00331*r)),e*(1.01183+i*i*(.01926*n-.02625-.00396*i))]}Xn.invert=function(t,e){var n,r,o,a,s=e,l=25;do{r=s*s,o=r*r,s-=n=(s*(1.01183+o*o*(.01926*r-.02625-.00396*o))-e)/(1.01183+o*o*(.21186*r-.23625+-.05148*o))}while(i(n)>y&&--l>0);return r=s*s,o=r*r,a=r*o,[t/(.84719-.13063*r+a*a*(.05494*r-.04515-.02326*o+.00331*a)),s]};var qn=function(){return e.geoProjection(Xn).scale(175.295)};function Kn(t,e){return[t*(1+a(e))/2,2*(e-m(e/2))]}Kn.invert=function(t,e){for(var n=e/2,r=0,o=1/0;r<10&&i(o)>v;++r){var s=a(e/2);e-=o=(e-m(e/2)-n)/(1-.5/(s*s))}return[2*t/(1+a(e)),e]};var Qn=function(){return e.geoProjection(Kn).scale(152.63)},Jn=1.0148,$n=.23185,ti=-.14499,ei=.02406,ni=Jn,ii=5*$n,ri=7*ti,oi=9*ei,ai=1.790857183;function si(t,e){var n=e*e;return[t,e*(Jn+n*n*($n+n*(ti+ei*n)))]}si.invert=function(t,e){e>ai?e=ai:e<-ai&&(e=-ai);var n,r=e;do{var o=r*r;r-=n=(r*(Jn+o*o*($n+o*(ti+ei*o)))-e)/(ni+o*o*(ii+o*(ri+oi*o)))}while(i(n)>v);return[t,r]};var li=function(){return e.geoProjection(si).scale(139.319)};function ci(t,e){if(i(e)<v)return[t,0];var n=m(e),r=t*g(e);return[g(r)/n,e+(1-a(r))/n]}ci.invert=function(t,e){if(i(e)<v)return[t,0];var n,r=t*t+e*e,o=.5*e,s=10;do{var l=m(o),c=1/a(o),u=r-2*e*o+o*o;o-=n=(l*u+2*(o-e))/(2+u*c*c+2*(o-e)*l)}while(i(n)>v&&--s>0);return l=m(o),[(i(e)<i(o+1/l)?E(t*l):f(t)*(T(i(t*l))+x))/g(o),o]};var ui=function(){return e.geoProjection(ci).scale(103.74)},hi=function(t,e){var n=fi(t[1],t[0]),i=fi(e[1],e[0]),r=mi(n,i),o=gi(n)/gi(i);return pi([1,0,t[0][0],0,1,t[0][1]],pi([o,0,0,0,o,0],pi([a(r),g(r),0,-g(r),a(r),0],[1,0,-e[0][0],0,1,-e[0][1]])))};function di(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}function pi(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function fi(t,e){return[t[0]-e[0],t[1]-e[1]]}function gi(t){return O(t[0]*t[0]+t[1]*t[1])}function mi(t,e){return o(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}var vi=function(t,n,i){function r(t,e){if(t.edges=wi(t.face),e.face){var n=t.shared=xi(t.face,e.face),i=hi(n.map(e.project),n.map(t.project));t.transform=e.transform?pi(e.transform,i):i;for(var o=e.edges,a=0,s=o.length;a<s;++a)bi(n[0],o[a][1])&&bi(n[1],o[a][0])&&(o[a]=t),bi(n[0],o[a][0])&&bi(n[1],o[a][1])&&(o[a]=t);for(o=t.edges,a=0,s=o.length;a<s;++a)bi(n[0],o[a][0])&&bi(n[1],o[a][1])&&(o[a]=e),bi(n[0],o[a][1])&&bi(n[1],o[a][0])&&(o[a]=e)}else t.transform=e.transform;return t.children&&t.children.forEach((function(e){r(e,t)})),t}function o(t,e){var i,r=n(t,e),o=r.project([t*S,e*S]);return(i=r.transform)?[i[0]*o[0]+i[1]*o[1]+i[2],-(i[3]*o[0]+i[4]*o[1]+i[5])]:(o[1]=-o[1],o)}function s(t,e){var n=t.project.invert,i=t.transform,r=e;if(i&&(i=di(i),r=[i[0]*r[0]+i[1]*r[1]+i[2],i[3]*r[0]+i[4]*r[1]+i[5]]),n&&t===l(o=n(r)))return o;for(var o,a=t.children,c=0,u=a&&a.length;c<u;++c)if(o=s(a[c],e))return o}function l(t){return n(t[0]*M,t[1]*M)}i=null==i?-b/6:i,r(t,{transform:[a(i),g(i),0,-g(i),a(i),0]}),_i(t)&&(o.invert=function(e,n){var i=s(t,[e,-n]);return i&&(i[0]*=M,i[1]*=M,i)});var c=e.geoProjection(o),u=c.stream;return c.stream=function(e){var n=c.rotate(),i=u(e),r=(c.rotate([0,0]),u(e));return c.rotate(n),i.sphere=function(){r.polygonStart(),r.lineStart(),yi(r,t),r.lineEnd(),r.polygonEnd()},i},c};function yi(t,n,r){var o,a,s=n.edges,l=s.length,c={type:"MultiPoint",coordinates:n.face},u=n.face.filter((function(t){return 90!==i(t[1])})),h=e.geoBounds({type:"MultiPoint",coordinates:u}),d=!1,p=-1,f=h[1][0]-h[0][0],g=180===f||360===f?[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]:e.geoCentroid(c);if(r)while(++p<l)if(s[p]===r)break;++p;for(var m=0;m<l;++m)a=s[(m+p)%l],Array.isArray(a)?(d||(t.point((o=e.geoInterpolate(a[0],g)(v))[0],o[1]),d=!0),t.point((o=e.geoInterpolate(a[1],g)(v))[0],o[1])):(d=!1,a!==r&&yi(t,a,n))}function bi(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function xi(t,e){for(var n,i,r=t.length,o=null,a=0;a<r;++a){n=t[a];for(var s=e.length;--s>=0;)if(i=e[s],n[0]===i[0]&&n[1]===i[1]){if(o)return[o,n];o=n}}}function wi(t){for(var e=t.length,n=[],i=t[e-1],r=0;r<e;++r)n.push([i,i=t[r]]);return n}function _i(t){return t.project.invert||t.children&&t.children.some(_i)}var Ci=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Ai=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(t){return t.map((function(t){return Ci[t]}))})),Ii=function(t){t=t||function(t){var n=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=Ai.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var i=n[t];i&&(i.children||(i.children=[])).push(n[e])})),vi(n[0],(function(t,e){return n[t<-b/2?e<0?6:4:t<0?e<0?2:0:t<b/2?e<0?3:1:e<0?7:5]})).scale(101.858).center([0,45])},Si=2/O(3);function Mi(t,e){var n=wt(t,e);return[n[0]*Si,n[1]]}Mi.invert=function(t,e){return wt.invert(t/Si,e)};var ki=function(t){t=t||function(t){var n=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoProjection(Mi).translate([0,0]).scale(1).rotate(n[1]>0?[-n[0],0]:[180-n[0],180])};var n=Ai.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var i=n[t];i&&(i.children||(i.children=[])).push(n[e])})),vi(n[0],(function(t,e){return n[t<-b/2?e<0?6:4:t<0?e<0?2:0:t<b/2?e<0?3:1:e<0?7:5]})).scale(121.906).center([0,48.5904])},Ei=function(t){t=t||function(t){var n=6===t.length?e.geoCentroid({type:"MultiPoint",coordinates:t}):t[0];return e.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=Ai.map((function(t){for(var e,n=t.map(ji),i=n.length,r=n[i-1],o=[],a=0;a<i;++a)e=n[a],o.push(Pi([.9486832980505138*r[0]+.31622776601683794*e[0],.9486832980505138*r[1]+.31622776601683794*e[1],.9486832980505138*r[2]+.31622776601683794*e[2]]),Pi([.9486832980505138*e[0]+.31622776601683794*r[0],.9486832980505138*e[1]+.31622776601683794*r[1],.9486832980505138*e[2]+.31622776601683794*r[2]])),r=e;return o})),i=[],r=[-1,0,0,1,0,1,4,5];n.forEach((function(t,e){for(var o=Ai[e],a=o.length,s=i[e]=[],l=0;l<a;++l)n.push([o[l],t[(2*l+2)%(2*a)],t[(2*l+1)%(2*a)]]),r.push(e),s.push(Oi(ji(t[(2*l+2)%(2*a)]),ji(t[(2*l+1)%(2*a)])))}));var o=n.map((function(e){return{project:t(e),face:e}}));function s(t,e){var n=a(e),r=[n*a(t),n*g(t),g(e)],s=t<-b/2?e<0?6:4:t<0?e<0?2:0:t<b/2?e<0?3:1:e<0?7:5,l=i[s];return o[Ti(l[0],r)<0?8+3*s:Ti(l[1],r)<0?8+3*s+1:Ti(l[2],r)<0?8+3*s+2:s]}return r.forEach((function(t,e){var n=o[t];n&&(n.children||(n.children=[])).push(o[e])})),vi(o[0],s).scale(110.625).center([0,45])};function Ti(t,e){for(var n=0,i=t.length,r=0;n<i;++n)r+=t[n]*e[n];return r}function Oi(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Pi(t){return[o(t[1],t[0])*S,E(u(-1,h(1,t[2])))*S]}function ji(t){var e=t[0]*M,n=t[1]*M,i=a(n);return[i*a(e),i*g(e),g(n)]}var Li=function(){},Di=function(t){if((e=t.length)<4)return!1;var e,n=0,i=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];while(++n<e)i+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return i<=0},Ri=function(t,e){for(var n=e[0],i=e[1],r=!1,o=0,a=t.length,s=a-1;o<a;s=o++){var l=t[o],c=l[0],u=l[1],h=t[s],d=h[0],p=h[1];u>i^p>i&&n<(d-c)*(i-u)/(p-u)+c&&(r=!r)}return r},Bi=function(t,e){var n,i=e.stream;if(!i)throw new Error("invalid projection");switch(t&&t.type){case"Feature":n=Fi;break;case"FeatureCollection":n=Ni;break;default:n=Vi;break}return n(t,i)};function Ni(t,e){return{type:"FeatureCollection",features:t.features.map((function(t){return Fi(t,e)}))}}function Fi(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:Vi(t.geometry,e)}}function zi(t,e){return{type:"GeometryCollection",geometries:t.geometries.map((function(t){return Vi(t,e)}))}}function Vi(t,n){if(!t)return null;if("GeometryCollection"===t.type)return zi(t,n);var i;switch(t.type){case"Point":i=Wi;break;case"MultiPoint":i=Wi;break;case"LineString":i=Ui;break;case"MultiLineString":i=Ui;break;case"Polygon":i=Zi;break;case"MultiPolygon":i=Zi;break;case"Sphere":i=Zi;break;default:return null}return e.geoStream(t,n(i)),i.result()}var Gi=[],Hi=[],Wi={point:function(t,e){Gi.push([t,e])},result:function(){var t=Gi.length?Gi.length<2?{type:"Point",coordinates:Gi[0]}:{type:"MultiPoint",coordinates:Gi}:null;return Gi=[],t}},Ui={lineStart:Li,point:function(t,e){Gi.push([t,e])},lineEnd:function(){Gi.length&&(Hi.push(Gi),Gi=[])},result:function(){var t=Hi.length?Hi.length<2?{type:"LineString",coordinates:Hi[0]}:{type:"MultiLineString",coordinates:Hi}:null;return Hi=[],t}},Zi={polygonStart:Li,lineStart:Li,point:function(t,e){Gi.push([t,e])},lineEnd:function(){var t=Gi.length;if(t){do{Gi.push(Gi[0].slice())}while(++t<4);Hi.push(Gi),Gi=[]}},polygonEnd:Li,result:function(){if(!Hi.length)return null;var t=[],e=[];return Hi.forEach((function(n){Di(n)?t.push([n]):e.push(n)})),e.forEach((function(e){var n=e[0];t.some((function(t){if(Ri(t[0],n))return t.push(e),!0}))||t.push([e])})),Hi=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}},Yi=function(t){var n=t(x,0)[0]-t(-x,0)[0];function r(e,r){var o=i(e)<x,a=t(o?e:e>0?e-b:e+b,r),s=(a[0]-a[1])*_,l=(a[0]+a[1])*_;if(o)return[s,l];var c=n*_,u=s>0^l>0?-1:1;return[u*s-f(l)*c,u*l-f(s)*c]}return t.invert&&(r.invert=function(e,r){var o=(e+r)*_,a=(r-e)*_,s=i(o)<.5*n&&i(a)<.5*n;if(!s){var l=n*_,c=o>0^a>0?-1:1,u=-c*e+(a>0?1:-1)*l,h=-c*r+(o>0?1:-1)*l;o=(-u-h)*_,a=(u-h)*_}var d=t.invert(o,a);return s||(d[0]+=o>0?b:-b),d}),e.geoProjection(r).rotate([-90,-90,45]).clipAngle(179.999)},Xi=function(){return Yi(ve).scale(176.423)},qi=function(){return Yi(Ie).scale(111.48)},Ki=function(t,e){if(!(0<=(e=+e)&&e<=20))throw new Error("invalid digits");function n(t){var n=t.length,i=2,r=new Array(n);r[0]=+t[0].toFixed(e),r[1]=+t[1].toFixed(e);while(i<n)r[i]=t[i],++i;return r}function i(t){return t.map(n)}function r(t){return t.map(i)}function o(t){if(null==t)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(o)};break;case"Point":e={type:"Point",coordinates:n(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:i(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:r(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(r)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function a(t){var e={type:"Feature",properties:t.properties,geometry:o(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case"Feature":return a(t);case"FeatureCollection":var s={type:"FeatureCollection",features:t.features.map(a)};return null!=t.bbox&&(s.bbox=t.bbox),s;default:return o(t)}return t};function Qi(t){var e=g(t);function n(n,i){var o=e?m(n*e/2)/e:n/2;if(!i)return[2*o,-t];var s=2*r(o*g(i)),l=1/m(i);return[g(s)*l,i+(1-a(s))*l-t]}return n.invert=function(n,o){if(i(o+=t)<v)return[e?2*r(e*n/2)/e:n,0];var s,l=n*n+o*o,c=0,u=10;do{var h=m(c),d=1/a(c),p=l-2*o*c+c*c;c-=s=(h*p+2*(c-o))/(2+p*d*d+2*(c-o)*h)}while(i(s)>v&&--u>0);var f=n*(h=m(c)),y=m(i(o)<i(c+1/h)?.5*E(f):.5*T(f)+b/4)/g(c);return[e?2*r(e*y)/e:2*y,c]},n}var Ji=function(){return ot(Qi).scale(131.215)},$i=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function tr(t,e){var n,r=h(18,36*i(e)/b),o=l(r),a=r-o,s=(n=$i[o])[0],c=n[1],u=(n=$i[++o])[0],d=n[1],p=(n=$i[h(19,++o)])[0],f=n[1];return[t*(u+a*(p-s)/2+a*a*(p-2*u+s)/2),(e>0?x:-x)*(d+a*(f-c)/2+a*a*(f-2*d+c)/2)]}$i.forEach((function(t){t[1]*=1.0144})),tr.invert=function(t,e){var n=e/x,r=90*n,o=h(18,i(r/5)),a=u(0,l(o));do{var s=$i[a][1],c=$i[a+1][1],d=$i[h(19,a+2)][1],p=d-s,f=d-2*c+s,g=2*(i(n)-c)/p,m=f/p,v=g*(1-m*g*(1-2*m*g));if(v>=0||1===a){r=(e>=0?5:-5)*(v+o);var b,w=50;do{o=h(18,i(r)/5),a=l(o),v=o-a,s=$i[a][1],c=$i[a+1][1],d=$i[h(19,a+2)][1],r-=(b=(e>=0?x:-x)*(c+v*(d-s)/2+v*v*(d-2*c+s)/2)-e)*S}while(i(b)>y&&--w>0);break}}while(--a>=0);var _=$i[a][0],C=$i[a+1][0],A=$i[h(19,a+2)][0];return[t/(C+v*(A-_)/2+v*v*(A-2*C+_)/2),r*M]};var er=function(){return e.geoProjection(tr).scale(152.63)};function nr(t){function e(e,n){var i=a(n),r=(t-1)/(t-i*a(e));return[r*i*g(e),r*g(n)]}return e.invert=function(e,n){var i=e*e+n*n,r=O(i),a=(t-O(1-i*(t+1)/(t-1)))/((t-1)/r+r/(t-1));return[o(e*a,r*O(1-a*a)),r?E(n*a/r):0]},e}function ir(t,e){var n=nr(t);if(!e)return n;var i=a(e),r=g(e);function o(e,o){var a=n(e,o),s=a[1],l=s*r/(t-1)+i;return[a[0]*i/l,s/l]}return o.invert=function(e,o){var a=(t-1)/(t-1-o*r);return n.invert(a*e,a*o*i)},o}var rr=function(){var t=2,n=0,i=e.geoProjectionMutator(ir),r=i(t,n);return r.distance=function(e){return arguments.length?i(t=+e,n):t},r.tilt=function(e){return arguments.length?i(t,n=e*M):n*S},r.scale(432.147).clipAngle(T(1/t)*S-1e-6)},or=1e-4,ar=1e4,sr=-180,lr=sr+or,cr=180,ur=cr-or,hr=-90,dr=hr+or,pr=90,fr=pr-or;function gr(t){return t.length>0}function mr(t){return Math.floor(t*ar)/ar}function vr(t){return t===hr||t===pr?[0,t]:[sr,mr(t)]}function yr(t){var e=t[0],n=t[1],i=!1;return e<=lr?(e=sr,i=!0):e>=ur&&(e=cr,i=!0),n<=dr?(n=hr,i=!0):n>=fr&&(n=pr,i=!0),i?[e,n]:t}function br(t){return t.map(yr)}function xr(t,e,n){for(var i=0,r=t.length;i<r;++i){var o=t[i].slice();n.push({index:-1,polygon:e,ring:o});for(var a=0,s=o.length;a<s;++a){var l=o[a],c=l[0],u=l[1];if(c<=lr||c>=ur||u<=dr||u>=fr){o[a]=yr(l);for(var h=a+1;h<s;++h){var d=o[h],p=d[0],f=d[1];if(p>lr&&p<ur&&f>dr&&f<fr)break}if(h===a+1)continue;if(a){var g={index:-1,polygon:e,ring:o.slice(0,a+1)};g.ring[g.ring.length-1]=vr(u),n[n.length-1]=g}else n.pop();if(h>=s)break;n.push({index:-1,polygon:e,ring:o=o.slice(h-1)}),o[0]=vr(o[0][1]),a=-1,s=o.length}}}}function wr(t){var e,n,i,r,o,a,s=t.length,l={},c={};for(e=0;e<s;++e)n=t[e],i=n.ring[0],o=n.ring[n.ring.length-1],i[0]!==o[0]||i[1]!==o[1]?(n.index=e,l[i]=c[o]=n):(n.polygon.push(n.ring),t[e]=null);for(e=0;e<s;++e)if(n=t[e],n){if(i=n.ring[0],o=n.ring[n.ring.length-1],r=c[i],a=l[o],delete l[i],delete c[o],i[0]===o[0]&&i[1]===o[1]){n.polygon.push(n.ring);continue}r?(delete c[i],delete l[r.ring[0]],r.ring.pop(),t[r.index]=null,n={index:-1,polygon:r.polygon,ring:r.ring.concat(n.ring)},r===a?n.polygon.push(n.ring):(n.index=s++,t.push(l[n.ring[0]]=c[n.ring[n.ring.length-1]]=n))):a?(delete l[o],delete c[a.ring[a.ring.length-1]],n.ring.pop(),n={index:s++,polygon:a.polygon,ring:n.ring.concat(a.ring)},t[a.index]=null,t.push(l[n.ring[0]]=c[n.ring[n.ring.length-1]]=n)):(n.ring.push(n.ring[0]),n.polygon.push(n.ring))}}function _r(t){var e={type:"Feature",geometry:Cr(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function Cr(t){if(null==t)return t;var e,n,i,r;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(Cr)};break;case"Point":e={type:"Point",coordinates:yr(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:br(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(br)};break;case"Polygon":var o=[];xr(t.coordinates,o,n=[]),wr(n),e={type:"Polygon",coordinates:o};break;case"MultiPolygon":n=[],i=-1,r=t.coordinates.length;var a=new Array(r);while(++i<r)xr(t.coordinates[i],a[i]=[],n);wr(n),e={type:"MultiPolygon",coordinates:a.filter(gr)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}var Ar=function(t){if(null==t)return t;switch(t.type){case"Feature":return _r(t);case"FeatureCollection":var e={type:"FeatureCollection",features:t.features.map(_r)};return null!=t.bbox&&(e.bbox=t.bbox),e;default:return Cr(t)}};function Ir(t,e){var n=m(e/2),i=g(w*n);return[t*(.74482-.34588*i*i),1.70711*n]}Ir.invert=function(t,e){var n=e/1.70711,i=g(w*n);return[t/(.74482-.34588*i*i),2*r(n)]};var Sr=function(){return e.geoProjection(Ir).scale(146.153)},Mr=function(t,n,i){var r=e.geoInterpolate(n,i),o=r(.5),a=e.geoRotation([-o[0],-o[1]])(n),s=r.distance/2,l=-E(g(a[1]*M)/g(s)),c=[-o[0],-o[1],-(a[0]>0?b-l:l)*S],u=e.geoProjection(t(s)).rotate(c),h=e.geoRotation(c),d=u.center;return delete u.rotate,u.center=function(t){return arguments.length?d(h(t)):h.invert(d())},u.clipAngle(90)};function kr(t){var n=a(t);function i(t,i){var r=e.geoGnomonicRaw(t,i);return r[0]*=n,r}return i.invert=function(t,i){return e.geoGnomonicRaw.invert(t/n,i)},i}function Er(){return Tr([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Tr(t,e){return Mr(kr,t,e)}function Or(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var n=-t/2,i=-n,r=t*t,s=m(i),l=.5/g(i);function c(e,o){var s=T(a(o)*a(e-n)),l=T(a(o)*a(e-i)),c=o<0?-1:1;return s*=s,l*=l,[(s-l)/(2*t),c*O(4*r*l-(r-s+l)*(r-s+l))/(2*t)]}return c.invert=function(t,e){var r,c,u=e*e,h=a(O(u+(r=t+n)*r)),d=a(O(u+(r=t+i)*r));return[o(c=h-d,r=(h+d)*s),(e<0?-1:1)*T(O(r*r+c*c)*l)]},c}function Pr(){return jr([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function jr(t,e){return Mr(Or,t,e)}function Lr(t,e){if(i(e)<v)return[t,0];var n=i(e/x),r=E(n);if(i(t)<v||i(i(e)-x)<v)return[0,f(e)*b*m(r/2)];var o=a(r),s=i(b/t-t/b)/2,l=s*s,c=o/(n+o-1),u=c*(2/n-1),h=u*u,d=h+l,p=c-h,g=l+c;return[f(t)*b*(s*p+O(l*p*p-d*(c*c-h)))/d,f(e)*b*(u*g-s*O((l+1)*d-g*g))/d]}Lr.invert=function(t,e){if(i(e)<v)return[t,0];if(i(t)<v)return[0,x*g(2*r(e/b))];var n=(t/=b)*t,o=(e/=b)*e,s=n+o,l=s*s,c=-i(e)*(1+s),u=c-2*o+n,h=-2*c+1+2*o+l,d=o/h+(2*u*u*u/(h*h*h)-9*c*u/(h*h))/27,p=(c-u*u/(3*h))/h,m=2*O(-p/3),y=T(3*d/(p*m))/3;return[b*(s-1+O(1+2*(n-o)+l))/(2*t),f(e)*b*(-m*a(y+b/3)-u/(3*h))]};var Dr=function(){return e.geoProjection(Lr).scale(79.4183)};function Rr(t,e){if(i(e)<v)return[t,0];var n=i(e/x),r=E(n);if(i(t)<v||i(i(e)-x)<v)return[0,f(e)*b*m(r/2)];var o=a(r),s=i(b/t-t/b)/2,l=s*s,c=o*(O(1+l)-s*o)/(1+l*n*n);return[f(t)*b*c,f(e)*b*O(1-c*(2*s+c))]}Rr.invert=function(t,e){if(!t)return[0,x*g(2*r(e/b))];var n=i(t/b),a=(1-n*n-(e/=b)*e)/(2*n),s=a*a,l=O(s+1);return[f(t)*b*(l-a),f(e)*x*g(2*o(O((1-2*a*n)*(a+l)-n),O(l+a+n)))]};var Br=function(){return e.geoProjection(Rr).scale(79.4183)};function Nr(t,e){if(i(e)<v)return[t,0];var n=e/x,r=E(n);if(i(t)<v||i(i(e)-x)<v)return[0,b*m(r/2)];var o=(b/t-t/b)/2,s=n/(1+a(r));return[b*(f(t)*O(o*o+1-s*s)-o),b*s]}Nr.invert=function(t,e){if(!e)return[t,0];var n=e/b,i=(b*b*(1-n*n)-t*t)/(2*b*t);return[t?b*(f(t)*O(i*i+1)-i):0,x*g(2*r(n))]};var Fr=function(){return e.geoProjection(Nr).scale(79.4183)};function zr(t,e){if(!e)return[t,0];var n=i(e);if(!t||n===x)return[0,e];var r=n/x,o=r*r,a=(8*r-o*(o+2)-5)/(2*o*(r-1)),s=a*a,l=r*a,c=o+s+2*l,u=r+3*a,h=t/x,d=h+1/h,p=f(i(t)-x)*O(d*d-4),g=p*p,m=c*(o+s*g-1)+(1-o)*(o*(u*u+4*s)+12*l*s+4*s*s),v=(p*(c+s-1)+2*O(m))/(4*c+g);return[f(t)*x*v,f(e)*x*O(1+p*i(v)-v*v)]}zr.invert=function(t,e){var n;if(!t||!e)return[t,e];e/=b;var r=f(t)*t/x,o=(r*r-1+4*e*e)/i(r),a=o*o,s=2*e,l=50;do{var c=s*s,u=(8*s-c*(c+2)-5)/(2*c*(s-1)),h=(3*s-c*s-10)/(2*c*s),d=u*u,p=s*u,g=s+u,m=g*g,y=s+3*u,w=m*(c+d*a-1)+(1-c)*(c*(y*y+4*d)+d*(12*p+4*d)),_=-2*g*(4*p*d+(1-4*c+3*c*c)*(1+h)+d*(14*c-6-a+(8*c-8-2*a)*h)+p*(12*c-8+(10*c-10-a)*h)),C=O(w),A=o*(m+d-1)+2*C-r*(4*m+a),I=o*(2*u*h+2*g*(1+h))+_/C-8*g*(o*(-1+d+m)+2*C)*(1+h)/(a+4*m);s-=n=A/I}while(n>v&&--l>0);return[f(t)*(O(o*o+4)+o)*b/4,x*s]};var Vr=function(){return e.geoProjection(zr).scale(127.16)},Gr=4*b+3*O(3),Hr=2*O(2*b*O(3)/Gr),Wr=J(Hr*O(3)/b,Hr,Gr/6),Ur=function(){return e.geoProjection(Wr).scale(176.84)};function Zr(t,e){return[t*O(1-3*e*e/(b*b)),e]}Zr.invert=function(t,e){return[t/O(1-3*e*e/(b*b)),e]};var Yr=function(){return e.geoProjection(Zr).scale(152.63)};function Xr(t,e){var n=.90631*g(e),i=O(1-n*n),r=O(2/(1+i*a(t/=3)));return[2.66723*i*r*g(t),1.24104*n*r]}Xr.invert=function(t,e){var n=t/2.66723,i=e/1.24104,r=O(n*n+i*i),a=2*E(r/2);return[3*o(t*m(a),2.66723*r),r&&E(e*g(a)/(1.24104*.90631*r))]};var qr=function(){return e.geoProjection(Xr).scale(172.632)};function Kr(t,e){var n=a(e),i=a(t)*n,r=1-i,s=a(t=o(g(t)*n,-g(e))),l=g(t);return n=O(1-i*i),[l*n-s*r,-s*n-l*r]}Kr.invert=function(t,e){var n=(t*t+e*e)/-2,i=O(-n*(2+n)),r=e*n+t*i,a=t*n-e*i,s=O(a*a+r*r);return[o(i*r,s*(1+n)),s?-E(i*a/s):0]};var Qr=function(){return e.geoProjection(Kr).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)};function Jr(t,e){var n=F(t,e);return[(n[0]+t/x)/2,(n[1]+e)/2]}Jr.invert=function(t,e){var n=t,r=e,o=25;do{var s,l=a(r),c=g(r),u=g(2*r),h=c*c,d=l*l,p=g(n),f=a(n/2),m=g(n/2),y=m*m,b=1-d*f*f,w=b?T(l*f)*O(s=1/b):s=0,_=.5*(2*w*l*m+n/x)-t,C=.5*(w*c+r)-e,A=.5*s*(d*y+w*l*f*h)+.5/x,I=s*(p*u/4-w*c*m),S=.125*s*(u*m-w*c*d*p),M=.5*s*(h*f+w*y*l)+.5,k=I*S-M*A,E=(C*I-_*M)/k,P=(_*S-C*A)/k;n-=E,r-=P}while((i(E)>v||i(P)>v)&&--o>0);return[n,r]};var $r=function(){return e.geoProjection(Jr).scale(158.837)};t.geoAiry=N,t.geoAiryRaw=B,t.geoAitoff=z,t.geoAitoffRaw=F,t.geoArmadillo=G,t.geoArmadilloRaw=V,t.geoAugust=W,t.geoAugustRaw=H,t.geoBaker=X,t.geoBakerRaw=Y,t.geoBerghaus=K,t.geoBerghausRaw=q,t.geoBoggs=rt,t.geoBoggsRaw=it,t.geoBonne=ct,t.geoBonneRaw=lt,t.geoBottomley=ht,t.geoBottomleyRaw=ut,t.geoBromley=pt,t.geoBromleyRaw=dt,t.geoChamberlin=xt,t.geoChamberlinRaw=vt,t.geoChamberlinAfrica=bt,t.geoCollignon=_t,t.geoCollignonRaw=wt,t.geoCraig=At,t.geoCraigRaw=Ct,t.geoCraster=Mt,t.geoCrasterRaw=St,t.geoCylindricalEqualArea=Et,t.geoCylindricalEqualAreaRaw=kt,t.geoCylindricalStereographic=Ot,t.geoCylindricalStereographicRaw=Tt,t.geoEckert1=jt,t.geoEckert1Raw=Pt,t.geoEckert2=Dt,t.geoEckert2Raw=Lt,t.geoEckert3=Bt,t.geoEckert3Raw=Rt,t.geoEckert4=Ft,t.geoEckert4Raw=Nt,t.geoEckert5=Vt,t.geoEckert5Raw=zt,t.geoEckert6=Ht,t.geoEckert6Raw=Gt,t.geoEisenlohr=Zt,t.geoEisenlohrRaw=Ut,t.geoFahey=qt,t.geoFaheyRaw=Xt,t.geoFoucaut=Qt,t.geoFoucautRaw=Kt,t.geoGilbert=te,t.geoGingery=re,t.geoGingeryRaw=ee,t.geoGinzburg4=se,t.geoGinzburg4Raw=ae,t.geoGinzburg5=ce,t.geoGinzburg5Raw=le,t.geoGinzburg6=he,t.geoGinzburg6Raw=ue,t.geoGinzburg8=pe,t.geoGinzburg8Raw=de,t.geoGinzburg9=ge,t.geoGinzburg9Raw=fe,t.geoGringorten=xe,t.geoGringortenRaw=ve,t.geoGuyou=ke,t.geoGuyouRaw=Ie,t.geoHammer=Oe,t.geoHammerRaw=Ee,t.geoHammerRetroazimuthal=Le,t.geoHammerRetroazimuthalRaw=Pe,t.geoHealpix=Fe,t.geoHealpixRaw=Be,t.geoHill=Ve,t.geoHillRaw=ze,t.geoHomolosine=Ye,t.geoHomolosineRaw=Ze,t.geoInterrupt=Qe,t.geoInterruptedBoggs=$e,t.geoInterruptedHomolosine=en,t.geoInterruptedMollweide=rn,t.geoInterruptedMollweideHemispheres=an,t.geoInterruptedSinuMollweide=ln,t.geoInterruptedSinusoidal=un,t.geoKavrayskiy7=dn,t.geoKavrayskiy7Raw=hn,t.geoLagrange=fn,t.geoLagrangeRaw=pn,t.geoLarrivee=vn,t.geoLarriveeRaw=mn,t.geoLaskowski=bn,t.geoLaskowskiRaw=yn,t.geoLittrow=wn,t.geoLittrowRaw=xn,t.geoLoximuthal=Cn,t.geoLoximuthalRaw=_n,t.geoMiller=In,t.geoMillerRaw=An,t.geoModifiedStereographic=Bn,t.geoModifiedStereographicRaw=Sn,t.geoModifiedStereographicAlaska=Pn,t.geoModifiedStereographicGs48=jn,t.geoModifiedStereographicGs50=Ln,t.geoModifiedStereographicMiller=Dn,t.geoModifiedStereographicLee=Rn,t.geoMollweide=tt,t.geoMollweideRaw=$,t.geoMtFlatPolarParabolic=Vn,t.geoMtFlatPolarParabolicRaw=zn,t.geoMtFlatPolarQuartic=Hn,t.geoMtFlatPolarQuarticRaw=Gn,t.geoMtFlatPolarSinusoidal=Un,t.geoMtFlatPolarSinusoidalRaw=Wn,t.geoNaturalEarth=Yn,t.geoNaturalEarthRaw=Zn,t.geoNaturalEarth2=qn,t.geoNaturalEarth2Raw=Xn,t.geoNellHammer=Qn,t.geoNellHammerRaw=Kn,t.geoPatterson=li,t.geoPattersonRaw=si,t.geoPolyconic=ui,t.geoPolyconicRaw=ci,t.geoPolyhedral=vi,t.geoPolyhedralButterfly=Ii,t.geoPolyhedralCollignon=ki,t.geoPolyhedralWaterman=Ei,t.geoProject=Bi,t.geoGringortenQuincuncial=Xi,t.geoPeirceQuincuncial=qi,t.geoPierceQuincuncial=qi,t.geoQuantize=Ki,t.geoQuincuncial=Yi,t.geoRectangularPolyconic=Ji,t.geoRectangularPolyconicRaw=Qi,t.geoRobinson=er,t.geoRobinsonRaw=tr,t.geoSatellite=rr,t.geoSatelliteRaw=ir,t.geoSinuMollweide=Ue,t.geoSinuMollweideRaw=We,t.geoSinusoidal=st,t.geoSinusoidalRaw=at,t.geoStitch=Ar,t.geoTimes=Sr,t.geoTimesRaw=Ir,t.geoTwoPointAzimuthal=Tr,t.geoTwoPointAzimuthalRaw=kr,t.geoTwoPointAzimuthalUsa=Er,t.geoTwoPointEquidistant=jr,t.geoTwoPointEquidistantRaw=Or,t.geoTwoPointEquidistantUsa=Pr,t.geoVanDerGrinten=Dr,t.geoVanDerGrintenRaw=Lr,t.geoVanDerGrinten2=Br,t.geoVanDerGrinten2Raw=Rr,t.geoVanDerGrinten3=Fr,t.geoVanDerGrinten3Raw=Nr,t.geoVanDerGrinten4=Vr,t.geoVanDerGrinten4Raw=zr,t.geoWagner4=Ur,t.geoWagner4Raw=Wr,t.geoWagner6=Yr,t.geoWagner6Raw=Zr,t.geoWagner7=qr,t.geoWagner7Raw=Xr,t.geoWiechel=Qr,t.geoWiechelRaw=Kr,t.geoWinkel3=$r,t.geoWinkel3Raw=Jr,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-geo@1.11.9@d3-geo/dist/d3-geo.js":
/*!***********************************************************!*\
  !*** ./node_modules/_d3-geo@1.11.9@d3-geo/dist/d3-geo.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){(function(t,i){i(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))})(0,(function(t,e){"use strict";function n(){return new i}function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(t){o(r,t,this.t),o(this,r.s,this.s),this.s?this.t+=r.t:this.s=r.t},valueOf:function(){return this.s}};var r=new i;function o(t,e,n){var i=t.s=e+n,r=i-e,o=i-r;t.t=e-o+(n-r)}var a=1e-6,s=1e-12,l=Math.PI,c=l/2,u=l/4,h=2*l,d=180/l,p=l/180,f=Math.abs,g=Math.atan,m=Math.atan2,v=Math.cos,y=Math.ceil,b=Math.exp,x=Math.log,w=Math.pow,_=Math.sin,C=Math.sign||function(t){return t>0?1:t<0?-1:0},A=Math.sqrt,I=Math.tan;function S(t){return t>1?0:t<-1?l:Math.acos(t)}function M(t){return t>1?c:t<-1?-c:Math.asin(t)}function k(t){return(t=_(t/2))*t}function E(){}function T(t,e){t&&P.hasOwnProperty(t.type)&&P[t.type](t,e)}var O={Feature:function(t,e){T(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i<r)T(n[i].geometry,e)}},P={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){j(t.coordinates,e,0)},MultiLineString:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)j(n[i],e,0)},Polygon:function(t,e){L(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)L(n[i],e)},GeometryCollection:function(t,e){var n=t.geometries,i=-1,r=n.length;while(++i<r)T(n[i],e)}};function j(t,e,n){var i,r=-1,o=t.length-n;e.lineStart();while(++r<o)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function L(t,e){var n=-1,i=t.length;e.polygonStart();while(++n<i)j(t[n],e,1);e.polygonEnd()}function D(t,e){t&&O.hasOwnProperty(t.type)?O[t.type](t,e):T(t,e)}var R,B,N,F,z,V=n(),G=n(),H={point:E,lineStart:E,lineEnd:E,polygonStart:function(){V.reset(),H.lineStart=W,H.lineEnd=U},polygonEnd:function(){var t=+V;G.add(t<0?h+t:t),this.lineStart=this.lineEnd=this.point=E},sphere:function(){G.add(h)}};function W(){H.point=Z}function U(){Y(R,B)}function Z(t,e){H.point=Y,R=t,B=e,t*=p,e*=p,N=t,F=v(e=e/2+u),z=_(e)}function Y(t,e){t*=p,e*=p,e=e/2+u;var n=t-N,i=n>=0?1:-1,r=i*n,o=v(e),a=_(e),s=z*a,l=F*o+s*v(r),c=s*i*_(r);V.add(m(c,l)),N=t,F=o,z=a}function X(t){return G.reset(),D(t,H),2*G}function q(t){return[m(t[1],t[0]),M(t[2])]}function K(t){var e=t[0],n=t[1],i=v(n);return[i*v(e),i*_(e),_(n)]}function Q(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function J(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function $(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function tt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function et(t){var e=A(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var nt,it,rt,ot,at,st,lt,ct,ut,ht,dt,pt,ft,gt,mt,vt,yt,bt,xt,wt,_t,Ct,At,It,St,Mt,kt=n(),Et={point:Tt,lineStart:Pt,lineEnd:jt,polygonStart:function(){Et.point=Lt,Et.lineStart=Dt,Et.lineEnd=Rt,kt.reset(),H.polygonStart()},polygonEnd:function(){H.polygonEnd(),Et.point=Tt,Et.lineStart=Pt,Et.lineEnd=jt,V<0?(nt=-(rt=180),it=-(ot=90)):kt>a?ot=90:kt<-a&&(it=-90),ht[0]=nt,ht[1]=rt},sphere:function(){nt=-(rt=180),it=-(ot=90)}};function Tt(t,e){ut.push(ht=[nt=t,rt=t]),e<it&&(it=e),e>ot&&(ot=e)}function Ot(t,e){var n=K([t*p,e*p]);if(ct){var i=J(ct,n),r=[i[1],-i[0],0],o=J(r,i);et(o),o=q(o);var a,s=t-at,l=s>0?1:-1,c=o[0]*d*l,u=f(s)>180;u^(l*at<c&&c<l*t)?(a=o[1]*d,a>ot&&(ot=a)):(c=(c+360)%360-180,u^(l*at<c&&c<l*t)?(a=-o[1]*d,a<it&&(it=a)):(e<it&&(it=e),e>ot&&(ot=e))),u?t<at?Bt(nt,t)>Bt(nt,rt)&&(rt=t):Bt(t,rt)>Bt(nt,rt)&&(nt=t):rt>=nt?(t<nt&&(nt=t),t>rt&&(rt=t)):t>at?Bt(nt,t)>Bt(nt,rt)&&(rt=t):Bt(t,rt)>Bt(nt,rt)&&(nt=t)}else ut.push(ht=[nt=t,rt=t]);e<it&&(it=e),e>ot&&(ot=e),ct=n,at=t}function Pt(){Et.point=Ot}function jt(){ht[0]=nt,ht[1]=rt,Et.point=Tt,ct=null}function Lt(t,e){if(ct){var n=t-at;kt.add(f(n)>180?n+(n>0?360:-360):n)}else st=t,lt=e;H.point(t,e),Ot(t,e)}function Dt(){H.lineStart()}function Rt(){Lt(st,lt),H.lineEnd(),f(kt)>a&&(nt=-(rt=180)),ht[0]=nt,ht[1]=rt,ct=null}function Bt(t,e){return(e-=t)<0?e+360:e}function Nt(t,e){return t[0]-e[0]}function Ft(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function zt(t){var e,n,i,r,o,a,s;if(ot=rt=-(nt=it=1/0),ut=[],D(t,Et),n=ut.length){for(ut.sort(Nt),e=1,i=ut[0],o=[i];e<n;++e)r=ut[e],Ft(i,r[0])||Ft(i,r[1])?(Bt(i[0],r[1])>Bt(i[0],i[1])&&(i[1]=r[1]),Bt(r[0],i[1])>Bt(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,n=o.length-1,e=0,i=o[n];e<=n;i=r,++e)r=o[e],(s=Bt(i[1],r[0]))>a&&(a=s,nt=r[0],rt=i[1])}return ut=ht=null,nt===1/0||it===1/0?[[NaN,NaN],[NaN,NaN]]:[[nt,it],[rt,ot]]}var Vt={sphere:E,point:Gt,lineStart:Wt,lineEnd:Yt,polygonStart:function(){Vt.lineStart=Xt,Vt.lineEnd=qt},polygonEnd:function(){Vt.lineStart=Wt,Vt.lineEnd=Yt}};function Gt(t,e){t*=p,e*=p;var n=v(e);Ht(n*v(t),n*_(t),_(e))}function Ht(t,e,n){++dt,ft+=(t-ft)/dt,gt+=(e-gt)/dt,mt+=(n-mt)/dt}function Wt(){Vt.point=Ut}function Ut(t,e){t*=p,e*=p;var n=v(e);It=n*v(t),St=n*_(t),Mt=_(e),Vt.point=Zt,Ht(It,St,Mt)}function Zt(t,e){t*=p,e*=p;var n=v(e),i=n*v(t),r=n*_(t),o=_(e),a=m(A((a=St*o-Mt*r)*a+(a=Mt*i-It*o)*a+(a=It*r-St*i)*a),It*i+St*r+Mt*o);pt+=a,vt+=a*(It+(It=i)),yt+=a*(St+(St=r)),bt+=a*(Mt+(Mt=o)),Ht(It,St,Mt)}function Yt(){Vt.point=Gt}function Xt(){Vt.point=Kt}function qt(){Qt(Ct,At),Vt.point=Gt}function Kt(t,e){Ct=t,At=e,t*=p,e*=p,Vt.point=Qt;var n=v(e);It=n*v(t),St=n*_(t),Mt=_(e),Ht(It,St,Mt)}function Qt(t,e){t*=p,e*=p;var n=v(e),i=n*v(t),r=n*_(t),o=_(e),a=St*o-Mt*r,s=Mt*i-It*o,l=It*r-St*i,c=A(a*a+s*s+l*l),u=M(c),h=c&&-u/c;xt+=h*a,wt+=h*s,_t+=h*l,pt+=u,vt+=u*(It+(It=i)),yt+=u*(St+(St=r)),bt+=u*(Mt+(Mt=o)),Ht(It,St,Mt)}function Jt(t){dt=pt=ft=gt=mt=vt=yt=bt=xt=wt=_t=0,D(t,Vt);var e=xt,n=wt,i=_t,r=e*e+n*n+i*i;return r<s&&(e=vt,n=yt,i=bt,pt<a&&(e=ft,n=gt,i=mt),r=e*e+n*n+i*i,r<s)?[NaN,NaN]:[m(n,e)*d,M(i/A(r))*d]}function $t(t){return function(){return t}}function te(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return n=e.invert(n,i),n&&t.invert(n[0],n[1])}),n}function ee(t,e){return[f(t)>l?t+Math.round(-t/h)*h:t,e]}function ne(t,e,n){return(t%=h)?e||n?te(re(t),oe(e,n)):re(t):e||n?oe(e,n):ee}function ie(t){return function(e,n){return e+=t,[e>l?e-h:e<-l?e+h:e,n]}}function re(t){var e=ie(t);return e.invert=ie(-t),e}function oe(t,e){var n=v(t),i=_(t),r=v(e),o=_(e);function a(t,e){var a=v(e),s=v(t)*a,l=_(t)*a,c=_(e),u=c*n+s*i;return[m(l*r-u*o,s*n-c*i),M(u*r+l*o)]}return a.invert=function(t,e){var a=v(e),s=v(t)*a,l=_(t)*a,c=_(e),u=c*r-l*o;return[m(l*r+c*o,s*n+u*i),M(u*n-s*i)]},a}function ae(t){function e(e){return e=t(e[0]*p,e[1]*p),e[0]*=d,e[1]*=d,e}return t=ne(t[0]*p,t[1]*p,t.length>2?t[2]*p:0),e.invert=function(e){return e=t.invert(e[0]*p,e[1]*p),e[0]*=d,e[1]*=d,e},e}function se(t,e,n,i,r,o){if(n){var a=v(e),s=_(e),l=i*n;null==r?(r=e+i*h,o=e-l/2):(r=le(a,r),o=le(a,o),(i>0?r<o:r>o)&&(r+=i*h));for(var c,u=r;i>0?u>o:u<o;u-=l)c=q([a,-s*v(u),-s*_(u)]),t.point(c[0],c[1])}}function le(t,e){e=K(e),e[0]-=t,et(e);var n=S(-e[1]);return((-e[2]<0?-n:n)+h-a)%h}function ce(){var t,e,n=$t([0,0]),i=$t(90),r=$t(6),o={point:a};function a(n,i){t.push(n=e(n,i)),n[0]*=d,n[1]*=d}function s(){var a=n.apply(this,arguments),s=i.apply(this,arguments)*p,l=r.apply(this,arguments)*p;return t=[],e=ne(-a[0]*p,-a[1]*p,0).invert,se(o,s,l,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return s.center=function(t){return arguments.length?(n="function"===typeof t?t:$t([+t[0],+t[1]]),s):n},s.radius=function(t){return arguments.length?(i="function"===typeof t?t:$t(+t),s):i},s.precision=function(t){return arguments.length?(r="function"===typeof t?t:$t(+t),s):r},s}function ue(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:E,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function he(t,e){return f(t[0]-e[0])<a&&f(t[1]-e[1])<a}function de(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function pe(t,e,n,i,r){var o,a,s=[],l=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],a=t[e];if(he(i,a)){for(r.lineStart(),o=0;o<e;++o)r.point((i=t[o])[0],i[1]);r.lineEnd()}else s.push(n=new de(i,t,null,!0)),l.push(n.o=new de(i,null,n,!1)),s.push(n=new de(a,t,null,!1)),l.push(n.o=new de(a,null,n,!0))}})),s.length){for(l.sort(e),fe(s),fe(l),o=0,a=l.length;o<a;++o)l[o].e=n=!n;var c,u,h=s[0];while(1){var d=h,p=!0;while(d.v)if((d=d.n)===h)return;c=d.z,r.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(o=0,a=c.length;o<a;++o)r.point((u=c[o])[0],u[1]);else i(d.x,d.n.x,1,r);d=d.n}else{if(p)for(c=d.p.z,o=c.length-1;o>=0;--o)r.point((u=c[o])[0],u[1]);else i(d.x,d.p.x,-1,r);d=d.p}d=d.o,c=d.z,p=!p}while(!d.v);r.lineEnd()}}}function fe(t){if(e=t.length){var e,n,i=0,r=t[0];while(++i<e)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}ee.invert=ee;var ge=n();function me(t){return f(t[0])<=l?t[0]:C(t[0])*((f(t[0])+l)%h-l)}function ve(t,e){var n=me(e),i=e[1],r=_(i),o=[_(n),-v(n),0],s=0,d=0;ge.reset(),1===r?i=c+a:-1===r&&(i=-c-a);for(var p=0,f=t.length;p<f;++p)if(y=(g=t[p]).length)for(var g,y,b=g[y-1],x=me(b),w=b[1]/2+u,C=_(w),A=v(w),I=0;I<y;++I,x=k,C=T,A=O,b=S){var S=g[I],k=me(S),E=S[1]/2+u,T=_(E),O=v(E),P=k-x,j=P>=0?1:-1,L=j*P,D=L>l,R=C*T;if(ge.add(m(R*j*_(L),A*O+R*v(L))),s+=D?P+j*h:P,D^x>=n^k>=n){var B=J(K(b),K(S));et(B);var N=J(o,B);et(N);var F=(D^P>=0?-1:1)*M(N[2]);(i>F||i===F&&(B[0]||B[1]))&&(d+=D^P>=0?1:-1)}}return(s<-a||s<a&&ge<-a)^1&d}function ye(t,n,i,r){return function(o){var a,s,l,c=n(o),u=ue(),h=n(u),d=!1,p={point:f,lineStart:m,lineEnd:v,polygonStart:function(){p.point=y,p.lineStart=b,p.lineEnd=x,s=[],a=[]},polygonEnd:function(){p.point=f,p.lineStart=m,p.lineEnd=v,s=e.merge(s);var t=ve(a,r);s.length?(d||(o.polygonStart(),d=!0),pe(s,xe,t,i,o)):t&&(d||(o.polygonStart(),d=!0),o.lineStart(),i(null,null,1,o),o.lineEnd()),d&&(o.polygonEnd(),d=!1),s=a=null},sphere:function(){o.polygonStart(),o.lineStart(),i(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(e,n){t(e,n)&&o.point(e,n)}function g(t,e){c.point(t,e)}function m(){p.point=g,c.lineStart()}function v(){p.point=f,c.lineEnd()}function y(t,e){l.push([t,e]),h.point(t,e)}function b(){h.lineStart(),l=[]}function x(){y(l[0][0],l[0][1]),h.lineEnd();var t,e,n,i,r=h.clean(),c=u.result(),p=c.length;if(l.pop(),a.push(l),l=null,p)if(1&r){if(n=c[0],(e=n.length-1)>0){for(d||(o.polygonStart(),d=!0),o.lineStart(),t=0;t<e;++t)o.point((i=n[t])[0],i[1]);o.lineEnd()}}else p>1&&2&r&&c.push(c.pop().concat(c.shift())),s.push(c.filter(be))}return p}}function be(t){return t.length>1}function xe(t,e){return((t=t.x)[0]<0?t[1]-c-a:c-t[1])-((e=e.x)[0]<0?e[1]-c-a:c-e[1])}var we=ye((function(){return!0}),_e,Ae,[-l,-c]);function _e(t){var e,n=NaN,i=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var u=o>0?l:-l,h=f(o-n);f(h-l)<a?(t.point(n,i=(i+s)/2>0?c:-c),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(u,i),t.point(o,i),e=0):r!==u&&h>=l&&(f(n-r)<a&&(n-=r*a),f(o-u)<a&&(o-=u*a),i=Ce(n,i,o,s),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(u,i),e=0),t.point(n=o,i=s),r=u},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}}function Ce(t,e,n,i){var r,o,s=_(t-n);return f(s)>a?g((_(e)*(o=v(i))*_(n)-_(i)*(r=v(e))*_(t))/(r*o*s)):(e+i)/2}function Ae(t,e,n,i){var r;if(null==t)r=n*c,i.point(-l,r),i.point(0,r),i.point(l,r),i.point(l,0),i.point(l,-r),i.point(0,-r),i.point(-l,-r),i.point(-l,0),i.point(-l,r);else if(f(t[0]-e[0])>a){var o=t[0]<e[0]?l:-l;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(e[0],e[1])}function Ie(t){var e=v(t),n=6*p,i=e>0,r=f(e)>a;function o(e,i,r,o){se(o,t,n,r,e,i)}function s(t,n){return v(t)*v(n)>e}function c(t){var e,n,o,c,d;return{lineStart:function(){c=o=!1,d=1},point:function(p,f){var g,m=[p,f],v=s(p,f),y=i?v?0:h(p,f):v?h(p+(p<0?l:-l),f):0;if(!e&&(c=o=v)&&t.lineStart(),v!==o&&(g=u(e,m),(!g||he(e,g)||he(m,g))&&(m[0]+=a,m[1]+=a,v=s(m[0],m[1]))),v!==o)d=0,v?(t.lineStart(),g=u(m,e),t.point(g[0],g[1])):(g=u(e,m),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(r&&e&&i^v){var b;y&n||!(b=u(m,e,!0))||(d=0,i?(t.lineStart(),t.point(b[0][0],b[0][1]),t.point(b[1][0],b[1][1]),t.lineEnd()):(t.point(b[1][0],b[1][1]),t.lineEnd(),t.lineStart(),t.point(b[0][0],b[0][1])))}!v||e&&he(e,m)||t.point(m[0],m[1]),e=m,o=v,n=y},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return d|(c&&o)<<1}}}function u(t,n,i){var r=K(t),o=K(n),s=[1,0,0],c=J(r,o),u=Q(c,c),h=c[0],d=u-h*h;if(!d)return!i&&t;var p=e*u/d,g=-e*h/d,m=J(s,c),v=tt(s,p),y=tt(c,g);$(v,y);var b=m,x=Q(v,b),w=Q(b,b),_=x*x-w*(Q(v,v)-1);if(!(_<0)){var C=A(_),I=tt(b,(-x-C)/w);if($(I,v),I=q(I),!i)return I;var S,M=t[0],k=n[0],E=t[1],T=n[1];k<M&&(S=M,M=k,k=S);var O=k-M,P=f(O-l)<a,j=P||O<a;if(!P&&T<E&&(S=E,E=T,T=S),j?P?E+T>0^I[1]<(f(I[0]-M)<a?E:T):E<=I[1]&&I[1]<=T:O>l^(M<=I[0]&&I[0]<=k)){var L=tt(b,(-x+C)/w);return $(L,v),[I,q(L)]}}}function h(e,n){var r=i?t:l-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return ye(s,c,o,i?[0,-t]:[-l,t-l])}function Se(t,e,n,i,r,o){var a,s=t[0],l=t[1],c=e[0],u=e[1],h=0,d=1,p=c-s,f=u-l;if(a=n-s,p||!(a>0)){if(a/=p,p<0){if(a<h)return;a<d&&(d=a)}else if(p>0){if(a>d)return;a>h&&(h=a)}if(a=r-s,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>h&&(h=a)}else if(p>0){if(a<h)return;a<d&&(d=a)}if(a=i-l,f||!(a>0)){if(a/=f,f<0){if(a<h)return;a<d&&(d=a)}else if(f>0){if(a>d)return;a>h&&(h=a)}if(a=o-l,f||!(a<0)){if(a/=f,f<0){if(a>d)return;a>h&&(h=a)}else if(f>0){if(a<h)return;a<d&&(d=a)}return h>0&&(t[0]=s+h*p,t[1]=l+h*f),d<1&&(e[0]=s+d*p,e[1]=l+d*f),!0}}}}}var Me=1e9,ke=-Me;function Ee(t,n,i,r){function o(e,o){return t<=e&&e<=i&&n<=o&&o<=r}function s(e,o,a,s){var c=0,h=0;if(null==e||(c=l(e,a))!==(h=l(o,a))||u(e,o)<0^a>0)do{s.point(0===c||3===c?t:i,c>1?r:n)}while((c=(c+a+4)%4)!==h);else s.point(o[0],o[1])}function l(e,r){return f(e[0]-t)<a?r>0?0:3:f(e[0]-i)<a?r>0?2:1:f(e[1]-n)<a?r>0?1:0:r>0?3:2}function c(t,e){return u(t.x,e.x)}function u(t,e){var n=l(t,1),i=l(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var l,u,h,d,p,f,g,m,v,y,b,x=a,w=ue(),_={point:C,lineStart:M,lineEnd:k,polygonStart:I,polygonEnd:S};function C(t,e){o(t,e)&&x.point(t,e)}function A(){for(var e=0,n=0,i=u.length;n<i;++n)for(var o,a,s=u[n],l=1,c=s.length,h=s[0],d=h[0],p=h[1];l<c;++l)o=d,a=p,h=s[l],d=h[0],p=h[1],a<=r?p>r&&(d-o)*(r-a)>(p-a)*(t-o)&&++e:p<=r&&(d-o)*(r-a)<(p-a)*(t-o)&&--e;return e}function I(){x=w,l=[],u=[],b=!0}function S(){var t=A(),n=b&&t,i=(l=e.merge(l)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),i&&pe(l,c,t,s,a),a.polygonEnd()),x=a,l=u=h=null}function M(){_.point=E,u&&u.push(h=[]),y=!0,v=!1,g=m=NaN}function k(){l&&(E(d,p),f&&v&&w.rejoin(),l.push(w.result())),_.point=C,v&&x.lineEnd()}function E(e,a){var s=o(e,a);if(u&&h.push([e,a]),y)d=e,p=a,f=s,y=!1,s&&(x.lineStart(),x.point(e,a));else if(s&&v)x.point(e,a);else{var l=[g=Math.max(ke,Math.min(Me,g)),m=Math.max(ke,Math.min(Me,m))],c=[e=Math.max(ke,Math.min(Me,e)),a=Math.max(ke,Math.min(Me,a))];Se(l,c,t,n,i,r)?(v||(x.lineStart(),x.point(l[0],l[1])),x.point(c[0],c[1]),s||x.lineEnd(),b=!1):s&&(x.lineStart(),x.point(e,a),b=!1)}g=e,m=a,v=s}return _}}function Te(){var t,e,n,i=0,r=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Ee(i,r,o,a)(e=n)},extent:function(s){return arguments.length?(i=+s[0][0],r=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[i,r],[o,a]]}}}var Oe,Pe,je,Le=n(),De={sphere:E,point:E,lineStart:Re,lineEnd:E,polygonStart:E,polygonEnd:E};function Re(){De.point=Ne,De.lineEnd=Be}function Be(){De.point=De.lineEnd=E}function Ne(t,e){t*=p,e*=p,Oe=t,Pe=_(e),je=v(e),De.point=Fe}function Fe(t,e){t*=p,e*=p;var n=_(e),i=v(e),r=f(t-Oe),o=v(r),a=_(r),s=i*a,l=je*n-Pe*i*o,c=Pe*n+je*i*o;Le.add(m(A(s*s+l*l),c)),Oe=t,Pe=n,je=i}function ze(t){return Le.reset(),D(t,De),+Le}var Ve=[null,null],Ge={type:"LineString",coordinates:Ve};function He(t,e){return Ve[0]=t,Ve[1]=e,ze(Ge)}var We={Feature:function(t,e){return Ze(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i<r)if(Ze(n[i].geometry,e))return!0;return!1}},Ue={Sphere:function(){return!0},Point:function(t,e){return Ye(t.coordinates,e)},MultiPoint:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)if(Ye(n[i],e))return!0;return!1},LineString:function(t,e){return Xe(t.coordinates,e)},MultiLineString:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)if(Xe(n[i],e))return!0;return!1},Polygon:function(t,e){return qe(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)if(qe(n[i],e))return!0;return!1},GeometryCollection:function(t,e){var n=t.geometries,i=-1,r=n.length;while(++i<r)if(Ze(n[i],e))return!0;return!1}};function Ze(t,e){return!(!t||!Ue.hasOwnProperty(t.type))&&Ue[t.type](t,e)}function Ye(t,e){return 0===He(t,e)}function Xe(t,e){for(var n,i,r,o=0,a=t.length;o<a;o++){if(i=He(t[o],e),0===i)return!0;if(o>0&&(r=He(t[o],t[o-1]),r>0&&n<=r&&i<=r&&(n+i-r)*(1-Math.pow((n-i)/r,2))<s*r))return!0;n=i}return!1}function qe(t,e){return!!ve(t.map(Ke),Qe(e))}function Ke(t){return t=t.map(Qe),t.pop(),t}function Qe(t){return[t[0]*p,t[1]*p]}function Je(t,e){return(t&&We.hasOwnProperty(t.type)?We[t.type]:Ze)(t,e)}function $e(t,n,i){var r=e.range(t,n-a,i).concat(n);return function(t){return r.map((function(e){return[t,e]}))}}function tn(t,n,i){var r=e.range(t,n-a,i).concat(n);return function(t){return r.map((function(e){return[e,t]}))}}function en(){var t,n,i,r,o,s,l,c,u,h,d,p,g=10,m=g,v=90,b=360,x=2.5;function w(){return{type:"MultiLineString",coordinates:_()}}function _(){return e.range(y(r/v)*v,i,v).map(d).concat(e.range(y(c/b)*b,l,b).map(p)).concat(e.range(y(n/g)*g,t,g).filter((function(t){return f(t%v)>a})).map(u)).concat(e.range(y(s/m)*m,o,m).filter((function(t){return f(t%b)>a})).map(h))}return w.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},w.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(p(l).slice(1),d(i).reverse().slice(1),p(c).reverse().slice(1))]}},w.extent=function(t){return arguments.length?w.extentMajor(t).extentMinor(t):w.extentMinor()},w.extentMajor=function(t){return arguments.length?(r=+t[0][0],i=+t[1][0],c=+t[0][1],l=+t[1][1],r>i&&(t=r,r=i,i=t),c>l&&(t=c,c=l,l=t),w.precision(x)):[[r,c],[i,l]]},w.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),s>o&&(e=s,s=o,o=e),w.precision(x)):[[n,s],[t,o]]},w.step=function(t){return arguments.length?w.stepMajor(t).stepMinor(t):w.stepMinor()},w.stepMajor=function(t){return arguments.length?(v=+t[0],b=+t[1],w):[v,b]},w.stepMinor=function(t){return arguments.length?(g=+t[0],m=+t[1],w):[g,m]},w.precision=function(e){return arguments.length?(x=+e,u=$e(s,o,90),h=tn(n,t,x),d=$e(c,l,90),p=tn(r,i,x),w):x},w.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}function nn(){return en()()}function rn(t,e){var n=t[0]*p,i=t[1]*p,r=e[0]*p,o=e[1]*p,a=v(i),s=_(i),l=v(o),c=_(o),u=a*v(n),h=a*_(n),f=l*v(r),g=l*_(r),y=2*M(A(k(o-i)+a*l*k(r-n))),b=_(y),x=y?function(t){var e=_(t*=y)/b,n=_(y-t)/b,i=n*u+e*f,r=n*h+e*g,o=n*s+e*c;return[m(r,i)*d,m(o,A(i*i+r*r))*d]}:function(){return[n*d,i*d]};return x.distance=y,x}function on(t){return t}var an,sn,ln,cn,un=n(),hn=n(),dn={point:E,lineStart:E,lineEnd:E,polygonStart:function(){dn.lineStart=pn,dn.lineEnd=mn},polygonEnd:function(){dn.lineStart=dn.lineEnd=dn.point=E,un.add(f(hn)),hn.reset()},result:function(){var t=un/2;return un.reset(),t}};function pn(){dn.point=fn}function fn(t,e){dn.point=gn,an=ln=t,sn=cn=e}function gn(t,e){hn.add(cn*t-ln*e),ln=t,cn=e}function mn(){gn(an,sn)}var vn=1/0,yn=vn,bn=-vn,xn=bn,wn={point:_n,lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E,result:function(){var t=[[vn,yn],[bn,xn]];return bn=xn=-(yn=vn=1/0),t}};function _n(t,e){t<vn&&(vn=t),t>bn&&(bn=t),e<yn&&(yn=e),e>xn&&(xn=e)}var Cn,An,In,Sn,Mn=0,kn=0,En=0,Tn=0,On=0,Pn=0,jn=0,Ln=0,Dn=0,Rn={point:Bn,lineStart:Nn,lineEnd:Vn,polygonStart:function(){Rn.lineStart=Gn,Rn.lineEnd=Hn},polygonEnd:function(){Rn.point=Bn,Rn.lineStart=Nn,Rn.lineEnd=Vn},result:function(){var t=Dn?[jn/Dn,Ln/Dn]:Pn?[Tn/Pn,On/Pn]:En?[Mn/En,kn/En]:[NaN,NaN];return Mn=kn=En=Tn=On=Pn=jn=Ln=Dn=0,t}};function Bn(t,e){Mn+=t,kn+=e,++En}function Nn(){Rn.point=Fn}function Fn(t,e){Rn.point=zn,Bn(In=t,Sn=e)}function zn(t,e){var n=t-In,i=e-Sn,r=A(n*n+i*i);Tn+=r*(In+t)/2,On+=r*(Sn+e)/2,Pn+=r,Bn(In=t,Sn=e)}function Vn(){Rn.point=Bn}function Gn(){Rn.point=Wn}function Hn(){Un(Cn,An)}function Wn(t,e){Rn.point=Un,Bn(Cn=In=t,An=Sn=e)}function Un(t,e){var n=t-In,i=e-Sn,r=A(n*n+i*i);Tn+=r*(In+t)/2,On+=r*(Sn+e)/2,Pn+=r,r=Sn*t-In*e,jn+=r*(In+t),Ln+=r*(Sn+e),Dn+=3*r,Bn(In=t,Sn=e)}function Zn(t){this._context=t}Zn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,h);break}},result:E};var Yn,Xn,qn,Kn,Qn,Jn=n(),$n={point:E,lineStart:function(){$n.point=ti},lineEnd:function(){Yn&&ei(Xn,qn),$n.point=E},polygonStart:function(){Yn=!0},polygonEnd:function(){Yn=null},result:function(){var t=+Jn;return Jn.reset(),t}};function ti(t,e){$n.point=ei,Xn=Kn=t,qn=Qn=e}function ei(t,e){Kn-=t,Qn-=e,Jn.add(A(Kn*Kn+Qn*Qn)),Kn=t,Qn=e}function ni(){this._string=[]}function ii(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ri(t,e){var n,i,r=4.5;function o(t){return t&&("function"===typeof r&&i.pointRadius(+r.apply(this,arguments)),D(t,n(i))),i.result()}return o.area=function(t){return D(t,n(dn)),dn.result()},o.measure=function(t){return D(t,n($n)),$n.result()},o.bounds=function(t){return D(t,n(wn)),wn.result()},o.centroid=function(t){return D(t,n(Rn)),Rn.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,on):(t=e).stream,o):t},o.context=function(t){return arguments.length?(i=null==t?(e=null,new ni):new Zn(e=t),"function"!==typeof r&&i.pointRadius(r),o):e},o.pointRadius=function(t){return arguments.length?(r="function"===typeof t?t:(i.pointRadius(+t),+t),o):r},o.projection(t).context(e)}function oi(t){return{stream:ai(t)}}function ai(t){return function(e){var n=new si;for(var i in t)n[i]=t[i];return n.stream=e,n}}function si(){}function li(t,e,n){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),D(n,t.stream(wn)),e(wn.result()),null!=i&&t.clipExtent(i),t}function ci(t,e,n){return li(t,(function(n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+e[0][0]+(i-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(r-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function ui(t,e,n){return ci(t,[[0,0],e],n)}function hi(t,e,n){return li(t,(function(n){var i=+e,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];t.scale(150*r).translate([o,a])}),n)}function di(t,e,n){return li(t,(function(n){var i=+e,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;t.scale(150*r).translate([o,a])}),n)}ni.prototype={_radius:4.5,_circle:ii(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=ii(this._radius)),this._string.push("M",t,",",e,this._circle);break}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},si.prototype={constructor:si,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var pi=16,fi=v(30*p);function gi(t,e){return+e?vi(t,e):mi(t)}function mi(t){return ai({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function vi(t,e){function n(i,r,o,s,l,c,u,h,d,p,g,v,y,b){var x=u-i,w=h-r,_=x*x+w*w;if(_>4*e&&y--){var C=s+p,I=l+g,S=c+v,k=A(C*C+I*I+S*S),E=M(S/=k),T=f(f(S)-1)<a||f(o-d)<a?(o+d)/2:m(I,C),O=t(T,E),P=O[0],j=O[1],L=P-i,D=j-r,R=w*L-x*D;(R*R/_>e||f((x*L+w*D)/_-.5)>.3||s*p+l*g+c*v<fi)&&(n(i,r,o,s,l,c,P,j,T,C/=k,I/=k,S,y,b),b.point(P,j),n(P,j,T,C,I,S,u,h,d,p,g,v,y,b))}}return function(e){var i,r,o,a,s,l,c,u,h,d,p,f,g={point:m,lineStart:v,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function m(n,i){n=t(n,i),e.point(n[0],n[1])}function v(){u=NaN,g.point=y,e.lineStart()}function y(i,r){var o=K([i,r]),a=t(i,r);n(u,h,c,d,p,f,u=a[0],h=a[1],c=i,d=o[0],p=o[1],f=o[2],pi,e),e.point(u,h)}function b(){g.point=m,e.lineEnd()}function x(){v(),g.point=w,g.lineEnd=_}function w(t,e){y(i=t,e),r=u,o=h,a=d,s=p,l=f,g.point=y}function _(){n(u,h,c,d,p,f,r,o,i,a,s,l,pi,e),g.lineEnd=b,b()}return g}}var yi=ai({point:function(t,e){this.stream.point(t*p,e*p)}});function bi(t){return ai({point:function(e,n){var i=t(e,n);return this.stream.point(i[0],i[1])}})}function xi(t,e,n){function i(i,r){return[e+t*i,n-t*r]}return i.invert=function(i,r){return[(i-e)/t,(n-r)/t]},i}function wi(t,e,n,i){var r=v(i),o=_(i),a=r*t,s=o*t,l=r/t,c=o/t,u=(o*n-r*e)/t,h=(o*e+r*n)/t;function d(t,i){return[a*t-s*i+e,n-s*t-a*i]}return d.invert=function(t,e){return[l*t-c*e+u,h-c*t-l*e]},d}function _i(t){return Ci((function(){return t}))()}function Ci(t){var e,n,i,r,o,a,s,l,c,u,h=150,f=480,g=250,m=0,v=0,y=0,b=0,x=0,w=0,_=null,C=we,I=null,S=on,M=.5;function k(t){return l(t[0]*p,t[1]*p)}function E(t){return t=l.invert(t[0],t[1]),t&&[t[0]*d,t[1]*d]}function T(){var t=wi(h,0,0,w).apply(null,e(m,v)),i=(w?wi:xi)(h,f-t[0],g-t[1],w);return n=ne(y,b,x),s=te(e,i),l=te(n,s),a=gi(s,M),O()}function O(){return c=u=null,k}return k.stream=function(t){return c&&u===t?c:c=yi(bi(n)(C(a(S(u=t)))))},k.preclip=function(t){return arguments.length?(C=t,_=void 0,O()):C},k.postclip=function(t){return arguments.length?(S=t,I=i=r=o=null,O()):S},k.clipAngle=function(t){return arguments.length?(C=+t?Ie(_=t*p):(_=null,we),O()):_*d},k.clipExtent=function(t){return arguments.length?(S=null==t?(I=i=r=o=null,on):Ee(I=+t[0][0],i=+t[0][1],r=+t[1][0],o=+t[1][1]),O()):null==I?null:[[I,i],[r,o]]},k.scale=function(t){return arguments.length?(h=+t,T()):h},k.translate=function(t){return arguments.length?(f=+t[0],g=+t[1],T()):[f,g]},k.center=function(t){return arguments.length?(m=t[0]%360*p,v=t[1]%360*p,T()):[m*d,v*d]},k.rotate=function(t){return arguments.length?(y=t[0]%360*p,b=t[1]%360*p,x=t.length>2?t[2]%360*p:0,T()):[y*d,b*d,x*d]},k.angle=function(t){return arguments.length?(w=t%360*p,T()):w*d},k.precision=function(t){return arguments.length?(a=gi(s,M=t*t),O()):A(M)},k.fitExtent=function(t,e){return ci(k,t,e)},k.fitSize=function(t,e){return ui(k,t,e)},k.fitWidth=function(t,e){return hi(k,t,e)},k.fitHeight=function(t,e){return di(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&E,T()}}function Ai(t){var e=0,n=l/3,i=Ci(t),r=i(e,n);return r.parallels=function(t){return arguments.length?i(e=t[0]*p,n=t[1]*p):[e*d,n*d]},r}function Ii(t){var e=v(t);function n(t,n){return[t*e,_(n)/e]}return n.invert=function(t,n){return[t/e,M(n*e)]},n}function Si(t,e){var n=_(t),i=(n+_(e))/2;if(f(i)<a)return Ii(t);var r=1+n*(2*i-n),o=A(r)/i;function s(t,e){var n=A(r-2*i*_(e))/i;return[n*_(t*=i),o-n*v(t)]}return s.invert=function(t,e){var n=o-e;return[m(t,f(n))/i*C(n),M((r-(t*t+n*n)*i*i)/(2*i))]},s}function Mi(){return Ai(Si).scale(155.424).center([0,33.6442])}function ki(){return Mi().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Ei(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}function Ti(){var t,e,n,i,r,o,s=ki(),l=Mi().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Mi().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){o=[t,e]}};function h(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function d(){return t=e=null,h}return h.invert=function(t){var e=s.scale(),n=s.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?l:r>=.166&&r<.234&&i>=-.214&&i<-.115?c:s).invert(t)},h.stream=function(n){return t&&e===n?t:t=Ei([s.stream(e=n),l.stream(n),c.stream(n)])},h.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),c.precision(t),d()):s.precision()},h.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),c.scale(t),h.translate(s.translate())):s.scale()},h.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),o=+t[0],h=+t[1];return n=s.translate(t).clipExtent([[o-.455*e,h-.238*e],[o+.455*e,h+.238*e]]).stream(u),i=l.translate([o-.307*e,h+.201*e]).clipExtent([[o-.425*e+a,h+.12*e+a],[o-.214*e-a,h+.234*e-a]]).stream(u),r=c.translate([o-.205*e,h+.212*e]).clipExtent([[o-.214*e+a,h+.166*e+a],[o-.115*e-a,h+.234*e-a]]).stream(u),d()},h.fitExtent=function(t,e){return ci(h,t,e)},h.fitSize=function(t,e){return ui(h,t,e)},h.fitWidth=function(t,e){return hi(h,t,e)},h.fitHeight=function(t,e){return di(h,t,e)},h.scale(1070)}function Oi(t){return function(e,n){var i=v(e),r=v(n),o=t(i*r);return[o*r*_(e),o*_(n)]}}function Pi(t){return function(e,n){var i=A(e*e+n*n),r=t(i),o=_(r),a=v(r);return[m(e*o,i*a),M(i&&n*o/i)]}}var ji=Oi((function(t){return A(2/(1+t))}));function Li(){return _i(ji).scale(124.75).clipAngle(179.999)}ji.invert=Pi((function(t){return 2*M(t/2)}));var Di=Oi((function(t){return(t=S(t))&&t/_(t)}));function Ri(){return _i(Di).scale(79.4188).clipAngle(179.999)}function Bi(t,e){return[t,x(I((c+e)/2))]}function Ni(){return Fi(Bi).scale(961/h)}function Fi(t){var e,n,i,r=_i(t),o=r.center,a=r.scale,s=r.translate,c=r.clipExtent,u=null;function h(){var o=l*a(),s=r(ae(r.rotate()).invert([0,0]));return c(null==u?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===Bi?[[Math.max(s[0]-o,u),e],[Math.min(s[0]+o,n),i]]:[[u,Math.max(s[1]-o,e)],[n,Math.min(s[1]+o,i)]])}return r.scale=function(t){return arguments.length?(a(t),h()):a()},r.translate=function(t){return arguments.length?(s(t),h()):s()},r.center=function(t){return arguments.length?(o(t),h()):o()},r.clipExtent=function(t){return arguments.length?(null==t?u=e=n=i=null:(u=+t[0][0],e=+t[0][1],n=+t[1][0],i=+t[1][1]),h()):null==u?null:[[u,e],[n,i]]},h()}function zi(t){return I((c+t)/2)}function Vi(t,e){var n=v(t),i=t===e?_(t):x(n/v(e))/x(zi(e)/zi(t)),r=n*w(zi(t),i)/i;if(!i)return Bi;function o(t,e){r>0?e<-c+a&&(e=-c+a):e>c-a&&(e=c-a);var n=r/w(zi(e),i);return[n*_(i*t),r-n*v(i*t)]}return o.invert=function(t,e){var n=r-e,o=C(i)*A(t*t+n*n);return[m(t,f(n))/i*C(n),2*g(w(r/o,1/i))-c]},o}function Gi(){return Ai(Vi).scale(109.5).parallels([30,30])}function Hi(t,e){return[t,e]}function Wi(){return _i(Hi).scale(152.63)}function Ui(t,e){var n=v(t),i=t===e?_(t):(n-v(e))/(e-t),r=n/i+t;if(f(i)<a)return Hi;function o(t,e){var n=r-e,o=i*t;return[n*_(o),r-n*v(o)]}return o.invert=function(t,e){var n=r-e;return[m(t,f(n))/i*C(n),r-C(i)*A(t*t+n*n)]},o}function Zi(){return Ai(Ui).scale(131.154).center([0,13.9389])}Di.invert=Pi((function(t){return t})),Bi.invert=function(t,e){return[t,2*g(b(e))-c]},Hi.invert=Hi;var Yi=1.340264,Xi=-.081106,qi=893e-6,Ki=.003796,Qi=A(3)/2,Ji=12;function $i(t,e){var n=M(Qi*_(e)),i=n*n,r=i*i*i;return[t*v(n)/(Qi*(Yi+3*Xi*i+r*(7*qi+9*Ki*i))),n*(Yi+Xi*i+r*(qi+Ki*i))]}function tr(){return _i($i).scale(177.158)}function er(t,e){var n=v(e),i=v(t)*n;return[n*_(t)/i,_(e)/i]}function nr(){return _i(er).scale(144.049).clipAngle(60)}function ir(t,e,n,i){return 1===t&&1===e&&0===n&&0===i?on:ai({point:function(r,o){this.stream.point(r*t+n,o*e+i)}})}function rr(){var t,e,n,i,r,o,a=1,s=0,l=0,c=1,u=1,h=on,d=null,p=on;function f(){return i=r=null,o}return o={stream:function(t){return i&&r===t?i:i=h(p(r=t))},postclip:function(i){return arguments.length?(p=i,d=t=e=n=null,f()):p},clipExtent:function(i){return arguments.length?(p=null==i?(d=t=e=n=null,on):Ee(d=+i[0][0],t=+i[0][1],e=+i[1][0],n=+i[1][1]),f()):null==d?null:[[d,t],[e,n]]},scale:function(t){return arguments.length?(h=ir((a=+t)*c,a*u,s,l),f()):a},translate:function(t){return arguments.length?(h=ir(a*c,a*u,s=+t[0],l=+t[1]),f()):[s,l]},reflectX:function(t){return arguments.length?(h=ir(a*(c=t?-1:1),a*u,s,l),f()):c<0},reflectY:function(t){return arguments.length?(h=ir(a*c,a*(u=t?-1:1),s,l),f()):u<0},fitExtent:function(t,e){return ci(o,t,e)},fitSize:function(t,e){return ui(o,t,e)},fitWidth:function(t,e){return hi(o,t,e)},fitHeight:function(t,e){return di(o,t,e)}}}function or(t,e){var n=e*e,i=n*n;return[t*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),e*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}function ar(){return _i(or).scale(175.295)}function sr(t,e){return[v(e)*_(t),_(e)]}function lr(){return _i(sr).scale(249.5).clipAngle(90+a)}function cr(t,e){var n=v(e),i=1+v(t)*n;return[n*_(t)/i,_(e)/i]}function ur(){return _i(cr).scale(250).clipAngle(142)}function hr(t,e){return[x(I((c+e)/2)),-t]}function dr(){var t=Fi(hr),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90]).scale(159.155)}$i.invert=function(t,e){for(var n,i,r,o=e,a=o*o,l=a*a*a,c=0;c<Ji;++c)if(i=o*(Yi+Xi*a+l*(qi+Ki*a))-e,r=Yi+3*Xi*a+l*(7*qi+9*Ki*a),o-=n=i/r,a=o*o,l=a*a*a,f(n)<s)break;return[Qi*t*(Yi+3*Xi*a+l*(7*qi+9*Ki*a))/v(o),M(_(o)/Qi)]},er.invert=Pi(g),or.invert=function(t,e){var n,i=e,r=25;do{var o=i*i,s=o*o;i-=n=(i*(1.007226+o*(.015085+s*(.028874*o-.044475-.005916*s)))-e)/(1.007226+o*(.045255+s*(.259866*o-.311325-.005916*11*s)))}while(f(n)>a&&--r>0);return[t/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]},sr.invert=Pi(M),cr.invert=Pi((function(t){return 2*g(t)})),hr.invert=function(t,e){return[-e,2*g(b(t))-c]},t.geoAlbers=ki,t.geoAlbersUsa=Ti,t.geoArea=X,t.geoAzimuthalEqualArea=Li,t.geoAzimuthalEqualAreaRaw=ji,t.geoAzimuthalEquidistant=Ri,t.geoAzimuthalEquidistantRaw=Di,t.geoBounds=zt,t.geoCentroid=Jt,t.geoCircle=ce,t.geoClipAntimeridian=we,t.geoClipCircle=Ie,t.geoClipExtent=Te,t.geoClipRectangle=Ee,t.geoConicConformal=Gi,t.geoConicConformalRaw=Vi,t.geoConicEqualArea=Mi,t.geoConicEqualAreaRaw=Si,t.geoConicEquidistant=Zi,t.geoConicEquidistantRaw=Ui,t.geoContains=Je,t.geoDistance=He,t.geoEqualEarth=tr,t.geoEqualEarthRaw=$i,t.geoEquirectangular=Wi,t.geoEquirectangularRaw=Hi,t.geoGnomonic=nr,t.geoGnomonicRaw=er,t.geoGraticule=en,t.geoGraticule10=nn,t.geoIdentity=rr,t.geoInterpolate=rn,t.geoLength=ze,t.geoMercator=Ni,t.geoMercatorRaw=Bi,t.geoNaturalEarth1=ar,t.geoNaturalEarth1Raw=or,t.geoOrthographic=lr,t.geoOrthographicRaw=sr,t.geoPath=ri,t.geoProjection=_i,t.geoProjectionMutator=Ci,t.geoRotation=ae,t.geoStereographic=ur,t.geoStereographicRaw=cr,t.geoStream=D,t.geoTransform=oi,t.geoTransverseMercator=dr,t.geoTransverseMercatorRaw=hr,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js":
/*!***********************************************************!*\
  !*** ./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){(function(t,i){i(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))})(0,(function(t,e){"use strict";var n=function(){return new i};function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(t){o(r,t,this.t),o(this,r.s,this.s),this.s?this.t+=r.t:this.s=r.t},valueOf:function(){return this.s}};var r=new i;function o(t,e,n){var i=t.s=e+n,r=i-e,o=i-r;t.t=e-o+(n-r)}var a=1e-6,s=1e-12,l=Math.PI,c=l/2,u=l/4,h=2*l,d=180/l,p=l/180,f=Math.abs,g=Math.atan,m=Math.atan2,v=Math.cos,y=Math.ceil,b=Math.exp,x=Math.log,w=Math.pow,_=Math.sin,C=Math.sign||function(t){return t>0?1:t<0?-1:0},A=Math.sqrt,I=Math.tan;function S(t){return t>1?0:t<-1?l:Math.acos(t)}function M(t){return t>1?c:t<-1?-c:Math.asin(t)}function k(t){return(t=_(t/2))*t}function E(){}function T(t,e){t&&P.hasOwnProperty(t.type)&&P[t.type](t,e)}var O={Feature:function(t,e){T(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i<r)T(n[i].geometry,e)}},P={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){j(t.coordinates,e,0)},MultiLineString:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)j(n[i],e,0)},Polygon:function(t,e){L(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)L(n[i],e)},GeometryCollection:function(t,e){var n=t.geometries,i=-1,r=n.length;while(++i<r)T(n[i],e)}};function j(t,e,n){var i,r=-1,o=t.length-n;e.lineStart();while(++r<o)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function L(t,e){var n=-1,i=t.length;e.polygonStart();while(++n<i)j(t[n],e,1);e.polygonEnd()}var D,R,B,N,F,z=function(t,e){t&&O.hasOwnProperty(t.type)?O[t.type](t,e):T(t,e)},V=n(),G=n(),H={point:E,lineStart:E,lineEnd:E,polygonStart:function(){V.reset(),H.lineStart=W,H.lineEnd=U},polygonEnd:function(){var t=+V;G.add(t<0?h+t:t),this.lineStart=this.lineEnd=this.point=E},sphere:function(){G.add(h)}};function W(){H.point=Z}function U(){Y(D,R)}function Z(t,e){H.point=Y,D=t,R=e,t*=p,e*=p,B=t,N=v(e=e/2+u),F=_(e)}function Y(t,e){t*=p,e*=p,e=e/2+u;var n=t-B,i=n>=0?1:-1,r=i*n,o=v(e),a=_(e),s=F*a,l=N*o+s*v(r),c=s*i*_(r);V.add(m(c,l)),B=t,N=o,F=a}var X,q,K,Q,J,$,tt,et,nt=function(t){return G.reset(),z(t,H),2*G};function it(t){return[m(t[1],t[0]),M(t[2])]}function rt(t){var e=t[0],n=t[1],i=v(n);return[i*v(e),i*_(e),_(n)]}function ot(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function at(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function st(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function lt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ct(t){var e=A(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ut,ht,dt=n(),pt={point:ft,lineStart:mt,lineEnd:vt,polygonStart:function(){pt.point=yt,pt.lineStart=bt,pt.lineEnd=xt,dt.reset(),H.polygonStart()},polygonEnd:function(){H.polygonEnd(),pt.point=ft,pt.lineStart=mt,pt.lineEnd=vt,V<0?(X=-(K=180),q=-(Q=90)):dt>a?Q=90:dt<-a&&(q=-90),ht[0]=X,ht[1]=K}};function ft(t,e){ut.push(ht=[X=t,K=t]),e<q&&(q=e),e>Q&&(Q=e)}function gt(t,e){var n=rt([t*p,e*p]);if(et){var i=at(et,n),r=[i[1],-i[0],0],o=at(r,i);ct(o),o=it(o);var a,s=t-J,l=s>0?1:-1,c=o[0]*d*l,u=f(s)>180;u^(l*J<c&&c<l*t)?(a=o[1]*d,a>Q&&(Q=a)):(c=(c+360)%360-180,u^(l*J<c&&c<l*t)?(a=-o[1]*d,a<q&&(q=a)):(e<q&&(q=e),e>Q&&(Q=e))),u?t<J?wt(X,t)>wt(X,K)&&(K=t):wt(t,K)>wt(X,K)&&(X=t):K>=X?(t<X&&(X=t),t>K&&(K=t)):t>J?wt(X,t)>wt(X,K)&&(K=t):wt(t,K)>wt(X,K)&&(X=t)}else ut.push(ht=[X=t,K=t]);e<q&&(q=e),e>Q&&(Q=e),et=n,J=t}function mt(){pt.point=gt}function vt(){ht[0]=X,ht[1]=K,pt.point=ft,et=null}function yt(t,e){if(et){var n=t-J;dt.add(f(n)>180?n+(n>0?360:-360):n)}else $=t,tt=e;H.point(t,e),gt(t,e)}function bt(){H.lineStart()}function xt(){yt($,tt),H.lineEnd(),f(dt)>a&&(X=-(K=180)),ht[0]=X,ht[1]=K,et=null}function wt(t,e){return(e-=t)<0?e+360:e}function _t(t,e){return t[0]-e[0]}function Ct(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var At,It,St,Mt,kt,Et,Tt,Ot,Pt,jt,Lt,Dt,Rt,Bt,Nt,Ft,zt=function(t){var e,n,i,r,o,a,s;if(Q=K=-(X=q=1/0),ut=[],z(t,pt),n=ut.length){for(ut.sort(_t),e=1,i=ut[0],o=[i];e<n;++e)r=ut[e],Ct(i,r[0])||Ct(i,r[1])?(wt(i[0],r[1])>wt(i[0],i[1])&&(i[1]=r[1]),wt(r[0],i[1])>wt(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,n=o.length-1,e=0,i=o[n];e<=n;i=r,++e)r=o[e],(s=wt(i[1],r[0]))>a&&(a=s,X=r[0],K=i[1])}return ut=ht=null,X===1/0||q===1/0?[[NaN,NaN],[NaN,NaN]]:[[X,q],[K,Q]]},Vt={sphere:E,point:Gt,lineStart:Wt,lineEnd:Yt,polygonStart:function(){Vt.lineStart=Xt,Vt.lineEnd=qt},polygonEnd:function(){Vt.lineStart=Wt,Vt.lineEnd=Yt}};function Gt(t,e){t*=p,e*=p;var n=v(e);Ht(n*v(t),n*_(t),_(e))}function Ht(t,e,n){++At,St+=(t-St)/At,Mt+=(e-Mt)/At,kt+=(n-kt)/At}function Wt(){Vt.point=Ut}function Ut(t,e){t*=p,e*=p;var n=v(e);Bt=n*v(t),Nt=n*_(t),Ft=_(e),Vt.point=Zt,Ht(Bt,Nt,Ft)}function Zt(t,e){t*=p,e*=p;var n=v(e),i=n*v(t),r=n*_(t),o=_(e),a=m(A((a=Nt*o-Ft*r)*a+(a=Ft*i-Bt*o)*a+(a=Bt*r-Nt*i)*a),Bt*i+Nt*r+Ft*o);It+=a,Et+=a*(Bt+(Bt=i)),Tt+=a*(Nt+(Nt=r)),Ot+=a*(Ft+(Ft=o)),Ht(Bt,Nt,Ft)}function Yt(){Vt.point=Gt}function Xt(){Vt.point=Kt}function qt(){Qt(Dt,Rt),Vt.point=Gt}function Kt(t,e){Dt=t,Rt=e,t*=p,e*=p,Vt.point=Qt;var n=v(e);Bt=n*v(t),Nt=n*_(t),Ft=_(e),Ht(Bt,Nt,Ft)}function Qt(t,e){t*=p,e*=p;var n=v(e),i=n*v(t),r=n*_(t),o=_(e),a=Nt*o-Ft*r,s=Ft*i-Bt*o,l=Bt*r-Nt*i,c=A(a*a+s*s+l*l),u=M(c),h=c&&-u/c;Pt+=h*a,jt+=h*s,Lt+=h*l,It+=u,Et+=u*(Bt+(Bt=i)),Tt+=u*(Nt+(Nt=r)),Ot+=u*(Ft+(Ft=o)),Ht(Bt,Nt,Ft)}var Jt=function(t){At=It=St=Mt=kt=Et=Tt=Ot=Pt=jt=Lt=0,z(t,Vt);var e=Pt,n=jt,i=Lt,r=e*e+n*n+i*i;return r<s&&(e=Et,n=Tt,i=Ot,It<a&&(e=St,n=Mt,i=kt),r=e*e+n*n+i*i,r<s)?[NaN,NaN]:[m(n,e)*d,M(i/A(r))*d]},$t=function(t){return function(){return t}},te=function(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return n=e.invert(n,i),n&&t.invert(n[0],n[1])}),n};function ee(t,e){return[t>l?t-h:t<-l?t+h:t,e]}function ne(t,e,n){return(t%=h)?e||n?te(re(t),oe(e,n)):re(t):e||n?oe(e,n):ee}function ie(t){return function(e,n){return e+=t,[e>l?e-h:e<-l?e+h:e,n]}}function re(t){var e=ie(t);return e.invert=ie(-t),e}function oe(t,e){var n=v(t),i=_(t),r=v(e),o=_(e);function a(t,e){var a=v(e),s=v(t)*a,l=_(t)*a,c=_(e),u=c*n+s*i;return[m(l*r-u*o,s*n-c*i),M(u*r+l*o)]}return a.invert=function(t,e){var a=v(e),s=v(t)*a,l=_(t)*a,c=_(e),u=c*r-l*o;return[m(l*r+c*o,s*n+u*i),M(u*n-s*i)]},a}ee.invert=ee;var ae=function(t){function e(e){return e=t(e[0]*p,e[1]*p),e[0]*=d,e[1]*=d,e}return t=ne(t[0]*p,t[1]*p,t.length>2?t[2]*p:0),e.invert=function(e){return e=t.invert(e[0]*p,e[1]*p),e[0]*=d,e[1]*=d,e},e};function se(t,e,n,i,r,o){if(n){var a=v(e),s=_(e),l=i*n;null==r?(r=e+i*h,o=e-l/2):(r=le(a,r),o=le(a,o),(i>0?r<o:r>o)&&(r+=i*h));for(var c,u=r;i>0?u>o:u<o;u-=l)c=it([a,-s*v(u),-s*_(u)]),t.point(c[0],c[1])}}function le(t,e){e=rt(e),e[0]-=t,ct(e);var n=S(-e[1]);return((-e[2]<0?-n:n)+h-a)%h}var ce=function(){var t,e,n=$t([0,0]),i=$t(90),r=$t(6),o={point:a};function a(n,i){t.push(n=e(n,i)),n[0]*=d,n[1]*=d}function s(){var a=n.apply(this,arguments),s=i.apply(this,arguments)*p,l=r.apply(this,arguments)*p;return t=[],e=ne(-a[0]*p,-a[1]*p,0).invert,se(o,s,l,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return s.center=function(t){return arguments.length?(n="function"===typeof t?t:$t([+t[0],+t[1]]),s):n},s.radius=function(t){return arguments.length?(i="function"===typeof t?t:$t(+t),s):i},s.precision=function(t){return arguments.length?(r="function"===typeof t?t:$t(+t),s):r},s},ue=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:E,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},he=function(t,e,n,i,r,o){var a,s=t[0],l=t[1],c=e[0],u=e[1],h=0,d=1,p=c-s,f=u-l;if(a=n-s,p||!(a>0)){if(a/=p,p<0){if(a<h)return;a<d&&(d=a)}else if(p>0){if(a>d)return;a>h&&(h=a)}if(a=r-s,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>h&&(h=a)}else if(p>0){if(a<h)return;a<d&&(d=a)}if(a=i-l,f||!(a>0)){if(a/=f,f<0){if(a<h)return;a<d&&(d=a)}else if(f>0){if(a>d)return;a>h&&(h=a)}if(a=o-l,f||!(a<0)){if(a/=f,f<0){if(a>d)return;a>h&&(h=a)}else if(f>0){if(a<h)return;a<d&&(d=a)}return h>0&&(t[0]=s+h*p,t[1]=l+h*f),d<1&&(e[0]=s+d*p,e[1]=l+d*f),!0}}}}},de=function(t,e){return f(t[0]-e[0])<a&&f(t[1]-e[1])<a};function pe(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}var fe=function(t,e,n,i,r){var o,a,s=[],l=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],a=t[e];if(de(i,a)){for(r.lineStart(),o=0;o<e;++o)r.point((i=t[o])[0],i[1]);r.lineEnd()}else s.push(n=new pe(i,t,null,!0)),l.push(n.o=new pe(i,null,n,!1)),s.push(n=new pe(a,t,null,!1)),l.push(n.o=new pe(a,null,n,!0))}})),s.length){for(l.sort(e),ge(s),ge(l),o=0,a=l.length;o<a;++o)l[o].e=n=!n;var c,u,h=s[0];while(1){var d=h,p=!0;while(d.v)if((d=d.n)===h)return;c=d.z,r.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(o=0,a=c.length;o<a;++o)r.point((u=c[o])[0],u[1]);else i(d.x,d.n.x,1,r);d=d.n}else{if(p)for(c=d.p.z,o=c.length-1;o>=0;--o)r.point((u=c[o])[0],u[1]);else i(d.x,d.p.x,-1,r);d=d.p}d=d.o,c=d.z,p=!p}while(!d.v);r.lineEnd()}}};function ge(t){if(e=t.length){var e,n,i=0,r=t[0];while(++i<e)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}var me=1e9,ve=-me;function ye(t,n,i,r){function o(e,o){return t<=e&&e<=i&&n<=o&&o<=r}function s(e,o,a,s){var c=0,h=0;if(null==e||(c=l(e,a))!==(h=l(o,a))||u(e,o)<0^a>0)do{s.point(0===c||3===c?t:i,c>1?r:n)}while((c=(c+a+4)%4)!==h);else s.point(o[0],o[1])}function l(e,r){return f(e[0]-t)<a?r>0?0:3:f(e[0]-i)<a?r>0?2:1:f(e[1]-n)<a?r>0?1:0:r>0?3:2}function c(t,e){return u(t.x,e.x)}function u(t,e){var n=l(t,1),i=l(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var l,u,h,d,p,f,g,m,v,y,b,x=a,w=ue(),_={point:C,lineStart:M,lineEnd:k,polygonStart:I,polygonEnd:S};function C(t,e){o(t,e)&&x.point(t,e)}function A(){for(var e=0,n=0,i=u.length;n<i;++n)for(var o,a,s=u[n],l=1,c=s.length,h=s[0],d=h[0],p=h[1];l<c;++l)o=d,a=p,h=s[l],d=h[0],p=h[1],a<=r?p>r&&(d-o)*(r-a)>(p-a)*(t-o)&&++e:p<=r&&(d-o)*(r-a)<(p-a)*(t-o)&&--e;return e}function I(){x=w,l=[],u=[],b=!0}function S(){var t=A(),n=b&&t,i=(l=e.merge(l)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),i&&fe(l,c,t,s,a),a.polygonEnd()),x=a,l=u=h=null}function M(){_.point=E,u&&u.push(h=[]),y=!0,v=!1,g=m=NaN}function k(){l&&(E(d,p),f&&v&&w.rejoin(),l.push(w.result())),_.point=C,v&&x.lineEnd()}function E(e,a){var s=o(e,a);if(u&&h.push([e,a]),y)d=e,p=a,f=s,y=!1,s&&(x.lineStart(),x.point(e,a));else if(s&&v)x.point(e,a);else{var l=[g=Math.max(ve,Math.min(me,g)),m=Math.max(ve,Math.min(me,m))],c=[e=Math.max(ve,Math.min(me,e)),a=Math.max(ve,Math.min(me,a))];he(l,c,t,n,i,r)?(v||(x.lineStart(),x.point(l[0],l[1])),x.point(c[0],c[1]),s||x.lineEnd(),b=!1):s&&(x.lineStart(),x.point(e,a),b=!1)}g=e,m=a,v=s}return _}}var be,xe,we,_e=function(){var t,e,n,i=0,r=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=ye(i,r,o,a)(e=n)},extent:function(s){return arguments.length?(i=+s[0][0],r=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[i,r],[o,a]]}}},Ce=n(),Ae=function(t,e){var n=e[0],i=e[1],r=[_(n),-v(n),0],o=0,s=0;Ce.reset();for(var c=0,d=t.length;c<d;++c)if(f=(p=t[c]).length)for(var p,f,g=p[f-1],y=g[0],b=g[1]/2+u,x=_(b),w=v(b),C=0;C<f;++C,y=I,x=k,w=E,g=A){var A=p[C],I=A[0],S=A[1]/2+u,k=_(S),E=v(S),T=I-y,O=T>=0?1:-1,P=O*T,j=P>l,L=x*k;if(Ce.add(m(L*O*_(P),w*E+L*v(P))),o+=j?T+O*h:T,j^y>=n^I>=n){var D=at(rt(g),rt(A));ct(D);var R=at(r,D);ct(R);var B=(j^T>=0?-1:1)*M(R[2]);(i>B||i===B&&(D[0]||D[1]))&&(s+=j^T>=0?1:-1)}}return(o<-a||o<a&&Ce<-a)^1&s},Ie=n(),Se={sphere:E,point:E,lineStart:Me,lineEnd:E,polygonStart:E,polygonEnd:E};function Me(){Se.point=Ee,Se.lineEnd=ke}function ke(){Se.point=Se.lineEnd=E}function Ee(t,e){t*=p,e*=p,be=t,xe=_(e),we=v(e),Se.point=Te}function Te(t,e){t*=p,e*=p;var n=_(e),i=v(e),r=f(t-be),o=v(r),a=_(r),s=i*a,l=we*n-xe*i*o,c=xe*n+we*i*o;Ie.add(m(A(s*s+l*l),c)),be=t,xe=n,we=i}var Oe=function(t){return Ie.reset(),z(t,Se),+Ie},Pe=[null,null],je={type:"LineString",coordinates:Pe},Le=function(t,e){return Pe[0]=t,Pe[1]=e,Oe(je)},De={Feature:function(t,e){return Be(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i<r)if(Be(n[i].geometry,e))return!0;return!1}},Re={Sphere:function(){return!0},Point:function(t,e){return Ne(t.coordinates,e)},MultiPoint:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)if(Ne(n[i],e))return!0;return!1},LineString:function(t,e){return Fe(t.coordinates,e)},MultiLineString:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)if(Fe(n[i],e))return!0;return!1},Polygon:function(t,e){return ze(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)if(ze(n[i],e))return!0;return!1},GeometryCollection:function(t,e){var n=t.geometries,i=-1,r=n.length;while(++i<r)if(Be(n[i],e))return!0;return!1}};function Be(t,e){return!(!t||!Re.hasOwnProperty(t.type))&&Re[t.type](t,e)}function Ne(t,e){return 0===Le(t,e)}function Fe(t,e){var n=Le(t[0],t[1]),i=Le(t[0],e),r=Le(e,t[1]);return i+r<=n+a}function ze(t,e){return!!Ae(t.map(Ve),Ge(e))}function Ve(t){return t=t.map(Ge),t.pop(),t}function Ge(t){return[t[0]*p,t[1]*p]}var He=function(t,e){return(t&&De.hasOwnProperty(t.type)?De[t.type]:Be)(t,e)};function We(t,n,i){var r=e.range(t,n-a,i).concat(n);return function(t){return r.map((function(e){return[t,e]}))}}function Ue(t,n,i){var r=e.range(t,n-a,i).concat(n);return function(t){return r.map((function(e){return[e,t]}))}}function Ze(){var t,n,i,r,o,s,l,c,u,h,d,p,g=10,m=g,v=90,b=360,x=2.5;function w(){return{type:"MultiLineString",coordinates:_()}}function _(){return e.range(y(r/v)*v,i,v).map(d).concat(e.range(y(c/b)*b,l,b).map(p)).concat(e.range(y(n/g)*g,t,g).filter((function(t){return f(t%v)>a})).map(u)).concat(e.range(y(s/m)*m,o,m).filter((function(t){return f(t%b)>a})).map(h))}return w.lines=function(){return _().map((function(t){return{type:"LineString",coordinates:t}}))},w.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(p(l).slice(1),d(i).reverse().slice(1),p(c).reverse().slice(1))]}},w.extent=function(t){return arguments.length?w.extentMajor(t).extentMinor(t):w.extentMinor()},w.extentMajor=function(t){return arguments.length?(r=+t[0][0],i=+t[1][0],c=+t[0][1],l=+t[1][1],r>i&&(t=r,r=i,i=t),c>l&&(t=c,c=l,l=t),w.precision(x)):[[r,c],[i,l]]},w.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),s>o&&(e=s,s=o,o=e),w.precision(x)):[[n,s],[t,o]]},w.step=function(t){return arguments.length?w.stepMajor(t).stepMinor(t):w.stepMinor()},w.stepMajor=function(t){return arguments.length?(v=+t[0],b=+t[1],w):[v,b]},w.stepMinor=function(t){return arguments.length?(g=+t[0],m=+t[1],w):[g,m]},w.precision=function(e){return arguments.length?(x=+e,u=We(s,o,90),h=Ue(n,t,x),d=We(c,l,90),p=Ue(r,i,x),w):x},w.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}function Ye(){return Ze()()}var Xe,qe,Ke,Qe,Je=function(t,e){var n=t[0]*p,i=t[1]*p,r=e[0]*p,o=e[1]*p,a=v(i),s=_(i),l=v(o),c=_(o),u=a*v(n),h=a*_(n),f=l*v(r),g=l*_(r),y=2*M(A(k(o-i)+a*l*k(r-n))),b=_(y),x=y?function(t){var e=_(t*=y)/b,n=_(y-t)/b,i=n*u+e*f,r=n*h+e*g,o=n*s+e*c;return[m(r,i)*d,m(o,A(i*i+r*r))*d]}:function(){return[n*d,i*d]};return x.distance=y,x},$e=function(t){return t},tn=n(),en=n(),nn={point:E,lineStart:E,lineEnd:E,polygonStart:function(){nn.lineStart=rn,nn.lineEnd=sn},polygonEnd:function(){nn.lineStart=nn.lineEnd=nn.point=E,tn.add(f(en)),en.reset()},result:function(){var t=tn/2;return tn.reset(),t}};function rn(){nn.point=on}function on(t,e){nn.point=an,Xe=Ke=t,qe=Qe=e}function an(t,e){en.add(Qe*t-Ke*e),Ke=t,Qe=e}function sn(){an(Xe,qe)}var ln=1/0,cn=ln,un=-ln,hn=un,dn={point:pn,lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E,result:function(){var t=[[ln,cn],[un,hn]];return un=hn=-(cn=ln=1/0),t}};function pn(t,e){t<ln&&(ln=t),t>un&&(un=t),e<cn&&(cn=e),e>hn&&(hn=e)}var fn,gn,mn,vn,yn=0,bn=0,xn=0,wn=0,_n=0,Cn=0,An=0,In=0,Sn=0,Mn={point:kn,lineStart:En,lineEnd:Pn,polygonStart:function(){Mn.lineStart=jn,Mn.lineEnd=Ln},polygonEnd:function(){Mn.point=kn,Mn.lineStart=En,Mn.lineEnd=Pn},result:function(){var t=Sn?[An/Sn,In/Sn]:Cn?[wn/Cn,_n/Cn]:xn?[yn/xn,bn/xn]:[NaN,NaN];return yn=bn=xn=wn=_n=Cn=An=In=Sn=0,t}};function kn(t,e){yn+=t,bn+=e,++xn}function En(){Mn.point=Tn}function Tn(t,e){Mn.point=On,kn(mn=t,vn=e)}function On(t,e){var n=t-mn,i=e-vn,r=A(n*n+i*i);wn+=r*(mn+t)/2,_n+=r*(vn+e)/2,Cn+=r,kn(mn=t,vn=e)}function Pn(){Mn.point=kn}function jn(){Mn.point=Dn}function Ln(){Rn(fn,gn)}function Dn(t,e){Mn.point=Rn,kn(fn=mn=t,gn=vn=e)}function Rn(t,e){var n=t-mn,i=e-vn,r=A(n*n+i*i);wn+=r*(mn+t)/2,_n+=r*(vn+e)/2,Cn+=r,r=vn*t-mn*e,An+=r*(mn+t),In+=r*(vn+e),Sn+=3*r,kn(mn=t,vn=e)}function Bn(t){this._context=t}Bn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,h);break}},result:E};var Nn,Fn,zn,Vn,Gn,Hn=n(),Wn={point:E,lineStart:function(){Wn.point=Un},lineEnd:function(){Nn&&Zn(Fn,zn),Wn.point=E},polygonStart:function(){Nn=!0},polygonEnd:function(){Nn=null},result:function(){var t=+Hn;return Hn.reset(),t}};function Un(t,e){Wn.point=Zn,Fn=Vn=t,zn=Gn=e}function Zn(t,e){Vn-=t,Gn-=e,Hn.add(A(Vn*Vn+Gn*Gn)),Vn=t,Gn=e}function Yn(){this._string=[]}function Xn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Yn.prototype={_radius:4.5,_circle:Xn(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Xn(this._radius)),this._string.push("M",t,",",e,this._circle);break}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var qn=function(t,e){var n,i,r=4.5;function o(t){return t&&("function"===typeof r&&i.pointRadius(+r.apply(this,arguments)),z(t,n(i))),i.result()}return o.area=function(t){return z(t,n(nn)),nn.result()},o.measure=function(t){return z(t,n(Wn)),Wn.result()},o.bounds=function(t){return z(t,n(dn)),dn.result()},o.centroid=function(t){return z(t,n(Mn)),Mn.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,$e):(t=e).stream,o):t},o.context=function(t){return arguments.length?(i=null==t?(e=null,new Yn):new Bn(e=t),"function"!==typeof r&&i.pointRadius(r),o):e},o.pointRadius=function(t){return arguments.length?(r="function"===typeof t?t:(i.pointRadius(+t),+t),o):r},o.projection(t).context(e)},Kn=function(t,n,i,r){return function(o,a){var s,l,c,u=n(a),h=o.invert(r[0],r[1]),d=ue(),p=n(d),f=!1,g={point:m,lineStart:y,lineEnd:b,polygonStart:function(){g.point=x,g.lineStart=w,g.lineEnd=_,l=[],s=[]},polygonEnd:function(){g.point=m,g.lineStart=y,g.lineEnd=b,l=e.merge(l);var t=Ae(s,h);l.length?(f||(a.polygonStart(),f=!0),fe(l,Jn,t,i,a)):t&&(f||(a.polygonStart(),f=!0),a.lineStart(),i(null,null,1,a),a.lineEnd()),f&&(a.polygonEnd(),f=!1),l=s=null},sphere:function(){a.polygonStart(),a.lineStart(),i(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function m(e,n){var i=o(e,n);t(e=i[0],n=i[1])&&a.point(e,n)}function v(t,e){var n=o(t,e);u.point(n[0],n[1])}function y(){g.point=v,u.lineStart()}function b(){g.point=m,u.lineEnd()}function x(t,e){c.push([t,e]);var n=o(t,e);p.point(n[0],n[1])}function w(){p.lineStart(),c=[]}function _(){x(c[0][0],c[0][1]),p.lineEnd();var t,e,n,i,r=p.clean(),o=d.result(),u=o.length;if(c.pop(),s.push(c),c=null,u)if(1&r){if(n=o[0],(e=n.length-1)>0){for(f||(a.polygonStart(),f=!0),a.lineStart(),t=0;t<e;++t)a.point((i=n[t])[0],i[1]);a.lineEnd()}}else u>1&&2&r&&o.push(o.pop().concat(o.shift())),l.push(o.filter(Qn))}return g}};function Qn(t){return t.length>1}function Jn(t,e){return((t=t.x)[0]<0?t[1]-c-a:c-t[1])-((e=e.x)[0]<0?e[1]-c-a:c-e[1])}var $n=Kn((function(){return!0}),ti,ni,[-l,-c]);function ti(t){var e,n=NaN,i=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,s){var u=o>0?l:-l,h=f(o-n);f(h-l)<a?(t.point(n,i=(i+s)/2>0?c:-c),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(u,i),t.point(o,i),e=0):r!==u&&h>=l&&(f(n-r)<a&&(n-=r*a),f(o-u)<a&&(o-=u*a),i=ei(n,i,o,s),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(u,i),e=0),t.point(n=o,i=s),r=u},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}}function ei(t,e,n,i){var r,o,s=_(t-n);return f(s)>a?g((_(e)*(o=v(i))*_(n)-_(i)*(r=v(e))*_(t))/(r*o*s)):(e+i)/2}function ni(t,e,n,i){var r;if(null==t)r=n*c,i.point(-l,r),i.point(0,r),i.point(l,r),i.point(l,0),i.point(l,-r),i.point(0,-r),i.point(-l,-r),i.point(-l,0),i.point(-l,r);else if(f(t[0]-e[0])>a){var o=t[0]<e[0]?l:-l;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(e[0],e[1])}var ii=function(t,e){var n=v(t),i=n>0,r=f(n)>a;function o(n,i,r,o){se(o,t,e,r,n,i)}function s(t,e){return v(t)*v(e)>n}function c(t){var e,n,o,c,d;return{lineStart:function(){c=o=!1,d=1},point:function(p,f){var g,m=[p,f],v=s(p,f),y=i?v?0:h(p,f):v?h(p+(p<0?l:-l),f):0;if(!e&&(c=o=v)&&t.lineStart(),v!==o&&(g=u(e,m),(!g||de(e,g)||de(m,g))&&(m[0]+=a,m[1]+=a,v=s(m[0],m[1]))),v!==o)d=0,v?(t.lineStart(),g=u(m,e),t.point(g[0],g[1])):(g=u(e,m),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(r&&e&&i^v){var b;y&n||!(b=u(m,e,!0))||(d=0,i?(t.lineStart(),t.point(b[0][0],b[0][1]),t.point(b[1][0],b[1][1]),t.lineEnd()):(t.point(b[1][0],b[1][1]),t.lineEnd(),t.lineStart(),t.point(b[0][0],b[0][1])))}!v||e&&de(e,m)||t.point(m[0],m[1]),e=m,o=v,n=y},lineEnd:function(){o&&t.lineEnd(),e=null},clean:function(){return d|(c&&o)<<1}}}function u(t,e,i){var r=rt(t),o=rt(e),s=[1,0,0],c=at(r,o),u=ot(c,c),h=c[0],d=u-h*h;if(!d)return!i&&t;var p=n*u/d,g=-n*h/d,m=at(s,c),v=lt(s,p),y=lt(c,g);st(v,y);var b=m,x=ot(v,b),w=ot(b,b),_=x*x-w*(ot(v,v)-1);if(!(_<0)){var C=A(_),I=lt(b,(-x-C)/w);if(st(I,v),I=it(I),!i)return I;var S,M=t[0],k=e[0],E=t[1],T=e[1];k<M&&(S=M,M=k,k=S);var O=k-M,P=f(O-l)<a,j=P||O<a;if(!P&&T<E&&(S=E,E=T,T=S),j?P?E+T>0^I[1]<(f(I[0]-M)<a?E:T):E<=I[1]&&I[1]<=T:O>l^(M<=I[0]&&I[0]<=k)){var L=lt(b,(-x+C)/w);return st(L,v),[I,it(L)]}}}function h(e,n){var r=i?t:l-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return Kn(s,c,o,i?[0,-t]:[-l,t-l])},ri=function(t){return{stream:oi(t)}};function oi(t){return function(e){var n=new ai;for(var i in t)n[i]=t[i];return n.stream=e,n}}function ai(){}function si(t,e,n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),z(n,t.stream(dn));var a=dn.result(),s=Math.min(i/(a[1][0]-a[0][0]),r/(a[1][1]-a[0][1])),l=+e[0][0]+(i-s*(a[1][0]+a[0][0]))/2,c=+e[0][1]+(r-s*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*s).translate([l,c])}function li(t,e,n){return si(t,[[0,0],e],n)}ai.prototype={constructor:ai,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ci=16,ui=v(30*p),hi=function(t,e){return+e?pi(t,e):di(t)};function di(t){return oi({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function pi(t,e){function n(i,r,o,s,l,c,u,h,d,p,g,v,y,b){var x=u-i,w=h-r,_=x*x+w*w;if(_>4*e&&y--){var C=s+p,I=l+g,S=c+v,k=A(C*C+I*I+S*S),E=M(S/=k),T=f(f(S)-1)<a||f(o-d)<a?(o+d)/2:m(I,C),O=t(T,E),P=O[0],j=O[1],L=P-i,D=j-r,R=w*L-x*D;(R*R/_>e||f((x*L+w*D)/_-.5)>.3||s*p+l*g+c*v<ui)&&(n(i,r,o,s,l,c,P,j,T,C/=k,I/=k,S,y,b),b.point(P,j),n(P,j,T,C,I,S,u,h,d,p,g,v,y,b))}}return function(e){var i,r,o,a,s,l,c,u,h,d,p,f,g={point:m,lineStart:v,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function m(n,i){n=t(n,i),e.point(n[0],n[1])}function v(){u=NaN,g.point=y,e.lineStart()}function y(i,r){var o=rt([i,r]),a=t(i,r);n(u,h,c,d,p,f,u=a[0],h=a[1],c=i,d=o[0],p=o[1],f=o[2],ci,e),e.point(u,h)}function b(){g.point=m,e.lineEnd()}function x(){v(),g.point=w,g.lineEnd=_}function w(t,e){y(i=t,e),r=u,o=h,a=d,s=p,l=f,g.point=y}function _(){n(u,h,c,d,p,f,r,o,i,a,s,l,ci,e),g.lineEnd=b,b()}return g}}var fi=oi({point:function(t,e){this.stream.point(t*p,e*p)}});function gi(t){return mi((function(){return t}))()}function mi(t){var e,n,i,r,o,a,s,l,c,u,h=150,f=480,g=250,m=0,v=0,y=0,b=0,x=0,w=null,_=$n,C=null,I=$e,S=.5,M=hi(T,S);function k(t){return t=o(t[0]*p,t[1]*p),[t[0]*h+n,i-t[1]*h]}function E(t){return t=o.invert((t[0]-n)/h,(i-t[1])/h),t&&[t[0]*d,t[1]*d]}function T(t,r){return t=e(t,r),[t[0]*h+n,i-t[1]*h]}function O(){o=te(r=ne(y,b,x),e);var t=e(m,v);return n=f-t[0]*h,i=g+t[1]*h,P()}function P(){return c=u=null,k}return k.stream=function(t){return c&&u===t?c:c=fi(_(r,M(I(u=t))))},k.clipAngle=function(t){return arguments.length?(_=+t?ii(w=t*p,6*p):(w=null,$n),P()):w*d},k.clipExtent=function(t){return arguments.length?(I=null==t?(C=a=s=l=null,$e):ye(C=+t[0][0],a=+t[0][1],s=+t[1][0],l=+t[1][1]),P()):null==C?null:[[C,a],[s,l]]},k.scale=function(t){return arguments.length?(h=+t,O()):h},k.translate=function(t){return arguments.length?(f=+t[0],g=+t[1],O()):[f,g]},k.center=function(t){return arguments.length?(m=t[0]%360*p,v=t[1]%360*p,O()):[m*d,v*d]},k.rotate=function(t){return arguments.length?(y=t[0]%360*p,b=t[1]%360*p,x=t.length>2?t[2]%360*p:0,O()):[y*d,b*d,x*d]},k.precision=function(t){return arguments.length?(M=hi(T,S=t*t),P()):A(S)},k.fitExtent=function(t,e){return si(k,t,e)},k.fitSize=function(t,e){return li(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&E,O()}}function vi(t){var e=0,n=l/3,i=mi(t),r=i(e,n);return r.parallels=function(t){return arguments.length?i(e=t[0]*p,n=t[1]*p):[e*d,n*d]},r}function yi(t){var e=v(t);function n(t,n){return[t*e,_(n)/e]}return n.invert=function(t,n){return[t/e,M(n*e)]},n}function bi(t,e){var n=_(t),i=(n+_(e))/2;if(f(i)<a)return yi(t);var r=1+n*(2*i-n),o=A(r)/i;function s(t,e){var n=A(r-2*i*_(e))/i;return[n*_(t*=i),o-n*v(t)]}return s.invert=function(t,e){var n=o-e;return[m(t,f(n))/i*C(n),M((r-(t*t+n*n)*i*i)/(2*i))]},s}var xi=function(){return vi(bi).scale(155.424).center([0,33.6442])},wi=function(){return xi().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};function _i(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}var Ci=function(){var t,e,n,i,r,o,s=wi(),l=xi().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=xi().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){o=[t,e]}};function h(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function d(){return t=e=null,h}return h.invert=function(t){var e=s.scale(),n=s.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?l:r>=.166&&r<.234&&i>=-.214&&i<-.115?c:s).invert(t)},h.stream=function(n){return t&&e===n?t:t=_i([s.stream(e=n),l.stream(n),c.stream(n)])},h.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),c.precision(t),d()):s.precision()},h.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),c.scale(t),h.translate(s.translate())):s.scale()},h.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),o=+t[0],h=+t[1];return n=s.translate(t).clipExtent([[o-.455*e,h-.238*e],[o+.455*e,h+.238*e]]).stream(u),i=l.translate([o-.307*e,h+.201*e]).clipExtent([[o-.425*e+a,h+.12*e+a],[o-.214*e-a,h+.234*e-a]]).stream(u),r=c.translate([o-.205*e,h+.212*e]).clipExtent([[o-.214*e+a,h+.166*e+a],[o-.115*e-a,h+.234*e-a]]).stream(u),d()},h.fitExtent=function(t,e){return si(h,t,e)},h.fitSize=function(t,e){return li(h,t,e)},h.scale(1070)};function Ai(t){return function(e,n){var i=v(e),r=v(n),o=t(i*r);return[o*r*_(e),o*_(n)]}}function Ii(t){return function(e,n){var i=A(e*e+n*n),r=t(i),o=_(r),a=v(r);return[m(e*o,i*a),M(i&&n*o/i)]}}var Si=Ai((function(t){return A(2/(1+t))}));Si.invert=Ii((function(t){return 2*M(t/2)}));var Mi=function(){return gi(Si).scale(124.75).clipAngle(179.999)},ki=Ai((function(t){return(t=S(t))&&t/_(t)}));ki.invert=Ii((function(t){return t}));var Ei=function(){return gi(ki).scale(79.4188).clipAngle(179.999)};function Ti(t,e){return[t,x(I((c+e)/2))]}Ti.invert=function(t,e){return[t,2*g(b(e))-c]};var Oi=function(){return Pi(Ti).scale(961/h)};function Pi(t){var e,n,i,r=gi(t),o=r.center,a=r.scale,s=r.translate,c=r.clipExtent,u=null;function h(){var o=l*a(),s=r(ae(r.rotate()).invert([0,0]));return c(null==u?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===Ti?[[Math.max(s[0]-o,u),e],[Math.min(s[0]+o,n),i]]:[[u,Math.max(s[1]-o,e)],[n,Math.min(s[1]+o,i)]])}return r.scale=function(t){return arguments.length?(a(t),h()):a()},r.translate=function(t){return arguments.length?(s(t),h()):s()},r.center=function(t){return arguments.length?(o(t),h()):o()},r.clipExtent=function(t){return arguments.length?(null==t?u=e=n=i=null:(u=+t[0][0],e=+t[0][1],n=+t[1][0],i=+t[1][1]),h()):null==u?null:[[u,e],[n,i]]},h()}function ji(t){return I((c+t)/2)}function Li(t,e){var n=v(t),i=t===e?_(t):x(n/v(e))/x(ji(e)/ji(t)),r=n*w(ji(t),i)/i;if(!i)return Ti;function o(t,e){r>0?e<-c+a&&(e=-c+a):e>c-a&&(e=c-a);var n=r/w(ji(e),i);return[n*_(i*t),r-n*v(i*t)]}return o.invert=function(t,e){var n=r-e,o=C(i)*A(t*t+n*n);return[m(t,f(n))/i*C(n),2*g(w(r/o,1/i))-c]},o}var Di=function(){return vi(Li).scale(109.5).parallels([30,30])};function Ri(t,e){return[t,e]}Ri.invert=Ri;var Bi=function(){return gi(Ri).scale(152.63)};function Ni(t,e){var n=v(t),i=t===e?_(t):(n-v(e))/(e-t),r=n/i+t;if(f(i)<a)return Ri;function o(t,e){var n=r-e,o=i*t;return[n*_(o),r-n*v(o)]}return o.invert=function(t,e){var n=r-e;return[m(t,f(n))/i*C(n),r-C(i)*A(t*t+n*n)]},o}var Fi=function(){return vi(Ni).scale(131.154).center([0,13.9389])};function zi(t,e){var n=v(e),i=v(t)*n;return[n*_(t)/i,_(e)/i]}zi.invert=Ii(g);var Vi=function(){return gi(zi).scale(144.049).clipAngle(60)};function Gi(t,e,n,i){return 1===t&&1===e&&0===n&&0===i?$e:oi({point:function(r,o){this.stream.point(r*t+n,o*e+i)}})}var Hi=function(){var t,e,n,i,r,o,a=1,s=0,l=0,c=1,u=1,h=$e,d=null,p=$e;function f(){return i=r=null,o}return o={stream:function(t){return i&&r===t?i:i=h(p(r=t))},clipExtent:function(i){return arguments.length?(p=null==i?(d=t=e=n=null,$e):ye(d=+i[0][0],t=+i[0][1],e=+i[1][0],n=+i[1][1]),f()):null==d?null:[[d,t],[e,n]]},scale:function(t){return arguments.length?(h=Gi((a=+t)*c,a*u,s,l),f()):a},translate:function(t){return arguments.length?(h=Gi(a*c,a*u,s=+t[0],l=+t[1]),f()):[s,l]},reflectX:function(t){return arguments.length?(h=Gi(a*(c=t?-1:1),a*u,s,l),f()):c<0},reflectY:function(t){return arguments.length?(h=Gi(a*c,a*(u=t?-1:1),s,l),f()):u<0},fitExtent:function(t,e){return si(o,t,e)},fitSize:function(t,e){return li(o,t,e)}}};function Wi(t,e){return[v(e)*_(t),_(e)]}Wi.invert=Ii(M);var Ui=function(){return gi(Wi).scale(249.5).clipAngle(90+a)};function Zi(t,e){var n=v(e),i=1+v(t)*n;return[n*_(t)/i,_(e)/i]}Zi.invert=Ii((function(t){return 2*g(t)}));var Yi=function(){return gi(Zi).scale(250).clipAngle(142)};function Xi(t,e){return[x(I((c+e)/2)),-t]}Xi.invert=function(t,e){return[-e,2*g(b(t))-c]};var qi=function(){var t=Pi(Xi),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90]).scale(159.155)};t.geoArea=nt,t.geoBounds=zt,t.geoCentroid=Jt,t.geoCircle=ce,t.geoClipExtent=_e,t.geoContains=He,t.geoDistance=Le,t.geoGraticule=Ze,t.geoGraticule10=Ye,t.geoInterpolate=Je,t.geoLength=Oe,t.geoPath=qn,t.geoAlbers=wi,t.geoAlbersUsa=Ci,t.geoAzimuthalEqualArea=Mi,t.geoAzimuthalEqualAreaRaw=Si,t.geoAzimuthalEquidistant=Ei,t.geoAzimuthalEquidistantRaw=ki,t.geoConicConformal=Di,t.geoConicConformalRaw=Li,t.geoConicEqualArea=xi,t.geoConicEqualAreaRaw=bi,t.geoConicEquidistant=Fi,t.geoConicEquidistantRaw=Ni,t.geoEquirectangular=Bi,t.geoEquirectangularRaw=Ri,t.geoGnomonic=Vi,t.geoGnomonicRaw=zi,t.geoIdentity=Hi,t.geoProjection=gi,t.geoProjectionMutator=mi,t.geoMercator=Oi,t.geoMercatorRaw=Ti,t.geoOrthographic=Ui,t.geoOrthographicRaw=Wi,t.geoStereographic=Yi,t.geoStereographicRaw=Zi,t.geoTransverseMercator=qi,t.geoTransverseMercatorRaw=Xi,t.geoRotation=ae,t.geoStream=z,t.geoTransform=ri,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-hexjson@1.1.0@d3-hexjson/build/d3-hexjson.js":
/*!***********************************************************************!*\
  !*** ./node_modules/_d3-hexjson@1.1.0@d3-hexjson/build/d3-hexjson.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,n){(function(t,i){i(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))})(0,(function(t,e){"use strict";function n(t,n,s){var l=t.layout,c=[],u=0;Object.keys(t.hexes).forEach((function(e){t.hexes[e].key=e,c.push(t.hexes[e])}));var h=e.max(c,(function(t){return+t.q})),d=e.min(c,(function(t){return+t.q})),p=e.max(c,(function(t){return+t.r})),f=e.min(c,(function(t){return+t.r})),g=h-d+1,m=p-f+1;u="odd-r"===l||"even-r"===l?e.min([n/((g+.5)*Math.sqrt(3)),s/(1.5*(m+1/3))]):e.min([s/((m+.5)*Math.sqrt(3)),n/(1.5*(g+1/3))]);var v=u*Math.sqrt(3),y=o(l,v,u),b=a(y);return c.forEach((function(t){t.qc=t.q-d,t.rc=p-t.r,t.x=i(t,l,v,u),t.y=r(t,l,v,u),t.vertices=y,t.points=b})),c}function i(t,e,n,i){var r=0,o=0;switch(e){case"odd-r":o=t.rc%2===1?n:n/2,r=t.qc*n+o;break;case"even-r":o=t.rc%2===0?n:n/2,r=t.qc*n+o;break;case"odd-q":case"even-q":r=t.qc*i*1.5+i;break}return r}function r(t,e,n,i){var r=0,o=0;switch(e){case"odd-r":case"even-r":r=t.rc*i*1.5+i;break;case"odd-q":o=t.qc%2===1?n:n/2,r=t.rc*n+o;break;case"even-q":o=t.qc%2===0?n:n/2,r=t.rc*n+o;break}return r}function o(t,e,n){var i=[];switch(t){case"odd-r":case"even-r":i.push({x:0,y:0-n}),i.push({x:0+.5*e,y:0-.5*n}),i.push({x:0+.5*e,y:0+.5*n}),i.push({x:0,y:0+n}),i.push({x:0-.5*e,y:0+.5*n}),i.push({x:0-.5*e,y:0-.5*n});break;case"odd-q":case"even-q":i.push({x:0-n,y:0}),i.push({x:0-.5*n,y:0-.5*e}),i.push({x:0+.5*n,y:0-.5*e}),i.push({x:0+n,y:0}),i.push({x:0+.5*n,y:0+.5*e}),i.push({x:0-.5*n,y:0+.5*e});break}return i}function a(t){var e="";return t.forEach((function(t){e+=t.x+","+t.y+" "})),e.substring(0,e.length-1)}function s(t){var n={};n.layout=t.layout,n.hexes={};var i=[];Object.keys(t.hexes).forEach((function(e){i.push(t.hexes[e])}));var r,o,a,s=e.max(i,(function(t){return+t.q})),l=e.min(i,(function(t){return+t.q})),c=e.max(i,(function(t){return+t.r})),u=e.min(i,(function(t){return+t.r}));for(r=l;r<=s;r++)for(o=u;o<=c;o++)a="Q"+r+"R"+o,n.hexes[a]={q:r,r:o};return n}function l(t,n,o,a){var s=[],l=t.layout;Object.keys(t.hexes).forEach((function(e){s.push(t.hexes[e])}));var c,u=e.max(s,(function(t){return+t.q})),h=e.min(s,(function(t){return+t.q})),d=e.max(s,(function(t){return+t.r})),p=e.min(s,(function(t){return+t.r})),f=u-h+1,g=d-p+1;c="odd-r"===l||"even-r"===l?e.min([n/((f+.5)*Math.sqrt(3)),o/(1.5*(g+1/3))]):e.min([o/((g+.5)*Math.sqrt(3)),n/(1.5*(f+1/3))]);var m=c*Math.sqrt(3),v=[],y=c*c*4,b=s.length;if(b>1){s.forEach((function(t){t.qc=t.q-h,t.rc=d-t.r,t.x=i(t,l,m,c),t.y=r(t,l,m,c)}));for(var x=0;x<b-1;x++)for(var w=x+1;w<b;w++){var _=s[x],C=s[w];if(_[a]!==C[a]&&Math.abs(_.q-C.q)<=1&&Math.abs(_.r-C.r)<=1&&(_.x-C.x)*(_.x-C.x)+(_.y-C.y)*(_.y-C.y)<y){var A={};A.x=C.x+(_.x-C.x)/2,A.y=C.y+(_.y-C.y)/2;var I={},S=4*Math.sqrt(3);I.dx=(_.y-C.y)/S,I.dy=-(_.x-C.x)/S,v.push({x:A.x-2*I.dx,y:A.y-2*I.dy}),v.push({x:A.x-I.dx,y:A.y-I.dy}),v.push({x:A.x,y:A.y}),v.push({x:A.x+I.dx,y:A.y+I.dy}),v.push({x:A.x+2*I.dx,y:A.y+2*I.dy})}}}return v}function c(t,n,o,a){var s=[],l=t.layout;Object.keys(t.hexes).forEach((function(e){s.push(t.hexes[e])}));var c,u=e.max(s,(function(t){return+t.q})),h=e.min(s,(function(t){return+t.q})),d=e.max(s,(function(t){return+t.r})),p=e.min(s,(function(t){return+t.r})),f=u-h+1,g=d-p+1;c="odd-r"===l||"even-r"===l?e.min([n/((f+.5)*Math.sqrt(3)),o/(1.5*(g+1/3))]):e.min([o/((g+.5)*Math.sqrt(3)),n/(1.5*(f+1/3))]);var m=c*Math.sqrt(3),v=[],y=c*c*4,b=s.length;if(b>1){s.forEach((function(t){t.qc=t.q-h,t.rc=d-t.r,t.x=i(t,l,m,c),t.y=r(t,l,m,c)}));for(var x=0;x<b-1;x++)for(var w=x+1;w<b;w++){var _=s[x],C=s[w];if(_[a]!==C[a]&&Math.abs(_.q-C.q)<=1&&Math.abs(_.r-C.r)<=1&&(_.x-C.x)*(_.x-C.x)+(_.y-C.y)*(_.y-C.y)<y){var A={};A.x=C.x+(_.x-C.x)/2,A.y=C.y+(_.y-C.y)/2;var I={},S=1;_[a]<C[a]&&(S=-1);var M=2*Math.sqrt(3)*S;I.dx=(_.y-C.y)/M,I.dy=-(_.x-C.x)/M,v.push({x1:A.x-I.dx,y1:A.y-I.dy,x2:A.x+I.dx,y2:A.y+I.dy})}}}return v}t.renderHexJSON=n,t.getGridForHexJSON=s,t.getBoundaryDotsForHexJSON=l,t.getBoundarySegmentsForHexJSON=c,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js":
/*!****************************************************************************!*\
  !*** ./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js ***!
  \****************************************************************************/
/*! no static exports found */function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){return t.parent===e.parent?1:2}function n(t){return t.reduce(i,0)/t.length}function i(t,e){return t+e.x}function r(t){return 1+t.reduce(o,0)}function o(t,e){return Math.max(t,e.y)}function a(t){var e;while(e=t.children)t=e[0];return t}function s(t){var e;while(e=t.children)t=e[e.length-1];return t}function l(){var t=e,i=1,o=1,l=!1;function c(e){var c,u=0;e.eachAfter((function(e){var i=e.children;i?(e.x=n(i),e.y=r(i)):(e.x=c?u+=t(e,c):0,e.y=0,c=e)}));var h=a(e),d=s(e),p=h.x-t(h,d)/2,f=d.x+t(d,h)/2;return e.eachAfter(l?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*o}:function(t){t.x=(t.x-p)/(f-p)*i,t.y=(1-(e.y?t.y/e.y:1))*o})}return c.separation=function(e){return arguments.length?(t=e,c):t},c.size=function(t){return arguments.length?(l=!1,i=+t[0],o=+t[1],c):l?null:[i,o]},c.nodeSize=function(t){return arguments.length?(l=!0,i=+t[0],o=+t[1],c):l?[i,o]:null},c}function c(t){var e=0,n=t.children,i=n&&n.length;if(i)while(--i>=0)e+=n[i].value;else e=1;t.value=e}function u(){return this.eachAfter(c)}function h(t){var e,n,i,r,o=this,a=[o];do{e=a.reverse(),a=[];while(o=e.pop())if(t(o),n=o.children,n)for(i=0,r=n.length;i<r;++i)a.push(n[i])}while(a.length);return this}function d(t){var e,n,i=this,r=[i];while(i=r.pop())if(t(i),e=i.children,e)for(n=e.length-1;n>=0;--n)r.push(e[n]);return this}function p(t){var e,n,i,r=this,o=[r],a=[];while(r=o.pop())if(a.push(r),e=r.children,e)for(n=0,i=e.length;n<i;++n)o.push(e[n]);while(r=a.pop())t(r);return this}function f(t){return this.eachAfter((function(e){var n=+t(e.data)||0,i=e.children,r=i&&i.length;while(--r>=0)n+=i[r].value;e.value=n}))}function g(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))}function m(t){var e=this,n=v(e,t),i=[e];while(e!==n)e=e.parent,i.push(e);var r=i.length;while(t!==n)i.splice(r,0,t),t=t.parent;return i}function v(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop(),e=i.pop();while(t===e)r=t,t=n.pop(),e=i.pop();return r}function y(){var t=this,e=[t];while(t=t.parent)e.push(t);return e}function b(){var t=[];return this.each((function(e){t.push(e)})),t}function x(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t}function w(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e}function _(t,e){var n,i,r,o,a,s=new M(t),l=+t.value&&(s.value=t.value),c=[s];null==e&&(e=A);while(n=c.pop())if(l&&(n.value=+n.data.value),(r=e(n.data))&&(a=r.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(i=n.children[o]=new M(r[o])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(S)}function C(){return _(this).eachBefore(I)}function A(t){return t.children}function I(t){t.data=t.data.data}function S(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function M(t){this.data=t,this.depth=this.height=0,this.parent=null}M.prototype=_.prototype={constructor:M,count:u,each:h,eachAfter:p,eachBefore:d,sum:f,sort:g,path:m,ancestors:y,descendants:b,leaves:x,links:w,copy:C};var k=Array.prototype.slice;function E(t){var e,n,i=t.length;while(i)n=Math.random()*i--|0,e=t[i],t[i]=t[n],t[n]=e;return t}function T(t){var e,n,i=0,r=(t=E(k.call(t))).length,o=[];while(i<r)e=t[i],n&&j(n,e)?++i:(n=D(o=O(o,e)),i=0);return n}function O(t,e){var n,i;if(L(e,t))return[e];for(n=0;n<t.length;++n)if(P(e,t[n])&&L(B(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(i=n+1;i<t.length;++i)if(P(B(t[n],t[i]),e)&&P(B(t[n],e),t[i])&&P(B(t[i],e),t[n])&&L(N(t[n],t[i],e),t))return[t[n],t[i],e];throw new Error}function P(t,e){var n=t.r-e.r,i=e.x-t.x,r=e.y-t.y;return n<0||n*n<i*i+r*r}function j(t,e){var n=t.r-e.r+1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function L(t,e){for(var n=0;n<e.length;++n)if(!j(t,e[n]))return!1;return!0}function D(t){switch(t.length){case 1:return R(t[0]);case 2:return B(t[0],t[1]);case 3:return N(t[0],t[1],t[2])}}function R(t){return{x:t.x,y:t.y,r:t.r}}function B(t,e){var n=t.x,i=t.y,r=t.r,o=e.x,a=e.y,s=e.r,l=o-n,c=a-i,u=s-r,h=Math.sqrt(l*l+c*c);return{x:(n+o+l/h*u)/2,y:(i+a+c/h*u)/2,r:(h+r+s)/2}}function N(t,e,n){var i=t.x,r=t.y,o=t.r,a=e.x,s=e.y,l=e.r,c=n.x,u=n.y,h=n.r,d=i-a,p=i-c,f=r-s,g=r-u,m=l-o,v=h-o,y=i*i+r*r-o*o,b=y-a*a-s*s+l*l,x=y-c*c-u*u+h*h,w=p*f-d*g,_=(f*x-g*b)/(2*w)-i,C=(g*m-f*v)/w,A=(p*b-d*x)/(2*w)-r,I=(d*v-p*m)/w,S=C*C+I*I-1,M=2*(o+_*C+A*I),k=_*_+A*A-o*o,E=-(S?(M+Math.sqrt(M*M-4*S*k))/(2*S):k/M);return{x:i+_+C*E,y:r+A+I*E,r:E}}function F(t,e,n){var i,r,o,a,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(r=e.r+n.r,r*=r,a=t.r+n.r,a*=a,r>a?(i=(c+a-r)/(2*c),o=Math.sqrt(Math.max(0,a/c-i*i)),n.x=t.x-i*s-o*l,n.y=t.y-i*l+o*s):(i=(c+r-a)/(2*c),o=Math.sqrt(Math.max(0,r/c-i*i)),n.x=e.x+i*s-o*l,n.y=e.y+i*l+o*s)):(n.x=e.x+n.r,n.y=e.y)}function z(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function V(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,o=(e.y*n.r+n.y*e.r)/i;return r*r+o*o}function G(t){this._=t,this.next=null,this.previous=null}function H(t){if(!(r=t.length))return 0;var e,n,i,r,o,a,s,l,c,u,h;if(e=t[0],e.x=0,e.y=0,!(r>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(r>2))return e.r+n.r;F(n,e,i=t[2]),e=new G(e),n=new G(n),i=new G(i),e.next=i.previous=n,n.next=e.previous=i,i.next=n.previous=e;t:for(s=3;s<r;++s){F(e._,n._,i=t[s]),i=new G(i),l=n.next,c=e.previous,u=n._.r,h=e._.r;do{if(u<=h){if(z(l._,i._)){n=l,e.next=n,n.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(z(c._,i._)){e=c,e.next=n,n.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);i.previous=e,i.next=n,e.next=n.previous=n=i,o=V(e);while((i=i.next)!==n)(a=V(i))<o&&(e=i,o=a);n=e.next}e=[n._],i=n;while((i=i.next)!==n)e.push(i._);for(i=T(e),s=0;s<r;++s)e=t[s],e.x-=i.x,e.y-=i.y;return i.r}function W(t){return H(t),t}function U(t){return null==t?null:Z(t)}function Z(t){if("function"!==typeof t)throw new Error;return t}function Y(){return 0}function X(t){return function(){return t}}function q(t){return Math.sqrt(t.value)}function K(){var t=null,e=1,n=1,i=Y;function r(r){return r.x=e/2,r.y=n/2,t?r.eachBefore(Q(t)).eachAfter(J(i,.5)).eachBefore($(1)):r.eachBefore(Q(q)).eachAfter(J(Y,1)).eachAfter(J(i,r.r/Math.min(e,n))).eachBefore($(Math.min(e,n)/(2*r.r))),r}return r.radius=function(e){return arguments.length?(t=U(e),r):t},r.size=function(t){return arguments.length?(e=+t[0],n=+t[1],r):[e,n]},r.padding=function(t){return arguments.length?(i="function"===typeof t?t:X(+t),r):i},r}function Q(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function J(t,e){return function(n){if(i=n.children){var i,r,o,a=i.length,s=t(n)*e||0;if(s)for(r=0;r<a;++r)i[r].r+=s;if(o=H(i),s)for(r=0;r<a;++r)i[r].r-=s;n.r=o+s}}}function $(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function tt(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function et(t,e,n,i,r){var o,a=t.children,s=-1,l=a.length,c=t.value&&(i-e)/t.value;while(++s<l)o=a[s],o.y0=n,o.y1=r,o.x0=e,o.x1=e+=o.value*c}function nt(){var t=1,e=1,n=0,i=!1;function r(r){var a=r.height+1;return r.x0=r.y0=n,r.x1=t,r.y1=e/a,r.eachBefore(o(e,a)),i&&r.eachBefore(tt),r}function o(t,e){return function(i){i.children&&et(i,i.x0,t*(i.depth+1)/e,i.x1,t*(i.depth+2)/e);var r=i.x0,o=i.y0,a=i.x1-n,s=i.y1-n;a<r&&(r=a=(r+a)/2),s<o&&(o=s=(o+s)/2),i.x0=r,i.y0=o,i.x1=a,i.y1=s}}return r.round=function(t){return arguments.length?(i=!!t,r):i},r.size=function(n){return arguments.length?(t=+n[0],e=+n[1],r):[t,e]},r.padding=function(t){return arguments.length?(n=+t,r):n},r}var it="$",rt={depth:-1},ot={};function at(t){return t.id}function st(t){return t.parentId}function lt(){var t=at,e=st;function n(n){var i,r,o,a,s,l,c,u=n.length,h=new Array(u),d={};for(r=0;r<u;++r)i=n[r],s=h[r]=new M(i),null!=(l=t(i,r,n))&&(l+="")&&(c=it+(s.id=l),d[c]=c in d?ot:s);for(r=0;r<u;++r)if(s=h[r],l=e(n[r],r,n),null!=l&&(l+="")){if(a=d[it+l],!a)throw new Error("missing: "+l);if(a===ot)throw new Error("ambiguous: "+l);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=rt,o.eachBefore((function(t){t.depth=t.parent.depth+1,--u})).eachBefore(S),o.parent=null,u>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=Z(e),n):t},n.parentId=function(t){return arguments.length?(e=Z(t),n):e},n}function ct(t,e){return t.parent===e.parent?1:2}function ut(t){var e=t.children;return e?e[0]:t.t}function ht(t){var e=t.children;return e?e[e.length-1]:t.t}function dt(t,e,n){var i=n/(e.i-t.i);e.c-=i,e.s+=n,t.c+=i,e.z+=n,e.m+=n}function pt(t){var e,n=0,i=0,r=t.children,o=r.length;while(--o>=0)e=r[o],e.z+=n,e.m+=n,n+=e.s+(i+=e.c)}function ft(t,e,n){return t.a.parent===e.parent?t.a:n}function gt(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function mt(t){var e,n,i,r,o,a=new gt(t,0),s=[a];while(e=s.pop())if(i=e._.children)for(e.children=new Array(o=i.length),r=o-1;r>=0;--r)s.push(n=e.children[r]=new gt(i[r],r)),n.parent=e;return(a.parent=new gt(null,0)).children=[a],a}function vt(){var t=ct,e=1,n=1,i=null;function r(r){var s=mt(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),i)r.eachBefore(l);else{var c=r,u=r,h=r;r.eachBefore((function(t){t.x<c.x&&(c=t),t.x>u.x&&(u=t),t.depth>h.depth&&(h=t)}));var d=c===u?1:t(c,u)/2,p=d-c.x,f=e/(u.x+d+p),g=n/(h.depth||1);r.eachBefore((function(t){t.x=(t.x+p)*f,t.y=t.depth*g}))}return r}function o(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){pt(e);var o=(n[0].z+n[n.length-1].z)/2;r?(e.z=r.z+t(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+t(e._,r._));e.parent.A=s(e,r,e.parent.A||i[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,i){if(n){var r,o=e,a=e,s=n,l=o.parent.children[0],c=o.m,u=a.m,h=s.m,d=l.m;while(s=ht(s),o=ut(o),s&&o)l=ut(l),a=ht(a),a.a=e,r=s.z+h-o.z-c+t(s._,o._),r>0&&(dt(ft(s,e,i),e,r),c+=r,u+=r),h+=s.m,c+=o.m,d+=l.m,u+=a.m;s&&!ht(a)&&(a.t=s,a.m+=h-u),o&&!ut(l)&&(l.t=o,l.m+=c-d,i=e)}return i}function l(t){t.x*=e,t.y=t.depth*n}return r.separation=function(e){return arguments.length?(t=e,r):t},r.size=function(t){return arguments.length?(i=!1,e=+t[0],n=+t[1],r):i?null:[e,n]},r.nodeSize=function(t){return arguments.length?(i=!0,e=+t[0],n=+t[1],r):i?[e,n]:null},r}function yt(t,e,n,i,r){var o,a=t.children,s=-1,l=a.length,c=t.value&&(r-n)/t.value;while(++s<l)o=a[s],o.x0=e,o.x1=i,o.y0=n,o.y1=n+=o.value*c}gt.prototype=Object.create(M.prototype);var bt=(1+Math.sqrt(5))/2;function xt(t,e,n,i,r,o){var a,s,l,c,u,h,d,p,f,g,m,v=[],y=e.children,b=0,x=0,w=y.length,_=e.value;while(b<w){l=r-n,c=o-i;do{u=y[x++].value}while(!u&&x<w);for(h=d=u,g=Math.max(c/l,l/c)/(_*t),m=u*u*g,f=Math.max(d/m,m/h);x<w;++x){if(u+=s=y[x].value,s<h&&(h=s),s>d&&(d=s),m=u*u*g,p=Math.max(d/m,m/h),p>f){u-=s;break}f=p}v.push(a={value:u,dice:l<c,children:y.slice(b,x)}),a.dice?et(a,n,i,r,_?i+=c*u/_:o):yt(a,n,i,_?n+=l*u/_:r,o),_-=u,b=x}return v}var wt=function t(e){function n(t,n,i,r,o){xt(e,t,n,i,r,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(bt);function _t(){var t=wt,e=!1,n=1,i=1,r=[0],o=Y,a=Y,s=Y,l=Y,c=Y;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=i,t.eachBefore(h),r=[0],e&&t.eachBefore(tt),t}function h(e){var n=r[e.depth],i=e.x0+n,u=e.y0+n,h=e.x1-n,d=e.y1-n;h<i&&(i=h=(i+h)/2),d<u&&(u=d=(u+d)/2),e.x0=i,e.y0=u,e.x1=h,e.y1=d,e.children&&(n=r[e.depth+1]=o(e)/2,i+=c(e)-n,u+=a(e)-n,h-=s(e)-n,d-=l(e)-n,h<i&&(i=h=(i+h)/2),d<u&&(u=d=(u+d)/2),t(e,i,u,h,d))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(n=+t[0],i=+t[1],u):[n,i]},u.tile=function(e){return arguments.length?(t=Z(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:X(+t),u):o},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:X(+t),u):a},u.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:X(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l="function"===typeof t?t:X(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:X(+t),u):c},u}function Ct(t,e,n,i,r){var o,a,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=a=o=0;o<l;++o)c[o+1]=a+=s[o].value;function u(t,e,n,i,r,o,a){if(t>=e-1){var l=s[t];return l.x0=i,l.y0=r,l.x1=o,void(l.y1=a)}var h=c[t],d=n/2+h,p=t+1,f=e-1;while(p<f){var g=p+f>>>1;c[g]<d?p=g+1:f=g}d-c[p-1]<c[p]-d&&t+1<p&&--p;var m=c[p]-h,v=n-m;if(o-i>a-r){var y=(i*v+o*m)/n;u(t,p,m,i,r,y,a),u(p,e,v,y,r,o,a)}else{var b=(r*v+a*m)/n;u(t,p,m,i,r,o,b),u(p,e,v,i,b,o,a)}}u(0,l,t.value,e,n,i,r)}function At(t,e,n,i,r){(1&t.depth?yt:et)(t,e,n,i,r)}var It=function t(e){function n(t,n,i,r,o){if((a=t._squarify)&&a.ratio===e){var a,s,l,c,u,h=-1,d=a.length,p=t.value;while(++h<d){for(s=a[h],l=s.children,c=s.value=0,u=l.length;c<u;++c)s.value+=l[c].value;s.dice?et(s,n,i,r,i+=(o-i)*s.value/p):yt(s,n,i,n+=(r-n)*s.value/p,o),p-=s.value}}else t._squarify=a=xt(e,t,n,i,r,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(bt);t.cluster=l,t.hierarchy=_,t.pack=K,t.packEnclose=T,t.packSiblings=W,t.partition=nt,t.stratify=lt,t.tree=vt,t.treemap=_t,t.treemapBinary=Ct,t.treemapDice=et,t.treemapResquarify=It,t.treemapSlice=yt,t.treemapSliceDice=At,t.treemapSquarify=wt,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js":
/*!*************************************************************!*\
  !*** ./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";var e=Math.PI,n=2*e,i=1e-6,r=n-i;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new o}o.prototype=a.prototype={constructor:o,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,n,r,o,a){t=+t,n=+n,r=+r,o=+o,a=+a;var s=this._x1,l=this._y1,c=r-t,u=o-n,h=s-t,d=l-n,p=h*h+d*d;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(p>i)if(Math.abs(d*c-u*h)>i&&a){var f=r-s,g=o-l,m=c*c+u*u,v=f*f+g*g,y=Math.sqrt(m),b=Math.sqrt(p),x=a*Math.tan((e-Math.acos((m+p-v)/(2*y*b)))/2),w=x/b,_=x/y;Math.abs(w-1)>i&&(this._+="L"+(t+w*h)+","+(n+w*d)),this._+="A"+a+","+a+",0,0,"+ +(d*f>h*g)+","+(this._x1=t+_*c)+","+(this._y1=n+_*u)}else this._+="L"+(this._x1=t)+","+(this._y1=n);else;},arc:function(t,o,a,s,l,c){t=+t,o=+o,a=+a,c=!!c;var u=a*Math.cos(s),h=a*Math.sin(s),d=t+u,p=o+h,f=1^c,g=c?s-l:l-s;if(a<0)throw new Error("negative radius: "+a);null===this._x1?this._+="M"+d+","+p:(Math.abs(this._x1-d)>i||Math.abs(this._y1-p)>i)&&(this._+="L"+d+","+p),a&&(g<0&&(g=g%n+n),g>r?this._+="A"+a+","+a+",0,1,"+f+","+(t-u)+","+(o-h)+"A"+a+","+a+",0,1,"+f+","+(this._x1=d)+","+(this._y1=p):g>i&&(this._+="A"+a+","+a+",0,"+ +(g>=e)+","+f+","+(this._x1=t+a*Math.cos(l))+","+(this._y1=o+a*Math.sin(l))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}},t.path=a,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js");(function(t,i){i(e,n(/*! d3-array */"./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"),n(/*! d3-collection */"./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js"),n(/*! d3-shape */"./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js"))})(0,(function(t,e,n,r){"use strict";function o(t){return t.target.depth}function a(t){return t.depth}function s(t,e){return e-1-t.height}function l(t,e){return t.sourceLinks.length?t.depth:e-1}function c(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,o)-1:0}function u(t){return function(){return t}}function h(t,e){return p(t.source,e.source)||t.index-e.index}function d(t,e){return p(t.target,e.target)||t.index-e.index}function p(t,e){return t.y0-e.y0}function f(t){return t.value}function g(t){return t.index}function m(t){return t.nodes}function v(t){return t.links}function y(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function b(){var t,r=0,o=0,a=1,s=1,c=24,b=8,x=g,w=l,_=m,C=v,A=6;function I(){var t={nodes:_.apply(null,arguments),links:C.apply(null,arguments)};return S(t),M(t),k(t),E(t),T(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=n.map(t.nodes,x);t.links.forEach((function(t,n){t.index=n;var i=t.source,r=t.target;"object"!==typeof i&&(i=t.source=y(e,i)),"object"!==typeof r&&(r=t.target=y(e,r)),i.sourceLinks.push(t),r.targetLinks.push(t)}))}function M(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,f),e.sum(t.targetLinks,f))}))}function k(t){var e,n,i,o=t.nodes.length;for(e=t.nodes,n=[],i=0;e.length;++i,e=n,n=[]){if(i>o)throw new Error("circular link");e.forEach((function(t){t.depth=i,t.sourceLinks.forEach((function(t){n.indexOf(t.target)<0&&n.push(t.target)}))}))}for(e=t.nodes,n=[],i=0;e.length;++i,e=n,n=[]){if(i>o)throw new Error("circular link");e.forEach((function(t){t.height=i,t.targetLinks.forEach((function(t){n.indexOf(t.source)<0&&n.push(t.source)}))}))}var s=(a-r-c)/(i-1);t.nodes.forEach((function(t){t.x1=(t.x0=r+Math.max(0,Math.min(i-1,Math.floor(w.call(null,t,i))))*s)+c}))}function E(r){var a=n.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(r.nodes).map((function(t){return t.values}));u(),v();for(var l=.9,c=A;c>0;--c,l*=.9)m(l),v(),g(l),v();function u(){var n=e.min(a,(function(t){return(s-o-(t.length-1)*b)/e.sum(t,f)}));a.forEach((function(e){null!=t&&e.sort(t),e.forEach((function(t,e){t.y1=(t.y0=e)+t.value*n}))})),r.links.forEach((function(t){t.width=t.value*n}))}function g(t){a.forEach((function(e){e.forEach((function(e){var n,r,o,a,s=e.y0;try{for(var l=i.__values(e.sourceLinks.sort(d)),c=l.next();!c.done;c=l.next()){var u=c.value,h=u.target,p=u.width,f=u.value;if(f>0){var g=0;try{for(var m=(o=void 0,i.__values(h.targetLinks)),v=m.next();!v.done;v=m.next()){var y=v.value,x=y.source,w=y.width;if(x===e)break;g+=w+b/2}}catch(_){o={error:_}}finally{try{v&&!v.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}g=(s-g-h.y0)*t*(f/Math.min(e.value,h.value)),h.y0+=g,h.y1+=g}s+=p+b/2}}catch(C){n={error:C}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}))}))}function m(t){a.slice().reverse().forEach((function(e){e.forEach((function(e){var n,r,o,a,s=e.y0;try{for(var l=i.__values(e.targetLinks.sort(h)),c=l.next();!c.done;c=l.next()){var u=c.value,d=u.source,p=u.width,f=u.value;if(f>0){var g=0;try{for(var m=(o=void 0,i.__values(d.sourceLinks)),v=m.next();!v.done;v=m.next()){var y=v.value,x=y.target,w=y.width;if(x===e)break;g+=w+b/2}}catch(_){o={error:_}}finally{try{v&&!v.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}g=(s-g-d.y0)*t*(f/Math.min(e.value,d.value)),d.y0+=g,d.y1+=g}s+=p+b/2}}catch(C){n={error:C}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}))}))}function v(){a.forEach((function(e){var n,i,r,a=o,l=e.length;for(void 0===t&&e.sort(p),r=0;r<l;++r)n=e[r],i=a-n.y0,i>0&&(n.y0+=i,n.y1+=i),a=n.y1+b;if(i=a-b-s,i>0)for(a=n.y0-=i,n.y1-=i,r=l-2;r>=0;--r)n=e[r],i=n.y1+b-a,i>0&&(n.y0-=i,n.y1-=i),a=n.y0}))}}function T(t){t.nodes.forEach((function(t){t.sourceLinks.sort(d),t.targetLinks.sort(h)})),t.nodes.forEach((function(t){var e=t.y0,n=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=n+t.width/2,n+=t.width}))}))}return I.update=function(t){return T(t),t},I.nodeId=function(t){return arguments.length?(x="function"===typeof t?t:u(t),I):x},I.nodeAlign=function(t){return arguments.length?(w="function"===typeof t?t:u(t),I):w},I.nodeSort=function(e){return arguments.length?(t=e,I):t},I.nodeWidth=function(t){return arguments.length?(c=+t,I):c},I.nodePadding=function(t){return arguments.length?(b=+t,I):b},I.nodes=function(t){return arguments.length?(_="function"===typeof t?t:u(t),I):_},I.links=function(t){return arguments.length?(C="function"===typeof t?t:u(t),I):C},I.size=function(t){return arguments.length?(r=o=0,a=+t[0],s=+t[1],I):[a-r,s-o]},I.extent=function(t){return arguments.length?(r=+t[0][0],a=+t[1][0],o=+t[0][1],s=+t[1][1],I):[[r,o],[a,s]]},I.iterations=function(t){return arguments.length?(A=+t,I):A},I}function x(t){return[t.source.x1,t.y0]}function w(t){return[t.target.x0,t.y1]}function _(){return r.linkHorizontal().source(x).target(w)}t.sankey=b,t.sankeyCenter=c,t.sankeyLeft=a,t.sankeyRight=s,t.sankeyJustify=l,t.sankeyLinkHorizontal=_,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js":
/*!****************************************************************!*\
  !*** ./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){(function(t,i){i(e,n(/*! d3-path */"./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js"))})(0,(function(t,e){"use strict";function n(t){return function(){return t}}var i=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,h=Math.PI,d=h/2,p=2*h;function f(t){return t>1?0:t<-1?h:Math.acos(t)}function g(t){return t>=1?d:t<=-1?-d:Math.asin(t)}function m(t){return t.innerRadius}function v(t){return t.outerRadius}function y(t){return t.startAngle}function b(t){return t.endAngle}function x(t){return t&&t.padAngle}function w(t,e,n,i,r,o,a,s){var l=n-t,c=i-e,h=a-r,d=s-o,p=d*l-h*c;if(!(p*p<u))return p=(h*(e-o)-d*(t-r))/p,[t+p*l,e+p*c]}function _(t,e,n,i,r,o,s){var l=t-n,u=e-i,h=(s?o:-o)/c(l*l+u*u),d=h*u,p=-h*l,f=t+d,g=e+p,m=n+d,v=i+p,y=(f+m)/2,b=(g+v)/2,x=m-f,w=v-g,_=x*x+w*w,C=r-o,A=f*v-m*g,I=(w<0?-1:1)*c(a(0,C*C*_-A*A)),S=(A*w-x*I)/_,M=(-A*x-w*I)/_,k=(A*w+x*I)/_,E=(-A*x+w*I)/_,T=S-y,O=M-b,P=k-y,j=E-b;return T*T+O*O>P*P+j*j&&(S=k,M=E),{cx:S,cy:M,x01:-d,y01:-p,x11:S*(r/C-1),y11:M*(r/C-1)}}function C(){var t=m,a=v,C=n(0),A=null,I=y,S=b,M=x,k=null;function E(){var n,m,v=+t.apply(this,arguments),y=+a.apply(this,arguments),b=I.apply(this,arguments)-d,x=S.apply(this,arguments)-d,E=i(x-b),T=x>b;if(k||(k=n=e.path()),y<v&&(m=y,y=v,v=m),y>u)if(E>p-u)k.moveTo(y*o(b),y*l(b)),k.arc(0,0,y,b,x,!T),v>u&&(k.moveTo(v*o(x),v*l(x)),k.arc(0,0,v,x,b,T));else{var O,P,j=b,L=x,D=b,R=x,B=E,N=E,F=M.apply(this,arguments)/2,z=F>u&&(A?+A.apply(this,arguments):c(v*v+y*y)),V=s(i(y-v)/2,+C.apply(this,arguments)),G=V,H=V;if(z>u){var W=g(z/v*l(F)),U=g(z/y*l(F));(B-=2*W)>u?(W*=T?1:-1,D+=W,R-=W):(B=0,D=R=(b+x)/2),(N-=2*U)>u?(U*=T?1:-1,j+=U,L-=U):(N=0,j=L=(b+x)/2)}var Z=y*o(j),Y=y*l(j),X=v*o(R),q=v*l(R);if(V>u){var K,Q=y*o(L),J=y*l(L),$=v*o(D),tt=v*l(D);if(E<h&&(K=w(Z,Y,$,tt,Q,J,X,q))){var et=Z-K[0],nt=Y-K[1],it=Q-K[0],rt=J-K[1],ot=1/l(f((et*it+nt*rt)/(c(et*et+nt*nt)*c(it*it+rt*rt)))/2),at=c(K[0]*K[0]+K[1]*K[1]);G=s(V,(v-at)/(ot-1)),H=s(V,(y-at)/(ot+1))}}N>u?H>u?(O=_($,tt,Z,Y,y,H,T),P=_(Q,J,X,q,y,H,T),k.moveTo(O.cx+O.x01,O.cy+O.y01),H<V?k.arc(O.cx,O.cy,H,r(O.y01,O.x01),r(P.y01,P.x01),!T):(k.arc(O.cx,O.cy,H,r(O.y01,O.x01),r(O.y11,O.x11),!T),k.arc(0,0,y,r(O.cy+O.y11,O.cx+O.x11),r(P.cy+P.y11,P.cx+P.x11),!T),k.arc(P.cx,P.cy,H,r(P.y11,P.x11),r(P.y01,P.x01),!T))):(k.moveTo(Z,Y),k.arc(0,0,y,j,L,!T)):k.moveTo(Z,Y),v>u&&B>u?G>u?(O=_(X,q,Q,J,v,-G,T),P=_(Z,Y,$,tt,v,-G,T),k.lineTo(O.cx+O.x01,O.cy+O.y01),G<V?k.arc(O.cx,O.cy,G,r(O.y01,O.x01),r(P.y01,P.x01),!T):(k.arc(O.cx,O.cy,G,r(O.y01,O.x01),r(O.y11,O.x11),!T),k.arc(0,0,v,r(O.cy+O.y11,O.cx+O.x11),r(P.cy+P.y11,P.cx+P.x11),T),k.arc(P.cx,P.cy,G,r(P.y11,P.x11),r(P.y01,P.x01),!T))):k.arc(0,0,v,R,D,T):k.lineTo(X,q)}else k.moveTo(0,0);if(k.closePath(),n)return k=null,n+""||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +a.apply(this,arguments))/2,n=(+I.apply(this,arguments)+ +S.apply(this,arguments))/2-h/2;return[o(n)*e,l(n)*e]},E.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),E):t},E.outerRadius=function(t){return arguments.length?(a="function"===typeof t?t:n(+t),E):a},E.cornerRadius=function(t){return arguments.length?(C="function"===typeof t?t:n(+t),E):C},E.padRadius=function(t){return arguments.length?(A=null==t?null:"function"===typeof t?t:n(+t),E):A},E.startAngle=function(t){return arguments.length?(I="function"===typeof t?t:n(+t),E):I},E.endAngle=function(t){return arguments.length?(S="function"===typeof t?t:n(+t),E):S},E.padAngle=function(t){return arguments.length?(M="function"===typeof t?t:n(+t),E):M},E.context=function(t){return arguments.length?(k=null==t?null:t,E):k},E}function A(t){this._context=t}function I(t){return new A(t)}function S(t){return t[0]}function M(t){return t[1]}function k(){var t=S,i=M,r=n(!0),o=null,a=I,s=null;function l(n){var l,c,u,h=n.length,d=!1;for(null==o&&(s=a(u=e.path())),l=0;l<=h;++l)!(l<h&&r(c=n[l],l,n))===d&&((d=!d)?s.lineStart():s.lineEnd()),d&&s.point(+t(c,l,n),+i(c,l,n));if(u)return s=null,u+""||null}return l.x=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),l):t},l.y=function(t){return arguments.length?(i="function"===typeof t?t:n(+t),l):i},l.defined=function(t){return arguments.length?(r="function"===typeof t?t:n(!!t),l):r},l.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),l):o},l}function E(){var t=S,i=null,r=n(0),o=M,a=n(!0),s=null,l=I,c=null;function u(n){var u,h,d,p,f,g=n.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&&(c=l(f=e.path())),u=0;u<=g;++u){if(!(u<g&&a(p=n[u],u,n))===m)if(m=!m)h=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),d=u-1;d>=h;--d)c.point(v[d],y[d]);c.lineEnd(),c.areaEnd()}m&&(v[u]=+t(p,u,n),y[u]=+r(p,u,n),c.point(i?+i(p,u,n):v[u],o?+o(p,u,n):y[u]))}if(f)return c=null,f+""||null}function h(){return k().defined(a).curve(l).context(s)}return u.x=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),i=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),u):t},u.x1=function(t){return arguments.length?(i=null==t?null:"function"===typeof t?t:n(+t),u):i},u.y=function(t){return arguments.length?(r="function"===typeof t?t:n(+t),o=null,u):r},u.y0=function(t){return arguments.length?(r="function"===typeof t?t:n(+t),u):r},u.y1=function(t){return arguments.length?(o=null==t?null:"function"===typeof t?t:n(+t),u):o},u.lineX0=u.lineY0=function(){return h().x(t).y(r)},u.lineY1=function(){return h().x(t).y(o)},u.lineX1=function(){return h().x(i).y(r)},u.defined=function(t){return arguments.length?(a="function"===typeof t?t:n(!!t),u):a},u.curve=function(t){return arguments.length?(l=t,null!=s&&(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function T(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function O(t){return t}function P(){var t=O,e=T,i=null,r=n(0),o=n(p),a=n(0);function s(n){var s,l,c,u,h,d=n.length,f=0,g=new Array(d),m=new Array(d),v=+r.apply(this,arguments),y=Math.min(p,Math.max(-p,o.apply(this,arguments)-v)),b=Math.min(Math.abs(y)/d,a.apply(this,arguments)),x=b*(y<0?-1:1);for(s=0;s<d;++s)(h=m[g[s]=s]=+t(n[s],s,n))>0&&(f+=h);for(null!=e?g.sort((function(t,n){return e(m[t],m[n])})):null!=i&&g.sort((function(t,e){return i(n[t],n[e])})),s=0,c=f?(y-d*x)/f:0;s<d;++s,v=u)l=g[s],h=m[l],u=v+(h>0?h*c:0)+x,m[l]={data:n[l],index:s,value:h,startAngle:v,endAngle:u,padAngle:b};return m}return s.value=function(e){return arguments.length?(t="function"===typeof e?e:n(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,i=null,s):e},s.sort=function(t){return arguments.length?(i=t,e=null,s):i},s.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:n(+t),s):r},s.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:n(+t),s):o},s.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:n(+t),s):a},s}A.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};var j=D(I);function L(t){this._curve=t}function D(t){function e(e){return new L(t(e))}return e._curve=t,e}function R(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(D(t)):e()._curve},t}function B(){return R(k().curve(j))}function N(){var t=E().curve(j),e=t.curve,n=t.lineX0,i=t.lineX1,r=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return R(n())},delete t.lineX0,t.lineEndAngle=function(){return R(i())},delete t.lineX1,t.lineInnerRadius=function(){return R(r())},delete t.lineY0,t.lineOuterRadius=function(){return R(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(D(t)):e()._curve},t}function F(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}L.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var z=Array.prototype.slice;function V(t){return t.source}function G(t){return t.target}function H(t){var i=V,r=G,o=S,a=M,s=null;function l(){var n,l=z.call(arguments),c=i.apply(this,l),u=r.apply(this,l);if(s||(s=n=e.path()),t(s,+o.apply(this,(l[0]=c,l)),+a.apply(this,l),+o.apply(this,(l[0]=u,l)),+a.apply(this,l)),n)return s=null,n+""||null}return l.source=function(t){return arguments.length?(i=t,l):i},l.target=function(t){return arguments.length?(r=t,l):r},l.x=function(t){return arguments.length?(o="function"===typeof t?t:n(+t),l):o},l.y=function(t){return arguments.length?(a="function"===typeof t?t:n(+t),l):a},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function W(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function U(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+r)/2,i,n,i,r)}function Z(t,e,n,i,r){var o=F(e,n),a=F(e,n=(n+r)/2),s=F(i,n),l=F(i,r);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}function Y(){return H(W)}function X(){return H(U)}function q(){var t=H(Z);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var K={draw:function(t,e){var n=Math.sqrt(e/h);t.moveTo(n,0),t.arc(0,0,n,0,p)}},Q={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},J=Math.sqrt(1/3),$=2*J,tt={draw:function(t,e){var n=Math.sqrt(e/$),i=n*J;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},et=.8908130915292852,nt=Math.sin(h/10)/Math.sin(7*h/10),it=Math.sin(p/10)*nt,rt=-Math.cos(p/10)*nt,ot={draw:function(t,e){var n=Math.sqrt(e*et),i=it*n,r=rt*n;t.moveTo(0,-n),t.lineTo(i,r);for(var o=1;o<5;++o){var a=p*o/5,s=Math.cos(a),l=Math.sin(a);t.lineTo(l*n,-s*n),t.lineTo(s*i-l*r,l*i+s*r)}t.closePath()}},at={draw:function(t,e){var n=Math.sqrt(e),i=-n/2;t.rect(i,i,n,n)}},st=Math.sqrt(3),lt={draw:function(t,e){var n=-Math.sqrt(e/(3*st));t.moveTo(0,2*n),t.lineTo(-st*n,-n),t.lineTo(st*n,-n),t.closePath()}},ct=-.5,ut=Math.sqrt(3)/2,ht=1/Math.sqrt(12),dt=3*(ht/2+1),pt={draw:function(t,e){var n=Math.sqrt(e/dt),i=n/2,r=n*ht,o=i,a=n*ht+n,s=-o,l=a;t.moveTo(i,r),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(ct*i-ut*r,ut*i+ct*r),t.lineTo(ct*o-ut*a,ut*o+ct*a),t.lineTo(ct*s-ut*l,ut*s+ct*l),t.lineTo(ct*i+ut*r,ct*r-ut*i),t.lineTo(ct*o+ut*a,ct*a-ut*o),t.lineTo(ct*s+ut*l,ct*l-ut*s),t.closePath()}},ft=[K,Q,tt,at,ot,lt,pt];function gt(){var t=n(K),i=n(64),r=null;function o(){var n;if(r||(r=n=e.path()),t.apply(this,arguments).draw(r,+i.apply(this,arguments)),n)return r=null,n+""||null}return o.type=function(e){return arguments.length?(t="function"===typeof e?e:n(e),o):t},o.size=function(t){return arguments.length?(i="function"===typeof t?t:n(+t),o):i},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}function mt(){}function vt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function yt(t){this._context=t}function bt(t){return new yt(t)}function xt(t){this._context=t}function wt(t){return new xt(t)}function _t(t){this._context=t}function Ct(t){return new _t(t)}function At(t,e){this._basis=new yt(t),this._beta=e}yt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:vt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:vt(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xt.prototype={areaStart:mt,areaEnd:mt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:vt(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},_t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:vt(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},At.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0){var i,r=t[0],o=e[0],a=t[n]-r,s=e[n]-o,l=-1;while(++l<=n)i=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(r+i*a),this._beta*e[l]+(1-this._beta)*(o+i*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var It=function t(e){function n(t){return 1===e?new yt(t):new At(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function St(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Mt(t,e){this._context=t,this._k=(1-e)/6}Mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:St(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:St(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function n(t){return new Mt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Et(t,e){this._context=t,this._k=(1-e)/6}Et.prototype={areaStart:mt,areaEnd:mt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:St(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Tt=function t(e){function n(t){return new Et(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ot(t,e){this._context=t,this._k=(1-e)/6}Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:St(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Pt=function t(e){function n(t){return new Ot(t,e)}return n.tension=function(e){return t(+e)},n}(0);function jt(t,e,n){var i=t._x1,r=t._y1,o=t._x2,a=t._y2;if(t._l01_a>u){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>u){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(i,r,o,a,t._x2,t._y2)}function Lt(t,e){this._context=t,this._alpha=e}Lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:jt(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Dt=function t(e){function n(t){return e?new Lt(t,e):new Mt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Rt(t,e){this._context=t,this._alpha=e}Rt.prototype={areaStart:mt,areaEnd:mt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:jt(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bt=function t(e){function n(t){return e?new Rt(t,e):new Et(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Nt(t,e){this._context=t,this._alpha=e}Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:jt(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ft=function t(e){function n(t){return e?new Nt(t,e):new Ot(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function zt(t){this._context=t}function Vt(t){return new zt(t)}function Gt(t){return t<0?-1:1}function Ht(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),a=(n-t._y1)/(r||i<0&&-0),s=(o*r+a*i)/(i+r);return(Gt(o)+Gt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Wt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Ut(t,e,n){var i=t._x0,r=t._y0,o=t._x1,a=t._y1,s=(o-i)/3;t._context.bezierCurveTo(i+s,r+s*e,o-s,a-s*n,o,a)}function Zt(t){this._context=t}function Yt(t){this._context=new Xt(t)}function Xt(t){this._context=t}function qt(t){return new Zt(t)}function Kt(t){return new Yt(t)}function Qt(t){this._context=t}function Jt(t){var e,n,i=t.length-1,r=new Array(i),o=new Array(i),a=new Array(i);for(r[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<i-1;++e)r[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(r[i-1]=2,o[i-1]=7,a[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=r[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(r[i-1]=a[i-1]/o[i-1],e=i-2;e>=0;--e)r[e]=(a[e]-r[e+1])/o[e];for(o[i-1]=(t[i]+r[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function $t(t){return new Qt(t)}function te(t,e){this._context=t,this._t=e}function ee(t){return new te(t,.5)}function ne(t){return new te(t,0)}function ie(t){return new te(t,1)}function re(t,e){if((r=t.length)>1)for(var n,i,r,o=1,a=t[e[0]],s=a.length;o<r;++o)for(i=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function oe(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n}function ae(t,e){return t[e]}function se(){var t=n([]),e=oe,i=re,r=ae;function o(n){var o,a,s=t.apply(this,arguments),l=n.length,c=s.length,u=new Array(c);for(o=0;o<c;++o){for(var h,d=s[o],p=u[o]=new Array(l),f=0;f<l;++f)p[f]=h=[0,+r(n[f],d,f,n)],h.data=n[f];p.key=d}for(o=0,a=e(u);o<c;++o)u[a[o]].index=o;return i(u,a),u}return o.keys=function(e){return arguments.length?(t="function"===typeof e?e:n(z.call(e)),o):t},o.value=function(t){return arguments.length?(r="function"===typeof t?t:n(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?oe:"function"===typeof t?t:n(z.call(t)),o):e},o.offset=function(t){return arguments.length?(i=null==t?re:t,o):i},o}function le(t,e){if((i=t.length)>0){for(var n,i,r,o=0,a=t[0].length;o<a;++o){for(r=n=0;n<i;++n)r+=t[n][o][1]||0;if(r)for(n=0;n<i;++n)t[n][o][1]/=r}re(t,e)}}function ce(t,e){if((s=t.length)>0)for(var n,i,r,o,a,s,l=0,c=t[e[0]].length;l<c;++l)for(o=a=0,n=0;n<s;++n)(r=(i=t[e[n]][l])[1]-i[0])>0?(i[0]=o,i[1]=o+=r):r<0?(i[1]=a,i[0]=a+=r):(i[0]=0,i[1]=r)}function ue(t,e){if((n=t.length)>0){for(var n,i=0,r=t[e[0]],o=r.length;i<o;++i){for(var a=0,s=0;a<n;++a)s+=t[a][i][1]||0;r[i][1]+=r[i][0]=-s/2}re(t,e)}}function he(t,e){if((r=t.length)>0&&(i=(n=t[e[0]]).length)>0){for(var n,i,r,o=0,a=1;a<i;++a){for(var s=0,l=0,c=0;s<r;++s){for(var u=t[e[s]],h=u[a][1]||0,d=u[a-1][1]||0,p=(h-d)/2,f=0;f<s;++f){var g=t[e[f]],m=g[a][1]||0,v=g[a-1][1]||0;p+=m-v}l+=h,c+=p*h}n[a-1][1]+=n[a-1][0]=o,l&&(o-=c/l)}n[a-1][1]+=n[a-1][0]=o,re(t,e)}}function de(t){var e=t.map(pe);return oe(t).sort((function(t,n){return e[t]-e[n]}))}function pe(t){var e,n=-1,i=0,r=t.length,o=-1/0;while(++n<r)(e=+t[n][1])>o&&(o=e,i=n);return i}function fe(t){var e=t.map(ge);return oe(t).sort((function(t,n){return e[t]-e[n]}))}function ge(t){var e,n=0,i=-1,r=t.length;while(++i<r)(e=+t[i][1])&&(n+=e);return n}function me(t){return fe(t).reverse()}function ve(t){var e,n,i=t.length,r=t.map(ge),o=de(t),a=0,s=0,l=[],c=[];for(e=0;e<i;++e)n=o[e],a<s?(a+=r[n],l.push(n)):(s+=r[n],c.push(n));return c.reverse().concat(l)}function ye(t){return oe(t).reverse()}zt.prototype={areaStart:mt,areaEnd:mt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Zt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ut(this,this._t0,Wt(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ut(this,Wt(this,n=Ht(this,t,e)),n);break;default:Ut(this,this._t0,n=Ht(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Yt.prototype=Object.create(Zt.prototype)).point=function(t,e){Zt.prototype.point.call(this,e,t)},Xt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}},Qt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=Jt(t),r=Jt(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}this._x=t,this._y=e}},t.arc=C,t.area=E,t.areaRadial=N,t.curveBasis=bt,t.curveBasisClosed=wt,t.curveBasisOpen=Ct,t.curveBundle=It,t.curveCardinal=kt,t.curveCardinalClosed=Tt,t.curveCardinalOpen=Pt,t.curveCatmullRom=Dt,t.curveCatmullRomClosed=Bt,t.curveCatmullRomOpen=Ft,t.curveLinear=I,t.curveLinearClosed=Vt,t.curveMonotoneX=qt,t.curveMonotoneY=Kt,t.curveNatural=$t,t.curveStep=ee,t.curveStepAfter=ie,t.curveStepBefore=ne,t.line=k,t.lineRadial=B,t.linkHorizontal=Y,t.linkRadial=q,t.linkVertical=X,t.pie=P,t.pointRadial=F,t.radialArea=N,t.radialLine=B,t.stack=se,t.stackOffsetDiverging=ce,t.stackOffsetExpand=le,t.stackOffsetNone=re,t.stackOffsetSilhouette=ue,t.stackOffsetWiggle=he,t.stackOrderAppearance=de,t.stackOrderAscending=fe,t.stackOrderDescending=me,t.stackOrderInsideOut=ve,t.stackOrderNone=oe,t.stackOrderReverse=ye,t.symbol=gt,t.symbolCircle=K,t.symbolCross=Q,t.symbolDiamond=tt,t.symbolSquare=at,t.symbolStar=ot,t.symbolTriangle=lt,t.symbolWye=pt,t.symbols=ft,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t){return function(){return t}}function n(t){return t[0]}function i(t){return t[1]}function r(){this._=null}function o(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function a(t,e){var n=e,i=e.R,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function s(t,e){var n=e,i=e.L,r=n.U;r?r.L===n?r.L=i:r.R=i:t._=i,i.U=r,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function l(t){while(t.L)t=t.L;return t}function c(t,e,n,i){var r=[null,null],o=B.push(r)-1;return r.left=t,r.right=e,n&&h(r,t,e,n),i&&h(r,e,t,i),D[t.index].halfedges.push(o),D[e.index].halfedges.push(o),r}function u(t,e,n){var i=[e,n];return i.left=t,i}function h(t,e,n,i){t[0]||t[1]?t.left===n?t[1]=i:t[0]=i:(t[0]=i,t.left=e,t.right=n)}function d(t,e,n,i,r){var o,a=t[0],s=t[1],l=a[0],c=a[1],u=s[0],h=s[1],d=0,p=1,f=u-l,g=h-c;if(o=e-l,f||!(o>0)){if(o/=f,f<0){if(o<d)return;o<p&&(p=o)}else if(f>0){if(o>p)return;o>d&&(d=o)}if(o=i-l,f||!(o<0)){if(o/=f,f<0){if(o>p)return;o>d&&(d=o)}else if(f>0){if(o<d)return;o<p&&(p=o)}if(o=n-c,g||!(o>0)){if(o/=g,g<0){if(o<d)return;o<p&&(p=o)}else if(g>0){if(o>p)return;o>d&&(d=o)}if(o=r-c,g||!(o<0)){if(o/=g,g<0){if(o>p)return;o>d&&(d=o)}else if(g>0){if(o<d)return;o<p&&(p=o)}return!(d>0||p<1)||(d>0&&(t[0]=[l+d*f,c+d*g]),p<1&&(t[1]=[l+p*f,c+p*g]),!0)}}}}}function p(t,e,n,i,r){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,u=t.right,h=c[0],d=c[1],p=u[0],f=u[1],g=(h+p)/2,m=(d+f)/2;if(f===d){if(g<e||g>=i)return;if(h>p){if(l){if(l[1]>=r)return}else l=[g,n];o=[g,r]}else{if(l){if(l[1]<n)return}else l=[g,r];o=[g,n]}}else if(a=(h-p)/(f-d),s=m-a*g,a<-1||a>1)if(h>p){if(l){if(l[1]>=r)return}else l=[(n-s)/a,n];o=[(r-s)/a,r]}else{if(l){if(l[1]<n)return}else l=[(r-s)/a,r];o=[(n-s)/a,n]}else if(d<f){if(l){if(l[0]>=i)return}else l=[e,a*e+s];o=[i,a*i+s]}else{if(l){if(l[0]<e)return}else l=[i,a*i+s];o=[e,a*e+s]}return t[0]=l,t[1]=o,!0}function f(t,e,n,i){var r,o=B.length;while(o--)p(r=B[o],t,e,n,i)&&d(r,t,e,n,i)&&(Math.abs(r[0][0]-r[1][0])>N||Math.abs(r[0][1]-r[1][1])>N)||delete B[o]}function g(t){return D[t.index]={site:t,halfedges:[]}}function m(t,e){var n=t.site,i=e.left,r=e.right;return n===r&&(r=i,i=n),r?Math.atan2(r[1]-i[1],r[0]-i[0]):(n===i?(i=e[1],r=e[0]):(i=e[0],r=e[1]),Math.atan2(i[0]-r[0],r[1]-i[1]))}function v(t,e){return e[+(e.left!==t.site)]}function y(t,e){return e[+(e.left===t.site)]}function b(){for(var t,e,n,i,r=0,o=D.length;r<o;++r)if((t=D[r])&&(i=(e=t.halfedges).length)){var a=new Array(i),s=new Array(i);for(n=0;n<i;++n)a[n]=n,s[n]=m(t,B[e[n]]);for(a.sort((function(t,e){return s[e]-s[t]})),n=0;n<i;++n)s[n]=e[a[n]];for(n=0;n<i;++n)e[n]=s[n]}}function x(t,e,n,i){var r,o,a,s,l,c,h,d,p,f,g,m,b=D.length,x=!0;for(r=0;r<b;++r)if(o=D[r]){a=o.site,l=o.halfedges,s=l.length;while(s--)B[l[s]]||l.splice(s,1);s=0,c=l.length;while(s<c)f=y(o,B[l[s]]),g=f[0],m=f[1],h=v(o,B[l[++s%c]]),d=h[0],p=h[1],(Math.abs(g-d)>N||Math.abs(m-p)>N)&&(l.splice(s,0,B.push(u(a,f,Math.abs(g-t)<N&&i-m>N?[t,Math.abs(d-t)<N?p:i]:Math.abs(m-i)<N&&n-g>N?[Math.abs(p-i)<N?d:n,i]:Math.abs(g-n)<N&&m-e>N?[n,Math.abs(d-n)<N?p:e]:Math.abs(m-e)<N&&g-t>N?[Math.abs(p-e)<N?d:t,e]:null))-1),++c);c&&(x=!1)}if(x){var w,_,C,A=1/0;for(r=0,x=null;r<b;++r)(o=D[r])&&(a=o.site,w=a[0]-t,_=a[1]-e,C=w*w+_*_,C<A&&(A=C,x=o));if(x){var I=[t,e],S=[t,i],M=[n,i],k=[n,e];x.halfedges.push(B.push(u(a=x.site,I,S))-1,B.push(u(a,S,M))-1,B.push(u(a,M,k))-1,B.push(u(a,k,I))-1)}}for(r=0;r<b;++r)(o=D[r])&&(o.halfedges.length||delete D[r])}r.prototype={constructor:r,insert:function(t,e){var n,i,r;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){t=t.R;while(t.L)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=l(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);e.L=e.R=null,e.U=n,e.C=!0,t=e;while(n&&n.C)i=n.U,n===i.L?(r=i.R,r&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.R&&(a(this,n),t=n,n=t.U),n.C=!1,i.C=!0,s(this,i))):(r=i.L,r&&r.C?(n.C=r.C=!1,i.C=!0,t=i):(t===n.L&&(s(this,n),t=n,n=t.U),n.C=!1,i.C=!0,a(this,i))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,i,r=t.U,o=t.L,c=t.R;if(n=o?c?l(c):o:c,r?r.L===t?r.L=n:r.R=n:this._=n,o&&c?(i=n.C,n.C=t.C,n.L=o,o.U=n,n!==c?(r=n.U,n.U=t.U,t=n.R,r.L=t,n.R=c,c.U=n):(n.U=r,r=n,t=n.R)):(i=t.C,t=n),t&&(t.U=r),!i)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===r.L){if(e=r.R,e.C&&(e.C=!1,r.C=!0,a(this,r),e=r.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,s(this,e),e=r.R),e.C=r.C,r.C=e.R.C=!1,a(this,r),t=this._;break}}else if(e=r.L,e.C&&(e.C=!1,r.C=!0,s(this,r),e=r.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,a(this,e),e=r.L),e.C=r.C,r.C=e.L.C=!1,s(this,r),t=this._;break}e.C=!0,t=r,r=r.U}while(!t.C);t&&(t.C=!1)}}};var w,_=[];function C(){o(this),this.x=this.y=this.arc=this.site=this.cy=null}function A(t){var e=t.P,n=t.N;if(e&&n){var i=e.site,r=t.site,o=n.site;if(i!==o){var a=r[0],s=r[1],l=i[0]-a,c=i[1]-s,u=o[0]-a,h=o[1]-s,d=2*(l*h-c*u);if(!(d>=-F)){var p=l*l+c*c,f=u*u+h*h,g=(h*p-c*f)/d,m=(l*f-u*p)/d,v=_.pop()||new C;v.arc=t,v.site=r,v.x=g+a,v.y=(v.cy=m+s)+Math.sqrt(g*g+m*m),t.circle=v;var y=null,b=R._;while(b)if(v.y<b.y||v.y===b.y&&v.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}R.insert(y,v),y||(w=v)}}}}function I(t){var e=t.circle;e&&(e.P||(w=e.N),R.remove(e),_.push(e),o(e),t.circle=null)}var S=[];function M(){o(this),this.edge=this.site=this.circle=null}function k(t){var e=S.pop()||new M;return e.site=t,e}function E(t){I(t),L.remove(t),S.push(t),o(t)}function T(t){var e=t.circle,n=e.x,i=e.cy,r=[n,i],o=t.P,a=t.N,s=[t];E(t);var l=o;while(l.circle&&Math.abs(n-l.circle.x)<N&&Math.abs(i-l.circle.cy)<N)o=l.P,s.unshift(l),E(l),l=o;s.unshift(l),I(l);var u=a;while(u.circle&&Math.abs(n-u.circle.x)<N&&Math.abs(i-u.circle.cy)<N)a=u.N,s.push(u),E(u),u=a;s.push(u),I(u);var d,p=s.length;for(d=1;d<p;++d)u=s[d],l=s[d-1],h(u.edge,l.site,u.site,r);l=s[0],u=s[p-1],u.edge=c(l.site,u.site,null,r),A(l),A(u)}function O(t){var e,n,i,r,o=t[0],a=t[1],s=L._;while(s)if(i=P(s,a)-o,i>N)s=s.L;else{if(r=o-j(s,a),!(r>N)){i>-N?(e=s.P,n=s):r>-N?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}g(t);var l=k(t);if(L.insert(e,l),e||n){if(e===n)return I(e),n=k(e.site),L.insert(l,n),l.edge=n.edge=c(e.site,l.site),A(e),void A(n);if(n){I(e),I(n);var u=e.site,d=u[0],p=u[1],f=t[0]-d,m=t[1]-p,v=n.site,y=v[0]-d,b=v[1]-p,x=2*(f*b-m*y),w=f*f+m*m,_=y*y+b*b,C=[(b*w-m*_)/x+d,(f*_-y*w)/x+p];h(n.edge,u,v,C),l.edge=c(u,t,null,C),n.edge=c(t,v,null,C),A(e),A(n)}else l.edge=c(e.site,l.site)}}function P(t,e){var n=t.site,i=n[0],r=n[1],o=r-e;if(!o)return i;var a=t.P;if(!a)return-1/0;n=a.site;var s=n[0],l=n[1],c=l-e;if(!c)return s;var u=s-i,h=1/o-1/c,d=u/c;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*c)-l+c/2+r-o/2)))/h+i:(i+s)/2}function j(t,e){var n=t.N;if(n)return P(n,e);var i=t.site;return i[1]===e?i[0]:1/0}var L,D,R,B,N=1e-6,F=1e-12;function z(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function V(t,e){return e[1]-t[1]||e[0]-t[0]}function G(t,e){var n,i,o,a=t.sort(V).pop();B=[],D=new Array(t.length),L=new r,R=new r;while(1)if(o=w,a&&(!o||a[1]<o.y||a[1]===o.y&&a[0]<o.x))a[0]===n&&a[1]===i||(O(a),n=a[0],i=a[1]),a=t.pop();else{if(!o)break;T(o.arc)}if(b(),e){var s=+e[0][0],l=+e[0][1],c=+e[1][0],u=+e[1][1];f(s,l,c,u),x(s,l,c,u)}this.edges=B,this.cells=D,L=R=B=D=null}function H(){var t=n,r=i,o=null;function a(e){return new G(e.map((function(n,i){var o=[Math.round(t(n,i,e)/N)*N,Math.round(r(n,i,e)/N)*N];return o.index=i,o.data=n,o})),o)}return a.polygons=function(t){return a(t).polygons()},a.links=function(t){return a(t).links()},a.triangles=function(t){return a(t).triangles()},a.x=function(n){return arguments.length?(t="function"===typeof n?n:e(+n),a):t},a.y=function(t){return arguments.length?(r="function"===typeof t?t:e(+t),a):r},a.extent=function(t){return arguments.length?(o=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],a):o&&[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},a.size=function(t){return arguments.length?(o=null==t?null:[[0,0],[+t[0],+t[1]]],a):o&&[o[1][0]-o[0][0],o[1][1]-o[0][1]]},a}G.prototype={constructor:G,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return v(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,i){if(o=(r=n.halfedges).length){var r,o,a,s=n.site,l=-1,c=e[r[o-1]],u=c.left===s?c.right:c.left;while(++l<o)a=u,c=e[r[l]],u=c.left===s?c.right:c.left,a&&u&&i<a.index&&i<u.index&&z(s,a,u)<0&&t.push([s.data,a.data,u.data])}})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,e,n){var i,r,o=this,a=o._found||0,s=o.cells.length;while(!(r=o.cells[a]))if(++a>=s)return null;var l=t-r.site[0],c=e-r.site[1],u=l*l+c*c;do{r=o.cells[i=a],a=null,r.halfedges.forEach((function(n){var i=o.edges[n],s=i.left;if(s!==r.site&&s||(s=i.right)){var l=t-s[0],c=e-s[1],h=l*l+c*c;h<u&&(u=h,a=s.index)}}))}while(null!==a);return o._found=i,null==n||u<=n*n?r.site:null}},t.voronoi=H,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_dagre@0.8.5@dagre/index.js":
/*!**************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/index.js ***!
  \**************************************************/
/*! no static exports found */function(t,e,n){t.exports={graphlib:n(/*! ./lib/graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js"),layout:n(/*! ./lib/layout */"./node_modules/_dagre@0.8.5@dagre/lib/layout.js"),debug:n(/*! ./lib/debug */"./node_modules/_dagre@0.8.5@dagre/lib/debug.js"),util:{time:n(/*! ./lib/util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").time,notime:n(/*! ./lib/util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").notime},version:n(/*! ./lib/version */"./node_modules/_dagre@0.8.5@dagre/lib/version.js")}},"./node_modules/_dagre@0.8.5@dagre/lib/acyclic.js":
/*!********************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/acyclic.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./greedy-fas */"./node_modules/_dagre@0.8.5@dagre/lib/greedy-fas.js");function o(t){var e="greedy"===t.graph().acyclicer?r(t,n(t)):a(t);function n(t){return function(e){return t.edge(e).weight}}i.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,i.uniqueId("rev"))}))}function a(t){var e=[],n={},r={};function o(a){i.has(r,a)||(r[a]=!0,n[a]=!0,i.forEach(t.outEdges(a),(function(t){i.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])}return i.forEach(t.nodes(),o),e}function s(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var i=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,i)}}))}t.exports={run:o,undo:s}},"./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.js":
/*!********************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function o(t){function e(n){var r=t.children(n),o=t.node(n);if(r.length&&i.forEach(r,e),i.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,l=o.maxRank+1;s<l;++s)a(t,"borderLeft","_bl",n,o,s),a(t,"borderRight","_br",n,o,s)}}i.forEach(t.children(),e)}function a(t,e,n,i,o,a){var s={width:0,height:0,rank:a,borderType:e},l=o[e][a-1],c=r.addDummyNode(t,"border",s,n);o[e][a]=c,t.setParent(c,i),l&&t.setEdge(l,c,{weight:1})}t.exports=o},"./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.js":
/*!******************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function r(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||a(t)}function o(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||l(t),"lr"!==e&&"rl"!==e||(u(t),a(t))}function a(t){i.forEach(t.nodes(),(function(e){s(t.node(e))})),i.forEach(t.edges(),(function(e){s(t.edge(e))}))}function s(t){var e=t.width;t.width=t.height,t.height=e}function l(t){i.forEach(t.nodes(),(function(e){c(t.node(e))})),i.forEach(t.edges(),(function(e){var n=t.edge(e);i.forEach(n.points,c),i.has(n,"y")&&c(n)}))}function c(t){t.y=-t.y}function u(t){i.forEach(t.nodes(),(function(e){h(t.node(e))})),i.forEach(t.edges(),(function(e){var n=t.edge(e);i.forEach(n.points,h),i.has(n,"x")&&h(n)}))}function h(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:r,undo:o}},"./node_modules/_dagre@0.8.5@dagre/lib/data/list.js":
/*!**********************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/data/list.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function i(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return i(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&i(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){var t=[],e=this._sentinel,n=e._prev;while(n!==e)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},"./node_modules/_dagre@0.8.5@dagre/lib/debug.js":
/*!******************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/debug.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js"),o=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function a(t){var e=r.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return i.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),i.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),i.forEach(e,(function(t,e){var r="layer"+e;n.setNode(r,{rank:"same"}),i.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}t.exports={debugOrdering:a}},"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js":
/*!*********************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i;try{i=n(/*! graphlib */"./node_modules/_graphlib@2.1.8@graphlib/index.js")}catch(r){}i||(i=window.graphlib),t.exports=i},"./node_modules/_dagre@0.8.5@dagre/lib/greedy-fas.js":
/*!***********************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/greedy-fas.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,o=n(/*! ./data/list */"./node_modules/_dagre@0.8.5@dagre/lib/data/list.js");t.exports=s;var a=i.constant(1);function s(t,e){if(t.nodeCount()<=1)return[];var n=u(t,e||a),r=l(n.graph,n.buckets,n.zeroIdx);return i.flatten(i.map(r,(function(e){return t.outEdges(e.v,e.w)})),!0)}function l(t,e,n){var i,r=[],o=e[e.length-1],a=e[0];while(t.nodeCount()){while(i=a.dequeue())c(t,e,n,i);while(i=o.dequeue())c(t,e,n,i);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(i=e[s].dequeue(),i){r=r.concat(c(t,e,n,i,!0));break}}return r}function c(t,e,n,r,o){var a=o?[]:void 0;return i.forEach(t.inEdges(r.v),(function(i){var r=t.edge(i),s=t.node(i.v);o&&a.push({v:i.v,w:i.w}),s.out-=r,h(e,n,s)})),i.forEach(t.outEdges(r.v),(function(i){var r=t.edge(i),o=i.w,a=t.node(o);a["in"]-=r,h(e,n,a)})),t.removeNode(r.v),a}function u(t,e){var n=new r,a=0,s=0;i.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),i.forEach(t.edges(),(function(t){var i=n.edge(t.v,t.w)||0,r=e(t),o=i+r;n.setEdge(t.v,t.w,o),s=Math.max(s,n.node(t.v).out+=r),a=Math.max(a,n.node(t.w)["in"]+=r)}));var l=i.range(s+a+3).map((function(){return new o})),c=a+1;return i.forEach(n.nodes(),(function(t){h(l,c,n.node(t))})),{graph:n,buckets:l,zeroIdx:c}}function h(t,e,n){n.out?n["in"]?t[n.out-n["in"]+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},"./node_modules/_dagre@0.8.5@dagre/lib/layout.js":
/*!*******************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/layout.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./acyclic */"./node_modules/_dagre@0.8.5@dagre/lib/acyclic.js"),o=n(/*! ./normalize */"./node_modules/_dagre@0.8.5@dagre/lib/normalize.js"),a=n(/*! ./rank */"./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js"),s=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").normalizeRanks,l=n(/*! ./parent-dummy-chains */"./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js"),c=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").removeEmptyRanks,u=n(/*! ./nesting-graph */"./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js"),h=n(/*! ./add-border-segments */"./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.js"),d=n(/*! ./coordinate-system */"./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.js"),p=n(/*! ./order */"./node_modules/_dagre@0.8.5@dagre/lib/order/index.js"),f=n(/*! ./position */"./node_modules/_dagre@0.8.5@dagre/lib/position/index.js"),g=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js"),m=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function v(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n("  buildLayoutGraph",(function(){return k(t)}));n("  runLayout",(function(){y(e,n)})),n("  updateInputGraph",(function(){b(t,e)}))}))}function y(t,e){e("    makeSpaceForEdgeLabels",(function(){E(t)})),e("    removeSelfEdges",(function(){N(t)})),e("    acyclic",(function(){r.run(t)})),e("    nestingGraph.run",(function(){u.run(t)})),e("    rank",(function(){a(g.asNonCompoundGraph(t))})),e("    injectEdgeLabelProxies",(function(){T(t)})),e("    removeEmptyRanks",(function(){c(t)})),e("    nestingGraph.cleanup",(function(){u.cleanup(t)})),e("    normalizeRanks",(function(){s(t)})),e("    assignRankMinMax",(function(){O(t)})),e("    removeEdgeLabelProxies",(function(){P(t)})),e("    normalize.run",(function(){o.run(t)})),e("    parentDummyChains",(function(){l(t)})),e("    addBorderSegments",(function(){h(t)})),e("    order",(function(){p(t)})),e("    insertSelfEdges",(function(){F(t)})),e("    adjustCoordinateSystem",(function(){d.adjust(t)})),e("    position",(function(){f(t)})),e("    positionSelfEdges",(function(){z(t)})),e("    removeBorderNodes",(function(){B(t)})),e("    normalize.undo",(function(){o.undo(t)})),e("    fixupEdgeLabelCoords",(function(){D(t)})),e("    undoCoordinateSystem",(function(){d.undo(t)})),e("    translateGraph",(function(){j(t)})),e("    assignNodeIntersects",(function(){L(t)})),e("    reversePoints",(function(){R(t)})),e("    acyclic.undo",(function(){r.undo(t)}))}function b(t,e){i.forEach(t.nodes(),(function(n){var i=t.node(n),r=e.node(n);i&&(i.x=r.x,i.y=r.y,e.children(n).length&&(i.width=r.width,i.height=r.height))})),i.forEach(t.edges(),(function(n){var r=t.edge(n),o=e.edge(n);r.points=o.points,i.has(o,"x")&&(r.x=o.x,r.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}t.exports=v;var x=["nodesep","edgesep","ranksep","marginx","marginy"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],C=["width","height"],A={width:0,height:0},I=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},M=["labelpos"];function k(t){var e=new m({multigraph:!0,compound:!0}),n=G(t.graph());return e.setGraph(i.merge({},w,V(n,x),i.pick(n,_))),i.forEach(t.nodes(),(function(n){var r=G(t.node(n));e.setNode(n,i.defaults(V(r,C),A)),e.setParent(n,t.parent(n))})),i.forEach(t.edges(),(function(n){var r=G(t.edge(n));e.setEdge(n,i.merge({},S,V(r,I),i.pick(r,M)))})),e}function E(t){var e=t.graph();e.ranksep/=2,i.forEach(t.edges(),(function(n){var i=t.edge(n);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)}))}function T(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var i=t.node(e.v),r=t.node(e.w),o={rank:(r.rank-i.rank)/2+i.rank,e:e};g.addDummyNode(t,"edge-proxy",o,"_ep")}}))}function O(t){var e=0;i.forEach(t.nodes(),(function(n){var r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=i.max(e,r.maxRank))})),t.graph().maxRank=e}function P(t){i.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}function j(t){var e=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,l=a.marginy||0;function c(t){var i=t.x,a=t.y,s=t.width,l=t.height;e=Math.min(e,i-s/2),n=Math.max(n,i+s/2),r=Math.min(r,a-l/2),o=Math.max(o,a+l/2)}i.forEach(t.nodes(),(function(e){c(t.node(e))})),i.forEach(t.edges(),(function(e){var n=t.edge(e);i.has(n,"x")&&c(n)})),e-=s,r-=l,i.forEach(t.nodes(),(function(n){var i=t.node(n);i.x-=e,i.y-=r})),i.forEach(t.edges(),(function(n){var o=t.edge(n);i.forEach(o.points,(function(t){t.x-=e,t.y-=r})),i.has(o,"x")&&(o.x-=e),i.has(o,"y")&&(o.y-=r)})),a.width=n-e+s,a.height=o-r+l}function L(t){i.forEach(t.edges(),(function(e){var n,i,r=t.edge(e),o=t.node(e.v),a=t.node(e.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=a,i=o),r.points.unshift(g.intersectRect(o,n)),r.points.push(g.intersectRect(a,i))}))}function D(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);if(i.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}))}function R(t){i.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}function B(t){i.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),r=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(i.last(n.borderLeft)),s=t.node(i.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}})),i.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}function N(t){i.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}function F(t){var e=g.buildLayerMatrix(t);i.forEach(e,(function(e){var n=0;i.forEach(e,(function(e,r){var o=t.node(e);o.order=r+n,i.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:r+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}function z(t){i.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var i=t.node(n.e.v),r=i.x+i.width/2,o=i.y,a=n.x-r,s=i.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:r+2*a/3,y:o-s},{x:r+5*a/6,y:o-s},{x:r+a,y:o},{x:r+5*a/6,y:o+s},{x:r+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}function V(t,e){return i.mapValues(i.pick(t,e),Number)}function G(t){var e={};return i.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js":
/*!*******************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/lodash.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){var i;try{i={cloneDeep:n(/*! lodash/cloneDeep */"./node_modules/_lodash@4.17.15@lodash/cloneDeep.js"),constant:n(/*! lodash/constant */"./node_modules/_lodash@4.17.15@lodash/constant.js"),defaults:n(/*! lodash/defaults */"./node_modules/_lodash@4.17.15@lodash/defaults.js"),each:n(/*! lodash/each */"./node_modules/_lodash@4.17.15@lodash/each.js"),filter:n(/*! lodash/filter */"./node_modules/_lodash@4.17.15@lodash/filter.js"),find:n(/*! lodash/find */"./node_modules/_lodash@4.17.15@lodash/find.js"),flatten:n(/*! lodash/flatten */"./node_modules/_lodash@4.17.15@lodash/flatten.js"),forEach:n(/*! lodash/forEach */"./node_modules/_lodash@4.17.15@lodash/forEach.js"),forIn:n(/*! lodash/forIn */"./node_modules/_lodash@4.17.15@lodash/forIn.js"),has:n(/*! lodash/has */"./node_modules/_lodash@4.17.15@lodash/has.js"),isUndefined:n(/*! lodash/isUndefined */"./node_modules/_lodash@4.17.15@lodash/isUndefined.js"),last:n(/*! lodash/last */"./node_modules/_lodash@4.17.15@lodash/last.js"),map:n(/*! lodash/map */"./node_modules/_lodash@4.17.15@lodash/map.js"),mapValues:n(/*! lodash/mapValues */"./node_modules/_lodash@4.17.15@lodash/mapValues.js"),max:n(/*! lodash/max */"./node_modules/_lodash@4.17.15@lodash/max.js"),merge:n(/*! lodash/merge */"./node_modules/_lodash@4.17.15@lodash/merge.js"),min:n(/*! lodash/min */"./node_modules/_lodash@4.17.15@lodash/min.js"),minBy:n(/*! lodash/minBy */"./node_modules/_lodash@4.17.15@lodash/minBy.js"),now:n(/*! lodash/now */"./node_modules/_lodash@4.17.15@lodash/now.js"),pick:n(/*! lodash/pick */"./node_modules/_lodash@4.17.15@lodash/pick.js"),range:n(/*! lodash/range */"./node_modules/_lodash@4.17.15@lodash/range.js"),reduce:n(/*! lodash/reduce */"./node_modules/_lodash@4.17.15@lodash/reduce.js"),sortBy:n(/*! lodash/sortBy */"./node_modules/_lodash@4.17.15@lodash/sortBy.js"),uniqueId:n(/*! lodash/uniqueId */"./node_modules/_lodash@4.17.15@lodash/uniqueId.js"),values:n(/*! lodash/values */"./node_modules/_lodash@4.17.15@lodash/values.js"),zipObject:n(/*! lodash/zipObject */"./node_modules/_lodash@4.17.15@lodash/zipObject.js")}}catch(r){}i||(i=window._),t.exports=i},"./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js":
/*!**************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function o(t){var e=r.addDummyNode(t,"root",{},"_root"),n=s(t),o=i.max(i.values(n))-1,c=2*o+1;t.graph().nestingRoot=e,i.forEach(t.edges(),(function(e){t.edge(e).minlen*=c}));var u=l(t)+1;i.forEach(t.children(),(function(i){a(t,e,c,u,o,n,i)})),t.graph().nodeRankFactor=c}function a(t,e,n,o,s,l,c){var u=t.children(c);if(u.length){var h=r.addBorderNode(t,"_bt"),d=r.addBorderNode(t,"_bb"),p=t.node(c);t.setParent(h,c),p.borderTop=h,t.setParent(d,c),p.borderBottom=d,i.forEach(u,(function(i){a(t,e,n,o,s,l,i);var r=t.node(i),u=r.borderTop?r.borderTop:i,p=r.borderBottom?r.borderBottom:i,f=r.borderTop?o:2*o,g=u!==p?1:s-l[c]+1;t.setEdge(h,u,{weight:f,minlen:g,nestingEdge:!0}),t.setEdge(p,d,{weight:f,minlen:g,nestingEdge:!0})})),t.parent(c)||t.setEdge(e,h,{weight:0,minlen:s+l[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}function s(t){var e={};function n(r,o){var a=t.children(r);a&&a.length&&i.forEach(a,(function(t){n(t,o+1)})),e[r]=o}return i.forEach(t.children(),(function(t){n(t,1)})),e}function l(t){return i.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}function c(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,i.forEach(t.edges(),(function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)}))}t.exports={run:o,cleanup:c}},"./node_modules/_dagre@0.8.5@dagre/lib/normalize.js":
/*!**********************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/normalize.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function o(t){t.graph().dummyChains=[],i.forEach(t.edges(),(function(e){a(t,e)}))}function a(t,e){var n=e.v,i=t.node(n).rank,o=e.w,a=t.node(o).rank,s=e.name,l=t.edge(e),c=l.labelRank;if(a!==i+1){var u,h,d;for(t.removeEdge(e),d=0,++i;i<a;++d,++i)l.points=[],h={width:0,height:0,edgeLabel:l,edgeObj:e,rank:i},u=r.addDummyNode(t,"edge",h,"_d"),i===c&&(h.width=l.width,h.height=l.height,h.dummy="edge-label",h.labelpos=l.labelpos),t.setEdge(n,u,{weight:l.weight},s),0===d&&t.graph().dummyChains.push(u),n=u;t.setEdge(n,o,{weight:l.weight},s)}}function s(t){i.forEach(t.graph().dummyChains,(function(e){var n,i=t.node(e),r=i.edgeLabel;t.setEdge(i.edgeObj,r);while(i.dummy)n=t.successors(e)[0],t.removeNode(e),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),e=n,i=t.node(e)}))}t.exports={run:o,undo:s}},"./node_modules/_dagre@0.8.5@dagre/lib/order/add-subgraph-constraints.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/add-subgraph-constraints.js ***!
  \*******************************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function r(t,e,n){var r,o={};i.forEach(n,(function(n){var i,a,s=t.parent(n);while(s){if(i=t.parent(s),i?(a=o[i],o[i]=s):(a=r,r=s),a&&a!==s)return void e.setEdge(a,s);s=i}}))}t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function r(t,e){return i.map(e,(function(e){var n=t.inEdges(e);if(n.length){var r=i.reduce(n,(function(e,n){var i=t.edge(n),r=t.node(n.v);return{sum:e.sum+i.weight*r.order,weight:e.weight+i.weight}}),{sum:0,weight:0});return{v:e,barycenter:r.sum/r.weight,weight:r.weight}}return{v:e}}))}t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/order/build-layer-graph.js":
/*!************************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/build-layer-graph.js ***!
  \************************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function o(t,e,n){var o=a(t),s=new r({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return i.forEach(t.nodes(),(function(r){var a=t.node(r),l=t.parent(r);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(s.setNode(r),s.setParent(r,l||o),i.forEach(t[n](r),(function(e){var n=e.v===r?e.w:e.v,o=s.edge(n,r),a=i.isUndefined(o)?0:o.weight;s.setEdge(n,r,{weight:t.edge(e).weight+a})})),i.has(a,"minRank")&&s.setNode(r,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),s}function a(t){var e;while(t.hasNode(e=i.uniqueId("_root")));return e}t.exports=o},"./node_modules/_dagre@0.8.5@dagre/lib/order/cross-count.js":
/*!******************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/cross-count.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function r(t,e){for(var n=0,i=1;i<e.length;++i)n+=o(t,e[i-1],e[i]);return n}function o(t,e,n){var r=i.zipObject(n,i.map(n,(function(t,e){return e}))),o=i.flatten(i.map(e,(function(e){return i.sortBy(i.map(t.outEdges(e),(function(e){return{pos:r[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;while(a<n.length)a<<=1;var s=2*a-1;a-=1;var l=i.map(new Array(s),(function(){return 0})),c=0;return i.forEach(o.forEach((function(t){var e=t.pos+a;l[e]+=t.weight;var n=0;while(e>0)e%2&&(n+=l[e+1]),e=e-1>>1,l[e]+=t.weight;c+=t.weight*n}))),c}t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/order/index.js":
/*!************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/index.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./init-order */"./node_modules/_dagre@0.8.5@dagre/lib/order/init-order.js"),o=n(/*! ./cross-count */"./node_modules/_dagre@0.8.5@dagre/lib/order/cross-count.js"),a=n(/*! ./sort-subgraph */"./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js"),s=n(/*! ./build-layer-graph */"./node_modules/_dagre@0.8.5@dagre/lib/order/build-layer-graph.js"),l=n(/*! ./add-subgraph-constraints */"./node_modules/_dagre@0.8.5@dagre/lib/order/add-subgraph-constraints.js"),c=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,u=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function h(t){var e=u.maxRank(t),n=d(t,i.range(1,e+1),"inEdges"),a=d(t,i.range(e-1,-1,-1),"outEdges"),s=r(t);f(t,s);for(var l,c=Number.POSITIVE_INFINITY,h=0,g=0;g<4;++h,++g){p(h%2?n:a,h%4>=2),s=u.buildLayerMatrix(t);var m=o(t,s);m<c&&(g=0,l=i.cloneDeep(s),c=m)}f(t,l)}function d(t,e,n){return i.map(e,(function(e){return s(t,e,n)}))}function p(t,e){var n=new c;i.forEach(t,(function(t){var r=t.graph().root,o=a(t,r,n,e);i.forEach(o.vs,(function(e,n){t.node(e).order=n})),l(t,n,o.vs)}))}function f(t,e){i.forEach(e,(function(e){i.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=h},"./node_modules/_dagre@0.8.5@dagre/lib/order/init-order.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/init-order.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function r(t){var e={},n=i.filter(t.nodes(),(function(e){return!t.children(e).length})),r=i.max(i.map(n,(function(e){return t.node(e).rank}))),o=i.map(i.range(r+1),(function(){return[]}));function a(n){if(!i.has(e,n)){e[n]=!0;var r=t.node(n);o[r.rank].push(n),i.forEach(t.successors(n),a)}}var s=i.sortBy(n,(function(e){return t.node(e).rank}));return i.forEach(s,a),o}t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js":
/*!************************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js ***!
  \************************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function r(t,e){var n={};i.forEach(t,(function(t,e){var r=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};i.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)})),i.forEach(e.edges(),(function(t){var e=n[t.v],r=n[t.w];i.isUndefined(e)||i.isUndefined(r)||(r.indegree++,e.out.push(n[t.w]))}));var r=i.filter(n,(function(t){return!t.indegree}));return o(r)}function o(t){var e=[];function n(t){return function(e){e.merged||(i.isUndefined(e.barycenter)||i.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&a(t,e)}}function r(e){return function(n){n["in"].push(e),0===--n.indegree&&t.push(n)}}while(t.length){var o=t.pop();e.push(o),i.forEach(o["in"].reverse(),n(o)),i.forEach(o.out,r(o))}return i.map(i.filter(e,(function(t){return!t.merged})),(function(t){return i.pick(t,["vs","i","barycenter","weight"])}))}function a(t,e){var n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight),e.weight&&(n+=e.barycenter*e.weight,i+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js":
/*!********************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./barycenter */"./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js"),o=n(/*! ./resolve-conflicts */"./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js"),a=n(/*! ./sort */"./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js");function s(t,e,n,u){var h=t.children(e),d=t.node(e),p=d?d.borderLeft:void 0,f=d?d.borderRight:void 0,g={};p&&(h=i.filter(h,(function(t){return t!==p&&t!==f})));var m=r(t,h);i.forEach(m,(function(e){if(t.children(e.v).length){var r=s(t,e.v,n,u);g[e.v]=r,i.has(r,"barycenter")&&c(e,r)}}));var v=o(m,n);l(v,g);var y=a(v,u);if(p&&(y.vs=i.flatten([p,y.vs,f],!0),t.predecessors(p).length)){var b=t.node(t.predecessors(p)[0]),x=t.node(t.predecessors(f)[0]);i.has(y,"barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+b.order+x.order)/(y.weight+2),y.weight+=2}return y}function l(t,e){i.forEach(t,(function(t){t.vs=i.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}function c(t,e){i.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}t.exports=s},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js":
/*!***********************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function o(t,e){var n=r.partition(t,(function(t){return i.has(t,"barycenter")})),o=n.lhs,l=i.sortBy(n.rhs,(function(t){return-t.i})),c=[],u=0,h=0,d=0;o.sort(s(!!e)),d=a(c,l,d),i.forEach(o,(function(t){d+=t.vs.length,c.push(t.vs),u+=t.barycenter*t.weight,h+=t.weight,d=a(c,l,d)}));var p={vs:i.flatten(c,!0)};return h&&(p.barycenter=u/h,p.weight=h),p}function a(t,e,n){var r;while(e.length&&(r=i.last(e)).i<=n)e.pop(),t.push(r.vs),n++;return n}function s(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}t.exports=o},"./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js":
/*!********************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function r(t){var e=a(t);i.forEach(t.graph().dummyChains,(function(n){var i=t.node(n),r=i.edgeObj,a=o(t,e,r.v,r.w),s=a.path,l=a.lca,c=0,u=s[c],h=!0;while(n!==r.w){if(i=t.node(n),h){while((u=s[c])!==l&&t.node(u).maxRank<i.rank)c++;u===l&&(h=!1)}if(!h){while(c<s.length-1&&t.node(u=s[c+1]).minRank<=i.rank)c++;u=s[c]}t.setParent(n,u),n=t.successors(n)[0]}}))}function o(t,e,n,i){var r,o,a=[],s=[],l=Math.min(e[n].low,e[i].low),c=Math.max(e[n].lim,e[i].lim);r=n;do{r=t.parent(r),a.push(r)}while(r&&(e[r].low>l||c>e[r].lim));o=r,r=i;while((r=t.parent(r))!==o)s.push(r);return{path:a.concat(s.reverse()),lca:o}}function a(t){var e={},n=0;function r(o){var a=n;i.forEach(t.children(o),r),e[o]={low:a,lim:n++}}return i.forEach(t.children(),r),e}t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/position/bk.js":
/*!************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/position/bk.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,o=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js");function a(t,e){var n={};function r(e,r){var o=0,a=0,s=e.length,u=i.last(r);return i.forEach(r,(function(e,h){var d=l(t,e),p=d?t.node(d).order:s;(d||e===u)&&(i.forEach(r.slice(a,h+1),(function(e){i.forEach(t.predecessors(e),(function(i){var r=t.node(i),a=r.order;!(a<o||p<a)||r.dummy&&t.node(e).dummy||c(n,i,e)}))})),a=h+1,o=p)})),r}return i.reduce(e,r),n}function s(t,e){var n={};function r(e,r,o,a,s){var l;i.forEach(i.range(r,o),(function(r){l=e[r],t.node(l).dummy&&i.forEach(t.predecessors(l),(function(e){var i=t.node(e);i.dummy&&(i.order<a||i.order>s)&&c(n,e,l)}))}))}function o(e,n){var o,a=-1,s=0;return i.forEach(n,(function(i,l){if("border"===t.node(i).dummy){var c=t.predecessors(i);c.length&&(o=t.node(c[0]).order,r(n,s,l,a,o),s=l,a=o)}r(n,s,n.length,o,e.length)})),n}return i.reduce(e,o),n}function l(t,e){if(t.node(e).dummy)return i.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}function c(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function u(t,e,n){if(e>n){var r=e;e=n,n=r}return i.has(t[e],n)}function h(t,e,n,r){var o={},a={},s={};return i.forEach(e,(function(t){i.forEach(t,(function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),i.forEach(e,(function(t){var e=-1;i.forEach(t,(function(t){var l=r(t);if(l.length){l=i.sortBy(l,(function(t){return s[t]}));for(var c=(l.length-1)/2,h=Math.floor(c),d=Math.ceil(c);h<=d;++h){var p=l[h];a[t]===t&&e<s[p]&&!u(n,t,p)&&(a[p]=t,a[t]=o[t]=o[p],e=s[p])}}}))})),{root:o,align:a}}function d(t,e,n,r,o){var a={},s=p(t,e,n,o),l=o?"borderLeft":"borderRight";function c(t,e){var n=s.nodes(),i=n.pop(),r={};while(i)r[i]?t(i):(r[i]=!0,n.push(i),n=n.concat(e(i))),i=n.pop()}function u(t){a[t]=s.inEdges(t).reduce((function(t,e){return Math.max(t,a[e.v]+s.edge(e))}),0)}function h(e){var n=s.outEdges(e).reduce((function(t,e){return Math.min(t,a[e.w]-s.edge(e))}),Number.POSITIVE_INFINITY),i=t.node(e);n!==Number.POSITIVE_INFINITY&&i.borderType!==l&&(a[e]=Math.max(a[e],n))}return c(u,s.predecessors.bind(s)),c(h,s.successors.bind(s)),i.forEach(r,(function(t){a[t]=a[n[t]]})),a}function p(t,e,n,o){var a=new r,s=t.graph(),l=y(s.nodesep,s.edgesep,o);return i.forEach(e,(function(e){var r;i.forEach(e,(function(e){var i=n[e];if(a.setNode(i),r){var o=n[r],s=a.edge(o,i);a.setEdge(o,i,Math.max(l(t,e,r),s||0))}r=e}))})),a}function f(t,e){return i.minBy(i.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return i.forIn(e,(function(e,i){var o=b(t,i)/2;n=Math.max(e+o,n),r=Math.min(e-o,r)})),n-r}))}function g(t,e){var n=i.values(e),r=i.min(n),o=i.max(n);i.forEach(["u","d"],(function(n){i.forEach(["l","r"],(function(a){var s,l=n+a,c=t[l];if(c!==e){var u=i.values(c);s="l"===a?r-i.min(u):o-i.max(u),s&&(t[l]=i.mapValues(c,(function(t){return t+s})))}}))}))}function m(t,e){return i.mapValues(t.ul,(function(n,r){if(e)return t[e.toLowerCase()][r];var o=i.sortBy(i.map(t,r));return(o[1]+o[2])/2}))}function v(t){var e,n=o.buildLayerMatrix(t),r=i.merge(a(t,n),s(t,n)),l={};i.forEach(["u","d"],(function(o){e="u"===o?n:i.values(n).reverse(),i.forEach(["l","r"],(function(n){"r"===n&&(e=i.map(e,(function(t){return i.values(t).reverse()})));var a=("u"===o?t.predecessors:t.successors).bind(t),s=h(t,e,r,a),c=d(t,e,s.root,s.align,"r"===n);"r"===n&&(c=i.mapValues(c,(function(t){return-t}))),l[o+n]=c}))}));var c=f(t,l);return g(l,c),m(l,t.graph().align)}function y(t,e,n){return function(r,o,a){var s,l=r.node(o),c=r.node(a),u=0;if(u+=l.width/2,i.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2;break}if(s&&(u+=n?s:-s),s=0,u+=(l.dummy?e:t)/2,u+=(c.dummy?e:t)/2,u+=c.width/2,i.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2;break}return s&&(u+=n?s:-s),s=0,u}}function b(t,e){return t.node(e).width}t.exports={positionX:v,findType1Conflicts:a,findType2Conflicts:s,addConflict:c,hasConflict:u,verticalAlignment:h,horizontalCompaction:d,alignCoordinates:g,findSmallestWidthAlignment:f,balance:m}},"./node_modules/_dagre@0.8.5@dagre/lib/position/index.js":
/*!***************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/position/index.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js"),o=n(/*! ./bk */"./node_modules/_dagre@0.8.5@dagre/lib/position/bk.js").positionX;function a(t){t=r.asNonCompoundGraph(t),s(t),i.forEach(o(t),(function(e,n){t.node(n).x=e}))}function s(t){var e=r.buildLayerMatrix(t),n=t.graph().ranksep,o=0;i.forEach(e,(function(e){var r=i.max(i.map(e,(function(e){return t.node(e).height})));i.forEach(e,(function(e){t.node(e).y=o+r/2})),o+=r+n}))}t.exports=a},"./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph,o=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").slack;function a(t){var e,n,i=new r({directed:!1}),a=t.nodes()[0],u=t.nodeCount();i.setNode(a,{});while(s(i,t)<u)e=l(i,t),n=i.hasNode(e.v)?o(t,e):-o(t,e),c(i,t,n);return i}function s(t,e){function n(r){i.forEach(e.nodeEdges(r),(function(i){var a=i.v,s=r===a?i.w:a;t.hasNode(s)||o(e,i)||(t.setNode(s,{}),t.setEdge(r,s,{}),n(s))}))}return i.forEach(t.nodes(),n),t.nodeCount()}function l(t,e){return i.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function c(t,e,n){i.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=a},"./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js":
/*!***********************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js"),r=i.longestPath,o=n(/*! ./feasible-tree */"./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.js"),a=n(/*! ./network-simplex */"./node_modules/_dagre@0.8.5@dagre/lib/rank/network-simplex.js");function s(t){switch(t.graph().ranker){case"network-simplex":u(t);break;case"tight-tree":c(t);break;case"longest-path":l(t);break;default:u(t)}}t.exports=s;var l=r;function c(t){r(t),o(t)}function u(t){a(t)}},"./node_modules/_dagre@0.8.5@dagre/lib/rank/network-simplex.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/rank/network-simplex.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./feasible-tree */"./node_modules/_dagre@0.8.5@dagre/lib/rank/feasible-tree.js"),o=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").slack,a=n(/*! ./util */"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js").longestPath,s=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").alg.preorder,l=n(/*! ../graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").alg.postorder,c=n(/*! ../util */"./node_modules/_dagre@0.8.5@dagre/lib/util.js").simplify;function u(t){t=c(t),a(t);var e,n,i=r(t);f(i),h(i,t);while(e=m(i))n=v(i,t,e),y(i,t,e,n)}function h(t,e){var n=l(t,t.nodes());n=n.slice(0,n.length-1),i.forEach(n,(function(n){d(t,e,n)}))}function d(t,e,n){var i=t.node(n),r=i.parent;t.edge(n,r).cutvalue=p(t,e,n)}function p(t,e,n){var r=t.node(n),o=r.parent,a=!0,s=e.edge(n,o),l=0;return s||(a=!1,s=e.edge(o,n)),l=s.weight,i.forEach(e.nodeEdges(n),(function(i){var r=i.v===n,s=r?i.w:i.v;if(s!==o){var c=r===a,u=e.edge(i).weight;if(l+=c?u:-u,x(t,n,s)){var h=t.edge(n,s).cutvalue;l+=c?-h:h}}})),l}function f(t,e){arguments.length<2&&(e=t.nodes()[0]),g(t,{},1,e)}function g(t,e,n,r,o){var a=n,s=t.node(r);return e[r]=!0,i.forEach(t.neighbors(r),(function(o){i.has(e,o)||(n=g(t,e,n,o,r))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function m(t){return i.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function v(t,e,n){var r=n.v,a=n.w;e.hasEdge(r,a)||(r=n.w,a=n.v);var s=t.node(r),l=t.node(a),c=s,u=!1;s.lim>l.lim&&(c=l,u=!0);var h=i.filter(e.edges(),(function(e){return u===w(t,t.node(e.v),c)&&u!==w(t,t.node(e.w),c)}));return i.minBy(h,(function(t){return o(e,t)}))}function y(t,e,n,i){var r=n.v,o=n.w;t.removeEdge(r,o),t.setEdge(i.v,i.w,{}),f(t),h(t,e),b(t,e)}function b(t,e){var n=i.find(t.nodes(),(function(t){return!e.node(t).parent})),r=s(t,n);r=r.slice(1),i.forEach(r,(function(n){var i=t.node(n).parent,r=e.edge(n,i),o=!1;r||(r=e.edge(i,n),o=!0),e.node(n).rank=e.node(i).rank+(o?r.minlen:-r.minlen)}))}function x(t,e,n){return t.hasEdge(e,n)}function w(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=u,u.initLowLimValues=f,u.initCutValues=h,u.calcCutValue=p,u.leaveEdge=m,u.enterEdge=v,u.exchangeEdges=y},"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js":
/*!**********************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ../lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");function r(t){var e={};function n(r){var o=t.node(r);if(i.has(e,r))return o.rank;e[r]=!0;var a=i.min(i.map(t.outEdges(r),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&void 0!==a&&null!==a||(a=0),o.rank=a}i.forEach(t.sources(),n)}function o(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}t.exports={longestPath:r,slack:o}},"./node_modules/_dagre@0.8.5@dagre/lib/util.js":
/*!*****************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/util.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ./lodash */"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),r=n(/*! ./graphlib */"./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function o(t,e,n,r){var o;do{o=i.uniqueId(r)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){var e=(new r).setGraph(t.graph());return i.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),i.forEach(t.edges(),(function(n){var i=e.edge(n.v,n.w)||{weight:0,minlen:1},r=t.edge(n);e.setEdge(n.v,n.w,{weight:i.weight+r.weight,minlen:Math.max(i.minlen,r.minlen)})})),e}function s(t){var e=new r({multigraph:t.isMultigraph()}).setGraph(t.graph());return i.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),i.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function l(t){var e=i.map(t.nodes(),(function(e){var n={};return i.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return i.zipObject(t.nodes(),e)}function c(t){var e=i.map(t.nodes(),(function(e){var n={};return i.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return i.zipObject(t.nodes(),e)}function u(t,e){var n,i,r=t.x,o=t.y,a=e.x-r,s=e.y-o,l=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,i=c):(a<0&&(l=-l),n=l,i=l*s/a),{x:r+n,y:o+i}}function h(t){var e=i.map(i.range(g(t)+1),(function(){return[]}));return i.forEach(t.nodes(),(function(n){var r=t.node(n),o=r.rank;i.isUndefined(o)||(e[o][r.order]=n)})),e}function d(t){var e=i.min(i.map(t.nodes(),(function(e){return t.node(e).rank})));i.forEach(t.nodes(),(function(n){var r=t.node(n);i.has(r,"rank")&&(r.rank-=e)}))}function p(t){var e=i.min(i.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];i.forEach(t.nodes(),(function(i){var r=t.node(i).rank-e;n[r]||(n[r]=[]),n[r].push(i)}));var r=0,o=t.graph().nodeRankFactor;i.forEach(n,(function(e,n){i.isUndefined(e)&&n%o!==0?--r:r&&i.forEach(e,(function(e){t.node(e).rank+=r}))}))}function f(t,e,n,i){var r={width:0,height:0};return arguments.length>=4&&(r.rank=n,r.order=i),o(t,"border",r,e)}function g(t){return i.max(i.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!i.isUndefined(n))return n})))}function m(t,e){var n={lhs:[],rhs:[]};return i.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function v(t,e){var n=i.now();try{return e()}finally{console.log(t+" time: "+(i.now()-n)+"ms")}}function y(t,e){return e()}t.exports={addDummyNode:o,simplify:a,asNonCompoundGraph:s,successorWeights:l,predecessorWeights:c,intersectRect:u,buildLayerMatrix:h,normalizeRanks:d,removeEmptyRanks:p,addBorderNode:f,maxRank:g,partition:m,time:v,notime:y}},"./node_modules/_dagre@0.8.5@dagre/lib/version.js":
/*!********************************************************!*\
  !*** ./node_modules/_dagre@0.8.5@dagre/lib/version.js ***!
  \********************************************************/
/*! no static exports found */function(t,e){t.exports="0.8.5"},"./node_modules/_graphlib@2.1.8@graphlib/index.js":
/*!********************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/index.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./lib */"./node_modules/_graphlib@2.1.8@graphlib/lib/index.js");t.exports={Graph:i.Graph,json:n(/*! ./lib/json */"./node_modules/_graphlib@2.1.8@graphlib/lib/json.js"),alg:n(/*! ./lib/alg */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js"),version:i.version}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function r(t){var e,n={},r=[];function o(r){i.has(n,r)||(n[r]=!0,e.push(r),i.each(t.successors(r),o),i.each(t.predecessors(r),o))}return i.each(t.nodes(),(function(t){e=[],o(t),e.length&&r.push(e)})),r}t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js":
/*!**************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function r(t,e,n){i.isArray(e)||(e=[e]);var r=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return i.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);o(t,e,"post"===n,s,r,a)})),a}function o(t,e,n,r,a,s){i.has(r,e)||(r[e]=!0,n||s.push(e),i.each(a(e),(function(e){o(t,e,n,r,a,s)})),n&&s.push(e))}t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js":
/*!***********************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./dijkstra */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js"),r=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function o(t,e,n){return r.transform(t.nodes(),(function(r,o){r[o]=i(t,o,e,n)}),{})}t.exports=o},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),r=n(/*! ../data/priority-queue */"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js");t.exports=a;var o=i.constant(1);function a(t,e,n,i){return s(t,String(e),n||o,i||function(e){return t.outEdges(e)})}function s(t,e,n,i){var o,a,s={},l=new r,c=function(t){var e=t.v!==o?t.v:t.w,i=s[e],r=n(t),c=a.distance+r;if(r<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+r);c<i.distance&&(i.distance=c,i.predecessor=o,l.decrease(e,c))};t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},l.add(t,n)}));while(l.size()>0){if(o=l.removeMin(),a=s[o],a.distance===Number.POSITIVE_INFINITY)break;i(o).forEach(c)}return s}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),r=n(/*! ./tarjan */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js");function o(t){return i.filter(r(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}t.exports=o},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js":
/*!*************************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js ***!
  \*************************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=o;var r=i.constant(1);function o(t,e,n){return a(t,e||r,n||function(e){return t.outEdges(e)})}function a(t,e,n){var i={},r=t.nodes();return r.forEach((function(t){i[t]={},i[t][t]={distance:0},r.forEach((function(e){t!==e&&(i[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var r=n.v===t?n.w:n.v,o=e(n);i[t][r]={distance:o,predecessor:t}}))})),r.forEach((function(t){var e=i[t];r.forEach((function(n){var o=i[n];r.forEach((function(n){var i=o[t],r=e[n],a=o[n],s=i.distance+r.distance;s<a.distance&&(a.distance=s,a.predecessor=r.predecessor)}))}))})),i}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js":
/*!****************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){t.exports={components:n(/*! ./components */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js"),dijkstra:n(/*! ./dijkstra */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js"),dijkstraAll:n(/*! ./dijkstra-all */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js"),findCycles:n(/*! ./find-cycles */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js"),floydWarshall:n(/*! ./floyd-warshall */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js"),isAcyclic:n(/*! ./is-acyclic */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/is-acyclic.js"),postorder:n(/*! ./postorder */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/postorder.js"),preorder:n(/*! ./preorder */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/preorder.js"),prim:n(/*! ./prim */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/prim.js"),tarjan:n(/*! ./tarjan */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js"),topsort:n(/*! ./topsort */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/is-acyclic.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/is-acyclic.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./topsort */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js");function r(t){try{i(t)}catch(e){if(e instanceof i.CycleException)return!1;throw e}return!0}t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/postorder.js":
/*!********************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/postorder.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./dfs */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js");function r(t,e){return i(t,e,"post")}t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/preorder.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/preorder.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./dfs */"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js");function r(t,e){return i(t,e,"pre")}t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/prim.js":
/*!***************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/prim.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),r=n(/*! ../graph */"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js"),o=n(/*! ../data/priority-queue */"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js");function a(t,e){var n,a=new r,s={},l=new o;function c(t){var i=t.v===n?t.w:t.v,r=l.priority(i);if(void 0!==r){var o=e(t);o<r&&(s[i]=n,l.decrease(i,o))}}if(0===t.nodeCount())return a;i.each(t.nodes(),(function(t){l.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),l.decrease(t.nodes()[0],0);var u=!1;while(l.size()>0){if(n=l.removeMin(),i.has(s,n))a.setEdge(n,s[n]);else{if(u)throw new Error("Input graph is not connected: "+t);u=!0}t.nodeEdges(n).forEach(c)}return a}t.exports=a},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function r(t){var e=0,n=[],r={},o=[];function a(s){var l=r[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){i.has(r,t)?r[t].onStack&&(l.lowlink=Math.min(l.lowlink,r[t].index)):(a(t),l.lowlink=Math.min(l.lowlink,r[t].lowlink))})),l.lowlink===l.index){var c,u=[];do{c=n.pop(),r[c].onStack=!1,u.push(c)}while(s!==c);o.push(u)}}return t.nodes().forEach((function(t){i.has(r,t)||a(t)})),o}t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js":
/*!******************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function r(t){var e={},n={},r=[];function a(s){if(i.has(n,s))throw new o;i.has(e,s)||(n[s]=!0,e[s]=!0,i.each(t.predecessors(s),a),delete n[s],r.push(s))}if(i.each(t.sinks(),a),i.size(e)!==t.nodeCount())throw new o;return r}function o(){}t.exports=r,r.CycleException=o,o.prototype=new Error},"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js":
/*!**************************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js ***!
  \**************************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ../lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function r(){this._arr=[],this._keyIndices={}}t.exports=r,r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},r.prototype.has=function(t){return i.has(this._keyIndices,t)},r.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},r.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},r.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!i.has(n,t)){var r=this._arr,o=r.length;return n[t]=o,r.push({key:t,priority:e}),this._decrease(o),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},r.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},r.prototype._heapify=function(t){var e=this._arr,n=2*t,i=n+1,r=t;n<e.length&&(r=e[n].priority<e[r].priority?n:r,i<e.length&&(r=e[i].priority<e[r].priority?i:r),r!==t&&(this._swap(t,r),this._heapify(r)))},r.prototype._decrease=function(t){var e,n=this._arr,i=n[t].priority;while(0!==t){if(e=t>>1,n[e].priority<i)break;this._swap(t,e),t=e}},r.prototype._swap=function(t,e){var n=this._arr,i=this._keyIndices,r=n[t],o=n[e];n[t]=o,n[e]=r,i[o.key]=t,i[r.key]=e}},"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js":
/*!************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){"use strict";var i=n(/*! ./lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=s;var r="\0",o="\0",a="";function s(t){this._isDirected=!i.has(t,"directed")||t.directed,this._isMultigraph=!!i.has(t,"multigraph")&&t.multigraph,this._isCompound=!!i.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=i.constant(void 0),this._defaultEdgeLabelFn=i.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function l(t,e){t[e]?t[e]++:t[e]=1}function c(t,e){--t[e]||delete t[e]}function u(t,e,n,o){var s=""+e,l=""+n;if(!t&&s>l){var c=s;s=l,l=c}return s+a+l+a+(i.isUndefined(o)?r:o)}function h(t,e,n,i){var r=""+e,o=""+n;if(!t&&r>o){var a=r;r=o,o=a}var s={v:r,w:o};return i&&(s.name=i),s}function d(t,e){return u(t,e.v,e.w,e.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(t){return this._label=t,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(t){return i.isFunction(t)||(t=i.constant(t)),this._defaultNodeLabelFn=t,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return i.keys(this._nodes)},s.prototype.sources=function(){var t=this;return i.filter(this.nodes(),(function(e){return i.isEmpty(t._in[e])}))},s.prototype.sinks=function(){var t=this;return i.filter(this.nodes(),(function(e){return i.isEmpty(t._out[e])}))},s.prototype.setNodes=function(t,e){var n=arguments,r=this;return i.each(t,(function(t){n.length>1?r.setNode(t,e):r.setNode(t)})),this},s.prototype.setNode=function(t,e){return i.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},s.prototype.node=function(t){return this._nodes[t]},s.prototype.hasNode=function(t){return i.has(this._nodes,t)},s.prototype.removeNode=function(t){var e=this;if(i.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],i.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),i.each(i.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],i.each(i.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},s.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(i.isUndefined(e))e=o;else{e+="";for(var n=e;!i.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},s.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},s.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==o)return e}},s.prototype.children=function(t){if(i.isUndefined(t)&&(t=o),this._isCompound){var e=this._children[t];if(e)return i.keys(e)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},s.prototype.predecessors=function(t){var e=this._preds[t];if(e)return i.keys(e)},s.prototype.successors=function(t){var e=this._sucs[t];if(e)return i.keys(e)},s.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return i.union(e,this.successors(t))},s.prototype.isLeaf=function(t){var e;return e=this.isDirected()?this.successors(t):this.neighbors(t),0===e.length},s.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;i.each(this._nodes,(function(n,i){t(i)&&e.setNode(i,n)})),i.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var r={};function o(t){var i=n.parent(t);return void 0===i||e.hasNode(i)?(r[t]=i,i):i in r?r[i]:o(i)}return this._isCompound&&i.each(e.nodes(),(function(t){e.setParent(t,o(t))})),e},s.prototype.setDefaultEdgeLabel=function(t){return i.isFunction(t)||(t=i.constant(t)),this._defaultEdgeLabelFn=t,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return i.values(this._edgeObjs)},s.prototype.setPath=function(t,e){var n=this,r=arguments;return i.reduce(t,(function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i})),this},s.prototype.setEdge=function(){var t,e,n,r,o=!1,a=arguments[0];"object"===typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(r=arguments[1],o=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],o=!0)),t=""+t,e=""+e,i.isUndefined(n)||(n=""+n);var s=u(this._isDirected,t,e,n);if(i.has(this._edgeLabels,s))return o&&(this._edgeLabels[s]=r),this;if(!i.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=o?r:this._defaultEdgeLabelFn(t,e,n);var c=h(this._isDirected,t,e,n);return t=c.v,e=c.w,Object.freeze(c),this._edgeObjs[s]=c,l(this._preds[e],t),l(this._sucs[t],e),this._in[e][s]=c,this._out[t][s]=c,this._edgeCount++,this},s.prototype.edge=function(t,e,n){var i=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return this._edgeLabels[i]},s.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return i.has(this._edgeLabels,r)},s.prototype.removeEdge=function(t,e,n){var i=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,t,e,n),r=this._edgeObjs[i];return r&&(t=r.v,e=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],c(this._preds[e],t),c(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this},s.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=i.values(n);return e?i.filter(r,(function(t){return t.v===e})):r}},s.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=i.values(n);return e?i.filter(r,(function(t){return t.w===e})):r}},s.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},"./node_modules/_graphlib@2.1.8@graphlib/lib/index.js":
/*!************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/index.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){t.exports={Graph:n(/*! ./graph */"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js"),version:n(/*! ./version */"./node_modules/_graphlib@2.1.8@graphlib/lib/version.js")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/json.js":
/*!***********************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/json.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./lodash */"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),r=n(/*! ./graph */"./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js");function o(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:a(t),edges:s(t)};return i.isUndefined(t.graph())||(e.value=i.clone(t.graph())),e}function a(t){return i.map(t.nodes(),(function(e){var n=t.node(e),r=t.parent(e),o={v:e};return i.isUndefined(n)||(o.value=n),i.isUndefined(r)||(o.parent=r),o}))}function s(t){return i.map(t.edges(),(function(e){var n=t.edge(e),r={v:e.v,w:e.w};return i.isUndefined(e.name)||(r.name=e.name),i.isUndefined(n)||(r.value=n),r}))}function l(t){var e=new r(t.options).setGraph(t.value);return i.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),i.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}t.exports={write:o,read:l}},"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js":
/*!*************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i;try{i={clone:n(/*! lodash/clone */"./node_modules/_lodash@4.17.15@lodash/clone.js"),constant:n(/*! lodash/constant */"./node_modules/_lodash@4.17.15@lodash/constant.js"),each:n(/*! lodash/each */"./node_modules/_lodash@4.17.15@lodash/each.js"),filter:n(/*! lodash/filter */"./node_modules/_lodash@4.17.15@lodash/filter.js"),has:n(/*! lodash/has */"./node_modules/_lodash@4.17.15@lodash/has.js"),isArray:n(/*! lodash/isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),isEmpty:n(/*! lodash/isEmpty */"./node_modules/_lodash@4.17.15@lodash/isEmpty.js"),isFunction:n(/*! lodash/isFunction */"./node_modules/_lodash@4.17.15@lodash/isFunction.js"),isUndefined:n(/*! lodash/isUndefined */"./node_modules/_lodash@4.17.15@lodash/isUndefined.js"),keys:n(/*! lodash/keys */"./node_modules/_lodash@4.17.15@lodash/keys.js"),map:n(/*! lodash/map */"./node_modules/_lodash@4.17.15@lodash/map.js"),reduce:n(/*! lodash/reduce */"./node_modules/_lodash@4.17.15@lodash/reduce.js"),size:n(/*! lodash/size */"./node_modules/_lodash@4.17.15@lodash/size.js"),transform:n(/*! lodash/transform */"./node_modules/_lodash@4.17.15@lodash/transform.js"),union:n(/*! lodash/union */"./node_modules/_lodash@4.17.15@lodash/union.js"),values:n(/*! lodash/values */"./node_modules/_lodash@4.17.15@lodash/values.js")}}catch(r){}i||(i=window._),t.exports=i},"./node_modules/_graphlib@2.1.8@graphlib/lib/version.js":
/*!**************************************************************!*\
  !*** ./node_modules/_graphlib@2.1.8@graphlib/lib/version.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e){t.exports="2.1.8"},"./node_modules/_isarray@0.0.1@isarray/index.js":
/*!******************************************************!*\
  !*** ./node_modules/_isarray@0.0.1@isarray/index.js ***!
  \******************************************************/
/*! no static exports found */function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},"./node_modules/_lodash@4.17.15@lodash/_DataView.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_DataView.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getNative */"./node_modules/_lodash@4.17.15@lodash/_getNative.js"),r=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),o=i(r,"DataView");t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_Hash.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_Hash.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_hashClear */"./node_modules/_lodash@4.17.15@lodash/_hashClear.js"),r=n(/*! ./_hashDelete */"./node_modules/_lodash@4.17.15@lodash/_hashDelete.js"),o=n(/*! ./_hashGet */"./node_modules/_lodash@4.17.15@lodash/_hashGet.js"),a=n(/*! ./_hashHas */"./node_modules/_lodash@4.17.15@lodash/_hashHas.js"),s=n(/*! ./_hashSet */"./node_modules/_lodash@4.17.15@lodash/_hashSet.js");function l(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype["delete"]=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_ListCache.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_ListCache.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_listCacheClear */"./node_modules/_lodash@4.17.15@lodash/_listCacheClear.js"),r=n(/*! ./_listCacheDelete */"./node_modules/_lodash@4.17.15@lodash/_listCacheDelete.js"),o=n(/*! ./_listCacheGet */"./node_modules/_lodash@4.17.15@lodash/_listCacheGet.js"),a=n(/*! ./_listCacheHas */"./node_modules/_lodash@4.17.15@lodash/_listCacheHas.js"),s=n(/*! ./_listCacheSet */"./node_modules/_lodash@4.17.15@lodash/_listCacheSet.js");function l(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype["delete"]=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_Map.js":
/*!*****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_Map.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getNative */"./node_modules/_lodash@4.17.15@lodash/_getNative.js"),r=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),o=i(r,"Map");t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_MapCache.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_MapCache.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_mapCacheClear */"./node_modules/_lodash@4.17.15@lodash/_mapCacheClear.js"),r=n(/*! ./_mapCacheDelete */"./node_modules/_lodash@4.17.15@lodash/_mapCacheDelete.js"),o=n(/*! ./_mapCacheGet */"./node_modules/_lodash@4.17.15@lodash/_mapCacheGet.js"),a=n(/*! ./_mapCacheHas */"./node_modules/_lodash@4.17.15@lodash/_mapCacheHas.js"),s=n(/*! ./_mapCacheSet */"./node_modules/_lodash@4.17.15@lodash/_mapCacheSet.js");function l(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype["delete"]=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_Promise.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_Promise.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getNative */"./node_modules/_lodash@4.17.15@lodash/_getNative.js"),r=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),o=i(r,"Promise");t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_Set.js":
/*!*****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_Set.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getNative */"./node_modules/_lodash@4.17.15@lodash/_getNative.js"),r=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),o=i(r,"Set");t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_SetCache.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_SetCache.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_MapCache */"./node_modules/_lodash@4.17.15@lodash/_MapCache.js"),r=n(/*! ./_setCacheAdd */"./node_modules/_lodash@4.17.15@lodash/_setCacheAdd.js"),o=n(/*! ./_setCacheHas */"./node_modules/_lodash@4.17.15@lodash/_setCacheHas.js");function a(t){var e=-1,n=null==t?0:t.length;this.__data__=new i;while(++e<n)this.add(t[e])}a.prototype.add=a.prototype.push=r,a.prototype.has=o,t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_Stack.js":
/*!*******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_Stack.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.15@lodash/_ListCache.js"),r=n(/*! ./_stackClear */"./node_modules/_lodash@4.17.15@lodash/_stackClear.js"),o=n(/*! ./_stackDelete */"./node_modules/_lodash@4.17.15@lodash/_stackDelete.js"),a=n(/*! ./_stackGet */"./node_modules/_lodash@4.17.15@lodash/_stackGet.js"),s=n(/*! ./_stackHas */"./node_modules/_lodash@4.17.15@lodash/_stackHas.js"),l=n(/*! ./_stackSet */"./node_modules/_lodash@4.17.15@lodash/_stackSet.js");function c(t){var e=this.__data__=new i(t);this.size=e.size}c.prototype.clear=r,c.prototype["delete"]=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,t.exports=c},"./node_modules/_lodash@4.17.15@lodash/_Symbol.js":
/*!********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_Symbol.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),r=i.Symbol;t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_Uint8Array.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_Uint8Array.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),r=i.Uint8Array;t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_WeakMap.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_WeakMap.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getNative */"./node_modules/_lodash@4.17.15@lodash/_getNative.js"),r=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),o=i(r,"WeakMap");t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_apply.js":
/*!*******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_apply.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayEach.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_arrayEach.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){function n(t,e){var n=-1,i=null==t?0:t.length;while(++n<i)if(!1===e(t[n],n,t))break;return t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayFilter.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_arrayFilter.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e){function n(t,e){var n=-1,i=null==t?0:t.length,r=0,o=[];while(++n<i){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayIncludes.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_arrayIncludes.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIndexOf */"./node_modules/_lodash@4.17.15@lodash/_baseIndexOf.js");function r(t,e){var n=null==t?0:t.length;return!!n&&i(t,e,0)>-1}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_arrayIncludesWith.js":
/*!*******************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_arrayIncludesWith.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e){function n(t,e,n){var i=-1,r=null==t?0:t.length;while(++i<r)if(n(e,t[i]))return!0;return!1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayLikeKeys.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_arrayLikeKeys.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseTimes */"./node_modules/_lodash@4.17.15@lodash/_baseTimes.js"),r=n(/*! ./isArguments */"./node_modules/_lodash@4.17.15@lodash/isArguments.js"),o=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),a=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),s=n(/*! ./_isIndex */"./node_modules/_lodash@4.17.15@lodash/_isIndex.js"),l=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.15@lodash/isTypedArray.js"),c=Object.prototype,u=c.hasOwnProperty;function h(t,e){var n=o(t),c=!n&&r(t),h=!n&&!c&&a(t),d=!n&&!c&&!h&&l(t),p=n||c||h||d,f=p?i(t.length,String):[],g=f.length;for(var m in t)!e&&!u.call(t,m)||p&&("length"==m||h&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||f.push(m);return f}t.exports=h},"./node_modules/_lodash@4.17.15@lodash/_arrayMap.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_arrayMap.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){function n(t,e){var n=-1,i=null==t?0:t.length,r=Array(i);while(++n<i)r[n]=e(t[n],n,t);return r}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayPush.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_arrayPush.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){function n(t,e){var n=-1,i=e.length,r=t.length;while(++n<i)t[r+n]=e[n];return t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arrayReduce.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_arrayReduce.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e){function n(t,e,n,i){var r=-1,o=null==t?0:t.length;i&&o&&(n=t[++r]);while(++r<o)n=e(n,t[r],r,t);return n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_arraySome.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_arraySome.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){function n(t,e){var n=-1,i=null==t?0:t.length;while(++n<i)if(e(t[n],n,t))return!0;return!1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_asciiSize.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_asciiSize.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseProperty */"./node_modules/_lodash@4.17.15@lodash/_baseProperty.js"),r=i("length");t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_assignMergeValue.js":
/*!******************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_assignMergeValue.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseAssignValue */"./node_modules/_lodash@4.17.15@lodash/_baseAssignValue.js"),r=n(/*! ./eq */"./node_modules/_lodash@4.17.15@lodash/eq.js");function o(t,e,n){(void 0===n||r(t[e],n))&&(void 0!==n||e in t)||i(t,e,n)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_assignValue.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_assignValue.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseAssignValue */"./node_modules/_lodash@4.17.15@lodash/_baseAssignValue.js"),r=n(/*! ./eq */"./node_modules/_lodash@4.17.15@lodash/eq.js"),o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n){var o=t[e];a.call(t,e)&&r(o,n)&&(void 0!==n||e in t)||i(t,e,n)}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./eq */"./node_modules/_lodash@4.17.15@lodash/eq.js");function r(t,e){var n=t.length;while(n--)if(i(t[n][0],e))return n;return-1}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseAssign.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseAssign.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.15@lodash/_copyObject.js"),r=n(/*! ./keys */"./node_modules/_lodash@4.17.15@lodash/keys.js");function o(t,e){return t&&i(e,r(e),t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseAssignIn.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseAssignIn.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.15@lodash/_copyObject.js"),r=n(/*! ./keysIn */"./node_modules/_lodash@4.17.15@lodash/keysIn.js");function o(t,e){return t&&i(e,r(e),t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseAssignValue.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseAssignValue.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_defineProperty */"./node_modules/_lodash@4.17.15@lodash/_defineProperty.js");function r(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseClone.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseClone.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Stack */"./node_modules/_lodash@4.17.15@lodash/_Stack.js"),r=n(/*! ./_arrayEach */"./node_modules/_lodash@4.17.15@lodash/_arrayEach.js"),o=n(/*! ./_assignValue */"./node_modules/_lodash@4.17.15@lodash/_assignValue.js"),a=n(/*! ./_baseAssign */"./node_modules/_lodash@4.17.15@lodash/_baseAssign.js"),s=n(/*! ./_baseAssignIn */"./node_modules/_lodash@4.17.15@lodash/_baseAssignIn.js"),l=n(/*! ./_cloneBuffer */"./node_modules/_lodash@4.17.15@lodash/_cloneBuffer.js"),c=n(/*! ./_copyArray */"./node_modules/_lodash@4.17.15@lodash/_copyArray.js"),u=n(/*! ./_copySymbols */"./node_modules/_lodash@4.17.15@lodash/_copySymbols.js"),h=n(/*! ./_copySymbolsIn */"./node_modules/_lodash@4.17.15@lodash/_copySymbolsIn.js"),d=n(/*! ./_getAllKeys */"./node_modules/_lodash@4.17.15@lodash/_getAllKeys.js"),p=n(/*! ./_getAllKeysIn */"./node_modules/_lodash@4.17.15@lodash/_getAllKeysIn.js"),f=n(/*! ./_getTag */"./node_modules/_lodash@4.17.15@lodash/_getTag.js"),g=n(/*! ./_initCloneArray */"./node_modules/_lodash@4.17.15@lodash/_initCloneArray.js"),m=n(/*! ./_initCloneByTag */"./node_modules/_lodash@4.17.15@lodash/_initCloneByTag.js"),v=n(/*! ./_initCloneObject */"./node_modules/_lodash@4.17.15@lodash/_initCloneObject.js"),y=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),b=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),x=n(/*! ./isMap */"./node_modules/_lodash@4.17.15@lodash/isMap.js"),w=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),_=n(/*! ./isSet */"./node_modules/_lodash@4.17.15@lodash/isSet.js"),C=n(/*! ./keys */"./node_modules/_lodash@4.17.15@lodash/keys.js"),A=1,I=2,S=4,M="[object Arguments]",k="[object Array]",E="[object Boolean]",T="[object Date]",O="[object Error]",P="[object Function]",j="[object GeneratorFunction]",L="[object Map]",D="[object Number]",R="[object Object]",B="[object RegExp]",N="[object Set]",F="[object String]",z="[object Symbol]",V="[object WeakMap]",G="[object ArrayBuffer]",H="[object DataView]",W="[object Float32Array]",U="[object Float64Array]",Z="[object Int8Array]",Y="[object Int16Array]",X="[object Int32Array]",q="[object Uint8Array]",K="[object Uint8ClampedArray]",Q="[object Uint16Array]",J="[object Uint32Array]",$={};function tt(t,e,n,k,E,T){var O,L=e&A,D=e&I,B=e&S;if(n&&(O=E?n(t,k,E,T):n(t)),void 0!==O)return O;if(!w(t))return t;var N=y(t);if(N){if(O=g(t),!L)return c(t,O)}else{var F=f(t),z=F==P||F==j;if(b(t))return l(t,L);if(F==R||F==M||z&&!E){if(O=D||z?{}:v(t),!L)return D?h(t,s(O,t)):u(t,a(O,t))}else{if(!$[F])return E?t:{};O=m(t,F,L)}}T||(T=new i);var V=T.get(t);if(V)return V;T.set(t,O),_(t)?t.forEach((function(i){O.add(tt(i,e,n,i,t,T))})):x(t)&&t.forEach((function(i,r){O.set(r,tt(i,e,n,r,t,T))}));var G=B?D?p:d:D?keysIn:C,H=N?void 0:G(t);return r(H||t,(function(i,r){H&&(r=i,i=t[r]),o(O,r,tt(i,e,n,r,t,T))})),O}$[M]=$[k]=$[G]=$[H]=$[E]=$[T]=$[W]=$[U]=$[Z]=$[Y]=$[X]=$[L]=$[D]=$[R]=$[B]=$[N]=$[F]=$[z]=$[q]=$[K]=$[Q]=$[J]=!0,$[O]=$[P]=$[V]=!1,t.exports=tt},"./node_modules/_lodash@4.17.15@lodash/_baseCreate.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseCreate.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),r=Object.create,o=function(){function t(){}return function(e){if(!i(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseEach.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseEach.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseForOwn */"./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js"),r=n(/*! ./_createBaseEach */"./node_modules/_lodash@4.17.15@lodash/_createBaseEach.js"),o=r(i);t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.15@lodash/isSymbol.js");function r(t,e,n){var r=-1,o=t.length;while(++r<o){var a=t[r],s=e(a);if(null!=s&&(void 0===l?s===s&&!i(s):n(s,l)))var l=s,c=a}return c}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseFilter.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseFilter.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseEach */"./node_modules/_lodash@4.17.15@lodash/_baseEach.js");function r(t,e){var n=[];return i(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseFindIndex.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseFindIndex.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e){function n(t,e,n,i){var r=t.length,o=n+(i?1:-1);while(i?o--:++o<r)if(e(t[o],o,t))return o;return-1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayPush */"./node_modules/_lodash@4.17.15@lodash/_arrayPush.js"),r=n(/*! ./_isFlattenable */"./node_modules/_lodash@4.17.15@lodash/_isFlattenable.js");function o(t,e,n,a,s){var l=-1,c=t.length;n||(n=r),s||(s=[]);while(++l<c){var u=t[l];e>0&&n(u)?e>1?o(u,e-1,n,a,s):i(s,u):a||(s[s.length]=u)}return s}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseFor.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseFor.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_createBaseFor */"./node_modules/_lodash@4.17.15@lodash/_createBaseFor.js"),r=i();t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseFor */"./node_modules/_lodash@4.17.15@lodash/_baseFor.js"),r=n(/*! ./keys */"./node_modules/_lodash@4.17.15@lodash/keys.js");function o(t,e){return t&&i(t,e,r)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseGet.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseGet.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_castPath */"./node_modules/_lodash@4.17.15@lodash/_castPath.js"),r=n(/*! ./_toKey */"./node_modules/_lodash@4.17.15@lodash/_toKey.js");function o(t,e){e=i(e,t);var n=0,o=e.length;while(null!=t&&n<o)t=t[r(e[n++])];return n&&n==o?t:void 0}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseGetAllKeys.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseGetAllKeys.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayPush */"./node_modules/_lodash@4.17.15@lodash/_arrayPush.js"),r=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js");function o(t,e,n){var o=e(t);return r(t)?o:i(o,n(t))}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),r=n(/*! ./_getRawTag */"./node_modules/_lodash@4.17.15@lodash/_getRawTag.js"),o=n(/*! ./_objectToString */"./node_modules/_lodash@4.17.15@lodash/_objectToString.js"),a="[object Null]",s="[object Undefined]",l=i?i.toStringTag:void 0;function c(t){return null==t?void 0===t?s:a:l&&l in Object(t)?r(t):o(t)}t.exports=c},"./node_modules/_lodash@4.17.15@lodash/_baseGt.js":
/*!********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseGt.js ***!
  \********************************************************/
/*! no static exports found */function(t,e){function n(t,e){return t>e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseHas.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseHas.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){var n=Object.prototype,i=n.hasOwnProperty;function r(t,e){return null!=t&&i.call(t,e)}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseHasIn.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseHasIn.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseIndexOf.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIndexOf.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseFindIndex */"./node_modules/_lodash@4.17.15@lodash/_baseFindIndex.js"),r=n(/*! ./_baseIsNaN */"./node_modules/_lodash@4.17.15@lodash/_baseIsNaN.js"),o=n(/*! ./_strictIndexOf */"./node_modules/_lodash@4.17.15@lodash/_strictIndexOf.js");function a(t,e,n){return e===e?o(t,e,n):i(t,r,n)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseIsArguments.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIsArguments.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),r=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),o="[object Arguments]";function a(t){return r(t)&&i(t)==o}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseIsEqual.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIsEqual.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIsEqualDeep */"./node_modules/_lodash@4.17.15@lodash/_baseIsEqualDeep.js"),r=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js");function o(t,e,n,a,s){return t===e||(null==t||null==e||!r(t)&&!r(e)?t!==t&&e!==e:i(t,e,n,a,o,s))}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseIsEqualDeep.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIsEqualDeep.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Stack */"./node_modules/_lodash@4.17.15@lodash/_Stack.js"),r=n(/*! ./_equalArrays */"./node_modules/_lodash@4.17.15@lodash/_equalArrays.js"),o=n(/*! ./_equalByTag */"./node_modules/_lodash@4.17.15@lodash/_equalByTag.js"),a=n(/*! ./_equalObjects */"./node_modules/_lodash@4.17.15@lodash/_equalObjects.js"),s=n(/*! ./_getTag */"./node_modules/_lodash@4.17.15@lodash/_getTag.js"),l=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),c=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),u=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.15@lodash/isTypedArray.js"),h=1,d="[object Arguments]",p="[object Array]",f="[object Object]",g=Object.prototype,m=g.hasOwnProperty;function v(t,e,n,g,v,y){var b=l(t),x=l(e),w=b?p:s(t),_=x?p:s(e);w=w==d?f:w,_=_==d?f:_;var C=w==f,A=_==f,I=w==_;if(I&&c(t)){if(!c(e))return!1;b=!0,C=!1}if(I&&!C)return y||(y=new i),b||u(t)?r(t,e,n,g,v,y):o(t,e,w,n,g,v,y);if(!(n&h)){var S=C&&m.call(t,"__wrapped__"),M=A&&m.call(e,"__wrapped__");if(S||M){var k=S?t.value():t,E=M?e.value():e;return y||(y=new i),v(k,E,n,g,y)}}return!!I&&(y||(y=new i),a(t,e,n,g,v,y))}t.exports=v},"./node_modules/_lodash@4.17.15@lodash/_baseIsMap.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIsMap.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getTag */"./node_modules/_lodash@4.17.15@lodash/_getTag.js"),r=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),o="[object Map]";function a(t){return r(t)&&i(t)==o}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseIsMatch.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIsMatch.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Stack */"./node_modules/_lodash@4.17.15@lodash/_Stack.js"),r=n(/*! ./_baseIsEqual */"./node_modules/_lodash@4.17.15@lodash/_baseIsEqual.js"),o=1,a=2;function s(t,e,n,s){var l=n.length,c=l,u=!s;if(null==t)return!c;t=Object(t);while(l--){var h=n[l];if(u&&h[2]?h[1]!==t[h[0]]:!(h[0]in t))return!1}while(++l<c){h=n[l];var d=h[0],p=t[d],f=h[1];if(u&&h[2]){if(void 0===p&&!(d in t))return!1}else{var g=new i;if(s)var m=s(p,f,d,t,e,g);if(!(void 0===m?r(f,p,o|a,s,g):m))return!1}}return!0}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_baseIsNaN.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIsNaN.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){function n(t){return t!==t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseIsNative.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIsNative.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isFunction */"./node_modules/_lodash@4.17.15@lodash/isFunction.js"),r=n(/*! ./_isMasked */"./node_modules/_lodash@4.17.15@lodash/_isMasked.js"),o=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),a=n(/*! ./_toSource */"./node_modules/_lodash@4.17.15@lodash/_toSource.js"),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,h=c.toString,d=u.hasOwnProperty,p=RegExp("^"+h.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(t){if(!o(t)||r(t))return!1;var e=i(t)?p:l;return e.test(a(t))}t.exports=f},"./node_modules/_lodash@4.17.15@lodash/_baseIsSet.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIsSet.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getTag */"./node_modules/_lodash@4.17.15@lodash/_getTag.js"),r=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),o="[object Set]";function a(t){return r(t)&&i(t)==o}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseIsTypedArray.js":
/*!******************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIsTypedArray.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),r=n(/*! ./isLength */"./node_modules/_lodash@4.17.15@lodash/isLength.js"),o=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",h="[object Function]",d="[object Map]",p="[object Number]",f="[object Object]",g="[object RegExp]",m="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",C="[object Int8Array]",A="[object Int16Array]",I="[object Int32Array]",S="[object Uint8Array]",M="[object Uint8ClampedArray]",k="[object Uint16Array]",E="[object Uint32Array]",T={};function O(t){return o(t)&&r(t.length)&&!!T[i(t)]}T[w]=T[_]=T[C]=T[A]=T[I]=T[S]=T[M]=T[k]=T[E]=!0,T[a]=T[s]=T[b]=T[l]=T[x]=T[c]=T[u]=T[h]=T[d]=T[p]=T[f]=T[g]=T[m]=T[v]=T[y]=!1,t.exports=O},"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseMatches */"./node_modules/_lodash@4.17.15@lodash/_baseMatches.js"),r=n(/*! ./_baseMatchesProperty */"./node_modules/_lodash@4.17.15@lodash/_baseMatchesProperty.js"),o=n(/*! ./identity */"./node_modules/_lodash@4.17.15@lodash/identity.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),s=n(/*! ./property */"./node_modules/_lodash@4.17.15@lodash/property.js");function l(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?r(t[0],t[1]):i(t):s(t)}t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_baseKeys.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseKeys.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_isPrototype */"./node_modules/_lodash@4.17.15@lodash/_isPrototype.js"),r=n(/*! ./_nativeKeys */"./node_modules/_lodash@4.17.15@lodash/_nativeKeys.js"),o=Object.prototype,a=o.hasOwnProperty;function s(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_baseKeysIn.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseKeysIn.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),r=n(/*! ./_isPrototype */"./node_modules/_lodash@4.17.15@lodash/_isPrototype.js"),o=n(/*! ./_nativeKeysIn */"./node_modules/_lodash@4.17.15@lodash/_nativeKeysIn.js"),a=Object.prototype,s=a.hasOwnProperty;function l(t){if(!i(t))return o(t);var e=r(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_baseLt.js":
/*!********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseLt.js ***!
  \********************************************************/
/*! no static exports found */function(t,e){function n(t,e){return t<e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseMap.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseMap.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseEach */"./node_modules/_lodash@4.17.15@lodash/_baseEach.js"),r=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function o(t,e){var n=-1,o=r(t)?Array(t.length):[];return i(t,(function(t,i,r){o[++n]=e(t,i,r)})),o}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_baseMatches.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseMatches.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIsMatch */"./node_modules/_lodash@4.17.15@lodash/_baseIsMatch.js"),r=n(/*! ./_getMatchData */"./node_modules/_lodash@4.17.15@lodash/_getMatchData.js"),o=n(/*! ./_matchesStrictComparable */"./node_modules/_lodash@4.17.15@lodash/_matchesStrictComparable.js");function a(t){var e=r(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseMatchesProperty.js":
/*!*********************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseMatchesProperty.js ***!
  \*********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIsEqual */"./node_modules/_lodash@4.17.15@lodash/_baseIsEqual.js"),r=n(/*! ./get */"./node_modules/_lodash@4.17.15@lodash/get.js"),o=n(/*! ./hasIn */"./node_modules/_lodash@4.17.15@lodash/hasIn.js"),a=n(/*! ./_isKey */"./node_modules/_lodash@4.17.15@lodash/_isKey.js"),s=n(/*! ./_isStrictComparable */"./node_modules/_lodash@4.17.15@lodash/_isStrictComparable.js"),l=n(/*! ./_matchesStrictComparable */"./node_modules/_lodash@4.17.15@lodash/_matchesStrictComparable.js"),c=n(/*! ./_toKey */"./node_modules/_lodash@4.17.15@lodash/_toKey.js"),u=1,h=2;function d(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=r(n,t);return void 0===a&&a===e?o(n,t):i(e,a,u|h)}}t.exports=d},"./node_modules/_lodash@4.17.15@lodash/_baseMerge.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseMerge.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Stack */"./node_modules/_lodash@4.17.15@lodash/_Stack.js"),r=n(/*! ./_assignMergeValue */"./node_modules/_lodash@4.17.15@lodash/_assignMergeValue.js"),o=n(/*! ./_baseFor */"./node_modules/_lodash@4.17.15@lodash/_baseFor.js"),a=n(/*! ./_baseMergeDeep */"./node_modules/_lodash@4.17.15@lodash/_baseMergeDeep.js"),s=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),l=n(/*! ./keysIn */"./node_modules/_lodash@4.17.15@lodash/keysIn.js"),c=n(/*! ./_safeGet */"./node_modules/_lodash@4.17.15@lodash/_safeGet.js");function u(t,e,n,h,d){t!==e&&o(e,(function(o,l){if(d||(d=new i),s(o))a(t,e,l,n,u,h,d);else{var p=h?h(c(t,l),o,l+"",t,e,d):void 0;void 0===p&&(p=o),r(t,l,p)}}),l)}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_baseMergeDeep.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseMergeDeep.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_assignMergeValue */"./node_modules/_lodash@4.17.15@lodash/_assignMergeValue.js"),r=n(/*! ./_cloneBuffer */"./node_modules/_lodash@4.17.15@lodash/_cloneBuffer.js"),o=n(/*! ./_cloneTypedArray */"./node_modules/_lodash@4.17.15@lodash/_cloneTypedArray.js"),a=n(/*! ./_copyArray */"./node_modules/_lodash@4.17.15@lodash/_copyArray.js"),s=n(/*! ./_initCloneObject */"./node_modules/_lodash@4.17.15@lodash/_initCloneObject.js"),l=n(/*! ./isArguments */"./node_modules/_lodash@4.17.15@lodash/isArguments.js"),c=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),u=n(/*! ./isArrayLikeObject */"./node_modules/_lodash@4.17.15@lodash/isArrayLikeObject.js"),h=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),d=n(/*! ./isFunction */"./node_modules/_lodash@4.17.15@lodash/isFunction.js"),p=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),f=n(/*! ./isPlainObject */"./node_modules/_lodash@4.17.15@lodash/isPlainObject.js"),g=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.15@lodash/isTypedArray.js"),m=n(/*! ./_safeGet */"./node_modules/_lodash@4.17.15@lodash/_safeGet.js"),v=n(/*! ./toPlainObject */"./node_modules/_lodash@4.17.15@lodash/toPlainObject.js");function y(t,e,n,y,b,x,w){var _=m(t,n),C=m(e,n),A=w.get(C);if(A)i(t,n,A);else{var I=x?x(_,C,n+"",t,e,w):void 0,S=void 0===I;if(S){var M=c(C),k=!M&&h(C),E=!M&&!k&&g(C);I=C,M||k||E?c(_)?I=_:u(_)?I=a(_):k?(S=!1,I=r(C,!0)):E?(S=!1,I=o(C,!0)):I=[]:f(C)||l(C)?(I=_,l(_)?I=v(_):p(_)&&!d(_)||(I=s(C))):S=!1}S&&(w.set(C,I),b(I,C,y,x,w),w["delete"](C)),i(t,n,I)}}t.exports=y},"./node_modules/_lodash@4.17.15@lodash/_baseOrderBy.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseOrderBy.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayMap */"./node_modules/_lodash@4.17.15@lodash/_arrayMap.js"),r=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),o=n(/*! ./_baseMap */"./node_modules/_lodash@4.17.15@lodash/_baseMap.js"),a=n(/*! ./_baseSortBy */"./node_modules/_lodash@4.17.15@lodash/_baseSortBy.js"),s=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),l=n(/*! ./_compareMultiple */"./node_modules/_lodash@4.17.15@lodash/_compareMultiple.js"),c=n(/*! ./identity */"./node_modules/_lodash@4.17.15@lodash/identity.js");function u(t,e,n){var u=-1;e=i(e.length?e:[c],s(r));var h=o(t,(function(t,n,r){var o=i(e,(function(e){return e(t)}));return{criteria:o,index:++u,value:t}}));return a(h,(function(t,e){return l(t,e,n)}))}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_basePick.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_basePick.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_basePickBy */"./node_modules/_lodash@4.17.15@lodash/_basePickBy.js"),r=n(/*! ./hasIn */"./node_modules/_lodash@4.17.15@lodash/hasIn.js");function o(t,e){return i(t,e,(function(e,n){return r(t,n)}))}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_basePickBy.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_basePickBy.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGet */"./node_modules/_lodash@4.17.15@lodash/_baseGet.js"),r=n(/*! ./_baseSet */"./node_modules/_lodash@4.17.15@lodash/_baseSet.js"),o=n(/*! ./_castPath */"./node_modules/_lodash@4.17.15@lodash/_castPath.js");function a(t,e,n){var a=-1,s=e.length,l={};while(++a<s){var c=e[a],u=i(t,c);n(u,c)&&r(l,o(c,t),u)}return l}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseProperty.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseProperty.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_basePropertyDeep.js":
/*!******************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_basePropertyDeep.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGet */"./node_modules/_lodash@4.17.15@lodash/_baseGet.js");function r(t){return function(e){return i(e,t)}}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseRange.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseRange.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){var n=Math.ceil,i=Math.max;function r(t,e,r,o){var a=-1,s=i(n((e-t)/(r||1)),0),l=Array(s);while(s--)l[o?s:++a]=t,t+=r;return l}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseReduce.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseReduce.js ***!
  \************************************************************/
/*! no static exports found */function(t,e){function n(t,e,n,i,r){return r(t,(function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)})),n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseRest.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseRest.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./identity */"./node_modules/_lodash@4.17.15@lodash/identity.js"),r=n(/*! ./_overRest */"./node_modules/_lodash@4.17.15@lodash/_overRest.js"),o=n(/*! ./_setToString */"./node_modules/_lodash@4.17.15@lodash/_setToString.js");function a(t,e){return o(r(t,e,i),t+"")}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseSet.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseSet.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_assignValue */"./node_modules/_lodash@4.17.15@lodash/_assignValue.js"),r=n(/*! ./_castPath */"./node_modules/_lodash@4.17.15@lodash/_castPath.js"),o=n(/*! ./_isIndex */"./node_modules/_lodash@4.17.15@lodash/_isIndex.js"),a=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),s=n(/*! ./_toKey */"./node_modules/_lodash@4.17.15@lodash/_toKey.js");function l(t,e,n,l){if(!a(t))return t;e=r(e,t);var c=-1,u=e.length,h=u-1,d=t;while(null!=d&&++c<u){var p=s(e[c]),f=n;if(c!=h){var g=d[p];f=l?l(g,p,d):void 0,void 0===f&&(f=a(g)?g:o(e[c+1])?[]:{})}i(d,p,f),d=d[p]}return t}t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_baseSetToString.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseSetToString.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./constant */"./node_modules/_lodash@4.17.15@lodash/constant.js"),r=n(/*! ./_defineProperty */"./node_modules/_lodash@4.17.15@lodash/_defineProperty.js"),o=n(/*! ./identity */"./node_modules/_lodash@4.17.15@lodash/identity.js"),a=r?function(t,e){return r(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:o;t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_baseSortBy.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseSortBy.js ***!
  \************************************************************/
/*! no static exports found */function(t,e){function n(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseTimes.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseTimes.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){function n(t,e){var n=-1,i=Array(t);while(++n<t)i[n]=e(n);return i}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseToString.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseToString.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),r=n(/*! ./_arrayMap */"./node_modules/_lodash@4.17.15@lodash/_arrayMap.js"),o=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),a=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.15@lodash/isSymbol.js"),s=1/0,l=i?i.prototype:void 0,c=l?l.toString:void 0;function u(t){if("string"==typeof t)return t;if(o(t))return r(t,u)+"";if(a(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_baseUnary.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseUnary.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_baseUniq.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseUniq.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_SetCache */"./node_modules/_lodash@4.17.15@lodash/_SetCache.js"),r=n(/*! ./_arrayIncludes */"./node_modules/_lodash@4.17.15@lodash/_arrayIncludes.js"),o=n(/*! ./_arrayIncludesWith */"./node_modules/_lodash@4.17.15@lodash/_arrayIncludesWith.js"),a=n(/*! ./_cacheHas */"./node_modules/_lodash@4.17.15@lodash/_cacheHas.js"),s=n(/*! ./_createSet */"./node_modules/_lodash@4.17.15@lodash/_createSet.js"),l=n(/*! ./_setToArray */"./node_modules/_lodash@4.17.15@lodash/_setToArray.js"),c=200;function u(t,e,n){var u=-1,h=r,d=t.length,p=!0,f=[],g=f;if(n)p=!1,h=o;else if(d>=c){var m=e?null:s(t);if(m)return l(m);p=!1,h=a,g=new i}else g=e?[]:f;t:while(++u<d){var v=t[u],y=e?e(v):v;if(v=n||0!==v?v:0,p&&y===y){var b=g.length;while(b--)if(g[b]===y)continue t;e&&g.push(y),f.push(v)}else h(g,y,n)||(g!==f&&g.push(y),f.push(v))}return f}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_baseValues.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseValues.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayMap */"./node_modules/_lodash@4.17.15@lodash/_arrayMap.js");function r(t,e){return i(e,(function(e){return t[e]}))}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseZipObject.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_baseZipObject.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e){function n(t,e,n){var i=-1,r=t.length,o=e.length,a={};while(++i<r){var s=i<o?e[i]:void 0;n(a,t[i],s)}return a}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_cacheHas.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_cacheHas.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){function n(t,e){return t.has(e)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_castFunction.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_castFunction.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./identity */"./node_modules/_lodash@4.17.15@lodash/identity.js");function r(t){return"function"==typeof t?t:i}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_castPath.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_castPath.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),r=n(/*! ./_isKey */"./node_modules/_lodash@4.17.15@lodash/_isKey.js"),o=n(/*! ./_stringToPath */"./node_modules/_lodash@4.17.15@lodash/_stringToPath.js"),a=n(/*! ./toString */"./node_modules/_lodash@4.17.15@lodash/toString.js");function s(t,e){return i(t)?t:r(t,e)?[t]:o(a(t))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_cloneArrayBuffer.js":
/*!******************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_cloneArrayBuffer.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Uint8Array */"./node_modules/_lodash@4.17.15@lodash/_Uint8Array.js");function r(t){var e=new t.constructor(t.byteLength);return new i(e).set(new i(t)),e}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_cloneBuffer.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_cloneBuffer.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){(function(t){var i=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),r=e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r,s=a?i.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,i=l?l(n):new t.constructor(n);return t.copy(i),i}t.exports=c}).call(this,n(/*! ./../_webpack@4.42.1@webpack/buildin/module.js */"./node_modules/_webpack@4.42.1@webpack/buildin/module.js")(t))},"./node_modules/_lodash@4.17.15@lodash/_cloneDataView.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_cloneDataView.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_cloneArrayBuffer */"./node_modules/_lodash@4.17.15@lodash/_cloneArrayBuffer.js");function r(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_cloneRegExp.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_cloneRegExp.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e){var n=/\w*$/;function i(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_cloneSymbol.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_cloneSymbol.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),r=i?i.prototype:void 0,o=r?r.valueOf:void 0;function a(t){return o?Object(o.call(t)):{}}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_cloneTypedArray.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_cloneTypedArray.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_cloneArrayBuffer */"./node_modules/_lodash@4.17.15@lodash/_cloneArrayBuffer.js");function r(t,e){var n=e?i(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_compareAscending.js":
/*!******************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_compareAscending.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.15@lodash/isSymbol.js");function r(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t===t,a=i(t),s=void 0!==e,l=null===e,c=e===e,u=i(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!u&&t<e||u&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_compareMultiple.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_compareMultiple.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_compareAscending */"./node_modules/_lodash@4.17.15@lodash/_compareAscending.js");function r(t,e,n){var r=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;while(++r<s){var c=i(o[r],a[r]);if(c){if(r>=l)return c;var u=n[r];return c*("desc"==u?-1:1)}}return t.index-e.index}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_copyArray.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_copyArray.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){function n(t,e){var n=-1,i=t.length;e||(e=Array(i));while(++n<i)e[n]=t[n];return e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_copyObject.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_copyObject.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_assignValue */"./node_modules/_lodash@4.17.15@lodash/_assignValue.js"),r=n(/*! ./_baseAssignValue */"./node_modules/_lodash@4.17.15@lodash/_baseAssignValue.js");function o(t,e,n,o){var a=!n;n||(n={});var s=-1,l=e.length;while(++s<l){var c=e[s],u=o?o(n[c],t[c],c,n,t):void 0;void 0===u&&(u=t[c]),a?r(n,c,u):i(n,c,u)}return n}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_copySymbols.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_copySymbols.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.15@lodash/_copyObject.js"),r=n(/*! ./_getSymbols */"./node_modules/_lodash@4.17.15@lodash/_getSymbols.js");function o(t,e){return i(t,r(t),e)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_copySymbolsIn.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_copySymbolsIn.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.15@lodash/_copyObject.js"),r=n(/*! ./_getSymbolsIn */"./node_modules/_lodash@4.17.15@lodash/_getSymbolsIn.js");function o(t,e){return i(t,r(t),e)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_coreJsData.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_coreJsData.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),r=i["__core-js_shared__"];t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_createAssigner.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_createAssigner.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),r=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js");function o(t){return i((function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&r(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);while(++i<o){var l=n[i];l&&t(e,l,i,a)}return e}))}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_createBaseEach.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_createBaseEach.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function r(t,e){return function(n,r){if(null==n)return n;if(!i(n))return t(n,r);var o=n.length,a=e?o:-1,s=Object(n);while(e?a--:++a<o)if(!1===r(s[a],a,s))break;return n}}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_createBaseFor.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_createBaseFor.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e){function n(t){return function(e,n,i){var r=-1,o=Object(e),a=i(e),s=a.length;while(s--){var l=a[t?s:++r];if(!1===n(o[l],l,o))break}return e}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_createFind.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_createFind.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),r=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),o=n(/*! ./keys */"./node_modules/_lodash@4.17.15@lodash/keys.js");function a(t){return function(e,n,a){var s=Object(e);if(!r(e)){var l=i(n,3);e=o(e),n=function(t){return l(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[l?e[c]:c]:void 0}}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_createRange.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_createRange.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseRange */"./node_modules/_lodash@4.17.15@lodash/_baseRange.js"),r=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js"),o=n(/*! ./toFinite */"./node_modules/_lodash@4.17.15@lodash/toFinite.js");function a(t){return function(e,n,a){return a&&"number"!=typeof a&&r(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),i(e,n,a,t)}}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_createSet.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_createSet.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Set */"./node_modules/_lodash@4.17.15@lodash/_Set.js"),r=n(/*! ./noop */"./node_modules/_lodash@4.17.15@lodash/noop.js"),o=n(/*! ./_setToArray */"./node_modules/_lodash@4.17.15@lodash/_setToArray.js"),a=1/0,s=i&&1/o(new i([,-0]))[1]==a?function(t){return new i(t)}:r;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_defineProperty.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_defineProperty.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getNative */"./node_modules/_lodash@4.17.15@lodash/_getNative.js"),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_equalArrays.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_equalArrays.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_SetCache */"./node_modules/_lodash@4.17.15@lodash/_SetCache.js"),r=n(/*! ./_arraySome */"./node_modules/_lodash@4.17.15@lodash/_arraySome.js"),o=n(/*! ./_cacheHas */"./node_modules/_lodash@4.17.15@lodash/_cacheHas.js"),a=1,s=2;function l(t,e,n,l,c,u){var h=n&a,d=t.length,p=e.length;if(d!=p&&!(h&&p>d))return!1;var f=u.get(t);if(f&&u.get(e))return f==e;var g=-1,m=!0,v=n&s?new i:void 0;u.set(t,e),u.set(e,t);while(++g<d){var y=t[g],b=e[g];if(l)var x=h?l(b,y,g,e,t,u):l(y,b,g,t,e,u);if(void 0!==x){if(x)continue;m=!1;break}if(v){if(!r(e,(function(t,e){if(!o(v,e)&&(y===t||c(y,t,n,l,u)))return v.push(e)}))){m=!1;break}}else if(y!==b&&!c(y,b,n,l,u)){m=!1;break}}return u["delete"](t),u["delete"](e),m}t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_equalByTag.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_equalByTag.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),r=n(/*! ./_Uint8Array */"./node_modules/_lodash@4.17.15@lodash/_Uint8Array.js"),o=n(/*! ./eq */"./node_modules/_lodash@4.17.15@lodash/eq.js"),a=n(/*! ./_equalArrays */"./node_modules/_lodash@4.17.15@lodash/_equalArrays.js"),s=n(/*! ./_mapToArray */"./node_modules/_lodash@4.17.15@lodash/_mapToArray.js"),l=n(/*! ./_setToArray */"./node_modules/_lodash@4.17.15@lodash/_setToArray.js"),c=1,u=2,h="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Map]",g="[object Number]",m="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",w="[object DataView]",_=i?i.prototype:void 0,C=_?_.valueOf:void 0;function A(t,e,n,i,_,A,I){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!A(new r(t),new r(e)));case h:case d:case g:return o(+t,+e);case p:return t.name==e.name&&t.message==e.message;case m:case y:return t==e+"";case f:var S=s;case v:var M=i&c;if(S||(S=l),t.size!=e.size&&!M)return!1;var k=I.get(t);if(k)return k==e;i|=u,I.set(t,e);var E=a(S(t),S(e),i,_,A,I);return I["delete"](t),E;case b:if(C)return C.call(t)==C.call(e)}return!1}t.exports=A},"./node_modules/_lodash@4.17.15@lodash/_equalObjects.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_equalObjects.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getAllKeys */"./node_modules/_lodash@4.17.15@lodash/_getAllKeys.js"),r=1,o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n,o,s,l){var c=n&r,u=i(t),h=u.length,d=i(e),p=d.length;if(h!=p&&!c)return!1;var f=h;while(f--){var g=u[f];if(!(c?g in e:a.call(e,g)))return!1}var m=l.get(t);if(m&&l.get(e))return m==e;var v=!0;l.set(t,e),l.set(e,t);var y=c;while(++f<h){g=u[f];var b=t[g],x=e[g];if(o)var w=c?o(x,b,g,e,t,l):o(b,x,g,t,e,l);if(!(void 0===w?b===x||s(b,x,n,o,l):w)){v=!1;break}y||(y="constructor"==g)}if(v&&!y){var _=t.constructor,C=e.constructor;_!=C&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof C&&C instanceof C)&&(v=!1)}return l["delete"](t),l["delete"](e),v}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_flatRest.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_flatRest.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./flatten */"./node_modules/_lodash@4.17.15@lodash/flatten.js"),r=n(/*! ./_overRest */"./node_modules/_lodash@4.17.15@lodash/_overRest.js"),o=n(/*! ./_setToString */"./node_modules/_lodash@4.17.15@lodash/_setToString.js");function a(t){return o(r(t,void 0,i),t+"")}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_freeGlobal.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_freeGlobal.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(/*! ./../_webpack@4.42.1@webpack/buildin/global.js */"./node_modules/_webpack@4.42.1@webpack/buildin/global.js"))},"./node_modules/_lodash@4.17.15@lodash/_getAllKeys.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getAllKeys.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGetAllKeys */"./node_modules/_lodash@4.17.15@lodash/_baseGetAllKeys.js"),r=n(/*! ./_getSymbols */"./node_modules/_lodash@4.17.15@lodash/_getSymbols.js"),o=n(/*! ./keys */"./node_modules/_lodash@4.17.15@lodash/keys.js");function a(t){return i(t,o,r)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_getAllKeysIn.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getAllKeysIn.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGetAllKeys */"./node_modules/_lodash@4.17.15@lodash/_baseGetAllKeys.js"),r=n(/*! ./_getSymbolsIn */"./node_modules/_lodash@4.17.15@lodash/_getSymbolsIn.js"),o=n(/*! ./keysIn */"./node_modules/_lodash@4.17.15@lodash/keysIn.js");function a(t){return i(t,o,r)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_getMapData.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getMapData.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_isKeyable */"./node_modules/_lodash@4.17.15@lodash/_isKeyable.js");function r(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_getMatchData.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getMatchData.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_isStrictComparable */"./node_modules/_lodash@4.17.15@lodash/_isStrictComparable.js"),r=n(/*! ./keys */"./node_modules/_lodash@4.17.15@lodash/keys.js");function o(t){var e=r(t),n=e.length;while(n--){var o=e[n],a=t[o];e[n]=[o,a,i(a)]}return e}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_getNative.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getNative.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIsNative */"./node_modules/_lodash@4.17.15@lodash/_baseIsNative.js"),r=n(/*! ./_getValue */"./node_modules/_lodash@4.17.15@lodash/_getValue.js");function o(t,e){var n=r(t,e);return i(n)?n:void 0}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_getPrototype.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getPrototype.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_overArg */"./node_modules/_lodash@4.17.15@lodash/_overArg.js"),r=i(Object.getPrototypeOf,Object);t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_getRawTag.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getRawTag.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=i?i.toStringTag:void 0;function l(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(l){}var r=a.call(t);return i&&(e?t[s]=n:delete t[s]),r}t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_getSymbols.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getSymbols.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayFilter */"./node_modules/_lodash@4.17.15@lodash/_arrayFilter.js"),r=n(/*! ./stubArray */"./node_modules/_lodash@4.17.15@lodash/stubArray.js"),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(t){return null==t?[]:(t=Object(t),i(s(t),(function(e){return a.call(t,e)})))}:r;t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_getSymbolsIn.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getSymbolsIn.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayPush */"./node_modules/_lodash@4.17.15@lodash/_arrayPush.js"),r=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),o=n(/*! ./_getSymbols */"./node_modules/_lodash@4.17.15@lodash/_getSymbols.js"),a=n(/*! ./stubArray */"./node_modules/_lodash@4.17.15@lodash/stubArray.js"),s=Object.getOwnPropertySymbols,l=s?function(t){var e=[];while(t)i(e,o(t)),t=r(t);return e}:a;t.exports=l},"./node_modules/_lodash@4.17.15@lodash/_getTag.js":
/*!********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getTag.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_DataView */"./node_modules/_lodash@4.17.15@lodash/_DataView.js"),r=n(/*! ./_Map */"./node_modules/_lodash@4.17.15@lodash/_Map.js"),o=n(/*! ./_Promise */"./node_modules/_lodash@4.17.15@lodash/_Promise.js"),a=n(/*! ./_Set */"./node_modules/_lodash@4.17.15@lodash/_Set.js"),s=n(/*! ./_WeakMap */"./node_modules/_lodash@4.17.15@lodash/_WeakMap.js"),l=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),c=n(/*! ./_toSource */"./node_modules/_lodash@4.17.15@lodash/_toSource.js"),u="[object Map]",h="[object Object]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",g="[object DataView]",m=c(i),v=c(r),y=c(o),b=c(a),x=c(s),w=l;(i&&w(new i(new ArrayBuffer(1)))!=g||r&&w(new r)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=f)&&(w=function(t){var e=l(t),n=e==h?t.constructor:void 0,i=n?c(n):"";if(i)switch(i){case m:return g;case v:return u;case y:return d;case b:return p;case x:return f}return e}),t.exports=w},"./node_modules/_lodash@4.17.15@lodash/_getValue.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_getValue.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_hasPath.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_hasPath.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_castPath */"./node_modules/_lodash@4.17.15@lodash/_castPath.js"),r=n(/*! ./isArguments */"./node_modules/_lodash@4.17.15@lodash/isArguments.js"),o=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),a=n(/*! ./_isIndex */"./node_modules/_lodash@4.17.15@lodash/_isIndex.js"),s=n(/*! ./isLength */"./node_modules/_lodash@4.17.15@lodash/isLength.js"),l=n(/*! ./_toKey */"./node_modules/_lodash@4.17.15@lodash/_toKey.js");function c(t,e,n){e=i(e,t);var c=-1,u=e.length,h=!1;while(++c<u){var d=l(e[c]);if(!(h=null!=t&&n(t,d)))break;t=t[d]}return h||++c!=u?h:(u=null==t?0:t.length,!!u&&s(u)&&a(d,u)&&(o(t)||r(t)))}t.exports=c},"./node_modules/_lodash@4.17.15@lodash/_hasUnicode.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_hasUnicode.js ***!
  \************************************************************/
/*! no static exports found */function(t,e){var n="\\ud800-\\udfff",i="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=i+r+o,s="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+n+a+s+"]");function u(t){return c.test(t)}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/_hashClear.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_hashClear.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_nativeCreate */"./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js");function r(){this.__data__=i?i(null):{},this.size=0}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_hashDelete.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_hashDelete.js ***!
  \************************************************************/
/*! no static exports found */function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_hashGet.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_hashGet.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_nativeCreate */"./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js"),r="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(t){var e=this.__data__;if(i){var n=e[t];return n===r?void 0:n}return a.call(e,t)?e[t]:void 0}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_hashHas.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_hashHas.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_nativeCreate */"./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js"),r=Object.prototype,o=r.hasOwnProperty;function a(t){var e=this.__data__;return i?void 0!==e[t]:o.call(e,t)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_hashSet.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_hashSet.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_nativeCreate */"./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js"),r="__lodash_hash_undefined__";function o(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?r:e,this}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_initCloneArray.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_initCloneArray.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e){var n=Object.prototype,i=n.hasOwnProperty;function r(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&i.call(t,"index")&&(n.index=t.index,n.input=t.input),n}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_initCloneByTag.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_initCloneByTag.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_cloneArrayBuffer */"./node_modules/_lodash@4.17.15@lodash/_cloneArrayBuffer.js"),r=n(/*! ./_cloneDataView */"./node_modules/_lodash@4.17.15@lodash/_cloneDataView.js"),o=n(/*! ./_cloneRegExp */"./node_modules/_lodash@4.17.15@lodash/_cloneRegExp.js"),a=n(/*! ./_cloneSymbol */"./node_modules/_lodash@4.17.15@lodash/_cloneSymbol.js"),s=n(/*! ./_cloneTypedArray */"./node_modules/_lodash@4.17.15@lodash/_cloneTypedArray.js"),l="[object Boolean]",c="[object Date]",u="[object Map]",h="[object Number]",d="[object RegExp]",p="[object Set]",f="[object String]",g="[object Symbol]",m="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",C="[object Uint8Array]",A="[object Uint8ClampedArray]",I="[object Uint16Array]",S="[object Uint32Array]";function M(t,e,n){var M=t.constructor;switch(e){case m:return i(t);case l:case c:return new M(+t);case v:return r(t,n);case y:case b:case x:case w:case _:case C:case A:case I:case S:return s(t,n);case u:return new M;case h:case f:return new M(t);case d:return o(t);case p:return new M;case g:return a(t)}}t.exports=M},"./node_modules/_lodash@4.17.15@lodash/_initCloneObject.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_initCloneObject.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseCreate */"./node_modules/_lodash@4.17.15@lodash/_baseCreate.js"),r=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),o=n(/*! ./_isPrototype */"./node_modules/_lodash@4.17.15@lodash/_isPrototype.js");function a(t){return"function"!=typeof t.constructor||o(t)?{}:i(r(t))}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_isFlattenable.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_isFlattenable.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Symbol */"./node_modules/_lodash@4.17.15@lodash/_Symbol.js"),r=n(/*! ./isArguments */"./node_modules/_lodash@4.17.15@lodash/isArguments.js"),o=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),a=i?i.isConcatSpreadable:void 0;function s(t){return o(t)||r(t)||!!(a&&t&&t[a])}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_isIndex.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_isIndex.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){var n=9007199254740991,i=/^(?:0|[1-9]\d*)$/;function r(t,e){var r=typeof t;return e=null==e?n:e,!!e&&("number"==r||"symbol"!=r&&i.test(t))&&t>-1&&t%1==0&&t<e}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./eq */"./node_modules/_lodash@4.17.15@lodash/eq.js"),r=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),o=n(/*! ./_isIndex */"./node_modules/_lodash@4.17.15@lodash/_isIndex.js"),a=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js");function s(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?r(n)&&o(e,n.length):"string"==s&&e in n)&&i(n[e],t)}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_isKey.js":
/*!*******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_isKey.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),r=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.15@lodash/isSymbol.js"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!r(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_isKeyable.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_isKeyable.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_isMasked.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_isMasked.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_coreJsData */"./node_modules/_lodash@4.17.15@lodash/_coreJsData.js"),r=function(){var t=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function o(t){return!!r&&r in t}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_isPrototype.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_isPrototype.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e){var n=Object.prototype;function i(t){var e=t&&t.constructor,i="function"==typeof e&&e.prototype||n;return t===i}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_isStrictComparable.js":
/*!********************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_isStrictComparable.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js");function r(t){return t===t&&!i(t)}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_listCacheClear.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_listCacheClear.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_listCacheDelete.js":
/*!*****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_listCacheDelete.js ***!
  \*****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_assocIndexOf */"./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js"),r=Array.prototype,o=r.splice;function a(t){var e=this.__data__,n=i(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():o.call(e,n,1),--this.size,!0}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_listCacheGet.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_listCacheGet.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_assocIndexOf */"./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js");function r(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_listCacheHas.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_listCacheHas.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_assocIndexOf */"./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js");function r(t){return i(this.__data__,t)>-1}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_listCacheSet.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_listCacheSet.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_assocIndexOf */"./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js");function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_mapCacheClear.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_mapCacheClear.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_Hash */"./node_modules/_lodash@4.17.15@lodash/_Hash.js"),r=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.15@lodash/_ListCache.js"),o=n(/*! ./_Map */"./node_modules/_lodash@4.17.15@lodash/_Map.js");function a(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_mapCacheDelete.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_mapCacheDelete.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.15@lodash/_getMapData.js");function r(t){var e=i(this,t)["delete"](t);return this.size-=e?1:0,e}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_mapCacheGet.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_mapCacheGet.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.15@lodash/_getMapData.js");function r(t){return i(this,t).get(t)}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_mapCacheHas.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_mapCacheHas.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.15@lodash/_getMapData.js");function r(t){return i(this,t).has(t)}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_mapCacheSet.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_mapCacheSet.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getMapData */"./node_modules/_lodash@4.17.15@lodash/_getMapData.js");function r(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_mapToArray.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_mapToArray.js ***!
  \************************************************************/
/*! no static exports found */function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_matchesStrictComparable.js":
/*!*************************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_matchesStrictComparable.js ***!
  \*************************************************************************/
/*! no static exports found */function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_memoizeCapped.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_memoizeCapped.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./memoize */"./node_modules/_lodash@4.17.15@lodash/memoize.js"),r=500;function o(t){var e=i(t,(function(t){return n.size===r&&n.clear(),t})),n=e.cache;return e}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_getNative */"./node_modules/_lodash@4.17.15@lodash/_getNative.js"),r=i(Object,"create");t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_nativeKeys.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_nativeKeys.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_overArg */"./node_modules/_lodash@4.17.15@lodash/_overArg.js"),r=i(Object.keys,Object);t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_nativeKeysIn.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_nativeKeysIn.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){(function(t){var i=n(/*! ./_freeGlobal */"./node_modules/_lodash@4.17.15@lodash/_freeGlobal.js"),r=e&&!e.nodeType&&e,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===r,s=a&&i.process,l=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=l}).call(this,n(/*! ./../_webpack@4.42.1@webpack/buildin/module.js */"./node_modules/_webpack@4.42.1@webpack/buildin/module.js")(t))},"./node_modules/_lodash@4.17.15@lodash/_objectToString.js":
/*!****************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_objectToString.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e){var n=Object.prototype,i=n.toString;function r(t){return i.call(t)}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_overArg.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_overArg.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_overRest.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_overRest.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_apply */"./node_modules/_lodash@4.17.15@lodash/_apply.js"),r=Math.max;function o(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){var o=arguments,a=-1,s=r(o.length-e,0),l=Array(s);while(++a<s)l[a]=o[e+a];a=-1;var c=Array(e+1);while(++a<e)c[a]=o[a];return c[e]=n(l),i(t,this,c)}}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_root.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_root.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_freeGlobal */"./node_modules/_lodash@4.17.15@lodash/_freeGlobal.js"),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_safeGet.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_safeGet.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){function n(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_setCacheAdd.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_setCacheAdd.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e){var n="__lodash_hash_undefined__";function i(t){return this.__data__.set(t,n),this}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/_setCacheHas.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_setCacheHas.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_setToArray.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_setToArray.js ***!
  \************************************************************/
/*! no static exports found */function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_setToString.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_setToString.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseSetToString */"./node_modules/_lodash@4.17.15@lodash/_baseSetToString.js"),r=n(/*! ./_shortOut */"./node_modules/_lodash@4.17.15@lodash/_shortOut.js"),o=r(i);t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_shortOut.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_shortOut.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){var n=800,i=16,r=Date.now;function o(t){var e=0,o=0;return function(){var a=r(),s=i-(a-o);if(o=a,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_stackClear.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_stackClear.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.15@lodash/_ListCache.js");function r(){this.__data__=new i,this.size=0}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_stackDelete.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_stackDelete.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e){function n(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_stackGet.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_stackGet.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_stackHas.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_stackHas.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_stackSet.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_stackSet.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_ListCache */"./node_modules/_lodash@4.17.15@lodash/_ListCache.js"),r=n(/*! ./_Map */"./node_modules/_lodash@4.17.15@lodash/_Map.js"),o=n(/*! ./_MapCache */"./node_modules/_lodash@4.17.15@lodash/_MapCache.js"),a=200;function s(t,e){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length<a-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/_strictIndexOf.js":
/*!***************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_strictIndexOf.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e){function n(t,e,n){var i=n-1,r=t.length;while(++i<r)if(t[i]===e)return i;return-1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/_stringSize.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_stringSize.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_asciiSize */"./node_modules/_lodash@4.17.15@lodash/_asciiSize.js"),r=n(/*! ./_hasUnicode */"./node_modules/_lodash@4.17.15@lodash/_hasUnicode.js"),o=n(/*! ./_unicodeSize */"./node_modules/_lodash@4.17.15@lodash/_unicodeSize.js");function a(t){return r(t)?o(t):i(t)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_stringToPath.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_stringToPath.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_memoizeCapped */"./node_modules/_lodash@4.17.15@lodash/_memoizeCapped.js"),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,i,r){e.push(i?r.replace(o,"$1"):n||t)})),e}));t.exports=a},"./node_modules/_lodash@4.17.15@lodash/_toKey.js":
/*!*******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_toKey.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.15@lodash/isSymbol.js"),r=1/0;function o(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-r?"-0":e}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/_toSource.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_toSource.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){var n=Function.prototype,i=n.toString;function r(t){if(null!=t){try{return i.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_unicodeSize.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/_unicodeSize.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e){var n="\\ud800-\\udfff",i="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=i+r+o,s="\\ufe0e\\ufe0f",l="["+n+"]",c="["+a+"]",u="\\ud83c[\\udffb-\\udfff]",h="(?:"+c+"|"+u+")",d="[^"+n+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",m=h+"?",v="["+s+"]?",y="(?:"+g+"(?:"+[d,p,f].join("|")+")"+v+m+")*",b=v+m+y,x="(?:"+[d+c+"?",c,p,f,l].join("|")+")",w=RegExp(u+"(?="+u+")|"+x+b,"g");function _(t){var e=w.lastIndex=0;while(w.test(t))++e;return e}t.exports=_},"./node_modules/_lodash@4.17.15@lodash/clone.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/clone.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseClone */"./node_modules/_lodash@4.17.15@lodash/_baseClone.js"),r=4;function o(t){return i(t,r)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/cloneDeep.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/cloneDeep.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseClone */"./node_modules/_lodash@4.17.15@lodash/_baseClone.js"),r=1,o=4;function a(t){return i(t,r|o)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/constant.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/constant.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){function n(t){return function(){return t}}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/defaults.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/defaults.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),r=n(/*! ./eq */"./node_modules/_lodash@4.17.15@lodash/eq.js"),o=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js"),a=n(/*! ./keysIn */"./node_modules/_lodash@4.17.15@lodash/keysIn.js"),s=Object.prototype,l=s.hasOwnProperty,c=i((function(t,e){t=Object(t);var n=-1,i=e.length,c=i>2?e[2]:void 0;c&&o(e[0],e[1],c)&&(i=1);while(++n<i){var u=e[n],h=a(u),d=-1,p=h.length;while(++d<p){var f=h[d],g=t[f];(void 0===g||r(g,s[f])&&!l.call(t,f))&&(t[f]=u[f])}}return t}));t.exports=c},"./node_modules/_lodash@4.17.15@lodash/each.js":
/*!*****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/each.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,n){t.exports=n(/*! ./forEach */"./node_modules/_lodash@4.17.15@lodash/forEach.js")},"./node_modules/_lodash@4.17.15@lodash/eq.js":
/*!***************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/eq.js ***!
  \***************************************************/
/*! no static exports found */function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/filter.js":
/*!*******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/filter.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayFilter */"./node_modules/_lodash@4.17.15@lodash/_arrayFilter.js"),r=n(/*! ./_baseFilter */"./node_modules/_lodash@4.17.15@lodash/_baseFilter.js"),o=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js");function s(t,e){var n=a(t)?i:r;return n(t,o(e,3))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/find.js":
/*!*****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/find.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_createFind */"./node_modules/_lodash@4.17.15@lodash/_createFind.js"),r=n(/*! ./findIndex */"./node_modules/_lodash@4.17.15@lodash/findIndex.js"),o=i(r);t.exports=o},"./node_modules/_lodash@4.17.15@lodash/findIndex.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/findIndex.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseFindIndex */"./node_modules/_lodash@4.17.15@lodash/_baseFindIndex.js"),r=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),o=n(/*! ./toInteger */"./node_modules/_lodash@4.17.15@lodash/toInteger.js"),a=Math.max;function s(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),i(t,r(e,3),l)}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/flatten.js":
/*!********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/flatten.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseFlatten */"./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js");function r(t){var e=null==t?0:t.length;return e?i(t,1):[]}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/forEach.js":
/*!********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/forEach.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayEach */"./node_modules/_lodash@4.17.15@lodash/_arrayEach.js"),r=n(/*! ./_baseEach */"./node_modules/_lodash@4.17.15@lodash/_baseEach.js"),o=n(/*! ./_castFunction */"./node_modules/_lodash@4.17.15@lodash/_castFunction.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js");function s(t,e){var n=a(t)?i:r;return n(t,o(e))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/forIn.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/forIn.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseFor */"./node_modules/_lodash@4.17.15@lodash/_baseFor.js"),r=n(/*! ./_castFunction */"./node_modules/_lodash@4.17.15@lodash/_castFunction.js"),o=n(/*! ./keysIn */"./node_modules/_lodash@4.17.15@lodash/keysIn.js");function a(t,e){return null==t?t:i(t,r(e),o)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/get.js":
/*!****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/get.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGet */"./node_modules/_lodash@4.17.15@lodash/_baseGet.js");function r(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/has.js":
/*!****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/has.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseHas */"./node_modules/_lodash@4.17.15@lodash/_baseHas.js"),r=n(/*! ./_hasPath */"./node_modules/_lodash@4.17.15@lodash/_hasPath.js");function o(t,e){return null!=t&&r(t,e,i)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/hasIn.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/hasIn.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseHasIn */"./node_modules/_lodash@4.17.15@lodash/_baseHasIn.js"),r=n(/*! ./_hasPath */"./node_modules/_lodash@4.17.15@lodash/_hasPath.js");function o(t,e){return null!=t&&r(t,e,i)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/identity.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/identity.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){function n(t){return t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/isArguments.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isArguments.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIsArguments */"./node_modules/_lodash@4.17.15@lodash/_baseIsArguments.js"),r=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(t){return r(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},"./node_modules/_lodash@4.17.15@lodash/isArray.js":
/*!********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isArray.js ***!
  \********************************************************/
/*! no static exports found */function(t,e){var n=Array.isArray;t.exports=n},"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isArrayLike.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isFunction */"./node_modules/_lodash@4.17.15@lodash/isFunction.js"),r=n(/*! ./isLength */"./node_modules/_lodash@4.17.15@lodash/isLength.js");function o(t){return null!=t&&r(t.length)&&!i(t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/isArrayLikeObject.js":
/*!******************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isArrayLikeObject.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),r=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js");function o(t){return r(t)&&i(t)}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/isBuffer.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isBuffer.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){(function(t){var i=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),r=n(/*! ./stubFalse */"./node_modules/_lodash@4.17.15@lodash/stubFalse.js"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,l=s?i.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||r;t.exports=u}).call(this,n(/*! ./../_webpack@4.42.1@webpack/buildin/module.js */"./node_modules/_webpack@4.42.1@webpack/buildin/module.js")(t))},"./node_modules/_lodash@4.17.15@lodash/isEmpty.js":
/*!********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isEmpty.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseKeys */"./node_modules/_lodash@4.17.15@lodash/_baseKeys.js"),r=n(/*! ./_getTag */"./node_modules/_lodash@4.17.15@lodash/_getTag.js"),o=n(/*! ./isArguments */"./node_modules/_lodash@4.17.15@lodash/isArguments.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),s=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),l=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),c=n(/*! ./_isPrototype */"./node_modules/_lodash@4.17.15@lodash/_isPrototype.js"),u=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.15@lodash/isTypedArray.js"),h="[object Map]",d="[object Set]",p=Object.prototype,f=p.hasOwnProperty;function g(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||o(t)))return!t.length;var e=r(t);if(e==h||e==d)return!t.size;if(c(t))return!i(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}t.exports=g},"./node_modules/_lodash@4.17.15@lodash/isFunction.js":
/*!***********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isFunction.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),r=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(t){if(!r(t))return!1;var e=i(t);return e==a||e==s||e==o||e==l}t.exports=c},"./node_modules/_lodash@4.17.15@lodash/isLength.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isLength.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){var n=9007199254740991;function i(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}t.exports=i},"./node_modules/_lodash@4.17.15@lodash/isMap.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isMap.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIsMap */"./node_modules/_lodash@4.17.15@lodash/_baseIsMap.js"),r=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),o=n(/*! ./_nodeUtil */"./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),a=o&&o.isMap,s=a?r(a):i;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isObject.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isObject.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isObjectLike.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/isPlainObject.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isPlainObject.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),r=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),o=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,h=c.call(Object);function d(t){if(!o(t)||i(t)!=a)return!1;var e=r(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==h}t.exports=d},"./node_modules/_lodash@4.17.15@lodash/isSet.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isSet.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIsSet */"./node_modules/_lodash@4.17.15@lodash/_baseIsSet.js"),r=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),o=n(/*! ./_nodeUtil */"./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),a=o&&o.isSet,s=a?r(a):i;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isString.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isString.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),r=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),o=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object String]";function s(t){return"string"==typeof t||!r(t)&&o(t)&&i(t)==a}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isSymbol.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isSymbol.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseGetTag */"./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),r=n(/*! ./isObjectLike */"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),o="[object Symbol]";function a(t){return"symbol"==typeof t||r(t)&&i(t)==o}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/isTypedArray.js":
/*!*************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isTypedArray.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseIsTypedArray */"./node_modules/_lodash@4.17.15@lodash/_baseIsTypedArray.js"),r=n(/*! ./_baseUnary */"./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),o=n(/*! ./_nodeUtil */"./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),a=o&&o.isTypedArray,s=a?r(a):i;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isUndefined.js":
/*!************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/isUndefined.js ***!
  \************************************************************/
/*! no static exports found */function(t,e){function n(t){return void 0===t}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/keys.js":
/*!*****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/keys.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayLikeKeys */"./node_modules/_lodash@4.17.15@lodash/_arrayLikeKeys.js"),r=n(/*! ./_baseKeys */"./node_modules/_lodash@4.17.15@lodash/_baseKeys.js"),o=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function a(t){return o(t)?i(t):r(t)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/keysIn.js":
/*!*******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/keysIn.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayLikeKeys */"./node_modules/_lodash@4.17.15@lodash/_arrayLikeKeys.js"),r=n(/*! ./_baseKeysIn */"./node_modules/_lodash@4.17.15@lodash/_baseKeysIn.js"),o=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");function a(t){return o(t)?i(t,!0):r(t)}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/last.js":
/*!*****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/last.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e){function n(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/map.js":
/*!****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/map.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayMap */"./node_modules/_lodash@4.17.15@lodash/_arrayMap.js"),r=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),o=n(/*! ./_baseMap */"./node_modules/_lodash@4.17.15@lodash/_baseMap.js"),a=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js");function s(t,e){var n=a(t)?i:o;return n(t,r(e,3))}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/mapValues.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/mapValues.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseAssignValue */"./node_modules/_lodash@4.17.15@lodash/_baseAssignValue.js"),r=n(/*! ./_baseForOwn */"./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js"),o=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js");function a(t,e){var n={};return e=o(e,3),r(t,(function(t,r,o){i(n,r,e(t,r,o))})),n}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/max.js":
/*!****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/max.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseExtremum */"./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js"),r=n(/*! ./_baseGt */"./node_modules/_lodash@4.17.15@lodash/_baseGt.js"),o=n(/*! ./identity */"./node_modules/_lodash@4.17.15@lodash/identity.js");function a(t){return t&&t.length?i(t,o,r):void 0}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/memoize.js":
/*!********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/memoize.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_MapCache */"./node_modules/_lodash@4.17.15@lodash/_MapCache.js"),r="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(r);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(o.Cache||i),n}o.Cache=i,t.exports=o},"./node_modules/_lodash@4.17.15@lodash/merge.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/merge.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseMerge */"./node_modules/_lodash@4.17.15@lodash/_baseMerge.js"),r=n(/*! ./_createAssigner */"./node_modules/_lodash@4.17.15@lodash/_createAssigner.js"),o=r((function(t,e,n){i(t,e,n)}));t.exports=o},"./node_modules/_lodash@4.17.15@lodash/min.js":
/*!****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/min.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseExtremum */"./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js"),r=n(/*! ./_baseLt */"./node_modules/_lodash@4.17.15@lodash/_baseLt.js"),o=n(/*! ./identity */"./node_modules/_lodash@4.17.15@lodash/identity.js");function a(t){return t&&t.length?i(t,o,r):void 0}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/minBy.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/minBy.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseExtremum */"./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js"),r=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),o=n(/*! ./_baseLt */"./node_modules/_lodash@4.17.15@lodash/_baseLt.js");function a(t,e){return t&&t.length?i(t,r(e,2),o):void 0}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/noop.js":
/*!*****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/noop.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e){function n(){}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/now.js":
/*!****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/now.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_root */"./node_modules/_lodash@4.17.15@lodash/_root.js"),r=function(){return i.Date.now()};t.exports=r},"./node_modules/_lodash@4.17.15@lodash/pick.js":
/*!*****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/pick.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_basePick */"./node_modules/_lodash@4.17.15@lodash/_basePick.js"),r=n(/*! ./_flatRest */"./node_modules/_lodash@4.17.15@lodash/_flatRest.js"),o=r((function(t,e){return null==t?{}:i(t,e)}));t.exports=o},"./node_modules/_lodash@4.17.15@lodash/property.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/property.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseProperty */"./node_modules/_lodash@4.17.15@lodash/_baseProperty.js"),r=n(/*! ./_basePropertyDeep */"./node_modules/_lodash@4.17.15@lodash/_basePropertyDeep.js"),o=n(/*! ./_isKey */"./node_modules/_lodash@4.17.15@lodash/_isKey.js"),a=n(/*! ./_toKey */"./node_modules/_lodash@4.17.15@lodash/_toKey.js");function s(t){return o(t)?i(a(t)):r(t)}t.exports=s},"./node_modules/_lodash@4.17.15@lodash/range.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/range.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_createRange */"./node_modules/_lodash@4.17.15@lodash/_createRange.js"),r=i();t.exports=r},"./node_modules/_lodash@4.17.15@lodash/reduce.js":
/*!*******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/reduce.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayReduce */"./node_modules/_lodash@4.17.15@lodash/_arrayReduce.js"),r=n(/*! ./_baseEach */"./node_modules/_lodash@4.17.15@lodash/_baseEach.js"),o=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),a=n(/*! ./_baseReduce */"./node_modules/_lodash@4.17.15@lodash/_baseReduce.js"),s=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js");function l(t,e,n){var l=s(t)?i:a,c=arguments.length<3;return l(t,o(e,4),n,c,r)}t.exports=l},"./node_modules/_lodash@4.17.15@lodash/size.js":
/*!*****************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/size.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseKeys */"./node_modules/_lodash@4.17.15@lodash/_baseKeys.js"),r=n(/*! ./_getTag */"./node_modules/_lodash@4.17.15@lodash/_getTag.js"),o=n(/*! ./isArrayLike */"./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),a=n(/*! ./isString */"./node_modules/_lodash@4.17.15@lodash/isString.js"),s=n(/*! ./_stringSize */"./node_modules/_lodash@4.17.15@lodash/_stringSize.js"),l="[object Map]",c="[object Set]";function u(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=r(t);return e==l||e==c?t.size:i(t).length}t.exports=u},"./node_modules/_lodash@4.17.15@lodash/sortBy.js":
/*!*******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/sortBy.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseFlatten */"./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js"),r=n(/*! ./_baseOrderBy */"./node_modules/_lodash@4.17.15@lodash/_baseOrderBy.js"),o=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),a=n(/*! ./_isIterateeCall */"./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js"),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),r(t,i(e,1),[])}));t.exports=s},"./node_modules/_lodash@4.17.15@lodash/stubArray.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/stubArray.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){function n(){return[]}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/stubFalse.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/stubFalse.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e){function n(){return!1}t.exports=n},"./node_modules/_lodash@4.17.15@lodash/toFinite.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/toFinite.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./toNumber */"./node_modules/_lodash@4.17.15@lodash/toNumber.js"),r=1/0,o=17976931348623157e292;function a(t){if(!t)return 0===t?t:0;if(t=i(t),t===r||t===-r){var e=t<0?-1:1;return e*o}return t===t?t:0}t.exports=a},"./node_modules/_lodash@4.17.15@lodash/toInteger.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/toInteger.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./toFinite */"./node_modules/_lodash@4.17.15@lodash/toFinite.js");function r(t){var e=i(t),n=e%1;return e===e?n?e-n:e:0}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/toNumber.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/toNumber.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),r=n(/*! ./isSymbol */"./node_modules/_lodash@4.17.15@lodash/isSymbol.js"),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function h(t){if("number"==typeof t)return t;if(r(t))return o;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=l.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):s.test(t)?o:+t}t.exports=h},"./node_modules/_lodash@4.17.15@lodash/toPlainObject.js":
/*!**************************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/toPlainObject.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_copyObject */"./node_modules/_lodash@4.17.15@lodash/_copyObject.js"),r=n(/*! ./keysIn */"./node_modules/_lodash@4.17.15@lodash/keysIn.js");function o(t){return i(t,r(t))}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/toString.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/toString.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseToString */"./node_modules/_lodash@4.17.15@lodash/_baseToString.js");function r(t){return null==t?"":i(t)}t.exports=r},"./node_modules/_lodash@4.17.15@lodash/transform.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/transform.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_arrayEach */"./node_modules/_lodash@4.17.15@lodash/_arrayEach.js"),r=n(/*! ./_baseCreate */"./node_modules/_lodash@4.17.15@lodash/_baseCreate.js"),o=n(/*! ./_baseForOwn */"./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js"),a=n(/*! ./_baseIteratee */"./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),s=n(/*! ./_getPrototype */"./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),l=n(/*! ./isArray */"./node_modules/_lodash@4.17.15@lodash/isArray.js"),c=n(/*! ./isBuffer */"./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),u=n(/*! ./isFunction */"./node_modules/_lodash@4.17.15@lodash/isFunction.js"),h=n(/*! ./isObject */"./node_modules/_lodash@4.17.15@lodash/isObject.js"),d=n(/*! ./isTypedArray */"./node_modules/_lodash@4.17.15@lodash/isTypedArray.js");function p(t,e,n){var p=l(t),f=p||c(t)||d(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=f?p?new g:[]:h(t)&&u(g)?r(s(t)):{}}return(f?i:o)(t,(function(t,i,r){return e(n,t,i,r)})),n}t.exports=p},"./node_modules/_lodash@4.17.15@lodash/union.js":
/*!******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/union.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseFlatten */"./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js"),r=n(/*! ./_baseRest */"./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),o=n(/*! ./_baseUniq */"./node_modules/_lodash@4.17.15@lodash/_baseUniq.js"),a=n(/*! ./isArrayLikeObject */"./node_modules/_lodash@4.17.15@lodash/isArrayLikeObject.js"),s=r((function(t){return o(i(t,1,a,!0))}));t.exports=s},"./node_modules/_lodash@4.17.15@lodash/uniqueId.js":
/*!*********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/uniqueId.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./toString */"./node_modules/_lodash@4.17.15@lodash/toString.js"),r=0;function o(t){var e=++r;return i(t)+e}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/values.js":
/*!*******************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/values.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_baseValues */"./node_modules/_lodash@4.17.15@lodash/_baseValues.js"),r=n(/*! ./keys */"./node_modules/_lodash@4.17.15@lodash/keys.js");function o(t){return null==t?[]:i(t,r(t))}t.exports=o},"./node_modules/_lodash@4.17.15@lodash/zipObject.js":
/*!**********************************************************!*\
  !*** ./node_modules/_lodash@4.17.15@lodash/zipObject.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! ./_assignValue */"./node_modules/_lodash@4.17.15@lodash/_assignValue.js"),r=n(/*! ./_baseZipObject */"./node_modules/_lodash@4.17.15@lodash/_baseZipObject.js");function o(t,e){return r(t||[],e||[],i)}t.exports=o},"./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js":
/*!********************************************************************!*\
  !*** ./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e){t.exports=r;var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function r(t){var e=[];return t.replace(i,(function(t,i,r){var o=i.toLowerCase();r=a(r),"m"==o&&r.length>2&&(e.push([i].concat(r.splice(0,2))),o="l",i="m"==i?"l":"L");while(1){if(r.length==n[o])return r.unshift(i),e.push(r);if(r.length<n[o])throw new Error("malformed path data");e.push([i].concat(r.splice(0,n[o])))}})),e}var o=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function a(t){var e=t.match(o);return e?e.map(Number):[]}},"./node_modules/_point-at-length@1.1.0@point-at-length/index.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_point-at-length@1.1.0@point-at-length/index.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){var i=n(/*! parse-svg-path */"./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js"),r=n(/*! isarray */"./node_modules/_isarray@0.0.1@isarray/index.js"),o=n(/*! abs-svg-path */"./node_modules/_abs-svg-path@0.1.1@abs-svg-path/index.js");function a(t){if(!(this instanceof a))return new a(t);this._path=r(t)?t:i(t),this._path=o(this._path),this._path=c(this._path),this._path=l(this._path)}function s(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function l(t){for(var e,n=0,i=0,r={S:{to:"C",x:3},T:{to:"Q",x:1}},o=0,a=t.length;o<a;o++){var s=t[o],l=r[s[0]];l&&(s[0]=l.to,e&&(e[0]===l.to?(n=2*e[l.x+2]-e[l.x],i=2*e[l.x+3]-e[l.x+1]):(n=e[e.length-2],i=e[e.length-1])),s.splice(1,0,n,i)),e=s}return t}function c(t){for(var e,n=[],i=["L",0,0],r=0,o=t.length;r<o;r++){var a=t[r];switch(a[0]){case"M":i=["L",a[1],a[2]],n.push(a);break;case"Z":n.push(i);break;case"H":e=n[n.length-1]||["L",0,0],n.push(["L",a[1],e[e.length-1]]);break;case"V":e=n[n.length-1]||["L",0,0],n.push(["L",e[e.length-2],a[1]]);break;default:n.push(a)}}return n}t.exports=a,a.prototype.at=function(t,e){return this._walk(t,e).pos},a.prototype.length=function(){return this._walk(null).length},a.prototype._walk=function(t,e){for(var n=[0,0],i=[0,0,0],r=[0,0],o=0,a=0;a<this._path.length;a++){var l=this._path[a];if("M"===l[0]){if(n[0]=l[1],n[1]=l[2],0===t)return{length:o,pos:n}}else if("C"===l[0]){i[0]=r[0]=n[0],i[1]=r[1]=n[1],i[2]=o;for(var c=100,u=0;u<=c;u++){var h=u/c,d=m(l,h),p=v(l,h);if(o+=s(n[0],n[1],d,p),n[0]=d,n[1]=p,"number"===typeof t&&o>=t){var f=(o-t)/(o-i[2]),g=[n[0]*(1-f)+i[0]*f,n[1]*(1-f)+i[1]*f];return{length:o,pos:g}}i[0]=n[0],i[1]=n[1],i[2]=o}}else if("Q"===l[0]){i[0]=r[0]=n[0],i[1]=r[1]=n[1],i[2]=o;for(c=100,u=0;u<=c;u++){h=u/c,d=y(l,h),p=b(l,h);if(o+=s(n[0],n[1],d,p),n[0]=d,n[1]=p,"number"===typeof t&&o>=t){f=(o-t)/(o-i[2]),g=[n[0]*(1-f)+i[0]*f,n[1]*(1-f)+i[1]*f];return{length:o,pos:g}}i[0]=n[0],i[1]=n[1],i[2]=o}}else if("L"===l[0]){if(i[0]=n[0],i[1]=n[1],i[2]=o,o+=s(n[0],n[1],l[1],l[2]),n[0]=l[1],n[1]=l[2],"number"===typeof t&&o>=t){f=(o-t)/(o-i[2]),g=[n[0]*(1-f)+i[0]*f,n[1]*(1-f)+i[1]*f];return{length:o,pos:g}}i[0]=n[0],i[1]=n[1],i[2]=o}}return{length:o,pos:n};function m(t,e){return Math.pow(1-e,3)*r[0]+3*Math.pow(1-e,2)*e*t[1]+3*(1-e)*Math.pow(e,2)*t[3]+Math.pow(e,3)*t[5]}function v(t,e){return Math.pow(1-e,3)*r[1]+3*Math.pow(1-e,2)*e*t[2]+3*(1-e)*Math.pow(e,2)*t[4]+Math.pow(e,3)*t[6]}function y(t,e){return Math.pow(1-e,2)*r[0]+2*(1-e)*e*t[1]+Math.pow(e,2)*t[3]}function b(t,e){return Math.pow(1-e,2)*r[1]+2*(1-e)*e*t[2]+Math.pow(e,2)*t[4]}}},"./node_modules/_regression@2.0.1@regression/dist/regression.js":
/*!**********************************************************************!*\
  !*** ./node_modules/_regression@2.0.1@regression/dist/regression.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e,n){var i,r,o;(function(n,a){r=[t],i=a,o="function"===typeof i?i.apply(e,r):i,void 0===o||(t.exports=o)})(0,(function(t){"use strict";function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var r={order:2,precision:2,period:null};function o(t,e){var n=[],i=[];t.forEach((function(t,r){null!==t[1]&&(i.push(t),n.push(e[r]))}));var r=i.reduce((function(t,e){return t+e[1]}),0),o=r/i.length,a=i.reduce((function(t,e){var n=e[1]-o;return t+n*n}),0),s=i.reduce((function(t,e,i){var r=n[i],o=e[1]-r[1];return t+o*o}),0);return 1-s/a}function a(t,e){for(var n=t,i=t.length-1,r=[e],o=0;o<i;o++){for(var a=o,s=o+1;s<i;s++)Math.abs(n[o][s])>Math.abs(n[o][a])&&(a=s);for(var l=o;l<i+1;l++){var c=n[l][o];n[l][o]=n[l][a],n[l][a]=c}for(var u=o+1;u<i;u++)for(var h=i;h>=o;h--)n[h][u]-=n[h][o]*n[o][u]/n[o][o]}for(var d=i-1;d>=0;d--){for(var p=0,f=d+1;f<i;f++)p+=n[f][d]*r[f];r[d]=(n[i][d]-p)/n[d][d]}return r}function s(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}var l={linear:function(t,e){for(var n=[0,0,0,0,0],i=0,r=0;r<t.length;r++)null!==t[r][1]&&(i++,n[0]+=t[r][0],n[1]+=t[r][1],n[2]+=t[r][0]*t[r][0],n[3]+=t[r][0]*t[r][1],n[4]+=t[r][1]*t[r][1]);var a=i*n[2]-n[0]*n[0],l=i*n[3]-n[0]*n[1],c=0===a?0:s(l/a,e.precision),u=s(n[1]/i-c*n[0]/i,e.precision),h=function(t){return[s(t,e.precision),s(c*t+u,e.precision)]},d=t.map((function(t){return h(t[0])}));return{points:d,predict:h,equation:[c,u],r2:s(o(t,d),e.precision),string:0===u?"y = "+c+"x":"y = "+c+"x + "+u}},exponential:function(t,e){for(var n=[0,0,0,0,0,0],i=0;i<t.length;i++)null!==t[i][1]&&(n[0]+=t[i][0],n[1]+=t[i][1],n[2]+=t[i][0]*t[i][0]*t[i][1],n[3]+=t[i][1]*Math.log(t[i][1]),n[4]+=t[i][0]*t[i][1]*Math.log(t[i][1]),n[5]+=t[i][0]*t[i][1]);var r=n[1]*n[2]-n[5]*n[5],a=Math.exp((n[2]*n[3]-n[5]*n[4])/r),l=(n[1]*n[4]-n[5]*n[3])/r,c=s(a,e.precision),u=s(l,e.precision),h=function(t){return[s(t,e.precision),s(c*Math.exp(u*t),e.precision)]},d=t.map((function(t){return h(t[0])}));return{points:d,predict:h,equation:[c,u],string:"y = "+c+"e^("+u+"x)",r2:s(o(t,d),e.precision)}},logarithmic:function(t,e){for(var n=[0,0,0,0],i=t.length,r=0;r<i;r++)null!==t[r][1]&&(n[0]+=Math.log(t[r][0]),n[1]+=t[r][1]*Math.log(t[r][0]),n[2]+=t[r][1],n[3]+=Math.pow(Math.log(t[r][0]),2));var a=(i*n[1]-n[2]*n[0])/(i*n[3]-n[0]*n[0]),l=s(a,e.precision),c=s((n[2]-l*n[0])/i,e.precision),u=function(t){return[s(t,e.precision),s(s(c+l*Math.log(t),e.precision),e.precision)]},h=t.map((function(t){return u(t[0])}));return{points:h,predict:u,equation:[c,l],string:"y = "+c+" + "+l+" ln(x)",r2:s(o(t,h),e.precision)}},power:function(t,e){for(var n=[0,0,0,0,0],i=t.length,r=0;r<i;r++)null!==t[r][1]&&(n[0]+=Math.log(t[r][0]),n[1]+=Math.log(t[r][1])*Math.log(t[r][0]),n[2]+=Math.log(t[r][1]),n[3]+=Math.pow(Math.log(t[r][0]),2));var a=(i*n[1]-n[0]*n[2])/(i*n[3]-Math.pow(n[0],2)),l=(n[2]-a*n[0])/i,c=s(Math.exp(l),e.precision),u=s(a,e.precision),h=function(t){return[s(t,e.precision),s(s(c*Math.pow(t,u),e.precision),e.precision)]},d=t.map((function(t){return h(t[0])}));return{points:d,predict:h,equation:[c,u],string:"y = "+c+"x^"+u,r2:s(o(t,d),e.precision)}},polynomial:function(t,e){for(var n=[],r=[],l=0,c=0,u=t.length,h=e.order+1,d=0;d<h;d++){for(var p=0;p<u;p++)null!==t[p][1]&&(l+=Math.pow(t[p][0],d)*t[p][1]);n.push(l),l=0;for(var f=[],g=0;g<h;g++){for(var m=0;m<u;m++)null!==t[m][1]&&(c+=Math.pow(t[m][0],d+g));f.push(c),c=0}r.push(f)}r.push(n);for(var v=a(r,h).map((function(t){return s(t,e.precision)})),y=function(t){return[s(t,e.precision),s(v.reduce((function(e,n,i){return e+n*Math.pow(t,i)}),0),e.precision)]},b=t.map((function(t){return y(t[0])})),x="y = ",w=v.length-1;w>=0;w--)x+=w>1?v[w]+"x^"+w+" + ":1===w?v[w]+"x + ":v[w];return{string:x,points:b,predict:y,equation:[].concat(i(v)).reverse(),r2:s(o(t,b),e.precision)}}};function c(){var t=function(t,i){return n({_round:s},t,e({},i,(function(t,e){return l[i](t,n({},r,e))})))};return Object.keys(l).reduce(t,{})}t.exports=c()}))},"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js":
/*!***********************************************************************************************!*\
  !*** ./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js ***!
  \***********************************************************************************************/
/*! no static exports found */function(t,e,n){!function(t,n){n(e)}(0,(function(t){"use strict";function e(t){if(0===t.length)return 0;for(var e,n=t[0],i=0,r=1;r<t.length;r++)e=n+t[r],Math.abs(n)>=Math.abs(t[r])?i+=n-e+t[r]:i+=t[r]-e+n,n=e;return n+i}function n(t){if(0===t.length)throw new Error("mean requires at least one data point");return e(t)/t.length}function i(t,e){var i,r,o=n(t),a=0;if(2===e)for(r=0;r<t.length;r++)a+=(i=t[r]-o)*i;else for(r=0;r<t.length;r++)a+=Math.pow(t[r]-o,e);return a}function r(t){if(0===t.length)throw new Error("variance requires at least one data point");return i(t,2)/t.length}function o(t){if(1===t.length)return 0;var e=r(t);return Math.sqrt(e)}function a(t){if(0===t.length)throw new Error("mode requires at least one data point");if(1===t.length)return t[0];for(var e=t[0],n=NaN,i=0,r=1,o=1;o<t.length+1;o++)t[o]!==e?(i<r&&(i=r,n=e),r=1,e=t[o]):r++;return n}function s(t){return t.slice().sort((function(t,e){return t-e}))}function l(t){if(0===t.length)throw new Error("min requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]<e&&(e=t[n]);return e}function c(t){if(0===t.length)throw new Error("max requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]>e&&(e=t[n]);return e}function u(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||1<e)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function h(t,e,n,i){for(n=n||0,i=i||t.length-1;n<i;){if(600<i-n){var r=i-n+1,o=e-n+1,a=Math.log(r),s=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*s*(r-s)/r);o-r/2<0&&(l*=-1),h(t,e,Math.max(n,Math.floor(e-o*s/r+l)),Math.min(i,Math.floor(e+(r-o)*s/r+l)))}var c=t[e],u=n,p=i;for(d(t,n,e),t[i]>c&&d(t,n,i);u<p;){for(d(t,u,p),u++,p--;t[u]<c;)u++;for(;t[p]>c;)p--}t[n]===c?d(t,n,p):d(t,++p,i),p<=e&&(n=p+1),e<=p&&(i=p-1)}}function d(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function p(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],i=0;i<e.length;i++)n.push(m(t.length,e[i]));n.push(t.length-1),n.sort(g);for(var r=[0,n.length-1];r.length;){var o=Math.ceil(r.pop()),a=Math.floor(r.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);f(t,n[s],n[a],n[o]),r.push(a,s,s,o)}}}(n,e);for(var i=[],r=0;r<e.length;r++)i[r]=u(n,e[r]);return i}return f(n,m(n.length,e),0,n.length-1),u(n,e)}function f(t,e,n,i){e%1==0?h(t,e,n,i):(h(t,e=Math.floor(e),n,i),h(t,e+1,e+1,i))}function g(t,e){return t-e}function m(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}function v(t,e){if(e<t[0])return 0;if(e>t[t.length-1])return 1;var n=function(t,e){for(var n=0,i=0,r=t.length;i<r;)e<=t[n=i+r>>>1]?r=n:i=-~n;return i}(t,e);if(t[n]!==e)return n/t.length;n++;var i=function(t,e){for(var n=0,i=0,r=t.length;i<r;)e>=t[n=i+r>>>1]?i=-~n:r=n;return i}(t,e);if(i===n)return n/t.length;var r=i-n+1;return r*(i+n)/2/r/t.length}function y(t){var e=p(t,.75),n=p(t,.25);if("number"==typeof e&&"number"==typeof n)return e-n}function b(t){return+p(t,.5)}function x(t){for(var e=b(t),n=[],i=0;i<t.length;i++)n.push(Math.abs(t[i]-e));return b(n)}function w(t,e){e=e||Math.random;for(var n,i,r=t.length;0<r;)i=Math.floor(e()*r--),n=t[r],t[r]=t[i],t[i]=n;return t}function _(t,e){return w(t.slice().slice(),e)}function C(t){for(var e,n=0,i=0;i<t.length;i++)0!==i&&t[i]===e||(e=t[i],n++);return n}function A(t,e){for(var n=[],i=0;i<t;i++){for(var r=[],o=0;o<e;o++)r.push(0);n.push(r)}return n}function I(t,e,n,i){var r;if(0<t){var o=(n[e]-n[t-1])/(e-t+1);r=i[e]-i[t-1]-(e-t+1)*o*o}else r=i[e]-n[e]*n[e]/(e+1);return r<0?0:r}function S(t,e,n,i,r,o,a){if(!(e<t)){var s=Math.floor((t+e)/2);i[n][s]=i[n-1][s-1],r[n][s]=s;var l=n;n<t&&(l=Math.max(l,r[n][t-1]||0)),l=Math.max(l,r[n-1][s]||0);var c,u,h,d=s-1;e<i.length-1&&(d=Math.min(d,r[n][e+1]||0));for(var p=d;l<=p&&!((c=I(p,s,o,a))+i[n-1][l-1]>=i[n][s]);--p)(u=I(l,s,o,a)+i[n-1][l-1])<i[n][s]&&(i[n][s]=u,r[n][s]=l),l++,(h=c+i[n-1][p-1])<i[n][s]&&(i[n][s]=h,r[n][s]=p);S(t,s-1,n,i,r,o,a),S(s+1,e,n,i,r,o,a)}}function M(t,e){if(t.length!==e.length)throw new Error("sampleCovariance requires samples with equal lengths");if(t.length<2)throw new Error("sampleCovariance requires at least two data points in each sample");for(var i=n(t),r=n(e),o=0,a=0;a<t.length;a++)o+=(t[a]-i)*(e[a]-r);return o/(t.length-1)}function k(t){if(t.length<2)throw new Error("sampleVariance requires at least two data points");return i(t,2)/(t.length-1)}function E(t){var e=k(t);return Math.sqrt(e)}function T(t,e,n,i){return(t*e+n*i)/(e+i)}function O(t){if(0===t.length)throw new Error("rootMeanSquare requires at least one data point");for(var e=0,n=0;n<t.length;n++)e+=Math.pow(t[n],2);return Math.sqrt(e/t.length)}function P(){this.totalCount=0,this.data={}}function j(){this.weights=[],this.bias=0}P.prototype.train=function(t,e){for(var n in this.data[e]||(this.data[e]={}),t){var i=t[n];void 0===this.data[e][n]&&(this.data[e][n]={}),void 0===this.data[e][n][i]&&(this.data[e][n][i]=0),this.data[e][n][i]++}this.totalCount++},P.prototype.score=function(t){var e,n={};for(var i in t){var r=t[i];for(e in this.data)n[e]={},this.data[e][i]?n[e][i+"_"+r]=(this.data[e][i][r]||0)/this.totalCount:n[e][i+"_"+r]=0}var o={};for(e in n)for(var a in o[e]=0,n[e])o[e]+=n[e][a];return o},j.prototype.predict=function(t){if(t.length!==this.weights.length)return null;for(var e=0,n=0;n<this.weights.length;n++)e+=this.weights[n]*t[n];return 0<(e+=this.bias)?1:0},j.prototype.train=function(t,e){if(0!==e&&1!==e)return null;t.length!==this.weights.length&&(this.weights=t,this.bias=1);var n=this.predict(t);if(n!==e){for(var i=e-n,r=0;r<this.weights.length;r++)this.weights[r]+=i*t[r];this.bias+=i}return this};var L=1e-4;function D(t){if(t<0)throw new Error("factorial requires a non-negative value");if(Math.floor(t)!==t)throw new Error("factorial requires an integer input");for(var e=1,n=2;n<=t;n++)e*=n;return e}var R=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],B=Math.log(Math.sqrt(2*Math.PI)),N={1:{.995:0,.99:0,.975:0,.95:0,.9:.02,.5:.45,.1:2.71,.05:3.84,.025:5.02,.01:6.63,.005:7.88},2:{.995:.01,.99:.02,.975:.05,.95:.1,.9:.21,.5:1.39,.1:4.61,.05:5.99,.025:7.38,.01:9.21,.005:10.6},3:{.995:.07,.99:.11,.975:.22,.95:.35,.9:.58,.5:2.37,.1:6.25,.05:7.81,.025:9.35,.01:11.34,.005:12.84},4:{.995:.21,.99:.3,.975:.48,.95:.71,.9:1.06,.5:3.36,.1:7.78,.05:9.49,.025:11.14,.01:13.28,.005:14.86},5:{.995:.41,.99:.55,.975:.83,.95:1.15,.9:1.61,.5:4.35,.1:9.24,.05:11.07,.025:12.83,.01:15.09,.005:16.75},6:{.995:.68,.99:.87,.975:1.24,.95:1.64,.9:2.2,.5:5.35,.1:10.65,.05:12.59,.025:14.45,.01:16.81,.005:18.55},7:{.995:.99,.99:1.25,.975:1.69,.95:2.17,.9:2.83,.5:6.35,.1:12.02,.05:14.07,.025:16.01,.01:18.48,.005:20.28},8:{.995:1.34,.99:1.65,.975:2.18,.95:2.73,.9:3.49,.5:7.34,.1:13.36,.05:15.51,.025:17.53,.01:20.09,.005:21.96},9:{.995:1.73,.99:2.09,.975:2.7,.95:3.33,.9:4.17,.5:8.34,.1:14.68,.05:16.92,.025:19.02,.01:21.67,.005:23.59},10:{.995:2.16,.99:2.56,.975:3.25,.95:3.94,.9:4.87,.5:9.34,.1:15.99,.05:18.31,.025:20.48,.01:23.21,.005:25.19},11:{.995:2.6,.99:3.05,.975:3.82,.95:4.57,.9:5.58,.5:10.34,.1:17.28,.05:19.68,.025:21.92,.01:24.72,.005:26.76},12:{.995:3.07,.99:3.57,.975:4.4,.95:5.23,.9:6.3,.5:11.34,.1:18.55,.05:21.03,.025:23.34,.01:26.22,.005:28.3},13:{.995:3.57,.99:4.11,.975:5.01,.95:5.89,.9:7.04,.5:12.34,.1:19.81,.05:22.36,.025:24.74,.01:27.69,.005:29.82},14:{.995:4.07,.99:4.66,.975:5.63,.95:6.57,.9:7.79,.5:13.34,.1:21.06,.05:23.68,.025:26.12,.01:29.14,.005:31.32},15:{.995:4.6,.99:5.23,.975:6.27,.95:7.26,.9:8.55,.5:14.34,.1:22.31,.05:25,.025:27.49,.01:30.58,.005:32.8},16:{.995:5.14,.99:5.81,.975:6.91,.95:7.96,.9:9.31,.5:15.34,.1:23.54,.05:26.3,.025:28.85,.01:32,.005:34.27},17:{.995:5.7,.99:6.41,.975:7.56,.95:8.67,.9:10.09,.5:16.34,.1:24.77,.05:27.59,.025:30.19,.01:33.41,.005:35.72},18:{.995:6.26,.99:7.01,.975:8.23,.95:9.39,.9:10.87,.5:17.34,.1:25.99,.05:28.87,.025:31.53,.01:34.81,.005:37.16},19:{.995:6.84,.99:7.63,.975:8.91,.95:10.12,.9:11.65,.5:18.34,.1:27.2,.05:30.14,.025:32.85,.01:36.19,.005:38.58},20:{.995:7.43,.99:8.26,.975:9.59,.95:10.85,.9:12.44,.5:19.34,.1:28.41,.05:31.41,.025:34.17,.01:37.57,.005:40},21:{.995:8.03,.99:8.9,.975:10.28,.95:11.59,.9:13.24,.5:20.34,.1:29.62,.05:32.67,.025:35.48,.01:38.93,.005:41.4},22:{.995:8.64,.99:9.54,.975:10.98,.95:12.34,.9:14.04,.5:21.34,.1:30.81,.05:33.92,.025:36.78,.01:40.29,.005:42.8},23:{.995:9.26,.99:10.2,.975:11.69,.95:13.09,.9:14.85,.5:22.34,.1:32.01,.05:35.17,.025:38.08,.01:41.64,.005:44.18},24:{.995:9.89,.99:10.86,.975:12.4,.95:13.85,.9:15.66,.5:23.34,.1:33.2,.05:36.42,.025:39.36,.01:42.98,.005:45.56},25:{.995:10.52,.99:11.52,.975:13.12,.95:14.61,.9:16.47,.5:24.34,.1:34.28,.05:37.65,.025:40.65,.01:44.31,.005:46.93},26:{.995:11.16,.99:12.2,.975:13.84,.95:15.38,.9:17.29,.5:25.34,.1:35.56,.05:38.89,.025:41.92,.01:45.64,.005:48.29},27:{.995:11.81,.99:12.88,.975:14.57,.95:16.15,.9:18.11,.5:26.34,.1:36.74,.05:40.11,.025:43.19,.01:46.96,.005:49.65},28:{.995:12.46,.99:13.57,.975:15.31,.95:16.93,.9:18.94,.5:27.34,.1:37.92,.05:41.34,.025:44.46,.01:48.28,.005:50.99},29:{.995:13.12,.99:14.26,.975:16.05,.95:17.71,.9:19.77,.5:28.34,.1:39.09,.05:42.56,.025:45.72,.01:49.59,.005:52.34},30:{.995:13.79,.99:14.95,.975:16.79,.95:18.49,.9:20.6,.5:29.34,.1:40.26,.05:43.77,.025:46.98,.01:50.89,.005:53.67},40:{.995:20.71,.99:22.16,.975:24.43,.95:26.51,.9:29.05,.5:39.34,.1:51.81,.05:55.76,.025:59.34,.01:63.69,.005:66.77},50:{.995:27.99,.99:29.71,.975:32.36,.95:34.76,.9:37.69,.5:49.33,.1:63.17,.05:67.5,.025:71.42,.01:76.15,.005:79.49},60:{.995:35.53,.99:37.48,.975:40.48,.95:43.19,.9:46.46,.5:59.33,.1:74.4,.05:79.08,.025:83.3,.01:88.38,.005:91.95},70:{.995:43.28,.99:45.44,.975:48.76,.95:51.74,.9:55.33,.5:69.33,.1:85.53,.05:90.53,.025:95.02,.01:100.42,.005:104.22},80:{.995:51.17,.99:53.54,.975:57.15,.95:60.39,.9:64.28,.5:79.33,.1:96.58,.05:101.88,.025:106.63,.01:112.33,.005:116.32},90:{.995:59.2,.99:61.75,.975:65.65,.95:69.13,.9:73.29,.5:89.33,.1:107.57,.05:113.14,.025:118.14,.01:124.12,.005:128.3},100:{.995:67.33,.99:70.06,.975:74.22,.95:77.93,.9:82.36,.5:99.33,.1:118.5,.05:124.34,.025:129.56,.01:135.81,.005:140.17}},F=Math.sqrt(2*Math.PI),z={gaussian:function(t){return Math.exp(-.5*t*t)/F}},V={nrd:function(t){var e=E(t),n=y(t);return"number"==typeof n&&(e=Math.min(e,n/1.34)),1.06*e*Math.pow(t.length,-.2)}};function G(t,e,n){var i,r;if(void 0===e)i=z.gaussian;else if("string"==typeof e){if(!z[e])throw new Error('Unknown kernel "'+e+'"');i=z[e]}else i=e;if(void 0===n)r=V.nrd(t);else if("string"==typeof n){if(!V[n])throw new Error('Unknown bandwidth method "'+n+'"');r=V[n](t)}else r=n;return function(e){var n=0,o=0;for(n=0;n<t.length;n++)o+=i((e-t[n])/r);return o/r/t.length}}var H=Math.sqrt(2*Math.PI);function W(t){for(var e=t,n=t,i=1;i<15;i++)e+=n*=t*t/(2*i+1);return Math.round(1e4*(.5+e/H*Math.exp(-t*t/2)))/1e4}for(var U=[],Z=0;Z<=3.09;Z+=.01)U.push(W(Z));function Y(t){var e=1/(1+.5*Math.abs(t)),n=e*Math.exp(-Math.pow(t,2)-1.26551223+1.00002368*e+.37409196*Math.pow(e,2)+.09678418*Math.pow(e,3)-.18628806*Math.pow(e,4)+.27886807*Math.pow(e,5)-1.13520398*Math.pow(e,6)+1.48851587*Math.pow(e,7)-.82215223*Math.pow(e,8)+.17087277*Math.pow(e,9));return 0<=t?1-n:n-1}function X(t){var e=8*(Math.PI-3)/(3*Math.PI*(4-Math.PI)),n=Math.sqrt(Math.sqrt(Math.pow(2/(Math.PI*e)+Math.log(1-t*t)/2,2)-Math.log(1-t*t)/e)-(2/(Math.PI*e)+Math.log(1-t*t)/2));return 0<=t?n:-n}function q(t){if("number"==typeof t)return t<0?-1:0===t?0:1;throw new TypeError("not a number")}t.linearRegression=function(t){var e,n,i=t.length;if(1===i)n=t[e=0][1];else{for(var r,o,a,s=0,l=0,c=0,u=0,h=0;h<i;h++)s+=o=(r=t[h])[0],l+=a=r[1],c+=o*o,u+=o*a;n=l/i-(e=(i*u-s*l)/(i*c-s*s))*s/i}return{m:e,b:n}},t.linearRegressionLine=function(t){return function(e){return t.b+t.m*e}},t.standardDeviation=o,t.rSquared=function(t,e){if(t.length<2)return 1;for(var n,i=0,r=0;r<t.length;r++)i+=t[r][1];n=i/t.length;for(var o=0,a=0;a<t.length;a++)o+=Math.pow(n-t[a][1],2);for(var s=0,l=0;l<t.length;l++)s+=Math.pow(t[l][1]-e(t[l][0]),2);return 1-s/o},t.mode=function(t){return a(s(t))},t.modeFast=function(t){for(var e,n=new Map,i=0,r=0;r<t.length;r++){var o=n.get(t[r]);void 0===o?o=1:o++,i<o&&(e=t[r],i=o),n.set(t[r],o)}if(0===i)throw new Error("mode requires at last one data point");return e},t.modeSorted=a,t.min=l,t.max=c,t.extent=function(t){if(0===t.length)throw new Error("extent requires at least one data point");for(var e=t[0],n=t[0],i=1;i<t.length;i++)t[i]>n&&(n=t[i]),t[i]<e&&(e=t[i]);return[e,n]},t.minSorted=function(t){return t[0]},t.maxSorted=function(t){return t[t.length-1]},t.extentSorted=function(t){return[t[0],t[t.length-1]]},t.sum=e,t.sumSimple=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n];return e},t.product=function(t){for(var e=1,n=0;n<t.length;n++)e*=t[n];return e},t.quantile=p,t.quantileSorted=u,t.quantileRank=function(t,e){return v(s(t),e)},t.quantileRankSorted=v,t.interquartileRange=y,t.iqr=y,t.medianAbsoluteDeviation=x,t.mad=x,t.chunk=function(t,e){var n=[];if(e<1)throw new Error("chunk size must be a positive number");if(Math.floor(e)!==e)throw new Error("chunk size must be an integer");for(var i=0;i<t.length;i+=e)n.push(t.slice(i,i+e));return n},t.sampleWithReplacement=function(t,e,n){if(0===t.length)return[];n=n||Math.random;for(var i=t.length,r=[],o=0;o<e;o++){var a=Math.floor(n()*i);r.push(t[a])}return r},t.shuffle=_,t.shuffleInPlace=w,t.sample=function(t,e,n){return _(t,n).slice(0,e)},t.ckmeans=function(t,e){if(e>t.length)throw new Error("cannot generate more classes than there are data values");var n=s(t);if(1===C(n))return[n];var i=A(e,n.length),r=A(e,n.length);!function(t,e,n){for(var i,r=e[0].length,o=t[Math.floor(r/2)],a=[],s=[],l=0;l<r;++l)i=t[l]-o,0===l?(a.push(i),s.push(i*i)):(a.push(a[l-1]+i),s.push(s[l-1]+i*i)),e[0][l]=I(0,l,a,s),n[0][l]=0;for(var c=1;c<e.length;++c)S(c<e.length-1?c:r-1,r-1,c,e,n,a,s)}(n,i,r);for(var o=[],a=r[0].length-1,l=r.length-1;0<=l;l--){var c=r[l][a];o[l]=n.slice(c,a+1),0<l&&(a=c-1)}return o},t.uniqueCountSorted=C,t.sumNthPowerDeviations=i,t.equalIntervalBreaks=function(t,e){if(t.length<2)return t;for(var n=l(t),i=c(t),r=[n],o=(i-n)/e,a=1;a<e;a++)r.push(r[0]+o*a);return r.push(i),r},t.sampleCovariance=M,t.sampleCorrelation=function(t,e){return M(t,e)/E(t)/E(e)},t.sampleVariance=k,t.sampleStandardDeviation=E,t.sampleSkewness=function(t){if(t.length<3)throw new Error("sampleSkewness requires at least three data points");for(var e,i=n(t),r=0,o=0,a=0;a<t.length;a++)r+=(e=t[a]-i)*e,o+=e*e*e;var s=t.length-1,l=Math.sqrt(r/s),c=t.length;return c*o/((c-1)*(c-2)*Math.pow(l,3))},t.sampleKurtosis=function(t){var e=t.length;if(e<4)throw new Error("sampleKurtosis requires at least four data points");for(var i,r=n(t),o=0,a=0,s=0;s<e;s++)o+=(i=t[s]-r)*i,a+=i*i*i*i;return(e-1)/((e-2)*(e-3))*(e*(e+1)*a/(o*o)-3*(e-1))},t.permutationsHeap=function(t){for(var e=new Array(t.length),n=[t.slice()],i=0;i<t.length;i++)e[i]=0;for(i=0;i<t.length;)if(e[i]<i){var r=0;i%2!=0&&(r=e[i]);var o=t[r];t[r]=t[i],t[i]=o,n.push(t.slice()),e[i]++,i=0}else e[i]=0,i++;return n},t.combinations=function t(e,n){var i,r,o,a,s=[];for(i=0;i<e.length;i++)if(1===n)s.push([e[i]]);else for(o=t(e.slice(i+1,e.length),n-1),r=0;r<o.length;r++)(a=o[r]).unshift(e[i]),s.push(a);return s},t.combinationsReplacement=function t(e,n){for(var i=[],r=0;r<e.length;r++)if(1===n)i.push([e[r]]);else for(var o=t(e.slice(r,e.length),n-1),a=0;a<o.length;a++)i.push([e[r]].concat(o[a]));return i},t.addToMean=function(t,e,n){return t+(n-t)/(e+1)},t.combineMeans=T,t.combineVariances=function(t,e,n,i,r,o){var a=T(e,n,r,o);return(n*(t+Math.pow(e-a,2))+o*(i+Math.pow(r-a,2)))/(n+o)},t.geometricMean=function(t){if(0===t.length)throw new Error("geometricMean requires at least one data point");for(var e=1,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("geometricMean requires only positive numbers as input");e*=t[n]}return Math.pow(e,1/t.length)},t.harmonicMean=function(t){if(0===t.length)throw new Error("harmonicMean requires at least one data point");for(var e=0,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("harmonicMean requires only positive numbers as input");e+=1/t[n]}return t.length/e},t.average=n,t.mean=n,t.median=b,t.medianSorted=function(t){return u(t,.5)},t.subtractFromMean=function(t,e,n){return(t*e-n)/(e-1)},t.rootMeanSquare=O,t.rms=O,t.variance=r,t.tTest=function(t,e){return(n(t)-e)/(o(t)/Math.sqrt(t.length))},t.tTestTwoSample=function(t,e,i){var r=t.length,o=e.length;if(!r||!o)return null;i||(i=0);var a=n(t),s=n(e),l=k(t),c=k(e);if("number"==typeof a&&"number"==typeof s&&"number"==typeof l&&"number"==typeof c){var u=((r-1)*l+(o-1)*c)/(r+o-2);return(a-s-i)/Math.sqrt(u*(1/r+1/o))}},t.BayesianClassifier=P,t.bayesian=P,t.PerceptronModel=j,t.perceptron=j,t.epsilon=L,t.factorial=D,t.gamma=function t(e){if("number"==typeof(n=e)&&isFinite(n)&&Math.floor(n)===n)return e<=0?NaN:D(e-1);var n;if(--e<0)return Math.PI/(Math.sin(Math.PI*-e)*t(-e));var i=e+.25;return Math.pow(e/Math.E,e)*Math.sqrt(2*Math.PI*(e+1/6))*(1+1/144/Math.pow(i,2)-1/12960/Math.pow(i,3)-257/207360/Math.pow(i,4)-52/2612736/Math.pow(i,5)+5741173/9405849600/Math.pow(i,6)+37529/18811699200/Math.pow(i,7))},t.gammaln=function(t){if(t<=0)return 1/0;t--;for(var e=R[0],n=1;n<15;n++)e+=R[n]/(t+n);var i=5.2421875+t;return B+Math.log(e)-i+(t+.5)*Math.log(i)},t.bernoulliDistribution=function(t){if(t<0||1<t)throw new Error("bernoulliDistribution requires probability to be between 0 and 1 inclusive");return[1-t,t]},t.binomialDistribution=function(t,e){if(!(e<0||1<e||t<=0||t%1!=0)){for(var n=0,i=0,r=[],o=1;r[n]=o*Math.pow(e,n)*Math.pow(1-e,t-n),i+=r[n],o=o*(t-++n+1)/n,i<1-L;);return r}},t.poissonDistribution=function(t){if(!(t<=0)){for(var e=0,n=0,i=[],r=1;i[e]=Math.exp(-t)*Math.pow(t,e)/r,n+=i[e],r*=++e,n<1-L;);return i}},t.chiSquaredDistributionTable=N,t.chiSquaredGoodnessOfFit=function(t,e,i){for(var r,o,a=0,s=e(n(t)),l=[],c=[],u=0;u<t.length;u++)void 0===l[t[u]]&&(l[t[u]]=0),l[t[u]]++;for(u=0;u<l.length;u++)void 0===l[u]&&(l[u]=0);for(o in s)o in l&&(c[+o]=s[o]*t.length);for(o=c.length-1;0<=o;o--)c[o]<3&&(c[o-1]+=c[o],c.pop(),l[o-1]+=l[o],l.pop());for(o=0;o<l.length;o++)a+=Math.pow(l[o]-c[o],2)/c[o];return r=l.length-1-1,N[r][i]<a},t.kernelDensityEstimation=G,t.kde=G,t.zScore=function(t,e,n){return(t-e)/n},t.cumulativeStdNormalProbability=function(t){var e=Math.abs(t),n=Math.min(Math.round(100*e),U.length-1);return 0<=t?U[n]:+(1-U[n]).toFixed(4)},t.standardNormalTable=U,t.errorFunction=Y,t.erf=Y,t.inverseErrorFunction=X,t.probit=function(t){return 0===t?t=L:1<=t&&(t=1-L),Math.sqrt(2)*X(2*t-1)},t.permutationTest=function(t,e,i,r){if(void 0===r&&(r=1e4),void 0===i&&(i="two_side"),"two_side"!==i&&"greater"!==i&&"less"!==i)throw new Error("`alternative` must be either 'two_side', 'greater', or 'less'");for(var o=n(t)-n(e),a=new Array(r),s=t.concat(e),l=Math.floor(s.length/2),c=0;c<r;c++){w(s);var u=s.slice(0,l),h=s.slice(l,s.length),d=n(u)-n(h);a[c]=d}var p=0;if("two_side"===i)for(c=0;c<=r;c++)Math.abs(a[c])>=Math.abs(o)&&(p+=1);else if("greater"===i)for(c=0;c<=r;c++)a[c]>=o&&(p+=1);else for(c=0;c<=r;c++)a[c]<=o&&(p+=1);return p/r},t.bisect=function(t,e,n,i,r){if("function"!=typeof t)throw new TypeError("func must be a function");for(var o=0;o<i;o++){var a=(e+n)/2;if(0===t(a)||Math.abs((n-e)/2)<r)return a;q(t(a))===q(t(e))?e=a:n=a}throw new Error("maximum number of iterations exceeded")},t.quickselect=h,t.sign=q,t.numericSort=s,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_topojson-client@3.1.0@topojson-client/dist/topojson-client.js":
/*!*************************************************************************************!*\
  !*** ./node_modules/_topojson-client@3.1.0@topojson-client/dist/topojson-client.js ***!
  \*************************************************************************************/
/*! no static exports found */function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t){return t}function n(t){if(null==t)return e;var n,i,r=t.scale[0],o=t.scale[1],a=t.translate[0],s=t.translate[1];return function(t,e){e||(n=i=0);var l=2,c=t.length,u=new Array(c);u[0]=(n+=t[0])*r+a,u[1]=(i+=t[1])*o+s;while(l<c)u[l]=t[l],++l;return u}}function i(t){var e,i=n(t.transform),r=1/0,o=r,a=-r,s=-r;function l(t){t=i(t),t[0]<r&&(r=t[0]),t[0]>a&&(a=t[0]),t[1]<o&&(o=t[1]),t[1]>s&&(s=t[1])}function c(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(c);break;case"Point":l(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(l);break}}for(e in t.arcs.forEach((function(t){var e,n=-1,l=t.length;while(++n<l)e=i(t[n],n),e[0]<r&&(r=e[0]),e[0]>a&&(a=e[0]),e[1]<o&&(o=e[1]),e[1]>s&&(s=e[1])})),t.objects)c(t.objects[e]);return[r,o,a,s]}function r(t,e){var n,i=t.length,r=i-e;while(r<--i)n=t[r],t[r++]=t[i],t[i]=n}function o(t,e){return"string"===typeof e&&(e=t.objects[e]),"GeometryCollection"===e.type?{type:"FeatureCollection",features:e.geometries.map((function(e){return a(t,e)}))}:a(t,e)}function a(t,e){var n=e.id,i=e.bbox,r=null==e.properties?{}:e.properties,o=s(t,e);return null==n&&null==i?{type:"Feature",properties:r,geometry:o}:null==i?{type:"Feature",id:n,properties:r,geometry:o}:{type:"Feature",id:n,bbox:i,properties:r,geometry:o}}function s(t,e){var i=n(t.transform),o=t.arcs;function a(t,e){e.length&&e.pop();for(var n=o[t<0?~t:t],a=0,s=n.length;a<s;++a)e.push(i(n[a],a));t<0&&r(e,s)}function s(t){return i(t)}function l(t){for(var e=[],n=0,i=t.length;n<i;++n)a(t[n],e);return e.length<2&&e.push(e[0]),e}function c(t){var e=l(t);while(e.length<4)e.push(e[0]);return e}function u(t){return t.map(c)}function h(t){var e,n=t.type;switch(n){case"GeometryCollection":return{type:n,geometries:t.geometries.map(h)};case"Point":e=s(t.coordinates);break;case"MultiPoint":e=t.coordinates.map(s);break;case"LineString":e=l(t.arcs);break;case"MultiLineString":e=t.arcs.map(l);break;case"Polygon":e=u(t.arcs);break;case"MultiPolygon":e=t.arcs.map(u);break;default:return null}return{type:n,coordinates:e}}return h(e)}function l(t,e){var n={},i={},r={},o=[],a=-1;function s(e){var n,i=t.arcs[e<0?~e:e],r=i[0];return t.transform?(n=[0,0],i.forEach((function(t){n[0]+=t[0],n[1]+=t[1]}))):n=i[i.length-1],e<0?[n,r]:[r,n]}function l(t,e){for(var i in t){var r=t[i];delete e[r.start],delete r.start,delete r.end,r.forEach((function(t){n[t<0?~t:t]=1})),o.push(r)}}return e.forEach((function(n,i){var r,o=t.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(r=e[++a],e[a]=n,e[i]=r)})),e.forEach((function(t){var e,n,o=s(t),a=o[0],l=o[1];if(e=r[a])if(delete r[e.end],e.push(t),e.end=l,n=i[l]){delete i[n.start];var c=n===e?e:e.concat(n);i[c.start=e.start]=r[c.end=n.end]=c}else i[e.start]=r[e.end]=e;else if(e=i[l])if(delete i[e.start],e.unshift(t),e.start=a,n=r[a]){delete r[n.end];var u=n===e?e:n.concat(e);i[u.start=n.start]=r[u.end=e.end]=u}else i[e.start]=r[e.end]=e;else e=[t],i[e.start=a]=r[e.end=l]=e})),l(r,i),l(i,r),e.forEach((function(t){n[t<0?~t:t]||o.push([t])})),o}function c(t){return s(t,u.apply(this,arguments))}function u(t,e,n){var i,r,o;if(arguments.length>1)i=h(t,e,n);else for(r=0,i=new Array(o=t.arcs.length);r<o;++r)i[r]=r;return{type:"MultiLineString",arcs:l(t,i)}}function h(t,e,n){var i,r=[],o=[];function a(t){var e=t<0?~t:t;(o[e]||(o[e]=[])).push({i:t,g:i})}function s(t){t.forEach(a)}function l(t){t.forEach(s)}function c(t){t.forEach(l)}function u(t){switch(i=t,t.type){case"GeometryCollection":t.geometries.forEach(u);break;case"LineString":s(t.arcs);break;case"MultiLineString":case"Polygon":l(t.arcs);break;case"MultiPolygon":c(t.arcs);break}}return u(e),o.forEach(null==n?function(t){r.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&r.push(t[0].i)}),r}function d(t){var e,n=-1,i=t.length,r=t[i-1],o=0;while(++n<i)e=r,r=t[n],o+=e[0]*r[1]-e[1]*r[0];return Math.abs(o)}function p(t){return s(t,f.apply(this,arguments))}function f(t,e){var n={},i=[],r=[];function o(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(o);break;case"Polygon":a(t.arcs);break;case"MultiPolygon":t.arcs.forEach(a);break}}function a(t){t.forEach((function(e){e.forEach((function(e){(n[e=e<0?~e:e]||(n[e]=[])).push(t)}))})),i.push(t)}function c(e){return d(s(t,{type:"Polygon",arcs:[e]}).coordinates[0])}return e.forEach(o),i.forEach((function(t){if(!t._){var e=[],i=[t];t._=1,r.push(e);while(t=i.pop())e.push(t),t.forEach((function(t){t.forEach((function(t){n[t<0?~t:t].forEach((function(t){t._||(t._=1,i.push(t))}))}))}))}})),i.forEach((function(t){delete t._})),{type:"MultiPolygon",arcs:r.map((function(e){var i,r=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){n[t<0?~t:t].length<2&&r.push(t)}))}))})),r=l(t,r),(i=r.length)>1)for(var o,a,s=1,u=c(r[0]);s<i;++s)(o=c(r[s]))>u&&(a=r[0],r[0]=r[s],r[s]=a,u=o);return r})).filter((function(t){return t.length>0}))}}function g(t,e){var n=0,i=t.length;while(n<i){var r=n+i>>>1;t[r]<e?n=r+1:i=r}return n}function m(t){var e={},n=t.map((function(){return[]}));function i(t,n){t.forEach((function(t){t<0&&(t=~t);var i=e[t];i?i.push(n):e[t]=[n]}))}function r(t,e){t.forEach((function(t){i(t,e)}))}function o(t,e){"GeometryCollection"===t.type?t.geometries.forEach((function(t){o(t,e)})):t.type in a&&a[t.type](t.arcs,e)}var a={LineString:i,MultiLineString:r,Polygon:r,MultiPolygon:function(t,e){t.forEach((function(t){r(t,e)}))}};for(var s in t.forEach(o),e)for(var l=e[s],c=l.length,u=0;u<c;++u)for(var h=u+1;h<c;++h){var d,p=l[u],f=l[h];(d=n[p])[s=g(d,f)]!==f&&d.splice(s,0,f),(d=n[f])[s=g(d,p)]!==p&&d.splice(s,0,p)}return n}function v(t){if(null==t)return e;var n,i,r=t.scale[0],o=t.scale[1],a=t.translate[0],s=t.translate[1];return function(t,e){e||(n=i=0);var l=2,c=t.length,u=new Array(c),h=Math.round((t[0]-a)/r),d=Math.round((t[1]-s)/o);u[0]=h-n,n=h,u[1]=d-i,i=d;while(l<c)u[l]=t[l],++l;return u}}function y(t,e){if(t.transform)throw new Error("already quantized");if(e&&e.scale)l=t.bbox;else{if(!((n=Math.floor(e))>=2))throw new Error("n must be ≥2");l=t.bbox||i(t);var n,r=l[0],o=l[1],a=l[2],s=l[3];e={scale:[a-r?(a-r)/(n-1):1,s-o?(s-o)/(n-1):1],translate:[r,o]}}var l,c,u=v(e),h=t.objects,d={};function p(t){return u(t)}function f(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(f)};break;case"Point":e={type:"Point",coordinates:p(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(p)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function g(t){var e,n=0,i=1,r=t.length,o=new Array(r);o[0]=u(t[0],0);while(++n<r)((e=u(t[n],n))[0]||e[1])&&(o[i++]=e);return 1===i&&(o[i++]=[0,0]),o.length=i,o}for(c in h)d[c]=f(h[c]);return{type:"Topology",bbox:l,transform:e,objects:d,arcs:t.arcs.map(g)}}t.bbox=i,t.feature=o,t.merge=p,t.mergeArcs=f,t.mesh=c,t.meshArcs=u,t.neighbors=m,t.quantize=y,t.transform=n,t.untransform=v,Object.defineProperty(t,"__esModule",{value:!0})}))},"./node_modules/_tslib@1.11.1@tslib/tslib.js":
/*!***************************************************!*\
  !*** ./node_modules/_tslib@1.11.1@tslib/tslib.js ***!
  \***************************************************/
/*! no static exports found */function(t,e,n){(function(n){var i,r,o,a,s,l,c,u,h,d,p,f,g,m,v,y,b,x,w,_,C,A,I,S;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */(function(o){var a="object"===typeof n?n:"object"===typeof self?self:"object"===typeof this?this:{};function s(t,e){return t!==a&&("function"===typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(n,i){return t[n]=e?e(n,i):i}}i=[e],r=function(t){o(s(a,s(t)))}.apply(e,i),void 0===r||(t.exports=r)})((function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};o=function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)},a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},s=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},l=function(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},c=function(t,e){return function(n,i){e(n,i,t)}},u=function(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)},h=function(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):r(t.value).then(a,s)}l((i=i.apply(t,e||[])).next())}))},d=function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},p=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},f=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(i=o.next()).done)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return a},m=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return t},v=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i},y=function(t){return this instanceof y?(this.v=t,this):new y(t)},b=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{l(r[t](e))}catch(n){h(o[0][3],n)}}function l(t){t.value instanceof y?Promise.resolve(t.value.v).then(c,u):h(o[0][2],t)}function c(t){s("next",t)}function u(t){s("throw",t)}function h(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}},x=function(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:y(t[i](e)),done:"return"===i}:r?r(e):e}:r}},w=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"===typeof f?f(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){e=t[n](e),r(i,o,e.done,e.value)}))}}function r(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}},_=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},C=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e},A=function(t){return t&&t.__esModule?t:{default:t}},I=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},S=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},t("__extends",o),t("__assign",a),t("__rest",s),t("__decorate",l),t("__param",c),t("__metadata",u),t("__awaiter",h),t("__generator",d),t("__exportStar",p),t("__values",f),t("__read",g),t("__spread",m),t("__spreadArrays",v),t("__await",y),t("__asyncGenerator",b),t("__asyncDelegator",x),t("__asyncValues",w),t("__makeTemplateObject",_),t("__importStar",C),t("__importDefault",A),t("__classPrivateFieldGet",I),t("__classPrivateFieldSet",S)}))}).call(this,n(/*! ./../_webpack@4.42.1@webpack/buildin/global.js */"./node_modules/_webpack@4.42.1@webpack/buildin/global.js"))},"./node_modules/_webpack@4.42.1@webpack/buildin/global.js":
/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************/
/*! no static exports found */function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},"./node_modules/_webpack@4.42.1@webpack/buildin/module.js":
/*!***********************************!*\
  !*** (webpack)/buildin/module.js ***!
  \***********************************/
/*! no static exports found */function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js":
/*!***************************************************************************************!*\
  !*** ./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js ***!
  \***************************************************************************************/
/*! no static exports found */function(t,e,n){var i;
/*!
 * EventEmitter v5.2.9 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - https://oli.me.uk/
 * @preserve
 */(function(e){"use strict";function r(){}var o=r.prototype,a=e.EventEmitter;function s(t,e){var n=t.length;while(n--)if(t[n].listener===e)return n;return-1}function l(t){return function(){return this[t].apply(this,arguments)}}function c(t){return"function"===typeof t||t instanceof RegExp||!(!t||"object"!==typeof t)&&c(t.listener)}o.getListeners=function(t){var e,n,i=this._getEvents();if(t instanceof RegExp)for(n in e={},i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n]);else e=i[t]||(i[t]=[]);return e},o.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},o.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&(e={},e[t]=n),e||n},o.addListener=function(t,e){if(!c(e))throw new TypeError("listener must be a function");var n,i=this.getListenersAsObject(t),r="object"===typeof e;for(n in i)i.hasOwnProperty(n)&&-1===s(i[n],e)&&i[n].push(r?e:{listener:e,once:!1});return this},o.on=l("addListener"),o.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},o.once=l("addOnceListener"),o.defineEvent=function(t){return this.getListeners(t),this},o.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},o.removeListener=function(t,e){var n,i,r=this.getListenersAsObject(t);for(i in r)r.hasOwnProperty(i)&&(n=s(r[i],e),-1!==n&&r[i].splice(n,1));return this},o.off=l("removeListener"),o.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},o.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},o.manipulateListeners=function(t,e,n){var i,r,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!==typeof e||e instanceof RegExp){i=n.length;while(i--)o.call(this,e,n[i])}else for(i in e)e.hasOwnProperty(i)&&(r=e[i])&&("function"===typeof r?o.call(this,i,r):a.call(this,i,r));return this},o.removeEvent=function(t){var e,n=typeof t,i=this._getEvents();if("string"===n)delete i[t];else if(t instanceof RegExp)for(e in i)i.hasOwnProperty(e)&&t.test(e)&&delete i[e];else delete this._events;return this},o.removeAllListeners=l("removeEvent"),o.emitEvent=function(t,e){var n,i,r,o,a,s=this.getListenersAsObject(t);for(o in s)if(s.hasOwnProperty(o))for(n=s[o].slice(0),r=0;r<n.length;r++)i=n[r],!0===i.once&&this.removeListener(t,i.listener),a=i.listener.apply(this,e||[]),a===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},o.trigger=l("emitEvent"),o.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},o.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},o._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},o._getEvents=function(){return this._events||(this._events={})},r.noConflict=function(){return e.EventEmitter=a,r},i=function(){return r}.call(e,n,e,t),void 0===i||(t.exports=i)})("undefined"!==typeof window?window:this||{})},"./src/api/geo.ts":
/*!************************!*\
  !*** ./src/api/geo.ts ***!
  \************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),a=n(/*! d3-geo-projection */"./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js"),s=n(/*! ../view */"./src/view.ts"),l=i.__importDefault(n(/*! ../util/get-geo-projection */"./src/util/get-geo-projection.ts")),c={geoArea:function(t){return o.geoArea(t)},geoAreaByName:function(t){return o.geoArea(this.geoFeatureByName(t))},geoCentroid:function(t){return o.geoCentroid(t)},geoCentroidByName:function(t){return o.geoCentroid(this.geoFeatureByName(t))},geoDistance:function(t,e){return o.geoDistance(t,e)},geoLength:function(t){return o.geoLength(t)},geoLengthByName:function(t){return o.geoLength(this.geoFeatureByName(t))},geoContains:function(t,e){return o.geoContains(t,e)},geoFeatureByName:function(t){var e,n=this.rows;return n.some((function(n){return n.name===t&&(e=n,!0)})),e},geoFeatureByPosition:function(t){var e,n=this.rows;return n.some((function(n){return!!o.geoContains(n,t)&&(e=n,!0)})),e},geoNameByPosition:function(t){var e=this.geoFeatureByPosition(t);if(e)return e.name},getGeoProjection:l.default,geoProject:function(t,e,n){return e=l.default(e,n),a.geoProject(t,e)},geoProjectByName:function(t,e,n){return e=l.default(e,n),a.geoProject(this.geoFeatureByName(t),e)},geoProjectPosition:function(t,e,n){var i=l.default(e,n);return i(t)},geoProjectInvert:function(t,e,n){var i=l.default(e,n);return i.invert(t)}};r.assign(s.View.prototype,c)},"./src/api/hierarchy.ts":
/*!******************************!*\
  !*** ./src/api/hierarchy.ts ***!
  \******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../view */"./src/view.ts");i.assign(r.View.prototype,{getAllNodes:function(){var t=[],e=this.root;return e&&e.each?e.each((function(e){t.push(e)})):e&&e.eachNode&&e.eachNode((function(e){t.push(e)})),t},getAllLinks:function(){var t,e=[],n=[this.root];while(t=n.pop()){var i=t.children;i&&i.forEach((function(i){e.push({source:t,target:i}),n.push(i)}))}return e}}),i.assign(r.View.prototype,{getAllEdges:r.View.prototype.getAllLinks})},"./src/api/partition.ts":
/*!******************************!*\
  !*** ./src/api/partition.ts ***!
  \******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),a=n(/*! ../view */"./src/view.ts");r.assign(a.View.prototype,{partition:function(t,e){return void 0===e&&(e=[]),o.default(this.rows,t,e)},group:function(t,e){void 0===e&&(e=[]);var n=this.partition(t,e);return r.values(n)},groups:function(t,e){return void 0===e&&(e=[]),this.group(t,e)}})},"./src/api/statistics.ts":
/*!*******************************!*\
  !*** ./src/api/statistics.ts ***!
  \*******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importStar(n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n(/*! ../view */"./src/view.ts"),s=i.__importDefault(n(/*! ../util/p-by-fraction */"./src/util/p-by-fraction.ts")),l=i.__importDefault(n(/*! ../constants */"./src/constants.ts")),c=l.default.STATISTICS_METHODS;function u(t,e){var n=t.getColumn(e);return o.isArray(n)&&o.isArray(n[0])&&(n=o.flattenDeep(n)),n}c.forEach((function(t){a.View.prototype[t]=function(e){return r[t](u(this,e))}}));var h=r.quantile;o.assign(a.View.prototype,{average:a.View.prototype.mean,quantile:function(t,e){return h(u(this,t),e)},quantiles:function(t,e){var n=u(this,t);return e.map((function(t){return h(n,t)}))},quantilesByFraction:function(t,e){return this.quantiles(t,s.default(e))},range:function(t){return[this.min(t),this.max(t)]},extent:function(t){return this.range(t)}})},"./src/connector/default.ts":
/*!**********************************!*\
  !*** ./src/connector/default.ts ***!
  \**********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../data-set */"./src/data-set.ts");r.DataSet.registerConnector("default",(function(t,e){var n;if(n=i.isString(t)?e.getView(t):t,!n)throw new TypeError("Invalid dataView");return i.deepMix([],n.rows)}))},"./src/connector/dsv.ts":
/*!******************************!*\
  !*** ./src/connector/dsv.ts ***!
  \******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! d3-dsv */"./node_modules/_d3-dsv@1.2.0@d3-dsv/dist/d3-dsv.js"),o=n(/*! ../data-set */"./src/data-set.ts");o.DataSet.registerConnector("dsv",(function(t,e){void 0===e&&(e={});var n=e.delimiter||",";if(!i.isString(n))throw new TypeError("Invalid delimiter: must be a string!");return r.dsvFormat(n).parse(t)})),o.DataSet.registerConnector("csv",(function(t){return r.csvParse(t)})),o.DataSet.registerConnector("tsv",(function(t){return r.tsvParse(t)}))},"./src/connector/geo-graticule.ts":
/*!****************************************!*\
  !*** ./src/connector/geo-graticule.ts ***!
  \****************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),r=n(/*! ../data-set */"./src/data-set.ts");function o(t,e){e.dataType="geo-graticule";var n=i.geoGraticule().lines();return n.map((function(t,e){return t.index=""+e,t})),e.rows=n,n}e.default=o,r.DataSet.registerConnector("geo-graticule",o)},"./src/connector/geojson.ts":
/*!**********************************!*\
  !*** ./src/connector/geojson.ts ***!
  \**********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importDefault(n(/*! point-at-length */"./node_modules/_point-at-length@1.1.0@point-at-length/index.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),s=n(/*! ../data-set */"./src/data-set.ts"),l=a.geoPath();function c(t,e,n){n.dataType=s.DataSet.CONSTANTS.GEO;var i=o.deepMix([],t.features);return i.forEach((function(t){t.name=t.properties.name,t.longitude=[],t.latitude=[];var e=t.pathData=l(t),n=r.default(e);n._path.forEach((function(e){t.longitude.push(e[1]),t.latitude.push(e[2])}));var i=l.centroid(t);t.centroidX=i[0],t.centroidY=i[1]})),i}s.DataSet.registerConnector("geo",c),s.DataSet.registerConnector("geojson",c),s.DataSet.registerConnector("GeoJSON",c),e.default=c},"./src/connector/graph.ts":
/*!********************************!*\
  !*** ./src/connector/graph.ts ***!
  \********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../data-set */"./src/data-set.ts"),o={nodes:function(t){return t.nodes},edges:function(t){return t.edges}};function a(t,e,n){e=i.assign({},o,e),n.dataType=r.DataSet.CONSTANTS.GRAPH;var a=e.nodes,s=e.edges;if(a&&!i.isFunction(a))throw new TypeError("Invalid nodes: must be a function!");if(s&&!i.isFunction(s))throw new TypeError("Invalid edges: must be a function!");return n.rows=n.graph={nodes:a(t),edges:s(t)},i.assign(n,n.graph),n.rows}r.DataSet.registerConnector("graph",a),r.DataSet.registerConnector("diagram",a)},"./src/connector/hexjson.ts":
/*!**********************************!*\
  !*** ./src/connector/hexjson.ts ***!
  \**********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! d3-hexjson */"./node_modules/_d3-hexjson@1.1.0@d3-hexjson/build/d3-hexjson.js"),o=n(/*! ../data-set */"./src/data-set.ts"),a={width:1,height:1};function s(t){return t.cx=t.x,t.cy=t.y,t.x=[],t.y=[],t.vertices.forEach((function(e){t.x.push(e.x+t.cx),t.y.push(e.y+t.cy)})),t}function l(t,e,n){n.dataType=o.DataSet.CONSTANTS.HEX,e=i.assign({},a,e);var l=e.width,c=e.height,u=i.deepMix([],t);n._HexJSON=u;var h=n._GridHexJSON=r.getGridForHexJSON(u),d=n.rows=r.renderHexJSON(u,l,c).map(s);return n._gridRows=r.renderHexJSON(h,l,c).map(s),d}o.DataSet.registerConnector("hex",l),o.DataSet.registerConnector("hexjson",l),o.DataSet.registerConnector("hex-json",l),o.DataSet.registerConnector("HexJSON",l),e.default=l},"./src/connector/hierarchy.ts":
/*!************************************!*\
  !*** ./src/connector/hierarchy.ts ***!
  \************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js"),o=n(/*! ../data-set */"./src/data-set.ts");function a(t,e,n){n.dataType=o.DataSet.CONSTANTS.HIERARCHY;var a=e&&e.children?e.children:null;if(a&&!i.isFunction(a))throw new TypeError("Invalid children: must be a function!");return e.pureData?n.rows=n.root=t:n.rows=n.root=r.hierarchy(t,a),t}o.DataSet.registerConnector("hierarchy",a),o.DataSet.registerConnector("tree",a)},"./src/connector/topojson.ts":
/*!***********************************!*\
  !*** ./src/connector/topojson.ts ***!
  \***********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n(/*! topojson-client */"./node_modules/_topojson-client@3.1.0@topojson-client/dist/topojson-client.js"),a=i.__importDefault(n(/*! ./geojson */"./src/connector/geojson.ts")),s=n(/*! ../data-set */"./src/data-set.ts");function l(t,e,n){var i=e.object;if(!r.isString(i))throw new TypeError("Invalid object: must be a string!");var s=o.feature(t,t.objects[i]);return a.default(s,void 0,n)}s.DataSet.registerConnector("topojson",l),s.DataSet.registerConnector("TopoJSON",l)},"./src/constants.ts":
/*!**************************!*\
  !*** ./src/constants.ts ***!
  \**************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={HIERARCHY:"hierarchy",GEO:"geo",HEX:"hex",GRAPH:"graph",TABLE:"table",GEO_GRATICULE:"geo-graticule",STATISTICS_METHODS:["max","mean","median","min","mode","product","standardDeviation","sum","sumSimple","variance"]}},"./src/data-set.ts":
/*!*************************!*\
  !*** ./src/data-set.ts ***!
  \*************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! wolfy87-eventemitter */"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js")),a=n(/*! ./view */"./src/view.ts"),s=i.__importDefault(n(/*! ./constants */"./src/constants.ts")),l=function(t){function e(e){void 0===e&&(e={state:{}});var n=t.call(this)||this;return n.isDataSet=!0,n._onChangeTimer=null,n.views={},n.state={},n.state=e.state,n}return i.__extends(e,t),e.registerConnector=function(t,n){e.connectors[t]=n},e.getConnector=function(t){return e.connectors[t]||e.connectors.default},e.registerTransform=function(t,n){e.transforms[t]=n},e.getTransform=function(t){return e.transforms[t]||e.transforms.default},e.prototype._getUniqueViewName=function(){var t=r.uniqueId("view_");while(this.views[t])t=r.uniqueId("view_");return t},e.prototype.createView=function(t,e){if(r.isNil(t)&&(t=this._getUniqueViewName()),r.isObject(t)&&(e=t,t=this._getUniqueViewName()),this.views[t])throw new Error("data view exists: "+t);var n=new a.View(this,e);return this.views[t]=n,n},e.prototype.getView=function(t){return this.views[t]},e.prototype.setView=function(t,e){this.views[t]=e},e.prototype.setState=function(t,e){var n=this;this.state[t]=e,this._onChangeTimer&&(window.clearTimeout(this._onChangeTimer),this._onChangeTimer=null),this._onChangeTimer=window.setTimeout((function(){n.emit("statechange",t,e)}),16)},e.CONSTANTS=s.default,e.connectors={},e.transforms={},e.DataSet=e,e.DataView=a.View,e.View=a.View,e.version="____DATASET_VERSION____",e}(o.default);e.DataSet=l,r.assign(l,s.default),r.assign(l.prototype,{view:l.prototype.createView}),a.View.DataSet=l},"./src/index.ts":
/*!**********************!*\
  !*** ./src/index.ts ***!
  \**********************/
/*! no static exports found */function(t,e,n){"use strict";n(/*! ./api/geo */"./src/api/geo.ts"),n(/*! ./api/hierarchy */"./src/api/hierarchy.ts"),n(/*! ./api/partition */"./src/api/partition.ts"),n(/*! ./api/statistics */"./src/api/statistics.ts"),n(/*! ./connector/default */"./src/connector/default.ts"),n(/*! ./connector/dsv */"./src/connector/dsv.ts"),n(/*! ./connector/geo-graticule */"./src/connector/geo-graticule.ts"),n(/*! ./connector/geojson */"./src/connector/geojson.ts"),n(/*! ./connector/graph */"./src/connector/graph.ts"),n(/*! ./connector/hexjson */"./src/connector/hexjson.ts"),n(/*! ./connector/hierarchy */"./src/connector/hierarchy.ts"),n(/*! ./connector/topojson */"./src/connector/topojson.ts"),n(/*! ./transform/default */"./src/transform/default.ts"),n(/*! ./transform/filter */"./src/transform/filter.ts"),n(/*! ./transform/fold */"./src/transform/fold.ts"),n(/*! ./transform/map */"./src/transform/map.ts"),n(/*! ./transform/partition */"./src/transform/partition.ts"),n(/*! ./transform/percent */"./src/transform/percent.ts"),n(/*! ./transform/pick */"./src/transform/pick.ts"),n(/*! ./transform/proportion */"./src/transform/proportion.ts"),n(/*! ./transform/rename */"./src/transform/rename.ts"),n(/*! ./transform/reverse */"./src/transform/reverse.ts"),n(/*! ./transform/sort */"./src/transform/sort.ts"),n(/*! ./transform/sort-by */"./src/transform/sort-by.ts"),n(/*! ./transform/subset */"./src/transform/subset.ts"),n(/*! ./transform/fill-rows */"./src/transform/fill-rows.ts"),n(/*! ./transform/impute */"./src/transform/impute.ts"),n(/*! ./transform/aggregate */"./src/transform/aggregate.ts"),n(/*! ./transform/regression */"./src/transform/regression.ts"),n(/*! ./transform/kde */"./src/transform/kde.ts"),n(/*! ./transform/bin/hexagon */"./src/transform/bin/hexagon.ts"),n(/*! ./transform/bin/histogram */"./src/transform/bin/histogram.ts"),n(/*! ./transform/bin/quantile */"./src/transform/bin/quantile.ts"),n(/*! ./transform/bin/rectangle */"./src/transform/bin/rectangle.ts"),n(/*! ./transform/geo/centroid */"./src/transform/geo/centroid.ts"),n(/*! ./transform/geo/projection */"./src/transform/geo/projection.ts"),n(/*! ./transform/geo/region */"./src/transform/geo/region.ts"),n(/*! ./transform/diagram/arc */"./src/transform/diagram/arc.ts"),n(/*! ./transform/diagram/dagre */"./src/transform/diagram/dagre.ts"),n(/*! ./transform/diagram/sankey */"./src/transform/diagram/sankey.ts"),n(/*! ./transform/diagram/voronoi */"./src/transform/diagram/voronoi.ts"),n(/*! ./transform/hierarchy/cluster */"./src/transform/hierarchy/cluster.ts"),n(/*! ./transform/hierarchy/compact-box */"./src/transform/hierarchy/compact-box.ts"),n(/*! ./transform/hierarchy/dendrogram */"./src/transform/hierarchy/dendrogram.ts"),n(/*! ./transform/hierarchy/indented */"./src/transform/hierarchy/indented.ts"),n(/*! ./transform/hierarchy/pack */"./src/transform/hierarchy/pack.ts"),n(/*! ./transform/hierarchy/partition */"./src/transform/hierarchy/partition.ts"),n(/*! ./transform/hierarchy/tree */"./src/transform/hierarchy/tree.ts"),n(/*! ./transform/hierarchy/treemap */"./src/transform/hierarchy/treemap.ts"),n(/*! ./transform/tag-cloud */"./src/transform/tag-cloud.ts"),n(/*! ./transform/waffle */"./src/transform/waffle.ts"),n(/*! ./transform/kernel-smooth/density */"./src/transform/kernel-smooth/density.ts"),n(/*! ./transform/kernel-smooth/regression */"./src/transform/kernel-smooth/regression.ts");var i=n(/*! ./data-set */"./src/data-set.ts");t.exports=i.DataSet},"./src/transform/aggregate.ts":
/*!************************************!*\
  !*** ./src/transform/aggregate.ts ***!
  \************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importStar(n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),a=i.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=s.DataSet.registerTransform,c=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),u={as:[],fields:[],groupBy:[],operations:[]},h="count",d={count:function(t){return t.length},distinct:function(t,e){var n=r.uniq(t.map((function(t){return t[e]})));return n.length}};function p(t,e){e=r.assign({},u,e);var n=c.getFields(e);if(!r.isArray(n))throw new TypeError("Invalid fields: it must be an array with one or more strings!");var i=e.as||[];r.isString(i)&&(i=[i]);var o=e.operations;r.isString(o)&&(o=[o]);var s=[h];if(r.isArray(o)&&o.length||(console.warn('operations is not defined, will use [ "count" ] directly.'),o=s,i=o),1!==o.length||o[0]!==h){if(o.length!==n.length)throw new TypeError("Invalid operations: it's length must be the same as fields!");if(i.length!==n.length)throw new TypeError("Invalid as: it's length must be the same as fields!")}var l=a.default(t.rows,e.groupBy),p=[];r.forIn(l,(function(t){var e=t[0];o.forEach((function(r,o){var a=i[o],s=n[o];e[a]=d[r](t,s)})),p.push(e)})),t.rows=p}s.DataSet.CONSTANTS.STATISTICS_METHODS.forEach((function(t){d[t]=function(e,n){var i=e.map((function(t){return t[n]}));return r.isArray(i)&&r.isArray(i[0])&&(i=r.flattenDeep(i)),o[t](i)}})),d.average=d.mean,l("aggregate",p),l("summary",p),e.default={VALID_AGGREGATES:r.keys(d)}},"./src/transform/bin/hexagon.ts":
/*!**************************************!*\
  !*** ./src/transform/bin/hexagon.ts ***!
  \**************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1},l=Math.sqrt(3),c=Math.PI/3,u=[0,c,2*c,3*c,4*c,5*c];function h(t,e,n,i){return Math.sqrt((t-n)*(t-n)+(e-i)*(e-i))}function d(t,e,n){var i=t-n;e/=2;var r=Math.floor(i/e),o=e*(r+(1===Math.abs(r%2)?1:0)),a=e*(r+(1===Math.abs(r%2)?0:1));return[o+n,a+n]}function p(t,e,n){void 0===e&&(e=[1,1]),void 0===n&&(n=[0,0]);var r={},o=i.__read(e,2),a=o[0],s=o[1],l=i.__read(n,2),c=l[0],u=l[1];return t.forEach((function(t){var e,n,o,l,p,f=i.__read(t,2),g=f[0],m=f[1],v=i.__read(d(g,a,c),2),y=v[0],b=v[1],x=i.__read(d(m,s,u),2),w=x[0],_=x[1],C=h(g,m,y,w),A=h(g,m,b,_);C<A?(o="x"+y+"y"+w,e=i.__read([y,w],2),l=e[0],p=e[1]):(o="x"+b+"y"+_,n=i.__read([b,_],2),l=n[0],p=n[1]),r[o]=r[o]||{x:l,y:p,count:0},r[o].count++})),r}function f(t,e){e=r.assign({},s,e);var n=a.getFields(e);if(!r.isArray(n)||2!==n.length)throw new TypeError("Invalid fields: it must be an array with 2 strings!");var o=i.__read(n,2),c=o[0],h=o[1],d=t.range(c),f=t.range(h),g=d[1]-d[0],m=f[1]-f[0],v=e.binWidth||[];if(2!==v.length){var y=i.__read(e.bins,2),b=y[0],x=y[1];if(b<=0||x<=0)throw new TypeError("Invalid bins: must be an array with two positive numbers (e.g. [ 30, 30 ])!");v=[g/b,m/x]}var w=i.__read(e.offset,2),_=w[0],C=w[1],A=3*v[0]/(l*v[1]),I=t.rows.map((function(t){return[t[c],A*t[h]]})),S=p(I,[v[0],A*v[1]],[_,A*C]),M=i.__read(e.as,3),k=M[0],E=M[1],T=M[2];if(!k||!E||!T)throw new TypeError('Invalid as: it must be an array with three elements (e.g. [ "x", "y", "count" ])!');var O=v[0]/l,P=u.map((function(t){return[Math.sin(t)*O,-Math.cos(t)*O]})),j=[],L=0;e.sizeByCount&&r.forIn(S,(function(t){t.count>L&&(L=t.count)})),r.forIn(S,(function(t){var n=t.x,i=t.y,r=t.count,o={};o[T]=r,e.sizeByCount?(o[k]=P.map((function(e){return n+t.count/L*e[0]})),o[E]=P.map((function(e){return(i+t.count/L*e[1])/A}))):(o[k]=P.map((function(t){return n+t[0]})),o[E]=P.map((function(t){return(i+t[1])/A}))),j.push(o)})),t.rows=j}o.DataSet.registerTransform("bin.hexagon",f),o.DataSet.registerTransform("bin.hex",f),o.DataSet.registerTransform("hexbin",f)},"./src/transform/bin/histogram.ts":
/*!****************************************!*\
  !*** ./src/transform/bin/histogram.ts ***!
  \****************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! ../../util/partition */"./src/util/partition.ts")),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l={as:["x","count"],bins:void 0,offset:0,groupBy:[]};function c(t,e,n){var i=t-n,r=Math.floor(i/e);return[r*e+n,(r+1)*e+n]}function u(t){return Math.ceil(Math.log(t)/Math.LN2)+1}function h(t,e){e=r.assign({},l,e);var n=s.getField(e);if(0!==t.rows.length){var a=t.range(n),h=a[1]-a[0],d=e.binWidth,p=e.bins;if(!d&&p){if(p<=0)throw new TypeError("Invalid bins: it must be a positive number!");d=h/p}if(!d&&!p){var f=u(t.rows.length);d=h/f}var g=e.offset%d,m=[],v=e.groupBy,y=o.default(t.rows,v);r.forIn(y,(function(t){var o={},a=t.map((function(t){return t[n]}));a.forEach((function(t){var e=i.__read(c(t,d,g),2),n=e[0],r=e[1],a=n+"-"+r;o[a]=o[a]||{x0:n,x1:r,count:0},o[a].count++}));var s=i.__read(e.as,2),l=s[0],u=s[1];if(!l||!u)throw new TypeError('Invalid as: it must be an array with 2 elements (e.g. [ "x", "count" ])!');var h=r.pick(t[0],v);r.forIn(o,(function(t){var e=r.assign({},h);e[l]=[t.x0,t.x1],e[u]=t.count,m.push(e)}))})),t.rows=m}}a.DataSet.registerTransform("bin.histogram",h),a.DataSet.registerTransform("bin.dot",h)},"./src/transform/bin/quantile.ts":
/*!***************************************!*\
  !*** ./src/transform/bin/quantile.ts ***!
  \***************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=i.__importDefault(n(/*! ../../util/partition */"./src/util/partition.ts")),s=i.__importDefault(n(/*! ../../util/p-by-fraction */"./src/util/p-by-fraction.ts")),l=n(/*! ../../data-set */"./src/data-set.ts"),c=l.DataSet.registerTransform,u=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),h={as:"_bin",groupBy:[],fraction:4};function d(t,e){e=r.assign({},h,e);var n=u.getField(e),i=e.as;if(!r.isString(i))throw new TypeError('Invalid as: it must be a string (e.g. "_bin")!');var l=e.p,c=e.fraction;r.isArray(l)&&0!==l.length||(l=s.default(c));var d=t.rows,p=e.groupBy,f=a.default(d,p),g=[];r.forIn(f,(function(t){var e=t[0],r=t.map((function(t){return t[n]})),a=l.map((function(t){return o.quantile(r,t)}));e[i]=a,g.push(e)})),t.rows=g}c("bin.quantile",d)},"./src/transform/bin/rectangle.ts":
/*!****************************************!*\
  !*** ./src/transform/bin/rectangle.ts ***!
  \****************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a=o.DataSet.registerTransform,s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1};function c(t,e,n){var i=t-n,r=Math.floor(i/e);return[r*e+n,(r+1)*e+n]}function u(t,e){e=r.assign({},l,e);var n=i.__read(s.getFields(e),2),o=n[0],a=n[1];if(!o||!a)throw new TypeError("Invalid fields: must be an array with 2 strings!");var u=t.range(o),h=t.range(a),d=u[1]-u[0],p=h[1]-h[0],f=e.binWidth||[];if(2!==f.length){var g=i.__read(e.bins,2),m=g[0],v=g[1];if(m<=0||v<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");f=[d/m,p/v]}var y=t.rows.map((function(t){return[t[o],t[a]]})),b={},x=i.__read(e.offset,2),w=x[0],_=x[1];y.forEach((function(t){var e=i.__read(c(t[0],f[0],w),2),n=e[0],r=e[1],o=i.__read(c(t[1],f[1],_),2),a=o[0],s=o[1],l=n+"-"+r+"-"+a+"-"+s;b[l]=b[l]||{x0:n,x1:r,y0:a,y1:s,count:0},b[l].count++}));var C=[],A=i.__read(e.as,3),I=A[0],S=A[1],M=A[2];if(!I||!S||!M)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "count" ])!');if(e.sizeByCount){var k=0;r.forIn(b,(function(t){t.count>k&&(k=t.count)})),r.forIn(b,(function(t){var e=t.x0,n=t.x1,r=t.y0,o=t.y1,a=t.count,s=a/k,l=i.__read([(e+n)/2,(r+o)/2],2),c=l[0],u=l[1],h=(n-e)*s/2,d=(o-r)*s/2,p=c-h,f=c+h,g=u-d,m=u+d,v={};v[I]=[p,f,f,p],v[S]=[g,g,m,m],v[M]=a,C.push(v)}))}else r.forIn(b,(function(t){var e={};e[I]=[t.x0,t.x1,t.x1,t.x0],e[S]=[t.y0,t.y0,t.y1,t.y1],e[M]=t.count,C.push(e)}));t.rows=C}a("bin.rectangle",u),a("bin.rect",u)},"./src/transform/default.ts":
/*!**********************************!*\
  !*** ./src/transform/default.ts ***!
  \**********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ../data-set */"./src/data-set.ts");i.DataSet.registerTransform("default",(function(t){return t}))},"./src/transform/diagram/arc.ts":
/*!**************************************!*\
  !*** ./src/transform/diagram/arc.ts ***!
  \**************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../../data-set */"./src/data-set.ts"),o={y:0,thickness:.05,weight:!1,marginRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function a(t,e,n){return void 0===n&&(n={}),t.forEach((function(t){var i=e.edgeSource(t),r=e.edgeTarget(t);n[i]||(n[i]={id:i}),n[r]||(n[r]={id:r})})),i.values(n)}function s(t,e,n){i.forIn(t,(function(t,i){t.inEdges=e.filter((function(t){return""+n.target(t)===""+i})),t.outEdges=e.filter((function(t){return""+n.source(t)===""+i})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}function l(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}},r=n[e.sortBy];!r&&i.isFunction(e.sortBy)&&(r=e.sortBy),r&&t.sort(r)}function c(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var i=e.marginRatio;if(i<0||i>=1)throw new TypeError("Invalid marginRatio: it must be in range [0, 1)!");var r=i/(2*n),o=e.thickness;if(o<=0||o>=1)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-i),t.height=o})),t.forEach((function(n,i){for(var a=0,s=i-1;s>=0;s--)a+=t[s].width+2*r;var l=n.minX=r+a,c=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,h=n.maxY=u+o;n.x=[l,c,c,l],n.y=[u,u,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}}function u(t,e,n){if(n.weight){var r={};i.forIn(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),o=n.target(e),a=t[i],s=t[o];if(a&&s){var l=r[i],c=n.sourceWeight(e),u=a.minX+(a.value-l)/a.value*a.width,h=u+c/a.value*a.width;r[i]-=c;var d=r[o],p=n.targetWeight(e),f=s.minX+(s.value-d)/s.value*s.width,g=f+p/s.value*s.width;r[o]-=p;var m=n.y;e.x=[u,h,f,g],e.y=[m,m,m,m]}}))}else e.forEach((function(e){var i=t[n.source(e)],r=t[n.target(e)];i&&r&&(e.x=[i.x,r.x],e.y=[i.y,r.y])}))}function h(t,e){e=i.assign({},o,e);var n={},r=t.nodes,h=t.edges;i.isArray(r)&&0!==r.length||(r=a(h,e,n)),r.forEach((function(t){var i=e.id(t);n[i]=t})),s(n,h,e),l(r,e),c(r,e),u(n,h,e),t.nodes=r,t.edges=h}r.DataSet.registerTransform("diagram.arc",h),r.DataSet.registerTransform("arc",h)},"./src/transform/diagram/dagre.ts":
/*!****************************************!*\
  !*** ./src/transform/diagram/dagre.ts ***!
  \****************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! dagre */"./node_modules/_dagre@0.8.5@dagre/index.js")),a=n(/*! ../../data-set */"./src/data-set.ts"),s={rankdir:"TB",align:"TB",nodesep:50,edgesep:10,ranksep:50,source:function(t){return t.source},target:function(t){return t.target}};function l(t,e){e=r.assign({},s,e);var n=new o.default.graphlib.Graph;n.setGraph({}),n.setDefaultEdgeLabel((function(){return{}})),t.nodes.forEach((function(t){var i=e.nodeId?e.nodeId(t):t.id;t.height||t.width||(t.height=t.width=e.edgesep),n.setNode(i,t)})),t.edges.forEach((function(t){n.setEdge(e.source(t),e.target(t))})),o.default.layout(n);var i=[],a=[];n.nodes().forEach((function(t){var e=n.node(t),r=e.x,o=e.y,a=e.height,s=e.width;e.x=[r-s/2,r+s/2,r+s/2,r-s/2],e.y=[o+a/2,o+a/2,o-a/2,o-a/2],i.push(e)})),n.edges().forEach((function(t){var e=n.edge(t).points,i={};i.x=e.map((function(t){return t.x})),i.y=e.map((function(t){return t.y})),a.push(i)})),t.nodes=i,t.edges=a}a.DataSet.registerTransform("diagram.dagre",l),a.DataSet.registerTransform("dagre",l)},"./src/transform/diagram/sankey.ts":
/*!*****************************************!*\
  !*** ./src/transform/diagram/sankey.ts ***!
  \*****************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! d3-sankey */"./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js"),o=n(/*! ../../data-set */"./src/data-set.ts"),a={sankeyLeft:r.sankeyLeft,sankeyRight:r.sankeyRight,sankeyCenter:r.sankeyCenter,sankeyJustify:r.sankeyJustify},s={value:function(t){return t.value},source:function(t){return t.source},target:function(t){return t.target},nodeAlign:"sankeyJustify",nodeWidth:.02,nodePadding:.02,sort:void 0};function l(t,e){e=i.assign({},s,e);var n=null;i.isString(e.nodeAlign)?n=a[e.nodeAlign]:i.isFunction(e.nodeAlign)&&(n=e.nodeAlign);var o=r.sankey().nodeSort(e.sort).links((function(t){return t.edges})).nodeWidth(e.nodeWidth).nodePadding(e.nodePadding).extent([[0,0],[1,1]]);i.isFunction(e.nodeId)&&o.nodeId(e.nodeId),n&&o.nodeAlign(n),o(t),t.nodes.forEach((function(t){var e=t.x0,n=t.x1,i=t.y0,r=t.y1;t.x=[e,n,n,e],t.y=[i,i,r,r]})),t.edges.forEach((function(t){var e=t.source,n=t.target,i=e.x1,r=n.x0;t.x=[i,i,r,r];var o=t.width/2;t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o]}))}o.DataSet.registerTransform("diagram.sankey",l),o.DataSet.registerTransform("sankey",l)},"./src/transform/diagram/voronoi.ts":
/*!******************************************!*\
  !*** ./src/transform/diagram/voronoi.ts ***!
  \******************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importStar(n(/*! d3-voronoi */"./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n(/*! ../../data-set */"./src/data-set.ts"),s=a.DataSet.registerTransform,l=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),c={as:["_x","_y"]};function u(t,e){e=o.assign({},c,e);var n=e.as;if(!o.isArray(n)||2!==n.length)throw new TypeError("Invalid as: must be an array with two strings!");var i=n[0],a=n[1],s=l.getFields(e);if(!o.isArray(s)||2!==s.length)throw new TypeError("Invalid fields: must be an array with two strings!");var u=s[0],h=s[1],d=t.rows,p=d.map((function(t){return[t[u],t[h]]})),f=r.voronoi();e.extend&&f.extent(e.extend),e.size&&f.size(e.size);var g=f(p).polygons();d.forEach((function(t,e){var n=g[e].filter((function(t){return!!t}));t[i]=n.map((function(t){return t[0]})),t[a]=n.map((function(t){return t[1]}))}))}s("diagram.voronoi",u),s("voronoi",u)},"./src/transform/fill-rows.ts":
/*!************************************!*\
  !*** ./src/transform/fill-rows.ts ***!
  \************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),a=n(/*! ../data-set */"./src/data-set.ts"),s={fillBy:"group",groupBy:[],orderBy:[]};function l(t,e){var n=t.map((function(t){return t}));return e.forEach((function(t){var e=n.indexOf(t);e>-1&&n.splice(e,1)})),n}function c(t,e){e=r.assign({},s,e);var n=t.rows,i=e.groupBy,a=e.orderBy,c=o.default(n,i,a),u=0,h=[];r.forIn(c,(function(t){t.length>u&&(u=t.length,h=t)}));var d=[],p={};if(h.forEach((function(t){var e=a.map((function(e){return t[e]})).join("-");d.push(e),p[e]=t})),"order"===e.fillBy){var f=h[0],g=[],m={};n.forEach((function(t){var e=a.map((function(e){return t[e]})).join("-");-1===g.indexOf(e)&&(g.push(e),m[e]=t)}));var v=l(g,d);v.forEach((function(t){var e={};i.forEach((function(t){e[t]=f[t]})),a.forEach((function(n){e[n]=m[t][n]})),n.push(e),h.push(e),d.push(t),p[t]=e})),u=h.length}r.forIn(c,(function(t){if(t!==h&&t.length<u){var e=t[0],r=[];t.forEach((function(t){r.push(a.map((function(e){return t[e]})).join("-"))}));var o=l(d,r);o.some((function(r,o){if(o>=u-t.length)return!0;var s=p[r],l={};return i.forEach((function(t){l[t]=e[t]})),a.forEach((function(t){l[t]=s[t]})),n.push(l),!1}))}}))}a.DataSet.registerTransform("fill-rows",c),a.DataSet.registerTransform("fillRows",c)},"./src/transform/filter.ts":
/*!*********************************!*\
  !*** ./src/transform/filter.ts ***!
  \*********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ../data-set */"./src/data-set.ts");function r(t){return!!t}i.DataSet.registerTransform("filter",(function(t,e){t.rows=t.rows.filter(e.callback||r)}))},"./src/transform/fold.ts":
/*!*******************************!*\
  !*** ./src/transform/fold.ts ***!
  \*******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../data-set */"./src/data-set.ts"),o=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),a={fields:[],key:"key",retains:[],value:"value"};r.DataSet.registerTransform("fold",(function(t,e){var n=t.getColumnNames();e=i.assign({},a,e);var r=o.getFields(e);0===r.length&&(console.warn("warning: option fields is not specified, will fold all columns."),r=n);var s=e.key,l=e.value,c=e.retains;c&&0!==c.length||(c=i.difference(n,r));var u=[];t.rows.forEach((function(t){r.forEach((function(e){var n=i.pick(t,c);n[s]=e,n[l]=t[e],u.push(n)}))})),t.rows=u}))},"./src/transform/geo/centroid.ts":
/*!***************************************!*\
  !*** ./src/transform/geo/centroid.ts ***!
  \***************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../../data-set */"./src/data-set.ts"),o=r.DataSet.registerTransform,a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={as:["_centroid_x","_centroid_y"]};function l(t,e){e=i.assign({},s,e);var n=a.getField(e),r=e.geoView||e.geoDataView;if(i.isString(r)&&t.dataSet&&(r=t.dataSet.getView(r)),!r||"geo"!==r.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var o=e.as;if(!i.isArray(o)||2!==o.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var l=o[0],c=o[1];t.rows.forEach((function(t){var e=r.geoFeatureByName(t[n]);e&&(r._projectedAs?(t[l]=e[r._projectedAs[2]],t[c]=e[r._projectedAs[3]]):(t[l]=e.centroidX,t[c]=e.centroidY))}))}o("geo.centroid",l)},"./src/transform/geo/projection.ts":
/*!*****************************************!*\
  !*** ./src/transform/geo/projection.ts ***!
  \*****************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),a=i.__importDefault(n(/*! point-at-length */"./node_modules/_point-at-length@1.1.0@point-at-length/index.js")),s=n(/*! ../../data-set */"./src/data-set.ts"),l=s.DataSet.registerTransform,c=i.__importDefault(n(/*! ../../util/get-geo-projection */"./src/util/get-geo-projection.ts")),u={as:["_x","_y","_centroid_x","_centroid_y"]};function h(t,e){if("geo"!==t.dataType&&"geo-graticule"!==t.dataType)throw new TypeError("Invalid dataView: this transform is for Geo data only!");e=r.assign({},u,e);var n=e.projection;if(!n)throw new TypeError("Invalid projection!");n=c.default(n);var s=o.geoPath(n),l=e.as;if(!r.isArray(l)||4!==l.length)throw new TypeError('Invalid as: it must be an array with 4 strings (e.g. [ "x", "y", "cX", "cY" ])!');t._projectedAs=l;var h=i.__read(l,4),d=h[0],p=h[1],f=h[2],g=h[3];t.rows.forEach((function(t){t[d]=[],t[p]=[];var e=s(t);if(e){var n=a.default(e);n._path.forEach((function(e){t[d].push(e[1]),t[p].push(e[2])}));var i=s.centroid(t);t[f]=i[0],t[g]=i[1]}})),t.rows=t.rows.filter((function(t){return 0!==t[d].length}))}l("geo.projection",h)},"./src/transform/geo/region.ts":
/*!*************************************!*\
  !*** ./src/transform/geo/region.ts ***!
  \*************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../../data-set */"./src/data-set.ts"),o=r.DataSet.registerTransform,a=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),s={as:["_x","_y"]};function l(t,e){e=i.assign({},s,e);var n=a.getField(e),r=e.geoView||e.geoDataView;if(i.isString(r)&&(r=t.dataSet.getView(r)),!r||"geo"!==r.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var o=e.as;if(!i.isArray(o)||2!==o.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var l=o[0],c=o[1];t.rows.forEach((function(t){var e=r.geoFeatureByName(t[n]);e&&(r._projectedAs?(t[l]=e[r._projectedAs[0]],t[c]=e[r._projectedAs[1]]):(t[l]=e.longitude,t[c]=e.latitude))}))}o("geo.region",l)},"./src/transform/hierarchy/cluster.ts":
/*!********************************************!*\
  !*** ./src/transform/hierarchy/cluster.ts ***!
  \********************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function c(t,e){if(t.dataType!==a.DataSet.CONSTANTS.HIERARCHY||!t.root)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=o.assign({},l,e);var i=e.as;if(!o.isArray(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var c=void 0;try{c=s.getField(e)}catch(p){console.warn(p)}c&&n.sum((function(t){return t[c]}));var u=r.cluster();u.size(e.size),e.nodeSize&&u.nodeSize(e.nodeSize),e.separation&&u.separation(e.separation),u(n);var h=i[0],d=i[1];n.each((function(t){t[h]=t.x,t[d]=t.y}))}a.DataSet.registerTransform("hierarchy.cluster",c),a.DataSet.registerTransform("dendrogram",c)},"./src/transform/hierarchy/compact-box.ts":
/*!************************************************!*\
  !*** ./src/transform/hierarchy/compact-box.ts ***!
  \************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importDefault(n(/*! @antv/hierarchy */"./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js")),o=n(/*! ../../data-set */"./src/data-set.ts"),a={};function s(t,e){var n=t.root;if(e=Object.assign({},a,e),t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.compactBox(n,e)}o.DataSet.registerTransform("hierarchy.compact-box",s),o.DataSet.registerTransform("compact-box-tree",s),o.DataSet.registerTransform("non-layered-tidy-tree",s),o.DataSet.registerTransform("mindmap-logical",s)},"./src/transform/hierarchy/dendrogram.ts":
/*!***********************************************!*\
  !*** ./src/transform/hierarchy/dendrogram.ts ***!
  \***********************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importDefault(n(/*! @antv/hierarchy */"./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js")),o=n(/*! ../../data-set */"./src/data-set.ts"),a={};function s(t,e){var n=t.root;if(e=Object.assign({},a,e),t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.dendrogram(n,e)}o.DataSet.registerTransform("hierarchy.dendrogram",s),o.DataSet.registerTransform("dendrogram",s)},"./src/transform/hierarchy/indented.ts":
/*!*********************************************!*\
  !*** ./src/transform/hierarchy/indented.ts ***!
  \*********************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importDefault(n(/*! @antv/hierarchy */"./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js")),o=n(/*! ../../data-set */"./src/data-set.ts"),a={};function s(t,e){var n=t.root;if(e=Object.assign({},a,e),t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.indented(n,e)}o.DataSet.registerTransform("hierarchy.indented",s),o.DataSet.registerTransform("indented-tree",s)},"./src/transform/hierarchy/pack.ts":
/*!*****************************************!*\
  !*** ./src/transform/hierarchy/pack.ts ***!
  \*****************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l={field:"value",size:[1,1],padding:0,as:["x","y","r"]};function c(t,e){if(t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=r.assign({},l,e);var i,c=e.as;if(!r.isArray(c)||3!==c.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{i=s.getField(e)}catch(f){console.warn(f)}i&&n.sum((function(t){return t[i]})).sort((function(t,e){return e[i]-t[i]}));var u=o.pack();u.size(e.size),e.padding&&u.padding(e.padding),u(n);var h=c[0],d=c[1],p=c[2];n.each((function(t){t[h]=t.x,t[d]=t.y,t[p]=t.r}))}a.DataSet.registerTransform("hierarchy.pack",c),a.DataSet.registerTransform("hierarchy.circle-packing",c),a.DataSet.registerTransform("circle-packing",c)},"./src/transform/hierarchy/partition.ts":
/*!**********************************************!*\
  !*** ./src/transform/hierarchy/partition.ts ***!
  \**********************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l={field:"value",size:[1,1],round:!1,padding:0,sort:!0,as:["x","y"]};function c(t,e){if(t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=o.assign({},l,e);var i,c=e.as;if(!o.isArray(c)||2!==c.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{i=s.getField(e)}catch(p){console.warn(p)}i&&n.sum((function(t){return t[i]}));var u=r.partition();u.size(e.size).round(e.round).padding(e.padding),u(n);var h=c[0],d=c[1];n.each((function(t){t[h]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===c.indexOf(e)&&delete t[e]}))}))}a.DataSet.registerTransform("hierarchy.partition",c),a.DataSet.registerTransform("adjacency",c)},"./src/transform/hierarchy/tree.ts":
/*!*****************************************!*\
  !*** ./src/transform/hierarchy/tree.ts ***!
  \*****************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function c(t,e){if(t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=o.assign({},l,e);var i,c=e.as;if(!o.isArray(c)||2!==c.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{i=s.getField(e)}catch(p){console.warn(p)}i&&n.sum((function(t){return t[i]}));var u=r.tree();u.size(e.size),e.nodeSize&&u.nodeSize(e.nodeSize),e.separation&&u.separation(e.separation),u(n);var h=c[0],d=c[1];n.each((function(t){t[h]=t.x,t[d]=t.y}))}a.DataSet.registerTransform("hierarchy.tree",c),a.DataSet.registerTransform("tree",c)},"./src/transform/hierarchy/treemap.ts":
/*!********************************************!*\
  !*** ./src/transform/hierarchy/treemap.ts ***!
  \********************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importStar(n(/*! d3-hierarchy */"./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=n(/*! ../../data-set */"./src/data-set.ts"),s=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),l={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"]};function c(t,e){if(t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root;e=o.assign({},l,e);var i,c=e.as;if(!o.isArray(c)||2!==c.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{i=s.getField(e)}catch(p){console.warn(p)}i&&n.sum((function(t){return t[i]}));var u=r.treemap();u.tile(r[e.tile]).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft),u(n);var h=c[0],d=c[1];n.each((function(t){t[h]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===c.indexOf(e)&&delete t[e]}))}))}a.DataSet.registerTransform("hierarchy.treemap",c),a.DataSet.registerTransform("treemap",c)},"./src/transform/impute.ts":
/*!*********************************!*\
  !*** ./src/transform/impute.ts ***!
  \*********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importStar(n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),a=i.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),c={groupBy:[]};function u(t){return t.filter((function(t){return!r.isUndefined(t)}))}var h=["mean","median","max","min"],d={};function p(t,e){e=r.assign({},c,e);var n=l.getField(e),i=e.method;if(!i)throw new TypeError("Invalid method!");if("value"===i&&!r.has(e,"value"))throw new TypeError("Invalid value: it is nil.");var o=u(t.getColumn(n)),s=a.default(t.rows,e.groupBy);r.forIn(s,(function(t){var a=u(t.map((function(t){return t[n]})));0===a.length&&(a=o),t.forEach((function(o){if(r.isUndefined(o[n]))if(r.isFunction(i))o[n]=i(o,a,e.value,t);else{if(!r.isString(i))throw new TypeError("Invalid method: must be a function or one of "+h.join(", "));o[n]=d[i](o,a,e.value)}}))}))}h.forEach((function(t){d[t]=function(e,n){return o[t](n)}})),d.value=function(t,e,n){return n},s.DataSet.registerTransform("impute",p)},"./src/transform/kde.ts":
/*!******************************!*\
  !*** ./src/transform/kde.ts ***!
  \******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! ../util/get-series-values */"./src/util/get-series-values.ts")),a=i.__importDefault(n(/*! ../util/kernel */"./src/util/kernel.ts")),s=i.__importStar(n(/*! ../util/bandwidth */"./src/util/bandwidth.ts")),l=i.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),c=n(/*! ../data-set */"./src/data-set.ts"),u=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),h=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),d={minSize:.01,as:["key","y","size"],extent:[],method:"gaussian",bandwidth:"nrd",step:0,groupBy:[]},p=r.keys(a.default),f=r.keys(s);function g(t,e){e=r.assign({},d,e);var n=u.getFields(e);if(!r.isArray(n)||n.length<1)throw new TypeError("invalid fields: must be an array of at least 1 strings!");var c=e.as;if(!r.isArray(c)||3!==c.length)throw new TypeError("invalid as: must be an array of 3 strings!");var f=e.method;if(r.isString(f)){if(-1===p.indexOf(f))throw new TypeError("invalid method: "+f+". Must be one of "+p.join(", "));f=a.default[f]}if(!r.isFunction(f))throw new TypeError("invalid method: kernel method must be a function!");var g=e.extent;if(!r.isArray(g)||0===g.length){var m=[];r.each(n,(function(e){var n=t.range(e);m=m.concat(n)})),g=[Math.min.apply(Math,i.__spread(m)),Math.max.apply(Math,i.__spread(m))]}var v=e.bandwidth;r.isString(v)&&s[v]?v=s[v](t.getColumn(n[0])):r.isFunction(v)?v=v(t.getColumn(n[0])):(!r.isNumber(v)||v<=0)&&(v=s.nrd(t.getColumn(n[0])));var y=o.default(g,e.step?e.step:v),b=[],x=e.groupBy,w=l.default(t.rows,x);r.forIn(w,(function(t){var o={};r.each(n,(function(n){var a=r.pick(t[0],x);o[n]=h.kernelDensityEstimation(t.map((function(t){return t[n]})),f,v);var s=i.__read(c,3),l=s[0],u=s[1],d=s[2];a[l]=n,a[u]=[],a[d]=[],r.each(y,(function(t){var i=o[n](t);i>=e.minSize&&(a[u].push(t),a[d].push(i))})),b.push(a)}))})),t.rows=b}c.DataSet.registerTransform("kernel-density-estimation",g),c.DataSet.registerTransform("kde",g),c.DataSet.registerTransform("KDE",g),e.default={KERNEL_METHODS:p,BANDWIDTH_METHODS:f}},"./src/transform/kernel-smooth/density.ts":
/*!************************************************!*\
  !*** ./src/transform/kernel-smooth/density.ts ***!
  \************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! ../../util/get-series-values */"./src/util/get-series-values.ts")),a=i.__importDefault(n(/*! ../../util/kernel */"./src/util/kernel.ts")),s=n(/*! ../../data-set */"./src/data-set.ts"),l=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),c=n(/*! ../../util/bandwidth */"./src/util/bandwidth.ts"),u={as:["x","y","z"],method:"gaussian"},h=r.keys(a.default);function d(t,e){var n,s;e=r.assign({},u,e);var d=l.getFields(e);if(!r.isArray(d)||2!==d.length)throw new TypeError("invalid fields: must be an array of 2 strings!");var p,f=i.__read(e.as,3),g=f[0],m=f[1],v=f[2];if(!r.isString(g)||!r.isString(m)||!r.isString(v))throw new TypeError("invalid as: must be an array of 3 strings!");if(r.isString(e.method)){if(-1===h.indexOf(e.method))throw new TypeError("invalid method: "+e.method+". Must be one of "+h.join(", "));p=a.default[e.method]}var y,b,x,w,_=i.__read(d,2),C=_[0],A=_[1],I=e.extent,S=e.bandwidth;I&&Array.isArray(I)&&Array.isArray(I[0])&&Array.isArray(I[1])?(n=i.__read(I,2),y=n[0],b=n[1]):(y=t.range(C),b=t.range(A)),S&&Array.isArray(S)&&S.slice(0,2).every(r.isNumber)&&S.slice(0,2).every((function(t){return t>0}))?(s=i.__read(S,2),x=s[0],w=s[1]):(x=c.silverman(t.getColumn(C)),w=c.silverman(t.getColumn(A)));for(var M=o.default(y,x),k=o.default(b,w),E=t.rows.length,T=[],O=0;O<M.length;O++)for(var P=0;P<k.length;P++){for(var j=0,L=M[O],D=k[P],R=0;R<E;R++)j+=p((L-t.rows[R][C])/x)*p((D-t.rows[R][A])/w);var B=1/(E*x*w)*j,N={};N[g]=L,N[m]=D,N[v]=B,T.push(N)}t.rows=T}s.DataSet.registerTransform("kernel-smooth.density",d),s.DataSet.registerTransform("kernel.density",d),e.default={KERNEL_METHODS:h}},"./src/transform/kernel-smooth/regression.ts":
/*!***************************************************!*\
  !*** ./src/transform/kernel-smooth/regression.ts ***!
  \***************************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! ../../util/get-series-values */"./src/util/get-series-values.ts")),a=i.__importDefault(n(/*! ../../util/kernel */"./src/util/kernel.ts")),s=n(/*! ../../data-set */"./src/data-set.ts"),l=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),c=n(/*! ../../util/option-parser */"./src/util/option-parser.ts"),u=n(/*! ../../util/bandwidth */"./src/util/bandwidth.ts"),h={as:["x","y"],method:"gaussian"},d=r.keys(a.default);function p(t,e,n,i){var r=(i-n)/e;return t(r)}function f(t){return function(e){return r.isArray(e)?e.map((function(e){return t(e)})):t(e)}}function g(t,e){e=r.assign({},h,e);var n=c.getFields(e);if(!r.isArray(n)||1!==n.length&&2!==n.length)throw new TypeError("invalid fields: must be an array of 1 or 2 strings!");var s,g=i.__read(e.as,2),m=g[0],v=g[1];if(!r.isString(m)||!r.isString(v))throw new TypeError("invalid as: must be an array of 2 strings!");var y=e.method;if(r.isString(y)){if(-1===d.indexOf(y))throw new TypeError("invalid method: "+y+". Must be one of "+d.join(", "));s=a.default[y]}var b=i.__read(n,2),x=b[0],w=b[1],_=t.getColumn(x),C=e.extent;!C&&r.isArray(C)||(C=t.range(x));var A=e.bandwidth;(!A||!r.isNumber(A)||A<=0)&&(A=u.silverman(_));var I,S=o.default(C,A),M=_.length,k=p.bind(null,s,A);if(r.isNil(w))I=f((function(t){var e=_.map((function(e){return k(t,e)})),n=l.sum(e),i=M*A;return n&&i?n/i:0}));else{var E=t.getColumn(w);I=f((function(t){var e=_.map((function(e){return k(t,e)})),n=l.sum(e.map((function(t,e){return t*E[e]}))),i=l.sum(e);return n&&i?n/i:0}))}var T=S.map((function(t){var e={};return e[m]=t,e[v]=I(t),e}));t.rows=T}s.DataSet.registerTransform("kernel-smooth.regression",g),s.DataSet.registerTransform("kernel.regression",g),e.default={KERNEL_METHODS:d}},"./src/transform/map.ts":
/*!******************************!*\
  !*** ./src/transform/map.ts ***!
  \******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ../data-set */"./src/data-set.ts");function r(t){return t}i.DataSet.registerTransform("map",(function(t,e){t.rows=t.rows.map(e.callback||r)}))},"./src/transform/partition.ts":
/*!************************************!*\
  !*** ./src/transform/partition.ts ***!
  \************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),a=n(/*! ../data-set */"./src/data-set.ts"),s={groupBy:[],orderBy:[]};function l(t,e){e=r.assign({},s,e),t.rows=r.values(o.default(t.rows,e.groupBy,e.orderBy))}a.DataSet.registerTransform("partition",(function(t,e){e=r.assign({},s,e),t.rows=o.default(t.rows,e.groupBy,e.orderBy)})),a.DataSet.registerTransform("group",l),a.DataSet.registerTransform("groups",l)},"./src/transform/percent.ts":
/*!**********************************!*\
  !*** ./src/transform/percent.ts ***!
  \**********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=i.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),c={groupBy:[],as:"_percent"};function u(t,e){e=r.assign({},c,e);var n=l.getField(e),i=e.dimension,s=e.groupBy,u=e.as;if(!r.isString(i))throw new TypeError("Invalid dimension: must be a string!");if(r.isArray(u)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),u=u[0]),!r.isString(u))throw new TypeError("Invalid as: must be a string!");var h=t.rows,d=[],p=a.default(h,s);r.forIn(p,(function(t){var e=o.sum(t.map((function(t){return t[n]}))),s=a.default(t,[i]);r.forIn(s,(function(t){var r=o.sum(t.map((function(t){return t[n]}))),a=t[0],s=a[i];a[n]=r,a[i]=s,a[u]=0===e?0:r/e,d.push(a)}))})),t.rows=d}s.DataSet.registerTransform("percent",u)},"./src/transform/pick.ts":
/*!*******************************!*\
  !*** ./src/transform/pick.ts ***!
  \*******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../data-set */"./src/data-set.ts"),o=n(/*! ../util/option-parser */"./src/util/option-parser.ts");r.DataSet.registerTransform("pick",(function(t,e){var n=o.getFields(e,t.getColumnNames());t.rows=t.rows.map((function(t){return i.pick(t,n)}))}))},"./src/transform/proportion.ts":
/*!*************************************!*\
  !*** ./src/transform/proportion.ts ***!
  \*************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),a=n(/*! ../data-set */"./src/data-set.ts"),s=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),l={groupBy:[],as:"_proportion"};function c(t,e){e=r.assign({},l,e);var n=s.getField(e),i=e.dimension,a=e.groupBy,c=e.as;if(!r.isString(i))throw new TypeError("Invalid dimension: must be a string!");if(r.isArray(c)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),c=c[0]),!r.isString(c))throw new TypeError("Invalid as: must be a string!");var u=t.rows,h=[],d=o.default(u,a);r.forIn(d,(function(t){var e=t.length,a=o.default(t,[i]);r.forIn(a,(function(t){var r=t.length,o=t[0],a=o[i];o[n]=r,o[i]=a,o[c]=r/e,h.push(o)}))})),t.rows=h}a.DataSet.registerTransform("proportion",c)},"./src/transform/regression.ts":
/*!*************************************!*\
  !*** ./src/transform/regression.ts ***!
  \*************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importDefault(n(/*! regression */"./node_modules/_regression@2.0.1@regression/dist/regression.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),a=i.__importDefault(n(/*! ../util/get-series-values */"./src/util/get-series-values.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),c=n(/*! ../util/bandwidth */"./src/util/bandwidth.ts"),u={as:["x","y"],method:"linear",order:2,precision:2},h=["linear","exponential","logarithmic","power","polynomial"];function d(t,e){e=o.assign({},u,e);var n=l.getFields(e);if(!o.isArray(n)||2!==n.length)throw new TypeError("invalid fields: must be an array of 2 strings.");var s=i.__read(n,2),d=s[0],p=s[1],f=e.method;if(-1===h.indexOf(f))throw new TypeError("invalid method: "+f+". Must be one of "+h.join(", "));var g=t.rows.map((function(t){return[t[d],t[p]]})),m=r.default[f](g,e),v=e.extent;o.isArray(v)&&2===v.length||(v=t.range(d));var y=e.bandwidth;(!o.isNumber(y)||y<=0)&&(y=c.silverman(t.getColumn(d)));var b=a.default(v,y),x=[],w=i.__read(e.as,2),_=w[0],C=w[1];b.forEach((function(t){var e={},n=i.__read(m.predict(t),2),r=n[0],o=n[1];e[_]=r,e[C]=o,isFinite(o)&&x.push(e)})),t.rows=x}s.DataSet.registerTransform("regression",d),e.default={REGRESSION_METHODS:h}},"./src/transform/rename.ts":
/*!*********************************!*\
  !*** ./src/transform/rename.ts ***!
  \*********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../data-set */"./src/data-set.ts");function o(t,e){var n=e.map||{},r={};i.isPlainObject(n)&&i.forIn(n,(function(t,e){i.isString(t)&&i.isString(e)&&(r[e]=t)})),t.rows.forEach((function(t){i.forIn(r,(function(e,n){var i=t[n];delete t[n],t[e]=i}))}))}r.DataSet.registerTransform("rename",o),r.DataSet.registerTransform("rename-fields",o)},"./src/transform/reverse.ts":
/*!**********************************!*\
  !*** ./src/transform/reverse.ts ***!
  \**********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ../data-set */"./src/data-set.ts");i.DataSet.registerTransform("reverse",(function(t){t.rows.reverse()}))},"./src/transform/sort-by.ts":
/*!**********************************!*\
  !*** ./src/transform/sort-by.ts ***!
  \**********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r=n(/*! ../data-set */"./src/data-set.ts"),o=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),a=["ASC","DESC"];function s(t,e){var n=o.getFields(e,[t.getColumnName(0)]);if(!i.isArray(n))throw new TypeError("Invalid fields: must be an array with strings!");t.rows=i.sortBy(t.rows,n);var r=e.order;if(r&&-1===a.indexOf(r))throw new TypeError("Invalid order: "+r+" must be one of "+a.join(", "));"DESC"===r&&t.rows.reverse()}r.DataSet.registerTransform("sort-by",s),r.DataSet.registerTransform("sortBy",s)},"./src/transform/sort.ts":
/*!*******************************!*\
  !*** ./src/transform/sort.ts ***!
  \*******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ../data-set */"./src/data-set.ts");i.DataSet.registerTransform("sort",(function(t,e){var n=t.getColumnName(0);t.rows.sort(e.callback||function(t,e){return t[n]-e[n]})}))},"./src/transform/subset.ts":
/*!*********************************!*\
  !*** ./src/transform/subset.ts ***!
  \*********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! ../data-set */"./src/data-set.ts"),r=n(/*! ../util/option-parser */"./src/util/option-parser.ts");i.DataSet.registerTransform("subset",(function(t,e){var n=e.startRowIndex||0,i=e.endRowIndex||t.rows.length-1,o=r.getFields(e,t.getColumnNames());t.rows=t.getSubset(n,i,o)}))},"./src/transform/tag-cloud.ts":
/*!************************************!*\
  !*** ./src/transform/tag-cloud.ts ***!
  \************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n(/*! ../data-set */"./src/data-set.ts"),a=i.__importDefault(n(/*! ../util/tag-cloud */"./src/util/tag-cloud.ts")),s=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),l={fields:["text","value"],font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:500};function c(t,e){e=r.assign({},l,e);var n=a.default();["font","fontSize","padding","rotate","size","spiral","timeInterval"].forEach((function(t){e[t]&&n[t](e[t])}));var o=s.getFields(e),c=i.__read(o,2),u=c[0],h=c[1];if(!r.isString(u)||!r.isString(h))throw new TypeError('Invalid fields: must be an array with 2 strings (e.g. [ "text", "value" ])!');var d=t.rows.map((function(t){return t.text=t[u],t.value=t[h],t}));n.words(d),e.imageMask&&n.createMask(e.imageMask);var p=n.start(),f=p._tags,g=p._bounds;f.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var m=i.__read(e.size,2),v=m[0],y=m[1],b=p.hasImage;f.push({text:"",value:0,x:b?0:g[0].x,y:b?0:g[0].y,opacity:0}),f.push({text:"",value:0,x:b?v:g[1].x,y:b?y:g[1].y,opacity:0}),t.rows=f,t._tagCloud=p}o.DataSet.registerTransform("tag-cloud",c),o.DataSet.registerTransform("word-cloud",c)},"./src/transform/waffle.ts":
/*!*********************************!*\
  !*** ./src/transform/waffle.ts ***!
  \*********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=i.__importDefault(n(/*! ../util/partition */"./src/util/partition.ts")),s=n(/*! ../data-set */"./src/data-set.ts"),l=n(/*! ../util/option-parser */"./src/util/option-parser.ts"),c={fields:["name","value"],rows:5,size:[1,1],scale:1,groupBy:[],maxCount:1e3,gapRatio:.1,as:["x","y"]};function u(t,e){e=r.assign({},c,e);var n=l.getFields(e),s=i.__read(n,2),u=s[0],h=s[1],d=i.__read(e.as,2),p=d[0],f=d[1],g=e.groupBy,m=a.default(t.rows,g),v=r.keys(m),y=i.__read(e.size,2),b=y[0],x=y[1],w=e.maxCount,_=v.length,C=x/_,A=e.rows,I=e.gapRatio,S=[],M=e.scale,k=0,E=0;r.forIn(m,(function(t){var e=o.sum(r.map(t,(function(t){return t[h]}))),n=Math.ceil(e*M/A);e*M>w&&(M=w/e,n=Math.ceil(e*M/A)),E=b/n})),r.forIn(m,(function(t){var e=[k*C,(k+1)*C],n=e[1]-e[0],i=n*(1-I)/A,o=0,a=0;r.each(t,(function(t){for(var n=t[h],s=Math.round(n*M),l=0;l<s;l++){a===A&&(a=0,o++);var c=r.pick(t,[u,h].concat(g));c[p]=o*E+E/2,c[f]=a*i+i/2+e[0],c._wStep=E,c._hStep=i,a++,S.push(c)}})),k+=1})),t.rows=S}s.DataSet.registerTransform("waffle",u)},"./src/util/bandwidth.ts":
/*!*******************************!*\
  !*** ./src/util/bandwidth.ts ***!
  \*******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! simple-statistics */"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js");function r(t){var e=i.standardDeviation(t),n=4*Math.pow(e,5),r=3*t.length;return Math.pow(n/r,.2)}function o(t){var e=i.standardDeviation(t),n=i.interquartileRange(t);return"number"===typeof n&&(e=Math.min(e,n/1.34)),1.06*e*Math.pow(t.length,-.2)}e.silverman=r,e.nrd=o},"./src/util/get-geo-projection.ts":
/*!****************************************!*\
  !*** ./src/util/get-geo-projection.ts ***!
  \****************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importStar(n(/*! d3-geo */"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js")),a=i.__importStar(n(/*! d3-geo-projection */"./node_modules/_d3-geo-projection@2.1.2@d3-geo-projection/build/d3-geo-projection.js")),s=i.__importStar(n(/*! d3-composite-projections */"./node_modules/_d3-composite-projections@1.3.2@d3-composite-projections/d3-composite-projections.js"));e.default=function(t,e){if(void 0===e&&(e=!1),r.isFunction(t))return e?t:t();if(r.isString(t)){if(o[t])return e?o[t]:o[t]();if(a[t])return e?a[t]:a[t]();if(s[t])return e?s[t]:s[t]()}return null}},"./src/util/get-series-values.ts":
/*!***************************************!*\
  !*** ./src/util/get-series-values.ts ***!
  \***************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js");e.default=function(t,e){var n=e||1,r=i.__read(t,2),o=r[0],a=r[1],s=[],l=o;while(l<a)s.push(l),l+=n;return s.push(a),s}},"./src/util/kernel.ts":
/*!****************************!*\
  !*** ./src/util/kernel.ts ***!
  \****************************/
/*! no static exports found */function(t,e,n){"use strict";function i(t){return Math.abs(t)<=1?.5:0}function r(t){var e=1-Math.pow(Math.abs(t),3);return Math.pow(e,3)}Object.defineProperty(e,"__esModule",{value:!0}),e.default={boxcar:i,cosine:function(t){return Math.abs(t)<=1?Math.PI/4*Math.cos(Math.PI/2*t):0},epanechnikov:function(t){return Math.abs(t)<1?.75*(1-t*t):0},gaussian:function(t){return.3989422804*Math.exp(-.5*t*t)},quartic:function(t){if(Math.abs(t)<1){var e=1-t*t;return.9375*e*e}return 0},triangular:function(t){var e=Math.abs(t);return e<1?1-e:0},tricube:function(t){return Math.abs(t)<1?70/81*r(t):0},triweight:function(t){if(Math.abs(t)<1){var e=1-t*t;return 35/32*e*e*e}return 0},uniform:i}},"./src/util/option-parser.ts":
/*!***********************************!*\
  !*** ./src/util/option-parser.ts ***!
  \***********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),r="Invalid field: it must be a string!",o="Invalid fields: it must be an array!";function a(t,e){var n=t.field,o=t.fields;if(i.isString(n))return n;if(i.isArray(n))return console.warn(r),n[0];if(console.warn(r+" will try to get fields instead."),i.isString(o))return o;if(i.isArray(o)&&o.length)return o[0];if(e)return e;throw new TypeError(r)}function s(t,e){var n=t.field,r=t.fields;if(i.isArray(r))return r;if(i.isString(r))return console.warn(o),[r];if(console.warn(o+" will try to get field instead."),i.isString(n))return console.warn(o),[n];if(i.isArray(n)&&n.length)return console.warn(o),n;if(e)return e;throw new TypeError(o)}e.getField=a,e.getFields=s},"./src/util/p-by-fraction.ts":
/*!***********************************!*\
  !*** ./src/util/p-by-fraction.ts ***!
  \***********************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=1/t,n=[],i=0;i<=1;i+=e)n.push(i);return n}},"./src/util/partition.ts":
/*!*******************************!*\
  !*** ./src/util/partition.ts ***!
  \*******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=i.__importDefault(n(/*! ./simple-sort-by */"./src/util/simple-sort-by.ts"));e.default=function(t,e,n){void 0===n&&(n=[]);var i,a=t;n&&n.length&&(a=o.default(t,n)),r.isFunction(e)?i=e:r.isArray(e)?i=function(t){return"_"+e.map((function(e){return t[e]})).join("-")}:r.isString(e)&&(i=function(t){return"_"+t[e]});var s=r.groupBy(a,i);return s}},"./src/util/simple-sort-by.ts":
/*!************************************!*\
  !*** ./src/util/simple-sort-by.ts ***!
  \************************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js");function r(t,e){void 0===e&&(e=[]);var n=void 0;return i.isFunction(e)?n=e:i.isArray(e)?n=function(t,n){for(var i=0;i<e.length;i++){var r=e[i];if(t[r]<n[r])return-1;if(t[r]>n[r])return 1}return 0}:i.isString(e)&&(n=function(t,n){return t[e]<n[e]?-1:t[e]>n[e]?1:0}),t.sort(n)}e.default=r},"./src/util/tag-cloud.ts":
/*!*******************************!*\
  !*** ./src/util/tag-cloud.ts ***!
  \*******************************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=Math.PI/180,o=64,a=2048;function s(t){return t.text}function l(){return"serif"}function c(){return"normal"}function u(t){return t.value}function h(){return 90*~~(2*Math.random())}function d(){return 1}function p(t,e,n,i){if(!e.sprite){var s=t.context,l=t.ratio;s.clearRect(0,0,(o<<5)/l,a/l);var c=0,u=0,h=0,d=n.length;--i;while(++i<d){e=n[i],s.save(),s.font=e.style+" "+e.weight+" "+~~((e.size+1)/l)+"px "+e.font;var p=s.measureText(e.text+"m").width*l,f=e.size<<1;if(e.rotate){var g=Math.sin(e.rotate*r),m=Math.cos(e.rotate*r),v=p*m,y=p*g,b=f*m,x=f*g;p=Math.max(Math.abs(v+x),Math.abs(v-x))+31>>5<<5,f=~~Math.max(Math.abs(y+b),Math.abs(y-b))}else p=p+31>>5<<5;if(f>h&&(h=f),c+p>=o<<5&&(c=0,u+=h,h=0),u+f>=a)break;s.translate((c+(p>>1))/l,(u+(f>>1))/l),e.rotate&&s.rotate(e.rotate*r),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=p,e.height=f,e.xoff=c,e.yoff=u,e.x1=p>>1,e.y1=f>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,c+=p}var w=s.getImageData(0,0,(o<<5)/l,a/l).data,_=[];while(--i>=0)if(e=n[i],e.hasText){p=e.width;for(var C=p>>5,A=(f=e.y1-e.y0,0);A<f*C;A++)_[A]=0;if(c=e.xoff,null==c)return;u=e.yoff;for(var I=0,S=-1,M=0;M<f;M++){for(A=0;A<p;A++){var k=C*M+(A>>5),E=w[(u+M)*(o<<5)+(c+A)<<2]?1<<31-A%32:0;_[k]|=E,I|=E}I?S=M:(e.y0++,f--,M--,u++)}e.y1=e.y0+S,e.sprite=_.slice(0,(e.y1-e.y0)*C)}}}function f(t,e,n){n>>=5;for(var i,r=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,l=32-s,c=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),h=0;h<c;h++){i=0;for(var d=0;d<=o;d++)if((i<<l|(d<o?(i=r[h*o+d])>>>s:0))&e[u+d])return!0;u+=n}return!1}function g(t,e){var n=t[0],i=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>i.x&&(i.x=e.x+e.x1),e.y+e.y1>i.y&&(i.y=e.y+e.y1)}function m(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function v(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){var e=4,n=e*t[0]/t[1],i=0,r=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:i+=n;break;case 1:r+=e;break;case 2:i-=n;break;default:r-=e;break}return[i,r]}}function b(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function x(){return document.createElement("canvas")}function w(t){return"function"===typeof t?t:function(){return t}}var _={archimedean:v,rectangular:y};function C(){var t=[256,256],e=s,n=l,r=u,y=c,C=c,A=h,I=d,S=v,M=[],k=1/0,E=Math.random,T=x,O={};function P(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(o<<5)/e,t.height=a/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function j(e,n,i){var r,o,a,s=n.x,l=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),u=S(t),h=E()<.5?1:-1,d=-h;while(r=u(d+=h)){if(o=~~r[0],a=~~r[1],Math.min(Math.abs(o),Math.abs(a))>=c)break;if(n.x=s+o,n.y=l+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!i||!f(n,e,t[0]))&&(!i||m(n,i))){for(var p=n.sprite,g=n.width>>5,v=t[0]>>5,y=n.x-(g<<4),b=127&y,x=32-b,w=n.y1-n.y0,_=void 0,C=(n.y+n.y0)*v+(y>>5),A=0;A<w;A++){_=0;for(var I=0;I<=g;I++)e[C+I]|=_<<x|(I<g?(_=p[A*g+I])>>>b:0);C+=v}return delete n.sprite,!0}}return!1}return O.canvas=function(t){return arguments.length?(T=w(t),O):T},O.start=function(){var o=i.__read(t,2),a=o[0],s=o[1],l=P(T()),c=O.board?O.board:b((t[0]>>5)*t[1]),u=M.length,h=[],d=M.map((function(t,i){return t.text=e.call(this,t,i),t.font=n.call(this,t,i),t.style=y.call(this,t,i),t.weight=C.call(this,t,i),t.rotate=A.call(this,t,i),t.size=~~r.call(this,t,i),t.padding=I.call(this,t,i),t})).sort((function(t,e){return e.size-t.size})),f=-1,m=O.board?[{x:0,y:0},{x:a,y:s}]:null;function v(){var e=Date.now();while(Date.now()-e<k&&++f<u){var n=d[f];n.x=a*(E()+.5)>>1,n.y=s*(E()+.5)>>1,p(l,n,d,f),n.hasText&&j(c,n,m)&&(h.push(n),m?O.hasImage||g(m,n):m=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}O._tags=h,O._bounds=m}return v(),O},O.createMask=function(e){var n=document.createElement("canvas"),r=i.__read(t,2),o=r[0],a=r[1],s=o>>5,l=b((o>>5)*a);n.width=o,n.height=a;var c=n.getContext("2d");c.drawImage(e,0,0,e.width,e.height,0,0,o,a);for(var u=c.getImageData(0,0,o,a).data,h=0;h<a;h++)for(var d=0;d<o;d++){var p=s*h+(d>>5),f=h*o+d<<2,g=u[f]>=250&&u[f+1]>=250&&u[f+2]>=250,m=g?1<<31-d%32:0;l[p]|=m}O.board=l,O.hasImage=!0},O.timeInterval=function(t){return arguments.length?(k=null==t?1/0:t,O):k},O.words=function(t){return arguments.length?(M=t,O):M},O.size=function(e){return arguments.length?(t=[+e[0],+e[1]],O):t},O.font=function(t){return arguments.length?(n=w(t),O):n},O.fontStyle=function(t){return arguments.length?(y=w(t),O):y},O.fontWeight=function(t){return arguments.length?(C=w(t),O):C},O.rotate=function(t){return arguments.length?(A=w(t),O):A},O.text=function(t){return arguments.length?(e=w(t),O):e},O.spiral=function(t){return arguments.length?(S=_[t]||t,O):S},O.fontSize=function(t){return arguments.length?(r=w(t),O):r},O.padding=function(t){return arguments.length?(I=w(t),O):I},O.random=function(t){return arguments.length?(E=t,O):E},O}e.default=C},"./src/view.ts":
/*!*********************!*\
  !*** ./src/view.ts ***!
  \*********************/
/*! no static exports found */function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(/*! tslib */"./node_modules/_tslib@1.11.1@tslib/tslib.js"),r=i.__importDefault(n(/*! wolfy87-eventemitter */"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js")),o=n(/*! @antv/util */"./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js");function a(t){var e={};return o.forIn(t,(function(t,n){o.isObject(t)&&t.isView?e[n]=t:o.isArray(t)?e[n]=t.concat([]):o.isPlainObject(t)?e[n]=o.clone(t):e[n]=t})),e}var s=function(t){function e(e,n){var i=t.call(this)||this;if(i.isView=!0,i.isDataView=!0,i.watchingStates=null,i.dataType="table",i.transforms=[],i.origin=[],i.rows=[],e&&e.isDataSet?i.dataSet=e:(i.dataSet=null,n=e),i.loose=!i.dataSet,n&&(i.watchingStates=n.watchingStates),!i.loose){var r=i.watchingStates;e.on("statechange",(function(t){o.isArray(r)?r.indexOf(t)>-1&&i._reExecute():i._reExecute()}))}return i}return i.__extends(e,t),e.prototype._parseStateExpression=function(t){var e=this.dataSet;if(null!==e){var n=/^\$state\.(\w+)/.exec(t);return n?e.state[n[1]]:t}},e.prototype._preparseOptions=function(t){var e=this,n=a(t);return this.loose?n:(o.forIn(n,(function(t,i){o.isString(t)&&/^\$state\./.test(t)&&(n[i]=e._parseStateExpression(t))})),n)},e.prototype._prepareSource=function(t,n){if(this._source={source:t,options:n},n){i=this._preparseOptions(n);this.origin=e.DataSet.getConnector(i.type)(t,i,this)}else if(t instanceof e||o.isString(t))this.origin=e.DataSet.getConnector("default")(t,this.dataSet);else if(o.isArray(t))this.origin=t;else{if(!o.isObject(t)||!t.type)throw new TypeError("Invalid source");var i=this._preparseOptions(t);this.origin=e.DataSet.getConnector(i.type)(i,this)}return this.rows=o.deepMix([],this.origin),this},e.prototype.source=function(t,e){return this._prepareSource(t,e)._reExecuteTransforms(),this.trigger("change",[]),this},e.prototype.transform=function(t){return t&&t.type&&(this.transforms.push(t),this._executeTransform(t)),this},e.prototype._executeTransform=function(t){t=this._preparseOptions(t);var n=e.DataSet.getTransform(t.type);n(this,t)},e.prototype._reExecuteTransforms=function(){var t=this;this.transforms.forEach((function(e){t._executeTransform(e)}))},e.prototype.addRow=function(t){this.rows.push(t)},e.prototype.removeRow=function(t){this.rows.splice(t,1)},e.prototype.updateRow=function(t,e){o.assign(this.rows[t],e)},e.prototype.findRows=function(t){return this.rows.filter((function(e){return o.isMatch(e,t)}))},e.prototype.findRow=function(t){return o.find(this.rows,t)},e.prototype.getColumnNames=function(){var t=this.rows[0];return t?o.keys(t):[]},e.prototype.getColumnName=function(t){return this.getColumnNames()[t]},e.prototype.getColumnIndex=function(t){var e=this.getColumnNames();return e.indexOf(t)},e.prototype.getColumn=function(t){return this.rows.map((function(e){return e[t]}))},e.prototype.getColumnData=function(t){return this.getColumn(t)},e.prototype.getSubset=function(t,e,n){for(var i=[],r=t;r<=e;r++)i.push(o.pick(this.rows[r],n));return i},e.prototype.toString=function(t){return void 0===t&&(t=!1),t?JSON.stringify(this.rows,null,2):JSON.stringify(this.rows)},e.prototype._reExecute=function(){var t=this._source,e=t.source,n=t.options;this._prepareSource(e,n),this._reExecuteTransforms(),this.trigger("change",[])},e}(r.default);e.View=s}})}))},"71f5":function(t,e,n){"use strict";function i(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;return{x:n-r,y:i-o,width:2*r,height:2*o}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},7212:function(t,e,n){
/*!
 * vue-awesome-swiper v4.1.1
 * Copyright (c) Surmon. All rights reserved.
 * Released under the MIT License.
 * Surmon <https://github.com/surmon-china>
 */
(function(t,i){i(e,n("4da1"),n("a026"))})(0,(function(t,e,n){"use strict";var i;e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n["default"]:n,function(t){t["SwiperComponent"]="Swiper",t["SwiperSlideComponent"]="SwiperSlide",t["SwiperDirective"]="swiper",t["SwiperInstance"]="$swiper"}(i||(i={}));var r,o,a=Object.freeze({containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide"});(function(t){t["Ready"]="ready",t["ClickSlide"]="clickSlide"})(r||(r={})),function(t){t["AutoUpdate"]="autoUpdate",t["AutoDestroy"]="autoDestroy",t["DeleteInstanceOnDestroy"]="deleteInstanceOnDestroy",t["CleanupStylesOnDestroy"]="cleanupStylesOnDestroy"}(o||(o={}));var s=["init","beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize","observerUpdate","beforeLoopFix","loopFix"];
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function l(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var c,u=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},h=function(t,e,n){var i,o,a;if(t&&!t.destroyed){var s=(null===(i=e.composedPath)||void 0===i?void 0:i.call(e))||e.path;if((null===e||void 0===e?void 0:e.target)&&s){var l=Array.from(t.slides),c=Array.from(s);if(l.includes(e.target)||c.some((function(t){return l.includes(t)}))){var h=t.clickedIndex,d=Number(null===(a=null===(o=t.clickedSlide)||void 0===o?void 0:o.dataset)||void 0===a?void 0:a.swiperSlideIndex),p=Number.isInteger(d)?d:null;n(r.ClickSlide,h,p),n(u(r.ClickSlide),h,p)}}}},d=function(t,e){s.forEach((function(n){t.on(n,(function(){for(var t=arguments,i=[],r=0;r<arguments.length;r++)i[r]=t[r];e.apply(void 0,l([n],i));var o=u(n);o!==n&&e.apply(void 0,l([o],i))}))}))},p="instanceName";function f(t,e){var n=function(t,e){var n,i,r,o,a=null===(i=null===(n=t.data)||void 0===n?void 0:n.attrs)||void 0===i?void 0:i[e];return void 0!==a?a:null===(o=null===(r=t.data)||void 0===r?void 0:r.attrs)||void 0===o?void 0:o[u(e)]},s=function(t,e,r){return e.arg||n(r,p)||t.id||i.SwiperInstance},l=function(t,e,n){var i=s(t,e,n);return n.context[i]||null},c=function(t){return t.value||e},f=function(t){return[!0,void 0,null,""].includes(t)},g=function(t){var e,n,i=(null===(e=t.data)||void 0===e?void 0:e.on)||(null===(n=t.componentOptions)||void 0===n?void 0:n.listeners);return function(t){for(var e,n=arguments,r=[],o=1;o<arguments.length;o++)r[o-1]=n[o];var a=null===(e=i)||void 0===e?void 0:e[t];a&&a.fns.apply(a,r)}};return{bind:function(t,e,n){-1===t.className.indexOf(a.containerClass)&&(t.className+=(t.className?" ":"")+a.containerClass),t.addEventListener("click",(function(i){var r=g(n),o=l(t,e,n);h(o,i,r)}))},inserted:function(e,n,i){var o=i.context,a=c(n),l=s(e,n,i),u=g(i),h=o,p=null===h||void 0===h?void 0:h[l];p&&!p.destroyed||(p=new t(e,a),h[l]=p,d(p,u),u(r.Ready,p))},componentUpdated:function(t,e,i){var r,a,s,u,h,d,p,g,m,v,y,b,x=n(i,o.AutoUpdate);if(f(x)){var w=l(t,e,i);if(w){var _=c(e),C=_.loop;C&&(null===(a=null===(r=w)||void 0===r?void 0:r.loopDestroy)||void 0===a||a.call(r)),null===(s=null===w||void 0===w?void 0:w.update)||void 0===s||s.call(w),null===(h=null===(u=w.navigation)||void 0===u?void 0:u.update)||void 0===h||h.call(u),null===(p=null===(d=w.pagination)||void 0===d?void 0:d.render)||void 0===p||p.call(d),null===(m=null===(g=w.pagination)||void 0===g?void 0:g.update)||void 0===m||m.call(g),C&&(null===(y=null===(v=w)||void 0===v?void 0:v.loopCreate)||void 0===y||y.call(v),null===(b=null===w||void 0===w?void 0:w.update)||void 0===b||b.call(w))}}},unbind:function(t,e,i){var r,a=n(i,o.AutoDestroy);if(f(a)){var s=l(t,e,i);s&&s.initialized&&(null===(r=null===s||void 0===s?void 0:s.destroy)||void 0===r||r.call(s,f(n(i,o.DeleteInstanceOnDestroy)),f(n(i,o.CleanupStylesOnDestroy))))}}}}function g(t){var e;return n.extend({name:i.SwiperComponent,props:(e={defaultOptions:{type:Object,required:!1,default:function(){return{}}},options:{type:Object,required:!1}},e[o.AutoUpdate]={type:Boolean,default:!0},e[o.AutoDestroy]={type:Boolean,default:!0},e[o.DeleteInstanceOnDestroy]={type:Boolean,required:!1,default:!0},e[o.CleanupStylesOnDestroy]={type:Boolean,required:!1,default:!0},e),data:function(){var t;return t={},t[i.SwiperInstance]=null,t},computed:{swiperInstance:{cache:!1,set:function(t){this[i.SwiperInstance]=t},get:function(){return this[i.SwiperInstance]}},swiperOptions:function(){return this.options||this.defaultOptions},wrapperClass:function(){return this.swiperOptions.wrapperClass||a.wrapperClass}},methods:{handleSwiperClick:function(t){h(this.swiperInstance,t,this.$emit.bind(this))},autoReLoopSwiper:function(){var t,e;if(this.swiperInstance&&this.swiperOptions.loop){var n=this.swiperInstance;null===(t=null===n||void 0===n?void 0:n.loopDestroy)||void 0===t||t.call(n),null===(e=null===n||void 0===n?void 0:n.loopCreate)||void 0===e||e.call(n)}},updateSwiper:function(){var t,e,n,i,r,a,s,l;this[o.AutoUpdate]&&this.swiperInstance&&(this.autoReLoopSwiper(),null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.update)||void 0===e||e.call(t),null===(i=null===(n=this.swiperInstance.navigation)||void 0===n?void 0:n.update)||void 0===i||i.call(n),null===(a=null===(r=this.swiperInstance.pagination)||void 0===r?void 0:r.render)||void 0===a||a.call(r),null===(l=null===(s=this.swiperInstance.pagination)||void 0===s?void 0:s.update)||void 0===l||l.call(s))},destroySwiper:function(){var t,e;this[o.AutoDestroy]&&this.swiperInstance&&this.swiperInstance.initialized&&(null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.destroy)||void 0===e||e.call(t,this[o.DeleteInstanceOnDestroy],this[o.CleanupStylesOnDestroy]))},initSwiper:function(){this.swiperInstance=new t(this.$el,this.swiperOptions),d(this.swiperInstance,this.$emit.bind(this)),this.$emit(r.Ready,this.swiperInstance)}},mounted:function(){this.swiperInstance||this.initSwiper()},activated:function(){this.updateSwiper()},updated:function(){this.updateSwiper()},beforeDestroy:function(){this.$nextTick(this.destroySwiper)},render:function(t){return t("div",{staticClass:a.containerClass,on:{click:this.handleSwiperClick}},[this.$slots[c.ParallaxBg],t("div",{class:this.wrapperClass},this.$slots.default),this.$slots[c.Pagination],this.$slots[c.PrevButton],this.$slots[c.NextButton],this.$slots[c.Scrollbar]])}})}(function(t){t["ParallaxBg"]="parallax-bg",t["Pagination"]="pagination",t["Scrollbar"]="scrollbar",t["PrevButton"]="button-prev",t["NextButton"]="button-next"})(c||(c={}));var m=n.extend({name:i.SwiperSlideComponent,computed:{slideClass:function(){var t,e;return(null===(e=null===(t=this.$parent)||void 0===t?void 0:t.swiperOptions)||void 0===e?void 0:e.slideClass)||a.slideClass}},methods:{update:function(){var t,e=this.$parent;e[o.AutoUpdate]&&(null===(t=null===e||void 0===e?void 0:e.swiperInstance)||void 0===t||t.update())}},mounted:function(){this.update()},updated:function(){this.update()},render:function(t){return t("div",{class:this.slideClass},this.$slots.default)}}),v=function(t){var e=function(n,r){if(!e.installed){var o=g(t);r&&(o.options.props.defaultOptions.default=function(){return r}),n.component(i.SwiperComponent,o),n.component(i.SwiperSlideComponent,m),n.directive(i.SwiperDirective,f(t,r)),e.installed=!0}};return e};function y(t){var e;return e={version:"4.1.1",install:v(t),directive:f(t)},e[i.SwiperComponent]=g(t),e[i.SwiperSlideComponent]=m,e}var b=y(e),x=b.version,w=b.install,_=b.directive,C=b.Swiper,A=b.SwiperSlide;t.Swiper=C,t.SwiperSlide=A,t.default=b,t.directive=_,t.install=w,t.version=x,Object.defineProperty(t,"__esModule",{value:!0})}))},"72f7":function(t,e,n){"use strict";var i=n("ebb5").exportTypedArrayMethod,r=n("d039"),o=n("da84"),a=n("e330"),s=o.Uint8Array,l=s&&s.prototype||{},c=[].toString,u=a([].join);r((function(){c.call({})}))&&(c=function(){return u(this)});var h=l.toString!=c;i("toString",c,h)},"72fb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("01f9"),r=n("9ab4f");function o(t,e){var n;if(t)if(i.default(t)){for(var o=0,a=t.length;o<a;o++)if(n=e(t[o],o),!1===n)break}else if(r.default(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}e.default=o},7326:function(t,e,n){"use strict";n.d(e,"d",(function(){return w})),n.d(e,"b",(function(){return _})),n.d(e,"e",(function(){return C})),n.d(e,"f",(function(){return A})),n.d(e,"l",(function(){return I})),n.d(e,"j",(function(){return S}));var i=n("28f9"),r=n.n(i);n.d(e,"i",(function(){return r.a}));var o=n("61d8"),a=n.n(o);n.d(e,"k",(function(){return a.a}));var s=n("2047"),l=n.n(s);n.d(e,"h",(function(){return l.a}));var c=n("01f9"),u=n.n(c);n.d(e,"g",(function(){return u.a}));var h=n("72fb"),d=n.n(h);n.d(e,"c",(function(){return d.a}));var p=n("3753"),f=n.n(p);n.d(e,"o",(function(){return f.a}));var g=n("df01"),m=n.n(g);n.d(e,"m",(function(){return m.a}));n("29f4");var v=n("f105"),y=n.n(v);n.d(e,"n",(function(){return y.a}));var b=n("83be"),x=n.n(b);function w(){return window?window.devicePixelRatio:1}function _(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function C(t,e,n,i,r,o){return r>=t&&r<=t+n&&o>=e&&o<=e+i}function A(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function I(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function S(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"a",(function(){return x.a}))},"735e":function(t,e,n){"use strict";var i=n("ebb5"),r=n("81d5"),o=n("f495"),a=n("f5df"),s=n("c65b"),l=n("e330"),c=n("d039"),u=i.aTypedArray,h=i.exportTypedArrayMethod,d=l("".slice),p=c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));h("fill",(function(t){var e=arguments.length;u(this);var n="Big"===d(a(this),0,3)?o(t):+t;return s(r,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),p)},"739e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("28f9");e.default=function(t){return i.default(t)?"":t.toString()}},"73cc":function(t,e,n){t.exports=n.p+"assets/img/earth_bg.67485ff1.png"},"744a":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("20a4");const r=(()=>{const t="function"===typeof Promise&&"function"===typeof Promise.resolve;return t?t=>Promise.resolve().then(t):(t,e)=>e(t,0)})(),o=i["a"].WebSocket||i["a"].MozWebSocket,a=!0,s="arraybuffer"},7452:function(t,e,n){},"74a0":function(t,e,n){"use strict";
/*!
 * escape-html
 * Copyright(c) 2012-2013 TJ Holowaychuk
 * Copyright(c) 2015 Andreas Lubbe
 * Copyright(c) 2015 Tiancheng "Timothy" Gu
 * MIT Licensed
 */var i=/["'&<>]/;function r(t){var e,n=""+t,r=i.exec(n);if(!r)return n;var o="",a=0,s=0;for(a=r.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#39;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}s!==a&&(o+=n.substring(s,a)),s=a+1,o+=e}return s!==a?o+n.substring(s,a):o}t.exports=r},"74e8":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("c65b"),a=n("83ab"),s=n("8aa7"),l=n("ebb5"),c=n("621a"),u=n("19aa"),h=n("5c6c"),d=n("9112"),p=n("eac5"),f=n("50c4"),g=n("0b25"),m=n("182d"),v=n("a04b"),y=n("1a2d"),b=n("f5df"),x=n("861d"),w=n("d9b5"),_=n("7c73"),C=n("3a9b"),A=n("d2bb"),I=n("241c").f,S=n("a078"),M=n("b727").forEach,k=n("2626"),E=n("edd0"),T=n("9bf2"),O=n("06cf"),P=n("69f3"),j=n("7156"),L=P.get,D=P.set,R=P.enforce,B=T.f,N=O.f,F=Math.round,z=r.RangeError,V=c.ArrayBuffer,G=V.prototype,H=c.DataView,W=l.NATIVE_ARRAY_BUFFER_VIEWS,U=l.TYPED_ARRAY_TAG,Z=l.TypedArray,Y=l.TypedArrayPrototype,X=l.aTypedArrayConstructor,q=l.isTypedArray,K="BYTES_PER_ELEMENT",Q="Wrong length",J=function(t,e){X(t);var n=0,i=e.length,r=new t(i);while(i>n)r[n]=e[n++];return r},$=function(t,e){E(t,e,{configurable:!0,get:function(){return L(this)[e]}})},tt=function(t){var e;return C(G,t)||"ArrayBuffer"==(e=b(t))||"SharedArrayBuffer"==e},et=function(t,e){return q(t)&&!w(e)&&e in t&&p(+e)&&e>=0},nt=function(t,e){return e=v(e),et(t,e)?h(2,t[e]):N(t,e)},it=function(t,e,n){return e=v(e),!(et(t,e)&&x(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};a?(W||(O.f=nt,T.f=it,$(Y,"buffer"),$(Y,"byteOffset"),$(Y,"byteLength"),$(Y,"length")),i({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:nt,defineProperty:it}),t.exports=function(t,e,n){var a=t.match(/\d+/)[0]/8,l=t+(n?"Clamped":"")+"Array",c="get"+t,h="set"+t,p=r[l],v=p,y=v&&v.prototype,b={},w=function(t,e){var n=L(t);return n.view[c](e*a+n.byteOffset,!0)},C=function(t,e,i){var r=L(t);n&&(i=(i=F(i))<0?0:i>255?255:255&i),r.view[h](e*a+r.byteOffset,i,!0)},E=function(t,e){B(t,e,{get:function(){return w(this,e)},set:function(t){return C(this,e,t)},enumerable:!0})};W?s&&(v=e((function(t,e,n,i){return u(t,y),j(function(){return x(e)?tt(e)?void 0!==i?new p(e,m(n,a),i):void 0!==n?new p(e,m(n,a)):new p(e):q(e)?J(v,e):o(S,v,e):new p(g(e))}(),t,v)})),A&&A(v,Z),M(I(p),(function(t){t in v||d(v,t,p[t])})),v.prototype=y):(v=e((function(t,e,n,i){u(t,y);var r,s,l,c=0,h=0;if(x(e)){if(!tt(e))return q(e)?J(v,e):o(S,v,e);r=e,h=m(n,a);var d=e.byteLength;if(void 0===i){if(d%a)throw z(Q);if(s=d-h,s<0)throw z(Q)}else if(s=f(i)*a,s+h>d)throw z(Q);l=s/a}else l=g(e),s=l*a,r=new V(s);D(t,{buffer:r,byteOffset:h,byteLength:s,length:l,view:new H(r)});while(c<l)E(t,c++)})),A&&A(v,Z),y=v.prototype=_(Y)),y.constructor!==v&&d(y,"constructor",v),R(y).TypedArrayConstructor=v,U&&d(y,U,l);var T=v!=p;b[l]=v,i({global:!0,constructor:!0,forced:T,sham:!W},b),K in v||d(v,K,a),K in y||d(y,K,a),k(l)}):t.exports=function(){}},"74f4":function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return m})),n.d(e,"c",(function(){return v}));var i,r,o=0,a=0,s=0,l=1e3,c=0,u=0,h=0,d="object"===typeof performance&&performance.now?performance:Date,p="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return u||(p(g),u=d.now()+h)}function g(){u=0}function m(){this._call=this._time=this._next=null}function v(t,e,n){var i=new m;return i.restart(t,e,n),i}function y(){f(),++o;var t,e=i;while(e)(t=u-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function b(){u=(c=d.now())+h,o=a=0;try{y()}finally{o=0,w(),u=0}}function x(){var t=d.now(),e=t-c;e>l&&(h-=e,c=t)}function w(){var t,e,n=i,o=1/0;while(n)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);r=t,_(o)}function _(t){if(!o){a&&(a=clearTimeout(a));var e=t-u;e>24?(t<1/0&&(a=setTimeout(b,t-d.now()-h)),s&&(s=clearInterval(s))):(s||(c=d.now(),s=setInterval(x,l)),o=1,p(b))}}m.prototype=v.prototype={constructor:m,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?f():+n)+(null==e?0:+e),this._next||r===this||(r?r._next=this:i=this,r=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},7699:function(t,e,n){},7791:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dialog-title"},[n("div",{staticClass:"ip"},[t._v(t._s(t.showAllData.ip))]),n("div",{staticClass:"time-line"},[n("div",{staticClass:"time"},[t._m(0),n("span",{staticStyle:{"font-size":"14px"}},[t._v(" "+t._s(t.dayjs(t.showAllData.time).format("YYYY-MM-DD HH:mm:ss"))+" ")])]),"quake_service"===t.selectIndex&&t.showAllData.service&&t.showAllData.service.name?n("div",{staticClass:"right-content"},[t.showAllData.port?n("div",{staticClass:"port"},[n("svg-icon",{attrs:{"icon-class":"port"}}),t._v(" "+t._s(t.showAllData.port)+" ")],1):t._e(),t.showAllData.service&&t.showAllData.service.name?n("div",{staticClass:"port"},[t._v(" "+t._s(t.showAllData.service.name)+" ")]):t._e()]):t._e(),t.showAllData.service&&t.showAllData.service.product?n("el-tag",{staticClass:"tag",attrs:{size:"normal"}},[n("span",[t._v(t._s(t.showAllData.service.product))])]):t._e()],1)])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"time-bg"},[n("i",{staticClass:"el-icon-time"})])}],o={props:{showAllData:{type:Object,default:function(){}},selectIndex:{type:String,default:""}},data:function(){return{}}},a=o,s=(n("baa7"),n("2877")),l=Object(s["a"])(a,i,r,!1,null,"099f0598",null);e["a"]=l.exports},"77a7":function(t,e){var n=Array,i=Math.abs,r=Math.pow,o=Math.floor,a=Math.log,s=Math.LN2,l=function(t,e,l){var c,u,h,d=n(l),p=8*l-e-1,f=(1<<p)-1,g=f>>1,m=23===e?r(2,-24)-r(2,-77):0,v=t<0||0===t&&1/t<0?1:0,y=0;t=i(t),t!=t||t===1/0?(u=t!=t?1:0,c=f):(c=o(a(t)/s),h=r(2,-c),t*h<1&&(c--,h*=2),t+=c+g>=1?m/h:m*r(2,1-g),t*h>=2&&(c++,h/=2),c+g>=f?(u=0,c=f):c+g>=1?(u=(t*h-1)*r(2,e),c+=g):(u=t*r(2,g-1)*r(2,e),c=0));while(e>=8)d[y++]=255&u,u/=256,e-=8;c=c<<e|u,p+=e;while(p>0)d[y++]=255&c,c/=256,p-=8;return d[--y]|=128*v,d},c=function(t,e){var n,i=t.length,o=8*i-e-1,a=(1<<o)-1,s=a>>1,l=o-7,c=i-1,u=t[c--],h=127&u;u>>=7;while(l>0)h=256*h+t[c--],l-=8;n=h&(1<<-l)-1,h>>=-l,l+=e;while(l>0)n=256*n+t[c--],l-=8;if(0===h)h=1-s;else{if(h===a)return n?NaN:u?-1/0:1/0;n+=r(2,e),h-=s}return(u?-1:1)*n*r(2,h-e)};t.exports={pack:l,unpack:c}},"77d9":function(t,e,n){"use strict";var i=n("2687"),r=n.n(i);r.a},"78b3":function(t,e,n){"use strict";var i=n("26cb"),r=n.n(i);r.a},"79a0":function(t,e,n){"use strict";var i=n("54508"),r=n.n(i);r.a},"79cf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("b455");function r(t){for(var e=t.attr(),n=e.points,r=[],o=[],a=0;a<n.length;a++){var s=n[a];r.push(s[0]),o.push(s[1])}return i.getBBoxByArray(r,o)}e.default=r},"7a47":function(t,e,n){t.exports=n.p+"assets/img/yamaxun.897f90e9.png"},"7b46":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return f}));var i=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i},r=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),o=function(){function e(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}return e}(),a=function(){function t(t,e,n,i){this.name=t,this.version=e,this.os=n,this.bot=i,this.type="bot-device"}return t}(),s=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),l=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),c=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,u=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,h=3,d=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",c]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function f(t){return t?m(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!==typeof navigator?m(navigator.userAgent):y()}function g(t){return""!==t&&d.reduce((function(e,n){var i=n[0],r=n[1];if(e)return e;var o=r.exec(t);return!!o&&[i,o]}),!1)}function m(t){var e=g(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var l=o[1]&&o[1].split(/[._]/).slice(0,3);l?l.length<h&&(l=i(l,b(h-l.length))):l=[];var c=l.join("."),d=v(t),p=u.exec(t);return p&&p[1]?new a(n,c,d,p[1]):new r(n,c,d)}function v(t){for(var e=0,n=p.length;e<n;e++){var i=p[e],r=i[0],o=i[1],a=o.exec(t);if(a)return r}return null}function y(){var e="undefined"!==typeof t&&t.version;return e?new o(t.version.slice(1)):null}function b(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}}).call(this,n("4362"))},"7bcc":function(t,e){function n(){var t={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return t}function i(t,e,n){}function r(t,e,n){}var o=/javascript\s*\:/gim;function a(t,e){return o.test(e)?"":e}e.whiteList=n(),e.getDefaultWhiteList=n,e.onAttr=i,e.onIgnoreAttr=r,e.safeAttrValue=a},"7d16":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("b455"),r=n("c3e2"),o=n("493b");function a(t,e,n,i,r){var o=1-r;return o*o*o*t+3*e*r*o*o+3*n*r*r*o+i*r*r*r}function s(t,e,n,i,r){var o=1-r;return 3*(o*o*(e-t)+2*o*r*(n-e)+r*r*(i-n))}function l(t,e,n,r){var o,a,s,l=-3*t+9*e-9*n+3*r,c=6*t-12*e+6*n,u=3*e-3*t,h=[];if(i.isNumberEqual(l,0))i.isNumberEqual(c,0)||(o=-u/c,o>=0&&o<=1&&h.push(o));else{var d=c*c-4*l*u;i.isNumberEqual(d,0)?h.push(-c/(2*l)):d>0&&(s=Math.sqrt(d),o=(-c+s)/(2*l),a=(-c-s)/(2*l),o>=0&&o<=1&&h.push(o),a>=0&&a<=1&&h.push(a))}return h}function c(t,e,n,i,o,s,l,c,u){var h=a(t,n,o,l,u),d=a(e,i,s,c,u),p=r.default.pointAt(t,e,n,i,u),f=r.default.pointAt(n,i,o,s,u),g=r.default.pointAt(o,s,l,c,u),m=r.default.pointAt(p.x,p.y,f.x,f.y,u),v=r.default.pointAt(f.x,f.y,g.x,g.y,u);return[[t,e,p.x,p.y,m.x,m.y,h,d],[h,d,v.x,v.y,g.x,g.y,l,c]]}function u(t,e,n,i,r,a,s,l,h){if(0===h)return o.snapLength([t,n,r,s],[e,i,a,l]);var d=c(t,e,n,i,r,a,s,l,.5),p=d[0],f=d[1];return p.push(h-1),f.push(h-1),u.apply(null,p)+u.apply(null,f)}e.default={extrema:l,box:function(t,e,n,r,o,s,c,u){for(var h=[t,c],d=[e,u],p=l(t,n,o,c),f=l(e,r,s,u),g=0;g<p.length;g++)h.push(a(t,n,o,c,p[g]));for(g=0;g<f.length;g++)d.push(a(e,r,s,u,f[g]));return i.getBBoxByArray(h,d)},length:function(t,e,n,i,r,o,a,s){return u(t,e,n,i,r,o,a,s,3)},nearestPoint:function(t,e,n,i,r,s,l,c,u,h,d){return o.nearestPoint([t,n,r,l],[e,i,s,c],u,h,a,d)},pointDistance:function(t,e,n,r,o,a,s,l,c,u,h){var d=this.nearestPoint(t,e,n,r,o,a,s,l,c,u,h);return i.distance(d.x,d.y,c,u)},interpolationAt:a,pointAt:function(t,e,n,i,r,o,s,l,c){return{x:a(t,n,r,s,c),y:a(e,i,o,l,c)}},divide:function(t,e,n,i,r,o,a,s,l){return c(t,e,n,i,r,o,a,s,l)},tangentAngle:function(t,e,n,r,o,a,l,c,u){var h=s(t,n,o,l,u),d=s(e,r,a,c,u);return i.piMod(Math.atan2(d,h))}}},"7ec0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("b455");function r(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,i){return{x:t-n,y:e-i,width:2*n,height:2*i}},length:function(t,e,n,i){return Math.PI*(3*(n+i)-Math.sqrt((3*n+i)*(n+3*i)))},nearestPoint:function(t,e,n,i,o,a){var s=n,l=i;if(0===s||0===l)return{x:t,y:e};for(var c,u,h=o-t,d=a-e,p=Math.abs(h),f=Math.abs(d),g=s*s,m=l*l,v=Math.PI/4,y=0;y<4;y++){c=s*Math.cos(v),u=l*Math.sin(v);var b=(g-m)*Math.pow(Math.cos(v),3)/s,x=(m-g)*Math.pow(Math.sin(v),3)/l,w=c-b,_=u-x,C=p-b,A=f-x,I=Math.hypot(_,w),S=Math.hypot(A,C),M=I*Math.asin((w*A-_*C)/(I*S)),k=M/Math.sqrt(g+m-c*c-u*u);v+=k,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+r(c,h),y:e+r(u,d)}},pointDistance:function(t,e,n,r,o,a){var s=this.nearestPoint(t,e,n,r,o,a);return i.distance(s.x,s.y,o,a)},pointAt:function(t,e,n,i,r){var o=2*Math.PI*r;return{x:t+n*Math.cos(o),y:e+i*Math.sin(o)}},tangentAngle:function(t,e,n,r,o){var a=2*Math.PI*o,s=Math.atan2(r*Math.cos(a),-n*Math.sin(a));return i.piMod(s)}}},"7eda":function(t,e,n){},"7fa2":function(t,e,n){"use strict";var i="*",r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._events[t]||[],a=this._events[i]||[],s=function(i){for(var r=i.length,o=0;o<r;o++)if(i[o]){var a=i[o],s=a.callback,l=a.once;l&&(i.splice(o,1),0===i.length&&delete e._events[t],r--,o--),s.apply(e,n)}};s(o),s(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],i=n.length,r=0;r<i;r++)n[r].callback===e&&(n.splice(r,1),i--,r--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e["a"]=r},"80a4":function(t,e,n){"use strict";n.r(e),n.d(e,"BooleanController",(function(){return r})),n.d(e,"ColorController",(function(){return d})),n.d(e,"Controller",(function(){return i})),n.d(e,"FunctionController",(function(){return p})),n.d(e,"GUI",(function(){return x})),n.d(e,"NumberController",(function(){return f})),n.d(e,"OptionController",(function(){return g})),n.d(e,"StringController",(function(){return m}));
/**
 * lil-gui
 * https://lil-gui.georgealways.com
 * @version 0.17.0
 * @author George Michael Brower
 * @license MIT
 */
class i{constructor(t,e,n,r,o="div"){this.parent=t,this.object=e,this.property=n,this._disabled=!1,this._hidden=!1,this.initialValue=this.getValue(),this.domElement=document.createElement("div"),this.domElement.classList.add("controller"),this.domElement.classList.add(r),this.$name=document.createElement("div"),this.$name.classList.add("name"),i.nextNameID=i.nextNameID||0,this.$name.id=`lil-gui-name-${++i.nextNameID}`,this.$widget=document.createElement(o),this.$widget.classList.add("widget"),this.$disable=this.$widget,this.domElement.appendChild(this.$name),this.domElement.appendChild(this.$widget),this.parent.children.push(this),this.parent.controllers.push(this),this.parent.$children.appendChild(this.domElement),this._listenCallback=this._listenCallback.bind(this),this.name(n)}name(t){return this._name=t,this.$name.innerHTML=t,this}onChange(t){return this._onChange=t,this}_callOnChange(){this.parent._callOnChange(this),void 0!==this._onChange&&this._onChange.call(this,this.getValue()),this._changed=!0}onFinishChange(t){return this._onFinishChange=t,this}_callOnFinishChange(){this._changed&&(this.parent._callOnFinishChange(this),void 0!==this._onFinishChange&&this._onFinishChange.call(this,this.getValue())),this._changed=!1}reset(){return this.setValue(this.initialValue),this._callOnFinishChange(),this}enable(t=!0){return this.disable(!t)}disable(t=!0){return t===this._disabled?this:(this._disabled=t,this.domElement.classList.toggle("disabled",t),this.$disable.toggleAttribute("disabled",t),this)}show(t=!0){return this._hidden=!t,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}options(t){const e=this.parent.add(this.object,this.property,t);return e.name(this._name),this.destroy(),e}min(t){return this}max(t){return this}step(t){return this}decimals(t){return this}listen(t=!0){return this._listening=t,void 0!==this._listenCallbackID&&(cancelAnimationFrame(this._listenCallbackID),this._listenCallbackID=void 0),this._listening&&this._listenCallback(),this}_listenCallback(){this._listenCallbackID=requestAnimationFrame(this._listenCallback);const t=this.save();t!==this._listenPrevValue&&this.updateDisplay(),this._listenPrevValue=t}getValue(){return this.object[this.property]}setValue(t){return this.object[this.property]=t,this._callOnChange(),this.updateDisplay(),this}updateDisplay(){return this}load(t){return this.setValue(t),this._callOnFinishChange(),this}save(){return this.getValue()}destroy(){this.listen(!1),this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.controllers.splice(this.parent.controllers.indexOf(this),1),this.parent.$children.removeChild(this.domElement)}}class r extends i{constructor(t,e,n){super(t,e,n,"boolean","label"),this.$input=document.createElement("input"),this.$input.setAttribute("type","checkbox"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$input.addEventListener("change",()=>{this.setValue(this.$input.checked),this._callOnFinishChange()}),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.checked=this.getValue(),this}}function o(t){let e,n;return(e=t.match(/(#|0x)?([a-f0-9]{6})/i))?n=e[2]:(e=t.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/))?n=parseInt(e[1]).toString(16).padStart(2,0)+parseInt(e[2]).toString(16).padStart(2,0)+parseInt(e[3]).toString(16).padStart(2,0):(e=t.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i))&&(n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),!!n&&"#"+n}const a={isPrimitive:!0,match:t=>"string"===typeof t,fromHexString:o,toHexString:o},s={isPrimitive:!0,match:t=>"number"===typeof t,fromHexString:t=>parseInt(t.substring(1),16),toHexString:t=>"#"+t.toString(16).padStart(6,0)},l={isPrimitive:!1,match:Array.isArray,fromHexString(t,e,n=1){const i=s.fromHexString(t);e[0]=(i>>16&255)/255*n,e[1]=(i>>8&255)/255*n,e[2]=(255&i)/255*n},toHexString([t,e,n],i=1){i=255/i;const r=t*i<<16^e*i<<8^n*i<<0;return s.toHexString(r)}},c={isPrimitive:!1,match:t=>Object(t)===t,fromHexString(t,e,n=1){const i=s.fromHexString(t);e.r=(i>>16&255)/255*n,e.g=(i>>8&255)/255*n,e.b=(255&i)/255*n},toHexString({r:t,g:e,b:n},i=1){i=255/i;const r=t*i<<16^e*i<<8^n*i<<0;return s.toHexString(r)}},u=[a,s,l,c];function h(t){return u.find(e=>e.match(t))}class d extends i{constructor(t,e,n,i){super(t,e,n,"color"),this.$input=document.createElement("input"),this.$input.setAttribute("type","color"),this.$input.setAttribute("tabindex",-1),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$text=document.createElement("input"),this.$text.setAttribute("type","text"),this.$text.setAttribute("spellcheck","false"),this.$text.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$display.appendChild(this.$input),this.$widget.appendChild(this.$display),this.$widget.appendChild(this.$text),this._format=h(this.initialValue),this._rgbScale=i,this._initialValueHexString=this.save(),this._textFocused=!1,this.$input.addEventListener("input",()=>{this._setValueFromHexString(this.$input.value)}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$text.addEventListener("input",()=>{const t=o(this.$text.value);t&&this._setValueFromHexString(t)}),this.$text.addEventListener("focus",()=>{this._textFocused=!0,this.$text.select()}),this.$text.addEventListener("blur",()=>{this._textFocused=!1,this.updateDisplay(),this._callOnFinishChange()}),this.$disable=this.$text,this.updateDisplay()}reset(){return this._setValueFromHexString(this._initialValueHexString),this}_setValueFromHexString(t){if(this._format.isPrimitive){const e=this._format.fromHexString(t);this.setValue(e)}else this._format.fromHexString(t,this.getValue(),this._rgbScale),this._callOnChange(),this.updateDisplay()}save(){return this._format.toHexString(this.getValue(),this._rgbScale)}load(t){return this._setValueFromHexString(t),this._callOnFinishChange(),this}updateDisplay(){return this.$input.value=this._format.toHexString(this.getValue(),this._rgbScale),this._textFocused||(this.$text.value=this.$input.value.substring(1)),this.$display.style.backgroundColor=this.$input.value,this}}class p extends i{constructor(t,e,n){super(t,e,n,"function"),this.$button=document.createElement("button"),this.$button.appendChild(this.$name),this.$widget.appendChild(this.$button),this.$button.addEventListener("click",t=>{t.preventDefault(),this.getValue().call(this.object)}),this.$button.addEventListener("touchstart",()=>{},{passive:!0}),this.$disable=this.$button}}class f extends i{constructor(t,e,n,i,r,o){super(t,e,n,"number"),this._initInput(),this.min(i),this.max(r);const a=void 0!==o;this.step(a?o:this._getImplicitStep(),a),this.updateDisplay()}decimals(t){return this._decimals=t,this.updateDisplay(),this}min(t){return this._min=t,this._onUpdateMinMax(),this}max(t){return this._max=t,this._onUpdateMinMax(),this}step(t,e=!0){return this._step=t,this._stepExplicit=e,this}updateDisplay(){const t=this.getValue();if(this._hasSlider){let e=(t-this._min)/(this._max-this._min);e=Math.max(0,Math.min(e,1)),this.$fill.style.width=100*e+"%"}return this._inputFocused||(this.$input.value=void 0===this._decimals?t:t.toFixed(this._decimals)),this}_initInput(){this.$input=document.createElement("input"),this.$input.setAttribute("type","number"),this.$input.setAttribute("step","any"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$disable=this.$input;const t=()=>{let t=parseFloat(this.$input.value);isNaN(t)||(this._stepExplicit&&(t=this._snap(t)),this.setValue(this._clamp(t)))},e=t=>{const e=parseFloat(this.$input.value);isNaN(e)||(this._snapClampSetValue(e+t),this.$input.value=this.getValue())},n=t=>{"Enter"===t.code&&this.$input.blur(),"ArrowUp"===t.code&&(t.preventDefault(),e(this._step*this._arrowKeyMultiplier(t))),"ArrowDown"===t.code&&(t.preventDefault(),e(this._step*this._arrowKeyMultiplier(t)*-1))},i=t=>{this._inputFocused&&(t.preventDefault(),e(this._step*this._normalizeMouseWheel(t)))};let r,o,a,s,l,c=!1;const u=5,h=t=>{r=t.clientX,o=a=t.clientY,c=!0,s=this.getValue(),l=0,window.addEventListener("mousemove",d),window.addEventListener("mouseup",p)},d=t=>{if(c){const e=t.clientX-r,n=t.clientY-o;Math.abs(n)>u?(t.preventDefault(),this.$input.blur(),c=!1,this._setDraggingStyle(!0,"vertical")):Math.abs(e)>u&&p()}if(!c){const e=t.clientY-a;l-=e*this._step*this._arrowKeyMultiplier(t),s+l>this._max?l=this._max-s:s+l<this._min&&(l=this._min-s),this._snapClampSetValue(s+l)}a=t.clientY},p=()=>{this._setDraggingStyle(!1,"vertical"),this._callOnFinishChange(),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p)},f=()=>{this._inputFocused=!0},g=()=>{this._inputFocused=!1,this.updateDisplay(),this._callOnFinishChange()};this.$input.addEventListener("input",t),this.$input.addEventListener("keydown",n),this.$input.addEventListener("wheel",i,{passive:!1}),this.$input.addEventListener("mousedown",h),this.$input.addEventListener("focus",f),this.$input.addEventListener("blur",g)}_initSlider(){this._hasSlider=!0,this.$slider=document.createElement("div"),this.$slider.classList.add("slider"),this.$fill=document.createElement("div"),this.$fill.classList.add("fill"),this.$slider.appendChild(this.$fill),this.$widget.insertBefore(this.$slider,this.$input),this.domElement.classList.add("hasSlider");const t=(t,e,n,i,r)=>{return(t-e)/(n-e)*(r-i)+i},e=e=>{const n=this.$slider.getBoundingClientRect();let i=t(e,n.left,n.right,this._min,this._max);this._snapClampSetValue(i)},n=t=>{this._setDraggingStyle(!0),e(t.clientX),window.addEventListener("mousemove",i),window.addEventListener("mouseup",r)},i=t=>{e(t.clientX)},r=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",r)};let o,a,s=!1;const l=t=>{t.preventDefault(),this._setDraggingStyle(!0),e(t.touches[0].clientX),s=!1},c=t=>{t.touches.length>1||(this._hasScrollBar?(o=t.touches[0].clientX,a=t.touches[0].clientY,s=!0):l(t),window.addEventListener("touchmove",u,{passive:!1}),window.addEventListener("touchend",h))},u=t=>{if(s){const e=t.touches[0].clientX-o,n=t.touches[0].clientY-a;Math.abs(e)>Math.abs(n)?l(t):(window.removeEventListener("touchmove",u),window.removeEventListener("touchend",h))}else t.preventDefault(),e(t.touches[0].clientX)},h=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("touchmove",u),window.removeEventListener("touchend",h)},d=this._callOnFinishChange.bind(this),p=400;let f;const g=t=>{const e=Math.abs(t.deltaX)<Math.abs(t.deltaY);if(e&&this._hasScrollBar)return;t.preventDefault();const n=this._normalizeMouseWheel(t)*this._step;this._snapClampSetValue(this.getValue()+n),this.$input.value=this.getValue(),clearTimeout(f),f=setTimeout(d,p)};this.$slider.addEventListener("mousedown",n),this.$slider.addEventListener("touchstart",c,{passive:!1}),this.$slider.addEventListener("wheel",g,{passive:!1})}_setDraggingStyle(t,e="horizontal"){this.$slider&&this.$slider.classList.toggle("active",t),document.body.classList.toggle("lil-gui-dragging",t),document.body.classList.toggle(`lil-gui-${e}`,t)}_getImplicitStep(){return this._hasMin&&this._hasMax?(this._max-this._min)/1e3:.1}_onUpdateMinMax(){!this._hasSlider&&this._hasMin&&this._hasMax&&(this._stepExplicit||this.step(this._getImplicitStep(),!1),this._initSlider(),this.updateDisplay())}_normalizeMouseWheel(t){let{deltaX:e,deltaY:n}=t;Math.floor(t.deltaY)!==t.deltaY&&t.wheelDelta&&(e=0,n=-t.wheelDelta/120,n*=this._stepExplicit?1:10);const i=e+-n;return i}_arrowKeyMultiplier(t){let e=this._stepExplicit?1:10;return t.shiftKey?e*=10:t.altKey&&(e/=10),e}_snap(t){const e=Math.round(t/this._step)*this._step;return parseFloat(e.toPrecision(15))}_clamp(t){return t<this._min&&(t=this._min),t>this._max&&(t=this._max),t}_snapClampSetValue(t){this.setValue(this._clamp(this._snap(t)))}get _hasScrollBar(){const t=this.parent.root.$children;return t.scrollHeight>t.clientHeight}get _hasMin(){return void 0!==this._min}get _hasMax(){return void 0!==this._max}}class g extends i{constructor(t,e,n,i){super(t,e,n,"option"),this.$select=document.createElement("select"),this.$select.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this._values=Array.isArray(i)?i:Object.values(i),this._names=Array.isArray(i)?i:Object.keys(i),this._names.forEach(t=>{const e=document.createElement("option");e.innerHTML=t,this.$select.appendChild(e)}),this.$select.addEventListener("change",()=>{this.setValue(this._values[this.$select.selectedIndex]),this._callOnFinishChange()}),this.$select.addEventListener("focus",()=>{this.$display.classList.add("focus")}),this.$select.addEventListener("blur",()=>{this.$display.classList.remove("focus")}),this.$widget.appendChild(this.$select),this.$widget.appendChild(this.$display),this.$disable=this.$select,this.updateDisplay()}updateDisplay(){const t=this.getValue(),e=this._values.indexOf(t);return this.$select.selectedIndex=e,this.$display.innerHTML=-1===e?t:this._names[e],this}}class m extends i{constructor(t,e,n){super(t,e,n,"string"),this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$input.addEventListener("input",()=>{this.setValue(this.$input.value)}),this.$input.addEventListener("keydown",t=>{"Enter"===t.code&&this.$input.blur()}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$widget.appendChild(this.$input),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.value=this.getValue(),this}}const v='.lil-gui {\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n  line-height: 1;\n  font-weight: normal;\n  font-style: normal;\n  text-align: left;\n  background-color: var(--background-color);\n  color: var(--text-color);\n  user-select: none;\n  -webkit-user-select: none;\n  touch-action: manipulation;\n  --background-color: #1f1f1f;\n  --text-color: #ebebeb;\n  --title-background-color: #111111;\n  --title-text-color: #ebebeb;\n  --widget-color: #424242;\n  --hover-color: #4f4f4f;\n  --focus-color: #595959;\n  --number-color: #2cc9ff;\n  --string-color: #a2db3c;\n  --font-size: 11px;\n  --input-font-size: 11px;\n  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;\n  --font-family-mono: Menlo, Monaco, Consolas, "Droid Sans Mono", monospace;\n  --padding: 4px;\n  --spacing: 4px;\n  --widget-height: 20px;\n  --name-width: 45%;\n  --slider-knob-width: 2px;\n  --slider-input-width: 27%;\n  --color-input-width: 27%;\n  --slider-input-min-width: 45px;\n  --color-input-min-width: 45px;\n  --folder-indent: 7px;\n  --widget-padding: 0 0 0 3px;\n  --widget-border-radius: 2px;\n  --checkbox-size: calc(0.75 * var(--widget-height));\n  --scrollbar-width: 5px;\n}\n.lil-gui, .lil-gui * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n}\n.lil-gui.root {\n  width: var(--width, 245px);\n  display: flex;\n  flex-direction: column;\n}\n.lil-gui.root > .title {\n  background: var(--title-background-color);\n  color: var(--title-text-color);\n}\n.lil-gui.root > .children {\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n.lil-gui.root > .children::-webkit-scrollbar {\n  width: var(--scrollbar-width);\n  height: var(--scrollbar-width);\n  background: var(--background-color);\n}\n.lil-gui.root > .children::-webkit-scrollbar-thumb {\n  border-radius: var(--scrollbar-width);\n  background: var(--focus-color);\n}\n@media (pointer: coarse) {\n  .lil-gui.allow-touch-styles {\n    --widget-height: 28px;\n    --padding: 6px;\n    --spacing: 6px;\n    --font-size: 13px;\n    --input-font-size: 16px;\n    --folder-indent: 10px;\n    --scrollbar-width: 7px;\n    --slider-input-min-width: 50px;\n    --color-input-min-width: 65px;\n  }\n}\n.lil-gui.force-touch-styles {\n  --widget-height: 28px;\n  --padding: 6px;\n  --spacing: 6px;\n  --font-size: 13px;\n  --input-font-size: 16px;\n  --folder-indent: 10px;\n  --scrollbar-width: 7px;\n  --slider-input-min-width: 50px;\n  --color-input-min-width: 65px;\n}\n.lil-gui.autoPlace {\n  max-height: 100%;\n  position: fixed;\n  top: 0;\n  right: 15px;\n  z-index: 1001;\n}\n\n.lil-gui .controller {\n  display: flex;\n  align-items: center;\n  padding: 0 var(--padding);\n  margin: var(--spacing) 0;\n}\n.lil-gui .controller.disabled {\n  opacity: 0.5;\n}\n.lil-gui .controller.disabled, .lil-gui .controller.disabled * {\n  pointer-events: none !important;\n}\n.lil-gui .controller > .name {\n  min-width: var(--name-width);\n  flex-shrink: 0;\n  white-space: pre;\n  padding-right: var(--spacing);\n  line-height: var(--widget-height);\n}\n.lil-gui .controller .widget {\n  position: relative;\n  display: flex;\n  align-items: center;\n  width: 100%;\n  min-height: var(--widget-height);\n}\n.lil-gui .controller.string input {\n  color: var(--string-color);\n}\n.lil-gui .controller.boolean .widget {\n  cursor: pointer;\n}\n.lil-gui .controller.color .display {\n  width: 100%;\n  height: var(--widget-height);\n  border-radius: var(--widget-border-radius);\n  position: relative;\n}\n@media (hover: hover) {\n  .lil-gui .controller.color .display:hover:before {\n    content: " ";\n    display: block;\n    position: absolute;\n    border-radius: var(--widget-border-radius);\n    border: 1px solid #fff9;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n  }\n}\n.lil-gui .controller.color input[type=color] {\n  opacity: 0;\n  width: 100%;\n  height: 100%;\n  cursor: pointer;\n}\n.lil-gui .controller.color input[type=text] {\n  margin-left: var(--spacing);\n  font-family: var(--font-family-mono);\n  min-width: var(--color-input-min-width);\n  width: var(--color-input-width);\n  flex-shrink: 0;\n}\n.lil-gui .controller.option select {\n  opacity: 0;\n  position: absolute;\n  width: 100%;\n  max-width: 100%;\n}\n.lil-gui .controller.option .display {\n  position: relative;\n  pointer-events: none;\n  border-radius: var(--widget-border-radius);\n  height: var(--widget-height);\n  line-height: var(--widget-height);\n  max-width: 100%;\n  overflow: hidden;\n  word-break: break-all;\n  padding-left: 0.55em;\n  padding-right: 1.75em;\n  background: var(--widget-color);\n}\n@media (hover: hover) {\n  .lil-gui .controller.option .display.focus {\n    background: var(--focus-color);\n  }\n}\n.lil-gui .controller.option .display.active {\n  background: var(--focus-color);\n}\n.lil-gui .controller.option .display:after {\n  font-family: "lil-gui";\n  content: "↕";\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding-right: 0.375em;\n}\n.lil-gui .controller.option .widget,\n.lil-gui .controller.option select {\n  cursor: pointer;\n}\n@media (hover: hover) {\n  .lil-gui .controller.option .widget:hover .display {\n    background: var(--hover-color);\n  }\n}\n.lil-gui .controller.number input {\n  color: var(--number-color);\n}\n.lil-gui .controller.number.hasSlider input {\n  margin-left: var(--spacing);\n  width: var(--slider-input-width);\n  min-width: var(--slider-input-min-width);\n  flex-shrink: 0;\n}\n.lil-gui .controller.number .slider {\n  width: 100%;\n  height: var(--widget-height);\n  background-color: var(--widget-color);\n  border-radius: var(--widget-border-radius);\n  padding-right: var(--slider-knob-width);\n  overflow: hidden;\n  cursor: ew-resize;\n  touch-action: pan-y;\n}\n@media (hover: hover) {\n  .lil-gui .controller.number .slider:hover {\n    background-color: var(--hover-color);\n  }\n}\n.lil-gui .controller.number .slider.active {\n  background-color: var(--focus-color);\n}\n.lil-gui .controller.number .slider.active .fill {\n  opacity: 0.95;\n}\n.lil-gui .controller.number .fill {\n  height: 100%;\n  border-right: var(--slider-knob-width) solid var(--number-color);\n  box-sizing: content-box;\n}\n\n.lil-gui-dragging .lil-gui {\n  --hover-color: var(--widget-color);\n}\n.lil-gui-dragging * {\n  cursor: ew-resize !important;\n}\n\n.lil-gui-dragging.lil-gui-vertical * {\n  cursor: ns-resize !important;\n}\n\n.lil-gui .title {\n  --title-height: calc(var(--widget-height) + var(--spacing) * 1.25);\n  height: var(--title-height);\n  line-height: calc(var(--title-height) - 4px);\n  font-weight: 600;\n  padding: 0 var(--padding);\n  -webkit-tap-highlight-color: transparent;\n  cursor: pointer;\n  outline: none;\n  text-decoration-skip: objects;\n}\n.lil-gui .title:before {\n  font-family: "lil-gui";\n  content: "▾";\n  padding-right: 2px;\n  display: inline-block;\n}\n.lil-gui .title:active {\n  background: var(--title-background-color);\n  opacity: 0.75;\n}\n@media (hover: hover) {\n  body:not(.lil-gui-dragging) .lil-gui .title:hover {\n    background: var(--title-background-color);\n    opacity: 0.85;\n  }\n  .lil-gui .title:focus {\n    text-decoration: underline var(--focus-color);\n  }\n}\n.lil-gui.root > .title:focus {\n  text-decoration: none !important;\n}\n.lil-gui.closed > .title:before {\n  content: "▸";\n}\n.lil-gui.closed > .children {\n  transform: translateY(-7px);\n  opacity: 0;\n}\n.lil-gui.closed:not(.transition) > .children {\n  display: none;\n}\n.lil-gui.transition > .children {\n  transition-duration: 300ms;\n  transition-property: height, opacity, transform;\n  transition-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1);\n  overflow: hidden;\n  pointer-events: none;\n}\n.lil-gui .children:empty:before {\n  content: "Empty";\n  padding: 0 var(--padding);\n  margin: var(--spacing) 0;\n  display: block;\n  height: var(--widget-height);\n  font-style: italic;\n  line-height: var(--widget-height);\n  opacity: 0.5;\n}\n.lil-gui.root > .children > .lil-gui > .title {\n  border: 0 solid var(--widget-color);\n  border-width: 1px 0;\n  transition: border-color 300ms;\n}\n.lil-gui.root > .children > .lil-gui.closed > .title {\n  border-bottom-color: transparent;\n}\n.lil-gui + .controller {\n  border-top: 1px solid var(--widget-color);\n  margin-top: 0;\n  padding-top: var(--spacing);\n}\n.lil-gui .lil-gui .lil-gui > .title {\n  border: none;\n}\n.lil-gui .lil-gui .lil-gui > .children {\n  border: none;\n  margin-left: var(--folder-indent);\n  border-left: 2px solid var(--widget-color);\n}\n.lil-gui .lil-gui .controller {\n  border: none;\n}\n\n.lil-gui input {\n  -webkit-tap-highlight-color: transparent;\n  border: 0;\n  outline: none;\n  font-family: var(--font-family);\n  font-size: var(--input-font-size);\n  border-radius: var(--widget-border-radius);\n  height: var(--widget-height);\n  background: var(--widget-color);\n  color: var(--text-color);\n  width: 100%;\n}\n@media (hover: hover) {\n  .lil-gui input:hover {\n    background: var(--hover-color);\n  }\n  .lil-gui input:active {\n    background: var(--focus-color);\n  }\n}\n.lil-gui input:disabled {\n  opacity: 1;\n}\n.lil-gui input[type=text],\n.lil-gui input[type=number] {\n  padding: var(--widget-padding);\n}\n.lil-gui input[type=text]:focus,\n.lil-gui input[type=number]:focus {\n  background: var(--focus-color);\n}\n.lil-gui input::-webkit-outer-spin-button,\n.lil-gui input::-webkit-inner-spin-button {\n  -webkit-appearance: none;\n  margin: 0;\n}\n.lil-gui input[type=number] {\n  -moz-appearance: textfield;\n}\n.lil-gui input[type=checkbox] {\n  appearance: none;\n  -webkit-appearance: none;\n  height: var(--checkbox-size);\n  width: var(--checkbox-size);\n  border-radius: var(--widget-border-radius);\n  text-align: center;\n  cursor: pointer;\n}\n.lil-gui input[type=checkbox]:checked:before {\n  font-family: "lil-gui";\n  content: "✓";\n  font-size: var(--checkbox-size);\n  line-height: var(--checkbox-size);\n}\n@media (hover: hover) {\n  .lil-gui input[type=checkbox]:focus {\n    box-shadow: inset 0 0 0 1px var(--focus-color);\n  }\n}\n.lil-gui button {\n  -webkit-tap-highlight-color: transparent;\n  outline: none;\n  cursor: pointer;\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n  color: var(--text-color);\n  width: 100%;\n  height: var(--widget-height);\n  text-transform: none;\n  background: var(--widget-color);\n  border-radius: var(--widget-border-radius);\n  border: 1px solid var(--widget-color);\n  text-align: center;\n  line-height: calc(var(--widget-height) - 4px);\n}\n@media (hover: hover) {\n  .lil-gui button:hover {\n    background: var(--hover-color);\n    border-color: var(--hover-color);\n  }\n  .lil-gui button:focus {\n    border-color: var(--focus-color);\n  }\n}\n.lil-gui button:active {\n  background: var(--focus-color);\n}\n\n@font-face {\n  font-family: "lil-gui";\n  src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff");\n}';function y(t){const e=document.createElement("style");e.innerHTML=t;const n=document.querySelector("head link[rel=stylesheet], head style");n?document.head.insertBefore(e,n):document.head.appendChild(e)}let b=!1;class x{constructor({parent:t,autoPlace:e=void 0===t,container:n,width:i,title:r="Controls",injectStyles:o=!0,touchStyles:a=!0}={}){if(this.parent=t,this.root=t?t.root:this,this.children=[],this.controllers=[],this.folders=[],this._closed=!1,this._hidden=!1,this.domElement=document.createElement("div"),this.domElement.classList.add("lil-gui"),this.$title=document.createElement("div"),this.$title.classList.add("title"),this.$title.setAttribute("role","button"),this.$title.setAttribute("aria-expanded",!0),this.$title.setAttribute("tabindex",0),this.$title.addEventListener("click",()=>this.openAnimated(this._closed)),this.$title.addEventListener("keydown",t=>{"Enter"!==t.code&&"Space"!==t.code||(t.preventDefault(),this.$title.click())}),this.$title.addEventListener("touchstart",()=>{},{passive:!0}),this.$children=document.createElement("div"),this.$children.classList.add("children"),this.domElement.appendChild(this.$title),this.domElement.appendChild(this.$children),this.title(r),a&&this.domElement.classList.add("allow-touch-styles"),this.parent)return this.parent.children.push(this),this.parent.folders.push(this),void this.parent.$children.appendChild(this.domElement);this.domElement.classList.add("root"),!b&&o&&(y(v),b=!0),n?n.appendChild(this.domElement):e&&(this.domElement.classList.add("autoPlace"),document.body.appendChild(this.domElement)),i&&this.domElement.style.setProperty("--width",i+"px"),this.domElement.addEventListener("keydown",t=>t.stopPropagation()),this.domElement.addEventListener("keyup",t=>t.stopPropagation())}add(t,e,n,i,o){if(Object(n)===n)return new g(this,t,e,n);const a=t[e];switch(typeof a){case"number":return new f(this,t,e,n,i,o);case"boolean":return new r(this,t,e);case"string":return new m(this,t,e);case"function":return new p(this,t,e)}console.error("gui.add failed\n\tproperty:",e,"\n\tobject:",t,"\n\tvalue:",a)}addColor(t,e,n=1){return new d(this,t,e,n)}addFolder(t){return new x({parent:this,title:t})}load(t,e=!0){return t.controllers&&this.controllers.forEach(e=>{e instanceof p||e._name in t.controllers&&e.load(t.controllers[e._name])}),e&&t.folders&&this.folders.forEach(e=>{e._title in t.folders&&e.load(t.folders[e._title])}),this}save(t=!0){const e={controllers:{},folders:{}};return this.controllers.forEach(t=>{if(!(t instanceof p)){if(t._name in e.controllers)throw new Error(`Cannot save GUI with duplicate property "${t._name}"`);e.controllers[t._name]=t.save()}}),t&&this.folders.forEach(t=>{if(t._title in e.folders)throw new Error(`Cannot save GUI with duplicate folder "${t._title}"`);e.folders[t._title]=t.save()}),e}open(t=!0){return this._closed=!t,this.$title.setAttribute("aria-expanded",!this._closed),this.domElement.classList.toggle("closed",this._closed),this}close(){return this.open(!1)}show(t=!0){return this._hidden=!t,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}openAnimated(t=!0){return this._closed=!t,this.$title.setAttribute("aria-expanded",!this._closed),requestAnimationFrame(()=>{const e=this.$children.clientHeight;this.$children.style.height=e+"px",this.domElement.classList.add("transition");const n=t=>{t.target===this.$children&&(this.$children.style.height="",this.domElement.classList.remove("transition"),this.$children.removeEventListener("transitionend",n))};this.$children.addEventListener("transitionend",n);const i=t?this.$children.scrollHeight:0;this.domElement.classList.toggle("closed",!t),requestAnimationFrame(()=>{this.$children.style.height=i+"px"})}),this}title(t){return this._title=t,this.$title.innerHTML=t,this}reset(t=!0){const e=t?this.controllersRecursive():this.controllers;return e.forEach(t=>t.reset()),this}onChange(t){return this._onChange=t,this}_callOnChange(t){this.parent&&this.parent._callOnChange(t),void 0!==this._onChange&&this._onChange.call(this,{object:t.object,property:t.property,value:t.getValue(),controller:t})}onFinishChange(t){return this._onFinishChange=t,this}_callOnFinishChange(t){this.parent&&this.parent._callOnFinishChange(t),void 0!==this._onFinishChange&&this._onFinishChange.call(this,{object:t.object,property:t.property,value:t.getValue(),controller:t})}destroy(){this.parent&&(this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.folders.splice(this.parent.folders.indexOf(this),1)),this.domElement.parentElement&&this.domElement.parentElement.removeChild(this.domElement),Array.from(this.children).forEach(t=>t.destroy())}controllersRecursive(){let t=Array.from(this.controllers);return this.folders.forEach(e=>{t=t.concat(e.controllersRecursive())}),t}foldersRecursive(){let t=Array.from(this.folders);return this.folders.forEach(e=>{t=t.concat(e.foldersRecursive())}),t}}e["default"]=x},"81d5":function(t,e,n){"use strict";var i=n("7b0b"),r=n("23cb"),o=n("07fa");t.exports=function(t){var e=i(this),n=o(e),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);while(c>s)e[s++]=t;return e}},"82f8":function(t,e,n){"use strict";var i=n("ebb5"),r=n("4d64").includes,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("includes",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},8335:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGEAAABgCAYAAAANWhwGAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTk5MUE0OTJCRjM5MTFFQTgxNTk5MjMyMTQyOTk1NDQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTk5MUE0OTNCRjM5MTFFQTgxNTk5MjMyMTQyOTk1NDQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1OTkxQTQ5MEJGMzkxMUVBODE1OTkyMzIxNDI5OTU0NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1OTkxQTQ5MUJGMzkxMUVBODE1OTkyMzIxNDI5OTU0NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvZ7vCsAAAS2SURBVHja7Jx/bBNlGMefW3+sG21HtyE6lB9RAYOEiKKYLGGEQYxCGEpIjMMEY2JMNGg0IH+YEY1TYiQa/yExISYKKhiiKPjHWPhRnAokEgdm6CZzjmmEdaXt1u7Wu/q8FySyVtbrXe9u4/tJniXt7u69vp97n+fe99ZJ1NxHV6jneJ1jEYeLQDFJcHzBsZmjz33lzUc59qDzLcPP0cixhGNhCf+QOLZDgC3cxrFJSJjFMQP9YRt1QsIk9IOt+ErQB/YDCZAAIAESACRAAoAESACQAAkAEiABQAIkAEiABAAJkAAgARIAJEACgARIAJAACQASIAEUijufjTJbbjHc0Ln+NG06HKf9v6auu13AK1FTbYDWzvXRtICL3CZdJgc6h2nl3sjV16886Kc36wJZ2318Jknrv4rqPr7XJVG4sYrur/Fk/U60K9q3fSTMqXLTl2tDtJ+jxv//30fZvTpELz0wiWZUmCdAD413l9HTC8p177dtaSCnAEemo1V3+ujkhipacFP2CU8PumjlHaW2p4f3lgdp/hR33ts3zPbRxkWFf83DlpogRkLL45Xa1T5aghMo90i0Z02I/F5pzG1n8mfY+UgFSQbas60wTykvoeYlAccWy7mcPnc8VDFmHfisIUQhg9+1yWvMHeoeNvyh7rvZQ5NHneyymfmlnu7LCnUOpA21f/rvEd37PDGvjI72yPTB6SHT64BuCcs/iRhuKLy+impv9V7zns+d3yD+9OckbTkSt2VEvFsfpB/6RuinURKN1gHdEm5ktPrQMJlePRa/Jg29vyJoqA5AQgG316JQ2zpZ27zYn/Veb1yhXWeTE67DP+9IUVc0TWs43cyuzO8abeuVKcxxz1QPrZhVWhwJby3Nvos5zo1ORAkftg9ps9t951LU9mQ1ucbIOZGkSo/tG6C/BlV6dmF58STYTd30Ur4Q9O93Ia7S150pOh9VdO97govx298ntOWN67HxUEwTMOFrwuJpHi0KYfuyIL3RlqCtYf13V1vDCW2GP686dzeJdTCx1mQUR62iymrG/KLHn7Cp1k8P364/TQwrGXrqQJSUTO409Mw3l005R0dJ+CWiUFotzrHX3VVW0H4iLW37LlGUNOTIdBRNqbTjx0F67l7z/+dJdVnh19trxxN0+Hf56us0j9gjPbK1t6hW8kJLjId6RpuNVpRKjjgnkZbMWLoZNxJE/m3iIiqK6ZxKlzY71cupDdXj6rbYsXdHMttov5imGwE8Y4YEAAnjvSa4JUnXEyWxfT4Tq4C3BBL0LCVEXpxq7vJEjVd7+IN0ZCGZTIaAzRJaumXL2orJKiSM5uKQSi+3xixrr9VC4eNCgnhoXrern3piiiXtHftDpo/OOPcBVF6FeW9HypTGLsQVbSHsYFcq52rppaRqWltaChpW6dveEdp9NqnNwP9LR386Z1t/JgpPW10DSkHHlKi5b764OFEebaMdkzXMmAEkQAKABEgAkAAJABIgAUACJABIgAQACZAAIAESACRAAoAESACQAAkAEiABQAIkACMSBtENtjIkJJzn+A19YRutQoL4w/3nORT0h+V0crzzb004yFHPcZQjhb4pOpc4dnLUckT+EWAAEdFRhzWS2QQAAAAASUVORK5CYII="},"83bc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("5d64");function r(t){var e=t.attr(),n=e.x,r=e.y,o=e.text,a=e.fontSize,s=e.lineHeight,l=e.font;l||(l=i.assembleFont(e));var c,u=i.getTextWidth(o,l);if(u){var h=e.textAlign,d=e.textBaseline,p=i.getTextHeight(o,a,s),f={x:n,y:r-p};h&&("end"===h||"right"===h?f.x-=u:"center"===h&&(f.x-=u/2)),d&&("top"===d?f.y+=p:"middle"===d&&(f.y+=p/2)),c={x:f.x,y:f.y,width:u,height:p}}else c={x:n,y:r,width:0,height:0};return c}e.default=r},"83be":function(t,e,n){"use strict";function i(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"843d":function(t,e,n){},8572:function(t,e,n){"use strict";n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),n("09e7");e["a"]={data:function(){return{}},computed:{judgeOldCertKey:function(){var t=this;return function(e){var n=t._.get(e,"tls.handshake_log.server_certificates.certificate.parsed.signature.self_signed","invalidObj");return n&&"invalidObj"!==n}},judgeNewCertKey:function(){var t=this;return function(e){var n=t._.get(e,"tls.validation.browser_trusted","invalidObj");return"invalidObj"!==n}},judgeHasCert:function(){return function(t){return this.judgeOldCertKey(t)||this.judgeNewCertKey(t)}},judgeIsTrustCert:function(){return function(t){if(this.judgeNewCertKey(t))return t.tls.validation.browser_trusted;if(this.judgeOldCertKey(t)){var e=t.tls.handshake_log.server_certificates.certificate.parsed.signature.self_signed;return!e}return!1}},getCdnIcon:function(){return new Map([["CDN","cdn_self"],["CDN*","cdn_self"],["IDC机房","cdn_idc"],["移动互联网","cdn_internet"],["卫星互联网","cdn_satellite"],["卫星互联网*","cdn_satellite"],["企业专线","cdn_enterprise"],["WIFI热点","cdn_wifi"],["出口路由器","cdn_route"]])}},methods:{handleJudgeCdnSearch:function(t,e){this.role>=2&&this.onSearchMore(t,e)},handleDeleteTag:function(t,e){var n=this.$bus.$busNames.showAddTagDialog;this.$bus.$emit(n,{docId:e,tagId:t.id,tagName:t.tag_name,type:"delete"})},handleShowAddTag:function(t){var e=this.$bus.$busNames.showAddTagDialog;this.$bus.$emit(e,{docId:t,type:"add"})}}}},8610:function(t,e,n){"use strict";var i=n("609b"),r=n.n(i);r.a},8628:function(t,e,n){"use strict";var i=n("2d0c"),r=n.n(i);r.a},8641:function(t,e,n){"use strict";var i=n("7452"),r=n.n(i);r.a},"86c7":function(t,e,n){},"873b":function(t,e,n){"use strict";n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");var i=n("ade3"),r=n("2f62");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e["a"]={data:function(){return{}},computed:a({},Object(r["e"])("site",["themeClassName"]),{getThemeClass:function(){return"theme-dark-green"===this.themeClassName?"dark-time":"daytime"}})}},8753:function(t,e){t.exports={indexOf:function(t,e){var n,i;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var i,r;if(Array.prototype.forEach)return t.forEach(e,n);for(i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}}},8760:function(t,e,n){},"87ec":function(t,e,n){},8909:function(t,e,n){var i={"./scenario-map-1-blue.png":"e37f","./scenario-map-1-green.png":"0326","./scenario-map-2-blue.png":"6658","./scenario-map-2-green.png":"be81","./scenario-map-3-blue.png":"662e","./scenario-map-3-green.png":"5f07","./scenario-map-4-blue.png":"449e","./scenario-map-4-green.png":"bf07"};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id="8909"},8921:function(t,e,n){"use strict";function i(t){return t*t*t}function r(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o}))},8937:function(t,e,n){"use strict";n.r(e);var i=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},r=i,o=function(t,e){return!!r(t)&&t.indexOf(e)>-1},a=o,s=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n},l=s,c=function(t,e){return void 0===e&&(e=[]),l(t,(function(t){return!a(e,t)}))},u=c,h={}.toString,d=function(t,e){return h.call(t)==="[object "+e+"]"},p=d,f=function(t){return p(t,"Function")},g=function(t){return null===t||void 0===t},m=g,v=function(t){return Array.isArray?Array.isArray(t):p(t,"Array")},y=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function b(t,e){var n;if(t)if(v(t)){for(var i=0,r=t.length;i<r;i++)if(n=e(t[i],i),!1===n)break}else if(y(t))for(var o in t)if(t.hasOwnProperty(o)&&(n=e(t[o],o),!1===n))break}var x=b,w=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return x(t,(function(n,i){f(t)&&"prototype"===i||e.push(i)})),e},_=w;function C(t,e){var n=_(e),i=n.length;if(m(t))return!i;for(var r=0;r<i;r+=1){var o=n[r];if(e[o]!==t[o]||!(o in t))return!1}return!0}var A=C,I=function(t){return"object"===typeof t&&null!==t},S=I,M=function(t){if(!S(t)||!p(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},k=M;function E(t,e){if(!v(t))return null;var n;if(f(e)&&(n=e),k(e)&&(n=function(t){return A(t,e)}),n)for(var i=0;i<t.length;i+=1)if(n(t[i]))return t[i];return null}var T=E;function O(t,e,n){void 0===n&&(n=0);for(var i=n;i<t.length;i++)if(e(t[i],i))return i;return-1}var P=O,j=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i],o=r[e];if(!m(o)){n=v(o)?o[0]:o;break}}return n},L=j,D=function(t){if(!v(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},R=D,B=function(t,e){if(void 0===e&&(e=[]),v(t))for(var n=0;n<t.length;n+=1)B(t[n],e);else e.push(t);return e},N=B,F=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(v(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var r=Math.max.apply(null,e),o=Math.min.apply(null,e);return{min:o,max:r}},z=F,V=Array.prototype,G=V.splice,H=V.indexOf,W=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i++){var r=e[i],o=-1;while((o=H.call(t,r))>-1)G.call(t,o,1)}return t},U=W,Z=Array.prototype.splice,Y=function(t,e){if(!r(t))return[];var n=t?e.length:0,i=n-1;while(n--){var o=void 0,a=e[n];n!==i&&a===o||(o=a,Z.call(t,a,1))}return t},X=Y,q=function(t,e,n){if(!v(t)&&!k(t))return t;var i=n;return x(t,(function(t,n){i=e(i,t,n)})),i},K=q,Q=function(t,e){var n=[];if(!r(t))return n;var i=-1,o=[],a=t.length;while(++i<a){var s=t[i];e(s,i,t)&&(n.push(s),o.push(i))}return X(t,o),n},J=Q,$=function(t){return p(t,"String")};function tt(t,e){var n;if(f(e))n=function(t,n){return e(t)-e(n)};else{var i=[];$(e)?i.push(e):v(e)&&(i=e),n=function(t,e){for(var n=0;n<i.length;n+=1){var r=i[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}var et=tt,nt=function(t){var e=[];return x(t,(function(t){a(e,t)||e.push(t)})),e},it=nt,rt=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return it([].concat.apply([],t))},ot=rt,at=function(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=o[e];if(!m(a)){v(a)||(a=[a]);for(var s=0;s<a.length;s++){var l=a[s];i[l]||(n.push(l),i[l]=!0)}}}return n};function st(t){if(r(t))return t[0]}function lt(t){if(r(t)){var e=t;return e[e.length-1]}}function ct(t,e){return!(!v(t)&&!$(t))&&t[0]===e}var ut=ct;function ht(t,e){return!(!v(t)&&!$(t))&&t[t.length-1]===e}var dt=ht,pt=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},ft=pt,gt=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},mt=gt,vt=Object.prototype.hasOwnProperty;function yt(t,e){if(!e||!v(t))return{};for(var n,i={},r=f(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=r(a),vt.call(i,n)?i[n].push(a):i[n]=[a]}return i}var bt=yt,xt=function(t,e){if(!e)return{0:t};if(!f(e)){var n=v(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}var i=bt(t,e);return i},wt=xt,_t=function(t,e){if(!e)return[t];var n=wt(t,e),i=[];for(var r in n)i.push(n[r]);return i};function Ct(t,e){return t["_wrap_"+e]}var At=Ct;function It(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}var St=It,Mt={};function kt(t){var e=Mt[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,Mt[t]=e}return e}var Et=kt;function Tt(t){var e=0,n=0,i=0,r=0;return v(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}}var Ot=Tt,Pt=function(t,e,n){return t<e?e:t>n?n:t},jt=Pt,Lt=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},Dt=Lt,Rt=function(t){return p(t,"Number")},Bt=Rt,Nt=function(t){return Bt(t)&&t%1!==0},Ft=Nt,zt=function(t){return Bt(t)&&t%2===0},Vt=zt,Gt=Number.isInteger?Number.isInteger:function(t){return Bt(t)&&t%1===0},Ht=Gt,Wt=function(t){return Bt(t)&&t<0},Ut=Wt,Zt=1e-5;function Yt(t,e,n){return void 0===n&&(n=Zt),Math.abs(t-e)<n}var Xt=function(t){return Bt(t)&&t%2!==0},qt=Xt,Kt=function(t){return Bt(t)&&t>0},Qt=Kt,Jt=function(t,e){if(v(t)){var n,i,r=t[0];return n=f(e)?e(t[0]):t[0][e],x(t,(function(t){i=f(e)?e(t):t[e],i>n&&(r=t,n=i)})),r}},$t=function(t,e){if(v(t)){var n,i,r=t[0];return n=f(e)?e(t[0]):t[0][e],x(t,(function(t){i=f(e)?e(t):t[e],i<n&&(r=t,n=i)})),r}},te=function(t,e){return(t%e+e)%e},ee=te,ne=180/Math.PI,ie=function(t){return ne*t},re=ie,oe=parseInt,ae=Math.PI/180,se=function(t){return ae*t},le=se,ce=x,ue=function(t,e){return t.hasOwnProperty(e)},he=ue,de=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return x(t,(function(n,i){f(t)&&"prototype"===i||e.push(n)})),e},pe=de,fe=function(t,e){return a(pe(t),e)},ge=function(t){return m(t)?"":t.toString()},me=function(t){return ge(t).toLowerCase()},ve=me,ye=function(t){var e=ge(t);return e.charAt(0).toLowerCase()+e.substring(1)},be=ye;function xe(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}var we=xe,_e=function(t){return ge(t).toUpperCase()},Ce=_e,Ae=function(t){var e=ge(t);return e.charAt(0).toUpperCase()+e.substring(1)},Ie=Ae,Se={}.toString,Me=function(t){return Se.call(t).replace(/^\[object /,"").replace(/]$/,"")},ke=Me,Ee=function(t){return p(t,"Arguments")},Te=Ee,Oe=function(t){return p(t,"Boolean")},Pe=Oe,je=function(t){return p(t,"Date")},Le=je,De=function(t){return p(t,"Error")},Re=De,Be=function(t){return Bt(t)&&isFinite(t)},Ne=function(t){return null===t},Fe=Ne,ze=Object.prototype,Ve=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||ze;return t===n},Ge=Ve,He=function(t){return p(t,"RegExp")},We=He,Ue=function(t){return void 0===t},Ze=Ue,Ye=function(t){return t instanceof Element||t instanceof HTMLDocument},Xe=Ye;function qe(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}function Ke(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}function Qe(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Je(t,e,n,i){return e&&Qe(t,e),n&&Qe(t,n),i&&Qe(t,i),t}var $e=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],i=1;i<t.length;i++){var r=t[i];f(r)&&(r=r.prototype),Je(n.prototype,r)}},tn=$e,en=function(t){if("object"!==typeof t||null===t)return t;var e;if(v(t)){e=[];for(var n=0,i=t.length;n<i;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=en(t[n]):e[n]=t[n]}else for(var r in e={},t)"object"===typeof t[r]&&null!=t[r]?e[r]=en(t[r]):e[r]=t[r];return e},nn=en;function rn(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}}var on=rn,an=function(t,e){if(!f(t))throw new TypeError("Expected a function");var n=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=e?e.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return a.set(o,s),s};return n.cache=new Map,n},sn=5;function ln(t,e,n,i){for(var r in n=n||0,i=i||sn,e)if(e.hasOwnProperty(r)){var o=e[r];null!==o&&k(o)?(k(t[r])||(t[r]={}),n<i?ln(t[r],o,n+1,i):t[r]=e[r]):v(o)?(t[r]=[],t[r]=t[r].concat(o)):void 0!==o&&(t[r]=o)}}var cn=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)ln(t,e[i]);return t},un=cn,hn=function(t,e,n,i){f(e)||(n=e,e=t,t=function(){});var r=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var i=new n;return i.constructor=e,i},o=r(e.prototype,t);return t.prototype=Je(o,t.prototype),t.superclass=r(e.prototype,e),Je(o,n),Je(t,i),t},dn=hn,pn=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i},fn=pn,gn=Object.prototype.hasOwnProperty;function mn(t){if(m(t))return!0;if(r(t))return!t.length;var e=ke(t);if("Map"===e||"Set"===e)return!t.size;if(Ge(t))return!Object.keys(t).length;for(var n in t)if(gn.call(t,n))return!1;return!0}var vn=mn,yn=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if($(t)||$(e))return!1;if(r(t)||r(e)){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length;i++)if(n=yn(t[i],e[i]),!n)break;return n}if(S(t)||S(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(n=!0,i=0;i<o.length;i++)if(n=yn(t[o[i]],e[o[i]]),!n)break;return n}return!1},bn=yn,xn=function(t,e,n){return f(n)?!!n(t,e):bn(t,e)},wn=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n},_n=wn,Cn=function(t){return t},An=function(t,e){void 0===e&&(e=Cn);var n={};return y(t)&&!m(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n},In=function(t,e,n){var i=0,r=$(e)?e.split("."):e;while(t&&i<r.length)t=t[r[i++]];return void 0===t||i<r.length?n:t},Sn=function(t,e,n){var i=t,r=$(e)?e.split("."):e;return r.forEach((function(t,e){e<r.length-1?(y(i[t])||(i[t]=Bt(r[e+1])?[]:{}),i=i[t]):i[t]=n})),t},Mn=Object.prototype.hasOwnProperty,kn=function(t,e){if(null===t||!k(t))return{};var n={};return x(e,(function(e){Mn.call(t,e)&&(n[e]=t[e])})),n},En=function(t,e,n){var i,r,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),i=null,a=t.apply(r,o),i||(r=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var u=e-(c-s);return r=this,o=arguments,u<=0||u>e?(i&&(clearTimeout(i),i=null),s=c,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(i),s=0,i=r=o=null},c},Tn=function(t){return r(t)?Array.prototype.slice.call(t):[]},On={},Pn=function(t){return t=t||"g",On[t]?On[t]+=1:On[t]=1,t+On[t]},jn=function(){},Ln=function(t){return t};function Dn(t){return m(t)?0:r(t)?t.length:Object.keys(t).length}var Rn=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),Bn=Rn;n.d(e,"contains",(function(){return a})),n.d(e,"includes",(function(){return a})),n.d(e,"difference",(function(){return u})),n.d(e,"find",(function(){return T})),n.d(e,"findIndex",(function(){return P})),n.d(e,"firstValue",(function(){return L})),n.d(e,"flatten",(function(){return R})),n.d(e,"flattenDeep",(function(){return N})),n.d(e,"getRange",(function(){return z})),n.d(e,"pull",(function(){return U})),n.d(e,"pullAt",(function(){return X})),n.d(e,"reduce",(function(){return K})),n.d(e,"remove",(function(){return J})),n.d(e,"sortBy",(function(){return et})),n.d(e,"union",(function(){return ot})),n.d(e,"uniq",(function(){return it})),n.d(e,"valuesOfKey",(function(){return at})),n.d(e,"head",(function(){return st})),n.d(e,"last",(function(){return lt})),n.d(e,"startsWith",(function(){return ut})),n.d(e,"endsWith",(function(){return dt})),n.d(e,"filter",(function(){return l})),n.d(e,"every",(function(){return ft})),n.d(e,"some",(function(){return mt})),n.d(e,"group",(function(){return _t})),n.d(e,"groupBy",(function(){return bt})),n.d(e,"groupToMap",(function(){return wt})),n.d(e,"getWrapBehavior",(function(){return At})),n.d(e,"wrapBehavior",(function(){return St})),n.d(e,"number2color",(function(){return Et})),n.d(e,"parseRadius",(function(){return Ot})),n.d(e,"clamp",(function(){return jt})),n.d(e,"fixedBase",(function(){return Dt})),n.d(e,"isDecimal",(function(){return Ft})),n.d(e,"isEven",(function(){return Vt})),n.d(e,"isInteger",(function(){return Ht})),n.d(e,"isNegative",(function(){return Ut})),n.d(e,"isNumberEqual",(function(){return Yt})),n.d(e,"isOdd",(function(){return qt})),n.d(e,"isPositive",(function(){return Qt})),n.d(e,"maxBy",(function(){return Jt})),n.d(e,"minBy",(function(){return $t})),n.d(e,"mod",(function(){return ee})),n.d(e,"toDegree",(function(){return re})),n.d(e,"toInteger",(function(){return oe})),n.d(e,"toRadian",(function(){return le})),n.d(e,"forIn",(function(){return ce})),n.d(e,"has",(function(){return ue})),n.d(e,"hasKey",(function(){return he})),n.d(e,"hasValue",(function(){return fe})),n.d(e,"keys",(function(){return _})),n.d(e,"isMatch",(function(){return A})),n.d(e,"values",(function(){return pe})),n.d(e,"lowerCase",(function(){return ve})),n.d(e,"lowerFirst",(function(){return be})),n.d(e,"substitute",(function(){return we})),n.d(e,"upperCase",(function(){return Ce})),n.d(e,"upperFirst",(function(){return Ie})),n.d(e,"getType",(function(){return ke})),n.d(e,"isArguments",(function(){return Te})),n.d(e,"isArray",(function(){return v})),n.d(e,"isArrayLike",(function(){return r})),n.d(e,"isBoolean",(function(){return Pe})),n.d(e,"isDate",(function(){return Le})),n.d(e,"isError",(function(){return Re})),n.d(e,"isFunction",(function(){return f})),n.d(e,"isFinite",(function(){return Be})),n.d(e,"isNil",(function(){return m})),n.d(e,"isNull",(function(){return Fe})),n.d(e,"isNumber",(function(){return Bt})),n.d(e,"isObject",(function(){return y})),n.d(e,"isObjectLike",(function(){return S})),n.d(e,"isPlainObject",(function(){return k})),n.d(e,"isPrototype",(function(){return Ge})),n.d(e,"isRegExp",(function(){return We})),n.d(e,"isString",(function(){return $})),n.d(e,"isType",(function(){return p})),n.d(e,"isUndefined",(function(){return Ze})),n.d(e,"isElement",(function(){return Xe})),n.d(e,"requestAnimationFrame",(function(){return qe})),n.d(e,"clearAnimationFrame",(function(){return Ke})),n.d(e,"augment",(function(){return tn})),n.d(e,"clone",(function(){return nn})),n.d(e,"debounce",(function(){return on})),n.d(e,"memoize",(function(){return an})),n.d(e,"deepMix",(function(){return un})),n.d(e,"each",(function(){return x})),n.d(e,"extend",(function(){return dn})),n.d(e,"indexOf",(function(){return fn})),n.d(e,"isEmpty",(function(){return vn})),n.d(e,"isEqual",(function(){return bn})),n.d(e,"isEqualWith",(function(){return xn})),n.d(e,"map",(function(){return _n})),n.d(e,"mapValues",(function(){return An})),n.d(e,"mix",(function(){return Je})),n.d(e,"assign",(function(){return Je})),n.d(e,"get",(function(){return In})),n.d(e,"set",(function(){return Sn})),n.d(e,"pick",(function(){return kn})),n.d(e,"throttle",(function(){return En})),n.d(e,"toArray",(function(){return Tn})),n.d(e,"toString",(function(){return ge})),n.d(e,"uniqueId",(function(){return Pn})),n.d(e,"noop",(function(){return jn})),n.d(e,"identity",(function(){return Ln})),n.d(e,"size",(function(){return Dn})),n.d(e,"Cache",(function(){return Bn}))},"893e":function(t,e,n){},"8aa7":function(t,e,n){var i=n("da84"),r=n("d039"),o=n("1c7e"),a=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;t.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!o((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},"8b32":function(t,e,n){"use strict";n.d(e,"g",(function(){return v})),n.d(e,"c",(function(){return x})),n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return _})),n.d(e,"f",(function(){return C})),n.d(e,"e",(function(){return A})),n.d(e,"h",(function(){return I})),n.d(e,"d",(function(){return S}));var i=n("0fd5"),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return t=Math.round(t),t<0?0:t>255?255:t}function a(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function d(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i["a"](20),g=null;function m(t,e){g&&p(g,e),g=f.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return p(e,n);t+="";var i=t.replace(/ /g,"").toLowerCase();if(i in r)return p(e,r[i]),m(t,e),e;var o=i.length;if("#"!==i.charAt(0)){var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var u=i.substr(0,a),h=i.substr(a+1,s-(a+1)).split(","),g=1;switch(u){case"rgba":if(4!==h.length)return 3===h.length?d(e,+h[0],+h[1],+h[2],1):d(e,0,0,0,1);g=c(h.pop());case"rgb":return h.length>=3?(d(e,l(h[0]),l(h[1]),l(h[2]),3===h.length?g:c(h[3])),m(t,e),e):void d(e,0,0,0,1);case"hsla":return 4!==h.length?void d(e,0,0,0,1):(h[3]=c(h[3]),y(h,e),m(t,e),e);case"hsl":return 3!==h.length?void d(e,0,0,0,1):(y(h,e),m(t,e),e);default:return}}d(e,0,0,0,1)}else{if(4===o||5===o){var v=parseInt(i.slice(1,4),16);return v>=0&&v<=4095?(d(e,(3840&v)>>4|(3840&v)>>8,240&v|(240&v)>>4,15&v|(15&v)<<4,5===o?parseInt(i.slice(4),16)/15:1),m(t,e),e):void d(e,0,0,0,1)}if(7===o||9===o){v=parseInt(i.slice(1,7),16);return v>=0&&v<=16777215?(d(e,(16711680&v)>>16,(65280&v)>>8,255&v,9===o?parseInt(i.slice(7),16)/255:1),m(t,e),e):void d(e,0,0,0,1)}}}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=c(t[1]),r=c(t[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return e=e||[],d(e,o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,c=(s+a)/2;if(0===l)e=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+u-d:o===s&&(e=2/3+h-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,c];return null!=t[3]&&p.push(t[3]),p}}function x(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return I(n,4===n.length?"rgba":"rgb")}}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),l=e[r],c=e[a],u=i-r;return n[0]=o(h(l[0],c[0],u)),n[1]=o(h(l[1],c[1],u)),n[2]=o(h(l[2],c[2],u)),n[3]=s(h(l[3],c[3],u)),n}}function _(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),a=Math.ceil(i),l=v(e[r]),c=v(e[a]),u=i-r,d=I([o(h(l[0],c[0],u)),o(h(l[1],c[1],u)),o(h(l[2],c[2],u)),s(h(l[3],c[3],u))],"rgba");return n?{color:d,leftIndex:r,rightIndex:a,value:i}:d}}function C(t,e,n,i){var r=v(t);if(t)return r=b(r),null!=e&&(r[0]=a(e)),null!=n&&(r[1]=c(n)),null!=i&&(r[2]=c(i)),I(y(r),"rgba")}function A(t,e){var n=v(t);if(n&&null!=e)return n[3]=s(e),I(n,"rgba")}function I(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function S(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}},"8eeb":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANUAAADICAYAAAB/CKTGAAANf0lEQVR4Xu3dd5sURRAG8AEEQZAczFlRQDBnclaUYPiQ4If0Kal9uNvb3elQ1V3V9fr3TE/3W/WjhpPb3TXhPySABEQT2CW6GhZDAkhgAio0ARIQTgCohAPFckgAqNADSEA4AQ+o/p6m6ZnwubGc3wTM94N1VH9O0/TvNE3/AJZfBYI7J1BPrfeDZVRPGNJuLgpgCXanw6UWoBZbN9sPVlE94gm1Z6n4ZoN02KSetrwMyjQsi6ge8oTau6bqgOWJQ/1e14EyC8saqt95Qu2bqQVg1TerhxXmQJmEZQnVA55Q+xOrDViJQTm9LBWUOVhWUP3KE+pAZgMAVmZgTi7PBWUKlgVU93lCHSwsOGAVBmf0tlJQZmD1RnWXJ9ShygIDVmWARm6vBWUCVk9Ud3hCHRYqKGAJBdlpGSlQ3WH1QnWLQR0VLiBgCQfaaDlpUF1h9UB1k0EdUyoYYCkFq7SsFqhusFqjus6gTigVqFuQyucZdXltUF36oSWqawzqZKMOwcRqFHThY1qBag6rFaorDOp0YQFKbwOs0uR072sNqimsFqguM6gzunVauzpgdQp+zWN7gWoGSxvVzwzq9c51BazOBeDH9wbVBJYmqp/4F8retFFP/KJj5zpYAaUOSwvVDzyh3upcyOXHY2L1KYg1UKqwNFB9zxPqnT71m30qYM1GJHqBVVBqsKRRfcsT6l3RssgvBljyma5a0TooFViSqL7hCfV+m3pVPwWwqiPcuIAXUOKwpFB9zaA+0K2T+OqAJR7p/wt6AyUKSwLVlwzqI536qK8KWLIRewUlBqsW1RcM6mPZujRfDbBkIvcOSgRWDaqLDOqsTD26rwJYdSUYBVQ1rFJUnzOoT+vqYO5uwCoryWigqmCVoDrPoM6V5W/+LsDKK9GooIphAdXqBgKsNFijg6IUsnuhBBU9aPRpVRRmWh8OcxVArSllKSpa7gK/Bn42TJvsPEj2n1IDZ7H1aAC1odA1qGjZUX9gsTUywNreQAA18ydnLSrACjKa+JgAlVBvCVT0mNH+n9Wq6KJPLIBKAEWXSKGitS7x37E+SXy2x8uiwgKojG6VRAVYGcE7uhSgMosljYoeP8q/B9wUZZSJBVCZoKRf/7Y+3vu/XE+JcnRYAJXSBSuu0ZhUi8cAVmFRDNwGUBVF0ERF2/qKf3jxYcUerd862sQCqMqO00ZF2/P6W8E50Y4CC6Byqr7m2haoAEugUA2WACihkFuhou16+2CYkoi9TiyAKql250m1eDxgCRZPaCmAEgpysUzLSbV4Jn024NNpmt4TPoul5bxMLIBS6JoeqOgY3zEs6x+6WRO5dVgAVVPdDff2QgVYSgVNXBagEoMquawnKtqv9c9dL8l0+R5rEwugJKpqdFIttkXfEEJ/x3pb+aw9l7cCC6AadEHvSQVYDYrMjwCoRllbQUXH/ZEnlrXvtJIsRa+JBVCSVZxZyxIq2qq1b1/UKEVrWAClUUXjf6da3h5gyTUBQMllmbyStUm12Dh9ATf98OKN5JP4u1B7YgFUp56wiori+IVh9f5me83SaMECKM2qOfs71fJ2ASu/OQAqPzPROyxPqsVBL/PEek305LYWk5pYAGWgrh5QUUyANd8sADWfUZMrvKCiMK7wxDrTJJk+DymdWADVp14rn+oJFR3gKsM6bShD6a3kwgIo6QpUrucNFWBtLzhAVQLQuN0jKsrhGk+sUxqhGFlzbmIBlJFCLW/DKyo6x3WGddJothLbWgcLoCTSVVrDM6qosABKCYPUst5RUQ43eGKdkArF4DqLiQVQBosz0uvf1rPcZFjHHWReukWCRf8ecuT/5v4e6eLsI0yqRdARYLloqsJNDgGKzj4SKjrPLf7T/FhhYXFbnwSGATUiKjrTbYZ1tE9/4KmZCQwFalRUgJXZ1R0vHw7UyKjobHd4Yh3p2DR49PoEhgQ1Oio6312GdRjdbSqBYUFFQAVYpiz9v5mhQUVBRee8xxPrVXs9FmpHw4OKhAqw+tsNASoaKjrvfZ5Yh/r3WKgdhAEVERWd+VeGdTBUW/c7bChQUVEBVjtg4UBFRkVn/40n1ivteizUk0KCio6Kzv+AYR0I1e76hw0LCqieNxdgySILDQqoXjTT7zyx9sv2V7jVwoMCqu09/wfDejkcBZkDAxTnONrvU9W2B2CVJQhQW3IDqp1N9JAn1r6y/gp3F0AtlRyoVht4xLD2hiOSd2CAWpEXUK1vIsDaDAyg1uQDVJsb5zFPrJfy/gAf/mqA2lBioJrvf8DanhFAzfQMUM2joiue8MTak3b5sFcBVEJpgSohJL7kT4a1O/2Woa4EqMRyAlViUMFhAVRGnwBVRlh86V88saJkB1CZPRKlMTJjmb08whcFUAgANdsKOy8AqoLQpmkCqrLcQtwFVPllxutffmah7gCqvHJH/QkgXgMz+gSo0sOKCmqREGAl9gpQpQWF//n7PCfASugXoJoPCf9MaXtGgDXTM0C1OSCAWp0PYG3oG6BaHw5+9WPzHziAtSYfoFodDEDNvxbj71hAldYl0zTh1+mTo8IPL1ZFhUm1PRV88EseKPy4fUVeQPUiFIAqAwVYS7kB1fNA8GGadaAAa0t+QIWPfZbh9GKV8D8VjI4Kn6MuTer5eqFhRUaFr9LRARX+VTAqKnyboi6o0LAiogKoNqDCwoqGCl+k3RZUSFiRUN3jD2x5tU9fhX9qmB9eREEFUDZMh4AVAdVdnlCHbfRV+F0MD2t0VABl0/DQsEZGdYcn1BGbfRV+V8PCGhXVbQZ1NHzr2g5gSFgjogIo25CWdzccrNFQ3eIJdcxXX4Xf7VCwRkJ1k0EdD9+iPgMYBtYoqCKAoqZ76tNL8q6HgDUCqhvcbCeSS+fvwkWzRfhiBPewvKO6zqBO+nOSvOPlJgOs5Oj6XOgZVURQiy4BrD5ekp7qFdU1nlCnkk7p86K51yDAMlpXj6iuMqjTRjOV2NYcKEwsiZSV1vCGCqB2NgImlhKO0mU9obrCE+pM6WEd3Jc6oZaPAliGiusF1WUG9Zqh7KS3UgoKr4LSlahczwMqgEovMiZWelZqV1pH9QtPqNfVEui/cO2Ewqtg/xpu24FlVABV3iyYWOXZVd9pFdXPPKHeqD6h3QWkJxQmlpFaW0T1E4N600hGGtvQBoUfXmhULXFNa6gAKrFwGZfhVTAjLIlLLaH6kSfUWxIHM7pGqwmFV8GODWAF1Q8M6u2OWWg/uhcovApqV3ZpfQuoAKpd0fEq2CDr3qi+5wn1ToOz9npE7wmFV8HGle+J6jsG9W7jM7d8nDVQeBVsUP1eqACqQXFnHoFXQaUa9ED1LU+o95TOZGFZqxMKr4INuqM1qm8Y1PsNztbrEV5A4VVQqUNaogIopSIKLItXQYEQF0u0QvU1T6gPBPdubSlvEwqvgkod1AIVQCkVT2FZTCyBULVRfcUT6kOBvVpdwvuEwsQS7ixNVF8yqI+E92xpudFA4YcXAt2lhQqgBIrTeQm8ChYWQAPVFzyhPi7ck4fbRp1QeBUU6D5pVJcY1CcCe7O6RBRQeBUs7EBJVABVWAQHt+FVMKNIUqgu8oQ6m/Fsb5dGm1B4FSzsUAlUnzOoTwv34OG26KDwKpjRpbWoACoj7EEuxavgTCFrUF3gCfXZIM2y6hiYUKuLC1gbmr4U1XkGdQ6gBk5g89EAa00+JagAKqyjHQcHrBW9AFQ7Q8ErX94fGqPDyu6HElQU+ag/oMgOMK//hr16VFhF/VCKirpjtP83VRTgsEzyDzYarOJ+qEFFsY/y7/yKA8zvvaHvGAVWVT/UoqIO8f4v0qsCHJpI2eG8w6ruBwlUFL3X3+6tDrCs74a/yysskX6QQkVdQh/s8myaJi8fPSYS4PA8yg/oDZZYP0iiovi9fEimWIDlPRfiTi+wRPtBGhV1Cn0+Ok0sq9/gIRpgCBp1h7QOS7wfNFBRCax+15R4gHX9FuZuq7BU+kELFXULfSsiTSwr39urEmAYFvUHtQZLrR80UVEZrHzDvFqA9b0WagUrsFT7QRsVdcxlnlhnOrWPaoCdzuT5sb1hqfdDC1TUAFf5V0VON+4G9QAbn2eUx/WC1aQfWqGiZrjGE+tko85oEmCjs4z4mNawmvVDS1TUGDd4Yp1Q7pJmASqfY/TlW8Fq2g+tUVGT3OSJdUypY5oGqHSGSMtqw2reDz1QUcPcZlhHhLuneYDC+4+6nBasLv3QCxU1zx2GdViok7oEKLR3LDNN0rC69UNPVNRI9xjWocqu6hZg5b5x+/YEpGB17YfeqCjS+wzrYGGHdQ2wcM+4bX0CtbC694MFVBTvbwzrQGa3dQ8wc7+4PC2BUlgm+sEKKor6AcPan5b7ZCLAxL3isvwEcmGZ6QdLqCj2PxjWvpkamAkwv1dwR0YCqbBM9YM1VJT3Q4a1d034pgLMaBBcWpbAHCxz/WARFUX/mGHtWaqDuQDL+gR3ZSawDpbJfrCKijJ/wrB2cwFMBpjZHLi8PIFlWGb7wTIqiv8vhmU2wPIewZ0FCSxgme4H66godwqSfoMY/yEBF/3gARVaCQm4SgCoXJULm/WQAFB5qBL26CoBoHJVLmzWQwJA5aFK2KOrBP4DtSeC57qmuToAAAAASUVORK5CYII="},9066:function(t,e,n){},"90ef":function(t,e,n){"use strict";var i=n("e317"),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,o=new RegExp(r.source,"g");function a(t){return function(){return t}}function s(t){return function(e){return t(e)+""}}e["a"]=function(t,e){var n,l,c,u=r.lastIndex=o.lastIndex=0,h=-1,d=[],p=[];t+="",e+="";while((n=r.exec(t))&&(l=o.exec(e)))(c=l.index)>u&&(c=e.slice(u,c),d[h]?d[h]+=c:d[++h]=c),(n=n[0])===(l=l[0])?d[h]?d[h]+=l:d[++h]=l:(d[++h]=null,p.push({i:h,x:Object(i["a"])(n,l)})),u=o.lastIndex;return u<e.length&&(c=e.slice(u),d[h]?d[h]+=c:d[++h]=c),d.length<2?p[0]?s(p[0].x):a(e):(e=p.length,function(t){for(var n,i=0;i<e;++i)d[(n=p[i]).i]=n.x(t);return d.join("")})}},"90f6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("df01"),r=n("3753");function o(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return o(t)*o(e)?(t[0]*e[0]+t[1]*e[1])/(o(t)*o(e)):1}function s(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}function l(t,e){return t[0]===e[0]&&t[1]===e[1]}function c(t,e){var n=e[1],o=e[2],c=i.default(r.default(e[3]),2*Math.PI),u=e[4],h=e[5],d=t[0],p=t[1],f=e[6],g=e[7],m=Math.cos(c)*(d-f)/2+Math.sin(c)*(p-g)/2,v=-1*Math.sin(c)*(d-f)/2+Math.cos(c)*(p-g)/2,y=m*m/(n*n)+v*v/(o*o);y>1&&(n*=Math.sqrt(y),o*=Math.sqrt(y));var b=n*n*(v*v)+o*o*(m*m),x=b?Math.sqrt((n*n*(o*o)-b)/b):1;u===h&&(x*=-1),isNaN(x)&&(x=0);var w=o?x*n*v/o:0,_=n?x*-o*m/n:0,C=(d+f)/2+Math.cos(c)*w-Math.sin(c)*_,A=(p+g)/2+Math.sin(c)*w+Math.cos(c)*_,I=[(m-w)/n,(v-_)/o],S=[(-1*m-w)/n,(-1*v-_)/o],M=s([1,0],I),k=s(I,S);return a(I,S)<=-1&&(k=Math.PI),a(I,S)>=1&&(k=0),0===h&&k>0&&(k-=2*Math.PI),1===h&&k<0&&(k+=2*Math.PI),{cx:C,cy:A,rx:l(t,[f,g])?0:n,ry:l(t,[f,g])?0:o,startAngle:M,endAngle:M+k,xRotation:c,arcFlag:u,sweepFlag:h}}e.isSamePoint=l,e.default=c},9129:function(t,e,n){var i=n("23e7");i({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},"91de":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("06ef"),r=n("5b8d"),o=n("61d8"),a=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(o.default(t)||o.default(e))return!1;if(r.default(t)||r.default(e)){if(t.length!==e.length)return!1;for(var n=!0,s=0;s<t.length;s++)if(n=a(t[s],e[s]),!n)break;return n}if(i.default(t)||i.default(e)){var l=Object.keys(t),c=Object.keys(e);if(l.length!==c.length)return!1;for(n=!0,s=0;s<l.length;s++)if(n=a(t[l[s]],e[l[s]]),!n)break;return n}return!1};e.default=a},9240:function(t){t.exports=JSON.parse('[{"module_name":"服务数据","functional_item":"基础服务信息","desc":"根据检索条件输出呈现网络空间测绘基础服务数据，包括：经典模式和列表模式，查看IP详情和一键链接等功能，具体数据信息字段包括但不限于：IP，协议，端口，自治域，运营商，服务器，主机名，响应信息，特征信息，协议深度解析信息等。","jurisdiction":true},{"module_name":"服务数据","functional_item":"全球地理位置信息","desc":"呈现基本的地理信息，包括IP所在地理位置，国家，省份，城市等信息","jurisdiction":false},{"module_name":"服务数据","functional_item":"IP详情信息","desc":"IP详情信息是基于IP相关信息的聚合。详情页面的信息包含：IP概览、层级信息、端口详情、Whois信息、证书信息、漏洞信息、扫描历史、标签信息等","jurisdiction":true},{"module_name":"服务数据","functional_item":"C段检索","desc":"一键展示某一IP资产所属C段探测出的服务资产","jurisdiction":false},{"module_name":"服务数据","functional_item":"一键Hunting","desc":"一键展示所有Body相同的全网服务资产","jurisdiction":true},{"module_name":"服务数据","functional_item":"重新扫描","desc":"可针对检索语句包含范围内的所有服务开启新的探测扫描任务并获取最新结果数据","jurisdiction":true},{"module_name":"服务数据","functional_item":"过滤无效请求","desc":"可过滤掉400,401,502等状态码和无法解析的协议/端口的资产数据","jurisdiction":true},{"module_name":"服务数据","functional_item":"排除蜜罐","desc":"一键排除所有的蜜罐服务","jurisdiction":false},{"module_name":"服务数据","functional_item":"排除CDN","desc":"一键排除所有的CDN服务资产数据","jurisdiction":true},{"module_name":"服务数据","functional_item":"收藏列表","desc":"一键导出收藏的资产检索语句进行检索","jurisdiction":true},{"module_name":"服务数据","functional_item":"最新数据","desc":"一键查看最新一条的测绘服务数据","jurisdiction":false},{"module_name":"服务数据","functional_item":"大模型智能对话语句转译（360 安全大模型）","desc":"可支持360安全大模型智能自然语言对话，翻译为Quake检索语句，并一键直接进行检索查询","jurisdiction":true},{"module_name":"服务数据","functional_item":"大模型智能特征推荐（360安全大模型）","desc":"可支持360安全大模型智能对服务特征分析，并推荐相关联的特征进行检索","jurisdiction":false},{"module_name":"服务数据","functional_item":"网站icon数据","desc":"允许通过主动上传或站内查询的方式，以网站icon图标为检索要素进行资产检索，并使用相似Icon功能进行扩展查找，找到资产同源性的拓展服务。","jurisdiction":false},{"module_name":"服务数据","functional_item":"分类聚合统计和排名","desc":"可基于端口、服务协议，运营商、操作系统、国家、省份、城市、自治域编号、自治域名称、网站服务器、网站标题、应用、类别、类型、层级、厂商等进行分类聚合统计，并给予统计数据进行排名，还可以直接检索展示结果","jurisdiction":false},{"module_name":"服务数据","functional_item":"数据统计仪表盘","desc":"可按照世界地图，中国地图的方式呈现国家和省份的统计结果","jurisdiction":false},{"module_name":"服务数据","functional_item":"聚合分析仪表盘","desc":"可按照基本信息，自治域与运营商，IP地理定位，协议深度识别，组件等大类中的14种分类进行聚合统计的排名展示","jurisdiction":false},{"module_name":"服务数据","functional_item":"导出数据","desc":"可在基本信息，网站信息，服务数据，IP归属与定位，证书数据，单位信息等大类中任意选择导出数据的字段，并可以根据条件选择数据去重，提供数据导出，可支持导出格式选择","jurisdiction":true},{"module_name":"主机数据","functional_item":"基础主机信息","desc":"根据检索条件输出呈现网络空间测绘基础主机数据，可查看详情和添加监测，具体数据信息字段包括但不限于：IP，主机名，自治域编号，自治域，运营商，IP归属，扫描时间，传输层协议，端口，服务层协议，证书，应用类型等","jurisdiction":false},{"module_name":"主机数据","functional_item":"IP详情信息","desc":"IP详情信息是基于IP相关信息的聚合。详情页面的信息包含：IP概览、层级信息、端口详情、Whois信息、证书信息、漏洞信息、扫描历史、标签信息等","jurisdiction":false},{"module_name":"主机数据","functional_item":"重新扫描","desc":"可针对检索语句包含范围内的所有IP开启新的探测扫描任务并获取最新结果数据","jurisdiction":false},{"module_name":"主机数据","functional_item":"收藏列表","desc":"一键导出收藏的资产检索语句进行检索","jurisdiction":false},{"module_name":"主机数据","functional_item":"最新数据","desc":"一键查看最新一条的测绘主机数据","jurisdiction":true},{"module_name":"主机数据","functional_item":"大模型智能对话语句转译（360安全大模型）","desc":"可支持360安全大模型智能自然语言对话，翻译为Quake检索语句，并一键直接进行检索查询","jurisdiction":true},{"module_name":"主机数据","functional_item":"分类聚合统计和排名","desc":"可基于端口、服务协议，运营商、操作系统、国家、省份、城市、自治域编号、自治域名称等进行分类聚合统计，并给予统计数据进行排名，还可以直接检索展示结果","jurisdiction":true},{"module_name":"主机数据","functional_item":"数据统计仪表盘","desc":"可按照世界地图，中国地图的方式呈现国家和省份的统计结果","jurisdiction":false},{"module_name":"主机数据","functional_item":"导出数据","desc":"可在基本信息，IP归属与定位等大类中任意选择导出数据的字段，并可以根据条件选择数据去重，提供数据导出，可支持导出格式选择","jurisdiction":true},{"module_name":"图像数据","functional_item":"网站首页截图信息","desc":"可支持网站服务首页截图的检索查询，包括截图图像，对应IP详情，端口，协议，属性标签，地理位置，产品组件等关联信息。","jurisdiction":false},{"module_name":"图像数据","functional_item":"摄像头拍摄图像信息","desc":"可支持摄像头拍摄图像的查询，包括图像，对应IP详情，端口，协议，地理位置，产品组件等关联信息","jurisdiction":true},{"module_name":"图像数据","functional_item":"登录页截图信息","desc":"可支持系统服务登录页面截图的检索查询，包括截图图像，对应IP详情，端口，协议，属性标签，地理位置，产品组件等关联信息。","jurisdiction":false},{"module_name":"图像数据","functional_item":"网站icon数据","desc":"允许通过主动上传或站内查询的方式，以网站icon图标为检索要素进行资产检索，并使用相似Icon功能进行扩展查找，找到资产同源性的拓展服务。","jurisdiction":true},{"module_name":"图像数据","functional_item":"大模型智能图像标签及查询（360 VL视觉大模型）","desc":"可支持360 VL视觉大模型智能检测图像场景识别，包括：飞机，轮船，汽车，机场，草地等等，可通过智能识别的标签进行查询分析","jurisdiction":true},{"module_name":"图像数据","functional_item":"OCR识别和查询","desc":"可支持对图像信息中的各种文字进行OCR识别，并根据文字查询，文字种类包括但不限于：中文，英文，法文，俄文，阿拉伯文等","jurisdiction":true},{"module_name":"图像数据","functional_item":"分类聚合统计和排名","desc":"可基于端口、服务协议，运营商、操作系统、国家、省份、城市、自治域编号、自治域名称、网站服务器、网站标题、应用、类别、类型、层级、厂商等进行分类聚合统计，并给予统计数据进行排名，还可以直接检索展示结果","jurisdiction":true},{"module_name":"图像数据","functional_item":"关联基础服务信息并导出","desc":"可从图像信息结果中查询其对应的基础服务信息和IP详情，并选择导出数据服务","jurisdiction":true},{"module_name":"数字证书","functional_item":"测绘数字证书信息","desc":"根据检索条件输出呈现网络空间测绘数字证书的数据信息，包括：具有特定主体备用名称（SAN）的证书，具有特定颁发者名称的证书，具有特定公钥算法的证书，具有特定证书有效期的证书等。","jurisdiction":false},{"module_name":"数字证书","functional_item":"证书指纹","desc":"可自动提取证书的指纹，包括SHA1，SHA256，MD5等算法","jurisdiction":false},{"module_name":"数字证书","functional_item":"证书公钥","desc":"可自动提取证书的公钥","jurisdiction":false},{"module_name":"数字证书","functional_item":"证书签名","desc":"可自动提取证书的签名信息","jurisdiction":true},{"module_name":"数字证书","functional_item":"证书扩展","desc":"可自动提取证书的扩展信息","jurisdiction":true},{"module_name":"数字证书","functional_item":"大模型智能证书关联服务拓展（360安全大模型）","desc":"可支持360安全大模型智能分析证书关联的服务资产，并推荐相关联的服务进行检索","jurisdiction":false},{"module_name":"数字证书","functional_item":"证书异常分析","desc":"可自动验证证书，判断证书是否过期","jurisdiction":true},{"module_name":"数字证书","functional_item":"分类聚合统计和排名","desc":"可基于证书颁发者，证书颁发者所属国家，证书持有者所属国家，证书验证类型，证书是否可信，证书是否过期等进行分类聚合统计，并给予统计数据进行排名，还可以直接检索展示结果","jurisdiction":true},{"module_name":"漏洞信息","functional_item":"公开漏洞对应服务信息","desc":"根据检索条件输出呈现网络空间测绘漏洞对应的基础服务数据","jurisdiction":true},{"module_name":"漏洞信息","functional_item":"公开漏洞信息","desc":"用户可通过漏洞发布时间、漏洞等级、漏洞类型等快速检索公开漏洞。系统对所收录到的漏洞进行趋势分析，对其影响范围，包括影响产品及厂商的数量进行统计","jurisdiction":true},{"module_name":"漏洞信息","functional_item":"分类聚合统计和排名","desc":"可基于漏洞名称，漏洞类型，漏洞等级，端口，运营商，国家，省份，城市，自治域等进行分类聚合统计，并给予统计数据进行排名，还可以直接检索展示结果","jurisdiction":false},{"module_name":"漏洞信息","functional_item":"数据统计仪表盘","desc":"可按照世界地图，中国地图的方式呈现国家和省份的统计结果","jurisdiction":false},{"module_name":"漏洞信息","functional_item":"导出数据","desc":"可在基本信息，IP归属与定位，漏洞数据信息等大类中任意选择导出数据的字段，并可以根据条件选择数据去重，提供数据导出，可支持导出格式选择","jurisdiction":false},{"module_name":"情报信息","functional_item":"安全情报信息","desc":"根据检索条件输出呈现网络空间测绘到的各类安全情报数据，可支持经典模式和列表模式，","jurisdiction":true},{"module_name":"情报信息","functional_item":"关联基础服务信息","desc":"可关联查询到基础服务信息和IP详情信息","jurisdiction":false},{"module_name":"情报信息","functional_item":"分类聚合统计和排名","desc":"可基于服务特征进行聚合","jurisdiction":true},{"module_name":"情报信息","functional_item":"业务标签","desc":"可支持常用业务属性标签查询筛选","jurisdiction":false},{"module_name":"情报信息","functional_item":"导出数据","desc":"可在基本信息，IP归属与定位，证书数据，单位信息，情报数据信息等大类中任意选择导出数据的字段，并可以根据条件选择数据去重，提供数据导出，可支持导出格式选择","jurisdiction":true},{"module_name":"目标单位","functional_item":"全国行政区域内单位信息","desc":"根据检索条件输出呈现全国行政区域内各类组织机构的单位信息，包括各类政府单位，事业单位和企业单位等","jurisdiction":true},{"module_name":"目标单位","functional_item":"分类聚合统计和排名","desc":"可基于单位归属区域，单位行业类型等进行分类聚合统计，并给予统计数据进行排名，还可以直接检索展示结果","jurisdiction":false},{"module_name":"目标单位","functional_item":"单位关联测绘服务","desc":"可支持提供与该单位关联测绘到的服务","jurisdiction":false},{"module_name":"目标单位","functional_item":"单位关联测绘IP","desc":"可支持提供与该单位关联测绘到的IP","jurisdiction":false},{"module_name":"目标资产","functional_item":"目标资产","desc":"可支持展示单位关联到的所有资产信息，包括业务系统，网站标题，IP地址，whois信息等","jurisdiction":false},{"module_name":"目标资产","functional_item":"分类聚合统计和排名","desc":"可基于单位归属区域，单位行业类型，IP归属区域，单位资产类型等进行分类聚合统计，并给予统计数据进行排名，还可以直接检索展示结果","jurisdiction":false},{"module_name":"目标资产","functional_item":"导出数据","desc":"可在单位信息等大类中任意选择导出数据的字段，并可以根据条件选择数据去重，提供数据导出，可支持导出格式选择","jurisdiction":true},{"module_name":"监测","functional_item":"监测任务管理","desc":"可支持对监测任务进行新建，编辑等管理功能","jurisdiction":true},{"module_name":"监测","functional_item":"监测预警管理","desc":"可支持对监测预警的触发进行选择和配置，支持资产异常，风险等","jurisdiction":false},{"module_name":"监测","functional_item":"监测结果管理","desc":"可支持对监测结果进行查询，导出","jurisdiction":false},{"module_name":"监测","functional_item":"监测仪表盘","desc":"可支持对监测结果进行多维度统计和展示","jurisdiction":false},{"module_name":"同源性拓展","functional_item":"资产同源性拓展任务管理","desc":"可根据资产特征进行多维度同源性拓展，支持任务管理","jurisdiction":true},{"module_name":"同源性拓展","functional_item":"资产同源性拓展结果管理","desc":"可支持对拓展结果解析查询，导出等","jurisdiction":false},{"module_name":"拓扑分析","functional_item":"拓扑分析任务管理","desc":"可根据拓扑与资产的关联性，进行资产服务的拓扑任务分析","jurisdiction":true},{"module_name":"拓扑分析","functional_item":"拓扑分析图形化输出","desc":"可多维度查看拓扑分析图像结果并导出拓扑数据","jurisdiction":false},{"module_name":"态势地图","functional_item":"资产态势","desc":"对测绘相关结果进行可视化的展示，对内部发现的资产、漏洞等信息可视化展示。\\n概览信息大屏展示负责对探测资产数据进行概览信息展示，由资产展示和漏洞信息两个大屏组成：资产展示大屏包含信息有今日新增资产数量、发现资产总数、网站总数、设备总数、端口总数、应用总数、漏洞总数、协议总数等；支持展示测绘资产TOP10；支持对探测资产进行时间趋势展示；对扫描到的资产进行归属，展示其在地理位置上的分布；\\n支持对检索结果进行统计，统计的维度包括搜索命中总数、Top5国家/省份/城市统计、Top5网络服务、Top5端口号、Top5应用产t品","jurisdiction":true},{"module_name":"态势地图","functional_item":"漏洞态势","desc":"基于漏洞数据实现全网漏洞地理分布可视化，对漏洞数据系统的相关结果进行可视化的展示，对内部发现的资产、漏洞等信息可视化展示，并提供动态效果。\\n漏洞地图可使用与前台检索逻辑一致的检索语法进行筛选，包括漏洞名称、漏洞类型、IP、国家、城市等，支持查看漏洞新增趋势变化，可通过直接在地图点击进行地图比例缩放，并动态显示该范围内的漏洞","jurisdiction":false},{"module_name":"挂图作战","functional_item":"地理区域反查","desc":"创新实现由地理位置反查IP资产对象信息，提供单次不超过1000个IP的全球地理位置分布统计。支持高精定位模式下的IP具体分布检索；给定地理位置检索该区域有关IP，直接关联漏洞信息，并获取全量数据返回","jurisdiction":false},{"module_name":"挂图作战","functional_item":"高精定位坐标信息","desc":"提供全球范围内街道级地理坐标定位，可在IP详情和高精反查模式当中进行应用","jurisdiction":true},{"module_name":"自动化报告","functional_item":"区域自动化报告","desc":"根据选定的资产信息要素和区域，自动化输出地区资产底数报告","jurisdiction":false},{"module_name":"自动化报告","functional_item":"产品自动化报告","desc":"根据选定的资产信息要素，自动化输出产品资产底数报告","jurisdiction":true},{"module_name":"自动化报告","functional_item":"单位自动化报告","desc":"根据选定的资产信息要素和单位，自动化输出单位资产底数报告","jurisdiction":true},{"module_name":"自动化报告","functional_item":"漏洞自动化报告","desc":"根据选定的漏洞和区域，自动化输出漏洞对应资产底数报告","jurisdiction":true},{"module_name":"订阅服务","functional_item":"多账号服务","desc":"便于实现具有跨级管理或保密需求的用户使用，限制账户重复登录、异地登录，实现高级权限管理","jurisdiction":true},{"module_name":"订阅服务","functional_item":"积分保障","desc":"为用户提供不限量积分用于数据导出","jurisdiction":true},{"module_name":"订阅服务","functional_item":"功能更新","desc":"用户在服务期内可不限量第一时间直接获得平台最新功能的使用权限，由于新功能可能存在多个子模块，Quake不保证能够开放全部权限","jurisdiction":true},{"module_name":"订阅服务","functional_item":"续费优惠","desc":"老用户续费优惠","jurisdiction":true}]')},"925c":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"favicon-wrapper"},[n("el-popover",{attrs:{placement:"bottom-end",width:"330",trigger:"click","popper-class":"favicon-popper "+("indexNew"===t.from?"index-favicon-popper":"")},model:{value:t.isShowFavicon,callback:function(e){t.isShowFavicon=e},expression:"isShowFavicon"}},[n("div",[n("div",{staticClass:"title",class:{"index-color":"indexNew"===t.from}},[n("span",[t._v(t._s(t.$t("search.icon_search")))]),n("i",{staticClass:"el-icon-close close",on:{click:t.onClose}})]),n("div",{staticClass:"des",class:{"index-color":"indexNew"===t.from}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"tip"}}),n("span",[t._v(t._s(t.$t("search.icon_search_tip")))])],1),n("div",{staticClass:"drag-container"},[n("el-upload",{staticClass:"upload",attrs:{drag:"",action:"/test","auto-upload":!1,"on-change":t.onUploadChange,accept:".bmp,.jpg,.jpeg,.png,.tif,.gif,.pcx,.tga,.exif,.fpx,.svg,.psd,.cdr,.pcd,.dxf,.ufo,.eps,.ai,.raw,.WMF,.webp,.ico","show-file-list":!1,multiple:""}},[n("div",[n("svg-icon",{attrs:{"icon-class":"drag","class-name":"svg"}}),n("span",[t._v(t._s(t.$t("search.drag_the_image")))]),n("span",{staticClass:"or"},[t._v(t._s(t.$t("global.or")))]),n("span",{staticClass:"file"},[t._v(t._s(t.$t("search.upload_the_file")))])],1)])],1),n("div",{staticClass:"example-des"},[t._v(t._s(t.$t("search.click_sample_favicon_tip")))]),t.faviconList.length?n("div",{staticClass:"icon-container"},[n("div",{staticClass:"left"},[n("img",{attrs:{src:t.faviconList[0].favicon,alt:""},on:{click:function(e){return t.onSearchFavicon(t.faviconList[0].dork)}}})]),n("div",{staticClass:"center"},t._l(t.faviconList.slice(1,7),(function(e,i){return n("img",{key:i,attrs:{src:e.favicon,alt:""},on:{click:function(n){return t.onSearchFavicon(e.dork)}}})})),0),n("div",{staticClass:"right"},t._l(t.faviconList.slice(7,11),(function(e,i){return n("img",{key:i,attrs:{src:e.favicon,alt:""},on:{click:function(n){return t.onSearchFavicon(e.dork)}}})})),0)]):t._e()]),n("div",{staticClass:"view-favicon",attrs:{slot:"reference"},slot:"reference"},[n("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.search_by_icon"),placement:"top"}},[n("svg-icon",{staticClass:"svg",style:{color:t.isShowFavicon?"#4279FD":"",fontSize:"index"===t.from?"28px":""},attrs:{"icon-class":"faviconSearch"}})],1)],1)])],1)},r=[],o=(n("99af"),n("ace4"),n("b0c0"),n("d3b7"),n("ac1f"),n("1276"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("69a0")),a=n.n(o),s={props:{from:{type:String,default:""},searchList:{type:Object,default:function(){return{}}}},data:function(){return{isShowFavicon:!1,faviconUrl:"",faviconList:[{dork:"12e3dac858061d088023b2bd48e2fa96",favicon:n("ca3d")},{dork:"587c37488cb060f2dffa18bc0cc9a684",favicon:n("6671")},{dork:"9a4abbd85e926d3bcbc5a32c3396f549",favicon:n("8335")},{dork:"ca6619b86c2f6e6068b69ba3aaddb7e4",favicon:n("7a47")},{dork:"891e510219786f543ca998282ed99f45",favicon:n("0c01")},{dork:"ba8ffd9e91ba069f1d6cd352cd5b9e93",favicon:n("5205")},{dork:"f3418a443e7d841097c714d69ec4bcb8",favicon:n("e52d")},{dork:"4dc17740ce7d4fba63add36e88a87937",favicon:n("a382")},{dork:"13901a67ddb198064ee302b953c4f2f3",favicon:n("1261")},{dork:"8a01ab03efeecef84bc77305b5247735",favicon:n("5f9f")},{dork:"d8d58339a918f43174456ea9249728bc",favicon:n("6fcd")}]}},methods:{onClose:function(){this.isShowFavicon=!1},onSearchFavicon:function(t){if(this.isShowFavicon=!1,"index"===this.from||"indexNew"===this.from){var e=this.searchList.searchVal;this.searchList.searchVal=e?"".concat(e,' AND favicon: "').concat(t,'"'):'favicon: "'.concat(t,'"')}"searchResult"===this.from&&this.$emit("onSearchFavicon",'favicon: "'.concat(t,'"'),!0)},onUploadChange:function(t){var e=this,n=new FileReader,i=t.raw?t.raw:t,r=new a.a.ArrayBuffer;n.readAsArrayBuffer(i),n.onload=function(t){r.append(t.target.result);var n=r.end();"home"===e.$route.name?e.$router.push({name:"searchResult",query:{searchVal:'favicon: "'.concat(n,'"'),selectIndex:"quake_service"}}):e.$emit("onSearchFavicon",'favicon: "'.concat(n,'"'))}},onChangeFaviconUrl:function(){var t=this;this.faviconUrl&&this.getBase64(this.faviconUrl,(function(e){var n=t.translateBase64ImgToFile(e,"fav.ico","image/x-icon");t.onUploadChange(n)}))},getBase64:function(t,e){var n=new Image,i="";n.src="".concat(t,"?v=").concat(Math.random()),n.setAttribute("crossOrigin","Anonymous"),n.onload=function(){var t=document.createElement("canvas"),r=n.width,o=n.height;t.width=r,t.height=o,t.getContext("2d").drawImage(n,0,0,r,o),i=t.toDataURL("image/x-icon"),e(i)}},translateBase64ImgToFile:function(t,e,n){var i=t.split(","),r=atob(i[1]),o=r.length,a=new Uint8Array(o);while(o--)a[o]=r.charCodeAt(o);return new File([a],e,{type:n})}}},l=s,c=(n("4448"),n("3f2a"),n("2877")),u=Object(c["a"])(l,i,r,!1,null,"0c68d88f",null);e["a"]=u.exports},9332:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=i},9351:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("516b");function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e){var n=e[1],r=e[2],s=i.mod(i.toRadian(e[3]),2*Math.PI),l=e[4],c=e[5],u=t[0],h=t[1],d=e[6],p=e[7],f=Math.cos(s)*(u-d)/2+Math.sin(s)*(h-p)/2,g=-1*Math.sin(s)*(u-d)/2+Math.cos(s)*(h-p)/2,m=f*f/(n*n)+g*g/(r*r);m>1&&(n*=Math.sqrt(m),r*=Math.sqrt(m));var v=n*n*(g*g)+r*r*(f*f),y=v?Math.sqrt((n*n*(r*r)-v)/v):1;l===c&&(y*=-1),isNaN(y)&&(y=0);var b=r?y*n*g/r:0,x=n?y*-r*f/n:0,w=(u+d)/2+Math.cos(s)*b-Math.sin(s)*x,_=(h+p)/2+Math.sin(s)*b+Math.cos(s)*x,C=[(f-b)/n,(g-x)/r],A=[(-1*f-b)/n,(-1*g-x)/r],I=a([1,0],C),S=a(C,A);return o(C,A)<=-1&&(S=Math.PI),o(C,A)>=1&&(S=0),0===c&&S>0&&(S-=2*Math.PI),1===c&&S<0&&(S+=2*Math.PI),{cx:w,cy:_,rx:i.isSamePoint(t,[d,p])?0:n,ry:i.isSamePoint(t,[d,p])?0:r,startAngle:I,endAngle:I+S,xRotation:s,arcFlag:l,sweepFlag:c}}e.default=s},"938d":function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d}));var i=12,r="sans-serif",o=i+"px "+r,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function c(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-a)/s;e[i]=r}return e}var u=c(l),h={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=h.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||o),t.measureText(n);n=n||"",r=r||o;var s=/(\d+)px/.exec(r),l=s&&+s[1]||i,c=0;if(r.indexOf("mono")>=0)c=l*n.length;else for(var d=0;d<n.length;d++){var p=u[n[d]];c+=null==p?l:p*l}return{width:c}}}(),loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function d(t){for(var e in h)t[e]&&(h[e]=t[e])}},"93e9":function(t,e,n){"use strict";n.r(e),n.d(e,"RenderPass",(function(){return o}));var i=n("5a89"),r=n("1b53");class o extends r["Pass"]{constructor(t,e,n,r,o){super(),this.scene=t,this.camera=e,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=void 0!==o?o:0,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new i["Color"]}render(t,e,n){const i=t.autoClear;let r,o;t.autoClear=!1,void 0!==this.overrideMaterial&&(o=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor&&(t.getClearColor(this._oldClearColor),r=t.getClearAlpha(),t.setClearColor(this.clearColor,this.clearAlpha)),this.clearDepth&&t.clearDepth(),t.setRenderTarget(this.renderToScreen?null:n),this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),t.render(this.scene,this.camera),this.clearColor&&t.setClearColor(this._oldClearColor,r),void 0!==this.overrideMaterial&&(this.scene.overrideMaterial=o),t.autoClear=i}}},"953de":function(t,e,n){"use strict";var i=n("7eda"),r=n.n(i);r.a},9555:function(t,e,n){"use strict";var i=n("436e"),r=n.n(i);r.a},"955b":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dialog-area-container"},["ai"===t.tabIndex&&"quake_service"===t.selectIndex?n("div",[n("div",{staticClass:"dialog-area",staticStyle:{size:"14px","line-height":"20px",background:"rgba(234, 237, 242, 0.3)"}},[n("div",{staticStyle:{"white-space":"pre-wrap",height:"520px",overflow:"auto"}},[t._v(t._s(t.showAllData.aiAgreements))])])]):"response"===t.tabIndex&&"quake_service"===t.selectIndex&&"mainBody"===t.btnType?n("div",[n("div",{staticClass:"response-tab-line"},[t.currentButton===t.$t("search.main_body")&&"global"===t.responseActiveTab?n("span",{staticClass:"copy",attrs:{"data-clipboard-text":t.showAllData.service.http.body},on:{click:function(e){return t.copy("copy")}}},[n("svg-icon",{attrs:{"icon-class":"copy"}}),t._v(" "+t._s(t.$t("search.copy"))+" ")],1):t._e(),n("span",{staticClass:"response-tab"},[n("span",{staticClass:"item-tab",class:{"active-tab":t.currentButton===t.$t("search.main_body")},on:{click:function(e){t.currentButton=t.$t("search.main_body")}}},[t._v(t._s(t.$t("search.main_body")))]),n("span",{staticClass:"item-tab",class:{"active-tab":t.currentButton===t.$t("search.split_word")},on:{click:function(e){t.currentButton=t.$t("search.split_word")}}},[t._v(t._s(t.$t("search.split_word")))])]),t.currentButton===t.$t("search.main_body")&&"response"===t.tabIndex&&"global"===t.responseActiveTab?n("span",{staticClass:"highlight-input"},[n("span",{staticClass:"find-btn-box"},[n("span",{staticClass:"number"},[t._v(t._s(t.total?t.highlightWordIndex+1:0)+"/"+t._s(t.total))]),n("svg-icon",{staticClass:"svg first",attrs:{"icon-class":"arrow"},on:{click:t.onPreSelector}}),n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"arrow"},on:{click:t.onNextSelector}})],1),n("el-input",{staticClass:"search-input",attrs:{placeholder:"请输入","prefix-icon":"el-icon-search",clearable:""},on:{input:t.onSearchKeyword},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1):t._e()]),"redirect"!==t.responseActiveTab?n("div",{staticClass:"dialog-area",class:{"flex-box":"mainBody"===t.btnType&&"quake_service"===t.selectIndex&&t.currentButton===t.$t("search.split_word")}},[[t.showAllDataClone.service.http?n("div",{staticClass:"text-area"},[n("code",[n("pre",{staticStyle:{"white-space":"pre-wrap","word-wrap":"break-word",overflow:"auto"},domProps:{innerHTML:t._s(t.xss.process(t.showAllDataClone.service.http.body))}})])]):t._e(),"mainBody"===t.btnType&&"quake_service"===t.selectIndex&&t.currentButton===t.$t("search.split_word")?n("div",{staticClass:"split-word"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"arrow"}}),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.splitWordLoading,expression:"splitWordLoading"}],staticClass:"field"},t._l(t.splitWordList,(function(e,i){return n("span",{key:i,on:{click:function(n){return t.onSearchSplitWord(t.tabIndex,e)}}},[t._v(t._s(e))])})),0)],1):t._e()]],2):t._e()]):["response"===t.tabIndex&&"quake_service"===t.selectIndex?n("div",{staticClass:"response-tab-line"},["global"===t.responseActiveTab?n("span",{staticClass:"copy",attrs:{"data-clipboard-text":t.showAllData.service.response},on:{click:function(e){return t.copy("copy")}}},[n("svg-icon",{attrs:{"icon-class":"copy"}}),t._v(" "+t._s(t.$t("search.copy"))+" ")],1):t._e(),n("span",{staticClass:"response-tab"},[n("span",{staticClass:"item-tab",class:{"active-tab":"global"===t.responseActiveTab},on:{click:function(e){t.responseActiveTab="global"}}},[t._v("全部响应")]),n("span",{staticClass:"item-tab",class:{"active-tab":"participle"===t.responseActiveTab},on:{click:function(e){t.responseActiveTab="participle"}}},[t._v("分词")]),t.showAllData.redirectList&&t.showAllData.redirectList.length?n("span",{staticClass:"item-tab",class:{"active-tab":"redirect"===t.responseActiveTab},on:{click:function(e){t.responseActiveTab="redirect"}}},[t._v("跳转列表")]):t._e()]),"response"===t.tabIndex&&"splitWord"!==t.btnType&&"global"===t.responseActiveTab?n("span",{staticClass:"highlight-input"},[n("span",{staticClass:"find-btn-box"},[n("span",{staticClass:"number"},[t._v(t._s(t.total?t.highlightWordIndex+1:0)+"/"+t._s(t.total))]),n("svg-icon",{staticClass:"svg first",attrs:{"icon-class":"arrow"},on:{click:t.onPreSelector}}),n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"arrow"},on:{click:t.onNextSelector}})],1),n("el-input",{staticClass:"search-input",attrs:{placeholder:"请输入","prefix-icon":"el-icon-search",clearable:""},on:{input:t.onSearchKeyword},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1):t._e()]):t._e(),"response"===t.tabIndex&&"redirect"!==t.responseActiveTab&&t.showAllDataClone.service&&t.showAllDataClone.service.responseLength&&t.showAllDataClone.service.responseLength>5e4?n("div",{staticStyle:{"line-height":"20px"}},[t._v(" 小贴士：由于数据量过大，我们已为您自动过滤超大数据，结果如下 ")]):t._e(),"redirect"!==t.responseActiveTab?n("div",{staticClass:"dialog-area",class:{"flex-box":"splitWord"===t.btnType&&"quake_service"===t.selectIndex&&t.includesSplitWord.includes(t.tabIndex)}},["quake_vulnerability"!==t.selectIndex?["image"===t.tabIndex?[n("div",{staticClass:"text-area img-area"},[n("div",{staticClass:"detail-container"},[n("div",{staticClass:"left"},[[n("el-image",{staticClass:"post-img",attrs:{src:"data:"+t.showAllDataClone.currentImg.mime+";base64,"+t.showAllDataClone.currentImg.data,"preview-src-list":["data:"+t.showAllDataClone.currentImg.mime+";base64,"+t.showAllDataClone.currentImg.data]}}),n("div",{staticClass:"tag-container"},[t._l(t.showAllDataClone.currentImg.tags,(function(e,i){return[i<3?n("span",{key:i,staticClass:"tag"},[t._v(t._s(e))]):t._e()]}))],2)]],2),n("div",{staticClass:"right"},[n("div",{staticClass:"ocr-title"},[t._v("OCR文字内容识别")]),n("div",{staticClass:"ocr-line"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"ocr"}}),n("div",[t._v(t._s(t.showAllDataClone.currentImg.ocr))])],1)])]),t.showAllDataClone.images.length>1?n("div",{staticClass:"history-img-container"},t._l(t.showAllDataClone.images,(function(e,i){return n("div",{key:i,staticClass:"item-img-box",on:{click:function(n){return t.onChangeHistory(e)}}},[n("img",{attrs:{src:"data:"+e.mime+";base64,"+e.data,alt:"暂无图片"}}),e.time?n("div",{staticClass:"date-line"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"clock"}}),n("span",[t._v(t._s(t.dayjs(e.time).format("YYYY-MM-DD HH:mm:ss")))])],1):t._e()])})),0):t._e()])]:t.showAllDataClone.service?[n("div",{style:{display:"response"===t.tabIndex&&"splitWord"!==t.btnType&&"participle"===t.responseActiveTab?"flex":"block"}},["response"===t.tabIndex?n("div",{staticClass:"text-area",style:{width:"participle"===t.responseActiveTab?"50%":"100%"}},[n("code",[n("pre",{staticStyle:{"white-space":"pre-wrap","word-wrap":"break-word",overflow:"auto"},domProps:{innerHTML:t._s(t.xss.process(t.showAllDataClone.service.response))}})])]):t._e(),"response"===t.tabIndex&&"splitWord"!==t.btnType&&"participle"===t.responseActiveTab?n("div",{staticClass:"split-word"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"arrow"}}),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.splitWordLoading,expression:"splitWordLoading"}],staticClass:"field"},t._l(t.splitWordList,(function(e,i){return n("span",{key:i,on:{click:function(n){return t.onSearchSplitWord(t.tabIndex,e)}}},[t._v(t._s(e))])})),0)],1):t._e()]),"feature"===t.tabIndex?n("div",{staticClass:"text-area"},[n("el-table",{staticClass:"feature-table",attrs:{data:t.showAllDataClone.feature,border:"","show-header":!0,"max-height":510,"header-cell-style":{color:"#5d6166",fontWeight:"normal",fontSize:"14px"},"cell-style":{color:"#5d6166",fontSize:"14px"}}},[n("el-table-column",{attrs:{width:"120px",prop:"name",label:"名称"}}),n("el-table-column",{attrs:{prop:"grammar",width:"auto",label:"语法"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.grammar?n("span",{staticStyle:{cursor:"pointer"},on:{click:function(n){return t.onSearchGrammar(e.row.grammar)}}},[t._v(t._s(e.row.grammar))]):n("span",[t._v("-")])]}}],null,!1,1067695586)}),n("el-table-column",{attrs:{width:"140px",prop:"amount",label:"数据量"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.loading?n("i",{staticClass:"el-icon-loading"}):n("span",[t._v(t._s(e.row.amount&&e.row.amount.toLocaleString()))])]}}],null,!1,3405295067)})],1)],1):"cert"===t.tabIndex?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.showAllDataClone.service.cert,expression:"showAllDataClone.service.cert"}],staticClass:"text-area",attrs:{disabled:""},domProps:{value:t.showAllDataClone.service.cert},on:{input:function(e){e.target.composing||t.$set(t.showAllDataClone.service,"cert",e.target.value)}}}):"robots"===t.tabIndex?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.showAllDataClone.service.http.robots,expression:"showAllDataClone.service.http.robots"}],staticClass:"text-area",attrs:{disabled:""},domProps:{value:t.showAllDataClone.service.http.robots},on:{input:function(e){e.target.composing||t.$set(t.showAllDataClone.service.http,"robots",e.target.value)}}}):"sitemap"===t.tabIndex?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.showAllDataClone.service.http.sitemap,expression:"showAllDataClone.service.http.sitemap"}],staticClass:"text-area",attrs:{disabled:""},domProps:{value:t.showAllDataClone.service.http.sitemap},on:{input:function(e){e.target.composing||t.$set(t.showAllDataClone.service.http,"sitemap",e.target.value)}}}):"security_text"===t.tabIndex?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.showAllDataClone.service.http.security_text,expression:"showAllDataClone.service.http.security_text"}],staticClass:"text-area",attrs:{disabled:""},domProps:{value:t.showAllDataClone.service.http.security_text},on:{input:function(e){e.target.composing||t.$set(t.showAllDataClone.service.http,"security_text",e.target.value)}}}):"response"!==t.tabIndex&&"cert"!==t.tabIndex?[n("div",{staticClass:"tab-btn"},[n("span",{class:{"active-tab":"json"===t.jsonActiveName},on:{click:function(e){return t.onToggleDialogTab("json")}}},[t._v("JSON")]),n("span",{class:{"active-tab":"table"===t.jsonActiveName},on:{click:function(e){return t.onToggleDialogTab("table")}}},[t._v("Table")])]),n("div",[n("VJsoneditor",{directives:[{name:"show",rawName:"v-show",value:"json"===t.jsonActiveName,expression:"jsonActiveName === 'json'"}],attrs:{options:t.options,plus:!1,height:"480px"},model:{value:t.showAllDataClone.service[t.tabIndex],callback:function(e){t.$set(t.showAllDataClone.service,t.tabIndex,e)},expression:"showAllDataClone.service[tabIndex]"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:"table"===t.jsonActiveName,expression:"jsonActiveName === 'table'"}],staticClass:"json-table-container"},[n("div",{staticClass:"json-table-box"},[t._l(t.objectPlat(t.showAllDataClone.service[t.tabIndex]),(function(e,i,r){return["body"!==i?n("div",{key:r,staticClass:"json-table-item"},[n("div",{staticClass:"table-key"},[t._v(t._s(i))]),n("div",{staticClass:"table-value"},[n("span",[t._v(t._s(e))])])]):t._e()]}))],2)])],1)]:t._e()]:t._e(),"splitWord"===t.btnType&&"quake_service"===t.selectIndex&&t.includesSplitWord.includes(t.tabIndex)?n("div",{staticClass:"split-word"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"arrow"}}),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.splitWordLoading,expression:"splitWordLoading"}],staticClass:"field"},t._l(t.splitWordList,(function(e,i){return n("span",{key:i,on:{click:function(n){return t.onSearchSplitWord(t.tabIndex,e)}}},[t._v(t._s(e))])})),0)],1):t._e()]:["response"===t.tabIndex&&t.showAllDataClone.vulnerability?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.showAllDataClone.vulnerability.evidence_str,expression:"showAllDataClone.vulnerability.evidence_str"}],staticClass:"text-area",attrs:{disabled:""},domProps:{value:t.showAllDataClone.vulnerability.evidence_str},on:{input:function(e){e.target.composing||t.$set(t.showAllDataClone.vulnerability,"evidence_str",e.target.value)}}}):t._e(),t._v(" "),"response"!==t.tabIndex&&t.showAllDataClone.vulnerability&&t.showAllDataClone.vulnerability.evidence?[n("div",{staticClass:"tab-btn"},[n("span",{class:{"active-tab":"json"===t.jsonActiveName},on:{click:function(e){return t.onToggleDialogTab("json")}}},[t._v("JSON")]),n("span",{class:{"active-tab":"table"===t.jsonActiveName},on:{click:function(e){return t.onToggleDialogTab("table")}}},[t._v("Table")])]),n("div",[n("VJsoneditor",{directives:[{name:"show",rawName:"v-show",value:"json"===t.jsonActiveName,expression:"jsonActiveName === 'json'"}],attrs:{options:t.options,plus:!1,height:"560px"},model:{value:t.showAllDataClone.vulnerability.evidence[t.tabIndex],callback:function(e){t.$set(t.showAllDataClone.vulnerability.evidence,t.tabIndex,e)},expression:"showAllDataClone.vulnerability.evidence[tabIndex]"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:"table"===t.jsonActiveName,expression:"jsonActiveName === 'table'"}],staticClass:"json-table-container"},[n("div",{staticClass:"json-table-box"},[t._l(t.objectPlat(t.showAllDataClone.vulnerability.evidence[t.tabIndex]),(function(e,i,r){return["body"!==i?n("div",{key:r,staticClass:"json-table-item"},[n("div",{staticClass:"table-key"},[t._v(t._s(i))]),n("div",{staticClass:"table-value"},[n("span",[t._v(t._s(e))])])]):t._e()]}))],2)])],1)]:t._e()]],2):t._e(),"redirect"===t.responseActiveTab?n("div",{staticClass:"redirect-container"},[t._l(t.showAllData.redirectList,(function(e,i){return n("div",{key:i,staticClass:"redirect-item"},[n("div",{staticClass:"top-line"},[n("span",[n("span",{staticClass:"mark",on:{click:function(e){return t.onChangeViewRedirect(i)}}},[e.isCollapse?n("span",{staticClass:"plus"},[t._v("+")]):n("span",{staticClass:"reduce"})]),n("span",{staticClass:"tag"},[t._v(t._s(e.name))]),n("el-tooltip",{attrs:{effect:"dark",content:"双击复制",placement:"top"}},[n("span",{staticClass:"link",attrs:{"data-clipboard-text":e.url},on:{dblclick:function(e){return t.copy("link")}}},[t._v(t._s(e.url))])]),n("el-tooltip",{attrs:{effect:"dark",content:"跳转",placement:"top"}},[n("a",{attrs:{target:"_blank",href:e.url}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"forward"}})],1)])],1),n("span",{staticClass:"record"},[t._v("Data Redirect "+t._s(i+1))])]),e.isCollapse?t._e():n("div",{staticClass:"text-area-box"},[n("div",{staticClass:"copy-btn",attrs:{"data-clipboard-text":e.content},on:{click:function(e){return t.copy("copy-btn")}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}}),t._v(" 复制 ")],1),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"item.content"}],staticClass:"text-area",staticStyle:{"max-height":"350px",padding:"10px 30px","border-top":"1px solid #D8DAE3"},attrs:{disabled:""},domProps:{value:e.content},on:{input:function(n){n.target.composing||t.$set(e,"content",n.target.value)}}})])])}))],2):t._e()]],2)},r=[],o=(n("99af"),n("4160"),n("caad"),n("26e9"),n("4e82"),n("a434"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("6062"),n("2532"),n("3ca3"),n("466d"),n("5319"),n("498a"),n("159b"),n("ddb0"),n("2909")),a=(n("96cf"),n("e83a")),s=n("bcb2"),l=n.n(s),c=n("e581"),u=n("74a0"),h=n.n(u),d=n("5e38"),p=n.n(d),f=n("b311"),g=n.n(f),m={components:{VJsoneditor:l.a},props:{showAllData:{type:Object,default:function(){}},selectIndex:{type:String,default:""},tabIndex:{type:String,default:""},visible:{type:Boolean,default:!1},btnType:{type:String,default:""}},data:function(){return{xss:new p.a.FilterXSS({whiteList:{selfelement:["style","class"]}}),responseActiveTab:"global",jsonActiveName:"json",options:{mainMenuBar:!1,mode:"code",onEditable:function(){}},includesSplitWord:["response","cert"],splitWordList:[],splitWordLoading:!1,showAllDataClone:{},keyword:"",total:0,responseSelectorList:[],highlightWordIndex:0,currentButton:this.$t("search.main_body")}},created:function(){this.objectPlat=a["a"]},watch:{visible:{handler:function(t){if("ai"!==this.tabIndex&&(this.currentButton=this.$t("search.main_body"),this.responseActiveTab="global",this.showAllDataClone=this._.cloneDeep(this.showAllData),t&&"quake_service"===this.selectIndex&&this.includesSplitWord.includes(this.tabIndex)&&("mainBody"===this.btnType?this.MainBodypostSplitWord():this.postSplitWord()),t&&"quake_service"===this.selectIndex&&"response"===this.tabIndex))if(this.keyword="",this.highlightWordIndex=0,this.responseSelectorList=[],this.total=0,"mainBody"===this.btnType){var e=this.showAllDataClone.service.http.body,n=h()(e);this.showAllDataClone.service.http.body=n}else{var i=this.showAllDataClone.service.response,r=h()(i);this.showAllDataClone.service.response=r}},immediate:!0}},methods:{onToggleDialogTab:function(t){this.jsonActiveName=t},onChangeHistory:function(t){this.showAllDataClone.currentImg=t},postSplitWord:function(){var t,e,n,i,r,o;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return this.splitWordLoading=!0,this.splitWordList=[],t="service.".concat(this.tabIndex),e=this.showAllDataClone.service[this.tabIndex],n={field:t,text:e,latest:"true"===this.$route.query.latest||!0===this.$route.query.latest},a.next=7,regeneratorRuntime.awrap(Object(c["Z"])(n));case 7:i=a.sent,r=i.code,o=i.data,0===r&&(this.splitWordList=o),this.splitWordLoading=!1;case 11:case"end":return a.stop()}}),null,this)},MainBodypostSplitWord:function(){var t,e,n,i,r,o;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:if("quake_service"!==this.selectIndex||!this.includesSplitWord.includes(this.tabIndex)||"mainBody"!==this.btnType){a.next=12;break}return this.splitWordLoading=!0,this.splitWordList=[],t="service.http.body",e=this.showAllDataClone.service.http.body,n={field:t,text:e,latest:"true"===this.$route.query.latest||!0===this.$route.query.latest},a.next=8,regeneratorRuntime.awrap(Object(c["Z"])(n));case 8:i=a.sent,r=i.code,o=i.data,0===r&&(this.splitWordList=o),this.splitWordLoading=!1;case 12:case"end":return a.stop()}}),null,this)},onSearchSplitWord:function(t,e){this.$emit("onSearchSplitWord",t,e)},onSearchKeyword:function(){var t=this;if(this.total=0,this.highlightWordIndex=0,"quake_service"===this.selectIndex&&"response"===this.tabIndex){this.showAllDataClone=this._.cloneDeep(this.showAllData);var e="mainBody"===this.btnType?this.showAllDataClone.service.http.body:this.showAllDataClone.service.response,n=h()(e);if(this.keyword&&this.keyword.trim()){var i=["&lt;","&gt;","&quot;"];n=n.replace(new RegExp("&lt;","gm"),"---6---"),n=n.replace(new RegExp("&gt;","gm"),"666-666"),n=n.replace(new RegExp("&quot;","gm"),"---666"),n=n.replace(/\?/gm,"---999");var r=n.match(new RegExp(h()(this.keyword.trim().replace(/\?/gm,"---999")),"gim"));r&&(this.total=r.length,r=Object(o["a"])(new Set(r)).sort().reverse(),r.forEach((function(t){n=n.replace(new RegExp(t,"gm"),'<selfelement class="quake-highlight" style="background-color:yellow">'.concat(t,"</selfelement>"))}))),n=n.replace(new RegExp("---6---","gm"),"&lt;"),n=n.replace(new RegExp("666-666","gm"),"&gt;"),n=n.replace(new RegExp("---666","gm"),"&quot;"),n=n.replace(new RegExp("---999","gm"),"?"),i.includes(h()(this.keyword.trim()))&&(n=n.replace(new RegExp(h()(this.keyword.trim()),"gm"),'<selfelement class="quake-highlight" style="background-color:yellow">'.concat(h()(this.keyword.trim()),"</selfelement>"))),"mainBody"===this.btnType?this.showAllDataClone.service.http.body=n:this.showAllDataClone.service.response=n,this.$nextTick((function(){t.responseSelectorList=document.querySelectorAll(".quake-highlight"),t.total=t.responseSelectorList.length,t.responseSelectorList.forEach((function(t){t.style.backgroundColor="yellow"})),t.responseSelectorList&&t.responseSelectorList.length&&(t.responseSelectorList[0].scrollIntoView(),t.responseSelectorList[0].style.backgroundColor="#F7AB4F")}))}else this.showAllDataClone.service.response=n,this.responseSelectorList=[]}},onNextSelector:function(){this.responseSelectorList&&this.responseSelectorList.length&&(this.highlightWordIndex=this.highlightWordIndex+1>this.responseSelectorList.length-1?0:this.highlightWordIndex+1,this.responseSelectorList.forEach((function(t){t.style.backgroundColor="yellow"})),this.responseSelectorList[this.highlightWordIndex].style.backgroundColor="#F7AB4F",this.responseSelectorList[this.highlightWordIndex].scrollIntoView())},onPreSelector:function(){this.responseSelectorList&&this.responseSelectorList.length&&(this.highlightWordIndex=this.highlightWordIndex-1<0?this.responseSelectorList.length-1:this.highlightWordIndex-1,this.responseSelectorList.forEach((function(t){t.style.backgroundColor="yellow"})),this.responseSelectorList[this.highlightWordIndex].style.backgroundColor="#F7AB4F",this.responseSelectorList[this.highlightWordIndex].scrollIntoView())},copy:function(t){var e=this,n=new g.a(".".concat(t));n.on("success",(function(){e.$message({message:e.$t("global.copy_success"),type:"success"}),n.destroy()})),n.on("error",(function(){e.$message({message:"复制失败！",type:"warning"}),n.destroy()}))},onChangeViewRedirect:function(t){var e=this;if(this.showAllData.redirectList[t].isCollapse){var n=this.showAllData.redirectList.splice(t,1);this.showAllData.redirectList=n.concat(this.showAllData.redirectList),this.showAllData.redirectList.forEach((function(t,n){0===n?e.showAllData.redirectList[n].isCollapse=!e.showAllData.redirectList[n].isCollapse:e.$set(t,"isCollapse",!0)}))}else this.showAllData.redirectList[t].isCollapse=!this.showAllData.redirectList[t].isCollapse},onSearchGrammar:function(t){if(t&&t.trim()){var e=this.$router.resolve({name:"searchResult",query:{selectIndex:"quake_service",searchVal:t}}),n=e.href;window.open(n,"_blank")}}}},v=m,y=(n("613d"),n("2877")),b=Object(y["a"])(v,i,r,!1,null,"2864a3a4",null);e["a"]=b.exports},"95c4":function(t,e,n){},9648:function(t,e,n){},97049:function(t,e,n){"use strict";var i=n("3fb2"),r=n.n(i);r.a},9771:function(t,e,n){"use strict";n.r(e),n.d(e,"directoryOpen",(function(){return s})),n.d(e,"directoryOpenLegacy",(function(){return w})),n.d(e,"directoryOpenModern",(function(){return g})),n.d(e,"fileOpen",(function(){return o})),n.d(e,"fileOpenLegacy",(function(){return b})),n.d(e,"fileOpenModern",(function(){return h})),n.d(e,"fileSave",(function(){return c})),n.d(e,"fileSaveLegacy",(function(){return C})),n.d(e,"fileSaveModern",(function(){return v})),n.d(e,"supported",(function(){return i}));const i=(()=>{if("undefined"==typeof self)return!1;if("top"in self&&self!==top)try{top}catch(i){return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1})(),r=i?Promise.resolve().then((function(){return d})):Promise.resolve().then((function(){return x}));async function o(...t){return(await r).default(...t)}const a=i?Promise.resolve().then((function(){return m})):Promise.resolve().then((function(){return _}));async function s(...t){return(await a).default(...t)}const l=i?Promise.resolve().then((function(){return y})):Promise.resolve().then((function(){return A}));async function c(...t){return(await l).default(...t)}const u=async t=>{const e=await t.getFile();return e.handle=t,e};var h=async(t=[{}])=>{Array.isArray(t)||(t=[t]);const e=[];t.forEach((t,n)=>{e[n]={description:t.description||"Files",accept:{}},t.mimeTypes?t.mimeTypes.map(i=>{e[n].accept[i]=t.extensions||[]}):e[n].accept["*/*"]=t.extensions||[]});const n=await window.showOpenFilePicker({id:t[0].id,startIn:t[0].startIn,types:e,multiple:t[0].multiple||!1,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1}),i=await Promise.all(n.map(u));return t[0].multiple?i:i[0]},d={__proto__:null,default:h};function p(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return p=function(t){this.s=t,this.n=t.next},p.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):e(n.apply(this.s,arguments))}},new p(t)}const f=async(t,e,n=t.name,i)=>{const r=[],o=[];var a,s=!1,l=!1;try{for(var c,u=function(t){var e,n,i,r=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);r--;){if(n&&null!=(e=t[n]))return e.call(t);if(i&&null!=(e=t[i]))return new p(e.call(t));n="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}(t.values());s=!(c=await u.next()).done;s=!1){const a=c.value,s=`${n}/${a.name}`;"file"===a.kind?o.push(a.getFile().then(e=>(e.directoryHandle=t,e.handle=a,Object.defineProperty(e,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>s})))):"directory"!==a.kind||!e||i&&i(a)||r.push(f(a,e,s,i))}}catch(t){l=!0,a=t}finally{try{s&&null!=u.return&&await u.return()}finally{if(l)throw a}}return[...(await Promise.all(r)).flat(),...await Promise.all(o)]};var g=async(t={})=>{t.recursive=t.recursive||!1,t.mode=t.mode||"read";const e=await window.showDirectoryPicker({id:t.id,startIn:t.startIn,mode:t.mode});return f(e,t.recursive,void 0,t.skipDirectory)},m={__proto__:null,default:g},v=async(t,e=[{}],n=null,i=!1,r=null)=>{Array.isArray(e)||(e=[e]),e[0].fileName=e[0].fileName||"Untitled";const o=[];let a=null;if(t instanceof Blob&&t.type?a=t.type:t.headers&&t.headers.get("content-type")&&(a=t.headers.get("content-type")),e.forEach((t,e)=>{o[e]={description:t.description||"Files",accept:{}},t.mimeTypes?(0===e&&a&&t.mimeTypes.push(a),t.mimeTypes.map(n=>{o[e].accept[n]=t.extensions||[]})):a?o[e].accept[a]=t.extensions||[]:o[e].accept["*/*"]=t.extensions||[]}),n)try{await n.getFile()}catch(t){if(n=null,i)throw t}const s=n||await window.showSaveFilePicker({suggestedName:e[0].fileName,id:e[0].id,startIn:e[0].startIn,types:o,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1});!n&&r&&r(s);const l=await s.createWritable();if("stream"in t){const e=t.stream();return await e.pipeTo(l),s}return"body"in t?(await t.body.pipeTo(l),s):(await l.write(await t),await l.close(),s)},y={__proto__:null,default:v},b=async(t=[{}])=>(Array.isArray(t)||(t=[t]),new Promise((e,n)=>{const i=document.createElement("input");i.type="file";const r=[...t.map(t=>t.mimeTypes||[]),...t.map(t=>t.extensions||[])].join();i.multiple=t[0].multiple||!1,i.accept=r||"",i.style.display="none",document.body.append(i);const o=t=>{"function"==typeof a&&a(),e(t)},a=t[0].legacySetup&&t[0].legacySetup(o,()=>a(n),i),s=()=>{window.removeEventListener("focus",s),i.remove()};i.addEventListener("click",()=>{window.addEventListener("focus",s)}),i.addEventListener("change",()=>{window.removeEventListener("focus",s),i.remove(),o(i.multiple?Array.from(i.files):i.files[0])}),"showPicker"in HTMLInputElement.prototype?i.showPicker():i.click()})),x={__proto__:null,default:b},w=async(t=[{}])=>(Array.isArray(t)||(t=[t]),t[0].recursive=t[0].recursive||!1,new Promise((e,n)=>{const i=document.createElement("input");i.type="file",i.webkitdirectory=!0;const r=t=>{"function"==typeof o&&o(),e(t)},o=t[0].legacySetup&&t[0].legacySetup(r,()=>o(n),i);i.addEventListener("change",()=>{let e=Array.from(i.files);t[0].recursive?t[0].recursive&&t[0].skipDirectory&&(e=e.filter(e=>e.webkitRelativePath.split("/").every(e=>!t[0].skipDirectory({name:e,kind:"directory"})))):e=e.filter(t=>2===t.webkitRelativePath.split("/").length),r(e)}),"showPicker"in HTMLInputElement.prototype?i.showPicker():i.click()})),_={__proto__:null,default:w},C=async(t,e={})=>{Array.isArray(e)&&(e=e[0]);const n=document.createElement("a");let i=t;"body"in t&&(i=await async function(t,e){const n=t.getReader(),i=new ReadableStream({start:t=>(async function e(){return n.read().then(({done:n,value:i})=>{if(!n)return t.enqueue(i),e();t.close()})})()}),r=new Response(i),o=await r.blob();return n.releaseLock(),new Blob([o],{type:e})}(t.body,t.headers.get("content-type"))),n.download=e.fileName||"Untitled",n.href=URL.createObjectURL(await i);const r=()=>{"function"==typeof o&&o()},o=e.legacySetup&&e.legacySetup(r,()=>o(),n);return n.addEventListener("click",()=>{setTimeout(()=>URL.revokeObjectURL(n.href),3e4),r()}),n.click(),null},A={__proto__:null,default:C}},"98c9":function(t,e,n){t.exports=n.p+"assets/img/statisticVul1.0f6fb812.png"},"992c":function(t,e,n){},"99ea":function(t,e,n){"use strict";function i(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function r(t){let e={},n=t.split("&");for(let i=0,r=n.length;i<r;i++){let t=n[i].split("=");e[decodeURIComponent(t[0])]=decodeURIComponent(t[1])}return e}n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}))},"9a0c":function(t,e,n){var i=n("342f");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(i)},"9a10":function(t,e,n){"use strict";var i=n("8760"),r=n.n(i);r.a},"9a8c":function(t,e,n){"use strict";var i=n("e330"),r=n("ebb5"),o=n("145e"),a=i(o),s=r.aTypedArray,l=r.exportTypedArrayMethod;l("copyWithin",(function(t,e){return a(s(this),t,e,arguments.length>2?arguments[2]:void 0)}))},"9ab4":function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return l})),n.d(e,"__metadata",(function(){return c})),n.d(e,"__awaiter",(function(){return u})),n.d(e,"__generator",(function(){return h})),n.d(e,"__exportStar",(function(){return d})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return f})),n.d(e,"__spread",(function(){return g})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__await",(function(){return v})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return x})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return _})),n.d(e,"__importDefault",(function(){return C}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function s(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,i){e(n,i,t)}}function c(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,i){return new(n||(n=Promise))((function(r,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i["throw"](t))}catch(e){o(e)}}function l(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function h(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function d(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function p(t){var e="function"===typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function f(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(i=o.next()).done)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return a}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{l(r[t](e))}catch(n){h(o[0][3],n)}}function l(t){t.value instanceof v?Promise.resolve(t.value.v).then(c,u):h(o[0][2],t)}function c(t){s("next",t)}function u(t){s("throw",t)}function h(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:v(t[i](e)),done:"return"===i}:r?r(e):e}:r}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"===typeof p?p(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){e=t[n](e),r(i,o,e.done,e.value)}))}}function r(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function _(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function C(t){return t&&t.__esModule?t:{default:t}}},"9ab4f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},"9cd1":function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"updateProps",(function(){return Gl})),n.d(i,"initProps",(function(){return Hl})),n.d(i,"removeElement",(function(){return Ul})),n.d(i,"removeElementWithFadeOut",(function(){return Yl})),n.d(i,"isElementRemoved",(function(){return Wl})),n.d(i,"extendShape",(function(){return lm})),n.d(i,"extendPath",(function(){return um})),n.d(i,"registerShape",(function(){return hm})),n.d(i,"getShapeClass",(function(){return dm})),n.d(i,"makePath",(function(){return pm})),n.d(i,"makeImage",(function(){return fm})),n.d(i,"mergePath",(function(){return mm})),n.d(i,"resizePath",(function(){return vm})),n.d(i,"subPixelOptimizeLine",(function(){return ym})),n.d(i,"subPixelOptimizeRect",(function(){return bm})),n.d(i,"subPixelOptimize",(function(){return xm})),n.d(i,"getTransform",(function(){return wm})),n.d(i,"applyTransform",(function(){return _m})),n.d(i,"transformDirection",(function(){return Cm})),n.d(i,"groupTransition",(function(){return Sm})),n.d(i,"clipPointsByRect",(function(){return Mm})),n.d(i,"clipRectByRect",(function(){return km})),n.d(i,"createIcon",(function(){return Em})),n.d(i,"linePolygonIntersect",(function(){return Tm})),n.d(i,"lineLineIntersect",(function(){return Om})),n.d(i,"setTooltipConfig",(function(){return Lm})),n.d(i,"traverseElements",(function(){return Rm})),n.d(i,"Group",(function(){return _i})),n.d(i,"Image",(function(){return qa})),n.d(i,"Text",(function(){return _s})),n.d(i,"Circle",(function(){return Qf})),n.d(i,"Ellipse",(function(){return tg})),n.d(i,"Sector",(function(){return yg})),n.d(i,"Ring",(function(){return wg})),n.d(i,"Polygon",(function(){return Sg})),n.d(i,"Polyline",(function(){return Eg})),n.d(i,"Rect",(function(){return rs})),n.d(i,"Line",(function(){return jg})),n.d(i,"BezierCurve",(function(){return Ng})),n.d(i,"Arc",(function(){return Vg})),n.d(i,"IncrementalDisplayable",(function(){return rm})),n.d(i,"CompoundPath",(function(){return Hg})),n.d(i,"LinearGradient",(function(){return Yg})),n.d(i,"RadialGradient",(function(){return qg})),n.d(i,"BoundingRect",(function(){return Mt})),n.d(i,"OrientedBoundingRect",(function(){return em})),n.d(i,"Point",(function(){return vt})),n.d(i,"Path",(function(){return Va}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var a=n("3ccf"),s=n("0cef");function l(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function c(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t){return[t[0],t[1]]}function h(t,e,n){return t[0]=e,t[1]=n,t}function d(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function p(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function f(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function g(t){return Math.sqrt(m(t))}function m(t){return t[0]*t[0]+t[1]*t[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=g(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function b(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=b;function w(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var _=w;function C(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function A(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function I(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function S(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var M=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),k=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new M(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new M(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new M(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new M(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new M(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new M(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),E=k,T=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,c=r[t][l];return c&&c.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var c=i[l];if(!r||!r.filter||null==c.query||r.filter(t,c.query))switch(o){case 0:c.h.call(a);break;case 1:c.h.call(a,e[0]);break;case 2:c.h.call(a,e[0],e[1]);break;default:c.h.apply(a,e.slice(1,o-1));break}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),O=T,P=Math.log(2);function j(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/P);return t[n][l]}var c=i|1<<n,u=n+1;while(i&1<<u)u++;for(var h=0,d=0,p=0;d<s;d++){var f=1<<d;f&r||(h+=(p%2?-1:1)*t[n][d]*j(t,e-1,u,c,r|f,o),p++)}return o[a]=h,h}function L(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=j(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*j(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var D="___zrEVENTSAVED",R=[];function B(t,e,n,i,r){return N(R,e,i,r,!0)&&N(t,n,R[0],R[1])}function N(t,e,n,i,r){if(e.getBoundingClientRect&&a["a"].domSupported&&!V(e)){var o=e[D]||(e[D]={}),s=F(e,o),l=z(s,o,r);if(l)return l(t,n,i),!0}return!1}function F(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,c=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function z(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=t[c].getBoundingClientRect(),h=2*c,d=u.left,p=u.top;a.push(d,p),l=l&&o&&d===o[h]&&p===o[h+1],s.push(t[c].offsetLeft,t[c].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?L(s,a):L(a,s))}function V(t){return"CANVAS"===t.nodeName.toUpperCase()}var G=/([&<>"'])/g,H={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function W(t){return null==t?"":(t+"").replace(G,(function(t,e){return H[e]}))}var U=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z=[],Y=a["a"].browser.firefox&&+a["a"].browser.version.split(".")[0]<39;function X(t,e,n,i){return n=n||{},i?q(t,e,n):Y&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):q(t,e,n),n}function q(t,e,n){if(a["a"].domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(V(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(N(Z,t,i,r))return n.zrX=Z[0],void(n.zrY=Z[1])}n.zrX=n.zrY=0}function K(t){return t||window.event}function Q(t,e,n){if(e=K(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&X(t,o,e,n)}else{X(t,e,e,n);var a=J(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&U.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function J(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function $(t,e,n,i){t.addEventListener(e,n,i)}function tt(t,e,n,i){t.removeEventListener(e,n,i)}var et=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function nt(t){return 2===t.which||3===t.which}var it=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=X(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in at)if(at.hasOwnProperty(e)){var n=at[e](this._track,t);if(n)return n}},t}();function rt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function ot(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var at={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=rt(i)/rt(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=ot(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function st(){return[1,0,0,1,0,0]}function lt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ct(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ut(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function ht(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function dt(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],c=Math.sin(n),u=Math.cos(n);return t[0]=i*u+a*c,t[1]=-i*c+a*u,t[2]=r*u+s*c,t[3]=-r*c+u*s,t[4]=u*o+c*l,t[5]=u*l-c*o,t}function pt(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function ft(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function gt(t){var e=st();return ct(e,t),e}var mt=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),vt=mt,yt=Math.min,bt=Math.max,xt=new vt,wt=new vt,_t=new vt,Ct=new vt,At=new vt,It=new vt,St=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=yt(t.x,this.x),n=yt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=bt(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=bt(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=st();return ht(r,r,[-e.x,-e.y]),pt(r,r,[n,i]),ht(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,c=e.x+e.width,u=e.y,h=e.y+e.height,d=!(o<l||c<r||s<u||h<a);if(n){var p=1/0,f=0,g=Math.abs(o-l),m=Math.abs(c-r),v=Math.abs(s-u),y=Math.abs(h-a),b=Math.min(g,m),x=Math.min(v,y);o<l||c<r?b>f&&(f=b,g<m?vt.set(It,-g,0):vt.set(It,m,0)):b<p&&(p=b,g<m?vt.set(At,g,0):vt.set(At,-m,0)),s<u||h<a?x>f&&(f=x,v<y?vt.set(It,0,-v):vt.set(It,0,y)):b<p&&(p=b,v<y?vt.set(At,0,v):vt.set(At,0,-y))}return n&&vt.copy(n,d?At:It),d},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}xt.x=_t.x=n.x,xt.y=Ct.y=n.y,wt.x=Ct.x=n.x+n.width,wt.y=_t.y=n.y+n.height,xt.transform(i),Ct.transform(i),wt.transform(i),_t.transform(i),e.x=yt(xt.x,wt.x,_t.x,Ct.x),e.y=yt(xt.y,wt.y,_t.y,Ct.y);var l=bt(xt.x,wt.x,_t.x,Ct.x),c=bt(xt.y,wt.y,_t.y,Ct.y);e.width=l-e.x,e.height=c-e.y}else e!==n&&t.copy(e,n)},t}(),Mt=St,kt="silent";function Et(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Tt}}function Tt(){et(this.event)}var Ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return o(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(O),Pt=function(){function t(t,e){this.x=t,this.y=e}return t}(),jt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Lt=new Mt(0,0,0,0),Dt=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Pt(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Ot,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new E(a),a}return o(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(s["k"](jt,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Nt(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Pt(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Pt(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,o=Et(e,t,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new Pt(t,e);if(Bt(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Mt(t-s,e-s,a,a),c=i.length-1;c>=0;c--){var u=i[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Lt.copy(u.getBoundingRect()),u.transform&&Lt.applyTransform(u.transform),Lt.intersect(l)&&o.push(u))}if(o.length)for(var h=4,d=Math.PI/12,p=2*Math.PI,f=0;f<s;f+=h)for(var g=0;g<p;g+=d){var m=t+f*Math.cos(g),v=e+f*Math.sin(g);if(Bt(o,r,m,v,n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new it);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Pt;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(O);function Rt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i=t,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||kt}return!1}function Bt(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=Rt(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==kt)){e.target=a;break}}}function Nt(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}s["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Dt.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Nt(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||x(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var Ft=Dt,zt=32,Vt=7;function Gt(t){var e=0;while(t>=zt)e|=1&t,t>>=1;return t+e}function Ht(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r<n&&i(t[r],t[r-1])<0)r++;Wt(t,e,r)}else while(r<n&&i(t[r],t[r-1])>=0)r++;return r-e}function Wt(t,e,n){n--;while(e<n){var i=t[e];t[e++]=t[n],t[n--]=i}}function Ut(t,e,n,i,r){for(i===e&&i++;i<n;i++){var o,a=t[i],s=e,l=i;while(s<l)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var c=i-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(c>0)t[s+c]=t[s+c-1],c--}t[s]=a}}function Zt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){s=i-r;while(l<s&&o(t,e[n+r+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(l<s&&o(t,e[n+r-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}a++;while(a<l){var u=a+(l-a>>>1);o(t,e[n+u])>0?a=u+1:l=u}return l}function Yt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){s=r+1;while(l<s&&o(t,e[n+r-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}else{s=i-r;while(l<s&&o(t,e[n+r+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a<l){var u=a+(l-a>>>1);o(t,e[n+u])<0?l=u:a=u+1}return l}function Xt(t,e){var n,i,r=Vt,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,i[a]=e,a+=1}function c(){while(a>1){var t=a-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;h(t)}}function u(){while(a>1){var t=a-2;t>0&&i[t-1]<i[t+1]&&t--,h(t)}}function h(r){var o=n[r],s=i[r],l=n[r+1],c=i[r+1];i[r]=s+c,r===a-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),a--;var u=Yt(t[l],t,o,s,0,e);o+=u,s-=u,0!==s&&(c=Zt(t[o+s-1],t,l,c,c-1,e),0!==c&&(s<=c?d(o,s,l,c):p(o,s,l,c)))}function d(n,i,o,a){var l=0;for(l=0;l<i;l++)s[l]=t[n+l];var c=0,u=o,h=n;if(t[h++]=t[u++],0!==--a)if(1!==i){var d,p,f,g=r;while(1){d=0,p=0,f=!1;do{if(e(t[u],s[c])<0){if(t[h++]=t[u++],p++,d=0,0===--a){f=!0;break}}else if(t[h++]=s[c++],d++,p=0,1===--i){f=!0;break}}while((d|p)<g);if(f)break;do{if(d=Yt(t[u],s,c,i,0,e),0!==d){for(l=0;l<d;l++)t[h+l]=s[c+l];if(h+=d,c+=d,i-=d,i<=1){f=!0;break}}if(t[h++]=t[u++],0===--a){f=!0;break}if(p=Zt(s[c],t,u,a,0,e),0!==p){for(l=0;l<p;l++)t[h+l]=t[u+l];if(h+=p,u+=p,a-=p,0===a){f=!0;break}}if(t[h++]=s[c++],1===--i){f=!0;break}g--}while(d>=Vt||p>=Vt);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l<a;l++)t[h+l]=t[u+l];t[h+a]=s[c]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=s[c+l]}}else{for(l=0;l<a;l++)t[h+l]=t[u+l];t[h+a]=s[c]}else for(l=0;l<i;l++)t[h+l]=s[c+l]}function p(n,i,o,a){var l=0;for(l=0;l<a;l++)s[l]=t[o+l];var c=n+i-1,u=a-1,h=o+a-1,d=0,p=0;if(t[h--]=t[c--],0!==--i)if(1!==a){var f=r;while(1){var g=0,m=0,v=!1;do{if(e(s[u],t[c])<0){if(t[h--]=t[c--],g++,m=0,0===--i){v=!0;break}}else if(t[h--]=s[u--],m++,g=0,1===--a){v=!0;break}}while((g|m)<f);if(v)break;do{if(g=i-Yt(s[u],t,n,i,i-1,e),0!==g){for(h-=g,c-=g,i-=g,p=h+1,d=c+1,l=g-1;l>=0;l--)t[p+l]=t[d+l];if(0===i){v=!0;break}}if(t[h--]=s[u--],1===--a){v=!0;break}if(m=a-Zt(t[c],s,0,a,a-1,e),0!==m){for(h-=m,u-=m,a-=m,p=h+1,d=u+1,l=0;l<m;l++)t[p+l]=s[d+l];if(a<=1){v=!0;break}}if(t[h--]=t[c--],0===--i){v=!0;break}f--}while(g>=Vt||m>=Vt);if(v)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(h-=i,c-=i,p=h+1,d=c+1,l=i-1;l>=0;l--)t[p+l]=t[d+l];t[h]=s[u]}else{if(0===a)throw new Error;for(d=h-(a-1),l=0;l<a;l++)t[d+l]=s[l]}}else{for(h-=i,c-=i,p=h+1,d=c+1,l=i-1;l>=0;l--)t[p+l]=t[d+l];t[h]=s[u]}else for(d=h-(a-1),l=0;l<a;l++)t[d+l]=s[l]}return o<120?5:o<1542?10:o<119151?19:40,n=[],i=[],{mergeRuns:c,forceMergeRuns:u,pushRun:l}}function qt(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<zt)return o=Ht(t,n,i,e),void Ut(t,n,i,n+o,e);var a=Xt(t,e),s=Gt(r);do{if(o=Ht(t,n,i,e),o<s){var l=r;l>s&&(l=s),Ut(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var Kt=1,Qt=2,Jt=4,$t=!1;function te(){$t||($t=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ee(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ne,ie=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ee}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,qt(n,ee)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];var r=i,o=t;while(r)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Kt),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var c=t;e&&e.length?c.__clipPaths=e:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(te(),c.z=0),isNaN(c.z2)&&(te(),c.z2=0),isNaN(c.zlevel)&&(te(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=s["r"](this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),re=ie;ne=a["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var oe=ne,ae={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ae.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*ae.bounceIn(2*t):.5*ae.bounceOut(2*t-1)+.5}},se=ae,le=Math.pow,ce=Math.sqrt,ue=1e-8,he=1e-4,de=ce(3),pe=1/3,fe=l(),ge=l(),me=l();function ve(t){return t>-ue&&t<ue}function ye(t){return t>ue||t<-ue}function be(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function xe(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function we(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),c=t-r,u=s*s-3*a*l,h=s*l-9*a*c,d=l*l-3*s*c,p=0;if(ve(u)&&ve(h))if(ve(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=h*h-4*u*d;if(ve(g)){var m=h/u,v=(f=-s/a+m,-m/2);f>=0&&f<=1&&(o[p++]=f),v>=0&&v<=1&&(o[p++]=v)}else if(g>0){var y=ce(g),b=u*s+1.5*a*(-h+y),x=u*s+1.5*a*(-h-y);b=b<0?-le(-b,pe):le(b,pe),x=x<0?-le(-x,pe):le(x,pe);f=(-s-(b+x))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var w=(2*u*s-3*a*h)/(2*ce(u*u*u)),_=Math.acos(w)/3,C=ce(u),A=Math.cos(_),I=(f=(-s-2*C*A)/(3*a),v=(-s+C*(A+de*Math.sin(_)))/(3*a),(-s+C*(A-de*Math.sin(_)))/(3*a));f>=0&&f<=1&&(o[p++]=f),v>=0&&v<=1&&(o[p++]=v),I>=0&&I<=1&&(o[p++]=I)}}return p}function _e(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(ve(a)){if(ye(o)){var c=-s/o;c>=0&&c<=1&&(r[l++]=c)}}else{var u=o*o-4*a*s;if(ve(u))r[0]=-o/(2*a);else if(u>0){var h=ce(u),d=(c=(-o+h)/(2*a),(-o-h)/(2*a));c>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function Ce(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,c=(s-a)*r+a,u=(l-s)*r+s,h=(u-c)*r+c;o[0]=t,o[1]=a,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=i}function Ae(t,e,n,i,r,o,a,s,l,c,u){var h,d,p,f,g,m=.005,v=1/0;fe[0]=l,fe[1]=c;for(var y=0;y<1;y+=.05)ge[0]=be(t,n,r,a,y),ge[1]=be(e,i,o,s,y),f=_(fe,ge),f<v&&(h=y,v=f);v=1/0;for(var b=0;b<32;b++){if(m<he)break;d=h-m,p=h+m,ge[0]=be(t,n,r,a,d),ge[1]=be(e,i,o,s,d),f=_(ge,fe),d>=0&&f<v?(h=d,v=f):(me[0]=be(t,n,r,a,p),me[1]=be(e,i,o,s,p),g=_(me,fe),p<=1&&g<v?(h=p,v=g):m*=.5)}return u&&(u[0]=be(t,n,r,a,h),u[1]=be(e,i,o,s,h)),ce(v)}function Ie(t,e,n,i,r,o,a,s,l){for(var c=t,u=e,h=0,d=1/l,p=1;p<=l;p++){var f=p*d,g=be(t,n,r,a,f),m=be(e,i,o,s,f),v=g-c,y=m-u;h+=Math.sqrt(v*v+y*y),c=g,u=m}return h}function Se(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Me(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function ke(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(ve(o)){if(ye(a)){var c=-s/a;c>=0&&c<=1&&(r[l++]=c)}}else{var u=a*a-4*o*s;if(ve(u)){c=-a/(2*o);c>=0&&c<=1&&(r[l++]=c)}else if(u>0){var h=ce(u),d=(c=(-a+h)/(2*o),(-a-h)/(2*o));c>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function Ee(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Te(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Oe(t,e,n,i,r,o,a,s,l){var c,u=.005,h=1/0;fe[0]=a,fe[1]=s;for(var d=0;d<1;d+=.05){ge[0]=Se(t,n,r,d),ge[1]=Se(e,i,o,d);var p=_(fe,ge);p<h&&(c=d,h=p)}h=1/0;for(var f=0;f<32;f++){if(u<he)break;var g=c-u,m=c+u;ge[0]=Se(t,n,r,g),ge[1]=Se(e,i,o,g);p=_(ge,fe);if(g>=0&&p<h)c=g,h=p;else{me[0]=Se(t,n,r,m),me[1]=Se(e,i,o,m);var v=_(me,fe);m<=1&&v<h?(c=m,h=v):u*=.5}}return l&&(l[0]=Se(t,n,r,c),l[1]=Se(e,i,o,c)),ce(h)}function Pe(t,e,n,i,r,o,a){for(var s=t,l=e,c=0,u=1/a,h=1;h<=a;h++){var d=h*u,p=Se(t,n,r,d),f=Se(e,i,o,d),g=p-s,m=f-l;c+=Math.sqrt(g*g+m*m),s=p,l=f}return c}var je=/cubic-bezier\(([0-9,\.e ]+)\)/;function Le(t){var e=t&&je.exec(t);if(e){var n=e[1].split(","),i=+Object(s["T"])(n[0]),r=+Object(s["T"])(n[1]),o=+Object(s["T"])(n[2]),a=+Object(s["T"])(n[3]);if(isNaN(i+r+o+a))return;var l=[];return function(t){return t<=0?0:t>=1?1:we(0,i,o,1,t,l)&&be(0,r,a,1,l[0])}}}var De=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||s["L"],this.ondestroy=t.ondestroy||s["L"],this.onrestart=t.onrestart||s["L"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(s["w"])(t)?t:se[t]||Le(t)},t}(),Re=De,Be=n("8b32"),Ne=n("c7ec"),Fe=Array.prototype.slice;function ze(t,e,n){return(e-t)*n+t}function Ve(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=ze(e[o],n[o],i);return t}function Ge(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=ze(e[a][s],n[a][s],i)}return t}function He(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function We(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ue(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Ze(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(1===n?r[l]:Fe.call(r[l]))}var c=i[0]&&i[0].length;for(l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var u=0;u<c;u++)isNaN(i[l][u])&&(i[l][u]=r[l][u])}}function Ye(t){if(Object(s["u"])(t)){var e=t.length;if(Object(s["u"])(t[0])){for(var n=[],i=0;i<e;i++)n.push(Fe.call(t[i]));return n}return Fe.call(t)}return t}function Xe(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function qe(t){return Object(s["u"])(t&&t[0])?2:1}var Ke=0,Qe=1,Je=2,$e=3,tn=4,en=5,nn=6;function rn(t){return t===tn||t===en}function on(t){return t===Qe||t===Je}var an=[0,0,0,0],sn=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=nn,l=e;if(Object(s["u"])(e)){var c=qe(e);a=c,(1===c&&!Object(s["z"])(e[0])||2===c&&!Object(s["z"])(e[0][0]))&&(o=!0)}else if(Object(s["z"])(e)&&!Object(s["l"])(e))a=Ke;else if(Object(s["C"])(e))if(isNaN(+e)){var u=Be["g"](e);u&&(l=u,a=$e)}else a=Ke;else if(Object(s["x"])(e)){var h=Object(s["m"])({},l);h.colorStops=Object(s["H"])(e.colorStops,(function(t){return{offset:t.offset,color:Be["g"](t.color)}})),Object(Ne["m"])(e)?a=tn:Object(Ne["o"])(e)&&(a=en),l=h}0===r?this.valType=a:a===this.valType&&a!==nn||(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:e,percent:0};return n&&(d.easing=n,d.easingFunc=Object(s["w"])(n)?n:se[n]||Le(n)),i.push(d),d},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=on(i),l=rn(i),c=0;c<r;c++){var u=n[c],h=u.value,d=o.value;u.percent=u.time/t,a||(s&&c!==r-1?Ze(h,d,i):l&&Ue(h.colorStops,d.colorStops))}if(!a&&i!==en&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var p=n[0].value;for(c=0;c<r;c++)i===Ke?n[c].additiveValue=n[c].value-p:i===$e?n[c].additiveValue=He([],n[c].value,p,-1):on(i)&&(n[c].additiveValue=i===Qe?He([],n[c].value,p,-1):We([],n[c].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",l=this.valType,c=this.keyframes,u=c.length,h=this.propName,d=l===$e,p=this._lastFr,f=Math.min;if(1===u)i=r=c[0];else{if(e<0)n=0;else if(e<this._lastFrP){var g=f(p+1,u-1);for(n=g;n>=0;n--)if(c[n].percent<=e)break;n=f(n,u-2)}else{for(n=p;n<u;n++)if(c[n].percent>e)break;n=f(n-1,u-2)}r=c[n+1],i=c[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var m=r.percent-i.percent,v=0===m?1:f((e-i.percent)/m,1);r.easingFunc&&(v=r.easingFunc(v));var y=o?this._additiveValue:d?an:t[h];if(!on(l)&&!d||y||(y=this._additiveValue=[]),this.discrete)t[h]=v<1?i.rawValue:r.rawValue;else if(on(l))l===Qe?Ve(y,i[a],r[a],v):Ge(y,i[a],r[a],v);else if(rn(l)){var b=i[a],x=r[a],w=l===tn;t[h]={type:w?"linear":"radial",x:ze(b.x,x.x,v),y:ze(b.y,x.y,v),colorStops:Object(s["H"])(b.colorStops,(function(t,e){var n=x.colorStops[e];return{offset:ze(t.offset,n.offset,v),color:Xe(Ve([],t.color,n.color,v))}})),global:x.global},w?(t[h].x2=ze(b.x2,x.x2,v),t[h].y2=ze(b.y2,x.y2,v)):t[h].r=ze(b.r,x.r,v)}else if(d)Ve(y,i[a],r[a],v),o||(t[h]=Xe(y));else{var _=ze(i[a],r[a],v);o?this._additiveValue=_:t[h]=_}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Ke?t[n]=t[n]+i:e===$e?(Be["g"](t[n],an),He(an,an,i,1),t[n]=Xe(an)):e===Qe?He(t[n],t[n],i,1):e===Je&&We(t[n],t[n],i,1)},t}(),ln=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?Object(s["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(s["F"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new sn(a);var l=void 0,c=this._getAdditiveTrack(a);if(c){var u=c.keyframes,h=u[u.length-1];l=h&&h.value,c.valType===$e&&l&&(l=Xe(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Ye(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ye(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,c=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=l[c-1];u&&(e._target[a.propName]=u.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Re({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(s["H"])(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Ye(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(s["F"])(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),cn=ln;function un(){return(new Date).getTime()}var hn=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return o(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=un()-this._pausedTime,n=e-this._time,i=this._head;while(i){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(oe(e),!t._paused&&t.update())}this._running=!0,oe(e)},e.prototype.start=function(){this._running||(this._time=un(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=un(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=un()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new cn(t,e.loop);return this.addAnimator(n),n},e}(O),dn=hn,pn=300,fn=a["a"].domSupported,gn=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=s["H"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),mn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},vn=!1;function yn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function bn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function xn(t){t&&(t.zrByTouch=!0)}function wn(t,e){return Q(t.dom,new Cn(t,e),!0)}function _n(t,e){var n=e,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return i}var Cn=function(){function t(t,e){this.stopPropagation=s["L"],this.stopImmediatePropagation=s["L"],this.preventDefault=s["L"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),An={mousedown:function(t){t=Q(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Q(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Q(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Q(this.dom,t);var e=t.toElement||t.relatedTarget;_n(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){vn=!0,t=Q(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){vn||(t=Q(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Q(this.dom,t),xn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),An.mousemove.call(this,t),An.mousedown.call(this,t)},touchmove:function(t){t=Q(this.dom,t),xn(t),this.handler.processGesture(t,"change"),An.mousemove.call(this,t)},touchend:function(t){t=Q(this.dom,t),xn(t),this.handler.processGesture(t,"end"),An.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<pn&&An.click.call(this,t)},pointerdown:function(t){An.mousedown.call(this,t)},pointermove:function(t){yn(t)||An.mousemove.call(this,t)},pointerup:function(t){An.mouseup.call(this,t)},pointerout:function(t){yn(t)||An.mouseout.call(this,t)}};s["k"](["click","dblclick","contextmenu"],(function(t){An[t]=function(e){e=Q(this.dom,e),this.trigger(t,e)}}));var In={pointermove:function(t){yn(t)||In.mousemove.call(this,t)},pointerup:function(t){In.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Sn(t,e){var n=e.domHandlers;a["a"].pointerEventsSupported?s["k"](gn.pointer,(function(i){kn(e,i,(function(e){n[i].call(t,e)}))})):(a["a"].touchEventsSupported&&s["k"](gn.touch,(function(i){kn(e,i,(function(r){n[i].call(t,r),bn(e)}))})),s["k"](gn.mouse,(function(i){kn(e,i,(function(r){r=K(r),e.touching||n[i].call(t,r)}))})))}function Mn(t,e){function n(n){function i(i){i=K(i),_n(t,i.target)||(i=wn(t,i),e.domHandlers[n].call(t,i))}kn(e,n,i,{capture:!0})}a["a"].pointerEventsSupported?s["k"](mn.pointer,n):a["a"].touchEventsSupported||s["k"](mn.mouse,n)}function kn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,$(t.domTarget,e,n,i)}function En(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&tt(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Tn=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),On=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Tn(e,An),fn&&(i._globalHandlerScope=new Tn(document,In)),Sn(i,i._localHandlerScope),i}return o(e,t),e.prototype.dispose=function(){En(this._localHandlerScope),fn&&En(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,fn&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?Mn(this,e):En(e)}},e}(O),Pn=On,jn=1;a["a"].hasGlobalWindow&&(jn=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ln=jn,Dn=.4,Rn="#333",Bn="#ccc",Nn="#eee",Fn=lt,zn=5e-5;function Vn(t){return t>zn||t<-zn}var Gn=[],Hn=[],Wn=st(),Un=Math.abs,Zn=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Vn(this.rotation)||Vn(this.x)||Vn(this.y)||Vn(this.scaleX-1)||Vn(this.scaleY-1)||Vn(this.skewX)||Vn(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||st(),e?this.getLocalTransform(n):Fn(n),t&&(e?ut(n,t,n):ct(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Fn(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Gn);var n=Gn[0]<0?-1:1,i=Gn[1]<0?-1:1,r=((Gn[0]-n)*e+n)/Gn[0]||0,o=((Gn[1]-i)*e+i)/Gn[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||st(),ft(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(ut(Hn,t.invTransform,e),e=Hn);var n=this.originX,i=this.originY;(n||i)&&(Wn[4]=n,Wn[5]=i,ut(Hn,e,Wn),Hn[4]-=n,Hn[5]-=i,e=Hn),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&A(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&A(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Un(t[0]-1)>1e-10&&Un(t[3]-1)>1e-10?Math.sqrt(Un(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Xn(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,c=t.x,u=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-h*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=h*o,l&&dt(e,e,l),e[4]+=n+c,e[5]+=i+u,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Yn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xn(t,e){for(var n=0;n<Yn.length;n++){var i=Yn[n];t[i]=e[i]}}var qn=Zn,Kn=n("0fd5"),Qn=n("938d"),Jn={};function $n(t,e){e=e||Qn["a"];var n=Jn[e];n||(n=Jn[e]=new Kn["a"](500));var i=n.get(t);return null==i&&(i=Qn["d"].measureText(t,e).width,n.put(t,i)),i}function ti(t,e,n,i){var r=$n(t,e),o=ri(e),a=ni(0,r,n),s=ii(0,o,i),l=new Mt(a,s,r,o);return l}function ei(t,e,n,i){var r=((t||"")+"").split("\n"),o=r.length;if(1===o)return ti(r[0],e,n,i);for(var a=new Mt(0,0,0,0),s=0;s<r.length;s++){var l=ti(r[s],e,n,i);0===s?a.copy(l):a.union(l)}return a}function ni(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function ii(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function ri(t){return $n("国",t)}function oi(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function ai(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",h="top";if(i instanceof Array)l+=oi(i[0],n.width),c+=oi(i[1],n.height),u=null,h=null;else switch(i){case"left":l-=r,c+=s,u="right",h="middle";break;case"right":l+=r+a,c+=s,h="middle";break;case"top":l+=a/2,c-=r,u="center",h="bottom";break;case"bottom":l+=a/2,c+=o+r,u="center";break;case"inside":l+=a/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=r,c+=s,h="middle";break;case"insideRight":l+=a-r,c+=s,u="right",h="middle";break;case"insideTop":l+=a/2,c+=r,u="center";break;case"insideBottom":l+=a/2,c+=o-r,u="center",h="bottom";break;case"insideTopLeft":l+=r,c+=r;break;case"insideTopRight":l+=a-r,c+=r,u="right";break;case"insideBottomLeft":l+=r,c+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,c+=o-r,u="right",h="bottom";break}return t=t||{},t.x=l,t.y=c,t.align=u,t.verticalAlign=h,t}var si="__zr_normal__",li=Yn.concat(["ignore"]),ci=Object(s["N"])(Yn,(function(t,e){return t[e]=!0,t}),{ignore:!1}),ui={},hi=new Mt(0,0,0,0),di=function(){function t(t){this.id=Object(s["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var c=hi;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ui,n,c):ai(ui,n,c),r.x=ui.x,r.y=ui.y,o=ui.align,a=ui.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var h=void 0,d=void 0;"center"===u?(h=.5*c.width,d=.5*c.height):(h=oi(u[0],c.width),d=oi(u[1],c.height)),l=!0,r.originX=-r.x+h+(i?0:c.x),r.originY=-r.y+d+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),m=m||"#000",m===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Kt,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Bn:Rn},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Be["g"])(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Object(Be["h"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(s["m"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(s["A"])(t))for(var n=t,i=Object(s["F"])(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==si)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,li)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(si,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===si,o=this.hasState();if(o||!r){var a=this.currentStates,l=this.stateTransition;if(!(Object(s["r"])(a,t)>=0)||!e&&1!==a.length){var c;if(this.stateProxy&&!r&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),c||r){r||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,d=this._textGuide;return h&&h.useState(t,e,n,u),d&&d.useState(t,e,n,u),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Kt),c}Object(s["G"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,t)),c||(c=this.states[l]),c&&i.push(c)}var u=i[o-1],h=!!(u&&u.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Kt)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(s["r"])(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=Object(s["r"])(i,t),o=Object(s["r"])(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];Object(s["m"])(n,r),r.textConfig&&(e=e||{},Object(s["m"])(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=Object(s["m"])({},i?this.textConfig:n.textConfig),Object(s["m"])(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},c=!1,u=0;u<li.length;u++){var h=li[u],d=r&&ci[h];e&&null!=e[h]?d?(c=!0,l[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(d?(c=!0,l[h]=n[h]):this[h]=n[h])}if(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],f=p.targetName;p.getLoop()||p.__changeFinalValue(f?(e||n)[f]:e||n)}c&&this._transitionState(t,l,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new qn,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(s["m"])(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Kt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this;var r=new cn(i,e,n);return t&&(r.targetName=t),this.addAnimator(r,t),r},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=Object(s["r"])(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){pi(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){pi(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=pi(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Kt;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function pi(t,e,n,i,r){n=n||{};var o=[];bi(t,"",t,e,n,i,o,r);var a=o.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,a--,a<=0&&(s?l&&l():c&&c())},h=function(){a--,a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var p=o[d];u&&p.done(u),h&&p.aborted(h),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function fi(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function gi(t){return Object(s["u"])(t[0])}function mi(t,e,n){if(Object(s["u"])(e[n]))if(Object(s["u"])(t[n])||(t[n]=[]),Object(s["E"])(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),fi(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(gi(r))for(var l=r[0].length,c=0;c<a;c++)o[c]?fi(o[c],r[c],l):o[c]=Array.prototype.slice.call(r[c]);else fi(o,r,a);o.length=r.length}else t[n]=e[n]}function vi(t,e){return t===e||Object(s["u"])(t)&&Object(s["u"])(e)&&yi(t,e)}function yi(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function bi(t,e,n,i,r,o,a,l){for(var c=Object(s["F"])(i),u=r.duration,h=r.delay,d=r.additive,p=r.setToFinal,f=!Object(s["A"])(o),g=t.animators,m=[],v=0;v<c.length;v++){var y=c[v],b=i[y];if(null!=b&&null!=n[y]&&(f||o[y]))if(!Object(s["A"])(b)||Object(s["u"])(b)||Object(s["x"])(b))m.push(y);else{if(e){l||(n[y]=b,t.updateDuringAnimation(e));continue}bi(t,y,n[y],b,r,o&&o[y],a,l)}else l||(n[y]=b,t.updateDuringAnimation(e),m.push(y))}var x=m.length;if(!d&&x)for(var w=0;w<g.length;w++){var _=g[w];if(_.targetName===e){var C=_.stopTracks(m);if(C){var A=Object(s["r"])(g,_);g.splice(A,1)}}}if(r.force||(m=Object(s["n"])(m,(function(t){return!vi(i[t],n[t])})),x=m.length),x>0||r.force&&!a.length){var I=void 0,S=void 0,M=void 0;if(l){S={},p&&(I={});for(w=0;w<x;w++){y=m[w];S[y]=n[y],p?I[y]=i[y]:n[y]=i[y]}}else if(p){M={};for(w=0;w<x;w++){y=m[w];M[y]=Ye(n[y]),mi(n,i,y)}}_=new cn(n,!1,!1,d?Object(s["n"])(g,(function(t){return t.targetName===e})):null);_.targetName=e,r.scope&&(_.scope=r.scope),p&&I&&_.whenWithKeys(0,I,m),M&&_.whenWithKeys(0,M,m),_.whenWithKeys(null==u?500:u,l?S:i,m).delay(h||0),t.addAnimator(_,e),a.push(_)}}Object(s["K"])(di,O),Object(s["K"])(di,qn);var xi=di,wi=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return o(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=s["r"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=s["r"](n,t);return i<0?this:(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new Mt(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?(Mt.applyTransform(e,s,l),r=r||e.clone(),r.union(e)):(r=r||s.clone(),r.union(s))}}return r||e},e}(xi);wi.prototype.type="group";var _i=wi,Ci={},Ai={};
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/function Ii(t){delete Ai[t]}function Si(t){if(!t)return!1;if("string"===typeof t)return Object(Be["d"])(t,1)<Dn;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Object(Be["d"])(e[r].color,1);return n/=i,n<Dn}return!1}var Mi=function(){function t(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var r=new re,o=n.renderer||"canvas";Ci[o]||(o=s["F"](Ci)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new Ci[o](e,r,n,t),c=n.ssr||l.ssrOnly;this.storage=r,this.painter=l;var u,h=a["a"].node||a["a"].worker||c?null:new Pn(l.getViewportRoot(),l.root),d=n.useCoarsePointer,p=null==d||"auto"===d?a["a"].touchEventsSupported:!!d,f=44;p&&(u=s["P"](n.pointerSize,f)),this.handler=new Ft(r,l,h,l.root,u),this.animation=new dn({stage:{update:c?null:function(){return i._flush(!0)}}}),c||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Si(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=un();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=un();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof _i&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Ii(this.id)},t}();function ki(t,e){var n=new Mi(s["p"](),t,e);return Ai[n.id]=n,n}function Ei(t,e){Ci[t]=e}var Ti=1e-4,Oi=20;function Pi(t){return t.replace(/^\s+|\s+$/g,"")}function ji(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,c=s-a;if(0===l)return 0===c?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*c+a}function Li(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return s["C"](t)?Pi(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function Di(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Oi),t=(+t).toFixed(e),n?t:+t}function Ri(t){return t.sort((function(t,e){return t-e})),t}function Bi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Ni(t)}function Ni(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function Fi(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function zi(t,e){var n=s["N"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var i=Math.pow(10,e),r=s["H"](t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=s["H"](r,(function(t){return Math.floor(t)})),l=s["N"](a,(function(t,e){return t+e}),0),c=s["H"](r,(function(t,e){return t-a[e]}));while(l<o){for(var u=Number.NEGATIVE_INFINITY,h=null,d=0,p=c.length;d<p;++d)c[d]>u&&(u=c[d],h=d);++a[h],c[h]=0,++l}return s["H"](a,(function(t){return t/i}))}function Vi(t,e){var n=Math.max(Bi(t),Bi(e)),i=t+e;return n>Oi?i:Di(i,n)}var Gi=9007199254740991;function Hi(t){var e=2*Math.PI;return(t%e+e)%e}function Wi(t){return t>-Ti&&t<Ti}var Ui=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Zi(t){if(t instanceof Date)return t;if(s["C"](t)){var e=Ui.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Yi(t){return Math.pow(10,Xi(t))}function Xi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function qi(t,e){var n,i=Xi(t),r=Math.pow(10,i),o=t/r;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*r,i>=-20?+t.toFixed(i<0?-i:0):t}function Ki(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Qi(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!==1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function Ji(t){var e=parseFloat(t);return e==t&&(0!==e||!s["C"](t)||t.indexOf("x")<=0)?e:NaN}function $i(t){return!isNaN(Ji(t))}function tr(){return Math.round(9*Math.random())}function er(t,e){return 0===e?t:er(e,t%e)}function nr(t,e){return null==t?e:null==e?t:t*e/er(t,e)}function ir(t,e,n){return(e-t)*n+t}var rr="series\0",or="\0_ec_\0";function ar(t){return t instanceof Array?t:null==t?[]:[t]}function sr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var lr=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function cr(t){return!Object(s["A"])(t)||Object(s["t"])(t)||t instanceof Date?t:t.value}function ur(t){return Object(s["A"])(t)&&!(t instanceof Array)}function hr(t,e,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Object(s["f"])();Object(s["k"])(e,(function(t,n){Object(s["A"])(t)||(e[n]=null)}));var l=dr(t,a,n);return(i||r)&&pr(l,t,a,e),i&&fr(l,e),i||r?gr(l,e,r):o&&mr(l,e),vr(l),l}function dr(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||_r(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function pr(t,e,n,i){Object(s["k"])(i,(function(r,o){if(r&&null!=r.id){var a=br(r.id),l=n.get(a);if(null!=l){var c=t[l];Object(s["b"])(!c.newOption,'Duplicated option on id "'+a+'".'),c.newOption=r,c.existing=e[l],i[o]=null}}}))}function fr(t,e){Object(s["k"])(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!_r(n)&&!_r(o)&&yr("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}function gr(t,e,n){Object(s["k"])(e,(function(e){if(e){var i,r=0;while((i=t[r])&&(i.newOption||_r(i.existing)||i.existing&&null!=e.id&&!yr("id",e,i.existing)))r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}function mr(t,e){Object(s["k"])(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function vr(t){var e=Object(s["f"])();Object(s["k"])(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Object(s["k"])(t,(function(t){var n=t.newOption;Object(s["b"])(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(s["k"])(t,(function(t,n){var i=t.existing,r=t.newOption,o=t.keyInfo;if(Object(s["A"])(r)){if(o.name=null!=r.name?br(r.name):i?i.name:rr+n,i)o.id=br(i.id);else if(null!=r.id)o.id=br(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function yr(t,e,n){var i=xr(e[t],null),r=xr(n[t],null);return null!=i&&null!=r&&i===r}function br(t){return xr(t,"")}function xr(t,e){return null==t?e:Object(s["C"])(t)?t:Object(s["z"])(t)||Object(s["D"])(t)?t+"":e}function wr(t){var e=t.name;return!(!e||!e.indexOf(rr))}function _r(t){return t&&null!=t.id&&0===br(t.id).indexOf(or)}function Cr(t){return or+t}function Ar(t,e,n){Object(s["k"])(t,(function(t){var i=t.newOption;Object(s["A"])(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Ir(e,i,t.existing,n))}))}function Ir(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}function Sr(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=xr(t[i].seriesId,null);if(null==o)return;for(var a=ar(t[i].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var u=a[l];s&&s[u]?s[u]=null:(e[o]||(e[o]={}))[u]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function Mr(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(s["t"])(e.dataIndex)?Object(s["H"])(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(s["t"])(e.name)?Object(s["H"])(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function kr(){var t="__ec_inner_"+Er++;return function(e){return e[t]||(e[t]={})}}var Er=tr();function Tr(t,e,n){var i=Or(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each((function(e,i){var r=Lr(t,i,e,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]})),s}function Or(t,e){var n;if(Object(s["C"])(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var r=Object(s["f"])(),o={},a=!1;return Object(s["k"])(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=i[1],c=(i[2]||"").toLowerCase();if(l&&c&&!(e&&e.includeMainTypes&&Object(s["r"])(e.includeMainTypes,l)<0)){a=a||!!l;var u=r.get(l)||r.set(l,{});u[c]=t}}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Pr={useDefault:!0,enableAll:!1,enableNone:!1},jr={useDefault:!1,enableAll:!0,enableNone:!0};function Lr(t,e,n,i){i=i||Pr;var r=n.index,o=n.id,a=n.name,l={models:null,specified:null!=r||null!=o||null!=a};if(!l.specified){var c=void 0;return l.models=i.useDefault&&(c=t.getComponent(e))?[c]:[],l}return"none"===r||!1===r?(Object(s["b"])(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===r&&(Object(s["b"])(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),l.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),l)}function Dr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Rr(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Br(t){return"auto"===t?a["a"].domSupported?"html":"richText":t||"html"}function Nr(t,e){var n=Object(s["f"])(),i=[];return Object(s["k"])(t,(function(t){var r=e(t);(n.get(r)||(i.push(r),n.set(r,[]))).push(t)})),{keys:i,buckets:n}}function Fr(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(Object(s["z"])(i)){var a=ir(n||0,i,r);return Di(a,o?Math.max(Bi(n||0),Bi(i)):e)}if(Object(s["C"])(i))return r<1?n:i;for(var l=[],c=n,u=i,h=Math.max(c?c.length:0,u.length),d=0;d<h;++d){var p=t.getDimensionInfo(d);if(p&&"ordinal"===p.type)l[d]=(r<1&&c?c:u)[d];else{var f=c&&c[d]?c[d]:0,g=u[d];a=ir(f,g,r);l[d]=Di(a,o?Math.max(Bi(f),Bi(g)):e)}}return l}var zr=".",Vr="___EC__COMPONENT__CONTAINER___",Gr="___EC__EXTENDED_CLASS___";function Hr(t){var e={main:"",sub:""};if(t){var n=t.split(zr);e.main=n[0]||"",e.sub=n[1]||""}return e}function Wr(t){s["b"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Ur(t){return!(!t||!t[Gr])}function Zr(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return Yr(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},s["s"](e,this)),s["m"](e.prototype,t),e[Gr]=!0,e.extend=this.extend,e.superCall=Qr,e.superApply=Jr,e.superClass=n,e}}function Yr(t){return s["w"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Xr(t,e){t.extend=e.extend}var qr=Math.round(10*Math.random());function Kr(t){var e=["__\0is_clz",qr++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Qr(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Jr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function $r(t){var e={};function n(t){var n=e[t.main];return n&&n[Vr]||(n=e[t.main]={},n[Vr]=!0),n}t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){Wr(i),t.prototype.type=i;var r=Hr(i);if(r.sub){if(r.sub!==Vr){var o=n(r);o[r.sub]=t}}else e[r.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[Vr]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=Hr(t),i=[],r=e[n.main];return r&&r[Vr]?s["k"](r,(function(t,e){e!==Vr&&i.push(t)})):i.push(r),i},t.hasClass=function(t){var n=Hr(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return s["k"](e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=Hr(t),i=e[n.main];return i&&i[Vr]}}function to(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,i,r){for(var o={},a=0;a<t.length;a++){var l=t[a][1];if(!(i&&s["r"](i,l)>=0||r&&s["r"](r,l)<0)){var c=n.getShallow(l,e);null!=c&&(o[t[a][0]]=c)}}return o}}var eo=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],no=to(eo),io=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return no(this,t,e)},t}(),ro=new Kn["a"](50);function oo(t){if("string"===typeof t){var e=ro.get(t);return e&&e.image}return t}function ao(t,e,n,i,r){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=ro.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?(e=o.image,!lo(e)&&o.pending.push(a)):(e=Qn["d"].loadImage(t,so,so),e.__zrImageSrc=t,ro.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function so(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function lo(t){return t&&t.width&&t.height}var co=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function uo(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=ho(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=po(o[a],r);return o.join("\n")}function ho(t,e,n,i){i=i||{};var r=Object(s["m"])({},i);r.font=e,n=Object(s["P"])(n,"..."),r.maxIterations=Object(s["P"])(i.maxIterations,2);var o=r.minChar=Object(s["P"])(i.minChar,0);r.cnCharWidth=$n("国",e);var a=r.ascCharWidth=$n("a",e);r.placeholder=Object(s["P"])(i.placeholder,"");for(var l=t=Math.max(0,t-1),c=0;c<o&&l>=a;c++)l-=a;var u=$n(n,e);return u>l&&(n="",u=0),l=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=l,r.containerWidth=t,r}function po(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=$n(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?fo(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;t=t.substr(0,s),o=$n(t,i)}return""===t&&(t=e.placeholder),t}function fo(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function go(t,e){null!=t&&(t+="");var n,i=e.overflow,r=e.padding,o=e.font,a="truncate"===i,l=ri(o),c=Object(s["P"])(e.lineHeight,l),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,d=e.width;n=null==d||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?Ao(t,e.font,d,"breakAll"===i,0).lines:[];var p=n.length*c,f=Object(s["P"])(e.height,p);if(p>f&&h){var g=Math.floor(f/c);n=n.slice(0,g)}if(t&&a&&null!=d)for(var m=ho(d,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<n.length;v++)n[v]=po(n[v],m);var y=f,b=0;for(v=0;v<n.length;v++)b=Math.max($n(n[v],o),b);null==d&&(d=b);var x=b;return r&&(y+=r[0]+r[2],x+=r[1]+r[3],d+=r[1]+r[3]),u&&(x=d),{lines:n,height:f,outerWidth:x,outerHeight:y,lineHeight:c,calculatedLineHeight:l,contentWidth:b,contentHeight:p,width:d}}var mo=function(){function t(){}return t}(),vo=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),yo=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function bo(t,e){var n=new yo;if(null!=t&&(t+=""),!t)return n;var i,r=e.width,o=e.height,a=e.overflow,l="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},c=co.lastIndex=0;while(null!=(i=co.exec(t))){var u=i.index;u>c&&xo(n,t.substring(c,u),e,l),xo(n,i[2],e,l,i[1]),c=co.lastIndex}c<t.length&&xo(n,t.substring(c,t.length),e,l);var h=[],d=0,p=0,f=e.padding,g="truncate"===a,m="truncate"===e.lineOverflow;function v(t,e,n){t.width=e,t.lineHeight=n,d+=n,p=Math.max(p,e)}t:for(var y=0;y<n.lines.length;y++){for(var b=n.lines[y],x=0,w=0,_=0;_<b.tokens.length;_++){var C=b.tokens[_],A=C.styleName&&e.rich[C.styleName]||{},I=C.textPadding=A.padding,S=I?I[1]+I[3]:0,M=C.font=A.font||e.font;C.contentHeight=ri(M);var k=Object(s["P"])(A.height,C.contentHeight);if(C.innerHeight=k,I&&(k+=I[0]+I[2]),C.height=k,C.lineHeight=Object(s["Q"])(A.lineHeight,e.lineHeight,k),C.align=A&&A.align||e.align,C.verticalAlign=A&&A.verticalAlign||"middle",m&&null!=o&&d+C.lineHeight>o){_>0?(b.tokens=b.tokens.slice(0,_),v(b,w,x),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var E=A.width,T=null==E||"auto"===E;if("string"===typeof E&&"%"===E.charAt(E.length-1))C.percentWidth=E,h.push(C),C.contentWidth=$n(C.text,M);else{if(T){var O=A.backgroundColor,P=O&&O.image;P&&(P=oo(P),lo(P)&&(C.width=Math.max(C.width,P.width*k/P.height)))}var j=g&&null!=r?r-w:null;null!=j&&j<C.width?!T||j<S?(C.text="",C.width=C.contentWidth=0):(C.text=uo(C.text,j-S,M,e.ellipsis,{minChar:e.truncateMinChar}),C.width=C.contentWidth=$n(C.text,M)):C.contentWidth=$n(C.text,M)}C.width+=S,w+=C.width,A&&(x=Math.max(x,C.lineHeight))}v(b,w,x)}n.outerWidth=n.width=Object(s["P"])(r,p),n.outerHeight=n.height=Object(s["P"])(o,d),n.contentHeight=d,n.contentWidth=p,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(y=0;y<h.length;y++){C=h[y];var L=C.percentWidth;C.width=parseInt(L,10)/100*n.width}return n}function xo(t,e,n,i,r){var o,a,s=""===e,l=r&&n.rich[r]||{},c=t.lines,u=l.font||n.font,h=!1;if(i){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=oi(l.width,i.width)+p;c.length>0&&f+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=f}else{var g=Ao(e,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var m=0;m<o.length;m++){var v=o[m],y=new mo;if(y.styleName=r,y.text=v,y.isLineHolder=!v&&!s,"number"===typeof l.width?y.width=l.width:y.width=a?a[m]:$n(v,u),m||h)c.push(new vo([y]));else{var b=(c[c.length-1]||(c[0]=new vo)).tokens,x=b.length;1===x&&b[0].isLineHolder?b[0]=y:(v||!x||s)&&b.push(y)}}}function wo(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var _o=Object(s["N"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Co(t){return!wo(t)||!!_o[t]}function Ao(t,e,n,i,r){for(var o=[],a=[],s="",l="",c=0,u=0,h=0;h<t.length;h++){var d=t.charAt(h);if("\n"!==d){var p=$n(d,e),f=!i&&!Co(d);(o.length?u+p>n:r+u+p>n)?u?(s||l)&&(f?(s||(s=l,l="",c=0,u=c),o.push(s),a.push(u-c),l+=d,c+=p,s="",u=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=d,u=p)):f?(o.push(l),a.push(c),l=d,c=p):(o.push(d),a.push(p)):(u+=p,f?(l+=d,c+=p):(l&&(s+=l,l="",c=0),s+=d))}else l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0}return o.length||s||(s=t,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=r),{accumWidth:u,lines:o,linesWidths:a}}var Io="__zr_style_"+Math.round(10*Math.random()),So={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Mo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};So[Io]=!0;var ko=["z","z2","invisible"],Eo=["invisible"],To=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype._init=function(e){for(var n=Object(s["F"])(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&jo(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new Mt(0,0,0,0)),e?Mt.applyTransform(t,n,e):t.copy(n),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Mt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:Object(s["m"])(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Qt,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Qt)},e.prototype.styleUpdated=function(){this.__dirty&=~Qt},e.prototype.createStyle=function(t){return Object(s["g"])(So,t)},e.prototype.useStyle=function(t){t[Io]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Io]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,ko)},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var l,c=!(n&&r);if(n&&n.style?o?r?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(l,n.style)):c&&(l=i.style),l)if(o){var u=this.style;if(this.style=this.createStyle(c?{}:u),c)for(var h=Object(s["F"])(u),d=0;d<h.length;d++){var p=h[d];p in l&&(l[p]=l[p],this.style[p]=u[p])}var f=Object(s["F"])(l);for(d=0;d<f.length;d++){p=f[d];this.style[p]=this.style[p]}this._transitionState(e,{style:l},a,this.getAnimationStyleProps())}else this.useStyle(l);var g=this.__inHover?Eo:ko;for(d=0;d<g.length;d++){p=g[d];n&&null!=n[p]?this[p]=n[p]:c&&null!=i[p]&&(this[p]=i[p])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return Object(s["m"])(t,e),t},e.prototype.getAnimationStyleProps=function(){return Mo},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Kt|Qt}(),e}(xi),Oo=new Mt(0,0,0,0),Po=new Mt(0,0,0,0);function jo(t,e,n){return Oo.copy(t.getBoundingRect()),t.transform&&Oo.applyTransform(t.transform),Po.width=e,Po.height=n,!Oo.intersect(Po)}var Lo=To,Do=Math.min,Ro=Math.max,Bo=Math.sin,No=Math.cos,Fo=2*Math.PI,zo=l(),Vo=l(),Go=l();function Ho(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],r=Do(r,i[0]),o=Ro(o,i[0]),a=Do(a,i[1]),s=Ro(s,i[1]);e[0]=r,e[1]=a,n[0]=o,n[1]=s}}function Wo(t,e,n,i,r,o){r[0]=Do(t,n),r[1]=Do(e,i),o[0]=Ro(t,n),o[1]=Ro(e,i)}var Uo=[],Zo=[];function Yo(t,e,n,i,r,o,a,s,l,c){var u=_e,h=be,d=u(t,n,r,a,Uo);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var p=0;p<d;p++){var f=h(t,n,r,a,Uo[p]);l[0]=Do(f,l[0]),c[0]=Ro(f,c[0])}d=u(e,i,o,s,Zo);for(p=0;p<d;p++){var g=h(e,i,o,s,Zo[p]);l[1]=Do(g,l[1]),c[1]=Ro(g,c[1])}l[0]=Do(t,l[0]),c[0]=Ro(t,c[0]),l[0]=Do(a,l[0]),c[0]=Ro(a,c[0]),l[1]=Do(e,l[1]),c[1]=Ro(e,c[1]),l[1]=Do(s,l[1]),c[1]=Ro(s,c[1])}function Xo(t,e,n,i,r,o,a,s){var l=Ee,c=Se,u=Ro(Do(l(t,n,r),1),0),h=Ro(Do(l(e,i,o),1),0),d=c(t,n,r,u),p=c(e,i,o,h);a[0]=Do(t,r,d),a[1]=Do(e,o,p),s[0]=Ro(t,r,d),s[1]=Ro(e,o,p)}function qo(t,e,n,i,r,o,a,s,l){var c=I,u=S,h=Math.abs(r-o);if(h%Fo<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(zo[0]=No(r)*n+t,zo[1]=Bo(r)*i+e,Vo[0]=No(o)*n+t,Vo[1]=Bo(o)*i+e,c(s,zo,Vo),u(l,zo,Vo),r%=Fo,r<0&&(r+=Fo),o%=Fo,o<0&&(o+=Fo),r>o&&!a?o+=Fo:r<o&&a&&(r+=Fo),a){var d=o;o=r,r=d}for(var p=0;p<o;p+=Math.PI/2)p>r&&(Go[0]=No(p)*n+t,Go[1]=Bo(p)*i+e,c(s,Go,s),u(l,Go,l))}var Ko={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qo=[],Jo=[],$o=[],ta=[],ea=[],na=[],ia=Math.min,ra=Math.max,oa=Math.cos,aa=Math.sin,sa=Math.abs,la=Math.PI,ca=2*la,ua="undefined"!==typeof Float32Array,ha=[];function da(t){var e=Math.round(t/la*1e8)/1e8;return e%2*la}function pa(t,e){var n=da(t[0]);n<0&&(n+=ca);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=ca?r=n+ca:e&&n-r>=ca?r=n-ca:!e&&n>r?r=n+(ca-da(n-r)):e&&n<r&&(r=n-(ca-da(r-n))),t[0]=n,t[1]=r}var fa=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=sa(n/Ln/t)||0,this._uy=sa(n/Ln/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ko.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=sa(t-this._xi),i=sa(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ko.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Ko.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ko.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),ha[0]=i,ha[1]=r,pa(ha,o),i=ha[0],r=ha[1];var a=r-i;return this.addData(Ko.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=oa(r)*n+t,this._yi=aa(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ko.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ko.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ua||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();ua&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ua&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){$o[0]=$o[1]=ea[0]=ea[1]=Number.MAX_VALUE,ta[0]=ta[1]=na[0]=na[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],i=e[t+1],r=n,o=i),a){case Ko.M:n=r=e[t++],i=o=e[t++],ea[0]=r,ea[1]=o,na[0]=r,na[1]=o;break;case Ko.L:Wo(n,i,e[t],e[t+1],ea,na),n=e[t++],i=e[t++];break;case Ko.C:Yo(n,i,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],ea,na),n=e[t++],i=e[t++];break;case Ko.Q:Xo(n,i,e[t++],e[t++],e[t],e[t+1],ea,na),n=e[t++],i=e[t++];break;case Ko.A:var l=e[t++],c=e[t++],u=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(r=oa(d)*u+l,o=aa(d)*h+c),qo(l,c,u,h,d,p,f,ea,na),n=oa(p)*u+l,i=aa(p)*h+c;break;case Ko.R:r=n=e[t++],o=i=e[t++];var g=e[t++],m=e[t++];Wo(r,o,r+g,o+m,ea,na);break;case Ko.Z:n=r,i=o;break}I($o,$o,ea),S(ta,ta,na)}return 0===t&&($o[0]=$o[1]=ta[0]=ta[1]=0),new Mt($o[0],$o[1],ta[0]-$o[0],ta[1]-$o[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,u=0,h=0;h<e;){var d=t[h++],p=1===h;p&&(r=t[h],o=t[h+1],a=r,s=o);var f=-1;switch(d){case Ko.M:r=a=t[h++],o=s=t[h++];break;case Ko.L:var g=t[h++],m=t[h++],v=g-r,y=m-o;(sa(v)>n||sa(y)>i||h===e-1)&&(f=Math.sqrt(v*v+y*y),r=g,o=m);break;case Ko.C:var b=t[h++],x=t[h++],w=(g=t[h++],m=t[h++],t[h++]),_=t[h++];f=Ie(r,o,b,x,g,m,w,_,10),r=w,o=_;break;case Ko.Q:b=t[h++],x=t[h++],g=t[h++],m=t[h++];f=Pe(r,o,b,x,g,m,10),r=g,o=m;break;case Ko.A:var C=t[h++],A=t[h++],I=t[h++],S=t[h++],M=t[h++],k=t[h++],E=k+M;h+=1;t[h++];p&&(a=oa(M)*I+C,s=aa(M)*S+A),f=ra(I,S)*ia(ca,Math.abs(k)),r=oa(E)*I+C,o=aa(E)*S+A;break;case Ko.R:a=r=t[h++],s=o=t[h++];var T=t[h++],O=t[h++];f=2*T+2*O;break;case Ko.Z:v=a-r,y=s-o;f=Math.sqrt(v*v+y*y),r=a,o=s;break}f>=0&&(l[u++]=f,c+=f)}return this._pathLen=c,c},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,c,u,h,d,p=this.data,f=this._ux,g=this._uy,m=this._len,v=e<1,y=0,b=0,x=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=this._pathLen,u=e*c,u))t:for(var w=0;w<m;){var _=p[w++],C=1===w;switch(C&&(r=p[w],o=p[w+1],n=r,i=o),_!==Ko.L&&x>0&&(t.lineTo(h,d),x=0),_){case Ko.M:n=r=p[w++],i=o=p[w++],t.moveTo(r,o);break;case Ko.L:a=p[w++],s=p[w++];var A=sa(a-r),I=sa(s-o);if(A>f||I>g){if(v){var S=l[b++];if(y+S>u){var M=(u-y)/S;t.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break t}y+=S}t.lineTo(a,s),r=a,o=s,x=0}else{var k=A*A+I*I;k>x&&(h=a,d=s,x=k)}break;case Ko.C:var E=p[w++],T=p[w++],O=p[w++],P=p[w++],j=p[w++],L=p[w++];if(v){S=l[b++];if(y+S>u){M=(u-y)/S;Ce(r,E,O,j,M,Qo),Ce(o,T,P,L,M,Jo),t.bezierCurveTo(Qo[1],Jo[1],Qo[2],Jo[2],Qo[3],Jo[3]);break t}y+=S}t.bezierCurveTo(E,T,O,P,j,L),r=j,o=L;break;case Ko.Q:E=p[w++],T=p[w++],O=p[w++],P=p[w++];if(v){S=l[b++];if(y+S>u){M=(u-y)/S;Te(r,E,O,M,Qo),Te(o,T,P,M,Jo),t.quadraticCurveTo(Qo[1],Jo[1],Qo[2],Jo[2]);break t}y+=S}t.quadraticCurveTo(E,T,O,P),r=O,o=P;break;case Ko.A:var D=p[w++],R=p[w++],B=p[w++],N=p[w++],F=p[w++],z=p[w++],V=p[w++],G=!p[w++],H=B>N?B:N,W=sa(B-N)>.001,U=F+z,Z=!1;if(v){S=l[b++];y+S>u&&(U=F+z*(u-y)/S,Z=!0),y+=S}if(W&&t.ellipse?t.ellipse(D,R,B,N,V,F,U,G):t.arc(D,R,H,F,U,G),Z)break t;C&&(n=oa(F)*B+D,i=aa(F)*N+R),r=oa(U)*B+D,o=aa(U)*N+R;break;case Ko.R:n=r=p[w],i=o=p[w+1],a=p[w++],s=p[w++];var Y=p[w++],X=p[w++];if(v){S=l[b++];if(y+S>u){var q=u-y;t.moveTo(a,s),t.lineTo(a+ia(q,Y),s),q-=Y,q>0&&t.lineTo(a+Y,s+ia(q,X)),q-=X,q>0&&t.lineTo(a+ra(Y-q,0),s+X),q-=Y,q>0&&t.lineTo(a,s+ra(X-q,0));break t}y+=S}t.rect(a,s,Y,X);break;case Ko.Z:if(v){S=l[b++];if(y+S>u){M=(u-y)/S;t.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break t}y+=S}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Ko,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),ga=fa;function ma(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,c=t;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-i)/(t-n),c=(t*i-n*e)/(t-n);var u=l*o-a+c,h=u*u/(l*l+1);return h<=s/2*s/2}function va(t,e,n,i,r,o,a,s,l,c,u){if(0===l)return!1;var h=l;if(u>e+h&&u>i+h&&u>o+h&&u>s+h||u<e-h&&u<i-h&&u<o-h&&u<s-h||c>t+h&&c>n+h&&c>r+h&&c>a+h||c<t-h&&c<n-h&&c<r-h&&c<a-h)return!1;var d=Ae(t,e,n,i,r,o,a,s,c,u,null);return d<=h/2}function ya(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var c=a;if(l>e+c&&l>i+c&&l>o+c||l<e-c&&l<i-c&&l<o-c||s>t+c&&s>n+c&&s>r+c||s<t-c&&s<n-c&&s<r-c)return!1;var u=Oe(t,e,n,i,r,o,s,l,null);return u<=c/2}var ba=2*Math.PI;function xa(t){return t%=ba,t<0&&(t+=ba),t}var wa=2*Math.PI;function _a(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var c=a;s-=t,l-=e;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(i-r)%wa<1e-4)return!0;if(o){var h=i;i=xa(r),r=xa(h)}else i=xa(i),r=xa(r);i>r&&(r+=wa);var d=Math.atan2(l,s);return d<0&&(d+=wa),d>=i&&d<=r||d+wa>=i&&d+wa<=r}function Ca(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}var Aa=ga.CMD,Ia=2*Math.PI,Sa=1e-4;function Ma(t,e){return Math.abs(t-e)<Sa}var ka=[-1,-1,-1],Ea=[-1,-1];function Ta(){var t=Ea[0];Ea[0]=Ea[1],Ea[1]=t}function Oa(t,e,n,i,r,o,a,s,l,c){if(c>e&&c>i&&c>o&&c>s||c<e&&c<i&&c<o&&c<s)return 0;var u=we(e,i,o,s,c,ka);if(0===u)return 0;for(var h=0,d=-1,p=void 0,f=void 0,g=0;g<u;g++){var m=ka[g],v=0===m||1===m?.5:1,y=be(t,n,r,a,m);y<l||(d<0&&(d=_e(e,i,o,s,Ea),Ea[1]<Ea[0]&&d>1&&Ta(),p=be(e,i,o,s,Ea[0]),d>1&&(f=be(e,i,o,s,Ea[1]))),2===d?m<Ea[0]?h+=p<e?v:-v:m<Ea[1]?h+=f<p?v:-v:h+=s<f?v:-v:m<Ea[0]?h+=p<e?v:-v:h+=s<p?v:-v)}return h}function Pa(t,e,n,i,r,o,a,s){if(s>e&&s>i&&s>o||s<e&&s<i&&s<o)return 0;var l=ke(e,i,o,s,ka);if(0===l)return 0;var c=Ee(e,i,o);if(c>=0&&c<=1){for(var u=0,h=Se(e,i,o,c),d=0;d<l;d++){var p=0===ka[d]||1===ka[d]?.5:1,f=Se(t,n,r,ka[d]);f<a||(ka[d]<c?u+=h<e?p:-p:u+=o<h?p:-p)}return u}p=0===ka[0]||1===ka[0]?.5:1,f=Se(t,n,r,ka[0]);return f<a?0:o<e?p:-p}function ja(t,e,n,i,r,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ka[0]=-l,ka[1]=l;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c>=Ia-1e-4){i=0,r=Ia;var u=o?1:-1;return a>=ka[0]+t&&a<=ka[1]+t?u:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=Ia,r+=Ia);for(var d=0,p=0;p<2;p++){var f=ka[p];if(f+t>a){var g=Math.atan2(s,f);u=o?1:-1;g<0&&(g=Ia+g),(g>=i&&g<=r||g+Ia>=i&&g+Ia<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),d+=u)}}return d}function La(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),c=0,u=0,h=0,d=0,p=0,f=0;f<l;){var g=s[f++],m=1===f;switch(g===Aa.M&&f>1&&(n||(c+=Ca(u,h,d,p,i,r))),m&&(u=s[f],h=s[f+1],d=u,p=h),g){case Aa.M:d=s[f++],p=s[f++],u=d,h=p;break;case Aa.L:if(n){if(ma(u,h,s[f],s[f+1],e,i,r))return!0}else c+=Ca(u,h,s[f],s[f+1],i,r)||0;u=s[f++],h=s[f++];break;case Aa.C:if(n){if(va(u,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else c+=Oa(u,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;u=s[f++],h=s[f++];break;case Aa.Q:if(n){if(ya(u,h,s[f++],s[f++],s[f],s[f+1],e,i,r))return!0}else c+=Pa(u,h,s[f++],s[f++],s[f],s[f+1],i,r)||0;u=s[f++],h=s[f++];break;case Aa.A:var v=s[f++],y=s[f++],b=s[f++],x=s[f++],w=s[f++],_=s[f++];f+=1;var C=!!(1-s[f++]);o=Math.cos(w)*b+v,a=Math.sin(w)*x+y,m?(d=o,p=a):c+=Ca(u,h,o,a,i,r);var A=(i-v)*x/b+v;if(n){if(_a(v,y,x,w,w+_,C,e,A,r))return!0}else c+=ja(v,y,x,w,w+_,C,A,r);u=Math.cos(w+_)*b+v,h=Math.sin(w+_)*x+y;break;case Aa.R:d=u=s[f++],p=h=s[f++];var I=s[f++],S=s[f++];if(o=d+I,a=p+S,n){if(ma(d,p,o,p,e,i,r)||ma(o,p,o,a,e,i,r)||ma(o,a,d,a,e,i,r)||ma(d,a,d,p,e,i,r))return!0}else c+=Ca(o,p,o,a,i,r),c+=Ca(d,a,d,p,i,r);break;case Aa.Z:if(n){if(ma(u,h,d,p,e,i,r))return!0}else c+=Ca(u,h,d,p,i,r);u=d,h=p;break}}return n||Ma(h,p)||(c+=Ca(u,h,d,p,i,r)||0),0!==c}function Da(t,e,n){return La(t,0,!1,e,n)}function Ra(t,e,n,i){return La(t,e,!0,n,i)}var Ba=Object(s["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},So),Na={style:Object(s["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mo.style)},Fa=Yn.concat(["invisible","culling","z","z2","zlevel","parent"]),za=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<Fa.length;++s)r[Fa[s]]=this[Fa[s]];r.__dirty|=Kt}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(s["F"])(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?Object(s["m"])(this.style,a):this.useStyle(a):"shape"===o?Object(s["m"])(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(s["C"])(t)){var e=Object(Be["d"])(t,0);return e>.5?Rn:e>.2?Nn:Bn}if(t)return Bn}return Rn},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(s["C"])(e)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object(Be["d"])(t,0)<Dn;if(i===r)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Jt},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new ga(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Jt)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),Ra(o,a/s,t,e)))return!0}if(this.hasFill())return Da(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Jt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(s["m"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Jt)},e.prototype.createStyle=function(t){return Object(s["g"])(Ba,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(s["m"])({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var l,c=!(n&&r);if(n&&n.shape?o?r?l=n.shape:(l=Object(s["m"])({},i.shape),Object(s["m"])(l,n.shape)):(l=Object(s["m"])({},r?this.shape:i.shape),Object(s["m"])(l,n.shape)):c&&(l=i.shape),l)if(o){this.shape=Object(s["m"])({},this.shape);for(var u={},h=Object(s["F"])(l),d=0;d<h.length;d++){var p=h[d];"object"===typeof l[p]?this.shape[p]=l[p]:u[p]=l[p]}this._transitionState(e,{shape:u},a)}else this.shape=l,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return Na},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return o(n,e),n.prototype.getDefaultStyle=function(){return Object(s["d"])(t.style)},n.prototype.getDefaultShape=function(){return Object(s["d"])(t.shape)},n}(e);for(var i in t)"function"===typeof t[i]&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Kt|Qt|Jt}(),e}(Lo),Va=za,Ga=Object(s["i"])({strokeFirst:!0,font:Qn["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ba),Ha=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(s["g"])(Ga,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=ei(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Lo);Ha.prototype.type="tspan";var Wa=Ha,Ua=Object(s["i"])({x:0,y:0},So),Za={style:Object(s["i"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mo.style)};function Ya(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var Xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.createStyle=function(t){return Object(s["g"])(Ua,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i=Ya(e.image)?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",o=e[r];return null==o?i[t]:i[t]/i[r]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Za},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Mt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Lo);Xa.prototype.type="image";var qa=Xa;function Ka(t,e){var n,i,r,o,a,s=e.x,l=e.y,c=e.width,u=e.height,h=e.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>c&&(a=n+i,n*=c/a,i*=c/a),r+o>c&&(a=r+o,r*=c/a,o*=c/a),i+r>u&&(a=i+r,i*=u/a,r*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),t.moveTo(s+n,l),t.lineTo(s+c-i,l),0!==i&&t.arc(s+c-i,l+i,i,-Math.PI/2,0),t.lineTo(s+c,l+u-r),0!==r&&t.arc(s+c-r,l+u-r,r,0,Math.PI/2),t.lineTo(s+o,l+u),0!==o&&t.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var Qa=Math.round;function Ja(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Qa(2*i)===Qa(2*r)&&(t.x1=t.x2=ts(i,s,!0)),Qa(2*o)===Qa(2*a)&&(t.y1=t.y2=ts(o,s,!0)),t):t}}function $a(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ts(i,s,!0),t.y=ts(r,s,!0),t.width=Math.max(ts(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ts(r+a,s,!1)-t.y,0===a?0:1),t):t}}function ts(t,e,n){if(!e)return t;var i=Qa(2*t);return(i+Qa(e))%2===0?i/2:(i+(n?1:-1))/2}var es=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),ns={},is=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new es},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=$a(ns,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?Ka(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Va);is.prototype.type="rect";var rs=is,os={fill:"#000"},as=2,ss={style:Object(s["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Mo.style)},ls=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=os,n.attr(e),n}return o(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,gs(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Mt(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),i=i||t.clone(),i.union(t)):(i=i||a.clone(),i.union(a))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||os},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return Object(s["m"])(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=Object(s["F"])(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},Object(s["m"])(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return ss},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||Qn["a"],n=t.padding,i=xs(t),r=go(i,t),o=ws(t),a=!!t.backgroundColor,s=r.outerHeight,l=r.outerWidth,c=r.contentWidth,u=r.lines,h=r.lineHeight,d=this._defaultStyle,p=t.x||0,f=t.y||0,g=t.align||d.align||"left",m=t.verticalAlign||d.verticalAlign||"top",v=p,y=ii(f,r.contentHeight,m);if(o||n){var b=ni(p,l,g),x=ii(f,s,m);o&&this._renderBackground(t,t,b,x,l,s)}y+=h/2,n&&(v=bs(p,g,n),"top"===m?y+=n[0]:"bottom"===m&&(y-=n[2]));for(var w=0,_=!1,C=(ys("fill"in t?t.fill:(_=!0,d.fill))),A=(vs("stroke"in t?t.stroke:a||d.autoStroke&&!_?null:(w=as,d.stroke))),I=t.textShadowBlur>0,S=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=r.calculatedLineHeight,k=0;k<u.length;k++){var E=this._getOrCreateChild(Wa),T=E.createStyle();E.useStyle(T),T.text=u[k],T.x=v,T.y=y,g&&(T.textAlign=g),T.textBaseline="middle",T.opacity=t.opacity,T.strokeFirst=!0,I&&(T.shadowBlur=t.textShadowBlur||0,T.shadowColor=t.textShadowColor||"transparent",T.shadowOffsetX=t.textShadowOffsetX||0,T.shadowOffsetY=t.textShadowOffsetY||0),T.stroke=A,T.fill=C,A&&(T.lineWidth=t.lineWidth||w,T.lineDash=t.lineDash,T.lineDashOffset=t.lineDashOffset||0),T.font=e,ps(T,t),y+=h,S&&E.setBoundingRect(new Mt(ni(T.x,t.width,T.textAlign),ii(T.y,M,T.textBaseline),c,M))}},e.prototype._updateRichTexts=function(){var t=this.style,e=xs(t),n=bo(e,t),i=n.width,r=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,c=this._defaultStyle,u=t.align||c.align,h=t.verticalAlign||c.verticalAlign,d=ni(s,r,u),p=ii(l,o,h),f=d,g=p;a&&(f+=a[3],g+=a[0]);var m=f+i;ws(t)&&this._renderBackground(t,t,d,p,r,o);for(var v=!!t.backgroundColor,y=0;y<n.lines.length;y++){var b=n.lines[y],x=b.tokens,w=x.length,_=b.lineHeight,C=b.width,A=0,I=f,S=m,M=w-1,k=void 0;while(A<w&&(k=x[A],!k.align||"left"===k.align))this._placeToken(k,t,_,g,I,"left",v),C-=k.width,I+=k.width,A++;while(M>=0&&(k=x[M],"right"===k.align))this._placeToken(k,t,_,g,S,"right",v),C-=k.width,S-=k.width,M--;I+=(i-(I-f)-(m-S)-C)/2;while(A<=M)k=x[A],this._placeToken(k,t,_,g,I+k.width/2,"center",v),I+=k.width,A++;g+=_}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var l=e.rich[t.styleName]||{};l.text=t.text;var c=t.verticalAlign,u=i+n/2;"top"===c?u=i+t.height/2:"bottom"===c&&(u=i+n-t.height/2);var h=!t.isLineHolder&&ws(l);h&&this._renderBackground(l,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var d=!!l.backgroundColor,p=t.textPadding;p&&(r=bs(r,o,p),u-=t.height/2-p[0]-t.innerHeight/2);var f=this._getOrCreateChild(Wa),g=f.createStyle();f.useStyle(g);var m=this._defaultStyle,v=!1,y=0,b=ys("fill"in l?l.fill:"fill"in e?e.fill:(v=!0,m.fill)),x=vs("stroke"in l?l.stroke:"stroke"in e?e.stroke:d||a||m.autoStroke&&!v?null:(y=as,m.stroke)),w=l.textShadowBlur>0||e.textShadowBlur>0;g.text=t.text,g.x=r,g.y=u,w&&(g.shadowBlur=l.textShadowBlur||e.textShadowBlur||0,g.shadowColor=l.textShadowColor||e.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||e.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||e.textShadowOffsetY||0),g.textAlign=o,g.textBaseline="middle",g.font=t.font||Qn["a"],g.opacity=Object(s["Q"])(l.opacity,e.opacity,1),ps(g,l),x&&(g.lineWidth=Object(s["Q"])(l.lineWidth,e.lineWidth,y),g.lineDash=Object(s["P"])(l.lineDash,e.lineDash),g.lineDashOffset=e.lineDashOffset||0,g.stroke=x),b&&(g.fill=b);var _=t.contentWidth,C=t.contentHeight;f.setBoundingRect(new Mt(ni(g.x,_,g.textAlign),ii(g.y,C,g.textBaseline),_,C))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,l,c=t.backgroundColor,u=t.borderWidth,h=t.borderColor,d=c&&c.image,p=c&&!d,f=t.borderRadius,g=this;if(p||t.lineHeight||u&&h){a=this._getOrCreateChild(rs),a.useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=f,a.dirtyShape()}if(p){var v=a.style;v.fill=c||null,v.fillOpacity=Object(s["P"])(t.fillOpacity,1)}else if(d){l=this._getOrCreateChild(qa),l.onload=function(){g.dirtyStyle()};var y=l.style;y.image=c.image,y.x=n,y.y=i,y.width=r,y.height=o}if(u&&h){v=a.style;v.lineWidth=u,v.stroke=h,v.strokeOpacity=Object(s["P"])(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var b=(a||l).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=Object(s["Q"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return fs(t)&&(e=[t.fontStyle,t.fontWeight,ds(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(s["T"])(e)||t.textFont||t.font},e}(Lo),cs={left:!0,right:1,center:1},us={top:1,bottom:1,middle:1},hs=["fontStyle","fontWeight","fontSize","fontFamily"];function ds(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Qn["c"]+"px":t+"px":t}function ps(t,e){for(var n=0;n<hs.length;n++){var i=hs[n],r=e[i];null!=r&&(t[i]=r)}}function fs(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function gs(t){return ms(t),Object(s["k"])(t.rich,ms),t}function ms(t){if(t){t.font=ls.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||cs[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||us[n]?n:"top";var i=t.padding;i&&(t.padding=Object(s["M"])(t.padding))}}function vs(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function ys(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function bs(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function xs(t){var e=t.text;return null!=e&&(e+=""),e}function ws(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var _s=ls,Cs=kr(),As=function(t,e,n,i){if(i){var r=Cs(i);r.dataIndex=n,r.dataType=e,r.seriesIndex=t,"group"===i.type&&i.traverse((function(i){var r=Cs(i);r.seriesIndex=t,r.dataIndex=n,r.dataType=e}))}},Is=1,Ss={},Ms=kr(),ks=kr(),Es=0,Ts=1,Os=2,Ps=["emphasis","blur","select"],js=["normal","emphasis","blur","select"],Ls=10,Ds=9,Rs="highlight",Bs="downplay",Ns="select",Fs="unselect",zs="toggleSelect";function Vs(t){return null!=t&&"none"!==t}var Gs=new Kn["a"](100);function Hs(t){if(Object(s["C"])(t)){var e=Gs.get(t);return e||(e=Be["c"](t,-.1),Gs.put(t,e)),e}if(Object(s["x"])(t)){var n=Object(s["m"])({},t);return n.colorStops=Object(s["H"])(t.colorStops,(function(t){return{offset:t.offset,color:Be["c"](t.color,-.1)}})),n}return t}function Ws(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Us(t){Ws(t,"emphasis",Os)}function Zs(t){t.hoverState===Os&&Ws(t,"normal",Es)}function Ys(t){Ws(t,"blur",Ts)}function Xs(t){t.hoverState===Ts&&Ws(t,"normal",Es)}function qs(t){t.selected=!0}function Ks(t){t.selected=!1}function Qs(t,e,n){e(t,n)}function Js(t,e,n){Qs(t,e,n),t.isGroup&&t.traverse((function(t){Qs(t,e,n)}))}function $s(t,e){switch(e){case"emphasis":t.hoverState=Os;break;case"normal":t.hoverState=Es;break;case"blur":t.hoverState=Ts;break;case"select":t.selected=!0}}function tl(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var c=t.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&"style"===c.targetName&&c.saveTo(o,e)}return o}function el(t,e,n,i){var r=n&&Object(s["r"])(n,"select")>=0,o=!1;if(t instanceof Va){var a=Ms(t),l=r&&a.selectFill||a.normalFill,c=r&&a.selectStroke||a.normalStroke;if(Vs(l)||Vs(c)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=Object(s["m"])({},i),u=Object(s["m"])({},u),u.fill=l):!Vs(u.fill)&&Vs(l)?(o=!0,i=Object(s["m"])({},i),u=Object(s["m"])({},u),u.fill=Hs(l)):!Vs(u.stroke)&&Vs(c)&&(o||(i=Object(s["m"])({},i),u=Object(s["m"])({},u)),u.stroke=Hs(c)),i.style=u}}if(i&&null==i.z2){o||(i=Object(s["m"])({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:Ls)}return i}function nl(t,e,n){if(n&&null==n.z2){n=Object(s["m"])({},n);var i=t.z2SelectLift;n.z2=t.z2+(null!=i?i:Ds)}return n}function il(t,e,n){var i=Object(s["r"])(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:tl(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(s["m"])({},n),a=Object(s["m"])({opacity:i?r:.1*o.opacity},a),n.style=a),n}function rl(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return el(this,t,e,n);if("blur"===t)return il(this,t,n);if("select"===t)return nl(this,t,n)}return n}function ol(t){t.stateProxy=rl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=rl),n&&(n.stateProxy=rl)}function al(t,e){!fl(t,e)&&!t.__highByOuter&&Js(t,Us)}function sl(t,e){!fl(t,e)&&!t.__highByOuter&&Js(t,Zs)}function ll(t,e){t.__highByOuter|=1<<(e||0),Js(t,Us)}function cl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Js(t,Zs)}function ul(t){Js(t,Ys)}function hl(t){Js(t,Xs)}function dl(t){Js(t,qs)}function pl(t){Js(t,Ks)}function fl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function gl(t){var e=t.getModel(),n=[],i=[];e.eachComponent((function(e,r){var o=ks(r),a="series"===e,s=a?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(t){Xs(t)})),a&&n.push(r)),o.isBlured=!1})),Object(s["k"])(i,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function ml(t,e,n,i){var r=i.getModel();function o(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&hl(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=r.getSeriesByIndex(t),l=a.coordinateSystem;l&&l.master&&(l=l.master);var c=[];r.eachSeries((function(t){var r=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&l?u===l:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!h||"series"===e&&r)){var d=i.getViewOfSeriesModel(t);if(d.group.traverse((function(t){t.__highByOuter&&r&&"self"===e||Ys(t)})),Object(s["u"])(e))o(t.getData(),e);else if(Object(s["A"])(e))for(var p=Object(s["F"])(e),f=0;f<p.length;f++)o(t.getData(p[f]),e[p[f]]);c.push(t),ks(t).isBlured=!0}})),r.eachComponent((function(t,e){if("series"!==t){var n=i.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,r)}}))}}function vl(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){ks(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){Ys(t)}))}}}function yl(t,e,n){var i=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=Mr(r,e);o=(Object(s["t"])(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a){var l=r.count(),c=0;while(!a&&c<l)a=r.getItemGraphicEl(c++)}if(a){var u=Cs(a);ml(i,u.focus,u.blurScope,n)}else{var h=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);null!=h&&ml(i,h,d,n)}}}function bl(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;var o=i.getModel().getComponent(t,e);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),c=0;c<l.length;c++)if("self"===Cs(l[c]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function xl(t,e,n){var i=Cs(t),r=bl(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&vl(i.componentMainType,i.componentIndex,n),Object(s["k"])(o,(function(t){return al(t,e)}))):(ml(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&vl(i.componentMainType,i.componentIndex,n),al(t,e))}function wl(t,e,n){gl(n);var i=Cs(t),r=bl(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Object(s["k"])(r,(function(t){return sl(t,e)})):sl(t,e)}function _l(t,e,n){if(Rl(e)){var i=e.dataType,r=t.getData(i),o=Mr(r,e);Object(s["t"])(o)||(o=[o]),t[e.type===zs?"toggleSelect":e.type===Ns?"select":"unselect"](o,i)}}function Cl(t){var e=t.getAllData();Object(s["k"])(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?dl(e):pl(e)}))}))}function Al(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(s["k"])(n,(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function Il(t,e,n){Pl(t,!0),Js(t,ol),kl(t,e,n)}function Sl(t){Pl(t,!1)}function Ml(t,e,n,i){i?Sl(t):Il(t,e,n)}function kl(t,e,n){var i=Cs(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var El=["emphasis","blur","select"],Tl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ol(t,e,n,i){n=n||"itemStyle";for(var r=0;r<El.length;r++){var o=El[r],a=e.getModel([o,n]),s=t.ensureState(o);s.style=i?i(a):a[Tl[n]]()}}function Pl(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function jl(t){return!(!t||!t.__highDownDispatcher)}function Ll(t,e,n){var i=Cs(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function Dl(t){var e=Ss[t];return null==e&&Is<=32&&(e=Ss[t]=Is++),e}function Rl(t){var e=t.type;return e===Ns||e===Fs||e===zs}function Bl(t){var e=t.type;return e===Rs||e===Bs}function Nl(t){var e=Ms(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var Fl=kr();function zl(t,e,n,i,r){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var l=e&&e.isAnimationEnabled(),c="update"===t;if(l){var u=void 0,h=void 0,d=void 0;i?(u=Object(s["P"])(i.duration,200),h=Object(s["P"])(i.easing,"cubicOut"),d=0):(u=e.getShallow(c?"animationDurationUpdate":"animationDuration"),h=e.getShallow(c?"animationEasingUpdate":"animationEasing"),d=e.getShallow(c?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(h=o.easing),null!=o.delay&&(d=o.delay)),Object(s["w"])(d)&&(d=d(n,r)),Object(s["w"])(u)&&(u=u(n));var p={duration:u||0,delay:d,easing:h};return p}return null}function Vl(t,e,n,i,r,o,a){var l,c=!1;Object(s["w"])(r)?(a=o,o=r,r=null):Object(s["A"])(r)&&(o=r.cb,a=r.during,c=r.isFrom,l=r.removeOpt,r=r.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var h=zl(t,i,r,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null);if(h&&h.duration>0){var d=h.duration,p=h.delay,f=h.easing,g={duration:d,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};c?e.animateFrom(n,g):e.animateTo(n,g)}else e.stopAnimation(),!c&&e.attr(n),a&&a(1),o&&o()}function Gl(t,e,n,i,r,o){Vl("update",t,e,n,i,r,o)}function Hl(t,e,n,i,r,o){Vl("enter",t,e,n,i,r,o)}function Wl(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function Ul(t,e,n,i,r,o){Wl(t)||Vl("leave",t,e,n,i,r,o)}function Zl(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Ul(t,{style:{opacity:0}},e,n,i)}function Yl(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||Zl(t,e,n,i)})):Zl(t,e,n,i)}function Xl(t){Fl(t).oldStyle=t.style}function ql(t){return Fl(t).oldStyle}var Kl={};function Ql(t,e){for(var n=0;n<Ps.length;n++){var i=Ps[n],r=e[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function Jl(t,e,n){var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,l=e.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,l&&l.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Object(s["w"])(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var c={normal:i},u=0;u<Ps.length;u++){var h=Ps[u],d=e[h];c[h]=Object(s["P"])(r?r.getFormattedLabel(o,h,null,a,d&&d.get("formatter")):null,i)}return c}function $l(t,e,n,i){n=n||Kl;for(var r=t instanceof _s,o=!1,a=0;a<js.length;a++){var l=e[js[a]];if(l&&l.getShallow("show")){o=!0;break}}var c=r?t:t.getTextContent();if(o){r||(c||(c=new _s,t.setTextContent(c)),t.stateProxy&&(c.stateProxy=t.stateProxy));var u=Jl(n,e),h=e.normal,d=!!h.getShallow("show"),p=ec(h,i&&i.normal,n,!1,!r);p.text=u.normal,r||t.setTextConfig(nc(h,n,!1));for(a=0;a<Ps.length;a++){var f=Ps[a];l=e[f];if(l){var g=c.ensureState(f),m=!!Object(s["P"])(l.getShallow("show"),d);if(m!==d&&(g.ignore=!m),g.style=ec(l,i&&i[f],n,!0,!r),g.style.text=u[f],!r){var v=t.ensureState(f);v.textConfig=nc(l,n,!0)}}}c.silent=!!h.getShallow("silent"),null!=c.style.x&&(p.x=c.style.x),null!=c.style.y&&(p.y=c.style.y),c.ignore=!d,c.useStyle(p),c.dirty(),n.enableTextSetter&&(uc(c).setLabelText=function(t){var i=Jl(n,e,t);Ql(c,i)})}else c&&(c.ignore=!0);t.dirty()}function tc(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Ps.length;i++){var r=Ps[i];n[r]=t.getModel([r,e])}return n}function ec(t,e,n,i,r){var o={};return ic(o,t,n,i,r),e&&Object(s["m"])(o,e),o}function nc(t,e,n){e=e||{};var i,r={},o=t.getShallow("rotate"),a=Object(s["P"])(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=e.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=l&&(r.offset=l),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",r}function ic(t,e,n,i,r){n=n||Kl;var o,a=e.ecModel,s=a&&a.option.textStyle,l=rc(e);if(l)for(var c in o={},l)if(l.hasOwnProperty(c)){var u=e.getModel(["rich",c]);lc(o[c]={},u,s,n,i,r,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var d=e.get("minMargin");null!=d&&(t.margin=d),lc(t,e,s,n,i,r,!0,!1)}function rc(t){var e;while(t&&t!==t.ecModel){var n=(t.option||Kl).rich;if(n){e=e||{};for(var i=Object(s["F"])(n),r=0;r<i.length;r++){var o=i[r];e[o]=1}}t=t.parentModel}return e}var oc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ac=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],sc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function lc(t,e,n,i,r,o,a,l){n=!r&&n||Kl;var c=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),d=Object(s["P"])(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=c||null),"inherit"!==h&&"auto"!==h||(h=c||null),o||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h);var p=Object(s["P"])(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(t.lineWidth=p);var f=Object(s["P"])(e.getShallow("textBorderType"),n.textBorderType);null!=f&&(t.lineDash=f);var g=Object(s["P"])(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=g&&(t.lineDashOffset=g),r||null!=d||l||(d=i&&i.defaultOpacity),null!=d&&(t.opacity=d),r||o||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var m=0;m<oc.length;m++){var v=oc[m],y=Object(s["P"])(e.getShallow(v),n[v]);null!=y&&(t[v]=y)}for(m=0;m<ac.length;m++){v=ac[m],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var b=e.getShallow("baseline");null!=b&&(t.verticalAlign=b)}if(!a||!i.disableBox){for(m=0;m<sc.length;m++){v=sc[m],y=e.getShallow(v);null!=y&&(t[v]=y)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function cc(t,e){var n=e&&e.getModel("textStyle");return Object(s["T"])([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var uc=kr();function hc(t,e,n,i){if(t){var r=uc(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function dc(t,e,n,i,r){var o=uc(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,l=Object(s["P"])(o.interpolatedValue,o.prevValue),c=o.value;t.percent=0,(null==o.prevValue?Hl:Gl)(t,{percent:1},i,e,null,u)}function u(i){var s=Fr(n,o.precision,l,c,i);o.interpolatedValue=1===i?null:s;var u=Jl({labelDataIndex:e,labelFetcher:r,defaultText:a?a(s):s+""},o.statesModels,s);Ql(t,u)}}var pc=["textStyle","color"],fc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],gc=new _s,mc=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(pc):null)},t.prototype.getFont=function(){return cc({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<fc.length;n++)e[fc[n]]=this.getShallow(fc[n]);return gc.useStyle(e),gc.update(),gc.getBoundingRect()},t}(),vc=mc,yc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],bc=to(yc),xc=function(){function t(){}return t.prototype.getLineStyle=function(t){return bc(this,t)},t}(),wc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],_c=to(wc),Cc=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return _c(this,t,e)},t}(),Ac=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){Object(s["I"])(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Object(s["d"])(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!a["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length;i++)if(t[i]&&(n=n&&"object"===typeof n?n[t[i]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Zr(Ac),Kr(Ac),Object(s["K"])(Ac,xc),Object(s["K"])(Ac,Cc),Object(s["K"])(Ac,io),Object(s["K"])(Ac,vc);var Ic=Ac,Sc=Math.round(10*Math.random());function Mc(t){return[t||"",Sc++].join("_")}function kc(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Hr(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=Hr(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}function Ec(t,e){function n(t){var n={},o=[];return s["k"](t,(function(a){var l=i(n,a),c=l.originalDeps=e(a),u=r(c,t);l.entryCount=u.length,0===l.entryCount&&o.push(a),s["k"](u,(function(t){s["r"](l.predecessor,t)<0&&l.predecessor.push(t);var e=i(n,t);s["r"](e.successor,t)<0&&e.successor.push(a)}))})),{graph:n,noEntryList:o}}function i(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function r(t,e){var n=[];return s["k"](t,(function(t){s["r"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=n(e),a=o.graph,l=o.noEntryList,c={};s["k"](t,(function(t){c[t]=!0}));while(l.length){var u=l.pop(),h=a[u],d=!!c[u];d&&(i.call(r,u,h.originalDeps.slice()),delete c[u]),s["k"](h.successor,d?f:p)}s["k"](c,(function(){var t="";throw new Error(t)}))}function p(t){a[t].entryCount--,0===a[t].entryCount&&l.push(t)}function f(t){c[t]=!0,p(t)}}}function Tc(t,e){return s["I"](s["I"]({},t,!0),e,!0)}var Oc={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Pc={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}},jc="ZH",Lc="EN",Dc=Lc,Rc={},Bc={},Nc=a["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(jc)>-1?jc:Dc}():Dc;function Fc(t,e){t=t.toUpperCase(),Bc[t]=new Ic(e),Rc[t]=e}function zc(t){if(Object(s["C"])(t)){var e=Rc[t.toUpperCase()]||{};return t===jc||t===Lc?Object(s["d"])(e):Object(s["I"])(Object(s["d"])(e),Object(s["d"])(Rc[Dc]),!1)}return Object(s["I"])(Object(s["d"])(t),Object(s["d"])(Rc[Dc]),!1)}function Vc(t){return Bc[t]}function Gc(){return Bc[Dc]}Fc(Lc,Oc),Fc(jc,Pc);var Hc=1e3,Wc=60*Hc,Uc=60*Wc,Zc=24*Uc,Yc=365*Zc,Xc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},qc="{yyyy}-{MM}-{dd}",Kc={year:"{yyyy}",month:"{yyyy}-{MM}",day:qc,hour:qc+" "+Xc.hour,minute:qc+" "+Xc.minute,second:qc+" "+Xc.second,millisecond:Xc.none},Qc=["year","month","day","hour","minute","second","millisecond"],Jc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $c(t,e){return t+="","0000".substr(0,e-t.length)+t}function tu(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function eu(t){return t===tu(t)}function nu(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function iu(t,e,n,i){var r=Zi(t),o=r[su(n)](),a=r[lu(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[cu(n)](),c=r["get"+(n?"UTC":"")+"Day"](),u=r[uu(n)](),h=(u-1)%12+1,d=r[hu(n)](),p=r[du(n)](),f=r[pu(n)](),g=i instanceof Ic?i:Vc(i||Nc)||Gc(),m=g.getModel("time"),v=m.get("month"),y=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,$c(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,$c(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,$c(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[c]).replace(/{ee}/g,x[c]).replace(/{e}/g,c+"").replace(/{HH}/g,$c(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,$c(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,$c(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,$c(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,$c(f,3)).replace(/{S}/g,f+"")}function ru(t,e,n,i,r){var o=null;if(s["C"](n))o=n;else if(s["w"](n))o=n(t.value,e,{level:t.level});else{var a=s["m"]({},Xc);if(t.level>0)for(var l=0;l<Qc.length;++l)a[Qc[l]]="{primary|"+a[Qc[l]]+"}";var c=n?!1===n.inherit?n:s["i"](n,a):a,u=ou(t.value,r);if(c[u])o=c[u];else if(c.inherit){var h=Jc.indexOf(u);for(l=h-1;l>=0;--l)if(c[u]){o=c[u];break}o=o||a.none}if(s["t"](o)){var d=null==t.level?0:t.level>=0?t.level:o.length+t.level;d=Math.min(d,o.length-1),o=o[d]}}return iu(new Date(t.value),o,r,i)}function ou(t,e){var n=Zi(t),i=n[lu(e)]()+1,r=n[cu(e)](),o=n[uu(e)](),a=n[hu(e)](),s=n[du(e)](),l=n[pu(e)](),c=0===l,u=c&&0===s,h=u&&0===a,d=h&&0===o,p=d&&1===r,f=p&&1===i;return f?"year":p?"month":d?"day":h?"hour":u?"minute":c?"second":"millisecond"}function au(t,e,n){var i=s["z"](t)?Zi(t):t;switch(e=e||ou(t,n),e){case"year":return i[su(n)]();case"half-year":return i[lu(n)]()>=6?1:0;case"quarter":return Math.floor((i[lu(n)]()+1)/4);case"month":return i[lu(n)]();case"day":return i[cu(n)]();case"half-day":return i[uu(n)]()/24;case"hour":return i[uu(n)]();case"minute":return i[hu(n)]();case"second":return i[du(n)]();case"millisecond":return i[pu(n)]()}}function su(t){return t?"getUTCFullYear":"getFullYear"}function lu(t){return t?"getUTCMonth":"getMonth"}function cu(t){return t?"getUTCDate":"getDate"}function uu(t){return t?"getUTCHours":"getHours"}function hu(t){return t?"getUTCMinutes":"getMinutes"}function du(t){return t?"getUTCSeconds":"getSeconds"}function pu(t){return t?"getUTCMilliseconds":"getMilliseconds"}function fu(t){return t?"setUTCFullYear":"setFullYear"}function gu(t){return t?"setUTCMonth":"setMonth"}function mu(t){return t?"setUTCDate":"setDate"}function vu(t){return t?"setUTCHours":"setHours"}function yu(t){return t?"setUTCMinutes":"setMinutes"}function bu(t){return t?"setUTCSeconds":"setSeconds"}function xu(t){return t?"setUTCMilliseconds":"setMilliseconds"}function wu(t){if(!$i(t))return s["C"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function _u(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Cu=s["M"];function Au(t,e,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(t){return t&&s["T"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,l=t instanceof Date;if(a||l){var c=a?Zi(t):t;if(!isNaN(+c))return iu(c,i,n);if(l)return"-"}if("ordinal"===e)return s["D"](t)?r(t):s["z"](t)&&o(t)?t+"":"-";var u=Ji(t);return o(u)?wu(u):s["D"](t)?r(t):"boolean"===typeof t?t+"":"-"}var Iu=["a","b","c","d","e","f","g"],Su=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Mu(t,e,n){s["t"](e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Iu[o];t=t.replace(Su(a),Su(a,0))}for(var l=0;l<i;l++)for(var c=0;c<r.length;c++){var u=e[l][r[c]];t=t.replace(Su(Iu[c],l),n?W(u):u)}return t}function ku(t,e,n){return s["k"](e,(function(e,i){t=t.replace("{"+i+"}",n?W(e):e)})),t}function Eu(t,e){var n=s["C"](t)?{color:t,extraCssText:e}:t||{},i=n.color,r=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if("html"===o)return"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+W(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+W(i)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|}  ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Tu(t,e){return e=e||"transparent",s["C"](t)?t:s["A"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Ou(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var Pu=s["k"],ju=["left","right","top","bottom","width","height"],Lu=[["width","left","right"],["height","top","bottom"]];function Du(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,c){var u,h,d=l.getBoundingRect(),p=e.childAt(c+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);u=o+g,u>i||l.newline?(o=0,u=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);h=a+m,h>r||l.newline?(o+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+n:a=h+n)}))}var Ru=Du;s["h"](Du,"vertical"),s["h"](Du,"horizontal");function Bu(t,e,n){var i=e.width,r=e.height,o=Li(t.left,i),a=Li(t.top,r),s=Li(t.right,i),l=Li(t.bottom,r);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=r),n=Cu(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function Nu(t,e,n){n=Cu(n||0);var i=e.width,r=e.height,o=Li(t.left,i),a=Li(t.top,r),s=Li(t.right,i),l=Li(t.bottom,r),c=Li(t.width,i),u=Li(t.height,r),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(c)&&(c=i-s-d-o),isNaN(u)&&(u=r-l-h-a),null!=p&&(isNaN(c)&&isNaN(u)&&(p>i/r?c=.8*i:u=.8*r),isNaN(c)&&(c=p*u),isNaN(u)&&(u=c/p)),isNaN(o)&&(o=i-s-c-d),isNaN(a)&&(a=r-l-u-h),t.left||t.right){case"center":o=i/2-c/2-n[3];break;case"right":o=i-c-d;break}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-h;break}o=o||0,a=a||0,isNaN(c)&&(c=i-d-o-(s||0)),isNaN(u)&&(u=r-h-a-(l||0));var f=new Mt(o+n[3],a+n[0],c,u);return f.margin=n,f}function Fu(t,e,n,i,r,o){var a,l=!r||!r.hv||r.hv[0],c=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!l&&!c)return!1;if("raw"===u)a="group"===t.type?new Mt(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();a=a.clone(),a.applyTransform(h)}var d=Nu(s["i"]({width:a.width,height:a.height},e),n,i),p=l?d.x-a.x:0,f=c?d.y-a.y:0;return"raw"===u?(o.x=p,o.y=f):(o.x+=p,o.y+=f),o===t&&t.markRedraw(),!0}function zu(t,e){return null!=t[Lu[e][0]]||null!=t[Lu[e][1]]&&null!=t[Lu[e][2]]}function Vu(t){var e=t.layoutMode||t.constructor.layoutMode;return s["A"](e)?e:e?{type:e}:null}function Gu(t,e,n){var i=n&&n.ignoreSize;!s["t"](i)&&(i=[i,i]);var r=a(Lu[0],0),o=a(Lu[1],1);function a(n,r){var o={},a=0,s={},u=0,h=2;if(Pu(n,(function(e){s[e]=t[e]})),Pu(n,(function(t){l(e,t)&&(o[t]=s[t]=e[t]),c(o,t)&&a++,c(s,t)&&u++})),i[r])return c(e,n[1])?s[n[2]]=null:c(e,n[2])&&(s[n[1]]=null),s;if(u!==h&&a){if(a>=h)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!l(o,p)&&l(t,p)){o[p]=t[p];break}}return o}return s}function l(t,e){return t.hasOwnProperty(e)}function c(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){Pu(t,(function(t){e[t]=n[t]}))}u(Lu[0],t,r),u(Lu[1],t,o)}function Hu(t){return Wu({},t)}function Wu(t,e){return e&&t&&Pu(ju,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var Uu=kr(),Zu=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=Mc("ec_cpt_model"),r}return o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Vu(this),i=n?Hu(t):{},r=e.getTheme();s["I"](t,r.get(this.mainType)),s["I"](t,this.getDefaultOption()),n&&Gu(t,i,n)},e.prototype.mergeOption=function(t,e){s["I"](this.option,t,!0);var n=Vu(this);n&&Gu(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!Ur(t))return t.defaultOption;var e=Uu(this);if(!e.defaultOption){var n=[],i=t;while(i){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=s["I"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return Lr(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Ic);function Yu(t){var e=[];return s["k"](Zu.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=s["H"](e,(function(t){return Hr(t).main})),"dataset"!==t&&s["r"](e,"dataset")<=0&&e.unshift("dataset"),e}Xr(Zu,Ic),$r(Zu),kc(Zu),Ec(Zu,Yu);var Xu=Zu,qu="";"undefined"!==typeof navigator&&(qu=navigator.platform||"");var Ku="rgba(0, 0, 0, 0.2)",Qu={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ku,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ku,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ku,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ku,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ku,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ku,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qu.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Ju=Object(s["f"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),$u="original",th="arrayRows",eh="objectRows",nh="keyedColumns",ih="typedArray",rh="unknown",oh="column",ah="row",sh={Must:1,Might:2,Not:3},lh=kr();function ch(t){lh(t).datasetMap=Object(s["f"])()}function uh(t,e,n){var i={},r=dh(e);if(!r||!t)return i;var o,a,l=[],c=[],u=e.ecModel,h=lh(u).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(s["k"])(t,(function(e,n){var r=Object(s["A"])(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=g(r)),i[r.name]=[]}));var p=h.get(d)||h.set(d,{categoryWayDim:a,valueWayDim:0});function f(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function g(t){var e=t.dimsDef;return e?e.length:1}return Object(s["k"])(t,(function(t,e){var n=t.name,r=g(t);if(null==o){var a=p.valueWayDim;f(i[n],a,r),f(c,a,r),p.valueWayDim+=r}else if(o===e)f(i[n],0,r),f(l,0,r);else{a=p.categoryWayDim;f(i[n],a,r),f(c,a,r),p.categoryWayDim+=r}})),l.length&&(i.itemName=l),c.length&&(i.seriesName=c),i}function hh(t,e,n){var i={},r=dh(t);if(!r)return i;var o,a=e.sourceFormat,l=e.dimensionsDefine;a!==eh&&a!==nh||Object(s["k"])(l,(function(t,e){"name"===(Object(s["A"])(t)?t.name:t)&&(o=e)}));var c=function(){for(var t={},i={},r=[],s=0,c=Math.min(5,n);s<c;s++){var u=gh(e.data,a,e.seriesLayoutBy,l,e.startIndex,s);r.push(u);var h=u===sh.Not;if(h&&null==t.v&&s!==o&&(t.v=s),(null==t.n||t.n===t.v||!h&&r[t.n]===sh.Not)&&(t.n=s),d(t)&&r[t.n]!==sh.Not)return t;h||(u===sh.Might&&null==i.v&&s!==o&&(i.v=s),null!=i.n&&i.n!==i.v||(i.n=s))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(i)?i:null}();if(c){i.value=[c.v];var u=null!=o?o:c.n;i.itemName=[u],i.seriesName=[u]}return i}function dh(t){var e=t.get("data",!0);if(!e)return Lr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Pr).models[0]}function ph(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?Lr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Pr).models:[]}function fh(t,e){return gh(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function gh(t,e,n,i,r,o){var a,l,c,u=5;if(Object(s["E"])(t))return sh.Not;if(i){var h=i[o];Object(s["A"])(h)?(l=h.name,c=h.type):Object(s["C"])(h)&&(l=h)}if(null!=c)return"ordinal"===c?sh.Must:sh.Not;if(e===th){var d=t;if(n===ah){for(var p=d[o],f=0;f<(p||[]).length&&f<u;f++)if(null!=(a=w(p[r+f])))return a}else for(f=0;f<d.length&&f<u;f++){var g=d[r+f];if(g&&null!=(a=w(g[o])))return a}}else if(e===eh){var m=t;if(!l)return sh.Not;for(f=0;f<m.length&&f<u;f++){var v=m[f];if(v&&null!=(a=w(v[l])))return a}}else if(e===nh){var y=t;if(!l)return sh.Not;p=y[l];if(!p||Object(s["E"])(p))return sh.Not;for(f=0;f<p.length&&f<u;f++)if(null!=(a=w(p[f])))return a}else if(e===$u){var b=t;for(f=0;f<b.length&&f<u;f++){v=b[f];var x=cr(v);if(!Object(s["t"])(x))return sh.Not;if(null!=(a=w(x[o])))return a}}function w(t){var e=Object(s["C"])(t);return null!=t&&isFinite(t)&&""!==t?e?sh.Might:sh.Not:e&&"-"!==t?sh.Must:void 0}return sh.Not}var mh=Object(s["f"])();function vh(t,e){Object(s["b"])(null==mh.get(t)&&e),mh.set(t,e)}function yh(t,e,n){var i=mh.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}var bh=kr(),xh=kr(),wh=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var i=ar(this.get("color",!0)),r=this.get("colorLayer",!0);return Ah(this,bh,i,r,t,e,n)},t.prototype.clearColorPalette=function(){Ih(this,bh)},t}();function _h(t,e,n,i){var r=ar(t.get(["aria","decal","decals"]));return Ah(t,xh,r,null,e,n,i)}function Ch(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}function Ah(t,e,n,i,r,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var u=null!=a&&i?Ch(i,a):n;if(u=u||n,u&&u.length){var h=u[l];return r&&(c[r]=h),s.paletteIdx=(l+1)%u.length,h}}function Ih(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Sh,Mh,kh;"undefined"!==typeof console&&console.warn&&console.log;function Eh(t){0}function Th(t){throw new Error(t)}var Oh="\0_ec_inner",Ph=1;var jh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Ic(i),this._locale=new Ic(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=Nh(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Nh(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):kh(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&Object(s["k"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Object(s["f"])(),l=e&&e.replaceMergeMainTypeMap;function c(e){var o=yh(this,e,ar(t[e])),a=i.get(e),c=a?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=hr(a,o,c);Ar(u,e,Xu),n[e]=null,i.set(e,null),r.set(e,0);var h,d=[],p=[],f=0;Object(s["k"])(u,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Xu.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(h)return void 0;h=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=Object(s["m"])({componentIndex:n},t.keyInfo);i=new a(r,this,this,l),Object(s["m"])(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),p.push(i),f++):(d.push(void 0),p.push(void 0))}),this),n[e]=d,i.set(e,p),r.set(e,f),"series"===e&&Sh(this)}ch(this),Object(s["k"])(t,(function(t,e){null!=t&&(Xu.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(s["d"])(t):Object(s["I"])(n[e],t,!0))})),l&&l.each((function(t,e){Xu.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Xu.topologicalTravel(o,Xu.getAllClassMainTypes(),c,this),this._seriesIndices||Sh(this)},e.prototype.getOption=function(){var t=Object(s["d"])(this.option);return Object(s["k"])(t,(function(e,n){if(Xu.hasClass(n)){for(var i=ar(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!_r(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[Oh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],Object(s["k"])(ar(i),(function(t){a[t]&&n.push(a[t])}))):n=null!=r?Rh("id",r,a):null!=o?Rh("name",o,a):Object(s["n"])(a,(function(t){return!!t})),Bh(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,i=o(e),r=i?this.queryComponents(i):Object(s["n"])(this._componentsMap.get(n),(function(t){return!!t}));return a(Bh(r,t));function o(t){var e=n+"Index",i=n+"Id",r=n+"Name";return!t||null==t[e]&&null==t[i]&&null==t[r]?null:{mainType:n,index:t[e],id:t[i],name:t[r]}}function a(e){return t.filter?Object(s["n"])(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(Object(s["w"])(t)){var r=e,o=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}}))}else for(var a=Object(s["C"])(t)?i.get(t):Object(s["A"])(t)?this.findComponents(t):null,l=0;a&&l<a.length;l++){var c=a[l];c&&e.call(n,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=xr(t,null);return Object(s["n"])(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(s["n"])(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(s["n"])(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Mh(this),Object(s["k"])(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(s["k"])(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Mh(this),Object(s["k"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(s["k"])(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Mh(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Mh(this);var n=[];Object(s["k"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(s["f"])(n)},e.prototype.restoreData=function(t){Sh(this);var e=this._componentsMap,n=[];e.each((function(t,e){Xu.hasClass(e)&&n.push(e)})),Xu.topologicalTravel(n,Xu.getAllClassMainTypes(),(function(n){Object(s["k"])(e.get(n),(function(e){!e||"series"===n&&Lh(e,t)||e.restoreData()}))}))},e.internalField=function(){Sh=function(t){var e=t._seriesIndices=[];Object(s["k"])(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(s["f"])(e)},Mh=function(t){0},kh=function(t,e){t.option={},t.option[Oh]=Ph,t._componentsMap=Object(s["f"])({series:[]}),t._componentsCount=Object(s["f"])();var n=e.aria;Object(s["A"])(n)&&null==n.enabled&&(n.enabled=!0),Dh(e,t._theme.option),Object(s["I"])(e,Qu,!1),t._mergeOption(e,null)}}(),e}(Ic);function Lh(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}function Dh(t,e){var n=t.color&&!t.colorLayer;Object(s["k"])(e,(function(e,i){"colorLayer"===i&&n||Xu.hasClass(i)||("object"===typeof e?t[i]=t[i]?Object(s["I"])(t[i],e,!1):Object(s["d"])(e):null==t[i]&&(t[i]=e))}))}function Rh(t,e,n){if(Object(s["t"])(e)){var i=Object(s["f"])();return Object(s["k"])(e,(function(t){if(null!=t){var e=xr(t,null);null!=e&&i.set(t,!0)}})),Object(s["n"])(n,(function(e){return e&&i.get(e[t])}))}var r=xr(e,null);return Object(s["n"])(n,(function(e){return e&&null!=r&&e[t]===r}))}function Bh(t,e){return e.hasOwnProperty("subType")?Object(s["n"])(t,(function(t){return t&&t.subType===e.subType})):t}function Nh(t){var e=Object(s["f"])();return t&&Object(s["k"])(ar(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(s["K"])(jh,wh);var Fh=jh,zh=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Vh=function(){function t(t){s["k"](zh,(function(e){this[e]=s["c"](t[e],t)}),this)}return t}(),Gh=Vh,Hh={},Wh=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];s["k"](Hh,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){s["k"](this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){Hh[t]=e},t.get=function(t){return Hh[t]},t}(),Uh=Wh,Zh=/^(min|max)?(.+)$/,Yh=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(s["k"])(ar(t.series),(function(t){t&&t.data&&Object(s["E"])(t.data)&&Object(s["R"])(t.data)})),Object(s["k"])(ar(t.dataset),(function(t){t&&t.source&&Object(s["E"])(t.source)&&Object(s["R"])(t.source)}))),t=Object(s["d"])(t);var i=this._optionBackup,r=Xh(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(s["d"])(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=Object(s["d"])(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var l=0,c=i.length;l<c;l++)qh(i[l].query,e,n)&&o.push(l);return!o.length&&r&&(o=[-1]),o.length&&!Qh(o,this._currentMediaIndices)&&(a=Object(s["H"])(o,(function(t){return Object(s["d"])(-1===t?r.option:i[t].option)}))),this._currentMediaIndices=o,a},t}();function Xh(t,e,n){var i,r,o=[],a=t.baseOption,l=t.timeline,c=t.options,u=t.media,h=!!t.media,d=!!(c||l||a&&a.timeline);function p(t){Object(s["k"])(e,(function(e){e(t,n)}))}return a?(r=a,r.timeline||(r.timeline=l)):((d||h)&&(t.options=t.media=null),r=t),h&&Object(s["t"])(u)&&Object(s["k"])(u,(function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))})),p(r),Object(s["k"])(c,(function(t){return p(t)})),Object(s["k"])(o,(function(t){return p(t.option)})),{baseOption:r,timelineOptions:c||[],mediaDefault:i,mediaList:o}}function qh(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return Object(s["k"])(t,(function(t,e){var n=e.match(Zh);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();Kh(i[a],t,o)||(r=!1)}})),r}function Kh(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function Qh(t,e){return t.join(",")===e.join(",")}var Jh=Yh,$h=s["k"],td=s["A"],ed=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function nd(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=ed.length;n<i;n++){var r=ed[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?s["I"](t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?s["I"](t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function id(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,s["i"](t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function rd(t){id(t,"itemStyle"),id(t,"lineStyle"),id(t,"areaStyle"),id(t,"label"),id(t,"labelLine"),id(t,"upperLabel"),id(t,"edgeLabel")}function od(t,e){var n=td(t)&&t[e],i=td(n)&&n.textStyle;if(i){0;for(var r=0,o=lr.length;r<o;r++){var a=lr[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function ad(t){t&&(rd(t),od(t,"label"),t.emphasis&&od(t.emphasis,"label"))}function sd(t){if(td(t)){nd(t),rd(t),od(t,"label"),od(t,"upperLabel"),od(t,"edgeLabel"),t.emphasis&&(od(t.emphasis,"label"),od(t.emphasis,"upperLabel"),od(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(nd(e),ad(e));var n=t.markLine;n&&(nd(n),ad(n));var i=t.markArea;i&&ad(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!s["E"](o))for(var a=0;a<o.length;a++)ad(o[a]);s["k"](t.categories,(function(t){rd(t)}))}if(r&&!s["E"](r))for(a=0;a<r.length;a++)ad(r[a]);if(e=t.markPoint,e&&e.data){var l=e.data;for(a=0;a<l.length;a++)ad(l[a])}if(n=t.markLine,n&&n.data){var c=n.data;for(a=0;a<c.length;a++)s["t"](c[a])?(ad(c[a][0]),ad(c[a][1])):ad(c[a])}"gauge"===t.type?(od(t,"axisLabel"),od(t,"title"),od(t,"detail")):"treemap"===t.type?(id(t.breadcrumb,"itemStyle"),s["k"](t.levels,(function(t){rd(t)}))):"tree"===t.type&&rd(t.leaves)}}function ld(t){return s["t"](t)?t:t?[t]:[]}function cd(t){return(s["t"](t)?t[0]:t)||{}}function ud(t,e){$h(ld(t.series),(function(t){td(t)&&sd(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),$h(n,(function(e){$h(ld(t[e]),(function(t){t&&(od(t,"axisLabel"),od(t.axisPointer,"label"))}))})),$h(ld(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;od(e,"axisLabel"),od(e&&e.axisPointer,"label")})),$h(ld(t.calendar),(function(t){id(t,"itemStyle"),od(t,"dayLabel"),od(t,"monthLabel"),od(t,"yearLabel")})),$h(ld(t.radar),(function(t){od(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),$h(ld(t.geo),(function(t){td(t)&&(ad(t),$h(ld(t.regions),(function(t){ad(t)})))})),$h(ld(t.timeline),(function(t){ad(t),id(t,"label"),id(t,"itemStyle"),id(t,"controlStyle",!0);var e=t.data;s["t"](e)&&s["k"](e,(function(t){s["A"](t)&&(id(t,"label"),id(t,"itemStyle"))}))})),$h(ld(t.toolbox),(function(t){id(t,"iconStyle"),$h(t.feature,(function(t){id(t,"iconStyle")}))})),od(cd(t.axisPointer),"label"),od(cd(t.tooltip).axisPointer,"label")}function hd(t,e){for(var n=e.split(","),i=t,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function dd(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function pd(t){t&&Object(s["k"])(fd,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var fd=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],gd=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],md=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function vd(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<md.length;n++){var i=md[n][1],r=md[n][0];null!=e[i]&&(e[r]=e[i])}}function yd(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function bd(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function xd(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function wd(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&wd(t[n].children,e)}function _d(t,e){ud(t,e),t.series=ar(t.series),Object(s["k"])(t.series,(function(t){if(Object(s["A"])(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),yd(t.label);var n=t.data;if(n&&!Object(s["E"])(n))for(var i=0;i<n.length;i++)yd(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var r=hd(t,"pointer.color");null!=r&&dd(t,"itemStyle.color",r)}else if("bar"===e){vd(t),vd(t.backgroundStyle),vd(t.emphasis);n=t.data;if(n&&!Object(s["E"])(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(vd(n[i]),vd(n[i]&&n[i].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),bd(t),wd(t.data,bd)}else"graph"===e||"sankey"===e?xd(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(s["i"])(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),pd(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(s["k"])(gd,(function(e){var n=t[e];n&&(Object(s["t"])(n)||(n=[n]),Object(s["k"])(n,(function(t){pd(t)})))}))}function Cd(t){var e=Object(s["f"])();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(Ad)}function Ad(t){Object(s["k"])(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,c,u){var h,d,p=a.get(e.stackedDimension,u);if(isNaN(p))return r;s?d=a.getRawIndex(u):h=a.get(e.stackedByDimension,u);for(var f=NaN,g=n-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=Vi(p,v),f=v;break}}}return i[0]=p,i[1]=f,i}))}))}var Id,Sd,Md,kd,Ed,Td=function(){function t(t){this.data=t.data||(t.sourceFormat===nh?{}:[]),this.sourceFormat=t.sourceFormat||rh,this.seriesLayoutBy=t.seriesLayoutBy||oh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&fh(this,n)===sh.Must&&(i.type="ordinal")}}return t}();function Od(t){return t instanceof Td}function Pd(t,e,n){n=n||Dd(t);var i=e.seriesLayoutBy,r=Rd(t,n,i,e.sourceHeader,e.dimensions),o=new Td({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Object(s["d"])(e)});return o}function jd(t){return new Td({data:t,sourceFormat:Object(s["E"])(t)?ih:$u})}function Ld(t){return new Td({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(s["d"])(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Dd(t){var e=rh;if(Object(s["E"])(t))e=ih;else if(Object(s["t"])(t)){0===t.length&&(e=th);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(Object(s["t"])(r)){e=th;break}if(Object(s["A"])(r)){e=eh;break}}}}else if(Object(s["A"])(t))for(var o in t)if(Object(s["q"])(t,o)&&Object(s["u"])(t[o])){e=nh;break}return e}function Rd(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Nd(r),startIndex:a,dimensionsDetectedCount:o};if(e===th){var l=t;"auto"===i||null==i?Fd((function(t){null!=t&&"-"!==t&&(Object(s["C"])(t)?null==a&&(a=1):a=0)}),n,l,10):a=Object(s["z"])(i)?i:i?1:0,r||1!==a||(r=[],Fd((function(t,e){r[e]=null!=t?t+"":""}),n,l,1/0)),o=r?r.length:n===ah?l.length:l[0]?l[0].length:null}else if(e===eh)r||(r=Bd(t));else if(e===nh)r||(r=[],Object(s["k"])(t,(function(t,e){r.push(e)})));else if(e===$u){var c=cr(t[0]);o=Object(s["t"])(c)&&c.length||1}return{startIndex:a,dimensionsDefine:Nd(r),dimensionsDetectedCount:o}}function Bd(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e)return Object(s["F"])(e)}function Nd(t){if(t){var e=Object(s["f"])();return Object(s["H"])(t,(function(t,n){t=Object(s["A"])(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=e.get(i.name);return r?i.name+="-"+r.count++:e.set(i.name,{count:1}),i}))}}function Fd(t,e,n,i){if(e===ah)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)t(o[r],r)}}function zd(t){var e=t.sourceFormat;return e===eh||e===nh}var Vd=function(){function t(t,e){var n=Od(t)?t:jd(t);this._source=n;var i=this._data=n.data;n.sourceFormat===ih&&(this._offset=0,this._dimSize=e,this._data=i),Ed(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Ed=function(t,r,o){var a=o.sourceFormat,l=o.seriesLayoutBy,c=o.startIndex,u=o.dimensionsDefine,h=kd[Qd(a,l)];if(Object(s["m"])(t,h),a===ih)t.getItem=e,t.count=i,t.fillStorage=n;else{var d=Wd(a,l);t.getItem=Object(s["c"])(d,null,r,c,u);var p=Yd(a,l);t.count=Object(s["c"])(p,null,r,c,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],c=null==s[1]?-1/0:s[1],u=e-t,h=n[a],d=0;d<u;d++){var p=r[d*o+a];h[t+d]=p,p<l&&(l=p),p>c&&(c=p)}s[0]=l,s[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[th+"_"+oh]={pure:!0,appendData:r},t[th+"_"+ah]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[eh]={pure:!0,appendData:r},t[nh]={pure:!0,appendData:function(t){var e=this._data;Object(s["k"])(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[$u]={appendData:r},t[ih]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},kd=t}(),t}(),Gd=function(t,e,n,i){return t[i]},Hd=(Id={},Id[th+"_"+oh]=function(t,e,n,i){return t[i+e]},Id[th+"_"+ah]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Id[eh]=Gd,Id[nh]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=t[s];o[a]=l?l[i]:null}return o},Id[$u]=Gd,Id);function Wd(t,e){var n=Hd[Qd(t,e)];return n}var Ud=function(t,e,n){return t.length},Zd=(Sd={},Sd[th+"_"+oh]=function(t,e,n){return Math.max(0,t.length-e)},Sd[th+"_"+ah]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},Sd[eh]=Ud,Sd[nh]=function(t,e,n){var i=n[0].name;var r=t[i];return r?r.length:0},Sd[$u]=Ud,Sd);function Yd(t,e){var n=Zd[Qd(t,e)];return n}var Xd=function(t,e,n){return t[e]},qd=(Md={},Md[th]=Xd,Md[eh]=function(t,e,n){return t[n]},Md[nh]=Xd,Md[$u]=function(t,e,n){var i=cr(t);return i instanceof Array?i[e]:i},Md[ih]=Xd,Md);function Kd(t){var e=qd[t];return e}function Qd(t,e){return t===th?t+"_"+e:t}function Jd(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return Kd(o)(i,a,s)}var l=i;return o===$u&&(l=cr(i)),l}}}var $d=/\{@(.+?)\}/g,tp=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],c=s&&s.stroke,u=this.mainType,h="series"===u,d=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,i,r,o){e=e||"normal";var a=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),null!=i&&s["t"](l.value)&&(l.value=l.value[i]),!r){var c=a.getItemModel(t);r=c.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(s["w"](r))return l.status=e,l.dimensionIndex=i,r(l);if(s["C"](r)){var u=Mu(r,l);return u.replace($d,(function(e,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var l=Jd(a,t,r);if(o&&s["t"](o.interpolatedValue)){var c=a.getDimensionIndex(r);c>=0&&(l=o.interpolatedValue[c])}return null!=l?l+"":""}))}},t.prototype.getRawValue=function(t,e){return Jd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function ep(t){var e,n;return s["A"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function np(t){return new ip(t)}var ip=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),l=this._modDataCount||0,c=h(t&&t.modBy),u=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===c&&l===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=c,this._modDataCount=u;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||p<f)){var g=this._progress;if(Object(s["t"])(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,f,c,u);else this._doProgress(g,p,f,c,u)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){rp.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:rp.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(s["t"])(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),rp=function(){var t,e,n,i,r,o={reset:function(l,c,u,h){e=l,t=c,n=u,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}();function op(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(s["z"])(t)||null==t||"-"===t||(t=+Zi(t)),null==t||""===t?NaN:+t)}var ap=Object(s["f"])({number:function(t){return parseFloat(t)},time:function(t){return+Zi(t)},trim:function(t){return Object(s["C"])(t)?Object(s["T"])(t):t}});function sp(t){return ap.get(t)}var lp={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},cp=function(){function t(t,e){if(!Object(s["z"])(e)){var n="";0,Th(n)}this._opFn=lp[t],this._rvalFloat=Ji(e)}return t.prototype.evaluate=function(t){return Object(s["z"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Ji(t),this._rvalFloat)},t}(),up=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(s["z"])(t)?t:Ji(t),i=Object(s["z"])(e)?e:Ji(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Object(s["C"])(t),l=Object(s["C"])(e);a&&(n=l?t:0),l&&(i=a?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),hp=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ji(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Ji(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function dp(t,e){return"eq"===t||"ne"===t?new hp("eq"===t,e):Object(s["q"])(lp,t)?new cp(t,e):null}var pp=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return op(t,e)},t}();function fp(t,e){var n=new pp,i=t.data,r=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==oh&&Th(a);var l=[],c={},u=t.dimensionsDefine;if(u)Object(s["k"])(u,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};if(l.push(i),null!=n){var r="";Object(s["q"])(c,n)&&Th(r),c[n]=i}}));else for(var h=0;h<t.dimensionsDetectedCount;h++)l.push({index:h});var d=Wd(r,oh);e.__isBuiltIn&&(n.getRawDataItem=function(t){return d(i,o,l,t)},n.getRawData=Object(s["c"])(gp,null,t)),n.cloneRawData=Object(s["c"])(mp,null,t);var p=Yd(r,oh);n.count=Object(s["c"])(p,null,i,o,l);var f=Kd(r);n.retrieveValue=function(t,e){var n=d(i,o,l,t);return g(n,e)};var g=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=l[e];return n?f(t,e,n.name):void 0}};return n.getDimensionInfo=Object(s["c"])(vp,null,l,c),n.cloneAllDimensionInfo=Object(s["c"])(yp,null,l),n}function gp(t){var e=t.sourceFormat;if(!Cp(e)){var n="";0,Th(n)}return t.data}function mp(t){var e=t.sourceFormat,n=t.data;if(!Cp(e)){var i="";0,Th(i)}if(e===th){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}if(e===eh){for(r=[],o=0,a=n.length;o<a;o++)r.push(Object(s["m"])({},n[o]));return r}}function vp(t,e,n){if(null!=n)return Object(s["z"])(n)||!isNaN(n)&&!Object(s["q"])(e,n)?t[n]:Object(s["q"])(e,n)?e[n]:void 0}function yp(t){return Object(s["d"])(t)}var bp=Object(s["f"])();function xp(t){t=Object(s["d"])(t);var e=t.type,n="";e||Th(n);var i=e.split(":");2!==i.length&&Th(n);var r=!1;"echarts"===i[0]&&(e=i[1],r=!0),t.__isBuiltIn=r,bp.set(e,t)}function wp(t,e,n){var i=ar(t),r=i.length,o="";r||Th(o);for(var a=0,s=r;a<s;a++){var l=i[a];e=_p(l,e,n,1===r?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function _p(t,e,n,i){var r="";e.length||Th(r),Object(s["A"])(t)||Th(r);var o=t.type,a=bp.get(o);a||Th(r);var l=Object(s["H"])(e,(function(t){return fp(t,a)})),c=ar(a.transform({upstream:l[0],upstreamList:l,config:Object(s["d"])(t.config)}));return Object(s["H"])(c,(function(t,n){var i="";Object(s["A"])(t)||Th(i),t.data||Th(i);var r,o=Dd(t.data);Cp(o)||Th(i);var a=e[0];if(a&&0===n&&!t.dimensions){var l=a.startIndex;l&&(t.data=a.data.slice(0,l).concat(t.data)),r={seriesLayoutBy:oh,sourceHeader:l,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:oh,sourceHeader:0,dimensions:t.dimensions};return Pd(t.data,r,null)}))}function Cp(t){return t===th||t===eh}var Ap,Ip="undefined",Sp=typeof Uint32Array===Ip?Array:Uint32Array,Mp=typeof Uint16Array===Ip?Array:Uint16Array,kp=typeof Int32Array===Ip?Array:Int32Array,Ep=typeof Float64Array===Ip?Array:Float64Array,Tp={float:Ep,int:kp,ordinal:Array,number:Array,time:Ep};function Op(t){return t>65535?Sp:Mp}function Pp(){return[1/0,-1/0]}function jp(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Lp(t,e,n,i,r){var o=Tp[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),c=0;c<s;c++)l[c]=a[c];t[e]=l}}else t[e]=new o(i)}var Dp=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(s["f"])()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=Ap[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];zd(i);this._dimensions=Object(s["H"])(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new Tp[e||"float"](this._rawCount),this._rawExtent[r]=Pp(),r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=Pp());for(var s=r[t],l=o;l<a;l++){var c=n[l]=e.parseAndCollect(n[l]);isNaN(c)||(s[0]=Math.min(c,s[0]),s[1]=Math.max(c,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){var c=i[l];Lp(n,l,c.type,s,!0)}for(var u=[],h=a;h<s;h++)for(var d=h-a,p=0;p<r;p++){c=i[p];var f=Ap.arrayRows.call(this,t[d]||u,c.property,d,p);n[p][h]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,l=this._rawExtent,c=Object(s["H"])(o,(function(t){return t.property})),u=0;u<a;u++){var h=o[u];l[u]||(l[u]=Pp()),Lp(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,l);else for(var d=[],p=t;p<e;p++){d=i.getItem(p,d);for(var f=0;f<a;f++){var g=r[f],m=this._dimValueGetter(d,c[f],p,f);g[p]=m;var v=l[f];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var i=0,r=this._count-1;while(i<=r){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,r=i[t],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,c=0,u=this.count();c<u;c++){var h=this.getRawIndex(c),d=e-r[h],p=Math.abs(d);p<=n&&((p<a||p===a&&d>=0&&s<0)&&(a=p,s=d,l=0),d===s&&(o[l++]=c))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{n=Op(this._rawCount);t=new n(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=Op(n._rawCount),o=new r(i),a=[],s=t.length,l=0,c=t[0],u=n._chunks,h=0;h<i;h++){var d=void 0,p=n.getRawIndex(h);if(0===s)d=e(h);else if(1===s){var f=u[c][p];d=e(f,h)}else{for(var g=0;g<s;g++)a[g]=u[t[g]][p];a[g]=h,d=e.apply(null,a)}d&&(o[l++]=p)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=Object(s["F"])(t),r=i.length;if(!r)return this;var o=e.count(),a=Op(e._rawCount),l=new a(o),c=0,u=i[0],h=t[u][0],d=t[u][1],p=e._chunks,f=!1;if(!e._indices){var g=0;if(1===r){for(var m=p[i[0]],v=0;v<n;v++){var y=m[v];(y>=h&&y<=d||isNaN(y))&&(l[c++]=g),g++}f=!0}else if(2===r){m=p[i[0]];var b=p[i[1]],x=t[i[1]][0],w=t[i[1]][1];for(v=0;v<n;v++){y=m[v];var _=b[v];(y>=h&&y<=d||isNaN(y))&&(_>=x&&_<=w||isNaN(_))&&(l[c++]=g),g++}f=!0}}if(!f)if(1===r)for(v=0;v<o;v++){var C=e.getRawIndex(v);y=p[i[0]][C];(y>=h&&y<=d||isNaN(y))&&(l[c++]=C)}else for(v=0;v<o;v++){for(var A=!0,I=(C=e.getRawIndex(v),0);I<r;I++){var S=i[I];y=p[S][C];(y<t[S][0]||y>t[S][1])&&(A=!1)}A&&(l[c++]=e.getRawIndex(v))}return c<o&&(e._indices=l),e._count=c,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,c=0;c<e.length;c++)l[e[c]]=Pp();for(var u=0;u<a;u++){for(var h=t.getRawIndex(u),d=0;d<o;d++)s[d]=i[e[d]][h];s[o]=u;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(r[0]=p,p=r);for(c=0;c<p.length;c++){var f=e[c],g=p[c],m=l[f],v=i[f];v&&(v[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),c=0,u=Math.floor(1/e),h=this.getRawIndex(0),d=new(Op(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));d[c++]=h;for(var p=1;p<l-1;p+=u){for(var f=Math.min(p+u,l-1),g=Math.min(p+2*u,l),m=(g+f)/2,v=0,y=f;y<g;y++){var b=this.getRawIndex(y),x=s[b];isNaN(x)||(v+=x)}v/=g-f;var w=p,_=Math.min(p+u,l),C=p-1,A=s[h];n=-1,r=w;var I=-1,S=0;for(y=w;y<_;y++){b=this.getRawIndex(y),x=s[b];isNaN(x)?(S++,I<0&&(I=b)):(i=Math.abs((C-m)*(x-A)-(C-y)*(v-A)),i>n&&(n=i,r=b))}S>0&&S<_-w&&(d[c++]=Math.min(I,r),r=Math.max(I,r)),d[c++]=r,h=r}return d[c++]=this.getRawIndex(l-1),o._count=c,o._indices=d,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],c=this.count(),u=r._rawExtent[t]=Pp(),h=new(Op(this._rawCount))(Math.ceil(c/s)),d=0,p=0;p<c;p+=s){s>c-p&&(s=c-p,a.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=n(a),v=this.getRawIndex(Math.min(p+i(a,m)||0,c-1));l[v]=m,m<u[0]&&(u[0]=m),m>u[1]&&(u[1]=m),h[d++]=v}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Pp();if(!e)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<r;l++){var c=this.getRawIndex(l),u=e[c];u<a&&(a=u),u>s&&(s=u)}return i=[a,s],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i=new t,r=this._chunks,o=e&&Object(s["N"])(e,(function(t,e){return t[e]=!0,t}),{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?jp(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(s["d"])(this._extent),t._rawExtent=Object(s["d"])(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return op(t[i],this._dimensions[i])}Ap={arrayRows:t,objectRows:function(t,e,n,i){return op(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return op(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}(),Rp=Dp,Bp=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(Fp(n)){var o=n,a=void 0,l=void 0,c=void 0;if(r){var u=i[0];u.prepareSource(),c=u.getSource(),a=c.data,l=c.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),l=Object(s["E"])(a)?ih:$u,e=[];var h=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},p=Object(s["P"])(h.seriesLayoutBy,d.seriesLayoutBy)||null,f=Object(s["P"])(h.sourceHeader,d.sourceHeader),g=Object(s["P"])(h.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!f!==!!d.sourceHeader||g;t=m?[Pd(a,{seriesLayoutBy:p,sourceHeader:f,dimensions:g},l)]:[]}else{var v=n;if(r){var y=this._applyTransform(i);t=y.sourceList,e=y.upstreamSignList}else{var b=v.get("source",!0);t=[Pd(b,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==t.length&&zp(o)}var a=[],l=[];return Object(s["k"])(t,(function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||zp(n),a.push(e),l.push(t._getVersionSign())})),i?e=wp(i,a,{datasetIndex:n.componentIndex}):null!=r&&(e=[Ld(a[0])]),{sourceList:e,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=0,r=this._storeList,o=r[i];o||(o=r[i]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];Fp(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new Rp,a.initData(new Vd(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Fp(t)){var e=dh(t);return e?[e.getSourceManager()]:[]}return Object(s["H"])(ph(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(Fp(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Np(t){var e=t.option.transform;e&&Object(s["R"])(t.option.transform)}function Fp(t){return"series"===t.mainType}function zp(t){throw new Error(t)}var Vp="line-height:1";function Gp(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+W(i+"")+"px;color:"+W(n)+";font-weight:"+W(r+""),valueStyle:"font-size:"+W(a+"")+"px;color:"+W(o)+";font-weight:"+W(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Hp=[0,10,20,30],Wp=["","\n","\n\n","\n\n\n"];function Up(t,e){return e.type=t,e}function Zp(t){return"section"===t.type}function Yp(t){return Zp(t)?qp:Kp}function Xp(t){if(Zp(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return Object(s["k"])(t.blocks,(function(t){var n=Xp(t);n>=e&&(e=n+ +(i&&(!n||Zp(t)&&!t.noHeader)))})),e}return 0}function qp(t,e,n,i){var r=e.noHeader,o=Jp(Xp(e)),a=[],l=e.blocks||[];Object(s["b"])(!l||Object(s["t"])(l)),l=l||[];var c=t.orderMode;if(e.sortBlocks&&c){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(s["q"])(u,c)){var h=new up(u[c],null);l.sort((function(t,e){return h.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===c&&l.reverse()}Object(s["k"])(l,(function(n,r){var l=e.valueFormatter,c=Yp(n)(l?Object(s["m"])(Object(s["m"])({},t),{valueFormatter:l}):t,n,r>0?o.html:0,i);null!=c&&a.push(c)}));var d="richText"===t.renderMode?a.join(o.richText):$p(a.join(""),r?n:o.html);if(r)return d;var p=Au(e.header,"ordinal",t.useUTC),f=Gp(i,t.renderMode).nameStyle;return"richText"===t.renderMode?nf(t,p,f)+o.richText+d:$p('<div style="'+f+";"+Vp+';">'+W(p)+"</div>"+d,n)}function Kp(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,l=!e.markerType,c=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return t=Object(s["t"])(t)?t:[t],Object(s["H"])(t,(function(t,e){return Au(t,Object(s["t"])(f)?f[e]:f,u)}))};if(!o||!a){var d=l?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),p=o?"":Au(c,"ordinal",u),f=e.valueType,g=a?[]:h(e.value),m=!l||!o,v=!l&&o,y=Gp(i,r),b=y.nameStyle,x=y.valueStyle;return"richText"===r?(l?"":d)+(o?"":nf(t,p,b))+(a?"":rf(t,g,m,v,x)):$p((l?"":d)+(o?"":tf(p,!l,b))+(a?"":ef(g,m,v,x)),n)}}function Qp(t,e,n,i,r,o){if(t){var a=Yp(t),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function Jp(t){return{html:Hp[t],richText:Wp[t]}}function $p(t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+Vp+';">'+t+n+"</div>"}function tf(t,e,n){var i=e?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+W(t)+"</span>"}function ef(t,e,n,i){var r=n?"10px":"20px",o=e?"float:right;margin-left:"+r:"";return t=Object(s["t"])(t)?t:[t],'<span style="'+o+";"+i+'">'+Object(s["H"])(t,(function(t){return W(t)})).join("&nbsp;&nbsp;")+"</span>"}function nf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function rf(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(s["t"])(e)?e.join("  "):e,o)}function of(t,e){var n=t.getData().getItemVisual(e,"style"),i=n[t.visualDrawType];return Tu(i)}function af(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var sf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=tr()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Eu({color:e,type:t,renderMode:n,markerId:i});return Object(s["C"])(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(s["t"])(e)?Object(s["k"])(e,(function(t){return Object(s["m"])(n,t)})):Object(s["m"])(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function lf(t){var e,n,i,r,o=t.series,a=t.dataIndex,l=t.multipleSeries,c=o.getData(),u=c.mapDimensionsAll("defaultedTooltip"),h=u.length,d=o.getRawValue(a),p=Object(s["t"])(d),f=of(o,a);if(h>1||p&&!h){var g=cf(d,o,a,u,f);e=g.inlineValues,n=g.inlineValueTypes,i=g.blocks,r=g.inlineValues[0]}else if(h){var m=c.getDimensionInfo(u[0]);r=e=Jd(c,a,u[0]),n=m.type}else r=e=p?d[0]:d;var v=wr(o),y=v&&o.name||"",b=c.getName(a),x=l?y:b;return Up("section",{header:y,noHeader:l||!v,sortParam:r,blocks:[Up("nameValue",{markerType:"item",markerColor:f,name:x,noName:!Object(s["T"])(x),value:e,valueType:n})].concat(i||[])})}function cf(t,e,n,i,r){var o=e.getData(),a=Object(s["N"])(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),l=[],c=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Up("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(l.push(t),c.push(n.type)))}return i.length?Object(s["k"])(i,(function(t){h(Jd(o,n,t),t)})):Object(s["k"])(t,h),{inlineValues:l,inlineValueTypes:c,blocks:u}}var uf=kr();function hf(t,e){return t.getName(e)||t.getId(e)}var df="__universalTransitionEnabled",pf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return o(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=np({count:mf,reset:vf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=uf(this).sourceManager=new Bp(this);i.prepareSource();var r=this.getInitialData(t,n);bf(r,this),this.dataTask.context.data=r,uf(this).dataBeforeProcessed=r,ff(this),this._initSelectedMapFromData(r)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Vu(this),i=n?Hu(t):{},r=this.subType;Xu.hasClass(r)&&(r+="Series"),s["I"](t,e.getTheme().get(this.subType)),s["I"](t,this.getDefaultOption()),sr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Gu(t,i,n)},e.prototype.mergeOption=function(t,e){t=s["I"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=Vu(this);n&&Gu(this.option,t,n);var i=uf(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);bf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,uf(this).dataBeforeProcessed=r,ff(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!s["E"](t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&sr(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=wf(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return uf(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=wf(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}uf(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return s["f"](t)},e.prototype.getSourceManager=function(){return uf(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return uf(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return lf({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(a["a"].node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=wh.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=hf(r,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=s["F"](t),n=[],i=0;i<e.length;i++){var r=t[e[i]];r>=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[hf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[df])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){s["A"](r.selectedMap)||(r.selectedMap={});for(var l=r.selectedMap,c=0;c<a;c++){var u=e[c],h=hf(t,u);l[h]=!0,this._selectedDataIndicesMap[h]=t.getRawIndex(u)}}else if("single"===o||!0===o){var d=e[a-1];h=hf(t,d);r.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=t.getRawIndex(d),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Xu.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Xu);function ff(t){var e=t.name;wr(t)||(t.name=gf(t)||e)}function gf(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return s["k"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}function mf(t){return t.model.getRawData().count()}function vf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),yf}function yf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function bf(t,e){s["k"](s["e"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,s["h"](xf,e))}))}function xf(t,e){var n=wf(t);return n&&n.setOutputEnd((e||this).count()),e}function wf(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}s["K"](pf,tp),s["K"](pf,wh),Xr(pf,Xu);var _f=pf,Cf=function(){function t(){this.group=new _i,this.uid=Mc("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Zr(Cf),$r(Cf);var Af=Cf;function If(){var t=kr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Sf=ga.CMD,Mf=[[],[],[]],kf=Math.sqrt,Ef=Math.atan2;function Tf(t,e){if(e){var n,i,r,o,a,s,l=t.data,c=t.len(),u=Sf.M,h=Sf.C,d=Sf.L,p=Sf.R,f=Sf.A,g=Sf.Q;for(r=0,o=0;r<c;){switch(n=l[r++],o=r,i=0,n){case u:i=1;break;case d:i=1;break;case h:i=3;break;case g:i=2;break;case f:var m=e[4],v=e[5],y=kf(e[0]*e[0]+e[1]*e[1]),b=kf(e[2]*e[2]+e[3]*e[3]),x=Ef(-e[1]/b,e[0]/y);l[r]*=y,l[r++]+=m,l[r]*=b,l[r++]+=v,l[r++]*=y,l[r++]*=b,l[r++]+=x,l[r++]+=x,r+=2,o=r;break;case p:s[0]=l[r++],s[1]=l[r++],A(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],A(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var w=Mf[a];w[0]=l[r++],w[1]=l[r++],A(w,w,e),l[o++]=w[0],l[o++]=w[1]}}t.increaseVersion()}}var Of=Math.sqrt,Pf=Math.sin,jf=Math.cos,Lf=Math.PI;function Df(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Rf(t,e){return(t[0]*e[0]+t[1]*e[1])/(Df(t)*Df(e))}function Bf(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Rf(t,e))}function Nf(t,e,n,i,r,o,a,s,l,c,u){var h=l*(Lf/180),d=jf(h)*(t-n)/2+Pf(h)*(e-i)/2,p=-1*Pf(h)*(t-n)/2+jf(h)*(e-i)/2,f=d*d/(a*a)+p*p/(s*s);f>1&&(a*=Of(f),s*=Of(f));var g=(r===o?-1:1)*Of((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=g*a*p/s,v=g*-s*d/a,y=(t+n)/2+jf(h)*m-Pf(h)*v,b=(e+i)/2+Pf(h)*m+jf(h)*v,x=Bf([1,0],[(d-m)/a,(p-v)/s]),w=[(d-m)/a,(p-v)/s],_=[(-1*d-m)/a,(-1*p-v)/s],C=Bf(w,_);if(Rf(w,_)<=-1&&(C=Lf),Rf(w,_)>=1&&(C=0),C<0){var A=Math.round(C/Lf*1e6)/1e6;C=2*Lf+A%2*Lf}u.addData(c,y,b,a,s,x,C,h,o)}var Ff=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,zf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Vf(t){var e=new ga;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=ga.CMD,l=t.match(Ff);if(!l)return e;for(var c=0;c<l.length;c++){for(var u=l[c],h=u.charAt(0),d=void 0,p=u.match(zf)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);var m=0;while(m<f){var v=void 0,y=void 0,b=void 0,x=void 0,w=void 0,_=void 0,C=void 0,A=i,I=r,S=void 0,M=void 0;switch(h){case"l":i+=p[m++],r+=p[m++],d=s.L,e.addData(d,i,r);break;case"L":i=p[m++],r=p[m++],d=s.L,e.addData(d,i,r);break;case"m":i+=p[m++],r+=p[m++],d=s.M,e.addData(d,i,r),o=i,a=r,h="l";break;case"M":i=p[m++],r=p[m++],d=s.M,e.addData(d,i,r),o=i,a=r,h="L";break;case"h":i+=p[m++],d=s.L,e.addData(d,i,r);break;case"H":i=p[m++],d=s.L,e.addData(d,i,r);break;case"v":r+=p[m++],d=s.L,e.addData(d,i,r);break;case"V":r=p[m++],d=s.L,e.addData(d,i,r);break;case"C":d=s.C,e.addData(d,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),i=p[m-2],r=p[m-1];break;case"c":d=s.C,e.addData(d,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r,p[m++]+i,p[m++]+r),i+=p[m-2],r+=p[m-1];break;case"S":v=i,y=r,S=e.len(),M=e.data,n===s.C&&(v+=i-M[S-4],y+=r-M[S-3]),d=s.C,A=p[m++],I=p[m++],i=p[m++],r=p[m++],e.addData(d,v,y,A,I,i,r);break;case"s":v=i,y=r,S=e.len(),M=e.data,n===s.C&&(v+=i-M[S-4],y+=r-M[S-3]),d=s.C,A=i+p[m++],I=r+p[m++],i+=p[m++],r+=p[m++],e.addData(d,v,y,A,I,i,r);break;case"Q":A=p[m++],I=p[m++],i=p[m++],r=p[m++],d=s.Q,e.addData(d,A,I,i,r);break;case"q":A=p[m++]+i,I=p[m++]+r,i+=p[m++],r+=p[m++],d=s.Q,e.addData(d,A,I,i,r);break;case"T":v=i,y=r,S=e.len(),M=e.data,n===s.Q&&(v+=i-M[S-4],y+=r-M[S-3]),i=p[m++],r=p[m++],d=s.Q,e.addData(d,v,y,i,r);break;case"t":v=i,y=r,S=e.len(),M=e.data,n===s.Q&&(v+=i-M[S-4],y+=r-M[S-3]),i+=p[m++],r+=p[m++],d=s.Q,e.addData(d,v,y,i,r);break;case"A":b=p[m++],x=p[m++],w=p[m++],_=p[m++],C=p[m++],A=i,I=r,i=p[m++],r=p[m++],d=s.A,Nf(A,I,i,r,_,C,b,x,w,d,e);break;case"a":b=p[m++],x=p[m++],w=p[m++],_=p[m++],C=p[m++],A=i,I=r,i+=p[m++],r+=p[m++],d=s.A,Nf(A,I,i,r,_,C,b,x,w,d,e);break}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),i=o,r=a),n=d}return e.toStatic(),e}var Gf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.applyTransform=function(t){},e}(Va);function Hf(t){return null!=t.setData}function Wf(t,e){var n=Vf(t),i=Object(s["m"])({},e);return i.buildPath=function(t){if(Hf(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){Tf(n,t),this.dirtyShape()},i}function Uf(t,e){return new Gf(Wf(t,e))}function Zf(t,e){var n=Wf(t,e),i=function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return o(e,t),e}(Gf);return i}function Yf(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}var a=new Va(e);return a.createPathProxy(),a.buildPath=function(t){if(Hf(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function Xf(t,e){e=e||{};var n=new Va;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Tf(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var qf=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Kf=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new qf},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(Va);Kf.prototype.type="circle";var Qf=Kf,Jf=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),$f=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new Jf},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(Va);$f.prototype.type="ellipse";var tg=$f,eg=Math.PI,ng=2*eg,ig=Math.sin,rg=Math.cos,og=Math.acos,ag=Math.atan2,sg=Math.abs,lg=Math.sqrt,cg=Math.max,ug=Math.min,hg=1e-4;function dg(t,e,n,i,r,o,a,s){var l=n-t,c=i-e,u=a-r,h=s-o,d=h*l-u*c;if(!(d*d<hg))return d=(u*(e-o)-h*(t-r))/d,[t+d*l,e+d*c]}function pg(t,e,n,i,r,o,a){var s=t-n,l=e-i,c=(a?o:-o)/lg(s*s+l*l),u=c*l,h=-c*s,d=t+u,p=e+h,f=n+u,g=i+h,m=(d+f)/2,v=(p+g)/2,y=f-d,b=g-p,x=y*y+b*b,w=r-o,_=d*g-f*p,C=(b<0?-1:1)*lg(cg(0,w*w*x-_*_)),A=(_*b-y*C)/x,I=(-_*y-b*C)/x,S=(_*b+y*C)/x,M=(-_*y+b*C)/x,k=A-m,E=I-v,T=S-m,O=M-v;return k*k+E*E>T*T+O*O&&(A=S,I=M),{cx:A,cy:I,x0:-u,y0:-h,x1:A*(r/w-1),y1:I*(r/w-1)}}function fg(t){var e;if(Object(s["t"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function gg(t,e){var n,i=cg(e.r,0),r=cg(e.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=e.startAngle,c=e.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=e.cx,h=e.cy,d=!!e.clockwise,p=sg(c-l),f=p>ng&&p%ng;if(f>hg&&(p=f),i>hg)if(p>ng-hg)t.moveTo(u+i*rg(l),h+i*ig(l)),t.arc(u,h,i,l,c,!d),r>hg&&(t.moveTo(u+r*rg(c),h+r*ig(c)),t.arc(u,h,r,c,l,d));else{var g=void 0,m=void 0,v=void 0,y=void 0,b=void 0,x=void 0,w=void 0,_=void 0,C=void 0,A=void 0,I=void 0,S=void 0,M=void 0,k=void 0,E=void 0,T=void 0,O=i*rg(l),P=i*ig(l),j=r*rg(c),L=r*ig(c),D=p>hg;if(D){var R=e.cornerRadius;R&&(n=fg(R),g=n[0],m=n[1],v=n[2],y=n[3]);var B=sg(i-r)/2;if(b=ug(B,v),x=ug(B,y),w=ug(B,g),_=ug(B,m),I=C=cg(b,x),S=A=cg(w,_),(C>hg||A>hg)&&(M=i*rg(c),k=i*ig(c),E=r*rg(l),T=r*ig(l),p<eg)){var N=dg(O,P,E,T,M,k,j,L);if(N){var F=O-N[0],z=P-N[1],V=M-N[0],G=k-N[1],H=1/ig(og((F*V+z*G)/(lg(F*F+z*z)*lg(V*V+G*G)))/2),W=lg(N[0]*N[0]+N[1]*N[1]);I=ug(C,(i-W)/(H+1)),S=ug(A,(r-W)/(H-1))}}}if(D)if(I>hg){var U=ug(v,I),Z=ug(y,I),Y=pg(E,T,O,P,i,U,d),X=pg(M,k,j,L,i,Z,d);t.moveTo(u+Y.cx+Y.x0,h+Y.cy+Y.y0),I<C&&U===Z?t.arc(u+Y.cx,h+Y.cy,I,ag(Y.y0,Y.x0),ag(X.y0,X.x0),!d):(U>0&&t.arc(u+Y.cx,h+Y.cy,U,ag(Y.y0,Y.x0),ag(Y.y1,Y.x1),!d),t.arc(u,h,i,ag(Y.cy+Y.y1,Y.cx+Y.x1),ag(X.cy+X.y1,X.cx+X.x1),!d),Z>0&&t.arc(u+X.cx,h+X.cy,Z,ag(X.y1,X.x1),ag(X.y0,X.x0),!d))}else t.moveTo(u+O,h+P),t.arc(u,h,i,l,c,!d);else t.moveTo(u+O,h+P);if(r>hg&&D)if(S>hg){U=ug(g,S),Z=ug(m,S),Y=pg(j,L,M,k,r,-Z,d),X=pg(O,P,E,T,r,-U,d);t.lineTo(u+Y.cx+Y.x0,h+Y.cy+Y.y0),S<A&&U===Z?t.arc(u+Y.cx,h+Y.cy,S,ag(Y.y0,Y.x0),ag(X.y0,X.x0),!d):(Z>0&&t.arc(u+Y.cx,h+Y.cy,Z,ag(Y.y0,Y.x0),ag(Y.y1,Y.x1),!d),t.arc(u,h,r,ag(Y.cy+Y.y1,Y.cx+Y.x1),ag(X.cy+X.y1,X.cx+X.x1),d),U>0&&t.arc(u+X.cx,h+X.cy,U,ag(X.y1,X.x1),ag(X.y0,X.x0),!d))}else t.lineTo(u+j,h+L),t.arc(u,h,r,c,l,d);else t.lineTo(u+j,h+L)}else t.moveTo(u,h);t.closePath()}}}var mg=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),vg=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new mg},e.prototype.buildPath=function(t,e){gg(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Va);vg.prototype.type="sector";var yg=vg,bg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),xg=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new bg},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(Va);xg.prototype.type="ring";var wg=xg;function _g(t,e,n,i){var r,o,a,s,l=[],c=[],h=[],p=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var g=0,m=t.length;g<m;g++)I(a,a,t[g]),S(s,s,t[g]);I(a,a,i[0]),S(s,s,i[1])}for(g=0,m=t.length;g<m;g++){var y=t[g];if(n)r=t[g?g-1:m-1],o=t[(g+1)%m];else{if(0===g||g===m-1){l.push(u(t[g]));continue}r=t[g-1],o=t[g+1]}f(c,o,r),v(c,c,e);var x=b(y,r),w=b(y,o),_=x+w;0!==_&&(x/=_,w/=_),v(h,c,-x),v(p,c,w);var C=d([],y,h),A=d([],y,p);i&&(S(C,C,a),I(C,C,s),S(A,A,a),I(A,A,s)),l.push(C),l.push(A)}return n&&l.push(l.shift()),l}function Cg(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=_g(r,i,n,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],c=o[2*s+1],u=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{t.moveTo(r[0][0],r[0][1]);s=1;for(var h=r.length;s<h;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}var Ag=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Ig=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new Ag},e.prototype.buildPath=function(t,e){Cg(t,e,!0)},e}(Va);Ig.prototype.type="polygon";var Sg=Ig,Mg=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),kg=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Mg},e.prototype.buildPath=function(t,e){Cg(t,e,!1)},e}(Va);kg.prototype.type="polyline";var Eg=kg,Tg={},Og=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Pg=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Og},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=Ja(Tg,e,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=e.x1,i=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),t.lineTo(r,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(Va);Pg.prototype.type="line";var jg=Pg,Lg=[],Dg=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Rg(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?xe:be)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?xe:be)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Me:Se)(t.x1,t.cpx1,t.x2,e),(n?Me:Se)(t.y1,t.cpy1,t.y2,e)]}var Bg=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Dg},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,c=e.cpy2,u=e.percent;0!==u&&(t.moveTo(n,i),null==l||null==c?(u<1&&(Te(n,a,r,u,Lg),a=Lg[1],r=Lg[2],Te(i,s,o,u,Lg),s=Lg[1],o=Lg[2]),t.quadraticCurveTo(a,s,r,o)):(u<1&&(Ce(n,a,l,r,u,Lg),a=Lg[1],l=Lg[2],r=Lg[3],Ce(i,s,c,o,u,Lg),s=Lg[1],c=Lg[2],o=Lg[3]),t.bezierCurveTo(a,s,l,c,r,o)))},e.prototype.pointAt=function(t){return Rg(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=Rg(this.shape,t,!0);return y(e,e)},e}(Va);Bg.prototype.type="bezier-curve";var Ng=Bg,Fg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),zg=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Fg},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),c=Math.sin(o);t.moveTo(l*r+n,c*r+i),t.arc(n,i,r,o,a,!s)},e}(Va);zg.prototype.type="arc";var Vg=zg,Gg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return o(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Va.prototype.getBoundingRect.call(this)},e}(Va),Hg=Gg,Wg=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Ug=Wg,Zg=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return o(e,t),e}(Ug),Yg=Zg,Xg=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return o(e,t),e}(Ug),qg=Xg,Kg=[0,0],Qg=[0,0],Jg=new vt,$g=new vt,tm=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new vt;for(n=0;n<2;n++)this._axes[n]=new vt;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),e)for(var l=0;l<4;l++)n[l].transform(e);vt.sub(i[0],n[1],n[0]),vt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return Jg.set(1/0,1/0),$g.set(0,0),!this._intersectCheckOneSide(this,t,Jg,$g,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(t,this,Jg,$g,i,-1)&&(n=!1,i)?n:(i||vt.copy(e,n?Jg:$g),n)},t.prototype._intersectCheckOneSide=function(t,e,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Kg),this._getProjMinMaxOnAxis(s,e._corners,Qg),Kg[1]<Qg[0]||Kg[0]>Qg[1]){if(a=!1,r)return a;var c=Math.abs(Qg[0]-Kg[1]),u=Math.abs(Kg[0]-Qg[1]);Math.min(c,u)>i.len()&&(c<u?vt.scale(i,l,-c*o):vt.scale(i,l,u*o))}else if(n){c=Math.abs(Qg[0]-Kg[1]),u=Math.abs(Kg[0]-Qg[1]);Math.min(c,u)<n.len()&&(c<u?vt.scale(n,l,c*o):vt.scale(n,l,-u*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var c=e[l].dot(i)+r[t];a=Math.min(c,a),s=Math.max(c,s)}n[0]=a,n[1]=s},t}(),em=tm,nm=[],im=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return o(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Mt(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(nm)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(t,e))return!0}return!1},e}(Lo),rm=im,om=Math.max,am=Math.min,sm={};function lm(t){return Va.extend(t)}var cm=Zf;function um(t,e){return cm(t,e)}function hm(t,e){sm[t]=e}function dm(t){if(sm.hasOwnProperty(t))return sm[t]}function pm(t,e,n,i){var r=Uf(t,e);return n&&("center"===i&&(n=gm(n,r.getBoundingRect())),vm(r,n)),r}function fm(t,e,n){var i=new qa({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(gm(e,r))}}});return i}function gm(t,e){var n,i=e.width/e.height,r=t.height*i;r<=t.width?n=t.height:(r=t.width,n=r/i);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var mm=Yf;function vm(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}}function ym(t,e){return Ja(t,t,{lineWidth:e}),t}function bm(t){return $a(t.shape,t.shape,t.style),t}var xm=ts;function wm(t,e){var n=lt([]);while(t&&t!==e)ut(n,t.getLocalTransform(),n),t=t.parent;return n}function _m(t,e,n){return e&&!Object(s["u"])(e)&&(e=qn.getLocalTransform(e)),n&&(e=ft([],e)),A([],t,e)}function Cm(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=_m(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Am(t){return!t.isGroup}function Im(t){return null!=t.shape}function Sm(t,e,n){if(t&&e){var i=r(t);e.traverse((function(t){if(Am(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Gl(t,r,n,Cs(t).dataIndex)}}}))}function r(t){var e={};return t.traverse((function(t){Am(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Im(t)&&(e.shape=Object(s["m"])({},t.shape)),e}}function Mm(t,e){return Object(s["H"])(t,(function(t){var n=t[0];n=om(n,e.x),n=am(n,e.x+e.width);var i=t[1];return i=om(i,e.y),i=am(i,e.y+e.height),[n,i]}))}function km(t,e){var n=om(t.x,e.x),i=am(t.x+t.width,e.x+e.width),r=om(t.y,e.y),o=am(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Em(t,e,n){var i=Object(s["m"])({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),Object(s["i"])(r,n),new qa(i)):pm(t.replace("path://",""),i,n,"center")}function Tm(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Om(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Om(t,e,n,i,r,o,a,s){var l=n-t,c=i-e,u=a-r,h=s-o,d=Pm(u,h,l,c);if(jm(d))return!1;var p=t-r,f=e-o,g=Pm(p,f,l,c)/d;if(g<0||g>1)return!1;var m=Pm(p,f,u,h)/d;return!(m<0||m>1)}function Pm(t,e,n,i){return t*i-n*e}function jm(t){return t<=1e-6&&t>=-1e-6}function Lm(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=Object(s["C"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,l={componentType:o,name:i,$vars:["name"]};l[o+"Index"]=a;var c=t.formatterParamsExtra;c&&Object(s["k"])(Object(s["F"])(c),(function(t){Object(s["q"])(l,t)||(l[t]=c[t],l.$vars.push(t))}));var u=Cs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:Object(s["i"])({content:i,formatterParams:l},r)}}function Dm(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Rm(t,e){if(t)if(Object(s["t"])(t))for(var n=0;n<t.length;n++)Dm(t[n],e);else Dm(t,e)}hm("circle",Qf),hm("ellipse",tg),hm("sector",yg),hm("ring",wg),hm("polygon",Sg),hm("polyline",Eg),hm("rect",rs),hm("line",jg),hm("bezierCurve",Ng),hm("arc",Vg);var Bm=kr(),Nm=If(),Fm=function(){function t(){this.group=new _i,this.uid=Mc("viewChart"),this.renderTask=np({plan:Gm,reset:Hm}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Vm(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&Vm(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){Rm(this.group,t)},t.markUpdateMethod=function(t,e){Bm(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function zm(t,e,n){t&&jl(t)&&("emphasis"===e?ll:cl)(t,n)}function Vm(t,e,n){var i=Mr(t,e),r=e&&null!=e.highlightKey?Dl(e.highlightKey):null;null!=i?Object(s["k"])(ar(i),(function(e){zm(t.getItemGraphicEl(e),n,r)})):t.eachItemGraphicEl((function(t){zm(t,n,r)}))}function Gm(t){return Nm(t.model)}function Hm(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Bm(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),Wm[l]}Zr(Fm,["dispose"]),$r(Fm);var Wm={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Um=Fm,Zm="\0__throttleOriginMethod",Ym="\0__throttleRate",Xm="\0__throttleType";function qm(t,e,n){var i,r,o,a,s,l=0,c=0,u=null;function h(){c=(new Date).getTime(),u=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,r=i-(f?l:c)-p,clearTimeout(u),f?u=setTimeout(h,p):r>=0?h():u=setTimeout(h,-r),l=i};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(t){s=t},d}function Km(t,e,n,i){var r=t[e];if(r){var o=r[Zm]||r,a=r[Xm],s=r[Ym];if(s!==n||a!==i){if(null==n||!i)return t[e]=o;r=t[e]=qm(o,n,"debounce"===i),r[Zm]=o,r[Xm]=i,r[Ym]=n}return r}}function Qm(t,e){var n=t[e];n&&n[Zm]&&(n.clear&&n.clear(),t[e]=n[Zm])}var Jm=kr(),$m={itemStyle:to(wc,!0),lineStyle:to(yc,!0)},tv={lineStyle:"stroke",itemStyle:"fill"};function ev(t,e){var n=t.visualStyleMapper||$m[e];return n||(console.warn("Unknown style type '"+e+"'."),$m.itemStyle)}function nv(t,e){var n=t.visualDrawType||tv[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var iv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=ev(t,i),a=o(r),l=r.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=nv(t,i),u=a[c],h=Object(s["w"])(u)?u:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[c]||h||d){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[c]||(a[c]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(s["w"])(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||Object(s["w"])(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",c),!e.isSeriesFiltered(t)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Object(s["m"])({},a);r[c]=h(i),e.setItemVisual(n,"style",r)}}}},rv=new Ic,ov={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=ev(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){rv.option=n[i];var a=r(rv),l=t.ensureUniqueItemVisual(e,"style");Object(s["m"])(l,a),rv.option.decal&&(t.setItemVisual(e,"decal",rv.option.decal),rv.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},av={performRawSeries:!0,overallReset:function(t){var e=Object(s["f"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),Jm(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=Jm(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=nv(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t],l=r.getItemVisual(a,"colorFromPalette");if(l){var c=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();c[s]=e.getColorFromPalette(u,o,h)}}))}}))}},sv=Math.PI;function lv(t,e){e=e||{},s["i"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new _i,i=new rs({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new _s({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new rs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(r=new Vg({shape:{startAngle:-sv/2,endAngle:-sv/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*sv/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*sv/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),c=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var cv=function(){function t(t,e,n,i){this._stageTaskMap=Object(s["f"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),r=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(s["f"])();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(s["k"])(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{}),o="";Object(s["b"])(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(s["k"])(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each((function(t){a(i,t)&&(t.dirty(),h=!0)})),h&&u.dirty(),o.updatePayload(u,n);var p=o.getPerformArgs(u,i.block);d.each((function(t){t.perform(p)})),u.perform(p)&&(r=!0)}else c&&c.each((function(s,l){a(i,s)&&s.dirty();var c=o.getPerformArgs(s,i.block);c.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(c)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(s["f"])(),l=t.seriesType,c=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||np({plan:fv,reset:gv,count:yv}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):l?n.eachRawSeriesByType(l,u):c&&c(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||np({reset:uv});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,l=o.agentStubMap=Object(s["f"])(),c=t.seriesType,u=t.getTargetSeries,h=!0,d=!1,p="";function f(t){var e=t.uid,n=l.set(e,a&&a.get(e)||(d=!0,np({reset:hv,onDirty:pv})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}Object(s["b"])(!t.createOnAllSeries,p),c?n.eachRawSeriesByType(c,f):u?u(n,i).each(f):(h=!1,Object(s["k"])(n.getSeries(),f)),d&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return Object(s["w"])(t)&&(t={overallReset:t,seriesType:bv(t)}),t.uid=Mc("stageHandler"),e&&(t.visualType=e),t},t}();function uv(t){t.overallReset(t.ecModel,t.api,t.payload)}function hv(t){return t.overallProgress&&dv}function dv(){this.agent.dirty(),this.getDownstream().dirty()}function pv(){this.agent&&this.agent.dirty()}function fv(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function gv(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ar(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(s["H"])(e,(function(t,e){return vv(e)})):mv}var mv=vv(0);function vv(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function yv(t){return t.data.count()}function bv(t){xv=null;try{t(wv,_v)}catch(e){}return xv}var xv,wv={},_v={};function Cv(t,e){for(var n in e.prototype)t[n]=s["L"]}Cv(wv,Fh),Cv(_v,Gh),wv.eachSeriesByType=wv.eachRawSeriesByType=function(t){xv=t},wv.eachComponent=function(t){"series"===t.mainType&&t.subType&&(xv=t.subType)};var Av=cv,Iv=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Sv={color:Iv,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Iv]},Mv="#B9B8CE",kv="#100C2A",Ev=function(){return{axisLine:{lineStyle:{color:Mv}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Tv=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ov={darkMode:!0,color:Tv,backgroundColor:kv,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Mv}},textStyle:{color:Mv},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Mv}},dataZoom:{borderColor:"#71708A",textStyle:{color:Mv},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Mv}},timeline:{lineStyle:{color:Mv},label:{color:Mv},controlStyle:{color:Mv,borderColor:Mv}},calendar:{itemStyle:{color:kv},dayLabel:{color:Mv},monthLabel:{color:Mv},yearLabel:{color:Mv}},timeAxis:Ev(),logAxis:Ev(),valueAxis:Ev(),categoryAxis:Ev(),line:{symbol:"circle"},graph:{color:Tv},gauge:{title:{color:Mv},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Mv},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Ov.categoryAxis.splitLine.show=!1;var Pv=Ov,jv=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(s["C"](t)){var r=Hr(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};s["k"](t,(function(t,r){for(var s=!1,l=0;l<o.length;l++){var c=o[l],u=r.lastIndexOf(c);if(u>0&&u===r.length-c.length){var h=r.slice(0,u);"data"!==h&&(e.mainType=h,e[c.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(l,r,"name")&&c(l,r,"dataIndex")&&c(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function c(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Lv=["symbol","symbolSize","symbolRotate","symbolOffset"],Dv=Lv.concat(["symbolKeepAspect"]),Rv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<Lv.length;a++){var l=Lv[a],c=t.get(l);Object(s["w"])(c)?(o=!0,r[l]=c):i[l]=c}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(Object(s["m"])({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var u=Object(s["F"])(r);return{dataEach:o?h:null}}}function h(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,r[s](i,o))}}}},Bv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?i:null}}function i(t,e){for(var n=t.getItemModel(e),i=0;i<Dv.length;i++){var r=Dv[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}}};function Nv(t,e,n){switch(n){case"color":var i=t.getItemVisual(e,"style");return i[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function Fv(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function zv(t,e,n,i){switch(n){case"color":var r=t.ensureUniqueItemVisual(e,"style");r[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:0}}function Vv(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}Object(s["k"])([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,r){e=Object(s["m"])({},e),r.dispatchAction(Object(s["m"])(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function Gv(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,i=t.option.selectedMap,a=r.selected,l=0;l<a.length;l++)if(a[l].seriesIndex===e){var c=t.getData(),u=Mr(c,r.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Object(s["t"])(u)?c.getName(u[0]):c.getName(u),selected:Object(s["C"])(i)?i:Object(s["m"])({},i)})}}))}function Hv(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(Gv("map","selectchanged",e,i,t),Gv("pie","selectchanged",e,i,t)):"select"===t.fromAction?(Gv("map","selected",e,i,t),Gv("pie","selected",e,i,t)):"unselect"===t.fromAction&&(Gv("map","unselected",e,i,t),Gv("pie","unselected",e,i,t))}))}function Wv(t,e,n){var i;while(t){if(e(t)&&(i=t,n))break;t=t.__hostTarget||t.parent}return i}var Uv=Math.round(9*Math.random()),Zv="function"===typeof Object.defineProperty,Yv=function(){function t(){this._id="__ec_inner_"+Uv++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return Zv?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),Xv=Yv,qv=Va.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),Kv=Va.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),Qv=Va.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,c=Math.asin(s/a),u=Math.cos(c)*a,h=Math.sin(c),d=Math.cos(c),p=.6*a,f=.7*a;t.moveTo(n-u,l+s),t.arc(n,l,a,Math.PI-c,2*Math.PI+c),t.bezierCurveTo(n+u-h*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-u+h*p,l+s+d*p,n-u,l+s),t.closePath()}}),Jv=Va.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),$v={line:jg,rect:rs,roundRect:rs,square:rs,circle:Qf,diamond:Kv,pin:Qv,arrow:Jv,triangle:qv},ty={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},ey={};Object(s["k"])($v,(function(t,e){ey[e]=new t}));var ny=Va.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=ai(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=ey[i];r||(i="rect",r=ey[i]),ty[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function iy(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function ry(t,e,n,i,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?fm(t.slice(8),new Mt(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?pm(t.slice(7),{},new Mt(e,n,i,r),a?"center":"cover"):new ny({shape:{symbolType:t,x:e,y:n,width:i,height:r}}),s.__isEmptyBrush=l,s.setColor=iy,o&&s.setColor(o),s}function oy(t){return Object(s["t"])(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function ay(t,e){if(null!=t)return Object(s["t"])(t)||(t=[t,t]),[Li(t[0],e[0])||0,Li(Object(s["P"])(t[1],t[0]),e[1])||0]}function sy(t){return isFinite(t)}function ly(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=sy(i)?i:0,r=sy(r)?r:1,o=sy(o)?o:0,a=sy(a)?a:0;var s=t.createLinearGradient(i,o,r,a);return s}function cy(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=sy(a)?a:.5,s=sy(s)?s:.5,l=l>=0&&sy(l)?l:.5;var c=t.createRadialGradient(a,s,0,a,s,l);return c}function uy(t,e,n){for(var i="radial"===e.type?cy(t,e,n):ly(t,e,n),r=e.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function hy(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function dy(t){return parseInt(t,10)}function py(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(t);return(t[r]||dy(s[i])||dy(t.style[i]))-(dy(s[o])||0)-(dy(s[a])||0)|0}function fy(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(s["z"])(t)?[t]:Object(s["t"])(t)?t:null:null}function gy(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&fy(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(n){var r=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;r&&1!==r&&(n=Object(s["H"])(n,(function(t){return t/r})),i/=r)}return[n,i]}var my=new ga(!0);function vy(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function yy(t){return"string"===typeof t&&"none"!==t}function by(t){var e=t.fill;return null!=e&&"none"!==e}function xy(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function wy(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function _y(t,e,n){var i=ao(e.image,e.__image,n);if(lo(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*s["a"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}function Cy(t,e,n,i){var r,o=vy(n),a=by(n),s=n.strokePercent,l=s<1,c=!e.path;e.silent&&!l||!c||e.createPathProxy();var u=e.path||my,h=e.__dirty;if(!i){var d=n.fill,p=n.stroke,f=a&&!!d.colorStops,g=o&&!!p.colorStops,m=a&&!!d.image,v=o&&!!p.image,y=void 0,b=void 0,x=void 0,w=void 0,_=void 0;(f||g)&&(_=e.getBoundingRect()),f&&(y=h?uy(t,d,_):e.__canvasFillGradient,e.__canvasFillGradient=y),g&&(b=h?uy(t,p,_):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),m&&(x=h||!e.__canvasFillPattern?_y(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=x),v&&(w=h||!e.__canvasStrokePattern?_y(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=x),f?t.fillStyle=y:m&&(x?t.fillStyle=x:a=!1),g?t.strokeStyle=b:v&&(w?t.strokeStyle=w:o=!1)}var C,A,I=e.getGlobalScale();u.setScale(I[0],I[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(r=gy(e),C=r[0],A=r[1]);var S=!0;(c||h&Jt)&&(u.setDPR(t.dpr),l?u.setContext(null):(u.setContext(t),S=!1),u.reset(),e.buildPath(u,e.shape,i),u.toStatic(),e.pathUpdated()),S&&u.rebuildPath(t,l?s:1),C&&(t.setLineDash(C),t.lineDashOffset=A),i||(n.strokeFirst?(o&&wy(t,n),a&&xy(t,n)):(a&&xy(t,n),o&&wy(t,n))),C&&t.setLineDash([])}function Ay(t,e,n){var i=e.__image=ao(n.image,e.__image,e,e.onload);if(i&&lo(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;t.drawImage(i,c,u,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){c=n.sx,u=n.sy;var h=a-c,d=s-u;t.drawImage(i,c,u,h,d,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}function Iy(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||Qn["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(i=gy(e),o=i[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(vy(n)&&t.strokeText(r,n.x,n.y),by(n)&&t.fillText(r,n.x,n.y)):(by(n)&&t.fillText(r,n.x,n.y),vy(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}var Sy=["shadowBlur","shadowOffsetX","shadowOffsetY"],My=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ky(t,e,n,i,r){var o=!1;if(!i&&(n=n||{},e===n))return!1;if(i||e.opacity!==n.opacity){Fy(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?So.opacity:a}(i||e.blend!==n.blend)&&(o||(Fy(t,r),o=!0),t.globalCompositeOperation=e.blend||So.blend);for(var s=0;s<Sy.length;s++){var l=Sy[s];(i||e[l]!==n[l])&&(o||(Fy(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==n.shadowColor)&&(o||(Fy(t,r),o=!0),t.shadowColor=e.shadowColor||So.shadowColor),o}function Ey(t,e,n,i,r){var o=zy(e,r.inHover),a=i?null:n&&zy(n,r.inHover)||{};if(o===a)return!1;var s=ky(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Fy(t,r),s=!0),yy(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Fy(t,r),s=!0),yy(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Fy(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==c&&(s||(Fy(t,r),s=!0),t.lineWidth=c)}for(var u=0;u<My.length;u++){var h=My[u],d=h[0];(i||o[d]!==a[d])&&(s||(Fy(t,r),s=!0),t[d]=o[d]||h[1])}return s}function Ty(t,e,n,i,r){return ky(t,zy(e,r.inHover),n&&zy(n,r.inHover),i,r)}function Oy(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function Py(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),Oy(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}function jy(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var Ly=1,Dy=2,Ry=3,By=4;function Ny(t){var e=by(t),n=vy(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Fy(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function zy(t,e){return e&&t.__hoverStyle||t.style}function Vy(t,e){Gy(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Gy(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Kt,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!hy(o,a)||(a&&a.length&&(Fy(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Fy(t,n),t.save(),Py(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u=e instanceof Va&&e.autoBatch&&Ny(e.style);s||jy(r,c.transform)?(Fy(t,n),Oy(t,e)):u||Fy(t,n);var h=zy(e,n.inHover);e instanceof Va?(n.lastDrawType!==Ly&&(l=!0,n.lastDrawType=Ly),Ey(t,e,c,l,n),u&&(n.batchFill||n.batchStroke)||t.beginPath(),Cy(t,e,h,u),u&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof Wa?(n.lastDrawType!==Ry&&(l=!0,n.lastDrawType=Ry),Ey(t,e,c,l,n),Iy(t,e,h)):e instanceof qa?(n.lastDrawType!==Dy&&(l=!0,n.lastDrawType=Dy),Ty(t,e,c,l,n),Ay(t,e,h)):e.getTemporalDisplayables&&(n.lastDrawType!==By&&(l=!0,n.lastDrawType=By),Hy(t,e,n)),u&&i&&Fy(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function Hy(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Gy(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var c=0,u=r.length;c<u;c++){l=r[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Gy(t,l,s,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Wy=new Xv,Uy=new Kn["a"](100),Zy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Yy(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&Wy["delete"](t);var o=Wy.get(t);if(o)return o;var a=Object(s["i"])(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var l={repeat:"repeat"};return c(l),l.rotation=a.rotation,l.scaleX=l.scaleY=r?1:1/n,Wy.set(t,l),t.dirty=!1,l;function c(t){for(var e,o=[n],l=!0,c=0;c<Zy.length;++c){var u=a[Zy[c]];if(null!=u&&!Object(s["t"])(u)&&!Object(s["C"])(u)&&!Object(s["z"])(u)&&"boolean"!==typeof u){l=!1;break}o.push(u)}if(l){e=o.join(",")+(r?"-svg":"");var h=Uy.get(e);h&&(r?t.svgElement=h:t.image=h)}var d,p=qy(a.dashArrayX),f=Ky(a.dashArrayY),g=Xy(a.symbol),m=Qy(p),v=Jy(f),y=!r&&Qn["d"].createCanvas(),b=r&&{tag:"g",attrs:{},key:"dcl",children:[]},x=w();function w(){for(var t=1,e=0,n=m.length;e<n;++e)t=nr(t,m[e]);var i=1;for(e=0,n=g.length;e<n;++e)i=nr(i,g[e].length);t*=i;var r=v*m.length*g.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}function _(){d&&(d.clearRect(0,0,y.width,y.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,y.width,y.height)));for(var t=0,e=0;e<f.length;++e)t+=f[e];if(!(t<=0)){var o=-v,s=0,l=0,c=0;while(o<x.height){if(s%2===0){var u=l/2%g.length,h=0,m=0,w=0;while(h<2*x.width){var _=0;for(e=0;e<p[c].length;++e)_+=p[c][e];if(_<=0)break;if(m%2===0){var C=.5*(1-a.symbolSize),A=h+p[c][m]*C,I=o+f[s]*C,S=p[c][m]*a.symbolSize,M=f[s]*a.symbolSize,k=w/2%g[u].length;E(A,I,S,M,g[u][k])}h+=p[c][m],++w,++m,m===p[c].length&&(m=0)}++c,c===p.length&&(c=0)}o+=f[s],++l,++s,s===f.length&&(s=0)}}function E(t,e,o,s,l){var c=r?1:n,u=ry(l,t*c,e*c,o*c,s*c,a.color,a.symbolKeepAspect);if(r){var h=i.painter.renderOneToVNode(u);h&&b.children.push(h)}else Vy(d,u)}}y&&(y.width=x.width*n,y.height=x.height*n,d=y.getContext("2d")),_(),l&&Uy.put(e,y||b),t.image=y,t.svgElement=b,t.svgWidth=x.width,t.svgHeight=x.height}}function Xy(t){if(!t||0===t.length)return[["rect"]];if(Object(s["C"])(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Object(s["C"])(t[n])){e=!1;break}if(e)return Xy([t]);var i=[];for(n=0;n<t.length;++n)Object(s["C"])(t[n])?i.push([t[n]]):i.push(t[n]);return i}function qy(t){if(!t||0===t.length)return[[0,0]];if(Object(s["z"])(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,i=0;i<t.length;++i)if(!Object(s["z"])(t[i])){n=!1;break}if(n)return qy([t]);var r=[];for(i=0;i<t.length;++i)if(Object(s["z"])(t[i])){e=Math.ceil(t[i]);r.push([e,e])}else{e=Object(s["H"])(t[i],(function(t){return Math.ceil(t)}));e.length%2===1?r.push(e.concat(e)):r.push(e)}return r}function Ky(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(Object(s["z"])(t)){var e=Math.ceil(t);return[e,e]}var n=Object(s["H"])(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function Qy(t){return Object(s["H"])(t,(function(t){return Jy(t)}))}function Jy(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function $y(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");if(n){var r=i.ensureUniqueItemVisual(t,"style");r.decal=Yy(n,e)}}));var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=Yy(r,e)}}}))}var tb=new O,eb=tb,nb={};function ib(t,e){nb[t]=e}function rb(t){return nb[t]}var ob=1,ab=800,sb=900,lb=1e3,cb=2e3,ub=5e3,hb=1e3,db=1100,pb=2e3,fb=3e3,gb=4e3,mb=4500,vb=4600,yb=5e3,bb=6e3,xb=7e3,wb={PROCESSOR:{FILTER:lb,SERIES_FILTER:ab,STATISTIC:ub},VISUAL:{LAYOUT:hb,PROGRESSIVE_LAYOUT:db,GLOBAL:pb,CHART:fb,POST_CHART_LAYOUT:vb,COMPONENT:gb,BRUSH:yb,CHART_ITEM:mb,ARIA:bb,DECAL:xb}},_b="__flagInMainProcess",Cb="__pendingUpdate",Ab="__needsUpdateStatus",Ib=/^[a-zA-Z0-9_]+$/,Sb="__connectUpdateStatus",Mb=0,kb=1,Eb=2;function Tb(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Pb(this,t,e);nx(this.id)}}function Ob(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Pb(this,t,e)}}function Pb(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),O.prototype[e].apply(t,n)}var jb,Lb,Db,Rb,Bb,Nb,Fb,zb,Vb,Gb,Hb,Wb,Ub,Zb,Yb,Xb,qb,Kb,Qb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(O),Jb=Qb.prototype;Jb.on=Ob("on"),Jb.off=Ob("off");var $b=function(t){function e(e,n,i){var r=t.call(this,new jv)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},Object(s["C"])(n)&&(n=lx[n]),r._dom=e;var o="canvas",a="auto",l=!1,c=r._zr=ki(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Object(s["P"])(i.useDirtyRect,l),useCoarsePointer:Object(s["P"])(i.useCoarsePointer,a),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=qm(Object(s["c"])(c.flush,c),17),n=Object(s["d"])(n),n&&_d(n,!0),r._theme=n,r._locale=zc(i.locale||Nc),r._coordSysMgr=new Uh;var u=r._api=Yb(r);function h(t,e){return t.__prio-e.__prio}return qt(sx,h),qt(ox,h),r._scheduler=new Av(r,u,ox,sx),r._messageCenter=new Qb,r._initEvents(),r.resize=Object(s["c"])(r.resize,r),c.animation.on("frame",r._onframe,r),Gb(c,r),Hb(c,r),Object(s["R"])(r),r}return o(e,t),e.prototype._onframe=function(){if(!this._disposed){Kb(this);var t=this._scheduler;if(this[Cb]){var e=this[Cb].silent;this[_b]=!0;try{jb(this),Rb.update.call(this,null,this[Cb].updateParams)}catch(a){throw this[_b]=!1,this[Cb]=null,a}this._zr.flush(),this[_b]=!1,this[Cb]=null,zb.call(this,e),Vb.call(this,e)}else if(t.unfinished){var n=ob,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Nb(this,i),t.performVisualTasks(i),Zb(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[_b])if(this._disposed)nx(this.id);else{var i,r,o;if(Object(s["A"])(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[_b]=!0,!this._model||e){var a=new Jh(this._api),l=this._theme,c=this._model=new Fh;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,a)}this._model.setOption(t,{replaceMerge:r},ax);var u={seriesTransition:o,optionChanged:!0};if(n)this[Cb]={silent:i,updateParams:u},this[_b]=!1,this.getZr().wakeUp();else{try{jb(this),Rb.update.call(this,null,u)}catch(h){throw this[Cb]=null,this[_b]=!1,h}this._ssr||this._zr.flush(),this[Cb]=null,this[_b]=!1,zb.call(this,i),Vb.call(this,i)}}},e.prototype.setTheme=function(){Eh("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a["a"].hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(s["k"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,i=[],r=this;Object(s["k"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(s["k"])(i,(function(t){t.group.ignore=!1})),o}nx(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(hx[n]){var a=o,l=o,c=-o,u=-o,h=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();Object(s["k"])(ux,(function(o,d){if(o.group===n){var p=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(s["d"])(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),l=i(f.top,l),c=r(f.right,c),u=r(f.bottom,u),h.push({dom:p,left:f.left,top:f.top})}})),a*=d,l*=d,c*=d,u*=d;var p=c-a,f=u-l,g=Qn["d"].createCanvas(),m=ki(g,{renderer:e?"svg":"canvas"});if(m.resize({width:p,height:f}),e){var v="";return Object(s["k"])(h,(function(t){var e=t.left-a,n=t.top-l;v+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&m.painter.setBackgroundColor(t.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return t.connectedBackgroundColor&&m.add(new rs({shape:{x:0,y:0,width:p,height:f},style:{fill:t.connectedBackgroundColor}})),Object(s["k"])(h,(function(t){var e=new qa({style:{x:t.left*d-a,y:t.top*d-l,image:t.dom}});m.add(e)})),m.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}nx(this.id)},e.prototype.convertToPixel=function(t,e){return Bb(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Bb(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=Tr(i,t);return Object(s["k"])(r,(function(t,i){i.indexOf("Models")>=0&&Object(s["k"])(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}nx(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=Tr(n,t,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?Nv(o,a,e):Fv(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(s["k"])(ex,(function(e){var n=function(n){var i,r=t.getModel(),o=n.target,a="globalout"===e;if(a?i={}:o&&Wv(o,(function(t){var e=Cs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return i=Object(s["m"])({},e.eventData),!0}),!0),i){var l=i.componentType,c=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=i.seriesIndex);var u=l&&null!=c&&r.getComponent(l,c),h=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:h},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(s["k"])(rx,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(s["k"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Hv(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?nx(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)nx(this.id);else{this._disposed=!0;var t=this.getDom();t&&Dr(this.getDom(),px,"");var e=this,n=e._api,i=e._model;Object(s["k"])(e._componentsViews,(function(t){t.dispose(i,n)})),Object(s["k"])(e._chartsViews,(function(t){t.dispose(i,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete ux[e.id]}},e.prototype.resize=function(t){if(!this[_b])if(this._disposed)nx(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Cb]&&(null==i&&(i=this[Cb].silent),n=!0,this[Cb]=null),this[_b]=!0;try{n&&jb(this),Rb.update.call(this,{type:"resize",animation:Object(s["m"])({duration:0},t&&t.animation)})}catch(r){throw this[_b]=!1,r}this[_b]=!1,zb.call(this,i),Vb.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)nx(this.id);else if(Object(s["A"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),cx[t]){var n=cx[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?nx(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(s["m"])({},t);return e.type=rx[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)nx(this.id);else if(Object(s["A"])(e)||(e={silent:!!e}),ix[t.type]&&this._model)if(this[_b])this._pendingActions.push(t);else{var n=e.silent;Fb.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&a["a"].browser.weChat&&this._throttledZrFlush(),zb.call(this,n),Vb.call(this,n)}},e.prototype.updateLabelLayout=function(){eb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)nx(this.id);else{var e=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(e);0,i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,o,a=e.concat(n);qt(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(s["k"])(a,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,a=e.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Os&&t.states.emphasis?e.push("emphasis"):t.hoverState===Ts&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!a["a"].node&&!a["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function r(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function l(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return c(t,n,i,-1/0),!0}))}}function c(t,e,n,i){var r=t.getTextContent(),o=t.getTextGuideLine(),a=t.isGroup;if(a)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(c(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(r&&(r.z=e,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var u=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function u(t,e){e.eachRendered((function(t){if(!Wl(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function h(t,e){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(Wl(t))return;if(t instanceof Va&&Nl(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}jb=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Lb(t,!0),Lb(t,!1),e.plan()},Lb=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function c(t){var l=t.__requireNewView;t.__requireNewView=!1;var c="_ec_"+t.id+"_"+t.type,u=!l&&o[c];if(!u){var h=Hr(t.type),d=e?Af.getClass(h.main,h.sub):Um.getClass(h.sub);0,u=new d,u.init(n,s),o[c]=u,r.push(u),a.add(u.group)}t.__viewId=u.__id=c,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(u,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&c(e)})):n.eachSeries(c);for(l=0;l<r.length;){var u=r[l];u.__alive?l++:(!e&&u.renderTask.dispose(),a.remove(u.group),u.dispose(n,s),r.splice(l,1),o[u.__id]===u&&delete o[u.__id],u.__id=u.group.__ecComponentInfo=null)}},Db=function(t,e,n,i,r){var o=t._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var l={mainType:i,query:a};r&&(l.subType=r);var c,u=n.excludeSeriesId;null!=u&&(c=Object(s["f"])(),Object(s["k"])(ar(u),(function(t){var e=xr(t,null);null!=e&&c.set(e,!0)}))),o&&o.eachComponent(l,(function(e){var i=c&&null!=c.get(e.id);if(!i)if(Bl(n))if(e instanceof _f)n.type!==Rs||n.notBlur||e.get(["emphasis","disabled"])||yl(e,n,t._api);else{var r=bl(e.mainType,e.componentIndex,n.name,t._api),o=r.focusSelf,a=r.dispatchers;n.type===Rs&&o&&!n.notBlur&&vl(e.mainType,e.componentIndex,t._api),a&&Object(s["k"])(a,(function(t){n.type===Rs?ll(t):cl(t)}))}else Rl(n)&&e instanceof _f&&(_l(e,n,t._api),Cl(e),qb(t))}),t),o&&o.eachComponent(l,(function(e){var n=c&&null!=c.get(e.id);n||h(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(s["k"])([].concat(t._componentsViews).concat(t._chartsViews),h);function h(i){i&&i.__alive&&i[e]&&i[e](i.__model,o,t._api,n)}},Rb={prepareAndUpdate:function(t){jb(this),Rb.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),Nb(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),Wb(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",c=i.get("darkMode");o.setBackgroundColor(l),null!=c&&"auto"!==c&&o.setDarkMode(c),eb.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var o=[];i.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Object(s["f"])();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,i,r,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:a}),Zb(this,i,r,e,{},a),eb.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Um.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Wb(this,n,this._api,e,{}),eb.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),Um.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){var r=n._chartsMap[t.__viewId];r.updateVisual(t,i,n._api,e)})),eb.trigger("afterupdate",i,this._api))},updateLayout:function(t){Rb.update.call(this,t)}},Bb=function(t,e,n,i){if(t._disposed)nx(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Tr(o,n),l=0;l<a.length;l++){var c=a[l];if(c[e]&&null!=(r=c[e](o,s,i)))return r}0}},Nb=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},Fb=function(t,e){var n=this,i=this.getModel(),r=t.type,o=t.escapeConnect,a=ix[r],l=a.actionInfo,c=(l.update||"update").split(":"),u=c.pop(),h=null!=c[0]&&Hr(c[0]);this[_b]=!0;var d=[t],p=!1;t.batch&&(p=!0,d=Object(s["H"])(t.batch,(function(e){return e=Object(s["i"])(Object(s["m"])({},e),t),e.batch=null,e})));var f,g=[],m=Rl(t),v=Bl(t);if(v&&gl(this._api),Object(s["k"])(d,(function(e){if(f=a.action(e,n._model,n._api),f=f||Object(s["m"])({},e),f.type=l.event||f.type,g.push(f),v){var i=Or(t),r=i.queryOptionMap,o=i.mainTypeSpecified,c=o?r.keys()[0]:"series";Db(n,u,e,c),qb(n)}else m?(Db(n,u,e,"series"),qb(n)):h&&Db(n,u,e,h.main,h.sub)})),"none"!==u&&!v&&!m&&!h)try{this[Cb]?(jb(this),Rb.update.call(this,t),this[Cb]=null):Rb[u].call(this,t)}catch(x){throw this[_b]=!1,x}if(f=p?{type:l.event||r,escapeConnect:o,batch:g}:g[0],this[_b]=!1,!e){var y=this._messageCenter;if(y.trigger(f.type,f),m){var b={type:"selectchanged",escapeConnect:o,selected:Al(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};y.trigger(b.type,b)}}},zb=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();Fb.call(this,n,t)}},Vb=function(t){!t&&this.trigger("updated")},Gb=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Cb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},Hb=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=Wv(n,jl);i&&(xl(i,t,e._api),qb(e))})).on("mouseout",(function(t){var n=t.target,i=Wv(n,jl);i&&(wl(i,t,e._api),qb(e))})).on("click",(function(t){var n=t.target,i=Wv(n,(function(t){return null!=Cs(t).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=Cs(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},Wb=function(t,n,i,r,o){e(n),Ub(t,n,i,r,o),Object(s["k"])(t._chartsViews,(function(t){t.__alive=!1})),Zb(t,n,i,r,o),Object(s["k"])(t._chartsViews,(function(t){t.__alive||t.remove(n,i)}))},Ub=function(t,e,n,i,r,o){Object(s["k"])(o||t._componentsViews,(function(t){var r=t.__model;u(r,t),t.render(r,e,n,i),l(r,t),h(r,t)}))},Zb=function(t,e,n,o,a,c){var d=t._scheduler;a=Object(s["m"])(a||{},{updatedSeries:e.getSeries()}),eb.trigger("series:beforeupdate",e,n,a);var p=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,o),u(e,n),c&&c.get(e.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(p=!0),n.group.silent=!!e.get("silent"),r(e,n),Cl(e)})),d.unfinished=p||d.unfinished,eb.trigger("series:layoutlabels",e,n,a),eb.trigger("series:transition",e,n,a),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];l(e,n),h(e,n)})),i(t,e),eb.trigger("series:afterupdate",e,n,a)},qb=function(t){t[Ab]=!0,t.getZr().wakeUp()},Kb=function(t){t[Ab]&&(t.getZr().storage.traverse((function(t){Wl(t)||n(t)})),t[Ab]=!1)},Yb=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){ll(e,n),qb(t)},n.prototype.leaveEmphasis=function(e,n){cl(e,n),qb(t)},n.prototype.enterBlur=function(e){ul(e),qb(t)},n.prototype.leaveBlur=function(e){hl(e),qb(t)},n.prototype.enterSelect=function(e){dl(e),qb(t)},n.prototype.leaveSelect=function(e){pl(e),qb(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Gh))(t)},Xb=function(t){function e(t,e){for(var n=0;n<t.length;n++){var i=t[n];i[Sb]=e}}Object(s["k"])(rx,(function(n,i){t._messageCenter.on(i,(function(n){if(hx[t.group]&&t[Sb]!==Mb){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];Object(s["k"])(ux,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,Mb),Object(s["k"])(r,(function(t){t[Sb]!==kb&&t.dispatchAction(i)})),e(r,Eb)}}))}))}}(),e}(O),tx=$b.prototype;tx.on=Tb("on"),tx.off=Tb("off"),tx.one=function(t,e,n){var i=this;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(t,r)}Eh("ECharts#one is deprecated."),this.on.call(this,t,r,n)};var ex=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function nx(t){0}var ix={},rx={},ox=[],ax=[],sx=[],lx={},cx={},ux={},hx={},dx=+new Date-0,px=(new Date,"_echarts_instance_");function fx(t,e,n){var i=!(n&&n.ssr);if(i){0;var r=gx(t);if(r)return r;0}var o=new $b(t,e,n);return o.id="ec_"+dx++,ux[o.id]=o,i&&Dr(t,px,o.id),Xb(o),eb.trigger("afterinit",o),o}function gx(t){return ux[Rr(t,px)]}function mx(t,e){lx[t]=e}function vx(t){Object(s["r"])(ax,t)<0&&ax.push(t)}function yx(t,e){Mx(ox,t,e,cb)}function bx(t){wx("afterinit",t)}function xx(t){wx("afterupdate",t)}function wx(t,e){eb.on(t,e)}function _x(t,e,n){Object(s["w"])(e)&&(n=e,e="");var i=Object(s["A"])(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,rx[e]||(Object(s["b"])(Ib.test(i)&&Ib.test(e)),ix[i]||(ix[i]={action:n,actionInfo:t}),rx[e]=i)}function Cx(t,e){Uh.register(t,e)}function Ax(t,e){Mx(sx,t,e,hb,"layout")}function Ix(t,e){Mx(sx,t,e,fb,"visual")}var Sx=[];function Mx(t,e,n,i,r){if((Object(s["w"])(e)||Object(s["A"])(e))&&(n=e,e=i),!(Object(s["r"])(Sx,n)>=0)){Sx.push(n);var o=Av.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function kx(t,e){cx[t]=e}function Ex(t,e,n){var i=rb("registerMap");i&&i(t,e,n)}var Tx=xp;Ix(pb,iv),Ix(mb,ov),Ix(mb,av),Ix(pb,Rv),Ix(mb,Bv),Ix(xb,$y),vx(_d),yx(sb,Cd),kx("default",lv),_x({type:Rs,event:Rs,update:Rs},s["L"]),_x({type:Bs,event:Bs,update:Bs},s["L"]),_x({type:Ns,event:Ns,update:Ns},s["L"]),_x({type:Fs,event:Fs,update:Fs},s["L"]),_x({type:zs,event:zs,update:zs},s["L"]),mx("light",Sv),mx("dark",Pv);var Ox=[],Px={registerPreprocessor:vx,registerProcessor:yx,registerPostInit:bx,registerPostUpdate:xx,registerUpdateLifecycle:wx,registerAction:_x,registerCoordinateSystem:Cx,registerLayout:Ax,registerVisual:Ix,registerTransform:Tx,registerLoading:kx,registerMap:Ex,registerImpl:ib,PRIORITY:wb,ComponentModel:Xu,ComponentView:Af,SeriesModel:_f,ChartView:Um,registerComponentModel:function(t){Xu.registerClass(t)},registerComponentView:function(t){Af.registerClass(t)},registerSeriesModel:function(t){_f.registerClass(t)},registerChartView:function(t){Um.registerClass(t)},registerSubTypeDefaulter:function(t,e){Xu.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ei(t,e)}};function jx(t){Object(s["t"])(t)?Object(s["k"])(t,(function(t){jx(t)})):Object(s["r"])(Ox,t)>=0||(Ox.push(t),Object(s["w"])(t)&&(t={install:t}),t.install(Px))}var Lx=2*Math.PI,Dx=ga.CMD,Rx=["top","right","bottom","left"];function Bx(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0);break}}function Nx(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var c=Math.sqrt(a*a+s*s);a/=c,s/=c;var u=a*n+t,h=s*n+e;if(Math.abs(i-r)%Lx<1e-4)return l[0]=u,l[1]=h,c-n;if(o){var d=i;i=xa(r),r=xa(d)}else i=xa(i),r=xa(r);i>r&&(r+=Lx);var p=Math.atan2(s,a);if(p<0&&(p+=Lx),p>=i&&p<=r||p+Lx>=i&&p+Lx<=r)return l[0]=u,l[1]=h,c-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,m=n*Math.cos(r)+t,v=n*Math.sin(r)+e,y=(f-a)*(f-a)+(g-s)*(g-s),b=(m-a)*(m-a)+(v-s)*(v-s);return y<b?(l[0]=f,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(b))}function Fx(t,e,n,i,r,o,a,s){var l=r-t,c=o-e,u=n-t,h=i-e,d=Math.sqrt(u*u+h*h);u/=d,h/=d;var p=l*u+c*h,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=a[0]=t+f*u,m=a[1]=e+f*h;return Math.sqrt((g-r)*(g-r)+(m-o)*(m-o))}function zx(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,c=a[0]=Math.min(Math.max(r,t),s),u=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((c-r)*(c-r)+(u-o)*(u-o))}var Vx=[];function Gx(t,e,n){var i=zx(e.x,e.y,e.width,e.height,t.x,t.y,Vx);return n.set(Vx[0],Vx[1]),i}function Hx(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,c=1/0,u=e.data,h=t.x,d=t.y,p=0;p<u.length;){var f=u[p++];1===p&&(o=u[p],a=u[p+1],s=o,l=a);var g=c;switch(f){case Dx.M:s=u[p++],l=u[p++],o=s,a=l;break;case Dx.L:g=Fx(o,a,u[p],u[p+1],h,d,Vx,!0),o=u[p++],a=u[p++];break;case Dx.C:g=Ae(o,a,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],h,d,Vx),o=u[p++],a=u[p++];break;case Dx.Q:g=Oe(o,a,u[p++],u[p++],u[p],u[p+1],h,d,Vx),o=u[p++],a=u[p++];break;case Dx.A:var m=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++],w=u[p++];p+=1;var _=!!(1-u[p++]);i=Math.cos(x)*y+m,r=Math.sin(x)*b+v,p<=1&&(s=i,l=r);var C=(h-m)*b/y+m;g=Nx(m,v,b,x,x+w,_,C,d,Vx),o=Math.cos(x+w)*y+m,a=Math.sin(x+w)*b+v;break;case Dx.R:s=o=u[p++],l=a=u[p++];var A=u[p++],I=u[p++];g=zx(s,l,A,I,h,d,Vx);break;case Dx.Z:g=Fx(o,a,s,l,h,d,Vx,!0),o=s,a=l;break}g<c&&(c=g,n.set(Vx[0],Vx[1]))}return c}var Wx=new vt,Ux=new vt,Zx=new vt,Yx=new vt,Xx=new vt;function qx(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||Rx,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,c=r.anchor,u=t.getComputedTransform(),h=u&&ft([],u),d=e.get("length2")||0;c&&Zx.copy(c);for(var p=0;p<a.length;p++){var f=a[p];Bx(f,0,s,Wx,Yx),vt.scaleAndAdd(Ux,Wx,Yx,d),Ux.transform(h);var g=t.getBoundingRect(),m=c?c.distance(Ux):t instanceof Va?Hx(Ux,t.path,Zx):Gx(Ux,g,Zx);m<l&&(l=m,Ux.transform(u),Zx.transform(u),Zx.toArray(o[0]),Ux.toArray(o[1]),Wx.toArray(o[2]))}Jx(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var Kx=[],Qx=new vt;function Jx(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Wx.fromArray(t[0]),Ux.fromArray(t[1]),Zx.fromArray(t[2]),vt.sub(Yx,Wx,Ux),vt.sub(Xx,Zx,Ux);var n=Yx.len(),i=Xx.len();if(!(n<.001||i<.001)){Yx.scale(1/n),Xx.scale(1/i);var r=Yx.dot(Xx),o=Math.cos(e);if(o<r){var a=Fx(Ux.x,Ux.y,Zx.x,Zx.y,Wx.x,Wx.y,Kx,!1);Qx.fromArray(Kx),Qx.scaleAndAdd(Xx,a/Math.tan(Math.PI-e));var s=Zx.x!==Ux.x?(Qx.x-Ux.x)/(Zx.x-Ux.x):(Qx.y-Ux.y)/(Zx.y-Ux.y);if(isNaN(s))return;s<0?vt.copy(Qx,Ux):s>1&&vt.copy(Qx,Zx),Qx.toArray(t[1])}}}}function $x(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,Wx.fromArray(t[0]),Ux.fromArray(t[1]),Zx.fromArray(t[2]),vt.sub(Yx,Ux,Wx),vt.sub(Xx,Zx,Ux);var i=Yx.len(),r=Xx.len();if(!(i<.001||r<.001)){Yx.scale(1/i),Xx.scale(1/r);var o=Yx.dot(e),a=Math.cos(n);if(o<a){var s=Fx(Ux.x,Ux.y,Zx.x,Zx.y,Wx.x,Wx.y,Kx,!1);Qx.fromArray(Kx);var l=Math.PI/2,c=Math.acos(Xx.dot(e)),u=l+c-n;if(u>=l)vt.copy(Qx,Zx);else{Qx.scaleAndAdd(Xx,s/Math.tan(Math.PI/2-u));var h=Zx.x!==Ux.x?(Qx.x-Ux.x)/(Zx.x-Ux.x):(Qx.y-Ux.y)/(Zx.y-Ux.y);if(isNaN(h))return;h<0?vt.copy(Qx,Ux):h>1&&vt.copy(Qx,Zx)}Qx.toArray(t[1])}}}}function tw(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function ew(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=x(i[0],i[1]),o=x(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=C([],i[1],i[0],a/r),l=C([],i[1],i[2],a/o),c=C([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u<i.length;u++)t.lineTo(i[u][0],i[u][1])}function nw(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),l=r.ignore,c=0;c<js.length;c++){var u=js[c],h=e[u],d="normal"===u;if(h){var p=h.get("show"),f=d?l:Object(s["P"])(r.states[u]&&r.states[u].ignore,l);if(f||!Object(s["P"])(p,a)){var g=d?i:i&&i.states[u];g&&(g.ignore=!0);continue}i||(i=new Eg,t.setTextGuideLine(i),d||!l&&a||tw(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),tw(i,!1,u,h)}}if(i){Object(s["i"])(i.style,n),i.style.fill=null;var m=o.get("showAbove"),v=t.textGuideLineConfig=t.textGuideLineConfig||{};v.showAbove=m||!1,i.buildPath=ew}}else i&&t.removeTextGuideLine()}function iw(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<Ps.length;i++){var r=Ps[i];n[r]=t.getModel([r,e])}return n}function rw(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,c=a.clone();c.applyTransform(o),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var u=s?new em(a,o):null;e.push({label:r,labelLine:i.labelLine,rect:c,localRect:a,obb:u,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return e}function ow(t,e,n,i,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,c=!1,u=[],h=0,d=0;d<a;d++){var p=t[d],f=p.rect;s=f[e]-l,s<0&&(f[e]-=s,p.label[e]-=s,c=!0);var g=Math.max(-s,0);u.push(g),h+=g,l=f[e]+f[n]}h>0&&o&&_(-h/a,0,a);var m,v,y=t[0],b=t[a-1];return x(),m<0&&C(-m,.8),v<0&&C(v,.8),x(),w(m,v,1),w(v,m,-1),x(),m<0&&A(-m),v<0&&A(v),c}function x(){m=y.rect[e]-i,v=r-b.rect[e]-b.rect[n]}function w(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){_(i*n,0,a);var r=i+t;r<0&&C(-r*n,1)}else C(-t*n,1)}}function _(n,i,r){0!==n&&(c=!0);for(var o=i;o<r;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function C(i,r){for(var o=[],s=0,l=1;l<a;l++){var c=t[l-1].rect,u=Math.max(t[l].rect[e]-c[e]-c[n],0);o.push(u),s+=u}if(s){var h=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){var d=o[l]*h;_(d,0,l+1)}else for(l=a-1;l>0;l--){d=o[l-1]*h;_(-d,l,a)}}}function A(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?_(n,0,i+1):_(-n,a-i-1,a),t-=n,t<=0)return}}function aw(t,e,n,i){return ow(t,"x","width",e,n,i)}function sw(t,e,n,i){return ow(t,"y","height",e,n,i)}function lw(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Mt(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r<t.length;r++){var o=t[r],a=o.axisAligned,s=o.localRect,l=o.transform,c=o.label,u=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,d=!1,p=0;p<e.length;p++){var f=e[p];if(n.intersect(f.rect)){if(a&&f.axisAligned){d=!0;break}if(f.obb||(f.obb=new em(f.localRect,f.transform)),h||(h=new em(s,l)),h.intersect(f.obb)){d=!0;break}}}d?(i(c),u&&i(u)):(c.attr("ignore",o.defaultAttr.ignore),u&&u.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function cw(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function uw(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:cw(i&&i.shape.points)}}var hw=["align","verticalAlign","width","height","fontSize"],dw=new qn,pw=kr(),fw=kr();function gw(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var mw=["x","y","rotation"],vw=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),c=i.getBoundingRect().plain();Mt.applyTransform(c,c,l),l?dw.setLocalTransform(l):(dw.x=dw.y=dw.rotation=dw.originX=dw.originY=0,dw.scaleX=dw.scaleY=1),dw.rotation=xa(dw.rotation);var u,h=i.__hostTarget;if(h){u=h.getBoundingRect().plain();var d=h.getComputedTransform();Mt.applyTransform(u,u,d)}var p=u&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOption:r,computedLayoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:p&&p.ignore,x:dw.x,y:dw.y,scaleX:dw.scaleX,scaleY:dw.scaleY,rotation:dw.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Object(s["w"])(i)||Object(s["F"])(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=Cs(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){qx(t,e)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,l=a.__hostTarget,c=o.defaultAttr,u=void 0;u=Object(s["w"])(o.layoutOption)?o.layoutOption(uw(o,l)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:c.attachedPos,rotation:null!=u.rotate?u.rotate*h:c.attachedRot,offset:[u.dx||0,u.dy||0]});var d=!1;if(null!=u.x?(a.x=Li(u.x,e),a.setStyle("x",0),d=!0):(a.x=c.x,a.setStyle("x",c.style.x)),null!=u.y?(a.y=Li(u.y,n),a.setStyle("y",0),d=!0):(a.y=c.y,a.setStyle("y",c.style.y)),u.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:u.labelLinePoints}),d=!1)}var f=pw(a);f.needsUpdateLabelLine=d,a.rotation=null!=u.rotate?u.rotate*h:c.rotation,a.scaleX=c.scaleX,a.scaleY=c.scaleY;for(var g=0;g<hw.length;g++){var m=hw[g];a.setStyle(m,null!=u[m]?u[m]:c.style[m])}if(u.draggable){if(a.draggable=!0,a.cursor="move",l){var v=o.seriesModel;if(null!=o.dataIndex){var y=o.seriesModel.getData(o.dataType);v=y.getItemModel(o.dataIndex)}a.on("drag",i(l,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=c.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=rw(this._labelList),r=Object(s["n"])(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=Object(s["n"])(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));aw(r,0,e),sw(o,0,n);var a=Object(s["n"])(i,(function(t){return t.layoutOption.hideOverlap}));lw(a)},t.prototype.processLabelsOverall=function(){var t=this;Object(s["k"])(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=pw(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=Cs(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style");if(l){var c=o.getVisual("drawType");s.stroke=l[c]}var u=a.getModel("labelLine");nw(t,iw(a),s),qx(t,u)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Wl(t))){var r=pw(n),o=r.oldLayout,a=Cs(t),l=a.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var h=t.prevStates;h&&(Object(s["r"])(h,"select")>=0&&n.attr(r.oldLayoutSelect),Object(s["r"])(h,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Gl(n,c,e,l)}else if(n.attr(c),!uc(n).valueAnimation){var d=Object(s["P"])(n.style.opacity,1);n.style.opacity=0,Hl(n,{style:{opacity:d}},e,l)}if(r.oldLayout=c,n.states.select){var p=r.oldLayoutSelect={};gw(p,c,mw),gw(p,n.states.select,mw)}if(n.states.emphasis){var f=r.oldLayoutEmphasis={};gw(f,c,mw),gw(f,n.states.emphasis,mw)}dc(n,l,u,e,e)}if(i&&!i.ignore&&!i.invisible){r=fw(i),o=r.oldLayout;var g={points:i.shape.points};o?(i.attr({shape:o}),Gl(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,Hl(i,{style:{strokePercent:1}},e)),r.oldLayout=g}},t}(),yw=vw,bw=kr();function xw(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=bw(e).labelManager;i||(i=bw(e).labelManager=new yw),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=bw(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function ww(t,e,n){var i=Qn["d"].createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}jx(xw);var _w=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Ln,"string"===typeof e?r=ww(e,n,i):s["A"](e)&&(r=e,e=r.id),o.id=e,o.dom=r;var a=r.style;return a&&(s["j"](r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return o(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=ww("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Mt(0,0,0,0);function c(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Mt(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,i=1/0,r=0,c=0;c<o.length;++c){var u=o[c];if(u.intersect(t)){var h=new Mt(0,0,0,0);h.copy(u),h.union(t),o[c]=h,n=!0;break}if(s){l.copy(t),l.union(u);var d=t.width*t.height,p=u.width*u.height,f=l.width*l.height,g=f-d-p;g<i&&(i=g,r=c)}}if(s&&(o[r].union(t),n=!0),!n){e=new Mt(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var u=this.__startIndex;u<this.__endIndex;++u){var h=t[u];if(h){var d=h.shouldBePainted(n,i,!0,!0),p=h.__isRendered&&(h.__dirty&Kt||!d)?h.getPrevPaintRect():null;p&&c(p);var f=d&&(h.__dirty&Kt||!h.__isRendered)?h.getPaintRect():null;f&&c(f)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){h=e[u],d=h.shouldBePainted(n,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){p=h.getPrevPaintRect();p&&c(p)}}do{r=!1;for(u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(r=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;e=e||this.clearColor;var l=this.motionBlur&&!t,c=this.lastFrameAlpha,u=this.dpr,h=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/u,a/u));var d=this.domBack;function p(t,n,i,o){if(r.clearRect(t,n,i,o),e&&"transparent"!==e){var a=void 0;if(s["x"](e)){var p=e.global||e.__width===i&&e.__height===o;a=p&&e.__canvasGradient||uy(r,e,{x:0,y:0,width:i,height:o}),e.__canvasGradient=a,e.__width=i,e.__height=o}else s["y"](e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=_y(r,e,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}}));r.save(),r.fillStyle=a||e,r.fillRect(t,n,i,o),r.restore()}l&&(r.save(),r.globalAlpha=c,r.drawImage(d,t,n,i,o),r.restore())}!n||l?p(0,0,o,a):n.length&&s["k"](n,(function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(O),Cw=_w,Aw=1e5,Iw=314159,Sw=.01,Mw=.001;function kw(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function Ew(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var Tw=function(){function t(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=s["m"]({},n||{}),this.dpr=n.devicePixelRatio||Ln,this._singleCanvas=r,this.root=t;var o=t.style;o&&(s["j"](t),t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(r){var c=t,u=c.width,h=c.height;null!=n.width&&(u=n.width),null!=n.height&&(h=n.height),this.dpr=n.devicePixelRatio||1,c.width=u*this.dpr,c.height=h*this.dpr,this._width=u,this._height=h;var d=new Cw(c,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Iw]=d,d.zlevel=Iw,a.push(Iw),this._domRoot=t}else{this._width=py(t,0,n),this._height=py(t,1,n);var p=this._domRoot=Ew(this._width,this._height);t.appendChild(p)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Aw)),i||(i=n.ctx,i.save()),Gy(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(Aw)},t.prototype.paintOne=function(t,e){Vy(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;oe((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(Iw).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,r=[],o=this._opts.useDirtyRect,l=0;l<this._zlevelList.length;l++){var c=this._zlevelList[l],u=this._layers[c];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&r.push(u)}for(var h=!0,d=!1,p=function(a){var s,l=r[a],c=l.ctx,u=o&&l.createRepaintRects(t,e,f._width,f._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,u);else if(p===l.__startIndex){var y=t[p];y.incremental&&y.notClear&&!n||l.clear(!1,v,u)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var b=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=p;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(d=!0),i._doPaintEl(r,l,o,e,n,s===l.__endIndex-1),g){var a=Date.now()-m;if(a>15)break}}n.prevElClipPaths&&c.restore()};if(u)if(0===u.length)s=l.__endIndex;else for(var x=f.dpr,w=0;w<u.length;++w){var _=u[w];c.save(),c.beginPath(),c.rect(_.x*x,_.y*x,_.width*x,_.height*x),c.clip(),b(_),c.restore()}else c.save(),b(),c.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(h=!1)},f=this,g=0;g<r.length;g++)p(g);return a["a"].wxa&&s["k"](this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:h,needsRefreshHover:d}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&(Gy(a,t,r,o),t.setPrevPaintRect(s))}else Gy(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Iw);var n=this._layers[t];return n||(n=new Cw("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?s["I"](n,this._layerConfig[t],!0):this._layerConfig[t-Sw]&&s["I"](n,this._layerConfig[t-Sw],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&kw(e)){if(r>0&&t>i[0]){for(s=0;s<r-1;s++)if(i[s]<t&&i[s+1]>t)break;a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,l=0;for(o=0;o<t.length;o++){i=t[o];var c=i.zlevel,u=void 0;r!==c&&(r=c,l=0),i.incremental?(u=this.getLayer(c+Mw,this._needsManuallyCompositing),u.incremental=!0,l=1):u=this.getLayer(c+(l>0?Sw:0),this._needsManuallyCompositing),u.__builtin__||s["G"]("ZLevel "+c+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),i.__dirty&Kt&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,s["k"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?s["I"](n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===t||r===t+Sw){var o=this._layers[r];s["I"](o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(s["r"](n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=py(r,0,i),e=py(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(Iw).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Iw].dom;var e=new Cw("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var c=a[s];Gy(n,c,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),Ow=Tw;function Pw(t){t.registerPainter("canvas",Ow)}var jw=Math.sin,Lw=Math.cos,Dw=Math.PI,Rw=2*Math.PI,Bw=180/Dw,Nw=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=a-o,c=!s,u=Math.abs(l),h=Object(Ne["j"])(u-Rw)||(c?l>=Rw:-l>=Rw),d=l>0?l%Rw:l%Rw+Rw,p=!1;p=!!h||!Object(Ne["j"])(u)&&d>=Dw===!!c;var f=t+n*Lw(o),g=e+i*jw(o);this._start&&this._add("M",f,g);var m=Math.round(r*Bw);if(h){var v=1/this._p,y=(c?1:-1)*(Rw-v);this._add("A",n,i,m,1,+c,t+n*Lw(o+y),e+i*jw(o+y)),v>.01&&this._add("A",n,i,m,0,+c,f,g)}else{var b=t+n*Lw(a),x=e+i*jw(a);this._add("A",n,i,m,+p,+c,b,x)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var c=[],u=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);c.push(Math.round(d*u)/u)}this._d.push(t+c.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),Fw=Nw,zw="none",Vw=Math.round;function Gw(t){var e=t.fill;return null!=e&&e!==zw}function Hw(t){var e=t.stroke;return null!=e&&e!==zw}var Ww=["lineCap","miterLimit","lineJoin"],Uw=Object(s["H"])(Ww,(function(t){return"stroke-"+t.toLowerCase()}));function Zw(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof qa)t("opacity",r);else{if(Gw(e)){var o=Object(Ne["p"])(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&t("fill-opacity",a)}else t("fill",zw);if(Hw(e)){var s=Object(Ne["p"])(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,c=l?(e.lineWidth||0)/l:0,u=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,h=e.strokeFirst;if((i||1!==c)&&t("stroke-width",c),(i||h)&&t("paint-order",h?"stroke":"fill"),(i||u<1)&&t("stroke-opacity",u),e.lineDash){var d=gy(n),p=d[0],f=d[1];p&&(f=Vw(f||0),t("stroke-dasharray",p.join(",")),(f||i)&&t("stroke-dashoffset",f))}else i&&t("stroke-dasharray",zw);for(var g=0;g<Ww.length;g++){var m=Ww[g];if(i||e[m]!==Ba[m]){var v=e[m]||Ba[m];v&&t(Uw[g],v)}}}else i&&t("stroke",zw)}}var Yw="http://www.w3.org/2000/svg",Xw="http://www.w3.org/1999/xlink",qw="http://www.w3.org/2000/xmlns/",Kw="http://www.w3.org/XML/1998/namespace";function Qw(t){return document.createElementNS(Yw,t)}function Jw(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function $w(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}function t_(t){return"</"+t+">"}function e_(t,e){e=e||{};var n=e.newline?"\n":"";function i(t){var e=t.children,r=t.tag,o=t.attrs,a=t.text;return $w(r,o)+("style"!==r?W(a):a||"")+(e?""+n+Object(s["H"])(e,(function(t){return i(t)})).join(n)+n:"")+t_(r)}return i(t)}function n_(t,e,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=Object(s["H"])(Object(s["F"])(t),(function(e){return e+r+Object(s["H"])(Object(s["F"])(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),l=Object(s["H"])(Object(s["F"])(e),(function(t){return"@keyframes "+t+r+Object(s["H"])(Object(s["F"])(e[t]),(function(n){return n+r+Object(s["H"])(Object(s["F"])(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||l?["<![CDATA[",a,l,"]]>"].join(i):""}function i_(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function r_(t,e,n,i){return Jw("svg","root",{width:t,height:e,xmlns:Yw,"xmlns:xlink":Xw,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var o_={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},a_="transform-origin";function s_(t,e,n){var i=Object(s["m"])({},t.shape);Object(s["m"])(i,e),t.buildPath(n,i);var r=new Fw;return r.reset(Object(Ne["f"])(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function l_(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[a_]=n+"px "+i+"px")}var c_={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function u_(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function h_(t,e,n){var i,r,o=t.shape.paths,a={};if(Object(s["k"])(o,(function(t){var e=i_(n.zrId);e.animation=!0,p_(t,{},e,!0);var o=e.cssAnims,l=e.cssNodes,c=Object(s["F"])(o),u=c.length;if(u){r=c[u-1];var h=o[r];for(var d in h){var p=h[d];a[d]=a[d]||{d:""},a[d].d+=p.d||""}for(var f in l){var g=l[f].animation;g.indexOf(r)>=0&&(i=g)}}})),i){e.d=!1;var l=u_(a,n);return i.replace(r,l)}}function d_(t){return Object(s["C"])(t)?o_[t]?"cubic-bezier("+o_[t]+")":Le(t)?t:"":""}function p_(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof Hg){var l=h_(t,e,n);if(l)a.push(l);else if(!o)return}else if(!o)return;for(var c={},u=0;u<o;u++){var h=r[u],d=[h.getMaxTime()/1e3+"s"],p=d_(h.getClip().easing),f=h.getDelay();p?d.push(p):d.push("linear"),f&&d.push(f/1e3+"s"),h.getLoop()&&d.push("infinite");var g=d.join(" ");c[g]=c[g]||[g,[]],c[g][1].push(h)}function m(r){var o,a=r[1],l=a.length,c={},u={},h={},d="animation-timing-function";function p(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var l=a.keyframes,c=a.propName;if(n&&(c=n(c)),c)for(var u=0;u<l.length;u++){var h=l[u],p=Math.round(h.time/r*100)+"%",f=d_(h.easing),g=h.rawValue;(Object(s["C"])(g)||Object(s["z"])(g))&&(e[p]=e[p]||{},e[p][c]=h.rawValue,f&&(e[p][d]=f))}}}}for(var f=0;f<l;f++){var g=a[f],m=g.targetName;m?"shape"===m&&p(g,u):!i&&p(g,c)}for(var v in c){var y={};Xn(y,t),Object(s["m"])(y,c[v]);var b=Object(Ne["g"])(y),x=c[v][d];h[v]=b?{transform:b}:{},l_(h[v],y),x&&(h[v][d]=x)}var w=!0;for(var v in u){h[v]=h[v]||{};var _=!o;x=u[v][d];_&&(o=new ga);var C=o.len();o.reset(),h[v].d=s_(t,u[v],o);var A=o.len();if(!_&&C!==A){w=!1;break}x&&(h[v][d]=x)}if(!w)for(var v in h)delete h[v].d;if(!i)for(f=0;f<l;f++){g=a[f],m=g.targetName;"style"===m&&p(g,h,(function(t){return c_[t]}))}var I,S=Object(s["F"])(h),M=!0;for(f=1;f<S.length;f++){var k=S[f-1],E=S[f];if(h[k][a_]!==h[E][a_]){M=!1;break}I=h[k][a_]}if(M&&I){for(var v in h)h[v][a_]&&delete h[v][a_];e[a_]=I}if(Object(s["n"])(S,(function(t){return Object(s["F"])(h[t]).length>0})).length){var T=u_(h,n);return T+" "+r[0]+" both"}}for(var v in c){l=m(c[v]);l&&a.push(l)}if(a.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:a.join(",")},e["class"]=y}}var f_=Math.round;function g_(t){return t&&Object(s["C"])(t.src)}function m_(t){return t&&Object(s["w"])(t.toDataURL)}function v_(t,e,n,i){Zw((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(Ne["k"])(o)?O_(e,t,r,i):a&&Object(Ne["n"])(o)?P_(n,t,r,i):t[r]=o}),e,n,!1),T_(n,t,i)}function y_(t){return Object(Ne["j"])(t[0]-1)&&Object(Ne["j"])(t[1])&&Object(Ne["j"])(t[2])&&Object(Ne["j"])(t[3]-1)}function b_(t){return Object(Ne["j"])(t[4])&&Object(Ne["j"])(t[5])}function x_(t,e,n){if(e&&(!b_(e)||!y_(e))){var i=n?10:1e4;t.transform=y_(e)?"translate("+f_(e[4]*i)/i+" "+f_(e[5]*i)/i+")":Object(Ne["e"])(e)}}function w_(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(f_(i[o][0]*n)/n),r.push(f_(i[o][1]*n)/n);e.points=r.join(" ")}function __(t){return!t.smooth}function C_(t){var e=Object(s["H"])(t,(function(t){return"string"===typeof t?[t,t]:t}));return function(t,n,i){for(var r=0;r<e.length;r++){var o=e[r],a=t[o[0]];null!=a&&(n[o[1]]=f_(a*i)/i)}}}var A_={circle:[C_(["cx","cy","r"])],polyline:[w_,__],polygon:[w_,__]};function I_(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}function S_(t,e){var n=t.style,i=t.shape,r=A_[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,c=e.compress&&Object(Ne["f"])(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||a&&I_(t)||l<1){var u=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;u&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new Fw),f.reset(c),h.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),o.d=f.getStr()}else{s=t.type;var g=Math.pow(10,c);r[0](i,o,g)}return x_(o,t.transform),v_(o,n,t,e),e.animation&&p_(t,o,e),Jw(s,t.id+"",o)}function M_(t,e){var n=t.style,i=n.image;if(i&&!Object(s["C"])(i)&&(g_(i)?i=i.src:m_(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a=n.width,l=n.height,c={href:i,width:a,height:l};return r&&(c.x=r),o&&(c.y=o),x_(c,t.transform),v_(c,n,t,e),e.animation&&p_(t,c,e),Jw("image",t.id+"",c)}}function k_(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||Qn["a"],o=n.x||0,a=Object(Ne["b"])(n.y||0,ri(r),n.textBaseline),s=Ne["a"][n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(fs(n)){var c="",u=n.fontStyle,h=ds(n.fontSize);if(!parseFloat(h))return;var d=n.fontFamily||Qn["b"],p=n.fontWeight;c+="font-size:"+h+";font-family:"+d+";",u&&"normal"!==u&&(c+="font-style:"+u+";"),p&&"normal"!==p&&(c+="font-weight:"+p+";"),l.style=c}else l.style="font: "+r;return i.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),x_(l,t.transform),v_(l,n,t,e),e.animation&&p_(t,l,e),Jw("text",t.id+"",l,void 0,i)}}function E_(t,e){return t instanceof Va?S_(t,e):t instanceof qa?M_(t,e):t instanceof Wa?k_(t,e):void 0}function T_(t,e,n){var i=t.style;if(Object(Ne["i"])(i)){var r=Object(Ne["h"])(t),o=n.shadowCache,a=o[r];if(!a){var s=t.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=i.shadowOffsetX||0,h=i.shadowOffsetY||0,d=i.shadowBlur,p=Object(Ne["p"])(i.shadowColor),f=p.opacity,g=p.color,m=d/2/l,v=d/2/c,y=m+" "+v;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=Jw("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Jw("feDropShadow","",{dx:u/l,dy:h/c,stdDeviation:y,"flood-color":g,"flood-opacity":f})]),o[r]=a}e.filter=Object(Ne["d"])(a)}}function O_(t,e,n,i){var r,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(Ne["m"])(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(Ne["o"])(o))return void 0;r="radialGradient",a.cx=Object(s["P"])(o.x,.5),a.cy=Object(s["P"])(o.y,.5),a.r=Object(s["P"])(o.r,.5)}for(var l=o.colorStops,c=[],u=0,h=l.length;u<h;++u){var d=100*Object(Ne["q"])(l[u].offset)+"%",p=l[u].color,f=Object(Ne["p"])(p),g=f.color,m=f.opacity,v={offset:d};v["stop-color"]=g,m<1&&(v["stop-opacity"]=m),c.push(Jw("stop",u+"",v))}var y=Jw(r,"",a,c),b=e_(y),x=i.gradientCache,w=x[b];w||(w=i.zrId+"-g"+i.gradientIdx++,x[b]=w,a.id=w,i.defs[w]=Jw(r,w,a,c)),e[n]=Object(Ne["d"])(w)}function P_(t,e,n,i){var r,o=t.style[n],a=t.getBoundingRect(),l={},c=o.repeat,u="no-repeat"===c,h="repeat-x"===c,d="repeat-y"===c;if(Object(Ne["l"])(o)){var p=o.imageWidth,f=o.imageHeight,g=void 0,m=o.image;if(Object(s["C"])(m)?g=m:g_(m)?g=m.src:m_(m)&&(g=m.toDataURL()),"undefined"===typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";Object(s["b"])(p,v),Object(s["b"])(f,v)}else if(null==p||null==f){var y=function(t,e){if(t){var n=t.elm,i=p||e.width,r=f||e.height;"pattern"===t.tag&&(h?(r=1,i/=a.width):d&&(i=1,r/=a.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},b=ao(g,null,t,(function(t){u||y(C,t),y(r,t)}));b&&b.width&&b.height&&(p=p||b.width,f=f||b.height)}r=Jw("image","img",{href:g,width:p,height:f}),l.width=p,l.height=f}else o.svgElement&&(r=Object(s["d"])(o.svgElement),l.width=o.svgWidth,l.height=o.svgHeight);if(r){var x,w;u?x=w=1:h?(w=1,x=l.width/a.width):d?(x=1,w=l.height/a.height):l.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(l.width=x),null==w||isNaN(w)||(l.height=w);var _=Object(Ne["g"])(o);_&&(l.patternTransform=_);var C=Jw("pattern","",l,[r]),A=e_(C),I=i.patternCache,S=I[A];S||(S=i.zrId+"-p"+i.patternIdx++,I[A]=S,l.id=S,C=i.defs[S]=Jw("pattern",S,l,[r])),e[n]=Object(Ne["d"])(S)}}function j_(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};i[t.id]=o,r[o]=Jw("clipPath",o,a,[S_(t,n)])}e["clip-path"]=Object(Ne["d"])(o)}function L_(t){return document.createTextNode(t)}function D_(t,e,n){t.insertBefore(e,n)}function R_(t,e){t.removeChild(e)}function B_(t,e){t.appendChild(e)}function N_(t){return t.parentNode}function F_(t){return t.nextSibling}function z_(t,e){t.textContent=e}var V_=58,G_=120,H_=Jw("","");function W_(t){return void 0===t}function U_(t){return void 0!==t}function Z_(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function Y_(t,e){var n=t.key===e.key,i=t.tag===e.tag;return i&&n}function X_(t){var e,n=t.children,i=t.tag;if(U_(i)){var r=t.elm=Qw(i);if(Q_(H_,t),Object(s["t"])(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&B_(r,X_(o))}else U_(t.text)&&!Object(s["A"])(t.text)&&B_(r,L_(t.text))}else t.elm=L_(t.text);return t.elm}function q_(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&D_(t,X_(o),e)}}function K_(t,e,n,i){for(;n<=i;++n){var r=e[n];if(null!=r)if(U_(r.tag)){var o=N_(r.elm);R_(o,r.elm)}else R_(t,r.elm)}}function Q_(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n],s=r[n];s!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):n.charCodeAt(0)!==G_?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(qw,n,a):n.charCodeAt(3)===V_?i.setAttributeNS(Kw,n,a):n.charCodeAt(5)===V_?i.setAttributeNS(Xw,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function J_(t,e,n){var i,r,o,a,s=0,l=0,c=e.length-1,u=e[0],h=e[c],d=n.length-1,p=n[0],f=n[d];while(s<=c&&l<=d)null==u?u=e[++s]:null==h?h=e[--c]:null==p?p=n[++l]:null==f?f=n[--d]:Y_(u,p)?($_(u,p),u=e[++s],p=n[++l]):Y_(h,f)?($_(h,f),h=e[--c],f=n[--d]):Y_(u,f)?($_(u,f),D_(t,u.elm,F_(h.elm)),u=e[++s],f=n[--d]):Y_(h,p)?($_(h,p),D_(t,h.elm,u.elm),h=e[--c],p=n[++l]):(W_(i)&&(i=Z_(e,s,c)),r=i[p.key],W_(r)?D_(t,X_(p),u.elm):(o=e[r],o.tag!==p.tag?D_(t,X_(p),u.elm):($_(o,p),e[r]=void 0,D_(t,o.elm,u.elm))),p=n[++l]);(s<=c||l<=d)&&(s>c?(a=null==n[d+1]?null:n[d+1].elm,q_(t,a,n,l,d)):K_(t,e,s,c))}function $_(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Q_(t,e),W_(e.text)?U_(i)&&U_(r)?i!==r&&J_(n,i,r):U_(r)?(U_(t.text)&&z_(n,""),q_(n,null,r,0,r.length-1)):U_(i)?K_(n,i,0,i.length-1):U_(t.text)&&z_(n,""):t.text!==e.text&&(U_(i)&&K_(n,i,0,i.length-1),z_(n,e.text)))}function tC(t,e){if(Y_(t,e))$_(t,e);else{var n=t.elm,i=N_(n);X_(e),null!==i&&(D_(i,e.elm,F_(n)),K_(i,[t],0,0))}return e}var eC=0,nC=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=iC("refreshHover"),this.configLayer=iC("configLayer"),this.storage=e,this._opts=n=Object(s["m"])({},n),this.root=t,this._id="zr"+eC++,this._oldVNode=r_(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=Qw("svg");Q_(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",tC(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return E_(t,i_(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=i_(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress;var o=[],a=this._bgVNode=rC(n,i,this._backgroundColor,r);a&&o.push(a);var l=t.compress?null:this._mainVNode=Jw("g","main",{},[]);this._paintList(e,r,l?l.children:o),l&&o.push(l);var c=Object(s["H"])(Object(s["F"])(r.defs),(function(t){return r.defs[t]}));if(c.length&&o.push(Jw("defs","defs",{},c)),t.animation){var u=n_(r.cssNodes,r.cssAnims,{newline:!0});if(u){var h=Jw("style","stl",{},[],u);o.push(h)}}return r_(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},e_(this.renderToVNode({animation:Object(s["P"])(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(s["P"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,c=0;c<o;c++){var u=t[c];if(!u.invisible){var h=u.__clipPaths,d=h&&h.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0;f--)if(h&&r&&h[f]===r[f])break;for(var g=p-1;g>f;g--)s--,i=a[s-1];for(var m=f+1;m<d;m++){var v={};j_(h[m],v,e);var y=Jw("g","clip-g-"+l++,v,[]);(i?i.children:n).push(y),a[s++]=y,i=y}r=h;var b=E_(u,e);b&&(i?i.children:n).push(b)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=py(i,0,n),e=py(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if(Object(Ne["n"])(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Object(Ne["c"])(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function iC(t){return function(){0}}function rC(t,e,n,i){var r;if(n&&"none"!==n)if(r=Jw("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Object(Ne["k"])(n))O_({fill:n},r.attrs,"fill",i);else if(Object(Ne["n"])(n))P_({style:{fill:n},dirty:s["L"],getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=Object(Ne["p"])(n),a=o.color,l=o.opacity;r.attrs.fill=a,l<1&&(r.attrs["fill-opacity"]=l)}return r}var oC=nC;function aC(t){t.registerPainter("svg",oC)}function sC(t){return null==t?0:t.length||1}function lC(t){return t}var cC=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||lC,this._newKeyGetter=i||lC,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=i[o],s=n[a],l=sC(s);if(l>1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],c=i[s],u=sC(l),h=sC(c);if(u>1&&1===h)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&h>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===h)this._update&&this._update(c,l),i[s]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[s]=null;else if(u>1)for(var d=0;d<u;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=sC(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},t.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[i](t[o],o);if(r||(n[o]=a),e){var s=e[a],l=sC(s);0===l?(e[a]=o,r&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),uC=cC,hC=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function dC(t,e){var n={},i=n.encode={},r=Object(s["f"])(),o=[],a=[],l={};Object(s["k"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),s=n.coordDim;if(s){0;var c=n.coordDimIndex;pC(i,s)[c]=e,n.isExtraCoord||(r.set(s,1),gC(n.type)&&(o[0]=e),pC(l,s)[c]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}Ju.each((function(t,e){var r=pC(i,e),o=n.otherDims[e];null!=o&&!1!==o&&(r[o]=n.name)}))}));var c=[],u={};r.each((function(t,e){var n=i[e];u[e]=n[0],c=c.concat(n)})),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=Object(s["H"])(c,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var h=i.label;h&&h.length&&(o=h.slice());var d=i.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new hC(l,e),n}function pC(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function fC(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function gC(t){return!("ordinal"===t||"time"===t)}var mC=function(){function t(t){this.otherDims={},null!=t&&s["m"](this,t)}return t}(),vC=mC,yC=kr(),bC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},xC=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=CC(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(s["P"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=zd(this.source),n=!AC(t),i="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,c=void 0,u=this.dimensions[a];if(u&&u.storeDimIndex===o)s=e?u.name:null,l=u.type,c=u.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}r.push({property:s,type:l,ordinalMeta:c}),!e||null==s||u&&u.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=bC[l]||"f",c&&(i+=c.uid),i+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:r,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function wC(t){return t instanceof xC}function _C(t){for(var e=Object(s["f"])(),n=0;n<(t||[]).length;n++){var i=t[n],r=Object(s["A"])(i)?i.name:i;null!=r&&null==e.get(r)&&e.set(r,n)}return e}function CC(t){var e=yC(t);return e.dimNameMap||(e.dimNameMap=_C(t.dimensionsDefine))}function AC(t){return t>30}var IC,SC,MC,kC,EC,TC,OC,PC=s["A"],jC=s["H"],LC="undefined"===typeof Int32Array?Array:Int32Array,DC="e\0\0",RC=-1,BC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],NC=["_approximateExtent"],FC=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;wC(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},l=!1,c={},u=0;u<n.length;u++){var h=n[u],d=s["C"](h)?new vC({name:h}):h instanceof vC?h:new vC(h),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};o.push(p),r[p]=d,null!=c[p]&&(l=!0),d.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=u),0===f.itemId&&(this._idDimIdx=u),i&&(d.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var g=this._dimIdxToName=s["f"]();s["k"](o,(function(t){g.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(s["z"](t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof Rp&&(i=t),!i){var o=this.dimensions,a=Od(t)||s["u"](t)?new Vd(t,o.length):t;i=new Rp;var l=jC(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(a,l,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=dC(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&OC(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==ih&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===$u;if(s&&!i.pure)for(var l=[],c=t;c<e;c++){var u=i.getItem(c,l);if(!this.hasItemOption&&ur(u)&&(this.hasItemOption=!0),u){var h=u.name;null==r[c]&&null!=h&&(r[c]=xr(h,null));var d=u.id;null==o[c]&&null!=d&&(o[c]=xr(d,null))}}if(this._shouldMakeIdFromName())for(c=t;c<e;c++)OC(this,c);IC(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){PC(t)?s["m"](this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=MC(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return SC(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return s["t"](t)?i.getValues(jC(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var i=n[e];return null==i||isNaN(i)?RC:i},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){s["w"](t)&&(n=e,e=t,t=[]);var i=n||this,r=jC(kC(t),this._getStoreDimIndex,this);this._store.each(r,i?s["c"](e,i):e)},t.prototype.filterSelf=function(t,e,n){s["w"](t)&&(n=e,e=t,t=[]);var i=n||this,r=jC(kC(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?s["c"](e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=s["F"](t),r=[];return s["k"](i,(function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){s["w"](t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=jC(kC(t),this._getStoreDimIndex,this),a=TC(this);return a._store=this._store.map(o,r?s["c"](e,r):e),a},t.prototype.modify=function(t,e,n,i){var r=n||i||this;var o=jC(kC(t),this._getStoreDimIndex,this);this._store.modify(o,r?s["c"](e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=TC(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=TC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Ic(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new uC(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return SC(t,e)}),(function(t){return SC(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},PC(t)?s["m"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),s["t"](r)?r=r.slice():PC(r)&&(r=s["m"]({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,PC(e)?s["m"](i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){PC(t)?s["m"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?s["m"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;As(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){s["k"](this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:jC(this.dimensions,this._getDimInfo,this),this.hostModel)),EC(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];s["w"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(s["S"](arguments)))})},t.internalField=function(){IC=function(t){var e=t._invertedIndicesMap;s["k"](e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new LC(o.categories.length);for(var s=0;s<n.length;s++)n[s]=RC;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},MC=function(t,e,n){return xr(t._getCategory(e,n),null)},SC=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=MC(t,t._idDimIdx,e)),null==n&&(n=DC+e),n},kC=function(t){return s["t"](t)||(t=null!=t?[t]:[]),t},TC=function(e){var n=new t(e._schema?e._schema:jC(e.dimensions,e._getDimInfo,e),e.hostModel);return EC(n,e),n},EC=function(t,e){s["k"](BC.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,s["k"](NC,(function(n){t[n]=s["d"](e[n])})),t._calculationInfo=s["m"]({},e._calculationInfo)},OC=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=MC(t,r,e)),null==s&&null!=o&&(i[e]=s=MC(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,c=l[a]=(l[a]||0)+1;s=a,c>1&&(s+="__ec__"+c),i[e]=s}}}(),t}(),zC=FC;function VC(t,e){Od(t)||(t=jd(t)),e=e||{};var n=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Object(s["f"])(),o=[],a=HC(t,n,i,e.dimensionsCount),l=e.canOmitUnusedDimensions&&AC(a),c=i===t.dimensionsDefine,u=c?CC(t):_C(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var d=Object(s["f"])(h),p=new kp(a),f=0;f<p.length;f++)p[f]=-1;function g(t){var e=p[t];if(e<0){var n=i[t],r=Object(s["A"])(n)?n:{name:n},a=new vC,l=r.name;null!=l&&null!=u.get(l)&&(a.name=a.displayName=l),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var c=o.length;return p[t]=c,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!l)for(f=0;f<a;f++)g(f);d.each((function(t,e){var n=ar(t).slice();if(1===n.length&&!Object(s["C"])(n[0])&&n[0]<0)d.set(e,!1);else{var i=d.set(e,[]);Object(s["k"])(n,(function(t,n){var r=Object(s["C"])(t)?u.get(t):t;null!=r&&r<a&&(i[n]=r,v(g(r),e,n))}))}}));var m=0;function v(t,e,n){null!=Ju.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,r.set(e,!0))}Object(s["k"])(n,(function(t){var e,n,i,r;if(Object(s["C"])(t))e=t,r={};else{r=t,e=r.name;var o=r.ordinalMeta;r.ordinalMeta=null,r=Object(s["m"])({},r),r.ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var l=d.get(e);if(!1!==l){if(l=ar(l),!l.length)for(var u=0;u<(n&&n.length||1);u++){while(m<a&&null!=g(m).coordDim)m++;m<a&&l.push(m++)}Object(s["k"])(l,(function(t,o){var a=g(t);if(c&&null!=r.type&&(a.type=r.type),v(Object(s["i"])(a,r),e,o),null==a.name&&n){var l=n[o];!Object(s["A"])(l)&&(l={name:l}),a.name=a.displayName=l.name,a.defaultTooltip=l.defaultTooltip}i&&Object(s["i"])(a.otherDims,i)}))}}));var y=e.generateCoord,b=e.generateCoordCount,x=null!=b;b=y?b||1:0;var w=y||"value";function _(t){null==t.name&&(t.name=t.coordDim)}if(l)Object(s["k"])(o,(function(t){_(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var C=0;C<a;C++){var A=g(C),I=A.coordDim;null==I&&(A.coordDim=WC(w,r,x),A.coordDimIndex=0,(!y||b<=0)&&(A.isExtraCoord=!0),b--),_(A),null!=A.type||fh(t,C)!==sh.Must&&(!A.isExtraCoord||null==A.otherDims.itemName&&null==A.otherDims.seriesName)||(A.type="ordinal")}return GC(o),new xC({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:l})}function GC(t){for(var e=Object(s["f"])(),n=0;n<t.length;n++){var i=t[n],r=i.name,o=e.get(r)||0;o>0&&(i.name=r+(o-1)),o++,e.set(r,o)}}function HC(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return Object(s["k"])(e,(function(t){var e;Object(s["A"])(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}function WC(t,e,n){if(n||e.hasKey(t)){var i=0;while(e.hasKey(t+i))i++;t+=i}return e.set(t,!0),t}var UC=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(s["f"])(),this.categoryAxisMap=Object(s["f"])(),this.coordSysName=t}return t}();function ZC(t){var e=t.get("coordinateSystem"),n=new UC(e),i=YC[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var YC={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",Pr).models[0],o=t.getReferringComponents("yAxis",Pr).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),XC(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),XC(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",Pr).models[0];e.coordSysDims=["single"],n.set("single",r),XC(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",Pr).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),XC(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),XC(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(s["k"])(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),XC(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function XC(t){return"category"===t.get("type")}function qC(t,e,n){n=n||{};var i,r,o,a=n.byIndex,l=n.stackedCoordDimension;KC(e)?i=e:(r=e.schema,i=r.dimensions,o=e.store);var c,u,h,d,p=!(!t||!t.get("stack"));if(Object(s["k"])(i,(function(t,e){Object(s["C"])(t)&&(i[e]=t={name:t}),p&&!t.isExtraCoord&&(a||c||!t.ordinalMeta||(c=t),u||"ordinal"===t.type||"time"===t.type||l&&l!==t.coordDim||(u=t))})),!u||a||c||(a=!0),u){h="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var f=u.coordDim,g=u.type,m=0;Object(s["k"])(i,(function(t){t.coordDim===f&&m++}));var v={name:h,coordDim:f,coordDimIndex:m,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,g),y.storeDimIndex=o.ensureCalculationDimension(h,g)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:h}}function KC(t){return!wC(t.schema)}function QC(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function JC(t,e){return QC(t,e)?t.getCalculationInfo("stackResultDimension"):e}function $C(t,e){var n,i=t.get("coordinateSystem"),r=Uh.get(i);return e&&e.coordSysDims&&(n=s["H"](e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=fC(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function tA(t,e,n){var i,r;return n&&s["k"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}function eA(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=jd(t)):(i=r.getSource(),o=i.sourceFormat===$u);var a=ZC(e),l=$C(e,a),c=n.useEncodeDefaulter,u=s["w"](c)?c:c?s["h"](uh,l,e):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},d=VC(i,h),p=tA(d.dimensions,n.createInvertedIndices,a),f=o?null:r.getSharedDataStore(d),g=qC(e,{schema:d,store:f}),m=new zC(d,e);m.setCalculationInfo(g);var v=null!=p&&nA(i)?function(t,e,n,i){return i===p?n:this.defaultDimValueGetter(t,e,n,i)}:null;return m.hasItemOption=!1,m.initData(o?i:f,null,v),m}function nA(t){if(t.sourceFormat===$u){var e=iA(t.data||[]);return!s["t"](cr(e))}}function iA(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var rA=eA,oA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.getInitialData=function(t){return rA(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new _i,n=ry("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=ry(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(_f),aA=oA;function sA(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Jd(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(Jd(t,e,n[a]));return o.join(" ")}}function lA(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(s["t"])(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var cA=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return o(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=ry(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=uA,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ll(this.childAt(0))},e.prototype.downplay=function(){cl(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,c=r&&r.disableAnimation;if(l){var u=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:s[0]/2,scaleY:s[1]/2};c?h.attr(d):Gl(h,d,a,n),Xl(h)}if(this._updateCommon(t,n,s,i,r),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Hl(h,d,a,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,l,c,u,h,d,p,f,g=this.childAt(0),m=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,l=i.selectItemStyle,c=i.focus,u=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,f=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),l=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),c=y.get("focus"),u=y.get("blurScope"),h=y.get("disabled"),d=tc(v),p=y.getShallow("scale"),f=v.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(b||0)*Math.PI/180||0);var x=ay(t.getItemVisual(e,"symbolOffset"),n);x&&(g.x=x[0],g.y=x[1]),f&&g.attr("cursor",f);var w=t.getItemVisual(e,"style"),_=w.fill;if(g instanceof qa){var C=g.style;g.useStyle(Object(s["m"])({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else g.__isEmptyBrush?g.useStyle(Object(s["m"])({},w)):g.useStyle(w),g.style.decal=null,g.setColor(_,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var A=t.getItemVisual(e,"liftZ"),I=this._z2;null!=A?null==I&&(this._z2=g.z2,g.z2+=A):null!=I&&(g.z2=I,this._z2=null);var S=r&&r.useNameLabel;function M(e){return S?t.getName(e):sA(t,e)}$l(g,d,{labelFetcher:m,labelDataIndex:e,defaultText:M,inheritColor:_,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var k=g.ensureState("emphasis");k.style=o,g.ensureState("select").style=l,g.ensureState("blur").style=a;var E=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;k.scaleX=this._sizeX*E,k.scaleY=this._sizeY*E,this.setSymbolScale(1),Ml(this,c,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Cs(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Ul(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ul(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return oy(t.getItemVisual(e,"symbolSize"))},e}(_i);function uA(t,e){this.parent.drift(t,e)}var hA=cA;function dA(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function pA(t){return null==t||Object(s["A"])(t)||(t={isIgnore:t}),t||{}}function fA(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:tc(e),cursorStyle:e.get("cursor")}}var gA=function(){function t(t){this.group=new _i,this._SymbolCtor=t||hA}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=pA(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=fA(t),l={disableAnimation:a},c=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=c(i);if(dA(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(u,h){var d=r.getItemGraphicEl(h),p=c(u);if(dA(t,p,u,e)){var f=t.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new o(t,u,s,l),d.setPosition(p);else{d.updateData(t,u,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):Gl(d,m,i)}n.add(d),t.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=c,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=fA(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=pA(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(dA(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){Rm(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),mA=gA;function vA(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=yA(r,n),a=i.dim,l=r.dim,c=e.mapDimension(l),u=e.mapDimension(a),h="x"===l||"radius"===l?1:0,d=Object(s["H"])(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,f=e.getCalculationInfo("stackResultDimension");return QC(e,d[0])&&(p=!0,d[0]=f),QC(e,d[1])&&(p=!0,d[1]=f),{dataDimsForPoint:d,valueStart:o,valueAxisDim:l,baseAxisDim:a,stacked:!!p,valueDim:c,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function yA(t,e){var n=0,i=t.scale.getExtent();return"start"===e?n=i[0]:"end"===e?n=i[1]:Object(s["z"])(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function bA(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var xA="undefined"!==typeof Float32Array,wA=xA?Float32Array:Array;function _A(t){return Object(s["t"])(t)?xA?new Float32Array(t):t:new wA(t)}function CA(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function AA(t,e,n,i,r,o,a,s){for(var l=CA(t,e),c=[],u=[],h=[],d=[],p=[],f=[],g=[],m=vA(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],b=0;b<l.length;b++){var x=l[b],w=!0,_=void 0,C=void 0;switch(x.cmd){case"=":_=2*x.idx,C=2*x.idx1;var A=v[_],I=v[_+1],S=y[C],M=y[C+1];(isNaN(A)||isNaN(I))&&(A=S,I=M),c.push(A,I),u.push(S,M),h.push(n[_],n[_+1]),d.push(i[C],i[C+1]),g.push(e.getRawIndex(x.idx1));break;case"+":var k=x.idx,E=m.dataDimsForPoint,T=r.dataToPoint([e.get(E[0],k),e.get(E[1],k)]);C=2*k,c.push(T[0],T[1]),u.push(y[C],y[C+1]);var O=bA(m,r,e,k);h.push(O[0],O[1]),d.push(i[C],i[C+1]),g.push(e.getRawIndex(k));break;case"-":w=!1}w&&(p.push(x),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var P=c.length,j=_A(P),L=_A(P),D=_A(P),R=_A(P),B=[];for(b=0;b<f.length;b++){var N=f[b],F=2*b,z=2*N;j[F]=c[z],j[F+1]=c[z+1],L[F]=u[z],L[F+1]=u[z+1],D[F]=h[z],D[F+1]=h[z+1],R[F]=d[z],R[F+1]=d[z+1],B[b]=p[N]}return{current:j,next:L,stackedOnCurrent:D,stackedOnNext:R,status:B}}var IA=Math.min,SA=Math.max;function MA(t,e){return isNaN(t)||isNaN(e)}function kA(t,e,n,i,r,o,a,s,l){for(var c,u,h,d,p,f,g=n,m=0;m<i;m++){var v=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(MA(v,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var b=v-c,x=y-u;if(b*b+x*x<.5){g+=o;continue}if(a>0){var w=g+o,_=e[2*w],C=e[2*w+1];while(_===v&&C===y&&m<i)m++,w+=o,g+=o,_=e[2*w],C=e[2*w+1],v=e[2*g],y=e[2*g+1],b=v-c,x=y-u;var A=m+1;if(l)while(MA(_,C)&&A<i)A++,w+=o,_=e[2*w],C=e[2*w+1];var I=.5,S=0,M=0,k=void 0,E=void 0;if(A>=i||MA(_,C))p=v,f=y;else{S=_-c,M=C-u;var T=v-c,O=_-v,P=y-u,j=C-y,L=void 0,D=void 0;if("x"===s){L=Math.abs(T),D=Math.abs(O);var R=S>0?1:-1;p=v-R*L*a,f=y,k=v+R*D*a,E=y}else if("y"===s){L=Math.abs(P),D=Math.abs(j);var B=M>0?1:-1;p=v,f=y-B*L*a,k=v,E=y+B*D*a}else L=Math.sqrt(T*T+P*P),D=Math.sqrt(O*O+j*j),I=D/(D+L),p=v-S*a*(1-I),f=y-M*a*(1-I),k=v+S*a*I,E=y+M*a*I,k=IA(k,SA(_,v)),E=IA(E,SA(C,y)),k=SA(k,IA(_,v)),E=SA(E,IA(C,y)),S=k-v,M=E-y,p=v-S*L/D,f=y-M*L/D,p=IA(p,SA(c,v)),f=IA(f,SA(u,y)),p=SA(p,IA(c,v)),f=SA(f,IA(u,y)),S=v-p,M=y-f,k=v+S*D/L,E=y+M*D/L}t.bezierCurveTo(h,d,p,f,v,y),h=k,d=E}else t.lineTo(v,y)}c=v,u=y,g+=o}return m}var EA=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),TA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new EA},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0;r--)if(!MA(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!MA(n[2*i],n[2*i+1]))break}while(i<r)i+=kA(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=ga.CMD,s="x"===e,l=[],c=0;c<o.length;){var u=o[c++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,m=void 0,v=void 0;switch(u){case a.M:n=o[c++],i=o[c++];break;case a.L:if(h=o[c++],d=o[c++],v=s?(t-n)/(h-n):(t-i)/(d-i),v<=1&&v>=0){var y=s?(d-i)*v+i:(h-n)*v+n;return s?[t,y]:[y,t]}n=h,i=d;break;case a.C:h=o[c++],d=o[c++],p=o[c++],f=o[c++],g=o[c++],m=o[c++];var b=s?we(n,h,p,g,t,l):we(i,d,f,m,t,l);if(b>0)for(var x=0;x<b;x++){var w=l[x];if(w<=1&&w>=0){y=s?be(i,d,f,m,w):be(n,h,p,g,w);return s?[t,y]:[y,t]}}n=g,i=m;break}}},e}(Va),OA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(EA),PA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return o(e,t),e.prototype.getDefaultShape=function(){return new OA},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!MA(n[2*o-2],n[2*o-1]))break;for(;r<o;r++)if(!MA(n[2*r],n[2*r+1]))break}while(r<o){var s=kA(t,n,r,o,o,1,e.smooth,a,e.connectNulls);kA(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(Va);function jA(t,e,n,i,r){var o=t.getArea(),a=o.x,l=o.y,c=o.width,u=o.height,h=n.get(["lineStyle","width"])||2;a-=h/2,l-=h/2,c+=h,u+=h,a=Math.floor(a),c=Math.round(c);var d=new rs({shape:{x:a,y:l,width:c,height:u}});if(e){var p=t.getBaseAxis(),f=p.isHorizontal(),g=p.inverse;f?(g&&(d.shape.x+=c),d.shape.width=0):(g||(d.shape.y+=u),d.shape.height=0);var m=Object(s["w"])(r)?function(t){r(t,d)}:null;Hl(d,{shape:{width:c,height:u,x:a,y:l}},n,null,i,m)}return d}function LA(t,e,n){var i=t.getArea(),r=Di(i.r0,1),o=Di(i.r,1),a=new yg({shape:{cx:Di(t.cx,1),cy:Di(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,Hl(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function DA(t,e,n,i,r){return t?"polar"===t.type?LA(t,e,n):"cartesian2d"===t.type?jA(t,e,n,i,r):null:null}function RA(t,e){return t.type===e}function BA(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function NA(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function FA(t,e){var n=NA(t),i=n[0],r=n[1],o=NA(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function zA(t){return s["z"](t)?t:t?.5:0}function VA(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=_A(2*i),o=0;o<i;o++){var a=bA(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function GA(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],c=[],u=[],h=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(u[0]=t[s+2],u[1]=t[s+3],c[0]=t[s],c[1]=t[s+1],a.push(c[0],c[1]),n){case"end":l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1]);break;case"middle":var d=(c[o]+u[o])/2,p=[];l[o]=p[o]=d,l[1-o]=c[1-o],p[1-o]=u[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function HA(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i),o=Object(Be["b"])(r,[t.color,e.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=t[s],c=l.coord;if(c<0)n=l;else{if(c>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function WA(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var l=t.getDimensionInfo(i[a].dimension);if(r=l&&l.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var c=e.getAxis(r),u=s["H"](o.stops,(function(t){return{coord:c.toGlobalCoord(c.dataToCoord(t.value)),color:t.color}})),h=u.length,d=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),d.reverse());var p=HA(u,"x"===r?n.getWidth():n.getHeight()),f=p.length;if(!f&&h)return u[0].coord<0?d[1]?d[1]:u[h-1].color:d[0]?d[0]:u[0].color;var g=10,m=p[0].coord-g,v=p[f-1].coord+g,y=v-m;if(y<.001)return"transparent";s["k"](p,(function(t){t.offset=(t.coord-m)/y})),p.push({offset:f?p[f-1].offset:.5,color:d[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:d[0]||"transparent"});var b=new Yg(0,0,0,0,p,!0);return b[r]=m,b[r+"2"]=v,b}}}function UA(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!ZA(o,e))){var a=e.mapDimension(o.dim),l={};return s["k"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);l[e]=1})),function(t){return!l.hasOwnProperty(e.get(a,t))}}}}function ZA(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*hA.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}function YA(t,e){return isNaN(t)||isNaN(e)}function XA(t){for(var e=t.length/2;e>0;e--)if(!YA(t[2*e-2],t[2*e-1]))break;return e-1}function qA(t,e){return[t[2*e],t[2*e+1]]}function KA(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,c=0;c<o;c++)if(r=t[2*c+a],!isNaN(r)&&!isNaN(t[2*c+1-a]))if(0!==c){if(i<=e&&r>=e||i>=e&&r<=e){l=c;break}s=c,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}function QA(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Ps.length;e++)if(t.get([Ps[e],"endLabel","show"]))return!0;return!1}function JA(t,e,n,i){if(RA(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=QA(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,c=e.getBaseAxis().isHorizontal(),u=jA(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var h=u.shape,d=Math.max(h.width,h.height);c?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,u),u}return LA(e,n,i)}function $A(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}var tI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(){var t=new _i,e=new mA;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),l=t.getModel("lineStyle"),c=t.getModel("areaStyle"),u=a.getLayout("points")||[],h="polar"===r.type,d=this._coordSys,p=this._symbolDraw,f=this._polyline,g=this._polygon,m=this._lineGroup,v=!e.ssr&&t.isAnimationEnabled(),y=!c.isEmpty(),b=c.get("origin"),x=vA(r,a,b),w=y&&VA(r,a,x),_=t.get("showSymbol"),C=t.get("connectNulls"),A=_&&!h&&UA(t,a,r),I=this._data;I&&I.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),I.setItemGraphicEl(e,null))})),_||p.remove(),o.add(m);var S,M=!h&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(S=r.getArea(),null!=S.width?(S.x-=.1,S.y-=.1,S.width+=.2,S.height+=.2):S.r0&&(S.r0-=.5,S.r+=.5)),this._clipShapeForSymbol=S;var k=WA(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(f&&d.type===r.type&&M===this._step){y&&!g?g=this._newPolygon(u,w):g&&!y&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,Tu(k));var E=m.getClipPath();if(E){var T=JA(this,r,!1,t);Hl(E,{shape:T.shape},t)}else m.setClipPath(JA(this,r,!0,t));_&&p.updateData(a,{isIgnore:A,clipShape:S,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),BA(this._stackedOnPoints,w)&&BA(this._points,u)||(v?this._doUpdateAnimation(a,w,r,n,M,b,C):(M&&(u=GA(u,r,M,C),w&&(w=GA(w,r,M,C))),f.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:w})))}else _&&p.updateData(a,{isIgnore:A,clipShape:S,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,r,S),M&&(u=GA(u,r,M,C),w&&(w=GA(w,r,M,C))),f=this._newPolyline(u),y?g=this._newPolygon(u,w):g&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,Tu(k)),m.setClipPath(JA(this,r,!0,t));var O=t.getModel("emphasis"),P=O.get("focus"),j=O.get("blurScope"),L=O.get("disabled");if(f.useStyle(s["i"](l.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Ol(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var D=f.getState("emphasis").style;D.lineWidth=+f.style.lineWidth+1}Cs(f).seriesIndex=t.seriesIndex,Ml(f,P,j,L);var R=zA(t.get("smooth")),B=t.get("smoothMonotone");if(f.setShape({smooth:R,smoothMonotone:B,connectNulls:C}),g){var N=a.getCalculationInfo("stackedOnSeries"),F=0;g.useStyle(s["i"](c.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(F=zA(N.get("smooth"))),g.setShape({smooth:R,stackedOnSmooth:F,smoothMonotone:B,connectNulls:C}),Ol(g,t,"areaStyle"),Cs(g).seriesIndex=t.seriesIndex,Ml(g,P,j,L)}var z=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=w,this._points=u,this._step=M,this._valueOrigin=b,t.get("triggerLineEvent")&&(this.packEventData(t,f),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,e){Cs(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Mr(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],c=a[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=t.get("zlevel")||0,h=t.get("z")||0;s=new hA(r,o),s.x=l,s.y=c,s.setZ(u,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Um.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Mr(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Um.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;$s(this._polyline,t),e&&$s(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new TA({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new PA({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var l=t.hostModel,c=l.get("animationDuration");s["w"](c)&&(c=c(null));var u=l.get("animationDelay")||0,h=s["w"](u)?u(null):u;t.eachItemGraphicEl((function(t,o){var l=t;if(l){var d=[t.x,t.y],p=void 0,f=void 0,g=void 0;if(n)if(r){var m=n,v=e.pointToCoord(d);i?(p=m.startAngle,f=m.endAngle,g=-v[1]/180*Math.PI):(p=m.r0,f=m.r,g=v[0])}else{var y=n;i?(p=y.x,f=y.x+y.width,g=t.x):(p=y.y+y.height,f=y.y,g=t.y)}var b=f===p?0:(g-p)/(f-p);a&&(b=1-b);var x=s["w"](u)?u(o):c*b+h,w=l.getSymbolPath(),_=w.getTextContent();l.attr({scaleX:0,scaleY:0}),l.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:x}),w.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(QA(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new _s({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=XA(a);l>=0&&($l(o,tc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?lA(r,n):sA(r,t)},enableTextSetter:!0},$A(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),w=g?"x":"y",_=KA(c,y,w),C=_.range,A=C[1]-C[0],I=void 0;if(A>=1){if(A>1&&!h){var S=qA(c,C[0]);s.attr({x:S[0]+b,y:S[1]+x}),r&&(I=u.getRawValue(C[0]))}else{S=l.getPointOn(y,w);S&&s.attr({x:S[0]+b,y:S[1]+x});var M=u.getRawValue(C[0]),k=u.getRawValue(C[1]);r&&(I=Fr(n,d,M,k,_.t))}i.lastFrameIndex=C[0]}else{var E=1===t||i.lastFrameIndex>0?C[0]:0;S=qA(c,E);r&&(I=u.getRawValue(E)),s.attr({x:S[0]+b,y:S[1]+x})}if(r){var T=uc(s);"function"===typeof T.setLabelText&&T.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,c=t.hostModel,u=AA(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=u.current,d=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(h=GA(u.current,n,r,a),d=GA(u.stackedOnCurrent,n,r,a),p=GA(u.next,n,r,a),f=GA(u.stackedOnNext,n,r,a)),FA(h,p)>3e3||l&&FA(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=u.current,s.shape.points=h;var g={shape:{points:p}};u.current!==h&&(g.shape.__points=u.next),s.stopAnimation(),Gl(s,g,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),Gl(l,{shape:{stackedOnPoints:f}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=u.status,y=0;y<v.length;y++){var b=v[y].cmd;if("="===b){var x=t.getItemGraphicEl(v[y].idx1);x&&m.push({el:x,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,i=2*m[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Um),eI=tI;function nI(t,e){return{seriesType:t,plan:If(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=Object(s["H"])(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),l=a.length,c=n.getCalculationInfo("stackResultDimension");QC(n,a[0])&&(a[0]=c),QC(n,a[1])&&(a[1]=c);var u=n.getStore(),h=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return l&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&_A(n*l),a=[],s=[],c=t.start,p=0;c<t.end;c++){var f=void 0;if(1===l){var g=u.get(h,c);f=i.dataToPoint(g,null,s)}else a[0]=u.get(h,c),a[1]=u.get(d,c),f=i.dataToPoint(a,null,s);o?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(c,f.slice())}o&&e.setLayout("points",r)}}}}}}var iI={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},rI=function(t){return Math.round(t.length/2)};function oI(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var l=o.getBaseAxis(),c=o.getOtherAxis(l),u=l.getExtent(),h=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(h||1),p=Math.round(a/d);if(isFinite(p)&&p>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(c.dim),1/p));var f=void 0;Object(s["C"])(r)?f=iI[r]:Object(s["w"])(r)&&(f=r),f&&t.setData(i.downSample(i.mapDimension(c.dim),1/p,f,rI))}}}}}function aI(t){t.registerChartView(eI),t.registerSeriesModel(aA),t.registerLayout(nI("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,oI("line"))}var sI="__ec_stack_";function lI(t){return t.get("stack")||sI+t.seriesIndex}function cI(t){return t.dim+t.index}function uI(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<t.count;o++)e.push(Object(s["i"])({bandWidth:r,axisKey:i,stackId:sI+o},t));var a=fI(e),l=[];for(o=0;o<t.count;o++){var c=a[i][sI+o];c.offsetCenter=c.offset+c.width/2,l.push(c)}return l}}function hI(t,e){var n=[];return e.eachSeriesByType(t,(function(t){yI(t)&&n.push(t)})),n}function dI(t){var e={};Object(s["k"])(t,(function(t){var n=t.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=t.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,c=s.count();l<c;++l){var u=s.get(a,l);e[o]?e[o].push(u):e[o]=[u]}}));var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(r){r.sort((function(t,e){return t-e}));for(var o=null,a=1;a<r.length;++a){var l=r[a]-r[a-1];l>0&&(o=null===o?l:Math.min(o,l))}n[i]=o}}return n}function pI(t){var e=dI(t),n=[];return Object(s["k"])(t,(function(t){var i,r=t.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],c=Math.abs(a[1]-a[0]),u=o.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=l?c/h*l:c}else{var d=t.getData();i=Math.abs(a[1]-a[0])/d.count()}var p=Li(t.get("barWidth"),i),f=Li(t.get("barMaxWidth"),i),g=Li(t.get("barMinWidth")||(bI(t)?.5:1),i),m=t.get("barGap"),v=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:cI(o),stackId:lI(t)})})),fI(n)}function fI(t){var e={};Object(s["k"])(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=t.barMaxWidth;c&&(a[s].maxWidth=c);var u=t.barMinWidth;u&&(a[s].minWidth=u);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Object(s["k"])(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(s["F"])(i).length;o=Math.max(35-4*a,15)+"%"}var l=Li(o,r),c=Li(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,d=(u-l)/(h+(h-1)*c);d=Math.max(d,0),Object(s["k"])(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+c*i,h--}else{var i=d;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==d&&(t.width=i,u-=i+c*i,h--)}})),d=(u-l)/(h+(h-1)*c),d=Math.max(d,0);var p,f=0;Object(s["k"])(i,(function(t,e){t.width||(t.width=d),p=t,f+=t.width*(1+c)})),p&&(f-=p.width*c);var g=-f/2;Object(s["k"])(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:g,width:t.width},g+=t.width*(1+c)}))})),n}function gI(t,e,n){if(t&&e){var i=t[cI(e)];return null!=i&&null!=n?i[lI(n)]:i}}function mI(t,e){var n=hI(t,e),i=pI(n);Object(s["k"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),o=lI(t),a=i[cI(r)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function vI(t){return{seriesType:t,plan:If(),reset:function(t){if(yI(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),c=e.getCalculationInfo("stackResultDimension"),u=QC(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=r.isHorizontal(),d=xI(i,r),p=bI(t),f=t.get("barMinHeight")||0,g=c&&e.getDimensionIndex(c),m=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){var i,r=t.count,l=p&&_A(3*r),c=p&&s&&_A(3*r),y=p&&_A(r),b=n.master.getRect(),x=h?b.width:b.height,w=e.getStore(),_=0;while(null!=(i=t.next())){var C=w.get(u?g:o,i),A=w.get(a,i),I=d,S=void 0;u&&(S=+C-w.get(o,i));var M=void 0,k=void 0,E=void 0,T=void 0;if(h){var O=n.dataToPoint([C,A]);if(u){var P=n.dataToPoint([S,A]);I=P[0]}M=I,k=O[1]+v,E=O[0]-I,T=m,Math.abs(E)<f&&(E=(E<0?-1:1)*f)}else{O=n.dataToPoint([A,C]);if(u){P=n.dataToPoint([A,S]);I=P[1]}M=O[0]+v,k=I,E=m,T=O[1]-I,Math.abs(T)<f&&(T=(T<=0?-1:1)*f)}p?(l[_]=M,l[_+1]=k,l[_+2]=h?E:T,c&&(c[_]=h?b.x:M,c[_+1]=h?k:b.y,c[_+2]=x),y[i]=i):e.setItemLayout(i,{x:M,y:k,width:E,height:T}),_+=3}p&&e.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:c,valueAxisHorizontal:h})}}}}}}function yI(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function bI(t){return t.pipelineContext&&t.pipelineContext.large}function xI(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var wI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.getInitialData=function(t,e){return rA(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)Object(s["k"])(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=r[n],s="x1"===e[n]||"y1"===e[n];if(s&&(a+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[s?1:0]));for(var l=void 0,c=void 0,u=1,h=0;h<i.length;h++){var d=i[h].coord,p=h===i.length-1?i[h-1].tickValue+u:i[h].tickValue;if(p===a){c=d;break}if(p<a)l=d;else if(null!=l&&p>a){c=(d+l)/2;break}1===h&&(u=p-i[0].tickValue)}null==c&&(l?l&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=t.toGlobalCoord(c)}}));else{var a=this.getData(),l=a.getLayout("offset"),c=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=l+c/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(_f);_f.registerClass(wI);var _I=wI,CI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.getInitialData=function(){return rA(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Tc(_I.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(_I),AI=CI,II=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),SI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return o(e,t),e.prototype.getDefaultShape=function(){return new II},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,c=e.endAngle,u=e.clockwise,h=2*Math.PI,d=u?c-l<h:l-c<h;d||(l=c-(u?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(c),m=Math.sin(c);d?(t.moveTo(p*r+n,f*r+i),t.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!u)):t.moveTo(p*o+n,f*o+i),t.arc(n,i,o,l,c,!u),t.arc(g*s+n,m*s+i,a,c-2*Math.PI,c-Math.PI,!u),0!==r&&t.arc(n,i,r,c,l,u)},e}(Va),MI=SI;function kI(t,e){e=e||{};var n=e.isRoundCap;return function(e,i,r){var o=i.position;if(!o||o instanceof Array)return ai(e,i,r);var a=t(o),s=null!=i.distance?i.distance:5,l=this.shape,c=l.cx,u=l.cy,h=l.r,d=l.r0,p=(h+d)/2,f=l.startAngle,g=l.endAngle,m=(f+g)/2,v=n?Math.abs(h-d)/2:0,y=Math.cos,b=Math.sin,x=c+h*y(f),w=u+h*b(f),_="left",C="top";switch(a){case"startArc":x=c+(d-s)*y(m),w=u+(d-s)*b(m),_="center",C="top";break;case"insideStartArc":x=c+(d+s)*y(m),w=u+(d+s)*b(m),_="center",C="bottom";break;case"startAngle":x=c+p*y(f)+TI(f,s+v,!1),w=u+p*b(f)+OI(f,s+v,!1),_="right",C="middle";break;case"insideStartAngle":x=c+p*y(f)+TI(f,-s+v,!1),w=u+p*b(f)+OI(f,-s+v,!1),_="left",C="middle";break;case"middle":x=c+p*y(m),w=u+p*b(m),_="center",C="middle";break;case"endArc":x=c+(h+s)*y(m),w=u+(h+s)*b(m),_="center",C="bottom";break;case"insideEndArc":x=c+(h-s)*y(m),w=u+(h-s)*b(m),_="center",C="top";break;case"endAngle":x=c+p*y(g)+TI(g,s+v,!0),w=u+p*b(g)+OI(g,s+v,!0),_="left",C="middle";break;case"insideEndAngle":x=c+p*y(g)+TI(g,-s+v,!0),w=u+p*b(g)+OI(g,-s+v,!0),_="right",C="middle";break;default:return ai(e,i,r)}return e=e||{},e.x=x,e.y=w,e.align=_,e.verticalAlign=C,e}}function EI(t,e,n,i){if(Object(s["z"])(i))t.setTextConfig({rotation:i});else if(Object(s["t"])(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,l=o.clockwise?o.endAngle:o.startAngle,c=(a+l)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=c;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=l;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}function TI(t,e,n){return e*Math.sin(t)*(n?-1:1)}function OI(t,e,n){return e*Math.cos(t)*(n?1:-1)}function PI(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(s["t"])(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(s["H"])(i,(function(t){return oi(t,r)}))}}var jI=Math.max,LI=Math.min;function DI(t,e){var n=t.getArea&&t.getArea();if(RA(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var RI=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return o(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Rm(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?r=c.isHorizontal():"polar"===l.type&&(r="angle"===c.dim);var u=t.isAnimationEnabled()?t:null,h=FI(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,p=DI(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&"changeAxisOrder"===i.type;function _(t){var e=UI[l.type](a,t),n=nS(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=UI[l.type](a,e,n);if(g&&_(e),a.hasValue(e)&&WI[l.type](i)){var s=!1;d&&(s=BI[l.type](p,i));var m=NI[l.type](t,a,e,i,r,u,c.model,!1,f);h&&(m.forceLabelAnimation=!0),XI(m,a,e,n,i,t,r,"polar"===l.type),x?m.attr({shape:i}):h?zI(h,u,m,i,e,r,!1,!1):Hl(m,{shape:i},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),C=UI[l.type](a,e,i);if(g){var A=void 0;0===b.length?A=_(n):(A=b[n],A.useStyle(m.getItemStyle()),"cartesian2d"===l.type?A.setShape("r",v):A.setShape("cornerRadius",v),y[e]=A);var I=UI[l.type](a,e),S=eS(r,I,l);Gl(A,{shape:S},u,e)}var M=s.getItemGraphicEl(n);if(a.hasValue(e)&&WI[l.type](C)){var k=!1;if(d&&(k=BI[l.type](p,C),k&&o.remove(M)),M?Xl(M):M=NI[l.type](t,a,e,C,r,u,c.model,!!M,f),h&&(M.forceLabelAnimation=!0),w){var E=M.getTextContent();if(E){var T=uc(E);null!=T.prevValue&&(T.prevValue=T.value)}}else XI(M,a,e,i,C,t,r,"polar"===l.type);x?M.attr({shape:C}):h?zI(h,u,M,C,e,r,!0,w):Gl(M,{shape:C},t,e,null),a.setItemGraphicEl(e,M),M.ignore=k,o.add(M)}else o.remove(M)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&Yl(n,t,e)})).execute();var C=this._backgroundGroup||(this._backgroundGroup=new _i);C.removeAll();for(var A=0;A<y.length;++A)C.add(y[A]);o.add(C),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),JI(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),JI(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&DA(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(s["H"])(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),c=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(c>o)return!0;o=c}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){Yl(e,t,Cs(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Um),BI={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=jI(e.x,t.x),s=LI(e.x+e.width,r),l=jI(e.y,t.y),c=LI(e.y+e.height,o),u=s<a,h=c<l;return e.x=u&&a>r?s:a,e.y=h&&l>o?c:l,e.width=u?0:s-a,e.height=h?0:c-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),u||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=LI(e.r,t.r),o=jI(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},NI={cartesian2d:function(t,e,n,i,r,o,a,l,c){var u=new rs({shape:Object(s["m"])({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var h=u.shape,d=r?"height":"width";h[d]=0}return u},polar:function(t,e,n,i,r,o,a,s,l){var c=!r&&l?MI:yg,u=new c({shape:i,z2:1});u.name="item";var h=YI(r);if(u.calculateTextPosition=kI(h,{isRoundCap:c===MI}),o){var d=u.shape,p=r?"r":"endAngle",f={};d[p]=r?i.r0:i.startAngle,f[p]=i[p],(s?Gl:Hl)(u,{shape:f},o)}return u}};function FI(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function zI(t,e,n,i,r,o,a,s){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Gl:Hl)(n,{shape:l},e,r,null);var u=e?t.baseAxis.model:null;(a?Gl:Hl)(n,{shape:c},u,r)}function VI(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var GI=["x","y","width","height"],HI=["cx","cy","r","startAngle","endAngle"],WI={cartesian2d:function(t){return!VI(t,GI)},polar:function(t){return!VI(t,HI)}},UI={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?qI(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ZI(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function YI(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function XI(t,e,n,i,r,o,a,l){var c=e.getItemVisual(n,"style");if(l){if(!o.get("roundCap")){var u=t.shape,h=PI(i.getModel("itemStyle"),u,!0);Object(s["m"])(u,h),t.setShape(u)}}else{var d=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",d)}t.useStyle(c);var p=i.getShallow("cursor");p&&t.attr("cursor",p);var f=l?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",g=tc(i);$l(t,g,{labelFetcher:o,labelDataIndex:n,defaultText:sA(o.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=t.getTextContent();if(l&&m){var v=i.get(["label","position"]);t.textConfig.inside="middle"===v||null,EI(t,"outside"===v?f:v,YI(a),i.get(["label","rotate"]))}hc(m,g,o.getRawValue(n),(function(t){return lA(e,t)}));var y=i.getModel(["emphasis"]);Ml(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Ol(t,i),ZI(r)&&(t.style.fill="none",t.style.stroke="none",Object(s["k"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function qI(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}var KI=function(){function t(){}return t}(),QI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return o(e,t),e.prototype.getDefaultShape=function(){return new KI},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(Va);function JI(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),c=r.getLayout("largeBackgroundPoints");if(c){var u=new QI({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),e.add(u),n&&n.push(u)}var h=new QI({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(r.getVisual("style")),Cs(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",$I),h.on("mousemove",$I)),n&&n.push(h)}var $I=qm((function(t){var e=this,n=tS(e,t.offsetX,t.offsetY);Cs(e).dataIndex=n>=0?n:null}),30,!1);function tS(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],c=t.barWidth,u=0,h=o.length/3;u<h;u++){var d=3*u;if(l[i]=c,l[r]=o[d+2],s[i]=o[d+i],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}function eS(t,e,n){if(RA(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}r=n.getArea();var o=e;return{cx:r.cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function nS(t,e,n){var i="polar"===t.type?yg:rs;return new i({shape:eS(e,n,t),silent:!0,z2:0})}var iS=RI;function rS(t){t.registerChartView(iS),t.registerSeriesModel(AI),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,s["h"](mI,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vI("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,oI("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var oS=2*Math.PI,aS=Math.PI/180;function sS(t,e){return Nu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lS(t,e){var n=sS(t,e),i=t.get("center"),r=t.get("radius");s["t"](r)||(r=[0,r]);var o,a,l=Li(n.width,e.getWidth()),c=Li(n.height,e.getHeight()),u=Math.min(l,c),h=Li(r[0],u/2),d=Li(r[1],u/2),p=t.coordinateSystem;if(p){var f=p.dataToPoint(i);o=f[0]||0,a=f[1]||0}else s["t"](i)||(i=[i,i]),o=Li(i[0],l)+n.x,a=Li(i[1],c)+n.y;return{cx:o,cy:a,r0:h,r:d}}function cS(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=sS(t,n),o=lS(t,n),a=o.cx,s=o.cy,l=o.r,c=o.r0,u=-t.get("startAngle")*aS,h=t.get("minAngle")*aS,d=0;e.each(i,(function(t){!isNaN(t)&&d++}));var p=e.getSum(i),f=Math.PI/(p||d)*2,g=t.get("clockwise"),m=t.get("roseType"),v=t.get("stillShowZeroSum"),y=e.getDataExtent(i);y[0]=0;var b=oS,x=0,w=u,_=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:c,r:m?NaN:l});else{i="area"!==m?0===p&&v?f:t*f:oS/d,i<h?(i=h,b-=h):x+=t;var r=w+_*i;e.setItemLayout(n,{angle:i,startAngle:w,endAngle:r,clockwise:g,cx:a,cy:s,r0:c,r:m?ji(t,y,[c,l]):l}),w=r}})),b<oS&&d)if(b<=.001){var C=oS/d;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=C,i.startAngle=u+_*n*C,i.endAngle=u+_*(n+1)*C}}))}else f=b/x,w=u,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===h?h:t*f;i.startAngle=w,i.endAngle=w+_*r,w+=_*r}}))}))}function uS(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}var hS=Math.PI/180;function dS(t,e,n,i,r,o,a,s,l,c){if(!(t.length<2)){for(var u=t.length,h=0;h<u;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-c;t[h].linePoints[1][0]+=d,t[h].label.x=c}sw(t,l,l+a)&&f(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],c=Math.abs(l.label.y-n),u=i+l.len,h=u*u,d=Math.sqrt((1-Math.abs(c*c/a))*h),p=e+(d+l.len2)*r,f=p-l.label.x,g=l.targetTextWidth-f*r;fS(l,g,!0),l.label.x=p}}function f(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],c=l.label.y>n?a:o,u=Math.abs(l.label.y-n);if(u>=c.maxY){var h=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(h)<d?Math.sqrt(u*u/(1-h*h/d/d)):d;c.rB=f,c.maxY=u}c.list.push(l)}p(o),p(a)}}function pS(t,e,n,i,r,o,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;gS(t[d])||(p.x<e?(u=Math.min(u,p.x),l.push(t[d])):(h=Math.max(h,p.x),c.push(t[d])))}for(d=0;d<t.length;d++){var f=t[d];if(!gS(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,m=void 0;m="edge"===f.labelAlignTo?p.x<e?g[2][0]-f.labelDistance-a-f.edgeDistance:a+r-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<e?u-a-f.bleedMargin:a+r-h-f.bleedMargin:p.x<e?p.x-a-f.bleedMargin:a+r-p.x-f.bleedMargin,f.targetTextWidth=m,fS(f,m)}}dS(c,e,n,i,1,r,o,a,s,h),dS(l,e,n,i,-1,r,o,a,s,u);for(d=0;d<t.length;d++){f=t[d];if(!gS(f)&&f.linePoints){p=f.label,g=f.linePoints;var v="edge"===f.labelAlignTo,y=p.style.padding,b=y?y[1]+y[3]:0,x=p.style.backgroundColor?0:b,w=f.rect.width+x,_=g[1][0]-g[2][0];v?p.x<e?g[2][0]=a+f.edgeDistance+w+f.labelDistance:g[2][0]=a+r-f.edgeDistance-w-f.labelDistance:(p.x<e?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+_),g[1][1]=g[2][1]=p.y}}}function fS(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,c=r.overflow,u=o.width+(a?0:l);if(e<u||n){var h=o.height;if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,f=e<u?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var m=(i.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-h)/2}}}function gS(t){return"center"===t.position}function mS(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*hS,l=i.getLayout("viewRect"),c=i.getLayout("r"),u=l.width,h=l.x,d=l.y,p=l.height;function f(t){t.ignore=!0}function g(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}i.each((function(t){var l=i.getItemGraphicEl(t),d=l.shape,p=l.getTextContent(),m=l.getTextGuideLine(),v=i.getItemModel(t),y=v.getModel("label"),b=y.get("position")||v.get(["emphasis","label","position"]),x=y.get("distanceToLabelLine"),w=y.get("alignTo"),_=Li(y.get("edgeDistance"),u),C=y.get("bleedMargin"),A=v.getModel("labelLine"),I=A.get("length");I=Li(I,u);var S=A.get("length2");if(S=Li(S,u),Math.abs(d.endAngle-d.startAngle)<a)return Object(s["k"])(p.states,f),p.ignore=!0,void(m&&(Object(s["k"])(m.states,f),m.ignore=!0));if(g(p)){var M,k,E,T,O=(d.startAngle+d.endAngle)/2,P=Math.cos(O),j=Math.sin(O);e=d.cx,n=d.cy;var L="inside"===b||"inner"===b;if("center"===b)M=d.cx,k=d.cy,T="center";else{var D=(L?(d.r+d.r0)/2*P:d.r*P)+e,R=(L?(d.r+d.r0)/2*j:d.r*j)+n;if(M=D+3*P,k=R+3*j,!L){var B=D+P*(I+c-d.r),N=R+j*(I+c-d.r),F=B+(P<0?-1:1)*S,z=N;M="edge"===w?P<0?h+_:h+u-_:F+(P<0?-x:x),k=z,E=[[D,R],[B,N],[F,z]]}T=L?"center":"edge"===w?P>0?"right":"left":P>0?"left":"right"}var V=Math.PI,G=0,H=y.get("rotate");if(Object(s["z"])(H))G=H*(V/180);else if("center"===b)G=0;else if("radial"===H||!0===H){var W=P<0?-O+V:-O;G=W}else if("tangential"===H&&"outside"!==b&&"outer"!==b){var U=Math.atan2(P,j);U<0&&(U=2*V+U);var Z=j>0;Z&&(U=V+U),G=U-V}if(o=!!G,p.x=M,p.y=k,p.rotation=G,p.setStyle({verticalAlign:"middle"}),L){p.setStyle({align:T});var Y=p.states.select;Y&&(Y.x+=p.x,Y.y+=p.y)}else{var X=p.getBoundingRect().clone();X.applyTransform(p.getComputedTransform());var q=(p.style.margin||0)+2.1;X.y-=q/2,X.height+=q,r.push({label:p,labelLine:m,position:b,len:I,len2:S,minTurnAngle:A.get("minTurnAngle"),maxSurfaceAngle:A.get("maxSurfaceAngle"),surfaceNormal:new vt(P,j),linePoints:E,textAlign:T,labelDistance:x,labelAlignTo:w,edgeDistance:_,bleedMargin:C,rect:X,unconstrainedWidth:X.width,labelStyleWidth:p.style.width})}l.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&pS(r,e,n,c,u,p,h,d);for(var m=0;m<r.length;m++){var v=r[m],y=v.label,b=v.labelLine,x=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),x&&(Object(s["k"])(y.states,f),y.ignore=!0);var w=y.states.select;w&&(w.x+=y.x,w.y+=y.y)}if(b){var _=v.linePoints;x||!_?(Object(s["k"])(b.states,f),b.ignore=!0):(Jx(_,v.minTurnAngle),$x(_,v.surfaceNormal,v.maxSurfaceAngle),b.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new vt(_[0][0],_[0][1])})}}}var vS=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new _s;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return o(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),l=a.getModel("emphasis"),c=t.getItemLayout(e),u=Object(s["m"])(PI(a.getModel("itemStyle"),c,!0),c);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var h=o.getShallow("animationType");o.ecModel.ssr?(Hl(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===h?(r.shape.r=c.r0,Hl(r,{shape:{r:c.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),Hl(r,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},o,e)):(r.shape.endAngle=c.startAngle,Gl(r,{shape:{endAngle:c.endAngle}},o,e))}else Xl(r),Gl(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),Ol(r,a);var d=(c.startAngle+c.endAngle)/2,p=o.get("selectedOffset"),f=Math.cos(d)*p,g=Math.sin(d)*p,m=a.getShallow("cursor");m&&r.attr("cursor",m),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=Object(s["m"])({r:c.r+(l.get("scale")&&l.get("scaleSize")||0)},PI(l.getModel("itemStyle"),c)),Object(s["m"])(r.ensureState("select"),{x:f,y:g,shape:PI(a.getModel(["select","itemStyle"]),c)}),Object(s["m"])(r.ensureState("blur"),{shape:PI(a.getModel(["blur","itemStyle"]),c)});var v=r.getTextGuideLine(),y=r.getTextContent();v&&Object(s["m"])(v.ensureState("select"),{x:f,y:g}),Object(s["m"])(y.ensureState("select"),{x:f,y:g}),Ml(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),l=a&&a.fill,c=a&&a.opacity;$l(i,tc(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:c,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)i.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Eg,this.setTextGuideLine(d)),nw(this,iw(r),{stroke:l,opacity:Object(s["Q"])(o.get(["lineStyle","opacity"]),c,1)})}},e}(yg),yS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return o(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<o.count();++c)l=o.getItemLayout(c);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var u=new yg({shape:lS(t,n)});u.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=u,s.add(u)}o.diff(a).add((function(t){var e=new vS(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);Yl(n,t,e)})).execute(),mS(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},e.type="pie",e}(Um),bS=yS;function xS(t,e,n){e=Object(s["t"])(e)&&{coordDimensions:e}||Object(s["m"])({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=VC(i,e).dimensions,o=new zC(r,t);return o.initData(i,n),o}var wS=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),_S=wS,CS=kr(),AS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _S(s["c"](this.getData,this),s["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return xS(this,{coordDimensions:["value"],encodeDefaulter:s["h"](hh,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=CS(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=zi(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){sr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(_f),IS=AS;function SS(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!(Object(s["z"])(i)&&!isNaN(i)&&i<0)}))}}}function MS(t){t.registerChartView(bS),t.registerSeriesModel(IS),Vv("pie",t.registerAction),t.registerLayout(Object(s["h"])(cS,"pie")),t.registerProcessor(uS("pie")),t.registerProcessor(SS("pie"))}var kS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){return rA(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(_f),ES=kS,TS=4,OS=function(){function t(){}return t}(),PS=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(e,t),e.prototype.getDefaultShape=function(){return new OS},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<TS,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],h=i[n++];isNaN(u)||isNaN(h)||(c&&!c.contain(u,h)||(a.x=u-r[0]/2,a.y=h-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-o/2,u=i[l+1]-a/2;if(t>=c&&e>=u&&t<=c+o&&e<=u+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u<n.length;){var h=n[u++],d=n[u++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(d,s),c=Math.max(d,c)}t=this._rect=new Mt(a-r/2,s-o/2,l-a+r,c-s+o)}return t},e}(Va),jS=function(){function t(){this.group=new _i}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new PS({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=ry(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<TS;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=Cs(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),LS=jS,DS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateSymbolDraw(i,t);r.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=nI("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new LS:new mA,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Um),RS=DS,BS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(Xu),NS=BS,FS=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}(),zS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pr).models[0]},e.type="cartesian2dAxis",e}(Xu);s["K"](zS,FS);var VS={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},GS=s["I"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},VS),HS=s["I"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},VS),WS=s["I"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},HS),US=s["i"]({logBase:10},HS),ZS={category:GS,value:HS,time:WS,log:US},YS=0,XS=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++YS}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&Object(s["H"])(i,qS);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(s["C"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(s["f"])(this.categories))},t}();function qS(t){return Object(s["A"])(t)&&null!=t.value?t.value:t+""}var KS=XS,QS={value:1,category:1,time:1,log:1};function JS(t,e,n,i){Object(s["k"])(QS,(function(r,a){var l=Object(s["I"])(Object(s["I"])({},ZS[a],!0),i,!0),c=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return o(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Vu(this),i=n?Hu(t):{},r=e.getTheme();Object(s["I"])(t,r.get(a+"Axis")),Object(s["I"])(t,this.getDefaultOption()),t.type=$S(t),n&&Gu(t,i,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=KS.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+a,n.defaultOption=l,n}(n);t.registerComponentModel(c)})),t.registerSubTypeDefaulter(e+"Axis",$S)}function $S(t){return t.type||(t.data?"category":"value")}var tM=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();$r(tM);var eM=tM;function nM(t){return"interval"===t.type||"log"===t.type}function iM(t,e,n,i){var r={},o=t[1]-t[0],a=r.interval=qi(o/e,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=oM(a),l=r.niceTickExtent=[Di(Math.ceil(t[0]/a)*a,s),Di(Math.floor(t[1]/a)*a,s)];return sM(l,t),r}function rM(t){var e=Math.pow(10,Xi(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Di(n*e)}function oM(t){return Bi(t)+2}function aM(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function sM(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),aM(t,0,e),aM(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function lM(t,e){return t>=e[0]&&t<=e[1]}function cM(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function uM(t,e){return t*(e[1]-e[0])+e[0]}var hM=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new KS({})),Object(s["t"])(i)&&(i=new KS({categories:Object(s["H"])(i,(function(t){return Object(s["A"])(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return o(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(s["C"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),lM(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),cM(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(uM(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(eM);eM.registerClass(hM);var dM=hM,pM=Di,fM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return o(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return lM(t,this._extent)},e.prototype.normalize=function(t){return cM(t,this._extent)},e.prototype.scale=function(t){return uM(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=oM(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<i[0]&&(t?o.push({value:pM(i[0]-e,r)}):o.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(o.push({value:s}),s=pM(s+e,r),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(t?o.push({value:pM(l+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1],s=0,l=[],c=o.value-a.value,u=c/t;while(s<t-1){var h=pM(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=Bi(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=pM(t.value,n,!0);return wu(i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=iM(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax?e[0]-=n/2:(e[1]+=n/2,e[0]-=n/2)}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=pM(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=pM(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(eM);eM.registerClass(fM);var gM=fM,mM=function(t,e,n,i){while(n<i){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n},vM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return o(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return iu(t.value,Kc[nu(tu(this._minLevelUnit))]||Kc.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return ru(t,e,n,r,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=SM(this._minLevelUnit,this._approxInterval,i,e);return n=n.concat(r),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=Zc,e[1]+=Zc),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Zc}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=yM.length,a=Math.min(mM(yM,this._approxInterval,0,o),o-1);this._interval=yM[a][1],this._minLevelUnit=yM[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(s["z"])(t)?t:+Zi(t)},e.prototype.contain=function(t){return lM(this.parse(t),this._extent)},e.prototype.normalize=function(t){return cM(this.parse(t),this._extent)},e.prototype.scale=function(t){return uM(t,this._extent)},e.type="time",e}(gM),yM=[["second",Hc],["minute",Wc],["hour",Uc],["quarter-day",6*Uc],["half-day",12*Uc],["day",1.2*Zc],["half-week",3.5*Zc],["week",7*Zc],["month",31*Zc],["quarter",95*Zc],["half-year",Yc/2],["year",Yc]];function bM(t,e,n,i){var r=Zi(e),o=Zi(n),a=function(t){return au(r,t,i)===au(o,t,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},h=function(){return u()&&a("minute")},d=function(){return h()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return h();case"second":return d();case"millisecond":return p()}}function xM(t,e){return t/=Zc,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function wM(t){var e=30*Zc;return t/=e,t>6?6:t>3?3:t>2?2:1}function _M(t){return t/=Uc,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function CM(t,e){return t/=e?Wc:Hc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function AM(t){return qi(t,!0)}function IM(t,e,n){var i=new Date(t);switch(tu(e)){case"year":case"month":i[gu(n)](0);case"day":i[mu(n)](1);case"hour":i[vu(n)](0);case"minute":i[yu(n)](0);case"second":i[bu(n)](0),i[xu(n)](0)}return i.getTime()}function SM(t,e,n,i){var r=1e4,o=Jc,a=0;function l(t,e,n,r,o,a,s){var l=new Date(e),c=e,u=l[r]();while(c<n&&c<=i[1])s.push({value:c}),u+=t,l[o](u),c=l.getTime();s.push({value:c,notAdd:!0})}function c(t,r,o){var a=[],s=!r.length;if(!bM(tu(t),i[0],i[1],n)){s&&(r=[{value:IM(new Date(i[0]),t,n)},{value:i[1]}]);for(var c=0;c<r.length-1;c++){var u=r[c].value,h=r[c+1].value;if(u!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/Zc/365)),p=su(n),f=fu(n);break;case"half-year":case"quarter":case"month":d=wM(e),p=lu(n),f=gu(n);break;case"week":case"half-week":case"day":d=xM(e,31),p=cu(n),f=mu(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=_M(e),p=uu(n),f=vu(n);break;case"minute":d=CM(e,!0),p=hu(n),f=yu(n);break;case"second":d=CM(e,!1),p=du(n),f=bu(n);break;case"millisecond":d=AM(e),p=pu(n),f=xu(n);break}l(d,u,h,p,f,g,a),"year"===t&&o.length>1&&0===c&&o.unshift({value:o[0].value-d})}}for(c=0;c<a.length;c++)o.push(a[c]);return a}}for(var u=[],h=[],d=0,p=0,f=0;f<o.length&&a++<r;++f){var g=tu(o[f]);if(eu(o[f])){c(o[f],u[u.length-1]||[],h);var m=o[f+1]?tu(o[f+1]):null;if(g!==m){if(h.length){p=d,h.sort((function(t,e){return t.value-e.value}));for(var v=[],y=0;y<h.length;++y){var b=h[y].value;0!==y&&h[y-1].value===b||(v.push(h[y]),b>=i[0]&&b<=i[1]&&d++)}var x=(i[1]-i[0])/e;if(d>1.5*x&&p>x/1.5)break;if(u.push(v),d>x||t===o[f])break}h=[]}}}var w=Object(s["n"])(Object(s["H"])(u,(function(t){return Object(s["n"])(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],C=w.length-1;for(f=0;f<w.length;++f)for(var A=w[f],I=0;I<A.length;++I)_.push({value:A[I].value,level:C-f});_.sort((function(t,e){return t.value-e.value}));var S=[];for(f=0;f<_.length;++f)0!==f&&_[f].value===_[f-1].value||S.push(_[f]);return S}eM.registerClass(vM);var MM=vM,kM=eM.prototype,EM=gM.prototype,TM=Di,OM=Math.floor,PM=Math.ceil,jM=Math.pow,LM=Math.log,DM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new gM,e._interval=0,e}return o(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent(),r=EM.getTicks.call(this,t);return s["H"](r,(function(t){var e=t.value,r=Di(jM(this.base,e));return r=e===n[0]&&this._fixMin?BM(r,i[0]):r,r=e===n[1]&&this._fixMax?BM(r,i[1]):r,{value:r}}),this)},e.prototype.setExtent=function(t,e){var n=LM(this.base);t=LM(Math.max(0,t))/n,e=LM(Math.max(0,e))/n,EM.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=kM.getExtent.call(this);e[0]=jM(t,e[0]),e[1]=jM(t,e[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(e[0]=BM(e[0],i[0])),this._fixMax&&(e[1]=BM(e[1],i[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=LM(t[0])/LM(e),t[1]=LM(t[1])/LM(e),kM.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=Yi(n),r=t/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[Di(PM(e[0]/i)*i),Di(OM(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){EM.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=LM(t)/LM(this.base),lM(t,this._extent)},e.prototype.normalize=function(t){return t=LM(t)/LM(this.base),cM(t,this._extent)},e.prototype.scale=function(t){return t=uM(t,this._extent),jM(this.base,t)},e.type="log",e}(eM),RM=DM.prototype;function BM(t,e){return TM(t,Bi(e))}RM.getMinorTicks=EM.getMinorTicks,RM.getLabel=EM.getLabel,eM.registerClass(DM);var NM=DM,FM=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var r=this._modelMinRaw=e.get("min",!0);Object(s["w"])(r)?this._modelMinNum=HM(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=HM(t,r));var o=this._modelMaxRaw=e.get("max",!0);if(Object(s["w"])(o)?this._modelMaxNum=HM(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=HM(t,o)),i)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),l=Object(s["t"])(a)?a:[a||0,a||0];"boolean"===typeof l[0]||"boolean"===typeof l[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[oi(l[0],1),oi(l[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,c=null!=a,u=null!=l;null==a&&(a=t?i?0:NaN:e-r[0]*o),null==l&&(l=t?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=Object(s["l"])(a)||Object(s["l"])(l)||t&&!i;this._needCrossZero&&(a>0&&l>0&&!c&&(a=0),a<0&&l<0&&!u&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(a=d,c=!0),null!=p&&(l=p,u=!0),{min:a,max:l,minFixed:c,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[VM[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=zM[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),zM={min:"_determinedMin",max:"_determinedMax"},VM={min:"_dataMin",max:"_dataMax"};function GM(t,e,n){var i=t.rawExtentInfo;return i||(i=new FM(t,e,n),t.rawExtentInfo=i,i)}function HM(t,e){return null==e?null:Object(s["l"])(e)?NaN:t.parse(e)}function WM(t,e){var n=t.type,i=GM(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var l=hI("bar",a),c=!1;if(s["k"](l,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var u=pI(l),h=UM(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function UM(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=gI(i,n.axis);if(void 0===a)return{min:t,max:e};var l=1/0;s["k"](a,(function(t){l=Math.min(t.offset,l)}));var c=-1/0;s["k"](a,(function(t){c=Math.max(t.offset+t.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,h=e-t,d=1-(l+c)/o,p=h/d-h;return e+=p*(c/u),t-=p*(l/u),{min:t,max:e}}function ZM(t,e){var n=e,i=WM(t,n),r=i.extent,o=n.get("splitNumber");t instanceof NM&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function YM(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new dM({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new MM({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(eM.getClass(e)||gM)}}function XM(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function qM(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,i){return t.scale.getFormattedLabel(n,i,e)}}(e):s["C"](e)?function(e){return function(n){var i=t.scale.getLabel(n),r=e.replace("{value}",null!=i?i:"");return r}}(e):s["w"](e)?function(e){return function(i,r){return null!=n&&(r=i.value-n),e(KM(t,i),r,null!=i.level?{level:i.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function KM(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function QM(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof dM?r=n.count():(i=n.getTicks(),r=i.length);var a,s=t.getLabelModel(),l=qM(t),c=1;r>40&&(c=Math.ceil(r/40));for(var u=0;u<r;u+=c){var h=i?i[u]:{value:o[0]+u},d=l(h,u),p=s.getTextRect(d),f=JM(p,s.get("rotate")||0);a?a.union(f):a=f}return a}}function JM(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new Mt(t.x,t.y,o,a);return s}function $M(t){var e=t.get("interval");return null==e?"auto":e}function tk(t){return"category"===t.type&&0===$M(t.getLabelModel())}function ek(t,e){var n={};return s["k"](t.mapDimensionsAll(e),(function(e){n[JC(t,e)]=!0})),s["F"](n)}function nk(t,e,n){e&&s["k"](ek(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}var ik=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return s["H"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),s["n"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),rk=ik,ok=["x","y"];function ak(t){return"interval"===t.type||"time"===t.type}var sk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ok,e}return o(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(ak(t)&&ak(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,c=(o[1]-r[1])/s,u=r[0]-n[0]*l,h=r[1]-i[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=ft([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new Mt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return A(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return A(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new Mt(n,i,r,o)},e}(rk),lk=sk,ck=kr();function uk(t){return"category"===t.type?dk(t):gk(t)}function hk(t,e){return"category"===t.type?fk(t,e):{ticks:s["H"](t.scale.getTicks(),(function(t){return t.value}))}}function dk(t){var e=t.getLabelModel(),n=pk(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function pk(t,e){var n,i,r=mk(t,"labels"),o=$M(e),a=vk(r,o);return a||(s["w"](o)?n=Ck(t,o):(i="auto"===o?bk(t):o,n=_k(t,i)),yk(r,o,{labels:n,labelCategoryInterval:i}))}function fk(t,e){var n,i,r=mk(t,"ticks"),o=$M(e),a=vk(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),s["w"](o))n=Ck(t,o,!0);else if("auto"===o){var l=pk(t,t.getLabelModel());i=l.labelCategoryInterval,n=s["H"](l.labels,(function(t){return t.tickValue}))}else i=o,n=_k(t,i,!0);return yk(r,o,{ticks:n,tickCategoryInterval:i})}function gk(t){var e=t.scale.getTicks(),n=qM(t);return{labels:s["H"](e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function mk(t,e){return ck(t)[e]||(ck(t)[e]=[])}function vk(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function yk(t,e,n){return t.push({key:e,value:n}),n}function bk(t){var e=ck(t).autoInterval;return null!=e?e:ck(t).autoInterval=t.calculateCategoryInterval()}function xk(t){var e=wk(t),n=qM(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=t.dataToCoord(l+1)-t.dataToCoord(l),u=Math.abs(c*Math.cos(i)),h=Math.abs(c*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f=0,g=0,m=ei(n({value:l}),e.font,"center","top");f=1.3*m.width,g=1.3*m.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var v=d/u,y=p/h;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),x=ck(t.model),w=t.getExtent(),_=x.lastAutoInterval,C=x.lastTickCount;return null!=_&&null!=C&&Math.abs(_-b)<=1&&Math.abs(C-a)<=1&&_>b&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?b=_:(x.lastTickCount=a,x.lastAutoInterval=b,x.axisExtent0=w[0],x.axisExtent1=w[1]),b}function wk(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _k(t,e,n){var i=qM(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),c=o[0],u=r.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var h=tk(t),d=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;d&&c!==o[0]&&g(o[0]);for(var f=c;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function Ck(t,e,n){var i=t.scale,r=qM(t),o=[];return s["k"](i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var Ak=[0,1],Ik=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Fi(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&(n=n.slice(),Sk(n,i.count())),ji(t,Ak,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),Sk(n,i.count()));var r=ji(t,n,Ak,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=hk(this,e),i=n.ticks,r=Object(s["H"])(i,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return Mk(this,r,o,t.clamp),r},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=Object(s["H"])(n,(function(t){return Object(s["H"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return i},t.prototype.getViewLabels=function(){return uk(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return xk(this)},t}();function Sk(t,e){var n=t[1]-t[0],i=e,r=n/i/2;t[0]+=r,t[1]-=r}function Mk(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a,l=t.getExtent();if(1===r)e[0].coord=l[0],o=e[1]={coord:l[1]};else{var c=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/c;Object(s["k"])(e,(function(t){t.coord-=u/2}));var h=t.scale.getExtent();a=1+h[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var d=l[0]>l[1];p(e[0].coord,l[0])&&(i?e[0].coord=l[0]:e.shift()),i&&p(l[0],e[0].coord)&&e.unshift({coord:l[0]}),p(l[1],o.coord)&&(i?o.coord=l[1]:e.pop()),i&&p(o.coord,l[1])&&e.push({coord:l[1]})}function p(t,e){return t=Di(t),e=Di(e),d?t>e:t<e}}var kk=Ik,Ek=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return o(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(kk),Tk=Ek;function Ok(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],l=r.position,c=a?"onZero":l,u=r.dim,h=i.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,g="x"===u?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(m,g[1]),g[0])}o.position=["y"===u?g[p[c]]:d[0],"x"===u?g[p[c]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[l],o.labelOffset=a?g[p[l]]-g[p.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),s["O"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===c?-y:y,o.z2=1,o}function Pk(t){return"cartesian2d"===t.get("coordinateSystem")}function jk(t){var e={xAxisModel:null,yAxisModel:null};return s["k"](e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,Pr).models[0];e[i]=o})),e}var Lk=Math.log;function Dk(t,e,n){var i=gM.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=WM(t,e),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===t.type){var d=Lk(t.base);c=[Lk(c[0])/d,Lk(c[1])/d]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:h});var p=i.getExtent.call(t);u&&(c[0]=p[0]),h&&(c[1]=p[1]);var f=i.getInterval.call(t),g=c[0],m=c[1];if(u&&h)f=(m-g)/a;else if(u){m=c[0]+f*a;while(m<c[1]&&isFinite(m)&&isFinite(c[1]))f=rM(f),m=c[0]+f*a}else if(h){g=c[1]-f*a;while(g>c[0]&&isFinite(g)&&isFinite(c[0]))f=rM(f),g=c[1]-f*a}else{var v=t.getTicks().length-1;v>a&&(f=rM(f));var y=f*a;m=Math.ceil(c[1]/f)*f,g=Di(m-y),g<0&&c[0]>=0?(g=0,m=Di(y)):m>0&&c[1]<=0&&(m=0,g=-Di(y))}var b=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*b,m+f*x),i.setInterval.call(t,f),(b||x)&&i.setNiceExtent.call(t,g+f,m-f)}var Rk=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ok,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=Object(s["F"])(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],l=t[a],c=l.model,u=l.scale;nM(u)&&c.get("alignTicks")&&null==c.get("interval")?r.push(l):(ZM(u,c),nM(u)&&(e=l))}r.length&&(e||(e=r.pop(),ZM(e.scale,e.model)),Object(s["k"])(r,(function(t){Dk(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};Object(s["k"])(n.x,(function(t){Nk(n,"y",t,r)})),Object(s["k"])(n.y,(function(t){Nk(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Nu(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function l(){Object(s["k"])(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),zk(t,e?o.x:o.y)}))}l(),r&&(Object(s["k"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=QM(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),l()),Object(s["k"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(s["A"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",Pr).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",Pr).models[0],a=t.gridModel,l=this._coordsList;if(i)e=i.coordinateSystem,Object(s["r"])(l,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var c=a.coordinateSystem;c===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",c("x"),this),e.eachComponent("yAxis",c("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function c(e){return function(n,i){if(Bk(n,t)){var s=n.get("position");"x"===e?"top"!==s&&"bottom"!==s&&(s=o.bottom?"top":"bottom"):"left"!==s&&"right"!==s&&(s=o.left?"right":"left"),o[s]=!0;var c=new Tk(e,YM(n),[0,0],n.get("type"),s),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=r,c.index=i,r._axesList.push(c),a[e][i]=c,l[e]++}}}this._axesMap=a,Object(s["k"])(a.x,(function(e,n){Object(s["k"])(a.y,(function(r,o){var a="x"+n+"y"+o,s=new lk(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Object(s["k"])(ek(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Object(s["k"])(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(Pk(t)){var i=jk(t),r=i.xAxisModel,o=i.yAxisModel;if(!Bk(r,e)||!Bk(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),c=a.getAxis("y");n(s,l),n(s,c)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(s["k"])(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);Object(s["r"])(e,r)<0&&e.push(r),Object(s["r"])(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(Pk(t)){var e=jk(t),n=e.xAxisModel,i=e.yAxisModel,r=n.getCoordSysModel();0;var o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=ok,t}();function Bk(t,e){return t.getCoordSysModel()===e}function Nk(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Fk(o[l])&&(r=o[l]);else for(var c in o)if(o.hasOwnProperty(c)&&Fk(o[c])&&!i[u(o[c])]){r=o[c];break}r&&(i[u(r)]=!0)}function u(t){return t.dim+"_"+t.index}}function Fk(t){return t&&"category"!==t.type&&"time"!==t.type&&XM(t)}function zk(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}var Vk=Rk,Gk=Math.PI,Hk=function(){function t(t,e){this.group=new _i,this.opt=e,this.axisModel=t,Object(s["i"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new _i({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Wk[t]},t.prototype.add=function(t){Wk[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Hi(e-t);return Wi(o)?(r=n>0?"top":"bottom",i="center"):Wi(o-Gk)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<Gk?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Wk={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,l=[o[0],0],c=[o[1],0],u=l[0]>c[0];a&&(A(l,l,a),A(c,c,a));var h=Object(s["m"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new jg({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});ym(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var p=e.get(["axisLine","symbol"]);if(null!=p){var f=e.get(["axisLine","symbolSize"]);Object(s["C"])(p)&&(p=[p,p]),(Object(s["C"])(f)||Object(s["z"])(f))&&(f=[f,f]);var g=ay(e.get(["axisLine","symbolOffset"])||0,f),m=f[0],v=f[1];Object(s["k"])([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],(function(e,i){if("none"!==p[i]&&null!=p[i]){var r=ry(p[i],-m/2,-v/2,m,v,h.stroke,!0),o=e.r+e.offset,a=u?c:l;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=Qk(n,i,e,t),o=$k(n,i,e,t);if(Zk(e,o,r),Jk(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=rw(Object(s["H"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));lw(a)}},axisName:function(t,e,n,i){var r=Object(s["O"])(t.axisName,e.get("name"));if(r){var o,a,l=e.get("nameLocation"),c=t.nameDirection,u=e.getModel("nameTextStyle"),h=e.get("nameGap")||0,d=e.axis.getExtent(),p=d[0]>d[1]?-1:1,f=["start"===l?d[0]-p*h:"end"===l?d[1]+p*h:(d[0]+d[1])/2,qk(l)?t.labelOffset+c*h:0],g=e.get("nameRotate");null!=g&&(g=g*Gk/180),qk(l)?o=Hk.innerTextLayout(t.rotation,null!=g?g:t.rotation,c):(o=Uk(t.rotation,l,g||0,d),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var m=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,b=Object(s["O"])(t.nameTruncateMaxWidth,v.maxWidth,a),x=new _s({x:f[0],y:f[1],rotation:o.rotation,silent:Hk.isLabelSilent(e),style:ec(u,{text:r,font:m,overflow:"truncate",width:b,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Lm({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var w=Hk.makeAxisEventDataBase(e);w.targetType="axisName",w.name=r,Cs(x).eventData=w}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function Uk(t,e,n,i){var r,o,a=Hi(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Wi(a-Gk/2)?(o=l?"bottom":"top",r="center"):Wi(a-1.5*Gk)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Gk&&a>Gk/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function Zk(t,e,n){if(!tk(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(Yk(o),Yk(c)):Xk(o,a)&&(i?(Yk(a),Yk(u)):(Yk(o),Yk(c))),!1===r?(Yk(s),Yk(h)):Xk(l,s)&&(r?(Yk(l),Yk(d)):(Yk(s),Yk(h)))}}function Yk(t){t&&(t.ignore=!0)}function Xk(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=lt([]);return dt(r,r,-t.rotation),n.applyTransform(ut([],r,t.getLocalTransform())),i.applyTransform(ut([],r,e.getLocalTransform())),n.intersect(i)}}function qk(t){return"middle"===t||"center"===t}function Kk(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var c=t[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,e&&(A(a,a,e),A(s,s,e));var u=new jg({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ym(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u)}return o}function Qk(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var l=o.getModel("lineStyle"),c=i.tickDirection*o.get("length"),u=r.getTicksCoords(),h=Kk(u,e.transform,c,Object(s["i"])(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<h.length;d++)t.add(h[d]);return h}}function Jk(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var l=o.getModel("lineStyle"),c=i*o.get("length"),u=Object(s["i"])(l.getLineStyle(),Object(s["i"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<a.length;h++)for(var d=Kk(a[h],e.transform,c,u,"minorticks_"+h),p=0;p<d.length;p++)t.add(d[p])}}function $k(t,e,n,i){var r=n.axis,o=Object(s["O"])(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),l=a.get("margin"),c=r.getViewLabels(),u=(Object(s["O"])(i.labelRotate,a.get("rotate"))||0)*Gk/180,h=Hk.innerTextLayout(i.rotation,u,i.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],f=Hk.isLabelSilent(n),g=n.get("triggerEvent");return Object(s["k"])(c,(function(o,c){var u="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,m=o.formattedLabel,v=o.rawLabel,y=a;if(d&&d[u]){var b=d[u];Object(s["A"])(b)&&b.textStyle&&(y=new Ic(b.textStyle,a,n.ecModel))}var x=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=r.dataToCoord(u),_=new _s({x:w,y:i.labelOffset+i.labelDirection*l,rotation:h.rotation,silent:f,z2:10+(o.level||0),style:ec(y,{text:m,align:y.getShallow("align",!0)||h.textAlign,verticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||h.textVerticalAlign,fill:Object(s["w"])(x)?x("category"===r.type?v:"value"===r.type?u+"":u,c):x})});if(_.anid="label_"+u,g){var C=Hk.makeAxisEventDataBase(n);C.targetType="axisLabel",C.value=v,C.tickIndex=c,"category"===r.type&&(C.dataIndex=u),Cs(_).eventData=C}e.add(_),_.updateTransform(),p.push(_),t.add(_),_.decomposeTransform()})),p}}var tE=Hk;function eE(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return nE(n,t,e),n.seriesInvolved&&rE(n,t),n}function nE(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Object(s["k"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var l=hE(n.model),c=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=n;var u=n.model,h=u.getModel("tooltip",i);if(Object(s["k"])(n.getAxes(),Object(s["h"])(g,!1,null)),n.getTooltipAxes&&i&&h.get("show")){var d="axis"===h.get("trigger"),p="cross"===h.get(["axisPointer","type"]),f=n.getTooltipAxes(h.get(["axisPointer","axis"]));(d||p)&&Object(s["k"])(f.baseAxes,Object(s["h"])(g,!p||"cross",d)),p&&Object(s["k"])(f.otherAxes,Object(s["h"])(g,"cross",!1))}}function g(i,s,l){var u=l.model.getModel("axisPointer",r),d=u.get("show");if(d&&("auto"!==d||i||uE(u))){null==s&&(s=u.get("triggerTooltip")),u=i?iE(l,h,r,e,i,s):u;var p=u.get("snap"),f=u.get("triggerEmphasis"),g=hE(l.model),m=s||p||"category"===l.type,v=t.axesInfo[g]={key:g,axis:l,coordSys:n,axisPointerModel:u,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:uE(u),seriesModels:[],linkGroup:null};c[g]=v,t.seriesInvolved=t.seriesInvolved||m;var y=oE(o,l);if(null!=y){var b=a[y]||(a[y]={axesInfo:{}});b.axesInfo[g]=v,b.mapper=o[y].mapper,v.linkGroup=b}}}}))}function iE(t,e,n,i,r,o){var a=e.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],c={};Object(s["k"])(l,(function(t){c[t]=Object(s["d"])(a.get(t))})),c.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(c.type="line");var u=c.label||(c.label={});if(null==u.show&&(u.show=!1),"cross"===r){var h=a.get(["label","show"]);if(u.show=null==h||h,!o){var d=c.lineStyle=a.get("crossStyle");d&&Object(s["i"])(u,d.textStyle)}}return t.model.getModel("axisPointer",new Ic(c,n,i))}function rE(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&Object(s["k"])(t.coordSysAxesInfo[hE(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function oE(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(aE(o[i+"AxisId"],n.id)||aE(o[i+"AxisIndex"],n.componentIndex)||aE(o[i+"AxisName"],n.name))return r}}function aE(t,e){return"all"===t||Object(s["t"])(t)&&Object(s["r"])(t,e)>=0||t===e}function sE(t){var e=lE(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=uE(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}function lE(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[hE(t)]}function cE(t){var e=lE(t);return e&&e.axisPointerModel}function uE(t){return!!t.get(["handle","show"])}function hE(t){return t.type+"||"+t.id}var dE={},pE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&sE(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=cE(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){dE[t]=e},e.getAxisPointerClass=function(t){return t&&dE[t]},e.type="axis",e}(Af),fE=pE,gE=kr();function mE(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),l=a.get("color"),c=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var h=l.length,d=gE(t).splitAreaColors,p=s["f"](),f=0;if(d)for(var g=0;g<u.length;g++){var m=d.get(u[g].tickValue);if(null!=m){f=(m+(h-1)*g)%h;break}}var v=r.toGlobalCoord(u[0].coord),y=a.getAreaStyle();l=s["t"](l)?l:[l];for(g=1;g<u.length;g++){var b=r.toGlobalCoord(u[g].coord),x=void 0,w=void 0,_=void 0,C=void 0;r.isHorizontal()?(x=v,w=c.y,_=b-x,C=c.height,v=x+_):(x=c.x,w=v,_=c.width,C=b-w,v=w+C);var A=u[g-1].tickValue;null!=A&&p.set(A,f),e.add(new rs({anid:null!=A?"area_"+A:null,shape:{x:x,y:w,width:_,height:C},style:s["i"]({fill:l[f]},y),autoBatch:!0,silent:!0})),f=(f+1)%h}gE(t).splitAreaColors=p}}}function vE(t){gE(t).splitAreaColors=null}var yE=["axisLine","axisTickLabel","axisName"],bE=["splitArea","splitLine","minorSplitLine"],xE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return o(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new _i,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),l=Ok(a,e),c=new tE(e,s["m"]({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(nM(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},l));s["k"](yE,c.add,c),this._axisGroup.add(c.getGroup()),s["k"](bE,(function(t){e.get([t,"show"])&&wE[t](this,this._axisGroup,e,a)}),this);var u=r&&"changeAxisOrder"===r.type&&r.isInitSort;u||Sm(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){vE(this)},e.type="cartesianAxis",e}(fE),wE={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),l=a.get("color");l=s["t"](l)?l:[l];for(var c=i.coordinateSystem.getRect(),u=r.isHorizontal(),h=0,d=r.getTicksCoords({tickModel:o}),p=[],f=[],g=a.getLineStyle(),m=0;m<d.length;m++){var v=r.toGlobalCoord(d[m].coord);u?(p[0]=v,p[1]=c.y,f[0]=v,f[1]=c.y+c.height):(p[0]=c.x,p[1]=v,f[0]=c.x+c.width,f[1]=v);var y=h++%l.length,b=d[m].tickValue,x=new jg({anid:null!=b?"line_"+d[m].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:f[0],y2:f[1]},style:s["i"]({stroke:l[y]},g),silent:!0});ym(x.shape,g.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),c=r.getMinorTicksCoords();if(c.length)for(var u=[],h=[],d=a.getLineStyle(),p=0;p<c.length;p++)for(var f=0;f<c[p].length;f++){var g=r.toGlobalCoord(c[p][f].coord);l?(u[0]=g,u[1]=s.y,h[0]=g,h[1]=s.y+s.height):(u[0]=s.x,u[1]=g,h[0]=s.x+s.width,h[1]=g);var m=new jg({anid:"minor_line_"+c[p][f].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:d,silent:!0});ym(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,n,i){mE(t,e,n,i)}},_E=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="xAxis",e}(xE),CE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=_E.type,e}return o(e,t),e.type="yAxis",e}(xE),AE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return o(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new rs({shape:t.coordinateSystem.getRect(),style:Object(s["i"])({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Af),IE={offset:0};function SE(t){t.registerComponentView(AE),t.registerComponentModel(NS),t.registerCoordinateSystem("cartesian2d",Vk),JS(t,"x",zS,IE),JS(t,"y",zS,IE),t.registerComponentView(_E),t.registerComponentView(CE),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function ME(t){jx(SE),t.registerSeriesModel(ES),t.registerChartView(RS),t.registerLayout(nI("scatter"))}function kE(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();s["k"](r,(function(t,o){e.each(e.mapDimension(r[o].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=EE(r)?r:TE(i)}))})),e.each((function(t){var r=s["o"](n[t],(function(t){return EE(t)}))||TE(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function EE(t){return!isNaN(t[0])&&!isNaN(t[1])}function TE(t){return[t.cx,t.cy]}function OE(t){var e=t.polar;if(e){s["t"](e)||(e=[e]);var n=[];s["k"](e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],s["t"](t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}s["k"](t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var PE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,o=this.group,a=t.getData(),l=this._data;function c(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=oy(t.getItemVisual(e,"symbolSize")),r=ry(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function u(e,n,r,o,a,s){r.removeAll();for(var l=0;l<n.length-1;l++){var u=c(o,a);u&&(u.__dimIdx=l,e[l]?(u.setPosition(e[l]),i[s?"initProps":"updateProps"](u,{x:n[l][0],y:n[l][1]},t,a)):u.setPosition(n[l]),r.add(u))}}function h(t){return s["H"](t,(function(t){return[r.cx,r.cy]}))}a.diff(l).add((function(e){var n=a.getItemLayout(e);if(n){var i=new Sg,r=new Eg,o={shape:{points:n}};i.shape.points=h(n),r.shape.points=h(n),Hl(i,o,t,e),Hl(r,o,t,e);var s=new _i,l=new _i;s.add(r),s.add(i),s.add(l),u(r.shape.points,n,l,a,e,!0),a.setItemGraphicEl(e,s)}})).update((function(e,n){var i=l.getItemGraphicEl(n),r=i.childAt(0),o=i.childAt(1),s=i.childAt(2),c={shape:{points:a.getItemLayout(e)}};c.shape.points&&(u(r.shape.points,c.shape.points,s,a,e,!1),Xl(o),Xl(r),Gl(r,c,t),Gl(o,c,t),a.setItemGraphicEl(e,i))})).remove((function(t){o.remove(l.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),i=t.childAt(0),r=t.childAt(1),l=t.childAt(2),c=a.getItemVisual(e,"style"),u=c.fill;o.add(t),i.useStyle(s["i"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Ol(i,n,"lineStyle"),Ol(r,n,"areaStyle");var h=n.getModel("areaStyle"),d=h.isEmpty()&&h.parentModel.isEmpty();r.ignore=d,s["k"](["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();r.ensureState(t).ignore=i&&d})),r.useStyle(s["i"](h.getAreaStyle(),{fill:u,opacity:.7,decal:c.decal}));var p=n.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();l.eachChild((function(t){if(t instanceof qa){var i=t.style;t.useStyle(s["m"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},c))}else t.useStyle(c),t.setColor(u),t.style.strokeNoScale=!0;var r=t.ensureState("emphasis");r.style=s["d"](f);var o=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==o||isNaN(o))&&(o=""),$l(t,tc(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:o,inheritColor:u,defaultOpacity:c.opacity})})),Ml(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Um),jE=PE,LE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _S(s["c"](this.getData,this),s["c"](this.getRawData,this))},e.prototype.getInitialData=function(t,e){return xS(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem,o=r.getIndicatorAxes(),a=this.getData().getName(t),l=""===a?this.name:a,c=of(this,t);return Up("section",{header:l,sortBlocks:!0,blocks:s["H"](o,(function(e){var n=i.get(i.mapDimension(e.dim),t);return Up("nameValue",{markerType:"subItem",markerColor:c,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(s["H"](n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(_f),DE=LE,RE=ZS.value;function BE(t,e){return s["i"]({show:e},t)}var NE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),l=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),h=this.get("triggerEvent"),d=s["H"](this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=a;null!=d.color&&(p=s["i"]({color:d.color},a));var f=s["I"](s["d"](d),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:l,nameLocation:"end",nameGap:u,nameTextStyle:p,triggerEvent:h},!1);if(s["C"](c)){var g=f.name;f.name=c.replace("{value}",null!=g?g:"")}else s["w"](c)&&(f.name=c(f.name,f));var m=new Ic(f,null,this.ecModel);return s["K"](m,FS.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:s["I"]({lineStyle:{color:"#bbb"}},RE.axisLine),axisLabel:BE(RE.axisLabel,!1),axisTick:BE(RE.axisTick,!1),splitLine:BE(RE.splitLine,!0),splitArea:BE(RE.splitArea,!0),indicator:[]},e}(Xu),FE=NE,zE=["axisLine","axisTickLabel","axisName"],VE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=s["H"](n,(function(t){var n=t.model.get("showName")?t.name:"",i=new tE(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));s["k"](i,(function(t){s["k"](zE,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),l=o.getModel("areaStyle"),c=r.get("show"),u=o.get("show"),h=a.get("color"),d=l.get("color"),p=s["t"](h)?h:[h],f=s["t"](d)?d:[d],g=[],m=[];if("circle"===i)for(var v=n[0].getTicksCoords(),y=e.cx,b=e.cy,x=0;x<v.length;x++){if(c){var w=E(g,p,x);g[w].push(new Qf({shape:{cx:y,cy:b,r:v[x].coord}}))}if(u&&x<v.length-1){w=E(m,f,x);m[w].push(new wg({shape:{cx:y,cy:b,r0:v[x].coord,r:v[x+1].coord}}))}}else{var _,C=s["H"](n,(function(t,n){var i=t.getTicksCoords();return _=null==_?i.length-1:Math.min(i.length-1,_),s["H"](i,(function(t){return e.coordToPoint(t.coord,n)}))})),A=[];for(x=0;x<=_;x++){for(var I=[],S=0;S<n.length;S++)I.push(C[S][x]);if(I[0]&&I.push(I[0].slice()),c){w=E(g,p,x);g[w].push(new Eg({shape:{points:I}}))}if(u&&A){w=E(m,f,x-1);m[w].push(new Sg({shape:{points:I.concat(A)}}))}A=I.slice().reverse()}}var M=a.getLineStyle(),k=l.getAreaStyle();s["k"](m,(function(t,e){this.group.add(mm(t,{style:s["i"]({stroke:"none",fill:f[e%f.length]},k),silent:!0}))}),this),s["k"](g,(function(t,e){this.group.add(mm(t,{style:s["i"]({fill:"none",stroke:p[e%p.length]},M),silent:!0}))}),this)}function E(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(Af),GE=VE,HE=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return o(e,t),e}(kk),WE=HE,UE=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(s["H"])(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new WE(n,new gM);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,r=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[r,o]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(o-c.angle);u<a&&(r=c,s=l,a=u)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=Li(n[0],i),this.cy=Li(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(Object(s["C"])(a)||Object(s["z"])(a))&&(a=[0,a]),this.r0=Li(a[0],o),this.r=Li(a[1],o),Object(s["k"])(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;Object(s["k"])(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();Object(s["k"])(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var r=i.get("splitNumber"),o=new gM;o.setExtent(0,r),o.setInterval(1),Object(s["k"])(n,(function(t,e){Dk(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}(),ZE=UE;function YE(t){t.registerCoordinateSystem("radar",ZE),t.registerComponentModel(FE),t.registerComponentView(GE),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function XE(t){jx(YE),t.registerChartView(jE),t.registerSeriesModel(DE),t.registerLayout(kE),t.registerProcessor(uS("radar")),t.registerPreprocessor(OE)}var qE="\0_ec_interaction_mutex";function KE(t,e,n){var i=$E(t);i[e]=n}function QE(t,e,n){var i=$E(t),r=i[e];r===n&&(i[e]=null)}function JE(t,e){return!!$E(t)[e]}function $E(t){return t[qE]||(t[qE]={})}_x({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},s["L"]);var tT=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=Object(s["c"])(n._mousedownHandler,n),r=Object(s["c"])(n._mousemoveHandler,n),o=Object(s["c"])(n._mouseupHandler,n),a=Object(s["c"])(n._mousewheelHandler,n),l=Object(s["c"])(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(s["i"])(Object(s["d"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",l))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",l)},n}return o(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!nt(t)){var e=t.target;while(e){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&iT("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!JE(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&et(t.event),nT(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){nt(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=iT("zoomOnMouseWheel",t,this._opt),n=iT("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;eT(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);eT(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:u,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!JE(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;eT(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(O);function eT(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(et(i.event),nT(t,e,n,i,r))}function nT(t,e,n,i,r){r.isAvailableBehavior=Object(s["c"])(iT,null,n,i),t.trigger(e,r)}function iT(t,e,n){var i=n[t];return!t||i&&(!Object(s["C"])(i)||e.event[i+"Key"])}var rT=tT;function oT(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function aT(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(c-1),r.y-=(i-r.y)*(c-1),r.scaleX*=c,r.scaleY*=c,r.dirty()}var sT,lT={axisPointer:1,tooltip:1,brush:1};function cT(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!lT.hasOwnProperty(i.mainType)&&r&&r.model!==n}function uT(t){if(Object(s["C"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var hT={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},dT=Object(s["F"])(hT),pT={"alignment-baseline":"textBaseline","stop-color":"stopColor"},fT=Object(s["F"])(pT),gT=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=uT(t);this._defsUsePending=[];var i=new _i;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),wT(n,i,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,i,r,null,!1,!1),u=u.nextSibling;if(IT(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=MT(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(c=LT(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;i=new _i,i.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new rs({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:c,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,l=t.nodeName.toLowerCase(),c=i;if("defs"===l&&(r=!0),"text"===l&&(o=!0),"defs"===l||"switch"===l)a=e;else{if(!r){var u=sT[l];if(u&&Object(s["q"])(sT,l)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:a};n.push(d),"g"===l&&(c=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:a});e.add(a)}}var p=mT[l];if(p&&Object(s["q"])(mT,l)){var f=p.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=f)}}if(a&&a.isGroup){var m=t.firstChild;while(m)1===m.nodeType?this._parseNode(m,a,n,c,r,o):3===m.nodeType&&o&&this._parseText(m,a),m=m.nextSibling}},t.prototype._parseText=function(t,e){var n=new Wa({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});bT(e,n),wT(t,n,this._defsUsePending,!1,!1),_T(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){sT={g:function(t,e){var n=new _i;return bT(e,n),wT(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new rs;return bT(e,n),wT(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Qf;return bT(e,n),wT(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new jg;return bT(e,n),wT(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new tg;return bT(e,n),wT(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=xT(i));var r=new Sg({shape:{points:n||[]},silent:!0});return bT(e,r),wT(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=xT(i));var r=new Eg({shape:{points:n||[]},silent:!0});return bT(e,r),wT(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new qa;return bT(e,n),wT(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new _i;return bT(e,a),wT(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new _i;return bT(e,a),wT(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",i=Uf(n);return bT(e,i),wT(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),mT={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Yg(e,n,i,r);return vT(t,o),yT(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new qg(e,n,i);return vT(t,r),yT(t,r),r}};function vT(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function yT(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};PT(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function bT(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(s["i"])(e.__inheritedStyle,t.__inheritedStyle))}function xT(t){for(var e=MT(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function wT(t,e,n,i,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},l={};1===t.nodeType&&(TT(t,e),PT(t,a,l),i||jT(t,a,l)),o.style=o.style||{},null!=a.fill&&(o.style.fill=AT(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=AT(o,"stroke",a.stroke,n)),Object(s["k"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),Object(s["k"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),r&&(o.__selfStyle=l),a.lineDash&&(o.style.lineDash=Object(s["H"])(MT(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function _T(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}var CT=/^url\(\s*#(.*?)\)/;function AT(t,e,n,i){var r=n&&n.match(CT);if(!r)return"none"===n&&(n=null),n;var o=Object(s["T"])(r[1]);i.push([t,e,o])}function IT(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}var ST=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function MT(t){return t.match(ST)||[]}var kT=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ET=Math.PI/180;function TT(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(kT,(function(t,e,n){return i.push(e,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=MT(a);switch(r=r||st(),s){case"translate":ht(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":pt(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":dt(r,r,-parseFloat(l[0])*ET);break;case"skewX":var c=Math.tan(parseFloat(l[0])*ET);ut(r,[1,0,c,1,0,0],r);break;case"skewY":var u=Math.tan(parseFloat(l[0])*ET);ut(r,[1,u,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}e.setLocalTransform(r)}}var OT=/([^\s:;]+)\s*:\s*([^:;]+)/g;function PT(t,e,n){var i=t.getAttribute("style");if(i){var r;OT.lastIndex=0;while(null!=(r=OT.exec(i))){var o=r[1],a=Object(s["q"])(hT,o)?hT[o]:null;a&&(e[a]=r[2]);var l=Object(s["q"])(pT,o)?pT[o]:null;l&&(n[l]=r[2])}}}function jT(t,e,n){for(var i=0;i<dT.length;i++){var r=dT[i],o=t.getAttribute(r);null!=o&&(e[hT[r]]=o)}for(i=0;i<fT.length;i++){r=fT[i],o=t.getAttribute(r);null!=o&&(n[pT[r]]=o)}}function LT(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}function DT(t,e){var n=new gT;return n.parse(t,e)}var RT=1e-8;function BT(t,e){return Math.abs(t-e)<RT}function NT(t,e,n){var i=0,r=t[0];if(!r)return!1;for(var o=1;o<t.length;o++){var a=t[o];i+=Ca(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return BT(r[0],s[0])&&BT(r[1],s[1])||(i+=Ca(r[0],r[1],s[0],s[1],e,n)),0!==i}var FT=[];function zT(t,e){for(var n=0;n<t.length;n++)A(t[n],t[n],e)}function VT(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(I(e,e,o),S(n,n,o))}}function GT(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],c=t[s][1],u=o*c-l*a;e+=u,n+=(o+l)*u,i+=(a+c)*u,o=l,a=c}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}var HT=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),WT=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),UT=function(){function t(t){this.type="linestring",this.points=t}return t}(),ZT=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return o(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return GT(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return Object(s["k"])(r,(function(e){"polygon"===e.type?VT(e.exterior,n,i,t):Object(s["k"])(e.points,(function(e){VT(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new Mt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(NT(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(NT(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new Mt(t,e,n,i),l=r.calculateTransform(a),c=this.geometries,u=0;u<c.length;u++){var h=c[u];"polygon"===h.type?(zT(h.exterior,l),Object(s["k"])(h.interiors,(function(t){zT(t,l)}))):Object(s["k"])(h.points,(function(t){zT(t,l)}))}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(HT),YT=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return o(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=lt(FT),r=t;while(r&&!r.isGeoSVGGraphicRoot)ut(i,r.getLocalTransform(),i),r=r.parent;return ft(i,i),A(n,n,i),n},e}(HT),XT=Object(s["f"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),qT=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(s["f"])(),this._freedGraphics=[],this._mapName=t,this._parsedXML=uT(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=QT(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&DT(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Object(s["b"])(null!=n)}catch(m){throw new Error("Invalid svg format\n"+m.message)}var i=new _i;i.add(n),i.isGeoSVGGraphicRoot=!0;var r=e.width,o=e.height,a=e.viewBoxRect,l=this._boundingRect;if(!l){var c=void 0,u=void 0,h=void 0,d=void 0;if(null!=r?(c=0,h=r):a&&(c=a.x,h=a.width),null!=o?(u=0,d=o):a&&(u=a.y,d=a.height),null==c||null==u){var p=n.getBoundingRect();null==c&&(c=p.x,h=p.width),null==u&&(u=p.y,d=p.height)}l=this._boundingRect=new Mt(c,u,h,d)}if(a){var f=LT(a,l);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}i.setClipPath(new rs({shape:l.plain()}));var g=[];return Object(s["k"])(e.named,(function(t){null!=XT.get(t.svgNodeTagLower)&&(g.push(t),KT(t.el))})),{root:i,boundingRect:l,named:g}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function KT(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function QT(t){var e=[],n=Object(s["f"])();return Object(s["k"])(t,(function(t){if(null==t.namedFrom){var i=new YT(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}function JT(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return s["k"](i,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=tO(r,i,n);break;case"Polygon":$T(r,i,n);break;case"MultiLineString":$T(r,i,n);break;case"MultiPolygon":s["k"](r,(function(t,e){return $T(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}function $T(t,e,n){for(var i=0;i<t.length;i++)t[i]=tO(t[i],e[i],n)}function tO(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function eO(t,e){return t=JT(t),s["H"](s["n"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new WT(o[0],o.slice(1)));break;case"MultiPolygon":s["k"](i.coordinates,(function(t){t[0]&&r.push(new WT(t[0],t.slice(1)))}));break;case"LineString":r.push(new UT([i.coordinates]));break;case"MultiLineString":r.push(new UT(i.coordinates))}var a=new ZT(n[e||"name"],r,n.cp);return a.properties=n,a}))}for(var nO=[126,25],iO="南海诸岛",rO=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],oO=0;oO<rO.length;oO++)for(var aO=0;aO<rO[oO].length;aO++)rO[oO][aO][0]/=10.5,rO[oO][aO][1]/=-14,rO[oO][aO][0]+=nO[0],rO[oO][aO][1]+=nO[1];function sO(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===iO)return;e.push(new ZT(iO,s["H"](rO,(function(t){return{type:"polygon",exterior:t}})),nO))}}var lO={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function cO(t,e){if("china"===t){var n=lO[e.name];if(n){var i=e.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,e.setCenter(i)}}}var uO=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function hO(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:uO[0]})}var dO="name",pO=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=Object(s["f"])(),this._mapName=t,this._specialAreas=n,this._geoJSON=gO(e)}return t.prototype.load=function(t,e){e=e||dO;var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:fO(i)})}var r=Object(s["f"])(),o=[];return Object(s["k"])(n.regions,(function(e){var n=e.name;t&&Object(s["q"])(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Mt(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?eO(i,t):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return sO(n,e),Object(s["k"])(e,(function(t){var e=t.name;cO(n,t),hO(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function fO(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function gO(t){return Object(s["C"])(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var mO=Object(s["f"])(),vO={registerMap:function(t,e,n){if(e.svg){var i=new qT(t,e.svg);mO.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new pO(t,r,n);mO.set(t,i)}},getGeoResource:function(t){return mO.get(t)},getMapForUser:function(t){var e=mO.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var i=mO.get(t);if(i)return i.load(e,n)}},yO=["rect","circle","line","ellipse","polygon","polyline","path"],bO=s["f"](yO),xO=s["f"](yO.concat(["g"])),wO=s["f"](yO.concat(["g"])),_O=kr();function CO(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function AO(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var IO=function(){function t(t){var e=new _i;this.uid=Mc("ec_map_draw"),this._controller=new rT(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new _i),e.add(this._svgGroup=new _i)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),h=u.raw,d=u.roam,p=!l.childAt(0)||r;p?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):Gl(c,d,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=s["f"](),n=s["f"](),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,l=t.geo.projection,c=l&&l.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){for(var e=[],n=!c&&l&&l.project,i=0;i<t.length;++i){var r=u(t[i],n);r&&e.push(r)}return e}function d(t){return{shape:{points:h(t)}}}i.removeAll(),s["k"](t.geo.regions,(function(r){var h=r.name,p=e.get(h),f=n.get(h)||{},g=f.dataIdx,m=f.regionModel;p||(p=e.set(h,new _i),i.add(p),g=a?a.indexOfName(h):null,m=t.isGeo?o.getRegionModel(h):a?a.getItemModel(g):null,n.set(h,{dataIdx:g,regionModel:m}));var v=[],y=[];s["k"](r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);c&&(e=OO(e,c)),s["k"](e,(function(t){v.push(new Sg(d(t)))}))}else{var n=t.points;c&&(n=OO(n,c,!0)),s["k"](n,(function(t){y.push(new Eg(d(t)))}))}}));var b=u(r.getCenter(),l&&l.project);function x(e,n){if(e.length){var i=new Hg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});p.add(i),SO(t,i,g,m),MO(t,i,h,m,o,g,b),n&&(AO(i),s["k"](i.states,AO))}}x(v),x(y,!0)})),e.each((function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;kO(t,e,i,s,o,a),EO(t,e,i,s,o),TO(t,e,i,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=s["f"](),r=!1;s["k"](this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,c=a?a.indexOfName(n):null,u=o.getRegionModel(n);if(null!=bO.get(s)&&l instanceof Lo&&SO(t,l,c,u),l instanceof Lo&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=wO.get(s)&&MO(t,l,n,u,o,c,null),kO(t,l,n,u,o,c),EO(t,l,n,u,o),null!=xO.get(s))){var h=TO(t,l,n,u,o);"self"===h&&(r=!0);var d=i.get(n)||i.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){ol(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=i&&(e.opacity=i),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=vO.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=vO.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function l(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,oT(o,t.dx,t.dy),n.dispatchAction(s["m"](l(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,aT(o,t.scale,t.originX,t.originY),n.dispatchAction(s["m"](l(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,o){return i.containPoint([r,o])&&!cT(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=_O(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function SO(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=CO(r),c=CO(o),u=CO(s),h=CO(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=Yy(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=c,e.ensureState("select").style=u,e.ensureState("blur").style=h,ol(e)}function MO(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),o)),u=s&&s.getItemLayout(o);if(l||c||u&&u.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;$l(e,tc(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},p);var f=e.getTextContent();if(f&&(_O(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function kO(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):Cs(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function EO(t,e,n,i,r){t.data||Lm({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function TO(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Ml(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Ll(e,r,n),a}function OO(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var l=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&l.polygonStart(),s["k"](t,(function(t){l.lineStart();for(var e=0;e<t.length;e++)l.point(t[e][0],t[e][1]);l.lineEnd()})),!n&&l.polygonEnd(),r}var PO=IO,jO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){o=this._mapDraw;o&&r.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new PO(n);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Qf({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Ls+1)});if(!s){var c=t.mainSeries.getData(),u=i.getName(n),h=c.indexOfName(u),d=i.getItemModel(n),p=d.getModel("label"),f=c.getItemGraphicEl(h);$l(l,tc(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:u}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){$s(l,t)}}r.add(l)}}}))},e.type="map",e}(Um),LO=jO,DO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return o(e,t),e.prototype.getInitialData=function(t){for(var e=xS(this,{coordDimensions:["value"],encodeDefaulter:s["h"](hh,this)}),n=s["f"](),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,!0)}var l=vO.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return s["k"](l.regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var c=a[l].originalData.indexOfName(o),u=i.mapDimension("value");isNaN(a[l].originalData.get(u,c))||s.push(a[l].name)}return Up("section",{header:s.join(", "),noHeader:!s.length,blocks:[Up("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=ry(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(_f),RO=DO;function BO(t,e){var n={};return s["k"](t,(function(t){t.each(t.mapDimension("value"),(function(e,i){var r="ec-"+t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+t[0].getName(r),s=0,l=1/0,c=-1/0,u=n[a].length,h=0;h<u;h++)l=Math.min(l,n[a][h]),c=Math.max(c,n[a][h]),s+=n[a][h];return o="min"===e?l:"max"===e?c:"average"===e?s/u:s,0===u?NaN:o}))}function NO(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),s["k"](e,(function(t,e){for(var n=BO(s["H"](t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]}))}function FO(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};s["k"](n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!r[e],o.setItemLayout(t,n)})),e[i]=!0}}))}var zO=A,VO=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new qn,n._rawTransformable=new qn,n.name=e,n}return o(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Mt(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new Mt(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Mt(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Li(t[0],e.getWidth()),Li(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=A([],i,t),n=A([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),ct(this.transform||(this.transform=[]),e.transform||st()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],ft(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new qn;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?zO(n,t,i):c(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?zO([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=GO(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=GO(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(qn);function GO(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var HO=VO,WO={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},UO=["lng","lat"],ZO=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=UO,r.type="geo",r._nameCoordMap=s["f"](),r.map=n;var o,a=i.projection,l=vO.load(n,i.nameMap,i.nameProperty),c=vO.getGeoResource(n),u=(r.resourceType=c?c.type:null,r.regions=l.regions),h=WO[c.type];if(r._regionsMap=l.regionsMap,r.regions=l.regions,r.projection=a,a)for(var d=0;d<u.length;d++){var p=u[d].getBoundingRect(a);o=o||p.clone(),o.union(p)}else o=l.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:s["P"](i.aspectScale,h.aspectScale),r._invertLongitute=!a&&h.invertLongitute,r}return o(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new Mt(t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(s["C"](t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=YO(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=YO(e);return i===this?i.pointToData(n):null},e}(HO);function YO(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Pr).models[0]||{}).coordinateSystem:null}s["K"](ZO,HO);var XO=ZO;function qO(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],c=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var u=function(t,e,n,a){for(var s=n-t,l=a-e,c=0;c<=100;c++){var u=c/100,h=o.project([t+s*u,e+l*u]);I(i,i,h),S(r,r,h)}};u(a,s,l,s),u(l,s,l,c),u(l,c,a,c),u(a,c,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var h,d,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),m=t.get("layoutSize"),v=e.getWidth(),y=e.getHeight(),b=f.width/f.height*this.aspectScale,x=!1;if(g&&m&&(h=[Li(g[0],v),Li(g[1],y)],d=Li(m,Math.min(v,y)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(x=!0)),x)p={},b>1?(p.width=d,p.height=d/b):(p.height=d,p.width=d*b),p.y=h[1]-p.height/2,p.x=h[0]-p.width/2;else{var w=t.getBoxLayoutParams();w.aspect=b,p=Nu(w,{width:v,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function KO(t,e){s["k"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var QO=function(){function t(){this.dimensions=UO}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new XO(o+r,o,s["m"]({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=qO,a.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var i=t.get("geoIndex")||0;t.coordinateSystem=n[i]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),s["k"](r,(function(t,r){var o=s["H"](t,(function(t){return t.get("nameMap")})),a=new XO(r,r,s["m"]({nameMap:s["J"](o)},i(t[0])));a.zoomLimit=s["O"].apply(null,s["H"](t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=qO,a.resize(t[0],e),s["k"](t,(function(t){t.coordinateSystem=a,KO(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=s["f"](),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var l=vO.load(e,n,i);return s["k"](l.regions,(function(t){var e=t.name;!o.get(e)&&r.push({name:e})})),r},t}(),JO=new QO,$O=JO,tP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e,n){var i=vO.getGeoResource(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),sr(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=$O.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=s["N"](e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new Ic(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),s["f"]()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ic(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return s["w"](i)?(r.status=e,i(r)):s["C"](i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var i=e.selectedMap||(e.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Xu),eP=tP;function nP(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function iP(t,e,n,i){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(nP(t,s),i)),null!=a){if(n){var l=n.min||0,c=n.max||1/0;a=Math.max(Math.min(r*a,c),l)/r}t.scaleX*=a,t.scaleY*=a;var u=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=u,t.y-=h,t.updateTransform(),t.setCenter(nP(t,s),i),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var rP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return o(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new PO(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;Wv(t.target,(function(t){return null!=(e=Cs(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=Cs(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Af),oP=rP;function aP(t,e,n){vO.registerMap(t,e,n)}function sP(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;Object(s["k"])(o.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var a=[];Object(s["k"])(i,(function(t,e){i[e]&&a.push(e)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",$O),t.registerComponentModel(eP),t.registerComponentView(oP),t.registerImpl("registerMap",aP),t.registerImpl("getMap",(function(t){return vO.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var o=iP(r,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&Object(s["k"])(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function lP(t){jx(sP),t.registerChartView(LO),t.registerSeriesModel(RO),t.registerLayout(FO),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,NO),Vv("map",t.registerAction)}function cP(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[e];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function uP(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){gP(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=mP(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function hP(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function dP(t){return arguments.length?t:wP}function pP(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function fP(t,e){return Nu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gP(t){var e=t.children,n=e.length,i=0,r=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function mP(t,e,n,i){if(e){var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,h=s.hierNode.modifier;while(s=vP(s),o=yP(o),s&&o){r=vP(r),a=yP(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-c+i(s,o);d>0&&(xP(bP(s,t,n),t,d),c+=d,l+=d),h+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=a.hierNode.modifier}s&&!vP(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!yP(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,n=t)}return n}function vP(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function yP(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function bP(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function xP(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function wP(t,e){return t.parentNode===e.parentNode?1:2}var _P=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),CP=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new _P},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Li(e.forkPosition,1),h=[];h[l]=r[l],h[c]=r[c]+(a[c]-r[c])*u,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(Va),AP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new _i,n}return o(e,t),e.prototype.init=function(t,e){this._controller=new rT(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup,a=t.get("layout");"radial"===a?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var s=this._data;i.diff(s).add((function(e){IP(i,e)&&SP(i,e,null,o,t)})).update((function(e,n){var r=s.getItemGraphicEl(n);IP(i,e)?SP(i,e,r,o,t):r&&TP(s,n,r,o,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&TP(s,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var r=[],o=[];Ho(i,r,o);var a=this._min,s=this._max;o[0]-r[0]===0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]===0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new HO;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!cT(e,n,t)})),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){oT(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){aT(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1,r=e.getZoom(),o=(r-1)*n+1;return o/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Um);function IP(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function SP(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),l=a.getModel(),c=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?c:"#fff",h=t.tree.root,d=a.parentNode===h?a:a.parentNode||a,p=t.getItemGraphicEl(d.dataIndex),f=d.getLayout(),g=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:f,m=a.getLayout();o?(n=new hA(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=m.rawX,n.__radialRawY=m.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,Gl(n,{x:m.x,y:m.y},r);var v=n.getSymbolPath();if("radial"===r.get("layout")){var y=h.children[0],b=y.getLayout(),x=y.children.length,w=void 0,_=void 0;if(m.x===b.x&&!0===a.isExpand&&y.children.length){var C={x:(y.children[0].getLayout().x+y.children[x-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[x-1].getLayout().y)/2};w=Math.atan2(C.y-b.y,C.x-b.x),w<0&&(w=2*Math.PI+w),_=C.x<b.x,_&&(w-=Math.PI)}else w=Math.atan2(m.y-b.y,m.x-b.x),w<0&&(w=2*Math.PI+w),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(_=m.x<b.x,_&&(w-=Math.PI)):(_=m.x>b.x,_||(w-=Math.PI));var A=_?"left":"right",I=l.getModel("label"),S=I.get("rotate"),M=S*(Math.PI/180),k=v.getTextContent();k&&(v.setTextConfig({position:I.get("position")||A,rotation:null==S?-w:M,origin:"center"}),k.setStyle("verticalAlign","middle"))}var E=l.get(["emphasis","focus"]),T="relative"===E?s["e"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():null;T&&(Cs(n).focus=T),MP(r,a,h,n,g,f,m,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Ts||$s(n.__edge,e)}})}function MP(t,e,n,i,r,o,a,l){var c=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),d=t.getOrient(),p=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),g=c.getModel("lineStyle").getLineStyle(),m=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(m||(m=i.__edge=new Ng({shape:OP(h,d,p,r,r)})),Gl(m,{shape:OP(h,d,p,o,a)},t));else if("polyline"===u)if("orthogonal"===h){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,y=[],b=0;b<v.length;b++){var x=v[b].getLayout();y.push([x.x,x.y])}m||(m=i.__edge=new CP({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:f}})),Gl(m,{shape:{parentPoint:[a.x,a.y],childPoints:y}},t)}}else 0;m&&("polyline"!==u||e.isExpand)&&(m.useStyle(s["i"]({strokeNoScale:!0,fill:null},g)),Ol(m,c,"lineStyle"),ol(m),l.add(m))}function kP(t,e,n,i,r){var o=e.tree.root,a=EP(o,t),s=a.source,l=a.sourceLayout,c=e.getItemGraphicEl(t.dataIndex);if(c){var u=e.getItemGraphicEl(s.dataIndex),h=u.__edge,d=c.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),m=i.get(["lineStyle","curveness"]);d&&("curve"===p?Ul(d,{shape:OP(f,g,m,l,l),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}):"polyline"===p&&"orthogonal"===i.get("layout")&&Ul(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}))}}function EP(t,e){var n,i=e.parentNode===t?e:e.parentNode||e;while(n=i.getLayout(),null==n)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function TP(t,e,n,i,r){var o=t.tree.getNodeByDataIndex(e),a=t.tree.root,s=EP(a,o).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Ul(n,{x:s.x+1,y:s.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(e){kP(e,t,i,r,l)})),kP(o,t,i,r,l)}function OP(t,e,n,i,r){var o,a,s,l,c,u,h,d;if("radial"===t){c=i.rawX,h=i.rawY,u=r.rawX,d=r.rawY;var p=pP(c,h),f=pP(c,h+(d-h)*n),g=pP(u,d+(h-d)*n),m=pP(u,d);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return c=i.x,h=i.y,u=r.x,d=r.y,"LR"!==e&&"RL"!==e||(o=c+(u-c)*n,a=h,s=u+(c-u)*n,l=d),"TB"!==e&&"BT"!==e||(o=c,a=h+(d-h)*n,s=u,l=d+(h-d)*n),{x1:c,y1:h,x2:u,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var PP=AP,jP=kr();function LP(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,VP(e,n,t),Object(s["k"])(n,(function(n){Object(s["k"])(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(s["h"])(DP,t))}))})),e.wrapMethod("cloneShallow",Object(s["h"])(BP,t)),Object(s["k"])(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(s["h"])(RP,t))})),Object(s["b"])(n[e.dataType]===e)}function DP(t,e){if(zP(this)){var n=Object(s["m"])({},jP(this).datas);n[this.dataType]=e,VP(e,n,t)}else GP(e,this.dataType,jP(this).mainData,t);return e}function RP(t,e){return t.struct&&t.struct.update(),e}function BP(t,e){return Object(s["k"])(jP(e).datas,(function(n,i){n!==e&&GP(n.cloneShallow(),i,e,t)})),e}function NP(t){var e=jP(this).mainData;return null==t||null==e?e:jP(e).datas[t]}function FP(){var t=jP(this).mainData;return null==t?[{data:t}]:Object(s["H"])(Object(s["F"])(jP(t).datas),(function(e){return{type:e,data:jP(t).datas[e]}}))}function zP(t){return jP(t).mainData===t}function VP(t,e,n){jP(t).datas={},Object(s["k"])(e,(function(e,i){GP(e,i,t,n)}))}function GP(t,e,n,i){jP(n).datas[e]=t,jP(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=NP,t.getLinkedDataAll=FP}var HP=LP,WP=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){s["w"](t)&&(n=e,e=t,t=null),t=t||{},s["C"](t)&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),UP=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),o=[],a=1;function l(t,e){var n=t.value;a=Math.max(a,s["t"](n)?n.length:1),o.push(t);var i=new WP(xr(t.name,""),r);e?ZP(i,e):r.root=i,r._nodes.push(i);var c=t.children;if(c)for(var u=0;u<c.length;u++)l(c[u],i)}l(e),r.root.updateDepthAndHeight(0);var c=VC(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new zC(c,n);return u.initData(o),i&&i(u),HP({mainData:u,struct:r,structAttr:"tree"}),r.update(),r},t}();function ZP(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var YP=UP;function XP(t,e,n){if(t&&s["r"](e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(s["C"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function qP(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function KP(t,e){var n=qP(t);return s["r"](n,e)>=0}function QP(t,e){var n=[];while(t){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var JP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return o(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Ic(n,this,this.ecModel),r=YP.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}var a=0;r.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return Up("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=QP(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(_f),$P=JP;function tj(t,e,n){var i,r=[t],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}while(i=o.pop())e(i,n)}function ej(t,e){var n,i=[t];while(n=i.pop())if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function nj(t,e){t.eachSeriesByType("tree",(function(t){ij(t,e)}))}function ij(t,e){var n=fP(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=dP((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=dP());var s=t.getData().tree.root,l=s.children[0];if(l){cP(s),tj(l,uP,a),s.hierNode.modifier=-l.hierNode.prelim,ej(l,hP);var c=l,u=l,h=l;ej(l,(function(t){var e=t.getLayout().x;e<c.getLayout().x&&(c=t),e>u.getLayout().x&&(u=t),t.depth>h.depth&&(h=t)}));var d=c===u?1:a(c,u)/2,p=d-c.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=r/(u.getLayout().x+d+p),g=o/(h.depth-1||1),ej(l,(function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=pP(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(u.getLayout().x+d+p),f=r/(h.depth-1||1),ej(l,(function(t){v=(t.getLayout().x+p)*g,m="LR"===y?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(u.getLayout().x+d+p),g=o/(h.depth-1||1),ej(l,(function(t){m=(t.getLayout().x+p)*f,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)})))}}}function rj(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(s["m"])(r,i)}))}))}function oj(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=e.coordinateSystem,r=iP(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}function aj(t){t.registerChartView(PP),t.registerSeriesModel($P),t.registerLayout(nj),t.registerVisual(rj),oj(t)}var sj=["treemapZoomToNode","treemapRender","treemapMove"];function lj(t){for(var e=0;e<sj.length;e++)t.registerAction({type:sj[e],update:"updateView"},s["L"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var i=["treemapZoomToNode","treemapRootToNode"],r=XP(t,i,e);if(r){var o=e.getViewRoot();o&&(t.direction=KP(o,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}function cj(t){var e=t.getData(),n=e.tree,i={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var r=_h(t.ecModel,n.name||n.dataIndex+"",i);e.setVisual("decal",r)}))}var uj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};hj(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new Ic({itemStyle:r},this,e);i=t.levels=dj(i,e);var a=s["H"](i||[],(function(t){return new Ic(t,o,e)}),this),l=YP.createTree(n,this,c);function c(t){t.wrapMethod("getItemModel",(function(t,e){var n=l.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}return l.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return Up("nameValue",{name:o,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=QP(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},s["m"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=s["f"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){cj(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(_f);function hj(t){var e=0;s["k"](t.children,(function(t){hj(t);var n=t.value;s["t"](n)&&(n=n[0]),e+=n}));var n=t.value;s["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),s["t"](t.value)?t.value[0]=n:t.value=n}function dj(t,e){var n=ar(e.get("color")),i=ar(e.get(["aria","decal","decals"]));if(n){var r,o;t=t||[],s["k"](t,(function(t){var e=new Ic(t),n=e.get("color"),i=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(e.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=t[0]||(t[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),t}}var pj=uj,fj=8,gj=8,mj=5,vj=function(){function t(t){this.group=new _i,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,a,s,l,c,i),Fu(o,u.pos,u.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=xr(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*fj,e.emptyItemWidth);e.totalWidth+=a+gj,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var l=0,c=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),h=Bu(e.pos,e.box),d=e.totalWidth,p=e.renderList,f=i.getModel("itemStyle").getItemStyle(),g=p.length-1;g>=0;g--){var m=p[g],v=m.node,y=m.width,b=m.text;d>h.width&&(d-=y-c,y=c,b=null);var x=new Sg({shape:{points:yj(l,0,y,u,g===p.length-1,0===g)},style:Object(s["i"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new _s({style:ec(r,{text:b})}),textConfig:{position:"inside"},z2:1e4*Ls,onclick:Object(s["h"])(a,v)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=ec(o,{text:b}),x.ensureState("emphasis").style=f,Ml(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),bj(x,t,v),l+=y+gj}},t.prototype.remove=function(){this.group.removeAll()},t}();function yj(t,e,n,i,r,o){var a=[[r?t:t-mj,e],[t+n,e],[t+n,e+i],[r?t:t-mj,e+i]];return!o&&a.splice(2,0,[t+n+mj,e+i/2]),!r&&a.push([t,e+i/2]),a}function bj(t,e,n){Cs(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&QP(n,e)}}var xj=vj,wj=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function _j(){return new wj}var Cj=_i,Aj=rs,Ij=3,Sj="label",Mj="upperLabel",kj=10*Ls,Ej=2*Ls,Tj=3*Ls,Oj=to([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Pj=function(t){var e=Oj(t);return e.stroke=e.fill=e.lineWidth=null,e},jj=kr(),Lj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=Dj(),n}return o(e,t),e.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(s["r"])(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=["treemapZoomToNode","treemapRootToNode"],a=XP(i,o,t),l=i&&i.type,c=t.layoutInfo,u=!this._oldTree,h=this._storage,d="treemapRootToNode"===l&&a&&h?{rootNodeGroup:h.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(c),f=t.get("animation"),g=this._doRender(p,t,d);!f||u||l&&"treemapZoomToNode"!==l&&"treemapRootToNode"!==l?g.renderFinally():this._doAnimation(p,g,t,d),this._resetController(n),this._renderBreadcrumb(t,n,a)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new Cj,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,o=Dj(),a=Dj(),l=this._storage,c=[];function u(t,i,r,s){return Rj(e,a,l,n,o,c,t,i,r,s)}d(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var h=p(l);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:h,renderFinally:f};function d(t,e,n,i,r){function o(t){return t.getId()}function a(o,a){var s=null!=o?t[o]:null,l=null!=a?e[a]:null,c=u(s,l,n,r);c&&d(s&&s.viewChildren||[],l&&l.viewChildren||[],c,i,r+1)}i?(e=t,Object(s["k"])(t,(function(t,e){!t.isRemoved()&&a(e,e)}))):new uC(e,t,o,o).add(a).update(a).remove(Object(s["h"])(a,null)).execute()}function p(t){var e=Dj();return t&&Object(s["k"])(t,(function(t,n){var i=e[n];Object(s["k"])(t,(function(t){t&&(i.push(t),jj(t).willDelete=!0)}))})),e}function f(){Object(s["k"])(h,(function(t){Object(s["k"])(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(s["k"])(c,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(s["w"])(r)?0:r)||0,l=(Object(s["w"])(o)?null:o)||"cubicOut",c=_j();Object(s["k"])(e.willDeleteEls,(function(t,e){Object(s["k"])(t,(function(t,n){if(!t.invisible){var r,o=t.parent,s=jj(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:s.nodeWidth,height:s.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;s.willDelete||(u=s.nodeWidth/2,h=s.nodeHeight/2),r="nodeGroup"===e?{x:u,y:h,style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}r&&c.add(t,r,a,0,l)}}))})),Object(s["k"])(this._storage,(function(t,n){Object(s["k"])(t,(function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof _i?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=Object(s["m"])({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),c.add(t,o,a,0,l))}))}),this),this._state="animating",c.finished(Object(s["c"])((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new rT(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",Object(s["c"])(this._onPan,this)),e.on("zoom",Object(s["c"])(this._onZoom,this)));var n=new Mt(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,i){return n.contain(e,i)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>Ij||Math.abs(t.dy)>Ij)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Mt(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=st();ht(s,s,[-e,-n]),pt(s,s,[t.scale,t.scale]),ht(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Ou(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new xj(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(KP(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Dj(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(Um);function Dj(){return{nodeGroup:[],background:[],content:[]}}function Rj(t,e,n,i,r,o,a,l,c,u){if(a){var h=a.getLayout(),d=t.getData(),p=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),h&&h.isInView){var f=h.width,g=h.height,m=h.borderWidth,v=h.invisible,y=a.getRawIndex(),b=l&&l.getRawIndex(),x=a.viewChildren,w=h.upperHeight,_=x&&x.length,C=p.getModel("itemStyle"),A=p.getModel(["emphasis","itemStyle"]),I=p.getModel(["blur","itemStyle"]),S=p.getModel(["select","itemStyle"]),M=C.get("borderRadius")||0,k=V("nodeGroup",Cj);if(k){if(c.add(k),k.x=h.x||0,k.y=h.y||0,k.markRedraw(),jj(k).nodeWidth=f,jj(k).nodeHeight=g,h.isAboveViewRoot)return k;var E=V("background",Aj,u,Ej);E&&R(k,E,_&&h.upperLabelHeight);var T=p.getModel("emphasis"),O=T.get("focus"),P=T.get("blurScope"),j=T.get("disabled"),L="ancestor"===O?a.getAncestorsIndices():"descendant"===O?a.getDescendantIndices():O;if(_)jl(k)&&Pl(k,!1),E&&(Pl(E,!j),d.setItemGraphicEl(a.dataIndex,E),kl(E,L,P));else{var D=V("content",Aj,u,Tj);D&&B(k,D),E.disableMorphing=!0,E&&jl(E)&&Pl(E,!1),Pl(k,!j),d.setItemGraphicEl(a.dataIndex,k),kl(k,L,P)}return k}}}function R(e,n,i){var r=Cs(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:f,height:g,r:M}),v)N(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=Pj(C);l.fill=s;var c=Oj(A);c.fill=A.get("borderColor");var u=Oj(I);u.fill=I.get("borderColor");var h=Oj(S);if(h.fill=S.get("borderColor"),i){var d=f-2*m;F(n,s,o.opacity,{x:m,y:0,width:d,height:w})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=h,ol(n)}e.add(n)}function B(e,n){var i=Cs(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(f-2*m,0),o=Math.max(g-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:r,height:o,r:M}),v)N(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,c=Pj(C);c.fill=l,c.decal=s.decal;var u=Oj(A),h=Oj(I),d=Oj(S);F(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,ol(n)}e.add(n)}function N(t){!t.invisible&&o.push(t)}function F(e,n,i,r){var o=p.getModel(r?Mj:Sj),l=xr(p.get("name"),null),c=o.getShallow("show");$l(e,tc(p,r?Mj:Sj),{defaultText:c?l:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var d=u.style,f=Object(s["M"])(d.padding||0);r&&(e.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-f[1]-f[3],0),n=Math.max((r?r.height:e.shape.height)-f[0]-f[2],0);d.width===t&&d.height===n||u.setStyle({width:t,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",z(d,r,h);var g=u.getState("emphasis");z(g?g.style:null,r,h)}}function z(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,i,o,a){var s=null!=b&&n[t][b],l=r[t];return s?(n[t][b]=null,G(l,s)):v||(s=new i,s instanceof Lo&&(s.z2=Bj(o,a)),H(l,s)),e[t][y]=s}function G(t,e){var n=t[y]={};e instanceof Cj?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(s["m"])({},e.shape)}function H(t,e){var n=t[y]={},o=a.parentNode,s=e instanceof _i;if(o&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=r.background[o.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}function Bj(t,e){return t*kj+e}var Nj=Lj,Fj=s["k"],zj=s["A"],Vj=-1,Gj=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=s["d"](e);this.type=i,this.mappingMethod=n,this._normalizeData=tL[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(Uj(r),Hj(r)):"category"===n?r.categories?Wj(r):Uj(r,!0):(s["b"]("linear"!==n||r.dataExtent),Uj(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return s["c"](this._normalizeData,this)},t.listVisualTypes=function(){return s["F"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){s["A"](t)?s["k"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=s["t"](e)?[]:s["A"](e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&Fj(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(s["t"](t))t=t.slice();else{if(!zj(t))return[];var e=[];Fj(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var l=e[o].value;if(null!=l){if(l===t||s["C"](l)&&l===t+"")return o;n&&d(l,o)}}for(o=0,a=e.length;o<a;o++){var c=e[o],u=c.interval,h=c.close;if(u){if(u[0]===-1/0){if(eL(h[1],t,u[1]))return o}else if(u[1]===1/0){if(eL(h[0],u[0],t))return o}else if(eL(h[0],u[0],t)&&eL(h[1],t,u[1]))return o;n&&d(u[0],o),n&&d(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function d(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:Xj("color"),getColorMapper:function(){var t=this.option;return s["c"]("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),qj.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=Be["a"](e,t.parsedVisual,i),r?i:Be["h"](i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Be["h"](Be["a"](t,this.option.parsedVisual),"rgba")},category:qj,piecewise:function(t,e){var n=Jj.call(this,e);return null==n&&(n=Be["h"](Be["a"](t,this.option.parsedVisual),"rgba")),n},fixed:Kj}},colorHue:Zj((function(t,e){return Be["f"](t,e)})),colorSaturation:Zj((function(t,e){return Be["f"](t,null,e)})),colorLightness:Zj((function(t,e){return Be["f"](t,null,null,e)})),colorAlpha:Zj((function(t,e){return Be["e"](t,e)})),decal:{applyVisual:Xj("decal"),_normalizedToVisual:{linear:null,category:qj,piecewise:null,fixed:null}},opacity:{applyVisual:Xj("opacity"),_normalizedToVisual:Qj([0,1])},liftZ:{applyVisual:Xj("liftZ"),_normalizedToVisual:{linear:Kj,category:Kj,piecewise:Kj,fixed:Kj}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:Yj,category:qj,piecewise:function(t,e){var n=Jj.call(this,e);return null==n&&(n=Yj.call(this,t)),n},fixed:Kj}},symbolSize:{applyVisual:Xj("symbolSize"),_normalizedToVisual:Qj([0,1])}},t}();function Hj(t){var e=t.pieceList;t.hasSpecialVisual=!1,s["k"](e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function Wj(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(Fj(e,(function(t,e){n[t]=e})),!s["t"](i)){var r=[];s["A"](i)?Fj(i,(function(t,e){var i=n[e];r[null!=i?i:Vj]=t})):r[Vj]=i,i=$j(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}function Uj(t,e){var n=t.visual,i=[];s["A"](n)?Fj(n,(function(t){i.push(t)})):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),$j(t,i)}function Zj(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:Qj([0,1])}}function Yj(t){var e=this.option.visual;return e[Math.round(ji(t,[0,1],[0,e.length-1],!0))]||{}}function Xj(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function qj(t){var e=this.option.visual;return e[this.option.loop&&t!==Vj?t%e.length:t]}function Kj(){return this.option.visual[0]}function Qj(t){return{linear:function(e){return ji(e,t,this.option.visual,!0)},category:qj,piecewise:function(e,n){var i=Jj.call(this,n);return null==i&&(i=ji(e,t,this.option.visual,!0)),i},fixed:Kj}}function Jj(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=Gj.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function $j(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=s["H"](e,(function(t){var e=Be["g"](t);return e||[0,0,0,1]}))),e}var tL={linear:function(t){return ji(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Gj.findPieceIndex(t,e,!0);if(null!=n)return ji(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Vj:e},fixed:s["L"]};function eL(t,e,n){return t?e<=n:e<n}var nL=Gj,iL="itemStyle",rL=kr(),oL={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||aL(n,{},t.getViewRoot().getAncestors(),t)}};function aL(t,e,n,i){var r=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var l,c=r.getModel(iL),u=sL(c,e,i),h=a.ensureUniqueItemVisual(t.dataIndex,"style"),d=c.get("borderColor"),p=c.get("borderColorSaturation");null!=p&&(l=lL(u),d=cL(p,l)),h.stroke=d;var f=t.viewChildren;if(f&&f.length){var g=hL(t,r,o,c,u,f);Object(s["k"])(f,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=pL(r,u,t,e,g,i);aL(t,o,n,i)}}))}else l=lL(u),h.fill=l}}function sL(t,e,n){var i=Object(s["m"])({},e),r=n.designatedVisualItemStyle;return Object(s["k"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function lL(t){var e=uL(t,"color");if(e){var n=uL(t,"colorAlpha"),i=uL(t,"colorSaturation");return i&&(e=Object(Be["f"])(e,null,null,i)),n&&(e=Object(Be["e"])(e,n)),e}}function cL(t,e){return null!=e?Object(Be["f"])(e,null,null,t):null}function uL(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function hL(t,e,n,i,r,o){if(o&&o.length){var a=dL(e,"color")||null!=r.color&&"none"!==r.color&&(dL(e,"colorAlpha")||dL(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=e.get("colorMappingBy"),h={type:a.name,dataExtent:c,visual:a.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new nL(h);return rL(d).drColorMappingBy=u,d}}}function dL(t,e){var n=t.get(e);return Object(s["t"])(n)&&n.length?{name:e,range:n}:null}function pL(t,e,n,i,r,o){var a=Object(s["m"])({},e);if(r){var l=r.type,c="color"===l&&rL(r).drColorMappingBy,u="index"===c?i:"id"===c?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[l]=r.mapValueToVisual(u)}return a}var fL=Math.max,gL=Math.min,mL=s["O"],vL=s["k"],yL=["itemStyle","borderWidth"],bL=["itemStyle","gapWidth"],xL=["upperLabel","show"],wL=["upperLabel","height"],_L={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,l=Nu(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),c=a.size||[],u=Li(mL(l.width,c[0]),r),h=Li(mL(l.height,c[1]),o),d=i&&i.type,p=["treemapZoomToNode","treemapRootToNode"],f=XP(i,p,t),g="treemapRender"===d||"treemapMove"===d?i.rootRect:null,m=t.getViewRoot(),v=qP(m);if("treemapMove"!==d){var y="treemapZoomToNode"===d?TL(t,f,m,u,h):g?[g.width,g.height]:[u,h],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var x={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};m.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(w),CL(m,x,!1,0),w=m.getLayout(),vL(v,(function(t,e){var n=(v[e+1]||m).getValue();t.setLayout(s["m"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},w))}))}var _=t.getData().tree.root;_.setLayout(OL(l,g,f),!0),t.setLayoutInfo(l),PL(_,new Mt(-l.x,-l.y,r,o),v,m,0)}};function CL(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(yL),c=s.get(bL)/2,u=jL(s),h=Math.max(l,u),d=l-c,p=h-c;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:u},!0),r=fL(r-2*d,0),o=fL(o-d-p,0);var f=r*o,g=AL(t,s,f,e,n,i);if(g.length){var m={x:d,y:p,width:r,height:o},v=gL(r,o),y=1/0,b=[];b.area=0;for(var x=0,w=g.length;x<w;){var _=g[x];b.push(_),b.area+=_.getLayout().area;var C=kL(b,v,e.squareRatio);C<=y?(x++,y=C):(b.area-=b.pop().getLayout().area,EL(b,v,m,c,!1),v=gL(m.width,m.height),b.length=b.area=0,y=1/0)}if(b.length&&EL(b,v,m,c,!0),!n){var A=s.get("childrenVisibleMin");null!=A&&f<A&&(n=!0)}for(x=0,w=g.length;x<w;x++)CL(g[x],e,n,i+1)}}}function AL(t,e,n,i,r,o){var a=t.children||[],l=i.sort;"asc"!==l&&"desc"!==l&&(l=null);var c=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!c)return t.viewChildren=[];a=s["n"](a,(function(t){return!t.isRemoved()})),SL(a,l);var u=ML(e,a,l);if(0===u.sum)return t.viewChildren=[];if(u.sum=IL(e,n,u.sum,l,a),0===u.sum)return t.viewChildren=[];for(var h=0,d=a.length;h<d;h++){var p=a[h].getValue()/u.sum*n;a[h].setLayout({area:p})}return c&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function IL(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var c=r["asc"===i?a-l-1:l].getValue();c/n*e<o&&(s=l,n-=c)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}function SL(t,e){return e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i})),t}function ML(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],vL(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function kL(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)a=t[o].getLayout().area,a&&(a<r&&(r=a),a>i&&(i=a));var l=t.area*t.area,c=e*e*n;return l?fL(c*i/l,l/(c*r)):1/0}function EL(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],c=n[s[o]],u=e?t.area/e:0;(r||u>n[l[a]])&&(u=n[l[a]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=u?p.getLayout().area/u:0,m=f[l[a]]=fL(u-2*i,0),v=n[s[o]]+n[l[o]]-c,y=h===d-1||v<g?v:g,b=f[l[o]]=fL(y-2*i,0);f[s[a]]=n[s[a]]+gL(i,m/2),f[s[o]]=c+gL(i,b/2),c+=y,p.setLayout(f,!0)}n[s[a]]+=u,n[l[a]]-=u}function TL(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,c=l*t.option.zoomToNodeRatio;while(o=a.parentNode){for(var u=0,h=o.children,d=0,p=h.length;d<p;d++)u+=h[d].getValue();var f=a.getValue();if(0===f)return s;c*=u/f;var g=o.getModel(),m=g.get(yL),v=Math.max(m,jL(g));c+=4*m*m+(3*m+v)*Math.pow(c,.5),c>Gi&&(c=Gi),a=o}c<l&&(c=l);var y=Math.pow(c/l,.5);return[i*y,r*y]}function OL(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function PL(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new Mt(e.x-o.x,e.y-o.y,e.width,e.height);vL(t.viewChildren||[],(function(t){PL(t,l,n,i,r+1)}))}}function jL(t){return t.get(xL)?t.get(wL):0}function LL(t){t.registerSeriesModel(pj),t.registerChartView(Nj),t.registerVisual(oL),t.registerLayout(_L),lj(t)}function DL(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){Object(s["z"])(i)&&(i=o[i]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(i))return!1}return!0}))}))}function RL(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=a.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t),o=e.getShallow("category");if(null!=o){Object(s["C"])(o)&&(o=r["ec-"+o]);var a=n.getItemVisual(o,"style"),l=i.ensureUniqueItemVisual(t,"style");Object(s["m"])(l,a);for(var c=["symbol","symbolSize","symbolKeepAspect"],u=0;u<c.length;u++)i.setItemVisual(t,c[u],n.getItemVisual(o,c[u]))}}))}))}function BL(t){return t instanceof Array||(t=[t,t]),t}function NL(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=BL(t.get("edgeSymbol")),r=BL(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=BL(i.getShallow("symbol",!0)),a=BL(i.getShallow("symbolSize",!0)),l=i.getModel("lineStyle").getLineStyle(),c=n.ensureUniqueItemVisual(t,"style");switch(Object(s["m"])(c,l),c.stroke){case"source":var u=r.node1.getVisual("style");c.stroke=u&&u.fill;break;case"target":u=r.node2.getVisual("style");c.stroke=u&&u.fill;break}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var FL="--\x3e",zL=function(t){return t.get("autoCurveness")||null},VL=function(t,e){var n=zL(t),i=20,r=[];if(s["z"](n))i=n;else if(s["t"](n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},GL=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join(FL)},HL=function(t){var e=t.split(FL);return[e[0],e[2],e[1]].join(FL)},WL=function(t,e){var n=GL(t.node1,t.node2,e);return e.__edgeMap[n]},UL=function(t,e){var n=ZL(GL(t.node1,t.node2,e),e),i=ZL(GL(t.node2,t.node1,e),e);return n+i},ZL=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function YL(t){zL(t)&&(t.__curvenessList=[],t.__edgeMap={},VL(t))}function XL(t,e,n,i){if(zL(n)){var r=GL(t,e,n),o=n.__edgeMap,a=o[HL(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}function qL(t,e,n,i){var r=zL(e),o=s["t"](r);if(!r)return null;var a=WL(t,e);if(!a)return null;for(var l=-1,c=0;c<a.length;c++)if(a[c]===n){l=c;break}var u=UL(t,e);VL(e,u),t.lineStyle=t.lineStyle||{};var h=GL(t.node1,t.node2,e),d=e.__curvenessList,p=o?0:u%2?0:1;if(a.isForward)return d[p+l];var f=HL(h),g=ZL(f,e),m=d[l+g+p];return i?o?r&&0===r[0]?(g+p)%2?m:-m:((g%2?0:1)+p)%2?m:-m:(g+p)%2?m:-m:d[l+g+p]}function KL(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),QL(n,t)}}function QL(t,e){t.eachEdge((function(t,n){var i=s["Q"](t.getModel().get(["lineStyle","curveness"]),-qL(t,e,n,!0),0),r=u(t.node1.getLayout()),o=u(t.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),t.setLayout(a)}))}function JL(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];Object(s["k"])(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var o=0;o<i.count();o++){for(var a=[],l=!1,c=0;c<r.length;c++){var u=i.get(r[c],o);isNaN(u)||(l=!0),a.push(u)}l?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}QL(i.graph,t)}else e&&"none"!==e||KL(t)}))}function $L(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX,r=e.getZoom(),o=(r-1)*n+1;return o/i}function tD(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var eD=Math.PI,nD=[];function iD(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=t.getData(),l=a.graph,c=o.width/2+o.x,h=o.height/2+o.y,d=Math.min(o.width,o.height)/2,p=a.count();if(a.setLayout({cx:c,cy:h}),p){if(n){var f=r.pointToData(i),g=f[0],m=f[1],b=[g-c,m-h];y(b,b),v(b,b,d),n.setLayout([c+b[0],h+b[1]],!0);var x=t.get(["circular","rotateLabel"]);oD(n,x,c,h)}rD[e](t,l,a,d,c,h,p),l.eachEdge((function(e,n){var i,r=s["Q"](e.getModel().get(["lineStyle","curveness"]),qL(e,t,n),0),o=u(e.node1.getLayout()),a=u(e.node2.getLayout()),l=(o[0]+a[0])/2,d=(o[1]+a[1])/2;+r&&(r*=3,i=[c*r+l*(1-r),h*r+d*(1-r)]),e.setLayout([o,a,i])}))}}}var rD={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=c*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,i,r,o,a){var s=0;nD.length=a;var l=$L(t);e.eachNode((function(t){var e=tD(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=eD/2),nD[t.dataIndex]=n,s+=2*n}));var c=(2*eD-s)/a/2,u=0;e.eachNode((function(t){var e=c+nD[t.dataIndex];u+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(u)+r,i*Math.sin(u)+o]),u+=e}))}};function oD(t,e,n,i){var r=t.getGraphicEl();if(r){var o=t.getModel(),a=o.get(["label","rotate"])||0,l=r.getSymbolPath();if(e){var c=t.getLayout(),u=Math.atan2(c[1]-i,c[0]-n);u<0&&(u=2*Math.PI+u);var h=c[0]<n;h&&(u-=Math.PI);var d=h?"left":"right";l.setTextConfig({rotation:-u,position:d,origin:"center"});var p=l.ensureState("emphasis");s["m"](p.textConfig||(p.textConfig={}),{position:d})}else l.setTextConfig({rotation:a*=Math.PI/180})}}function aD(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&iD(t,"symbolSize")}))}var sD=p;function lD(t,e,n){for(var i=t,r=e,o=n.rect,a=o.width,s=o.height,d=[o.x+a/2,o.y+s/2],p=null==n.gravity?.1:n.gravity,m=0;m<i.length;m++){var v=i[m];v.p||(v.p=l(a*(Math.random()-.5)+d[0],s*(Math.random()-.5)+d[1])),v.pp=u(v.p),v.edges=null}var b,x,w=null==n.friction?.6:n.friction,_=w;return{warmUp:function(){_=.8*w},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){b=t},afterStep:function(t){x=t},step:function(t){b&&b(i,r);for(var e=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,l=a.n2;f(e,l.p,s.p);var u=g(e)-a.d,m=l.w/(s.w+l.w);isNaN(m)&&(m=0),y(e,e),!s.fixed&&sD(s.p,s.p,e,m*u*_),!l.fixed&&sD(l.p,l.p,e,-(1-m)*u*_)}}for(o=0;o<n;o++){var v=i[o];v.fixed||(f(e,d,v.p),sD(v.p,v.p,e,p*_))}for(o=0;o<n;o++){s=i[o];for(var w=o+1;w<n;w++){l=i[w];f(e,l.p,s.p);u=g(e);0===u&&(h(e,Math.random()-.5,Math.random()-.5),u=1);var C=(s.rep+l.rep)/u/u;!s.fixed&&sD(s.pp,s.pp,e,C),!l.fixed&&sD(l.pp,l.pp,e,-C)}}var A=[];for(o=0;o<n;o++){v=i[o];v.fixed||(f(A,v.p,v.pp),sD(v.p,v.p,A,_),c(v.pp,v.p))}_*=.992;var I=_<.01;x&&x(i,r,I),t&&t(I)}}}function cD(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel("force"),l=a.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):l&&"none"!==l?"circular"===l&&iD(t,"value"):KL(t);var u=r.getDataExtent("value"),h=o.getDataExtent("value"),d=a.get("repulsion"),p=a.get("edgeLength"),f=s["t"](d)?d:[d,d],g=s["t"](p)?p:[p,p];g=[g[1],g[0]];var m=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=ji(t,u,f);return isNaN(i)&&(i=(f[0]+f[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),v=o.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),o=ji(e,h,g);isNaN(o)&&(o=(g[0]+g[1])/2);var a=r.getModel(),l=s["Q"](r.getModel().get(["lineStyle","curveness"]),-qL(r,t,n,!0),0);return{n1:m[r.node1.dataIndex],n2:m[r.node2.dataIndex],d:o,curveness:l,ignoreForceLayout:a.get("ignoreForceLayout")}})),y=e.getBoundingRect(),b=lD(m,v,{rect:y,gravity:a.get("gravity"),friction:a.get("friction")});b.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&c(t[n].p,i.getNodeByIndex(n).getLayout())})),b.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[r.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=i.getEdgeByIndex(a),h=l.n1.p,d=l.n2.p,p=u.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],c(p[0],h),c(p[1],d),+l.curveness&&(p[2]=[(h[0]+d[0])/2-(h[1]-d[1])*l.curveness,(h[1]+d[1])/2-(d[0]-h[0])*l.curveness]),u.setLayout(p)}})),t.forceLayout=b,t.preservedPoints=n,b.step()}else t.forceLayout=null}))}function uD(t,e,n){var i=Object(s["m"])(t.getBoxLayoutParams(),{aspect:n});return Nu(i,{width:e.getWidth(),height:e.getHeight()})}function hD(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),o=r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];Ho(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),c=uD(t,e,l);isNaN(l)&&(a=[c.x,c.y],s=[c.x+c.width,c.y+c.height]);var u=s[0]-a[0],h=s[1]-a[1],d=c.width,p=c.height,f=t.coordinateSystem=new HO;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(a[0],a[1],u,h),f.setViewRect(c.x,c.y,d,p),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}})),n}var dD=jg.prototype,pD=Ng.prototype,fD=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}o(e,t)})(fD);function gD(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var mD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return o(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fD},e.prototype.buildPath=function(t,e){gD(e)?dD.buildPath.call(this,t,e):pD.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return gD(this.shape)?dD.pointAt.call(this,t):pD.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=gD(e)?[e.x2-e.x1,e.y2-e.y1]:pD.tangentAt.call(this,t);return y(n,n)},e}(Va),vD=mD,yD=["fromSymbol","toSymbol"];function bD(t){return"_"+t+"Type"}function xD(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=oy(r),c=ay(a||0,l);return i+l+c+(o||"")+(s||"")}function wD(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=oy(r),c=ay(a||0,l),u=ry(i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,u.name=t,u}}function _D(t){var e=new vD({name:"line",subPixelOptimize:!0});return CD(e.shape,t),e}function CD(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var AD=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return o(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=t.getItemLayout(e),o=_D(r);o.shape.percent=0,Hl(o,{shape:{percent:1}},i,e),this.add(o),Object(s["k"])(yD,(function(n){var i=wD(n,t,e);this.add(i),this[bD(n)]=xD(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};CD(a.shape,o),Gl(r,a,i,e),Object(s["k"])(yD,(function(n){var i=xD(n,t,e),r=bD(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=wD(n,t,e);this.add(o)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,l=n&&n.selectLineStyle,c=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,h=n&&n.focus,d=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(e),f=p.getModel("emphasis");o=f.getModel("lineStyle").getLineStyle(),a=p.getModel(["blur","lineStyle"]).getLineStyle(),l=p.getModel(["select","lineStyle"]).getLineStyle(),u=f.get("disabled"),h=f.get("focus"),d=f.get("blurScope"),c=tc(p)}var g=t.getItemVisual(e,"style"),m=g.stroke;r.useStyle(g),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=l,Object(s["k"])(yD,(function(t){var e=this.childOfName(t);if(e){e.setColor(m),e.style.opacity=g.opacity;for(var n=0;n<Ps.length;n++){var i=Ps[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var v=i.getRawValue(e);$l(this,c,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(null==v?t.getName(e):isFinite(v)?Di(v):v)+""});var y=this.getTextContent();if(y){var b=c.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var x=b.get("distance");Object(s["t"])(x)||(x=[x,x]),y.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Ml(this,h,d,u)},e.prototype.highlight=function(){ll(this)},e.prototype.downplay=function(){cl(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");CD(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){var r=1,o=this.parent;while(o)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),c=a.pointAt(s),u=f([],c,l);if(y(u,u),e&&(e.setPosition(l),I(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(c),I(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,p=i.__labelDistance,g=p[0]*r,m=p[1]*r,v=s/2,b=a.tangentAt(v),x=[b[1],-b[0]],w=a.pointAt(v);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var _=b[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var C=-Math.atan2(b[1],b[0]);c[0]<l[0]&&(C=Math.PI+C),i.rotation=C}var A=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=m,d="top";break;default:A=0,d="middle"}switch(i.__position){case"end":i.x=u[0]*g+c[0],i.y=u[1]*m+c[1],h=u[0]>.8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*g+l[0],i.y=-u[1]*m+l[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=g*_+l[0],i.y=l[1]+A,h=b[0]<0?"right":"left",i.originX=-g*_,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+A,h="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-g*_+c[0],i.y=c[1]+A,h=b[0]>=0?"right":"left",i.originX=g*_,i.originY=-A;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function I(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(_i),ID=AD,SD=function(){function t(t){this.group=new _i,this._LineCtor=t||ID}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=kD(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=kD(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||MD(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){var r=e.getItemLayout(i);if(TD(r)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){Rm(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(TD(i)){var r=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,r),this.group.add(r)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);TD(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();function MD(t){return t.animators&&t.animators.length>0}function kD(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:tc(e)}}function ED(t){return isNaN(t[0])||isNaN(t[1])}function TD(t){return t&&!ED(t[0])&&!ED(t[1])}var OD=SD,PD=[],jD=[],LD=[],DD=Se,RD=_,BD=Math.abs;function ND(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){PD[0]=DD(r[0],o[0],a[0],u),PD[1]=DD(r[1],o[1],a[1],u);var h=BD(RD(PD,e)-l);h<s&&(s=h,i=u)}for(var d=0;d<32;d++){var p=i+c;jD[0]=DD(r[0],o[0],a[0],i),jD[1]=DD(r[1],o[1],a[1],i),LD[0]=DD(r[0],o[0],a[0],p),LD[1]=DD(r[1],o[1],a[1],p);h=RD(jD,e)-l;if(BD(h)<.01)break;var f=RD(LD,e)-l;c/=2,h<0?f>=0?i+=c:i-=c:f>=0?i-=c:i+=c}return i}function FD(t,e){var n=[],i=Te,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),h=t.getVisual("fromSymbol"),d=t.getVisual("toSymbol");l.__original||(l.__original=[u(l[0]),u(l[1])],l[2]&&l.__original.push(u(l[2])));var g=l.__original;if(null!=l[2]){if(c(r[0],g[0]),c(r[1],g[2]),c(r[2],g[1]),h&&"none"!==h){var m=tD(t.node1),v=ND(r,g[0],m*e);i(r[0][0],r[1][0],r[2][0],v,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],v,n),r[0][1]=n[3],r[1][1]=n[4]}if(d&&"none"!==d){m=tD(t.node2),v=ND(r,g[1],m*e);i(r[0][0],r[1][0],r[2][0],v,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],v,n),r[1][1]=n[1],r[2][1]=n[2]}c(l[0],r[0]),c(l[1],r[2]),c(l[2],r[1])}else{if(c(o[0],g[0]),c(o[1],g[1]),f(a,o[1],o[0]),y(a,a),h&&"none"!==h){m=tD(t.node1);p(o[0],o[0],a,m*e)}if(d&&"none"!==d){m=tD(t.node2);p(o[1],o[1],a,-m*e)}c(l[0],o[0]),c(l[1],o[1])}}))}function zD(t){return"view"===t.type}var VD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){var n=new mA,i=new OD,r=this.group;this._controller=new rT(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(zD(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Gl(s,l,t)}FD(t.getGraph(),$L(t));var c=t.getData();o.updateData(c);var u=t.getEdgeData();a.updateData(u),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var p=t.get("layout");c.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),c.setItemLayout(n,[r.x,r.y]);break;case"circular":c.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),iD(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(n,[r.x,r.y]),QL(t.getGraph(),t),i.updateLayout(t);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Cs(r).focus=e.getAdjacentDataIndices())}})),c.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Cs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode((function(t){oD(t,f,g,m)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))})()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!cT(e,n,t)})),zD(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){oT(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){aT(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),FD(t.getGraph(),$L(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=$L(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){FD(t.getGraph(),$L(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Um),GD=VD;function HD(t){return"_EC_"+t}var WD=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[HD(t)]){var i=new UD(t,e);return i.hostGraph=this,this.nodes.push(i),n[HD(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[HD(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(s["z"](t)&&(t=this.nodes[t]),s["z"](e)&&(e=this.nodes[e]),t instanceof UD||(t=i[HD(t)]),e instanceof UD||(e=i[HD(e)]),t&&e){var o=t.id+"-"+e.id,a=new ZD(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),r[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof UD&&(t=t.id),e instanceof UD&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof UD||(e=this._nodesMap[HD(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null)){var a=[e];while(a.length){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var c=l[o],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(t.call(i,u,s))return;a.push(u),u.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),UD=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=s["f"](),e=s["f"](),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);var r=[i.node1],o=[i.node2],a=0;while(a<r.length){var l=r[a];a++,e.set(l.dataIndex,!0);for(var c=0;c<l.inEdges.length;c++)t.set(l.inEdges[c].dataIndex,!0),r.push(l.inEdges[c].node1)}a=0;while(a<o.length){var u=o[a];a++,e.set(u.dataIndex,!0);for(c=0;c<u.outEdges.length;c++)t.set(u.outEdges[c].dataIndex,!0),o.push(u.outEdges[c].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),ZD=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=s["f"](),e=s["f"]();t.set(this.dataIndex,!0);var n=[this.node1],i=[this.node2],r=0;while(r<n.length){var o=n[r];r++,e.set(o.dataIndex,!0);for(var a=0;a<o.inEdges.length;a++)t.set(o.inEdges[a].dataIndex,!0),n.push(o.inEdges[a].node1)}r=0;while(r<i.length){var l=i[r];r++,e.set(l.dataIndex,!0);for(a=0;a<l.outEdges.length;a++)t.set(l.outEdges[a].dataIndex,!0),i.push(l.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}},t}();function YD(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}s["K"](UD,YD("hostGraph","data")),s["K"](ZD,YD("hostGraph","edgeData"));var XD=WD;function qD(t,e,n,i,r){for(var o=new XD(i),a=0;a<t.length;a++)o.addNode(s["O"](t[a].id,t[a].name,a),a);var l=[],c=[],u=0;for(a=0;a<e.length;a++){var h=e[a],d=h.source,p=h.target;o.addEdge(d,p,u)&&(c.push(h),l.push(s["O"](xr(h.id,null),d+" > "+p)),u++)}var f,g=n.get("coordinateSystem");if("cartesian2d"===g||"polar"===g)f=rA(t,n);else{var m=Uh.get(g),v=m&&m.dimensions||[];s["r"](v,"value")<0&&v.concat(["value"]);var y=VC(t,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;f=new zC(y,n),f.initData(t)}var b=new zC(["value"],n);return b.initData(c,l),r&&r(f,b),HP({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var KD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new _S(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),sr(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){YL(this);var o=qD(i,n,this,!0,a);return s["k"](o.edges,(function(t){XL(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function a(t,e){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t}));var n=Ic.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=o,i}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=i,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Up("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var c=lf({series:this,dataIndex:t,multipleSeries:e});return c},e.prototype._updateCategoriesData=function(){var t=s["H"](this.option.categories||[],(function(t){return null!=t.value?t:s["m"]({value:0},t)})),e=new zC(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(_f),QD=KD,JD={type:"graphRoam",event:"graphRoam",update:"none"};function $D(t){t.registerChartView(GD),t.registerSeriesModel(QD),t.registerProcessor(DL),t.registerVisual(RL),t.registerVisual(NL),t.registerLayout(JL),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,aD),t.registerLayout(cD),t.registerCoordinateSystem("graphView",{dimensions:HO.dimensions,create:hD}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},s["L"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},s["L"]),t.registerAction(JD,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=e.coordinateSystem,r=iP(i,t,void 0,n);e.setCenter&&e.setCenter(r.center),e.setZoom&&e.setZoom(r.zoom)}))}))}var tR=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),eR=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return o(e,t),e.prototype.getDefaultShape=function(){return new tR},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(Va),nR=eR;function iR(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r),a=Li(n[0],e.getWidth()),s=Li(n[1],e.getHeight()),l=Li(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function rR(t,e){var n=null==t?"":t+"";return e&&(Object(s["C"])(e)?n=e.replace("{value}",n):Object(s["w"])(e)&&(n=e(t))),n}var oR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=iR(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap"),d=h?MI:yg,p=u.get("show"),f=u.getModel("lineStyle"),g=f.get("width"),m=[l,c];pa(m,!a),l=m[0],c=m[1];for(var v=c-l,y=l,b=[],x=0;p&&x<i.length;x++){var w=Math.min(Math.max(i[x][0],0),1);c=l+v*w;var _=new d({shape:{startAngle:y,endAngle:c,cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-g,r:r.r},silent:!0});_.setStyle({fill:i[x][1]}),_.setStyle(f.getLineStyle(["color","width"])),b.push(_),y=c}b.reverse(),Object(s["k"])(b,(function(t){return o.add(t)}));var C=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,C,r,l,c,a,g),this._renderTitleAndDetail(t,e,n,C,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,C,r,l,c,a,g)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,l,c){for(var u,h,d=this.group,p=r.cx,f=r.cy,g=r.r,m=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),b=t.getModel("axisTick"),x=t.getModel("axisLabel"),w=t.get("splitNumber"),_=b.get("splitNumber"),C=Li(y.get("length"),g),A=Li(b.get("length"),g),I=o,S=(a-o)/w,M=S/_,k=y.getModel("lineStyle").getLineStyle(),E=b.getModel("lineStyle").getLineStyle(),T=y.get("distance"),O=0;O<=w;O++){if(u=Math.cos(I),h=Math.sin(I),y.get("show")){var P=T?T+c:c,j=new jg({shape:{x1:u*(g-P)+p,y1:h*(g-P)+f,x2:u*(g-C-P)+p,y2:h*(g-C-P)+f},style:k,silent:!0});"auto"===k.stroke&&j.setStyle({stroke:i(O/w)}),d.add(j)}if(x.get("show")){P=x.get("distance")+T;var L=rR(Di(O/w*(v-m)+m),x.get("formatter")),D=i(O/w),R=u*(g-C-P)+p,B=h*(g-C-P)+f,N=x.get("rotate"),F=0;"radial"===N?(F=-I+2*Math.PI,F>Math.PI/2&&(F+=Math.PI)):"tangential"===N?F=-I-Math.PI/2:Object(s["z"])(N)&&(F=N*Math.PI/180),0===F?d.add(new _s({style:ec(x,{text:L,x:R,y:B,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:D}),silent:!0})):d.add(new _s({style:ec(x,{text:L,x:R,y:B,verticalAlign:"middle",align:"center"},{inheritColor:D}),silent:!0,originX:R,originY:B,rotation:F}))}if(b.get("show")&&O!==w){P=b.get("distance");P=P?P+c:c;for(var z=0;z<=_;z++){u=Math.cos(I),h=Math.sin(I);var V=new jg({shape:{x1:u*(g-P)+p,y1:h*(g-P)+f,x2:u*(g-A-P)+p,y2:h*(g-A-P)+f},silent:!0,style:E});"auto"===E.stroke&&V.setStyle({stroke:i((O+z/_)/w)}),d.add(V),I+=M}I-=M}else I+=S}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,l,c){var u=this.group,h=this._data,d=this._progressEls,p=[],f=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),v=t.getData(),y=v.mapDimension("value"),b=+t.get("min"),x=+t.get("max"),w=[b,x],_=[o,a];function C(e,n){var i,o=v.getItemModel(e),a=o.getModel("pointer"),s=Li(a.get("width"),r.r),l=Li(a.get("length"),r.r),c=t.get(["pointer","icon"]),u=a.get("offsetCenter"),h=Li(u[0],r.r),d=Li(u[1],r.r),p=a.get("keepAspect");return i=c?ry(c,h-s/2,d-l,s,l,null,p):new nR({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function A(t,e){var n=g.get("roundCap"),i=n?MI:yg,a=g.get("overlap"),s=a?g.get("width"):c/v.count(),u=a?r.r-s:r.r-(t+1)*s,h=a?r.r:r.r-t*s,d=new i({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:l,r0:u,r:h}});return a&&(d.z2=x-v.get(y,t)%x),d}(m||f)&&(v.diff(h).add((function(e){var n=v.get(y,e);if(f){var i=C(e,o);Hl(i,{rotation:-((isNaN(+n)?_[0]:ji(n,w,_,!0))+Math.PI/2)},t),u.add(i),v.setItemGraphicEl(e,i)}if(m){var r=A(e,o),a=g.get("clip");Hl(r,{shape:{endAngle:ji(n,w,_,a)}},t),u.add(r),As(t.seriesIndex,v.dataType,e,r),p[e]=r}})).update((function(e,n){var i=v.get(y,e);if(f){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=C(e,a);s.rotation=a,Gl(s,{rotation:-((isNaN(+i)?_[0]:ji(i,w,_,!0))+Math.PI/2)},t),u.add(s),v.setItemGraphicEl(e,s)}if(m){var l=d[n],c=l?l.shape.endAngle:o,b=A(e,c),x=g.get("clip");Gl(b,{shape:{endAngle:ji(i,w,_,x)}},t),u.add(b),As(t.seriesIndex,v.dataType,e,b),p[e]=b}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var l=v.getItemGraphicEl(t),c=v.getItemVisual(t,"style"),u=c.fill;if(l instanceof qa){var h=l.style;l.useStyle(Object(s["m"])({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},c))}else l.useStyle(c),"pointer"!==l.type&&l.setColor(u);l.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",i(ji(v.get(y,t),w,[0,1],!0))),l.z2EmphasisLift=0,Ol(l,e),Ml(l,r,o,a)}if(m){var d=p[t];d.useStyle(v.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Ol(d,e),Ml(d,r,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=ry(o,e.cx-r/2+Li(a[0],e.r),e.cy-r/2+Li(a[1],e.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),c=+t.get("max"),u=new _i,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new _s({silent:!0}),d[t]=new _s({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new _i,m=i(ji(o,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),b=r.cx+Li(y[0],r.r),x=r.cy+Li(y[1],r.r),w=h[e];w.attr({z2:f?0:2,style:ec(v,{x:b,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(w)}var _=n.getModel("detail");if(_.get("show")){var C=_.get("offsetCenter"),A=r.cx+Li(C[0],r.r),I=r.cy+Li(C[1],r.r),S=Li(_.get("width"),r.r),M=Li(_.get("height"),r.r),k=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,E=(w=d[e],_.get("formatter"));w.attr({z2:f?0:2,style:ec(_,{x:A,y:I,text:rR(o,E),width:isNaN(S)?null:S,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:k})}),hc(w,{normal:_},o,(function(t){return rR(t,E)})),p&&dc(w,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return rR(a?a.interpolatedValue:o,E)}}),g.add(w)}u.add(g)})),this.group.add(u),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(Um),aR=oR,sR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return o(e,t),e.prototype.getInitialData=function(t,e){return xS(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(_f),lR=sR;function cR(t){t.registerChartView(aR),t.registerSeriesModel(lR)}var uR=["itemStyle","opacity"],hR=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Eg,a=new _s;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return o(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(uR);l=null==l?1:l,n||Xl(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Hl(i,{style:{opacity:l}},r,e)):Gl(i,{style:{opacity:l},shape:{points:a.points}},r,e),Ol(i,o),this._updateLabel(t,e),Ml(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,c=t.getItemVisual(e,"style"),u=c.fill;$l(r,tc(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:c.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new vt(h[0][0],h[0][1]):null},Gl(r,{style:{x:l.x,y:l.y}},o,e),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),nw(n,iw(a),{stroke:u})},e}(Sg),dR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new hR(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);Yl(n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Um),pR=dR,fR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _S(s["c"](this.getData,this),s["c"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return xS(this,{coordDimensions:["value"],encodeDefaulter:s["h"](hh,this)})},e.prototype._defaultLabelLine=function(t){sr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(_f),gR=fR;function mR(t,e){return Nu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function vR(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,l=t.count();a<l;a++)r[a]=a;return Object(s["w"])(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?i[t]-i[e]:i[e]-i[t]})),r}function yR(t){var e=t.hostModel,n=e.get("orient");t.each((function(e){var i,r,o,a,s=t.getItemModel(e),l=s.getModel("label"),c=l.get("position"),u=s.getModel("labelLine"),h=t.getItemLayout(e),d=h.points,p="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(p)"insideLeft"===c?(r=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===c?(r=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,i="right"):(r=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var f=void 0,g=void 0,m=void 0,v=void 0,y=u.get("length");0,"left"===c?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=f-y,r=m-5,i="right"):"right"===c?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=f+y,r=m+5,i="left"):"top"===c?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-y,o=v-5,i="center"):"bottom"===c?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+y,o=v+5,i="center"):"rightTop"===c?(f="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(v=g-y,o=v-5,i="center"):(m=f+y,r=m+5,i="top")):"rightBottom"===c?(f=d[2][0],g=d[2][1],"horizontal"===n?(v=g+y,o=v+5,i="center"):(m=f+y,r=m+5,i="bottom")):"leftTop"===c?(f=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(v=g-y,o=v-5,i="center"):(m=f-y,r=m-5,i="right")):"leftBottom"===c?(f="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(v=g+y,o=v+5,i="center"):(m=f-y,r=m-5,i="right")):(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(v=g+y,o=v+5,i="center"):(m=f+y,r=m+5,i="left")),"horizontal"===n?(m=f,r=m):(v=g,o=v),a=[[f,g],[m,v]]}h.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:p}}))}function bR(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=mR(t,e),a=t.get("orient"),s=o.width,l=o.height,c=vR(n,r),u=o.x,h=o.y,d="horizontal"===a?[Li(t.get("minSize"),l),Li(t.get("maxSize"),l)]:[Li(t.get("minSize"),s),Li(t.get("maxSize"),s)],p=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var m=t.get("funnelAlign"),v=t.get("gap"),y="horizontal"===a?s:l,b=(y-v*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var r=n.get(i,t)||0,o=ji(r,[f,g],d,!0),c=void 0;switch(m){case"top":c=h;break;case"center":c=h+(l-o)/2;break;case"bottom":c=h+(l-o);break}return[[e,c],[e,c+o]]}var p,v=n.get(i,t)||0,y=ji(v,[f,g],d,!0);switch(m){case"left":p=u;break;case"center":p=u+(s-y)/2;break;case"right":p=u+s-y;break}return[[p,e],[p+y,e]]};"ascending"===r&&(b=-b,v=-v,"horizontal"===a?u+=s:h+=l,c=c.reverse());for(var w=0;w<c.length;w++){var _=c[w],C=c[w+1],A=n.getItemModel(_);if("horizontal"===a){var I=A.get(["itemStyle","width"]);null==I?I=b:(I=Li(I,s),"ascending"===r&&(I=-I));var S=x(_,u),M=x(C,u+I);u+=I+v,n.setItemLayout(_,{points:S.concat(M.slice().reverse())})}else{var k=A.get(["itemStyle","height"]);null==k?k=b:(k=Li(k,l),"ascending"===r&&(k=-k));S=x(_,h),M=x(C,h+k);h+=k+v,n.setItemLayout(_,{points:S.concat(M.slice().reverse())})}}yR(n)}))}function xR(t){t.registerChartView(pR),t.registerSeriesModel(gR),t.registerLayout(bR),t.registerProcessor(uS("funnel"))}var wR=.3,_R=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new _i,n._initialized=!1,n}return o(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,c=SR(t);function u(t){var e=IR(o,r,t,l,s);MR(e,o,t,c)}function h(e,n){var i=a.getItemGraphicEl(n),r=AR(o,e,l,s);o.setItemGraphicEl(e,i),Gl(i,{shape:{points:r}},t,e),Xl(i),MR(i,o,e,c)}function d(t){var e=a.getItemGraphicEl(t);r.remove(e)}if(o.diff(a).add(u).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=CR(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(p)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=SR(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var c=IR(i,this._dataGroup,l,o,r);c.incremental=!0,MR(c,i,l,a),s.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Um);function CR(t,e,n){var i=t.model,r=t.getRect(),o=new rs({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),Hl(o,{shape:{width:r.width,height:r.height}},e,n),o}function AR(t,e,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],s=t.get(t.mapDimension(a),e);kR(s,i.getAxis(a).type)||r.push(i.dataToPoint(s,a))}return r}function IR(t,e,n,i,r){var o=AR(t,n,i,r),a=new Eg({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function SR(t){var e=t.get("smooth",!0);return!0===e&&(e=wR),e=Ji(e),Object(s["l"])(e)&&(e=0),{smooth:e}}function MR(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),o=r.getModel("emphasis");Ol(t,r,"lineStyle"),Ml(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function kR(t,e){return"category"===e?null==t:null==t||isNaN(t)}var ER=_R,TR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(e,t),e.prototype.getInitialData=function(t,e){return rA(null,this,{useEncodeDefaulter:Object(s["c"])(OR,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(_f);function OR(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(s["k"])(e.dimensions,(function(t){var e=PR(t);n[t]=e})),n}}function PR(t){return+t.replace("dim","")}var jR=TR,LR=["lineStyle","opacity"],DR={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(LR,!0);null!=o&&(r=o)}var a=e.ensureUniqueItemVisual(n,"style");a.opacity=r}),t.start,t.end)}}}},RR=DR;function BR(t){NR(t),FR(t)}function NR(t){if(!t.parallel){var e=!1;s["k"](t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function FR(t){var e=ar(t.parallelAxis);s["k"](e,(function(e){if(s["A"](e)){var n=e.parallelIndex||0,i=ar(t.parallel)[n];i&&i.parallelAxisDefault&&s["I"](e,i.parallelAxisDefault,!1)}}))}var zR=5,VR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(s["k"])(GR,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(s["c"])(t,this))}),this)),Km(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){Qm(this,"_throttledDispatchExpand"),Object(s["k"])(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(s["m"])({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Af),GR={mousedown:function(t){HR(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(HR(this,"click")&&e){var n=[t.offsetX,t.offsetY],i=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(i>zR)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&HR(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function HR(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var WR=VR,UR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&s["I"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){s["k"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=s["n"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);s["k"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Xu),ZR=UR,YR=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return o(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(kk),XR=YR;function qR(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=QR(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=QR(s,[0,a]),r=o=QR(s,[r,o]),i=0}e[0]=QR(e[0],n),e[1]=QR(e[1],n);var l=KR(e,i);e[i]+=t;var c,u=r||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,e[i]=QR(e[i],h),c=KR(e,i),null!=r&&(c.sign!==l.sign||c.span<r)&&(e[1-i]=e[i]+l.sign*r),c=KR(e,i),null!=o&&c.span>o&&(e[1-i]=e[i]+c.sign*o),e}function KR(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function QR(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var JR=s["k"],$R=Math.min,tB=Math.max,eB=Math.floor,nB=Math.ceil,iB=Di,rB=Math.PI,oB=function(){function t(t,e,n){this.type="parallel",this._axesMap=s["f"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;JR(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new XR(t,YM(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();JR(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),ZM(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Nu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],c=this.dimensions.length,u=aB(e.get("axisExpandWidth"),l),h=aB(e.get("axisExpandCount")||0,[0,c]),d=e.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&s>0,p=e.get("axisExpandWindow");if(p)t=aB(p[1]-p[0],l),p[1]=p[0]+t;else{t=aB(u*(h-1),l);var f=e.get("axisExpandCenter")||eB(c/2);p=[u*f-t/2],p[1]=p[0]+t}var g=(s-t)/(c-h);g<3&&(g=0);var m=[eB(iB(p[0]/u,1))+1,nB(iB(p[1]/u,1))-1],v=g/u*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:g,axisExpandWindow:p,axisCount:c,winInnerIndices:m,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),JR(n,(function(e,n){var o=(i.axisExpandable?lB:sB)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:rB/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],c=s[r],u=st();dt(u,u,c),ht(u,u,l),this._axesLayout[e]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],l=[];s["k"](o,(function(e){a.push(t.mapDimension(e)),l.push(r.get(e).model)}));for(var c=this.hasAxisBrushed(),u=n;u<i;u++){var h=void 0;if(c){h="active";for(var d=t.getValues(a,u),p=0,f=o.length;p<f;p++){var g=l[p].getActiveState(d[p]);if("inactive"===g){h="inactive";break}}}else h="normal";e(h,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return _m([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return s["d"](this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",c=e.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),h=null!=u[0];if(c)h&&c&&s<r*u[0]?(l="jump",a=s-r*u[2]):h&&c&&s>r*(1-u[0])?(l="jump",a=s-r*(1-u[2])):(a=s-r*u[1])>=0&&(a=s-r*(1-u[1]))<=0&&(a=0),a*=e.axisExpandWidth/c,a?qR(a,i,o,"all"):l="none";else{var d=i[1]-i[0],p=o[1]*s/d;i=[tB(0,p-d/2)],i[1]=$R(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function aB(t,e){return $R(tB(t,e[0]),e[1])}function sB(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function lB(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,c=s,u=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],c=o,u=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}var cB=oB;function uB(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var o=new cB(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",Pr).models[0];t.coordinateSystem=e.coordinateSystem}})),n}var hB={create:uB},dB=hB,pB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return o(e,t),e.prototype.getAreaSelectStyle=function(){return to([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=s["d"](t);if(e)for(var n=e.length-1;n>=0;n--)Ri(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(Xu);s["K"](pB,FS);var fB=pB,gB=!0,mB=Math.min,vB=Math.max,yB=Math.pow,bB=1e4,xB=6,wB=6,_B="globalPan",CB={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},AB={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},IB={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},SB=0,MB=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new _i,n._uid="brushController_"+SB++,Object(s["k"])(oN,(function(t,e){this._handlers[e]=Object(s["c"])(t,this)}),n),n}return o(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||KE(e,_B,this._uid),Object(s["k"])(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(s["I"])(Object(s["d"])(IB),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;QE(t,_B,this._uid),Object(s["k"])(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(s["k"])(t,(function(t){e[t.panelId]=Object(s["d"])(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(s["H"])(t,(function(t){return Object(s["I"])(Object(s["d"])(IB),t,!0)}));var e="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new uC(n,t,l,a).add(c).update(c).remove(u).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function l(t,e){return a(t.__brushOption,e)}function c(e,a){var s=t[e];if(null!=a&&n[a]===o)i[e]=n[a];else{var l=i[e]=null!=a?(n[a].__brushOption=s,n[a]):EB(r,kB(r,s));PB(r,l)}}function u(t){n[t]!==o&&r.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),RB(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(O);function kB(t,e){var n=lN[e.brushType].createCover(t,e);return n.__brushOption=e,OB(n,e),t.group.add(n),n}function EB(t,e){var n=jB(e);return n.endCreating&&(n.endCreating(t,e),OB(e,e.__brushOption)),e}function TB(t,e){var n=e.__brushOption;jB(e).updateCoverShape(t,e,n.range,n)}function OB(t,e){var n=e.z;null==n&&(n=bB),t.traverse((function(t){t.z=n,t.z2=n}))}function PB(t,e){jB(e).updateCommon(t,e),TB(t,e)}function jB(t){return lN[t.__brushOption.brushType]}function LB(t,e,n){var i,r=t._panels;if(!r)return gB;var o=t._transform;return Object(s["k"])(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function DB(t,e){var n=t._panels;if(!n)return gB;var i=e.__brushOption.panelId;return null!=i?n[i]:gB}function RB(t){var e=t._covers,n=e.length;return Object(s["k"])(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function BB(t,e){var n=Object(s["H"])(t._covers,(function(t){var e=t.__brushOption,n=Object(s["d"])(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function NB(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1],a=yB(r*r+o*o,.5);return a>xB}function FB(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function zB(t,e,n,i){var r=new _i;return r.add(new rs({name:"main",style:WB(n),silent:!0,draggable:!0,cursor:"move",drift:Object(s["h"])(qB,t,e,r,["n","s","w","e"]),ondragend:Object(s["h"])(BB,e,{isEnd:!0})})),Object(s["k"])(i,(function(n){r.add(new rs({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(s["h"])(qB,t,e,r,n),ondragend:Object(s["h"])(BB,e,{isEnd:!0})}))})),r}function VB(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=vB(r,wB),a=n[0][0],s=n[1][0],l=a-r/2,c=s-r/2,u=n[0][1],h=n[1][1],d=u-o+r/2,p=h-o+r/2,f=u-a,g=h-s,m=f+r,v=g+r;HB(t,e,"main",a,s,f,g),i.transformable&&(HB(t,e,"w",l,c,o,v),HB(t,e,"e",d,c,o,v),HB(t,e,"n",l,c,m,o),HB(t,e,"s",l,p,m,o),HB(t,e,"nw",l,c,o,o),HB(t,e,"ne",d,c,o,o),HB(t,e,"sw",l,p,o,o),HB(t,e,"se",d,p,o,o))}function GB(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(WB(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(s["k"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),o=1===n.length?YB(t,n[0]):XB(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?AB[o]+"-resize":null})}))}function HB(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape($B(JB(t,e,[[i,r],[i+o,r+a]])))}function WB(t){return Object(s["i"])({strokeNoScale:!0},t.brushStyle)}function UB(t,e,n,i){var r=[mB(t,n),mB(e,i)],o=[vB(t,n),vB(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function ZB(t){return wm(t.group)}function YB(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=Cm(n[e],ZB(t));return i[r]}function XB(t,e){var n=[YB(t,e[0]),YB(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function qB(t,e,n,i,r,o){var a=n.__brushOption,l=t.toRectRange(a.range),c=QB(e,r,o);Object(s["k"])(i,(function(t){var e=CB[t];l[e[0]][e[1]]+=c[e[0]]})),a.range=t.fromRectRange(UB(l[0][0],l[1][0],l[0][1],l[1][1])),PB(e,n),BB(e,{isEnd:!1})}function KB(t,e,n,i){var r=e.__brushOption.range,o=QB(t,n,i);Object(s["k"])(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),PB(t,e),BB(t,{isEnd:!1})}function QB(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function JB(t,e,n){var i=DB(t,e);return i&&i!==gB?i.clipPath(n,t._transform):Object(s["d"])(n)}function $B(t){var e=mB(t[0][0],t[1][0]),n=mB(t[0][1],t[1][1]),i=vB(t[0][0],t[1][0]),r=vB(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}function tN(t,e,n){if(t._brushType&&!sN(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=LB(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===gB||s.panelId===o.panelId)&&lN[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function eN(t){var e=t.event;e.preventDefault&&e.preventDefault()}function nN(t,e,n){return t.childOfName("main").contain(e,n)}function iN(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),NB(t)||o){if(a&&!o){"single"===l.brushMode&&RB(t);var c=Object(s["d"])(l);c.brushType=rN(c.brushType,a),c.panelId=a===gB?null:a.panelId,o=t._creatingCover=kB(t,c),t._covers.push(o)}if(o){var u=lN[rN(t._brushType,a)],h=o.__brushOption;h.range=u.getCreatingRange(JB(t,o,t._track)),i&&(EB(t,o),u.updateCommon(t,o)),TB(t,o),r={isEnd:i}}}else i&&"single"===l.brushMode&&l.removeOnClick&&LB(t,e,n)&&RB(t)&&(r={isEnd:i,removeOnClick:!0});return r}function rN(t,e){return"auto"===t?e.defaultBrushType:t}var oN={mousedown:function(t){if(this._dragging)aN(this,t);else if(!t.target||!t.target.draggable){eN(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=LB(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(tN(this,t,i),this._dragging){eN(t);var r=iN(this,t,i,!1);r&&BB(this,r)}},mouseup:function(t){aN(this,t)}};function aN(t,e){if(t._dragging){eN(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=iN(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&BB(t,o)}}function sN(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}var lN={lineX:cN(0),lineY:cN(1),rect:{createCover:function(t,e){function n(t){return t}return zB({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=FB(t);return UB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){VB(t,e,n,i)},updateCommon:GB,contain:nN},polygon:{createCover:function(t,e){var n=new _i;return n.add(new Eg({name:"main",style:WB(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Sg({name:"main",draggable:!0,drift:Object(s["h"])(KB,t,e),ondragend:Object(s["h"])(BB,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:JB(t,e,n)})},updateCommon:GB,contain:nN}};function cN(t){return{createCover:function(e,n){return zB({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=FB(e),i=mB(n[0][t],n[1][t]),r=vB(n[0][t],n[1][t]);return[i,r]},updateCoverShape:function(e,n,i,r){var o,a=DB(e,n);if(a!==gB&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),VB(e,n,l,r)},updateCommon:GB,contain:nN}}var uN=MB;function hN(t){return t=fN(t),function(e){return Mm(e,t)}}function dN(t,e){return t=fN(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function pN(t,e,n){var i=fN(t);return function(t,r){return i.contain(r[0],r[1])&&!cT(t,e,n)}}function fN(t){return Mt.create(t)}var gN=["axisLine","axisTickLabel","axisName"],mN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new uN(n.getZr())).on("brush",s["c"](this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!vN(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new _i,this.group.add(this._axisGroup),t.get("show")){var o=bN(t,e),a=o.coordinateSystem,l=t.getAreaSelectStyle(),c=l.width,u=t.axis.dim,h=a.getAxisLayout(u),d=s["m"]({strokeContainThreshold:c},h),p=new tE(t,d);s["k"](gN,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(d,l,t,o,c,n),Sm(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),c=Mt.create({x:a[0],y:-r/2,width:s,height:r});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:hN(c),isTargetByCursor:pN(c,o,i),getLinearBrushOtherExtent:dN(c,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(yN(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=s["H"](e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Af);function vN(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function yN(t){var e=t.axis;return s["H"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function bN(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var xN=mN,wN={type:"axisAreaSelect",event:"axisAreaSelected"};function _N(t){t.registerAction(wN,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var CN={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function AN(t){t.registerComponentView(WR),t.registerComponentModel(ZR),t.registerCoordinateSystem("parallel",dB),t.registerPreprocessor(BR),t.registerComponentModel(fB),t.registerComponentView(xN),JS(t,"parallel",fB,CN),_N(t)}function IN(t){jx(AN),t.registerChartView(ER),t.registerSeriesModel(jR),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,RR)}var SN=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),MN=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.getDefaultShape=function(){return new SN},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){ll(this)},e.prototype.downplay=function(){cl(this)},e}(Va),kN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return o(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,l=a.width,c=a.height,u=t.getData(),h=t.getData("edge"),d=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(e){var n=new MN,i=Cs(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,u,p,f,g,m,v,y=e.getModel(),b=y.getModel("lineStyle"),x=b.get("curveness"),w=e.node1.getLayout(),_=e.node1.getModel(),C=_.get("localX"),A=_.get("localY"),I=e.node2.getLayout(),S=e.node2.getModel(),M=S.get("localX"),k=S.get("localY"),E=e.getLayout();n.shape.extent=Math.max(1,E.dy),n.shape.orient=d,"vertical"===d?(r=(null!=C?C*l:w.x)+E.sy,a=(null!=A?A*c:w.y)+w.dy,u=(null!=M?M*l:I.x)+E.ty,p=null!=k?k*c:I.y,f=r,g=a*(1-x)+p*x,m=u,v=a*x+p*(1-x)):(r=(null!=C?C*l:w.x)+w.dx,a=(null!=A?A*c:w.y)+E.sy,u=null!=M?M*l:I.x,p=(null!=k?k*c:I.y)+E.ty,f=r*(1-x)+u*x,g=a,m=r*x+u*(1-x),v=p),n.setShape({x1:r,y1:a,x2:u,y2:p,cpx1:f,cpy1:g,cpx2:m,cpy2:v}),n.useStyle(b.getItemStyle()),EN(n.style,d,e);var T=""+y.get("value"),O=tc(y,"edgeLabel");$l(n,O,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,"edge",r,Object(s["Q"])(o,O.normal&&O.normal.get("formatter"),T),a)}},labelDataIndex:e.dataIndex,defaultText:T}),n.setTextConfig({position:"inside"});var P=y.getModel("emphasis");Ol(n,y,"lineStyle",(function(t){var n=t.getItemStyle();return EN(n,d,e),n})),o.add(n),h.setItemGraphicEl(e.dataIndex,n);var j=P.get("focus");Ml(n,"adjacency"===j?e.getAdjacentDataIndices():"trajectory"===j?e.getTrajectoryDataIndices():j,P.get("blurScope"),P.get("disabled"))})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),s=i.getModel("emphasis"),h=new rs({shape:{x:null!=r?r*l:n.x,y:null!=a?a*c:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});$l(h,tc(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),Ol(h,i),o.add(h),u.setItemGraphicEl(e.dataIndex,h),Cs(h).dataType="node";var d=s.get("focus");Ml(h,"adjacency"===d?e.getAdjacentDataIndices():"trajectory"===d?e.getTrajectoryDataIndices():d,s.get("blurScope"),s.get("disabled"))})),u.eachItemGraphicEl((function(e,r){var o=u.getItemModel(r);o.get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/l,localY:this.shape.y/c})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(TN(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Um);function EN(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");Object(s["C"])(i)&&Object(s["C"])(r)&&(t.fill=new Yg(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}function TN(t,e,n){var i=new rs({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Hl(i,{shape:{width:t.width+20}},e,n),i}var ON=kN,PN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new Ic(r[a],this,e));if(i&&n){var s=qD(i,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,i=n[t];i.localX=e[0],i.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return Up("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t),c=l.getLayout().value,u=this.getDataParams(t,n).data.name;return Up("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e),o=r.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(_f),jN=PN;function LN(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=DN(t,e);t.layoutInfo=r;var o=r.width,a=r.height,l=t.getGraph(),c=l.nodes,u=l.edges;BN(c);var h=s["n"](c,(function(t){return 0===t.getLayout().value})),d=0!==h.length?0:t.get("layoutIterations"),p=t.get("orient"),f=t.get("nodeAlign");RN(c,u,n,i,o,a,d,p,f)}))}function DN(t,e){return Nu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function RN(t,e,n,i,r,o,a,s,l){NN(t,e,n,r,o,s,l),HN(t,e,o,r,i,a,s),nF(t,s)}function BN(t){s["k"](t,(function(t){var e=tF(t.outEdges,$N),n=tF(t.inEdges,$N),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}function NN(t,e,n,i,r,o,a){for(var s=[],l=[],c=[],u=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&c.push(t[d]);var p=-1;while(c.length){for(var f=0;f<c.length;f++){var g=c[f],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>p&&(p=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var b=g.outEdges[y],x=e.indexOf(b);s[x]=0;var w=b.node2,_=t.indexOf(w);0===--l[_]&&u.indexOf(w)<0&&u.push(w)}}++h,c=u,u=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var C=p>h-1?p:h-1;a&&"left"!==a&&zN(t,a,o,C);var A="vertical"===o?(r-n)/C:(i-n)/C;GN(t,A,o)}function FN(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function zN(t,e,n,i){if("right"===e){var r=[],o=t,a=0;while(o.length){for(var l=0;l<o.length;l++){var c=o[l];c.setLayout({skNodeHeight:a},!0);for(var u=0;u<c.inEdges.length;u++){var h=c.inEdges[u];r.indexOf(h.node1)<0&&r.push(h.node1)}}o=r,r=[],++a}s["k"](t,(function(t){FN(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&VN(t,i)}function VN(t,e){s["k"](t,(function(t){FN(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function GN(t,e,n){s["k"](t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}function HN(t,e,n,i,r,o,a){var s=WN(t,a);UN(s,e,n,i,r,a),ZN(s,r,n,i,a);for(var l=1;o>0;o--)l*=.99,YN(s,l,a),ZN(s,r,n,i,a),eF(s,l,a),ZN(s,r,n,i,a)}function WN(t,e){var n=[],i="vertical"===e?"y":"x",r=Nr(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),s["k"](r.keys,(function(t){n.push(r.buckets.get(t))})),n}function UN(t,e,n,i,r,o){var a=1/0;s["k"](t,(function(t){var e=t.length,l=0;s["k"](t,(function(t){l+=t.getLayout().value}));var c="vertical"===o?(i-(e-1)*r)/l:(n-(e-1)*r)/l;c<a&&(a=c)})),s["k"](t,(function(t){s["k"](t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),s["k"](e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))}function ZN(t,e,n,i,r){var o="vertical"===r?"x":"y";s["k"](t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var c=0,u=t.length,h="vertical"===r?"dx":"dy",d=0;d<u;d++)s=t[d],l=c-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]+s.getLayout()[h]+e;var p="vertical"===r?i:n;if(l=c-e-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a;for(d=u-2;d>=0;--d)s=t[d],l=s.getLayout()[o]+s.getLayout()[h]+e-c,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]}}))}function YN(t,e,n){s["k"](t.slice().reverse(),(function(t){s["k"](t,(function(t){if(t.outEdges.length){var i=tF(t.outEdges,XN,n)/tF(t.outEdges,$N);if(isNaN(i)){var r=t.outEdges.length;i=r?tF(t.outEdges,qN,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-JN(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-JN(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function XN(t,e){return JN(t.node2,e)*t.getValue()}function qN(t,e){return JN(t.node2,e)}function KN(t,e){return JN(t.node1,e)*t.getValue()}function QN(t,e){return JN(t.node1,e)}function JN(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function $N(t){return t.getValue()}function tF(t,e,n){var i=0,r=t.length,o=-1;while(++o<r){var a=+e(t[o],n);isNaN(a)||(i+=a)}return i}function eF(t,e,n){s["k"](t,(function(t){s["k"](t,(function(t){if(t.inEdges.length){var i=tF(t.inEdges,KN,n)/tF(t.inEdges,$N);if(isNaN(i)){var r=t.inEdges.length;i=r?tF(t.inEdges,QN,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-JN(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-JN(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function nF(t,e){var n="vertical"===e?"x":"y";s["k"](t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),s["k"](t,(function(t){var e=0,n=0;s["k"](t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),s["k"](t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}function iF(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,o=-1/0;s["k"](n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)})),s["k"](n,(function(e){var n=new nL({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}),i=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",i),e.setVisual("style",{fill:i}))}))}i.length&&s["k"](i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}function rF(t){t.registerChartView(ON),t.registerSeriesModel(jN),t.registerLayout(LN),t.registerVisual(iF),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var oF=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),l=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===l?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var c=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=c[u],d=c[1-u],p=[r,o],f=p[u].get("type"),g=p[1-u].get("type"),m=t.data;if(m&&i){var v=[];s["k"](m,(function(t,e){var n;s["t"](t)?(n=t.slice(),t.unshift(e)):s["t"](t.value)?(n=s["m"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var y=this.defaultValueDimensions,b=[{name:h,type:fC(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:fC(g),dimsDef:y.slice()}];return xS(this,{coordDimensions:b,dimensionsCount:y.length+1,encodeDefaulter:s["h"](uh,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),aF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return o(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(_f);Object(s["K"])(aF,oF,!0);var sF=aF,lF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=i.getItemLayout(t),n=hF(e,i,t,a,!0);i.setItemGraphicEl(t,n),r.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(Xl(n),dF(s,n,i,t)):n=hF(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(Um),cF=function(){function t(){}return t}(),uF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return o(e,t),e.prototype.getDefaultShape=function(){return new cF},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(Va);function hF(t,e,n,i,r){var o=t.ends,a=new uF({shape:{points:r?pF(o,i,t):o}});return dF(t,a,e,n,r),a}function dF(t,e,n,r,o){var a=n.hostModel,s=i[o?"initProps":"updateProps"];s(e,{shape:{points:t.ends}},a,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var l=n.getItemModel(r),c=l.getModel("emphasis");Ol(e,l),Ml(e,c.get("focus"),c.get("blurScope"),c.get("disabled"))}function pF(t,e,n){return s["H"](t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var fF=lF,gF=s["k"];function mF(t){var e=vF(t);gF(e,(function(t){var e=t.seriesModels;e.length&&(yF(t),gF(e,(function(e,n){bF(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function vF(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),r=s["r"](n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)})),e}function yF(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],l=[];if("category"===n.type)e=n.getBandWidth();else{var c=0;gF(i,(function(t){c=Math.max(c,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/c}gF(i,(function(t){var n=t.get("boxWidth");s["t"](n)||(n=[n,n]),l.push([Li(n[0],e)||0,Li(n[1],e)||0])}));var h=.8*e-2,d=h/r*.3,p=(h-d*(r-1))/r,f=p/2-h/2;gF(i,(function(t,e){a.push(f),f+=d+p,o.push(Math.min(Math.max(p,l[e][0]),l[e][1]))}))}function bF(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],c=r.mapDimension(l[a]),u=r.mapDimensionsAll(l[s]);if(!(null==c||u.length<5))for(var h=0;h<r.count();h++){var d=r.get(c,h),p=b(d,u[2],h),f=b(d,u[0],h),g=b(d,u[1],h),m=b(d,u[3],h),v=b(d,u[4],h),y=[];x(y,g,!1),x(y,m,!0),y.push(f,g,v,m),w(y,f),w(y,v),w(y,p),r.setItemLayout(h,{initBaseline:p[s],ends:y})}function b(t,n,o){var l,c=r.get(n,o),u=[];return u[a]=t,u[s]=c,isNaN(t)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u),l[a]+=e),l}function x(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function w(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}function xF(t,e){e=e||{};for(var n=[],i=[],r=e.boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var l=Ri(t[a].slice()),c=Ki(l,.25),u=Ki(l,.5),h=Ki(l,.75),d=l[0],p=l[l.length-1],f=(null==r?1.5:r)*(h-c),g=o?d:Math.max(d,c-f),m=o?p:Math.min(p,h+f),v=e.itemNameFormatter,y=Object(s["w"])(v)?v({value:a}):Object(s["C"])(v)?v.replace("{value}",a+""):a+"";n.push([y,g,c,u,h,m]);for(var b=0;b<l.length;b++){var x=l[b];if(x<g||x>m){var w=[y,x];i.push(w)}}}return{boxData:n,outliers:i}}var wF={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==th){var n="";0,Th(n)}var i=xF(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function _F(t){t.registerSeriesModel(sF),t.registerChartView(fF),t.registerLayout(mF),t.registerTransform(wF)}var CF=["color","borderColor"],AF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Rm(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&kF(s,a))return;var l=MF(a,n,!0);Hl(l,{shape:{points:a.ends}},t,n),EF(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var c=n.getItemGraphicEl(l);if(e.hasValue(a)){var u=e.getItemLayout(a);o&&kF(s,u)?i.remove(c):(c?(Gl(c,{shape:{points:u.ends}},t,a),Xl(c)):c=MF(u,a),EF(c,e,a,r),i.add(c),e.setItemGraphicEl(a,c))}else i.remove(c)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),jF(t,this.group);var e=t.get("clip",!0)?DA(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,i=e.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=t.next())){var o=i.getItemLayout(n),a=MF(o,n);EF(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){jF(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Um),IF=function(){function t(){}return t}(),SF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return o(e,t),e.prototype.getDefaultShape=function(){return new IF},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Va);function MF(t,e,n){var i=t.ends;return new SF({shape:{points:n?TF(i,t):i},z2:100})}function kF(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function EF(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,Ol(t,r)}function TF(t,e){return s["H"](t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var OF=function(){function t(){}return t}(),PF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return o(e,t),e.prototype.getDefaultShape=function(){return new OF},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(Va);function jF(t,e,n,i){var r=t.getData(),o=r.getLayout("largePoints"),a=new PF({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new PF({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new PF({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),LF(1,a,t,r),LF(-1,s,t,r),LF(0,l,t,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function LF(t,e,n,i){var r=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(CF);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var DF=AF,RF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return o(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(_f);Object(s["K"])(RF,oF,!0);var BF=RF;function NF(t){t&&s["t"](t.series)&&s["k"](t.series,(function(t){s["A"](t)&&"k"===t.type&&(t.type="candlestick")}))}var FF=["itemStyle","borderColor"],zF=["itemStyle","borderColor0"],VF=["itemStyle","borderColorDoji"],GF=["itemStyle","color"],HF=["itemStyle","color0"],WF={seriesType:"candlestick",plan:If(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?GF:HF)}function i(t,e){return e.get(0===t?VF:t>0?FF:zF)}if(!e.isSeriesFiltered(t)){var r=t.pipelineContext.large;return!r&&{progress:function(t,e){var r;while(null!=(r=t.next())){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,l=o.getItemStyle();l.fill=n(a,o),l.stroke=i(a,o)||l.fill;var c=e.ensureUniqueItemVisual(r,"style");Object(s["m"])(c,l)}}}}}},UF=WF,ZF={seriesType:"candlestick",plan:If(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=XF(t,n),r=0,o=1,a=["x","y"],l=n.getDimensionIndex(n.mapDimension(a[r])),c=Object(s["H"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=c[0],h=c[1],d=c[2],p=c[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(l<0||c.length<4))return{progress:t.pipelineContext.large?g:f};function f(t,n){var a,s=n.getStore();while(null!=(a=t.next())){var c=s.get(l,a),f=s.get(u,a),g=s.get(h,a),m=s.get(d,a),v=s.get(p,a),y=Math.min(f,g),b=Math.max(f,g),x=M(y,c),w=M(b,c),_=M(m,c),C=M(v,c),A=[];k(A,w,0),k(A,x,1),A.push(T(C),T(w),T(_),T(x));var I=n.getItemModel(a),S=!!I.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:YF(s,a,f,g,h,S),initBaseline:f>g?w[o]:x[o],ends:A,brushRect:E(m,v,c)})}function M(t,n){var i=[];return i[r]=n,i[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function k(t,e,n){var o=e.slice(),a=e.slice();o[r]=xm(o[r]+i/2,1,!1),a[r]=xm(a[r]-i/2,1,!0),n?t.push(o,a):t.push(a,o)}function E(t,e,n){var a=M(t,n),s=M(e,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function T(t){return t[r]=xm(t[r],1),t}}function g(n,i){var a,s,c=_A(4*n.count),f=0,g=[],m=[],v=i.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);while(null!=(s=n.next())){var b=v.get(l,s),x=v.get(u,s),w=v.get(h,s),_=v.get(d,s),C=v.get(p,s);isNaN(b)||isNaN(_)||isNaN(C)?(c[f++]=NaN,f+=3):(c[f++]=YF(v,s,x,w,h,y),g[r]=b,g[o]=_,a=e.dataToPoint(g,null,m),c[f++]=a?a[0]:NaN,c[f++]=a?a[1]:NaN,g[o]=C,a=e.dataToPoint(g,null,m),c[f++]=a?a[1]:NaN)}i.setLayout("largePoints",c)}}};function YF(t,e,n,i,r,o){var a;return a=n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1,a}function XF(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Li(Object(s["P"])(t.get("barMaxWidth"),r),r),a=Li(Object(s["P"])(t.get("barMinWidth"),1),r),l=t.get("barWidth");return null!=l?Li(l,r):Math.max(Math.min(r/2,o),a)}var qF=ZF;function KF(t){t.registerChartView(DF),t.registerSeriesModel(BF),t.registerPreprocessor(NF),t.registerVisual(UF),t.registerLayout(qF)}function QF(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var JF=function(t){function e(e,n){var i=t.call(this)||this,r=new hA(e,n),o=new _i;return i.add(r),i.add(o),i.updateData(e,n),i}return o(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=ry(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}QF(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}QF(n,t)},e.prototype.highlight=function(){ll(this)},e.prototype.downplay=function(){cl(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=oy(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),c=l&&l.fill,u=o.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",c)}));var h=ay(t.getItemVisual(e,"symbolOffset"),s);h&&(r.x=h[0],r.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=c,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Ml(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(_i),$F=JF,tz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(){this._symbolDraw=new mA($F)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=nI("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=gt(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Um),ez=tz,nz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){return rA(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(_f),iz=nz;function rz(t){t.registerChartView(ez),t.registerSeriesModel(iz),t.registerLayout(nI("effectScatter"))}var oz=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return o(e,t),e.prototype.createLine=function(t,e,n){return new ID(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");s["t"](r)||(r=[r,r]);var a=t.getItemVisual(e,"style"),l=i.get("color")||a&&a.stroke,c=this.childAt(1);this._symbolType!==o&&(this.remove(c),c=ry(o,-.5,-.5,1,1,l),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",l),c.setStyle(i.getItemStyle(["color"])),c.scaleX=r[0],c.scaleY=r[1],c.setColor(l),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(t,i,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),l=e.get("roundTrip"),c=e.get("constantSpeed"),u=s["O"](e.get("delay"),(function(e){return e/t.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),c>0&&(o=this._getLineLength(i)/c*1e3),o!==this._period||a!==this._loop||l!==this._roundTrip){i.stopAnimation();var h=void 0;h=s["w"](u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,a,l)}this._period=o,this._loop=a,this._roundTrip=l}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return x(t.__p1,t.__cp1)+x(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Se,l=Me;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var c=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),u=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*x(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*x(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(_i),az=oz,sz=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return o(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Eg({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};Gl(r,o,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var c=r.getModel("emphasis");o=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),a=c.get("focus"),s=c.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var u=i.ensureState("emphasis");u.style=o,Ml(this,a,s,l)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},e}(_i),lz=sz,cz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return o(e,t),e.prototype.createLine=function(t,e,n){return new lz(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];i+=x(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,r-1);for(o=s;o>=0;o--)if(i[o]<=e)break;o=Math.min(o,r-2)}else{for(o=a;o<r;o++)if(i[o]>e)break;o=Math.min(o-1,r-2)}var l=(e-i[o])/(i[o+1]-i[o]),c=n[o],u=n[o+1];t.x=c[0]*(1-l)+l*u[0],t.y=c[1]*(1-l)+l*u[1];var h=t.__t<1?u[0]-c[0]:c[0]-u[0],d=t.__t<1?u[1]-c[1]:c[1]-u[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(az),uz=cz,hz=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),dz=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return o(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hz},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){t.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],c=i[n++],u=i[n++];if(t.moveTo(s,l),r>0){var h=(s+c)/2-(l-u)*r,d=(l+u)/2-(c-s)*r;t.quadraticCurveTo(h,d,c,u)}else t.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var c=i[s++],u=i[s++],h=1;h<l;h++){var d=i[s++],p=i[s++];if(ma(c,u,d,p,o,t,e))return a}a++}else for(a=0,s=0;s<i.length;){c=i[s++],u=i[s++],d=i[s++],p=i[s++];if(r>0){var f=(c+d)/2-(u-p)*r,g=(u+p)/2-(d-c)*r;if(ya(c,u,f,g,d,p,o,t,e))return a}else if(ma(c,u,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();if(t=n[0],e=n[1],i.contain(t,e)){var r=this.hoverDataIdx=this.findDataIndex(t,e);return r>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],c=n[s++];i=Math.min(l,i),o=Math.max(l,o),r=Math.min(c,r),a=Math.max(c,a)}t=this._rect=new Mt(i,r,o,a)}return t},e}(Va),pz=function(){function t(){this.group=new _i}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new dz({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var o=Cs(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),fz=pz,gz={seriesType:"lines",plan:If(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var c=0,u=r.start;u<r.end;u++)c+=t.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var h=0,d=[];for(u=r.start;u<r.end;u++){var p=t.getLineCoords(u,a);n&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[h++]=d[0],s[h++]=d[1]}o.setLayout("linesPoints",s)}else for(u=r.start;u<r.end;u++){var g=o.getItemModel(u),m=(p=t.getLineCoords(u,a),[]);if(n)for(var v=0;v<p;v++)m.push(e.dataToPoint(a[v]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(u,m)}}}}}},mz=gz,vz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var c=t.get("clip",!0)&&DA(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=mz.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new fz:new OD(r?i?uz:lz:i?az:ID),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(Um),yz=vz,bz="undefined"===typeof Uint32Array?Array:Uint32Array,xz="undefined"===typeof Float64Array?Array:Float64Array;function wz(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(s["H"])(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(s["J"])([n,t[0],t[1]])})))}var _z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return o(e,t),e.prototype.init=function(e){e.data=e.data||[],wz(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(wz(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(s["e"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(s["e"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(s["z"])(t[0])){for(var n=t.length,i=new bz(n),r=new xz(n),o=0,a=0,l=0,c=0;c<n;){l++;var u=t[c++];i[a++]=o+e,i[a++]=u;for(var h=0;h<u;h++){var d=t[c++],p=t[c++];r[o++]=d,r[o++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:l}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new zC(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getItemModel(t),o=r.get("name");if(o)return o;var a=r.get("fromName"),s=r.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Up("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(_f),Cz=_z;function Az(t){return t instanceof Array||(t=[t,t]),t}var Iz={seriesType:"lines",reset:function(t){var e=Az(t.get("symbol")),n=Az(t.get("symbolSize")),i=t.getData();function r(t,e){var n=t.getItemModel(e),i=Az(n.getShallow("symbol",!0)),r=Az(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},Sz=Iz;function Mz(t){t.registerChartView(yz),t.registerSeriesModel(Cz),t.registerLayout(mz),t.registerVisual(Sz)}var kz=256,Ez=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Qn["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),d=t.length;u.width=e,u.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],m=f[1],v=f[2],y=i(v);h.globalAlpha=y,h.drawImage(a,g-c,m-c)}if(!u.width||!u.height)return u;var b=h.getImageData(0,0,u.width,u.height),x=b.data,w=0,_=x.length,C=this.minOpacity,A=this.maxOpacity,I=A-C;while(w<_){y=x[w+3]/256;var S=4*Math.floor(y*(kz-1));if(y>0){var M=o(y)?s:l;y>0&&(y=y*I+C),x[w++]=M[S],x[w++]=M[S+1],x[w++]=M[S+2],x[w++]=M[S+3]*y*256}else w+=4}return h.putImageData(b,0,0),u},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Qn["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}(),Tz=Ez;function Oz(t,e,n){var i=t[1]-t[0];e=s["H"](e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}));var r=e.length,o=0;return function(t){var i;for(i=o;i<r;i++){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function Pz(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function jz(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var Lz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):jz(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(jz(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Rm(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,c=t.coordinateSystem,u=RA(c,"cartesian2d");if(u){var h=c.getAxis("x"),d=c.getAxis("y");0,o=h.getBandWidth()+.5,a=d.getBandWidth()+.5,s=h.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),b=tc(t),x=t.getModel("emphasis"),w=x.get("focus"),_=x.get("blurScope"),C=x.get("disabled"),A=u?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;I<i;I++){var S=void 0,M=f.getItemVisual(I,"style");if(u){var k=f.get(A[0],I),E=f.get(A[1],I);if(isNaN(f.get(A[2],I))||isNaN(k)||isNaN(E)||k<s[0]||k>s[1]||E<l[0]||E>l[1])continue;var T=c.dataToPoint([k,E]);S=new rs({shape:{x:T[0]-o/2,y:T[1]-a/2,width:o,height:a},style:M})}else{if(isNaN(f.get(A[1],I)))continue;S=new rs({z2:1,shape:c.dataToRect([f.get(A[0],I)]).contentShape,style:M})}if(f.hasItemOption){var O=f.getItemModel(I),P=O.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),m=O.getModel(["blur","itemStyle"]).getItemStyle(),v=O.getModel(["select","itemStyle"]).getItemStyle(),y=O.get(["itemStyle","borderRadius"]),w=P.get("focus"),_=P.get("blurScope"),C=P.get("disabled"),b=tc(O)}S.shape.r=y;var j=t.getRawValue(I),L="-";j&&null!=j[2]&&(L=j[2]+""),$l(S,b,{labelFetcher:t,labelDataIndex:I,defaultOpacity:M.opacity,defaultText:L}),S.ensureState("emphasis").style=g,S.ensureState("blur").style=m,S.ensureState("select").style=v,Ml(S,w,_,C),S.incremental=r,r&&(S.states.emphasis.hoverLayer=!0),p.add(S),f.setItemGraphicEl(I,S),this._progressiveEls&&this._progressiveEls.push(S)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new Tz;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),c=t.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-u,g=p-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=u,r[1]-=h,r.push(i),r})),y=n.getExtent(),b="visualMap.continuous"===n.type?Pz(y,n.option.range):Oz(y,n.getPieceList(),n.option.selected);s.update(v,f,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var x=new qa({style:{width:f,height:g,x:u,y:h,image:s.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Um),Dz=Lz,Rz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.getInitialData=function(t,e){return rA(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Uh.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(_f),Bz=Rz;function Nz(t){t.registerChartView(Dz),t.registerSeriesModel(Bz)}var Fz=["itemStyle","borderWidth"],zz=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Vz=new Qf,Gz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),c=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:zz[+l],categoryDim:zz[1-+l]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=tV(r,t),n=Hz(r,t,e,u),o=iV(r,u,n);r.setItemGraphicEl(t,o),i.add(o),cV(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=tV(r,t),s=Hz(r,t,a,u),l=aV(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?rV(n,u,s):n=iV(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),cV(n,u,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&oV(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){oV(i,Cs(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(Um);function Hz(t,e,n,i){var r=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Wz(n,o,r,i,d),Zz(t,e,r,o,a,d.boundingLength,d.pxSign,u,i,d),Yz(n,d.symbolScale,c,i,d);var p=d.symbolSize,f=ay(n.get("symbolOffset"),p);return Xz(n,p,r,o,a,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function Wz(t,e,n,i,r){var o,a=i.valueDim,l=t.get("symbolBoundingData"),c=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=c.toGlobalCoord(c.dataToCoord(0)),h=1-+(n[a.wh]<=0);if(s["t"](l)){var d=[Uz(c,l[0])-u,Uz(c,l[1])-u];d[1]<d[0]&&d.reverse(),o=d[h]}else o=null!=l?Uz(c,l)-u:e?i.coordSysExtent[a.index][h]-u:n[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=n[a.wh]),r.pxSign=o>0?1:-1}function Uz(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function Zz(t,e,n,i,r,o,a,l,c,u){var h,d=c.valueDim,p=c.categoryDim,f=Math.abs(n[p.wh]),g=t.getItemVisual(e,"symbolSize");h=s["t"](g)?g.slice():null==g?["100%","100%"]:[g,g],h[p.index]=Li(h[p.index],f),h[d.index]=Li(h[d.index],i?f:Math.abs(o)),u.symbolSize=h;var m=u.symbolScale=[h[0]/l,h[1]/l];m[d.index]*=(c.isHorizontal?-1:1)*a}function Yz(t,e,n,i,r){var o=t.get(Fz)||0;o&&(Vz.attr({scaleX:e[0],scaleY:e[1],rotation:n}),Vz.updateTransform(),o/=Vz.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o||0}function Xz(t,e,n,i,r,o,a,l,c,u,h,d){var p=h.categoryDim,f=h.valueDim,g=d.pxSign,m=Math.max(e[f.index]+l,0),v=m;if(i){var y=Math.abs(c),b=s["O"](t.get("symbolMargin"),"15%")+"",x=!1;b.lastIndexOf("!")===b.length-1&&(x=!0,b=b.slice(0,b.length-1));var w=Li(b,e[f.index]),_=Math.max(m+2*w,0),C=x?0:2*w,A=$i(i),I=A?i:uV((y+C)/_),S=y-I*m;w=S/2/(x?I:Math.max(I-1,1)),_=m+2*w,C=x?0:2*w,A||"fixed"===i||(I=u?uV((Math.abs(u)+C)/_):0),v=I*_-C,d.repeatTimes=I,d.symbolMargin=w}var M=g*(v/2),k=d.pathPosition=[];k[p.index]=n[p.wh]/2,k[f.index]="start"===a?M:"end"===a?c-M:c/2,o&&(k[0]+=o[0],k[1]+=o[1]);var E=d.bundlePosition=[];E[p.index]=n[p.xy],E[f.index]=n[f.xy];var T=d.barRectShape=s["m"]({},n);T[f.wh]=g*Math.max(Math.abs(n[f.wh]),Math.abs(k[f.index]+M)),T[p.wh]=n[p.wh];var O=d.clipShape={};O[p.xy]=-n[p.xy],O[p.wh]=h.ecSize[p.wh],O[f.xy]=0,O[f.wh]=n[f.wh]}function qz(t){var e=t.symbolPatternSize,n=ry(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Kz(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,c=n.repeatTimes||0,u=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(sV(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=c,u<c?lV(t,null,f(u),n,i):lV(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),u++}));u<c;u++){var d=qz(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,r.add(d);var p=f(u);lV(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=c-1-t),e[l.index]=h*(r-c/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Qz(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?lV(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=qz(n),r.add(o),lV(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Jz(t,e,n){var i=s["m"]({},e.barRectShape),r=t.__pictorialBarRect;r?lV(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new rs({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,t.add(r))}function $z(t,e,n,r){if(n.symbolClip){var o=t.__pictorialClipPath,a=s["m"]({},n.clipShape),l=e.valueDim,c=n.animationModel,u=n.dataIndex;if(o)Gl(o,{shape:a},c,u);else{a[l.wh]=0,o=new rs({shape:a}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o;var h={};h[l.wh]=n.clipShape[l.wh],i[r?"updateProps":"initProps"](o,{shape:h},c,u)}}}function tV(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=eV,n.isAnimationEnabled=nV,n}function eV(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function nV(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function iV(t,e,n,i){var r=new _i,o=new _i;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Kz(r,e,n):Qz(r,e,n),Jz(r,n,i),$z(r,e,n,i),r.__pictorialShapeStr=aV(t,n),r.__pictorialSymbolMeta=n,r}function rV(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;Gl(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?Kz(t,e,n,!0):Qz(t,e,n,!0),Jz(t,n,!0),$z(t,e,n,!0)}function oV(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];sV(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),s["k"](o,(function(t){Ul(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function aV(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function sV(t,e,n){s["k"](t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function lV(t,e,n,r,o,a){e&&t.attr(e),r.symbolClip&&!o?n&&t.attr(n):n&&i[o?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,a)}function cV(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),l=r.getModel(["blur","itemStyle"]).getItemStyle(),c=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");sV(t,(function(t){if(t instanceof qa){var e=t.style;t.useStyle(s["m"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=l,t.ensureState("select").style=c,u&&(t.cursor=u),t.z2=n.z2}));var f=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;$l(g,tc(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:sA(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Ml(t,h,d,o.get("disabled"))}function uV(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var hV=Gz,dV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return o(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Tc(_I.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(_I),pV=dV;function fV(t){t.registerChartView(hV),t.registerSeriesModel(pV),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(s["h"])(mI,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,vI("pictorialBar"))}var gV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return o(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),l=i.getLayout("layoutInfo"),c=l.rect,u=l.boundaryGap;function h(t){return t.name}o.x=0,o.y=c.y+u[0];var d=new uC(this._layersSeries||[],a,h,h),p=[];function f(e,n,s){var l=r._layers;if("remove"!==e){for(var c,u,h=[],d=[],f=a[n].indices,g=0;g<f.length;g++){var m=i.getItemLayout(f[g]),v=m.x,y=m.y0,b=m.y;h.push(v,y),d.push(v,y+b),c=i.getItemVisual(f[g],"style")}var x=i.getItemLayout(f[0]),w=t.getModel("label"),_=w.get("margin"),C=t.getModel("emphasis");if("add"===e){var A=p[n]=new _i;u=new PA({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),A.add(u),o.add(A),t.isAnimationEnabled()&&u.setClipPath(mV(u.getBoundingRect(),t,(function(){u.removeClipPath()})))}else{A=l[s];u=A.childAt(0),o.add(A),p[n]=A,Gl(u,{shape:{points:h,stackedOnPoints:d}},t),Xl(u)}$l(u,tc(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var I=u.getTextContent();I&&(I.x=x.x-_,I.y=x.y0+x.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),Ol(u,t),Ml(u,C.get("focus"),C.get("blurScope"),C.get("disabled"))}else o.remove(l[n])}d.add(Object(s["c"])(f,this,"add")).update(Object(s["c"])(f,this,"update")).remove(Object(s["c"])(f,this,"remove")).execute(),this._layersSeries=a,this._layers=p},e.type="themeRiver",e}(Um);function mV(t,e,n){var i=new rs({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Hl(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}var vV=gV,yV=2,bV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new _S(s["c"](this.getData,this),s["c"](this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=Nr(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var c=r[a].dataList[l][0]+"";n[c]=a}for(var c in n)n.hasOwnProperty(c)&&n[c]!==a&&(n[c]=a,t[e]=[c,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Pr).models[0],i=n.get("type"),r=s["n"](t.data,(function(t){return void 0!==t[2]})),o=this.fixData(r||[]),a=[],l=this.nameMap=s["f"](),c=0,u=0;u<o.length;++u)a.push(o[u][yV]),l.get(o[u][yV])||(l.set(o[u][yV],c),c++);var h=VC(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:fC(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new zC(h,this);return d.initData(o),d},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=Nr(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){s["t"](t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],l=o.length,c=0;c<l;++c){for(var u=Number.MAX_VALUE,h=-1,d=o[c].indices.length,p=0;p<d;++p){var f=r.get(t[0],o[c].indices[p]),g=Math.abs(f-e);g<=u&&(i=f,u=g,h=o[c].indices[p])}a.push(h)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getName(t),o=i.get(i.mapDimension("value"),t);return Up("nameValue",{name:r,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(_f),xV=bV;function wV(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get("boundaryGap"),a=n.getAxis();if(i.boundaryGap=o,"horizontal"===a.orient){o[0]=Li(o[0],r.height),o[1]=Li(o[1],r.height);var s=r.height-o[0]-o[1];_V(e,t,s)}else{o[0]=Li(o[0],r.width),o[1]=Li(o[1],r.width);var l=r.width-o[0]-o[1];_V(e,t,l)}e.setLayout("layoutInfo",i)}))}function _V(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),l=t.mapDimension("value"),c=s["H"](o,(function(e){return s["H"](e.indices,(function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(l,e),n}))})),u=CV(c),h=u.y0,d=n/u.max,p=o.length,f=o[0].indices.length,g=0;g<f;++g){i=h[g]*d,t.setItemLayout(o[0].indices[g],{layerIndex:0,x:c[0][g][0],y0:i,y:c[0][g][1]*d});for(var m=1;m<p;++m)i+=c[m-1][g][1]*d,t.setItemLayout(o[m].indices[g],{layerIndex:m,x:c[m][g][0],y0:i,y:c[m][g][1]*d})}}function CV(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var c=0;c<n;++c)r[c]=(o-i[c])/2;o=0;for(var u=0;u<n;++u){var h=i[u]+r[u];h>o&&(o=h)}return{y0:r,max:o}}function AV(t){t.registerChartView(vV),t.registerSeriesModel(xV),t.registerLayout(wV),t.registerProcessor(uS("themeRiver"))}var IV=2,SV=4,MV=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=IV,o.textConfig={inside:!0},Cs(o).seriesIndex=n.seriesIndex;var a=new _s({z2:SV,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return o(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Cs(o).dataIndex=e.dataIndex;var a=e.getModel(),l=a.getModel("emphasis"),c=e.getLayout(),u=s["m"]({},c);u.label=null;var h=e.getVisual("style");h.lineJoin="bevel";var d=e.getVisual("decal");d&&(h.decal=Yy(d,r));var p=PI(a.getModel("itemStyle"),u,!0);s["m"](u,p),s["k"](Ps,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=PI(n,u);i&&(e.shape=i)})),t?(o.setShape(u),o.shape.r=c.r0,Hl(o,{shape:{r:c.r}},n,e.dataIndex)):(Gl(o,{shape:u},n),Xl(o)),o.useStyle(h),this._updateLabel(n);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=l.get("focus"),m="ancestor"===g?e.getAncestorsIndices():"descendant"===g?e.getDescendantIndices():g;Ml(this,m,l.get("blurScope"),l.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,l=Math.cos(a),c=Math.sin(a),u=this,h=u.getTextContent(),d=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,f=i.get("show")&&!(null!=p&&Math.abs(o)<p);function g(t,e){var n=t.get(e);return null==n?i.get(e):n}h.ignore=!f,s["k"](js,(function(i){var p="normal"===i?n.getModel("label"):n.getModel([i,"label"]),f="normal"===i,m=f?h:h.ensureState(i),v=t.getFormattedLabel(d,i);f&&(v=v||e.node.name),m.style=ec(p,{},null,"normal"!==i,!0),v&&(m.style.text=v);var y=p.get("show");null==y||f||(m.ignore=!y);var b,x=g(p,"position"),w=f?u:u.states[i],_=w.style.fill;w.textConfig={outsideFill:"inherit"===p.get("color")?_:null,inside:"outside"!==x};var C=g(p,"distance")||0,A=g(p,"align");"outside"===x?(b=r.r+C,A=a>Math.PI/2?"right":"left"):A&&"center"!==A?"left"===A?(b=r.r0+C,a>Math.PI/2&&(A="right")):"right"===A&&(b=r.r-C,a>Math.PI/2&&(A="left")):(b=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,A="center"),m.style.align=A,m.style.verticalAlign=g(p,"verticalAlign")||"middle",m.x=b*l+r.cx,m.y=b*c+r.cy;var I=g(p,"rotate"),S=0;"radial"===I?(S=xa(-a),S>Math.PI/2&&S<1.5*Math.PI&&(S+=Math.PI)):"tangential"===I?(S=Math.PI/2-a,S>Math.PI/2?S-=Math.PI:S<-Math.PI/2&&(S+=Math.PI)):s["z"](I)&&(S=I*Math.PI/180),m.rotation=xa(S)})),h.dirtyStyle()},e}(yg),kV=MV,EV="sunburstRootToNode",TV="sunburstHighlight",OV="sunburstUnhighlight";function PV(t){t.registerAction({type:EV,update:"updateView"},(function(t,e){function n(e,n){var i=XP(t,[EV],e);if(i){var r=e.getViewRoot();r&&(t.direction=KP(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:TV,update:"none"},(function(t,e,n){function i(e){var n=XP(t,[TV],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(s["m"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},i),n.dispatchAction(Object(s["m"])(t,{type:"highlight"}))})),t.registerAction({type:OV,update:"updateView"},(function(t,e,n){t=Object(s["m"])({},t),n.dispatchAction(Object(s["m"])(t,{type:"downplay"}))}))}var jV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,l=t.getViewRoot(),c=this.group,u=t.get("renderLabelForZeroData"),h=[];l.eachNode((function(t){h.push(t)}));var d=this._oldChildren||[];function p(t,e){function n(t){return t.getId()}function i(n,i){var r=null==n?null:t[n],o=null==i?null:e[i];f(r,o)}0===t.length&&0===e.length||new uC(e,t,n,n).add(i).update(i).remove(s["h"](i,null)).execute()}function f(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):g(r);else if(i){var s=new kV(i,t,e,n);c.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function g(t){t&&t.piece&&(c.remove(t.piece),t.piece=null)}function m(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new kV(i,t,e,n),c.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(c.remove(r.virtualPiece),r.virtualPiece=null)}p(h,d),m(a,l),this._initEvents(),this._oldChildren=h},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Ou(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:EV,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},e.type="sunburst",e}(Um),LV=jV,DV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return o(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};RV(n);var i=this._levelModels=s["H"](t.levels||[],(function(t){return new Ic(t,this,e)}),this),r=YP.createTree(n,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=QP(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){cj(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(_f);function RV(t){var e=0;s["k"](t.children,(function(t){RV(t);var n=t.value;s["t"](n)&&(n=n[0]),e+=n}));var n=t.value;s["t"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),s["t"](t.value)?t.value[0]=n:t.value=n}var BV=DV,NV=Math.PI/180;function FV(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");s["t"](i)||(i=[0,i]),s["t"](e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),l=Li(e[0],r),c=Li(e[1],o),u=Li(i[0],a/2),h=Li(i[1],a/2),d=-t.get("startAngle")*NV,p=t.get("minAngle")*NV,f=t.getData().tree.root,g=t.getViewRoot(),m=g.depth,v=t.get("sort");null!=v&&zV(g,v);var y=0;s["k"](g.children,(function(t){!isNaN(t.getValue())&&y++}));var b=g.getValue(),x=Math.PI/(b||y)*2,w=g.depth>0,_=g.height-(w?-1:1),C=(h-u)/(_||1),A=t.get("clockwise"),I=t.get("stillShowZeroSum"),S=A?1:-1,M=function(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===b&&I?x:r*x;o<p&&(o=p),i=n+S*o;var h=e.depth-m-(w?-1:1),d=u+C*h,g=u+C*(h+1),v=t.getLevelModel(e);if(v){var y=v.get("r0",!0),_=v.get("r",!0),k=v.get("radius",!0);null!=k&&(y=k[0],_=k[1]),null!=y&&(d=Li(y,a/2)),null!=_&&(g=Li(_,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:A,cx:l,cy:c,r0:d,r:g})}if(e.children&&e.children.length){var E=0;s["k"](e.children,(function(t){E+=M(t,n+E)}))}return i-n}};if(w){var k=u,E=u+C,T=2*Math.PI;f.setLayout({angle:T,startAngle:d,endAngle:d+T,clockwise:A,cx:l,cy:c,r0:k,r:E})}M(g,d)}))}function zV(t,e){var n=t.children||[];t.children=VV(n,e),n.length&&s["k"](t.children,(function(t){zV(t,e)}))}function VV(t,e){if(s["w"](e)){var n=s["H"](t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),s["H"](n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}function GV(t){var e={};function n(t,n,i){var r=t;while(r&&r.depth>1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&Object(s["C"])(o)&&(o=Object(Be["c"])(o,(t.depth-1)/(i-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),i=e.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,t,i.root.height));var l=e.ensureUniqueItemVisual(r.dataIndex,"style");Object(s["m"])(l,a)}))}))}function HV(t){t.registerChartView(LV),t.registerSeriesModel(BV),t.registerLayout(Object(s["h"])(FV,"sunburst")),t.registerProcessor(Object(s["h"])(uS,"sunburst")),t.registerVisual(GV),PV(t)}var WV={color:"fill",borderColor:"stroke"},UV={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ZV=kr(),YV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return rA(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=ZV(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(_f),XV=YV;function qV(t,e){return e=e||[0,0],s["H"](["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function KV(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:s["c"](qV,t)}}}function QV(t,e){return e=e||[0,0],s["H"]([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function JV(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:s["c"](QV,t)}}}function $V(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function tG(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(s["c"])($V,t)}}}function eG(t,e){return e=e||[0,0],s["H"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=e[i],s=t[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function nG(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:s["c"](eG,t)}}}function iG(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function rG(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Object(s["q"])(t,"text")))}function oG(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},Object(s["q"])(a,"text")&&(o.text=a.text),Object(s["q"])(a,"rich")&&(o.rich=a.rich),Object(s["q"])(a,"textFill")&&(o.fill=a.textFill),Object(s["q"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(s["q"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(s["q"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(s["q"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(s["q"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var l=Object(s["q"])(a,"textPosition");n?i.position=l?a.textPosition:"inside":l&&(i.position=a.textPosition),Object(s["q"])(a,"textPosition")&&(i.position=a.textPosition),Object(s["q"])(a,"textOffset")&&(i.offset=a.textOffset),Object(s["q"])(a,"textRotation")&&(i.rotation=a.textRotation),Object(s["q"])(a,"textDistance")&&(i.distance=a.textDistance)}return aG(o,t),Object(s["k"])(o.rich,(function(t){aG(t,t)})),{textConfig:i,textContent:r}}function aG(t,e){e&&(e.font=e.textFont||e.font,Object(s["q"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(s["q"])(e,"textAlign")&&(t.align=e.textAlign),Object(s["q"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(s["q"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(s["q"])(e,"textWidth")&&(t.width=e.textWidth),Object(s["q"])(e,"textHeight")&&(t.height=e.textHeight),Object(s["q"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(s["q"])(e,"textPadding")&&(t.padding=e.textPadding),Object(s["q"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(s["q"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(s["q"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(s["q"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(s["q"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(s["q"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(s["q"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function sG(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";lG(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(s["k"])(e.rich,(function(t){lG(t,t)})),i}function lG(t,e){e&&(Object(s["q"])(e,"fill")&&(t.textFill=e.fill),Object(s["q"])(e,"stroke")&&(t.textStroke=e.fill),Object(s["q"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(s["q"])(e,"font")&&(t.font=e.font),Object(s["q"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(s["q"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(s["q"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(s["q"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(s["q"])(e,"align")&&(t.textAlign=e.align),Object(s["q"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(s["q"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(s["q"])(e,"width")&&(t.textWidth=e.width),Object(s["q"])(e,"height")&&(t.textHeight=e.height),Object(s["q"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(s["q"])(e,"padding")&&(t.textPadding=e.padding),Object(s["q"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(s["q"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(s["q"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(s["q"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(s["q"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(s["q"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(s["q"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(s["q"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(s["q"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(s["q"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(s["q"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var cG={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},uG=Object(s["F"])(cG),hG=(Object(s["N"])(Yn,(function(t,e){return t[e]=1,t}),{}),Yn.join(", "),["","style","shape","extra"]),dG=kr();function pG(t,e,n,i,r){var o=t+"Animation",a=zl(t,i,r)||{},l=dG(e).userDuring;return a.duration>0&&(a.during=l?Object(s["c"])(CG,{el:e,userDuring:l}):null,a.setToFinal=!0,a.scope=t),Object(s["m"])(a,n[o]),a}function fG(t,e,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,l=n.isAnimationEnabled(),c=dG(t),u=e.style;c.userDuring=e.during;var h={},d={};if(MG(t,e,d),IG("shape",e,d),IG("extra",e,d),!o&&l&&(SG(t,e,h),AG("shape",t,e,h),AG("extra",t,e,h),kG(t,e,u,h)),d.style=u,yG(t,d,a),xG(t,e),l)if(o){var p={};Object(s["k"])(hG,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(p[t]=p[t]||{}),Object(s["m"])(t?p[t]:p,n.enterFrom))}));var f=pG("enter",t,e,n,r);f.duration>0&&t.animateFrom(p,f)}else bG(t,e,r||0,n,h);gG(t,e),u?t.dirty():t.markRedraw()}function gG(t,e){for(var n=dG(t).leaveToProps,i=0;i<hG.length;i++){var r=hG[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=dG(t).leaveToProps={}),r&&(n[r]=n[r]||{}),Object(s["m"])(r?n[r]:n,o.leaveTo))}}function mG(t,e,n,i){if(t){var r=t.parent,o=dG(t).leaveToProps;if(o){var a=pG("update",t,e,n,0);a.done=function(){r.remove(t),i&&i()},t.animateTo(o,a)}else r.remove(t),i&&i()}}function vG(t){return"all"===t}function yG(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}function bG(t,e,n,i,r){if(r){var o=pG("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}function xG(t,e){Object(s["q"])(e,"silent")&&(t.silent=e.silent),Object(s["q"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof Lo&&Object(s["q"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof Va&&Object(s["q"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var wG={},_G={setTransform:function(t,e){return wG.el[t]=e,this},getTransform:function(t){return wG.el[t]},setShape:function(t,e){var n=wG.el,i=n.shape||(n.shape={});return i[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=wG.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=wG.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=wG.el.style;if(e)return e[t]},setExtra:function(t,e){var n=wG.el.extra||(wG.el.extra={});return n[t]=e,this},getExtra:function(t){var e=wG.el.extra;if(e)return e[t]}};function CG(){var t=this,e=t.el;if(e){var n=dG(e).userDuring,i=t.userDuring;n===i?(wG.el=e,i(_G)):t.el=t.userDuring=null}}function AG(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var l=n.transition,c=r.transition;if(c)if(!o&&(o=i[t]={}),vG(c))Object(s["m"])(o,a);else for(var u=ar(c),h=0;h<u.length;h++){var d=u[h],p=a[d];o[d]=p}else if(vG(l)||Object(s["r"])(l,t)>=0){!o&&(o=i[t]={});var f=Object(s["F"])(a);for(h=0;h<f.length;h++){d=f[h],p=a[d];EG(r[d],p)&&(o[d]=p)}}}}}function IG(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=Object(s["F"])(i),a=0;a<o.length;a++){var l=o[a];r[l]=Ye(i[l])}}function SG(t,e,n){for(var i=e.transition,r=vG(i)?Yn:ar(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}function MG(t,e,n){for(var i=0;i<uG.length;i++){var r=uG[i],o=cG[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<Yn.length;i++){var s=Yn[i];null!=e[s]&&(n[s]=e[s])}}function kG(t,e,n,i){if(n){var r,o=t.style;if(o){var a=n.transition,l=e.transition;if(a&&!vG(a)){var c=ar(a);!r&&(r=i.style={});for(var u=0;u<c.length;u++){var h=c[u],d=o[h];r[h]=d}}else if(t.getAnimationStyleProps&&(vG(l)||vG(a)||Object(s["r"])(l,"style")>=0)){var p=t.getAnimationStyleProps(),f=p?p.style:null;if(f){!r&&(r=i.style={});var g=Object(s["F"])(n);for(u=0;u<g.length;u++){h=g[u];if(f[h]){d=o[h];r[h]=d}}}}}}}function EG(t,e){return Object(s["u"])(t)?t!==e:null!=t&&isFinite(t)}var TG=kr(),OG=["percent","easing","shape","style","extra"];function PG(t){t.stopAnimation("keyframe"),t.attr(TG(t))}function jG(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(s["t"])(e))Object(s["k"])(e,(function(e){jG(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var o=zl("enter",n,0);r=o&&o.duration}if(i&&r){var a=TG(t);Object(s["k"])(hG,(function(n){if(!n||t[n]){var o;i.sort((function(t,e){return t.percent-e.percent})),Object(s["k"])(i,(function(i){var l=t.animators,c=n?i[n]:i;if(c){var u=Object(s["F"])(c);if(n||(u=Object(s["n"])(u,(function(t){return Object(s["r"])(OG,t)<0}))),u.length){o||(o=t.animate(n,e.loop,!0),o.scope="keyframe");for(var h=0;h<l.length;h++)l[h]!==o&&l[h].targetName===o.targetName&&l[h].stopTracks(u);n&&(a[n]=a[n]||{});var d=n?a[n]:a;Object(s["k"])(u,(function(e){d[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(r*i.percent,c,u,i.easing)}}})),o&&o.delay(e.delay||0).duration(r).start(e.easing)}}))}}}var LG="emphasis",DG="normal",RG="blur",BG="select",NG=[DG,LG,RG,BG],FG={normal:["itemStyle"],emphasis:[LG,"itemStyle"],blur:[RG,"itemStyle"],select:[BG,"itemStyle"]},zG={normal:["label"],emphasis:[LG,"label"],blur:[RG,"label"],select:[BG,"label"]},VG=["x","y"],GG="e\0\0",HG={normal:{},emphasis:{},blur:{},select:{}},WG={cartesian2d:KV,geo:JV,single:tG,polar:nG,calendar:iG};function UG(t){return t instanceof Va}function ZG(t){return t instanceof Lo}function YG(t,e){e.copyTransform(t),ZG(e)&&ZG(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,UG(e)&&UG(t)&&e.setShape(t.shape))}var XG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=eH(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){iH(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&mG(n,ZV(n).option,t)})).update((function(e,l){var c=r.getItemGraphicEl(l);iH(n,c,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?DA(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=eH(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var u=iH(null,null,c,a(c,r),e,this.group,o);u&&(u.traverse(l),s.push(u))}},e.prototype.eachRendered=function(t){Rm(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},e.type="custom",e}(Um),qG=XG;function KG(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=vH(i);e=pm(o,null,r,i.layout||"center"),ZV(e).customPathData=o}else if("image"===n)e=new qa({}),ZV(e).customImagePath=t.style.image;else if("text"===n)e=new _s({});else if("group"===n)e=new _i;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=dm(n);if(!a){var s="";0,Th(s)}e=new a}return ZV(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function QG(t,e,n,i,r,o,a){PG(e);var l=r&&r.normal.cfg;l&&e.setTextConfig(l),i&&null==i.transition&&(i.transition=VG);var c=i&&i.style;if(c){if("text"===e.type){var u=c;Object(s["q"])(u,"textFill")&&(u.fill=u.textFill),Object(s["q"])(u,"textStroke")&&(u.stroke=u.textStroke)}var h=void 0,d=UG(e)?c.decal:null;t&&d&&(d.dirty=!0,h=Yy(d,t)),c.__decalPattern=h}if(ZG(e)&&c){h=c.__decalPattern;h&&(c.decal=h)}fG(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),jG(e,i.keyframeAnimation,o)}function JG(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),ol(o)}}function $G(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=e.z2;null!=a&&(i.z2=a||0);for(var s=0;s<NG.length;s++)tH(i,e,NG[s])}}function tH(t,e,n){var i,r=n===DG,o=r?e:cH(e,n),a=o?o.z2:null;null!=a&&(i=r?t:t.ensureState(n),i.z2=a||0)}function eH(t,e,n,i){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):WG[o.type](o));for(var l,c,u=Object(s["i"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:w,style:C,ordinalRawValue:_,styleEmphasis:A,visual:M,barLayout:k,currentSeriesIndices:E,font:T},a.api||{}),h={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:nH(t.getData())},d={},p={},f={},g={},m=0;m<NG.length;m++){var v=NG[m];f[v]=t.getModel(FG[v]),g[v]=t.getModel(zG[v])}function y(t){return t===l?c||(c=e.getItemModel(t)):e.getItemModel(t)}function b(t,n){return e.hasItemOption?t===l?d[n]||(d[n]=y(t).getModel(FG[n])):y(t).getModel(FG[n]):f[n]}function x(t,n){return e.hasItemOption?t===l?p[n]||(p[n]=y(t).getModel(zG[n])):y(t).getModel(zG[n]):g[n]}return function(t,n){return l=t,c=null,d={},p={},r&&r(Object(s["i"])({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},h),u)};function w(t,n){return null==n&&(n=l),e.getStore().get(e.getDimensionIndex(t||0),n)}function _(t,n){null==n&&(n=l),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function C(n,i){null==i&&(i=l);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,c=b(i,DG).getItemStyle();null!=o&&(c.fill=o),null!=a&&(c.opacity=a);var u={inheritColor:Object(s["C"])(o)?o:"#000"},h=x(i,DG),d=ec(h,null,u,!1,!0);d.text=h.getShallow("show")?Object(s["P"])(t.getFormattedLabel(i,DG),sA(e,i)):null;var p=nc(h,u,!1);return S(n,c),c=sG(c,d,p),n&&I(c,n),c.legacy=!0,c}function A(n,i){null==i&&(i=l);var r=b(i,LG).getItemStyle(),o=x(i,LG),a=ec(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(s["Q"])(t.getFormattedLabel(i,LG),t.getFormattedLabel(i,DG),sA(e,i)):null;var c=nc(o,null,!0);return S(n,r),r=sG(r,a,c),n&&I(r,n),r.legacy=!0,r}function I(t,e){for(var n in e)Object(s["q"])(e,n)&&(t[n]=e[n])}function S(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function M(t,n){if(null==n&&(n=l),Object(s["q"])(WV,t)){var i=e.getItemVisual(n,"style");return i?i[WV[t]]:null}if(Object(s["q"])(UV,t))return e.getItemVisual(n,t)}function k(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return uI(Object(s["i"])({axis:e},t))}}function E(){return n.getCurrentSeriesIndices()}function T(t){return cc(t,n)}}function nH(t){var e={};return Object(s["k"])(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=e[r]=e[r]||[];o[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function iH(t,e,n,i,r,o,a){if(i){var s=rH(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Ml(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(e)}function rH(t,e,n,i,r,o){var a=-1,l=e;e&&oH(e,i,r)&&(a=Object(s["r"])(o.childrenRef(),e),e=null);var c=!e,u=e;u?u.clearStates():(u=KG(i),l&&YG(l,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),HG.normal.cfg=HG.normal.conOpt=HG.emphasis.cfg=HG.emphasis.conOpt=HG.blur.cfg=HG.blur.conOpt=HG.select.cfg=HG.select.conOpt=null,HG.isLegacy=!1,sH(u,n,i,r,c,HG),aH(u,n,i,r,c),QG(t,u,n,i,HG,r,c),Object(s["q"])(i,"info")&&(ZV(u).info=i.info);for(var h=0;h<NG.length;h++){var d=NG[h];if(d!==DG){var p=cH(i,d),f=uH(i,p,d);JG(d,u,p,f,HG)}}return $G(u,i,r),"group"===i.type&&hH(t,u,n,i,r),a>=0?o.replaceAt(u,a):o.add(u),u}function oH(t,e,n){var i=ZV(t),r=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&yH(o)&&vH(o)!==i.customPathData||"image"===r&&Object(s["q"])(a,"image")&&a.image!==i.customImagePath}function aH(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&oH(a,o,i)&&(a=null),a||(a=KG(o),t.setClipPath(a)),QG(null,a,e,o,null,i,r)}}function sH(t,e,n,i,r,o){if(!t.isGroup){lH(n,null,o),lH(n,LG,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(null!=a||null!=s||null!=c||null!=l){var u=t.getTextContent();if(!1===a)u&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=KG(a),t.setTextContent(u)),QG(null,u,e,a,null,i,r);for(var h=a&&a.style,d=0;d<NG.length;d++){var p=NG[d];if(p!==DG){var f=o[p].conOpt;JG(p,u,f,uH(a,f,p),null)}}h?u.dirty():u.markRedraw()}}}}function lH(t,e,n){var i=e?cH(t,e):t,r=e?uH(t,i,LG):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?cH(s,e):s:null;if(r&&(n.isLegacy||rG(r,o,!!a,!!l))){n.isLegacy=!0;var c=oG(r,o,!e);!a&&c.textConfig&&(a=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!e&&l){var u=l;!u.type&&(u.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function cH(t,e){return e?t?t[e]:null:t}function uH(t,e,n){var i=e&&e.style;return null==i&&n===LG&&t&&(i=t.styleEmphasis),i}function hH(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(a||l||c)if(l)pH({api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e});else{c&&e.removeAll();for(var u=0;u<a;u++){var h=o[u],d=e.childAt(u);h?(null==h.ignore&&(h.ignore=!1),rH(t,d,n,h,r,e)):d.ignore=!0}for(var p=e.childCount()-1;p>=u;p--){var f=e.childAt(p);dH(e,f,r)}}}function dH(t,e,n){e&&mG(e,ZV(t).option,n)}function pH(t){new uC(t.oldChildren,t.newChildren,fH,fH,t).add(gH).update(gH).remove(mH).execute()}function fH(t,e){var n=t&&t.name;return null!=n?n:GG+e}function gH(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;rH(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function mH(t){var e=this.context,n=e.oldChildren[t];n&&mG(n,ZV(n).option,e.seriesModel)}function vH(t){return t&&(t.pathData||t.d)}function yH(t){return t&&(Object(s["q"])(t,"pathData")||Object(s["q"])(t,"d"))}function bH(t){t.registerChartView(qG),t.registerSeriesModel(XV)}var xH=kr(),wH=s["d"],_H=s["c"],CH=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,l=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(l&&l.hide());a&&a.show(),l&&l.show();var c={};this.makeElOption(c,r,t,e,n);var u=c.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=s["h"](AH,e,h);this.updatePointerEl(a,c,d),this.updateLabelEl(a,c,d,e)}else a=this._group=new _i,this.createPointerEl(a,c,t,e),this.createLabelEl(a,c,t,e),n.getZr().add(a);kH(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=lE(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,r){var o=e.pointer;if(o){var a=xH(t).pointerEl=new i[o.type](wH(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=xH(t).labelEl=new _s(wH(e.label));t.add(r),SH(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=xH(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=xH(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),SH(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Em(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){et(t.event)},onmousedown:_H(this._onHandleDragMove,this,0,0),drift:_H(this._onHandleDragMove,this),ondragend:_H(this._onHandleDragEnd,this)}),i.add(r)),kH(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");s["t"](l)||(l=[l,l]),r.scaleX=l[0]/2,r.scaleY=l[1]/2,Km(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){AH(this._axisPointerModel,!e&&this._moveAnimation,this._handle,MH(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(MH(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(MH(i)),xH(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Qm(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function AH(t,e,n,i){IH(xH(n).lastProp,i)||(xH(n).lastProp=i,e?Gl(n,i,t):(n.stopAnimation(),n.attr(i)))}function IH(t,e){if(s["A"](t)&&s["A"](e)){var n=!0;return s["k"](e,(function(e,i){n=n&&IH(t[i],e)})),!!n}return t===e}function SH(t,e){t[e.get(["label","show"])?"show":"hide"]()}function MH(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function kH(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}var EH=CH;function TH(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle(),e.fill=null):"shadow"===n&&(e=i.getAreaStyle(),e.stroke=null),e}function OH(t,e,n,i,r){var o=n.get("value"),a=jH(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Cu(s.get("padding")||0),c=s.getFont(),u=ei(a,c),h=r.position,d=u.width+l[1]+l[3],p=u.height+l[0]+l[2],f=r.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),PH(h,d,p,i);var m=s.get("backgroundColor");m&&"auto"!==m||(m=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:ec(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function PH(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function jH(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var l={value:KM(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};s["k"](i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&l.seriesData.push(r)})),s["C"](a)?o=a.replace("{value}",o):s["w"](a)&&(o=a(l))}return o}function LH(t,e,n){var i=st();return dt(i,i,n.rotation),ht(i,i,n.position),_m([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function DH(t,e,n,i,r,o){var a=tE.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),OH(e,i,r,o,{position:LH(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function RH(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function BH(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function NH(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var FH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=zH(a,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var u=TH(i),h=VH[s](o,c,l);h.style=u,t.graphicKey=h.type,t.pointer=h}var d=Ok(a.model,n);DH(e,t,d,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Ok(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=LH(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=zH(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,c=[t.x,t.y];c[l]+=e[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var u=(s[1]+s[0])/2,h=[u,u];h[l]=c[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(EH);function zH(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var VH={line:function(t,e,n){var i=RH([e,n[0]],[e,n[1]],GH(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:BH([e-i/2,n[0]],[i,r],GH(t))}}};function GH(t){return"x"===t.dim?0:1}var HH=FH,WH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Xu),UH=WH,ZH=kr(),YH=s["k"];function XH(t,e,n){if(!a["a"].node){var i=e.getZr();ZH(i).records||(ZH(i).records={}),qH(i,e);var r=ZH(i).records[t]||(ZH(i).records[t]={});r.handler=n}}function qH(t,e){function n(n,i){t.on(n,(function(n){var r=$H(e);YH(ZH(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),KH(r.pendings,e)}))}ZH(t).initialized||(ZH(t).initialized=!0,n("click",s["h"](JH,"click")),n("mousemove",s["h"](JH,"mousemove")),n("globalout",QH))}function KH(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function QH(t,e,n){t.handler("leave",null,n)}function JH(t,e,n,i){e.handler(t,n,i)}function $H(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}function tW(t,e){if(!a["a"].node){var n=e.getZr(),i=(ZH(n).records||{})[t];i&&(ZH(n).records[t]=null)}}var eW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";XH("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){tW("axisPointer",e)},e.prototype.dispose=function(t,e){tW("axisPointer",e)},e.type="axisPointer",e}(Af),nW=eW;function iW(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Mr(o,t);if(null==a||a<0||s["t"](a))return{point:[]};var l=o.getItemGraphicEl(a),c=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(c&&c.dataToPoint)if(t.isStacked){var u=c.getBaseAxis(),h=c.getOtherAxis(u),d=h.dim,p=u.dim,f="x"===d||"radius"===d?1:0,g=o.mapDimension(p),m=[];m[f]=o.get(g,a),m[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=c.dataToPoint(m)||[]}else i=c.dataToPoint(o.getValues(s["H"](c.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(l){var v=l.getBoundingRect().clone();v.applyTransform(l.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:l}}var rW=kr();function oW(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||Object(s["c"])(n.dispatchAction,n),l=e.getComponent("axisPointer").coordSysAxesInfo;if(l){gW(r)&&(r=iW({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var c=gW(r),u=o.axesInfo,h=l.axesInfo,d="leave"===i||gW(r),p={},f={},g={list:[],map:{}},m={showPointer:Object(s["h"])(lW,f),showTooltip:Object(s["h"])(cW,g)};Object(s["k"])(l.coordSysMap,(function(t,e){var n=c||t.containPoint(r);Object(s["k"])(l.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=pW(u,t);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||c||(a=i.pointToData(r)),null!=a&&aW(t,a,m,!1,p)}}))}));var v={};return Object(s["k"])(h,(function(t,e){var n=t.linkGroup;n&&!f[e]&&Object(s["k"])(n.axesInfo,(function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,fW(e),fW(t)))),v[t.key]=o}}))})),Object(s["k"])(v,(function(t,e){aW(h[e],t,m,!0,p)})),uW(f,h,p),hW(g,r,t,a),dW(h,a,n),p}}function aW(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=sW(e,t),l=a.payloadBatch,c=a.snapToValue;l[0]&&null==r.seriesIndex&&Object(s["m"])(r,l[0]),!i&&t.snap&&o.containData(c)&&null!=c&&(e=c),n.showPointer(t,e,l),n.showTooltip(t,a,c)}else n.showPointer(t,e)}function sW(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,l=-1;return Object(s["k"])(e.seriesModels,(function(e,c){var u,h,d=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var p=e.getAxisTooltipData(d,t,n);h=p.dataIndices,u=p.nestestValue}else{if(h=e.getData().indicesOfNearest(d[0],t,"category"===n.type?.5:null),!h.length)return;u=e.getData().get(d[0],h[0])}if(null!=u&&isFinite(u)){var f=t-u,g=Math.abs(f);g<=a&&((g<a||f>=0&&l<0)&&(a=g,l=f,r=u,o.length=0),Object(s["k"])(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}function lW(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function cW(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,c=hE(l),u=t.map[c];u||(u=t.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function uW(t,e,n){var i=n.axesInfo=[];Object(s["k"])(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}function hW(t,e,n,i){if(!gW(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}function dW(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=rW(i)[r]||{},a=rW(i)[r]={};Object(s["k"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(s["k"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var l=[],c=[];Object(s["k"])(o,(function(t,e){!a[e]&&c.push(t)})),Object(s["k"])(a,(function(t,e){!o[e]&&l.push(t)})),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function pW(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function fW(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function gW(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function mW(t){fE.registerAxisPointerClass("CartesianAxisPointer",HH),t.registerComponentModel(UH),t.registerComponentView(nW),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(s["t"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=eE(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},oW)}function vW(t){jx(SE),jx(mW)}var yW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),c=o.dataToCoord(e),u=i.get("type");if(u&&"none"!==u){var h=TH(i),d=xW[u](o,a,c,l);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),f=bW(e,n,i,a,p);OH(t,n,i,r,f)},e}(EH);function bW(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=st();dt(d,d,s),ht(d,d,[i.cx,i.cy]),l=_m([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=tE.innerTextLayout(s,p*Math.PI/180,-1);c=f.textAlign,u=f.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,a]);var m=i.cx,v=i.cy;c=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var xW={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:RH(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:NH(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:NH(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},wW=yW,_W=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Xu),CW=_W,AW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Pr).models[0]},e.type="polarAxis",e}(Xu);s["K"](AW,FS);var IW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="angleAxis",e}(AW),SW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="radiusAxis",e}(AW),MW=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(kk);MW.prototype.dataToRadius=kk.prototype.dataToCoord,MW.prototype.radiusToData=kk.prototype.coordToData;var kW=MW,EW=kr(),TW=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return o(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=ei(null==o?"":o+"",e.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),d=EW(t.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-r)<=1&&p>h?h=p:(d.lastTickCount=r,d.lastAutoInterval=h),h},e}(kk);TW.prototype.dataToAngle=kk.prototype.dataToCoord,TW.prototype.angleToData=kk.prototype.coordToData;var OW=TW,PW=["radius","angle"],jW=function(){function t(t){this.dimensions=PW,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new kW,this._angleAxis=new OW,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,c=l<o?1:-1;while(l<o||l>a)l+=360*c;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*e+this.cx,r=-Math.sin(n)*e+this.cy;return[i,r]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var i=LW(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=LW(e);return i===this?this.pointToData(n):null},t}();function LW(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var DW=jW;function RW(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=Li(i[0],r),t.cy=Li(i[1],o);var a=t.getRadiusAxis(),l=Math.min(r,o)/2,c=e.get("radius");null==c?c=[0,"100%"]:s["t"](c)||(c=[0,c]);var u=[Li(c[0],l),Li(c[1],l)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function BW(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();s["k"](ek(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),s["k"](ek(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),ZM(i.scale,i.model),ZM(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function NW(t){return"angleAxis"===t.mainType}function FW(t,e){if(t.type=e.get("type"),t.scale=YM(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),NW(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var zW={dimensions:PW,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new DW(i+"");r.update=BW;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");FW(o,s),FW(a,l),RW(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Pr).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},VW=zW,GW=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function HW(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function WW(t){var e=t.getRadiusAxis();return e.inverse?0:1}function UW(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var ZW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return o(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),l=s["H"](n.getViewLabels(),(function(t){t=s["d"](t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));UW(l),UW(o),s["k"](GW,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||YW[e](this.group,t,i,o,a,r,l)}),this)}},e.type="angleAxis",e}(fE),YW={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=WW(n),c=l?0:1;a=0===o[c]?new Qf({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new wg({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[c]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),l=(a.get("inside")?-1:1)*a.get("length"),c=o[WW(n)],u=s["H"](i,(function(t){return new jg({shape:HW(n,[c,c+l],t.coord)})}));t.add(mm(u,{style:s["i"](a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),l=e.getModel("minorTick"),c=(a.get("inside")?-1:1)*l.get("length"),u=o[WW(n)],h=[],d=0;d<r.length;d++)for(var p=0;p<r[d].length;p++)h.push(new jg({shape:HW(n,[u,u+c],r[d][p].coord)}));t.add(mm(h,{style:s["i"](l.getModel("lineStyle").getLineStyle(),s["i"](a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,o,a){var l=e.getCategories(!0),c=e.getModel("axisLabel"),u=c.get("margin"),h=e.get("triggerEvent");s["k"](a,(function(i,r){var a=c,d=i.tickValue,p=o[WW(n)],f=n.coordToPoint([p+u,i.coord]),g=n.cx,m=n.cy,v=Math.abs(f[0]-g)/p<.3?"center":f[0]>g?"left":"right",y=Math.abs(f[1]-m)/p<.3?"middle":f[1]>m?"top":"bottom";if(l&&l[d]){var b=l[d];s["A"](b)&&b.textStyle&&(a=new Ic(b.textStyle,c,c.ecModel))}var x=new _s({silent:tE.isLabelSilent(e),style:ec(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:y})});if(t.add(x),h){var w=tE.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=i.rawLabel,Cs(x).eventData=w}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine"),l=a.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d<i.length;d++){var p=u++%c.length;h[p]=h[p]||[],h[p].push(new jg({shape:HW(n,o,i[d].coord)}))}for(d=0;d<h.length;d++)t.add(mm(h[d],{style:s["i"]({stroke:c[d%c.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],c=0;c<r.length;c++)for(var u=0;u<r[c].length;u++)l.push(new jg({shape:HW(n,o,r[c][u].coord)}));t.add(mm(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){var a=e.getModel("splitArea"),l=a.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=Math.PI/180,p=-i[0].coord*d,f=Math.min(o[0],o[1]),g=Math.max(o[0],o[1]),m=e.get("clockwise"),v=1,y=i.length;v<=y;v++){var b=v===y?i[0].coord:i[v].coord,x=u++%c.length;h[x]=h[x]||[],h[x].push(new yg({shape:{cx:n.cx,cy:n.cy,r0:f,r:g,startAngle:p,endAngle:-b*d,clockwise:m},silent:!0})),p=-b*d}for(v=0;v<h.length;v++)t.add(mm(h[v],{style:s["i"]({fill:c[v%c.length]},l.getAreaStyle()),silent:!0}))}}},XW=ZW,qW=["axisLine","axisTickLabel","axisName"],KW=["splitLine","splitArea","minorSplitLine"],QW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return o(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new _i;this.group.add(i);var r=t.axis,o=r.polar,a=o.getAngleAxis(),l=r.getTicksCoords(),c=r.getMinorTicksCoords(),u=a.getExtent()[0],h=r.getExtent(),d=$W(o,t,u),p=new tE(t,d);s["k"](qW,p.add,p),i.add(p.getGroup()),Sm(n,i,t),s["k"](KW,(function(e){t.get([e,"show"])&&!r.scale.isBlank()&&JW[e](this.group,t,o,u,h,l,c)}),this)}},e.type="radiusAxis",e}(fE),JW={splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine"),l=a.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=0;d<o.length;d++){var p=u++%c.length;h[p]=h[p]||[],h[p].push(new Qf({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[d].coord,0)}}))}for(d=0;d<h.length;d++)t.add(mm(h[d],{style:s["i"]({stroke:c[d%c.length],fill:null},l.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var l=e.getModel("minorSplitLine"),c=l.getModel("lineStyle"),u=[],h=0;h<a.length;h++)for(var d=0;d<a[h].length;d++)u.push(new Qf({shape:{cx:n.cx,cy:n.cy,r:a[h][d].coord}}));t.add(mm(u,{style:s["i"]({fill:null},c.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){var a=e.getModel("splitArea"),l=a.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var h=[],d=o[0].coord,p=1;p<o.length;p++){var f=u++%c.length;h[f]=h[f]||[],h[f].push(new yg({shape:{cx:n.cx,cy:n.cy,r0:d,r:o[p].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[p].coord}for(p=0;p<h.length;p++)t.add(mm(h[p],{style:s["i"]({fill:c[p%c.length]},l.getAreaStyle()),silent:!0}))}}};function $W(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var tU=QW;function eU(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function nU(t,e){return e.dim+t.model.componentIndex}function iU(t,e,n){var i={},r=rU(s["n"](e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=nU(n,o),s=eU(t),l=r[a][s],c=l.offset,u=l.width,h=n.getOtherAxis(o),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=e.mapDimension(h.dim),v=e.mapDimension(o.dim),y=QC(e,m),b="radius"!==o.dim||!t.get("roundCap",!0),x=h.dataToCoord(0),w=0,_=e.count();w<_;w++){var C=e.get(m,w),A=e.get(v,w),I=C>=0?"p":"n",S=x;y&&(i[s][A]||(i[s][A]={p:x,n:x}),S=i[s][A][I]);var M=void 0,k=void 0,E=void 0,T=void 0;if("radius"===h.dim){var O=h.dataToCoord(C)-x,P=o.dataToCoord(A);Math.abs(O)<f&&(O=(O<0?-1:1)*f),M=S,k=S+O,E=P-c,T=E-u,y&&(i[s][A][I]=k)}else{var j=h.dataToCoord(C,b)-x,L=o.dataToCoord(A);Math.abs(j)<g&&(j=(j<0?-1:1)*g),M=L+c,k=M+u,E=S,T=S+j,y&&(i[s][A][I]=T)}e.setItemLayout(w,{cx:d,cy:p,r0:M,r:k,startAngle:-E*Math.PI/180,endAngle:-T*Math.PI/180,clockwise:E>=T})}}}))}function rU(t){var e={};s["k"](t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=nU(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;e[a]=c;var h=eU(t);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=Li(t.get("barWidth"),l),p=Li(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),p&&(u[h].maxWidth=p),null!=f&&(c.gap=f),null!=g&&(c.categoryGap=g)}));var n={};return s["k"](e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=Li(t.categoryGap,r),a=Li(t.gap,1),l=t.remainedWidth,c=t.autoWidthCount,u=(l-o)/(c+(c-1)*a);u=Math.max(u,0),s["k"](i,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,l),t.width&&(n=Math.min(n,t.width)),l-=n,t.width=n,c--)})),u=(l-o)/(c+(c-1)*a),u=Math.max(u,0);var h,d=0;s["k"](i,(function(t,e){t.width||(t.width=u),h=t,d+=t.width*(1+a)})),h&&(d-=h.width*a);var p=-d/2;s["k"](i,(function(t,i){n[e][i]=n[e][i]||{offset:p,width:t.width},p+=t.width*(1+a)}))})),n}var oU=iU,aU={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},sU={splitNumber:5},lU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="polar",e}(Af);function cU(t){jx(mW),fE.registerAxisPointerClass("PolarAxisPointer",wW),t.registerCoordinateSystem("polar",VW),t.registerComponentModel(CW),t.registerComponentView(lU),JS(t,"angle",IW,aU),JS(t,"radius",SW,sU),t.registerComponentView(XW),t.registerComponentView(tU),t.registerLayout(Object(s["h"])(oU,"bar"))}function uU(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,l=n.getRect(),c=[l.x,l.x+l.width,l.y,l.y+l.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};r.position=["vertical"===a?u.vertical[o]:c[0],"horizontal"===a?u.horizontal[o]:c[3]];var h={horizontal:0,vertical:1};r.rotation=Math.PI/2*h[a];var d={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=d[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),s["O"](e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var p=e.rotate;return null==p&&(p=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-p:p,r.z2=1,r}var hU=["axisLine","axisTickLabel","axisName"],dU=["splitArea","splitLine"],pU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return o(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new _i;var l=uU(e),c=new tE(e,l);s["k"](hU,c.add,c),o.add(this._axisGroup),o.add(c.getGroup()),s["k"](dU,(function(t){e.get([t,"show"])&&fU[t](this,this.group,this._axisGroup,e)}),this),Sm(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){vE(this)},e.type="singleAxis",e}(fE),fU={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),l=a.get("color");l=l instanceof Array?l:[l];for(var c=a.get("width"),u=i.coordinateSystem.getRect(),h=r.isHorizontal(),d=[],p=0,f=r.getTicksCoords({tickModel:o}),g=[],m=[],v=0;v<f.length;++v){var y=r.toGlobalCoord(f[v].coord);h?(g[0]=y,g[1]=u.y,m[0]=y,m[1]=u.y+u.height):(g[0]=u.x,g[1]=y,m[0]=u.x+u.width,m[1]=y);var b=new jg({shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},silent:!0});ym(b.shape,c);var x=p++%l.length;d[x]=d[x]||[],d[x].push(b)}var w=a.getLineStyle(["color"]);for(v=0;v<d.length;++v)e.add(mm(d[v],{style:s["i"]({stroke:l[v%l.length]},w),silent:!0}))}},splitArea:function(t,e,n,i){mE(t,n,i,i)}},gU=pU,mU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Xu);Object(s["K"])(mU,FS.prototype);var vU=mU,yU=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return o(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(kk),bU=yU,xU=["single"],wU=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=xU,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new bU(i,YM(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(s["k"])(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),ZM(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Nu({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){var i=_U(e);return i===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=_U(e);return i===this?this.pointToData(n):null},t}();function _U(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var CU=wU;function AU(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new CU(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Pr).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var IU={create:AU,dimensions:xU},SU=IU,MU=["x","y"],kU=["width","height"],EU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=PU(a,1-OU(o)),l=a.dataToPoint(e)[0],c=i.get("type");if(c&&"none"!==c){var u=TH(i),h=TU[c](o,l,s);h.style=u,t.graphicKey=h.type,t.pointer=h}var d=uU(n);DH(e,t,d,n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=uU(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=LH(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=OU(r),s=PU(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var c=PU(o,1-a),u=(c[1]+c[0])/2,h=[u,u];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(EH),TU={line:function(t,e,n){var i=RH([e,n[0]],[e,n[1]],OU(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:BH([e-i/2,n[0]],[i,r],OU(t))}}};function OU(t){return t.isHorizontal()?0:1}function PU(t,e){var n=t.getRect();return[n[MU[e]],n[MU[e]]+n[kU[e]]]}var jU=EU,LU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="single",e}(Af);function DU(t){jx(mW),fE.registerAxisPointerClass("SingleAxisPointer",jU),t.registerComponentView(LU),t.registerComponentView(gU),t.registerComponentModel(vU),JS(t,"single",vU,vU.defaultOption),t.registerCoordinateSystem("single",SU)}var RU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(e,n,i){var r=Hu(e);t.prototype.init.apply(this,arguments),BU(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),BU(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Xu);function BU(t,e){var n,i=t.cellSize;n=s["t"](i)?i:t.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=s["H"]([0,1],(function(t){return zu(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Gu(t,e,{type:"box",ignoreSize:r})}var NU=RU,FU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new rs({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(c)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=e.start,u=0;c.time<=e.end.time;u++){d(c.formatedDate),0===u&&(c=o.getDateInfo(e.start.y+"-"+e.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Eg({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(s["C"])(t)&&t?ku(t,e):Object(s["w"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,h={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new _s({z2:30,style:ec(r,{text:g})});m.attr(this._yearTextPositionControl(m,h[a],n,a,o)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),l=r.get("position"),c=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(s["C"])(o)||(o&&(e=Vc(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===l?0:1,d="horizontal"===n?0:1;a="start"===l?-a:a;for(var p="center"===c,f=0;f<u[h].length-1;f++){var g=u[h][f].slice(),m=this._firstDayOfMonth[f];if(p){var v=this._firstDayPoints[f];g[d]=(v[d]+u[0][f+1][d])/2}var y=r.get("formatter"),b=o[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(y,x),_=new _s({z2:30,style:Object(s["m"])(ec(r,{text:w}),this._monthTextPositionControl(g,p,n,l,a))});i.add(_)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],c="start"===n;return"horizontal"===e?(s=s+i+(c?1:-1)*r[0]/2,o=c?"right":"left"):(l=l+i+(c?1:-1)*r[1]/2,a=c?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i,r){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,l=o.get("position"),c=o.get("nameMap"),u=o.get("margin"),h=a.getFirstDayOfWeek();if(!c||Object(s["C"])(c)){c&&(e=Vc(c)||e);var d=e.get(["time","dayOfWeekShort"]);c=d||Object(s["H"])(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var p=a.getNextNDay(n.end.time,7-n.lweek).time,f=[a.getCellWidth(),a.getCellHeight()];u=Li(u,Math.min(f[1],f[0])),"start"===l&&(p=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var g=0;g<7;g++){var m=a.getNextNDay(p,g),v=a.dataToRect([m.time],!1).center,y=g;y=Math.abs((g+h)%7);var b=new _s({z2:30,style:Object(s["m"])(ec(o,{text:c[y]}),this._weekTextPositionControl(v,i,l,u,f))});r.add(b)}}},e.type="calendar",e}(Af),zU=FU,VU=864e5,GU=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=Zi(t);var e=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e+"",m:i,d:o,day:a,time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];s["k"]([0,1],(function(t){u(r,t)&&(o[i[t]]=r[t]*a[t])}));var l={width:e.getWidth(),height:e.getHeight()},c=this._rect=Nu(o,l);function u(t,e){return null!=t[e]&&"auto"!==t[e]}s["k"]([0,1],(function(t){u(r,t)||(r[t]=c[i[t]]/a[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){s["t"](t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+VU))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=HU(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=HU(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(s["t"](e)&&1===e.length&&(e=e[0]),s["t"](e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/VU)-Math.floor(n[0].time/VU)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var c=Math.floor((i+n[0].day+6)/7),u=e?1-c:c-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function HU(t){var e=t.calendarModel,n=t.seriesModel,i=e?e.coordinateSystem:n?n.coordinateSystem:null;return i}var WU=GU;function UU(t){t.registerComponentModel(NU),t.registerComponentView(zU),t.registerCoordinateSystem("calendar",WU)}function ZU(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function YU(t,e){var n;return s["k"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function XU(t,e,n){var i=s["m"]({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(s["I"](r,i,!0),Gu(r,i,{ignoreSize:!0}),Wu(n,r),QU(n,r),QU(n,r,"shape"),QU(n,r,"style"),QU(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}var qU=["transition","enterFrom","leaveTo"],KU=qU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function QU(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?qU:KU,r=0;r<i.length;r++){var o=i[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}function JU(t,e){if(t&&(t.hv=e.hv=[YU(e,["left","right"]),YU(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var $U=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return o(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=hr(r,o,"normalMerge"),l=this._elOptionsToUpdate=[];s["k"](a,(function(t,e){var n=t.newOption;n&&(l.push(n),ZU(t,n),XU(r,e,n),JU(r[e],n))}),this),n.elements=s["n"](r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){s["k"](t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Xu),tZ={path:null,compoundPath:null,group:_i,image:qa,text:_s},eZ=kr(),nZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(){this._elMap=s["f"]()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),o=t.get("zlevel");s["k"](e,(function(e){var a=xr(e.id,null),s=null!=a?n.get(a):null,l=xr(e.parentId,null),c=null!=l?n.get(l):i,u=e.type,h=e.style;"text"===u&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,p=e.textConfig;if(h&&rG(h,u,!!p,!!d)){var f=oG(h,u,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=sZ(e);var m=e.$action||"merge",v="merge"===m,y="replace"===m;if(v){var b=!s,x=s;b?x=rZ(a,c,e.type,n):(x&&(eZ(x).isNew=!1),PG(x)),x&&(fG(x,g,t,{isInit:b}),aZ(x,e,r,o))}else if(y){oZ(s,e,n,t);var w=rZ(a,c,e.type,n);w&&(fG(w,g,t,{isInit:!0}),aZ(w,e,r,o))}else"remove"===m&&(gG(s,e),oZ(s,e,n,t));var _=n.get(a);if(_&&d)if(v){var C=_.getTextContent();C?C.attr(d):_.setTextContent(new _s(d))}else y&&_.setTextContent(new _s(d));if(_){var A=e.clipPath;if(A){var I=A.type,S=void 0;b=!1;if(v){var M=_.getClipPath();b=!M||eZ(M).type!==I,S=b?iZ(I):M}else y&&(b=!0,S=iZ(I));_.setClipPath(S),fG(S,A,t,{isInit:b}),jG(S,A.keyframeAnimation,t)}var k=eZ(_);_.setTextConfig(p),k.option=e,lZ(_,t,e),Lm({el:_,componentModel:t,itemName:_.name,itemTooltipOption:e.tooltip}),jG(_,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),l=["x","y"],c=0;c<n.length;c++){var u=n[c],h=xr(u.id,null),d=null!=h?r.get(h):null;if(d&&d.isGroup){var p=d.parent,f=p===i,g=eZ(d),m=eZ(p);g.width=Li(g.option.width,f?o:m.width)||0,g.height=Li(g.option.height,f?a:m.height)||0}}for(c=n.length-1;c>=0;c--){u=n[c],h=xr(u.id,null),d=null!=h?r.get(h):null;if(d){p=d.parent,m=eZ(p);var v=p===i?{width:o,height:a}:{width:m.width,height:m.height},y={},b=Fu(d,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!eZ(d).isNew&&b){for(var x=u.transition,w={},_=0;_<l.length;_++){var C=l[_],A=y[C];x&&(vG(x)||s["r"](x,C)>=0)?w[C]=A:d[C]=A}Gl(d,w,t,0)}else d.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){oZ(n,eZ(n).option,e,t._lastGraphicModel)})),this._elMap=s["f"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Af);function iZ(t){var e=s["q"](tZ,t)?tZ[t]:dm(t);var n=new e({});return eZ(n).type=t,n}function rZ(t,e,n,i){var r=iZ(n);return e.add(r),i.set(t,r),eZ(r).id=t,eZ(r).isNew=!0,r}function oZ(t,e,n,i){var r=t&&t.parent;r&&("group"===t.type&&t.traverse((function(t){oZ(t,e,n,i)})),mG(t,e,i),n.removeKey(eZ(t).id))}function aZ(t,e,n,i){t.isGroup||s["k"]([["cursor",Lo.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];s["q"](e,i)?t[i]=s["P"](e[i],n[1]):null==t[i]&&(t[i]=n[1])})),s["k"](s["F"](e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=s["w"](i)?i:null}})),s["q"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function sZ(t){return t=s["m"]({},t),s["k"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(ju),(function(e){delete t[e]})),t}function lZ(t,e,n){var i=Cs(t).eventData;t.silent||t.ignore||i||(i=Cs(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}function cZ(t){t.registerComponentModel($U),t.registerComponentView(nZ),t.registerPreprocessor((function(t){var e=t.graphic;Object(s["t"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var uZ=["x","y","radius","angle","single"],hZ=["cartesian2d","polar","singleAxis"];function dZ(t){var e=t.get("coordinateSystem");return Object(s["r"])(hZ,e)>=0}function pZ(t){return t+"Axis"}function fZ(t,e){var n,i=Object(s["f"])(),r=[],o=Object(s["f"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||l(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&c(t)&&(l(t),n=!0)}function l(t){o.set(t.uid,!0),r.push(t),u(t)}function c(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function gZ(t){var e=t.ecModel,n={infoList:[],infoMap:Object(s["f"])()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(pZ(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var mZ=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),vZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return o(e,t),e.prototype.init=function(t,e,n){var i=yZ(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=yZ(t);Object(s["I"])(this.option,t,!0),Object(s["I"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(s["f"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(s["k"])(uZ,(function(n){var i=this.getReferringComponents(pZ(n),jr);if(i.specified){e=!0;var r=new mZ;Object(s["k"])(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var r=e[0];if(r){var o=new mZ;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Pr).models[0];a&&Object(s["k"])(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Pr).models[0]&&o.add(t.componentIndex)}))}}}i&&Object(s["k"])(uZ,(function(e){if(i){var r=n.findComponents({mainType:pZ(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new mZ;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(s["k"])([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(pZ(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){Object(s["k"])(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(pZ(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(s["k"])([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(s["k"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Xu);function yZ(t){var e={};return Object(s["k"])(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var bZ=vZ,xZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.select",e}(bZ),wZ=xZ,_Z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(Af),CZ=_Z,AZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.select",e}(CZ),IZ=AZ,SZ=s["k"],MZ=Ri,kZ=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(dZ(e)){var n=pZ(this._dimName),i=e.getReferringComponents(n,Pr).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return s["d"](this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];SZ(["start","end"],(function(i,c){var u=t[i],h=t[i+"Value"];"percent"===o[c]?(null==u&&(u=a[c]),h=r.parse(ji(u,a,n))):(e=!0,h=null==h?n[c]:r.parse(h),u=ji(h,n,a)),l[c]=null==h||isNaN(h)?n[c]:h,s[c]=null==u||isNaN(u)?a[c]:u})),MZ(l),MZ(s);var c=this._minMaxSpan;function u(t,e,n,i,o){var a=o?"Span":"ValueSpan";qR(0,t,n,"all",c["min"+a],c["max"+a]);for(var s=0;s<2;s++)e[s]=ji(t[s],n,i,!0),o&&(e[s]=r.parse(e[s]))}return e?u(l,s,n,a,!1):u(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=EZ(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&SZ(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var l=e.getStore(),c=s["H"](i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,a=0;a<i.length;a++){var s=l.get(c[a],t),u=!isNaN(s),h=s<o[0],d=s>o[1];if(u&&!h&&!d)return!0;u&&(r=!0),h&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else SZ(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));SZ(i,(function(t){e.setApproximateExtent(o,t)}))}}))}function a(t){return t>=o[0]&&t<=o[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;SZ(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=ji(n[0]+o,n,[0,100],!0):null!=r&&(o=ji(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Fi(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();function EZ(t,e,n){var i=[1/0,-1/0];SZ(n,(function(t){nk(i,t.getData(),e)}));var r=t.getAxisModel(),o=GM(r.axis.scale,r,i).calculate();return[o.min,o.max]}var TZ=kZ,OZ={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(pZ(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new TZ(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=Object(s["f"])();return Object(s["k"])(n,(function(t){Object(s["k"])(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},PZ=OZ;function jZ(t){t.registerAction("dataZoom",(function(t,e){var n=fZ(e,t);Object(s["k"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var LZ=!1;function DZ(t){LZ||(LZ=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,PZ),jZ(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function RZ(t){t.registerComponentModel(wZ),t.registerComponentView(IZ),DZ(t)}var BZ=function(){function t(){}return t}(),NZ={};function FZ(t,e){NZ[t]=e}function zZ(t){return NZ[t]}var VZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;s["k"](this.option.feature,(function(t,n){var i=zZ(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),s["I"](t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Xu),GZ=VZ;function HZ(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Nu(i,o,r);Ru(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Fu(t,i,o,r)}function WZ(t,e){var n=Cu(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new rs({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),t}var UZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),l=t.get("feature")||{},c=this._features||(this._features={}),u=[];s["k"](l,(function(t,e){u.push(e)})),new uC(this._featureNames||[],u).add(h).update(h).remove(s["h"](h,null)).execute(),this._featureNames=u,HZ(r,t,n),r.add(WZ(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),l=t.getTextContent(),c=l&&l.ensureState("emphasis");if(c&&!s["w"](c)&&e){var u=c.style||(c.style={}),h=ei(e,_s.makeFont(u)),d=t.x+r.x,p=t.y+r.y+o,f=!1;p+h.height>n.getHeight()&&(a.position="top",f=!0);var g=f?-5-h.height:o+10;d+h.width/2>n.getWidth()?(a.position=["100%",g],u.align="right"):d-h.width/2<0&&(a.position=[0,g],u.align="left")}}))}function h(r,o){var a,s=u[r],h=u[o],p=l[s],f=new Ic(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===s&&(p.title=i.newTitle),s&&!h){if(ZZ(s))a={onclick:f.option.onclick,featureName:s};else{var g=zZ(s);if(!g)return;a=new g}c[s]=a}else if(a=c[h],!a)return;a.uid=Mc("toolbox-feature"),a.model=f,a.ecModel=e,a.api=n;var m=a instanceof BZ;s||!h?!f.get("show")||m&&a.unusable?m&&a.remove&&a.remove(e,n):(d(f,a,s),f.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?ll:cl)(i[t])},a instanceof BZ&&a.render&&a.render(f,e,n,i)):m&&a.dispose&&a.dispose(e,n)}function d(i,l,c){var u,h,d=i.getModel("iconStyle"),p=i.getModel(["emphasis","iconStyle"]),f=l instanceof BZ&&l.getIcons?l.getIcons():i.get("icon"),g=i.get("title")||{};s["C"](f)?(u={},u[c]=f):u=f,s["C"](g)?(h={},h[c]=g):h=g;var m=i.iconPaths={};s["k"](u,(function(c,u){var f=Em(c,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(d.getItemStyle());var g=f.ensureState("emphasis");g.style=p.getItemStyle();var v=new _s({style:{text:h[u],align:p.get("textAlign"),borderRadius:p.get("textBorderRadius"),padding:p.get("textPadding"),fill:null},ignore:!0});f.setTextContent(v),Lm({el:f,componentModel:t,itemName:u,formatterParamsExtra:{title:h[u]}}),f.__title=h[u],f.on("mouseover",(function(){var e=p.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";v.setStyle({fill:p.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:p.get("textBackgroundColor")}),f.setTextConfig({position:p.get("textPosition")||i}),v.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",u])?ll:cl)(f),r.add(f),f.on("click",s["c"](l.onclick,l,e,n,u)),m[u]=f}))}},e.prototype.updateView=function(t,e,n,i){s["k"](this._features,(function(t){t instanceof BZ&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){s["k"](this._features,(function(n){n instanceof BZ&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){s["k"](this._features,(function(n){n instanceof BZ&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Af);function ZZ(t){return 0===t.indexOf("my")}var YZ=UZ,XZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",l=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),c=a["a"].browser;if(Object(s["w"])(MouseEvent)&&(c.newEdge||!c.ie&&!c.edge)){var u=document.createElement("a");u.download=i+"."+o,u.target="_blank",u.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||r){var d=l.split(","),p=d[0].indexOf("base64")>-1,f=r?decodeURIComponent(d[1]):d[1];p&&(f=window.atob(f));var g=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var m=f.length,v=new Uint8Array(m);while(m--)v[m]=f.charCodeAt(m);var y=new Blob([v]);window.navigator.msSaveOrOpenBlob(y,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var x=b.contentWindow,w=x.document;w.open("image/svg+xml","replace"),w.write(f),w.close(),x.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var _=n.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',A=window.open();A.document.write(C),A.document.title=i}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(BZ),qZ=XZ,KZ="__ec_magicType_stack__",QZ=[["line","bar"],["stack"]],JZ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return s["k"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if($Z[n]){var o,a={series:[]},l=function(t){var e=t.subType,r=t.id,o=$Z[n](e,r,t,i);o&&(s["i"](o,t.option),a.series.push(o));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===n||"bar"===n)){var c=l.getAxesByScale("ordinal")[0];if(c){var u=c.dim,h=u+"Axis",d=t.getReferringComponents(h,Pr).models[0],p=d.componentIndex;a[h]=a[h]||[];for(var f=0;f<=p;f++)a[h][p]=a[h][p]||{};a[h][p].boundaryGap="bar"===n}}};s["k"](QZ,(function(t){s["r"](t,n)>=0&&s["k"](t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},l);var c=n;"stack"===n&&(o=s["I"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(c="tiled")),e.dispatchAction({type:"changeMagicType",currentType:c,newOption:a,newTitle:o,featureName:"magicType"})}},e}(BZ),$Z={line:function(t,e,n,i){if("bar"===t)return s["I"]({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return s["I"]({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===KZ;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),s["I"]({id:e,stack:r?"":KZ},i.get(["option","stack"])||{},!0)}};_x({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var tY=JZ,eY=new Array(60).join("-"),nY="\t";function iY(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function rY(t){var e=[];return s["k"](t,(function(t,n){var i=t.categoryAxis,r=t.valueAxis,o=r.dim,a=[" "].concat(s["H"](t.series,(function(t){return t.name}))),l=[i.model.getCategories()];s["k"](t.series,(function(t){var e=t.getRawData();l.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var c=[a.join(nY)],u=0;u<l[0].length;u++){for(var h=[],d=0;d<l.length;d++)h.push(l[d][u]);c.push(h.join(nY))}e.push(c.join("\n"))})),e.join("\n\n"+eY+"\n\n")}function oY(t){return s["H"](t,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+nY:"")+i.join(nY))})),n.join("\n")})).join("\n\n"+eY+"\n\n")}function aY(t){var e=iY(t);return{value:s["n"]([rY(e.seriesGroupByCategoryAxis),oY(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+eY+"\n\n"),meta:e.meta}}function sY(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lY(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(nY)>=0)return!0}var cY=new RegExp("["+nY+"]+","g");function uY(t){for(var e=t.split(/\n+/g),n=sY(e.shift()).split(cY),i=[],r=s["H"](n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=sY(e[o]).split(cY);i.push(a.shift());for(var l=0;l<a.length;l++)r[l]&&(r[l].data[o]=a[l])}return{series:r,categories:i}}function hY(t){for(var e=t.split(/\n+/g),n=sY(e.shift()),i=[],r=0;r<e.length;r++){var o=sY(e[r]);if(o){var a=o.split(cY),s="",l=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var u=0;u<a.length;u++)l.push(+a[u]);1===l.length&&(c?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function dY(t,e){var n=t.split(new RegExp("\n*"+eY+"\n*","g")),i={series:[]};return s["k"](n,(function(t,n){if(lY(t)){var r=uY(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=hY(t);i.series.push(r)}})),i}var pY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var l=document.createElement("div"),c=document.createElement("textarea");l.style.cssText="overflow:auto";var u=i.get("optionToContent"),h=i.get("contentToOption"),d=aY(t);if(s["w"](u)){var p=u(e.getOption());s["C"](p)?l.innerHTML=p:s["v"](p)&&l.appendChild(p)}else{c.readOnly=i.get("readOnly");var f=c.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=i.get("textColor"),f.borderColor=i.get("textareaBorderColor"),f.backgroundColor=i.get("textareaColor"),c.value=d.value,l.appendChild(c)}var g=d.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),b=document.createElement("div");v+=";background-color:"+i.get("buttonColor"),v+=";color:"+i.get("buttonTextColor");var x=this;function w(){n.removeChild(r),x._dom=null}$(y,"click",w),$(b,"click",(function(){if(null==h&&null!=u||null!=h&&null==u)w();else{var t;try{t=s["w"](h)?h(l,e.getOption()):dY(c.value,g)}catch(n){throw w(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),w()}})),y.innerHTML=a[1],b.innerHTML=a[2],b.style.cssText=y.style.cssText=v,!i.get("readOnly")&&m.appendChild(b),m.appendChild(y),r.appendChild(o),r.appendChild(l),r.appendChild(m),l.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(BZ);function fY(t,e){return s["H"](t,(function(t,n){var i=e&&e[n];if(s["A"](i)&&!s["t"](i)){var r=s["A"](t)&&!s["t"](t);r||(t={value:t});var o=null!=i.name&&null==t.name;return t=s["i"](t,i),o&&delete t.name,t}return t}))}_x({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];s["k"](t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:fY(t.data,r)})}else n.push(s["m"]({type:"scatter"},t))})),e.mergeOption(s["i"]({series:n},t.newOption))}));var gY=pY,mY=s["k"],vY=kr();function yY(t,e){var n=_Y(t);mY(e,(function(e,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(e)}function bY(t){var e=_Y(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return mY(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n],t){i[n]=t;break}})),i}function xY(t){vY(t).snapshots=null}function wY(t){return _Y(t).length}function _Y(t){var e=vY(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var CY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onclick=function(t,e){xY(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(BZ);_x({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var AY=CY,IY=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],SY=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=kY(e,t);Object(s["k"])(EY,(function(t,e){(!n||!n.include||Object(s["r"])(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=PY[t.brushType](0,n,e);t.__rangeOffset={offset:LY[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(s["k"])(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(s["k"])(i.coordSyses,(function(i){var r=PY[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(s["k"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var i=PY[t.brushType](0,n.coordSys,t.coordRange),r=t.__rangeOffset;t.range=r?LY[t.brushType](i.values,r.offset,RY(i.xyMinMax,r.xyMinMax)):i.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(s["H"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:hN(i),isTargetByCursor:pN(i,t,n.coordSysModel),getLinearBrushOtherExtent:dN(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(s["r"])(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=kY(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<TY.length;s++)if(TY[s](i,o))return o}return!0},t}();function MY(t){return t[0]>t[1]&&t.reverse(),t}function kY(t,e){return Tr(t,e,{includeMainTypes:IY})}var EY={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=Object(s["f"])(),a={},l={};(n||i||r)&&(Object(s["k"])(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(s["k"])(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),l[e.id]=!0})),Object(s["k"])(r,(function(t){o.set(t.id,t),a[t.id]=!0,l[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];Object(s["k"])(r.getCartesians(),(function(t,e){(Object(s["r"])(n,t.getAxis("x").model)>=0||Object(s["r"])(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:OY.grid,xAxisDeclared:a[t.id],yAxisDeclared:l[t.id]})})))},geo:function(t,e){Object(s["k"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:OY.geo})}))}},TY=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],OY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(wm(t)),e}},PY={lineX:Object(s["h"])(jY,0),lineY:Object(s["h"])(jY,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[MY([r[0],o[0]]),MY([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(s["H"])(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function jY(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=MY(Object(s["H"])([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var LY={lineX:Object(s["h"])(DY,0),lineY:Object(s["h"])(DY,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(s["H"])(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function DY(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function RY(t,e){var n=BY(t),i=BY(e),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function BY(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var NY=SY,FY=s["k"],zY=Cr("toolbox-dataZoom_"),VY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new uN(n.getZr()),this._brushController.on("brush",s["c"](this._onBrush,this)).mount()),UY(t,e,this,i,n),WY(t,e)},e.prototype.onclick=function(t,e,n){GY[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new NY(HY(this.model),i,{include:["grid"]});r.matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[i],n,e)}})),yY(i,n),this._dispatchZoomAction(n)}function o(t,e,r){var o=e.getAxis(t),s=o.model,l=a(t,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(r=qR(0,r.slice(),o.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(t,e.componentIndex);r&&(i=n)})),i}},e.prototype._dispatchZoomAction=function(t){var e=[];FY(t,(function(t,n){e.push(s["d"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(BZ),GY={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(bY(this.ecModel))}};function HY(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function WY(t,e){t.setIconStatus("back",wY(e)>1?"emphasis":"normal")}function UY(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new NY(HY(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}vh("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=HY(i),a=Tr(t,o);return FY(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),FY(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:zY+e+o};a[n]=o,r.push(a)}}));var ZY=VY;function YY(t){t.registerComponentModel(GZ),t.registerComponentView(YZ),FZ("saveAsImage",qZ),FZ("magicType",tY),FZ("dataView",gY),FZ("dataZoom",ZY),FZ("restore",AY),jx(RZ)}var XY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Xu),qY=XY;function KY(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function QY(t){if(a["a"].domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var JY=QY(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$Y=QY(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function tX(t,e){if(!t)return e;e=_u(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function eX(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var nX=tX($Y,"transition"),iX=tX(JY,"transform"),rX="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(a["a"].transform3dSupported?"will-change:transform;":"");function oX(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function aX(t,e,n){if(!Object(s["C"])(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=Tu(e);var o,a=oX(n),l=Math.max(1.5*Math.round(r),6),c="",u=iX+":";Object(s["r"])(["left","right"],a)>-1?(c+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(c+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var h=o*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(h))+d*Math.abs(Math.sin(h)),f=Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-d)/2))/100;c+=";"+a+":-"+f+"px";var g=e+" solid "+r+"px;",m=["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",c+";"+u+";","border-bottom:"+g,"border-right:"+g,"background-color:"+i+";"];return'<div style="'+m.join("")+'"></div>'}function sX(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=a["a"].transformSupported?","+iX+i:",left"+i+",top"+i),nX+":"+r}function lX(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!a["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=a["a"].transform3dSupported,s="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+iX+":"+s+";":[["top",0],["left",0],[JY,s]]}function cX(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+l+"px "+o+"px "+r),Object(s["k"])(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}function uX(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),l=t.get("shadowColor"),c=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=af(t,"html"),p=c+"px "+u+"px "+a+"px "+l;return i.push("box-shadow:"+p),e&&r&&i.push(sX(r,n)),o&&i.push("background-color:"+o),Object(s["k"])(["width","color","radius"],(function(e){var n="border-"+e,r=_u(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(cX(h)),null!=d&&i.push("padding:"+Cu(d).join("px ")+"px"),i.join(";")+";"}function hX(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&B(t,a,document.body,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dX=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,a["a"].wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;hX(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!s._enterable){var e=r.handler,n=r.painter.getViewportRoot();Q(n,t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=eX(e,"position"),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=rX+uX(t,!this._firstShow,this._longHide)+lX(r[0],r[1],!0)+"border-color:"+Tu(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if(Object(s["C"])(r)&&"item"===n.get("trigger")&&!KY(n)&&(a=aX(n,i,r)),Object(s["C"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(s["t"])(t)||(t=[t]);for(var l=0;l<t.length;l++)Object(s["v"])(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(a&&o.childNodes.length){var c=document.createElement("div");c.innerHTML=a,o.appendChild(c)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(hX(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=lX(n[0],n[1]);Object(s["k"])(r,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",a["a"].transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(s["c"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),pX=dX,fX=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),vX(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;s["A"](t)&&Th(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new _s({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:af(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),s["k"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),s["k"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var l=this;this.el.on("mouseover",(function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0})),this.el.on("mouseout",(function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=mX(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;vX(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=gX(r.borderWidth||0),a=mX(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s["c"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function gX(t){return Math.max(0,t)}function mX(t){var e=gX(t.shadowBlur||0),n=gX(t.shadowOffsetX||0),i=gX(t.shadowOffsetY||0);return{left:gX(e-n),right:gX(e+n),top:gX(e-i),bottom:gX(e+i)}}function vX(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var yX=fX,bX=new rs({shape:{x:-1,y:-1,width:2,height:2}}),xX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){if(!a["a"].node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=Br(n.get("renderMode"));this._tooltipContent="richText"===i?new yX(e):new pX(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!a["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Km(this,"_updatePosition",50,"fixRate"):Qm(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");XH("itemTooltip",this._api,Object(s["c"])((function(t,n,i){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,i):"leave"===t&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!a["a"].node&&n.getDom()){var r=_X(i,n);this._ticket="";var o=i.dataByCoordSys,s=MX(i,e,n);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var c=bX;c.x=i.x,c.y=i.y,c.update(),Cs(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=iW(i,e),h=u.point[0],d=u.point[1];null!=h&&null!=d&&this._tryShow({offsetX:h,offsetY:d,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(_X(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s){var l=s.getData(),c=wX([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var r=t.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,t);else if(n){var o,a;this._lastDataByCoordSys=null,Wv(n,(function(t){return null!=Cs(t).dataIndex?(o=t,!0):null!=Cs(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(s["c"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=wX([e.tooltipOption],i),a=this._renderMode,l=[],c=Up("section",{blocks:[],noHeader:!0}),u=[],h=new sf;Object(s["k"])(t,(function(t){Object(s["k"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=jH(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),d=Up("section",{header:o,noHeader:!Object(s["T"])(o),sortBlocks:!0,blocks:[]});c.blocks.push(d),Object(s["k"])(t.seriesDataIndices,(function(c){var p=n.getSeriesByIndex(c.seriesIndex),f=c.dataIndexInside,g=p.getDataParams(f);if(!(g.dataIndex<0)){g.axisDim=t.axisDim,g.axisIndex=t.axisIndex,g.axisType=t.axisType,g.axisId=t.axisId,g.axisValue=KM(e.axis,{value:r}),g.axisValueLabel=o,g.marker=h.makeTooltipMarker("item",Tu(g.color),a);var m=ep(p.formatTooltip(f,!0,null)),v=m.frag;if(v){var y=wX([p],i).get("valueFormatter");d.blocks.push(y?Object(s["m"])({valueFormatter:y},v):v)}m.text&&u.push(m.text),l.push(g)}}))}}))})),c.blocks.reverse(),u.reverse();var d=e.position,p=o.get("order"),f=Qp(c,h,a,p,n.get("useUTC"),o.get("textStyle"));f&&u.unshift(f);var g="richText"===a?"\n\n":"<br/>",m=u.join(g);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,l)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,l):this._showTooltipContent(o,m,l,Math.random()+"",r[0],r[1],d,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Cs(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),l=r.dataModel||a,c=r.dataIndex,u=r.dataType,h=l.getData(u),d=this._renderMode,p=t.positionDefault,f=wX([h.getItemModel(c),l,a&&(a.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=f.get("trigger");if(null==g||"item"===g){var m=l.getDataParams(c,u),v=new sf;m.marker=v.makeTooltipMarker("item",Tu(m.color),d);var y=ep(l.formatTooltip(c,!1,u)),b=f.get("order"),x=f.get("valueFormatter"),w=y.frag,_=w?Qp(x?Object(s["m"])({valueFormatter:x},w):w,v,d,b,i.get("useUTC"),f.get("textStyle")):y.text,C="item_"+l.name+"_"+c;this._showOrMove(f,(function(){this._showTooltipContent(f,_,m,C,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Cs(e),r=i.tooltipConfig,o=r.option||{};if(Object(s["C"])(o)){var a=o;o={content:a,formatter:a}}var l=[o],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&l.push(c),l.push({formatter:o.content});var u=t.positionDefault,h=wX(l,this._tooltipModel,u?{position:u}:null),d=h.get("content"),p=Math.random()+"",f=new sf;this._showOrMove(h,(function(){var n=Object(s["d"])(h.get("formatterParams")||{});this._showTooltipContent(h,d,n,p,t.offsetX,t.offsetY,t.position,e,f)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,l,c){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var d=e,p=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")),f=p.color;if(h)if(Object(s["C"])(h)){var g=t.ecModel.get("useUTC"),m=Object(s["t"])(n)?n[0]:n,v=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,v&&(d=iu(m.axisValue,d,g)),d=Mu(d,n,!0)}else if(Object(s["w"])(h)){var y=Object(s["c"])((function(e,i){e===this._ticket&&(u.setContent(i,c,t,f,a),this._updatePosition(t,a,r,o,u,n,l))}),this);this._ticket=i,d=h(n,i,y)}else d=h;u.setContent(d,c,t,f,a),u.show(t,f),this._updatePosition(t,a,r,o,u,n,l)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||Object(s["t"])(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(s["t"])(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var l=this._api.getWidth(),c=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),d=t.get("verticalAlign"),p=a&&a.getBoundingRect().clone();if(a&&p.applyTransform(a.transform),Object(s["w"])(e)&&(e=e([n,i],o,r.el,p,{viewSize:[l,c],contentSize:u.slice()})),Object(s["t"])(e))n=Li(e[0],l),i=Li(e[1],c);else if(Object(s["A"])(e)){var f=e;f.width=u[0],f.height=u[1];var g=Nu(f,{width:l,height:c});n=g.x,i=g.y,h=null,d=null}else if(Object(s["C"])(e)&&a){var m=IX(e,p,u,t.get("borderWidth"));n=m[0],i=m[1]}else{m=CX(n,i,r,l,c,h?null:20,d?null:20);n=m[0],i=m[1]}if(h&&(n-=SX(h)?u[0]/2:"right"===h?u[0]:0),d&&(i-=SX(d)?u[1]/2:"bottom"===d?u[1]:0),KY(t)){m=AX(n,i,r,l,c);n=m[0],i=m[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&Object(s["k"])(n,(function(n,o){var a=n.dataByAxis||[],l=t[o]||{},c=l.dataByAxis||[];r=r&&a.length===c.length,r&&Object(s["k"])(a,(function(t,n){var o=c[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length,r&&Object(s["k"])(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&Object(s["k"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!a["a"].node&&e.getDom()&&(Qm(this,"_updatePosition"),this._tooltipContent.dispose(),tW("itemTooltip",e))},e.type="tooltip",e}(Af);function wX(t,e,n){var i,r=e.ecModel;n?(i=new Ic(n,r,r),i=new Ic(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Ic&&(a=a.get("tooltip",!0)),Object(s["C"])(a)&&(a={formatter:a}),a&&(i=new Ic(a,i,r)))}return i}function _X(t,e){return t.dispatchAction||Object(s["c"])(e.dispatchAction,e)}function CX(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],c=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+c+a>r?e-=c+a:e+=a),[t,e]}function AX(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function IX(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=e.width,u=e.height;switch(t){case"inside":s=e.x+c/2-r/2,l=e.y+u/2-o/2;break;case"top":s=e.x+c/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+c/2-r/2,l=e.y+u+a;break;case"left":s=e.x-r-a,l=e.y+u/2-o/2;break;case"right":s=e.x+c+a,l=e.y+u/2-o/2}return[s,l]}function SX(t){return"center"===t||"middle"===t}function MX(t,e,n){var i=Or(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Lr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Cs(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var kX=xX;function EX(t){jx(mW),t.registerComponentModel(qY),t.registerComponentView(kX),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},s["L"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},s["L"])}var TX=["rect","polygon","keep","clear"];function OX(t,e){var n=ar(t?t.brush:[]);if(n.length){var i=[];s["k"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;s["t"](r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),l=a.type||(a.type=[]);l.push.apply(l,i),PX(l),e&&!l.length&&l.push.apply(l,TX)}}function PX(t){var e={};s["k"](t,(function(t){e[t]=1})),t.length=0,s["k"](e,(function(e,n){t.push(n)}))}var jX=s["k"];function LX(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function DX(t,e,n){var i={};return jX(e,(function(e){var o=i[e]=r();jX(t[e],(function(t,i){if(nL.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new nL(r),"opacity"===i&&(r=s["d"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new nL(r))}}))})),i;function r(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function RX(t,e,n){var i;s["k"](n,(function(t){e.hasOwnProperty(t)&&LX(e[t])&&(i=!0)})),i&&s["k"](n,(function(n){e.hasOwnProperty(n)&&LX(e[n])?t[n]=s["d"](e[n]):delete t[n]}))}function BX(t,e,n,i,r,o){var a,l={};function c(t){return Nv(n,a,t)}function u(t,e){zv(n,a,t,e)}function h(t,s){a=null==o?t:s;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=i.call(r,t),p=e[d],f=l[d],g=0,m=f.length;g<m;g++){var v=f[g];p[v]&&p[v].applyVisual(t,c,u)}}s["k"](t,(function(t){var n=nL.prepareVisualTypes(e[t]);l[t]=n})),null==o?n.each(h):n.each([o],h)}function NX(t,e,n,i){var r={};return s["k"](t,(function(t){var n=nL.prepareVisualTypes(e[t]);r[t]=n})),{progress:function(t,o){var a,s;function l(t){return Nv(o,s,t)}function c(t,e){zv(o,s,t,e)}null!=i&&(a=o.getDimensionIndex(i));var u=o.getStore();while(null!=(s=t.next())){var h=o.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=i?u.get(a,s):s,p=n(d),f=e[p],g=r[p],m=0,v=g.length;m<v;m++){var y=g[m];f[y]&&f[y].applyVisual(d,l,c)}}}}}function FX(t){var e=t.brushType,n={point:function(i){return zX[e].point(i,n,t)},rect:function(i){return zX[e].rect(i,n,t)}};return n}var zX={lineX:VX(0),lineY:VX(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&NT(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(NT(i,r,o)||NT(i,r+a,o)||NT(i,r,o+s)||NT(i,r+a,o+s)||Mt.create(t).contain(l[0],l[1])||Tm(r,o,r+a,o,i)||Tm(r,o,r,o+s,i)||Tm(r+a,o,r+a,o+s,i)||Tm(r,o+s,r+a,o+s,i))||void 0}}};function VX(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range,o=e[t];return GX(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),GX(s[0],a)||GX(s[1],a)||GX(a[0],s)||GX(a[1],s)}}}}function GX(t,e){return e[0]<=t&&t<=e[1]}var HX=["inBrush","outOfBrush"],WX="__ecBrushSelect",UX="__ecInBrushSelectEvent";function ZX(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new NY(e.option,t);n.setInputRanges(e.areas,t)}))}function YX(t,e,n){var i,r,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),ZX(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:s["d"](e.areas),selected:[]};o.push(a);var l=e.option,c=l.brushLink,u=[],h=[],d=[],p=!1;n||(i=l.throttleType,r=l.throttleDelay);var f=s["H"](e.areas,(function(t){var e=JX[t.brushType],n=s["i"]({boundingRect:e?e(t):void 0},t);return n.selectors=FX(n),n})),g=DX(e.option,HX,(function(t){t.mappingMethod="fixed"}));function m(t){return"all"===c||!!u[t]}function v(t){return!!t.length}function y(t,e){var n=t.coordinateSystem;p=p||n.hasAxisBrushed(),m(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(h[e]=1)}))}function b(n,i,r){if(n.brushSelector&&!QX(e,i)&&(s["k"](f,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),p=p||v(r)})),m(i)&&v(r))){var o=n.getData();o.each((function(t){KX(n,r,o,t)&&(h[t]=1)}))}}s["t"](c)&&s["k"](c,(function(t){u[t]=1})),t.eachSeries((function(t,e){var n=d[e]=[];"parallel"===t.subType?y(t,e):b(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=d[e],r=t.getData(),o=m(e)?function(t){return h[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return KX(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(m(e)?p:v(i))&&BX(HX,g,r,o)}))})),XX(e,i,r,o,n)}function XX(t,e,n,i,r){if(r){var o=t.getZr();if(!o[UX]){o[WX]||(o[WX]=qX);var a=Km(o,WX,n,e);a(t,i)}}}function qX(t,e){if(!t.isDisposed()){var n=t.getZr();n[UX]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[UX]=!1}}function KX(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}function QX(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(s["t"](n)?s["r"](n,e)<0:e!==n)}var JX={rect:function(t){return $X(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&$X(e)}};function $X(t){return new Mt(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var tq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new uN(e.getZr())).on("brush",s["c"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){ZX(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:s["d"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:s["d"](n),$from:e})},e.type="brush",e}(Af),eq=tq,nq="#ddd",iq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return o(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&RX(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:nq},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=s["H"](t,(function(t){return rq(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=rq(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Xu);function rq(t,e){return s["I"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Ic(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var oq=iq,aq=["rect","polygon","lineX","lineY","keep","clear"],sq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,s["k"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return s["k"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){var e={show:!0,type:aq.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(BZ),lq=sq;function cq(t){t.registerComponentView(eq),t.registerComponentModel(oq),t.registerPreprocessor(OX),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,YX),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},s["L"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},s["L"]),FZ("brush",lq)}var uq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Xu),hq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),l=s["P"](t.get("textBaseline"),t.get("textVerticalAlign")),c=new _s({style:ec(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=c.getBoundingRect(),h=t.get("subtext"),d=new _s({style:ec(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),f=t.get("sublink"),g=t.get("triggerEvent",!0);c.silent=!p&&!g,d.silent=!f&&!g,p&&c.on("click",(function(){Ou(p,"_"+t.get("target"))})),f&&d.on("click",(function(){Ou(f,"_"+t.get("subtarget"))})),Cs(c).eventData=Cs(d).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),h&&i.add(d);var m=i.getBoundingRect(),v=t.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=Nu(v,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),l||(l=t.get("top")||t.get("bottom"),"center"===l&&(l="middle"),"bottom"===l?y.y+=y.height:"middle"===l&&(y.y+=y.height/2),l=l||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var b={align:a,verticalAlign:l};c.setStyle(b),d.setStyle(b),m=i.getBoundingRect();var x=y.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var _=new rs({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(_)}},e.type="title",e}(Af);function dq(t){t.registerComponentModel(uq),t.registerComponentView(hq)}var pq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],Object(s["k"])(n,(function(e,n){var i,o=xr(cr(e),"");Object(s["A"])(e)?(i=Object(s["d"])(e),i.value=n):i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new zC([{name:"value",type:o}],this);a.initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Xu),fq=pq,gq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="timeline.slider",e.defaultOption=Tc(fq.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(fq);Object(s["K"])(gq,tp.prototype);var mq=gq,vq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="timeline",e}(Af),yq=vq,bq=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return o(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(kk),xq=bq,wq=Math.PI,_q=kr(),Cq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return Up("nameValue",{noName:!0,value:e})},Object(s["k"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i=t.get(["label","position"]),r=t.get("orient"),o=Iq(t,e);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":Object(s["C"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var a,l,c,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:wq/2},p="vertical"===r?o.height:o.width,f=t.getModel("controlStyle"),g=f.get("show",!0),m=g?f.get("itemSize"):0,v=g?f.get("itemGap"):0,y=m+v,b=t.get(["label","rotate"])||0;b=b*wq/180;var x=f.get("position",!0),w=g&&f.get("showPlayBtn",!0),_=g&&f.get("showPrevBtn",!0),C=g&&f.get("showNextBtn",!0),A=0,I=p;"left"===x||"bottom"===x?(w&&(a=[0,0],A+=y),_&&(l=[A,0],A+=y),C&&(c=[I-m,0],I-=y)):(w&&(a=[I-m,0],I-=y),_&&(l=[0,0],A+=y),C&&(c=[I-m,0],I-=y));var S=[A,I];return t.get("inverse")&&S.reverse(),{viewRect:o,mainLength:p,orient:r,rotation:d[r],labelRotation:b,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[r],playPosition:a,prevBtnPosition:l,nextBtnPosition:c,axisExtent:S,controlSize:m,controlGap:v}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=st(),a=r.x,l=r.y+r.height;ht(o,o,[-a,-l]),dt(o,o,-wq/2),ht(o,o,[a,l]),r=r.clone(),r.applyTransform(o)}var c=v(r),u=v(n.getBoundingRect()),h=v(i.getBoundingRect()),d=[n.x,n.y],p=[i.x,i.y];p[0]=d[0]=c[0][0];var f=t.labelPosOpt;if(null==f||Object(s["C"])(f)){var g="+"===f?0:1;y(d,u,c,1,g),y(p,h,c,1,1-g)}else{g=f>=0?0:1;y(d,u,c,1,g),p[1]=d[1]+f}function m(t){t.originX=c[0][0]-t.x,t.originY=c[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function y(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(d),i.setPosition(p),n.rotation=i.rotation=t.rotation,m(n),m(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=Aq(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new xq("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new _i;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new jg({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(s["m"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new jg({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(s["i"])({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(s["k"])(a,(function(t){var a=n.dataToCoord(t.value),l=o.getItemModel(t.value),c=l.getModel("itemStyle"),u=l.getModel(["emphasis","itemStyle"]),h=l.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(s["c"])(r._changeTimeline,r,t.value)},p=Mq(l,c,e,d);p.ensureState("emphasis").style=u.getItemStyle(),p.ensureState("progress").style=h.getItemStyle(),Il(p);var f=Cs(p);l.get("tooltip")?(f.dataIndex=t.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(p)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),l=n.getViewLabels();this._tickLabels=[],Object(s["k"])(l,(function(i){var o=i.tickValue,l=a.getItemModel(o),c=l.getModel("label"),u=l.getModel(["emphasis","label"]),h=l.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),p=new _s({x:d,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(s["c"])(r._changeTimeline,r,o),silent:!1,style:ec(c,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});p.ensureState("emphasis").style=ec(u),p.ensureState("progress").style=ec(h),e.add(p),Il(p),_q(p).dataIndex=o,r._tickLabels.push(p)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),l=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),u=i.get("inverse",!0);function h(t,n,c,u){if(t){var h=oi(Object(s["P"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-h/2,h,h],p=Sq(i,n+"Icon",d,{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:c});p.ensureState("emphasis").style=l,e.add(p),Il(p)}}h(t.nextBtnPosition,"next",Object(s["c"])(this._changeTimeline,this,u?"-":"+")),h(t.prevBtnPosition,"prev",Object(s["c"])(this._changeTimeline,this,u?"+":"-")),h(t.playPosition,c?"stop":"play",Object(s["c"])(this._handlePlayClick,this,!c),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),l=this,c={onCreate:function(t){t.draggable=!0,t.drift=Object(s["c"])(l._handlePointerDrag,l),t.ondragend=Object(s["c"])(l._handlePointerDragend,l),kq(t,l._progressLine,o,n,i,!0)},onUpdate:function(t){kq(t,l._progressLine,o,n,i)}};this._currentPointer=Mq(a,a,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=Ri(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(e||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return _m(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",_q(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(yq);function Aq(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new dM({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new MM({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new gM}}function Iq(t,e){return Nu(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function Sq(t,e,n,i){var r=i.style,o=Em(t.get(["controlStyle",e]),i||{},new Mt(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function Mq(t,e,n,i,r,o){var a=e.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var l=t.get("symbol");r=ry(l,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var c=e.getItemStyle(["color"]);r.setStyle(c),i=Object(s["I"])({rectHover:!0,z2:100},i,!0);var u=oy(t.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var h=ay(t.get("symbolOffset"),u);h&&(i.x=(i.x||0)+h[0],i.y=(i.y||0)+h[1]);var d=t.get("symbolRotate");return i.rotation=(d||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function kq(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var Eq=Cq;function Tq(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(s["i"])({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function Oq(t){var e=t&&t.timeline;s["t"](e)||(e=e?[e]:[]),s["k"](e,(function(t){t&&Pq(t)}))}function Pq(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),jq(t),Lq(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});Lq(i,"position")||(i.position=t.controlPosition),"none"!==i.position||Lq(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}s["k"](t.data||[],(function(t){s["A"](t)&&!s["t"](t)&&(!Lq(t,"value")&&Lq(t,"name")&&(t.value=t.name),jq(t))}))}function jq(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};s["k"](i,(function(t,e){o[e]||Lq(r,e)||(r[e]=t)})),n.label&&!Lq(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function Lq(t,e){return t.hasOwnProperty(e)}function Dq(t){t.registerComponentModel(mq),t.registerComponentView(Eq),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),Tq(t),t.registerPreprocessor(Oq)}function Rq(t,e){if(!t)return!1;for(var n=Object(s["t"])(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function Bq(t){sr(t,"label",["show"])}var Nq=kr(),Fq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(a["a"].node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=Nq(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&Bq(n),s["k"](n.data,(function(t){t instanceof Array?(Bq(t[0]),Bq(t[1])):Bq(t)})),o=this.createMarkerModelFromSeries(n,this,e),s["m"](o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),Nq(t)[r]=o):Nq(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return Up("section",{header:this.name,blocks:[Up("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return Nq(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Xu);s["K"](Fq,tp.prototype);var zq=Fq,Vq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(zq),Gq=Vq;function Hq(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function Wq(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function Uq(t,e,n,i,r,o){var a=[],s=QC(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,c=$q(e,l,t),u=e.indicesOfNearest(l,c)[0];a[r]=e.get(n,u),a[o]=e.get(l,u);var h=e.get(i,u),d=Bi(e.get(i,u));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,h]}var Zq={min:Object(s["h"])(Uq,"min"),max:Object(s["h"])(Uq,"max"),average:Object(s["h"])(Uq,"average"),median:Object(s["h"])(Uq,"median")};function Yq(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!Wq(e)&&!Object(s["t"])(e.coord)&&Object(s["t"])(r)){var o=Xq(e,n,i,t);if(e=Object(s["d"])(e),e.type&&Zq[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(s["r"])(r,o.baseAxis.dim),l=Object(s["r"])(r,o.valueAxis.dim),c=Zq[e.type](n,o.baseDataDim,o.valueDataDim,a,l);e.coord=c[0],e.value=c[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(s["t"])(r))for(var u=e.coord,h=0;h<2;h++)Zq[u[h]]&&(u[h]=$q(n,n.mapDimension(r[h]),u[h]));else e.coord=[];return e}}function Xq(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(qq(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function qq(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function Kq(t,e){return!(t&&t.containData&&e.coord&&!Hq(e))||t.containData(e.coord)}function Qq(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!Hq(e)&&!Hq(n))||t.containZone(e.coord,n.coord)}function Jq(t,e){return t?function(t,n,i,r){var o=r<2?t.coord&&t.coord[r]:t.value;return op(o,e[r])}:function(t,n,i,r){return op(t.value,e[r])}}function $q(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var tK=kr(),eK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.init=function(){this.markerGroupMap=Object(s["f"])()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){tK(t).keep=!1})),e.eachSeries((function(t){var r=zq.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!tK(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){tK(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(s["k"])(t,(function(t){var i=zq.getMarkerModelFromSeries(t,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(t){t&&(e?ul(t):hl(t))}))}}))},e.type="marker",e}(Af),nK=eK;function iK(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=Li(a.get("x"),n.getWidth()),l=Li(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var c=t.get(i.dimensions[0],r),u=t.get(i.dimensions[1],r);o=i.dataToPoint([c,u])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}var rK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=zq.getMarkerModelFromSeries(t,"markPoint");e&&(iK(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,new mA),u=oK(r,t,e);e.setData(u),iK(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),l=n.getShallow("symbolOffset"),c=n.getShallow("symbolKeepAspect");if(Object(s["w"])(i)||Object(s["w"])(r)||Object(s["w"])(o)||Object(s["w"])(l)){var h=e.getRawValue(t),d=e.getDataParams(t);Object(s["w"])(i)&&(i=i(h,d)),Object(s["w"])(r)&&(r=r(h,d)),Object(s["w"])(o)&&(o=o(h,d)),Object(s["w"])(l)&&(l=l(h,d))}var p=n.getModel("itemStyle").getItemStyle(),f=Fv(a,"color");p.fill||(p.fill=f),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:l,symbolKeepAspect:c,style:p})})),c.updateData(u),this.group.add(c.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Cs(t).dataModel=e}))})),this.markKeep(c),c.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(nK);function oK(t,e,n){var i;i=t?Object(s["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(s["m"])(Object(s["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new zC(i,n),o=Object(s["H"])(n.get("data"),Object(s["h"])(Yq,e));t&&(o=Object(s["n"])(o,Object(s["h"])(Kq,t)));var a=Jq(!!t,i);return r.initData(o,null,a),r}var aK=rK;function sK(t){t.registerComponentModel(Gq),t.registerComponentView(aK),t.registerPreprocessor((function(t){Rq(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var lK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(zq),cK=lK,uK=kr(),hK=function(t,e,n,i){var r,o=t.getData();if(Object(s["t"])(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var l=void 0,c=void 0;if(null!=i.yAxis||null!=i.xAxis)l=e.getAxis(null!=i.yAxis?"y":"x"),c=Object(s["O"])(i.yAxis,i.xAxis);else{var u=Xq(i,o,e,t);l=u.valueAxis;var h=JC(o,u.valueDataDim);c=$q(o,h,a)}var d="x"===l.dim?0:1,p=1-d,f=Object(s["d"])(i),g={coord:[]};f.type=null,f.coord=[],f.coord[p]=-1/0,g.coord[p]=1/0;var m=n.get("precision");m>=0&&Object(s["z"])(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[d]=g.coord[d]=c,r=[f,g,{type:a,valueIndex:i.valueIndex,value:c}]}else r=[]}var v=[Yq(t,r[0]),Yq(t,r[1]),Object(s["m"])({},r[2])];return v[2].type=v[2].type||null,Object(s["I"])(v[2],v[0]),Object(s["I"])(v[2],v[1]),v};function dK(t){return!isNaN(t)&&!isFinite(t)}function pK(t,e,n,i){var r=1-t,o=i.dimensions[t];return dK(e[r])&&dK(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function fK(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(pK(1,n,i,t)||pK(0,n,i,t)))return!0}return Kq(t,e[0])&&Kq(t,e[1])}function gK(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Li(s.get("x"),r.getWidth()),c=Li(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var u=a.dimensions,h=t.get(u[0],e),d=t.get(u[1],e);o=a.dataToPoint([h,d])}if(RA(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");u=a.dimensions;dK(t.get(u[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):dK(t.get(u[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];t.setItemLayout(e,o)}var mK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=zq.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=uK(e).from,o=uK(e).to;r.each((function(e){gK(r,e,!0,t,n),gK(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,new OD);this.group.add(c.group);var u=vK(r,t,e),h=u.from,d=u.to,p=u.line;uK(e).from=h,uK(e).to=d,e.setData(p);var f=e.get("symbol"),g=e.get("symbolSize"),m=e.get("symbolRotate"),v=e.get("symbolOffset");function y(e,n,r){var o=e.getItemModel(n);gK(e,n,r,t,i);var l=o.getModel("itemStyle").getItemStyle();null==l.fill&&(l.fill=Fv(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(s["P"])(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:Object(s["P"])(o.get("symbolRotate",!0),m[r?0:1]),symbolSize:Object(s["P"])(o.get("symbolSize"),g[r?0:1]),symbol:Object(s["P"])(o.get("symbol",!0),f[r?0:1]),style:l})}Object(s["t"])(f)||(f=[f,f]),Object(s["t"])(g)||(g=[g,g]),Object(s["t"])(m)||(m=[m,m]),Object(s["t"])(v)||(v=[v,v]),u.from.each((function(t){y(h,t,!0),y(d,t,!1)})),p.each((function(t){var e=p.getItemModel(t).getModel("lineStyle").getLineStyle();p.setItemLayout(t,[h.getItemLayout(t),d.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),p.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:d.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(t,"symbolOffset"),toSymbolRotate:d.getItemVisual(t,"symbolRotate"),toSymbolSize:d.getItemVisual(t,"symbolSize"),toSymbol:d.getItemVisual(t,"symbol"),style:e})})),c.updateData(p),u.line.eachItemGraphicEl((function(t){Cs(t).dataModel=e,t.traverse((function(t){Cs(t).dataModel=e}))})),this.markKeep(c),c.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(nK);function vK(t,e,n){var i;i=t?Object(s["H"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(s["m"])(Object(s["m"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new zC(i,n),o=new zC(i,n),a=new zC([],n),l=Object(s["H"])(n.get("data"),Object(s["h"])(hK,e,t,n));t&&(l=Object(s["n"])(l,Object(s["h"])(fK,t)));var c=Jq(!!t,i);return r.initData(Object(s["H"])(l,(function(t){return t[0]})),null,c),o.initData(Object(s["H"])(l,(function(t){return t[1]})),null,c),a.initData(Object(s["H"])(l,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}var yK=mK;function bK(t){t.registerComponentModel(cK),t.registerComponentView(yK),t.registerPreprocessor((function(t){Rq(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var xK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(zq),wK=xK,_K=kr(),CK=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=Yq(t,r),l=Yq(t,o),c=a.coord,u=l.coord;c[0]=Object(s["O"])(c[0],-1/0),c[1]=Object(s["O"])(c[1],-1/0),u[0]=Object(s["O"])(u[0],1/0),u[1]=Object(s["O"])(u[1],1/0);var h=Object(s["J"])([{},a,l]);return h.coord=[a.coord,l.coord],h.x0=a.x,h.y0=a.y,h.x1=l.x,h.y1=l.y,h}};function AK(t){return!isNaN(t)&&!isFinite(t)}function IK(t,e,n,i){var r=1-t;return AK(e[r])&&AK(n[r])}function SK(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return RA(t,"cartesian2d")?!(!n||!i||!IK(1,n,i,t)&&!IK(0,n,i,t))||Qq(t,r,o):Kq(t,r)||Kq(t,o)}function MK(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Li(s.get(n[0]),r.getWidth()),c=Li(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=a.clampData(u),p=a.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:u[0]:f[0]=d[0]>p[0]?u[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:u[1]:f[1]=d[1]>p[1]?u[1]:h[1],o=i.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),m=t.get(n[1],e),v=[g,m];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(RA(a,"cartesian2d")){var y=a.getAxis("x"),b=a.getAxis("y");g=t.get(n[0],e),m=t.get(n[1],e);AK(g)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):AK(m)&&(o[1]=b.toGlobalCoord(b.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var kK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],EK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=zq.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=Object(s["H"])(kK,(function(r){return MK(i,e,r,t,n)}));i.setItemLayout(e,r);var o=i.getItemGraphicEl(e);o.setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),l=this.markerGroupMap,c=l.get(o)||l.set(o,{group:new _i});this.group.add(c.group),this.markKeep(c);var u=TK(r,t,e);e.setData(u),u.each((function(e){var n=Object(s["H"])(kK,(function(n){return MK(u,e,n,t,i)})),o=r.getAxis("x").scale,l=r.getAxis("y").scale,c=o.getExtent(),h=l.getExtent(),d=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],p=[l.parse(u.get("y0",e)),l.parse(u.get("y1",e))];Ri(d),Ri(p);var f=!(c[0]>d[1]||c[1]<d[0]||h[0]>p[1]||h[1]<p[0]),g=!f;u.setItemLayout(e,{points:n,allClipped:g});var m=u.getItemModel(e).getModel("itemStyle").getItemStyle(),v=Fv(a,"color");m.fill||(m.fill=v,Object(s["C"])(m.fill)&&(m.fill=Be["e"](m.fill,.4))),m.stroke||(m.stroke=v),u.setItemVisual(e,"style",m)})),u.diff(_K(c).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new Sg({shape:{points:e.points}});u.setItemGraphicEl(t,n),c.group.add(n)}})).update((function(t,n){var i=_K(c).data.getItemGraphicEl(n),r=u.getItemLayout(t);r.allClipped?i&&c.group.remove(i):(i?Gl(i,{shape:{points:r.points}},e,t):i=new Sg({shape:{points:r.points}}),u.setItemGraphicEl(t,i),c.group.add(i))})).remove((function(t){var e=_K(c).data.getItemGraphicEl(t);c.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var i=u.getItemModel(n),r=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),$l(t,tc(i),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Object(s["C"])(r.fill)?Be["e"](r.fill,1):"#000"}),Ol(t,i),Ml(t,null,null,i.get(["emphasis","disabled"])),Cs(t).dataModel=e})),_K(c).data=u,c.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(nK);function TK(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=Object(s["H"])(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return Object(s["m"])(Object(s["m"])({},i),{name:t,ordinalMeta:null})}));r=Object(s["H"])(o,(function(t,e){return{name:t,type:a[e%2].type}})),i=new zC(r,n)}else r=[{name:"value",type:"float"}],i=new zC(r,n);var l=Object(s["H"])(n.get("data"),Object(s["h"])(CK,e,t,n));t&&(l=Object(s["n"])(l,Object(s["h"])(SK,t)));var c=t?function(t,e,n,i){var o=t.coord[Math.floor(i/2)][i%2];return op(o,r[i])}:function(t,e,n,i){return op(t.value,r[i])};return i.initData(l,null,c),i.hasItemOption=!0,i}var OK=EK;function PK(t){t.registerComponentModel(wK),t.registerComponentView(OK),t.registerPreprocessor((function(t){Rq(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var jK=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},LK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),s["t"](e)&&s["k"](e,(function(t,i){s["C"](t)&&(t={type:t}),e[i]=s["I"](t,jK(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(s)),s.length?e=e.concat(s):r=!0}else r=!0;r&&wr(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=s["f"](),o=s["H"](i,(function(t){return(s["C"](t)||s["z"](t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new Ic(t,this,this.ecModel))}),this);this._data=s["n"](o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;s["k"](i,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;s["k"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;s["k"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&s["r"](this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Xu),DK=LK,RK=s["h"],BK=s["k"],NK=_i,FK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return o(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new NK),this.group.add(this._selectorGroup=new NK),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),l=t.get("selectorPosition",!0);!a||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,l);var c=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),d=Nu(c,u,h),p=this.layoutInner(t,r,d,i,a,l),f=Nu(s["i"]({width:p.width,height:p.height},c),u,h);this.group.x=f.x-p.x,this.group.y=f.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=WZ(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var l=this.getContentGroup(),c=s["f"](),u=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),BK(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new NK;return d.newline=!0,void l.add(d)}var p=n.getSeriesByName(a)[0];if(!c.get(a)){if(p){var f=p.getData(),g=f.getVisual("legendLineStyle")||{},m=f.getVisual("legendIcon"),v=f.getVisual("style"),y=this._createItem(p,a,o,r,e,t,g,v,m,u,i);y.on("click",RK(GK,a,null,i,h)).on("mouseover",RK(WK,p.name,null,i,h)).on("mouseout",RK(UK,p.name,null,i,h)),c.set(a,!0)}else n.eachRawSeries((function(n){if(!c.get(a)&&n.legendVisualProvider){var l=n.legendVisualProvider;if(!l.containName(a))return;var d=l.indexOfName(a),p=l.getItemVisual(d,"style"),f=l.getItemVisual(d,"legendIcon"),g=Object(Be["g"])(p.fill);g&&0===g[3]&&(g[3]=.2,p=s["m"](s["m"]({},p),{fill:Object(Be["h"])(g,"rgba")}));var m=this._createItem(n,a,o,r,e,t,{},p,f,u,i);m.on("click",RK(GK,null,a,i,h)).on("mouseover",RK(WK,null,a,i,h)).on("mouseout",RK(UK,null,a,i,h)),c.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();BK(t,(function(t){var i=t.type,r=new _s({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);$l(r,{normal:a,emphasis:s},{defaultText:t.title}),Il(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,l,c,u,h){var d=t.visualDrawType,p=r.get("itemWidth"),f=r.get("itemHeight"),g=r.isSelected(e),m=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),y=i.get("icon");c=y||c||"roundRect";var b=zK(c,i,a,l,d,g,h),x=new NK,w=i.getModel("textStyle");if(!s["w"](t.getLegendIcon)||y&&"inherit"!==y){var _="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===m?t.getData().getVisual("symbolRotate"):m:0;x.add(VK({itemWidth:p,itemHeight:f,icon:c,iconRotate:_,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}))}else x.add(t.getLegendIcon({itemWidth:p,itemHeight:f,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:v}));var C="left"===o?p+5:-5,A=o,I=r.get("formatter"),S=e;s["C"](I)&&I?S=I.replace("{name}",null!=e?e:""):s["w"](I)&&(S=I(e));var M=g?w.getTextColor():i.get("inactiveColor");x.add(new _s({style:ec(w,{text:S,x:C,y:f/2,fill:M,align:A,verticalAlign:"middle"},{inheritColor:M})}));var k=new rs({shape:x.getBoundingRect(),invisible:!0}),E=i.getModel("tooltip");return E.get("show")&&Lm({el:k,componentModel:r,itemName:e,itemTooltipOption:E.option}),x.add(k),x.eachChild((function(t){t.silent=!0})),k.silent=!u,this.getContentGroup().add(x),Il(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Ru(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Ru("horizontal",s,t.get("selectorItemGap",!0));var u=s.getBoundingRect(),h=[-u.x,-u.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?h[p]+=l[f]+d:c[p]+=u[f]+d,h[1-p]+=l[g]/2-u[g]/2,s.x=h[0],s.y=h[1],a.x=c[0],a.y=c[1];var v={x:0,y:0};return v[f]=l[f]+d+u[f],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+h[1-p]),v}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Af);function zK(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),BK(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),c=l.getItemStyle(),u=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?Yy(h,a):i.decal,"inherit"===c.fill&&(c.fill=i[r]),"inherit"===c.stroke&&(c.stroke=i[u]),"inherit"===c.opacity&&(c.opacity=("fill"===r?i:n).opacity),s(c,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=e.get("inactiveColor"),c.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}function VK(t){var e=t.icon||"roundRect",n=ry(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function GK(t,e,n,i){UK(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),WK(t,e,n,i)}function HK(t){var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(e=n[i].states.emphasis))i++;return e&&e.hoverLayer}function WK(t,e,n,i){HK(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function UK(t,e,n,i){HK(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}var ZK=FK;function YK(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function XK(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var a=n.getData();Object(s["k"])(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function qK(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(s["h"])(XK,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(s["h"])(XK,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(s["h"])(XK,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(s["h"])(XK,"select")),t.registerAction("legendUnSelect","legendunselected",Object(s["h"])(XK,"unSelect"))}function KK(t){t.registerComponentModel(DK),t.registerComponentView(ZK),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,YK),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),qK(t)}var QK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=Hu(e);t.prototype.init.call(this,e,n,i),JK(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),JK(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Tc(DK.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(DK);function JK(t,e,n){var i=t.getOrient(),r=[1,1];r[i.index]=0,Gu(e,n,{type:"box",ignoreSize:!!r})}var $K=QK,tQ=_i,eQ=["width","height"],nQ=["x","y"],iQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return o(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new tQ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new tQ)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,l){var c=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,l);var u=this._controllerGroup,h=n.get("pageIconSize",!0),d=s["t"](h)?h:[h,h];f("pagePrev",0);var p=n.getModel("pageTextStyle");function f(t,e){var i=t+"DataIndex",o=Em(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:s["c"](c._pageGo,c,i,n,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=t,u.add(o)}u.add(new _s({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),l=t.getOrient().index,c=eQ[l],u=nQ[l],h=eQ[1-l],d=nQ[1-l];r&&Ru("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),f=a.getBoundingRect(),g=[-f.x,-f.y],m=s["d"](n);r&&(m[c]=n[c]-f[c]-p);var v=this._layoutContentAndController(t,i,m,l,c,h,d,u);if(r){if("end"===o)g[l]+=v[c]+p;else{var y=f[c]+p;g[l]-=y,v[u]-=y}v[c]+=f[c]+p,g[1-l]+=v[d]+v[h]/2-f[h]/2,v[h]=Math.max(v[h],f[h]),v[d]=Math.min(v[d],f[d]+g[1-l]),a.x=g[0],a.y=g[1],a.markRedraw()}return v},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,l){var c=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;Ru(t.get("orient"),c,t.get("itemGap"),i?n.width:null,i?null:n.height),Ru("horizontal",h,t.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),p=h.getBoundingRect(),f=this._showController=d[r]>n[r],g=[-d.x,-d.y];e||(g[i]=c[l]);var m=[0,0],v=[-p.x,-p.y],y=s["P"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(f){var b=t.get("pageButtonPosition",!0);"end"===b?v[i]+=n[r]-p[r]:m[i]+=p[r]+y}v[1-i]+=d[o]/2-p[o]/2,c.setPosition(g),u.setPosition(m),h.setPosition(v);var x={x:0,y:0};if(x[r]=f?n[r]:d[r],x[o]=Math.max(d[o],p[o]),x[a]=Math.min(0,p[a]+v[1-i]),u.__rectSize=n[r],f){var w={x:0,y:0};w[r]=Math.max(n[r]-p[r]-y,0),w[o]=x[o],u.setClipPath(new rs({shape:w})),u.__rectSize=w[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&Gl(c,{x:_.contentPosition[0],y:_.contentPosition[1]},f?t:null),this._updatePageInfoView(t,_),x},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;s["k"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=e[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,l=e.pageCount;i&&r&&i.setStyle("text",s["C"](r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==l?"":l+""):r({current:a,total:l}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=eQ[r],a=nQ[r],s=this._findTargetItemIndex(e),l=n.children(),c=l[s],u=l.length,h=u?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=y(c);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=u;++f)v=y(l[f]),(!v&&m.e>g.s+i||v&&!b(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(f=s-1,g=p,m=p,v=null;f>=-1;--f)v=y(l[f]),v&&b(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n},e.type="legend.scroll",e}(ZK),rQ=iQ;function oQ(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function aQ(t){jx(KK),t.registerComponentModel($K),t.registerComponentView(rQ),oQ(t)}function sQ(t){jx(KK),jx(aQ)}var lQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.inside",e.defaultOption=Tc(bZ.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(bZ),cQ=lQ,uQ=kr();function hQ(t,e,n){uQ(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}function dQ(t,e){for(var n=uQ(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||pQ(n,a))}}}function pQ(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function fQ(t,e){var n={model:e,containsPoint:Object(s["h"])(mQ,e),dispatchAction:Object(s["h"])(gQ,t),dataZoomInfoMap:null,controller:null},i=n.controller=new rT(t.getZr());return Object(s["k"])(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function gQ(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function mQ(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function vQ(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function yQ(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=uQ(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(s["f"])());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=gZ(t);Object(s["k"])(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,fQ(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(s["f"])());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=vQ(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Km(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else pQ(i,t)}))}))}var bQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return o(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),hQ(i,e,{pan:Object(s["c"])(xQ.pan,this),zoom:Object(s["c"])(xQ.zoom,this),scrollMove:Object(s["c"])(xQ.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){dQ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(CZ),xQ={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=_Q[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return qR(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:wQ((function(t,e,n,i,r,o){var a=_Q[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:wQ((function(t,e,n,i,r,o){var a=_Q[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function wQ(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,i,r);return qR(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var _Q={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},CQ=bQ;function AQ(t){DZ(t),t.registerComponentModel(cQ),t.registerComponentView(CQ),yQ(t)}var IQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Tc(bZ.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(bZ),SQ=IQ,MQ=rs,kQ=7,EQ=1,TQ=30,OQ=7,PQ="horizontal",jQ="vertical",LQ=5,DQ=["line","bar","candlestick","scatter"],RQ={easing:"cubicOut",duration:100,delay:0},BQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return o(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(s["c"])(this._onBrush,this),this._onBrushEnd=Object(s["c"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),Km(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Qm(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new _i;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),i=n?OQ:0,r=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===PQ?{right:o.width-r.x-r.width,top:o.height-TQ-kQ-i,width:r.width,height:TQ}:{right:kQ,top:r.y,width:TQ,height:r.height},l=Hu(t.option);Object(s["k"])(["right","top","width","height"],(function(t){"ph"===l[t]&&(l[t]=a[t])}));var c=Nu(l,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===jQ&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==PQ||r?n===PQ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==jQ||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new MQ({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new MQ({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(s["c"])(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var c=r.getDataExtent(a),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var h,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],m=p[1]/(r.count()-1),v=0,y=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(y>0&&e%y)v+=m;else{var n=null==t||isNaN(t)||""===t,i=n?0:ji(t,c,d,!0);n&&!h&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=m,h=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,x=0;x<3;x++){var w=_(1===x);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function _(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),n=new _i,i=new Sg({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Eg({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();Object(s["k"])(a,(function(t){if(!n&&!(!0!==e&&Object(s["r"])(DQ,t.get("type"))<0)){var a,l=i.getComponent(pZ(r),o).axis,c=NQ(r),u=t.coordinateSystem;null!=c&&u.getOtherAxis&&(a=u.getOtherAxis(l).inverse),c=t.getData().mapDimension(c),n={thisAxis:l,series:t,thisDim:r,otherDim:c,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,l=this.api,c=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new MQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new MQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:c},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:EQ,fill:"rgba(0,0,0,0)"}})),Object(s["k"])([0,1],(function(e){var o=a.get("handleIcon");!ey[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var l=ry(o,-1,0,2,2,null,!0);l.attr({cursor:FQ(this._orient),draggable:!0,drift:Object(s["c"])(this._onDragMove,this,e),ondragend:Object(s["c"])(this._onDragEnd,this),onmouseover:Object(s["c"])(this._showDataInfo,this,!0),onmouseout:Object(s["c"])(this._showDataInfo,this,!1),z2:5});var c=l.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Li(u,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,l.setStyle(a.getModel("handleStyle").getItemStyle()),l.style.strokeNoScale=!0,l.rectHover=!0,l.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Il(l);var h=a.get("handleColor");null!=h&&(l.style.fill=h),r.add(n[e]=l);var d=a.getModel("textStyle");t.add(i[e]=new _s({silent:!0,invisible:!0,style:ec(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=h;if(u){var p=Li(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new rs({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:p}}),g=.8*p,m=e.moveHandleIcon=ry(a.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=o[1]+p/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(p,10));d=e.moveZone=new rs({invisible:!0,shape:{y:o[1]-v,height:p+v}}),d.on("mouseover",(function(){l.enterEmphasis(f)})).on("mouseout",(function(){l.leaveEmphasis(f)})),r.add(f),r.add(m),r.add(d)}d.attr({draggable:!0,cursor:FQ(this._orient),drift:Object(s["c"])(this._onDragMove,this,"all"),ondragstart:Object(s["c"])(this._showDataInfo,this,!0),ondragend:Object(s["c"])(this._onDragEnd,this),onmouseover:Object(s["c"])(this._showDataInfo,this,!0),onmouseout:Object(s["c"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[ji(t[0],[0,100],e,!0),ji(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];qR(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?ji(o.minSpan,a,r,!0):null,null!=o.maxSpan?ji(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Ri([ji(i[0],r,a,!0),ji(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Ri(n.slice()),r=this._size;Object(s["k"])([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,l=[0,i[0],i[1],r[0]],c=0;c<a.length;c++){var u=a[c],h=u.getClipPath();h||(h=new rs,u.setClipPath(h)),h.setShape({x:l[c],y:0,width:l[c+1]-l[c],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,c=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=Ri(this._handleEnds.slice());function h(t){var e=wm(n.handles[t].parent,this.group),a=Cm(0===t?"right":"left",e),s=this._handleWidth/2+LQ,l=_m([u[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===PQ?"middle":a,align:r===PQ?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return Object(s["w"])(i)?i(t,o):Object(s["C"])(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,et(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=_m([e,n],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new vt(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Ri([ji(n.x,r,o,!0),ji(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(et(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new MQ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?RQ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=gZ(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(CZ);function NQ(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function FQ(t){return"vertical"===t?"ns-resize":"ew-resize"}var zQ=BQ;function VQ(t){t.registerComponentModel(SQ),t.registerComponentView(zQ),DZ(t)}function GQ(t){jx(AQ),jx(VQ)}var HQ={get:function(t,e,n){var i=s["d"]((WQ[t]||{})[e]);return n&&s["t"](i)?i[i.length-1]:i}},WQ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},UQ=HQ,ZQ=nL.mapVisual,YQ=nL.eachVisual,XQ=s["t"],qQ=s["k"],KQ=Ri,QQ=ji,JQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return o(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&RX(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=s["c"](t,this),this.controllerVisuals=DX(this.option.controller,e,t),this.targetVisuals=DX(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=ar(t),e},e.prototype.eachTargetSeries=function(t,e){s["k"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,l=r.formatter;n=n||["<",">"],s["t"](t)&&(t=t.slice(),i=!0);var c=e?t:i?[u(t[0]),u(t[1])]:u(t);return s["C"](l)?l.replace("{value}",i?c[0]:c).replace("{value2}",i?c[1]:c):s["w"](l)?i?l(t[0],t[1]):l(t):i?t[0]===a[0]?n[0]+" "+c[1]:t[1]===a[1]?n[1]+" "+c[0]:c[0]+" - "+c[1]:c;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=KQ([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});s["I"](i,n),s["I"](r,n);var o=this.isCategory();function a(n){XQ(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function l(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},qQ(i,(function(t,e){if(nL.isValidType(e)){var n=UQ.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function c(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";qQ(this.stateList,(function(r){var l=this.itemSize,c=t[r];c||(c=t[r]={color:o?i:[i]}),null==c.symbol&&(c.symbol=e&&s["d"](e)||(o?a:[a])),null==c.symbolSize&&(c.symbolSize=n&&s["d"](n)||(o?l[0]:[l[0],l[0]])),c.symbol=ZQ(c.symbol,(function(t){return"none"===t?a:t}));var u=c.symbolSize;if(null!=u){var h=-1/0;YQ(u,(function(t){t>h&&(h=t)})),c.symbolSize=ZQ(u,(function(t){return QQ(t,[0,h],[0,l[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),l.call(this,i,"inRange","outOfRange"),c.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Xu),$Q=JQ,tJ=[20,140],eJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=tJ[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=tJ[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):s["t"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),s["k"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Ri((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=nJ(this,"outOfRange",this.getExtent()),n=nJ(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var c=1;o<s;o++,c=0)c&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(c=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(c&&(i.length&&r(i[i.length-1].value,"outOfRange"),c=0),r(e[a],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Tc($Q.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}($Q);function nJ(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;s<=i&&o<n[1];s++)a.push(o),o+=r;return a.push(n[1]),a}var iJ=eJ,rJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return o(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Cu(e.get("padding")||0),i=t.getBoundingRect();t.add(new rs({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var i=n.forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function l(t){return o[t]}function c(t,e){o[t]=e}var u=r.controllerVisuals[i||r.getValueState(t)],h=nL.prepareVisualTypes(u);return s["k"](h,(function(i){var r=u[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=u.__alphaForOpacity),nL.dependsOn(i,e)&&r&&r.applyVisual(t,l,c)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Fu(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(Af),oJ=rJ,aJ=[["left","right","width"],["top","bottom","height"]];function sJ(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=aJ[a],l=[0,null,10],c={},u=0;u<3;u++)c[aJ[1-a][u]]=l[u],c[s[u]]=2===u?n[0]:i[s[u]];var h=[["x","width",3],["y","height",0]][a],d=Nu(c,o,i.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function lJ(t,e){return s["k"](t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var cJ=ji,uJ=s["k"],hJ=Math.min,dJ=Math.max,pJ=12,fJ=6,gJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return o(e,t),e.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new _s({style:ec(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=sJ(e,this.api,i),l=n.mainGroup=this._createBarGroup(a),c=new _i;l.add(c),c.add(n.outOfRange=mJ()),c.add(n.inRange=mJ(null,o?bJ(this._orient):null,s["c"](this._dragHandle,this,"all",!1),s["c"](this._dragHandle,this,"all",!0))),c.setClipPath(new rs({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),h=dJ(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,l,0,i,h,r),this._createHandle(e,l,1,i,h,r)),this._createIndicator(e,l,i,h,r),t.add(l)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=s["c"](this._dragHandle,this,n,!1),l=s["c"](this._dragHandle,this,n,!0),c=oi(t.get("handleSize"),i[0]),u=ry(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),h=bJ(this._orient);u.attr({cursor:h,draggable:!0,drift:a,ondragend:l,onmousemove:function(t){et(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Pl(u,!0),e.add(u);var d=this.visualMapModel.textStyleModel,p=new _s({cursor:h,draggable:!0,drift:a,onmousemove:function(t){et(t.event)},ondragend:l,style:ec(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[c,0],g=this._shapes;g.handleThumbs[n]=u,g.handleLabelPoints[n]=f,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,i,r){var o=oi(t.get("indicatorSize"),n[0]),a=ry(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var l=t.getModel("indicatorStyle").getItemStyle();if(a instanceof qa){var c=a.style;a.useStyle(s["m"]({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else a.useStyle(l);e.add(a);var u=this.visualMapModel.textStyleModel,h=new _s({silent:!0,invisible:!0,style:ec(u,{x:0,y:0,text:""})});this.group.add(h);var d=[("horizontal"===r?i/2:fJ)+n[0]/2,0],p=this._shapes;p.indicator=a,p.indicatorLabel=h,p.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():yJ(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[cJ(e[0],n,i,!0),cJ(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];qR(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[cJ(i[0],r,o,!0),cJ(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new Yg(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,i=[],r=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<n;o++){var a=t[0]+r*o;if(a>t[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new _i("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();uJ([0,1],(function(l){var c=r[l];c.setStyle("fill",e.handlesColor[l]),c.y=t[l];var u=cJ(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/a[0],c.x=a[0]-h/2;var d=_m(n.handleLabelPoints[l],wm(c,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",u),d=this.getControllerVisual(t,"symbolSize"),p=cJ(t,o,s,!0),f=a[0]-d/2,g={x:c.x,y:c.y};c.y=p,c.x=f;var m=_m(l.indicatorLabelPoint,wm(c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),b=this._orient,x="horizontal"===b;v.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:x?y:"middle",align:x?"center":y});var w={x:f,y:p,style:{fill:h}},_={style:{x:m[0],y:m[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,C),v.animateTo(_,C)}else c.attr(w),v.attr(_);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var I=0;I<A.length;I++)this._api.enterBlur(A[I])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=hJ(dJ(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=hJ(dJ(r[0],t),r[1]);var a=vJ(n,o,r),s=[t-a,t+a],l=cJ(t,r,o,!0),c=[cJ(s[0],r,o,!0),cJ(s[1],r,o,!0)];s[0]<r[0]&&(c[0]=-1/0),s[1]>r[1]&&(c[1]=1/0),e&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var u=this._hoverLinkDataIndices,h=[];(e||yJ(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=Sr(u,h);this._dispatchHighDown("downplay",lJ(d[0],n)),this._dispatchHighDown("highlight",lJ(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(Wv(t.target,(function(t){var n=Cs(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",lJ(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=wm(e,i?null:this.group);return s["t"](t)?_m(t,r,n):Cm(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(oJ);function mJ(t,e,n,i){return new Sg({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){et(t.event)},ondragend:i})}function vJ(t,e,n){var i=pJ/2,r=t.get("hoverLinkDataSize");return r&&(i=cJ(r,e,n,!0)/2),i}function yJ(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function bJ(t){return"vertical"===t?"ns-resize":"ew-resize"}var xJ=gJ,wJ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},_J=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},CJ=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i=t.pipelineContext;!e.isTargetSeries(t)||i&&i.large||n.push(NX(e.stateList,e.targetVisuals,s["c"](e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(s["c"](AJ,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function AJ(t,e,n,i){for(var r=e.targetVisuals[i],o=nL.prepareVisualTypes(r),a={color:Fv(t.getData(),"color")},s=0,l=o.length;s<l;s++){var c=o[s],u=r["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,h,d)}return a.color;function h(t){return a[t]}function d(t,e){a[t]=e}}var IJ=s["k"];function SJ(t){var e=t&&t.visualMap;s["t"](e)||(e=e?[e]:[]),IJ(e,(function(t){if(t){MJ(t,"splitList")&&!MJ(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&s["t"](e)&&IJ(e,(function(t){s["A"](t)&&(MJ(t,"start")&&!MJ(t,"min")&&(t.min=t.start),MJ(t,"end")&&!MJ(t,"max")&&(t.max=t.end))}))}}))}function MJ(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var kJ=!1;function EJ(t){kJ||(kJ=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(wJ,_J),Object(s["k"])(CJ,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(SJ))}function TJ(t){t.registerComponentModel(iJ),t.registerComponentView(xJ),EJ(t)}var OJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return o(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],PJ[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=s["d"](r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=s["H"](this._pieceList,(function(t){return t=s["d"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=nL.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}s["k"](e.pieces,(function(t){s["k"](i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),s["k"](n,(function(t,n){var i=!1;s["k"](this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&s["k"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=UQ.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,s["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;s["k"](i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=s["d"](t)},e.prototype.getValueState=function(t){var e=nL.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){var o=nL.findPieceIndex(e,n);o===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return s["k"](r,(function(t){var e=t.interval;e&&(e[0]>a&&l([a,e[0]],"outOfRange"),l(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function l(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Tc($Q.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}($Q),PJ={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,l=i[0];a<r;l+=o,a++){var c=a===r-1?i[1]:l+o;t.push({interval:[l,c],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),Qi(t),s["k"](t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;s["k"](e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),jJ(e,t)},pieces:function(t){var e=this.option;s["k"](e.pieces,(function(e,n){s["A"](e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],l=[1,0,1],c=[-1/0,1/0],u=[],h=0;h<2;h++){for(var d=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&null==o[h];p++)o[h]=e[d[p]],a[h]=l[p],u[h]=2===p;null==o[h]&&(o[h]=c[h])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=nL.retrieveVisuals(e),t.push(i)}),this),jJ(e,t),Qi(t),s["k"](t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function jJ(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var LJ=OJ,DJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return o(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),l=e.itemSize,c=this._getViewData(),u=c.endsText,h=s["O"](e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],l,h,a),s["k"](c.viewPieceList,(function(i){var c=i.piece,u=new _i;u.onclick=s["c"](this._onItemClick,this,c),this._enableHoverLink(u,i.indexInModelPieceList);var d=e.getRepresentValue(c);if(this._createItemSymbol(u,d,[0,0,l[0],l[1]]),h){var p=this.visualMapModel.getValueState(d);u.add(new _s({style:{x:"right"===a?-n:l[0]+n,y:l[1]/2,text:c.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===p?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],l,h,a),Ru(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:lJ(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return sJ(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new _i,a=this.visualMapModel.textStyleModel;o.add(new _s({style:ec(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=s["H"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(ry(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=s["d"](n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,s["k"](r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(oJ),RJ=DJ;function BJ(t){t.registerComponentModel(LJ),t.registerComponentView(RJ),EJ(t)}function NJ(t){jx(TJ),jx(BJ)}var FJ={label:{enabled:!0},decal:{show:!1}},zJ=kr(),VJ={};function GJ(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=s["d"](FJ);s["I"](i.label,t.getLocaleModel().get("aria"),!1),s["I"](n.option,i,!1),r(),o()}function r(){var e=n.getModel("decal"),i=e.get("show");if(i){var r=s["f"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=r.get(t.type);e||(e={},r.set(t.type,e)),zJ(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(s["w"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=_h(e.ecModel,e.name,VJ,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},l=zJ(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var c=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",s=_h(e.ecModel,r,l,c),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(h,s))}))}}function u(t,e){var n=t?s["m"](s["m"]({},e),t):e;return n.dirty=!0,n}}))}}function o(){var i=t.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=s["i"](r.option,i),r.get("enabled")){var o=e.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,h=t.getSeriesCount(),d=r.get(["data","maxCount"])||10,p=r.get(["series","maxCount"])||10,f=Math.min(h,p);if(!(h<1)){var g=l();if(g){var m=r.get(["general","withTitle"]);u=a(m,{title:g})}else u=r.get(["general","withoutTitle"]);var v=[],y=h>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(y,{seriesCount:h}),t.eachSeries((function(t,e){if(e<f){var n=void 0,i=t.get("name"),o=i?"withName":"withoutName";n=h>1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:c(t.subType)});var s=t.getData();if(s.count()>d){var l=r.get(["data","partialData"]);n+=a(l,{displayCnt:d})}else n+=r.get(["data","allData"]);for(var u=r.get(["data","separator","middle"]),p=r.get(["data","separator","end"]),g=[],m=0;m<s.count();m++)if(m<d){var y=s.getName(m),b=s.getValues(m),x=r.get(["data",y?"withName":"withoutName"]);g.push(a(x,{name:y,value:b.join(u)}))}n+=g.join(u)+p,v.push(n)}}));var b=r.getModel(["series","multiple","separator"]),x=b.get("middle"),w=b.get("end");u+=v.join(x)+w,o.setAttribute("aria-label",u)}}}}function a(t,e){if(!s["C"](t))return t;var n=t;return s["k"](e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function l(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function c(e){return t.getLocaleModel().get(["series","typeNames"])[e]||"自定义图"}}function HJ(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},s["k"](["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function WJ(t){t.registerPreprocessor(HJ),t.registerVisual(t.PRIORITY.VISUAL.ARIA,GJ)}var UJ={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ZJ=function(){function t(t){var e=this._condVal=Object(s["C"])(t)?new RegExp(t):Object(s["B"])(t)?t:null;if(null==e){var n="";0,Th(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(s["C"])(e)?this._condVal.test(t):!!Object(s["z"])(e)&&this._condVal.test(t+"")},t}(),YJ=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),XJ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),qJ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),KJ=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),QJ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(t?i:n))return!1;return!0},t}();function JJ(t,e){if(!0===t||!1===t){var n=new YJ;return n.value=t,n}var i="";return n$(t)||Th(i),t.and?$J("and",t,e):t.or?$J("or",t,e):t.not?t$(t,e):e$(t,e)}function $J(t,e,n){var i=e[t],r="";Object(s["t"])(i)||Th(r),i.length||Th(r);var o="and"===t?new XJ:new qJ;return o.children=Object(s["H"])(i,(function(t){return JJ(t,n)})),o.children.length||Th(r),o}function t$(t,e){var n=t.not,i="";n$(n)||Th(i);var r=new KJ;return r.child=JJ(n,e),r.child||Th(i),r}function e$(t,e){for(var n="",i=e.prepareGetValue(t),r=[],o=Object(s["F"])(t),a=t.parser,l=a?sp(a):null,c=0;c<o.length;c++){var u=o[c];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var h=Object(s["q"])(UJ,u)?UJ[u]:u,d=t[u],p=l?l(d):d,f=dp(h,p)||"reg"===h&&new ZJ(p);f||Th(n),r.push(f)}}r.length||Th(n);var g=new QJ;return g.valueGetterParam=i,g.valueParser=l,g.getValue=e.getValue,g.subCondList=r,g}function n$(t){return Object(s["A"])(t)&&!Object(s["u"])(t)}var i$=function(){function t(t,e){this._cond=JJ(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function r$(t,e){return new i$(t,e)}var o$={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,i=r$(t.config,{valueGetterAttrMap:Object(s["f"])({dimension:!0}),prepareGetValue:function(t){var e="",i=t.dimension;Object(s["q"])(t,"dimension")||Th(e);var r=n.getDimensionInfo(i);return r||Th(e),{dimIdx:r.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),r=[],o=0,a=n.count();o<a;o++)e=n.getRawDataItem(o),i.evaluate()&&r.push(e);return{data:r}}};var a$={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=ar(n);r.length||Th(i);var o=[];Object(s["k"])(r,(function(t){var n=t.dimension,r=t.order,a=t.parser,s=t.incomparable;if(null==n&&Th(i),"asc"!==r&&"desc"!==r&&Th(i),s&&"min"!==s&&"max"!==s){var l="";0,Th(l)}if("asc"!==r&&"desc"!==r){var c="";0,Th(c)}var u=e.getDimensionInfo(n);u||Th(i);var h=a?sp(a):null;a&&!h&&Th(i),o.push({dimIdx:u.index,parser:h,comparator:new up(r,s)})}));var a=e.sourceFormat;a!==th&&a!==eh&&Th(i);for(var l=[],c=0,u=e.count();c<u;c++)l.push(e.getRawDataItem(c));return l.sort((function(t,n){for(var i=0;i<o.length;i++){var r=o[i],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:l}}};function s$(t){t.registerTransform(o$),t.registerTransform(a$)}var l$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return o(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new Bp(this),Np(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Np(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:oh},e}(Xu),c$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return o(e,t),e.type="dataset",e}(Af);function u$(t){t.registerComponentModel(l$),t.registerComponentView(c$)}var h$=ga.CMD;function d$(t,e){return Math.abs(t-e)<1e-5}function p$(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],c=0,u=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){d$(t,i)&&d$(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,c=n<t?-1:1,u=Math.cos(t),h=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=u*o+i,g=h*a+r,m=d*o+i,v=p*a+r,y=o*l*c,b=a*l*c;e.push(f-y*h,g+b*u,m+y*p,v-b*d,m,v)}for(var m=0;m<s;){var v=a[m++],y=1===m;switch(y&&(c=a[m],u=a[m+1],h=c,d=u,v!==h$.L&&v!==h$.C&&v!==h$.Q||(e=[h,d])),v){case h$.M:c=h=a[m++],u=d=a[m++],p(h,d);break;case h$.L:n=a[m++],i=a[m++],f(c,u,n,i),c=n,u=i;break;case h$.C:e.push(a[m++],a[m++],a[m++],a[m++],c=a[m++],u=a[m++]);break;case h$.Q:n=a[m++],i=a[m++],r=a[m++],o=a[m++],e.push(c+2/3*(n-c),u+2/3*(i-u),r+2/3*(n-r),o+2/3*(i-o),r,o),c=r,u=o;break;case h$.A:var b=a[m++],x=a[m++],w=a[m++],_=a[m++],C=a[m++],A=a[m++]+C;m+=1;var I=!a[m++];n=Math.cos(C)*w+b,i=Math.sin(C)*_+x,y?(h=n,d=i,p(h,d)):f(c,u,n,i),c=Math.cos(A)*w+b,u=Math.sin(A)*_+x;for(var S=(I?-1:1)*Math.PI/2,M=C;I?M>A:M<A;M+=S){var k=I?Math.max(M+S,A):Math.min(M+S,A);g(M,k,b,x,w,_)}break;case h$.R:h=c=a[m++],d=u=a[m++],n=h+a[m++],i=d+a[m++],p(n,d),f(n,d,n,i),f(n,i,h,i),f(h,i,h,d),f(h,d,n,d);break;case h$.Z:e&&f(c,u,h,d),c=h,u=d;break}}return e&&e.length>2&&l.push(e),l}function f$(t,e,n,i,r,o,a,s,l,c){if(d$(t,n)&&d$(e,i)&&d$(r,a)&&d$(o,s))l.push(a,s);else{var u=2/c,h=u*u,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,m=i-e,v=r-a,y=o-s,b=g*g+m*m,x=v*v+y*y;if(b<h&&x<h)l.push(a,s);else{var w=d*g+p*m,_=-d*v-p*y,C=b-w*w,A=x-_*_;if(C<h&&w>=0&&A<h&&_>=0)l.push(a,s);else{var I=[],S=[];Ce(t,n,r,a,.5,I),Ce(e,i,o,s,.5,S),f$(I[0],S[0],I[1],S[1],I[2],S[2],I[3],S[3],l,c),f$(I[4],S[4],I[5],S[5],I[6],S[6],I[7],S[7],l,c)}}}}function g$(t,e){var n=p$(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var c=2;c<o.length;){var u=o[c++],h=o[c++],d=o[c++],p=o[c++],f=o[c++],g=o[c++];f$(s,l,u,h,d,p,f,g,a,e),s=f,l=g}i.push(a)}return i}function m$(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],c=0;c<a;c++)l.push(s);var u=a*s,h=n-u;if(h>0)for(c=0;c<h;c++)l[c%a]+=1;return l}function v$(t,e,n){for(var i=t.r0,r=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*r,c=r-i,u=l>Math.abs(c),h=m$([l,c],u?0:1,e),d=(u?s:c)/h.length,p=0;p<h.length;p++)for(var f=(u?c:s)/h[p],g=0;g<h[p];g++){var m={};u?(m.startAngle=o+d*p,m.endAngle=o+d*(p+1),m.r0=i+f*g,m.r=i+f*(g+1)):(m.startAngle=o+f*g,m.endAngle=o+f*(g+1),m.r0=i+d*p,m.r=i+d*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function y$(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=m$([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],f=0;f<a[d];f++){var g={};g[c]=d*h,g[u]=f*p,g[s]=h,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}function b$(t,e,n,i){return t*i-n*e}function x$(t,e,n,i,r,o,a,s){var l=n-t,c=i-e,u=a-r,h=s-o,d=b$(u,h,l,c);if(Math.abs(d)<1e-6)return null;var p=t-r,f=e-o,g=b$(p,f,u,h)/d;return g<0||g>1?null:new vt(g*l+t,g*c+e)}function w$(t,e,n){var i=new vt;vt.sub(i,n,e),i.normalize();var r=new vt;vt.sub(r,t,e);var o=r.dot(i);return o}function _$(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function C$(t,e,n){for(var i=t.length,r=[],o=0;o<i;o++){var a=t[o],s=t[(o+1)%i],l=x$(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:w$(l,e,n),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort((function(t,e){return t.projPt-e.projPt}));var c=r[0],u=r[r.length-1];if(u.idx<c.idx){var h=c;c=u,u=h}var d=[c.pt.x,c.pt.y],p=[u.pt.x,u.pt.y],f=[d],g=[p];for(o=c.idx+1;o<=u.idx;o++)_$(f,t[o].slice());_$(f,p),_$(f,d);for(o=u.idx+1;o<=c.idx+i;o++)_$(g,t[o%i].slice());return _$(g,d),_$(g,p),[{points:f},{points:g}]}function A$(t){var e=t.points,n=[],i=[];Ho(e,n,i);var r=new Mt(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,c=new vt,u=new vt;return o>a?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),C$(e,c,u)}function I$(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),o=t(e);I$(t,o[0],r,i),I$(t,o[1],n-r,i)}return i}function S$(t,e){for(var n=[],i=0;i<e;i++)n.push(Xf(t));return n}function M$(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function k$(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function E$(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":y$(r,e,i),n=rs;break;case"sector":v$(r,e,i),n=yg;break;case"circle":v$({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=yg;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,l=Object(s["H"])(g$(t.getUpdatedPathProxy(),a),(function(t){return k$(t)})),c=l.length;if(0===c)I$(A$,{points:l[0]},e,i);else if(c===e)for(var u=0;u<c;u++)i.push({points:l[u]});else{var h=0,d=Object(s["H"])(l,(function(t){var e=[],n=[];Ho(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return h+=i,{poly:t,area:i}}));d.sort((function(t,e){return e.area-t.area}));var p=e;for(u=0;u<c;u++){var f=d[u];if(p<=0)break;var g=u===c-1?p:Math.ceil(f.area/h*e);g<0||(I$(A$,{points:f.poly},g,i),p-=g)}}n=Sg;break}if(!n)return S$(t,e);var m=[];for(u=0;u<i.length;u++){var v=new n;v.setShape(i[u]),M$(t,v),m.push(v)}return m}function T$(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],o=[],a=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,h=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],m=a[p++],v=a[p++],y=a[p++],b=a[p++],x=a[p++],w=a[p++];if(d<=0)h.push(m,v,y,b,x,w);else{for(var _=Math.min(d,u-1)+1,C=1;C<=_;C++){var A=C/_;Ce(f,m,y,x,A,r),Ce(g,v,b,w,A,o),f=r[3],g=o[3],h.push(r[1],o[1],r[2],o[2],f,g),m=r[5],v=o[5],y=r[6],b=o[6]}d-=_-1}}return a===t?[h,e]:[t,h]}function O$(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=r;return o}function P$(t,e){for(var n,i,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],c=e[s],u=void 0,h=void 0;l?c?(n=T$(l,c),u=n[0],h=n[1],i=u,r=h):(h=O$(r||l,l),u=l):(u=O$(i||c,c),h=c),o.push(u),a.push(h)}return[o,a]}function j$(t){for(var e=0,n=0,i=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],c=t[o],u=t[o+1],h=s*u-c*l;e+=h,n+=(s+c)*h,i+=(l+u)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function L$(t,e,n,i){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,c=0;c<r;c++){for(var u=6*c,h=0,d=0;d<s;d+=2){var p=0===d?u:(u+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],m=e[d]-i[0],v=e[d+1]-i[1],y=m-f,b=v-g;h+=y*y+b*b}h<o&&(o=h,a=c)}return a}function D$(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function R$(t,e,n,i){for(var r,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],c=j$(s),u=j$(l);null==r&&(r=c[2]<0!==u[2]<0);var h=[],d=[],p=0,f=1/0,g=[],m=s.length;r&&(s=D$(s));for(var v=6*L$(s,l,c,u),y=m-2,b=0;b<y;b+=2){var x=(v+b)%y+2;h[b+2]=s[x]-c[0],h[b+3]=s[x+1]-c[1]}if(h[0]=s[v]-c[0],h[1]=s[v+1]-c[1],n>0)for(var w=i/n,_=-i/2;_<=i/2;_+=w){var C=Math.sin(_),A=Math.cos(_),I=0;for(b=0;b<s.length;b+=2){var S=h[b],M=h[b+1],k=l[b]-u[0],E=l[b+1]-u[1],T=k*A-E*C,O=k*C+E*A;g[b]=T,g[b+1]=O;var P=T-S,j=O-M;I+=P*P+j*j}if(I<f){f=I,p=_;for(var L=0;L<g.length;L++)d[L]=g[L]}}else for(var D=0;D<m;D+=2)d[D]=l[D]-u[0],d[D+1]=l[D+1]-u[1];o.push({from:h,to:d,fromCp:c,toCp:u,rotation:-p})}return o}function B$(t){return t.__isCombineMorphing}var N$="__mOriginal_";function F$(t,e,n){var i=N$+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function z$(t,e){var n=N$+e;t[n]&&(t[e]=t[n],t[n]=null)}function V$(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=e[0]*o+e[2]*a+e[4],i[r++]=e[1]*o+e[3]*a+e[5]}}function G$(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=P$(p$(n),p$(i)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();function c(){this.transform=null}s&&V$(o,s),l&&V$(a,l),F$(e,"updateTransform",{replace:c}),e.transform=null;var u=R$(o,a,10,Math.PI),h=[];F$(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,c=a.rotation*n,d=a.fromCp,p=a.toCp,f=Math.sin(c),g=Math.cos(c);C(r,d,p,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],b=l[m],x=l[m+1],w=v*i+b*n,_=y*i+x*n;h[m]=w*g-_*f+r[0],h[m+1]=w*f+_*g+r[1]}var A=h[0],I=h[1];t.moveTo(A,I);for(m=2;m<s.length;){b=h[m++],x=h[m++];var S=h[m++],M=h[m++],k=h[m++],E=h[m++];A===b&&I===x&&S===k&&M===E?t.lineTo(k,E):t.bezierCurveTo(b,x,S,M,k,E),A=k,I=E}}}})}function H$(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;function o(){z$(e,"buildPath"),z$(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return G$(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(s["i"])({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){o(),i&&i()}},n)),e}function W$(t,e,n,i,r,o){var a=16;t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=o===i?0:Math.round(32767*(e-i)/(o-i));for(var s,l=0,c=(1<<a)/2;c>0;c/=2){var u=0,h=0;(t&c)>0&&(u=1),(e&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(t=c-1-t,e=c-1-e),s=t,t=e,e=s)}return l}function U$(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=Object(s["H"])(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),a=Object(s["H"])(o,(function(o,a){return{cp:o,z:W$(o[0],o[1],e,n,i,r),path:t[a]}}));return a.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function Z$(t){return E$(t.path,t.count)}function Y$(){return{fromIndividuals:[],toIndividuals:[],count:0}}function X$(t,e,n){var i=[];function r(t){for(var e=0;e<t.length;e++){var n=t[e];B$(n)?r(n.childrenRef()):n instanceof Va&&i.push(n)}}r(t);var o=i.length;if(!o)return Y$();var a=n.dividePath||Z$,l=a({path:e,count:o});if(l.length!==o)return console.error("Invalid morphing: unmatched splitted path"),Y$();i=U$(i),l=U$(l);for(var c=n.done,u=n.during,h=n.individualDelay,d=new qn,p=0;p<o;p++){var f=i[p],g=l[p];g.parent=e,g.copyTransform(d),h||G$(f,g)}function m(t){for(var e=0;e<l.length;e++)l[e].addSelfToZr(t)}function v(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,z$(e,"addSelfToZr"),z$(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return l},F$(e,"addSelfToZr",{after:function(t){m(t)}}),F$(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<l.length;e++)l[e].removeSelfFromZr(t)}});var y=l.length;if(h){var b=y,x=function(){b--,0===b&&(v(),c&&c())};for(p=0;p<y;p++){var w=h?Object(s["i"])({delay:(n.delay||0)+h(p,y,i[p],l[p]),done:x},n):n;H$(i[p],l[p],w)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(s["i"])({during:function(t){for(var n=0;n<y;n++){var i=l[n];i.__morphT=e.__morphT,i.dirtyShape()}u&&u(t)},done:function(){v();for(var e=0;e<t.length;e++)z$(t[e],"updateTransform");c&&c()}},n));return e.__zr&&m(e.__zr),{fromIndividuals:i,toIndividuals:l,count:y}}function q$(t,e,n){var i=e.length,r=[],o=n.dividePath||Z$;function a(t){for(var e=0;e<t.length;e++){var n=t[e];B$(n)?a(n.childrenRef()):n instanceof Va&&r.push(n)}}if(B$(t)){a(t.childrenRef());var l=r.length;if(l<i)for(var c=0,u=l;u<i;u++)r.push(Xf(r[c++%l]));r.length=i}else{r=o({path:t,count:i});var h=t.getComputedTransform();for(u=0;u<r.length;u++)r[u].setLocalTransform(h);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Y$()}r=U$(r),e=U$(e);var d=n.individualDelay;for(u=0;u<i;u++){var p=d?Object(s["i"])({delay:(n.delay||0)+d(u,i,r[u],e[u])},n):n;H$(r[u],e[u],p)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}function K$(t){return Object(s["t"])(t[0])}function Q$(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(e[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var c=Math.ceil(o/2);n[r].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var J$={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=Xf(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function $$(t,e,n,i,r,o){if(t.length&&e.length){var a=zl("update",i,r);if(a&&a.duration>0){var l,c,u=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);K$(t)&&(l=t,c=e),K$(e)&&(l=e,c=t);for(var d=l?l===t:t.length>e.length,p=l?Q$(c,l):Q$(d?e:t,[d?t:e]),f=0,g=0;g<p.length;g++)f+=p[g].many.length;var m=0;for(g=0;g<p.length;g++)v(p[g],d,m,f),m+=p[g].many.length}}function v(t,e,i,r,a){var l=t.many,c=t.one;if(1!==l.length||a)for(var d=Object(s["i"])({dividePath:J$[n],individualDelay:u&&function(t,e,n,o){return u(t+i,r)}},h),p=e?X$(l,c,d):q$(c,l,d),f=p.fromIndividuals,g=p.toIndividuals,m=f.length,y=0;y<m;y++){w=u?Object(s["i"])({delay:u(y,m)},h):h;o(f[y],g[y],e?l[y]:t.one,e?t.one:l[y],w)}else{var b=e?l[0]:c,x=e?c:l[0];if(B$(b))v({many:[b],one:x},!0,i,r,!0);else{var w=u?Object(s["i"])({delay:u(i,r)},h):h;H$(b,x,w),o(b,x,b,x,w)}}}}function t0(t){if(!t)return[];if(Object(s["t"])(t)){for(var e=[],n=0;n<t.length;n++)e.push(t0(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof Va&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var e0=1e4,n0=kr();function i0(t){for(var e=t.dimensions,n=0;n<e.length;n++){var i=t.getDimensionInfo(e[n]);if(i&&0===i.otherDims.itemGroupId)return e[n]}}function r0(t){var e=[];return Object(s["k"])(t,(function(t){var n=t.data;if(!(n.count()>e0))for(var i=n.getIndices(),r=i0(n),o=0;o<i.length;o++)e.push({dataGroupId:t.dataGroupId,data:n,dim:t.dim||r,divide:t.divide,dataIndex:o})})),e}function o0(t,e,n){t.traverse((function(t){t instanceof Va&&Hl(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function a0(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function s0(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function l0(t,e,n){var i=zl("update",n,e);i&&t.traverse((function(t){if(t instanceof Lo){var e=ql(t);e&&t.animateFrom({style:e},i)}}))}function c0(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],o=e[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function u0(t,e,n){var i=r0(t),r=r0(e);function o(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?Object(s["m"])(Object(s["m"])({},n.style),t.style):t.style},r)}function a(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var l=a(i),c=a(r),u=!1;function h(t,e){return function(n){var i=n.data,r=n.dataIndex;if(e)return i.getId(r);var o=n.dataGroupId,a=t?l||c:c||l,s=a&&i.getDimensionInfo(a),u=s&&s.ordinalMeta;if(s){var h=i.get(s.name,r);return u&&u.categories[h]||h+""}var d=i.getRawDataItem(r);return d&&d.groupId?d.groupId+"":o||i.getId(r)}}var d=c0(i,r),p={};if(!d)for(var f=0;f<r.length;f++){var g=r[f],m=g.data.getItemGraphicEl(g.dataIndex);m&&(p[m.id]=!0)}function v(t,e){var n=i[e],a=r[t],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=a.data.getItemGraphicEl(a.dataIndex);l!==c?l&&p[l.id]||c&&(s0(c),l?(s0(l),a0(l),u=!0,$$(t0(l),t0(c),a.divide,s,t,o)):o0(c,s,t)):c&&l0(c,a.dataIndex,s)}new uC(i,r,h(!0,d),h(!1,d),null,"multiple").update(v).updateManyToOne((function(t,e){var n=r[t],a=n.data,l=a.hostModel,c=a.getItemGraphicEl(n.dataIndex),h=Object(s["n"])(Object(s["H"])(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==c&&!p[t.id]}));c&&(s0(c),h.length?(Object(s["k"])(h,(function(t){s0(t),a0(t)})),u=!0,$$(t0(h),t0(c),n.divide,l,t,o)):o0(c,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!p[a.id]){var l=Object(s["n"])(Object(s["H"])(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==a})),c=r[t[0]].data.hostModel;l.length&&(Object(s["k"])(l,(function(t){return s0(t)})),a?(s0(a),a0(a),u=!0,$$(t0(a),t0(l),n.divide,c,t[0],o)):Object(s["k"])(l,(function(e){return o0(e,c,t[0])})))}})).updateManyToMany((function(t,e){new uC(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(n,i){v(t[n],e[i])})).execute()})).execute(),u&&Object(s["k"])(e,(function(t){var e=t.data,i=e.hostModel,r=i&&n.getViewOfSeriesModel(i),o=zl("update",i,0);r&&i.isAnimationEnabled()&&o&&o.duration>0&&r.group.traverse((function(t){t instanceof Va&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function h0(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function d0(t){return Object(s["t"])(t)?t.sort().join(","):t}function p0(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function f0(t,e){var n=Object(s["f"])(),i=Object(s["f"])(),r=Object(s["f"])();return Object(s["k"])(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],l=h0(e),c=d0(l);i.set(c,{dataGroupId:o,data:a}),Object(s["t"])(l)&&Object(s["k"])(l,(function(t){r.set(t,{key:c,dataGroupId:o,data:a})}))})),Object(s["k"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=h0(t),l=d0(a),c=i.get(l);if(c)n.set(l,{oldSeries:[{dataGroupId:c.dataGroupId,divide:p0(c.data),data:c.data}],newSeries:[{dataGroupId:e,divide:p0(o),data:o}]});else if(Object(s["t"])(a)){0;var u=[];Object(s["k"])(a,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:p0(e.data),data:e.data})})),u.length&&n.set(l,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:p0(o)}]})}else{var h=r.get(a);if(h){var d=n.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:p0(h.data)}],newSeries:[]},n.set(h.key,d)),d.newSeries.push({dataGroupId:e,data:o,divide:p0(o)})}}}})),n}function g0(t,e){for(var n=0;n<t.length;n++){var i=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(i)return n}}function m0(t,e,n,i){var r=[],o=[];Object(s["k"])(ar(t.from),(function(t){var n=g0(e.oldSeries,t);n>=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:p0(e.oldData[n]),dim:t.dimension})})),Object(s["k"])(ar(t.to),(function(t){var i=g0(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:p0(r),dim:t.dimension})}})),r.length>0&&o.length>0&&u0(r,o,i)}function v0(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(s["k"])(ar(n.seriesTransition),(function(t){Object(s["k"])(ar(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][df]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=n0(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)Object(s["k"])(ar(r),(function(t){m0(t,i,n,e)}));else{var o=f0(i,n);Object(s["k"])(o.keys(),(function(t){var n=o.get(t);u0(n.oldSeries,n.newSeries,e)}))}Object(s["k"])(n.updatedSeries,(function(t){t[df]&&(t[df]=!1)}))}for(var a=t.getSeries(),l=i.oldSeries=[],c=i.oldDataGroupIds=[],u=i.oldData=[],h=0;h<a.length;h++){var d=a[h].getData();d.count()<e0&&(l.push(a[h]),c.push(a[h].get("dataGroupId")),u.push(d))}}))}n.d(e,"a",(function(){return fx})),n.d(e,"b",(function(){return Ex})),jx([Pw]),jx([aC]),jx([aI,rS,MS,ME,XE,lP,aj,LL,$D,cR,xR,IN,rF,_F,KF,rz,Mz,Nz,fV,AV,HV,bH]),jx(vW),jx(cU),jx(sP),jx(DU),jx(AN),jx(UU),jx(cZ),jx(YY),jx(EX),jx(mW),jx(cq),jx(dq),jx(Dq),jx(sK),jx(bK),jx(PK),jx(sQ),jx(GQ),jx(AQ),jx(VQ),jx(NJ),jx(TJ),jx(BJ),jx(WJ),jx(s$),jx(u$),jx(v0),jx(xw)},"9d5e":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t){return t}const n="tp";function i(t){const e=(e,i)=>{return[n,"-",t,"v",e?`_${e}`:"",i?`-${i}`:""].join("")};return e}function r(t,n){const i=Object.keys(n),r=i.reduce((e,i)=>{if(void 0===e)return;const r=n[i],o=r(t[i]);return o.succeeded?Object.assign(Object.assign({},e),{[i]:o.value}):void 0},{});return e(r)}function o(t,e){return t.reduce((t,n)=>{if(void 0===t)return;const i=e(n);return i.succeeded&&void 0!==i.value?[...t,i.value]:void 0},[])}function a(t){return null!==t&&"object"===typeof t}function s(t){return e=>n=>{if(!e&&void 0===n)return{succeeded:!1,value:void 0};if(e&&void 0===n)return{succeeded:!0,value:void 0};const i=t(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function l(t){return{custom:e=>s(e)(t),boolean:s(t=>"boolean"===typeof t?t:void 0)(t),number:s(t=>"number"===typeof t?t:void 0)(t),string:s(t=>"string"===typeof t?t:void 0)(t),function:s(t=>"function"===typeof t?t:void 0)(t),constant:e=>s(t=>t===e?e:void 0)(t),raw:s(t=>t)(t),object:e=>s(t=>{if(a(t))return r(t,e)})(t),array:e=>s(t=>{if(Array.isArray(t))return o(t,e)})(t)}}const c={optional:l(!0),required:l(!1)};function u(t,e){const n=c.required.object(e)(t);return n.succeeded?n.value:void 0}function h(t){return e=>{return e.toFixed(Math.max(Math.min(t,20),0))}}h(0);function d(t){return[t[0],t[1],t[2]]}function p(t,e){const n=h("float"===e?2:0),i=d(t.getComponents("rgb",e)).map(t=>n(t));return`rgb(${i.join(", ")})`}function f(t){return e=>{return p(e,t)}}function g(t,e){const n=h(2),i=h("float"===e?2:0),r=t.getComponents("rgb",e).map((t,e)=>{const r=3===e?n:i;return r(t)});return`rgba(${r.join(", ")})`}function m(t){return e=>{return g(e,t)}}function v(t,e){const n=h("float"===e?2:0),i=["r","g","b"],r=d(t.getComponents("rgb",e)).map((t,e)=>`${i[e]}: ${n(t)}`);return`{${r.join(", ")}}`}function y(t){return e=>v(e,t)}function b(t,e){const n=h(2),i=h("float"===e?2:0),r=["r","g","b","a"],o=t.getComponents("rgb",e).map((t,e)=>{const o=3===e?n:i;return`${r[e]}: ${o(t)}`});return`{${o.join(", ")}}`}function x(t){return e=>b(e,t)}function w(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i["throw"](t))}catch(e){o(e)}}function l(t){t.done?n(t.value):r(t.value).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function C(){const t=document.createElement("canvas");t.width=128,t.height=64;const e=t.getContext("2d");return e.fillStyle="#222",e.fillRect(0,0,t.width,t.height),e.fillStyle="#ddd",e.font="monospaced",e.textAlign="center",e.textBaseline="middle",e.fillText("No image",.5*t.width,.5*t.height),new Promise(e=>{t.toBlob(t=>{const n=new Image;n.src=URL.createObjectURL(t),n.onload=()=>{e(n)}})})}function A(t){return w(this,void 0,void 0,(function*(){const e=new Image;return e.crossOrigin="anonymous",new Promise(n=>{e.src=t,e.onload=()=>{n(e)}})}))}function I(t){const e=document.createElement("canvas");e.width=t.width,e.height=t.height;const n=e.getContext("2d");n.drawImage(t,0,0);const i=new Image;return new Promise(t=>{e.toBlob(e=>{i.src=URL.createObjectURL(e),i.onload=()=>{t(i)}})})}["int","float"].reduce((t,e)=>{return[...t,{format:{alpha:!1,mode:"rgb",notation:"func",type:e},stringifier:f(e)},{format:{alpha:!0,mode:"rgb",notation:"func",type:e},stringifier:m(e)},{format:{alpha:!1,mode:"rgb",notation:"object",type:e},stringifier:y(e)},{format:{alpha:!0,mode:"rgb",notation:"object",type:e},stringifier:x(e)}]},[]);const S=i("img");class M{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(S()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(S("row")),this.url=t.createElement("input"),this.url.classList.add(S("url")),this.url.setAttribute("type","text"),n.appendChild(this.url);const i=t.createElement("label");i.classList.add(S("label")),i.textContent="上传",n.appendChild(i),this.input=t.createElement("input"),this.input.classList.add(S("input")),this.input.setAttribute("type","file"),this.input.setAttribute("accept",e.extensions.join(",")),i.appendChild(this.input),this.element.appendChild(n);const r=t.createElement("div");r.classList.add(S("image_wrapper")),this.imageWrapper=r,this.image_=t.createElement("img"),this.image_.classList.add(S("image")),this.image_.classList.add(S(`image_${e.imageFit}`)),r.appendChild(this.image_),this.element.classList.add(S("area_root")),this.element.appendChild(this.imageWrapper)}changeImage(t){this.image_.src=t,this.url.value=t}changeDraggingState(t){const e=this.imageWrapper;t?null===e||void 0===e||e.classList.add(S("area_dragging")):null===e||void 0===e||e.classList.remove(S("area_dragging"))}}class k{constructor(t,e){this.placeholderImage=null,this.value=e.value,this.viewProps=e.viewProps,this.view=new M(t,{viewProps:this.viewProps,extensions:e.extensions,imageFit:e.imageFit}),this.onFile=this.onFile.bind(this),this.onUrl=this.onUrl.bind(this),this.onDrop=this.onDrop.bind(this),this.onDragOver=this.onDragOver.bind(this),this.onDragLeave=this.onDragLeave.bind(this),this.view.input.addEventListener("change",this.onFile),this.view.element.addEventListener("drop",this.onDrop),this.view.element.addEventListener("dragover",this.onDragOver),this.view.element.addEventListener("dragleave",this.onDragLeave),this.view.url.addEventListener("change",this.onUrl),this.viewProps.handleDispose(()=>{this.view.input.removeEventListener("change",this.onFile),this.view.input.removeEventListener("drop",this.onDrop),this.view.input.removeEventListener("dragover",this.onDragOver),this.view.input.removeEventListener("dragleave",this.onDragLeave),this.view.url.removeEventListener("change",this.onUrl)}),this.value.emitter.on("change",this.handleValueChange.bind(this,!0)),this.handleValueChange(!1)}onUrl(t){const e=t.target.value;this.setValue(e),this.updateImage(e)}onFile(t){const e=(null===t||void 0===t?void 0:t.target).files;if(!e||!e.length)return;const n=e[0],i=URL.createObjectURL(n);this.setValue(i),this.updateImage(i)}onDrop(t){return w(this,void 0,void 0,(function*(){t.preventDefault();try{const{dataTransfer:e}=t,n=null===e||void 0===e?void 0:e.files[0];if(n){const t=URL.createObjectURL(n);this.updateImage(t),this.setValue(t)}else{const t=null===e||void 0===e?void 0:e.getData("url");if(!t)throw new Error("No url");A(t).then(t=>w(this,void 0,void 0,(function*(){const e=yield I(t);this.updateImage(e.src),this.setValue(e)})))}}catch(e){console.error("Could not parse the dropped image",e)}finally{this.view.changeDraggingState(!1)}}))}onDragOver(t){t.preventDefault(),this.view.changeDraggingState(!0)}onDragLeave(){this.view.changeDraggingState(!1)}handleImage(t,e){return w(this,void 0,void 0,(function*(){if(t instanceof HTMLImageElement)I(t).then(t=>{this.updateImage(t.src)});else if("string"===typeof t){let n="",i=!1;try{if("placeholder"===t)throw new Error("placeholder");const r=new URL(t,window.location.origin),o=yield A(r.href);n=o.src}catch(_){n=(yield this.handlePlaceholderImage()).src,i=!0}finally{this.updateImage(n),e&&!i&&this.setValue(n)}}}))}updateImage(t){this.view.changeImage(t)}setValue(t){return w(this,void 0,void 0,(function*(){t instanceof HTMLImageElement?this.value.setRawValue(t):t?this.value.setRawValue(yield A(t)):this.value.setRawValue(yield this.handlePlaceholderImage())}))}handleValueChange(t){this.handleImage(this.value.rawValue,t)}handlePlaceholderImage(){return w(this,void 0,void 0,(function*(){return this.placeholderImage||(this.placeholderImage=yield C()),this.placeholderImage}))}}const E=[".jpg",".png",".gif"],T={id:"input-image",type:"input",css:".tp-imgv_label,.tp-imgv,.tp-imgv_url{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-imgv_label{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-imgv_label:hover{background-color:var(--btn-bg-h)}.tp-imgv_label:focus{background-color:var(--btn-bg-f)}.tp-imgv_label:active{background-color:var(--btn-bg-a)}.tp-imgv_label:disabled{opacity:0.5}.tp-imgv,.tp-imgv_url{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-imgv:hover,.tp-imgv_url:hover{background-color:var(--in-bg-h)}.tp-imgv:focus,.tp-imgv_url:focus{background-color:var(--in-bg-f)}.tp-imgv:active,.tp-imgv_url:active{background-color:var(--in-bg-a)}.tp-imgv:disabled,.tp-imgv_url:disabled{opacity:0.5}:root{--tp-plugin-image-dragging-color: hsla(230, 100%, 66%, 1.00)}.tp-imgv{cursor:pointer;display:flex;flex-direction:column;height:calc(var(--bld-us) * 3);overflow:hidden;position:relative}.tp-imgv.tp-v-disabled{opacity:0.5}.tp-imgv_row{display:flex;align-items:center;padding:0 4px;height:var(--bld-us)}.tp-imgv_label{display:inline-block;height:100%;width:30px;text-align:center;position:relative}.tp-imgv_url{flex:1;margin-right:6px}.tp-imgv_input{position:absolute;width:100%;height:100%;opacity:0;top:0;left:0;z-index:-1}.tp-imgv_image{height:100%;width:100%;border:0}.tp-imgv_image_contain{-o-object-fit:contain;object-fit:contain}.tp-imgv_image_cover{-o-object-fit:cover;object-fit:cover}.tp-imgv_area_root{transition:opacity 0.16s ease-in-out}.tp-imgv_image_wrapper{width:100%;height:calc(var(--bld-us) * 2 - 2px);margin-top:2px;overflow:hidden;box-sizing:border-box}.tp-imgv_area_dragging{border:2px dashed var(--tp-plugin-image-dragging-color);border-radius:6px;opacity:0.6}",accept(t,e){if(!(t instanceof HTMLImageElement||"string"===typeof t))return null;const n=c,i=u(e,{view:n.required.constant("input-image"),acceptUrl:n.optional.boolean,imageFit:n.optional.custom(t=>"contain"===t||"cover"===t?t:void 0),extensions:n.optional.array(n.required.string)});return i?{initialValue:t,params:i}:null},binding:{reader(t){return t=>{return t instanceof HTMLImageElement?""===t.src?"placeholder":t.src:"string"===typeof t?t:"placeholder"}},writer(t){return(t,e)=>{t.write(e)}}},controller(t){var e,n;return new k(t.document,{value:t.value,imageFit:null!==(e=t.params.imageFit)&&void 0!==e?e:"cover",viewProps:t.viewProps,extensions:null!==(n=t.params.extensions)&&void 0!==n?n:E})}},O=T;t.plugin=O,Object.defineProperty(t,"__esModule",{value:!0})}))},"9dcd":function(t,e,n){},"9e17":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-popover",{attrs:{placement:"bottom-end",width:"750",trigger:"click",offset:t.offset,"popper-class":"syntax-warning-popper "+("indexNew"===t.from?"index-syntax-popper":"")},model:{value:t.isShowSyntax,callback:function(e){t.isShowSyntax=e},expression:"isShowSyntax"}},[t.searchSyntaxList&&t.searchSyntaxList.length?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.searchAdviceLoading,expression:"searchAdviceLoading"}],staticClass:"warning-popper-conatiner"},[n("div",{staticClass:"syntax-title-line",class:{"two-syntax":2===t.searchSyntaxList.length}},t._l(t.searchSyntaxList,(function(e,i){return n("span",{key:e.title},[n("span",{staticClass:"syntax-title text-truncate",class:{active:i===t.currentIndex,"index-syntax-title":"indexNew"===t.from},on:{click:function(e){return t.onChangeTab(i)}}},[n("span",[e.new?n("span",{staticClass:"syntax-new"},[t._v("NEW")]):t._e(),t._v(" "+t._s(e.title)+" ")])])])})),0),t.searchSyntaxList[t.currentIndex].tip?n("div",{staticClass:"syntax-tip"},[n("svg-icon",{staticClass:"syntax-tip-svg",attrs:{"icon-class":"tip"}}),n("div",{domProps:{innerHTML:t._s(t.searchSyntaxList[t.currentIndex].tip)}})],1):t._e(),t._l(t.searchSyntaxList[t.currentIndex].list,(function(e,i){return n("span",{key:i},[t.searchSyntaxList[t.currentIndex].nested?[n("div",{staticClass:"syntax-subtitle"},[t._v(t._s(e.title))]),t._l(e.list,(function(e,i){return n("span",{key:i},[n("div",{class:["syntax-item",{"index-syntax-item":"indexNew"===t.from}],on:{click:function(n){return t.onTriggerSyntax(e.example,e.vip)}}},[n("div",{staticClass:"example left"},[n("span",[t._v(t._s(e.example))]),e.vip?n("span",{staticClass:"vip"},[t._v("VIP")]):t._e()]),n("div",{staticClass:"example right"},[t._v(t._s(e.des))])])])}))]:n("div",{class:["syntax-item",{"index-syntax-item":"indexNew"===t.from}],on:{click:function(n){return t.onTriggerSyntax(e.example,e.vip)}}},[n("div",{staticClass:"example left"},[n("span",[t._v(t._s(e.example))]),e.vip?n("span",{staticClass:"vip"},[t._v("VIP")]):t._e()]),n("div",{staticClass:"example right"},[t._v(t._s(e.des))])])],2)}))],2):t._e(),n("div",{attrs:{slot:"reference"},slot:"reference"},[n("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.search_by_keyword"),placement:"top"}},[n("div",{staticClass:"synax-box"},[n("svg-icon",{staticClass:"svg",style:{fontSize:"index"===t.from?"28px":""},attrs:{"icon-class":"faviconSyntax"}})],1)])],1)])},r=[],o=(n("a4d3"),n("e01a"),n("99af"),n("4de4"),n("4160"),n("caad"),n("d81d"),n("fb6a"),n("a434"),n("a9e3"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("2532"),n("159b"),n("2909")),a=(n("96cf"),n("ade3")),s=n("2f62"),l=n("e581"),c=n("bb30");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d={props:{from:{type:String,default:""},selectIndex:{type:String,required:!0},offset:{type:Number,default:40}},data:function(){return{isShowSyntax:!1,currentIndex:0,searchSyntaxList:[],searchAdviceLoading:!1}},watch:{isShowSyntax:{handler:function(t){t&&(this.currentIndex=0,this.ajaxGetSearchExample("en"===this.localLanguage))},immediate:!0}},computed:h({},Object(s["e"])("site",["role","localLanguage"])),methods:h({},Object(s["b"])("site",["toggleMultiDialog"]),{ajaxGetSearchExample:function(){var t,e,n,i,r,a=arguments;return regeneratorRuntime.async((function(s){while(1)switch(s.prev=s.next){case 0:return t=a.length>0&&void 0!==a[0]&&a[0],this.searchAdviceLoading=!0,s.next=4,regeneratorRuntime.awrap(Object(l["L"])({is_en:t,index:this.selectIndex}));case 4:e=s.sent,n=e.code,i=e.data,this.searchAdviceLoading=!1,0===n&&(r=this.transformData(i),this.searchSyntaxList=this.formatSearchSyntaxList([].concat(Object(o["a"])(r.slice(0,1)),Object(o["a"])(r.slice(2))),r.slice(1,2)[0]));case 9:case"end":return s.stop()}}),null,this)},formatNestData:function(t){var e=[];return t&&Array.isArray(t)&&t.length?(t.forEach((function(n,i){if(n.keyword_example.includes("逻辑连接")){var r=i+1,o=[];while(r<=t.length-1&&!t[r].keyword_example.includes("逻辑连接"))o.push({example:t[r].keyword_example,des:t[r].description}),r++;e.push({title:n.keyword_example,list:o})}})),e):[]},transformData:function(t){var e=this;if(!t||!Array.isArray(t)||!t.length)return[];var n=["synaxBaseData","domain","synaxIpLocation","synaxIpLocation","synaxIpLocation"];return t.map((function(t,i){return h({title:t.category,tip:t.category_tips,new:t.category_is_new},"布尔逻辑"===t.category?{nested:!0}:{},{icon:i<=2?n[i]:n[2],list:"布尔逻辑"===t.category?e.formatNestData(t.category_search_examples):t.category_search_examples.map((function(t){return{example:t.keyword_example,des:t.description,vip:t.keyword_is_vip}}))})}))},formatSearchSyntaxList:function(t,e){var n=this.selectIndex;return"quake_service"===n&&t.splice(1,0,e),n===c["b"]&&t.splice(0,0,e),"quake_host"===n&&t.splice(1,0,e),"quake_vulnerability"===n&&t.splice(1,0,{title:"漏洞数据",icon:"synaxVulData",list:[{example:'vul: "CVE-2019-1652"',des:"漏洞编号，支持CVE、CNVD、CNNVD、EXPLOIT-DB"},{example:'vul_name: "Redis未授权访问"',des:"漏洞名称"},{example:'vul_type: "文件读取"',des:"漏洞类型"},{example:'vul_level: "严重"',des:"漏洞等级"},{example:'vul_str:"@gmail"',des:"漏洞验证信息"}]}),"img_search"!==n&&"quake_image"!==n||(t.splice(1,0,{title:this.$t("search.image_information"),icon:"synaxImgInfo",list:[{example:'img_tag: "has_faces"',des:this.$t("search.image_tag")},{example:'img_ocr: "Administrator"',des:this.$t("search.image_include",{content:'"Administrator"'})}]}),t.splice(2,0,e)),t},onTriggerSyntax:function(t,e){this.isShowSyntax=!1,e&&!this.role?this.toggleMultiDialog("unLogin"):this.$emit("onTriggerSyntax",t)},onChangeTab:function(t){this.currentIndex=t}})},p=d,f=(n("9f279"),n("9555"),n("2877")),g=Object(f["a"])(p,i,r,!1,null,"61abd836",null);e["a"]=g.exports},"9e49":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_Y=e.CROSSHAIR_X=e.NAME_CLASS=e.VALUE_CLASS=e.MARKER_CLASS=e.LIST_ITEM_CLASS=e.LIST_CLASS=e.TITLE_CLASS=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-tooltip",e.TITLE_CLASS="g2-tooltip-title",e.LIST_CLASS="g2-tooltip-list",e.LIST_ITEM_CLASS="g2-tooltip-list-item",e.MARKER_CLASS="g2-tooltip-marker",e.VALUE_CLASS="g2-tooltip-value",e.NAME_CLASS="g2-tooltip-name",e.CROSSHAIR_X="g2-tooltip-crosshair-x",e.CROSSHAIR_Y="g2-tooltip-crosshair-y"},"9f27":function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return p}));var i=n("9ab4"),r=n("4799"),o=Math.sin,a=Math.cos,s=Math.atan2,l=Math.PI;function c(t,e,n,i,c,u,h){var d=e.stroke,p=e.lineWidth,f=n-c,g=i-u,m=s(g,f),v=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(l/6)+","+10*o(l/6)+" L0,0 L"+10*a(l/6)+",-"+10*o(l/6),stroke:d,lineWidth:p}});v.translate(c,u),v.rotateAtPoint(c,u,m),t.set(h?"startArrowShape":"endArrowShape",v)}function u(t,e,n,l,c,u,h){var d=e.startArrow,p=e.endArrow,f=e.stroke,g=e.lineWidth,m=h?d:p,v=m.d,y=m.fill,b=m.stroke,x=m.lineWidth,w=Object(i["__rest"])(m,["d","fill","stroke","lineWidth"]),_=n-c,C=l-u,A=s(C,_);v&&(c-=a(A)*v,u-=o(A)*v);var I=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(i["__assign"])(Object(i["__assign"])({},w),{stroke:b||f,lineWidth:x||g,fill:y})});I.translate(c,u),I.rotateAtPoint(c,u,A),t.set(h?"startArrowShape":"endArrowShape",I)}function h(t,e,n,i,r){var l=s(i-e,n-t);return{dx:a(l)*r,dy:o(l)*r}}function d(t,e,n,i,r,o){"object"===typeof e.startArrow?u(t,e,n,i,r,o,!0):e.startArrow?c(t,e,n,i,r,o,!0):t.set("startArrowShape",null)}function p(t,e,n,i,r,o){"object"===typeof e.endArrow?u(t,e,n,i,r,o,!1):e.endArrow?c(t,e,n,i,r,o,!1):t.set("startArrowShape",null)}},"9f279":function(t,e,n){"use strict";var i=n("e77f"),r=n.n(i);r.a},"9f75":function(t,e,n){"use strict";var i=n("625d"),r=n.n(i);r.a},"9fe7":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return l})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return d})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return f})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return m})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return w})),n.d(e,"squaredDistance",(function(){return _})),n.d(e,"squaredLength",(function(){return C})),n.d(e,"negate",(function(){return A})),n.d(e,"inverse",(function(){return I})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return M})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return E})),n.d(e,"hermite",(function(){return T})),n.d(e,"bezier",(function(){return O})),n.d(e,"random",(function(){return P})),n.d(e,"transformMat4",(function(){return j})),n.d(e,"transformMat3",(function(){return L})),n.d(e,"transformQuat",(function(){return D})),n.d(e,"rotateX",(function(){return R})),n.d(e,"rotateY",(function(){return B})),n.d(e,"rotateZ",(function(){return N})),n.d(e,"angle",(function(){return F})),n.d(e,"zero",(function(){return z})),n.d(e,"str",(function(){return V})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return H})),n.d(e,"sub",(function(){return W})),n.d(e,"mul",(function(){return U})),n.d(e,"div",(function(){return Z})),n.d(e,"dist",(function(){return Y})),n.d(e,"sqrDist",(function(){return X})),n.d(e,"len",(function(){return q})),n.d(e,"sqrLen",(function(){return K})),n.d(e,"forEach",(function(){return Q}));var i=n("c94d");function r(){var t=new i["a"](3);return i["a"]!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new i["a"](3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],i=t[2];return Math.hypot(e,n,i)}function s(t,e,n){var r=new i["a"](3);return r[0]=t,r[1]=e,r[2]=n,r}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function w(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.hypot(n,i,r)}function _(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function C(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function A(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function I(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t}function E(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t}function T(t,e,n,i,r,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,c=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+i[0]*c+r[0]*u,t[1]=e[1]*s+n[1]*l+i[1]*c+r[1]*u,t[2]=e[2]*s+n[2]*l+i[2]*c+r[2]*u,t}function O(t,e,n,i,r,o){var a=1-o,s=a*a,l=o*o,c=s*a,u=3*o*s,h=3*l*a,d=l*o;return t[0]=e[0]*c+n[0]*u+i[0]*h+r[0]*d,t[1]=e[1]*c+n[1]*u+i[1]*h+r[1]*d,t[2]=e[2]*c+n[2]*u+i[2]*h+r[2]*d,t}function P(t,e){e=e||1;var n=2*i["c"]()*Math.PI,r=2*i["c"]()-1,o=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=r*e,t}function j(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t}function L(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function D(t,e,n){var i=n[0],r=n[1],o=n[2],a=n[3],s=e[0],l=e[1],c=e[2],u=r*c-o*l,h=o*s-i*c,d=i*l-r*s,p=r*d-o*h,f=o*u-i*d,g=i*h-r*u,m=2*a;return u*=m,h*=m,d*=m,p*=2,f*=2,g*=2,t[0]=s+u+p,t[1]=l+h+f,t[2]=c+d+g,t}function R(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function N(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function F(t,e){var n=t[0],i=t[1],r=t[2],o=e[0],a=e[1],s=e[2],l=Math.sqrt(n*n+i*i+r*r),c=Math.sqrt(o*o+a*a+s*s),u=l*c,h=u&&M(t,e)/u;return Math.acos(Math.min(Math.max(h,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function V(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function H(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-l)<=i["b"]*Math.max(1,Math.abs(o),Math.abs(l))}var W=h,U=d,Z=p,Y=w,X=_,q=a,K=C,Q=function(){var t=r();return function(e,n,i,r,o,a){var s,l;for(n||(n=3),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},a00f:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=e[0],p=e[1],f=e[2],g=e[3],m=e[4],v=e[5],y=e[6],b=e[7],x=e[8];return n[0]=d*i+p*a+f*c,n[1]=d*r+p*s+f*u,n[2]=d*o+p*l+f*h,n[3]=g*i+m*a+v*c,n[4]=g*r+m*s+v*u,n[5]=g*o+m*l+v*h,n[6]=y*i+b*a+x*c,n[7]=y*r+b*s+x*u,n[8]=y*o+b*l+x*h,n}function r(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function o(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=u*a-s*c,d=-u*o+s*l,p=c*o-a*l,f=n*h+i*d+r*p;return f?(f=1/f,e[0]=h*f,e[1]=(-u*i+r*c)*f,e[2]=(s*i-r*a)*f,e[3]=d*f,e[4]=(u*n-r*l)*f,e[5]=(-s*n+r*o)*f,e[6]=p*f,e[7]=(-c*n+i*l)*f,e[8]=(a*n-i*o)*f,e):null}Object.defineProperty(e,"__esModule",{value:!0}),e.multiplyMatrix=i,e.multiplyVec2=r,e.invert=o},a078:function(t,e,n){var i=n("0366"),r=n("c65b"),o=n("5087"),a=n("7b0b"),s=n("07fa"),l=n("9a1f"),c=n("35a1"),u=n("e95a"),h=n("bcbf"),d=n("ebb5").aTypedArrayConstructor,p=n("f495");t.exports=function(t){var e,n,f,g,m,v,y,b,x=o(this),w=a(t),_=arguments.length,C=_>1?arguments[1]:void 0,A=void 0!==C,I=c(w);if(I&&!u(I)){y=l(w,I),b=y.next,w=[];while(!(v=r(b,y)).done)w.push(v.value)}for(A&&_>2&&(C=i(C,arguments[2])),n=s(w),f=new(d(x))(n),g=h(f),e=0;n>e;e++)m=A?C(w[e],e):w[e],f[e]=g?p(m):+m;return f}},a128:function(t,e,n){"use strict";n.r(e);class i{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let i=0;i<this._n&&i<32;i++){const r=e[i],o=t+r,a=Math.abs(t)<Math.abs(r)?t-(o-r):r-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,i,r=this._n,o=0;if(r>0){o=t[--r];while(r>0)if(e=o,n=t[--r],o=e+n,i=n-(o-e),i)break;r>0&&(i<0&&t[r-1]<0||i>0&&t[r-1]>0)&&(n=2*i,e=o+n,n==e-o&&(o=e))}return o}}var r=1e-6,o=1e-12,a=Math.PI,s=a/2,l=a/4,c=2*a,u=180/a,h=a/180,d=Math.abs,p=Math.atan,f=Math.atan2,g=Math.cos,m=Math.ceil,v=Math.exp,y=(Math.floor,Math.hypot),b=Math.log,x=Math.pow,w=Math.sin,_=Math.sign||function(t){return t>0?1:t<0?-1:0},C=Math.sqrt,A=Math.tan;function I(t){return t>1?0:t<-1?a:Math.acos(t)}function S(t){return t>1?s:t<-1?-s:Math.asin(t)}function M(t){return(t=w(t/2))*t}function k(){}function E(t,e){t&&O.hasOwnProperty(t.type)&&O[t.type](t,e)}var T={Feature:function(t,e){E(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i<r)E(n[i].geometry,e)}},O={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){P(t.coordinates,e,0)},MultiLineString:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)P(n[i],e,0)},Polygon:function(t,e){j(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)j(n[i],e)},GeometryCollection:function(t,e){var n=t.geometries,i=-1,r=n.length;while(++i<r)E(n[i],e)}};function P(t,e,n){var i,r=-1,o=t.length-n;e.lineStart();while(++r<o)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function j(t,e){var n=-1,i=t.length;e.polygonStart();while(++n<i)P(t[n],e,1);e.polygonEnd()}var L,D,R,B,N,F=function(t,e){t&&T.hasOwnProperty(t.type)?T[t.type](t,e):E(t,e)},z=new i,V=new i,G={point:k,lineStart:k,lineEnd:k,polygonStart:function(){z=new i,G.lineStart=H,G.lineEnd=W},polygonEnd:function(){var t=+z;V.add(t<0?c+t:t),this.lineStart=this.lineEnd=this.point=k},sphere:function(){V.add(c)}};function H(){G.point=U}function W(){Z(L,D)}function U(t,e){G.point=Z,L=t,D=e,t*=h,e*=h,R=t,B=g(e=e/2+l),N=w(e)}function Z(t,e){t*=h,e*=h,e=e/2+l;var n=t-R,i=n>=0?1:-1,r=i*n,o=g(e),a=w(e),s=N*a,c=B*o+s*g(r),u=s*i*w(r);z.add(f(u,c)),R=t,B=o,N=a}var Y,X,q,K,Q,J,$,tt,et,nt,it,rt=function(t){return V=new i,F(t,G),2*V};function ot(t){return[f(t[1],t[0]),S(t[2])]}function at(t){var e=t[0],n=t[1],i=g(n);return[i*g(e),i*w(e),w(n)]}function st(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function lt(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ct(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ut(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function ht(t){var e=C(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var dt={point:pt,lineStart:gt,lineEnd:mt,polygonStart:function(){dt.point=vt,dt.lineStart=yt,dt.lineEnd=bt,et=new i,G.polygonStart()},polygonEnd:function(){G.polygonEnd(),dt.point=pt,dt.lineStart=gt,dt.lineEnd=mt,z<0?(Y=-(q=180),X=-(K=90)):et>r?K=90:et<-r&&(X=-90),it[0]=Y,it[1]=q},sphere:function(){Y=-(q=180),X=-(K=90)}};function pt(t,e){nt.push(it=[Y=t,q=t]),e<X&&(X=e),e>K&&(K=e)}function ft(t,e){var n=at([t*h,e*h]);if(tt){var i=lt(tt,n),r=[i[1],-i[0],0],o=lt(r,i);ht(o),o=ot(o);var a,s=t-Q,l=s>0?1:-1,c=o[0]*u*l,p=d(s)>180;p^(l*Q<c&&c<l*t)?(a=o[1]*u,a>K&&(K=a)):(c=(c+360)%360-180,p^(l*Q<c&&c<l*t)?(a=-o[1]*u,a<X&&(X=a)):(e<X&&(X=e),e>K&&(K=e))),p?t<Q?xt(Y,t)>xt(Y,q)&&(q=t):xt(t,q)>xt(Y,q)&&(Y=t):q>=Y?(t<Y&&(Y=t),t>q&&(q=t)):t>Q?xt(Y,t)>xt(Y,q)&&(q=t):xt(t,q)>xt(Y,q)&&(Y=t)}else nt.push(it=[Y=t,q=t]);e<X&&(X=e),e>K&&(K=e),tt=n,Q=t}function gt(){dt.point=ft}function mt(){it[0]=Y,it[1]=q,dt.point=pt,tt=null}function vt(t,e){if(tt){var n=t-Q;et.add(d(n)>180?n+(n>0?360:-360):n)}else J=t,$=e;G.point(t,e),ft(t,e)}function yt(){G.lineStart()}function bt(){vt(J,$),G.lineEnd(),d(et)>r&&(Y=-(q=180)),it[0]=Y,it[1]=q,tt=null}function xt(t,e){return(e-=t)<0?e+360:e}function wt(t,e){return t[0]-e[0]}function _t(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var Ct,At,It,St,Mt,kt,Et,Tt,Ot,Pt,jt,Lt,Dt,Rt,Bt,Nt,Ft=function(t){var e,n,i,r,o,a,s;if(K=q=-(Y=X=1/0),nt=[],F(t,dt),n=nt.length){for(nt.sort(wt),e=1,i=nt[0],o=[i];e<n;++e)r=nt[e],_t(i,r[0])||_t(i,r[1])?(xt(i[0],r[1])>xt(i[0],i[1])&&(i[1]=r[1]),xt(r[0],i[1])>xt(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,n=o.length-1,e=0,i=o[n];e<=n;i=r,++e)r=o[e],(s=xt(i[1],r[0]))>a&&(a=s,Y=r[0],q=i[1])}return nt=it=null,Y===1/0||X===1/0?[[NaN,NaN],[NaN,NaN]]:[[Y,X],[q,K]]},zt={sphere:k,point:Vt,lineStart:Ht,lineEnd:Zt,polygonStart:function(){zt.lineStart=Yt,zt.lineEnd=Xt},polygonEnd:function(){zt.lineStart=Ht,zt.lineEnd=Zt}};function Vt(t,e){t*=h,e*=h;var n=g(e);Gt(n*g(t),n*w(t),w(e))}function Gt(t,e,n){++Ct,It+=(t-It)/Ct,St+=(e-St)/Ct,Mt+=(n-Mt)/Ct}function Ht(){zt.point=Wt}function Wt(t,e){t*=h,e*=h;var n=g(e);Rt=n*g(t),Bt=n*w(t),Nt=w(e),zt.point=Ut,Gt(Rt,Bt,Nt)}function Ut(t,e){t*=h,e*=h;var n=g(e),i=n*g(t),r=n*w(t),o=w(e),a=f(C((a=Bt*o-Nt*r)*a+(a=Nt*i-Rt*o)*a+(a=Rt*r-Bt*i)*a),Rt*i+Bt*r+Nt*o);At+=a,kt+=a*(Rt+(Rt=i)),Et+=a*(Bt+(Bt=r)),Tt+=a*(Nt+(Nt=o)),Gt(Rt,Bt,Nt)}function Zt(){zt.point=Vt}function Yt(){zt.point=qt}function Xt(){Kt(Lt,Dt),zt.point=Vt}function qt(t,e){Lt=t,Dt=e,t*=h,e*=h,zt.point=Kt;var n=g(e);Rt=n*g(t),Bt=n*w(t),Nt=w(e),Gt(Rt,Bt,Nt)}function Kt(t,e){t*=h,e*=h;var n=g(e),i=n*g(t),r=n*w(t),o=w(e),a=Bt*o-Nt*r,s=Nt*i-Rt*o,l=Rt*r-Bt*i,c=y(a,s,l),u=S(c),d=c&&-u/c;Ot.add(d*a),Pt.add(d*s),jt.add(d*l),At+=u,kt+=u*(Rt+(Rt=i)),Et+=u*(Bt+(Bt=r)),Tt+=u*(Nt+(Nt=o)),Gt(Rt,Bt,Nt)}var Qt=function(t){Ct=At=It=St=Mt=kt=Et=Tt=0,Ot=new i,Pt=new i,jt=new i,F(t,zt);var e=+Ot,n=+Pt,a=+jt,s=y(e,n,a);return s<o&&(e=kt,n=Et,a=Tt,At<r&&(e=It,n=St,a=Mt),s=y(e,n,a),s<o)?[NaN,NaN]:[f(n,e)*u,S(a/s)*u]},Jt=function(t){return function(){return t}},$t=function(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return n=e.invert(n,i),n&&t.invert(n[0],n[1])}),n};function te(t,e){return d(t)>a&&(t-=Math.round(t/c)*c),[t,e]}function ee(t,e,n){return(t%=c)?e||n?$t(ie(t),re(e,n)):ie(t):e||n?re(e,n):te}function ne(t){return function(e,n){return e+=t,d(e)>a&&(e-=Math.round(e/c)*c),[e,n]}}function ie(t){var e=ne(t);return e.invert=ne(-t),e}function re(t,e){var n=g(t),i=w(t),r=g(e),o=w(e);function a(t,e){var a=g(e),s=g(t)*a,l=w(t)*a,c=w(e),u=c*n+s*i;return[f(l*r-u*o,s*n-c*i),S(u*r+l*o)]}return a.invert=function(t,e){var a=g(e),s=g(t)*a,l=w(t)*a,c=w(e),u=c*r-l*o;return[f(l*r+c*o,s*n+u*i),S(u*n-s*i)]},a}te.invert=te;var oe=function(t){function e(e){return e=t(e[0]*h,e[1]*h),e[0]*=u,e[1]*=u,e}return t=ee(t[0]*h,t[1]*h,t.length>2?t[2]*h:0),e.invert=function(e){return e=t.invert(e[0]*h,e[1]*h),e[0]*=u,e[1]*=u,e},e};function ae(t,e,n,i,r,o){if(n){var a=g(e),s=w(e),l=i*n;null==r?(r=e+i*c,o=e-l/2):(r=se(a,r),o=se(a,o),(i>0?r<o:r>o)&&(r+=i*c));for(var u,h=r;i>0?h>o:h<o;h-=l)u=ot([a,-s*g(h),-s*w(h)]),t.point(u[0],u[1])}}function se(t,e){e=at(e),e[0]-=t,ht(e);var n=I(-e[1]);return((-e[2]<0?-n:n)+c-r)%c}var le=function(){var t,e,n=Jt([0,0]),i=Jt(90),r=Jt(2),o={point:a};function a(n,i){t.push(n=e(n,i)),n[0]*=u,n[1]*=u}function s(){var a=n.apply(this,arguments),s=i.apply(this,arguments)*h,l=r.apply(this,arguments)*h;return t=[],e=ee(-a[0]*h,-a[1]*h,0).invert,ae(o,s,l,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return s.center=function(t){return arguments.length?(n="function"===typeof t?t:Jt([+t[0],+t[1]]),s):n},s.radius=function(t){return arguments.length?(i="function"===typeof t?t:Jt(+t),s):i},s.precision=function(t){return arguments.length?(r="function"===typeof t?t:Jt(+t),s):r},s},ce=function(){var t,e=[];return{point:function(e,n,i){t.push([e,n,i])},lineStart:function(){e.push(t=[])},lineEnd:k,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},ue=function(t,e){return d(t[0]-e[0])<r&&d(t[1]-e[1])<r};function he(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}var de=function(t,e,n,i,o){var a,s,l=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],s=t[e];if(ue(i,s)){if(!i[2]&&!s[2]){for(o.lineStart(),a=0;a<e;++a)o.point((i=t[a])[0],i[1]);return void o.lineEnd()}s[0]+=2*r}l.push(n=new he(i,t,null,!0)),c.push(n.o=new he(i,null,n,!1)),l.push(n=new he(s,t,null,!1)),c.push(n.o=new he(s,null,n,!0))}})),l.length){for(c.sort(e),pe(l),pe(c),a=0,s=c.length;a<s;++a)c[a].e=n=!n;var u,h,d=l[0];while(1){var p=d,f=!0;while(p.v)if((p=p.n)===d)return;u=p.z,o.lineStart();do{if(p.v=p.o.v=!0,p.e){if(f)for(a=0,s=u.length;a<s;++a)o.point((h=u[a])[0],h[1]);else i(p.x,p.n.x,1,o);p=p.n}else{if(f)for(u=p.p.z,a=u.length-1;a>=0;--a)o.point((h=u[a])[0],h[1]);else i(p.x,p.p.x,-1,o);p=p.p}p=p.o,u=p.z,f=!f}while(!p.v);o.lineEnd()}}};function pe(t){if(e=t.length){var e,n,i=0,r=t[0];while(++i<e)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}function fe(t){return d(t[0])<=a?t[0]:_(t[0])*((d(t[0])+a)%c-a)}var ge=function(t,e){var n=fe(e),u=e[1],h=w(u),d=[w(n),-g(n),0],p=0,m=0,v=new i;1===h?u=s+r:-1===h&&(u=-s-r);for(var y=0,b=t.length;y<b;++y)if(_=(x=t[y]).length)for(var x,_,C=x[_-1],A=fe(C),I=C[1]/2+l,M=w(I),k=g(I),E=0;E<_;++E,A=O,M=j,k=L,C=T){var T=x[E],O=fe(T),P=T[1]/2+l,j=w(P),L=g(P),D=O-A,R=D>=0?1:-1,B=R*D,N=B>a,F=M*j;if(v.add(f(F*R*w(B),k*L+F*g(B))),p+=N?D+R*c:D,N^A>=n^O>=n){var z=lt(at(C),at(T));ht(z);var V=lt(d,z);ht(V);var G=(N^D>=0?-1:1)*S(V[2]);(u>G||u===G&&(z[0]||z[1]))&&(m+=N^D>=0?1:-1)}}return(p<-r||p<r&&v<-o)^1&m};function*me(t){for(const e of t)yield*e}function ve(t){return Array.from(me(t))}var ye=function(t,e,n,i){return function(r){var o,a,s,l=e(r),c=ce(),u=e(c),h=!1,d={point:p,lineStart:g,lineEnd:m,polygonStart:function(){d.point=v,d.lineStart=y,d.lineEnd=b,a=[],o=[]},polygonEnd:function(){d.point=p,d.lineStart=g,d.lineEnd=m,a=ve(a);var t=ge(o,i);a.length?(h||(r.polygonStart(),h=!0),de(a,xe,t,n,r)):t&&(h||(r.polygonStart(),h=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),h&&(r.polygonEnd(),h=!1),a=o=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function p(e,n){t(e,n)&&r.point(e,n)}function f(t,e){l.point(t,e)}function g(){d.point=f,l.lineStart()}function m(){d.point=p,l.lineEnd()}function v(t,e){s.push([t,e]),u.point(t,e)}function y(){u.lineStart(),s=[]}function b(){v(s[0][0],s[0][1]),u.lineEnd();var t,e,n,i,l=u.clean(),d=c.result(),p=d.length;if(s.pop(),o.push(s),s=null,p)if(1&l){if(n=d[0],(e=n.length-1)>0){for(h||(r.polygonStart(),h=!0),r.lineStart(),t=0;t<e;++t)r.point((i=n[t])[0],i[1]);r.lineEnd()}}else p>1&&2&l&&d.push(d.pop().concat(d.shift())),a.push(d.filter(be))}return d}};function be(t){return t.length>1}function xe(t,e){return((t=t.x)[0]<0?t[1]-s-r:s-t[1])-((e=e.x)[0]<0?e[1]-s-r:s-e[1])}var we=ye((function(){return!0}),_e,Ae,[-a,-s]);function _e(t){var e,n=NaN,i=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(l,c){var u=l>0?a:-a,h=d(l-n);d(h-a)<r?(t.point(n,i=(i+c)/2>0?s:-s),t.point(o,i),t.lineEnd(),t.lineStart(),t.point(u,i),t.point(l,i),e=0):o!==u&&h>=a&&(d(n-o)<r&&(n-=o*r),d(l-u)<r&&(l-=u*r),i=Ce(n,i,l,c),t.point(o,i),t.lineEnd(),t.lineStart(),t.point(u,i),e=0),t.point(n=l,i=c),o=u},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}}function Ce(t,e,n,i){var o,a,s=w(t-n);return d(s)>r?p((w(e)*(a=g(i))*w(n)-w(i)*(o=g(e))*w(t))/(o*a*s)):(e+i)/2}function Ae(t,e,n,i){var o;if(null==t)o=n*s,i.point(-a,o),i.point(0,o),i.point(a,o),i.point(a,0),i.point(a,-o),i.point(0,-o),i.point(-a,-o),i.point(-a,0),i.point(-a,o);else if(d(t[0]-e[0])>r){var l=t[0]<e[0]?a:-a;o=n*l/2,i.point(-l,o),i.point(0,o),i.point(l,o)}else i.point(e[0],e[1])}var Ie=function(t){var e=g(t),n=2*h,i=e>0,o=d(e)>r;function s(e,i,r,o){ae(o,t,n,r,e,i)}function l(t,n){return g(t)*g(n)>e}function c(t){var e,n,r,s,c;return{lineStart:function(){s=r=!1,c=1},point:function(h,d){var f,g=[h,d],m=l(h,d),v=i?m?0:p(h,d):m?p(h+(h<0?a:-a),d):0;if(!e&&(s=r=m)&&t.lineStart(),m!==r&&(f=u(e,g),(!f||ue(e,f)||ue(g,f))&&(g[2]=1)),m!==r)c=0,m?(t.lineStart(),f=u(g,e),t.point(f[0],f[1])):(f=u(e,g),t.point(f[0],f[1],2),t.lineEnd()),e=f;else if(o&&e&&i^m){var y;v&n||!(y=u(g,e,!0))||(c=0,i?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!m||e&&ue(e,g)||t.point(g[0],g[1]),e=g,r=m,n=v},lineEnd:function(){r&&t.lineEnd(),e=null},clean:function(){return c|(s&&r)<<1}}}function u(t,n,i){var o=at(t),s=at(n),l=[1,0,0],c=lt(o,s),u=st(c,c),h=c[0],p=u-h*h;if(!p)return!i&&t;var f=e*u/p,g=-e*h/p,m=lt(l,c),v=ut(l,f),y=ut(c,g);ct(v,y);var b=m,x=st(v,b),w=st(b,b),_=x*x-w*(st(v,v)-1);if(!(_<0)){var A=C(_),I=ut(b,(-x-A)/w);if(ct(I,v),I=ot(I),!i)return I;var S,M=t[0],k=n[0],E=t[1],T=n[1];k<M&&(S=M,M=k,k=S);var O=k-M,P=d(O-a)<r,j=P||O<r;if(!P&&T<E&&(S=E,E=T,T=S),j?P?E+T>0^I[1]<(d(I[0]-M)<r?E:T):E<=I[1]&&I[1]<=T:O>a^(M<=I[0]&&I[0]<=k)){var L=ut(b,(-x+A)/w);return ct(L,v),[I,ot(L)]}}}function p(e,n){var r=i?t:a-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return ye(l,c,s,i?[0,-t]:[-a,t-a])},Se=function(t,e,n,i,r,o){var a,s=t[0],l=t[1],c=e[0],u=e[1],h=0,d=1,p=c-s,f=u-l;if(a=n-s,p||!(a>0)){if(a/=p,p<0){if(a<h)return;a<d&&(d=a)}else if(p>0){if(a>d)return;a>h&&(h=a)}if(a=r-s,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>h&&(h=a)}else if(p>0){if(a<h)return;a<d&&(d=a)}if(a=i-l,f||!(a>0)){if(a/=f,f<0){if(a<h)return;a<d&&(d=a)}else if(f>0){if(a>d)return;a>h&&(h=a)}if(a=o-l,f||!(a<0)){if(a/=f,f<0){if(a>d)return;a>h&&(h=a)}else if(f>0){if(a<h)return;a<d&&(d=a)}return h>0&&(t[0]=s+h*p,t[1]=l+h*f),d<1&&(e[0]=s+d*p,e[1]=l+d*f),!0}}}}},Me=1e9,ke=-Me;function Ee(t,e,n,i){function o(r,o){return t<=r&&r<=n&&e<=o&&o<=i}function a(r,o,a,l){var u=0,h=0;if(null==r||(u=s(r,a))!==(h=s(o,a))||c(r,o)<0^a>0)do{l.point(0===u||3===u?t:n,u>1?i:e)}while((u=(u+a+4)%4)!==h);else l.point(o[0],o[1])}function s(i,o){return d(i[0]-t)<r?o>0?0:3:d(i[0]-n)<r?o>0?2:1:d(i[1]-e)<r?o>0?1:0:o>0?3:2}function l(t,e){return c(t.x,e.x)}function c(t,e){var n=s(t,1),i=s(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(r){var s,c,u,h,d,p,f,g,m,v,y,b=r,x=ce(),w={point:_,lineStart:S,lineEnd:M,polygonStart:A,polygonEnd:I};function _(t,e){o(t,e)&&b.point(t,e)}function C(){for(var e=0,n=0,r=c.length;n<r;++n)for(var o,a,s=c[n],l=1,u=s.length,h=s[0],d=h[0],p=h[1];l<u;++l)o=d,a=p,h=s[l],d=h[0],p=h[1],a<=i?p>i&&(d-o)*(i-a)>(p-a)*(t-o)&&++e:p<=i&&(d-o)*(i-a)<(p-a)*(t-o)&&--e;return e}function A(){b=x,s=[],c=[],y=!0}function I(){var t=C(),e=y&&t,n=(s=ve(s)).length;(e||n)&&(r.polygonStart(),e&&(r.lineStart(),a(null,null,1,r),r.lineEnd()),n&&de(s,l,t,a,r),r.polygonEnd()),b=r,s=c=u=null}function S(){w.point=k,c&&c.push(u=[]),v=!0,m=!1,f=g=NaN}function M(){s&&(k(h,d),p&&m&&x.rejoin(),s.push(x.result())),w.point=_,m&&b.lineEnd()}function k(r,a){var s=o(r,a);if(c&&u.push([r,a]),v)h=r,d=a,p=s,v=!1,s&&(b.lineStart(),b.point(r,a));else if(s&&m)b.point(r,a);else{var l=[f=Math.max(ke,Math.min(Me,f)),g=Math.max(ke,Math.min(Me,g))],x=[r=Math.max(ke,Math.min(Me,r)),a=Math.max(ke,Math.min(Me,a))];Se(l,x,t,e,n,i)?(m||(b.lineStart(),b.point(l[0],l[1])),b.point(x[0],x[1]),s||b.lineEnd(),y=!1):s&&(b.lineStart(),b.point(r,a),y=!1)}f=r,g=a,m=s}return w}}var Te,Oe,Pe,je,Le=function(){var t,e,n,i=0,r=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Ee(i,r,o,a)(e=n)},extent:function(s){return arguments.length?(i=+s[0][0],r=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[i,r],[o,a]]}}},De={sphere:k,point:k,lineStart:Re,lineEnd:k,polygonStart:k,polygonEnd:k};function Re(){De.point=Ne,De.lineEnd=Be}function Be(){De.point=De.lineEnd=k}function Ne(t,e){t*=h,e*=h,Oe=t,Pe=w(e),je=g(e),De.point=Fe}function Fe(t,e){t*=h,e*=h;var n=w(e),i=g(e),r=d(t-Oe),o=g(r),a=w(r),s=i*a,l=je*n-Pe*i*o,c=Pe*n+je*i*o;Te.add(f(C(s*s+l*l),c)),Oe=t,Pe=n,je=i}var ze=function(t){return Te=new i,F(t,De),+Te},Ve=[null,null],Ge={type:"LineString",coordinates:Ve},He=function(t,e){return Ve[0]=t,Ve[1]=e,ze(Ge)},We={Feature:function(t,e){return Ze(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i<r)if(Ze(n[i].geometry,e))return!0;return!1}},Ue={Sphere:function(){return!0},Point:function(t,e){return Ye(t.coordinates,e)},MultiPoint:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)if(Ye(n[i],e))return!0;return!1},LineString:function(t,e){return Xe(t.coordinates,e)},MultiLineString:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)if(Xe(n[i],e))return!0;return!1},Polygon:function(t,e){return qe(t.coordinates,e)},MultiPolygon:function(t,e){var n=t.coordinates,i=-1,r=n.length;while(++i<r)if(qe(n[i],e))return!0;return!1},GeometryCollection:function(t,e){var n=t.geometries,i=-1,r=n.length;while(++i<r)if(Ze(n[i],e))return!0;return!1}};function Ze(t,e){return!(!t||!Ue.hasOwnProperty(t.type))&&Ue[t.type](t,e)}function Ye(t,e){return 0===He(t,e)}function Xe(t,e){for(var n,i,r,a=0,s=t.length;a<s;a++){if(i=He(t[a],e),0===i)return!0;if(a>0&&(r=He(t[a],t[a-1]),r>0&&n<=r&&i<=r&&(n+i-r)*(1-Math.pow((n-i)/r,2))<o*r))return!0;n=i}return!1}function qe(t,e){return!!ge(t.map(Ke),Qe(e))}function Ke(t){return t=t.map(Qe),t.pop(),t}function Qe(t){return[t[0]*h,t[1]*h]}var Je=function(t,e){return(t&&We.hasOwnProperty(t.type)?We[t.type]:Ze)(t,e)};function $e(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(r);while(++i<r)o[i]=t+i*n;return o}function tn(t,e,n){var i=$e(t,e-r,n).concat(e);return function(t){return i.map((function(e){return[t,e]}))}}function en(t,e,n){var i=$e(t,e-r,n).concat(e);return function(t){return i.map((function(e){return[e,t]}))}}function nn(){var t,e,n,i,o,a,s,l,c,u,h,p,f=10,g=f,v=90,y=360,b=2.5;function x(){return{type:"MultiLineString",coordinates:w()}}function w(){return $e(m(i/v)*v,n,v).map(h).concat($e(m(l/y)*y,s,y).map(p)).concat($e(m(e/f)*f,t,f).filter((function(t){return d(t%v)>r})).map(c)).concat($e(m(a/g)*g,o,g).filter((function(t){return d(t%y)>r})).map(u))}return x.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},x.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(p(s).slice(1),h(n).reverse().slice(1),p(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.extentMajor(t).extentMinor(t):x.extentMinor()},x.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],i>n&&(t=i,i=n,n=t),l>s&&(t=l,l=s,s=t),x.precision(b)):[[i,l],[n,s]]},x.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],o=+n[1][1],e>t&&(n=e,e=t,t=n),a>o&&(n=a,a=o,o=n),x.precision(b)):[[e,a],[t,o]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(v=+t[0],y=+t[1],x):[v,y]},x.stepMinor=function(t){return arguments.length?(f=+t[0],g=+t[1],x):[f,g]},x.precision=function(r){return arguments.length?(b=+r,c=tn(a,o,90),u=en(e,t,b),h=tn(l,s,90),p=en(i,n,b),x):b},x.extentMajor([[-180,-90+r],[180,90-r]]).extentMinor([[-180,-80-r],[180,80+r]])}function rn(){return nn()()}var on,an,sn,ln,cn=function(t,e){var n=t[0]*h,i=t[1]*h,r=e[0]*h,o=e[1]*h,a=g(i),s=w(i),l=g(o),c=w(o),d=a*g(n),p=a*w(n),m=l*g(r),v=l*w(r),y=2*S(C(M(o-i)+a*l*M(r-n))),b=w(y),x=y?function(t){var e=w(t*=y)/b,n=w(y-t)/b,i=n*d+e*m,r=n*p+e*v,o=n*s+e*c;return[f(r,i)*u,f(o,C(i*i+r*r))*u]}:function(){return[n*u,i*u]};return x.distance=y,x},un=t=>t,hn=new i,dn=new i,pn={point:k,lineStart:k,lineEnd:k,polygonStart:function(){pn.lineStart=fn,pn.lineEnd=vn},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=k,hn.add(d(dn)),dn=new i},result:function(){var t=hn/2;return hn=new i,t}};function fn(){pn.point=gn}function gn(t,e){pn.point=mn,on=sn=t,an=ln=e}function mn(t,e){dn.add(ln*t-sn*e),sn=t,ln=e}function vn(){mn(on,an)}var yn=pn,bn=1/0,xn=bn,wn=-bn,_n=wn,Cn={point:An,lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k,result:function(){var t=[[bn,xn],[wn,_n]];return wn=_n=-(xn=bn=1/0),t}};function An(t,e){t<bn&&(bn=t),t>wn&&(wn=t),e<xn&&(xn=e),e>_n&&(_n=e)}var In,Sn,Mn,kn,En=Cn,Tn=0,On=0,Pn=0,jn=0,Ln=0,Dn=0,Rn=0,Bn=0,Nn=0,Fn={point:zn,lineStart:Vn,lineEnd:Wn,polygonStart:function(){Fn.lineStart=Un,Fn.lineEnd=Zn},polygonEnd:function(){Fn.point=zn,Fn.lineStart=Vn,Fn.lineEnd=Wn},result:function(){var t=Nn?[Rn/Nn,Bn/Nn]:Dn?[jn/Dn,Ln/Dn]:Pn?[Tn/Pn,On/Pn]:[NaN,NaN];return Tn=On=Pn=jn=Ln=Dn=Rn=Bn=Nn=0,t}};function zn(t,e){Tn+=t,On+=e,++Pn}function Vn(){Fn.point=Gn}function Gn(t,e){Fn.point=Hn,zn(Mn=t,kn=e)}function Hn(t,e){var n=t-Mn,i=e-kn,r=C(n*n+i*i);jn+=r*(Mn+t)/2,Ln+=r*(kn+e)/2,Dn+=r,zn(Mn=t,kn=e)}function Wn(){Fn.point=zn}function Un(){Fn.point=Yn}function Zn(){Xn(In,Sn)}function Yn(t,e){Fn.point=Xn,zn(In=Mn=t,Sn=kn=e)}function Xn(t,e){var n=t-Mn,i=e-kn,r=C(n*n+i*i);jn+=r*(Mn+t)/2,Ln+=r*(kn+e)/2,Dn+=r,r=kn*t-Mn*e,Rn+=r*(Mn+t),Bn+=r*(kn+e),Nn+=3*r,zn(Mn=t,kn=e)}var qn=Fn;function Kn(t){this._context=t}Kn.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,c);break}},result:k};var Qn,Jn,$n,ti,ei,ni=new i,ii={point:k,lineStart:function(){ii.point=ri},lineEnd:function(){Qn&&oi(Jn,$n),ii.point=k},polygonStart:function(){Qn=!0},polygonEnd:function(){Qn=null},result:function(){var t=+ni;return ni=new i,t}};function ri(t,e){ii.point=oi,Jn=ti=t,$n=ei=e}function oi(t,e){ti-=t,ei-=e,ni.add(C(ti*ti+ei*ei)),ti=t,ei=e}var ai=ii;let si,li,ci,ui;class hi{constructor(t){this._append=null==t?di:pi(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(t,e){switch(this._point){case 0:this._append`M${t},${e}`,this._point=1;break;case 1:this._append`L${t},${e}`;break;default:if(this._append`M${t},${e}`,this._radius!==ci||this._append!==li){const t=this._radius,e=this._;this._="",this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`,ci=t,li=this._append,ui=this._,this._=e}this._+=ui;break}}result(){const t=this._;return this._="",t.length?t:null}}function di(t){let e=1;this._+=t[0];for(const n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function pi(t){const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return di;if(e!==si){const t=10**e;si=e,li=function(e){let n=1;this._+=e[0];for(const i=e.length;n<i;++n)this._+=Math.round(arguments[n]*t)/t+e[n]}}return li}var fi=function(t,e){let n,i,r=3,o=4.5;function a(t){return t&&("function"===typeof o&&i.pointRadius(+o.apply(this,arguments)),F(t,n(i))),i.result()}return a.area=function(t){return F(t,n(yn)),yn.result()},a.measure=function(t){return F(t,n(ai)),ai.result()},a.bounds=function(t){return F(t,n(En)),En.result()},a.centroid=function(t){return F(t,n(qn)),qn.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,un):(t=e).stream,a):t},a.context=function(t){return arguments.length?(i=null==t?(e=null,new hi(r)):new Kn(e=t),"function"!==typeof o&&i.pointRadius(o),a):e},a.pointRadius=function(t){return arguments.length?(o="function"===typeof t?t:(i.pointRadius(+t),+t),a):o},a.digits=function(t){if(!arguments.length)return r;if(null==t)r=null;else{const e=Math.floor(t);if(!(e>=0))throw new RangeError(`invalid digits: ${t}`);r=e}return null===e&&(i=new hi(r)),a},a.projection(t).digits(r).context(e)},gi=function(t){return{stream:mi(t)}};function mi(t){return function(e){var n=new vi;for(var i in t)n[i]=t[i];return n.stream=e,n}}function vi(){}function yi(t,e,n){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),F(n,t.stream(En)),e(En.result()),null!=i&&t.clipExtent(i),t}function bi(t,e,n){return yi(t,(function(n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+e[0][0]+(i-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(r-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function xi(t,e,n){return bi(t,[[0,0],e],n)}function wi(t,e,n){return yi(t,(function(n){var i=+e,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];t.scale(150*r).translate([o,a])}),n)}function _i(t,e,n){return yi(t,(function(n){var i=+e,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;t.scale(150*r).translate([o,a])}),n)}vi.prototype={constructor:vi,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Ci=16,Ai=g(30*h),Ii=function(t,e){return+e?Mi(t,e):Si(t)};function Si(t){return mi({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function Mi(t,e){function n(i,o,a,s,l,c,u,h,p,g,m,v,y,b){var x=u-i,w=h-o,_=x*x+w*w;if(_>4*e&&y--){var A=s+g,I=l+m,M=c+v,k=C(A*A+I*I+M*M),E=S(M/=k),T=d(d(M)-1)<r||d(a-p)<r?(a+p)/2:f(I,A),O=t(T,E),P=O[0],j=O[1],L=P-i,D=j-o,R=w*L-x*D;(R*R/_>e||d((x*L+w*D)/_-.5)>.3||s*g+l*m+c*v<Ai)&&(n(i,o,a,s,l,c,P,j,T,A/=k,I/=k,M,y,b),b.point(P,j),n(P,j,T,A,I,M,u,h,p,g,m,v,y,b))}}return function(e){var i,r,o,a,s,l,c,u,h,d,p,f,g={point:m,lineStart:v,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=x},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function m(n,i){n=t(n,i),e.point(n[0],n[1])}function v(){u=NaN,g.point=y,e.lineStart()}function y(i,r){var o=at([i,r]),a=t(i,r);n(u,h,c,d,p,f,u=a[0],h=a[1],c=i,d=o[0],p=o[1],f=o[2],Ci,e),e.point(u,h)}function b(){g.point=m,e.lineEnd()}function x(){v(),g.point=w,g.lineEnd=_}function w(t,e){y(i=t,e),r=u,o=h,a=d,s=p,l=f,g.point=y}function _(){n(u,h,c,d,p,f,r,o,i,a,s,l,Ci,e),g.lineEnd=b,b()}return g}}var ki=mi({point:function(t,e){this.stream.point(t*h,e*h)}});function Ei(t){return mi({point:function(e,n){var i=t(e,n);return this.stream.point(i[0],i[1])}})}function Ti(t,e,n,i,r){function o(o,a){return o*=i,a*=r,[e+t*o,n-t*a]}return o.invert=function(o,a){return[(o-e)/t*i,(n-a)/t*r]},o}function Oi(t,e,n,i,r,o){if(!o)return Ti(t,e,n,i,r);var a=g(o),s=w(o),l=a*t,c=s*t,u=a/t,h=s/t,d=(s*n-a*e)/t,p=(s*e+a*n)/t;function f(t,o){return t*=i,o*=r,[l*t-c*o+e,n-c*t-l*o]}return f.invert=function(t,e){return[i*(u*t-h*e+d),r*(p-h*t-u*e)]},f}function Pi(t){return ji((function(){return t}))()}function ji(t){var e,n,i,r,o,a,s,l,c,d,p=150,f=480,g=250,m=0,v=0,y=0,b=0,x=0,w=0,_=1,A=1,I=null,S=we,M=null,k=un,E=.5;function T(t){return l(t[0]*h,t[1]*h)}function O(t){return t=l.invert(t[0],t[1]),t&&[t[0]*u,t[1]*u]}function P(){var t=Oi(p,0,0,_,A,w).apply(null,e(m,v)),i=Oi(p,f-t[0],g-t[1],_,A,w);return n=ee(y,b,x),s=$t(e,i),l=$t(n,s),a=Ii(s,E),j()}function j(){return c=d=null,T}return T.stream=function(t){return c&&d===t?c:c=ki(Ei(n)(S(a(k(d=t)))))},T.preclip=function(t){return arguments.length?(S=t,I=void 0,j()):S},T.postclip=function(t){return arguments.length?(k=t,M=i=r=o=null,j()):k},T.clipAngle=function(t){return arguments.length?(S=+t?Ie(I=t*h):(I=null,we),j()):I*u},T.clipExtent=function(t){return arguments.length?(k=null==t?(M=i=r=o=null,un):Ee(M=+t[0][0],i=+t[0][1],r=+t[1][0],o=+t[1][1]),j()):null==M?null:[[M,i],[r,o]]},T.scale=function(t){return arguments.length?(p=+t,P()):p},T.translate=function(t){return arguments.length?(f=+t[0],g=+t[1],P()):[f,g]},T.center=function(t){return arguments.length?(m=t[0]%360*h,v=t[1]%360*h,P()):[m*u,v*u]},T.rotate=function(t){return arguments.length?(y=t[0]%360*h,b=t[1]%360*h,x=t.length>2?t[2]%360*h:0,P()):[y*u,b*u,x*u]},T.angle=function(t){return arguments.length?(w=t%360*h,P()):w*u},T.reflectX=function(t){return arguments.length?(_=t?-1:1,P()):_<0},T.reflectY=function(t){return arguments.length?(A=t?-1:1,P()):A<0},T.precision=function(t){return arguments.length?(a=Ii(s,E=t*t),j()):C(E)},T.fitExtent=function(t,e){return bi(T,t,e)},T.fitSize=function(t,e){return xi(T,t,e)},T.fitWidth=function(t,e){return wi(T,t,e)},T.fitHeight=function(t,e){return _i(T,t,e)},function(){return e=t.apply(this,arguments),T.invert=e.invert&&O,P()}}function Li(t){var e=0,n=a/3,i=ji(t),r=i(e,n);return r.parallels=function(t){return arguments.length?i(e=t[0]*h,n=t[1]*h):[e*u,n*u]},r}function Di(t){var e=g(t);function n(t,n){return[t*e,w(n)/e]}return n.invert=function(t,n){return[t/e,S(n*e)]},n}function Ri(t,e){var n=w(t),i=(n+w(e))/2;if(d(i)<r)return Di(t);var o=1+n*(2*i-n),s=C(o)/i;function l(t,e){var n=C(o-2*i*w(e))/i;return[n*w(t*=i),s-n*g(t)]}return l.invert=function(t,e){var n=s-e,r=f(t,d(n))*_(n);return n*i<0&&(r-=a*_(t)*_(n)),[r/i,S((o-(t*t+n*n)*i*i)/(2*i))]},l}var Bi=function(){return Li(Ri).scale(155.424).center([0,33.6442])},Ni=function(){return Bi().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};function Fi(t){var e=t.length;return{point:function(n,i){var r=-1;while(++r<e)t[r].point(n,i)},sphere:function(){var n=-1;while(++n<e)t[n].sphere()},lineStart:function(){var n=-1;while(++n<e)t[n].lineStart()},lineEnd:function(){var n=-1;while(++n<e)t[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<e)t[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<e)t[n].polygonEnd()}}}var zi=function(){var t,e,n,i,o,a,s=Ni(),l=Bi().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Bi().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){a=[t,e]}};function h(t){var e=t[0],r=t[1];return a=null,n.point(e,r),a||(i.point(e,r),a)||(o.point(e,r),a)}function d(){return t=e=null,h}return h.invert=function(t){var e=s.scale(),n=s.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?l:r>=.166&&r<.234&&i>=-.214&&i<-.115?c:s).invert(t)},h.stream=function(n){return t&&e===n?t:t=Fi([s.stream(e=n),l.stream(n),c.stream(n)])},h.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),c.precision(t),d()):s.precision()},h.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),c.scale(t),h.translate(s.translate())):s.scale()},h.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),a=+t[0],h=+t[1];return n=s.translate(t).clipExtent([[a-.455*e,h-.238*e],[a+.455*e,h+.238*e]]).stream(u),i=l.translate([a-.307*e,h+.201*e]).clipExtent([[a-.425*e+r,h+.12*e+r],[a-.214*e-r,h+.234*e-r]]).stream(u),o=c.translate([a-.205*e,h+.212*e]).clipExtent([[a-.214*e+r,h+.166*e+r],[a-.115*e-r,h+.234*e-r]]).stream(u),d()},h.fitExtent=function(t,e){return bi(h,t,e)},h.fitSize=function(t,e){return xi(h,t,e)},h.fitWidth=function(t,e){return wi(h,t,e)},h.fitHeight=function(t,e){return _i(h,t,e)},h.scale(1070)};function Vi(t){return function(e,n){var i=g(e),r=g(n),o=t(i*r);return o===1/0?[2,0]:[o*r*w(e),o*w(n)]}}function Gi(t){return function(e,n){var i=C(e*e+n*n),r=t(i),o=w(r),a=g(r);return[f(e*o,i*a),S(i&&n*o/i)]}}var Hi=Vi((function(t){return C(2/(1+t))}));Hi.invert=Gi((function(t){return 2*S(t/2)}));var Wi=function(){return Pi(Hi).scale(124.75).clipAngle(179.999)},Ui=Vi((function(t){return(t=I(t))&&t/w(t)}));Ui.invert=Gi((function(t){return t}));var Zi=function(){return Pi(Ui).scale(79.4188).clipAngle(179.999)};function Yi(t,e){return[t,b(A((s+e)/2))]}Yi.invert=function(t,e){return[t,2*p(v(e))-s]};var Xi=function(){return qi(Yi).scale(961/c)};function qi(t){var e,n,i,r=Pi(t),o=r.center,s=r.scale,l=r.translate,c=r.clipExtent,u=null;function h(){var o=a*s(),l=r(oe(r.rotate()).invert([0,0]));return c(null==u?[[l[0]-o,l[1]-o],[l[0]+o,l[1]+o]]:t===Yi?[[Math.max(l[0]-o,u),e],[Math.min(l[0]+o,n),i]]:[[u,Math.max(l[1]-o,e)],[n,Math.min(l[1]+o,i)]])}return r.scale=function(t){return arguments.length?(s(t),h()):s()},r.translate=function(t){return arguments.length?(l(t),h()):l()},r.center=function(t){return arguments.length?(o(t),h()):o()},r.clipExtent=function(t){return arguments.length?(null==t?u=e=n=i=null:(u=+t[0][0],e=+t[0][1],n=+t[1][0],i=+t[1][1]),h()):null==u?null:[[u,e],[n,i]]},h()}function Ki(t){return A((s+t)/2)}function Qi(t,e){var n=g(t),i=t===e?w(t):b(n/g(e))/b(Ki(e)/Ki(t)),o=n*x(Ki(t),i)/i;if(!i)return Yi;function l(t,e){o>0?e<-s+r&&(e=-s+r):e>s-r&&(e=s-r);var n=o/x(Ki(e),i);return[n*w(i*t),o-n*g(i*t)]}return l.invert=function(t,e){var n=o-e,r=_(i)*C(t*t+n*n),l=f(t,d(n))*_(n);return n*i<0&&(l-=a*_(t)*_(n)),[l/i,2*p(x(o/r,1/i))-s]},l}var Ji=function(){return Li(Qi).scale(109.5).parallels([30,30])};function $i(t,e){return[t,e]}$i.invert=$i;var tr=function(){return Pi($i).scale(152.63)};function er(t,e){var n=g(t),i=t===e?w(t):(n-g(e))/(e-t),o=n/i+t;if(d(i)<r)return $i;function s(t,e){var n=o-e,r=i*t;return[n*w(r),o-n*g(r)]}return s.invert=function(t,e){var n=o-e,r=f(t,d(n))*_(n);return n*i<0&&(r-=a*_(t)*_(n)),[r/i,o-_(i)*C(t*t+n*n)]},s}var nr=function(){return Li(er).scale(131.154).center([0,13.9389])},ir=1.340264,rr=-.081106,or=893e-6,ar=.003796,sr=C(3)/2,lr=12;function cr(t,e){var n=S(sr*w(e)),i=n*n,r=i*i*i;return[t*g(n)/(sr*(ir+3*rr*i+r*(7*or+9*ar*i))),n*(ir+rr*i+r*(or+ar*i))]}cr.invert=function(t,e){for(var n,i,r,a=e,s=a*a,l=s*s*s,c=0;c<lr;++c)if(i=a*(ir+rr*s+l*(or+ar*s))-e,r=ir+3*rr*s+l*(7*or+9*ar*s),a-=n=i/r,s=a*a,l=s*s*s,d(n)<o)break;return[sr*t*(ir+3*rr*s+l*(7*or+9*ar*s))/g(a),S(w(a)/sr)]};var ur=function(){return Pi(cr).scale(177.158)};function hr(t,e){var n=g(e),i=g(t)*n;return[n*w(t)/i,w(e)/i]}hr.invert=Gi(p);var dr=function(){return Pi(hr).scale(144.049).clipAngle(60)},pr=function(){var t,e,n,i,r,o,a,s=1,l=0,c=0,d=1,p=1,f=0,m=null,v=1,y=1,b=mi({point:function(t,e){var n=C([t,e]);this.stream.point(n[0],n[1])}}),x=un;function _(){return v=s*d,y=s*p,o=a=null,C}function C(n){var i=n[0]*v,r=n[1]*y;if(f){var o=r*t-i*e;i=i*t+r*e,r=o}return[i+l,r+c]}return C.invert=function(n){var i=n[0]-l,r=n[1]-c;if(f){var o=r*t+i*e;i=i*t-r*e,r=o}return[i/v,r/y]},C.stream=function(t){return o&&a===t?o:o=b(x(a=t))},C.postclip=function(t){return arguments.length?(x=t,m=n=i=r=null,_()):x},C.clipExtent=function(t){return arguments.length?(x=null==t?(m=n=i=r=null,un):Ee(m=+t[0][0],n=+t[0][1],i=+t[1][0],r=+t[1][1]),_()):null==m?null:[[m,n],[i,r]]},C.scale=function(t){return arguments.length?(s=+t,_()):s},C.translate=function(t){return arguments.length?(l=+t[0],c=+t[1],_()):[l,c]},C.angle=function(n){return arguments.length?(f=n%360*h,e=w(f),t=g(f),_()):f*u},C.reflectX=function(t){return arguments.length?(d=t?-1:1,_()):d<0},C.reflectY=function(t){return arguments.length?(p=t?-1:1,_()):p<0},C.fitExtent=function(t,e){return bi(C,t,e)},C.fitSize=function(t,e){return xi(C,t,e)},C.fitWidth=function(t,e){return wi(C,t,e)},C.fitHeight=function(t,e){return _i(C,t,e)},C};function fr(t,e){var n=e*e,i=n*n;return[t*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),e*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}fr.invert=function(t,e){var n,i=e,o=25;do{var a=i*i,s=a*a;i-=n=(i*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(d(n)>r&&--o>0);return[t/(.8707+(a=i*i)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),i]};var gr=function(){return Pi(fr).scale(175.295)};function mr(t,e){return[g(e)*w(t),w(e)]}mr.invert=Gi(S);var vr=function(){return Pi(mr).scale(249.5).clipAngle(90+r)};function yr(t,e){var n=g(e),i=1+g(t)*n;return[n*w(t)/i,w(e)/i]}yr.invert=Gi((function(t){return 2*p(t)}));var br=function(){return Pi(yr).scale(250).clipAngle(142)};function xr(t,e){return[b(A((s+e)/2)),-t]}xr.invert=function(t,e){return[-e,2*p(v(t))-s]};var wr=function(){var t=qi(xr),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90]).scale(159.155)};n.d(e,"geoArea",(function(){return rt})),n.d(e,"geoBounds",(function(){return Ft})),n.d(e,"geoCentroid",(function(){return Qt})),n.d(e,"geoCircle",(function(){return le})),n.d(e,"geoClipAntimeridian",(function(){return we})),n.d(e,"geoClipCircle",(function(){return Ie})),n.d(e,"geoClipExtent",(function(){return Le})),n.d(e,"geoClipRectangle",(function(){return Ee})),n.d(e,"geoContains",(function(){return Je})),n.d(e,"geoDistance",(function(){return He})),n.d(e,"geoGraticule",(function(){return nn})),n.d(e,"geoGraticule10",(function(){return rn})),n.d(e,"geoInterpolate",(function(){return cn})),n.d(e,"geoLength",(function(){return ze})),n.d(e,"geoPath",(function(){return fi})),n.d(e,"geoAlbers",(function(){return Ni})),n.d(e,"geoAlbersUsa",(function(){return zi})),n.d(e,"geoAzimuthalEqualArea",(function(){return Wi})),n.d(e,"geoAzimuthalEqualAreaRaw",(function(){return Hi})),n.d(e,"geoAzimuthalEquidistant",(function(){return Zi})),n.d(e,"geoAzimuthalEquidistantRaw",(function(){return Ui})),n.d(e,"geoConicConformal",(function(){return Ji})),n.d(e,"geoConicConformalRaw",(function(){return Qi})),n.d(e,"geoConicEqualArea",(function(){return Bi})),n.d(e,"geoConicEqualAreaRaw",(function(){return Ri})),n.d(e,"geoConicEquidistant",(function(){return nr})),n.d(e,"geoConicEquidistantRaw",(function(){return er})),n.d(e,"geoEqualEarth",(function(){return ur})),n.d(e,"geoEqualEarthRaw",(function(){return cr})),n.d(e,"geoEquirectangular",(function(){return tr})),n.d(e,"geoEquirectangularRaw",(function(){return $i})),n.d(e,"geoGnomonic",(function(){return dr})),n.d(e,"geoGnomonicRaw",(function(){return hr})),n.d(e,"geoIdentity",(function(){return pr})),n.d(e,"geoProjection",(function(){return Pi})),n.d(e,"geoProjectionMutator",(function(){return ji})),n.d(e,"geoMercator",(function(){return Xi})),n.d(e,"geoMercatorRaw",(function(){return Yi})),n.d(e,"geoNaturalEarth1",(function(){return gr})),n.d(e,"geoNaturalEarth1Raw",(function(){return fr})),n.d(e,"geoOrthographic",(function(){return vr})),n.d(e,"geoOrthographicRaw",(function(){return mr})),n.d(e,"geoStereographic",(function(){return br})),n.d(e,"geoStereographicRaw",(function(){return yr})),n.d(e,"geoTransverseMercator",(function(){return wr})),n.d(e,"geoTransverseMercatorRaw",(function(){return xr})),n.d(e,"geoRotation",(function(){return oe})),n.d(e,"geoStream",(function(){return F})),n.d(e,"geoTransform",(function(){return gi}))},a12b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("b455"),r=n("7ec0");function o(t,e,n,i,r,o,a,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}function a(t,e,n,i,r,o,a,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}function s(t,e,n){return Math.atan(-e/t*Math.tan(n))}function l(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function c(t,e,n,i,r,o){return n*Math.cos(r)*Math.cos(o)-i*Math.sin(r)*Math.sin(o)+t}function u(t,e,n,i,r,o){return n*Math.sin(r)*Math.cos(o)+i*Math.cos(r)*Math.sin(o)+e}function h(t,e,n,i){var r=Math.atan2(i*t,n*e);return(r+2*Math.PI)%(2*Math.PI)}function d(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function p(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}e.default={box:function(t,e,n,i,r,o,a){for(var h=s(n,i,r),d=1/0,p=-1/0,f=[o,a],g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var m=h+g;o<a?o<m&&m<a&&f.push(m):a<m&&m<o&&f.push(m)}for(g=0;g<f.length;g++){var v=c(t,e,n,i,r,f[g]);v<d&&(d=v),v>p&&(p=v)}var y=l(n,i,r),b=1/0,x=-1/0,w=[o,a];for(g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var _=y+g;o<a?o<_&&_<a&&w.push(_):a<_&&_<o&&w.push(_)}for(g=0;g<w.length;g++){var C=u(t,e,n,i,r,w[g]);C<b&&(b=C),C>x&&(x=C)}return{x:d,y:b,width:p-d,height:x-b}},length:function(t,e,n,i,r,o,a){},nearestPoint:function(t,e,n,i,o,a,s,l,c){var u=p(l-t,c-e,-o),f=u[0],g=u[1],m=r.default.nearestPoint(0,0,n,i,f,g),v=h(n,i,m.x,m.y);v<a?m=d(n,i,a):v>s&&(m=d(n,i,s));var y=p(m.x,m.y,o);return{x:y[0]+t,y:y[1]+e}},pointDistance:function(t,e,n,r,o,a,s,l,c){var u=this.nearestPoint(t,e,n,r,l,c);return i.distance(u.x,u.y,l,c)},pointAt:function(t,e,n,i,r,o,a,s){var l=(a-o)*s+o;return{x:c(t,e,n,i,r,l),y:u(t,e,n,i,r,l)}},tangentAngle:function(t,e,n,r,s,l,c,u){var h=(c-l)*u+l,d=o(t,e,n,r,s,l,c,h),p=a(t,e,n,r,s,l,c,h);return i.piMod(Math.atan2(p,d))}}},a2bf:function(t,e,n){"use strict";var i=n("e8b5"),r=n("07fa"),o=n("3511"),a=n("0366"),s=function(t,e,n,l,c,u,h,d){var p,f,g=c,m=0,v=!!h&&a(h,d);while(m<l)m in n&&(p=v?v(n[m],m,e):n[m],u>0&&i(p)?(f=r(p),g=s(t,e,p,f,g,u-1)-1):(o(g+1),t[g]=p),g++),m++;return g};t.exports=s},a382:function(t,e,n){t.exports=n.p+"assets/img/taobao.6781e012.png"},a38d5:function(t,e,n){"use strict";var i=n("2760"),r=n.n(i);r.a},a5e8:function(t,e,n){"use strict";var i=n("dc38"),r=n.n(i);r.a},a755:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},a941e:function(t,e,n){"use strict";var i=n("57b1"),r=n.n(i);r.a},a975:function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").every,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("every",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},a9b7:function(t,e,n){t.exports=n.p+"assets/img/qiyeBannerDarkGreen.73926372.png"},aa47:function(t,e,n){"use strict";
/**!
 * Sortable 1.10.2
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */
function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){r(t,e,n[e])}))}return t}function s(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}function l(t,e){if(null==t)return{};var n,i,r=s(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function c(t){return u(t)||h(t)||d()}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function h(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(e),n.d(e,"MultiDrag",(function(){return Fe})),n.d(e,"Sortable",(function(){return $t})),n.d(e,"Swap",(function(){return Me}));var p="1.10.2";function f(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var g=f(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=f(/Edge/i),v=f(/firefox/i),y=f(/safari/i)&&!f(/chrome/i)&&!f(/android/i),b=f(/iP(ad|od|hone)/i),x=f(/chrome/i)&&f(/android/i),w={capture:!1,passive:!1};function C(t,e,n){t.addEventListener(e,n,!g&&w)}function A(t,e,n){t.removeEventListener(e,n,!g&&w)}function I(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(_){return!1}return!1}}function S(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function M(t,e,n,i){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&I(t,e):I(t,e))||i&&t===n)return t;if(t===n)break}while(t=S(t))}return null}var k,E=/\s+/g;function T(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(E," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(E," ")}}function O(t,e,n){var i=t&&t.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"===typeof n?"":"px")}}function P(t,e){var n="";if("string"===typeof t)n=t;else do{var i=O(t,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function j(t,e,n){if(t){var i=t.getElementsByTagName(e),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function L(){var t=document.scrollingElement;return t||document.documentElement}function D(t,e,n,i,r){if(t.getBoundingClientRect||t===window){var o,a,s,l,c,u,h;if(t!==window&&t!==L()?(o=t.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,c=o.right,u=o.height,h=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,h=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!g))do{if(r&&r.getBoundingClientRect&&("none"!==O(r,"transform")||n&&"static"!==O(r,"position"))){var d=r.getBoundingClientRect();a-=d.top+parseInt(O(r,"border-top-width")),s-=d.left+parseInt(O(r,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(r=r.parentNode);if(i&&t!==window){var p=P(r||t),f=p&&p.a,m=p&&p.d;p&&(a/=m,s/=f,h/=f,u/=m,l=a+u,c=s+h)}return{top:a,left:s,bottom:l,right:c,width:h,height:u}}}function R(t,e,n){var i=G(t,!0),r=D(t)[e];while(i){var o=D(i)[n],a=void 0;if(a="top"===n||"left"===n?r>=o:r<=o,!a)return i;if(i===L())break;i=G(i,!1)}return!1}function B(t,e,n){var i=0,r=0,o=t.children;while(r<o.length){if("none"!==o[r].style.display&&o[r]!==$t.ghost&&o[r]!==$t.dragged&&M(o[r],n.draggable,t,!1)){if(i===e)return o[r];i++}r++}return null}function N(t,e){var n=t.lastElementChild;while(n&&(n===$t.ghost||"none"===O(n,"display")||e&&!I(n,e)))n=n.previousElementSibling;return n||null}function F(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===$t.clone||e&&!I(t,e)||n++;return n}function z(t){var e=0,n=0,i=L();if(t)do{var r=P(t),o=r.a,a=r.d;e+=t.scrollLeft*o,n+=t.scrollTop*a}while(t!==i&&(t=t.parentNode));return[e,n]}function V(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t[n][i])return Number(n);return-1}function G(t,e){if(!t||!t.getBoundingClientRect)return L();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=O(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(i||e)return n;i=!0}}}while(n=n.parentNode);return L()}function H(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function W(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function U(t,e){return function(){if(!k){var n=arguments,i=this;1===n.length?t.call(i,n[0]):t.apply(i,n),k=setTimeout((function(){k=void 0}),e)}}}function Z(){clearTimeout(k),k=void 0}function Y(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function X(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function q(t,e){O(t,"position","absolute"),O(t,"top",e.top),O(t,"left",e.left),O(t,"width",e.width),O(t,"height",e.height)}function K(t){O(t,"position",""),O(t,"top",""),O(t,"left",""),O(t,"width",""),O(t,"height","")}var Q="Sortable"+(new Date).getTime();function J(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==O(t,"display")&&t!==$t.ghost){e.push({target:t,rect:D(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=P(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(V(e,{target:t}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var r=!1,o=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,s=D(n),l=n.prevFromRect,c=n.prevToRect,u=t.rect,h=P(n,!0);h&&(s.top-=h.f,s.left-=h.e),n.toRect=s,n.thisAnimationDuration&&W(l,s)&&!W(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(e=tt(u,l,c,i.options)),W(s,a)||(n.prevFromRect=a,n.prevToRect=s,e||(e=i.options.animation),i.animate(n,u,s,e)),e&&(r=!0,o=Math.max(o,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,i){if(i){O(t,"transition",""),O(t,"transform","");var r=P(this.el),o=r&&r.a,a=r&&r.d,s=(e.left-n.left)/(o||1),l=(e.top-n.top)/(a||1);t.animatingX=!!s,t.animatingY=!!l,O(t,"transform","translate3d("+s+"px,"+l+"px,0)"),$(t),O(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),O(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){O(t,"transition",""),O(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),i)}}}}function $(t){return t.offsetWidth}function tt(t,e,n,i){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*i.animation}var et=[],nt={initializeByDefault:!0},it={mount:function(t){for(var e in nt)!nt.hasOwnProperty(e)||e in t||(t[e]=nt[e]);et.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=t+"Global";et.forEach((function(i){e[i.pluginName]&&(e[i.pluginName][r]&&e[i.pluginName][r](a({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](a({sortable:e},n)))}))},initializePlugins:function(t,e,n,i){for(var r in et.forEach((function(i){var r=i.pluginName;if(t.options[r]||i.initializeByDefault){var a=new i(t,e,t.options);a.sortable=t,a.options=t.options,t[r]=a,o(n,a.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var a=this.modifyOption(t,r,t.options[r]);"undefined"!==typeof a&&(t.options[r]=a)}},getEventProperties:function(t,e){var n={};return et.forEach((function(i){"function"===typeof i.eventProperties&&o(n,i.eventProperties.call(e[i.pluginName],t))})),n},modifyOption:function(t,e,n){var i;return et.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"===typeof r.optionListeners[e]&&(i=r.optionListeners[e].call(t[r.pluginName],n))})),i}};function rt(t){var e=t.sortable,n=t.rootEl,i=t.name,r=t.targetEl,o=t.cloneEl,s=t.toEl,l=t.fromEl,c=t.oldIndex,u=t.newIndex,h=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,f=t.putSortable,v=t.extraEventProperties;if(e=e||n&&n[Q],e){var y,b=e.options,x="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||g||m?(y=document.createEvent("Event"),y.initEvent(i,!0,!0)):y=new CustomEvent(i,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=l||n,y.item=r||n,y.clone=o,y.oldIndex=c,y.newIndex=u,y.oldDraggableIndex=h,y.newDraggableIndex=d,y.originalEvent=p,y.pullMode=f?f.lastPutMode:void 0;var w=a({},v,it.getEventProperties(i,e));for(var _ in w)y[_]=w[_];n&&n.dispatchEvent(y),b[x]&&b[x].call(e,y)}}var ot=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=l(n,["evt"]);it.pluginEvent.bind($t)(t,e,a({dragEl:st,parentEl:lt,ghostEl:ct,rootEl:ut,nextEl:ht,lastDownEl:dt,cloneEl:pt,cloneHidden:ft,dragStarted:Mt,putSortable:xt,activeSortable:$t.active,originalEvent:i,oldIndex:gt,oldDraggableIndex:vt,newIndex:mt,newDraggableIndex:yt,hideGhostForTarget:qt,unhideGhostForTarget:Kt,cloneNowHidden:function(){ft=!0},cloneNowShown:function(){ft=!1},dispatchSortableEvent:function(t){at({sortable:e,name:t,originalEvent:i})}},r))};function at(t){rt(a({putSortable:xt,cloneEl:pt,targetEl:st,rootEl:ut,oldIndex:gt,oldDraggableIndex:vt,newIndex:mt,newDraggableIndex:yt},t))}var st,lt,ct,ut,ht,dt,pt,ft,gt,mt,vt,yt,bt,xt,wt,_t,Ct,At,It,St,Mt,kt,Et,Tt,Ot,Pt=!1,jt=!1,Lt=[],Dt=!1,Rt=!1,Bt=[],Nt=!1,Ft=[],zt="undefined"!==typeof document,Vt=b,Gt=m||g?"cssFloat":"float",Ht=zt&&!x&&!b&&"draggable"in document.createElement("div"),Wt=function(){if(zt){if(g)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ut=function(t,e){var n=O(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=B(t,0,e),o=B(t,1,e),a=r&&O(r),s=o&&O(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+D(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+D(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[Gt]||o&&"none"===n[Gt]&&l+c>i)?"vertical":"horizontal"},Zt=function(t,e,n){var i=n?t.left:t.top,r=n?t.right:t.bottom,o=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return i===a||r===s||i+o/2===a+l/2},Yt=function(t,e){var n;return Lt.some((function(i){if(!N(i)){var r=D(i),o=i[Q].options.emptyInsertThreshold,a=t>=r.left-o&&t<=r.right+o,s=e>=r.top-o&&e<=r.bottom+o;return o&&a&&s?n=i:void 0}})),n},Xt=function(t){function e(t,n){return function(i,r,o,a){var s=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(i,r,o,a),n)(i,r,o,a);var l=(n?i:r).options.group.name;return!0===t||"string"===typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},r=t.group;r&&"object"==i(r)||(r={name:r}),n.name=r.name,n.checkPull=e(r.pull,!0),n.checkPut=e(r.put),n.revertClone=r.revertClone,t.group=n},qt=function(){!Wt&&ct&&O(ct,"display","none")},Kt=function(){!Wt&&ct&&O(ct,"display","")};zt&&document.addEventListener("click",(function(t){if(jt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),jt=!1,!1}),!0);var Qt=function(t){if(st){t=t.touches?t.touches[0]:t;var e=Yt(t.clientX,t.clientY);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[Q]._onDragOver(n)}}},Jt=function(t){st&&st.parentNode[Q]._isOutsideThisEl(t.target)};function $t(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[Q]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ut(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==$t.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in it.initializePlugins(this,t,n),n)!(i in e)&&(e[i]=n[i]);for(var r in Xt(e),this)"_"===r.charAt(0)&&"function"===typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Ht,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?C(t,"pointerdown",this._onTapStart):(C(t,"mousedown",this._onTapStart),C(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(t,"dragover",this),C(t,"dragenter",this)),Lt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,J())}function te(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function ee(t,e,n,i,r,o,a,s){var l,c,u=t[Q],h=u.options.onMove;return!window.CustomEvent||g||m?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=i,l.related=r||e,l.relatedRect=o||D(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),h&&(c=h.call(u,l,a)),c}function ne(t){t.draggable=!1}function ie(){Nt=!1}function re(t,e,n){var i=D(N(n.el,n.options.draggable)),r=10;return e?t.clientX>i.right+r||t.clientX<=i.right&&t.clientY>i.bottom&&t.clientX>=i.left:t.clientX>i.right&&t.clientY>i.top||t.clientX<=i.right&&t.clientY>i.bottom+r}function oe(t,e,n,i,r,o,a,s){var l=i?t.clientY:t.clientX,c=i?n.height:n.width,u=i?n.top:n.left,h=i?n.bottom:n.right,d=!1;if(!a)if(s&&Tt<c*r){if(!Dt&&(1===Et?l>u+c*o/2:l<h-c*o/2)&&(Dt=!0),Dt)d=!0;else if(1===Et?l<u+Tt:l>h-Tt)return-Et}else if(l>u+c*(1-r)/2&&l<h-c*(1-r)/2)return ae(e);return d=d||a,d&&(l<u+c*o/2||l>h-c*o/2)?l>u+c/2?1:-1:0}function ae(t){return F(st)<F(t)?1:-1}function se(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;while(n--)i+=e.charCodeAt(n);return i.toString(36)}function le(t){Ft.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var i=e[n];i.checked&&Ft.push(i)}}function ce(t){return setTimeout(t,0)}function ue(t){return clearTimeout(t)}$t.prototype={constructor:$t,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(kt=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,st):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,i=this.options,r=i.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,c=i.filter;if(le(n),!st&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||i.disabled)&&!l.isContentEditable&&(s=M(s,i.draggable,n,!1),(!s||!s.animated)&&dt!==s)){if(gt=F(s),vt=F(s,i.draggable),"function"===typeof c){if(c.call(this,t,s,this))return at({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),ot("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=M(l,i.trim(),n,!1),i)return at({sortable:e,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),ot("filter",e,{evt:t}),!0})),c))return void(r&&t.cancelable&&t.preventDefault());i.handle&&!M(l,i.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var i,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(n&&!st&&n.parentNode===o){var l=D(n);if(ut=o,st=n,lt=st.parentNode,ht=st.nextSibling,dt=n,bt=a.group,$t.dragged=st,wt={target:st,clientX:(e||t).clientX,clientY:(e||t).clientY},It=wt.clientX-l.left,St=wt.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,st.style["will-change"]="all",i=function(){ot("delayEnded",r,{evt:t}),$t.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!v&&r.nativeDraggable&&(st.draggable=!0),r._triggerDragStart(t,e),at({sortable:r,name:"choose",originalEvent:t}),T(st,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){j(st,t.trim(),ne)})),C(s,"dragover",Qt),C(s,"mousemove",Qt),C(s,"touchmove",Qt),C(s,"mouseup",r._onDrop),C(s,"touchend",r._onDrop),C(s,"touchcancel",r._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,st.draggable=!0),ot("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(m||g))i();else{if($t.eventCanceled)return void this._onDrop();C(s,"mouseup",r._disableDelayedDrag),C(s,"touchend",r._disableDelayedDrag),C(s,"touchcancel",r._disableDelayedDrag),C(s,"mousemove",r._delayedDragTouchMoveHandler),C(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&C(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){st&&ne(st),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;A(t,"mouseup",this._disableDelayedDrag),A(t,"touchend",this._disableDelayedDrag),A(t,"touchcancel",this._disableDelayedDrag),A(t,"mousemove",this._delayedDragTouchMoveHandler),A(t,"touchmove",this._delayedDragTouchMoveHandler),A(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):C(document,e?"touchmove":"mousemove",this._onTouchMove):(C(st,"dragend",this),C(ut,"dragstart",this._onDragStart));try{document.selection?ce((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(Pt=!1,ut&&st){ot("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",Jt);var n=this.options;!t&&T(st,n.dragClass,!1),T(st,n.ghostClass,!0),$t.active=this,t&&this._appendGhost(),at({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(_t){this._lastX=_t.clientX,this._lastY=_t.clientY,qt();var t=document.elementFromPoint(_t.clientX,_t.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(_t.clientX,_t.clientY),t===e)break;e=t}if(st.parentNode[Q]._isOutsideThisEl(t),e)do{if(e[Q]){var n=void 0;if(n=e[Q]._onDragOver({clientX:_t.clientX,clientY:_t.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Kt()}},_onTouchMove:function(t){if(wt){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,o=ct&&P(ct,!0),a=ct&&o&&o.a,s=ct&&o&&o.d,l=Vt&&Ot&&z(Ot),c=(r.clientX-wt.clientX+i.x)/(a||1)+(l?l[0]-Bt[0]:0)/(a||1),u=(r.clientY-wt.clientY+i.y)/(s||1)+(l?l[1]-Bt[1]:0)/(s||1);if(!$t.active&&!Pt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(ct){o?(o.e+=c-(Ct||0),o.f+=u-(At||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var h="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");O(ct,"webkitTransform",h),O(ct,"mozTransform",h),O(ct,"msTransform",h),O(ct,"transform",h),Ct=c,At=u,_t=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ct){var t=this.options.fallbackOnBody?document.body:ut,e=D(st,!0,Vt,!0,t),n=this.options;if(Vt){Ot=t;while("static"===O(Ot,"position")&&"none"===O(Ot,"transform")&&Ot!==document)Ot=Ot.parentNode;Ot!==document.body&&Ot!==document.documentElement?(Ot===document&&(Ot=L()),e.top+=Ot.scrollTop,e.left+=Ot.scrollLeft):Ot=L(),Bt=z(Ot)}ct=st.cloneNode(!0),T(ct,n.ghostClass,!1),T(ct,n.fallbackClass,!0),T(ct,n.dragClass,!0),O(ct,"transition",""),O(ct,"transform",""),O(ct,"box-sizing","border-box"),O(ct,"margin",0),O(ct,"top",e.top),O(ct,"left",e.left),O(ct,"width",e.width),O(ct,"height",e.height),O(ct,"opacity","0.8"),O(ct,"position",Vt?"absolute":"fixed"),O(ct,"zIndex","100000"),O(ct,"pointerEvents","none"),$t.ghost=ct,t.appendChild(ct),O(ct,"transform-origin",It/parseInt(ct.style.width)*100+"% "+St/parseInt(ct.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,r=n.options;ot("dragStart",this,{evt:t}),$t.eventCanceled?this._onDrop():(ot("setupClone",this),$t.eventCanceled||(pt=X(st),pt.draggable=!1,pt.style["will-change"]="",this._hideClone(),T(pt,this.options.chosenClass,!1),$t.clone=pt),n.cloneId=ce((function(){ot("clone",n),$t.eventCanceled||(n.options.removeCloneOnHide||ut.insertBefore(pt,st),n._hideClone(),at({sortable:n,name:"clone"}))})),!e&&T(st,r.dragClass,!0),e?(jt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(A(document,"mouseup",n._onDrop),A(document,"touchend",n._onDrop),A(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,st)),C(document,"drop",n),O(st,"transform","translateZ(0)")),Pt=!0,n._dragStartId=ce(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Mt=!0,y&&O(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,i,r,o=this.el,s=t.target,l=this.options,c=l.group,u=$t.active,h=bt===c,d=l.sort,p=xt||u,f=this,g=!1;if(!Nt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=M(s,l.draggable,o,!0),P("dragOver"),$t.eventCanceled)return g;if(st.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||f._ignoreWhileAnimating===s)return L(!1);if(jt=!1,u&&!l.disabled&&(h?d||(i=!ut.contains(st)):xt===this||(this.lastPutMode=bt.checkPull(this,u,st,t))&&c.checkPut(this,u,st,t))){if(r="vertical"===this._getDirection(t,s),e=D(st),P("dragOverValid"),$t.eventCanceled)return g;if(i)return lt=ut,j(),this._hideClone(),P("revert"),$t.eventCanceled||(ht?ut.insertBefore(st,ht):ut.appendChild(st)),L(!0);var m=N(o,l.draggable);if(!m||re(t,r,this)&&!m.animated){if(m===st)return L(!1);if(m&&o===t.target&&(s=m),s&&(n=D(s)),!1!==ee(ut,o,st,e,s,n,t,!!s))return j(),o.appendChild(st),lt=o,B(),L(!0)}else if(s.parentNode===o){n=D(s);var v,y,b=0,x=st.parentNode!==o,w=!Zt(st.animated&&st.toRect||e,s.animated&&s.toRect||n,r),_=r?"top":"left",C=R(s,"top","top")||R(st,"top","top"),A=C?C.scrollTop:void 0;if(kt!==s&&(v=n[_],Dt=!1,Rt=!w&&l.invertSwap||x),b=oe(t,s,n,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Rt,kt===s),0!==b){var I=F(st);do{I-=b,y=lt.children[I]}while(y&&("none"===O(y,"display")||y===ct))}if(0===b||y===s)return L(!1);kt=s,Et=b;var S=s.nextElementSibling,k=!1;k=1===b;var E=ee(ut,o,st,e,s,n,t,k);if(!1!==E)return 1!==E&&-1!==E||(k=1===E),Nt=!0,setTimeout(ie,30),j(),k&&!S?o.appendChild(st):s.parentNode.insertBefore(st,k?S:s),C&&Y(C,0,A-C.scrollTop),lt=st.parentNode,void 0===v||Rt||(Tt=Math.abs(v-D(s)[_])),B(),L(!0)}if(o.contains(st))return L(!1)}return!1}function P(l,c){ot(l,f,a({evt:t,isOwner:h,axis:r?"vertical":"horizontal",revert:i,dragRect:e,targetRect:n,canSort:d,fromSortable:p,target:s,completed:L,onMove:function(n,i){return ee(ut,o,st,e,n,D(n),t,i)},changed:B},c))}function j(){P("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function L(e){return P("dragOverCompleted",{insertion:e}),e&&(h?u._hideClone():u._showClone(f),f!==p&&(T(st,xt?xt.options.ghostClass:u.options.ghostClass,!1),T(st,l.ghostClass,!0)),xt!==f&&f!==$t.active?xt=f:f===$t.active&&xt&&(xt=null),p===f&&(f._ignoreWhileAnimating=s),f.animateAll((function(){P("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===st&&!st.animated||s===o&&!s.animated)&&(kt=null),l.dragoverBubble||t.rootEl||s===document||(st.parentNode[Q]._isOutsideThisEl(t.target),!e&&Qt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function B(){mt=F(st),yt=F(st,l.draggable),at({sortable:f,name:"change",toEl:o,newIndex:mt,newDraggableIndex:yt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){A(document,"mousemove",this._onTouchMove),A(document,"touchmove",this._onTouchMove),A(document,"pointermove",this._onTouchMove),A(document,"dragover",Qt),A(document,"mousemove",Qt),A(document,"touchmove",Qt)},_offUpEvents:function(){var t=this.el.ownerDocument;A(t,"mouseup",this._onDrop),A(t,"touchend",this._onDrop),A(t,"pointerup",this._onDrop),A(t,"touchcancel",this._onDrop),A(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;mt=F(st),yt=F(st,n.draggable),ot("drop",this,{evt:t}),lt=st&&st.parentNode,mt=F(st),yt=F(st,n.draggable),$t.eventCanceled?this._nulling():(Pt=!1,Rt=!1,Dt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ue(this.cloneId),ue(this._dragStartId),this.nativeDraggable&&(A(document,"drop",this),A(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&O(document.body,"user-select",""),O(st,"transform",""),t&&(Mt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),ct&&ct.parentNode&&ct.parentNode.removeChild(ct),(ut===lt||xt&&"clone"!==xt.lastPutMode)&&pt&&pt.parentNode&&pt.parentNode.removeChild(pt),st&&(this.nativeDraggable&&A(st,"dragend",this),ne(st),st.style["will-change"]="",Mt&&!Pt&&T(st,xt?xt.options.ghostClass:this.options.ghostClass,!1),T(st,this.options.chosenClass,!1),at({sortable:this,name:"unchoose",toEl:lt,newIndex:null,newDraggableIndex:null,originalEvent:t}),ut!==lt?(mt>=0&&(at({rootEl:lt,name:"add",toEl:lt,fromEl:ut,originalEvent:t}),at({sortable:this,name:"remove",toEl:lt,originalEvent:t}),at({rootEl:lt,name:"sort",toEl:lt,fromEl:ut,originalEvent:t}),at({sortable:this,name:"sort",toEl:lt,originalEvent:t})),xt&&xt.save()):mt!==gt&&mt>=0&&(at({sortable:this,name:"update",toEl:lt,originalEvent:t}),at({sortable:this,name:"sort",toEl:lt,originalEvent:t})),$t.active&&(null!=mt&&-1!==mt||(mt=gt,yt=vt),at({sortable:this,name:"end",toEl:lt,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){ot("nulling",this),ut=st=lt=ct=ht=pt=dt=ft=wt=_t=Mt=mt=yt=gt=vt=kt=Et=xt=bt=$t.dragged=$t.ghost=$t.clone=$t.active=null,Ft.forEach((function(t){t.checked=!0})),Ft.length=Ct=At=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":st&&(this._onDragOver(t),te(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)t=n[i],M(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||se(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,i){var r=n.children[i];M(r,this.options.draggable,n,!1)&&(e[t]=r)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return M(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var i=it.modifyOption(this,t,e);n[t]="undefined"!==typeof i?i:e,"group"===t&&Xt(n)},destroy:function(){ot("destroy",this);var t=this.el;t[Q]=null,A(t,"mousedown",this._onTapStart),A(t,"touchstart",this._onTapStart),A(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(A(t,"dragover",this),A(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Lt.splice(Lt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ft){if(ot("hideClone",this),$t.eventCanceled)return;O(pt,"display","none"),this.options.removeCloneOnHide&&pt.parentNode&&pt.parentNode.removeChild(pt),ft=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ft){if(ot("showClone",this),$t.eventCanceled)return;ut.contains(st)&&!this.options.group.revertClone?ut.insertBefore(pt,st):ht?ut.insertBefore(pt,ht):ut.appendChild(pt),this.options.group.revertClone&&this.animate(st,pt),O(pt,"display",""),ft=!1}}else this._hideClone()}},zt&&C(document,"touchmove",(function(t){($t.active||Pt)&&t.cancelable&&t.preventDefault()})),$t.utils={on:C,off:A,css:O,find:j,is:function(t,e){return!!M(t,e,t,!1)},extend:H,throttle:U,closest:M,toggleClass:T,clone:X,index:F,nextTick:ce,cancelNextTick:ue,detectDirection:Ut,getChild:B},$t.get=function(t){return t[Q]},$t.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&($t.utils=a({},$t.utils,t.utils)),it.mount(t)}))},$t.create=function(t,e){return new $t(t,e)},$t.version=p;var he,de,pe,fe,ge,me,ve=[],ye=!1;function be(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):e.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):(A(document,"pointermove",this._handleFallbackAutoScroll),A(document,"touchmove",this._handleFallbackAutoScroll),A(document,"mousemove",this._handleFallbackAutoScroll)),we(),xe(),Z()},nulling:function(){ge=de=he=ye=me=pe=fe=null,ve.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(i,r);if(ge=t,e||m||g||y){Ce(t,this.options,o,e);var a=G(o,!0);!ye||me&&i===pe&&r===fe||(me&&we(),me=setInterval((function(){var o=G(document.elementFromPoint(i,r),!0);o!==a&&(a=o,xe()),Ce(t,n.options,o,e)}),10),pe=i,fe=r)}else{if(!this.options.bubbleScroll||G(o,!0)===L())return void xe();Ce(t,this.options,G(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}function xe(){ve.forEach((function(t){clearInterval(t.pid)})),ve=[]}function we(){clearInterval(me)}var _e,Ce=U((function(t,e,n,i){if(e.scroll){var r,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,c=L(),u=!1;de!==n&&(de=n,xe(),he=e.scroll,r=e.scrollFn,!0===he&&(he=G(n,!0)));var h=0,d=he;do{var p=d,f=D(p),g=f.top,m=f.bottom,v=f.left,y=f.right,b=f.width,x=f.height,w=void 0,_=void 0,C=p.scrollWidth,A=p.scrollHeight,I=O(p),S=p.scrollLeft,M=p.scrollTop;p===c?(w=b<C&&("auto"===I.overflowX||"scroll"===I.overflowX||"visible"===I.overflowX),_=x<A&&("auto"===I.overflowY||"scroll"===I.overflowY||"visible"===I.overflowY)):(w=b<C&&("auto"===I.overflowX||"scroll"===I.overflowX),_=x<A&&("auto"===I.overflowY||"scroll"===I.overflowY));var k=w&&(Math.abs(y-o)<=s&&S+b<C)-(Math.abs(v-o)<=s&&!!S),E=_&&(Math.abs(m-a)<=s&&M+x<A)-(Math.abs(g-a)<=s&&!!M);if(!ve[h])for(var T=0;T<=h;T++)ve[T]||(ve[T]={});ve[h].vx==k&&ve[h].vy==E&&ve[h].el===p||(ve[h].el=p,ve[h].vx=k,ve[h].vy=E,clearInterval(ve[h].pid),0==k&&0==E||(u=!0,ve[h].pid=setInterval(function(){i&&0===this.layer&&$t.active._onTouchMove(ge);var e=ve[this.layer].vy?ve[this.layer].vy*l:0,n=ve[this.layer].vx?ve[this.layer].vx*l:0;"function"===typeof r&&"continue"!==r.call($t.dragged.parentNode[Q],n,e,t,ge,ve[this.layer].el)||Y(ve[this.layer].el,n,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&d!==c&&(d=G(d,!1)));ye=u}}),30),Ae=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,r=t.activeSortable,o=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function Ie(){}function Se(){}function Me(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;_e=e},dragOverValid:function(t){var e=t.completed,n=t.target,i=t.onMove,r=t.activeSortable,o=t.changed,a=t.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=_e;!1!==i(n)?(T(n,l.swapClass,!0),_e=n):_e=null,c&&c!==_e&&T(c,l.swapClass,!1)}o(),e(!0),a()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,i=t.dragEl,r=n||this.sortable,o=this.options;_e&&T(_e,o.swapClass,!1),_e&&(o.swap||n&&n.options.swap)&&i!==_e&&(r.captureAnimationState(),r!==e&&e.captureAnimationState(),ke(i,_e),r.animateAll(),r!==e&&e.animateAll())},nulling:function(){_e=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:_e}}})}function ke(t,e){var n,i,r=t.parentNode,o=e.parentNode;r&&o&&!r.isEqualNode(e)&&!o.isEqualNode(t)&&(n=F(t),i=F(e),r.isEqualNode(o)&&n<i&&i++,r.insertBefore(e,r.children[n]),o.insertBefore(t,o.children[i]))}Ie.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=B(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:Ae},o(Ie,{pluginName:"revertOnSpill"}),Se.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,i=n||this.sortable;i.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),i.animateAll()},drop:Ae},o(Se,{pluginName:"removeOnSpill"});var Ee,Te,Oe,Pe,je,Le=[],De=[],Re=!1,Be=!1,Ne=!1;function Fe(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?C(document,"pointerup",this._deselectMultiDrag):(C(document,"mouseup",this._deselectMultiDrag),C(document,"touchend",this._deselectMultiDrag)),C(document,"keydown",this._checkKeyDown),C(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var i="";Le.length&&Te===t?Le.forEach((function(t,e){i+=(e?", ":"")+t.textContent})):i=n.textContent,e.setData("Text",i)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;Oe=e},delayEnded:function(){this.isMultiDrag=~Le.indexOf(Oe)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var i=0;i<Le.length;i++)De.push(X(Le[i])),De[i].sortableIndex=Le[i].sortableIndex,De[i].draggable=!1,De[i].style["will-change"]="",T(De[i],this.options.selectedClass,!1),Le[i]===Oe&&T(De[i],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,i=t.dispatchSortableEvent,r=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Le.length&&Te===e&&(Ve(!0,n),i("clone"),r()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,i=t.cancel;this.isMultiDrag&&(Ve(!1,n),De.forEach((function(t){O(t,"display","")})),e(),je=!1,i())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),i=t.cancel;this.isMultiDrag&&(De.forEach((function(t){O(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),je=!0,i())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&Te&&Te.multiDrag._deselectMultiDrag(),Le.forEach((function(t){t.sortableIndex=F(t)})),Le=Le.sort((function(t,e){return t.sortableIndex-e.sortableIndex})),Ne=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Le.forEach((function(t){t!==Oe&&O(t,"position","absolute")}));var i=D(Oe,!1,!0,!0);Le.forEach((function(t){t!==Oe&&q(t,i)})),Be=!0,Re=!0}n.animateAll((function(){Be=!1,Re=!1,e.options.animation&&Le.forEach((function(t){K(t)})),e.options.sort&&Ge()}))}},dragOver:function(t){var e=t.target,n=t.completed,i=t.cancel;Be&&~Le.indexOf(e)&&(n(!1),i())},revert:function(t){var e=t.fromSortable,n=t.rootEl,i=t.sortable,r=t.dragRect;Le.length>1&&(Le.forEach((function(t){i.addAnimationState({target:t,rect:Be?D(t):r}),K(t),t.fromRect=r,e.removeAnimationState(t)})),Be=!1,ze(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,i=t.insertion,r=t.activeSortable,o=t.parentEl,a=t.putSortable,s=this.options;if(i){if(n&&r._hideClone(),Re=!1,s.animation&&Le.length>1&&(Be||!n&&!r.options.sort&&!a)){var l=D(Oe,!1,!0,!0);Le.forEach((function(t){t!==Oe&&(q(t,l),o.appendChild(t))})),Be=!0}if(!n)if(Be||Ge(),Le.length>1){var c=je;r._showClone(e),r.options.animation&&!je&&c&&De.forEach((function(t){r.addAnimationState({target:t,rect:Pe}),t.fromRect=Pe,t.thisAnimationDuration=null}))}else r._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,i=t.activeSortable;if(Le.forEach((function(t){t.thisAnimationDuration=null})),i.options.animation&&!n&&i.multiDrag.isMultiDrag){Pe=o({},e);var r=P(Oe,!0);Pe.top-=r.f,Pe.left-=r.e}},dragOverAnimationComplete:function(){Be&&(Be=!1,Ge())},drop:function(t){var e=t.originalEvent,n=t.rootEl,i=t.parentEl,r=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var c=this.options,u=i.children;if(!Ne)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),T(Oe,c.selectedClass,!~Le.indexOf(Oe)),~Le.indexOf(Oe))Le.splice(Le.indexOf(Oe),1),Ee=null,rt({sortable:r,rootEl:n,name:"deselect",targetEl:Oe,originalEvt:e});else{if(Le.push(Oe),rt({sortable:r,rootEl:n,name:"select",targetEl:Oe,originalEvt:e}),e.shiftKey&&Ee&&r.el.contains(Ee)){var h,d,p=F(Ee),f=F(Oe);if(~p&&~f&&p!==f)for(f>p?(d=p,h=f):(d=f,h=p+1);d<h;d++)~Le.indexOf(u[d])||(T(u[d],c.selectedClass,!0),Le.push(u[d]),rt({sortable:r,rootEl:n,name:"select",targetEl:u[d],originalEvt:e}))}else Ee=Oe;Te=l}if(Ne&&this.isMultiDrag){if((i[Q].options.sort||i!==n)&&Le.length>1){var g=D(Oe),m=F(Oe,":not(."+this.options.selectedClass+")");if(!Re&&c.animation&&(Oe.thisAnimationDuration=null),l.captureAnimationState(),!Re&&(c.animation&&(Oe.fromRect=g,Le.forEach((function(t){if(t.thisAnimationDuration=null,t!==Oe){var e=Be?D(t):g;t.fromRect=e,l.addAnimationState({target:t,rect:e})}}))),Ge(),Le.forEach((function(t){u[m]?i.insertBefore(t,u[m]):i.appendChild(t),m++})),a===F(Oe))){var v=!1;Le.forEach((function(t){t.sortableIndex===F(t)||(v=!0)})),v&&o("update")}Le.forEach((function(t){K(t)})),l.animateAll()}Te=l}(n===i||s&&"clone"!==s.lastPutMode)&&De.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=Ne=!1,De.length=0},destroyGlobal:function(){this._deselectMultiDrag(),A(document,"pointerup",this._deselectMultiDrag),A(document,"mouseup",this._deselectMultiDrag),A(document,"touchend",this._deselectMultiDrag),A(document,"keydown",this._checkKeyDown),A(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(("undefined"===typeof Ne||!Ne)&&Te===this.sortable&&(!t||!M(t.target,this.options.draggable,this.sortable.el,!1))&&(!t||0===t.button))while(Le.length){var e=Le[0];T(e,this.options.selectedClass,!1),Le.shift(),rt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[Q];e&&e.options.multiDrag&&!~Le.indexOf(t)&&(Te&&Te!==e&&(Te.multiDrag._deselectMultiDrag(),Te=e),T(t,e.options.selectedClass,!0),Le.push(t))},deselect:function(t){var e=t.parentNode[Q],n=Le.indexOf(t);e&&e.options.multiDrag&&~n&&(T(t,e.options.selectedClass,!1),Le.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return Le.forEach((function(i){var r;e.push({multiDragElement:i,index:i.sortableIndex}),r=Be&&i!==Oe?-1:Be?F(i,":not(."+t.options.selectedClass+")"):F(i),n.push({multiDragElement:i,index:r})})),{items:c(Le),clones:[].concat(De),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),"ctrl"===t?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ze(t,e){Le.forEach((function(n,i){var r=e.children[n.sortableIndex+(t?Number(i):0)];r?e.insertBefore(n,r):e.appendChild(n)}))}function Ve(t,e){De.forEach((function(n,i){var r=e.children[n.sortableIndex+(t?Number(i):0)];r?e.insertBefore(n,r):e.appendChild(n)}))}function Ge(){Le.forEach((function(t){t!==Oe&&t.parentNode&&t.parentNode.removeChild(t)}))}$t.mount(new be),$t.mount(Se,Ie),e["default"]=$t},ab70:function(t,e,n){"use strict";n.r(e),n.d(e,"LuminosityHighPassShader",(function(){return r}));var i=n("5a89");const r={shaderID:"luminosityHighPass",uniforms:{tDiffuse:{value:null},luminosityThreshold:{value:1},smoothWidth:{value:1},defaultColor:{value:new i["Color"](0)},defaultOpacity:{value:0}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform vec3 defaultColor;\n\t\tuniform float defaultOpacity;\n\t\tuniform float luminosityThreshold;\n\t\tuniform float smoothWidth;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\n\t\t\tvec3 luma = vec3( 0.299, 0.587, 0.114 );\n\n\t\t\tfloat v = dot( texel.xyz, luma );\n\n\t\t\tvec4 outputColor = vec4( defaultColor.rgb, defaultOpacity );\n\n\t\t\tfloat alpha = smoothstep( luminosityThreshold, luminosityThreshold + smoothWidth, v );\n\n\t\t\tgl_FragColor = mix( outputColor, texel, alpha );\n\n\t\t}"}},ace4:function(t,e,n){"use strict";var i=n("23e7"),r=n("4625"),o=n("d039"),a=n("621a"),s=n("825a"),l=n("23cb"),c=n("50c4"),u=n("4840"),h=a.ArrayBuffer,d=a.DataView,p=d.prototype,f=r(h.prototype.slice),g=r(p.getUint8),m=r(p.setUint8),v=o((function(){return!new h(2).slice(1,void 0).byteLength}));i({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:v},{slice:function(t,e){if(f&&void 0===e)return f(s(this),t);var n=s(this).byteLength,i=l(t,n),r=l(void 0===e?n:e,n),o=new(u(this,h))(c(r-i)),a=new d(this),p=new d(o),v=0;while(i<r)m(p,v++,g(a,i++));return o}})},ae34:function(t,e,n){var i=n("8753");function r(t,e){t=i.trimRight(t),";"!==t[t.length-1]&&(t+=";");var n=t.length,r=!1,o=0,a=0,s="";function l(){if(!r){var n=i.trim(t.slice(o,a)),l=n.indexOf(":");if(-1!==l){var c=i.trim(n.slice(0,l)),u=i.trim(n.slice(l+1));if(c){var h=e(o,s.length,c,u,n);h&&(s+=h+"; ")}}}o=a+1}for(;a<n;a++){var c=t[a];if("/"===c&&"*"===t[a+1]){var u=t.indexOf("*/",a+2);if(-1===u)break;a=u+1,o=a+1,r=!1}else"("===c?r=!0:")"===c?r=!1:";"===c?r||l():"\n"===c&&l()}return i.trim(s)}t.exports=r},ae57:function(t,e,n){"use strict";var i=n("843d"),r=n.n(i);r.a},aea1:function(t,e,n){"use strict";n.r(e),n.d(e,"CSS2DObject",(function(){return r})),n.d(e,"CSS2DRenderer",(function(){return u}));var i=n("5a89");class r extends i["Object3D"]{constructor(t=document.createElement("div")){super(),this.element=t,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.addEventListener("removed",(function(){this.traverse((function(t){t.element instanceof Element&&null!==t.element.parentNode&&t.element.parentNode.removeChild(t.element)}))}))}copy(t,e){return super.copy(t,e),this.element=t.element.cloneNode(!0),this}}r.prototype.isCSS2DObject=!0;const o=new i["Vector3"],a=new i["Matrix4"],s=new i["Matrix4"],l=new i["Vector3"],c=new i["Vector3"];class u{constructor(t={}){const e=this;let n,i,r,u;const h={objects:new WeakMap},d=void 0!==t.element?t.element:document.createElement("div");function p(t,n,i){if(t.isCSS2DObject){t.onBeforeRender(e,n,i),o.setFromMatrixPosition(t.matrixWorld),o.applyMatrix4(s);const a=t.element;/apple/i.test(navigator.vendor)?a.style.transform="translate(-50%,-50%) translate("+Math.round(o.x*r+r)+"px,"+Math.round(-o.y*u+u)+"px)":a.style.transform="translate(-50%,-50%) translate("+(o.x*r+r)+"px,"+(-o.y*u+u)+"px)",a.style.display=t.visible&&o.z>=-1&&o.z<=1?"":"none";const l={distanceToCameraSquared:f(i,t)};h.objects.set(t,l),a.parentNode!==d&&d.appendChild(a),t.onAfterRender(e,n,i)}for(let e=0,r=t.children.length;e<r;e++)p(t.children[e],n,i)}function f(t,e){return l.setFromMatrixPosition(t.matrixWorld),c.setFromMatrixPosition(e.matrixWorld),l.distanceToSquared(c)}function g(t){const e=[];return t.traverse((function(t){t.isCSS2DObject&&e.push(t)})),e}function m(t){const e=g(t).sort((function(t,e){const n=h.objects.get(t).distanceToCameraSquared,i=h.objects.get(e).distanceToCameraSquared;return n-i})),n=e.length;for(let i=0,r=e.length;i<r;i++)e[i].element.style.zIndex=n-i}d.style.overflow="hidden",this.domElement=d,this.getSize=function(){return{width:n,height:i}},this.render=function(t,e){!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),a.copy(e.matrixWorldInverse),s.multiplyMatrices(e.projectionMatrix,a),p(t,t,e),m(t)},this.setSize=function(t,e){n=t,i=e,r=n/2,u=i/2,d.style.width=t+"px",d.style.height=e+"px"}}}},af40:function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return p}));var i=n("7326"),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var n=t.match(s);Object(i["c"])(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function c(t,e,n){var i,o,a=r.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),c=a[2],u=e.getBBox();s>=0&&s<.5*Math.PI?(i={x:u.minX,y:u.minY},o={x:u.maxX,y:u.maxY}):.5*Math.PI<=s&&s<Math.PI?(i={x:u.maxX,y:u.minY},o={x:u.minX,y:u.maxY}):Math.PI<=s&&s<1.5*Math.PI?(i={x:u.maxX,y:u.maxY},o={x:u.minX,y:u.minY}):(i={x:u.minX,y:u.maxY},o={x:u.maxX,y:u.minY});var h=Math.tan(s),d=h*h,p=(o.x-i.x+h*(o.y-i.y))/(d+1)+i.x,f=h*(o.x-i.x+h*(o.y-i.y))/(d+1)+i.y,g=t.createLinearGradient(i.x,i.y,p,f);return l(c,g),g}function u(t,e,n){var i=o.exec(n),r=parseFloat(i[1]),a=parseFloat(i[2]),c=parseFloat(i[3]),u=i[4];if(0===c){var h=u.match(s);return h[h.length-1].split(":")[1]}var d=e.getBBox(),p=d.maxX-d.minX,f=d.maxY-d.minY,g=Math.sqrt(p*p+f*f)/2,m=t.createRadialGradient(d.minX+p*r,d.minY+f*a,0,d.minX+p/2,d.minY+f/2,c*g);return l(u,m),m}function h(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var i,r,o=a.exec(n),s=o[1],l=o[2];function c(){i=t.createPattern(r,s),e.set("pattern",i),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return r=new Image,l.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=l,r.complete?c():(r.onload=c,r.src=r.src),i}function d(t,e,n){if(Object(i["k"])(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return c(t,e,n);if("r"===n[0])return u(t,e,n);if("p"===n[0])return h(t,e,n)}return n}}function p(t){var e=0,n=0,r=0,o=0;return Object(i["g"])(t)?1===t.length?e=n=r=o=t[0]:2===t.length?(e=r=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],o=t[3]):e=n=r=o=t,[e,n,r,o]}},af7f:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("20a4");function r(t,...e){return e.reduce((e,n)=>{return t.hasOwnProperty(n)&&(e[n]=t[n]),e},{})}const o=i["a"].setTimeout,a=i["a"].clearTimeout;function s(t,e){e.useNativeTimers?(t.setTimeoutFn=o.bind(i["a"]),t.clearTimeoutFn=a.bind(i["a"])):(t.setTimeoutFn=i["a"].setTimeout.bind(i["a"]),t.clearTimeoutFn=i["a"].clearTimeout.bind(i["a"]))}const l=1.33;function c(t){return"string"===typeof t?u(t):Math.ceil((t.byteLength||t.size)*l)}function u(t){let e=0,n=0;for(let i=0,r=t.length;i<r;i++)e=t.charCodeAt(i),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(i++,n+=4);return n}},b007:function(t,e,n){"use strict";function i(t){if(t)return r(t)}function r(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}n.d(e,"a",(function(){return i})),i.prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},i.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r<i.length;r++)if(n=i[r],n===e||n.fn===e){i.splice(r,1);break}return 0===i.length&&delete this._callbacks["$"+t],this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(n){n=n.slice(0);i=0;for(var r=n.length;i<r;++i)n[i].apply(this,e)}return this},i.prototype.emitReserved=i.prototype.emit,i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}},b09b:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAACkxJREFUaEOtWs1v3NYR/w3JXe6XVqvVSrYkCLbjAmmLurVTpIGDFCiQSy5Nc+pfkGt88aU36RLk0gBB7rnnlFPRHIuiQFErQWzVSIugsGNFlmXrYyWt9ovLjyneI7l85JLLlVsCsrnLxzfzezPzm3nzlqBcf3/EN3QDd5n5bWasEFhXn6v3rHwgAMnP4eOs7/3n0ZvxcckZw9loQIRHzPyFrWmf/PoKnYyfhDdbO3yHmT9mZiNL+ej7LEF5b2YqmFiKWebBPnnOu29cL34dLgm2dvj3zPw5MwtJsZVSpyQiMKtrN13gRcfnLVRyPiI6cHV67c112qM//4fNZoEfg3k1S62UCWKAZlV41nFJPabJJ9I+e+MqvU9b3/M7TPxl2koTAWkGyAM29tsMC87+fr58IuroV6hFW0/cu8z4o+9RcdcRQDKjOHBBdQHk+OBSFyD6Pm/+vOcTtpKeoWvadbr3vbsBos1JjYNYiNFJXpDnPVcUmTqvMs8s8g3tJt3bcTfASSAqqU0j2syoSjHlNJKYlc0yxgkgX+3whsfeZoydQIpHTSpA8nleJklTPK7I5DwhZ15QfmgRAm2GesUVjCaOuV5WEOcAzFRcsoov66XkJy0yjtVk0Ec0FKddmZnH4a3c+9/7urF/owwVgKK3Isu9rHzDIOFa7gbLGAnzYEpRkcZeSVpSPotbT/yjYiBA01QIcWf+X+QbvkXcDRaulcWbsUSiJn4FsMK7nsfwPA+uxzg5Bx7s6Lh11UWjBkGT0DWSgGJ5axpvzyA/AMIbDM4GMiWRSEOplgDgugzHdTGyXfz1X0W86OhYrrv4zU9tFAsaDF2A0UTKknlr4ppIQNllZyh/bBGANrOrV9WH09gqUsULQAwsG8/ajH88qvpRwsDtH/Ww2tRQNg0Yug5Nqat9EoiueOTlyzd0GSO8AfCmyhZZnpyVNXxlGY7jYWg76PZG2HpcwsmgOH5loTLCr64NMVctwiwYMAxhlaygT7HUFOG6CiSnFkmZJr6GIiZs20VvMMLesYMHe/U4VYFxc7WDtZaBarmIQkGX8TKN9aYtnKqvrgcJkYg3J4vDKb6ZKCalNVwPg6GDTtfC/d0SzixzrEeobr1k4db6EPM1EyXTkLEimSy1OJ1dfsIiio9mVL2hCwkRQnnJsPJ/lsHdG9jYbzv492EjYY0oa/ykdYqVRWGVAooFXbqX/JOx74NSXS5G0hl6jYEIi6Syb/glAT6t+koLNxL3jssY2ozuEOgMgE6f0e4bGLqFTK8wdRvNioP5CqFeAmploFykMS37Fgo+hzGUksdUD5JAvt7lDwB8COa5VOly1QHX86T7tLuMR4e6VL5va3C9SWqYfQ/pS9Q1RqXgoWYCryx7WKzBp2ldzB0rCZLprk1EbY/xnhz1F2Zj/il+x8yfMjCxUxQWcB0Plu3g4Z6O/bPsFZ8eoPlPV+dt/GzNlcymG34CTV5EtE2MO7fW8TcikusWG3XvCV/TdXwF5kX1Zdf1ZAwMhjaOz218d1iFzf9/MEXNxqutHppzBVQEsxm6tEri+nbYp9tv/ZjOY/GTHPXNLv/BY/4oRCnghkC6/RFOz4c4PLVw5LTAWsRM+Ws9fQR5Flr6EZYaJhr1EmqVIorCKgkgxPTbX16hP01YKfnF1g/8ug7eilnE8zAa+ax00hng6KQvwbjVNRjFyswYwtgJ1zj87I760HtP0WqUsLRQwUK9jKoEEuWaoIBmi6j65joNcoHc/4Ff98BbasBKhnKEazno9CwcnfZxeNJD+8xCafEqiuXazGCSA0fDLoZHT9CcN7G0UEWrUUG9ZqJcCkqZeMU8OxDhWgz+SC1+/ITHsB1PZm7hXu3THg5P+mh3LNQvv4JSZS5WL82CzOqfo/P8MZp1AaKCZqOCxlxJxkfR0CVzqXWl7L54yHet7Sd8zVGDXanaBXMJ+hVlSHdg40y42NkAh8c9dEcalq68GlFjcJdXMR3sfIe5ooelRWGJMubnyqiVCn75EtCvGqv+PX3bL+H2W0spwT6mX/CnSKFfqZfYLAkaDuLlvD9C+2yAg3YX57aJ8uLaLEaIjekf76FesHCpWcPCfFkGuFkUpYu/Z4lzavSqRrTNXoJ+v9nlD4jwIQcJcWrPJAAjLDO0HOliB+0eTpwK9MrChYF4/RM0jD6Wm1XpUqL+Eu4UgkjbmMaEELUBtDUX79H93cTGKkcdAVTsO4YjUSD6QNrePKhQGcdI0qUyM73dR1PrSCAiwEtFsU/RsgyRrRnRzRwg6X0k4WISyLmFF+0eTvUWSJuhiZ9UxXPQcI+wvOgDCd0qGpbRx5rgXgFkjzfYU7a6MqKmlL/CIgGQ084QBycDdM1LE6vluS72d5/h+d4+Lq+tYGV9FZo+edxSs17gUrOC+TkFSI585VjFlxtaBITNixwXiH252M7KGOk4GJpRRcPs4eDZCxzs7QsfhBa0lljTcWltFUsryyBN8+UDMK1jLNcLaMyZKJuFtJJkYpEmuvoSiGKRWftK/iZKALFw1GOMzIZsrJ0etvHi6Z4EUDELME1DAhFdFWvkoj+0Ad3ApfVVNFpNWdkWrVO0quQDEdSra5PN9BBKWpMdQAEBEHDoWgmXipDFerm2wxhaNs66QxyfDnHuGjhtn2HQ60vWqZSKcuMkfV4nuX+xLEeWOAKM6LKUqxU0FuqYM1wsihwid40CSFrZntpYG1tKAYJEN346dTkOy5K+27dwdm7hrGtJOhbuKTJyuVxApVSQpbimEzxXbAF8iwwGNkaOJ8OwZOqYr5UwP+cXiX5TIi+NJlNklkVmKDREjNiOK5UXqyzcTHRQSCOZlUtFA2ZRl2W4bMZ5jJHjSvcSbCeqAwFadFKEO1VLBZlDMsr2zFUNe8mZFpneJRfbXL+0F2DEPsV2PclkOpFUrmBoMAIQMkbY3xqL8QKw+HPFAY0YX9BllStiQ5Qlggfy5CeRSSDbItgZib5WWCwladj3VZkUg317uH8PaSjsjIgyQzYS5Bt+i1SUNyKZinfCSwCVW1rN36eHjhPQauLsLT2vGBGQtDwSikrJyyGlBl0UdYWirsjkeyGgJNWPuycKO0Ueni5fPdw0CqFFIII9uNJPPydPoLLG5fVuM+d/efmTFhmX7clueZBAAxcZg845/YwcMbkOCjPFgGfJmS7fMODHCBSLTB6pqT+0CCeMnyzlHcVlHeyMPSnj4Ces49OzSORy8qDnwVO+SxQcT8uZ44V8VnM7u+k9bSMwS6/34vI1g67T9jN+B4wvo4CdVZEpJ1wpC5I9f5JMLyafCJ3RZbTkTzjWKnicuTPMPb3NUyQrn2U3qeNv5AL77Bdr9L609cN98aMafM6CH5Urr5qeLjALwOzf58knwoHn4rWb4kc14bQPn/EdBj4WlcMsJ2Lxn24IlosUjCugnDilTJzHxmlZwZ+G9wn07o1Vin7mFA7+53O+AcZdMN5m8AoYcieU2ubPPitTEE2ufgrbpjYZkgsVzDQA4RGALzDCJz9Xfnj2X9bhyCw2YBQBAAAAAElFTkSuQmCC"},b182:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),o=n("d080"),a=n("a00f");function s(t,e){if(e){var n=Object(a["invert"])(e);return Object(a["multiplyVec2"])(n,t)}return t}function l(t,e,n){var i=t.getTotalMatrix();if(i){var r=s([e,n,1],i),o=r[0],a=r[1];return[o,a]}return[e,n]}function c(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(o["isAllowCapture"])(t)&&!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var i=l(t,e,n),r=i[0],a=i[1];if(t.isClipped(r,a))return!1}var s=t.cfg.cacheCanvasBBox;return s||(s=t.getCanvasBBox()),e>=s.minX&&e<=s.maxX&&n>=s.minY&&n<=s.maxY}function u(t,e,n){if(!c(t,e,n))return null;for(var i=null,r=t.getChildren(),o=r.length,a=o-1;a>=0;a--){var s=r[a];if(s.isGroup())i=u(s,e,n);else if(c(s,e,n)){var h=s,d=l(s,e,n),p=d[0],f=d[1];h.isInShape(p,f)&&(i=s)}if(i)break}return i}var h=n("4799"),d=n("c2ad"),p=n("f5e5"),f=n("7326"),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["renderer"]="canvas",e["autoDraw"]=!0,e["localRefresh"]=!0,e["refreshElements"]=[],e["clipView"]=!0,e["quickHit"]=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return h},e.prototype.getGroupBase=function(){return d["a"]},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(f["d"])();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.get("width"),maxY:this.get("height")}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var i=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*e,r.height=o*n,o>1&&i.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?u(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();if(e.length&&e[0]===this)t=n;else if(t=Object(p["d"])(e),t){t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY);var i=this.get("clipView");i&&(t=Object(p["e"])(t,n))}return t},e.prototype.refreshElement=function(t){var e=this.get("refreshElements");e.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(f["a"])(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Object(p["a"])(t,this),Object(p["b"])(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),i=this._getRefreshRegion();i&&(t.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.save(),t.beginPath(),t.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.clip(),Object(p["a"])(t,this),Object(p["b"])(t,n,i),t.restore()),Object(f["c"])(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=Object(f["n"])((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e}(r["a"]);e["a"]=g},b1aec:function(t,e,n){"use strict";var i=n("3086"),r=n.n(i);r.a},b1f1:function(t,e,n){"use strict";n.r(e),n.d(e,"TransformControls",(function(){return p})),n.d(e,"TransformControlsGizmo",(function(){return L})),n.d(e,"TransformControlsPlane",(function(){return D}));var i=n("5a89");const r=new i["Raycaster"],o=new i["Vector3"],a=new i["Vector3"],s=new i["Quaternion"],l={X:new i["Vector3"](1,0,0),Y:new i["Vector3"](0,1,0),Z:new i["Vector3"](0,0,1)},c={type:"change"},u={type:"mouseDown"},h={type:"mouseUp",mode:null},d={type:"objectChange"};class p extends i["Object3D"]{constructor(t,e){super(),void 0===e&&(console.warn('THREE.TransformControls: The second parameter "domElement" is now mandatory.'),e=document),this.visible=!1,this.domElement=e,this.domElement.style.touchAction="none";const n=new L;this._gizmo=n,this.add(n);const r=new D;this._plane=r,this.add(r);const o=this;function a(t,e){let i=e;Object.defineProperty(o,t,{get:function(){return void 0!==i?i:e},set:function(e){i!==e&&(i=e,r[t]=e,n[t]=e,o.dispatchEvent({type:t+"-changed",value:e}),o.dispatchEvent(c))}}),o[t]=e,r[t]=e,n[t]=e}a("camera",t),a("object",void 0),a("enabled",!0),a("axis",null),a("mode","translate"),a("translationSnap",null),a("rotationSnap",null),a("scaleSnap",null),a("space","world"),a("size",1),a("dragging",!1),a("showX",!0),a("showY",!0),a("showZ",!0);const s=new i["Vector3"],l=new i["Vector3"],u=new i["Quaternion"],h=new i["Quaternion"],d=new i["Vector3"],p=new i["Quaternion"],b=new i["Vector3"],x=new i["Vector3"],w=new i["Vector3"],_=0,C=new i["Vector3"];a("worldPosition",s),a("worldPositionStart",l),a("worldQuaternion",u),a("worldQuaternionStart",h),a("cameraPosition",d),a("cameraQuaternion",p),a("pointStart",b),a("pointEnd",x),a("rotationAxis",w),a("rotationAngle",_),a("eye",C),this._offset=new i["Vector3"],this._startNorm=new i["Vector3"],this._endNorm=new i["Vector3"],this._cameraScale=new i["Vector3"],this._parentPosition=new i["Vector3"],this._parentQuaternion=new i["Quaternion"],this._parentQuaternionInv=new i["Quaternion"],this._parentScale=new i["Vector3"],this._worldScaleStart=new i["Vector3"],this._worldQuaternionInv=new i["Quaternion"],this._worldScale=new i["Vector3"],this._positionStart=new i["Vector3"],this._quaternionStart=new i["Quaternion"],this._scaleStart=new i["Vector3"],this._getPointer=f.bind(this),this._onPointerDown=m.bind(this),this._onPointerHover=g.bind(this),this._onPointerMove=v.bind(this),this._onPointerUp=y.bind(this),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointermove",this._onPointerHover),this.domElement.addEventListener("pointerup",this._onPointerUp)}updateMatrixWorld(){void 0!==this.object&&(this.object.updateMatrixWorld(),null===this.object.parent?console.error("TransformControls: The attached 3D object must be a part of the scene graph."):this.object.parent.matrixWorld.decompose(this._parentPosition,this._parentQuaternion,this._parentScale),this.object.matrixWorld.decompose(this.worldPosition,this.worldQuaternion,this._worldScale),this._parentQuaternionInv.copy(this._parentQuaternion).invert(),this._worldQuaternionInv.copy(this.worldQuaternion).invert()),this.camera.updateMatrixWorld(),this.camera.matrixWorld.decompose(this.cameraPosition,this.cameraQuaternion,this._cameraScale),this.eye.copy(this.cameraPosition).sub(this.worldPosition).normalize(),super.updateMatrixWorld(this)}pointerHover(t){if(void 0===this.object||!0===this.dragging)return;r.setFromCamera(t,this.camera);const e=b(this._gizmo.picker[this.mode],r);this.axis=e?e.object.name:null}pointerDown(t){if(void 0!==this.object&&!0!==this.dragging&&0===t.button&&null!==this.axis){r.setFromCamera(t,this.camera);const e=b(this._plane,r,!0);e&&(this.object.updateMatrixWorld(),this.object.parent.updateMatrixWorld(),this._positionStart.copy(this.object.position),this._quaternionStart.copy(this.object.quaternion),this._scaleStart.copy(this.object.scale),this.object.matrixWorld.decompose(this.worldPositionStart,this.worldQuaternionStart,this._worldScaleStart),this.pointStart.copy(e.point).sub(this.worldPositionStart)),this.dragging=!0,u.mode=this.mode,this.dispatchEvent(u)}}pointerMove(t){const e=this.axis,n=this.mode,i=this.object;let u=this.space;if("scale"===n?u="local":"E"!==e&&"XYZE"!==e&&"XYZ"!==e||(u="world"),void 0===i||null===e||!1===this.dragging||-1!==t.button)return;r.setFromCamera(t,this.camera);const h=b(this._plane,r,!0);if(h){if(this.pointEnd.copy(h.point).sub(this.worldPositionStart),"translate"===n)this._offset.copy(this.pointEnd).sub(this.pointStart),"local"===u&&"XYZ"!==e&&this._offset.applyQuaternion(this._worldQuaternionInv),-1===e.indexOf("X")&&(this._offset.x=0),-1===e.indexOf("Y")&&(this._offset.y=0),-1===e.indexOf("Z")&&(this._offset.z=0),"local"===u&&"XYZ"!==e?this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale):this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale),i.position.copy(this._offset).add(this._positionStart),this.translationSnap&&("local"===u&&(i.position.applyQuaternion(s.copy(this._quaternionStart).invert()),-1!==e.search("X")&&(i.position.x=Math.round(i.position.x/this.translationSnap)*this.translationSnap),-1!==e.search("Y")&&(i.position.y=Math.round(i.position.y/this.translationSnap)*this.translationSnap),-1!==e.search("Z")&&(i.position.z=Math.round(i.position.z/this.translationSnap)*this.translationSnap),i.position.applyQuaternion(this._quaternionStart)),"world"===u&&(i.parent&&i.position.add(o.setFromMatrixPosition(i.parent.matrixWorld)),-1!==e.search("X")&&(i.position.x=Math.round(i.position.x/this.translationSnap)*this.translationSnap),-1!==e.search("Y")&&(i.position.y=Math.round(i.position.y/this.translationSnap)*this.translationSnap),-1!==e.search("Z")&&(i.position.z=Math.round(i.position.z/this.translationSnap)*this.translationSnap),i.parent&&i.position.sub(o.setFromMatrixPosition(i.parent.matrixWorld))));else if("scale"===n){if(-1!==e.search("XYZ")){let t=this.pointEnd.length()/this.pointStart.length();this.pointEnd.dot(this.pointStart)<0&&(t*=-1),a.set(t,t,t)}else o.copy(this.pointStart),a.copy(this.pointEnd),o.applyQuaternion(this._worldQuaternionInv),a.applyQuaternion(this._worldQuaternionInv),a.divide(o),-1===e.search("X")&&(a.x=1),-1===e.search("Y")&&(a.y=1),-1===e.search("Z")&&(a.z=1);i.scale.copy(this._scaleStart).multiply(a),this.scaleSnap&&(-1!==e.search("X")&&(i.scale.x=Math.round(i.scale.x/this.scaleSnap)*this.scaleSnap||this.scaleSnap),-1!==e.search("Y")&&(i.scale.y=Math.round(i.scale.y/this.scaleSnap)*this.scaleSnap||this.scaleSnap),-1!==e.search("Z")&&(i.scale.z=Math.round(i.scale.z/this.scaleSnap)*this.scaleSnap||this.scaleSnap))}else if("rotate"===n){this._offset.copy(this.pointEnd).sub(this.pointStart);const t=20/this.worldPosition.distanceTo(o.setFromMatrixPosition(this.camera.matrixWorld));"E"===e?(this.rotationAxis.copy(this.eye),this.rotationAngle=this.pointEnd.angleTo(this.pointStart),this._startNorm.copy(this.pointStart).normalize(),this._endNorm.copy(this.pointEnd).normalize(),this.rotationAngle*=this._endNorm.cross(this._startNorm).dot(this.eye)<0?1:-1):"XYZE"===e?(this.rotationAxis.copy(this._offset).cross(this.eye).normalize(),this.rotationAngle=this._offset.dot(o.copy(this.rotationAxis).cross(this.eye))*t):"X"!==e&&"Y"!==e&&"Z"!==e||(this.rotationAxis.copy(l[e]),o.copy(l[e]),"local"===u&&o.applyQuaternion(this.worldQuaternion),this.rotationAngle=this._offset.dot(o.cross(this.eye).normalize())*t),this.rotationSnap&&(this.rotationAngle=Math.round(this.rotationAngle/this.rotationSnap)*this.rotationSnap),"local"===u&&"E"!==e&&"XYZE"!==e?(i.quaternion.copy(this._quaternionStart),i.quaternion.multiply(s.setFromAxisAngle(this.rotationAxis,this.rotationAngle)).normalize()):(this.rotationAxis.applyQuaternion(this._parentQuaternionInv),i.quaternion.copy(s.setFromAxisAngle(this.rotationAxis,this.rotationAngle)),i.quaternion.multiply(this._quaternionStart).normalize())}this.dispatchEvent(c),this.dispatchEvent(d)}}pointerUp(t){0===t.button&&(this.dragging&&null!==this.axis&&(h.mode=this.mode,this.dispatchEvent(h)),this.dragging=!1,this.axis=null)}dispose(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerHover),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.traverse((function(t){t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()}))}attach(t){return this.object=t,this.visible=!0,this}detach(){return this.object=void 0,this.visible=!1,this.axis=null,this}reset(){this.enabled&&this.dragging&&(this.object.position.copy(this._positionStart),this.object.quaternion.copy(this._quaternionStart),this.object.scale.copy(this._scaleStart),this.dispatchEvent(c),this.dispatchEvent(d),this.pointStart.copy(this.pointEnd))}getRaycaster(){return r}getMode(){return this.mode}setMode(t){this.mode=t}setTranslationSnap(t){this.translationSnap=t}setRotationSnap(t){this.rotationSnap=t}setScaleSnap(t){this.scaleSnap=t}setSize(t){this.size=t}setSpace(t){this.space=t}update(){console.warn("THREE.TransformControls: update function has no more functionality and therefore has been deprecated.")}}function f(t){if(this.domElement.ownerDocument.pointerLockElement)return{x:0,y:0,button:t.button};{const e=this.domElement.getBoundingClientRect();return{x:(t.clientX-e.left)/e.width*2-1,y:-(t.clientY-e.top)/e.height*2+1,button:t.button}}}function g(t){if(this.enabled)switch(t.pointerType){case"mouse":case"pen":this.pointerHover(this._getPointer(t));break}}function m(t){this.enabled&&(document.pointerLockElement||this.domElement.setPointerCapture(t.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.pointerHover(this._getPointer(t)),this.pointerDown(this._getPointer(t)))}function v(t){this.enabled&&this.pointerMove(this._getPointer(t))}function y(t){this.enabled&&(this.domElement.releasePointerCapture(t.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.pointerUp(this._getPointer(t)))}function b(t,e,n){const i=e.intersectObject(t,!0);for(let r=0;r<i.length;r++)if(i[r].object.visible||n)return i[r];return!1}p.prototype.isTransformControls=!0;const x=new i["Euler"],w=new i["Vector3"](0,1,0),_=new i["Vector3"](0,0,0),C=new i["Matrix4"],A=new i["Quaternion"],I=new i["Quaternion"],S=new i["Vector3"],M=new i["Matrix4"],k=new i["Vector3"](1,0,0),E=new i["Vector3"](0,1,0),T=new i["Vector3"](0,0,1),O=new i["Vector3"],P=new i["Vector3"],j=new i["Vector3"];class L extends i["Object3D"]{constructor(){super(),this.type="TransformControlsGizmo";const t=new i["MeshBasicMaterial"]({depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1,transparent:!0}),e=new i["LineBasicMaterial"]({depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1,transparent:!0}),n=t.clone();n.opacity=.15;const r=e.clone();r.opacity=.5;const o=t.clone();o.color.setHex(16711680);const a=t.clone();a.color.setHex(65280);const s=t.clone();s.color.setHex(255);const l=t.clone();l.color.setHex(16711680),l.opacity=.5;const c=t.clone();c.color.setHex(65280),c.opacity=.5;const u=t.clone();u.color.setHex(255),u.opacity=.5;const h=t.clone();h.opacity=.25;const d=t.clone();d.color.setHex(16776960),d.opacity=.25;const p=t.clone();p.color.setHex(16776960);const f=t.clone();f.color.setHex(7895160);const g=new i["CylinderGeometry"](0,.04,.1,12);g.translate(0,.05,0);const m=new i["BoxGeometry"](.08,.08,.08);m.translate(0,.04,0);const v=new i["BufferGeometry"];v.setAttribute("position",new i["Float32BufferAttribute"]([0,0,0,1,0,0],3));const y=new i["CylinderGeometry"](.0075,.0075,.5,3);function b(t,e){const n=new i["TorusGeometry"](t,.0075,3,64,e*Math.PI*2);return n.rotateY(Math.PI/2),n.rotateX(Math.PI/2),n}function x(){const t=new i["BufferGeometry"];return t.setAttribute("position",new i["Float32BufferAttribute"]([0,0,0,1,1,1],3)),t}y.translate(0,.25,0);const w={X:[[new i["Mesh"](g,o),[.5,0,0],[0,0,-Math.PI/2]],[new i["Mesh"](g,o),[-.5,0,0],[0,0,Math.PI/2]],[new i["Mesh"](y,o),[0,0,0],[0,0,-Math.PI/2]]],Y:[[new i["Mesh"](g,a),[0,.5,0]],[new i["Mesh"](g,a),[0,-.5,0],[Math.PI,0,0]],[new i["Mesh"](y,a)]],Z:[[new i["Mesh"](g,s),[0,0,.5],[Math.PI/2,0,0]],[new i["Mesh"](g,s),[0,0,-.5],[-Math.PI/2,0,0]],[new i["Mesh"](y,s),null,[Math.PI/2,0,0]]],XYZ:[[new i["Mesh"](new i["OctahedronGeometry"](.1,0),h.clone()),[0,0,0]]],XY:[[new i["Mesh"](new i["BoxGeometry"](.15,.15,.01),u.clone()),[.15,.15,0]]],YZ:[[new i["Mesh"](new i["BoxGeometry"](.15,.15,.01),l.clone()),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new i["Mesh"](new i["BoxGeometry"](.15,.15,.01),c.clone()),[.15,0,.15],[-Math.PI/2,0,0]]]},_={X:[[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[.3,0,0],[0,0,-Math.PI/2]],[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[-.3,0,0],[0,0,Math.PI/2]]],Y:[[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[0,.3,0]],[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[0,-.3,0],[0,0,Math.PI]]],Z:[[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[0,0,.3],[Math.PI/2,0,0]],[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[0,0,-.3],[-Math.PI/2,0,0]]],XYZ:[[new i["Mesh"](new i["OctahedronGeometry"](.2,0),n)]],XY:[[new i["Mesh"](new i["BoxGeometry"](.2,.2,.01),n),[.15,.15,0]]],YZ:[[new i["Mesh"](new i["BoxGeometry"](.2,.2,.01),n),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new i["Mesh"](new i["BoxGeometry"](.2,.2,.01),n),[.15,0,.15],[-Math.PI/2,0,0]]]},C={START:[[new i["Mesh"](new i["OctahedronGeometry"](.01,2),r),null,null,null,"helper"]],END:[[new i["Mesh"](new i["OctahedronGeometry"](.01,2),r),null,null,null,"helper"]],DELTA:[[new i["Line"](x(),r),null,null,null,"helper"]],X:[[new i["Line"](v,r.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]],Y:[[new i["Line"](v,r.clone()),[0,-1e3,0],[0,0,Math.PI/2],[1e6,1,1],"helper"]],Z:[[new i["Line"](v,r.clone()),[0,0,-1e3],[0,-Math.PI/2,0],[1e6,1,1],"helper"]]},A={XYZE:[[new i["Mesh"](b(.5,1),f),null,[0,Math.PI/2,0]]],X:[[new i["Mesh"](b(.5,.5),o)]],Y:[[new i["Mesh"](b(.5,.5),a),null,[0,0,-Math.PI/2]]],Z:[[new i["Mesh"](b(.5,.5),s),null,[0,Math.PI/2,0]]],E:[[new i["Mesh"](b(.75,1),d),null,[0,Math.PI/2,0]]]},I={AXIS:[[new i["Line"](v,r.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]]},S={XYZE:[[new i["Mesh"](new i["SphereGeometry"](.25,10,8),n)]],X:[[new i["Mesh"](new i["TorusGeometry"](.5,.1,4,24),n),[0,0,0],[0,-Math.PI/2,-Math.PI/2]]],Y:[[new i["Mesh"](new i["TorusGeometry"](.5,.1,4,24),n),[0,0,0],[Math.PI/2,0,0]]],Z:[[new i["Mesh"](new i["TorusGeometry"](.5,.1,4,24),n),[0,0,0],[0,0,-Math.PI/2]]],E:[[new i["Mesh"](new i["TorusGeometry"](.75,.1,2,24),n)]]},M={X:[[new i["Mesh"](m,o),[.5,0,0],[0,0,-Math.PI/2]],[new i["Mesh"](y,o),[0,0,0],[0,0,-Math.PI/2]],[new i["Mesh"](m,o),[-.5,0,0],[0,0,Math.PI/2]]],Y:[[new i["Mesh"](m,a),[0,.5,0]],[new i["Mesh"](y,a)],[new i["Mesh"](m,a),[0,-.5,0],[0,0,Math.PI]]],Z:[[new i["Mesh"](m,s),[0,0,.5],[Math.PI/2,0,0]],[new i["Mesh"](y,s),[0,0,0],[Math.PI/2,0,0]],[new i["Mesh"](m,s),[0,0,-.5],[-Math.PI/2,0,0]]],XY:[[new i["Mesh"](new i["BoxGeometry"](.15,.15,.01),u),[.15,.15,0]]],YZ:[[new i["Mesh"](new i["BoxGeometry"](.15,.15,.01),l),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new i["Mesh"](new i["BoxGeometry"](.15,.15,.01),c),[.15,0,.15],[-Math.PI/2,0,0]]],XYZ:[[new i["Mesh"](new i["BoxGeometry"](.1,.1,.1),h.clone())]]},k={X:[[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[.3,0,0],[0,0,-Math.PI/2]],[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[-.3,0,0],[0,0,Math.PI/2]]],Y:[[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[0,.3,0]],[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[0,-.3,0],[0,0,Math.PI]]],Z:[[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[0,0,.3],[Math.PI/2,0,0]],[new i["Mesh"](new i["CylinderGeometry"](.2,0,.6,4),n),[0,0,-.3],[-Math.PI/2,0,0]]],XY:[[new i["Mesh"](new i["BoxGeometry"](.2,.2,.01),n),[.15,.15,0]]],YZ:[[new i["Mesh"](new i["BoxGeometry"](.2,.2,.01),n),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new i["Mesh"](new i["BoxGeometry"](.2,.2,.01),n),[.15,0,.15],[-Math.PI/2,0,0]]],XYZ:[[new i["Mesh"](new i["BoxGeometry"](.2,.2,.2),n),[0,0,0]]]},E={X:[[new i["Line"](v,r.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]],Y:[[new i["Line"](v,r.clone()),[0,-1e3,0],[0,0,Math.PI/2],[1e6,1,1],"helper"]],Z:[[new i["Line"](v,r.clone()),[0,0,-1e3],[0,-Math.PI/2,0],[1e6,1,1],"helper"]]};function T(t){const e=new i["Object3D"];for(const n in t)for(let i=t[n].length;i--;){const r=t[n][i][0].clone(),o=t[n][i][1],a=t[n][i][2],s=t[n][i][3],l=t[n][i][4];r.name=n,r.tag=l,o&&r.position.set(o[0],o[1],o[2]),a&&r.rotation.set(a[0],a[1],a[2]),s&&r.scale.set(s[0],s[1],s[2]),r.updateMatrix();const c=r.geometry.clone();c.applyMatrix4(r.matrix),r.geometry=c,r.renderOrder=1/0,r.position.set(0,0,0),r.rotation.set(0,0,0),r.scale.set(1,1,1),e.add(r)}return e}this.gizmo={},this.picker={},this.helper={},this.add(this.gizmo["translate"]=T(w)),this.add(this.gizmo["rotate"]=T(A)),this.add(this.gizmo["scale"]=T(M)),this.add(this.picker["translate"]=T(_)),this.add(this.picker["rotate"]=T(S)),this.add(this.picker["scale"]=T(k)),this.add(this.helper["translate"]=T(C)),this.add(this.helper["rotate"]=T(I)),this.add(this.helper["scale"]=T(E)),this.picker["translate"].visible=!1,this.picker["rotate"].visible=!1,this.picker["scale"].visible=!1}updateMatrixWorld(t){const e="scale"===this.mode?"local":this.space,n="local"===e?this.worldQuaternion:I;this.gizmo["translate"].visible="translate"===this.mode,this.gizmo["rotate"].visible="rotate"===this.mode,this.gizmo["scale"].visible="scale"===this.mode,this.helper["translate"].visible="translate"===this.mode,this.helper["rotate"].visible="rotate"===this.mode,this.helper["scale"].visible="scale"===this.mode;let i=[];i=i.concat(this.picker[this.mode].children),i=i.concat(this.gizmo[this.mode].children),i=i.concat(this.helper[this.mode].children);for(let r=0;r<i.length;r++){const t=i[r];let e;if(t.visible=!0,t.rotation.set(0,0,0),t.position.copy(this.worldPosition),e=this.camera.isOrthographicCamera?(this.camera.top-this.camera.bottom)/this.camera.zoom:this.worldPosition.distanceTo(this.cameraPosition)*Math.min(1.9*Math.tan(Math.PI*this.camera.fov/360)/this.camera.zoom,7),t.scale.set(1,1,1).multiplyScalar(e*this.size/4),"helper"!==t.tag){if(t.quaternion.copy(n),"translate"===this.mode||"scale"===this.mode){const e=.99,i=.2;"X"===t.name&&Math.abs(w.copy(k).applyQuaternion(n).dot(this.eye))>e&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"Y"===t.name&&Math.abs(w.copy(E).applyQuaternion(n).dot(this.eye))>e&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"Z"===t.name&&Math.abs(w.copy(T).applyQuaternion(n).dot(this.eye))>e&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"XY"===t.name&&Math.abs(w.copy(T).applyQuaternion(n).dot(this.eye))<i&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"YZ"===t.name&&Math.abs(w.copy(k).applyQuaternion(n).dot(this.eye))<i&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"XZ"===t.name&&Math.abs(w.copy(E).applyQuaternion(n).dot(this.eye))<i&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1)}else"rotate"===this.mode&&(A.copy(n),w.copy(this.eye).applyQuaternion(s.copy(n).invert()),-1!==t.name.search("E")&&t.quaternion.setFromRotationMatrix(C.lookAt(this.eye,_,E)),"X"===t.name&&(s.setFromAxisAngle(k,Math.atan2(-w.y,w.z)),s.multiplyQuaternions(A,s),t.quaternion.copy(s)),"Y"===t.name&&(s.setFromAxisAngle(E,Math.atan2(w.x,w.z)),s.multiplyQuaternions(A,s),t.quaternion.copy(s)),"Z"===t.name&&(s.setFromAxisAngle(T,Math.atan2(w.y,w.x)),s.multiplyQuaternions(A,s),t.quaternion.copy(s)));t.visible=t.visible&&(-1===t.name.indexOf("X")||this.showX),t.visible=t.visible&&(-1===t.name.indexOf("Y")||this.showY),t.visible=t.visible&&(-1===t.name.indexOf("Z")||this.showZ),t.visible=t.visible&&(-1===t.name.indexOf("E")||this.showX&&this.showY&&this.showZ),t.material._color=t.material._color||t.material.color.clone(),t.material._opacity=t.material._opacity||t.material.opacity,t.material.color.copy(t.material._color),t.material.opacity=t.material._opacity,this.enabled&&this.axis&&(t.name===this.axis?(t.material.color.setHex(16776960),t.material.opacity=1):this.axis.split("").some((function(e){return t.name===e}))&&(t.material.color.setHex(16776960),t.material.opacity=1))}else t.visible=!1,"AXIS"===t.name?(t.position.copy(this.worldPositionStart),t.visible=!!this.axis,"X"===this.axis&&(s.setFromEuler(x.set(0,0,0)),t.quaternion.copy(n).multiply(s),Math.abs(w.copy(k).applyQuaternion(n).dot(this.eye))>.9&&(t.visible=!1)),"Y"===this.axis&&(s.setFromEuler(x.set(0,0,Math.PI/2)),t.quaternion.copy(n).multiply(s),Math.abs(w.copy(E).applyQuaternion(n).dot(this.eye))>.9&&(t.visible=!1)),"Z"===this.axis&&(s.setFromEuler(x.set(0,Math.PI/2,0)),t.quaternion.copy(n).multiply(s),Math.abs(w.copy(T).applyQuaternion(n).dot(this.eye))>.9&&(t.visible=!1)),"XYZE"===this.axis&&(s.setFromEuler(x.set(0,Math.PI/2,0)),w.copy(this.rotationAxis),t.quaternion.setFromRotationMatrix(C.lookAt(_,w,E)),t.quaternion.multiply(s),t.visible=this.dragging),"E"===this.axis&&(t.visible=!1)):"START"===t.name?(t.position.copy(this.worldPositionStart),t.visible=this.dragging):"END"===t.name?(t.position.copy(this.worldPosition),t.visible=this.dragging):"DELTA"===t.name?(t.position.copy(this.worldPositionStart),t.quaternion.copy(this.worldQuaternionStart),o.set(1e-10,1e-10,1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1),o.applyQuaternion(this.worldQuaternionStart.clone().invert()),t.scale.copy(o),t.visible=this.dragging):(t.quaternion.copy(n),this.dragging?t.position.copy(this.worldPositionStart):t.position.copy(this.worldPosition),this.axis&&(t.visible=-1!==this.axis.search(t.name)))}super.updateMatrixWorld(t)}}L.prototype.isTransformControlsGizmo=!0;class D extends i["Mesh"]{constructor(){super(new i["PlaneGeometry"](1e5,1e5,2,2),new i["MeshBasicMaterial"]({visible:!1,wireframe:!0,side:i["DoubleSide"],transparent:!0,opacity:.1,toneMapped:!1})),this.type="TransformControlsPlane"}updateMatrixWorld(t){let e=this.space;switch(this.position.copy(this.worldPosition),"scale"===this.mode&&(e="local"),O.copy(k).applyQuaternion("local"===e?this.worldQuaternion:I),P.copy(E).applyQuaternion("local"===e?this.worldQuaternion:I),j.copy(T).applyQuaternion("local"===e?this.worldQuaternion:I),w.copy(P),this.mode){case"translate":case"scale":switch(this.axis){case"X":w.copy(this.eye).cross(O),S.copy(O).cross(w);break;case"Y":w.copy(this.eye).cross(P),S.copy(P).cross(w);break;case"Z":w.copy(this.eye).cross(j),S.copy(j).cross(w);break;case"XY":S.copy(j);break;case"YZ":S.copy(O);break;case"XZ":w.copy(j),S.copy(P);break;case"XYZ":case"E":S.set(0,0,0);break}break;case"rotate":default:S.set(0,0,0)}0===S.length()?this.quaternion.copy(this.cameraQuaternion):(M.lookAt(o.set(0,0,0),S,w),this.quaternion.setFromRotationMatrix(M)),super.updateMatrixWorld(t)}}D.prototype.isTransformControlsPlane=!0},b210:function(t,e,n){"use strict";n.r(e),n.d(e,"SelectionBox",(function(){return _}));var i=n("5a89");const r=new i["Frustum"],o=new i["Vector3"],a=new i["Vector3"],s=new i["Vector3"],l=new i["Vector3"],c=new i["Vector3"],u=new i["Vector3"],h=new i["Vector3"],d=new i["Vector3"],p=new i["Vector3"],f=new i["Vector3"],g=new i["Vector3"],m=new i["Vector3"],v=new i["Vector3"],y=new i["Vector3"],b=new i["Matrix4"],x=new i["Quaternion"],w=new i["Vector3"];class _{constructor(t,e,n=Number.MAX_VALUE){this.camera=t,this.scene=e,this.startPoint=new i["Vector3"],this.endPoint=new i["Vector3"],this.collection=[],this.instances={},this.deep=n}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(r,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){a.copy(t),a.x=Math.min(t.x,e.x),a.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),s.setFromMatrixPosition(this.camera.matrixWorld),l.copy(a),c.set(e.x,a.y,0),u.copy(e),h.set(a.x,e.y,0),l.unproject(this.camera),c.unproject(this.camera),u.unproject(this.camera),h.unproject(this.camera),m.copy(l).sub(s),v.copy(c).sub(s),y.copy(u).sub(s),m.normalize(),v.normalize(),y.normalize(),m.multiplyScalar(this.deep),v.multiplyScalar(this.deep),y.multiplyScalar(this.deep),m.add(s),v.add(s),y.add(s);const n=r.planes;n[0].setFromCoplanarPoints(s,l,c),n[1].setFromCoplanarPoints(s,c,u),n[2].setFromCoplanarPoints(u,h,s),n[3].setFromCoplanarPoints(h,l,s),n[4].setFromCoplanarPoints(c,u,h),n[5].setFromCoplanarPoints(y,v,m),n[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),i=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);l.set(n,i,-1),c.set(o,i,-1),u.set(o,a,-1),h.set(n,a,-1),d.set(n,i,1),p.set(o,i,1),f.set(o,a,1),g.set(n,a,1),l.unproject(this.camera),c.unproject(this.camera),u.unproject(this.camera),h.unproject(this.camera),d.unproject(this.camera),p.unproject(this.camera),f.unproject(this.camera),g.unproject(this.camera);const s=r.planes;s[0].setFromCoplanarPoints(l,d,p),s[1].setFromCoplanarPoints(c,p,f),s[2].setFromCoplanarPoints(f,g,h),s[3].setFromCoplanarPoints(g,d,l),s[4].setFromCoplanarPoints(c,u,h),s[5].setFromCoplanarPoints(f,p,d),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if(e.isMesh||e.isLine||e.isPoints)if(e.isInstancedMesh){this.instances[e.uuid]=[];for(let n=0;n<e.count;n++)e.getMatrixAt(n,b),b.decompose(o,x,w),o.applyMatrix4(e.matrixWorld),t.containsPoint(o)&&this.instances[e.uuid].push(n)}else null===e.geometry.boundingSphere&&e.geometry.computeBoundingSphere(),o.copy(e.geometry.boundingSphere.center),o.applyMatrix4(e.matrixWorld),t.containsPoint(o)&&this.collection.push(e);if(e.children.length>0)for(let n=0;n<e.children.length;n++)this.searchChildInFrustum(t,e.children[n])}}},b24f:function(t,e,n){},b311:function(t,e,n){
/*!
 * clipboard.js v2.0.4
 * https://zenorocha.github.io/clipboard.js
 * 
 * Licensed MIT © Zeno Rocha
 */
(function(e,n){t.exports=n()})(0,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(1),a=h(o),s=n(3),l=h(s),c=n(4),u=h(c);function h(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=function(t){function e(t,n){d(this,e);var i=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.resolveOptions(n),i.listenClick(t),i}return f(e,t),r(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===i(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new a.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return m("action",t)}},{key:"defaultTarget",value:function(t){var e=m("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return m("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(l.default);function m(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}t.exports=g},function(t,e,n){"use strict";var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(2),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var c=function(){function t(e){l(this,t),this.resolveOptions(e),this.initSelection()}return r(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=c},function(t,e){function n(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(t),i.removeAllRanges(),i.addRange(r),e=i.toString()}return e}t.exports=n},function(t,e){function n(){}n.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function r(){i.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,r=n.length;for(i;i<r;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],r=[];if(i&&e)for(var o=0,a=i.length;o<a;o++)i[o].fn!==e&&i[o].fn._!==e&&r.push(i[o]);return r.length?n[t]=r:delete n[t],this}},t.exports=n},function(t,e,n){var i=n(5),r=n(6);function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!i.string(e))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(t))return a(t,e,n);if(i.nodeList(t))return s(t,e,n);if(i.string(t))return l(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function l(t,e,n){return r(document.body,t,e,n)}t.exports=o},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},function(t,e,n){var i=n(7);function r(t,e,n,i,r){var o=a.apply(this,arguments);return t.addEventListener(n,o,r),{destroy:function(){t.removeEventListener(n,o,r)}}}function o(t,e,n,i,o){return"function"===typeof t.addEventListener?r.apply(null,arguments):"function"===typeof n?r.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return r(t,e,n,i,o)})))}function a(t,e,n,r){return function(n){n.delegateTarget=i(n.target,e),n.delegateTarget&&r.call(t,n)}}t.exports=o},function(t,e){var n=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function r(t,e){while(t&&t.nodeType!==n){if("function"===typeof t.matches&&t.matches(e))return t;t=t.parentNode}}t.exports=r}])}))},b37b:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("4160"),core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("a15b"),core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_array_join__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("ac1f"),core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_regexp_exec__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_string_match__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("466d"),core_js_modules_es_string_match__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_string_match__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("159b"),core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_4__),fieldsMixin={methods:{fieldsSearchPermission:function(t,e,n){if(!n)return"";if(!t&&"quake_service"===e){var i=["district","district_cn","street","street_cn","owner","gps","radius","catalog","type","level","vendor","tag","tag_type","tag_type_cn","tag_source","img_ocr","img_tag","http_path","status_code","meta_keywords","powered_by","html_hash","headers","header_order_hash","header","body","robots","robots_hash","sitemap","sitemap_hash","security_text","web_mail","cookie_key","cookie_simhash","cookie_order_hash","dom_simhash","dom_node","dom_hash","script_function","script_variable","css_class","css_id","meta_name","meta_content","link_script_url","link_img_url","link_other_url","link_url","link_script_hash","link_img_hash","link_other_hash","link_script_is_inner","link_img_is_inner","link_other_is_inner","iframe_url","iframe_hash","iframe_title","iframe_keywords","url_load","url_load_count","images.md5","page_type","icp","phone_num","copyright"];return this.proceesIncludesFiled(i,n)}if(-1===t)return"";if(1===t){if("quake_service"===e){var r=["street","street_cn","owner","gps","radius","catalog","type","level","header_order_hash","cookie_key","cookie_simhash","cookie_order_hash","vendor","tag","tag_type","tag_type_cn","tag_source","img_ocr","img_tag","robots","robots_hash","sitemap","sitemap_hash","security_text","web_mail","dom_simhash","dom_node","dom_hash","script_function","script_variable","css_class","css_id","meta_name","meta_content","link_script_url","link_img_url","link_other_url","link_url","link_script_hash","link_img_hash","link_other_hash","link_script_is_inner","link_img_is_inner","link_other_is_inner","iframe_url","iframe_hash","iframe_title","iframe_keywords","url_load","url_load_count","images.md5","page_type","icp","phone_num","copyright"];return this.proceesIncludesFiled(r,n)}if("quake_host"===e){var o=["ports","services","products","street","street_cn","owner","gps","radius","catalog","type","level","vendor","tag","tag_type","tag_type_cn","tag_source"];return this.proceesIncludesFiled(o,n)}}if(2===t){if("quake_service"===e){var a=["tag","tag_type","tag_type_cn","tag_source","img_tag","robots","robots_hash","sitemap","sitemap_hash","security_text","web_mail","page_type"];return this.proceesIncludesFiled(a,n)}if("quake_host"===e){var s=["tag","tag_type","tag_type_cn","tag_source"];return this.proceesIncludesFiled(s,n)}}if(3===t){if("quake_service"===e){var l=["tag","tag_type","tag_type_cn","tag_source","web_mail"];return this.proceesIncludesFiled(l,n)}if("quake_host"===e){var c=["tag","tag_type","tag_type_cn","tag_source"];return this.proceesIncludesFiled(c,n)}}return""},proceesIncludesFiled:function proceesIncludesFiled(fileds,searchVal){var includesFiled=[];return fileds.forEach((function(item){(searchVal.match(eval("/\\b".concat(item,"\\b\\s*:/gi")))||searchVal.match(eval("/\\b".concat(item,"\\b\\s*=/gi"))))&&includesFiled.push(item)})),includesFiled.length?includesFiled.join("/"):""}}};__webpack_exports__["a"]=fieldsMixin},b39a:function(t,e,n){"use strict";var i=n("da84"),r=n("2ba4"),o=n("ebb5"),a=n("d039"),s=n("f36a"),l=i.Int8Array,c=o.aTypedArray,u=o.exportTypedArrayMethod,h=[].toLocaleString,d=!!l&&a((function(){h.call(new l(1))})),p=a((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!a((function(){l.prototype.toLocaleString.call([1,2])}));u("toLocaleString",(function(){return r(h,d?s(c(this)):c(this),s(arguments))}),p)},b455:function(t,e,n){"use strict";function i(t){return Math.min.apply(null,t)}function r(t){return Math.max.apply(null,t)}function o(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function a(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=i(t),o=i(e),a=r(t),s=r(e);return{x:n,y:o,width:a-n,height:s-o}}function l(t,e,n,o){return{minX:i([t,n]),maxX:r([t,n]),minY:i([e,o]),maxY:r([e,o])}}function c(t){return(t+2*Math.PI)%(2*Math.PI)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=o,e.isNumberEqual=a,e.getBBoxByArray=s,e.getBBoxRange=l,e.piMod=c},b639e:function(t,e,n){"use strict";var i=n("3de9"),r=n.n(i);r.a},b644:function(t,e,n){"use strict";var i=n("2dba"),r=n.n(i);r.a},b699:function(t,e,n){"use strict";var i=n("703e"),r=n.n(i);r.a},b6b7:function(t,e,n){var i=n("ebb5"),r=n("4840"),o=i.aTypedArrayConstructor,a=i.getTypedArrayConstructor;t.exports=function(t){return o(r(t,a(t)))}},b757:function(t,e,n){},b76a:function(t,e,n){(function(e,i){t.exports=i(n("aa47"))})("undefined"!==typeof self&&self,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",g="values",m=function(){return this};t.exports=function(t,e,n,v,y,b,x){l(n,e,v);var w,_,C,A=function(t){if(!d&&t in k)return k[t];switch(t){case f:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},I=e+" Iterator",S=y==g,M=!1,k=t.prototype,E=k[h]||k[p]||y&&k[y],T=E||A(y),O=y?S?A("entries"):T:void 0,P="Array"==e&&k.entries||E;if(P&&(C=u(P.call(new t)),C!==Object.prototype&&C.next&&(c(C,I,!0),i||"function"==typeof C[h]||a(C,h,m))),S&&E&&E.name!==g&&(M=!0,T=function(){return E.call(this)}),i&&!x||!d&&!M&&k[h]||a(k,h,T),s[e]=T,s[I]=m,y)if(w={values:S?T:A(g),keys:b?T:A(f),entries:O},x)for(_ in w)_ in k||o(k,_,w[_]);else r(r.P+r.F*(d||M),e,w);return w}},"02f4":function(t,e,n){var i=n("4588"),r=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var i=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var i=n("cb7c");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var i=n("ce10"),r=n("e11e");t.exports=Object.keys||function(t){return i(t,r)}},1495:function(t,e,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){r(t);var n,a=o(e),s=a.length,l=0;while(s>l)i.f(t,n=a[l++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),p=!o((function(){var e={};return e[d]=function(){return 7},7!=""[t](e)})),f=p?!o((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[d](""),!e})):void 0;if(!p||!f||"replace"===t&&!u||"split"===t&&!h){var g=/./[d],m=n(a,d,""[t],(function(t,e,n,i,r){return e.exec===l?p&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),v=m[0],y=m[1];i(String.prototype,t,v),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},"23c6":function(t,e,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(t,e,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var t,e=n("230e")("iframe"),i=o.length,r="<",a=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),c=t.F;while(i--)delete c[l][o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=i(t),n=new s,s[l]=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},"2b4c":function(t,e,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))};s.store=i},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var i=n("5ca1"),r=n("d2c8"),o="includes";i(i.P+i.F*n("5147")(o),"String",{includes:function(t){return!!~r(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var i=n("86cc"),r=n("4630");t.exports=n("9e1e")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(t){return r(i(t))}}))},4588:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var i=n("be13");t.exports=function(t){return Object(i(t))}},5147:function(t,e,n){var i=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(r){}}return!0}},"520a":function(t,e,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,a=r,s="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[s]||0!==e[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(a=function(t){var e,n,a,u,h=this;return c&&(n=new RegExp("^"+h.source+"$(?!\\s)",i.call(h))),l&&(e=h[s]),a=r.call(h,t),l&&a&&(h[s]=h.global?a.index+a[0].length:e),c&&a&&a.length>1&&o.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),t.exports=a},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",c=function(t,e,n){var u,h,d,p,f=t&c.F,g=t&c.G,m=t&c.S,v=t&c.P,y=t&c.B,b=g?i:m?i[e]||(i[e]={}):(i[e]||{})[l],x=g?r:r[e]||(r[e]={}),w=x[l]||(x[l]={});for(u in g&&(n=e),n)h=!f&&b&&void 0!==b[u],d=(h?b:n)[u],p=y&&h?s(d,i):v&&"function"==typeof d?s(Function.call,d):d,b&&a(b,u,d,t&c.U),x[u]!=d&&o(x,u,p),v&&w[u]!=d&&(w[u]=d)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},"5eda":function(t,e,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(t,e,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"613b":function(t,e,n){var i=n("5537")("keys"),r=n("ca5a");t.exports=function(t){return i[t]||(i[t]=r(t))}},"626a":function(t,e,n){var i=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},6762:function(t,e,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var i=n("626a"),r=n("be13");t.exports=function(t){return i(r(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var i=n("d3f4");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){"use strict";var i=n("0d58"),r=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),l=Object.assign;t.exports=!l||n("79e5")((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i}))?function(t,e){var n=a(t),l=arguments.length,c=1,u=r.f,h=o.f;while(l>c){var d,p=s(arguments[c++]),f=u?i(p).concat(u(p)):i(p),g=f.length,m=0;while(g>m)h.call(p,d=f[m++])&&(n[d]=p[d])}return n}:l},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var i=n("4588"),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7f20":function(t,e,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var i=n("d8e8");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var i=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[i]&&n("32e9")(r,i,{}),t.exports=function(t){r[i][t]=!0}},"9def":function(t,e,n){var i=n("4588"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(e,n){e.exports=t},a481:function(t,e,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,f=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,(function(t,e,n,g){return[function(i,r){var o=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=g(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),p="function"===typeof e;p||(e=String(e));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}var b=[];while(1){var x=l(h,d);if(null===x)break;if(b.push(x),!v)break;var w=String(x[0]);""===w&&(h.lastIndex=s(d,o(h.lastIndex),y))}for(var _="",C=0,A=0;A<b.length;A++){x=b[A];for(var I=String(x[0]),S=c(u(a(x.index),d.length),0),M=[],k=1;k<x.length;k++)M.push(f(x[k]));var E=x.groups;if(p){var T=[I].concat(M,S,d);void 0!==E&&T.push(E);var O=String(e.apply(void 0,T))}else O=m(I,d,S,M,E,e);S>=C&&(_+=d.slice(C,S)+O,C=S+I.length)}return _+d.slice(C)}];function m(t,e,i,o,a,s){var l=i+t.length,c=o.length,u=p;return void 0!==a&&(a=r(a),u=d),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var d=h(u/10);return 0===d?n:d<=c?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},aae3:function(t,e,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},ac6a:function(t,e,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),h=c("toStringTag"),d=l.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=r(p),g=0;g<f.length;g++){var m,v=f[g],y=p[v],b=a[v],x=b&&b.prototype;if(x&&(x[u]||s(x,u,d),x[h]||s(x,h,v),l[v]=d,y))for(m in i)x[m]||o(x,m,i[m],!0)}},b0c5:function(t,e,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},c366:function(t,e,n){var i=n("6821"),r=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return l}));n("a481");function i(){return"undefined"!==typeof window?window.console:t.console}var r=i();function o(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var a=/-(\w)/g,s=o((function(t){return t.replace(a,(function(t,e){return e?e.toUpperCase():""}))}));function l(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function c(t,e,n){var i=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,i)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},cadf:function(t,e,n){"use strict";var i=n("9c6c"),r=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb7c:function(t,e,n){var i=n("d3f4");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);while(e.length>l)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},d2c8:function(t,e,n){var i=n("aae3"),r=n("be13");t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){"use strict";var i=n("5ca1"),r=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];i(i.P+i.F*n("5147")(a),"String",{startsWith:function(t){var e=o(this,t,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return s?s.call(e,i,n):e.slice(n,n+i.length)===i}})},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(i){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f751:function(t,e,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var i=n("7726").document;t.exports=i&&i.documentElement},fb15:function(t,e,n){"use strict";var i;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d");function r(t){if(Array.isArray(t))return t}function o(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){r=!0,o=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){return r(t)||o(t,e)||s(t,e)||l()}n("6762"),n("2fdb");function u(t){if(Array.isArray(t))return a(t)}function h(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(t){return u(t)||h(t)||s(t)||d()}var f=n("a352"),g=n.n(f),m=n("c649");function v(t,e,n){return void 0===n?t:(t=t||{},t[e]=n,t)}function y(t,e){return t.map((function(t){return t.elm})).indexOf(e)}function b(t,e,n,i){if(!t)return[];var r=t.map((function(t){return t.elm})),o=e.length-i,a=p(e).map((function(t,e){return e>=o?r.length:r.indexOf(t)}));return n?a.filter((function(t){return-1!==t})):a}function x(t,e){var n=this;this.$nextTick((function(){return n.$emit(t.toLowerCase(),e)}))}function w(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),x.call(e,t,n)}}function _(t){return["transition-group","TransitionGroup"].includes(t)}function C(t){if(!t||1!==t.length)return!1;var e=c(t,1),n=e[0].componentOptions;return!!n&&_(n.tag)}function A(t,e,n){return t[n]||(e[n]?e[n]():void 0)}function I(t,e,n){var i=0,r=0,o=A(e,n,"header");o&&(i=o.length,t=t?[].concat(p(o),p(t)):p(o));var a=A(e,n,"footer");return a&&(r=a.length,t=t?[].concat(p(t),p(a)):p(a)),{children:t,headerOffset:i,footerOffset:r}}function S(t,e){var n=null,i=function(t,e){n=v(n,t,e)},r=Object.keys(t).filter((function(t){return"id"===t||t.startsWith("data-")})).reduce((function(e,n){return e[n]=t[n],e}),{});if(i("attrs",r),!e)return n;var o=e.on,a=e.props,s=e.attrs;return i("on",o),i("props",a),Object.assign(n.attrs,s),n}var M=["Start","Add","Remove","Update","End"],k=["Choose","Unchoose","Sort","Filter","Clone"],E=["Move"].concat(M,k).map((function(t){return"on"+t})),T=null,O={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},P={name:"draggable",inheritAttrs:!1,props:O,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=C(e);var n=I(e,this.$slots,this.$scopedSlots),i=n.children,r=n.headerOffset,o=n.footerOffset;this.headerOffset=r,this.footerOffset=o;var a=S(this.$attrs,this.componentData);return t(this.getTag(),a,i)},created:function(){null!==this.list&&null!==this.value&&m["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&m["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&m["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};M.forEach((function(n){e["on"+n]=w.call(t,n)})),k.forEach((function(n){e["on"+n]=x.bind(t,n)}));var n=Object.keys(this.$attrs).reduce((function(e,n){return e[Object(m["a"])(n)]=t.$attrs[n],e}),{}),i=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new g.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(m["a"])(e);-1===E.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=b(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)}))},getUnderlyingVm:function(t){var e=y(this.getChildrenNodes()||[],t);if(-1===e)return null;var n=this.realList[e];return{index:e,element:n}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&_(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=p(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,p(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,i=this.getUnderlyingPotencialDraggableComponent(e);if(!i)return{component:i};var r=i.realList,o={list:r,component:i};if(e!==n&&r&&i.getUnderlyingVm){var a=i.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){var e=this.getChildrenNodes();e[t].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),T=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(m["d"])(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var i={element:e,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(t){if(Object(m["c"])(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(m["d"])(t.clone)},onDragUpdate:function(t){Object(m["d"])(t.item),Object(m["c"])(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var i={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=p(e.to.children).filter((function(t){return"none"!==t.style["display"]})),i=n.indexOf(e.related),r=t.component.getVmIndex(i),o=-1!==n.indexOf(T);return o||!e.willInsertAfter?r:r+1},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(t),r=this.context,o=this.computeFutureIndex(i,t);Object.assign(r,{futureIndex:o});var a=Object.assign({},t,{relatedContext:i,draggedContext:r});return n(a,e)},onDragEnd:function(){this.computeIndexes(),T=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",P);var j=P;e["default"]=j}})["default"]}))},b8f5:function(t,e,n){"use strict";var i=n("26d7"),r=n.n(i);r.a},b952:function(t,e,n){},baa5:function(t,e,n){var i=n("23e7"),r=n("e58c");i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},baa7:function(t,e,n){"use strict";var i=n("6944"),r=n.n(i);r.a},bb2f:function(t,e,n){var i=n("d039");t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bbe3:function(t,e,n){},bc48:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"collect-wrapper"},[n("el-popover",{attrs:{placement:"bottom-end",width:"416",trigger:"click","popper-class":"collect-popper "+("indexNew"===t.from?"index-collect-popper":"")},model:{value:t.isShowCollect,callback:function(e){t.isShowCollect=e},expression:"isShowCollect"}},[n("div",[n("div",{staticClass:"title",class:{"index-color":"indexNew"===t.from}},[n("span",[t._v(t._s(t.$t("search.batch_search")))]),n("i",{staticClass:"el-icon-close close",on:{click:t.onClose}})]),n("div",{staticClass:"des",class:{"index-color":"indexNew"===t.from}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"tip"}}),n("span",[t._v(t._s(t.$t("search.batch_search_tip",{count:t.limit})))])],1),n("div",{staticClass:"drag-container"},[n("el-upload",{ref:"upload",staticClass:"upload",attrs:{drag:"",action:"",accept:".txt",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":t.handleChangeFile}},[n("div",[n("svg-icon",{attrs:{"icon-class":"upload","class-name":"svg"}}),n("span",{staticClass:"file"},[t._v(t._s(t.$t("search.upload_file")))])],1)])],1),n("el-input",{staticStyle:{width:"100%",margin:"12px 0"},attrs:{type:"textarea",autosize:{minRows:5,maxRows:5},placeholder:t.$t("search.upload_file_tip",{count:t.limit}),clearable:""},on:{blur:t.onValidateIp},model:{value:t.ipQuery,callback:function(e){t.ipQuery=e},expression:"ipQuery"}}),n("transition",{attrs:{name:"fade"}},[t.isShowTip?n("div",{staticClass:"error-tip"},[n("div",[t._v(" "+t._s(t.$t("search.batch_validation_tip",{min:0,max:t.limit}))+" ")])]):t._e()]),n("el-popover",{directives:[{name:"show",rawName:"v-show",value:t.errIpDomainList.length,expression:"errIpDomainList.length"}],attrs:{placement:"bottom",width:"250",trigger:"click"},model:{value:t.showErrIpPop,callback:function(e){t.showErrIpPop=e},expression:"showErrIpPop"}},[n("div",{staticClass:"err-ip-title"},[n("span",[t._v(t._s(t.$t("search.err_ip_domain.err_title")))]),n("i",{staticClass:"el-icon-close err-close",on:{click:t.handleCloseErrIpPop}})]),n("div",{staticClass:"err-ip-popover"},t._l(t.errIpDomainList,(function(e){return n("div",{key:e,staticClass:"err-ip-item"},[n("span",{staticClass:"err-ip-text"},[t._v(t._s(e))]),n("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top-start"}},[n("svg-icon",{staticClass:"err-ip-copy",attrs:{"icon-class":"copy"},on:{click:function(n){return t.handleCopyIp(e)}}})],1)],1)})),0),n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handleCopyAllIp(t.errIpDomainList)}}},[t._v(t._s(t.$t("search.list_mode.copy_all")))]),n("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v(t._s(t.$t("search.err_ip_domain.err_see_btn")))])],1),n("div",{staticClass:"switch-line"},[n("span",[t._v(t._s(t.$t("search.add_to_my_collection")))]),(t.from,n("el-switch",{on:{change:t.onChangeSwitch},model:{value:t.isCollect,callback:function(e){t.isCollect=e},expression:"isCollect"}}))],1),t.isCollect?[n("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"78px"}},[n("el-form-item",{attrs:{label:"规则名称",prop:"name"}},[n("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入",clearable:""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),n("el-form-item",{attrs:{label:"数据源",prop:"index"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{"popper-append-to-body":!0,"popper-class":"indexNew"===t.from?"index-select":"",placeholder:"请选择"},model:{value:t.form.index,callback:function(e){t.$set(t.form,"index",e)},expression:"form.index"}},t._l(t.indices,(function(t){return n("el-option",{key:t.display,attrs:{label:t.display,value:t.name}})})),1)],1),n("el-form-item",{attrs:{label:"数量"}},[n("span",[t.numberLoading?n("i",{staticClass:"el-icon-loading"}):n("span",[t._v(t._s(t.file.length)+"个")])])])],1)]:t._e(),n("div",{staticClass:"operate-line clearfix"},["searchResult"===t.from?n("span",{staticClass:"float-left",on:{click:t.onClear}},[t._v(t._s(t.$t("search.handle_empty")))]):t._e(),t.isCollect?n("span",{staticClass:"float-right",on:{click:t.onSubmit}},[t.loading?n("i",{staticClass:"el-icon-loading"}):t._e(),t._v(" 提交 ")]):n("span",{staticClass:"float-right",on:{click:t.onSearchNow}},[t._v(t._s(t.$t("search.search")))])])],2),n("div",{staticClass:"view-collect",attrs:{slot:"reference"},slot:"reference"},[n("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.batch_search"),placement:"top"}},[n("svg-icon",{staticClass:"svg",style:{fontSize:"index"===t.from?"28px":""},attrs:{"icon-class":"faviconIp"}})],1),n("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.ip_collect.num_notice",{count:t.ipCollectNum}),placement:"top"}},["searchResult"===t.from&&t.ipCollectNum>0?n("div",{staticClass:"dialog-notice"},[n("span",{staticClass:"ip-collect-num"},[t._v(t._s(t.ipCollectNum))])]):t._e()])],1)])],1)},r=[],o=(n("4de4"),n("caad"),n("a15b"),n("d81d"),n("b0c0"),n("b680"),n("d3b7"),n("ac1f"),n("6062"),n("3ca3"),n("5319"),n("841c"),n("1276"),n("498a"),n("ddb0"),n("96cf"),n("2909")),a=n("5a0c"),s=n.n(a),l=n("104d"),c=n.n(l),u=n("670e"),h=n("1f20"),d=n("09e7"),p=n("cf45"),f={props:{from:{type:String,default:""},selectIndex:{type:String,default:""},indices:{type:Array,default:function(){return[]}},data:{type:Object,default:function(){return{ipList:[]}}}},watch:{data:{handler:function(t){"undefined"!==typeof t.ipList&&(this.ipQuery=(t.ipList||[]).join("\r\n"),this.ipCollectNum=t.ipList.length)},immediate:!0}},data:function(){return{limit:1e3,tooltipValue:!1,loading:!1,numberLoading:!1,isShowTip:!1,isShowCollect:!1,isCollect:!1,file:[],ipQuery:"",form:{name:"",index:this.selectIndex},rules:{name:[{required:!0,message:"请输入规则名称",trigger:"blur"}],index:[{required:!0,message:"请选择数据源",trigger:"change"}]},indexMapping:{quake_service:"服务数据",quake_host:"主机数据",quake_vulnerability:"漏洞数据"},firstErrIpOrDomain:"",errIpDomainList:[],showErrIpPop:!1,ipCollectNum:0}},methods:{handleCopyAllIp:function(t){var e=this,n=t.join("\n");this.$copyText(n).then((function(){e.keepPopState()}))},keepPopState:function(){this.isShowCollect=!0,this.showErrIpPop=!0,this.$message({message:this.$t("global.copy_success"),type:"success"})},handleCopyIp:function(t){var e=this;t&&this.$copyText(t).then((function(){e.keepPopState()}))},handleCloseErrIpPop:function(){this.showErrIpPop=!1},onClose:function(){this.$refs.upload.clearFiles(),this.file=[],this.ipQuery="",this.isShowTip=!1,this.loading=!1,this.isCollect&&this.$refs.form.resetFields(),this.isShowCollect=!1},onSearchNow:function(){this.onValidateIp(),this.isShowTip||(["index","indexNew"].includes(this.from)&&this.$router.push({name:"searchResult",query:{selectIndex:this.form.index,ip_list:this.file,latest:!0}}),"searchResult"===this.from&&this.$emit("triggerSearchNow",this.file),this.onClose())},onClear:function(){this.file=[],this.$emit("triggerSearchNow",this.file),this.onClose()},onValidateIp:function(){var t=this;this.isShowTip=!1,this.numberLoading=!0;var e=[],n=this.ipQuery.trim();n||(this.firstErrIpOrDomain="",this.handleCloseErrIpPop()),n&&(e=Object(o["a"])(new Set(n.replace(/\r\n/g,"\n").split("\n"))).map((function(t){return t&&t.trim()})));var i=0;this.errIpDomainList=e.filter((function(e){return!t.isIP(e)&&!t.isDomain(e)}));for(var r=0;r<e.length;r++){var a=e[r],s=this.isIP(a),l=this.isDomain(a);if(!s&&!l&&!Object(d["f"])(a))return this.isShowTip=!0,void(this.firstErrIpOrDomain=a||"");if(this.handleCloseErrIpPop(),Object(d["f"])(a)){var c=Object(p["a"])(a);i=this.BigNumber(c).plus(i).toFixed()}else if(s){var u=new h["Netmask"](a);i+=u.size}else i+=1}if(i>this.limit||!i)this.isShowTip=!0;else{this.file=e;var f=setTimeout((function(){clearTimeout(f),t.numberLoading=!1}),300)}},isIP:function(t){var e=/^([0-9]{1,3}\.){3}[0-9]{1,3}\/([0-9]|[1-2][0-9]|3[0-2])$/im;return e.test(t)||c()({exact:!0}).test(t)},isDomain:function(t){var e=/^(?=^.{3,255}$)((http:\/\/)|(https:\/\/))?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/,n=/^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?$/,i=/^(?:[a-zA-Z0-9-\u4e00-\u9fa5]+\.)*[a-zA-Z0-9-\u4e00-\u9fa5]+$/,r=t.split(".");return r.length<=2?e.test(t)||i.test(t):n.test(t)||i.test(t)},onChangeSwitch:function(t){t&&this.onValidateIp()},handleChangeFile:function(t){var e=this,n=new FileReader;n.onload=function(){var t=n.result;t.trim()&&(""!==e.ipQuery?e.ipQuery+="\r\n".concat(t.trim()):e.ipQuery=t.trim())},n.readAsText(t.raw)},onSubmit:function(){var t=this;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:this.onValidateIp(),this.isShowTip||this.$refs.form.validate((function(e){var n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:if(!e||t.isShowTip){r.next=9;break}return n={name:t.form.name,index:t.form.index},n.search={name:"UserBookmarkQueryIPListEmbedded",data:t.file},t.loading=!0,r.next=6,regeneratorRuntime.awrap(Object(u["F"])(n));case 6:i=r.sent,0===i.code&&(["index","indexNew"].includes(t.from)&&t.$router.push({name:"searchResult",query:{selectIndex:t.form.index,rule:t.form.name,latest:!1,timeRange:[s()(s()().format("YYYY-MM-DD")).subtract(1,"year").format("YYYY-MM-DD HH:mm:ss"),s()(s()().format("YYYY-MM-DD")).format("YYYY-MM-DD HH:mm:ss")]}}),"searchResult"===t.from&&t.$emit("triggerCollect",t.form.name),t.onClose()),t.loading=!1;case 9:case"end":return r.stop()}}))}));case 2:case"end":return e.stop()}}),null,this)}}},g=f,m=(n("6668"),n("4803"),n("2877")),v=Object(m["a"])(g,i,r,!1,null,"735c274d",null);e["a"]=v.exports},bc6c:function(t,e,n){var i=n("7bcc"),r=n("ae34");n("8753");function o(t){return void 0===t||null===t}function a(t){var e={};for(var n in t)e[n]=t[n];return e}function s(t){t=a(t||{}),t.whiteList=t.whiteList||i.whiteList,t.onAttr=t.onAttr||i.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||i.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||i.safeAttrValue,this.options=t}s.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,n=e.options,i=n.whiteList,a=n.onAttr,s=n.onIgnoreAttr,l=n.safeAttrValue,c=r(t,(function(t,e,n,r,c){var u=i[n],h=!1;if(!0===u?h=u:"function"===typeof u?h=u(r):u instanceof RegExp&&(h=u.test(r)),!0!==h&&(h=!1),r=l(n,r),r){var d={position:e,sourcePosition:t,source:c,isWhite:h};if(h){var p=a(n,r,d);return o(p)?n+":"+r:p}p=s(n,r,d);return o(p)?void 0:p}}));return c},t.exports=s},bcb2:function(t,e,n){!function(e,n){t.exports=n()}("undefined"!=typeof self&&self,(function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./dist/",e(e.s=5)}([function(t,e){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgd2lkdGg9IjI0MCIKICAgaGVpZ2h0PSIxNDQiCiAgIGlkPSJzdmc0MTM2IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlua3NjYXBlOnZlcnNpb249IjAuOTEgcjEzNzI1IgogICBzb2RpcG9kaTpkb2NuYW1lPSJqc29uZWRpdG9yLWljb25zLnN2ZyI+CiAgPHRpdGxlCiAgICAgaWQ9InRpdGxlNjUxMiI+SlNPTiBFZGl0b3IgSWNvbnM8L3RpdGxlPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTQxNDgiPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgICAgPGRjOnRpdGxlPkpTT04gRWRpdG9yIEljb25zPC9kYzp0aXRsZT4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGRlZnMKICAgICBpZD0iZGVmczQxNDYiIC8+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIHBhZ2Vjb2xvcj0iI2ZmNjNmZiIKICAgICBib3JkZXJjb2xvcj0iIzY2NjY2NiIKICAgICBib3JkZXJvcGFjaXR5PSIxIgogICAgIG9iamVjdHRvbGVyYW5jZT0iMTAiCiAgICAgZ3JpZHRvbGVyYW5jZT0iMTAiCiAgICAgZ3VpZGV0b2xlcmFuY2U9IjEwIgogICAgIGlua3NjYXBlOnBhZ2VvcGFjaXR5PSIwIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjIiCiAgICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIxOTIwIgogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9IjEwMjYiCiAgICAgaWQ9Im5hbWVkdmlldzQxNDQiCiAgICAgc2hvd2dyaWQ9InRydWUiCiAgICAgaW5rc2NhcGU6em9vbT0iNCIKICAgICBpbmtzY2FwZTpjeD0iMTMuMjI5MTgxIgogICAgIGlua3NjYXBlOmN5PSIxMTkuODI0MjkiCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjAiCiAgICAgaW5rc2NhcGU6d2luZG93LXk9IjAiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmc0MTM2IgogICAgIHNob3dndWlkZXM9ImZhbHNlIgogICAgIGJvcmRlcmxheWVyPSJmYWxzZSIKICAgICBpbmtzY2FwZTpzaG93cGFnZXNoYWRvdz0idHJ1ZSIKICAgICBzaG93Ym9yZGVyPSJ0cnVlIj4KICAgIDxpbmtzY2FwZTpncmlkCiAgICAgICB0eXBlPSJ4eWdyaWQiCiAgICAgICBpZD0iZ3JpZDQ2NDAiCiAgICAgICBlbXBzcGFjaW5nPSIyNCIgLz4KICA8L3NvZGlwb2RpOm5hbWVkdmlldz4KICA8IS0tIENyZWF0ZWQgd2l0aCBTVkctZWRpdCAtIGh0dHA6Ly9zdmctZWRpdC5nb29nbGVjb2RlLmNvbS8gLS0+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIgogICAgIGlkPSJzdmdfMSIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSI0IgogICAgIHg9IjQiIC8+CiAgPHJlY3QKICAgICBpZD0ic3ZnXzEtNyIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSIzLjk5OTk5NSIKICAgICB4PSIyOC4wMDAwMDYiCiAgICAgc3R5bGU9ImZpbGw6I2VjM2YyOTtmaWxsLW9wYWNpdHk6MC45NDExNzY0NztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiCiAgICAgeD0iNTIuMDAwMDA0IgogICAgIHk9IjMuOTk5OTk1IgogICAgIHdpZHRoPSIxNiIKICAgICBoZWlnaHQ9IjE2IgogICAgIGlkPSJyZWN0NDE2NSIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDE3NSIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSIzLjk5OTk4NTIiCiAgICAgeD0iMTcyLjAwMDAyIgogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQxNzUtMyIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSIzLjk5OTk5NSIKICAgICB4PSIxOTYiCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8ZwogICAgIGlkPSJnNDI5OSIKICAgICBzdHlsZT0ic3Ryb2tlOm5vbmUiPgogICAgPHJlY3QKICAgICAgIHg9IjcuMDAwMDA0OCIKICAgICAgIHk9IjEwLjk5OTk5OCIKICAgICAgIHdpZHRoPSI5Ljk5OTk5MjQiCiAgICAgICBoZWlnaHQ9IjEuOTk5OTk4NiIKICAgICAgIGlkPSJzdmdfMS0xIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICAgIDxyZWN0CiAgICAgICB4PSIxMS4wMDAwMDUiCiAgICAgICB5PSI3LjAwMDAxMTQiCiAgICAgICB3aWR0aD0iMS45OTk5OTU1IgogICAgICAgaGVpZ2h0PSI5Ljk5OTk4MzgiCiAgICAgICBpZD0ic3ZnXzEtMS0xIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8L2c+CiAgPGcKICAgICBpZD0iZzQyOTktMyIKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjcwNzEwNjc4LC0wLjcwNzEwNjc4LDAuNzA3MTA2NzgsMC43MDcxMDY3OCwxOS4wMjk0MzUsMTIuMDAwMDAxKSIKICAgICBzdHlsZT0ic3Ryb2tlOm5vbmUiPgogICAgPHJlY3QKICAgICAgIHg9IjcuMDAwMDA0OCIKICAgICAgIHk9IjEwLjk5OTk5OCIKICAgICAgIHdpZHRoPSI5Ljk5OTk5MjQiCiAgICAgICBoZWlnaHQ9IjEuOTk5OTk4NiIKICAgICAgIGlkPSJzdmdfMS0xLTAiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogICAgPHJlY3QKICAgICAgIHg9IjExLjAwMDAwNSIKICAgICAgIHk9IjcuMDAwMDExNCIKICAgICAgIHdpZHRoPSIxLjk5OTk5NTUiCiAgICAgICBoZWlnaHQ9IjkuOTk5OTgzOCIKICAgICAgIGlkPSJzdmdfMS0xLTEtOSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPC9nPgogIDxyZWN0CiAgICAgaWQ9InN2Z18xLTctNSIKICAgICBoZWlnaHQ9IjYuOTk5OTkwNSIKICAgICB3aWR0aD0iNi45OTk5OTA5IgogICAgIHk9IjcuMDAwMDA0OCIKICAgICB4PSI1NS4wMDAwMDQiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiM0YzRjNGM7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICB4PSI1OCIKICAgICB5PSIxMC4wMDAwMSIKICAgICB3aWR0aD0iNi45OTk5OTA5IgogICAgIGhlaWdodD0iNi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDM1NCIgLz4KICA8cmVjdAogICAgIGlkPSJzdmdfMS03LTUtNyIKICAgICBoZWlnaHQ9IjYuOTk5OTkwNSIKICAgICB3aWR0aD0iNi45OTk5OTA5IgogICAgIHk9IjEwLjAwMDAwNSIKICAgICB4PSI1OC4wMDAwMDQiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzNjODBkZjtzdHJva2Utd2lkdGg6MDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eTowLjk0MTE3NjQ3IiAvPgogIDxnCiAgICAgaWQ9Imc0Mzc4Ij4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDowIgogICAgICAgeD0iMTk4IgogICAgICAgeT0iMTAuOTk5OTk5IgogICAgICAgd2lkdGg9IjcuOTk5OTkwOSIKICAgICAgIGhlaWdodD0iMS45OTk5OTY1IgogICAgICAgaWQ9InN2Z18xLTctNS0zIiAvPgogICAgPHJlY3QKICAgICAgIGlkPSJyZWN0NDM3NCIKICAgICAgIGhlaWdodD0iMS45OTk5OTQ2IgogICAgICAgd2lkdGg9IjExLjk5OTk5NSIKICAgICAgIHk9IjcuMDAwMDAwNSIKICAgICAgIHg9IjE5OCIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgICA8cmVjdAogICAgICAgaWQ9InJlY3Q0Mzc2IgogICAgICAgaGVpZ2h0PSIxLjk5OTk5OTUiCiAgICAgICB3aWR0aD0iMy45OTk5OTI4IgogICAgICAgeT0iMTQuOTk5OTk2IgogICAgICAgeD0iMTk4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIgLz4KICA8L2c+CiAgPGcKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwtMSwtMjMuOTk5OTk1LDIzLjk5OTk5NSkiCiAgICAgaWQ9Imc0MzgzIj4KICAgIDxyZWN0CiAgICAgICBpZD0icmVjdDQzODUiCiAgICAgICBoZWlnaHQ9IjEuOTk5OTk2NSIKICAgICAgIHdpZHRoPSI3Ljk5OTk5MDkiCiAgICAgICB5PSIxMC45OTk5OTkiCiAgICAgICB4PSIxOTgiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDowIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAiCiAgICAgICB4PSIxOTgiCiAgICAgICB5PSI3LjAwMDAwMDUiCiAgICAgICB3aWR0aD0iMTEuOTk5OTk1IgogICAgICAgaGVpZ2h0PSIxLjk5OTk5NDYiCiAgICAgICBpZD0icmVjdDQzODciIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIKICAgICAgIHg9IjE5OCIKICAgICAgIHk9IjE0Ljk5OTk5NiIKICAgICAgIHdpZHRoPSIzLjk5OTk5MjgiCiAgICAgICBoZWlnaHQ9IjEuOTk5OTk5NSIKICAgICAgIGlkPSJyZWN0NDM4OSIgLz4KICA8L2c+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGlkPSJyZWN0Mzc1NC00IgogICAgIHdpZHRoPSIxNiIKICAgICBoZWlnaHQ9IjE2IgogICAgIHg9Ijc2IgogICAgIHk9IjMuOTk5OTE5OSIgLz4KICA8cGF0aAogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiNmZmZmZmY7c3Ryb2tlLXdpZHRoOjAuMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgIGQ9Im0gODUuMTA0NDcsNi4wMTU3Mzg0IC0wLjAxNTYsMS40MDYzIGMgMy4wMjY2OSwtMC4yNDAyIDAuMzMwMDgsMy42NTA3OTk2IDIuNDg0MzgsNC41NzgwOTk2IC0yLjE4Njk0LDEuMDkzOCAwLjQ5MTkxLDQuOTA2OSAtMi40NTMxMyw0LjU3ODEgbCAtMC4wMTU2LDEuNDIxOSBjIDUuNzA4MjgsMC41NTkgMS4wMzI2NCwtNS4xMDA1IDQuNzAzMTMsLTUuMjY1NiBsIDAsLTEuNDA2MyBjIC0zLjYxMzAzLC0wLjAyNyAxLjExODkzLC01LjcwNjk5OTYgLTQuNzAzMTMsLTUuMzEyNDk5NiB6IgogICAgIGlkPSJwYXRoNDM1MSIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDowLjI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDgyLjc4MTI1LDUuOTk4NDM4NCAwLjAxNTYsMS40MDYzIGMgLTMuMDI2NjgsLTAuMjQwMiAtMC4zMzAwNywzLjY1MDY5OTYgLTIuNDg0MzcsNC41NzgwOTk2IDIuMTg2OTQsMS4wOTM4IC0wLjQ5MTkyLDQuOTA2OSAyLjQ1MzEyLDQuNTc4MSBsIDAuMDE1NiwxLjQyMTkgYyAtNS43MDgyNywwLjU1OSAtMS4wMzI2MywtNS4xMDA0IC00LjcwMzEyLC01LjI2NTYgbCAwLC0xLjQwNjMgYyAzLjYxMzAzLC0wLjAyNyAtMS4xMTg5NCwtNS43MDcwOTk2IDQuNzAzMTIsLTUuMzEyNDk5NiB6IgogICAgIGlkPSJwYXRoNDM1MS05IgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NjYyIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiCiAgICAgaWQ9InJlY3QzNzU0LTI1IgogICAgIHdpZHRoPSIxNiIKICAgICBoZWlnaHQ9IjE2IgogICAgIHg9IjEwMCIKICAgICB5PSIzLjk5OTkxOTkiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGQ9Im0gMTAzLjcxOSw1LjY3MTkzODQgMCwxMi43MTg3OTk2IDMuMDMxMjUsMCAwLC0xLjUzMTMgLTEuMzQzNzUsMCAwLC05LjYyNDk5OTYgMS4zNzUsMCAwLC0xLjU2MjUgeiIKICAgICBpZD0icGF0aDI5ODciCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICA8cGF0aAogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiCiAgICAgZD0ibSAxMTIuMjE4NSw1LjY3MjE5ODQgMCwxMi43MTg3OTk2IC0zLjAzMTI1LDAgMCwtMS41MzEzIDEuMzQzNzUsMCAwLC05LjYyNDk5OTYgLTEuMzc1LDAgMCwtMS41NjI1IHoiCiAgICAgaWQ9InBhdGgyOTg3LTEiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiCiAgICAgaWQ9InJlY3QzNzU0LTczIgogICAgIHdpZHRoPSIxNiIKICAgICBoZWlnaHQ9IjE2IgogICAgIHg9IjEyNCIKICAgICB5PSIzLjk5OTkxOTkiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGQ9Im0gMTI2LjI4MjQsMTcuNjAyOTM4IDEuNzg5NTcsMCAxLjE0MTQzLC0yLjg2NDEgNS42NTM2NCwwIDEuMTQ4NTYsMi44NjQxIDEuNzY1NjUsMCAtNC43ODY4NywtMTEuMTYxMDk5NiAtMS45MTkwMywwIHoiCiAgICAgaWQ9InBhdGgzNzgwIgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NjY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGQ9Im0gMTI5LjcyNzA0LDEzLjQ3ODgzOCA0LjYwODUyLDAuMDEgLTIuMzA0MjYsLTUuNTQ5Nzk5NiB6IgogICAgIGlkPSJwYXRoMzc4MiIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIKICAgICBpZD0icmVjdDM3NTQtMzUiCiAgICAgd2lkdGg9IjE2IgogICAgIGhlaWdodD0iMTYiCiAgICAgeD0iMTQ4IgogICAgIHk9IjMuOTk5OTE5OSIgLz4KICA8cGF0aAogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiCiAgICAgZD0ibSAxNTYuNDc2NTUsNS44OTE3Mzg0IDAsMi4xNzk3IDAuNDYwOTMsMi4zOTgzOTk2IDEuODI4MTMsMCAwLjM5ODQ0LC0yLjM5ODM5OTYgMCwtMi4xNzk3IHoiCiAgICAgaWQ9InBhdGg1MDA4LTIiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2NjY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIgogICAgIGQ9Im0gMTUyLjUxNTYxLDUuODkwNjM4NCAwLDIuMTc5NyAwLjQ2MDk0LDIuMzk4Mzk5NiAxLjgyODEyLDAgMC4zOTg0NCwtMi4zOTgzOTk2IDAsLTIuMTc5NyB6IgogICAgIGlkPSJwYXRoNTAwOC0yLTgiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2NjY2MiIC8+CiAgPHJlY3QKICAgICBpZD0ic3ZnXzEtNy0yIgogICAgIGhlaWdodD0iMS45OTk5OTYxIgogICAgIHdpZHRoPSIxMS45OTk5OTYiCiAgICAgeT0iNjQiCiAgICAgeD0iNTQiCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIGlkPSJzdmdfMS03LTItMiIKICAgICBoZWlnaHQ9IjIuOTk5OTkwNSIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIHk9IjUyIgogICAgIHg9IjgwLjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIKICAgICB4PSI4NS4wMDAwMDgiCiAgICAgeT0iNTIiCiAgICAgd2lkdGg9IjIuOTk5OTkwNyIKICAgICBoZWlnaHQ9IjIuOTk5OTkwNSIKICAgICBpZD0icmVjdDQ1NjEiIC8+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIgogICAgIHg9IjgwLjAwMDAwOCIKICAgICB5PSI1OCIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDU2MyIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDU2NSIKICAgICBoZWlnaHQ9IjIuOTk5OTkwNSIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIHk9IjU4IgogICAgIHg9Ijg1LjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NTY3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIHdpZHRoPSIyLjk5OTk5MDciCiAgICAgeT0iNjQiCiAgICAgeD0iODAuMDAwMDA4IgogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjAuOTg0MzEzNzM7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIgogICAgIHg9Ijg1LjAwMDAwOCIKICAgICB5PSI2NCIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDU2OSIgLz4KICA8Y2lyY2xlCiAgICAgc3R5bGU9Im9wYWNpdHk6MTtmaWxsOm5vbmU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiM0YzRjNGM7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIGlkPSJwYXRoNDU3MSIKICAgICBjeD0iMTEwLjA2MDgxIgogICAgIGN5PSI1Ny45MzkyMDkiCiAgICAgcj0iNC43NDM4ODM2IiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIKICAgICB4PSIxMTYuNjQ1NjYiCiAgICAgeT0iLTMxLjc5NzUyIgogICAgIHdpZHRoPSI0LjIyOTcxMyIKICAgICBoZWlnaHQ9IjYuNDA1Mzg4NCIKICAgICBpZD0icmVjdDQ1NjMtMiIKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjcwNzEwNjc4LDAuNzA3MTA2NzgsLTAuNzA3MTA2NzgsMC43MDcxMDY3OCwwLDApIiAvPgogIDxwYXRoCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgIGQ9Ik0gMTI1LDU2IDEzOC43NzAyNyw1Ni4wOTUgMTMyLDY0IFoiCiAgICAgaWQ9InBhdGg0NjEzIgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjIiAvPgogIDxwYXRoCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjIgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgaWQ9InBhdGg0NjE1IgogICAgIGQ9Ik0gMTQ5LDY0IDE2Mi43NzAyNyw2My45MDUgMTU2LDU2IFoiCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIKICAgICB4PSI1NCIKICAgICB5PSI1MyIKICAgICB3aWR0aD0iMTEuOTk5OTk2IgogICAgIGhlaWdodD0iMS45OTk5OTYxIgogICAgIGlkPSJyZWN0NDYzOCIgLz4KICA8cmVjdAogICAgIGlkPSJzdmdfMS03LTItMjQiCiAgICAgaGVpZ2h0PSIxLjk5OTk5NTciCiAgICAgd2lkdGg9IjEyLjk5OTk5IgogICAgIHk9Ii01NiIKICAgICB4PSI1MyIKICAgICBzdHlsZT0iZmlsbDojNGM0YzRjO2ZpbGwtb3BhY2l0eTowLjk4NDMxMzczO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIgogICAgIHRyYW5zZm9ybT0ibWF0cml4KDAsMSwtMSwwLDAsMCkiIC8+CiAgPHJlY3QKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLDEsLTEsMCwwLDApIgogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjAuOTg0MzEzNzM7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiCiAgICAgeD0iNTMiCiAgICAgeT0iLTY2IgogICAgIHdpZHRoPSIxMi45OTk5OSIKICAgICBoZWlnaHQ9IjEuOTk5OTk1NyIKICAgICBpZD0icmVjdDQ2NTciIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ2NTkiCiAgICAgaGVpZ2h0PSIwLjk5OTk5MjkxIgogICAgIHdpZHRoPSIxMS45OTk5OTkiCiAgICAgeT0iNTciCiAgICAgeD0iNTQiCiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MC45ODQzMTM3MztzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiNkM2QzZDM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjA7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICB4PSI1NCIKICAgICB5PSI4OC4wMDAxMjIiCiAgICAgd2lkdGg9IjExLjk5OTk5NiIKICAgICBoZWlnaHQ9IjEuOTk5OTk2MSIKICAgICBpZD0icmVjdDQ2NjEiIC8+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgeD0iODAuMDAwMDA4IgogICAgIHk9Ijc2LjAwMDEyMiIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDY2MyIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDY2NSIKICAgICBoZWlnaHQ9IjIuOTk5OTkwNSIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIHk9Ijc2LjAwMDEyMiIKICAgICB4PSI4NS4wMDAwMDgiCiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2Utb3BhY2l0eToxIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NjY3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIHdpZHRoPSIyLjk5OTk5MDciCiAgICAgeT0iODIuMDAwMTIyIgogICAgIHg9IjgwLjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPHJlY3QKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgeD0iODUuMDAwMDA4IgogICAgIHk9IjgyLjAwMDEyMiIKICAgICB3aWR0aD0iMi45OTk5OTA3IgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIGlkPSJyZWN0NDY2OSIgLz4KICA8cmVjdAogICAgIHN0eWxlPSJmaWxsOiNkM2QzZDM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjA7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICB4PSI4MC4wMDAwMDgiCiAgICAgeT0iODguMDAwMTIyIgogICAgIHdpZHRoPSIyLjk5OTk5MDciCiAgICAgaGVpZ2h0PSIyLjk5OTk5MDUiCiAgICAgaWQ9InJlY3Q0NjcxIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NjczIgogICAgIGhlaWdodD0iMi45OTk5OTA1IgogICAgIHdpZHRoPSIyLjk5OTk5MDciCiAgICAgeT0iODguMDAwMTIyIgogICAgIHg9Ijg1LjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPGNpcmNsZQogICAgIHI9IjQuNzQzODgzNiIKICAgICBjeT0iODEuOTM5MzMxIgogICAgIGN4PSIxMTAuMDYwODEiCiAgICAgaWQ9ImNpcmNsZTQ2NzUiCiAgICAgc3R5bGU9Im9wYWNpdHk6MTtmaWxsOm5vbmU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOiNkM2QzZDM7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPHJlY3QKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjcwNzEwNjc4LDAuNzA3MTA2NzgsLTAuNzA3MTA2NzgsMC43MDcxMDY3OCwwLDApIgogICAgIGlkPSJyZWN0NDY3NyIKICAgICBoZWlnaHQ9IjYuNDA1Mzg4NCIKICAgICB3aWR0aD0iNC4yMjk3MTMiCiAgICAgeT0iLTE0LjgyNjgxNiIKICAgICB4PSIxMzMuNjE2MyIKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTojZDNkM2QzO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPHBhdGgKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2MiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBpZD0icGF0aDQ2NzkiCiAgICAgZD0ibSAxMjUsODAuMDAwMDA1IDEzLjc3MDI3LDAuMDk0OTkgTCAxMzIsODcuOTk5OTkyIFoiCiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6I2QzZDNkMztzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDxwYXRoCiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6I2QzZDNkMztzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgIGQ9Ik0gMTQ5LDg4LjAwMDIgMTYyLjc3MDI3LDg3LjkwNTIgMTU2LDgwLjAwMDIgWiIKICAgICBpZD0icGF0aDQ2ODEiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2MiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ2ODMiCiAgICAgaGVpZ2h0PSIxLjk5OTk5NjEiCiAgICAgd2lkdGg9IjExLjk5OTk5NiIKICAgICB5PSI3Ny4wMDAxMjIiCiAgICAgeD0iNTQiCiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2Utb3BhY2l0eToxIiAvPgogIDxyZWN0CiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMCwxLC0xLDAsMCwwKSIKICAgICBzdHlsZT0iZmlsbDojZDNkM2QzO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgeD0iNzcuMDAwMTIyIgogICAgIHk9Ii01NiIKICAgICB3aWR0aD0iMTIuOTk5OTkiCiAgICAgaGVpZ2h0PSIxLjk5OTk5NTciCiAgICAgaWQ9InJlY3Q0Njg1IiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0Njg3IgogICAgIGhlaWdodD0iMS45OTk5OTU3IgogICAgIHdpZHRoPSIxMi45OTk5OSIKICAgICB5PSItNjYiCiAgICAgeD0iNzcuMDAwMTIyIgogICAgIHN0eWxlPSJmaWxsOiNkM2QzZDM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjA7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLDEsLTEsMCwwLDApIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6I2QzZDNkMztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MDtzdHJva2Utb3BhY2l0eToxIgogICAgIHg9IjU0IgogICAgIHk9IjgxLjAwMDEyMiIKICAgICB3aWR0aD0iMTEuOTk5OTk5IgogICAgIGhlaWdodD0iMC45OTk5OTI5MSIKICAgICBpZD0icmVjdDQ2ODkiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ3NjEtMSIKICAgICBoZWlnaHQ9IjEuOTk5OTk0NSIKICAgICB3aWR0aD0iMTUuOTk5OTkiCiAgICAgeT0iMTAxIgogICAgIHg9Ijc2LjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ3NjEtMCIKICAgICBoZWlnaHQ9IjEuOTk5OTk0NSIKICAgICB3aWR0aD0iMTUuOTk5OTkiCiAgICAgeT0iMTA1IgogICAgIHg9Ijc2LjAwMDAwOCIKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQ3NjEtNyIKICAgICBoZWlnaHQ9IjEuOTk5OTk0NSIKICAgICB3aWR0aD0iOSIKICAgICB5PSIxMDkiCiAgICAgeD0iNzYuMDAwMDA4IgogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjAuODtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDc2MS0xLTEiCiAgICAgaGVpZ2h0PSIxLjk5OTk5NDUiCiAgICAgd2lkdGg9IjEyIgogICAgIHk9IjEyNSIKICAgICB4PSI3Ni4wMDAwMDgiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NzYxLTEtMS00IgogICAgIGhlaWdodD0iMS45OTk5OTQ1IgogICAgIHdpZHRoPSIxMCIKICAgICB5PSIxMzciCiAgICAgeD0iNzYuMDAwMDA4IgogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjAuODtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIgLz4KICA8cmVjdAogICAgIGlkPSJyZWN0NDc2MS0xLTEtNC00IgogICAgIGhlaWdodD0iMS45OTk5OTQ1IgogICAgIHdpZHRoPSIxMCIKICAgICB5PSIxMjkiCiAgICAgeD0iODIiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxyZWN0CiAgICAgaWQ9InJlY3Q0NzYxLTEtMS00LTQtMyIKICAgICBoZWlnaHQ9IjEuOTk5OTk0NSIKICAgICB3aWR0aD0iOSIKICAgICB5PSIxMzMiCiAgICAgeD0iODIiCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowIiAvPgogIDxwYXRoCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMDtmb250LXN0eWxlOm5vcm1hbDtmb250LXZhcmlhbnQ6bm9ybWFsO2ZvbnQtd2VpZ2h0Om5vcm1hbDtmb250LXN0cmV0Y2g6bm9ybWFsO2ZvbnQtc2l6ZTptZWRpdW07bGluZS1oZWlnaHQ6bm9ybWFsO2ZvbnQtZmFtaWx5OnNhbnMtc2VyaWY7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO3RleHQtZGVjb3JhdGlvbi1saW5lOm5vbmU7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwMDAwO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7YmFzZWxpbmUtc2hpZnQ6YmFzZWxpbmU7dGV4dC1hbmNob3I6c3RhcnQ7d2hpdGUtc3BhY2U6bm9ybWFsO2NsaXAtcnVsZTpub256ZXJvO2Rpc3BsYXk6aW5saW5lO292ZXJmbG93OnZpc2libGU7dmlzaWJpbGl0eTp2aXNpYmxlO29wYWNpdHk6MC44O2lzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtjb2xvci1pbnRlcnBvbGF0aW9uOnNSR0I7Y29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzOmxpbmVhclJHQjtzb2xpZC1jb2xvcjojMDAwMDAwO3NvbGlkLW9wYWNpdHk6MTtmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjIuNjYxNTc4NjY7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICBkPSJtIDM2LjM5ODQzOCwxMDAuMDI1NCBjIC0wLjQyMzM2MiwtMC4wMTMgLTAuODQ2ODQ3LDAuMDEgLTEuMjY1NjI2LDAuMDYyIC0xLjY1NjU2MiwwLjIxOTYgLTMuMjQ0NTY3LDAuOTczOSAtNC41MDc4MTIsMi4yMjY2IEwgMjksMTAwLjU5OTEgbCAtMi4zMjQyMTksNy43MTI5IDcuODI2MTcyLC0xLjkwNjIgLTEuODA0Njg3LC0xLjkwNjMgYyAxLjU5NzcwMiwtMS41MzA4IDQuMDQ4NzA2LC0xLjg0NTMgNS45ODQzNzUsLTAuNzIwNyAxLjk3MTE2MiwxLjE0NTIgMi44ODE5NTQsMy4zOTc1IDIuMzA4NTkzLDUuNTUwOCAtMC41NzMzNjEsMi4xNTMzIC0yLjUzMzg2NSwzLjY5NTMgLTQuODMwMDc4LDMuNjk1MyBsIDAsMy4wNzQyIGMgMy41NTA3NTYsMCA2LjcxMDQ0MiwtMi40MTEzIDcuNjUwMzkxLC01Ljk0MTQgMC45Mzk5NDksLTMuNTMwMSAtMC42MTg0NjMsLTcuMjczNiAtMy43MTA5MzgsLTkuMDcwMyAtMS4xNTk2NzgsLTAuNjczOCAtMi40MzEwODcsLTEuMDIzMSAtMy43MDExNzEsLTEuMDYyNSB6IgogICAgIGlkPSJwYXRoNDEzOCIgLz4KICA8cGF0aAogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc3R5bGU9ImNvbG9yOiMwMDAwMDA7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6bWVkaXVtO2xpbmUtaGVpZ2h0Om5vcm1hbDtmb250LWZhbWlseTpzYW5zLXNlcmlmO3RleHQtaW5kZW50OjA7dGV4dC1hbGlnbjpzdGFydDt0ZXh0LWRlY29yYXRpb246bm9uZTt0ZXh0LWRlY29yYXRpb24tbGluZTpub25lO3RleHQtZGVjb3JhdGlvbi1zdHlsZTpzb2xpZDt0ZXh0LWRlY29yYXRpb24tY29sb3I6IzAwMDAwMDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO2Jhc2VsaW5lLXNoaWZ0OmJhc2VsaW5lO3RleHQtYW5jaG9yOnN0YXJ0O3doaXRlLXNwYWNlOm5vcm1hbDtjbGlwLXJ1bGU6bm9uemVybztkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO3Zpc2liaWxpdHk6dmlzaWJsZTtvcGFjaXR5OjAuODtpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7Y29sb3ItaW50ZXJwb2xhdGlvbjpzUkdCO2NvbG9yLWludGVycG9sYXRpb24tZmlsdGVyczpsaW5lYXJSR0I7c29saWQtY29sb3I6IzAwMDAwMDtzb2xpZC1vcGFjaXR5OjE7ZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoyLjY2MTU3ODY2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1kYXNob2Zmc2V0OjA7c3Ryb2tlLW9wYWNpdHk6MTtjb2xvci1yZW5kZXJpbmc6YXV0bztpbWFnZS1yZW5kZXJpbmc6YXV0bztzaGFwZS1yZW5kZXJpbmc6YXV0bzt0ZXh0LXJlbmRlcmluZzphdXRvO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgZD0ibSA1OS43MjI2NTYsOTkuOTYyOSBjIC0xLjI3MDA4NCwwLjAzOSAtMi41NDE0OTMsMC4zODg3IC0zLjcwMTE3MiwxLjA2MjUgLTMuMDkyNDc1LDEuNzk2NyAtNC42NTA4ODYsNS41NDAyIC0zLjcxMDkzNyw5LjA3MDMgMC45Mzk5NDksMy41MzAxIDQuMDk3NjgsNS45NDE0IDcuNjQ4NDM3LDUuOTQxNCBsIDAsLTMuMDc0MiBjIC0yLjI5NjIxNCwwIC00LjI1NjcxNywtMS41NDIgLTQuODMwMDc4LC0zLjY5NTMgLTAuNTczMzYxLC0yLjE1MzMgMC4zMzc0MzIsLTQuNDA1NiAyLjMwODU5NCwtNS41NTA4IDEuOTM1NzMxLC0xLjEyNDYgNC4zODg2MywtMC44MTAyIDUuOTg2MzI2LDAuNzIwNyBsIC0xLjgwNjYzOCwxLjkwNjMgNy44MjgxMjgsMS45MDYyIC0yLjMyNDIyLC03LjcxMjkgLTEuNjI2OTYsMS43MTY4IGMgLTEuMjYzMzgsLTEuMjUzMSAtMi44NDg5MTcsLTIuMDA4OCAtNC41MDU4NTUsLTIuMjI4NSAtMC40MTg3NzgsLTAuMDU1IC0wLjg0MjI2MywtMC4wNzYgLTEuMjY1NjI1LC0wLjA2MiB6IgogICAgIGlkPSJwYXRoNDEzOC0xIiAvPgogIDxwYXRoCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzdHlsZT0ib3BhY2l0eTowLjg7ZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjk2NTk5OTk2O3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIGQ9Im0gMTAuNSwxMDAgMCwyIC0yLjQ5OTk5OTYsMCBMIDEyLDEwNyBsIDQsLTUgLTIuNSwwIDAsLTIgLTMsMCB6IgogICAgIGlkPSJwYXRoMzA1NS0wLTc3IiAvPgogIDxwYXRoCiAgICAgc3R5bGU9Im9wYWNpdHk6MC44O2ZpbGw6bm9uZTtzdHJva2U6I2ZmZmZmZjtzdHJva2Utd2lkdGg6MS45NjU5OTk5NjtzdHJva2UtbGluZWNhcDpzcXVhcmU7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgZD0ibSA0Ljk4NTA1NzQsMTA4LjAxNSAxNC4wMjk4ODU2LC0wLjAzIgogICAgIGlkPSJwYXRoNTI0NC01LTAtNSIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0ib3BhY2l0eTowLjg7ZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoxLjk2NTk5OTk2O3N0cm9rZS1saW5lY2FwOnNxdWFyZTtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDQuOTg0OTg3NCwxMzIuMDE1IDE0LjAyOTg4NjYsLTAuMDMiCiAgICAgaWQ9InBhdGg1MjQ0LTUtMC01LTgiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjIiAvPgogIDxwYXRoCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzdHlsZT0iY29sb3I6IzAwMDAwMDtmb250LXN0eWxlOm5vcm1hbDtmb250LXZhcmlhbnQ6bm9ybWFsO2ZvbnQtd2VpZ2h0Om5vcm1hbDtmb250LXN0cmV0Y2g6bm9ybWFsO2ZvbnQtc2l6ZTptZWRpdW07bGluZS1oZWlnaHQ6bm9ybWFsO2ZvbnQtZmFtaWx5OnNhbnMtc2VyaWY7dGV4dC1pbmRlbnQ6MDt0ZXh0LWFsaWduOnN0YXJ0O3RleHQtZGVjb3JhdGlvbjpub25lO3RleHQtZGVjb3JhdGlvbi1saW5lOm5vbmU7dGV4dC1kZWNvcmF0aW9uLXN0eWxlOnNvbGlkO3RleHQtZGVjb3JhdGlvbi1jb2xvcjojMDAwMDAwO2xldHRlci1zcGFjaW5nOm5vcm1hbDt3b3JkLXNwYWNpbmc6bm9ybWFsO3RleHQtdHJhbnNmb3JtOm5vbmU7ZGlyZWN0aW9uOmx0cjtibG9jay1wcm9ncmVzc2lvbjp0Yjt3cml0aW5nLW1vZGU6bHItdGI7YmFzZWxpbmUtc2hpZnQ6YmFzZWxpbmU7dGV4dC1hbmNob3I6c3RhcnQ7d2hpdGUtc3BhY2U6bm9ybWFsO2NsaXAtcnVsZTpub256ZXJvO2Rpc3BsYXk6aW5saW5lO292ZXJmbG93OnZpc2libGU7dmlzaWJpbGl0eTp2aXNpYmxlO29wYWNpdHk6MC40O2lzb2xhdGlvbjphdXRvO21peC1ibGVuZC1tb2RlOm5vcm1hbDtjb2xvci1pbnRlcnBvbGF0aW9uOnNSR0I7Y29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzOmxpbmVhclJHQjtzb2xpZC1jb2xvcjojMDAwMDAwO3NvbGlkLW9wYWNpdHk6MTtmaWxsOiM0ZDRkNGQ7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjIuNjYxNTc4NjY7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLWRhc2hvZmZzZXQ6MDtzdHJva2Utb3BhY2l0eToxO2NvbG9yLXJlbmRlcmluZzphdXRvO2ltYWdlLXJlbmRlcmluZzphdXRvO3NoYXBlLXJlbmRlcmluZzphdXRvO3RleHQtcmVuZGVyaW5nOmF1dG87ZW5hYmxlLWJhY2tncm91bmQ6YWNjdW11bGF0ZSIKICAgICBkPSJtIDM2LjM5ODQzOCwxMjMuOTYyOSBjIC0wLjQyMzM2MiwtMC4wMTMgLTAuODQ2ODQ3LDAuMDEgLTEuMjY1NjI2LDAuMDYyIC0xLjY1NjU2MiwwLjIxOTYgLTMuMjQ0NTY3LDAuOTczOSAtNC41MDc4MTIsMi4yMjY2IEwgMjksMTI0LjUzNjYgbCAtMi4zMjQyMTksNy43MTI5IDcuODI2MTcyLC0xLjkwNjIgLTEuODA0Njg3LC0xLjkwNjMgYyAxLjU5NzcwMiwtMS41MzA4IDQuMDQ4NzA2LC0xLjg0NTMgNS45ODQzNzUsLTAuNzIwNyAxLjk3MTE2MiwxLjE0NTMgMi44ODE5NTQsMy4zOTc1IDIuMzA4NTkzLDUuNTUwOCAtMC41NzMzNjEsMi4xNTMzIC0yLjUzMzg2NCwzLjY5NTMgLTQuODMwMDc4LDMuNjk1MyBsIDAsMy4wNzQyIGMgMy41NTA3NTcsMCA2LjcxMDQ0MiwtMi40MDkzIDcuNjUwMzkxLC01LjkzOTQgMC45Mzk5NDksLTMuNTMwMSAtMC42MTg0NjMsLTcuMjc1NiAtMy43MTA5MzgsLTkuMDcyMyAtMS4xNTk2NzgsLTAuNjczNyAtMi40MzEwODcsLTEuMDIzMSAtMy43MDExNzEsLTEuMDYyNSB6IgogICAgIGlkPSJwYXRoNDEzOC0xMiIgLz4KICA8cGF0aAogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc3R5bGU9ImNvbG9yOiMwMDAwMDA7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC12YXJpYW50Om5vcm1hbDtmb250LXdlaWdodDpub3JtYWw7Zm9udC1zdHJldGNoOm5vcm1hbDtmb250LXNpemU6bWVkaXVtO2xpbmUtaGVpZ2h0Om5vcm1hbDtmb250LWZhbWlseTpzYW5zLXNlcmlmO3RleHQtaW5kZW50OjA7dGV4dC1hbGlnbjpzdGFydDt0ZXh0LWRlY29yYXRpb246bm9uZTt0ZXh0LWRlY29yYXRpb24tbGluZTpub25lO3RleHQtZGVjb3JhdGlvbi1zdHlsZTpzb2xpZDt0ZXh0LWRlY29yYXRpb24tY29sb3I6IzAwMDAwMDtsZXR0ZXItc3BhY2luZzpub3JtYWw7d29yZC1zcGFjaW5nOm5vcm1hbDt0ZXh0LXRyYW5zZm9ybTpub25lO2RpcmVjdGlvbjpsdHI7YmxvY2stcHJvZ3Jlc3Npb246dGI7d3JpdGluZy1tb2RlOmxyLXRiO2Jhc2VsaW5lLXNoaWZ0OmJhc2VsaW5lO3RleHQtYW5jaG9yOnN0YXJ0O3doaXRlLXNwYWNlOm5vcm1hbDtjbGlwLXJ1bGU6bm9uemVybztkaXNwbGF5OmlubGluZTtvdmVyZmxvdzp2aXNpYmxlO3Zpc2liaWxpdHk6dmlzaWJsZTtvcGFjaXR5OjAuNDtpc29sYXRpb246YXV0bzttaXgtYmxlbmQtbW9kZTpub3JtYWw7Y29sb3ItaW50ZXJwb2xhdGlvbjpzUkdCO2NvbG9yLWludGVycG9sYXRpb24tZmlsdGVyczpsaW5lYXJSR0I7c29saWQtY29sb3I6IzAwMDAwMDtzb2xpZC1vcGFjaXR5OjE7ZmlsbDojNGQ0ZDRkO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpub256ZXJvO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoyLjY2MTU3ODY2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1kYXNob2Zmc2V0OjA7c3Ryb2tlLW9wYWNpdHk6MTtjb2xvci1yZW5kZXJpbmc6YXV0bztpbWFnZS1yZW5kZXJpbmc6YXV0bztzaGFwZS1yZW5kZXJpbmc6YXV0bzt0ZXh0LXJlbmRlcmluZzphdXRvO2VuYWJsZS1iYWNrZ3JvdW5kOmFjY3VtdWxhdGUiCiAgICAgZD0ibSA1OS43MjI2NTYsMTIzLjk2MjkgYyAtMS4yNzAwODQsMC4wMzkgLTIuNTQxNDkzLDAuMzg4OCAtMy43MDExNzIsMS4wNjI1IC0zLjA5MjQ3NSwxLjc5NjcgLTQuNjUwODg2LDUuNTQyMiAtMy43MTA5MzcsOS4wNzIzIDAuOTM5OTQ5LDMuNTMwMSA0LjA5NzY4LDUuOTM5NCA3LjY0ODQzNyw1LjkzOTQgbCAwLC0zLjA3NDIgYyAtMi4yOTYyMTQsMCAtNC4yNTY3MTcsLTEuNTQyIC00LjgzMDA3OCwtMy42OTUzIC0wLjU3MzM2MSwtMi4xNTMzIDAuMzM3NDMyLC00LjQwNTUgMi4zMDg1OTQsLTUuNTUwOCAxLjkzNTczMSwtMS4xMjQ2IDQuMzg4NjMsLTAuODEwMiA1Ljk4NjMyNiwwLjcyMDcgbCAtMS44MDY2MzgsMS45MDYzIDcuODI4MTI4LDEuOTA2MiAtMi4zMjQyMiwtNy43MTI5IC0xLjYyNjk2LDEuNzE2OCBjIC0xLjI2MzM4LC0xLjI1MzEgLTIuODQ4OTE3LC0yLjAwODggLTQuNTA1ODU1LC0yLjIyODUgLTAuNDE4Nzc4LC0wLjA1NSAtMC44NDIyNjMsLTAuMDc2IC0xLjI2NTYyNSwtMC4wNjIgeiIKICAgICBpZD0icGF0aDQxMzgtMS0zIiAvPgogIDxwYXRoCiAgICAgaWQ9InBhdGg2MTkxIgogICAgIGQ9Im0gMTAuNSwxMTYgMCwtMiAtMi40OTk5OTk2LDAgTCAxMiwxMDkgbCA0LDUgLTIuNSwwIDAsMiAtMywwIHoiCiAgICAgc3R5bGU9Im9wYWNpdHk6MC44O2ZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS45NjU5OTk5NjtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDxwYXRoCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzdHlsZT0ib3BhY2l0eTowLjg7ZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjk2NTk5OTk2O3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIGQ9Im0gMTAuNSwxMjkgMCwtMiAtMi40OTk5OTk2LDAgTCAxMiwxMjIgbCA0LDUgLTIuNSwwIDAsMiAtMywwIHoiCiAgICAgaWQ9InBhdGg2MTkzIiAvPgogIDxwYXRoCiAgICAgaWQ9InBhdGg2MTk1IgogICAgIGQ9Im0gMTAuNSwxMzUgMCwyIC0yLjQ5OTk5OTYsMCBMIDEyLDE0MiBsIDQsLTUgLTIuNSwwIDAsLTIgLTMsMCB6IgogICAgIHN0eWxlPSJvcGFjaXR5OjAuODtmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuOTY1OTk5OTY7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmUiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIgLz4KICA8cGF0aAogICAgIHNvZGlwb2RpOnR5cGU9InN0YXIiCiAgICAgc3R5bGU9ImZpbGw6IzRkNGQ0ZDtmaWxsLW9wYWNpdHk6MC45MDE5NjA3ODtzdHJva2U6I2QzZDNkMztzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmUiCiAgICAgaWQ9InBhdGg0NTAwIgogICAgIHNvZGlwb2RpOnNpZGVzPSIzIgogICAgIHNvZGlwb2RpOmN4PSIxMS41NTU4MSIKICAgICBzb2RpcG9kaTpjeT0iNjAuMDczMjQyIgogICAgIHNvZGlwb2RpOnIxPSI1LjExMTYxMDQiCiAgICAgc29kaXBvZGk6cjI9IjIuNTU1ODA1MiIKICAgICBzb2RpcG9kaTphcmcxPSIwIgogICAgIHNvZGlwb2RpOmFyZzI9IjEuMDQ3MTk3NiIKICAgICBpbmtzY2FwZTpmbGF0c2lkZWQ9ImZhbHNlIgogICAgIGlua3NjYXBlOnJvdW5kZWQ9IjAiCiAgICAgaW5rc2NhcGU6cmFuZG9taXplZD0iMCIKICAgICBkPSJtIDE2LjY2NzQyLDYwLjA3MzI0MiAtMy44MzM3MDgsMi4yMTMzOTIgLTMuODMzNzA3MiwyLjIxMzM5MyAwLC00LjQyNjc4NSAwLC00LjQyNjc4NCAzLjgzMzcwODIsMi4yMTMzOTIgeiIKICAgICBpbmtzY2FwZTp0cmFuc2Zvcm0tY2VudGVyLXg9Ii0xLjI3NzkwMjYiIC8+CiAgPHBhdGgKICAgICBpbmtzY2FwZTp0cmFuc2Zvcm0tY2VudGVyLXg9IjEuMjc3OTAyIgogICAgIGQ9Im0gLTMxLjUwMDAwNCw2MC4wNzMyNDIgLTMuODMzNzA4LDIuMjEzMzkyIC0zLjgzMzcwNywyLjIxMzM5MyAwLC00LjQyNjc4NSAwLC00LjQyNjc4NCAzLjgzMzcwNywyLjIxMzM5MiB6IgogICAgIGlua3NjYXBlOnJhbmRvbWl6ZWQ9IjAiCiAgICAgaW5rc2NhcGU6cm91bmRlZD0iMCIKICAgICBpbmtzY2FwZTpmbGF0c2lkZWQ9ImZhbHNlIgogICAgIHNvZGlwb2RpOmFyZzI9IjEuMDQ3MTk3NiIKICAgICBzb2RpcG9kaTphcmcxPSIwIgogICAgIHNvZGlwb2RpOnIyPSIyLjU1NTgwNTIiCiAgICAgc29kaXBvZGk6cjE9IjUuMTExNjEwNCIKICAgICBzb2RpcG9kaTpjeT0iNjAuMDczMjQyIgogICAgIHNvZGlwb2RpOmN4PSItMzYuNjExNjE0IgogICAgIHNvZGlwb2RpOnNpZGVzPSIzIgogICAgIGlkPSJwYXRoNDUwMiIKICAgICBzdHlsZT0iZmlsbDojNGQ0ZDRkO2ZpbGwtb3BhY2l0eTowLjkwMTk2MDc4O3N0cm9rZTojZDNkM2QzO3N0cm9rZS13aWR0aDowO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBzb2RpcG9kaTp0eXBlPSJzdGFyIgogICAgIHRyYW5zZm9ybT0ic2NhbGUoLTEsMSkiIC8+CiAgPHBhdGgKICAgICBkPSJtIDE2LjY2NzQyLDYwLjA3MzIxMiAtMy44MzM3MDgsMi4yMTMzOTIgLTMuODMzNzA3MiwyLjIxMzM5MiAwLC00LjQyNjc4NCAwLC00LjQyNjc4NSAzLjgzMzcwODIsMi4yMTMzOTIgeiIKICAgICBpbmtzY2FwZTpyYW5kb21pemVkPSIwIgogICAgIGlua3NjYXBlOnJvdW5kZWQ9IjAiCiAgICAgaW5rc2NhcGU6ZmxhdHNpZGVkPSJmYWxzZSIKICAgICBzb2RpcG9kaTphcmcyPSIxLjA0NzE5NzYiCiAgICAgc29kaXBvZGk6YXJnMT0iMCIKICAgICBzb2RpcG9kaTpyMj0iMi41NTU4MDUyIgogICAgIHNvZGlwb2RpOnIxPSI1LjExMTYxMDQiCiAgICAgc29kaXBvZGk6Y3k9IjYwLjA3MzIxMiIKICAgICBzb2RpcG9kaTpjeD0iMTEuNTU1ODEiCiAgICAgc29kaXBvZGk6c2lkZXM9IjMiCiAgICAgaWQ9InBhdGg0NTA0IgogICAgIHN0eWxlPSJmaWxsOiM0ZDRkNGQ7ZmlsbC1vcGFjaXR5OjAuOTAxOTYwNzg7c3Ryb2tlOiNkM2QzZDM7c3Ryb2tlLXdpZHRoOjA7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIHNvZGlwb2RpOnR5cGU9InN0YXIiCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMCwxLC0xLDAsNzIuMDA3NCw3MS43ODc3KSIKICAgICBpbmtzY2FwZTp0cmFuc2Zvcm0tY2VudGVyLXk9IjEuMjc3OTAyOSIgLz4KICA8cGF0aAogICAgIGlua3NjYXBlOnRyYW5zZm9ybS1jZW50ZXIteT0iLTEuMjc3OTAyNiIKICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLC0xLC0xLDAsOTYsOTYpIgogICAgIHNvZGlwb2RpOnR5cGU9InN0YXIiCiAgICAgc3R5bGU9ImZpbGw6IzRkNGQ0ZDtmaWxsLW9wYWNpdHk6MC45MDE5NjA3ODtzdHJva2U6I2QzZDNkMztzdHJva2Utd2lkdGg6MDtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmUiCiAgICAgaWQ9InBhdGg0NTA2IgogICAgIHNvZGlwb2RpOnNpZGVzPSIzIgogICAgIHNvZGlwb2RpOmN4PSIxMS41NTU4MSIKICAgICBzb2RpcG9kaTpjeT0iNjAuMDczMjEyIgogICAgIHNvZGlwb2RpOnIxPSI1LjExMTYxMDQiCiAgICAgc29kaXBvZGk6cjI9IjIuNTU1ODA1MiIKICAgICBzb2RpcG9kaTphcmcxPSIwIgogICAgIHNvZGlwb2RpOmFyZzI9IjEuMDQ3MTk3NiIKICAgICBpbmtzY2FwZTpmbGF0c2lkZWQ9ImZhbHNlIgogICAgIGlua3NjYXBlOnJvdW5kZWQ9IjAiCiAgICAgaW5rc2NhcGU6cmFuZG9taXplZD0iMCIKICAgICBkPSJtIDE2LjY2NzQyLDYwLjA3MzIxMiAtMy44MzM3MDgsMi4yMTMzOTIgLTMuODMzNzA3MiwyLjIxMzM5MiAwLC00LjQyNjc4NCAwLC00LjQyNjc4NSAzLjgzMzcwODIsMi4yMTMzOTIgeiIgLz4KICA8cGF0aAogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjYyIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgIGlkPSJwYXRoNDYxNS01IgogICAgIGQ9Im0gMTcxLjgyNTc0LDY1LjE3NDE5MyAxNi4zNDg1NCwwIC04LjE3NDI3LC0xMy4zNDg0NTQgeiIKICAgICBzdHlsZT0iZmlsbDojZmJiOTE3O2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTojZmJiOTE3O3N0cm9rZS13aWR0aDoxLjY1MTYxMzk1O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0ib3BhY2l0eToxO2ZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtmaWxsLXJ1bGU6ZXZlbm9kZDtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MXB4O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOm1pdGVyO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgZD0ibSAxNzksNTUgMCw2IDIsMCAwLC02IgogICAgIGlkPSJwYXRoNDMwMCIKICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjYyIgLz4KICA8cGF0aAogICAgIHN0eWxlPSJvcGFjaXR5OjE7ZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxcHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDE3OSw2MiAwLDIgMiwwIDAsLTIiCiAgICAgaWQ9InBhdGg0MzAwLTYiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2MiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOiNmZmZmZmY7c3Ryb2tlLXdpZHRoOjFweDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2Utb3BhY2l0eTowLjgiCiAgICAgZD0iTSA5OS45OTQzNjksMTEzLjAyMjEgMTAyLDExNC45ODM1MyBsIDcsLTYuOTU1OCAzLDAuOTcyMjcgMiwtMSAxLC0yIDAsLTMgLTMsMyAtMywtMyAzLC0zIC0zLDAgLTIsMSAtMSwyIDAuOTk0MzcsMy4wMjIxIHoiCiAgICAgaWQ9InBhdGg0MjY4IgogICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NjY2NjY2NjY2MiIC8+CiAgPHJlY3QKICAgICBpZD0icmVjdDQxNzUtMy01IgogICAgIGhlaWdodD0iMTYiCiAgICAgd2lkdGg9IjE2IgogICAgIHk9IjQiCiAgICAgeD0iMjIwIgogICAgIHN0eWxlPSJmaWxsOiM0YzRjNGM7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAiIC8+CiAgPHBhdGgKICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxcHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDIzNCw2IDAsMiAtNSw1IDAsNSAtMiwwIDAsLTUgLTUsLTUgMCwtMiIKICAgICBpZD0icGF0aDM1NDYiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2NjY2NjIiAvPgogIDxnCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzI4LDAsMCwtMS41OTk5OTkyLC0xMzkuOTk5OSwxMjcuMTk5OTkpIgogICAgIGlkPSJnNDM4My02Ij4KICAgIDxyZWN0CiAgICAgICBpZD0icmVjdDQzODUtMiIKICAgICAgIGhlaWdodD0iMS4yNDk5OTA1IgogICAgICAgd2lkdGg9IjUuOTk5OTkyNCIKICAgICAgIHk9IjEyLjYyNTAwNSIKICAgICAgIHg9IjE5OC4wMDAwMiIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjAuODtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAiCiAgICAgICB4PSIxOTguMDAwMDIiCiAgICAgICB5PSIxNS4xMjUwMDciCiAgICAgICB3aWR0aD0iNy40OTk5OTI4IgogICAgICAgaGVpZ2h0PSIxLjI0OTk5NDkiCiAgICAgICBpZD0icmVjdDQzODctOSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eTowLjg7c3Ryb2tlOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAiCiAgICAgICB4PSIxOTguMDAwMDIiCiAgICAgICB5PSI3LjYyNTAwMjQiCiAgICAgICB3aWR0aD0iMi45OTk5OTA5IgogICAgICAgaGVpZ2h0PSIxLjI0OTk5MDUiCiAgICAgICBpZD0icmVjdDQzODktMS0wIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjAuODtzdHJva2U6IzAwMDAwMDtzdHJva2Utd2lkdGg6MCIKICAgICAgIHg9IjE5OC4wMDAwMiIKICAgICAgIHk9IjEwLjEyNTAwNCIKICAgICAgIHdpZHRoPSI0LjQ5OTk5MTkiCiAgICAgICBoZWlnaHQ9IjEuMjQ5OTkwNSIKICAgICAgIGlkPSJyZWN0NDM4OS0xLTkiIC8+CiAgICA8cGF0aAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDowLjY4NDY1MzUycHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGQ9Im0gMjA3LjAwMDAxLDE2LjM3NTAwNCAwLC01LjYyNTAwNSAtMi4yNSwwIDMsLTMuMTI1MDAxNCAzLDMuMTI1MDAxNCAtMi4yNSwwIDAsNS42MjUwMDUgLTEuNSwwIgogICAgICAgaWQ9InBhdGg0NDAyIgogICAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0iY2NjY2NjY2MiIC8+CiAgPC9nPgogIDxwYXRoCiAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MC44O2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxcHg7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46bWl0ZXI7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICBkPSJtIDE2NCwxMDAgMCwzIC02LDYgMCw3IC00LDAgMCwtNyAtNiwtNiAwLC0zIgogICAgIGlkPSJwYXRoMzU0Ni0yLTIiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjY2NjY2NjIiAvPgogIDxyZWN0CiAgICAgc3R5bGU9ImZpbGw6IzRjNGM0YztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MCIKICAgICBpZD0ic3ZnXzEtMyIKICAgICBoZWlnaHQ9IjE2IgogICAgIHdpZHRoPSIxNiIKICAgICB5PSIyOCIKICAgICB4PSI0IiAvPgogIDxwYXRoCiAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJjY2NjY2NjY2MiCiAgICAgaW5rc2NhcGU6Y29ubmVjdG9yLWN1cnZhdHVyZT0iMCIKICAgICBpZD0icGF0aDQ0MDItNS03IgogICAgIGQ9Im0gMTUsNDEgMCwtNyAtNCwwIDAsMyAtNSwtNCA1LC00IDAsMyA2LDAgMCw5IgogICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjAuNjg0NjUzNTJweDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIiAvPgo8L3N2Zz4K"},function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=u[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(o(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(o(n.parts[r]));u[n.id]={id:n.id,refs:1,parts:a}}}}function r(){var t=document.createElement("style");return t.type="text/css",h.appendChild(t),t}function o(t){var e,n,i=document.querySelector("style["+v+'~="'+t.id+'"]');if(i){if(f)return g;i.parentNode.removeChild(i)}if(y){var o=p++;i=d||(d=r()),e=a.bind(null,i,o,!1),n=a.bind(null,i,o,!0)}else i=r(),e=s.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function a(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=b(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function s(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),m.ssrId&&t.setAttribute(v,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c=n(10),u={},h=l&&(document.head||document.getElementsByTagName("head")[0]),d=null,p=0,f=!1,g=function(){},m=null,v="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n,r){f=n,m=r||{};var o=c(t,e);return i(o),function(e){for(var n=[],r=0;r<o.length;r++){var a=o[r],s=u[a.id];s.refs--,n.push(s)}e?(o=c(t,e),i(o)):o=[];for(r=0;r<n.length;r++){s=n[r];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete u[s.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";var i=n(12),r=n.n(i),o=n(13);n.n(o),e.a={name:"v-jsoneditor",data:function(){return{editor:null,style:{},max:!1,internalChange:!1}},props:{options:{type:Object,default:function(){return{mode:"code"}}},value:[Object,Array,Number,String,Boolean],height:{type:String},plus:{type:Boolean,default:!0}},methods:{onChange:function(){var t=this,e=null,n={};try{n=this.editor.get()}catch(t){e=t}e?this.$emit("error",e):this.editor&&(this.internalChange=!0,this.$emit("input",n),this.$nextTick((function(){t.internalChange=!1})))},initView:function(){if(!this.editor){var t=this.$refs.jsoneditor,e=Object.assign({onChange:this.onChange,navigationBar:!1,statusBar:!1},this.options);this.editor=new r.a(t,e)}this.editor.set(this.value||{})},destroyView:function(){this.editor&&(this.editor.destroy(),this.editor=null)}},watch:{value:function(t){this.editor&&t&&!this.internalChange&&this.editor.set(t)},max:function(t){var e=this;this.$nextTick((function(){e.initView()}))}},mounted:function(){this.initView()},beforeDestroy:function(){this.destroyView()},computed:{getHeight:function(){return this.height&&!this.max?{height:this.height}:{}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6);e.default=i.a,i.a.install=function(t){t.component(i.a.name,i.a)},"undefined"!=typeof window&&window.Vue&&window.Vue.component(i.a.name,i.a)},function(t,e,n){"use strict";function i(t){n(7)}var r=n(4),o=n(15),a=n(11),s=i,l=a(r.a,o.a,!1,s,"data-v-7be2d28e",null);e.a=l.exports},function(t,e,n){var i=n(8);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),n(3)("54b8d0c0",i,!0,{})},function(t,e,n){var i=n(1);e=t.exports=n(2)(!1),e.push([t.i,".jsoneditor-container.max-box[data-v-7be2d28e]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000}.jsoneditor-container.min-box[data-v-7be2d28e]{position:relative;min-width:300px;width:100%}.jsoneditor-box[data-v-7be2d28e]{height:100%}.jsoneditor-container:hover .max-btn[data-v-7be2d28e]{display:block}.max-btn[data-v-7be2d28e]{display:none;position:absolute;top:7px;right:110px;color:#fff;width:24px;height:24px;background:transparent url("+i(n(9))+") no-repeat;background-position:3px;border:1px solid transparent;border-radius:3px}.max-btn[data-v-7be2d28e]:hover{border:1px solid #d7e6fe}",""])},function(t,e){t.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTIzNzY1NTcxODU1IiBjbGFzcz0iaWNvbiIgc3R5bGU9IiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE5MjciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTYzLjk4OTM4MyAxMDUuNDQyNDk0bDAgMjY4LjM5Njg0M2MwIDE4LjkzNTI1OCAxNS4zNjgwMTIgMzQuMzA0Mjk0IDM0LjMwNDI5NCAzNC4zMDQyOTQgMTguOTM2MjgxIDAgMzQuMzA0Mjk0LTE1LjM2OTAzNiAzNC4zMDQyOTQtMzQuMzA0Mjk0TDEzMi41OTc5NzEgMTgwLjE1NjEyNmwyMTguMTA3NDgzIDIxOC4xNzYwNDVjMTIuODI5MTkgMTIuODMwMjEzIDMzLjYxODY3OSAxMi44MzAyMTMgNDYuNTE1NDA3IDAgMTIuODMwMjEzLTEyLjg5Nzc1MSAxMi44MzAyMTMtMzMuNjg2MjE3IDAtNDYuNTE2NDNsLTIxOC4xNzYwNDUtMjE4LjEwNzQ4MyAxOTMuNjgzMjExIDBjMTguOTM1MjU4IDAgMzQuMzA0Mjk0LTE1LjM2OTAzNiAzNC4zMDQyOTQtMzQuMzA0Mjk0IDAtMTguOTM1MjU4LTE1LjM2OTAzNi0zNC4zMDQyOTQtMzQuMzA0Mjk0LTM0LjMwNDI5NEwxMDQuMzMxMTgzIDY1LjA5OTY3Qzc5LjI4ODgzNCA2NS4wOTk2NyA2My45ODkzODMgNzcuOTk5NDY4IDYzLjk4OTM4MyAxMDUuNDQyNDk0TDYzLjk4OTM4MyAxMDUuNDQyNDk0eiIgcC1pZD0iMTkyOCIgZmlsbD0iI2U2ZTZlNiI+PC9wYXRoPjxwYXRoIGQ9Ik05MTcuNjg4NzE5IDY1LjA5OTY3IDY0OS4yOTA4NTMgNjUuMDk5NjdjLTE4LjkzNTI1OCAwLTM0LjMwNDI5NCAxNS4zNjkwMzYtMzQuMzA0Mjk0IDM0LjMwNDI5NCAwIDE4LjkzNjI4MSAxNS4zNjkwMzYgMzQuMzA0Mjk0IDM0LjMwNDI5NCAzNC4zMDQyOTRsMTkzLjY4MzIxMSAwLTIxOC4xNzYwNDUgMjE4LjEwNzQ4M2MtMTIuODMwMjEzIDEyLjgyOTE5LTEyLjgzMDIxMyAzMy42MTg2NzkgMCA0Ni41MTY0MyAxMi44OTc3NTEgMTIuODMwMjEzIDMzLjY4NjIxNyAxMi44MzAyMTMgNDYuNTE1NDA3IDBMODg5LjQyMDkwOSAxODAuMTU2MTI2bDAgMTkzLjY4MzIxMWMwIDE4LjkzNTI1OCAxNS4zNjkwMzYgMzQuMzA0Mjk0IDM0LjMwNDI5NCAzNC4zMDQyOTQgMTguOTM2MjgxIDAgMzQuMzA0Mjk0LTE1LjM2OTAzNiAzNC4zMDQyOTQtMzQuMzA0Mjk0TDk1OC4wMjk0OTYgMTA1LjQ0MjQ5NEM5NTguMDI5NDk2IDc3Ljk5OTQ2OCA5NDIuNzk5NjMgNjUuMDk5NjcgOTE3LjY4ODcxOSA2NS4wOTk2N0w5MTcuNjg4NzE5IDY1LjA5OTY3eiIgcC1pZD0iMTkyOSIgZmlsbD0iI2U2ZTZlNiI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDQuMzMxMTgzIDk1Ny4wMTMzNTNsMjY4LjM5Nzg2NiAwYzE4LjkzNTI1OCAwIDM0LjMwNDI5NC0xNS4zNjgwMTIgMzQuMzA0Mjk0LTM0LjMwNDI5NCAwLTE4LjkzNjI4MS0xNS4zNjkwMzYtMzQuMzA0Mjk0LTM0LjMwNDI5NC0zNC4zMDQyOTRMMTc5LjA0NTgzOSA4ODguNDA0NzY2bDIxOC4xNzYwNDUtMjE4LjEwNzQ4M2MxMi44MzAyMTMtMTIuODI5MTkgMTIuODMwMjEzLTMzLjYxODY3OSAwLTQ2LjUxNTQwNy0xMi44OTc3NTEtMTIuODMwMjEzLTMzLjY4NjIxNy0xMi44MzAyMTMtNDYuNTE1NDA3IDBsLTIxOC4xMDc0ODMgMjE4LjE3NjA0NUwxMzIuNTk4OTk0IDY0OC4yNzQ3MWMwLTE4LjkzNTI1OC0xNS4zNjgwMTItMzQuMzA0Mjk0LTM0LjMwNDI5NC0zNC4zMDQyOTQtMTguOTM2MjgxIDAtMzQuMzA0Mjk0IDE1LjM2OTAzNi0zNC4zMDQyOTQgMzQuMzA0Mjk0bDAgMjY4LjM5Nzg2NkM2My45ODkzODMgOTQ0LjExNTYwMiA3OS4yODg4MzQgOTU3LjAxMzM1MyAxMDQuMzMxMTgzIDk1Ny4wMTMzNTNMMTA0LjMzMTE4MyA5NTcuMDEzMzUzeiIgcC1pZD0iMTkzMCIgZmlsbD0iI2U2ZTZlNiI+PC9wYXRoPjxwYXRoIGQ9Ik05NTguMDI5NDk2IDkxNi42NzE1NTMgOTU4LjAyOTQ5NiA2NDguMjc0NzFjMC0xOC45MzUyNTgtMTUuMzY4MDEyLTM0LjMwNDI5NC0zNC4zMDQyOTQtMzQuMzA0Mjk0LTE4LjkzNTI1OCAwLTM0LjMwNDI5NCAxNS4zNjkwMzYtMzQuMzA0Mjk0IDM0LjMwNDI5NGwwIDE5My42ODMyMTFMNjcxLjMxMzQyNSA2MjMuNzgxODc2Yy0xMi44MjkxOS0xMi44MzAyMTMtMzMuNjE4Njc5LTEyLjgzMDIxMy00Ni41MTU0MDcgMC0xMi44MzAyMTMgMTIuODk3NzUxLTEyLjgzMDIxMyAzMy42ODYyMTcgMCA0Ni41MTU0MDdsMjE4LjE3NjA0NSAyMTguMTA3NDgzTDY0OS4yOTA4NTMgODg4LjQwNDc2NmMtMTguOTM1MjU4IDAtMzQuMzA0Mjk0IDE1LjM2ODAxMi0zNC4zMDQyOTQgMzQuMzA0Mjk0IDAgMTguOTM2MjgxIDE1LjM2OTAzNiAzNC4zMDQyOTQgMzQuMzA0Mjk0IDM0LjMwNDI5NGwyNjguMzk3ODY2IDBDOTQyLjc5OTYzIDk1Ny4wMTMzNTMgOTU4LjAyOTQ5NiA5NDQuMTE1NjAyIDk1OC4wMjk0OTYgOTE2LjY3MTU1M0w5NTguMDI5NDk2IDkxNi42NzE1NTN6IiBwLWlkPSIxOTMxIiBmaWxsPSIjZTZlNmU2Ij48L3BhdGg+PC9zdmc+"},function(t,e){t.exports=function(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=o[0],s=o[1],l=o[2],c=o[3],u={id:t+":"+r,css:s,media:l,sourceMap:c};i[a]?i[a].parts.push(u):n.push(i[a]={id:a,parts:[u]})}return n}},function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=i),c){var h=u.functional,d=h?u.render:u.beforeCreate;h?(u._injectStyles=c,u.render=function(t,e){return c.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,c):[c]}return{esModule:a,exports:s,options:u}}},function(t,e,n){
/*!
 * jsoneditor.js
 *
 * @brief
 * JSONEditor is a web-based tool to view, edit, format, and validate JSON.
 * It has various modes such as a tree editor, a code editor, and a plain text
 * editor.
 *
 * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+
 *
 * @license
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy
 * of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 *
 * Copyright (c) 2011-2020 Jos de Jong, http://jsoneditoronline.org
 *
 * @author  Jos de Jong, <wjosdejong@gmail.com>
 * @version 8.6.4
 * @date    2020-03-29
 */
!function(e,n){t.exports=n()}(window,(function(){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return n={},t.m=e=[function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){try{return JSON.parse(t)}catch(e){throw s(t),e}}function o(t){function e(){return t.charAt(s)}function n(){return t.charAt(s+1)}function i(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function r(){if("/"===e()&&"*"===n()){for(s+=2;s<t.length&&("*"!==e()||"/"!==n());)s++;s+=2,"\n"===e()&&s++}}function o(n){var i="";i+='"',s++;for(var r=e();s<t.length&&r!==n;)'"'===r&&"\\"!==t.charAt(s-1)?i+='\\"':r in d?i+=d[r]:("\\"===r&&(s++,"'"!==(r=e())&&(i+="\\")),i+=r),s++,r=e();return r===n&&(i+='"',s++),i}var a=[],s=0,l=0,c=!1,u=t.match(/^\s*(\/\*(.|[\r\n])*?\*\/)?\s*[\da-zA-Z_$]+\s*\(([\s\S]*)\)\s*;?\s*$/);u&&(t=u[3]);for(var h,d={"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},p={None:"null",True:"true",False:"false"};s<t.length;){r(),function(){if("/"===e()&&"/"===n())for(s+=2;s<t.length&&"\n"!==e();)s++}();var f=e();if("{"===f&&l++,"}"===f&&l--," "===(h=f)||" "<=h&&h<=" "||" "===h||" "===h||"　"===h)a.push(" "),s++;else if("'"===f)a.push(o(f));else if('"'===f)a.push(o('"'));else if("`"===f)a.push(o("´"));else if("‘"===f)a.push(o("’"));else if("“"===f)a.push(o("”"));else if("}"===f){a.push(f),s++;var g=function(){for(var n="";s<t.length&&i(e());)n+=e(),s++;return n}();r(),"{"===function(){for(var e=s;e<t.length&&i(t[e]);)e++;return t[e]}()&&(a.push(","),0===l&&(c=!0)),a.push(g)}else","===f&&-1!==["]","}"].indexOf(function(){for(var e=s+1;e<t.length&&i(t[e]);)e++;return t[e]}())?s++:/[a-zA-Z_$]/.test(f)&&-1!==["{",","].indexOf(function(){for(var t=a.length-1;0<=t;){var e=a[t];if(!i(e))return e;t--}return""}())?a.push(function(){for(var t="",n=e(),i=/[a-zA-Z_$\d]/;i.test(n);)t+=n,s++,n=e();return t in p?p[t]:-1===["null","true","false"].indexOf(t)?'"'+t+'"':t}()):/\w/.test(f)?a.push(function(){for(var t=e(),n="";/\w/.test(t);)n+=t,s++,t=e();if(0<n.length&&"("===t){var i;if(s++,'"'===(t=e()))i=o(t),t=e();else for(i="";")"!==t&&""!==t;)i+=t,s++,t=e();return")"===t?(s++,i):n+"("+i+t}return"string"==typeof p[n]?p[n]:n}()):(a.push(f),s++)}return c&&(a.unshift("[\n"),a.push("\n]")),a.join("")}function a(t){return t.replace(/[\u007F-\uFFFF]/g,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))}function s(t){void 0!==ct.a?ct.a.parse(t):JSON.parse(t)}function l(t,e){for(var n in e)ot(e,n)&&(t[n]=e[n]);return t}function c(t){for(var e in t)ot(t,e)&&delete t[e];return t}function u(t){return null===t?"null":void 0===t?"undefined":t instanceof Number||"number"==typeof t?"number":t instanceof String||"string"==typeof t?"string":t instanceof Boolean||"boolean"==typeof t?"boolean":t instanceof RegExp?"regexp":d(t)?"array":"object"}function h(t){return("string"==typeof t||t instanceof String)&&gt.test(t)}function d(t){return"[object Array]"===Object.prototype.toString.call(t)}function p(t){return t.getBoundingClientRect().left+window.pageXOffset||document.scrollLeft||0}function f(t){return t.getBoundingClientRect().top+window.pageYOffset||document.scrollTop||0}function g(t,e){var n=t.className.split(" ");-1===n.indexOf(e)&&(n.push(e),t.className=n.join(" "))}function m(t){t.className=""}function v(t,e){var n=t.className.split(" "),i=n.indexOf(e);-1!==i&&(n.splice(i,1),t.className=n.join(" "))}function y(t){for(var e=t.childNodes,n=0,i=e.length;n<i;n++){var r=e[n];r.style&&r.removeAttribute("style");var o=r.attributes;if(o)for(var a=o.length-1;0<=a;a--){var s=o[a];!0===s.specified&&r.removeAttribute(s.name)}y(r)}}function b(t){var e,n;document.createRange&&((e=document.createRange()).selectNodeContents(t),e.collapse(!1),(n=window.getSelection()).removeAllRanges(),n.addRange(e))}function x(t){var e,n;t&&"DIV"===t.nodeName&&window.getSelection&&document.createRange&&((n=document.createRange()).selectNodeContents(t),(e=window.getSelection()).removeAllRanges(),e.addRange(n))}function w(){if(window.getSelection){var t=window.getSelection();if(t.getRangeAt&&t.rangeCount)return t.getRangeAt(0)}return null}function _(t){if(t&&window.getSelection){var e=window.getSelection();e.removeAllRanges(),e.addRange(t)}}function C(){var t=w();return t&&"startOffset"in t&&"endOffset"in t&&t.startContainer&&t.startContainer===t.endContainer?{startOffset:t.startOffset,endOffset:t.endOffset,container:t.startContainer.parentNode}:null}function A(t){if(document.createRange&&window.getSelection&&window.getSelection()){var e=document.createRange();t.container.firstChild||t.container.appendChild(document.createTextNode("")),e.setStart(t.container.firstChild,t.startOffset),e.setEnd(t.container.firstChild,t.endOffset),_(e)}}function I(t,e){if(void 0===e&&(e={text:"",flush:function(){var t=this.text;return this.text="",t},set:function(t){this.text=t}}),t.nodeValue)return e.flush()+t.nodeValue;if(t.hasChildNodes()){for(var n=t.childNodes,i="",r=0,o=n.length;r<o;r++){var a=n[r];if("DIV"===a.nodeName||"P"===a.nodeName){var s=n[r-1],l=s?s.nodeName:void 0;l&&"DIV"!==l&&"P"!==l&&"BR"!==l&&(i+="\n",e.flush()),i+=I(a,e),e.set("\n")}else"BR"===a.nodeName?(i+=e.flush(),e.set("\n")):i+=I(a,e)}return i}return"P"===t.nodeName&&-1!==M()?e.flush():""}function S(t,e){for(var n=t?t.parentNode:void 0;n;){if(n===e)return!0;n=n.parentNode}return!1}function M(){if(-1===mt){var t=-1;if("undefined"!=typeof navigator&&"Microsoft Internet Explorer"===navigator.appName){var e=navigator.userAgent;null!=new RegExp("MSIE ([0-9]+[.0-9]+)").exec(e)&&(t=parseFloat(RegExp.$1))}mt=t}return mt}function k(){return"undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Firefox")}function E(t,e,n,i){if(t.addEventListener)return void 0===i&&(i=!1),"mousewheel"===e&&k()&&(e="DOMMouseScroll"),t.addEventListener(e,n,i),n;if(t.attachEvent){var r=function(){return n.call(t,window.event)};return t.attachEvent("on"+e,r),r}}function T(t,e,n,i){t.removeEventListener?(void 0===i&&(i=!1),"mousewheel"===e&&k()&&(e="DOMMouseScroll"),t.removeEventListener(e,n,i)):t.detachEvent&&t.detachEvent("on"+e,n)}function O(t,e){for(var n=t.parentNode;n;){if(n===e)return!0;n=n.parentNode}return!1}function P(t){function e(e){for(var n="";void 0!==t[i]&&t[i]!==e;)n+=t[i],i++;if(t[i]!==e)throw new Error("Invalid JSON path: unexpected end, character "+e+" expected");return n}for(var n=[],i=0;void 0!==t[i];)if("."===t[i])i++,n.push(function(){for(var e="";void 0!==t[i]&&/[\w$]/.test(t[i]);)e+=t[i],i++;if(""===e)throw new Error("Invalid JSON path: property name expected at index "+i);return e}());else{if("["!==t[i])throw new Error('Invalid JSON path: unexpected character "'+t[i]+'" at index '+i);if("'"===t[++i]||'"'===t[i]){var r=t[i];if(i++,n.push(e(r)),t[i]!==r)throw new Error("Invalid JSON path: closing quote ' expected at index "+i);i++}else{var o=e("]").trim();if(0===o.length)throw new Error("Invalid JSON path: array value expected at index "+i);o="*"===o?o:JSON.parse(o),n.push(o)}if("]"!==t[i])throw new Error("Invalid JSON path: closing bracket ] expected at index "+i);i++}return n}function j(t){return t.map((function(t){return"number"==typeof t?"["+t+"]":"string"==typeof t&&t.match(/^[A-Za-z0-9_$]+$/)?"."+t:'["'+t+'"]'})).join("")}function L(t){if("enum"===t.keyword&&Array.isArray(t.schema)){var e=t.schema;if(e){if(5<(e=e.map((function(t){return JSON.stringify(t)}))).length){var n=["("+(e.length-5)+" more...)"];(e=e.slice(0,5)).push(n)}t.message="should be equal to one of: "+e.join(", ")}}return"additionalProperties"===t.keyword&&(t.message="should NOT have additional property: "+t.params.additionalProperty),t}function D(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function R(t){return"object"===i(t)&&Array.isArray(t.path)&&"string"==typeof t.message}function B(t,e,n){var i=void 0!==n?n:0;return e.left-i>=t.left&&e.right+i<=t.right&&e.top-i>=t.top&&e.bottom+i<=t.bottom}function N(t,e,n){var i;return function(){var r=this,o=arguments,a=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||t.apply(r,o)}),e),a&&t.apply(r,o)}}function F(t,e){for(var n=e.length,i=0,r=t.length,o=e.length;e.charAt(i)===t.charAt(i)&&i<n;)i++;for(;e.charAt(o-1)===t.charAt(r-1)&&i<o&&0<r;)o--,r--;return{start:i,end:o}}function z(t){function e(e){var n=t.value.substring(0,e);return{row:(n.match(/\n/g)||[]).length+1,column:n.length-n.lastIndexOf("\n")}}var n,i,r,o,a,s=0,l=0;return"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd?(s=t.selectionStart,l=t.selectionEnd):(i=document.selection.createRange())&&i.parentElement()===t&&(o=t.value.length,n=t.value.replace(/\r\n/g,"\n"),(r=t.createTextRange()).moveToBookmark(i.getBookmark()),(a=t.createTextRange()).collapse(!1),-1<r.compareEndPoints("StartToEnd",a)?s=l=o:(s=-r.moveStart("character",-o),s+=n.slice(0,s).split("\n").length-1,-1<r.compareEndPoints("EndToEnd",a)?l=o:(l=-r.moveEnd("character",-o),l+=n.slice(0,l).split("\n").length-1))),{startIndex:s,endIndex:l,start:e(s),end:e(l)}}function V(t,e,n){var i=t.value||"";if(0<e&&0<n){var r=i.split("\n",e);e=Math.min(r.length,e),n=Math.min(r[e-1].length,n-1);var o=1===e?n:n+1;return r.slice(0,e-1).join("\n").length+o}return-1}function G(t,e){var n,i=[];if(!e||!e.length)return i;try{n=ht.a.parse(t)}catch(t){return i}return e.forEach((function(t){var e=H(P(t)),r=n.pointers[e];r&&i.push({path:t,line:r.key?r.key.line:r.value?r.value.line:0,column:r.key?r.key.column:r.value?r.value.column:0})})),i}function H(t){return t.map((function(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")})).join("")}function W(t){var e=document.createElement("div");return e.style.color=t,e.style.color.split(/\s+/).join("").toLowerCase()||null}function U(t){return!!W(t)}function Z(t,e){if(!t)return"";var n="";return t.title&&(n+=t.title),t.description&&(0<n.length&&(n+="\n"),n+=t.description),t.default&&(0<n.length&&(n+="\n\n"),n+=Object(dt.c)("default",void 0,e)+"\n",n+=JSON.stringify(t.default,null,2)),Array.isArray(t.examples)&&0<t.examples.length&&(0<n.length&&(n+="\n\n"),n+=Object(dt.c)("examples",void 0,e)+"\n",t.examples.forEach((function(e,i){n+=JSON.stringify(e,null,2),i!==t.examples.length-1&&(n+="\n")}))),n}function Y(t,e){for(var n=t,i=0;i<e.length&&null!=n;i++)n=n[e[i]];return n}function X(t,e){for(var n=t.replace(/ \(copy( \d+)?\)$/,""),i=n,r=1;-1!==e.indexOf(i);)i=n+" (copy"+(1<r?" "+r:"")+")",r++;return i}function q(t,e){function n(t,e,i,r){(Array.isArray(t)||nt(t))&&!r||(e[i||""]=!0),nt(t)&&Object.keys(t).forEach((function(o){n(t[o],e,i+"."+o,r)}))}var i={};if(Array.isArray(t))for(var r=Math.min(t.length,pt),o=0;o<r;o++)n(t[o],i,"",e);else i[""]=!0;return Object.keys(i).sort()}function K(t,e,n){var i=e&&"."!==e?P(e):[],r="desc"===n?-1:1,o=t.slice();return o.sort((function(t,e){var n=Y(t,i),o=Y(e,i);return r*(o<n?1:n<o?-1:0)})),o}function Q(t,e){var n="desc"===e?-1:1,i=Object.keys(t).sort((function(t,e){return n*st()(t,e)})),r={};return i.forEach((function(e){r[e]=t[e]})),r}function J(t){if(""===t)return"";var e=t.toLowerCase();if("null"===e)return null;if("true"===e)return!0;if("false"===e)return!1;var n=Number(t),i=parseFloat(t);return isNaN(n)||isNaN(i)?t:n}function $(t,e){return"number"==typeof e&&ft<e&&isFinite(e)&&Math.floor(e)===e&&!isNaN(new Date(e).valueOf())}function tt(t){if(t<900)return t.toFixed()+" B";var e=t/1e3;if(e<900)return e.toFixed(1)+" KB";var n=e/1e3;if(n<900)return n.toFixed(1)+" MB";var i=n/1e3;return i<900?i.toFixed(1)+" GB":(i/1e3).toFixed(1)+" TB"}function et(t,e){return t.length<=e?t:t.slice(0,e)+"..."}function nt(t){return"object"===i(t)&&null!==t&&!Array.isArray(t)}function it(t,e){return-1!==t.indexOf(e)}function rt(t,e){if(!e&&!t)return!1;if(e&&!t||!e&&t)return!0;if(e.length!==t.length)return!0;for(var n=0;n<t.length;++n){var r=function(n){if(!("error"===t[n].type?e.find((function(e){return e.line===t[n].line})):e.find((function(e){return e.dataPath===t[n].dataPath&&e.schemaPath===t[n].schemaPath}))))return{v:!0}}(n);if("object"===i(r))return r.v}return!1}function ot(t,e){return Object.prototype.hasOwnProperty.call(t,e)}n.r(e),n.d(e,"parse",(function(){return r})),n.d(e,"repair",(function(){return o})),n.d(e,"escapeUnicodeChars",(function(){return a})),n.d(e,"validate",(function(){return s})),n.d(e,"extend",(function(){return l})),n.d(e,"clear",(function(){return c})),n.d(e,"getType",(function(){return u})),n.d(e,"isUrl",(function(){return h})),n.d(e,"isArray",(function(){return d})),n.d(e,"getAbsoluteLeft",(function(){return p})),n.d(e,"getAbsoluteTop",(function(){return f})),n.d(e,"addClassName",(function(){return g})),n.d(e,"removeAllClassNames",(function(){return m})),n.d(e,"removeClassName",(function(){return v})),n.d(e,"stripFormatting",(function(){return y})),n.d(e,"setEndOfContentEditable",(function(){return b})),n.d(e,"selectContentEditable",(function(){return x})),n.d(e,"getSelection",(function(){return w})),n.d(e,"setSelection",(function(){return _})),n.d(e,"getSelectionOffset",(function(){return C})),n.d(e,"setSelectionOffset",(function(){return A})),n.d(e,"getInnerText",(function(){return I})),n.d(e,"hasParentNode",(function(){return S})),n.d(e,"getInternetExplorerVersion",(function(){return M})),n.d(e,"isFirefox",(function(){return k})),n.d(e,"addEventListener",(function(){return E})),n.d(e,"removeEventListener",(function(){return T})),n.d(e,"isChildOf",(function(){return O})),n.d(e,"parsePath",(function(){return P})),n.d(e,"stringifyPath",(function(){return j})),n.d(e,"improveSchemaError",(function(){return L})),n.d(e,"isPromise",(function(){return D})),n.d(e,"isValidValidationError",(function(){return R})),n.d(e,"insideRect",(function(){return B})),n.d(e,"debounce",(function(){return N})),n.d(e,"textDiff",(function(){return F})),n.d(e,"getInputSelection",(function(){return z})),n.d(e,"getIndexForPosition",(function(){return V})),n.d(e,"getPositionForPath",(function(){return G})),n.d(e,"compileJSONPointer",(function(){return H})),n.d(e,"getColorCSS",(function(){return W})),n.d(e,"isValidColor",(function(){return U})),n.d(e,"makeFieldTooltip",(function(){return Z})),n.d(e,"get",(function(){return Y})),n.d(e,"findUniqueName",(function(){return X})),n.d(e,"getChildPaths",(function(){return q})),n.d(e,"sort",(function(){return K})),n.d(e,"sortObjectKeys",(function(){return Q})),n.d(e,"parseString",(function(){return J})),n.d(e,"isTimestamp",(function(){return $})),n.d(e,"formatSize",(function(){return tt})),n.d(e,"limitCharacters",(function(){return et})),n.d(e,"isObject",(function(){return nt})),n.d(e,"contains",(function(){return it})),n.d(e,"isValidationErrorChanged",(function(){return rt})),n(24);var at=n(11),st=n.n(at),lt=n(22),ct=n.n(lt),ut=n(33),ht=n.n(ut),dt=n(1),pt=1e4,ft=9466848e5,gt=/^https?:\/\/\S+$/,mt=-1},function(t,e,n){"use strict";function i(t){if(t){var e=a.find((function(e){return e===t}));e?u=e:console.error("Language not found")}}function r(t){if(t)for(var e in t)!function(e){a.find((function(t){return t===e}))||a.push(e),s[e]=Object.assign({},s[l],s[e],t[e])}(e)}function o(t,e,n){var i=s[n=n||u][t]||s[l][t]||t;if(e)for(var r in e)i=i.replace("${"+r+"}",e[r]);return i}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n(24);var a=["en","pt-BR","zh-CN","tr","ja","fr-FR"],s={en:{array:"Array",auto:"Auto",appendText:"Append",appendTitle:"Append a new field with type 'auto' after this field (Ctrl+Shift+Ins)",appendSubmenuTitle:"Select the type of the field to be appended",appendTitleAuto:"Append a new field with type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascending",ascendingTitle:"Sort the childs of this ${type} in ascending order",actionsMenu:"Click to open the actions menu (Ctrl+M)",cannotParseFieldError:"Cannot parse field into JSON",cannotParseValueError:"Cannot parse value into JSON",collapseAll:"Collapse all fields",compactTitle:"Compact JSON data, remove all whitespaces (Ctrl+Shift+\\)",descending:"Descending",descendingTitle:"Sort the childs of this ${type} in descending order",drag:"Drag to move this field (Alt+Shift+Arrows)",duplicateKey:"duplicate key",duplicateText:"Duplicate",duplicateTitle:"Duplicate selected fields (Ctrl+D)",duplicateField:"Duplicate this field (Ctrl+D)",duplicateFieldError:"Duplicate field name",empty:"empty",expandAll:"Expand all fields",expandTitle:"Click to expand/collapse this field (Ctrl+E). \nCtrl+Click to expand/collapse including all childs.",formatTitle:"Format JSON data, with proper indentation and line feeds (Ctrl+\\)",insert:"Insert",insertTitle:"Insert a new field with type 'auto' before this field (Ctrl+Ins)",insertSub:"Select the type of the field to be inserted",object:"Object",ok:"Ok",redo:"Redo (Ctrl+Shift+Z)",removeText:"Remove",removeTitle:"Remove selected fields (Ctrl+Del)",removeField:"Remove this field (Ctrl+Del)",repairTitle:"Repair JSON: fix quotes and escape characters, remove comments and JSONP notation, turn JavaScript objects into JSON.",searchTitle:"Search fields and values",searchNextResultTitle:"Next result (Enter)",searchPreviousResultTitle:"Previous result (Shift + Enter)",selectNode:"Select a node...",showAll:"show all",showMore:"show more",showMoreStatus:"displaying ${visibleChilds} of ${totalChilds} items.",sort:"Sort",sortTitle:"Sort the childs of this ${type}",sortTitleShort:"Sort contents",sortFieldLabel:"Field:",sortDirectionLabel:"Direction:",sortFieldTitle:"Select the nested field by which to sort the array or object",sortAscending:"Ascending",sortAscendingTitle:"Sort the selected field in ascending order",sortDescending:"Descending",sortDescendingTitle:"Sort the selected field in descending order",string:"String",transform:"Transform",transformTitle:"Filter, sort, or transform the childs of this ${type}",transformTitleShort:"Filter, sort, or transform contents",extract:"Extract",extractTitle:"Extract this ${type}",transformQueryTitle:"Enter a JMESPath query",transformWizardLabel:"Wizard",transformWizardFilter:"Filter",transformWizardSortBy:"Sort by",transformWizardSelectFields:"Select fields",transformQueryLabel:"Query",transformPreviewLabel:"Preview",type:"Type",typeTitle:"Change the type of this field",openUrl:"Ctrl+Click or Ctrl+Enter to open url in new window",undo:"Undo last action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Field type "auto". The field type is automatically determined from the value and can be a string, number, boolean, or null.',objectType:'Field type "object". An object contains an unordered set of key/value pairs.',arrayType:'Field type "array". An array contains an ordered collection of values.',stringType:'Field type "string". Field type is not determined from the value, but always returned as string.',modeEditorTitle:"Switch Editor Mode",modeCodeText:"Code",modeCodeTitle:"Switch to code highlighter",modeFormText:"Form",modeFormTitle:"Switch to form editor",modeTextText:"Text",modeTextTitle:"Switch to plain text editor",modeTreeText:"Tree",modeTreeTitle:"Switch to tree editor",modeViewText:"View",modeViewTitle:"Switch to tree view",modePreviewText:"Preview",modePreviewTitle:"Switch to preview mode",examples:"Examples",default:"Default"},"zh-CN":{array:"数组",auto:"自动",appendText:"追加",appendTitle:"在此字段后追加一个类型为“auto”的新字段 (Ctrl+Shift+Ins)",appendSubmenuTitle:"选择要追加的字段类型",appendTitleAuto:"追加类型为“auto”的新字段 (Ctrl+Shift+Ins)",ascending:"升序",ascendingTitle:"升序排列${type}的子节点",actionsMenu:"点击打开动作菜单(Ctrl+M)",cannotParseFieldError:"无法将字段解析为JSON",cannotParseValueError:"无法将值解析为JSON",collapseAll:"缩进所有字段",compactTitle:"压缩JSON数据，删除所有空格 (Ctrl+Shift+\\)",descending:"降序",descendingTitle:"降序排列${type}的子节点",drag:"拖拽移动该节点(Alt+Shift+Arrows)",duplicateKey:"重复键",duplicateText:"复制",duplicateTitle:"复制选中字段(Ctrl+D)",duplicateField:"复制该字段(Ctrl+D)",duplicateFieldError:"重复的字段名称",empty:"清空",expandAll:"展开所有字段",expandTitle:"点击 展开/收缩 该字段(Ctrl+E). \nCtrl+Click 展开/收缩 包含所有子节点.",formatTitle:"使用适当的缩进和换行符格式化JSON数据 (Ctrl+\\)",insert:"插入",insertTitle:"在此字段前插入类型为“auto”的新字段 (Ctrl+Ins)",insertSub:"选择要插入的字段类型",object:"对象",ok:"Ok",redo:"重做 (Ctrl+Shift+Z)",removeText:"移除",removeTitle:"移除选中字段 (Ctrl+Del)",removeField:"移除该字段 (Ctrl+Del)",repairTitle:"修复JSON：修复引号和转义符，删除注释和JSONP表示法，将JavaScript对象转换为JSON。",selectNode:"选择一个节点...",showAll:"展示全部",showMore:"展示更多",showMoreStatus:"显示${totalChilds}的${visibleChilds}项目.",sort:"排序",sortTitle:"排序${type}的子节点",sortTitleShort:"内容排序",sortFieldLabel:"字段：",sortDirectionLabel:"方向：",sortFieldTitle:"选择用于对数组或对象排序的嵌套字段",sortAscending:"升序排序",sortAscendingTitle:"按照该字段升序排序",sortDescending:"降序排序",sortDescendingTitle:"按照该字段降序排序",string:"字符串",transform:"变换",transformTitle:"筛选，排序，或者转换${type}的子节点",transformTitleShort:"筛选，排序，或者转换内容",extract:"提取",extractTitle:"提取这个 ${type}",transformQueryTitle:"输入JMESPath查询",transformWizardLabel:"向导",transformWizardFilter:"筛选",transformWizardSortBy:"排序",transformWizardSelectFields:"选择字段",transformQueryLabel:"查询",transformPreviewLabel:"预览",type:"类型",typeTitle:"更改字段类型",openUrl:"Ctrl+Click 或者 Ctrl+Enter 在新窗口打开链接",undo:"撤销上次动作 (Ctrl+Z)",validationCannotMove:"无法将字段移入其子节点",autoType:'字段类型 "auto". 字段类型由值自动确定 可以为 string，number，boolean，或者 null.',objectType:'字段类型 "object". 对象包含一组无序的键/值对.',arrayType:'字段类型 "array". 数组包含值的有序集合.',stringType:'字段类型 "string". 字段类型由值自动确定，但始终作为字符串返回.',modeCodeText:"代码",modeCodeTitle:"切换至代码高亮",modeFormText:"表单",modeFormTitle:"切换至表单编辑",modeTextText:"文本",modeTextTitle:"切换至文本编辑",modeTreeText:"树",modeTreeTitle:"切换至树编辑",modeViewText:"视图",modeViewTitle:"切换至树视图",modePreviewText:"预览",modePreviewTitle:"切换至预览模式",examples:"例子",default:"缺省"},"pt-BR":{array:"Lista",auto:"Automatico",appendText:"Adicionar",appendTitle:"Adicionar novo campo com tipo 'auto' depois deste campo (Ctrl+Shift+Ins)",appendSubmenuTitle:"Selecione o tipo do campo a ser adicionado",appendTitleAuto:"Adicionar novo campo com tipo 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendente",ascendingTitle:"Organizar filhor do tipo ${type} em crescente",actionsMenu:"Clique para abrir o menu de ações (Ctrl+M)",cannotParseFieldError:"Não é possível analisar o campo no JSON",cannotParseValueError:"Não é possível analisar o valor em JSON",collapseAll:"Fechar todos campos",compactTitle:"Dados JSON compactos, remova todos os espaços em branco (Ctrl+Shift+\\)",descending:"Descendente",descendingTitle:"Organizar o filhos do tipo ${type} em decrescente",duplicateKey:"chave duplicada",drag:"Arraste para mover este campo (Alt+Shift+Arrows)",duplicateText:"Duplicar",duplicateTitle:"Duplicar campos selecionados (Ctrl+D)",duplicateField:"Duplicar este campo (Ctrl+D)",duplicateFieldError:"Nome do campo duplicado",empty:"vazio",expandAll:"Expandir todos campos",expandTitle:"Clique para expandir/encolher este campo (Ctrl+E). \nCtrl+Click para expandir/encolher incluindo todos os filhos.",formatTitle:"Formate dados JSON, com recuo e feeds de linha adequados (Ctrl+\\)",insert:"Inserir",insertTitle:"Inserir um novo campo do tipo 'auto' antes deste campo (Ctrl+Ins)",insertSub:"Selecionar o tipo de campo a ser inserido",object:"Objeto",ok:"Ok",redo:"Refazer (Ctrl+Shift+Z)",removeText:"Remover",removeTitle:"Remover campos selecionados (Ctrl+Del)",removeField:"Remover este campo (Ctrl+Del)",repairTitle:"Repare JSON: corrija aspas e caracteres de escape, remova comentários e notação JSONP, transforme objetos JavaScript em JSON.",selectNode:"Selecione um nódulo...",showAll:"mostrar todos",showMore:"mostrar mais",showMoreStatus:"exibindo ${visibleChilds} de ${totalChilds} itens.",sort:"Organizar",sortTitle:"Organizar os filhos deste ${type}",sortTitleShort:"Organizar os filhos",sortFieldLabel:"Campo:",sortDirectionLabel:"Direção:",sortFieldTitle:"Selecione um campo filho pelo qual ordenar o array ou objeto",sortAscending:"Ascendente",sortAscendingTitle:"Ordenar o campo selecionado por ordem ascendente",sortDescending:"Descendente",sortDescendingTitle:"Ordenar o campo selecionado por ordem descendente",string:"Texto",transform:"Transformar",transformTitle:"Filtrar, ordenar ou transformar os filhos deste ${type}",transformTitleShort:"Filtrar, ordenar ou transformar conteúdos",transformQueryTitle:"Insira uma expressão JMESPath",transformWizardLabel:"Assistente",transformWizardFilter:"Filtro",transformWizardSortBy:"Ordenar por",transformWizardSelectFields:"Selecionar campos",transformQueryLabel:"Expressão",transformPreviewLabel:"Visualizar",type:"Tipo",typeTitle:"Mudar o tipo deste campo",openUrl:"Ctrl+Click ou Ctrl+Enter para abrir link em nova janela",undo:"Desfazer último ação (Ctrl+Z)",validationCannotMove:"Não pode mover um campo como filho dele mesmo",autoType:'Campo do tipo "auto". O tipo do campo é determinao automaticamente a partir do seu valor e pode ser texto, número, verdade/falso ou nulo.',objectType:'Campo do tipo "objeto". Um objeto contém uma lista de pares com chave e valor.',arrayType:'Campo do tipo "lista". Uma lista contem uma coleção de valores ordenados.',stringType:'Campo do tipo "string". Campo do tipo nao é determinado através do seu valor, mas sempre retornara um texto.',examples:"Exemplos",default:"Revelia"},tr:{array:"Dizin",auto:"Otomatik",appendText:"Ekle",appendTitle:"Bu alanın altına 'otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",appendSubmenuTitle:"Eklenecek alanın tipini seç",appendTitleAuto:"'Otomatik' tipinde yeni bir alan ekle (Ctrl+Shift+Ins)",ascending:"Artan",ascendingTitle:"${type}'ın alt tiplerini artan düzende sırala",actionsMenu:"Aksiyon menüsünü açmak için tıklayın (Ctrl+M)",collapseAll:"Tüm alanları kapat",descending:"Azalan",descendingTitle:"${type}'ın alt tiplerini azalan düzende sırala",drag:"Bu alanı taşımak için sürükleyin (Alt+Shift+Arrows)",duplicateKey:"Var olan anahtar",duplicateText:"Aşağıya kopyala",duplicateTitle:"Seçili alanlardan bir daha oluştur (Ctrl+D)",duplicateField:"Bu alandan bir daha oluştur (Ctrl+D)",duplicateFieldError:"Duplicate field name",cannotParseFieldError:"Alan JSON'a ayrıştırılamıyor",cannotParseValueError:"JSON'a değer ayrıştırılamıyor",empty:"boş",expandAll:"Tüm alanları aç",expandTitle:"Bu alanı açmak/kapatmak için tıkla (Ctrl+E). \nAlt alanlarda dahil tüm alanları açmak için Ctrl+Click ",insert:"Ekle",insertTitle:"Bu alanın üstüne 'otomatik' tipinde yeni bir alan ekle (Ctrl+Ins)",insertSub:"Araya eklenecek alanın tipini seç",object:"Nesne",ok:"Tamam",redo:"Yeniden yap (Ctrl+Shift+Z)",removeText:"Kaldır",removeTitle:"Seçilen alanları kaldır (Ctrl+Del)",removeField:"Bu alanı kaldır (Ctrl+Del)",selectNode:"Bir nesne seç...",showAll:"tümünü göster",showMore:"daha fazla göster",showMoreStatus:"${totalChilds} alanın ${visibleChilds} alt alanları gösteriliyor",sort:"Sırala",sortTitle:"${type}'ın alt alanlarını sırala",sortTitleShort:"İçerikleri sırala",sortFieldLabel:"Alan:",sortDirectionLabel:"Yön:",sortFieldTitle:"Diziyi veya nesneyi sıralamak için iç içe geçmiş alanı seçin",sortAscending:"Artan",sortAscendingTitle:"Seçili alanı artan düzende sırala",sortDescending:"Azalan",sortDescendingTitle:"Seçili alanı azalan düzende sırala",string:"Karakter Dizisi",transform:"Dönüştür",transformTitle:"${type}'ın alt alanlarını filtrele, sırala veya dönüştür",transformTitleShort:"İçerikleri filterele, sırala veya dönüştür",transformQueryTitle:"JMESPath sorgusu gir",transformWizardLabel:"Sihirbaz",transformWizardFilter:"Filtre",transformWizardSortBy:"Sırala",transformWizardSelectFields:"Alanları seç",transformQueryLabel:"Sorgu",transformPreviewLabel:"Önizleme",type:"Tip",typeTitle:"Bu alanın tipini değiştir",openUrl:"URL'i yeni bir pencerede açmak için Ctrl+Click veya Ctrl+Enter",undo:"Son değişikliği geri al (Ctrl+Z)",validationCannotMove:"Alt alan olarak taşınamıyor",autoType:'Alan tipi "otomatik". Alan türü otomatik olarak değerden belirlenirve bir dize, sayı, boolean veya null olabilir.',objectType:'Alan tipi "nesne". Bir nesne, sıralanmamış bir anahtar / değer çifti kümesi içerir.',arrayType:'Alan tipi "dizi". Bir dizi, düzenli değerler koleksiyonu içerir.',stringType:'Alan tipi "karakter dizisi". Alan türü değerden belirlenmez,ancak her zaman karakter dizisi olarak döndürülür.',modeCodeText:"Kod",modeCodeTitle:"Kod vurgulayıcıya geç",modeFormText:"Form",modeFormTitle:"Form düzenleyiciye geç",modeTextText:"Metin",modeTextTitle:"Düz metin düzenleyiciye geç",modeTreeText:"Ağaç",modeTreeTitle:"Ağaç düzenleyiciye geç",modeViewText:"Görünüm",modeViewTitle:"Ağaç görünümüne geç",examples:"Örnekler",default:"Varsayılan"},ja:{array:"配列",auto:"オート",appendText:"追加",appendTitle:'次のフィールドに"オート"のフィールドを追加 (Ctrl+Shift+Ins)',appendSubmenuTitle:"追加するフィールドの型を選択してください",appendTitleAuto:'"オート"のフィールドを追加 (Ctrl+Shift+Ins)',ascending:"昇順",ascendingTitle:"${type}の子要素を昇順に並べ替え",actionsMenu:"クリックしてアクションメニューを開く (Ctrl+M)",collapseAll:"すべてを折りたたむ",descending:"降順",descendingTitle:"${type}の子要素を降順に並べ替え",drag:"ドラッグして選択中のフィールドを移動 (Alt+Shift+Arrows)",duplicateKey:"複製キー",duplicateText:"複製",duplicateTitle:"選択中のフィールドを複製 (Ctrl+D)",duplicateField:"選択中のフィールドを複製 (Ctrl+D)",duplicateFieldError:"フィールド名が重複しています",cannotParseFieldError:"JSONのフィールドを解析できません",cannotParseValueError:"JSONの値を解析できません",empty:"空",expandAll:"すべてを展開",expandTitle:"クリックしてフィールドを展開/折りたたむ (Ctrl+E). \nCtrl+Click ですべての子要素を展開/折りたたむ",insert:"挿入",insertTitle:"選択中のフィールドの前に新しいフィールドを挿入 (Ctrl+Ins)",insertSub:"挿入するフィールドの型を選択",object:"オブジェクト",ok:"実行",redo:"やり直す (Ctrl+Shift+Z)",removeText:"削除",removeTitle:"選択中のフィールドを削除 (Ctrl+Del)",removeField:"選択中のフィールドを削除 (Ctrl+Del)",selectNode:"ノードを選択...",showAll:"すべてを表示",showMore:"もっと見る",showMoreStatus:"${totalChilds}個のアイテムのうち ${visibleChilds}個を表示しています。",sort:"並べ替え",sortTitle:"${type}の子要素を並べ替え",sortTitleShort:"並べ替え",sortFieldLabel:"フィールド:",sortDirectionLabel:"順序:",sortFieldTitle:"配列またはオブジェクトを並び替えるためのフィールドを選択",sortAscending:"昇順",sortAscendingTitle:"選択中のフィールドを昇順に並び替え",sortDescending:"降順",sortDescendingTitle:"選択中のフィールドを降順に並び替え",string:"文字列",transform:"変換",transformTitle:"${type}の子要素をフィルター・並び替え・変換する",transformTitleShort:"内容をフィルター・並び替え・変換する",extract:"抽出",extractTitle:"${type}を抽出",transformQueryTitle:"JMESPathクエリを入力",transformWizardLabel:"ウィザード",transformWizardFilter:"フィルター",transformWizardSortBy:"並び替え",transformWizardSelectFields:"フィールドを選択",transformQueryLabel:"クエリ",transformPreviewLabel:"プレビュー",type:"型",typeTitle:"選択中のフィールドの型を変更",openUrl:"Ctrl+Click または Ctrl+Enter で 新規ウィンドウでURLを開く",undo:"元に戻す (Ctrl+Z)",validationCannotMove:"子要素に移動できません ",autoType:"オート： フィールドの型は値から自動的に決定されます。 (文字列・数値・ブール・null)",objectType:"オブジェクト： オブジェクトは順序が決まっていないキーと値のペア組み合わせです。",arrayType:"配列： 配列は順序が決まっている値の集合体です。",stringType:"文字列： フィールド型は値から決定されませんが、常に文字列として返されます。",modeCodeText:"コードモード",modeCodeTitle:"ハイライトモードに切り替え",modeFormText:"フォームモード",modeFormTitle:"フォームモードに切り替え",modeTextText:"テキストモード",modeTextTitle:"テキストモードに切り替え",modeTreeText:"ツリーモード",modeTreeTitle:"ツリーモードに切り替え",modeViewText:"ビューモード",modeViewTitle:"ビューモードに切り替え",modePreviewText:"プレビュー",modePreviewTitle:"プレビューに切り替え",examples:"例",default:"デフォルト"},"fr-FR":{array:"Liste",auto:"Auto",appendText:"Ajouter",appendTitle:"Ajouter un champ de type 'auto' après ce champ (Ctrl+Shift+Ins)",appendSubmenuTitle:"Sélectionner le type du champ à ajouter",appendTitleAuto:"Ajouter un champ de type 'auto' (Ctrl+Shift+Ins)",ascending:"Ascendant",ascendingTitle:"Trier les enfants de ce ${type} par ordre ascendant",actionsMenu:"Ouvrir le menu des actions (Ctrl+M)",collapseAll:"Regrouper",descending:"Descendant",descendingTitle:"Trier les enfants de ce ${type} par ordre descendant",drag:"Déplacer (Alt+Shift+Arrows)",duplicateKey:"Dupliquer la clé",duplicateText:"Dupliquer",duplicateTitle:"Dupliquer les champs sélectionnés (Ctrl+D)",duplicateField:"Dupliquer ce champ (Ctrl+D)",duplicateFieldError:"Dupliquer le nom de champ",cannotParseFieldError:"Champ impossible à parser en JSON",cannotParseValueError:"Valeur impossible à parser en JSON",empty:"vide",expandAll:"Étendre",expandTitle:"Étendre/regrouper ce champ (Ctrl+E). \nCtrl+Click pour étendre/regrouper avec tous les champs.",insert:"Insérer",insertTitle:"Insérer un champ de type 'auto' avant ce champ (Ctrl+Ins)",insertSub:"Sélectionner le type de champ à insérer",object:"Objet",ok:"Ok",redo:"Rejouer (Ctrl+Shift+Z)",removeText:"Supprimer",removeTitle:"Supprimer les champs sélectionnés (Ctrl+Del)",removeField:"Supprimer ce champ (Ctrl+Del)",searchTitle:"Rechercher champs et valeurs",searchNextResultTitle:"Résultat suivant (Enter)",searchPreviousResultTitle:"Résultat précédent (Shift + Enter)",selectNode:"Sélectionner un nœud...",showAll:"voir tout",showMore:"voir plus",showMoreStatus:"${visibleChilds} éléments affichés de ${totalChilds}.",sort:"Trier",sortTitle:"Trier les champs de ce ${type}",sortTitleShort:"Trier",sortFieldLabel:"Champ:",sortDirectionLabel:"Direction:",sortFieldTitle:"Sélectionner les champs permettant de trier les listes et objet",sortAscending:"Ascendant",sortAscendingTitle:"Trier les champs sélectionnés par ordre ascendant",sortDescending:"Descendant",sortDescendingTitle:"Trier les champs sélectionnés par ordre descendant",string:"Chaîne",transform:"Transformer",transformTitle:"Filtrer, trier, or transformer les enfants de ce ${type}",transformTitleShort:"Filtrer, trier ou transformer le contenu",extract:"Extraire",extractTitle:"Extraire ce ${type}",transformQueryTitle:"Saisir une requête JMESPath",transformWizardLabel:"Assistant",transformWizardFilter:"Filtrer",transformWizardSortBy:"Trier par",transformWizardSelectFields:"Sélectionner les champs",transformQueryLabel:"Requête",transformPreviewLabel:"Prévisualisation",type:"Type",typeTitle:"Changer le type de ce champ",openUrl:"Ctrl+Click ou Ctrl+Enter pour ouvrir l'url dans une autre fenêtre",undo:"Annuler la dernière action (Ctrl+Z)",validationCannotMove:"Cannot move a field into a child of itself",autoType:'Champe de type "auto". Ce type de champ est automatiquement déterminé en fonction de la valeur et peut être de type "chaîne", "nombre", "booléen" ou null.',objectType:'Champ de type "objet". Un objet contient un ensemble non ordonné de paires clé/valeur.',arrayType:'Champ de type "liste". Une liste contient une collection ordonnée de valeurs.',stringType:'Champ de type "chaîne". Ce type de champ n\'est pas déterminé en fonction de la valeur, mais retourne systématiquement une chaîne de caractères.',modeEditorTitle:"Changer mode d'édition",modeCodeText:"Code",modeCodeTitle:"Activer surlignage code",modeFormText:"Formulaire",modeFormTitle:"Activer formulaire",modeTextText:"Texte",modeTextTitle:"Activer éditeur texte",modeTreeText:"Arbre",modeTreeTitle:"Activer éditeur arbre",modeViewText:"Lecture seule",modeViewTitle:"Activer vue arbre",modePreviewText:"Prévisualisation",modePreviewTitle:"Activer mode prévisualiser",examples:"Exemples",default:"Défaut"}},l="en",c="undefined"!=typeof navigator?navigator.language||navigator.userLanguage:void 0,u=a.find((function(t){return t===c}))||l},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=document.body,r=10485760,o=2e4,a=2147483648},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}n.d(e,"a",(function(){return s}));var r=n(12),o=n(0),a=n(1),s=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dom={};var i=this,r=this.dom;this.anchor=void 0,this.items=e,this.eventListeners={},this.selection=void 0,this.onClose=n?n.close:void 0;var o=document.createElement("div");o.className="jsoneditor-contextmenu-root",r.root=o;var s=document.createElement("div");s.className="jsoneditor-contextmenu",r.menu=s,o.appendChild(s);var l=document.createElement("ul");l.className="jsoneditor-menu",s.appendChild(l),r.list=l,r.items=[];var c=document.createElement("button");c.type="button",r.focusButton=c;var u=document.createElement("li");u.style.overflow="hidden",u.style.height="0",u.appendChild(c),l.appendChild(u),function t(e,n,r){r.forEach((function(r){if("separator"===r.type){var o=document.createElement("div");o.className="jsoneditor-separator";var s=document.createElement("li");s.appendChild(o),e.appendChild(s)}else{var l={},c=document.createElement("li");e.appendChild(c);var u=document.createElement("button");if(u.type="button",u.className=r.className,l.button=u,r.title&&(u.title=r.title),r.click&&(u.onclick=function(t){t.preventDefault(),i.hide(),r.click()}),c.appendChild(u),r.submenu){var h=document.createElement("div");h.className="jsoneditor-icon",u.appendChild(h);var d,p=document.createElement("div");if(p.className="jsoneditor-text"+(r.click?"":" jsoneditor-right-margin"),p.appendChild(document.createTextNode(r.text)),u.appendChild(p),r.click){u.className+=" jsoneditor-default";var f=document.createElement("button");f.type="button",(l.buttonExpand=f).className="jsoneditor-expand",f.innerHTML='<div class="jsoneditor-expand"></div>',c.appendChild(f),r.submenuTitle&&(f.title=r.submenuTitle),d=f}else{var g=document.createElement("div");g.className="jsoneditor-expand",u.appendChild(g),d=u}d.onclick=function(t){t.preventDefault(),i._onExpandItem(l),d.focus()};var m=[];l.subItems=m;var v=document.createElement("ul");(l.ul=v).className="jsoneditor-menu",v.style.height="0",c.appendChild(v),t(v,m,r.submenu)}else u.innerHTML='<div class="jsoneditor-icon"></div><div class="jsoneditor-text">'+Object(a.c)(r.text)+"</div>";n.push(l)}}))}(l,this.dom.items,e),this.maxHeight=0,e.forEach((function(t){var n=24*(e.length+(t.submenu?t.submenu.length:0));i.maxHeight=Math.max(i.maxHeight,n)}))}var e,n;return e=t,(n=[{key:"_getVisibleButtons",value:function(){var t=[],e=this;return this.dom.items.forEach((function(n){t.push(n.button),n.buttonExpand&&t.push(n.buttonExpand),n.subItems&&n===e.expandedItem&&n.subItems.forEach((function(e){t.push(e.button),e.buttonExpand&&t.push(e.buttonExpand)}))})),t}},{key:"show",value:function(e,n,i){this.hide();var a=!0,s=e.parentNode,l=e.getBoundingClientRect(),c=s.getBoundingClientRect(),u=n.getBoundingClientRect(),h=this;this.dom.absoluteAnchor=Object(r.a)(e,n,(function(){h.hide()})),l.bottom+this.maxHeight<u.bottom||l.top-this.maxHeight>u.top&&(a=!1);var d=i?0:l.top-c.top;if(a){var p=e.offsetHeight;this.dom.menu.style.left="0",this.dom.menu.style.top=d+p+"px",this.dom.menu.style.bottom=""}else this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px";this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=Object(o.getSelection)(),this.anchor=e,setTimeout((function(){h.dom.focusButton.focus()}),0),t.visibleMenu&&t.visibleMenu.hide(),t.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose&&this.onClose()),t.visibleMenu===this&&(t.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(t){var e=this,n=t===this.expandedItem,i=this.expandedItem;if(i&&(i.ul.style.height="0",i.ul.style.padding="",setTimeout((function(){e.expandedItem!==i&&(i.ul.style.display="",Object(o.removeClassName)(i.ul.parentNode,"jsoneditor-selected"))}),300),this.expandedItem=void 0),!n){var r=t.ul;r.style.display="block",r.clientHeight,setTimeout((function(){if(e.expandedItem===t){for(var n=0,i=0;i<r.childNodes.length;i++)n+=r.childNodes[i].clientHeight;r.style.height=n+"px",r.style.padding="5px 10px"}}),0),Object(o.addClassName)(r.parentNode,"jsoneditor-selected"),this.expandedItem=t}}},{key:"_onKeyDown",value:function(t){var e,n,i,r,a=t.target,s=t.which,l=!1;27===s?(this.selection&&Object(o.setSelection)(this.selection),this.anchor&&this.anchor.focus(),this.hide(),l=!0):9===s?t.shiftKey?0===(n=(e=this._getVisibleButtons()).indexOf(a))&&(e[e.length-1].focus(),l=!0):(n=(e=this._getVisibleButtons()).indexOf(a))===e.length-1&&(e[0].focus(),l=!0):37===s?("jsoneditor-expand"===a.className&&(n=(e=this._getVisibleButtons()).indexOf(a),(i=e[n-1])&&i.focus()),l=!0):38===s?(n=(e=this._getVisibleButtons()).indexOf(a),(i=e[n-1])&&"jsoneditor-expand"===i.className&&(i=e[n-2]),(i=i||e[e.length-1])&&i.focus(),l=!0):39===s?(n=(e=this._getVisibleButtons()).indexOf(a),(r=e[n+1])&&"jsoneditor-expand"===r.className&&r.focus(),l=!0):40===s&&(n=(e=this._getVisibleButtons()).indexOf(a),(r=e[n+1])&&"jsoneditor-expand"===r.className&&(r=e[n+2]),(r=r||e[0])&&(r.focus(),l=!0),l=!0),l&&(t.stopPropagation(),t.preventDefault())}}])&&i(e.prototype,n),t}();s.visibleMenu=void 0},function(t,e,n){"use strict";function i(t,e){var n=e.sort,i=e.filter,r=e.projection,o="";if(i){var a="@"!==i.field?["0"].concat(Object(s.parsePath)("."+i.field)):["0"],l="string"==typeof Object(s.get)(t,a)?i.value:Object(s.parseString)(i.value);o+="[? "+i.field+" "+i.relation+" `"+JSON.stringify(l)+"`]"}else o+=Array.isArray(t)?"[*]":"@";return n&&("desc"===n.direction?o+=" | reverse(sort_by(@, &"+n.field+"))":o+=" | sort_by(@, &"+n.field+")"),r&&("]"!==o[o.length-1]&&(o+=" | [*]"),1===r.fields.length?o+="."+r.fields[0]:1<r.fields.length&&(o+=".{"+r.fields.map((function(t){var e=t.split(".");return e[e.length-1]+": "+t})).join(", ")+"}")),o}function r(t,e){return a.a.search(t,e)}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var o=n(34),a=n.n(o),s=n(0)},function(t,e,n){"use strict";function i(t,e,n,i){var r=Array.isArray(e)?Object(s.getChildPaths)(e):[""],l=i&&i.path&&Object(s.contains)(r,i.path)?i.path:r[0],c=i&&i.direction||"asc",u='<div class="pico-modal-contents"><div class="pico-modal-header">'+Object(a.c)("sort")+"</div><form><table><tbody><tr>  <td>"+Object(a.c)("sortFieldLabel")+' </td>  <td class="jsoneditor-modal-input">  <div class="jsoneditor-select-wrapper">    <select id="field" title="'+Object(a.c)("sortFieldTitle")+'">    </select>  </div>  </td></tr><tr>  <td>'+Object(a.c)("sortDirectionLabel")+' </td>  <td class="jsoneditor-modal-input">  <div id="direction" class="jsoneditor-button-group"><input type="button" value="'+Object(a.c)("sortAscending")+'" title="'+Object(a.c)("sortAscendingTitle")+'" data-value="asc" class="jsoneditor-button-first jsoneditor-button-asc"/><input type="button" value="'+Object(a.c)("sortDescending")+'" title="'+Object(a.c)("sortDescendingTitle")+'" data-value="desc" class="jsoneditor-button-last jsoneditor-button-desc"/>  </div>  </td></tr><tr><td colspan="2" class="jsoneditor-modal-input jsoneditor-modal-actions">  <input type="submit" id="ok" value="'+Object(a.c)("ok")+'" /></td></tr></tbody></table></form></div>';o()({parent:t,content:u,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate((function(t){function e(t){s.value=t,s.className="jsoneditor-button-group jsoneditor-button-group-value-"+s.value}var i=t.modalElem().querySelector("form"),o=t.modalElem().querySelector("#ok"),a=t.modalElem().querySelector("#field"),s=t.modalElem().querySelector("#direction");r.forEach((function(t){var e,n=document.createElement("option");n.text=""===(e=t)?"@":"."===e[0]?e.slice(1):e,n.value=t,a.appendChild(n)})),a.value=l||r[0],e(c||"asc"),s.onclick=function(t){e(t.target.getAttribute("data-value"))},o.onclick=function(e){e.preventDefault(),e.stopPropagation(),t.close(),n({path:a.value,direction:s.value})},i&&(i.onsubmit=o.onclick)})).afterClose((function(t){t.destroy()})).show()}n.r(e),n.d(e,"showSortModal",(function(){return i}));var r=n(14),o=n.n(r),a=n(1),s=n(0)},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,n,o){return"boolean"==typeof t||t instanceof Boolean||null===t||"number"==typeof t||t instanceof Number||"string"==typeof t||t instanceof String||t instanceof Date?JSON.stringify(t):Array.isArray(t)?function(t,e,n,i){for(var o=e?n+e:void 0,a=e?"[\n":"[",s=0;s<t.length;s++){var l=t[s];if(e&&(a+=o),a+=void 0!==l&&"function"!=typeof l?r(l,e,o,i):"null",s<t.length-1&&(a+=e?",\n":","),a.length>i)return a+"..."}return a+(e?"\n"+n+"]":"]")}(t,e,n,o):t&&"object"===i(t)?function(t,e,n,i){var o,a,s=e?n+e:void 0,l=!0,c=e?"{\n":"{";if("function"==typeof t.toJSON)return r(t.toJSON(),e,n,i);for(var u in t)if(o=t,a=u,Object.prototype.hasOwnProperty.call(o,a)){var h=t[u];if(l?l=!1:c+=e?",\n":",",c+=e?s+'"'+u+'": ':'"'+u+'":',(c+=r(h,e,s,i)).length>i)return c+"..."}return c+(e?"\n"+n+"}":"}")}(t,e,n,o):void 0}function o(t,e){for(var n="";0<e--;)n+=t;return n}function a(t){var e=t.container,n=t.json,i=t.queryDescription,a=void 0===i?f:i,s=t.createQuery,c=t.executeQuery,g=t.onTransform,m=n,v='<label class="pico-modal-contents"><div class="pico-modal-header">'+Object(h.c)("transform")+"</div><p>"+a+'</p><div class="jsoneditor-jmespath-label">'+Object(h.c)("transformWizardLabel")+' </div><div id="wizard" class="jsoneditor-jmespath-block jsoneditor-jmespath-wizard">  <table class="jsoneditor-jmespath-wizard-table">    <tbody>      <tr>        <th>'+Object(h.c)("transformWizardFilter")+'</th>        <td class="jsoneditor-jmespath-filter">          <div class="jsoneditor-inline jsoneditor-jmespath-filter-field" >            <select id="filterField">            </select>          </div>          <div class="jsoneditor-inline jsoneditor-jmespath-filter-relation" >            <select id="filterRelation">              <option value="==">==</option>              <option value="!=">!=</option>              <option value="<">&lt;</option>              <option value="<=">&lt;=</option>              <option value=">">&gt;</option>              <option value=">=">&gt;=</option>            </select>          </div>          <div class="jsoneditor-inline jsoneditor-jmespath-filter-value" >            <input type="text" class="value" placeholder="value..." id="filterValue" />          </div>        </td>      </tr>      <tr>        <th>'+Object(h.c)("transformWizardSortBy")+'</th>        <td class="jsoneditor-jmespath-filter">          <div class="jsoneditor-inline jsoneditor-jmespath-sort-field">            <select id="sortField">            </select>          </div>          <div class="jsoneditor-inline jsoneditor-jmespath-sort-order" >            <select id="sortOrder">              <option value="asc">Ascending</option>              <option value="desc">Descending</option>            </select>          </div>        </td>      </tr>      <tr id="selectFieldsPart">        <th>'+Object(h.c)("transformWizardSelectFields")+'</th>        <td class="jsoneditor-jmespath-filter">          <select class="jsoneditor-jmespath-select-fields" id="selectFields" multiple></select>        </td>      </tr>    </tbody>  </table></div><div class="jsoneditor-jmespath-label">'+Object(h.c)("transformQueryLabel")+' </div><div class="jsoneditor-jmespath-block">  <textarea id="query"             rows="4"             autocomplete="off"             autocorrect="off"             autocapitalize="off"             spellcheck="false"            title="'+Object(h.c)("transformQueryTitle")+'">[*]</textarea></div><div class="jsoneditor-jmespath-label">'+Object(h.c)("transformPreviewLabel")+' </div><div class="jsoneditor-jmespath-block">  <textarea id="preview"       class="jsoneditor-transform-preview"      readonly> </textarea></div><div class="jsoneditor-jmespath-block jsoneditor-modal-actions">  <input type="submit" id="ok" value="'+Object(h.c)("ok")+'" autofocus /></div></div>';l()({parent:e,content:v,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-transform",focus:!1}).afterCreate((function(t){function e(t){return""===t?"@":"."===t[0]?t.slice(1):t}function i(t,e){try{C.value=s(t,e),f.disabled=!1,P()}catch(t){var n='Error: an error happened when executing "createQuery": '+(t.message||t.toString());C.value="",f.disabled=!0,A.className="jsoneditor-transform-preview jsoneditor-error",A.value=n}}function a(){var t={};if(v.value&&y.value&&b.value&&(t.filter={field:v.value,relation:y.value,value:b.value}),x.value&&w.value&&(t.sort={field:x.value,direction:w.value}),_.value){for(var e=[],r=0;r<_.options.length;r++)if(_.options[r].selected){var o=_.options[r].value;e.push(o)}t.projection={fields:e}}i(n,t)}var l=t.modalElem(),h=l.querySelector("#wizard"),f=l.querySelector("#ok"),v=l.querySelector("#filterField"),y=l.querySelector("#filterRelation"),b=l.querySelector("#filterValue"),x=l.querySelector("#sortField"),w=l.querySelector("#sortOrder"),_=l.querySelector("#selectFields"),C=l.querySelector("#query"),A=l.querySelector("#preview");Array.isArray(m)||(h.style.fontStyle="italic",h.innerHTML="(wizard not available for objects, only for arrays)"),Object(d.getChildPaths)(n).forEach((function(t){var n=e(t),i=document.createElement("option");i.text=n,i.value=n,v.appendChild(i);var r=document.createElement("option");r.text=n,r.value=n,x.appendChild(r)}));var I=Object(d.getChildPaths)(n,!0).filter((function(t){return""!==t}));if(0<I.length)I.forEach((function(t){var n=e(t),i=document.createElement("option");i.text=n,i.value=n,_.appendChild(i)}));else{var S=l.querySelector("#selectFieldsPart");S&&(S.style.display="none")}var M=new u.a(v,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."}),k=new u.a(y,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"compare..."}),E=new u.a(x,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"field..."}),T=new u.a(w,{defaultSelected:!1,clearable:!0,allowDeselect:!0,placeholder:"order..."}),O=new u.a(_,{multiple:!0,clearable:!0,defaultSelected:!1,placeholder:"select fields..."});M.on("selectr.change",a),k.on("selectr.change",a),b.oninput=a,E.on("selectr.change",a),T.on("selectr.change",a),O.on("selectr.change",a),l.querySelector(".pico-modal-contents").onclick=function(t){"A"!==t.target.nodeName&&t.preventDefault()};var P=Object(d.debounce)((function(){try{var t=c(m,C.value);A.className="jsoneditor-transform-preview",A.value=function(t,e,n){var i;i=o(" ",2);var a,s,l=r(t,i,"",n);return l.length>n?(a=l,("number"==typeof(s=n)?a.slice(0,s):a)+"..."):l}(t,0,p.b),f.disabled=!1}catch(t){A.className="jsoneditor-transform-preview jsoneditor-error",A.value=t.toString(),f.disabled=!0}}),300);C.oninput=P,f.onclick=function(e){e.preventDefault(),e.stopPropagation(),t.close(),g(C.value)},i(n,{}),setTimeout((function(){C.select(),C.focus(),C.selectionStart=3,C.selectionEnd=3}))})).afterClose((function(t){t.destroy()})).show()}n.r(e),n.d(e,"showTransformModal",(function(){return a}));var s=n(14),l=n.n(s),c=n(10),u=n.n(c),h=n(1),d=n(0),p=n(2),f='Enter a <a href="http://jmespath.org" target="_blank">JMESPath</a> query to filter, sort, or transform the JSON data.<br/>To learn JMESPath, go to <a href="http://jmespath.org/tutorial.html" target="_blank">the interactive tutorial</a>.'},function(t,e,n){"use strict";function i(t,e,n){var i=n?" !== ":" === ",r=n?" || ":" && ",o=n?"!":"",a=n?"":"!";switch(t){case"null":return e+i+"null";case"array":return o+"Array.isArray("+e+")";case"object":return"("+o+e+r+"typeof "+e+i+'"object"'+r+a+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+i+'"number"'+r+a+"("+e+" % 1)"+r+e+i+e+")";default:return"typeof "+e+i+'"'+t+'"'}}function r(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}function o(t){return"number"==typeof t?"["+t+"]":d.test(t)?"."+t:"['"+a(t)+"']"}function a(t){return t.replace(p,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function s(t){return"'"+a(t)+"'"}function l(t,e){return'""'==t?e:(t+" + "+e).replace(/' \+ '/g,"")}function c(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function u(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}t.exports={copy:function(t,e){for(var n in e=e||{},t)e[n]=t[n];return e},checkDataType:i,checkDataTypes:function(t,e){switch(t.length){case 1:return i(t[0],e,!0);default:var n="",o=r(t);for(var a in o.array&&o.object&&(n=o.null?"(":"(!"+e+" || ",n+="typeof "+e+' !== "object")',delete o.null,delete o.array,delete o.object),o.number&&delete o.integer,o)n+=(n?" && ":"")+i(a,e,!0);return n}},coerceToTypes:function(t,e){if(Array.isArray(e)){for(var n=[],i=0;i<e.length;i++){var r=e[i];(h[r]||"array"===t&&"array"===r)&&(n[n.length]=r)}if(n.length)return n}else{if(h[e])return[e];if("array"===t&&"array"===e)return["array"]}},toHash:r,getProperty:o,escapeQuotes:a,equal:n(18),ucs2length:n(47),varOccurences:function(t,e){e+="[^0-9]";var n=t.match(new RegExp(e,"g"));return n?n.length:0},varReplace:function(t,e,n){return e+="([^0-9])",n=n.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),n+"$1")},cleanUpCode:function(t){return t.replace(f,"").replace(g,"").replace(m,"if (!($1))")},finalCleanUpCode:function(t,e){var n=t.match(v);return n&&2==n.length&&(t=e?t.replace(b,"").replace(_,C):t.replace(y,"").replace(x,w)),(n=t.match(A))&&3===n.length?t.replace(I,""):t},schemaHasRules:function(t,e){if("boolean"==typeof t)return!t;for(var n in t)if(e[n])return!0},schemaHasRulesExcept:function(t,e,n){if("boolean"==typeof t)return!t&&"not"!=n;for(var i in t)if(i!=n&&e[i])return!0},schemaUnknownRules:function(t,e){if("boolean"!=typeof t)for(var n in t)if(!e[n])return n},toQuotedString:s,getPathExpr:function(t,e,n,i){return l(t,n?"'/' + "+e+(i?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):i?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'")},getPath:function(t,e,n){return l(t,s(n?"/"+c(e):o(e)))},getData:function(t,e,n){var i,r,a,s;if(""===t)return"rootData";if("/"==t[0]){if(!S.test(t))throw new Error("Invalid JSON-pointer: "+t);r=t,a="rootData"}else{if(!(s=t.match(M)))throw new Error("Invalid JSON-pointer: "+t);if(i=+s[1],"#"==(r=s[2])){if(e<=i)throw new Error("Cannot access property/index "+i+" levels up, current level is "+e);return n[e-i]}if(e<i)throw new Error("Cannot access data "+i+" levels up, current level is "+e);if(a="data"+(e-i||""),!r)return a}for(var l=a,c=r.split("/"),h=0;h<c.length;h++){var d=c[h];d&&(a+=o(u(d)),l+=" && "+a)}return l},unescapeFragment:function(t){return u(decodeURIComponent(t))},unescapeJsonPointer:u,escapeFragment:function(t){return encodeURIComponent(c(t))},escapeJsonPointer:c};var h=r(["string","number","integer","boolean","null"]),d=/^[a-z$_][a-z$_0-9]*$/i,p=/'|\\/g,f=/else\s*{\s*}/g,g=/if\s*\([^)]+\)\s*\{\s*\}(?!\s*else)/g,m=/if\s*\(([^)]+)\)\s*\{\s*\}\s*else(?!\s*if)/g,v=/[^v.]errors/g,y=/var errors = 0;|var vErrors = null;|validate.errors = vErrors;/g,b=/var errors = 0;|var vErrors = null;/g,x="return errors === 0;",w="validate.errors = null; return true;",_=/if \(errors === 0\) return data;\s*else throw new ValidationError\(vErrors\);/,C="return data;",A=/[^A-Za-z_$]rootData[^A-Za-z0-9_$]/g,I=/if \(rootData === undefined\) rootData = data;/,S=/^\/(?:[^~]|~0|~1)*$/,M=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}n.d(e,"a",(function(){return a}));var r=n(3),o=n(1),a=function(){function t(e,n,i,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s={code:{text:Object(o.c)("modeCodeText"),title:Object(o.c)("modeCodeTitle"),click:function(){a("code")}},form:{text:Object(o.c)("modeFormText"),title:Object(o.c)("modeFormTitle"),click:function(){a("form")}},text:{text:Object(o.c)("modeTextText"),title:Object(o.c)("modeTextTitle"),click:function(){a("text")}},tree:{text:Object(o.c)("modeTreeText"),title:Object(o.c)("modeTreeTitle"),click:function(){a("tree")}},view:{text:Object(o.c)("modeViewText"),title:Object(o.c)("modeViewTitle"),click:function(){a("view")}},preview:{text:Object(o.c)("modePreviewText"),title:Object(o.c)("modePreviewTitle"),click:function(){a("preview")}}},l=[],c=0;c<n.length;c++){var u=n[c],h=s[u];if(!h)throw new Error('Unknown mode "'+u+'"');h.className="jsoneditor-type-modes"+(i===u?" jsoneditor-selected":""),l.push(h)}var d=s[i];if(!d)throw new Error('Unknown mode "'+i+'"');var p=d.text,f=document.createElement("button");f.type="button",f.className="jsoneditor-modes jsoneditor-separator",f.innerHTML=p+" &#x25BE;",f.title=Object(o.c)("modeEditorTitle"),f.onclick=function(){new r.a(l).show(f,e)};var g=document.createElement("div");g.className="jsoneditor-modes",g.style.position="relative",g.appendChild(f),e.appendChild(g),this.dom={container:e,box:f,frame:g}}var e,n;return e=t,(n=[{key:"focus",value:function(){this.dom.box.focus()}},{key:"destroy",value:function(){this.dom&&this.dom.frame&&this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom=null}}])&&i(e.prototype,n),t}()},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}n.d(e,"a",(function(){return r}));var r=function(){function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.target=e.target||null,!this.target)throw new Error('FocusTracker constructor called without a "target" to track.');this.onFocus="function"==typeof e.onFocus?e.onFocus:null,this.onBlur="function"==typeof e.onBlur?e.onBlur:null,this._onClick=this._onEvent.bind(this),this._onKeyUp=function(t){9!==t.which&&9!==t.keyCode||this._onEvent(t)}.bind(this),this.focusFlag=!1,this.firstEventFlag=!0,(this.onFocus||this.onBlur)&&(document.addEventListener("click",this._onClick),document.addEventListener("keyup",this._onKeyUp))}var e,n;return e=t,(n=[{key:"destroy",value:function(){document.removeEventListener("click",this._onClick),document.removeEventListener("keyup",this._onKeyUp),this._onEvent({target:document.body})}},{key:"_onEvent",value:function(t){var e=t.target;e===this.target||this.target.contains(e)||this.target.contains(document.activeElement)?this.focusFlag||(this.onFocus&&this.onFocus({type:"focus",target:this.target}),this.focusFlag=!0):(this.focusFlag||this.firstEventFlag)&&(this.onBlur&&this.onBlur({type:"blur",target:this.target}),this.focusFlag=!1,this.firstEventFlag&&(this.firstEventFlag=!1))}}])&&i(e.prototype,n),t}()},function(t,e,n){"use strict";function i(){}function r(t,e){return t.hasOwnProperty(e)&&(!0===t[e]||t[e].length)}function o(t,e,n){t.parentNode?t.parentNode.parentNode||e.appendChild(t.parentNode):e.appendChild(t),h.removeClass(t,"excluded"),n||(t.innerHTML=t.textContent)}function a(){if(this.items.length){var t=document.createDocumentFragment();if(this.config.pagination){var e=this.pages.slice(0,this.pageIndex);h.each(e,(function(e,n){h.each(n,(function(e,n){o(n,t,this.customOption)}),this)}),this)}else h.each(this.items,(function(e,n){o(n,t,this.customOption)}),this);t.childElementCount&&(h.removeClass(this.items[this.navIndex],"active"),this.navIndex=t.querySelector(".selectr-option").idx,h.addClass(this.items[this.navIndex],"active")),this.tree.appendChild(t)}}function s(t,e){e=e||t;var n=this.customOption?this.config.renderOption(e):t.textContent,i=h.createElement("li",{class:"selectr-option",html:n,role:"treeitem","aria-selected":!1});return i.idx=t.idx,this.items.push(i),t.defaultSelected&&this.defaultSelected.push(t.idx),t.disabled&&(i.disabled=!0,h.addClass(i,"disabled")),i}function l(){(this.config.searchable||this.config.taggable)&&(this.input.value=null,this.searching=!1,this.config.searchable&&h.removeClass(this.inputContainer,"active"),h.hasClass(this.container,"notice")&&(h.removeClass(this.container,"notice"),h.addClass(this.container,"open"),this.input.focus()),h.each(this.items,(function(t,e){h.removeClass(e,"excluded"),this.customOption||(e.innerHTML=e.textContent)}),this))}function c(t,e){if(e=e||{},!t)throw new Error("You must supply either a HTMLSelectElement or a CSS3 selector string.");if("string"==typeof(this.el=t)&&(this.el=document.querySelector(t)),null===this.el)throw new Error("The element you passed to Selectr can not be found.");if("select"!==this.el.nodeName.toLowerCase())throw new Error("The element you passed to Selectr is not a HTMLSelectElement.");this.render(e)}var u={defaultSelected:!0,width:"auto",disabled:!1,searchable:!0,clearable:!1,sortSelected:!1,allowDeselect:!1,closeOnScroll:!1,nativeDropdown:!1,placeholder:"Select an option...",taggable:!1,tagPlaceholder:"Enter a tag..."};i.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){this._events=this._events||{},t in this._events!=0&&this._events[t].splice(this._events[t].indexOf(e),1)},emit:function(t){if(this._events=this._events||{},t in this._events!=0)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},i.mixin=function(t){for(var e=["on","off","emit"],n=0;n<e.length;n++)"function"==typeof t?t.prototype[e[n]]=i.prototype[e[n]]:t[e[n]]=i.prototype[e[n]];return t};var h={extend:function(t,e){var n;for(n in e=e||{},t)t.hasOwnProperty(n)&&(e.hasOwnProperty(n)||(e[n]=t[n]));return e},each:function(t,e,n){if("[object Object]"===Object.prototype.toString.call(t))for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(n,i,t[i],t);else for(var r=0,o=t.length;r<o;r++)e.call(n,r,t[r],t)},createElement:function(t,e){var n,i=document,r=i.createElement(t);if(e&&"[object Object]"===Object.prototype.toString.call(e))for(n in e)if(n in r)r[n]=e[n];else if("html"===n)r.innerHTML=e[n];else if("text"===n){var o=i.createTextNode(e[n]);r.appendChild(o)}else r.setAttribute(n,e[n]);return r},hasClass:function(t,e){if(t)return t.classList?t.classList.contains(e):!!t.className&&!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},addClass:function(t,e){h.hasClass(t,e)||(t.classList?t.classList.add(e):t.className=t.className.trim()+" "+e)},removeClass:function(t,e){h.hasClass(t,e)&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s)"+e.split(" ").join("|")+"(\\s|$)","gi")," "))},closest:function(t,e){return t&&t!==document.body&&(e(t)?t:h.closest(t.parentNode,e))},isInt:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},debounce:function(t,e,n){var i;return function(){var r=this,o=arguments,a=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||t.apply(r,o)}),e),a&&t.apply(r,o)}},rect:function(t,e){var n=window,i=t.getBoundingClientRect(),r=e?n.pageXOffset:0,o=e?n.pageYOffset:0;return{bottom:i.bottom+o,height:i.height,left:i.left+r,right:i.right+r,top:i.top+o,width:i.width}},includes:function(t,e){return-1<t.indexOf(e)},truncate:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}},d=function(){var t=this.tree,e=t.scrollTop;if(t.scrollHeight-t.offsetHeight<=e&&this.pageIndex<this.pages.length){var n=document.createDocumentFragment();h.each(this.pages[this.pageIndex],(function(t,e){o(e,n,this.customOption)}),this),t.appendChild(n),this.pageIndex++,this.emit("selectr.paginate",{items:this.items.length,total:this.data.length,page:this.pageIndex,pages:this.pages.length})}};c.prototype.render=function(t){if(!this.rendered){this.config=h.extend(u,t),this.originalType=this.el.type,this.originalIndex=this.el.tabIndex,this.defaultSelected=[],this.originalOptionCount=this.el.options.length,(this.config.multiple||this.config.taggable)&&(this.el.multiple=!0),this.disabled=r(this.config,"disabled"),this.opened=!1,this.config.taggable&&(this.config.searchable=!1),this.navigating=!1,this.mobileDevice=!1,/Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(navigator.userAgent)&&(this.mobileDevice=!0),this.customOption=this.config.hasOwnProperty("renderOption")&&"function"==typeof this.config.renderOption,this.customSelected=this.config.hasOwnProperty("renderSelection")&&"function"==typeof this.config.renderSelection,i.mixin(this),function(){this.requiresPagination=this.config.pagination&&0<this.config.pagination,r(this.config,"width")&&(h.isInt(this.config.width)?this.width=this.config.width+"px":"auto"===this.config.width?this.width="100%":h.includes(this.config.width,"%")&&(this.width=this.config.width)),this.container=h.createElement("div",{class:"selectr-container"}),this.config.customClass&&h.addClass(this.container,this.config.customClass),this.mobileDevice?h.addClass(this.container,"selectr-mobile"):h.addClass(this.container,"selectr-desktop"),this.el.tabIndex=-1,this.config.nativeDropdown||this.mobileDevice?h.addClass(this.el,"selectr-visible"):h.addClass(this.el,"selectr-hidden"),this.selected=h.createElement("div",{class:"selectr-selected",disabled:this.disabled,tabIndex:1,"aria-expanded":!1}),this.label=h.createElement(this.el.multiple?"ul":"span",{class:"selectr-label"});var t=h.createElement("div",{class:"selectr-options-container"});if(this.tree=h.createElement("ul",{class:"selectr-options",role:"tree","aria-hidden":!0,"aria-expanded":!1}),this.notice=h.createElement("div",{class:"selectr-notice"}),this.el.setAttribute("aria-hidden",!0),this.disabled&&(this.el.disabled=!0),this.el.multiple&&(h.addClass(this.label,"selectr-tags"),h.addClass(this.container,"multiple"),this.tags=[],this.selectedValues=this.getSelectedProperties("value"),this.selectedIndexes=this.getSelectedProperties("idx")),this.selected.appendChild(this.label),this.config.clearable&&(this.selectClear=h.createElement("button",{class:"selectr-clear",type:"button"}),this.container.appendChild(this.selectClear),h.addClass(this.container,"clearable")),this.config.taggable){var e=h.createElement("li",{class:"input-tag"});this.input=h.createElement("input",{class:"selectr-tag-input",placeholder:this.config.tagPlaceholder,tagIndex:0,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search"}),e.appendChild(this.input),this.label.appendChild(e),h.addClass(this.container,"taggable"),this.tagSeperators=[","],this.config.tagSeperators&&(this.tagSeperators=this.tagSeperators.concat(this.config.tagSeperators))}this.config.searchable&&(this.input=h.createElement("input",{class:"selectr-input",tagIndex:-1,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"textbox",type:"search"}),this.inputClear=h.createElement("button",{class:"selectr-input-clear",type:"button"}),this.inputContainer=h.createElement("div",{class:"selectr-input-container"}),this.inputContainer.appendChild(this.input),this.inputContainer.appendChild(this.inputClear),t.appendChild(this.inputContainer)),t.appendChild(this.notice),t.appendChild(this.tree),this.items=[],this.options=[],this.el.options.length&&(this.options=[].slice.call(this.el.options));var n,i=!1,o=0;if(this.el.children.length&&h.each(this.el.children,(function(t,e){"OPTGROUP"===e.nodeName?(i=h.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+e.label+"</li>"}),h.each(e.children,(function(t,e){e.idx=o,i.appendChild(s.call(this,e,i)),o++}),this)):(e.idx=o,s.call(this,e),o++)}),this),this.config.data&&Array.isArray(this.config.data)){var a,l=!(this.data=[]);i=!1,o=0,h.each(this.config.data,(function(t,e){r(e,"children")?(l=h.createElement("optgroup",{label:e.text}),i=h.createElement("ul",{class:"selectr-optgroup",role:"group",html:"<li class='selectr-optgroup--label'>"+e.text+"</li>"}),h.each(e.children,(function(t,e){(a=new Option(e.text,e.value,!1,e.hasOwnProperty("selected")&&!0===e.selected)).disabled=r(e,"disabled"),this.options.push(a),l.appendChild(a),a.idx=o,i.appendChild(s.call(this,a,e)),this.data[o]=e,o++}),this)):((a=new Option(e.text,e.value,!1,e.hasOwnProperty("selected")&&!0===e.selected)).disabled=r(e,"disabled"),this.options.push(a),a.idx=o,s.call(this,a,e),this.data[o]=e,o++)}),this)}this.setSelected(!0);for(var c=this.navIndex=0;c<this.items.length;c++)if(n=this.items[c],!h.hasClass(n,"disabled")){h.addClass(n,"active"),this.navIndex=c;break}this.requiresPagination&&(this.pageIndex=1,this.paginate()),this.container.appendChild(this.selected),this.container.appendChild(t),this.placeEl=h.createElement("div",{class:"selectr-placeholder"}),this.setPlaceholder(),this.selected.appendChild(this.placeEl),this.disabled&&this.disable(),this.el.parentNode.insertBefore(this.container,this.el),this.container.appendChild(this.el)}.call(this),this.bindEvents(),this.update(),this.optsRect=h.rect(this.tree),this.rendered=!0,this.el.multiple||(this.el.selectedIndex=this.selectedIndex);var e=this;setTimeout((function(){e.emit("selectr.init")}),20)}},c.prototype.getSelected=function(){return this.el.querySelectorAll("option:checked")},c.prototype.getSelectedProperties=function(t){var e=this.getSelected();return[].slice.call(e).map((function(e){return e[t]})).filter((function(t){return null!=t}))},c.prototype.bindEvents=function(){var t=this;this.events={},this.events.dismiss=function(t){var e=t.target;this.container.contains(e)||!this.opened&&!h.hasClass(this.container,"notice")||this.close()}.bind(this),this.events.navigate=function(t){if(t=t||window.event,this.items.length&&this.opened&&h.includes([13,38,40],t.which)){if(t.preventDefault(),13===t.which)return!(this.config.taggable&&0<this.input.value.length)&&this.change(this.navIndex);var e,n=this.items[this.navIndex];switch(t.which){case 38:(e=0)<this.navIndex&&this.navIndex--;break;case 40:e=1,this.navIndex<this.items.length-1&&this.navIndex++}for(this.navigating=!0;h.hasClass(this.items[this.navIndex],"disabled")||h.hasClass(this.items[this.navIndex],"excluded");)if(e?this.navIndex++:this.navIndex--,this.searching){if(this.navIndex>this.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndex<this.tree.firstElementChild.idx){this.navIndex=this.tree.firstElementChild.idx;break}}var i=h.rect(this.items[this.navIndex]);e?(0===this.navIndex?this.tree.scrollTop=0:i.top+i.height>this.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(i.top+i.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&d.call(this)):0===this.navIndex?this.tree.scrollTop=0:i.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(i.top-this.optsRect.top)),n&&h.removeClass(n,"active"),h.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}.bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",(function(e){e.changedTouches[0].target===t.el&&t.toggle()})),(this.config.nativeDropdown||this.mobileDevice)&&this.container.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),e.target===t.el&&t.toggle()})),this.el.addEventListener("change",(function(e){if(t.el.multiple){var n=t.getSelectedProperties("idx"),i=function(t,e){for(var n,i=[],r=t.slice(0),o=0;o<e.length;o++)-1<(n=r.indexOf(e[o]))?r.splice(n,1):i.push(e[o]);return[i,r]}(t.selectedIndexes,n);h.each(i[0],(function(e,n){t.select(n)}),t),h.each(i[1],(function(e,n){t.deselect(n)}),t)}else-1<t.el.selectedIndex&&t.select(t.el.selectedIndex)}))),this.config.nativeDropdown&&this.container.addEventListener("keydown",(function(e){"Enter"===e.key&&t.selected===document.activeElement&&(t.toggle(),setTimeout((function(){t.el.focus()}),200))})),this.selected.addEventListener("click",(function(e){t.disabled||t.toggle(),e.preventDefault(),e.stopPropagation()})),this.label.addEventListener("click",(function(e){h.hasClass(e.target,"selectr-tag-remove")&&t.deselect(e.target.parentNode.idx)})),this.selectClear&&this.selectClear.addEventListener("click",this.clear.bind(this)),this.tree.addEventListener("mousedown",(function(t){t.preventDefault()})),this.tree.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();var n=h.closest(e.target,(function(t){return t&&h.hasClass(t,"selectr-option")}));n&&(h.hasClass(n,"disabled")||(h.hasClass(n,"selected")?(t.el.multiple||!t.el.multiple&&t.config.allowDeselect)&&t.deselect(n.idx):t.select(n.idx),t.opened&&!t.el.multiple&&t.close()))})),this.tree.addEventListener("mouseover",(function(e){h.hasClass(e.target,"selectr-option")&&(h.hasClass(e.target,"disabled")||(h.removeClass(t.items[t.navIndex],"active"),h.addClass(e.target,"active"),t.navIndex=[].slice.call(t.items).indexOf(e.target)))})),this.config.searchable&&(this.input.addEventListener("focus",(function(e){t.searching=!0})),this.input.addEventListener("blur",(function(e){t.searching=!1})),this.input.addEventListener("keyup",(function(e){t.search(),t.config.taggable||(this.value.length?h.addClass(this.parentNode,"active"):h.removeClass(this.parentNode,"active"))})),this.inputClear.addEventListener("click",(function(e){t.input.value=null,l.call(t),t.tree.childElementCount||a.call(t)}))),this.config.taggable&&this.input.addEventListener("keyup",(function(e){if(t.search(),t.config.taggable&&this.value.length){var n=this.value.trim();(13===e.which||h.includes(t.tagSeperators,e.key))&&(h.each(t.tagSeperators,(function(t,e){n=n.replace(e,"")})),t.add({value:n,text:n,selected:!0},!0)?(t.close(),l.call(t)):(this.value="",t.setMessage("That tag is already in use.")))}})),this.update=h.debounce((function(){t.opened&&t.config.closeOnScroll&&t.close(),t.width&&(t.container.style.width=t.width),t.invert()}),50),this.requiresPagination&&(this.paginateItems=h.debounce((function(){d.call(this)}),50),this.tree.addEventListener("scroll",this.paginateItems.bind(this))),document.addEventListener("click",this.events.dismiss),window.addEventListener("keydown",this.events.navigate),window.addEventListener("resize",this.update),window.addEventListener("scroll",this.update),this.el.form&&this.el.form.addEventListener("reset",this.events.reset)},c.prototype.setSelected=function(t){if(this.config.data||this.el.multiple||!this.el.options.length||(0===this.el.selectedIndex&&(this.el.options[0].defaultSelected||this.config.defaultSelected||(this.el.selectedIndex=-1)),this.selectedIndex=this.el.selectedIndex,-1<this.selectedIndex&&this.select(this.selectedIndex)),this.config.multiple&&"select-one"===this.originalType&&!this.config.data&&this.el.options[0].selected&&!this.el.options[0].defaultSelected&&(this.el.options[0].selected=!1),h.each(this.options,(function(t,e){e.selected&&e.defaultSelected&&this.select(e.idx)}),this),this.config.selectedValue&&this.setValue(this.config.selectedValue),this.config.data){!this.el.multiple&&this.config.defaultSelected&&this.el.selectedIndex<0&&this.select(0);var e=0;h.each(this.config.data,(function(t,n){r(n,"children")?h.each(n.children,(function(t,n){n.hasOwnProperty("selected")&&!0===n.selected&&this.select(e),e++}),this):(n.hasOwnProperty("selected")&&!0===n.selected&&this.select(e),e++)}),this)}},c.prototype.destroy=function(){this.rendered&&(this.emit("selectr.destroy"),"select-one"===this.originalType&&(this.el.multiple=!1),this.config.data&&(this.el.innerHTML=""),h.removeClass(this.el,"selectr-hidden"),this.el.form&&h.off(this.el.form,"reset",this.events.reset),h.off(document,"click",this.events.dismiss),h.off(document,"keydown",this.events.navigate),h.off(window,"resize",this.update),h.off(window,"scroll",this.update),this.container.parentNode.replaceChild(this.el,this.container),this.rendered=!1)},c.prototype.change=function(t){var e=this.items[t],n=this.options[t];n.disabled||(n.selected&&h.hasClass(e,"selected")?this.deselect(t):this.select(t),this.opened&&!this.el.multiple&&this.close())},c.prototype.select=function(t){var e=this.items[t],n=[].slice.call(this.el.options),i=this.options[t];if(this.el.multiple){if(h.includes(this.selectedIndexes,t))return!1;if(this.config.maxSelections&&this.tags.length===this.config.maxSelections)return this.setMessage("A maximum of "+this.config.maxSelections+" items can be selected.",!0),!1;this.selectedValues.push(i.value),this.selectedIndexes.push(t),function(t){var e,n=this,i=document.createDocumentFragment(),r=this.options[t.idx],o=this.data?this.data[t.idx]:r,a=this.customSelected?this.config.renderSelection(o):r.textContent,s=h.createElement("li",{class:"selectr-tag",html:a}),l=h.createElement("button",{class:"selectr-tag-remove",type:"button"});if(s.appendChild(l),s.idx=t.idx,s.tag=r.value,this.tags.push(s),this.config.sortSelected){var c=this.tags.slice();e=function(t,e){t.replace(/(\d+)|(\D+)/g,(function(t,n,i){e.push([n||1/0,i||""])}))},c.sort((function(t,i){var r,o,a=[],s=[];for(!0===n.config.sortSelected?(r=t.tag,o=i.tag):"text"===n.config.sortSelected&&(r=t.textContent,o=i.textContent),e(r,a),e(o,s);a.length&&s.length;){var l=a.shift(),c=s.shift(),u=l[0]-c[0]||l[1].localeCompare(c[1]);if(u)return u}return a.length-s.length})),h.each(c,(function(t,e){i.appendChild(e)})),this.label.innerHTML=""}else i.appendChild(s);this.config.taggable?this.label.insertBefore(i,this.input.parentNode):this.label.appendChild(i)}.call(this,e)}else{var r=this.data?this.data[t]:i;this.label.innerHTML=this.customSelected?this.config.renderSelection(r):i.textContent,this.selectedValue=i.value,this.selectedIndex=t,h.each(this.options,(function(e,n){var i=this.items[e];e!==t&&(i&&h.removeClass(i,"selected"),n.selected=!1,n.removeAttribute("selected"))}),this)}h.includes(n,i)||this.el.add(i),e.setAttribute("aria-selected",!0),h.addClass(e,"selected"),h.addClass(this.container,"has-selected"),i.selected=!0,i.setAttribute("selected",""),this.emit("selectr.change",i),this.emit("selectr.select",i)},c.prototype.deselect=function(t,e){var n=this.items[t],i=this.options[t];if(this.el.multiple){var r=this.selectedIndexes.indexOf(t);this.selectedIndexes.splice(r,1);var o=this.selectedValues.indexOf(i.value);this.selectedValues.splice(o,1),function(t){var e=!1;h.each(this.tags,(function(n,i){i.idx===t.idx&&(e=i)}),this),e&&(this.label.removeChild(e),this.tags.splice(this.tags.indexOf(e),1))}.call(this,n),this.tags.length||h.removeClass(this.container,"has-selected")}else{if(!e&&!this.config.clearable&&!this.config.allowDeselect)return!1;this.label.innerHTML="",this.selectedValue=null,this.el.selectedIndex=this.selectedIndex=-1,h.removeClass(this.container,"has-selected")}this.items[t].setAttribute("aria-selected",!1),h.removeClass(this.items[t],"selected"),i.selected=!1,i.removeAttribute("selected"),this.emit("selectr.change",null),this.emit("selectr.deselect",i)},c.prototype.setValue=function(t){var e=Array.isArray(t);if(e||(t=t.toString().trim()),!this.el.multiple&&e)return!1;h.each(this.options,(function(n,i){(e&&h.includes(t.toString(),i.value)||i.value===t)&&this.change(i.idx)}),this)},c.prototype.getValue=function(t,e){var n;if(this.el.multiple)t?this.selectedIndexes.length&&(n={values:[]},h.each(this.selectedIndexes,(function(t,e){var i=this.options[e];n.values[t]={value:i.value,text:i.textContent}}),this)):n=this.selectedValues.slice();else if(t){var i=this.options[this.selectedIndex];n={value:i.value,text:i.textContent}}else n=this.selectedValue;return t&&e&&(n=JSON.stringify(n)),n},c.prototype.add=function(t,e){if(t){if(this.data=this.data||[],this.items=this.items||[],this.options=this.options||[],Array.isArray(t))h.each(t,(function(t,n){this.add(n,e)}),this);else if("[object Object]"===Object.prototype.toString.call(t)){if(e){var n=!1;if(h.each(this.options,(function(e,i){i.value.toLowerCase()===t.value.toLowerCase()&&(n=!0)})),n)return!1}var i=h.createElement("option",t);return this.data.push(t),this.options.push(i),i.idx=0<this.options.length?this.options.length-1:0,s.call(this,i),t.selected&&this.select(i.idx),i}return this.setPlaceholder(),this.config.pagination&&this.paginate(),!0}},c.prototype.remove=function(t){var e,n=[];Array.isArray(t)?h.each(t,(function(e,i){h.isInt(i)?n.push(this.getOptionByIndex(i)):"string"==typeof t&&n.push(this.getOptionByValue(i))}),this):h.isInt(t)?n.push(this.getOptionByIndex(t)):"string"==typeof t&&n.push(this.getOptionByValue(t)),n.length&&(h.each(n,(function(t,n){e=n.idx,this.el.remove(n),this.options.splice(e,1);var i=this.items[e].parentNode;i&&i.removeChild(this.items[e]),this.items.splice(e,1),h.each(this.options,(function(t,e){e.idx=t,this.items[t].idx=t}),this)}),this),this.setPlaceholder(),this.config.pagination&&this.paginate())},c.prototype.removeAll=function(){this.clear(!0),h.each(this.el.options,(function(t,e){this.el.remove(e)}),this),h.truncate(this.tree),this.items=[],this.options=[],this.data=[],this.navIndex=0,this.requiresPagination&&(this.requiresPagination=!1,this.pageIndex=1,this.pages=[]),this.setPlaceholder()},c.prototype.search=function(t){if(!this.navigating){t=t||this.input.value;var e=document.createDocumentFragment();if(this.removeMessage(),h.truncate(this.tree),1<t.length)if(h.each(this.options,(function(n,i){var r,a,s=this.items[i.idx];h.includes(i.textContent.toLowerCase(),t.toLowerCase())&&!i.disabled?(o(s,e,this.customOption),h.removeClass(s,"excluded"),this.customOption||(s.innerHTML=(r=i,!!(a=new RegExp(t,"i").exec(r.textContent))&&r.textContent.replace(a[0],"<span class='selectr-match'>"+a[0]+"</span>")))):h.addClass(s,"excluded")}),this),e.childElementCount){var n=this.items[this.navIndex],i=e.firstElementChild;h.removeClass(n,"active"),this.navIndex=i.idx,h.addClass(i,"active")}else this.config.taggable||this.setMessage("no results.");else a.call(this);this.tree.appendChild(e)}},c.prototype.toggle=function(){this.disabled||(this.opened?this.close():this.open())},c.prototype.open=function(){var t=this;return!!this.options.length&&(this.opened||this.emit("selectr.open"),this.opened=!0,this.mobileDevice||this.config.nativeDropdown?(h.addClass(this.container,"native-open"),void(this.config.data&&h.each(this.options,(function(t,e){this.el.add(e)}),this))):(h.addClass(this.container,"open"),a.call(this),this.invert(),this.tree.scrollTop=0,h.removeClass(this.container,"notice"),this.selected.setAttribute("aria-expanded",!0),this.tree.setAttribute("aria-hidden",!1),this.tree.setAttribute("aria-expanded",!0),void(this.config.searchable&&!this.config.taggable&&setTimeout((function(){t.input.focus(),t.input.tabIndex=0}),10))))},c.prototype.close=function(){if(this.opened&&this.emit("selectr.close"),this.opened=!1,this.mobileDevice||this.config.nativeDropdown)h.removeClass(this.container,"native-open");else{var t=h.hasClass(this.container,"notice");this.config.searchable&&!t&&(this.input.blur(),this.input.tabIndex=-1,this.searching=!1),t&&(h.removeClass(this.container,"notice"),this.notice.textContent=""),h.removeClass(this.container,"open"),h.removeClass(this.container,"native-open"),this.selected.setAttribute("aria-expanded",!1),this.tree.setAttribute("aria-hidden",!0),this.tree.setAttribute("aria-expanded",!1),h.truncate(this.tree),l.call(this)}},c.prototype.enable=function(){this.disabled=!1,this.el.disabled=!1,this.selected.tabIndex=this.originalIndex,this.el.multiple&&h.each(this.tags,(function(t,e){e.lastElementChild.tabIndex=0})),h.removeClass(this.container,"selectr-disabled")},c.prototype.disable=function(t){t||(this.el.disabled=!0),this.selected.tabIndex=-1,this.el.multiple&&h.each(this.tags,(function(t,e){e.lastElementChild.tabIndex=-1})),this.disabled=!0,h.addClass(this.container,"selectr-disabled")},c.prototype.reset=function(){this.disabled||(this.clear(),this.setSelected(!0),h.each(this.defaultSelected,(function(t,e){this.select(e)}),this),this.emit("selectr.reset"))},c.prototype.clear=function(t){if(this.el.multiple){if(this.selectedIndexes.length){var e=this.selectedIndexes.slice();h.each(e,(function(t,e){this.deselect(e)}),this)}}else-1<this.selectedIndex&&this.deselect(this.selectedIndex,t);this.emit("selectr.clear")},c.prototype.serialise=function(t){var e=[];return h.each(this.options,(function(t,n){var i={value:n.value,text:n.textContent};n.selected&&(i.selected=!0),n.disabled&&(i.disabled=!0),e[t]=i})),t?JSON.stringify(e):e},c.prototype.serialize=function(t){return this.serialise(t)},c.prototype.setPlaceholder=function(t){t=t||this.config.placeholder||this.el.getAttribute("placeholder"),this.options.length||(t="No options available"),this.placeEl.innerHTML=t},c.prototype.paginate=function(){if(this.items.length){var t=this;return this.pages=this.items.map((function(e,n){return n%t.config.pagination==0?t.items.slice(n,n+t.config.pagination):null})).filter((function(t){return t})),this.pages}},c.prototype.setMessage=function(t,e){e&&this.close(),h.addClass(this.container,"notice"),this.notice.textContent=t},c.prototype.removeMessage=function(){h.removeClass(this.container,"notice"),this.notice.innerHTML=""},c.prototype.invert=function(){var t=h.rect(this.selected),e=this.tree.parentNode.offsetHeight,n=window.innerHeight;t.top+t.height+e>n?(h.addClass(this.container,"inverted"),this.isInverted=!0):(h.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=h.rect(this.tree)},c.prototype.getOptionByIndex=function(t){return this.options[t]},c.prototype.getOptionByValue=function(t){for(var e=!1,n=0,i=this.options.length;n<i;n++)if(this.options[n].value.trim()===t.toString().trim()){e=this.options[n];break}return e},t.exports=c},function(t,e){t.exports=function t(e,n){"use strict";function i(e){return t.insensitive&&(""+e).toLowerCase()||""+e}var r,o,a=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,s=/(^[ ]*|[ ]*$)/g,l=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,c=/^0x[0-9a-f]+$/i,u=/^0/,h=i(e).replace(s,"")||"",d=i(n).replace(s,"")||"",p=h.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),f=d.replace(a,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),g=parseInt(h.match(c),16)||1!==p.length&&h.match(l)&&Date.parse(h),m=parseInt(d.match(c),16)||g&&d.match(l)&&Date.parse(d)||null;if(m){if(g<m)return-1;if(m<g)return 1}for(var v=0,y=Math.max(p.length,f.length);v<y;v++){if(r=!(p[v]||"").match(u)&&parseFloat(p[v])||p[v]||0,o=!(f[v]||"").match(u)&&parseFloat(f[v])||f[v]||0,isNaN(r)!==isNaN(o))return isNaN(r)?1:-1;if(typeof r!=typeof o&&(r+="",o+=""),r<o)return-1;if(o<r)return 1}return 0}},function(t,e,n){"use strict";function i(t,e,n){function i(){if(d&&d.parentNode){for(var e in d.parentNode.removeChild(d),c)if(o=c,a=e,Object.prototype.hasOwnProperty.call(o,a)){var i=c[e];i&&Object(r.removeEventListener)(l,e,i),delete c[e]}"function"==typeof n&&n(t)}var o,a}function o(t){var e;(e=t.target)===d||Object(r.isChildOf)(e,d)||i()}var a,s=3<arguments.length&&void 0!==arguments[3]&&arguments[3],l="function"==typeof(a=t).getRootNode?a.getRootNode():window,c={},u=t.getBoundingClientRect(),h=e.getBoundingClientRect(),d=document.createElement("div");if(d.className="jsoneditor-anchor",d.style.position="absolute",d.style.left=u.left-h.left+"px",d.style.top=u.top-h.top+"px",d.style.width=u.width-2+"px",d.style.height=u.height-2+"px",d.style.boxSizing="border-box",e.appendChild(d),c.mousedown=Object(r.addEventListener)(l,"mousedown",o),c.mousewheel=Object(r.addEventListener)(l,"mousewheel",o),s){var p=null;d.onmouseover=function(){clearTimeout(p),p=null},d.onmouseout=function(){p=p||setTimeout(i,200)}}return d.destroy=i,d}n.d(e,"a",(function(){return i}));var r=n(0)},function(t,e,n){var i;if(window.Picker)i=window.Picker;else try{i=n(41)}catch(t){}t.exports=i},function(t,e,n){var i,r,o;!function(){"use strict";r=[],void 0===(o="function"==typeof(i=function(){function t(t){return"object"==typeof Node?t instanceof Node:t&&"object"==typeof t&&"number"==typeof t.nodeType}function e(){var t=[];return{watch:t.push.bind(t),trigger:function(e,n){for(var i=!0,r={detail:n,preventDefault:function(){i=!1}},o=0;o<t.length;o++)t[o](e,r);return i}}}function n(t){return"none"===window.getComputedStyle(t).display}function i(t){this.elem=t}function r(t){return function(){return t().elem}}i.make=function(t,e){"string"==typeof t&&(t=document.querySelector(t));var n=document.createElement(e||"div");return(t||document.body).appendChild(n),new i(n)},i.prototype={child:function(t){return i.make(this.elem,t)},stylize:function(t){for(var e in t=t||{},void 0!==t.opacity&&(t.filter="alpha(opacity="+100*t.opacity+")"),t)t.hasOwnProperty(e)&&(this.elem.style[e]=t[e]);return this},clazz:function(t){return this.elem.className+=" "+t,this},html:function(e){return t(e)?this.elem.appendChild(e):this.elem.innerHTML=e,this},onClick:function(t){return this.elem.addEventListener("click",t),this},destroy:function(){this.elem.parentNode.removeChild(this.elem)},hide:function(){this.elem.style.display="none"},show:function(){this.elem.style.display="block"},attr:function(t,e){return void 0!==e&&this.elem.setAttribute(t,e),this},anyAncestor:function(t){for(var e=this.elem;e;){if(t(new i(e)))return!0;e=e.parentNode}return!1},isVisible:function(){return!n(this.elem)}};var o=1,a=e(),s=e();return document.documentElement.addEventListener("keydown",(function(t){var e=t.which||t.keyCode;27===e?a.trigger():9===e&&s.trigger(t)})),function(l){function c(t,e){var n=l[t];return"function"==typeof n&&(n=n(e)),void 0===n?e:n}function u(t){P().hide(),O().hide(),T.trigger(v,t)}function h(t){E.trigger(v,t)&&u(t)}function d(t){return function(){return t.apply(this,arguments),v}}function p(t,e){if(!y){var n=function(t,e){var n=t("width","auto");"number"==typeof n&&(n+="px");var r=t("modalId","pico-"+o++);return i.make(t("parent")).clazz("pico-content").clazz(t("modalClass","")).stylize({display:"none",position:"fixed",zIndex:10001,left:"50%",top:"38.1966%",maxHeight:"90%",boxSizing:"border-box",width:n,"-ms-transform":"translate(-50%,-38.1966%)","-moz-transform":"translate(-50%,-38.1966%)","-webkit-transform":"translate(-50%,-38.1966%)","-o-transform":"translate(-50%,-38.1966%)",transform:"translate(-50%,-38.1966%)"}).stylize(t("modalStyles",{overflow:"auto",backgroundColor:"white",padding:"20px",borderRadius:"5px"})).html(t("content")).attr("id",r).attr("role","dialog").attr("aria-labelledby",t("ariaLabelledBy")).attr("aria-describedby",t("ariaDescribedBy",r)).onClick((function(t){new i(t.target).anyAncestor((function(t){return/\bpico-close\b/.test(t.elem.className)}))&&e()}))}(c,h);y={modal:n,overlay:(a=h,i.make((r=c)("parent")).clazz("pico-overlay").clazz(r("overlayClass","")).stylize({display:"none",position:"fixed",top:"0px",left:"0px",height:"100%",width:"100%",zIndex:1e4}).stylize(r("overlayStyles",{opacity:.5,background:"#000"})).onClick((function(){r("overlayClose",!0)&&a()}))),close:function(t,e){if(e("closeButton",!0))return t.child("button").html(e("closeHtml","&#xD7;")).clazz("pico-close").clazz(e("closeClass","")).stylize(e("closeStyles",{borderRadius:"2px",border:0,padding:0,cursor:"pointer",height:"15px",width:"15px",position:"absolute",top:"5px",right:"5px",fontSize:"16px",textAlign:"center",lineHeight:"15px",background:"#CCC"})).attr("aria-label",e("close-label","Close"))}(n,c)},S.trigger(v,e)}var r,a;return y[t]}function f(t,e){return(t.msMatchesSelector||t.webkitMatchesSelector||t.matches).call(t,e)}function g(t){return!(n(t)||f(t,":disabled")||t.hasAttribute("contenteditable"))&&(t.hasAttribute("tabindex")||f(t,"input,select,textarea,button,a[href],area[href],iframe"))}function m(t){for(var e=t.getElementsByTagName("*"),n=0;n<e.length;n++)if(g(e[n]))return e[n]}"string"!=typeof l&&!t(l)||(l={content:l});var v,y,b,x,w,_,C,A,I,S=e(),M=e(),k=e(),E=e(),T=e(),O=p.bind(window,"modal"),P=p.bind(window,"overlay"),j=p.bind(window,"close");return v={modalElem:r(O),closeElem:r(j),overlayElem:r(P),buildDom:d(p.bind(null,null)),isVisible:function(){return!!(y&&O&&O().isVisible())},show:function(t){return M.trigger(v,t)&&(P().show(),j(),O().show(),k.trigger(v,t)),this},close:d(h),forceClose:d(u),destroy:function(){O().destroy(),P().destroy(),P=O=j=void 0},options:function(t){Object.keys(t).map((function(e){l[e]=t[e]}))},afterCreate:d(S.watch),beforeShow:d(M.watch),afterShow:d(k.watch),beforeClose:d(E.watch),afterClose:d(T.watch)},b=v,x=c.bind(null,"focus",!0),b.beforeShow((function(){w=document.activeElement})),b.afterShow((function(){if(x()){var t=m(b.modalElem());t&&t.focus()}})),b.afterClose((function(){x()&&w&&w.focus(),w=null})),s.watch((function(t){if(x()&&b.isVisible()){var e=m(b.modalElem()),n=function(t){for(var e=t.getElementsByTagName("*"),n=e.length;n--;)if(g(e[n]))return e[n]}(b.modalElem());(t.shiftKey?e:n)===document.activeElement&&((t.shiftKey?n:e).focus(),t.preventDefault())}})),_=v,C=c.bind(null,"bodyOverflow",!0),I=new i(document.body),_.beforeShow((function(){A=I.elem.style.overflow,C()&&I.stylize({overflow:"hidden"})})),_.afterClose((function(){I.stylize({overflow:A})})),a.watch((function(){c("escCloses",!0)&&v.isVisible()&&v.close()})),v}})?i.apply(e,r):i)||(t.exports=o)}()},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}n.d(e,"a",(function(){return r}));var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.errorTableVisible=e.errorTableVisible,this.onToggleVisibility=e.onToggleVisibility,this.onFocusLine=e.onFocusLine||function(){},this.onChangeHeight=e.onChangeHeight,this.dom={};var n=document.createElement("div");n.className="jsoneditor-validation-errors-container",this.dom.validationErrorsContainer=n;var i=document.createElement("div");i.style.display="none",i.className="jsoneditor-additional-errors fadein",i.innerHTML="Scroll for more &#9663;",this.dom.additionalErrorsIndication=i,n.appendChild(i);var r=document.createElement("span");r.className="jsoneditor-validation-error-icon",r.style.display="none",this.dom.validationErrorIcon=r;var o=document.createElement("span");o.className="jsoneditor-validation-error-count",o.style.display="none",this.dom.validationErrorCount=o,this.dom.parseErrorIndication=document.createElement("span"),this.dom.parseErrorIndication.className="jsoneditor-parse-error-icon",this.dom.parseErrorIndication.style.display="none"}var e,n;return e=t,(n=[{key:"getErrorTable",value:function(){return this.dom.validationErrorsContainer}},{key:"getErrorCounter",value:function(){return this.dom.validationErrorCount}},{key:"getWarningIcon",value:function(){return this.dom.validationErrorIcon}},{key:"getErrorIcon",value:function(){return this.dom.parseErrorIndication}},{key:"toggleTableVisibility",value:function(){this.errorTableVisible=!this.errorTableVisible,this.onToggleVisibility(this.errorTableVisible)}},{key:"setErrors",value:function(t,e){var n=this;if(this.dom.validationErrors&&(this.dom.validationErrors.parentNode.removeChild(this.dom.validationErrors),this.dom.validationErrors=null,this.dom.additionalErrorsIndication.style.display="none"),this.errorTableVisible&&0<t.length){var i=document.createElement("div");i.className="jsoneditor-validation-errors",i.innerHTML='<table class="jsoneditor-text-errors"><tbody></tbody></table>';var r=i.getElementsByTagName("tbody")[0];t.forEach((function(t){var i,o;if(i="string"==typeof t?'<td colspan="2"><pre>'+t+"</pre></td>":"<td>"+(t.dataPath||"")+"</td><td><pre>"+t.message+"</pre></td>",isNaN(t.line)){if(t.dataPath){var a=e.find((function(e){return e.path===t.dataPath}));a&&(o=a.line+1)}}else o=t.line;var s=document.createElement("tr");s.className=isNaN(o)?"":"jump-to-line","error"===t.type?s.className+=" parse-error":s.className+=" validation-error",s.innerHTML='<td><button class="jsoneditor-schema-error"></button></td><td style="white-space:nowrap;">'+(isNaN(o)?"":"Ln "+o)+"</td>"+i,s.onclick=function(){n.onFocusLine(o)},r.appendChild(s)})),this.dom.validationErrors=i,this.dom.validationErrorsContainer.appendChild(i),this.dom.additionalErrorsIndication.title=t.length+" errors total",this.dom.validationErrorsContainer.clientHeight<this.dom.validationErrorsContainer.scrollHeight?(this.dom.additionalErrorsIndication.style.display="block",this.dom.validationErrorsContainer.onscroll=function(){n.dom.additionalErrorsIndication.style.display=0<n.dom.validationErrorsContainer.clientHeight&&0===n.dom.validationErrorsContainer.scrollTop?"block":"none"}):this.dom.validationErrorsContainer.onscroll=void 0;var o=this.dom.validationErrorsContainer.clientHeight+(this.dom.statusBar?this.dom.statusBar.clientHeight:0);this.onChangeHeight(o)}else this.onChangeHeight(0);var a=t.filter((function(t){return"error"!==t.type})).length;if(0<a?(this.dom.validationErrorCount.style.display="inline",this.dom.validationErrorCount.innerText=a,this.dom.validationErrorCount.onclick=this.toggleTableVisibility.bind(this),this.dom.validationErrorIcon.style.display="inline",this.dom.validationErrorIcon.title=a+" schema validation error(s) found",this.dom.validationErrorIcon.onclick=this.toggleTableVisibility.bind(this)):(this.dom.validationErrorCount.style.display="none",this.dom.validationErrorIcon.style.display="none"),t.some((function(t){return"error"===t.type}))){var s=t[0].line;this.dom.parseErrorIndication.style.display="block",this.dom.parseErrorIndication.title=isNaN(s)?"parse error - check that the json is valid":"parse error on line "+s,this.dom.parseErrorIndication.onclick=this.toggleTableVisibility.bind(this)}else this.dom.parseErrorIndication.style.display="none"}}])&&i(e.prototype,n),t}()},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function i(t,e,n){var o=this._refs[n];if("string"==typeof o){if(!this._refs[o])return i.call(this,t,e,o);o=this._refs[o]}if((o=o||this._schemas[n])instanceof f)return a(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var s,l,c,u=r.call(this,e,n);return u&&(s=u.schema,e=u.root,c=u.baseId),s instanceof f?l=s.validate||t.call(this,s.schema,e,void 0,c):void 0!==s&&(l=a(s,this._opts.inlineRefs)?s:t.call(this,s,e,void 0,c)),l}function r(t,e){var n=h.parse(e),i=l(n),a=s(this._getId(t.schema));if(0===Object.keys(t.schema).length||i!==a){var d=c(i),p=this._refs[d];if("string"==typeof p)return function(t,e,n){var i=r.call(this,t,e);if(i){var a=i.schema,s=i.baseId;t=i.root;var l=this._getId(a);return l&&(s=u(s,l)),o.call(this,n,s,a,t)}}.call(this,t,p,n);if(p instanceof f)p.validate||this._compile(p),t=p;else{if(!((p=this._schemas[d])instanceof f))return;if(p.validate||this._compile(p),d==c(e))return{schema:p,root:t,baseId:a};t=p}if(!t.schema)return;a=s(this._getId(t.schema))}return o.call(this,n,a,t.schema,t)}function o(t,e,n,i){if(t.fragment=t.fragment||"","/"==t.fragment.slice(0,1)){for(var o=t.fragment.split("/"),a=1;a<o.length;a++){var s=o[a];if(s){if(void 0===(n=n[s=p.unescapeFragment(s)]))break;var l;if(!m[s]&&((l=this._getId(n))&&(e=u(e,l)),n.$ref)){var c=u(e,n.$ref),h=r.call(this,i,c);h&&(n=h.schema,i=h.root,e=h.baseId)}}}return void 0!==n&&n!==i.schema?{schema:n,root:i,baseId:e}:void 0}}function a(t,e){return!1!==e&&(void 0===e||!0===e?function t(e){var n;if(Array.isArray(e)){for(var i=0;i<e.length;i++)if("object"==typeof(n=e[i])&&!t(n))return!1}else for(var r in e){if("$ref"==r)return!1;if("object"==typeof(n=e[r])&&!t(n))return!1}return!0}(t):e?function t(e){var n,i=0;if(Array.isArray(e)){for(var r=0;r<e.length;r++)if("object"==typeof(n=e[r])&&(i+=t(n)),i==1/0)return 1/0}else for(var o in e){if("$ref"==o)return 1/0;if(v[o])i++;else if("object"==typeof(n=e[o])&&(i+=t(n)+1),i==1/0)return 1/0}return i}(t)<=e:void 0)}function s(t,e){return!1!==e&&(t=c(t)),l(h.parse(t))}function l(t){return h.serialize(t).split("#")[0]+"#"}function c(t){return t?t.replace(y,""):""}function u(t,e){return e=c(e),h.resolve(t,e)}var h=n(46),d=n(18),p=n(7),f=n(25),g=n(48);(t.exports=i).normalizeId=c,i.fullPath=s,i.url=u,i.ids=function(t){var e=c(this._getId(t)),n={"":e},i={"":s(e,!1)},r={},o=this;return g(t,{allKeys:!0},(function(t,e,a,s,l,u,f){if(""!==e){var g=o._getId(t),m=n[s],v=i[s]+"/"+l;if(void 0!==f&&(v+="/"+("number"==typeof f?f:p.escapeFragment(f))),"string"==typeof g){g=m=c(m?h.resolve(m,g):g);var y=o._refs[g];if("string"==typeof y&&(y=o._refs[y]),y&&y.schema){if(!d(t,y.schema))throw new Error('id "'+g+'" resolves to more than one schema')}else if(g!=c(v))if("#"==g[0]){if(r[g]&&!d(t,r[g]))throw new Error('id "'+g+'" resolves to more than one schema');r[g]=t}else o._refs[g]=v}n[e]=m,i[e]=v}})),r},i.inlineRef=a,i.schema=r;var m=p.toHash(["properties","patternProperties","enum","dependencies","definitions"]),v=p.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]),y=/#\/?$/},function(t,e,n){"use strict";t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var i,r,o;if(Array.isArray(e)){if((i=e.length)!=n.length)return!1;for(r=i;0!=r--;)if(!t(e[r],n[r]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((i=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=i;0!=r--;){var a=o[r];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n}},function(t,e,n){"use strict";function i(t,e,n){this.message=n||i.message(t,e),this.missingRef=o.url(t,e),this.missingSchema=o.normalizeId(o.fullPath(this.missingRef))}function r(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var o=n(17);t.exports={Validation:r((function(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0})),MissingRef:r(i)},i.message=function(t,e){return"can't resolve reference "+e+" from id "+t}},function(t,e,n){var i;if(window.ace)i=window.ace;else try{i=n(37),n(38),n(39);var r=n(40);i.config.setModuleUrl("ace/mode/json_worker",r)}catch(t){}t.exports=i},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(){try{this.format()}catch(t){}}n.r(e),n.d(e,"textModeMixins",(function(){return b}));var o=n(20),a=n.n(o),s=n(1),l=n(8),c=n(15),u=n(0),h=n(5),d=n(6),p=n(9),f=n(2),g=n(35),m=n(4),v={},y="ace/theme/jsoneditor";v.create=function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};void 0===n.statusBar&&(n.statusBar=!0),n.mainMenuBar=!1!==n.mainMenuBar,n.enableSort=!1!==n.enableSort,n.enableTransform=!1!==n.enableTransform,n.createQuery=n.createQuery||m.a,n.executeQuery=n.executeQuery||m.b,"number"==typeof(this.options=n).indentation?this.indentation=Number(n.indentation):this.indentation=2,Object(s.b)(this.options.languages),Object(s.a)(this.options.language);var r=n.ace?n.ace:a.a;this.mode="code"===n.mode?"code":"text","code"===this.mode&&void 0===r&&(this.mode="text",console.warn("Failed to load Ace editor, falling back to plain text mode. Please use a JSONEditor bundle including Ace, or pass Ace as via the configuration option `ace`.")),this.theme=n.theme||y,this.theme===y&&r&&Object(g.tryRequireThemeJsonEditor)(),n.onTextSelectionChange&&this.onTextSelectionChange(n.onTextSelectionChange);var o=this;this.container=t,this.dom={},this.aceEditor=void 0,this.textarea=void 0,this.validateSchema=null,this.annotations=[],this.lastSchemaErrors=void 0,this._debouncedValidate=Object(u.debounce)(this.validate.bind(this),this.DEBOUNCE_INTERVAL),this.width=t.clientWidth,this.height=t.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.frame.onclick=function(t){t.preventDefault()},this.frame.onkeydown=function(t){o._onKeyDown(t)};var h={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null};if(this.frameFocusTracker=new p.a(h),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.options.mainMenuBar){Object(u.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu);var d=document.createElement("button");d.type="button",d.className="jsoneditor-format",d.title=Object(s.c)("formatTitle"),this.menu.appendChild(d),d.onclick=function(){try{o.format(),o._onChange()}catch(t){o._onError(t)}};var f=document.createElement("button");if(f.type="button",f.className="jsoneditor-compact",f.title=Object(s.c)("compactTitle"),this.menu.appendChild(f),f.onclick=function(){try{o.compact(),o._onChange()}catch(t){o._onError(t)}},this.options.enableSort){var v=document.createElement("button");v.type="button",v.className="jsoneditor-sort",v.title=Object(s.c)("sortTitleShort"),v.onclick=function(){o._showSortModal()},this.menu.appendChild(v)}if(this.options.enableTransform){var b=document.createElement("button");b.type="button",b.title=Object(s.c)("transformTitleShort"),b.className="jsoneditor-transform",b.onclick=function(){o._showTransformModal()},this.menu.appendChild(b)}var x=document.createElement("button");if(x.type="button",x.className="jsoneditor-repair",x.title=Object(s.c)("repairTitle"),this.menu.appendChild(x),x.onclick=function(){try{o.repair(),o._onChange()}catch(t){o._onError(t)}},"code"===this.mode){var w=document.createElement("button");w.type="button",w.className="jsoneditor-undo jsoneditor-separator",w.title=Object(s.c)("undo"),w.onclick=function(){e.aceEditor.getSession().getUndoManager().undo()},this.menu.appendChild(w),this.dom.undo=w;var _=document.createElement("button");_.type="button",_.className="jsoneditor-redo",_.title=Object(s.c)("redo"),_.onclick=function(){e.aceEditor.getSession().getUndoManager().redo()},this.menu.appendChild(_),this.dom.redo=_}if(this.options&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new l.a(this.menu,this.options.modes,this.options.mode,(function(t){o.setMode(t),o.modeSwitcher.focus()}))),"code"===this.mode){var C=document.createElement("a");C.appendChild(document.createTextNode("powered by ace")),C.href="http://ace.ajax.org",C.target="_blank",C.className="jsoneditor-poweredBy",C.onclick=function(){window.open(C.href,C.target)},this.menu.appendChild(C)}}var A=this.options.onEditable&&i("function"===this.options.onEditable)&&!this.options.onEditable({});if(this.frame.appendChild(this.content),this.container.appendChild(this.frame),"code"===this.mode){this.editorDom=document.createElement("div"),this.editorDom.style.height="100%",this.editorDom.style.width="100%",this.content.appendChild(this.editorDom);var I=r.edit(this.editorDom),S=I.getSession();I.$blockScrolling=1/0,I.setTheme(this.theme),I.setOptions({readOnly:A}),I.setShowPrintMargin(!1),I.setFontSize("13px"),S.setMode("ace/mode/json"),S.setTabSize(this.indentation),S.setUseSoftTabs(!0),S.setUseWrapMode(!0);var M=S.setAnnotations;S.setAnnotations=function(t){M.call(this,t&&t.length?t:o.annotations)},I.commands.bindKey("Ctrl-L",null),I.commands.bindKey("Command-L",null),(this.aceEditor=I).on("change",this._onChange.bind(this)),I.on("changeSelection",this._onSelect.bind(this))}else{var k=document.createElement("textarea");k.className="jsoneditor-text",k.spellcheck=!1,this.content.appendChild(k),this.textarea=k,this.textarea.readOnly=A,null===this.textarea.oninput?this.textarea.oninput=this._onChange.bind(this):this.textarea.onchange=this._onChange.bind(this),k.onselect=this._onSelect.bind(this),k.onmousedown=this._onMouseDown.bind(this),k.onblur=this._onBlur.bind(this)}if(this._updateHistoryButtons(),this.errorTable=new c.a({errorTableVisible:"text"===this.mode,onToggleVisibility:function(){o.validate()},onFocusLine:function(t){o.isFocused=!0,isNaN(t)||o.setTextSelection({row:t,column:1},{row:t,column:1e3})},onChangeHeight:function(t){var e=t+(o.dom.statusBar?o.dom.statusBar.clientHeight:0)+1;o.content.style.marginBottom=-e+"px",o.content.style.paddingBottom=e+"px"}}),this.frame.appendChild(this.errorTable.getErrorTable()),n.statusBar){Object(u.addClassName)(this.content,"has-status-bar"),this.curserInfoElements={};var E=document.createElement("div");(this.dom.statusBar=E).className="jsoneditor-statusbar",this.frame.appendChild(E);var T=document.createElement("span");T.className="jsoneditor-curserinfo-label",T.innerText="Ln:";var O=document.createElement("span");O.className="jsoneditor-curserinfo-val",O.innerText="1",E.appendChild(T),E.appendChild(O);var P=document.createElement("span");P.className="jsoneditor-curserinfo-label",P.innerText="Col:";var j=document.createElement("span");j.className="jsoneditor-curserinfo-val",j.innerText="1",E.appendChild(P),E.appendChild(j),this.curserInfoElements.colVal=j,this.curserInfoElements.lnVal=O;var L=document.createElement("span");L.className="jsoneditor-curserinfo-label",L.innerText="characters selected",L.style.display="none";var D=document.createElement("span");D.className="jsoneditor-curserinfo-count",D.innerText="0",D.style.display="none",this.curserInfoElements.countLabel=L,this.curserInfoElements.countVal=D,E.appendChild(D),E.appendChild(L),E.appendChild(this.errorTable.getErrorCounter()),E.appendChild(this.errorTable.getWarningIcon()),E.appendChild(this.errorTable.getErrorIcon())}this.setSchema(this.options.schema,this.options.schemaRefs)},v._onChange=function(){var t=this;if(!this.onChangeDisabled){if(setTimeout((function(){return t._updateHistoryButtons()})),this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch(t){console.error("Error in onChange callback: ",t)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(t){console.error("Error in onChangeText callback: ",t)}}},v._updateHistoryButtons=function(){if(this.aceEditor&&this.dom.undo&&this.dom.redo){var t=this.aceEditor.getSession().getUndoManager();t&&t.hasUndo&&t.hasRedo&&(this.dom.undo.disabled=!t.hasUndo(),this.dom.redo.disabled=!t.hasRedo())}},v._showSortModal=function(){var t=this,e=this.options.modalAnchor||f.a,n=this.get();Object(h.showSortModal)(e,n,(function(e){if(Array.isArray(n)){var i=Object(u.sort)(n,e.path,e.direction);t.sortedBy=e,t.update(i)}if(Object(u.isObject)(n)){var r=Object(u.sortObjectKeys)(n,e.direction);t.sortedBy=e,t.update(r)}}),t.sortedBy)},v._showTransformModal=function(){var t=this,e=this.options,n=e.modalAnchor,i=e.createQuery,r=e.executeQuery,o=e.queryDescription,a=this.get();Object(d.showTransformModal)({anchor:n||f.a,json:a,queryDescription:o,createQuery:i,executeQuery:r,onTransform:function(e){var n=r(a,e);t.update(n)}})},v._onSelect=function(){this._updateCursorInfo(),this._emitSelectionChange()},v._onKeyDown=function(t){var e=!1;220===(t.which||t.keyCode)&&t.ctrlKey&&(t.shiftKey?this.compact():this.format(),this._onChange(),e=!0),e&&(t.preventDefault(),t.stopPropagation()),this._updateCursorInfo(),this._emitSelectionChange()},v._onMouseDown=function(){this._updateCursorInfo(),this._emitSelectionChange()},v._onBlur=function(){var t=this;setTimeout((function(){t.isFocused||(t._updateCursorInfo(),t._emitSelectionChange()),t.isFocused=!1}))},v._updateCursorInfo=function(){function t(){r.curserInfoElements.countVal.innerText!==i&&(r.curserInfoElements.countVal.innerText=i,r.curserInfoElements.countVal.style.display=i?"inline":"none",r.curserInfoElements.countLabel.style.display=i?"inline":"none"),r.curserInfoElements.lnVal.innerText=e,r.curserInfoElements.colVal.innerText=n}var e,n,i,r=this;if(this.textarea)setTimeout((function(){var o=Object(u.getInputSelection)(r.textarea);o.startIndex!==o.endIndex&&(i=o.endIndex-o.startIndex),n=i&&r.cursorInfo&&r.cursorInfo.line===o.end.row&&r.cursorInfo.column===o.end.column?(e=o.start.row,o.start.column):(e=o.end.row,o.end.column),r.cursorInfo={line:e,column:n,count:i},r.options.statusBar&&t()}),0);else if(this.aceEditor&&this.curserInfoElements){var o=this.aceEditor.getCursorPosition(),a=this.aceEditor.getSelectedText();e=o.row+1,n=o.column+1,i=a.length,r.cursorInfo={line:e,column:n,count:i},this.options.statusBar&&t()}},v._emitSelectionChange=function(){if(this._selectionChangedHandler){var t=this.getTextSelection();this._selectionChangedHandler(t.start,t.end,t.text)}},v._refreshAnnotations=function(){var t=this.aceEditor&&this.aceEditor.getSession();if(t){var e=t.getAnnotations().filter((function(t){return"error"===t.type}));t.setAnnotations(e)}},v.destroy=function(){this.aceEditor&&(this.aceEditor.destroy(),this.aceEditor=null),this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.textarea=null,this._debouncedValidate=null,this.frameFocusTracker.destroy()},v.compact=function(){var t=this.get(),e=JSON.stringify(t);this.updateText(e)},v.format=function(){var t=this.get(),e=JSON.stringify(t,null,this.indentation);this.updateText(e)},v.repair=function(){var t=this.getText(),e=Object(u.repair)(t);this.updateText(e)},v.focus=function(){this.textarea&&this.textarea.focus(),this.aceEditor&&this.aceEditor.focus()},v.resize=function(){this.aceEditor&&this.aceEditor.resize(!1)},v.set=function(t){this.setText(JSON.stringify(t,null,this.indentation))},v.update=function(t){this.updateText(JSON.stringify(t,null,this.indentation))},v.get=function(){var t=this.getText();return Object(u.parse)(t)},v.getText=function(){return this.textarea?this.textarea.value:this.aceEditor?this.aceEditor.getValue():""},v._setText=function(t,e){var n=this,i=!0===this.options.escapeUnicode?Object(u.escapeUnicodeChars)(t):t;if(this.textarea&&(this.textarea.value=i),this.aceEditor){if(this.onChangeDisabled=!0,this.aceEditor.setValue(i,-1),this.onChangeDisabled=!1,e){var r=this;setTimeout((function(){r.aceEditor&&r.aceEditor.session.getUndoManager().reset()}))}setTimeout((function(){return n._updateHistoryButtons()}))}this._debouncedValidate()},v.setText=function(t){this._setText(t,!0)},v.updateText=function(t){this.getText()!==t&&this._setText(t,!1)},v.validate=function(){var t,e=this,n=[],i=[];try{t=this.get(),this.validateSchema&&(this.validateSchema(t)||(n=this.validateSchema.errors.map((function(t){return t.type="validation",Object(u.improveSchemaError)(t)})))),this.validationSequence=(this.validationSequence||0)+1;var r=this,o=this.validationSequence;(function(t,e){if(!e)return Promise.resolve([]);try{var n=e(t);return(Object(u.isPromise)(n)?n:Promise.resolve(n)).then((function(t){return Array.isArray(t)?t.filter((function(t){var e=Object(u.isValidValidationError)(t);return e||console.warn('Ignoring a custom validation error with invalid structure. Expected structure: {path: [...], message: "..."}. Actual error:',t),e})).map((function(t){return{dataPath:Object(u.stringifyPath)(t.path),message:t.message,type:"customValidation"}})):[]}))}catch(t){return Promise.reject(t)}})(t,this.options.onValidate).then((function(t){if(o===r.validationSequence){var a=n.concat(i).concat(t);r._renderErrors(a),"function"==typeof e.options.onValidationError&&(Object(u.isValidationErrorChanged)(a,e.lastSchemaErrors)&&e.options.onValidationError.call(e,a),e.lastSchemaErrors=a)}})).catch((function(t){console.error("Custom validation function did throw an error",t)}))}catch(t){if(this.getText()){var a,s=/\w*line\s*(\d+)\w*/g.exec(t.message);s&&(a=+s[1]),i=[{type:"error",message:t.message.replace(/\n/g,"<br>"),line:a}]}this._renderErrors(i),"function"==typeof this.options.onValidationError&&(Object(u.isValidationErrorChanged)(i,this.lastSchemaErrors)&&this.options.onValidationError.call(this,i),this.lastSchemaErrors=i)}},v._renderErrors=function(t){var e=this.getText(),n=[];t.reduce((function(t,e){return"string"==typeof e.dataPath&&-1===t.indexOf(e.dataPath)&&t.push(e.dataPath),t}),n);var i=Object(u.getPositionForPath)(e,n);this.aceEditor&&(this.annotations=i.map((function(e){var n=t.filter((function(t){return t.dataPath===e.path})),i=n.map((function(t){return t.message})).join("\n");return i?{row:e.line,column:e.column,text:"Schema validation error"+(1!==n.length?"s":"")+": \n"+i,type:"warning",source:"jsoneditor"}:{}})),this._refreshAnnotations()),this.errorTable.setErrors(t,i),this.aceEditor&&this.aceEditor.resize(!1)},v.getTextSelection=function(){var t={};if(this.textarea){var e=Object(u.getInputSelection)(this.textarea);return this.cursorInfo&&this.cursorInfo.line===e.end.row&&this.cursorInfo.column===e.end.column?(t.start=e.end,t.end=e.start):t=e,{start:t.start,end:t.end,text:this.textarea.value.substring(e.startIndex,e.endIndex)}}if(this.aceEditor){var n=this.aceEditor.getSelection(),i=this.aceEditor.getSelectedText(),r=n.getRange(),o=n.getSelectionLead();return o.row===r.end.row&&o.column===r.end.column?t=r:(t.start=r.end,t.end=r.start),{start:{row:t.start.row+1,column:t.start.column+1},end:{row:t.end.row+1,column:t.end.column+1},text:i}}},v.onTextSelectionChange=function(t){"function"==typeof t&&(this._selectionChangedHandler=Object(u.debounce)(t,this.DEBOUNCE_INTERVAL))},v.setTextSelection=function(t,e){if(t&&e)if(this.textarea){var n=Object(u.getIndexForPosition)(this.textarea,t.row,t.column),i=Object(u.getIndexForPosition)(this.textarea,e.row,e.column);if(-1<n&&-1<i){if(this.textarea.setSelectionRange)this.textarea.focus(),this.textarea.setSelectionRange(n,i);else if(this.textarea.createTextRange){var r=this.textarea.createTextRange();r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",n),r.select()}var o=(this.textarea.value.match(/\n/g)||[]).length+1,a=this.textarea.scrollHeight/o,s=t.row*a;this.textarea.scrollTop=s>this.textarea.clientHeight?s-this.textarea.clientHeight/2:0}}else if(this.aceEditor){var l={start:{row:t.row-1,column:t.column-1},end:{row:e.row-1,column:e.column-1}};this.aceEditor.selection.setRange(l),this.aceEditor.scrollToLine(t.row-1,!0)}};var b=[{mode:"text",mixin:v,data:"text",load:r},{mode:"code",mixin:v,data:"text",load:r}]},function(t,e,n){var i,r=((i={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(t,e,n,i,r,o){var a=o.length-1;switch(r){case 1:this.$=t.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(t);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=o[a-1];case 13:this.$={};break;case 14:this.$=o[a-1];break;case 15:this.$=[o[a-2],o[a]];break;case 16:this.$={},this.$[o[a][0]]=o[a][1];break;case 17:this.$=o[a-2],o[a-2][o[a][0]]=o[a][1];break;case 18:this.$=[];break;case 19:this.$=o[a-1];break;case 20:this.$=[o[a]];break;case 21:this.$=o[a-2],o[a-2].push(o[a])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(t){throw new Error(t)},parse:function(t){function e(){var t;return"number"!=typeof(t=n.lexer.lex()||1)&&(t=n.symbols_[t]||t),t}var n=this,i=[0],r=[null],o=[],a=this.table,s="",l=0,c=0,u=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var h=this.lexer.yylloc;o.push(h),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var d,p,f,g,m,v,y,b,x,w,_={};;){if(f=i[i.length-1],void 0===(g=this.defaultActions[f]?this.defaultActions[f]:(null==d&&(d=e()),a[f]&&a[f][d]))||!g.length||!g[0]){if(!u){for(v in x=[],a[f])this.terminals_[v]&&2<v&&x.push("'"+this.terminals_[v]+"'");var C="";C=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+this.terminals_[d]+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==d?"end of input":"'"+(this.terminals_[d]||d)+"'"),this.parseError(C,{text:this.lexer.match,token:this.terminals_[d]||d,line:this.lexer.yylineno,loc:h,expected:x})}if(3==u){if(1==d)throw new Error(C||"Parsing halted.");c=this.lexer.yyleng,s=this.lexer.yytext,l=this.lexer.yylineno,h=this.lexer.yylloc,d=e()}for(;!(2..toString()in a[f]);){if(0==f)throw new Error(C||"Parsing halted.");w=1,i.length=i.length-2*w,r.length=r.length-w,o.length=o.length-w,f=i[i.length-1]}p=d,d=2,g=a[f=i[i.length-1]]&&a[f][2],u=3}if(g[0]instanceof Array&&1<g.length)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+d);switch(g[0]){case 1:i.push(d),r.push(this.lexer.yytext),o.push(this.lexer.yylloc),i.push(g[1]),d=null,p?(d=p,p=null):(c=this.lexer.yyleng,s=this.lexer.yytext,l=this.lexer.yylineno,h=this.lexer.yylloc,0<u&&u--);break;case 2:if(y=this.productions_[g[1]][1],_.$=r[r.length-y],_._$={first_line:o[o.length-(y||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(y||1)].first_column,last_column:o[o.length-1].last_column},void 0!==(m=this.performAction.call(_,s,c,l,this.yy,g[1],r,o)))return m;y&&(i=i.slice(0,-1*y*2),r=r.slice(0,-1*y),o=o.slice(0,-1*y)),i.push(this.productions_[g[1]][0]),r.push(_.$),o.push(_._$),b=a[i[i.length-2]][i[i.length-1]],i.push(b);break;case 3:return!0}}return!0}}).lexer={EOF:1,parseError:function(t,e){if(!this.yy.parseError)throw new Error(t);this.yy.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.match+=t,this.matched+=t,t.match(/\n/)&&this.yylineno++,this._input=this._input.slice(1),t},unput:function(t){return this._input=t+this._input,this},more:function(){return this._more=!0,this},less:function(t){this._input=this.match.slice(t)+this._input},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,n,i,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),a=0;a<o.length&&(!(n=this._input.match(this.rules[o[a]]))||e&&!(n[0].length>e[0].length)||(e=n,i=a,this.options.flex));a++);return e?((r=e[0].match(/\n.*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-1:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,o[i],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,n){switch(n){case 0:break;case 1:return 6;case 2:return e.yytext=e.yytext.substr(1,e.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}},i);e.parser=r,e.parse=r.parse.bind(r)},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){function n(t){"remove"in t||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){void 0!==this.parentNode&&this.parentNode.removeChild(this)}})}"undefined"!=typeof Element&&(void 0!==window.Element&&n(window.Element.prototype),void 0!==window.CharacterData&&n(window.CharacterData.prototype),void 0!==window.DocumentType&&n(window.DocumentType.prototype)),Array.prototype.findIndex||(Array.prototype.findIndex=function(t){for(var e=0;e<this.length;e++){var n=this[e];if(t.call(this,n,e,this))return e}return-1}),Array.prototype.find||(Array.prototype.find=function(t){return this[this.findIndex(t)]}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})},function(t,e,n){"use strict";var i=n(7);t.exports=function(t){i.copy(t,this)}},function(t,e,n){"use strict";t.exports=function(t,e){"function"==typeof(e=e||{})&&(e={cmp:e});var n,i="boolean"==typeof e.cycles&&e.cycles,r=e.cmp&&(n=e.cmp,function(t){return function(e,i){var r={key:e,value:t[e]},o={key:i,value:t[i]};return n(r,o)}}),o=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var n,a;if(Array.isArray(e)){for(a="[",n=0;n<e.length;n++)n&&(a+=","),a+=t(e[n])||"null";return a+"]"}if(null===e)return"null";if(-1!==o.indexOf(e)){if(i)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(e)-1,l=Object.keys(e).sort(r&&r(e));for(a="",n=0;n<l.length;n++){var c=l[n],u=t(e[c]);u&&(a&&(a+=","),a+=JSON.stringify(c)+":"+u)}return o.splice(s,1),"{"+a+"}"}}(t)}},function(t,e,n){"use strict";t.exports=function(t,e){function n(t){for(var e=t.rules,n=0;n<e.length;n++)if(i(e[n]))return 1}function i(e){return void 0!==t.schema[e.keyword]||e.implements&&function(e){for(var n=e.implements,i=0;i<n.length;i++)if(void 0!==t.schema[n[i]])return!0}(e)}var r="",o=!0===t.schema.$async,a=t.util.schemaHasRulesExcept(t.schema,t.RULES.all,"$ref"),s=t.self._getId(t.schema);if(t.opts.strictKeywords){var l=t.util.schemaUnknownRules(t.schema,t.RULES.keywords);if(l){var c="unknown keyword: "+l;if("log"!==t.opts.strictKeywords)throw new Error(c);t.logger.warn(c)}}if(t.isTop&&(r+=" var validate = ",o&&(t.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",s&&(t.opts.sourceCode||t.opts.processCode)&&(r+=" /*# sourceURL="+s+" */ ")),"boolean"==typeof t.schema||!a&&!t.schema.$ref){e="false schema";var u=t.level,h=t.dataLevel,d=t.schema[e],p=t.schemaPath+t.util.getProperty(e),f=t.errSchemaPath+"/"+e,g=!t.opts.allErrors,m="data"+(h||""),v="valid"+u;if(!1===t.schema){t.isTop?g=!0:r+=" var "+v+" = false; ",(Y=Y||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: {} ",!1!==t.opts.messages&&(r+=" , message: 'boolean schema is false' "),t.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";var y=r;r=Y.pop(),!t.compositeRule&&g?t.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else t.isTop?r+=o?" return data; ":" validate.errors = null; return true; ":r+=" var "+v+" = true; ";return t.isTop&&(r+=" }; return validate; "),r}if(t.isTop){var b=t.isTop;if(u=t.level=0,h=t.dataLevel=0,m="data",t.rootId=t.resolve.fullPath(t.self._getId(t.root.schema)),t.baseId=t.baseId||t.rootId,delete t.isTop,t.dataPathArr=[void 0],void 0!==t.schema.default&&t.opts.useDefaults&&t.opts.strictDefaults){var x="default is ignored in the schema root";if("log"!==t.opts.strictDefaults)throw new Error(x);t.logger.warn(x)}r+=" var vErrors = null; ",r+=" var errors = 0;     ",r+=" if (rootData === undefined) rootData = data; "}else{if(u=t.level,m="data"+((h=t.dataLevel)||""),s&&(t.baseId=t.resolve.url(t.baseId,s)),o&&!t.async)throw new Error("async schema in sync schema");r+=" var errs_"+u+" = errors;"}v="valid"+u,g=!t.opts.allErrors;var w="",_="",C=t.schema.type,A=Array.isArray(C);if(C&&t.opts.nullable&&!0===t.schema.nullable&&(A?-1==C.indexOf("null")&&(C=C.concat("null")):"null"!=C&&(C=[C,"null"],A=!0)),A&&1==C.length&&(C=C[0],A=!1),t.schema.$ref&&a){if("fail"==t.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+t.errSchemaPath+'" (see option extendRefs)');!0!==t.opts.extendRefs&&(a=!1,t.logger.warn('$ref: keywords ignored in schema at path "'+t.errSchemaPath+'"'))}if(t.schema.$comment&&t.opts.$comment&&(r+=" "+t.RULES.all.$comment.code(t,"$comment")),C){if(t.opts.coerceTypes)var I=t.util.coerceToTypes(t.opts.coerceTypes,C);var S=t.RULES.types[C];if(I||A||!0===S||S&&!n(S)){p=t.schemaPath+".type",f=t.errSchemaPath+"/type",p=t.schemaPath+".type",f=t.errSchemaPath+"/type";var M=A?"checkDataTypes":"checkDataType";if(r+=" if ("+t.util[M](C,m,!0)+") { ",I){var k="dataType"+u,E="coerced"+u;r+=" var "+k+" = typeof "+m+"; ","array"==t.opts.coerceTypes&&(r+=" if ("+k+" == 'object' && Array.isArray("+m+")) "+k+" = 'array'; "),r+=" var "+E+" = undefined; ";var T="",O=I;if(O)for(var P,j=-1,L=O.length-1;j<L;)P=O[j+=1],j&&(r+=" if ("+E+" === undefined) { ",T+="}"),"array"==t.opts.coerceTypes&&"array"!=P&&(r+=" if ("+k+" == 'array' && "+m+".length == 1) { "+E+" = "+m+" = "+m+"[0]; "+k+" = typeof "+m+";  } "),"string"==P?r+=" if ("+k+" == 'number' || "+k+" == 'boolean') "+E+" = '' + "+m+"; else if ("+m+" === null) "+E+" = ''; ":"number"==P||"integer"==P?(r+=" if ("+k+" == 'boolean' || "+m+" === null || ("+k+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==P&&(r+=" && !("+m+" % 1)"),r+=")) "+E+" = +"+m+"; "):"boolean"==P?r+=" if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+E+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+E+" = true; ":"null"==P?r+=" if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+E+" = null; ":"array"==t.opts.coerceTypes&&"array"==P&&(r+=" if ("+k+" == 'string' || "+k+" == 'number' || "+k+" == 'boolean' || "+m+" == null) "+E+" = ["+m+"]; ");(Y=Y||[]).push(r+=" "+T+" if ("+E+" === undefined) {   "),r="",!1!==t.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: { type: '",r+=A?""+C.join(","):""+C,r+="' } ",!1!==t.opts.messages&&(r+=" , message: 'should be ",r+=A?""+C.join(","):""+C,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ",y=r,r=Y.pop(),!t.compositeRule&&g?t.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else {  ";var D=h?"data"+(h-1||""):"parentData";r+=" "+m+" = "+E+"; ",h||(r+="if ("+D+" !== undefined)"),r+=" "+D+"["+(h?t.dataPathArr[h]:"parentDataProperty")+"] = "+E+"; } "}else(Y=Y||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: { type: '",r+=A?""+C.join(","):""+C,r+="' } ",!1!==t.opts.messages&&(r+=" , message: 'should be ",r+=A?""+C.join(","):""+C,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ",y=r,r=Y.pop(),!t.compositeRule&&g?t.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";r+=" } "}}if(t.schema.$ref&&!a)r+=" "+t.RULES.all.$ref.code(t,"$ref")+" ",g&&(r+=" } if (errors === ",r+=b?"0":"errs_"+u,r+=") { ",_+="}");else{var R=t.RULES;if(R)for(var B=-1,N=R.length-1;B<N;)if(n(S=R[B+=1])){if(S.type&&(r+=" if ("+t.util.checkDataType(S.type,m)+") { "),t.opts.useDefaults)if("object"==S.type&&t.schema.properties){d=t.schema.properties;var F=Object.keys(d);if(F)for(var z,V=-1,G=F.length-1;V<G;)if(void 0!==(U=d[z=F[V+=1]]).default){var H=m+t.util.getProperty(z);if(t.compositeRule){if(t.opts.strictDefaults){if(x="default is ignored for: "+H,"log"!==t.opts.strictDefaults)throw new Error(x);t.logger.warn(x)}}else r+=" if ("+H+" === undefined ","empty"==t.opts.useDefaults&&(r+=" || "+H+" === null || "+H+" === '' "),r+=" ) "+H+" = ","shared"==t.opts.useDefaults?r+=" "+t.useDefault(U.default)+" ":r+=" "+JSON.stringify(U.default)+" ",r+="; "}}else if("array"==S.type&&Array.isArray(t.schema.items)){var W=t.schema.items;if(W){j=-1;for(var U,Z=W.length-1;j<Z;)if(void 0!==(U=W[j+=1]).default)if(H=m+"["+j+"]",t.compositeRule){if(t.opts.strictDefaults){if(x="default is ignored for: "+H,"log"!==t.opts.strictDefaults)throw new Error(x);t.logger.warn(x)}}else r+=" if ("+H+" === undefined ","empty"==t.opts.useDefaults&&(r+=" || "+H+" === null || "+H+" === '' "),r+=" ) "+H+" = ","shared"==t.opts.useDefaults?r+=" "+t.useDefault(U.default)+" ":r+=" "+JSON.stringify(U.default)+" ",r+="; "}}var Y,X=S.rules;if(X)for(var q,K=-1,Q=X.length-1;K<Q;)if(i(q=X[K+=1])){var J=q.code(t,q.keyword,S.type);J&&(r+=" "+J+" ",g&&(w+="}"))}if(g&&(r+=" "+w+" ",w=""),S.type&&(r+=" } ",C&&C===S.type&&!I))r+=" else { ",p=t.schemaPath+".type",f=t.errSchemaPath+"/type",(Y=Y||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(f)+" , params: { type: '",r+=A?""+C.join(","):""+C,r+="' } ",!1!==t.opts.messages&&(r+=" , message: 'should be ",r+=A?""+C.join(","):""+C,r+="' "),t.opts.verbose&&(r+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ",y=r,r=Y.pop(),!t.compositeRule&&g?t.async?r+=" throw new ValidationError(["+y+"]); ":r+=" validate.errors = ["+y+"]; return false; ":r+=" var err = "+y+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } ";g&&(r+=" if (errors === ",r+=b?"0":"errs_"+u,r+=") { ",_+="}")}}return g&&(r+=" "+_+" "),b?(o?(r+=" if (errors === 0) return data;           ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0;       "),r+=" }; return validate;"):r+=" var "+v+" = errors === errs_"+u+";",r=t.util.cleanUpCode(r),b&&(r=t.util.finalCleanUpCode(r,o)),r}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i=" ",r=t.level,o=t.dataLevel,a=t.schema[e],s=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,u="data"+(o||""),h=t.opts.$data&&a&&a.$data;n=h?(i+=" var schema"+r+" = "+t.util.getData(a.$data,o,t.dataPathArr)+"; ","schema"+r):a;var d="maximum"==e,p=d?"exclusiveMaximum":"exclusiveMinimum",f=t.schema[p],g=t.opts.$data&&f&&f.$data,m=d?"<":">",v=d?">":"<",y=void 0;if(g){var b,x=t.util.getData(f.$data,o,t.dataPathArr),w="exclusive"+r,_="exclType"+r,C="exclIsNumber"+r,A="' + "+(S="op"+r)+" + '";i+=" var schemaExcl"+r+" = "+x+"; ",y=p,(b=b||[]).push(i+=" var "+w+"; var "+_+" = typeof "+(x="schemaExcl"+r)+"; if ("+_+" != 'boolean' && "+_+" != 'undefined' && "+_+" != 'number') { "),i="",!1!==t.createErrors?(i+=" { keyword: '"+(y||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: {} ",!1!==t.opts.messages&&(i+=" , message: '"+p+" should be boolean' "),t.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var I=i;i=b.pop(),!t.compositeRule&&c?t.async?i+=" throw new ValidationError(["+I+"]); ":i+=" validate.errors = ["+I+"]; return false; ":i+=" var err = "+I+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+_+" == 'number' ? ( ("+w+" = "+n+" === undefined || "+x+" "+m+"= "+n+") ? "+u+" "+v+"= "+x+" : "+u+" "+v+" "+n+" ) : ( ("+w+" = "+x+" === true) ? "+u+" "+v+"= "+n+" : "+u+" "+v+" "+n+" ) || "+u+" !== "+u+") { var op"+r+" = "+w+" ? '"+m+"' : '"+m+"='; ",void 0===a&&(y=p,l=t.errSchemaPath+"/"+p,n=x,h=g)}else if(A=m,(C="number"==typeof f)&&h){var S="'"+A+"'";i+=" if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" ( "+n+" === undefined || "+f+" "+m+"= "+n+" ? "+u+" "+v+"= "+f+" : "+u+" "+v+" "+n+" ) || "+u+" !== "+u+") { "}else C&&void 0===a?(w=!0,y=p,l=t.errSchemaPath+"/"+p,n=f,v+="="):(C&&(n=Math[d?"min":"max"](f,a)),f===(!C||n)?(w=!0,y=p,l=t.errSchemaPath+"/"+p,v+="="):(w=!1,A+="=")),S="'"+A+"'",i+=" if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+u+" "+v+" "+n+" || "+u+" !== "+u+") { ";return y=y||e,(b=b||[]).push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(y||"_limit")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { comparison: "+S+", limit: "+n+", exclusive: "+w+" } ",!1!==t.opts.messages&&(i+=" , message: 'should be "+A+" ",i+=h?"' + "+n:n+"'"),t.opts.verbose&&(i+=" , schema:  ",i+=h?"validate.schema"+s:""+a,i+="         , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ",I=i,i=b.pop(),!t.compositeRule&&c?t.async?i+=" throw new ValidationError(["+I+"]); ":i+=" validate.errors = ["+I+"]; return false; ":i+=" var err = "+I+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i=" ",r=t.level,o=t.dataLevel,a=t.schema[e],s=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,u="data"+(o||""),h=t.opts.$data&&a&&a.$data;n=h?(i+=" var schema"+r+" = "+t.util.getData(a.$data,o,t.dataPathArr)+"; ","schema"+r):a,i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" "+u+".length "+("maxItems"==e?">":"<")+" "+n+") { ";var d=e,p=p||[];p.push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==e?"more":"fewer",i+=" than ",i+=h?"' + "+n+" + '":""+a,i+=" items' "),t.opts.verbose&&(i+=" , schema:  ",i+=h?"validate.schema"+s:""+a,i+="         , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var f=i;return i=p.pop(),!t.compositeRule&&c?t.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i=" ",r=t.level,o=t.dataLevel,a=t.schema[e],s=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,u="data"+(o||""),h=t.opts.$data&&a&&a.$data;n=h?(i+=" var schema"+r+" = "+t.util.getData(a.$data,o,t.dataPathArr)+"; ","schema"+r):a;var d="maxLength"==e?">":"<";i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),!1===t.opts.unicode?i+=" "+u+".length ":i+=" ucs2length("+u+") ",i+=" "+d+" "+n+") { ";var p=e,f=f||[];f.push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==e?"longer":"shorter",i+=" than ",i+=h?"' + "+n+" + '":""+a,i+=" characters' "),t.opts.verbose&&(i+=" , schema:  ",i+=h?"validate.schema"+s:""+a,i+="         , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var g=i;return i=f.pop(),!t.compositeRule&&c?t.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i=" ",r=t.level,o=t.dataLevel,a=t.schema[e],s=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,u="data"+(o||""),h=t.opts.$data&&a&&a.$data;n=h?(i+=" var schema"+r+" = "+t.util.getData(a.$data,o,t.dataPathArr)+"; ","schema"+r):a,i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'number') || "),i+=" Object.keys("+u+").length "+("maxProperties"==e?">":"<")+" "+n+") { ";var d=e,p=p||[];p.push(i),i="",!1!==t.createErrors?(i+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { limit: "+n+" } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==e?"more":"fewer",i+=" than ",i+=h?"' + "+n+" + '":""+a,i+=" properties' "),t.opts.verbose&&(i+=" , schema:  ",i+=h?"validate.schema"+s:""+a,i+="         , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var f=i;return i=p.pop(),!t.compositeRule&&c?t.async?i+=" throw new ValidationError(["+f+"]); ":i+=" validate.errors = ["+f+"]; return false; ":i+=" var err = "+f+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(t){t.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},function(t,e,n){"use strict";function i(t){return 0<=l.indexOf(typeof t)}function r(t){return'"'+(t=t.replace(c,"\\$&").replace(h,"\\f").replace(u,"\\b").replace(d,"\\n").replace(p,"\\r").replace(f,"\\t"))+'"'}function o(t){return t.replace(g,"~0").replace(m,"~1")}var a={b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",'"':'"',"/":"/","\\":"\\"},s="a".charCodeAt();e.parse=function(t,e,n){function i(e,n){var a;r(),f(e,"value");var s=u();switch(s){case"t":c("rue"),a=!0;break;case"f":c("alse"),a=!1;break;case"n":c("ull"),a=null;break;case'"':a=l();break;case"[":a=function(t){r();var e=[],n=0;if("]"==u())return e;for(h();;){var o=t+"/"+n;e.push(i(o)),r();var a=u();if("]"==a)break;","!=a&&y(),r(),n++}return e}(e);break;case"{":a=function(t){r();var e={};if("}"==u())return e;for(h();;){var n=m();'"'!=u()&&y();var a=l(),s=t+"/"+o(a);g(s,"key",n),f(s,"keyEnd"),r(),":"!=u()&&y(),r(),e[a]=i(s),r();var c=u();if("}"==c)break;","!=c&&y(),r()}return e}(e);break;default:h(),0<="-0123456789".indexOf(s)?a=function(){var e="",n=!0;"-"==t[C]&&(e+=u()),e+=("0"==t[C]?u:p)(),"."==t[C]&&(e+=u()+p(),n=!1),"e"!=t[C]&&"E"!=t[C]||(e+=u(),"+"!=t[C]&&"-"!=t[C]||(e+=u()),e+=p(),n=!1);var i=+e;return A&&n&&(i>Number.MAX_SAFE_INTEGER||i<Number.MIN_SAFE_INTEGER)?BigInt(e):i}():v()}return f(e,"valueEnd"),r(),n&&C<t.length&&v(),a}function r(){t:for(;C<t.length;){switch(t[C]){case" ":_++;break;case"\t":_+=4;break;case"\r":_=0;break;case"\n":_=0,w++;break;default:break t}C++}}function l(){for(var t,e="";'"'!=(t=u());)"\\"==t?(t=u())in a?e+=a[t]:"u"==t?e+=d():y():e+=t;return e}function c(t){for(var e=0;e<t.length;e++)u()!==t[e]&&y()}function u(){b();var e=t[C];return C++,_++,e}function h(){C--,_--}function d(){for(var t=4,e=0;t--;){e<<=4;var n=u().toLowerCase();"a"<=n&&n<="f"?e+=n.charCodeAt()-s+10:"0"<=n&&n<="9"?e+=+n:y()}return String.fromCharCode(e)}function p(){for(var e="";"0"<=t[C]&&t[C]<="9";)e+=u();if(e.length)return e;b(),v()}function f(t,e){g(t,e,m())}function g(t,e,n){x[t]=x[t]||{},x[t][e]=n}function m(){return{line:w,column:_,pos:C}}function v(){throw new SyntaxError("Unexpected token "+t[C]+" in JSON at position "+C)}function y(){h(),v()}function b(){if(C>=t.length)throw new SyntaxError("Unexpected end of JSON input")}var x={},w=0,_=0,C=0,A=n&&n.bigint&&"undefined"!=typeof BigInt;return{data:i("",!0),pointers:x}},e.stringify=function(t,e,n){function a(t){b+=t.length,x+=t.length,m+=t}function s(t){if(p){for(m+="\n"+c(t,p),y++,b=0;t--;)d?(y+=d,b=h):b+=h,x+=u;x+=1}}function l(t,e){v[t]=v[t]||{},v[t][e]={line:y,column:b,pos:x}}function c(t,e){return Array(t+1).join(e)}if(i(t)){var u,h,d=0,p="object"==typeof n?n.space:n;switch(typeof p){case"number":var f=10<p?10:p<0?0:Math.floor(p);p=f&&c(f," "),h=u=f;break;case"string":p=p.slice(0,10);for(var g=h=u=0;g<p.length;g++){switch(p[g]){case" ":h++;break;case"\t":h+=4;break;case"\r":h=0;break;case"\n":h=0,d++;break;default:throw new Error("whitespace characters not allowed in JSON")}u++}break;default:p=void 0}var m="",v={},y=0,b=0,x=0,w=n&&n.es6&&"function"==typeof Map;return function t(e,n,c){function u(){if(e.length){a("[");for(var r=n+1,o=0;o<e.length;o++){o&&a(","),s(r);var l=i(e[o])?e[o]:null;t(l,r,c+"/"+o)}s(n),a("]")}else a("[]")}function h(){var u=Object.keys(e);if(u.length){a("{");for(var h=n+1,d=0;d<u.length;d++){var f=u[d],g=e[f];if(i(g)){d&&a(",");var m=c+"/"+o(f);s(h),l(m,"key"),a(r(f)),l(m,"keyEnd"),a(":"),p&&a(" "),t(g,h,m)}}s(n),a("}")}else a("{}")}function d(u){if(e.size){a("{");for(var h=n+1,d=!0,f=e.entries(),g=f.next();!g.done;){var m=g.value,v=m[0],y=!!u||m[1];if(i(y)){d||a(","),d=!1;var b=c+"/"+o(v);s(h),l(b,"key"),a(r(v)),l(b,"keyEnd"),a(":"),p&&a(" "),t(y,h,b)}g=f.next()}s(n),a("}")}else a("{}")}switch(l(c,"value"),typeof e){case"number":case"bigint":case"boolean":a(""+e);break;case"string":a(r(e));break;case"object":null===e?a("null"):"function"==typeof e.toJSON?a(r(e.toJSON())):Array.isArray(e)?u():w?e.constructor.BYTES_PER_ELEMENT?u():e instanceof Map?d():e instanceof Set?d(!0):h():h()}l(c,"valueEnd")}(t,0,""),{json:m,pointers:v}}};var l=["number","bigint","boolean","string","object"],c=/"|\\/g,u=/[\b]/g,h=/\f/g,d=/\n/g,p=/\r/g,f=/\t/g,g=/~/g,m=/\//g},function(t,e,n){!function(t){"use strict";function e(t){return null!==t&&"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function i(t,r){if(t===r)return!0;if(Object.prototype.toString.call(t)!==Object.prototype.toString.call(r))return!1;if(!0===e(t)){if(t.length!==r.length)return!1;for(var o=0;o<t.length;o++)if(!1===i(t[o],r[o]))return!1;return!0}if(!0!==n(t))return!1;var a={};for(var s in t)if(hasOwnProperty.call(t,s)){if(!1===i(t[s],r[s]))return!1;a[s]=!0}for(var l in r)if(hasOwnProperty.call(r,l)&&!0!==a[l])return!1;return!0}function r(t){if(""===t||!1===t||null===t)return!0;if(e(t)&&0===t.length)return!0;if(n(t)){for(var i in t)if(t.hasOwnProperty(i))return!1;return!0}return!1}function o(t){return"0"<=t&&t<="9"||"-"===t}function a(){}function s(){}function l(t){this.runtime=t}function c(t){this._interpreter=t,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[h]}]},avg:{_func:this._functionAvg,_signature:[{types:[v]}]},ceil:{_func:this._functionCeil,_signature:[{types:[h]}]},contains:{_func:this._functionContains,_signature:[{types:[p,f]},{types:[d]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[p]},{types:[p]}]},floor:{_func:this._functionFloor,_signature:[{types:[h]}]},length:{_func:this._functionLength,_signature:[{types:[p,f,g]}]},map:{_func:this._functionMap,_signature:[{types:[m]},{types:[f]}]},max:{_func:this._functionMax,_signature:[{types:[v,y]}]},merge:{_func:this._functionMerge,_signature:[{types:[g],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[f]},{types:[m]}]},sum:{_func:this._functionSum,_signature:[{types:[v]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[p]},{types:[p]}]},min:{_func:this._functionMin,_signature:[{types:[v,y]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[f]},{types:[m]}]},type:{_func:this._functionType,_signature:[{types:[d]}]},keys:{_func:this._functionKeys,_signature:[{types:[g]}]},values:{_func:this._functionValues,_signature:[{types:[g]}]},sort:{_func:this._functionSort,_signature:[{types:[y,v]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[f]},{types:[m]}]},join:{_func:this._functionJoin,_signature:[{types:[p]},{types:[y]}]},reverse:{_func:this._functionReverse,_signature:[{types:[p,f]}]},to_array:{_func:this._functionToArray,_signature:[{types:[d]}]},to_string:{_func:this._functionToString,_signature:[{types:[d]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[d]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[d],variadic:!0}]}}}var u;u="function"==typeof String.prototype.trimLeft?function(t){return t.trimLeft()}:function(t){return t.match(/^\s*(.*)/)[1]};var h=0,d=1,p=2,f=3,g=4,m=6,v=8,y=9,b="UnquotedIdentifier",x="QuotedIdentifier",w="Rbracket",_="Rparen",C="Comma",A="Colon",I="Rbrace",S="Number",M="Current",k="Expref",E="Pipe",T="GTE",O="LTE",P="Flatten",j="Star",L="Filter",D="Dot",R="Lbrace",B="Lbracket",N="Lparen",F="Literal",z={".":D,"*":j,",":C,":":A,"{":R,"}":I,"]":w,"(":N,")":_,"@":M},V={"<":!0,">":!0,"=":!0,"!":!0},G={" ":!0,"\t":!0,"\n":!0};a.prototype={tokenize:function(t){var e,n,i,r,a=[];for(this._current=0;this._current<t.length;)if("a"<=(r=t[this._current])&&r<="z"||"A"<=r&&r<="Z"||"_"===r)e=this._current,n=this._consumeUnquotedIdentifier(t),a.push({type:b,value:n,start:e});else if(void 0!==z[t[this._current]])a.push({type:z[t[this._current]],value:t[this._current],start:this._current}),this._current++;else if(o(t[this._current]))i=this._consumeNumber(t),a.push(i);else if("["===t[this._current])i=this._consumeLBracket(t),a.push(i);else if('"'===t[this._current])e=this._current,n=this._consumeQuotedIdentifier(t),a.push({type:x,value:n,start:e});else if("'"===t[this._current])e=this._current,n=this._consumeRawStringLiteral(t),a.push({type:F,value:n,start:e});else if("`"===t[this._current]){e=this._current;var s=this._consumeLiteral(t);a.push({type:F,value:s,start:e})}else if(void 0!==V[t[this._current]])a.push(this._consumeOperator(t));else if(void 0!==G[t[this._current]])this._current++;else if("&"===t[this._current])e=this._current,this._current++,"&"===t[this._current]?(this._current++,a.push({type:"And",value:"&&",start:e})):a.push({type:k,value:"&",start:e});else{if("|"!==t[this._current]){var l=new Error("Unknown character:"+t[this._current]);throw l.name="LexerError",l}e=this._current,this._current++,"|"===t[this._current]?(this._current++,a.push({type:"Or",value:"||",start:e})):a.push({type:E,value:"|",start:e})}return a},_consumeUnquotedIdentifier:function(t){var e,n=this._current;for(this._current++;this._current<t.length&&("a"<=(e=t[this._current])&&e<="z"||"A"<=e&&e<="Z"||"0"<=e&&e<="9"||"_"===e);)this._current++;return t.slice(n,this._current)},_consumeQuotedIdentifier:function(t){var e=this._current;this._current++;for(var n=t.length;'"'!==t[this._current]&&this._current<n;){var i=this._current;"\\"!==t[i]||"\\"!==t[i+1]&&'"'!==t[i+1]?i++:i+=2,this._current=i}return this._current++,JSON.parse(t.slice(e,this._current))},_consumeRawStringLiteral:function(t){var e=this._current;this._current++;for(var n=t.length;"'"!==t[this._current]&&this._current<n;){var i=this._current;"\\"!==t[i]||"\\"!==t[i+1]&&"'"!==t[i+1]?i++:i+=2,this._current=i}return this._current++,t.slice(e+1,this._current-1).replace("\\'","'")},_consumeNumber:function(t){var e=this._current;this._current++;for(var n=t.length;o(t[this._current])&&this._current<n;)this._current++;var i=parseInt(t.slice(e,this._current));return{type:S,value:i,start:e}},_consumeLBracket:function(t){var e=this._current;return this._current++,"?"===t[this._current]?(this._current++,{type:L,value:"[?",start:e}):"]"===t[this._current]?(this._current++,{type:P,value:"[]",start:e}):{type:B,value:"[",start:e}},_consumeOperator:function(t){var e=this._current,n=t[e];return this._current++,"!"===n?"="===t[this._current]?(this._current++,{type:"NE",value:"!=",start:e}):{type:"Not",value:"!",start:e}:"<"===n?"="===t[this._current]?(this._current++,{type:O,value:"<=",start:e}):{type:"LT",value:"<",start:e}:">"===n?"="===t[this._current]?(this._current++,{type:T,value:">=",start:e}):{type:"GT",value:">",start:e}:"="===n&&"="===t[this._current]?(this._current++,{type:"EQ",value:"==",start:e}):void 0},_consumeLiteral:function(t){this._current++;for(var e,n=this._current,i=t.length;"`"!==t[this._current]&&this._current<i;){var r=this._current;"\\"!==t[r]||"\\"!==t[r+1]&&"`"!==t[r+1]?r++:r+=2,this._current=r}var o=u(t.slice(n,this._current));return o=o.replace("\\`","`"),e=this._looksLikeJSON(o)?JSON.parse(o):JSON.parse('"'+o+'"'),this._current++,e},_looksLikeJSON:function(t){if(""===t)return!1;if(0<='[{"'.indexOf(t[0]))return!0;if(0<=["true","false","null"].indexOf(t))return!0;if(!(0<="-0123456789".indexOf(t[0])))return!1;try{return JSON.parse(t),!0}catch(t){return!1}}};var H={EOF:0};H[b]=0,H[x]=0,H[w]=0,H[_]=0,H[C]=0,H[I]=0,H[S]=0,H[M]=0,H[k]=0,H[E]=1,H.Or=2,H.And=3,H.EQ=5,H.GT=5,H.LT=5,H.GTE=5,H.LTE=5,H.NE=5,H[P]=9,H[j]=20,H[L]=21,H.Dot=40,H.Not=45,H[R]=50,H[B]=55,H[N]=60,s.prototype={parse:function(t){this._loadTokens(t),this.index=0;var e=this.expression(0);if("EOF"===this._lookahead(0))return e;var n=this._lookaheadToken(0),i=new Error("Unexpected token type: "+n.type+", value: "+n.value);throw i.name="ParserError",i},_loadTokens:function(t){var e=(new a).tokenize(t);e.push({type:"EOF",value:"",start:t.length}),this.tokens=e},expression:function(t){var e=this._lookaheadToken(0);this._advance();for(var n=this.nud(e),i=this._lookahead(0);t<H[i];)this._advance(),n=this.led(i,n),i=this._lookahead(0);return n},_lookahead:function(t){return this.tokens[this.index+t].type},_lookaheadToken:function(t){return this.tokens[this.index+t]},_advance:function(){this.index++},nud:function(t){var e,n;switch(t.type){case F:return{type:"Literal",value:t.value};case b:return{type:"Field",name:t.value};case x:var i={type:"Field",name:t.value};if(this._lookahead(0)===N)throw new Error("Quoted identifier not allowed for function names.");return i;case"Not":return{type:"NotExpression",children:[e=this.expression(H.Not)]};case j:return e=null,{type:"ValueProjection",children:[{type:"Identity"},e=this._lookahead(0)===w?{type:"Identity"}:this._parseProjectionRHS(H.Star)]};case L:return this.led(t.type,{type:"Identity"});case R:return this._parseMultiselectHash();case P:return{type:"Projection",children:[{type:P,children:[{type:"Identity"}]},e=this._parseProjectionRHS(H.Flatten)]};case B:return this._lookahead(0)===S||this._lookahead(0)===A?(e=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},e)):this._lookahead(0)===j&&this._lookahead(1)===w?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},e=this._parseProjectionRHS(H.Star)]}):this._parseMultiselectList();case M:return{type:M};case k:return{type:"ExpressionReference",children:[n=this.expression(H.Expref)]};case N:for(var r=[];this._lookahead(0)!==_;)this._lookahead(0)===M?(n={type:M},this._advance()):n=this.expression(0),r.push(n);return this._match(_),r[0];default:this._errorToken(t)}},led:function(t,e){var n;switch(t){case D:var i=H.Dot;return this._lookahead(0)!==j?{type:"Subexpression",children:[e,n=this._parseDotRHS(i)]}:(this._advance(),{type:"ValueProjection",children:[e,n=this._parseProjectionRHS(i)]});case E:return n=this.expression(H.Pipe),{type:E,children:[e,n]};case"Or":return{type:"OrExpression",children:[e,n=this.expression(H.Or)]};case"And":return{type:"AndExpression",children:[e,n=this.expression(H.And)]};case N:for(var r,o=e.name,a=[];this._lookahead(0)!==_;)this._lookahead(0)===M?(r={type:M},this._advance()):r=this.expression(0),this._lookahead(0)===C&&this._match(C),a.push(r);return this._match(_),{type:"Function",name:o,children:a};case L:var s=this.expression(0);return this._match(w),{type:"FilterProjection",children:[e,n=this._lookahead(0)===P?{type:"Identity"}:this._parseProjectionRHS(H.Filter),s]};case P:return{type:"Projection",children:[{type:P,children:[e]},this._parseProjectionRHS(H.Flatten)]};case"EQ":case"NE":case"GT":case T:case"LT":case O:return this._parseComparator(e,t);case B:var l=this._lookaheadToken(0);return l.type===S||l.type===A?(n=this._parseIndexExpression(),this._projectIfSlice(e,n)):(this._match(j),this._match(w),{type:"Projection",children:[e,n=this._parseProjectionRHS(H.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(t){if(this._lookahead(0)!==t){var e=this._lookaheadToken(0),n=new Error("Expected "+t+", got: "+e.type);throw n.name="ParserError",n}this._advance()},_errorToken:function(t){var e=new Error("Invalid token ("+t.type+'): "'+t.value+'"');throw e.name="ParserError",e},_parseIndexExpression:function(){if(this._lookahead(0)===A||this._lookahead(1)===A)return this._parseSliceExpression();var t={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(w),t},_projectIfSlice:function(t,e){var n={type:"IndexExpression",children:[t,e]};return"Slice"===e.type?{type:"Projection",children:[n,this._parseProjectionRHS(H.Star)]}:n},_parseSliceExpression:function(){for(var t=[null,null,null],e=0,n=this._lookahead(0);n!==w&&e<3;){if(n===A)e++,this._advance();else{if(n!==S){var i=this._lookahead(0),r=new Error("Syntax error, unexpected token: "+i.value+"("+i.type+")");throw r.name="Parsererror",r}t[e]=this._lookaheadToken(0).value,this._advance()}n=this._lookahead(0)}return this._match(w),{type:"Slice",children:t}},_parseComparator:function(t,e){return{type:"Comparator",name:e,children:[t,this.expression(H[e])]}},_parseDotRHS:function(t){var e=this._lookahead(0);return 0<=[b,x,j].indexOf(e)?this.expression(t):e===B?(this._match(B),this._parseMultiselectList()):e===R?(this._match(R),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(t){var e;if(H[this._lookahead(0)]<10)e={type:"Identity"};else if(this._lookahead(0)===B)e=this.expression(t);else if(this._lookahead(0)===L)e=this.expression(t);else{if(this._lookahead(0)!==D){var n=this._lookaheadToken(0),i=new Error("Sytanx error, unexpected token: "+n.value+"("+n.type+")");throw i.name="ParserError",i}this._match(D),e=this._parseDotRHS(t)}return e},_parseMultiselectList:function(){for(var t=[];this._lookahead(0)!==w;){var e=this.expression(0);if(t.push(e),this._lookahead(0)===C&&(this._match(C),this._lookahead(0)===w))throw new Error("Unexpected token Rbracket")}return this._match(w),{type:"MultiSelectList",children:t}},_parseMultiselectHash:function(){for(var t,e,n,i=[],r=[b,x];;){if(t=this._lookaheadToken(0),r.indexOf(t.type)<0)throw new Error("Expecting an identifier token, got: "+t.type);if(e=t.value,this._advance(),this._match(A),n={type:"KeyValuePair",name:e,value:this.expression(0)},i.push(n),this._lookahead(0)===C)this._match(C);else if(this._lookahead(0)===I){this._match(I);break}}return{type:"MultiSelectHash",children:i}}},l.prototype={search:function(t,e){return this.visit(t,e)},visit:function(t,o){var a,s,l,c,u,h,d,p,f;switch(t.type){case"Field":return null!==o&&n(o)&&void 0!==(h=o[t.name])?h:null;case"Subexpression":for(l=this.visit(t.children[0],o),f=1;f<t.children.length;f++)if(null===(l=this.visit(t.children[1],l)))return null;return l;case"IndexExpression":return d=this.visit(t.children[0],o),this.visit(t.children[1],d);case"Index":if(!e(o))return null;var g=t.value;return g<0&&(g=o.length+g),void 0===(l=o[g])&&(l=null),l;case"Slice":if(!e(o))return null;var m=t.children.slice(0),v=this.computeSliceParams(o.length,m),y=v[0],b=v[1],x=v[2];if(l=[],0<x)for(f=y;f<b;f+=x)l.push(o[f]);else for(f=y;b<f;f+=x)l.push(o[f]);return l;case"Projection":var w=this.visit(t.children[0],o);if(!e(w))return null;for(p=[],f=0;f<w.length;f++)null!==(s=this.visit(t.children[1],w[f]))&&p.push(s);return p;case"ValueProjection":if(!n(w=this.visit(t.children[0],o)))return null;p=[];var _=function(t){for(var e=Object.keys(t),n=[],i=0;i<e.length;i++)n.push(t[e[i]]);return n}(w);for(f=0;f<_.length;f++)null!==(s=this.visit(t.children[1],_[f]))&&p.push(s);return p;case"FilterProjection":if(!e(w=this.visit(t.children[0],o)))return null;var C=[],A=[];for(f=0;f<w.length;f++)r(a=this.visit(t.children[2],w[f]))||C.push(w[f]);for(var I=0;I<C.length;I++)null!==(s=this.visit(t.children[1],C[I]))&&A.push(s);return A;case"Comparator":switch(c=this.visit(t.children[0],o),u=this.visit(t.children[1],o),t.name){case"EQ":l=i(c,u);break;case"NE":l=!i(c,u);break;case"GT":l=u<c;break;case T:l=u<=c;break;case"LT":l=c<u;break;case O:l=c<=u;break;default:throw new Error("Unknown comparator: "+t.name)}return l;case P:var S=this.visit(t.children[0],o);if(!e(S))return null;var j=[];for(f=0;f<S.length;f++)e(s=S[f])?j.push.apply(j,s):j.push(s);return j;case"Identity":return o;case"MultiSelectList":if(null===o)return null;for(p=[],f=0;f<t.children.length;f++)p.push(this.visit(t.children[f],o));return p;case"MultiSelectHash":if(null===o)return null;var L;for(p={},f=0;f<t.children.length;f++)p[(L=t.children[f]).name]=this.visit(L.value,o);return p;case"OrExpression":return r(a=this.visit(t.children[0],o))&&(a=this.visit(t.children[1],o)),a;case"AndExpression":return!0===r(c=this.visit(t.children[0],o))?c:this.visit(t.children[1],o);case"NotExpression":return r(c=this.visit(t.children[0],o));case"Literal":return t.value;case E:return d=this.visit(t.children[0],o),this.visit(t.children[1],d);case M:return o;case"Function":var D=[];for(f=0;f<t.children.length;f++)D.push(this.visit(t.children[f],o));return this.runtime.callFunction(t.name,D);case"ExpressionReference":var R=t.children[0];return R.jmespathType=k,R;default:throw new Error("Unknown node type: "+t.type)}},computeSliceParams:function(t,e){var n=e[0],i=e[1],r=e[2],o=[null,null,null];if(null===r)r=1;else if(0===r){var a=new Error("Invalid slice, step cannot be 0");throw a.name="RuntimeError",a}var s=r<0;return n=null===n?s?t-1:0:this.capSliceRange(t,n,r),i=null===i?s?-1:t:this.capSliceRange(t,i,r),o[0]=n,o[1]=i,o[2]=r,o},capSliceRange:function(t,e,n){return e<0?(e+=t)<0&&(e=n<0?-1:0):t<=e&&(e=n<0?t-1:t),e}},c.prototype={callFunction:function(t,e){var n=this.functionTable[t];if(void 0===n)throw new Error("Unknown function: "+t+"()");return this._validateArgs(t,e,n._signature),n._func.call(this,e)},_validateArgs:function(t,e,n){var i,r,o,a;if(n[n.length-1].variadic){if(e.length<n.length)throw i=1===n.length?" argument":" arguments",new Error("ArgumentError: "+t+"() takes at least"+n.length+i+" but received "+e.length)}else if(e.length!==n.length)throw i=1===n.length?" argument":" arguments",new Error("ArgumentError: "+t+"() takes "+n.length+i+" but received "+e.length);for(var s=0;s<n.length;s++){a=!1,r=n[s].types,o=this._getTypeName(e[s]);for(var l=0;l<r.length;l++)if(this._typeMatches(o,r[l],e[s])){a=!0;break}if(!a)throw new Error("TypeError: "+t+"() expected argument "+(s+1)+" to be type "+r+" but received type "+o+" instead.")}},_typeMatches:function(t,e,n){if(e===d)return!0;if(e!==y&&e!==v&&e!==f)return t===e;if(e===f)return t===f;if(t===f){var i;e===v?i=h:e===y&&(i=p);for(var r=0;r<n.length;r++)if(!this._typeMatches(this._getTypeName(n[r]),i,n[r]))return!1;return!0}},_getTypeName:function(t){switch(Object.prototype.toString.call(t)){case"[object String]":return p;case"[object Number]":return h;case"[object Array]":return f;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return t.jmespathType===k?m:g}},_functionStartsWith:function(t){return 0===t[0].lastIndexOf(t[1])},_functionEndsWith:function(t){var e=t[0],n=t[1];return-1!==e.indexOf(n,e.length-n.length)},_functionReverse:function(t){if(this._getTypeName(t[0])===p){for(var e=t[0],n="",i=e.length-1;0<=i;i--)n+=e[i];return n}var r=t[0].slice(0);return r.reverse(),r},_functionAbs:function(t){return Math.abs(t[0])},_functionCeil:function(t){return Math.ceil(t[0])},_functionAvg:function(t){for(var e=0,n=t[0],i=0;i<n.length;i++)e+=n[i];return e/n.length},_functionContains:function(t){return 0<=t[0].indexOf(t[1])},_functionFloor:function(t){return Math.floor(t[0])},_functionLength:function(t){return n(t[0])?Object.keys(t[0]).length:t[0].length},_functionMap:function(t){for(var e=[],n=this._interpreter,i=t[0],r=t[1],o=0;o<r.length;o++)e.push(n.visit(i,r[o]));return e},_functionMerge:function(t){for(var e={},n=0;n<t.length;n++){var i=t[n];for(var r in i)e[r]=i[r]}return e},_functionMax:function(t){if(0<t[0].length){if(this._getTypeName(t[0][0])===h)return Math.max.apply(Math,t[0]);for(var e=t[0],n=e[0],i=1;i<e.length;i++)n.localeCompare(e[i])<0&&(n=e[i]);return n}return null},_functionMin:function(t){if(0<t[0].length){if(this._getTypeName(t[0][0])===h)return Math.min.apply(Math,t[0]);for(var e=t[0],n=e[0],i=1;i<e.length;i++)e[i].localeCompare(n)<0&&(n=e[i]);return n}return null},_functionSum:function(t){for(var e=0,n=t[0],i=0;i<n.length;i++)e+=n[i];return e},_functionType:function(t){switch(this._getTypeName(t[0])){case h:return"number";case p:return"string";case f:return"array";case g:return"object";case 5:return"boolean";case m:return"expref";case 7:return"null"}},_functionKeys:function(t){return Object.keys(t[0])},_functionValues:function(t){for(var e=t[0],n=Object.keys(e),i=[],r=0;r<n.length;r++)i.push(e[n[r]]);return i},_functionJoin:function(t){var e=t[0];return t[1].join(e)},_functionToArray:function(t){return this._getTypeName(t[0])===f?t[0]:[t[0]]},_functionToString:function(t){return this._getTypeName(t[0])===p?t[0]:JSON.stringify(t[0])},_functionToNumber:function(t){var e,n=this._getTypeName(t[0]);return n===h?t[0]:n!==p||(e=+t[0],isNaN(e))?null:e},_functionNotNull:function(t){for(var e=0;e<t.length;e++)if(7!==this._getTypeName(t[e]))return t[e];return null},_functionSort:function(t){var e=t[0].slice(0);return e.sort(),e},_functionSortBy:function(t){var e=t[0].slice(0);if(0===e.length)return e;var n=this._interpreter,i=t[1],r=this._getTypeName(n.visit(i,e[0]));if([h,p].indexOf(r)<0)throw new Error("TypeError");for(var o=this,a=[],s=0;s<e.length;s++)a.push([s,e[s]]);a.sort((function(t,e){var a=n.visit(i,t[1]),s=n.visit(i,e[1]);if(o._getTypeName(a)!==r)throw new Error("TypeError: expected "+r+", received "+o._getTypeName(a));if(o._getTypeName(s)!==r)throw new Error("TypeError: expected "+r+", received "+o._getTypeName(s));return s<a?1:a<s?-1:t[0]-e[0]}));for(var l=0;l<a.length;l++)e[l]=a[l][1];return e},_functionMaxBy:function(t){for(var e,n,i=t[1],r=t[0],o=this.createKeyFunction(i,[h,p]),a=-1/0,s=0;s<r.length;s++)a<(n=o(r[s]))&&(a=n,e=r[s]);return e},_functionMinBy:function(t){for(var e,n,i=t[1],r=t[0],o=this.createKeyFunction(i,[h,p]),a=1/0,s=0;s<r.length;s++)(n=o(r[s]))<a&&(a=n,e=r[s]);return e},createKeyFunction:function(t,e){var n=this,i=this._interpreter;return function(r){var o=i.visit(t,r);if(e.indexOf(n._getTypeName(o))<0){var a="TypeError: expected one of "+e+", received "+n._getTypeName(o);throw new Error(a)}return o}}},t.tokenize=function(t){return(new a).tokenize(t)},t.compile=function(t){return(new s).parse(t)},t.search=function(t,e){var n=new s,i=new c,r=new l(i);i._interpreter=r;var o=n.parse(e);return r.search(o,t)},t.strictDeepEqual=i}(e)},function(t,e,n){e.tryRequireThemeJsonEditor=function(){try{n(42)}catch(t){console.error(t)}}},function(t,e,n){"use strict";function i(t,e,n){if(!(this instanceof i))throw new Error('JSONEditor constructor called without "new".');var r=d();if(-1!==r&&r<9)throw new Error("Unsupported browser, IE9 or newer required. Please install the newest version of your browser.");e&&(e.error&&(console.warn('Option "error" has been renamed to "onError"'),e.onError=e.error,delete e.error),e.change&&(console.warn('Option "change" has been renamed to "onChange"'),e.onChange=e.change,delete e.change),e.editable&&(console.warn('Option "editable" has been renamed to "onEditable"'),e.onEditable=e.editable,delete e.editable),e.onChangeJSON&&("text"!==e.mode&&"code"!==e.mode&&(!e.modes||-1===e.modes.indexOf("text")&&-1===e.modes.indexOf("code"))||console.warn('Option "onChangeJSON" is not applicable to modes "text" and "code". Use "onChangeText" or "onChange" instead.')),e&&Object.keys(e).forEach((function(t){-1===i.VALID_OPTIONS.indexOf(t)&&console.warn('Unknown option "'+t+'". This option will be ignored')}))),arguments.length&&this._create(t,e,n)}var r=n(20),o=n(13),a=n(80).treeModeMixins,s=n(21).textModeMixins,l=n(81).previewModeMixins,c=n(0),u=c.clear,h=c.extend,d=c.getInternetExplorerVersion,p=c.parse,f=n(43).tryRequireAjv,g=n(6).showTransformModal,m=n(5).showSortModal,v=f();"undefined"==typeof Promise&&console.error("Promise undefined. Please load a Promise polyfill in the browser in order to use JSONEditor"),i.modes={},i.prototype.DEBOUNCE_INTERVAL=150,i.VALID_OPTIONS=["ajv","schema","schemaRefs","templates","ace","theme","autocomplete","onChange","onChangeJSON","onChangeText","onEditable","onError","onEvent","onModeChange","onNodeName","onValidate","onCreateMenu","onSelectionChange","onTextSelectionChange","onClassName","onFocus","onBlur","colorPicker","onColorPicker","timestampTag","timestampFormat","escapeUnicode","history","search","mode","modes","name","indentation","sortObjectKeys","navigationBar","statusBar","mainMenuBar","languages","language","enableSort","enableTransform","maxVisibleChilds","onValidationError","modalAnchor","popupAnchor","createQuery","executeQuery","queryDescription"],i.prototype._create=function(t,e,n){this.container=t,this.options=e||{},this.json=n||{};var i=this.options.mode||this.options.modes&&this.options.modes[0]||"tree";this.setMode(i)},i.prototype.destroy=function(){},i.prototype.set=function(t){this.json=t},i.prototype.get=function(){return this.json},i.prototype.setText=function(t){this.json=p(t)},i.prototype.getText=function(){return JSON.stringify(this.json)},i.prototype.setName=function(t){this.options||(this.options={}),this.options.name=t},i.prototype.getName=function(){return this.options&&this.options.name},i.prototype.setMode=function(t){if(t!==this.options.mode||!this.create){var e,n,r=this.container,o=h({},this.options),a=o.mode;o.mode=t;var s=i.modes[t];if(!s)throw new Error('Unknown mode "'+o.mode+'"');try{var l="text"===s.data;if(n=this.getName(),e=this[l?"getText":"get"](),this.destroy(),u(this),h(this,s.mixin),this.create(r,o),this.setName(n),this[l?"setText":"set"](e),"function"==typeof s.load)try{s.load.call(this)}catch(t){console.error(t)}if("function"==typeof o.onModeChange&&t!==a)try{o.onModeChange(t,a)}catch(t){console.error(t)}}catch(t){this._onError(t)}}},i.prototype.getMode=function(){return this.options.mode},i.prototype._onError=function(t){if(!this.options||"function"!=typeof this.options.onError)throw t;this.options.onError(t)},i.prototype.setSchema=function(t,e){if(t){var i;try{this.options.ajv?i=this.options.ajv:((i=v({allErrors:!0,verbose:!0,schemaId:"auto",$data:!0})).addMetaSchema(n(78)),i.addMetaSchema(n(79)))}catch(t){console.warn("Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.")}if(i){if(e){for(var r in e)i.removeSchema(r),e[r]&&i.addSchema(e[r],r);this.options.schemaRefs=e}this.validateSchema=i.compile(t),this.options.schema=t,this.validate()}this.refresh()}else this.validateSchema=null,this.options.schema=null,this.options.schemaRefs=null,this.validate(),this.refresh()},i.prototype.validate=function(){},i.prototype.refresh=function(){},(i.registerMode=function(t){var e,n;if(Array.isArray(t))for(e=0;e<t.length;e++)i.registerMode(t[e]);else{if(!("mode"in t))throw new Error('Property "mode" missing');if(!("mixin"in t))throw new Error('Property "mixin" missing');if(!("data"in t))throw new Error('Property "data" missing');var r=t.mode;if(r in i.modes)throw new Error('Mode "'+r+'" already registered');if("function"!=typeof t.mixin.create)throw new Error('Required function "create" missing on mixin');var o=["setMode","registerMode","modes"];for(e=0;e<o.length;e++)if((n=o[e])in t.mixin)throw new Error('Reserved property "'+n+'" not allowed in mixin');i.modes[r]=t}})(a),i.registerMode(s),i.registerMode(l),i.ace=r,i.Ajv=v,i.VanillaPicker=o,i.showTransformModal=g,i.showSortModal=m,i.default=i,t.exports=i},function(t,e,n){(function(t){!function(){function t(t,e,n){if("string"==typeof e){var i=s(t,e);if(null!=i)return n&&n(),i}else if("[object Array]"===Object.prototype.toString.call(e)){for(var r=[],a=0,l=e.length;a<l;++a){var c=s(t,e[a]);if(null==c&&o.original)return;r.push(c)}return n&&n.apply(null,r)||!0}}var e=function(){return this}();e||"undefined"==typeof window||(e=window);var n=function(t,e,i){"string"==typeof t?(2==arguments.length&&(i=e),n.modules[t]||(n.payloads[t]=i,n.modules[t]=null)):n.original?n.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};n.modules={},n.payloads={};var i,r,o=function(e,n){var i=t("",e,n);return null==i&&o.original?o.original.apply(this,arguments):i},a=function(t,e){if(-1!==e.indexOf("!")){var n=e.split("!");return a(t,n[0])+"!"+a(t,n[1])}if("."==e.charAt(0))for(e=t.split("/").slice(0,-1).join("/")+"/"+e;-1!==e.indexOf(".")&&i!=e;){var i=e;e=e.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return e},s=function(e,i){i=a(e,i);var r=n.modules[i];if(!r){if("function"==typeof(r=n.payloads[i])){var o={},s={id:i,uri:"",exports:o,packaged:!0};o=r((function(e,n){return t(i,e,n)}),o,s)||s.exports,n.modules[i]=o,delete n.payloads[i]}r=n.modules[i]=o||r}return r};r=e,(i="ace")&&(e[i]||(e[i]={}),r=e[i]),r.define&&r.define.packaged||(n.original=r.define,r.define=n,r.define.packaged=!0),r.require&&r.require.packaged||(o.original=r.require,r.require=o,r.require.packaged=!0)}(),ace.define("ace/lib/regexp",["require","exports","module"],(function(t,e,n){"use strict";var i,r={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},o=void 0===r.exec.call(/()??/,"")[1],a=(i=/^/g,r.test.call(i,""),!i.lastIndex);a&&o||(RegExp.prototype.exec=function(t){var e,n,i,s=r.exec.apply(this,arguments);if("string"==typeof t&&s){if(!o&&1<s.length&&-1<function(t,e,n){if(Array.prototype.indexOf)return t.indexOf("",n);for(var i=0;i<t.length;i++)if(""===t[i])return i;return-1}(s)&&(n=RegExp(this.source,r.replace.call(((i=this).global?"g":"")+(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),"g","")),r.replace.call(t.slice(s.index),n,(function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(s[t]=void 0)}))),this._xregexp&&this._xregexp.captureNames)for(var l=1;l<s.length;l++)(e=this._xregexp.captureNames[l-1])&&(s[e]=s[l]);!a&&this.global&&!s[0].length&&this.lastIndex>s.index&&this.lastIndex--}return s},a||(RegExp.prototype.test=function(t){var e=r.exec.call(this,t);return e&&this.global&&!e[0].length&&this.lastIndex>e.index&&this.lastIndex--,!!e}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(t,e,n){function i(){}function r(t){var e=new Array(t+2);return e[0]=e[1]=0,e}function o(t){try{return Object.defineProperty(t,"sentinel",{}),"sentinel"in t}catch(t){}}function a(t){return(t=+t)!=t?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(0<t||-1)*Math.floor(Math.abs(t))),t}Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError("Function.prototype.bind called on incompatible "+e);var n=v.call(arguments,1),r=function(){if(this instanceof r){var i=e.apply(this,n.concat(v.call(arguments)));return Object(i)===i?i:this}return e.apply(t,n.concat(v.call(arguments)))};return e.prototype&&(i.prototype=e.prototype,r.prototype=new i,i.prototype=null),r});var s,l,c,u,h,d,p,f=Function.prototype.call,g=Array.prototype,m=Object.prototype,v=g.slice,y=f.bind(m.toString),b=f.bind(m.hasOwnProperty);if((h=b(m,"__defineGetter__"))&&(s=f.bind(m.__defineGetter__),l=f.bind(m.__defineSetter__),c=f.bind(m.__lookupGetter__),u=f.bind(m.__lookupSetter__)),2!=[1,2].splice(0).length)if((p=[]).splice.apply(p,r(20)),p.splice.apply(p,r(26)),d=p.length,p.splice(5,0,"XXX"),p.length,d+1==p.length){var x=Array.prototype.splice;Array.prototype.splice=function(t,e){return arguments.length?x.apply(this,[void 0===t?0:t,void 0===e?this.length-t:e].concat(v.call(arguments,2))):[]}}else Array.prototype.splice=function(t,e){var n=this.length;0<t?n<t&&(t=n):null==t?t=0:t<0&&(t=Math.max(n+t,0)),t+e<n||(e=n-t);var i=this.slice(t,t+e),r=v.call(arguments,2),o=r.length;if(t===n)o&&this.push.apply(this,r);else{var a=Math.min(e,n-t),s=t+a,l=s+o-a,c=n-s,u=n-a;if(l<s)for(var h=0;h<c;++h)this[l+h]=this[s+h];else if(s<l)for(h=c;h--;)this[l+h]=this[s+h];if(o&&t===u)this.length=u,this.push.apply(this,r);else for(this.length=u+o,h=0;h<o;++h)this[t+h]=r[h]}return i};Array.isArray||(Array.isArray=function(t){return"[object Array]"==y(t)});var w,_=Object("a"),C="a"!=_[0]||!(0 in _);if(Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var n=L(this),i=C&&"[object String]"==y(this)?this.split(""):n,r=e,o=-1,a=i.length>>>0;if("[object Function]"!=y(t))throw new TypeError;for(;++o<a;)o in i&&t.call(r,i[o],o,n)}),Array.prototype.map||(Array.prototype.map=function(t,e){var n=L(this),i=C&&"[object String]"==y(this)?this.split(""):n,r=i.length>>>0,o=Array(r),a=e;if("[object Function]"!=y(t))throw new TypeError(t+" is not a function");for(var s=0;s<r;s++)s in i&&(o[s]=t.call(a,i[s],s,n));return o}),Array.prototype.filter||(Array.prototype.filter=function(t,e){var n,i=L(this),r=C&&"[object String]"==y(this)?this.split(""):i,o=r.length>>>0,a=[],s=e;if("[object Function]"!=y(t))throw new TypeError(t+" is not a function");for(var l=0;l<o;l++)l in r&&(n=r[l],t.call(s,n,l,i)&&a.push(n));return a}),Array.prototype.every||(Array.prototype.every=function(t,e){var n=L(this),i=C&&"[object String]"==y(this)?this.split(""):n,r=i.length>>>0,o=e;if("[object Function]"!=y(t))throw new TypeError(t+" is not a function");for(var a=0;a<r;a++)if(a in i&&!t.call(o,i[a],a,n))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(t,e){var n=L(this),i=C&&"[object String]"==y(this)?this.split(""):n,r=i.length>>>0,o=e;if("[object Function]"!=y(t))throw new TypeError(t+" is not a function");for(var a=0;a<r;a++)if(a in i&&t.call(o,i[a],a,n))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(t,e){var n=L(this),i=C&&"[object String]"==y(this)?this.split(""):n,r=i.length>>>0;if("[object Function]"!=y(t))throw new TypeError(t+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var o,a=0;if(2<=arguments.length)o=e;else for(;;){if(a in i){o=i[a++];break}if(++a>=r)throw new TypeError("reduce of empty array with no initial value")}for(;a<r;a++)a in i&&(o=t.call(void 0,o,i[a],a,n));return o}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(t,e){var n=L(this),i=C&&"[object String]"==y(this)?this.split(""):n,r=i.length>>>0;if("[object Function]"!=y(t))throw new TypeError(t+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var o,a=r-1;if(2<=arguments.length)o=e;else for(;;){if(a in i){o=i[a--];break}if(--a<0)throw new TypeError("reduceRight of empty array with no initial value")}for(;a in this&&(o=t.call(void 0,o,i[a],a,n)),a--;);return o}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(t,e){var n=C&&"[object String]"==y(this)?this.split(""):L(this),i=n.length>>>0;if(!i)return-1;var r=0;for(1<arguments.length&&(r=a(e)),r=0<=r?r:Math.max(0,i+r);r<i;r++)if(r in n&&n[r]===t)return r;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(t,e){var n=C&&"[object String]"==y(this)?this.split(""):L(this),i=n.length>>>0;if(!i)return-1;var r=i-1;for(1<arguments.length&&(r=Math.min(r,a(e))),r=0<=r?r:i-Math.abs(r);0<=r;r--)if(r in n&&t===n[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(t){return t.__proto__||(t.constructor?t.constructor.prototype:m)}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(t,e){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+t);if(b(t,e)){var n;if(n={enumerable:!0,configurable:!0},h){var i=t.__proto__;t.__proto__=m;var r=c(t,e),o=u(t,e);if(t.__proto__=i,r||o)return r&&(n.get=r),o&&(n.set=o),n}return n.value=t[e],n}}),Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)}),Object.create||(w=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var t={};for(var e in t)t[e]=null;return t.constructor=t.hasOwnProperty=t.propertyIsEnumerable=t.isPrototypeOf=t.toLocaleString=t.toString=t.valueOf=t.__proto__=null,t},Object.create=function(t,e){function n(){}var i;if(null===t)i=w();else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");n.prototype=t,(i=new n).__proto__=t}return void 0!==e&&Object.defineProperties(i,e),i}),Object.defineProperty){var A=o({}),I="undefined"==typeof document||o(document.createElement("div"));if(!A||!I)var S=Object.defineProperty}Object.defineProperty&&!S||(Object.defineProperty=function(t,e,n){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.defineProperty called on non-object: "+t);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(S)try{return S.call(Object,t,e,n)}catch(t){}if(b(n,"value"))if(h&&(c(t,e)||u(t,e))){var i=t.__proto__;t.__proto__=m,delete t[e],t[e]=n.value,t.__proto__=i}else t[e]=n.value;else{if(!h)throw new TypeError("getters & setters can not be defined on this javascript engine");b(n,"get")&&s(t,e,n.get),b(n,"set")&&l(t,e,n.set)}return t}),Object.defineProperties||(Object.defineProperties=function(t,e){for(var n in e)b(e,n)&&Object.defineProperty(t,n,e[n]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze((function(){}))}catch(t){Object.freeze=function(t){return function(e){return"function"==typeof e?e:t(e)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)===t)throw new TypeError;for(var e="";b(t,e);)e+="?";t[e]=!0;var n=b(t,e);return delete t[e],n}),!Object.keys){var M=!0,k=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],E=k.length;for(var T in{toString:null})M=!1;Object.keys=function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("Object.keys called on a non-object");var e=[];for(var n in t)b(t,n)&&e.push(n);if(M)for(var i=0,r=E;i<r;i++){var o=k[i];b(t,o)&&e.push(o)}return e}}Date.now||(Date.now=function(){return(new Date).getTime()});var O="\t\n\v\f\r                　\u2028\u2029\ufeff";if(!String.prototype.trim){O="["+O+"]";var P=new RegExp("^"+O+O+"*"),j=new RegExp(O+O+"*$");String.prototype.trim=function(){return String(this).replace(P,"").replace(j,"")}}var L=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(t,e,n){"use strict";t("./regexp"),t("./es5-shim"),"undefined"==typeof Element||Element.prototype.remove||Object.defineProperty(Element.prototype,"remove",{enumerable:!1,writable:!0,configurable:!0,value:function(){this.parentNode&&this.parentNode.removeChild(this)}})})),ace.define("ace/lib/useragent",["require","exports","module"],(function(t,e,n){"use strict";e.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},e.getOS=function(){return e.isMac?e.OS.MAC:e.isLinux?e.OS.LINUX:e.OS.WINDOWS};var i="object"==typeof navigator?navigator:{},r=(/mac|win|linux/i.exec(i.platform)||["other"])[0].toLowerCase(),o=i.userAgent||"",a=i.appName||"";e.isWin="win"==r,e.isMac="mac"==r,e.isLinux="linux"==r,e.isIE="Microsoft Internet Explorer"==a||0<=a.indexOf("MSAppHost")?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),e.isOldIE=e.isIE&&e.isIE<9,e.isGecko=e.isMozilla=o.match(/ Gecko\/\d+/),e.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),e.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,e.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,e.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,e.isAIR=0<=o.indexOf("AdobeAIR"),e.isAndroid=0<=o.indexOf("Android"),e.isChromeOS=0<=o.indexOf(" CrOS "),e.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,e.isIOS&&(e.isMac=!0),e.isMobile=e.isIOS||e.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(t,e,n){"use strict";var i=t("./useragent");if(e.buildDom=function t(e,n,i){if("string"==typeof e&&e){var r=document.createTextNode(e);return n&&n.appendChild(r),r}if(!Array.isArray(e))return e;if("string"!=typeof e[0]||!e[0]){for(var o=[],a=0;a<e.length;a++){var s=t(e[a],n,i);s&&o.push(s)}return o}var l=document.createElement(e[0]),c=e[1],u=1;for(c&&"object"==typeof c&&!Array.isArray(c)&&(u=2),a=u;a<e.length;a++)t(e[a],l,i);return 2==u&&Object.keys(c).forEach((function(t){var e=c[t];"class"===t?l.className=Array.isArray(e)?e.join(" "):e:"function"==typeof e||"value"==t?l[t]=e:"ref"===t?i&&(i[e]=l):null!=e&&l.setAttribute(t,e)})),n&&n.appendChild(l),l},e.getDocumentHead=function(t){return(t=t||document).head||t.getElementsByTagName("head")[0]||t.documentElement},e.createElement=function(t,e){return document.createElementNS?document.createElementNS(e||"http://www.w3.org/1999/xhtml",t):document.createElement(t)},e.removeChildren=function(t){t.innerHTML=""},e.createTextNode=function(t,e){return(e?e.ownerDocument:document).createTextNode(t)},e.createFragment=function(t){return(t?t.ownerDocument:document).createDocumentFragment()},e.hasCssClass=function(t,e){return-1!==(t.className+"").split(/\s+/g).indexOf(e)},e.addCssClass=function(t,n){e.hasCssClass(t,n)||(t.className+=" "+n)},e.removeCssClass=function(t,e){for(var n=t.className.split(/\s+/g);;){var i=n.indexOf(e);if(-1==i)break;n.splice(i,1)}t.className=n.join(" ")},e.toggleCssClass=function(t,e){for(var n=t.className.split(/\s+/g),i=!0;;){var r=n.indexOf(e);if(-1==r)break;i=!1,n.splice(r,1)}return i&&n.push(e),t.className=n.join(" "),i},e.setCssClass=function(t,n,i){i?e.addCssClass(t,n):e.removeCssClass(t,n)},e.hasCssString=function(t,e){var n,i=0;if(n=(e=e||document).querySelectorAll("style"))for(;i<n.length;)if(n[i++].id===t)return!0},e.importCssString=function(t,n,i){var r=i;i&&i.getRootNode&&(r=i.getRootNode())&&r!=i||(r=document);var o=r.ownerDocument||r;if(n&&e.hasCssString(n,r))return null;n&&(t+="\n/*# sourceURL=ace/css/"+n+" */");var a=e.createElement("style");a.appendChild(o.createTextNode(t)),n&&(a.id=n),r==o&&(r=e.getDocumentHead(o)),r.insertBefore(a,r.firstChild)},e.importCssStylsheet=function(t,n){e.buildDom(["link",{rel:"stylesheet",href:t}],e.getDocumentHead(n))},e.scrollbarWidth=function(t){var n=e.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var i=e.createElement("ace_outer"),r=i.style;r.position="absolute",r.left="-10000px",r.overflow="hidden",r.width="200px",r.minWidth="0px",r.height="150px",r.display="block",i.appendChild(n);var o=t.documentElement;o.appendChild(i);var a=n.offsetWidth;r.overflow="scroll";var s=n.offsetWidth;return a==s&&(s=i.clientWidth),o.removeChild(i),a-s},"undefined"==typeof document&&(e.importCssString=function(){}),e.computedStyle=function(t,e){return window.getComputedStyle(t,"")||{}},e.setStyle=function(t,e,n){t[e]!==n&&(t[e]=n)},e.HAS_CSS_ANIMATION=!1,e.HAS_CSS_TRANSFORMS=!1,e.HI_DPI=!i.isWin||"undefined"!=typeof window&&1.5<=window.devicePixelRatio,"undefined"!=typeof document){var r=document.createElement("div");e.HI_DPI&&void 0!==r.style.transform&&(e.HAS_CSS_TRANSFORMS=!0),i.isEdge||void 0===r.style.animationName||(e.HAS_CSS_ANIMATION=!0),r=null}e.HAS_CSS_TRANSFORMS?e.translate=function(t,e,n){t.style.transform="translate("+Math.round(e)+"px, "+Math.round(n)+"px)"}:e.translate=function(t,e,n){t.style.top=Math.round(n)+"px",t.style.left=Math.round(e)+"px"}})),ace.define("ace/lib/oop",["require","exports","module"],(function(t,e,n){"use strict";e.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},e.mixin=function(t,e){for(var n in e)t[n]=e[n];return t},e.implement=function(t,n){e.mixin(t,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(t,e,n){"use strict";var i=t("./oop"),r=function(){var t,e,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(e in n.FUNCTION_KEYS)t=n.FUNCTION_KEYS[e].toLowerCase(),n[t]=parseInt(e,10);for(e in n.PRINTABLE_KEYS)t=n.PRINTABLE_KEYS[e].toLowerCase(),n[t]=parseInt(e,10);return i.mixin(n,n.MODIFIER_KEYS),i.mixin(n,n.PRINTABLE_KEYS),i.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var t=["cmd","ctrl","alt","shift"],e=Math.pow(2,t.length);e--;)n.KEY_MODS[e]=t.filter((function(t){return e&n.KEY_MODS[t]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();i.mixin(e,r),e.keyCodeToString=function(t){var e=r[t];return"string"!=typeof e&&(e=String.fromCharCode(t)),e.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(t,e,n){"use strict";function i(){return null==s&&function(){s=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){s={passive:!1}}})}catch(t){}}(),s}function r(t){return 0|(t.ctrlKey?1:0)|(t.altKey?2:0)|(t.shiftKey?4:0)|(t.metaKey?8:0)}function o(t,e,n){var i=r(e);if(!c.isMac&&u){if(e.getModifierState&&(e.getModifierState("OS")||e.getModifierState("Win"))&&(i|=8),u.altGr){if(3==(3&i))return;u.altGr=0}if(18===n||17===n){var o="location"in e?e.location:e.keyLocation;17===n&&1===o?1==u[n]&&(h=e.timeStamp):18===n&&3===i&&2===o&&e.timeStamp-h<50&&(u.altGr=!0)}}if(n in l.MODIFIER_KEYS&&(n=-1),i||13!==n||3!==(o="location"in e?e.location:e.keyLocation)||(t(e,i,-n),!e.defaultPrevented)){if(c.isChromeOS&&8&i){if(t(e,i,n),e.defaultPrevented)return;i&=-9}return!!(i||n in l.FUNCTION_KEYS||n in l.PRINTABLE_KEYS)&&t(e,i,n)}}function a(){u=Object.create(null)}var s,l=t("./keys"),c=t("./useragent"),u=null,h=0;if(e.addListener=function(t,e,n){return t.addEventListener(e,n,i())},e.removeListener=function(t,e,n){return t.removeEventListener(e,n,i())},e.stopEvent=function(t){return e.stopPropagation(t),e.preventDefault(t),!1},e.stopPropagation=function(t){t.stopPropagation&&t.stopPropagation()},e.preventDefault=function(t){t.preventDefault&&t.preventDefault()},e.getButton=function(t){return"dblclick"==t.type?0:"contextmenu"==t.type||c.isMac&&t.ctrlKey&&!t.altKey&&!t.shiftKey?2:t.button},e.capture=function(t,n,i){function r(t){n&&n(t),i&&i(t),e.removeListener(document,"mousemove",n,!0),e.removeListener(document,"mouseup",r,!0),e.removeListener(document,"dragstart",r,!0)}return e.addListener(document,"mousemove",n,!0),e.addListener(document,"mouseup",r,!0),e.addListener(document,"dragstart",r,!0),r},e.addMouseWheelListener=function(t,n){"onmousewheel"in t?e.addListener(t,"mousewheel",(function(t){void 0!==t.wheelDeltaX?(t.wheelX=-t.wheelDeltaX/8,t.wheelY=-t.wheelDeltaY/8):(t.wheelX=0,t.wheelY=-t.wheelDelta/8),n(t)})):"onwheel"in t?e.addListener(t,"wheel",(function(t){switch(t.deltaMode){case t.DOM_DELTA_PIXEL:t.wheelX=.35*t.deltaX||0,t.wheelY=.35*t.deltaY||0;break;case t.DOM_DELTA_LINE:case t.DOM_DELTA_PAGE:t.wheelX=5*(t.deltaX||0),t.wheelY=5*(t.deltaY||0)}n(t)})):e.addListener(t,"DOMMouseScroll",(function(t){t.axis&&t.axis==t.HORIZONTAL_AXIS?(t.wheelX=5*(t.detail||0),t.wheelY=0):(t.wheelX=0,t.wheelY=5*(t.detail||0)),n(t)}))},e.addMultiMouseDownListener=function(t,n,i,r){function o(t){if(0!==e.getButton(t)?u=0:1<t.detail&&!(4<++u)||(u=1),c.isIE){var o=5<Math.abs(t.clientX-a)||5<Math.abs(t.clientY-s);l&&!o||(u=1),l&&clearTimeout(l),l=setTimeout((function(){l=null}),n[u-1]||600),1==u&&(a=t.clientX,s=t.clientY)}if(t._clicks=u,i[r]("mousedown",t),4<u)u=0;else if(1<u)return i[r](h[u],t)}var a,s,l,u=0,h={2:"dblclick",3:"tripleclick",4:"quadclick"};Array.isArray(t)||(t=[t]),t.forEach((function(t){e.addListener(t,"mousedown",o)}))},e.getModifierString=function(t){return l.KEY_MODS[r(t)]},e.addCommandKeyListener=function(t,n){var i=e.addListener;if(c.isOldGecko||c.isOpera&&!("KeyboardEvent"in window)){var r=null;i(t,"keydown",(function(t){r=t.keyCode})),i(t,"keypress",(function(t){return o(n,t,r)}))}else{var s=null;i(t,"keydown",(function(t){u[t.keyCode]=(u[t.keyCode]||0)+1;var e=o(n,t,t.keyCode);return s=t.defaultPrevented,e})),i(t,"keypress",(function(t){s&&(t.ctrlKey||t.altKey||t.shiftKey||t.metaKey)&&(e.stopEvent(t),s=null)})),i(t,"keyup",(function(t){u[t.keyCode]=null})),u||(a(),i(window,"focus",a))}},"object"==typeof window&&window.postMessage&&!c.isOldIE){var d=1;e.nextTick=function(t,n){n=n||window;var i="zero-timeout-message-"+d++,r=function(o){o.data==i&&(e.stopPropagation(o),e.removeListener(n,"message",r),t())};e.addListener(n,"message",r),n.postMessage(i,"*")}}e.$idleBlocked=!1,e.onIdle=function(t,n){return setTimeout((function n(){e.$idleBlocked?setTimeout(n,100):t()}),n)},e.$idleBlockId=null,e.blockIdle=function(t){e.$idleBlockId&&clearTimeout(e.$idleBlockId),e.$idleBlocked=!0,e.$idleBlockId=setTimeout((function(){e.$idleBlocked=!1}),t||100)},e.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),e.nextFrame?e.nextFrame=e.nextFrame.bind(window):e.nextFrame=function(t){setTimeout(t,17)}})),ace.define("ace/range",["require","exports","module"],(function(t,e,n){"use strict";function i(t,e,n,i){this.start={row:t,column:e},this.end={row:n,column:i}}(function(){this.isEqual=function(t){return this.start.row===t.start.row&&this.end.row===t.end.row&&this.start.column===t.start.column&&this.end.column===t.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(t,e){return 0==this.compare(t,e)},this.compareRange=function(t){var e,n=t.end,i=t.start;return 1==(e=this.compare(n.row,n.column))?1==(e=this.compare(i.row,i.column))?2:0==e?1:0:-1==e?-2:-1==(e=this.compare(i.row,i.column))?-1:1==e?42:0},this.comparePoint=function(t){return this.compare(t.row,t.column)},this.containsRange=function(t){return 0==this.comparePoint(t.start)&&0==this.comparePoint(t.end)},this.intersects=function(t){var e=this.compareRange(t);return-1==e||0==e||1==e},this.isEnd=function(t,e){return this.end.row==t&&this.end.column==e},this.isStart=function(t,e){return this.start.row==t&&this.start.column==e},this.setStart=function(t,e){"object"==typeof t?(this.start.column=t.column,this.start.row=t.row):(this.start.row=t,this.start.column=e)},this.setEnd=function(t,e){"object"==typeof t?(this.end.column=t.column,this.end.row=t.row):(this.end.row=t,this.end.column=e)},this.inside=function(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)&&!this.isStart(t,e)},this.insideStart=function(t,e){return 0==this.compare(t,e)&&!this.isEnd(t,e)},this.insideEnd=function(t,e){return 0==this.compare(t,e)&&!this.isStart(t,e)},this.compare=function(t,e){return this.isMultiLine()||t!==this.start.row?t<this.start.row?-1:t>this.end.row?1:this.start.row===t?e>=this.start.column?0:-1:this.end.row!==t||e<=this.end.column?0:1:e<this.start.column?-1:e>this.end.column?1:0},this.compareStart=function(t,e){return this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.compareEnd=function(t,e){return this.end.row==t&&this.end.column==e?1:this.compare(t,e)},this.compareInside=function(t,e){return this.end.row==t&&this.end.column==e?1:this.start.row==t&&this.start.column==e?-1:this.compare(t,e)},this.clipRows=function(t,e){if(this.end.row>e)var n={row:e+1,column:0};else this.end.row<t&&(n={row:t,column:0});if(this.start.row>e)var r={row:e+1,column:0};else this.start.row<t&&(r={row:t,column:0});return i.fromPoints(r||this.start,n||this.end)},this.extend=function(t,e){var n=this.compare(t,e);if(0==n)return this;if(-1==n)var r={row:t,column:e};else var o={row:t,column:e};return i.fromPoints(r||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(t){var e=t.documentToScreenPosition(this.start),n=t.documentToScreenPosition(this.end);return new i(e.row,e.column,n.row,n.column)},this.moveBy=function(t,e){this.start.row+=t,this.start.column+=e,this.end.row+=t,this.end.column+=e}}).call(i.prototype),i.fromPoints=function(t,e){return new i(t.row,t.column,e.row,e.column)},i.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},i.comparePoints=function(t,e){return t.row-e.row||t.column-e.column},e.Range=i})),ace.define("ace/lib/lang",["require","exports","module"],(function(t,e,n){"use strict";e.last=function(t){return t[t.length-1]},e.stringReverse=function(t){return t.split("").reverse().join("")},e.stringRepeat=function(t,e){for(var n="";0<e;)1&e&&(n+=t),(e>>=1)&&(t+=t);return n};var i=/^\s\s*/,r=/\s\s*$/;e.stringTrimLeft=function(t){return t.replace(i,"")},e.stringTrimRight=function(t){return t.replace(r,"")},e.copyObject=function(t){var e={};for(var n in t)e[n]=t[n];return e},e.copyArray=function(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&"object"==typeof t[n]?e[n]=this.copyObject(t[n]):e[n]=t[n];return e},e.deepCopy=function t(e){if("object"!=typeof e||!e)return e;var n;if(Array.isArray(e)){n=[];for(var i=0;i<e.length;i++)n[i]=t(e[i]);return n}if("[object Object]"!==Object.prototype.toString.call(e))return e;for(var i in n={},e)n[i]=t(e[i]);return n},e.arrayToMap=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=1;return e},e.createMap=function(t){var e=Object.create(null);for(var n in t)e[n]=t[n];return e},e.arrayRemove=function(t,e){for(var n=0;n<=t.length;n++)e===t[n]&&t.splice(n,1)},e.escapeRegExp=function(t){return t.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},e.escapeHTML=function(t){return(""+t).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},e.getMatchOffsets=function(t,e){var n=[];return t.replace(e,(function(t){n.push({offset:arguments[arguments.length-2],length:t.length})})),n},e.deferredCall=function(t){function e(){n=null,t()}var n=null,i=function(t){return i.cancel(),n=setTimeout(e,t||0),i};return(i.schedule=i).call=function(){return this.cancel(),t(),i},i.cancel=function(){return clearTimeout(n),n=null,i},i.isPending=function(){return n},i},e.delayedCall=function(t,e){function n(){r=null,t()}function i(t){null==r&&(r=setTimeout(n,t||e))}var r=null;return i.delay=function(t){r&&clearTimeout(r),r=setTimeout(n,t||e)},(i.schedule=i).call=function(){this.cancel(),t()},i.cancel=function(){r&&clearTimeout(r),r=null},i.isPending=function(){return r},i}})),ace.define("ace/clipboard",["require","exports","module"],(function(t,e,n){"use strict";var i;n.exports={lineMode:!1,pasteCancelled:function(){return!!(i&&i>Date.now()-50)||(i=!1)},cancel:function(){i=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(t,e,n){"use strict";var i=t("../lib/event"),r=t("../lib/useragent"),o=t("../lib/dom"),a=t("../lib/lang"),s=t("../clipboard"),l=r.isChrome<18,c=r.isIE,u=63<r.isChrome,h=t("../lib/keys"),d=h.KEY_MODS,p=r.isIOS,f=p?/\s/:/\n/;e.TextInput=function(t,e){function n(t,n){if(N=N&&!1,I)return R(),t&&e.onPaste(t),I=!1,"";for(var i=C.selectionStart,r=C.selectionEnd,o=P,a=O.length-j,s=t,l=t.length-i,c=t.length-r,u=0;0<o&&O[u]==t[u];)u++,o--;for(s=s.slice(u),u=1;0<a&&O.length-u>P-1&&O[O.length-u]==t[t.length-u];)u++,a--;l-=u-1,c-=u-1;var h=s.length-u+1;return h<0&&(o=-h,h=0),s=s.slice(0,h),n||s||l||o||a||c?(M=!0,s&&!o&&!a&&!l&&!c||E?e.onTextInput(s):e.onTextInput(s,{extendLeft:o,extendRight:a,restoreStart:l,restoreEnd:c}),M=!1,O=t,P=i,j=r,L=c,s):""}function g(t){if(S)return V();if(t&&t.inputType){if("historyUndo"==t.inputType)return e.execCommand("undo");if("historyRedo"==t.inputType)return e.execCommand("redo")}var i=C.value,r=n(i,!0);(500<i.length||f.test(r))&&R()}function m(t,n){var r=e.getCopyText();if(!r)return i.preventDefault(t);F(t,r)?(p&&(R(r),A=r,setTimeout((function(){A=!1}),10)),n?e.onCut():e.onCopy(),i.preventDefault(t)):(A=!0,C.value=r,C.select(),setTimeout((function(){A=!1,R(),n?e.onCut():e.onCopy()})))}function v(t){m(t,!0)}function y(t){m(t,!1)}function b(t){var n=F(t);s.pasteCancelled()||("string"==typeof n?(n&&e.onPaste(n,t),r.isIE&&setTimeout(R),i.preventDefault(t)):(C.value="",I=!0))}function x(){T=!0,C.blur(),C.focus(),T=!1}function w(){clearTimeout(z),z=setTimeout((function(){k&&(C.style.cssText=k,k=""),e.renderer.$isMousePressed=!1,e.renderer.$keepTextAreaAtCursor&&e.renderer.$moveTextAreaToCursor()}),0)}function _(t){e.textInput.onContextMenu(t),w()}var C=o.createElement("textarea");C.className="ace_text-input",C.setAttribute("wrap","off"),C.setAttribute("autocorrect","off"),C.setAttribute("autocapitalize","off"),C.setAttribute("spellcheck",!1),C.style.opacity="0",t.insertBefore(C,t.firstChild);var A=!1,I=!1,S=!1,M=!1,k="";r.isMobile||(C.style.fontSize="1px");var E=!1,T=!1,O="",P=0,j=0,L=0;try{var D=document.activeElement===C}catch(t){}i.addListener(C,"blur",(function(t){T||(e.onBlur(t),D=!1)})),i.addListener(C,"focus",(function(t){if(!T){if(D=!0,r.isEdge)try{if(!document.hasFocus())return}catch(t){}e.onFocus(t),r.isEdge?setTimeout(R):R()}})),this.$focusScroll=!1,this.focus=function(){if(k||u||"browser"==this.$focusScroll)return C.focus({preventScroll:!0});var t=C.style.top;C.style.position="fixed",C.style.top="0px";try{var e=0!=C.getBoundingClientRect().top}catch(t){return}var n=[];if(e)for(var i=C.parentElement;i&&1==i.nodeType;)n.push(i),i.setAttribute("ace_nocontext",!0),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement;C.focus({preventScroll:!0}),e&&n.forEach((function(t){t.removeAttribute("ace_nocontext")})),setTimeout((function(){C.style.position="","0px"==C.style.top&&(C.style.top=t)}),0)},this.blur=function(){C.blur()},this.isFocused=function(){return D},e.on("beforeEndOperation",(function(){e.curOp&&"insertstring"==e.curOp.command.name||(S&&(O=C.value="",G()),R())}));var R=p?function(t){if(D&&(!A||t)&&!M){var n="\n ab"+(t=t||"")+"cde fg\n";n!=C.value&&(C.value=O=n);var i=4+(t.length||(e.selection.isEmpty()?0:1));4==P&&j==i||C.setSelectionRange(4,i),P=4,j=i}}:function(){if(!S&&!M&&(D||N)){S=!0;var t=e.selection,n=t.getRange(),i=t.cursor.row,r=n.start.column,o=n.end.column,a=e.session.getLine(i);if(n.start.row!=i){var s=e.session.getLine(i-1);r=n.start.row<i-1?0:r,o+=s.length+1,a=s+"\n"+a}else if(n.end.row!=i){var l=e.session.getLine(i+1);o=n.end.row>i+1?l.length:o,o+=a.length+1,a=a+"\n"+l}400<a.length&&(r<400&&o<400?a=a.slice(0,400):(a="\n",r=0,o=1));var c=a+"\n\n";if(c!=O&&(C.value=O=c,P=j=c.length),N&&(P=C.selectionStart,j=C.selectionEnd),j!=o||P!=r||C.selectionEnd!=j)try{C.setSelectionRange(r,o),P=r,j=o}catch(t){}S=!1}};D&&e.onFocus();var B=null;this.setInputHandler=function(t){B=t};var N=!(this.getInputHandler=function(){return B}),F=function(t,e,n){var i=t.clipboardData||window.clipboardData;if(i&&!l){var r=c||n?"Text":"text/plain";try{return e?!1!==i.setData(r,e):i.getData(r)}catch(t){if(!n)return F(t,e,!0)}}};i.addCommandKeyListener(C,e.onCommandKey.bind(e)),i.addListener(C,"select",(function(t){var n;S||(A?A=!1:0===(n=C).selectionStart&&n.selectionEnd>=O.length&&n.value===O&&O&&n.selectionEnd!==j&&(e.selectAll(),R()))})),i.addListener(C,"input",g),i.addListener(C,"cut",v),i.addListener(C,"copy",y),i.addListener(C,"paste",b),"oncut"in C&&"oncopy"in C&&"onpaste"in C||i.addListener(t,"keydown",(function(t){if((!r.isMac||t.metaKey)&&t.ctrlKey)switch(t.keyCode){case 67:y(t);break;case 86:b(t);break;case 88:v(t)}}));var z,V=function(){if(S&&e.onCompositionUpdate&&!e.$readOnly){if(E)return x();S.useTextareaForIME?e.onCompositionUpdate(C.value):(n(C.value),S.markerRange&&(S.context&&(S.markerRange.start.column=S.selectionStart=S.context.compositionStartOffset),S.markerRange.end.column=S.markerRange.start.column+j-S.selectionStart+L))}},G=function(t){e.onCompositionEnd&&!e.$readOnly&&(S=!1,e.onCompositionEnd(),e.off("mousedown",x),t&&g())},H=a.delayedCall(V,50).schedule.bind(null,null);i.addListener(C,"compositionstart",(function(t){if(!S&&e.onCompositionStart&&!e.$readOnly&&(S={},!E)){setTimeout(V,0),e.on("mousedown",x);var n=e.getSelectionRange();n.end.row=n.start.row,n.end.column=n.start.column,S.markerRange=n,S.selectionStart=P,e.onCompositionStart(S),S.useTextareaForIME?(C.value="",O="",j=P=0):(C.msGetInputContext&&(S.context=C.msGetInputContext()),C.getInputContext&&(S.context=C.getInputContext()))}})),i.addListener(C,"compositionupdate",V),i.addListener(C,"keyup",(function(t){27==t.keyCode&&C.value.length<C.selectionStart&&(S||(O=C.value),P=j=-1,R()),H()})),i.addListener(C,"keydown",H),i.addListener(C,"compositionend",G),this.getElement=function(){return C},this.setCommandMode=function(t){E=t,C.readOnly=!1},this.setReadOnly=function(t){E||(C.readOnly=t)},this.setCopyWithEmptySelection=function(t){},this.onContextMenu=function(t){N=!0,R(),e._emit("nativecontextmenu",{target:e,domEvent:t}),this.moveToMouse(t,!0)},this.moveToMouse=function(t,n){function a(t){o.translate(C,t.clientX-u-2,Math.min(t.clientY-c-2,h))}k=k||C.style.cssText,C.style.cssText=(n?"z-index:100000;":"")+(r.isIE?"opacity:0.1;":"")+"text-indent: -"+(P+j)*e.renderer.characterWidth*.5+"px;";var s=e.container.getBoundingClientRect(),l=o.computedStyle(e.container),c=s.top+(parseInt(l.borderTopWidth)||0),u=s.left+(parseInt(s.borderLeftWidth)||0),h=s.bottom-c-C.clientHeight-2;a(t),"mousedown"==t.type&&(e.renderer.$isMousePressed=!0,clearTimeout(z),r.isWin&&i.capture(e.container,a,w))},this.onContextMenuClose=w,i.addListener(C,"mouseup",_),i.addListener(C,"mousedown",(function(t){t.preventDefault(),w()})),i.addListener(e.renderer.scroller,"contextmenu",_),i.addListener(C,"contextmenu",_),p&&function(t,e){function n(n){if(document.activeElement===e&&!(r||S||t.$mouseHandler.isMousePressed||A)){var i=e.selectionStart,o=e.selectionEnd,a=null,s=0;if(0==i?a=h.up:1==i?a=h.home:j<o&&"\n"==O[o]?a=h.end:i<P&&" "==O[i-1]?(a=h.left,s=d.option):i<P||i==P&&j!=P&&i==o?a=h.left:j<o&&2<O.slice(0,o).split("\n").length?a=h.down:j<o&&" "==O[o-1]?(a=h.right,s=d.option):(j<o||o==j&&j!=P&&i==o)&&(a=h.right),i!==o&&(s|=d.shift),a){if(!t.onCommandKey({},s,a)&&t.commands){a=h.keyCodeToString(a);var l=t.commands.findKeyCommand(s,a);l&&t.execCommand(l)}P=i,j=o,R("")}}}var i=null,r=!1;e.addEventListener("keydown",(function(t){i&&clearTimeout(i),r=!0}),!0),e.addEventListener("keyup",(function(t){i=setTimeout((function(){r=!1}),100)}),!0),document.addEventListener("selectionchange",n),t.on("destroy",(function(){document.removeEventListener("selectionchange",n)}))}(e,C)}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(t,e,n){"use strict";function i(t){t.$clickSelection=null;var e=t.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(e){t[e]=this[e]}),this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}function r(t,e){if(t.start.row==t.end.row)var n=2*e.column-t.start.column-t.end.column;else if(t.start.row!=t.end.row-1||t.start.column||t.end.column)n=2*e.row-t.start.row-t.end.row;else n=e.column-4;return n<0?{cursor:t.start,anchor:t.end}:{cursor:t.end,anchor:t.start}}var o=t("../lib/useragent");(function(){this.onMouseDown=function(t){var e=t.inSelection(),n=t.getDocumentPosition();this.mousedownEvent=t;var i=this.editor,r=t.getButton();return 0!==r?(!i.getSelectionRange().isEmpty()&&1!=r||i.selection.moveToPosition(n),void(2==r&&(i.textInput.onContextMenu(t.domEvent),o.isMozilla||t.preventDefault()))):(this.mousedownEvent.time=Date.now(),!e||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(t),this.startSelect(n,1<t.domEvent._clicks),t.preventDefault()):(this.setState("focusWait"),void this.captureMouse(t)))},this.startSelect=function(t,e){t=t||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(t):e||n.selection.moveToPosition(t),e||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var t,e=this.editor,n=e.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var i=this.$clickSelection.comparePoint(n);if(-1==i)t=this.$clickSelection.end;else if(1==i)t=this.$clickSelection.start;else{var o=r(this.$clickSelection,n);n=o.cursor,t=o.anchor}e.selection.setSelectionAnchor(t.row,t.column)}e.selection.selectToPosition(n),e.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(t){var e,n=this.editor,i=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[t](i.row,i.column);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==a&&s<=0)e=this.$clickSelection.end,o.end.row==i.row&&o.end.column==i.column||(i=o.start);else if(1==s&&0<=a)e=this.$clickSelection.start,o.start.row==i.row&&o.start.column==i.column||(i=o.end);else if(-1==a&&1==s)i=o.end,e=o.start;else{var l=r(this.$clickSelection,i);i=l.cursor,e=l.anchor}n.selection.setSelectionAnchor(e.row,e.column)}n.selection.selectToPosition(i),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var t,e,n,i,r=(t=this.mousedownEvent.x,e=this.mousedownEvent.y,n=this.x,i=this.y,Math.sqrt(Math.pow(n-t,2)+Math.pow(i-e,2))),o=Date.now();(0<r||o-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(t){var e=t.getDocumentPosition(),n=this.editor,i=n.session.getBracketRange(e);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(t){var e=t.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var i=n.getSelectionRange();i.isMultiLine()&&i.contains(e.row,e.column)?(this.$clickSelection=n.selection.getLineRange(i.start.row),this.$clickSelection.end=n.selection.getLineRange(i.end.row).end):this.$clickSelection=n.selection.getLineRange(e.row),this.select()},this.onQuadClick=function(t){var e=this.editor;e.selectAll(),this.$clickSelection=e.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(t){if(!t.getAccelKey()){t.getShiftKey()&&t.wheelY&&!t.wheelX&&(t.wheelX=t.wheelY,t.wheelY=0);var e=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,i=t.domEvent.timeStamp,r=i-n.t,o=r?t.wheelX/r:n.vx,a=r?t.wheelY/r:n.vy;r<550&&(o=(o+n.vx)/2,a=(a+n.vy)/2);var s=Math.abs(o/a),l=!1;return 1<=s&&e.renderer.isScrollableBy(t.wheelX*t.speed,0)&&(l=!0),s<=1&&e.renderer.isScrollableBy(0,t.wheelY*t.speed)&&(l=!0),l?n.allowed=i:i-n.allowed<550&&(Math.abs(o)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=i):n.allowed=0),n.t=i,n.vx=o,n.vy=a,l?(e.renderer.scrollBy(t.wheelX*t.speed,t.wheelY*t.speed),t.stop()):void 0}}}).call(i.prototype),e.DefaultHandlers=i})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(t,e,n){"use strict";function i(t){this.isOpen=!1,this.$element=null,this.$parentNode=t}t("./lib/oop");var r=t("./lib/dom");(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(t){this.getElement().textContent=t},this.setHtml=function(t){this.getElement().innerHTML=t},this.setPosition=function(t,e){this.getElement().style.left=t+"px",this.getElement().style.top=e+"px"},this.setClassName=function(t){r.addCssClass(this.getElement(),t)},this.show=function(t,e,n){null!=t&&this.setText(t),null!=e&&null!=n&&this.setPosition(e,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(i.prototype),e.Tooltip=i})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(t,e,n){"use strict";function i(t){s.call(this,t)}var r=t("../lib/dom"),o=t("../lib/oop"),a=t("../lib/event"),s=t("../tooltip").Tooltip;o.inherits(i,s),function(){this.setPosition=function(t,e){var n=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),o=this.getHeight();n<(t+=15)+r&&(t-=t+r-n),i<(e+=15)+o&&(e-=20+o),s.prototype.setPosition.call(this,t,e)}}.call(i.prototype),e.GutterHandler=function(t){function e(){o=o&&clearTimeout(o),l&&(h.hide(),l=null,c._signal("hideGutterTooltip",h),c.removeEventListener("mousewheel",e))}function n(t){h.setPosition(t.x,t.y)}var o,s,l,c=t.editor,u=c.renderer.$gutterLayer,h=new i(c.container);t.editor.setDefaultHandler("guttermousedown",(function(e){if(c.isFocused()&&0==e.getButton()&&"foldWidgets"!=u.getRegion(e)){var n=e.getDocumentPosition().row,i=c.session.selection;if(e.getShiftKey())i.selectTo(n,0);else{if(2==e.domEvent.detail)return c.selectAll(),e.preventDefault();t.$clickSelection=c.selection.getLineRange(n)}return t.setState("selectByLines"),t.captureMouse(e),e.preventDefault()}})),t.editor.setDefaultHandler("guttermousemove",(function(i){var a=i.domEvent.target||i.domEvent.srcElement;if(r.hasCssClass(a,"ace_fold-widget"))return e();l&&t.$tooltipFollowsMouse&&n(i),s=i,o=o||setTimeout((function(){o=null,(s&&!t.isMousePressed?function(){var i=s.getDocumentPosition().row,r=u.$annotations[i];if(!r)return e();if(i==c.session.getLength()){var o=c.renderer.pixelToScreenCoordinates(0,s.y).row,a=s.$pos;if(o>c.session.documentToScreenRow(a.row,a.column))return e()}if(l!=r)if(l=r.text.join("<br/>"),h.setHtml(l),h.show(),c._signal("showGutterTooltip",h),c.on("mousewheel",e),t.$tooltipFollowsMouse)n(s);else{var d=s.domEvent.target.getBoundingClientRect(),p=h.getElement().style;p.left=d.right+"px",p.top=d.bottom+"px"}}:e)()}),50)})),a.addListener(c.renderer.$gutter,"mouseout",(function(t){s=null,l&&!o&&(o=setTimeout((function(){o=null,e()}),50))})),c.on("changeSession",e)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(t,e,n){"use strict";var i=t("../lib/event"),r=t("../lib/useragent"),o=e.MouseEvent=function(t,e){this.domEvent=t,this.editor=e,this.x=this.clientX=t.clientX,this.y=this.clientY=t.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){i.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){i.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var t=this.editor.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var e=this.getDocumentPosition();this.$inSelection=t.contains(e.row,e.column)}return this.$inSelection},this.getButton=function(){return i.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(t,e,n){"use strict";function i(t){function e(){var t,e,n,i,o,a=y;y=h.renderer.screenToTextCoordinates(f,g),t=y,e=a,n=Date.now(),i=!e||t.row!=e.row,o=!e||t.column!=e.column,!_||i||o?(h.moveCursorToPosition(t),_=n,C={x:f,y:g}):5<r(C.x,C.y,f,g)?_=null:200<=n-_&&(h.renderer.scrollCursorIntoView(),_=null),function(t,e){var n=Date.now(),i=h.renderer.layerConfig.lineHeight,r=h.renderer.layerConfig.characterWidth,o=h.renderer.scroller.getBoundingClientRect(),a={x:{left:f-o.left,right:o.right-f},y:{top:g-o.top,bottom:o.bottom-g}},s=Math.min(a.x.left,a.x.right),l=Math.min(a.y.top,a.y.bottom),c={row:t.row,column:t.column};s/r<=2&&(c.column+=a.x.left<a.x.right?-3:2),l/i<=1&&(c.row+=a.y.top<a.y.bottom?-1:1);var u=t.row!=c.row,d=t.column!=c.column,p=!e||t.row!=e.row;u||d&&!p?w?200<=n-w&&h.renderer.scrollCursorIntoView(c):w=n:w=null}(y,a)}function n(){v=h.selection.toOrientedRange(),p=h.session.addMarker(v,"ace_selection",h.getSelectionStyle()),h.clearSelection(),h.isFocused()&&h.renderer.$cursorLayer.setBlinking(!1),clearInterval(m),e(),m=setInterval(e,20),I=0,a.addListener(document,"mousemove",l)}function i(){clearInterval(m),h.session.removeMarker(p),p=null,h.selection.fromOrientedRange(v),h.isFocused()&&!x&&h.$resetCursorStyle(),I=0,_=w=y=v=null,a.removeListener(document,"mousemove",l)}function l(){null==S&&(S=setTimeout((function(){null!=S&&p&&i()}),20))}function c(t){var e=t.types;return!e||Array.prototype.some.call(e,(function(t){return"text/plain"==t||"Text"==t}))}function u(t){var e=["copy","copymove","all","uninitialized"],n=s.isMac?t.altKey:t.ctrlKey,i="uninitialized";try{i=t.dataTransfer.effectAllowed.toLowerCase()}catch(t){}var r="none";return n&&0<=e.indexOf(i)?r="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(i)?r="move":0<=e.indexOf(i)&&(r="copy"),r}var h=t.editor,d=o.createElement("img");d.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",s.isOpera&&(d.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(e){t[e]=this[e]}),this),h.addEventListener("mousedown",this.onMouseDown.bind(t));var p,f,g,m,v,y,b,x,w,_,C,A=h.container,I=0;this.onDragStart=function(t){if(this.cancelDrag||!A.draggable){var e=this;return setTimeout((function(){e.startSelect(),e.captureMouse(t)}),0),t.preventDefault()}v=h.getSelectionRange();var n=t.dataTransfer;n.effectAllowed=h.getReadOnly()?"copy":"copyMove",s.isOpera&&(h.container.appendChild(d),d.scrollTop=0),n.setDragImage&&n.setDragImage(d,0,0),s.isOpera&&h.container.removeChild(d),n.clearData(),n.setData("Text",h.session.getTextRange()),x=!0,this.setState("drag")},this.onDragEnd=function(t){if(A.draggable=!1,x=!1,this.setState(null),!h.getReadOnly()){var e=t.dataTransfer.dropEffect;b||"move"!=e||h.session.remove(h.getSelectionRange()),h.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(t){if(!h.getReadOnly()&&c(t.dataTransfer))return f=t.clientX,g=t.clientY,p||n(),I++,t.dataTransfer.dropEffect=b=u(t),a.preventDefault(t)},this.onDragOver=function(t){if(!h.getReadOnly()&&c(t.dataTransfer))return f=t.clientX,g=t.clientY,p||(n(),I++),null!==S&&(S=null),t.dataTransfer.dropEffect=b=u(t),a.preventDefault(t)},this.onDragLeave=function(t){if(--I<=0&&p)return i(),b=null,a.preventDefault(t)},this.onDrop=function(t){if(y){var e=t.dataTransfer;if(x)switch(b){case"move":v=v.contains(y.row,y.column)?{start:y,end:y}:h.moveText(v,y);break;case"copy":v=h.moveText(v,y,!0)}else{var n=e.getData("Text");v={start:y,end:h.session.insert(y,n)},h.focus(),b=null}return i(),a.preventDefault(t)}},a.addListener(A,"dragstart",this.onDragStart.bind(t)),a.addListener(A,"dragend",this.onDragEnd.bind(t)),a.addListener(A,"dragenter",this.onDragEnter.bind(t)),a.addListener(A,"dragover",this.onDragOver.bind(t)),a.addListener(A,"dragleave",this.onDragLeave.bind(t)),a.addListener(A,"drop",this.onDrop.bind(t));var S=null}function r(t,e,n,i){return Math.sqrt(Math.pow(n-t,2)+Math.pow(i-e,2))}var o=t("../lib/dom"),a=t("../lib/event"),s=t("../lib/useragent");(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(t){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var t=this.editor;t.container.draggable=!0,t.renderer.$cursorLayer.setBlinking(!1),t.setStyle("ace_dragging");var e=s.isWin?"default":"move";t.renderer.setCursorStyle(e),this.setState("dragReady")},this.onMouseDrag=function(t){var e=this.editor.container;s.isIE&&"dragReady"==this.state&&3<r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&e.dragDrop(),"dragWait"===this.state&&0<r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(t){if(this.$dragEnabled){this.mousedownEvent=t;var e=this.editor,n=t.inSelection(),i=t.getButton();if(1===(t.domEvent.detail||1)&&0===i&&n){if(t.editor.inMultiSelectMode&&(t.getAccelKey()||t.getShiftKey()))return;this.mousedownEvent.time=Date.now();var r=t.domEvent.target||t.domEvent.srcElement;"unselectable"in r&&(r.unselectable="on"),e.getDragDelay()?(s.isWebKit&&(this.cancelDrag=!0,e.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(t,this.onMouseDrag.bind(this)),t.defaultPrevented=!0}}}}).call(i.prototype),e.DragdropHandler=i})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(t,e,n){"use strict";var i=t("./mouse_event").MouseEvent,r=t("../lib/event"),o=t("../lib/dom");e.addTouchListeners=function(t,e){function n(){function t(t){var r,a,s=t.target.getAttribute("action");if("more"==s||!i)return i=!i,r=e.getCopyText(),a=e.session.getUndoManager().hasUndo(),void v.replaceChild(o.buildDom(i?["span",!r&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],r&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],r&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],n&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],a&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),v.firstChild);"paste"==s?n.readText().then((function(t){e.execCommand(s,t)})):s&&("cut"!=s&&"copy"!=s||(n?n.writeText(e.getCopyText()):document.execCommand("copy")),e.execCommand(s)),v.firstChild.style.display="none",i=!1,"openCommandPallete"!=s&&e.focus()}var n=window.navigator&&window.navigator.clipboard,i=!1;v=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(t){y="menu",t.stopPropagation(),t.preventDefault(),e.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),t(e)},onclick:t},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],e.container)}function a(){v||n();var t=e.selection.cursor,i=e.renderer.textToScreenCoordinates(t.row,t.column),r=e.container.getBoundingClientRect();v.style.top=i.pageY-r.top-3+"px",v.style.right="10px",v.style.display="",v.firstChild.style.display="none",e.on("input",s)}function s(t){v&&(v.style.display="none"),e.off("input",s)}function l(){p=null,clearTimeout(p);var t=e.selection.getRange(),n=t.contains(g.row,g.column);!t.isEmpty()&&n||(e.selection.moveToPosition(g),e.selection.selectWord()),y="wait",a()}var c,u,h,d,p,f,g,m,v,y="scroll",b=0,x=0,w=0,_=0;r.addListener(t,"contextmenu",(function(t){m&&e.textInput.getElement().focus()})),r.addListener(t,"touchstart",(function(t){var n=t.touches;if(p||1<n.length)return clearTimeout(p),p=null,h=-1,void(y="zoom");m=e.$mouseHandler.isMousePressed=!0;var r=e.renderer.layerConfig.lineHeight,o=e.renderer.layerConfig.lineHeight,a=t.timeStamp;d=a;var s=n[0],f=s.clientX,v=s.clientY;Math.abs(c-f)+Math.abs(u-v)>r&&(h=-1),c=t.clientX=f,u=t.clientY=v,w=_=0;var C=new i(t,e);if(g=C.getDocumentPosition(),a-h<500&&1==n.length&&!b)x++,t.preventDefault(),t.button=0,function(){p=null,clearTimeout(p),e.selection.moveToPosition(g);var t=2<=x?e.selection.getLineRange(g.row):e.session.getBracketRange(g);t&&!t.isEmpty()?e.selection.setRange(t):e.selection.selectWord(),y="wait"}();else{x=0;var A=e.selection.cursor,I=e.selection.isEmpty()?A:e.selection.anchor,S=e.renderer.$cursorLayer.getPixelPosition(A,!0),M=e.renderer.$cursorLayer.getPixelPosition(I,!0),k=e.renderer.scroller.getBoundingClientRect(),E=function(t,e){return(t/=o)*t+(e=e/r-.75)*e};if(t.clientX<k.left)return void(y="zoom");var T=E(t.clientX-k.left-S.left,t.clientY-k.top-S.top),O=E(t.clientX-k.left-M.left,t.clientY-k.top-M.top);T<3.5&&O<3.5&&(y=O<T?"cursor":"anchor"),y=O<3.5?"anchor":T<3.5?"cursor":"scroll",p=setTimeout(l,450)}h=a})),r.addListener(t,"touchend",(function(t){m=e.$mouseHandler.isMousePressed=!1,f&&clearInterval(f),"zoom"==y?(y="",b=0):p?(e.selection.moveToPosition(g),b=0,a()):"scroll"==y?(b+=60,f=setInterval((function(){b--<=0&&(clearInterval(f),f=null),Math.abs(w)<.01&&(w=0),Math.abs(_)<.01&&(_=0),b<20&&(w*=.9),b<20&&(_*=.9);var t=e.session.getScrollTop();e.renderer.scrollBy(10*w,10*_),t==e.session.getScrollTop()&&(b=0)}),10),t.preventDefault(),s()):a(),clearTimeout(p),p=null})),r.addListener(t,"touchmove",(function(t){p&&(clearTimeout(p),p=null);var n=t.touches;if(!(1<n.length||"zoom"==y)){var r=n[0],o=c-r.clientX,a=u-r.clientY;if("wait"==y){if(!(4<o*o+a*a))return t.preventDefault();y="cursor"}c=r.clientX,u=r.clientY,t.clientX=r.clientX,t.clientY=r.clientY;var s=t.timeStamp,l=s-d;if(d=s,"scroll"==y){var h=new i(t,e);h.speed=1,h.wheelX=o,h.wheelY=a,10*Math.abs(o)<Math.abs(a)&&(o=0),10*Math.abs(a)<Math.abs(o)&&(a=0),0!=l&&(w=o/l,_=a/l),e._emit("mousewheel",h),h.propagationStopped||(w=_=0)}else{var f=new i(t,e).getDocumentPosition();"cursor"==y?e.selection.moveCursorToPosition(f):"anchor"==y&&e.selection.setSelectionAnchor(f.row,f.column),e.renderer.scrollCursorIntoView(f),t.preventDefault()}}}))}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(t,e,n){"use strict";var i=t("./dom");e.get=function(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.onreadystatechange=function(){4===n.readyState&&e(n.responseText)},n.send(null)},e.loadScript=function(t,e){var n=i.getDocumentHead(),r=document.createElement("script");r.src=t,n.appendChild(r),r.onload=r.onreadystatechange=function(t,n){!n&&r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(r=r.onload=r.onreadystatechange=null,n||e())}},e.qualifyURL=function(t){var e=document.createElement("a");return e.href=t,e.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(t,e,n){"use strict";function i(){this.propagationStopped=!0}function r(){this.defaultPrevented=!0}var o={};o._emit=o._dispatchEvent=function(t,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[t]||[],o=this._defaultHandlers[t];if(n.length||o){"object"==typeof e&&e||(e={}),e.type||(e.type=t),e.stopPropagation||(e.stopPropagation=i),e.preventDefault||(e.preventDefault=r),n=n.slice();for(var a=0;a<n.length&&(n[a](e,this),!e.propagationStopped);a++);return o&&!e.defaultPrevented?o(e,this):void 0}},o._signal=function(t,e){var n=(this._eventRegistry||{})[t];if(n){n=n.slice();for(var i=0;i<n.length;i++)n[i](e,this)}},o.once=function(t,e){var n=this;if(this.addEventListener(t,(function i(){n.removeEventListener(t,i),e.apply(null,arguments)})),!e)return new Promise((function(t){e=t}))},o.setDefaultHandler=function(t,e){var n=this._defaultHandlers;if((n=n||(this._defaultHandlers={_disabled_:{}}))[t]){var i=n[t],r=n._disabled_[t];r||(n._disabled_[t]=r=[]),r.push(i);var o=r.indexOf(e);-1!=o&&r.splice(o,1)}n[t]=e},o.removeDefaultHandler=function(t,e){var n=this._defaultHandlers;if(n){var i=n._disabled_[t];if(n[t]==e)i&&this.setDefaultHandler(t,i.pop());else if(i){var r=i.indexOf(e);-1!=r&&i.splice(r,1)}}},o.on=o.addEventListener=function(t,e,n){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[t];return-1==(i=i||(this._eventRegistry[t]=[])).indexOf(e)&&i[n?"unshift":"push"](e),e},o.off=o.removeListener=o.removeEventListener=function(t,e){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[t];if(n){var i=n.indexOf(e);-1!==i&&n.splice(i,1)}},o.removeAllListeners=function(t){this._eventRegistry&&(this._eventRegistry[t]=[])},e.EventEmitter=o})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(t,e,n){function i(t){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function r(t,e){var n=new Error(t);n.data=e,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}function o(){this.$defaultOptions={}}var a=t("./oop"),s=t("./event_emitter").EventEmitter,l={setOptions:function(t){Object.keys(t).forEach((function(e){this.setOption(e,t[e])}),this)},getOptions:function(t){var e={};if(t)Array.isArray(t)||(e=t,t=Object.keys(e));else{var n=this.$options;t=Object.keys(n).filter((function(t){return!n[t].hidden}))}return t.forEach((function(t){e[t]=this.getOption(t)}),this),e},setOption:function(t,e){if(this["$"+t]!==e){var n=this.$options[t];if(!n)return i('misspelled option "'+t+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(t,e);n.handlesSet||(this["$"+t]=e),n&&n.set&&n.set.call(this,e)}},getOption:function(t){var e=this.$options[t];return e?e.forwardTo?this[e.forwardTo]&&this[e.forwardTo].getOption(t):e&&e.get?e.get.call(this):this["$"+t]:i('misspelled option "'+t+'"')}};(function(){a.implement(this,s),this.defineOptions=function(t,e,n){return t.$options||(this.$defaultOptions[e]=t.$options={}),Object.keys(n).forEach((function(e){var i=n[e];"string"==typeof i&&(i={forwardTo:i}),i.name||(i.name=e),"initialValue"in(t.$options[i.name]=i)&&(t["$"+i.name]=i.initialValue)})),a.implement(t,l),this},this.resetOptions=function(t){Object.keys(t.$options).forEach((function(e){var n=t.$options[e];"value"in n&&t.setOption(e,n.value)}))},this.setDefaultValue=function(t,e,n){if(!t){for(t in this.$defaultOptions)if(this.$defaultOptions[t][e])break;if(!this.$defaultOptions[t][e])return!1}var i=this.$defaultOptions[t]||(this.$defaultOptions[t]={});i[e]&&(i.forwardTo?this.setDefaultValue(i.forwardTo,e,n):i[e].value=n)},this.setDefaultValues=function(t,e){Object.keys(e).forEach((function(n){this.setDefaultValue(t,n,e[n])}),this)},this.warn=i,this.reportError=r}).call(o.prototype),e.AppConfig=o})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(t,e,i){function r(r){if(l&&l.document){c.packaged=r||t.packaged||i.packaged||l.define&&n(23).packaged;for(var o={},a="",s=document.currentScript||document._currentScript,u=(s&&s.ownerDocument||document).getElementsByTagName("script"),h=0;h<u.length;h++){var d=u[h],p=d.src||d.getAttribute("src");if(p){for(var f=d.attributes,g=0,m=f.length;g<m;g++){var v=f[g];0===v.name.indexOf("data-ace-")&&(o[v.name.replace(/^data-ace-/,"").replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))]=v.value)}var y=p.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);y&&(a=y[1])}}for(var b in a&&(o.base=o.base||a,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base,o)void 0!==o[b]&&e.set(b,o[b])}}var o=t("./lib/lang"),a=(t("./lib/oop"),t("./lib/net")),s=t("./lib/app_config").AppConfig;i.exports=e=new s;var l=function(){return this||"undefined"!=typeof window&&window}(),c={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1};e.get=function(t){if(!c.hasOwnProperty(t))throw new Error("Unknown config key: "+t);return c[t]},e.set=function(t,e){if(c.hasOwnProperty(t))c[t]=e;else if(0==this.setDefaultValue("",t,e))throw new Error("Unknown config key: "+t)},e.all=function(){return o.copyObject(c)},e.$modes={},e.moduleUrl=function(t,e){if(c.$moduleUrls[t])return c.$moduleUrls[t];var n=t.split("/"),i="snippets"==(e=e||n[n.length-2]||"")?"/":"-",r=n[n.length-1];if("worker"==e&&"-"==i){var o=new RegExp("^"+e+"[\\-_]|[\\-_]"+e+"$","g");r=r.replace(o,"")}(!r||r==e)&&1<n.length&&(r=n[n.length-2]);var a=c[e+"Path"];return null==a?a=c.basePath:"/"==i&&(e=i=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+e+i+r+this.get("suffix")},e.setModuleUrl=function(t,e){return c.$moduleUrls[t]=e},e.$loading={},e.loadModule=function(n,i){function r(){t([n],(function(t){e._emit("load.module",{name:n,module:t});var i=e.$loading[n];e.$loading[n]=null,i.forEach((function(e){e&&e(t)}))}))}var o,s;Array.isArray(n)&&(s=n[0],n=n[1]);try{o=t(n)}catch(i){}if(o&&!e.$loading[n])return i&&i(o);if(e.$loading[n]||(e.$loading[n]=[]),e.$loading[n].push(i),!(1<e.$loading[n].length)){if(!e.get("packaged"))return r();a.loadScript(e.moduleUrl(n,s),r),u()}};var u=function(){c.basePath||c.workerPath||c.modePath||c.themePath||Object.keys(c.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};r(!0),e.init=r,e.version="1.4.8"})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],(function(t,e,n){"use strict";function i(t){function e(e){document.hasFocus&&document.hasFocus()&&(t.isFocused()||document.activeElement!=(t.textInput&&t.textInput.getElement()))||window.focus(),t.focus()}var n=this;this.editor=t,new a(this),new s(this),new c(this);var i=t.renderer.getMouseEventTarget();r.addListener(i,"click",this.onMouseEvent.bind(this,"click")),r.addListener(i,"mousemove",this.onMouseMove.bind(this,"mousemove")),r.addMultiMouseDownListener([i,t.renderer.scrollBarV&&t.renderer.scrollBarV.inner,t.renderer.scrollBarH&&t.renderer.scrollBarH.inner,t.textInput&&t.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),r.addMouseWheelListener(t.container,this.onMouseWheel.bind(this,"mousewheel")),u(t.container,t);var l=t.renderer.$gutter;r.addListener(l,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),r.addListener(l,"click",this.onMouseEvent.bind(this,"gutterclick")),r.addListener(l,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),r.addListener(l,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),r.addListener(i,"mousedown",e),r.addListener(l,"mousedown",e),o.isIE&&t.renderer.scrollBarV&&(r.addListener(t.renderer.scrollBarV.element,"mousedown",e),r.addListener(t.renderer.scrollBarH.element,"mousedown",e)),t.on("mousemove",(function(e){if(!n.state&&!n.$dragDelay&&n.$dragEnabled){var i=t.renderer.screenToTextCoordinates(e.x,e.y),r=t.session.selection.getRange(),o=t.renderer;!r.isEmpty()&&r.insideStart(i.row,i.column)?o.setCursorStyle("default"):o.setCursorStyle("")}}))}var r=t("../lib/event"),o=t("../lib/useragent"),a=t("./default_handlers").DefaultHandlers,s=t("./default_gutter_handler").GutterHandler,l=t("./mouse_event").MouseEvent,c=t("./dragdrop_handler").DragdropHandler,u=t("./touch_handler").addTouchListeners,h=t("../config");(function(){this.onMouseEvent=function(t,e){this.editor._emit(t,new l(e,this.editor))},this.onMouseMove=function(t,e){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(t,new l(e,this.editor))},this.onMouseWheel=function(t,e){var n=new l(e,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=e.wheelX,n.wheelY=e.wheelY,this.editor._emit(t,n)},this.setState=function(t){this.state=t},this.captureMouse=function(t,e){function n(t){if(t){if(o.isWebKit&&!t.which&&c.releaseMouse)return c.releaseMouse();c.x=t.clientX,c.y=t.clientY,e&&e(t),c.mouseEvent=new l(t,c.editor),c.$mouseMoved=!0}}function i(t){a.off("beforeEndOperation",h),clearInterval(d),u(),c[c.state+"End"]&&c[c.state+"End"](t),c.state="",c.isMousePressed=s.$isMousePressed=!1,s.$keepTextAreaAtCursor&&s.$moveTextAreaToCursor(),c.$onCaptureMouseMove=c.releaseMouse=null,t&&c.onMouseEvent("mouseup",t),a.endOperation()}this.x=t.x,this.y=t.y,this.isMousePressed=!0;var a=this.editor,s=this.editor.renderer;s.$isMousePressed=!0;var c=this,u=function(){c[c.state]&&c[c.state](),c.$mouseMoved=!1};if(o.isOldIE&&"dblclick"==t.domEvent.type)return setTimeout((function(){i(t)}));var h=function(t){c.releaseMouse&&a.curOp.command.name&&a.curOp.selectionChanged&&(c[c.state+"End"]&&c[c.state+"End"](),c.state="",c.releaseMouse())};a.on("beforeEndOperation",h),a.startOperation({command:{name:"mouse"}}),c.$onCaptureMouseMove=n,c.releaseMouse=r.capture(this.editor.container,n,i);var d=setInterval(u,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var t=function(e){e&&e.domEvent&&"contextmenu"!=e.domEvent.type||(this.editor.off("nativecontextmenu",t),e&&e.domEvent&&r.stopEvent(e.domEvent))}.bind(this);setTimeout(t,10),this.editor.on("nativecontextmenu",t)}}).call(i.prototype),h.defineOptions(i.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:o.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),e.MouseHandler=i})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(t,e,n){"use strict";var i=t("../lib/dom");e.FoldHandler=function(t){t.on("click",(function(e){var n=e.getDocumentPosition(),r=t.session,o=r.getFoldAt(n.row,n.column,1);o&&(e.getAccelKey()?r.removeFold(o):r.expandFold(o),e.stop());var a=e.domEvent&&e.domEvent.target;a&&i.hasCssClass(a,"ace_inline_button")&&i.hasCssClass(a,"ace_toggle_wrap")&&(r.setOption("wrap",!r.getUseWrapMode()),t.renderer.scrollCursorIntoView())})),t.on("gutterclick",(function(e){if("foldWidgets"==t.renderer.$gutterLayer.getRegion(e)){var n=e.getDocumentPosition().row,i=t.session;i.foldWidgets&&i.foldWidgets[n]&&t.session.onFoldWidgetClick(n,e),t.isFocused()||t.focus(),e.stop()}})),t.on("gutterdblclick",(function(e){if("foldWidgets"==t.renderer.$gutterLayer.getRegion(e)){var n=e.getDocumentPosition().row,i=t.session,r=i.getParentFoldRangeData(n,!0),o=r.range||r.firstRange;if(o){n=o.start.row;var a=i.getFoldAt(n,i.getLine(n).length,1);a?i.removeFold(a):(i.addFold("...",o),t.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}e.stop()}}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(t,e,n){"use strict";function i(t){this.$editor=t,this.$data={editor:t},this.$handlers=[],this.setDefaultHandler(t.commands)}var r=t("../lib/keys"),o=t("../lib/event");(function(){this.setDefaultHandler=function(t){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=t,this.addKeyboardHandler(t,0)},this.setKeyboardHandler=function(t){var e=this.$handlers;if(e[e.length-1]!=t){for(;e[e.length-1]&&e[e.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(e[e.length-1]);this.addKeyboardHandler(t,1)}},this.addKeyboardHandler=function(t,e){if(t){"function"!=typeof t||t.handleKeyboard||(t.handleKeyboard=t);var n=this.$handlers.indexOf(t);-1!=n&&this.$handlers.splice(n,1),null==e?this.$handlers.push(t):this.$handlers.splice(e,0,t),-1==n&&t.attach&&t.attach(this.$editor)}},this.removeKeyboardHandler=function(t){var e=this.$handlers.indexOf(t);return-1!=e&&(this.$handlers.splice(e,1),t.detach&&t.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var t=this.$data,e=t.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(e,t)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(t,e,n,i){for(var r,a=!1,s=this.$editor.commands,l=this.$handlers.length;l--&&!((r=this.$handlers[l].handleKeyboard(this.$data,t,e,n,i))&&r.command&&((a="null"==r.command||s.exec(r.command,this.$editor,r.args,i))&&i&&-1!=t&&1!=r.passEvent&&1!=r.command.passEvent&&o.stopEvent(i),a)););return a||-1!=t||(r={command:"insertstring"},a=s.exec("insertstring",this.$editor,e)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",r),a},this.onCommandKey=function(t,e,n){var i=r.keyCodeToString(n);return this.$callKeyboardHandlers(e,i,n,t)},this.onTextInput=function(t){return this.$callKeyboardHandlers(-1,t)}}).call(i.prototype),e.KeyBinding=i})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(t,e,n){"use strict";function i(t,e,n){if(!(s<t))if(1!=t||1!=a||c)for(var i,r,o,l,u=n.length,h=0;h<u;){if(e[h]>=t){for(i=h+1;i<u&&e[i]>=t;)i++;for(r=h,o=i-1;r<o;r++,o--)l=n[r],n[r]=n[o],n[o]=l;h=i}h++}else n.reverse()}function r(t,e,n,i){var r,o,s,h,d=e[i];switch(d){case p:case f:l=!1;case v:case m:return d;case g:return l?m:g;case x:return l=!0,f;case w:return v;case _:return i<1||i+1>=e.length||(r=n[i-1])!=g&&r!=m||(o=e[i+1])!=g&&o!=m?v:(l&&(o=m),o==r?o:v);case C:return(r=0<i?n[i-1]:y)==g&&i+1<e.length&&e[i+1]==g?g:v;case A:if(0<i&&n[i-1]==g)return g;if(l)return v;for(h=i+1,s=e.length;h<s&&e[h]==A;)h++;return h<s&&e[h]==g?g:v;case I:for(s=e.length,h=i+1;h<s&&e[h]==I;)h++;if(h<s){var P=t[i],j=1425<=P&&P<=2303||64286==P;if(r=e[h],j&&(r==f||r==x))return f}return i<1||(r=e[i-1])==y?v:n[i-1];case y:return c=!(l=!1),a;case b:return u=!0,v;case S:case M:case E:case T:case k:l=!1;case O:return v}}function o(t){var e=t.charCodeAt(0),n=e>>8;return 0==n?191<e?p:P[e]:5==n?/[\u0591-\u05f4]/.test(t)?f:p:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(t)?I:/[\u0660-\u0669\u066b-\u066c]/.test(t)?m:1642==e?A:/[\u06f0-\u06f9]/.test(t)?g:x:32==n&&e<=8287?j[255&e]:254==n&&65136<=e?x:v}var a=0,s=0,l=!1,c=!1,u=!1,h=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],p=0,f=1,g=2,m=3,v=4,y=5,b=6,x=7,w=8,_=9,C=10,A=11,I=12,S=13,M=14,k=15,E=16,T=17,O=18,P=[O,O,O,O,O,O,O,O,O,b,y,b,w,y,O,O,O,O,O,O,O,O,O,O,O,O,O,O,y,y,y,b,w,v,v,A,A,A,v,v,v,v,v,C,_,C,_,_,g,g,g,g,g,g,g,g,g,g,_,v,v,v,v,v,v,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,v,v,v,v,v,v,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,v,v,v,v,O,O,O,O,O,O,y,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,O,_,v,A,A,A,A,v,v,v,v,p,v,v,O,v,v,A,A,g,g,v,p,v,v,v,g,p,v,v,v,v,v],j=[w,w,w,w,w,w,w,w,w,w,w,O,O,O,p,f,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,w,y,S,M,k,E,T,_,A,A,A,A,A,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,_,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,w];e.L=p,e.R=f,e.EN=g,e.ON_R=3,e.AN=4,e.R_H=5,e.B=6,e.RLE=7,e.DOT="·",e.doBidiReorder=function(t,n,p){if(t.length<2)return{};var g=t.split(""),_=new Array(g.length),C=new Array(g.length),A=[];a=p?1:0,function(t,e,n,i){var p=a?d:h,f=null,g=null,m=null,v=0,x=null,_=-1,C=null,A=null,I=[];if(!i)for(C=0,i=[];C<n;C++)i[C]=o(t[C]);for(s=a,u=c=l=!1,A=0;A<n;A++){if(f=v,I[A]=g=r(t,i,I,A),x=240&(v=p[f][g]),v&=15,e[A]=m=p[v][5],0<x)if(16==x){for(C=_;C<A;C++)e[C]=1;_=-1}else _=-1;if(p[v][6])-1==_&&(_=A);else if(-1<_){for(C=_;C<A;C++)e[C]=m;_=-1}i[A]==y&&(e[A]=0),s|=m}if(u)for(C=0;C<n;C++)if(i[C]==b){e[C]=a;for(var S=C-1;0<=S&&i[S]==w;S--)e[S]=a}}(g,A,g.length,n);for(var I=0;I<_.length;_[I]=I,I++);for(i(2,A,_),i(1,A,_),I=0;I<_.length-1;I++)n[I]===m?A[I]=e.AN:A[I]===f&&(n[I]>x&&n[I]<S||n[I]===v||n[I]===O)?A[I]=e.ON_R:0<I&&"ل"===g[I-1]&&/\u0622|\u0623|\u0625|\u0627/.test(g[I])&&(A[I-1]=A[I]=e.R_H,I++);for(g[g.length-1]===e.DOT&&(A[g.length-1]=e.B),"‫"===g[0]&&(A[0]=e.RLE),I=0;I<_.length;I++)C[I]=A[_[I]];return{logicalFromVisual:_,bidiLevels:C}},e.hasBidiCharacters=function(t,e){for(var n=!1,i=0;i<t.length;i++)e[i]=o(t.charAt(i)),n||e[i]!=f&&e[i]!=x&&e[i]!=m||(n=!0);return n},e.getVisualFromLogicalIdx=function(t,e){for(var n=0;n<e.logicalFromVisual.length;n++)if(e.logicalFromVisual[n]==t)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(t,e,n){"use strict";function i(t){this.session=t,this.bidiMap={},this.currentRow=null,this.bidiUtil=r,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=a.test(t.getValue())}var r=t("./lib/bidiutil"),o=t("./lib/lang"),a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/;(function(){this.isBidiRow=function(t,e,n){return!!this.seenBidi&&(t!==this.currentRow&&(this.currentRow=t,this.updateRowLine(e,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(t){this.seenBidi?this.currentRow=null:"insert"==t.action&&a.test(t.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var t=0,e=this.session.$screenRowCache;if(e.length){var n=this.session.$getRowCacheIndex(e,this.currentRow);0<=n&&(t=this.session.$docRowCache[n])}return t},this.getSplitIndex=function(){var t=0,e=this.session.$screenRowCache;if(e.length)for(var n,i=this.session.$getRowCacheIndex(e,this.currentRow);0<this.currentRow-t&&(n=this.session.$getRowCacheIndex(e,this.currentRow-t-1))===i;)i=n,t++;else t=this.currentRow;return t},this.updateRowLine=function(t,e){void 0===t&&(t=this.getDocumentRow());var n=t===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(t),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[t];i&&(void 0===e&&(e=this.getSplitIndex()),0<e&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=e<i.length?this.line.substring(i[e-1],i[e]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[e])),e==i.length&&(this.line+=this.showInvisibles?n:r.DOT)}else this.line+=this.showInvisibles?n:r.DOT;var a,s=this.session,l=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(t,e){return"\t"===t||s.isFullWidth(t.charCodeAt(0))?(a="\t"===t?s.getScreenTabSize(e+l):2,l+=a-1,o.stringRepeat(r.DOT,a)):t})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==r.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},this.updateBidiMap=function(){var t=[];r.hasBidiCharacters(this.line,t)||this.isRtlDir?this.bidiMap=r.doBidiReorder(this.line,t,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(t){if(this.characterWidth!==t.$characterSize.width){this.fontMetrics=t;var e=this.characterWidth=t.$characterSize.width,n=t.$measureCharWidth("ה");this.charWidths[r.L]=this.charWidths[r.EN]=this.charWidths[r.ON_R]=e,this.charWidths[r.R]=this.charWidths[r.AN]=n,this.charWidths[r.R_H]=.45*n,this.charWidths[r.B]=this.charWidths[r.RLE]=0,this.currentRow=null}},this.setShowInvisibles=function(t){this.showInvisibles=t,this.currentRow=null},this.setEolChar=function(t){this.EOL=t},this.setContentWidth=function(t){this.contentWidth=t},this.isRtlLine=function(t){return!!this.$isRtl||(null!=t?this.session.getLine(t).charAt(0)==this.RLE:this.isRtlDir)},this.setRtlDirection=function(t,e){for(var n=t.getCursorPosition(),i=t.selection.getSelectionAnchor().row;i<=n.row;i++)e||t.session.getLine(i).charAt(0)!==t.session.$bidiHandler.RLE?e&&t.session.getLine(i).charAt(0)!==t.session.$bidiHandler.RLE&&t.session.doc.insert({column:0,row:i},t.session.$bidiHandler.RLE):t.session.doc.removeInLine(i,0,1)},this.getPosLeft=function(t){t-=this.wrapIndent;var e=this.line.charAt(0)===this.RLE?1:0,n=e<t?this.session.getOverwrite()?t:t-1:e,i=r.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&t<=e&&o[i]%2!=0&&i++;for(var s=0;s<i;s++)a+=this.charWidths[o[s]];return!this.session.getOverwrite()&&e<t&&o[i]%2==0&&(a+=this.charWidths[o[i]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},this.getSelections=function(t,e){var n,i=this.bidiMap,r=i.bidiLevels,o=[],a=0,s=Math.min(t,e)-this.wrapIndent,l=Math.max(t,e)-this.wrapIndent,c=!1,u=!1,h=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,p=0;p<r.length;p++)d=i.logicalFromVisual[p],n=r[p],(c=s<=d&&d<l)&&!u?h=a:!c&&u&&o.push({left:h,width:a-h}),a+=this.charWidths[n],u=c;if(c&&p===r.length&&o.push({left:h,width:a-h}),this.isRtlDir)for(var f=0;f<o.length;f++)o[f].left+=this.rtlLineOffset;return o},this.offsetToCol=function(t){this.isRtlDir&&(t-=this.rtlLineOffset);var e=0,n=(t=Math.max(t,0),0),i=0,r=this.bidiMap.bidiLevels,o=this.charWidths[r[i]];for(this.wrapIndent&&(t-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);n+o/2<t;){if(n+=o,i===r.length-1){o=0;break}o=this.charWidths[r[++i]]}return 0===(e=0<i&&r[i-1]%2!=0&&r[i]%2==0?(t<n&&i--,this.bidiMap.logicalFromVisual[i]):0<i&&r[i-1]%2==0&&r[i]%2!=0?1+(n<t?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===r.length-1&&0===o&&r[i-1]%2==0||!this.isRtlDir&&0===i&&r[i]%2!=0?1+this.bidiMap.logicalFromVisual[i]:(0<i&&r[i-1]%2!=0&&0!==o&&i--,this.bidiMap.logicalFromVisual[i]))&&this.isRtlDir&&e++,e+this.wrapIndent}}).call(i.prototype),e.BidiHandler=i})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(t,e,n){"use strict";function i(t){this.session=t,this.doc=t.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var e=this;this.cursor.on("change",(function(t){e.$cursorChanged=!0,e.$silent||e._emit("changeCursor"),e.$isEmpty||e.$silent||e._emit("changeSelection"),e.$keepDesiredColumnOnChange||t.old.column==t.value.column||(e.$desiredColumn=null)})),this.anchor.on("change",(function(){e.$anchorChanged=!0,e.$isEmpty||e.$silent||e._emit("changeSelection")}))}var r=t("./lib/oop"),o=t("./lib/lang"),a=t("./lib/event_emitter").EventEmitter,s=t("./range").Range;(function(){r.implement(this,a),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(t,e){this.$isEmpty=!1,this.anchor.setPosition(t,e)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var t=this.anchor,e=this.lead;return t.row>e.row||t.row==e.row&&t.column>e.column},this.getRange=function(){var t=this.anchor,e=this.lead;return this.$isEmpty?s.fromPoints(e,e):this.isBackwards()?s.fromPoints(e,t):s.fromPoints(t,e)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(t,e){var n=e?t.end:t.start,i=e?t.start:t.end;this.$setSelection(n.row,n.column,i.row,i.column)},this.$setSelection=function(t,e,n,i){if(!this.$silent){var r=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(t,e),this.cursor.setPosition(n,i),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||r!=this.$isEmpty||o)&&this._emit("changeSelection")}},this.$moveSelection=function(t){var e=this.lead;this.$isEmpty&&this.setSelectionAnchor(e.row,e.column),t.call(this)},this.selectTo=function(t,e){this.$moveSelection((function(){this.moveCursorTo(t,e)}))},this.selectToPosition=function(t){this.$moveSelection((function(){this.moveCursorToPosition(t)}))},this.moveTo=function(t,e){this.clearSelection(),this.moveCursorTo(t,e)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,e){if(void 0===e){var n=t||this.lead;t=n.row,e=n.column}return this.session.getWordRange(t,e)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),e=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(e)},this.getLineRange=function(t,e){var n,i="number"==typeof t?t:this.lead.row,r=this.session.getFoldLine(i);return n=r?(i=r.start.row,r.end.row):i,!0===e?new s(i,0,n,this.session.getLine(n).length):new s(i,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,e,n){var i=t.column,r=t.column+e;return n<0&&(i=t.column-e,r=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(i,r).split(" ").length-1==e},this.moveCursorLeft=function(){var t,e=this.lead.getPosition();if(t=this.session.getFoldAt(e.row,e.column,-1))this.moveCursorTo(t.start.row,t.start.column);else if(0===e.column)0<e.row&&this.moveCursorTo(e.row-1,this.doc.getLine(e.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(e,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t,e=this.lead.getPosition();if(t=this.session.getFoldAt(e.row,e.column,1))this.moveCursorTo(t.end.row,t.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();e=this.lead,this.wouldMoveIntoSoftTab(e,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var t=this.lead.row,e=this.lead.column,n=this.session.documentToScreenRow(t,e),i=this.session.screenToDocumentPosition(n,0),r=this.session.getDisplayLine(t,null,i.row,i.column).match(/^\s*/);r[0].length==e||this.session.$useEmacsStyleLineStart||(i.column+=r[0].length),this.moveCursorToPosition(i)},this.moveCursorLineEnd=function(){var t=this.lead,e=this.session.getDocumentLastRowColumnPosition(t.row,t.column);if(this.lead.column==e.column){var n=this.session.getLine(e.row);if(e.column==n.length){var i=n.search(/\s+$/);0<i&&(e.column=i)}}this.moveCursorTo(e.row,e.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,e=this.doc.getLine(t).length;this.moveCursorTo(t,e)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,e=this.lead.column,n=this.doc.getLine(t),i=n.substring(e);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var r=this.session.getFoldAt(t,e,1);if(r)this.moveCursorTo(r.end.row,r.end.column);else{if(this.session.nonTokenRe.exec(i)&&(e+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=n.substring(e)),e>=n.length)return this.moveCursorTo(t,n.length),this.moveCursorRight(),void(t<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(i)&&(e+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,e)}},this.moveCursorLongWordLeft=function(){var t,e=this.lead.row,n=this.lead.column;if(t=this.session.getFoldAt(e,n,-1))this.moveCursorTo(t.start.row,t.start.column);else{var i=this.session.getFoldStringAt(e,n,-1);null==i&&(i=this.doc.getLine(e).substring(0,n));var r=o.stringReverse(i);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(r)&&(n-=this.session.nonTokenRe.lastIndex,r=r.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(e,0),this.moveCursorLeft(),void(0<e&&this.moveCursorWordLeft());this.session.tokenRe.exec(r)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,n)}},this.$shortWordEndIndex=function(t){var e,n=0,i=/\s/,r=this.session.tokenRe;if(r.lastIndex=0,this.session.tokenRe.exec(t))n=this.session.tokenRe.lastIndex;else{for(;(e=t[n])&&i.test(e);)n++;if(n<1)for(r.lastIndex=0;(e=t[n])&&!r.test(e);)if(r.lastIndex=0,n++,i.test(e)){if(2<n){n--;break}for(;(e=t[n])&&i.test(e);)n++;if(2<n)break}}return r.lastIndex=0,n},this.moveCursorShortWordRight=function(){var t=this.lead.row,e=this.lead.column,n=this.doc.getLine(t),i=n.substring(e),r=this.session.getFoldAt(t,e,1);if(r)return this.moveCursorTo(r.end.row,r.end.column);if(e==n.length){for(var o=this.doc.getLength();t++,i=this.doc.getLine(t),t<o&&/^\s*$/.test(i););/^\s+/.test(i)||(i=""),e=0}var a=this.$shortWordEndIndex(i);this.moveCursorTo(t,e+a)},this.moveCursorShortWordLeft=function(){var t,e=this.lead.row,n=this.lead.column;if(t=this.session.getFoldAt(e,n,-1))return this.moveCursorTo(t.start.row,t.start.column);var i=this.session.getLine(e).substring(0,n);if(0===n){for(;e--,i=this.doc.getLine(e),0<e&&/^\s*$/.test(i););n=i.length,/\s+$/.test(i)||(i="")}var r=o.stringReverse(i),a=this.$shortWordEndIndex(r);return this.moveCursorTo(e,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,e){var n,i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===e&&(0!==t&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),0!=t&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var r=this.session.lineWidgets[this.lead.row];t<0?t-=r.rowsAbove||0:0<t&&(t+=r.rowCount-(r.rowsAbove||0))}var o=this.session.screenToDocumentPosition(i.row+t,i.column,n);0!==t&&0===e&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+e,0===e)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,e,n){var i=this.session.getFoldAt(t,e,1);i&&(t=i.start.row,e=i.start.column),this.$keepDesiredColumnOnChange=!0;var r=this.session.getLine(t);/[\uDC00-\uDFFF]/.test(r.charAt(e))&&r.charAt(e-1)&&(this.lead.row==t&&this.lead.column==e+1?--e:e+=1),this.lead.setPosition(t,e),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,e,n){var i=this.session.screenToDocumentPosition(t,e);this.moveCursorTo(i.row,i.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var e=this.getRange();return t?(t.start.column=e.start.column,t.start.row=e.start.row,t.end.column=e.end.column,t.end.row=e.end.row):t=e,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var e=this.getCursor();try{t(this);var n=this.getCursor();return s.fromPoints(e,n)}catch(t){return s.fromPoints(e,e)}finally{this.moveCursorToPosition(e)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map((function(t){var e=t.clone();return e.isBackwards=t.cursor==t.start,e}));else(t=this.getRange()).isBackwards=this.isBackwards();return t},this.fromJSON=function(t){if(null==t.start){if(this.rangeList&&1<t.length){this.toSingleRange(t[0]);for(var e=t.length;e--;){var n=s.fromPoints(t[e].start,t[e].end);t[e].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}t=t[0]}this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var e=this.ranges.length;e--;)if(!this.ranges[e].isEqual(t[e]))return!1;return!0}}).call(i.prototype),e.Selection=i})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(t,e,n){"use strict";function i(t){for(var e in this.states=t,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[e],i=[],r=0,o=this.matchMappings[e]={defaultToken:"text"},a="g",s=[],l=0;l<n.length;l++){var c=n[l];if(c.defaultToken&&(o.defaultToken=c.defaultToken),c.caseInsensitive&&(a="gi"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var u=c.regex,h=new RegExp("(?:("+u+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==h?c.token=c.token[0]:h-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:h-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"!=typeof c.token||c.onMatch||(c.onMatch=1<h?this.$applyToken:c.token),1<h&&(u=/\\\d/.test(c.regex)?c.regex.replace(/\\([0-9]+)/g,(function(t,e){return"\\"+(parseInt(e,10)+r+1)})):(h=1,this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||s.push(c)),o[r]=l,r+=h,i.push(u),c.onMatch||(c.onMatch=null)}}i.length||(o[0]=0,i.push("$")),s.forEach((function(t){t.splitRegex=this.createSplitterRegexp(t.regex,a)}),this),this.regExps[e]=new RegExp("("+i.join(")|(")+")|($)",a)}}var r=t("./config"),o=2e3;(function(){this.$setMaxTokenCount=function(t){o=0|t},this.$applyToken=function(t){var e=this.splitRegex.exec(t).slice(1),n=this.token.apply(this,e);if("string"==typeof n)return[{type:n,value:t}];for(var i=[],r=0,o=n.length;r<o;r++)e[r]&&(i[i.length]={type:n[r],value:e[r]});return i},this.$arrayTokens=function(t){if(!t)return[];var e=this.splitRegex.exec(t);if(!e)return"text";for(var n=[],i=this.tokenArray,r=0,o=i.length;r<o;r++)e[r+1]&&(n[n.length]={type:i[r],value:e[r+1]});return n},this.removeCapturingGroups=function(t){return t.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!]|(\()/g,(function(t,e){return e?"(?:":t}))},this.createSplitterRegexp=function(t,e){if(-1!=t.indexOf("(?=")){var n=0,i=!1,r={};t.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(t,e,o,a,s,l){return i?i="]"!=s:s?i=!0:a?(n==r.stack&&(r.end=l+1,r.stack=-1),n--):o&&(n++,1!=o.length&&(r.stack=n,r.start=l)),t})),null!=r.end&&/^\)*$/.test(t.substr(r.end))&&(t=t.substring(0,r.start)+t.substr(r.end))}return"^"!=t.charAt(0)&&(t="^"+t),"$"!=t.charAt(t.length-1)&&(t+="$"),new RegExp(t,(e||"").replace("g",""))},this.getLineTokens=function(t,e){if(e&&"string"!=typeof e)"#tmp"===(e=(n=e.slice(0))[0])&&(n.shift(),e=n.shift());else var n=[];var i=e||"start",r=this.states[i];r||(i="start",r=this.states[i]);for(var a,s=this.matchMappings[i],l=this.regExps[i],c=[],u=l.lastIndex=0,h=0,d={type:null,value:""};a=l.exec(t);){var p=s.defaultToken,f=null,g=a[0],m=l.lastIndex;if(m-g.length>u){var v=t.substring(u,m-g.length);d.type==p?d.value+=v:(d.type&&c.push(d),d={type:p,value:v})}for(var y=0;y<a.length-2;y++)if(void 0!==a[y+1]){p=(f=r[s[y]]).onMatch?f.onMatch(g,i,n,t):f.token,f.next&&(i="string"==typeof f.next?f.next:f.next(i,n),(r=this.states[i])||(this.reportError("state doesn't exist",i),i="start",r=this.states[i]),s=this.matchMappings[i],u=m,(l=this.regExps[i]).lastIndex=m),f.consumeLineEnd&&(u=m);break}if(g)if("string"==typeof p)f&&!1===f.merge||d.type!==p?(d.type&&c.push(d),d={type:p,value:g}):d.value+=g;else if(p)for(d.type&&c.push(d),d={type:null,value:""},y=0;y<p.length;y++)c.push(p[y]);if(u==t.length)break;if(u=m,h++>o){for(h>2*t.length&&this.reportError("infinite loop with in ace tokenizer",{startState:e,line:t});u<t.length;)d.type&&c.push(d),d={value:t.substring(u,u+=500),type:"overflow"};i="start",n=[];break}}return d.type&&c.push(d),1<n.length&&n[0]!==i&&n.unshift("#tmp",i),{tokens:c,state:n.length?n:i}},this.reportError=r.reportError}).call(i.prototype),e.Tokenizer=i})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(t,e,n){"use strict";function i(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}}var r=t("../lib/lang");(function(){function t(t,e){return"start"==t&&!e.length||e.unshift(this.nextState,t),this.nextState}function e(t,e){return e.shift(),e.shift()||"start"}this.addRules=function(t,e){if(e)for(var n in t){for(var i=t[n],r=0;r<i.length;r++){var o=i[r];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(e)&&(o.next=e+o.next),o.nextState&&0!==o.nextState.indexOf(e)&&(o.nextState=e+o.nextState))}this.$rules[e+n]=i}else for(var n in t)this.$rules[n]=t[n]},this.getRules=function(){return this.$rules},this.embedRules=function(t,e,n,i,o){var a="function"==typeof t?(new t).getRules():t;if(i)for(var s=0;s<i.length;s++)i[s]=e+i[s];else for(var l in i=[],a)i.push(e+l);if(this.addRules(a,e),n){var c=Array.prototype[o?"push":"unshift"];for(s=0;s<i.length;s++)c.apply(this.$rules[i[s]],r.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(e)},this.getEmbeds=function(){return this.$embeds},this.normalizeRules=function(){var n=0,i=this.$rules;Object.keys(i).forEach((function r(o){var a=i[o];a.processed=!0;for(var s=0;s<a.length;s++){var l=a[s],c=null;Array.isArray(l)&&(c=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var u=l.next||l.push;if(u&&Array.isArray(u)){var h=l.stateName;h||("string"!=typeof(h=l.token)&&(h=h[0]||""),i[h]&&(h+=n++)),i[h]=u,r(l.next=h)}else"pop"==u&&(l.next=e);if(l.push&&(l.nextState=l.next||l.push,l.next=t,delete l.push),l.rules)for(var d in l.rules)i[d]?i[d].push&&i[d].push.apply(i[d],l.rules[d]):i[d]=l.rules[d];var p="string"==typeof l?l:l.include;if(p&&(c=Array.isArray(p)?p.map((function(t){return i[t]})):i[p]),c){var f=[s,1].concat(c);l.noEscape&&(f=f.filter((function(t){return!t.next}))),a.splice.apply(a,f),s--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}),this)},this.createKeywordMapper=function(t,e,n,i){var r=Object.create(null);return Object.keys(t).forEach((function(e){var o=t[e];n&&(o=o.toLowerCase());for(var a=o.split(i||"|"),s=a.length;s--;)r[a[s]]=e})),Object.getPrototypeOf(r)&&(r.__proto__=null),this.$keywordList=Object.keys(r),t=null,n?function(t){return r[t.toLowerCase()]||e}:function(t){return r[t]||e}},this.getKeywords=function(){return this.$keywords}}).call(i.prototype),e.TextHighlightRules=i})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(t,e,n){"use strict";function i(){this.$behaviours={}}(function(){this.add=function(t,e,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[t]:this.$behaviours[t]={}}this.$behaviours[t][e]=n},this.addBehaviours=function(t){for(var e in t)for(var n in t[e])this.add(e,n,t[e][n])},this.remove=function(t){this.$behaviours&&this.$behaviours[t]&&delete this.$behaviours[t]},this.inherit=function(t,e){if("function"==typeof t)var n=(new t).getBehaviours(e);else n=t.getBehaviours(e);this.addBehaviours(n)},this.getBehaviours=function(t){if(t){for(var e={},n=0;n<t.length;n++)this.$behaviours[t[n]]&&(e[t[n]]=this.$behaviours[t[n]]);return e}return this.$behaviours}}).call(i.prototype),e.Behaviour=i})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(t,e,n){"use strict";function i(t,e,n){this.$session=t,this.$row=e,this.$rowTokens=t.getTokens(e);var i=t.getTokenAt(e,n);this.$tokenIndex=i?i.index:-1}var r=t("./range").Range;(function(){this.stepBackward=function(){for(--this.$tokenIndex;this.$tokenIndex<0;){if(--this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var t;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,t=t||this.$session.getLength(),this.$row>=t)return this.$row=t-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var t=this.$rowTokens,e=this.$tokenIndex,n=t[e].start;if(void 0!==n)return n;for(n=0;0<e;)n+=t[--e].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var t=this.$rowTokens[this.$tokenIndex],e=this.getCurrentTokenColumn();return new r(this.$row,e,this.$row,e+t.value.length)}}).call(i.prototype),e.TokenIterator=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(t,e,n){"use strict";function i(t){var e=-1;if(t.multiSelect&&(e=t.selection.index,d.rangeCount!=t.multiSelect.rangeCount&&(d={rangeCount:t.multiSelect.rangeCount})),d[e])return o=d[e];o=d[e]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}}function r(t,e,n,i){var r=t.end.row-t.start.row;return{text:n+e+i,selection:[0,t.start.column+1,r,t.end.column+(r?0:1)]}}var o,a=t("../../lib/oop"),s=t("../behaviour").Behaviour,l=t("../../token_iterator").TokenIterator,c=t("../../lib/lang"),u=["text","paren.rparen","rparen","paren","punctuation.operator"],h=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],d={},p={'"':'"',"'":"'"},f=function(t){this.add("braces","insertion",(function(e,n,a,s,l){var u=a.getCursorPosition(),h=s.doc.getLine(u.row);if("{"==l){i(a);var d=a.getSelectionRange(),p=s.doc.getTextRange(d);if(""!==p&&"{"!==p&&a.getWrapBehavioursEnabled())return r(d,p,"{","}");if(f.isSaneInsertion(a,s))return/[\]\}\)]/.test(h[u.column])||a.inMultiSelectMode||t&&t.braces?(f.recordAutoInsert(a,s,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(a,s,"{"),{text:"{",selection:[1,1]})}else if("}"==l){if(i(a),"}"==h.substring(u.column,u.column+1)&&null!==s.$findOpeningBracket("}",{column:u.column+1,row:u.row})&&f.isAutoInsertedClosing(u,h,l))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==l||"\r\n"==l){i(a);var g="";if(f.isMaybeInsertedClosing(u,h)&&(g=c.stringRepeat("}",o.maybeInsertedBrackets),f.clearMaybeInsertedClosing()),"}"===h.substring(u.column,u.column+1)){var m=s.findMatchingBracket({row:u.row,column:u.column+1},"}");if(!m)return null;var v=this.$getIndent(s.getLine(m.row))}else{if(!g)return void f.clearMaybeInsertedClosing();v=this.$getIndent(h)}var y=v+s.getTabString();return{text:"\n"+y+"\n"+v+g,selection:[1,y.length,1,y.length]}}f.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(t,e,n,r,a){var s=r.doc.getTextRange(a);if(!a.isMultiLine()&&"{"==s){if(i(n),"}"==r.doc.getLine(a.start.row).substring(a.end.column,a.end.column+1))return a.end.column++,a;o.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(t,e,n,o,a){if("("==a){i(n);var s=n.getSelectionRange(),l=o.doc.getTextRange(s);if(""!==l&&n.getWrapBehavioursEnabled())return r(s,l,"(",")");if(f.isSaneInsertion(n,o))return f.recordAutoInsert(n,o,")"),{text:"()",selection:[1,1]}}else if(")"==a){i(n);var c=n.getCursorPosition(),u=o.doc.getLine(c.row);if(")"==u.substring(c.column,c.column+1)&&null!==o.$findOpeningBracket(")",{column:c.column+1,row:c.row})&&f.isAutoInsertedClosing(c,u,a))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(t,e,n,r,o){var a=r.doc.getTextRange(o);if(!o.isMultiLine()&&"("==a&&(i(n),")"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("brackets","insertion",(function(t,e,n,o,a){if("["==a){i(n);var s=n.getSelectionRange(),l=o.doc.getTextRange(s);if(""!==l&&n.getWrapBehavioursEnabled())return r(s,l,"[","]");if(f.isSaneInsertion(n,o))return f.recordAutoInsert(n,o,"]"),{text:"[]",selection:[1,1]}}else if("]"==a){i(n);var c=n.getCursorPosition(),u=o.doc.getLine(c.row);if("]"==u.substring(c.column,c.column+1)&&null!==o.$findOpeningBracket("]",{column:c.column+1,row:c.row})&&f.isAutoInsertedClosing(c,u,a))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(t,e,n,r,o){var a=r.doc.getTextRange(o);if(!o.isMultiLine()&&"["==a&&(i(n),"]"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("string_dquotes","insertion",(function(t,e,n,o,a){var s=o.$mode.$quotes||p;if(1==a.length&&s[a]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(a))return;i(n);var l=a,c=n.getSelectionRange(),u=o.doc.getTextRange(c);if(!(""===u||1==u.length&&s[u])&&n.getWrapBehavioursEnabled())return r(c,u,l,l);if(!u){var h=n.getCursorPosition(),d=o.doc.getLine(h.row),f=d.substring(h.column-1,h.column),g=d.substring(h.column,h.column+1),m=o.getTokenAt(h.row,h.column),v=o.getTokenAt(h.row,h.column+1);if("\\"==f&&m&&/escape/.test(m.type))return null;var y,b=m&&/string|escape/.test(m.type),x=!v||/string|escape/.test(v.type);if(g==l)(y=b!==x)&&/string\.end/.test(v.type)&&(y=!1);else{if(b&&!x)return null;if(b&&x)return null;var w=o.$mode.tokenRe;w.lastIndex=0;var _=w.test(f);w.lastIndex=0;var C=w.test(f);if(_||C)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;var A=d[h.column-2];if(f==l&&(A==l||w.test(A)))return null;y=!0}return{text:y?l+l:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(t,e,n,r,o){var a=r.$mode.$quotes||p,s=r.doc.getTextRange(o);if(!o.isMultiLine()&&a.hasOwnProperty(s)&&(i(n),r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==s))return o.end.column++,o}))};f.isSaneInsertion=function(t,e){var n=t.getCursorPosition(),i=new l(e,n.row,n.column);if(!this.$matchTokenType(i.getCurrentToken()||"text",u)){if(/[)}\]]/.test(t.session.getLine(n.row)[n.column]))return!0;var r=new l(e,n.row,n.column+1);if(!this.$matchTokenType(r.getCurrentToken()||"text",u))return!1}return i.stepForward(),i.getCurrentTokenRow()!==n.row||this.$matchTokenType(i.getCurrentToken()||"text",h)},f.$matchTokenType=function(t,e){return-1<e.indexOf(t.type||t)},f.recordAutoInsert=function(t,e,n){var i=t.getCursorPosition(),r=e.doc.getLine(i.row);this.isAutoInsertedClosing(i,r,o.autoInsertedLineEnd[0])||(o.autoInsertedBrackets=0),o.autoInsertedRow=i.row,o.autoInsertedLineEnd=n+r.substr(i.column),o.autoInsertedBrackets++},f.recordMaybeInsert=function(t,e,n){var i=t.getCursorPosition(),r=e.doc.getLine(i.row);this.isMaybeInsertedClosing(i,r)||(o.maybeInsertedBrackets=0),o.maybeInsertedRow=i.row,o.maybeInsertedLineStart=r.substr(0,i.column)+n,o.maybeInsertedLineEnd=r.substr(i.column),o.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(t,e,n){return 0<o.autoInsertedBrackets&&t.row===o.autoInsertedRow&&n===o.autoInsertedLineEnd[0]&&e.substr(t.column)===o.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(t,e){return 0<o.maybeInsertedBrackets&&t.row===o.maybeInsertedRow&&e.substr(t.column)===o.maybeInsertedLineEnd&&e.substr(0,t.column)==o.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){o.autoInsertedLineEnd=o.autoInsertedLineEnd.substr(1),o.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){o&&(o.maybeInsertedBrackets=0,o.maybeInsertedRow=-1)},a.inherits(f,s),e.CstyleBehaviour=f})),ace.define("ace/unicode",["require","exports","module"],(function(t,e,n){"use strict";for(var i=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],r=0,o=[],a=0;a<i.length;a+=2)o.push(r+=i[a]),i[a+1]&&o.push(45,r+=i[a+1]);e.wordChars=String.fromCharCode.apply(null,o)})),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(t,e,n){"use strict";function i(){this.HighlightRules=a}var r=t("../config"),o=t("../tokenizer").Tokenizer,a=t("./text_highlight_rules").TextHighlightRules,s=t("./behaviour/cstyle").CstyleBehaviour,l=t("../unicode"),c=t("../lib/lang"),u=t("../token_iterator").TokenIterator,h=t("../range").Range;(function(){this.$defaultBehaviour=new s,this.tokenRe=new RegExp("^["+l.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+l.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(t,e,n,i){function r(t){for(var e=n;e<=i;e++)t(o.getLine(e),e)}var o=e.doc,a=!0,s=!0,l=1/0,u=e.getTabSize(),h=!1;if(this.lineCommentStart){Array.isArray(this.lineCommentStart)?(m=this.lineCommentStart.map(c.escapeRegExp).join("|"),f=this.lineCommentStart[0]):(m=c.escapeRegExp(this.lineCommentStart),f=this.lineCommentStart),m=new RegExp("^(\\s*)(?:"+m+") ?"),h=e.getUseSoftTabs(),b=function(t,e){var n=t.match(m);if(n){var i=n[1].length,r=n[0].length;p(t,i,r)||" "!=n[0][r-1]||r--,o.removeInLine(e,i,r)}};var d=f+" ",p=(y=function(t,e){a&&!/\S/.test(t)||(p(t,l,l)?o.insertInLine({row:e,column:l},d):o.insertInLine({row:e,column:l},f))},x=function(t,e){return m.test(t)},function(t,e,n){for(var i=0;e--&&" "==t.charAt(e);)i++;if(i%u!=0)return!1;for(i=0;" "==t.charAt(n++);)i++;return 2<u?i%u!=u-1:i%u==0})}else{if(!this.blockComment)return!1;var f=this.blockComment.start,g=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+c.escapeRegExp(f)+")"),v=new RegExp("(?:"+c.escapeRegExp(g)+")\\s*$"),y=function(t,e){x(t,e)||a&&!/\S/.test(t)||(o.insertInLine({row:e,column:t.length},g),o.insertInLine({row:e,column:l},f))},b=function(t,e){var n;(n=t.match(v))&&o.removeInLine(e,t.length-n[0].length,t.length),(n=t.match(m))&&o.removeInLine(e,n[1].length,n[0].length)},x=function(t,n){if(m.test(t))return!0;for(var i=e.getTokens(n),r=0;r<i.length;r++)if("comment"===i[r].type)return!0}}var w=1/0;r((function(t,e){var n=t.search(/\S/);-1!==n?(n<l&&(l=n),s&&!x(t,e)&&(s=!1)):w>t.length&&(w=t.length)})),l==1/0&&(l=w,s=a=!1),h&&l%u!=0&&(l=Math.floor(l/u)*u),r(s?b:y)},this.toggleBlockComment=function(t,e,n,i){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var o,a,s=(g=new u(e,i.row,i.column)).getCurrentToken(),l=(e.selection,e.selection.toOrientedRange());if(s&&/comment/.test(s.type)){for(var c,d;s&&/comment/.test(s.type);){if(-1!=(m=s.value.indexOf(r.start))){var p=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m;c=new h(p,f,p,f+r.start.length);break}s=g.stepBackward()}var g;for(s=(g=new u(e,i.row,i.column)).getCurrentToken();s&&/comment/.test(s.type);){var m;if(-1!=(m=s.value.indexOf(r.end))){p=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m,d=new h(p,f,p,f+r.end.length);break}s=g.stepForward()}d&&e.remove(d),c&&(e.remove(c),o=c.start.row,a=-r.start.length)}else a=r.start.length,o=n.start.row,e.insert(n.end,r.end),e.insert(n.start,r.start);l.start.row==o&&(l.start.column+=a),l.end.row==o&&(l.end.column+=a),e.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(t,e,n){return this.$getIndent(e)},this.checkOutdent=function(t,e,n){return!1},this.autoOutdent=function(t,e,n){},this.$getIndent=function(t){return t.match(/^\s*/)[0]},this.createWorker=function(t){return null},this.createModeDelegates=function(t){for(var e in this.$embeds=[],this.$modes={},t)if(t[e]){var n=t[e],i=n.prototype.$id,o=r.$modes[i];o||(r.$modes[i]=o=new n),r.$modes[e]||(r.$modes[e]=o),this.$embeds.push(e),this.$modes[e]=o}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(e=0;e<a.length;e++)!function(t){var n=a[e],i=t[n];t[a[e]]=function(){return this.$delegator(n,arguments,i)}}(this)},this.$delegator=function(t,e,n){var i=e[0]||"start";if("string"!=typeof i){if(Array.isArray(i[2])){var r=i[2][i[2].length-1];if(a=this.$modes[r])return a[t].apply(a,[i[1]].concat([].slice.call(e,1)))}i=i[0]||"start"}for(var o=0;o<this.$embeds.length;o++)if(this.$modes[this.$embeds[o]]){var a,s=i.split(this.$embeds[o]);if(!s[0]&&s[1])return e[0]=s[1],(a=this.$modes[this.$embeds[o]])[t].apply(a,e)}var l=n.apply(this,e);return n?l:void 0},this.transformAction=function(t,e,n,i,r){if(this.$behaviour){var o=this.$behaviour.getBehaviours();for(var a in o)if(o[a][e]){var s=o[a][e].apply(this,arguments);if(s)return s}}},this.getKeywords=function(t){if(!this.completionKeywords){var e=this.$tokenizer.rules,n=[];for(var i in e)for(var r=e[i],o=0,a=r.length;o<a;o++)if("string"==typeof r[o].token)/keyword|support|storage/.test(r[o].token)&&n.push(r[o].regex);else if("object"==typeof r[o].token)for(var s=0,l=r[o].token.length;s<l;s++)/keyword|support|storage/.test(r[o].token[s])&&(i=r[o].regex.match(/\(.+?\)/g)[s],n.push(i.substr(1,i.length-2)));this.completionKeywords=n}return t?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(t,e,n,i){return(this.$keywordList||this.$createKeywordList()).map((function(t){return{name:t,value:t,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(i.prototype),e.Mode=i})),ace.define("ace/apply_delta",["require","exports","module"],(function(t,e,n){"use strict";e.applyDelta=function(t,e,n){var i=e.start.row,r=e.start.column,o=t[i]||"";switch(e.action){case"insert":if(1===e.lines.length)t[i]=o.substring(0,r)+e.lines[0]+o.substring(r);else{var a=[i,1].concat(e.lines);t.splice.apply(t,a),t[i]=o.substring(0,r)+t[i],t[i+e.lines.length-1]+=o.substring(r)}break;case"remove":var s=e.end.column,l=e.end.row;i===l?t[i]=o.substring(0,r)+o.substring(s):t.splice(i,l-i+1,o.substring(0,r)+t[l].substring(s))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(t,e,n){"use strict";var i=t("./lib/oop"),r=t("./lib/event_emitter").EventEmitter,o=e.Anchor=function(t,e,n){this.$onChange=this.onChange.bind(this),this.attach(t),void 0===n?this.setPosition(e.row,e.column):this.setPosition(e,n)};(function(){function t(t,e,n){var i=n?t.column<=e.column:t.column<e.column;return t.row<e.row||t.row==e.row&&i}i.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var n=function(e,n,i){var r="insert"==e.action,o=(r?1:-1)*(e.end.row-e.start.row),a=(r?1:-1)*(e.end.column-e.start.column),s=e.start,l=r?s:e.end;return t(n,s,i)?{row:n.row,column:n.column}:t(l,n,!i)?{row:n.row+o,column:n.column+(n.row==l.row?a:0)}:{row:s.row,column:s.column}}(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(t,e,n){var i;if(i=n?{row:t,column:e}:this.$clipPositionToDocument(t,e),this.row!=i.row||this.column!=i.column){var r={row:this.row,column:this.column};this.row=i.row,this.column=i.column,this._signal("change",{old:r,value:i})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(t){this.document=t||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(t,e){var n={};return t>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):t<0?(n.row=0,n.column=0):(n.row=t,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,e))),e<0&&(n.column=0),n}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(t,e,n){"use strict";function i(t){this.$lines=[""],0===t.length?this.$lines=[""]:Array.isArray(t)?this.insertMergedLines({row:0,column:0},t):this.insert({row:0,column:0},t)}var r=t("./lib/oop"),o=t("./apply_delta").applyDelta,a=t("./lib/event_emitter").EventEmitter,s=t("./range").Range,l=t("./anchor").Anchor;(function(){r.implement(this,a),this.setValue=function(t){var e=this.getLength()-1;this.remove(new s(0,0,e,this.getLine(e).length)),this.insert({row:0,column:0},t)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(t,e){return new l(this,t,e)},0==="aaa".split(/a/).length?this.$split=function(t){return t.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(t){return t.split(/\r\n|\r|\n/)},this.$detectNewLine=function(t){var e=t.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(t){this.$newLineMode!==t&&(this.$newLineMode=t,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(t){return"\r\n"==t||"\r"==t||"\n"==t},this.getLine=function(t){return this.$lines[t]||""},this.getLines=function(t,e){return this.$lines.slice(t,e+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(t){return this.getLinesForRange(t).join(this.getNewLineCharacter())},this.getLinesForRange=function(t){var e;if(t.start.row===t.end.row)e=[this.getLine(t.start.row).substring(t.start.column,t.end.column)];else{(e=this.getLines(t.start.row,t.end.row))[0]=(e[0]||"").substring(t.start.column);var n=e.length-1;t.end.row-t.start.row==n&&(e[n]=e[n].substring(0,t.end.column))}return e},this.insertLines=function(t,e){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(t,e)},this.removeLines=function(t,e){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(t,e)},this.insertNewLine=function(t){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(t,["",""])},this.insert=function(t,e){return this.getLength()<=1&&this.$detectNewLine(e),this.insertMergedLines(t,this.$split(e))},this.insertInLine=function(t,e){var n=this.clippedPos(t.row,t.column),i=this.pos(t.row,t.column+e.length);return this.applyDelta({start:n,end:i,action:"insert",lines:[e]},!0),this.clonePos(i)},this.clippedPos=function(t,e){var n=this.getLength();void 0===t?t=n:t<0?t=0:n<=t&&(t=n-1,e=void 0);var i=this.getLine(t);return null==e&&(e=i.length),{row:t,column:e=Math.min(Math.max(e,0),i.length)}},this.clonePos=function(t){return{row:t.row,column:t.column}},this.pos=function(t,e){return{row:t,column:e}},this.$clipPosition=function(t){var e=this.getLength();return t.row>=e?(t.row=Math.max(0,e-1),t.column=this.getLine(e-1).length):(t.row=Math.max(0,t.row),t.column=Math.min(Math.max(t.column,0),this.getLine(t.row).length)),t},this.insertFullLines=function(t,e){var n=0;n=(t=Math.min(Math.max(t,0),this.getLength()))<this.getLength()?(e=e.concat([""]),0):(e=[""].concat(e),t--,this.$lines[t].length),this.insertMergedLines({row:t,column:n},e)},this.insertMergedLines=function(t,e){var n=this.clippedPos(t.row,t.column),i={row:n.row+e.length-1,column:(1==e.length?n.column:0)+e[e.length-1].length};return this.applyDelta({start:n,end:i,action:"insert",lines:e}),this.clonePos(i)},this.remove=function(t){var e=this.clippedPos(t.start.row,t.start.column),n=this.clippedPos(t.end.row,t.end.column);return this.applyDelta({start:e,end:n,action:"remove",lines:this.getLinesForRange({start:e,end:n})}),this.clonePos(e)},this.removeInLine=function(t,e,n){var i=this.clippedPos(t,e),r=this.clippedPos(t,n);return this.applyDelta({start:i,end:r,action:"remove",lines:this.getLinesForRange({start:i,end:r})},!0),this.clonePos(i)},this.removeFullLines=function(t,e){t=Math.min(Math.max(0,t),this.getLength()-1);var n=(e=Math.min(Math.max(0,e),this.getLength()-1))==this.getLength()-1&&0<t,i=e<this.getLength()-1,r=n?t-1:t,o=n?this.getLine(r).length:0,a=i?e+1:e,l=i?0:this.getLine(a).length,c=new s(r,o,a,l),u=this.$lines.slice(t,e+1);return this.applyDelta({start:c.start,end:c.end,action:"remove",lines:this.getLinesForRange(c)}),u},this.removeNewLine=function(t){t<this.getLength()-1&&0<=t&&this.applyDelta({start:this.pos(t,this.getLine(t).length),end:this.pos(t+1,0),action:"remove",lines:["",""]})},this.replace=function(t,e){return t instanceof s||(t=s.fromPoints(t.start,t.end)),0===e.length&&t.isEmpty()?t.start:e==this.getTextRange(t)?t.end:(this.remove(t),e?this.insert(t.start,e):t.start)},this.applyDeltas=function(t){for(var e=0;e<t.length;e++)this.applyDelta(t[e])},this.revertDeltas=function(t){for(var e=t.length-1;0<=e;e--)this.revertDelta(t[e])},this.applyDelta=function(t,e){var n="insert"==t.action;(n?t.lines.length<=1&&!t.lines[0]:!s.comparePoints(t.start,t.end))||(n&&2e4<t.lines.length?this.$splitAndapplyLargeDelta(t,2e4):(o(this.$lines,t,e),this._signal("change",t)))},this.$splitAndapplyLargeDelta=function(t,e){for(var n=t.lines,i=n.length-e+1,r=t.start.row,o=t.start.column,a=0,s=0;a<i;a=s){s+=e-1;var l=n.slice(a,s);l.push(""),this.applyDelta({start:this.pos(r+a,o),end:this.pos(r+s,o=0),action:t.action,lines:l},!0)}t.lines=n.slice(a),t.start.row=r+a,t.start.column=o,this.applyDelta(t,!0)},this.revertDelta=function(t){this.applyDelta({start:this.clonePos(t.start),end:this.clonePos(t.end),action:"insert"==t.action?"remove":"insert",lines:t.lines.slice()})},this.indexToPosition=function(t,e){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,r=e||0,o=n.length;r<o;r++)if((t-=n[r].length+i)<0)return{row:r,column:t+n[r].length+i};return{row:o-1,column:t+n[o-1].length+i}},this.positionToIndex=function(t,e){for(var n=this.$lines||this.getAllLines(),i=this.getNewLineCharacter().length,r=0,o=Math.min(t.row,n.length),a=e||0;a<o;++a)r+=n[a].length+i;return r+t.column}}).call(i.prototype),e.Document=i})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(t,e,n){"use strict";function i(t,e){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=t;var n=this;this.$worker=function(){if(n.running){for(var t=new Date,e=n.currentLine,i=-1,r=n.doc,o=e;n.lines[e];)e++;var a=r.getLength(),s=0;for(n.running=!1;e<a;){for(n.$tokenizeRow(e),i=e;e++,n.lines[e];);if(++s%5==0&&20<new Date-t){n.running=setTimeout(n.$worker,20);break}}n.currentLine=e,-1==i&&(i=e),o<=i&&n.fireUpdateEvent(o,i)}}}var r=t("./lib/oop"),o=t("./lib/event_emitter").EventEmitter;(function(){r.implement(this,o),this.setTokenizer=function(t){this.tokenizer=t,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(t){this.doc=t,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(t,e){var n={first:t,last:e};this._signal("update",{data:n})},this.start=function(t){this.currentLine=Math.min(t||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(t){var e=t.start.row,n=t.end.row-e;if(0==n)this.lines[e]=null;else if("remove"==t.action)this.lines.splice(e,1+n,null),this.states.splice(e,1+n,null);else{var i=Array(1+n);i.unshift(e,1),this.lines.splice.apply(this.lines,i),this.states.splice.apply(this.states,i)}this.currentLine=Math.min(e,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(t){return this.lines[t]||this.$tokenizeRow(t)},this.getState=function(t){return this.currentLine==t&&this.$tokenizeRow(t),this.states[t]||"start"},this.$tokenizeRow=function(t){var e=this.doc.getLine(t),n=this.states[t-1],i=this.tokenizer.getLineTokens(e,n,t);return this.states[t]+""!=i.state+""?(this.states[t]=i.state,this.lines[t+1]=null,this.currentLine>t+1&&(this.currentLine=t+1)):this.currentLine==t&&(this.currentLine=t+1),this.lines[t]=i.tokens}}).call(i.prototype),e.BackgroundTokenizer=i})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(t,e,n){"use strict";function i(t,e,n){this.setRegexp(t),this.clazz=e,this.type=n||"text"}var r=t("./lib/lang"),o=(t("./lib/oop"),t("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(t){this.regExp+""!=t+""&&(this.regExp=t,this.cache=[])},this.update=function(t,e,n,i){if(this.regExp)for(var a=i.firstRow,s=i.lastRow,l=a;l<=s;l++){var c=this.cache[l];null==c&&((c=r.getMatchOffsets(n.getLine(l),this.regExp)).length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map((function(t){return new o(l,t.offset,l,t.offset+t.length)})),this.cache[l]=c.length?c:"");for(var u=c.length;u--;)e.drawSingleLineMarker(t,c[u].toScreenRange(n),this.clazz,i)}}}).call(i.prototype),e.SearchHighlight=i})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(t,e,n){"use strict";function i(t,e){this.foldData=t,Array.isArray(e)?this.folds=e:e=this.folds=[e];var n=e[e.length-1];this.range=new r(e[0].start.row,e[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(t){t.setFoldLine(this)}),this)}var r=t("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach((function(e){e.start.row+=t,e.end.row+=t}))},this.addFold=function(t){if(t.sameRow){if(t.start.row<this.startRow||t.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(t),this.folds.sort((function(t,e){return-t.range.compareEnd(e.start.row,e.start.column)})),0<this.range.compareEnd(t.start.row,t.start.column)?(this.end.row=t.end.row,this.end.column=t.end.column):this.range.compareStart(t.end.row,t.end.column)<0&&(this.start.row=t.start.row,this.start.column=t.start.column)}else if(t.start.row==this.end.row)this.folds.push(t),this.end.row=t.end.row,this.end.column=t.end.column;else{if(t.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(t),this.start.row=t.start.row,this.start.column=t.start.column}t.foldLine=this},this.containsRow=function(t){return t>=this.start.row&&t<=this.end.row},this.walk=function(t,e,n){var i,r,o=0,a=this.folds,s=!0;null==e&&(e=this.end.row,n=this.end.column);for(var l=0;l<a.length;l++){if(-1==(r=(i=a[l]).range.compareStart(e,n)))return void t(null,e,n,o,s);if(!t(null,i.start.row,i.start.column,o,s)&&t(i.placeholder,i.start.row,i.start.column,o)||0===r)return;s=!i.sameRow,o=i.end.column}t(null,e,n,o,s)},this.getNextFoldTo=function(t,e){for(var n,i,r=0;r<this.folds.length;r++){if(-1==(i=(n=this.folds[r]).range.compareEnd(t,e)))return{fold:n,kind:"after"};if(0===i)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(t,e,n){var i,r,o=this.getNextFoldTo(t,e);if(o)if(i=o.fold,"inside"==o.kind&&i.start.column!=e&&i.start.row!=t)window.console&&window.console.log(t,e,i);else if(i.start.row==t){var a=(r=this.folds).indexOf(i);for(0===a&&(this.start.column+=n);a<r.length;a++){if((i=r[a]).start.column+=n,!i.sameRow)return;i.end.column+=n}this.end.column+=n}},this.split=function(t,e){var n=this.getNextFoldTo(t,e);if(!n||"inside"==n.kind)return null;var r=n.fold,o=this.folds,a=this.foldData,s=o.indexOf(r),l=o[s-1];this.end.row=l.end.row,this.end.column=l.end.column;var c=new i(a,o=o.splice(s,o.length-s));return a.splice(a.indexOf(this)+1,0,c),c},this.merge=function(t){for(var e=t.folds,n=0;n<e.length;n++)this.addFold(e[n]);var i=this.foldData;i.splice(i.indexOf(t),1)},this.toString=function(){var t=[this.range.toString()+": ["];return this.folds.forEach((function(e){t.push("  "+e.toString())})),t.push("]"),t.join("\n")},this.idxToPosition=function(t){for(var e=0,n=0;n<this.folds.length;n++){var i=this.folds[n];if((t-=i.start.column-e)<0)return{row:i.start.row,column:i.start.column+t};if((t-=i.placeholder.length)<0)return i.start;e=i.end.column}return{row:this.end.row,column:this.end.column+t}}}).call(i.prototype),e.FoldLine=i})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(t,e,n){"use strict";function i(){this.ranges=[],this.$bias=1}var r=t("./range").Range.comparePoints;(function(){this.comparePoints=r,this.pointIndex=function(t,e,n){for(var i=this.ranges,o=n||0;o<i.length;o++){var a=i[o],s=r(t,a.end);if(!(0<s)){var l=r(t,a.start);return 0===s?e&&0!==l?-o-2:o:0<l||0===l&&!e?o:-o-1}}return-o-1},this.add=function(t){var e=!t.isEmpty(),n=this.pointIndex(t.start,e);n<0&&(n=-n-1);var i=this.pointIndex(t.end,e,n);return i<0?i=-i-1:i++,this.ranges.splice(n,i-n,t)},this.addList=function(t){for(var e=[],n=t.length;n--;)e.push.apply(e,this.add(t[n]));return e},this.substractPoint=function(t){var e=this.pointIndex(t);if(0<=e)return this.ranges.splice(e,1)},this.merge=function(){for(var t,e=[],n=this.ranges,i=(n=n.sort((function(t,e){return r(t.start,e.start)})))[0],o=1;o<n.length;o++){t=i,i=n[o];var a=r(t.end,i.start);a<0||(0!=a||t.isEmpty()||i.isEmpty())&&(r(t.end,i.end)<0&&(t.end.row=i.end.row,t.end.column=i.end.column),n.splice(o,1),e.push(i),i=t,o--)}return this.ranges=n,e},this.contains=function(t,e){return 0<=this.pointIndex({row:t,column:e})},this.containsPoint=function(t){return 0<=this.pointIndex(t)},this.rangeAtPoint=function(t){var e=this.pointIndex(t);if(0<=e)return this.ranges[e]},this.clipRows=function(t,e){var n=this.ranges;if(n[0].start.row>e||n[n.length-1].start.row<t)return[];var i=this.pointIndex({row:t,column:0});i<0&&(i=-i-1);var r=this.pointIndex({row:e,column:0},i);r<0&&(r=-r-1);for(var o=[],a=i;a<r;a++)o.push(n[a]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(t){this.session&&this.detach(),this.session=t,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(t){for(var e=t.start,n=t.end,i=e.row,r=n.row,o=this.ranges,a=0,s=o.length;a<s&&!((u=o[a]).end.row>=i);a++);if("insert"==t.action){for(var l=r-i,c=-e.column+n.column;a<s&&!((u=o[a]).start.row>i);a++)if(u.start.row==i&&u.start.column>=e.column&&(u.start.column==e.column&&this.$bias<=0||(u.start.column+=c,u.start.row+=l)),u.end.row==i&&u.end.column>=e.column){if(u.end.column==e.column&&this.$bias<0)continue;u.end.column==e.column&&0<c&&a<s-1&&u.end.column>u.start.column&&u.end.column==o[a+1].start.column&&(u.end.column-=c),u.end.column+=c,u.end.row+=l}}else for(l=i-r,c=e.column-n.column;a<s&&!((u=o[a]).start.row>r);a++)u.end.row<r&&(i<u.end.row||i==u.end.row&&e.column<u.end.column)?(u.end.row=i,u.end.column=e.column):u.end.row==r?u.end.column<=n.column?(l||u.end.column>e.column)&&(u.end.column=e.column,u.end.row=e.row):(u.end.column+=c,u.end.row+=l):u.end.row>r&&(u.end.row+=l),u.start.row<r&&(i<u.start.row||i==u.start.row&&e.column<u.start.column)?(u.start.row=i,u.start.column=e.column):u.start.row==r?u.start.column<=n.column?(l||u.start.column>e.column)&&(u.start.column=e.column,u.start.row=e.row):(u.start.column+=c,u.start.row+=l):u.start.row>r&&(u.start.row+=l);if(0!=l&&a<s)for(;a<s;a++){var u;(u=o[a]).start.row+=l,u.end.row+=l}}}).call(i.prototype),e.RangeList=i})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list","ace/lib/oop"],(function(t,e,n){"use strict";function i(t,e){t.row-=e.row,0==t.row&&(t.column-=e.column)}function r(t,e){0==t.row&&(t.column+=e.column),t.row+=e.row}var o=t("../range_list").RangeList,a=t("../lib/oop"),s=e.Fold=function(t,e){this.foldLine=null,this.placeholder=e,this.range=t,this.start=t.start,this.end=t.end,this.sameRow=t.start.row==t.end.row,this.subFolds=this.ranges=[]};a.inherits(s,o),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach((function(e){e.setFoldLine(t)}))},this.clone=function(){var t=this.range.clone(),e=new s(t,this.placeholder);return this.subFolds.forEach((function(t){e.subFolds.push(t.clone())})),e.collapseChildren=this.collapseChildren,e},this.addSubFold=function(t){if(!this.range.isEqual(t)){var e,n;e=t,n=this.start,i(e.start,n),i(e.end,n);for(var r=t.start.row,o=t.start.column,a=0,s=-1;a<this.subFolds.length&&1==(s=this.subFolds[a].range.compare(r,o));a++);var l=this.subFolds[a],c=0;if(0==s){if(l.range.containsRange(t))return l.addSubFold(t);c=1}r=t.range.end.row,o=t.range.end.column;var u=a;for(s=-1;u<this.subFolds.length&&1==(s=this.subFolds[u].range.compare(r,o));u++);0==s&&u++;for(var h=this.subFolds.splice(a,u-a,t),d=0==s?h.length-1:h.length,p=c;p<d;p++)t.addSubFold(h[p]);return t.setFoldLine(this.foldLine),t}},this.restoreRange=function(t){return e=t,n=this.start,r(e.start,n),void r(e.end,n);var e,n}}.call(s.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(t,e,n){"use strict";var i=t("../range").Range,r=t("./fold_line").FoldLine,o=t("./fold").Fold,a=t("../token_iterator").TokenIterator;e.Folding=function(){this.getFoldAt=function(t,e,n){var i=this.getFoldLine(t);if(!i)return null;for(var r=i.folds,o=0;o<r.length;o++){var a=r[o].range;if(a.contains(t,e)){if(1==n&&a.isEnd(t,e)&&!a.isEmpty())continue;if(-1==n&&a.isStart(t,e)&&!a.isEmpty())continue;return r[o]}}},this.getFoldsInRange=function(t){var e=t.start,n=t.end,i=this.$foldData,r=[];e.column+=1,--n.column;for(var o=0;o<i.length;o++){var a=i[o].range.compareRange(t);if(2!=a){if(-2==a)break;for(var s=i[o].folds,l=0;l<s.length;l++){var c=s[l];if(-2==(a=c.range.compareRange(t)))break;if(2!=a){if(42==a)break;r.push(c)}}}}return--e.column,n.column+=1,r},this.getFoldsInRangeList=function(t){if(Array.isArray(t)){var e=[];t.forEach((function(t){e=e.concat(this.getFoldsInRange(t))}),this)}else e=this.getFoldsInRange(t);return e},this.getAllFolds=function(){for(var t=[],e=this.$foldData,n=0;n<e.length;n++)for(var i=0;i<e[n].folds.length;i++)t.push(e[n].folds[i]);return t},this.getFoldStringAt=function(t,e,n,i){if(!(i=i||this.getFoldLine(t)))return null;for(var r,o,a={end:{column:0}},s=0;s<i.folds.length;s++){var l=(o=i.folds[s]).range.compareEnd(t,e);if(-1==l){r=this.getLine(o.start.row).substring(a.end.column,o.start.column);break}if(0===l)return null;a=o}return r=r||this.getLine(o.start.row).substring(a.end.column),-1==n?r.substring(0,e-a.end.column):1==n?r.substring(e-a.end.column):r},this.getFoldLine=function(t,e){var n=this.$foldData,i=0;for(e&&(i=n.indexOf(e)),-1==i&&(i=0);i<n.length;i++){var r=n[i];if(r.start.row<=t&&r.end.row>=t)return r;if(r.end.row>t)return null}return null},this.getNextFoldLine=function(t,e){var n=this.$foldData,i=0;for(e&&(i=n.indexOf(e)),-1==i&&(i=0);i<n.length;i++){var r=n[i];if(r.end.row>=t)return r}return null},this.getFoldedRowCount=function(t,e){for(var n=this.$foldData,i=e-t+1,r=0;r<n.length;r++){var o=n[r],a=o.end.row,s=o.start.row;if(e<=a){s<e&&(t<=s?i-=e-s:i=0);break}t<=a&&(i-=t<=s?a-s:a-t+1)}return i},this.$addFoldLine=function(t){return this.$foldData.push(t),this.$foldData.sort((function(t,e){return t.start.row-e.start.row})),t},this.addFold=function(t,e){var n,i=this.$foldData,a=!1;t instanceof o?n=t:(n=new o(e,t)).collapseChildren=e.collapseChildren,this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,c=n.end.row,u=n.end.column,h=this.getFoldAt(s,l,1),d=this.getFoldAt(c,u,-1);if(h&&d==h)return h.addSubFold(n);h&&!h.range.isStart(s,l)&&this.removeFold(h),d&&!d.range.isEnd(c,u)&&this.removeFold(d);var p=this.getFoldsInRange(n.range);0<p.length&&(this.removeFolds(p),p.forEach((function(t){n.addSubFold(t)})));for(var f=0;f<i.length;f++){var g=i[f];if(c==g.start.row){g.addFold(n),a=!0;break}if(s==g.end.row){if(g.addFold(n),a=!0,!n.sameRow){var m=i[f+1];if(m&&m.start.row==c){g.merge(m);break}}break}if(c<=g.start.row)break}return a||(g=this.$addFoldLine(new r(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(t){t.forEach((function(t){this.addFold(t)}),this)},this.removeFold=function(t){var e=t.foldLine,n=e.start.row,i=e.end.row,r=this.$foldData,o=e.folds;if(1==o.length)r.splice(r.indexOf(e),1);else if(e.range.isEnd(t.end.row,t.end.column))o.pop(),e.end.row=o[o.length-1].end.row,e.end.column=o[o.length-1].end.column;else if(e.range.isStart(t.start.row,t.start.column))o.shift(),e.start.row=o[0].start.row,e.start.column=o[0].start.column;else if(t.sameRow)o.splice(o.indexOf(t),1);else{var a=e.split(t.start.row,t.start.column);(o=a.folds).shift(),a.start.row=o[0].start.row,a.start.column=o[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,i):this.$updateRowLengthCache(n,i)),this.$modified=!0,this._signal("changeFold",{data:t,action:"remove"})},this.removeFolds=function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);e.forEach((function(t){this.removeFold(t)}),this),this.$modified=!0},this.expandFold=function(t){this.removeFold(t),t.subFolds.forEach((function(e){t.restoreRange(e),this.addFold(e)}),this),0<t.collapseChildren&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(t){t.forEach((function(t){this.expandFold(t)}),this)},this.unfold=function(t,e){var n,r;if(null==t?(n=new i(0,0,this.getLength(),0),e=!0):n="number"==typeof t?new i(t,0,t,this.getLine(t).length):"row"in t?i.fromPoints(t,t):t,r=this.getFoldsInRangeList(n),e)this.removeFolds(r);else for(var o=r;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(r.length)return r},this.isRowFolded=function(t,e){return!!this.getFoldLine(t,e)},this.getRowFoldEnd=function(t,e){var n=this.getFoldLine(t,e);return n?n.end.row:t},this.getRowFoldStart=function(t,e){var n=this.getFoldLine(t,e);return n?n.start.row:t},this.getFoldDisplayLine=function(t,e,n,i,r){null==i&&(i=t.start.row),null==r&&(r=0),null==e&&(e=t.end.row),null==n&&(n=this.getLine(e).length);var o=this.doc,a="";return t.walk((function(t,e,n,s){if(!(e<i)){if(e==i){if(n<r)return;s=Math.max(r,s)}a+=null!=t?t:o.getLine(e).substring(s,n)}}),e,n),a},this.getDisplayLine=function(t,e,n,i){var r,o=this.getFoldLine(t);return o?this.getFoldDisplayLine(o,t,e,n,i):(r=this.doc.getLine(t)).substring(i||0,e||r.length)},this.$cloneFoldData=function(){var t=[];return t=this.$foldData.map((function(e){var n=e.folds.map((function(t){return t.clone()}));return new r(t,n)}))},this.toggleFold=function(t){var e,n,i=this.selection.getRange();if(i.isEmpty()){var r=i.start;if(e=this.getFoldAt(r.row,r.column))return void this.expandFold(e);(n=this.findMatchingBracket(r))?1==i.comparePoint(n)?i.end=n:(i.start=n,i.start.column++,i.end.column--):(n=this.findMatchingBracket({row:r.row,column:r.column+1}))?(1==i.comparePoint(n)?i.end=n:i.start=n,i.start.column++):i=this.getCommentFoldRange(r.row,r.column)||i}else{var o=this.getFoldsInRange(i);if(t&&o.length)return void this.expandFolds(o);1==o.length&&(e=o[0])}if((e=e||this.getFoldAt(i.start.row,i.start.column))&&e.range.toString()==i.toString())this.expandFold(e);else{var a="...";if(!i.isMultiLine()){if((a=this.getTextRange(i)).length<4)return;a=a.trim().substring(0,2)+".."}this.addFold(a,i)}},this.getCommentFoldRange=function(t,e,n){var r=new a(this,t,e),o=r.getCurrentToken(),s=o.type;if(o&&/^comment|string/.test(s)){"comment"==(s=s.match(/comment|string/)[0])&&(s+="|doc-start");var l=new RegExp(s),c=new i;if(1!=n){for(;(o=r.stepBackward())&&l.test(o.type););r.stepForward()}if(c.start.row=r.getCurrentTokenRow(),c.start.column=r.getCurrentTokenColumn()+2,r=new a(this,t,e),-1!=n){var u=-1;do{if(o=r.stepForward(),-1==u){var h=this.getState(r.$row);l.test(h)||(u=r.$row)}else if(r.$row>u)break}while(o&&l.test(o.type));o=r.stepBackward()}else o=r.getCurrentToken();return c.end.row=r.getCurrentTokenRow(),c.end.column=r.getCurrentTokenColumn()+o.value.length-2,c}},this.foldAll=function(t,e,n){null==n&&(n=1e5);var i=this.foldWidgets;if(i){e=e||this.getLength();for(var r=t=t||0;r<e;r++)if(null==i[r]&&(i[r]=this.getFoldWidget(r)),"start"==i[r]){var o=this.getFoldWidgetRange(r);if(o&&o.isMultiLine()&&o.end.row<=e&&o.start.row>=t){r=o.end.row;try{var a=this.addFold("...",o);a&&(a.collapseChildren=n)}catch(t){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(t){if(!this.$foldStyles[t])throw new Error("invalid fold style: "+t+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=t){"manual"==(this.$foldStyle=t)&&this.unfold();var e=this.$foldMode;this.$setFolding(null),this.$setFolding(e)}},this.$setFolding=function(t){this.$foldMode!=t&&(this.$foldMode=t,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),t&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=t.getFoldWidget.bind(t,this,this.$foldStyle),this.getFoldWidgetRange=t.getFoldWidgetRange.bind(t,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(t,e){var n=this.foldWidgets;if(!n||e&&n[t])return{};for(var i,r=t-1;0<=r;){var o=n[r];if(null==o&&(o=n[r]=this.getFoldWidget(r)),"start"==o){var a=this.getFoldWidgetRange(r);if(i=i||a,a&&a.end.row>=t)break}r--}return{range:-1!==r&&a,firstRange:i}},this.onFoldWidgetClick=function(t,e){var n={children:(e=e.domEvent).shiftKey,all:e.ctrlKey||e.metaKey,siblings:e.altKey};if(!this.$toggleFoldWidget(t,n)){var i=e.target||e.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(t,e){if(this.getFoldWidget){var n=this.getFoldWidget(t),i=this.getLine(t),r="end"===n?-1:1,o=this.getFoldAt(t,-1==r?0:i.length,r);if(o)return e.children||e.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(t,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1))&&a.isEqual(o.range))return this.removeFold(o),o;if(e.siblings){var s=this.getParentFoldRangeData(t);if(s.range)var l=s.range.start.row+1,c=s.range.end.row;this.foldAll(l,c,e.all?1e4:0)}else e.children?(c=a?a.end.row:this.getLength(),this.foldAll(t+1,c,e.all?1e4:0)):a&&(e.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(t){var e=this.selection.getCursor().row;e=this.getRowFoldStart(e);var n=this.$toggleFoldWidget(e,{});if(!n){var i=this.getParentFoldRangeData(e,!0);if(n=i.range||i.firstRange){e=n.start.row;var r=this.getFoldAt(e,this.getLine(e).length,1);r?this.removeFold(r):this.addFold("...",n)}}},this.updateFoldWidgets=function(t){var e=t.start.row,n=t.end.row-e;if(0==n)this.foldWidgets[e]=null;else if("remove"==t.action)this.foldWidgets.splice(e,1+n,null);else{var i=Array(1+n);i.unshift(e,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(t){var e=t.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(t,e,n){"use strict";var i=t("../token_iterator").TokenIterator,r=t("../range").Range;e.BracketMatch=function(){this.findMatchingBracket=function(t,e){if(0==t.column)return null;var n=e||this.getLine(t.row).charAt(t.column-1);if(""==n)return null;var i=n.match(/([\(\[\{])|([\)\]\}])/);return i?i[1]?this.$findClosingBracket(i[1],t):this.$findOpeningBracket(i[2],t):null},this.getBracketRange=function(t){var e,n=this.getLine(t.row),i=!0,o=n.charAt(t.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=n.charAt(t.column),t={row:t.row,column:t.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),i=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],t)))return null;e=r.fromPoints(t,s),i||(e.end.column++,e.start.column--),e.cursor=e.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],t)))return null;e=r.fromPoints(s,t),i||(e.start.column++,e.end.column--),e.cursor=e.start}return e},this.getMatchingBracketRanges=function(t){var e=this.getLine(t.row),n=e.charAt(t.column-1),i=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(i||(n=e.charAt(t.column),t={row:t.row,column:t.column+1},i=n&&n.match(/([\(\[\{])|([\)\]\}])/)),!i)return null;var o=new r(t.row,t.column-1,t.row,t.column),a=i[1]?this.$findClosingBracket(i[1],t):this.$findOpeningBracket(i[2],t);return a?[o,new r(a.row,a.column,a.row,a.column+1)]:[o]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(t,e,n){var r=this.$brackets[t],o=1,a=new i(this,e.row,e.column),s=a.getCurrentToken();if(s=s||a.stepForward()){n=n||new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var l=e.column-a.getCurrentTokenColumn()-2,c=s.value;;){for(;0<=l;){var u=c.charAt(l);if(u==r){if(0==--o)return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else u==t&&(o+=1);--l}for(;(s=a.stepBackward())&&!n.test(s.type););if(null==s)break;l=(c=s.value).length-1}return null}},this.$findClosingBracket=function(t,e,n){var r=this.$brackets[t],o=1,a=new i(this,e.row,e.column),s=a.getCurrentToken();if(s=s||a.stepForward()){n=n||new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var l=e.column-a.getCurrentTokenColumn();;){for(var c=s.value,u=c.length;l<u;){var h=c.charAt(l);if(h==r){if(0==--o)return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else h==t&&(o+=1);l+=1}for(;(s=a.stepForward())&&!n.test(s.type););if(null==s)break;l=0}return null}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(t,e,n){"use strict";var i=t("./lib/oop"),r=t("./lib/lang"),o=t("./bidihandler").BidiHandler,a=t("./config"),s=t("./lib/event_emitter").EventEmitter,l=t("./selection").Selection,c=t("./mode/text").Mode,u=t("./range").Range,h=t("./document").Document,d=t("./background_tokenizer").BackgroundTokenizer,p=t("./search_highlight").SearchHighlight,f=function(t,e){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++f.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof t&&t.getLine||(t=new h(t)),this.setDocument(t),this.selection=new l(this),this.$bidiHandler=new o(this),a.resetOptions(this),this.setMode(e),a._signal("session",this)};f.$uid=0,function(){function t(t){return!(t<4352)&&(4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12288<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510)}i.implement(this,s),this.setDocument=function(t){this.doc&&this.doc.removeListener("change",this.$onChange),(this.doc=t).on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(t){if(!t)return this.$docRowCache=[],void(this.$screenRowCache=[]);var e=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,t)+1;n<e&&(this.$docRowCache.splice(n,e),this.$screenRowCache.splice(n,e))},this.$getRowCacheIndex=function(t,e){for(var n=0,i=t.length-1;n<=i;){var r=n+i>>1,o=t[r];if(o<e)n=1+r;else{if(!(e<o))return r;i=r-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(t){var e=t.data;this.$resetRowCache(e.start.row)},this.onChange=function(t){this.$modified=!0,this.$bidiHandler.onChange(t),this.$resetRowCache(t.start.row);var e=this.$updateInternalDataOnChange(t);!this.$fromUndo&&this.$undoManager&&(e&&e.length&&(this.$undoManager.add({action:"removeFolds",folds:e},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(t,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(t),this._signal("change",t)},this.setValue=function(t){this.doc.setValue(t),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(t){return this.bgTokenizer.getState(t)},this.getTokens=function(t){return this.bgTokenizer.getTokens(t)},this.getTokenAt=function(t,e){var n,i=this.bgTokenizer.getTokens(t),r=0;if(null==e){var o=i.length-1;r=this.getLine(t).length}else for(o=0;o<i.length&&!(e<=(r+=i[o].value.length));o++);return(n=i[o])?(n.index=o,n.start=r-n.value.length,n):null},this.setUndoManager=function(t){if(this.$undoManager=t,this.$informUndoManager&&this.$informUndoManager.cancel(),t){var e=this;t.addSession(this),this.$syncInformUndoManager=function(){e.$informUndoManager.cancel(),e.mergeUndoDeltas=!1},this.$informUndoManager=r.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?r.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(t){this.setOption("useSoftTabs",t)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(t){this.setOption("tabSize",t)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(t){return this.$useSoftTabs&&t.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(t){this.setOption("navigateWithinSoftTabs",t)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(t){this.setOption("overwrite",t)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(t,e){this.$decorations[t]||(this.$decorations[t]=""),this.$decorations[t]+=" "+e,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(t,e){this.$decorations[t]=(this.$decorations[t]||"").replace(" "+e,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(t){this.$breakpoints=[];for(var e=0;e<t.length;e++)this.$breakpoints[t[e]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(t,e){void 0===e&&(e="ace_breakpoint"),e?this.$breakpoints[t]=e:delete this.$breakpoints[t],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(t){delete this.$breakpoints[t],this._signal("changeBreakpoint",{})},this.addMarker=function(t,e,n,i){var r=this.$markerId++,o={range:t,type:n||"line",renderer:"function"==typeof n?n:null,clazz:e,inFront:!!i,id:r};return i?(this.$frontMarkers[r]=o,this._signal("changeFrontMarker")):(this.$backMarkers[r]=o,this._signal("changeBackMarker")),r},this.addDynamicMarker=function(t,e){if(t.update){var n=this.$markerId++;return t.id=n,t.inFront=!!e,e?(this.$frontMarkers[n]=t,this._signal("changeFrontMarker")):(this.$backMarkers[n]=t,this._signal("changeBackMarker")),t}},this.removeMarker=function(t){var e=this.$frontMarkers[t]||this.$backMarkers[t];e&&(delete(e.inFront?this.$frontMarkers:this.$backMarkers)[t],this._signal(e.inFront?"changeFrontMarker":"changeBackMarker"))},this.getMarkers=function(t){return t?this.$frontMarkers:this.$backMarkers},this.highlight=function(t){if(!this.$searchHighlight){var e=new p(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(e)}this.$searchHighlight.setRegexp(t)},this.highlightLines=function(t,e,n,i){"number"!=typeof e&&(n=e,e=t),n=n||"ace_step";var r=new u(t,0,e,1/0);return r.id=this.addMarker(r,n,"fullLine",i),r},this.setAnnotations=function(t){this.$annotations=t,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(t){var e=t.match(/^.*?(\r?\n)/m);this.$autoNewLine=e?e[1]:"\n"},this.getWordRange=function(t,e){var n=this.getLine(t),i=!1;if(0<e&&(i=!!n.charAt(e-1).match(this.tokenRe)),i=i||!!n.charAt(e).match(this.tokenRe))var r=this.tokenRe;else r=/^\s+$/.test(n.slice(e-1,e+1))?/\s/:this.nonTokenRe;var o=e;if(0<o){for(;0<=--o&&n.charAt(o).match(r););o++}for(var a=e;a<n.length&&n.charAt(a).match(r);)a++;return new u(t,o,t,a)},this.getAWordRange=function(t,e){for(var n=this.getWordRange(t,e),i=this.getLine(n.end.row);i.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(t){this.doc.setNewLineMode(t)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(t){this.setOption("useWorker",t)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(t){var e=t.data;this.bgTokenizer.start(e.first),this._signal("tokenizerUpdate",t)},this.$modes=a.$modes,this.$mode=null,this.$modeId=null,this.setMode=function(t,e){if(t&&"object"==typeof t){if(t.getTokenizer)return this.$onChangeMode(t);var n=t,i=n.path}else i=t||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new c),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(e&&e());this.$modeId=i,a.loadModule(["mode",i],function(t){if(this.$modeId!==i)return e&&e();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):t&&t.Mode&&(t=new t.Mode(n),n||((this.$modes[i]=t).$id=i),this.$onChangeMode(t)),e&&e()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(t,e){if(e||(this.$modeId=t.$id),this.$mode!==t){this.$mode=t,this.$stopWorker(),this.$useWorker&&this.$startWorker();var n=t.getTokenizer();if(void 0!==n.addEventListener){var i=this.onReloadTokenizer.bind(this);n.addEventListener("update",i)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=new d(n);var r=this;this.bgTokenizer.addEventListener("update",(function(t){r._signal("tokenizerUpdate",t)}))}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=t.tokenRe,this.nonTokenRe=t.nonTokenRe,e||(t.attachToSession&&t.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(t.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(t){a.warn("Could not load worker",t),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(t){this.$scrollTop===t||isNaN(t)||(this.$scrollTop=t,this._signal("changeScrollTop",t))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(t){this.$scrollLeft===t||isNaN(t)||(this.$scrollLeft=t,this._signal("changeScrollLeft",t))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var t=0;return this.lineWidgets.forEach((function(e){e&&e.screenWidth>t&&(t=e.screenWidth)})),this.lineWidgetWidth=t},this.$computeWidth=function(t){if(this.$modified||t){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var e=this.doc.getAllLines(),n=this.$rowLengthCache,i=0,r=0,o=this.$foldData[r],a=o?o.start.row:1/0,s=e.length,l=0;l<s;l++){if(a<l){if(s<=(l=o.end.row+1))break;a=(o=this.$foldData[r++])?o.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(e[l])[0]),n[l]>i&&(i=n[l])}this.screenWidth=i}},this.getLine=function(t){return this.doc.getLine(t)},this.getLines=function(t,e){return this.doc.getLines(t,e)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(t){return this.doc.getTextRange(t||this.selection.getRange())},this.insert=function(t,e){return this.doc.insert(t,e)},this.remove=function(t){return this.doc.remove(t)},this.removeFullLines=function(t,e){return this.doc.removeFullLines(t,e)},this.undoChanges=function(t,e){if(t.length){this.$fromUndo=!0;for(var n=t.length-1;-1!=n;n--){var i=t[n];"insert"==i.action||"remove"==i.action?this.doc.revertDelta(i):i.folds&&this.addFolds(i.folds)}!e&&this.$undoSelect&&(t.selectionBefore?this.selection.fromJSON(t.selectionBefore):this.selection.setRange(this.$getUndoSelection(t,!0))),this.$fromUndo=!1}},this.redoChanges=function(t,e){if(t.length){this.$fromUndo=!0;for(var n=0;n<t.length;n++){var i=t[n];"insert"!=i.action&&"remove"!=i.action||this.doc.applyDelta(i)}!e&&this.$undoSelect&&(t.selectionAfter?this.selection.fromJSON(t.selectionAfter):this.selection.setRange(this.$getUndoSelection(t,!1))),this.$fromUndo=!1}},this.setUndoSelect=function(t){this.$undoSelect=t},this.$getUndoSelection=function(t,e){function n(t){return e?"insert"!==t.action:"insert"===t.action}for(var i,r,o=0;o<t.length;o++){var a=t[o];a.start&&(i?n(a)?(r=a.start,-1==i.compare(r.row,r.column)&&i.setStart(r),r=a.end,1==i.compare(r.row,r.column)&&i.setEnd(r)):(r=a.start,-1==i.compare(r.row,r.column)&&(i=u.fromPoints(a.start,a.start))):i=n(a)?u.fromPoints(a.start,a.end):u.fromPoints(a.start,a.start))}return i},this.replace=function(t,e){return this.doc.replace(t,e)},this.moveText=function(t,e,n){var i=this.getTextRange(t),r=this.getFoldsInRange(t),o=u.fromPoints(e,e);if(!n){this.remove(t);var a=t.start.row-t.end.row;(c=a?-t.end.column:t.start.column-t.end.column)&&(o.start.row==t.end.row&&o.start.column>t.end.column&&(o.start.column+=c),o.end.row==t.end.row&&o.end.column>t.end.column&&(o.end.column+=c)),a&&o.start.row>=t.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,i),r.length){var s=t.start,l=o.start,c=(a=l.row-s.row,l.column-s.column);this.addFolds(r.map((function(t){return(t=t.clone()).start.row==s.row&&(t.start.column+=c),t.end.row==s.row&&(t.end.column+=c),t.start.row+=a,t.end.row+=a,t})))}return o},this.indentRows=function(t,e,n){n=n.replace(/\t/g,this.getTabString());for(var i=t;i<=e;i++)this.doc.insertInLine({row:i,column:0},n)},this.outdentRows=function(t){for(var e=t.collapseRows(),n=new u(0,0,0,0),i=this.getTabSize(),r=e.start.row;r<=e.end.row;++r){var o=this.getLine(r);n.start.row=r,n.end.row=r;for(var a=0;a<i&&" "==o.charAt(a);++a);a<i&&"\t"==o.charAt(a)?(n.start.column=a,n.end.column=a+1):(n.start.column=0,n.end.column=a),this.remove(n)}},this.$moveLines=function(t,e,n){if(t=this.getRowFoldStart(t),e=this.getRowFoldEnd(e),n<0){if((r=this.getRowFoldStart(t+n))<0)return 0;var i=r-t}else if(0<n){var r;if((r=this.getRowFoldEnd(e+n))>this.doc.getLength()-1)return 0;i=r-e}else t=this.$clipRowToDocument(t),i=(e=this.$clipRowToDocument(e))-t+1;var o=new u(t,0,e,Number.MAX_VALUE),a=this.getFoldsInRange(o).map((function(t){return(t=t.clone()).start.row+=i,t.end.row+=i,t})),s=0==n?this.doc.getLines(t,e):this.doc.removeFullLines(t,e);return this.doc.insertFullLines(t+i,s),a.length&&this.addFolds(a),i},this.moveLinesUp=function(t,e){return this.$moveLines(t,e,-1)},this.moveLinesDown=function(t,e){return this.$moveLines(t,e,1)},this.duplicateLines=function(t,e){return this.$moveLines(t,e,0)},this.$clipRowToDocument=function(t){return Math.max(0,Math.min(t,this.doc.getLength()-1))},this.$clipColumnToRow=function(t,e){return e<0?0:Math.min(this.doc.getLine(t).length,e)},this.$clipPositionToDocument=function(t,e){if(e=Math.max(0,e),t<0)e=t=0;else{var n=this.doc.getLength();e=n<=t?(t=n-1,this.doc.getLine(n-1).length):Math.min(this.doc.getLine(t).length,e)}return{row:t,column:e}},this.$clipRangeToDocument=function(t){t.start.row<0?(t.start.row=0,t.start.column=0):t.start.column=this.$clipColumnToRow(t.start.row,t.start.column);var e=this.doc.getLength()-1;return t.end.row>e?(t.end.row=e,t.end.column=this.doc.getLine(e).length):t.end.column=this.$clipColumnToRow(t.end.row,t.end.column),t},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(t){if(t!=this.$useWrapMode){if(this.$useWrapMode=t,this.$modified=!0,this.$resetRowCache(0),t){var e=this.getLength();this.$wrapData=Array(e),this.$updateWrapData(0,e-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(t,e){this.$wrapLimitRange.min===t&&this.$wrapLimitRange.max===e||(this.$wrapLimitRange={min:t,max:e},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(t,e){var n=this.$wrapLimitRange;n.max<0&&(n={min:e,max:e});var i=this.$constrainWrapLimit(t,n.min,n.max);return i!=this.$wrapLimit&&1<i&&(this.$wrapLimit=i,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(t,e,n){return e&&(t=Math.max(e,t)),n&&(t=Math.min(n,t)),t},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(t){this.setWrapLimitRange(t,t)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(t){var e=this.$useWrapMode,n=t.action,i=t.start,r=t.end,o=i.row,a=r.row,s=a-o,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[e?"$wrapData":"$rowLengthCache"].splice(o,s);var c=this.$foldData;l=this.getFoldsInRange(t),this.removeFolds(l);var u=0;if(g=this.getFoldLine(r.row)){g.addRemoveChars(r.row,r.column,i.column-r.column),g.shiftRow(-s);var h=this.getFoldLine(o);h&&h!==g&&(h.merge(g),g=h),u=c.indexOf(g)+1}for(;u<c.length;u++)(g=c[u]).start.row>=r.row&&g.shiftRow(-s);a=o}else{var d=Array(s);d.unshift(o,0);var p=e?this.$wrapData:this.$rowLengthCache;if(p.splice.apply(p,d),c=this.$foldData,u=0,g=this.getFoldLine(o)){var f=g.range.compareInside(i.row,i.column);0==f?(g=g.split(i.row,i.column))&&(g.shiftRow(s),g.addRemoveChars(a,0,r.column-i.column)):-1==f&&(g.addRemoveChars(o,0,r.column-i.column),g.shiftRow(s)),u=c.indexOf(g)+1}for(;u<c.length;u++){var g;(g=c[u]).start.row>=o&&g.shiftRow(s)}}else s=Math.abs(t.start.column-t.end.column),"remove"===n&&(l=this.getFoldsInRange(t),this.removeFolds(l),s=-s),(g=this.getFoldLine(o))&&g.addRemoveChars(o,i.column,s);return e&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,e?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),l},this.$updateRowLengthCache=function(t,e,n){this.$rowLengthCache[t]=null,this.$rowLengthCache[e]=null},this.$updateWrapData=function(t,i){var r,o,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,u=t;for(i=Math.min(i,a.length-1);u<=i;)(o=this.getFoldLine(u,o))?(r=[],o.walk(function(t,i,o,s){var l;if(null!=t){(l=this.$getDisplayTokens(t,r.length))[0]=e;for(var c=1;c<l.length;c++)l[c]=n}else l=this.$getDisplayTokens(a[i].substring(s,o),r.length);r=r.concat(l)}.bind(this),o.end.row,a[o.end.row].length+1),l[o.start.row]=this.$computeWrapSplits(r,c,s),u=o.end.row+1):(r=this.$getDisplayTokens(a[u]),l[u]=this.$computeWrapSplits(r,c,s),u++)};var e=3,n=4;this.$computeWrapSplits=function(t,i,r){function o(e){for(var n=e-l,i=l;i<e;i++){var o=t[i];12!==o&&2!==o||--n}a.length||(p=function(){var e=0;if(0===d)return e;if(h)for(var n=0;n<t.length;n++){var i=t[n];if(10==i)e+=1;else{if(11!=i){if(12==i)continue;break}e+=r}}return u&&!1!==h&&(e+=r),Math.min(e,d)}(),a.indent=p),c+=n,a.push(c),l=e}if(0==t.length)return[];for(var a=[],s=t.length,l=0,c=0,u=this.$wrapAsCode,h=this.$indentedSoftWrap,d=i<=Math.max(2*r,8)||!1===h?0:Math.floor(i/2),p=0;i-p<s-l;){var f=l+i-p;if(10<=t[f-1]&&10<=t[f])o(f);else if(t[f]!=e&&t[f]!=n){for(var g=Math.max(f-(i-(i>>2)),l-1);g<f&&t[f]<e;)f--;if(u){for(;g<f&&t[f]<e;)f--;for(;g<f&&9==t[f];)f--}else for(;g<f&&t[f]<10;)f--;g<f?o(++f):(2==t[f=l+i]&&f--,o(f-p))}else{for(;f!=l-1&&t[f]!=e;f--);if(l<f){o(f);continue}for(f=l+i;f<t.length&&t[f]==n;f++);if(f==t.length)break;o(f)}}return a},this.$getDisplayTokens=function(e,n){var i,r=[];n=n||0;for(var o=0;o<e.length;o++){var a=e.charCodeAt(o);if(9==a){i=this.getScreenTabSize(r.length+n),r.push(11);for(var s=1;s<i;s++)r.push(12)}else 32==a?r.push(10):39<a&&a<48||57<a&&a<64?r.push(9):4352<=a&&t(a)?r.push(1,2):r.push(1)}return r},this.$getStringScreenWidth=function(e,n,i){if(0==n)return[0,0];var r,o;for(null==n&&(n=1/0),i=i||0,o=0;o<e.length&&(9==(r=e.charCodeAt(o))?i+=this.getScreenTabSize(i):4352<=r&&t(r)?i+=2:i+=1,!(n<i));o++);return[i,o]},this.lineWidgets=null,this.getRowLength=function(t){var e=1;return this.lineWidgets&&(e+=this.lineWidgets[t]&&this.lineWidgets[t].rowCount||0),this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+e:e},this.getRowLineCount=function(t){return this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+1:1},this.getRowWrapIndent=function(t){if(this.$useWrapMode){var e=this.screenToDocumentPosition(t,Number.MAX_VALUE),n=this.$wrapData[e.row];return n.length&&n[0]<e.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(t){var e=this.screenToDocumentPosition(t,Number.MAX_VALUE);return this.documentToScreenColumn(e.row,e.column)},this.getDocumentLastRowColumn=function(t,e){var n=this.documentToScreenRow(t,e);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(t,e){var n=this.documentToScreenRow(t,e);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(t){return this.$useWrapMode?this.$wrapData[t]:void 0},this.getScreenTabSize=function(t){return this.$tabSize-(t%this.$tabSize|0)},this.screenToDocumentRow=function(t,e){return this.screenToDocumentPosition(t,e).row},this.screenToDocumentColumn=function(t,e){return this.screenToDocumentPosition(t,e).column},this.screenToDocumentPosition=function(t,e,n){if(t<0)return{row:0,column:0};var i,r,o=0,a=0,s=0,l=0,c=this.$screenRowCache,u=this.$getRowCacheIndex(c,t),h=c.length;if(h&&0<=u){s=c[u],o=this.$docRowCache[u];var d=t>c[h-1]}else d=!h;for(var p=this.getLength()-1,f=this.getNextFoldLine(o),g=f?f.start.row:1/0;s<=t&&!(t<s+(l=this.getRowLength(o))||p<=o);)s+=l,g<++o&&(o=f.end.row+1,g=(f=this.getNextFoldLine(o,f))?f.start.row:1/0),d&&(this.$docRowCache.push(o),this.$screenRowCache.push(s));if(f&&f.start.row<=o)i=this.getFoldDisplayLine(f),o=f.start.row;else{if(s+l<=t||p<o)return{row:p,column:this.getLine(p).length};i=this.getLine(o),f=null}var m=0,v=Math.floor(t-s);if(this.$useWrapMode){var y=this.$wrapData[o];y&&(r=y[v],0<v&&y.length&&(m=y.indent,a=y[v-1]||y[y.length-1],i=i.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,o,v)&&(e=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(i,e-m)[1],this.$useWrapMode&&r<=a&&(a=r-1),f?f.idxToPosition(a):{row:o,column:a}},this.documentToScreenPosition=function(t,e){if(void 0===e)var n=this.$clipPositionToDocument(t.row,t.column);else n=this.$clipPositionToDocument(t,e);t=n.row,e=n.column;var i,r=0,o=null;(i=this.getFoldAt(t,e,1))&&(t=i.start.row,e=i.start.column);var a,s=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,t),u=l.length;if(u&&0<=c){s=l[c],r=this.$screenRowCache[c];var h=t>l[u-1]}else h=!u;for(var d=this.getNextFoldLine(s),p=d?d.start.row:1/0;s<t;){if(p<=s){if(t<(a=d.end.row+1))break;p=(d=this.getNextFoldLine(a,d))?d.start.row:1/0}else a=s+1;r+=this.getRowLength(s),s=a,h&&(this.$docRowCache.push(s),this.$screenRowCache.push(r))}var f="";o=d&&p<=s?(f=this.getFoldDisplayLine(d,t,e),d.start.row):(f=this.getLine(t).substring(0,e),t);var g=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){for(var v=0;f.length>=m[v];)r++,v++;f=f.substring(m[v-1]||0,f.length),g=0<v?m.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(r+=this.lineWidgets[s].rowsAbove),{row:r,column:g+this.$getStringScreenWidth(f)[0]}},this.documentToScreenColumn=function(t,e){return this.documentToScreenPosition(t,e).column},this.documentToScreenRow=function(t,e){return this.documentToScreenPosition(t,e).row},this.getScreenLength=function(){var t=0,e=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,i=0,r=(s=0,(e=this.$foldData[s++])?e.start.row:1/0);i<n;){var o=this.$wrapData[i];t+=o?o.length+1:1,r<++i&&(i=e.end.row+1,r=(e=this.$foldData[s++])?e.start.row:1/0)}else{t=this.getLength();for(var a=this.$foldData,s=0;s<a.length;s++)t-=(e=a[s]).end.row-e.start.row}return this.lineWidgets&&(t+=this.$getWidgetScreenLength()),t},this.$setFontMetrics=function(t){this.$enableVarChar&&(this.$getStringScreenWidth=function(e,n,i){if(0===n)return[0,0];var r,o;for(n=n||1/0,i=i||0,o=0;o<e.length&&!(n<(i+="\t"===(r=e.charAt(o))?this.getScreenTabSize(i):t.getCharacterWidth(r)));o++);return[i,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=t}.call(f.prototype),t("./edit_session/folding").Folding.call(f.prototype),t("./edit_session/bracket_match").BracketMatch.call(f.prototype),a.defineOptions(f.prototype,"session",{wrap:{set:function(t){if(t&&"off"!=t?"free"==t?t=!0:"printMargin"==t?t=-1:"string"==typeof t&&(t=parseInt(t,10)||!1):t=!1,this.$wrap!=t)if(this.$wrap=t){var e="number"==typeof t?t:null;this.setWrapLimitRange(e,e),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(t){(t="auto"==t?"text"!=this.$mode.type:"text"!=t)!=this.$wrapAsCode&&(this.$wrapAsCode=t,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(t){this.$useWorker=t,this.$stopWorker(),t&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(t){0<(t=parseInt(t))&&this.$tabSize!==t&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=t,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(t){this.setFoldStyle(t)},handlesSet:!0},overwrite:{set:function(t){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(t){this.doc.setNewLineMode(t)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(t){this.setMode(t)},get:function(){return this.$modeId},handlesSet:!0}}),e.EditSession=f})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(t,e,n){"use strict";function i(){this.$options={}}var r=t("./lib/lang"),o=t("./lib/oop"),a=t("./range").Range;(function(){this.set=function(t){return o.mixin(this.$options,t),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(t){this.$options=t},this.find=function(t){var e=this.$options,n=this.$matchIterator(t,e);if(!n)return!1;var i=null;return n.forEach((function(t,n,r,o){return i=new a(t,n,r,o),!(n==o&&e.start&&e.start.start&&0!=e.skipCurrent&&i.isEqual(e.start)&&(i=null,1))})),i},this.findAll=function(t){var e=this.$options;if(!e.needle)return[];this.$assembleRegExp(e);var n=e.range,i=n?t.getLines(n.start.row,n.end.row):t.doc.getAllLines(),o=[],s=e.re;if(e.$isMultiLine){var l,c=s.length,u=i.length-c;t:for(var h=s.offset||0;h<=u;h++){for(var d=0;d<c;d++)if(-1==i[h+d].search(s[d]))continue t;var p=i[h],f=i[h+c-1],g=p.length-p.match(s[0])[0].length,m=f.match(s[c-1])[0].length;l&&l.end.row===h&&l.end.column>g||(o.push(l=new a(h,g,h+c-1,m)),2<c&&(h=h+c-2))}}else for(var v=0;v<i.length;v++){var y=r.getMatchOffsets(i[v],s);for(d=0;d<y.length;d++){var b=y[d];o.push(new a(v,b.offset,v,b.offset+b.length))}}if(n){var x=n.start.column,w=n.start.column;for(v=0,d=o.length-1;v<d&&o[v].start.column<x&&o[v].start.row==n.start.row;)v++;for(;v<d&&o[d].end.column>w&&o[d].end.row==n.end.row;)d--;for(o=o.slice(v,d+1),v=0,d=o.length;v<d;v++)o[v].start.row+=n.start.row,o[v].end.row+=n.start.row}return o},this.replace=function(t,e){var n=this.$options,i=this.$assembleRegExp(n);if(n.$isMultiLine)return e;if(i){var r=i.exec(t);if(!r||r[0].length!=t.length)return null;if(e=t.replace(i,e),n.preserveCase){e=e.split("");for(var o=Math.min(t.length,t.length);o--;){var a=t[o];a&&a.toLowerCase()!=a?e[o]=e[o].toUpperCase():e[o]=e[o].toLowerCase()}e=e.join("")}return e}},this.$assembleRegExp=function(t,e){function n(t){return/\w/.test(t)||o.regExp?"\\b":""}if(t.needle instanceof RegExp)return t.re=t.needle;var i,o,a=t.needle;if(!t.needle)return t.re=!1;t.regExp||(a=r.escapeRegExp(a)),t.wholeWord&&(o=t,a=n((i=a)[0])+i+n(i[i.length-1]));var s=t.caseSensitive?"gm":"gmi";if(t.$isMultiLine=!e&&/[\n\r]/.test(a),t.$isMultiLine)return t.re=this.$assembleMultilineRegExp(a,s);try{var l=new RegExp(a,s)}catch(t){l=!1}return t.re=l},this.$assembleMultilineRegExp=function(t,e){for(var n=t.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),i=[],r=0;r<n.length;r++)try{i.push(new RegExp(n[r],e))}catch(t){return!1}return i},this.$matchIterator=function(t,e){var n=this.$assembleRegExp(e);if(!n)return!1;var i=1==e.backwards,r=0!=e.skipCurrent,o=e.range,a=e.start;(a=a||(o?o[i?"end":"start"]:t.selection.getRange())).start&&(a=a[r!=i?"end":"start"]);var s=o?o.start.row:0,l=o?o.end.row:t.getLength()-1;if(i)var c=function(t){var n=a.row;if(!h(n,a.column,t)){for(n--;s<=n;n--)if(h(n,Number.MAX_VALUE,t))return;if(0!=e.wrap)for(n=l,s=a.row;s<=n;n--)if(h(n,Number.MAX_VALUE,t))return}};else c=function(t){var n=a.row;if(!h(n,a.column,t)){for(n+=1;n<=l;n++)if(h(n,0,t))return;if(0!=e.wrap)for(n=s,l=a.row;n<=l;n++)if(h(n,0,t))return}};if(e.$isMultiLine)var u=n.length,h=function(e,r,o){var a=i?e-u+1:e;if(!(a<0)){var s=t.getLine(a),l=s.search(n[0]);if(!(!i&&l<r||-1===l)){for(var c=1;c<u;c++)if(-1==(s=t.getLine(a+c)).search(n[c]))return;var h=s.match(n[u-1])[0].length;if(!(i&&r<h))return!!o(a,l,a+u-1,h)||void 0}}};else h=i?function(e,i,r){var o,a=t.getLine(e),s=[],l=0;for(n.lastIndex=0;o=n.exec(a);){var c=o[0].length;if(l=o.index,!c){if(l>=a.length)break;n.lastIndex=l+=1}if(o.index+c>i)break;s.push(o.index,c)}for(var u=s.length-1;0<=u;u-=2){var h=s[u-1];if(r(e,h,e,h+(c=s[u])))return!0}}:function(e,i,r){var o,a,s=t.getLine(e);for(n.lastIndex=i;a=n.exec(s);){var l=a[0].length;if(r(e,o=a.index,e,o+l))return!0;if(!l&&(n.lastIndex=o+=1,o>=s.length))return!1}};return{forEach:c}}}).call(i.prototype),e.Search=i})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(t,e,n){"use strict";function i(t,e){this.platform=e||(a.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function r(t,e){i.call(this,t,e),this.$singleCommand=!1}var o=t("../lib/keys"),a=t("../lib/useragent"),s=o.KEY_MODS;r.prototype=i.prototype,function(){function t(t){return"object"==typeof t&&t.bindKey&&t.bindKey.position||(t.isDefault?-100:0)}this.addCommand=function(t){this.commands[t.name]&&this.removeCommand(t),(this.commands[t.name]=t).bindKey&&this._buildKeyHash(t)},this.removeCommand=function(t,e){var n=t&&("string"==typeof t?t:t.name);t=this.commands[n],e||delete this.commands[n];var i=this.commandKeyBinding;for(var r in i){var o=i[r];if(o==t)delete i[r];else if(Array.isArray(o)){var a=o.indexOf(t);-1!=a&&(o.splice(a,1),1==o.length&&(i[r]=o[0]))}}},this.bindKey=function(t,e,n){if("object"==typeof t&&t&&(null==n&&(n=t.position),t=t[this.platform]),t)return"function"==typeof e?this.addCommand({exec:e,bindKey:t,name:e.name||t}):void t.split("|").forEach((function(t){var i="";if(-1!=t.indexOf(" ")){var r=t.split(/\s+/);t=r.pop(),r.forEach((function(t){var e=this.parseKeys(t),n=s[e.hashId]+e.key;i+=(i?" ":"")+n,this._addCommandToBinding(i,"chainKeys")}),this),i+=" "}var o=this.parseKeys(t),a=s[o.hashId]+o.key;this._addCommandToBinding(i+a,e,n)}),this)},this._addCommandToBinding=function(e,n,i){var r,o=this.commandKeyBinding;if(n)if(!o[e]||this.$singleCommand)o[e]=n;else{Array.isArray(o[e])?-1!=(r=o[e].indexOf(n))&&o[e].splice(r,1):o[e]=[o[e]],"number"!=typeof i&&(i=t(n));var a=o[e];for(r=0;r<a.length&&!(i<t(a[r]));r++);a.splice(r,0,n)}else delete o[e]},this.addCommands=function(t){t&&Object.keys(t).forEach((function(e){var n=t[e];if(n){if("string"==typeof n)return this.bindKey(n,e);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=e),this.addCommand(n))}}),this)},this.removeCommands=function(t){Object.keys(t).forEach((function(e){this.removeCommand(t[e])}),this)},this.bindKeys=function(t){Object.keys(t).forEach((function(e){this.bindKey(e,t[e])}),this)},this._buildKeyHash=function(t){this.bindKey(t.bindKey,t)},this.parseKeys=function(t){var e=t.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(t){return t})),n=e.pop(),i=o[n];if(o.FUNCTION_KEYS[i])n=o.FUNCTION_KEYS[i].toLowerCase();else{if(!e.length)return{key:n,hashId:-1};if(1==e.length&&"shift"==e[0])return{key:n.toUpperCase(),hashId:-1}}for(var r=0,a=e.length;a--;){var s=o.KEY_MODS[e[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+e[a]+" in "+t),!1;r|=s}return{key:n,hashId:r}},this.findKeyCommand=function(t,e){var n=s[t]+e;return this.commandKeyBinding[n]},this.handleKeyboard=function(t,e,n,i){if(!(i<0)){var r=s[e]+n,o=this.commandKeyBinding[r];return t.$keyChain&&(t.$keyChain+=" "+r,o=this.commandKeyBinding[t.$keyChain]||o),!o||"chainKeys"!=o&&"chainKeys"!=o[o.length-1]?(t.$keyChain&&(e&&4!=e||1!=n.length?(-1==e||0<i)&&(t.$keyChain=""):t.$keyChain=t.$keyChain.slice(0,-r.length-1)),{command:o}):(t.$keyChain=t.$keyChain||r,{command:"null"})}},this.getStatusText=function(t,e){return e.$keyChain||""}}.call(i.prototype),e.HashHandler=i,e.MultiHashHandler=r})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(t,e,n){"use strict";function i(t,e){o.call(this,e,t),this.byName=this.commands,this.setDefaultHandler("exec",(function(t){return t.command.exec(t.editor,t.args||{})}))}var r=t("../lib/oop"),o=t("../keyboard/hash_handler").MultiHashHandler,a=t("../lib/event_emitter").EventEmitter;r.inherits(i,o),function(){r.implement(this,a),this.exec=function(t,e,n){if(Array.isArray(t)){for(var i=t.length;i--;)if(this.exec(t[i],e,n))return!0;return!1}if("string"==typeof t&&(t=this.commands[t]),!t)return!1;if(e&&e.$readOnly&&!t.readOnly)return!1;if(0!=this.$checkCommandState&&t.isAvailable&&!t.isAvailable(e))return!1;var r={editor:e,command:t,args:n};return r.returnValue=this._emit("exec",r),this._signal("afterExec",r),!1!==r.returnValue},this.toggleRecording=function(t){if(!this.$inReplay)return t&&t._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(t){this.macro.push([t.command,t.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach((function(e){"string"==typeof e?this.exec(e,t):this.exec(e[0],t,e[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(t){return t.map((function(t){return"string"!=typeof t[0]&&(t[0]=t[0].name),t[1]||(t=t[0]),t}))}}.call(i.prototype),e.CommandManager=i})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(t,e,n){"use strict";function i(t,e){return{win:t,mac:e}}var r=t("../lib/lang"),o=t("../config"),a=t("../range").Range;e.commands=[{name:"showSettingsMenu",bindKey:i("Ctrl-,","Command-,"),exec:function(t){o.loadModule("ace/ext/settings_menu",(function(e){e.init(t),t.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:i("Alt-E","F4"),exec:function(t){o.loadModule("./ext/error_marker",(function(e){e.showErrorMarker(t,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:i("Alt-Shift-E","Shift-F4"),exec:function(t){o.loadModule("./ext/error_marker",(function(e){e.showErrorMarker(t,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:i("Ctrl-A","Command-A"),exec:function(t){t.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:i(null,"Ctrl-L"),exec:function(t){t.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:i("Ctrl-L","Command-L"),exec:function(t,e){"number"!=typeof e||isNaN(e)||t.gotoLine(e),t.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:i("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(t){t.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:i("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(t){t.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:i("F2","F2"),exec:function(t){t.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:i("Alt-F2","Alt-F2"),exec:function(t){t.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:i(null,"Ctrl-Command-Option-0"),exec:function(t){t.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:i("Alt-0","Command-Option-0"),exec:function(t){t.session.foldAll(),t.session.unfold(t.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:i("Alt-Shift-0","Command-Option-Shift-0"),exec:function(t){t.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:i("Ctrl-K","Command-G"),exec:function(t){t.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:i("Ctrl-Shift-K","Command-Shift-G"),exec:function(t){t.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:i("Alt-K","Ctrl-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:i("Alt-Shift-K","Ctrl-Shift-G"),exec:function(t){t.selection.isEmpty()?t.selection.selectWord():t.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:i("Ctrl-F","Command-F"),exec:function(t){o.loadModule("ace/ext/searchbox",(function(e){e.Search(t)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(t){t.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:i("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(t){t.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:i("Ctrl-Home","Command-Home|Command-Up"),exec:function(t){t.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:i("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(t){t.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:i("Up","Up|Ctrl-P"),exec:function(t,e){t.navigateUp(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:i("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(t){t.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:i("Ctrl-End","Command-End|Command-Down"),exec:function(t){t.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:i("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(t){t.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:i("Down","Down|Ctrl-N"),exec:function(t,e){t.navigateDown(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:i("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(t){t.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:i("Ctrl-Left","Option-Left"),exec:function(t){t.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:i("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:i("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(t){t.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:i("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(t){t.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:i("Left","Left|Ctrl-B"),exec:function(t,e){t.navigateLeft(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:i("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(t){t.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:i("Ctrl-Right","Option-Right"),exec:function(t){t.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:i("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:i("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(t){t.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:i("Shift-Right","Shift-Right"),exec:function(t){t.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:i("Right","Right|Ctrl-F"),exec:function(t,e){t.navigateRight(e.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(t){t.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:i(null,"Option-PageDown"),exec:function(t){t.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:i("PageDown","PageDown|Ctrl-V"),exec:function(t){t.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(t){t.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:i(null,"Option-PageUp"),exec:function(t){t.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(t){t.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:i("Ctrl-Up",null),exec:function(t){t.renderer.scrollBy(0,-2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:i("Ctrl-Down",null),exec:function(t){t.renderer.scrollBy(0,2*t.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(t){t.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(t){t.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:i("Ctrl-Alt-E","Command-Option-E"),exec:function(t){t.commands.toggleRecording(t)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:i("Ctrl-Shift-E","Command-Shift-E"),exec:function(t){t.commands.replay(t)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:i("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(t){t.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:i("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(t){t.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:i("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(t){t.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:i(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(t){},readOnly:!0},{name:"cut",description:"Cut",exec:function(t){var e=t.$copyWithEmptySelection&&t.selection.isEmpty()?t.selection.getLineRange():t.selection.getRange();t._emit("cut",e),e.isEmpty()||t.session.remove(e),t.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(t,e){t.$handlePaste(e)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:i("Ctrl-D","Command-D"),exec:function(t){t.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:i("Ctrl-Shift-D","Command-Shift-D"),exec:function(t){t.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:i("Ctrl-Alt-S","Command-Alt-S"),exec:function(t){t.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:i("Ctrl-/","Command-/"),exec:function(t){t.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:i("Ctrl-Shift-/","Command-Shift-/"),exec:function(t){t.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:i("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(t){t.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:i("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(t){t.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:i("Ctrl-H","Command-Option-F"),exec:function(t){o.loadModule("ace/ext/searchbox",(function(e){e.Search(t,!0)}))}},{name:"undo",description:"Undo",bindKey:i("Ctrl-Z","Command-Z"),exec:function(t){t.undo()}},{name:"redo",description:"Redo",bindKey:i("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(t){t.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:i("Alt-Shift-Up","Command-Option-Up"),exec:function(t){t.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:i("Alt-Up","Option-Up"),exec:function(t){t.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:i("Alt-Shift-Down","Command-Option-Down"),exec:function(t){t.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:i("Alt-Down","Option-Down"),exec:function(t){t.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:i("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(t){t.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:i("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(t){t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:i("Shift-Delete",null),exec:function(t){if(!t.selection.isEmpty())return!1;t.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:i("Alt-Backspace","Command-Backspace"),exec:function(t){t.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:i("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(t){t.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:i("Ctrl-Shift-Backspace",null),exec:function(t){var e=t.selection.getRange();e.start.column=0,t.session.remove(e)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:i("Ctrl-Shift-Delete",null),exec:function(t){var e=t.selection.getRange();e.end.column=Number.MAX_VALUE,t.session.remove(e)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:i("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(t){t.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:i("Ctrl-Delete","Alt-Delete"),exec:function(t){t.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:i("Shift-Tab","Shift-Tab"),exec:function(t){t.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:i("Tab","Tab"),exec:function(t){t.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:i("Ctrl-[","Ctrl-["),exec:function(t){t.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:i("Ctrl-]","Ctrl-]"),exec:function(t){t.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(t,e){t.insert(e)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(t,e){t.insert(r.stringRepeat(e.text||"",e.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:i(null,"Ctrl-O"),exec:function(t){t.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:i("Alt-Shift-X","Ctrl-T"),exec:function(t){t.transposeLetters()},multiSelectAction:function(t){t.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:i("Ctrl-U","Ctrl-U"),exec:function(t){t.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:i("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(t){t.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",description:"Expand to line",bindKey:i("Ctrl-Shift-L","Command-Shift-L"),exec:function(t){var e=t.selection.getRange();e.start.column=e.end.column=0,e.end.row++,t.selection.setRange(e,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:i(null,null),exec:function(t){for(var e=t.selection.isBackwards(),n=e?t.selection.getSelectionLead():t.selection.getSelectionAnchor(),i=e?t.selection.getSelectionAnchor():t.selection.getSelectionLead(),o=t.session.doc.getLine(n.row).length,s=t.session.doc.getTextRange(t.selection.getRange()).replace(/\n\s*/," ").length,l=t.session.doc.getLine(n.row),c=n.row+1;c<=i.row+1;c++){var u=r.stringTrimLeft(r.stringTrimRight(t.session.doc.getLine(c)));0!==u.length&&(u=" "+u),l+=u}i.row+1<t.session.doc.getLength()-1&&(l+=t.session.doc.getNewLineCharacter()),t.clearSelection(),t.session.doc.replace(new a(n.row,0,i.row+2,0),l),0<s?(t.selection.moveCursorTo(n.row,n.column),t.selection.selectTo(n.row,n.column+s)):(o=t.session.doc.getLine(n.row).length>o?o+1:o,t.selection.moveCursorTo(n.row,o))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:i(null,null),exec:function(t){var e=t.session.doc.getLength()-1,n=t.session.doc.getLine(e).length,i=t.selection.rangeList.ranges,r=[];i.length<1&&(i=[t.selection.getRange()]);for(var o=0;o<i.length;o++)o==i.length-1&&(i[o].end.row===e&&i[o].end.column===n||r.push(new a(i[o].end.row,i[o].end.column,e,n))),0===o?0===i[o].start.row&&0===i[o].start.column||r.push(new a(0,0,i[o].start.row,i[o].start.column)):r.push(new a(i[o-1].end.row,i[o-1].end.column,i[o].start.row,i[o].start.column));for(t.exitMultiSelectMode(),t.clearSelection(),o=0;o<r.length;o++)t.selection.addRange(r[o],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",exec:function(t){t.selection.clearSelection(),t.navigateLineEnd(),t.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",exec:function(t){t.selection.clearSelection();var e=t.getCursorPosition();t.selection.moveTo(e.row-1,Number.MAX_VALUE),t.insert("\n"),0===e.row&&t.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command pallete",bindKey:i("F1","F1"),exec:function(t){t.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:i(null,null),exec:function(t){t.prompt({$type:"modes"})},readOnly:!0}]})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/clipboard"],(function(t,e,n){"use strict";t("./lib/fixoldbrowsers");var i=t("./lib/oop"),r=t("./lib/dom"),o=t("./lib/lang"),a=t("./lib/useragent"),s=t("./keyboard/textinput").TextInput,l=t("./mouse/mouse_handler").MouseHandler,c=t("./mouse/fold_handler").FoldHandler,u=t("./keyboard/keybinding").KeyBinding,h=t("./edit_session").EditSession,d=t("./search").Search,p=t("./range").Range,f=t("./lib/event_emitter").EventEmitter,g=t("./commands/command_manager").CommandManager,m=t("./commands/default_commands").commands,v=t("./config"),y=t("./token_iterator").TokenIterator,b=t("./clipboard"),x=function(t,e,n){var i=t.getContainerElement();this.container=i,this.renderer=t,this.id="editor"+ ++x.$uid,this.commands=new g(a.isMac?"mac":"win",m),"object"==typeof document&&(this.textInput=new s(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new u(this),this.$search=(new d).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(t,e){e._$emitInputEvent.schedule(31)})),this.setSession(e||n&&n.session||new h("")),v.resetOptions(this),n&&this.setOptions(n),v._signal("editor",this)};x.$uid=0,function(){i.implement(this,f),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(t){if(this.curOp){if(!t||this.curOp.command)return;this.prevOp=this.curOp}t||(this.previousCommand=null,t={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:t.command||{},args:t.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(t){if(this.curOp){if(t&&!1===t.returnValue)return this.curOp=null;if(1==t&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var e=this.curOp.command,n=e&&e.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var i=this.selection.getRange(),r=this.renderer.layerConfig;(i.start.row>=r.lastRow||i.end.row<=r.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(t){if(this.$mergeUndoDeltas){var e=this.prevOp,n=this.$mergeableCommands,i=e.command&&t.command.name==e.command.name;if("insertstring"==t.command.name){var r=t.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),i=i&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(e.args)),this.mergeNextCommand=!0}else i=i&&-1!==n.indexOf(t.command.name);"always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime&&(i=!1),i?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(t.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(t,e){if(t&&"string"==typeof t&&"ace"!=t){this.$keybindingId=t;var n=this;v.loadModule(["keybinding",t],(function(i){n.$keybindingId==t&&n.keyBinding.setKeyboardHandler(i&&i.handler),e&&e()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),e&&e()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(t){if(this.session!=t){this.curOp&&this.endOperation(),this.curOp={};var e=this.session;if(e){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}(this.session=t)?(this.$onDocumentChange=this.onDocumentChange.bind(this),t.on("change",this.$onDocumentChange),this.renderer.setSession(t),this.$onChangeMode=this.onChangeMode.bind(this),t.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),t.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),t.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),t.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),t.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),t.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=t.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(t)),this._signal("changeSession",{session:t,oldSession:e}),this.curOp=null,e&&e._signal("changeEditor",{oldEditor:this}),t&&t._signal("changeEditor",{editor:this}),t&&t.bgTokenizer&&t.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(t,e){return this.session.doc.setValue(t),e?1==e?this.navigateFileEnd():-1==e&&this.navigateFileStart():this.selectAll(),t},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(t){this.renderer.onResize(t)},this.setTheme=function(t,e){this.renderer.setTheme(t,e)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(t){this.renderer.setStyle(t)},this.unsetStyle=function(t){this.renderer.unsetStyle(t)},this.getFontSize=function(){return this.getOption("fontSize")||r.computedStyle(this.container).fontSize},this.setFontSize=function(t){this.setOption("fontSize",t)},this.$highlightBrackets=function(){if(!this.$highlightPending){var t=this;this.$highlightPending=!0,setTimeout((function(){t.$highlightPending=!1;var e=t.session;if(e&&e.bgTokenizer){e.$bracketHighlight&&(e.$bracketHighlight.markerIds.forEach((function(t){e.removeMarker(t)})),e.$bracketHighlight=null);var n=e.getMatchingBracketRanges(t.getCursorPosition());if(!n&&e.$mode.getMatching&&(n=e.$mode.getMatching(t.session)),n){var i="ace_bracket";Array.isArray(n)?1==n.length&&(i="ace_error_bracket"):n=[n],2==n.length&&(0==p.comparePoints(n[0].end,n[1].start)?n=[p.fromPoints(n[0].start,n[1].end)]:0==p.comparePoints(n[0].start,n[1].end)&&(n=[p.fromPoints(n[1].start,n[0].end)])),e.$bracketHighlight={ranges:n,markerIds:n.map((function(t){return e.addMarker(t,i,"text")}))}}}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var t=this;this.$highlightTagPending=!0,setTimeout((function(){t.$highlightTagPending=!1;var e=t.session;if(e&&e.bgTokenizer){var n=t.getCursorPosition(),i=new y(t.session,n.row,n.column),r=i.getCurrentToken();if(!r||!/\b(?:tag-open|tag-name)/.test(r.type))return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);if(-1==r.type.indexOf("tag-open")||(r=i.stepForward())){var o=r.value,a=0,s=i.stepBackward();if("<"==s.value)for(;s=r,(r=i.stepForward())&&r.value===o&&-1!==r.type.indexOf("tag-name")&&("<"===s.value?a++:"</"===s.value&&a--),r&&0<=a;);else{for(;r=s,s=i.stepBackward(),r&&r.value===o&&-1!==r.type.indexOf("tag-name")&&("<"===s.value?a++:"</"===s.value&&a--),s&&a<=0;);i.stepForward()}if(!r)return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);var l=i.getCurrentTokenRow(),c=i.getCurrentTokenColumn(),u=new p(l,c,l,c+r.value.length),h=e.$backMarkers[e.$tagHighlight];e.$tagHighlight&&null!=h&&0!==u.compareRange(h.range)&&(e.removeMarker(e.$tagHighlight),e.$tagHighlight=null),e.$tagHighlight||(e.$tagHighlight=e.addMarker(u,"ace_bracket","text"))}}}),50)}},this.focus=function(){var t=this;setTimeout((function(){t.isFocused()||t.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(t){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",t))},this.onBlur=function(t){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",t))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(t){var e=this.session.$useWrapMode,n=t.start.row==t.end.row?t.end.row:1/0;this.renderer.updateLines(t.start.row,n,e),this._signal("change",t),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(t){var e=t.data;this.renderer.updateLines(e.first,e.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var t,e=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(t=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(t=!1),!this.renderer.$maxLines||1!==this.session.getLength()||1<this.renderer.$minLines||(t=!1)),e.$highlightLineMarker&&!t)e.removeMarker(e.$highlightLineMarker.id),e.$highlightLineMarker=null;else if(!e.$highlightLineMarker&&t){var n=new p(t.row,t.column,t.row,1/0);n.id=e.addMarker(n,"ace_active-line","screenLine"),e.$highlightLineMarker=n}else t&&(e.$highlightLineMarker.start.row=t.row,e.$highlightLineMarker.end.row=t.row,e.$highlightLineMarker.start.column=t.column,e._signal("changeBackMarker"))},this.onSelectionChange=function(t){var e=this.session;if(e.$selectionMarker&&e.removeMarker(e.$selectionMarker),e.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),i=this.getSelectionStyle();e.$selectionMarker=e.addMarker(n,"ace_selection",i)}var r=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(r),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var t=this.session,e=this.getSelectionRange();if(!e.isEmpty()&&!e.isMultiLine()){var n=e.start.column,i=e.end.column,r=t.getLine(e.start.row),o=r.substring(n,i);if(!(5e3<o.length)&&/[\w\d]/.test(o)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),s=r.substring(n-1,i+1);if(a.test(s))return a}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(t){this.renderer.updateText(),this._emit("changeMode",t)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var t=this.getSelectedText(),e=this.session.doc.getNewLineCharacter(),n=!1;if(!t&&this.$copyWithEmptySelection){n=!0;for(var i=this.selection.getAllRanges(),r=0;r<i.length;r++){var o=i[r];r&&i[r-1].start.row==o.start.row||(t+=this.session.getLine(o.start.row)+e)}}var a={text:t};return this._signal("copy",a),b.lineMode=n?a.text:"",a.text},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(t,e){var n={text:t,event:e};this.commands.exec("paste",this,n)},this.$handlePaste=function(t){"string"==typeof t&&(t={text:t}),this._signal("paste",t);var e=t.text,n=e==b.lineMode,i=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?i.insert({row:this.selection.lead.row,column:0},e):this.insert(e);else if(n)this.selection.rangeList.ranges.forEach((function(t){i.insert({row:t.start.row,column:0},e)}));else{var r=e.split(/\r\n|\r|\n/),o=this.selection.rangeList.ranges,a=!(2!=r.length||r[0]&&r[1]);if(r.length!=o.length||a)return this.commands.exec("insertstring",this,e);for(var s=o.length;s--;){var l=o[s];l.isEmpty()||i.remove(l),i.insert(l.start,r[s])}}},this.execCommand=function(t,e){return this.commands.exec(t,this,e)},this.insert=function(t,e){var n=this.session,i=n.getMode(),r=this.getCursorPosition();if(this.getBehavioursEnabled()&&!e){var o=i.transformAction(n.getState(r.row),"insertion",this,n,t);o&&(t!==o.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),t=o.text)}if("\t"==t&&(t=this.session.getTabString()),this.selection.isEmpty())this.session.getOverwrite()&&-1==t.indexOf("\n")&&((a=new p.fromPoints(r,r)).end.column+=t.length,this.session.remove(a));else{var a=this.getSelectionRange();r=this.session.remove(a),this.clearSelection()}if("\n"==t||"\r\n"==t){var s=n.getLine(r.row);if(r.column>s.search(/\S|$/)){var l=s.substr(r.column).search(/\S|$/);n.doc.removeInLine(r.row,r.column,r.column+l)}}this.clearSelection();var c=r.column,u=n.getState(r.row),h=(s=n.getLine(r.row),i.checkOutdent(u,s,t));if(n.insert(r,t),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new p(r.row,c+o.selection[0],r.row,c+o.selection[1])):this.selection.setSelectionRange(new p(r.row+o.selection[0],o.selection[1],r.row+o.selection[2],o.selection[3]))),n.getDocument().isNewLine(t)){var d=i.getNextLineIndent(u,s.slice(0,r.column),n.getTabString());n.insert({row:r.row+1,column:0},d)}h&&i.autoOutdent(u,n,r.row)},this.onTextInput=function(t,e){if(!e)return this.keyBinding.onTextInput(t);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,t,e);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(t,e){var n;(e.extendLeft||e.extendRight)&&((n=this.selection.getRange()).start.column-=e.extendLeft,n.end.column+=e.extendRight,this.selection.setRange(n),t||n.isEmpty()||this.remove()),!t&&this.selection.isEmpty()||this.insert(t,!0),(e.restoreStart||e.restoreEnd)&&((n=this.selection.getRange()).start.column-=e.restoreStart,n.end.column-=e.restoreEnd,this.selection.setRange(n))},this.onCommandKey=function(t,e,n){return this.keyBinding.onCommandKey(t,e,n)},this.setOverwrite=function(t){this.session.setOverwrite(t)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(t){this.setOption("scrollSpeed",t)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(t){this.setOption("dragDelay",t)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(t){this.setOption("selectionStyle",t)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(t){this.setOption("highlightActiveLine",t)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(t){this.setOption("highlightGutterLine",t)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(t){this.setOption("highlightSelectedWord",t)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(t){this.renderer.setAnimatedScroll(t)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(t){this.renderer.setShowInvisibles(t)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(t){this.renderer.setDisplayIndentGuides(t)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(t){this.renderer.setShowPrintMargin(t)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(t){this.renderer.setPrintMarginColumn(t)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(t){this.setOption("readOnly",t)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(t){this.setOption("behavioursEnabled",t)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(t){this.setOption("wrapBehavioursEnabled",t)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(t){this.setOption("showFoldWidgets",t)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(t){this.setOption("fadeFoldWidgets",t)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(t){this.selection.isEmpty()&&("left"==t?this.selection.selectLeft():this.selection.selectRight());var e=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,i=n.getState(e.start.row),r=n.getMode().transformAction(i,"deletion",this,n,e);if(0===e.end.column){var o=n.getTextRange(e);if("\n"==o[o.length-1]){var a=n.getLine(e.end.row);/^\s+$/.test(a)&&(e.end.column=a.length)}}r&&(e=r)}this.session.remove(e),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var t=this.getSelectionRange();t.start.column==t.end.column&&t.start.row==t.end.row&&(t.end.column=0,t.end.row++),this.session.remove(t),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var t=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(t)},this.transposeLetters=function(){if(this.selection.isEmpty()){var t=this.getCursorPosition(),e=t.column;if(0!==e){var n,i,r=this.session.getLine(t.row);i=e<r.length?(n=r.charAt(e)+r.charAt(e-1),new p(t.row,e-1,t.row,e+1)):(n=r.charAt(e-1)+r.charAt(e-2),new p(t.row,e-2,t.row,e)),this.session.replace(i,n),this.session.selection.moveToPosition(i.end)}}},this.toLowerCase=function(){var t=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var e=this.getSelectionRange(),n=this.session.getTextRange(e);this.session.replace(e,n.toLowerCase()),this.selection.setSelectionRange(t)},this.toUpperCase=function(){var t=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var e=this.getSelectionRange(),n=this.session.getTextRange(e);this.session.replace(e,n.toUpperCase()),this.selection.setSelectionRange(t)},this.indent=function(){var t=this.session,e=this.getSelectionRange();if(!(e.start.row<e.end.row)){if(e.start.column<e.end.column&&!/^\s+$/.test(t.getTextRange(e)))return c=this.$getSelectedRows(),void t.indentRows(c.first,c.last,"\t");var n=t.getLine(e.start.row),i=e.start,r=t.getTabSize(),a=t.documentToScreenColumn(i.row,i.column);if(this.session.getUseSoftTabs())var s=r-a%r,l=o.stringRepeat(" ",s);else{for(s=a%r;" "==n[e.start.column-1]&&s;)e.start.column--,s--;this.selection.setSelectionRange(e),l="\t"}return this.insert(l)}var c=this.$getSelectedRows();t.indentRows(c.first,c.last,"\t")},this.blockIndent=function(){var t=this.$getSelectedRows();this.session.indentRows(t.first,t.last,"\t")},this.blockOutdent=function(){var t=this.session.getSelection();this.session.outdentRows(t.getRange())},this.sortLines=function(){for(var t=this.$getSelectedRows(),e=this.session,n=[],i=t.first;i<=t.last;i++)n.push(e.getLine(i));n.sort((function(t,e){return t.toLowerCase()<e.toLowerCase()?-1:t.toLowerCase()>e.toLowerCase()?1:0}));var r=new p(0,0,0,0);for(i=t.first;i<=t.last;i++){var o=e.getLine(i);r.start.row=i,r.end.row=i,r.end.column=o.length,e.replace(r,n[i-t.first])}},this.toggleCommentLines=function(){var t=this.session.getState(this.getCursorPosition().row),e=this.$getSelectedRows();this.session.getMode().toggleCommentLines(t,this.session,e.first,e.last)},this.toggleBlockComment=function(){var t=this.getCursorPosition(),e=this.session.getState(t.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(e,this.session,n,t)},this.getNumberAt=function(t,e){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var i=this.session.getLine(t);n.lastIndex<e;){var r=n.exec(i);if(r.index<=e&&r.index+r[0].length>=e)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(t){var e=this.selection.getCursor().row,n=this.selection.getCursor().column,i=new p(e,n-1,e,n),r=this.session.getTextRange(i);if(!isNaN(parseFloat(r))&&isFinite(r)){var o=this.getNumberAt(e,n);if(o){var a=0<=o.value.indexOf(".")?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,l=parseFloat(o.value);l*=Math.pow(10,s),a!==o.end&&n<a?t*=Math.pow(10,o.end-n-1):t*=Math.pow(10,o.end-n),l+=t;var c=(l/=Math.pow(10,s)).toFixed(s),u=new p(e,o.start,e,o.end);this.session.replace(u,c),this.moveCursorTo(e,Math.max(o.start+1,n+c.length-o.value.length))}}else this.toggleWord()},this.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],this.toggleWord=function(){var t=this.selection.getCursor().row,e=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),i=this.selection.getWordRange().start.column,r=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),a=e-i-1;a<0&&(a=0);var s=0,l=0,c=this;n.match(/[A-Za-z0-9_]+/)&&r.forEach((function(e,r){l=s+e.length,s<=a&&a<=l&&(n=e,c.selection.clearSelection(),c.moveCursorTo(t,s+i),c.selection.selectTo(t,l+i)),s=l}));for(var u,h=this.$toggleWordPairs,d=0;d<h.length;d++)for(var p=h[d],f=0;f<=1;f++){var g=+!f,m=n.match(new RegExp("^\\s?_?("+o.escapeRegExp(p[f])+")\\s?$","i"));m&&n.match(new RegExp("([_]|^|\\s)("+o.escapeRegExp(m[1])+")($|\\s)","g"))&&(u=n.replace(new RegExp(o.escapeRegExp(p[f]),"i"),(function(t){var e=p[g];return t.toUpperCase()==t?e=e.toUpperCase():t.charAt(0).toUpperCase()==t.charAt(0)&&(e=e.substr(0,0)+p[g].charAt(0).toUpperCase()+e.substr(1)),e})),this.insert(u),u="")}},this.removeLines=function(){var t=this.$getSelectedRows();this.session.removeFullLines(t.first,t.last),this.clearSelection()},this.duplicateSelection=function(){var t=this.selection,e=this.session,n=t.getRange(),i=t.isBackwards();if(n.isEmpty()){var r=n.start.row;e.duplicateLines(r,r)}else{var o=i?n.start:n.end,a=e.insert(o,e.getTextRange(n),!1);n.start=o,n.end=a,t.setSelectionRange(n,i)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(t,e,n){return this.session.moveText(t,e,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(t,e){var n,i,r=this.selection;if(!r.inMultiSelectMode||this.inVirtualSelectionMode){var o=r.toOrientedRange();n=this.$getSelectedRows(o),i=this.session.$moveLines(n.first,n.last,e?0:t),e&&-1==t&&(i=0),o.moveBy(i,0),r.fromOrientedRange(o)}else{var a=r.rangeList.ranges;r.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var s=0,l=0,c=a.length,u=0;u<c;u++){var h=u;a[u].moveBy(s,0);for(var d=(n=this.$getSelectedRows(a[u])).first,p=n.last;++u<c;){l&&a[u].moveBy(l,0);var f=this.$getSelectedRows(a[u]);if(e&&f.first!=p)break;if(!e&&f.first>p+1)break;p=f.last}for(u--,s=this.session.$moveLines(d,p,e?0:t),e&&-1==t&&(h=u+1);h<=u;)a[h].moveBy(s,0),h++;e||(s=0),l+=s}r.fromOrientedRange(r.ranges[0]),r.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(t){return t=(t||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(t.start.row),last:this.session.getRowFoldEnd(t.end.row)}},this.onCompositionStart=function(t){this.renderer.showComposition(t)},this.onCompositionUpdate=function(t){this.renderer.setCompositionText(t)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(t){return t>=this.getFirstVisibleRow()&&t<=this.getLastVisibleRow()},this.isRowFullyVisible=function(t){return t>=this.renderer.getFirstFullyVisibleRow()&&t<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(t,e){var n=this.renderer,i=this.renderer.layerConfig,r=t*Math.floor(i.height/i.lineHeight);!0===e?this.selection.$moveSelection((function(){this.moveCursorBy(r,0)})):!1===e&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection());var o=n.scrollTop;n.scrollBy(0,r*i.lineHeight),null!=e&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(t){this.renderer.scrollToRow(t)},this.scrollToLine=function(t,e,n,i){this.renderer.scrollToLine(t,e,n,i)},this.centerSelection=function(){var t=this.getSelectionRange(),e={row:Math.floor(t.start.row+(t.end.row-t.start.row)/2),column:Math.floor(t.start.column+(t.end.column-t.start.column)/2)};this.renderer.alignCursor(e,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(t,e){this.selection.moveCursorTo(t,e)},this.moveCursorToPosition=function(t){this.selection.moveCursorToPosition(t)},this.jumpToMatching=function(t,e){var n=this.getCursorPosition(),i=new y(this.session,n.row,n.column),r=i.getCurrentToken(),o=r||i.stepForward();if(o){var a,s,l=!1,c={},u=n.column-o.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u<o.value.length&&!l;u++)if(h[o.value[u]])switch(s=h[o.value[u]]+"."+o.type.replace("rparen","lparen"),isNaN(c[s])&&(c[s]=0),o.value[u]){case"(":case"[":case"{":c[s]++;break;case")":case"]":case"}":-1===--c[s]&&(a="bracket",l=!0)}}else-1!==o.type.indexOf("tag-name")&&(isNaN(c[o.value])&&(c[o.value]=0),"<"===r.value?c[o.value]++:"</"===r.value&&c[o.value]--,-1===c[o.value]&&(a="tag",l=!0));l||(r=o,o=i.stepForward(),u=0)}while(o&&!l);if(a){var d,f;if("bracket"===a)(d=this.session.getBracketRange(n))||(f=(d=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1,i.getCurrentTokenRow(),i.getCurrentTokenColumn()+u-1)).start,(e||f.row===n.row&&Math.abs(f.column-n.column)<2)&&(d=this.session.getBracketRange(f)));else if("tag"===a){if(!o||-1===o.type.indexOf("tag-name"))return;var g=o.value;if(0===(d=new p(i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2,i.getCurrentTokenRow(),i.getCurrentTokenColumn()-2)).compare(n.row,n.column))for(l=!1;o=r,(r=i.stepBackward())&&(-1!==r.type.indexOf("tag-close")&&d.setEnd(i.getCurrentTokenRow(),i.getCurrentTokenColumn()+1),o.value===g&&-1!==o.type.indexOf("tag-name")&&("<"===r.value?c[g]++:"</"===r.value&&c[g]--,0===c[g]&&(l=!0))),r&&!l;);o&&o.type.indexOf("tag-name")&&(f=d.start).row==n.row&&Math.abs(f.column-n.column)<2&&(f=d.end)}(f=d&&d.cursor||f)&&(t?d&&e?this.selection.setRange(d):d&&d.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(f.row,f.column):this.selection.moveTo(f.row,f.column))}}},this.gotoLine=function(t,e,n){this.selection.clearSelection(),this.session.unfold({row:t-1,column:e||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(t-1,e||0),this.isRowFullyVisible(t-1)||this.scrollToLine(t-1,!0,n)},this.navigateTo=function(t,e){this.selection.moveTo(t,e)},this.navigateUp=function(t){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var e=this.selection.anchor.getPosition();return this.moveCursorToPosition(e)}this.selection.clearSelection(),this.selection.moveCursorBy(-t||-1,0)},this.navigateDown=function(t){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var e=this.selection.anchor.getPosition();return this.moveCursorToPosition(e)}this.selection.clearSelection(),this.selection.moveCursorBy(t||1,0)},this.navigateLeft=function(t){if(this.selection.isEmpty())for(t=t||1;t--;)this.selection.moveCursorLeft();else{var e=this.getSelectionRange().start;this.moveCursorToPosition(e)}this.clearSelection()},this.navigateRight=function(t){if(this.selection.isEmpty())for(t=t||1;t--;)this.selection.moveCursorRight();else{var e=this.getSelectionRange().end;this.moveCursorToPosition(e)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(t,e){e&&this.$search.set(e);var n=this.$search.find(this.session),i=0;return n&&(this.$tryReplace(n,t)&&(i=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),i},this.replaceAll=function(t,e){e&&this.$search.set(e);var n=this.$search.findAll(this.session),i=0;if(!n.length)return i;var r=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=n.length-1;0<=o;--o)this.$tryReplace(n[o],t)&&i++;return this.selection.setSelectionRange(r),i},this.$tryReplace=function(t,e){var n=this.session.getTextRange(t);return null!==(e=this.$search.replace(n,e))?(t.end=this.session.replace(t,e),t):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(t,e,n){e=e||{},"string"==typeof t||t instanceof RegExp?e.needle=t:"object"==typeof t&&i.mixin(e,t);var r=this.selection.getRange();null==e.needle&&((t=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),t=this.session.getTextRange(r)),this.$search.set({needle:t})),this.$search.set(e),e.start||this.$search.set({start:r});var o=this.$search.find(this.session);return e.preventScroll?o:o?(this.revealRange(o,n),o):(e.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},this.findNext=function(t,e){this.find({skipCurrent:!0,backwards:!1},t,e)},this.findPrevious=function(t,e){this.find(t,{skipCurrent:!0,backwards:!0},e)},this.revealRange=function(t,e){this.session.unfold(t),this.selection.setSelectionRange(t);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(t.start,t.end,.5),!1!==e&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.session=null},this.setAutoScrollEditorIntoView=function(t){if(t){var e,n=this,i=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var r=this.$scrollAnchor;r.style.cssText="position:absolute",this.container.insertBefore(r,this.container.firstChild);var o=this.on("changeSelection",(function(){i=!0})),a=this.renderer.on("beforeRender",(function(){i&&(e=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(i&&e&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var t=n.renderer,o=t.$cursorLayer.$pixelPos,a=t.layerConfig,s=o.top-a.offset;null!=(i=0<=o.top&&s+e.top<0||!(o.top<a.height&&o.top+e.top+a.lineHeight>window.innerHeight)&&null)&&(r.style.top=s+"px",r.style.left=o.left+"px",r.style.height=a.lineHeight+"px",r.scrollIntoView(i)),i=e=null}}));this.setAutoScrollEditorIntoView=function(t){t||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var t=this.$cursorStyle||"ace",e=this.renderer.$cursorLayer;e&&(e.setSmoothBlinking(/smooth/.test(t)),e.isBlinking=!this.$readOnly&&"wide"!=t,r.setCssClass(e.element,"ace_slim-cursors",/slim/.test(t)))},this.prompt=function(t,e,n){var i=this;v.loadModule("./ext/prompt",(function(r){r.prompt(i,t,e,n)}))}}.call(x.prototype),v.defineOptions(x.prototype,"editor",{selectionStyle:{set:function(t){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:t})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(t){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(t){this.textInput.setReadOnly(t),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(t){this.textInput.setCopyWithEmptySelection(t)},initialValue:!1},cursorStyle:{set:function(t){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(t){this.setAutoScrollEditorIntoView(t)}},keyboardHandler:{set:function(t){this.setKeyboardHandler(t)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(t){this.session.setValue(t)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(t){this.setSession(t)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(t){this.renderer.$gutterLayer.setShowLineNumbers(t),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),t&&this.$relativeLineNumbers?w.attach(this):w.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(t){this.$showLineNumbers&&t?w.attach(this):w.detach(this)}},placeholder:{set:function(t){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var t=this.renderer.$composition||this.getValue();if(t&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),r.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!t&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),r.addCssClass(this.container,"ace_hasPlaceholder");var e=r.createElement("div");e.className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var w={getText:function(t,e){return(Math.abs(t.selection.lead.row-e)||e+1+(e<9?"·":""))+""},getWidth:function(t,e,n){return Math.max(e.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(t,e){e.renderer.$loop.schedule(e.renderer.CHANGE_GUTTER)},attach:function(t){t.renderer.$gutterLayer.$renderer=this,t.on("changeSelection",this.update),this.update(null,t)},detach:function(t){t.renderer.$gutterLayer.$renderer==this&&(t.renderer.$gutterLayer.$renderer=null),t.off("changeSelection",this.update),this.update(null,t)}};e.Editor=x})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(t,e,n){"use strict";function i(){this.$maxRev=0,this.$fromUndo=!1,this.reset()}function r(t){return{row:t.row,column:t.column}}function o(t){if(t=t||this,Array.isArray(t))return t.map(o).join("\n");var e="";return t.action?(e="insert"==t.action?"+":"-",e+="["+t.lines+"]"):t.value&&(e=Array.isArray(t.value)?t.value.map(a).join("\n"):a(t.value)),t.start&&(e+=a(t)),(t.id||t.rev)&&(e+="\t("+(t.id||t.rev)+")"),e}function a(t){return t.start.row+":"+t.start.column+"=>"+t.end.row+":"+t.end.column}function s(t,e){var n="insert"==t.action,i="insert"==e.action;if(n&&i)if(0<=g(e.start,t.end))u(e,t,-1);else{if(!(g(e.start,t.start)<=0))return;u(t,e,1)}else if(n&&!i)if(0<=g(e.start,t.end))u(e,t,-1);else{if(!(g(e.end,t.start)<=0))return;u(t,e,-1)}else if(!n&&i)if(0<=g(e.start,t.start))u(e,t,1);else{if(!(g(e.start,t.start)<=0))return;u(t,e,1)}else if(!n&&!i)if(0<=g(e.start,t.start))u(e,t,1);else{if(!(g(e.end,t.start)<=0))return;u(t,e,-1)}return 1}function l(t,e){for(var n=t.length;n--;)for(var i=0;i<e.length;i++)if(!s(t[n],e[i])){for(;n<t.length;){for(;i--;)s(e[i],t[n]);i=e.length,n++}return[t,e]}return t.selectionBefore=e.selectionBefore=t.selectionAfter=e.selectionAfter=null,[e,t]}function c(t,e){var n="insert"==t.action,i="insert"==e.action;if(n&&i)g(t.start,e.start)<0?u(e,t,1):u(t,e,1);else if(n&&!i)0<=g(t.start,e.end)?u(t,e,-1):(g(t.start,e.start)<=0||u(t,f.fromPoints(e.start,t.start),-1),u(e,t,1));else if(!n&&i)0<=g(e.start,t.end)?u(e,t,-1):(g(e.start,t.start)<=0||u(e,f.fromPoints(t.start,e.start),-1),u(t,e,1));else if(!n&&!i)if(0<=g(e.start,t.end))u(e,t,-1);else{var r,o;if(!(g(e.end,t.start)<=0))return g(t.start,e.start)<0&&(t=d(r=t,e.start)),0<g(t.end,e.end)&&(o=d(t,e.end)),h(e.end,t.start,t.end,-1),o&&!r&&(t.lines=o.lines,t.start=o.start,t.end=o.end,o=t),[e,r,o].filter(Boolean);u(t,e,-1)}return[e,t]}function u(t,e,n){h(t.start,e.start,e.end,n),h(t.end,e.start,e.end,n)}function h(t,e,n,i){t.row==(1==i?e:n).row&&(t.column+=i*(n.column-e.column)),t.row+=i*(n.row-e.row)}function d(t,e){var n=t.lines,i=t.end;t.end=r(e);var o=t.end.row-t.start.row,a=n.splice(o,n.length),s=o?e.column:e.column-t.start.column;return n.push(a[0].substring(0,s)),a[0]=a[0].substr(s),{start:r(e),end:i,lines:a,action:t.action}}function p(t,e){var n;e={start:r((n=e).start),end:r(n.end),action:n.action,lines:n.lines.slice()};for(var i=t.length;i--;){for(var o=t[i],a=0;a<o.length;a++){var s=c(o[a],e);e=s[0],2!=s.length&&(s[2]?(o.splice(a+1,1,s[1],s[2]),a++):s[1]||(o.splice(a,1),a--))}o.length||t.splice(i,1)}return t}(function(){this.addSession=function(t){this.$session=t},this.add=function(t,e,n){this.$fromUndo||t!=this.$lastDelta&&(this.$keepRedoStack||(this.$redoStack.length=0),!1!==e&&this.lastDeltas||(this.lastDeltas=[],this.$undoStack.push(this.lastDeltas),t.id=this.$rev=++this.$maxRev),"remove"!=t.action&&"insert"!=t.action||(this.$lastDelta=t),this.lastDeltas.push(t))},this.addSelection=function(t,e){this.selections.push({value:t,rev:e||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(t,e){null==e&&(e=this.$rev+1);for(var n=this.$undoStack,i=n.length;i--;){var r=n[i][0];if(r.id<=t)break;r.id<e&&(r.ignore=!0)}this.lastDeltas=null},this.getSelection=function(t,e){for(var n=this.selections,i=n.length;i--;){var r=n[i];if(r.rev<t)return e&&(r=n[i+1]),r}},this.getRevision=function(){return this.$rev},this.getDeltas=function(t,e){null==e&&(e=this.$rev+1);for(var n=this.$undoStack,i=null,r=0,o=n.length;o--;){var a=n[o][0];if(a.id<e&&!i&&(i=o+1),a.id<=t){r=o+1;break}}return n.slice(r,i)},this.getChangedRanges=function(t,e){null==e&&(e=this.$rev+1)},this.getChangedLines=function(t,e){null==e&&(e=this.$rev+1)},this.validateDeltaBoundaries=function(t,e,n){return!!t&&t.every((function(t){var i=t.action;switch(n&&"insert"===t.action&&(i="remove"),n&&"remove"===t.action&&(i="insert"),i){case"insert":return t.start.row<=e;case"remove":return t.start.row<e&&t.end.row<e;default:return!0}}))},this.undo=function(t,e){this.lastDeltas=null;var n=this.$undoStack;if(function(t,e){for(var n=e;n--;){var i=t[n];if(i&&!i[0].ignore){for(;n<e-1;){var r=l(t[n],t[n+1]);t[n]=r[0],t[n+1]=r[1],n++}return 1}}}(n,n.length)){t=t||this.$session,this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var i=n.pop(),r=null;return this.validateDeltaBoundaries(i,t.getLength(),!0)&&(r=t.undoChanges(i,e),this.$redoStack.push(i),this.$syncRev()),this.$fromUndo=!1,r}},this.redo=function(t,e){if(this.lastDeltas=null,t=t||this.$session,this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);!function(t,e){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;r++)p(t,i[r])}(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(t){t[0].id=++this.$maxRev}),this)}var i=this.$redoStack.pop(),r=null;return this.validateDeltaBoundaries(i,t.getLength(),!1)&&(r=t.redoChanges(i,e),this.$undoStack.push(i),this.$syncRev()),this.$fromUndo=!1,r},this.$syncRev=function(){var t=this.$undoStack,e=t[t.length-1],n=e&&e[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return 0<this.$undoStack.length},this.canRedo=function(){return 0<this.$redoStack.length},this.bookmark=function(t){null==t&&(t=this.$rev),this.mark=t},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(t){return t?o(t):o(this.$undoStack)+"\n---\n"+o(this.$redoStack)}}).call(i.prototype);var f=t("./range").Range,g=f.comparePoints;f.comparePoints,e.UndoManager=i})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(t,e,n){"use strict";function i(t,e){this.element=t,this.canvasHeight=e||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}var r=t("../lib/dom");(function(){this.moveContainer=function(t){r.translate(this.element,0,-t.firstRowScreen*t.lineHeight%this.canvasHeight-t.offset*this.$offsetCoefficient)},this.pageChanged=function(t,e){return Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)!==Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)},this.computeLineTop=function(t,e,n){var i=e.firstRowScreen*e.lineHeight,r=Math.floor(i/this.canvasHeight);return n.documentToScreenRow(t,0)*e.lineHeight-r*this.canvasHeight},this.computeLineHeight=function(t,e,n){return e.lineHeight*n.getRowLineCount(t)},this.getLength=function(){return this.cells.length},this.get=function(t){return this.cells[t]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(t){if(Array.isArray(t)){this.cells.push.apply(this.cells,t);for(var e=r.createFragment(this.element),n=0;n<t.length;n++)e.appendChild(t[n].element);this.element.appendChild(e)}else this.cells.push(t),this.element.appendChild(t.element)},this.unshift=function(t){if(Array.isArray(t)){this.cells.unshift.apply(this.cells,t);for(var e=r.createFragment(this.element),n=0;n<t.length;n++)e.appendChild(t[n].element);this.element.firstChild?this.element.insertBefore(e,this.element.firstChild):this.element.appendChild(e)}else this.cells.unshift(t),this.element.insertAdjacentElement("afterbegin",t.element)},this.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},this.$cacheCell=function(t){t&&(t.element.remove(),this.cellCache.push(t))},this.createCell=function(t,e,n,i){var o=this.cellCache.pop();if(!o){var a=r.createElement("div");i&&i(a),this.element.appendChild(a),o={element:a,text:"",row:t}}return o.row=t,o}}).call(i.prototype),e.Lines=i})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines"],(function(t,e,n){"use strict";function i(t){this.element=o.createElement("div"),this.element.className="ace_layer ace_gutter-layer",t.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new c(this.element),this.$lines.$offsetCoefficient=1}function r(t){var e=document.createTextNode("");t.appendChild(e);var n=o.createElement("span");return t.appendChild(n),t}var o=t("../lib/dom"),a=t("../lib/oop"),s=t("../lib/lang"),l=t("../lib/event_emitter").EventEmitter,c=t("./lines").Lines;(function(){a.implement(this,l),this.setSession=function(t){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),(this.session=t)&&t.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(t,e){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(t,e)},this.removeGutterDecoration=function(t,e){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(t,e)},this.setAnnotations=function(t){this.$annotations=[];for(var e=0;e<t.length;e++){var n=t[e],i=n.row,r=this.$annotations[i];r=r||(this.$annotations[i]={text:[]});var o=n.text;o=o?s.escapeHTML(o):n.html||"",-1===r.text.indexOf(o)&&r.text.push(o);var a=n.type;"error"==a?r.className=" ace_error":"warning"==a&&" ace_error"!=r.className?r.className=" ace_warning":"info"!=a||r.className||(r.className=" ace_info")}},this.$updateAnnotations=function(t){if(this.$annotations.length){var e=t.start.row,n=t.end.row-e;if(0!=n)if("remove"==t.action)this.$annotations.splice(e,1+n,null);else{var i=new Array(1+n);i.unshift(e,1),this.$annotations.splice.apply(this.$annotations,i)}}},this.update=function(t){this.config=t;var e=this.session,n=t.firstRow,i=Math.min(t.lastRow+t.gutterOffset,e.getLength()-1);this.oldLastRow=i,this.config=t,this.$lines.moveContainer(t),this.$updateCursorRow();for(var o=e.getNextFoldLine(n),a=o?o.start.row:1/0,s=null,l=-1,c=n;;){if(a<c&&(c=o.end.row+1,a=(o=e.getNextFoldLine(c,o))?o.start.row:1/0),i<c){for(;this.$lines.getLength()>l+1;)this.$lines.pop();break}(s=this.$lines.get(++l))?s.row=c:(s=this.$lines.createCell(c,t,this.session,r),this.$lines.push(s)),this.$renderCell(s,t,o,c),c++}this._signal("afterRender"),this.$updateGutterWidth(t)},this.$updateGutterWidth=function(t){var e=this.session,n=e.gutterRenderer||this.$renderer,i=e.$firstLineNumber,r=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||e.$useWrapMode)&&(r=e.getLength()+i-1);var o=n?n.getWidth(e,r,t):r.toString().length*t.characterWidth,a=this.$padding||this.$computePadding();(o+=a.left+a.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var t=this.session.selection.getCursor();this.$cursorRow!==t.row&&(this.$cursorRow=t.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var t=this.session.selection.cursor.row;if(this.$cursorRow=t,!this.$cursorCell||this.$cursorCell.row!=t){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var e=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<e.length;n++){var i=e[n];if(i.row>=this.$cursorRow){if(i.row>this.$cursorRow){var r=this.session.getFoldLine(this.$cursorRow);if(!(0<n&&r&&r.start.row==e[n-1].row))break;i=e[n-1]}i.element.className="ace_gutter-active-line "+i.element.className,this.$cursorCell=i;break}}}}},this.scrollLines=function(t){var e=this.config;if(this.config=t,this.$updateCursorRow(),this.$lines.pageChanged(e,t))return this.update(t);this.$lines.moveContainer(t);var n=Math.min(t.lastRow+t.gutterOffset,this.session.getLength()-1),i=this.oldLastRow;if(this.oldLastRow=n,!e||i<t.firstRow)return this.update(t);if(n<e.firstRow)return this.update(t);if(e.firstRow<t.firstRow)for(var r=this.session.getFoldedRowCount(e.firstRow,t.firstRow-1);0<r;r--)this.$lines.shift();if(n<i)for(r=this.session.getFoldedRowCount(n+1,i);0<r;r--)this.$lines.pop();t.firstRow<e.firstRow&&this.$lines.unshift(this.$renderLines(t,t.firstRow,e.firstRow-1)),i<n&&this.$lines.push(this.$renderLines(t,i+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(t)},this.$renderLines=function(t,e,n){for(var i=[],o=e,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;s<o&&(o=a.end.row+1,s=(a=this.session.getNextFoldLine(o,a))?a.start.row:1/0),!(n<o);){var l=this.$lines.createCell(o,t,this.session,r);this.$renderCell(l,t,a,o),i.push(l),o++}return i},this.$renderCell=function(t,e,n,i){var r=t.element,a=this.session,s=r.childNodes[0],l=r.childNodes[1],c=a.$firstLineNumber,u=a.$breakpoints,h=a.$decorations,d=a.gutterRenderer||this.$renderer,p=this.$showFoldWidgets&&a.foldWidgets,f=n?n.start.row:Number.MAX_VALUE,g="ace_gutter-cell ";if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i<this.$cursorRow&&f<=i&&this.$cursorRow<=n.end.row)&&(g+="ace_gutter-active-line ",this.$cursorCell!=t&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=t)),u[i]&&(g+=u[i]),h[i]&&(g+=h[i]),this.$annotations[i]&&(g+=this.$annotations[i].className),r.className!=g&&(r.className=g),p){var m=p[i];null==m&&(m=p[i]=a.getFoldWidget(i))}if(m){g="ace_fold-widget ace_"+m,"start"==m&&i==f&&i<n.end.row?g+=" ace_closed":g+=" ace_open",l.className!=g&&(l.className=g);var v=e.lineHeight+"px";o.setStyle(l.style,"height",v),o.setStyle(l.style,"display","inline-block")}else l&&o.setStyle(l.style,"display","none");var y=(d?d.getText(a,i):i+c).toString();return y!==s.data&&(s.data=y),o.setStyle(t.element.style,"height",this.$lines.computeLineHeight(i,e,a)+"px"),o.setStyle(t.element.style,"top",this.$lines.computeLineTop(i,e,a)+"px"),t.text=y,t},this.$fixedWidth=!1,this.$highlightGutterLine=!0,this.$renderer="",this.setHighlightGutterLine=function(t){this.$highlightGutterLine=t},this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(t){this.$renderer=!t&&{getWidth:function(){return 0},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(t){t?o.addCssClass(this.element,"ace_folding-enabled"):o.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=t,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var t=o.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(t.borderLeftWidth)||0)+(parseInt(t.paddingLeft)||0)+1,this.$padding.right=(parseInt(t.borderRightWidth)||0)+(parseInt(t.paddingRight)||0),this.$padding},this.getRegion=function(t){var e=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return t.x<e.left+n.left?"markers":this.$showFoldWidgets&&t.x>n.right-e.right?"foldWidgets":void 0}}).call(i.prototype),e.Gutter=i})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(t,e,n){"use strict";function i(t){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",t.appendChild(this.element)}var r=t("../range").Range,o=t("../lib/dom");(function(){this.$padding=0,this.setPadding=function(t){this.$padding=t},this.setSession=function(t){this.session=t},this.setMarkers=function(t){this.markers=t},this.elt=function(t,e){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=e,n.className=t},this.update=function(t){if(t){var e;for(var n in this.config=t,this.i=0,this.markers){var i=this.markers[n];if(i.range){var r=i.range.clipRows(t.firstRow,t.lastRow);if(!r.isEmpty())if(r=r.toScreenRange(this.session),i.renderer){var o=this.$getTop(r.start.row,t),a=this.$padding+r.start.column*t.characterWidth;i.renderer(e,r,a,o,t)}else"fullLine"==i.type?this.drawFullLineMarker(e,r,i.clazz,t):"screenLine"==i.type?this.drawScreenLineMarker(e,r,i.clazz,t):r.isMultiLine()?"text"==i.type?this.drawTextMarker(e,r,i.clazz,t):this.drawMultiLineMarker(e,r,i.clazz,t):this.drawSingleLineMarker(e,r,i.clazz+" ace_start ace_br15",t)}else i.update(e,this,this.session,t)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},this.$getTop=function(t,e){return(t-e.firstRowScreen)*e.lineHeight},this.drawTextMarker=function(t,e,n,i,o){for(var a=this.session,s=e.start.row,l=e.end.row,c=s,u=0,h=0,d=a.getScreenLastRowColumn(c),p=new r(c,e.start.column,c,h);c<=l;c++)p.start.row=p.end.row=c,p.start.column=c==s?e.start.column:a.getRowWrapIndent(c),u=h,h=p.end.column=d,d=c+1<l?a.getScreenLastRowColumn(c+1):c==l?0:e.end.column,this.drawSingleLineMarker(t,p,n+(c==s?" ace_start":"")+" ace_br"+((c==s||c==s+1&&e.start.column?1:0)|(u<h?2:0)|(d<h?4:0)|(c==l?8:0)),i,c==l?0:1,o)},this.drawMultiLineMarker=function(t,e,n,i,r){var o=this.$padding,a=i.lineHeight,s=this.$getTop(e.start.row,i),l=o+e.start.column*i.characterWidth;if(r=r||"",this.session.$bidiHandler.isBidiRow(e.start.row)?((c=e.clone()).end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(t,c,n+" ace_br1 ace_start",i,null,r)):this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(r||"")),this.session.$bidiHandler.isBidiRow(e.end.row)){var c;(c=e.clone()).start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(t,c,n+" ace_br12",i,null,r)}else{s=this.$getTop(e.end.row,i);var u=e.end.column*i.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+u+"px;top:"+s+"px;left:"+o+"px;"+(r||""))}if(!((a=(e.end.row-e.start.row-1)*i.lineHeight)<=0)){s=this.$getTop(e.start.row+1,i);var h=(e.start.column?1:0)|(e.end.column?0:8);this.elt(n+(h?" ace_br"+h:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+o+"px;"+(r||""))}},this.drawSingleLineMarker=function(t,e,n,i,r,o){if(this.session.$bidiHandler.isBidiRow(e.start.row))return this.drawBidiSingleLineMarker(t,e,n,i,r,o);var a=i.lineHeight,s=(e.end.column+(r||0)-e.start.column)*i.characterWidth,l=this.$getTop(e.start.row,i),c=this.$padding+e.start.column*i.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+c+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(t,e,n,i,r,o){var a=i.lineHeight,s=this.$getTop(e.start.row,i),l=this.$padding;this.session.$bidiHandler.getSelections(e.start.column,e.end.column).forEach((function(t){this.elt(n,"height:"+a+"px;width:"+t.width+(r||0)+"px;top:"+s+"px;left:"+(l+t.left)+"px;"+(o||""))}),this)},this.drawFullLineMarker=function(t,e,n,i,r){var o=this.$getTop(e.start.row,i),a=i.lineHeight;e.start.row!=e.end.row&&(a+=this.$getTop(e.end.row,i)-o),this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(r||""))},this.drawScreenLineMarker=function(t,e,n,i,r){var o=this.$getTop(e.start.row,i),a=i.lineHeight;this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(r||""))}}).call(i.prototype),e.Marker=i})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],(function(t,e,n){"use strict";function i(t){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",t.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}var r=t("../lib/oop"),o=t("../lib/dom"),a=t("../lib/lang"),s=t("./lines").Lines,l=t("../lib/event_emitter").EventEmitter;(function(){r.implement(this,l),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var t=this.session.doc,e="\n"==t.getNewLineCharacter()&&"windows"!=t.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(t){this.$padding=t,this.element.style.margin="0 "+t+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(t){this.$fontMetrics=t,this.$fontMetrics.on("changeCharacterSize",function(t){this._signal("changeCharacterSize",t)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(t){(this.session=t)&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(t){return this.showInvisibles!=t&&(this.showInvisibles=t,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(t){return this.displayIndentGuides!=t&&(this.displayIndentGuides=t,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var t=this.session.getTabSize();this.tabSize=t;for(var e=this.$tabStrings=[0],n=1;n<t+1;n++)this.showInvisibles?((i=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",i.textContent=a.stringRepeat(this.TAB_CHAR,n),e.push(i)):e.push(this.dom.createTextNode(a.stringRepeat(" ",n),this.element));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var i,r="ace_indent-guide",o="",s="";if(this.showInvisibles){r+=" ace_invisible",o=" ace_invisible_space",s=" ace_invisible_tab";var l=a.stringRepeat(this.SPACE_CHAR,this.tabSize),c=a.stringRepeat(this.TAB_CHAR,this.tabSize)}else c=l=a.stringRepeat(" ",this.tabSize);(i=this.dom.createElement("span")).className=r+o,i.textContent=l,this.$tabStrings[" "]=i,(i=this.dom.createElement("span")).className=r+s,i.textContent=c,this.$tabStrings["\t"]=i}},this.updateLines=function(t,e,n){if(this.config.lastRow!=t.lastRow||this.config.firstRow!=t.firstRow)return this.update(t);this.config=t;for(var i=Math.max(e,t.firstRow),r=Math.min(n,t.lastRow),o=this.element.childNodes,a=0,s=t.firstRow;s<i;s++){if(l=this.session.getFoldLine(s)){if(l.containsRow(i)){i=l.start.row;break}s=l.end.row}a++}for(var l,c=!1,u=(s=i,(l=this.session.getNextFoldLine(s))?l.start.row:1/0);u<s&&(s=l.end.row+1,u=(l=this.session.getNextFoldLine(s,l))?l.start.row:1/0),!(r<s);){var h=o[a++];if(h){this.dom.removeChildren(h),this.$renderLine(h,s,s==u&&l),c&&(h.style.top=this.$lines.computeLineTop(s,t,this.session)+"px");var d=t.lineHeight*this.session.getRowLength(s)+"px";h.style.height!=d&&(c=!0,h.style.height=d)}s++}if(c)for(;a<this.$lines.cells.length;){var p=this.$lines.cells[a++];p.element.style.top=this.$lines.computeLineTop(p.row,t,this.session)+"px"}},this.scrollLines=function(t){var e=this.config;if(this.config=t,this.$lines.pageChanged(e,t))return this.update(t);this.$lines.moveContainer(t);var n=t.lastRow,i=e?e.lastRow:-1;if(!e||i<t.firstRow)return this.update(t);if(n<e.firstRow)return this.update(t);if(!e||e.lastRow<t.firstRow)return this.update(t);if(t.lastRow<e.firstRow)return this.update(t);if(e.firstRow<t.firstRow)for(var r=this.session.getFoldedRowCount(e.firstRow,t.firstRow-1);0<r;r--)this.$lines.shift();if(e.lastRow>t.lastRow)for(r=this.session.getFoldedRowCount(t.lastRow+1,e.lastRow);0<r;r--)this.$lines.pop();t.firstRow<e.firstRow&&this.$lines.unshift(this.$renderLinesFragment(t,t.firstRow,e.firstRow-1)),t.lastRow>e.lastRow&&this.$lines.push(this.$renderLinesFragment(t,e.lastRow+1,t.lastRow))},this.$renderLinesFragment=function(t,e,n){for(var i=[],r=e,a=this.session.getNextFoldLine(r),s=a?a.start.row:1/0;s<r&&(r=a.end.row+1,s=(a=this.session.getNextFoldLine(r,a))?a.start.row:1/0),!(n<r);){var l=this.$lines.createCell(r,t,this.session),c=l.element;this.dom.removeChildren(c),o.setStyle(c.style,"height",this.$lines.computeLineHeight(r,t,this.session)+"px"),o.setStyle(c.style,"top",this.$lines.computeLineTop(r,t,this.session)+"px"),this.$renderLine(c,r,r==s&&a),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",i.push(l),r++}return i},this.update=function(t){this.$lines.moveContainer(t);for(var e=(this.config=t).firstRow,n=t.lastRow,i=this.$lines;i.getLength();)i.pop();i.push(this.$renderLinesFragment(t,e,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(t,e,n,i){for(var r,o=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,l=this.dom.createFragment(this.element),c=0;r=s.exec(i);){var u=r[1],h=r[2],d=r[3],p=r[4],f=r[5];if(o.showInvisibles||!h){var g=c!=r.index?i.slice(c,r.index):"";if(c=r.index+r[0].length,g&&l.appendChild(this.dom.createTextNode(g,this.element)),u){var m=o.session.getScreenTabSize(e+r.index);l.appendChild(o.$tabStrings[m].cloneNode(!0)),e+=m-1}else h?o.showInvisibles?((y=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",y.textContent=a.stringRepeat(o.SPACE_CHAR,h.length),l.appendChild(y)):l.appendChild(this.com.createTextNode(h,this.element)):d?((y=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",y.textContent=a.stringRepeat(o.SPACE_CHAR,d.length),l.appendChild(y)):p?(e+=1,(y=this.dom.createElement("span")).style.width=2*o.config.characterWidth+"px",y.className=o.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",y.textContent=o.showInvisibles?o.SPACE_CHAR:p,l.appendChild(y)):f&&(e+=1,(y=this.dom.createElement("span")).style.width=2*o.config.characterWidth+"px",y.className="ace_cjk",y.textContent=f,l.appendChild(y))}}if(l.appendChild(this.dom.createTextNode(c?i.slice(c):i,this.element)),this.$textToken[n.type])t.appendChild(l);else{var v="ace_"+n.type.replace(/\./g," ace_"),y=this.dom.createElement("span");"fold"==n.type&&(y.style.width=n.value.length*this.config.characterWidth+"px"),y.className=v,y.appendChild(l),t.appendChild(y)}return e+i.length},this.renderIndentGuide=function(t,e,n){var i=e.search(this.$indentGuideRe);if(i<=0||n<=i)return e;if(" "==e[0]){for(var r=(i-=i%this.tabSize)/this.tabSize,o=0;o<r;o++)t.appendChild(this.$tabStrings[" "].cloneNode(!0));return e.substr(i)}if("\t"!=e[0])return e;for(o=0;o<i;o++)t.appendChild(this.$tabStrings["\t"].cloneNode(!0));return e.substr(i)},this.$createLineElement=function(t){var e=this.dom.createElement("div");return e.className="ace_line",e.style.height=this.config.lineHeight+"px",e},this.$renderWrappedLine=function(t,e,n){var i=0,r=0,o=n[0],s=0,l=this.$createLineElement();t.appendChild(l);for(var c=0;c<e.length;c++){var u=e[c],h=u.value;if(0==c&&this.displayIndentGuides){if(i=h.length,!(h=this.renderIndentGuide(l,h,o)))continue;i-=h.length}if(i+h.length<o)s=this.$renderToken(l,s,u,h),i+=h.length;else{for(;i+h.length>=o;)s=this.$renderToken(l,s,u,h.substring(0,o-i)),h=h.substring(o-i),i=o,l=this.$createLineElement(),t.appendChild(l),l.appendChild(this.dom.createTextNode(a.stringRepeat(" ",n.indent),this.element)),s=0,o=n[++r]||Number.MAX_VALUE;0!=h.length&&(i+=h.length,s=this.$renderToken(l,s,u,h))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,s,null,"",!0)},this.$renderSimpleLine=function(t,e){var n=0,i=e[0],r=i.value;this.displayIndentGuides&&(r=this.renderIndentGuide(t,r)),r&&(n=this.$renderToken(t,n,i,r));for(var o=1;o<e.length;o++){if(n+(r=(i=e[o]).value).length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(t,n,i,r);n=this.$renderToken(t,n,i,r)}},this.$renderOverflowMessage=function(t,e,n,i,r){n&&this.$renderToken(t,e,n,i.slice(0,this.MAX_LINE_LENGTH-e));var o=this.dom.createElement("span");o.className="ace_inline_button ace_keyword ace_toggle_wrap",o.textContent=r?"<hide>":"<click to see more...>",t.appendChild(o)},this.$renderLine=function(t,e,n){if(n||0==n||(n=this.session.getFoldLine(e)),n)var i=this.$getFoldLineTokens(e,n);else i=this.session.getTokens(e);var r=t;if(i.length){var o=this.session.getRowSplitData(e);o&&o.length?(this.$renderWrappedLine(t,i,o),r=t.lastChild):(r=t,this.$useLineGroups()&&(r=this.$createLineElement(),t.appendChild(r)),this.$renderSimpleLine(r,i))}else this.$useLineGroups()&&(r=this.$createLineElement(),t.appendChild(r));if(this.showInvisibles&&r){n&&(e=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=e==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,r.appendChild(a)}},this.$getFoldLineTokens=function(t,e){var n=this.session,i=[],r=n.getTokens(t);return e.walk((function(t,e,o,a,s){null!=t?i.push({type:"fold",value:t}):(s&&(r=n.getTokens(e)),r.length&&function(t,e,n){for(var r=0,o=0;o+t[r].value.length<e;)if(o+=t[r].value.length,++r==t.length)return;for(o!=e&&((a=t[r].value.substring(e-o)).length>n-e&&(a=a.substring(0,n-e)),i.push({type:t[r].type,value:a}),o=e+a.length,r+=1);o<n&&r<t.length;){var a;(a=t[r].value).length+o>n?i.push({type:t[r].type,value:a.substring(0,n-o)}):i.push(t[r]),o+=a.length,r+=1}}(r,a,o))}),e.end.row,this.session.getLine(e.end.row).length),i},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(i.prototype),e.Text=i})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(t,e,n){"use strict";function i(t){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",t.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var r=t("../lib/dom");(function(){this.$updateOpacity=function(t){for(var e=this.cursors,n=e.length;n--;)r.setStyle(e[n].style,"opacity",t?"":"0")},this.$startCssAnimation=function(){for(var t=this.cursors,e=t.length;e--;)t[e].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(t){this.$padding=t},this.setSession=function(t){this.session=t},this.setBlinking=function(t){t!=this.isBlinking&&(this.isBlinking=t,this.restartTimer())},this.setBlinkInterval=function(t){t!=this.blinkInterval&&(this.blinkInterval=t,this.restartTimer())},this.setSmoothBlinking=function(t){t!=this.smoothBlinking&&(this.smoothBlinking=t,r.setCssClass(this.element,"ace_smooth-blinking",t),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var t=r.createElement("div");return t.className="ace_cursor",this.element.appendChild(t),this.cursors.push(t),t},this.removeCursor=function(){if(1<this.cursors.length){var t=this.cursors.pop();return t.parentNode.removeChild(t),t}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var t=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&r.removeCssClass(this.element,"ace_smooth-blinking"),t(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&setTimeout(function(){r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this)),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var e=function(){this.timeoutId=setTimeout((function(){t(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){t(!0),e()}),this.blinkInterval),e()}else this.$stopCssAnimation()},this.getPixelPosition=function(t,e){if(!this.config||!this.session)return{left:0,top:0};t=t||this.session.selection.getCursor();var n=this.session.documentToScreenPosition(t);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,t.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(e?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(t,e){return 0<=t.top&&t.top<e.maxHeight},this.update=function(t){this.config=t;var e=this.session.$selectionMarkers,n=0,i=0;void 0!==e&&0!==e.length||(e=[{cursor:null}]),n=0;for(var o=e.length;n<o;n++){var a=this.getPixelPosition(e[n].cursor,!0);if(!((a.top>t.height+t.offset||a.top<0)&&1<n)){var s=this.cursors[i++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,t,e[n],this.session):this.isCursorInView(a,t)?(r.setStyle(l,"display","block"),r.translate(s,a.left,a.top),r.setStyle(l,"width",Math.round(t.characterWidth)+"px"),r.setStyle(l,"height",t.lineHeight+"px")):r.setStyle(l,"display","none")}}for(;this.cursors.length>i;)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(t){t!=this.overwrite&&((this.overwrite=t)?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),e.Cursor=i})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(t,e,n){"use strict";function i(t){this.element=s.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=s.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),t.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}function r(t,e){i.call(this,t),this.scrollTop=0,this.scrollHeight=0,e.$scrollbarWidth=this.width=s.scrollbarWidth(t.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function o(t,e){i.call(this,t),this.scrollLeft=0,this.height=e.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var a=t("./lib/oop"),s=t("./lib/dom"),l=t("./lib/event"),c=t("./lib/event_emitter").EventEmitter;(function(){a.implement(this,c),this.setVisible=function(t){this.element.style.display=t?"":"none",this.isVisible=t,this.coeff=1}}).call(i.prototype),a.inherits(r,i),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var t=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-t)/(this.coeff-t)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(t){this.element.style.height=t+"px"},this.setInnerHeight=this.setScrollHeight=function(t){32768<(this.scrollHeight=t)?(this.coeff=32768/t,t=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=t+"px"},this.setScrollTop=function(t){this.scrollTop!=t&&(this.skipEvent=!0,this.scrollTop=t,this.element.scrollTop=t*this.coeff)}}.call(r.prototype),a.inherits(o,i),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(t){this.element.style.width=t+"px"},this.setInnerWidth=function(t){this.inner.style.width=t+"px"},this.setScrollWidth=function(t){this.inner.style.width=t+"px"},this.setScrollLeft=function(t){this.scrollLeft!=t&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=t)}}.call(o.prototype),e.ScrollBar=r,e.ScrollBarV=r,e.ScrollBarH=o,e.VScrollBar=r,e.HScrollBar=o})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(t,e,n){"use strict";function i(t,e){this.onRender=t,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=e||window;var n=this;this._flush=function(t){n.pending=!1;var e=n.changes;if(e&&(r.blockIdle(100),n.changes=0,n.onRender(e)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}}var r=t("./lib/event");(function(){this.schedule=function(t){this.changes=this.changes|t,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(t){var e=this.changes;return this.changes=0,e}}).call(i.prototype),e.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(t,e,n){var i=t("../lib/oop"),r=t("../lib/dom"),o=t("../lib/lang"),a=t("../lib/event"),s=t("../lib/useragent"),l=t("../lib/event_emitter").EventEmitter,c="function"==typeof ResizeObserver,u=e.FontMetrics=function(t){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),t.appendChild(this.el),this.$measureNode.innerHTML=o.stringRepeat("X",256),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()};(function(){i.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(t,e){t.width=t.height="auto",t.left=t.top="0px",t.visibility="hidden",t.position="absolute",t.whiteSpace="pre",s.isIE<8?t["font-family"]="inherit":t.font="inherit",t.overflow=e?"hidden":"visible"},this.checkForSizeChanges=function(t){if(void 0===t&&(t=this.$measureSizes()),t&&(this.$characterSize.width!==t.width||this.$characterSize.height!==t.height)){this.$measureNode.style.fontWeight="bold";var e=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=t,this.charSizes=Object.create(null),this.allowBoldFonts=e&&e.width===t.width&&e.height===t.height,this._emit("changeCharacterSize",{data:t})}},this.$addObserver=function(){var t=this;this.$observer=new window.ResizeObserver((function(e){var n=e[0].contentRect;t.checkForSizeChanges({height:n.height,width:n.width/256})})),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var t=this;return this.$pollSizeChangesTimer=a.onIdle((function e(){t.checkForSizeChanges(),a.onIdle(e,500)}),500)},this.setPolling=function(t){t?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(t){var e={height:(t||this.$measureNode).clientHeight,width:(t||this.$measureNode).clientWidth/256};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(t){return this.$main.innerHTML=o.stringRepeat(t,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(t){var e=this.charSizes[t];return void 0===e&&(e=this.charSizes[t]=this.$measureCharWidth(t)/this.$characterSize.width),e},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function t(e){return e?(window.getComputedStyle(e).zoom||1)*t(e.parentElement):1},this.$initTransformMeasureNodes=function(){function t(t,e){return["div",{style:"position: absolute;top:"+t+"px;left:"+e+"px;"}]}this.els=r.buildDom([t(0,0),t(200,0),t(0,200),t(200,200)],this.el)},this.transformCoordinates=function(t,e){function n(t,e,n){var i=t[1]*e[0]-t[0]*e[1];return[(-e[1]*n[0]+e[0]*n[1])/i,(t[1]*n[0]-t[0]*n[1])/i]}function i(t,e){return[t[0]-e[0],t[1]-e[1]]}function r(t,e){return[t[0]+e[0],t[1]+e[1]]}function o(t,e){return[t*e[0],t*e[1]]}function a(t){var e=t.getBoundingClientRect();return[e.left,e.top]}t=t&&o(1/this.$getZoom(this.el),t),this.els||this.$initTransformMeasureNodes();var s=a(this.els[0]),l=a(this.els[1]),c=a(this.els[2]),u=a(this.els[3]),h=n(i(u,l),i(u,c),i(r(l,c),r(u,s))),d=o(1+h[0],i(l,s)),p=o(1+h[1],i(c,s));if(e)return r(o(1/(h[0]*e[0]/200+h[1]*e[1]/200+1)/200,r(o(e[0],d),o(e[1],p))),s);var f=i(t,s);return o(200,n(i(d,o(h[0],f)),i(p,o(h[1],f)),f))}}).call(u.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],(function(t,e,n){"use strict";function i(t,e){var n=this;this.container=t||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(e),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var i=this.$textLayer=new c(this.content);this.canvas=i.element,this.$markerFront=new l(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",(function(t){n.$scrollAnimation||n.session.setScrollTop(t.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(t){n.$scrollAnimation||n.session.setScrollLeft(t.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(t){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",t)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!v.isIOS,this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),a.resetOptions(this),a._signal("renderer",this)}var r=t("./lib/oop"),o=t("./lib/dom"),a=t("./config"),s=t("./layer/gutter").Gutter,l=t("./layer/marker").Marker,c=t("./layer/text").Text,u=t("./layer/cursor").Cursor,h=t("./scrollbar").HScrollBar,d=t("./scrollbar").VScrollBar,p=t("./renderloop").RenderLoop,f=t("./layer/font_metrics").FontMetrics,g=t("./lib/event_emitter").EventEmitter,m='.ace_br1 {border-top-left-radius    : 3px;}.ace_br2 {border-top-right-radius   : 3px;}.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block;   }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',v=t("./lib/useragent"),y=v.isIE;o.importCssString(m,"ace_editor.css"),function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(t){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=t)&&this.scrollMargin.top&&t.getScrollTop()<=0&&t.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(t),this.$markerBack.setSession(t),this.$markerFront.setSession(t),this.$gutterLayer.setSession(t),this.$textLayer.setSession(t),t&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(t,e,n){if(void 0===e&&(e=1/0),this.$changedLines?(this.$changedLines.firstRow>t&&(this.$changedLines.firstRow=t),this.$changedLines.lastRow<e&&(this.$changedLines.lastRow=e)):this.$changedLines={firstRow:t,lastRow:e},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(t){t?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(t,e,n,i){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=t?1:0;var r=this.container;i=i||r.clientHeight||r.scrollHeight,n=n||r.clientWidth||r.scrollWidth;var o=this.$updateCachedSize(t,e,n,i);if(!this.$size.scrollerHeight||!n&&!i)return this.resizing=0;t&&(this.$gutterLayer.$padding=null),t?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(t,e,n,i){i-=this.$extraHeight||0;var r=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(i&&(t||a.height!=i)&&(a.height=i,r|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",r|=this.CHANGE_SCROLL),n&&(t||a.width!=n)){r|=this.CHANGE_SIZE,a.width=n,null==e&&(e=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=e,o.setStyle(this.scrollBarH.element.style,"left",e+"px"),o.setStyle(this.scroller.style,"left",e+this.margin.left+"px"),a.scrollerWidth=Math.max(0,n-e-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",l),o.setStyle(this.scroller.style,"right",l),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||t)&&(r|=this.CHANGE_FULL)}return a.$dirty=!n||!i,r&&this._signal("resize",s),r},this.onGutterResize=function(t){var e=this.$showGutter?t:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var t=this.$size.scrollerWidth-2*this.$padding,e=Math.floor(t/this.characterWidth);return this.session.adjustWrapLimit(e,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(t){this.setOption("animatedScroll",t)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(t){this.setOption("showInvisibles",t),this.session.$bidiHandler.setShowInvisibles(t)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(t){this.setOption("displayIndentGuides",t)},this.setShowPrintMargin=function(t){this.setOption("showPrintMargin",t)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(t){this.setOption("printMarginColumn",t)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(t){return this.setOption("showGutter",t)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(t){this.setOption("fadeFoldWidgets",t)},this.setHighlightGutterLine=function(t){this.setOption("highlightGutterLine",t)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var t=o.createElement("div");t.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",t.appendChild(this.$printMarginEl),this.content.insertBefore(t,this.content.firstChild)}var e=this.$printMarginEl.style;e.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",e.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var t=this.textarea.style,e=this.$composition;if(this.$keepTextAreaAtCursor||e){var n=this.$cursorLayer.$pixelPos;if(n){e&&e.markerRange&&(n=this.$cursorLayer.getPixelPosition(e.markerRange.start,!0));var i=this.layerConfig,r=n.top,a=n.left;r-=i.offset;var s=e&&e.useTextareaForIME?this.lineHeight:y?0:1;if(r<0||r>i.height-s)o.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-s;if(e)if(e.useTextareaForIME){var u=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(u)[0]}else r+=this.lineHeight+2;else r+=this.lineHeight;(a-=this.scrollLeft)>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,o.setStyle(t,"height",s+"px"),o.setStyle(t,"width",l+"px"),o.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(r,c))}}}else o.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var t=this.layerConfig,e=t.lastRow;return this.session.documentToScreenRow(e,0)*t.lineHeight-this.session.getScrollTop()>t.height-t.lineHeight?e-1:e},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(t){this.$padding=t,this.$textLayer.setPadding(t),this.$cursorLayer.setPadding(t),this.$markerFront.setPadding(t),this.$markerBack.setPadding(t),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(t,e,n,i){var r=this.scrollMargin;r.top=0|t,r.bottom=0|e,r.right=0|i,r.left=0|n,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.setMargin=function(t,e,n,i){var r=this.margin;r.top=0|t,r.bottom=0|e,r.right=0|i,r.left=0|n,r.v=r.top+r.bottom,r.h=r.left+r.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(t){this.setOption("hScrollBarAlwaysVisible",t)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(t){this.setOption("vScrollBarAlwaysVisible",t)},this.$updateScrollBarV=function(){var t=this.layerConfig.maxHeight,e=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(t-=(e-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>t-e&&(t=this.scrollTop+e,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(t+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(t,e){if(this.$changes&&(t|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(t||e)){if(this.$size.$dirty)return this.$changes|=t,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",t),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(t&this.CHANGE_FULL||t&this.CHANGE_SIZE||t&this.CHANGE_TEXT||t&this.CHANGE_LINES||t&this.CHANGE_SCROLL||t&this.CHANGE_H_SCROLL){if(t|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var i=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;0<i&&(this.scrollTop=i,t|=this.CHANGE_SCROLL,t|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),t&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-n.offset);var r=n.width+2*this.$padding+"px",a=n.minHeight+"px";o.setStyle(this.content.style,"width",r),o.setStyle(this.content.style,"height",a)}if(t&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),t&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",t);if(t&this.CHANGE_SCROLL)return this.$changedLines=null,t&this.CHANGE_TEXT||t&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(t&this.CHANGE_GUTTER||t&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",t);t&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):t&this.CHANGE_LINES?(this.$updateLines()||t&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):t&this.CHANGE_TEXT||t&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):t&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),t&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),t&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",t)}else this.$changes|=t},this.$autosize=function(){var t=this.session.getScreenLength()*this.lineHeight,e=this.$maxLines*this.lineHeight,n=Math.min(e,Math.max((this.$minLines||1)*this.lineHeight,t))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var i=!(n<=2*this.lineHeight)&&e<t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var r=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,r,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var t=this.session,e=this.$size,n=e.height<=2*this.lineHeight,i=this.session.getScreenLength()*this.lineHeight,r=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||e.scrollerWidth-r-2*this.$padding<0),a=this.$horizScroll!==o;a&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var s=this.$vScroll;this.$maxLines&&1<this.lineHeight&&this.$autosize();var l=e.scrollerHeight+this.lineHeight,c=!this.$maxLines&&this.$scrollPastEnd?(e.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=c;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,i-e.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,r+2*this.$padding-e.scrollerWidth+u.right)));var h=!n&&(this.$vScrollBarAlwaysVisible||e.scrollerHeight-i+c<0||this.scrollTop>u.top),d=s!==h;d&&(this.$vScroll=h,this.scrollBarV.setVisible(h));var p,f,g=this.scrollTop%this.lineHeight,m=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-g)/this.lineHeight)),y=v+m,b=this.lineHeight;v=t.screenToDocumentRow(v,0);var x=t.getFoldLine(v);x&&(v=x.start.row),p=t.documentToScreenRow(v,0),f=t.getRowLength(v)*b,y=Math.min(t.screenToDocumentRow(y,0),t.getLength()-1),l=e.scrollerHeight+t.getRowLength(y)*b+f,g=this.scrollTop-p*b;var w=0;return this.layerConfig.width==r&&!a||(w=this.CHANGE_H_SCROLL),(a||d)&&(w|=this.$updateCachedSize(!0,this.gutterWidth,e.width,e.height),this._signal("scrollbarVisibilityChanged"),d&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:v,firstRowScreen:p,lastRow:y,lineHeight:b,characterWidth:this.characterWidth,minHeight:l,maxHeight:i,offset:g,gutterOffset:b?Math.max(0,Math.ceil((g+e.height-e.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(r-this.$padding),w},this.$updateLines=function(){if(this.$changedLines){var t=this.$changedLines.firstRow,e=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(t>n.lastRow+1||e<n.firstRow))return e===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,t,e),!0)}},this.$getLongestLine=function(){var t=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(t+=1),this.$textLayer&&t>this.$textLayer.MAX_LINE_LENGTH&&(t=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(t*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(t,e){this.$gutterLayer.addGutterDecoration(t,e)},this.removeGutterDecoration=function(t,e){this.$gutterLayer.removeGutterDecoration(t,e)},this.updateBreakpoints=function(t){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(t){this.$gutterLayer.setAnnotations(t),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(t,e,n){this.scrollCursorIntoView(t,n),this.scrollCursorIntoView(e,n)},this.scrollCursorIntoView=function(t,e,n){if(0!==this.$size.scrollerHeight){var i=this.$cursorLayer.getPixelPosition(t),r=i.left,o=i.top,a=n&&n.top||0,s=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;o<l+a?(e&&l+a>o+this.lineHeight&&(o-=e*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-s<o+this.lineHeight&&(e&&l+this.$size.scrollerHeight-s<o-this.lineHeight&&(o+=e*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight+s-this.$size.scrollerHeight));var c=this.scrollLeft;r<c?(r<this.$padding+2*this.layerConfig.characterWidth&&(r=-this.scrollMargin.left),this.session.setScrollLeft(r)):c+this.$size.scrollerWidth<r+this.characterWidth?this.session.setScrollLeft(Math.round(r+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&r-c<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(t){this.session.setScrollTop(t*this.lineHeight)},this.alignCursor=function(t,e){"number"==typeof t&&(t={row:t,column:0});var n=this.$cursorLayer.getPixelPosition(t),i=this.$size.scrollerHeight-this.lineHeight,r=n.top-i*(e||0);return this.session.setScrollTop(r),r},this.STEPS=8,this.$calcSteps=function(t,e){var n,i,r=0,o=this.STEPS,a=[];for(r=0;r<o;++r)a.push((n=r/this.STEPS,(e-(i=t))*(Math.pow(n-1,3)+1)+i));return a},this.scrollToLine=function(t,e,n,i){var r=this.$cursorLayer.getPixelPosition({row:t,column:0}).top;e&&(r-=this.$size.scrollerHeight/2);var o=this.scrollTop;this.session.setScrollTop(r),!1!==n&&this.animateScrolling(o,i)},this.animateScrolling=function(t,e){var n=this.scrollTop;if(this.$animatedScroll){var i=this;if(t!=n){if(this.$scrollAnimation){var r=this.$scrollAnimation.steps;if(r.length&&(t=r[0])==n)return}var o=i.$calcSteps(t,n);this.$scrollAnimation={from:t,to:n,steps:o},clearInterval(this.$timer),i.session.setScrollTop(o.shift()),i.session.$scrollTop=n,this.$timer=setInterval((function(){o.length?(i.session.setScrollTop(o.shift()),i.session.$scrollTop=n):null!=n?(i.session.$scrollTop=-1,i.session.setScrollTop(n),n=null):(i.$timer=clearInterval(i.$timer),i.$scrollAnimation=null,e&&e())}),10)}}},this.scrollToY=function(t){this.scrollTop!==t&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=t)},this.scrollToX=function(t){this.scrollLeft!==t&&(this.scrollLeft=t),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(t,e){this.session.setScrollTop(e),this.session.setScrollLeft(e)},this.scrollBy=function(t,e){e&&this.session.setScrollTop(this.session.getScrollTop()+e),t&&this.session.setScrollLeft(this.session.getScrollLeft()+t)},this.isScrollableBy=function(t,e){return e<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||0<e&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||t<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||0<t&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},this.pixelToScreenCoordinates=function(t,e){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([t,e]);t=i[1]-this.gutterWidth-this.margin.left,e=i[0]}else n=this.scroller.getBoundingClientRect();var r=t+this.scrollLeft-n.left-this.$padding,o=r/this.characterWidth,a=Math.floor((e+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(o):Math.round(o);return{row:a,column:s,side:0<o-s?1:-1,offsetX:r}},this.screenToTextCoordinates=function(t,e){var n;if(this.$hasCssTransforms){n={top:0,left:0};var i=this.$fontMetrics.transformCoordinates([t,e]);t=i[1]-this.gutterWidth-this.margin.left,e=i[0]}else n=this.scroller.getBoundingClientRect();var r=t+this.scrollLeft-n.left-this.$padding,o=r/this.characterWidth,a=this.$blockCursor?Math.floor(o):Math.round(o),s=Math.floor((e+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),r)},this.textToScreenCoordinates=function(t,e){var n=this.scroller.getBoundingClientRect(),i=this.session.documentToScreenPosition(t,e),r=this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,t)?this.session.$bidiHandler.getPosLeft(i.column):Math.round(i.column*this.characterWidth)),o=i.row*this.lineHeight;return{pageX:n.left+r-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},this.showComposition=function(t){(this.$composition=t).cssText||(t.cssText=this.textarea.style.cssText),t.useTextareaForIME=this.$useTextareaForIME,this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):t.markerId=this.session.addMarker(t.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(t){var e=this.session.selection.cursor;this.addToken(t,"composition_placeholder",e.row,e.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText,this.$composition=null,this.$cursorLayer.element.style.display="")},this.addToken=function(t,e,n,i){var r=this.session;r.bgTokenizer.lines[n]=null;var o={type:e,value:t},a=r.getTokens(n);if(null==i)a.push(o);else for(var s=0,l=0;l<a.length;l++){var c=a[l];if(i<=(s+=c.value.length)){var u=c.value.length-(s-i),h=c.value.slice(0,u),d=c.value.slice(u);a.splice(l,1,{type:c.type,value:h},o,{type:c.type,value:d});break}}this.updateLines(n,n)},this.setTheme=function(t,e){function n(n){if(i.$themeId!=t)return e&&e();if(!n||!n.cssClass)throw new Error("couldn't load module "+t+" or it didn't call define");n.$id&&(i.$themeId=n.$id),o.importCssString(n.cssText,n.cssClass,i.container),i.theme&&o.removeCssClass(i.container,i.theme.cssClass);var r="padding"in n?n.padding:"padding"in(i.theme||{})?4:i.$padding;i.$padding&&r!=i.$padding&&i.setPadding(r),i.$theme=n.cssClass,i.theme=n,o.addCssClass(i.container,n.cssClass),o.setCssClass(i.container,"ace_dark",n.isDark),i.$size&&(i.$size.width=0,i.$updateSizeAsync()),i._dispatchEvent("themeLoaded",{theme:n}),e&&e()}var i=this;if(this.$themeId=t,i._dispatchEvent("themeChange",{theme:t}),t&&"string"!=typeof t)n(t);else{var r=t||this.$options.theme.initialValue;a.loadModule(["theme",r],n)}},this.getTheme=function(){return this.$themeId},this.setStyle=function(t,e){o.setCssClass(this.container,t,!1!==e)},this.unsetStyle=function(t){o.removeCssClass(this.container,t)},this.setCursorStyle=function(t){o.setStyle(this.scroller.style,"cursor",t)},this.setMouseCursor=function(t){o.setStyle(this.scroller.style,"cursor",t)},this.attachToShadowRoot=function(){o.importCssString(m,"ace_editor.css",this.container)},this.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy()}}.call(i.prototype),a.defineOptions(i.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(t){this.$textLayer.setShowInvisibles(t)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(t){"number"==typeof t&&(this.$printMarginColumn=t),this.$showPrintMargin=!!t,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(t){this.$gutter.style.display=t?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(t){o.setCssClass(this.$gutter,"ace_fade-fold-widgets",t)},initialValue:!1},showFoldWidgets:{set:function(t){this.$gutterLayer.setShowFoldWidgets(t),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(t){this.$textLayer.setDisplayIndentGuides(t)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(t){this.$gutterLayer.setHighlightGutterLine(t),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(t){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(t){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(t){"number"==typeof t&&(t+="px"),this.container.style.fontSize=t,this.updateFontSize()},initialValue:12},fontFamily:{set:function(t){this.container.style.fontFamily=t,this.updateFontSize()}},maxLines:{set:function(t){this.updateFull()}},minLines:{set:function(t){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(t){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(t){t=+t||0,this.$scrollPastEnd!=t&&(this.$scrollPastEnd=t,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(t){this.$gutterLayer.$fixedWidth=!!t,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(t){this.setTheme(t)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!v.isMobile&&!v.isIE}}),e.VirtualRenderer=i})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(t,e,n){"use strict";function i(t){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(l.get("loadWorkerFromBlob")){var e=function(t){var e="importScripts('"+a.qualifyURL(t)+"');";try{return new Blob([e],{type:"application/javascript"})}catch(t){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(e),n.getBlob("application/javascript")}}(t),n=(window.URL||window.webkitURL).createObjectURL(e);return new Worker(n)}return new Worker(t)}function r(t){t.postMessage||(t=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=t,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage}var o=t("../lib/oop"),a=t("../lib/net"),s=t("../lib/event_emitter").EventEmitter,l=t("../config");(function(){o.implement(this,s),this.$createWorkerFromOldConfig=function(e,n,r,o,a){if(t.nameToUrl&&!t.toUrl&&(t.toUrl=t.nameToUrl),l.get("packaged")||!t.toUrl)o=o||l.moduleUrl(n,"worker");else{var s=this.$normalizePath;o=o||s(t.toUrl("ace/worker/worker.js",null,"_"));var c={};e.forEach((function(e){c[e]=s(t.toUrl(e,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=i(o),a&&this.send("importScripts",a),this.$worker.postMessage({init:!0,tlns:c,module:n,classname:r}),this.$worker},this.onMessage=function(t){var e=t.data;switch(e.type){case"event":this._signal(e.name,{data:e.data});break;case"call":var n=this.callbacks[e.id];n&&(n(e.data),delete this.callbacks[e.id]);break;case"error":this.reportError(e.data);break;case"log":window.console&&console.log&&console.log.apply(console,e.data)}},this.reportError=function(t){window.console&&console.error&&console.error(t)},this.$normalizePath=function(t){return a.qualifyURL(t)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(t,e){this.$worker.postMessage({command:t,args:e})},this.call=function(t,e,n){if(n){var i=this.callbackId++;this.callbacks[i]=n,e.push(i)}this.send(t,e)},this.emit=function(t,e){try{e.data&&e.data.err&&(e.data.err={message:e.data.err.message,stack:e.data.err.stack,code:e.data.err.code}),this.$worker.postMessage({event:t,data:{data:e.data}})}catch(t){console.error(t.stack)}},this.attachToDocument=function(t){this.$doc&&this.terminate(),this.$doc=t,this.call("setValue",[t.getValue()]),t.on("change",this.changeListener)},this.changeListener=function(t){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==t.action?this.deltaQueue.push(t.start,t.lines):this.deltaQueue.push(t.start,t.end)},this.$sendDeltaQueue=function(){var t=this.deltaQueue;t&&(this.deltaQueue=null,50<t.length&&t.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:t}))}}).call(r.prototype),e.UIWorkerClient=function(t,e,n){var i=null,o=!1,a=Object.create(s),c=[],u=new r({messageBuffer:c,terminate:function(){},postMessage:function(t){c.push(t),i&&(o?setTimeout(h):h())}});u.setEmitSync=function(t){o=t};var h=function(){var t=c.shift();t.command?i[t.command].apply(i,t.args):t.event&&a._signal(t.event,t.data)};return a.postMessage=function(t){u.onMessage({data:t})},a.callback=function(t,e){this.postMessage({type:"call",id:e,data:t})},a.emit=function(t,e){this.postMessage({type:"event",name:t,data:e})},l.loadModule(["worker",e],(function(t){for(i=new t[n](a);c.length;)h()})),u},e.WorkerClient=r,e.createWorker=i})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(t,e,n){"use strict";function i(t,e,n,i,r,o){var a=this;this.length=e,this.session=t,this.doc=t.getDocument(),this.mainClass=r,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=i,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=t.getUndoManager().$undoStack||t.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),t.selection.on("changeCursor",this.$onCursorChange)}var r=t("./range").Range,o=t("./lib/event_emitter").EventEmitter,a=t("./lib/oop");(function(){a.implement(this,o),this.setup=function(){var t=this,e=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=e.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var i=e.createAnchor(n.row,n.column);i.$insertRight=!0,i.detach(),t.others.push(i)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var t=this.session,e=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),e.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var t=0;t<this.others.length;t++)this.session.removeMarker(this.others[t].markerId)}},this.onUpdate=function(t){if(this.$updating)return this.updateAnchors(t);var e=t;if(e.start.row===e.end.row&&e.start.row===this.pos.row){this.$updating=!0;var n="insert"===t.action?e.end.column-e.start.column:e.start.column-e.end.column,i=e.start.column>=this.pos.column&&e.start.column<=this.pos.column+this.length+1,o=e.start.column-this.pos.column;if(this.updateAnchors(t),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===t.action)for(var a=this.others.length-1;0<=a;a--){var s={row:(l=this.others[a]).row,column:l.column+o};this.doc.insertMergedLines(s,t.lines)}else if("remove"===t.action)for(a=this.others.length-1;0<=a;a--){var l;s={row:(l=this.others[a]).row,column:l.column+o},this.doc.remove(new r(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(t){this.pos.onChange(t);for(var e=this.others.length;e--;)this.others[e].onChange(t);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var t=this,e=this.session,n=function(n,i){e.removeMarker(n.markerId),n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.onCursorChange=function(t){if(!this.$updating&&this.session){var e=this.session.selection.getCursor();e.row===this.pos.row&&e.column>=this.pos.column&&e.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",t)):(this.hideOtherMarkers(),this._emit("cursorLeave",t))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var t=this.session.getUndoManager(),e=(t.$undoStack||t.$undostack).length-this.$undoStackDepth,n=0;n<e;n++)t.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(i.prototype),e.PlaceHolder=i})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(t,e,n){function i(t,e){return t.row==e.row&&t.column==e.column}var r=t("../lib/event"),o=t("../lib/useragent");e.onMouseDown=function(t){function e(){var t=d.renderer.pixelToScreenCoordinates(y,b),e=x.screenToDocumentPosition(t.row,t.column,t.offsetX);i(_,t)&&i(e,p.lead)||(_=t,d.selection.moveToPosition(e),d.renderer.scrollCursorIntoView(),d.removeSelectionMarkers(S),S=p.rectangularRangeBlock(_,w),d.$mouseHandler.$clickSelection&&1==S.length&&S[0].isEmpty()&&(S[0]=d.$mouseHandler.$clickSelection.clone()),S.forEach(d.addSelectionMarker,d),d.updateSelectionMarkers())}var n=t.domEvent,a=n.altKey,s=n.shiftKey,l=n.ctrlKey,c=t.getAccelKey(),u=t.getButton();if(l&&o.isMac&&(u=n.button),t.editor.inMultiSelectMode&&2==u)t.editor.textInput.onContextMenu(t.domEvent);else if(l||a||c){if(0===u){var h,d=t.editor,p=d.selection,f=d.inMultiSelectMode,g=t.getDocumentPosition(),m=p.getCursor(),v=t.inSelection()||p.isEmpty()&&i(g,m),y=t.x,b=t.y,x=d.session,w=d.renderer.pixelToScreenCoordinates(y,b),_=w;if(d.$mouseHandler.$enableJumpToDef)l&&a||c&&a?h=s?"block":"add":a&&d.$blockSelectEnabled&&(h="block");else if(c&&!a){if(h="add",!f&&s)return}else a&&d.$blockSelectEnabled&&(h="block");if(h&&o.isMac&&n.ctrlKey&&d.$mouseHandler.cancelContextMenu(),"add"==h){if(!f&&v)return;if(!f){var C=p.toOrientedRange();d.addSelectionMarker(C)}var A=p.rangeList.rangeAtPoint(g);d.inVirtualSelectionMode=!0,s&&(A=null,C=p.ranges[0]||C,d.removeSelectionMarker(C)),d.once("mouseup",(function(){var t=p.toOrientedRange();A&&t.isEmpty()&&i(A.cursor,t.cursor)?p.substractPoint(t.cursor):(s?p.substractPoint(C.cursor):C&&(d.removeSelectionMarker(C),p.addRange(C)),p.addRange(t)),d.inVirtualSelectionMode=!1}))}else if("block"==h){var I;t.stop(),d.inVirtualSelectionMode=!0;var S=[];f&&!c?p.toSingleRange():!f&&c&&(I=p.toOrientedRange(),d.addSelectionMarker(I)),s?w=x.documentToScreenPosition(p.lead):p.moveToPosition(g),_={row:-1,column:-1};var M=e;r.capture(d.container,(function(t){y=t.clientX,b=t.clientY}),(function(t){e(),clearInterval(k),d.removeSelectionMarkers(S),S.length||(S=[p.toOrientedRange()]),I&&(d.removeSelectionMarker(I),p.toSingleRange(I));for(var n=0;n<S.length;n++)p.addRange(S[n]);d.inVirtualSelectionMode=!1,d.$mouseHandler.$clickSelection=null}));var k=setInterval((function(){M()}),20);return t.preventDefault()}}}else 0===u&&t.editor.inMultiSelectMode&&t.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(t,e,n){e.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(t){t.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(t){t.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(t){t.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(t){t.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(t){t.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(t){t.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(t){t.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(t){t.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split into lines",exec:function(t){1<t.multiSelect.rangeCount?t.multiSelect.joinSelections():t.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(t){t.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(t){t.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(t){t.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],e.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(t){t.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(t){return t&&t.inMultiSelectMode}}];var i=t("../keyboard/hash_handler").HashHandler;e.keyboardHandler=new i(e.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(t,e,n){function i(t){t.$multiselectOnSessionChange||(t.$onAddRange=t.$onAddRange.bind(t),t.$onRemoveRange=t.$onRemoveRange.bind(t),t.$onMultiSelect=t.$onMultiSelect.bind(t),t.$onSingleSelect=t.$onSingleSelect.bind(t),t.$multiselectOnSessionChange=e.onSessionChange.bind(t),t.$checkMultiselectChange=t.$checkMultiselectChange.bind(t),t.$multiselectOnSessionChange(t),t.on("changeSession",t.$multiselectOnSessionChange),t.on("mousedown",s),t.commands.addCommands(u.defaultCommands),function(t){function e(e){i&&(t.renderer.setMouseCursor(""),i=!1)}if(t.textInput){var n=t.textInput.getElement(),i=!1;l.addListener(n,"keydown",(function(n){var r=18==n.keyCode&&!(n.ctrlKey||n.shiftKey||n.metaKey);t.$blockSelectEnabled&&r?i||(t.renderer.setMouseCursor("crosshair"),i=!0):i&&e()})),l.addListener(n,"keyup",e),l.addListener(n,"blur",e)}}(t))}var r=t("./range_list").RangeList,o=t("./range").Range,a=t("./selection").Selection,s=t("./mouse/multi_select_handler").onMouseDown,l=t("./lib/event"),c=t("./lib/lang"),u=t("./commands/multi_select_commands");e.commands=u.defaultCommands.concat(u.multiSelectCommands);var h=new(t("./search").Search),d=t("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(t,e){if(t){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(t),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),e||this.fromOrientedRange(t);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}t.cursor||(t.cursor=t.end);var i=this.rangeList.add(t);return this.$onAddRange(t),i.length&&this.$onRemoveRange(i),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),e||this.fromOrientedRange(t)}},this.toSingleRange=function(t){t=t||this.ranges[0];var e=this.rangeList.removeAll();e.length&&this.$onRemoveRange(e),t&&this.fromOrientedRange(t)},this.substractPoint=function(t){var e=this.rangeList.substractPoint(t);if(e)return this.$onRemoveRange(e),e[0]},this.mergeOverlappingRanges=function(){var t=this.rangeList.merge();t.length&&this.$onRemoveRange(t)},this.$onAddRange=function(t){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(t),this._signal("addRange",{range:t})},this.$onRemoveRange=function(t){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var e=this.rangeList.ranges.pop();t.push(e),this.rangeCount=0}for(var n=t.length;n--;){var i=this.ranges.indexOf(t[n]);this.ranges.splice(i,1)}this._signal("removeRange",{ranges:t}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(e=e||this.ranges[0])&&!e.isEqual(this.getRange())&&this.fromOrientedRange(e)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var t=this.ranges.length?this.ranges:[this.getRange()],e=[],n=0;n<t.length;n++){var i=t[n],r=i.start.row,a=i.end.row;if(r===a)e.push(i.clone());else{for(e.push(new o(r,i.start.column,r,this.session.getLine(r).length));++r<a;)e.push(this.getLineRange(r,!0));e.push(new o(a,0,a,i.end.column))}0!=n||this.isBackwards()||(e=e.reverse())}for(this.toSingleRange(),n=e.length;n--;)this.addRange(e[n])},this.joinSelections=function(){var t=this.rangeList.ranges,e=t[t.length-1],n=o.fromPoints(t[0].start,e.end);this.toSingleRange(),this.setSelectionRange(n,e.cursor==e.start)},this.toggleBlockSelection=function(){if(1<this.rangeCount){var t=this.rangeList.ranges,e=t[t.length-1],n=o.fromPoints(t[0].start,e.end);this.toSingleRange(),this.setSelectionRange(n,e.cursor==e.start)}else{var i=this.session.documentToScreenPosition(this.cursor),r=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(i,r).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(t,e,n){var i=[],r=t.column<e.column;if(r)var a=t.column,s=e.column,l=t.offsetX,c=e.offsetX;else a=e.column,s=t.column,l=e.offsetX,c=t.offsetX;var u,h,d,p=t.row<e.row;if(p)var f=t.row,g=e.row;else f=e.row,g=t.row;a<0&&(a=0),f<0&&(f=0),f==g&&(n=!0);for(var m=f;m<=g;m++){var v=o.fromPoints(this.session.screenToDocumentPosition(m,a,l),this.session.screenToDocumentPosition(m,s,c));if(v.isEmpty()){if(u&&(h=v.end,d=u,h.row==d.row&&h.column==d.column))break;u=v.end}v.cursor=r?v.start:v.end,i.push(v)}if(p&&i.reverse(),!n){for(var y=i.length-1;i[y].isEmpty()&&0<y;)y--;if(0<y)for(var b=0;i[b].isEmpty();)b++;for(var x=y;b<=x;x--)i[x].isEmpty()&&i.splice(x,1)}return i}}.call(a.prototype);var p=t("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(t){t.cursor||(t.cursor=t.end);var e=this.getSelectionStyle();return t.marker=this.session.addMarker(t,"ace_selection",e),this.session.$selectionMarkers.push(t),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,t},this.removeSelectionMarker=function(t){if(t.marker){this.session.removeMarker(t.marker);var e=this.session.$selectionMarkers.indexOf(t);-1!=e&&this.session.$selectionMarkers.splice(e,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(t){for(var e=this.session.$selectionMarkers,n=t.length;n--;){var i=t[n];if(i.marker){this.session.removeMarker(i.marker);var r=e.indexOf(i);-1!=r&&e.splice(r,1)}}this.session.selectionMarkerCount=e.length},this.$onAddRange=function(t){this.addSelectionMarker(t.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(t){this.removeSelectionMarkers(t.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(t){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(u.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(t){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(u.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(t){var e=t.command,n=t.editor;if(n.multiSelect){if(e.multiSelectAction)i="forEach"==e.multiSelectAction?n.forEachSelection(e,t.args):"forEachLine"==e.multiSelectAction?n.forEachSelection(e,t.args,!0):"single"==e.multiSelectAction?(n.exitMultiSelectMode(),e.exec(n,t.args||{})):e.multiSelectAction(n,t.args||{});else{var i=e.exec(n,t.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return i}},this.forEachSelection=function(t,e,n){if(!this.inVirtualSelectionMode){var i,r=n&&n.keepOrder,o=1==n||n&&n.$byLines,s=this.session,l=this.selection,c=l.rangeList,u=(r?l:c).ranges;if(!u.length)return t.exec?t.exec(this,e||{}):t(this,e||{});var h=l._eventRegistry;l._eventRegistry={};var d=new a(s);this.inVirtualSelectionMode=!0;for(var p=u.length;p--;){if(o)for(;0<p&&u[p].start.row==u[p-1].end.row;)p--;d.fromOrientedRange(u[p]),d.index=p,this.selection=s.selection=d;var f=t.exec?t.exec(this,e||{}):t(this,e||{});i||void 0===f||(i=f),d.toOrientedRange(u[p])}d.detach(),this.selection=s.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=h,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),i}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var t="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var e=this.multiSelect.rangeList.ranges,n=[],i=0;i<e.length;i++)n.push(this.session.getTextRange(e[i]));var r=this.session.getDocument().getNewLineCharacter();(t=n.join(r)).length==(n.length-1)*r.length&&(t="")}else this.selection.isEmpty()||(t=this.session.getTextRange(this.getSelectionRange()));return t},this.$checkMultiselectChange=function(t,e){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&e==this.multiSelect.anchor)return;var i=e==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;i.row!=e.row||this.session.$clipPositionToDocument(i.row,i.column).column!=e.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(t,e,n){if((e=e||{}).needle=t||e.needle,null==e.needle){var i=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();e.needle=this.session.getTextRange(i)}this.$search.set(e);var r=this.$search.findAll(this.session);if(!r.length)return 0;var o=this.multiSelect;n||o.toSingleRange(r[0]);for(var a=r.length;a--;)o.addRange(r[a],!0);return i&&o.rangeList.rangeAtPoint(i.start)&&o.addRange(i,!0),r.length},this.selectMoreLines=function(t,e){var n=this.selection.toOrientedRange(),i=n.cursor==n.end,r=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(r.column=this.selection.$desiredColumn);var a,s=this.session.screenToDocumentPosition(r.row+t,r.column);if(n.isEmpty())c=s;else var l=this.session.documentToScreenPosition(i?n.end:n.start),c=this.session.screenToDocumentPosition(l.row+t,l.column);if(i?(a=o.fromPoints(s,c)).cursor=a.start:(a=o.fromPoints(c,s)).cursor=a.end,a.desiredColumn=r.column,this.selection.inMultiSelectMode){if(e)var u=n.cursor}else this.selection.addRange(n);this.selection.addRange(a),u&&this.selection.substractPoint(u)},this.transposeSelections=function(t){for(var e=this.session,n=e.multiSelect,i=n.ranges,r=i.length;r--;)if((s=i[r]).isEmpty()){var o=e.getWordRange(s.start.row,s.start.column);s.start.row=o.start.row,s.start.column=o.start.column,s.end.row=o.end.row,s.end.column=o.end.column}n.mergeOverlappingRanges();var a=[];for(r=i.length;r--;){var s=i[r];a.unshift(e.getTextRange(s))}for(t<0?a.unshift(a.pop()):a.push(a.shift()),r=i.length;r--;)o=(s=i[r]).clone(),e.replace(s,a[r]),s.start.row=o.start.row,s.start.column=o.start.column;n.fromOrientedRange(n.ranges[0])},this.selectMore=function(t,e,n){var i=this.session,r=i.multiSelect.toOrientedRange();if(!r.isEmpty()||((r=i.getWordRange(r.start.row,r.start.column)).cursor=-1==t?r.start:r.end,this.multiSelect.addRange(r),!n)){var o,a,s,l=i.getTextRange(r),c=(o=i,a=l,s=t,h.$options.wrap=!0,h.$options.needle=a,h.$options.backwards=-1==s,h.find(o));c&&(c.cursor=-1==t?c.start:c.end,this.session.unfold(c),this.multiSelect.addRange(c),this.renderer.scrollCursorIntoView(null,.5)),e&&this.multiSelect.substractPoint(r.cursor)}},this.alignCursors=function(){var t=this.session,e=t.multiSelect,n=e.ranges,i=-1,r=n.filter((function(t){if(t.cursor.row==i)return!0;i=t.cursor.row}));if(n.length&&r.length!=n.length-1){r.forEach((function(t){e.substractPoint(t.cursor)}));var a=0,s=1/0,l=n.map((function(e){var n=e.cursor,i=t.getLine(n.row).substr(n.column).search(/\S/g);return-1==i&&(i=0),n.column>a&&(a=n.column),i<s&&(s=i),i}));n.forEach((function(e,n){var i=e.cursor,r=a-i.column,u=l[n]-s;u<r?t.insert(i,c.stringRepeat(" ",r-u)):t.remove(new o(i.row,i.column,i.row,i.column-r+u)),e.start.column=e.end.column=a,e.start.row=e.end.row=i.row,e.cursor=e.end})),e.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),h=u.start.row,d=u.end.row,p=h==d;if(p){for(var f,g=this.session.getLength();f=this.session.getLine(d),/[=:]/.test(f)&&++d<g;);for(;f=this.session.getLine(h),/[=:]/.test(f)&&0<--h;);h<0&&(h=0),g<=d&&(d=g-1)}var m=this.session.removeFullLines(h,d);m=this.$reAlignText(m,p),this.session.insert({row:h,column:0},m.join("\n")+"\n"),p||(u.start.column=0,u.end.column=m[m.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(t,e){function n(t){return c.stringRepeat(" ",t)}function i(t){return t[2]?n(r)+t[2]+n(o-t[2].length+a)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}var r,o,a,s=!0,l=!0;return t.map((function(t){var e=t.match(/(\s*)(.*?)(\s*)([=:].*)/);return e?(null==r?(r=e[1].length,o=e[2].length,a=e[3].length):(r+o+a!=e[1].length+e[2].length+e[3].length&&(l=!1),r!=e[1].length&&(s=!1),r>e[1].length&&(r=e[1].length),o<e[2].length&&(o=e[2].length),a>e[3].length&&(a=e[3].length)),e):[t]})).map(e?i:s?l?function(t){return t[2]?n(r+o-t[2].length)+t[2]+n(a)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]}:i:function(t){return t[2]?n(r)+t[2]+n(a)+t[4].replace(/^([=:])\s+/,"$1 "):t[0]})}}).call(p.prototype),e.onSessionChange=function(t){var e=t.session;e&&!e.multiSelect&&(e.$selectionMarkers=[],e.selection.$initRangeList(),e.multiSelect=e.selection),this.multiSelect=e&&e.multiSelect;var n=t.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),e&&(e.multiSelect.on("addRange",this.$onAddRange),e.multiSelect.on("removeRange",this.$onRemoveRange),e.multiSelect.on("multiSelect",this.$onMultiSelect),e.multiSelect.on("singleSelect",this.$onSingleSelect),e.multiSelect.lead.on("change",this.$checkMultiselectChange),e.multiSelect.anchor.on("change",this.$checkMultiselectChange)),e&&this.inMultiSelectMode!=e.selection.inMultiSelectMode&&(e.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},e.MultiSelect=i,t("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(t){i(this),t?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(t){this.$blockSelectEnabled=t},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(t,e,n){"use strict";var i=t("../../range").Range,r=e.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(t,e,n){var i=t.getLine(n);return this.foldingStartMarker.test(i)?"start":"markbeginend"==e&&this.foldingStopMarker&&this.foldingStopMarker.test(i)?"end":""},this.getFoldWidgetRange=function(t,e,n){return null},this.indentationBlock=function(t,e,n){var r=/\S/,o=t.getLine(e),a=o.search(r);if(-1!=a){for(var s=n||o.length,l=t.getLength(),c=e,u=e;++e<l;){var h=t.getLine(e).search(r);if(-1!=h){if(h<=a){var d=t.getTokenAt(e,0);if(!d||"string"!==d.type)break}u=e}}if(c<u){var p=t.getLine(u).length;return new i(c,s,u,p)}}},this.openingBracketBlock=function(t,e,n,r,o){var a={row:n,column:r+1},s=t.$findClosingBracket(e,a,o);if(s){var l=t.foldWidgets[s.row];return null==l&&(l=t.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=t.getLine(s.row).length),i.fromPoints(a,s)}},this.closingBracketBlock=function(t,e,n,r,o){var a={row:n,column:r},s=t.$findOpeningBracket(e,a);if(s)return s.column++,a.column--,i.fromPoints(s,a)}}).call(r.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(t,e,n){"use strict";e.isDark=!1,e.cssClass="ace-tm",e.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e.$id="ace/theme/textmate",t("../lib/dom").importCssString(e.cssText,e.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(t,e,n){"use strict";function i(t){this.session=t,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}var r=t("./lib/dom");(function(){this.getRowLength=function(t){var e;return e=this.lineWidgets&&this.lineWidgets[t]&&this.lineWidgets[t].rowCount||0,this.$useWrapMode&&this.$wrapData[t]?this.$wrapData[t].length+1+e:1+e},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach((function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)})),t},this.$onChangeEditor=function(t){this.attach(t.editor)},this.attach=function(t){t&&t.widgetManager&&t.widgetManager!=this&&t.widgetManager.detach(),this.editor!=t&&(this.detach(),(this.editor=t)&&(t.widgetManager=this,t.renderer.on("beforeRender",this.measureWidgets),t.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(t){var e=this.editor;if(e){this.editor=null,e.widgetManager=null,e.renderer.off("beforeRender",this.measureWidgets),e.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(t){t&&t.el&&t.el.parentNode&&(t._inDocument=!1,t.el.parentNode.removeChild(t.el))}))}},this.updateOnFold=function(t,e){var n=e.lineWidgets;if(n&&t.action){for(var i=t.data,r=i.start.row,o=i.end.row,a="add"==t.action,s=r+1;s<o;s++)n[s]&&(n[s].hidden=a);n[o]&&(a?n[r]?n[o].hidden=a:n[r]=n[o]:(n[r]==n[o]&&(n[r]=void 0),n[o].hidden=a))}},this.updateOnChange=function(t){var e=this.session.lineWidgets;if(e){var n=t.start.row,i=t.end.row-n;if(0!=i)if("remove"==t.action){var r=e.splice(n+1,i);!e[n]&&r[r.length-1]&&(e[n]=r.pop()),r.forEach((function(t){t&&this.removeLineWidget(t)}),this),this.$updateRows()}else{var o=new Array(i);e[n]&&null!=e[n].column&&t.start.column>e[n].column&&n++,o.unshift(n,0),e.splice.apply(e,o),this.$updateRows()}}},this.$updateRows=function(){var t=this.session.lineWidgets;if(t){var e=!0;t.forEach((function(t,n){if(t)for(e=!1,t.row=n;t.$oldWidget;)t.$oldWidget.row=n,t=t.$oldWidget})),e&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(t){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var e=this.session.lineWidgets[t.row];return e&&(t.$oldWidget=e).el&&e.el.parentNode&&(e.el.parentNode.removeChild(e.el),e._inDocument=!1),this.session.lineWidgets[t.row]=t},this.addLineWidget=function(t){if(this.$registerLineWidget(t),t.session=this.session,!this.editor)return t;var e=this.editor.renderer;t.html&&!t.el&&(t.el=r.createElement("div"),t.el.innerHTML=t.html),t.el&&(r.addCssClass(t.el,"ace_lineWidgetContainer"),t.el.style.position="absolute",t.el.style.zIndex=5,e.container.appendChild(t.el),t._inDocument=!0,t.coverGutter||(t.el.style.zIndex=3),null==t.pixelHeight&&(t.pixelHeight=t.el.offsetHeight)),null==t.rowCount&&(t.rowCount=t.pixelHeight/e.layerConfig.lineHeight);var n=this.session.getFoldAt(t.row,0);if(t.$fold=n){var i=this.session.lineWidgets;t.row!=n.end.row||i[n.start.row]?t.hidden=!0:i[n.start.row]=t}return this.session._emit("changeFold",{data:{start:{row:t.row}}}),this.$updateRows(),this.renderWidgets(null,e),this.onWidgetChanged(t),t},this.removeLineWidget=function(t){if(t._inDocument=!1,t.session=null,t.el&&t.el.parentNode&&t.el.parentNode.removeChild(t.el),t.editor&&t.editor.destroy)try{t.editor.destroy()}catch(t){}if(this.session.lineWidgets){var e=this.session.lineWidgets[t.row];if(e==t)this.session.lineWidgets[t.row]=t.$oldWidget,t.$oldWidget&&this.onWidgetChanged(t.$oldWidget);else for(;e;){if(e.$oldWidget==t){e.$oldWidget=t.$oldWidget;break}e=e.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:t.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(t){for(var e=this.session.lineWidgets,n=e&&e[t],i=[];n;)i.push(n),n=n.$oldWidget;return i},this.onWidgetChanged=function(t){this.session._changedWidgets.push(t),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(t,e){var n=this.session._changedWidgets,i=e.layerConfig;if(n&&n.length){for(var r=1/0,o=0;o<n.length;o++){var a=n[o];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,e.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/i.characterWidth));var s=a.h/i.lineHeight;a.coverLine&&(s-=this.session.getRowLineCount(a.row))<0&&(s=0),a.rowCount!=s&&(a.rowCount=s,a.row<r&&(r=a.row))}}r!=1/0&&(this.session._emit("changeFold",{data:{start:{row:r}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(t,e){var n=e.layerConfig,i=this.session.lineWidgets;if(i){for(var r=Math.min(this.firstRow,n.firstRow),o=Math.max(this.lastRow,n.lastRow,i.length);0<r&&!i[r];)r--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,e.$cursorLayer.config=n;for(var a=r;a<=o;a++){var s=i[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,e.container.appendChild(s.el));var l=e.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var c=s.coverGutter?0:e.gutterWidth;s.fixedWidth||(c-=e.scrollLeft),s.el.style.left=c+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=e.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(i.prototype),e.LineWidgets=i})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(t,e,n){"use strict";function i(t,e,n){var i=t.getAnnotations().sort(a.comparePoints);if(i.length){var r=function(t,e,n){for(var i=0,r=t.length-1;i<=r;){var o=i+r>>1,a=n(e,t[o]);if(0<a)i=1+o;else{if(!(a<0))return o;r=o-1}}return-(i+1)}(i,{row:e,column:-1},a.comparePoints);r<0&&(r=-r-1),r>=i.length?r=0<n?0:i.length-1:0===r&&n<0&&(r=i.length-1);var o=i[r];if(o&&n){if(o.row===e){for(;(o=i[r+=n])&&o.row===e;);if(!o)return i.slice()}var s=[];for(e=o.row;s[n<0?"unshift":"push"](o),(o=i[r+=n])&&o.row==e;);return s.length&&s}}}var r=t("../line_widgets").LineWidgets,o=t("../lib/dom"),a=t("../range").Range;e.showErrorMarker=function(t,e){function n(t,e,n){if(0===e&&("esc"===n||"return"===n))return p.destroy(),{command:"null"}}var a=t.session;a.widgetManager||(a.widgetManager=new r(a),a.widgetManager.attach(t));var s=t.getCursorPosition(),l=s.row,c=a.widgetManager.getWidgetsAtRow(l).filter((function(t){return"errorMarker"==t.type}))[0];c?c.destroy():l-=e;var u,h=i(a,l,e);if(h){var d=h[0];s.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,s.row=d.row,u=t.renderer.$gutterLayer.$annotations[s.row]}else{if(c)return;u={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(s.row),t.selection.moveToPosition(s);var p={row:s.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},f=p.el.appendChild(o.createElement("div")),g=p.el.appendChild(o.createElement("div"));g.className="error_widget_arrow "+u.className;var m=t.renderer.$cursorLayer.getPixelPosition(s).left;g.style.left=m+t.renderer.gutterWidth-5+"px",p.el.className="error_widget_wrapper",f.className="error_widget "+u.className,f.innerHTML=u.text.join("<br>"),f.appendChild(o.createElement("div")),p.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(n),a.widgetManager.removeLineWidget(p),t.off("changeSelection",p.destroy),t.off("changeSession",p.destroy),t.off("mouseup",p.destroy),t.off("change",p.destroy))},t.keyBinding.addKeyboardHandler(n),t.on("changeSelection",p.destroy),t.on("changeSession",p.destroy),t.on("mouseup",p.destroy),t.on("change",p.destroy),t.session.widgetManager.addLineWidget(p),p.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:p.el.offsetHeight})},o.importCssString("    .error_widget_wrapper {        background: inherit;        color: inherit;        border:none    }    .error_widget {        border-top: solid 2px;        border-bottom: solid 2px;        margin: 5px 0;        padding: 10px 40px;        white-space: pre-wrap;    }    .error_widget.ace_error, .error_widget_arrow.ace_error{        border-color: #ff5a5a    }    .error_widget.ace_warning, .error_widget_arrow.ace_warning{        border-color: #F1D817    }    .error_widget.ace_info, .error_widget_arrow.ace_info{        border-color: #5a5a5a    }    .error_widget.ace_ok, .error_widget_arrow.ace_ok{        border-color: #5aaa5a    }    .error_widget_arrow {        position: absolute;        border: solid 5px;        border-top-color: transparent!important;        border-right-color: transparent!important;        border-left-color: transparent!important;        top: -5px;    }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(t,e,i){"use strict";t("./lib/fixoldbrowsers");var r=t("./lib/dom"),o=t("./lib/event"),a=t("./range").Range,s=t("./editor").Editor,l=t("./edit_session").EditSession,c=t("./undomanager").UndoManager,u=t("./virtual_renderer").VirtualRenderer;t("./worker/worker_client"),t("./keyboard/hash_handler"),t("./placeholder"),t("./multi_select"),t("./mode/folding/fold_mode"),t("./theme/textmate"),t("./ext/error_marker"),e.config=t("./config"),e.require=t,e.define=n(23),e.edit=function(t,n){if("string"==typeof t){var i=t;if(!(t=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}if(t&&t.env&&t.env.editor instanceof s)return t.env.editor;var a="";if(t&&/input|textarea/i.test(t.tagName)){var l=t;a=l.value,t=r.createElement("pre"),l.parentNode.replaceChild(t,l)}else t&&(a=t.textContent,t.innerHTML="");var c=e.createEditSession(a),h=new s(new u(t),c,n),d={document:c,editor:h,onResize:h.resize.bind(h,null)};return l&&(d.textarea=l),o.addListener(window,"resize",d.onResize),h.on("destroy",(function(){o.removeListener(window,"resize",d.onResize),d.editor.container.env=null})),h.container.env=h.env=d,h},e.createEditSession=function(t,e){var n=new l(t,e);return n.setUndoManager(new c),n},e.Range=a,e.Editor=s,e.EditSession=l,e.UndoManager=c,e.VirtualRenderer=u,e.version=e.config.version})),ace.require(["ace/ace"],(function(e){for(var n in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(n)&&(window.ace[n]=e[n]);window.ace.default=window.ace,t&&(t.exports=window.ace)}))}).call(this,n(16)(t))},function(t,e,n){(function(t){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(t,e,n){"use strict";function i(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}}var r=t("../lib/oop"),o=t("./text_highlight_rules").TextHighlightRules;r.inherits(i,o),e.JsonHighlightRules=i})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(t,e,n){"use strict";function i(){}var r=t("../range").Range;(function(){this.checkOutdent=function(t,e){return!!/^\s+$/.test(t)&&/^\s*\}/.test(e)},this.autoOutdent=function(t,e){var n=t.getLine(e).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=t.findMatchingBracket({row:e,column:i});if(!o||o.row==e)return 0;var a=this.$getIndent(t.getLine(o.row));t.replace(new r(e,0,e,i-1),a)},this.$getIndent=function(t){return t.match(/^\s*/)[0]}}).call(i.prototype),e.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(t,e,n){"use strict";var i=t("../../lib/oop"),r=t("../../range").Range,o=t("./fold_mode").FoldMode,a=e.FoldMode=function(t){t&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+t.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+t.end)))};i.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(t,e,n){var i=t.getLine(n);if(this.singleLineBlockCommentRe.test(i)&&!this.startRegionRe.test(i)&&!this.tripleStarBlockCommentRe.test(i))return"";var r=this._getFoldWidgetBase(t,e,n);return!r&&this.startRegionRe.test(i)?"start":r},this.getFoldWidgetRange=function(t,e,n,i){var r,o=t.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(t,o,n);if(r=o.match(this.foldingStartMarker)){var a=r.index;if(r[1])return this.openingBracketBlock(t,r[1],n,a);var s=t.getCommentFoldRange(n,a+r[0].length,1);return s&&!s.isMultiLine()&&(i?s=this.getSectionRange(t,n):"all"!=e&&(s=null)),s}return"markbegin"!==e&&(r=o.match(this.foldingStopMarker))?(a=r.index+r[0].length,r[1]?this.closingBracketBlock(t,r[1],n,a):t.getCommentFoldRange(n,a,-1)):void 0},this.getSectionRange=function(t,e){for(var n=t.getLine(e),i=n.search(/\S/),o=e,a=n.length,s=e+=1,l=t.getLength();++e<l;){var c=(n=t.getLine(e)).search(/\S/);if(-1!==c){if(c<i)break;var u=this.getFoldWidgetRange(t,"all",e);if(u){if(u.start.row<=o)break;if(u.isMultiLine())e=u.end.row;else if(i==c)break}s=e}}return new r(o,a,s,t.getLine(s).length)},this.getCommentRegionBlock=function(t,e,n){for(var i=e.search(/\s*$/),o=t.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<o;){e=t.getLine(n);var c=s.exec(e);if(c&&(c[1]?l--:l++,!l))break}if(a<n)return new r(a,i,n,e.length)}}.call(a.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(t,e,n){"use strict";function i(){this.HighlightRules=a,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new c}var r=t("../lib/oop"),o=t("./text").Mode,a=t("./json_highlight_rules").JsonHighlightRules,s=t("./matching_brace_outdent").MatchingBraceOutdent,l=t("./behaviour/cstyle").CstyleBehaviour,c=t("./folding/cstyle").FoldMode,u=t("../worker/worker_client").WorkerClient;r.inherits(i,o),function(){this.getNextLineIndent=function(t,e,n){var i=this.$getIndent(e);return"start"==t&&e.match(/^.*[\{\(\[]\s*$/)&&(i+=n),i},this.checkOutdent=function(t,e,n){return this.$outdent.checkOutdent(e,n)},this.autoOutdent=function(t,e,n){this.$outdent.autoOutdent(e,n)},this.createWorker=function(t){var e=new u(["ace"],"ace/mode/json_worker","JsonWorker");return e.attachToDocument(t.getDocument()),e.on("annotate",(function(e){t.setAnnotations(e.data)})),e.on("terminate",(function(){t.clearAnnotations()})),e},this.$id="ace/mode/json"}.call(i.prototype),e.Mode=i})),ace.require(["ace/mode/json"],(function(e){t&&(t.exports=e)}))}).call(this,n(16)(t))},function(t,e,n){(function(t){ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],(function(t,e,n){"use strict";function i(t,e,n){var i=r.createElement("div");r.buildDom(["div",{class:"ace_search right"},["span",{action:"hide",class:"ace_searchbtn_close"}],["div",{class:"ace_search_form"},["input",{class:"ace_search_field",placeholder:"Search for",spellcheck:"false"}],["span",{action:"findPrev",class:"ace_searchbtn prev"},"​"],["span",{action:"findNext",class:"ace_searchbtn next"},"​"],["span",{action:"findAll",class:"ace_searchbtn",title:"Alt-Enter"},"All"]],["div",{class:"ace_replace_form"},["input",{class:"ace_search_field",placeholder:"Replace with",spellcheck:"false"}],["span",{action:"replaceAndFindNext",class:"ace_searchbtn"},"Replace"],["span",{action:"replaceAll",class:"ace_searchbtn"},"All"]],["div",{class:"ace_search_options"},["span",{action:"toggleReplace",class:"ace_button",title:"Toggle Replace mode",style:"float:left;margin-top:-2px;padding:0 5px;"},"+"],["span",{class:"ace_search_counter"}],["span",{action:"toggleRegexpMode",class:"ace_button",title:"RegExp Search"},".*"],["span",{action:"toggleCaseSensitive",class:"ace_button",title:"CaseSensitive Search"},"Aa"],["span",{action:"toggleWholeWords",class:"ace_button",title:"Whole Word Search"},"\\b"],["span",{action:"searchInSelection",class:"ace_button",title:"Search In Selection"},"S"]]],i),this.element=i.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(t),r.importCssString(s,"ace_searchbox",t.container)}var r=t("../lib/dom"),o=t("../lib/lang"),a=t("../lib/event"),s='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;min-height: 1.8em;box-sizing: content-box;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width:  2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing:    border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',l=t("../keyboard/hash_handler").HashHandler,c=t("../lib/keys");r.importCssString(s,"ace_searchbox"),function(){this.setEditor=function(t){t.searchBox=this,t.renderer.scroller.appendChild(this.element),this.editor=t},this.setSession=function(t){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(t){this.searchBox=t.querySelector(".ace_search_form"),this.replaceBox=t.querySelector(".ace_replace_form"),this.searchOption=t.querySelector("[action=searchInSelection]"),this.replaceOption=t.querySelector("[action=toggleReplace]"),this.regExpOption=t.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=t.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=t.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=t.querySelector(".ace_search_counter")},this.$init=function(){var t=this.element;this.$initElements(t);var e=this;a.addListener(t,"mousedown",(function(t){setTimeout((function(){e.activeInput.focus()}),0),a.stopPropagation(t)})),a.addListener(t,"click",(function(t){var n=(t.target||t.srcElement).getAttribute("action");n&&e[n]?e[n]():e.$searchBarKb.commands[n]&&e.$searchBarKb.commands[n].exec(e),a.stopPropagation(t)})),a.addCommandKeyListener(t,(function(t,n,i){var r=c.keyCodeToString(i),o=e.$searchBarKb.findKeyCommand(n,r);o&&o.exec&&(o.exec(e),a.stopEvent(t))})),this.$onChange=o.delayedCall((function(){e.find(!1,!1)})),a.addListener(this.searchInput,"input",(function(){e.$onChange.schedule(20)})),a.addListener(this.searchInput,"focus",(function(){e.activeInput=e.searchInput,e.searchInput.value&&e.highlight()})),a.addListener(this.replaceInput,"focus",(function(){e.activeInput=e.replaceInput,e.searchInput.value&&e.highlight()}))},this.$closeSearchBarKb=new l([{bindKey:"Esc",name:"closeSearchBar",exec:function(t){t.searchBox.hide()}}]),this.$searchBarKb=new l,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(t){var e=t.isReplace=!t.isReplace;t.replaceBox.style.display=e?"":"none",t.replaceOption.checked=!1,t.$syncOptions(),t.searchInput.focus()},"Ctrl-H|Command-Option-F":function(t){t.editor.getReadOnly()||(t.replaceOption.checked=!0,t.$syncOptions(),t.replaceInput.focus())},"Ctrl-G|Command-G":function(t){t.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(t){t.findPrev()},esc:function(t){setTimeout((function(){t.hide()}))},Return:function(t){t.activeInput==t.replaceInput&&t.replace(),t.findNext()},"Shift-Return":function(t){t.activeInput==t.replaceInput&&t.replace(),t.findPrev()},"Alt-Return":function(t){t.activeInput==t.replaceInput&&t.replaceAll(),t.findAll()},Tab:function(t){(t.activeInput==t.replaceInput?t.searchInput:t.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(t){t.regExpOption.checked=!t.regExpOption.checked,t.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(t){t.caseSensitiveOption.checked=!t.caseSensitiveOption.checked,t.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(t){t.wholeWordOption.checked=!t.wholeWordOption.checked,t.$syncOptions()}},{name:"toggleReplace",exec:function(t){t.replaceOption.checked=!t.replaceOption.checked,t.$syncOptions()}},{name:"searchInSelection",exec:function(t){t.searchOption.checked=!t.searchRange,t.setSearchRange(t.searchOption.checked&&t.editor.getSelectionRange()),t.$syncOptions()}}]),this.setSearchRange=function(t){(this.searchRange=t)?this.searchRangeMarker=this.editor.session.addMarker(t,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(t){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked);var e=this.editor.getReadOnly();this.replaceOption.style.display=e?"none":"",this.replaceBox.style.display=this.replaceOption.checked&&!e?"":"none",this.find(!1,!1,t)},this.highlight=function(t){this.editor.session.highlight(t||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(t,e,n){var i=!this.editor.find(this.searchInput.value,{skipCurrent:t,backwards:e,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:n,range:this.searchRange})&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",i),this.editor._emit("findSearchBox",{match:!i}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var t=this.editor,e=t.$search.$options.re,n=0,i=0;if(e){var r=this.searchRange?t.session.getTextRange(this.searchRange):t.getValue(),o=t.session.doc.positionToIndex(t.selection.anchor);this.searchRange&&(o-=t.session.doc.positionToIndex(this.searchRange.start));for(var a,s=e.lastIndex=0;(a=e.exec(r))&&(n++,(s=a.index)<=o&&i++,!(999<n))&&(a[0]||(e.lastIndex=s+=1,!(s>=r.length))););}this.searchCounter.textContent=i+" of "+(999<n?"999+":n)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var t=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",t),this.editor._emit("findSearchBox",{match:!t}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(t,e){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=e,t&&(this.searchInput.value=t),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var t=document.activeElement;return t==this.searchInput||t==this.replaceInput}}.call(i.prototype),e.SearchBox=i,e.Search=function(t,e){(t.searchBox||new i(t)).show(t.session.getTextRange(),e)}})),ace.require(["ace/ext/searchbox"],(function(e){t&&(t.exports=e)}))}).call(this,n(16)(t))},function(t,e){t.exports="data:application/javascript;base64,Im5vIHVzZSBzdHJpY3QiOwohKGZ1bmN0aW9uKHdpbmRvdykgewppZiAodHlwZW9mIHdpbmRvdy53aW5kb3cgIT0gInVuZGVmaW5lZCIgJiYgd2luZG93LmRvY3VtZW50KQogICAgcmV0dXJuOwppZiAod2luZG93LnJlcXVpcmUgJiYgd2luZG93LmRlZmluZSkKICAgIHJldHVybjsKCmlmICghd2luZG93LmNvbnNvbGUpIHsKICAgIHdpbmRvdy5jb25zb2xlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdmFyIG1zZ3MgPSBBcnJheS5wcm90b3R5cGUuc2xpY2UuY2FsbChhcmd1bWVudHMsIDApOwogICAgICAgIHBvc3RNZXNzYWdlKHt0eXBlOiAibG9nIiwgZGF0YTogbXNnc30pOwogICAgfTsKICAgIHdpbmRvdy5jb25zb2xlLmVycm9yID0KICAgIHdpbmRvdy5jb25zb2xlLndhcm4gPSAKICAgIHdpbmRvdy5jb25zb2xlLmxvZyA9CiAgICB3aW5kb3cuY29uc29sZS50cmFjZSA9IHdpbmRvdy5jb25zb2xlOwp9CndpbmRvdy53aW5kb3cgPSB3aW5kb3c7CndpbmRvdy5hY2UgPSB3aW5kb3c7Cgp3aW5kb3cub25lcnJvciA9IGZ1bmN0aW9uKG1lc3NhZ2UsIGZpbGUsIGxpbmUsIGNvbCwgZXJyKSB7CiAgICBwb3N0TWVzc2FnZSh7dHlwZTogImVycm9yIiwgZGF0YTogewogICAgICAgIG1lc3NhZ2U6IG1lc3NhZ2UsCiAgICAgICAgZGF0YTogZXJyLmRhdGEsCiAgICAgICAgZmlsZTogZmlsZSwKICAgICAgICBsaW5lOiBsaW5lLCAKICAgICAgICBjb2w6IGNvbCwKICAgICAgICBzdGFjazogZXJyLnN0YWNrCiAgICB9fSk7Cn07Cgp3aW5kb3cubm9ybWFsaXplTW9kdWxlID0gZnVuY3Rpb24ocGFyZW50SWQsIG1vZHVsZU5hbWUpIHsKICAgIC8vIG5vcm1hbGl6ZSBwbHVnaW4gcmVxdWlyZXMKICAgIGlmIChtb2R1bGVOYW1lLmluZGV4T2YoIiEiKSAhPT0gLTEpIHsKICAgICAgICB2YXIgY2h1bmtzID0gbW9kdWxlTmFtZS5zcGxpdCgiISIpOwogICAgICAgIHJldHVybiB3aW5kb3cubm9ybWFsaXplTW9kdWxlKHBhcmVudElkLCBjaHVua3NbMF0pICsgIiEiICsgd2luZG93Lm5vcm1hbGl6ZU1vZHVsZShwYXJlbnRJZCwgY2h1bmtzWzFdKTsKICAgIH0KICAgIC8vIG5vcm1hbGl6ZSByZWxhdGl2ZSByZXF1aXJlcwogICAgaWYgKG1vZHVsZU5hbWUuY2hhckF0KDApID09ICIuIikgewogICAgICAgIHZhciBiYXNlID0gcGFyZW50SWQuc3BsaXQoIi8iKS5zbGljZSgwLCAtMSkuam9pbigiLyIpOwogICAgICAgIG1vZHVsZU5hbWUgPSAoYmFzZSA/IGJhc2UgKyAiLyIgOiAiIikgKyBtb2R1bGVOYW1lOwogICAgICAgIAogICAgICAgIHdoaWxlIChtb2R1bGVOYW1lLmluZGV4T2YoIi4iKSAhPT0gLTEgJiYgcHJldmlvdXMgIT0gbW9kdWxlTmFtZSkgewogICAgICAgICAgICB2YXIgcHJldmlvdXMgPSBtb2R1bGVOYW1lOwogICAgICAgICAgICBtb2R1bGVOYW1lID0gbW9kdWxlTmFtZS5yZXBsYWNlKC9eXC5cLy8sICIiKS5yZXBsYWNlKC9cL1wuXC8vLCAiLyIpLnJlcGxhY2UoL1teXC9dK1wvXC5cLlwvLywgIiIpOwogICAgICAgIH0KICAgIH0KICAgIAogICAgcmV0dXJuIG1vZHVsZU5hbWU7Cn07Cgp3aW5kb3cucmVxdWlyZSA9IGZ1bmN0aW9uIHJlcXVpcmUocGFyZW50SWQsIGlkKSB7CiAgICBpZiAoIWlkKSB7CiAgICAgICAgaWQgPSBwYXJlbnRJZDsKICAgICAgICBwYXJlbnRJZCA9IG51bGw7CiAgICB9CiAgICBpZiAoIWlkLmNoYXJBdCkKICAgICAgICB0aHJvdyBuZXcgRXJyb3IoIndvcmtlci5qcyByZXF1aXJlKCkgYWNjZXB0cyBvbmx5IChwYXJlbnRJZCwgaWQpIGFzIGFyZ3VtZW50cyIpOwoKICAgIGlkID0gd2luZG93Lm5vcm1hbGl6ZU1vZHVsZShwYXJlbnRJZCwgaWQpOwoKICAgIHZhciBtb2R1bGUgPSB3aW5kb3cucmVxdWlyZS5tb2R1bGVzW2lkXTsKICAgIGlmIChtb2R1bGUpIHsKICAgICAgICBpZiAoIW1vZHVsZS5pbml0aWFsaXplZCkgewogICAgICAgICAgICBtb2R1bGUuaW5pdGlhbGl6ZWQgPSB0cnVlOwogICAgICAgICAgICBtb2R1bGUuZXhwb3J0cyA9IG1vZHVsZS5mYWN0b3J5KCkuZXhwb3J0czsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIG1vZHVsZS5leHBvcnRzOwogICAgfQogICAKICAgIGlmICghd2luZG93LnJlcXVpcmUudGxucykKICAgICAgICByZXR1cm4gY29uc29sZS5sb2coInVuYWJsZSB0byBsb2FkICIgKyBpZCk7CiAgICAKICAgIHZhciBwYXRoID0gcmVzb2x2ZU1vZHVsZUlkKGlkLCB3aW5kb3cucmVxdWlyZS50bG5zKTsKICAgIGlmIChwYXRoLnNsaWNlKC0zKSAhPSAiLmpzIikgcGF0aCArPSAiLmpzIjsKICAgIAogICAgd2luZG93LnJlcXVpcmUuaWQgPSBpZDsKICAgIHdpbmRvdy5yZXF1aXJlLm1vZHVsZXNbaWRdID0ge307IC8vIHByZXZlbnQgaW5maW5pdGUgbG9vcCBvbiBicm9rZW4gbW9kdWxlcwogICAgaW1wb3J0U2NyaXB0cyhwYXRoKTsKICAgIHJldHVybiB3aW5kb3cucmVxdWlyZShwYXJlbnRJZCwgaWQpOwp9OwpmdW5jdGlvbiByZXNvbHZlTW9kdWxlSWQoaWQsIHBhdGhzKSB7CiAgICB2YXIgdGVzdFBhdGggPSBpZCwgdGFpbCA9ICIiOwogICAgd2hpbGUgKHRlc3RQYXRoKSB7CiAgICAgICAgdmFyIGFsaWFzID0gcGF0aHNbdGVzdFBhdGhdOwogICAgICAgIGlmICh0eXBlb2YgYWxpYXMgPT0gInN0cmluZyIpIHsKICAgICAgICAgICAgcmV0dXJuIGFsaWFzICsgdGFpbDsKICAgICAgICB9IGVsc2UgaWYgKGFsaWFzKSB7CiAgICAgICAgICAgIHJldHVybiAgYWxpYXMubG9jYXRpb24ucmVwbGFjZSgvXC8qJC8sICIvIikgKyAodGFpbCB8fCBhbGlhcy5tYWluIHx8IGFsaWFzLm5hbWUpOwogICAgICAgIH0gZWxzZSBpZiAoYWxpYXMgPT09IGZhbHNlKSB7CiAgICAgICAgICAgIHJldHVybiAiIjsKICAgICAgICB9CiAgICAgICAgdmFyIGkgPSB0ZXN0UGF0aC5sYXN0SW5kZXhPZigiLyIpOwogICAgICAgIGlmIChpID09PSAtMSkgYnJlYWs7CiAgICAgICAgdGFpbCA9IHRlc3RQYXRoLnN1YnN0cihpKSArIHRhaWw7CiAgICAgICAgdGVzdFBhdGggPSB0ZXN0UGF0aC5zbGljZSgwLCBpKTsKICAgIH0KICAgIHJldHVybiBpZDsKfQp3aW5kb3cucmVxdWlyZS5tb2R1bGVzID0ge307CndpbmRvdy5yZXF1aXJlLnRsbnMgPSB7fTsKCndpbmRvdy5kZWZpbmUgPSBmdW5jdGlvbihpZCwgZGVwcywgZmFjdG9yeSkgewogICAgaWYgKGFyZ3VtZW50cy5sZW5ndGggPT0gMikgewogICAgICAgIGZhY3RvcnkgPSBkZXBzOwogICAgICAgIGlmICh0eXBlb2YgaWQgIT0gInN0cmluZyIpIHsKICAgICAgICAgICAgZGVwcyA9IGlkOwogICAgICAgICAgICBpZCA9IHdpbmRvdy5yZXF1aXJlLmlkOwogICAgICAgIH0KICAgIH0gZWxzZSBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PSAxKSB7CiAgICAgICAgZmFjdG9yeSA9IGlkOwogICAgICAgIGRlcHMgPSBbXTsKICAgICAgICBpZCA9IHdpbmRvdy5yZXF1aXJlLmlkOwogICAgfQogICAgCiAgICBpZiAodHlwZW9mIGZhY3RvcnkgIT0gImZ1bmN0aW9uIikgewogICAgICAgIHdpbmRvdy5yZXF1aXJlLm1vZHVsZXNbaWRdID0gewogICAgICAgICAgICBleHBvcnRzOiBmYWN0b3J5LAogICAgICAgICAgICBpbml0aWFsaXplZDogdHJ1ZQogICAgICAgIH07CiAgICAgICAgcmV0dXJuOwogICAgfQoKICAgIGlmICghZGVwcy5sZW5ndGgpCiAgICAgICAgLy8gSWYgdGhlcmUgaXMgbm8gZGVwZW5kZW5jaWVzLCB3ZSBpbmplY3QgInJlcXVpcmUiLCAiZXhwb3J0cyIgYW5kCiAgICAgICAgLy8gIm1vZHVsZSIgYXMgZGVwZW5kZW5jaWVzLCB0byBwcm92aWRlIENvbW1vbkpTIGNvbXBhdGliaWxpdHkuCiAgICAgICAgZGVwcyA9IFsicmVxdWlyZSIsICJleHBvcnRzIiwgIm1vZHVsZSJdOwoKICAgIHZhciByZXEgPSBmdW5jdGlvbihjaGlsZElkKSB7CiAgICAgICAgcmV0dXJuIHdpbmRvdy5yZXF1aXJlKGlkLCBjaGlsZElkKTsKICAgIH07CgogICAgd2luZG93LnJlcXVpcmUubW9kdWxlc1tpZF0gPSB7CiAgICAgICAgZXhwb3J0czoge30sCiAgICAgICAgZmFjdG9yeTogZnVuY3Rpb24oKSB7CiAgICAgICAgICAgIHZhciBtb2R1bGUgPSB0aGlzOwogICAgICAgICAgICB2YXIgcmV0dXJuRXhwb3J0cyA9IGZhY3RvcnkuYXBwbHkodGhpcywgZGVwcy5zbGljZSgwLCBmYWN0b3J5Lmxlbmd0aCkubWFwKGZ1bmN0aW9uKGRlcCkgewogICAgICAgICAgICAgICAgc3dpdGNoIChkZXApIHsKICAgICAgICAgICAgICAgICAgICAvLyBCZWNhdXNlICJyZXF1aXJlIiwgImV4cG9ydHMiIGFuZCAibW9kdWxlIiBhcmVuJ3QgYWN0dWFsCiAgICAgICAgICAgICAgICAgICAgLy8gZGVwZW5kZW5jaWVzLCB3ZSBtdXN0IGhhbmRsZSB0aGVtIHNlcGVyYXRlbHkuCiAgICAgICAgICAgICAgICAgICAgY2FzZSAicmVxdWlyZSI6IHJldHVybiByZXE7CiAgICAgICAgICAgICAgICAgICAgY2FzZSAiZXhwb3J0cyI6IHJldHVybiBtb2R1bGUuZXhwb3J0czsKICAgICAgICAgICAgICAgICAgICBjYXNlICJtb2R1bGUiOiAgcmV0dXJuIG1vZHVsZTsKICAgICAgICAgICAgICAgICAgICAvLyBCdXQgZm9yIGFsbCBvdGhlciBkZXBlbmRlbmNpZXMsIHdlIGNhbiBqdXN0IGdvIGFoZWFkIGFuZAogICAgICAgICAgICAgICAgICAgIC8vIHJlcXVpcmUgdGhlbS4KICAgICAgICAgICAgICAgICAgICBkZWZhdWx0OiAgICAgICAgcmV0dXJuIHJlcShkZXApOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KSk7CiAgICAgICAgICAgIGlmIChyZXR1cm5FeHBvcnRzKQogICAgICAgICAgICAgICAgbW9kdWxlLmV4cG9ydHMgPSByZXR1cm5FeHBvcnRzOwogICAgICAgICAgICByZXR1cm4gbW9kdWxlOwogICAgICAgIH0KICAgIH07Cn07CndpbmRvdy5kZWZpbmUuYW1kID0ge307CnJlcXVpcmUudGxucyA9IHt9Owp3aW5kb3cuaW5pdEJhc2VVcmxzICA9IGZ1bmN0aW9uIGluaXRCYXNlVXJscyh0b3BMZXZlbE5hbWVzcGFjZXMpIHsKICAgIGZvciAodmFyIGkgaW4gdG9wTGV2ZWxOYW1lc3BhY2VzKQogICAgICAgIHJlcXVpcmUudGxuc1tpXSA9IHRvcExldmVsTmFtZXNwYWNlc1tpXTsKfTsKCndpbmRvdy5pbml0U2VuZGVyID0gZnVuY3Rpb24gaW5pdFNlbmRlcigpIHsKCiAgICB2YXIgRXZlbnRFbWl0dGVyID0gd2luZG93LnJlcXVpcmUoImFjZS9saWIvZXZlbnRfZW1pdHRlciIpLkV2ZW50RW1pdHRlcjsKICAgIHZhciBvb3AgPSB3aW5kb3cucmVxdWlyZSgiYWNlL2xpYi9vb3AiKTsKICAgIAogICAgdmFyIFNlbmRlciA9IGZ1bmN0aW9uKCkge307CiAgICAKICAgIChmdW5jdGlvbigpIHsKICAgICAgICAKICAgICAgICBvb3AuaW1wbGVtZW50KHRoaXMsIEV2ZW50RW1pdHRlcik7CiAgICAgICAgICAgICAgICAKICAgICAgICB0aGlzLmNhbGxiYWNrID0gZnVuY3Rpb24oZGF0YSwgY2FsbGJhY2tJZCkgewogICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICB0eXBlOiAiY2FsbCIsCiAgICAgICAgICAgICAgICBpZDogY2FsbGJhY2tJZCwKICAgICAgICAgICAgICAgIGRhdGE6IGRhdGEKICAgICAgICAgICAgfSk7CiAgICAgICAgfTsKICAgIAogICAgICAgIHRoaXMuZW1pdCA9IGZ1bmN0aW9uKG5hbWUsIGRhdGEpIHsKICAgICAgICAgICAgcG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgICAgdHlwZTogImV2ZW50IiwKICAgICAgICAgICAgICAgIG5hbWU6IG5hbWUsCiAgICAgICAgICAgICAgICBkYXRhOiBkYXRhCiAgICAgICAgICAgIH0pOwogICAgICAgIH07CiAgICAgICAgCiAgICB9KS5jYWxsKFNlbmRlci5wcm90b3R5cGUpOwogICAgCiAgICByZXR1cm4gbmV3IFNlbmRlcigpOwp9OwoKdmFyIG1haW4gPSB3aW5kb3cubWFpbiA9IG51bGw7CnZhciBzZW5kZXIgPSB3aW5kb3cuc2VuZGVyID0gbnVsbDsKCndpbmRvdy5vbm1lc3NhZ2UgPSBmdW5jdGlvbihlKSB7CiAgICB2YXIgbXNnID0gZS5kYXRhOwogICAgaWYgKG1zZy5ldmVudCAmJiBzZW5kZXIpIHsKICAgICAgICBzZW5kZXIuX3NpZ25hbChtc2cuZXZlbnQsIG1zZy5kYXRhKTsKICAgIH0KICAgIGVsc2UgaWYgKG1zZy5jb21tYW5kKSB7CiAgICAgICAgaWYgKG1haW5bbXNnLmNvbW1hbmRdKQogICAgICAgICAgICBtYWluW21zZy5jb21tYW5kXS5hcHBseShtYWluLCBtc2cuYXJncyk7CiAgICAgICAgZWxzZSBpZiAod2luZG93W21zZy5jb21tYW5kXSkKICAgICAgICAgICAgd2luZG93W21zZy5jb21tYW5kXS5hcHBseSh3aW5kb3csIG1zZy5hcmdzKTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigiVW5rbm93biBjb21tYW5kOiIgKyBtc2cuY29tbWFuZCk7CiAgICB9CiAgICBlbHNlIGlmIChtc2cuaW5pdCkgewogICAgICAgIHdpbmRvdy5pbml0QmFzZVVybHMobXNnLnRsbnMpOwogICAgICAgIHJlcXVpcmUoImFjZS9saWIvZXM1LXNoaW0iKTsKICAgICAgICBzZW5kZXIgPSB3aW5kb3cuc2VuZGVyID0gd2luZG93LmluaXRTZW5kZXIoKTsKICAgICAgICB2YXIgY2xhenogPSByZXF1aXJlKG1zZy5tb2R1bGUpW21zZy5jbGFzc25hbWVdOwogICAgICAgIG1haW4gPSB3aW5kb3cubWFpbiA9IG5ldyBjbGF6eihzZW5kZXIpOwogICAgfQp9Owp9KSh0aGlzKTsKCmFjZS5kZWZpbmUoImFjZS9saWIvb29wIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKSB7CiJ1c2Ugc3RyaWN0IjsKCmV4cG9ydHMuaW5oZXJpdHMgPSBmdW5jdGlvbihjdG9yLCBzdXBlckN0b3IpIHsKICAgIGN0b3Iuc3VwZXJfID0gc3VwZXJDdG9yOwogICAgY3Rvci5wcm90b3R5cGUgPSBPYmplY3QuY3JlYXRlKHN1cGVyQ3Rvci5wcm90b3R5cGUsIHsKICAgICAgICBjb25zdHJ1Y3RvcjogewogICAgICAgICAgICB2YWx1ZTogY3RvciwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9CiAgICB9KTsKfTsKCmV4cG9ydHMubWl4aW4gPSBmdW5jdGlvbihvYmosIG1peGluKSB7CiAgICBmb3IgKHZhciBrZXkgaW4gbWl4aW4pIHsKICAgICAgICBvYmpba2V5XSA9IG1peGluW2tleV07CiAgICB9CiAgICByZXR1cm4gb2JqOwp9OwoKZXhwb3J0cy5pbXBsZW1lbnQgPSBmdW5jdGlvbihwcm90bywgbWl4aW4pIHsKICAgIGV4cG9ydHMubWl4aW4ocHJvdG8sIG1peGluKTsKfTsKCn0pOwoKYWNlLmRlZmluZSgiYWNlL3JhbmdlIixbXSwgZnVuY3Rpb24ocmVxdWlyZSwgZXhwb3J0cywgbW9kdWxlKSB7CiJ1c2Ugc3RyaWN0IjsKdmFyIGNvbXBhcmVQb2ludHMgPSBmdW5jdGlvbihwMSwgcDIpIHsKICAgIHJldHVybiBwMS5yb3cgLSBwMi5yb3cgfHwgcDEuY29sdW1uIC0gcDIuY29sdW1uOwp9Owp2YXIgUmFuZ2UgPSBmdW5jdGlvbihzdGFydFJvdywgc3RhcnRDb2x1bW4sIGVuZFJvdywgZW5kQ29sdW1uKSB7CiAgICB0aGlzLnN0YXJ0ID0gewogICAgICAgIHJvdzogc3RhcnRSb3csCiAgICAgICAgY29sdW1uOiBzdGFydENvbHVtbgogICAgfTsKCiAgICB0aGlzLmVuZCA9IHsKICAgICAgICByb3c6IGVuZFJvdywKICAgICAgICBjb2x1bW46IGVuZENvbHVtbgogICAgfTsKfTsKCihmdW5jdGlvbigpIHsKICAgIHRoaXMuaXNFcXVhbCA9IGZ1bmN0aW9uKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuc3RhcnQucm93ID09PSByYW5nZS5zdGFydC5yb3cgJiYKICAgICAgICAgICAgdGhpcy5lbmQucm93ID09PSByYW5nZS5lbmQucm93ICYmCiAgICAgICAgICAgIHRoaXMuc3RhcnQuY29sdW1uID09PSByYW5nZS5zdGFydC5jb2x1bW4gJiYKICAgICAgICAgICAgdGhpcy5lbmQuY29sdW1uID09PSByYW5nZS5lbmQuY29sdW1uOwogICAgfTsKICAgIHRoaXMudG9TdHJpbmcgPSBmdW5jdGlvbigpIHsKICAgICAgICByZXR1cm4gKCJSYW5nZTogWyIgKyB0aGlzLnN0YXJ0LnJvdyArICIvIiArIHRoaXMuc3RhcnQuY29sdW1uICsKICAgICAgICAgICAgIl0gLT4gWyIgKyB0aGlzLmVuZC5yb3cgKyAiLyIgKyB0aGlzLmVuZC5jb2x1bW4gKyAiXSIpOwogICAgfTsKCiAgICB0aGlzLmNvbnRhaW5zID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4gdGhpcy5jb21wYXJlKHJvdywgY29sdW1uKSA9PSAwOwogICAgfTsKICAgIHRoaXMuY29tcGFyZVJhbmdlID0gZnVuY3Rpb24ocmFuZ2UpIHsKICAgICAgICB2YXIgY21wLAogICAgICAgICAgICBlbmQgPSByYW5nZS5lbmQsCiAgICAgICAgICAgIHN0YXJ0ID0gcmFuZ2Uuc3RhcnQ7CgogICAgICAgIGNtcCA9IHRoaXMuY29tcGFyZShlbmQucm93LCBlbmQuY29sdW1uKTsKICAgICAgICBpZiAoY21wID09IDEpIHsKICAgICAgICAgICAgY21wID0gdGhpcy5jb21wYXJlKHN0YXJ0LnJvdywgc3RhcnQuY29sdW1uKTsKICAgICAgICAgICAgaWYgKGNtcCA9PSAxKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMjsKICAgICAgICAgICAgfSBlbHNlIGlmIChjbXAgPT0gMCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDE7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICAgICAgfQogICAgICAgIH0gZWxzZSBpZiAoY21wID09IC0xKSB7CiAgICAgICAgICAgIHJldHVybiAtMjsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBjbXAgPSB0aGlzLmNvbXBhcmUoc3RhcnQucm93LCBzdGFydC5jb2x1bW4pOwogICAgICAgICAgICBpZiAoY21wID09IC0xKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gLTE7CiAgICAgICAgICAgIH0gZWxzZSBpZiAoY21wID09IDEpIHsKICAgICAgICAgICAgICAgIHJldHVybiA0MjsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgfTsKICAgIHRoaXMuY29tcGFyZVBvaW50ID0gZnVuY3Rpb24ocCkgewogICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmUocC5yb3csIHAuY29sdW1uKTsKICAgIH07CiAgICB0aGlzLmNvbnRhaW5zUmFuZ2UgPSBmdW5jdGlvbihyYW5nZSkgewogICAgICAgIHJldHVybiB0aGlzLmNvbXBhcmVQb2ludChyYW5nZS5zdGFydCkgPT0gMCAmJiB0aGlzLmNvbXBhcmVQb2ludChyYW5nZS5lbmQpID09IDA7CiAgICB9OwogICAgdGhpcy5pbnRlcnNlY3RzID0gZnVuY3Rpb24ocmFuZ2UpIHsKICAgICAgICB2YXIgY21wID0gdGhpcy5jb21wYXJlUmFuZ2UocmFuZ2UpOwogICAgICAgIHJldHVybiAoY21wID09IC0xIHx8IGNtcCA9PSAwIHx8IGNtcCA9PSAxKTsKICAgIH07CiAgICB0aGlzLmlzRW5kID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4gdGhpcy5lbmQucm93ID09IHJvdyAmJiB0aGlzLmVuZC5jb2x1bW4gPT0gY29sdW1uOwogICAgfTsKICAgIHRoaXMuaXNTdGFydCA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuc3RhcnQucm93ID09IHJvdyAmJiB0aGlzLnN0YXJ0LmNvbHVtbiA9PSBjb2x1bW47CiAgICB9OwogICAgdGhpcy5zZXRTdGFydCA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHR5cGVvZiByb3cgPT0gIm9iamVjdCIpIHsKICAgICAgICAgICAgdGhpcy5zdGFydC5jb2x1bW4gPSByb3cuY29sdW1uOwogICAgICAgICAgICB0aGlzLnN0YXJ0LnJvdyA9IHJvdy5yb3c7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgdGhpcy5zdGFydC5yb3cgPSByb3c7CiAgICAgICAgICAgIHRoaXMuc3RhcnQuY29sdW1uID0gY29sdW1uOwogICAgICAgIH0KICAgIH07CiAgICB0aGlzLnNldEVuZCA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHR5cGVvZiByb3cgPT0gIm9iamVjdCIpIHsKICAgICAgICAgICAgdGhpcy5lbmQuY29sdW1uID0gcm93LmNvbHVtbjsKICAgICAgICAgICAgdGhpcy5lbmQucm93ID0gcm93LnJvdzsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICB0aGlzLmVuZC5yb3cgPSByb3c7CiAgICAgICAgICAgIHRoaXMuZW5kLmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB9CiAgICB9OwogICAgdGhpcy5pbnNpZGUgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIGlmICh0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pID09IDApIHsKICAgICAgICAgICAgaWYgKHRoaXMuaXNFbmQocm93LCBjb2x1bW4pIHx8IHRoaXMuaXNTdGFydChyb3csIGNvbHVtbikpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH07CiAgICB0aGlzLmluc2lkZVN0YXJ0ID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5jb21wYXJlKHJvdywgY29sdW1uKSA9PSAwKSB7CiAgICAgICAgICAgIGlmICh0aGlzLmlzRW5kKHJvdywgY29sdW1uKSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgfTsKICAgIHRoaXMuaW5zaWRlRW5kID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5jb21wYXJlKHJvdywgY29sdW1uKSA9PSAwKSB7CiAgICAgICAgICAgIGlmICh0aGlzLmlzU3RhcnQocm93LCBjb2x1bW4pKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9OwogICAgdGhpcy5jb21wYXJlID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAoIXRoaXMuaXNNdWx0aUxpbmUoKSkgewogICAgICAgICAgICBpZiAocm93ID09PSB0aGlzLnN0YXJ0LnJvdykgewogICAgICAgICAgICAgICAgcmV0dXJuIGNvbHVtbiA8IHRoaXMuc3RhcnQuY29sdW1uID8gLTEgOiAoY29sdW1uID4gdGhpcy5lbmQuY29sdW1uID8gMSA6IDApOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBpZiAocm93IDwgdGhpcy5zdGFydC5yb3cpCiAgICAgICAgICAgIHJldHVybiAtMTsKCiAgICAgICAgaWYgKHJvdyA+IHRoaXMuZW5kLnJvdykKICAgICAgICAgICAgcmV0dXJuIDE7CgogICAgICAgIGlmICh0aGlzLnN0YXJ0LnJvdyA9PT0gcm93KQogICAgICAgICAgICByZXR1cm4gY29sdW1uID49IHRoaXMuc3RhcnQuY29sdW1uID8gMCA6IC0xOwoKICAgICAgICBpZiAodGhpcy5lbmQucm93ID09PSByb3cpCiAgICAgICAgICAgIHJldHVybiBjb2x1bW4gPD0gdGhpcy5lbmQuY29sdW1uID8gMCA6IDE7CgogICAgICAgIHJldHVybiAwOwogICAgfTsKICAgIHRoaXMuY29tcGFyZVN0YXJ0ID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5zdGFydC5yb3cgPT0gcm93ICYmIHRoaXMuc3RhcnQuY29sdW1uID09IGNvbHVtbikgewogICAgICAgICAgICByZXR1cm4gLTE7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgfTsKICAgIHRoaXMuY29tcGFyZUVuZCA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgaWYgKHRoaXMuZW5kLnJvdyA9PSByb3cgJiYgdGhpcy5lbmQuY29sdW1uID09IGNvbHVtbikgewogICAgICAgICAgICByZXR1cm4gMTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gdGhpcy5jb21wYXJlKHJvdywgY29sdW1uKTsKICAgICAgICB9CiAgICB9OwogICAgdGhpcy5jb21wYXJlSW5zaWRlID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICBpZiAodGhpcy5lbmQucm93ID09IHJvdyAmJiB0aGlzLmVuZC5jb2x1bW4gPT0gY29sdW1uKSB7CiAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgIH0gZWxzZSBpZiAodGhpcy5zdGFydC5yb3cgPT0gcm93ICYmIHRoaXMuc3RhcnQuY29sdW1uID09IGNvbHVtbikgewogICAgICAgICAgICByZXR1cm4gLTE7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIHRoaXMuY29tcGFyZShyb3csIGNvbHVtbik7CiAgICAgICAgfQogICAgfTsKICAgIHRoaXMuY2xpcFJvd3MgPSBmdW5jdGlvbihmaXJzdFJvdywgbGFzdFJvdykgewogICAgICAgIGlmICh0aGlzLmVuZC5yb3cgPiBsYXN0Um93KQogICAgICAgICAgICB2YXIgZW5kID0ge3JvdzogbGFzdFJvdyArIDEsIGNvbHVtbjogMH07CiAgICAgICAgZWxzZSBpZiAodGhpcy5lbmQucm93IDwgZmlyc3RSb3cpCiAgICAgICAgICAgIHZhciBlbmQgPSB7cm93OiBmaXJzdFJvdywgY29sdW1uOiAwfTsKCiAgICAgICAgaWYgKHRoaXMuc3RhcnQucm93ID4gbGFzdFJvdykKICAgICAgICAgICAgdmFyIHN0YXJ0ID0ge3JvdzogbGFzdFJvdyArIDEsIGNvbHVtbjogMH07CiAgICAgICAgZWxzZSBpZiAodGhpcy5zdGFydC5yb3cgPCBmaXJzdFJvdykKICAgICAgICAgICAgdmFyIHN0YXJ0ID0ge3JvdzogZmlyc3RSb3csIGNvbHVtbjogMH07CgogICAgICAgIHJldHVybiBSYW5nZS5mcm9tUG9pbnRzKHN0YXJ0IHx8IHRoaXMuc3RhcnQsIGVuZCB8fCB0aGlzLmVuZCk7CiAgICB9OwogICAgdGhpcy5leHRlbmQgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIHZhciBjbXAgPSB0aGlzLmNvbXBhcmUocm93LCBjb2x1bW4pOwoKICAgICAgICBpZiAoY21wID09IDApCiAgICAgICAgICAgIHJldHVybiB0aGlzOwogICAgICAgIGVsc2UgaWYgKGNtcCA9PSAtMSkKICAgICAgICAgICAgdmFyIHN0YXJ0ID0ge3Jvdzogcm93LCBjb2x1bW46IGNvbHVtbn07CiAgICAgICAgZWxzZQogICAgICAgICAgICB2YXIgZW5kID0ge3Jvdzogcm93LCBjb2x1bW46IGNvbHVtbn07CgogICAgICAgIHJldHVybiBSYW5nZS5mcm9tUG9pbnRzKHN0YXJ0IHx8IHRoaXMuc3RhcnQsIGVuZCB8fCB0aGlzLmVuZCk7CiAgICB9OwoKICAgIHRoaXMuaXNFbXB0eSA9IGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiAodGhpcy5zdGFydC5yb3cgPT09IHRoaXMuZW5kLnJvdyAmJiB0aGlzLnN0YXJ0LmNvbHVtbiA9PT0gdGhpcy5lbmQuY29sdW1uKTsKICAgIH07CiAgICB0aGlzLmlzTXVsdGlMaW5lID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuICh0aGlzLnN0YXJ0LnJvdyAhPT0gdGhpcy5lbmQucm93KTsKICAgIH07CiAgICB0aGlzLmNsb25lID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIFJhbmdlLmZyb21Qb2ludHModGhpcy5zdGFydCwgdGhpcy5lbmQpOwogICAgfTsKICAgIHRoaXMuY29sbGFwc2VSb3dzID0gZnVuY3Rpb24oKSB7CiAgICAgICAgaWYgKHRoaXMuZW5kLmNvbHVtbiA9PSAwKQogICAgICAgICAgICByZXR1cm4gbmV3IFJhbmdlKHRoaXMuc3RhcnQucm93LCAwLCBNYXRoLm1heCh0aGlzLnN0YXJ0LnJvdywgdGhpcy5lbmQucm93LTEpLCAwKTsKICAgICAgICBlbHNlCiAgICAgICAgICAgIHJldHVybiBuZXcgUmFuZ2UodGhpcy5zdGFydC5yb3csIDAsIHRoaXMuZW5kLnJvdywgMCk7CiAgICB9OwogICAgdGhpcy50b1NjcmVlblJhbmdlID0gZnVuY3Rpb24oc2Vzc2lvbikgewogICAgICAgIHZhciBzY3JlZW5Qb3NTdGFydCA9IHNlc3Npb24uZG9jdW1lbnRUb1NjcmVlblBvc2l0aW9uKHRoaXMuc3RhcnQpOwogICAgICAgIHZhciBzY3JlZW5Qb3NFbmQgPSBzZXNzaW9uLmRvY3VtZW50VG9TY3JlZW5Qb3NpdGlvbih0aGlzLmVuZCk7CgogICAgICAgIHJldHVybiBuZXcgUmFuZ2UoCiAgICAgICAgICAgIHNjcmVlblBvc1N0YXJ0LnJvdywgc2NyZWVuUG9zU3RhcnQuY29sdW1uLAogICAgICAgICAgICBzY3JlZW5Qb3NFbmQucm93LCBzY3JlZW5Qb3NFbmQuY29sdW1uCiAgICAgICAgKTsKICAgIH07CiAgICB0aGlzLm1vdmVCeSA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgdGhpcy5zdGFydC5yb3cgKz0gcm93OwogICAgICAgIHRoaXMuc3RhcnQuY29sdW1uICs9IGNvbHVtbjsKICAgICAgICB0aGlzLmVuZC5yb3cgKz0gcm93OwogICAgICAgIHRoaXMuZW5kLmNvbHVtbiArPSBjb2x1bW47CiAgICB9OwoKfSkuY2FsbChSYW5nZS5wcm90b3R5cGUpOwpSYW5nZS5mcm9tUG9pbnRzID0gZnVuY3Rpb24oc3RhcnQsIGVuZCkgewogICAgcmV0dXJuIG5ldyBSYW5nZShzdGFydC5yb3csIHN0YXJ0LmNvbHVtbiwgZW5kLnJvdywgZW5kLmNvbHVtbik7Cn07ClJhbmdlLmNvbXBhcmVQb2ludHMgPSBjb21wYXJlUG9pbnRzOwoKUmFuZ2UuY29tcGFyZVBvaW50cyA9IGZ1bmN0aW9uKHAxLCBwMikgewogICAgcmV0dXJuIHAxLnJvdyAtIHAyLnJvdyB8fCBwMS5jb2x1bW4gLSBwMi5jb2x1bW47Cn07CgoKZXhwb3J0cy5SYW5nZSA9IFJhbmdlOwp9KTsKCmFjZS5kZWZpbmUoImFjZS9hcHBseV9kZWx0YSIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSkgewoidXNlIHN0cmljdCI7CgpmdW5jdGlvbiB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsIGVycm9yVGV4dCl7CiAgICBjb25zb2xlLmxvZygiSW52YWxpZCBEZWx0YToiLCBkZWx0YSk7CiAgICB0aHJvdyAiSW52YWxpZCBEZWx0YTogIiArIGVycm9yVGV4dDsKfQoKZnVuY3Rpb24gcG9zaXRpb25JbkRvY3VtZW50KGRvY0xpbmVzLCBwb3NpdGlvbikgewogICAgcmV0dXJuIHBvc2l0aW9uLnJvdyAgICA+PSAwICYmIHBvc2l0aW9uLnJvdyAgICA8ICBkb2NMaW5lcy5sZW5ndGggJiYKICAgICAgICAgICBwb3NpdGlvbi5jb2x1bW4gPj0gMCAmJiBwb3NpdGlvbi5jb2x1bW4gPD0gZG9jTGluZXNbcG9zaXRpb24ucm93XS5sZW5ndGg7Cn0KCmZ1bmN0aW9uIHZhbGlkYXRlRGVsdGEoZG9jTGluZXMsIGRlbHRhKSB7CiAgICBpZiAoZGVsdGEuYWN0aW9uICE9ICJpbnNlcnQiICYmIGRlbHRhLmFjdGlvbiAhPSAicmVtb3ZlIikKICAgICAgICB0aHJvd0RlbHRhRXJyb3IoZGVsdGEsICJkZWx0YS5hY3Rpb24gbXVzdCBiZSAnaW5zZXJ0JyBvciAncmVtb3ZlJyIpOwogICAgaWYgKCEoZGVsdGEubGluZXMgaW5zdGFuY2VvZiBBcnJheSkpCiAgICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEubGluZXMgbXVzdCBiZSBhbiBBcnJheSIpOwogICAgaWYgKCFkZWx0YS5zdGFydCB8fCAhZGVsdGEuZW5kKQogICAgICAgdGhyb3dEZWx0YUVycm9yKGRlbHRhLCAiZGVsdGEuc3RhcnQvZW5kIG11c3QgYmUgYW4gcHJlc2VudCIpOwogICAgdmFyIHN0YXJ0ID0gZGVsdGEuc3RhcnQ7CiAgICBpZiAoIXBvc2l0aW9uSW5Eb2N1bWVudChkb2NMaW5lcywgZGVsdGEuc3RhcnQpKQogICAgICAgIHRocm93RGVsdGFFcnJvcihkZWx0YSwgImRlbHRhLnN0YXJ0IG11c3QgYmUgY29udGFpbmVkIGluIGRvY3VtZW50Iik7CiAgICB2YXIgZW5kID0gZGVsdGEuZW5kOwogICAgaWYgKGRlbHRhLmFjdGlvbiA9PSAicmVtb3ZlIiAmJiAhcG9zaXRpb25JbkRvY3VtZW50KGRvY0xpbmVzLCBlbmQpKQogICAgICAgIHRocm93RGVsdGFFcnJvcihkZWx0YSwgImRlbHRhLmVuZCBtdXN0IGNvbnRhaW5lZCBpbiBkb2N1bWVudCBmb3IgJ3JlbW92ZScgYWN0aW9ucyIpOwogICAgdmFyIG51bVJhbmdlUm93cyA9IGVuZC5yb3cgLSBzdGFydC5yb3c7CiAgICB2YXIgbnVtUmFuZ2VMYXN0TGluZUNoYXJzID0gKGVuZC5jb2x1bW4gLSAobnVtUmFuZ2VSb3dzID09IDAgPyBzdGFydC5jb2x1bW4gOiAwKSk7CiAgICBpZiAobnVtUmFuZ2VSb3dzICE9IGRlbHRhLmxpbmVzLmxlbmd0aCAtIDEgfHwgZGVsdGEubGluZXNbbnVtUmFuZ2VSb3dzXS5sZW5ndGggIT0gbnVtUmFuZ2VMYXN0TGluZUNoYXJzKQogICAgICAgIHRocm93RGVsdGFFcnJvcihkZWx0YSwgImRlbHRhLnJhbmdlIG11c3QgbWF0Y2ggZGVsdGEgbGluZXMiKTsKfQoKZXhwb3J0cy5hcHBseURlbHRhID0gZnVuY3Rpb24oZG9jTGluZXMsIGRlbHRhLCBkb05vdFZhbGlkYXRlKSB7CiAgICAKICAgIHZhciByb3cgPSBkZWx0YS5zdGFydC5yb3c7CiAgICB2YXIgc3RhcnRDb2x1bW4gPSBkZWx0YS5zdGFydC5jb2x1bW47CiAgICB2YXIgbGluZSA9IGRvY0xpbmVzW3Jvd10gfHwgIiI7CiAgICBzd2l0Y2ggKGRlbHRhLmFjdGlvbikgewogICAgICAgIGNhc2UgImluc2VydCI6CiAgICAgICAgICAgIHZhciBsaW5lcyA9IGRlbHRhLmxpbmVzOwogICAgICAgICAgICBpZiAobGluZXMubGVuZ3RoID09PSAxKSB7CiAgICAgICAgICAgICAgICBkb2NMaW5lc1tyb3ddID0gbGluZS5zdWJzdHJpbmcoMCwgc3RhcnRDb2x1bW4pICsgZGVsdGEubGluZXNbMF0gKyBsaW5lLnN1YnN0cmluZyhzdGFydENvbHVtbik7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICB2YXIgYXJncyA9IFtyb3csIDFdLmNvbmNhdChkZWx0YS5saW5lcyk7CiAgICAgICAgICAgICAgICBkb2NMaW5lcy5zcGxpY2UuYXBwbHkoZG9jTGluZXMsIGFyZ3MpOwogICAgICAgICAgICAgICAgZG9jTGluZXNbcm93XSA9IGxpbmUuc3Vic3RyaW5nKDAsIHN0YXJ0Q29sdW1uKSArIGRvY0xpbmVzW3Jvd107CiAgICAgICAgICAgICAgICBkb2NMaW5lc1tyb3cgKyBkZWx0YS5saW5lcy5sZW5ndGggLSAxXSArPSBsaW5lLnN1YnN0cmluZyhzdGFydENvbHVtbik7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgY2FzZSAicmVtb3ZlIjoKICAgICAgICAgICAgdmFyIGVuZENvbHVtbiA9IGRlbHRhLmVuZC5jb2x1bW47CiAgICAgICAgICAgIHZhciBlbmRSb3cgPSBkZWx0YS5lbmQucm93OwogICAgICAgICAgICBpZiAocm93ID09PSBlbmRSb3cpIHsKICAgICAgICAgICAgICAgIGRvY0xpbmVzW3Jvd10gPSBsaW5lLnN1YnN0cmluZygwLCBzdGFydENvbHVtbikgKyBsaW5lLnN1YnN0cmluZyhlbmRDb2x1bW4pOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgZG9jTGluZXMuc3BsaWNlKAogICAgICAgICAgICAgICAgICAgIHJvdywgZW5kUm93IC0gcm93ICsgMSwKICAgICAgICAgICAgICAgICAgICBsaW5lLnN1YnN0cmluZygwLCBzdGFydENvbHVtbikgKyBkb2NMaW5lc1tlbmRSb3ddLnN1YnN0cmluZyhlbmRDb2x1bW4pCiAgICAgICAgICAgICAgICApOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGJyZWFrOwogICAgfQp9Owp9KTsKCmFjZS5kZWZpbmUoImFjZS9saWIvZXZlbnRfZW1pdHRlciIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSkgewoidXNlIHN0cmljdCI7Cgp2YXIgRXZlbnRFbWl0dGVyID0ge307CnZhciBzdG9wUHJvcGFnYXRpb24gPSBmdW5jdGlvbigpIHsgdGhpcy5wcm9wYWdhdGlvblN0b3BwZWQgPSB0cnVlOyB9Owp2YXIgcHJldmVudERlZmF1bHQgPSBmdW5jdGlvbigpIHsgdGhpcy5kZWZhdWx0UHJldmVudGVkID0gdHJ1ZTsgfTsKCkV2ZW50RW1pdHRlci5fZW1pdCA9CkV2ZW50RW1pdHRlci5fZGlzcGF0Y2hFdmVudCA9IGZ1bmN0aW9uKGV2ZW50TmFtZSwgZSkgewogICAgdGhpcy5fZXZlbnRSZWdpc3RyeSB8fCAodGhpcy5fZXZlbnRSZWdpc3RyeSA9IHt9KTsKICAgIHRoaXMuX2RlZmF1bHRIYW5kbGVycyB8fCAodGhpcy5fZGVmYXVsdEhhbmRsZXJzID0ge30pOwoKICAgIHZhciBsaXN0ZW5lcnMgPSB0aGlzLl9ldmVudFJlZ2lzdHJ5W2V2ZW50TmFtZV0gfHwgW107CiAgICB2YXIgZGVmYXVsdEhhbmRsZXIgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnNbZXZlbnROYW1lXTsKICAgIGlmICghbGlzdGVuZXJzLmxlbmd0aCAmJiAhZGVmYXVsdEhhbmRsZXIpCiAgICAgICAgcmV0dXJuOwoKICAgIGlmICh0eXBlb2YgZSAhPSAib2JqZWN0IiB8fCAhZSkKICAgICAgICBlID0ge307CgogICAgaWYgKCFlLnR5cGUpCiAgICAgICAgZS50eXBlID0gZXZlbnROYW1lOwogICAgaWYgKCFlLnN0b3BQcm9wYWdhdGlvbikKICAgICAgICBlLnN0b3BQcm9wYWdhdGlvbiA9IHN0b3BQcm9wYWdhdGlvbjsKICAgIGlmICghZS5wcmV2ZW50RGVmYXVsdCkKICAgICAgICBlLnByZXZlbnREZWZhdWx0ID0gcHJldmVudERlZmF1bHQ7CgogICAgbGlzdGVuZXJzID0gbGlzdGVuZXJzLnNsaWNlKCk7CiAgICBmb3IgKHZhciBpPTA7IGk8bGlzdGVuZXJzLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgbGlzdGVuZXJzW2ldKGUsIHRoaXMpOwogICAgICAgIGlmIChlLnByb3BhZ2F0aW9uU3RvcHBlZCkKICAgICAgICAgICAgYnJlYWs7CiAgICB9CiAgICAKICAgIGlmIChkZWZhdWx0SGFuZGxlciAmJiAhZS5kZWZhdWx0UHJldmVudGVkKQogICAgICAgIHJldHVybiBkZWZhdWx0SGFuZGxlcihlLCB0aGlzKTsKfTsKCgpFdmVudEVtaXR0ZXIuX3NpZ25hbCA9IGZ1bmN0aW9uKGV2ZW50TmFtZSwgZSkgewogICAgdmFyIGxpc3RlbmVycyA9ICh0aGlzLl9ldmVudFJlZ2lzdHJ5IHx8IHt9KVtldmVudE5hbWVdOwogICAgaWYgKCFsaXN0ZW5lcnMpCiAgICAgICAgcmV0dXJuOwogICAgbGlzdGVuZXJzID0gbGlzdGVuZXJzLnNsaWNlKCk7CiAgICBmb3IgKHZhciBpPTA7IGk8bGlzdGVuZXJzLmxlbmd0aDsgaSsrKQogICAgICAgIGxpc3RlbmVyc1tpXShlLCB0aGlzKTsKfTsKCkV2ZW50RW1pdHRlci5vbmNlID0gZnVuY3Rpb24oZXZlbnROYW1lLCBjYWxsYmFjaykgewogICAgdmFyIF9zZWxmID0gdGhpczsKICAgIHRoaXMuYWRkRXZlbnRMaXN0ZW5lcihldmVudE5hbWUsIGZ1bmN0aW9uIG5ld0NhbGxiYWNrKCkgewogICAgICAgIF9zZWxmLnJlbW92ZUV2ZW50TGlzdGVuZXIoZXZlbnROYW1lLCBuZXdDYWxsYmFjayk7CiAgICAgICAgY2FsbGJhY2suYXBwbHkobnVsbCwgYXJndW1lbnRzKTsKICAgIH0pOwogICAgaWYgKCFjYWxsYmFjaykgewogICAgICAgIHJldHVybiBuZXcgUHJvbWlzZShmdW5jdGlvbihyZXNvbHZlKSB7CiAgICAgICAgICAgIGNhbGxiYWNrID0gcmVzb2x2ZTsKICAgICAgICB9KTsKICAgIH0KfTsKCgpFdmVudEVtaXR0ZXIuc2V0RGVmYXVsdEhhbmRsZXIgPSBmdW5jdGlvbihldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICB2YXIgaGFuZGxlcnMgPSB0aGlzLl9kZWZhdWx0SGFuZGxlcnM7CiAgICBpZiAoIWhhbmRsZXJzKQogICAgICAgIGhhbmRsZXJzID0gdGhpcy5fZGVmYXVsdEhhbmRsZXJzID0ge19kaXNhYmxlZF86IHt9fTsKICAgIAogICAgaWYgKGhhbmRsZXJzW2V2ZW50TmFtZV0pIHsKICAgICAgICB2YXIgb2xkID0gaGFuZGxlcnNbZXZlbnROYW1lXTsKICAgICAgICB2YXIgZGlzYWJsZWQgPSBoYW5kbGVycy5fZGlzYWJsZWRfW2V2ZW50TmFtZV07CiAgICAgICAgaWYgKCFkaXNhYmxlZCkKICAgICAgICAgICAgaGFuZGxlcnMuX2Rpc2FibGVkX1tldmVudE5hbWVdID0gZGlzYWJsZWQgPSBbXTsKICAgICAgICBkaXNhYmxlZC5wdXNoKG9sZCk7CiAgICAgICAgdmFyIGkgPSBkaXNhYmxlZC5pbmRleE9mKGNhbGxiYWNrKTsKICAgICAgICBpZiAoaSAhPSAtMSkgCiAgICAgICAgICAgIGRpc2FibGVkLnNwbGljZShpLCAxKTsKICAgIH0KICAgIGhhbmRsZXJzW2V2ZW50TmFtZV0gPSBjYWxsYmFjazsKfTsKRXZlbnRFbWl0dGVyLnJlbW92ZURlZmF1bHRIYW5kbGVyID0gZnVuY3Rpb24oZXZlbnROYW1lLCBjYWxsYmFjaykgewogICAgdmFyIGhhbmRsZXJzID0gdGhpcy5fZGVmYXVsdEhhbmRsZXJzOwogICAgaWYgKCFoYW5kbGVycykKICAgICAgICByZXR1cm47CiAgICB2YXIgZGlzYWJsZWQgPSBoYW5kbGVycy5fZGlzYWJsZWRfW2V2ZW50TmFtZV07CiAgICAKICAgIGlmIChoYW5kbGVyc1tldmVudE5hbWVdID09IGNhbGxiYWNrKSB7CiAgICAgICAgaWYgKGRpc2FibGVkKQogICAgICAgICAgICB0aGlzLnNldERlZmF1bHRIYW5kbGVyKGV2ZW50TmFtZSwgZGlzYWJsZWQucG9wKCkpOwogICAgfSBlbHNlIGlmIChkaXNhYmxlZCkgewogICAgICAgIHZhciBpID0gZGlzYWJsZWQuaW5kZXhPZihjYWxsYmFjayk7CiAgICAgICAgaWYgKGkgIT0gLTEpCiAgICAgICAgICAgIGRpc2FibGVkLnNwbGljZShpLCAxKTsKICAgIH0KfTsKCkV2ZW50RW1pdHRlci5vbiA9CkV2ZW50RW1pdHRlci5hZGRFdmVudExpc3RlbmVyID0gZnVuY3Rpb24oZXZlbnROYW1lLCBjYWxsYmFjaywgY2FwdHVyaW5nKSB7CiAgICB0aGlzLl9ldmVudFJlZ2lzdHJ5ID0gdGhpcy5fZXZlbnRSZWdpc3RyeSB8fCB7fTsKCiAgICB2YXIgbGlzdGVuZXJzID0gdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdOwogICAgaWYgKCFsaXN0ZW5lcnMpCiAgICAgICAgbGlzdGVuZXJzID0gdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdID0gW107CgogICAgaWYgKGxpc3RlbmVycy5pbmRleE9mKGNhbGxiYWNrKSA9PSAtMSkKICAgICAgICBsaXN0ZW5lcnNbY2FwdHVyaW5nID8gInVuc2hpZnQiIDogInB1c2giXShjYWxsYmFjayk7CiAgICByZXR1cm4gY2FsbGJhY2s7Cn07CgpFdmVudEVtaXR0ZXIub2ZmID0KRXZlbnRFbWl0dGVyLnJlbW92ZUxpc3RlbmVyID0KRXZlbnRFbWl0dGVyLnJlbW92ZUV2ZW50TGlzdGVuZXIgPSBmdW5jdGlvbihldmVudE5hbWUsIGNhbGxiYWNrKSB7CiAgICB0aGlzLl9ldmVudFJlZ2lzdHJ5ID0gdGhpcy5fZXZlbnRSZWdpc3RyeSB8fCB7fTsKCiAgICB2YXIgbGlzdGVuZXJzID0gdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdOwogICAgaWYgKCFsaXN0ZW5lcnMpCiAgICAgICAgcmV0dXJuOwoKICAgIHZhciBpbmRleCA9IGxpc3RlbmVycy5pbmRleE9mKGNhbGxiYWNrKTsKICAgIGlmIChpbmRleCAhPT0gLTEpCiAgICAgICAgbGlzdGVuZXJzLnNwbGljZShpbmRleCwgMSk7Cn07CgpFdmVudEVtaXR0ZXIucmVtb3ZlQWxsTGlzdGVuZXJzID0gZnVuY3Rpb24oZXZlbnROYW1lKSB7CiAgICBpZiAodGhpcy5fZXZlbnRSZWdpc3RyeSkgdGhpcy5fZXZlbnRSZWdpc3RyeVtldmVudE5hbWVdID0gW107Cn07CgpleHBvcnRzLkV2ZW50RW1pdHRlciA9IEV2ZW50RW1pdHRlcjsKCn0pOwoKYWNlLmRlZmluZSgiYWNlL2FuY2hvciIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSkgewoidXNlIHN0cmljdCI7Cgp2YXIgb29wID0gcmVxdWlyZSgiLi9saWIvb29wIik7CnZhciBFdmVudEVtaXR0ZXIgPSByZXF1aXJlKCIuL2xpYi9ldmVudF9lbWl0dGVyIikuRXZlbnRFbWl0dGVyOwoKdmFyIEFuY2hvciA9IGV4cG9ydHMuQW5jaG9yID0gZnVuY3Rpb24oZG9jLCByb3csIGNvbHVtbikgewogICAgdGhpcy4kb25DaGFuZ2UgPSB0aGlzLm9uQ2hhbmdlLmJpbmQodGhpcyk7CiAgICB0aGlzLmF0dGFjaChkb2MpOwogICAgCiAgICBpZiAodHlwZW9mIGNvbHVtbiA9PSAidW5kZWZpbmVkIikKICAgICAgICB0aGlzLnNldFBvc2l0aW9uKHJvdy5yb3csIHJvdy5jb2x1bW4pOwogICAgZWxzZQogICAgICAgIHRoaXMuc2V0UG9zaXRpb24ocm93LCBjb2x1bW4pOwp9OwoKKGZ1bmN0aW9uKCkgewoKICAgIG9vcC5pbXBsZW1lbnQodGhpcywgRXZlbnRFbWl0dGVyKTsKICAgIHRoaXMuZ2V0UG9zaXRpb24gPSBmdW5jdGlvbigpIHsKICAgICAgICByZXR1cm4gdGhpcy4kY2xpcFBvc2l0aW9uVG9Eb2N1bWVudCh0aGlzLnJvdywgdGhpcy5jb2x1bW4pOwogICAgfTsKICAgIHRoaXMuZ2V0RG9jdW1lbnQgPSBmdW5jdGlvbigpIHsKICAgICAgICByZXR1cm4gdGhpcy5kb2N1bWVudDsKICAgIH07CiAgICB0aGlzLiRpbnNlcnRSaWdodCA9IGZhbHNlOwogICAgdGhpcy5vbkNoYW5nZSA9IGZ1bmN0aW9uKGRlbHRhKSB7CiAgICAgICAgaWYgKGRlbHRhLnN0YXJ0LnJvdyA9PSBkZWx0YS5lbmQucm93ICYmIGRlbHRhLnN0YXJ0LnJvdyAhPSB0aGlzLnJvdykKICAgICAgICAgICAgcmV0dXJuOwoKICAgICAgICBpZiAoZGVsdGEuc3RhcnQucm93ID4gdGhpcy5yb3cpCiAgICAgICAgICAgIHJldHVybjsKICAgICAgICAgICAgCiAgICAgICAgdmFyIHBvaW50ID0gJGdldFRyYW5zZm9ybWVkUG9pbnQoZGVsdGEsIHtyb3c6IHRoaXMucm93LCBjb2x1bW46IHRoaXMuY29sdW1ufSwgdGhpcy4kaW5zZXJ0UmlnaHQpOwogICAgICAgIHRoaXMuc2V0UG9zaXRpb24ocG9pbnQucm93LCBwb2ludC5jb2x1bW4sIHRydWUpOwogICAgfTsKICAgIAogICAgZnVuY3Rpb24gJHBvaW50c0luT3JkZXIocG9pbnQxLCBwb2ludDIsIGVxdWFsUG9pbnRzSW5PcmRlcikgewogICAgICAgIHZhciBiQ29sSXNBZnRlciA9IGVxdWFsUG9pbnRzSW5PcmRlciA/IHBvaW50MS5jb2x1bW4gPD0gcG9pbnQyLmNvbHVtbiA6IHBvaW50MS5jb2x1bW4gPCBwb2ludDIuY29sdW1uOwogICAgICAgIHJldHVybiAocG9pbnQxLnJvdyA8IHBvaW50Mi5yb3cpIHx8IChwb2ludDEucm93ID09IHBvaW50Mi5yb3cgJiYgYkNvbElzQWZ0ZXIpOwogICAgfQogICAgICAgICAgICAKICAgIGZ1bmN0aW9uICRnZXRUcmFuc2Zvcm1lZFBvaW50KGRlbHRhLCBwb2ludCwgbW92ZUlmRXF1YWwpIHsKICAgICAgICB2YXIgZGVsdGFJc0luc2VydCA9IGRlbHRhLmFjdGlvbiA9PSAiaW5zZXJ0IjsKICAgICAgICB2YXIgZGVsdGFSb3dTaGlmdCA9IChkZWx0YUlzSW5zZXJ0ID8gMSA6IC0xKSAqIChkZWx0YS5lbmQucm93ICAgIC0gZGVsdGEuc3RhcnQucm93KTsKICAgICAgICB2YXIgZGVsdGFDb2xTaGlmdCA9IChkZWx0YUlzSW5zZXJ0ID8gMSA6IC0xKSAqIChkZWx0YS5lbmQuY29sdW1uIC0gZGVsdGEuc3RhcnQuY29sdW1uKTsKICAgICAgICB2YXIgZGVsdGFTdGFydCA9IGRlbHRhLnN0YXJ0OwogICAgICAgIHZhciBkZWx0YUVuZCA9IGRlbHRhSXNJbnNlcnQgPyBkZWx0YVN0YXJ0IDogZGVsdGEuZW5kOyAvLyBDb2xsYXBzZSBpbnNlcnQgcmFuZ2UuCiAgICAgICAgaWYgKCRwb2ludHNJbk9yZGVyKHBvaW50LCBkZWx0YVN0YXJ0LCBtb3ZlSWZFcXVhbCkpIHsKICAgICAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgICAgIHJvdzogcG9pbnQucm93LAogICAgICAgICAgICAgICAgY29sdW1uOiBwb2ludC5jb2x1bW4KICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgaWYgKCRwb2ludHNJbk9yZGVyKGRlbHRhRW5kLCBwb2ludCwgIW1vdmVJZkVxdWFsKSkgewogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgcm93OiBwb2ludC5yb3cgKyBkZWx0YVJvd1NoaWZ0LAogICAgICAgICAgICAgICAgY29sdW1uOiBwb2ludC5jb2x1bW4gKyAocG9pbnQucm93ID09IGRlbHRhRW5kLnJvdyA/IGRlbHRhQ29sU2hpZnQgOiAwKQogICAgICAgICAgICB9OwogICAgICAgIH0KICAgICAgICAKICAgICAgICByZXR1cm4gewogICAgICAgICAgICByb3c6IGRlbHRhU3RhcnQucm93LAogICAgICAgICAgICBjb2x1bW46IGRlbHRhU3RhcnQuY29sdW1uCiAgICAgICAgfTsKICAgIH0KICAgIHRoaXMuc2V0UG9zaXRpb24gPSBmdW5jdGlvbihyb3csIGNvbHVtbiwgbm9DbGlwKSB7CiAgICAgICAgdmFyIHBvczsKICAgICAgICBpZiAobm9DbGlwKSB7CiAgICAgICAgICAgIHBvcyA9IHsKICAgICAgICAgICAgICAgIHJvdzogcm93LAogICAgICAgICAgICAgICAgY29sdW1uOiBjb2x1bW4KICAgICAgICAgICAgfTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBwb3MgPSB0aGlzLiRjbGlwUG9zaXRpb25Ub0RvY3VtZW50KHJvdywgY29sdW1uKTsKICAgICAgICB9CgogICAgICAgIGlmICh0aGlzLnJvdyA9PSBwb3Mucm93ICYmIHRoaXMuY29sdW1uID09IHBvcy5jb2x1bW4pCiAgICAgICAgICAgIHJldHVybjsKCiAgICAgICAgdmFyIG9sZCA9IHsKICAgICAgICAgICAgcm93OiB0aGlzLnJvdywKICAgICAgICAgICAgY29sdW1uOiB0aGlzLmNvbHVtbgogICAgICAgIH07CgogICAgICAgIHRoaXMucm93ID0gcG9zLnJvdzsKICAgICAgICB0aGlzLmNvbHVtbiA9IHBvcy5jb2x1bW47CiAgICAgICAgdGhpcy5fc2lnbmFsKCJjaGFuZ2UiLCB7CiAgICAgICAgICAgIG9sZDogb2xkLAogICAgICAgICAgICB2YWx1ZTogcG9zCiAgICAgICAgfSk7CiAgICB9OwogICAgdGhpcy5kZXRhY2ggPSBmdW5jdGlvbigpIHsKICAgICAgICB0aGlzLmRvY3VtZW50LnJlbW92ZUV2ZW50TGlzdGVuZXIoImNoYW5nZSIsIHRoaXMuJG9uQ2hhbmdlKTsKICAgIH07CiAgICB0aGlzLmF0dGFjaCA9IGZ1bmN0aW9uKGRvYykgewogICAgICAgIHRoaXMuZG9jdW1lbnQgPSBkb2MgfHwgdGhpcy5kb2N1bWVudDsKICAgICAgICB0aGlzLmRvY3VtZW50Lm9uKCJjaGFuZ2UiLCB0aGlzLiRvbkNoYW5nZSk7CiAgICB9OwogICAgdGhpcy4kY2xpcFBvc2l0aW9uVG9Eb2N1bWVudCA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgdmFyIHBvcyA9IHt9OwoKICAgICAgICBpZiAocm93ID49IHRoaXMuZG9jdW1lbnQuZ2V0TGVuZ3RoKCkpIHsKICAgICAgICAgICAgcG9zLnJvdyA9IE1hdGgubWF4KDAsIHRoaXMuZG9jdW1lbnQuZ2V0TGVuZ3RoKCkgLSAxKTsKICAgICAgICAgICAgcG9zLmNvbHVtbiA9IHRoaXMuZG9jdW1lbnQuZ2V0TGluZShwb3Mucm93KS5sZW5ndGg7CiAgICAgICAgfQogICAgICAgIGVsc2UgaWYgKHJvdyA8IDApIHsKICAgICAgICAgICAgcG9zLnJvdyA9IDA7CiAgICAgICAgICAgIHBvcy5jb2x1bW4gPSAwOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgcG9zLnJvdyA9IHJvdzsKICAgICAgICAgICAgcG9zLmNvbHVtbiA9IE1hdGgubWluKHRoaXMuZG9jdW1lbnQuZ2V0TGluZShwb3Mucm93KS5sZW5ndGgsIE1hdGgubWF4KDAsIGNvbHVtbikpOwogICAgICAgIH0KCiAgICAgICAgaWYgKGNvbHVtbiA8IDApCiAgICAgICAgICAgIHBvcy5jb2x1bW4gPSAwOwoKICAgICAgICByZXR1cm4gcG9zOwogICAgfTsKCn0pLmNhbGwoQW5jaG9yLnByb3RvdHlwZSk7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9kb2N1bWVudCIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSkgewoidXNlIHN0cmljdCI7Cgp2YXIgb29wID0gcmVxdWlyZSgiLi9saWIvb29wIik7CnZhciBhcHBseURlbHRhID0gcmVxdWlyZSgiLi9hcHBseV9kZWx0YSIpLmFwcGx5RGVsdGE7CnZhciBFdmVudEVtaXR0ZXIgPSByZXF1aXJlKCIuL2xpYi9ldmVudF9lbWl0dGVyIikuRXZlbnRFbWl0dGVyOwp2YXIgUmFuZ2UgPSByZXF1aXJlKCIuL3JhbmdlIikuUmFuZ2U7CnZhciBBbmNob3IgPSByZXF1aXJlKCIuL2FuY2hvciIpLkFuY2hvcjsKCnZhciBEb2N1bWVudCA9IGZ1bmN0aW9uKHRleHRPckxpbmVzKSB7CiAgICB0aGlzLiRsaW5lcyA9IFsiIl07CiAgICBpZiAodGV4dE9yTGluZXMubGVuZ3RoID09PSAwKSB7CiAgICAgICAgdGhpcy4kbGluZXMgPSBbIiJdOwogICAgfSBlbHNlIGlmIChBcnJheS5pc0FycmF5KHRleHRPckxpbmVzKSkgewogICAgICAgIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMoe3JvdzogMCwgY29sdW1uOiAwfSwgdGV4dE9yTGluZXMpOwogICAgfSBlbHNlIHsKICAgICAgICB0aGlzLmluc2VydCh7cm93OiAwLCBjb2x1bW46MH0sIHRleHRPckxpbmVzKTsKICAgIH0KfTsKCihmdW5jdGlvbigpIHsKCiAgICBvb3AuaW1wbGVtZW50KHRoaXMsIEV2ZW50RW1pdHRlcik7CiAgICB0aGlzLnNldFZhbHVlID0gZnVuY3Rpb24odGV4dCkgewogICAgICAgIHZhciBsZW4gPSB0aGlzLmdldExlbmd0aCgpIC0gMTsKICAgICAgICB0aGlzLnJlbW92ZShuZXcgUmFuZ2UoMCwgMCwgbGVuLCB0aGlzLmdldExpbmUobGVuKS5sZW5ndGgpKTsKICAgICAgICB0aGlzLmluc2VydCh7cm93OiAwLCBjb2x1bW46IDB9LCB0ZXh0KTsKICAgIH07CiAgICB0aGlzLmdldFZhbHVlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZ2V0QWxsTGluZXMoKS5qb2luKHRoaXMuZ2V0TmV3TGluZUNoYXJhY3RlcigpKTsKICAgIH07CiAgICB0aGlzLmNyZWF0ZUFuY2hvciA9IGZ1bmN0aW9uKHJvdywgY29sdW1uKSB7CiAgICAgICAgcmV0dXJuIG5ldyBBbmNob3IodGhpcywgcm93LCBjb2x1bW4pOwogICAgfTsKICAgIGlmICgiYWFhIi5zcGxpdCgvYS8pLmxlbmd0aCA9PT0gMCkgewogICAgICAgIHRoaXMuJHNwbGl0ID0gZnVuY3Rpb24odGV4dCkgewogICAgICAgICAgICByZXR1cm4gdGV4dC5yZXBsYWNlKC9cclxufFxyL2csICJcbiIpLnNwbGl0KCJcbiIpOwogICAgICAgIH07CiAgICB9IGVsc2UgewogICAgICAgIHRoaXMuJHNwbGl0ID0gZnVuY3Rpb24odGV4dCkgewogICAgICAgICAgICByZXR1cm4gdGV4dC5zcGxpdCgvXHJcbnxccnxcbi8pOwogICAgICAgIH07CiAgICB9CgoKICAgIHRoaXMuJGRldGVjdE5ld0xpbmUgPSBmdW5jdGlvbih0ZXh0KSB7CiAgICAgICAgdmFyIG1hdGNoID0gdGV4dC5tYXRjaCgvXi4qPyhcclxufFxyfFxuKS9tKTsKICAgICAgICB0aGlzLiRhdXRvTmV3TGluZSA9IG1hdGNoID8gbWF0Y2hbMV0gOiAiXG4iOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlTmV3TGluZU1vZGUiKTsKICAgIH07CiAgICB0aGlzLmdldE5ld0xpbmVDaGFyYWN0ZXIgPSBmdW5jdGlvbigpIHsKICAgICAgICBzd2l0Y2ggKHRoaXMuJG5ld0xpbmVNb2RlKSB7CiAgICAgICAgICBjYXNlICJ3aW5kb3dzIjoKICAgICAgICAgICAgcmV0dXJuICJcclxuIjsKICAgICAgICAgIGNhc2UgInVuaXgiOgogICAgICAgICAgICByZXR1cm4gIlxuIjsKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIHJldHVybiB0aGlzLiRhdXRvTmV3TGluZSB8fCAiXG4iOwogICAgICAgIH0KICAgIH07CgogICAgdGhpcy4kYXV0b05ld0xpbmUgPSAiIjsKICAgIHRoaXMuJG5ld0xpbmVNb2RlID0gImF1dG8iOwogICAgdGhpcy5zZXROZXdMaW5lTW9kZSA9IGZ1bmN0aW9uKG5ld0xpbmVNb2RlKSB7CiAgICAgICAgaWYgKHRoaXMuJG5ld0xpbmVNb2RlID09PSBuZXdMaW5lTW9kZSkKICAgICAgICAgICAgcmV0dXJuOwoKICAgICAgICB0aGlzLiRuZXdMaW5lTW9kZSA9IG5ld0xpbmVNb2RlOwogICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlTmV3TGluZU1vZGUiKTsKICAgIH07CiAgICB0aGlzLmdldE5ld0xpbmVNb2RlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJG5ld0xpbmVNb2RlOwogICAgfTsKICAgIHRoaXMuaXNOZXdMaW5lID0gZnVuY3Rpb24odGV4dCkgewogICAgICAgIHJldHVybiAodGV4dCA9PSAiXHJcbiIgfHwgdGV4dCA9PSAiXHIiIHx8IHRleHQgPT0gIlxuIik7CiAgICB9OwogICAgdGhpcy5nZXRMaW5lID0gZnVuY3Rpb24ocm93KSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzW3Jvd10gfHwgIiI7CiAgICB9OwogICAgdGhpcy5nZXRMaW5lcyA9IGZ1bmN0aW9uKGZpcnN0Um93LCBsYXN0Um93KSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzLnNsaWNlKGZpcnN0Um93LCBsYXN0Um93ICsgMSk7CiAgICB9OwogICAgdGhpcy5nZXRBbGxMaW5lcyA9IGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiB0aGlzLmdldExpbmVzKDAsIHRoaXMuZ2V0TGVuZ3RoKCkpOwogICAgfTsKICAgIHRoaXMuZ2V0TGVuZ3RoID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuJGxpbmVzLmxlbmd0aDsKICAgIH07CiAgICB0aGlzLmdldFRleHRSYW5nZSA9IGZ1bmN0aW9uKHJhbmdlKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZ2V0TGluZXNGb3JSYW5nZShyYW5nZSkuam9pbih0aGlzLmdldE5ld0xpbmVDaGFyYWN0ZXIoKSk7CiAgICB9OwogICAgdGhpcy5nZXRMaW5lc0ZvclJhbmdlID0gZnVuY3Rpb24ocmFuZ2UpIHsKICAgICAgICB2YXIgbGluZXM7CiAgICAgICAgaWYgKHJhbmdlLnN0YXJ0LnJvdyA9PT0gcmFuZ2UuZW5kLnJvdykgewogICAgICAgICAgICBsaW5lcyA9IFt0aGlzLmdldExpbmUocmFuZ2Uuc3RhcnQucm93KS5zdWJzdHJpbmcocmFuZ2Uuc3RhcnQuY29sdW1uLCByYW5nZS5lbmQuY29sdW1uKV07CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgbGluZXMgPSB0aGlzLmdldExpbmVzKHJhbmdlLnN0YXJ0LnJvdywgcmFuZ2UuZW5kLnJvdyk7CiAgICAgICAgICAgIGxpbmVzWzBdID0gKGxpbmVzWzBdIHx8ICIiKS5zdWJzdHJpbmcocmFuZ2Uuc3RhcnQuY29sdW1uKTsKICAgICAgICAgICAgdmFyIGwgPSBsaW5lcy5sZW5ndGggLSAxOwogICAgICAgICAgICBpZiAocmFuZ2UuZW5kLnJvdyAtIHJhbmdlLnN0YXJ0LnJvdyA9PSBsKQogICAgICAgICAgICAgICAgbGluZXNbbF0gPSBsaW5lc1tsXS5zdWJzdHJpbmcoMCwgcmFuZ2UuZW5kLmNvbHVtbik7CiAgICAgICAgfQogICAgICAgIHJldHVybiBsaW5lczsKICAgIH07CiAgICB0aGlzLmluc2VydExpbmVzID0gZnVuY3Rpb24ocm93LCBsaW5lcykgewogICAgICAgIGNvbnNvbGUud2FybigiVXNlIG9mIGRvY3VtZW50Lmluc2VydExpbmVzIGlzIGRlcHJlY2F0ZWQuIFVzZSB0aGUgaW5zZXJ0RnVsbExpbmVzIG1ldGhvZCBpbnN0ZWFkLiIpOwogICAgICAgIHJldHVybiB0aGlzLmluc2VydEZ1bGxMaW5lcyhyb3csIGxpbmVzKTsKICAgIH07CiAgICB0aGlzLnJlbW92ZUxpbmVzID0gZnVuY3Rpb24oZmlyc3RSb3csIGxhc3RSb3cpIHsKICAgICAgICBjb25zb2xlLndhcm4oIlVzZSBvZiBkb2N1bWVudC5yZW1vdmVMaW5lcyBpcyBkZXByZWNhdGVkLiBVc2UgdGhlIHJlbW92ZUZ1bGxMaW5lcyBtZXRob2QgaW5zdGVhZC4iKTsKICAgICAgICByZXR1cm4gdGhpcy5yZW1vdmVGdWxsTGluZXMoZmlyc3RSb3csIGxhc3RSb3cpOwogICAgfTsKICAgIHRoaXMuaW5zZXJ0TmV3TGluZSA9IGZ1bmN0aW9uKHBvc2l0aW9uKSB7CiAgICAgICAgY29uc29sZS53YXJuKCJVc2Ugb2YgZG9jdW1lbnQuaW5zZXJ0TmV3TGluZSBpcyBkZXByZWNhdGVkLiBVc2UgaW5zZXJ0TWVyZ2VkTGluZXMocG9zaXRpb24sIFsnJywgJyddKSBpbnN0ZWFkLiIpOwogICAgICAgIHJldHVybiB0aGlzLmluc2VydE1lcmdlZExpbmVzKHBvc2l0aW9uLCBbIiIsICIiXSk7CiAgICB9OwogICAgdGhpcy5pbnNlcnQgPSBmdW5jdGlvbihwb3NpdGlvbiwgdGV4dCkgewogICAgICAgIGlmICh0aGlzLmdldExlbmd0aCgpIDw9IDEpCiAgICAgICAgICAgIHRoaXMuJGRldGVjdE5ld0xpbmUodGV4dCk7CiAgICAgICAgCiAgICAgICAgcmV0dXJuIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMocG9zaXRpb24sIHRoaXMuJHNwbGl0KHRleHQpKTsKICAgIH07CiAgICB0aGlzLmluc2VydEluTGluZSA9IGZ1bmN0aW9uKHBvc2l0aW9uLCB0ZXh0KSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHBvc2l0aW9uLnJvdywgcG9zaXRpb24uY29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5wb3MocG9zaXRpb24ucm93LCBwb3NpdGlvbi5jb2x1bW4gKyB0ZXh0Lmxlbmd0aCk7CiAgICAgICAgCiAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHN0YXJ0LAogICAgICAgICAgICBlbmQ6IGVuZCwKICAgICAgICAgICAgYWN0aW9uOiAiaW5zZXJ0IiwKICAgICAgICAgICAgbGluZXM6IFt0ZXh0XQogICAgICAgIH0sIHRydWUpOwogICAgICAgIAogICAgICAgIHJldHVybiB0aGlzLmNsb25lUG9zKGVuZCk7CiAgICB9OwogICAgCiAgICB0aGlzLmNsaXBwZWRQb3MgPSBmdW5jdGlvbihyb3csIGNvbHVtbikgewogICAgICAgIHZhciBsZW5ndGggPSB0aGlzLmdldExlbmd0aCgpOwogICAgICAgIGlmIChyb3cgPT09IHVuZGVmaW5lZCkgewogICAgICAgICAgICByb3cgPSBsZW5ndGg7CiAgICAgICAgfSBlbHNlIGlmIChyb3cgPCAwKSB7CiAgICAgICAgICAgIHJvdyA9IDA7CiAgICAgICAgfSBlbHNlIGlmIChyb3cgPj0gbGVuZ3RoKSB7CiAgICAgICAgICAgIHJvdyA9IGxlbmd0aCAtIDE7CiAgICAgICAgICAgIGNvbHVtbiA9IHVuZGVmaW5lZDsKICAgICAgICB9CiAgICAgICAgdmFyIGxpbmUgPSB0aGlzLmdldExpbmUocm93KTsKICAgICAgICBpZiAoY29sdW1uID09IHVuZGVmaW5lZCkKICAgICAgICAgICAgY29sdW1uID0gbGluZS5sZW5ndGg7CiAgICAgICAgY29sdW1uID0gTWF0aC5taW4oTWF0aC5tYXgoY29sdW1uLCAwKSwgbGluZS5sZW5ndGgpOwogICAgICAgIHJldHVybiB7cm93OiByb3csIGNvbHVtbjogY29sdW1ufTsKICAgIH07CiAgICAKICAgIHRoaXMuY2xvbmVQb3MgPSBmdW5jdGlvbihwb3MpIHsKICAgICAgICByZXR1cm4ge3JvdzogcG9zLnJvdywgY29sdW1uOiBwb3MuY29sdW1ufTsKICAgIH07CiAgICAKICAgIHRoaXMucG9zID0gZnVuY3Rpb24ocm93LCBjb2x1bW4pIHsKICAgICAgICByZXR1cm4ge3Jvdzogcm93LCBjb2x1bW46IGNvbHVtbn07CiAgICB9OwogICAgCiAgICB0aGlzLiRjbGlwUG9zaXRpb24gPSBmdW5jdGlvbihwb3NpdGlvbikgewogICAgICAgIHZhciBsZW5ndGggPSB0aGlzLmdldExlbmd0aCgpOwogICAgICAgIGlmIChwb3NpdGlvbi5yb3cgPj0gbGVuZ3RoKSB7CiAgICAgICAgICAgIHBvc2l0aW9uLnJvdyA9IE1hdGgubWF4KDAsIGxlbmd0aCAtIDEpOwogICAgICAgICAgICBwb3NpdGlvbi5jb2x1bW4gPSB0aGlzLmdldExpbmUobGVuZ3RoIC0gMSkubGVuZ3RoOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIHBvc2l0aW9uLnJvdyA9IE1hdGgubWF4KDAsIHBvc2l0aW9uLnJvdyk7CiAgICAgICAgICAgIHBvc2l0aW9uLmNvbHVtbiA9IE1hdGgubWluKE1hdGgubWF4KHBvc2l0aW9uLmNvbHVtbiwgMCksIHRoaXMuZ2V0TGluZShwb3NpdGlvbi5yb3cpLmxlbmd0aCk7CiAgICAgICAgfQogICAgICAgIHJldHVybiBwb3NpdGlvbjsKICAgIH07CiAgICB0aGlzLmluc2VydEZ1bGxMaW5lcyA9IGZ1bmN0aW9uKHJvdywgbGluZXMpIHsKICAgICAgICByb3cgPSBNYXRoLm1pbihNYXRoLm1heChyb3csIDApLCB0aGlzLmdldExlbmd0aCgpKTsKICAgICAgICB2YXIgY29sdW1uID0gMDsKICAgICAgICBpZiAocm93IDwgdGhpcy5nZXRMZW5ndGgoKSkgewogICAgICAgICAgICBsaW5lcyA9IGxpbmVzLmNvbmNhdChbIiJdKTsKICAgICAgICAgICAgY29sdW1uID0gMDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBsaW5lcyA9IFsiIl0uY29uY2F0KGxpbmVzKTsKICAgICAgICAgICAgcm93LS07CiAgICAgICAgICAgIGNvbHVtbiA9IHRoaXMuJGxpbmVzW3Jvd10ubGVuZ3RoOwogICAgICAgIH0KICAgICAgICB0aGlzLmluc2VydE1lcmdlZExpbmVzKHtyb3c6IHJvdywgY29sdW1uOiBjb2x1bW59LCBsaW5lcyk7CiAgICB9OyAgICAKICAgIHRoaXMuaW5zZXJ0TWVyZ2VkTGluZXMgPSBmdW5jdGlvbihwb3NpdGlvbiwgbGluZXMpIHsKICAgICAgICB2YXIgc3RhcnQgPSB0aGlzLmNsaXBwZWRQb3MocG9zaXRpb24ucm93LCBwb3NpdGlvbi5jb2x1bW4pOwogICAgICAgIHZhciBlbmQgPSB7CiAgICAgICAgICAgIHJvdzogc3RhcnQucm93ICsgbGluZXMubGVuZ3RoIC0gMSwKICAgICAgICAgICAgY29sdW1uOiAobGluZXMubGVuZ3RoID09IDEgPyBzdGFydC5jb2x1bW4gOiAwKSArIGxpbmVzW2xpbmVzLmxlbmd0aCAtIDFdLmxlbmd0aAogICAgICAgIH07CiAgICAgICAgCiAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHN0YXJ0LAogICAgICAgICAgICBlbmQ6IGVuZCwKICAgICAgICAgICAgYWN0aW9uOiAiaW5zZXJ0IiwKICAgICAgICAgICAgbGluZXM6IGxpbmVzCiAgICAgICAgfSk7CiAgICAgICAgCiAgICAgICAgcmV0dXJuIHRoaXMuY2xvbmVQb3MoZW5kKTsKICAgIH07CiAgICB0aGlzLnJlbW92ZSA9IGZ1bmN0aW9uKHJhbmdlKSB7CiAgICAgICAgdmFyIHN0YXJ0ID0gdGhpcy5jbGlwcGVkUG9zKHJhbmdlLnN0YXJ0LnJvdywgcmFuZ2Uuc3RhcnQuY29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5jbGlwcGVkUG9zKHJhbmdlLmVuZC5yb3csIHJhbmdlLmVuZC5jb2x1bW4pOwogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiBzdGFydCwKICAgICAgICAgICAgZW5kOiBlbmQsCiAgICAgICAgICAgIGFjdGlvbjogInJlbW92ZSIsCiAgICAgICAgICAgIGxpbmVzOiB0aGlzLmdldExpbmVzRm9yUmFuZ2Uoe3N0YXJ0OiBzdGFydCwgZW5kOiBlbmR9KQogICAgICAgIH0pOwogICAgICAgIHJldHVybiB0aGlzLmNsb25lUG9zKHN0YXJ0KTsKICAgIH07CiAgICB0aGlzLnJlbW92ZUluTGluZSA9IGZ1bmN0aW9uKHJvdywgc3RhcnRDb2x1bW4sIGVuZENvbHVtbikgewogICAgICAgIHZhciBzdGFydCA9IHRoaXMuY2xpcHBlZFBvcyhyb3csIHN0YXJ0Q29sdW1uKTsKICAgICAgICB2YXIgZW5kID0gdGhpcy5jbGlwcGVkUG9zKHJvdywgZW5kQ29sdW1uKTsKICAgICAgICAKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICBzdGFydDogc3RhcnQsCiAgICAgICAgICAgIGVuZDogZW5kLAogICAgICAgICAgICBhY3Rpb246ICJyZW1vdmUiLAogICAgICAgICAgICBsaW5lczogdGhpcy5nZXRMaW5lc0ZvclJhbmdlKHtzdGFydDogc3RhcnQsIGVuZDogZW5kfSkKICAgICAgICB9LCB0cnVlKTsKICAgICAgICAKICAgICAgICByZXR1cm4gdGhpcy5jbG9uZVBvcyhzdGFydCk7CiAgICB9OwogICAgdGhpcy5yZW1vdmVGdWxsTGluZXMgPSBmdW5jdGlvbihmaXJzdFJvdywgbGFzdFJvdykgewogICAgICAgIGZpcnN0Um93ID0gTWF0aC5taW4oTWF0aC5tYXgoMCwgZmlyc3RSb3cpLCB0aGlzLmdldExlbmd0aCgpIC0gMSk7CiAgICAgICAgbGFzdFJvdyAgPSBNYXRoLm1pbihNYXRoLm1heCgwLCBsYXN0Um93ICksIHRoaXMuZ2V0TGVuZ3RoKCkgLSAxKTsKICAgICAgICB2YXIgZGVsZXRlRmlyc3ROZXdMaW5lID0gbGFzdFJvdyA9PSB0aGlzLmdldExlbmd0aCgpIC0gMSAmJiBmaXJzdFJvdyA+IDA7CiAgICAgICAgdmFyIGRlbGV0ZUxhc3ROZXdMaW5lICA9IGxhc3RSb3cgIDwgdGhpcy5nZXRMZW5ndGgoKSAtIDE7CiAgICAgICAgdmFyIHN0YXJ0Um93ID0gKCBkZWxldGVGaXJzdE5ld0xpbmUgPyBmaXJzdFJvdyAtIDEgICAgICAgICAgICAgICAgICA6IGZpcnN0Um93ICAgICAgICAgICAgICAgICAgICApOwogICAgICAgIHZhciBzdGFydENvbCA9ICggZGVsZXRlRmlyc3ROZXdMaW5lID8gdGhpcy5nZXRMaW5lKHN0YXJ0Um93KS5sZW5ndGggOiAwICAgICAgICAgICAgICAgICAgICAgICAgICAgKTsKICAgICAgICB2YXIgZW5kUm93ICAgPSAoIGRlbGV0ZUxhc3ROZXdMaW5lICA/IGxhc3RSb3cgKyAxICAgICAgICAgICAgICAgICAgIDogbGFzdFJvdyAgICAgICAgICAgICAgICAgICAgICk7CiAgICAgICAgdmFyIGVuZENvbCAgID0gKCBkZWxldGVMYXN0TmV3TGluZSAgPyAwICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IHRoaXMuZ2V0TGluZShlbmRSb3cpLmxlbmd0aCApOyAKICAgICAgICB2YXIgcmFuZ2UgPSBuZXcgUmFuZ2Uoc3RhcnRSb3csIHN0YXJ0Q29sLCBlbmRSb3csIGVuZENvbCk7CiAgICAgICAgdmFyIGRlbGV0ZWRMaW5lcyA9IHRoaXMuJGxpbmVzLnNsaWNlKGZpcnN0Um93LCBsYXN0Um93ICsgMSk7CiAgICAgICAgCiAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgc3RhcnQ6IHJhbmdlLnN0YXJ0LAogICAgICAgICAgICBlbmQ6IHJhbmdlLmVuZCwKICAgICAgICAgICAgYWN0aW9uOiAicmVtb3ZlIiwKICAgICAgICAgICAgbGluZXM6IHRoaXMuZ2V0TGluZXNGb3JSYW5nZShyYW5nZSkKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGVsZXRlZExpbmVzOwogICAgfTsKICAgIHRoaXMucmVtb3ZlTmV3TGluZSA9IGZ1bmN0aW9uKHJvdykgewogICAgICAgIGlmIChyb3cgPCB0aGlzLmdldExlbmd0aCgpIC0gMSAmJiByb3cgPj0gMCkgewogICAgICAgICAgICB0aGlzLmFwcGx5RGVsdGEoewogICAgICAgICAgICAgICAgc3RhcnQ6IHRoaXMucG9zKHJvdywgdGhpcy5nZXRMaW5lKHJvdykubGVuZ3RoKSwKICAgICAgICAgICAgICAgIGVuZDogdGhpcy5wb3Mocm93ICsgMSwgMCksCiAgICAgICAgICAgICAgICBhY3Rpb246ICJyZW1vdmUiLAogICAgICAgICAgICAgICAgbGluZXM6IFsiIiwgIiJdCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgIH07CiAgICB0aGlzLnJlcGxhY2UgPSBmdW5jdGlvbihyYW5nZSwgdGV4dCkgewogICAgICAgIGlmICghKHJhbmdlIGluc3RhbmNlb2YgUmFuZ2UpKQogICAgICAgICAgICByYW5nZSA9IFJhbmdlLmZyb21Qb2ludHMocmFuZ2Uuc3RhcnQsIHJhbmdlLmVuZCk7CiAgICAgICAgaWYgKHRleHQubGVuZ3RoID09PSAwICYmIHJhbmdlLmlzRW1wdHkoKSkKICAgICAgICAgICAgcmV0dXJuIHJhbmdlLnN0YXJ0OwogICAgICAgIGlmICh0ZXh0ID09IHRoaXMuZ2V0VGV4dFJhbmdlKHJhbmdlKSkKICAgICAgICAgICAgcmV0dXJuIHJhbmdlLmVuZDsKCiAgICAgICAgdGhpcy5yZW1vdmUocmFuZ2UpOwogICAgICAgIHZhciBlbmQ7CiAgICAgICAgaWYgKHRleHQpIHsKICAgICAgICAgICAgZW5kID0gdGhpcy5pbnNlcnQocmFuZ2Uuc3RhcnQsIHRleHQpOwogICAgICAgIH0KICAgICAgICBlbHNlIHsKICAgICAgICAgICAgZW5kID0gcmFuZ2Uuc3RhcnQ7CiAgICAgICAgfQogICAgICAgIAogICAgICAgIHJldHVybiBlbmQ7CiAgICB9OwogICAgdGhpcy5hcHBseURlbHRhcyA9IGZ1bmN0aW9uKGRlbHRhcykgewogICAgICAgIGZvciAodmFyIGk9MDsgaTxkZWx0YXMubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgdGhpcy5hcHBseURlbHRhKGRlbHRhc1tpXSk7CiAgICAgICAgfQogICAgfTsKICAgIHRoaXMucmV2ZXJ0RGVsdGFzID0gZnVuY3Rpb24oZGVsdGFzKSB7CiAgICAgICAgZm9yICh2YXIgaT1kZWx0YXMubGVuZ3RoLTE7IGk+PTA7IGktLSkgewogICAgICAgICAgICB0aGlzLnJldmVydERlbHRhKGRlbHRhc1tpXSk7CiAgICAgICAgfQogICAgfTsKICAgIHRoaXMuYXBwbHlEZWx0YSA9IGZ1bmN0aW9uKGRlbHRhLCBkb05vdFZhbGlkYXRlKSB7CiAgICAgICAgdmFyIGlzSW5zZXJ0ID0gZGVsdGEuYWN0aW9uID09ICJpbnNlcnQiOwogICAgICAgIGlmIChpc0luc2VydCA/IGRlbHRhLmxpbmVzLmxlbmd0aCA8PSAxICYmICFkZWx0YS5saW5lc1swXQogICAgICAgICAgICA6ICFSYW5nZS5jb21wYXJlUG9pbnRzKGRlbHRhLnN0YXJ0LCBkZWx0YS5lbmQpKSB7CiAgICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgaWYgKGlzSW5zZXJ0ICYmIGRlbHRhLmxpbmVzLmxlbmd0aCA+IDIwMDAwKSB7CiAgICAgICAgICAgIHRoaXMuJHNwbGl0QW5kYXBwbHlMYXJnZURlbHRhKGRlbHRhLCAyMDAwMCk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICBhcHBseURlbHRhKHRoaXMuJGxpbmVzLCBkZWx0YSwgZG9Ob3RWYWxpZGF0ZSk7CiAgICAgICAgICAgIHRoaXMuX3NpZ25hbCgiY2hhbmdlIiwgZGVsdGEpOwogICAgICAgIH0KICAgIH07CiAgICAKICAgIHRoaXMuJHNwbGl0QW5kYXBwbHlMYXJnZURlbHRhID0gZnVuY3Rpb24oZGVsdGEsIE1BWCkgewogICAgICAgIHZhciBsaW5lcyA9IGRlbHRhLmxpbmVzOwogICAgICAgIHZhciBsID0gbGluZXMubGVuZ3RoIC0gTUFYICsgMTsKICAgICAgICB2YXIgcm93ID0gZGVsdGEuc3RhcnQucm93OyAKICAgICAgICB2YXIgY29sdW1uID0gZGVsdGEuc3RhcnQuY29sdW1uOwogICAgICAgIGZvciAodmFyIGZyb20gPSAwLCB0byA9IDA7IGZyb20gPCBsOyBmcm9tID0gdG8pIHsKICAgICAgICAgICAgdG8gKz0gTUFYIC0gMTsKICAgICAgICAgICAgdmFyIGNodW5rID0gbGluZXMuc2xpY2UoZnJvbSwgdG8pOwogICAgICAgICAgICBjaHVuay5wdXNoKCIiKTsKICAgICAgICAgICAgdGhpcy5hcHBseURlbHRhKHsKICAgICAgICAgICAgICAgIHN0YXJ0OiB0aGlzLnBvcyhyb3cgKyBmcm9tLCBjb2x1bW4pLAogICAgICAgICAgICAgICAgZW5kOiB0aGlzLnBvcyhyb3cgKyB0bywgY29sdW1uID0gMCksCiAgICAgICAgICAgICAgICBhY3Rpb246IGRlbHRhLmFjdGlvbiwKICAgICAgICAgICAgICAgIGxpbmVzOiBjaHVuawogICAgICAgICAgICB9LCB0cnVlKTsKICAgICAgICB9CiAgICAgICAgZGVsdGEubGluZXMgPSBsaW5lcy5zbGljZShmcm9tKTsKICAgICAgICBkZWx0YS5zdGFydC5yb3cgPSByb3cgKyBmcm9tOwogICAgICAgIGRlbHRhLnN0YXJ0LmNvbHVtbiA9IGNvbHVtbjsKICAgICAgICB0aGlzLmFwcGx5RGVsdGEoZGVsdGEsIHRydWUpOwogICAgfTsKICAgIHRoaXMucmV2ZXJ0RGVsdGEgPSBmdW5jdGlvbihkZWx0YSkgewogICAgICAgIHRoaXMuYXBwbHlEZWx0YSh7CiAgICAgICAgICAgIHN0YXJ0OiB0aGlzLmNsb25lUG9zKGRlbHRhLnN0YXJ0KSwKICAgICAgICAgICAgZW5kOiB0aGlzLmNsb25lUG9zKGRlbHRhLmVuZCksCiAgICAgICAgICAgIGFjdGlvbjogKGRlbHRhLmFjdGlvbiA9PSAiaW5zZXJ0IiA/ICJyZW1vdmUiIDogImluc2VydCIpLAogICAgICAgICAgICBsaW5lczogZGVsdGEubGluZXMuc2xpY2UoKQogICAgICAgIH0pOwogICAgfTsKICAgIHRoaXMuaW5kZXhUb1Bvc2l0aW9uID0gZnVuY3Rpb24oaW5kZXgsIHN0YXJ0Um93KSB7CiAgICAgICAgdmFyIGxpbmVzID0gdGhpcy4kbGluZXMgfHwgdGhpcy5nZXRBbGxMaW5lcygpOwogICAgICAgIHZhciBuZXdsaW5lTGVuZ3RoID0gdGhpcy5nZXROZXdMaW5lQ2hhcmFjdGVyKCkubGVuZ3RoOwogICAgICAgIGZvciAodmFyIGkgPSBzdGFydFJvdyB8fCAwLCBsID0gbGluZXMubGVuZ3RoOyBpIDwgbDsgaSsrKSB7CiAgICAgICAgICAgIGluZGV4IC09IGxpbmVzW2ldLmxlbmd0aCArIG5ld2xpbmVMZW5ndGg7CiAgICAgICAgICAgIGlmIChpbmRleCA8IDApCiAgICAgICAgICAgICAgICByZXR1cm4ge3JvdzogaSwgY29sdW1uOiBpbmRleCArIGxpbmVzW2ldLmxlbmd0aCArIG5ld2xpbmVMZW5ndGh9OwogICAgICAgIH0KICAgICAgICByZXR1cm4ge3JvdzogbC0xLCBjb2x1bW46IGluZGV4ICsgbGluZXNbbC0xXS5sZW5ndGggKyBuZXdsaW5lTGVuZ3RofTsKICAgIH07CiAgICB0aGlzLnBvc2l0aW9uVG9JbmRleCA9IGZ1bmN0aW9uKHBvcywgc3RhcnRSb3cpIHsKICAgICAgICB2YXIgbGluZXMgPSB0aGlzLiRsaW5lcyB8fCB0aGlzLmdldEFsbExpbmVzKCk7CiAgICAgICAgdmFyIG5ld2xpbmVMZW5ndGggPSB0aGlzLmdldE5ld0xpbmVDaGFyYWN0ZXIoKS5sZW5ndGg7CiAgICAgICAgdmFyIGluZGV4ID0gMDsKICAgICAgICB2YXIgcm93ID0gTWF0aC5taW4ocG9zLnJvdywgbGluZXMubGVuZ3RoKTsKICAgICAgICBmb3IgKHZhciBpID0gc3RhcnRSb3cgfHwgMDsgaSA8IHJvdzsgKytpKQogICAgICAgICAgICBpbmRleCArPSBsaW5lc1tpXS5sZW5ndGggKyBuZXdsaW5lTGVuZ3RoOwoKICAgICAgICByZXR1cm4gaW5kZXggKyBwb3MuY29sdW1uOwogICAgfTsKCn0pLmNhbGwoRG9jdW1lbnQucHJvdG90eXBlKTsKCmV4cG9ydHMuRG9jdW1lbnQgPSBEb2N1bWVudDsKfSk7CgphY2UuZGVmaW5lKCJhY2UvbGliL2xhbmciLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKZXhwb3J0cy5sYXN0ID0gZnVuY3Rpb24oYSkgewogICAgcmV0dXJuIGFbYS5sZW5ndGggLSAxXTsKfTsKCmV4cG9ydHMuc3RyaW5nUmV2ZXJzZSA9IGZ1bmN0aW9uKHN0cmluZykgewogICAgcmV0dXJuIHN0cmluZy5zcGxpdCgiIikucmV2ZXJzZSgpLmpvaW4oIiIpOwp9OwoKZXhwb3J0cy5zdHJpbmdSZXBlYXQgPSBmdW5jdGlvbiAoc3RyaW5nLCBjb3VudCkgewogICAgdmFyIHJlc3VsdCA9ICcnOwogICAgd2hpbGUgKGNvdW50ID4gMCkgewogICAgICAgIGlmIChjb3VudCAmIDEpCiAgICAgICAgICAgIHJlc3VsdCArPSBzdHJpbmc7CgogICAgICAgIGlmIChjb3VudCA+Pj0gMSkKICAgICAgICAgICAgc3RyaW5nICs9IHN0cmluZzsKICAgIH0KICAgIHJldHVybiByZXN1bHQ7Cn07Cgp2YXIgdHJpbUJlZ2luUmVnZXhwID0gL15cc1xzKi87CnZhciB0cmltRW5kUmVnZXhwID0gL1xzXHMqJC87CgpleHBvcnRzLnN0cmluZ1RyaW1MZWZ0ID0gZnVuY3Rpb24gKHN0cmluZykgewogICAgcmV0dXJuIHN0cmluZy5yZXBsYWNlKHRyaW1CZWdpblJlZ2V4cCwgJycpOwp9OwoKZXhwb3J0cy5zdHJpbmdUcmltUmlnaHQgPSBmdW5jdGlvbiAoc3RyaW5nKSB7CiAgICByZXR1cm4gc3RyaW5nLnJlcGxhY2UodHJpbUVuZFJlZ2V4cCwgJycpOwp9OwoKZXhwb3J0cy5jb3B5T2JqZWN0ID0gZnVuY3Rpb24ob2JqKSB7CiAgICB2YXIgY29weSA9IHt9OwogICAgZm9yICh2YXIga2V5IGluIG9iaikgewogICAgICAgIGNvcHlba2V5XSA9IG9ialtrZXldOwogICAgfQogICAgcmV0dXJuIGNvcHk7Cn07CgpleHBvcnRzLmNvcHlBcnJheSA9IGZ1bmN0aW9uKGFycmF5KXsKICAgIHZhciBjb3B5ID0gW107CiAgICBmb3IgKHZhciBpPTAsIGw9YXJyYXkubGVuZ3RoOyBpPGw7IGkrKykgewogICAgICAgIGlmIChhcnJheVtpXSAmJiB0eXBlb2YgYXJyYXlbaV0gPT0gIm9iamVjdCIpCiAgICAgICAgICAgIGNvcHlbaV0gPSB0aGlzLmNvcHlPYmplY3QoYXJyYXlbaV0pOwogICAgICAgIGVsc2UgCiAgICAgICAgICAgIGNvcHlbaV0gPSBhcnJheVtpXTsKICAgIH0KICAgIHJldHVybiBjb3B5Owp9OwoKZXhwb3J0cy5kZWVwQ29weSA9IGZ1bmN0aW9uIGRlZXBDb3B5KG9iaikgewogICAgaWYgKHR5cGVvZiBvYmogIT09ICJvYmplY3QiIHx8ICFvYmopCiAgICAgICAgcmV0dXJuIG9iajsKICAgIHZhciBjb3B5OwogICAgaWYgKEFycmF5LmlzQXJyYXkob2JqKSkgewogICAgICAgIGNvcHkgPSBbXTsKICAgICAgICBmb3IgKHZhciBrZXkgPSAwOyBrZXkgPCBvYmoubGVuZ3RoOyBrZXkrKykgewogICAgICAgICAgICBjb3B5W2tleV0gPSBkZWVwQ29weShvYmpba2V5XSk7CiAgICAgICAgfQogICAgICAgIHJldHVybiBjb3B5OwogICAgfQogICAgaWYgKE9iamVjdC5wcm90b3R5cGUudG9TdHJpbmcuY2FsbChvYmopICE9PSAiW29iamVjdCBPYmplY3RdIikKICAgICAgICByZXR1cm4gb2JqOwogICAgCiAgICBjb3B5ID0ge307CiAgICBmb3IgKHZhciBrZXkgaW4gb2JqKQogICAgICAgIGNvcHlba2V5XSA9IGRlZXBDb3B5KG9ialtrZXldKTsKICAgIHJldHVybiBjb3B5Owp9OwoKZXhwb3J0cy5hcnJheVRvTWFwID0gZnVuY3Rpb24oYXJyKSB7CiAgICB2YXIgbWFwID0ge307CiAgICBmb3IgKHZhciBpPTA7IGk8YXJyLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgbWFwW2FycltpXV0gPSAxOwogICAgfQogICAgcmV0dXJuIG1hcDsKCn07CgpleHBvcnRzLmNyZWF0ZU1hcCA9IGZ1bmN0aW9uKHByb3BzKSB7CiAgICB2YXIgbWFwID0gT2JqZWN0LmNyZWF0ZShudWxsKTsKICAgIGZvciAodmFyIGkgaW4gcHJvcHMpIHsKICAgICAgICBtYXBbaV0gPSBwcm9wc1tpXTsKICAgIH0KICAgIHJldHVybiBtYXA7Cn07CmV4cG9ydHMuYXJyYXlSZW1vdmUgPSBmdW5jdGlvbihhcnJheSwgdmFsdWUpIHsKICBmb3IgKHZhciBpID0gMDsgaSA8PSBhcnJheS5sZW5ndGg7IGkrKykgewogICAgaWYgKHZhbHVlID09PSBhcnJheVtpXSkgewogICAgICBhcnJheS5zcGxpY2UoaSwgMSk7CiAgICB9CiAgfQp9OwoKZXhwb3J0cy5lc2NhcGVSZWdFeHAgPSBmdW5jdGlvbihzdHIpIHsKICAgIHJldHVybiBzdHIucmVwbGFjZSgvKFsuKis/XiR7fSgpfFtcXVwvXFxdKS9nLCAnXFwkMScpOwp9OwoKZXhwb3J0cy5lc2NhcGVIVE1MID0gZnVuY3Rpb24oc3RyKSB7CiAgICByZXR1cm4gKCIiICsgc3RyKS5yZXBsYWNlKC8mL2csICImIzM4OyIpLnJlcGxhY2UoLyIvZywgIiYjMzQ7IikucmVwbGFjZSgvJy9nLCAiJiMzOTsiKS5yZXBsYWNlKC88L2csICImIzYwOyIpOwp9OwoKZXhwb3J0cy5nZXRNYXRjaE9mZnNldHMgPSBmdW5jdGlvbihzdHJpbmcsIHJlZ0V4cCkgewogICAgdmFyIG1hdGNoZXMgPSBbXTsKCiAgICBzdHJpbmcucmVwbGFjZShyZWdFeHAsIGZ1bmN0aW9uKHN0cikgewogICAgICAgIG1hdGNoZXMucHVzaCh7CiAgICAgICAgICAgIG9mZnNldDogYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGgtMl0sCiAgICAgICAgICAgIGxlbmd0aDogc3RyLmxlbmd0aAogICAgICAgIH0pOwogICAgfSk7CgogICAgcmV0dXJuIG1hdGNoZXM7Cn07CmV4cG9ydHMuZGVmZXJyZWRDYWxsID0gZnVuY3Rpb24oZmNuKSB7CiAgICB2YXIgdGltZXIgPSBudWxsOwogICAgdmFyIGNhbGxiYWNrID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdGltZXIgPSBudWxsOwogICAgICAgIGZjbigpOwogICAgfTsKCiAgICB2YXIgZGVmZXJyZWQgPSBmdW5jdGlvbih0aW1lb3V0KSB7CiAgICAgICAgZGVmZXJyZWQuY2FuY2VsKCk7CiAgICAgICAgdGltZXIgPSBzZXRUaW1lb3V0KGNhbGxiYWNrLCB0aW1lb3V0IHx8IDApOwogICAgICAgIHJldHVybiBkZWZlcnJlZDsKICAgIH07CgogICAgZGVmZXJyZWQuc2NoZWR1bGUgPSBkZWZlcnJlZDsKCiAgICBkZWZlcnJlZC5jYWxsID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdGhpcy5jYW5jZWwoKTsKICAgICAgICBmY24oKTsKICAgICAgICByZXR1cm4gZGVmZXJyZWQ7CiAgICB9OwoKICAgIGRlZmVycmVkLmNhbmNlbCA9IGZ1bmN0aW9uKCkgewogICAgICAgIGNsZWFyVGltZW91dCh0aW1lcik7CiAgICAgICAgdGltZXIgPSBudWxsOwogICAgICAgIHJldHVybiBkZWZlcnJlZDsKICAgIH07CiAgICAKICAgIGRlZmVycmVkLmlzUGVuZGluZyA9IGZ1bmN0aW9uKCkgewogICAgICAgIHJldHVybiB0aW1lcjsKICAgIH07CgogICAgcmV0dXJuIGRlZmVycmVkOwp9OwoKCmV4cG9ydHMuZGVsYXllZENhbGwgPSBmdW5jdGlvbihmY24sIGRlZmF1bHRUaW1lb3V0KSB7CiAgICB2YXIgdGltZXIgPSBudWxsOwogICAgdmFyIGNhbGxiYWNrID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdGltZXIgPSBudWxsOwogICAgICAgIGZjbigpOwogICAgfTsKCiAgICB2YXIgX3NlbGYgPSBmdW5jdGlvbih0aW1lb3V0KSB7CiAgICAgICAgaWYgKHRpbWVyID09IG51bGwpCiAgICAgICAgICAgIHRpbWVyID0gc2V0VGltZW91dChjYWxsYmFjaywgdGltZW91dCB8fCBkZWZhdWx0VGltZW91dCk7CiAgICB9OwoKICAgIF9zZWxmLmRlbGF5ID0gZnVuY3Rpb24odGltZW91dCkgewogICAgICAgIHRpbWVyICYmIGNsZWFyVGltZW91dCh0aW1lcik7CiAgICAgICAgdGltZXIgPSBzZXRUaW1lb3V0KGNhbGxiYWNrLCB0aW1lb3V0IHx8IGRlZmF1bHRUaW1lb3V0KTsKICAgIH07CiAgICBfc2VsZi5zY2hlZHVsZSA9IF9zZWxmOwoKICAgIF9zZWxmLmNhbGwgPSBmdW5jdGlvbigpIHsKICAgICAgICB0aGlzLmNhbmNlbCgpOwogICAgICAgIGZjbigpOwogICAgfTsKCiAgICBfc2VsZi5jYW5jZWwgPSBmdW5jdGlvbigpIHsKICAgICAgICB0aW1lciAmJiBjbGVhclRpbWVvdXQodGltZXIpOwogICAgICAgIHRpbWVyID0gbnVsbDsKICAgIH07CgogICAgX3NlbGYuaXNQZW5kaW5nID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRpbWVyOwogICAgfTsKCiAgICByZXR1cm4gX3NlbGY7Cn07Cn0pOwoKYWNlLmRlZmluZSgiYWNlL3dvcmtlci9taXJyb3IiLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKInVzZSBzdHJpY3QiOwoKdmFyIFJhbmdlID0gcmVxdWlyZSgiLi4vcmFuZ2UiKS5SYW5nZTsKdmFyIERvY3VtZW50ID0gcmVxdWlyZSgiLi4vZG9jdW1lbnQiKS5Eb2N1bWVudDsKdmFyIGxhbmcgPSByZXF1aXJlKCIuLi9saWIvbGFuZyIpOwogICAgCnZhciBNaXJyb3IgPSBleHBvcnRzLk1pcnJvciA9IGZ1bmN0aW9uKHNlbmRlcikgewogICAgdGhpcy5zZW5kZXIgPSBzZW5kZXI7CiAgICB2YXIgZG9jID0gdGhpcy5kb2MgPSBuZXcgRG9jdW1lbnQoIiIpOwogICAgCiAgICB2YXIgZGVmZXJyZWRVcGRhdGUgPSB0aGlzLmRlZmVycmVkVXBkYXRlID0gbGFuZy5kZWxheWVkQ2FsbCh0aGlzLm9uVXBkYXRlLmJpbmQodGhpcykpOwogICAgCiAgICB2YXIgX3NlbGYgPSB0aGlzOwogICAgc2VuZGVyLm9uKCJjaGFuZ2UiLCBmdW5jdGlvbihlKSB7CiAgICAgICAgdmFyIGRhdGEgPSBlLmRhdGE7CiAgICAgICAgaWYgKGRhdGFbMF0uc3RhcnQpIHsKICAgICAgICAgICAgZG9jLmFwcGx5RGVsdGFzKGRhdGEpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZGF0YS5sZW5ndGg7IGkgKz0gMikgewogICAgICAgICAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkoZGF0YVtpKzFdKSkgewogICAgICAgICAgICAgICAgICAgIHZhciBkID0ge2FjdGlvbjogImluc2VydCIsIHN0YXJ0OiBkYXRhW2ldLCBsaW5lczogZGF0YVtpKzFdfTsKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGQgPSB7YWN0aW9uOiAicmVtb3ZlIiwgc3RhcnQ6IGRhdGFbaV0sIGVuZDogZGF0YVtpKzFdfTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGRvYy5hcHBseURlbHRhKGQsIHRydWUpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGlmIChfc2VsZi4kdGltZW91dCkKICAgICAgICAgICAgcmV0dXJuIGRlZmVycmVkVXBkYXRlLnNjaGVkdWxlKF9zZWxmLiR0aW1lb3V0KTsKICAgICAgICBfc2VsZi5vblVwZGF0ZSgpOwogICAgfSk7Cn07CgooZnVuY3Rpb24oKSB7CiAgICAKICAgIHRoaXMuJHRpbWVvdXQgPSA1MDA7CiAgICAKICAgIHRoaXMuc2V0VGltZW91dCA9IGZ1bmN0aW9uKHRpbWVvdXQpIHsKICAgICAgICB0aGlzLiR0aW1lb3V0ID0gdGltZW91dDsKICAgIH07CiAgICAKICAgIHRoaXMuc2V0VmFsdWUgPSBmdW5jdGlvbih2YWx1ZSkgewogICAgICAgIHRoaXMuZG9jLnNldFZhbHVlKHZhbHVlKTsKICAgICAgICB0aGlzLmRlZmVycmVkVXBkYXRlLnNjaGVkdWxlKHRoaXMuJHRpbWVvdXQpOwogICAgfTsKICAgIAogICAgdGhpcy5nZXRWYWx1ZSA9IGZ1bmN0aW9uKGNhbGxiYWNrSWQpIHsKICAgICAgICB0aGlzLnNlbmRlci5jYWxsYmFjayh0aGlzLmRvYy5nZXRWYWx1ZSgpLCBjYWxsYmFja0lkKTsKICAgIH07CiAgICAKICAgIHRoaXMub25VcGRhdGUgPSBmdW5jdGlvbigpIHsKICAgIH07CiAgICAKICAgIHRoaXMuaXNQZW5kaW5nID0gZnVuY3Rpb24oKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuZGVmZXJyZWRVcGRhdGUuaXNQZW5kaW5nKCk7CiAgICB9OwogICAgCn0pLmNhbGwoTWlycm9yLnByb3RvdHlwZSk7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9tb2RlL2pzb24vanNvbl9wYXJzZSIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSkgewoidXNlIHN0cmljdCI7CgogICAgdmFyIGF0LCAgICAgLy8gVGhlIGluZGV4IG9mIHRoZSBjdXJyZW50IGNoYXJhY3RlcgogICAgICAgIGNoLCAgICAgLy8gVGhlIGN1cnJlbnQgY2hhcmFjdGVyCiAgICAgICAgZXNjYXBlZSA9IHsKICAgICAgICAgICAgJyInOiAgJyInLAogICAgICAgICAgICAnXFwnOiAnXFwnLAogICAgICAgICAgICAnLyc6ICAnLycsCiAgICAgICAgICAgIGI6ICAgICdcYicsCiAgICAgICAgICAgIGY6ICAgICdcZicsCiAgICAgICAgICAgIG46ICAgICdcbicsCiAgICAgICAgICAgIHI6ICAgICdccicsCiAgICAgICAgICAgIHQ6ICAgICdcdCcKICAgICAgICB9LAogICAgICAgIHRleHQsCgogICAgICAgIGVycm9yID0gZnVuY3Rpb24gKG0pIHsKCiAgICAgICAgICAgIHRocm93IHsKICAgICAgICAgICAgICAgIG5hbWU6ICAgICdTeW50YXhFcnJvcicsCiAgICAgICAgICAgICAgICBtZXNzYWdlOiBtLAogICAgICAgICAgICAgICAgYXQ6ICAgICAgYXQsCiAgICAgICAgICAgICAgICB0ZXh0OiAgICB0ZXh0CiAgICAgICAgICAgIH07CiAgICAgICAgfSwKCiAgICAgICAgbmV4dCA9IGZ1bmN0aW9uIChjKSB7CgogICAgICAgICAgICBpZiAoYyAmJiBjICE9PSBjaCkgewogICAgICAgICAgICAgICAgZXJyb3IoIkV4cGVjdGVkICciICsgYyArICInIGluc3RlYWQgb2YgJyIgKyBjaCArICInIik7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGNoID0gdGV4dC5jaGFyQXQoYXQpOwogICAgICAgICAgICBhdCArPSAxOwogICAgICAgICAgICByZXR1cm4gY2g7CiAgICAgICAgfSwKCiAgICAgICAgbnVtYmVyID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgdmFyIG51bWJlciwKICAgICAgICAgICAgICAgIHN0cmluZyA9ICcnOwoKICAgICAgICAgICAgaWYgKGNoID09PSAnLScpIHsKICAgICAgICAgICAgICAgIHN0cmluZyA9ICctJzsKICAgICAgICAgICAgICAgIG5leHQoJy0nKTsKICAgICAgICAgICAgfQogICAgICAgICAgICB3aGlsZSAoY2ggPj0gJzAnICYmIGNoIDw9ICc5JykgewogICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgbmV4dCgpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmIChjaCA9PT0gJy4nKSB7CiAgICAgICAgICAgICAgICBzdHJpbmcgKz0gJy4nOwogICAgICAgICAgICAgICAgd2hpbGUgKG5leHQoKSAmJiBjaCA+PSAnMCcgJiYgY2ggPD0gJzknKSB7CiAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmIChjaCA9PT0gJ2UnIHx8IGNoID09PSAnRScpIHsKICAgICAgICAgICAgICAgIHN0cmluZyArPSBjaDsKICAgICAgICAgICAgICAgIG5leHQoKTsKICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJy0nIHx8IGNoID09PSAnKycpIHsKICAgICAgICAgICAgICAgICAgICBzdHJpbmcgKz0gY2g7CiAgICAgICAgICAgICAgICAgICAgbmV4dCgpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgd2hpbGUgKGNoID49ICcwJyAmJiBjaCA8PSAnOScpIHsKICAgICAgICAgICAgICAgICAgICBzdHJpbmcgKz0gY2g7CiAgICAgICAgICAgICAgICAgICAgbmV4dCgpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIG51bWJlciA9ICtzdHJpbmc7CiAgICAgICAgICAgIGlmIChpc05hTihudW1iZXIpKSB7CiAgICAgICAgICAgICAgICBlcnJvcigiQmFkIG51bWJlciIpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIG51bWJlcjsKICAgICAgICAgICAgfQogICAgICAgIH0sCgogICAgICAgIHN0cmluZyA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHZhciBoZXgsCiAgICAgICAgICAgICAgICBpLAogICAgICAgICAgICAgICAgc3RyaW5nID0gJycsCiAgICAgICAgICAgICAgICB1ZmZmZjsKCiAgICAgICAgICAgIGlmIChjaCA9PT0gJyInKSB7CiAgICAgICAgICAgICAgICB3aGlsZSAobmV4dCgpKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKGNoID09PSAnIicpIHsKICAgICAgICAgICAgICAgICAgICAgICAgbmV4dCgpOwogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gc3RyaW5nOwogICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoY2ggPT09ICdcXCcpIHsKICAgICAgICAgICAgICAgICAgICAgICAgbmV4dCgpOwogICAgICAgICAgICAgICAgICAgICAgICBpZiAoY2ggPT09ICd1JykgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgdWZmZmYgPSAwOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIChpID0gMDsgaSA8IDQ7IGkgKz0gMSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhleCA9IHBhcnNlSW50KG5leHQoKSwgMTYpOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghaXNGaW5pdGUoaGV4KSkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdWZmZmYgPSB1ZmZmZiAqIDE2ICsgaGV4OwogICAgICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IFN0cmluZy5mcm9tQ2hhckNvZGUodWZmZmYpOwogICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHR5cGVvZiBlc2NhcGVlW2NoXSA9PT0gJ3N0cmluZycpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZyArPSBlc2NhcGVlW2NoXTsKICAgICAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChjaCA9PSAiXG4iIHx8IGNoID09ICJcciIpIHsKICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICAgICAgc3RyaW5nICs9IGNoOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBlcnJvcigiQmFkIHN0cmluZyIpOwogICAgICAgIH0sCgogICAgICAgIHdoaXRlID0gZnVuY3Rpb24gKCkgewoKICAgICAgICAgICAgd2hpbGUgKGNoICYmIGNoIDw9ICcgJykgewogICAgICAgICAgICAgICAgbmV4dCgpOwogICAgICAgICAgICB9CiAgICAgICAgfSwKCiAgICAgICAgd29yZCA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIHN3aXRjaCAoY2gpIHsKICAgICAgICAgICAgY2FzZSAndCc6CiAgICAgICAgICAgICAgICBuZXh0KCd0Jyk7CiAgICAgICAgICAgICAgICBuZXh0KCdyJyk7CiAgICAgICAgICAgICAgICBuZXh0KCd1Jyk7CiAgICAgICAgICAgICAgICBuZXh0KCdlJyk7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgY2FzZSAnZic6CiAgICAgICAgICAgICAgICBuZXh0KCdmJyk7CiAgICAgICAgICAgICAgICBuZXh0KCdhJyk7CiAgICAgICAgICAgICAgICBuZXh0KCdsJyk7CiAgICAgICAgICAgICAgICBuZXh0KCdzJyk7CiAgICAgICAgICAgICAgICBuZXh0KCdlJyk7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIGNhc2UgJ24nOgogICAgICAgICAgICAgICAgbmV4dCgnbicpOwogICAgICAgICAgICAgICAgbmV4dCgndScpOwogICAgICAgICAgICAgICAgbmV4dCgnbCcpOwogICAgICAgICAgICAgICAgbmV4dCgnbCcpOwogICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZXJyb3IoIlVuZXhwZWN0ZWQgJyIgKyBjaCArICInIik7CiAgICAgICAgfSwKCiAgICAgICAgdmFsdWUsICAvLyBQbGFjZSBob2xkZXIgZm9yIHRoZSB2YWx1ZSBmdW5jdGlvbi4KCiAgICAgICAgYXJyYXkgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICB2YXIgYXJyYXkgPSBbXTsKCiAgICAgICAgICAgIGlmIChjaCA9PT0gJ1snKSB7CiAgICAgICAgICAgICAgICBuZXh0KCdbJyk7CiAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgaWYgKGNoID09PSAnXScpIHsKICAgICAgICAgICAgICAgICAgICBuZXh0KCddJyk7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGFycmF5OyAgIC8vIGVtcHR5IGFycmF5CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB3aGlsZSAoY2gpIHsKICAgICAgICAgICAgICAgICAgICBhcnJheS5wdXNoKHZhbHVlKCkpOwogICAgICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICAgICAgaWYgKGNoID09PSAnXScpIHsKICAgICAgICAgICAgICAgICAgICAgICAgbmV4dCgnXScpOwogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gYXJyYXk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIG5leHQoJywnKTsKICAgICAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIGVycm9yKCJCYWQgYXJyYXkiKTsKICAgICAgICB9LAoKICAgICAgICBvYmplY3QgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgICAgICB2YXIga2V5LAogICAgICAgICAgICAgICAgb2JqZWN0ID0ge307CgogICAgICAgICAgICBpZiAoY2ggPT09ICd7JykgewogICAgICAgICAgICAgICAgbmV4dCgneycpOwogICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgIGlmIChjaCA9PT0gJ30nKSB7CiAgICAgICAgICAgICAgICAgICAgbmV4dCgnfScpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiBvYmplY3Q7ICAgLy8gZW1wdHkgb2JqZWN0CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB3aGlsZSAoY2gpIHsKICAgICAgICAgICAgICAgICAgICBrZXkgPSBzdHJpbmcoKTsKICAgICAgICAgICAgICAgICAgICB3aGl0ZSgpOwogICAgICAgICAgICAgICAgICAgIG5leHQoJzonKTsKICAgICAgICAgICAgICAgICAgICBpZiAoT2JqZWN0Lmhhc093blByb3BlcnR5LmNhbGwob2JqZWN0LCBrZXkpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGVycm9yKCdEdXBsaWNhdGUga2V5ICInICsga2V5ICsgJyInKTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgb2JqZWN0W2tleV0gPSB2YWx1ZSgpOwogICAgICAgICAgICAgICAgICAgIHdoaXRlKCk7CiAgICAgICAgICAgICAgICAgICAgaWYgKGNoID09PSAnfScpIHsKICAgICAgICAgICAgICAgICAgICAgICAgbmV4dCgnfScpOwogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gb2JqZWN0OwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICBuZXh0KCcsJyk7CiAgICAgICAgICAgICAgICAgICAgd2hpdGUoKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBlcnJvcigiQmFkIG9iamVjdCIpOwogICAgICAgIH07CgogICAgdmFsdWUgPSBmdW5jdGlvbiAoKSB7CgogICAgICAgIHdoaXRlKCk7CiAgICAgICAgc3dpdGNoIChjaCkgewogICAgICAgIGNhc2UgJ3snOgogICAgICAgICAgICByZXR1cm4gb2JqZWN0KCk7CiAgICAgICAgY2FzZSAnWyc6CiAgICAgICAgICAgIHJldHVybiBhcnJheSgpOwogICAgICAgIGNhc2UgJyInOgogICAgICAgICAgICByZXR1cm4gc3RyaW5nKCk7CiAgICAgICAgY2FzZSAnLSc6CiAgICAgICAgICAgIHJldHVybiBudW1iZXIoKTsKICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICByZXR1cm4gY2ggPj0gJzAnICYmIGNoIDw9ICc5JyA/IG51bWJlcigpIDogd29yZCgpOwogICAgICAgIH0KICAgIH07CgogICAgcmV0dXJuIGZ1bmN0aW9uIChzb3VyY2UsIHJldml2ZXIpIHsKICAgICAgICB2YXIgcmVzdWx0OwoKICAgICAgICB0ZXh0ID0gc291cmNlOwogICAgICAgIGF0ID0gMDsKICAgICAgICBjaCA9ICcgJzsKICAgICAgICByZXN1bHQgPSB2YWx1ZSgpOwogICAgICAgIHdoaXRlKCk7CiAgICAgICAgaWYgKGNoKSB7CiAgICAgICAgICAgIGVycm9yKCJTeW50YXggZXJyb3IiKTsKICAgICAgICB9CgogICAgICAgIHJldHVybiB0eXBlb2YgcmV2aXZlciA9PT0gJ2Z1bmN0aW9uJyA/IGZ1bmN0aW9uIHdhbGsoaG9sZGVyLCBrZXkpIHsKICAgICAgICAgICAgdmFyIGssIHYsIHZhbHVlID0gaG9sZGVyW2tleV07CiAgICAgICAgICAgIGlmICh2YWx1ZSAmJiB0eXBlb2YgdmFsdWUgPT09ICdvYmplY3QnKSB7CiAgICAgICAgICAgICAgICBmb3IgKGsgaW4gdmFsdWUpIHsKICAgICAgICAgICAgICAgICAgICBpZiAoT2JqZWN0Lmhhc093blByb3BlcnR5LmNhbGwodmFsdWUsIGspKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHYgPSB3YWxrKHZhbHVlLCBrKTsKICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHYgIT09IHVuZGVmaW5lZCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWVba10gPSB2OwogICAgICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgZGVsZXRlIHZhbHVlW2tdOwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIHJldHVybiByZXZpdmVyLmNhbGwoaG9sZGVyLCBrZXksIHZhbHVlKTsKICAgICAgICB9KHsnJzogcmVzdWx0fSwgJycpIDogcmVzdWx0OwogICAgfTsKfSk7CgphY2UuZGVmaW5lKCJhY2UvbW9kZS9qc29uX3dvcmtlciIsW10sIGZ1bmN0aW9uKHJlcXVpcmUsIGV4cG9ydHMsIG1vZHVsZSkgewoidXNlIHN0cmljdCI7Cgp2YXIgb29wID0gcmVxdWlyZSgiLi4vbGliL29vcCIpOwp2YXIgTWlycm9yID0gcmVxdWlyZSgiLi4vd29ya2VyL21pcnJvciIpLk1pcnJvcjsKdmFyIHBhcnNlID0gcmVxdWlyZSgiLi9qc29uL2pzb25fcGFyc2UiKTsKCnZhciBKc29uV29ya2VyID0gZXhwb3J0cy5Kc29uV29ya2VyID0gZnVuY3Rpb24oc2VuZGVyKSB7CiAgICBNaXJyb3IuY2FsbCh0aGlzLCBzZW5kZXIpOwogICAgdGhpcy5zZXRUaW1lb3V0KDIwMCk7Cn07Cgpvb3AuaW5oZXJpdHMoSnNvbldvcmtlciwgTWlycm9yKTsKCihmdW5jdGlvbigpIHsKCiAgICB0aGlzLm9uVXBkYXRlID0gZnVuY3Rpb24oKSB7CiAgICAgICAgdmFyIHZhbHVlID0gdGhpcy5kb2MuZ2V0VmFsdWUoKTsKICAgICAgICB2YXIgZXJyb3JzID0gW107CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgaWYgKHZhbHVlKQogICAgICAgICAgICAgICAgcGFyc2UodmFsdWUpOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIHBvcyA9IHRoaXMuZG9jLmluZGV4VG9Qb3NpdGlvbihlLmF0LTEpOwogICAgICAgICAgICBlcnJvcnMucHVzaCh7CiAgICAgICAgICAgICAgICByb3c6IHBvcy5yb3csCiAgICAgICAgICAgICAgICBjb2x1bW46IHBvcy5jb2x1bW4sCiAgICAgICAgICAgICAgICB0ZXh0OiBlLm1lc3NhZ2UsCiAgICAgICAgICAgICAgICB0eXBlOiAiZXJyb3IiCiAgICAgICAgICAgIH0pOwogICAgICAgIH0KICAgICAgICB0aGlzLnNlbmRlci5lbWl0KCJhbm5vdGF0ZSIsIGVycm9ycyk7CiAgICB9OwoKfSkuY2FsbChKc29uV29ya2VyLnByb3RvdHlwZSk7Cgp9KTsKCmFjZS5kZWZpbmUoImFjZS9saWIvZXM1LXNoaW0iLFtdLCBmdW5jdGlvbihyZXF1aXJlLCBleHBvcnRzLCBtb2R1bGUpIHsKCmZ1bmN0aW9uIEVtcHR5KCkge30KCmlmICghRnVuY3Rpb24ucHJvdG90eXBlLmJpbmQpIHsKICAgIEZ1bmN0aW9uLnByb3RvdHlwZS5iaW5kID0gZnVuY3Rpb24gYmluZCh0aGF0KSB7IC8vIC5sZW5ndGggaXMgMQogICAgICAgIHZhciB0YXJnZXQgPSB0aGlzOwogICAgICAgIGlmICh0eXBlb2YgdGFyZ2V0ICE9ICJmdW5jdGlvbiIpIHsKICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcigiRnVuY3Rpb24ucHJvdG90eXBlLmJpbmQgY2FsbGVkIG9uIGluY29tcGF0aWJsZSAiICsgdGFyZ2V0KTsKICAgICAgICB9CiAgICAgICAgdmFyIGFyZ3MgPSBzbGljZS5jYWxsKGFyZ3VtZW50cywgMSk7IC8vIGZvciBub3JtYWwgY2FsbAogICAgICAgIHZhciBib3VuZCA9IGZ1bmN0aW9uICgpIHsKCiAgICAgICAgICAgIGlmICh0aGlzIGluc3RhbmNlb2YgYm91bmQpIHsKCiAgICAgICAgICAgICAgICB2YXIgcmVzdWx0ID0gdGFyZ2V0LmFwcGx5KAogICAgICAgICAgICAgICAgICAgIHRoaXMsCiAgICAgICAgICAgICAgICAgICAgYXJncy5jb25jYXQoc2xpY2UuY2FsbChhcmd1bWVudHMpKQogICAgICAgICAgICAgICAgKTsKICAgICAgICAgICAgICAgIGlmIChPYmplY3QocmVzdWx0KSA9PT0gcmVzdWx0KSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIHJldHVybiB0aGlzOwoKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiB0YXJnZXQuYXBwbHkoCiAgICAgICAgICAgICAgICAgICAgdGhhdCwKICAgICAgICAgICAgICAgICAgICBhcmdzLmNvbmNhdChzbGljZS5jYWxsKGFyZ3VtZW50cykpCiAgICAgICAgICAgICAgICApOwoKICAgICAgICAgICAgfQoKICAgICAgICB9OwogICAgICAgIGlmKHRhcmdldC5wcm90b3R5cGUpIHsKICAgICAgICAgICAgRW1wdHkucHJvdG90eXBlID0gdGFyZ2V0LnByb3RvdHlwZTsKICAgICAgICAgICAgYm91bmQucHJvdG90eXBlID0gbmV3IEVtcHR5KCk7CiAgICAgICAgICAgIEVtcHR5LnByb3RvdHlwZSA9IG51bGw7CiAgICAgICAgfQogICAgICAgIHJldHVybiBib3VuZDsKICAgIH07Cn0KdmFyIGNhbGwgPSBGdW5jdGlvbi5wcm90b3R5cGUuY2FsbDsKdmFyIHByb3RvdHlwZU9mQXJyYXkgPSBBcnJheS5wcm90b3R5cGU7CnZhciBwcm90b3R5cGVPZk9iamVjdCA9IE9iamVjdC5wcm90b3R5cGU7CnZhciBzbGljZSA9IHByb3RvdHlwZU9mQXJyYXkuc2xpY2U7CnZhciBfdG9TdHJpbmcgPSBjYWxsLmJpbmQocHJvdG90eXBlT2ZPYmplY3QudG9TdHJpbmcpOwp2YXIgb3ducyA9IGNhbGwuYmluZChwcm90b3R5cGVPZk9iamVjdC5oYXNPd25Qcm9wZXJ0eSk7CnZhciBkZWZpbmVHZXR0ZXI7CnZhciBkZWZpbmVTZXR0ZXI7CnZhciBsb29rdXBHZXR0ZXI7CnZhciBsb29rdXBTZXR0ZXI7CnZhciBzdXBwb3J0c0FjY2Vzc29yczsKaWYgKChzdXBwb3J0c0FjY2Vzc29ycyA9IG93bnMocHJvdG90eXBlT2ZPYmplY3QsICJfX2RlZmluZUdldHRlcl9fIikpKSB7CiAgICBkZWZpbmVHZXR0ZXIgPSBjYWxsLmJpbmQocHJvdG90eXBlT2ZPYmplY3QuX19kZWZpbmVHZXR0ZXJfXyk7CiAgICBkZWZpbmVTZXR0ZXIgPSBjYWxsLmJpbmQocHJvdG90eXBlT2ZPYmplY3QuX19kZWZpbmVTZXR0ZXJfXyk7CiAgICBsb29rdXBHZXR0ZXIgPSBjYWxsLmJpbmQocHJvdG90eXBlT2ZPYmplY3QuX19sb29rdXBHZXR0ZXJfXyk7CiAgICBsb29rdXBTZXR0ZXIgPSBjYWxsLmJpbmQocHJvdG90eXBlT2ZPYmplY3QuX19sb29rdXBTZXR0ZXJfXyk7Cn0KaWYgKFsxLDJdLnNwbGljZSgwKS5sZW5ndGggIT0gMikgewogICAgaWYoZnVuY3Rpb24oKSB7IC8vIHRlc3QgSUUgPCA5IHRvIHNwbGljZSBidWcgLSBzZWUgaXNzdWUgIzEzOAogICAgICAgIGZ1bmN0aW9uIG1ha2VBcnJheShsKSB7CiAgICAgICAgICAgIHZhciBhID0gbmV3IEFycmF5KGwrMik7CiAgICAgICAgICAgIGFbMF0gPSBhWzFdID0gMDsKICAgICAgICAgICAgcmV0dXJuIGE7CiAgICAgICAgfQogICAgICAgIHZhciBhcnJheSA9IFtdLCBsZW5ndGhCZWZvcmU7CiAgICAgICAgCiAgICAgICAgYXJyYXkuc3BsaWNlLmFwcGx5KGFycmF5LCBtYWtlQXJyYXkoMjApKTsKICAgICAgICBhcnJheS5zcGxpY2UuYXBwbHkoYXJyYXksIG1ha2VBcnJheSgyNikpOwoKICAgICAgICBsZW5ndGhCZWZvcmUgPSBhcnJheS5sZW5ndGg7IC8vNDYKICAgICAgICBhcnJheS5zcGxpY2UoNSwgMCwgIlhYWCIpOyAvLyBhZGQgb25lIGVsZW1lbnQKCiAgICAgICAgbGVuZ3RoQmVmb3JlICsgMSA9PSBhcnJheS5sZW5ndGgKCiAgICAgICAgaWYgKGxlbmd0aEJlZm9yZSArIDEgPT0gYXJyYXkubGVuZ3RoKSB7CiAgICAgICAgICAgIHJldHVybiB0cnVlOy8vIGhhcyByaWdodCBzcGxpY2UgaW1wbGVtZW50YXRpb24gd2l0aG91dCBidWdzCiAgICAgICAgfQogICAgfSgpKSB7Ly9JRSA2LzcKICAgICAgICB2YXIgYXJyYXlfc3BsaWNlID0gQXJyYXkucHJvdG90eXBlLnNwbGljZTsKICAgICAgICBBcnJheS5wcm90b3R5cGUuc3BsaWNlID0gZnVuY3Rpb24oc3RhcnQsIGRlbGV0ZUNvdW50KSB7CiAgICAgICAgICAgIGlmICghYXJndW1lbnRzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgcmV0dXJuIFtdOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgcmV0dXJuIGFycmF5X3NwbGljZS5hcHBseSh0aGlzLCBbCiAgICAgICAgICAgICAgICAgICAgc3RhcnQgPT09IHZvaWQgMCA/IDAgOiBzdGFydCwKICAgICAgICAgICAgICAgICAgICBkZWxldGVDb3VudCA9PT0gdm9pZCAwID8gKHRoaXMubGVuZ3RoIC0gc3RhcnQpIDogZGVsZXRlQ291bnQKICAgICAgICAgICAgICAgIF0uY29uY2F0KHNsaWNlLmNhbGwoYXJndW1lbnRzLCAyKSkpCiAgICAgICAgICAgIH0KICAgICAgICB9OwogICAgfSBlbHNlIHsvL0lFOAogICAgICAgIEFycmF5LnByb3RvdHlwZS5zcGxpY2UgPSBmdW5jdGlvbihwb3MsIHJlbW92ZUNvdW50KXsKICAgICAgICAgICAgdmFyIGxlbmd0aCA9IHRoaXMubGVuZ3RoOwogICAgICAgICAgICBpZiAocG9zID4gMCkgewogICAgICAgICAgICAgICAgaWYgKHBvcyA+IGxlbmd0aCkKICAgICAgICAgICAgICAgICAgICBwb3MgPSBsZW5ndGg7CiAgICAgICAgICAgIH0gZWxzZSBpZiAocG9zID09IHZvaWQgMCkgewogICAgICAgICAgICAgICAgcG9zID0gMDsKICAgICAgICAgICAgfSBlbHNlIGlmIChwb3MgPCAwKSB7CiAgICAgICAgICAgICAgICBwb3MgPSBNYXRoLm1heChsZW5ndGggKyBwb3MsIDApOwogICAgICAgICAgICB9CgogICAgICAgICAgICBpZiAoIShwb3MrcmVtb3ZlQ291bnQgPCBsZW5ndGgpKQogICAgICAgICAgICAgICAgcmVtb3ZlQ291bnQgPSBsZW5ndGggLSBwb3M7CgogICAgICAgICAgICB2YXIgcmVtb3ZlZCA9IHRoaXMuc2xpY2UocG9zLCBwb3MrcmVtb3ZlQ291bnQpOwogICAgICAgICAgICB2YXIgaW5zZXJ0ID0gc2xpY2UuY2FsbChhcmd1bWVudHMsIDIpOwogICAgICAgICAgICB2YXIgYWRkID0gaW5zZXJ0Lmxlbmd0aDsgICAgICAgICAgICAKICAgICAgICAgICAgaWYgKHBvcyA9PT0gbGVuZ3RoKSB7CiAgICAgICAgICAgICAgICBpZiAoYWRkKSB7CiAgICAgICAgICAgICAgICAgICAgdGhpcy5wdXNoLmFwcGx5KHRoaXMsIGluc2VydCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICB2YXIgcmVtb3ZlID0gTWF0aC5taW4ocmVtb3ZlQ291bnQsIGxlbmd0aCAtIHBvcyk7CiAgICAgICAgICAgICAgICB2YXIgdGFpbE9sZFBvcyA9IHBvcyArIHJlbW92ZTsKICAgICAgICAgICAgICAgIHZhciB0YWlsTmV3UG9zID0gdGFpbE9sZFBvcyArIGFkZCAtIHJlbW92ZTsKICAgICAgICAgICAgICAgIHZhciB0YWlsQ291bnQgPSBsZW5ndGggLSB0YWlsT2xkUG9zOwogICAgICAgICAgICAgICAgdmFyIGxlbmd0aEFmdGVyUmVtb3ZlID0gbGVuZ3RoIC0gcmVtb3ZlOwoKICAgICAgICAgICAgICAgIGlmICh0YWlsTmV3UG9zIDwgdGFpbE9sZFBvcykgeyAvLyBjYXNlIEEKICAgICAgICAgICAgICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IHRhaWxDb3VudDsgKytpKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXNbdGFpbE5ld1BvcytpXSA9IHRoaXNbdGFpbE9sZFBvcytpXTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKHRhaWxOZXdQb3MgPiB0YWlsT2xkUG9zKSB7IC8vIGNhc2UgQgogICAgICAgICAgICAgICAgICAgIGZvciAoaSA9IHRhaWxDb3VudDsgaS0tOyApIHsKICAgICAgICAgICAgICAgICAgICAgICAgdGhpc1t0YWlsTmV3UG9zK2ldID0gdGhpc1t0YWlsT2xkUG9zK2ldOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0gLy8gZWxzZSwgYWRkID09IHJlbW92ZSAobm90aGluZyB0byBkbykKCiAgICAgICAgICAgICAgICBpZiAoYWRkICYmIHBvcyA9PT0gbGVuZ3RoQWZ0ZXJSZW1vdmUpIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmxlbmd0aCA9IGxlbmd0aEFmdGVyUmVtb3ZlOyAvLyB0cnVuY2F0ZSBhcnJheQogICAgICAgICAgICAgICAgICAgIHRoaXMucHVzaC5hcHBseSh0aGlzLCBpbnNlcnQpOwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICB0aGlzLmxlbmd0aCA9IGxlbmd0aEFmdGVyUmVtb3ZlICsgYWRkOyAvLyByZXNlcnZlcyBzcGFjZQogICAgICAgICAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBhZGQ7ICsraSkgewogICAgICAgICAgICAgICAgICAgICAgICB0aGlzW3BvcytpXSA9IGluc2VydFtpXTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIHJlbW92ZWQ7CiAgICAgICAgfTsKICAgIH0KfQppZiAoIUFycmF5LmlzQXJyYXkpIHsKICAgIEFycmF5LmlzQXJyYXkgPSBmdW5jdGlvbiBpc0FycmF5KG9iaikgewogICAgICAgIHJldHVybiBfdG9TdHJpbmcob2JqKSA9PSAiW29iamVjdCBBcnJheV0iOwogICAgfTsKfQp2YXIgYm94ZWRTdHJpbmcgPSBPYmplY3QoImEiKSwKICAgIHNwbGl0U3RyaW5nID0gYm94ZWRTdHJpbmdbMF0gIT0gImEiIHx8ICEoMCBpbiBib3hlZFN0cmluZyk7CgppZiAoIUFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSB7CiAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaCA9IGZ1bmN0aW9uIGZvckVhY2goZnVuIC8qLCB0aGlzcCovKSB7CiAgICAgICAgdmFyIG9iamVjdCA9IHRvT2JqZWN0KHRoaXMpLAogICAgICAgICAgICBzZWxmID0gc3BsaXRTdHJpbmcgJiYgX3RvU3RyaW5nKHRoaXMpID09ICJbb2JqZWN0IFN0cmluZ10iID8KICAgICAgICAgICAgICAgIHRoaXMuc3BsaXQoIiIpIDoKICAgICAgICAgICAgICAgIG9iamVjdCwKICAgICAgICAgICAgdGhpc3AgPSBhcmd1bWVudHNbMV0sCiAgICAgICAgICAgIGkgPSAtMSwKICAgICAgICAgICAgbGVuZ3RoID0gc2VsZi5sZW5ndGggPj4+IDA7CiAgICAgICAgaWYgKF90b1N0cmluZyhmdW4pICE9ICJbb2JqZWN0IEZ1bmN0aW9uXSIpIHsKICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcigpOyAvLyBUT0RPIG1lc3NhZ2UKICAgICAgICB9CgogICAgICAgIHdoaWxlICgrK2kgPCBsZW5ndGgpIHsKICAgICAgICAgICAgaWYgKGkgaW4gc2VsZikgewogICAgICAgICAgICAgICAgZnVuLmNhbGwodGhpc3AsIHNlbGZbaV0sIGksIG9iamVjdCk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9Owp9CmlmICghQXJyYXkucHJvdG90eXBlLm1hcCkgewogICAgQXJyYXkucHJvdG90eXBlLm1hcCA9IGZ1bmN0aW9uIG1hcChmdW4gLyosIHRoaXNwKi8pIHsKICAgICAgICB2YXIgb2JqZWN0ID0gdG9PYmplY3QodGhpcyksCiAgICAgICAgICAgIHNlbGYgPSBzcGxpdFN0cmluZyAmJiBfdG9TdHJpbmcodGhpcykgPT0gIltvYmplY3QgU3RyaW5nXSIgPwogICAgICAgICAgICAgICAgdGhpcy5zcGxpdCgiIikgOgogICAgICAgICAgICAgICAgb2JqZWN0LAogICAgICAgICAgICBsZW5ndGggPSBzZWxmLmxlbmd0aCA+Pj4gMCwKICAgICAgICAgICAgcmVzdWx0ID0gQXJyYXkobGVuZ3RoKSwKICAgICAgICAgICAgdGhpc3AgPSBhcmd1bWVudHNbMV07CiAgICAgICAgaWYgKF90b1N0cmluZyhmdW4pICE9ICJbb2JqZWN0IEZ1bmN0aW9uXSIpIHsKICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihmdW4gKyAiIGlzIG5vdCBhIGZ1bmN0aW9uIik7CiAgICAgICAgfQoKICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIGlmIChpIGluIHNlbGYpCiAgICAgICAgICAgICAgICByZXN1bHRbaV0gPSBmdW4uY2FsbCh0aGlzcCwgc2VsZltpXSwgaSwgb2JqZWN0KTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH07Cn0KaWYgKCFBcnJheS5wcm90b3R5cGUuZmlsdGVyKSB7CiAgICBBcnJheS5wcm90b3R5cGUuZmlsdGVyID0gZnVuY3Rpb24gZmlsdGVyKGZ1biAvKiwgdGhpc3AgKi8pIHsKICAgICAgICB2YXIgb2JqZWN0ID0gdG9PYmplY3QodGhpcyksCiAgICAgICAgICAgIHNlbGYgPSBzcGxpdFN0cmluZyAmJiBfdG9TdHJpbmcodGhpcykgPT0gIltvYmplY3QgU3RyaW5nXSIgPwogICAgICAgICAgICAgICAgdGhpcy5zcGxpdCgiIikgOgogICAgICAgICAgICAgICAgICAgIG9iamVjdCwKICAgICAgICAgICAgbGVuZ3RoID0gc2VsZi5sZW5ndGggPj4+IDAsCiAgICAgICAgICAgIHJlc3VsdCA9IFtdLAogICAgICAgICAgICB2YWx1ZSwKICAgICAgICAgICAgdGhpc3AgPSBhcmd1bWVudHNbMV07CiAgICAgICAgaWYgKF90b1N0cmluZyhmdW4pICE9ICJbb2JqZWN0IEZ1bmN0aW9uXSIpIHsKICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihmdW4gKyAiIGlzIG5vdCBhIGZ1bmN0aW9uIik7CiAgICAgICAgfQoKICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIGlmIChpIGluIHNlbGYpIHsKICAgICAgICAgICAgICAgIHZhbHVlID0gc2VsZltpXTsKICAgICAgICAgICAgICAgIGlmIChmdW4uY2FsbCh0aGlzcCwgdmFsdWUsIGksIG9iamVjdCkpIHsKICAgICAgICAgICAgICAgICAgICByZXN1bHQucHVzaCh2YWx1ZSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH07Cn0KaWYgKCFBcnJheS5wcm90b3R5cGUuZXZlcnkpIHsKICAgIEFycmF5LnByb3RvdHlwZS5ldmVyeSA9IGZ1bmN0aW9uIGV2ZXJ5KGZ1biAvKiwgdGhpc3AgKi8pIHsKICAgICAgICB2YXIgb2JqZWN0ID0gdG9PYmplY3QodGhpcyksCiAgICAgICAgICAgIHNlbGYgPSBzcGxpdFN0cmluZyAmJiBfdG9TdHJpbmcodGhpcykgPT0gIltvYmplY3QgU3RyaW5nXSIgPwogICAgICAgICAgICAgICAgdGhpcy5zcGxpdCgiIikgOgogICAgICAgICAgICAgICAgb2JqZWN0LAogICAgICAgICAgICBsZW5ndGggPSBzZWxmLmxlbmd0aCA+Pj4gMCwKICAgICAgICAgICAgdGhpc3AgPSBhcmd1bWVudHNbMV07CiAgICAgICAgaWYgKF90b1N0cmluZyhmdW4pICE9ICJbb2JqZWN0IEZ1bmN0aW9uXSIpIHsKICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihmdW4gKyAiIGlzIG5vdCBhIGZ1bmN0aW9uIik7CiAgICAgICAgfQoKICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIGlmIChpIGluIHNlbGYgJiYgIWZ1bi5jYWxsKHRoaXNwLCBzZWxmW2ldLCBpLCBvYmplY3QpKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICB9Owp9CmlmICghQXJyYXkucHJvdG90eXBlLnNvbWUpIHsKICAgIEFycmF5LnByb3RvdHlwZS5zb21lID0gZnVuY3Rpb24gc29tZShmdW4gLyosIHRoaXNwICovKSB7CiAgICAgICAgdmFyIG9iamVjdCA9IHRvT2JqZWN0KHRoaXMpLAogICAgICAgICAgICBzZWxmID0gc3BsaXRTdHJpbmcgJiYgX3RvU3RyaW5nKHRoaXMpID09ICJbb2JqZWN0IFN0cmluZ10iID8KICAgICAgICAgICAgICAgIHRoaXMuc3BsaXQoIiIpIDoKICAgICAgICAgICAgICAgIG9iamVjdCwKICAgICAgICAgICAgbGVuZ3RoID0gc2VsZi5sZW5ndGggPj4+IDAsCiAgICAgICAgICAgIHRoaXNwID0gYXJndW1lbnRzWzFdOwogICAgICAgIGlmIChfdG9TdHJpbmcoZnVuKSAhPSAiW29iamVjdCBGdW5jdGlvbl0iKSB7CiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoZnVuICsgIiBpcyBub3QgYSBmdW5jdGlvbiIpOwogICAgICAgIH0KCiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBsZW5ndGg7IGkrKykgewogICAgICAgICAgICBpZiAoaSBpbiBzZWxmICYmIGZ1bi5jYWxsKHRoaXNwLCBzZWxmW2ldLCBpLCBvYmplY3QpKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gZmFsc2U7CiAgICB9Owp9CmlmICghQXJyYXkucHJvdG90eXBlLnJlZHVjZSkgewogICAgQXJyYXkucHJvdG90eXBlLnJlZHVjZSA9IGZ1bmN0aW9uIHJlZHVjZShmdW4gLyosIGluaXRpYWwqLykgewogICAgICAgIHZhciBvYmplY3QgPSB0b09iamVjdCh0aGlzKSwKICAgICAgICAgICAgc2VsZiA9IHNwbGl0U3RyaW5nICYmIF90b1N0cmluZyh0aGlzKSA9PSAiW29iamVjdCBTdHJpbmddIiA/CiAgICAgICAgICAgICAgICB0aGlzLnNwbGl0KCIiKSA6CiAgICAgICAgICAgICAgICBvYmplY3QsCiAgICAgICAgICAgIGxlbmd0aCA9IHNlbGYubGVuZ3RoID4+PiAwOwogICAgICAgIGlmIChfdG9TdHJpbmcoZnVuKSAhPSAiW29iamVjdCBGdW5jdGlvbl0iKSB7CiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoZnVuICsgIiBpcyBub3QgYSBmdW5jdGlvbiIpOwogICAgICAgIH0KICAgICAgICBpZiAoIWxlbmd0aCAmJiBhcmd1bWVudHMubGVuZ3RoID09IDEpIHsKICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcigicmVkdWNlIG9mIGVtcHR5IGFycmF5IHdpdGggbm8gaW5pdGlhbCB2YWx1ZSIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIGkgPSAwOwogICAgICAgIHZhciByZXN1bHQ7CiAgICAgICAgaWYgKGFyZ3VtZW50cy5sZW5ndGggPj0gMikgewogICAgICAgICAgICByZXN1bHQgPSBhcmd1bWVudHNbMV07CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZG8gewogICAgICAgICAgICAgICAgaWYgKGkgaW4gc2VsZikgewogICAgICAgICAgICAgICAgICAgIHJlc3VsdCA9IHNlbGZbaSsrXTsKICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGlmICgrK2kgPj0gbGVuZ3RoKSB7CiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcigicmVkdWNlIG9mIGVtcHR5IGFycmF5IHdpdGggbm8gaW5pdGlhbCB2YWx1ZSIpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9IHdoaWxlICh0cnVlKTsKICAgICAgICB9CgogICAgICAgIGZvciAoOyBpIDwgbGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgaWYgKGkgaW4gc2VsZikgewogICAgICAgICAgICAgICAgcmVzdWx0ID0gZnVuLmNhbGwodm9pZCAwLCByZXN1bHQsIHNlbGZbaV0sIGksIG9iamVjdCk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9Owp9CmlmICghQXJyYXkucHJvdG90eXBlLnJlZHVjZVJpZ2h0KSB7CiAgICBBcnJheS5wcm90b3R5cGUucmVkdWNlUmlnaHQgPSBmdW5jdGlvbiByZWR1Y2VSaWdodChmdW4gLyosIGluaXRpYWwqLykgewogICAgICAgIHZhciBvYmplY3QgPSB0b09iamVjdCh0aGlzKSwKICAgICAgICAgICAgc2VsZiA9IHNwbGl0U3RyaW5nICYmIF90b1N0cmluZyh0aGlzKSA9PSAiW29iamVjdCBTdHJpbmddIiA/CiAgICAgICAgICAgICAgICB0aGlzLnNwbGl0KCIiKSA6CiAgICAgICAgICAgICAgICBvYmplY3QsCiAgICAgICAgICAgIGxlbmd0aCA9IHNlbGYubGVuZ3RoID4+PiAwOwogICAgICAgIGlmIChfdG9TdHJpbmcoZnVuKSAhPSAiW29iamVjdCBGdW5jdGlvbl0iKSB7CiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoZnVuICsgIiBpcyBub3QgYSBmdW5jdGlvbiIpOwogICAgICAgIH0KICAgICAgICBpZiAoIWxlbmd0aCAmJiBhcmd1bWVudHMubGVuZ3RoID09IDEpIHsKICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcigicmVkdWNlUmlnaHQgb2YgZW1wdHkgYXJyYXkgd2l0aCBubyBpbml0aWFsIHZhbHVlIik7CiAgICAgICAgfQoKICAgICAgICB2YXIgcmVzdWx0LCBpID0gbGVuZ3RoIC0gMTsKICAgICAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA+PSAyKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IGFyZ3VtZW50c1sxXTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBkbyB7CiAgICAgICAgICAgICAgICBpZiAoaSBpbiBzZWxmKSB7CiAgICAgICAgICAgICAgICAgICAgcmVzdWx0ID0gc2VsZltpLS1dOwogICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgaWYgKC0taSA8IDApIHsKICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJyZWR1Y2VSaWdodCBvZiBlbXB0eSBhcnJheSB3aXRoIG5vIGluaXRpYWwgdmFsdWUiKTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSB3aGlsZSAodHJ1ZSk7CiAgICAgICAgfQoKICAgICAgICBkbyB7CiAgICAgICAgICAgIGlmIChpIGluIHRoaXMpIHsKICAgICAgICAgICAgICAgIHJlc3VsdCA9IGZ1bi5jYWxsKHZvaWQgMCwgcmVzdWx0LCBzZWxmW2ldLCBpLCBvYmplY3QpOwogICAgICAgICAgICB9CiAgICAgICAgfSB3aGlsZSAoaS0tKTsKCiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH07Cn0KaWYgKCFBcnJheS5wcm90b3R5cGUuaW5kZXhPZiB8fCAoWzAsIDFdLmluZGV4T2YoMSwgMikgIT0gLTEpKSB7CiAgICBBcnJheS5wcm90b3R5cGUuaW5kZXhPZiA9IGZ1bmN0aW9uIGluZGV4T2Yoc291Z2h0IC8qLCBmcm9tSW5kZXggKi8gKSB7CiAgICAgICAgdmFyIHNlbGYgPSBzcGxpdFN0cmluZyAmJiBfdG9TdHJpbmcodGhpcykgPT0gIltvYmplY3QgU3RyaW5nXSIgPwogICAgICAgICAgICAgICAgdGhpcy5zcGxpdCgiIikgOgogICAgICAgICAgICAgICAgdG9PYmplY3QodGhpcyksCiAgICAgICAgICAgIGxlbmd0aCA9IHNlbGYubGVuZ3RoID4+PiAwOwoKICAgICAgICBpZiAoIWxlbmd0aCkgewogICAgICAgICAgICByZXR1cm4gLTE7CiAgICAgICAgfQoKICAgICAgICB2YXIgaSA9IDA7CiAgICAgICAgaWYgKGFyZ3VtZW50cy5sZW5ndGggPiAxKSB7CiAgICAgICAgICAgIGkgPSB0b0ludGVnZXIoYXJndW1lbnRzWzFdKTsKICAgICAgICB9CiAgICAgICAgaSA9IGkgPj0gMCA/IGkgOiBNYXRoLm1heCgwLCBsZW5ndGggKyBpKTsKICAgICAgICBmb3IgKDsgaSA8IGxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIGlmIChpIGluIHNlbGYgJiYgc2VsZltpXSA9PT0gc291Z2h0KSB7CiAgICAgICAgICAgICAgICByZXR1cm4gaTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gLTE7CiAgICB9Owp9CmlmICghQXJyYXkucHJvdG90eXBlLmxhc3RJbmRleE9mIHx8IChbMCwgMV0ubGFzdEluZGV4T2YoMCwgLTMpICE9IC0xKSkgewogICAgQXJyYXkucHJvdG90eXBlLmxhc3RJbmRleE9mID0gZnVuY3Rpb24gbGFzdEluZGV4T2Yoc291Z2h0IC8qLCBmcm9tSW5kZXggKi8pIHsKICAgICAgICB2YXIgc2VsZiA9IHNwbGl0U3RyaW5nICYmIF90b1N0cmluZyh0aGlzKSA9PSAiW29iamVjdCBTdHJpbmddIiA/CiAgICAgICAgICAgICAgICB0aGlzLnNwbGl0KCIiKSA6CiAgICAgICAgICAgICAgICB0b09iamVjdCh0aGlzKSwKICAgICAgICAgICAgbGVuZ3RoID0gc2VsZi5sZW5ndGggPj4+IDA7CgogICAgICAgIGlmICghbGVuZ3RoKSB7CiAgICAgICAgICAgIHJldHVybiAtMTsKICAgICAgICB9CiAgICAgICAgdmFyIGkgPSBsZW5ndGggLSAxOwogICAgICAgIGlmIChhcmd1bWVudHMubGVuZ3RoID4gMSkgewogICAgICAgICAgICBpID0gTWF0aC5taW4oaSwgdG9JbnRlZ2VyKGFyZ3VtZW50c1sxXSkpOwogICAgICAgIH0KICAgICAgICBpID0gaSA+PSAwID8gaSA6IGxlbmd0aCAtIE1hdGguYWJzKGkpOwogICAgICAgIGZvciAoOyBpID49IDA7IGktLSkgewogICAgICAgICAgICBpZiAoaSBpbiBzZWxmICYmIHNvdWdodCA9PT0gc2VsZltpXSkgewogICAgICAgICAgICAgICAgcmV0dXJuIGk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIC0xOwogICAgfTsKfQppZiAoIU9iamVjdC5nZXRQcm90b3R5cGVPZikgewogICAgT2JqZWN0LmdldFByb3RvdHlwZU9mID0gZnVuY3Rpb24gZ2V0UHJvdG90eXBlT2Yob2JqZWN0KSB7CiAgICAgICAgcmV0dXJuIG9iamVjdC5fX3Byb3RvX18gfHwgKAogICAgICAgICAgICBvYmplY3QuY29uc3RydWN0b3IgPwogICAgICAgICAgICBvYmplY3QuY29uc3RydWN0b3IucHJvdG90eXBlIDoKICAgICAgICAgICAgcHJvdG90eXBlT2ZPYmplY3QKICAgICAgICApOwogICAgfTsKfQppZiAoIU9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpIHsKICAgIHZhciBFUlJfTk9OX09CSkVDVCA9ICJPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yIGNhbGxlZCBvbiBhICIgKwogICAgICAgICAgICAgICAgICAgICAgICAgIm5vbi1vYmplY3Q6ICI7CiAgICBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yID0gZnVuY3Rpb24gZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iamVjdCwgcHJvcGVydHkpIHsKICAgICAgICBpZiAoKHR5cGVvZiBvYmplY3QgIT0gIm9iamVjdCIgJiYgdHlwZW9mIG9iamVjdCAhPSAiZnVuY3Rpb24iKSB8fCBvYmplY3QgPT09IG51bGwpCiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoRVJSX05PTl9PQkpFQ1QgKyBvYmplY3QpOwogICAgICAgIGlmICghb3ducyhvYmplY3QsIHByb3BlcnR5KSkKICAgICAgICAgICAgcmV0dXJuOwoKICAgICAgICB2YXIgZGVzY3JpcHRvciwgZ2V0dGVyLCBzZXR0ZXI7CiAgICAgICAgZGVzY3JpcHRvciA9ICB7IGVudW1lcmFibGU6IHRydWUsIGNvbmZpZ3VyYWJsZTogdHJ1ZSB9OwogICAgICAgIGlmIChzdXBwb3J0c0FjY2Vzc29ycykgewogICAgICAgICAgICB2YXIgcHJvdG90eXBlID0gb2JqZWN0Ll9fcHJvdG9fXzsKICAgICAgICAgICAgb2JqZWN0Ll9fcHJvdG9fXyA9IHByb3RvdHlwZU9mT2JqZWN0OwoKICAgICAgICAgICAgdmFyIGdldHRlciA9IGxvb2t1cEdldHRlcihvYmplY3QsIHByb3BlcnR5KTsKICAgICAgICAgICAgdmFyIHNldHRlciA9IGxvb2t1cFNldHRlcihvYmplY3QsIHByb3BlcnR5KTsKICAgICAgICAgICAgb2JqZWN0Ll9fcHJvdG9fXyA9IHByb3RvdHlwZTsKCiAgICAgICAgICAgIGlmIChnZXR0ZXIgfHwgc2V0dGVyKSB7CiAgICAgICAgICAgICAgICBpZiAoZ2V0dGVyKSBkZXNjcmlwdG9yLmdldCA9IGdldHRlcjsKICAgICAgICAgICAgICAgIGlmIChzZXR0ZXIpIGRlc2NyaXB0b3Iuc2V0ID0gc2V0dGVyOwogICAgICAgICAgICAgICAgcmV0dXJuIGRlc2NyaXB0b3I7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgZGVzY3JpcHRvci52YWx1ZSA9IG9iamVjdFtwcm9wZXJ0eV07CiAgICAgICAgcmV0dXJuIGRlc2NyaXB0b3I7CiAgICB9Owp9CmlmICghT2JqZWN0LmdldE93blByb3BlcnR5TmFtZXMpIHsKICAgIE9iamVjdC5nZXRPd25Qcm9wZXJ0eU5hbWVzID0gZnVuY3Rpb24gZ2V0T3duUHJvcGVydHlOYW1lcyhvYmplY3QpIHsKICAgICAgICByZXR1cm4gT2JqZWN0LmtleXMob2JqZWN0KTsKICAgIH07Cn0KaWYgKCFPYmplY3QuY3JlYXRlKSB7CiAgICB2YXIgY3JlYXRlRW1wdHk7CiAgICBpZiAoT2JqZWN0LnByb3RvdHlwZS5fX3Byb3RvX18gPT09IG51bGwpIHsKICAgICAgICBjcmVhdGVFbXB0eSA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIHsgIl9fcHJvdG9fXyI6IG51bGwgfTsKICAgICAgICB9OwogICAgfSBlbHNlIHsKICAgICAgICBjcmVhdGVFbXB0eSA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgdmFyIGVtcHR5ID0ge307CiAgICAgICAgICAgIGZvciAodmFyIGkgaW4gZW1wdHkpCiAgICAgICAgICAgICAgICBlbXB0eVtpXSA9IG51bGw7CiAgICAgICAgICAgIGVtcHR5LmNvbnN0cnVjdG9yID0KICAgICAgICAgICAgZW1wdHkuaGFzT3duUHJvcGVydHkgPQogICAgICAgICAgICBlbXB0eS5wcm9wZXJ0eUlzRW51bWVyYWJsZSA9CiAgICAgICAgICAgIGVtcHR5LmlzUHJvdG90eXBlT2YgPQogICAgICAgICAgICBlbXB0eS50b0xvY2FsZVN0cmluZyA9CiAgICAgICAgICAgIGVtcHR5LnRvU3RyaW5nID0KICAgICAgICAgICAgZW1wdHkudmFsdWVPZiA9CiAgICAgICAgICAgIGVtcHR5Ll9fcHJvdG9fXyA9IG51bGw7CiAgICAgICAgICAgIHJldHVybiBlbXB0eTsKICAgICAgICB9CiAgICB9CgogICAgT2JqZWN0LmNyZWF0ZSA9IGZ1bmN0aW9uIGNyZWF0ZShwcm90b3R5cGUsIHByb3BlcnRpZXMpIHsKICAgICAgICB2YXIgb2JqZWN0OwogICAgICAgIGlmIChwcm90b3R5cGUgPT09IG51bGwpIHsKICAgICAgICAgICAgb2JqZWN0ID0gY3JlYXRlRW1wdHkoKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBpZiAodHlwZW9mIHByb3RvdHlwZSAhPSAib2JqZWN0IikKICAgICAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoInR5cGVvZiBwcm90b3R5cGVbIisodHlwZW9mIHByb3RvdHlwZSkrIl0gIT0gJ29iamVjdCciKTsKICAgICAgICAgICAgdmFyIFR5cGUgPSBmdW5jdGlvbiAoKSB7fTsKICAgICAgICAgICAgVHlwZS5wcm90b3R5cGUgPSBwcm90b3R5cGU7CiAgICAgICAgICAgIG9iamVjdCA9IG5ldyBUeXBlKCk7CiAgICAgICAgICAgIG9iamVjdC5fX3Byb3RvX18gPSBwcm90b3R5cGU7CiAgICAgICAgfQogICAgICAgIGlmIChwcm9wZXJ0aWVzICE9PSB2b2lkIDApCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iamVjdCwgcHJvcGVydGllcyk7CiAgICAgICAgcmV0dXJuIG9iamVjdDsKICAgIH07Cn0KCmZ1bmN0aW9uIGRvZXNEZWZpbmVQcm9wZXJ0eVdvcmsob2JqZWN0KSB7CiAgICB0cnkgewogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmplY3QsICJzZW50aW5lbCIsIHt9KTsKICAgICAgICByZXR1cm4gInNlbnRpbmVsIiBpbiBvYmplY3Q7CiAgICB9IGNhdGNoIChleGNlcHRpb24pIHsKICAgIH0KfQppZiAoT2JqZWN0LmRlZmluZVByb3BlcnR5KSB7CiAgICB2YXIgZGVmaW5lUHJvcGVydHlXb3Jrc09uT2JqZWN0ID0gZG9lc0RlZmluZVByb3BlcnR5V29yayh7fSk7CiAgICB2YXIgZGVmaW5lUHJvcGVydHlXb3Jrc09uRG9tID0gdHlwZW9mIGRvY3VtZW50ID09ICJ1bmRlZmluZWQiIHx8CiAgICAgICAgZG9lc0RlZmluZVByb3BlcnR5V29yayhkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJkaXYiKSk7CiAgICBpZiAoIWRlZmluZVByb3BlcnR5V29ya3NPbk9iamVjdCB8fCAhZGVmaW5lUHJvcGVydHlXb3Jrc09uRG9tKSB7CiAgICAgICAgdmFyIGRlZmluZVByb3BlcnR5RmFsbGJhY2sgPSBPYmplY3QuZGVmaW5lUHJvcGVydHk7CiAgICB9Cn0KCmlmICghT2JqZWN0LmRlZmluZVByb3BlcnR5IHx8IGRlZmluZVByb3BlcnR5RmFsbGJhY2spIHsKICAgIHZhciBFUlJfTk9OX09CSkVDVF9ERVNDUklQVE9SID0gIlByb3BlcnR5IGRlc2NyaXB0aW9uIG11c3QgYmUgYW4gb2JqZWN0OiAiOwogICAgdmFyIEVSUl9OT05fT0JKRUNUX1RBUkdFVCA9ICJPYmplY3QuZGVmaW5lUHJvcGVydHkgY2FsbGVkIG9uIG5vbi1vYmplY3Q6ICIKICAgIHZhciBFUlJfQUNDRVNTT1JTX05PVF9TVVBQT1JURUQgPSAiZ2V0dGVycyAmIHNldHRlcnMgY2FuIG5vdCBiZSBkZWZpbmVkICIgKwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJvbiB0aGlzIGphdmFzY3JpcHQgZW5naW5lIjsKCiAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkgPSBmdW5jdGlvbiBkZWZpbmVQcm9wZXJ0eShvYmplY3QsIHByb3BlcnR5LCBkZXNjcmlwdG9yKSB7CiAgICAgICAgaWYgKCh0eXBlb2Ygb2JqZWN0ICE9ICJvYmplY3QiICYmIHR5cGVvZiBvYmplY3QgIT0gImZ1bmN0aW9uIikgfHwgb2JqZWN0ID09PSBudWxsKQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKEVSUl9OT05fT0JKRUNUX1RBUkdFVCArIG9iamVjdCk7CiAgICAgICAgaWYgKCh0eXBlb2YgZGVzY3JpcHRvciAhPSAib2JqZWN0IiAmJiB0eXBlb2YgZGVzY3JpcHRvciAhPSAiZnVuY3Rpb24iKSB8fCBkZXNjcmlwdG9yID09PSBudWxsKQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKEVSUl9OT05fT0JKRUNUX0RFU0NSSVBUT1IgKyBkZXNjcmlwdG9yKTsKICAgICAgICBpZiAoZGVmaW5lUHJvcGVydHlGYWxsYmFjaykgewogICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgcmV0dXJuIGRlZmluZVByb3BlcnR5RmFsbGJhY2suY2FsbChPYmplY3QsIG9iamVjdCwgcHJvcGVydHksIGRlc2NyaXB0b3IpOwogICAgICAgICAgICB9IGNhdGNoIChleGNlcHRpb24pIHsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBpZiAob3ducyhkZXNjcmlwdG9yLCAidmFsdWUiKSkgewoKICAgICAgICAgICAgaWYgKHN1cHBvcnRzQWNjZXNzb3JzICYmIChsb29rdXBHZXR0ZXIob2JqZWN0LCBwcm9wZXJ0eSkgfHwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBsb29rdXBTZXR0ZXIob2JqZWN0LCBwcm9wZXJ0eSkpKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICB2YXIgcHJvdG90eXBlID0gb2JqZWN0Ll9fcHJvdG9fXzsKICAgICAgICAgICAgICAgIG9iamVjdC5fX3Byb3RvX18gPSBwcm90b3R5cGVPZk9iamVjdDsKICAgICAgICAgICAgICAgIGRlbGV0ZSBvYmplY3RbcHJvcGVydHldOwogICAgICAgICAgICAgICAgb2JqZWN0W3Byb3BlcnR5XSA9IGRlc2NyaXB0b3IudmFsdWU7CiAgICAgICAgICAgICAgICBvYmplY3QuX19wcm90b19fID0gcHJvdG90eXBlOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgb2JqZWN0W3Byb3BlcnR5XSA9IGRlc2NyaXB0b3IudmFsdWU7CiAgICAgICAgICAgIH0KICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBpZiAoIXN1cHBvcnRzQWNjZXNzb3JzKQogICAgICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcihFUlJfQUNDRVNTT1JTX05PVF9TVVBQT1JURUQpOwogICAgICAgICAgICBpZiAob3ducyhkZXNjcmlwdG9yLCAiZ2V0IikpCiAgICAgICAgICAgICAgICBkZWZpbmVHZXR0ZXIob2JqZWN0LCBwcm9wZXJ0eSwgZGVzY3JpcHRvci5nZXQpOwogICAgICAgICAgICBpZiAob3ducyhkZXNjcmlwdG9yLCAic2V0IikpCiAgICAgICAgICAgICAgICBkZWZpbmVTZXR0ZXIob2JqZWN0LCBwcm9wZXJ0eSwgZGVzY3JpcHRvci5zZXQpOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIG9iamVjdDsKICAgIH07Cn0KaWYgKCFPYmplY3QuZGVmaW5lUHJvcGVydGllcykgewogICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgPSBmdW5jdGlvbiBkZWZpbmVQcm9wZXJ0aWVzKG9iamVjdCwgcHJvcGVydGllcykgewogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIHByb3BlcnRpZXMpIHsKICAgICAgICAgICAgaWYgKG93bnMocHJvcGVydGllcywgcHJvcGVydHkpKQogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iamVjdCwgcHJvcGVydHksIHByb3BlcnRpZXNbcHJvcGVydHldKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIG9iamVjdDsKICAgIH07Cn0KaWYgKCFPYmplY3Quc2VhbCkgewogICAgT2JqZWN0LnNlYWwgPSBmdW5jdGlvbiBzZWFsKG9iamVjdCkgewogICAgICAgIHJldHVybiBvYmplY3Q7CiAgICB9Owp9CmlmICghT2JqZWN0LmZyZWV6ZSkgewogICAgT2JqZWN0LmZyZWV6ZSA9IGZ1bmN0aW9uIGZyZWV6ZShvYmplY3QpIHsKICAgICAgICByZXR1cm4gb2JqZWN0OwogICAgfTsKfQp0cnkgewogICAgT2JqZWN0LmZyZWV6ZShmdW5jdGlvbiAoKSB7fSk7Cn0gY2F0Y2ggKGV4Y2VwdGlvbikgewogICAgT2JqZWN0LmZyZWV6ZSA9IChmdW5jdGlvbiBmcmVlemUoZnJlZXplT2JqZWN0KSB7CiAgICAgICAgcmV0dXJuIGZ1bmN0aW9uIGZyZWV6ZShvYmplY3QpIHsKICAgICAgICAgICAgaWYgKHR5cGVvZiBvYmplY3QgPT0gImZ1bmN0aW9uIikgewogICAgICAgICAgICAgICAgcmV0dXJuIG9iamVjdDsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHJldHVybiBmcmVlemVPYmplY3Qob2JqZWN0KTsKICAgICAgICAgICAgfQogICAgICAgIH07CiAgICB9KShPYmplY3QuZnJlZXplKTsKfQppZiAoIU9iamVjdC5wcmV2ZW50RXh0ZW5zaW9ucykgewogICAgT2JqZWN0LnByZXZlbnRFeHRlbnNpb25zID0gZnVuY3Rpb24gcHJldmVudEV4dGVuc2lvbnMob2JqZWN0KSB7CiAgICAgICAgcmV0dXJuIG9iamVjdDsKICAgIH07Cn0KaWYgKCFPYmplY3QuaXNTZWFsZWQpIHsKICAgIE9iamVjdC5pc1NlYWxlZCA9IGZ1bmN0aW9uIGlzU2VhbGVkKG9iamVjdCkgewogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH07Cn0KaWYgKCFPYmplY3QuaXNGcm96ZW4pIHsKICAgIE9iamVjdC5pc0Zyb3plbiA9IGZ1bmN0aW9uIGlzRnJvemVuKG9iamVjdCkgewogICAgICAgIHJldHVybiBmYWxzZTsKICAgIH07Cn0KaWYgKCFPYmplY3QuaXNFeHRlbnNpYmxlKSB7CiAgICBPYmplY3QuaXNFeHRlbnNpYmxlID0gZnVuY3Rpb24gaXNFeHRlbnNpYmxlKG9iamVjdCkgewogICAgICAgIGlmIChPYmplY3Qob2JqZWN0KSA9PT0gb2JqZWN0KSB7CiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoKTsgLy8gVE9ETyBtZXNzYWdlCiAgICAgICAgfQogICAgICAgIHZhciBuYW1lID0gJyc7CiAgICAgICAgd2hpbGUgKG93bnMob2JqZWN0LCBuYW1lKSkgewogICAgICAgICAgICBuYW1lICs9ICc/JzsKICAgICAgICB9CiAgICAgICAgb2JqZWN0W25hbWVdID0gdHJ1ZTsKICAgICAgICB2YXIgcmV0dXJuVmFsdWUgPSBvd25zKG9iamVjdCwgbmFtZSk7CiAgICAgICAgZGVsZXRlIG9iamVjdFtuYW1lXTsKICAgICAgICByZXR1cm4gcmV0dXJuVmFsdWU7CiAgICB9Owp9CmlmICghT2JqZWN0LmtleXMpIHsKICAgIHZhciBoYXNEb250RW51bUJ1ZyA9IHRydWUsCiAgICAgICAgZG9udEVudW1zID0gWwogICAgICAgICAgICAidG9TdHJpbmciLAogICAgICAgICAgICAidG9Mb2NhbGVTdHJpbmciLAogICAgICAgICAgICAidmFsdWVPZiIsCiAgICAgICAgICAgICJoYXNPd25Qcm9wZXJ0eSIsCiAgICAgICAgICAgICJpc1Byb3RvdHlwZU9mIiwKICAgICAgICAgICAgInByb3BlcnR5SXNFbnVtZXJhYmxlIiwKICAgICAgICAgICAgImNvbnN0cnVjdG9yIgogICAgICAgIF0sCiAgICAgICAgZG9udEVudW1zTGVuZ3RoID0gZG9udEVudW1zLmxlbmd0aDsKCiAgICBmb3IgKHZhciBrZXkgaW4geyJ0b1N0cmluZyI6IG51bGx9KSB7CiAgICAgICAgaGFzRG9udEVudW1CdWcgPSBmYWxzZTsKICAgIH0KCiAgICBPYmplY3Qua2V5cyA9IGZ1bmN0aW9uIGtleXMob2JqZWN0KSB7CgogICAgICAgIGlmICgKICAgICAgICAgICAgKHR5cGVvZiBvYmplY3QgIT0gIm9iamVjdCIgJiYgdHlwZW9mIG9iamVjdCAhPSAiZnVuY3Rpb24iKSB8fAogICAgICAgICAgICBvYmplY3QgPT09IG51bGwKICAgICAgICApIHsKICAgICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcigiT2JqZWN0LmtleXMgY2FsbGVkIG9uIGEgbm9uLW9iamVjdCIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIGtleXMgPSBbXTsKICAgICAgICBmb3IgKHZhciBuYW1lIGluIG9iamVjdCkgewogICAgICAgICAgICBpZiAob3ducyhvYmplY3QsIG5hbWUpKSB7CiAgICAgICAgICAgICAgICBrZXlzLnB1c2gobmFtZSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIGlmIChoYXNEb250RW51bUJ1ZykgewogICAgICAgICAgICBmb3IgKHZhciBpID0gMCwgaWkgPSBkb250RW51bXNMZW5ndGg7IGkgPCBpaTsgaSsrKSB7CiAgICAgICAgICAgICAgICB2YXIgZG9udEVudW0gPSBkb250RW51bXNbaV07CiAgICAgICAgICAgICAgICBpZiAob3ducyhvYmplY3QsIGRvbnRFbnVtKSkgewogICAgICAgICAgICAgICAgICAgIGtleXMucHVzaChkb250RW51bSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGtleXM7CiAgICB9OwoKfQppZiAoIURhdGUubm93KSB7CiAgICBEYXRlLm5vdyA9IGZ1bmN0aW9uIG5vdygpIHsKICAgICAgICByZXR1cm4gbmV3IERhdGUoKS5nZXRUaW1lKCk7CiAgICB9Owp9CnZhciB3cyA9ICJceDA5XHgwQVx4MEJceDBDXHgwRFx4MjBceEEwXHUxNjgwXHUyMDAwXHUyMDAxXHUyMDAyXHUyMDAzIiArCiAgICAiXHUyMDA0XHUyMDA1XHUyMDA2XHUyMDA3XHUyMDA4XHUyMDA5XHUyMDBBXHUyMDJGXHUyMDVGXHUzMDAwXHUyMDI4IiArCiAgICAiXHUyMDI5XHVGRUZGIjsKaWYgKCFTdHJpbmcucHJvdG90eXBlLnRyaW0pIHsKICAgIHdzID0gIlsiICsgd3MgKyAiXSI7CiAgICB2YXIgdHJpbUJlZ2luUmVnZXhwID0gbmV3IFJlZ0V4cCgiXiIgKyB3cyArIHdzICsgIioiKSwKICAgICAgICB0cmltRW5kUmVnZXhwID0gbmV3IFJlZ0V4cCh3cyArIHdzICsgIiokIik7CiAgICBTdHJpbmcucHJvdG90eXBlLnRyaW0gPSBmdW5jdGlvbiB0cmltKCkgewogICAgICAgIHJldHVybiBTdHJpbmcodGhpcykucmVwbGFjZSh0cmltQmVnaW5SZWdleHAsICIiKS5yZXBsYWNlKHRyaW1FbmRSZWdleHAsICIiKTsKICAgIH07Cn0KCmZ1bmN0aW9uIHRvSW50ZWdlcihuKSB7CiAgICBuID0gK247CiAgICBpZiAobiAhPT0gbikgeyAvLyBpc05hTgogICAgICAgIG4gPSAwOwogICAgfSBlbHNlIGlmIChuICE9PSAwICYmIG4gIT09ICgxLzApICYmIG4gIT09IC0oMS8wKSkgewogICAgICAgIG4gPSAobiA+IDAgfHwgLTEpICogTWF0aC5mbG9vcihNYXRoLmFicyhuKSk7CiAgICB9CiAgICByZXR1cm4gbjsKfQoKZnVuY3Rpb24gaXNQcmltaXRpdmUoaW5wdXQpIHsKICAgIHZhciB0eXBlID0gdHlwZW9mIGlucHV0OwogICAgcmV0dXJuICgKICAgICAgICBpbnB1dCA9PT0gbnVsbCB8fAogICAgICAgIHR5cGUgPT09ICJ1bmRlZmluZWQiIHx8CiAgICAgICAgdHlwZSA9PT0gImJvb2xlYW4iIHx8CiAgICAgICAgdHlwZSA9PT0gIm51bWJlciIgfHwKICAgICAgICB0eXBlID09PSAic3RyaW5nIgogICAgKTsKfQoKZnVuY3Rpb24gdG9QcmltaXRpdmUoaW5wdXQpIHsKICAgIHZhciB2YWwsIHZhbHVlT2YsIHRvU3RyaW5nOwogICAgaWYgKGlzUHJpbWl0aXZlKGlucHV0KSkgewogICAgICAgIHJldHVybiBpbnB1dDsKICAgIH0KICAgIHZhbHVlT2YgPSBpbnB1dC52YWx1ZU9mOwogICAgaWYgKHR5cGVvZiB2YWx1ZU9mID09PSAiZnVuY3Rpb24iKSB7CiAgICAgICAgdmFsID0gdmFsdWVPZi5jYWxsKGlucHV0KTsKICAgICAgICBpZiAoaXNQcmltaXRpdmUodmFsKSkgewogICAgICAgICAgICByZXR1cm4gdmFsOwogICAgICAgIH0KICAgIH0KICAgIHRvU3RyaW5nID0gaW5wdXQudG9TdHJpbmc7CiAgICBpZiAodHlwZW9mIHRvU3RyaW5nID09PSAiZnVuY3Rpb24iKSB7CiAgICAgICAgdmFsID0gdG9TdHJpbmcuY2FsbChpbnB1dCk7CiAgICAgICAgaWYgKGlzUHJpbWl0aXZlKHZhbCkpIHsKICAgICAgICAgICAgcmV0dXJuIHZhbDsKICAgICAgICB9CiAgICB9CiAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCk7Cn0KdmFyIHRvT2JqZWN0ID0gZnVuY3Rpb24gKG8pIHsKICAgIGlmIChvID09IG51bGwpIHsgLy8gdGhpcyBtYXRjaGVzIGJvdGggbnVsbCBhbmQgdW5kZWZpbmVkCiAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcigiY2FuJ3QgY29udmVydCAiK28rIiB0byBvYmplY3QiKTsKICAgIH0KICAgIHJldHVybiBPYmplY3Qobyk7Cn07Cgp9KTsK"},function(t,e,n){t.exports=function(){"use strict";function t(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(e>0?t.toFixed(e).replace(/0+$/,"").replace(/\.$/,""):t.toString())||"0"}function e(t,e,n){function i(t,e,n){return Math.max(e,Math.min(t,n))}function r(t,r,o){if(o&&(s=!0),s){t.preventDefault();var a=e.getBoundingClientRect(),l=a.width,c=a.height,u=r.clientX,h=r.clientY,d=i(u-a.left,0,l),p=i(h-a.top,0,c);n(d/l,p/c)}}function o(t,e){1===(void 0===t.buttons?t.which:t.buttons)?r(t,t,e):s=!1}function a(t,e){1===t.touches.length?r(t,t.touches[0],e):s=!1}var s=!1;t.add(e,"mousedown",(function(t){o(t,!0)})),t.add(e,"touchstart",(function(t){a(t,!0)})),t.add(window,"mousemove",o),t.add(e,"touchmove",a),t.add(window,"mouseup",(function(t){s=!1})),t.add(e,"touchend",(function(t){s=!1})),t.add(e,"touchcancel",(function(t){s=!1}))}function n(t,e){return(e||document).querySelector(t)}function i(t){t.preventDefault(),t.stopPropagation()}function r(t,e,n,r,o){t.add(e,h,(function(t){n.indexOf(t.key)>=0&&(o&&i(t),r(t))}))}var o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();String.prototype.startsWith=String.prototype.startsWith||function(t){return 0===this.indexOf(t)},String.prototype.padStart=String.prototype.padStart||function(t,e){for(var n=this;n.length<t;)n=e+n;return n};var l={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"},c=function(){function e(t,n,i,r){o(this,e);var a=this;if(void 0===t);else if(Array.isArray(t))this.rgba=t;else if(void 0===i){var l=t&&""+t;l&&function(t){if(t.startsWith("hsl")){var n=t.match(/([\-\d\.e]+)/g).map(Number),i=s(n,4),r=i[0],o=i[1],l=i[2],c=i[3];void 0===c&&(c=1),r/=360,o/=100,l/=100,a.hsla=[r,o,l,c]}else if(t.startsWith("rgb")){var u=t.match(/([\-\d\.e]+)/g).map(Number),h=s(u,4),d=h[0],p=h[1],f=h[2],g=h[3];void 0===g&&(g=1),a.rgba=[d,p,f,g]}else t.startsWith("#")?a.rgba=e.hexToRgb(t):a.rgba=e.nameToRgb(t)||e.hexToRgb(t)}(l.toLowerCase())}else this.rgba=[t,n,i,void 0===r?1:r]}return a(e,[{key:"printRGB",value:function(e){var n=e?this.rgba:this.rgba.slice(0,3),i=n.map((function(e,n){return t(e,3===n?3:0)}));return e?"rgba("+i+")":"rgb("+i+")"}},{key:"printHSL",value:function(e){var n=[360,100,100,1],i=["","%","%",""],r=e?this.hsla:this.hsla.slice(0,3),o=r.map((function(e,r){return t(e*n[r],3===r?3:1)+i[r]}));return e?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(t){var e=this.hex;return t?e:e.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=e.hslToRgb(this._hsla)},set:function(t){3===t.length&&(t[3]=1),this._rgba=t,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=e.rgbToHsl(this._rgba)},set:function(t){3===t.length&&(t[3]=1),this._hsla=t,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){return"#"+this.rgba.map((function(t,e){return e<3?t.toString(16):Math.round(255*t).toString(16)})).map((function(t){return t.padStart(2,"0")})).join("")},set:function(t){this.rgba=e.hexToRgb(t)}}],[{key:"hexToRgb",value:function(t){var e=(t.startsWith("#")?t.slice(1):t).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!e.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+t);var n=e.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map((function(t){return parseInt(t,16)}));return n[3]=n[3]/255,n}},{key:"nameToRgb",value:function(t){var n=t.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),i=l[n];return void 0===i?i:e.hexToRgb(i.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(t){var e=s(t,4),n=e[0],i=e[1],r=e[2],o=e[3];n/=255,i/=255,r/=255;var a=Math.max(n,i,r),l=Math.min(n,i,r),c=void 0,u=void 0,h=(a+l)/2;if(a===l)c=u=0;else{var d=a-l;switch(u=h>.5?d/(2-a-l):d/(a+l),a){case n:c=(i-r)/d+(i<r?6:0);break;case i:c=(r-n)/d+2;break;case r:c=(n-i)/d+4}c/=6}return[c,u,h,o]}},{key:"hslToRgb",value:function(t){var e=s(t,4),n=e[0],i=e[1],r=e[2],o=e[3],a=void 0,l=void 0,c=void 0;if(0===i)a=l=c=r;else{var u=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},h=r<.5?r*(1+i):r+i-r*i,d=2*r-h;a=u(d,h,n+1/3),l=u(d,h,n),c=u(d,h,n-1/3)}var p=[255*a,255*l,255*c].map(Math.round);return p[3]=o,p}}]),e}(),u=function(){function t(){o(this,t),this._events=[]}return a(t,[{key:"add",value:function(t,e,n){t.addEventListener(e,n,!1),this._events.push({target:t,type:e,handler:n})}},{key:"remove",value:function(e,n,i){this._events=this._events.filter((function(r){var o=!0;return e&&e!==r.target&&(o=!1),n&&n!==r.type&&(o=!1),i&&i!==r.handler&&(o=!1),o&&t._doRemove(r.target,r.type,r.handler),!o}))}},{key:"destroy",value:function(){this._events.forEach((function(e){return t._doRemove(e.target,e.type,e.handler)})),this._events=[]}}],[{key:"_doRemove",value:function(t,e,n){t.removeEventListener(e,n,!1)}}]),t}(),h="keydown",d="mousedown",p="focusin",f=document.createElement("style");return f.textContent=".picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-flow:row wrap;-webkit-box-pack:justify;justify-content:space-between;-webkit-box-align:stretch;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:'';display:block;width:100%;height:0;-webkit-box-ordinal-group:2;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{-webkit-box-flex:1;flex:1 1 auto}.layout_default .picker_sl::before{content:'';display:block;padding-bottom:100%}.layout_default .picker_editor{-webkit-box-ordinal-group:2;order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{-webkit-box-ordinal-group:2;order:1;-webkit-box-flex:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{-webkit-box-ordinal-group:2;order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px dodgerblue}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:whitesmoke;background-image:-webkit-gradient(linear, left bottom, left top, from(gainsboro), to(transparent));background-image:-webkit-linear-gradient(bottom, gainsboro, transparent);background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:-webkit-gradient(linear, left bottom, left top, from(transparent), to(gainsboro));background-image:-webkit-linear-gradient(bottom, transparent, gainsboro);background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:white}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid white;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:-webkit-gradient(linear, left top, right top, from(red), color-stop(yellow), color-stop(lime), color-stop(cyan), color-stop(blue), color-stop(magenta), to(red));background-image:-webkit-linear-gradient(left, red, yellow, lime, cyan, blue, magenta, red);background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:-webkit-gradient(linear, left top, left bottom, from(white), color-stop(50%, rgba(255,255,255,0))),-webkit-gradient(linear, left bottom, left top, from(black), color-stop(50%, rgba(0,0,0,0))),-webkit-gradient(linear, left top, right top, from(gray), to(rgba(128,128,128,0)));background-image:-webkit-linear-gradient(top, white, rgba(255,255,255,0) 50%),-webkit-linear-gradient(bottom, black, rgba(0,0,0,0) 50%),-webkit-linear-gradient(left, gray, rgba(128,128,128,0));background-image:linear-gradient(180deg, white, rgba(255,255,255,0) 50%),linear-gradient(0deg, black, rgba(0,0,0,0) 50%),linear-gradient(90deg, gray, rgba(128,128,128,0))}.picker_alpha,.picker_sample{position:relative;background:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M1,0H0V1H2V2H1' fill='lightgrey'/%3E%3C/svg%3E\") left top/contain white;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:'';position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,0.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:\"\";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}",document.documentElement.firstElementChild.appendChild(f),function(){function t(e){o(this,t),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new u,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(e)}return a(t,[{key:"setOptions",value:function(t){function e(t){return n.openHandler(t)}var n=this;if(t){var i=this.settings;if(t instanceof HTMLElement)i.parent=t;else{i.parent&&t.parent&&i.parent!==t.parent&&(this._events.remove(i.parent),this._popupInited=!1),function(t,e,n){for(var i in t)n&&0<=n.indexOf(i)||(e[i]=t[i])}(t,i),t.onChange&&(this.onChange=t.onChange),t.onDone&&(this.onDone=t.onDone),t.onOpen&&(this.onOpen=t.onOpen),t.onClose&&(this.onClose=t.onClose);var o=t.color||t.colour;o&&this._setColor(o)}var a=i.parent;a&&i.popup&&!this._popupInited?(this._events.add(a,"click",e),r(this._events,a,[" ","Spacebar","Enter"],e),this._popupInited=!0):t.parent&&!i.popup&&this.show()}}},{key:"openHandler",value:function(t){if(this.show()){t&&t.preventDefault(),this.settings.parent.style.pointerEvents="none";var e=t&&"keydown"===t.type?this._domEdit:this.domElement;setTimeout((function(){return e.focus()}),100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(t){var e=t&&t.type,n=!1;if(t)if(e===d||e===p){var r=(this.__containedEvent||0)+100;t.timeStamp>r&&(n=!0)}else i(t),n=!0;else n=!0;n&&this.hide()&&(this.settings.parent.style.pointerEvents="",e!==d&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(t,e){this.closeHandler(),this.setOptions(t),e&&this.openHandler()}},{key:"setColor",value:function(t,e){this._setColor(t,{silent:e})}},{key:"_setColor",value:function(t,e){if("string"==typeof t&&(t=t.trim()),t){e=e||{};var n=void 0;try{n=new c(t)}catch(t){if(e.failSilently)return;throw t}if(!this.settings.alpha){var i=n.hsla;i[3]=1,n.hsla=i}this.colour=this.color=n,this._setHSLA(null,null,null,null,e)}}},{key:"setColour",value:function(t,e){this.setColor(t,e)}},{key:"show",value:function(){if(!this.settings.parent)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var e,i,r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',o=(e=r,(i=document.createElement("div")).innerHTML=e,i.firstElementChild);return this.domElement=o,this._domH=n(".picker_hue",o),this._domSL=n(".picker_sl",o),this._domA=n(".picker_alpha",o),this._domEdit=n(".picker_editor input",o),this._domSample=n(".picker_sample",o),this._domOkay=n(".picker_done button",o),this._domCancel=n(".picker_cancel button",o),o.classList.add("layout_"+this.settings.layout),this.settings.alpha||o.classList.add("no_alpha"),this.settings.editor||o.classList.add("no_editor"),this.settings.cancelButton||o.classList.add("no_cancel"),this._ifPopup((function(){return o.classList.add("popup")})),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){function t(t,e,n){s.add(t,e,n)}function n(t){i._ifPopup((function(){return i.closeHandler(t)})),i.onDone&&i.onDone(i.colour)}var i=this,o=this,a=this.domElement,s=this._events;t(a,"click",(function(t){return t.preventDefault()})),e(s,this._domH,(function(t,e){return o._setHSLA(t)})),e(s,this._domSL,(function(t,e){return o._setHSLA(null,t,1-e)})),this.settings.alpha&&e(s,this._domA,(function(t,e){return o._setHSLA(null,null,null,1-e)}));var l=this._domEdit;t(l,"input",(function(t){o._setColor(this.value,{fromEditor:!0,failSilently:!0})})),t(l,"focus",(function(t){this.selectionStart===this.selectionEnd&&this.select()})),this._ifPopup((function(){function e(t){return i.closeHandler(t)}function n(t){i.__containedEvent=t.timeStamp}t(window,d,e),t(window,p,e),r(s,a,["Esc","Escape"],e),t(a,d,n),t(a,p,n),t(i._domCancel,"click",e)})),t(this._domOkay,"click",n),r(s,a,["Enter"],n)}},{key:"_setPosition",value:function(){var t=this.settings.parent,e=this.domElement;t!==e.parentNode&&t.appendChild(e),this._ifPopup((function(n){"static"===getComputedStyle(t).position&&(t.style.position="relative");var i=!0===n?"popup_right":"popup_"+n;["popup_top","popup_bottom","popup_left","popup_right"].forEach((function(t){t===i?e.classList.add(t):e.classList.remove(t)})),e.classList.add(i)}))}},{key:"_setHSLA",value:function(t,e,n,i,r){r=r||{};var o=this.colour,a=o.hsla;[t,e,n,i].forEach((function(t,e){!t&&0!==t||(a[e]=t)})),o.hsla=a,this._updateUI(r),this.onChange&&!r.silent&&this.onChange(o)}},{key:"_updateUI",value:function(t){function e(t,e,n){e.style.left=100*n+"%"}function i(t,e,n){e.style.top=100*n+"%"}if(this.domElement){t=t||{};var r=this.colour,o=r.hsla,a="hsl("+360*o[0]+", 100%, 50%)",s=r.hslString,l=r.hslaString,c=this._domH,u=this._domSL,h=this._domA,d=n(".picker_selector",c),p=n(".picker_selector",u),f=n(".picker_selector",h);e(0,d,o[0]),this._domSL.style.backgroundColor=this._domH.style.color=a,e(0,p,o[1]),i(0,p,1-o[2]),u.style.color=s,i(0,f,1-o[3]);var g=s,m=g.replace("hsl","hsla").replace(")",", 0)"),v="linear-gradient("+[g,m]+")";if(this._domA.style.backgroundImage=v+", url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Cpath d='M1,0H0V1H2V2H1' fill='lightgrey'/%3E%3C/svg%3E\")",!t.fromEditor){var y=this.settings.editorFormat,b=this.settings.alpha,x=void 0;switch(y){case"rgb":x=r.printRGB(b);break;case"hsl":x=r.printHSL(b);break;default:x=r.printHex(b)}this._domEdit.value=x}this._domSample.style.color=l}}},{key:"_ifPopup",value:function(t,e){this.settings.parent&&this.settings.popup?t&&t(this.settings.popup):e&&e()}},{key:"_toggleDOM",value:function(t){var e=this.domElement;if(!e)return!1;var n=t?"":"none",i=e.style.display!==n;return i&&(e.style.display=n),i}}],[{key:"StyleElement",get:function(){return f}}]),t}()}()},function(t,e){window.ace.define("ace/theme/jsoneditor",["require","exports","module","ace/lib/dom"],(function(t,e,n){e.isDark=!1,e.cssClass="ace-jsoneditor",e.cssText='.ace-jsoneditor .ace_gutter {\nbackground: #ebebeb;\ncolor: #333\n}\n\n.ace-jsoneditor.ace_editor {\nfont-family: "dejavu sans mono", "droid sans mono", consolas, monaco, "lucida console", "courier new", courier, monospace, sans-serif;\nline-height: 1.3;\nbackground-color: #fff;\n}\n.ace-jsoneditor .ace_print-margin {\nwidth: 1px;\nbackground: #e8e8e8\n}\n.ace-jsoneditor .ace_scroller {\nbackground-color: #FFFFFF\n}\n.ace-jsoneditor .ace_text-layer {\ncolor: gray\n}\n.ace-jsoneditor .ace_variable {\ncolor: #1a1a1a\n}\n.ace-jsoneditor .ace_cursor {\nborder-left: 2px solid #000000\n}\n.ace-jsoneditor .ace_overwrite-cursors .ace_cursor {\nborder-left: 0px;\nborder-bottom: 1px solid #000000\n}\n.ace-jsoneditor .ace_marker-layer .ace_selection {\nbackground: lightgray\n}\n.ace-jsoneditor.ace_multiselect .ace_selection.ace_start {\nbox-shadow: 0 0 3px 0px #FFFFFF;\nborder-radius: 2px\n}\n.ace-jsoneditor .ace_marker-layer .ace_step {\nbackground: rgb(255, 255, 0)\n}\n.ace-jsoneditor .ace_marker-layer .ace_bracket {\nmargin: -1px 0 0 -1px;\nborder: 1px solid #BFBFBF\n}\n.ace-jsoneditor .ace_marker-layer .ace_active-line {\nbackground: #FFFBD1\n}\n.ace-jsoneditor .ace_gutter-active-line {\nbackground-color : #dcdcdc\n}\n.ace-jsoneditor .ace_marker-layer .ace_selected-word {\nborder: 1px solid lightgray\n}\n.ace-jsoneditor .ace_invisible {\ncolor: #BFBFBF\n}\n.ace-jsoneditor .ace_keyword,\n.ace-jsoneditor .ace_meta,\n.ace-jsoneditor .ace_support.ace_constant.ace_property-value {\ncolor: #AF956F\n}\n.ace-jsoneditor .ace_keyword.ace_operator {\ncolor: #484848\n}\n.ace-jsoneditor .ace_keyword.ace_other.ace_unit {\ncolor: #96DC5F\n}\n.ace-jsoneditor .ace_constant.ace_language {\ncolor: darkorange\n}\n.ace-jsoneditor .ace_constant.ace_numeric {\ncolor: red\n}\n.ace-jsoneditor .ace_constant.ace_character.ace_entity {\ncolor: #BF78CC\n}\n.ace-jsoneditor .ace_invalid {\ncolor: #FFFFFF;\nbackground-color: #FF002A;\n}\n.ace-jsoneditor .ace_fold {\nbackground-color: #AF956F;\nborder-color: #000000\n}\n.ace-jsoneditor .ace_storage,\n.ace-jsoneditor .ace_support.ace_class,\n.ace-jsoneditor .ace_support.ace_function,\n.ace-jsoneditor .ace_support.ace_other,\n.ace-jsoneditor .ace_support.ace_type {\ncolor: #C52727\n}\n.ace-jsoneditor .ace_string {\ncolor: green\n}\n.ace-jsoneditor .ace_comment {\ncolor: #BCC8BA\n}\n.ace-jsoneditor .ace_entity.ace_name.ace_tag,\n.ace-jsoneditor .ace_entity.ace_other.ace_attribute-name {\ncolor: #606060\n}\n.ace-jsoneditor .ace_markup.ace_underline {\ntext-decoration: underline\n}\n.ace-jsoneditor .ace_indent-guide {\nbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y\n}',t("../lib/dom").importCssString(e.cssText,e.cssClass)}))},function(t,e,n){e.tryRequireAjv=function(){try{return n(44)}catch(t){}}},function(t,e,n){"use strict";function i(t){if(!(this instanceof i))return new i(t);t=this._opts=b.copy(t)||{},function(t){var e=t._opts.logger;if(!1===e)t.logger={log:u,warn:u,error:u};else{if(void 0===e&&(e=console),!("object"==typeof e&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}(this),this._schemas={},this._refs={},this._fragments={},this._formats=m(t.format),this._cache=t.cache||new p,this._loadingSchemas={},this._compilations=[],this.RULES=v(),this._getId=function(t){switch(t.schemaId){case"auto":return l;case"id":return a;default:return s}}(t),t.loopRequired=t.loopRequired||1/0,"property"==t.errorDataPath&&(t._errorDataPathProperty=!0),void 0===t.serialize&&(t.serialize=g),this._metaOpts=function(t){for(var e=b.copy(t._opts),n=0;n<C.length;n++)delete e[C[n]];return e}(this),t.formats&&function(t){for(var e in t._opts.formats){var n=t._opts.formats[e];t.addFormat(e,n)}}(this),t.keywords&&function(t){for(var e in t._opts.keywords){var n=t._opts.keywords[e];t.addKeyword(e,n)}}(this),function(t){var e;if(t._opts.$data&&(e=n(77),t.addMetaSchema(e,e.$id,!0)),!1!==t._opts.meta){var i=n(32);t._opts.$data&&(i=y(i,A)),t.addMetaSchema(i,_,!0),t._refs["http://json-schema.org/schema"]=_}}(this),"object"==typeof t.meta&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),function(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var n in e)t.addSchema(e[n],n)}(this)}function r(t,e){return e=d.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function o(t,e,n){for(var i in e){var r=e[i];r.meta||n&&!n.test(i)||(t._cache.del(r.cacheKey),delete e[i])}}function a(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function s(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function l(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function c(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function u(){}var h=n(45),d=n(17),p=n(49),f=n(25),g=n(26),m=n(50),v=n(51),y=n(72),b=n(7);(t.exports=i).prototype.validate=function(t,e){var n;if("string"==typeof t){if(!(n=this.getSchema(t)))throw new Error('no schema with key or ref "'+t+'"')}else{var i=this._addSchema(t);n=i.validate||this._compile(i)}var r=n(e);return!0!==n.$async&&(this.errors=n.errors),r},i.prototype.compile=function(t,e){var n=this._addSchema(t,void 0,e);return n.validate||this._compile(n)},i.prototype.addSchema=function(t,e,n,i){if(Array.isArray(t)){for(var r=0;r<t.length;r++)this.addSchema(t[r],void 0,n,i);return this}var o=this._getId(t);if(void 0!==o&&"string"!=typeof o)throw new Error("schema id must be string");return c(this,e=d.normalizeId(e||o)),this._schemas[e]=this._addSchema(t,n,i,!0),this},i.prototype.addMetaSchema=function(t,e,n){return this.addSchema(t,e,n,!0),this},i.prototype.validateSchema=function(t,e){var n=t.$schema;if(void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(!(n=n||this._opts.defaultMeta||function(t){var e=t._opts.meta;return t._opts.defaultMeta="object"==typeof e?t._getId(e)||e:t.getSchema(_)?_:void 0,t._opts.defaultMeta}(this)))return this.logger.warn("meta-schema not available"),!(this.errors=null);var i=this.validate(n,t);if(!i&&e){var r="schema is invalid: "+this.errorsText();if("log"!=this._opts.validateSchema)throw new Error(r);this.logger.error(r)}return i},i.prototype.getSchema=function(t){var e=r(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return function(t,e){var n=d.schema.call(t,{schema:{}},e);if(n){var i=n.schema,r=n.root,o=n.baseId,a=h.call(t,i,r,void 0,o);return t._fragments[e]=new f({ref:e,fragment:!0,schema:i,root:r,baseId:o,validate:a}),a}}(this,t)}},i.prototype.removeSchema=function(t){if(t instanceof RegExp)return o(this,this._schemas,t),o(this,this._refs,t),this;switch(typeof t){case"undefined":return o(this,this._schemas),o(this,this._refs),this._cache.clear(),this;case"string":var e=r(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var n=this._opts.serialize,i=n?n(t):t;this._cache.del(i);var a=this._getId(t);a&&(a=d.normalizeId(a),delete this._schemas[a],delete this._refs[a])}return this},i.prototype.addFormat=function(t,e){return"string"==typeof e&&(e=new RegExp(e)),this._formats[t]=e,this},i.prototype.errorsText=function(t,e){if(!(t=t||this.errors))return"No errors";for(var n=void 0===(e=e||{}).separator?", ":e.separator,i=void 0===e.dataVar?"data":e.dataVar,r="",o=0;o<t.length;o++){var a=t[o];a&&(r+=i+a.dataPath+" "+a.message+n)}return r.slice(0,-n.length)},i.prototype._addSchema=function(t,e,n,i){if("object"!=typeof t&&"boolean"!=typeof t)throw new Error("schema should be object or boolean");var r=this._opts.serialize,o=r?r(t):t,a=this._cache.get(o);if(a)return a;i=i||!1!==this._opts.addUsedSchema;var s=d.normalizeId(this._getId(t));s&&i&&c(this,s);var l,u=!1!==this._opts.validateSchema&&!e;u&&!(l=s&&s==d.normalizeId(t.$schema))&&this.validateSchema(t,!0);var h=d.ids.call(this,t),p=new f({id:s,schema:t,localRefs:h,cacheKey:o,meta:n});return"#"!=s[0]&&i&&(this._refs[s]=p),this._cache.put(o,p),u&&l&&this.validateSchema(t,!0),p},i.prototype._compile=function(t,e){function n(){var e=t.validate,i=e.apply(this,arguments);return n.errors=e.errors,i}if(t.compiling)return(t.validate=n).schema=t.schema,n.errors=null,n.root=e||n,!0===t.schema.$async&&(n.$async=!0),n;var i,r;t.compiling=!0,t.meta&&(i=this._opts,this._opts=this._metaOpts);try{r=h.call(this,t.schema,e,t.localRefs)}catch(e){throw delete t.validate,e}finally{t.compiling=!1,t.meta&&(this._opts=i)}return t.validate=r,t.refs=r.refs,t.refVal=r.refVal,t.root=r.root,r},i.prototype.compileAsync=n(73);var x=n(74);i.prototype.addKeyword=x.add,i.prototype.getKeyword=x.get,i.prototype.removeKeyword=x.remove,i.prototype.validateKeyword=x.validate;var w=n(19);i.ValidationError=w.Validation,i.MissingRefError=w.MissingRef,i.$dataMetaSchema=y;var _="http://json-schema.org/draft-07/schema",C=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],A=["/properties"]},function(t,e,n){"use strict";function i(t,e,n){var i=o.call(this,t,e,n);return 0<=i?{index:i,compiling:!0}:{index:i=this._compilations.length,compiling:!(this._compilations[i]={schema:t,root:e,baseId:n})}}function r(t,e,n){var i=o.call(this,t,e,n);0<=i&&this._compilations.splice(i,1)}function o(t,e,n){for(var i=0;i<this._compilations.length;i++){var r=this._compilations[i];if(r.schema==t&&r.root==e&&r.baseId==n)return i}return-1}function a(t,e){return"var pattern"+t+" = new RegExp("+d.toQuotedString(e[t])+");"}function s(t){return"var default"+t+" = defaults["+t+"];"}function l(t,e){return void 0===e[t]?"":"var refVal"+t+" = refVal["+t+"];"}function c(t){return"var customRule"+t+" = customRules["+t+"];"}function u(t,e){if(!t.length)return"";for(var n="",i=0;i<t.length;i++)n+=e(i,t);return n}var h=n(17),d=n(7),p=n(19),f=n(26),g=n(27),m=d.ucs2length,v=n(18),y=p.Validation;t.exports=function t(e,n,o,b){function x(){var t=z.validate,e=t.apply(this,arguments);return x.errors=t.errors,e}function w(e,i,r,o){var f=!i||i&&i.schema==e;if(i.schema!=n.schema)return t.call(T,e,i,r,o);var b,x=!0===e.$async,w=g({isTop:!0,schema:e,isRoot:f,baseId:o,root:i,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:p.MissingRef,RULES:G,validate:g,util:d,resolve:h,resolveRef:_,usePattern:M,useDefault:k,useCustomRule:E,opts:O,formats:V,logger:T.logger,self:T});w=u(P,l)+u(L,a)+u(R,s)+u(N,c)+w,O.processCode&&(w=O.processCode(w));try{b=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",w)(T,G,V,n,P,R,N,v,m,y),P[0]=b}catch(e){throw T.logger.error("Error compiling schema, function code:",w),e}return b.schema=e,b.errors=null,b.refs=j,b.refVal=P,b.root=f?b:i,x&&(b.$async=!0),!0===O.sourceCode&&(b.source={code:w,patterns:L,defaults:R}),b}function _(e,i,r){i=h.url(e,i);var a,s,l=j[i];if(void 0!==l)return S(a=P[l],s="refVal["+l+"]");if(!r&&n.refs){var c=n.refs[i];if(void 0!==c)return a=n.refVal[c],s=C(i,a),S(a,s)}s=C(i);var u=h.call(T,w,n,i);if(void 0===u){var d=o&&o[i];d&&(u=h.inlineRef(d,O.inlineRefs)?d:t.call(T,d,n,o,e))}if(void 0!==u)return I(i,u),S(u,s);A(i)}function C(t,e){var n=P.length;return P[n]=e,"refVal"+(j[t]=n)}function A(t){delete j[t]}function I(t,e){var n=j[t];P[n]=e}function S(t,e){return"object"==typeof t||"boolean"==typeof t?{code:e,schema:t,inline:!0}:{code:e,$async:t&&!!t.$async}}function M(t){var e=D[t];return void 0===e&&(e=D[t]=L.length,L[e]=t),"pattern"+e}function k(t){switch(typeof t){case"boolean":case"number":return""+t;case"string":return d.toQuotedString(t);case"object":if(null===t)return"null";var e=f(t),n=B[e];return void 0===n&&(n=B[e]=R.length,R[n]=t),"default"+n}}function E(t,e,n,i){if(!1!==T._opts.validateSchema){var r=t.definition.dependencies;if(r&&!r.every((function(t){return Object.prototype.hasOwnProperty.call(n,t)})))throw new Error("parent schema must have all required keywords: "+r.join(","));var o=t.definition.validateSchema;if(o&&!o(e)){var a="keyword schema is invalid: "+T.errorsText(o.errors);if("log"!=T._opts.validateSchema)throw new Error(a);T.logger.error(a)}}var s,l=t.definition.compile,c=t.definition.inline,u=t.definition.macro;if(l)s=l.call(T,e,n,i);else if(u)s=u.call(T,e,n,i),!1!==O.validateSchema&&T.validateSchema(s,!0);else if(c)s=c.call(T,i,t.keyword,e,n);else if(!(s=t.definition.validate))return;if(void 0===s)throw new Error('custom keyword "'+t.keyword+'"failed to compile');var h=N.length;return N[h]=s,{code:"customRule"+h,validate:s}}var T=this,O=this._opts,P=[void 0],j={},L=[],D={},R=[],B={},N=[];n=n||{schema:e,refVal:P,refs:j};var F=i.call(this,e,n,b),z=this._compilations[F.index];if(F.compiling)return z.callValidate=x;var V=this._formats,G=this.RULES;try{var H=w(e,n,o,b);z.validate=H;var W=z.callValidate;return W&&(W.schema=H.schema,W.errors=null,W.refs=H.refs,W.refVal=H.refVal,W.root=H.root,W.$async=H.$async,O.sourceCode&&(W.source=H.source)),H}finally{r.call(this,e,n,b)}}},function(t,e,n){/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
!function(t){"use strict";function e(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length>1){e[0]=e[0].slice(0,-1);for(var i=e.length-1,r=1;r<i;++r)e[r]=e[r].slice(1,-1);return e[i]=e[i].slice(1),e.join("")}return e[0]}function n(t){return"(?:"+t+")"}function i(t){return void 0===t?"undefined":null===t?"null":Object.prototype.toString.call(t).split(" ").pop().split("]").shift().toLowerCase()}function r(t){return t.toUpperCase()}function o(t){return void 0!==t&&null!==t?t instanceof Array?t:"number"!=typeof t.length||t.split||t.setInterval||t.call?[t]:Array.prototype.slice.call(t):[]}function a(t,e){var n=t;if(e)for(var i in e)n[i]=e[i];return n}function s(t){var i="[A-Za-z]",r="[0-9]",o=e(r,"[A-Fa-f]"),a=n(n("%[EFef]"+o+"%"+o+o+"%"+o+o)+"|"+n("%[89A-Fa-f]"+o+"%"+o+o)+"|"+n("%"+o+o)),s="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",l=e("[\\:\\/\\?\\#\\[\\]\\@]",s),c=t?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",u=t?"[\\uE000-\\uF8FF]":"[]",h=e(i,r,"[\\-\\.\\_\\~]",c),d=n(i+e(i,r,"[\\+\\-\\.]")+"*"),p=n(n(a+"|"+e(h,s,"[\\:]"))+"*"),f=(n(n("25[0-5]")+"|"+n("2[0-4]"+r)+"|"+n("1"+r+r)+"|"+n("[1-9]"+r)+"|"+r),n(n("25[0-5]")+"|"+n("2[0-4]"+r)+"|"+n("1"+r+r)+"|"+n("0?[1-9]"+r)+"|0?0?"+r)),g=n(f+"\\."+f+"\\."+f+"\\."+f),m=n(o+"{1,4}"),v=n(n(m+"\\:"+m)+"|"+g),y=n(n(m+"\\:")+"{6}"+v),b=n("\\:\\:"+n(m+"\\:")+"{5}"+v),x=n(n(m)+"?\\:\\:"+n(m+"\\:")+"{4}"+v),w=n(n(n(m+"\\:")+"{0,1}"+m)+"?\\:\\:"+n(m+"\\:")+"{3}"+v),_=n(n(n(m+"\\:")+"{0,2}"+m)+"?\\:\\:"+n(m+"\\:")+"{2}"+v),C=n(n(n(m+"\\:")+"{0,3}"+m)+"?\\:\\:"+m+"\\:"+v),A=n(n(n(m+"\\:")+"{0,4}"+m)+"?\\:\\:"+v),I=n(n(n(m+"\\:")+"{0,5}"+m)+"?\\:\\:"+m),S=n(n(n(m+"\\:")+"{0,6}"+m)+"?\\:\\:"),M=n([y,b,x,w,_,C,A,I,S].join("|")),k=n(n(h+"|"+a)+"+"),E=(n(M+"\\%25"+k),n(M+n("\\%25|\\%(?!"+o+"{2})")+k)),T=n("[vV]"+o+"+\\."+e(h,s,"[\\:]")+"+"),O=n("\\["+n(E+"|"+M+"|"+T)+"\\]"),P=n(n(a+"|"+e(h,s))+"*"),j=n(O+"|"+g+"(?!"+P+")|"+P),L=n(r+"*"),D=n(n(p+"@")+"?"+j+n("\\:"+L)+"?"),R=n(a+"|"+e(h,s,"[\\:\\@]")),B=n(R+"*"),N=n(R+"+"),F=n(n(a+"|"+e(h,s,"[\\@]"))+"+"),z=n(n("\\/"+B)+"*"),V=n("\\/"+n(N+z)+"?"),G=n(F+z),H=n(N+z),W="(?!"+R+")",U=(n(z+"|"+V+"|"+G+"|"+H+"|"+W),n(n(R+"|"+e("[\\/\\?]",u))+"*")),Z=n(n(R+"|[\\/\\?]")+"*"),Y=n(n("\\/\\/"+D+z)+"|"+V+"|"+H+"|"+W),X=n(d+"\\:"+Y+n("\\?"+U)+"?"+n("\\#"+Z)+"?"),q=n(n("\\/\\/"+D+z)+"|"+V+"|"+G+"|"+W),K=n(q+n("\\?"+U)+"?"+n("\\#"+Z)+"?");return n(X+"|"+K),n(d+"\\:"+Y+n("\\?"+U)+"?"),n(n("\\/\\/("+n("("+p+")@")+"?("+j+")"+n("\\:("+L+")")+"?)")+"?("+z+"|"+V+"|"+H+"|"+W+")"),n("\\?("+U+")"),n("\\#("+Z+")"),n(n("\\/\\/("+n("("+p+")@")+"?("+j+")"+n("\\:("+L+")")+"?)")+"?("+z+"|"+V+"|"+G+"|"+W+")"),n("\\?("+U+")"),n("\\#("+Z+")"),n(n("\\/\\/("+n("("+p+")@")+"?("+j+")"+n("\\:("+L+")")+"?)")+"?("+z+"|"+V+"|"+H+"|"+W+")"),n("\\?("+U+")"),n("\\#("+Z+")"),n("("+p+")@"),n("\\:("+L+")"),{NOT_SCHEME:new RegExp(e("[^]",i,r,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",h,s),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",h,s),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",h,s),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",h,s),"g"),NOT_QUERY:new RegExp(e("[^\\%]",h,s,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",h,s,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",h,s),"g"),UNRESERVED:new RegExp(h,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",h,l),"g"),PCT_ENCODED:new RegExp(a,"g"),IPV4ADDRESS:new RegExp("^("+g+")$"),IPV6ADDRESS:new RegExp("^\\[?("+M+")"+n(n("\\%25|\\%(?!"+o+"{2})")+"("+k+")")+"?\\]?$")}}function l(t){throw new RangeError(N[t])}function c(t,e){for(var n=[],i=t.length;i--;)n[i]=e(t[i]);return n}function u(t,e){var n=t.split("@"),i="";return n.length>1&&(i=n[0]+"@",t=n[1]),t=t.replace(B,"."),i+c(t.split("."),e).join(".")}function h(t){for(var e=[],n=0,i=t.length;n<i;){var r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&r)<<10)+(1023&o)+65536):(e.push(r),n--)}else e.push(r)}return e}function d(t){var e=t.charCodeAt(0);return e<16?"%0"+e.toString(16).toUpperCase():e<128?"%"+e.toString(16).toUpperCase():e<2048?"%"+(e>>6|192).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase():"%"+(e>>12|224).toString(16).toUpperCase()+"%"+(e>>6&63|128).toString(16).toUpperCase()+"%"+(63&e|128).toString(16).toUpperCase()}function p(t){for(var e="",n=0,i=t.length;n<i;){var r=parseInt(t.substr(n+1,2),16);if(r<128)e+=String.fromCharCode(r),n+=3;else if(r>=194&&r<224){if(i-n>=6){var o=parseInt(t.substr(n+4,2),16);e+=String.fromCharCode((31&r)<<6|63&o)}else e+=t.substr(n,6);n+=6}else if(r>=224){if(i-n>=9){var a=parseInt(t.substr(n+4,2),16),s=parseInt(t.substr(n+7,2),16);e+=String.fromCharCode((15&r)<<12|(63&a)<<6|63&s)}else e+=t.substr(n,9);n+=9}else e+=t.substr(n,3),n+=3}return e}function f(t,e){function n(t){var n=p(t);return n.match(e.UNRESERVED)?n:t}return t.scheme&&(t.scheme=String(t.scheme).replace(e.PCT_ENCODED,n).toLowerCase().replace(e.NOT_SCHEME,"")),void 0!==t.userinfo&&(t.userinfo=String(t.userinfo).replace(e.PCT_ENCODED,n).replace(e.NOT_USERINFO,d).replace(e.PCT_ENCODED,r)),void 0!==t.host&&(t.host=String(t.host).replace(e.PCT_ENCODED,n).toLowerCase().replace(e.NOT_HOST,d).replace(e.PCT_ENCODED,r)),void 0!==t.path&&(t.path=String(t.path).replace(e.PCT_ENCODED,n).replace(t.scheme?e.NOT_PATH:e.NOT_PATH_NOSCHEME,d).replace(e.PCT_ENCODED,r)),void 0!==t.query&&(t.query=String(t.query).replace(e.PCT_ENCODED,n).replace(e.NOT_QUERY,d).replace(e.PCT_ENCODED,r)),void 0!==t.fragment&&(t.fragment=String(t.fragment).replace(e.PCT_ENCODED,n).replace(e.NOT_FRAGMENT,d).replace(e.PCT_ENCODED,r)),t}function g(t){return t.replace(/^0*(.*)/,"$1")||"0"}function m(t,e){var n=t.match(e.IPV4ADDRESS)||[],i=O(n,2),r=i[1];return r?r.split(".").map(g).join("."):t}function v(t,e){var n=t.match(e.IPV6ADDRESS)||[],i=O(n,3),r=i[1],o=i[2];if(r){for(var a=r.toLowerCase().split("::").reverse(),s=O(a,2),l=s[0],c=s[1],u=c?c.split(":").map(g):[],h=l.split(":").map(g),d=e.IPV4ADDRESS.test(h[h.length-1]),p=d?7:8,f=h.length-p,v=Array(p),y=0;y<p;++y)v[y]=u[y]||h[f+y]||"";d&&(v[p-1]=m(v[p-1],e));var b=v.reduce((function(t,e,n){if(!e||"0"===e){var i=t[t.length-1];i&&i.index+i.length===n?i.length++:t.push({index:n,length:1})}return t}),[]),x=b.sort((function(t,e){return e.length-t.length}))[0],w=void 0;if(x&&x.length>1){var _=v.slice(0,x.index),C=v.slice(x.index+x.length);w=_.join(":")+"::"+C.join(":")}else w=v.join(":");return o&&(w+="%"+o),w}return t}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},i=!1!==e.iri?T:E;"suffix"===e.reference&&(t=(e.scheme?e.scheme+":":"")+"//"+t);var r=t.match(X);if(r){q?(n.scheme=r[1],n.userinfo=r[3],n.host=r[4],n.port=parseInt(r[5],10),n.path=r[6]||"",n.query=r[7],n.fragment=r[8],isNaN(n.port)&&(n.port=r[5])):(n.scheme=r[1]||void 0,n.userinfo=-1!==t.indexOf("@")?r[3]:void 0,n.host=-1!==t.indexOf("//")?r[4]:void 0,n.port=parseInt(r[5],10),n.path=r[6]||"",n.query=-1!==t.indexOf("?")?r[7]:void 0,n.fragment=-1!==t.indexOf("#")?r[8]:void 0,isNaN(n.port)&&(n.port=t.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?r[4]:void 0)),n.host&&(n.host=v(m(n.host,i),i)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",e.reference&&"suffix"!==e.reference&&e.reference!==n.reference&&(n.error=n.error||"URI is not a "+e.reference+" reference.");var o=Y[(e.scheme||n.scheme||"").toLowerCase()];if(e.unicodeSupport||o&&o.unicodeSupport)f(n,i);else{if(n.host&&(e.domainHost||o&&o.domainHost))try{n.host=Z.toASCII(n.host.replace(i.PCT_ENCODED,p).toLowerCase())}catch(t){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+t}f(n,E)}o&&o.parse&&o.parse(n,e)}else n.error=n.error||"URI can not be parsed.";return n}function b(t,e){var n=!1!==e.iri?T:E,i=[];return void 0!==t.userinfo&&(i.push(t.userinfo),i.push("@")),void 0!==t.host&&i.push(v(m(String(t.host),n),n).replace(n.IPV6ADDRESS,(function(t,e,n){return"["+e+(n?"%25"+n:"")+"]"}))),"number"==typeof t.port&&(i.push(":"),i.push(t.port.toString(10))),i.length?i.join(""):void 0}function x(t){for(var e=[];t.length;)if(t.match(K))t=t.replace(K,"");else if(t.match(Q))t=t.replace(Q,"/");else if(t.match(J))t=t.replace(J,"/"),e.pop();else if("."===t||".."===t)t="";else{var n=t.match($);if(!n)throw new Error("Unexpected dot segment condition");var i=n[0];t=t.slice(i.length),e.push(i)}return e.join("")}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.iri?T:E,i=[],r=Y[(e.scheme||t.scheme||"").toLowerCase()];if(r&&r.serialize&&r.serialize(t,e),t.host)if(n.IPV6ADDRESS.test(t.host));else if(e.domainHost||r&&r.domainHost)try{t.host=e.iri?Z.toUnicode(t.host):Z.toASCII(t.host.replace(n.PCT_ENCODED,p).toLowerCase())}catch(n){t.error=t.error||"Host's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+n}f(t,n),"suffix"!==e.reference&&t.scheme&&(i.push(t.scheme),i.push(":"));var o=b(t,e);if(void 0!==o&&("suffix"!==e.reference&&i.push("//"),i.push(o),t.path&&"/"!==t.path.charAt(0)&&i.push("/")),void 0!==t.path){var a=t.path;e.absolutePath||r&&r.absolutePath||(a=x(a)),void 0===o&&(a=a.replace(/^\/\//,"/%2F")),i.push(a)}return void 0!==t.query&&(i.push("?"),i.push(t.query)),void 0!==t.fragment&&(i.push("#"),i.push(t.fragment)),i.join("")}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],r={};return i||(t=y(w(t,n),n),e=y(w(e,n),n)),n=n||{},!n.tolerant&&e.scheme?(r.scheme=e.scheme,r.userinfo=e.userinfo,r.host=e.host,r.port=e.port,r.path=x(e.path||""),r.query=e.query):(void 0!==e.userinfo||void 0!==e.host||void 0!==e.port?(r.userinfo=e.userinfo,r.host=e.host,r.port=e.port,r.path=x(e.path||""),r.query=e.query):(e.path?("/"===e.path.charAt(0)?r.path=x(e.path):(void 0===t.userinfo&&void 0===t.host&&void 0===t.port||t.path?t.path?r.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:r.path=e.path:r.path="/"+e.path,r.path=x(r.path)),r.query=e.query):(r.path=t.path,void 0!==e.query?r.query=e.query:r.query=t.query),r.userinfo=t.userinfo,r.host=t.host,r.port=t.port),r.scheme=t.scheme),r.fragment=e.fragment,r}function C(t,e,n){var i=a({scheme:"null"},n);return w(_(y(t,i),y(e,i),i,!0),i)}function A(t,e){return"string"==typeof t?t=w(y(t,e),e):"object"===i(t)&&(t=y(w(t,e),e)),t}function I(t,e,n){return"string"==typeof t?t=w(y(t,n),n):"object"===i(t)&&(t=w(t,n)),"string"==typeof e?e=w(y(e,n),n):"object"===i(e)&&(e=w(e,n)),t===e}function S(t,e){return t&&t.toString().replace(e&&e.iri?T.ESCAPE:E.ESCAPE,d)}function M(t,e){return t&&t.toString().replace(e&&e.iri?T.PCT_ENCODED:E.PCT_ENCODED,p)}function k(t){var e=p(t);return e.match(st)?e:t}var E=s(!1),T=s(!0),O=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},j=2147483647,L=36,D=/^xn--/,R=/[^\0-\x7E]/,B=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=Math.floor,z=String.fromCharCode,V=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:L},G=function(t,e){return t+22+75*(t<26)-((0!=e)<<5)},H=function(t,e,n){var i=0;for(t=n?F(t/700):t>>1,t+=F(t/e);t>455;i+=L)t=F(t/35);return F(i+36*t/(t+38))},W=function(t){var e=[],n=t.length,i=0,r=128,o=72,a=t.lastIndexOf("-");a<0&&(a=0);for(var s=0;s<a;++s)t.charCodeAt(s)>=128&&l("not-basic"),e.push(t.charCodeAt(s));for(var c=a>0?a+1:0;c<n;){for(var u=i,h=1,d=L;;d+=L){c>=n&&l("invalid-input");var p=V(t.charCodeAt(c++));(p>=L||p>F((j-i)/h))&&l("overflow"),i+=p*h;var f=d<=o?1:d>=o+26?26:d-o;if(p<f)break;var g=L-f;h>F(j/g)&&l("overflow"),h*=g}var m=e.length+1;o=H(i-u,m,0==u),F(i/m)>j-r&&l("overflow"),r+=F(i/m),i%=m,e.splice(i++,0,r)}return String.fromCodePoint.apply(String,e)},U=function(t){var e=[];t=h(t);var n=t.length,i=128,r=0,o=72,a=!0,s=!1,c=void 0;try{for(var u,d=t[Symbol.iterator]();!(a=(u=d.next()).done);a=!0){var p=u.value;p<128&&e.push(z(p))}}catch(t){s=!0,c=t}finally{try{!a&&d.return&&d.return()}finally{if(s)throw c}}var f=e.length,g=f;for(f&&e.push("-");g<n;){var m=j,v=!0,y=!1,b=void 0;try{for(var x,w=t[Symbol.iterator]();!(v=(x=w.next()).done);v=!0){var _=x.value;_>=i&&_<m&&(m=_)}}catch(t){y=!0,b=t}finally{try{!v&&w.return&&w.return()}finally{if(y)throw b}}var C=g+1;m-i>F((j-r)/C)&&l("overflow"),r+=(m-i)*C,i=m;var A=!0,I=!1,S=void 0;try{for(var M,k=t[Symbol.iterator]();!(A=(M=k.next()).done);A=!0){var E=M.value;if(E<i&&++r>j&&l("overflow"),E==i){for(var T=r,O=L;;O+=L){var P=O<=o?1:O>=o+26?26:O-o;if(T<P)break;var D=T-P,R=L-P;e.push(z(G(P+D%R,0))),T=F(D/R)}e.push(z(G(T,0))),o=H(r,C,g==f),r=0,++g}}}catch(t){I=!0,S=t}finally{try{!A&&k.return&&k.return()}finally{if(I)throw S}}++r,++i}return e.join("")},Z={version:"2.1.0",ucs2:{decode:h,encode:function(t){return String.fromCodePoint.apply(String,P(t))}},decode:W,encode:U,toASCII:function(t){return u(t,(function(t){return R.test(t)?"xn--"+U(t):t}))},toUnicode:function(t){return u(t,(function(t){return D.test(t)?W(t.slice(4).toLowerCase()):t}))}},Y={},X=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,q=void 0==="".match(/(){0}/)[1],K=/^\.\.?\//,Q=/^\/\.(\/|$)/,J=/^\/\.\.(\/|$)/,$=/^\/?(?:.|\n)*?(?=\/|$)/,tt={scheme:"http",domainHost:!0,parse:function(t,e){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t},serialize:function(t,e){return t.port!==("https"!==String(t.scheme).toLowerCase()?80:443)&&""!==t.port||(t.port=void 0),t.path||(t.path="/"),t}},et={scheme:"https",domainHost:tt.domainHost,parse:tt.parse,serialize:tt.serialize},nt={},it="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",rt="[0-9A-Fa-f]",ot=n(n("%[EFef]"+rt+"%"+rt+rt+"%"+rt+rt)+"|"+n("%[89A-Fa-f]"+rt+"%"+rt+rt)+"|"+n("%"+rt+rt)),at=e("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),st=new RegExp(it,"g"),lt=new RegExp(ot,"g"),ct=new RegExp(e("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',at),"g"),ut=new RegExp(e("[^]",it,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),ht=ut,dt={scheme:"mailto",parse:function(t,e){var n=t,i=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var r=!1,o={},a=n.query.split("&"),s=0,l=a.length;s<l;++s){var c=a[s].split("=");switch(c[0]){case"to":for(var u=c[1].split(","),h=0,d=u.length;h<d;++h)i.push(u[h]);break;case"subject":n.subject=M(c[1],e);break;case"body":n.body=M(c[1],e);break;default:r=!0,o[M(c[0],e)]=M(c[1],e)}}r&&(n.headers=o)}n.query=void 0;for(var p=0,f=i.length;p<f;++p){var g=i[p].split("@");if(g[0]=M(g[0]),e.unicodeSupport)g[1]=M(g[1],e).toLowerCase();else try{g[1]=Z.toASCII(M(g[1],e).toLowerCase())}catch(t){n.error=n.error||"Email address's domain name can not be converted to ASCII via punycode: "+t}i[p]=g.join("@")}return n},serialize:function(t,e){var n=t,i=o(t.to);if(i){for(var a=0,s=i.length;a<s;++a){var l=String(i[a]),c=l.lastIndexOf("@"),u=l.slice(0,c).replace(lt,k).replace(lt,r).replace(ct,d),h=l.slice(c+1);try{h=e.iri?Z.toUnicode(h):Z.toASCII(M(h,e).toLowerCase())}catch(t){n.error=n.error||"Email address's domain name can not be converted to "+(e.iri?"Unicode":"ASCII")+" via punycode: "+t}i[a]=u+"@"+h}n.path=i.join(",")}var p=t.headers=t.headers||{};t.subject&&(p.subject=t.subject),t.body&&(p.body=t.body);var f=[];for(var g in p)p[g]!==nt[g]&&f.push(g.replace(lt,k).replace(lt,r).replace(ut,d)+"="+p[g].replace(lt,k).replace(lt,r).replace(ht,d));return f.length&&(n.query=f.join("&")),n}},pt=/^([^\:]+)\:(.*)/,ft={scheme:"urn",parse:function(t,e){var n=t.path&&t.path.match(pt),i=t;if(n){var r=e.scheme||i.scheme||"urn",o=n[1].toLowerCase(),a=n[2],s=r+":"+(e.nid||o),l=Y[s];i.nid=o,i.nss=a,i.path=void 0,l&&(i=l.parse(i,e))}else i.error=i.error||"URN can not be parsed.";return i},serialize:function(t,e){var n=e.scheme||t.scheme||"urn",i=t.nid,r=n+":"+(e.nid||i),o=Y[r];o&&(t=o.serialize(t,e));var a=t,s=t.nss;return a.path=(i||e.nid)+":"+s,a}},gt=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,mt={scheme:"urn:uuid",parse:function(t,e){var n=t;return n.uuid=n.nss,n.nss=void 0,e.tolerant||n.uuid&&n.uuid.match(gt)||(n.error=n.error||"UUID is not valid."),n},serialize:function(t,e){var n=t;return n.nss=(t.uuid||"").toLowerCase(),n}};Y[tt.scheme]=tt,Y[et.scheme]=et,Y[dt.scheme]=dt,Y[ft.scheme]=ft,Y[mt.scheme]=mt,t.SCHEMES=Y,t.pctEncChar=d,t.pctDecChars=p,t.parse=y,t.removeDotSegments=x,t.serialize=w,t.resolveComponents=_,t.resolve=C,t.normalize=A,t.equal=I,t.escapeComponent=S,t.unescapeComponent=M,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){"use strict";t.exports=function(t){for(var e,n=0,i=t.length,r=0;r<i;)n++,55296<=(e=t.charCodeAt(r++))&&e<=56319&&r<i&&56320==(64512&(e=t.charCodeAt(r)))&&r++;return n}},function(t,e,n){"use strict";var i=t.exports=function(t,e,n){"function"==typeof e&&(n=e,e={}),function t(e,n,r,o,a,s,l,c,u,h){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in n(o,a,s,l,c,u,h),o){var p=o[d];if(Array.isArray(p)){if(d in i.arrayKeywords)for(var f=0;f<p.length;f++)t(e,n,r,p[f],a+"/"+d+"/"+f,s,a,d,o,f)}else if(d in i.propsKeywords){if(p&&"object"==typeof p)for(var g in p)t(e,n,r,p[g],a+"/"+d+"/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),s,a,d,o,g)}else(d in i.keywords||e.allKeys&&!(d in i.skipKeywords))&&t(e,n,r,p,a+"/"+d,s,a,d,o)}r(o,a,s,l,c,u,h)}}(e,"function"==typeof(n=e.cb||n)?n:n.pre||function(){},n.post||function(){},t,"",t)};i.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},i.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},i.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},i.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},function(t,e,n){"use strict";var i=t.exports=function(){this._cache={}};i.prototype.put=function(t,e){this._cache[t]=e},i.prototype.get=function(t){return this._cache[t]},i.prototype.del=function(t){delete this._cache[t]},i.prototype.clear=function(){this._cache={}}},function(t,e,n){"use strict";function i(t){return t="full"==t?"full":"fast",s.copy(i[t])}function r(t){var e=t.match(l);if(!e)return!1;var n,i=+e[1],r=+e[2],o=+e[3];return 1<=r&&r<=12&&1<=o&&o<=(2!=r||(n=i)%4!=0||n%100==0&&n%400!=0?c[r]:29)}function o(t,e){var n=t.match(u);if(!n)return!1;var i=n[1],r=n[2],o=n[3],a=n[5];return(i<=23&&r<=59&&o<=59||23==i&&59==r&&60==o)&&(!e||a)}function a(t){if(w.test(t))return!1;try{return new RegExp(t),!0}catch(t){return!1}}var s=n(7),l=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,c=[0,31,28,31,30,31,30,31,31,30,31,30,31],u=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,h=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,p=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,f=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,g=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,m=/^(?:\/(?:[^~/]|~0|~1)*)*$/,v=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,y=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;(t.exports=i).fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":p,url:f,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:h,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:a,uuid:g,"json-pointer":m,"json-pointer-uri-fragment":v,"relative-json-pointer":y},i.full={date:r,time:o,"date-time":function(t){var e=t.split(b);return 2==e.length&&r(e[0])&&o(e[1],!0)},uri:function(t){return x.test(t)&&d.test(t)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":p,url:f,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:h,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:a,uuid:g,"json-pointer":m,"json-pointer-uri-fragment":v,"relative-json-pointer":y};var b=/t|\s/i,x=/\/|:/,w=/[^\\]\\Z/},function(t,e,n){"use strict";var i=n(52),r=n(7).toHash;t.exports=function(){var t=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],e=["type","$comment"];return t.all=r(e),t.types=r(["number","integer","string","array","object","boolean","null"]),t.forEach((function(n){n.rules=n.rules.map((function(n){var r;if("object"==typeof n){var o=Object.keys(n)[0];r=n[o],n=o,r.forEach((function(n){e.push(n),t.all[n]=!0}))}return e.push(n),t.all[n]={keyword:n,code:i[n],implements:r}})),t.all.$comment={keyword:"$comment",code:i.$comment},n.type&&(t.types[n.type]=n)})),t.keywords=r(e.concat(["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"])),t.custom={},t}},function(t,e,n){"use strict";t.exports={$ref:n(53),allOf:n(54),anyOf:n(55),$comment:n(56),const:n(57),contains:n(58),dependencies:n(59),enum:n(60),format:n(61),if:n(62),items:n(63),maximum:n(28),minimum:n(28),maxItems:n(29),minItems:n(29),maxLength:n(30),minLength:n(30),maxProperties:n(31),minProperties:n(31),multipleOf:n(64),not:n(65),oneOf:n(66),pattern:n(67),properties:n(68),propertyNames:n(69),required:n(70),uniqueItems:n(71),validate:n(27)}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i,r=" ",o=t.level,a=t.dataLevel,s=t.schema[e],l=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,u="data"+(a||""),h="valid"+o;if("#"==s||"#/"==s)i=t.isRoot?(n=t.async,"validate"):(n=!0===t.root.schema.$async,"root.refVal[0]");else{var d=t.resolveRef(t.baseId,s,t.isRoot);if(void 0===d){var p=t.MissingRefError.message(t.baseId,s);if("fail"==t.opts.missingRefs){t.logger.error(p),(v=v||[]).push(r),r="",!1!==t.createErrors?(r+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { ref: '"+t.util.escapeQuotes(s)+"' } ",!1!==t.opts.messages&&(r+=" , message: 'can\\'t resolve reference "+t.util.escapeQuotes(s)+"' "),t.opts.verbose&&(r+=" , schema: "+t.util.toQuotedString(s)+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),r+=" } "):r+=" {} ";var f=r;r=v.pop(),!t.compositeRule&&c?t.async?r+=" throw new ValidationError(["+f+"]); ":r+=" validate.errors = ["+f+"]; return false; ":r+=" var err = "+f+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(r+=" if (false) { ")}else{if("ignore"!=t.opts.missingRefs)throw new t.MissingRefError(t.baseId,s,p);t.logger.warn(p),c&&(r+=" if (true) { ")}}else if(d.inline){var g=t.util.copy(t);g.level++;var m="valid"+g.level;g.schema=d.schema,g.schemaPath="",g.errSchemaPath=s,r+=" "+t.validate(g).replace(/validate\.schema/g,d.code)+" ",c&&(r+=" if ("+m+") { ")}else n=!0===d.$async||t.async&&!1!==d.$async,i=d.code}if(i){var v;(v=v||[]).push(r),r="",t.opts.passContext?r+=" "+i+".call(this, ":r+=" "+i+"( ",r+=" "+u+", (dataPath || '')",'""'!=t.errorPath&&(r+=" + "+t.errorPath);var y=r+=" , "+(a?"data"+(a-1||""):"parentData")+" , "+(a?t.dataPathArr[a]:"parentDataProperty")+", rootData)  ";if(r=v.pop(),n){if(!t.async)throw new Error("async schema referenced by sync schema");c&&(r+=" var "+h+"; "),r+=" try { await "+y+"; ",c&&(r+=" "+h+" = true; "),r+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",c&&(r+=" "+h+" = false; "),r+=" } ",c&&(r+=" if ("+h+") { ")}else r+=" if (!"+y+") { if (vErrors === null) vErrors = "+i+".errors; else vErrors = vErrors.concat("+i+".errors); errors = vErrors.length; } ",c&&(r+=" else { ")}return r}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.schema[e],r=t.schemaPath+t.util.getProperty(e),o=t.errSchemaPath+"/"+e,a=!t.opts.allErrors,s=t.util.copy(t),l="";s.level++;var c="valid"+s.level,u=s.baseId,h=!0,d=i;if(d)for(var p,f=-1,g=d.length-1;f<g;)p=d[f+=1],(t.opts.strictKeywords?"object"==typeof p&&0<Object.keys(p).length:t.util.schemaHasRules(p,t.RULES.all))&&(h=!1,s.schema=p,s.schemaPath=r+"["+f+"]",s.errSchemaPath=o+"/"+f,n+="  "+t.validate(s)+" ",s.baseId=u,a&&(n+=" if ("+c+") { ",l+="}"));return a&&(n+=h?" if (true) { ":" "+l.slice(0,-1)+" "),t.util.cleanUpCode(n)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="valid"+i,h="errs__"+i,d=t.util.copy(t),p="";d.level++;var f="valid"+d.level;if(o.every((function(e){return t.opts.strictKeywords?"object"==typeof e&&0<Object.keys(e).length:t.util.schemaHasRules(e,t.RULES.all)}))){var g=d.baseId;n+=" var "+h+" = errors; var "+u+" = false;  ";var m=t.compositeRule;t.compositeRule=d.compositeRule=!0;var v=o;if(v)for(var y,b=-1,x=v.length-1;b<x;)y=v[b+=1],d.schema=y,d.schemaPath=a+"["+b+"]",d.errSchemaPath=s+"/"+b,n+="  "+t.validate(d)+" ",d.baseId=g,n+=" "+u+" = "+u+" || "+f+"; if (!"+u+") { ",p+="}";t.compositeRule=d.compositeRule=m,n+=" "+p+" if (!"+u+") {   var err =   ",!1!==t.createErrors?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: {} ",!1!==t.opts.messages&&(n+=" , message: 'should match some schema in anyOf' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&l&&(t.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else {  errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",t.opts.allErrors&&(n+=" } "),n=t.util.cleanUpCode(n)}else l&&(n+=" if (true) { ");return n}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.schema[e],r=t.errSchemaPath+"/"+e,o=(t.opts.allErrors,t.util.toQuotedString(i));return!0===t.opts.$comment?n+=" console.log("+o+");":"function"==typeof t.opts.$comment&&(n+=" self._opts.$comment("+o+", "+t.util.toQuotedString(r)+", validate.root.schema);"),n}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="valid"+i,h=t.opts.$data&&o&&o.$data;h&&(n+=" var schema"+i+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; "),h||(n+=" var schema"+i+" = validate.schema"+a+";"),n+="var "+u+" = equal("+c+", schema"+i+"); if (!"+u+") {   ";var d=d||[];d.push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { allowedValue: schema"+i+" } ",!1!==t.opts.messages&&(n+=" , message: 'should be equal to constant' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var p=n;return n=d.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+p+"]); ":n+=" validate.errors = ["+p+"]; return false; ":n+=" var err = "+p+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",l&&(n+=" else { "),n}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="valid"+i,h="errs__"+i,d=t.util.copy(t);d.level++;var p="valid"+d.level,f="i"+i,g=d.dataLevel=t.dataLevel+1,m="data"+g,v=t.baseId,y=t.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length:t.util.schemaHasRules(o,t.RULES.all);if(n+="var "+h+" = errors;var "+u+";",y){var b=t.compositeRule;t.compositeRule=d.compositeRule=!0,d.schema=o,d.schemaPath=a,d.errSchemaPath=s,n+=" var "+p+" = false; for (var "+f+" = 0; "+f+" < "+c+".length; "+f+"++) { ",d.errorPath=t.util.getPathExpr(t.errorPath,f,t.opts.jsonPointers,!0);var x=c+"["+f+"]";d.dataPathArr[g]=f;var w=t.validate(d);d.baseId=v,t.util.varOccurences(w,m)<2?n+=" "+t.util.varReplace(w,m,x)+" ":n+=" var "+m+" = "+x+"; "+w+" ",n+=" if ("+p+") break; }  ",t.compositeRule=d.compositeRule=b,n+="  if (!"+p+") {"}else n+=" if ("+c+".length == 0) {";var _=_||[];_.push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: {} ",!1!==t.opts.messages&&(n+=" , message: 'should contain a valid item' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var C=n;return n=_.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",y&&(n+="  errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } "),t.opts.allErrors&&(n+=" } "),t.util.cleanUpCode(n)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="errs__"+i,h=t.util.copy(t),d="";h.level++;var p="valid"+h.level,f={},g={},m=t.opts.ownProperties;for(x in o){var v=o[x],y=Array.isArray(v)?g:f;y[x]=v}n+="var "+u+" = errors;";var b=t.errorPath;for(var x in n+="var missing"+i+";",g)if((y=g[x]).length){if(n+=" if ( "+c+t.util.getProperty(x)+" !== undefined ",m&&(n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(x)+"') "),l){n+=" && ( ";var w=y;if(w)for(var _=-1,C=w.length-1;_<C;)E=w[_+=1],_&&(n+=" || "),n+=" ( ( "+(j=c+(P=t.util.getProperty(E)))+" === undefined ",m&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(E)+"') "),n+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?E:P)+") ) ";n+=")) {  ";var A="missing"+i,I="' + "+A+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(b,A,!0):b+" + "+A);var S=S||[];S.push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { property: '"+t.util.escapeQuotes(x)+"', missingProperty: '"+I+"', depsCount: "+y.length+", deps: '"+t.util.escapeQuotes(1==y.length?y[0]:y.join(", "))+"' } ",!1!==t.opts.messages&&(n+=" , message: 'should have ",1==y.length?n+="property "+t.util.escapeQuotes(y[0]):n+="properties "+t.util.escapeQuotes(y.join(", ")),n+=" when property "+t.util.escapeQuotes(x)+" is present' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var M=n;n=S.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+M+"]); ":n+=" validate.errors = ["+M+"]; return false; ":n+=" var err = "+M+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var k=y;if(k)for(var E,T=-1,O=k.length-1;T<O;){E=k[T+=1];var P=t.util.getProperty(E),j=(I=t.util.escapeQuotes(E),c+P);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(b,E,t.opts.jsonPointers)),n+=" if ( "+j+" === undefined ",m&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(E)+"') "),n+=") {  var err =   ",!1!==t.createErrors?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { property: '"+t.util.escapeQuotes(x)+"', missingProperty: '"+I+"', depsCount: "+y.length+", deps: '"+t.util.escapeQuotes(1==y.length?y[0]:y.join(", "))+"' } ",!1!==t.opts.messages&&(n+=" , message: 'should have ",1==y.length?n+="property "+t.util.escapeQuotes(y[0]):n+="properties "+t.util.escapeQuotes(y.join(", ")),n+=" when property "+t.util.escapeQuotes(x)+" is present' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" }   ",l&&(d+="}",n+=" else { ")}t.errorPath=b;var L=h.baseId;for(var x in f)v=f[x],(t.opts.strictKeywords?"object"==typeof v&&0<Object.keys(v).length:t.util.schemaHasRules(v,t.RULES.all))&&(n+=" "+p+" = true; if ( "+c+t.util.getProperty(x)+" !== undefined ",m&&(n+=" && Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(x)+"') "),n+=") { ",h.schema=v,h.schemaPath=a+t.util.getProperty(x),h.errSchemaPath=s+"/"+t.util.escapeFragment(x),n+="  "+t.validate(h)+" ",h.baseId=L,n+=" }  ",l&&(n+=" if ("+p+") { ",d+="}"));return l&&(n+="   "+d+" if ("+u+" == errors) {"),t.util.cleanUpCode(n)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="valid"+i,h=t.opts.$data&&o&&o.$data;h&&(n+=" var schema"+i+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; ");var d="i"+i,p="schema"+i;h||(n+=" var "+p+" = validate.schema"+a+";"),n+="var "+u+";",h&&(n+=" if (schema"+i+" === undefined) "+u+" = true; else if (!Array.isArray(schema"+i+")) "+u+" = false; else {"),n+=u+" = false;for (var "+d+"=0; "+d+"<"+p+".length; "+d+"++) if (equal("+c+", "+p+"["+d+"])) { "+u+" = true; break; }",h&&(n+="  }  "),n+=" if (!"+u+") {   ";var f=f||[];f.push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { allowedValues: schema"+i+" } ",!1!==t.opts.messages&&(n+=" , message: 'should be equal to one of the allowed values' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var g=n;return n=f.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",l&&(n+=" else { "),n}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i=" ",r=t.level,o=t.dataLevel,a=t.schema[e],s=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,u="data"+(o||"");if(!1===t.opts.format)return c&&(i+=" if (true) { "),i;var h,d=t.opts.$data&&a&&a.$data;h=d?(i+=" var schema"+r+" = "+t.util.getData(a.$data,o,t.dataPathArr)+"; ","schema"+r):a;var p=t.opts.unknownFormats,f=Array.isArray(p);if(d)i+=" var "+(g="format"+r)+" = formats["+h+"]; var "+(m="isObject"+r)+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+(v="formatType"+r)+" = "+m+" && "+g+".type || 'string'; if ("+m+") { ",t.async&&(i+=" var async"+r+" = "+g+".async; "),i+=" "+g+" = "+g+".validate; } if (  ",d&&(i+=" ("+h+" !== undefined && typeof "+h+" != 'string') || "),i+=" (","ignore"!=p&&(i+=" ("+h+" && !"+g+" ",f&&(i+=" && self._opts.unknownFormats.indexOf("+h+") == -1 "),i+=") || "),i+=" ("+g+" && "+v+" == '"+n+"' && !(typeof "+g+" == 'function' ? ",t.async?i+=" (async"+r+" ? await "+g+"("+u+") : "+g+"("+u+")) ":i+=" "+g+"("+u+") ",i+=" : "+g+".test("+u+"))))) {";else{var g;if(!(g=t.formats[a])){if("ignore"==p)return t.logger.warn('unknown format "'+a+'" ignored in schema at path "'+t.errSchemaPath+'"'),c&&(i+=" if (true) { "),i;if(f&&0<=p.indexOf(a))return c&&(i+=" if (true) { "),i;throw new Error('unknown format "'+a+'" is used in schema at path "'+t.errSchemaPath+'"')}var m,v=(m="object"==typeof g&&!(g instanceof RegExp)&&g.validate)&&g.type||"string";if(m){var y=!0===g.async;g=g.validate}if(v!=n)return c&&(i+=" if (true) { "),i;if(y){if(!t.async)throw new Error("async format in sync schema");i+=" if (!(await "+(b="formats"+t.util.getProperty(a)+".validate")+"("+u+"))) { "}else{i+=" if (! ";var b="formats"+t.util.getProperty(a);m&&(b+=".validate"),i+="function"==typeof g?" "+b+"("+u+") ":" "+b+".test("+u+") ",i+=") { "}}var x=x||[];x.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { format:  ",i+=d?""+h:""+t.util.toQuotedString(a),i+="  } ",!1!==t.opts.messages&&(i+=" , message: 'should match format \"",i+=d?"' + "+h+" + '":""+t.util.escapeQuotes(a),i+="\"' "),t.opts.verbose&&(i+=" , schema:  ",i+=d?"validate.schema"+s:""+t.util.toQuotedString(a),i+="         , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var w=i;return i=x.pop(),!t.compositeRule&&c?t.async?i+=" throw new ValidationError(["+w+"]); ":i+=" validate.errors = ["+w+"]; return false; ":i+=" var err = "+w+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="valid"+i,h="errs__"+i,d=t.util.copy(t);d.level++;var p="valid"+d.level,f=t.schema.then,g=t.schema.else,m=void 0!==f&&(t.opts.strictKeywords?"object"==typeof f&&0<Object.keys(f).length:t.util.schemaHasRules(f,t.RULES.all)),v=void 0!==g&&(t.opts.strictKeywords?"object"==typeof g&&0<Object.keys(g).length:t.util.schemaHasRules(g,t.RULES.all)),y=d.baseId;if(m||v){var b;d.createErrors=!1,d.schema=o,d.schemaPath=a,d.errSchemaPath=s,n+=" var "+h+" = errors; var "+u+" = true;  ";var x=t.compositeRule;t.compositeRule=d.compositeRule=!0,n+="  "+t.validate(d)+" ",d.baseId=y,d.createErrors=!0,n+="  errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }  ",t.compositeRule=d.compositeRule=x,m?(n+=" if ("+p+") {  ",d.schema=t.schema.then,d.schemaPath=t.schemaPath+".then",d.errSchemaPath=t.errSchemaPath+"/then",n+="  "+t.validate(d)+" ",d.baseId=y,n+=" "+u+" = "+p+"; ",m&&v?n+=" var "+(b="ifClause"+i)+" = 'then'; ":b="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+p+") { ",v&&(d.schema=t.schema.else,d.schemaPath=t.schemaPath+".else",d.errSchemaPath=t.errSchemaPath+"/else",n+="  "+t.validate(d)+" ",d.baseId=y,n+=" "+u+" = "+p+"; ",m&&v?n+=" var "+(b="ifClause"+i)+" = 'else'; ":b="'else'",n+=" } "),n+=" if (!"+u+") {   var err =   ",!1!==t.createErrors?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { failingKeyword: "+b+" } ",!1!==t.opts.messages&&(n+=" , message: 'should match \"' + "+b+" + '\" schema' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&l&&(t.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" }   ",l&&(n+=" else { "),n=t.util.cleanUpCode(n)}else l&&(n+=" if (true) { ");return n}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="valid"+i,h="errs__"+i,d=t.util.copy(t),p="";d.level++;var f="valid"+d.level,g="i"+i,m=d.dataLevel=t.dataLevel+1,v="data"+m,y=t.baseId;if(n+="var "+h+" = errors;var "+u+";",Array.isArray(o)){var b=t.schema.additionalItems;if(!1===b){n+=" "+u+" = "+c+".length <= "+o.length+"; ";var x=s;s=t.errSchemaPath+"/additionalItems",n+="  if (!"+u+") {   ";var w=w||[];w.push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { limit: "+o.length+" } ",!1!==t.opts.messages&&(n+=" , message: 'should NOT have more than "+o.length+" items' "),t.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var _=n;n=w.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",s=x,l&&(p+="}",n+=" else { ")}var C=o;if(C)for(var A,I=-1,S=C.length-1;I<S;)if(A=C[I+=1],t.opts.strictKeywords?"object"==typeof A&&0<Object.keys(A).length:t.util.schemaHasRules(A,t.RULES.all)){n+=" "+f+" = true; if ("+c+".length > "+I+") { ";var M=c+"["+I+"]";d.schema=A,d.schemaPath=a+"["+I+"]",d.errSchemaPath=s+"/"+I,d.errorPath=t.util.getPathExpr(t.errorPath,I,t.opts.jsonPointers,!0),d.dataPathArr[m]=I;var k=t.validate(d);d.baseId=y,t.util.varOccurences(k,v)<2?n+=" "+t.util.varReplace(k,v,M)+" ":n+=" var "+v+" = "+M+"; "+k+" ",n+=" }  ",l&&(n+=" if ("+f+") { ",p+="}")}"object"==typeof b&&(t.opts.strictKeywords?"object"==typeof b&&0<Object.keys(b).length:t.util.schemaHasRules(b,t.RULES.all))&&(d.schema=b,d.schemaPath=t.schemaPath+".additionalItems",d.errSchemaPath=t.errSchemaPath+"/additionalItems",n+=" "+f+" = true; if ("+c+".length > "+o.length+") {  for (var "+g+" = "+o.length+"; "+g+" < "+c+".length; "+g+"++) { ",d.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0),M=c+"["+g+"]",d.dataPathArr[m]=g,k=t.validate(d),d.baseId=y,t.util.varOccurences(k,v)<2?n+=" "+t.util.varReplace(k,v,M)+" ":n+=" var "+v+" = "+M+"; "+k+" ",l&&(n+=" if (!"+f+") break; "),n+=" } }  ",l&&(n+=" if ("+f+") { ",p+="}"))}else(t.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length:t.util.schemaHasRules(o,t.RULES.all))&&(d.schema=o,d.schemaPath=a,d.errSchemaPath=s,n+="  for (var "+g+" = 0; "+g+" < "+c+".length; "+g+"++) { ",d.errorPath=t.util.getPathExpr(t.errorPath,g,t.opts.jsonPointers,!0),M=c+"["+g+"]",d.dataPathArr[m]=g,k=t.validate(d),d.baseId=y,t.util.varOccurences(k,v)<2?n+=" "+t.util.varReplace(k,v,M)+" ":n+=" var "+v+" = "+M+"; "+k+" ",l&&(n+=" if (!"+f+") break; "),n+=" }");return l&&(n+=" "+p+" if ("+h+" == errors) {"),t.util.cleanUpCode(n)}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i=" ",r=t.level,o=t.dataLevel,a=t.schema[e],s=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,u="data"+(o||""),h=t.opts.$data&&a&&a.$data;n=h?(i+=" var schema"+r+" = "+t.util.getData(a.$data,o,t.dataPathArr)+"; ","schema"+r):a,i+="var division"+r+";if (",h&&(i+=" "+n+" !== undefined && ( typeof "+n+" != 'number' || "),i+=" (division"+r+" = "+u+" / "+n+", ",t.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+r+") - division"+r+") > 1e-"+t.opts.multipleOfPrecision+" ":i+=" division"+r+" !== parseInt(division"+r+") ",i+=" ) ",h&&(i+="  )  "),i+=" ) {   ";var d=d||[];d.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { multipleOf: "+n+" } ",!1!==t.opts.messages&&(i+=" , message: 'should be multiple of ",i+=h?"' + "+n:n+"'"),t.opts.verbose&&(i+=" , schema:  ",i+=h?"validate.schema"+s:""+a,i+="         , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var p=i;return i=d.pop(),!t.compositeRule&&c?t.async?i+=" throw new ValidationError(["+p+"]); ":i+=" validate.errors = ["+p+"]; return false; ":i+=" var err = "+p+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="errs__"+i,h=t.util.copy(t);h.level++;var d="valid"+h.level;if(t.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length:t.util.schemaHasRules(o,t.RULES.all)){h.schema=o,h.schemaPath=a,h.errSchemaPath=s,n+=" var "+u+" = errors;  ";var p,f=t.compositeRule;t.compositeRule=h.compositeRule=!0,h.createErrors=!1,h.opts.allErrors&&(p=h.opts.allErrors,h.opts.allErrors=!1),n+=" "+t.validate(h)+" ",h.createErrors=!0,p&&(h.opts.allErrors=p),t.compositeRule=h.compositeRule=f,n+=" if ("+d+") {   ";var g=g||[];g.push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: {} ",!1!==t.opts.messages&&(n+=" , message: 'should NOT be valid' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var m=n;n=g.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else {  errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",t.opts.allErrors&&(n+=" } ")}else n+="  var err =   ",!1!==t.createErrors?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: {} ",!1!==t.opts.messages&&(n+=" , message: 'should NOT be valid' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l&&(n+=" if (false) { ");return n}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="valid"+i,h="errs__"+i,d=t.util.copy(t),p="";d.level++;var f="valid"+d.level,g=d.baseId,m="prevValid"+i,v="passingSchemas"+i;n+="var "+h+" = errors , "+m+" = false , "+u+" = false , "+v+" = null; ";var y=t.compositeRule;t.compositeRule=d.compositeRule=!0;var b=o;if(b)for(var x,w=-1,_=b.length-1;w<_;)x=b[w+=1],(t.opts.strictKeywords?"object"==typeof x&&0<Object.keys(x).length:t.util.schemaHasRules(x,t.RULES.all))?(d.schema=x,d.schemaPath=a+"["+w+"]",d.errSchemaPath=s+"/"+w,n+="  "+t.validate(d)+" ",d.baseId=g):n+=" var "+f+" = true; ",w&&(n+=" if ("+f+" && "+m+") { "+u+" = false; "+v+" = ["+v+", "+w+"]; } else { ",p+="}"),n+=" if ("+f+") { "+u+" = "+m+" = true; "+v+" = "+w+"; }";return t.compositeRule=d.compositeRule=y,n+=p+"if (!"+u+") {   var err =   ",!1!==t.createErrors?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { passingSchemas: "+v+" } ",!1!==t.opts.messages&&(n+=" , message: 'should match exactly one schema in oneOf' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&l&&(t.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else {  errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; }",t.opts.allErrors&&(n+=" } "),n}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i=" ",r=t.level,o=t.dataLevel,a=t.schema[e],s=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,u="data"+(o||""),h=t.opts.$data&&a&&a.$data;n=h?(i+=" var schema"+r+" = "+t.util.getData(a.$data,o,t.dataPathArr)+"; ","schema"+r):a,i+="if ( ",h&&(i+=" ("+n+" !== undefined && typeof "+n+" != 'string') || "),i+=" !"+(h?"(new RegExp("+n+"))":t.usePattern(a))+".test("+u+") ) {   ";var d=d||[];d.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { pattern:  ",i+=h?""+n:""+t.util.toQuotedString(a),i+="  } ",!1!==t.opts.messages&&(i+=" , message: 'should match pattern \"",i+=h?"' + "+n+" + '":""+t.util.escapeQuotes(a),i+="\"' "),t.opts.verbose&&(i+=" , schema:  ",i+=h?"validate.schema"+s:""+t.util.toQuotedString(a),i+="         , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var p=i;return i=d.pop(),!t.compositeRule&&c?t.async?i+=" throw new ValidationError(["+p+"]); ":i+=" validate.errors = ["+p+"]; return false; ":i+=" var err = "+p+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="errs__"+i,h=t.util.copy(t),d="";h.level++;var p="valid"+h.level,f="key"+i,g="idx"+i,m=h.dataLevel=t.dataLevel+1,v="data"+m,y="dataProperties"+i,b=Object.keys(o||{}),x=t.schema.patternProperties||{},w=Object.keys(x),_=t.schema.additionalProperties,C=b.length||w.length,A=!1===_,I="object"==typeof _&&Object.keys(_).length,S=t.opts.removeAdditional,M=A||I||S,k=t.opts.ownProperties,E=t.baseId,T=t.schema.required;if(T&&(!t.opts.$data||!T.$data)&&T.length<t.opts.loopRequired)var O=t.util.toHash(T);if(n+="var "+u+" = errors;var "+p+" = true;",k&&(n+=" var "+y+" = undefined;"),M){if(n+=k?" "+y+" = "+y+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) { var "+f+" = "+y+"["+g+"]; ":" for (var "+f+" in "+c+") { ",C){if(n+=" var isAdditional"+i+" = !(false ",b.length)if(8<b.length)n+=" || validate.schema"+a+".hasOwnProperty("+f+") ";else{var P=b;if(P)for(var j=-1,L=P.length-1;j<L;)Y=P[j+=1],n+=" || "+f+" == "+t.util.toQuotedString(Y)+" "}if(w.length){var D=w;if(D)for(var R=-1,B=D.length-1;R<B;)it=D[R+=1],n+=" || "+t.usePattern(it)+".test("+f+") "}n+=" ); if (isAdditional"+i+") { "}if("all"==S)n+=" delete "+c+"["+f+"]; ";else{var N=t.errorPath,F="' + "+f+" + '";if(t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(t.errorPath,f,t.opts.jsonPointers)),A)if(S)n+=" delete "+c+"["+f+"]; ";else{n+=" "+p+" = false; ";var z=s;s=t.errSchemaPath+"/additionalProperties",(tt=tt||[]).push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { additionalProperty: '"+F+"' } ",!1!==t.opts.messages&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),t.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var V=n;n=tt.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+V+"]); ":n+=" validate.errors = ["+V+"]; return false; ":n+=" var err = "+V+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s=z,l&&(n+=" break; ")}else if(I)if("failing"==S){n+=" var "+u+" = errors;  ";var G=t.compositeRule;t.compositeRule=h.compositeRule=!0,h.schema=_,h.schemaPath=t.schemaPath+".additionalProperties",h.errSchemaPath=t.errSchemaPath+"/additionalProperties",h.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,f,t.opts.jsonPointers);var H=c+"["+f+"]";h.dataPathArr[m]=f;var W=t.validate(h);h.baseId=E,t.util.varOccurences(W,v)<2?n+=" "+t.util.varReplace(W,v,H)+" ":n+=" var "+v+" = "+H+"; "+W+" ",n+=" if (!"+p+") { errors = "+u+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+f+"]; }  ",t.compositeRule=h.compositeRule=G}else h.schema=_,h.schemaPath=t.schemaPath+".additionalProperties",h.errSchemaPath=t.errSchemaPath+"/additionalProperties",h.errorPath=t.opts._errorDataPathProperty?t.errorPath:t.util.getPathExpr(t.errorPath,f,t.opts.jsonPointers),H=c+"["+f+"]",h.dataPathArr[m]=f,W=t.validate(h),h.baseId=E,t.util.varOccurences(W,v)<2?n+=" "+t.util.varReplace(W,v,H)+" ":n+=" var "+v+" = "+H+"; "+W+" ",l&&(n+=" if (!"+p+") break; ");t.errorPath=N}C&&(n+=" } "),n+=" }  ",l&&(n+=" if ("+p+") { ",d+="}")}var U=t.opts.useDefaults&&!t.compositeRule;if(b.length){var Z=b;if(Z)for(var Y,X=-1,q=Z.length-1;X<q;){var K=o[Y=Z[X+=1]];if(t.opts.strictKeywords?"object"==typeof K&&0<Object.keys(K).length:t.util.schemaHasRules(K,t.RULES.all)){var Q=t.util.getProperty(Y),J=(H=c+Q,U&&void 0!==K.default);if(h.schema=K,h.schemaPath=a+Q,h.errSchemaPath=s+"/"+t.util.escapeFragment(Y),h.errorPath=t.util.getPath(t.errorPath,Y,t.opts.jsonPointers),h.dataPathArr[m]=t.util.toQuotedString(Y),W=t.validate(h),h.baseId=E,t.util.varOccurences(W,v)<2){W=t.util.varReplace(W,v,H);var $=H}else $=v,n+=" var "+v+" = "+H+"; ";if(J)n+=" "+W+" ";else{if(O&&O[Y]){n+=" if ( "+$+" === undefined ",k&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(Y)+"') "),n+=") { "+p+" = false; ",N=t.errorPath,z=s;var tt,et=t.util.escapeQuotes(Y);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(N,Y,t.opts.jsonPointers)),s=t.errSchemaPath+"/required",(tt=tt||[]).push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { missingProperty: '"+et+"' } ",!1!==t.opts.messages&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+et+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",V=n,n=tt.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+V+"]); ":n+=" validate.errors = ["+V+"]; return false; ":n+=" var err = "+V+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",s=z,t.errorPath=N,n+=" } else { "}else l?(n+=" if ( "+$+" === undefined ",k&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(Y)+"') "),n+=") { "+p+" = true; } else { "):(n+=" if ("+$+" !== undefined ",k&&(n+=" &&   Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(Y)+"') "),n+=" ) { ");n+=" "+W+" } "}}l&&(n+=" if ("+p+") { ",d+="}")}}if(w.length){var nt=w;if(nt)for(var it,rt=-1,ot=nt.length-1;rt<ot;)K=x[it=nt[rt+=1]],(t.opts.strictKeywords?"object"==typeof K&&0<Object.keys(K).length:t.util.schemaHasRules(K,t.RULES.all))&&(h.schema=K,h.schemaPath=t.schemaPath+".patternProperties"+t.util.getProperty(it),h.errSchemaPath=t.errSchemaPath+"/patternProperties/"+t.util.escapeFragment(it),n+=k?" "+y+" = "+y+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) { var "+f+" = "+y+"["+g+"]; ":" for (var "+f+" in "+c+") { ",n+=" if ("+t.usePattern(it)+".test("+f+")) { ",h.errorPath=t.util.getPathExpr(t.errorPath,f,t.opts.jsonPointers),H=c+"["+f+"]",h.dataPathArr[m]=f,W=t.validate(h),h.baseId=E,t.util.varOccurences(W,v)<2?n+=" "+t.util.varReplace(W,v,H)+" ":n+=" var "+v+" = "+H+"; "+W+" ",l&&(n+=" if (!"+p+") break; "),n+=" } ",l&&(n+=" else "+p+" = true; "),n+=" }  ",l&&(n+=" if ("+p+") { ",d+="}"))}return l&&(n+=" "+d+" if ("+u+" == errors) {"),t.util.cleanUpCode(n)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="errs__"+i,h=t.util.copy(t);h.level++;var d="valid"+h.level;if(n+="var "+u+" = errors;",t.opts.strictKeywords?"object"==typeof o&&0<Object.keys(o).length:t.util.schemaHasRules(o,t.RULES.all)){h.schema=o,h.schemaPath=a,h.errSchemaPath=s;var p="key"+i,f="idx"+i,g="i"+i,m="' + "+p+" + '",v="data"+(h.dataLevel=t.dataLevel+1),y="dataProperties"+i,b=t.opts.ownProperties,x=t.baseId;b&&(n+=" var "+y+" = undefined; "),n+=b?" "+y+" = "+y+" || Object.keys("+c+"); for (var "+f+"=0; "+f+"<"+y+".length; "+f+"++) { var "+p+" = "+y+"["+f+"]; ":" for (var "+p+" in "+c+") { ",n+=" var startErrs"+i+" = errors; ";var w=p,_=t.compositeRule;t.compositeRule=h.compositeRule=!0;var C=t.validate(h);h.baseId=x,t.util.varOccurences(C,v)<2?n+=" "+t.util.varReplace(C,v,w)+" ":n+=" var "+v+" = "+w+"; "+C+" ",t.compositeRule=h.compositeRule=_,n+=" if (!"+d+") { for (var "+g+"=startErrs"+i+"; "+g+"<errors; "+g+"++) { vErrors["+g+"].propertyName = "+p+"; }   var err =   ",!1!==t.createErrors?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { propertyName: '"+m+"' } ",!1!==t.opts.messages&&(n+=" , message: 'property name \\'"+m+"\\' is invalid' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&l&&(t.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),l&&(n+=" break; "),n+=" } }"}return l&&(n+="  if ("+u+" == errors) {"),t.util.cleanUpCode(n)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=" ",i=t.level,r=t.dataLevel,o=t.schema[e],a=t.schemaPath+t.util.getProperty(e),s=t.errSchemaPath+"/"+e,l=!t.opts.allErrors,c="data"+(r||""),u="valid"+i,h=t.opts.$data&&o&&o.$data;h&&(n+=" var schema"+i+" = "+t.util.getData(o.$data,r,t.dataPathArr)+"; ");var d="schema"+i;if(!h)if(o.length<t.opts.loopRequired&&t.schema.properties&&Object.keys(t.schema.properties).length){var p=[],f=o;if(f)for(var g,m=-1,v=f.length-1;m<v;){g=f[m+=1];var y=t.schema.properties[g];y&&(t.opts.strictKeywords?"object"==typeof y&&0<Object.keys(y).length:t.util.schemaHasRules(y,t.RULES.all))||(p[p.length]=g)}}else p=o;if(h||p.length){var b=t.errorPath,x=h||p.length>=t.opts.loopRequired,w=t.opts.ownProperties;if(l)if(n+=" var missing"+i+"; ",x){h||(n+=" var "+d+" = validate.schema"+a+"; ");var _="' + "+(k="schema"+i+"["+(S="i"+i)+"]")+" + '";t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(b,k,t.opts.jsonPointers)),n+=" var "+u+" = true; ",h&&(n+=" if (schema"+i+" === undefined) "+u+" = true; else if (!Array.isArray(schema"+i+")) "+u+" = false; else {"),n+=" for (var "+S+" = 0; "+S+" < "+d+".length; "+S+"++) { "+u+" = "+c+"["+d+"["+S+"]] !== undefined ",w&&(n+=" &&   Object.prototype.hasOwnProperty.call("+c+", "+d+"["+S+"]) "),n+="; if (!"+u+") break; } ",h&&(n+="  }  "),(A=A||[]).push(n+="  if (!"+u+") {   "),n="",!1!==t.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { missingProperty: '"+_+"' } ",!1!==t.opts.messages&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+_+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var C=n;n=A.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var A,I=p;if(I)for(var S=-1,M=I.length-1;S<M;)T=I[S+=1],S&&(n+=" || "),n+=" ( ( "+(L=c+(j=t.util.getProperty(T)))+" === undefined ",w&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(T)+"') "),n+=") && (missing"+i+" = "+t.util.toQuotedString(t.opts.jsonPointers?T:j)+") ) ";n+=") {  ",_="' + "+(k="missing"+i)+" + '",t.opts._errorDataPathProperty&&(t.errorPath=t.opts.jsonPointers?t.util.getPathExpr(b,k,!0):b+" + "+k),(A=A||[]).push(n),n="",!1!==t.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { missingProperty: '"+_+"' } ",!1!==t.opts.messages&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+_+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",C=n,n=A.pop(),!t.compositeRule&&l?t.async?n+=" throw new ValidationError(["+C+"]); ":n+=" validate.errors = ["+C+"]; return false; ":n+=" var err = "+C+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(x){var k;h||(n+=" var "+d+" = validate.schema"+a+"; "),_="' + "+(k="schema"+i+"["+(S="i"+i)+"]")+" + '",t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPathExpr(b,k,t.opts.jsonPointers)),h&&(n+=" if ("+d+" && !Array.isArray("+d+")) {  var err =   ",!1!==t.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { missingProperty: '"+_+"' } ",!1!==t.opts.messages&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+_+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+d+" !== undefined) { "),n+=" for (var "+S+" = 0; "+S+" < "+d+".length; "+S+"++) { if ("+c+"["+d+"["+S+"]] === undefined ",w&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+d+"["+S+"]) "),n+=") {  var err =   ",!1!==t.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { missingProperty: '"+_+"' } ",!1!==t.opts.messages&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+_+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",h&&(n+="  }  ")}else{var E=p;if(E)for(var T,O=-1,P=E.length-1;O<P;){T=E[O+=1];var j=t.util.getProperty(T),L=(_=t.util.escapeQuotes(T),c+j);t.opts._errorDataPathProperty&&(t.errorPath=t.util.getPath(b,T,t.opts.jsonPointers)),n+=" if ( "+L+" === undefined ",w&&(n+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+t.util.escapeQuotes(T)+"') "),n+=") {  var err =   ",!1!==t.createErrors?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(s)+" , params: { missingProperty: '"+_+"' } ",!1!==t.opts.messages&&(n+=" , message: '",t.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+_+"\\'",n+="' "),t.opts.verbose&&(n+=" , schema: validate.schema"+a+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ",n+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t.errorPath=b}else l&&(n+=" if (true) {");return n}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i=" ",r=t.level,o=t.dataLevel,a=t.schema[e],s=t.schemaPath+t.util.getProperty(e),l=t.errSchemaPath+"/"+e,c=!t.opts.allErrors,u="data"+(o||""),h="valid"+r,d=t.opts.$data&&a&&a.$data;if(n=d?(i+=" var schema"+r+" = "+t.util.getData(a.$data,o,t.dataPathArr)+"; ","schema"+r):a,(a||d)&&!1!==t.opts.uniqueItems){d&&(i+=" var "+h+"; if ("+n+" === false || "+n+" === undefined) "+h+" = true; else if (typeof "+n+" != 'boolean') "+h+" = false; else { "),i+=" var i = "+u+".length , "+h+" = true , j; if (i > 1) { ";var p=t.schema.items&&t.schema.items.type,f=Array.isArray(p);if(!p||"object"==p||"array"==p||f&&(0<=p.indexOf("object")||0<=p.indexOf("array")))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+h+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+u+"[i]; ";var g="checkDataType"+(f?"s":"");i+=" if ("+t.util[g](p,"item",!0)+") continue; ",f&&(i+=" if (typeof item == 'string') item = '\"' + item; "),i+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",d&&(i+="  }  "),i+=" if (!"+h+") {   ";var m=m||[];m.push(i),i="",!1!==t.createErrors?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(l)+" , params: { i: i, j: j } ",!1!==t.opts.messages&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),t.opts.verbose&&(i+=" , schema:  ",i+=d?"validate.schema"+s:""+a,i+="         , parentSchema: validate.schema"+t.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var v=i;i=m.pop(),!t.compositeRule&&c?t.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { ")}else c&&(i+=" if (true) { ");return i}},function(t,e,n){"use strict";var i=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];t.exports=function(t,e){for(var n=0;n<e.length;n++){t=JSON.parse(JSON.stringify(t));var r,o=e[n].split("/"),a=t;for(r=1;r<o.length;r++)a=a[o[r]];for(r=0;r<i.length;r++){var s=i[r],l=a[s];l&&(a[s]={anyOf:[l,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#"}]})}}return t}},function(t,e,n){"use strict";var i=n(19).MissingRef;t.exports=function t(e,n,r){function o(e){var n=e.$schema;return n&&!s.getSchema(n)?t.call(s,{$ref:n},!0):Promise.resolve()}function a(t){try{return s._compile(t)}catch(e){if(e instanceof i)return function(e){function i(){delete s._loadingSchemas[l]}function r(t){return s._refs[t]||s._schemas[t]}var l=e.missingSchema;if(r(l))throw new Error("Schema "+l+" is loaded but "+e.missingRef+" cannot be resolved");var c=s._loadingSchemas[l];return c||(c=s._loadingSchemas[l]=s._opts.loadSchema(l)).then(i,i),c.then((function(t){if(!r(l))return o(t).then((function(){r(l)||s.addSchema(t,l,void 0,n)}))})).then((function(){return a(t)}))}(e);throw e}}var s=this;if("function"!=typeof this._opts.loadSchema)throw new Error("options.loadSchema should be a function");"function"==typeof n&&(r=n,n=void 0);var l=o(e).then((function(){var t=s._addSchema(e,void 0,n);return t.validate||a(t)}));return r&&l.then((function(t){r(null,t)}),r),l}},function(t,e,n){"use strict";var i=/^[a-z_$][a-z0-9_$-]*$/i,r=n(75),o=n(76);t.exports={add:function(t,e){function n(t,e,n){for(var i,a=0;a<o.length;a++){var s=o[a];if(s.type==e){i=s;break}}i||(i={type:e,rules:[]},o.push(i));var l={keyword:t,definition:n,custom:!0,code:r,implements:n.implements};i.rules.push(l),o.custom[t]=l}var o=this.RULES;if(o.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!i.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var s=0;s<a.length;s++)n(t,a[s],e);else n(t,a,e);var l=e.metaSchema;l&&(e.$data&&this._opts.$data&&(l={anyOf:[l,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(l,!0))}return o.keywords[t]=o.all[t]=!0,this},get:function(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1},remove:function(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var n=0;n<e.length;n++)for(var i=e[n].rules,r=0;r<i.length;r++)if(i[r].keyword==t){i.splice(r,1);break}return this},validate:function t(e,n){t.errors=null;var i=this._validateKeyword=this._validateKeyword||this.compile(o,!0);if(i(e))return!0;if(t.errors=i.errors,n)throw new Error("custom keyword definition is invalid: "+this.errorsText(i.errors));return!1}}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i,r=" ",o=t.level,a=t.dataLevel,s=t.schema[e],l=t.schemaPath+t.util.getProperty(e),c=t.errSchemaPath+"/"+e,u=!t.opts.allErrors,h="data"+(a||""),d="valid"+o,p="errs__"+o,f=t.opts.$data&&s&&s.$data;i=f?(r+=" var schema"+o+" = "+t.util.getData(s.$data,a,t.dataPathArr)+"; ","schema"+o):s;var g,m,v,y,b,x="definition"+o,w=this.definition,_="";if(f&&w.$data){b="keywordValidate"+o;var C=w.validateSchema;r+=" var "+x+" = RULES.custom['"+e+"'].definition; var "+b+" = "+x+".validate;"}else{if(!(y=t.useCustomRule(this,s,t.schema,t)))return;i="validate.schema"+l,b=y.code,g=w.compile,m=w.inline,v=w.macro}var A=b+".errors",I="i"+o,S="ruleErr"+o,M=w.async;if(M&&!t.async)throw new Error("async keyword in sync schema");if(m||v||(r+=A+" = null;"),r+="var "+p+" = errors;var "+d+";",f&&w.$data&&(_+="}",r+=" if ("+i+" === undefined) { "+d+" = true; } else { ",C&&(_+="}",r+=" "+d+" = "+x+".validateSchema("+i+"); if ("+d+") { ")),m)w.statements?r+=" "+y.validate+" ":r+=" "+d+" = "+y.validate+"; ";else if(v){var k=t.util.copy(t);_="",k.level++;var E="valid"+k.level;k.schema=y.validate,k.schemaPath="";var T=t.compositeRule;t.compositeRule=k.compositeRule=!0;var O=t.validate(k).replace(/validate\.schema/g,b);t.compositeRule=k.compositeRule=T,r+=" "+O}else{(D=D||[]).push(r),r="",r+="  "+b+".call( ",t.opts.passContext?r+="this":r+="self",g||!1===w.schema?r+=" , "+h+" ":r+=" , "+i+" , "+h+" , validate.schema"+t.schemaPath+" ",r+=" , (dataPath || '')",'""'!=t.errorPath&&(r+=" + "+t.errorPath);var P=a?"data"+(a-1||""):"parentData",j=a?t.dataPathArr[a]:"parentDataProperty",L=r+=" , "+P+" , "+j+" , rootData )  ";r=D.pop(),!1===w.errors?(r+=" "+d+" = ",M&&(r+="await "),r+=L+"; "):r+=M?" var "+(A="customErrors"+o)+" = null; try { "+d+" = await "+L+"; } catch (e) { "+d+" = false; if (e instanceof ValidationError) "+A+" = e.errors; else throw e; } ":" "+A+" = null; "+d+" = "+L+"; "}if(w.modifying&&(r+=" if ("+P+") "+h+" = "+P+"["+j+"];"),r+=""+_,w.valid)u&&(r+=" if (true) { ");else{var D;r+=" if ( ",void 0===w.valid?(r+=" !",r+=v?""+E:d):r+=" "+!w.valid+" ",r+=") { ",n=this.keyword,(D=D||[]).push(r),(D=D||[]).push(r=""),r="",!1!==t.createErrors?(r+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { keyword: '"+this.keyword+"' } ",!1!==t.opts.messages&&(r+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ";var R=r;r=D.pop(),!t.compositeRule&&u?t.async?r+=" throw new ValidationError(["+R+"]); ":r+=" validate.errors = ["+R+"]; return false; ":r+=" var err = "+R+";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var B=r;r=D.pop(),m?w.errors?"full"!=w.errors&&(r+="  for (var "+I+"="+p+"; "+I+"<errors; "+I+"++) { var "+S+" = vErrors["+I+"]; if ("+S+".dataPath === undefined) "+S+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+S+".schemaPath === undefined) { "+S+'.schemaPath = "'+c+'"; } ',t.opts.verbose&&(r+=" "+S+".schema = "+i+"; "+S+".data = "+h+"; "),r+=" } "):!1===w.errors?r+=" "+B+" ":(r+=" if ("+p+" == errors) { "+B+" } else {  for (var "+I+"="+p+"; "+I+"<errors; "+I+"++) { var "+S+" = vErrors["+I+"]; if ("+S+".dataPath === undefined) "+S+".dataPath = (dataPath || '') + "+t.errorPath+"; if ("+S+".schemaPath === undefined) { "+S+'.schemaPath = "'+c+'"; } ',t.opts.verbose&&(r+=" "+S+".schema = "+i+"; "+S+".data = "+h+"; "),r+=" } } "):v?(r+="   var err =   ",!1!==t.createErrors?(r+=" { keyword: '"+(n||"custom")+"' , dataPath: (dataPath || '') + "+t.errorPath+" , schemaPath: "+t.util.toQuotedString(c)+" , params: { keyword: '"+this.keyword+"' } ",!1!==t.opts.messages&&(r+=" , message: 'should pass \""+this.keyword+"\" keyword validation' "),t.opts.verbose&&(r+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+t.schemaPath+" , data: "+h+" "),r+=" } "):r+=" {} ",r+=";  if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!t.compositeRule&&u&&(t.async?r+=" throw new ValidationError(vErrors); ":r+=" validate.errors = vErrors; return false; ")):!1===w.errors?r+=" "+B+" ":(r+=" if (Array.isArray("+A+")) { if (vErrors === null) vErrors = "+A+"; else vErrors = vErrors.concat("+A+"); errors = vErrors.length;  for (var "+I+"="+p+"; "+I+"<errors; "+I+"++) { var "+S+" = vErrors["+I+"]; if ("+S+".dataPath === undefined) "+S+".dataPath = (dataPath || '') + "+t.errorPath+";  "+S+'.schemaPath = "'+c+'";  ',t.opts.verbose&&(r+=" "+S+".schema = "+i+"; "+S+".data = "+h+"; "),r+=" } } else { "+B+" } "),r+=" } ",u&&(r+=" else { ")}return r}},function(t,e,n){"use strict";var i=n(32);t.exports={$id:"https://github.com/epoberezkin/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:i.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:i.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},function(t){t.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON Schema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},function(t){t.exports=JSON.parse('{"id":"http://json-schema.org/draft-04/schema#","$schema":"http://json-schema.org/draft-04/schema#","description":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"positiveInteger":{"type":"integer","minimum":0},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true}},"type":"object","properties":{"id":{"type":"string"},"$schema":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"multipleOf":{"type":"number","minimum":0,"exclusiveMinimum":true},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"boolean","default":false},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"boolean","default":false},"maxLength":{"$ref":"#/definitions/positiveInteger"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/positiveInteger"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"dependencies":{"exclusiveMaximum":["maximum"],"exclusiveMinimum":["minimum"]},"default":{}}')},function(t){t.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-06/schema#","$id":"http://json-schema.org/draft-06/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"description":{"type":"string"},"default":{},"examples":{"type":"array","items":{}},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":{},"enum":{"type":"array","minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":{}}')},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t){return t.getInternalPath()}function u(t){return t.getField()}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t){this.editor=t,this.dom={}}function p(t,e){this.editor=t,this.parent=e,this.dom={}}n.r(e),n.d(e,"treeModeMixins",(function(){return F}));var f=n(13),g=n.n(f),m=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.locked=!1}var e,n;return e=t,(n=[{key:"highlight",value:function(t){this.locked||(this.node!==t&&(this.node&&this.node.setHighlight(!1),this.node=t,this.node.setHighlight(!0)),this._cancelUnhighlight())}},{key:"unhighlight",value:function(){if(!this.locked){var t=this;this.node&&(this._cancelUnhighlight(),this.unhighlightTimer=setTimeout((function(){t.node.setHighlight(!1),t.node=void 0,t.unhighlightTimer=void 0}),0))}}},{key:"_cancelUnhighlight",value:function(){this.unhighlightTimer&&(clearTimeout(this.unhighlightTimer),this.unhighlightTimer=void 0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}}])&&i(e.prototype,n),t}(),v=n(0),y=function(){function t(e){function n(t){return e.node.findNodeByInternalPath(t)}!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.editor=e,this.history=[],this.index=-1,this.clear(),this.actions={editField:{undo:function(t){n(t.parentPath).childs[t.index].updateField(t.oldValue)},redo:function(t){n(t.parentPath).childs[t.index].updateField(t.newValue)}},editValue:{undo:function(t){n(t.path).updateValue(t.oldValue)},redo:function(t){n(t.path).updateValue(t.newValue)}},changeType:{undo:function(t){n(t.path).changeType(t.oldType)},redo:function(t){n(t.path).changeType(t.newType)}},appendNodes:{undo:function(t){var e=n(t.parentPath);t.paths.map(n).forEach((function(t){e.removeChild(t)}))},redo:function(t){var e=n(t.parentPath);t.nodes.forEach((function(t){e.appendChild(t)}))}},insertBeforeNodes:{undo:function(t){var e=n(t.parentPath);t.paths.map(n).forEach((function(t){e.removeChild(t)}))},redo:function(t){var e=n(t.parentPath),i=n(t.beforePath);t.nodes.forEach((function(t){e.insertBefore(t,i)}))}},insertAfterNodes:{undo:function(t){var e=n(t.parentPath);t.paths.map(n).forEach((function(t){e.removeChild(t)}))},redo:function(t){var e=n(t.parentPath),i=n(t.afterPath);t.nodes.forEach((function(t){e.insertAfter(t,i),i=t}))}},removeNodes:{undo:function(t){var e=n(t.parentPath),i=e.childs[t.index]||e.append;t.nodes.forEach((function(t){e.insertBefore(t,i)}))},redo:function(t){var e=n(t.parentPath);t.paths.map(n).forEach((function(t){e.removeChild(t)}))}},duplicateNodes:{undo:function(t){var e=n(t.parentPath);t.clonePaths.map(n).forEach((function(t){e.removeChild(t)}))},redo:function(t){var e=n(t.parentPath),i=n(t.afterPath);t.paths.map(n).forEach((function(t){var n=t.clone();if("object"===e.type){var r=e.getFieldNames();n.field=Object(v.findUniqueName)(t.field,r)}e.insertAfter(n,i),i=n}))}},moveNodes:{undo:function(t){var e=n(t.oldParentPath),i=n(t.newParentPath),r=e.childs[t.oldIndex]||e.append;i.childs.slice(t.newIndex,t.newIndex+t.count).forEach((function(n,i){n.field=t.fieldNames[i],e.moveBefore(n,r)})),null===t.newParentPathRedo&&(t.newParentPathRedo=i.getInternalPath())},redo:function(t){var e=n(t.oldParentPathRedo),i=n(t.newParentPathRedo),r=i.childs[t.newIndexRedo]||i.append;e.childs.slice(t.oldIndexRedo,t.oldIndexRedo+t.count).forEach((function(e,n){e.field=t.fieldNames[n],i.moveBefore(e,r)}))}},sort:{undo:function(t){var e=n(t.path);e.hideChilds(),e.childs=t.oldChilds,e.updateDom({updateIndexes:!0}),e.showChilds()},redo:function(t){var e=n(t.path);e.hideChilds(),e.childs=t.newChilds,e.updateDom({updateIndexes:!0}),e.showChilds()}},transform:{undo:function(t){n(t.path).setInternalValue(t.oldValue)},redo:function(t){n(t.path).setInternalValue(t.newValue)}}}}var e,n;return e=t,(n=[{key:"onChange",value:function(){}},{key:"add",value:function(t,e){this.index++,this.history[this.index]={action:t,params:e,timestamp:new Date},this.index<this.history.length-1&&this.history.splice(this.index+1,this.history.length-this.index-1),this.onChange()}},{key:"clear",value:function(){this.history=[],this.index=-1,this.onChange()}},{key:"canUndo",value:function(){return 0<=this.index}},{key:"canRedo",value:function(){return this.index<this.history.length-1}},{key:"undo",value:function(){if(this.canUndo()){var t=this.history[this.index];if(t){var e=this.actions[t.action];if(e&&e.undo){if(e.undo(t.params),t.params.oldSelection)try{this.editor.setDomSelection(t.params.oldSelection)}catch(t){console.error(t)}}else console.error(new Error('unknown action "'+t.action+'"'))}this.index--,this.onChange()}}},{key:"redo",value:function(){if(this.canRedo()){this.index++;var t=this.history[this.index];if(t){var e=this.actions[t.action];if(e&&e.redo){if(e.redo(t.params),t.params.newSelection)try{this.editor.setDomSelection(t.params.newSelection)}catch(t){console.error(t)}}else console.error(new Error('unknown action "'+t.action+'"'))}this.onChange()}}},{key:"destroy",value:function(){this.editor=null,this.history=[],this.index=-1}}])&&r(e.prototype,n),t}(),b=n(1),x=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=this;this.editor=e,this.timeout=void 0,this.delay=200,this.lastText=void 0,this.results=null,this.dom={},this.dom.container=n;var r=document.createElement("div");(this.dom.wrapper=r).className="jsoneditor-search",n.appendChild(r);var o=document.createElement("div");(this.dom.results=o).className="jsoneditor-results",r.appendChild(o);var a=document.createElement("div");(this.dom.input=a).className="jsoneditor-frame",a.title=Object(b.c)("searchTitle"),r.appendChild(a);var s=document.createElement("button");s.type="button",s.className="jsoneditor-refresh",a.appendChild(s);var l=document.createElement("input");l.type="text",(this.dom.search=l).oninput=function(t){i._onDelayedSearch(t)},l.onchange=function(t){i._onSearch()},l.onkeydown=function(t){i._onKeyDown(t)},l.onkeyup=function(t){i._onKeyUp(t)},s.onclick=function(t){l.select()},a.appendChild(l);var c=document.createElement("button");c.type="button",c.title=Object(b.c)("searchNextResultTitle"),c.className="jsoneditor-next",c.onclick=function(){i.next()},a.appendChild(c);var u=document.createElement("button");u.type="button",u.title=Object(b.c)("searchPreviousResultTitle"),u.className="jsoneditor-previous",u.onclick=function(){i.previous()},a.appendChild(u)}var e,n;return e=t,(n=[{key:"next",value:function(t){if(this.results){var e=null!==this.resultIndex?this.resultIndex+1:0;e>this.results.length-1&&(e=0),this._setActiveResult(e,t)}}},{key:"previous",value:function(t){if(this.results){var e=this.results.length-1,n=null!==this.resultIndex?this.resultIndex-1:e;n<0&&(n=e),this._setActiveResult(n,t)}}},{key:"_setActiveResult",value:function(t,e){if(this.activeResult){var n=this.activeResult.node;"field"===this.activeResult.elem?delete n.searchFieldActive:delete n.searchValueActive,n.updateDom()}if(!this.results||!this.results[t])return this.resultIndex=void 0,void(this.activeResult=void 0);this.resultIndex=t;var i=this.results[this.resultIndex].node,r=this.results[this.resultIndex].elem;"field"===r?i.searchFieldActive=!0:i.searchValueActive=!0,this.activeResult=this.results[this.resultIndex],i.updateDom(),i.scrollTo((function(){e&&i.focus(r)}))}},{key:"_clearDelay",value:function(){void 0!==this.timeout&&(clearTimeout(this.timeout),delete this.timeout)}},{key:"_onDelayedSearch",value:function(){this._clearDelay();var t=this;this.timeout=setTimeout((function(e){t._onSearch()}),this.delay)}},{key:"_onSearch",value:function(t){this._clearDelay();var e=this.dom.search.value,n=0<e.length?e:void 0;if(n!==this.lastText||t){this.lastText=n,this.results=this.editor.search(n);var i=this.results[0]?this.results[0].node.MAX_SEARCH_RESULTS:1/0,r=0;if(this.activeResult)for(var o=0;o<this.results.length;o++)if(this.results[o].node===this.activeResult.node){r=o;break}if(this._setActiveResult(r,!1),void 0!==n){var a=this.results.length;this.dom.results.innerHTML=0===a?"no&nbsp;results":1===a?"1&nbsp;result":i<a?i+"+&nbsp;results":a+"&nbsp;results"}else this.dom.results.innerHTML=""}}},{key:"_onKeyDown",value:function(t){var e=t.which;27===e?(this.dom.search.value="",this._onSearch(),t.preventDefault(),t.stopPropagation()):13===e&&(t.ctrlKey?this._onSearch(!0):t.shiftKey?this.previous():this.next(),t.preventDefault(),t.stopPropagation())}},{key:"_onKeyUp",value:function(t){var e=t.keyCode;27!==e&&13!==e&&this._onDelayedSearch(t)}},{key:"clear",value:function(){this.dom.search.value="",this._onSearch()}},{key:"forceSearch",value:function(){this._onSearch(!0)}},{key:"isEmpty",value:function(){return""===this.dom.search.value}},{key:"destroy",value:function(){this.editor=null,this.dom.container.removeChild(this.dom.wrapper),this.dom=null,this.results=null,this.activeResult=null,this._clearDelay()}}])&&o(e.prototype,n),t}(),w=n(3),_=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e&&(this.root=n,this.path=document.createElement("div"),this.path.className="jsoneditor-treepath",this.path.setAttribute("tabindex",0),this.contentMenuClicked=!1,e.appendChild(this.path),this.reset())}var e,n;return e=t,(n=[{key:"reset",value:function(){this.path.innerHTML=Object(b.c)("selectNode")}},{key:"setPath",value:function(t){var e=this;this.path.innerHTML="",t&&t.length&&t.forEach((function(n,i){var r,o=document.createElement("span");if(o.className="jsoneditor-treepath-element",o.innerText=n.name,o.onclick=function(t){this.selectionCallback&&this.selectionCallback(t)}.bind(e,n),e.path.appendChild(o),n.children.length&&((r=document.createElement("span")).className="jsoneditor-treepath-seperator",r.innerHTML="&#9658;",r.onclick=function(){e.contentMenuClicked=!0;var o=[];n.children.forEach((function(r){o.push({text:r.name,className:"jsoneditor-type-modes"+(t[i+1]+1&&t[i+1].name===r.name?" jsoneditor-selected":""),click:function(t,e){this.contextMenuCallback&&this.contextMenuCallback(t,e)}.bind(e,n,r.name)})})),new w.a(o).show(r,e.root,!0)},e.path.appendChild(r)),i===t.length-1){var a=(r||o).getBoundingClientRect().right;if(e.path.offsetWidth<a&&(e.path.scrollLeft=a),e.path.scrollLeft){var s=document.createElement("span");s.className="jsoneditor-treepath-show-all-btn",s.title="show all path",s.innerHTML="...",s.onclick=function(t){e.contentMenuClicked=!1,Object(v.addClassName)(e.path,"show-all"),e.path.style.width=e.path.parentNode.getBoundingClientRect().width-10+"px",e.path.onblur=function(){if(e.contentMenuClicked)return e.contentMenuClicked=!1,void e.path.focus();Object(v.removeClassName)(e.path,"show-all"),e.path.onblur=void 0,e.path.style.width="",e.setPath(t)}}.bind(e,t),e.path.insertBefore(s,e.path.firstChild)}}}))}},{key:"onSectionSelected",value:function(t){"function"==typeof t&&(this.selectionCallback=t)}},{key:"onContextMenuItemSelected",value:function(t){"function"==typeof t&&(this.contextMenuCallback=t)}}])&&a(e.prototype,n),t}(),C=n(11),A=n.n(C),I=n(12),S=n(5),M=n(6),k=n(2),E=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.editor=e,this.dom={},this.expanded=!1,n&&n instanceof Object?(this.setField(n.field,n.fieldEditable),"value"in n&&this.setValue(n.value,n.type),"internalValue"in n&&this.setInternalValue(n.internalValue)):(this.setField(""),this.setValue(null)),this._debouncedOnChangeValue=Object(v.debounce)(this._onChangeValue.bind(this),t.prototype.DEBOUNCE_INTERVAL),this._debouncedOnChangeField=Object(v.debounce)(this._onChangeField.bind(this),t.prototype.DEBOUNCE_INTERVAL),this.visibleChilds=this.getMaxVisibleChilds()}var e,n;return e=t,(n=[{key:"getMaxVisibleChilds",value:function(){return this.editor&&this.editor.options&&this.editor.options.maxVisibleChilds?this.editor.options.maxVisibleChilds:T}},{key:"_updateEditability",value:function(){if(this.editable={field:!0,value:!0},this.editor&&(this.editable.field="tree"===this.editor.options.mode,this.editable.value="view"!==this.editor.options.mode,("tree"===this.editor.options.mode||"form"===this.editor.options.mode)&&"function"==typeof this.editor.options.onEditable)){var t=this.editor.options.onEditable({field:this.field,value:this.value,path:this.getPath()});"boolean"==typeof t?(this.editable.field=t,this.editable.value=t):("boolean"==typeof t.field&&(this.editable.field=t.field),"boolean"==typeof t.value&&(this.editable.value=t.value))}}},{key:"getPath",value:function(){for(var t=this,e=[];t;){var n=t.getName();void 0!==n&&e.unshift(n),t=t.parent}return e}},{key:"getInternalPath",value:function(){for(var t=this,e=[];t;)t.parent&&e.unshift(t.getIndex()),t=t.parent;return e}},{key:"getName",value:function(){return this.parent?"array"!==this.parent.type?this.field:this.index:void 0}},{key:"findNodeByPath",value:function(t){if(t){if(0===t.length)return this;if(t.length&&this.childs&&this.childs.length)for(var e=0;e<this.childs.length;++e)if(""+t[0]==""+this.childs[e].getName())return this.childs[e].findNodeByPath(t.slice(1))}}},{key:"findNodeByInternalPath",value:function(t){if(t){for(var e=this,n=0;n<t.length&&e;n++){var i=t[n];e=e.childs[i]}return e}}},{key:"serialize",value:function(){return{value:this.getValue(),path:this.getPath()}}},{key:"findNode",value:function(t){for(var e=Object(v.parsePath)(t),n=this;n&&0<e.length;)!function(){var t=e.shift();if("number"==typeof t){if("array"!==n.type)throw new Error("Cannot get child node at index "+t+": node is no array");n=n.childs[t]}else{if("object"!==n.type)throw new Error("Cannot get child node "+t+": node is no object");n=n.childs.filter((function(e){return e.field===t}))[0]}}();return n}},{key:"findParents",value:function(){for(var t=[],e=this.parent;e;)t.unshift(e),e=e.parent;return t}},{key:"setError",value:function(t,e){this.error=t,this.errorChild=e,this.dom&&this.dom.tr&&this.updateError()}},{key:"updateError",value:function(){var t=this,e=this.fieldError||this.valueError||this.error,n=this.dom.tdError;if(e&&this.dom&&this.dom.tr){Object(v.addClassName)(this.dom.tr,"jsoneditor-validation-error"),n||(n=document.createElement("td"),this.dom.tdError=n,this.dom.tdValue.parentNode.appendChild(n));var i=document.createElement("button");i.type="button",i.className="jsoneditor-button jsoneditor-schema-error";var r=function(){t.dom.popupAnchor&&t.dom.popupAnchor.destroy()},o=function(){delete t.dom.popupAnchor},a=function(n){var r=t.editor.frame;t.dom.popupAnchor=Object(I.a)(i,t.editor.getPopupAnchor(),o,n);var a=i.getBoundingClientRect(),s=120<r.getBoundingClientRect().width-a.x?"jsoneditor-above":"jsoneditor-left",l=document.createElement("div");l.className="jsoneditor-popover "+s,l.appendChild(document.createTextNode(e.message)),t.dom.popupAnchor.appendChild(l)};i.onmouseover=function(){t.dom.popupAnchor||a(!0)},i.onfocus=function(){r(),a(!1)},i.onblur=function(){r()};var s=this.errorChild;for(s&&(i.onclick=function(){s.findParents().forEach((function(t){t.expand(!1)})),s.scrollTo((function(){s.focus()}))});n.firstChild;)n.removeChild(n.firstChild);n.appendChild(i)}else this.dom.tr&&Object(v.removeClassName)(this.dom.tr,"jsoneditor-validation-error"),n&&(this.dom.tdError.parentNode.removeChild(this.dom.tdError),delete this.dom.tdError)}},{key:"getIndex",value:function(){if(this.parent){var t=this.parent.childs.indexOf(this);return-1!==t?t:null}return-1}},{key:"setParent",value:function(t){this.parent=t}},{key:"setField",value:function(t,e){this.field=t,this.previousField=t,this.fieldEditable=!0===e}},{key:"getField",value:function(){return void 0===this.field&&this._getDomField(),this.field}},{key:"setValue",value:function(e,n){var i,r,o,a,s=this.childs;if(this.type=this._getType(e),n&&n!==this.type){if("string"!==n||"auto"!==this.type)throw new Error('Type mismatch: cannot cast value of type "'+this.type+' to the specified type "'+n+'"');this.type=n}if("array"===this.type){for(this.childs||(this.childs=[]),o=0;o<e.length;o++)if(void 0!==(i=e[o])&&!(i instanceof Function))if(o<this.childs.length)(r=this.childs[o]).fieldEditable=!1,r.index=o,r.setValue(i);else{r=new t(this.editor,{value:i});var l=o<this.getMaxVisibleChilds();this.appendChild(r,l,!1)}for(a=this.childs.length;a>=e.length;a--)this.removeChild(this.childs[a],!1)}else if("object"===this.type){for(this.childs||(this.childs=[]),a=this.childs.length-1;0<=a;a--)h(e,this.childs[a].field)||this.removeChild(this.childs[a],!1);for(var c in o=0,e)if(h(e,c)){if(void 0!==(i=e[c])&&!(i instanceof Function)){var u=this.findChildByProperty(c);if(u)u.setField(c,!0),u.setValue(i);else{var d=new t(this.editor,{field:c,value:i}),p=o<this.getMaxVisibleChilds();this.appendChild(d,p,!1)}}o++}!(this.value="")===this.editor.options.sortObjectKeys&&this.sort([],"asc",!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=e;Array.isArray(s)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"setInternalValue",value:function(e){var n,i,r,o,a,s=this.childs;if(this.type=e.type,"array"===e.type){for(this.childs||(this.childs=[]),o=0;o<e.childs.length;o++)void 0===(n=e.childs[o])||n instanceof Function||(o<this.childs.length?((i=this.childs[o]).fieldEditable=!1,i.index=o,i.setInternalValue(n)):(i=new t(this.editor,{internalValue:n}),r=o<this.getMaxVisibleChilds(),this.appendChild(i,r,!1)));for(a=this.childs.length;a>=e.childs.length;a--)this.removeChild(this.childs[a],!1)}else if("object"===e.type){for(this.childs||(this.childs=[]),o=0;o<e.childs.length;o++)void 0===(n=e.childs[o])||n instanceof Function||(o<this.childs.length?(delete(i=this.childs[o]).index,i.setField(n.field,!0),i.setInternalValue(n.value)):(i=new t(this.editor,{field:n.field,internalValue:n.value}),r=o<this.getMaxVisibleChilds(),this.appendChild(i,r,!1)));for(a=this.childs.length;a>=e.childs.length;a--)this.removeChild(this.childs[a],!1)}else this.hideChilds(),delete this.append,delete this.showMore,delete this.expanded,delete this.childs,this.value=e.value;Array.isArray(s)!==Array.isArray(this.childs)&&this.recreateDom(),this.updateDom({updateIndexes:!0}),this.previousValue=this.value}},{key:"recreateDom",value:function(){if(this.dom&&this.dom.tr&&this.dom.tr.parentNode){var t=this._detachFromDom();this.clearDom(),this._attachToDom(t)}else this.clearDom()}},{key:"getValue",value:function(){if("array"===this.type){var t=[];return this.childs.forEach((function(e){t.push(e.getValue())})),t}if("object"!==this.type)return void 0===this.value&&this._getDomValue(),this.value;var e={};return this.childs.forEach((function(t){e[t.getField()]=t.getValue()})),e}},{key:"getInternalValue",value:function(){return"array"===this.type?{type:this.type,childs:this.childs.map((function(t){return t.getInternalValue()}))}:"object"===this.type?{type:this.type,childs:this.childs.map((function(t){return{field:t.getField(),value:t.getInternalValue()}}))}:(void 0===this.value&&this._getDomValue(),{type:this.type,value:this.value})}},{key:"getLevel",value:function(){return this.parent?this.parent.getLevel()+1:0}},{key:"getNodePath",value:function(){var t=this.parent?this.parent.getNodePath():[];return t.push(this),t}},{key:"clone",value:function(){var e=new t(this.editor);if(e.type=this.type,e.field=this.field,e.fieldInnerText=this.fieldInnerText,e.fieldEditable=this.fieldEditable,e.previousField=this.previousField,e.value=this.value,e.valueInnerText=this.valueInnerText,e.previousValue=this.previousValue,e.expanded=this.expanded,e.visibleChilds=this.visibleChilds,this.childs){var n=[];this.childs.forEach((function(t){var i=t.clone();i.setParent(e),n.push(i)})),e.childs=n}else e.childs=void 0;return e}},{key:"expand",value:function(t){this.childs&&(this.expanded=!0,this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-expanded"),this.showChilds(),!1!==t&&this.childs.forEach((function(e){e.expand(t)})),this.updateDom({recurse:!1}))}},{key:"collapse",value:function(t){this.childs&&(this.hideChilds(),!1!==t&&this.childs.forEach((function(e){e.collapse(t)})),this.dom.expand&&(this.dom.expand.className="jsoneditor-button jsoneditor-collapsed"),this.expanded=!1,this.updateDom({recurse:!1}))}},{key:"showChilds",value:function(){if(this.childs&&this.expanded){var t,e=this.dom.tr,n=e?e.parentNode:void 0;if(n){var i=this.getAppendDom();i.parentNode||((t=e.nextSibling)?n.insertBefore(i,t):n.appendChild(i));var r=Math.min(this.childs.length,this.visibleChilds);t=this._getNextTr();for(var o=0;o<r;o++){var a=this.childs[o];a.getDom().parentNode||n.insertBefore(a.getDom(),t),a.showChilds()}var s=this.getShowMoreDom();t=this._getNextTr(),s.parentNode||n.insertBefore(s,t),this.showMore.updateDom()}}}},{key:"_getNextTr",value:function(){return this.showMore&&this.showMore.getDom().parentNode?this.showMore.getDom():this.append&&this.append.getDom().parentNode?this.append.getDom():void 0}},{key:"hide",value:function(t){var e=this.dom.tr,n=e?e.parentNode:void 0;n&&n.removeChild(e),this.dom.popupAnchor&&this.dom.popupAnchor.destroy(),this.hideChilds(t)}},{key:"hideChilds",value:function(t){if(this.childs&&this.expanded){var e=this.getAppendDom();e.parentNode&&e.parentNode.removeChild(e),this.childs.forEach((function(t){t.hide()}));var n=this.getShowMoreDom();n.parentNode&&n.parentNode.removeChild(n),t&&!t.resetVisibleChilds||(this.visibleChilds=this.getMaxVisibleChilds())}}},{key:"_updateCssClassName",value:function(){if(this.dom.field&&this.editor&&this.editor.options&&"function"==typeof this.editor.options.onClassName&&this.dom.tree){Object(v.removeAllClassNames)(this.dom.tree);var t=this.editor.options.onClassName({path:this.getPath(),field:this.field,value:this.value})||"";Object(v.addClassName)(this.dom.tree,"jsoneditor-values "+t)}}},{key:"recursivelyUpdateCssClassesOnNodes",value:function(){if(this._updateCssClassName(),Array.isArray(this.childs))for(var t=0;t<this.childs.length;t++)this.childs[t].recursivelyUpdateCssClassesOnNodes()}},{key:"expandTo",value:function(){for(var t=this.parent;t;)t.expanded||t.expand(),t=t.parent}},{key:"appendChild",value:function(t,e,n){if(this._hasChilds()){if(t.setParent(this),t.fieldEditable="object"===this.type,"array"===this.type&&(t.index=this.childs.length),"object"===this.type&&void 0===t.field&&t.setField(""),this.childs.push(t),this.expanded&&!1!==e){var i=t.getDom(),r=this._getNextTr(),o=r?r.parentNode:void 0;r&&o&&o.insertBefore(i,r),t.showChilds(),this.visibleChilds++}!1!==n&&(this.updateDom({updateIndexes:!0}),t.updateDom({recurse:!0}))}}},{key:"moveBefore",value:function(t,e,n){if(this._hasChilds()){var i=this.dom.tr?this.dom.tr.parentNode:void 0;if(i){var r=document.createElement("tr");r.style.height=i.clientHeight+"px",i.appendChild(r)}if(t.parent&&t.parent.removeChild(t),e instanceof P||!e)if(this.childs.length+1>this.visibleChilds){var o=this.childs[this.visibleChilds-1];this.insertBefore(t,o,n)}else this.appendChild(t,!0,n);else this.insertBefore(t,e,n);i&&i.removeChild(r)}}},{key:"insertBefore",value:function(t,e,n){if(this._hasChilds()){if(this.visibleChilds++,"object"===this.type&&void 0===t.field&&t.setField(""),e===this.append)t.setParent(this),t.fieldEditable="object"===this.type,this.childs.push(t);else{var i=this.childs.indexOf(e);if(-1===i)throw new Error("Node not found");t.setParent(this),t.fieldEditable="object"===this.type,this.childs.splice(i,0,t)}if(this.expanded){var r=t.getDom(),o=e.getDom(),a=o?o.parentNode:void 0;o&&a&&a.insertBefore(r,o),t.showChilds(),this.showChilds()}!1!==n&&(this.updateDom({updateIndexes:!0}),t.updateDom({recurse:!0}))}}},{key:"insertAfter",value:function(t,e){if(this._hasChilds()){var n=this.childs.indexOf(e),i=this.childs[n+1];i?this.insertBefore(t,i):this.appendChild(t)}}},{key:"search",value:function(t,e){Array.isArray(e)||(e=[]);var n=t?t.toLowerCase():void 0;return delete this.searchField,delete this.searchValue,void 0!==this.field&&e.length<=this.MAX_SEARCH_RESULTS&&(-1!==String(this.field).toLowerCase().indexOf(n)&&(this.searchField=!0,e.push({node:this,elem:"field"})),this._updateDomField()),this._hasChilds()?this.childs&&this.childs.forEach((function(n){n.search(t,e)})):void 0!==this.value&&e.length<=this.MAX_SEARCH_RESULTS&&(-1!==String(this.value).toLowerCase().indexOf(n)&&(this.searchValue=!0,e.push({node:this,elem:"value"})),this._updateDomValue()),e}},{key:"scrollTo",value:function(t){this.expandPathToNode(),this.dom.tr&&this.dom.tr.parentNode&&this.editor.scrollTo(this.dom.tr.offsetTop,t)}},{key:"expandPathToNode",value:function(){for(var t=this;t&&t.parent;){for(var e="array"===t.parent.type?t.index:t.parent.childs.indexOf(t);t.parent.visibleChilds<e+1;)t.parent.visibleChilds+=this.getMaxVisibleChilds();t.parent.expand(!1),t=t.parent}}},{key:"focus",value:function(e){if(t.focusElement=e,this.dom.tr&&this.dom.tr.parentNode){var n=this.dom;switch(e){case"drag":n.drag?n.drag.focus():n.menu.focus();break;case"menu":n.menu.focus();break;case"expand":this._hasChilds()?n.expand.focus():n.field&&this.fieldEditable?(n.field.focus(),Object(v.selectContentEditable)(n.field)):n.value&&!this._hasChilds()?(n.value.focus(),Object(v.selectContentEditable)(n.value)):n.menu.focus();break;case"field":n.field&&this.fieldEditable?(n.field.focus(),Object(v.selectContentEditable)(n.field)):n.value&&!this._hasChilds()?(n.value.focus(),Object(v.selectContentEditable)(n.value)):this._hasChilds()?n.expand.focus():n.menu.focus();break;case"value":default:n.select?n.select.focus():n.value&&!this._hasChilds()?(n.value.focus(),Object(v.selectContentEditable)(n.value)):n.field&&this.fieldEditable?(n.field.focus(),Object(v.selectContentEditable)(n.field)):this._hasChilds()?n.expand.focus():n.menu.focus()}}}},{key:"containsNode",value:function(t){if(this===t)return!0;var e=this.childs;if(e)for(var n=0,i=e.length;n<i;n++)if(e[n].containsNode(t))return!0;return!1}},{key:"removeChild",value:function(t,e){if(this.childs){var n=this.childs.indexOf(t);if(-1!==n){n<this.visibleChilds&&this.expanded&&this.visibleChilds--,t.hide(),delete t.searchField,delete t.searchValue;var i=this.childs.splice(n,1)[0];return i.parent=null,!1!==e&&this.updateDom({updateIndexes:!0}),i}}}},{key:"_remove",value:function(t){this.removeChild(t)}},{key:"changeType",value:function(t){var e=this.type;if(e!==t){if("string"!==t&&"auto"!==t||"string"!==e&&"auto"!==e){var n=this._detachFromDom();this.clearDom(),"object"===(this.type=t)?(this.childs||(this.childs=[]),this.childs.forEach((function(t){t.clearDom(),delete t.index,t.fieldEditable=!0,void 0===t.field&&(t.field="")})),"string"!==e&&"auto"!==e||(this.expanded=!0)):"array"===t?(this.childs||(this.childs=[]),this.childs.forEach((function(t,e){t.clearDom(),t.fieldEditable=!1,t.index=e})),"string"!==e&&"auto"!==e||(this.expanded=!0)):this.expanded=!1,this._attachToDom(n)}else this.type=t;"auto"!==t&&"string"!==t||(this.value="string"===t?String(this.value):Object(v.parseString)(String(this.value)),this.focus()),this.updateDom({updateIndexes:!0})}}},{key:"deepEqual",value:function(t){var e;if("array"===this.type){if(!Array.isArray(t))return!1;if(this.childs.length!==t.length)return!1;for(e=0;e<this.childs.length;e++)if(!this.childs[e].deepEqual(t[e]))return!1}else if("object"===this.type){if("object"!==s(t)||!t)return!1;var n=Object.keys(t);if(this.childs.length!==n.length)return!1;for(e=0;e<n.length;e++){var i=this.childs[e];if(i.field!==n[e]||!i.deepEqual(t[i.field]))return!1}}else if(this.value!==t)return!1;return!0}},{key:"_getDomValue",value:function(){if(this._clearValueError(),this.dom.value&&"array"!==this.type&&"object"!==this.type&&(this.valueInnerText=Object(v.getInnerText)(this.dom.value)),void 0!==this.valueInnerText)try{var t;if("string"===this.type)t=this._unescapeHTML(this.valueInnerText);else{var e=this._unescapeHTML(this.valueInnerText);t=Object(v.parseString)(e)}t!==this.value&&(this.value=t,this._debouncedOnChangeValue())}catch(t){this._setValueError(Object(b.c)("cannotParseValueError"))}}},{key:"_setValueError",value:function(t){this.valueError={message:t},this.updateError()}},{key:"_clearValueError",value:function(){this.valueError&&(this.valueError=null,this.updateError())}},{key:"_setFieldError",value:function(t){this.fieldError={message:t},this.updateError()}},{key:"_clearFieldError",value:function(){this.fieldError&&(this.fieldError=null,this.updateError())}},{key:"_onChangeValue",value:function(){var t=this.editor.getDomSelection();if(t.range){var e=Object(v.textDiff)(String(this.value),String(this.previousValue));t.range.startOffset=e.start,t.range.endOffset=e.end}var n=this.editor.getDomSelection();if(n.range){var i=Object(v.textDiff)(String(this.previousValue),String(this.value));n.range.startOffset=i.start,n.range.endOffset=i.end}this.editor._onAction("editValue",{path:this.getInternalPath(),oldValue:this.previousValue,newValue:this.value,oldSelection:t,newSelection:n}),this.previousValue=this.value}},{key:"_onChangeField",value:function(){var t=this.editor.getDomSelection(),e=this.previousField||"";if(t.range){var n=Object(v.textDiff)(this.field,e);t.range.startOffset=n.start,t.range.endOffset=n.end}var i=this.editor.getDomSelection();if(i.range){var r=Object(v.textDiff)(e,this.field);i.range.startOffset=r.start,i.range.endOffset=r.end}this.editor._onAction("editField",{parentPath:this.parent.getInternalPath(),index:this.getIndex(),oldValue:this.previousField,newValue:this.field,oldSelection:t,newSelection:i}),this.previousField=this.field}},{key:"_updateDomValue",value:function(){var t=this.dom.value;if(t){var e=["jsoneditor-value"],n=this.value,i="auto"===this.type?Object(v.getType)(n):this.type,r="string"===i&&Object(v.isUrl)(n);if(e.push("jsoneditor-"+i),r&&e.push("jsoneditor-url"),""===String(this.value)&&"array"!==this.type&&"object"!==this.type&&e.push("jsoneditor-empty"),this.searchValueActive&&e.push("jsoneditor-highlight-active"),this.searchValue&&e.push("jsoneditor-highlight"),t.className=e.join(" "),"array"===i||"object"===i){var o=this.childs?this.childs.length:0;t.title=this.type+" containing "+o+" items"}else r&&this.editable.value?t.title=Object(b.c)("openUrl"):t.title="";if("boolean"===i&&this.editable.value?(this.dom.checkbox||(this.dom.checkbox=document.createElement("input"),this.dom.checkbox.type="checkbox",this.dom.tdCheckbox=document.createElement("td"),this.dom.tdCheckbox.className="jsoneditor-tree",this.dom.tdCheckbox.appendChild(this.dom.checkbox),this.dom.tdValue.parentNode.insertBefore(this.dom.tdCheckbox,this.dom.tdValue)),this.dom.checkbox.checked=this.value):this.dom.tdCheckbox&&(this.dom.tdCheckbox.parentNode.removeChild(this.dom.tdCheckbox),delete this.dom.tdCheckbox,delete this.dom.checkbox),this.enum&&this.editable.value){if(!this.dom.select){this.dom.select=document.createElement("select"),this.id=this.field+"_"+(new Date).getUTCMilliseconds(),this.dom.select.id=this.id,this.dom.select.name=this.dom.select.id,this.dom.select.option=document.createElement("option"),this.dom.select.option.value="",this.dom.select.option.innerHTML="--",this.dom.select.appendChild(this.dom.select.option);for(var a=0;a<this.enum.length;a++)this.dom.select.option=document.createElement("option"),this.dom.select.option.value=this.enum[a],this.dom.select.option.innerHTML=this.enum[a],this.dom.select.option.value===this.value&&(this.dom.select.option.selected=!0),this.dom.select.appendChild(this.dom.select.option);this.dom.tdSelect=document.createElement("td"),this.dom.tdSelect.className="jsoneditor-tree",this.dom.tdSelect.appendChild(this.dom.select),this.dom.tdValue.parentNode.insertBefore(this.dom.tdSelect,this.dom.tdValue)}!this.schema||h(this.schema,"oneOf")||h(this.schema,"anyOf")||h(this.schema,"allOf")?delete this.valueFieldHTML:(this.valueFieldHTML=this.dom.tdValue.innerHTML,this.dom.tdValue.style.visibility="hidden",this.dom.tdValue.innerHTML="")}else this.dom.tdSelect&&(this.dom.tdSelect.parentNode.removeChild(this.dom.tdSelect),delete this.dom.tdSelect,delete this.dom.select,this.dom.tdValue.innerHTML=this.valueFieldHTML,this.dom.tdValue.style.visibility="",delete this.valueFieldHTML);if(this.editable.value&&this.editor.options.colorPicker&&"string"==typeof n&&Object(v.isValidColor)(n)?(this.dom.color||(this.dom.color=document.createElement("div"),this.dom.color.className="jsoneditor-color",this.dom.tdColor=document.createElement("td"),this.dom.tdColor.className="jsoneditor-tree",this.dom.tdColor.appendChild(this.dom.color),this.dom.tdValue.parentNode.insertBefore(this.dom.tdColor,this.dom.tdValue),this.dom.value.style.color="#1A1A1A"),this.dom.color.style.backgroundColor=n):this._deleteDomColor(),this._showTimestampTag()){this.dom.date||(this.dom.date=document.createElement("div"),this.dom.date.className="jsoneditor-date",this.dom.value.parentNode.appendChild(this.dom.date));var s=null;if("function"==typeof this.editor.options.timestampFormat&&(s=this.editor.options.timestampFormat({field:this.field,value:this.value,path:this.getPath()})),s){for(;this.dom.date.firstChild;)this.dom.date.removeChild(this.dom.date.firstChild);this.dom.date.appendChild(document.createTextNode(s))}else this.dom.date.innerHTML=new Date(n).toISOString();this.dom.date.title=new Date(n).toString()}else this.dom.date&&(this.dom.date.parentNode.removeChild(this.dom.date),delete this.dom.date);Object(v.stripFormatting)(t),this._updateDomDefault()}}},{key:"_deleteDomColor",value:function(){this.dom.color&&(this.dom.tdColor.parentNode.removeChild(this.dom.tdColor),delete this.dom.tdColor,delete this.dom.color,this.dom.value.style.color="")}},{key:"_updateDomField",value:function(){var t=this.dom.field;if(t){var e=Object(v.makeFieldTooltip)(this.schema,this.editor.options.language);e&&(t.title=e),(""===String(this.field)&&"array"!==this.parent.type?Object(v.addClassName):Object(v.removeClassName))(t,"jsoneditor-empty"),(this.searchFieldActive?Object(v.addClassName):Object(v.removeClassName))(t,"jsoneditor-highlight-active"),(this.searchField?Object(v.addClassName):Object(v.removeClassName))(t,"jsoneditor-highlight"),Object(v.stripFormatting)(t)}}},{key:"_getDomField",value:function(t){if(this._clearFieldError(),this.dom.field&&this.fieldEditable&&(this.fieldInnerText=Object(v.getInnerText)(this.dom.field)),void 0!==this.fieldInnerText)try{var e=this._unescapeHTML(this.fieldInnerText),n=this.parent.getFieldNames(this);-1!==n.indexOf(e)?t?(e=Object(v.findUniqueName)(e,n))!==this.field&&(this.field=e,this._debouncedOnChangeField()):this._setFieldError(Object(b.c)("duplicateFieldError")):e!==this.field&&(this.field=e,this._debouncedOnChangeField())}catch(t){this._setFieldError(Object(b.c)("cannotParseFieldError"))}}},{key:"_updateDomDefault",value:function(){if(this.schema&&void 0!==this.schema.default&&!this._hasChilds()){var t=this.dom.select?this.dom.select:this.dom.value;t&&(this.value===this.schema.default?(t.title=Object(b.c)("default"),Object(v.addClassName)(t,"jsoneditor-is-default"),Object(v.removeClassName)(t,"jsoneditor-is-not-default")):(t.removeAttribute("title"),Object(v.removeClassName)(t,"jsoneditor-is-default"),Object(v.addClassName)(t,"jsoneditor-is-not-default")))}}},{key:"_showTimestampTag",value:function(){if("number"!=typeof this.value)return!1;var t=this.editor.options.timestampTag;if("function"!=typeof t)return!0===t&&Object(v.isTimestamp)(this.field,this.value);var e=t({field:this.field,value:this.value,path:this.getPath()});return"boolean"==typeof e?e:Object(v.isTimestamp)(this.field,this.value)}},{key:"clearDom",value:function(){this.dom={}}},{key:"getDom",value:function(){var t=this.dom;if(t.tr)return t.tr;if(this._updateEditability(),t.tr=document.createElement("tr"),"tree"===(t.tr.node=this).editor.options.mode){var e=document.createElement("td");if(this.editable.field&&this.parent){var n=document.createElement("button");n.type="button",(t.drag=n).className="jsoneditor-button jsoneditor-dragarea",n.title=Object(b.c)("drag"),e.appendChild(n)}t.tr.appendChild(e);var i=document.createElement("td"),r=document.createElement("button");r.type="button",(t.menu=r).className="jsoneditor-button jsoneditor-contextmenu-button",r.title=Object(b.c)("actionsMenu"),i.appendChild(t.menu),t.tr.appendChild(i)}var o=document.createElement("td");return t.tr.appendChild(o),t.tree=this._createDomTree(),o.appendChild(t.tree),this.updateDom({updateIndexes:!0}),t.tr}},{key:"isVisible",value:function(){return this.dom&&this.dom.tr&&this.dom.tr.parentNode||!1}},{key:"isDescendantOf",value:function(t){for(var e=this.parent;e;){if(e===t)return!0;e=e.parent}return!1}},{key:"_createDomField",value:function(){return document.createElement("div")}},{key:"setHighlight",value:function(t){this.dom.tr&&(Object(t?v.addClassName:v.removeClassName)(this.dom.tr,"jsoneditor-highlight"),this.append&&this.append.setHighlight(t),this.childs&&this.childs.forEach((function(e){e.setHighlight(t)})))}},{key:"setSelected",value:function(t,e){this.selected=t,this.dom.tr&&(Object(t?v.addClassName:v.removeClassName)(this.dom.tr,"jsoneditor-selected"),Object(e?v.addClassName:v.removeClassName)(this.dom.tr,"jsoneditor-first"),this.append&&this.append.setSelected(t),this.showMore&&this.showMore.setSelected(t),this.childs&&this.childs.forEach((function(e){e.setSelected(t)})))}},{key:"updateValue",value:function(t){this.value=t,this.previousValue=t,this.valueError=void 0,this.updateDom()}},{key:"updateField",value:function(t){this.field=t,this.previousField=t,this.fieldError=void 0,this.updateDom()}},{key:"updateDom",value:function(e){var n=this.dom.tree;n&&(n.style.marginLeft=24*this.getLevel()+"px");var i=this.dom.field;if(i){var r;if(this.fieldEditable?(i.contentEditable=this.editable.field,i.spellcheck=!1,i.className="jsoneditor-field"):(i.contentEditable=!1,i.className="jsoneditor-readonly"),void 0!==this.index)r=this.index;else if(void 0!==this.field)r=this.field;else{var o=this.editor.options.schema?t._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):void 0;r=o&&o.title?o.title:this._hasChilds()?this.type:""}i.innerHTML=this._escapeHTML(r),this._updateSchema()}var a=this.dom.value;a&&("array"===this.type||"object"===this.type?this.updateNodeName():a.innerHTML=this._escapeHTML(this.value));var s=this.dom.tr;s&&("array"===this.type||"object"===this.type?(Object(v.addClassName)(s,"jsoneditor-expandable"),this.expanded?(Object(v.addClassName)(s,"jsoneditor-expanded"),Object(v.removeClassName)(s,"jsoneditor-collapsed")):(Object(v.addClassName)(s,"jsoneditor-collapsed"),Object(v.removeClassName)(s,"jsoneditor-expanded"))):(Object(v.removeClassName)(s,"jsoneditor-expandable"),Object(v.removeClassName)(s,"jsoneditor-expanded"),Object(v.removeClassName)(s,"jsoneditor-collapsed"))),this._updateDomField(),this._updateDomValue(),e&&!0===e.updateIndexes&&this._updateDomIndexes(),e&&!0===e.recurse&&this.childs&&this.childs.forEach((function(t){t.updateDom(e)})),this.error&&this.updateError(),this.append&&this.append.updateDom(),this.showMore&&this.showMore.updateDom(),this._updateCssClassName()}},{key:"_updateSchema",value:function(){this.editor&&this.editor.options&&(this.schema=this.editor.options.schema?t._findSchema(this.editor.options.schema,this.editor.options.schemaRefs||{},this.getPath()):null,this.schema?this.enum=t._findEnum(this.schema):delete this.enum)}},{key:"_updateDomIndexes",value:function(){var t=this.dom.value,e=this.childs;t&&e&&("array"===this.type?e.forEach((function(t,e){t.index=e;var n=t.dom.field;n&&(n.innerHTML=e)})):"object"===this.type&&e.forEach((function(t){void 0!==t.index&&(delete t.index,void 0===t.field&&(t.field=""))})))}},{key:"_createDomValue",value:function(){var t;return"array"===this.type?(t=document.createElement("div")).innerHTML="[...]":"object"===this.type?(t=document.createElement("div")).innerHTML="{...}":(!this.editable.value&&Object(v.isUrl)(this.value)?(t=document.createElement("a")).href=this.value:((t=document.createElement("div")).contentEditable=this.editable.value,t.spellcheck=!1),t.innerHTML=this._escapeHTML(this.value)),t}},{key:"_createDomExpandButton",value:function(){var t=document.createElement("button");return t.type="button",this._hasChilds()?(t.className=this.expanded?"jsoneditor-button jsoneditor-expanded":"jsoneditor-button jsoneditor-collapsed",t.title=Object(b.c)("expandTitle")):(t.className="jsoneditor-button jsoneditor-invisible",t.title=""),t}},{key:"_createDomTree",value:function(){var t=this.dom,e=document.createElement("table"),n=document.createElement("tbody");e.style.borderCollapse="collapse",e.className="jsoneditor-values",e.appendChild(n);var i=document.createElement("tr");n.appendChild(i);var r=document.createElement("td");r.className="jsoneditor-tree",i.appendChild(r),t.expand=this._createDomExpandButton(),r.appendChild(t.expand),t.tdExpand=r;var o=document.createElement("td");o.className="jsoneditor-tree",i.appendChild(o),t.field=this._createDomField(),o.appendChild(t.field),t.tdField=o;var a=document.createElement("td");a.className="jsoneditor-tree",i.appendChild(a),"object"!==this.type&&"array"!==this.type&&(a.appendChild(document.createTextNode(":")),a.className="jsoneditor-separator"),t.tdSeparator=a;var s=document.createElement("td");return s.className="jsoneditor-tree",i.appendChild(s),t.value=this._createDomValue(),s.appendChild(t.value),t.tdValue=s,e}},{key:"onEvent",value:function(t){var e=t.type,n=t.target||t.srcElement,i=this.dom,r=this,o=this._hasChilds();if("function"==typeof this.editor.options.onEvent&&this._onEvent(t),n!==i.drag&&n!==i.menu||("mouseover"===e?this.editor.highlighter.highlight(this):"mouseout"===e&&this.editor.highlighter.unhighlight()),"click"===e&&n===i.menu){var a=r.editor.highlighter;a.highlight(r),a.lock(),Object(v.addClassName)(i.menu,"jsoneditor-selected"),this.showContextMenu(i.menu,(function(){Object(v.removeClassName)(i.menu,"jsoneditor-selected"),a.unlock(),a.unhighlight()}))}if("click"===e&&n===i.expand&&o){var s=t.ctrlKey;this._onExpand(s)}"click"!==e||t.target!==r.dom.tdColor&&t.target!==r.dom.color||this._showColorPicker(),"change"===e&&n===i.checkbox&&(this.dom.value.innerHTML=!this.value,this._getDomValue(),this._updateDomDefault()),"change"===e&&n===i.select&&(this.dom.value.innerHTML=i.select.value,this._getDomValue(),this._updateDomValue());var l=i.value;if(n===l)switch(e){case"blur":case"change":this._getDomValue(),this._clearValueError(),this._updateDomValue();var c=this._escapeHTML(this.value);l.innerHTML!==c&&(l.innerHTML=c);break;case"input":this._getDomValue(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"click":t.ctrlKey&&this.editable.value&&Object(v.isUrl)(this.value)&&(t.preventDefault(),window.open(this.value,"_blank"));break;case"keyup":this._getDomValue(),this._updateDomValue();break;case"cut":case"paste":setTimeout((function(){r._getDomValue(),r._updateDomValue()}),1)}var u=i.field;if(n===u)switch(e){case"blur":this._getDomField(!0),this._updateDomField();var h=this._escapeHTML(this.field);u.innerHTML!==h&&(u.innerHTML=h);break;case"input":this._getDomField(),this._updateSchema(),this._updateDomField(),this._updateDomValue();break;case"keydown":case"mousedown":this.editor.selection=this.editor.getDomSelection();break;case"keyup":this._getDomField(),this._updateDomField();break;case"cut":case"paste":setTimeout((function(){r._getDomField(),r._updateDomField()}),1)}var d=i.tree;d&&n===d.parentNode&&"click"===e&&!t.hasMoved&&((void 0!==t.offsetX?t.offsetX<24*(this.getLevel()+1):t.pageX<Object(v.getAbsoluteLeft)(i.tdSeparator))||o?u&&(Object(v.setEndOfContentEditable)(u),u.focus()):l&&!this.enum&&(Object(v.setEndOfContentEditable)(l),l.focus())),(n!==i.tdExpand||o)&&n!==i.tdField&&n!==i.tdSeparator||"click"!==e||t.hasMoved||u&&(Object(v.setEndOfContentEditable)(u),u.focus()),"keydown"===e&&this.onKeyDown(t)}},{key:"_onEvent",value:function(t){var e=t.target;if(e===this.dom.field||e===this.dom.value){var n={field:this.getField(),path:this.getPath()};this._hasChilds()||e!==this.dom.value||(n.value=this.getValue()),this.editor.options.onEvent(n,t)}}},{key:"onKeyDown",value:function(e){var n,i,r,o,a,s,l,c,h,d,p,f,g,m=e.which||e.keyCode,y=e.target||e.srcElement,b=e.ctrlKey,x=e.shiftKey,w=e.altKey,_=!1,C="tree"===this.editor.options.mode,A=0<this.editor.multiselection.nodes.length?this.editor.multiselection.nodes:[this],I=A[0],S=A[A.length-1];if(13===m){if(y===this.dom.value)this.editable.value&&!e.ctrlKey||Object(v.isUrl)(this.value)&&(window.open(this.value,"_blank"),_=!0);else if(y===this.dom.expand&&this._hasChilds()){var M=e.ctrlKey;this._onExpand(M),y.focus(),_=!0}}else if(68===m)b&&C&&(t.onDuplicate(A),_=!0);else if(69===m)b&&(this._onExpand(x),y.focus(),_=!0);else if(77===m&&C)b&&(this.showContextMenu(y),_=!0);else if(46===m&&C)b&&(t.onRemove(A),_=!0);else if(45===m&&C)b&&!x?(this._onInsertBefore(),_=!0):b&&x&&(this._onInsertAfter(),_=!0);else if(35===m){if(w){var k=this._lastNode();k&&k.focus(t.focusElement||this._getElementName(y)),_=!0}}else if(36===m){if(w){var E=this._firstNode();E&&E.focus(t.focusElement||this._getElementName(y)),_=!0}}else if(37===m){if(w&&!x){var T=this._previousElement(y);T&&this.focus(this._getElementName(T)),_=!0}else if(w&&x&&C){if(S.expanded){var O=S.getAppendDom();r=O?O.nextSibling:void 0}else{var j=S.getDom();r=j.nextSibling}if(r){i=t.getNodeFromTarget(r),o=r.nextSibling;var L=t.getNodeFromTarget(o);i&&i instanceof P&&1!==S.parent.childs.length&&L&&L.parent&&(a=this.editor.getDomSelection(),s=(l=I.parent).childs[S.getIndex()+1]||l.append,c=I.getIndex(),h=L.getIndex(),d=l.getInternalPath(),p=L.parent.getInternalPath(),A.forEach((function(t){L.parent.moveBefore(t,L)})),this.focus(t.focusElement||this._getElementName(y)),this.editor._onAction("moveNodes",{count:A.length,fieldNames:A.map(u),oldParentPath:l.getInternalPath(),newParentPath:I.parent.getInternalPath(),oldIndex:s.getIndex(),newIndex:I.getIndex(),oldIndexRedo:c,newIndexRedo:h,oldParentPathRedo:d,newParentPathRedo:p,oldSelection:a,newSelection:this.editor.getDomSelection()}))}}}else if(38===m)w&&!x?((n=this._previousNode())&&(this.editor.deselect(!0),n.focus(t.focusElement||this._getElementName(y))),_=!0):!w&&b&&x&&C?((n=this._previousNode())&&((g=this.editor.multiselection).start=g.start||this,g.end=n,f=this.editor._findTopLevelNodes(g.start,g.end),this.editor.select(f),n.focus("field")),_=!0):w&&x&&C&&((n=I._previousNode())&&n.parent&&(a=this.editor.getDomSelection(),s=(l=I.parent).childs[S.getIndex()+1]||l.append,c=I.getIndex(),h=n.getIndex(),d=l.getInternalPath(),p=n.parent.getInternalPath(),A.forEach((function(t){n.parent.moveBefore(t,n)})),this.focus(t.focusElement||this._getElementName(y)),this.editor._onAction("moveNodes",{count:A.length,fieldNames:A.map(u),oldParentPath:l.getInternalPath(),newParentPath:I.parent.getInternalPath(),oldIndex:s.getIndex(),newIndex:I.getIndex(),oldIndexRedo:c,newIndexRedo:h,oldParentPathRedo:d,newParentPathRedo:p,oldSelection:a,newSelection:this.editor.getDomSelection()})),_=!0);else if(39===m){if(w&&!x){var D=this._nextElement(y);D&&this.focus(this._getElementName(D)),_=!0}else if(w&&x&&C){var R=(j=I.getDom()).previousSibling;R&&(n=t.getNodeFromTarget(R))&&n.parent&&!n.isVisible()&&(a=this.editor.getDomSelection(),s=(l=I.parent).childs[S.getIndex()+1]||l.append,c=I.getIndex(),h=n.getIndex(),d=l.getInternalPath(),p=n.parent.getInternalPath(),A.forEach((function(t){n.parent.moveBefore(t,n)})),this.focus(t.focusElement||this._getElementName(y)),this.editor._onAction("moveNodes",{count:A.length,fieldNames:A.map(u),oldParentPath:l.getInternalPath(),newParentPath:I.parent.getInternalPath(),oldIndex:s.getIndex(),newIndex:I.getIndex(),oldIndexRedo:c,newIndexRedo:h,oldParentPathRedo:d,newParentPathRedo:p,oldSelection:a,newSelection:this.editor.getDomSelection()}))}}else if(40===m)if(w&&!x)(i=this._nextNode())&&(this.editor.deselect(!0),i.focus(t.focusElement||this._getElementName(y))),_=!0;else if(!w&&b&&x&&C)(i=this._nextNode())&&((g=this.editor.multiselection).start=g.start||this,g.end=i,f=this.editor._findTopLevelNodes(g.start,g.end),this.editor.select(f),i.focus("field")),_=!0;else if(w&&x&&C){(i=S.expanded?S.append?S.append._nextNode():void 0:S._nextNode())&&!i.isVisible()&&(i=i.parent.showMore),i&&i instanceof P&&(i=S);var B=i&&(i._nextNode()||i.parent.append);B&&B.parent&&(a=this.editor.getDomSelection(),s=(l=I.parent).childs[S.getIndex()+1]||l.append,c=I.getIndex(),h=B.getIndex(),d=l.getInternalPath(),p=B.parent.getInternalPath(),A.forEach((function(t){B.parent.moveBefore(t,B)})),this.focus(t.focusElement||this._getElementName(y)),this.editor._onAction("moveNodes",{count:A.length,fieldNames:A.map(u),oldParentPath:l.getInternalPath(),newParentPath:I.parent.getInternalPath(),oldParentPathRedo:d,newParentPathRedo:p,oldIndexRedo:c,newIndexRedo:h,oldIndex:s.getIndex(),newIndex:I.getIndex(),oldSelection:a,newSelection:this.editor.getDomSelection()})),_=!0}_&&(e.preventDefault(),e.stopPropagation())}},{key:"_onExpand",value:function(t){if(t){var e=this.dom.tr.parentNode,n=e.parentNode,i=n.scrollTop;n.removeChild(e)}this.expanded?this.collapse(t):this.expand(t),t&&(n.appendChild(e),n.scrollTop=i)}},{key:"_showColorPicker",value:function(){if("function"==typeof this.editor.options.onColorPicker&&this.dom.color){var t=this;t._deleteDomColor(),t.updateDom();var e=Object(I.a)(this.dom.color,this.editor.getPopupAnchor());this.editor.options.onColorPicker(e,this.value,(function(e){"string"==typeof e&&e!==t.value&&(t._deleteDomColor(),t.value=e,t.updateDom(),t._debouncedOnChangeValue())}))}}},{key:"getFieldNames",value:function(t){return"object"===this.type?this.childs.filter((function(e){return e!==t})).map((function(t){return t.field})):[]}},{key:"_onInsertBefore",value:function(e,n,i){var r=this.editor.getDomSelection(),o=new t(this.editor,{field:void 0!==e?e:"",value:void 0!==n?n:"",type:i});o.expand(!0);var a=this.getInternalPath();this.parent.insertBefore(o,this),this.editor.highlighter.unhighlight(),o.focus("field");var s=this.editor.getDomSelection();this.editor._onAction("insertBeforeNodes",{nodes:[o],paths:[o.getInternalPath()],beforePath:a,parentPath:this.parent.getInternalPath(),oldSelection:r,newSelection:s})}},{key:"_onInsertAfter",value:function(e,n,i){var r=this.editor.getDomSelection(),o=new t(this.editor,{field:void 0!==e?e:"",value:void 0!==n?n:"",type:i});o.expand(!0),this.parent.insertAfter(o,this),this.editor.highlighter.unhighlight(),o.focus("field");var a=this.editor.getDomSelection();this.editor._onAction("insertAfterNodes",{nodes:[o],paths:[o.getInternalPath()],afterPath:this.getInternalPath(),parentPath:this.parent.getInternalPath(),oldSelection:r,newSelection:a})}},{key:"_onAppend",value:function(e,n,i){var r=this.editor.getDomSelection(),o=new t(this.editor,{field:void 0!==e?e:"",value:void 0!==n?n:"",type:i});o.expand(!0),this.parent.appendChild(o),this.editor.highlighter.unhighlight(),o.focus("field");var a=this.editor.getDomSelection();this.editor._onAction("appendNodes",{nodes:[o],paths:[o.getInternalPath()],parentPath:this.parent.getInternalPath(),oldSelection:r,newSelection:a})}},{key:"_onChangeType",value:function(t){var e=this.type;if(t!==e){var n=this.editor.getDomSelection();this.changeType(t);var i=this.editor.getDomSelection();this.editor._onAction("changeType",{path:this.getInternalPath(),oldType:e,newType:t,oldSelection:n,newSelection:i})}}},{key:"sort",value:function(t,e,n){var i=!(2<arguments.length&&void 0!==n)||n;if("string"==typeof t&&(t=Object(v.parsePath)(t)),this._hasChilds()){this.hideChilds();var r=this.childs;this.childs=this.childs.concat();var o="desc"===e?-1:1;"object"===this.type?this.childs.sort((function(t,e){return o*A()(t.field,e.field)})):this.childs.sort((function(e,n){var i=e.getNestedChild(t),r=n.getNestedChild(t);if(!i)return o;if(!r)return-o;var a=i.value,s=r.value;return"string"!=typeof a&&"string"!=typeof s?s<a?o:a<s?-o:0:o*A()(a,s)})),this._updateDomIndexes(),this.showChilds(),!0===i&&this.editor._onAction("sort",{path:this.getInternalPath(),oldChilds:r,newChilds:this.childs})}}},{key:"update",value:function(t){var e=this.getInternalValue();this.setValue(t),this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:e,newValue:this.getInternalValue()})}},{key:"_detachFromDom",value:function(){var t,e=this.dom.tr?this.dom.tr.parentNode:void 0,n=(t=this.expanded?this.getAppendDom():this.getDom())&&t.parentNode?t.nextSibling:void 0;return this.hide({resetVisibleChilds:!1}),{table:e,nextTr:n}}},{key:"_attachToDom",value:function(t){t.table&&(t.nextTr?t.table.insertBefore(this.getDom(),t.nextTr):t.table.appendChild(this.getDom())),this.expanded&&this.showChilds()}},{key:"transform",value:function(t){if(this._hasChilds()){this.hideChilds();try{var e=this.getInternalValue(),n=this.getValue(),i=this.editor.options.executeQuery(n,t);this.setValue(i);var r=this.getInternalValue();this.editor._onAction("transform",{path:this.getInternalPath(),oldValue:e,newValue:r}),this.showChilds()}catch(t){this.showChilds(),this.editor._onError(t)}}}},{key:"extract",value:function(){this.editor.node.hideChilds(),this.hideChilds();try{var t=this.editor.node.getInternalValue();this.editor._setRoot(this);var e=this.editor.node.getInternalValue();this.editor._onAction("transform",{path:this.editor.node.getInternalPath(),oldValue:t,newValue:e})}catch(t){this.editor._onError(t)}finally{this.updateDom({recurse:!0}),this.showChilds()}}},{key:"getNestedChild",value:function(t){for(var e=0,n=this;n&&e<t.length;)n=n.findChildByProperty(t[e]),e++;return n}},{key:"findChildByProperty",value:function(t){if("object"===this.type)return this.childs.find((function(e){return e.field===t}))}},{key:"getAppendDom",value:function(){return this.append||(this.append=new P(this.editor),this.append.setParent(this)),this.append.getDom()}},{key:"getShowMoreDom",value:function(){return this.showMore||(this.showMore=new j(this.editor,this)),this.showMore.getDom()}},{key:"nextSibling",value:function(){var t=this.parent.childs.indexOf(this);return this.parent.childs[t+1]||this.parent.append}},{key:"_previousNode",value:function(){var e=null,n=this.getDom();if(n&&n.parentNode)for(var i=n;i=i.previousSibling,e=t.getNodeFromTarget(i),i&&e&&e instanceof P&&!e.isVisible(););return e}},{key:"_nextNode",value:function(){var e=null,n=this.getDom();if(n&&n.parentNode)for(var i=n;i=i.nextSibling,e=t.getNodeFromTarget(i),i&&e&&e instanceof P&&!e.isVisible(););return e}},{key:"_firstNode",value:function(){var e=null,n=this.getDom();if(n&&n.parentNode){var i=n.parentNode.firstChild;e=t.getNodeFromTarget(i)}return e}},{key:"_lastNode",value:function(){var e=null,n=this.getDom();if(n&&n.parentNode){var i=n.parentNode.lastChild;for(e=t.getNodeFromTarget(i);i&&e&&!e.isVisible();)i=i.previousSibling,e=t.getNodeFromTarget(i)}return e}},{key:"_previousElement",value:function(t){var e=this.dom;switch(t){case e.value:if(this.fieldEditable)return e.field;case e.field:if(this._hasChilds())return e.expand;case e.expand:return e.menu;case e.menu:if(e.drag)return e.drag;default:return null}}},{key:"_nextElement",value:function(t){var e=this.dom;switch(t){case e.drag:return e.menu;case e.menu:if(this._hasChilds())return e.expand;case e.expand:if(this.fieldEditable)return e.field;case e.field:if(!this._hasChilds())return e.value;default:return null}}},{key:"_getElementName",value:function(t){var e=this;return Object.keys(this.dom).find((function(n){return e.dom[n]===t}))}},{key:"_hasChilds",value:function(){return"array"===this.type||"object"===this.type}},{key:"addTemplates",value:function(t,e){var n=this,i=n.editor.options.templates;null!=i&&(i.length&&t.push({type:"separator"}),i.forEach((function(i){t.push({text:i.text,className:i.className||"jsoneditor-type-object",title:i.title,click:e?function(t,e){n._onAppend(t,e)}.bind(this,i.field,i.value):function(t,e){n._onInsertBefore(t,e)}.bind(this,i.field,i.value)})})))}},{key:"showContextMenu",value:function(e,n){var i=this,r=t.TYPE_TITLES,o=[];if(this.editable.value&&o.push({text:Object(b.c)("type"),title:Object(b.c)("typeTitle"),className:"jsoneditor-type-"+this.type,submenu:[{text:Object(b.c)("auto"),className:"jsoneditor-type-auto"+("auto"===this.type?" jsoneditor-selected":""),title:r.auto,click:function(){i._onChangeType("auto")}},{text:Object(b.c)("array"),className:"jsoneditor-type-array"+("array"===this.type?" jsoneditor-selected":""),title:r.array,click:function(){i._onChangeType("array")}},{text:Object(b.c)("object"),className:"jsoneditor-type-object"+("object"===this.type?" jsoneditor-selected":""),title:r.object,click:function(){i._onChangeType("object")}},{text:Object(b.c)("string"),className:"jsoneditor-type-string"+("string"===this.type?" jsoneditor-selected":""),title:r.string,click:function(){i._onChangeType("string")}}]}),this._hasChilds()&&(this.editor.options.enableSort&&o.push({text:Object(b.c)("sort"),title:Object(b.c)("sortTitle",{type:this.type}),className:"jsoneditor-sort-asc",click:function(){i.showSortModal()}}),this.editor.options.enableTransform&&o.push({text:Object(b.c)("transform"),title:Object(b.c)("transformTitle",{type:this.type}),className:"jsoneditor-transform",click:function(){i.showTransformModal()}}),this.parent&&o.push({text:Object(b.c)("extract"),title:Object(b.c)("extractTitle",{type:this.type}),className:"jsoneditor-extract",click:function(){i.extract()}})),this.parent&&this.parent._hasChilds()){o.length&&o.push({type:"separator"});var a=i.parent.childs;if(i===a[a.length-1]){var s=[{text:Object(b.c)("auto"),className:"jsoneditor-type-auto",title:r.auto,click:function(){i._onAppend("","","auto")}},{text:Object(b.c)("array"),className:"jsoneditor-type-array",title:r.array,click:function(){i._onAppend("",[])}},{text:Object(b.c)("object"),className:"jsoneditor-type-object",title:r.object,click:function(){i._onAppend("",{})}},{text:Object(b.c)("string"),className:"jsoneditor-type-string",title:r.string,click:function(){i._onAppend("","","string")}}];i.addTemplates(s,!0),o.push({text:Object(b.c)("appendText"),title:Object(b.c)("appendTitle"),submenuTitle:Object(b.c)("appendSubmenuTitle"),className:"jsoneditor-append",click:function(){i._onAppend("","","auto")},submenu:s})}var l=[{text:Object(b.c)("auto"),className:"jsoneditor-type-auto",title:r.auto,click:function(){i._onInsertBefore("","","auto")}},{text:Object(b.c)("array"),className:"jsoneditor-type-array",title:r.array,click:function(){i._onInsertBefore("",[])}},{text:Object(b.c)("object"),className:"jsoneditor-type-object",title:r.object,click:function(){i._onInsertBefore("",{})}},{text:Object(b.c)("string"),className:"jsoneditor-type-string",title:r.string,click:function(){i._onInsertBefore("","","string")}}];i.addTemplates(l,!1),o.push({text:Object(b.c)("insert"),title:Object(b.c)("insertTitle"),submenuTitle:Object(b.c)("insertSub"),className:"jsoneditor-insert",click:function(){i._onInsertBefore("","","auto")},submenu:l}),this.editable.field&&(o.push({text:Object(b.c)("duplicateText"),title:Object(b.c)("duplicateField"),className:"jsoneditor-duplicate",click:function(){t.onDuplicate(i)}}),o.push({text:Object(b.c)("removeText"),title:Object(b.c)("removeField"),className:"jsoneditor-remove",click:function(){t.onRemove(i)}}))}if(this.editor.options.onCreateMenu){var c=i.getPath();o=this.editor.options.onCreateMenu(o,{type:"single",path:c,paths:[c]})}new w.a(o,{close:n}).show(e,this.editor.getPopupAnchor())}},{key:"showSortModal",value:function(){var t=this,e=this.editor.options.modalAnchor||k.a,n=this.getValue();Object(S.showSortModal)(e,n,(function(e){var n=e.path,i=Object(v.parsePath)(n);t.sortedBy=e,t.sort(i,e.direction)}),t.sortedBy)}},{key:"showTransformModal",value:function(){var t=this,e=this.editor.options,n=e.modalAnchor,i=e.createQuery,r=e.executeQuery,o=e.queryDescription,a=this.getValue();Object(M.showTransformModal)({anchor:n||k.a,json:a,queryDescription:o,createQuery:i,executeQuery:r,onTransform:function(e){t.transform(e)}})}},{key:"_getType",value:function(t){return t instanceof Array?"array":t instanceof Object?"object":"string"==typeof t&&"string"!=typeof Object(v.parseString)(t)?"string":"auto"}},{key:"_escapeHTML",value:function(t){if("string"!=typeof t)return String(t);var e=String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/ {2}/g," &nbsp;").replace(/^ /,"&nbsp;").replace(/ $/,"&nbsp;"),n=JSON.stringify(e),i=n.substring(1,n.length-1);return!0===this.editor.options.escapeUnicode&&(i=Object(v.escapeUnicodeChars)(i)),i}},{key:"_unescapeHTML",value:function(t){var e='"'+this._escapeJSON(t)+'"';return Object(v.parse)(e).replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&nbsp;|\u00A0/g," ").replace(/&amp;/g,"&")}},{key:"_escapeJSON",value:function(t){for(var e="",n=0;n<t.length;){var i=t.charAt(n);"\n"===i?e+="\\n":"\\"===i?(e+=i,n++,""!==(i=t.charAt(n))&&-1!=='"\\/bfnrtu'.indexOf(i)||(e+="\\"),e+=i):e+='"'===i?'\\"':i,n++}return e}},{key:"updateNodeName",value:function(){var t,e=this.childs?this.childs.length:0;if("object"===this.type||"array"===this.type){if(this.editor.options.onNodeName)try{t=this.editor.options.onNodeName({path:this.getPath(),size:e,type:this.type})}catch(t){console.error("Error in onNodeName callback: ",t)}this.dom.value.innerHTML="object"===this.type?"{"+(t||e)+"}":"["+(t||e)+"]"}}},{key:"recursivelyUpdateNodeName",value:function(){var t;if(this.expanded&&(this.updateNodeName(),"undefined"!==this.childs))for(t in this.childs)this.childs[t].recursivelyUpdateNodeName()}}])&&l(e.prototype,n),t}();E.prototype.DEBOUNCE_INTERVAL=150,E.prototype.MAX_SEARCH_RESULTS=999;var T=100;E.focusElement=void 0,E.select=function(t){setTimeout((function(){Object(v.selectContentEditable)(t)}),0)},E.onDragStart=function(t,e){if(!Array.isArray(t))return E.onDragStart([t],e);if(0!==t.length){var n=t[0],i=t[t.length-1],r=n.parent,o=E.getNodeFromTarget(e.target),a=n.editor,s=Object(v.getAbsoluteTop)(o.dom.tr)-Object(v.getAbsoluteTop)(n.dom.tr);a.mousemove||(a.mousemove=Object(v.addEventListener)(window,"mousemove",(function(e){E.onDrag(t,e)}))),a.mouseup||(a.mouseup=Object(v.addEventListener)(window,"mouseup",(function(e){E.onDragEnd(t,e)}))),a.highlighter.lock(),a.drag={oldCursor:document.body.style.cursor,oldSelection:a.getDomSelection(),oldPaths:t.map(c),oldParent:r,oldNextNode:r.childs[i.getIndex()+1]||r.append,oldParentPathRedo:r.getInternalPath(),oldIndexRedo:n.getIndex(),mouseX:e.pageX,offsetY:s,level:n.getLevel()},document.body.style.cursor="move",e.preventDefault()}},E.onDrag=function(t,e){if(!Array.isArray(t))return E.onDrag([t],e);if(0!==t.length){var n,i,r,o,a,s,l,c,u,h,d,p=t[0].editor,f=e.pageY-p.drag.offsetY,g=e.pageX,m=!1,y=t[0],b=y.dom.tr,x=Object(v.getAbsoluteTop)(b),w=b.offsetHeight;if(f<x){for(n=b;n=n.previousSibling,s=E.getNodeFromTarget(n),c=n?Object(v.getAbsoluteTop)(n):0,n&&f<c;);s&&!s.parent&&(s=void 0),s||(n=(a=b.parentNode.firstChild)?a.nextSibling:void 0,(s=E.getNodeFromTarget(n))===y&&(s=void 0)),s&&s.isVisible()&&(c=(n=s.dom.tr)?Object(v.getAbsoluteTop)(n):0)+w<f&&(s=void 0),s&&(t.forEach((function(t){s.parent.moveBefore(t,s)})),m=!0)}else{var _=t[t.length-1];if(r=(o=_.expanded&&_.append?_.append.getDom():_.dom.tr)?o.nextSibling:void 0){for(u=Object(v.getAbsoluteTop)(r),i=r;l=E.getNodeFromTarget(i),i&&(h=i.nextSibling?Object(v.getAbsoluteTop)(i.nextSibling):0,d=i?h-u:0,l&&l.parent.childs.length===t.length&&l.parent.childs[t.length-1]===_&&(x+=27),i=i.nextSibling),i&&x+d<f;);if(l&&l.parent){var C=g-p.drag.mouseX,A=Math.round(C/24/2),I=p.drag.level+A,S=l.getLevel();for(n=l.dom.tr&&l.dom.tr.previousSibling;S<I&&n;){if(s=E.getNodeFromTarget(n),!t.some((function(t){return t===s||s.isDescendantOf(t)}))){if(!(s instanceof P))break;var M=s.parent.childs;if(M.length===t.length&&M[t.length-1]===_)break;S=(l=E.getNodeFromTarget(n)).getLevel()}n=n.previousSibling}l instanceof P&&!l.isVisible()&&l.parent.showMore.isVisible()&&(l=l._nextNode()),l&&l.dom.tr&&o.nextSibling!==l.dom.tr&&(t.forEach((function(t){l.parent.moveBefore(t,l)})),m=!0)}}}m&&(p.drag.mouseX=g,p.drag.level=y.getLevel()),p.startAutoScroll(f),e.preventDefault()}},E.onDragEnd=function(t,e){if(!Array.isArray(t))return E.onDrag([t],e);if(0!==t.length){var n=t[0],i=n.editor;t[0]&&t[0].dom.menu.focus();var r=i.drag.oldParent.getInternalPath(),o=n.parent.getInternalPath(),a=i.drag.oldParent===n.parent,s=i.drag.oldNextNode.getIndex(),l=n.getIndex(),c=i.drag.oldParentPathRedo,h=i.drag.oldIndexRedo,d=a&&h<l?l+t.length:l;a&&h===l||i._onAction("moveNodes",{count:t.length,fieldNames:t.map(u),oldParentPath:r,newParentPath:o,oldIndex:s,newIndex:l,oldIndexRedo:h,newIndexRedo:d,oldParentPathRedo:c,newParentPathRedo:null,oldSelection:i.drag.oldSelection,newSelection:i.getDomSelection()}),document.body.style.cursor=i.drag.oldCursor,i.highlighter.unlock(),t.forEach((function(t){t.updateDom(),e.target!==t.dom.drag&&e.target!==t.dom.menu&&i.highlighter.unhighlight()})),delete i.drag,i.mousemove&&(Object(v.removeEventListener)(window,"mousemove",i.mousemove),delete i.mousemove),i.mouseup&&(Object(v.removeEventListener)(window,"mouseup",i.mouseup),delete i.mouseup),i.stopAutoScroll(),e.preventDefault()}},E._findEnum=function(t){if(t.enum)return t.enum;var e=t.oneOf||t.anyOf||t.allOf;if(e){var n=e.filter((function(t){return t.enum}));if(0<n.length)return n[0].enum}return null},E._findSchema=function(t,e,n){var i=t,r=i,o=t.oneOf||t.anyOf||t.allOf;o=o||[t];for(var a=0;a<o.length;a++){"$ref"in(i=o[a])&&"string"==typeof i.$ref&&(i=e[i.$ref])&&(r=E._findSchema(i,e,n));for(var s=0;s<n.length&&i;s++){var l=n.slice(s+1,n.length),c=n[s];if("string"!=typeof c||!i.patternProperties||i.properties&&c in i.properties)"string"==typeof c&&i.properties?c in i.properties?(i=i.properties[c])&&(r=E._findSchema(i,e,l)):r=null:"number"==typeof c&&i.items&&(i=i.items)&&(r=E._findSchema(i,e,l));else for(var u in i.patternProperties)c.match(u)&&(r=E._findSchema(i.patternProperties[u],e,l))}}return r===t&&0<n.length?null:r},E.onRemove=function(t){if(!Array.isArray(t))return E.onRemove([t]);if(t&&0<t.length){var e=t[0],n=e.parent,i=e.editor,r=e.getIndex();i.highlighter.unhighlight();var o=i.getDomSelection();E.blurNodes(t);var a=i.getDomSelection(),s=t.map(c);t.forEach((function(t){t.parent._remove(t)})),i._onAction("removeNodes",{nodes:t,paths:s,parentPath:n.getInternalPath(),index:r,oldSelection:o,newSelection:a})}},E.onDuplicate=function(t){if(!Array.isArray(t))return E.onDuplicate([t]);if(t&&0<t.length){var e=t[t.length-1],n=e.parent,i=e.editor;i.deselect(i.multiselection.nodes);var r=i.getDomSelection(),o=e,a=t.map((function(t){var e=t.clone();if("object"===t.parent.type){var i=t.parent.getFieldNames();e.field=Object(v.findUniqueName)(t.field,i)}return n.insertAfter(e,o),o=e}));1===t.length?"object"===a[0].parent.type?(a[0].dom.field.innerHTML=t[0].field,a[0].focus("field")):a[0].focus():i.select(a);var s=i.getDomSelection();i._onAction("duplicateNodes",{paths:t.map(c),clonePaths:a.map(c),afterPath:e.getInternalPath(),parentPath:n.getInternalPath(),oldSelection:r,newSelection:s})}},E.getNodeFromTarget=function(t){for(;t;){if(t.node)return t.node;t=t.parentNode}},E.targetIsColorPicker=function(t){var e=E.getNodeFromTarget(t);if(e)for(var n=t&&t.parentNode;n;){if(n===e.dom.color)return!0;n=n.parentNode}return!1},E.blurNodes=function(t){if(Array.isArray(t)){var e=t[0],n=e.parent,i=e.getIndex();n.childs[i+t.length]?n.childs[i+t.length].focus():n.childs[i-1]?n.childs[i-1].focus():n.focus()}else E.blurNodes([t])},E.TYPE_TITLES={auto:Object(b.c)("autoType"),object:Object(b.c)("objectType"),array:Object(b.c)("arrayType"),string:Object(b.c)("stringType")};var O,P=((d.prototype=new(O=E)).getDom=function(){var t=this.dom;if(t.tr)return t.tr;this._updateEditability();var e=document.createElement("tr");if(e.className="jsoneditor-append",e.node=this,t.tr=e,"tree"===this.editor.options.mode){t.tdDrag=document.createElement("td");var n=document.createElement("td");t.tdMenu=n;var i=document.createElement("button");i.type="button",i.className="jsoneditor-button jsoneditor-contextmenu-button",i.title="Click to open the actions menu (Ctrl+M)",t.menu=i,n.appendChild(t.menu)}var r=document.createElement("td"),o=document.createElement("div");return o.innerHTML="("+Object(b.c)("empty")+")",o.className="jsoneditor-readonly",r.appendChild(o),t.td=r,t.text=o,this.updateDom(),e},d.prototype.getPath=function(){return null},d.prototype.getIndex=function(){return null},d.prototype.updateDom=function(t){var e=this.dom,n=e.td;n&&(n.style.paddingLeft=24*this.getLevel()+26+"px");var i=e.text;i&&(i.innerHTML="("+Object(b.c)("empty")+" "+this.parent.type+")");var r=e.tr;this.isVisible()?e.tr.firstChild||(e.tdDrag&&r.appendChild(e.tdDrag),e.tdMenu&&r.appendChild(e.tdMenu),r.appendChild(n)):e.tr.firstChild&&(e.tdDrag&&r.removeChild(e.tdDrag),e.tdMenu&&r.removeChild(e.tdMenu),r.removeChild(n))},d.prototype.isVisible=function(){return 0===this.parent.childs.length},d.prototype.showContextMenu=function(t,e){var n=this,i=O.TYPE_TITLES,r=[{text:Object(b.c)("auto"),className:"jsoneditor-type-auto",title:i.auto,click:function(){n._onAppend("","","auto")}},{text:Object(b.c)("array"),className:"jsoneditor-type-array",title:i.array,click:function(){n._onAppend("",[])}},{text:Object(b.c)("object"),className:"jsoneditor-type-object",title:i.object,click:function(){n._onAppend("",{})}},{text:Object(b.c)("string"),className:"jsoneditor-type-string",title:i.string,click:function(){n._onAppend("","","string")}}];n.addTemplates(r,!0);var o=[{text:Object(b.c)("appendText"),title:Object(b.c)("appendTitleAuto"),submenuTitle:Object(b.c)("appendSubmenuTitle"),className:"jsoneditor-insert",click:function(){n._onAppend("","","auto")},submenu:r}];if(this.editor.options.onCreateMenu){var a=n.parent.getPath();o=this.editor.options.onCreateMenu(o,{type:"append",path:a,paths:[a]})}new w.a(o,{close:e}).show(t,this.editor.getPopupAnchor())},d.prototype.onEvent=function(t){var e=t.type,n=t.target||t.srcElement,i=this.dom;if(n===i.menu&&("mouseover"===e?this.editor.highlighter.highlight(this.parent):"mouseout"===e&&this.editor.highlighter.unhighlight()),"click"===e&&n===i.menu){var r=this.editor.highlighter;r.highlight(this.parent),r.lock(),Object(v.addClassName)(i.menu,"jsoneditor-selected"),this.showContextMenu(i.menu,(function(){Object(v.removeClassName)(i.menu,"jsoneditor-selected"),r.unlock(),r.unhighlight()}))}"keydown"===e&&this.onKeyDown(t)},d),j=((p.prototype=new E).getDom=function(){if(this.dom.tr)return this.dom.tr;if(this._updateEditability(),!this.dom.tr){var t=this,e=this.parent,n=document.createElement("a");n.appendChild(document.createTextNode(Object(b.c)("showMore"))),n.href="#",n.onclick=function(n){return e.visibleChilds=Math.floor(e.visibleChilds/e.getMaxVisibleChilds()+1)*e.getMaxVisibleChilds(),t.updateDom(),e.showChilds(),n.preventDefault(),!1};var i=document.createElement("a");i.appendChild(document.createTextNode(Object(b.c)("showAll"))),i.href="#",i.onclick=function(n){return e.visibleChilds=1/0,t.updateDom(),e.showChilds(),n.preventDefault(),!1};var r=document.createElement("div"),o=document.createTextNode(this._getShowMoreText());r.className="jsoneditor-show-more",r.appendChild(o),r.appendChild(n),r.appendChild(document.createTextNode(". ")),r.appendChild(i),r.appendChild(document.createTextNode(". "));var a=document.createElement("td");a.appendChild(r);var s=document.createElement("tr");"tree"===this.editor.options.mode&&(s.appendChild(document.createElement("td")),s.appendChild(document.createElement("td"))),s.appendChild(a),s.className="jsoneditor-show-more",this.dom.tr=s,this.dom.moreContents=r,this.dom.moreText=o}return this.updateDom(),this.dom.tr},p.prototype.updateDom=function(t){if(this.isVisible()){if(this.dom.tr.node=this.parent.childs[this.parent.visibleChilds],!this.dom.tr.parentNode){var e=this.parent._getNextTr();e&&e.parentNode.insertBefore(this.dom.tr,e)}this.dom.moreText.nodeValue=this._getShowMoreText(),this.dom.moreContents.style.marginLeft=24*(this.getLevel()+1)+"px"}else this.dom.tr&&this.dom.tr.parentNode&&this.dom.tr.parentNode.removeChild(this.dom.tr)},p.prototype._getShowMoreText=function(){return Object(b.c)("showMoreStatus",{visibleChilds:this.parent.visibleChilds,totalChilds:this.parent.childs.length})+" "},p.prototype.isVisible=function(){return this.parent.expanded&&this.parent.childs.length>this.parent.visibleChilds},p.prototype.onEvent=function(t){"keydown"===t.type&&this.onKeyDown(t)},p),L=n(8),D=n(9),R={start:function(t,e){return 0===e.indexOf(t)},contain:function(t,e){return-1<e.indexOf(t)}},B=n(4),N={create:function(t,e){if(!t)throw new Error("No container element provided.");this.container=t,this.dom={},this.highlighter=new m,this.selection=void 0,this.multiselection={nodes:[]},this.validateSchema=null,this.validationSequence=0,this.errorNodes=[],this.lastSchemaErrors=void 0,this.node=null,this.focusTarget=null,this._setOptions(e),e.autocomplete&&(this.autocomplete=function(t){function e(t){var e,n;document.createRange?((e=document.createRange()).selectNodeContents(t),e.collapse(!1),(n=window.getSelection()).removeAllRanges(),n.addRange(e)):document.selection&&((e=document.body.createTextRange()).moveToElementText(t),e.collapse(!1),e.select())}function n(t){return void 0===c&&((c=document.createElement("span")).style.visibility="hidden",c.style.position="fixed",c.style.outline="0",c.style.margin="0",c.style.padding="0",c.style.border="0",c.style.left="0",c.style.whiteSpace="pre",c.style.fontSize=a,c.style.fontFamily=s,c.style.fontWeight="normal",document.body.appendChild(c)),c.innerHTML=String(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),c.getBoundingClientRect().right}function i(){this.style.backgroundColor="#ddd"}function r(){this.style.backgroundColor=""}function o(){m.hide(),m.onmouseselection(this.__hint,m.rs)}(t=t||{}).filter=t.filter||"start",t.trigger=t.trigger||"keydown",t.confirmKeys=t.confirmKeys||[39,35,9],t.caseSensitive=t.caseSensitive||!1;var a="",s="",l=document.createElement("div");l.style.position="relative",l.style.outline="0",l.style.border="0",l.style.margin="0",l.style.padding="0";var c,u,h=document.createElement("div");h.className="autocomplete dropdown",h.style.position="absolute",h.style.visibility="hidden";var d,p,f,g,m,v={onArrowDown:function(){},onArrowUp:function(){},onEnter:function(){},onTab:function(){},startFrom:0,options:[],element:null,elementHint:null,elementStyle:null,wrapper:l,show:function(t,e,n){var i=this;this.startFrom=e,this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null),""===a&&(a=window.getComputedStyle(t).getPropertyValue("font-size")),""===s&&(s=window.getComputedStyle(t).getPropertyValue("font-family")),h.style.marginLeft="0",h.style.marginTop=t.getBoundingClientRect().height+"px",this.options=n.map(String),this.element!==t&&(this.element=t,this.elementStyle={zIndex:this.element.style.zIndex,position:this.element.style.position,backgroundColor:this.element.style.backgroundColor,borderColor:this.element.style.borderColor}),this.element.style.zIndex=3,this.element.style.position="relative",this.element.style.backgroundColor="transparent",this.element.style.borderColor="transparent",this.elementHint=t.cloneNode(),this.elementHint.className="autocomplete hint",this.elementHint.style.zIndex=2,this.elementHint.style.position="absolute",this.elementHint.onfocus=function(){i.element.focus()},this.element.addEventListener&&(this.element.removeEventListener("keydown",b),this.element.addEventListener("keydown",b,!1),this.element.removeEventListener("blur",x),this.element.addEventListener("blur",x,!1)),l.appendChild(this.elementHint),l.appendChild(h),t.parentElement.appendChild(l),this.repaint(t)},setText:function(t){this.element.innerText=t},getText:function(){return this.element.innerText},hideDropDown:function(){this.wrapper.remove(),this.elementHint&&(this.elementHint.remove(),this.elementHint=null,y.hide(),this.element.style.zIndex=this.elementStyle.zIndex,this.element.style.position=this.elementStyle.position,this.element.style.backgroundColor=this.elementStyle.backgroundColor,this.element.style.borderColor=this.elementStyle.borderColor)},repaint:function(e){var i=e.innerText;i=i.replace("\n","");var r=this.options.length,o=i.substring(this.startFrom);u=i.substring(0,this.startFrom);for(var a=0;a<r;a++){var s=this.options[a];if(!t.caseSensitive&&0===s.toLowerCase().indexOf(o.toLowerCase())||t.caseSensitive&&0===s.indexOf(o)){this.elementHint.innerText=u+o+s.substring(o.length),this.elementHint.realInnerText=u+s;break}}h.style.left=n(u)+"px",y.refresh(o,this.options),this.elementHint.style.width=n(this.elementHint.innerText)+10+"px","hidden"===h.style.visibility||(this.elementHint.style.width=n(this.elementHint.innerText)+h.clientWidth+"px")}},y=(d=h,p=[],f=0,g=-1,m={rs:v,hide:function(){d.style.visibility="hidden"},refresh:function(e,n){d.style.visibility="hidden",f=0,d.innerHTML="";var a=window.innerHeight||document.documentElement.clientHeight,s=d.parentNode.getBoundingClientRect(),l=s.top-6,c=a-s.bottom-6;p=[];var u="function"==typeof t.filter?t.filter:R[t.filter],h=u?n.filter((function(n){return u(t.caseSensitive?e:e.toLowerCase(),t.caseSensitive?n:n.toLowerCase(),t)})):[];0!==(p=h.map((function(t){var n=document.createElement("div");return n.className="item",n.onmouseover=i,n.onmouseout=r,n.onmousedown=o,n.__hint=t,n.innerHTML=t.substring(0,e.length)+"<b>"+t.substring(e.length)+"</b>",d.appendChild(n),n}))).length&&(1===p.length&&(e.toLowerCase()===p[0].__hint.toLowerCase()&&!t.caseSensitive||e===p[0].__hint&&t.caseSensitive)||p.length<2||(m.highlight(0),3*c<l?(d.style.maxHeight=l+"px",d.style.top="",d.style.bottom="100%"):(d.style.top="100%",d.style.bottom="",d.style.maxHeight=c+"px"),d.style.visibility="visible"))},highlight:function(t){-1!==g&&p[g]&&(p[g].className="item"),p[t].className="item hover",g=t},move:function(t){return"hidden"===d.style.visibility?"":(f+t===-1||f+t===p.length||(f+=t,m.highlight(f)),p[f].__hint)},onmouseselection:function(){}}),b=function(n){var i=(n=n||window.event).keyCode;if(null!=this.elementHint&&33!==i&&34!==i){if(27===i)return v.hideDropDown(),v.element.focus(),n.preventDefault(),void n.stopPropagation();var r=this.element.innerText;if(r=r.replace("\n",""),0<=t.confirmKeys.indexOf(i))return 9===i&&0===this.elementHint.innerText.length&&v.onTab(),void(0<this.elementHint.innerText.length&&this.element.innerText!==this.elementHint.realInnerText&&(this.element.innerText=this.elementHint.realInnerText,v.hideDropDown(),e(this.element),9===i&&(v.element.focus(),n.preventDefault(),n.stopPropagation())));if(13!==i){if(40===i){var o=r.substring(this.startFrom),a=y.move(1);return""===a&&v.onArrowDown(),this.elementHint.innerText=u+o+a.substring(o.length),this.elementHint.realInnerText=u+a,n.preventDefault(),void n.stopPropagation()}if(38===i){var s=r.substring(this.startFrom),l=y.move(-1);""===l&&v.onArrowUp(),this.elementHint.innerText=u+s+l.substring(s.length),this.elementHint.realInnerText=u+l,n.preventDefault(),n.stopPropagation()}}else if(0===this.elementHint.innerText.length)v.onEnter();else{var c="hidden"===h.style.visibility;if(y.hide(),c)return v.hideDropDown(),v.element.focus(),void v.onEnter();this.element.innerText=this.elementHint.realInnerText,v.hideDropDown(),e(this.element),n.preventDefault(),n.stopPropagation()}}}.bind(v),x=function(){v.hideDropDown()};return y.onmouseselection=function(t,n){n.element.innerText=n.elementHint.innerText=u+t,n.hideDropDown(),window.setTimeout((function(){n.element.focus(),e(n.element)}),1)},v}(e.autocomplete)),this.options.history&&"view"!==this.options.mode&&(this.history=new y(this)),this._createFrame(),this._createTable()},destroy:function(){this.frame&&this.container&&this.frame.parentNode===this.container&&(this.container.removeChild(this.frame),this.frame=null),this.container=null,this.dom=null,this.clear(),this.node=null,this.focusTarget=null,this.selection=null,this.multiselection=null,this.errorNodes=null,this.validateSchema=null,this._debouncedValidate=null,this.history&&(this.history.destroy(),this.history=null),this.searchBox&&(this.searchBox.destroy(),this.searchBox=null),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this.frameFocusTracker.destroy()},_setOptions:function(t){var e=this;this.options={search:!0,history:!0,mode:"tree",name:void 0,schema:null,schemaRefs:null,autocomplete:null,navigationBar:!0,mainMenuBar:!0,onSelectionChange:null,colorPicker:!0,onColorPicker:function(t,e,n){if(g.a){var i=t.getBoundingClientRect().top,r=window.innerHeight-i<300&&300<i;new g.a({parent:t,color:e,popup:r?"top":"bottom",onDone:function(t){var e=1===t.rgba[3]?t.hex.substr(0,7):t.hex;n(e)}}).show()}else console.warn("Cannot open color picker: the `vanilla-picker` library is not included in the bundle. Either use the full bundle or implement your own color picker using `onColorPicker`.")},timestampTag:!0,timestampFormat:null,createQuery:B.a,executeQuery:B.b,onEvent:null,enableSort:!0,enableTransform:!0},t&&Object.keys(t).forEach((function(n){e.options[n]=t[n]})),this.setSchema(this.options.schema,this.options.schemaRefs),this._debouncedValidate=Object(v.debounce)(this.validate.bind(this),this.DEBOUNCE_INTERVAL),t.onSelectionChange&&this.onSelectionChange(t.onSelectionChange),Object(b.b)(this.options.languages),Object(b.a)(this.options.language)},set:function(t){if(t instanceof Function||void 0===t)this.clear();else{this.content.removeChild(this.table);var e={field:this.options.name,value:t},n=new E(this,e);this._setRoot(n),this.validate(),this.node.expand(!1),this.content.appendChild(this.table)}this.history&&this.history.clear(),this.searchBox&&this.searchBox.clear()},update:function(t){if(!this.node.deepEqual(t)){var e=this.getSelection();if(this.onChangeDisabled=!0,this.node.update(t),this.onChangeDisabled=!1,this.validate(),this.searchBox&&!this.searchBox.isEmpty()&&this.searchBox.forceSearch(),e&&e.start&&e.end){var n=this.node.findNodeByPath(e.start.path),i=this.node.findNodeByPath(e.end.path);n&&i?this.setSelection(e.start,e.end):this.setSelection({},{})}else this.setSelection({},{})}},get:function(){return this.node?this.node.getValue():void 0},getText:function(){return JSON.stringify(this.get())},setText:function(t){try{this.set(Object(v.parse)(t))}catch(n){var e=Object(v.repair)(t);this.set(Object(v.parse)(e))}},updateText:function(t){try{this.update(Object(v.parse)(t))}catch(n){var e=Object(v.repair)(t);this.update(Object(v.parse)(e))}},setName:function(t){this.options.name=t,this.node&&this.node.updateField(this.options.name)},getName:function(){return this.options.name},focus:function(){var t=this.scrollableContent.querySelector("[contenteditable=true]");t?t.focus():this.node.dom.expand?this.node.dom.expand.focus():this.node.dom.menu?this.node.dom.menu.focus():(t=this.frame.querySelector("button"))&&t.focus()},clear:function(){this.node&&(this.node.hide(),delete this.node),this.treePath&&this.treePath.reset()},_setRoot:function(t){this.clear(),(this.node=t).setParent(null),t.setField(this.getName(),!1),delete t.index,this.tbody.appendChild(t.getDom())},search:function(t){var e;return this.node?(this.content.removeChild(this.table),e=this.node.search(t),this.content.appendChild(this.table)):e=[],e},expandAll:function(){this.node&&(this.content.removeChild(this.table),this.node.expand(),this.content.appendChild(this.table))},collapseAll:function(){this.node&&(this.content.removeChild(this.table),this.node.collapse(),this.content.appendChild(this.table))},_onAction:function(t,e){this.history&&this.history.add(t,e),this._onChange()},_onChange:function(){if(!this.onChangeDisabled){if(this.selection=this.getDomSelection(),this._debouncedValidate(),this.treePath){var t=this.node&&this.selection?this.node.findNodeByInternalPath(this.selection.path):this.multiselection?this.multiselection.nodes[0]:void 0;t?this._updateTreePath(t.getNodePath()):this.treePath.reset()}if(this.options.onChange)try{this.options.onChange()}catch(t){console.error("Error in onChange callback: ",t)}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch(t){console.error("Error in onChangeJSON callback: ",t)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(t){console.error("Error in onChangeText callback: ",t)}if(this.options.onClassName&&this.node.recursivelyUpdateCssClassesOnNodes(),this.options.onNodeName&&this.node.childs)try{this.node.recursivelyUpdateNodeName()}catch(t){console.error("Error in onNodeName callback: ",t)}}},validate:function(){var t=this,e=this.node;if(e){var n=e.getValue(),i=[];this.validateSchema&&(this.validateSchema(n)||(i=this.validateSchema.errors.map((function(t){return Object(v.improveSchemaError)(t)})).map((function(t){return{node:e.findNode(t.dataPath),error:t,type:"validation"}})).filter((function(t){return null!=t.node}))));try{this.validationSequence++;var r=this,o=this.validationSequence;this._validateCustom(n).then((function(e){if(o===r.validationSequence){var n=[].concat(i,e||[]);r._renderValidationErrors(n),"function"==typeof t.options.onValidationError&&(Object(v.isValidationErrorChanged)(n,t.lastSchemaErrors)&&t.options.onValidationError.call(t,n),t.lastSchemaErrors=n)}})).catch((function(t){console.error(t)}))}catch(n){console.error(n)}}},_renderValidationErrors:function(t){this.errorNodes&&this.errorNodes.forEach((function(t){t.setError(null)}));var e=t.reduce((function(t,e){return e.node.findParents().filter((function(e){return!t.some((function(t){return t[0]===e}))})).map((function(t){return[t,e.node]})).concat(t)}),[]);this.errorNodes=e.map((function(t){return{node:t[0],child:t[1],error:{message:"object"===t[0].type?"Contains invalid properties":"Contains invalid items"}}})).concat(t).map((function(t){return t.node.setError(t.error,t.child),t.node}))},_validateCustom:function(t){try{if(this.options.onValidate){var e=this.node,n=this.options.onValidate(t);return(Object(v.isPromise)(n)?n:Promise.resolve(n)).then((function(t){return Array.isArray(t)?t.filter((function(t){var e=Object(v.isValidValidationError)(t);return e||console.warn('Ignoring a custom validation error with invalid structure. Expected structure: {path: [...], message: "..."}. Actual error:',t),e})).map((function(t){var n;try{n=t&&t.path?e.findNodeByPath(t.path):null}catch(t){}return n||console.warn("Ignoring validation error: node not found. Path:",t.path,"Error:",t),{node:n,error:t,type:"customValidation"}})).filter((function(t){return t&&t.node&&t.error&&t.error.message})):null}))}}catch(t){return Promise.reject(t)}return Promise.resolve(null)},refresh:function(){this.node&&this.node.updateDom({recurse:!0})},startAutoScroll:function(t){var e=this,n=this.scrollableContent,i=Object(v.getAbsoluteTop)(n),r=n.clientHeight,o=i+r;t<i+24&&0<n.scrollTop?this.autoScrollStep=(i+24-t)/3:o-24<t&&r+n.scrollTop<n.scrollHeight?this.autoScrollStep=(o-24-t)/3:this.autoScrollStep=void 0,this.autoScrollStep?this.autoScrollTimer||(this.autoScrollTimer=setInterval((function(){e.autoScrollStep?n.scrollTop-=e.autoScrollStep:e.stopAutoScroll()}),50)):this.stopAutoScroll()},stopAutoScroll:function(){this.autoScrollTimer&&(clearTimeout(this.autoScrollTimer),delete this.autoScrollTimer),this.autoScrollStep&&delete this.autoScrollStep},setDomSelection:function(t){if(t)if("scrollTop"in t&&this.scrollableContent&&(this.scrollableContent.scrollTop=t.scrollTop),t.paths){var e=this,n=t.paths.map((function(t){return e.node.findNodeByInternalPath(t)}));this.select(n)}else{var i=t.path?this.node.findNodeByInternalPath(t.path):null,r=i&&t.domName?i.dom[t.domName]:null;if(t.range&&r){var o=Object.assign({},t.range,{container:r});Object(v.setSelectionOffset)(o)}else i&&i.focus()}},getDomSelection:function(){var t=E.getNodeFromTarget(this.focusTarget),e=this.focusTarget,n=t?Object.keys(t.dom).find((function(n){return t.dom[n]===e})):null,i=Object(v.getSelectionOffset)();return i&&"DIV"!==i.container.nodeName&&(i=null),i&&i.container!==e&&(i=null),i&&delete i.container,{path:t?t.getInternalPath():null,domName:n,range:i,paths:0<this.multiselection.length?this.multiselection.nodes.map((function(t){return t.getInternalPath()})):null,scrollTop:this.scrollableContent?this.scrollableContent.scrollTop:0}},scrollTo:function(t,e){var n=this.scrollableContent;if(n){var i=this;i.animateTimeout&&(clearTimeout(i.animateTimeout),delete i.animateTimeout),i.animateCallback&&(i.animateCallback(!1),delete i.animateCallback);var r=n.clientHeight,o=n.scrollHeight-r,a=Math.min(Math.max(t-r/4,0),o);!function t(){var r=n.scrollTop,o=a-r;3<Math.abs(o)?(n.scrollTop+=o/3,i.animateCallback=e,i.animateTimeout=setTimeout(t,50)):(e&&e(!0),n.scrollTop=a,delete i.animateTimeout,delete i.animateCallback)}()}else e&&e(!1)},_createFrame:function(){function t(t){e._onEvent&&e._onEvent(t)}this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-"+this.options.mode,this.container.appendChild(this.frame),this.contentOuter=document.createElement("div"),this.contentOuter.className="jsoneditor-outer";var e=this,n={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null};if(this.frameFocusTracker=new D.a(n),this.frame.onclick=function(e){var n=e.target;t(e),"BUTTON"===n.nodeName&&e.preventDefault()},this.frame.oninput=t,this.frame.onchange=t,this.frame.onkeydown=t,this.frame.onkeyup=t,this.frame.oncut=t,this.frame.onpaste=t,this.frame.onmousedown=t,this.frame.onmouseup=t,this.frame.onmouseover=t,this.frame.onmouseout=t,Object(v.addEventListener)(this.frame,"focus",t,!0),Object(v.addEventListener)(this.frame,"blur",t,!0),this.frame.onfocusin=t,this.frame.onfocusout=t,this.options.mainMenuBar){Object(v.addClassName)(this.contentOuter,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu);var i=document.createElement("button");i.type="button",i.className="jsoneditor-expand-all",i.title=Object(b.c)("expandAll"),i.onclick=function(){e.expandAll()},this.menu.appendChild(i);var r=document.createElement("button");if(r.type="button",r.title=Object(b.c)("collapseAll"),r.className="jsoneditor-collapse-all",r.onclick=function(){e.collapseAll()},this.menu.appendChild(r),this.options.enableSort){var o=document.createElement("button");o.type="button",o.className="jsoneditor-sort",o.title=Object(b.c)("sortTitleShort"),o.onclick=function(){e.node.showSortModal()},this.menu.appendChild(o)}if(this.options.enableTransform){var a=document.createElement("button");a.type="button",a.title=Object(b.c)("transformTitleShort"),a.className="jsoneditor-transform",a.onclick=function(){e.node.showTransformModal()},this.menu.appendChild(a)}if(this.history){var s=document.createElement("button");s.type="button",s.className="jsoneditor-undo jsoneditor-separator",s.title=Object(b.c)("undo"),s.onclick=function(){e._onUndo()},this.menu.appendChild(s),this.dom.undo=s;var l=document.createElement("button");l.type="button",l.className="jsoneditor-redo",l.title=Object(b.c)("redo"),l.onclick=function(){e._onRedo()},this.menu.appendChild(l),this.dom.redo=l,this.history.onChange=function(){s.disabled=!e.history.canUndo(),l.disabled=!e.history.canRedo()},this.history.onChange()}if(this.options&&this.options.modes&&this.options.modes.length){var c=this;this.modeSwitcher=new L.a(this.menu,this.options.modes,this.options.mode,(function(t){c.setMode(t),c.modeSwitcher.focus()}))}this.options.search&&(this.searchBox=new x(this,this.menu))}this.options.navigationBar&&(this.navBar=document.createElement("div"),this.navBar.className="jsoneditor-navigation-bar nav-bar-empty",this.frame.appendChild(this.navBar),this.treePath=new _(this.navBar,this.getPopupAnchor()),this.treePath.onSectionSelected(this._onTreePathSectionSelected.bind(this)),this.treePath.onContextMenuItemSelected(this._onTreePathMenuItemSelected.bind(this)))},_onUndo:function(){this.history&&(this.history.undo(),this._onChange())},_onRedo:function(){this.history&&(this.history.redo(),this._onChange())},_onEvent:function(t){if(!E.targetIsColorPicker(t.target)){var e=E.getNodeFromTarget(t.target);if("keydown"===t.type&&this._onKeyDown(t),e&&"focus"===t.type&&(this.focusTarget=t.target,this.options.autocomplete&&"focus"===this.options.autocomplete.trigger&&this._showAutoComplete(t.target)),"mousedown"===t.type&&this._startDragDistance(t),"mousemove"!==t.type&&"mouseup"!==t.type&&"click"!==t.type||this._updateDragDistance(t),e&&this.options&&this.options.navigationBar&&e&&("keydown"===t.type||"mousedown"===t.type)){var n=this;setTimeout((function(){n._updateTreePath(e.getNodePath())}))}if(e&&e.selected){if("click"===t.type){if(t.target===e.dom.menu)return void this.showContextMenu(t.target);t.hasMoved||this.deselect()}"mousedown"===t.type&&E.onDragStart(this.multiselection.nodes,t)}else"mousedown"===t.type&&Object(v.hasParentNode)(t.target,this.content)&&(this.deselect(),e&&t.target===e.dom.drag?E.onDragStart(e,t):e&&(t.target===e.dom.field||t.target===e.dom.value||t.target===e.dom.select)||this._onMultiSelectStart(t));e&&e.onEvent(t)}},_updateTreePath:function(t){function e(t){return t.parent?"array"===t.parent.type?t.index:t.field:t.field||t.type}if(t&&t.length){Object(v.removeClassName)(this.navBar,"nav-bar-empty");var n=[];t.forEach((function(t){var i={name:e(t),node:t,children:[]};t.childs&&t.childs.length&&t.childs.forEach((function(t){i.children.push({name:e(t),node:t})})),n.push(i)})),this.treePath.setPath(n)}else Object(v.addClassName)(this.navBar,"nav-bar-empty")},_onTreePathSectionSelected:function(t){t&&t.node&&(t.node.expandTo(),t.node.focus())},_onTreePathMenuItemSelected:function(t,e){if(t&&t.children.length){var n=t.children.find((function(t){return t.name===e}));n&&n.node&&(this._updateTreePath(n.node.getNodePath()),n.node.expandTo(),n.node.focus())}},_startDragDistance:function(t){this.dragDistanceEvent={initialTarget:t.target,initialPageX:t.pageX,initialPageY:t.pageY,dragDistance:0,hasMoved:!1}},_updateDragDistance:function(t){this.dragDistanceEvent||this._startDragDistance(t);var e=t.pageX-this.dragDistanceEvent.initialPageX,n=t.pageY-this.dragDistanceEvent.initialPageY;return this.dragDistanceEvent.dragDistance=Math.sqrt(e*e+n*n),this.dragDistanceEvent.hasMoved=this.dragDistanceEvent.hasMoved||10<this.dragDistanceEvent.dragDistance,t.dragDistance=this.dragDistanceEvent.dragDistance,t.hasMoved=this.dragDistanceEvent.hasMoved,t.dragDistance},_onMultiSelectStart:function(t){var e=E.getNodeFromTarget(t.target);if("tree"===this.options.mode&&void 0===this.options.onEditable){this.multiselection={start:e||null,end:null,nodes:[]},this._startDragDistance(t);var n=this;this.mousemove||(this.mousemove=Object(v.addEventListener)(window,"mousemove",(function(t){n._onMultiSelect(t)}))),this.mouseup||(this.mouseup=Object(v.addEventListener)(window,"mouseup",(function(t){n._onMultiSelectEnd(t)}))),t.preventDefault()}},_onMultiSelect:function(t){if(t.preventDefault(),this._updateDragDistance(t),t.hasMoved){var e=E.getNodeFromTarget(t.target);e&&(null==this.multiselection.start&&(this.multiselection.start=e),this.multiselection.end=e),this.deselect();var n=this.multiselection.start,i=this.multiselection.end||this.multiselection.start;if(n&&i){if(this.multiselection.nodes=this._findTopLevelNodes(n,i),this.multiselection.nodes&&this.multiselection.nodes.length){var r=this.multiselection.nodes[0];this.multiselection.start===r||this.multiselection.start.isDescendantOf(r)?this.multiselection.direction="down":this.multiselection.direction="up"}this.select(this.multiselection.nodes)}}},_onMultiSelectEnd:function(){this.multiselection.nodes[0]&&this.multiselection.nodes[0].dom.menu.focus(),this.multiselection.start=null,this.multiselection.end=null,this.mousemove&&(Object(v.removeEventListener)(window,"mousemove",this.mousemove),delete this.mousemove),this.mouseup&&(Object(v.removeEventListener)(window,"mouseup",this.mouseup),delete this.mouseup)},deselect:function(t){var e=!!this.multiselection.nodes.length;this.multiselection.nodes.forEach((function(t){t.setSelected(!1)})),this.multiselection.nodes=[],t&&(this.multiselection.start=null,this.multiselection.end=null),e&&this._selectionChangedHandler&&this._selectionChangedHandler()},select:function(t){if(!Array.isArray(t))return this.select([t]);if(t){this.deselect(),this.multiselection.nodes=t.slice(0);var e=t[0];if(t.forEach((function(t){t.expandPathToNode(),t.setSelected(!0,t===e)})),this._selectionChangedHandler){var n=this.getSelection();this._selectionChangedHandler(n.start,n.end)}}},_findTopLevelNodes:function(t,e){for(var n=t.getNodePath(),i=e.getNodePath(),r=0;r<n.length&&n[r]===i[r];)r++;var o=n[r-1],a=n[r],s=i[r];if(a&&s||(o.parent?o=(s=a=o).parent:(a=o.childs[0],s=o.childs[o.childs.length-1])),o&&a&&s){var l=o.childs.indexOf(a),c=o.childs.indexOf(s),u=Math.min(l,c),h=Math.max(l,c);return o.childs.slice(u,h+1)}return[]},_showAutoComplete:function(t){var e=E.getNodeFromTarget(t),n="";0<=t.className.indexOf("jsoneditor-value")&&(n="value"),0<=t.className.indexOf("jsoneditor-field")&&(n="field");var i=this;setTimeout((function(){if(e&&("focus"===i.options.autocomplete.trigger||0<t.innerText.length)){var r=i.options.autocomplete.getOptions(t.innerText,e.getPath(),n,e.editor);null===r?i.autocomplete.hideDropDown():"function"==typeof r.then?r.then((function(e){null===e?i.autocomplete.hideDropDown():e.options?i.autocomplete.show(t,e.startFrom,e.options):i.autocomplete.show(t,0,e)})).catch((function(t){console.error(t)})):r.options?i.autocomplete.show(t,r.startFrom,r.options):i.autocomplete.show(t,0,r)}else i.autocomplete.hideDropDown()}),50)},_onKeyDown:function(t){var e=t.which||t.keyCode,n=t.altKey,i=t.ctrlKey,r=t.metaKey,o=t.shiftKey,a=!1,s=this.focusTarget;if(9===e){var l=this;setTimeout((function(){l.focusTarget!==s&&Object(v.selectContentEditable)(l.focusTarget)}),0)}this.searchBox&&(i&&70===e?(this.searchBox.dom.search.focus(),this.searchBox.dom.search.select(),a=!0):(114===e||i&&71===e)&&(o?this.searchBox.previous(!0):this.searchBox.next(!0),a=!0)),this.history&&(i&&!o&&90===e?(this._onUndo(),a=!0):i&&o&&90===e&&(this._onRedo(),a=!0)),this.options.autocomplete&&!a&&(i||n||r||1!==t.key.length&&8!==e&&46!==e||(a=!1,this._showAutoComplete(t.target))),a&&(t.preventDefault(),t.stopPropagation())},_createTable:function(){var t;this.options.navigationBar&&Object(v.addClassName)(this.contentOuter,"has-nav-bar"),this.scrollableContent=document.createElement("div"),this.scrollableContent.className="jsoneditor-tree",this.contentOuter.appendChild(this.scrollableContent),this.content=document.createElement("div"),this.content.className="jsoneditor-tree-inner",this.scrollableContent.appendChild(this.content),this.table=document.createElement("table"),this.table.className="jsoneditor-tree",this.content.appendChild(this.table),this.colgroupContent=document.createElement("colgroup"),"tree"===this.options.mode&&((t=document.createElement("col")).width="24px",this.colgroupContent.appendChild(t)),(t=document.createElement("col")).width="24px",this.colgroupContent.appendChild(t),t=document.createElement("col"),this.colgroupContent.appendChild(t),this.table.appendChild(this.colgroupContent),this.tbody=document.createElement("tbody"),this.table.appendChild(this.tbody),this.frame.appendChild(this.contentOuter)},showContextMenu:function(t,e){var n=[],i=this.multiselection.nodes.slice();if(n.push({text:Object(b.c)("duplicateText"),title:Object(b.c)("duplicateTitle"),className:"jsoneditor-duplicate",click:function(){E.onDuplicate(i)}}),n.push({text:Object(b.c)("remove"),title:Object(b.c)("removeTitle"),className:"jsoneditor-remove",click:function(){E.onRemove(i)}}),this.options.onCreateMenu){var r=i.map((function(t){return t.getPath()}));n=this.options.onCreateMenu(n,{type:"multiple",path:r[0],paths:r})}new w.a(n,{close:e}).show(t,this.getPopupAnchor())},getPopupAnchor:function(){return this.options.popupAnchor||this.frame},getSelection:function(){var t={start:null,end:null};if(this.multiselection.nodes&&this.multiselection.nodes.length&&this.multiselection.nodes.length){var e=this.multiselection.nodes[0],n=this.multiselection.nodes[this.multiselection.nodes.length-1];"down"===this.multiselection.direction?(t.start=e.serialize(),t.end=n.serialize()):(t.start=n.serialize(),t.end=e.serialize())}return t},onSelectionChange:function(t){"function"==typeof t&&(this._selectionChangedHandler=Object(v.debounce)(t,this.DEBOUNCE_INTERVAL))},setSelection:function(t,e){t&&t.dom&&t.range&&(console.warn("setSelection/getSelection usage for text selection is deprecated and should not be used, see documentation for supported selection options"),this.setDomSelection(t));var n=this._getNodeInstancesByRange(t,e);n.forEach((function(t){t.expandTo()})),this.select(n)},_getNodeInstancesByRange:function(t,e){var n,i;t&&t.path&&(n=this.node.findNodeByPath(t.path),e&&e.path&&(i=this.node.findNodeByPath(e.path)));var r=[];if(n instanceof E)if(i instanceof E&&i!==n)if(n.parent===i.parent){e=n.getIndex()<i.getIndex()?(t=n,i):(t=i,n);var o=t;for(r.push(o);o=o.nextSibling(),r.push(o),o&&o!==e;);}else r=this._findTopLevelNodes(n,i);else r.push(n);return r},getNodesByRange:function(t,e){var n=this._getNodeInstancesByRange(t,e),i=[];return n.forEach((function(t){i.push(t.serialize())})),i}},F=[{mode:"tree",mixin:N,data:"json"},{mode:"view",mixin:N,data:"json"},{mode:"form",mixin:N,data:"json"}]},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}n.r(e),n.d(e,"previewModeMixins",(function(){return v}));var r=n(1),o=n(8),a=n(15),s=n(5),l=n(6),c=n(21),u=n(2),h=n(9),d=n(0),p=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onChange=e,this.calculateItemSize=n||function(){return 1},this.limit=i,this.items=[],this.index=-1}var e,n;return e=t,(n=[{key:"add",value:function(t){for(;this._calculateHistorySize()>this.limit&&1<this.items.length;)this.items.shift(),this.index--;this.items=this.items.slice(0,this.index+1),this.items.push(t),this.index++,this.onChange()}},{key:"_calculateHistorySize",value:function(){var t=this.calculateItemSize,e=0;return this.items.forEach((function(n){e+=t(n)})),e}},{key:"undo",value:function(){if(this.canUndo())return this.index--,this.onChange(),this.items[this.index]}},{key:"redo",value:function(){if(this.canRedo())return this.index++,this.onChange(),this.items[this.index]}},{key:"canUndo",value:function(){return 0<this.index}},{key:"canRedo",value:function(){return this.index<this.items.length-1}},{key:"clear",value:function(){this.items=[],this.index=-1,this.onChange()}}])&&i(e.prototype,n),t}(),f=n(4),g=c.textModeMixins[0].mixin,m={create:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};void 0===e.statusBar&&(e.statusBar=!0),e.mainMenuBar=!1!==e.mainMenuBar,e.enableSort=!1!==e.enableSort,e.enableTransform=!1!==e.enableTransform,e.createQuery=e.createQuery||f.a,e.executeQuery=e.executeQuery||f.b,"number"==typeof(this.options=e).indentation?this.indentation=Number(e.indentation):this.indentation=2,Object(r.b)(this.options.languages),Object(r.a)(this.options.language),this.mode="preview";var n=this;this.container=t,this.dom={},this.json=void 0,this.text="",this._debouncedValidate=Object(d.debounce)(this.validate.bind(this),this.DEBOUNCE_INTERVAL),this.width=t.clientWidth,this.height=t.clientHeight,this.frame=document.createElement("div"),this.frame.className="jsoneditor jsoneditor-mode-preview",this.frame.onclick=function(t){t.preventDefault()};var i={target:this.frame,onFocus:this.options.onFocus||null,onBlur:this.options.onBlur||null};if(this.frameFocusTracker=new h.a(i),this.content=document.createElement("div"),this.content.className="jsoneditor-outer",this.dom.busy=document.createElement("div"),this.dom.busy.className="jsoneditor-busy",this.dom.busyContent=document.createElement("span"),this.dom.busyContent.innerHTML="busy...",this.dom.busy.appendChild(this.dom.busyContent),this.content.appendChild(this.dom.busy),this.dom.previewContent=document.createElement("pre"),this.dom.previewContent.className="jsoneditor-preview",this.dom.previewText=document.createTextNode(""),this.dom.previewContent.appendChild(this.dom.previewText),this.content.appendChild(this.dom.previewContent),this.options.mainMenuBar){Object(d.addClassName)(this.content,"has-main-menu-bar"),this.menu=document.createElement("div"),this.menu.className="jsoneditor-menu",this.frame.appendChild(this.menu);var s=document.createElement("button");s.type="button",s.className="jsoneditor-format",s.title=Object(r.c)("formatTitle"),this.menu.appendChild(s),s.onclick=function(){n.executeWithBusyMessage((function(){try{n.format()}catch(t){n._onError(t)}}),"formatting...")};var l=document.createElement("button");if(l.type="button",l.className="jsoneditor-compact",l.title=Object(r.c)("compactTitle"),this.menu.appendChild(l),l.onclick=function(){n.executeWithBusyMessage((function(){try{n.compact()}catch(t){n._onError(t)}}),"compacting...")},this.options.enableSort){var c=document.createElement("button");c.type="button",c.className="jsoneditor-sort",c.title=Object(r.c)("sortTitleShort"),c.onclick=function(){n._showSortModal()},this.menu.appendChild(c)}if(this.options.enableTransform){var g=document.createElement("button");g.type="button",g.title=Object(r.c)("transformTitleShort"),g.className="jsoneditor-transform",g.onclick=function(){n._showTransformModal()},this.dom.transform=g,this.menu.appendChild(g)}var m=document.createElement("button");if(m.type="button",m.className="jsoneditor-repair",m.title=Object(r.c)("repairTitle"),this.menu.appendChild(m),!(m.onclick=function(){void 0===n.json&&n.executeWithBusyMessage((function(){try{n.repair()}catch(t){n._onError(t)}}),"repairing...")})!==this.options.history){this.history=new p((function(){n.dom.undo.disabled=!n.history.canUndo(),n.dom.redo.disabled=!n.history.canRedo()}),(function(t){return 2*t.text.length}),u.c);var v=document.createElement("button");v.type="button",v.className="jsoneditor-undo jsoneditor-separator",v.title=Object(r.c)("undo"),v.onclick=function(){var t=n.history.undo();t&&n._applyHistory(t)},this.menu.appendChild(v),this.dom.undo=v;var y=document.createElement("button");y.type="button",y.className="jsoneditor-redo",y.title=Object(r.c)("redo"),y.onclick=function(){var t=n.history.redo();t&&n._applyHistory(t)},this.menu.appendChild(y),this.dom.redo=y,this.history.onChange()}this.options&&this.options.modes&&this.options.modes.length&&(this.modeSwitcher=new o.a(this.menu,this.options.modes,this.options.mode,(function(t){n.setMode(t),n.modeSwitcher.focus()})))}if(this.errorTable=new a.a({errorTableVisible:!0,onToggleVisibility:function(){n.validate()},onFocusLine:null,onChangeHeight:function(t){var e=t+(n.dom.statusBar?n.dom.statusBar.clientHeight:0)+1;n.content.style.marginBottom=-e+"px",n.content.style.paddingBottom=e+"px"}}),this.frame.appendChild(this.content),this.frame.appendChild(this.errorTable.getErrorTable()),this.container.appendChild(this.frame),e.statusBar){Object(d.addClassName)(this.content,"has-status-bar");var b=document.createElement("div");(this.dom.statusBar=b).className="jsoneditor-statusbar",this.frame.appendChild(b),this.dom.fileSizeInfo=document.createElement("span"),this.dom.fileSizeInfo.className="jsoneditor-size-info",this.dom.fileSizeInfo.innerText="",b.appendChild(this.dom.fileSizeInfo),this.dom.arrayInfo=document.createElement("span"),this.dom.arrayInfo.className="jsoneditor-size-info",this.dom.arrayInfo.innerText="",b.appendChild(this.dom.arrayInfo),b.appendChild(this.errorTable.getErrorCounter()),b.appendChild(this.errorTable.getWarningIcon()),b.appendChild(this.errorTable.getErrorIcon())}this._renderPreview(),this.setSchema(this.options.schema,this.options.schemaRefs)},_renderPreview:function(){var t=this.getText();this.dom.previewText.nodeValue=Object(d.limitCharacters)(t,u.b),this.dom.fileSizeInfo&&(this.dom.fileSizeInfo.innerText="Size: "+Object(d.formatSize)(t.length)),this.dom.arrayInfo&&(Array.isArray(this.json)?this.dom.arrayInfo.innerText="Array: "+this.json.length+" items":this.dom.arrayInfo.innerText="")},_onChange:function(){if(this._debouncedValidate(),this.options.onChange)try{this.options.onChange()}catch(t){console.error("Error in onChange callback: ",t)}if(this.options.onChangeJSON)try{this.options.onChangeJSON(this.get())}catch(t){console.error("Error in onChangeJSON callback: ",t)}if(this.options.onChangeText)try{this.options.onChangeText(this.getText())}catch(t){console.error("Error in onChangeText callback: ",t)}},_showSortModal:function(){var t=this;this.executeWithBusyMessage((function(){var e=t.options.modalAnchor||u.a,n=t.get();t._renderPreview(),Object(s.showSortModal)(e,n,(function(e){t.executeWithBusyMessage((function(){!function(e,n){if(Array.isArray(e)){var i=Object(d.sort)(e,n.path,n.direction);t.sortedBy=n,t._setAndFireOnChange(i)}if(Object(d.isObject)(e)){var r=Object(d.sortObjectKeys)(e,n.direction);t.sortedBy=n,t._setAndFireOnChange(r)}}(n,e)}),"sorting...")}),t.sortedBy)}),"parsing...")},_showTransformModal:function(){var t=this;this.executeWithBusyMessage((function(){var e=t.options,n=e.createQuery,i=e.executeQuery,r=e.modalAnchor,o=e.queryDescription,a=t.get();t._renderPreview(),Object(l.showTransformModal)({anchor:r||u.a,json:a,queryDescription:o,createQuery:n,executeQuery:i,onTransform:function(e){t.executeWithBusyMessage((function(){var n=i(a,e);t._setAndFireOnChange(n)}),"transforming...")}})}),"parsing...")},destroy:function(){this.frame&&this.container&&this.frame.parentNode===this.container&&this.container.removeChild(this.frame),this.modeSwitcher&&(this.modeSwitcher.destroy(),this.modeSwitcher=null),this._debouncedValidate=null,this.history&&(this.history.clear(),this.history=null),this.frameFocusTracker.destroy()},compact:function(){var t=this.get(),e=JSON.stringify(t);this._setTextAndFireOnChange(e,t)},format:function(){var t=this.get(),e=JSON.stringify(t,null,this.indentation);this._setTextAndFireOnChange(e,t)},repair:function(){var t=this.getText(),e=Object(d.repair)(t);this._setTextAndFireOnChange(e)},focus:function(){this.dom.transform.focus()},set:function(t){this.history&&this.history.clear(),this._set(t)},update:function(t){this._set(t)},_set:function(t){this.text=void 0,this.json=t,this._renderPreview(),this._pushHistory(),this._debouncedValidate()},_setAndFireOnChange:function(t){this._set(t),this._onChange()},get:function(){if(void 0===this.json){var t=this.getText();this.json=Object(d.parse)(t)}return this.json},getText:function(){return void 0===this.text&&(this.text=JSON.stringify(this.json,null,this.indentation),!0===this.options.escapeUnicode&&(this.text=Object(d.escapeUnicodeChars)(this.text))),this.text},setText:function(t){this.history&&this.history.clear(),this._setText(t)},updateText:function(t){this.getText()!==t&&this._setText(t)},_setText:function(t,e){if(!0===this.options.escapeUnicode?this.text=Object(d.escapeUnicodeChars)(t):this.text=t,this.json=e,this._renderPreview(),void 0===this.json){var n=this;this.executeWithBusyMessage((function(){try{n.json=n.get(),n._renderPreview(),n._pushHistory()}catch(t){}}),"parsing...")}else this._pushHistory();this._debouncedValidate()},_setTextAndFireOnChange:function(t,e){this._setText(t,e),this._onChange()},_applyHistory:function(t){this.json=t.json,this.text=t.text,this._renderPreview(),this._debouncedValidate()},_pushHistory:function(){if(this.history){var t={text:this.text,json:this.json};this.history.add(t)}},executeWithBusyMessage:function(t,e){if(this.getText().length>u.d){var n=this;Object(d.addClassName)(n.frame,"busy"),n.dom.busyContent.innerText=e,setTimeout((function(){t(),Object(d.removeClassName)(n.frame,"busy"),n.dom.busyContent.innerText=""}),100)}else t()}};m.validate=g.validate,m._renderErrors=g._renderErrors;var v=[{mode:"preview",mixin:m,data:"json"}]}],t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(t){return e[t]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=36);var e,n}))},function(t,e,n){var i=n(14);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),n(3)("62bece8f",i,!0,{})},function(t,e,n){var i=n(1);e=t.exports=n(2)(!1),e.push([t.i,".jsoneditor-modal input,.jsoneditor-modal input:not([type]),.jsoneditor-modal input[type=search],.jsoneditor-modal input[type=text],.jsoneditor input,.jsoneditor input:not([type]),.jsoneditor input[type=search],.jsoneditor input[type=text]{height:auto;border:inherit;box-shadow:none;font-size:inherit;box-sizing:inherit;padding:inherit;font-family:inherit;transition:none;line-height:inherit}.jsoneditor-modal input:focus,.jsoneditor-modal input:not([type]):focus,.jsoneditor-modal input[type=search]:focus,.jsoneditor-modal input[type=text]:focus,.jsoneditor input:focus,.jsoneditor input:not([type]):focus,.jsoneditor input[type=search]:focus,.jsoneditor input[type=text]:focus{border:inherit;box-shadow:inherit}.jsoneditor-modal textarea,.jsoneditor textarea{height:inherit}.jsoneditor-modal select,.jsoneditor select{display:inherit;height:inherit}.jsoneditor-modal label,.jsoneditor label{font-size:inherit;font-weight:inherit;color:inherit}.jsoneditor-modal table,.jsoneditor table{border-collapse:collapse;width:auto}.jsoneditor-modal td,.jsoneditor-modal th,.jsoneditor td,.jsoneditor th{padding:0;display:table-cell;text-align:left;vertical-align:inherit;border-radius:inherit}.jsoneditor .autocomplete.dropdown{position:absolute;background:#fff;box-shadow:2px 2px 12px hsla(0,0%,50%,.3);border:1px solid #d3d3d3;overflow-x:hidden;overflow-y:auto;cursor:default;margin:0;padding:5px;text-align:left;outline:0;font-family:dejavu sans mono,droid sans mono,consolas,monaco,lucida console,courier new,courier,monospace,sans-serif;font-size:10pt}.jsoneditor .autocomplete.dropdown .item{color:#333}.jsoneditor .autocomplete.dropdown .item.hover{background-color:#ddd}.jsoneditor .autocomplete.hint{color:#aaa;top:4px;left:4px}.jsoneditor-contextmenu-root{position:relative;width:0;height:0}.jsoneditor-contextmenu{position:absolute;box-sizing:content-box;z-index:1}.jsoneditor-contextmenu .jsoneditor-menu{position:relative;left:0;top:0;width:128px;height:auto;background:#fff;border:1px solid #d3d3d3;box-shadow:2px 2px 12px hsla(0,0%,50%,.3);list-style:none;margin:0;padding:0}.jsoneditor-contextmenu .jsoneditor-menu button{position:relative;padding:0 4px 0 0;margin:0;width:128px;height:auto;border:none;cursor:pointer;color:#4d4d4d;background:0 0;font-size:10pt;font-family:arial,sans-serif;box-sizing:border-box;text-align:left}.jsoneditor-contextmenu .jsoneditor-menu button::-moz-focus-inner{padding:0;border:0}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-default{width:96px}.jsoneditor-contextmenu .jsoneditor-menu button.jsoneditor-expand{float:right;width:32px;height:24px;border-left:1px solid #e5e5e5}.jsoneditor-contextmenu .jsoneditor-menu li{overflow:hidden}.jsoneditor-contextmenu .jsoneditor-menu li ul{display:none;position:relative;left:-10px;top:0;border:none;box-shadow:inset 0 0 10px hsla(0,0%,50%,.5);padding:0 10px;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out}.jsoneditor-contextmenu .jsoneditor-menu li ul .jsoneditor-icon{margin-left:24px}.jsoneditor-contextmenu .jsoneditor-menu li ul li button{padding-left:24px;animation:all ease-in-out 1s}.jsoneditor-contextmenu .jsoneditor-menu li button .jsoneditor-expand{position:absolute;top:0;right:0;width:24px;height:24px;padding:0;margin:0 4px 0 0;background:url("+i(n(0))+") 0 -72px}.jsoneditor-contextmenu .jsoneditor-icon{position:absolute;top:0;left:0;width:24px;height:24px;border:none;padding:0;margin:0;background-image:url("+i(n(0))+')}.jsoneditor-contextmenu .jsoneditor-text{padding:4px 0 4px 24px;word-wrap:break-word}.jsoneditor-contextmenu .jsoneditor-text.jsoneditor-right-margin{padding-right:24px}.jsoneditor-contextmenu .jsoneditor-separator{height:0;border-top:1px solid #e5e5e5;padding-top:5px;margin-top:5px}.jsoneditor-contextmenu button.jsoneditor-remove .jsoneditor-icon{background-position:-24px 0}.jsoneditor-contextmenu button.jsoneditor-append .jsoneditor-icon,.jsoneditor-contextmenu button.jsoneditor-insert .jsoneditor-icon{background-position:0 0}.jsoneditor-contextmenu button.jsoneditor-duplicate .jsoneditor-icon{background-position:-48px 0}.jsoneditor-contextmenu button.jsoneditor-sort-asc .jsoneditor-icon{background-position:-168px 0}.jsoneditor-contextmenu button.jsoneditor-sort-desc .jsoneditor-icon{background-position:-192px 0}.jsoneditor-contextmenu button.jsoneditor-transform .jsoneditor-icon{background-position:-216px 0}.jsoneditor-contextmenu button.jsoneditor-extract .jsoneditor-icon{background-position:0 -24px}.jsoneditor-contextmenu button.jsoneditor-type-string .jsoneditor-icon{background-position:-144px 0}.jsoneditor-contextmenu button.jsoneditor-type-auto .jsoneditor-icon{background-position:-120px 0}.jsoneditor-contextmenu button.jsoneditor-type-object .jsoneditor-icon{background-position:-72px 0}.jsoneditor-contextmenu button.jsoneditor-type-array .jsoneditor-icon{background-position:-96px 0}.jsoneditor-contextmenu button.jsoneditor-type-modes .jsoneditor-icon{background-image:none;width:6px}.jsoneditor-contextmenu li,.jsoneditor-contextmenu ul{box-sizing:content-box;position:relative}.jsoneditor-contextmenu .jsoneditor-menu button:focus,.jsoneditor-contextmenu .jsoneditor-menu button:hover{color:#1a1a1a;background-color:#f5f5f5;outline:0}.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:focus,.jsoneditor-contextmenu .jsoneditor-menu li button.jsoneditor-selected:hover{color:#fff;background-color:#ee422e}.jsoneditor-contextmenu .jsoneditor-menu li ul li button:focus,.jsoneditor-contextmenu .jsoneditor-menu li ul li button:hover{background-color:#f5f5f5}.jsoneditor-modal{max-width:95%;border-radius:2px!important;padding:45px 15px 15px!important;box-shadow:2px 2px 12px hsla(0,0%,50%,.3);color:#4d4d4d;line-height:1.3em}.jsoneditor-modal.jsoneditor-modal-transform{width:600px!important}.jsoneditor-modal .pico-modal-header{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;padding:0 10px;height:30px;line-height:30px;font-family:arial,sans-serif;font-size:11pt;background:#3883fa;color:#fff}.jsoneditor-modal table{width:100%}.jsoneditor-modal table td{padding:3px 0}.jsoneditor-modal table td.jsoneditor-modal-input{text-align:right;padding-right:0;white-space:nowrap}.jsoneditor-modal table td.jsoneditor-modal-actions{padding-top:15px}.jsoneditor-modal table th{vertical-align:middle}.jsoneditor-modal p:first-child{margin-top:0}.jsoneditor-modal a{color:#3883fa}.jsoneditor-modal .jsoneditor-jmespath-block{margin-bottom:10px}.jsoneditor-modal .pico-close{background:0 0!important;font-size:24px!important;top:7px!important;right:7px!important;color:#fff}.jsoneditor-modal input{padding:4px}.jsoneditor-modal input[type=text]{cursor:inherit}.jsoneditor-modal input[disabled]{background:#d3d3d3;color:grey}.jsoneditor-modal .jsoneditor-select-wrapper{position:relative;display:inline-block}.jsoneditor-modal .jsoneditor-select-wrapper:after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #666;position:absolute;right:8px;top:14px;pointer-events:none}.jsoneditor-modal select{padding:3px 24px 3px 10px;min-width:180px;max-width:350px;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:0;text-overflow:"";font-size:10pt;line-height:1.5em}.jsoneditor-modal select::-ms-expand{display:none}.jsoneditor-modal .jsoneditor-button-group input{padding:4px 10px;margin:0;border-radius:0;border-left-style:none}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-first{border-top-left-radius:3px;border-bottom-left-radius:3px;border-left-style:solid}.jsoneditor-modal .jsoneditor-button-group input.jsoneditor-button-last{border-top-right-radius:3px;border-bottom-right-radius:3px}.jsoneditor-modal .jsoneditor-transform-preview{background:#f5f5f5;height:200px}.jsoneditor-modal .jsoneditor-transform-preview.jsoneditor-error{color:#ee422e}.jsoneditor-modal .jsoneditor-jmespath-wizard{line-height:1.2em;width:100%;padding:0;border-radius:3px}.jsoneditor-modal .jsoneditor-jmespath-label{font-weight:700;color:#1e90ff;margin-top:20px;margin-bottom:5px}.jsoneditor-modal .jsoneditor-jmespath-wizard-table{width:100%;border-collapse:collapse}.jsoneditor-modal .jsoneditor-jmespath-wizard-label{font-style:italic;margin:4px 0 2px}.jsoneditor-modal .jsoneditor-inline{position:relative;display:inline-block;width:100%;padding-top:2px;padding-bottom:2px}.jsoneditor-modal .jsoneditor-inline:not(:last-child){padding-right:2px}.jsoneditor-modal .jsoneditor-jmespath-filter{display:flex;flex-wrap:wrap}.jsoneditor-modal .jsoneditor-jmespath-filter-field{width:180px}.jsoneditor-modal .jsoneditor-jmespath-filter-relation{width:100px}.jsoneditor-modal .jsoneditor-jmespath-filter-value{min-width:180px;flex:1}.jsoneditor-modal .jsoneditor-jmespath-sort-field{width:170px}.jsoneditor-modal .jsoneditor-jmespath-sort-order{width:150px}.jsoneditor-modal .jsoneditor-jmespath-select-fields{width:100%}.jsoneditor-modal .selectr-selected{border-color:#d3d3d3;padding:4px 28px 4px 8px}.jsoneditor-modal .selectr-selected .selectr-tag{background-color:#3883fa;border-radius:5px}.jsoneditor-modal table td,.jsoneditor-modal table th{text-align:left;vertical-align:middle;font-weight:400;color:#4d4d4d;border-spacing:0;border-collapse:collapse}.jsoneditor-modal #query,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal input[type=text]:focus,.jsoneditor-modal select,.jsoneditor-modal textarea{background:#fff;border:1px solid #d3d3d3;color:#4d4d4d;border-radius:3px;padding:4px}.jsoneditor-modal,.jsoneditor-modal #query,.jsoneditor-modal input,.jsoneditor-modal input[type=text],.jsoneditor-modal option,.jsoneditor-modal select,.jsoneditor-modal table td,.jsoneditor-modal table th,.jsoneditor-modal textarea{font-size:10.5pt;font-family:arial,sans-serif}.jsoneditor-modal #query,.jsoneditor-modal .jsoneditor-transform-preview{font-family:dejavu sans mono,droid sans mono,consolas,monaco,lucida console,courier new,courier,monospace,sans-serif;font-size:10pt;width:100%;box-sizing:border-box}.jsoneditor-modal input[type=button],.jsoneditor-modal input[type=submit]{background:#f5f5f5;padding:4px 20px}.jsoneditor-modal input,.jsoneditor-modal select{cursor:pointer}.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-asc input.jsoneditor-button-asc,.jsoneditor-modal .jsoneditor-button-group.jsoneditor-button-group-value-desc input.jsoneditor-button-desc{background:#3883fa;border-color:#3883fa;color:#fff}.jsoneditor{color:#1a1a1a;border:thin solid #3883fa;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;position:relative;padding:0;line-height:100%}div.jsoneditor-default,div.jsoneditor-field,div.jsoneditor-readonly,div.jsoneditor-value{border:1px solid transparent;min-height:16px;min-width:32px;padding:2px;margin:1px;word-wrap:break-word;float:left}div.jsoneditor-field p,div.jsoneditor-value p{margin:0}div.jsoneditor-value{word-break:break-word}div.jsoneditor-value.jsoneditor-empty:after{content:"value"}div.jsoneditor-value.jsoneditor-string{color:#006000}div.jsoneditor-value.jsoneditor-number{color:#ee422e}div.jsoneditor-value.jsoneditor-boolean{color:#ff8c00}div.jsoneditor-value.jsoneditor-null{color:#004ed0}div.jsoneditor-value.jsoneditor-invalid{color:#000}div.jsoneditor-readonly{min-width:16px;color:grey}div.jsoneditor-empty{border-color:#d3d3d3;border-style:dashed;border-radius:2px}div.jsoneditor-field.jsoneditor-empty:after{content:"field"}div.jsoneditor td{vertical-align:top}div.jsoneditor td.jsoneditor-separator{padding:3px 0;vertical-align:top;color:grey}div.jsoneditor td.jsoneditor-tree{vertical-align:top}div.jsoneditor.busy pre.jsoneditor-preview{background:#f5f5f5;color:grey}div.jsoneditor.busy div.jsoneditor-busy{display:inherit}div.jsoneditor code.jsoneditor-preview{background:0 0}div.jsoneditor.jsoneditor-mode-preview pre.jsoneditor-preview{width:100%;height:100%;box-sizing:border-box;overflow:auto;padding:2px;margin:0;white-space:pre-wrap;word-break:break-all}div.jsoneditor-default{color:grey;padding-left:10px}div.jsoneditor-tree{width:100%;height:100%;position:relative;overflow:auto}div.jsoneditor-tree button.jsoneditor-button{width:24px;height:24px;padding:0;margin:0;border:none;cursor:pointer;background:transparent url('+i(n(0))+")}div.jsoneditor-tree button.jsoneditor-button:focus{background-color:#f5f5f5;outline:1px solid #e5e5e5}div.jsoneditor-tree button.jsoneditor-collapsed{background-position:0 -48px}div.jsoneditor-tree button.jsoneditor-expanded{background-position:0 -72px}div.jsoneditor-tree button.jsoneditor-contextmenu-button{background-position:-48px -72px}div.jsoneditor-tree button.jsoneditor-invisible{visibility:hidden;background:0 0}div.jsoneditor-tree button.jsoneditor-dragarea{background:url("+i(n(0))+") -72px -72px;cursor:move}div.jsoneditor-tree :focus{outline:0}div.jsoneditor-tree div.jsoneditor-show-more{display:inline-block;padding:3px 4px;margin:2px 0;background-color:#e5e5e5;border-radius:3px;color:grey;font-family:arial,sans-serif;font-size:10pt}div.jsoneditor-tree div.jsoneditor-show-more a{display:inline-block;color:grey}div.jsoneditor-tree div.jsoneditor-color{display:inline-block;width:12px;height:12px;margin:4px;border:1px solid grey;cursor:pointer}div.jsoneditor-tree div.jsoneditor-date{background:#a1a1a1;color:#fff;font-family:arial,sans-serif;border-radius:3px;display:inline-block;padding:3px;margin:0 3px}div.jsoneditor-tree table.jsoneditor-tree{border-collapse:collapse;border-spacing:0;width:100%}div.jsoneditor-tree .jsoneditor-button.jsoneditor-schema-error{width:24px;height:24px;padding:0;margin:0 4px 0 0;background:url("+i(n(0))+') -168px -48px}div.jsoneditor-outer{position:static;width:100%;height:100%;margin:0;padding:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}div.jsoneditor-outer.has-nav-bar{margin-top:-26px;padding-top:26px}div.jsoneditor-outer.has-nav-bar.has-main-menu-bar{margin-top:-61px;padding-top:61px}div.jsoneditor-outer.has-status-bar{margin-bottom:-26px;padding-bottom:26px}div.jsoneditor-outer.has-main-menu-bar{margin-top:-35px;padding-top:35px}div.jsoneditor-busy{position:absolute;top:15%;left:0;box-sizing:border-box;width:100%;text-align:center;display:none}div.jsoneditor-busy span{background-color:#ffffab;border:1px solid #fe0;border-radius:3px;padding:5px 15px;box-shadow:0 0 5px rgba(0,0,0,.4)}div.jsoneditor-field.jsoneditor-empty:after,div.jsoneditor-value.jsoneditor-empty:after{pointer-events:none;color:#d3d3d3;font-size:8pt}a.jsoneditor-value.jsoneditor-url,div.jsoneditor-value.jsoneditor-url{color:#006000;text-decoration:underline}a.jsoneditor-value.jsoneditor-url{display:inline-block;padding:2px;margin:2px}a.jsoneditor-value.jsoneditor-url:focus,a.jsoneditor-value.jsoneditor-url:hover{color:#ee422e}div.jsoneditor-field.jsoneditor-highlight,div.jsoneditor-field[contenteditable=true]:focus,div.jsoneditor-field[contenteditable=true]:hover,div.jsoneditor-value.jsoneditor-highlight,div.jsoneditor-value[contenteditable=true]:focus,div.jsoneditor-value[contenteditable=true]:hover{background-color:#ffffab;border:1px solid #fe0;border-radius:2px}div.jsoneditor-field.jsoneditor-highlight-active,div.jsoneditor-field.jsoneditor-highlight-active:focus,div.jsoneditor-field.jsoneditor-highlight-active:hover,div.jsoneditor-value.jsoneditor-highlight-active,div.jsoneditor-value.jsoneditor-highlight-active:focus,div.jsoneditor-value.jsoneditor-highlight-active:hover{background-color:#fe0;border:1px solid #ffc700;border-radius:2px}div.jsoneditor-value.jsoneditor-array,div.jsoneditor-value.jsoneditor-object{min-width:16px}div.jsoneditor-tree button.jsoneditor-contextmenu-button.jsoneditor-selected,div.jsoneditor-tree button.jsoneditor-contextmenu-button:focus,div.jsoneditor-tree button.jsoneditor-contextmenu-button:hover,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button{background-position:-48px -48px}div.jsoneditor-tree div.jsoneditor-show-more a:focus,div.jsoneditor-tree div.jsoneditor-show-more a:hover{color:#ee422e}.ace-jsoneditor,textarea.jsoneditor-text{min-height:150px}.ace-jsoneditor *,textarea.jsoneditor-text *{font-family:dejavu sans mono,droid sans mono,consolas,monaco,lucida console,courier new,courier,monospace,sans-serif}textarea.jsoneditor-text{width:100%;height:100%;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;outline-width:0;border:none;background-color:#fff;resize:none}tr.jsoneditor-highlight,tr.jsoneditor-selected{background-color:#d3d3d3}tr.jsoneditor-selected button.jsoneditor-contextmenu-button,tr.jsoneditor-selected button.jsoneditor-dragarea{visibility:hidden}tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-contextmenu-button,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{visibility:visible}div.jsoneditor-tree button.jsoneditor-dragarea:focus,div.jsoneditor-tree button.jsoneditor-dragarea:hover,tr.jsoneditor-selected.jsoneditor-first button.jsoneditor-dragarea{background-position:-72px -48px}div.jsoneditor td,div.jsoneditor th,div.jsoneditor tr{padding:0;margin:0}.jsoneditor-popover,.jsoneditor-schema-error,div.jsoneditor-field,div.jsoneditor-value,div.jsoneditor td,div.jsoneditor textarea,div.jsoneditor th,pre.jsoneditor-preview{font-family:dejavu sans mono,droid sans mono,consolas,monaco,lucida console,courier new,courier,monospace,sans-serif;font-size:10pt;color:#1a1a1a}.jsoneditor-schema-error{cursor:default;display:inline-block;height:24px;line-height:24px;position:relative;text-align:center;width:24px}.jsoneditor-popover{background-color:#4c4c4c;border-radius:3px;box-shadow:0 0 5px rgba(0,0,0,.4);color:#fff;padding:7px 10px;position:absolute;cursor:auto;width:200px}.jsoneditor-popover.jsoneditor-above{bottom:32px;left:-98px}.jsoneditor-popover.jsoneditor-above:before{border-top:7px solid #4c4c4c;bottom:-7px}.jsoneditor-popover.jsoneditor-below{top:32px;left:-98px}.jsoneditor-popover.jsoneditor-below:before{border-bottom:7px solid #4c4c4c;top:-7px}.jsoneditor-popover.jsoneditor-left{top:-7px;right:32px}.jsoneditor-popover.jsoneditor-left:before{border-left:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;right:-14px;left:inherit;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover.jsoneditor-right{top:-7px;left:32px}.jsoneditor-popover.jsoneditor-right:before{border-right:7px solid #4c4c4c;border-top:7px solid transparent;border-bottom:7px solid transparent;content:"";top:19px;left:-14px;margin-left:inherit;margin-top:-7px;position:absolute}.jsoneditor-popover:before{border-right:7px solid transparent;border-left:7px solid transparent;content:"";display:block;left:50%;margin-left:-7px;position:absolute}.jsoneditor-text-errors tr.jump-to-line:hover{text-decoration:underline;cursor:pointer}.jsoneditor-schema-error:focus .jsoneditor-popover,.jsoneditor-schema-error:hover .jsoneditor-popover{display:block;animation:fade-in .3s linear 1,move-up .3s linear 1}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.jsoneditor .jsoneditor-validation-errors-container{max-height:130px;overflow-y:auto}.jsoneditor .jsoneditor-validation-errors{width:100%;overflow:hidden}.jsoneditor .jsoneditor-additional-errors{position:absolute;margin:auto;bottom:31px;left:calc(50% - 92px);color:grey;background-color:#ebebeb;padding:7px 15px;border-radius:8px}.jsoneditor .jsoneditor-additional-errors.visible{visibility:visible;opacity:1;transition:opacity 2s linear}.jsoneditor .jsoneditor-additional-errors.hidden{visibility:hidden;opacity:0;transition:visibility 0s 2s,opacity 2s linear}.jsoneditor .jsoneditor-text-errors{width:100%;border-collapse:collapse;border-top:1px solid #ffc700}.jsoneditor .jsoneditor-text-errors td{padding:3px 6px;vertical-align:middle}.jsoneditor .jsoneditor-text-errors td pre{margin:0;white-space:normal}.jsoneditor .jsoneditor-text-errors tr{background-color:#ffffab}.jsoneditor .jsoneditor-text-errors tr.parse-error{background-color:#ee2e2e70}.jsoneditor-text-errors .jsoneditor-schema-error{border:none;width:24px;height:24px;padding:0;margin:0 4px 0 0;cursor:pointer}.jsoneditor-text-errors tr .jsoneditor-schema-error{background:url('+i(n(0))+") -168px -48px}.jsoneditor-text-errors tr.parse-error .jsoneditor-schema-error{background:url("+i(n(0))+") -25px 0}.jsoneditor-anchor{cursor:pointer}.jsoneditor-anchor .picker_wrapper.popup.popup_bottom{top:28px;left:-10px}.fadein{-webkit-animation:fadein .3s;animation:fadein .3s;-moz-animation:fadein .3s;-o-animation:fadein .3s}@keyframes fadein{0%{opacity:0}to{opacity:1}}.jsoneditor-modal input[type=search].selectr-input{border:1px solid #d3d3d3;width:calc(100% - 4px);margin:2px;padding:4px;box-sizing:border-box}.jsoneditor-modal button.selectr-input-clear{right:8px}.jsoneditor-menu{width:100%;height:35px;padding:2px;margin:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:#fff;background-color:#3883fa;border-bottom:1px solid #3883fa}.jsoneditor-menu>.jsoneditor-modes>button,.jsoneditor-menu>button{width:26px;height:26px;margin:2px;padding:0;border-radius:2px;border:1px solid transparent;background:transparent url("+i(n(0))+");color:#fff;opacity:.8;font-family:arial,sans-serif;font-size:10pt;float:left}.jsoneditor-menu>.jsoneditor-modes>button:hover,.jsoneditor-menu>button:hover{background-color:hsla(0,0%,100%,.2);border:1px solid hsla(0,0%,100%,.4)}.jsoneditor-menu>.jsoneditor-modes>button:active,.jsoneditor-menu>.jsoneditor-modes>button:focus,.jsoneditor-menu>button:active,.jsoneditor-menu>button:focus{background-color:hsla(0,0%,100%,.3)}.jsoneditor-menu>.jsoneditor-modes>button:disabled,.jsoneditor-menu>button:disabled{opacity:.5;background-color:transparent;border:none}.jsoneditor-menu>button.jsoneditor-collapse-all{background-position:0 -96px}.jsoneditor-menu>button.jsoneditor-expand-all{background-position:0 -120px}.jsoneditor-menu>button.jsoneditor-sort{background-position:-120px -96px}.jsoneditor-menu>button.jsoneditor-transform{background-position:-144px -96px}.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-form>.jsoneditor-menu>button.jsoneditor-transform,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-sort,.jsoneditor.jsoneditor-mode-view>.jsoneditor-menu>button.jsoneditor-transform{display:none}.jsoneditor-menu>button.jsoneditor-undo{background-position:-24px -96px}.jsoneditor-menu>button.jsoneditor-undo:disabled{background-position:-24px -120px}.jsoneditor-menu>button.jsoneditor-redo{background-position:-48px -96px}.jsoneditor-menu>button.jsoneditor-redo:disabled{background-position:-48px -120px}.jsoneditor-menu>button.jsoneditor-compact{background-position:-72px -96px}.jsoneditor-menu>button.jsoneditor-format{background-position:-72px -120px}.jsoneditor-menu>button.jsoneditor-repair{background-position:-96px -96px}.jsoneditor-menu>.jsoneditor-modes{display:inline-block;float:left}.jsoneditor-menu>.jsoneditor-modes>button{background-image:none;width:auto;padding-left:6px;padding-right:6px}.jsoneditor-menu>.jsoneditor-modes>button.jsoneditor-separator,.jsoneditor-menu>button.jsoneditor-separator{margin-left:10px}.jsoneditor-menu a{font-family:arial,sans-serif;font-size:10pt;color:#fff;opacity:.8;vertical-align:middle}.jsoneditor-menu a:hover{opacity:1}.jsoneditor-menu a.jsoneditor-poweredBy{font-size:8pt;position:absolute;right:0;top:0;padding:10px}.jsoneditor-navigation-bar{width:100%;height:26px;line-height:26px;padding:0;margin:0;border-bottom:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:grey;background-color:#ebebeb;overflow:hidden;font-family:arial,sans-serif;font-size:10pt}.jsoneditor-search{font-family:arial,sans-serif;position:absolute;right:4px;top:4px;border-collapse:collapse;border-spacing:0;display:flex}.jsoneditor-search input{color:#1a1a1a;width:120px;border:none;outline:0;margin:1px;line-height:20px;font-family:arial,sans-serif}.jsoneditor-search button{width:16px;height:24px;padding:0;margin:0;border:none;background:url("+i(n(0))+");vertical-align:top}.jsoneditor-search button:hover{background-color:transparent}.jsoneditor-search button.jsoneditor-refresh{width:18px;background-position:-99px -73px}.jsoneditor-search button.jsoneditor-next{cursor:pointer;background-position:-124px -73px}.jsoneditor-search button.jsoneditor-next:hover{background-position:-124px -49px}.jsoneditor-search button.jsoneditor-previous{cursor:pointer;background-position:-148px -73px;margin-right:2px}.jsoneditor-search button.jsoneditor-previous:hover{background-position:-148px -49px}.jsoneditor-results{font-family:arial,sans-serif;color:#fff;padding-right:5px;line-height:26px}.jsoneditor-frame{border:1px solid transparent;background-color:#fff;padding:0 2px;margin:0}.jsoneditor-statusbar{line-height:26px;height:26px;color:grey;background-color:#ebebeb;border-top:1px solid #d3d3d3;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:10pt}.jsoneditor-statusbar>.jsoneditor-curserinfo-val{margin-right:12px}.jsoneditor-statusbar>.jsoneditor-curserinfo-count{margin-left:4px}.jsoneditor-statusbar>.jsoneditor-validation-error-icon{float:right;width:24px;height:24px;padding:0;margin-top:1px;background:url("+i(n(0))+") -168px -48px;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-validation-error-count{float:right;margin:0 4px 0 0;cursor:pointer}.jsoneditor-statusbar>.jsoneditor-parse-error-icon{float:right;width:24px;height:24px;padding:0;margin:1px;background:url("+i(n(0))+') -25px 0}.jsoneditor-statusbar .jsoneditor-array-info a{color:inherit}div.jsoneditor-statusbar>.jsoneditor-curserinfo-label,div.jsoneditor-statusbar>.jsoneditor-size-info{margin:0 4px}.jsoneditor-treepath{padding:0 5px;overflow:hidden;white-space:nowrap;outline:0}.jsoneditor-treepath.show-all{word-wrap:break-word;white-space:normal;position:absolute;background-color:#ebebeb;z-index:1;box-shadow:2px 2px 12px hsla(0,0%,50%,.3)}.jsoneditor-treepath.show-all span.jsoneditor-treepath-show-all-btn{display:none}.jsoneditor-treepath div.jsoneditor-contextmenu-root{position:absolute;left:0}.jsoneditor-treepath .jsoneditor-treepath-show-all-btn{position:absolute;background-color:#ebebeb;left:0;height:20px;padding:0 3px;cursor:pointer}.jsoneditor-treepath .jsoneditor-treepath-element{margin:1px;font-family:arial,sans-serif;font-size:10pt}.jsoneditor-treepath .jsoneditor-treepath-seperator{margin:2px;font-size:9pt;font-family:arial,sans-serif}.jsoneditor-treepath span.jsoneditor-treepath-element:hover,.jsoneditor-treepath span.jsoneditor-treepath-seperator:hover{cursor:pointer;text-decoration:underline}/*!\n * Selectr 2.4.0\n * https://github.com/Mobius1/Selectr\n *\n * Released under the MIT license\n */.selectr-container{position:relative}.selectr-container li{list-style:none}.selectr-hidden{position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;padding:0;border:0 none}.selectr-visible{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;z-index:11}.selectr-desktop.multiple .selectr-visible{display:none}.selectr-desktop.multiple.native-open .selectr-visible{top:100%;min-height:200px!important;height:auto;opacity:1;display:block}.selectr-container.multiple.selectr-mobile .selectr-selected{z-index:0}.selectr-selected{position:relative;z-index:1;box-sizing:border-box;width:100%;padding:7px 28px 7px 14px;cursor:pointer;border:1px solid #999;border-radius:3px;background-color:#fff}.selectr-selected:before{position:absolute;top:50%;right:10px;width:0;height:0;content:"";-o-transform:rotate(0) translate3d(0,-50%,0);-ms-transform:rotate(0) translate3d(0,-50%,0);-moz-transform:rotate(0) translate3d(0,-50%,0);-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0);border-width:4px 4px 0;border-style:solid;border-color:#6c7a86 transparent transparent}.selectr-container.native-open .selectr-selected:before,.selectr-container.open .selectr-selected:before{border-width:0 4px 4px;border-style:solid;border-color:transparent transparent #6c7a86}.selectr-label{display:none;overflow:hidden;width:100%;white-space:nowrap;text-overflow:ellipsis}.selectr-placeholder{color:#6c7a86}.selectr-tags{margin:0;padding:0;white-space:normal}.has-selected .selectr-tags{margin:0 0 -2px}.selectr-tag{list-style:none;position:relative;float:left;padding:2px 25px 2px 8px;margin:0 2px 2px 0;cursor:default;color:#fff;border:medium none;border-radius:10px;background:#acb7bf none repeat scroll 0 0}.selectr-container.multiple.has-selected .selectr-selected{padding:5px 28px 5px 5px}.selectr-options-container{position:absolute;z-index:10000;top:calc(100% - 1px);left:0;display:none;box-sizing:border-box;width:100%;border-width:0 1px 1px;border-style:solid;border-color:transparent #999 #999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.open .selectr-options-container{display:block}.selectr-input-container{position:relative;display:none}.selectr-clear,.selectr-input-clear,.selectr-tag-remove{position:absolute;top:50%;right:22px;width:20px;height:20px;padding:0;cursor:pointer;-o-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);border:medium none;background-color:transparent;z-index:11}.selectr-clear,.selectr-input-clear{display:none}.selectr-container.has-selected .selectr-clear,.selectr-input-container.active .selectr-input-clear{display:block}.selectr-selected .selectr-tag-remove{right:2px}.selectr-clear:after,.selectr-clear:before,.selectr-input-clear:after,.selectr-input-clear:before,.selectr-tag-remove:after,.selectr-tag-remove:before{position:absolute;top:5px;left:9px;width:2px;height:10px;content:" ";background-color:#6c7a86}.selectr-tag-remove:after,.selectr-tag-remove:before{top:4px;width:3px;height:12px;background-color:#fff}.selectr-clear:before,.selectr-input-clear:before,.selectr-tag-remove:before{-o-transform:rotate(45deg);-ms-transform:rotate(45deg);-moz-transform:rotate(45deg);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.selectr-clear:after,.selectr-input-clear:after,.selectr-tag-remove:after{-o-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.selectr-input-container.active,.selectr-input-container.active .selectr-clear{display:block}.selectr-input{top:5px;left:5px;box-sizing:border-box;width:calc(100% - 30px);margin:10px 15px;padding:7px 30px 7px 9px;border:1px solid #999;border-radius:3px}.selectr-notice{display:none;box-sizing:border-box;width:100%;padding:8px 16px;border-top:1px solid #999;border-radius:0 0 3px 3px;background-color:#fff}.selectr-container.notice .selectr-notice{display:block}.selectr-container.notice .selectr-selected{border-radius:3px 3px 0 0}.selectr-options{position:relative;top:calc(100% + 2px);display:none;overflow-x:auto;overflow-y:scroll;max-height:200px;margin:0;padding:0}.selectr-container.notice .selectr-options-container,.selectr-container.open .selectr-input-container,.selectr-container.open .selectr-options{display:block}.selectr-option{position:relative;display:block;padding:5px 20px;list-style:outside none none;cursor:pointer;font-weight:400}.selectr-options.optgroups>.selectr-option{padding-left:25px}.selectr-optgroup{font-weight:700;padding:0}.selectr-optgroup--label{font-weight:700;margin-top:10px;padding:5px 15px}.selectr-match{text-decoration:underline}.selectr-option.selected{background-color:#ddd}.selectr-option.active{color:#fff;background-color:#5897fb}.selectr-option.disabled{opacity:.4}.selectr-option.excluded{display:none}.selectr-container.open .selectr-selected{border-color:#999 #999 transparent;border-radius:3px 3px 0 0}.selectr-container.open .selectr-selected:after{-o-transform:rotate(180deg) translate3d(0,50%,0);-ms-transform:rotate(180deg) translate3d(0,50%,0);-moz-transform:rotate(180deg) translate3d(0,50%,0);-webkit-transform:rotate(180deg) translate3d(0,50%,0);transform:rotate(180deg) translate3d(0,50%,0)}.selectr-disabled{opacity:.6}.has-selected .selectr-placeholder,.selectr-empty{display:none}.has-selected .selectr-label{display:block}.taggable .selectr-selected{padding:4px 28px 4px 4px}.taggable .selectr-selected:after{display:table;content:" ";clear:both}.taggable .selectr-label{width:auto}.taggable .selectr-tags{float:left;display:block}.taggable .selectr-placeholder{display:none}.input-tag{float:left;min-width:90px;width:auto}.selectr-tag-input{border:medium none;padding:3px 10px;width:100%;font-family:inherit;font-weight:inherit;font-size:inherit}.selectr-input-container.loading:after{position:absolute;top:50%;right:20px;width:20px;height:20px;content:"";-o-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0);-o-transform-origin:50% 0 0;-ms-transform-origin:50% 0 0;-moz-transform-origin:50% 0 0;-webkit-transform-origin:50% 0 0;transform-origin:50% 0 0;-moz-animation:.5s linear 0s normal forwards infinite running spin;-webkit-animation:.5s linear 0s normal forwards infinite running spin;animation:.5s linear 0s normal forwards infinite running spin;border-width:3px;border-style:solid;border-color:#aaa #ddd #ddd;border-radius:50%}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(1turn) translate3d(0,-50%,0);transform:rotate(1turn) translate3d(0,-50%,0)}}@keyframes spin{0%{-webkit-transform:rotate(0) translate3d(0,-50%,0);transform:rotate(0) translate3d(0,-50%,0)}to{-webkit-transform:rotate(1turn) translate3d(0,-50%,0);transform:rotate(1turn) translate3d(0,-50%,0)}}.selectr-container.open.inverted .selectr-selected{border-color:transparent #999 #999;border-radius:0 0 3px 3px}.selectr-container.inverted .selectr-options-container{border-width:1px 1px 0;border-color:#999 #999 transparent;border-radius:3px 3px 0 0;background-color:#fff;top:auto;bottom:calc(100% - 1px)}.selectr-container ::-webkit-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::-moz-placeholder{color:#6c7a86;opacity:1}.selectr-container :-ms-input-placeholder{color:#6c7a86;opacity:1}.selectr-container ::placeholder{color:#6c7a86;opacity:1}',""])},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"jsoneditor-container",class:{"max-box":t.max,"min-box":!t.max},style:t.getHeight},[n("div",{ref:"jsoneditor",staticClass:"jsoneditor-box"}),t._v(" "),"code"==t.options.mode&&t.plus?n("button",{staticClass:"max-btn",attrs:{type:"button",size:"mini"},on:{click:function(e){t.max=!t.max}}}):t._e()])},r=[],o={render:i,staticRenderFns:r};e.a=o}])}))},bcbf:function(t,e,n){var i=n("f5df");t.exports=function(t){var e=i(t);return"BigInt64Array"==e||"BigUint64Array"==e}},bcfe:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"add-asset-dialog"},[n("IocDialog",{attrs:{title:t.$t("search.add_to_monitor"),dialogConfig:t.dialogConfig,exportLoading:t.loading},on:{cancelDialog:t.onCancelDialog,sureDialog:t.onSureDialog}},[[t.isWhole?n("div",{staticClass:"query-tip"},[n("svg-icon",{staticClass:"icon-tip",attrs:{"icon-class":"tip"}}),n("span",[t._v("查询语句类型下添加监测，数量不超过"+t._s(t.ipLimit)+"个")])],1):t._e(),n("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:t.form,rules:t.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:t.$t("search.asset_name"),prop:"name"}},[t.isWhole?n("el-input",{attrs:{placeholder:"请输入资产名称",clearable:""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}}):n("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"","default-first-option":"","allow-create":"",placeholder:"请选择或创建资产名称",clearable:""},on:{change:t.onChangeAssetName},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}},t._l(t.options.assetList,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.name}})})),1)],1),n("el-form-item",{attrs:{label:t.$t("search.monitor_type")}},[t._v(" "+t._s(t.isWhole?"查询语句":t.judgeIpOrDomain)+" ")]),t.isWhole?n("el-form-item",{attrs:{label:t.$t("search.query_string"),prop:"queryGrammar"}},[n("el-input",{attrs:{type:"textarea",rows:3,placeholder:'`请输入查询语句，如port:"8080" AND service:"https"`'},model:{value:t.form.queryGrammar,callback:function(e){t.$set(t.form,"queryGrammar",e)},expression:"form.queryGrammar"}})],1):t._e(),n("el-form-item",{attrs:{label:t.$t("search.tag"),prop:"tags"}},[t._l(t.form.tags,(function(e,i){return n("el-tag",{key:i,staticStyle:{margin:"0 4px 4px 0"}},[t._v(t._s(e))])})),t._l(t.newTags,(function(e,i){return n("el-tag",{key:i+"n",staticStyle:{margin:"0 4px 4px 0"},attrs:{closable:""},on:{close:function(n){return t.onCloseTag(e)}}},[t._v(t._s(e))])})),t.isAdding?n("span",[n("el-input",{staticStyle:{width:"120px","margin-right":"10px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onCreateTag(e)}},model:{value:t.tag,callback:function(e){t.tag=e},expression:"tag"}}),n("el-button",{attrs:{type:"text"},on:{click:function(e){t.tag="",t.isAdding=!1}}},[t._v(t._s(t.$t("global.cancel")))]),n("el-button",{attrs:{type:"text"},on:{click:t.onCreateTag}},[t._v(t._s(t.$t("global.confirm")))])],1):n("el-button",{attrs:{type:"text"},on:{click:function(e){t.isAdding=!t.isAdding}}},[t._v(t._s(t.$t("search.new_tag")))])],2)],1)]],2)],1)},r=[],o=(n("a4d3"),n("99af"),n("4de4"),n("7db0"),n("4160"),n("a630"),n("caad"),n("c975"),n("a434"),n("b0c0"),n("dca8"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("6062"),n("2532"),n("3ca3"),n("498a"),n("159b"),n("ddb0"),n("2909")),a=(n("96cf"),n("ade3")),s=n("2f62"),l=n("80df"),c=n("e581"),u=n("09e7"),h=n("cf45");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={props:{data:{type:Object,required:!0,default:function(){return{}}},isWhole:{type:Boolean,default:!1},queryGrammar:{type:String,default:""}},data:function(){return{loading:!1,dialogConfig:{width:"476px",dialogVisible:!1},form:{queryGrammar:this.queryGrammar},formOrigin:Object.freeze({name:"",tags:[]}),filterObject:{},rules:{name:[{required:!0,message:this.isWhole?"请输入创建的资产名称":"请选择或创建资产名称",trigger:"change"}],queryGrammar:[{required:!0,message:"请输入查询语句",trigger:"change"}]},options:{assetList:[]},isAdding:!1,tag:"",newTags:[],ipLimit:0}},mounted:function(){this.role&&h["h"]&&this.getIpLimit()},computed:p({judgeIpOrDomain:function(){return this.data.domain?"域名":"IP"}},Object(s["e"])("site",["userInfo","role"])),watch:{"dialogConfig.dialogVisible":{handler:function(t){var e=this;t&&(this.isAdding=!1,this.tag="",this.newTags=[],this.isWhole?this.form=p({queryGrammar:this.form.queryGrammar},this._.cloneDeep(this.formOrigin)):(this.form=this._.cloneDeep(this.formOrigin),this.$nextTick((function(){e.$refs.form.resetFields()}))),this.getAssetList())}},queryGrammar:function(t){this.form.queryGrammar=t}},methods:{getIpLimit:function(){var t,e;return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:return t="concern_asset.ip_list.limit",n.next=3,regeneratorRuntime.awrap(Object(c["o"])(t));case 3:e=n.sent,0===e.code&&(this.ipLimit=e.data);case 5:case"end":return n.stop()}}),null,this)},getAssetList:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return t={},t.size=999,t.start=0,t.asset_type=this.getAssetType(),r.next=6,regeneratorRuntime.awrap(Object(l["g"])(t));case 6:e=r.sent,n=e.code,i=e.data,0===n&&(this.options.assetList=i);case 9:case"end":return r.stop()}}),null,this)},onChangeAssetName:function(t){if(t){var e=this.options.assetList.find((function(e){return e.name===t}));this.filterObject=e,this.form.tags=[],e&&(this.form.tags=e.tags)}},onCreateTag:function(){!this.tag.trim()||this.form.tags.includes(this.tag.trim())||this.newTags.includes(this.tag.trim())||this.newTags.push(this.tag.trim()),this.tag="",this.isAdding=!1},onCloseTag:function(t){this.newTags.splice(this.newTags.indexOf(t),1)},onCancelDialog:function(){this.dialogConfig.dialogVisible=!1},onSureDialog:function(){var t=this;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(this.$refs.form.validate((function(e){var n,i,r,a;return regeneratorRuntime.async((function(s){while(1)switch(s.prev=s.next){case 0:if(!e){s.next=20;break}if(n={name:t.form.name,tags:Array.from(new Set([].concat(Object(o["a"])(t.form.tags),Object(o["a"])(t.newTags)))),asset_list:[],message:!0},i=((t.data.service||{}).http||{}).host||"",n.asset_type=t.getAssetType(),"ip"===n.asset_type&&(i=t.data.ip),t.isWhole?n.asset_list=[t.form.queryGrammar]:t.filterObject&&t.filterObject.asset_list?n.asset_list=Array.from(new Set([].concat(Object(o["a"])(t.filterObject.asset_list),[i]))):n.asset_list=[i],t.loading=!0,!t.filterObject||!t.filterObject.id){s.next=13;break}return s.next=10,regeneratorRuntime.awrap(Object(l["v"])(n,t.filterObject.id));case 10:s.t0=s.sent,s.next=16;break;case 13:return s.next=15,regeneratorRuntime.awrap(Object(l["o"])(n));case 15:s.t0=s.sent;case 16:r=s.t0,a=r.code,0===a&&(t.$message({type:"success",message:"操作成功！"}),t.dialogConfig.dialogVisible=!1),t.loading=!1;case 20:case"end":return s.stop()}}))})));case 2:case"end":return e.stop()}}),null,this)},getAssetType:function(){var t=((this.data.service||{}).http||{}).host||"";return this.isWhole?"query_string":t&&!Object(u["a"])(t)?"domain":"ip"}}},g=f,m=(n("a38d5"),n("2877")),v=Object(m["a"])(g,i,r,!1,null,"3b932c0c",null);e["a"]=v.exports},bd8b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={}.toString,r=function(t,e){return i.call(t)==="[object "+e+"]"};e.default=r},bda0:function(t,e,n){var i=n("1ab2").FilterCSS,r=n("1ab2").getDefaultWhiteList,o=n("eb71");function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]}}var s=new i;function l(t,e,n){}function c(t,e,n){}function u(t,e,n){}function h(t,e,n){}function d(t){return t.replace(f,"&lt;").replace(g,"&gt;")}function p(t,e,n,i){if(n=E(n),"href"===e||"src"===e){if(n=o.trim(n),"#"===n)return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===e){if(w.lastIndex=0,w.test(n))return""}else if("style"===e){if(_.lastIndex=0,_.test(n))return"";if(C.lastIndex=0,C.test(n)&&(w.lastIndex=0,w.test(n)))return"";!1!==i&&(i=i||s,n=i.process(n))}return n=T(n),n}var f=/</g,g=/>/g,m=/"/g,v=/&quot;/g,y=/&#([a-zA-Z0-9]*);?/gim,b=/&colon;?/gim,x=/&newline;?/gim,w=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,_=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,C=/u\s*r\s*l\s*\(.*/gi;function A(t){return t.replace(m,"&quot;")}function I(t){return t.replace(v,'"')}function S(t){return t.replace(y,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function M(t){return t.replace(b,":").replace(x," ")}function k(t){for(var e="",n=0,i=t.length;n<i;n++)e+=t.charCodeAt(n)<32?" ":t.charAt(n);return o.trim(e)}function E(t){return t=I(t),t=S(t),t=M(t),t=k(t),t}function T(t){return t=A(t),t=d(t),t}function O(){return""}function P(t,e){"function"!==typeof e&&(e=function(){});var n=!Array.isArray(t);function i(e){return!!n||-1!==o.indexOf(t,e)}var r=[],a=!1;return{onIgnoreTag:function(t,n,o){if(i(t)){if(o.isClosing){var s="[/removed]",l=o.position+s.length;return r.push([!1!==a?a:o.position,l]),a=!1,s}return a||(a=o.position),"[removed]"}return e(t,n,o)},remove:function(t){var e="",n=0;return o.forEach(r,(function(i){e+=t.slice(n,i[0]),n=i[1]})),e+=t.slice(n),e}}}function j(t){return t.replace(L,"")}var L=/<!--[\s\S]*?-->/g;function D(t){var e=t.split("");return e=e.filter((function(t){var e=t.charCodeAt(0);return 127!==e&&(!(e<=31)||(10===e||13===e))})),e.join("")}e.whiteList=a(),e.getDefaultWhiteList=a,e.onTag=l,e.onIgnoreTag=c,e.onTagAttr=u,e.onIgnoreTagAttr=h,e.safeAttrValue=p,e.escapeHtml=d,e.escapeQuote=A,e.unescapeQuote=I,e.escapeHtmlEntities=S,e.escapeDangerHtml5Entities=M,e.clearNonPrintableCharacter=k,e.friendlyAttrValue=E,e.escapeAttrValue=T,e.onIgnoreTagStripAll=O,e.StripTagBody=P,e.stripCommentTag=j,e.stripBlankChar=D,e.cssFilter=s,e.getDefaultCSSWhiteList=r},be6e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("90f6"),r=n("90f6"),o=n("18f2");function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function s(t){t=o.default(t);for(var e=[],n=null,s=null,l=null,c=0,u=t.length,h=0;h<u;h++){var d=t[h];s=t[h+1];var p=d[0],f={command:p,prePoint:n,params:d,startTangent:null,endTangent:null};switch(p){case"M":l=[d[1],d[2]],c=h;break;case"A":var g=i.default(n,d);f["arcParams"]=g;break;default:break}if("Z"===p)n=l,s=t[c+1];else{var m=d.length;n=[d[m-2],d[m-1]]}s&&"Z"===s[0]&&(s=t[c],e[c]&&(e[c].prePoint=n)),f["currentPoint"]=n,e[c]&&r.isSamePoint(n,e[c].currentPoint)&&(e[c].prePoint=f.prePoint);var v=s?[s[s.length-2],s[s.length-1]]:null;f["nextPoint"]=v;var y=f.prePoint;if(["L","H","V"].includes(p))f.startTangent=[y[0]-n[0],y[1]-n[1]],f.endTangent=[n[0]-y[0],n[1]-y[1]];else if("Q"===p){var b=[d[1],d[2]];f.startTangent=[y[0]-b[0],y[1]-b[1]],f.endTangent=[n[0]-b[0],n[1]-b[1]]}else if("T"===p){var x=e[h-1];b=a(x.currentPoint,y);"Q"===x.command?(f.command="Q",f.startTangent=[y[0]-b[0],y[1]-b[1]],f.endTangent=[n[0]-b[0],n[1]-b[1]]):(f.command="TL",f.startTangent=[y[0]-n[0],y[1]-n[1]],f.endTangent=[n[0]-y[0],n[1]-y[1]])}else if("C"===p){var w=[d[1],d[2]],_=[d[3],d[4]];f.startTangent=[y[0]-w[0],y[1]-w[1]],f.endTangent=[n[0]-_[0],n[1]-_[1]]}else if("S"===p){x=e[h-1],w=a(x.currentPoint,y),_=[d[1],d[2]];"C"===x.command?(f.command="C",f.startTangent=[y[0]-w[0],y[1]-w[1]],f.endTangent=[n[0]-_[0],n[1]-_[1]]):(f.command="SQ",f.startTangent=[y[0]-_[0],y[1]-_[1]],f.endTangent=[n[0]-_[0],n[1]-_[1]])}else if("A"===p){var C=.001,A=f["arcParams"]||{},I=A.cx,S=void 0===I?0:I,M=A.cy,k=void 0===M?0:M,E=A.rx,T=void 0===E?0:E,O=A.ry,P=void 0===O?0:O,j=A.sweepFlag,L=void 0===j?0:j,D=A.startAngle,R=void 0===D?0:D,B=A.endAngle,N=void 0===B?0:B;0===L&&(C*=-1);var F=T*Math.cos(R-C)+S,z=P*Math.sin(R-C)+k;f.startTangent=[F-l[0],z-l[1]];var V=T*Math.cos(R+N+C)+S,G=P*Math.sin(R+N-C)+k;f.endTangent=[y[0]-V,y[1]-G]}e.push(f)}return e}e.default=s},be81:function(t,e,n){t.exports=n.p+"assets/img/scenario-map-2-green.b77ce3c7.png"},bf07:function(t,e,n){t.exports=n.p+"assets/img/scenario-map-4-green.8d9576c9.png"},bf85:function(t,e,n){},c1ac:function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").filter,o=n("1448"),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("filter",(function(t){var e=r(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},c2ad:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),o=n("4799"),a=n("f5e5"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.onCanvasChange=function(t){Object(a["f"])(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a["a"])(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.getChildren();n.length&&(t.save(),Object(a["a"])(t,this),this._applyClip(t,this.getClip()),Object(a["b"])(t,n,e),t.restore()),this.set("cacheCanvasBBox",this.getCanvasBBox()),this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(r["b"]);e["a"]=s},c31b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("c3e2"),r=n("b455"),o=n("493b");function a(t,e,n,i){var r=1-i;return r*r*t+2*i*r*e+i*i*n}function s(t,e,n){var i=t+n-2*e;if(r.isNumberEqual(i,0))return[.5];var o=(t-e)/i;return o<=1&&o>=0?[o]:[]}function l(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function c(t,e,n,r,o,s,l){var c=a(t,n,o,l),u=a(e,r,s,l),h=i.default.pointAt(t,e,n,r,l),d=i.default.pointAt(n,r,o,s,l);return[[t,e,h.x,h.y,c,u],[c,u,d.x,d.y,o,s]]}function u(t,e,n,i,o,a,s){if(0===s)return(r.distance(t,e,n,i)+r.distance(n,i,o,a)+r.distance(t,e,o,a))/2;var l=c(t,e,n,i,o,a,.5),h=l[0],d=l[1];return h.push(s-1),d.push(s-1),u.apply(null,h)+u.apply(null,d)}e.default={box:function(t,e,n,i,o,l){var c=s(t,n,o)[0],u=s(e,i,l)[0],h=[t,o],d=[e,l];return void 0!==c&&h.push(a(t,n,o,c)),void 0!==u&&d.push(a(e,i,l,u)),r.getBBoxByArray(h,d)},length:function(t,e,n,i,r,o){return u(t,e,n,i,r,o,3)},nearestPoint:function(t,e,n,i,r,s,l,c){return o.nearestPoint([t,n,r],[e,i,s],l,c,a)},pointDistance:function(t,e,n,i,o,a,s,l){var c=this.nearestPoint(t,e,n,i,o,a,s,l);return r.distance(c.x,c.y,s,l)},interpolationAt:a,pointAt:function(t,e,n,i,r,o,s){return{x:a(t,n,r,s),y:a(e,i,o,s)}},divide:function(t,e,n,i,r,o,a){return c(t,e,n,i,r,o,a)},tangentAngle:function(t,e,n,i,o,a,s){var c=l(t,n,o,s),u=l(e,i,a,s),h=Math.atan2(u,c);return r.piMod(h)}}},c3e2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("b455"),r=n("6711");e.default={box:function(t,e,n,r){return i.getBBoxByArray([t,n],[e,r])},length:function(t,e,n,r){return i.distance(t,e,n,r)},pointAt:function(t,e,n,i,r){return{x:(1-r)*t+r*n,y:(1-r)*e+r*i}},pointDistance:function(t,e,n,r,o,a){var s=(n-t)*(o-t)+(r-e)*(a-e);if(s<0)return i.distance(t,e,o,a);var l=(n-t)*(n-t)+(r-e)*(r-e);return s>l?i.distance(n,r,o,a):this.pointToLine(t,e,n,r,o,a)},pointToLine:function(t,e,n,i,o,a){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return Math.sqrt((o-t)*(o-t)+(a-e)*(a-e));var l=[-s[1],s[0]];r.normalize(l,l);var c=[o-t,a-e];return Math.abs(r.dot(c,l))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}}},c41e:function(t,e,n){},c49d:function(t,e,n){"use strict";var i=n("35ca"),r=n.n(i);r.a},c4e3:function(t,e,n){(function(e,n,i){var r;!function(e){t.exports=e()}((function(){return function t(e,n,i){function o(s,l){if(!n[s]){if(!e[s]){var c="function"==typeof r&&r;if(!l&&c)return r(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var h=n[s]={exports:{}};e[s][0].call(h.exports,(function(t){var n=e[s][1][t];return o(n||t)}),h,h.exports,t,e,n,i)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,r,a,s,l,c,u=[],h=0,d=t.length,p=d,f="string"!==i.getTypeOf(t);h<t.length;)p=d-h,r=f?(e=t[h++],n=h<d?t[h++]:0,h<d?t[h++]:0):(e=t.charCodeAt(h++),n=h<d?t.charCodeAt(h++):0,h<d?t.charCodeAt(h++):0),a=e>>2,s=(3&e)<<4|n>>4,l=1<p?(15&n)<<2|r>>6:64,c=2<p?63&r:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(t){var e,n,i,a,s,l,c=0,u=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&p--,t.charAt(t.length-2)===o.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=r.uint8array?new Uint8Array(0|p):new Array(0|p);c<t.length;)e=o.indexOf(t.charAt(c++))<<2|(a=o.indexOf(t.charAt(c++)))>>4,n=(15&a)<<4|(s=o.indexOf(t.charAt(c++)))>>2,i=(3&s)<<6|(l=o.indexOf(t.charAt(c++))),d[u++]=e,64!==s&&(d[u++]=n),64!==l&&(d[u++]=i);return d}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,n,i,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var t=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new o).pipe(new a("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=i?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function r(t,e,n,r,a,u){var h,d,p=t.file,f=t.compression,g=u!==s.utf8encode,m=o.transformTo("string",u(p.name)),v=o.transformTo("string",s.utf8encode(p.name)),y=p.comment,b=o.transformTo("string",u(y)),x=o.transformTo("string",s.utf8encode(y)),w=v.length!==p.name.length,_=x.length!==y.length,C="",A="",I="",S=p.dir,M=p.date,k={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(k.crc32=t.crc32,k.compressedSize=t.compressedSize,k.uncompressedSize=t.uncompressedSize);var E=0;e&&(E|=8),g||!w&&!_||(E|=2048);var T=0,O=0;S&&(T|=16),"UNIX"===a?(O=798,T|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(p.unixPermissions,S)):(O=20,T|=function(t){return 63&(t||0)}(p.dosPermissions)),h=M.getUTCHours(),h<<=6,h|=M.getUTCMinutes(),h<<=5,h|=M.getUTCSeconds()/2,d=M.getUTCFullYear()-1980,d<<=4,d|=M.getUTCMonth()+1,d<<=5,d|=M.getUTCDate(),w&&(A=i(1,1)+i(l(m),4)+v,C+="up"+i(A.length,2)+A),_&&(I=i(1,1)+i(l(b),4)+x,C+="uc"+i(I.length,2)+I);var P="";return P+="\n\0",P+=i(E,2),P+=f.magic,P+=i(h,2),P+=i(d,2),P+=i(k.crc32,4),P+=i(k.compressedSize,4),P+=i(k.uncompressedSize,4),P+=i(m.length,2),P+=i(C.length,2),{fileRecord:c.LOCAL_FILE_HEADER+P+m+C,dirRecord:c.CENTRAL_FILE_HEADER+i(O,2)+P+i(b.length,2)+"\0\0\0\0"+i(T,4)+i(r,4)+m+C+b}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),c=t("../signature");function u(t,e,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,a),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return c.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(t,e,n,r,a){var s=o.transformTo("string",a(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),r=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var o=new r(e.streamFiles,n,e.platform,e.encodeFileName),a=0;try{t.forEach((function(t,n){a++;var r=function(t,e){var n=t||e,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,s).withStreamInfo("file",{name:t,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./external"),o=t("./utf8"),a=t("./zipEntries"),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function c(t){return new r.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new s);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new a(e);return n.load(t),n})).then((function(t){var n=[r.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var o=0;o<i.length;o++)n.push(c(i[o]));return r.Promise.all(n)})).then((function(t){for(var r=t.shift(),o=r.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,c=i.resolve(s.fileNameStr);n.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(c).unsafeOriginalName=l)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../stream/GenericWorker");function o(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(o,r),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function r(t,e,n){i.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),n&&n(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,n,i){"use strict";n.exports={isNode:"undefined"!=typeof e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,r=o.getTypeOf(e),s=o.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(i=f(t))&&m.call(this,i,!0);var h="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!h),(e instanceof c&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",r="string");var v=null;v=e instanceof c||e instanceof a?e:d.isNode&&d.isStream(e)?new p(t,e):o.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var y=new u(t,v,s);this.files[t]=y}var r=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),c=t("./compressedObject"),u=t("./zipObject"),h=t("./generate"),d=t("./nodejsUtils"),p=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function v(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(v(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(v(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=h.generateWorker(this,n,i)}catch(t){(e=new a("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new s(t):r.uint8array?new l(i.transformTo("uint8array",t)):new o(i.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../utils");function o(t){i.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(o,i),o.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,i),o.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(o,r),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,n,i){"use strict";var r=t("../utils"),o=t("./ConvertWorker"),a=t("./GenericWorker"),s=t("../base64"),l=t("../support"),c=t("../external"),u=null;if(l.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function h(t,n){return new c.Promise((function(i,o){var a=[],l=t._internalType,c=t._outputType,u=t._mimeType;t.on("data",(function(t,e){a.push(t),n&&n(e)})).on("error",(function(t){a=[],o(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return r.transformTo(t,e)}}(c,function(t,n){var i,r=0,o=null,a=0;for(i=0;i<n.length;i++)a+=n[i].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(o=new Uint8Array(a),i=0;i<n.length;i++)o.set(n[i],r),r+=n[i].length;return o;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(l,a),u);i(t)}catch(t){o(t)}a=[]})).resume()}))}function d(t,e,n){var i=e;switch(e){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=e,this._mimeType=n,r.checkSupport(i),this._worker=t.pipe(new o(i)),t.lock()}catch(t){this._worker=new a("error"),this._worker.error(t)}}d.prototype={accumulate:function(t){return h(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){r.delay(e,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof e,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var r=new ArrayBuffer(0);try{i.blob=0===new Blob([r],{type:"application/zip"}).size}catch(t){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),i.blob=0===o.getBlob("application/zip").size}catch(t){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),r=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,i,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e}(t)},n.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,o,a=t.length,l=new Array(2*a);for(e=n=0;e<a;)if((r=t[e++])<128)l[n++]=r;else if(4<(o=s[r]))l[n++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&e<a;)r=r<<6|63&t[e++],o--;1<o?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(c,a),c.prototype.processChunk=function(t){var e=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+s[t[n]]>e?n:e}(e),l=e;a!==e.length&&(r.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,i.inherits(u,a),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),r=t("./base64"),o=t("./nodejsUtils"),a=t("./external");function s(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(e,i){n.checkSupport("blob");try{return new Blob([e],{type:i})}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],r=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,i=n.getTypeOf(t),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return c.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return c.stringifyByChar(t)}function h(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=u;var d={};d.string={string:s,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},d.array={string:u,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},d.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:u,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return o.newBufferFrom(t)}},d.nodebuffer={string:u,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return d[i][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++){var r=e[i];"."===r||""===r&&0!==i&&i!==e.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&o.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,o,s,c){return a.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(c?e=r.decode(e):o&&!0!==s&&(e=function(t){return l(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):a.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),c=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,i,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(r)},handleUTF8:function(){var t=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)?null:a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)?null:a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(e=e.pipe(new a.Utf8EncodeWorker)),!o&&i&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new r(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<c.length;h++)i.prototype[c[h]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var o=0,a=new r(u),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var t,e;i=!0;for(var n=c.length;n;){for(e=c,c=[],t=-1;++t<n;)e[t]();n=c.length}i=!1}e.exports=function(t){1!==c.push(t)||i||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&p(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return o.reject(t,i)}i===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,i)}))}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function i(e){n||(n=!0,o.reject(t,e))}function r(e){n||(n=!0,o.resolve(t,e))}var a=f((function(){e(r,i)}));"error"===a.status&&i(a.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=c).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var n=new this.constructor(r);return this.state!==l?h(n,this.state===s?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){o.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=f(d,e);if("error"===n.status)return o.reject(t,n.value);var i=n.value;if(i)p(t,i);else{t.state=s,t.outcome=e;for(var r=-1,a=t.queue.length;++r<a;)t.queue[r].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},c.resolve=function(t){return t instanceof this?t:o.resolve(new this(r),t)},c.reject=function(t){var e=new this(r);return o.reject(e,t)},c.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(r);++l<n;)u(t[l],l);return c;function u(t,r){e.resolve(t).then((function(t){a[r]=t,++s!==n||i||(i=!0,o.resolve(c,a))}),(function(t){i||(i=!0,o.reject(c,t))}))}},c.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var a,s=-1,l=new this(r);++s<n;)a=t[s],e.resolve(a).then((function(t){i||(i=!0,o.resolve(l,t))}),(function(t){i||(i=!0,o.reject(l,t))}));return l}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,h=0,d=8;function p(t){if(!(this instanceof p))return new p(t);this.options=r.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==c)throw new Error(a[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=i.deflateSetDictionary(this.strm,f))!==c)throw new Error(a[n]);this._dict_set=!0}}function f(t,e){var n=new p(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}p.prototype.push=function(t,e){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=i.deflate(s,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=p,n.deflate=f,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),c=t("./zlib/gzheader"),u=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(t,e){var n,s,l,c,h,d,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?p.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?p.input=new Uint8Array(t):p.input=t,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(f),p.next_out=0,p.avail_out=f),(n=i.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(d="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),c=p.next_out-l,h=o.buf2string(p.output,l),p.next_out=c,p.avail_out=f-c,c&&r.arraySet(p.output,p.output,l,c,0),this.onData(h)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(p.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,a;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(a=new Uint8Array(i),e=r=0,n=t.length;e<n;e++)o=t[e],a.set(o,r),r+=o.length;return a}},o={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var a=new i.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,n.string2buf=function(t){var e,n,r,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,o,s=e||t.length,c=new Array(2*s);for(n=i=0;n<s;)if((r=t[n++])<128)c[i++]=r;else if(4<(o=a[r]))c[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&n<s;)r=r<<6|63&t[n++],o--;1<o?c[i++]=65533:r<65536?c[i++]=r:(r-=65536,c[i++]=55296|r>>10&1023,c[i++]=56320|1023&r)}return l(c,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(r=r+e[i++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var o=i,a=r+n;t^=-1;for(var s=r;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var i,r=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),c=0,u=4,h=0,d=-2,p=-1,f=4,g=2,m=8,v=9,y=286,b=30,x=19,w=2*y+1,_=15,C=3,A=258,I=A+C+1,S=42,M=113,k=1,E=2,T=3,O=4;function P(t,e){return t.msg=l[e],e}function j(t){return(t<<1)-(4<t?9:0)}function L(t){for(var e=t.length;0<=--e;)t[e]=0}function D(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function R(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,D(t.strm)}function B(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function F(t,e){var n,i,r=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-I?t.strstart-(t.w_size-I):0,c=t.window,u=t.w_mask,h=t.prev,d=t.strstart+A,p=c[o+a-1],f=c[o+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===f&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<d);if(i=A-(d-o),o=d-A,a<i){if(t.match_start=e,s<=(a=i))break;p=c[o+a-1],f=c[o+a]}}}while((e=h[e&u])>l&&0!=--r);return a<=t.lookahead?a:t.lookahead}function z(t){var e,n,i,o,l,c,u,h,d,p,f=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-I)){for(r.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;i=t.head[--e],t.head[e]=f<=i?i-f:0,--n;);for(e=n=f;i=t.prev[--e],t.prev[e]=f<=i?i-f:0,--n;);o+=f}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,h=t.strstart+t.lookahead,d=o,p=void 0,p=c.avail_in,d<p&&(p=d),n=0===p?0:(c.avail_in-=p,r.arraySet(u,c.input,c.next_in,p,h),1===c.state.wrap?c.adler=a(c.adler,u,p,h):2===c.state.wrap&&(c.adler=s(c.adler,u,p,h)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=C)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+C-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<C)););}while(t.lookahead<I&&0!==t.strm.avail_in)}function V(t,e){for(var n,i;;){if(t.lookahead<I){if(z(t),t.lookahead<I&&e===c)return k;if(0===t.lookahead)break}if(n=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-I&&(t.match_length=F(t,n)),t.match_length>=C)if(i=o._tr_tally(t,t.strstart-t.match_start,t.match_length-C),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=C){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(R(t,!1),0===t.strm.avail_out))return k}return t.insert=t.strstart<C-1?t.strstart:C-1,e===u?(R(t,!0),0===t.strm.avail_out?T:O):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?k:E}function G(t,e){for(var n,i,r;;){if(t.lookahead<I){if(z(t),t.lookahead<I&&e===c)return k;if(0===t.lookahead)break}if(n=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=C-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-I&&(t.match_length=F(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===C&&4096<t.strstart-t.match_start)&&(t.match_length=C-1)),t.prev_length>=C&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-C,i=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-C),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=C-1,t.strstart++,i&&(R(t,!1),0===t.strm.avail_out))return k}else if(t.match_available){if((i=o._tr_tally(t,0,t.window[t.strstart-1]))&&R(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return k}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<C-1?t.strstart:C-1,e===u?(R(t,!0),0===t.strm.avail_out?T:O):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?k:E}function H(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*w),this.dyn_dtree=new r.Buf16(2*(2*b+1)),this.bl_tree=new r.Buf16(2*(2*x+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(_+1),this.heap=new r.Buf16(2*y+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*y+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function U(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=g,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?S:M,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),h):P(t,d)}function Z(t){var e=U(t);return e===h&&function(t){t.window_size=2*t.w_size,L(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=C-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,n,i,o,a){if(!t)return d;var s=1;if(e===p&&(e=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),o<1||v<o||n!==m||i<8||15<i||e<0||9<e||a<0||f<a)return P(t,d);8===i&&(i=9);var l=new W;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+C-1)/C),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=n,Z(t)}i=[new H(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(z(t),0===t.lookahead&&e===c)return k;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,R(t,!1),0===t.strm.avail_out))return k;if(t.strstart-t.block_start>=t.w_size-I&&(R(t,!1),0===t.strm.avail_out))return k}return t.insert=0,e===u?(R(t,!0),0===t.strm.avail_out?T:O):(t.strstart>t.block_start&&(R(t,!1),t.strm.avail_out),k)})),new H(4,4,8,4,V),new H(4,5,16,8,V),new H(4,6,32,32,V),new H(4,4,16,16,G),new H(8,16,32,32,G),new H(8,16,128,128,G),new H(8,32,128,256,G),new H(32,128,258,1024,G),new H(32,258,258,4096,G)],n.deflateInit=function(t,e){return Y(t,e,m,15,8,0)},n.deflateInit2=Y,n.deflateReset=Z,n.deflateResetKeep=U,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?d:(t.state.gzhead=e,h):d},n.deflate=function(t,e){var n,r,a,l;if(!t||!t.state||5<e||e<0)return t?P(t,d):d;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&e!==u)return P(t,0===t.avail_out?-5:d);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===S)if(2===r.wrap)t.adler=0,B(r,31),B(r,139),B(r,8),r.gzhead?(B(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),B(r,255&r.gzhead.time),B(r,r.gzhead.time>>8&255),B(r,r.gzhead.time>>16&255),B(r,r.gzhead.time>>24&255),B(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),B(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(B(r,255&r.gzhead.extra.length),B(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=s(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(B(r,0),B(r,0),B(r,0),B(r,0),B(r,0),B(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),B(r,3),r.status=M);else{var p=m+(r.w_bits-8<<4)<<8;p|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(p|=32),p+=31-p%31,r.status=M,N(r,p),0!==r.strstart&&(N(r,t.adler>>>16),N(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),D(t),a=r.pending,r.pending!==r.pending_buf_size));)B(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),D(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,B(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),D(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,B(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&D(t),r.pending+2<=r.pending_buf_size&&(B(r,255&t.adler),B(r,t.adler>>8&255),t.adler=0,r.status=M)):r.status=M),0!==r.pending){if(D(t),0===t.avail_out)return r.last_flush=-1,h}else if(0===t.avail_in&&j(e)<=j(n)&&e!==u)return P(t,-5);if(666===r.status&&0!==t.avail_in)return P(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==c&&666!==r.status){var f=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(z(t),0===t.lookahead)){if(e===c)return k;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(R(t,!1),0===t.strm.avail_out))return k}return t.insert=0,e===u?(R(t,!0),0===t.strm.avail_out?T:O):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?k:E}(r,e):3===r.strategy?function(t,e){for(var n,i,r,a,s=t.window;;){if(t.lookahead<=A){if(z(t),t.lookahead<=A&&e===c)return k;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=C&&0<t.strstart&&(i=s[r=t.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){a=t.strstart+A;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<a);t.match_length=A-(a-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=C?(n=o._tr_tally(t,1,t.match_length-C),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(R(t,!1),0===t.strm.avail_out))return k}return t.insert=0,e===u?(R(t,!0),0===t.strm.avail_out?T:O):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?k:E}(r,e):i[r.level].func(r,e);if(f!==T&&f!==O||(r.status=666),f===k||f===T)return 0===t.avail_out&&(r.last_flush=-1),h;if(f===E&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(L(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),D(t),0===t.avail_out))return r.last_flush=-1,h}return e!==u?h:r.wrap<=0?1:(2===r.wrap?(B(r,255&t.adler),B(r,t.adler>>8&255),B(r,t.adler>>16&255),B(r,t.adler>>24&255),B(r,255&t.total_in),B(r,t.total_in>>8&255),B(r,t.total_in>>16&255),B(r,t.total_in>>24&255)):(N(r,t.adler>>>16),N(r,65535&t.adler)),D(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?h:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==S&&69!==e&&73!==e&&91!==e&&103!==e&&e!==M&&666!==e?P(t,d):(t.state=null,e===M?P(t,-3):h):d},n.deflateSetDictionary=function(t,e){var n,i,o,s,l,c,u,p,f=e.length;if(!t||!t.state)return d;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==S||n.lookahead)return d;for(1===s&&(t.adler=a(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(L(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new r.Buf8(n.w_size),r.arraySet(p,e,f-n.w_size,n.w_size,0),e=p,f=n.w_size),l=t.avail_in,c=t.next_in,u=t.input,t.avail_in=f,t.next_in=0,t.input=e,z(n);n.lookahead>=C;){for(i=n.strstart,o=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+C-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=C-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,t.next_in=c,t.input=u,t.avail_in=l,n.wrap=s,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,r,o,a,s,l,c,u,h,d,p,f,g,m,v,y,b,x,w,_,C,A,I,S;n=t.state,i=t.next_in,I=t.input,r=i+(t.avail_in-5),o=t.next_out,S=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,h=n.wnext,d=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{f<15&&(p+=I[i++]<<f,f+=8,p+=I[i++]<<f,f+=8),b=g[p&v];e:for(;;){if(p>>>=x=b>>>24,f-=x,0===(x=b>>>16&255))S[o++]=65535&b;else{if(!(16&x)){if(0==(64&x)){b=g[(65535&b)+(p&(1<<x)-1)];continue e}if(32&x){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&b,(x&=15)&&(f<x&&(p+=I[i++]<<f,f+=8),w+=p&(1<<x)-1,p>>>=x,f-=x),f<15&&(p+=I[i++]<<f,f+=8,p+=I[i++]<<f,f+=8),b=m[p&y];n:for(;;){if(p>>>=x=b>>>24,f-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=m[(65535&b)+(p&(1<<x)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(_=65535&b,f<(x&=15)&&(p+=I[i++]<<f,(f+=8)<x&&(p+=I[i++]<<f,f+=8)),l<(_+=p&(1<<x)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=x,f-=x,(x=o-a)<_){if(u<(x=_-x)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(A=d,(C=0)===h){if(C+=c-x,x<w){for(w-=x;S[o++]=d[C++],--x;);C=o-_,A=S}}else if(h<x){if(C+=c+h-x,(x-=h)<w){for(w-=x;S[o++]=d[C++],--x;);if(C=0,h<w){for(w-=x=h;S[o++]=d[C++],--x;);C=o-_,A=S}}}else if(C+=h-x,x<w){for(w-=x;S[o++]=d[C++],--x;);C=o-_,A=S}for(;2<w;)S[o++]=A[C++],S[o++]=A[C++],S[o++]=A[C++],w-=3;w&&(S[o++]=A[C++],1<w&&(S[o++]=A[C++]))}else{for(C=o-_;S[o++]=S[C++],S[o++]=S[C++],S[o++]=S[C++],2<(w-=3););w&&(S[o++]=S[C++],1<w&&(S[o++]=S[C++]))}break}}break}}while(i<r&&o<s);i-=w=f>>3,p&=(1<<(f-=w<<3))-1,t.next_in=i,t.next_out=o,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=f}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),r=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees"),l=1,c=2,u=0,h=-2,d=1,p=852,f=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=d,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(p),e.distcode=e.distdyn=new i.Buf32(f),e.sane=1,e.back=-1,u):h}function y(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):h}function b(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?h:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,y(t))):h}function x(t,e){var n,i;return t?(i=new m,(t.state=i).window=null,(n=b(t,e))!==u&&(t.state=null),n):h}var w,_,C=!0;function A(t){if(C){var e;for(w=new i.Buf32(512),_=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(l,t.lens,0,288,w,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(c,t.lens,0,32,_,0,t.work,{bits:5}),C=!1}t.lencode=w,t.lenbits=9,t.distcode=_,t.distbits=5}function I(t,e,n,r){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),r>=a.wsize?(i.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(r<(o=a.wsize-a.wnext)&&(o=r),i.arraySet(a.window,e,n-r,o,a.wnext),(r-=o)?(i.arraySet(a.window,e,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=y,n.inflateReset2=b,n.inflateResetKeep=v,n.inflateInit=function(t){return x(t,15)},n.inflateInit2=x,n.inflate=function(t,e){var n,p,f,m,v,y,b,x,w,_,C,S,M,k,E,T,O,P,j,L,D,R,B,N,F=0,z=new i.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(n=t.state).mode&&(n.mode=13),v=t.next_out,f=t.output,b=t.avail_out,m=t.next_in,p=t.input,y=t.avail_in,x=n.hold,w=n.bits,_=y,C=b,R=u;t:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(2&n.wrap&&35615===x){z[n.check=0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0),w=x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&x)){t.msg="unknown compression method",n.mode=30;break}if(w-=4,D=8+(15&(x>>>=4)),0===n.wbits)n.wbits=D;else if(D>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<D,t.adler=n.check=1,n.mode=512&x?10:12,w=x=0;break;case 2:for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(n.flags=x,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),w=x=0,n.mode=3;case 3:for(;w<32;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.head&&(n.head.time=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,z[2]=x>>>16&255,z[3]=x>>>24&255,n.check=o(n.check,z,4,0)),w=x=0,n.mode=4;case 4:for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),w=x=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),w=x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(S=n.length)&&(S=y),S&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,p,m,S,D)),512&n.flags&&(n.check=o(n.check,p,S,m)),y-=S,m+=S,n.length-=S),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break t;for(S=0;D=p[m+S++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D)),D&&S<y;);if(512&n.flags&&(n.check=o(n.check,p,S,m)),y-=S,m+=S,D)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break t;for(S=0;D=p[m+S++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D)),D&&S<y;);if(512&n.flags&&(n.check=o(n.check,p,S,m)),y-=S,m+=S,D)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(x!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}w=x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}t.adler=n.check=g(x),w=x=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=v,t.avail_out=b,t.next_in=m,t.avail_in=y,n.hold=x,n.bits=w,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){x>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}switch(n.last=1&x,w-=1,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(A(n),n.mode=20,6!==e)break;x>>>=2,w-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}x>>>=2,w-=2;break;case 14:for(x>>>=7&w,w-=7&w;w<32;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if((65535&x)!=(x>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&x,w=x=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(S=n.length){if(y<S&&(S=y),b<S&&(S=b),0===S)break t;i.arraySet(f,p,m,S,v),y-=S,m+=S,b-=S,v+=S,n.length-=S;break}n.mode=12;break;case 17:for(;w<14;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(n.nlen=257+(31&x),x>>>=5,w-=5,n.ndist=1+(31&x),x>>>=5,w-=5,n.ncode=4+(15&x),x>>>=4,w-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.lens[V[n.have++]]=7&x,x>>>=3,w-=3}for(;n.have<19;)n.lens[V[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,B={bits:n.lenbits},R=s(0,n.lens,0,19,n.lencode,0,n.work,B),n.lenbits=B.bits,R){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(F=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&F,!((E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(O<16)x>>>=E,w-=E,n.lens[n.have++]=O;else{if(16===O){for(N=E+2;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(x>>>=E,w-=E,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}D=n.lens[n.have-1],S=3+(3&x),x>>>=2,w-=2}else if(17===O){for(N=E+3;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}w-=E,D=0,S=3+(7&(x>>>=E)),x>>>=3,w-=3}else{for(N=E+7;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}w-=E,D=0,S=11+(127&(x>>>=E)),x>>>=7,w-=7}if(n.have+S>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=D}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,B={bits:n.lenbits},R=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,B),n.lenbits=B.bits,R){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,B={bits:n.distbits},R=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,B),n.distbits=B.bits,R){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=y&&258<=b){t.next_out=v,t.avail_out=b,t.next_in=m,t.avail_in=y,n.hold=x,n.bits=w,a(t,C),v=t.next_out,f=t.output,b=t.avail_out,m=t.next_in,p=t.input,y=t.avail_in,x=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(F=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&F,!((E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(T&&0==(240&T)){for(P=E,j=T,L=O;T=(F=n.lencode[L+((x&(1<<P+j)-1)>>P)])>>>16&255,O=65535&F,!(P+(E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}x>>>=P,w-=P,n.back+=P}if(x>>>=E,w-=E,n.back+=E,n.length=O,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(N=n.extra;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(F=n.distcode[x&(1<<n.distbits)-1])>>>16&255,O=65535&F,!((E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(0==(240&T)){for(P=E,j=T,L=O;T=(F=n.distcode[L+((x&(1<<P+j)-1)>>P)])>>>16&255,O=65535&F,!(P+(E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}x>>>=P,w-=P,n.back+=P}if(x>>>=E,w-=E,n.back+=E,64&T){t.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(N=n.extra;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break t;if(S=C-b,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}M=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),k=n.window}else k=f,M=v-n.offset,S=n.length;for(b<S&&(S=b),b-=S,n.length-=S;f[v++]=k[M++],--S;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break t;f[v++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===y)break t;y--,x|=p[m++]<<w,w+=8}if(C-=b,t.total_out+=C,n.total+=C,C&&(t.adler=n.check=n.flags?o(n.check,f,C,v-C):r(n.check,f,C,v-C)),C=b,(n.flags?x:g(x))!==n.check){t.msg="incorrect data check",n.mode=30;break}w=x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(x!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}w=x=0}n.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;case 32:default:return h}return t.next_out=v,t.avail_out=b,t.next_in=m,t.avail_in=y,n.hold=x,n.bits=w,(n.wsize||C!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&I(t,t.output,t.next_out,C-t.avail_out)?(n.mode=31,-4):(_-=t.avail_in,C-=t.avail_out,t.total_in+=_,t.total_out+=C,n.total+=C,n.wrap&&C&&(t.adler=n.check=n.flags?o(n.check,f,C,t.next_out-C):r(n.check,f,C,t.next_out-C)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==_&&0===C||4===e)&&R===u&&(R=-5),R)},n.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,u},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?h:((n.head=e).done=!1,u):h},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?h:11===n.mode&&r(1,e,i,0)!==n.check?-3:I(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,u):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,c,u,h,d){var p,f,g,m,v,y,b,x,w,_=d.bits,C=0,A=0,I=0,S=0,M=0,k=0,E=0,T=0,O=0,P=0,j=null,L=0,D=new i.Buf16(16),R=new i.Buf16(16),B=null,N=0;for(C=0;C<=15;C++)D[C]=0;for(A=0;A<l;A++)D[e[n+A]]++;for(M=_,S=15;1<=S&&0===D[S];S--);if(S<M&&(M=S),0===S)return c[u++]=20971520,c[u++]=20971520,d.bits=1,0;for(I=1;I<S&&0===D[I];I++);for(M<I&&(M=I),C=T=1;C<=15;C++)if(T<<=1,(T-=D[C])<0)return-1;if(0<T&&(0===t||1!==S))return-1;for(R[1]=0,C=1;C<15;C++)R[C+1]=R[C]+D[C];for(A=0;A<l;A++)0!==e[n+A]&&(h[R[e[n+A]]++]=A);if(y=0===t?(j=B=h,19):1===t?(j=r,L-=257,B=o,N-=257,256):(j=a,B=s,-1),C=I,v=u,E=A=P=0,g=-1,m=(O=1<<(k=M))-1,1===t&&852<O||2===t&&592<O)return 1;for(;;){for(b=C-E,w=h[A]<y?(x=0,h[A]):h[A]>y?(x=B[N+h[A]],j[L+h[A]]):(x=96,0),p=1<<C-E,I=f=1<<k;c[v+(P>>E)+(f-=p)]=b<<24|x<<16|w|0,0!==f;);for(p=1<<C-1;P&p;)p>>=1;if(0!==p?(P&=p-1,P+=p):P=0,A++,0==--D[C]){if(C===S)break;C=e[n+h[A]]}if(M<C&&(P&m)!==g){for(0===E&&(E=M),v+=I,T=1<<(k=C-E);k+E<S&&!((T-=D[k+E])<=0);)k++,T<<=1;if(O+=1<<k,1===t&&852<O||2===t&&592<O)return 1;c[g=P&m]=M<<24|k<<16|v-u|0}}return 0!==P&&(c[v+P]=C-E<<24|64<<16|0),d.bits=M,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common"),r=0,o=1;function a(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,l=29,c=256,u=c+1+l,h=30,d=19,p=2*u+1,f=15,g=16,m=7,v=256,y=16,b=17,x=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],_=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=new Array(2*(u+2));a(I);var S=new Array(2*h);a(S);var M=new Array(512);a(M);var k=new Array(256);a(k);var E=new Array(l);a(E);var T,O,P,j=new Array(h);function L(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function D(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function R(t){return t<256?M[t]:M[256+(t>>>7)]}function B(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,n){t.bi_valid>g-n?(t.bi_buf|=e<<t.bi_valid&65535,B(t,t.bi_buf),t.bi_buf=e>>g-t.bi_valid,t.bi_valid+=n-g):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function F(t,e,n){N(t,n[2*e],n[2*e+1])}function z(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function V(t,e,n){var i,r,o=new Array(f+1),a=0;for(i=1;i<=f;i++)o[i]=a=a+n[i-1]<<1;for(r=0;r<=e;r++){var s=t[2*r+1];0!==s&&(t[2*r]=z(o[s]++,s))}}function G(t){var e;for(e=0;e<u;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<d;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*v]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){8<t.bi_valid?B(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function W(t,e,n,i){var r=2*e,o=2*n;return t[r]<t[o]||t[r]===t[o]&&i[e]<=i[n]}function U(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&W(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!W(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function Z(t,e,n){var i,r,o,a,s=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],r=t.pending_buf[t.l_buf+s],s++,0===i?F(t,r,e):(F(t,(o=k[r])+c+1,e),0!==(a=w[o])&&N(t,r-=E[o],a),F(t,o=R(--i),n),0!==(a=_[o])&&N(t,i-=j[o],a)),s<t.last_lit;);F(t,v,e)}function Y(t,e){var n,i,r,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=p,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[r]=0,t.opt_len--,s&&(t.static_len-=a[2*r+1]);for(e.max_code=c,n=t.heap_len>>1;1<=n;n--)U(t,o,n);for(r=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,o,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,o[2*r]=o[2*n]+o[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,o[2*n+1]=o[2*i+1]=r,t.heap[1]=r++,U(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,o,a,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,h=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,m=e.stat_desc.max_length,v=0;for(o=0;o<=f;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<p;n++)m<(o=l[2*l[2*(i=t.heap[n])+1]+1]+1)&&(o=m,v++),l[2*i+1]=o,c<i||(t.bl_count[o]++,a=0,g<=i&&(a=d[i-g]),s=l[2*i],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(u[2*i+1]+a)));if(0!==v){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,v-=2}while(0<v);for(o=m;0!==o;o--)for(i=t.bl_count[o];0!==i;)c<(r=t.heap[--n])||(l[2*r+1]!==o&&(t.opt_len+=(o-l[2*r+1])*l[2*r],l[2*r+1]=o),i--)}}(t,e),V(o,c,t.bl_count)}function X(t,e,n){var i,r,o=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=e[2*(i+1)+1],++s<l&&r===a||(s<c?t.bl_tree[2*r]+=s:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[2*y]++):s<=10?t.bl_tree[2*b]++:t.bl_tree[2*x]++,o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4))}function q(t,e,n){var i,r,o=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),i=0;i<=n;i++)if(r=a,a=e[2*(i+1)+1],!(++s<l&&r===a)){if(s<c)for(;F(t,r,t.bl_tree),0!=--s;);else 0!==r?(r!==o&&(F(t,r,t.bl_tree),s--),F(t,y,t.bl_tree),N(t,s-3,2)):s<=10?(F(t,b,t.bl_tree),N(t,s-3,3)):(F(t,x,t.bl_tree),N(t,s-11,7));o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4)}}a(j);var K=!1;function Q(t,e,n,r){N(t,(s<<1)+(r?1:0),3),function(t,e,n,r){H(t),r&&(B(t,n),B(t,~n)),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}n._tr_init=function(t){K||(function(){var t,e,n,i,r,o=new Array(f+1);for(i=n=0;i<l-1;i++)for(E[i]=n,t=0;t<1<<w[i];t++)k[n++]=i;for(k[n-1]=i,i=r=0;i<16;i++)for(j[i]=r,t=0;t<1<<_[i];t++)M[r++]=i;for(r>>=7;i<h;i++)for(j[i]=r<<7,t=0;t<1<<_[i]-7;t++)M[256+r++]=i;for(e=0;e<=f;e++)o[e]=0;for(t=0;t<=143;)I[2*t+1]=8,t++,o[8]++;for(;t<=255;)I[2*t+1]=9,t++,o[9]++;for(;t<=279;)I[2*t+1]=7,t++,o[7]++;for(;t<=287;)I[2*t+1]=8,t++,o[8]++;for(V(I,u+1,o),t=0;t<h;t++)S[2*t+1]=5,S[2*t]=z(t,5);T=new L(I,w,c+1,u,f),O=new L(S,_,0,h,f),P=new L(new Array(0),C,0,d,m)}(),K=!0),t.l_desc=new D(t.dyn_ltree,T),t.d_desc=new D(t.dyn_dtree,O),t.bl_desc=new D(t.bl_tree,P),t.bi_buf=0,t.bi_valid=0,G(t)},n._tr_stored_block=Q,n._tr_flush_block=function(t,e,n,i){var a,s,l=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return r;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return o;return r}(t)),Y(t,t.l_desc),Y(t,t.d_desc),l=function(t){var e;for(X(t,t.dyn_ltree,t.l_desc.max_code),X(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=d-1;3<=e&&0===t.bl_tree[2*A[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==e?Q(t,e,n,i):4===t.strategy||s===a?(N(t,2+(i?1:0),3),Z(t,I,S)):(N(t,4+(i?1:0),3),function(t,e,n,i){var r;for(N(t,e-257,5),N(t,n-1,5),N(t,i-4,4),r=0;r<i;r++)N(t,t.bl_tree[2*A[r]+1],3);q(t,t.dyn_ltree,e-1),q(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,l+1),Z(t,t.dyn_ltree,t.dyn_dtree)),G(t),i&&H(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(k[n]+c+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){N(t,2,3),F(t,v,I),function(t){16===t.bi_valid?(B(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,r){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var n,r,o,a,s=1,l={},c=!1,u=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,n="[object process]"==={}.toString.call(t.process)?function(t){i.nextTick((function(){p(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(a="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",f,!1):t.attachEvent("onmessage",f),function(e){t.postMessage(a+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},function(t){o.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(t){var e=u.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(p,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var r={callback:t,args:e};return l[s]=r,n(s),s++},h.clearImmediate=d}function d(t){delete l[t]}function p(t){if(c)setTimeout(p,0,t);else{var n=l[t];if(n){c=!0;try{!function(t){var n=t.callback,i=t.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(e,i)}}(n)}finally{d(t),c=!1}}}}function f(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this,n("b639").Buffer,n("c8ba"),n("4362"))},c67d:function(t,e,n){},c698:function(t,e,n){"use strict";e["a"]=function(t){return function(){return t}}},c705:function(t){t.exports=JSON.parse('[{"country_code":"AD","country_cn":"安道尔","country_en":"Andorra"},{"country_code":"AE","country_cn":"阿联酋","country_en":"United Arab Emirates"},{"country_code":"AF","country_cn":"阿富汗","country_en":"Afghanistan"},{"country_code":"AG","country_cn":"安提瓜和巴布达","country_en":"Antigua and Barbuda"},{"country_code":"AI","country_cn":"安圭拉","country_en":"Anguilla"},{"country_code":"AL","country_cn":"阿尔巴尼亚","country_en":"Albania"},{"country_code":"AM","country_cn":"亚美尼亚","country_en":"Armenia"},{"country_code":"AO","country_cn":"安哥拉","country_en":"Angola"},{"country_code":"AQ","country_cn":"南极洲","country_en":" Antarctica"},{"country_code":"AR","country_cn":"阿根廷","country_en":"Argentina"},{"country_code":"AS","country_cn":"美属萨摩亚","country_en":"American Samoa"},{"country_code":"AT","country_cn":"奥地利","country_en":"Austria"},{"country_code":"AU","country_cn":"澳大利亚","country_en":"Australia"},{"country_code":"AW","country_cn":"阿鲁巴","country_en":"Aruba"},{"country_code":"AX","country_cn":"奥兰群岛","country_en":"Aland Islands"},{"country_code":"AZ","country_cn":"阿塞拜疆","country_en":"Azerbaijan"},{"country_code":"BA","country_cn":"波斯尼亚和黑塞哥维那","country_en":"Bosnia and Herzegovina"},{"country_code":"BB","country_cn":"巴巴多斯","country_en":"Barbados"},{"country_code":"BD","country_cn":"孟加拉","country_en":"Bangladesh"},{"country_code":"BE","country_cn":"比利时","country_en":"Belgium"},{"country_code":"BF","country_cn":"布基纳法索","country_en":"Burkina Faso"},{"country_code":"BG","country_cn":"保加利亚","country_en":"Bulgaria"},{"country_code":"BH","country_cn":"巴林","country_en":"Bahrain"},{"country_code":"BI","country_cn":"布隆迪","country_en":"Burundi"},{"country_code":"BJ","country_cn":"贝宁","country_en":"Benin"},{"country_code":"BL","country_cn":"圣巴泰勒米","country_en":"Saint Barthelemy"},{"country_code":"BM","country_cn":"百慕大","country_en":"Bermuda"},{"country_code":"BN","country_cn":"文莱","country_en":"Brunei Darussalam"},{"country_code":"BO","country_cn":"玻利维亚","country_en":"Bolivia"},{"country_code":"BQ","country_cn":"荷兰加勒比","country_en":"Nederland Caribbean"},{"country_code":"BR","country_cn":"巴西","country_en":"Brazil"},{"country_code":"BS","country_cn":"巴哈马","country_en":"Bahamas"},{"country_code":"BT","country_cn":"不丹","country_en":"Bhutan"},{"country_code":"BV","country_cn":"布韦岛","country_en":" Bouvet Island"},{"country_code":"BW","country_cn":"博茨瓦纳","country_en":"Botswana"},{"country_code":"BY","country_cn":"白俄罗斯","country_en":"Belarus"},{"country_code":"BZ","country_cn":"伯利兹","country_en":"Belize"},{"country_code":"CA","country_cn":"加拿大","country_en":"Canada"},{"country_code":"CC","country_cn":"科科斯群岛","country_en":" Cocos (Keeling) Islands"},{"country_code":"CD","country_cn":"刚果民主共和国","country_en":"Democratic Republic of Congo"},{"country_code":"CF","country_cn":"中非","country_en":"Central African"},{"country_code":"CG","country_cn":"刚果共和国","country_en":"Republic of the Congo"},{"country_code":"CH","country_cn":"瑞士","country_en":"Switzerland"},{"country_code":"CI","country_cn":"科特迪瓦","country_en":"Ivory Coast"},{"country_code":"CK","country_cn":"库克群岛","country_en":"Cook Islands"},{"country_code":"CL","country_cn":"智利","country_en":"Chile"},{"country_code":"CM","country_cn":"喀麦隆","country_en":"Cameroon"},{"country_code":"CN","country_cn":"中国","country_en":"China"},{"country_code":"CO","country_cn":"哥伦比亚","country_en":"Colombia"},{"country_code":"CR","country_cn":"哥斯达黎加","country_en":"Costa Rica"},{"country_code":"CU","country_cn":"古巴","country_en":"Cuba"},{"country_code":"CV","country_cn":"佛得角","country_en":"Cabo Verde"},{"country_code":"CW","country_cn":"库拉索","country_en":"Curacao"},{"country_code":"CX","country_cn":"圣诞岛","country_en":"Christmas Island"},{"country_code":"CY","country_cn":"塞浦路斯","country_en":"Cyprus"},{"country_code":"CZ","country_cn":"捷克","country_en":"Czech"},{"country_code":"DE","country_cn":"德国","country_en":"Germany"},{"country_code":"DJ","country_cn":"吉布提","country_en":"Djibouti"},{"country_code":"DK","country_cn":"丹麦","country_en":"Denmark"},{"country_code":"DM","country_cn":"多米尼克","country_en":"Dominica"},{"country_code":"DO","country_cn":"多米尼加","country_en":"Dominican"},{"country_code":"DZ","country_cn":"阿尔及利亚","country_en":"Algeria"},{"country_code":"EC","country_cn":"厄瓜多尔","country_en":"Ecuador"},{"country_code":"EE","country_cn":"爱沙尼亚","country_en":"Estonia"},{"country_code":"EG","country_cn":"埃及","country_en":"Egypt"},{"country_code":"BV","country_cn":"布韦岛","country_en":" Bouvet Island"},{"country_code":"ER","country_cn":"厄立特里亚","country_en":"Eritrea"},{"country_code":"ES","country_cn":"西班牙","country_en":"Spain"},{"country_code":"ET","country_cn":"埃塞俄比亚","country_en":"Ethiopia"},{"country_code":"FI","country_cn":"芬兰","country_en":"Finland"},{"country_code":"FJ","country_cn":"斐济","country_en":"Fiji"},{"country_code":"FK","country_cn":"福克兰群岛","country_en":"Falkland Islands"},{"country_code":"FM","country_cn":"密克罗尼西亚联邦","country_en":"Micronesia"},{"country_code":"FO","country_cn":"法罗群岛","country_en":"Faroe Islands"},{"country_code":"FR","country_cn":"法国","country_en":"France"},{"country_code":"GA","country_cn":"加蓬","country_en":"Gabon"},{"country_code":"GB","country_cn":"英国","country_en":"United Kingdom"},{"country_code":"GD","country_cn":"格林纳达","country_en":"Grenada"},{"country_code":"GE","country_cn":"格鲁吉亚","country_en":"Georgia"},{"country_code":"GF","country_cn":"法属圭亚那","country_en":"French Guiana"},{"country_code":"GG","country_cn":"根西岛","country_en":"Guernsey"},{"country_code":"GH","country_cn":"加纳","country_en":"Ghana"},{"country_code":"GI","country_cn":"直布罗陀","country_en":"Gibraltar"},{"country_code":"GL","country_cn":"格陵兰","country_en":"Greenland"},{"country_code":"GM","country_cn":"冈比亚","country_en":"Gambia"},{"country_code":"GN","country_cn":"几内亚","country_en":"Guinea"},{"country_code":"GP","country_cn":"瓜德罗普","country_en":"Guadeloupe"},{"country_code":"GQ","country_cn":"赤道几内亚","country_en":"Equatorial Guinea"},{"country_code":"GR","country_cn":"希腊","country_en":"Greece"},{"country_code":"AQ","country_cn":"南极洲","country_en":" Antarctica"},{"country_code":"GT","country_cn":"危地马拉","country_en":"Guatemala"},{"country_code":"GU","country_cn":"关岛","country_en":"Guam"},{"country_code":"GW","country_cn":"几内亚比绍","country_en":"Guinea Bissau"},{"country_code":"GY","country_cn":"圭亚那","country_en":"Guyana"},{"country_code":"HK","country_cn":"中国","country_en":"China"},{"country_code":"CC","country_cn":"科科斯群岛","country_en":" Cocos (Keeling) Islands"},{"country_code":"HN","country_cn":"洪都拉斯","country_en":"Honduras"},{"country_code":"HR","country_cn":"克罗地亚","country_en":"Croatia"},{"country_code":"HT","country_cn":"海地","country_en":"Haiti"},{"country_code":"HU","country_cn":"匈牙利","country_en":"Hungary"},{"country_code":"ID","country_cn":"印度尼西亚","country_en":"Indonesia"},{"country_code":"IE","country_cn":"爱尔兰","country_en":"Ireland"},{"country_code":"IL","country_cn":"以色列","country_en":"Israel"},{"country_code":"IM","country_cn":"马恩岛","country_en":"Isle of Man"},{"country_code":"IN","country_cn":"印度","country_en":"India"},{"country_code":"IO","country_cn":"英属印度洋领地","country_en":"British Indian Ocean Territory"},{"country_code":"IQ","country_cn":"伊拉克","country_en":"Iraq"},{"country_code":"IR","country_cn":"伊朗","country_en":"Iran"},{"country_code":"IS","country_cn":"冰岛","country_en":"Iceland"},{"country_code":"IT","country_cn":"意大利","country_en":"Italy"},{"country_code":"JE","country_cn":"泽西岛","country_en":"Jersey"},{"country_code":"JM","country_cn":"牙买加","country_en":"Jamaica"},{"country_code":"JO","country_cn":"约旦","country_en":"Jordan"},{"country_code":"JP","country_cn":"日本","country_en":"Japan"},{"country_code":"KE","country_cn":"肯尼亚","country_en":"Kenya"},{"country_code":"KG","country_cn":"吉尔吉斯斯坦","country_en":"Kyrgyzstan"},{"country_code":"KH","country_cn":"柬埔寨","country_en":"Cambodia"},{"country_code":"KI","country_cn":"基里巴斯","country_en":"Kiribati"},{"country_code":"KM","country_cn":"科摩罗","country_en":"Comoros"},{"country_code":"KN","country_cn":"圣基茨和尼维斯","country_en":"Saint Kitts and Nevis"},{"country_code":"KP","country_cn":"朝鲜","country_en":"North Korea"},{"country_code":"KR","country_cn":"韩国","country_en":"South Korea"},{"country_code":"KW","country_cn":"科威特","country_en":"Kuwait"},{"country_code":"KY","country_cn":"开曼群岛","country_en":"Cayman Islands"},{"country_code":"KZ","country_cn":"哈萨克斯坦","country_en":"Kazakhstan"},{"country_code":"LA","country_cn":"老挝","country_en":"Lao"},{"country_code":"LB","country_cn":"黎巴嫩","country_en":"Lebanon"},{"country_code":"LC","country_cn":"圣卢西亚","country_en":"Saint Lucia"},{"country_code":"LI","country_cn":"列支敦士登","country_en":"Liechtenstein"},{"country_code":"LK","country_cn":"斯里兰卡","country_en":"Sri Lanka"},{"country_code":"LR","country_cn":"利比里亚","country_en":"Liberia"},{"country_code":"LS","country_cn":"莱索托","country_en":"Lesotho"},{"country_code":"LT","country_cn":"立陶宛","country_en":"Lithuania"},{"country_code":"LU","country_cn":"卢森堡","country_en":"Luxembourg"},{"country_code":"LV","country_cn":"拉脱维亚","country_en":"Latvia"},{"country_code":"LY","country_cn":"利比亚","country_en":"Libya"},{"country_code":"MA","country_cn":"摩洛哥","country_en":"Morocco"},{"country_code":"MC","country_cn":"摩纳哥","country_en":"Monaco"},{"country_code":"MD","country_cn":"摩尔多瓦","country_en":"Moldova"},{"country_code":"ME","country_cn":"黑山","country_en":"Montenegro"},{"country_code":"MF","country_cn":"法属圣马丁","country_en":"French Saint Martin"},{"country_code":"MG","country_cn":"马达加斯加","country_en":"Madagascar"},{"country_code":"MH","country_cn":"马绍尔群岛","country_en":"Marshall Islands"},{"country_code":"MK","country_cn":"北马其顿","country_en":"North Macedonia"},{"country_code":"ML","country_cn":"马里","country_en":"Mali"},{"country_code":"MM","country_cn":"缅甸","country_en":"Myanmar"},{"country_code":"MN","country_cn":"蒙古","country_en":"Mongolia"},{"country_code":"MO","country_cn":"中国","country_en":"China"},{"country_code":"MP","country_cn":"北马里亚纳群岛","country_en":"Northern Mariana Islands"},{"country_code":"MQ","country_cn":"马提尼克","country_en":"Martinique"},{"country_code":"MR","country_cn":"毛里塔尼亚","country_en":"Mauritania"},{"country_code":"MS","country_cn":"蒙特塞拉特岛","country_en":"Montserrat"},{"country_code":"MT","country_cn":"马耳他","country_en":"Malta"},{"country_code":"MU","country_cn":"毛里求斯","country_en":"Mauritius"},{"country_code":"MV","country_cn":"马尔代夫","country_en":"Maldives"},{"country_code":"MW","country_cn":"马拉维","country_en":"Malawi"},{"country_code":"MX","country_cn":"墨西哥","country_en":"Mexico"},{"country_code":"MY","country_cn":"马来西亚","country_en":"Malaysia"},{"country_code":"MZ","country_cn":"莫桑比克","country_en":"Mozambique"},{"country_code":"NA","country_cn":"纳米比亚","country_en":"Namibia"},{"country_code":"NC","country_cn":"新喀里多尼亚","country_en":"New Caledonia"},{"country_code":"NE","country_cn":"尼日尔","country_en":"Niger"},{"country_code":"NF","country_cn":"诺福克岛","country_en":"Norfolk Island"},{"country_code":"NG","country_cn":"尼日利亚","country_en":"Nigeria"},{"country_code":"NI","country_cn":"尼加拉瓜","country_en":"Nicaragua"},{"country_code":"AQ","country_cn":"南极洲","country_en":" Antarctica"},{"country_code":"NL","country_cn":"荷兰","country_en":"The Netherlands"},{"country_code":"NO","country_cn":"挪威","country_en":"Norway"},{"country_code":"NP","country_cn":"尼泊尔","country_en":"Nepal"},{"country_code":"NR","country_cn":"瑙鲁","country_en":"Nauru"},{"country_code":"NU","country_cn":"纽埃","country_en":"Niue"},{"country_code":"NZ","country_cn":"新西兰","country_en":"New Zealand"},{"country_code":"OM","country_cn":"阿曼","country_en":"Oman"},{"country_code":"PA","country_cn":"巴拿马","country_en":"Panama"},{"country_code":"PE","country_cn":"秘鲁","country_en":"Peru"},{"country_code":"PF","country_cn":"法属波利尼西亚","country_en":"French Polynesia"},{"country_code":"PG","country_cn":"巴布亚新几内亚","country_en":"Papua New Guinea"},{"country_code":"PH","country_cn":"菲律宾","country_en":"Philippines"},{"country_code":"PK","country_cn":"巴基斯坦","country_en":"Pakistan"},{"country_code":"PL","country_cn":"波兰","country_en":"Poland"},{"country_code":"PM","country_cn":"圣皮埃尔和密克隆群岛","country_en":"Saint Pierre and Miquelon"},{"country_code":"BV","country_cn":"布韦岛","country_en":" Bouvet Island"},{"country_code":"PR","country_cn":"波多黎各","country_en":"Puerto Rico"},{"country_code":"PS","country_cn":"巴勒斯坦","country_en":"Palestine"},{"country_code":"PT","country_cn":"葡萄牙","country_en":"Portugal"},{"country_code":"PW","country_cn":"帕劳","country_en":"Palau"},{"country_code":"PY","country_cn":"巴拉圭","country_en":"Paraguay"},{"country_code":"QA","country_cn":"卡塔尔","country_en":"Qatar"},{"country_code":"RE","country_cn":"留尼汪岛","country_en":"Reunion Island"},{"country_code":"RO","country_cn":"罗马尼亚","country_en":"Romania"},{"country_code":"RS","country_cn":"塞尔维亚","country_en":"Serbia"},{"country_code":"RU","country_cn":"俄罗斯","country_en":"Russian Federation"},{"country_code":"RW","country_cn":"卢旺达","country_en":"Rwanda"},{"country_code":"SA","country_cn":"沙特阿拉伯","country_en":"Saudi Arabia"},{"country_code":"SB","country_cn":"所罗门群岛","country_en":"Solomon Islands"},{"country_code":"SC","country_cn":"塞舌尔","country_en":"Seychelles"},{"country_code":"SD","country_cn":"苏丹","country_en":"Sudan"},{"country_code":"SE","country_cn":"瑞典","country_en":"Sweden"},{"country_code":"SG","country_cn":"新加坡","country_en":"Singapore"},{"country_code":"AQ","country_cn":"南极洲","country_en":" Antarctica"},{"country_code":"SI","country_cn":"斯洛文尼亚","country_en":"Slovenia"},{"country_code":"SJ","country_cn":"斯瓦巴和扬马延","country_en":"Svalbard and Jan Mayen"},{"country_code":"SK","country_cn":"斯洛伐克","country_en":"Slovakia"},{"country_code":"SL","country_cn":"塞拉利昂","country_en":"Sierra Leone"},{"country_code":"SM","country_cn":"圣马力诺","country_en":"San Marino"},{"country_code":"SN","country_cn":"塞内加尔","country_en":"Senegal"},{"country_code":"SO","country_cn":"索马里","country_en":"Somalia"},{"country_code":"SR","country_cn":"苏里南","country_en":"Suriname"},{"country_code":"SS","country_cn":"南苏丹","country_en":"South Sudan"},{"country_code":"ST","country_cn":"圣多美和普林西比","country_en":"Sao Tome and Principe"},{"country_code":"SV","country_cn":"萨尔瓦多","country_en":"El Salvador"},{"country_code":"SX","country_cn":"荷属圣马丁","country_en":"Dutch Saint Martin"},{"country_code":"SY","country_cn":"叙利亚","country_en":"Syrian"},{"country_code":"SZ","country_cn":"斯威士兰","country_en":"Swaziland"},{"country_code":"TC","country_cn":"特克斯和凯科斯群岛","country_en":"Turks and Caicos Islands"},{"country_code":"TD","country_cn":"乍得","country_en":"Chad"},{"country_code":"TF","country_cn":"法属南部领地","country_en":" French Southern Territories"},{"country_code":"TG","country_cn":"多哥","country_en":"Togo"},{"country_code":"TH","country_cn":"泰国","country_en":"Thailand"},{"country_code":"TJ","country_cn":"塔吉克斯坦","country_en":"Tajikistan"},{"country_code":"TK","country_cn":"托克劳","country_en":"Tokelau"},{"country_code":"TL","country_cn":"东帝汶","country_en":"Timor-leste"},{"country_code":"TM","country_cn":"土库曼斯坦","country_en":"Turkmenistan"},{"country_code":"TN","country_cn":"突尼斯","country_en":"Tunisia"},{"country_code":"TO","country_cn":"汤加","country_en":"Tonga"},{"country_code":"TR","country_cn":"土耳其","country_en":"Turkey"},{"country_code":"TT","country_cn":"特立尼达和多巴哥","country_en":"Trinidad and Tobago"},{"country_code":"TV","country_cn":"图瓦卢","country_en":"Tuvalu"},{"country_code":"TW","country_cn":"中国","country_en":"China"},{"country_code":"TZ","country_cn":"坦桑尼亚","country_en":"Tanzania"},{"country_code":"UA","country_cn":"乌克兰","country_en":"Ukraine"},{"country_code":"UG","country_cn":"乌干达","country_en":"Uganda"},{"country_code":"BV","country_cn":"布韦岛","country_en":" Bouvet Island"},{"country_code":"US","country_cn":"美国","country_en":"United States"},{"country_code":"UY","country_cn":"乌拉圭","country_en":"Uruguay"},{"country_code":"UZ","country_cn":"乌兹别克斯坦","country_en":"Uzbekistan"},{"country_code":"VA","country_cn":"梵蒂冈","country_en":"Vatican"},{"country_code":"VC","country_cn":"圣文森特和格林纳丁斯","country_en":"Saint Vincent and the Grenadines"},{"country_code":"VE","country_cn":"委内瑞拉","country_en":"Venezuela"},{"country_code":"VG","country_cn":"英属维尔京群岛","country_en":"British Virgin Islands"},{"country_code":"VI","country_cn":"美属维尔京群岛","country_en":"United States Virgin Islands"},{"country_code":"VN","country_cn":"越南","country_en":"Viet Nam"},{"country_code":"VU","country_cn":"瓦努阿图","country_en":"Vanuatu"},{"country_code":"WF","country_cn":"瓦利斯和富图纳群岛","country_en":"Wallis and Futuna"},{"country_code":"WS","country_cn":"萨摩亚","country_en":"Samoa"},{"country_code":"YE","country_cn":"也门","country_en":"Yemen"},{"country_code":"YT","country_cn":"马约特","country_en":"Mayotte"},{"country_code":"ZA","country_cn":"南非","country_en":"South Africa"},{"country_code":"ZM","country_cn":"赞比亚","country_en":"Zambia"},{"country_code":"ZW","country_cn":"津巴布韦","country_en":"Zimbabwe"}]')},c764:function(t,e,n){t.exports=n.p+"assets/img/statisticHost1.691447db.png"},c7ec:function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return s})),n.d(e,"j",(function(){return c})),n.d(e,"q",(function(){return h})),n.d(e,"e",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return f})),n.d(e,"i",(function(){return g})),n.d(e,"h",(function(){return m})),n.d(e,"l",(function(){return v})),n.d(e,"n",(function(){return b})),n.d(e,"m",(function(){return x})),n.d(e,"o",(function(){return w})),n.d(e,"k",(function(){return _})),n.d(e,"d",(function(){return C})),n.d(e,"f",(function(){return A})),n.d(e,"g",(function(){return I})),n.d(e,"c",(function(){return S}));var i=n("0cef"),r=n("8b32"),o=n("3ccf"),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=Object(r["g"])(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function c(t){return t<l&&t>-l}function u(t){return a(1e3*t)/1e3}function h(t){return a(1e4*t)/1e4}function d(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+h(t[4])+","+h(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return t&&!!t.svgElement}function b(t){return v(t)||y(t)}function x(t){return"linear"===t.type}function w(t){return"radial"===t.type}function _(t){return t&&("linear"===t.type||"radial"===t.type)}function C(t){return"url(#"+t+")"}function A(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function I(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i["a"],o=Object(i["P"])(t.scaleX,1),s=Object(i["P"])(t.scaleY,1),l=t.skewX||0,c=t.skewY||0,u=[];return(e||n)&&u.push("translate("+e+"px,"+n+"px)"),r&&u.push("rotate("+r+")"),1===o&&1===s||u.push("scale("+o+","+s+")"),(l||c)&&u.push("skew("+a(l*i["a"])+"deg, "+a(c*i["a"])+"deg)"),u.join(" ")}var S=function(){return o["a"].hasGlobalWindow&&Object(i["w"])(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!==typeof t?function(e){return t.from(e).toString("base64")}:function(t){return null}}()}).call(this,n("b639").Buffer)},c94d:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o}));var i=1e-6,r="undefined"!==typeof Float32Array?Float32Array:Array,o=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},ca3d:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANkAAADZCAYAAACtvpV2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ4IDc5LjE2NDAzNiwgMjAxOS8wOC8xMy0wMTowNjo1NyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NUEyQjFFNTFCRjM5MTFFQTgxNTk5MjMyMTQyOTk1NDQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NUEyQjFFNTJCRjM5MTFFQTgxNTk5MjMyMTQyOTk1NDQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1QTJCMUU0RkJGMzkxMUVBODE1OTkyMzIxNDI5OTU0NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1QTJCMUU1MEJGMzkxMUVBODE1OTkyMzIxNDI5OTU0NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PtnLotcAAAR7SURBVHja7NuxbhxVFIDhc3dmN7YxlqUgIQQVKIqgREFCQDoqKoTEI9BQ0VCnA/d5iLwDAiQKKKLUIQIhagooILYT785cztgOVQRrFDtX8H3WdeL1bHOP/r1jZ1N+/+jlSFdy7eV6N9dOcOFqrjL9OeYA+lkcfXorFq9cywfyO6U85vqa15f4Zf9u3Lr7cQzL/Pox13HhHuS6k+vGrPRff/LmlzHLL67mup3rA4E1ousjZt1al5YcYQ7TnrVjI9c7ub6YdxvvTw9MkX2Wa9fewJN9qcx1c2psdnqLCDx5L013ijO3iHCuLs/sAZwvkYHIQGSAyEBkIDJAZCAyEBkgMhAZIDIQGYgMEBmIDEQGiAxEBiKzBSAyEBkgMhAZiAwQGYgMRAaIDEQGiAxEBiIDRAYiA5EBIgORgcgAkYHIAJGByEBkgMhAZCAyQGQgMkBkIDIQGSAyEBmIDBAZiAxEBogMRAaIDEQGIgNEBiIDkQEiA5EBIgORgcgAkYHIQGSAyEBkIDJAZCAyQGQgMhAZIDIQGYgMEBmIDBAZiAxEBogMRAb/fX21B014NIdappe+cqbnlvyIYg+bjcxs2nE8i1rjaDVGV+qacU4f40mlhtnoSTbahJZOsmkc86NVLDOYbq0nlhjGVYwZp3v/tgzD8iSynT5H0/V2pJnahqiLzSir9Y6lkpc9M3s2xq1lHmSd/WvEWFex2e+czOjhj7eryBo6z8YxZn0X/fNXIja2//EZR/Ugfj38KYa8xSzFWdZOZEP0s0W8sP3a9VKTLYFzc70PjbWprP9bjBpm2OwY86M/yzBpd5C0y008iAxEBogMnh7vXWzU2X6VYYotT9J7F/+HSXLBJ9l3v+UnN43NGPNQ6uoQr+50sb3OG3Hq/Yj797KzMfxzTEPqKn8YuxSx9Xr0b3+7H3ORtTCV4xNpyMoudRvxzVureGO3/5s3159+5+D7iHvvRSyPcqjeu9jOOJcR8+cirv0c/TScpS1pJrKoYxzOt6JOQ4p+vactH+TKV8oy2MZm5DyGw5PbRbcYrf1sNYt5TKfS/AzznJ8EZpRt6RankfnNVEMn2dRZjdLnvfw4nWTdel16oWxa7+WvsZOsTv85+owvfN7k3fqNIyAyEBkgMhAZiAwQGYgMRAaIDEQGiAxEBiIDRAYiA5EBIgORgcgAkYHIAJGByEBkgMhAZCAyQGQgMkBkIDIQGSAyEBmIDBAZiAxEBogMRAaIDEQGIgNEBiIDkQEiA5EBIgORgcgAkYHIQGSAyEBkIDJAZCAyQGQgMhAZIDIQGYgMEBmIDBAZiAxEBogMRAYiA0QGIgORASIDkQEiA5GByACRgchAZIDIQGSAyEBkIDJAZCAyEBkgMmg8soe2Ac7N/hTZHfsA5+KPXPemyG7kGuxHO5ZjDqSue3WOri5tWouGg738fNjvzstX+ZcPc93M9aKdeZpKBhPRLyIW6/60XPLi/nI+bzx+Os2cYJ9Ht7N3PKJa/3rJ7HJdzbVpj+BfW+X6YTrBHj3wpwADAAamvsfXykuXAAAAAElFTkSuQmCC"},ca50:function(t,e,n){},ca91:function(t,e,n){"use strict";var i=n("ebb5"),r=n("d58f").left,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduce",(function(t){var e=arguments.length;return r(o(this),t,e,e>1?arguments[1]:void 0)}))},cb29:function(t,e,n){var i=n("23e7"),r=n("81d5"),o=n("44d2");i({target:"Array",proto:!0},{fill:r}),o("fill")},cb6f:function(t,e,n){"use strict";var i=n("56e7"),r=n.n(i);r.a},cd26:function(t,e,n){"use strict";var i=n("ebb5"),r=i.aTypedArray,o=i.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){var t,e=this,n=r(e).length,i=a(n/2),o=0;while(o<i)t=e[o],e[o++]=e[--n],e[n]=t;return e}))},cffa:function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
/*!
 * GSAP 3.12.5
 * https://gsap.com
 *
 * @license Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/n.r(e);var o,a,s,l,c,u,h,d,p,f,g,m={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},v={duration:.5,overwrite:!1,delay:0},y=1e8,b=1/y,x=2*Math.PI,w=x/4,_=0,C=Math.sqrt,A=Math.cos,I=Math.sin,S=function(t){return"string"===typeof t},M=function(t){return"function"===typeof t},k=function(t){return"number"===typeof t},E=function(t){return"undefined"===typeof t},T=function(t){return"object"===typeof t},O=function(t){return!1!==t},P=function(){return"undefined"!==typeof window},j=function(t){return M(t)||S(t)},L="function"===typeof ArrayBuffer&&ArrayBuffer.isView||function(){},D=Array.isArray,R=/(?:-?\.?\d|\.)+/gi,B=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,N=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,F=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,z=/[+-]=-?[.\d]+/,V=/[^,'"\[\]\s]+/gi,G=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,H={},W={},U=function(t){return(W=wt(t,H))&&zn},Z=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Y=function(t,e){return!e&&console.warn(t)},X=function(t,e){return t&&(H[t]=e)&&W&&(W[t]=e)||H},q=function(){return 0},K={suppressEvents:!0,isStart:!0,kill:!1},Q={suppressEvents:!0,kill:!1},J={suppressEvents:!0},$={},tt=[],et={},nt={},it={},rt=30,ot=[],at="",st=function(t){var e,n,i=t[0];if(T(i)||M(i)||(t=[t]),!(e=(i._gsap||{}).harness)){n=ot.length;while(n--&&!ot[n].targetTest(i));e=ot[n]}n=t.length;while(n--)t[n]&&(t[n]._gsap||(t[n]._gsap=new qe(t[n],e)))||t.splice(n,1);return t},lt=function(t){return t._gsap||st(re(t))[0]._gsap},ct=function(t,e,n){return(n=t[e])&&M(n)?t[e]():E(n)&&t.getAttribute&&t.getAttribute(e)||n},ut=function(t,e){return(t=t.split(",")).forEach(e)||t},ht=function(t){return Math.round(1e5*t)/1e5||0},dt=function(t){return Math.round(1e7*t)/1e7||0},pt=function(t,e){var n=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+i:"-"===n?t-i:"*"===n?t*i:t/i},ft=function(t,e){for(var n=e.length,i=0;t.indexOf(e[i])<0&&++i<n;);return i<n},gt=function(){var t,e,n=tt.length,i=tt.slice(0);for(et={},tt.length=0,t=0;t<n;t++)e=i[t],e&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},mt=function(t,e,n,i){tt.length&&!a&&gt(),t.render(e,n,i||a&&e<0&&(t._initted||t._startAt)),tt.length&&!a&&gt()},vt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(V).length<2?e:S(t)?t.trim():t},yt=function(t){return t},bt=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},xt=function(t){return function(e,n){for(var i in n)i in e||"duration"===i&&t||"ease"===i||(e[i]=n[i])}},wt=function(t,e){for(var n in e)t[n]=e[n];return t},_t=function t(e,n){for(var i in n)"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&(e[i]=T(n[i])?t(e[i]||(e[i]={}),n[i]):n[i]);return e},Ct=function(t,e){var n,i={};for(n in t)n in e||(i[n]=t[n]);return i},At=function(t){var e=t.parent||l,n=t.keyframes?xt(D(t.keyframes)):bt;if(O(t.inherit))while(e)n(t,e.vars.defaults),e=e.parent||e._dp;return t},It=function(t,e){var n=t.length,i=n===e.length;while(i&&n--&&t[n]===e[n]);return n<0},St=function(t,e,n,i,r){void 0===n&&(n="_first"),void 0===i&&(i="_last");var o,a=t[i];if(r){o=e[r];while(a&&a[r]>o)a=a._prev}return a?(e._next=a._next,a._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e},Mt=function(t,e,n,i){void 0===n&&(n="_first"),void 0===i&&(i="_last");var r=e._prev,o=e._next;r?r._next=o:t[n]===e&&(t[n]=o),o?o._prev=r:t[i]===e&&(t[i]=r),e._next=e._prev=e.parent=null},kt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Et=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0)){var n=t;while(n)n._dirty=1,n=n.parent}return t},Tt=function(t){var e=t.parent;while(e&&e.parent)e._dirty=1,e.totalDuration(),e=e.parent;return t},Ot=function(t,e,n,i){return t._startAt&&(a?t._startAt.revert(Q):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Pt=function t(e){return!e||e._ts&&t(e.parent)},jt=function(t){return t._repeat?Lt(t._tTime,t=t.duration()+t._rDelay)*t:0},Lt=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Dt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Rt=function(t){return t._end=dt(t._start+(t._tDur/Math.abs(t._ts||t._rts||b)||0))},Bt=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=dt(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Rt(t),n._dirty||Et(n,t)),t},Nt=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=Dt(t.rawTime(),e),(!e._dur||Jt(0,e.totalDuration(),n)-e._tTime>b)&&e.render(n,!0)),Et(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration()){n=t;while(n._dp)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp}t._zTime=-b}},Ft=function(t,e,n,i){return e.parent&&kt(e),e._start=dt((k(n)?n:n||t!==l?qt(t,n,e):t._time)+e._delay),e._end=dt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),St(t,e,"_first","_last",t._sort?"_start":0),Ht(e)||(t._recent=e),i||Nt(t,e),t._ts<0&&Bt(t,t._tTime),t},zt=function(t,e){return(H.ScrollTrigger||Z("scrollTrigger",e))&&H.ScrollTrigger.create(e,t)},Vt=function(t,e,n,i,r){return on(t,e,r),t._initted?!n&&t._pt&&!a&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&p!==Le.frame?(tt.push(t),t._lazy=[r,i],1):void 0:1},Gt=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Ht=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Wt=function(t,e,n,i){var r,o,s,l=t.ratio,c=e<0||!e&&(!t._start&&Gt(t)&&(t._initted||!Ht(t))||(t._ts<0||t._dp._ts<0)&&!Ht(t))?0:1,u=t._rDelay,h=0;if(u&&t._repeat&&(h=Jt(0,t._tDur,e),o=Lt(h,u),t._yoyo&&1&o&&(c=1-c),o!==Lt(t._tTime,u)&&(l=1-c,t.vars.repeatRefresh&&t._initted&&t.invalidate())),c!==l||a||i||t._zTime===b||!e&&t._zTime){if(!t._initted&&Vt(t,e,i,n,h))return;s=t._zTime,t._zTime=e||(n?b:0),n||(n=e&&!s),t.ratio=c,t._from&&(c=1-c),t._time=0,t._tTime=h,r=t._pt;while(r)r.r(c,r.d),r=r._next;e<0&&Ot(t,e,n,!0),t._onUpdate&&!n&&we(t,"onUpdate"),h&&t._repeat&&!n&&t.parent&&we(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===c&&(c&&kt(t,1),n||a||(we(t,c?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},Ut=function(t,e,n){var i;if(n>e){i=t._first;while(i&&i._start<=n){if("isPause"===i.data&&i._start>e)return i;i=i._next}}else{i=t._last;while(i&&i._start>=n){if("isPause"===i.data&&i._start<e)return i;i=i._prev}}},Zt=function(t,e,n,i){var r=t._repeat,o=dt(e)||0,a=t._tTime/t._tDur;return a&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=r?r<0?1e10:dt(o*(r+1)+t._rDelay*r):o,a>0&&!i&&Bt(t,t._tTime=t._tDur*a),t.parent&&Rt(t),n||Et(t.parent,t),t},Yt=function(t){return t instanceof Qe?Et(t):Zt(t,t._dur)},Xt={_start:0,endTime:q,totalDuration:q},qt=function t(e,n,i){var r,o,a,s=e.labels,l=e._recent||Xt,c=e.duration()>=y?l.endTime(!1):e._dur;return S(n)&&(isNaN(n)||n in s)?(o=n.charAt(0),a="%"===n.substr(-1),r=n.indexOf("="),"<"===o||">"===o?(r>=0&&(n=n.replace(/=/,"")),("<"===o?l._start:l.endTime(l._repeat>=0))+(parseFloat(n.substr(1))||0)*(a?(r<0?l:i).totalDuration()/100:1)):r<0?(n in s||(s[n]=c),s[n]):(o=parseFloat(n.charAt(r-1)+n.substr(r+1)),a&&i&&(o=o/100*(D(i)?i[0]:i).totalDuration()),r>1?t(e,n.substr(0,r-1),i)+o:c+o)):null==n?c:+n},Kt=function(t,e,n){var i,r,o=k(e[1]),a=(o?2:1)+(t<2?0:1),s=e[a];if(o&&(s.duration=e[1]),s.parent=n,t){i=s,r=n;while(r&&!("immediateRender"in i))i=r.vars.defaults||{},r=O(r.vars.inherit)&&r.parent;s.immediateRender=O(i.immediateRender),t<2?s.runBackwards=1:s.startAt=e[a-1]}return new dn(e[0],s,e[a+1])},Qt=function(t,e){return t||0===t?e(t):e},Jt=function(t,e,n){return n<t?t:n>e?e:n},$t=function(t,e){return S(t)&&(e=G.exec(t))?e[1]:""},te=function(t,e,n){return Qt(n,(function(n){return Jt(t,e,n)}))},ee=[].slice,ne=function(t,e){return t&&T(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&T(t[0]))&&!t.nodeType&&t!==c},ie=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var i;return S(t)&&!e||ne(t,1)?(i=n).push.apply(i,re(t)):n.push(t)}))||n},re=function(t,e,n){return s&&!e&&s.selector?s.selector(t):!S(t)||n||!u&&De()?D(t)?ie(t,n):ne(t)?ee.call(t,0):t?[t]:[]:ee.call((e||h).querySelectorAll(t),0)},oe=function(t){return t=re(t)[0]||Y("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return re(e,n.querySelectorAll?n:n===t?Y("Invalid scope")||h.createElement("div"):t)}},ae=function(t){return t.sort((function(){return.5-Math.random()}))},se=function(t){if(M(t))return t;var e=T(t)?t:{each:t},n=We(e.ease),i=e.from||0,r=parseFloat(e.base)||0,o={},a=i>0&&i<1,s=isNaN(i)||a,l=e.axis,c=i,u=i;return S(i)?c=u={center:.5,edges:.5,end:1}[i]||0:!a&&s&&(c=i[0],u=i[1]),function(t,a,h){var d,p,f,g,m,v,b,x,w,_=(h||e).length,A=o[_];if(!A){if(w="auto"===e.grid?0:(e.grid||[1,y])[1],!w){b=-y;while(b<(b=h[w++].getBoundingClientRect().left)&&w<_);w<_&&w--}for(A=o[_]=[],d=s?Math.min(w,_)*c-.5:i%w,p=w===y?0:s?_*u/w-.5:i/w|0,b=0,x=y,v=0;v<_;v++)f=v%w-d,g=p-(v/w|0),A[v]=m=l?Math.abs("y"===l?g:f):C(f*f+g*g),m>b&&(b=m),m<x&&(x=m);"random"===i&&ae(A),A.max=b-x,A.min=x,A.v=_=(parseFloat(e.amount)||parseFloat(e.each)*(w>_?_-1:l?"y"===l?_/w:w:Math.max(w,_/w))||0)*("edges"===i?-1:1),A.b=_<0?r-_:r,A.u=$t(e.amount||e.each)||0,n=n&&_<0?Ge(n):n}return _=(A[t]-A.min)/A.max||0,dt(A.b+(n?n(_):_)*A.v)+A.u}},le=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=dt(Math.round(parseFloat(n)/t)*t*e);return(i-i%1)/e+(k(n)?0:$t(n))}},ce=function(t,e){var n,i,r=D(t);return!r&&T(t)&&(n=r=t.radius||y,t.values?(t=re(t.values),(i=!k(t[0]))&&(n*=n)):t=le(t.increment)),Qt(e,r?M(t)?function(e){return i=t(e),Math.abs(i-e)<=n?i:e}:function(e){var r,o,a=parseFloat(i?e.x:e),s=parseFloat(i?e.y:0),l=y,c=0,u=t.length;while(u--)i?(r=t[u].x-a,o=t[u].y-s,r=r*r+o*o):r=Math.abs(t[u]-a),r<l&&(l=r,c=u);return c=!n||l<=n?t[c]:e,i||c===e||k(e)?c:c+$t(e)}:le(t))},ue=function(t,e,n,i){return Qt(D(t)?!e:!0===n?!!(n=0):!i,(function(){return D(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*i)/i}))},he=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},de=function(t,e){return function(n){return t(parseFloat(n))+(e||$t(n))}},pe=function(t,e,n){return ye(t,e,0,1,n)},fe=function(t,e,n){return Qt(n,(function(n){return t[~~e(n)]}))},ge=function t(e,n,i){var r=n-e;return D(e)?fe(e,t(0,e.length),n):Qt(i,(function(t){return(r+(t-e)%r)%r+e}))},me=function t(e,n,i){var r=n-e,o=2*r;return D(e)?fe(e,t(0,e.length-1),n):Qt(i,(function(t){return t=(o+(t-e)%o)%o||0,e+(t>r?o-t:t)}))},ve=function(t){var e,n,i,r,o=0,a="";while(~(e=t.indexOf("random(",o)))i=t.indexOf(")",e),r="["===t.charAt(e+7),n=t.substr(e+7,i-e-7).match(r?V:R),a+=t.substr(o,e-o)+ue(r?n:+n[0],r?0:+n[1],+n[2]||1e-5),o=i+1;return a+t.substr(o,t.length-o)},ye=function(t,e,n,i,r){var o=e-t,a=i-n;return Qt(r,(function(e){return n+((e-t)/o*a||0)}))},be=function t(e,n,i,r){var o=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!o){var a,s,l,c,u,h=S(e),d={};if(!0===i&&(r=1)&&(i=null),h)e={p:e},n={p:n};else if(D(e)&&!D(n)){for(l=[],c=e.length,u=c-2,s=1;s<c;s++)l.push(t(e[s-1],e[s]));c--,o=function(t){t*=c;var e=Math.min(u,~~t);return l[e](t-e)},i=n}else r||(e=wt(D(e)?[]:{},e));if(!l){for(a in n)en.call(d,e,a,"get",n[a]);o=function(t){return wn(t,d)||(h?e.p:e)}}}return Qt(i,o)},xe=function(t,e,n){var i,r,o,a=t.labels,s=y;for(i in a)r=a[i]-e,r<0===!!n&&r&&s>(r=Math.abs(r))&&(o=i,s=r);return o},we=function(t,e,n){var i,r,o,a=t.vars,l=a[e],c=s,u=t._ctx;if(l)return i=a[e+"Params"],r=a.callbackScope||t,n&&tt.length&&gt(),u&&(s=u),o=i?l.apply(r,i):l.call(r),s=c,o},_e=function(t){return kt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!a),t.progress()<1&&we(t,"onInterrupt"),t},Ce=[],Ae=function(t){if(t)if(t=!t.name&&t["default"]||t,P()||t.headless){var e=t.name,n=M(t),i=e&&!n&&t.init?function(){this._props=[]}:t,r={init:q,render:wn,add:en,kill:Cn,modifier:_n,rawVars:0},o={targetTest:0,get:0,getSetter:vn,aliases:{},register:0};if(De(),t!==i){if(nt[e])return;bt(i,bt(Ct(t,r),o)),wt(i.prototype,wt(r,Ct(t,o))),nt[i.prop=e]=i,t.targetTest&&(ot.push(i),$[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}X(e,i),t.register&&t.register(zn,i,Sn)}else Ce.push(t)},Ie=255,Se={aqua:[0,Ie,Ie],lime:[0,Ie,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ie],navy:[0,0,128],white:[Ie,Ie,Ie],olive:[128,128,0],yellow:[Ie,Ie,0],orange:[Ie,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ie,0,0],pink:[Ie,192,203],cyan:[0,Ie,Ie],transparent:[Ie,Ie,Ie,0]},Me=function(t,e,n){return t+=t<0?1:t>1?-1:0,(6*t<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)*Ie+.5|0},ke=function(t,e,n){var i,r,o,a,s,l,c,u,h,d,p=t?k(t)?[t>>16,t>>8&Ie,t&Ie]:0:Se.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Se[t])p=Se[t];else if("#"===t.charAt(0)){if(t.length<6&&(i=t.charAt(1),r=t.charAt(2),o=t.charAt(3),t="#"+i+i+r+r+o+o+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return p=parseInt(t.substr(1,6),16),[p>>16,p>>8&Ie,p&Ie,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),p=[t>>16,t>>8&Ie,t&Ie]}else if("hsl"===t.substr(0,3))if(p=d=t.match(R),e){if(~t.indexOf("="))return p=t.match(B),n&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,s=+p[1]/100,l=+p[2]/100,r=l<=.5?l*(s+1):l+s-l*s,i=2*l-r,p.length>3&&(p[3]*=1),p[0]=Me(a+1/3,i,r),p[1]=Me(a,i,r),p[2]=Me(a-1/3,i,r);else p=t.match(R)||Se.transparent;p=p.map(Number)}return e&&!d&&(i=p[0]/Ie,r=p[1]/Ie,o=p[2]/Ie,c=Math.max(i,r,o),u=Math.min(i,r,o),l=(c+u)/2,c===u?a=s=0:(h=c-u,s=l>.5?h/(2-c-u):h/(c+u),a=c===i?(r-o)/h+(r<o?6:0):c===r?(o-i)/h+2:(i-r)/h+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*s+.5),p[2]=~~(100*l+.5)),n&&p.length<4&&(p[3]=1),p},Ee=function(t){var e=[],n=[],i=-1;return t.split(Oe).forEach((function(t){var r=t.match(N)||[];e.push.apply(e,r),n.push(i+=r.length+1)})),e.c=n,e},Te=function(t,e,n){var i,r,o,a,s="",l=(t+s).match(Oe),c=e?"hsla(":"rgba(",u=0;if(!l)return t;if(l=l.map((function(t){return(t=ke(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(o=Ee(t),i=n.c,i.join(s)!==o.c.join(s)))for(r=t.replace(Oe,"1").split(N),a=r.length-1;u<a;u++)s+=r[u]+(~i.indexOf(u)?l.shift()||c+"0,0,0,0)":(o.length?o:l.length?l:n).shift());if(!r)for(r=t.split(Oe),a=r.length-1;u<a;u++)s+=r[u]+l[u];return s+r[a]},Oe=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Se)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Pe=/hsl[a]?\(/,je=function(t){var e,n=t.join(" ");if(Oe.lastIndex=0,Oe.test(n))return e=Pe.test(n),t[1]=Te(t[1],e),t[0]=Te(t[0],e,Ee(t[1])),!0},Le=function(){var t,e,n,i,r,o,a=Date.now,s=500,l=33,p=a(),f=p,m=1e3/240,v=m,y=[],b=function n(c){var u,h,d,g,b=a()-f,x=!0===c;if((b>s||b<0)&&(p+=b-l),f+=b,d=f-p,u=d-v,(u>0||x)&&(g=++i.frame,r=d-1e3*i.time,i.time=d/=1e3,v+=u+(u>=m?4:m-u),h=1),x||(t=e(n)),h)for(o=0;o<y.length;o++)y[o](d,r,g,c)};return i={time:0,frame:0,tick:function(){b(!0)},deltaRatio:function(t){return r/(1e3/(t||60))},wake:function(){d&&(!u&&P()&&(c=u=window,h=c.document||{},H.gsap=zn,(c.gsapVersions||(c.gsapVersions=[])).push(zn.version),U(W||c.GreenSockGlobals||!c.gsap&&c||{}),Ce.forEach(Ae)),n="undefined"!==typeof requestAnimationFrame&&requestAnimationFrame,t&&i.sleep(),e=n||function(t){return setTimeout(t,v-1e3*i.time+1|0)},g=1,b(2))},sleep:function(){(n?cancelAnimationFrame:clearTimeout)(t),g=0,e=q},lagSmoothing:function(t,e){s=t||1/0,l=Math.min(e||33,s)},fps:function(t){m=1e3/(t||240),v=1e3*i.time+m},add:function(t,e,n){var r=e?function(e,n,o,a){t(e,n,o,a),i.remove(r)}:t;return i.remove(t),y[n?"unshift":"push"](r),De(),r},remove:function(t,e){~(e=y.indexOf(t))&&y.splice(e,1)&&o>=e&&o--},_listeners:y},i}(),De=function(){return!g&&Le.wake()},Re={},Be=/^[\d.\-M][\d.\-,\s]/,Ne=/["']/g,Fe=function(t){for(var e,n,i,r={},o=t.substr(1,t.length-3).split(":"),a=o[0],s=1,l=o.length;s<l;s++)n=o[s],e=s!==l-1?n.lastIndexOf(","):n.length,i=n.substr(0,e),r[a]=isNaN(i)?i.replace(Ne,"").trim():+i,a=n.substr(e+1).trim();return r},ze=function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i<n?t.indexOf(")",n+1):n)},Ve=function(t){var e=(t+"").split("("),n=Re[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Fe(e[1])]:ze(t).split(",").map(vt)):Re._CE&&Be.test(t)?Re._CE("",t):n},Ge=function(t){return function(e){return 1-t(1-e)}},He=function t(e,n){var i,r=e._first;while(r)r instanceof Qe?t(r,n):!r.vars.yoyoEase||r._yoyo&&r._repeat||r._yoyo===n||(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},We=function(t,e){return t&&(M(t)?t:Re[t]||Ve(t))||e},Ue=function(t,e,n,i){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===i&&(i=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var r,o={easeIn:e,easeOut:n,easeInOut:i};return ut(t,(function(t){for(var e in Re[t]=H[t]=o,Re[r=t.toLowerCase()]=n,o)Re[r+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Re[t+"."+e]=o[e]})),o},Ze=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ye=function t(e,n,i){var r=n>=1?n:1,o=(i||(e?.3:.45))/(n<1?n:1),a=o/x*(Math.asin(1/r)||0),s=function(t){return 1===t?1:r*Math.pow(2,-10*t)*I((t-a)*o)+1},l="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Ze(s);return o=x/o,l.config=function(n,i){return t(e,n,i)},l},Xe=function t(e,n){void 0===n&&(n=1.70158);var i=function(t){return t?--t*t*((n+1)*t+n)+1:0},r="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:Ze(i);return r.config=function(n){return t(e,n)},r};ut("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Ue(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Re.Linear.easeNone=Re.none=Re.Linear.easeIn,Ue("Elastic",Ye("in"),Ye("out"),Ye()),function(t,e){var n=1/e,i=2*n,r=2.5*n,o=function(o){return o<n?t*o*o:o<i?t*Math.pow(o-1.5/e,2)+.75:o<r?t*(o-=2.25/e)*o+.9375:t*Math.pow(o-2.625/e,2)+.984375};Ue("Bounce",(function(t){return 1-o(1-t)}),o)}(7.5625,2.75),Ue("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Ue("Circ",(function(t){return-(C(1-t*t)-1)})),Ue("Sine",(function(t){return 1===t?1:1-A(t*w)})),Ue("Back",Xe("in"),Xe("out"),Xe()),Re.SteppedEase=Re.steps=H.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,i=t+(e?0:1),r=e?1:0,o=1-b;return function(t){return((i*Jt(0,o,t)|0)+r)*n}}},v.ease=Re["quad.out"],ut("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return at+=t+","+t+"Params,"}));var qe=function(t,e){this.id=_++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ct,this.set=e?e.getSetter:vn},Ke=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Zt(this,+t.duration,1,1),this.data=t.data,s&&(this._ctx=s,s.data.push(this)),g||Le.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Zt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(De(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){Bt(this,t),!n._dp||n.parent||Nt(n,this);while(n&&n.parent)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Ft(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===b||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),mt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+jt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+jt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Lt(this._tTime,n)+1:1},e.timeScale=function(t,e){if(!arguments.length)return this._rts===-b?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?Dt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-b?0:this._rts,this.totalTime(Jt(-Math.abs(this._delay),this._tDur,n),!1!==e),Rt(this),Tt(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(De(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==b&&(this._tTime-=b)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Ft(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(O(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Dt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=J);var e=a;return a=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),a=e,this},e.globalTime=function(t){var e=this,n=arguments.length?t:e.rawTime();while(e)n=e._start+n/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Yt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Yt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(qt(this,t),O(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,O(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-b:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-b,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-b))},e.eventCallback=function(t,e,n){var i=this.vars;return arguments.length>1?(e?(i[t]=e,n&&(i[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(t){var e=this;return new Promise((function(n){var i=M(t)?t:yt,r=function(){var t=e.then;e.then=null,M(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),n(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?r():e._prom=r}))},e.kill=function(){_e(this)},t}();bt(Ke.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-b,_prom:0,_ps:!1,_rts:1});var Qe=function(t){function e(e,n){var r;return void 0===e&&(e={}),r=t.call(this,e)||this,r.labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=O(e.sortChildren),l&&Ft(e.parent||l,i(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&zt(i(r),e.scrollTrigger),r}r(e,t);var n=e.prototype;return n.to=function(t,e,n){return Kt(0,arguments,this),this},n.from=function(t,e,n){return Kt(1,arguments,this),this},n.fromTo=function(t,e,n,i){return Kt(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,At(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new dn(t,e,qt(this,n),1),this},n.call=function(t,e,n){return Ft(this,dn.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,i,r,o,a){return n.duration=e,n.stagger=n.stagger||i,n.onComplete=o,n.onCompleteParams=a,n.parent=this,new dn(t,n,qt(this,r)),this},n.staggerFrom=function(t,e,n,i,r,o,a){return n.runBackwards=1,At(n).immediateRender=O(n.immediateRender),this.staggerTo(t,e,n,i,r,o,a)},n.staggerFromTo=function(t,e,n,i,r,o,a,s){return i.startAt=n,At(i).immediateRender=O(i.immediateRender),this.staggerTo(t,e,i,r,o,a,s)},n.render=function(t,e,n){var i,r,o,s,c,u,h,d,p,f,g,m,v=this._time,y=this._dirty?this.totalDuration():this._tDur,x=this._dur,w=t<=0?0:dt(t),_=this._zTime<0!==t<0&&(this._initted||!x);if(this!==l&&w>y&&t>=0&&(w=y),w!==this._tTime||n||_){if(v!==this._time&&x&&(w+=this._time-v,t+=this._time-v),i=w,p=this._start,d=this._ts,u=!d,_&&(x||(v=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(g=this._yoyo,c=x+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*c+t,e,n);if(i=dt(w%c),w===y?(s=this._repeat,i=x):(s=~~(w/c),s&&s===w/c&&(i=x,s--),i>x&&(i=x)),f=Lt(this._tTime,c),!v&&this._tTime&&f!==s&&this._tTime-f*c-this._dur<=0&&(f=s),g&&1&s&&(i=x-i,m=1),s!==f&&!this._lock){var C=g&&1&f,A=C===(g&&1&s);if(s<f&&(C=!C),v=C?0:w%x?x:w,this._lock=1,this.render(v||(m?0:dt(s*c)),e,!x)._lock=0,this._tTime=w,!e&&this.parent&&we(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),v&&v!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(x=this._dur,y=this._tDur,A&&(this._lock=2,v=C?x:-1e-4,this.render(v,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;He(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=Ut(this,dt(v),dt(i)),h&&(w-=i-(i=h._start))),this._tTime=w,this._time=i,this._act=!d,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,v=0),!v&&i&&!e&&!s&&(we(this,"onStart"),this._tTime!==w))return this;if(i>=v&&t>=0){r=this._first;while(r){if(o=r._next,(r._act||i>=r._start)&&r._ts&&h!==r){if(r.parent!==this)return this.render(t,e,n);if(r.render(r._ts>0?(i-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(i-r._start)*r._ts,e,n),i!==this._time||!this._ts&&!u){h=0,o&&(w+=this._zTime=-b);break}}r=o}}else{r=this._last;var I=t<0?t:i;while(r){if(o=r._prev,(r._act||I<=r._end)&&r._ts&&h!==r){if(r.parent!==this)return this.render(t,e,n);if(r.render(r._ts>0?(I-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(I-r._start)*r._ts,e,n||a&&(r._initted||r._startAt)),i!==this._time||!this._ts&&!u){h=0,o&&(w+=this._zTime=I?-b:b);break}}r=o}}if(h&&!e&&(this.pause(),h.render(i>=v?0:-b)._zTime=i>=v?1:-1,this._ts))return this._start=p,Rt(this),this.render(t,e,n);this._onUpdate&&!e&&we(this,"onUpdate",!0),(w===y&&this._tTime>=this.totalDuration()||!w&&v)&&(p!==this._start&&Math.abs(d)===Math.abs(this._ts)||this._lock||((t||!x)&&(w===y&&this._ts>0||!w&&this._ts<0)&&kt(this,1),e||t<0&&!v||!w&&!v&&y||(we(this,w===y&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(w<y&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(k(e)||(e=qt(this,e,t)),!(t instanceof Ke)){if(D(t))return t.forEach((function(t){return n.add(t,e)})),this;if(S(t))return this.addLabel(t,e);if(!M(t))return this;t=dn.delayedCall(0,t)}return this!==t?Ft(this,t,e):this},n.getChildren=function(t,e,n,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===i&&(i=-y);var r=[],o=this._first;while(o)o._start>=i&&(o instanceof dn?e&&r.push(o):(n&&r.push(o),t&&r.push.apply(r,o.getChildren(!0,e,n)))),o=o._next;return r},n.getById=function(t){var e=this.getChildren(1,1,1),n=e.length;while(n--)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return S(t)?this.removeLabel(t):M(t)?this.killTweensOf(t):(Mt(this,t),t===this._recent&&(this._recent=this._last),Et(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=dt(Le.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=qt(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var i=dn.delayedCall(0,e||q,n);return i.data="isPause",this._hasPause=1,Ft(this,i,qt(this,t))},n.removePause=function(t){var e=this._first;t=qt(this,t);while(e)e._start===t&&"isPause"===e.data&&kt(e),e=e._next},n.killTweensOf=function(t,e,n){var i=this.getTweensOf(t,n),r=i.length;while(r--)Je!==i[r]&&i[r].kill(t,e);return this},n.getTweensOf=function(t,e){var n,i=[],r=re(t),o=this._first,a=k(e);while(o)o instanceof dn?ft(o._targets,r)&&(a?(!Je||o._initted&&o._ts)&&o.globalTime(0)<=e&&o.globalTime(o.totalDuration())>e:!e||o.isActive())&&i.push(o):(n=o.getTweensOf(r,e)).length&&i.push.apply(i,n),o=o._next;return i},n.tweenTo=function(t,e){e=e||{};var n,i=this,r=qt(i,t),o=e,a=o.startAt,s=o.onStart,l=o.onStartParams,c=o.immediateRender,u=dn.to(i,bt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:e.duration||Math.abs((r-(a&&"time"in a?a.time:i._time))/i.timeScale())||b,onStart:function(){if(i.pause(),!n){var t=e.duration||Math.abs((r-(a&&"time"in a?a.time:i._time))/i.timeScale());u._dur!==t&&Zt(u,t,0,1).render(u._time,!0,!0),n=1}s&&s.apply(u,l||[])}},e));return c?u.render(0):u},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,bt({startAt:{time:qt(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),xe(this,qt(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),xe(this,qt(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+b)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);var i,r=this._first,o=this.labels;while(r)r._start>=n&&(r._start+=t,r._end+=t),r=r._next;if(e)for(i in o)o[i]>=n&&(o[i]+=t);return Et(this)},n.invalidate=function(e){var n=this._first;this._lock=0;while(n)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);var e,n=this._first;while(n)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Et(this)},n.totalDuration=function(t){var e,n,i,r=0,o=this,a=o._last,s=y;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-t:t));if(o._dirty){i=o.parent;while(a)e=a._prev,a._dirty&&a.totalDuration(),n=a._start,n>s&&o._sort&&a._ts&&!o._lock?(o._lock=1,Ft(o,a,n-a._delay,1)._lock=0):s=n,n<0&&a._ts&&(r-=n,(!i&&!o._dp||i&&i.smoothChildTiming)&&(o._start+=n/o._ts,o._time-=n,o._tTime-=n),o.shiftChildren(-n,!1,-Infinity),s=0),a._end>r&&a._ts&&(r=a._end),a=e;Zt(o,o===l&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(t){if(l._ts&&(mt(l,Dt(t,l)),p=Le.frame),Le.frame>=rt){rt+=m.autoSleep||120;var e=l._first;if((!e||!e._ts)&&m.autoSleep&&Le._listeners.length<2){while(e&&!e._ts)e=e._next;e||Le.sleep()}}},e}(Ke);bt(Qe.prototype,{_lock:0,_hasPause:0,_forcing:0});var Je,$e,tn=function(t,e,n,i,r,o,a){var s,l,c,u,h,d,p,f,g=new Sn(this._pt,t,e,0,1,xn,null,r),m=0,v=0;g.b=n,g.e=i,n+="",i+="",(p=~i.indexOf("random("))&&(i=ve(i)),o&&(f=[n,i],o(f,t,e),n=f[0],i=f[1]),l=n.match(F)||[];while(s=F.exec(i))u=s[0],h=i.substring(m,s.index),c?c=(c+1)%5:"rgba("===h.substr(-5)&&(c=1),u!==l[v++]&&(d=parseFloat(l[v-1])||0,g._pt={_next:g._pt,p:h||1===v?h:",",s:d,c:"="===u.charAt(1)?pt(d,u)-d:parseFloat(u)-d,m:c&&c<4?Math.round:0},m=F.lastIndex);return g.c=m<i.length?i.substring(m,i.length):"",g.fp=a,(z.test(i)||p)&&(g.e=0),this._pt=g,g},en=function(t,e,n,i,r,o,a,s,l,c){M(i)&&(i=i(r||0,t,o));var u,h=t[e],d="get"!==n?n:M(h)?l?t[e.indexOf("set")||!M(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():h,p=M(h)?l?gn:fn:pn;if(S(i)&&(~i.indexOf("random(")&&(i=ve(i)),"="===i.charAt(1)&&(u=pt(d,i)+($t(d)||0),(u||0===u)&&(i=u))),!c||d!==i||$e)return isNaN(d*i)||""===i?(!h&&!(e in t)&&Z(e,i),tn.call(this,t,e,d,i,p,s||m.stringFilter,l)):(u=new Sn(this._pt,t,e,+d||0,i-(d||0),"boolean"===typeof h?bn:yn,0,p),l&&(u.fp=l),a&&u.modifier(a,this,t),this._pt=u)},nn=function(t,e,n,i,r){if(M(t)&&(t=cn(t,r,e,n,i)),!T(t)||t.style&&t.nodeType||D(t)||L(t))return S(t)?cn(t,r,e,n,i):t;var o,a={};for(o in t)a[o]=cn(t[o],r,e,n,i);return a},rn=function(t,e,n,i,r,o){var a,s,l,c;if(nt[t]&&!1!==(a=new nt[t]).init(r,a.rawVars?e[t]:nn(e[t],i,r,o,n),n,i,o)&&(n._pt=s=new Sn(n._pt,r,t,0,1,a.render,a,0,a.priority),n!==f)){l=n._ptLookup[n._targets.indexOf(r)],c=a._props.length;while(c--)l[a._props[c]]=s}return a},on=function t(e,n,i){var r,s,c,u,h,d,p,f,g,m,x,w,_,C=e.vars,A=C.ease,I=C.startAt,S=C.immediateRender,M=C.lazy,k=C.onUpdate,E=C.runBackwards,T=C.yoyoEase,P=C.keyframes,j=C.autoRevert,L=e._dur,D=e._startAt,R=e._targets,B=e.parent,N=B&&"nested"===B.data?B.vars.targets:R,F="auto"===e._overwrite&&!o,z=e.timeline;if(z&&(!P||!A)&&(A="none"),e._ease=We(A,v.ease),e._yEase=T?Ge(We(!0===T?A:T,v.ease)):0,T&&e._yoyo&&!e._repeat&&(T=e._yEase,e._yEase=e._ease,e._ease=T),e._from=!z&&!!C.runBackwards,!z||P&&!C.stagger){if(f=R[0]?lt(R[0]).harness:0,w=f&&C[f.prop],r=Ct(C,$),D&&(D._zTime<0&&D.progress(1),n<0&&E&&S&&!j?D.render(-1,!0):D.revert(E&&L?Q:K),D._lazy=0),I){if(kt(e._startAt=dn.set(R,bt({data:"isStart",overwrite:!1,parent:B,immediateRender:!0,lazy:!D&&O(M),startAt:null,delay:0,onUpdate:k&&function(){return we(e,"onUpdate")},stagger:0},I))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(a||!S&&!j)&&e._startAt.revert(Q),S&&L&&n<=0&&i<=0)return void(n&&(e._zTime=n))}else if(E&&L&&!D)if(n&&(S=!1),c=bt({overwrite:!1,data:"isFromStart",lazy:S&&!D&&O(M),immediateRender:S,stagger:0,parent:B},r),w&&(c[f.prop]=w),kt(e._startAt=dn.set(R,c)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(a?e._startAt.revert(Q):e._startAt.render(-1,!0)),e._zTime=n,S){if(!n)return}else t(e._startAt,b,b);for(e._pt=e._ptCache=0,M=L&&O(M)||M&&!L,s=0;s<R.length;s++){if(h=R[s],p=h._gsap||st(R)[s]._gsap,e._ptLookup[s]=m={},et[p.id]&&tt.length&&gt(),x=N===R?s:N.indexOf(h),f&&!1!==(g=new f).init(h,w||r,e,x,N)&&(e._pt=u=new Sn(e._pt,h,g.name,0,1,g.render,g,0,g.priority),g._props.forEach((function(t){m[t]=u})),g.priority&&(d=1)),!f||w)for(c in r)nt[c]&&(g=rn(c,r,e,x,h,N))?g.priority&&(d=1):m[c]=u=en.call(e,h,c,"get",r[c],x,N,0,C.stringFilter);e._op&&e._op[s]&&e.kill(h,e._op[s]),F&&e._pt&&(Je=e,l.killTweensOf(h,m,e.globalTime(n)),_=!e.parent,Je=0),e._pt&&M&&(et[p.id]=1)}d&&In(e),e._onInit&&e._onInit(e)}e._onUpdate=k,e._initted=(!e._op||e._pt)&&!_,P&&n<=0&&z.render(y,!0,!0)},an=function(t,e,n,i,r,o,a,s){var l,c,u,h,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d){d=t._ptCache[e]=[],u=t._ptLookup,h=t._targets.length;while(h--){if(l=u[h][e],l&&l.d&&l.d._pt){l=l.d._pt;while(l&&l.p!==e&&l.fp!==e)l=l._next}if(!l)return $e=1,t.vars[e]="+=0",on(t,a),$e=0,s?Y(e+" not eligible for reset"):1;d.push(l)}}h=d.length;while(h--)c=d[h],l=c._pt||c,l.s=!i&&0!==i||r?l.s+(i||0)+o*l.c:i,l.c=n-l.s,c.e&&(c.e=ht(n)+$t(c.e)),c.b&&(c.b=l.s+$t(c.b))},sn=function(t,e){var n,i,r,o,a=t[0]?lt(t[0]).harness:0,s=a&&a.aliases;if(!s)return e;for(i in n=wt({},e),s)if(i in n){o=s[i].split(","),r=o.length;while(r--)n[o[r]]=n[i]}return n},ln=function(t,e,n,i){var r,o,a=e.ease||i||"power1.inOut";if(D(e))o=n[t]||(n[t]=[]),e.forEach((function(t,n){return o.push({t:n/(e.length-1)*100,v:t,e:a})}));else for(r in e)o=n[r]||(n[r]=[]),"ease"===r||o.push({t:parseFloat(t),v:e[r],e:a})},cn=function(t,e,n,i,r){return M(t)?t.call(e,n,i,r):S(t)&&~t.indexOf("random(")?ve(t):t},un=at+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",hn={};ut(un+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return hn[t]=1}));var dn=function(t){function e(e,n,r,a){var s;"number"===typeof n&&(r.duration=n,n=r,r=null),s=t.call(this,a?n:At(n))||this;var c,u,h,d,p,f,g,v,y=s.vars,x=y.duration,w=y.delay,_=y.immediateRender,C=y.stagger,A=y.overwrite,I=y.keyframes,S=y.defaults,M=y.scrollTrigger,E=y.yoyoEase,P=n.parent||l,R=(D(e)||L(e)?k(e[0]):"length"in n)?[e]:re(e);if(s._targets=R.length?st(R):Y("GSAP target "+e+" not found. https://gsap.com",!m.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=A,I||C||j(x)||j(w)){if(n=s.vars,c=s.timeline=new Qe({data:"nested",defaults:S||{},targets:P&&"nested"===P.data?P.vars.targets:R}),c.kill(),c.parent=c._dp=i(s),c._start=0,C||j(x)||j(w)){if(d=R.length,g=C&&se(C),T(C))for(p in C)~un.indexOf(p)&&(v||(v={}),v[p]=C[p]);for(u=0;u<d;u++)h=Ct(n,hn),h.stagger=0,E&&(h.yoyoEase=E),v&&wt(h,v),f=R[u],h.duration=+cn(x,i(s),u,f,R),h.delay=(+cn(w,i(s),u,f,R)||0)-s._delay,!C&&1===d&&h.delay&&(s._delay=w=h.delay,s._start+=w,h.delay=0),c.to(f,h,g?g(u,f,R):0),c._ease=Re.none;c.duration()?x=w=0:s.timeline=0}else if(I){At(bt(c.vars.defaults,{ease:"none"})),c._ease=We(I.ease||n.ease||"none");var B,N,F,z=0;if(D(I))I.forEach((function(t){return c.to(R,t,">")})),c.duration();else{for(p in h={},I)"ease"===p||"easeEach"===p||ln(p,I[p],h,I.easeEach);for(p in h)for(B=h[p].sort((function(t,e){return t.t-e.t})),z=0,u=0;u<B.length;u++)N=B[u],F={ease:N.e,duration:(N.t-(u?B[u-1].t:0))/100*x},F[p]=N.v,c.to(R,F,z),z+=F.duration;c.duration()<x&&c.to({},{duration:x-c.duration()})}}x||s.duration(x=c.duration())}else s.timeline=0;return!0!==A||o||(Je=i(s),l.killTweensOf(R),Je=0),Ft(P,i(s),r),n.reversed&&s.reverse(),n.paused&&s.paused(!0),(_||!x&&!I&&s._start===dt(P._time)&&O(_)&&Pt(i(s))&&"nested"!==P.data)&&(s._tTime=-b,s.render(Math.max(0,-w)||0)),M&&zt(i(s),M),s}r(e,t);var n=e.prototype;return n.render=function(t,e,n){var i,r,o,a,s,l,c,u,h,d=this._time,p=this._tDur,f=this._dur,g=t<0,m=t>p-b&&!g?p:t<b?0:t;if(f){if(m!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g){if(i=m,u=this.timeline,this._repeat){if(a=f+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*a+t,e,n);if(i=dt(m%a),m===p?(o=this._repeat,i=f):(o=~~(m/a),o&&o===dt(m/a)&&(i=f,o--),i>f&&(i=f)),l=this._yoyo&&1&o,l&&(h=this._yEase,i=f-i),s=Lt(this._tTime,a),i===d&&!n&&this._initted&&o===s)return this._tTime=m,this;o!==s&&(u&&this._yEase&&He(u,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==a&&this._initted&&(this._lock=n=1,this.render(dt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(Vt(this,g?t:i,n,e,m))return this._tTime=0,this;if(d!==this._time&&(!n||!this.vars.repeatRefresh||o===s))return this;if(f!==this._dur)return this.render(t,e,n)}if(this._tTime=m,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(h||this._ease)(i/f),this._from&&(this.ratio=c=1-c),i&&!d&&!e&&!o&&(we(this,"onStart"),this._tTime!==m))return this;r=this._pt;while(r)r.r(c,r.d),r=r._next;u&&u.render(t<0?t:u._dur*u._ease(i/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&Ot(this,t,e,n),we(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!e&&this.parent&&we(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(g&&!this._onUpdate&&Ot(this,t,!0,!0),(t||!f)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&kt(this,1),e||g&&!d||!(m||d||l)||(we(this,m===p?"onComplete":"onReverseComplete",!0),this._prom&&!(m<p&&this.timeScale()>0)&&this._prom()))}}else Wt(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,i,r){g||Le.wake(),this._ts||this.play();var o,a=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||on(this,a),o=this._ease(a/this._dur),an(this,t,e,n,i,o,a,r)?this.resetTo(t,e,n,i,1):(Bt(this,0),this.parent||St(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!t&&(!e||"all"===e))return this._lazy=this._pt=0,this.parent?_e(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Je&&!0!==Je.vars.overwrite)._first||_e(this),this.parent&&n!==this.timeline.totalDuration()&&Zt(this,this._dur*this.timeline._tDur/n,0,1),this}var i,r,o,a,s,l,c,u=this._targets,h=t?re(t):u,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&It(u,h))return"all"===e&&(this._pt=0),_e(this);i=this._op=this._op||[],"all"!==e&&(S(e)&&(s={},ut(e,(function(t){return s[t]=1})),e=s),e=sn(u,e)),c=u.length;while(c--)if(~h.indexOf(u[c]))for(s in r=d[c],"all"===e?(i[c]=e,a=r,o={}):(o=i[c]=i[c]||{},a=e),a)l=r&&r[s],l&&("kill"in l.d&&!0!==l.d.kill(s)||Mt(this,l,"_pt"),delete r[s]),"all"!==o&&(o[s]=1);return this._initted&&!this._pt&&p&&_e(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return Kt(1,arguments)},e.delayedCall=function(t,n,i,r){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:r})},e.fromTo=function(t,e,n){return Kt(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return l.killTweensOf(t,e,n)},e}(Ke);bt(dn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ut("staggerTo,staggerFrom,staggerFromTo",(function(t){dn[t]=function(){var e=new Qe,n=ee.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var pn=function(t,e,n){return t[e]=n},fn=function(t,e,n){return t[e](n)},gn=function(t,e,n,i){return t[e](i.fp,n)},mn=function(t,e,n){return t.setAttribute(e,n)},vn=function(t,e){return M(t[e])?fn:E(t[e])&&t.setAttribute?mn:pn},yn=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},bn=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},xn=function(t,e){var n=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{while(n)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+i,n=n._next;i+=e.c}e.set(e.t,e.p,i,e)},wn=function(t,e){var n=e._pt;while(n)n.r(t,n.d),n=n._next},_n=function(t,e,n,i){var r,o=this._pt;while(o)r=o._next,o.p===i&&o.modifier(t,e,n),o=r},Cn=function(t){var e,n,i=this._pt;while(i)n=i._next,i.p===t&&!i.op||i.op===t?Mt(this,i,"_pt"):i.dep||(e=1),i=n;return!e},An=function(t,e,n,i){i.mSet(t,e,i.m.call(i.tween,n,i.mt),i)},In=function(t){var e,n,i,r,o=t._pt;while(o){e=o._next,n=i;while(n&&n.pr>o.pr)n=n._next;(o._prev=n?n._prev:r)?o._prev._next=o:i=o,(o._next=n)?n._prev=o:r=o,o=e}t._pt=i},Sn=function(){function t(t,e,n,i,r,o,a,s,l){this.t=e,this.s=i,this.c=r,this.p=n,this.r=o||yn,this.d=a||this,this.set=s||pn,this.pr=l||0,this._next=t,t&&(t._prev=this)}var e=t.prototype;return e.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=An,this.m=t,this.mt=n,this.tween=e},t}();ut(at+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return $[t]=1})),H.TweenMax=H.TweenLite=dn,H.TimelineLite=H.TimelineMax=Qe,l=new Qe({sortChildren:!1,defaults:v,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),m.stringFilter=je;var Mn=[],kn={},En=[],Tn=0,On=0,Pn=function(t){return(kn[t]||En).map((function(t){return t()}))},jn=function(){var t=Date.now(),e=[];t-Tn>2&&(Pn("matchMediaInit"),Mn.forEach((function(t){var n,i,r,o,a=t.queries,s=t.conditions;for(i in a)n=c.matchMedia(a[i]).matches,n&&(r=1),n!==s[i]&&(s[i]=n,o=1);o&&(t.revert(),r&&e.push(t))})),Pn("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),Tn=t,Pn("matchMedia"))},Ln=function(){function t(t,e){this.selector=e&&oe(e),this.data=[],this._r=[],this.isReverted=!1,this.id=On++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){M(t)&&(n=e,e=t,t=M);var i=this,r=function(){var t,r=s,o=i.selector;return r&&r!==i&&r.data.push(i),n&&(i.selector=oe(n)),s=i,t=e.apply(i,arguments),M(t)&&i._r.push(t),s=r,i.selector=o,i.isReverted=!1,t};return i.last=r,t===M?r(i,(function(t){return i.add(null,t)})):t?i[t]=r:r},e.ignore=function(t){var e=s;s=null,t(this),s=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof dn&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t?function(){var e,i=n.getTweens(),r=n.data.length;while(r--)e=n.data[r],"isFlip"===e.data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return i.splice(i.indexOf(t),1)})));i.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),r=n.data.length;while(r--)e=n.data[r],e instanceof Qe?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof dn)&&e.revert&&e.revert(t);n._r.forEach((function(e){return e(t,n)})),n.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e){var i=Mn.length;while(i--)Mn[i].id===this.id&&Mn.splice(i,1)}},e.revert=function(t){this.kill(t||{})},t}(),Dn=function(){function t(t){this.contexts=[],this.scope=t,s&&s.data.push(this)}var e=t.prototype;return e.add=function(t,e,n){T(t)||(t={matches:t});var i,r,o,a=new Ln(0,n||this.scope),l=a.conditions={};for(r in s&&!a.selector&&(a.selector=s.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===r?o=1:(i=c.matchMedia(t[r]),i&&(Mn.indexOf(a)<0&&Mn.push(a),(l[r]=i.matches)&&(o=1),i.addListener?i.addListener(jn):i.addEventListener("change",jn)));return o&&e(a,(function(t){return a.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Rn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Ae(t)}))},timeline:function(t){return new Qe(t)},getTweensOf:function(t,e){return l.getTweensOf(t,e)},getProperty:function(t,e,n,i){S(t)&&(t=re(t)[0]);var r=lt(t||{}).get,o=n?yt:vt;return"native"===n&&(n=""),t?e?o((nt[e]&&nt[e].get||r)(t,e,n,i)):function(e,n,i){return o((nt[e]&&nt[e].get||r)(t,e,n,i))}:t},quickSetter:function(t,e,n){if(t=re(t),t.length>1){var i=t.map((function(t){return zn.quickSetter(t,e,n)})),r=i.length;return function(t){var e=r;while(e--)i[e](t)}}t=t[0]||{};var o=nt[e],a=lt(t),s=a.harness&&(a.harness.aliases||{})[e]||e,l=o?function(e){var i=new o;f._pt=0,i.init(t,n?e+n:e,f,0,[t]),i.render(1,i),f._pt&&wn(1,f)}:a.set(t,s);return o?l:function(e){return l(t,s,n?e+n:e,a,1)}},quickTo:function(t,e,n){var i,r=zn.to(t,wt((i={},i[e]="+=0.1",i.paused=!0,i),n||{})),o=function(t,n,i){return r.resetTo(e,t,n,i)};return o.tween=r,o},isTweening:function(t){return l.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=We(t.ease,v.ease)),_t(v,t||{})},config:function(t){return _t(m,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,i=t.plugins,r=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach((function(t){return t&&!nt[t]&&!H[t]&&Y(e+" effect requires "+t+" plugin.")})),it[e]=function(t,e,i){return n(re(t),bt(e||{},r),i)},o&&(Qe.prototype[e]=function(t,n,i){return this.add(it[e](t,T(n)?n:(i=n)&&{},this),i)})},registerEase:function(t,e){Re[t]=We(e)},parseEase:function(t,e){return arguments.length?We(t,e):Re},getById:function(t){return l.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,i,r=new Qe(t);r.smoothChildTiming=O(t.smoothChildTiming),l.remove(r),r._dp=0,r._time=r._tTime=l._time,n=l._first;while(n)i=n._next,!e&&!n._dur&&n instanceof dn&&n.vars.onComplete===n._targets[0]||Ft(r,n,n._start-n._delay),n=i;return Ft(l,r,0),r},context:function(t,e){return t?new Ln(t,e):s},matchMedia:function(t){return new Dn(t)},matchMediaRefresh:function(){return Mn.forEach((function(t){var e,n,i=t.conditions;for(n in i)i[n]&&(i[n]=!1,e=1);e&&t.revert()}))||jn()},addEventListener:function(t,e){var n=kn[t]||(kn[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=kn[t],i=n&&n.indexOf(e);i>=0&&n.splice(i,1)},utils:{wrap:ge,wrapYoyo:me,distribute:se,random:ue,snap:ce,normalize:pe,getUnit:$t,clamp:te,splitColor:ke,toArray:re,selector:oe,mapRange:ye,pipe:he,unitize:de,interpolate:be,shuffle:ae},install:U,effects:it,ticker:Le,updateRoot:Qe.updateRoot,plugins:nt,globalTimeline:l,core:{PropTween:Sn,globals:X,Tween:dn,Timeline:Qe,Animation:Ke,getCache:lt,_removeLinkedListItem:Mt,reverting:function(){return a},context:function(t){return t&&s&&(s.data.push(t),t._ctx=s),s},suppressOverwrites:function(t){return o=t}}};ut("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Rn[t]=dn[t]})),Le.add(Qe.updateRoot),f=Rn.to({},{duration:0});var Bn=function(t,e){var n=t._pt;while(n&&n.p!==e&&n.op!==e&&n.fp!==e)n=n._next;return n},Nn=function(t,e){var n,i,r,o=t._targets;for(n in e){i=o.length;while(i--)r=t._ptLookup[i][n],r&&(r=r.d)&&(r._pt&&(r=Bn(r,n)),r&&r.modifier&&r.modifier(e[n],t,o[i],n))}},Fn=function(t,e){return{name:t,rawVars:1,init:function(t,n,i){i._onInit=function(t){var i,r;if(S(n)&&(i={},ut(n,(function(t){return i[t]=1})),n=i),e){for(r in i={},n)i[r]=e(n[r]);n=i}Nn(t,n)}}}},zn=Rn.registerPlugin({name:"attr",init:function(t,e,n,i,r){var o,a,s;for(o in this.tween=n,e)s=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(s||0)+"",e[o],i,r,0,0,o),a.op=o,a.b=s,this._props.push(o)},render:function(t,e){var n=e._pt;while(n)a?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){var n=e.length;while(n--)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},Fn("roundProps",le),Fn("modifiers"),Fn("snap",ce))||Rn;dn.version=Qe.version=zn.version="3.12.5",d=1,P()&&De();var Vn,Gn,Hn,Wn,Un,Zn,Yn,Xn,qn=Re.Power0,Kn=Re.Power1,Qn=Re.Power2,Jn=Re.Power3,$n=Re.Power4,ti=Re.Linear,ei=Re.Quad,ni=Re.Cubic,ii=Re.Quart,ri=Re.Quint,oi=Re.Strong,ai=Re.Elastic,si=Re.Back,li=Re.SteppedEase,ci=Re.Bounce,ui=Re.Sine,hi=Re.Expo,di=Re.Circ,pi=function(){return"undefined"!==typeof window},fi={},gi=180/Math.PI,mi=Math.PI/180,vi=Math.atan2,yi=1e8,bi=/([A-Z])/g,xi=/(left|right|width|margin|padding|x)/i,wi=/[\s,\(]\S/,_i={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ci=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ai=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ii=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Si=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},Mi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ki=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Ei=function(t,e,n){return t.style[e]=n},Ti=function(t,e,n){return t.style.setProperty(e,n)},Oi=function(t,e,n){return t._gsap[e]=n},Pi=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},ji=function(t,e,n,i,r){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(r,o)},Li=function(t,e,n,i,r){var o=t._gsap;o[e]=n,o.renderTransform(r,o)},Di="transform",Ri=Di+"Origin",Bi=function t(e,n){var i=this,r=this.target,o=r.style,a=r._gsap;if(e in fi&&o){if(this.tfm=this.tfm||{},"transform"===e)return _i.transform.split(",").forEach((function(e){return t.call(i,e,n)}));if(e=_i[e]||e,~e.indexOf(",")?e.split(",").forEach((function(t){return i.tfm[t]=er(r,t)})):this.tfm[e]=a.x?a[e]:er(r,e),e===Ri&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(Di)>=0)return;a.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Ri,n,"")),e=Di}(o||n)&&this.props.push(e,n,o[e])},Ni=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Fi=function(){var t,e,n=this.props,i=this.target,r=i.style,o=i._gsap;for(t=0;t<n.length;t+=3)n[t+1]?i[n[t]]=n[t+2]:n[t+2]?r[n[t]]=n[t+2]:r.removeProperty("--"===n[t].substr(0,2)?n[t]:n[t].replace(bi,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)o[e]=this.tfm[e];o.svg&&(o.renderTransform(),i.setAttribute("data-svg-origin",this.svgo||"")),t=Yn(),t&&t.isStart||r[Di]||(Ni(r),o.zOrigin&&r[Ri]&&(r[Ri]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},zi=function(t,e){var n={target:t,props:[],revert:Fi,save:Bi};return t._gsap||zn.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},Vi=function(t,e){var n=Gn.createElementNS?Gn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Gn.createElement(t);return n&&n.style?n:Gn.createElement(t)},Gi=function t(e,n,i){var r=getComputedStyle(e);return r[n]||r.getPropertyValue(n.replace(bi,"-$1").toLowerCase())||r.getPropertyValue(n)||!i&&t(e,Wi(n)||n,1)||""},Hi="O,Moz,ms,Ms,Webkit".split(","),Wi=function(t,e,n){var i=e||Un,r=i.style,o=5;if(t in r&&!n)return t;t=t.charAt(0).toUpperCase()+t.substr(1);while(o--&&!(Hi[o]+t in r));return o<0?null:(3===o?"ms":o>=0?Hi[o]:"")+t},Ui=function(){pi()&&window.document&&(Vn=window,Gn=Vn.document,Hn=Gn.documentElement,Un=Vi("div")||{style:{}},Vi("div"),Di=Wi(Di),Ri=Di+"Origin",Un.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Xn=!!Wi("perspective"),Yn=zn.core.reverting,Wn=1)},Zi=function t(e){var n,i=Vi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,o=this.nextSibling,a=this.style.cssText;if(Hn.appendChild(i),i.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(s){}else this._gsapBBox&&(n=this._gsapBBox());return r&&(o?r.insertBefore(this,o):r.appendChild(this)),Hn.removeChild(i),this.style.cssText=a,n},Yi=function(t,e){var n=e.length;while(n--)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Xi=function(t){var e;try{e=t.getBBox()}catch(n){e=Zi.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Zi||(e=Zi.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Yi(t,["x","cx","x1"])||0,y:+Yi(t,["y","cy","y1"])||0,width:0,height:0}},qi=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Xi(t))},Ki=function(t,e){if(e){var n,i=t.style;e in fi&&e!==Ri&&(e=Di),i.removeProperty?(n=e.substr(0,2),"ms"!==n&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty("--"===n?e:e.replace(bi,"-$1").toLowerCase())):i.removeAttribute(e)}},Qi=function(t,e,n,i,r,o){var a=new Sn(t._pt,e,n,0,1,o?ki:Mi);return t._pt=a,a.b=i,a.e=r,t._props.push(n),a},Ji={deg:1,rad:1,turn:1},$i={grid:1,flex:1},tr=function t(e,n,i,r){var o,a,s,l,c=parseFloat(i)||0,u=(i+"").trim().substr((c+"").length)||"px",h=Un.style,d=xi.test(n),p="svg"===e.tagName.toLowerCase(),f=(p?"client":"offset")+(d?"Width":"Height"),g=100,m="px"===r,v="%"===r;if(r===u||!c||Ji[r]||Ji[u])return c;if("px"!==u&&!m&&(c=t(e,n,i,"px")),l=e.getCTM&&qi(e),(v||"%"===u)&&(fi[n]||~n.indexOf("adius")))return o=l?e.getBBox()[d?"width":"height"]:e[f],ht(v?c/o*g:c/100*o);if(h[d?"width":"height"]=g+(m?u:r),a=~n.indexOf("adius")||"em"===r&&e.appendChild&&!p?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Gn&&a.appendChild||(a=Gn.body),s=a._gsap,s&&v&&s.width&&d&&s.time===Le.time&&!s.uncache)return ht(c/s.width*g);if(!v||"height"!==n&&"width"!==n)(v||"%"===u)&&!$i[Gi(a,"display")]&&(h.position=Gi(e,"position")),a===e&&(h.position="static"),a.appendChild(Un),o=Un[f],a.removeChild(Un),h.position="absolute";else{var y=e.style[n];e.style[n]=g+r,o=e[f],y?e.style[n]=y:Ki(e,n)}return d&&v&&(s=lt(a),s.time=Le.time,s.width=a[f]),ht(m?o*c/g:o&&c?g/o*c:0)},er=function(t,e,n,i){var r;return Wn||Ui(),e in _i&&"transform"!==e&&(e=_i[e],~e.indexOf(",")&&(e=e.split(",")[0])),fi[e]&&"transform"!==e?(r=pr(t,i),r="transformOrigin"!==e?r[e]:r.svg?r.origin:fr(Gi(t,Ri))+" "+r.zOrigin+"px"):(r=t.style[e],(!r||"auto"===r||i||~(r+"").indexOf("calc("))&&(r=ar[e]&&ar[e](t,e,n)||Gi(t,e)||ct(t,e)||("opacity"===e?1:0))),n&&!~(r+"").trim().indexOf(" ")?tr(t,e,r,n)+n:r},nr=function(t,e,n,i){if(!n||"none"===n){var r=Wi(e,t,1),o=r&&Gi(t,r,1);o&&o!==n?(e=r,n=o):"borderColor"===e&&(n=Gi(t,"borderTopColor"))}var a,s,l,c,u,h,d,p,f,g,v,y,b=new Sn(this._pt,t.style,e,0,1,xn),x=0,w=0;if(b.b=n,b.e=i,n+="",i+="","auto"===i&&(h=t.style[e],t.style[e]=i,i=Gi(t,e)||i,h?t.style[e]=h:Ki(t,e)),a=[n,i],je(a),n=a[0],i=a[1],l=n.match(N)||[],y=i.match(N)||[],y.length){while(s=N.exec(i))d=s[0],f=i.substring(x,s.index),u?u=(u+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(u=1),d!==(h=l[w++]||"")&&(c=parseFloat(h)||0,v=h.substr((c+"").length),"="===d.charAt(1)&&(d=pt(c,d)+v),p=parseFloat(d),g=d.substr((p+"").length),x=N.lastIndex-g.length,g||(g=g||m.units[e]||v,x===i.length&&(i+=g,b.e+=g)),v!==g&&(c=tr(t,e,h,g)||0),b._pt={_next:b._pt,p:f||1===w?f:",",s:c,c:p-c,m:u&&u<4||"zIndex"===e?Math.round:0});b.c=x<i.length?i.substring(x,i.length):""}else b.r="display"===e&&"none"===i?ki:Mi;return z.test(i)&&(b.e=0),this._pt=b,b},ir={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},rr=function(t){var e=t.split(" "),n=e[0],i=e[1]||"50%";return"top"!==n&&"bottom"!==n&&"left"!==i&&"right"!==i||(t=n,n=i,i=t),e[0]=ir[n]||n,e[1]=ir[i]||i,e.join(" ")},or=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,i,r,o=e.t,a=o.style,s=e.u,l=o._gsap;if("all"===s||!0===s)a.cssText="",i=1;else{s=s.split(","),r=s.length;while(--r>-1)n=s[r],fi[n]&&(i=1,n="transformOrigin"===n?Ri:Di),Ki(o,n)}i&&(Ki(o,Di),l&&(l.svg&&o.removeAttribute("transform"),pr(o,1),l.uncache=1,Ni(a)))}},ar={clearProps:function(t,e,n,i,r){if("isFromStart"!==r.data){var o=t._pt=new Sn(t._pt,e,n,0,0,or);return o.u=i,o.pr=-10,o.tween=r,t._props.push(n),1}}},sr=[1,0,0,1,0,0],lr={},cr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ur=function(t){var e=Gi(t,Di);return cr(e)?sr:e.substr(7).match(B).map(ht)},hr=function(t,e){var n,i,r,o,a=t._gsap||lt(t),s=t.style,l=ur(t);return a.svg&&t.getAttribute("transform")?(r=t.transform.baseVal.consolidate().matrix,l=[r.a,r.b,r.c,r.d,r.e,r.f],"1,0,0,1,0,0"===l.join(",")?sr:l):(l!==sr||t.offsetParent||t===Hn||a.svg||(r=s.display,s.display="block",n=t.parentNode,n&&t.offsetParent||(o=1,i=t.nextElementSibling,Hn.appendChild(t)),l=ur(t),r?s.display=r:Ki(t,"display"),o&&(i?n.insertBefore(t,i):n?n.appendChild(t):Hn.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},dr=function(t,e,n,i,r,o){var a,s,l,c,u=t._gsap,h=r||hr(t,!0),d=u.xOrigin||0,p=u.yOrigin||0,f=u.xOffset||0,g=u.yOffset||0,m=h[0],v=h[1],y=h[2],b=h[3],x=h[4],w=h[5],_=e.split(" "),C=parseFloat(_[0])||0,A=parseFloat(_[1])||0;n?h!==sr&&(s=m*b-v*y)&&(l=C*(b/s)+A*(-y/s)+(y*w-b*x)/s,c=C*(-v/s)+A*(m/s)-(m*w-v*x)/s,C=l,A=c):(a=Xi(t),C=a.x+(~_[0].indexOf("%")?C/100*a.width:C),A=a.y+(~(_[1]||_[0]).indexOf("%")?A/100*a.height:A)),i||!1!==i&&u.smooth?(x=C-d,w=A-p,u.xOffset=f+(x*m+w*y)-x,u.yOffset=g+(x*v+w*b)-w):u.xOffset=u.yOffset=0,u.xOrigin=C,u.yOrigin=A,u.smooth=!!i,u.origin=e,u.originIsAbsolute=!!n,t.style[Ri]="0px 0px",o&&(Qi(o,u,"xOrigin",d,C),Qi(o,u,"yOrigin",p,A),Qi(o,u,"xOffset",f,u.xOffset),Qi(o,u,"yOffset",g,u.yOffset)),t.setAttribute("data-svg-origin",C+" "+A)},pr=function(t,e){var n=t._gsap||new qe(t);if("x"in n&&!e&&!n.uncache)return n;var i,r,o,a,s,l,c,u,h,d,p,f,g,v,y,b,x,w,_,C,A,I,S,M,k,E,T,O,P,j,L,D,R=t.style,B=n.scaleX<0,N="px",F="deg",z=getComputedStyle(t),V=Gi(t,Ri)||"0";return i=r=o=l=c=u=h=d=p=0,a=s=1,n.svg=!(!t.getCTM||!qi(t)),z.translate&&("none"===z.translate&&"none"===z.scale&&"none"===z.rotate||(R[Di]=("none"!==z.translate?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==z.rotate?"rotate("+z.rotate+") ":"")+("none"!==z.scale?"scale("+z.scale.split(" ").join(",")+") ":"")+("none"!==z[Di]?z[Di]:"")),R.scale=R.rotate=R.translate="none"),v=hr(t,n.svg),n.svg&&(n.uncache?(k=t.getBBox(),V=n.xOrigin-k.x+"px "+(n.yOrigin-k.y)+"px",M=""):M=!e&&t.getAttribute("data-svg-origin"),dr(t,M||V,!!M||n.originIsAbsolute,!1!==n.smooth,v)),f=n.xOrigin||0,g=n.yOrigin||0,v!==sr&&(w=v[0],_=v[1],C=v[2],A=v[3],i=I=v[4],r=S=v[5],6===v.length?(a=Math.sqrt(w*w+_*_),s=Math.sqrt(A*A+C*C),l=w||_?vi(_,w)*gi:0,h=C||A?vi(C,A)*gi+l:0,h&&(s*=Math.abs(Math.cos(h*mi))),n.svg&&(i-=f-(f*w+g*C),r-=g-(f*_+g*A))):(D=v[6],j=v[7],T=v[8],O=v[9],P=v[10],L=v[11],i=v[12],r=v[13],o=v[14],y=vi(D,P),c=y*gi,y&&(b=Math.cos(-y),x=Math.sin(-y),M=I*b+T*x,k=S*b+O*x,E=D*b+P*x,T=I*-x+T*b,O=S*-x+O*b,P=D*-x+P*b,L=j*-x+L*b,I=M,S=k,D=E),y=vi(-C,P),u=y*gi,y&&(b=Math.cos(-y),x=Math.sin(-y),M=w*b-T*x,k=_*b-O*x,E=C*b-P*x,L=A*x+L*b,w=M,_=k,C=E),y=vi(_,w),l=y*gi,y&&(b=Math.cos(y),x=Math.sin(y),M=w*b+_*x,k=I*b+S*x,_=_*b-w*x,S=S*b-I*x,w=M,I=k),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,u=180-u),a=ht(Math.sqrt(w*w+_*_+C*C)),s=ht(Math.sqrt(S*S+D*D)),y=vi(I,S),h=Math.abs(y)>2e-4?y*gi:0,p=L?1/(L<0?-L:L):0),n.svg&&(M=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!cr(Gi(t,Di)),M&&t.setAttribute("transform",M))),Math.abs(h)>90&&Math.abs(h)<270&&(B?(a*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=i-((n.xPercent=i&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+N,n.y=r-((n.yPercent=r&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+N,n.z=o+N,n.scaleX=ht(a),n.scaleY=ht(s),n.rotation=ht(l)+F,n.rotationX=ht(c)+F,n.rotationY=ht(u)+F,n.skewX=h+F,n.skewY=d+F,n.transformPerspective=p+N,(n.zOrigin=parseFloat(V.split(" ")[2])||!e&&n.zOrigin||0)&&(R[Ri]=fr(V)),n.xOffset=n.yOffset=0,n.force3D=m.force3D,n.renderTransform=n.svg?wr:Xn?xr:mr,n.uncache=0,n},fr=function(t){return(t=t.split(" "))[0]+" "+t[1]},gr=function(t,e,n){var i=$t(e);return ht(parseFloat(e)+parseFloat(tr(t,"x",n+"px",i)))+i},mr=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,xr(t,e)},vr="0deg",yr="0px",br=") ",xr=function(t,e){var n=e||this,i=n.xPercent,r=n.yPercent,o=n.x,a=n.y,s=n.z,l=n.rotation,c=n.rotationY,u=n.rotationX,h=n.skewX,d=n.skewY,p=n.scaleX,f=n.scaleY,g=n.transformPerspective,m=n.force3D,v=n.target,y=n.zOrigin,b="",x="auto"===m&&t&&1!==t||!0===m;if(y&&(u!==vr||c!==vr)){var w,_=parseFloat(c)*mi,C=Math.sin(_),A=Math.cos(_);_=parseFloat(u)*mi,w=Math.cos(_),o=gr(v,o,C*w*-y),a=gr(v,a,-Math.sin(_)*-y),s=gr(v,s,A*w*-y+y)}g!==yr&&(b+="perspective("+g+br),(i||r)&&(b+="translate("+i+"%, "+r+"%) "),(x||o!==yr||a!==yr||s!==yr)&&(b+=s!==yr||x?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+br),l!==vr&&(b+="rotate("+l+br),c!==vr&&(b+="rotateY("+c+br),u!==vr&&(b+="rotateX("+u+br),h===vr&&d===vr||(b+="skew("+h+", "+d+br),1===p&&1===f||(b+="scale("+p+", "+f+br),v.style[Di]=b||"translate(0, 0)"},wr=function(t,e){var n,i,r,o,a,s=e||this,l=s.xPercent,c=s.yPercent,u=s.x,h=s.y,d=s.rotation,p=s.skewX,f=s.skewY,g=s.scaleX,m=s.scaleY,v=s.target,y=s.xOrigin,b=s.yOrigin,x=s.xOffset,w=s.yOffset,_=s.forceCSS,C=parseFloat(u),A=parseFloat(h);d=parseFloat(d),p=parseFloat(p),f=parseFloat(f),f&&(f=parseFloat(f),p+=f,d+=f),d||p?(d*=mi,p*=mi,n=Math.cos(d)*g,i=Math.sin(d)*g,r=Math.sin(d-p)*-m,o=Math.cos(d-p)*m,p&&(f*=mi,a=Math.tan(p-f),a=Math.sqrt(1+a*a),r*=a,o*=a,f&&(a=Math.tan(f),a=Math.sqrt(1+a*a),n*=a,i*=a)),n=ht(n),i=ht(i),r=ht(r),o=ht(o)):(n=g,o=m,i=r=0),(C&&!~(u+"").indexOf("px")||A&&!~(h+"").indexOf("px"))&&(C=tr(v,"x",u,"px"),A=tr(v,"y",h,"px")),(y||b||x||w)&&(C=ht(C+y-(y*n+b*r)+x),A=ht(A+b-(y*i+b*o)+w)),(l||c)&&(a=v.getBBox(),C=ht(C+l/100*a.width),A=ht(A+c/100*a.height)),a="matrix("+n+","+i+","+r+","+o+","+C+","+A+")",v.setAttribute("transform",a),_&&(v.style[Di]=a)},_r=function(t,e,n,i,r){var o,a,s=360,l=S(r),c=parseFloat(r)*(l&&~r.indexOf("rad")?gi:1),u=c-i,h=i+u+"deg";return l&&(o=r.split("_")[1],"short"===o&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),"cw"===o&&u<0?u=(u+s*yi)%s-~~(u/s)*s:"ccw"===o&&u>0&&(u=(u-s*yi)%s-~~(u/s)*s)),t._pt=a=new Sn(t._pt,e,n,i,u,Ai),a.e=h,a.u="deg",t._props.push(n),a},Cr=function(t,e){for(var n in e)t[n]=e[n];return t},Ar=function(t,e,n){var i,r,o,a,s,l,c,u,h=Cr({},n._gsap),d="perspective,force3D,transformOrigin,svgOrigin",p=n.style;for(r in h.svg?(o=n.getAttribute("transform"),n.setAttribute("transform",""),p[Di]=e,i=pr(n,1),Ki(n,Di),n.setAttribute("transform",o)):(o=getComputedStyle(n)[Di],p[Di]=e,i=pr(n,1),p[Di]=o),fi)o=h[r],a=i[r],o!==a&&d.indexOf(r)<0&&(c=$t(o),u=$t(a),s=c!==u?tr(n,r,o,u):parseFloat(o),l=parseFloat(a),t._pt=new Sn(t._pt,i,r,s,l-s,Ci),t._pt.u=u||0,t._props.push(r));Cr(i,h)};
/*!
 * CSSPlugin 3.12.5
 * https://gsap.com
 *
 * Copyright 2008-2024, GreenSock. All rights reserved.
 * Subject to the terms at https://gsap.com/standard-license or for
 * Club GSAP members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/ut("padding,margin,Width,Radius",(function(t,e){var n="Top",i="Right",r="Bottom",o="Left",a=(e<3?[n,i,r,o]:[n+o,n+i,r+i,r+o]).map((function(n){return e<2?t+n:"border"+n+t}));ar[e>1?"border"+t:t]=function(t,e,n,i,r){var o,s;if(arguments.length<4)return o=a.map((function(e){return er(t,e,n)})),s=o.join(" "),5===s.split(o[0]).length?o[0]:s;o=(i+"").split(" "),s={},a.forEach((function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,s,r)}}));var Ir={name:"css",register:Ui,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,r){var o,a,s,l,c,u,h,d,p,f,g,v,y,b,x,w,_=this._props,C=t.style,A=n.vars.startAt;for(h in Wn||Ui(),this.styles=this.styles||zi(t),w=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(a=e[h],!nt[h]||!rn(h,e,n,i,t,r)))if(c=typeof a,u=ar[h],"function"===c&&(a=a.call(n,i,t,r),c=typeof a),"string"===c&&~a.indexOf("random(")&&(a=ve(a)),u)u(this,t,h,a,n)&&(x=1);else if("--"===h.substr(0,2))o=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",Oe.lastIndex=0,Oe.test(o)||(d=$t(o),p=$t(a)),p?d!==p&&(o=tr(t,h,o,p)+p):d&&(a+=d),this.add(C,"setProperty",o,a,i,r,0,0,h),_.push(h),w.push(h,0,C[h]);else if("undefined"!==c){if(A&&h in A?(o="function"===typeof A[h]?A[h].call(n,i,t,r):A[h],S(o)&&~o.indexOf("random(")&&(o=ve(o)),$t(o+"")||"auto"===o||(o+=m.units[h]||$t(er(t,h))||""),"="===(o+"").charAt(1)&&(o=er(t,h))):o=er(t,h),l=parseFloat(o),f="string"===c&&"="===a.charAt(1)&&a.substr(0,2),f&&(a=a.substr(2)),s=parseFloat(a),h in _i&&("autoAlpha"===h&&(1===l&&"hidden"===er(t,"visibility")&&s&&(l=0),w.push("visibility",0,C.visibility),Qi(this,C,"visibility",l?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&(h=_i[h],~h.indexOf(",")&&(h=h.split(",")[0]))),g=h in fi,g)if(this.styles.save(h),v||(y=t._gsap,y.renderTransform&&!e.parseTransform||pr(t,e.parseTransform),b=!1!==e.smoothOrigin&&y.smooth,v=this._pt=new Sn(this._pt,C,Di,0,1,y.renderTransform,y,0,-1),v.dep=1),"scale"===h)this._pt=new Sn(this._pt,y,"scaleY",y.scaleY,(f?pt(y.scaleY,f+s):s)-y.scaleY||0,Ci),this._pt.u=0,_.push("scaleY",h),h+="X";else{if("transformOrigin"===h){w.push(Ri,0,C[Ri]),a=rr(a),y.svg?dr(t,a,0,b,0,this):(p=parseFloat(a.split(" ")[2])||0,p!==y.zOrigin&&Qi(this,y,"zOrigin",y.zOrigin,p),Qi(this,C,h,fr(o),fr(a)));continue}if("svgOrigin"===h){dr(t,a,1,b,0,this);continue}if(h in lr){_r(this,y,h,l,f?pt(l,f+a):a);continue}if("smoothOrigin"===h){Qi(this,y,"smooth",y.smooth,a);continue}if("force3D"===h){y[h]=a;continue}if("transform"===h){Ar(this,a,t);continue}}else h in C||(h=Wi(h)||h);if(g||(s||0===s)&&(l||0===l)&&!wi.test(a)&&h in C)d=(o+"").substr((l+"").length),s||(s=0),p=$t(a)||(h in m.units?m.units[h]:d),d!==p&&(l=tr(t,h,o,p)),this._pt=new Sn(this._pt,g?y:C,h,l,(f?pt(l,f+s):s)-l,g||"px"!==p&&"zIndex"!==h||!1===e.autoRound?Ci:Si),this._pt.u=p||0,d!==p&&"%"!==p&&(this._pt.b=o,this._pt.r=Ii);else if(h in C)nr.call(this,t,h,o,f?f+a:a);else if(h in t)this.add(t,h,o||t[h],f?f+a:a,i,r);else if("parseTransform"!==h){Z(h,a);continue}g||(h in C?w.push(h,0,C[h]):w.push(h,1,o||t[h])),_.push(h)}x&&In(this)},render:function(t,e){if(e.tween._time||!Yn()){var n=e._pt;while(n)n.r(t,n.d),n=n._next}else e.styles.revert()},get:er,aliases:_i,getSetter:function(t,e,n){var i=_i[e];return i&&i.indexOf(",")<0&&(e=i),e in fi&&e!==Ri&&(t._gsap.x||er(t,"x"))?n&&Zn===n?"scale"===e?Pi:Oi:(Zn=n||{})&&("scale"===e?ji:Li):t.style&&!E(t.style[e])?Ei:~e.indexOf("-")?Ti:vn(t,e)},core:{_removeProperty:Ki,_getMatrix:hr}};zn.utils.checkPrefix=Wi,zn.core.getStyleSaver=zi,function(t,e,n,i){var r=ut(t+","+e+","+n,(function(t){fi[t]=1}));ut(e,(function(t){m.units[t]="deg",lr[t]=1})),_i[r[13]]=t+","+e,ut(i,(function(t){var e=t.split(":");_i[e[1]]=r[e[0]]}))}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),ut("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){m.units[t]="px"})),zn.registerPlugin(Ir),n.d(e,"gsap",(function(){return Sr})),n.d(e,"default",(function(){return Sr})),n.d(e,"TweenMax",(function(){return Mr})),n.d(e,"CSSPlugin",(function(){return Ir})),n.d(e,"TweenLite",(function(){return dn})),n.d(e,"TimelineMax",(function(){return Qe})),n.d(e,"TimelineLite",(function(){return Qe})),n.d(e,"Power0",(function(){return qn})),n.d(e,"Power1",(function(){return Kn})),n.d(e,"Power2",(function(){return Qn})),n.d(e,"Power3",(function(){return Jn})),n.d(e,"Power4",(function(){return $n})),n.d(e,"Linear",(function(){return ti})),n.d(e,"Quad",(function(){return ei})),n.d(e,"Cubic",(function(){return ni})),n.d(e,"Quart",(function(){return ii})),n.d(e,"Quint",(function(){return ri})),n.d(e,"Strong",(function(){return oi})),n.d(e,"Elastic",(function(){return ai})),n.d(e,"Back",(function(){return si})),n.d(e,"SteppedEase",(function(){return li})),n.d(e,"Bounce",(function(){return ci})),n.d(e,"Sine",(function(){return ui})),n.d(e,"Expo",(function(){return hi})),n.d(e,"Circ",(function(){return di}));var Sr=zn.registerPlugin(Ir)||zn,Mr=Sr.core.Tween},d05f:function(t,e,n){},d080:function(t,e,n){"use strict";function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}Object.defineProperty(e,"__esModule",{value:!0}),e.removeFromArray=i,e.isBrowser="undefined"!==typeof window&&"undefined"!==typeof window.document;var r=n("28f9");e.isNil=r.default;var o=n("2047");e.isFunction=o.default;var a=n("61d8");e.isString=a.default;var s=n("9ab4f");e.isObject=s.default;var l=n("01f9");e.isArray=l.default;var c=n("503e");e.mix=c.default;var u=n("72fb");e.each=u.default;var h=n("3c5c");function d(t,e){if(t.isCanvas())return!0;var n=e.getParent(),i=!1;while(n){if(n===t){i=!0;break}n=n.getParent()}return i}function p(t){return t.cfg.visible&&t.cfg.capture}e.upperFirst=h.default,e.isParent=d,e.isAllowCapture=p},d139:function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").find,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("find",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},d17a:function(t,e,n){"use strict";var i=n("ff17"),r=n("70a4");function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}var a={run:function(){var t=this,e=t.slides.eq(t.activeIndex),n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=Object(r["h"])((function(){var e;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),e=t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(e=t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(e=t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")),t.params.cssMode&&t.autoplay.running?t.autoplay.run():!1===e&&t.autoplay.run()}),n)},start:function(){var t=this;return"undefined"===typeof t.autoplay.timeout&&(!t.autoplay.running&&(t.autoplay.running=!0,t.emit("autoplayStart"),t.autoplay.run(),!0))},stop:function(){var t=this;return!!t.autoplay.running&&("undefined"!==typeof t.autoplay.timeout&&(t.autoplay.timeout&&(clearTimeout(t.autoplay.timeout),t.autoplay.timeout=void 0),t.autoplay.running=!1,t.emit("autoplayStop"),!0))},pause:function(t){var e=this;e.autoplay.running&&(e.autoplay.paused||(e.autoplay.timeout&&clearTimeout(e.autoplay.timeout),e.autoplay.paused=!0,0!==t&&e.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((function(t){e.$wrapperEl[0].addEventListener(t,e.autoplay.onTransitionEnd)})):(e.autoplay.paused=!1,e.autoplay.run())))},onVisibilityChange:function(){var t=this,e=Object(i["a"])();"hidden"===e.visibilityState&&t.autoplay.running&&t.autoplay.pause(),"visible"===e.visibilityState&&t.autoplay.paused&&(t.autoplay.run(),t.autoplay.paused=!1)},onTransitionEnd:function(t){var e=this;e&&!e.destroyed&&e.$wrapperEl&&t.target===e.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((function(t){e.$wrapperEl[0].removeEventListener(t,e.autoplay.onTransitionEnd)})),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())},onMouseEnter:function(){var t=this;t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause(),["transitionend","webkitTransitionEnd"].forEach((function(e){t.$wrapperEl[0].removeEventListener(e,t.autoplay.onTransitionEnd)}))},onMouseLeave:function(){var t=this;t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,t.autoplay.run())},attachMouseEvents:function(){var t=this;t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",t.autoplay.onMouseEnter),t.$el.on("mouseleave",t.autoplay.onMouseLeave))},detachMouseEvents:function(){var t=this;t.$el.off("mouseenter",t.autoplay.onMouseEnter),t.$el.off("mouseleave",t.autoplay.onMouseLeave)}};e["a"]={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}},create:function(){var t=this;Object(r["a"])(t,{autoplay:o({},a,{running:!1,paused:!1})})},on:{init:function(t){if(t.params.autoplay.enabled){t.autoplay.start();var e=Object(i["a"])();e.addEventListener("visibilitychange",t.autoplay.onVisibilityChange),t.autoplay.attachMouseEvents()}},beforeTransitionStart:function(t,e,n){t.autoplay.running&&(n||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(e):t.autoplay.stop())},sliderFirstMove:function(t){t.autoplay.running&&(t.params.autoplay.disableOnInteraction?t.autoplay.stop():t.autoplay.pause())},touchEnd:function(t){t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&t.autoplay.run()},destroy:function(t){t.autoplay.detachMouseEvents(),t.autoplay.running&&t.autoplay.stop();var e=Object(i["a"])();e.removeEventListener("visibilitychange",t.autoplay.onVisibilityChange)}}}},d2be:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isMobile?i("div",{staticClass:"index-mobile-wrapper"},[i("div",{staticClass:"nav-container"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"logo"},on:{click:t.onGoWelcome}}),i("span",{staticClass:"btn",on:{click:t.onEnterSystem}},[t._v(t._s(t.role?"退出":"登录"))])],1),i("div",{staticClass:"content-container"},[i("div",{staticClass:"title"},["en"===t.localLanguage?i("span",[t._v("Safe by View")]):i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"theme-quake"===t.themeClassName?"indexTitle1":"indexTitle"}})],1),i("ResultToolBar",{attrs:{isMobile:t.isMobile,searchList:t.searchList,toolBarComprehensiveConfig:t.toolBarComprehensiveConfig},on:{onSearch:t.onSearch}}),i("div",{staticClass:"hot-search"},[t.hotSearchConfig.loading?i("img",{staticClass:"loading-gif",attrs:{src:t.hotSearchConfig.loadingGif,alt:""}}):[i("div",{staticClass:"common-title"},[i("span",{staticClass:"name"},[t._v("热门搜索")]),i("span",{staticClass:"refresh",on:{click:t.getHotSearch}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"refresh"}}),i("span",[t._v("换一批")])],1)]),t._l(t.hotSearchConfig.hotSearchList,(function(e,n){return i("div",{key:n,staticClass:"hot-item",on:{click:function(n){return t.onHotSearch(e.query_string)}}},[i("span",{style:{color:t.hotSearchConfig.colors[n]}},[t._v(t._s(e.name))])])}))]],2),i("div",{staticClass:"view-line"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"broadcast"}}),i("span",{staticClass:"des"},[t._v("立即查看 "),i("span",{on:{click:t.onSearchGuide}},[t._v("检索引导"),i("svg-icon",{attrs:{"icon-class":"more"}})],1)])],1)],1),i("Footer"),t.isMobile&&t.isShowMobileTip?i("div",{staticClass:"mobile-tip"},[i("span",[t._v("我们最佳的搜索体验位于PC端上，请移步查看")]),i("svg-icon",{staticClass:"close",attrs:{"icon-class":"close"},on:{click:function(e){t.isShowMobileTip=!1}}})],1):t._e(),t.isShowMobileGuide?i("div",{staticClass:"mobile-guide-mobile"},[i("div",{staticClass:"guide-container"},[i("div",{staticClass:"title-line"},[i("span",[t._v("检索引导")]),i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"close"},on:{click:function(e){t.isShowMobileGuide=!1}}})],1),t._m(0),i("div",{staticClass:"guide-content"},t._l(t.guideConfig.mobileGuideList,(function(e,n){return i("div",{key:n,staticClass:"item-guide"},[i("span",{staticClass:"column"},[t._v(t._s(e.name))]),i("span",{staticClass:"column"},t._l(e.exampleList,(function(e,n){return i("el-tag",{key:n,staticClass:"tag",on:{click:function(n){return t.onHotSearch(e)}}},[t._v(t._s(e))])})),1)])})),0),i("div",{staticClass:"item-guide"},[i("span",{staticClass:"btn",on:{click:t.onQuikUse}},[t._v("开始使用")])])])]):t._e()],1):i("div",{staticClass:"index-wrapper"},[i("div",{staticClass:"index-container"},[i("div",{staticClass:"title"},["en"===t.localLanguage?i("span",{staticClass:"text"},[t._v("Safe by View")]):i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"theme-quake"===t.themeClassName?"indexTitle1":"indexTitle"}})],1),i("div",{staticClass:"input"},[i("ResultToolBar",{attrs:{searchList:t.searchList,toolBarComprehensiveConfig:t.toolBarComprehensiveConfig},on:{onSearch:t.onSearch},scopedSlots:t._u([{key:"favicon",fn:function(){return[t.role?i("IpListCollect",{attrs:{indices:t.indices,selectIndex:t.searchList.selectIndex,from:"index"}}):t._e(),i("SearchSyntax",{attrs:{selectIndex:t.searchList.selectIndex,from:"index"},on:{onTriggerSyntax:t.onTriggerSyntax}}),i("Favicon",{attrs:{from:"index"}})]},proxy:!0}])})],1),i("div",{staticClass:"reference-container"},[i("div",{staticClass:"left"},[t.hotSearchConfig.loading?i("img",{staticClass:"loading-gif",attrs:{src:t.hotSearchConfig.loadingGif,alt:""}}):[i("div",{staticClass:"common-title"},[i("span",{staticClass:"name"},[t._v(t._s(t.$t("home.top_search")))]),i("span",{staticClass:"refresh",on:{click:t.getHotSearch}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"refresh"}}),i("span",[t._v(t._s(t.$t("search.change_for_another")))])],1)]),t._l(t.hotSearchConfig.hotSearchList,(function(e,n){return i("div",{key:n,staticClass:"hot-item",on:{click:function(n){return t.onHotSearch(e.query_string)}}},[i("span",{style:{color:t.hotSearchConfig.colors[n]}},[t._v(t._s(n+1)+"、"+t._s(e.name))])])}))]],2),i("div",{staticClass:"right",attrs:{id:"searchAndGpt"}},[i("el-tabs",{on:{"tab-click":t.handleChangeSearchName},model:{value:t.activeSearchName,callback:function(e){t.activeSearchName=e},expression:"activeSearchName"}},[i("el-tab-pane",{attrs:{label:"检索引导",name:"检索引导"}},[i("div",{staticStyle:{padding:"10px"}},[i("div",{staticClass:"item-guide guide-header"},[i("span",{staticClass:"column"},[t._v(t._s(t.$t("home.grammar")))]),i("span",{staticClass:"column"},[t._v(t._s(t.$t("home.description")))]),i("span",{staticClass:"column"},[t._v(t._s(t.$t("home.example")))])]),i("div",{staticClass:"guide-content"},t._l(t.guideConfig.guideList,(function(e,n){return i("div",{key:n,staticClass:"item-guide"},[i("span",{staticClass:"column"},[t._v(t._s(e.name))]),i("span",{staticClass:"column"},[t._v(t._s(e.introduction[t.localLanguage]))]),i("span",{staticClass:"column"},t._l(e.exampleList,(function(e,n){return i("el-tag",{key:n,staticClass:"tag",on:{click:function(n){return t.onHotSearch(e)}}},[t._v(t._s(e))])})),1)])})),0)])]),t.hasGptPermission?i("el-tab-pane",{attrs:{name:"GPT"}},[i("span",{attrs:{slot:"label"},slot:"label"},[i("svg-icon",{attrs:{"icon-class":"gpt_fire"}}),t._v(" 360安全万事通")],1),i("div",{staticClass:"gpt-search-container",class:{"gpt-search-bg-blue":"theme-quake"===t.themeClassName&&!t.gptMessage.length,"gpt-search-bg-green":"theme-green"===t.themeClassName&&!t.gptMessage.length,"gpt-search-bg-dark-green":"theme-dark-green"===t.themeClassName&&!t.gptMessage.length}},[t.gptMessage.length?[i("div",{ref:"messageChat",staticClass:"message-chat"},[t._l(t.gptMessage,(function(e,r){return i("div",{key:r,staticClass:"message-item"},[e.self?i("div",{staticClass:"item-right"},[i("div",{staticClass:"bubble-flex"},[i("span",{staticClass:"bubble-flex-content content-right"},[t._v(t._s(e.content))])])]):i("div",{staticClass:"item-left"},[i("img",{staticClass:"avatar",attrs:{src:n("0013"),alt:""}}),i("div",{staticClass:"bubble-flex"},[i("span",{staticClass:"bubble-flex-content content-left"},[r===t.gptMessage.length-1?i("vue-typed-js",{attrs:{contentType:"null",strings:[e.content]},on:{preStringTyped:function(e){return t.watchTypedElement("#searchAndGpt")},onComplete:function(e){return t.handleCompleteType("#searchAndGpt")}}},[i("span",{staticClass:"typing"})]):i("span",[t._v(t._s(e.content))]),i("span",{staticClass:"tool-bar"},[i("svg-icon",{staticClass:"gpt-tool-icon",attrs:{"icon-class":"gpt_copy"},on:{click:function(n){return t.handleCopyGptResult(e.content)}}}),i("svg-icon",{staticClass:"gpt-tool-icon",attrs:{"icon-class":"gpt_search"},on:{click:function(n){return t.handleSearchByGptResult(e.content)}}})],1)],1)])])])})),i("div",{directives:[{name:"show",rawName:"v-show",value:t.gptLoading,expression:"gptLoading"}],staticClass:"message-item"},[i("div",{staticClass:"item-left"},[i("img",{staticClass:"avatar",attrs:{src:n("0013"),alt:""}}),i("div",{staticClass:"bubble-flex"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.gptLoading,expression:"gptLoading"}],staticClass:"loading-main",attrs:{"element-loading-spinner":"el-icon-loading"}})])])])],2)]:[i("span",{staticClass:"title"},[t._v("我们可以浪费时间，但不可以浪费生活，复杂的语法让它替你完成。")]),i("div",{staticClass:"try"},[t._v("试试输入：")]),i("div",{staticClass:"try-grammar"},t._l(t.adviceList,(function(e,n){return i("span",{key:n,staticClass:"try-grammar-item",on:{click:function(n){return t.handleAuToChat(e)}}},[i("span",[t._v(t._s(e))]),i("i",{staticClass:"el-icon-arrow-right",staticStyle:{"margin-left":"12px"}})])})),0)],i("div",{staticClass:"input-line"},[i("el-tooltip",{attrs:{effect:"dark",content:"删除历史会话",placement:"top"}},[i("svg-icon",{staticClass:"gpt-delete",attrs:{"icon-class":"gpt_delete"},on:{click:function(e){return t.handleRemoveAllMessages("index")}}})],1),i("div",{staticClass:"input-container"},[i("el-input",{staticClass:"gpt-input",class:{"dark-time":"theme-dark-green"===t.themeClassName},staticStyle:{flex:"1"},attrs:{placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSubmitGptQuery(e)}},model:{value:t.gptSearch,callback:function(e){t.gptSearch=e},expression:"gptSearch"}}),i("el-button",{staticClass:"gpt-submit",attrs:{type:"primary"},on:{click:t.handleSubmitGptQuery}},[t._v(" 提交")])],1)],1)],2)]):t._e()],1),i("span",{staticClass:"refresh",on:{click:t.onViewMore}},[i("span",{staticClass:"svg"},[t._v(t._s(t.$t("home.more_advanced_grammar")))]),i("svg-icon",{attrs:{"icon-class":"more"}})],1)],1)]),i("div",{staticClass:"statistic-container"},t._l(t.statisticList,(function(e,n){return i("div",{key:n,staticClass:"statistic-item"},[i("img",{attrs:{src:"theme-quake"===t.themeClassName?e.src_blue:e.src_green,alt:""}}),i("div",{staticClass:"des"},[i("div",{staticClass:"label"},[t._v(t._s(e.label))]),i("div",{staticClass:"number"},[i("AnimatedNumber",{attrs:{value:t.statisticsDataConfig.statisticsData[e.key]||0,formatValue:t.format,round:!0,duration:2e3}})],1)])])})),0),t._m(1)])])])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item-guide guide-header"},[n("span",{staticClass:"column"},[t._v("语法")]),n("span",{staticClass:"column"},[t._v("范例")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vscan-container"},[n("div",{staticClass:"vscan-logo"})])}],o=(n("a4d3"),n("99af"),n("4de4"),n("7db0"),n("4160"),n("caad"),n("0d03"),n("b0c0"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("e25e"),n("ac1f"),n("2532"),n("466d"),n("498a"),n("159b"),n("2909")),a=(n("96cf"),n("ade3")),s=n("2f62"),l=n("daa8"),c=n("e581"),u=n("670e"),h=n("d3e3"),d=n("95b7"),p=n("e982"),f=n("e955"),g=n("bc48"),m=n("9e17"),v=n("925c"),y=n("b37b"),b=n("9458"),x=n("6bcd");function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var C={components:{ResultToolBar:f["a"],IpListCollect:g["a"],SearchSyntax:m["a"],Favicon:v["a"],Footer:d["a"]},mixins:[y["a"],x["a"]],data:function(){return{messageIdx:0,gptLoading:!1,socket:null,gptSearch:"",activeSearchName:window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt?"GPT":"检索引导",svg:"",isShowMobileTip:!0,isShowMobileGuide:!1,indices:[],searchList:{selectIndex:"quake_service",searchVal:""},toolBarComprehensiveConfig:{isShowPermissionTip:!1,includesFiled:""},hotSearchConfig:{loading:!1,loadingGif:n("3ec1"),hotSearchList:[],pagination:{},params:{start:0,size:6},colors:["#6F83FF","#C292E7","#6DC5FF"]},statisticsDataConfig:{statisticsData:{}}}},computed:_({},Object(s["e"])("site",["role","themeClassName","localLanguage","isChatgpt"]),{},Object(s["e"])("gpt",["gptMessage"]),{hasGptPermission:function(){return window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt},isMobile:function(){return!!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},day:function(){var t=Date.parse(new Date),e=Date.parse("2017-01-01"),n=parseInt((t-e)/864e5,10);return String(n)},statisticList:function(){return[{key:"service_count",label:this.$t("home.total_service_count"),src_green:n("1b49a"),src_blue:n("1456")},{key:"vulnerability_count",label:this.$t("home.total_vul_count"),src_green:n("7025"),src_blue:n("98c9")},{key:"ip_count",label:this.$t("home.total_host_count"),src_green:n("31b4"),src_blue:n("c764")}]},guideConfig:function(){return{guideList:[{name:"ip",introduction:{en:"Support retrieval of a single IP, CIDR address range, support for IPv6 addresses",zh:"支持检索单个IP、CIDR地址段、支持IPv6地址"},exampleList:['ip:"1.1.1.1"','ip: "1.1.1.1/16"']},{name:"domain",introduction:{en:"Website domain information",zh:"网站域名信息"},exampleList:['domain:"360.cn"']},{name:"port、ports",introduction:{en:"Single port, open multiple ports at the same time",zh:"单一端口、同时开放多端口"},exampleList:['port:"80"','ports:"80,8080,8000"']},{name:"service、services",introduction:{en:"Protocols and Services",zh:"协议和服务"},exampleList:['service:"http"','services:"rtsp,https,telnet"']},{name:"cert",introduction:{en:"SSL\\TLS certificate information",zh:"SSL\\TLS证书信息"},exampleList:['cert:"baidu.com"','cert:"TLSv1.2"']},{name:"country、province、city",introduction:{en:"Location",zh:"位置和属地"},exampleList:['country:"China"','province:"shanxi"','province:"Inner Mongolia"','city:"beijing"']}],mobileGuideList:[{name:"ip",exampleList:['ip:"1.1.1.1"','ip: "1.1.1.1/16"']},{name:"is_ipv6",exampleList:['is_ipv6:"true"']},{name:"asn",exampleList:['asn:"12345"']},{name:"hostname",exampleList:['hostname:"50-87-74-222.unifi-edlayer.com"']},{name:"service",exampleList:['service:"http"service:"http"']}]}}}),created:function(){var t=this;this.initGptMessage().then((function(){t.strollToBottom(p["c"])})),this.getIndices(),this.getHotSearch(),this.ajaxGetIndexStatisticsBottom()},mounted:function(){var t=this;h["a"].$on("knowItAllSearch",(function(e){t.searchList.searchVal=e,t.onSearchByGpt(e)}))},watch:{gptMessage:{handler:function(){this.strollToBottom(p["c"])},deep:!0},isChatgpt:{handler:function(){this.activeSearchName=window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt?"GPT":"检索引导"},deep:!0,immediate:!0}},methods:_({},Object(s["b"])("site",["updateUserInfo","getUserRole"]),{},Object(s["b"])("gpt",["setGptMessages"]),{ajaxGetIndexStatisticsBottom:function(){var t;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(Object(c["u"])());case 2:t=e.sent,0===t.code&&(this.statisticsDataConfig.statisticsData=t.data);case 4:case"end":return e.stop()}}),null,this)},onSearchByGpt:function(t){t&&(this.searchList.searchVal=t,this.onSearch())},handleSearchByGptResult:function(t){t&&this.$router.push({name:"searchResult",query:{searchVal:t,selectIndex:this.searchList.selectIndex,latest:!0}})},handleChangeSearchName:function(t){this.activeSearchName=t.name},commonGptChat:function(t){var e=t,n=this.buildMessageObj(e,!0);this.gptSearch="",this.setGptMessages([].concat(Object(o["a"])(this.gptMessage),[n])),this.strollToBottom(p["c"]),this.ajaxGetGptQuery({query:e})},handleAuToChat:function(t){this.commonGptChat(t)},handleSubmitGptQuery:function(){this.gptSearch&&this.commonGptChat(this.gptSearch.trim())},ajaxGetGptQuery:function(t){var e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.gptLoading=!0,r.next=3,regeneratorRuntime.awrap(Object(b["a"])(t));case 3:e=r.sent,n=this._.cloneDeep(this.gptMessage),0===e.code?(this.gptLoading=!1,i=this.buildMessageObj(e.data,!1),this.setGptMessages([].concat(Object(o["a"])(this.gptMessage),[i]))):(this.gptLoading=!1,n[n.length-1].content="出错了",this.setGptMessages(Object(o["a"])(n)));case 6:case"end":return r.stop()}}),null,this)},initSocketIo:function(){var t=Object(l["a"])("http://dev.quake.360zqaq.net/chat",{autoConnect:!1,withCredentials:!0});this.socket=t,t.connect(),t.on("connect",(function(){t.emit("connect_chat",{username:"songlongfei1"})})),console.log("----status",t),this.socket.on("status",(function(t){console.log("响应数据----status",t)})),this.socket.on("response",(function(t){console.log("响应数据----response",t)}))},onEnterSystem:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:if(!this.role){i.next=8;break}return i.next=3,regeneratorRuntime.awrap(Object(u["h"])());case 3:t=i.sent,e=t.code,n=t.data,0===e&&(localStorage.isLogin=0,this.getUserRole(0),this.updateUserInfo(null),window.location.href=n),i.next=9;break;case 8:window.location.href="/quake/login";case 9:case"end":return i.stop()}}),null,this)},onGoWelcome:function(){window.location.href="/quake/welcome"},getIndices:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(Object(c["z"])());case 2:t=r.sent,e=t.code,n=t.data,0===e&&(this.indices=n,i=n.find((function(t){return t.default})),this.searchList.selectIndex=i.name);case 5:case"end":return r.stop()}}),null,this)},onTriggerSyntax:function(t){this.searchList.searchVal?this.searchList.searchVal="".concat(this.searchVal," AND ").concat(t):this.searchList.searchVal=t},onSearch:function(){return this.includesFiled=this.fieldsSearchPermission(this.role,this.searchList.selectIndex,this.searchList.searchVal),this.includesFiled?this.toolBarComprehensiveConfig.isShowPermissionTip=!0:(this.toolBarComprehensiveConfig.isShowPermissionTip=!1,this.$router.push({name:"searchResult",query:{searchVal:this.searchList.searchVal,selectIndex:this.searchList.selectIndex,latest:!0}})),!0},getHotSearch:function(){var t,e,n,i,r,o,a;return regeneratorRuntime.async((function(s){while(1)switch(s.prev=s.next){case 0:return t=this.hotSearchConfig,e=t.pagination,n=t.params,e.total&&n.start>=e.total&&(this.hotSearchConfig.params.start=0),this.hotSearchConfig.loading=!0,s.next=5,regeneratorRuntime.awrap(Object(c["r"])({start:this.hotSearchConfig.params.start,size:this.hotSearchConfig.params.size}));case 5:i=s.sent,r=i.code,o=i.data,a=i.meta,0===r&&(this.hotSearchConfig.pagination=a.pagination,this.hotSearchConfig.hotSearchList=o,this.hotSearchConfig.params.start+=4),this.hotSearchConfig.loading=!1;case 9:case"end":return s.stop()}}),null,this)},onHotSearch:function(t){this.$router.push({name:"searchResult",query:{searchVal:t,selectIndex:this.searchList.selectIndex,latest:!0}})},onQuikUse:function(){this.isShowMobileGuide=!1;var t='port:"8080" OR service:"http"';this.onHotSearch(t)},onSearchGuide:function(){this.isShowMobileGuide=!0},onViewMore:function(){this.$router.push({name:"help",query:{id:"5eb238f110d2e850d5c6aec8",title:"检索关键词"}})},getIndexStatistics:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(Object(c["t"])());case 2:t=i.sent,e=t.code,n=t.data,0===e&&(this.statisticsDataConfig.statisticsData=n);case 5:case"end":return i.stop()}}),null,this)},format:function(t){return t.toLocaleString()}})},A=C,I=(n("953de"),n("2877")),S=Object(I["a"])(A,i,r,!1,null,"00ba1632",null);e["default"]=S.exports},d2d8:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAACS9JREFUaEPVWttvHNUZ/30ze/HdcW5L7JhALhhkhKKWAAWE2sIjQjzx0vc+wQt/CKrUl4rXCqlKUwgmCtCKRE0TElqF2kVuiB3H98v6ltiOHe9l5lTfuczOzM54Zh2D6Mizs54z55zv9/2+2zk7BH2cHR7Oua2Z3wrgN0KIfkC0m7a9vpIeUOxu4A0ia5iAj6zN6ofv9PeXeRg55tnp2z2uIy4IIU5Hj22mDreGRYkTMUn0tO3B+YkwaNn05ju9fbPETIjWzDfxIAxcAD+W3GF97aAfAg3SZvVFOjt9+13h4Peqb5ykaZkwzzWKOKnfzvOTTe/R2YmR64B4aXfm+hPpZdENOjcxsi6AXTp2WgYb1XhaBan5CbRB5yZHdhk80k724zxHf4kEEhel9kqoJN01Pj99PDkqzLCNd98bYHsxP30yOSpAGoKnqJDGTHujwavu+Rgm9mB+Oj91J4nnXak9atAfknH6dGqsYSBxpsD3hc5Fyl5rQxMXERKJ/Kajza505I3qVwwNMJCkCsHMZywwIuqy4EJKz1AEXAGMbi5hbHMZhXw7nu3oRo5sECkgfFWw1Ie8Jqk0Zn4eij6bvpvUvU5t/g4svDy18IulDVxdHcfXq+NYLm/CJoIFQlsmjzNdj+OlrmM43nIAFgOSoDQgP7BdEEUXpu96USuk+FgARvtKfGDLKeP6vUlcXRnDyIMlKbhlEWxYUmA+JSC+wkIh34YzXcfw/L5edGVb5PMSlA/MTv4UlYbpwvR4HSM71bpSeMGmI/Dt2iyurIzh5v1pVF1HC+wX3lKg/EDIf8/CydaD+FlnL57r6EbWsiVDkq0UrPgFp4sz48q0fUVu3Chs9wzEcV1cWx3H7+5eAU8d0DpY+waMVd+uWVF9LI+pV/cfxxuH+phDbXbab1IAkrJfnJmI8JHgLaMfZsERLqrCxRfFW/jjzE2pcdtSfqA0r0FIQD5hQ+01BSgwL3Qdw+sH+pC1aozWTD2anwAjn0cCCaqBh+FOBkjZdfDl4vf40+y3UqvK9hUItnMWzDi5d88DrJ/XQcBmwUH4eWcvfnnwKeQsGxl9L85nI33ky9nJWj5PKGZd4aIiXJSqFfxtaQTn5gZrQMLajxLcMBbyG1bG6Y4evLb/JPJWBhnL1kqJsauIwoP+Ojs1RURHhRBkAnlcPHZcgapw8NCt4KulUXw8N+TzB8WK3+5NlPI7u9/8zPN877n2bry6/wSarKxkRDFZbxnhdENE7LYz8tGvisUTrlv6QLh4ayffYv+ouA4eOhVcWh7FpwvfKSA+f/CE9vtEoB1eHz+o/vYjeLnrOJrtDLJkg00uKXaRhQHLyr//eqEw5mFmRi4tzJ53XfetWhEZ5MYRwgNyeXkEnxWHaw7uFzYmACi/YR/RYLRvMYvPtD2GX3Q9iSY7K/1EMrJzxBp4o7v3bcmIP+IaZuBWRpWZ1R9+Ri4v38FFCaTm7FLD2lFNAlRs1ecWr12H46fbCnih60k0W5kakJiqWwpvZU8xE7FJ/NLczJQAeoMwFDN+Rv6+cgefL/7Xi/tRghsGAkJ7rPiyPVnoaz2MM/uekD4iGQmYVl06mP5199HH/TLWaf7y/MyUEGEgtfCrfKQsM/oXS7dUGaLzSHTe0AEgIs8Yf2LGTrUewvOdx5RpJfgIEU3/6khPPJBrxeKJinBGhesGAWqKjWnJ2mp1QjJSnwCDSTDQHgJcS6YWnmo9jNMdvWgOANE690xMMcOmlaXMqVeiTIv94kpx7rwQ0ZGLh+DSpCIcbDsVDK3P4ZP5oUA2N4z46yt/iI1s1/nn2bZu9LU9hhYrK2suftYUkVH+SoSB1wrdQWdnJhzhfiCECIXfmm2azM6mte1WsFh6gD9MXvOFXlPdhnJJnbNHly0v7zuBQr5DMqKAsDriMrQpDq2BDFnvMzP0j4X5KRBUQtwhsysgnEdclJwKNp0y/jw3iLnSfQ0mOTLVikt/7iG0Z5rwyr6TaM3k0GRlJBCOhnFbBR5DQpmZEGKGgciaNjqHBu+yaXHBWHar2HIqmNhawUDxO2kCgaQI1IdhXenKQt1XXPL//W096G3uQoudQ17WWoqR+KO+9qCrEki6w4VAlf2EI5dbwWa1jJtrUxhan61Vv748YgpHL9eYesxXaxXynXi65Yhkg82KgZhCM82axMsj14oLvFIy4UFdwyPoZgbCFTADKblVWaowmBv3xzHxcMWreANrjXA577FnydXhM63daMnk0GJnZQ6JdPREVQvQ1wwkfMRYmvQTV8CBYoWjF5sYh+NbDxYwsrkoyw/JgAdAZ/ZAxWuhkOvAE00HNQhmo1Zj1VVZKaih68ViIl6Dkx9Umwxqlci+sq2ZYXYWyw/w/eY8tpxSDYyXO1QwaLayOJo/gEO5NjTZGfl/XpsU+4Za5iaVi/WuQDcYSNrtILPA0mB4nc6LLD45JG87VWly86U1zJbuoeRWPN9ptnMo5DpxONuOvJ2RZpS3ba8kUQ6eDkTIEZQ3fLO4mJoR7iBZMds/cn2ikiSDYRB88ncOCuvVLaxXt+VWUGemRZbnXEfxyWByXCCSXhEaECk2HrxNBi/xE+ifDQLxmxmbGA/KYHjBVdaZXwFx5H0GzoRzJMryKatbvtpq3eGrjKPiTLp4CtC/Fpca3o03FAbY0ZsSEpTON1ybsU+xwah1PAtvIcM5Ra8C2ScUgPR+ERWLJJAw6sSMqjso51cfkh3pOy4c7UP83QxuophZUZJmIoqFRuaXonCGv7m0LEUwWklLpf85jyHeuJMbeHoHWIMzujYRSbIg/1TLo84vZWcgScLvtPMY1deYnAkOaqN697vwaeanfy+t1O39xpqahuwh1zOoVXPt8BbKcSoK9UvSZGg5UqsMfePQ4PIKW5g2taQho7lrIA0FBqhp+tHnp6Hl1XWEfp5OUGTizxhG2rQAY0q7Oq3FjUeEDfrPyv3rQrj/1y8MEFk3aHh17V1HuPoVjiS3/2m222S9R8NC5MS9tZiXatKSHgfwh+8vX6rZ3/minOn28lZP1SpfEAIxrzntLROPCs/zQcJgxs292XewZdYbk5mx7q3LF88A9Avhe/GsLtWG47AeOnbdoBviAn1SVPDNT8AGQMNk00duR9uH/UTyxbP/ASKZ864/6PhJAAAAAElFTkSuQmCC"},d301:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("2a7d"),r=n("ff8c"),o=n("8937");function a(t){for(var e=[],n=t.length,i=0;i<n-1;i++){var r=t[i],o=t[i+1];e.push({from:{x:r[0],y:r[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function s(t,e){var n=!1;return o.each(t,(function(t){if(r.default(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function l(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function c(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function u(t,e){if(t.length<2||e.length<2)return!1;var n=l(t),r=l(e);if(!c(n,r))return!1;var u=!1;if(o.each(e,(function(e){if(i.default(t,e[0],e[1]))return u=!0,!1})),u)return!0;if(o.each(t,(function(t){if(i.default(e,t[0],t[1]))return u=!0,!1})),u)return!0;var h=a(t),d=a(e),p=!1;return o.each(d,(function(t){if(s(h,t))return p=!0,!1})),p}e.default=u},d42d:function(t,e,n){"use strict";var i=n("86c7"),r=n.n(i);r.a},d58f:function(t,e,n){var i=n("59ed"),r=n("7b0b"),o=n("44ad"),a=n("07fa"),s=TypeError,l=function(t){return function(e,n,l,c){i(n);var u=r(e),h=o(u),d=a(u),p=t?d-1:0,f=t?-1:1;if(l<2)while(1){if(p in h){c=h[p],p+=f;break}if(p+=f,t?p<0:d<=p)throw s("Reduce of empty array with no initial value")}for(;t?p>=0:d>p;p+=f)p in h&&(c=n(c,h[p],p,u));return c}};t.exports={left:l(!1),right:l(!0)}},d5d6:function(t,e,n){"use strict";var i=n("ebb5"),r=n("b727").forEach,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("forEach",(function(t){r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},d5f3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("3d7d");function r(t){var e=t.attr(),n=e.x1,r=e.y1,o=e.x2,a=e.y2,s=Math.min(n,o),l=Math.max(n,o),c=Math.min(r,a),u=Math.max(r,a),h={minX:s,maxX:l,minY:c,maxY:u};return h=i.mergeArrowBBox(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}e.default=r},d6a3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("2412"),r=n("b455");e.default={box:function(t){for(var e=[],n=[],i=0;i<t.length;i++){var o=t[i];e.push(o[0]),n.push(o[1])}return r.getBBoxByArray(e,n)},length:function(t){return i.lengthOfSegment(t)},pointAt:function(t,e){return i.pointAtSegments(t,e)},pointDistance:function(t,e,n){return i.distanceAtSegment(t,e,n)},tangentAngle:function(t,e){return i.angleAtSegments(t,e)}}},d86b:function(t,e,n){var i=n("d039");t.exports=i((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},d9da:function(t,e,n){},daa8:function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"protocol",(function(){return z})),n.d(i,"PacketType",(function(){return V})),n.d(i,"Encoder",(function(){return G})),n.d(i,"Decoder",(function(){return H}));var r=n("34ba"),o=n("29c2"),a=n("99ea"),s=n("33e8");let l=!1;try{l="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(J){}const c=l;var u=n("20a4");function h(t){const e=t.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!e||c))return new XMLHttpRequest}catch(n){}if(!e)try{return new(u["a"][["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}var d=n("b007"),p=n("af7f");function f(){}const g=function(){const t=new h({xdomain:!1});return null!=t.responseType}();class m extends r["a"]{constructor(t){if(super(t),this.polling=!1,"undefined"!==typeof location){const e="https:"===location.protocol;let n=location.port;n||(n=e?"443":"80"),this.xd="undefined"!==typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}const e=t&&t.forceBase64;this.supportsBinary=g&&!e}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const e=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",(function(){--t||e()}))),this.writable||(t++,this.once("drain",(function(){--t||e()})))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const e=t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)};Object(s["b"])(t,this.socket.binaryType).forEach(e),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,Object(s["d"])(t,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const e=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Object(o["a"])()),this.supportsBinary||t.sid||(t.b64=1),this.opts.port&&("https"===e&&443!==Number(this.opts.port)||"http"===e&&80!==Number(this.opts.port))&&(n=":"+this.opts.port);const i=Object(a["b"])(t),r=-1!==this.opts.hostname.indexOf(":");return e+"://"+(r?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(i.length?"?"+i:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new v(this.uri(),t)}doWrite(t,e){const n=this.request({method:"POST",data:t});n.on("success",e),n.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}class v extends d["a"]{constructor(t,e){super(),Object(p["b"])(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.create()}create(){const t=Object(p["c"])(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const e=this.xhr=new h(t);try{e.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0);for(let t in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&e.setRequestHeader(t,this.opts.extraHeaders[t])}}catch(n){}if("POST"===this.method)try{e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{e.setRequestHeader("Accept","*/*")}catch(n){}"withCredentials"in e&&(e.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(e.timeout=this.opts.requestTimeout),e.onreadystatechange=()=>{4===e.readyState&&(200===e.status||1223===e.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"===typeof e.status?e.status:0)},0))},e.send(this.data)}catch(n){return void this.setTimeoutFn(()=>{this.onError(n)},0)}"undefined"!==typeof document&&(this.index=v.requestsCount++,v.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=f,t)try{this.xhr.abort()}catch(e){}"undefined"!==typeof document&&delete v.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(v.requestsCount=0,v.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",y);else if("function"===typeof addEventListener){const t="onpagehide"in u["a"]?"pagehide":"unload";addEventListener(t,y,!1)}function y(){for(let t in v.requests)v.requests.hasOwnProperty(t)&&v.requests[t].abort()}var b=n("1f49");const x={websocket:b["a"],polling:m},w=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function C(t){const e=t,n=t.indexOf("["),i=t.indexOf("]");-1!=n&&-1!=i&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));let r=w.exec(t||""),o={},a=14;while(a--)o[_[a]]=r[a]||"";return-1!=n&&-1!=i&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=A(o,o["path"]),o.queryKey=I(o,o["query"]),o}function A(t,e){const n=/\/{2,9}/g,i=e.replace(n,"/").split("/");return"/"!=e.slice(0,1)&&0!==e.length||i.splice(0,1),"/"==e.slice(-1)&&i.splice(i.length-1,1),i}function I(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,i){e&&(n[e]=i)})),n}class S extends d["a"]{constructor(t,e={}){super(),this.writeBuffer=[],t&&"object"===typeof t&&(e=t,t=null),t?(t=C(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=C(e.host).host),Object(p["b"])(this,e),this.secure=null!=e.secure?e.secure:"undefined"!==typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=Object(a["a"])(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"===typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=s["e"],e.transport=t,this.id&&(e.sid=this.id);const n=Object.assign({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new x[t](n)}open(){let t;if(this.opts.rememberUpgrade&&S.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(t){let e=this.createTransport(t),n=!1;S.priorWebsocketSuccess=!1;const i=()=>{n||(e.send([{type:"ping",data:"probe"}]),e.once("packet",t=>{if(!n)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;S.priorWebsocketSuccess="websocket"===e.name,this.transport.pause(()=>{n||"closed"!==this.readyState&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{const t=new Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}}))};function r(){n||(n=!0,c(),e.close(),e=null)}const o=t=>{const n=new Error("probe error: "+t);n.transport=e.name,r(),this.emitReserved("upgradeError",n)};function a(){o("transport closed")}function s(){o("socket closed")}function l(t){e&&t.name!==e.name&&r()}const c=()=>{e.removeListener("open",i),e.removeListener("error",o),e.removeListener("close",a),this.off("close",s),this.off("upgrading",l)};e.once("open",i),e.once("error",o),e.once("close",a),this.once("close",s),this.once("upgrading",l),e.open()}onOpen(){if(this.readyState="open",S.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let t=0;const e=this.upgrades.length;for(;t<e;t++)this.probe(this.upgrades[t])}}onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){const t=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!t)return this.writeBuffer;let e=1;for(let n=0;n<this.writeBuffer.length;n++){const t=this.writeBuffer[n].data;if(t&&(e+=Object(p["a"])(t)),n>0&&e>this.maxPayload)return this.writeBuffer.slice(0,n);e+=2}return this.writeBuffer}write(t,e,n){return this.sendPacket("message",t,e,n),this}send(t,e,n){return this.sendPacket("message",t,e,n),this}sendPacket(t,e,n,i){if("function"===typeof e&&(i=e,e=void 0),"function"===typeof n&&(i=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;n=n||{},n.compress=!1!==n.compress;const r={type:t,data:e,options:n};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},n=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}onError(t){S.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let n=0;const i=t.length;for(;n<i;n++)~this.transports.indexOf(t[n])&&e.push(t[n]);return e}}S.protocol=s["e"];var M=n("744a");S.protocol;function k(t,e="",n){let i=t;n=n||"undefined"!==typeof location&&location,null==t&&(t=n.protocol+"//"+n.host),"string"===typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(t="undefined"!==typeof n?n.protocol+"//"+t:"https://"+t),i=C(t)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const r=-1!==i.host.indexOf(":"),o=r?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+o+":"+i.port+e,i.href=i.protocol+"://"+o+(n&&n.port===i.port?"":":"+i.port),i}const E="function"===typeof ArrayBuffer,T=t=>{return"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer},O=Object.prototype.toString,P="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===O.call(Blob),j="function"===typeof File||"undefined"!==typeof File&&"[object FileConstructor]"===O.call(File);function L(t){return E&&(t instanceof ArrayBuffer||T(t))||P&&t instanceof Blob||j&&t instanceof File}function D(t,e){if(!t||"object"!==typeof t)return!1;if(Array.isArray(t)){for(let e=0,n=t.length;e<n;e++)if(D(t[e]))return!0;return!1}if(L(t))return!0;if(t.toJSON&&"function"===typeof t.toJSON&&1===arguments.length)return D(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&D(t[n]))return!0;return!1}function R(t){const e=[],n=t.data,i=t;return i.data=B(n,e),i.attachments=e.length,{packet:i,buffers:e}}function B(t,e){if(!t)return t;if(L(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}if(Array.isArray(t)){const n=new Array(t.length);for(let i=0;i<t.length;i++)n[i]=B(t[i],e);return n}if("object"===typeof t&&!(t instanceof Date)){const n={};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=B(t[i],e));return n}return t}function N(t,e){return t.data=F(t.data,e),delete t.attachments,t}function F(t,e){if(!t)return t;if(t&&!0===t._placeholder){const n="number"===typeof t.num&&t.num>=0&&t.num<e.length;if(n)return e[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=F(t[n],e);else if("object"===typeof t)for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=F(t[n],e));return t}const z=5;var V;(function(t){t[t["CONNECT"]=0]="CONNECT",t[t["DISCONNECT"]=1]="DISCONNECT",t[t["EVENT"]=2]="EVENT",t[t["ACK"]=3]="ACK",t[t["CONNECT_ERROR"]=4]="CONNECT_ERROR",t[t["BINARY_EVENT"]=5]="BINARY_EVENT",t[t["BINARY_ACK"]=6]="BINARY_ACK"})(V||(V={}));class G{constructor(t){this.replacer=t}encode(t){return t.type!==V.EVENT&&t.type!==V.ACK||!D(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===V.EVENT?V.BINARY_EVENT:V.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let e=""+t.type;return t.type!==V.BINARY_EVENT&&t.type!==V.BINARY_ACK||(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){const e=R(t),n=this.encodeAsString(e.packet),i=e.buffers;return i.unshift(n),i}}class H extends d["a"]{constructor(t){super(),this.reviver=t}add(t){let e;if("string"===typeof t){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(t);const n=e.type===V.BINARY_EVENT;n||e.type===V.BINARY_ACK?(e.type=n?V.EVENT:V.ACK,this.reconstructor=new W(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else{if(!L(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,super.emitReserved("decoded",e))}}decodeString(t){let e=0;const n={type:Number(t.charAt(0))};if(void 0===V[n.type])throw new Error("unknown packet type "+n.type);if(n.type===V.BINARY_EVENT||n.type===V.BINARY_ACK){const i=e+1;while("-"!==t.charAt(++e)&&e!=t.length);const r=t.substring(i,e);if(r!=Number(r)||"-"!==t.charAt(e))throw new Error("Illegal attachments");n.attachments=Number(r)}if("/"===t.charAt(e+1)){const i=e+1;while(++e){const n=t.charAt(e);if(","===n)break;if(e===t.length)break}n.nsp=t.substring(i,e)}else n.nsp="/";const i=t.charAt(e+1);if(""!==i&&Number(i)==i){const i=e+1;while(++e){const n=t.charAt(e);if(null==n||Number(n)!=n){--e;break}if(e===t.length)break}n.id=Number(t.substring(i,e+1))}if(t.charAt(++e)){const i=this.tryParse(t.substr(e));if(!H.isPayloadValid(n.type,i))throw new Error("invalid payload");n.data=i}return n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(e){return!1}}static isPayloadValid(t,e){switch(t){case V.CONNECT:return"object"===typeof e;case V.DISCONNECT:return void 0===e;case V.CONNECT_ERROR:return"string"===typeof e||"object"===typeof e;case V.EVENT:case V.BINARY_EVENT:return Array.isArray(e)&&e.length>0;case V.ACK:case V.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class W{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const t=N(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function U(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const Z=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Y extends d["a"]{constructor(t,e,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[U(t,"open",this.onopen.bind(this)),U(t,"packet",this.onpacket.bind(this)),U(t,"error",this.onerror.bind(this)),U(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io["_reconnecting"]||this.io.open(),"open"===this.io._readyState&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){if(Z.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const n={type:V.EVENT,data:e,options:{}};if(n.options.compress=!1!==this.flags.compress,"function"===typeof e[e.length-1]){const t=this.ids++,i=e.pop();this._registerAckCallback(t,i),n.id=t}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable,r=this.flags.volatile&&(!i||!this.connected);return r||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(t,e){var n;const i=null!==(n=this.flags.timeout)&&void 0!==n?n:this._opts.ackTimeout;if(void 0===i)return void(this.acks[t]=e);const r=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...t)=>{this.io.clearTimeoutFn(r),e.apply(this,[null,...t])}}emitWithAck(t,...e){const n=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise((i,r)=>{e.push((t,e)=>{return n?t?r(t):i(e):i(t)}),this.emit(t,...e)})}_addToQueue(t){let e;"function"===typeof t[t.length-1]&&(e=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...i)=>{if(n!==this._queue[0])return;const r=null!==t;return r?n.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...i)),n.pending=!1,this._drainQueue()}),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:V.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){const e=t.nsp===this.nsp;if(e)switch(t.type){case V.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case V.EVENT:case V.BINARY_EVENT:this.onevent(t);break;case V.ACK:case V.BINARY_ACK:this.onack(t);break;case V.DISCONNECT:this.ondisconnect();break;case V.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e);break}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const n of e)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"===typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let n=!1;return function(...i){n||(n=!0,e.packet({type:V.ACK,id:t,data:i}))}}onack(t){const e=this.acks[t.id];"function"===typeof e&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io["_destroy"](this)}disconnect(){return this.connected&&this.packet({type:V.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let n=0;n<e.length;n++)if(t===e[n])return e.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let n=0;n<e.length;n++)if(t===e[n])return e.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const n of e)n.apply(this,t.data)}}}function X(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}X.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},X.prototype.reset=function(){this.attempts=0},X.prototype.setMin=function(t){this.ms=t},X.prototype.setMax=function(t){this.max=t},X.prototype.setJitter=function(t){this.jitter=t};class q extends d["a"]{constructor(t,e){var n;super(),this.nsps={},this.subs=[],t&&"object"===typeof t&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,Object(p["b"])(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(n=e.randomizationFactor)&&void 0!==n?n:.5),this.backoff=new X({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const r=e.parser||i;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new S(this.uri,this.opts);const e=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const i=U(e,"open",(function(){n.onopen(),t&&t()})),r=U(e,"error",e=>{n.cleanup(),n._readyState="closed",this.emitReserved("error",e),t?t(e):n.maybeReconnectOnOpen()});if(!1!==this._timeout){const t=this._timeout;0===t&&i();const n=this.setTimeoutFn(()=>{i(),e.close(),e.emit("error",new Error("timeout"))},t);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(i),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(U(t,"ping",this.onping.bind(this)),U(t,"data",this.ondata.bind(this)),U(t,"error",this.onerror.bind(this)),U(t,"close",this.onclose.bind(this)),U(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){Object(M["c"])(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Y(this,t,e),this.nsps[t]=n),n}_destroy(t){const e=Object.keys(this.nsps);for(const n of e){const t=this.nsps[n];if(t.active)return}this._close()}_packet(t){const e=this.encoder.encode(t);for(let n=0;n<e.length;n++)this.engine.write(e[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}n.d(e,"a",(function(){return Q}));const K={};function Q(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};const n=k(t,e.path||"/socket.io"),i=n.source,r=n.id,o=n.path,a=K[r]&&o in K[r]["nsps"],s=e.forceNew||e["force new connection"]||!1===e.multiplex||a;let l;return s?l=new q(i,e):(K[r]||(K[r]=new q(i,e)),l=K[r]),n.query&&!e.query&&(e.query=n.queryKey),l.socket(n.path,e)}Object.assign(Q,{Manager:q,Socket:Y,io:Q,connect:Q})},db6f:function(t,e,n){},dbce:function(t,e,n){},dc1b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("8937"),r=function(t,e){return i.isString(e)?e:t.invert(t.scale(e))},o=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,i)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),i=e*t-n,r=this.values[n],o=n===e?r:this.values[n+1];return r+(o-r)*i},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r+=1)i.push(e[r]);return i},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var i=t.scales[n];return"identity"===i.type?i.values[0]:t._getAttributeValue(i,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,r=void 0===n?"base":n,o=t.names,a=void 0===o?[]:o,s=t.scales,l=void 0===s?[]:s,c=t.values,u=void 0===c?[]:c,h=t.callback;this.type=r,this.scales=l,this.values=u,this.names=a,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var r=h.apply(void 0,t);if(!i.isNil(r))return[r]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var i=t.scale(e);return this.getLinearValue(i)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:i.isArray(t)?t.map((function(t){return r(e,t)})):r(e,t)},t}();e.default=o},dc38:function(t,e,n){},dc4d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("2892");e.Adjust=i.default;var r={},o=function(t){return r[t.toLowerCase()]};e.getAdjust=o;var a=function(t,e){if(o(t))throw new Error("Adjust type '"+t+"' existed.");r[t.toLowerCase()]=e};e.registerAdjust=a},dca1:function(t,e,n){},df01:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){return(t%e+e)%e};e.default=i},dfb9:function(t,e,n){var i=n("07fa");t.exports=function(t,e){var n=0,r=i(e),o=new t(r);while(r>n)o[n]=e[n++];return o}},e171:function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t){return t}function n(t){return null===t||void 0===t}const i={alreadydisposed:()=>"View has been already disposed",invalidparams:t=>`Invalid parameters for '${t.name}'`,nomatchingcontroller:t=>`No matching controller for '${t.key}'`,nomatchingview:t=>`No matching view for '${JSON.stringify(t.params)}'`,notbindable:()=>"Value is not bindable",propertynotfound:t=>`Property '${t.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class r{constructor(t){var n;this.message=null!==(n=i[t.type](e(t.context)))&&void 0!==n?n:"Unexpected error",this.name=this.constructor.name,this.stack=new Error(this.message).stack,this.type=t.type}static alreadyDisposed(){return new r({type:"alreadydisposed"})}static notBindable(){return new r({type:"notbindable"})}static propertyNotFound(t){return new r({type:"propertynotfound",context:{name:t}})}static shouldNeverHappen(){return new r({type:"shouldneverhappen"})}}class o{constructor(){this.observers_={}}on(t,e){let n=this.observers_[t];return n||(n=this.observers_[t]=[]),n.push({handler:e}),this}off(t,e){const n=this.observers_[t];return n&&(this.observers_[t]=n.filter(t=>{return t.handler!==e})),this}emit(t,e){const n=this.observers_[t];n&&n.forEach(t=>{t.handler(e)})}}const a="tp";function s(t){const e=(e,n)=>{return[a,"-",t,"v",e?`_${e}`:"",n?`-${n}`:""].join("")};return e}function l(t,e){return n=>e(t(n))}function c(t){return t.rawValue}function u(t,e){t.emitter.on("change",l(c,e)),e(t.rawValue)}function h(t,e,n){u(t.value(e),n)}function d(t,e,n){n?t.classList.add(e):t.classList.remove(e)}function p(t,e){return n=>{d(t,e,n)}}class f{constructor(t,e){var n;this.constraint_=null===e||void 0===e?void 0:e.constraint,this.equals_=null!==(n=null===e||void 0===e?void 0:e.equals)&&void 0!==n?n:(t,e)=>t===e,this.emitter=new o,this.rawValue_=t}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!==e&&void 0!==e?e:{forceEmit:!1,last:!0},i=this.constraint_?this.constraint_.constrain(t):t,r=!this.equals_(this.rawValue_,i);(r||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.rawValue_=i,this.emitter.emit("change",{options:n,rawValue:i,sender:this}))}}class g{constructor(t){this.emitter=new o,this.value_=t}get rawValue(){return this.value_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!==e&&void 0!==e?e:{forceEmit:!1,last:!0};(this.value_!==t||n.forceEmit)&&(this.emitter.emit("beforechange",{sender:this}),this.value_=t,this.emitter.emit("change",{options:n,rawValue:this.value_,sender:this}))}}function m(t,e){const n=null===e||void 0===e?void 0:e.constraint,i=null===e||void 0===e?void 0:e.equals;return n||i?new f(t,e):new g(t)}class v{constructor(t){this.emitter=new o,this.valMap_=t;for(const e in this.valMap_){const t=this.valMap_[e];t.emitter.on("change",()=>{this.emitter.emit("change",{key:e,sender:this})})}}static createCore(t){const e=Object.keys(t);return e.reduce((e,n)=>{return Object.assign(e,{[n]:m(t[n])})},{})}static fromObject(t){const e=this.createCore(t);return new v(e)}get(t){return this.valMap_[t].rawValue}set(t,e){this.valMap_[t].rawValue=e}value(t){return this.valMap_[t]}}function y(t,n){const i=Object.keys(n),r=i.reduce((e,i)=>{if(void 0===e)return;const r=n[i],o=r(t[i]);return o.succeeded?Object.assign(Object.assign({},e),{[i]:o.value}):void 0},{});return e(r)}function b(t,e){return t.reduce((t,n)=>{if(void 0===t)return;const i=e(n);return i.succeeded&&void 0!==i.value?[...t,i.value]:void 0},[])}function x(t){return null!==t&&"object"===typeof t}function w(t){return e=>n=>{if(!e&&void 0===n)return{succeeded:!1,value:void 0};if(e&&void 0===n)return{succeeded:!0,value:void 0};const i=t(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function _(t){return{custom:e=>w(e)(t),boolean:w(t=>"boolean"===typeof t?t:void 0)(t),number:w(t=>"number"===typeof t?t:void 0)(t),string:w(t=>"string"===typeof t?t:void 0)(t),function:w(t=>"function"===typeof t?t:void 0)(t),constant:e=>w(t=>t===e?e:void 0)(t),raw:w(t=>t)(t),object:e=>w(t=>{if(x(t))return y(t,e)})(t),array:e=>w(t=>{if(Array.isArray(t))return b(t,e)})(t)}}const C={optional:_(!0),required:_(!1)};function A(t,e){const n=C.required.object(e)(t);return n.succeeded?n.value:void 0}const I="http://www.w3.org/2000/svg";function S(t){t.offsetHeight}function M(t,e){const n=t.style.transition;t.style.transition="none",e(),t.style.transition=n}function k(t){return void 0!==t.ontouchstart}function E(t){return t.relatedTarget?e(t.relatedTarget):"explicitOriginalTarget"in t?t.explicitOriginalTarget:null}class T extends v{constructor(t){super(t)}static create(t){const e={completed:!0,expanded:t,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null},n=v.createCore(e);return new T(n)}get styleExpanded(){var t;return null!==(t=this.get("temporaryExpanded"))&&void 0!==t?t:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";const t=this.get("expandedHeight");return this.get("shouldFixHeight")&&!n(t)?`${t}px`:"auto"}bindExpandedClass(t,e){h(this,"expanded",()=>{const n=this.styleExpanded;n?t.classList.add(e):t.classList.remove(e)})}}function O(t,e){let n=0;return M(e,()=>{t.set("expandedHeight",null),t.set("temporaryExpanded",!0),S(e),n=e.clientHeight,t.set("temporaryExpanded",null),S(e)}),n}function P(t,e){e.style.height=t.styleHeight}function j(t,e){t.value("expanded").emitter.on("beforechange",()=>{t.set("completed",!1),n(t.get("expandedHeight"))&&t.set("expandedHeight",O(t,e)),t.set("shouldFixHeight",!0),S(e)}),t.emitter.on("change",()=>{P(t,e)}),P(t,e),e.addEventListener("transitionend",e=>{"height"===e.propertyName&&(t.set("shouldFixHeight",!1),t.set("expandedHeight",null),t.set("completed",!0))})}class L{constructor(t){this.constraints=t}constrain(t){return this.constraints.reduce((t,e)=>{return e.constrain(t)},t)}}class D{constructor(t){this.maxValue=t.max,this.minValue=t.min}constrain(t){let e=t;return n(this.minValue)||(e=Math.max(e,this.minValue)),n(this.maxValue)||(e=Math.min(e,this.maxValue)),e}}class R{constructor(t){this.step=t}constrain(t){const e=t<0?-Math.round(-t/this.step):Math.round(t/this.step);return e*this.step}}const B=s("pop");class N{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(B()),e.viewProps.bindClassModifiers(this.element),u(e.shows,p(this.element,B(void 0,"v")))}}class F{constructor(t,e){this.shows=m(!1),this.viewProps=e.viewProps,this.view=new N(t,{shows:this.shows,viewProps:this.viewProps})}}class z{constructor(t){this.text=t}evaluate(){return Number(this.text)}toString(){return this.text}}const V={"**":(t,e)=>Math.pow(t,e),"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"&":(t,e)=>t&e,"^":(t,e)=>t^e,"|":(t,e)=>t|e};class G{constructor(t,e,n){this.left=e,this.operator=t,this.right=n}evaluate(){const t=V[this.operator];if(!t)throw new Error(`unexpected binary operator: '${this.operator}`);return t(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}const H={"+":t=>t,"-":t=>-t,"~":t=>~t};class W{constructor(t,e){this.operator=t,this.expression=e}evaluate(){const t=H[this.operator];if(!t)throw new Error(`unexpected unary operator: '${this.operator}`);return t(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function U(t){return(e,n)=>{for(let i=0;i<t.length;i++){const r=t[i](e,n);if(""!==r)return r}return""}}function Z(t,e){var n;const i=t.substr(e).match(/^\s+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Y(t,e){const n=t.substr(e,1);return n.match(/^[1-9]$/)?n:""}function X(t,e){var n;const i=t.substr(e).match(/^[0-9]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function q(t,e){const n=X(t,e);if(""!==n)return n;const i=t.substr(e,1);if(e+=1,"-"!==i&&"+"!==i)return"";const r=X(t,e);return""===r?"":i+r}function K(t,e){const n=t.substr(e,1);if(e+=1,"e"!==n.toLowerCase())return"";const i=q(t,e);return""===i?"":n+i}function Q(t,e){const n=t.substr(e,1);if("0"===n)return n;const i=Y(t,e);return e+=i.length,""===i?"":i+X(t,e)}function J(t,e){const n=Q(t,e);if(e+=n.length,""===n)return"";const i=t.substr(e,1);if(e+=i.length,"."!==i)return"";const r=X(t,e);return e+=r.length,n+i+r+K(t,e)}function $(t,e){const n=t.substr(e,1);if(e+=n.length,"."!==n)return"";const i=X(t,e);return e+=i.length,""===i?"":n+i+K(t,e)}function tt(t,e){const n=Q(t,e);return e+=n.length,""===n?"":n+K(t,e)}const et=U([J,$,tt]);function nt(t,e){var n;const i=t.substr(e).match(/^[01]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function it(t,e){const n=t.substr(e,2);if(e+=n.length,"0b"!==n.toLowerCase())return"";const i=nt(t,e);return""===i?"":n+i}function rt(t,e){var n;const i=t.substr(e).match(/^[0-7]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function ot(t,e){const n=t.substr(e,2);if(e+=n.length,"0o"!==n.toLowerCase())return"";const i=rt(t,e);return""===i?"":n+i}function at(t,e){var n;const i=t.substr(e).match(/^[0-9a-f]+/i);return null!==(n=i&&i[0])&&void 0!==n?n:""}function st(t,e){const n=t.substr(e,2);if(e+=n.length,"0x"!==n.toLowerCase())return"";const i=at(t,e);return""===i?"":n+i}const lt=U([it,ot,st]),ct=U([lt,et]);function ut(t,e){const n=ct(t,e);return e+=n.length,""===n?null:{evaluable:new z(n),cursor:e}}function ht(t,e){const n=t.substr(e,1);if(e+=n.length,"("!==n)return null;const i=vt(t,e);if(!i)return null;e=i.cursor,e+=Z(t,e).length;const r=t.substr(e,1);return e+=r.length,")"!==r?null:{evaluable:i.evaluable,cursor:e}}function dt(t,e){return ut(t,e)||ht(t,e)}function pt(t,e){const n=dt(t,e);if(n)return n;const i=t.substr(e,1);if(e+=i.length,"+"!==i&&"-"!==i&&"~"!==i)return null;const r=pt(t,e);return r?(e=r.cursor,{cursor:e,evaluable:new W(i,r.evaluable)}):null}function ft(t,e,n){n+=Z(e,n).length;const i=t.filter(t=>e.startsWith(t,n))[0];return i?(n+=i.length,n+=Z(e,n).length,{cursor:n,operator:i}):null}function gt(t,e){return(n,i)=>{const r=t(n,i);if(!r)return null;i=r.cursor;let o=r.evaluable;for(;;){const r=ft(e,n,i);if(!r)break;i=r.cursor;const a=t(n,i);if(!a)return null;i=a.cursor,o=new G(r.operator,o,a.evaluable)}return o?{cursor:i,evaluable:o}:null}}const mt=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((t,e)=>{return gt(t,e)},pt);function vt(t,e){return e+=Z(t,e).length,mt(t,e)}function yt(t){const e=vt(t,0);if(!e)return null;const n=e.cursor+Z(t,e.cursor).length;return n!==t.length?null:e.evaluable}function bt(t){var e;const n=yt(t);return null!==(e=null===n||void 0===n?void 0:n.evaluate())&&void 0!==e?e:null}function xt(t){return e=>{return e.toFixed(Math.max(Math.min(t,20),0))}}function wt({primary:t,secondary:e,forward:n,backward:i}){let r=!1;function o(t){r||(r=!0,t(),r=!1)}t.emitter.on("change",i=>{o(()=>{e.setRawValue(n(t,e),i.options)})}),e.emitter.on("change",r=>{o(()=>{t.setRawValue(i(t,e),r.options)}),o(()=>{e.setRawValue(n(t,e),r.options)})}),o(()=>{e.setRawValue(n(t,e),{forceEmit:!1,last:!0})})}function _t(t,e){const n=t*(e.altKey?.1:1)*(e.shiftKey?10:1);return e.upKey?+n:e.downKey?-n:0}function Ct(t){return{altKey:t.altKey,downKey:"ArrowDown"===t.key,shiftKey:t.shiftKey,upKey:"ArrowUp"===t.key}}function At(t){return{altKey:t.altKey,downKey:"ArrowLeft"===t.key,shiftKey:t.shiftKey,upKey:"ArrowRight"===t.key}}function It(t){return"ArrowUp"===t||"ArrowDown"===t}function St(t){return It(t)||"ArrowLeft"===t||"ArrowRight"===t}function Mt(t,e){const n=e.ownerDocument.defaultView,i=e.getBoundingClientRect();return{x:t.pageX-((n&&n.scrollX||0)+i.left),y:t.pageY-((n&&n.scrollY||0)+i.top)}}class kt{constructor(t){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=t,this.emitter=new o,t.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),t.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),t.addEventListener("touchend",this.onTouchEnd_),t.addEventListener("mousedown",this.onMouseDown_)}computePosition_(t){const e=this.elem_.getBoundingClientRect();return{bounds:{width:e.width,height:e.height},point:t?{x:t.x,y:t.y}:null}}onMouseDown_(t){var e;t.preventDefault(),null===(e=t.currentTarget)||void 0===e||e.focus();const n=this.elem_.ownerDocument;n.addEventListener("mousemove",this.onDocumentMouseMove_),n.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(Mt(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseMove_(t){this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(Mt(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseUp_(t){const e=this.elem_.ownerDocument;e.removeEventListener("mousemove",this.onDocumentMouseMove_),e.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(Mt(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onTouchStart_(t){t.preventDefault();const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchMove_(t){const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchEnd_(t){var e;const n=null!==(e=t.targetTouches.item(0))&&void 0!==e?e:this.lastTouch_,i=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(n?{x:n.clientX-i.left,y:n.clientY-i.top}:void 0),sender:this,shiftKey:t.shiftKey})}}function Et(t,e,n){return Math.min(Math.max(t,e),n)}const Tt=s("txt");class Ot{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.props_=e.props,this.props_.emitter.on("change",this.onChange_),this.element=t.createElement("div"),this.element.classList.add(Tt(),Tt(void 0,"num")),e.arrayPosition&&this.element.classList.add(Tt(void 0,e.arrayPosition)),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("input");n.classList.add(Tt("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=e.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(Tt()),this.inputElement.classList.add(Tt("i"));const i=t.createElement("div");i.classList.add(Tt("k")),this.element.appendChild(i),this.knobElement=i;const r=t.createElementNS(I,"svg");r.classList.add(Tt("g")),this.knobElement.appendChild(r);const o=t.createElementNS(I,"path");o.classList.add(Tt("gb")),r.appendChild(o),this.guideBodyElem_=o;const a=t.createElementNS(I,"path");a.classList.add(Tt("gh")),r.appendChild(a),this.guideHeadElem_=a;const l=t.createElement("div");l.classList.add(s("tt")()),this.knobElement.appendChild(l),this.tooltipElem_=l,e.value.emitter.on("change",this.onChange_),this.value=e.value,this.refresh()}onDraggingChange_(t){if(null===t.rawValue)return void this.element.classList.remove(Tt(void 0,"drg"));this.element.classList.add(Tt(void 0,"drg"));const e=t.rawValue/this.props_.get("draggingScale"),n=e+(e>0?-1:e<0?1:0),i=Et(-n,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",[`M ${n+i},0 L${n},4 L${n+i},8`,`M ${e},-1 L${e},9`].join(" ")),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${e},4`);const r=this.props_.get("formatter");this.tooltipElem_.textContent=r(this.value.rawValue),this.tooltipElem_.style.left=`${e}px`}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value.rawValue)}onChange_(){this.refresh()}}class Pt{constructor(t,e){this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.parser_=e.parser,this.props=e.props,this.value=e.value,this.viewProps=e.viewProps,this.dragging_=m(null),this.view=new Ot(t,{arrayPosition:e.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);const n=new kt(this.view.knobElement);n.emitter.on("down",this.onPointerDown_),n.emitter.on("move",this.onPointerMove_),n.emitter.on("up",this.onPointerUp_)}onInputChange_(t){const i=e(t.currentTarget),r=i.value,o=this.parser_(r);n(o)||(this.value.rawValue=o),this.view.refresh()}onInputKeyDown_(t){const e=_t(this.baseStep_,Ct(t));0!==e&&this.value.setRawValue(this.value.rawValue+e,{forceEmit:!1,last:!1})}onInputKeyUp_(t){const e=_t(this.baseStep_,Ct(t));0!==e&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(t){if(!t.point)return null;const e=t.point.x-t.bounds.width/2;return this.originRawValue_+e*this.props.get("draggingScale")}onPointerMove_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_)}onPointerUp_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null)}}function jt(t){if("inline"===t||"popup"===t)return t}function Lt(t){const e=C;return e.required.object({max:e.optional.number,min:e.optional.number,step:e.optional.number})(t).value}class Dt{constructor(t){this.components=t.components,this.asm_=t.assembly}constrain(t){const e=this.asm_.toComponents(t).map((t,e)=>{var n,i;return null!==(i=null===(n=this.components[e])||void 0===n?void 0:n.constrain(t))&&void 0!==i?i:t});return this.asm_.fromComponents(e)}}const Rt=s("pndtxt");class Bt{constructor(t,e){this.textViews=e.textViews,this.element=t.createElement("div"),this.element.classList.add(Rt()),this.textViews.forEach(e=>{const n=t.createElement("div");n.classList.add(Rt("a")),n.appendChild(e.element),this.element.appendChild(n)})}}function Nt(t,e,n){return new Pt(t,{arrayPosition:0===n?"fst":n===e.axes.length-1?"lst":"mid",baseStep:e.axes[n].baseStep,parser:e.parser,props:e.axes[n].textProps,value:m(0,{constraint:e.axes[n].constraint}),viewProps:e.viewProps})}class Ft{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.acs_=e.axes.map((n,i)=>Nt(t,e,i)),this.acs_.forEach((t,n)=>{wt({primary:this.value,secondary:t.value,forward:t=>{return e.assembly.toComponents(t.rawValue)[n]},backward:(t,i)=>{const r=e.assembly.toComponents(t.rawValue);return r[n]=i.rawValue,e.assembly.fromComponents(r)}})}),this.view=new Bt(t,{textViews:this.acs_.map(t=>t.view)})}}class zt{multiply(t){return this.format(this.quat.multiply(t.quat))}premultiply(t){return this.format(t.multiply(this))}slerp(t,e){return this.format(this.quat.slerp(t.quat,e))}}function Vt(t,e,n){return Math.min(Math.max(t,e),n)}function Gt(t,e){return Math.floor(t/e)*e}function Ht(t,e){return t-Gt(t,e)}function Wt(t){return Ht(t+Math.PI,2*Math.PI)-Math.PI}class Ut extends zt{constructor(t,e,n,i,r){super(),this.x=null!==t&&void 0!==t?t:0,this.y=null!==e&&void 0!==e?e:0,this.z=null!==n&&void 0!==n?n:0,this.order=null!==i&&void 0!==i?i:"XYZ",this.unit=null!==r&&void 0!==r?r:"rad"}static fromQuaternion(t,e,n){const i=t.toMat3(),[r,o,a,s]="XYZ"===e?[0,1,2,1]:"XZY"===e?[0,2,1,-1]:"YXZ"===e?[1,0,2,-1]:"YZX"===e?[1,2,0,1]:"ZXY"===e?[2,0,1,1]:[2,1,0,-1],l=[0,0,0],c=i[a+3*r];return l[o]=-s*Math.asin(Vt(c,-1,1)),Math.abs(c)<.999999?(l[r]=s*Math.atan2(i[a+3*o],i[4*a]),l[a]=s*Math.atan2(i[o+3*r],i[4*r])):l[r]=s*Math.atan2(-i[o+3*a],i[4*o]),Math.abs(l[r])+Math.abs(l[a])>Math.PI&&(l[r]=Wt(l[r]+Math.PI),l[o]=Wt(Math.PI-l[o]),l[a]=Wt(l[a]+Math.PI)),new Ut(...l,e).reunit(n)}get quat(){return Zt.fromEuler(this)}getComponents(){return[this.x,this.y,this.z]}toEuler(t,e){return this.reorder(t).reunit(e)}format(t){return t instanceof Ut?t.reorder(this.order):t.toEuler(this.order,this.unit)}reorder(t){return t===this.order?this:this.quat.toEuler(t,this.unit)}reunit(t){const e={deg:Math.PI/180,rad:1,turn:2*Math.PI}[this.unit],n={deg:180/Math.PI,rad:1,turn:.5/Math.PI}[t],i=e*n;return new Ut(i*this.x,i*this.y,i*this.z,this.order,t)}}class Zt extends zt{constructor(t,e,n,i){super(),this.x=null!==t&&void 0!==t?t:0,this.y=null!==e&&void 0!==e?e:0,this.z=null!==n&&void 0!==n?n:0,this.w=null!==i&&void 0!==i?i:1}static fromAxisAngle(t,e){const n=e/2,i=Math.sin(n);return new Zt(t.x*i,t.y*i,t.z*i,Math.cos(n))}static fromEuler(t){const e=t.reunit("rad"),[n,i,r,o]="XYZ"===e.order?[0,1,2,1]:"XZY"===e.order?[0,2,1,-1]:"YXZ"===e.order?[1,0,2,-1]:"YZX"===e.order?[1,2,0,1]:"ZXY"===e.order?[2,0,1,1]:[2,1,0,-1],a=e.getComponents(),s=.5*a[n],l=.5*o*a[i],c=.5*a[r],u=Math.cos(s),h=Math.cos(l),d=Math.cos(c),p=Math.sin(s),f=Math.sin(l),g=Math.sin(c),m=[0,0,0,d*h*u+g*f*p];return m[n]=d*h*p-g*f*u,m[i]=o*(d*f*u+g*h*p),m[r]=g*h*u-d*f*p,new Zt(...m)}static lookRotation(t,e){const{normal:n,tangent:i,binormal:r}=t.orthoNormalize(e),o=r.x,a=i.x,s=n.x,l=r.y,c=i.y,u=n.y,h=r.z,d=i.z,p=n.z,f=o+c+p;if(f>0){const t=.5/Math.sqrt(f+1);return new Zt((d-u)*t,(s-h)*t,(l-a)*t,.25/t)}if(o>c&&o>p){const t=2*Math.sqrt(1+o-c-p);return new Zt(.25*t,(a+l)/t,(s+h)/t,(d-u)/t)}if(c>p){const t=2*Math.sqrt(1+c-o-p);return new Zt((a+l)/t,.25*t,(u+d)/t,(s-h)/t)}{const t=2*Math.sqrt(1+p-o-c);return new Zt((s+h)/t,(u+d)/t,.25*t,(l-a)/t)}}get quat(){return this}getComponents(){return[this.x,this.y,this.z,this.w]}toEuler(t,e){return Ut.fromQuaternion(this,t,e)}get lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}get length(){return Math.sqrt(this.lengthSq)}get normalized(){const t=this.length;return 0===t?new Zt:new Zt(this.x/t,this.y/t,this.z/t,this.w/t)}get negated(){return new Zt(-this.x,-this.y,-this.z,-this.w)}get ban360s(){return this.w<0?this.negated:this}multiply(t){const e=t.quat;return new Zt(this.w*e.x+this.x*e.w+this.y*e.z-this.z*e.y,this.w*e.y-this.x*e.z+this.y*e.w+this.z*e.x,this.w*e.z+this.x*e.y-this.y*e.x+this.z*e.w,this.w*e.w-this.x*e.x-this.y*e.y-this.z*e.z)}format(t){return t.quat}slerp(t,e){let n=t.quat;if(0===e)return this;if(1===e)return n;const i=this.ban360s;n=n.ban360s;let r=i.w*n.w+i.x*n.x+i.y*n.y+i.z*n.z;if(r<0&&(n=n.negated,r=-r),r>=1)return i;const o=1-r*r;if(o<=Number.EPSILON){const t=1-e;return new Zt(t*i.x+e*n.x,t*i.y+e*n.y,t*i.z+e*n.z,t*i.w+e*n.w).normalized}const a=Math.sqrt(o),s=Math.atan2(a,r),l=Math.sin((1-e)*s)/a,c=Math.sin(e*s)/a;return new Zt(i.x*l+n.x*c,i.y*l+n.y*c,i.z*l+n.z*c,i.w*l+n.w*c)}toMat3(){const{x:t,y:e,z:n,w:i}=this;return[1-2*e*e-2*n*n,2*t*e+2*n*i,2*t*n-2*e*i,2*t*e-2*n*i,1-2*t*t-2*n*n,2*e*n+2*t*i,2*t*n+2*e*i,2*e*n-2*t*i,1-2*t*t-2*e*e]}}class Yt{constructor(){this.offset=[0,0,-5],this.fov=30,this.aspect=1,this.viewport=[0,0,1,1]}project(t){const e=.5*(this.viewport[0]+this.viewport[2]),n=.5*(this.viewport[1]+this.viewport[3]),i=this.viewport[2]-this.viewport[0],r=this.viewport[3]-this.viewport[1],o=1/Math.tan(this.fov*Math.PI/360),a=-(t.z+this.offset[2]),s=e+(t.x+this.offset[0])/a*o*i*.5/this.aspect,l=n-(t.y+this.offset[1])/a*o*r*.5;return[s,l]}}class Xt{constructor(t,e,n){this.element=t.createElementNS(I,"path"),this.vertices=e,this.projector=n}setRotation(t){let e="";return this.vertices.forEach((n,i)=>{const r=n.applyQuaternion(t),[o,a]=this.projector.project(r),s=0===i?"M":"L";e+=`${s}${o} ${a}`}),this.element.setAttributeNS(null,"d",e),this}}class qt{constructor(t,e,n){this.x=null!==t&&void 0!==t?t:0,this.y=null!==e&&void 0!==e?e:0,this.z=null!==n&&void 0!==n?n:0}getComponents(){return[this.x,this.y,this.z]}get lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}get length(){return Math.sqrt(this.lengthSq)}get normalized(){const t=this.length;return 0===t?new qt:new qt(this.x/t,this.y/t,this.z/t)}get negated(){return new qt(-this.x,-this.y,-this.z)}add(t){return new qt(this.x+t.x,this.y+t.y,this.z+t.z)}sub(t){return new qt(this.x-t.x,this.y-t.y,this.z-t.z)}scale(t){return new qt(this.x*t,this.y*t,this.z*t)}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}cross(t){return new qt(this.y*t.z-this.z*t.y,this.z*t.x-this.x*t.z,this.x*t.y-this.y*t.x)}orthoNormalize(t){const e=this.normalized;t=t.normalized;let n=e.dot(t);1===n&&(t=Math.abs(e.y)>Math.abs(e.z)?new qt(0,0,1):new qt(0,1,0),n=e.dot(t)),t=t.sub(e.scale(n)).normalized;const i=t.cross(e);return{normal:e,tangent:t,binormal:i}}applyQuaternion(t){const e=t.w*this.x+t.y*this.z-t.z*this.y,n=t.w*this.y+t.z*this.x-t.x*this.z,i=t.w*this.z+t.x*this.y-t.y*this.x,r=-t.x*this.x-t.y*this.y-t.z*this.z;return new qt(e*t.w+r*-t.x+n*-t.z-i*-t.y,n*t.w+r*-t.y+i*-t.x-e*-t.z,i*t.w+r*-t.z+e*-t.y-n*-t.x)}}function Kt(t,e){const n=e.z>0?new Zt(0,0,0,1):new Zt(0,0,1,0);return Math.abs(t.z)>.9999?n:Zt.lookRotation(t,e)}function Qt(t,e,n,i,r,o=1){const a=[];for(let s=0;s<n;s++){const l=t+e*s/(n-1),c=new qt;c[i]=o*Math.cos(l),c[r]=o*Math.sin(l),a.push(c)}return a}const Jt=s("rotationgizmo"),$t=new qt(0,0,0),te=new qt(1,0,0),ee=new qt(0,1,0),ne=new qt(0,0,1),ie=new qt(0,0,-1),re=new qt(.7,0,0),oe=new qt(0,.7,0),ae=new qt(0,0,.7),se=new qt(-.7,0,0),le=new qt(0,-.7,0),ce=new qt(0,0,-.7),ue=new Zt(0,0,0,1);function he(t,e,n){const i=t.createElementNS(I,"g"),r=t.createElementNS(I,"circle");r.classList.add(Jt(e)),r.setAttributeNS(null,"cx","0"),r.setAttributeNS(null,"cy","0"),r.setAttributeNS(null,"r","8"),i.appendChild(r);const o=t.createElementNS(I,"text");return o.classList.add(Jt("labeltext")),o.setAttributeNS(null,"y","4"),o.setAttributeNS(null,"text-anchor","middle"),o.setAttributeNS(null,"font-size","10"),o.textContent=n,i.appendChild(o),i}class de{constructor(t,e){this.onFoldableChange_=this.onFoldableChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.onModeChange_=this.onModeChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(Jt()),"popup"===e.pickerLayout&&this.element.classList.add(Jt(void 0,"p"));const n=t.createElement("div");n.classList.add(Jt("p")),e.viewProps.bindTabIndex(n),this.element.appendChild(n),this.padElement=n;const i=t.createElementNS(I,"svg");i.classList.add(Jt("g")),this.padElement.appendChild(i),this.svgElem_=i,this.projector_=new Yt,this.projector_.viewport=[0,0,136,136];const r=Qt(0,Math.PI,33,"x","y"),o=Qt(0,2*Math.PI,65,"x","y",1.1);this.xArcB_=new Xt(t,r,this.projector_),this.xArcB_.element.classList.add(Jt("arcx")),this.svgElem_.appendChild(this.xArcB_.element),this.yArcB_=new Xt(t,r,this.projector_),this.yArcB_.element.classList.add(Jt("arcy")),this.svgElem_.appendChild(this.yArcB_.element),this.zArcB_=new Xt(t,r,this.projector_),this.zArcB_.element.classList.add(Jt("arcz")),this.svgElem_.appendChild(this.zArcB_.element),this.xArcBC_=new Xt(t,r,this.projector_),this.xArcBC_.element.classList.add(Jt("arcc")),this.svgElem_.appendChild(this.xArcBC_.element),this.yArcBC_=new Xt(t,r,this.projector_),this.yArcBC_.element.classList.add(Jt("arcc")),this.svgElem_.appendChild(this.yArcBC_.element),this.zArcBC_=new Xt(t,r,this.projector_),this.zArcBC_.element.classList.add(Jt("arcc")),this.svgElem_.appendChild(this.zArcBC_.element);const a=t.createElementNS(I,"g");i.classList.add(Jt("axes")),this.svgElem_.appendChild(a),this.axesElem_=a,this.xAxis_=new Xt(t,[$t,re],this.projector_),this.xAxis_.element.classList.add(Jt("axisx")),this.axesElem_.appendChild(this.xAxis_.element),this.yAxis_=new Xt(t,[$t,oe],this.projector_),this.yAxis_.element.classList.add(Jt("axisy")),this.axesElem_.appendChild(this.yAxis_.element),this.zAxis_=new Xt(t,[$t,ae],this.projector_),this.zAxis_.element.classList.add(Jt("axisz")),this.axesElem_.appendChild(this.zAxis_.element),this.xnAxis_=new Xt(t,[$t,se],this.projector_),this.xnAxis_.element.classList.add(Jt("axisn")),this.axesElem_.appendChild(this.xnAxis_.element),this.ynAxis_=new Xt(t,[$t,le],this.projector_),this.ynAxis_.element.classList.add(Jt("axisn")),this.axesElem_.appendChild(this.ynAxis_.element),this.znAxis_=new Xt(t,[$t,ce],this.projector_),this.znAxis_.element.classList.add(Jt("axisn")),this.axesElem_.appendChild(this.znAxis_.element),this.xArcF_=new Xt(t,r,this.projector_),this.xArcF_.element.classList.add(Jt("arcx")),this.svgElem_.appendChild(this.xArcF_.element),this.yArcF_=new Xt(t,r,this.projector_),this.yArcF_.element.classList.add(Jt("arcy")),this.svgElem_.appendChild(this.yArcF_.element),this.zArcF_=new Xt(t,r,this.projector_),this.zArcF_.element.classList.add(Jt("arcz")),this.svgElem_.appendChild(this.zArcF_.element),this.xArcFC_=new Xt(t,r,this.projector_),this.xArcFC_.element.classList.add(Jt("arcc")),this.svgElem_.appendChild(this.xArcFC_.element),this.yArcFC_=new Xt(t,r,this.projector_),this.yArcFC_.element.classList.add(Jt("arcc")),this.svgElem_.appendChild(this.yArcFC_.element),this.zArcFC_=new Xt(t,r,this.projector_),this.zArcFC_.element.classList.add(Jt("arcc")),this.svgElem_.appendChild(this.zArcFC_.element),this.rArc_=new Xt(t,o,this.projector_),this.rArc_.element.classList.add(Jt("arcr")),this.rArc_.setRotation(ue),this.svgElem_.appendChild(this.rArc_.element),this.rArcC_=new Xt(t,o,this.projector_),this.rArcC_.element.classList.add(Jt("arcc")),this.rArcC_.setRotation(ue),this.svgElem_.appendChild(this.rArcC_.element);const s=t.createElementNS(I,"g");i.classList.add(Jt("labels")),this.svgElem_.appendChild(s),this.labelsElem_=s,this.xLabel=he(t,"labelcirclex","X"),this.labelsElem_.appendChild(this.xLabel),this.yLabel=he(t,"labelcircley","Y"),this.labelsElem_.appendChild(this.yLabel),this.zLabel=he(t,"labelcirclez","Z"),this.labelsElem_.appendChild(this.zLabel),this.xnLabel=he(t,"labelcirclen","-X"),this.labelsElem_.appendChild(this.xnLabel),this.ynLabel=he(t,"labelcirclen","-Y"),this.labelsElem_.appendChild(this.ynLabel),this.znLabel=he(t,"labelcirclen","-Z"),this.labelsElem_.appendChild(this.znLabel);const l=()=>{this.xArcB_.element.classList.add(Jt("arcx_hover")),this.xArcF_.element.classList.add(Jt("arcx_hover"))},c=()=>{this.xArcB_.element.classList.remove(Jt("arcx_hover")),this.xArcF_.element.classList.remove(Jt("arcx_hover"))};this.xArcBC_.element.addEventListener("mouseenter",l),this.xArcBC_.element.addEventListener("mouseleave",c),this.xArcFC_.element.addEventListener("mouseenter",l),this.xArcFC_.element.addEventListener("mouseleave",c);const u=()=>{this.yArcB_.element.classList.add(Jt("arcy_hover")),this.yArcF_.element.classList.add(Jt("arcy_hover"))},h=()=>{this.yArcB_.element.classList.remove(Jt("arcy_hover")),this.yArcF_.element.classList.remove(Jt("arcy_hover"))};this.yArcBC_.element.addEventListener("mouseenter",u),this.yArcBC_.element.addEventListener("mouseleave",h),this.yArcFC_.element.addEventListener("mouseenter",u),this.yArcFC_.element.addEventListener("mouseleave",h);const d=()=>{this.zArcB_.element.classList.add(Jt("arcz_hover")),this.zArcF_.element.classList.add(Jt("arcz_hover"))},p=()=>{this.zArcB_.element.classList.remove(Jt("arcz_hover")),this.zArcF_.element.classList.remove(Jt("arcz_hover"))};this.zArcBC_.element.addEventListener("mouseenter",d),this.zArcBC_.element.addEventListener("mouseleave",p),this.zArcFC_.element.addEventListener("mouseenter",d),this.zArcFC_.element.addEventListener("mouseleave",p);const f=()=>{this.rArc_.element.classList.add(Jt("arcr_hover"))},g=()=>{this.rArc_.element.classList.remove(Jt("arcr_hover"))};this.rArcC_.element.addEventListener("mouseenter",f),this.rArcC_.element.addEventListener("mouseleave",g),e.value.emitter.on("change",this.onValueChange_),this.value=e.value,e.mode.emitter.on("change",this.onModeChange_),this.mode_=e.mode,this.update_()}get xArcBElement(){return this.xArcBC_.element}get yArcBElement(){return this.yArcBC_.element}get zArcBElement(){return this.zArcBC_.element}get xArcFElement(){return this.xArcFC_.element}get yArcFElement(){return this.yArcFC_.element}get zArcFElement(){return this.zArcFC_.element}get rArcElement(){return this.rArcC_.element}get allFocusableElements(){return[this.padElement]}update_(){const t=this.value.rawValue.quat.normalized;this.xAxis_.setRotation(t),this.yAxis_.setRotation(t),this.zAxis_.setRotation(t),this.xnAxis_.setRotation(t),this.ynAxis_.setRotation(t),this.znAxis_.setRotation(t);const e=te.applyQuaternion(t),n=ee.applyQuaternion(t),i=ne.applyQuaternion(t),r=e.negated,o=n.negated,a=i.negated;[{el:this.xAxis_.element,v:e},{el:this.yAxis_.element,v:n},{el:this.zAxis_.element,v:i},{el:this.xnAxis_.element,v:r},{el:this.ynAxis_.element,v:o},{el:this.znAxis_.element,v:a}].map(({el:t,v:e})=>{return this.axesElem_.removeChild(t),{el:t,v:e}}).sort((t,e)=>t.v.z-e.v.z).forEach(({el:t})=>{this.axesElem_.appendChild(t)}),this.xArcB_.setRotation(Kt(e,ie)),this.yArcB_.setRotation(Kt(n,ie)),this.zArcB_.setRotation(Kt(i,ie)),this.xArcBC_.setRotation(Kt(e,ie)),this.yArcBC_.setRotation(Kt(n,ie)),this.zArcBC_.setRotation(Kt(i,ie)),this.xArcF_.setRotation(Kt(e,ne)),this.yArcF_.setRotation(Kt(n,ne)),this.zArcF_.setRotation(Kt(i,ne)),this.xArcFC_.setRotation(Kt(e,ne)),this.yArcFC_.setRotation(Kt(n,ne)),this.zArcFC_.setRotation(Kt(i,ne)),[{el:this.xLabel,v:re},{el:this.yLabel,v:oe},{el:this.zLabel,v:ae},{el:this.xnLabel,v:se},{el:this.ynLabel,v:le},{el:this.znLabel,v:ce}].forEach(({el:e,v:n})=>{const[i,r]=this.projector_.project(n.applyQuaternion(t));e.setAttributeNS(null,"transform",`translate( ${i}, ${r} )`)}),[{el:this.xLabel,v:e},{el:this.yLabel,v:n},{el:this.zLabel,v:i},{el:this.xnLabel,v:r},{el:this.ynLabel,v:o},{el:this.znLabel,v:a}].map(({el:t,v:e})=>{return this.labelsElem_.removeChild(t),{el:t,v:e}}).sort((t,e)=>t.v.z-e.v.z).forEach(({el:t})=>{this.labelsElem_.appendChild(t)})}onValueChange_(){this.update_()}onFoldableChange_(){this.update_()}onModeChange_(){const t=this.mode_.rawValue,e="angle-x"===t?"add":"remove",n="angle-y"===t?"add":"remove",i="angle-z"===t?"add":"remove",r="angle-r"===t?"add":"remove";this.xArcB_.element.classList[e](Jt("arcx_active")),this.yArcB_.element.classList[n](Jt("arcy_active")),this.zArcB_.element.classList[i](Jt("arcz_active")),this.xArcF_.element.classList[e](Jt("arcx_active")),this.yArcF_.element.classList[n](Jt("arcy_active")),this.zArcF_.element.classList[i](Jt("arcz_active")),this.rArc_.element.classList[r](Jt("arcr_active"))}}function pe(t){return Vt(t,0,1)}function fe(t){if(t<=0)return 0;if(t>=1)return 1;const e=1-t,n=e*(e*(e*(e*(e*(e*(-6*e+7))))));return pe(1-n)}function ge(t,e,n){return pe((n-t)/(e-t))}const me=1/Math.sqrt(2),ve=new qt(1,0,0),ye=new qt(0,1,0),be=new qt(0,0,1),xe=new Zt(0,0,0,1),we=new Zt(me,0,0,me),_e=new Zt(0,-me,0,me),Ce=new Zt(-me,0,0,me),Ae=new Zt(0,me,0,me),Ie=new Zt(0,1,0,0);class Se{constructor(t,e){this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.mode_=m("free"),this.view=new de(t,{value:this.value,mode:this.mode_,viewProps:this.viewProps,pickerLayout:e.pickerLayout}),this.ptHandler_=new kt(this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_);const n=new kt(this.view.xArcBElement);n.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-x")),n.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const i=new kt(this.view.xArcFElement);i.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-x")),i.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const r=new kt(this.view.yArcBElement);r.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-y")),r.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const o=new kt(this.view.yArcFElement);o.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-y")),o.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const a=new kt(this.view.zArcBElement);a.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-z")),a.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const s=new kt(this.view.zArcFElement);s.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-z")),s.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const l=new kt(this.view.rArcElement);l.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-r")),l.emitter.on("up",()=>this.changeModeIfNotAuto_("free")),[{el:this.view.xLabel,q:_e},{el:this.view.yLabel,q:we},{el:this.view.zLabel,q:xe},{el:this.view.xnLabel,q:Ae},{el:this.view.ynLabel,q:Ce},{el:this.view.znLabel,q:Ie}].forEach(({el:t,q:e})=>{const n=new kt(t);n.emitter.on("down",()=>this.autoRotate_(e))}),this.px_=null,this.py_=null,this.angleState_=null}handlePointerEvent_(t){if(!t.point)return;const e=this.mode_.rawValue,n=t.point.x,i=t.point.y;if("auto"===e);else if("free"===e){if(null!=this.px_&&null!=this.py_){const t=n-this.px_,e=i-this.py_,r=Math.sqrt(t*t+e*e);if(0===r)return;const o=new qt(e/r,t/r,0),a=Zt.fromAxisAngle(o,r/68);this.value.rawValue=this.value.rawValue.premultiply(a)}this.px_=n,this.py_=i}else if("angle-r"===e){const e=t.bounds.width/2,r=t.bounds.height/2,o=Math.atan2(i-r,n-e);if(null==this.angleState_){const t=new qt(0,0,1);this.angleState_={initialRotation:this.value.rawValue,initialAngle:o,axis:t,reverseAngle:!0}}else{const{initialRotation:t,initialAngle:e,axis:n}=this.angleState_,i=-Wt(o-e),r=Zt.fromAxisAngle(n,i);this.value.rawValue=t.premultiply(r)}}else{const r=t.bounds.width/2,o=t.bounds.height/2,a=Math.atan2(i-o,n-r);if(null==this.angleState_){const t="angle-x"===e?ve:"angle-y"===e?ye:be,n=t.applyQuaternion(this.value.rawValue.quat).z>0;this.angleState_={initialRotation:this.value.rawValue,initialAngle:a,axis:t,reverseAngle:n}}else{const{initialRotation:t,initialAngle:e,axis:n,reverseAngle:i}=this.angleState_;let r=Wt(a-e);r=i?-r:r;const o=Zt.fromAxisAngle(n,r);this.value.rawValue=t.multiply(o)}}}onPointerDown_(t){this.handlePointerEvent_(t.data)}onPointerMove_(t){this.handlePointerEvent_(t.data)}onPointerUp_(){this.px_=null,this.py_=null,this.angleState_=null}onPadKeyDown_(t){St(t.key)&&t.preventDefault();const e=_t(1,At(t)),n=_t(1,Ct(t));if(0!==e||0!==n){const t=new qt(-n,e,0),i=Zt.fromAxisAngle(t,Math.PI/16);this.value.rawValue=this.value.rawValue.premultiply(i)}}changeModeIfNotAuto_(t){"auto"!==this.mode_.rawValue&&(this.mode_.rawValue=t)}autoRotate_(t){this.mode_.rawValue="auto";const e=this.value.rawValue,n=Date.now(),i=()=>{const r=Date.now(),o=fe(ge(0,300,r-n));this.value.rawValue=e.slerp(t,o),1!==o?requestAnimationFrame(i):this.mode_.rawValue="free"};requestAnimationFrame(i)}}const Me=s("rotationswatch"),ke=new qt(1,0,0),Ee=new qt(0,1,0),Te=new qt(0,0,1),Oe=new Zt(0,0,0,1);class Pe{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),e.value.emitter.on("change",this.onValueChange_),this.value=e.value,this.element=t.createElement("div"),this.element.classList.add(Me()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("button");n.classList.add(Me("b")),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;const i=t.createElementNS(I,"svg");i.classList.add(Me("g")),n.appendChild(i),this.svgElem_=i,this.projector_=new Yt,this.projector_.viewport=[0,0,20,20];const r=Qt(0,Math.PI,33,"x","y"),o=Qt(0,2*Math.PI,65,"x","y");this.rArc_=new Xt(t,o,this.projector_),this.rArc_.element.classList.add(Me("arcr")),i.appendChild(this.rArc_.element),this.rArc_.setRotation(Oe),this.xArc_=new Xt(t,r,this.projector_),this.xArc_.element.classList.add(Me("arc")),i.appendChild(this.xArc_.element),this.yArc_=new Xt(t,r,this.projector_),this.yArc_.element.classList.add(Me("arc")),i.appendChild(this.yArc_.element),this.zArc_=new Xt(t,r,this.projector_),this.zArc_.element.classList.add(Me("arc")),i.appendChild(this.zArc_.element),this.update_()}update_(){const t=this.value.rawValue.quat.normalized,e=ke.applyQuaternion(t),n=Ee.applyQuaternion(t),i=Te.applyQuaternion(t);this.xArc_.setRotation(Kt(e,Te)),this.yArc_.setRotation(Kt(n,Te)),this.zArc_.setRotation(Kt(i,Te))}onValueChange_(){this.update_()}}class je{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new Pe(t,{value:this.value,viewProps:this.viewProps})}}const Le=s("rotation");class De{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Le()),e.foldable.bindExpandedClass(this.element,Le(void 0,"expanded")),h(e.foldable,"completed",p(this.element,Le(void 0,"cpl"))),"quaternion"===e.rotationMode&&this.element.classList.add(Le("quat"));const n=t.createElement("div");n.classList.add(Le("h")),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(Le("s")),n.appendChild(i),this.swatchElement=i;const r=t.createElement("div");if(r.classList.add(Le("t")),n.appendChild(r),this.textElement=r,"inline"===e.pickerLayout){const e=t.createElement("div");e.classList.add(Le("g")),this.element.appendChild(e),this.pickerElement=e}else this.pickerElement=null}}class Re{constructor(t,e){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.foldable_=T.create(e.expanded),this.swatchC_=new je(t,{value:this.value,viewProps:this.viewProps});const n=this.swatchC_.view.buttonElement;n.addEventListener("blur",this.onButtonBlur_),n.addEventListener("click",this.onButtonClick_),this.textC_=new Ft(t,{assembly:e.assembly,axes:e.axes,parser:e.parser,value:this.value,viewProps:this.viewProps}),this.view=new De(t,{rotationMode:e.rotationMode,foldable:this.foldable_,pickerLayout:e.pickerLayout}),this.view.swatchElement.appendChild(this.swatchC_.view.element),this.view.textElement.appendChild(this.textC_.view.element),this.popC_="popup"===e.pickerLayout?new F(t,{viewProps:this.viewProps}):null;const i=new Se(t,{value:this.value,viewProps:this.viewProps,pickerLayout:e.pickerLayout});i.view.allFocusableElements.forEach(t=>{t.addEventListener("blur",this.onPopupChildBlur_),t.addEventListener("keydown",this.onPopupChildKeydown_)}),this.gizmoC_=i,this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(i.view.element),wt({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:t=>t.rawValue,backward:(t,e)=>e.rawValue})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.gizmoC_.view.element),j(this.foldable_,this.view.pickerElement))}onButtonBlur_(t){if(!this.popC_)return;const n=this.view.element,i=e(t.relatedTarget);i&&n.contains(i)||(this.popC_.shows.rawValue=!1)}onButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.gizmoC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(t){if(!this.popC_)return;const e=this.popC_.view.element,n=E(t);n&&e.contains(n)||n&&n===this.swatchC_.view.buttonElement&&!k(e.ownerDocument)||(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(t){this.popC_?"Escape"===t.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===t.key&&this.swatchC_.view.buttonElement.focus()}}function Be(t,e){const n=Math.pow(.1,t);return{baseStep:n,constraint:e,textProps:v.fromObject({draggingScale:n,formatter:xt(t)})}}function Ne(t){if(!t)return;const e=[];return n(t.step)||e.push(new R(t.step)),n(t.max)&&n(t.min)||e.push(new D({max:t.max,min:t.min})),new L(e)}function Fe(t,e){return{toComponents:t=>t.getComponents(),fromComponents:n=>new Ut(n[0],n[1],n[2],t,e)}}function ze(t,e,n){var i,r,o;return"number"===typeof(null===(i=t)||void 0===i?void 0:i.x)&&"number"===typeof(null===(r=t)||void 0===r?void 0:r.y)&&"number"===typeof(null===(o=t)||void 0===o?void 0:o.z)?new Ut(t.x,t.y,t.z,e,n):new Ut(0,0,0,e,n)}function Ve(t){switch(t){case"XYZ":case"XZY":case"YXZ":case"YZX":case"ZXY":case"ZYX":return t;default:return}}function Ge(t){switch(t){case"rad":case"deg":case"turn":return t;default:return}}const He={id:"rotation",type:"input",css:".tp-rotationswatchv_b,.tp-rotationgizmov_p{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-rotationswatchv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-rotationswatchv_b:hover{background-color:var(--btn-bg-h)}.tp-rotationswatchv_b:focus{background-color:var(--btn-bg-f)}.tp-rotationswatchv_b:active{background-color:var(--btn-bg-a)}.tp-rotationswatchv_b:disabled{opacity:0.5}.tp-rotationgizmov_p{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-rotationgizmov_p:hover{background-color:var(--in-bg-h)}.tp-rotationgizmov_p:focus{background-color:var(--in-bg-f)}.tp-rotationgizmov_p:active{background-color:var(--in-bg-a)}.tp-rotationgizmov_p:disabled{opacity:0.5}.tp-rotationv{position:relative}.tp-rotationv_quat .tp-txtv_i{padding-left:0}.tp-rotationv_root{background-color:var(--mo-bg);width:100%;height:calc( 2.0 * var(--bld-us))}.tp-rotationv_h{display:flex}.tp-rotationv_s{flex-grow:0;flex-shrink:0;width:var(--bld-us);margin-right:4px}.tp-rotationv_g{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-rotationv.tp-rotationv-expanded .tp-rotationv_g{margin-top:var(--bld-s);opacity:1}.tp-rotationv .tp-popv{left:calc(-1 * var(--cnt-h-p));right:calc(-1 * var(--cnt-h-p));top:var(--bld-us)}.tp-rotationswatchv path{stroke-linecap:round;stroke-linejoin:round}.tp-rotationswatchv_b{height:var(--bld-us);margin-right:4px;position:relative;width:var(--bld-us)}.tp-rotationswatchv_arc{fill:none;stroke:var(--btn-bg);stroke-width:1px}.tp-rotationswatchv_arcr{fill:var(--btn-fg);stroke:var(--btn-bg);stroke-width:1px}.tp-rotationgizmov{padding-left:calc(var(--bld-us) + 4px)}.tp-rotationgizmov path{stroke-linecap:round;stroke-linejoin:round}.tp-rotationgizmov_p{cursor:move;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-rotationgizmov_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-rotationgizmov_axisx{stroke:#eb103f;stroke-width:2px}.tp-rotationgizmov_axisy{stroke:#4eeb10;stroke-width:2px}.tp-rotationgizmov_axisz{stroke:#1068eb;stroke-width:2px}.tp-rotationgizmov_axisn{stroke:var(--in-fg);stroke-width:2px}.tp-rotationgizmov_arcx{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcx.tp-rotationgizmov_arcx_hover{stroke:#eb103f}.tp-rotationgizmov_arcx.tp-rotationgizmov_arcx_active{stroke:#eb103f;stroke-width:2px}.tp-rotationgizmov_arcy{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcy.tp-rotationgizmov_arcy_hover{stroke:#4eeb10}.tp-rotationgizmov_arcy.tp-rotationgizmov_arcy_active{stroke:#4eeb10;stroke-width:2px}.tp-rotationgizmov_arcz{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcz.tp-rotationgizmov_arcz_hover{stroke:#1068eb}.tp-rotationgizmov_arcz.tp-rotationgizmov_arcz_active{stroke:#1068eb;stroke-width:2px}.tp-rotationgizmov_arcr{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcr.tp-rotationgizmov_arcr_hover{stroke:#ebd510}.tp-rotationgizmov_arcr.tp-rotationgizmov_arcr_active{stroke:#ebd510;stroke-width:2px}.tp-rotationgizmov_arcc{fill:none;stroke:transparent;stroke-width:5px;pointer-events:auto}.tp-rotationgizmov_labelcirclex{fill:#eb103f;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclex:hover{opacity:0.7}.tp-rotationgizmov_labelcircley{fill:#4eeb10;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcircley:hover{opacity:0.7}.tp-rotationgizmov_labelcirclez{fill:#1068eb;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclez:hover{opacity:0.7}.tp-rotationgizmov_labelcirclen{fill:var(--in-fg);cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclen:hover{opacity:0.7}.tp-rotationgizmov_labeltext{fill:var(--btn-fg);stroke:var(--btn-fg);stroke-width:1px}.tp-rotationgizmov_p:focus .tp-rotationgizmov_m{background-color:var(--in-fg);border-width:0}",accept(t,e){var n,i;const r=C,o=A(e,{view:r.required.constant("rotation"),label:r.optional.string,picker:r.optional.custom(jt),expanded:r.optional.boolean,rotationMode:r.required.constant("euler"),x:r.optional.custom(Lt),y:r.optional.custom(Lt),z:r.optional.custom(Lt),order:r.optional.custom(Ve),unit:r.optional.custom(Ge)});return o?{initialValue:ze(t,null!==(n=o.order)&&void 0!==n?n:"XYZ",null!==(i=o.unit)&&void 0!==i?i:"rad"),params:o}:null},binding:{reader({params:t}){return e=>{var n,i;return ze(e,null!==(n=t.order)&&void 0!==n?n:"XYZ",null!==(i=t.unit)&&void 0!==i?i:"rad")}},constraint({params:t}){var e,n;return new Dt({assembly:Fe(null!==(e=t.order)&&void 0!==e?e:"XYZ",null!==(n=t.unit)&&void 0!==n?n:"rad"),components:[Ne("x"in t?t.x:void 0),Ne("y"in t?t.y:void 0),Ne("z"in t?t.z:void 0)]})},writer(t){return(t,e)=>{t.writeProperty("x",e.x),t.writeProperty("y",e.y),t.writeProperty("z",e.z)}}},controller({document:t,value:e,constraint:n,params:i,viewProps:o}){var a,s;if(!(n instanceof Dt))throw r.shouldNeverHappen();const l="expanded"in i?i.expanded:void 0,c="picker"in i?i.picker:void 0,u=null!==(a=i.unit)&&void 0!==a?a:"rad",h={rad:2,deg:0,turn:2}[u];return new Re(t,{axes:[Be(h,n.components[0]),Be(h,n.components[1]),Be(h,n.components[2])],assembly:Fe(null!==(s=i.order)&&void 0!==s?s:"XYZ",u),rotationMode:"euler",expanded:null!==l&&void 0!==l&&l,parser:bt,pickerLayout:null!==c&&void 0!==c?c:"popup",value:e,viewProps:o})}},We={toComponents:t=>[t.x,t.y,t.z,t.w],fromComponents:t=>new Zt(t[0],t[1],t[2],t[3])};function Ue(t){return{baseStep:.01,constraint:t,textProps:v.fromObject({draggingScale:.01,formatter:t=>{return Math.abs(t)<.995?t.toFixed(2).replace("0.","."):t.toFixed(1)}})}}function Ze(t){var e,n,i,r;return"number"===typeof(null===(e=t)||void 0===e?void 0:e.x)&&"number"===typeof(null===(n=t)||void 0===n?void 0:n.y)&&"number"===typeof(null===(i=t)||void 0===i?void 0:i.z)&&"number"===typeof(null===(r=t)||void 0===r?void 0:r.w)?new Zt(t.x,t.y,t.z,t.w):new Zt(0,0,0,1)}const Ye={id:"rotation",type:"input",css:".tp-rotationswatchv_b,.tp-rotationgizmov_p{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-rotationswatchv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-rotationswatchv_b:hover{background-color:var(--btn-bg-h)}.tp-rotationswatchv_b:focus{background-color:var(--btn-bg-f)}.tp-rotationswatchv_b:active{background-color:var(--btn-bg-a)}.tp-rotationswatchv_b:disabled{opacity:0.5}.tp-rotationgizmov_p{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-rotationgizmov_p:hover{background-color:var(--in-bg-h)}.tp-rotationgizmov_p:focus{background-color:var(--in-bg-f)}.tp-rotationgizmov_p:active{background-color:var(--in-bg-a)}.tp-rotationgizmov_p:disabled{opacity:0.5}.tp-rotationv{position:relative}.tp-rotationv_quat .tp-txtv_i{padding-left:0}.tp-rotationv_root{background-color:var(--mo-bg);width:100%;height:calc( 2.0 * var(--bld-us))}.tp-rotationv_h{display:flex}.tp-rotationv_s{flex-grow:0;flex-shrink:0;width:var(--bld-us);margin-right:4px}.tp-rotationv_g{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-rotationv.tp-rotationv-expanded .tp-rotationv_g{margin-top:var(--bld-s);opacity:1}.tp-rotationv .tp-popv{left:calc(-1 * var(--cnt-h-p));right:calc(-1 * var(--cnt-h-p));top:var(--bld-us)}.tp-rotationswatchv path{stroke-linecap:round;stroke-linejoin:round}.tp-rotationswatchv_b{height:var(--bld-us);margin-right:4px;position:relative;width:var(--bld-us)}.tp-rotationswatchv_arc{fill:none;stroke:var(--btn-bg);stroke-width:1px}.tp-rotationswatchv_arcr{fill:var(--btn-fg);stroke:var(--btn-bg);stroke-width:1px}.tp-rotationgizmov{padding-left:calc(var(--bld-us) + 4px)}.tp-rotationgizmov path{stroke-linecap:round;stroke-linejoin:round}.tp-rotationgizmov_p{cursor:move;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-rotationgizmov_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-rotationgizmov_axisx{stroke:#eb103f;stroke-width:2px}.tp-rotationgizmov_axisy{stroke:#4eeb10;stroke-width:2px}.tp-rotationgizmov_axisz{stroke:#1068eb;stroke-width:2px}.tp-rotationgizmov_axisn{stroke:var(--in-fg);stroke-width:2px}.tp-rotationgizmov_arcx{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcx.tp-rotationgizmov_arcx_hover{stroke:#eb103f}.tp-rotationgizmov_arcx.tp-rotationgizmov_arcx_active{stroke:#eb103f;stroke-width:2px}.tp-rotationgizmov_arcy{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcy.tp-rotationgizmov_arcy_hover{stroke:#4eeb10}.tp-rotationgizmov_arcy.tp-rotationgizmov_arcy_active{stroke:#4eeb10;stroke-width:2px}.tp-rotationgizmov_arcz{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcz.tp-rotationgizmov_arcz_hover{stroke:#1068eb}.tp-rotationgizmov_arcz.tp-rotationgizmov_arcz_active{stroke:#1068eb;stroke-width:2px}.tp-rotationgizmov_arcr{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcr.tp-rotationgizmov_arcr_hover{stroke:#ebd510}.tp-rotationgizmov_arcr.tp-rotationgizmov_arcr_active{stroke:#ebd510;stroke-width:2px}.tp-rotationgizmov_arcc{fill:none;stroke:transparent;stroke-width:5px;pointer-events:auto}.tp-rotationgizmov_labelcirclex{fill:#eb103f;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclex:hover{opacity:0.7}.tp-rotationgizmov_labelcircley{fill:#4eeb10;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcircley:hover{opacity:0.7}.tp-rotationgizmov_labelcirclez{fill:#1068eb;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclez:hover{opacity:0.7}.tp-rotationgizmov_labelcirclen{fill:var(--in-fg);cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclen:hover{opacity:0.7}.tp-rotationgizmov_labeltext{fill:var(--btn-fg);stroke:var(--btn-fg);stroke-width:1px}.tp-rotationgizmov_p:focus .tp-rotationgizmov_m{background-color:var(--in-fg);border-width:0}",accept(t,e){const n=C,i=A(e,{view:n.required.constant("rotation"),label:n.optional.string,picker:n.optional.custom(jt),expanded:n.optional.boolean,rotationMode:n.optional.constant("quaternion"),x:n.optional.custom(Lt),y:n.optional.custom(Lt),z:n.optional.custom(Lt),w:n.optional.custom(Lt)});return i?{initialValue:Ze(t),params:i}:null},binding:{reader(t){return t=>{return Ze(t)}},constraint({params:t}){return new Dt({assembly:We,components:[Ne("x"in t?t.x:void 0),Ne("y"in t?t.y:void 0),Ne("z"in t?t.z:void 0),Ne("w"in t?t.w:void 0)]})},writer(t){return(t,e)=>{t.writeProperty("x",e.x),t.writeProperty("y",e.y),t.writeProperty("z",e.z),t.writeProperty("w",e.w)}}},controller({document:t,value:e,constraint:n,params:i,viewProps:o}){if(!(n instanceof Dt))throw r.shouldNeverHappen();const a="expanded"in i?i.expanded:void 0,s="picker"in i?i.picker:void 0;return new Re(t,{axes:[Ue(n.components[0]),Ue(n.components[1]),Ue(n.components[2]),Ue(n.components[3])],assembly:We,rotationMode:"quaternion",expanded:null!==a&&void 0!==a&&a,parser:bt,pickerLayout:null!==s&&void 0!==s?s:"popup",value:e,viewProps:o})}},Xe=[He,Ye];t.RotationInputPluginEuler=He,t.RotationInputPluginQuaternion=Ye,t.plugins=Xe,Object.defineProperty(t,"__esModule",{value:!0})}))},e1bd:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));let i=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((t,e)=>{return e&=63,t+=e<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_",t},"")},e1d8:function(t,e,n){(function(e,i){var r=Math.pow,o=(t,e,n)=>new Promise((i,r)=>{var o=t=>{try{s(n.next(t))}catch(e){r(e)}},a=t=>{try{s(n.throw(t))}catch(e){r(e)}},s=t=>t.done?i(t.value):Promise.resolve(t.value).then(o,a);s((n=n.apply(t,e)).next())});(function(){var a={8110:function(t,e){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t){return null==t}const n={alreadydisposed:()=>"View has been already disposed",invalidparams:t=>`Invalid parameters for '${t.name}'`,nomatchingcontroller:t=>`No matching controller for '${t.key}'`,nomatchingview:t=>`No matching view for '${JSON.stringify(t.params)}'`,notbindable:()=>"Value is not bindable",propertynotfound:t=>`Property '${t.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class i{constructor(t){var e;this.message=null!==(e=n[t.type](t.context))&&void 0!==e?e:"Unexpected error",this.name=this.constructor.name,this.stack=new Error(this.message).stack,this.type=t.type}static alreadyDisposed(){return new i({type:"alreadydisposed"})}static notBindable(){return new i({type:"notbindable"})}static propertyNotFound(t){return new i({type:"propertynotfound",context:{name:t}})}static shouldNeverHappen(){return new i({type:"shouldneverhappen"})}}class r{constructor(){this.observers_={}}on(t,e){let n=this.observers_[t];return n||(n=this.observers_[t]=[]),n.push({handler:e}),this}off(t,e){const n=this.observers_[t];return n&&(this.observers_[t]=n.filter(t=>t.handler!==e)),this}emit(t,e){const n=this.observers_[t];!n||n.forEach(t=>{t.handler(e)})}}const o="tp";function a(t){return(e,n)=>[o,"-",t,"v",e?`_${e}`:"",n?`-${n}`:""].join("")}function s(t,e){return n=>e(t(n))}function l(t){return t.rawValue}function c(t,e){t.emitter.on("change",s(l,e)),e(t.rawValue)}function u(t,e,n){c(t.value(e),n)}function h(t,e,n){n?t.classList.add(e):t.classList.remove(e)}function d(t,e){return n=>{h(t,e,n)}}class p{constructor(t,e){var n;this.constraint_=null==e?void 0:e.constraint,this.equals_=null!==(n=null==e?void 0:e.equals)&&void 0!==n?n:(t,e)=>t===e,this.emitter=new r,this.rawValue_=t}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!=e?e:{forceEmit:!1,last:!0},i=this.constraint_?this.constraint_.constrain(t):t;this.equals_(this.rawValue_,i)&&!n.forceEmit||(this.emitter.emit("beforechange",{sender:this}),this.rawValue_=i,this.emitter.emit("change",{options:n,rawValue:i,sender:this}))}}class f{constructor(t){this.emitter=new r,this.value_=t}get rawValue(){return this.value_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!=e?e:{forceEmit:!1,last:!0};this.value_===t&&!n.forceEmit||(this.emitter.emit("beforechange",{sender:this}),this.value_=t,this.emitter.emit("change",{options:n,rawValue:this.value_,sender:this}))}}function g(t,e){const n=null==e?void 0:e.constraint,i=null==e?void 0:e.equals;return n||i?new p(t,e):new f(t)}class m{constructor(t){this.emitter=new r,this.valMap_=t;for(const e in this.valMap_)this.valMap_[e].emitter.on("change",()=>{this.emitter.emit("change",{key:e,sender:this})})}static createCore(t){return Object.keys(t).reduce((e,n)=>Object.assign(e,{[n]:g(t[n])}),{})}static fromObject(t){const e=this.createCore(t);return new m(e)}get(t){return this.valMap_[t].rawValue}set(t,e){this.valMap_[t].rawValue=e}value(t){return this.valMap_[t]}}function v(t,e){const n=Object.keys(e).reduce((n,i)=>{if(void 0===n)return;const r=e[i],o=r(t[i]);return o.succeeded?Object.assign(Object.assign({},n),{[i]:o.value}):void 0},{});return n}function y(t,e){return t.reduce((t,n)=>{if(void 0===t)return;const i=e(n);return i.succeeded&&void 0!==i.value?[...t,i.value]:void 0},[])}function b(t){return null!==t&&"object"==typeof t}function x(t){return e=>n=>{if(!e&&void 0===n)return{succeeded:!1,value:void 0};if(e&&void 0===n)return{succeeded:!0,value:void 0};const i=t(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function w(t){return{custom:e=>x(e)(t),boolean:x(t=>"boolean"==typeof t?t:void 0)(t),number:x(t=>"number"==typeof t?t:void 0)(t),string:x(t=>"string"==typeof t?t:void 0)(t),function:x(t=>"function"==typeof t?t:void 0)(t),constant:e=>x(t=>t===e?e:void 0)(t),raw:x(t=>t)(t),object:e=>x(t=>{if(b(t))return v(t,e)})(t),array:e=>x(t=>{if(Array.isArray(t))return y(t,e)})(t)}}const _={optional:w(!0),required:w(!1)};function C(t,e){const n=_.required.object(e)(t);return n.succeeded?n.value:void 0}const A="http://www.w3.org/2000/svg";function I(t){t.offsetHeight}function S(t,e){const n=t.style.transition;t.style.transition="none",e(),t.style.transition=n}function M(t){return void 0!==t.ontouchstart}function k(t){return t.relatedTarget?t.relatedTarget:"explicitOriginalTarget"in t?t.explicitOriginalTarget:null}class E extends m{constructor(t){super(t)}static create(t){const e={completed:!0,expanded:t,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null},n=m.createCore(e);return new E(n)}get styleExpanded(){var t;return null!==(t=this.get("temporaryExpanded"))&&void 0!==t?t:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";const t=this.get("expandedHeight");return this.get("shouldFixHeight")&&!e(t)?`${t}px`:"auto"}bindExpandedClass(t,e){u(this,"expanded",()=>{this.styleExpanded?t.classList.add(e):t.classList.remove(e)})}}function T(t,e){let n=0;return S(e,()=>{t.set("expandedHeight",null),t.set("temporaryExpanded",!0),I(e),n=e.clientHeight,t.set("temporaryExpanded",null),I(e)}),n}function O(t,e){e.style.height=t.styleHeight}function P(t,n){t.value("expanded").emitter.on("beforechange",()=>{t.set("completed",!1),e(t.get("expandedHeight"))&&t.set("expandedHeight",T(t,n)),t.set("shouldFixHeight",!0),I(n)}),t.emitter.on("change",()=>{O(t,n)}),O(t,n),n.addEventListener("transitionend",e=>{"height"===e.propertyName&&(t.set("shouldFixHeight",!1),t.set("expandedHeight",null),t.set("completed",!0))})}class j{constructor(t){this.constraints=t}constrain(t){return this.constraints.reduce((t,e)=>e.constrain(t),t)}}class L{constructor(t){this.maxValue=t.max,this.minValue=t.min}constrain(t){let n=t;return e(this.minValue)||(n=Math.max(n,this.minValue)),e(this.maxValue)||(n=Math.min(n,this.maxValue)),n}}class D{constructor(t){this.step=t}constrain(t){return(t<0?-Math.round(-t/this.step):Math.round(t/this.step))*this.step}}const R=a("pop");class B{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(R()),e.viewProps.bindClassModifiers(this.element),c(e.shows,d(this.element,R(void 0,"v")))}}class N{constructor(t,e){this.shows=g(!1),this.viewProps=e.viewProps,this.view=new B(t,{shows:this.shows,viewProps:this.viewProps})}}class F{constructor(t){this.text=t}evaluate(){return Number(this.text)}toString(){return this.text}}const z={"**":(t,e)=>Math.pow(t,e),"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"&":(t,e)=>t&e,"^":(t,e)=>t^e,"|":(t,e)=>t|e};class V{constructor(t,e,n){this.left=e,this.operator=t,this.right=n}evaluate(){const t=z[this.operator];if(!t)throw new Error(`unexpected binary operator: '${this.operator}`);return t(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}const G={"+":t=>t,"-":t=>-t,"~":t=>~t};class H{constructor(t,e){this.operator=t,this.expression=e}evaluate(){const t=G[this.operator];if(!t)throw new Error(`unexpected unary operator: '${this.operator}`);return t(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function W(t){return(e,n)=>{for(let i=0;i<t.length;i++){const r=t[i](e,n);if(""!==r)return r}return""}}function U(t,e){var n;const i=t.substr(e).match(/^\s+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Z(t,e){const n=t.substr(e,1);return n.match(/^[1-9]$/)?n:""}function Y(t,e){var n;const i=t.substr(e).match(/^[0-9]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function X(t,e){const n=Y(t,e);if(""!==n)return n;const i=t.substr(e,1);if(e+=1,"-"!==i&&"+"!==i)return"";const r=Y(t,e);return""===r?"":i+r}function q(t,e){const n=t.substr(e,1);if(e+=1,"e"!==n.toLowerCase())return"";const i=X(t,e);return""===i?"":n+i}function K(t,e){const n=t.substr(e,1);if("0"===n)return n;const i=Z(t,e);return e+=i.length,""===i?"":i+Y(t,e)}function Q(t,e){const n=K(t,e);if(e+=n.length,""===n)return"";const i=t.substr(e,1);if(e+=i.length,"."!==i)return"";const r=Y(t,e);return e+=r.length,n+i+r+q(t,e)}function J(t,e){const n=t.substr(e,1);if(e+=n.length,"."!==n)return"";const i=Y(t,e);return e+=i.length,""===i?"":n+i+q(t,e)}function $(t,e){const n=K(t,e);return e+=n.length,""===n?"":n+q(t,e)}const tt=W([Q,J,$]);function et(t,e){var n;const i=t.substr(e).match(/^[01]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function nt(t,e){const n=t.substr(e,2);if(e+=n.length,"0b"!==n.toLowerCase())return"";const i=et(t,e);return""===i?"":n+i}function it(t,e){var n;const i=t.substr(e).match(/^[0-7]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function rt(t,e){const n=t.substr(e,2);if(e+=n.length,"0o"!==n.toLowerCase())return"";const i=it(t,e);return""===i?"":n+i}function ot(t,e){var n;const i=t.substr(e).match(/^[0-9a-f]+/i);return null!==(n=i&&i[0])&&void 0!==n?n:""}function at(t,e){const n=t.substr(e,2);if(e+=n.length,"0x"!==n.toLowerCase())return"";const i=ot(t,e);return""===i?"":n+i}const st=W([nt,rt,at]),lt=W([st,tt]);function ct(t,e){const n=lt(t,e);return e+=n.length,""===n?null:{evaluable:new F(n),cursor:e}}function ut(t,e){const n=t.substr(e,1);if(e+=n.length,"("!==n)return null;const i=mt(t,e);if(!i)return null;e=i.cursor,e+=U(t,e).length;const r=t.substr(e,1);return e+=r.length,")"!==r?null:{evaluable:i.evaluable,cursor:e}}function ht(t,e){return ct(t,e)||ut(t,e)}function dt(t,e){const n=ht(t,e);if(n)return n;const i=t.substr(e,1);if(e+=i.length,"+"!==i&&"-"!==i&&"~"!==i)return null;const r=dt(t,e);return r?(e=r.cursor,{cursor:e,evaluable:new H(i,r.evaluable)}):null}function pt(t,e,n){n+=U(e,n).length;const i=t.filter(t=>e.startsWith(t,n))[0];return i?(n+=i.length,n+=U(e,n).length,{cursor:n,operator:i}):null}function ft(t,e){return(n,i)=>{const r=t(n,i);if(!r)return null;i=r.cursor;let o=r.evaluable;for(;;){const r=pt(e,n,i);if(!r)break;i=r.cursor;const a=t(n,i);if(!a)return null;i=a.cursor,o=new V(r.operator,o,a.evaluable)}return o?{cursor:i,evaluable:o}:null}}const gt=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((t,e)=>ft(t,e),dt);function mt(t,e){return e+=U(t,e).length,gt(t,e)}function vt(t){const e=mt(t,0);return e&&e.cursor+U(t,e.cursor).length===t.length?e.evaluable:null}function yt(t){var e;const n=vt(t);return null!==(e=null==n?void 0:n.evaluate())&&void 0!==e?e:null}function bt(t){return e=>e.toFixed(Math.max(Math.min(t,20),0))}function xt({primary:t,secondary:e,forward:n,backward:i}){let r=!1;function o(t){r||(r=!0,t(),r=!1)}t.emitter.on("change",i=>{o(()=>{e.setRawValue(n(t,e),i.options)})}),e.emitter.on("change",r=>{o(()=>{t.setRawValue(i(t,e),r.options)}),o(()=>{e.setRawValue(n(t,e),r.options)})}),o(()=>{e.setRawValue(n(t,e),{forceEmit:!1,last:!0})})}function wt(t,e){const n=t*(e.altKey?.1:1)*(e.shiftKey?10:1);return e.upKey?+n:e.downKey?-n:0}function _t(t){return{altKey:t.altKey,downKey:"ArrowDown"===t.key,shiftKey:t.shiftKey,upKey:"ArrowUp"===t.key}}function Ct(t){return{altKey:t.altKey,downKey:"ArrowLeft"===t.key,shiftKey:t.shiftKey,upKey:"ArrowRight"===t.key}}function At(t){return"ArrowUp"===t||"ArrowDown"===t}function It(t){return At(t)||"ArrowLeft"===t||"ArrowRight"===t}function St(t,e){const n=e.ownerDocument.defaultView,i=e.getBoundingClientRect();return{x:t.pageX-((n&&n.scrollX||0)+i.left),y:t.pageY-((n&&n.scrollY||0)+i.top)}}class Mt{constructor(t){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=t,this.emitter=new r,t.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),t.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),t.addEventListener("touchend",this.onTouchEnd_),t.addEventListener("mousedown",this.onMouseDown_)}computePosition_(t){const e=this.elem_.getBoundingClientRect();return{bounds:{width:e.width,height:e.height},point:t?{x:t.x,y:t.y}:null}}onMouseDown_(t){var e;t.preventDefault(),null===(e=t.currentTarget)||void 0===e||e.focus();const n=this.elem_.ownerDocument;n.addEventListener("mousemove",this.onDocumentMouseMove_),n.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(St(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseMove_(t){this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(St(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseUp_(t){const e=this.elem_.ownerDocument;e.removeEventListener("mousemove",this.onDocumentMouseMove_),e.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(St(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onTouchStart_(t){t.preventDefault();const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchMove_(t){const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchEnd_(t){var e;const n=null!==(e=t.targetTouches.item(0))&&void 0!==e?e:this.lastTouch_,i=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(n?{x:n.clientX-i.left,y:n.clientY-i.top}:void 0),sender:this,shiftKey:t.shiftKey})}}function kt(t,e,n){return Math.min(Math.max(t,e),n)}const Et=a("txt");class Tt{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.props_=e.props,this.props_.emitter.on("change",this.onChange_),this.element=t.createElement("div"),this.element.classList.add(Et(),Et(void 0,"num")),e.arrayPosition&&this.element.classList.add(Et(void 0,e.arrayPosition)),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("input");n.classList.add(Et("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=e.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(Et()),this.inputElement.classList.add(Et("i"));const i=t.createElement("div");i.classList.add(Et("k")),this.element.appendChild(i),this.knobElement=i;const r=t.createElementNS(A,"svg");r.classList.add(Et("g")),this.knobElement.appendChild(r);const o=t.createElementNS(A,"path");o.classList.add(Et("gb")),r.appendChild(o),this.guideBodyElem_=o;const s=t.createElementNS(A,"path");s.classList.add(Et("gh")),r.appendChild(s),this.guideHeadElem_=s;const l=t.createElement("div");l.classList.add(a("tt")()),this.knobElement.appendChild(l),this.tooltipElem_=l,e.value.emitter.on("change",this.onChange_),this.value=e.value,this.refresh()}onDraggingChange_(t){if(null===t.rawValue)return void this.element.classList.remove(Et(void 0,"drg"));this.element.classList.add(Et(void 0,"drg"));const e=t.rawValue/this.props_.get("draggingScale"),n=e+(e>0?-1:e<0?1:0),i=kt(-n,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",[`M ${n+i},0 L${n},4 L${n+i},8`,`M ${e},-1 L${e},9`].join(" ")),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${e},4`);const r=this.props_.get("formatter");this.tooltipElem_.textContent=r(this.value.rawValue),this.tooltipElem_.style.left=`${e}px`}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value.rawValue)}onChange_(){this.refresh()}}class Ot{constructor(t,e){this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.parser_=e.parser,this.props=e.props,this.value=e.value,this.viewProps=e.viewProps,this.dragging_=g(null),this.view=new Tt(t,{arrayPosition:e.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);const n=new Mt(this.view.knobElement);n.emitter.on("down",this.onPointerDown_),n.emitter.on("move",this.onPointerMove_),n.emitter.on("up",this.onPointerUp_)}onInputChange_(t){const n=t.currentTarget.value,i=this.parser_(n);e(i)||(this.value.rawValue=i),this.view.refresh()}onInputKeyDown_(t){const e=wt(this.baseStep_,_t(t));0!==e&&this.value.setRawValue(this.value.rawValue+e,{forceEmit:!1,last:!1})}onInputKeyUp_(t){0!==wt(this.baseStep_,_t(t))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(t){if(!t.point)return null;const e=t.point.x-t.bounds.width/2;return this.originRawValue_+e*this.props.get("draggingScale")}onPointerMove_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_)}onPointerUp_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null)}}function Pt(t){if("inline"===t||"popup"===t)return t}function jt(t){const e=_;return e.required.object({max:e.optional.number,min:e.optional.number,step:e.optional.number})(t).value}class Lt{constructor(t){this.components=t.components,this.asm_=t.assembly}constrain(t){const e=this.asm_.toComponents(t).map((t,e)=>{var n,i;return null!==(i=null===(n=this.components[e])||void 0===n?void 0:n.constrain(t))&&void 0!==i?i:t});return this.asm_.fromComponents(e)}}const Dt=a("pndtxt");class Rt{constructor(t,e){this.textViews=e.textViews,this.element=t.createElement("div"),this.element.classList.add(Dt()),this.textViews.forEach(e=>{const n=t.createElement("div");n.classList.add(Dt("a")),n.appendChild(e.element),this.element.appendChild(n)})}}function Bt(t,e,n){return new Ot(t,{arrayPosition:0===n?"fst":n===e.axes.length-1?"lst":"mid",baseStep:e.axes[n].baseStep,parser:e.parser,props:e.axes[n].textProps,value:g(0,{constraint:e.axes[n].constraint}),viewProps:e.viewProps})}class Nt{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.acs_=e.axes.map((n,i)=>Bt(t,e,i)),this.acs_.forEach((t,n)=>{xt({primary:this.value,secondary:t.value,forward:t=>e.assembly.toComponents(t.rawValue)[n],backward:(t,i)=>{const r=e.assembly.toComponents(t.rawValue);return r[n]=i.rawValue,e.assembly.fromComponents(r)}})}),this.view=new Rt(t,{textViews:this.acs_.map(t=>t.view)})}}class Ft{multiply(t){return this.format(this.quat.multiply(t.quat))}premultiply(t){return this.format(t.multiply(this))}slerp(t,e){return this.format(this.quat.slerp(t.quat,e))}}function zt(t,e,n){return Math.min(Math.max(t,e),n)}function Vt(t,e){return Math.floor(t/e)*e}function Gt(t,e){return t-Vt(t,e)}function Ht(t){return Gt(t+Math.PI,2*Math.PI)-Math.PI}class Wt extends Ft{constructor(t,e,n,i,r){super(),this.x=null!=t?t:0,this.y=null!=e?e:0,this.z=null!=n?n:0,this.order=null!=i?i:"XYZ",this.unit=null!=r?r:"rad"}static fromQuaternion(t,e,n){const i=t.toMat3(),[r,o,a,s]="XYZ"===e?[0,1,2,1]:"XZY"===e?[0,2,1,-1]:"YXZ"===e?[1,0,2,-1]:"YZX"===e?[1,2,0,1]:"ZXY"===e?[2,0,1,1]:[2,1,0,-1],l=[0,0,0],c=i[a+3*r];return l[o]=-s*Math.asin(zt(c,-1,1)),Math.abs(c)<.999999?(l[r]=s*Math.atan2(i[a+3*o],i[4*a]),l[a]=s*Math.atan2(i[o+3*r],i[4*r])):l[r]=s*Math.atan2(-i[o+3*a],i[4*o]),Math.abs(l[r])+Math.abs(l[a])>Math.PI&&(l[r]=Ht(l[r]+Math.PI),l[o]=Ht(Math.PI-l[o]),l[a]=Ht(l[a]+Math.PI)),new Wt(...l,e).reunit(n)}get quat(){return Ut.fromEuler(this)}getComponents(){return[this.x,this.y,this.z]}toEuler(t,e){return this.reorder(t).reunit(e)}format(t){return t instanceof Wt?t.reorder(this.order):t.toEuler(this.order,this.unit)}reorder(t){return t===this.order?this:this.quat.toEuler(t,this.unit)}reunit(t){const e={deg:Math.PI/180,rad:1,turn:2*Math.PI}[this.unit],n={deg:180/Math.PI,rad:1,turn:.5/Math.PI}[t],i=e*n;return new Wt(i*this.x,i*this.y,i*this.z,this.order,t)}}class Ut extends Ft{constructor(t,e,n,i){super(),this.x=null!=t?t:0,this.y=null!=e?e:0,this.z=null!=n?n:0,this.w=null!=i?i:1}static fromAxisAngle(t,e){const n=e/2,i=Math.sin(n);return new Ut(t.x*i,t.y*i,t.z*i,Math.cos(n))}static fromEuler(t){const e=t.reunit("rad"),[n,i,r,o]="XYZ"===e.order?[0,1,2,1]:"XZY"===e.order?[0,2,1,-1]:"YXZ"===e.order?[1,0,2,-1]:"YZX"===e.order?[1,2,0,1]:"ZXY"===e.order?[2,0,1,1]:[2,1,0,-1],a=e.getComponents(),s=.5*a[n],l=.5*o*a[i],c=.5*a[r],u=Math.cos(s),h=Math.cos(l),d=Math.cos(c),p=Math.sin(s),f=Math.sin(l),g=Math.sin(c),m=[0,0,0,d*h*u+g*f*p];return m[n]=d*h*p-g*f*u,m[i]=o*(d*f*u+g*h*p),m[r]=g*h*u-d*f*p,new Ut(...m)}static lookRotation(t,e){const{normal:n,tangent:i,binormal:r}=t.orthoNormalize(e),o=r.x,a=i.x,s=n.x,l=r.y,c=i.y,u=n.y,h=r.z,d=i.z,p=n.z,f=o+c+p;if(f>0){const t=.5/Math.sqrt(f+1);return new Ut((d-u)*t,(s-h)*t,(l-a)*t,.25/t)}if(o>c&&o>p){const t=2*Math.sqrt(1+o-c-p);return new Ut(.25*t,(a+l)/t,(s+h)/t,(d-u)/t)}if(c>p){const t=2*Math.sqrt(1+c-o-p);return new Ut((a+l)/t,.25*t,(u+d)/t,(s-h)/t)}{const t=2*Math.sqrt(1+p-o-c);return new Ut((s+h)/t,(u+d)/t,.25*t,(l-a)/t)}}get quat(){return this}getComponents(){return[this.x,this.y,this.z,this.w]}toEuler(t,e){return Wt.fromQuaternion(this,t,e)}get lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}get length(){return Math.sqrt(this.lengthSq)}get normalized(){const t=this.length;return 0===t?new Ut:new Ut(this.x/t,this.y/t,this.z/t,this.w/t)}get negated(){return new Ut(-this.x,-this.y,-this.z,-this.w)}get ban360s(){return this.w<0?this.negated:this}multiply(t){const e=t.quat;return new Ut(this.w*e.x+this.x*e.w+this.y*e.z-this.z*e.y,this.w*e.y-this.x*e.z+this.y*e.w+this.z*e.x,this.w*e.z+this.x*e.y-this.y*e.x+this.z*e.w,this.w*e.w-this.x*e.x-this.y*e.y-this.z*e.z)}format(t){return t.quat}slerp(t,e){let n=t.quat;if(0===e)return this;if(1===e)return n;const i=this.ban360s;n=n.ban360s;let r=i.w*n.w+i.x*n.x+i.y*n.y+i.z*n.z;if(r<0&&(n=n.negated,r=-r),r>=1)return i;const o=1-r*r;if(o<=Number.EPSILON){const t=1-e;return new Ut(t*i.x+e*n.x,t*i.y+e*n.y,t*i.z+e*n.z,t*i.w+e*n.w).normalized}const a=Math.sqrt(o),s=Math.atan2(a,r),l=Math.sin((1-e)*s)/a,c=Math.sin(e*s)/a;return new Ut(i.x*l+n.x*c,i.y*l+n.y*c,i.z*l+n.z*c,i.w*l+n.w*c)}toMat3(){const{x:t,y:e,z:n,w:i}=this;return[1-2*e*e-2*n*n,2*t*e+2*n*i,2*t*n-2*e*i,2*t*e-2*n*i,1-2*t*t-2*n*n,2*e*n+2*t*i,2*t*n+2*e*i,2*e*n-2*t*i,1-2*t*t-2*e*e]}}class Zt{constructor(){this.offset=[0,0,-5],this.fov=30,this.aspect=1,this.viewport=[0,0,1,1]}project(t){const e=.5*(this.viewport[0]+this.viewport[2]),n=.5*(this.viewport[1]+this.viewport[3]),i=this.viewport[2]-this.viewport[0],r=this.viewport[3]-this.viewport[1],o=1/Math.tan(this.fov*Math.PI/360),a=-(t.z+this.offset[2]),s=e+(t.x+this.offset[0])/a*o*i*.5/this.aspect,l=n-(t.y+this.offset[1])/a*o*r*.5;return[s,l]}}class Yt{constructor(t,e,n){this.element=t.createElementNS(A,"path"),this.vertices=e,this.projector=n}setRotation(t){let e="";return this.vertices.forEach((n,i)=>{const r=n.applyQuaternion(t),[o,a]=this.projector.project(r);e+=`${0===i?"M":"L"}${o} ${a}`}),this.element.setAttributeNS(null,"d",e),this}}class Xt{constructor(t,e,n){this.x=null!=t?t:0,this.y=null!=e?e:0,this.z=null!=n?n:0}getComponents(){return[this.x,this.y,this.z]}get lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}get length(){return Math.sqrt(this.lengthSq)}get normalized(){const t=this.length;return 0===t?new Xt:new Xt(this.x/t,this.y/t,this.z/t)}get negated(){return new Xt(-this.x,-this.y,-this.z)}add(t){return new Xt(this.x+t.x,this.y+t.y,this.z+t.z)}sub(t){return new Xt(this.x-t.x,this.y-t.y,this.z-t.z)}scale(t){return new Xt(this.x*t,this.y*t,this.z*t)}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}cross(t){return new Xt(this.y*t.z-this.z*t.y,this.z*t.x-this.x*t.z,this.x*t.y-this.y*t.x)}orthoNormalize(t){const e=this.normalized;t=t.normalized;let n=e.dot(t);1===n&&(t=Math.abs(e.y)>Math.abs(e.z)?new Xt(0,0,1):new Xt(0,1,0),n=e.dot(t)),t=t.sub(e.scale(n)).normalized;const i=t.cross(e);return{normal:e,tangent:t,binormal:i}}applyQuaternion(t){const e=t.w*this.x+t.y*this.z-t.z*this.y,n=t.w*this.y+t.z*this.x-t.x*this.z,i=t.w*this.z+t.x*this.y-t.y*this.x,r=-t.x*this.x-t.y*this.y-t.z*this.z;return new Xt(e*t.w+r*-t.x+n*-t.z-i*-t.y,n*t.w+r*-t.y+i*-t.x-e*-t.z,i*t.w+r*-t.z+e*-t.y-n*-t.x)}}function qt(t,e){const n=e.z>0?new Ut(0,0,0,1):new Ut(0,0,1,0);return Math.abs(t.z)>.9999?n:Ut.lookRotation(t,e)}function Kt(t,e,n,i,r,o=1){const a=[];for(let s=0;s<n;s++){const l=t+e*s/(n-1),c=new Xt;c[i]=o*Math.cos(l),c[r]=o*Math.sin(l),a.push(c)}return a}const Qt=a("rotationgizmo"),Jt=new Xt(0,0,0),$t=new Xt(1,0,0),te=new Xt(0,1,0),ee=new Xt(0,0,1),ne=new Xt(0,0,-1),ie=new Xt(.7,0,0),re=new Xt(0,.7,0),oe=new Xt(0,0,.7),ae=new Xt(-.7,0,0),se=new Xt(0,-.7,0),le=new Xt(0,0,-.7),ce=new Ut(0,0,0,1);function ue(t,e,n){const i=t.createElementNS(A,"g"),r=t.createElementNS(A,"circle");r.classList.add(Qt(e)),r.setAttributeNS(null,"cx","0"),r.setAttributeNS(null,"cy","0"),r.setAttributeNS(null,"r","8"),i.appendChild(r);const o=t.createElementNS(A,"text");return o.classList.add(Qt("labeltext")),o.setAttributeNS(null,"y","4"),o.setAttributeNS(null,"text-anchor","middle"),o.setAttributeNS(null,"font-size","10"),o.textContent=n,i.appendChild(o),i}class he{constructor(t,e){this.onFoldableChange_=this.onFoldableChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.onModeChange_=this.onModeChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(Qt()),"popup"===e.pickerLayout&&this.element.classList.add(Qt(void 0,"p"));const n=t.createElement("div");n.classList.add(Qt("p")),e.viewProps.bindTabIndex(n),this.element.appendChild(n),this.padElement=n;const i=t.createElementNS(A,"svg");i.classList.add(Qt("g")),this.padElement.appendChild(i),this.svgElem_=i,this.projector_=new Zt,this.projector_.viewport=[0,0,136,136];const r=Kt(0,Math.PI,33,"x","y"),o=Kt(0,2*Math.PI,65,"x","y",1.1);this.xArcB_=new Yt(t,r,this.projector_),this.xArcB_.element.classList.add(Qt("arcx")),this.svgElem_.appendChild(this.xArcB_.element),this.yArcB_=new Yt(t,r,this.projector_),this.yArcB_.element.classList.add(Qt("arcy")),this.svgElem_.appendChild(this.yArcB_.element),this.zArcB_=new Yt(t,r,this.projector_),this.zArcB_.element.classList.add(Qt("arcz")),this.svgElem_.appendChild(this.zArcB_.element),this.xArcBC_=new Yt(t,r,this.projector_),this.xArcBC_.element.classList.add(Qt("arcc")),this.svgElem_.appendChild(this.xArcBC_.element),this.yArcBC_=new Yt(t,r,this.projector_),this.yArcBC_.element.classList.add(Qt("arcc")),this.svgElem_.appendChild(this.yArcBC_.element),this.zArcBC_=new Yt(t,r,this.projector_),this.zArcBC_.element.classList.add(Qt("arcc")),this.svgElem_.appendChild(this.zArcBC_.element);const a=t.createElementNS(A,"g");i.classList.add(Qt("axes")),this.svgElem_.appendChild(a),this.axesElem_=a,this.xAxis_=new Yt(t,[Jt,ie],this.projector_),this.xAxis_.element.classList.add(Qt("axisx")),this.axesElem_.appendChild(this.xAxis_.element),this.yAxis_=new Yt(t,[Jt,re],this.projector_),this.yAxis_.element.classList.add(Qt("axisy")),this.axesElem_.appendChild(this.yAxis_.element),this.zAxis_=new Yt(t,[Jt,oe],this.projector_),this.zAxis_.element.classList.add(Qt("axisz")),this.axesElem_.appendChild(this.zAxis_.element),this.xnAxis_=new Yt(t,[Jt,ae],this.projector_),this.xnAxis_.element.classList.add(Qt("axisn")),this.axesElem_.appendChild(this.xnAxis_.element),this.ynAxis_=new Yt(t,[Jt,se],this.projector_),this.ynAxis_.element.classList.add(Qt("axisn")),this.axesElem_.appendChild(this.ynAxis_.element),this.znAxis_=new Yt(t,[Jt,le],this.projector_),this.znAxis_.element.classList.add(Qt("axisn")),this.axesElem_.appendChild(this.znAxis_.element),this.xArcF_=new Yt(t,r,this.projector_),this.xArcF_.element.classList.add(Qt("arcx")),this.svgElem_.appendChild(this.xArcF_.element),this.yArcF_=new Yt(t,r,this.projector_),this.yArcF_.element.classList.add(Qt("arcy")),this.svgElem_.appendChild(this.yArcF_.element),this.zArcF_=new Yt(t,r,this.projector_),this.zArcF_.element.classList.add(Qt("arcz")),this.svgElem_.appendChild(this.zArcF_.element),this.xArcFC_=new Yt(t,r,this.projector_),this.xArcFC_.element.classList.add(Qt("arcc")),this.svgElem_.appendChild(this.xArcFC_.element),this.yArcFC_=new Yt(t,r,this.projector_),this.yArcFC_.element.classList.add(Qt("arcc")),this.svgElem_.appendChild(this.yArcFC_.element),this.zArcFC_=new Yt(t,r,this.projector_),this.zArcFC_.element.classList.add(Qt("arcc")),this.svgElem_.appendChild(this.zArcFC_.element),this.rArc_=new Yt(t,o,this.projector_),this.rArc_.element.classList.add(Qt("arcr")),this.rArc_.setRotation(ce),this.svgElem_.appendChild(this.rArc_.element),this.rArcC_=new Yt(t,o,this.projector_),this.rArcC_.element.classList.add(Qt("arcc")),this.rArcC_.setRotation(ce),this.svgElem_.appendChild(this.rArcC_.element);const s=t.createElementNS(A,"g");i.classList.add(Qt("labels")),this.svgElem_.appendChild(s),this.labelsElem_=s,this.xLabel=ue(t,"labelcirclex","X"),this.labelsElem_.appendChild(this.xLabel),this.yLabel=ue(t,"labelcircley","Y"),this.labelsElem_.appendChild(this.yLabel),this.zLabel=ue(t,"labelcirclez","Z"),this.labelsElem_.appendChild(this.zLabel),this.xnLabel=ue(t,"labelcirclen","-X"),this.labelsElem_.appendChild(this.xnLabel),this.ynLabel=ue(t,"labelcirclen","-Y"),this.labelsElem_.appendChild(this.ynLabel),this.znLabel=ue(t,"labelcirclen","-Z"),this.labelsElem_.appendChild(this.znLabel);const l=()=>{this.xArcB_.element.classList.add(Qt("arcx_hover")),this.xArcF_.element.classList.add(Qt("arcx_hover"))},c=()=>{this.xArcB_.element.classList.remove(Qt("arcx_hover")),this.xArcF_.element.classList.remove(Qt("arcx_hover"))};this.xArcBC_.element.addEventListener("mouseenter",l),this.xArcBC_.element.addEventListener("mouseleave",c),this.xArcFC_.element.addEventListener("mouseenter",l),this.xArcFC_.element.addEventListener("mouseleave",c);const u=()=>{this.yArcB_.element.classList.add(Qt("arcy_hover")),this.yArcF_.element.classList.add(Qt("arcy_hover"))},h=()=>{this.yArcB_.element.classList.remove(Qt("arcy_hover")),this.yArcF_.element.classList.remove(Qt("arcy_hover"))};this.yArcBC_.element.addEventListener("mouseenter",u),this.yArcBC_.element.addEventListener("mouseleave",h),this.yArcFC_.element.addEventListener("mouseenter",u),this.yArcFC_.element.addEventListener("mouseleave",h);const d=()=>{this.zArcB_.element.classList.add(Qt("arcz_hover")),this.zArcF_.element.classList.add(Qt("arcz_hover"))},p=()=>{this.zArcB_.element.classList.remove(Qt("arcz_hover")),this.zArcF_.element.classList.remove(Qt("arcz_hover"))};this.zArcBC_.element.addEventListener("mouseenter",d),this.zArcBC_.element.addEventListener("mouseleave",p),this.zArcFC_.element.addEventListener("mouseenter",d),this.zArcFC_.element.addEventListener("mouseleave",p);const f=()=>{this.rArc_.element.classList.add(Qt("arcr_hover"))},g=()=>{this.rArc_.element.classList.remove(Qt("arcr_hover"))};this.rArcC_.element.addEventListener("mouseenter",f),this.rArcC_.element.addEventListener("mouseleave",g),e.value.emitter.on("change",this.onValueChange_),this.value=e.value,e.mode.emitter.on("change",this.onModeChange_),this.mode_=e.mode,this.update_()}get xArcBElement(){return this.xArcBC_.element}get yArcBElement(){return this.yArcBC_.element}get zArcBElement(){return this.zArcBC_.element}get xArcFElement(){return this.xArcFC_.element}get yArcFElement(){return this.yArcFC_.element}get zArcFElement(){return this.zArcFC_.element}get rArcElement(){return this.rArcC_.element}get allFocusableElements(){return[this.padElement]}update_(){const t=this.value.rawValue.quat.normalized;this.xAxis_.setRotation(t),this.yAxis_.setRotation(t),this.zAxis_.setRotation(t),this.xnAxis_.setRotation(t),this.ynAxis_.setRotation(t),this.znAxis_.setRotation(t);const e=$t.applyQuaternion(t),n=te.applyQuaternion(t),i=ee.applyQuaternion(t),r=e.negated,o=n.negated,a=i.negated;[{el:this.xAxis_.element,v:e},{el:this.yAxis_.element,v:n},{el:this.zAxis_.element,v:i},{el:this.xnAxis_.element,v:r},{el:this.ynAxis_.element,v:o},{el:this.znAxis_.element,v:a}].map(({el:t,v:e})=>(this.axesElem_.removeChild(t),{el:t,v:e})).sort((t,e)=>t.v.z-e.v.z).forEach(({el:t})=>{this.axesElem_.appendChild(t)}),this.xArcB_.setRotation(qt(e,ne)),this.yArcB_.setRotation(qt(n,ne)),this.zArcB_.setRotation(qt(i,ne)),this.xArcBC_.setRotation(qt(e,ne)),this.yArcBC_.setRotation(qt(n,ne)),this.zArcBC_.setRotation(qt(i,ne)),this.xArcF_.setRotation(qt(e,ee)),this.yArcF_.setRotation(qt(n,ee)),this.zArcF_.setRotation(qt(i,ee)),this.xArcFC_.setRotation(qt(e,ee)),this.yArcFC_.setRotation(qt(n,ee)),this.zArcFC_.setRotation(qt(i,ee)),[{el:this.xLabel,v:ie},{el:this.yLabel,v:re},{el:this.zLabel,v:oe},{el:this.xnLabel,v:ae},{el:this.ynLabel,v:se},{el:this.znLabel,v:le}].forEach(({el:e,v:n})=>{const[i,r]=this.projector_.project(n.applyQuaternion(t));e.setAttributeNS(null,"transform",`translate( ${i}, ${r} )`)}),[{el:this.xLabel,v:e},{el:this.yLabel,v:n},{el:this.zLabel,v:i},{el:this.xnLabel,v:r},{el:this.ynLabel,v:o},{el:this.znLabel,v:a}].map(({el:t,v:e})=>(this.labelsElem_.removeChild(t),{el:t,v:e})).sort((t,e)=>t.v.z-e.v.z).forEach(({el:t})=>{this.labelsElem_.appendChild(t)})}onValueChange_(){this.update_()}onFoldableChange_(){this.update_()}onModeChange_(){const t=this.mode_.rawValue,e="angle-x"===t?"add":"remove",n="angle-y"===t?"add":"remove",i="angle-z"===t?"add":"remove",r="angle-r"===t?"add":"remove";this.xArcB_.element.classList[e](Qt("arcx_active")),this.yArcB_.element.classList[n](Qt("arcy_active")),this.zArcB_.element.classList[i](Qt("arcz_active")),this.xArcF_.element.classList[e](Qt("arcx_active")),this.yArcF_.element.classList[n](Qt("arcy_active")),this.zArcF_.element.classList[i](Qt("arcz_active")),this.rArc_.element.classList[r](Qt("arcr_active"))}}function de(t){return zt(t,0,1)}function pe(t){if(t<=0)return 0;if(t>=1)return 1;const e=1-t,n=e*(e*(e*(e*(e*(e*(-6*e+7))))));return de(1-n)}function fe(t,e,n){return de((n-t)/(e-t))}const ge=1/Math.sqrt(2),me=new Xt(1,0,0),ve=new Xt(0,1,0),ye=new Xt(0,0,1),be=new Ut(0,0,0,1),xe=new Ut(ge,0,0,ge),we=new Ut(0,-ge,0,ge),_e=new Ut(-ge,0,0,ge),Ce=new Ut(0,ge,0,ge),Ae=new Ut(0,1,0,0);class Ie{constructor(t,e){this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.mode_=g("free"),this.view=new he(t,{value:this.value,mode:this.mode_,viewProps:this.viewProps,pickerLayout:e.pickerLayout}),this.ptHandler_=new Mt(this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_);const n=new Mt(this.view.xArcBElement);n.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-x")),n.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const i=new Mt(this.view.xArcFElement);i.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-x")),i.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const r=new Mt(this.view.yArcBElement);r.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-y")),r.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const o=new Mt(this.view.yArcFElement);o.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-y")),o.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const a=new Mt(this.view.zArcBElement);a.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-z")),a.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const s=new Mt(this.view.zArcFElement);s.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-z")),s.emitter.on("up",()=>this.changeModeIfNotAuto_("free"));const l=new Mt(this.view.rArcElement);l.emitter.on("down",()=>this.changeModeIfNotAuto_("angle-r")),l.emitter.on("up",()=>this.changeModeIfNotAuto_("free")),[{el:this.view.xLabel,q:we},{el:this.view.yLabel,q:xe},{el:this.view.zLabel,q:be},{el:this.view.xnLabel,q:Ce},{el:this.view.ynLabel,q:_e},{el:this.view.znLabel,q:Ae}].forEach(({el:t,q:e})=>{new Mt(t).emitter.on("down",()=>this.autoRotate_(e))}),this.px_=null,this.py_=null,this.angleState_=null}handlePointerEvent_(t){if(!t.point)return;const e=this.mode_.rawValue,n=t.point.x,i=t.point.y;if("auto"!==e)if("free"===e){if(null!=this.px_&&null!=this.py_){const t=n-this.px_,e=i-this.py_,r=Math.sqrt(t*t+e*e);if(0===r)return;const o=new Xt(e/r,t/r,0),a=Ut.fromAxisAngle(o,r/68);this.value.rawValue=this.value.rawValue.premultiply(a)}this.px_=n,this.py_=i}else if("angle-r"===e){const e=t.bounds.width/2,r=t.bounds.height/2,o=Math.atan2(i-r,n-e);if(null==this.angleState_){const t=new Xt(0,0,1);this.angleState_={initialRotation:this.value.rawValue,initialAngle:o,axis:t,reverseAngle:!0}}else{const{initialRotation:t,initialAngle:e,axis:n}=this.angleState_,i=-Ht(o-e),r=Ut.fromAxisAngle(n,i);this.value.rawValue=t.premultiply(r)}}else{const r=t.bounds.width/2,o=t.bounds.height/2,a=Math.atan2(i-o,n-r);if(null==this.angleState_){const t="angle-x"===e?me:"angle-y"===e?ve:ye,n=t.applyQuaternion(this.value.rawValue.quat).z>0;this.angleState_={initialRotation:this.value.rawValue,initialAngle:a,axis:t,reverseAngle:n}}else{const{initialRotation:t,initialAngle:e,axis:n,reverseAngle:i}=this.angleState_;let r=Ht(a-e);r=i?-r:r;const o=Ut.fromAxisAngle(n,r);this.value.rawValue=t.multiply(o)}}}onPointerDown_(t){this.handlePointerEvent_(t.data)}onPointerMove_(t){this.handlePointerEvent_(t.data)}onPointerUp_(){this.px_=null,this.py_=null,this.angleState_=null}onPadKeyDown_(t){It(t.key)&&t.preventDefault();const e=wt(1,Ct(t)),n=wt(1,_t(t));if(0!==e||0!==n){const t=new Xt(-n,e,0),i=Ut.fromAxisAngle(t,Math.PI/16);this.value.rawValue=this.value.rawValue.premultiply(i)}}changeModeIfNotAuto_(t){"auto"!==this.mode_.rawValue&&(this.mode_.rawValue=t)}autoRotate_(t){this.mode_.rawValue="auto";const e=this.value.rawValue,n=Date.now(),i=()=>{const r=Date.now(),o=pe(fe(0,300,r-n));this.value.rawValue=e.slerp(t,o),1!==o?requestAnimationFrame(i):this.mode_.rawValue="free"};requestAnimationFrame(i)}}const Se=a("rotationswatch"),Me=new Xt(1,0,0),ke=new Xt(0,1,0),Ee=new Xt(0,0,1),Te=new Ut(0,0,0,1);class Oe{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),e.value.emitter.on("change",this.onValueChange_),this.value=e.value,this.element=t.createElement("div"),this.element.classList.add(Se()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("button");n.classList.add(Se("b")),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;const i=t.createElementNS(A,"svg");i.classList.add(Se("g")),n.appendChild(i),this.svgElem_=i,this.projector_=new Zt,this.projector_.viewport=[0,0,20,20];const r=Kt(0,Math.PI,33,"x","y"),o=Kt(0,2*Math.PI,65,"x","y");this.rArc_=new Yt(t,o,this.projector_),this.rArc_.element.classList.add(Se("arcr")),i.appendChild(this.rArc_.element),this.rArc_.setRotation(Te),this.xArc_=new Yt(t,r,this.projector_),this.xArc_.element.classList.add(Se("arc")),i.appendChild(this.xArc_.element),this.yArc_=new Yt(t,r,this.projector_),this.yArc_.element.classList.add(Se("arc")),i.appendChild(this.yArc_.element),this.zArc_=new Yt(t,r,this.projector_),this.zArc_.element.classList.add(Se("arc")),i.appendChild(this.zArc_.element),this.update_()}update_(){const t=this.value.rawValue.quat.normalized,e=Me.applyQuaternion(t),n=ke.applyQuaternion(t),i=Ee.applyQuaternion(t);this.xArc_.setRotation(qt(e,Ee)),this.yArc_.setRotation(qt(n,Ee)),this.zArc_.setRotation(qt(i,Ee))}onValueChange_(){this.update_()}}class Pe{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new Oe(t,{value:this.value,viewProps:this.viewProps})}}const je=a("rotation");class Le{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(je()),e.foldable.bindExpandedClass(this.element,je(void 0,"expanded")),u(e.foldable,"completed",d(this.element,je(void 0,"cpl"))),"quaternion"===e.rotationMode&&this.element.classList.add(je("quat"));const n=t.createElement("div");n.classList.add(je("h")),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(je("s")),n.appendChild(i),this.swatchElement=i;const r=t.createElement("div");if(r.classList.add(je("t")),n.appendChild(r),this.textElement=r,"inline"===e.pickerLayout){const e=t.createElement("div");e.classList.add(je("g")),this.element.appendChild(e),this.pickerElement=e}else this.pickerElement=null}}class De{constructor(t,e){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.foldable_=E.create(e.expanded),this.swatchC_=new Pe(t,{value:this.value,viewProps:this.viewProps});const n=this.swatchC_.view.buttonElement;n.addEventListener("blur",this.onButtonBlur_),n.addEventListener("click",this.onButtonClick_),this.textC_=new Nt(t,{assembly:e.assembly,axes:e.axes,parser:e.parser,value:this.value,viewProps:this.viewProps}),this.view=new Le(t,{rotationMode:e.rotationMode,foldable:this.foldable_,pickerLayout:e.pickerLayout}),this.view.swatchElement.appendChild(this.swatchC_.view.element),this.view.textElement.appendChild(this.textC_.view.element),this.popC_="popup"===e.pickerLayout?new N(t,{viewProps:this.viewProps}):null;const i=new Ie(t,{value:this.value,viewProps:this.viewProps,pickerLayout:e.pickerLayout});i.view.allFocusableElements.forEach(t=>{t.addEventListener("blur",this.onPopupChildBlur_),t.addEventListener("keydown",this.onPopupChildKeydown_)}),this.gizmoC_=i,this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(i.view.element),xt({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:t=>t.rawValue,backward:(t,e)=>e.rawValue})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.gizmoC_.view.element),P(this.foldable_,this.view.pickerElement))}onButtonBlur_(t){if(!this.popC_)return;const e=this.view.element,n=t.relatedTarget;(!n||!e.contains(n))&&(this.popC_.shows.rawValue=!1)}onButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.gizmoC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(t){if(!this.popC_)return;const e=this.popC_.view.element,n=k(t);n&&e.contains(n)||n&&n===this.swatchC_.view.buttonElement&&!M(e.ownerDocument)||(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(t){this.popC_?"Escape"===t.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===t.key&&this.swatchC_.view.buttonElement.focus()}}function Re(t,e){const n=Math.pow(.1,t);return{baseStep:n,constraint:e,textProps:m.fromObject({draggingScale:n,formatter:bt(t)})}}function Be(t){if(!t)return;const n=[];return e(t.step)||n.push(new D(t.step)),(!e(t.max)||!e(t.min))&&n.push(new L({max:t.max,min:t.min})),new j(n)}function Ne(t,e){return{toComponents:t=>t.getComponents(),fromComponents:n=>new Wt(n[0],n[1],n[2],t,e)}}function Fe(t,e,n){var i,r,o;return"number"==typeof(null===(i=t)||void 0===i?void 0:i.x)&&"number"==typeof(null===(r=t)||void 0===r?void 0:r.y)&&"number"==typeof(null===(o=t)||void 0===o?void 0:o.z)?new Wt(t.x,t.y,t.z,e,n):new Wt(0,0,0,e,n)}function ze(t){switch(t){case"XYZ":case"XZY":case"YXZ":case"YZX":case"ZXY":case"ZYX":return t;default:return}}function Ve(t){switch(t){case"rad":case"deg":case"turn":return t;default:return}}const Ge={id:"rotation",type:"input",css:".tp-rotationswatchv_b,.tp-rotationgizmov_p{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-rotationswatchv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-rotationswatchv_b:hover{background-color:var(--btn-bg-h)}.tp-rotationswatchv_b:focus{background-color:var(--btn-bg-f)}.tp-rotationswatchv_b:active{background-color:var(--btn-bg-a)}.tp-rotationswatchv_b:disabled{opacity:0.5}.tp-rotationgizmov_p{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-rotationgizmov_p:hover{background-color:var(--in-bg-h)}.tp-rotationgizmov_p:focus{background-color:var(--in-bg-f)}.tp-rotationgizmov_p:active{background-color:var(--in-bg-a)}.tp-rotationgizmov_p:disabled{opacity:0.5}.tp-rotationv{position:relative}.tp-rotationv_quat .tp-txtv_i{padding-left:0}.tp-rotationv_root{background-color:var(--mo-bg);width:100%;height:calc( 2.0 * var(--bld-us))}.tp-rotationv_h{display:flex}.tp-rotationv_s{flex-grow:0;flex-shrink:0;width:var(--bld-us);margin-right:4px}.tp-rotationv_g{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-rotationv.tp-rotationv-expanded .tp-rotationv_g{margin-top:var(--bld-s);opacity:1}.tp-rotationv .tp-popv{left:calc(-1 * var(--cnt-h-p));right:calc(-1 * var(--cnt-h-p));top:var(--bld-us)}.tp-rotationswatchv path{stroke-linecap:round;stroke-linejoin:round}.tp-rotationswatchv_b{height:var(--bld-us);margin-right:4px;position:relative;width:var(--bld-us)}.tp-rotationswatchv_arc{fill:none;stroke:var(--btn-bg);stroke-width:1px}.tp-rotationswatchv_arcr{fill:var(--btn-fg);stroke:var(--btn-bg);stroke-width:1px}.tp-rotationgizmov{padding-left:calc(var(--bld-us) + 4px)}.tp-rotationgizmov path{stroke-linecap:round;stroke-linejoin:round}.tp-rotationgizmov_p{cursor:move;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-rotationgizmov_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-rotationgizmov_axisx{stroke:#eb103f;stroke-width:2px}.tp-rotationgizmov_axisy{stroke:#4eeb10;stroke-width:2px}.tp-rotationgizmov_axisz{stroke:#1068eb;stroke-width:2px}.tp-rotationgizmov_axisn{stroke:var(--in-fg);stroke-width:2px}.tp-rotationgizmov_arcx{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcx.tp-rotationgizmov_arcx_hover{stroke:#eb103f}.tp-rotationgizmov_arcx.tp-rotationgizmov_arcx_active{stroke:#eb103f;stroke-width:2px}.tp-rotationgizmov_arcy{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcy.tp-rotationgizmov_arcy_hover{stroke:#4eeb10}.tp-rotationgizmov_arcy.tp-rotationgizmov_arcy_active{stroke:#4eeb10;stroke-width:2px}.tp-rotationgizmov_arcz{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcz.tp-rotationgizmov_arcz_hover{stroke:#1068eb}.tp-rotationgizmov_arcz.tp-rotationgizmov_arcz_active{stroke:#1068eb;stroke-width:2px}.tp-rotationgizmov_arcr{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcr.tp-rotationgizmov_arcr_hover{stroke:#ebd510}.tp-rotationgizmov_arcr.tp-rotationgizmov_arcr_active{stroke:#ebd510;stroke-width:2px}.tp-rotationgizmov_arcc{fill:none;stroke:transparent;stroke-width:5px;pointer-events:auto}.tp-rotationgizmov_labelcirclex{fill:#eb103f;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclex:hover{opacity:0.7}.tp-rotationgizmov_labelcircley{fill:#4eeb10;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcircley:hover{opacity:0.7}.tp-rotationgizmov_labelcirclez{fill:#1068eb;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclez:hover{opacity:0.7}.tp-rotationgizmov_labelcirclen{fill:var(--in-fg);cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclen:hover{opacity:0.7}.tp-rotationgizmov_labeltext{fill:var(--btn-fg);stroke:var(--btn-fg);stroke-width:1px}.tp-rotationgizmov_p:focus .tp-rotationgizmov_m{background-color:var(--in-fg);border-width:0}",accept(t,e){var n,i;const r=_,o=C(e,{view:r.required.constant("rotation"),label:r.optional.string,picker:r.optional.custom(Pt),expanded:r.optional.boolean,rotationMode:r.required.constant("euler"),x:r.optional.custom(jt),y:r.optional.custom(jt),z:r.optional.custom(jt),order:r.optional.custom(ze),unit:r.optional.custom(Ve)});return o?{initialValue:Fe(t,null!==(n=o.order)&&void 0!==n?n:"XYZ",null!==(i=o.unit)&&void 0!==i?i:"rad"),params:o}:null},binding:{reader({params:t}){return e=>{var n,i;return Fe(e,null!==(n=t.order)&&void 0!==n?n:"XYZ",null!==(i=t.unit)&&void 0!==i?i:"rad")}},constraint({params:t}){var e,n;return new Lt({assembly:Ne(null!==(e=t.order)&&void 0!==e?e:"XYZ",null!==(n=t.unit)&&void 0!==n?n:"rad"),components:[Be("x"in t?t.x:void 0),Be("y"in t?t.y:void 0),Be("z"in t?t.z:void 0)]})},writer(t){return(t,e)=>{t.writeProperty("x",e.x),t.writeProperty("y",e.y),t.writeProperty("z",e.z)}}},controller({document:t,value:e,constraint:n,params:r,viewProps:o}){var a,s;if(!(n instanceof Lt))throw i.shouldNeverHappen();const l="expanded"in r?r.expanded:void 0,c="picker"in r?r.picker:void 0,u=null!==(a=r.unit)&&void 0!==a?a:"rad",h={rad:2,deg:0,turn:2}[u];return new De(t,{axes:[Re(h,n.components[0]),Re(h,n.components[1]),Re(h,n.components[2])],assembly:Ne(null!==(s=r.order)&&void 0!==s?s:"XYZ",u),rotationMode:"euler",expanded:null!=l&&l,parser:yt,pickerLayout:null!=c?c:"popup",value:e,viewProps:o})}},He={toComponents:t=>[t.x,t.y,t.z,t.w],fromComponents:t=>new Ut(t[0],t[1],t[2],t[3])};function We(t){return{baseStep:.01,constraint:t,textProps:m.fromObject({draggingScale:.01,formatter:t=>Math.abs(t)<.995?t.toFixed(2).replace("0.","."):t.toFixed(1)})}}function Ue(t){var e,n,i,r;return"number"==typeof(null===(e=t)||void 0===e?void 0:e.x)&&"number"==typeof(null===(n=t)||void 0===n?void 0:n.y)&&"number"==typeof(null===(i=t)||void 0===i?void 0:i.z)&&"number"==typeof(null===(r=t)||void 0===r?void 0:r.w)?new Ut(t.x,t.y,t.z,t.w):new Ut(0,0,0,1)}const Ze={id:"rotation",type:"input",css:".tp-rotationswatchv_b,.tp-rotationgizmov_p{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-rotationswatchv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-rotationswatchv_b:hover{background-color:var(--btn-bg-h)}.tp-rotationswatchv_b:focus{background-color:var(--btn-bg-f)}.tp-rotationswatchv_b:active{background-color:var(--btn-bg-a)}.tp-rotationswatchv_b:disabled{opacity:0.5}.tp-rotationgizmov_p{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-rotationgizmov_p:hover{background-color:var(--in-bg-h)}.tp-rotationgizmov_p:focus{background-color:var(--in-bg-f)}.tp-rotationgizmov_p:active{background-color:var(--in-bg-a)}.tp-rotationgizmov_p:disabled{opacity:0.5}.tp-rotationv{position:relative}.tp-rotationv_quat .tp-txtv_i{padding-left:0}.tp-rotationv_root{background-color:var(--mo-bg);width:100%;height:calc( 2.0 * var(--bld-us))}.tp-rotationv_h{display:flex}.tp-rotationv_s{flex-grow:0;flex-shrink:0;width:var(--bld-us);margin-right:4px}.tp-rotationv_g{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-rotationv.tp-rotationv-expanded .tp-rotationv_g{margin-top:var(--bld-s);opacity:1}.tp-rotationv .tp-popv{left:calc(-1 * var(--cnt-h-p));right:calc(-1 * var(--cnt-h-p));top:var(--bld-us)}.tp-rotationswatchv path{stroke-linecap:round;stroke-linejoin:round}.tp-rotationswatchv_b{height:var(--bld-us);margin-right:4px;position:relative;width:var(--bld-us)}.tp-rotationswatchv_arc{fill:none;stroke:var(--btn-bg);stroke-width:1px}.tp-rotationswatchv_arcr{fill:var(--btn-fg);stroke:var(--btn-bg);stroke-width:1px}.tp-rotationgizmov{padding-left:calc(var(--bld-us) + 4px)}.tp-rotationgizmov path{stroke-linecap:round;stroke-linejoin:round}.tp-rotationgizmov_p{cursor:move;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-rotationgizmov_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-rotationgizmov_axisx{stroke:#eb103f;stroke-width:2px}.tp-rotationgizmov_axisy{stroke:#4eeb10;stroke-width:2px}.tp-rotationgizmov_axisz{stroke:#1068eb;stroke-width:2px}.tp-rotationgizmov_axisn{stroke:var(--in-fg);stroke-width:2px}.tp-rotationgizmov_arcx{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcx.tp-rotationgizmov_arcx_hover{stroke:#eb103f}.tp-rotationgizmov_arcx.tp-rotationgizmov_arcx_active{stroke:#eb103f;stroke-width:2px}.tp-rotationgizmov_arcy{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcy.tp-rotationgizmov_arcy_hover{stroke:#4eeb10}.tp-rotationgizmov_arcy.tp-rotationgizmov_arcy_active{stroke:#4eeb10;stroke-width:2px}.tp-rotationgizmov_arcz{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcz.tp-rotationgizmov_arcz_hover{stroke:#1068eb}.tp-rotationgizmov_arcz.tp-rotationgizmov_arcz_active{stroke:#1068eb;stroke-width:2px}.tp-rotationgizmov_arcr{fill:none;stroke:var(--in-fg)}.tp-rotationgizmov_arcr.tp-rotationgizmov_arcr_hover{stroke:#ebd510}.tp-rotationgizmov_arcr.tp-rotationgizmov_arcr_active{stroke:#ebd510;stroke-width:2px}.tp-rotationgizmov_arcc{fill:none;stroke:transparent;stroke-width:5px;pointer-events:auto}.tp-rotationgizmov_labelcirclex{fill:#eb103f;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclex:hover{opacity:0.7}.tp-rotationgizmov_labelcircley{fill:#4eeb10;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcircley:hover{opacity:0.7}.tp-rotationgizmov_labelcirclez{fill:#1068eb;cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclez:hover{opacity:0.7}.tp-rotationgizmov_labelcirclen{fill:var(--in-fg);cursor:pointer;pointer-events:auto}.tp-rotationgizmov_labelcirclen:hover{opacity:0.7}.tp-rotationgizmov_labeltext{fill:var(--btn-fg);stroke:var(--btn-fg);stroke-width:1px}.tp-rotationgizmov_p:focus .tp-rotationgizmov_m{background-color:var(--in-fg);border-width:0}",accept(t,e){const n=_,i=C(e,{view:n.required.constant("rotation"),label:n.optional.string,picker:n.optional.custom(Pt),expanded:n.optional.boolean,rotationMode:n.optional.constant("quaternion"),x:n.optional.custom(jt),y:n.optional.custom(jt),z:n.optional.custom(jt),w:n.optional.custom(jt)});return i?{initialValue:Ue(t),params:i}:null},binding:{reader(t){return t=>Ue(t)},constraint({params:t}){return new Lt({assembly:He,components:[Be("x"in t?t.x:void 0),Be("y"in t?t.y:void 0),Be("z"in t?t.z:void 0),Be("w"in t?t.w:void 0)]})},writer(t){return(t,e)=>{t.writeProperty("x",e.x),t.writeProperty("y",e.y),t.writeProperty("z",e.z),t.writeProperty("w",e.w)}}},controller({document:t,value:e,constraint:n,params:r,viewProps:o}){if(!(n instanceof Lt))throw i.shouldNeverHappen();const a="expanded"in r?r.expanded:void 0,s="picker"in r?r.picker:void 0;return new De(t,{axes:[We(n.components[0]),We(n.components[1]),We(n.components[2]),We(n.components[3])],assembly:He,rotationMode:"quaternion",expanded:null!=a&&a,parser:yt,pickerLayout:null!=s?s:"popup",value:e,viewProps:o})}},Ye=[Ge,Ze];t.RotationInputPluginEuler=Ge,t.RotationInputPluginQuaternion=Ze,t.plugins=Ye,Object.defineProperty(t,"__esModule",{value:!0})}))},7981:function(t,e,n){(function(){var e={7757:function(t,e,n){t.exports=n(5666)},5666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(O){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new k(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return T()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=u(t,e,n);if("normal"===l.type){if(i=n.done?f:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=f,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}t.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",f="completed",g={};function m(){}function v(){}function y(){}var b={};l(b,o,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var _=y.prototype=m.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(r,o,a,s){var l=u(t[r],t,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}}function I(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return v.prototype=y,l(_,"constructor",y),l(y,"constructor",v),v.displayName=l(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},C(A.prototype),l(A.prototype,a,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new A(c(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(_),l(_,s,"Generator"),l(_,o,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:E(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}},i={};function r(t){var n=i[t];if(void 0!==n)return n.exports;var o=i[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function i(n){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){t(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))}))}return n}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}r.r(o),r.d(o,{Bloom:function(){return h},Outline:function(){return d},SSR:function(){return p},Scan:function(){return C},Scan2:function(){return A}});var c=n(5644),u=(function(){try{var t=document.createElement("canvas");!window.WebGL2RenderingContext||t.getContext("webgl2")}catch(_){return!1}}(),c.UVMapping,c.CubeReflectionMapping,c.CubeRefractionMapping,c.EquirectangularReflectionMapping,c.EquirectangularRefractionMapping,c.CubeUVReflectionMapping,c.RepeatWrapping,c.ClampToEdgeWrapping,c.MirroredRepeatWrapping,c.NearestFilter,c.LinearFilter,c.NearestFilter,c.NearestMipMapNearestFilter,c.NearestMipMapLinearFilter,c.LinearFilter,c.LinearMipMapNearestFilter,c.LinearMipMapLinearFilter,c.LinearEncoding,c.sRGBEncoding,c.BasicDepthPacking,c.RGBADepthPacking,c.FrontSide,c.BackSide,c.DoubleSide,c.NoBlending,c.NormalBlending,c.AdditiveBlending,c.SubtractiveBlending,c.MultiplyBlending,c.CustomBlending,{}),h=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t),this.object=void 0,this.options=void 0,this.object=e,this.options=i({},n)}return l(t,[{key:"check",value:function(){var t;return!(null===(t=this.object.pencil.composerController)||void 0===t||!t.bloomController)||(console.warn("err:pencil.options.bloom"),!1)}},{key:"enable",value:function(){var t;if(this.check()){var e=this.object.pencil,n=this.options,i=n.exclude,r=n.include;(null===(t=e.composerController)||void 0===t?void 0:t.bloomController).enable(),e.event.emit("passcheck","bloom"),this.object.object3d.traverse((function(t){var e=t;r&&!r.includes(e)||i&&i.includes(e)||(e.layers.enable(1),u[e.uuid]=!0)}))}}},{key:"disable",value:function(){var t;if(this.check()){var e=this.object.pencil,n=this.options,i=n.exclude,r=n.include,o=null===(t=e.composerController)||void 0===t?void 0:t.bloomController;this.object.object3d.traverse((function(t){var e=t;r&&!r.includes(e)||i&&i.includes(e)||(e.layers.disable(1),delete u[e.uuid])})),0===Object.keys(u).length&&(o.disable(),e.event.emit("passcheck","bloom"))}}}]),t}(),d=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t),this.object=void 0,this.options=void 0,this.object=e,this.options=i({},n)}return l(t,[{key:"check",value:function(){var t;return!(null===(t=this.object.pencil.composerController)||void 0===t||!t.outlineController)||(console.warn("err:pencil.options.outline"),!1)}},{key:"enable",value:function(){var t;if(this.check()){var e=this.object.pencil,n=this.options,i=n.exclude,r=n.include,o=null===(t=e.composerController)||void 0===t?void 0:t.outlineController;o.enable(),e.event.emit("passcheck","outline"),this.object.object3d.traverse((function(t){var e=t;r&&!r.includes(e)||i&&i.includes(e)||e.material&&o.selectedObjects.push(e)}))}}},{key:"disable",value:function(){var t;if(this.check()){var e=this.object.pencil,n=this.options,i=n.exclude,r=n.include,o=null===(t=e.composerController)||void 0===t?void 0:t.outlineController;this.object.object3d.traverse((function(t){var e=t;r&&!r.includes(e)||i&&i.includes(e)||e.material&&o.selectedObjects.splice(o.selectedObjects.indexOf(e),1)})),0===o.selectedObjects.length&&(o.disable(),e.event.emit("passcheck","outline"))}}}]),t}(),p=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t),this.object=void 0,this.options=void 0,this.object=e,this.options=i({},n)}return l(t,[{key:"check",value:function(){var t;return!(null===(t=this.object.pencil.composerController)||void 0===t||!t.ssrController)||(console.warn("err:pencil.options.ssr"),!1)}},{key:"enable",value:function(){var t;if(this.check()){var e=this.object.pencil,n=this.options,i=n.exclude,r=n.include,o=null===(t=e.composerController)||void 0===t?void 0:t.ssrController;o.enable(),e.event.emit("passcheck","ssr"),this.object.object3d.traverse((function(t){var e=t;r&&!r.includes(e)||i&&i.includes(e)||e.material&&o.selectedObjects.push(e)}))}}},{key:"disable",value:function(){var t;if(this.check()){var e=this.object.pencil,n=this.options,i=n.exclude,r=n.include,o=null===(t=e.composerController)||void 0===t?void 0:t.ssrController;this.object.object3d.traverse((function(t){var e=t;r&&!r.includes(e)||i&&i.includes(e)||e.material&&o.selectedObjects.splice(o.selectedObjects.indexOf(e),1)})),0===o.selectedObjects.length&&(o.disable(),e.event.emit("passcheck","ssr"))}}}]),t}();function f(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(i,r)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){f(o,i,r,a,s,"next",t)}function s(t){f(o,i,r,a,s,"throw",t)}a(void 0)}))}}var m=r(7757),v=r.n(m),y=n(2494),b=r.n(y),x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.then((function(t){return i({err:null,res:t},e)})).catch((function(t){return i({err:t,res:void 0},e)}))},w=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return n.promise=new Promise((function(t,e){n.resolve=t,n.reject=e})),t&&(n.promise=x(n.promise,e)),n},C=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t),this.options=void 0,this.object=void 0,this.uniforms=void 0,this.tween=void 0,this.object=e,this.options=i(i({},{color:16777215,opacity:1,lineNum:10,lineWidth:1,lineHieght:10,fade:!1,fadeType:2,radius:0,range:new c.Vector2(0,1),vertical:!1,step:0,pos:"bottom",duration:5e3,yoyo:!1,repeat:0}),n)}return l(t,[{key:"initMaterial",value:function(){var t=this,e=this.options,n=e.color,i=e.lineNum,r=e.lineWidth,o=e.lineHieght,a=e.fade,s=e.fadeType,l=e.radius,u=e.range,h=e.vertical,d=e.step,p=e.opacity,f=e.exclude,g={field:{value:new c.Vector4(0,0,0,0)},color:{value:new c.Color(n)},opacity:{value:p},lineNum:{value:i},lineWidth:{value:r},lineHieght:{value:o},sizeNum:{value:new c.Vector3(l,l,l)},objPos:{value:new c.Vector3(0,0,0)},fade:{value:a},fadeType:{value:s},range:{value:u},angle:{value:0},stepNum:{value:d}};if(!l){var m=this.object.getSize().size;g.sizeNum.value.copy(m)}this.uniforms=g,this.object.object3d.traverse((function(e){var n=e;!n.material||f&&f.includes(n)||(n.userData.materialO?n.material=n.userData.materialO.clone():n.userData.materialO=Array.isArray(n.material)?n.material.map((function(t){return t.clone()})):n.material.clone(),Array.isArray(n.material)?n.material.forEach((function(e){h?t.setVerticalMaterial(e):t.setMaterial(e)})):h?t.setVerticalMaterial(n.material):t.setMaterial(n.material))}))}},{key:"setMaterial",value:function(t){var e=this.uniforms;t.onBeforeCompile=function(t){t.uniforms.field=e.field,t.uniforms.fieldColor=e.color,t.uniforms.fieldOpacity=e.opacity,t.uniforms.lineNum=e.lineNum,t.uniforms.lineWidth=e.lineWidth,t.uniforms.sizeNum=e.sizeNum,t.uniforms.fade=e.fade,t.uniforms.fadeType=e.fadeType,t.uniforms.range=e.range,t.uniforms.stepNum=e.stepNum,t.vertexShader="\n        varying vec4 vWorldPos;\n        ".concat(t.vertexShader,"\n      ").replace("#include <worldpos_vertex>","#include <worldpos_vertex>\n        vWorldPos = vec4( transformed, 1.0 );\n        #ifdef USE_INSTANCING\n          vWorldPos = instanceMatrix * vWorldPos;\n        #endif\n        vWorldPos = modelMatrix * vWorldPos;\n      "),t.fragmentShader="\n      uniform vec4 field;\n      uniform vec3 fieldColor;\n      uniform float fieldOpacity;\n      uniform int lineNum;\n      uniform vec3 sizeNum;\n      uniform float lineWidth;\n      uniform float fade;\n      uniform int fadeType;\n      uniform vec2 range;\n      uniform int stepNum;\n      varying vec4 vWorldPos;\n      ".concat(t.fragmentShader,"\n      ").replace("#include <dithering_fragment>","#include <dithering_fragment>\n        float height = sizeNum.y;\n        bool isTop = field.y > vWorldPos.y;\n        float worldDist = distance(field.y, vWorldPos.y);\n        // bool isMix = isTop?\n        //   worldDist >=  sizeNum.y * (1.0 -range):\n        //   worldDist <=  sizeNum.y * range;\n        float wMin = range.x * height;\n        float wMax = range.y * height;\n        bool isMix = worldDist >= wMin && worldDist <= wMax && field.w > 0.0;\n\n        if(isMix){\n          float stepf = sizeNum.y / float(lineNum);\n          vec3 posf = fwidth(vWorldPos.xyz);\n          float f = length(posf);\n          for(int i=0; i<lineNum; i++){\n            float fw = field.w- stepf * float(i) + (stepNum > 0? lineWidth : 0.0);\n            float fadeout = smoothstep(fw -lineWidth, fw, worldDist);\n            fadeout -= smoothstep(fw, fw + f, worldDist);\n            if(fadeout!=0.0 && fieldOpacity!=-1.0) {\n              fadeout = fieldOpacity;\n            }\n            if(fade ==1.0 && fadeType == 2){\n              fadeout =  float(lineNum-i) * fadeout/ float(lineNum);\n            }\n            if (fade ==1.0 && fadeType == 1) {\n              fadeout -= smoothstep(wMin, wMax, worldDist);\n            }\n            if(fadeout != 0.0){\n              gl_FragColor.rgb = mix(gl_FragColor.rgb, fieldColor, fadeout);\n              break;\n            }\n          }\n        }\n      ")},t.needsUpdate=!0}},{key:"setVerticalMaterial",value:function(t){var e=this.uniforms;t.onBeforeCompile=function(t){t.uniforms.field=e.field,t.uniforms.fieldColor=e.color,t.uniforms.fieldOpacity=e.opacity,t.uniforms.lineNum=e.lineNum,t.uniforms.lineWidth=e.lineWidth,t.uniforms.lineHieght=e.lineHieght,t.uniforms.sizeNum=e.sizeNum,t.uniforms.fade=e.fade,t.uniforms.range=e.range,t.uniforms.angle=e.angle,t.uniforms.objPos=e.objPos,t.vertexShader="\n        varying vec4 vWorldPos;\n        ".concat(t.vertexShader,"\n      ").replace("#include <worldpos_vertex>","#include <worldpos_vertex>\n        vWorldPos = vec4( transformed, 1.0 );\n        #ifdef USE_INSTANCING\n          vWorldPos = instanceMatrix * vWorldPos;\n        #endif\n        vWorldPos = modelMatrix * vWorldPos;\n      "),t.fragmentShader="\n      uniform vec4 field;\n      uniform vec3 fieldColor;\n      uniform float fieldOpacity;\n      uniform int lineNum;\n      uniform vec3 sizeNum;\n      uniform float lineWidth;\n      uniform float lineHieght;\n      uniform float fade;\n      uniform vec2 range;\n      uniform float angle;\n      uniform vec3 objPos;\n      varying vec4 vWorldPos;\n\n      float aa(float x, float z,float a) {\n        return(x - objPos.x)*cos(a) - (z - objPos.z)*sin(a) + objPos.x ;\n      }\n\n      ".concat(t.fragmentShader,"\n      ").replace("#include <dithering_fragment>","#include <dithering_fragment>\n\n        float worldDist = distance(field.y, vWorldPos.y);\n        bool isTop = field.x > vWorldPos.x;\n        float height = sizeNum.y;\n        // bool isMix = isTop?\n        //   worldDist >=  sizeNum.y * (1.0 -range):\n        //   worldDist <=  sizeNum.y * range;\n        float wMin = range.x * height;\n        float wMax = range.y * height;\n        bool isMix = worldDist >= wMin && worldDist <= wMax;\n\n\n        if(isMix){\n          vec3 posf = fwidth(vWorldPos.xyz);\n          float f = length(posf);\n          float gap =0.0;\n          float sx= sqrt(pow(sizeNum.x,2.0)+pow(sizeNum.z,2.0));\n          float worldDistx = distance(field.x, aa(vWorldPos.x,vWorldPos.z,angle));\n          float stepf = sx / float(lineNum);\n          float gapWidth = stepf-lineWidth;\n          for(int i=0; i<lineNum; i++){\n            float fw = sx -  stepf * float(i);\n            gap = smoothstep(fw - gapWidth, fw, worldDistx);\n            gap -= smoothstep(fw, fw + f, worldDistx);\n            gap = gap != 0.0 ? 1.0 : 0.0;\n            if(gap != 0.0){\n              // gl_FragColor.rgb = mix(gl_FragColor.rgb, fieldColor, gap);\n              break;\n\n            }\n          }\n          if(gap == 0.0){\n            float fw = field.w;\n            float fadeout = smoothstep(fw - lineHieght, fw, worldDist);\n            fadeout -= smoothstep(fw, fw + f, worldDist);\n            if(fadeout!=0.0 && fieldOpacity!=-1.0) {\n              fadeout = fieldOpacity;\n            }\n            gl_FragColor.rgb = mix(gl_FragColor.rgb, fieldColor, fadeout);\n          }\n        }\n\n      ")},t.needsUpdate=!0}},{key:"resetMaterial",value:function(){this.object.object3d.traverse((function(t){var e=t;e.material&&e.userData.materialO&&(e.material=e.userData.materialO.clone(),e.userData.materialO=void 0)}))}},{key:"play",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.stop();var n=w(!0),r=this.object,o=this.uniforms,a=i(i({},this.options),e),s=a.lineNum,l=a.step,u=a.lineWidth,h=a.pos,d=a.duration,p=r.getSize(),f=p.min,g=p.max,m=p.size,v=s,y=u;l>0&&(v=1,y=m.y/l);var x=o.sizeNum.value.y*(v>1?2:1);return this.tween=new(b().Tween)({val:0}).to({val:1},d).onStart((function(){var e,n=new c.Vector3;"bottom"===h?n.set(f.x-.001,f.y-.001,f.z-.001):"top"===h&&n.set(g.x+.001,g.y+.001,g.z+.001);var i=(null===(e=r.pencil.control)||void 0===e?void 0:e.getAzimuthalAngle())||0,a=t.object.object3d.position.clone();if(i){var s=Math.sqrt(Math.pow(m.x,2)+Math.pow(m.z,2))/2;n.x=a.x+s,n.z=a.z+s;var l=(new c.Vector3).subVectors(n,a),u=new c.Vector3(0,1,0);l.applyAxisAngle(u,i),n.addVectors(a,l)}o.objPos.value.copy(a),o.field.value.set(n.x,n.y,n.z,0),o.angle.value=i,o.lineNum.value=v,o.lineWidth.value=y})).onUpdate((function(t){o.field.value.w=l>0?Math.floor(t.val*l)/l*x:t.val*x})).onStop((function(){o.field.value.w=0,n.reject("stop")})).onComplete((function(){n.resolve()})).start(),n.promise}},{key:"checkRepeat",value:function(){var t=g(v().mark((function t(){var e,n,r,o,a,s,l,c=arguments;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:{},n=i(i({},this.options),e),r=n.yoyo,o=n.repeat,a=n.pos,o===this.options.repeat&&this.initMaterial(),t.next=5,this.play(e);case 5:if(s=t.sent,!s.err){t.next=10;break}return this.resetMaterial(),t.abrupt("return");case 10:if(!o){t.next=17;break}return l=a,r&&(l="bottom"===l?"top":"bottom"),t.next=15,this.checkRepeat({pos:l,repeat:o===1/0?-1:o-1});case 15:t.next=18;break;case 17:this.resetMaterial();case 18:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"start",value:function(){return this.checkRepeat()}},{key:"stop",value:function(){this.tween&&(this.tween.stop(),b().remove(this.tween))}}]),t}(),A=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,t),this.options=void 0,this.object=void 0,this.uniforms=void 0,this.tween=void 0,this.object=e,this.options=i(i({},{color:16777215,lineWidth:2,opacity:.5,fade:!1,position:new c.Vector3(0,0,0),duration:5e3,repeat:0}),n)}return l(t,[{key:"initMaterial",value:function(){var t=this,e=this.options.exclude,n={field:{value:new c.Vector4(0,0,0,1e-4)},color:{value:new c.Color(this.options.color)},opacity:{value:this.options.opacity},lineWidth:{value:this.options.lineWidth}};this.uniforms=n,this.object.object3d.traverse((function(n){var i=n;!i.material||e&&e.includes(i)||(i.userData.materialO?i.material=i.userData.materialO:i.userData.materialO=Array.isArray(i.material)?i.material.map((function(t){return t.clone()})):i.material.clone(),Array.isArray(i.material)?i.material.forEach((function(e){t.setMaterial(e)})):t.setMaterial(i.material))}))}},{key:"setMaterial",value:function(t){var e=this.uniforms;t.onBeforeCompile=function(t){t.uniforms.field=e.field,t.uniforms.fieldColor=e.color,t.uniforms.fieldOpacity=e.opacity,t.uniforms.lineWidth=e.lineWidth,t.vertexShader="\n        varying vec4 vWorldPos;\n        ".concat(t.vertexShader,"\n      ").replace("#include <worldpos_vertex>","#include <worldpos_vertex>\n        vWorldPos = vec4( transformed, 1.0 );\n        #ifdef USE_INSTANCING\n          vWorldPos = instanceMatrix * vWorldPos;\n        #endif\n        vWorldPos = modelMatrix * vWorldPos;\n      "),t.fragmentShader="\n      uniform vec4 field;\n      uniform vec3 fieldColor;\n      uniform float fieldOpacity;\n      uniform float lineWidth;\n      \n      varying vec4 vWorldPos;\n      ".concat(t.fragmentShader,"\n      ").replace("#include <dithering_fragment>","#include <dithering_fragment>\n  \n        float worldDist = distance(field.xyz, vWorldPos.xyz);\n        float fadeoutWidth = lineWidth;\n        vec3 posf = fwidth(vWorldPos.xyz);\n        float f = length(posf);\n\n        float fw = field.w;\n        float fadeout = smoothstep(fw - fadeoutWidth, fw, worldDist);\n        fadeout -= smoothstep(fw, fw + f, worldDist);\n        if(fadeout!=0.0 && fieldOpacity!=-1.0) {\n          fadeout = fieldOpacity;\n        }\n        gl_FragColor.rgb = mix(gl_FragColor.rgb, fieldColor, fadeout);\n  \n      ")},t.needsUpdate=!0}},{key:"resetMaterial",value:function(){this.object.object3d.traverse((function(t){var e=t;e.material&&e.userData.materialO&&(e.material=e.userData.materialO.clone(),e.userData.materialO=void 0)}))}},{key:"play",value:function(){var t=this;this.stop();var e=w(!0),n=this.object,i=this.uniforms,r=this.options,o=r.position,a=r.duration,s=this.options.radius;if(!s){var l=n.getSize().size;s=Math.max(l.x,l.y,l.z)}return this.tween=new(b().Tween)({val:1e-4}).to({val:1},a).onStart((function(){i.field.value.set(o.x,o.y,o.z,1e-4),t.options.fade&&(i.opacity.value=t.options.opacity)})).onUpdate((function(e){i.field.value.w=e.val*s,t.options.fade&&(i.opacity.value=(1-e.val)*t.options.opacity)})).onStop((function(){i.field.value.w=0,e.reject("stop")})).onComplete((function(){e.resolve()})).start(),e.promise}},{key:"checkRepeat",value:function(){var t=g(v().mark((function t(){var e,n,r,o,a=arguments;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},n=i(i({},this.options),e),(r=n.repeat)===this.options.repeat&&this.initMaterial(),t.next=5,this.play();case 5:if(o=t.sent,!o.err){t.next=10;break}return this.resetMaterial(),t.abrupt("return");case 10:if(!r){t.next=15;break}return t.next=13,this.checkRepeat({repeat:r===1/0?-1:r-1});case 13:t.next=16;break;case 15:this.resetMaterial();case 16:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"start",value:function(){return this.checkRepeat()}},{key:"stop",value:function(){this.tween&&(this.tween.stop(),b().remove(this.tween))}}]),t}()})(),t.exports=o})()},8349:function(t,e,n){(function(){var e={7757:function(t,e,n){t.exports=n(5666)},8031:function(t,e,n){"use strict";n.d(e,{ZP:function(){return m}});var i=n(9611),r=n(8814);function o(t,e,n){return o=(0,r.Z)()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&(0,i.Z)(o,n.prototype),o},o.apply(null,arguments)}var a=n(5671),s=n(3144),l=n(136),c=n(3668),u=n(5644),h=n(1270),d=n(645),p=n(5006),f=n(6209),g=n(6530),m=function(t){(0,l.Z)(n,t);var e=(0,c.Z)(n);function n(t){var i;return(0,a.Z)(this,n),(i=e.call(this)).objecttype__="BaseObject",i.key=void 0,i.name=void 0,i.pencil=void 0,i.object3d=void 0,i.isAdd=!1,i.userData={},i.pm=(0,h.Z)(),i.visible=!1,i}return(0,s.Z)(n,[{key:"parent",get:function(){var t=this.object3d.parent;return(null==t?void 0:t.userData.BaseObject_)||this.pencil.scene}},{key:"children",get:function(){return this.object3d.children.map((function(t){return t.userData.BaseObject_})).filter((function(t){return!!t}))}},{key:"draw",value:function(){return new Promise((function(t){t("")}))}},{key:"init",value:function(){}},{key:"create",value:function(){}},{key:"precreate",value:function(){}},{key:"render",value:function(){}},{key:"update",value:function(t,e){}},{key:"resize",value:function(t,e){}},{key:"nameFunc",value:function(t){return"".concat(this.name,"-").concat(t)}},{key:"show",value:function(){return this.object3d&&(this.object3d.visible=!0),this.visible=!0,this}},{key:"hide",value:function(){return this.object3d&&(this.object3d.visible=!1),this.visible=!1,this}},{key:"isVisible",value:function(){return this.visible}},{key:"createMesh",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.object3d=o(u.Mesh,e),this}},{key:"createGroup",value:function(){return this.object3d=new u.Group,this}},{key:"createPoints",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.object3d=o(u.Points,e),this}},{key:"createCSS2DObject",value:function(t){return this.object3d=new f.CSS2DObject(t),this}},{key:"createCSS3DObject",value:function(t){return this.object3d=new g.CSS3DObject(t),this}},{key:"createCSS3DSprite",value:function(t){return this.object3d=new g.CSS3DSprite(t),this}},{key:"add",value:function(){var t;return(t=this.object3d).add.apply(t,arguments),this}},{key:"remove",value:function(){var t;return(t=this.object3d).remove.apply(t,arguments),this}},{key:"getSize",value:function(){var t=(new u.Box3).setFromObject(this.object3d);return{min:t.min,max:t.max,size:t.getSize(new u.Vector3)}}},{key:"traverse",value:function(t){t(this),this.children.forEach((function(e){e.traverse(t)}))}},{key:"dispose",value:function(){var t;null===(t=this.object3d)||void 0===t||t.traverse((function(t){(0,p.disposeMesh)(t)}))}}]),n}(d.Z)},645:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(5671),r=n(3144),o=n(2494),a=n.n(o),s=function(){function t(){(0,i.Z)(this,t),this.guiParams={}}return(0,r.Z)(t,[{key:"checkGuiParams",value:function(){this.guiParams=this.guiParams instanceof Function?this.guiParams():this.guiParams}},{key:"showGuiParams",value:function(t){var e=this;this.checkGuiParams(),t&&Object.keys(this.guiParams).forEach((function(n){var i=t.addFolder(n),r=i.title,o=e.guiParams[n];Object.keys(o).forEach((function(a){var s=o[a],l=s.view,c=s.min,u=s.max,h=s.step,d=s.name,p=s.paramMap,f=s.items,g=s.value,m=s.target,v=s.onClick,y="".concat(r,"-").concat(a),b="undefined"==typeof g&&m,x=b?m():o[a],w=b?a:"value";if("point"===l){var _=m(),C={};Object.keys(_).forEach((function(t){C[t]={min:c,max:u,step:h}})),t.addPointPicker({name:a,value:_,group:i,range:C})}else"euler"===l?t.addRotationPicker({name:a,value:m(),group:i}):"material"===l?t.addMaterialPickerGroup({name:a,value:m(),group:i}):"object3D"===l?t.addObjectPickerGroup({name:a,value:m(),group:i}):"button"===l?i.addButton({title:d||a}).on("click",(function(){null==v||v()})):i.addInput(x,w,{label:d||a,min:c,max:u,step:h,presetKey:y,options:f}).on("change",(function(t){var i=t.value;e.setGuiTargetValue(n,a,i,p)}))}))}))}},{key:"setGuiTargetValue",value:function(t,e,n,i){var r=this.guiParams[t][e],o=r.onChange,a=r.target,s=r.value,l=e.toLowerCase().indexOf("color")>-1;if(a&&("undefined"!=typeof s||!a)){var c=a();Array.isArray(c)||(c=[c]),c.forEach((function(t){if(t)if(l)try{t[i||e].set(n)}catch(r){"color"===e||i||console.warn("".concat(e," is not a color,set paramMap"))}else t[i||e]=n}))}o&&o(n)}},{key:"setGuiTargetValueByParams",value:function(){var t=this;this.checkGuiParams(),Object.keys(this.guiParams).forEach((function(e){Object.keys(t.guiParams[e]).forEach((function(n){var i=t.guiParams[e][n];"undefined"!=typeof i.value&&t.setGuiTargetValue(e,n,i.value,i.paramMap)}))}))}},{key:"guiParamTween",value:function(t,e,n){var i=this,r=n.duration,o=void 0===r?0:r;this.checkGuiParams();var s=this.guiParams[t][e],l=s.to,c=s.paramMap,u=void 0===c?"":c;return new(a().Tween)(this.guiParams[t][e]).to({value:l},o).onUpdate((function(n){i.setGuiTargetValue(t,e,n.value,u)}))}}]),t}()},7516:function(t,e,i){"use strict";i.d(e,{BaseObject:function(){return ve.ZP}});var r=i(181);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=(0,r.Z)(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}var a=i(1413),s=i(5671),l=i(3144),c=i(2494),u=i.n(c),h=i(5644),d=i(7187),p=n(9996),f=i.n(p),g=n(5079),m=i.n(g),v=i(645),y={None:h.NoToneMapping,Linear:h.LinearToneMapping,Reinhard:h.ReinhardToneMapping,Cineon:h.CineonToneMapping,ACESFilmic:h.ACESFilmicToneMapping},b={canvas:void 0,context:null,antialias:!1,devicePixelRatio:window.devicePixelRatio,powerPreference:"high-performance",toneMapping:"None",toneMappingExposure:1,alpha:!1,autoClear:!1,outputEncoding:h.LinearEncoding,logarithmicDepthBuffer:!1,preserveDrawingBuffer:!1},x=function(){function t(e){(0,s.Z)(this,t),this.renderer=void 0,this.options=void 0,this.options=e;var n=e.width,i=e.height,r=e.rendererParams,o=r.canvas,a=r.context,l=r.alpha,c=r.autoClear,u=r.devicePixelRatio,d=r.antialias,p=r.powerPreference,f=r.toneMapping,g=r.toneMappingExposure,m=r.outputEncoding,v=r.logarithmicDepthBuffer,b=r.preserveDrawingBuffer,x=new h.WebGLRenderer({canvas:o,context:a,alpha:l,antialias:d,powerPreference:p,logarithmicDepthBuffer:v,preserveDrawingBuffer:b});x.setSize(n,i),x.setPixelRatio(u),x.autoClear=c,x.sortObjects=!1,x.toneMapping=y[f],x.toneMappingExposure=g,x.outputEncoding=m,x.domElement.tabIndex=0,x.domElement.style.outline="none",this.renderer=x}return(0,l.Z)(t,[{key:"setSize",value:function(t,e){this.renderer.setSize(t,e)}},{key:"render",value:function(){var t=this.options,e=t.scene,n=t.camera;this.renderer.render(e,n)}},{key:"setGui",value:function(t){var e=this,n=new v.Z;n.guiParams={renderer:{toneMapping:{value:y[this.options.rendererParams.toneMapping],items:y,target:function(){return e.renderer}},toneMappingExposure:{value:this.options.rendererParams.toneMappingExposure,min:0,max:Math.pow(2,4),target:function(){return e.renderer}}}},n.showGuiParams(t)}},{key:"dispose",value:function(){var t,e,n;null===(t=this.renderer)||void 0===t||t.clear(),null===(e=this.renderer)||void 0===e||e.dispose(),null===(n=this.renderer)||void 0===n||n.renderLists.dispose(),this.renderer=void 0}}]),t}(),w=function(){function t(e){(0,s.Z)(this,t),this.options=void 0,this.camera=void 0,this.oldCameraPosition=new h.Vector3,this.oldCameraRotation=new h.Euler,this.customCamera=!1,this.options=e;var n=e.isdev,i=e.width,r=e.height,o=e.cameraParams;if(o instanceof h.Camera)this.camera=o,this.customCamera=!0;else{var a=o.fov,l=o.far,c=o.near,u=new h.PerspectiveCamera(a,i/r,c,l);a&&l||!n||(console.warn("camera.fov 默认值为 45，旧版本为 12"),console.warn("camera.far 默认值为 1000，旧版本为 20000")),u.position.set(0,0,400),u.lookAt(0,0,0),this.camera=u}}return(0,l.Z)(t,[{key:"checkCameraChange",value:function(){var t=this.camera,e=this.oldCameraPosition.equals(t.position)&&this.oldCameraRotation.equals(t.rotation);return this.oldCameraPosition=t.position.clone(),this.oldCameraRotation=t.rotation.clone(),!e}},{key:"setSize",value:function(t,e){this.camera instanceof h.PerspectiveCamera&&(this.camera.aspect=t/e),this.camera.updateProjectionMatrix()}},{key:"dispose",value:function(){this.camera=void 0}},{key:"setGui",value:function(t){var e=this,n=new v.Z;n.guiParams={camera:{x:{min:-1e4,max:1e4,step:.01,target:function(){return e.camera.position}},y:{min:-1e4,max:1e4,step:.01,target:function(){return e.camera.position}},z:{min:-1e4,max:1e4,step:.01,target:function(){return e.camera.position}},near:{min:0,max:1e3,step:1,target:function(){return e.camera},onChange:function(t){e.camera.updateProjectionMatrix()}},far:{min:0,max:2e4,step:1,target:function(){return e.camera},onChange:function(t){e.camera.updateProjectionMatrix()}}}},this.camera instanceof h.PerspectiveCamera&&(n.guiParams.camera.fov={min:0,max:90,step:1,target:function(){return e.camera},onChange:function(t){e.camera.updateProjectionMatrix()}}),n.showGuiParams(t)}}]),t}(),_=i(5006),C=function(){function t(e){(0,s.Z)(this,t),this.options=void 0,this.scene=void 0,this.options=e;var n=e.camera,i=e.sceneParams.background,r=new h.Scene;i&&(r.background=i),r.add(n),this.scene=r}return(0,l.Z)(t,[{key:"addLight",value:function(){var t;null===(t=this.scene)||void 0===t||t.add(new h.AmbientLight(4210752),new h.PointLight(16777215,1))}},{key:"addAxesHelper",value:function(){var t,e=new h.AxesHelper(100);null===(t=this.scene)||void 0===t||t.add(e)}},{key:"dispose",value:function(){var t;null===(t=this.scene)||void 0===t||t.traverse((function(t){(0,_.disposeMesh)(t)})),this.scene=void 0}}]),t}(),A=n(9365),I=function(){function t(e){(0,s.Z)(this,t),this.options=void 0,this.control=void 0,this.limitPanV=void 0,this.options=e;var n=e.camera,i=e.controlParams,r=e.mapControl,o=i.domElement,a=r?new A.MapControls(n,o):new A.OrbitControls(n,o);a.minPolarAngle=.15*Math.PI,a.maxPolarAngle=.85*Math.PI,a.enableDamping=!0,a.dampingFactor=.063,a.autoRotate=!1,a.autoRotateSpeed=-60,a.enableZoom=!0,a.zoomSpeed=.2,this.control=a}return(0,l.Z)(t,[{key:"limitPan",value:function(t){var e=t.maxX,n=void 0===e?1/0:e,i=t.minX,r=void 0===i?-1/0:i,o=t.maxZ,a=void 0===o?1/0:o,s=t.minZ,l=void 0===s?-1/0:s,c=t.maxY,u=void 0===c?1/0:c,d=t.minY,p=void 0===d?-1/0:d,f=this.limitPanV||new h.Vector3,g=this.control,m=this.options.camera,v=new h.Vector3(r,p,l),y=new h.Vector3(n,u,a);this.limitPanV=f,f.copy(g.target),g.target.clamp(v,y),f.sub(g.target),m.position.sub(f)}},{key:"setGui",value:function(t){var e,n,i=t.findFolder("camera"),r=null===(e=this.control)||void 0===e?void 0:e.target,o=t.addFolder("target",i);r instanceof h.Vector3&&(o.addInput(r,"x",{min:-1e4,max:1e4,step:.01}),o.addInput(r,"y",{min:-1e4,max:1e4,step:.01}),o.addInput(r,"z",{min:-1e4,max:1e4,step:.01}),null===(n=this.control)||void 0===n||n.addEventListener("change",(function(){var e;null===(e=t.pane)||void 0===e||e.refresh()})))}},{key:"update",value:function(){var t;null===(t=this.control)||void 0===t||t.update()}},{key:"dispose",value:function(){var t;null===(t=this.control)||void 0===t||t.dispose(),this.control=void 0}}]),t}(),S=i(2982),M=n(2327),k=n(6543),E=function(){function t(e,n){(0,s.Z)(this,t),this.element=void 0,this.renderer=void 0,this.startPoint=new h.Vector2,this.pointTopLeft=new h.Vector2,this.pointBottomRight=new h.Vector2,this.isDown=!1,this.active=!1,this.onPointerDownHandler=void 0,this.onPointerMoveHandler=void 0,this.onPointerUpHandler=void 0,this.element=document.createElement("div"),this.element.classList.add(n),this.element.style.pointerEvents="none",this.renderer=e,this.onPointerDownHandler=this.onPointerDown.bind(this),this.onPointerMoveHandler=this.onPointerMove.bind(this),this.onPointerUpHandler=this.onPointerUp.bind(this),this.renderer.domElement.addEventListener("pointerdown",this.onPointerDownHandler),this.renderer.domElement.addEventListener("pointermove",this.onPointerMoveHandler),this.renderer.domElement.addEventListener("pointerup",this.onPointerUpHandler)}return(0,l.Z)(t,[{key:"dispose",value:function(){this.renderer.domElement.removeEventListener("pointerdown",this.onPointerDownHandler),this.renderer.domElement.removeEventListener("pointermove",this.onPointerMoveHandler),this.renderer.domElement.removeEventListener("pointerup",this.onPointerUpHandler),this.element=void 0,this.renderer=void 0}},{key:"onPointerDown",value:function(t){this.active&&(this.isDown=!0,this.onSelectStart(t))}},{key:"onPointerMove",value:function(t){this.isDown&&this.active&&this.onSelectMove(t)}},{key:"onPointerUp",value:function(){this.active&&(this.isDown=!1,this.onSelectOver())}},{key:"onSelectStart",value:function(t){this.element&&this.renderer&&(this.element.style.display="none",this.renderer.domElement.parentElement.appendChild(this.element),this.element.style.left="".concat(t.clientX,"px"),this.element.style.top="".concat(t.clientY,"px"),this.element.style.width="0px",this.element.style.height="0px",this.startPoint.x=t.clientX,this.startPoint.y=t.clientY)}},{key:"onSelectMove",value:function(t){this.element&&this.renderer&&(this.element.style.display="block",this.pointBottomRight.x=Math.max(this.startPoint.x,t.clientX),this.pointBottomRight.y=Math.max(this.startPoint.y,t.clientY),this.pointTopLeft.x=Math.min(this.startPoint.x,t.clientX),this.pointTopLeft.y=Math.min(this.startPoint.y,t.clientY),this.element.style.left="".concat(this.pointTopLeft.x,"px"),this.element.style.top="".concat(this.pointTopLeft.y,"px"),this.element.style.width="".concat(this.pointBottomRight.x-this.pointTopLeft.x,"px"),this.element.style.height="".concat(this.pointBottomRight.y-this.pointTopLeft.y,"px"))}},{key:"onSelectOver",value:function(){var t;this.element&&this.renderer&&(null===(t=this.element.parentElement)||void 0===t||t.removeChild(this.element))}}]),t}(),T=i(3379),O=i.n(T),P=i(7795),j=i.n(P),L=i(569),D=i.n(L),R=i(3565),B=i.n(R),N=i(9216),F=i.n(N),z=i(4589),V=i.n(z),G=i(6004),H={};H.styleTagTransform=V(),H.setAttributes=B(),H.insert=D().bind(null,"head"),H.domAPI=j(),H.insertStyleElement=F(),O()(G.Z,H);var W=G.Z&&G.Z.locals?G.Z.locals:void 0,U=function(){function t(e){var n=this;(0,s.Z)(this,t),this.control=void 0,this.options=void 0,this.eventList=[],this.pickGroup=new h.Object3D,this.selectionBox=void 0,this.selectionHelper=void 0,this.selecItems=[];var i=e.domElement,r=e.pencil,o=new M.TransformControls(r.camera,i);o.addEventListener("dragging-changed",(function(t){r.control&&(r.control.enabled=!t.value)})),o.addEventListener("enabled-changed",(function(t){t.value||o.detach()})),o.addEventListener("change",(function(){var t,e;if((null===(t=o.object)||void 0===t?void 0:t.uuid)===(null===(e=n.pickGroup)||void 0===e?void 0:e.uuid)&&o.dragging)switch(o.mode){case"translate":n.selecItems.forEach((function(t){var e;return t.position.add(n.pickGroup.position.clone().sub(null===(e=n.pickGroup)||void 0===e?void 0:e.userData.oldPosition))})),n.pickGroup.userData.oldPosition=o.object.position.clone();break;case"scale":n.selecItems.forEach((function(t){return t.scale.copy(o.object.scale)}));break;case"rotate":n.selecItems.forEach((function(t){return t.rotation.copy(o.object.rotation)}))}}));var a=new k.SelectionBox(r.camera,r.scene),l=new E(r.renderer,W["selection-helper"]);this.selectionBox=a,this.selectionHelper=l,this.eventList.push({event:"pointerdown",handler:this.pointerDownHandler.bind(this)},{event:"pointerup",handler:this.pointerUpHandler.bind(this)},{event:"keydown",handler:this.keyDownHandler.bind(this)},{event:"keyup",handler:this.keyUpHandler.bind(this)}),this.eventList.forEach((function(t){var e=t.event,n=t.handler;i.addEventListener(e,n)})),o.enabled=!1,this.options=e,this.control=o}return(0,l.Z)(t,[{key:"traverse",value:function(t,e){var n=this;t.length&&t.forEach((function(t){e(t),n.traverse(t.children,e)}))}},{key:"getParent",value:function(t){return t.parent&&t.parent!==this.options.pencil.scene?this.getParent(t.parent):t}},{key:"allMeshes",get:function(){var t,e=[];return this.traverse(null===(t=this.options.pencil.scene)||void 0===t?void 0:t.children.filter((function(t){return t.userData.BaseObject_})),(function(t){t instanceof h.Mesh&&t.visible&&e.push(t)})),e}},{key:"pointerDownHandler",value:function(t){var e,n;if(null!==(e=this.control)&&void 0!==e&&e.enabled){var i=t.ctrlKey||t.metaKey;null!==(n=this.selectionHelper)&&void 0!==n&&n.active&&this.selectionBox.startPoint.set(t.clientX/window.innerWidth*2-1,-t.clientY/window.innerHeight*2+1,.5);var r,o,a=this.options.pencil.pick(t,this.allMeshes);if(a)if(i){var s,l=this.getParent(a.object);this.selecItems.find((function(t){return t.uuid===l.uuid}))||null===(s=this.selecItems)||void 0===s||s.push(l)}else(null===(r=this.control)||void 0===r||null===(o=r.object)||void 0===o?void 0:o.uuid)!==a.object.uuid&&(this.attach(a.object),this.selecItems.length=0)}}},{key:"getCenter",value:function(t){if(!t.length)return new h.Vector3(0,0,0);var e=t.map((function(t){return t.getWorldPosition(new h.Vector3)})),n=e.map((function(t){return t.x})),i=e.map((function(t){return t.y})),r=e.map((function(t){return t.z})),o=Math.min.apply(Math,(0,S.Z)(n)),a=Math.max.apply(Math,(0,S.Z)(n)),s=Math.min.apply(Math,(0,S.Z)(i)),l=Math.max.apply(Math,(0,S.Z)(i)),c=Math.min.apply(Math,(0,S.Z)(r)),u=Math.max.apply(Math,(0,S.Z)(r));return new h.Vector3((o+a)/2,(s+l)/2,(c+u)/2)}},{key:"pointerUpHandler",value:function(t){var e,n,i,r,o,a=this;if(null!==(e=this.selectionHelper)&&void 0!==e&&e.active&&this.control.enabled){this.selectionBox.endPoint.set(t.clientX/window.innerWidth*2-1,-t.clientY/window.innerHeight*2+1,.5);var s=this.selectionBox.select().filter((function(t){return a.allMeshes.find((function(e){return e.uuid===t.uuid}))})).map((function(t){return a.getParent(t)}));s.length&&(this.selecItems=s);var l,c,u,h=this.getCenter(this.selecItems);null===(n=this.pickGroup)||void 0===n||n.position.copy(h),this.pickGroup.userData.oldPosition=h.clone(),this.selecItems.length&&(null===(i=this.control)||void 0===i||null===(r=i.object)||void 0===r?void 0:r.uuid)!==(null===(o=this.pickGroup)||void 0===o?void 0:o.uuid)&&(null===(l=this.pickGroup)||void 0===l||l.rotation.set(0,0,0),null===(c=this.pickGroup)||void 0===c||c.scale.set(1,1,1),null===(u=this.options.pencil.scene)||void 0===u||u.add(this.pickGroup),this.attach(this.pickGroup))}}},{key:"keyDownHandler",value:function(t){var e,n=this.options.pencil.gui;switch(t.key){case"Meta":case"Alt":this.options.pencil.control&&(this.options.pencil.control.enabled=!1),this.selectionHelper.active=!0;break;case"Shift":null===(e=this.control)||void 0===e||e.setSpace("local"===this.control.space?"world":"local"),n.pane.refresh();break;case"Escape":this.detach();break;case"t":this.control.setMode("translate"),n.pane.refresh();break;case"r":this.control.setMode("rotate"),n.pane.refresh();break;case"s":this.control.setMode("scale"),n.pane.refresh();break;case" ":this.control.enabled=!this.control.enabled,n.pane.refresh()}}},{key:"keyUpHandler",value:function(){var t;null!==(t=this.control)&&void 0!==t&&t.enabled&&(this.options.pencil.control&&(this.options.pencil.control.enabled=!0),this.selectionHelper.active=!1)}},{key:"attach",value:function(t){var e;null===(e=this.control)||void 0===e||e.attach(t)}},{key:"detach",value:function(){var t;null===(t=this.control)||void 0===t||t.detach()}},{key:"setGui",value:function(t){var e=this;if(this.control){var n=new v.Z;n.guiParams={transformControl:{enabled:{target:function(){return e.control}},size:{target:function(){return e.control},min:0,max:5,step:.1},mode:{target:function(){return e.control},items:{translate:"translate",rotate:"rotate",scale:"scale"},onChange:function(t){var n;null===(n=e.control)||void 0===n||n.setMode(t)}},space:{target:function(){return e.control},items:{world:"world",local:"local"},onChange:function(t){var n;null===(n=e.control)||void 0===n||n.setSpace(t)}},detach:{view:"button",onClick:function(){var t;null===(t=e.control)||void 0===t||t.detach()}},reset:{view:"button",onClick:function(){var t;null===(t=e.control)||void 0===t||t.reset()}}}},n.showGuiParams(t);var i=t.addFolder("object",t.findFolder("transformControl")),r=["position","scale","rotation"];this.control.addEventListener("object-changed",(function(t){if(i.children.length&&i.children.forEach((function(t){i.remove(t)})),t.value){var n=t.value;r.forEach((function(t){i.addMonitor(n[t],"x",{label:"".concat(t,".x"),multiline:!0}),i.addMonitor(n[t],"y",{label:"".concat(t,".y"),multiline:!0}),i.addMonitor(n[t],"z",{label:"".concat(t,".z"),multiline:!0})})),i.expanded=!0}else{var o;i.expanded=!1,e.selecItems.length&&(null===(o=e.pickGroup)||void 0===o||o.removeFromParent(),e.selecItems.length=0)}}))}}},{key:"dispose",value:function(){var t,e,n=this;this.eventList.forEach((function(t){var e=t.event,i=t.handler;n.options.domElement.removeEventListener(e,i)})),this.eventList.length=0,null===(t=this.control)||void 0===t||t.dispose(),this.control=void 0,null===(e=this.selectionHelper)||void 0===e||e.dispose(),this.selectionHelper=void 0,this.selectionBox=void 0,this.selecItems.length=0,this.pickGroup&&(this.pickGroup.removeFromParent(),this.pickGroup=void 0)}}]),t}(),Z=i(6530),Y=new h.Vector3,X=new h.Matrix4,q=new h.Matrix4,K=new h.Vector3,Q=new h.Vector3,J=(0,l.Z)((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.Z)(this,t);var n,i,r,o,a=this,l={objects:new WeakMap},c=void 0!==e.element?e.element:document.createElement("div");function u(t,e,n){if(t.isCSS2DObject){Y.setFromMatrixPosition(t.matrixWorld),Y.applyMatrix4(q);var i=!0===t.visible&&Y.z>=-1&&Y.z<=1&&!0===t.layers.test(n.layers);if(t.element.style.display=!0===i?"":"none",!0===i){t.onBeforeRender(a,e,n);var s=t.element;s.style.transform="translate(-50%,-50%) translate(".concat(Y.x*r+r,"px,").concat(-Y.y*o+o,"px)"),s.parentNode!==c&&c.appendChild(s),t.onAfterRender(a,e,n)}var h={distanceToCameraSquared:d(n,t)};l.objects.set(t,h)}for(var p=0,f=t.children.length;p<f;p++)u(t.children[p],e,n)}function d(t,e){return K.setFromMatrixPosition(t.matrixWorld),Q.setFromMatrixPosition(e.matrixWorld),K.distanceToSquared(Q)}function p(t){var e=[];return t.traverse((function(t){t.isCSS2DObject&&e.push(t)})),e}function f(t){for(var e=p(t).sort((function(t,e){return t.renderOrder!==e.renderOrder?e.renderOrder-t.renderOrder:l.objects.get(t).distanceToCameraSquared-l.objects.get(e).distanceToCameraSquared})),n=e.length,i=0,r=e.length;i<r;i++){var o=e[i].userData.zIndexFix||0,a=e[i].userData.zIndex;e[i].element.style.zIndex=null!=a?a:n-i+o}}c.style.overflow="hidden",this.domElement=c,this.getSize=function(){return{width:n,height:i}},this.render=function(t,e){+h.REVISION<144?(!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld()):(!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),null===e.parent&&!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld()),X.copy(e.matrixWorldInverse),q.multiplyMatrices(e.projectionMatrix,X),u(t,t,e),f(t)},this.setSize=function(t,e){r=(n=t)/2,o=(i=e)/2,c.style.width="".concat(t,"px"),c.style.height="".concat(e,"px")}})),$={zIndex:"auto"},tt=function(){function t(e){(0,s.Z)(this,t),this.css2Drenderer=void 0,this.css3Drenderer=void 0,this.container=void 0,this.staticRender=!1,this.container=e}return(0,l.Z)(t,[{key:"addRenderer",value:function(t,e){var n=this.container,i=n.offsetWidth,r=n.offsetHeight,o="css2d"===t?new J:new Z.CSS3DRenderer;o.domElement.style.position="absolute",o.domElement.style.top="0",o.domElement.style.pointerEvents="none",o.domElement.style.zIndex=e.zIndex,o.setSize(i,r),n.appendChild(o.domElement),"css2d"===t?this.css2Drenderer=o:"css3d"===t&&(this.css3Drenderer=o)}},{key:"setSize",value:function(t,e){var n,i;null===(n=this.css2Drenderer)||void 0===n||n.setSize(t,e),null===(i=this.css3Drenderer)||void 0===i||i.setSize(t,e)}},{key:"render",value:function(t,e,n){var i,r;this.staticRender&&!n.checkCameraChange()||(null===(i=this.css2Drenderer)||void 0===i||i.render(t,e),null===(r=this.css3Drenderer)||void 0===r||r.render(t,e))}},{key:"dispose",value:function(){this.css2Drenderer=void 0,this.css3Drenderer=void 0}}]),t}(),et=n(5786),nt=n(4458),it=n(7531),rt=n(1154),ot=n(2448),at=n(9707),st=n(4033),lt=n(185),ct=!1,ut=!1!==function(){try{var t=document.createElement("canvas");return!(!window.WebGL2RenderingContext||!t.getContext("webgl2"))}catch(e){return!1}}(),ht=[{text:"UVMapping",value:h.UVMapping},{text:"CubeReflectionMapping",value:h.CubeReflectionMapping},{text:"CubeRefractionMapping",value:h.CubeRefractionMapping},{text:"EquirectangularReflectionMapping",value:h.EquirectangularReflectionMapping},{text:"EquirectangularRefractionMapping",value:h.EquirectangularRefractionMapping},{text:"CubeUVReflectionMapping",value:h.CubeUVReflectionMapping}],dt=[{text:"RepeatWrapping",value:h.RepeatWrapping},{text:"ClampToEdgeWrapping",value:h.ClampToEdgeWrapping},{text:"MirroredRepeatWrapping",value:h.MirroredRepeatWrapping}],pt=[{text:"NearestFilter",value:h.NearestFilter},{text:"LinearFilter",value:h.LinearFilter}],ft=[{text:"NearestFilter",value:h.NearestFilter},{text:"NearestMipMapNearestFilter",value:h.NearestMipMapNearestFilter},{text:"NearestMipMapLinearFilter",value:h.NearestMipMapLinearFilter},{text:"LinearFilter",value:h.LinearFilter},{text:"LinearMipMapNearestFilter",value:h.LinearMipMapNearestFilter},{text:"LinearMipMapLinearFilter",value:h.LinearMipMapLinearFilter}],gt=[{text:"LinearEncoding",value:h.LinearEncoding},{text:"sRGBEncoding",value:h.sRGBEncoding},{text:"BasicDepthPacking",value:h.BasicDepthPacking},{text:"RGBADepthPacking",value:h.RGBADepthPacking}],mt=[{text:"FrontSide",value:h.FrontSide},{text:"BackSide",value:h.BackSide},{text:"DoubleSide",value:h.DoubleSide}],vt=[{text:"NoBlending",value:h.NoBlending},{text:"NormalBlending",value:h.NormalBlending},{text:"AdditiveBlending",value:h.AdditiveBlending},{text:"SubtractiveBlending",value:h.SubtractiveBlending},{text:"MultiplyBlending",value:h.MultiplyBlending},{text:"CustomBlending",value:h.CustomBlending}],yt=i(3978),bt=i(1488),xt=i(136),wt=i(3668),_t=n(8304),Ct=n(1928),At=function(t){(0,xt.Z)(n,t);var e=(0,wt.Z)(n);function n(t,i,r,o){var a;(0,s.Z)(this,n),(a=e.call(this)).strength=void 0,a.radius=void 0,a.threshold=void 0,a.resolution=void 0,a.clearColor=void 0,a.renderTargetsHorizontal=void 0,a.renderTargetsVertical=void 0,a.nMips=void 0,a.renderTargetBright=void 0,a.highPassUniforms=void 0,a.materialHighPassFilter=void 0,a.separableBlurMaterials=void 0,a.compositeMaterial=void 0,a.bloomTintColors=void 0,a.copyUniforms=void 0,a.materialCopy=void 0,a._oldClearColor=void 0,a.oldClearAlpha=void 0,a.basic=void 0,a.fsQuad=void 0,a.strength=void 0!==i?i:1,a.radius=r,a.threshold=o,a.resolution=void 0!==t?new h.Vector2(t.x,t.y):new h.Vector2(256,256),a.clearColor=new h.Color(0,0,0);var l={minFilter:h.LinearFilter,magFilter:h.LinearFilter,format:h.RGBAFormat};a.renderTargetsHorizontal=[],a.renderTargetsVertical=[],a.nMips=5;var c=Math.round(a.resolution.x/2),u=Math.round(a.resolution.y/2);a.renderTargetBright=new h.WebGLRenderTarget(c,u,l),a.renderTargetBright.texture.name="UnrealBloomPass.bright",a.renderTargetBright.texture.generateMipmaps=!1;for(var d=0;d<a.nMips;d++){var p=new h.WebGLRenderTarget(c,u,l);p.texture.name="UnrealBloomPass.h".concat(d),p.texture.generateMipmaps=!1,a.renderTargetsHorizontal.push(p);var f=new h.WebGLRenderTarget(c,u,l);f.texture.name="UnrealBloomPass.v".concat(d),f.texture.generateMipmaps=!1,a.renderTargetsVertical.push(f),c=Math.round(c/2),u=Math.round(u/2)}void 0===Ct.LuminosityHighPassShader&&console.error("THREE.UnrealBloomPass relies on LuminosityHighPassShader");var g=Ct.LuminosityHighPassShader;a.highPassUniforms=h.UniformsUtils.clone(g.uniforms),a.highPassUniforms.luminosityThreshold.value=o,a.highPassUniforms.smoothWidth.value=.01,a.materialHighPassFilter=new h.ShaderMaterial({uniforms:a.highPassUniforms,vertexShader:g.vertexShader,fragmentShader:g.fragmentShader,defines:{}}),a.separableBlurMaterials=[];var m=[3,5,7,9,11];c=Math.round(a.resolution.x/2),u=Math.round(a.resolution.y/2);for(var v=0;v<a.nMips;v++)a.separableBlurMaterials.push(a.getSeperableBlurMaterial(m[v])),a.separableBlurMaterials[v].uniforms.texSize.value=new h.Vector2(c,u),c=Math.round(c/2),u=Math.round(u/2);a.compositeMaterial=a.getCompositeMaterial(a.nMips),a.compositeMaterial.uniforms.blurTexture1.value=a.renderTargetsVertical[0].texture,a.compositeMaterial.uniforms.blurTexture2.value=a.renderTargetsVertical[1].texture,a.compositeMaterial.uniforms.blurTexture3.value=a.renderTargetsVertical[2].texture,a.compositeMaterial.uniforms.blurTexture4.value=a.renderTargetsVertical[3].texture,a.compositeMaterial.uniforms.blurTexture5.value=a.renderTargetsVertical[4].texture,a.compositeMaterial.uniforms.bloomStrength.value=i,a.compositeMaterial.uniforms.bloomRadius.value=.1,a.compositeMaterial.needsUpdate=!0,a.compositeMaterial.uniforms.bloomFactors.value=[1,.8,.6,.4,.2],a.bloomTintColors=[new h.Vector3(1,1,1),new h.Vector3(1,1,1),new h.Vector3(1,1,1),new h.Vector3(1,1,1),new h.Vector3(1,1,1)],a.compositeMaterial.uniforms.bloomTintColors.value=a.bloomTintColors,void 0===rt.CopyShader&&console.error("THREE.UnrealBloomPass relies on CopyShader");var y=rt.CopyShader;return a.copyUniforms=h.UniformsUtils.clone(y.uniforms),a.copyUniforms.opacity.value=1,a.materialCopy=new h.ShaderMaterial({uniforms:a.copyUniforms,vertexShader:y.vertexShader,fragmentShader:y.fragmentShader,blending:h.AdditiveBlending,depthTest:!1,depthWrite:!1,transparent:!0}),a.enabled=!0,a.needsSwap=!1,a._oldClearColor=new h.Color,a.oldClearAlpha=1,a.basic=new h.MeshBasicMaterial,a.fsQuad=new _t.FullScreenQuad(void 0),a}return(0,l.Z)(n,[{key:"dispose",value:function(){for(var t=0;t<this.renderTargetsHorizontal.length;t++)this.renderTargetsHorizontal[t].dispose();for(var e=0;e<this.renderTargetsVertical.length;e++)this.renderTargetsVertical[e].dispose();this.renderTargetBright.dispose()}},{key:"setSize",value:function(t,e){var n=Math.round(t/2),i=Math.round(e/2);this.renderTargetBright.setSize(n,i);for(var r=0;r<this.nMips;r++)this.renderTargetsHorizontal[r].setSize(n,i),this.renderTargetsVertical[r].setSize(n,i),this.separableBlurMaterials[r].uniforms.texSize.value=new h.Vector2(n,i),n=Math.round(n/2),i=Math.round(i/2)}},{key:"render",value:function(t,e,i,r,o){t.getClearColor(this._oldClearColor),this.oldClearAlpha=t.getClearAlpha();var a=t.autoClear;t.autoClear=!1,t.setClearColor(this.clearColor,0),o&&t.state.buffers.stencil.setTest(!1),this.renderToScreen&&(this.fsQuad.material=this.basic,this.basic.map=i.texture,t.setRenderTarget(null),t.clear(),this.fsQuad.render(t)),this.highPassUniforms.tDiffuse.value=i.texture,this.highPassUniforms.luminosityThreshold.value=this.threshold,this.fsQuad.material=this.materialHighPassFilter,t.setRenderTarget(this.renderTargetBright),t.clear(),this.fsQuad.render(t);for(var s=this.renderTargetBright,l=0;l<this.nMips;l++)this.fsQuad.material=this.separableBlurMaterials[l],this.separableBlurMaterials[l].uniforms.colorTexture.value=s.texture,this.separableBlurMaterials[l].uniforms.direction.value=n.BlurDirectionX,t.setRenderTarget(this.renderTargetsHorizontal[l]),t.clear(),this.fsQuad.render(t),this.separableBlurMaterials[l].uniforms.colorTexture.value=this.renderTargetsHorizontal[l].texture,this.separableBlurMaterials[l].uniforms.direction.value=n.BlurDirectionY,t.setRenderTarget(this.renderTargetsVertical[l]),t.clear(),this.fsQuad.render(t),s=this.renderTargetsVertical[l];this.fsQuad.material=this.compositeMaterial,this.compositeMaterial.uniforms.bloomStrength.value=this.strength,this.compositeMaterial.uniforms.bloomRadius.value=this.radius,this.compositeMaterial.uniforms.bloomTintColors.value=this.bloomTintColors,t.setRenderTarget(this.renderTargetsHorizontal[0]),t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.materialCopy,this.copyUniforms.tDiffuse.value=this.renderTargetsHorizontal[0].texture,o&&t.state.buffers.stencil.setTest(!0),this.renderToScreen?(t.setRenderTarget(null),this.fsQuad.render(t)):(t.setRenderTarget(i),this.fsQuad.render(t)),t.setClearColor(this._oldClearColor,this.oldClearAlpha),t.autoClear=a}},{key:"getSeperableBlurMaterial",value:function(t){return new h.ShaderMaterial({defines:{KERNEL_RADIUS:t,SIGMA:t},uniforms:{colorTexture:{value:null},texSize:{value:new h.Vector2(.5,.5)},direction:{value:new h.Vector2(.5,.5)}},vertexShader:"varying vec2 vUv;\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"#include <common>\n\t\t\t\tvarying vec2 vUv;\n\t\t\t\tuniform sampler2D colorTexture;\n\t\t\t\tuniform vec2 texSize;\n\t\t\t\tuniform vec2 direction;\n\t\t\t\tfloat gaussianPdf(in float x, in float sigma) {\n\t\t\t\t\treturn 0.39894 * exp( -0.5 * x * x/( sigma * sigma))/sigma;\n\t\t\t\t}\n\t\t\t\tvoid main() {\n          vec2 invSize = 1.0 / texSize;          float fSigma = float(SIGMA);          float weightSum = gaussianPdf(0.0, fSigma);          float alphaSum = 0.0;          vec3 diffuseSum = texture2D( colorTexture, vUv).rgb * weightSum;          for( int i = 1; i < KERNEL_RADIUS; i ++ ) {            float x = float(i);            float w = gaussianPdf(x, fSigma);            vec2 uvOffset = direction * invSize * x;            vec4 sample1 = texture2D( colorTexture, vUv + uvOffset);            vec4 sample2 = texture2D( colorTexture, vUv - uvOffset);            diffuseSum += (sample1.rgb + sample2.rgb) * w;            alphaSum += (sample1.a + sample2.a) * w;            weightSum += 2.0 * w;          }          gl_FragColor = vec4(diffuseSum/weightSum, alphaSum/weightSum);\n        }"})}},{key:"getCompositeMaterial",value:function(t){return new h.ShaderMaterial({defines:{NUM_MIPS:t},uniforms:{blurTexture1:{value:null},blurTexture2:{value:null},blurTexture3:{value:null},blurTexture4:{value:null},blurTexture5:{value:null},dirtTexture:{value:null},bloomStrength:{value:1},bloomFactors:{value:null},bloomTintColors:{value:null},bloomRadius:{value:0}},vertexShader:"varying vec2 vUv;\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"varying vec2 vUv;\n\t\t\t\tuniform sampler2D blurTexture1;\n\t\t\t\tuniform sampler2D blurTexture2;\n\t\t\t\tuniform sampler2D blurTexture3;\n\t\t\t\tuniform sampler2D blurTexture4;\n\t\t\t\tuniform sampler2D blurTexture5;\n\t\t\t\tuniform sampler2D dirtTexture;\n\t\t\t\tuniform float bloomStrength;\n\t\t\t\tuniform float bloomRadius;\n\t\t\t\tuniform float bloomFactors[NUM_MIPS];\n\t\t\t\tuniform vec3 bloomTintColors[NUM_MIPS];\n\t\t\t\tfloat lerpBloomFactor(const in float factor) {\n\t\t\t\t\tfloat mirrorFactor = 1.2 - factor;\n\t\t\t\t\treturn mix(factor, mirrorFactor, bloomRadius);\n\t\t\t\t}\n\t\t\t\tvoid main() {\n\t\t\t\t\tgl_FragColor = bloomStrength * ( lerpBloomFactor(bloomFactors[0]) * vec4(bloomTintColors[0], 1.0) * texture2D(blurTexture1, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[1]) * vec4(bloomTintColors[1], 1.0) * texture2D(blurTexture2, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[2]) * vec4(bloomTintColors[2], 1.0) * texture2D(blurTexture3, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[3]) * vec4(bloomTintColors[3], 1.0) * texture2D(blurTexture4, vUv) +\n\t\t\t\t\t\tlerpBloomFactor(bloomFactors[4]) * vec4(bloomTintColors[4], 1.0) * texture2D(blurTexture5, vUv) );\n\t\t\t\t}"})}}]),n}(_t.Pass);At.BlurDirectionX=void 0,At.BlurDirectionY=void 0,At.BlurDirectionX=new h.Vector2(1,0),At.BlurDirectionY=new h.Vector2(0,1);var It=new h.MeshBasicMaterial({color:"black"}),St=new h.SpriteMaterial({color:"#000"}),Mt=function(){function t(e,n){(0,s.Z)(this,t),this.composerController=void 0,this.bloomComposer=void 0,this.bloomPass=void 0,this.finalPass=void 0,this.options=void 0,this.materials={},this.bloomLayer=new h.Layers,this.active=!0,this.composerController=e,this.options=n;var i=e.renderer,r=e.renderPass,o=e.finalComposer,a=e.getSize(),l=a.width,c=a.height,u=new At(new h.Vector2(l,c),n.strength,n.radius,n.threshold);this.bloomPass=u;var d=new et.EffectComposer(i);d.renderToScreen=!1,d.addPass(r),d.addPass(this.bloomPass),this.bloomComposer=d,this.bloomLayer.set(1);var p=new h.ShaderMaterial({uniforms:{baseTexture:{value:null},bloomTexture:{value:d.renderTarget2.texture}},vertexShader:yt,fragmentShader:bt,defines:{}}),f=new it.ShaderPass(p,"baseTexture");f.needsSwap=!0,this.finalPass=f,o.addPass(f)}return(0,l.Z)(t,[{key:"enable",value:function(){this.active||(this.finalPass.enabled=!0,this.bloomPass.enabled=!0,this.active=!0)}},{key:"disable",value:function(){this.active&&(this.finalPass.enabled=!1,this.bloomPass.enabled=!1,this.active=!1)}},{key:"render",value:function(t){if(this.active){var e=this.bloomComposer,n=this.bloomLayer,i=this.materials;t.traverse((function(t){var e=t;e.material&&!1===n.test(e.layers)&&(i[e.uuid]=e.material,e.material=e.isSprite?St:It)})),e.render(),t.traverse((function(t){var e=t;i[e.uuid]&&(e.material=i[e.uuid],delete i[e.uuid])}))}}},{key:"setSize",value:function(t,e){this.bloomComposer.setSize(t,e)}},{key:"setGui",value:function(t){var e=this,n=new v.Z;n.guiParams={bloom:{threshold:{value:this.options.threshold,min:0,max:1,target:function(){return e.bloomPass}},strength:{value:this.options.strength,min:0,max:10,target:function(){return e.bloomPass}},radius:{value:this.options.radius,min:0,max:2,step:.01,target:function(){return e.bloomPass}}}},n.showGuiParams(t)}},{key:"dispose",value:function(){this.bloomPass.dispose(),this.materials={}}}]),t}(),kt=n(8939),Et=function(){function t(e,n){(0,s.Z)(this,t),this.composerController=void 0,this.outlinePass=void 0,this.options=void 0,this.selectedObjects=[],this.active=!0,this.outlineGui=void 0,this.composerController=e,this.options=n;var i=e.scene,r=e.camera,o=e.finalComposer,a=e.getSize(),l=a.width,c=a.height,u=new kt.OutlinePass(new h.Vector2(l,c),i,r);u.selectedObjects=this.selectedObjects,this.outlinePass=u,o.addPass(u),this.setGui()}return(0,l.Z)(t,[{key:"enable",value:function(){this.active||(this.outlinePass.enabled=!0,this.active=!0)}},{key:"disable",value:function(){this.active&&(this.outlinePass.enabled=!1,this.active=!1)}},{key:"setGui",value:function(){var t=this,e=new v.Z;e.guiParams={outline:{edgeStrength:{value:this.options.edgeStrength,min:.01,max:10,step:.01,target:function(){return t.outlinePass}},edgeGlow:{value:this.options.edgeGlow,min:0,max:10,step:.01,target:function(){return t.outlinePass}},edgeThickness:{value:this.options.edgeThickness,min:0,max:4,step:.01,target:function(){return t.outlinePass}},pulsePeriod:{value:this.options.pulsePeriod,min:0,max:4,step:.01,target:function(){return t.outlinePass}},usePatternTexture:{value:this.options.usePatternTexture,target:function(){return t.outlinePass}},visibleEdgeColor:{value:this.options.visibleEdgeColor,target:function(){return t.outlinePass}},hiddenEdgeColor:{value:this.options.hiddenEdgeColor,target:function(){return t.outlinePass}}}},e.setGuiTargetValueByParams(),this.outlineGui=e}},{key:"dispose",value:function(){this.outlinePass.dispose(),this.selectedObjects=[]}}]),t}(),Tt=i(4925),Ot=n(5171),Pt=n(6634),jt=["width","height"],Lt={width:1,height:1,clipBias:3e-4,color:8947848,useDepthTexture:!0},Dt=function(){function t(e,n){(0,s.Z)(this,t),this.composerController=void 0,this.ssrPass=void 0,this.options=void 0,this.selectedObjects=[],this.groundReflector=void 0,this.ssrGui=void 0,this.active=!0,this.composerController=e,this.options=n;var i=e.scene,r=e.camera,o=e.renderer,a=e.finalComposer,l=e.getSize(),c=l.width,u=l.height,h=new Ot.SSRPass({renderer:o,scene:i,camera:r,width:c,height:u,groundReflector:null,selects:this.selectedObjects});this.ssrPass=h,a.addPass(h),this.setGui()}return(0,l.Z)(t,[{key:"addGroundReflector",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,a.Z)((0,a.Z)({},Lt),t),n=e.width,i=e.height,r=(0,Tt.Z)(e,jt),o=this.composerController,s=o.scene,l=o.getSize(),c=new h.PlaneGeometry(n,i),u=new Pt.ReflectorForSSRPass(c,(0,a.Z)((0,a.Z)({},r),{},{textureWidth:l.width,textureHeight:l.height}));u.material.depthWrite=!1,u.rotation.x=-Math.PI/2,u.visible=!1,s.add(u),this.ssrPass.groundReflector=this.groundReflector,this.groundReflector=u}},{key:"removeaGroundReflector",value:function(){this.ssrPass.groundReflector=null,this.groundReflector=void 0}},{key:"enable",value:function(){this.active||(this.ssrPass.enabled=!0,this.active=!0)}},{key:"disable",value:function(){this.active&&(this.ssrPass.enabled=!1,this.active=!1)}},{key:"setSize",value:function(t,e){var n=this.groundReflector;n&&(n.getRenderTarget().setSize(t,e),n.resolution.set(t,e))}},{key:"setGui",value:function(){var t=this,e=new v.Z;e.guiParams={ssr:{thickness:{value:.018,min:0,max:.1,step:1e-4,target:function(){return t.ssrPass}},infiniteThick:{value:!1,target:function(){return t.ssrPass}},fresnel:{value:!0,target:function(){return[t.ssrPass,t.groundReflector]}},distanceAttenuation:{value:!0,target:function(){return[t.ssrPass,t.groundReflector]}},selects:{value:this.options.selects,onChange:function(e){t.ssrPass.selects=e?t.selectedObjects:null}},maxDistance:{value:this.options.maxDistance,min:0,max:100,step:.001,target:function(){return[t.ssrPass,t.groundReflector]}},opacity:{value:1,min:0,max:1,step:.01,target:function(){return[t.ssrPass,t.groundReflector]}}}},e.setGuiTargetValueByParams(),this.ssrGui=e}},{key:"dispose",value:function(){this.ssrPass.dispose(),this.selectedObjects=[]}}]),t}(),Rt=function(){function t(e){(0,s.Z)(this,t),this.renderer=void 0,this.scene=void 0,this.camera=void 0,this.finalComposer=void 0,this.renderPass=void 0,this.copyPass=void 0,this.gammaCorrectionPass=void 0,this.smaaPass=void 0,this.fxaaPass=void 0,this.ssaaPass=void 0,this.bloomController=void 0,this.outlineController=void 0,this.ssrController=void 0,this.renderTarget=void 0,this.options=void 0,this.active=!0,this.options=e;var n=e.renderer,i=e.scene,r=e.camera,o=this.createRenderTarget(),a=new et.EffectComposer(n,o);a.setPixelRatio(n.getPixelRatio()),this.finalComposer=a,this.addRenderPasss(),this.renderer=n,this.scene=i,this.renderTarget=o,this.camera=r}return(0,l.Z)(t,[{key:"createRenderTarget",value:function(){var t,e=this.options.composerParams,n=e.multisampling,i=e.type,r=e.encoding,o=this.getSize(),s={minFilter:h.LinearFilter,magFilter:h.LinearFilter,format:h.RGBAFormat,encoding:r,type:i};if(+h.REVISION<138&&n>0){var l=new h.WebGLMultisampleRenderTarget(o.width,o.height,s);l.samples=n,t=l}else t=+h.REVISION>=138&&n>0?new h.WebGLRenderTarget(o.width,o.height,(0,a.Z)((0,a.Z)({},s),{},{samples:n})):new h.WebGLRenderTarget(o.width,o.height,s);return t.texture.name="EffectComposer.rt1",t}},{key:"addRenderPasss",value:function(){var t=this.options,e=t.scene,n=t.camera,i=new nt.RenderPass(e,n);this.finalComposer.addPass(i),this.renderPass=i}},{key:"addCopyPass",value:function(){var t=new it.ShaderPass(rt.CopyShader);this.finalComposer.addPass(t),this.copyPass=t}},{key:"addGammaCorrectionPass",value:function(){var t=new it.ShaderPass(ot.GammaCorrectionShader);this.finalComposer.addPass(t),this.gammaCorrectionPass=t}},{key:"addFXAAPass",value:function(){var t=this.getSize(),e=t.width,n=t.height,i=new it.ShaderPass(lt.FXAAShader);this.finalComposer.addPass(i),this.fxaaPass=i,this.setFXAAPassSize(e,n)}},{key:"addSMAAPass",value:function(){var t=this.getSize(),e=t.width,n=t.height,i=this.options.renderer,r=new at.SMAAPass(e*i.getPixelRatio(),n*i.getPixelRatio());this.finalComposer.addPass(r),this.smaaPass=r}},{key:"addSSAAPass",value:function(){var t=this.options,e=t.scene,n=t.camera,i=new st.SSAARenderPass(e,n,0,0);i.unbiased=!0,i.sampleLevel=1,this.finalComposer.addPass(i),this.ssaaPass=i}},{key:"addBloomPass",value:function(t){var e=new Mt(this,t);e.disable(),this.options.gui&&e.setGui(this.options.gui),this.bloomController=e}},{key:"addOutlinePass",value:function(t){var e=new Et(this,t);e.disable(),this.options.gui&&e.outlineGui.showGuiParams(this.options.gui),this.outlineController=e}},{key:"addSSRPass",value:function(t){var e=new Dt(this,t);e.disable(),this.options.gui&&e.ssrGui.showGuiParams(this.options.gui),this.ssrController=e}},{key:"getSize",value:function(){return this.options.renderer.getSize(new h.Vector2)}},{key:"enable",value:function(){this.active||(this.active=!0)}},{key:"disable",value:function(){this.active&&(this.active=!1)}},{key:"checkCopyPass",value:function(){var t=this,e=this.finalComposer.passes.some((function(e){return e!==t.renderPass&&e!==t.copyPass&&e.enabled}));e&&this.copyPass?this.copyPass.enabled=!1:!e&&this.copyPass?this.copyPass.enabled=!0:e||this.copyPass||this.addCopyPass()}},{key:"setSize",value:function(t,e){var n,i;this.finalComposer.setSize(t,e),null===(n=this.bloomController)||void 0===n||n.setSize(t,e),null===(i=this.ssrController)||void 0===i||i.setSize(t,e),this.setFXAAPassSize(t,e)}},{key:"setFXAAPassSize",value:function(t,e){if(this.fxaaPass){var n=this.options.renderer.getPixelRatio();this.fxaaPass.material.uniforms.resolution.value.x=1/(t*n),this.fxaaPass.material.uniforms.resolution.value.y=1/(e*n)}}},{key:"render",value:function(){var t;if(this.active){var e=this.options.scene;null===(t=this.bloomController)||void 0===t||t.render(e),this.finalComposer.render()}}},{key:"dispose",value:function(){var t,e,n,i,r;null===(t=this.bloomController)||void 0===t||t.dispose(),null===(e=this.outlineController)||void 0===e||e.dispose(),null===(n=this.ssrController)||void 0===n||n.dispose(),null===(i=this.finalComposer)||void 0===i||i.passes.forEach((function(t){var e,n,i;null===(e=t.fsQuad)||void 0===e||e.dispose(),null===(n=t.fsQuad)||void 0===n||null===(i=n.material)||void 0===i||i.dispose()})),null===(r=this.renderTarget)||void 0===r||r.dispose(),this.renderer=void 0,this.scene=void 0,this.camera=void 0,this.finalComposer=void 0,this.renderTarget=void 0,this.renderPass=void 0,this.copyPass=void 0,this.gammaCorrectionPass=void 0,this.smaaPass=void 0,this.ssaaPass=void 0,this.fxaaPass=void 0,this.bloomController=void 0,this.outlineController=void 0,this.ssrController=void 0}}]),t}(),Bt=function(){function t(){(0,s.Z)(this,t),this.cache=new Map}return(0,l.Z)(t,[{key:"init",value:function(t){var e=(0,_.makePromiseCreator)();this.cache.set(t,e)}},{key:"get",value:function(t){var e;return null===(e=this.cache.get(t))||void 0===e?void 0:e.promise}},{key:"set",value:function(t,e){var n=this.cache.get(t);n?n.resolve(e):console.warn("init cache first")}},{key:"dispose",value:function(){this.cache.forEach((function(t,e){t.reject("stop set cache:".concat(e))})),this.cache.clear()}}]),t}(),Nt=i(5861),Ft=i(7757),zt=i.n(Ft),Vt=i(1752),Gt=i(1120);const Ht=new class{constructor(t,e,n){const i=this;let r,o=!1,a=0,s=0;const l=[];this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){s++,!1===o&&void 0!==i.onStart&&i.onStart(t,a,s),o=!0},this.itemEnd=function(t){a++,void 0!==i.onProgress&&i.onProgress(t,a,s),a===s&&(o=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)},this.resolveURL=function(t){return r?r(t):t},this.setURLModifier=function(t){return r=t,this},this.addHandler=function(t,e){return l.push(t,e),this},this.removeHandler=function(t){const e=l.indexOf(t);return-1!==e&&l.splice(e,2),this},this.getHandler=function(t){for(let e=0,n=l.length;e<n;e+=2){const n=l[e],i=l[e+1];if(n.global&&(n.lastIndex=0),n.test(t))return i}return null}}};class Wt{constructor(t){this.manager=void 0!==t?t:Ht,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,e){const n=this;return new Promise((function(i,r){n.load(t,i,e,r)}))}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}}const Ut={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};var Zt={},Yt=function(t){(0,xt.Z)(n,t);var e=(0,wt.Z)(n);function n(){var t;(0,s.Z)(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))).responseType=void 0,t.mimeType=void 0,t}return(0,l.Z)(n,[{key:"load",value:function(t,e,n,i){var r=this;void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var o=Ut.get(t);if(void 0!==o)return this.manager.itemStart(t),setTimeout((function(){e&&e(o),r.manager.itemEnd(t)}),0),o;if(void 0===Zt[t]){Zt[t]=[],Zt[t].push({onLoad:e,onProgress:n,onError:i});var a={headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"};fetch(t,a).then((function(e){if(200===e.status||0===e.status){if(0===e.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===e.body.getReader)return e;var n=Zt[t],i=e.body.getReader(),r=e.headers.get("Content-Length"),o=r?parseInt(r,10):0,a=0!==o,s=0,l=new ReadableStream({start:function(t){(function e(){i.read().then((function(i){var r=i.done,l=i.value;if(r)t.close();else{s+=l.byteLength;for(var c=new ProgressEvent("progress",{lengthComputable:a,loaded:s,total:o}),u=0,h=n.length;u<h;u++){var d=n[u];d.onProgress&&d.onProgress(c)}t.enqueue(l),e()}}))})()}});return new Response(l)}throw Error('fetch for "'.concat(e.url,'" responded with ').concat(e.status,": ").concat(e.statusText))})).then((function(t){switch(r.responseType){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"document":return t.text().then((function(t){return(new DOMParser).parseFromString(t,r.mimeType)}));case"json":return t.json();default:return t.text()}})).then((function(e){Ut.add(t,e);var n=Zt[t];delete Zt[t];for(var i=0,r=n.length;i<r;i++){var o=n[i];o.onLoad&&o.onLoad(e)}})).catch((function(e){var n=Zt[t];if(void 0===n)throw r.manager.itemError(t),e;delete Zt[t];for(var i=0,o=n.length;i<o;i++){var a=n[i];a.onError&&a.onError(e)}r.manager.itemError(t)})).finally((function(){r.manager.itemEnd(t)})),this.manager.itemStart(t)}else Zt[t].push({onLoad:e,onProgress:n,onError:i})}},{key:"setResponseType",value:function(t){return this.responseType=t,this}},{key:"setMimeType",value:function(t){return this.mimeType=t,this}}]),n}(Wt),Xt=function(t){(0,xt.Z)(n,t);var e=(0,wt.Z)(n);function n(){var t;return(0,s.Z)(this,n),(t=e.call(this)).fileLoader=void 0,h.Cache.enabled=!0,t.fileLoader=new Yt,t.fileLoader.setResponseType("blob"),t}return(0,l.Z)(n,[{key:"loadAsync",value:function(t,e){var i=this,r=[["svg","image/svg+xml"]];return new Promise((function(a,s){h.Cache.get(t)?(0,Vt.Z)((0,Gt.Z)(n.prototype),"load",i).call(i,t,a,(function(){}),s):i.fileLoader.load(t,(function(e){var l,c=t.match(/\.([\w\d]+)$/)||[],u=o(r);try{for(u.s();!(l=u.n()).done;){var d=l.value;if(c[1]===d[0]){e=new Blob([e],{type:d[1]});break}}}catch(m){u.e(m)}finally{u.f()}var p=URL.createObjectURL(e),f=document.createElementNS("http://www.w3.org/1999/xhtml","img"),g=function(t){s(t)};f.addEventListener("error",g,!1),f.addEventListener("load",(function e(){h.Cache.add(t,f),URL.revokeObjectURL(p),f.removeEventListener("error",g,!1),f.removeEventListener("load",e,!1),document.body.removeChild(f),(0,Vt.Z)((0,Gt.Z)(n.prototype),"load",i).call(i,t,a,(function(){}),s)}),!1),f.src=p,f.style.visibility="hidden",document.body.appendChild(f)}),e,s)}))}}]),n}(h.TextureLoader),qt=i(5456),Kt=n(2854),Qt=new Kt.DRACOLoader;Qt.setDecoderPath("/draco/");var Jt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(i,r){var o=new qt.GLTFLoader;n&&(Qt||(Qt=new Kt.DRACOLoader).setDecoderPath("/draco/"),Qt.preload(),o.setDRACOLoader(Qt)),o.load(t,(function(t){t.scene.userData.gltf=t,i(t.scene)}),(function(t){e&&e(t)}),(function(t){return r(t)}))}))},$t=function(){function t(e){(0,s.Z)(this,t),this.assetMap=void 0,this.loadingMap=void 0,this.loadingQueue=[],this.totalSize=0,this.pencil=void 0,this.loadPromise=void 0,this.assetMap=new Map,this.loadingMap=new Map,h.Cache.enabled=!0,this.pencil=e,this.loadPromise=(0,_.makePromiseCreator)()}return(0,l.Z)(t,[{key:"setDecoderPath",value:function(t){(Qt=new Kt.DRACOLoader).setDecoderPath(t),Qt.preload()}},{key:"register",value:function(){var t;(t=this.loadingQueue).push.apply(t,arguments)}},{key:"load",value:function(){var t=(0,Nt.Z)(zt().mark((function t(){var e,n=this;return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.loadingQueue.length){t.next=2;break}return t.abrupt("return");case 2:return e=this.loadingQueue.map(function(){var t=(0,Nt.Z)(zt().mark((function t(e){var i,r,o,a,s,l,c,u,d,p,f,g,m,v,y,b;return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.name,r=e.url,o=e.loader,a=e.cache,s=e.version,l=e.type,c=e.draco,u=(0,_.makePromiseCreator)(),d=u.promise,p=u.resolve,n.assetMap.set(i,d),n.loadingMap.set(i,{loaded:0,total:void 0}),!a){t.next=10;break}return t.next=7,(0,_.getCache)(r,{version:null!=s?s:"0.0.1"});case 7:f=t.sent,g=f.url,r=g;case 10:if("gltf"!==o){t.next=17;break}return t.next=13,Jt(r,(function(t){n.onProgress(i,t)}),c);case 13:m=t.sent,p(m),t.next=36;break;case 17:if("texture"!==o){t.next=24;break}return t.next=20,(new Xt).loadAsync(r,(function(t){n.onProgress(i,t)}));case 20:v=t.sent,p(v),t.next=36;break;case 24:if("texture2"!==o){t.next=31;break}return t.next=27,(new h.TextureLoader).loadAsync(r);case 27:y=t.sent,p(y),t.next=36;break;case 31:if("file"!==o){t.next=36;break}return t.next=34,(new Yt).setResponseType(l||"text").loadAsync(r,(function(t){n.onProgress(i,t)}));case 34:b=t.sent,p(b);case 36:a&&URL.revokeObjectURL(r);case 37:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),t.abrupt("return",Promise.all(e).then((function(){n.loadPromise.resolve()})));case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"onProgress",value:function(t,e){var n=this.loadingMap.get(t);"undefined"==typeof n.total&&(n.total=e.total||e.loaded),n.loaded=e.loaded;var i=Array.from(this.loadingMap.values()).filter((function(t){return"undefined"!=typeof t.total}));if(i.length===this.loadingQueue.length){this.totalSize||(this.totalSize=i.reduce((function(t,e){return t+e.total}),0));var r=i.reduce((function(t,e){return t+e.loaded}),0);this.pencil.event.emit("loading",parseInt((r/this.totalSize*100).toFixed(2),10))}}},{key:"get",value:function(){var t=(0,Nt.Z)(zt().mark((function t(e){return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadPromise.promise;case 2:return t.abrupt("return",this.assetMap.get(e));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"clear",value:function(){this.assetMap.clear(),this.loadingMap.clear(),this.loadingQueue.length=0,this.totalSize=0}},{key:"dispose",value:function(){this.clear(),this.pencil=void 0,Qt&&(Qt.dispose(),Qt=void 0)}}]),t}(),te=i(4942),ee=n(6498),ne=n(9434),ie=n(8110),re=n(1433),oe=n(6041),ae=i(7874),se=i.n(ae),le=i(1270);function ce(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image/png",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=(0,le.Z)(),r=i.promise,o=i.resolve,a=document.createElement("canvas");return a.width=t.width,a.height=t.height,a.getContext("2d").drawImage(t,0,0),a.toBlob(o,e,n),r}var ue=i(1988),he={};he.styleTagTransform=V(),he.setAttributes=B(),he.insert=D().bind(null,"head"),he.domAPI=j(),he.insertStyleElement=F(),O()(ue.Z,he);var de=ue.Z&&ue.Z.locals?ue.Z.locals:void 0,pe=function(){function t(e){if((0,s.Z)(this,t),this.pane=void 0,this.parentMap=new Map,this.itemMap=new Map,this.textureMap=new Map,this.container=void 0,this.staticPath="/",this.amcp=this.addMaterialColorPicker.bind(this),this.acp=this.addColorPicker.bind(this),this.anp=this.addNumberPicker.bind(this),this.abp=this.addBooleanPicker.bind(this),this.app=this.addPointPicker.bind(this),this.amgp=this.addMaterialPickerGroup.bind(this),this.algp=this.addLightPickerGroup.bind(this),this.asp=this.addSelectPicker.bind(this),this.atpg=this.addTexturePickerGroup.bind(this),!e.container){var n=document.createElement("div");n.className=de["pencil-gui-container"],document.body.appendChild(n),e.container=n}this.container=e.container,this.pane=new ee.Pane(e),this.staticPath=e.staticPath||this.staticPath,this.pane.registerPlugin(ie),this.pane.registerPlugin(re),this.pane.registerPlugin(oe),ne.supported?console.log("Using the File System Access API."):console.log("Using the fallback implementation."),this.initPostMessage()}return(0,l.Z)(t,[{key:"addMaterialColorPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=(0,te.Z)({},o||"color","#".concat(r.color.getHexString())),l=n.addInput(s,o||"color",{presetKey:i,picker:"inline",label:a});return l.on("change",(function(t){r[o||"color"]=new h.Color(t.value)})),this.addInputAfter(l,t,r,i),l}},{key:"addColorPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=(0,te.Z)({},o||"color","#".concat(r.getHexString())),l=n.addInput(s,o||"color",{presetKey:i,picker:"inline",label:a});return l.on("change",(function(t){r.set(t.value)})),this.itemMap.set(i,l),l}},{key:"addNumberPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=n.addInput(r,o,{presetKey:i,min:t.min||0,max:t.max||1,step:t.step||.1,label:a});return this.addInputAfter(s,t,r,i),s}},{key:"addBooleanPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=n.addInput(r,o,{presetKey:i,view:"checkbox",label:a});return this.addInputAfter(s,t,r,i),s}},{key:"addSelectPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.key,a=e.label,s=e.options,l=n.addInput(r,o,{presetKey:i,options:s,label:a});return this.addInputAfter(l,t,r,i),l}},{key:"addPointPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.value,o=e.label,s=e.key,l=(0,te.Z)({},s,r),c=n.addInput(l,s,(0,a.Z)({presetKey:i,label:o},t.range));return this.addInputAfter(c,t,r,i),c}},{key:"addRotationPicker",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.presetKey,r=e.key,o=e.value,a=e.label,s=t.rotationMode,l=void 0===s?"euler":s,c=(0,te.Z)({},r,"euler"===l?{x:o.rotation.x,y:o.rotation.y,z:o.rotation.z}:{x:o.quaternion.x,y:o.quaternion.y,z:o.quaternion.z,w:o.quaternion.w}),u=n.addInput(c,r,{view:"rotation",rotationMode:l,order:"XYZ",units:"deg",presetKey:i,label:a});return u.on("change",(function(t){var e=t.value;"euler"===l?o.rotation.set(e.x,e.y,e.z):o.quaternion.set(e.x,e.y,e.z,e.w)})),this.addInputAfter(u,t,o,i),u}},{key:"addFolder",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e?e.addFolder({title:t,expanded:n}):this.pane.addFolder({title:t,expanded:n});return e&&(i.parent=e),this.parentMap.set(this.getName(i),i),i}},{key:"addMaterialPickerGroup",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.name,r=e.value,o=this.addFolder(i,n);o.addBlade({view:"text",label:"type",parse:function(t){return String(t)},value:r.type});var s={value:r,group:o};return this.amcp((0,a.Z)((0,a.Z)({name:"color"},s),{},{key:"color"})),this.addNumberPicker((0,a.Z)({name:"opacity"},s)),this.addBooleanPicker((0,a.Z)({name:"transparent"},s)),this.addNumberPicker((0,a.Z)({name:"alphaTest"},s)),this.addBooleanPicker((0,a.Z)({name:"depthTest"},s)),this.addBooleanPicker((0,a.Z)({name:"depthWrite"},s)),this.addBooleanPicker((0,a.Z)({name:"visible"},s)),r instanceof h.MeshStandardMaterial&&(this.addBooleanPicker((0,a.Z)({name:"flatShading"},s)),this.addTexturePickerGroup((0,a.Z)((0,a.Z)({name:"envMap"},s),{},{value:r,key:"envMap"})),this.addNumberPicker((0,a.Z)((0,a.Z)({name:"envMapIntensity"},s),{},{min:0,max:1,step:.01}))),this.addSelectPicker((0,a.Z)((0,a.Z)({name:"side"},s),{},{options:mt})),this.addSelectPicker((0,a.Z)((0,a.Z)({name:"blending"},s),{},{options:vt})),this.addTexturePickerGroup((0,a.Z)((0,a.Z)({name:"map"},s),{},{key:"map"})),this.addTexturePickerGroup((0,a.Z)((0,a.Z)({name:"alphaMap"},s),{},{key:"alphaMap"})),"undefined"!=typeof r.normalMap&&(this.addTexturePickerGroup((0,a.Z)((0,a.Z)({name:"normalMap"},s),{},{value:r,key:"normalMap"})),this.app((0,a.Z)((0,a.Z)({name:"normalScale"},s),{},{value:r.normalScale})),this.addSelectPicker((0,a.Z)((0,a.Z)({name:"normalMapType"},s),{},{options:[{text:"Tangent",value:h.TangentSpaceNormalMap},{text:"Object",value:h.ObjectSpaceNormalMap}]}))),"number"==typeof r.roughness&&(this.addTexturePickerGroup((0,a.Z)((0,a.Z)({name:"roughnessMap"},s),{},{value:r,key:"roughnessMap"})),this.addNumberPicker((0,a.Z)((0,a.Z)({name:"roughness"},s),{},{min:0,max:1}))),"number"==typeof r.metalness&&(this.addTexturePickerGroup((0,a.Z)((0,a.Z)({name:"metalnessMap"},s),{},{value:r,key:"metalnessMap"})),this.addNumberPicker((0,a.Z)((0,a.Z)({name:"metalness"},s),{},{min:0,max:1}))),"number"==typeof r.emissiveIntensity&&(this.amcp((0,a.Z)((0,a.Z)({name:"emissive"},s),{},{key:"emissive"})),this.addTexturePickerGroup((0,a.Z)((0,a.Z)({name:"emissiveMap"},s),{},{value:r,key:"emissiveMap"})),this.addNumberPicker((0,a.Z)((0,a.Z)({name:"emissiveIntensity"},s),{},{max:15}))),o}},{key:"addLightPickerGroup",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.name,r=e.value,o=this.addFolder(i,n);o.addBlade({view:"text",label:"type",parse:function(t){return String(t)},value:r.type});var s={value:r,group:o};return this.addColorPicker({name:"color",value:r.color,group:o}),this.addNumberPicker((0,a.Z)((0,a.Z)({name:"intensity"},s),{},{max:4})),this.addBooleanPicker((0,a.Z)({name:"castShadow"},s)),r instanceof h.DirectionalLight&&this.app({name:"target",value:r.position,group:o}),o}},{key:"addTexturePickerGroup",value:function(t){var e,n=this,i=this.getItemInfo(t),r=i.parent,o=i.presetKey,a=i.name,s=i.value,l=i.key,c=this.addFolder(a,r),u={url:s[l]?null===(e=s[l].image)||void 0===e?void 0:e.src:"placeholder"},d=c.addInput(u,"url",{view:"input-image",imageFit:"contain",extensions:[".png",".jpg",".jpeg",".webp"],presetKey:o}),p=this.addTextureParamsPickerGroup({name:"params",group:c,value:s[l]});return c.addButton({title:"删除贴图"}).on("click",(function(){s[l]&&(s[l].dispose(),s[l]=null,s.needsUpdate=!0,u.url="",p&&(p instanceof ee.FolderApi?n.disposeGroup(p):p.dispose(),p=n.addTextureParamsPickerGroup({name:"params",group:c,value:s[l]})))})),d.on("change",function(){var t=(0,Nt.Z)(zt().mark((function t(e){var i,r,a;return zt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!((i=e.value)instanceof HTMLImageElement)){t.next=11;break}return t.next=4,ce(i);case 4:a=t.sent,n.textureMap.set(o,a),(r=new h.Texture).image=i,r.needsUpdate=!0,t.next=15;break;case 11:if(!i){t.next=15;break}return t.next=14,(new h.TextureLoader).loadAsync(i);case 14:r=t.sent;case 15:r&&(s[l]=r,s.needsUpdate=!0,p&&(p instanceof ee.FolderApi?n.disposeGroup(p):p.dispose(),p=n.addTextureParamsPickerGroup({name:"params",group:c,value:r})));case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),this.addInputAfter(d,t,s,o),d}},{key:"addTextureParamsPickerGroup",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.name,r=e.value;if(!t.value)return n.addBlade({view:"text",label:i,parse:function(t){return String(t)},value:"无"});var o=this.addFolder(i,n),s={value:r,group:o};return this.asp((0,a.Z)((0,a.Z)({name:"mapping"},s),{},{options:ht,needsUpdate:!0})),this.asp((0,a.Z)((0,a.Z)({name:"wrapS"},s),{},{options:dt,needsUpdate:!0})),this.asp((0,a.Z)((0,a.Z)({name:"wrapT"},s),{},{options:dt,needsUpdate:!0})),this.asp((0,a.Z)((0,a.Z)({name:"magFilter"},s),{},{options:pt,needsUpdate:!0})),this.asp((0,a.Z)((0,a.Z)({name:"minFilter"},s),{},{options:ft,needsUpdate:!0})),this.app((0,a.Z)((0,a.Z)({name:"offset"},s),{},{value:r.offset})),this.app((0,a.Z)((0,a.Z)({name:"repeat"},s),{},{value:r.repeat})),this.app((0,a.Z)((0,a.Z)({name:"center"},s),{},{value:r.center})),this.addNumberPicker((0,a.Z)((0,a.Z)({name:"rotation"},s),{},{min:0,max:2*Math.PI})),this.addBooleanPicker((0,a.Z)((0,a.Z)({name:"flipY"},s),{},{needsUpdate:!0})),this.asp((0,a.Z)((0,a.Z)({name:"encoding"},s),{},{options:gt,needsUpdate:!0})),o}},{key:"addUniformsPickerGroup",value:function(t){var e=this,n=this.getItemInfo(t),i=n.parent,r=n.name,o=n.value,s=this.addFolder(r,i),l={value:o,group:s};return Object.keys(o).forEach((function(t){var n=o[t];n.value instanceof h.Texture?e.addTextureParamsPickerGroup((0,a.Z)((0,a.Z)({name:t},l),{},{value:n.value})):n.value instanceof h.Color?e.addColorPicker((0,a.Z)((0,a.Z)({name:t},l),{},{value:n.value})):n.value instanceof h.Vector2||n.value instanceof h.Vector3||n.value instanceof h.Vector4?e.addPointPicker((0,a.Z)((0,a.Z)({name:t},l),{},{value:n.value})):"number"==typeof n.value&&e.addNumberPicker((0,a.Z)((0,a.Z)({name:t},l),{},{value:n,key:"value",min:n.min,max:n.max}))})),s}},{key:"addObjectPickerGroup",value:function(t){var e=this.getItemInfo(t),n=e.parent,i=e.name,r=e.value,o={value:r,group:this.addFolder(i,n)};this.addBooleanPicker((0,a.Z)({name:"visible"},o)),this.addBooleanPicker((0,a.Z)({name:"castShadow"},o)),this.addBooleanPicker((0,a.Z)({name:"receiveShadow"},o)),this.addPointPicker((0,a.Z)((0,a.Z)({name:"position"},o),{},{value:r.position})),this.addRotationPicker((0,a.Z)((0,a.Z)({name:"rotation"},o),{},{value:r,rotationMode:"euler"})),this.addPointPicker((0,a.Z)((0,a.Z)({name:"scale"},o),{},{value:r.scale}))}},{key:"findFolder",value:function(t){return this.folders.get(t)}},{key:"folders",get:function(){var t=this,e=new Map;return this.pane.children.filter((function(t){return t instanceof ee.FolderApi})).forEach((function(n){e.set(t.getName(n),n),n.children.length&&t.getFolderChildren(n,e)})),e}},{key:"getFolderChildren",value:function(t,e){var n=this;t.children.filter((function(t){return t instanceof ee.FolderApi})).forEach((function(t){e.set(n.getName(t),t),t.children.length&&n.getFolderChildren(t,e)}))}},{key:"addInputAfter",value:function(t,e,n,i){t.on("change",(function(t){var i=t.value;e.needsUpdate&&(n.needsUpdate=!0),e.onChange&&e.onChange(i)})),this.itemMap.set(i,t)}},{key:"getItemInfo",value:function(t){var e=t.name,n=t.group,i=t.label,r=t.key,o=this.getParent(n),s=this.getName(o,e);return(0,a.Z)((0,a.Z)({},t),{},{parent:o,presetKey:s,label:i||e,key:r||e})}},{key:"getParent",value:function(t){if(!t)return this.pane;if("string"==typeof t){if(this.parentMap.has(t))return this.parentMap.get(t);var e=this.pane.addFolder({title:t});return this.parentMap.set(this.getName(e),e),e}if(Array.isArray(t)){var n=this.folders.get(t.join("-"));return n||this.pane}return t}},{key:"getName",value:function(t,e){return t.parent?e?this.getName(t.parent,"".concat(t.title,"-").concat(e)):this.getName(t.parent,t.title):e?t.title?"".concat(t.title,"-").concat(e):e:t.title||""}},{key:"addExportButton",value:function(){var t=this,e=this.pane.addButton({title:"导出配置"}),n=this.staticPath;e.on("click",(function(){var e=new(se()),i=e.folder("textures"),r=t.pane.exportPreset();t.textureMap.forEach((function(t,e){r[e]="".concat(n,"textures/").concat(e,".png"),i.file("".concat(e,".png"),t,{binary:!0})})),e.file("preset.json",JSON.stringify(r)),e.generateAsync({type:"blob"}).then((function(t){var e=URL.createObjectURL(t),n=document.createElement("a");n.href=e,n.download="preset.zip",n.click()}))}))}},{key:"addSaveButton",value:function(){var t=this;this.pane.addButton({title:"保存配置"}).on("click",(function(){var e=t.pane.exportPreset();window.parent.postMessage({type:"savePreset",data:e},"*")}))}},{key:"initPostMessage",value:function(){var t=this;window.addEventListener("message",(function(e){"setPreset"===e.data.type&&t.pane.importPreset(JSON.parse(e.data.data))}))}},{key:"addImportButton",value:function(){var t=this;this.pane.addButton({title:"导入配置"}).on("click",(0,Nt.Z)(zt().mark((function e(){var n,i;return zt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ne.fileOpen)({mimeTypes:["application/json"],extensions:[".json"],excludeAcceptAllOption:!0,description:"Preset File",id:"config",multiple:!1});case 2:return n=e.sent,e.next=5,n.text();case 5:i=e.sent,t.importPreset(JSON.parse(i));case 7:case"end":return e.stop()}}),e)}))))}},{key:"importPreset",value:function(t){this.pane.importPreset(t)}},{key:"hide",value:function(){var t;this.pane.hidden=!0,null===(t=this.container)||void 0===t||t.classList.add(de.hidden)}},{key:"show",value:function(){var t;this.pane.hidden=!1,null===(t=this.container)||void 0===t||t.classList.remove(de.hidden)}},{key:"dispose",value:function(){this.pane.dispose(),this.parentMap.clear(),this.itemMap.clear(),document.body.removeChild(this.container),this.pane=void 0}},{key:"disposeItem",value:function(t){var e=this.itemMap.get(t);e&&(e.dispose(),this.itemMap.delete(t))}},{key:"disposeGroup",value:function(t){var e=this,n=this.getName(t);t.children.forEach((function(n){e.disposeItem(e.getName(t,n.label))})),t.dispose(),this.parentMap.delete(n)}}]),t}(),fe=n(7637),ge=i.n(fe),me=function(){function t(e,n){var i=this;(0,s.Z)(this,t),this.options=void 0,this.composerController=void 0,this.rendererController=void 0,this.cssRendererController=void 0,this.cameraController=void 0,this.controlController=void 0,this.transformController=void 0,this.sceneController=void 0,this.drawController=void 0,this.cacheController=void 0,this.stats=void 0,this.gui=void 0,this.oldGui=void 0,this.assetController=void 0,this.resizeObserver=void 0,this.raycaster=new h.Raycaster,this.event=new d.EventEmitter,this.clock=new h.Clock,this.resizeHandler=void 0,this.getAssetPath=function(t){var e=i.options.staticPath;return"".concat(e).concat(t)},this.options=f()(t.options,e,{isMergeableObject:_.isPlainObject});var r=this.options,o=r.container;if(r.stats){var a=new(m());a.showPanel(0),a.dom.style.position="absolute",o.appendChild(a.dom),this.stats=a}this.initGui(),this.init(),this.initComposer(),this.initCSSRenderer(),this.initControl(),this.cacheController=new Bt,n&&(n.initObjectFactories(),n.pencil=this,this.drawController=n),this.assetController=new $t(this),this.clock.getDelta(),this.clock.getElapsedTime()}return(0,l.Z)(t,[{key:"renderer",get:function(){var t;return null===(t=this.rendererController)||void 0===t?void 0:t.renderer}},{key:"control",get:function(){var t;return null===(t=this.controlController)||void 0===t?void 0:t.control}},{key:"camera",get:function(){var t;return null===(t=this.cameraController)||void 0===t?void 0:t.camera}},{key:"scene",get:function(){var t;return null===(t=this.sceneController)||void 0===t?void 0:t.scene}},{key:"bloom",get:function(){var t;return null===(t=this.composerController)||void 0===t?void 0:t.bloomController}},{key:"draw",get:function(){return console.warn("pencil.draw is deprecated, use drawController.draw"),this.drawController.draw.bind(this.drawController)}},{key:"erase",get:function(){return console.warn("pencil.erase is deprecated, use drawController.erase"),this.drawController.erase.bind(this.drawController)}},{key:"getObject",get:function(){return console.warn("pencil.getObject is deprecated, use drawController.getObject"),this.drawController.getObject.bind(this.drawController)}},{key:"objectsPromise",get:function(){return console.warn("pencil.objectsPromise is deprecated, use drawController.objectsPromise"),this.drawController.objectsPromise}},{key:"init",value:function(){var t=this,e=this.options,n=e.container,i=e.isdev,r=e.axesHelper,s=e.renderer,l=e.scene,c=e.light,u=e.camera,d=e.resizeObserverType,p=this.getSize(),f=p.width,g=p.height,m=new w({isdev:i,width:f,height:g,cameraParams:u});this.gui&&m.setGui(this.gui);var v=m.camera,y=new C({camera:v,sceneParams:l}),b=y.scene,_=new x({width:f,height:g,scene:b,camera:v,isdev:i,rendererParams:(0,a.Z)((0,a.Z)({},s),{},{outputEncoding:"auto"===this.options.renderer.antialias?s.outputEncoding:h.LinearEncoding,antialias:"auto"===this.options.renderer.antialias})});this.gui&&_.setGui(this.gui);var A=_.renderer;if(c&&y.addLight(),r&&y.addAxesHelper(),this.sceneController=y,this.rendererController=_,this.cameraController=m,n.contains(A.domElement)||n.appendChild(A.domElement),"resizeObserver"===d){var I=new ResizeObserver((function(e){var n,i=o(e);try{for(i.s();!(n=i.n()).done;){var r=n.value.contentRect;t.handleResize(r.width,r.height),t.render()}}catch(a){i.e(a)}finally{i.f()}}));I.observe(n),this.resizeObserver=I}else"window"===d&&(this.resizeHandler=function(){var e=t.getSize(),n=e.width,i=e.height;t.handleResize(n,i)},n.addEventListener("resize",this.resizeHandler))}},{key:"resizeRendererToDisplaySize",value:function(){var t,e=this.renderer.domElement,n=this.getSize(),i=n.width,r=n.height,o=null!==(t=this.options.renderer.devicePixelRatio)&&void 0!==t?t:window.devicePixelRatio;return e.width!==i*o||e.height!==r*o}},{key:"initComposer",value:function(){var t=this.options,e=t.bloom,n=t.outline,i=t.ssr,r=t.renderer,o=t.bloomParams,a=t.outlineParams,s=t.ssrParams,l=t.multisampling,c=r.antialias;"msaa"!==c||ut||(c=!1,console.warn("MSAA is not supported on this browser"));var u=new Rt({renderer:this.renderer,scene:this.scene,camera:this.camera,gui:this.gui,composerParams:{multisampling:"msaa"===c?l:0,type:h.UnsignedByteType,encoding:r.outputEncoding}});this.composerController=u,"ssaa"!==c&&"auto"!==c||u.addSSAAPass(),i&&u.addSSRPass(s),e&&u.addBloomPass(o),n&&u.addOutlinePass(a),r.outputEncoding===h.sRGBEncoding&&u.addGammaCorrectionPass(),"fxaa"===c?u.addFXAAPass():"smaa"===c&&u.addSMAAPass(),"auto"===r.antialias?(this.composerController.disable(),this.event.on("passcheck",(function(){var t,e,n;null!==(t=u.bloomController)&&void 0!==t&&t.active||null!==(e=u.outlineController)&&void 0!==e&&e.active||null!==(n=u.ssrController)&&void 0!==n&&n.active?u.enable():u.disable()}))):(u.checkCopyPass(),this.event.on("passcheck",(function(){u.checkCopyPass()})))}},{key:"initCSSRenderer",value:function(){var t=this.options,e=t.container,n=t.css2DRenderer,i=t.css3DRenderer,r=t.css2DRendererParams,o=t.css3DRendererParams;if(n||i){var a=new tt(e);a.staticRender=this.options.cssStaticRender,n&&a.addRenderer("css2d",r),i&&a.addRenderer("css3d",o),this.cssRendererController=a}}},{key:"initControl",value:function(){var t=this.options,e=t.control,n=t.mapControl,i=t.transformControl,r=t.controlParams;if(e){var o=new I({camera:this.camera,controlParams:{domElement:(null==r?void 0:r.domElement)||this.renderer.domElement},mapControl:n});this.controlController=o,this.gui&&this.controlController.setGui(this.gui)}if(i){var a=new U({domElement:(null==r?void 0:r.domElement)||this.renderer.domElement,pencil:this});this.scene.add(a.control),this.transformController=a,this.gui&&this.transformController.setGui(this.gui)}}},{key:"initGui",value:function(){var t=this.options,e=t.gui,n=t.guiParams;if(e){var i=n.lilGui,r=n.container,o=new pe({title:"控制面板",expanded:!1,staticPath:this.options.staticPath,container:r});if(this.gui=o,i){var a=document.createElement("div");a.className=de["pencil-old-gui-container"],document.body.appendChild(a),this.oldGui=new(ge())({container:a}),this.oldGui.open(!1)}}}},{key:"getSize",value:function(){var t=this.options.container;return{width:t.offsetWidth,height:t.offsetHeight}}},{key:"handleResize",value:function(t,e){var n=this.rendererController,i=this.cameraController,r=this.composerController,o=this.cssRendererController,a=this.drawController;null==i||i.setSize(t,e),null==n||n.setSize(t,e),null==r||r.setSize(t,e),null==o||o.setSize(t,e),null==a||a.setSize(t,e),this.event.emit("resize",{width:t,height:e})}},{key:"pick",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.raycaster,r=this.options,o=r.container,a=new h.Vector2,s=o.getBoundingClientRect();if(a.x=(t.clientX-s.left)/(s.right-s.left)*2-1,a.y=-(t.clientY-s.top)/(s.bottom-s.top)*2+1,this.camera&&this.scene){i.setFromCamera(a,this.camera);var l=i.intersectObjects(e||this.scene.children,n);if(l.length)return{object:l[0].object,intersects:l}}}},{key:"render",value:function(){var t,e,n,i,r,o=this.renderer,a=this.scene,s=this.camera,l=this.clock;if(o&&a&&s&&(!this.options.staticRender||this.cameraController.checkCameraChange())){var c,h=l.getDelta(),d=l.getElapsedTime();o.clear(),u().update(),null===(t=this.controlController)||void 0===t||t.update(),null===(e=this.drawController)||void 0===e||e.update(h,d),null!==(n=this.composerController)&&void 0!==n&&n.active?this.composerController.render():null===(c=this.rendererController)||void 0===c||c.render(),null===(i=this.cssRendererController)||void 0===i||i.render(a,s,this.cameraController),null===(r=this.stats)||void 0===r||r.update(),this.event.emit("render")}}},{key:"start",value:function(){this.renderer.setAnimationLoop(this.render.bind(this)),this.event.emit("start")}},{key:"stop",value:function(){this.renderer.setAnimationLoop(null),this.event.emit("stop")}},{key:"dispose",value:function(){var t,e,n,i,r,o,a,s,l,c,h,d,p;this.stop(),u().removeAll(),this.handleResize(0,0),null===(t=this.resizeObserver)||void 0===t||t.unobserve(this.options.container),this.resizeObserver=void 0,this.resizeHandler&&window.removeEventListener("resize",this.resizeHandler),null===(e=this.assetController)||void 0===e||e.dispose(),null===(n=this.cacheController)||void 0===n||n.dispose(),null===(i=this.drawController)||void 0===i||i.dispose(),this.cacheController=void 0,this.drawController=void 0,null===(r=this.controlController)||void 0===r||r.dispose(),null===(o=this.transformController)||void 0===o||o.dispose(),null===(a=this.cssRendererController)||void 0===a||a.dispose(),null===(s=this.cameraController)||void 0===s||s.dispose(),null===(l=this.sceneController)||void 0===l||l.dispose(),null===(c=this.composerController)||void 0===c||c.dispose(),null===(h=this.rendererController)||void 0===h||h.dispose(),null===(d=this.gui)||void 0===d||d.dispose();var f=document.querySelector(".".concat(de["pencil-old-gui-container"]));null===(p=this.oldGui)||void 0===p||p.destroy(),f&&f.remove(),this.controlController=void 0,this.transformController=void 0,this.cssRendererController=void 0,this.cameraController=void 0,this.sceneController=void 0,this.composerController=void 0,this.rendererController=void 0,this.gui=void 0,this.oldGui=void 0,this.event.removeAllListeners()}}]),t}();me.options={isdev:ct,stats:ct,gui:ct,guiParams:{lilGui:!1,container:null},axesHelper:ct,control:!1,transformControl:!1,light:!0,renderer:(0,a.Z)((0,a.Z)({},b),{},{antialias:ut?"msaa":"smaa"}),staticRender:!1,cssStaticRender:!1,multisampling:8,scene:{background:null},camera:{fov:45,near:1,far:1e3},bloom:!1,bloomParams:{threshold:.2,strength:.5,radius:0},outline:!1,outlineParams:{edgeStrength:3,edgeGlow:4,edgeThickness:1,pulsePeriod:0,rotate:!1,usePatternTexture:!1,visibleEdgeColor:"#5ee8e8",hiddenEdgeColor:"#190a05"},css2DRenderer:!1,ssr:!1,ssrParams:{maxDistance:10,selects:!0},css2DRendererParams:(0,a.Z)({},$),css3DRenderer:!1,css3DRendererParams:(0,a.Z)({},$),staticPath:"/",resizeObserverType:"resizeObserver"};var ve=i(8031)},4811:function(t,e,i){"use strict";i.d(e,{lJ:function(){return u}});var r=i(4942),o=i(5861),a=i(7757),s=i.n(a),l=n(4678),c=i(203),u=function(){var t=(0,o.Z)(s().mark((function t(e,n){var i,o,a,u,h;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.version,t.next=3,(0,l.get)(e);case 3:if(!(a=t.sent)||!a[i]){t.next=8;break}o=a[i],t.next=14;break;case 8:return t.next=10,(0,c.Z)(fetch(e).then((function(t){if(t.ok)return t.blob();throw new Error})));case 10:u=t.sent,h=u.res,u.err||(o=h,(0,l.set)(e,(0,r.Z)({},i,h)));case 14:return t.abrupt("return",o?{url:URL.createObjectURL(o)}:{url:e});case 15:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},5006:function(t,e,i){"use strict";i.d(e,{disposeMesh:function(){return o},getCache:function(){return l.lJ},isPlainObject:function(){return s},makePromiseCreator:function(){return r.Z}});var r=i(1270);function o(t){t.geometry&&t.geometry.dispose(),t.material&&(Array.isArray(t.material)?t.material:[t.material]).forEach((function(t){var e,n,i,r,o,a,s,l,c,u,h,d,p;null===(e=t.map)||void 0===e||e.dispose(),null===(n=t.lightMap)||void 0===n||n.dispose(),null===(i=t.bumpMap)||void 0===i||i.dispose(),null===(r=t.normalMap)||void 0===r||r.dispose(),null===(o=t.specularMap)||void 0===o||o.dispose(),null===(a=t.envMap)||void 0===a||a.dispose(),null===(s=t.alphaMap)||void 0===s||s.dispose(),null===(l=t.aoMap)||void 0===l||l.dispose(),null===(c=t.displacementMap)||void 0===c||c.dispose(),null===(u=t.emissiveMap)||void 0===u||u.dispose(),null===(h=t.gradientMap)||void 0===h||h.dispose(),null===(d=t.metalnessMap)||void 0===d||d.dispose(),null===(p=t.roughnessMap)||void 0===p||p.dispose(),t.dispose()}))}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function s(t){if(!1===a(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!1!==a(n)&&!1!==n.hasOwnProperty("isPrototypeOf")}i(7757),i(5644);var l=i(4811);n(3053)},1270:function(t,e,n){"use strict";var i=n(203);e.Z=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return n.promise=new Promise((function(t,e){n.resolve=t,n.reject=e})),t&&(n.promise=(0,i.Z)(n.promise,e)),n}},203:function(t,e,n){"use strict";var i=n(1413);e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.then((function(t){return(0,i.Z)({err:null,res:t},e)})).catch((function(t){return(0,i.Z)({err:t,res:void 0},e)}))}},1988:function(t,e,n){"use strict";var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,".AQRoVkVcwAXxOpPhl6wX{position:fixed;top:8px;right:8px;z-index:9999;width:400px;max-height:80vh;overflow:auto}.clkVvR10CkFH7lhgjQhC{position:fixed;top:8px;right:410px;max-height:80vh;z-index:9999;overflow-y:auto;pointer-events:all;visibility:visible}.QfTBCyt6hUW1bNspajG_{visibility:hidden;pointer-events:none}",""]),a.locals={"pencil-gui-container":"AQRoVkVcwAXxOpPhl6wX","pencil-old-gui-container":"clkVvR10CkFH7lhgjQhC",hidden:"QfTBCyt6hUW1bNspajG_"},e.Z=a},6004:function(t,e,n){"use strict";var i=n(8081),r=n.n(i),o=n(3645),a=n.n(o)()(r());a.push([t.id,"._Is5gonPPM56gH54DXJH{border:1px solid #5af;background-color:rgba(75,160,255,.3);position:fixed}",""]),a.locals={"selection-helper":"_Is5gonPPM56gH54DXJH"},e.Z=a},3645:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i="undefined"!=typeof e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&a[u[0]]||("undefined"!=typeof o&&("undefined"==typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},8081:function(t){"use strict";t.exports=function(t){return t[1]}},7187:function(t){"use strict";var e,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!==t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,i){function r(n){t.removeListener(e,o),i(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",r),n([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,n)}(t,r,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,n,i){var r,o,a,c;if(s(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(r=l(t))>0&&a.length>r&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,c=u,console&&console.warn&&console.warn(c)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=u.bind(i);return r.listener=n,i.wrapFn=r,r}function d(t,e,n){var i=t._events;if(void 0===i)return[];var r=i[e];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(r):f(r,r.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function g(t,e,n,i){if("function"==typeof t.on)i.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function r(o){i.once&&t.removeEventListener(e,r),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[t];if(void 0===l)return!1;if("function"==typeof l)i(l,this,e);else{var c=l.length,u=f(l,c);for(n=0;n<c;++n)i(u[n],this,e)}return!0},o.prototype.addListener=function(t,e){return c(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return c(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,h(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,h(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,i,r,o,a;if(s(e),void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,r),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},o.prototype.listeners=function(t){return d(this,t,!0)},o.prototype.rawListeners=function(t){return d(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},5666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(O){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new k(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return T()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=u(t,e,n);if("normal"===l.type){if(i=n.done?f:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=f,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}t.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",f="completed",g={};function m(){}function v(){}function y(){}var b={};l(b,o,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var _=y.prototype=m.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(r,o,a,s){var l=u(t[r],t,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}}function I(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return v.prototype=y,l(_,"constructor",y),l(y,"constructor",v),v.displayName=l(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},C(A.prototype),l(A.prototype,a,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new A(c(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(_),l(_,s,"Generator"),l(_,o,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:E(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},3379:function(t){"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var o={},a=[],s=0;s<t.length;s++){var l=t[s],c=i.base?l[0]+i.base:l[0],u=o[c]||0,h="".concat(c," ").concat(u);o[c]=u+1;var d=n(h),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var f=r(p,i);i.byIndex=s,e.splice(s,0,{identifier:h,updater:f,references:1})}a.push(h)}return a}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var o=i(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var l=i(t,r),c=0;c<o.length;c++){var u=n(o[c]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}o=l}}},569:function(t){"use strict";var e={};t.exports=function(t,n){var i=function(t){if("undefined"==typeof e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(i){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:function(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:function(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:function(t){"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){(function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r="undefined"!=typeof n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(i,t,e.options)})(e,t,n)},remove:function(){(function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)})(e)}}}},4589:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},9995:function(t,e,n){var i={"./red.png":493,"./yellow.png":4171};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=9995},1488:function(t){"use strict";t.exports="uniform sampler2D baseTexture;\nuniform sampler2D bloomTexture;\n\nvarying vec2 vUv;\n\nvoid main() {\n  \n  gl_FragColor = (texture2D(baseTexture, vUv) + vec4(1.0) * texture2D(bloomTexture, vUv));\n  \n}"},3978:function(t){"use strict";t.exports="varying vec2 vUv;\n\nvoid main() {\n  \n  vUv = uv;\n  \n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n  \n}"},8171:function(t){"use strict";t.exports="varying float opacity;\nuniform vec3 color;\n\nvoid main() {\n    if (length(gl_PointCoord - vec2(0.5, 0.5)) > 0.475)discard;\n    gl_FragColor = vec4(color, clamp(opacity, 0.2, 1.0));\n}"},8678:function(t){"use strict";t.exports="attribute float scale;\n\nuniform float time;\nuniform float nodeSize;\nuniform float speed;\n\nvarying float opacity;\n\nfloat noiseSize = 3.0;\n\nfloat hash(vec2 p) {\n    p  = 50.0*fract( p*0.3183099 + vec2(0.71,0.113));\n    return -1.0+2.0*fract( p.x*p.y*(p.x+p.y) );\n}\n\nfloat noise( in vec2 p ) {\n    vec2 i = floor( p );\n    vec2 f = fract( p );\n\tvec2 u = f*f*(3.0-2.0*f);\n    return mix( mix( hash( i + vec2(0.0,0.0) ), \n                     hash( i + vec2(1.0,0.0) ), u.x),\n                mix( hash( i + vec2(0.0,1.0) ), \n                     hash( i + vec2(1.0,1.0) ), u.x), u.y);\n}\n\nvoid main() {\n\n    float DF = 0.0;\n    mat2 m = mat2( 1.6,  1.2, -1.2,  1.6 );\n    \n    vec2 pUv = vec2(position.xz) * noiseSize + time * speed;\n    DF  = 0.5000 * noise( pUv ); pUv = m*pUv;\n    DF += 0.2500 * noise( pUv ); pUv = m*pUv;\n    DF += 0.1250 * noise( pUv ); pUv = m*pUv;\n    DF += 0.0625 * noise( pUv ); pUv = m*pUv;\n    DF = abs(2.0 * DF);\n\n    opacity = DF;\n\n    vec3 P = vec3(position.x, 0.01,  position.z);\n\n    vec4 mvPosition = modelViewMatrix * vec4(P, 1.0);\n\n    gl_PointSize = max(1.0 * 20.0 * nodeSize / -mvPosition.z, 0.5);\n    gl_Position = projectionMatrix * mvPosition;\n}"},251:function(t){"use strict";t.exports="// Author @patriciogv - 2015\n// http://patriciogonzalezvivo.com\n\nuniform float offset;\nuniform vec3 glowColor;\n\nvarying vec2 vUv;\nvarying vec3 vNormal;\nvarying vec4 vWorld;\n\nvoid main() {\n    \n    vec2 Coord = cos(1.0 / 4.0 * vec2(vUv.x * 2000.0, vUv.y * 1000.0) + vec2(0.0, - offset * 3.0));\n    float grid = smoothstep(0.9, 1.0, max(Coord.x, Coord.y));\n    \n    float shieldRato = 1.0 - dot(vNormal, vec3(0.0, 0.0, 1.0)) * 0.5;\n    shieldRato *= shieldRato;\n    \n    if (shieldRato > 0.7) {\n        shieldRato = 1.0 - 0.45 * shieldRato;\n    }\n    \n    gl_FragColor = vec4(glowColor, (shieldRato / 1.5 + shieldRato * grid) * ((vWorld.y - 2.0) / 5.0));\n}"},2997:function(t){"use strict";t.exports="uniform vec3 viewVector;\nvarying vec2 vUv;\nvarying vec3 vNormal;\nuniform float c;\nuniform float p;\nvarying float intensity;\nvarying vec4 vWorld;\n\nvoid main()\n{\n    vUv = uv;\n    vNormal = normalize(normalMatrix * normal);\n    vec3 vNormel = normalize(normalMatrix * viewVector);\n    intensity = pow(c - dot(vNormal, vNormel), p);\n    \n    gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n    vWorld = modelMatrix * vec4(position, 1.0);\n}"},5705:function(t){"use strict";t.exports="uniform sampler2D alphaMap;\nuniform vec3 fresnelColor;\nuniform float fw;\nuniform float radius;\nuniform bool isTop;\n\nvarying float intensity;\nvarying vec2 vUv;\nvarying vec4 vWorldPos;\n\nvoid main() {\n  float height = radius * 2.0;\n  vec3 glowColor = fresnelColor.rbg * intensity;\n  float dist = distance(vWorldPos.y, isTop ? -radius : radius);\n  vec4 fragColor = vec4(1.0,1.0,1.0,1.0);\n  fragColor.a -= smoothstep(0., fw * 2.0, dist);\n  fragColor.a *= dot(vec3(0.2126,0.7152,0.0722), texture2D(alphaMap,vUv).rgb);\n  fragColor.rbg = clamp(glowColor, 0., 1.);\n  gl_FragColor = fragColor;\n}"},1089:function(t){"use strict";t.exports="uniform float fresnelWidth;\nuniform float fresnelExponent;\n\nvarying vec2 vUv;\nvarying float intensity;\nvarying vec4 vWorldPos;\n\nvoid main() {\n  vUv = uv;\n  vWorldPos = vec4(position, 1.0) * modelMatrix;\n  vec3 positionW = normalize(vec3(modelViewMatrix * vec4(position, 1.0)).xyz);\n  vec3 normalW = normalize(normalMatrix * normal);\n  intensity = pow(fresnelWidth - -min(dot(positionW, normalize(normalW)), 0.0), fresnelExponent);\n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}"},5587:function(t){"use strict";t.exports="uniform vec3 pointColor;\n\nvoid main() {\n  float w = length(gl_PointCoord - vec2(0.5));\n  float l = 1.0 - w * 2.0;\n  float c = 1.0 - w * 3.0;\n\n  gl_FragColor = vec4(mix(pointColor, vec3(1.0), c), l);\n}\n"},7673:function(t){"use strict";t.exports="uniform float time;\nuniform float noiseSize;\nuniform float speed;\nuniform float size;\n\nfloat hash(vec2 p) {\n    p  = 50.0*fract( p*0.3183099 + vec2(0.71,0.113));\n    return -1.0+2.0*fract( p.x*p.y*(p.x+p.y) );\n}\n\nfloat noise( in vec2 p ) {\n    vec2 i = floor( p );\n    vec2 f = fract( p );\n\tvec2 u = f*f*(3.0-2.0*f);\n    return mix( mix( hash( i + vec2(0.0,0.0) ), \n                     hash( i + vec2(1.0,0.0) ), u.x),\n                mix( hash( i + vec2(0.0,1.0) ), \n                     hash( i + vec2(1.0,1.0) ), u.x), u.y);\n}\n\nvoid main() {    \n  vec2 pUv = vec2(position.xz) * noiseSize + time * speed;\n\n  float DF  = 0.5000 * noise( pUv );\n  float nSize  = 1.0 * noise( pUv * mat2(1.2, 1.6, 0.2, 3.0) );\n\n  vec4 mvPosition = modelViewMatrix * vec4(position, 1.0);\n\n  gl_Position = projectionMatrix * mvPosition;\n  gl_PointSize = max(abs(nSize * size), 3.0) * (1.0 / -mvPosition.z);\n}\n"},6612:function(t){"use strict";t.exports="uniform sampler2D uTexture;\nuniform vec2 uOffset;\nuniform float uRepeat;\nuniform float uOpacity;\n\nvarying vec2 vUv;\n\nvoid main() {\n    vec4 color = texture2D( uTexture, vUv + uOffset );\n    float alpha = smoothstep(uRepeat, 0.0, vUv.y);\n    if (color.a < 0.1) {\n      discard;\n    }\n    gl_FragColor = vec4(color.rgb, alpha * uOpacity);\n}"},8961:function(t){"use strict";t.exports="uniform float uRepeat;\n\nvarying vec2 vUv;\n\nvoid main() {\n    vUv = uv * uRepeat;\n    gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}"},9576:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAEACAMAAADyTj5VAAADAFBMVEVizeJn0ONayN1v0eJrz+Feyt9jy95r0uVnzeBVx9522Ol72OhOw9xy0+Rv1OZTxNt31eUfREsfQEdIv9hJwtwUKS1z1eddzOEXLjJXyuEZMjYlRksQJSmB3OtRxt4PICRMwNiA2eccNjp82+to3fNDvNZex9xy4PUaPUQMGh0hPUJDv9p65PZi2vF14/gjSVCF3uwZOUBi1u1YxNonTVR13O585/kJExYtVVxu2e0aQEhQ0Opt3/WK4e6B6PkfOj5Py+UoSlB81uRc1u8pUVho2vAlQkaF2+g1ttMhTFU9doAwX2eH6vpdz+Zu3fF34PJWzuZS0+5EiZZSwdhBfIc+vNiH5vWK3upX0eoxW2IUNT02eYY+udMqWGGU5O+P5O8kUltIzek4cHtX1vBo1Og/g5A2a3UdR1B84PFo1+xHgoxc0+uL7fw3Z28RKzFd2fJMx+AvZ3I5utaA5PRCj58pXGZMi5YTMDeC4PA5iZmR7vwwYmxNn66Q4Oth0+k4Y2kwcoCa5/Bi0OU4f41Mkp4+b3cpYm5Xn6tNmKWY9P+S8v9u1ul30uEubHlHyOQjVmFEl6cus9EvUldZs8SO6fcuTlI/aW9WkZpRtck0V11Pp7hu5PpCw+BHeYCB6vxK0e5t6v9tw9Ke9v8xgZJZusx27v9AyulWrLyM8f9frLlRvNJ87P86xuU5kKKF7v9jvs9XpbNEna9Fqr9PrsFissBhuMiA8/9WmKMqd4hfprFHpLc4XmQsSExn4PhSh49g3fdjxNY6lqoTOkRm5v5bwNN16P2s/f8iXGlFc3kBAgJJt86J9/9svcokaHeg6/MWQ01Of4aS+v9O2fZpt8NIscY4v96V6vab7/pV3floyNqk+P9d4v0cUFxvy9s+sMl6zttjoKh2yNQ9orgth5sYSlU6nbJtsLklb4B5wcqj/v+a/v86p79gmaB0uMFC1PQuweMeYXAvl69rqbCF0dsbVmQrj6a3//+p8Pcirc6CydMqudqN2OEifZIrnrkwqcU2zO71/JgyAAHXU0lEQVR42jxbd1yUVxad3nsfpjEwM8wAQ+9D7733IkjvRXpHulQFUZSmCGJHxY5YUKNrib1GjT2rMWvKZjdrks1ets1//Jg337vv3u+9c+45D/Hllz/Jzjxcuyr1wSaDuFQLSc1u+/ZcEpJPt2Sh8Dyybbv97kwsEv9YsClWYiHJDZTNG0okNUc1+bZIFDbTQQ+HxKJC1tt32/J4PLSbORKPR4S02W9tRWB6z4nLbOHLGye4v65yWfXlPzSbH65NTX2waEzm0XiOXfYNmVgE31ovh0LBIlqTNAshKKJwVFYWQiSiMosEv/4dPn/WfHyQmuryYMg3NVVC3njSfncuDYlQ6SXkwg/n5muOhkilMKY/nAiTqRRcLKVIQ7bat/ciaAj2cmKyCYVTusO+oZdG4z3Ta7blGcrLo2UvJTxEyIKmJYROMTF5I/5nTEzM+H772hA+koZQmxuSENLSNvvz7liE8LnsrzFrNmwY75TN9OJ5NS9lHx+uWrv2waKBp4TMs22wrwiXcqRRBuYIPI9nG6mZa0Ui+DPibFsyWfLgiviZxMXlAQQdG+fi4jLkRiXRkCH77V+PE7Gt1tUBrUj4M8n+7X02m3NP1jkeY2LCqeRe7JVYpF6HoF0khjUjvhISDRtea3++lMMpfS5+47+GQwlp0RwuZVNaZzSBjggEvzVFfJVj4v/5tf2OUgqKRhaJeDQ8Iq/WvqEJiaQ9ExQ9WLvKBbJ2j7MmpvSV5sa4CRErDRBE8ZF4w9323Y4YxNrGJ1v+/HDt2lVPXmz6otHCwiVW1JcLzz3bn7SEw+N7z4ls8Qg8Zm/Qi0K5iyR2t/ekXEJmuHocdURgUWZV9ZcIMA0+C0Oi4XGX0tvGCFAAM0wrqBn0ZEKXKVnit+7d4heNqamrnoy8hGQ2Pvl4pceTTDZk+PKQWL712bITEfpYRNMo04vIJ9KX0hp8sAicUdfi9Jd///vah6e/fpC6tvH95lvvG10sUv1EEhIPiVqqb59k8HhhRz2csUIhShFwqgAlxDqvD1qK4iOQjr7nIF24kpYbU0qOyfgeVibJ0JCxq/lFMBUK4O5Qj1zCw3nlHA5nc5Q7d/z1D/81a2LuLyuFKL7qbH/0JBUK4KpTuFRIjJp6+nqfv7//wNuAMQy8DHUj/4CFWvvkY8d0nAXkhoXiS6X6Z/vbxtBkku12kQ8KCfGkNRhReYx177bskkO060ZebnRx8dtVlX2JgORL9ZdjYjiUqJLOHSVYJDb8HlNnYhKTPPXmh31KDlu3P2WMYCixeHD614erXPzWnZnYhUFihWx1qUnMGv8//vrbpw1rlAOvbq5mm1DoCpu5UISQrqgYvKOE/35efl7KkeIuRUfvxdDwvRdZTQg8knCg+UVPY6pL+W4brTLGRD/i5qsBNhFVUhu0hIKiNRRhevEIC0ndyHcP13659ouPi9ONq1JXxRm/zOWRMYrsdAWWj+idN0biaSS5nUM7JDOu7qRHOQNynSs61YRAoBRZQWZUGh5PMH7MwyOxirJALZaPzRtWt8JQgulQlytZkjr949D0qlWpqam+d2MtYEnObJqOk0hcfjLuy0RJ6RGXv9Gx4b09pR6HjQDrY94VhsajY19smYY5WVj4Xo91gaI5c2U6blWqy9fGfTyIyzko0pRBQ+bNMfOwfD4u1PxQPBaPDq1NU+DwPBLPeCYTz0M7p9+IYMeYcO65US1SXfzqEja7ksnk8t2nN/oZ8gjhTm8HOJyYfSeefvKHz4ZEWD+YTGe6GRrBDx9VI7BSjr7uDay5f8zAfnMfAhRA7Onv4H2KW7d50xOYi6TP+Fwrn0jR1ke7yg3JNXd9M1eqsSCgwgqBpwa/GKqD1bRIPf3njS4Ssmt0kRFsKaXPE69yIOOrLyd50YkU91PqcA5kb9/Nn8dNpBRdrbcRxlBCdvF9CVtl4/StbDsMEvahxOQNv/zyy+c333zasGHD55+X77M5RHoB86Atgkjxqk3T6ZvEmPhDACZSVEl/uhGGx+udscTCXoxxTWgPhhen/KDIig2FF876YUAqRFm1DWasFADa+CUJCsCzB3aAlQL4cdP7RtgJHpxe2eBwY4HRY9ZCVOs5pg8GTUPvDepy9bSIq/tuywEMD48zs7kXguXTnduz96JJaLwjE4GE3RxehrPWfGzmRXOFCl7jvYsng+UWcQ+/W3wPayEvHHlZ4+fi17N54n1cqouFy2lDPIqifHRjRwRbSnG/d3NKH4HEjaXtLmeQ+wrfNa9MJi7Y4+uauNS1f/t464s4OArIIlsMFqEaK2uf7MPjmkZtFNZYPu6S99YCFZKgWF95CUM2lMd6PO5F03Bj0S0l8FpxokTl8lRI26bjwQxDRhjsAH4WZMLZnN/HlTH++3776x8b1vhvuL+cHLPGRDn1zcoWRsg8B28zhaO8M/jzp1/8kwdepY3haCRPCGBjY2rc9MeJLxpXuUhcTpNpCGHUUnrVgT4eo+alh5G1VBp1dvCQlwqPKX+3OO23Ch478tMDP8O+yar0MRWfzuE4la5kfKqztkRpol96LyeDDYfMH7ADJFP0decrL0EFe9aN/Ppg1dpV7zdP7MIJUVLl8udf4PNpZQeAOvj95h/JFJT12YC5PJSUnbH/8h2IUjnupISDgZ2RFD2G41FJj0WhBDwedoAuV3mqH2x7Y1Erm1XAtwP6Uv2Sis4lFRJPzRVReWiE4YGXslvT06ueTDcbNH6x9ssvvrM/XliDcc5Ui/AKVLg2y36rcybS9LG4udxVvnHXhGzejocfG7ZvsWpC+YQ66KHtSKSxBvtabTg9g13NJGagQkpWxrTizR6LizY+bHzYc4X765NVLrv+rNlct9EvuNzbzWJdY+yBk/ZdziH0CHp1TqmOEh7RYv82IgRpNiPLLo/1iy3cJPh1elXq9HXN5nUP1/7tiy2+Xz6Ji+0B3KAIQRjhBA65phhH50DNgpYvVMxosq0KsFZWKdzHhS6p647Yt9uFEbQhajUxg+4eUWu/u+fBqid+gqDYjfJyuwnZyx4Xi8lhzY19+zZ8+nxT/M99a+7v/Nn+t533/XfGJLIQWkKec5b9qZIQSsRV2dP7n9YMrO7UjBrRSLu2a870PGxcV7fouxa2gJ539l1mIcQSlIENyYzgaFelmVOESGHM5YJQaphrB/frnrVrpyHonnJ5cK6NAUFBFGa8tt+fMe6/T1kcULpTObAS9E6TNft+t//r/X1K9/hK8UUjZC8s1McnD1c9eTjia2hEDM/Y8affPq8kXnbz86dfPn/+3v6HnaV87T1NWXy8vs49Tfx8tVQ49bP9johwfZ3UksVXUG0nAbkFG/Ls+gTNYaZ+K1k7qkAgtKOafl04WxefVnzOCEnaBWjPNBdByNb7eGvoXc+Pbh0vhs48bGw2PrnJ4XpYFje9yjer6bClcbdNykxvIDc/WtQVdtDYoZuZjSYEcWs7WVtD2wX1Faxox3kbvYoUm4XwFll/UmJb+KlE9XqboHO96YKqMyPvpt8ZN/+45dYqvyKD4x1DdwuP63Uc9zgTu93GrTshbbSpRZyeZLlD9yox8fXy4B5+Gbcq2uOk60m3oJMjtyz6mt26srf8Y/qF260fhzZvfDnC6nJIm7GNFuTni46HzVmad5tX7iHWi9s61eutKgRBXR63UuWLxl313kdCs7jZkaw2qwW1ZXfCpp8enNE7ky86WXfE2LvL+4qcXMTd8dfE159/07w5Uf19zPOc4tqnN1+5n5CVtVkmhR9WW+7PSRst7ZS13Kj+beB8sXkFqwyHa9aDAL7reWFwBSbz8Kctxl1B3kfzkriBkb5VPgu+om7v+nMhnbKkdFZ3aINBwkmbidS4TQYvOryPuB7Xy25nRQPOMahIC/j2/g3NjZbEE+M/VCf+lvjmnxv+qvnmr9Wv9+0vTqtgpdPQQcY/Xln8Mzxn4jgrK+Swuvq35eXff/mr/fffF/92/+diGDN4lV4pO3HZcv/qWu7THZY3pFdzuLWDTAhADAFkhV0X+XYlNH9dEyioyhd11b3zdejygACCBJFlrEO6Wu5gLSsw85yD24tmh6MIvSJyXc/dBF/R3Z6e1DNDvmce1BWe9HYzHzZz/bpIXZwU72MVydRLeWzqur3Z2KDLLiwzWqRXj/XyOmXjZrzVWaHKZgkCQ6ysKnIE6sNeunuDicUn3L0cqzz0Ep4VrvtHh+j0u+npLzcPuV0xDA7e7WAsOhJc6DchMoh2NArrNtczH9Vq7w1aFp+4v2/8hFqQcs7U9WiCm/FJ12CLfA+9dIvC4HeLvjZ/fvJFI4zJDzMNbfcwcHhZGLy9nmVQERrmmOVUnBLlFXEqINHyYHCdy5kRt1surkYNNgbMo6Zmj4tYell5phtfOBg3/9RT+HITLIxrcE2VjUGRSrfz52Vx8etP+5K/T+T2l0bo9jtVO32r0z2HANrCdeE7nIoDrq7e+XtOdfX+eC9pC0tQRnW1O5Lg6/HdunVxt0bcztS4lnfZGJjPOJtuLzLWaw8LDWs310vb46VdSLM0aDB1leSPuE1ICiFoN9EROztMB0uQ1OTjU+Ekdvp2te7bp9XiE/c//XKjWnbzn58+/XATnlOg5QeKDCZSp6e/SzC2+XOP6+Myy+KW8X2fv0mULf/+6dPvb6rFO2ChWtTFT5N37lwZcyhCR++35HZyIrzWM6udDntl7KmHoHODYz9ucUv4ui54e7PIuCvYzhayVkQ1UpwKqLY8lKFVpbP0omsKC0+aI4quGTKo5TUCebCnn9/7jlt/a/STT87rudoy/CTHPCou0OmoC+uNZ0lUas0Bg6MHGAzMsfyEY1gUygshQFipCPxtlYHb6HR6yULxlDudzbmzvP+OUh97qYJ5jCT3e/g3t1+/WLVq7d/ONH+QyNGmVAEpDH74w2L+NRwBM7ZQXdKKonPuWJ7/i7//mju1zAsIAs7RVO/lJJXMuHal6BiVwQjuE8TGyuMsbjtUzaKpuLE5t70kT3nNAbfde9Fo9GxkzgU+ClXQJHhsJ29s/OLKxHsGAas4J/CxpVJJ10baj6EZfh/e+X5YtarxwQe3u7sYZPm1SIdZFEV/4LP4l08bkmMeXe7/is3WLxktjhhIVprcWX79lT5b/9F+9SOOMvn+zuJvIyj67K+SUmaRVHS5i15qnZws+dB864NcLj9wVO+SLQZHuubbdY1KpR7rZm2DyYR4CUbNCAT0tYlNt+VycjBD0BtKwCFmHdq2obDYpYXqqXFlsslfEs/fAfTxx2/LfwC2u3+/+PmUPh01m97xwcKvcfpXQXksA4O4kLPjETt5wx8/VP/xGb70R/UPf0mGhdrx5lHMmjX77hdfjdDXR23rLLtAoeMUV4t1A/pY/racir1Usvz2O9/bLn7y2F1udw94ktHH8rdc46ExPq3FdCtrHPJY88QHPz8/115ERzmZhOdRfb8GBhg3fevWdKOERJoXGTIkLnK7lAorohRr1WATiqEBzvE4YghkPyyyyMxaSiGqWOeAdKm0ZYBopZzSw06lFKIwSvdm/4CSQ3HfH2BFIFs0/n3kp79/+eWXTzZ3uDLIPN5j38c0soVfT0eVKwaBCIExKKFUOfDm5/tr1viP16bF04lCbKboaC/PkGEanW1EBb74zBeDxPMwAP2tCEBx5zxsMTwLefnQuxo0HmdVMajF8YVYpO9LC4tVEMBEHRUB7QQWEk8iMYKbj8cyJJLYd0MbGwHnbhw5kssgU0MjKxUoopSdvPxPf/8Yfd2Nb4BYsaX3nDjKFUj+Zn84BRDz+YB4FJHjf3/5VSnHRKlrq1cAKyZ7+v6aKuGhXTvOFMoNJTXXRbZkGh7tuqWrnGzIC2vwDoXJ0N2dFjIRfJzpmY5gsiEEwMIBU1ZpO9t8iFJi+CmnASUwgYGc8+7KNRs+//bm0y+/bNiwZvnbUiIWZxY9Uehnkbr2J19P+GFVxuAOd7ZJTOnbm+Mb/P2BLvwwDrxxYMfg6mSYqv/ycw5HilKkByr0KdjWUTXFRIpAFQxWWOHwjNjdQxvjUiXyco8juWRDtGlVsx0kEWmt3iNEIDF2HfnrGlMleAQiEJYESeX5PrOwSF31xa0z6+IMaaTtIkO5xMLTNaWigC5F5TV4GwENYuR6HLGl4aEA6p1VUg6d/v8CiKdL2ZzDTu4UIcI64un+AbbJGvf1aQUqnqTxi5FfH/6nAOzQJDLvmS+BB62Buo4qUxwfEfLqJnRupMp9b34eXwnv9VOd0kSKzWTO9EK92UEBoEkSCxiD4iNVJZW1Vig+IhMKgEByYUAB2GKQqILaFAWOT0TRRC9XAoACcKXipZBMIYK2UgAfg4GiQQE8XPXl31dtHLpryyOjoQC0UAAcpfo57DvsiBvfAJNil95zMlHGbNiw8+n/CqAAx6f437/5aoWGD7TVO+P4SEafCLohNAwUQB2ZR6657mHIIPGgAE6WkyUM2wYHIwJfyi51Gm7FCrFm+R1APEi0xywCEhbKqzNLS+fQ3V/dHFDGxCh1AecH2P6//LcA/GOWvxVi+RjX/AlXv1SX1K9FcjIPr9JW7lidbMIpfZUz4A+f+1AAbGgY1A5GQA39uwAo0AsIDNSyKSjkPEvIISJUJZA1Ih+fu3uoDlLsWe4xZ8uAzs3mZjNYeyR9pQBo1MkrZ9Y1WpAwQkTzMRKDYUrjPrNjxKV+sWniCwsGeu88NyzMM67mGCtyFqvCzna77bWlknNd9Y7sZTB4xwIDtvHpdC9rMcYIdrYLaf0XiHRKyWGuVzwKG3I2sfYRhx3zqFa9LZMqf/jE4CegFl9+MbF4m0QlB6PF1GC5n8uHLdHHECrs0tZiRYg1qnSqev+dGP+Yv/ymflTKpls1ce+dxWJIx8qCZnkM+YFn3F4fAi7kgnkbnEfYpQa9MUcqI/eAwcm9GNgjk5jbWlGEUFvuyx6/uNT3mzZd42FQJaPicB8Gw/Da6aprPAb59km3Dw/Wfvlw2uDIAbInbTbaZraVzl4dI36+M4bN+Wqw8yspWz/jsHhgIHnD/TvLtdvoUcQLFYlnw6OS9+0Tv72jVJo86k/bhsBh7Pq4foVUAu12wsRtQ0/ygbuCyVgyw3CX8coRwDvWrobJ0MPjuQtjWBTiWHoCnK9o08dcmgKF418ISNqGsqY/eluc4c5mu5cknv+KvWHDH98s//H5lw2f7oufZxCxtGsdRbct5J4HvuYaBjPQvduYJx6ZKCmPDlUDefAfnyo+f4cdRfkq6eYjTrL/vhjx1Qw6SjjbXDQrVBHM5rl58fr0kG2srAsoFPpYl9u1WD+/2B69I7uoaPKH/CGYMcMMK45SEDCk24tXbhsyyKY4hJvDY9fgk94ebt2mPfIrW3yv+BXattswjbeaFW4PsjEIzHTOjLZheVwvrDviYGNQVV5ITTc3SLuotapgMt26w0wvVprrVVp7xWcxWepTWsVCgFNxizCC08+09JixK/xucYvviyd/Wzsx5NvcV1h30mHEeHfP9E+bHNyy8c5NWR4i1pxC+yrHqfib0qmY75ermfe8vA6ZOxXXxitUZUyDoGeFscdtRG4HjbSjKeZ6ZZSI8CQnS9awmendBBuDLEdnbL9Tos2owuggBPCirq6vY8itGW2WV8FUJzYY2c03rwRgZlhlIxp6Of3kz81DblWxheh0czfvPRm618vq4tc6r6uVTsWVyqmBHU6W1ed37nz1xkkQ2KoNSRJZOh0GpOikLj4R7xXVyUpMO2cX1u09Ytxl5Py4yNsgmzeZCz8suhvsen3R2yDa1owWbW7JHFX4HMpxEkTmATy2cQt6ZhbaDQGst9LOrASAUIS0MdXqU15ehwOYgqTSnWu+TyxewXevl5eLa62MnnV4QwB2YceHPIx3B7vOpzCLOykRIRC0+tXqna/MmcUt4VpUv5Nezrerd752UsNCaS8W2bjV48xyj3t7WB6KiBhNydHrb3Xuzf931oJhodyqwuzIE1t8F78uBNjK1Os2Mnu2ydugCG2X2y5CSIBUFTnctTto4FA18vFh4xWDKoeUebP24vpoj26zc94GWeZFmLB8wa2JoXeTdz1sNntEZ7amc5MqAxacD7olRIoi86wri9sCUmaM2rlB6Za1um+dqtucOlVW0YLoKw7fvf/HyJaPI2ceuEwYVG1a/EfPO9/mzSMf6+TNBlXeQc9c2wXZ6er9XqPM6hOJf90w3i9uqXd6u/qHamabOikEVSSoak6YN+vWS2lJrPW5mFac5PT0qq6Nmx0oOjh53YOVpe7klPaLk+pt5sx2s7ZsFuWXM4r0Ih3SRiNqiyujme2hF70NIr2z+8qr9G7dcvhu11GRqEqU3poJzxlknso4VB2QpE4aUA6Kv7kJY16LB28k1nrNBBhkMTtVeUmyzsvqQ7pTLGaWuoUvzObmNztcnzzolpLlGxmqqoTnBJ0zPS4oChR12c3bGFeZZ6uakrjp2eanMk4liiJZSY60bEF0ivew83q9lGj1jvg9KXptAZUXrbLEnWXq/brDTMsTiZf9gRV+/2b5h51vDcyzRPm2+HpBVkLKvGmXW1G+qN3naoAgy7zy+eo2cWen5foSoKht6jKU8IbsxlOnH3SHqnOSWJFh1E16VUFB2ye7BZUt6gqrlaBtIGtVgsBAj92wUB6bbfJrYm/pnSlyOGp00M0hX1SVS6gUZDkEzSBIds9k+QdqqI5j9Xo16/wseq5DfyMTHerDsgkLw5AuddsP25GorjWCjl3l6NyeM+Jnpki+80VN5FgmJqxnk3GNHRU/ttW+YawXbeSjznF3V45P7bBf0OKhQ8S9smtj3IP3t7jyQheXXV9rPk4/jKt7suj7YF2cC/Rrdk/WyF1z3dK0VnBy7LD/dt+aGF2U7MbUOGDv78VRoA2Mzdi3T9pSw0y9jUMK6MKSn+1/3hmjjAivrjQKY9TsjdTcm+JwMqJkLWN5hNwD2XqGrjzygaP23dBhsrJiikJ9VCFL6yEAQ3JwjV7H9EbP3L3RsosKJKLkqiapJMS6SVspQHixKRmv7F9HCOk6dzUz3gsVslRhv1DCR5VQxJcj3PXDlwJl1lqhtGSPJtIMJmOXYNBrRGhdmrNvgIUqDzX2NjXFkPZW2I8qEFhnPDfduYAecrafi1OgaWbzMKYX56MIsGyKpwiXGmChMgk+TQZpBe7K0hIIeqcJZypZdmPnABwKnVyCHQ/pPGzfbuZIje3Zcjq2HNN6dr39qQgTdoSwOsWrwDqkpE0zmkGUTl3VtGS4K90zKgV46Lf3XNec3JXLMFUwmXmhmN4xyJoZjepqK6g3C0Pn7joj6yu0sOjxlFXtqqGGTQYZ2NoxesfmINOtCB7azvtoDYOEce4u2gXAA5172tMQScNcglYwwF7oijpSJeQ+aCraoXmM2LsOdgBprbU2123RvL7pF1feywET9YrQZAtDwlI/CDsUinCPuZUKSfY8sHhyo5/ED1rBPZ4SyUor2CXOQv7k48S0X6qFi4WILHGx8Nx1JdJZhcCG3Lu5D3DuhqmnP+zzj0ne9/NghL4QgbNi7smkkqCTGnjJeqXjvfwZ8LIyo7NCQeBRHYcDMpQxnCiF96kCLI8R3NW8q4/HYzgyz7UikISlpEDovhKF1kxHtKGF37pNP9Z5Sjxtj3grohBYulfA4SYsX6WoqB+zlhKJpU5KwNPsjJYkhYpIF+5hFtAp8Ofgfp2So1+w1cFMRQHslXOviYDHOEeWLeEA1ZFEOCEWWs7pWWYYPDJzNMcKh0TiLiUcKqDzcXkNKWPW0I039ZjpRQNSbutfUgmlRCwTj0TgcUtltRlKEyW0giP0pcSojKdvB5SUqPj1KWMYGkIFQbdSJfKeM7d6PHl4vIoZrg8d7aXOdi0dSchcCNACB2NHvNlaAN3q+IrmA/JVqXHlHn0WZBJ6LClpDENi0B6LHNFIWt+B+gofzL+zdsAz1QWa/tdz5Raedu1Fe/sMSeheEQaPAEDoyDwI+gvBJzIBFBY8ibEiEeAJRtmBZgQkHsQgHo8MW8CW9jAq4OmTI+UYYF29ot25JJLkyUdQEA15JLTxM4nEkOHc2aKjELEhC2ohCgkZGXqxERJf9+NQnZ+hobzG9/pGFwDqZzati7NwSf3J+BnA9ri6TdFmIHmEv1oGlANN+ZuvP29YIQRvBtgULFaoXmiFKZpGFykoa9as+WfiCmFS6gbbfIDl2c45uStBGMszb7Di08h1Hxfr5CBjINWjIO3iFP3ZAMmBERpjSCBjrVvcHCwh4R0bmE0oIZEYwlxRs7ChkQkKYJ5CZeK9FTEoo7NFgRNKhfcsKVIihx0fUBtPoRCtGjzCCERKzLj6VDgCgdO2VWrhJUA+drsIeghK25mkICBWgg5BQgGE2ux3p/ARBfsDCugIBCKTNexIQ+K0SZ1aFF8oPGf8mPZvNautgG2iHH+rFtKJWKxVzvpwNoVeUOsdikHyUStBr4iPt670+JFpmfOW1tIYE7pzQlYBEYHM28psAtGJGM88ZIUlUqwiF+viQDiQG2+vIZMYpun9CgxQ53k1FoFAUs0cauNB1M89OQKMELTc00digSsHVwXBpmGIV7nN99IQCNU282Fgebix7uZjICCQ7HypjhikaltL/jECDeOI9nWlUWmEa4tdkxhDeeHdoWtA4AkHPObLPS0a//bjlb81ShiScl/DGrlh32x/2x02kR6+xymDiMNjriWcPAAvXc93Wz6A/kvuAZWzEaTdj1c+yCV+Lht9a1waU/1ud2w+QECo4q86TSmB2f7lzc+gef2y8+end5RsOqrEaU8TCqG6lNX/VTJonhsSP28AdebO5dol2AGMZpgghFDos95HgOH0rftx8X1cHJlnxLIOpxOjLiQFzqpQxHAiy4jEMJS/39S1yxN41YL5GLzj1mPmC6EE0Ku6gy5EEelE3TLdnY1SXWhJ2objo8Kj1BEUaBU9GtyfESVVKeZstqlAt7rDvFegwlqPRRbNqhA4pJW6tRWLtb7Q33YBh0A17WEtIUABm3U4P5UsjYo4lHbBGoHFXhJtz4V2xbas7G0qKIdelm0vlYabzY5cimIrB547ldDp8NiAUyVRINKsT9mGA5FdC0FjaH23z0zc9pQwemksKyGFEjVbVHE2CquyGjUfwyIRMGbBmYCwXupqBmlt1dp1p+WxkIFj0UmzOCTGFsNSIAhIwmzQ+rNRCIzp3aEPUABxH0b+HOxn4bfrePMxNI+K91HjHRkId12FJuWxHcnsIou7284xLCxfk04La9UuCNyGjUhhvdmaSMewTOeDYoftZqRgeYK4y9TR0fS4ZpNnXeqTX08b/Hm6pjw2X3NLEmwxOcdNfDVVqiNW2reF5/U6N8gcngW71Mm3iH+sy8113ayZWPXkyyc/+bodcXWpe3BGcyb1Yeq6u4LT2+3wPtgUzY6B8furX9vnPN/p/+mfy5rXqwfCC9rsy1BeQu1CteDV6vv7/C/bf//50+d952XqeyWtRoQUTa1VXp5Rt6a5z45UKB8RfPckNTY3376Msnp86rDAYFgh1FE67fNzN6ZOf8cdemlKM1KlySp88kK8IGhrL77zORb3kJcwvqnFvp/ohTdaKDYeNsKHttZDAPHuuv0a5r2M0gxrG1ltQV6mV62mErCAdsZN74gdKSwv0D4Q6ZPpvJVrDIDBBxmkyQqPD1F0a3Ker+ZMXc0Rr/dxzAut0nRQjVqdZwwEc0a9oY6B9tG9YYaTR7is0RLOanaa/Y7wpkxFhSZgj4Kv3cOEMU15Pm32nShFpt11N7e7roYba9LtkzJDM422ikWjGa0K6zRZu2NTk6JdA21zmvM5D8G76YdPnnzU3Eqtsyi8rmcwbNSqzczWVOWWG9odFJvPaPkKdIL4ZN2DB9M/yjbJ6wwnt/tyG7xCrPKi7QNJroi3lomnsozz0encrGGHhHMHDWzmo1nd1oPciq3M+mfdgqD5bNHBGXO9rQ2sQGq+IHA7KCBHgWBsFm12mdDb/HJx07ODbt7bQXToWxSsP6S+fHWHuPJepXrrDFPv1HrffIszgvyXzQnXj7BG/vFx6MWqCb3j172Dvn4H3fkzIz/6NRuc3C3KJkRyi2Yq1W+/Xa5+u6P6hv/39t//fvPmt4f0mMMgbkRVimtfqd/88zfZzd9BNfl9Wfzz/sROVZa4bLTSfO6oyPdul0cVOVpv8z+am3+662Y+2pK44/lTMQRQefW1OG0m2+PdT1vcdh9kphNA45qv9JhbsLSci7RMQvVD0DYBo4ClF/otKx4nCI4fMS96XMFNgQDO33Pi/vzasl/ZIu6/F8AcHnZTL2RZtlmDXnXUofnZQT3vmUBW9zkHQfdWVmdUJLd+tFJ96B6r+tDr6hvJN2Tpo2k2R+eMR7ZvFkXi6rmRc+ZBj7sEDvPprIZnCXoNDaxO5QnZ5cODTrBQBlsrjJNw6eKkYW+bma0GrMNJlrWqepiMR33fSYOUmTLWwcfeegcbLDutIej5IPOtwyy3uUjIGsg9kIFf/3x68dfNIy/iivSO7zavvwi62PYOj93PVsYY96vauBMvN215+Y+RkX8cF1VRIdMLORA06DCBouMIWZvOXWvdKUt5ZuRY3uWm12XmaDQfpCnja/OasgTGR8x6jeYCZElNTVaIaLHNvFGe0UFf7vHgmmD5hHiTvDC2rstAb7ddbvD2IFl6po9Va5tsZRdY/cpc1lZQ4IOO5jp8XVhTuNtXcLxw4zq/K9wOT9easG4D4++gbn9qFkfb5uZmJolZw86Z2q1MWZJ7+OrkTs3Nf+67v/N1tXi9IlNxMUhTqR8fPnBCXHx+3+d9v9+0//7+vgFKi5i1oG3VnmKKI01jg/1uiZv9ph9Mv/M1OOkconv+1P6vFK+m8B3i6lNeIWbXHcT5trZhyCSx+bwp7ExqcaSRo5EqWwYal21ot4FgvTYk416KpoznmusYybVc0JbqXuVovhkfH4i5oXG6F+G++ryluNYrxOvqZU2Kyii3vNvA4KBziGImRdPfamUV0iZWL2jDS045aZLcBwaU/ZqbV73CrdZbcruCawr7smVBuNA8x+MGeofgsUcTZLccQ0Nbk1YWyj3jlJMsK9TRB5cu877o7Bi63oC7viTEa0+Qph5tamt73AAykOk87C2Ldgy1EibJnO4pHM12Q9A+eT6EdFmCZ8/GdRA07AJf/HpFPGHhmmsbyXWbM7M1gjFJeVZW/BaZ+XxwbM8RD8GL6Y3BfTDmmVGTVYWe4JA2xHm+CAFCCOD2Aku8LRiZbk/k317BgxctxxA4PGHWoWsvDqsymzOfxWKxiEusUQUKi5uNLDrWRybHbjSuqZFbyG93VF3zJDNMtxtfQqJQ2G0B56FNmXznfMAFOgpLO+D7zNWT7Hktv+MahoauSTV+UEPFE44VfVzxe0y/9N2LJGCwX+VsXbLGqsYa0i7o6ytNphKTB+DEv/NN/wVrLM4KZVkAZyD70eDrO/4b/Pf9vvyXmDVKylfMBQUOXGjdCSD3kF3qjOUbGxvj3t+6dRsH4oIyUVdKp+s/evr6ThQCPXnEfBa0J+Q20VE7Bl61rSJoFodH24a6kXI9SYTZ7KRZFRZlBUHjMVT0MYeGMRUlOeJUzh3ot8fcWX6uA8B+p63zggpFd3dPDAnB0hjXiiJnrVEqo3n1Ethy9C8ENCxZE/XvnH/zKHlNMifD8mq8Ppu+ra3jWp+cnEtyy+vFEHDHmiO3EXho0+2nP5CpGNRXOW+n9FGqpf1p26xRqFZnY5UPDhH1VUv/V9ZYVBPK0icTDvNrzccPYNBos2HmLAHgwQXmgvNK0O0Js1FEbKaRGyPWzyLu/QQoUy5rnzT6TqfKGdRjCd1j1lhrxRwEDVBwjHXUlGHYd61903s/MtU2160XCIJqNjsa/kvMdEWUAc6lSFHq+V6SoWfwlVuFZBpQGhYejGCE0C3HwwCV5nV5hIJ9Exvi9CpcSsT5tAUBCeMZevo+M7Rw8QvOznf1syA5HmXhsaDk+AQACuawV8QgLLhOSL5HQQ4hu+ZvCkaDPvOTr1xCQuKM6s/UNa5dtfGuKBO8Y6j4nPUF4C+yak+z0ueYrIlZPjwOYtfOG50RFCGff9UyCjQUfd3gjtVABO7/4DTA5nCIAP3z8Dy8UXuCK5VkKJH7bgeTkbxw4oorQWpi8tySTQELzOqnO9yJCJptg3kTDg8eMuAuZBpA/yAjCIAEligLCRkDRjYjLAC0oywkAoEnhDq0+6A4Ju7rcwaUMIvx5begv7B1SZUZoFtJ91juEfLxDNei6FAskKFhpxAskaMfDz4wFJE98PoNiDTg+lMfdueYWPskFZmBAkY6p1bxaEiMUX1+KJrGsz1yOlbOQ+Kscs6vWFkLaiFoCpGPMB4GTqGv6y+LAFOVcNTSmg+uOqOgyDAMHg/QPw+BBKTJbHBE4pHAXYyIwAgggBoJ2LSuTNSRJWu//Om0S6oFieGaEGlFJFLCD3k4IpB4jK1oty2JRDWNbO6Rk3g0tDE4JmkY0+xAIwySyKci+qHBQqTzmedoPDLjwER+MIOMoJ0TZaqQSMxkc5cpfKtpa5pCxYcU5BwW0qUq7Y4yBTBeNF6E5vGAo3dUgfGLR9ruYQtKmLUi5fwAcOfwQ2klKmgn2HrM2zJ4DNfIjkkMcEy/0ww0cCWz7JUxjN5h8zzg2/rAg931KfoF61O0UWBxve/03CQGrJIn+le6CkRrlpAOO8DU5Vodm2MCushqfalU5ew9F4LjEYy6m+36yCRyzelnPJLEszA62k4lpHCuOnHgS8qpv+4vUOEJeXNgtuPRCAqbYUcGGWN6vGjSE1grWdTnYiHpswvMtyPgqb0zzLx/tzhS1lvRTejxb9MyojgxIMB9O86mKHU7OoEQUOgopxXfKcEsu01rjQABzjwPxedHZaQdiocA3M+nZfxb6GPegz3LGsg/vCkMHo6JROKhMVZU5crgUW2PjmyUk4GPpB1yp4APbP+glz54i8OZM0KUMKokqaVEX0qh7HGSohBIa0V9RSj0HDIXbEIhIdZeAXO2VBIm7Hi9GSwu1dbjGYkHfrPo6Mk+SdyqX4HsSUhou6BuH2vgYqdAwkMCBbA52gubr2n7pl2eoFvxRM/wSBoBgobU4qk1iJwCKxxCMaqZG8Ojcw94L17LZZD2HtTgFAR0uaverWOZKOFSFjfEC0WPYGv2nxVGNS1dZp0tQCGWRjVHL0GBTXo03471NDxwUIYxQ6BAyTlxp5QuPJtUDD9MM8XIDh4wpNruDRLtDWOQJo9q5i8hsI5mrKJjtpjMsQoZKoJOjHcXn/iLSfL4nf7qDJ0yZvVz+5//iFG6lzzNeQQ8v2SrZkZB1I/XJZZ9FQ4/XCuTeqFQPpniyG2tuMxL6W6T5Z6Gk880c5dWAnBwmG2Kokydt38+JaXrdNX9F3oJrWOR3DBXkLyQsva9hp41t6/47oqVkw681Fx/nwpGs6HF27l9kkvrNVFaLKpAV9zyqFQZsnSCW+BFZ+/017z+Cycq/GyluiQexXce1hw+C87PEqdKmEzr0n4NzplAKHDnJj0q1Xd/1FJcUKAfs/qq5vwjKYwZZJ7Nw/AuDWtmzGjQQVSD94KQOdYurimUU40yxW3/HtNfrdPRwUqmObTEVzUtpdksuSs5GW/tn5dgUbqVoENUrZfaxY4gvGlbxe17SYzcXYFuZrCZ2J3THNlLQzvu9XYAsc7i/Xcyvx65Z5iRQfqFUjZkTZxnhMM6I2Xdl1pxtrs6fG/HMsiT85rrMCZsr0fCXlu0pHA7wlyvwYwWaJ5dXIYwO2jeMSQC+0CHQ4cgOs+0y2NCZDOzNJoSMMit9QpPsuwUpFgrFswHA6rPRxD7mdmCdJrpQZtsG4/rk30d3mXcLMfQCnWZZc7o0oxDWkpxRahtlc2EW5Fn4RGbegfjI7sk8BxBYK+igVkmEg0vXQwKqBSfCLeqtSyrvvl86tubb9K4+3Xj3yRelj31n3rrNJiT+HZnchmzjBvYWrBf3alm3ivZE+RQxI0MDY1kprslnHM+6hCU4HaysCbfJlAvG+E8ZwNiyqmI5MtOl2Ut4QXg5FKbz49dTEmr1zteGNsuSjcI6tt1ffHKJlBaDPO3TLhNrH1y12HCQXR3l2e2eac4CdCRuhOcQVOjKWmVglqd+4nE77lPr5YczhkM0DvkjIcAuDekXuvVl53UhzOignI6uVlWBbWWnYnm8KWAtBRBhdf4N5adxYP6gE8Hc/S2OiPSIejoGldYXA+PYcWeSu9sg82x5e3MbIOA5xkLAWlPufu9hC0wph6r2JpTH2D5dkrZyewUtwjjX1teTnQ6XHIxyKFeEBnmGAljUs5NXk8oajZoMOuNNk/Xy0aazXlk2xhvHZNPJEy4nYkt7BKVWTIPR0AAQQKAilmsbIMga+fri0WLxrsLJStjAkmTR7w7bFhHDsivDCG0DQYpNtm4sXMJbkE2c66mVXrNQ/mGk/PmrISU67tq8vWCWDvcp85XMwMGwX5SqVfptF+3+nVxALOMvnTR2zjI5khweZVBkHlSq2KBxUxJu1ci7C+uZNY2Kba6eacUPZ5kFLk1mzeYmnYbLA4Fos3OObBSArYqHLMEg6yk8IhXlk4BAc8jTC6Lnyb+5q47r5eTM/h85z/fFD91Oh9RUCt+o+4nltzLsUy7+Wpq/BtuCjPL0eyIyCahGZoH6XpB5t1hYCDc4tCBnnycYlBpfsrZp5ab5nTDZOpbJ3VawIIiMxq+VJVnd0Tk0LzpsRm1w22T98l1YFRMcOiQ7+prPt2x+N26us0GzTbR/IjDTBZY9qZiboifqneElxyqvrkyGf9BQaVovU5XW5xmk442uxiQmMY85RXfVjzITCotWWCx0tLuZXBucAfVtVbaQ9XmOYNXp5IHqytZ+3XxtQKHnHT82Iy3b7PDETsIupKZBQzfwzshaN6ZCHXCqh1Yfb46J6fy6tTVQb0U5iGFFfj8nPqlEEBiwM23O8e/EQ86teUZzanNHVIumvE6DIq8u8qDQbuzySaYnUuxBFLoHBopSPE+47Lu5ZBHc8pRhbBfPMjKggxYmnsHnTMjZEN+uuzsugwSvLNVZucSfItgMmGbDYKGqlxg0zYVdO/FY0jXolmwKaDNMLLrB2h9hrMpQcfASHBgWGadYQLqTGLSV6X60q8qigt0bOXqePH6s0R662y/05itJ3nymWy0REoPvxBQf8GdTjy7VcbXYnF5e902X6OhSdfa9RR5aKqprfjgXho8p8N8KRyFdN6jGS0hKscf5Vz+iwkYsc7LYnaCSq4V7LgTkxzzlxPVU+76dC+O5m0JMUr41eWcO+P+a6buafYoCATbax6B10gE/N4GrmMYg1HuKmiHXY12ISnxbAH4FCiaFfGk9NGgA5wR+EvDsmeuaILtAd9bHyRUw9tdgsKNcase1gm6dpE9Xd7f8v2wUS4vRMuGx7BRpRfSBh+NAw35QaPUmbDDSxJb7pisWNUEzgVstq5J3LCXTO290O90tgmF1V6UjUaY6IdcCKi8ANDozlsZUUtAhUdUtz0yAZ9Zll4GHPHxIbKGMSSKv63MfG8uAbF0UXbRGYGxPWbTcY2E4y8dkgl1Srb76uIdjyhKzqMkvYxwLCqDKDt1Vsoev/PXm38ZT1ZOfau5mkFENS2p07e1YkgQdK4pFWzHgopLeAJtb7TlWJ4KpSXI7va4eBrebk64ZktARbyC4wyBaxozbpklYWh7u7k+YEoLDeWuvyBU4a/dEu3KRVMnMbKX6ywQoFcM3c0lA3g8Xm9EIJGphqefkcjkFWgE8JpMmmcKlTGAhZ5WxLNNAFoGgP9LSrcyPxyOQuB8sjq14JgnM5hRUqJUX9ufpYiCuwQzoibwnROCF3+MxcDhd3KLswpPQ9t6DPeiAY1ElmnpUj7CmgXtVZPkqe9PgPqz5v63N+8nw+UVbdr5gWTokv/8dLVSSqSUOt0TYqVgd78xBbMwuepERAEGtytqN0Xj8Y7DNkZwJ4cQ6j1ni1lxh1U6W1Ok9FKnq1IOyGctLc6AO5HnRCQGidTnCuYgMogZd7fU+cFdo7qhuzVyl8a6jwCNDElUmugiH8Gnl6S3AIeFa1hOpWwORb8ExCB9k2T3Q95GKqkUFzZy1JZMwphGdpZY86Fly4oyYcMtn7I2LUQvvMcMR4EdzCttvTtcNQIQrAVspx/CHA2BpnJGW7ZiRUB6zFQh8KBTlEUaUfGA7XIKojgc/YiAt+F0WNT1gxn6RBQq3GmUj6KwdSe+h5WJWZPsBGqVEPBgrRUWrtTN2ZiiaXDxYGhrJty+Mu2u1FoTpYDiH0tcJFTX6OhCBlyeu+oktUaA1lXZbgRuIFsAwStjfMznmrBIdPDxTcF9JLg9cPprCxcEePw83pWTVjxDKeDAIpHlvi8lhqCfXgk0hQKwnVFTgHWBawt0EQ7H/XwO3MLiE3qZp4C0EOPbKr0AjvIwxnvAz4Q1yo7+N2Yd9u1Fk6EAtrwoR8P9g66hUAJoQyTmQiYeiQmNrl8pANo5tbVQymGvvvzNvhWz0+/L98EXxXbP2T8A13lWCBWbAg9cPlyKAgze8r0Oyq/06go5wqONgqpMqTyaI7jDqGSweHkcdETDpaKKlJXrHHTKilGKo5/RDxgcVLp5FlzrAmVqcbMrAxxy7wAqw5WtByPv4MpRXN3mZrCQ0eBq08VMPAKr7W/J0KeAGKQmEmFVfdJq4+kcpft58zyclE+NPX03lgyEKqvSi85HEaMs90iBQHt1JoFvjiI8rAYUDyASaPAa/5jw9TZWUEOUENZCJvxS/Il6LQ5Jo50zjoJCw2or23wISGTmHLMVBS+OO9gDUXysVUUakElQwEDNwgLp+uZfLJ13WFNpGsXTKKEnEAhJMBBCSaT33gnS61Clg/QmSO+CCNKGDooKoiIqioqIMHaRx7GguOjYsLfRKTrj7Kwzu3virn/ow/N4Sd57v9y873fO+V0sAIxDj00VMRGS+L6psPqhaDakGiIl0PVoBgH/NMTySWtUVEj0EQ0NDDg+Pn5KREL9nQuKJII6yTAWeS5ZmcIDroHyCpD92CfScU2z+2sM5GW1NbxEq46OBCWFk6LlcS0lpVszNicp0pR0P2evHphK3w377KVoeBXqRhv6m2Mb5kXRg1CIkM/sYDfCnUfYDU1F896ejgckabJlII9gJiFNudUY9j1ZnqJ3znnSUYtMftc1O0mWokwecD1JkMbNy3nMAdtKe1MrditSpdMteSnVivjFV079hAWw798lP8MZte6nm+fvKSsr3z6cBmuujkpw9GP7UJ31t19veQDncZY6KyNDUoK017f/e7IqxWhaOK6tpCT7PRsGYagyRQm7qco6+cnRj/dBW9udlAQxSDeAwgvYRpF3exf1/hZZRml8WfTO0cQr4u38teYq7GLNxO6VRK40gKcULk/EnlCSWBsyO8dzqIdFd3fC4XuhisrJL+0uEkjS2m/nnyJX6HYypAPeNE0XlxJqtTmVtLsg5qKmcqj7VdPv/BVJ0ruNO8WbQffO0y4qasIBYDoAgRnKVMVuEvaetvH8IxXlFC9uOvVAV1rSYUy4vV5CTu4eipYkSl7caoHtHsmUs9GXHHQlFO+93nJ7nc76HWtLslIo0rq7Y1N3U8jS26eFuwkSksS97P2XdQnSe7fC4ayovMOQR8ZKljzp4/O9JAowj87yl1CUu5gwc8tLy61lmX2SiBN1kv5mVMvE691M1EmKUsTd+85x5W4EK4UNDJvl8nC/WWfYmgKtWmuYfSN+4T3vWcIQy57mEWNOxSXPLJfrXFpnVlDwy+jcNnNPA/kchsWQYVBkWS6z1j/A6Acbhm83P7Cwn8WeKQ+36qYxG1f9CrXDmBZHDSwNDoh4PsQAPUoFw2OIb+a5lcXb7G/GP2fDiB0wtG9/zS3569COfb+WCB7CHr/uCtfuvH27/eFcTptcYuLVBG7as+T2dmzpnnLJch9I4/iO6Xn6xzDYTU6FTidETJ9Wv0KZRobFUX5QcCeLVfu/Y148C440w45oSFaQ4Zgrx/eSQXh4JrN31indb1nEGo5ovuu4yBz8WjSPFVNvljeRwPAdcQo0KGaYlmWZ8buNGTmXkiPRS+kfznKxn+LlJkkGGJgMs+Y+tKyUN7F4MeqRwVe9OQkDDra2qTgmyCX4mD5OlKFZShKHdr59R+J5Vm4twczdfBMHHW9WVlkuL7U6QO+IB6fjjru9Sy23BK/jsJ/O3PBDgNmaLVy7KaNAvUoey0fKk//DJk5Ct15GlrjoHe37fqRxNg0YZmC/HIGTDMMhIaPAPNKdsIHjOuSQwd/KY4Wp2yc+TuDYTBthOGIKGzKy8o7jmDF3+/xajuusX7jfCTbPB0O9bCNj7g124GednTO3pTd/6WP1PR0nFDNrZJe7+q5hTJMZ7p0tZi6tfHQNO8F2vfaDr8XyEqs4JUR/c2eu96Vpj4TTCYyi+hjh1gZmjtRpWsVpO96U8hZ6ZSYzTKaJ7rNf6PpUq29uuZFZXFpMa5jlzXmNDPp2xzrPakNegtyjcJRdsJ8m3K9bQZ+qZYRtaxD6nM+1O/b4hd3LDu7rb6/nnnrOffH4NC3hWVruYbmC6LLN3Cs65/W3vIwueXm1Q/98G7d2TZlpWCXL4unTuajlHGZDejF7ponlKzlkvOnZzdwpiYLow6e4W6id+gWnTfWPX/KlTbVxNteH0ENeCQdXn87VvMlhNZVCg/rI6zNZ9sg54cGrJBXQK2O4bduaUDTddfpclPFQEjNkm7hopsclqCYvMaapQ/ZpYC3WvelafNMlOkHOoXci0uSPWNQBoevYRALt5RVOan2qacjW3Ngfuo29X3ozOqV8UDSnQgIz7xA9+rR5Bb3SB6NdWXQtiv7xR2/jIUhEKZn04q2MhInTxr4nPFiVhCTR1hDmBkIlO2m/afSzxx36v/8ieO0P3aqSZTw2luAxtIlRphYTvaeMEat72s53v3FJJWGDqbhotU560n6hfvc5X+PTBdxT+XtMaw8z0ibGbKJO+LKaws+wm5pYjY5vBof/nBMtyzayD/Szztx91TVMYMLxlV44Y33Gr8dk9ItQ5HW/7m5PpuBJdqmM3xvmYLwTka+2SYB8oK1ekyAnw5PA/8GVMWZErK5OtQ4LiFQxPMISuWUr6W3zsW5yKi1tucaYK83WyNaq4bwZXelpmRUshoerOj1iM49AQrVNtS42yFAzPJ4rohgQPeu3WB8Ozs8PnhK8+Pbnb/at8xY8C87HfcW6LShSPfhxNPPOrrUuLrXWe+zbVYKPcex07FXs12wRHLXSLi1/xfXdZiCb7RXFmLaSwvhu3eYSSU2+U1JyJ5iaFVRrDelGjd/NMJbgqwUo5HA/NDv23H/DxZsxGa0aZD5tMUkPDLGOMctSMxwoib6aRwqwDLOeQdEGJxg2qgZSARKbBKf1Uvztn1sXZLjL8X8wZq02Y3joF7zPLtQ2GmMJz/EJAZbD1lsNMtSDXwoSCHwpB8lY7n6jbdVZh60LgsywT0NnjvHVzcxSrTeb+a/JO87Q10lciwKsO+137Age4kbV84kGFBtOt+GaIHEBGbZEvUtCFnJ7loFnrEPcg9bs+pV74dtEkqfaFoQi6+sNpwS+28yohhNp3GfJKu0ue5DQNCMYjvFYmBPs/X2Q0KyuNxzi3tSxl7PX6bA+H6zu71kpyCn1M8lu7WJ9Wrhxf+GjoH+0R2N89euVHl3pJ/hsh+agWsiGRyO+amGpH8HXqh63+WYvbZnWdzWvRt2wgzrkcZCiKuMGF4ilNFH3ckMBzA0ShAx6ihR1jfnBpH44vuQtH7nuRAYj4u3cq9EIZIABBUAUo6rFdRWNE3myuPEgGe2IjChdhoKv64KGyxSiZPUdGnouudB73r/+/O1a5V3nO+7B307No5n7SxBDz26ufSCO0Mrpu6goy2k+2PI8GKqM/R3jy2RZLa3xrm495P1bPtbAnYGdQaRjYeK6XVt7W1Nd0V/RDvFrku5B3618XSQ0lgcRT4q78Xnwz7sRjlVvn/TdcpOVIpjREbBXD33Qduqe5hqS7SM20AdQTeZmDeCP8RxKuCgtRdXZRRvLMJcL3V68+M4Lmebw+ZV4L5PWk43FyOFTClddrchEkua9hNN8uGf0jsZe1iVimKBN+ENtupyadFkXQ1E9vZpIkgt9sGXPrvXfKEcOpOXBZx562WY/emPKzqO+B83RcibbhQZJECX3ZvqcxOSk4cUOBHlD56ff/tqnQ5XMOG6xXRfene+8j2OX1zwPkeD1mA/a9RX9JQnmF2NizsJPEqRrlygHJwxsLLvWr1136NmL2+uV5WB9OZLuptHa8mTxc90fN/5YmK+7EaGh9Xapv7nqRlzdKKHATIJAVFCCrOBYVzU6fGahyjEi/qkIgX5k6gefNOM/Fza5plOQ0Ahnn7AkggKALhjihRRkBSk1CQmjnCUnLUeT0muiUmgRcfcHn4zW1TmWfxwE4eFGPHxg6apIaGT2OSmBfbAqfCQjpaaILlhPnohgiH4QVZ2q6XLz+T++UVGMfP4CIyAmRP3ubVJSEnyfDXxFFQT8o3VU4Ptx7zj1dQ6ZomeoasvIhrseBakAHa0NUj6gOZjeyV+7Vifx+vVEOXUqtBQJNXU1ST2bEE/IFuGvehf+uFH3x2eQEGCMyS6eQ8OkpmZuOpa/hgooQJu73BqJ+m6hNnQrJSebGT2oQhmdgAIQVJTzLzzzl1sj5x5Wkx3haGLiJvwU56gt75STCSiAUvgbkYYqRBoz705bKQy8Wy300NxT1fWP+UOq0Qur4EsQ1dQuOf9AxCxr33Hq0Ma1Ki7PAHxQkZMIcO0E3UC+sMHGCpADqorpcehW0kY+jU6YWktBQsA0Rw1+eCpRjkq0HWLb4jJJVNOmgqgEiaw9Ce7KmM2/jb7jj/nAvaDNEGpJ/p3odRvXymFg++uQOGz2u90/8COgAEPVyMhk9/ctIKHzR938lxUTbdmWxaXRuBt1dVWEWgyxEgA+KGlHxEW8PdMPmEeV42rvfVxEr+aa2fKIeK/wE4M7ydpQWnrF9iZpo4aCs6HqRFXteYTKxFiQ4p3IoMev9jaL8QK4A9y/cSNuFFCAuBtxXuW9I5YUBbfm/sXJVm0tbW22trwUEQH/Mgdddar/HWO+OVVOZ9eLl/bQUoLPd2DpypE82T+AOaC7PdUHqXZlFU27HXD+aZ7dUgbVRDnouLcDBUuqZXAZmopWdhNcndC+Immh+ToQkF6/3qVMlYMTNINKgntrUyfkU6WeN3OfwRv53x3AxG1ypu8gyDbUIDu5tXLU0LO1p4J15Kj+E+xAeSii4zWVMIuRPPfb4EMHoSrtsYumiqZhSOO4lgkGyHmY6jRaxxeLx8E66Fnt9ZMXo1Fij2KhkQ2ORk3C32huKLayypKtQnAHgLJHpacQJNQ1b/+yZ996JIOO3dyFLQ7z7xJOI+lEMWiqmcSiMbe3m1CnqqHosIPQ2k285sPFyaCzV8pgG9XN6PYwEgtVed5ixEdoHqysmogr7bDTxDiKAnAHgAS6/sKh9fj7P789/5cYKPHri/+s+wbMg7Tj/tIK5HHxHQAf+T96cWUBhRjuB7QBuBNC9ESeYr3BUeuZyfCI+yvzvXdHkejvF/z5+YZG+Sojp/xuVbjfMPfcpIbG+DVB5mQ62cnSg6noLmG786h10+Q2KQNpnkVheUQ4vh3fvEUE6BNjcQHfNfcBBsIiar4mCLHKIJf3DPJk/JTSdzZZz1ptk3LQLUmrNiNlucdYH+erY9dTsMU9UjPRZRMXUZ18w9PWxVaW0nw1minB8GvA/zDM38ETzISgRJ12+1pB93YF7eyn3OHmcKWenhqGLp/knzxlHZK84xsE/E3XBiu6JIdYD51VlzCc4MQGeEqHNy9xv3z+44/PX7hnRsWEgigWxYHgn9dpXbYrXzFZ0fTCN4maQYabrfdbyci2rDJ8AwKkzTw3cMfE/+m0dS2s4ZH+FizVbK+V+6+sZ9+uaGTLOlsUtlStNPcLlidlZIyOcHIczCQDDXI4j6yI/vz91qlGpV5Otq48ogOp2rDMuvO7eoL71dybOxI1syJrrZ8Fq6vnDQgK4IcPDPRlkK2kthmet95sWC3pqUZ33gYOQ8uM9atxbQWHUEZCVqRmlmeSYNqIAGucAP5xBPxjGbrJyjsSAQXIC1J0p+rr+7vLtR86Zf174o6N+/7NffGvfwEk8Jv132LP+TPrWsMMikHhHK/uc93K/Q+CjwsrJtnaQvGVHl14RfDBIDcWFdUk6h3pgWVryfl985uoxY+ivqr4sN6PfcKPoML4FDMbtVsbBz920U8UzohiajkxGWgvm4QWYylhooZGKC3LNotPnPuqbpyx+Vgj+rDwquvMe97S3arGwVlXerffjGv/EvNM4TUb3yZni3O2yDJUMIr0hmgF2MPW1NyiX5aWe97+sGlbDPeX/IlYiyY2ezogVT8kibM58hntxR7GzccqbaZlsZwy+/P6OKaCQm7sarIRnXBqcs0MQzs+kOBdhOxM+6mSU1e4pyKPpW0qYiVcqm/TL4pldga86lp6Ilz648bS3KtB9ofyGfaZTIZP9YBH2vOSC8f8gTS4wt1jjz68AYl2TEIzUbBFVdLaUhkFapc26ZfZRZ/OwlAARELP05q+j+zBT+EYPhZ5T5rfDC7O8GpaVTfQGxJYlXpNbJ8QZpLluU0WRXb0a3797OIwRpjZgHdsEVr4evjUOjh78A125RSnI9S8gFZkgWO20sJSmUnbzsUal0XrH69OpYckMYr93kT1QeF4lOJDL4MOlzVF3wDLmS4GiTK7kvORZaYxmFvyMT09j9Y/BpHu1BbOZtiqX/zFSXv8zS8lf90U/PWvv3J/ey34bT0GiSI73umABnZxv3P/6Je+vle9g596+l2fDDujgLlGghPcZsYz4WJFx3WpbmHhz0FRzYeFhT/OCLvOoGn8MC+K6g7QI/vyLPp7/AobnEUVY4aGA94s4yJPPdswlv4GspXfsqvI5kB2efywc1f/DYTb5+f7/rw/GtEnGnzfkx3e78xuXC3PHuly9mgyKEwP47GTKAZW+0XONgcc9CQ2MfRrVRLbn+dGJxxHuD2ByQ6xNUhv4NErLhk4dCPy/vzQvm9+4URv0cwKPh/NSpsy5EtWsFyLS/38ZoX0mqd+Bpc8Suz2uGBHgQNyQmLiMbuStE53w/okFj2JZGhYaWqK4XehbhFv5o+FhY+i+b6nfnpj3ky7Pe2J+bVM/S0Tee5D+jjGU0/Vh8fOdHRyOiAUxnYbGpon5Oqf2mFvv4dpummMrzcyKBz8eH/0LuoZ9ipvftMrEutIGsM8doyamWGnszBKjCTw5bmGZLhnhfDYOY/8nMaMeRZbAwIyfPA6OvbBGGi9pxITla/k0sNSAvS2OgtrrjkZnIvlGYdkRWalMvUrfjAwmvbA62Rnp4ex6D5k9+Qp0+i003y++SYmLcw/2b6sxLTjDt/wTlruhVM79rmcyjWtmAhOPk4vSTuME3WFE/3LukM//8XhXPj950PrHnKiX7u4ZxWVmPqO+DV/mcMvXvi88F7YOxwx+r8CFghKMntND4wj636rv2vhRl3c6ChuFUh0fx4e/nwDxJgvrHBbSWmpk8Yzt5TI5INHhQdTJCX8t/OGzipKSOzenLBXQV7JoJTVimxp3ELf0ucbcXH3P/FG7wIKsND78XNVhNet2fl3jhFalsAL7JSXV7oFvICqkluhNlPVQJ5MfPAQvf6363b9WGJYTZKj7hZtPfg1aU/bTaRQbPm5d3at11G+fX3TPTk0CZq5ayJJJOpumzO3ZJWUWpZ5LaWy8lK7TafOKq/79qe/bt6DzT7DnTlhiG3Jk0nYfCORDCeYPXcjquo+z70X9wGf3wjflcpL15+N/nXXemXFi6kIupIkbc1yLxlKi7cyF98hmjm+ytTLkNOkPrj510/rlZXvTZlerJeglN5yfvMWXc5C/xxsBFV345kRo3FwofX57IZRxGGM5VdKpqieZDedlCaR9jaxxcHQDCve9GUKMAYxsQ/kzM0j5XJV7MVR046wvWSczWneZKmWeC+2Cf4syd0N7L1ESYqlHyZO8QUZrrklS5HMU8zNj5QkUR94i/ECiref8c76m1Pzb0f/+pPOeuUHe8R8BF0zM+alPEXNtbd/+Q37qnBVc/71MzrC2yhAU9H87JTpZWyaO95y/vD2Bi7t+8G3cVVa4YWsqoUbBHCTXBEX0NDw669pjqvDn/kqXP+6+0tL9+PqQBGc15BHToQf2xAA20zgUY9ACnhgGezTQei23VMr9MjwGSmJHqmqYgLAEIE+c+XNvGMEftXC3KsF9JkrH6G/mEBlYk8jS62VfWaDExkmrlYRnDwK0u5XTtnriBl2di6wJpECPCptyeJ+OsFTV5yRsDu29htkcl5fD1YEkuCqvrIcNBt+RbGflwaEnd5wJVi8zIwrq+U2Avj00B45cgqBPlYP4oGDTxtC4FS1MZFJhIZjVXPfk9EqTEEfuu56wZCVlfYyX05O0axsE3ZqkdXRv4SderLfYhgwBrKlI2wpkopKqP3D52iklYOmLAKkMSmVzr+5i/5WTAmrArFKS/SlDuU1L2Z6ismG02xUJ0M2sAHmDCdoq40Btt+lt7GnYeLCQLAlWZGgvmZCHxMNZtkrmz3JqjJwh5XKasjKF3bNYrwiBGy18UQB0jLsp6Xw2iEYku2G4MaEPsI26iT7jpAsTXAPX9KQeqBqtt/8/R+wLLo873DHgEgi0AdgWFPGFIQJYN2//r7wLfbV1+97+JeYP5d/Ps0MLyef3vthBaMg4jxiNoAGCrhRR8CU17scDlNd+ExNeRWmZcwJaBbFC6AZiYMVGM1kIZZ4xh7OklSQTz/gUYj1QMkwHgoCq8wstcIBC4BIZq/KqGp4iadINNuOI/PpWo4Yu7EAsJRGXw2KdxWULF2vYRDUKj/TaCAOr2ABABhA4W/BAlgrJ2ZFaELcwALIkCDKFzbFOugCq5cvXgBw5NVedweCa81V/fVyyOY4VPSDoqAR/gELQFVBMsv7aAZp7cb25x3BYqOUgmhMChKYXm2teAHUH2GbaED4yK55Uu5VV3f3Q1e5mxQGN+NnQSSqXFaZrwN0HqI0/ZyCrKwSFoABQvQmT9n1UCqVEx8+37ERAtWUhwFCUpAzsQDqsAAasQBMTLTmvy6AlsVMPWmxpXAe2RgZcqDNLEYlQnWnh54kpFZb9jRGJXm9zVvcSWokFABlDQtavAAUZLSne8PdcGbCbcQLQMK2MxYqkxSCdiOlYCJmLw03Y60SLtElSWvUJJOvhOBEKYMV0a5Jhf8w7fd/4bOOog2xAKhq9KvqVJX1+8QLANCDf2MBIER16OFfP+uAg/lrmhlFRpWCAlbqcEHe941WYaSNmP8SF09wA/nl1Thuzd8X996Kr4obvcsE0wv3776+d45aEc2rYkALuX43bfMDEkX+5CzvoCWFYmnEPH2Wqql4MSbtopS0tB7wAn4QG97iKwALYPQa06/HK+6Pz/NPPmMB4Hv37YqsUqEVc7m5qgoS/OD3UmSykyyj1UmerLDXpu3BGk3F745x7LMolG0HhVt3E+Rlv2+gH0xRVHZx4RxL3rh+7b3rCQ/WhComX+V+E0wl1e+1yMSXilfLB15zOoWS8l1JJ1Sgb26fsnvgL0kJDMRGpbybya2cTbi7S2z/gVFaroUfe/vfxsfFvXvl3JIO2f5syfl7VBL14mZjJPpJntsY53Z6aWncQtKeQHabHGFU2yuD4nLh1E/frNd50Ok8jqJtrVjLb+uq4t6eGXzrqKXlpM3wwldA/Lu5pJMKFPnJaaZToRIlZa9w5iRZUnJ3EbQhCUlbPeb+7dLSxJM+CbuJkhKGihxs0oWuufeidreUvNLkCaZVoBLZ8qRw616CpMTuEP0H6iRyYCFjetIkwuTdYt9CvBLZ6hFDii9BUruYFgNUgPLtX3P3tSsqutwr+f0/SFLd22N30V8XTjzOQJ6c8trbV/AV8M9vdz3mbPz5n99u/M+F1//ZuF7np99L8jKkKbaXWa/eiu/M/V34DtNyKmV8Go0jIDws6iq2NNqW5GyTs9qMDq538El5c1WjqKvRzc+vSdhrc8DPaszblNZGcrDM5FnYdFtZddP16Zv9g1UKmLTYI3p6lc6uHk3hfq05ormlG58Xnjh3Rb3Kbv40OD/Yv3L/br9wMOfPZihSvTbv796PGxZ25ZwzspoV4phCp0dRprQC8+TIVKZd2pCBwbQF3SJMxskyjGcc2x0cPBVtSkevptORa9fxODjycK6d3WFP/iUPZ4/hiJbwYqHN3LKVUTddaByjnpx/PdcuQYwKoLt6NISjAGeLgnNI5/Ncuw74Za9GiQaXTJpX+p0toroN3U+bmuqDZaUuLmAMBYjfTPk4qGSuFeZGgQ08Wtr5xH2IqVz4RcU+P4bXFTVt5XSCxvZ4vzKKAgb7VlvKZ4W9gx/Lm7VqhBZohAtnnC1sDlgZjBmjAAW9FB8WDdkt/pBQnwZrDjw5NN9zenD9o4DI5KveLBqsOQEhrDSP/ej6jPVdw+r5/kksWsJxvtEJEdtiJjzbq1E4uPil3KkJJ7cSRXvjRCkHt79m2N38NTHxmX606XWMvSgARfMrefq0MpdgnYecCw//fejQHsaFC2ief7TLjf5tXSLaYzuYo+AtF3n099xfWRIX0Ow3K3K1+ThK2MAqLnyU41HMS/jB70nvmT447I7EzvU7D8eF97sWewhPTC7bNIYxaoOoG2ipcNjtPOoa1shMdZ/oSDuVmzBhFkIPi+LNtjydyynmDa/cfz/4ZM71Tcty1yLS6OWOS4MzGJvwJXAGY9P9L4t9T4R9EOHZmVHOR62mbXKKWT4K9T76m+1MhwwrjRt9mJmB5EaLEFOLI/wi/TYoH5FwJJ5idOjsOFVSm1YyhZheThijLUU7s6vflX2t+ZXHcBID2nqO8eYS76v2Zfo+FcytO1drat47L0YUFqMA56NG3RY5mbwzK/Fhrv2uvUeMKukbChibsyY20WKYL66aFdEzfXmzO0fmaoqZBYSUMHqqcfRpKMAd1zFqrd+iv9nU+Ej2LIpmNTi19s29F9VolT/p7c9xnm35s6avn7VoUprJBilieecB18YwFCCfxA5xTrvjDnWmAl7KS1EeqUxfac9UeqqNc2UyLJW1nAI1tVp6Kt30dN4UbQNgC9WSBbRUZLIcGug+SPc4jfhGFfMaq+6+7+2PEh2wOu69CdyBFLUkvJnol4m/l/x2RfD60L8fXnjNSbvqXkSP8WUWJd/xTnvNffjtP15Hv77JOr/vV/2HYAis3XgF4IXoZ/Z4MxuYxU6PcmxmhFGrTjO9xchkASE2RxDJGJC3GZ2wrrwso1RePt+VXShvi3j5yFsEdzWYBQfTYUJd4kjzJQgAMqZu3wZ365yzpSfC+lPW5xGi97QV2uzsiQhvfi9YxRbgQhxzaWEloqdlmKGR7RU/uip48nYlbmFhTjQ6WoceHLtFcV5+pcK58UJ5y/F+weqkjALfnNuGztbMYQMTXBTVndcEDQjRm2Wl6Ue643WQj09eu3Hf2tyO5CzdDKNMwSU+QSG7lZt5sBQAlEbmNk9JBaNu66Kz6oqRkXY0voEWUnCCPxfqIspNWDmXbeGMCuN6NcfHtzwSFE9aSmcYdpS4BMutST4NaqM6KSBQ1DXe41ba8kRwZDuB4CDB2BKM4H1wG1dnl/La4AEUbenV4xflHGjgptHyQfBhNN6r+a5orrnHa+XtewFkJcdsN4bPZGGrpVESQ9YJUIABFOBPMjPzNs2KhI+50nrosqq8ga1z1E5bRXHA/6qDlBoIBW3JLqFBgAKo5aHKY9ZF27dRAgIs2E5OcDnPWl9rBrRrxbmvpZCccjZGcMlIgcifELzet0Pn0KGHnHWH1v1r36/Wz+F9DrCl0QyzFPODn1s/QwNwSIdzJc9F2SW4ljuRrPINKJSnsN1lxo/l2RqQU6xOWM9Oysj33J0fzA7XCi//QPDRk1SAfZ8tDgZrNS+dyUZmvP4cuzACefJJ38pA6DzpJ2yMJIlwsqcd8yepSVo1NE7qwuWibgcJhfB1K9jNxKvnU285SFxVo3MfRiPQUh6IglfdxKscqNQ49AFgvVahAa3rxZjoiJ3U/uxWWeBVe7PROEmLd0Wp6iTPSt9J5EaUCl0vqUkQzfNi2vJCMQiE2rlQVbDLe+V5sDmRAh8YH12PtJXNiUBZxP6f1OwU28+qabDnqGAruPY7snZE/JdeYJ1xofq2ohUDvHiwBXKFVrbHtC1FgeRedmXXehV4GO1gOqLqXh4+M+mmrYX973BpMRgh9vCh9So67cgFAM+kk5w2YCtr4pbdL1azlDTie+PqHKEnDfcDGB2xstqb7WYSj+z5gXSygrRnZdROChFOOeMjKZIExbxUFACdQpIGNDj2mBsbnKTVSP7daXnSCkQxFADc1tDI8x3JynJrdVzsJuoRLt6ZGYZzIKvhNu+ohUng7eKTcjdZaf9j3oaSIAXkef/9j3Vr1+97/tvPaPUQWvlWRZGq6xATA1uYOAzRvu7bjd/u++2wvTJMSKe9kzXXbvznzzd/zCdhe7oo56D0V6qBvIIqIttL/Tgl8XEQg2xRtUyr8EiKDEL0i8N+8gRC/XF9VQ0TE1krm6JAZD4sm4whWyAZpP8M1jWSwZkaJzLkklDTq+oSBGmHikw/DRPHnjeiePyJaEEHoaWt5ffEA4EkbceV+TcrmCYXQHvGAvijSoTGE5NA3xknuI5Kl9mlWrIy6E47swAAC2iwcfLSAIpa2F2vhuB9LQyHAKJfMg1Vx3qzf7g5EvOBLfLxRCmCdKDrbLqshkb5+ygnChGjIcQg6GOHfmnjk2VMej7NA4APTXKu3wBpH8ujroWyjo5a4pCMAoEauacjmQr9RdP0MbQmqsOGYSfxW30qMgFWnuzp8fyrKe1wmosyYko79E+UaqvK+6FoMDBMvoiqbtSBF9x3RkwMD78mAurCMaK860mhtDo1q8jbk6QOcxzEIJgGxVAARSoRPrBH+PVYjWeylaSIlgfs/AGml0AyKIuE61Tmba+5BmqX6UC9GN823OikBd7ZqshLWwPHzPU3m8gQs6ZoGTBBYpn/jrlU59BfL+Ce+kZFJ/rf+WvUFfPa2gwlJEjqx0yBZ1sHzBnce1Rgzm666ODHf134tZ0KxWhzrCFVnUiUFp6D788te/HrkHfjBsHnIEWKohBIV6tG/P+WT+ZJfGIiJ+h6ZHnABWOntrfKUhz2e1/UBQDxrN2dyNA1oQf7G7/Hcq/311f3lyQi6148Dox0zyokZISzbg2+wofbbfzVIFxbqhGj859gwgXvHYToOmzEzK/UVcGUBCgAtKGep/O3tGSBnoRVSJdkvr0y6vtWGQrBga5bTVIzfxBTC9lZMoUo9ETQPvTBprKz0FgDu413U6SQULSYNiLLurU01ZyEsKPurh+ajzzhT9djLkurRqxUzS/EYVADFMBKUkreadljEh9UrUnXawZkQujZsi3i7L66/QWVfB2V0N1JmZNkzGJa8+OYSih7Y88n68Co+fLFbU05cJ3tRsKVpCQn3yPnZ6KFBf3HH3Hx+GT2A3KgVPh0vkXM07s1eMBJFwH/qYTdmnIkSLtXYRvW3b0Z4UY1ioy2qNAECvnC4vt3bqryhUdo26XJFMndFkN8SLtnv2rgmnLJ+ubVkkTpk5nD32vFiwsox1MHtN5h90JLlgKqAbaTYBoz/jFRByGp5w//gx5fJfGCzg5NquYDUA1wfYI0LySq6Kz79nZHJ0ACoaCn3tPZCMz8hR8TzQHyfr7lgfIaCaItXdVSSQYQy/53XlDIFwjMA0bbAurDrDf4m6UYneCxuvn1fIkC61SzDEu9Sg7tkp4CfyJB0OmQUp1VJnioaKjmMOLKXLbCMcjU1wcgO8xyhtfDT2tR0J/d0+M3y+hq9ZNx+sGGO7uztLCwX9CnkW3iNzLPetMch4lAcGb0fnzzB55wZFIbja4AFrJ0va1cD0m+evKAMfeo0TazlBBBBcGsPu9YdO5xQ/8AYpJ1ZqCtv/t5jumAg5TVI19Bg15GtVkD10baAQweC+4UPwUuMest6pFQPkqYIAI1xy9x35f3xJcvs1zPOWn4tdZwm1rie3pmuFEUh3rDAX3uVHC+vXqt9Rb8bbifxzviJ2ultCgoRoYXmXq7ieQ1yY9fABuUv6N9j7Wvgh5eh81czgbVAAXcH41vueYsejqpbUDOEbx3SoezjOPxyIFgOOEtAMy6Gg/M2KTmTjU8bso4bVivJ5MpCOu5u3L/jfP8araMFblCEKKXXhrYyfXW5avxB9IE54NdgvJPoQCzeoNpEe8aTtTKkgDhkVK/E6yvx5yLFTQYWNqaASSg7K6e/OMFwe/7/vGPf7y23qJir+Z+msXs5qu5kwqsa9uRqj7MoU/kqblfTRCUJQe5tP9l/UInr97wDopOVvdMibH2sTTQtjrBc37ajDzpEmHW2eMSLFQDcHuhLz5dxtgUGuIcc9yONXXcwqIbSoskwuqnefQBpO0Hchip0kmurw7won6opLeNJTC3nkMypIGRQ25g94/0iq49HYwayWRmksNEMyeEFk+XLXJGNjBnWhuND8zyaiI+9p75NCf68Cln8E0/s1Gp3/X9U7Ty1zxij/gwYki1+p1i49OU/pYBX0ZR6CZ6ZRGjY6JI6HPEg3d0LCHt2GZOgSTAzCdE9O7jGD/RPZu3mR6eYhpfQtr+jriADv2pImaFF5r0T3PC5U81NU+LmcNaxeyGaZHr0zc2fSONjFTAjQ+fh7x02HTLMW/G4UswvgFg7dUgKj5izBs6YmPTjZknFNLNyxL9O8/sNg0UMEOkwUg4yotyg8b1pU/0yq3P5s0McwOlmJ467So8MWITO+bD8JH20S8a4rHHxCdqE2PPBAroZCRc2srOXJ0TfvjSF/V0hpVEgT9tel4kLnoABUgm0TunmLSBKf2KO5B9zHNcl2d5fXWvut4DRr28WjOHAnzIqfSGaTp7utu4Y2wDB4QCUxRg9+/nJb/9+JBbhqs2VMTpmIBE9OMFxu8/3kw7BqIBKSa6bIinf3yIFntnC/frMYcZxlc76RvGYllN53w9lmd4i3FPejMJPelhgrRj7vm7zudCq3KxV7wi6Ljq7pL4nFNy2D1D75IHty000iUylUs7zd9mNE1nZJb29JQucWOnHUDHYAGSbAmPKLextaWnpYlJP2pVmv3IhgMPYmF4MaPrhJGt1TU2I8Qy0KB0idH3qRmoDqHzbDk4YX04pnmlZYYhOorUPD7J4G1URyIB/yw5iN9tytlcnRUpt0WQMKBn6TTLYhWZVRvqxnIbyQaBBg0c4ZR7isOAHbdtrUuQfwzX+5h7UPKQM2OzS5CZVCOn8Qusj694olf3V8pbfTnDWoG2Bg3M3uXyUqsxGicsJcvepU2QBoxB8MsS5kx4YbnjIqfvkZ+lQRNTCBur1SMbbptipIvLZi5tiJ+iN01jpG4LhGeM0/dpQawm8J70hPvJV3BzzjnYGm0VF1BtOIYCpANsbTdzjffzqw2PmXJi/DPM6jcIokZaVlC06OPdnnKtHO6GRwal5U+Y7AN6KQ5HXLlhUmZmWWHiY1yCn0UzQtLT/eKXGIt1n++2HOCJPo6uZLfW4EQ5oWgGfSovw2iMxq2lRkYGXbe+8HfijsSXLEYq2A3UTYKOgeT2Q8+5QB+6JF+y4RaEmmVlpXLZBxz8847bwU0ZaZ9/XeDdLb5qvNyGwvDyeMAaVrMJsuS9tGN5oUj0P38o1hHWJkYrB5krQn95fVuZRIoMNU3OV1yrvDu28ztdsrTDfuOTWmhSvmdfs6IALxRSc1LczYcLNcK9NNy+b8z8vlWVHHBO/zs1siy+Gf9vC7c4KS8lL/tuXsyNrlp4v/jWC8b8HmF4uFdVxLu+4pMUGXLAEfp2ogRc4mnnk0PlQr/r9N5NEvNHTSfMJFWVvs/csNecIJkh5RwoAyvZyYqyB6EEczhxxXtjmg/STuchoXG2M+GBjrIccVJUJWYRLZxZEisRhW5Cv1J5BfL3c09ueWlTHI7T8Iup1Ht2fx8S6zxlvifRjcaPirTAPNL63idMXEDgD6Z8NQSSHyR0njUnSO8UJ+0pZJlx9p/34alYeN/3TstEtjQQSXtAFHZvyDwJvIDnJf2zahT8aAG8gITud1PeD0BLIG4XnvPzio/7/H7xq9cuXJiOVLLb16KJYHvSD0qBu33R+PRZ8RU4n7BXHhvRb+eh3MdFvDsDFxr4s7JCA4CvKcALoHOh6HXTxWBWzds3f92lKfbPg0WkqJkfHK3jovMNeqDrt2E6qSY58+FRh5V8Bq2/bt4xmthVL3fP7jgf5KDLRZt2U1S9VpqFEeFKBAVKBnsqSA4JjT0Pf4aAsHEdWksqovW/tCUiY58PYJYK8htZCWVZJCIxo9I4UBbTXTp7uVSBKOGZWmOgZKIRryVmTQMl1hjmJK9ArD6OXAURPjCbpnBx27sVA4EqmHDzf35VmfoBv3KMr/sicoME5eWXk2kgr6Gash+2GWB2228eFjffLmUJ7oog9oqBWfhNTmGNRpJSxG2PRFCiiEjNp0I1oea/tANJGRNUGoLW4ieuJKBDWkPUEGHyrKuCmIEFEIfmXl4VQohBVL8fYvlmUzSoWASSix20FKgyqUANq0IrQkYCj7PJbvTxc1MgbpvWRxOPaAb6aShF6U3GnpL/E4P+V0BfixeyM49A/AJEwXBLmAOy+wD758thdsEjY7LEIY9ObzNFUJm3iabhtavDFARprU5ctLY2bGc1mYj3YL6mb5NWQ5gEwRA83SarKMGTghY9fv7TiiMmAIhBXhoK20ZErdDbKEa+YnublHgKoqqvUXa5CbyACop+aA/f3FpN0x+/Eccrrv8CV5Cc+oA+fHJrSJ6x/QbyUhJZKBogbwAegEZTIAekboKDUSPeS/TJUZaACryfuYA4l/j8NywArIALj9eiLd11vXYXEFxrJmg4yWtCd3UcNkMOwXbIBk+OAUa691opJgGzkA1WShiDIuZbNaD37fQp3kkGX0KctAeEQBwNk5ch2x6NQhIJc0Lvp7uQF/FhaNESA+LmvTTwm6w2FFtRVCkp3WBAE6iaiS9+3QFO4I7DsXl4zJF5NW0shajt5pSZhP+kqto6Lysvg3OR0+BpjkDNsTR7ZTCTE71ftisC51fUsUtHjUCJ7/2CC487wBksgHiTVddt0kTQEGu2wq8nEfTMGx4rNfPEm38DUL7evmzLWV08EskRwg7eUsvSmRYxpPkc25+K2L84GhZKkE8/muAgCVh2T9cnuCpv4BbW7OUIZDgbtRJ0HZJS+TB+qd0BAxo6T3LC+SBFLICpDj58c5TC3qfx8XVYNMOjEfHQInojNIDu3rkB0SYIYtPGnrokAlABL5GDV8zYGusgLSvrhhMFrQ6q2TBcaDIKj+ZlgJmQ3tk3Y4QxofpYmrsixCB77yF/OZDsDl8JVsbLutg9Xvct1J/r1/etU6GqT9jl481o5m2aMSDDSjjk7a5JVQPC7ni1BLLhDTlgPmpHmMy3apsQ5Pnq3D23VXR23P6l5NChjXAUWf+66xud9l1pL3a1A/8/JbiKCGQkkvbfVUuqHgxhpGebaPiVcmYmUyi2uwuERoHyMBkLsG/lFnjQYg6eMVXgBR5B6jfI5p1p0VbSPpnJxMNavJoduR+gDS18XpxvXvFyHH0qGBlH8uggu+YgtiIuVwIvQCTZt3Neg4y/8afXufB/KSeHCiq3g3z+va8xgquqk9cEIztVyZaX6QWXq/HeyrhywcrrE/OBF0Ag/mJbSaQ9iWDUyv2wcANS1NzcZ6haMKU9ssL0aOSctN3fXP3sHu6aYE1qsgr3r58AqL9XwOMDpbhzlftmFKiAW4NzYB3IHDwguGRIUhQXfU/dPGUvkvYGslrNPZxXn8XW0uH50ZUI2e1j8KYRdDMuG8d+V22utl18ouQ0I7OAFwgy978Yw6g2A1xagzs7Gl91d6Gvt7kHLOtP3D+bNcArFVVctiTLHNzKlYBi6R7EOXXPJbR+bxhLL9BNa9yL+wrnrfRdTe84np90cFqAKQu4T1HjSVvJ+u/KuCr2KnhWDCfkO/VQlwfAC+CWCbzAr/vEDxR4cRNbhYjn4s3gE2LI85m0lKx/UMYBLg3kMU7R9npEUxuFOwvlVVtWBSd2ahACQzgdaQ//vevHC9FXop8n7rjO/e3Cb+uQ1KF12L0MhnelAI4dJHUSErwHjB5FCX1cZ/x6+nmNUTnnrKZptA3sSj1IN8ODS47jB4SDG2yWkQfn+VgUp/s1Off1+Y6Mrw7Sh3uflPdAXuhbqvv8pddjePADBjXnYY8w1ckDzjZi0K9kBc+HHWIZUMZ5ePPm3z//faHkiume9vZaRo5FgfTOa2yLDcZHxYYdHygtRkAUV3gc3/X4Ye4v0afa7XFM2ovHyQNppgX0w5EpmazhKEhSf3b1Lc19uF+3JFzqypQxqmTFxlocQwSoZIvpnqDIPV+LhlqiX0DbKnY2DdsMe42fEEU12pzYKdvI84G8FHyY8TDB+87ZiQTTJNpM+eh7FDBctfBpsGsJex14Ik6BcRvV4YCzBwLafN0KVgEdiaei3A5xWnzA23SDfpFeYDFvcW4xYvTPrq5GPJZnZcl5KQop7gPO3h0W3UaSvqwk2mb/SKQ8vBPGth/xYPsYb83uwTGDja2Ty642jRYHrGR8WEnGPlIQz2r6bKaRBy9B0TvaUYB37MB3AzTTLaAO57/mAonwLa6a3W8XXiYqF7CS6LUogBnrCxnrXAKrQH9Pu30qo8Jj06Xt066ujRazVpaZrEbE3Qls+uldO05FP+S83pH4LO1htN2P+zZev/ACE0HwebuHuQ8n8jBnpJWcdwcevIKXpGo10lfT1XttPLzY1Ze5OcNov0UU3WNkPP7M4Bxvxslp1qJC2Nc62bohygZc8J4nXX3OPtrjI7445s+FhSdzi6L+8PE3c33sqNXxiGGPOeetfIdKmi/Q1TshVFjwXu6D7POCC6Hr75tpSPc4bAuz8GUVpzud8PAV4hj5JItYXpOBQSX9IeOKzq7HCWk0yCP/OGXawYypdzju3UHvetqy0l+zKPr4+fOfc43zfVWjbo0eNrxOw6zDdh254mMeettFv9zlgqLRqfOPowCLkUnZMA9f5yfZ2Qe6coQ1j6x+qEhDPAkBf7tYZoGaw5hvzWDXnwv3UYDw/f2FP+dq6P+l6jwDmkz3LB5CEkIJJIFASAKBUFIMvfcO0qt0lN6r9KIw9CoMRcSOoNjF3lGxruVasPeuYxud0bs7fc/r7n7Y/XJ37p0X8uR9SZ7/c875HdszrhplrFRepx/KWip5waYntlbaWlTv9rGulfQL+nSBEEvw8rqMFzO2XPahDq7JRv5RbIOvJTR6dPr4dHoFi+pNXQHJgMZVAth6MC8mtxCS1Mjg+Fq7fN9Gj9HyEGLRgDjSsm1TZL90Fx7GW3Fec93jl1eB04uMaHGuRAlNyfucVCvJ+3XzcNc4E6s34a5Vp540t2nPyeGeMhN32NYDnXHi8cscZ9mU2dIsfiU3PxeMiUb+2Lg9gBekMfulBsQnyPvIecmld1/231idPC/yi1DNxcDAM6P6zQ21aN27E8WREcpU60zBlm1KijXvLoxcrzGMK7wn3LWKSstcH1h0wAgyyT5Brrs3I3etaBTNAEYHqkRryxG8X8SZ67ZEQcCFwXeLFsJgJlxyzg386JEL1/W83a4f5sSKqdQ8Y27rAYAEDuQnnvA0Mdn+o/QL6gNWf3oYeLqZprBqv5DiigDqNv81l/S8VZF1D8f3S5g1p/auPpT1N1Z3PTUXbzKR7jmuQG8+nRJ8qSZg4bnfBD/Am/Tvfx+bObcwwHLnQa6xtQ0CQ4IdN7SSte72SYhVbvobuBey6dL1vsEbeyjaO/cJjeoCAlCxUnVJna50egIVOJoG8brC3Sewykttg+dQOgFjMWF2vvPTYNnGZlPlEw0CtMGQrY15UetJGmoPWqoz4jXIPmrCV3fJ5Mxt9b6XkEHf8Ksw7n4cPvdZQe9+WPjDu9ec8jAa1U/MrYBFoPlsTGIJkvbGdOHQWXXgaxqP/oQmlLX7hYbuDEbuNnbQRiW6wqpObmFdXMCwnLPjLmANn65Y3VimSS6JJr6EbErvgmpQqjlv3SupQdo8Tc91iW/u6uC11RZHempQxeGchvU6NqtvXGGfziSTXU8KJ+0ZirnXHZe/M1JUMh8nrYk1VdZVmzcLLhM43GhPmb94wbzHzhEEZCuy/wW+UJTjdwfGRyOh7mR7OVcFtpnRtkImLEQMPo1go4rTsY1H2Hx8BJOgdm9IQkcYRZsoz3BnYpM/jE0QoTlg6x+H4/klcKUTitGFUZx467m9HSmn6+iaGqc25CkaMcI7CF6SVjJaMLWwuXc51GdGg+Zwkk3WQBGGedEokiDMmrmRckU0F4YFrnRCesR6BzL16HgEFECXBOdaUow7FJt//XFs0RK4384thzBhqZq7z9baRhd1NjnPSw0QvK89n5a8eIGJliQZuX4Ns/QksaI2QUJwMnRD1uhoRzjB/j31Mo3g0MbnIKCOCsaqC0g6YW95bIkbFI+uC1lhRH3Jfi8nOtQf49SBeCSdIwZSgbXCdy8LVANMbFlt9qBkQ9jB/k+PgESFxC1cGHvZyw5EYFN4n0AtJlsPpBiD/0Rt5k+CisysAyEaLCeVR3xVipI6hJYoFKlSl04N1sW56THFga/AyYANqPI7SruZdUYHv9anqclFE2rCRWeQNiAVfcVdw4Pw6qULpCjTcNuhPJQPpk20m0Ur61AAiUL3JqMwaCZEEcpHD+lCObjH1Girx4vxkzd97tuEOWDBewli6lBXUZ1qoqVRMGBRADGInodkkLaKasjo8jqky4nmTACJQZXOD1FFWP/ysUVxetoI1nQSfDinzkGomnrYXr+FXLLw/kxbHRa/6NdjxH1ZCC2FyNkMfzxmRCHpEsEaa4RXYAQkHoAFwMShLBdQgDIziopS81YrrI5MNm4kIFvaufu8chnQLwEFyIUFzy8qBQMBsFqSm7rEG5aebs4wskS0SdVtEeypRz+AesYMn4aapasD8gKCNVQ1l4mvaYBRqGHR88CaNisLsmcY6RntZ6vrWQJqPtYKRUcZJARixkT9y/PV+koMef7yDcQDEOD/hxtUusK2fPCV1Xv283uAbaP7BQ7EG3wvSiL+Q0vXeW8EFaJgUjbhMFR94t+L2U/RvD5fTkSo9vHx0EBHt21Yqoya1QrHMEKlU2Bj3lFifveBobVpnA3xB1TpyixrcBiWbvGKha2S6ZRzajVQectq+10MdAhhZ4UOgAg+fX0+QP3prJBo4RUnb4cREDANz1OEdwwobf5UpgYyU4cqMQlAbpLdQ4mxIiZ2uSLI4IqktgMUWPysqzWBafivfz6/+YRJcNPjRLNMOpV6OufFJxMtm1UrWevpdBxqeEyaK+oF/ISQEXgCRMA/j8IA9HEGBVpM93FZtyUTzrKRhhPRZNrZhkE0ZhFlKr8WGoIqPbr8XcCSgGE3j9vwC8M+PAquc0D3uP9mRAVJ61lHjlO0Gds6A9ejr0u/JPGMTzTCgG+yN9IZDD+Nas9SHPesT2k90KsN65X/JW2GotIBODBQAHXgIPLxRFFXoqkfhUI7kB4EbiTDXdGjsCYgIO7d2NNLvUzGtin+RiqZqnsCPE9TBZsHEw8BH9D0jKjWWj3fRGNjWcwlpqG3+z1QDeJwGDQ4cEKDrHFiN+uBCUgP6xLfr7OhQ6Qpegey4e1YUU2soSVEmvwDBAlhUgYCFw1vFHzJCwxOnMo5rWYAcd9qa6QGjsmSsoFLYJSrisLtGEzKxuAonJoB+ig7q6tM1TnNBx0TcOlO341UGrlHLronpjCY79as+SkAXV9MXKNIo29MrQU/2tR8zv8APMbq6yXPI00WmNytfXhXg6TY4ycyzcMBz+krTWBN2lifScxYDX/tp5cvPiUvMFn3xfmGFp6L07IhMwMTEwLlAPp2Zp5I3Q6v/DsoEv65chInvzxXvqsSXXbbf/79jUB4aPv2Tc8DBQmP3OXqTVzsgyLE016cbCU/H5tsLnto7fCdXwZFo8Pl8l3BAttJ13C7KA/R08LYkDlHTlGvfTkzhuexOzLCrIHFWWMklz+6wBu5XIdAzQhvtO5O97Mi7tFfu+vufODLfum6g7pCTjZT7kft41o1iHPFDWxBX2la5JkyrsWQWXzEBE5G/fyM96YKgV9OK03iiTrM7ez3OXLajIbdKek8/y3u5bDqcIIy/cRn6jkWk/IwpyoZt7U81/1yMIdoqLHMJxoI7UA/E5RR/ayjyziyKVdrBCuAEIuPvNkvYL0HkTpLxG11j3Xfl8KB1ydENUYkOuWz1Gc3rtFatv3vryC6+liHdbI5Vf+zgLEndXU1VTLRQbmd68pAQbCNmbVaXzEPVAOfAWeEVAp8tlaCHGucZ10h41aFh6NvkeN40jw8M4vHbRWHua60FdRrRMZr9BVb7cYPbuBjAQVmJ4s4XpdDymMP+vMgY9WNN3KPPpGHZSbxqjtd81ynBjnZDNRfZHMST6WtXkYsIC/c/SQWvcu4ILSFeKPy8EYJUi+mAW4r4LzYfmv7t1npea34+K3tHAlwCcSi35S6GO8K5vhOymPDo0TcijBrs31HSbscPbbk+0fpNgk/f6t++feX6uovqCYhwT90mJ9ORsT8SLDtEAX4M4CSM6O4y+eOLl/yx5hsSz67tRmtmdNe2d6Xj3nNXfCaBmmiCuEYlYbiwCOpFnvvAYlc5T86DKXlbeOFP54M+n+c8TpcA6lo39i1H97yB99eGJzTy+a2dsqCmge4KfvQrXImsHhHkgyxf07ZEefUrUN8yUqU0Cz4LG0CHZq+0sN2qMh2TrWI97SDn1/zlBc8d/Tos0e2vOkq/6oepH2mbOsfXT7G3xfEP2wEjPJrryAjjJn7gi2mCPg11BKdCk7lEYvAm4+duQOQe/Sx6FOSStMhf/6+dP60djp39DA/SH13ceDKFIu9NqmCF4eKryw+JKw84ptyZpctFsA6SCzg9Ug2c58Hf6qI3UCuF2RVJF7R3yHIeZVqsecM9LEsqyT9FkH9SouER+No/kHjql0QJ2aa1a5xJJE1Vc9eSa4UTAAToFvBSV3p6Lv/kSNvoEVWZQfZZ99gUe+4F3/uGt6oNZz8Bkk7uUFkMVVvMaXYyK2okDSVTggffoHcczFQNF3Fbs3M4vTtdk7ZupctW5nNHtABGGBH4vnkb4iFvEz89vdLQe2EVVIoBv0jgb5YdPFAEru1J0YQtMWr3nRKxl5ZZnGYZGe/RVqkLiZHJs8Kv/z8++9ImDVFWJNcT4r8H7nqxHtecQBeXcF1rzAw2odqlhksnNvwn/95/7W0TUWuZE7ncy8XWg5v+OBQFR5Gcp3k8u+Zq/sVlCGdnwn3kfCoap1bl1sj5+39f93u/kW6piaEudbwmAfMqMgfOnyoKwe4kMs6KSb5ObVJO8Q9ECqkKRQ5013dV7DSLNPOvcMhaKnLAvBjit9nkPL8YhygYhjtHOeOGdbphZRnSw/XDdfYr5QWqcgZYgVfzn65Sk3hQYd8u3DVwiceMiip5SH5Dq1hQBIMCQJtzKh+oZXSgchb0EwdKpUjtdKSJYLnPplOrlFgyocj0S/ioxGnIKKPwAvoZjyXXoX1avuCh1B5M3vWHpamq8jV7ZlevPFC7TzE/oEV1Cm5WSy5uE7LxbPdocInQtcYC6D66BjrpApXio1qEIZMt5Orm9+T8cBRi7dOIjj0+igoY4MPXxDRLh3wswM9XtioLmfaqzhy5kJqago7pDE1sar4Sqq+maFcUJDkEBWWq2I/JLCIzpi3ad5XB5zWlJpN464ReAFbwV7j5qXGUWDKW+uWXKyuxhh/6/fP/3Ho1q0F6/YIc6JLlH10gQrwCcVc71CvJFYS0724l+177MyxaLtyEoW2c3B/OE3XBD4jfP/jNHFWMxSKwbaYfKRWqaXJzhlkqk706cqBEgOArKYGrwcsgsFjcLycqee9szX7kjf2eHeOoTCGGn06PeosUf9y0TlSjYqah5TDhQFucd1zKHJYiEDqyDPY+HvRHv7OcKEbitWHFxmqImkfdRa7kNxxr7WKaDTf5jhljj5y9+mEAzTsC9ceu4cdzPx/Dl35BI1Dh+Sfa8TQ7r3e9vSnAEvD2PGRzQFgva4KnJIrgn7a0XgJwVqmO1/RjmHkvTP/2mb8Yw2TX06hI0T/vTuB7PIeDGgcmq7L2RNvAAvZi/M3NKmYRNl0FfyIbUH5mykktVI0XqhBDEJ7OBL98ze9CjyOOYS+E+loFDlsPoivdoSLl7J1m6mobOjLQliaHLqVZaYMXML6/gYzUyWa8ZHU9TSMTGu9djlR0MYRlf29mKJU4qlvANnncy1q1jU8V1icICtqK24e2+cOnrP9dMIlbyNiAY/g2aCvagHIG8RbZXaeOlObfrq94nj0gvnApX/CNj162+BcOUWdbt4QjMZxGH6cbTC4ISj8BkRtZINnEQxC/en5HQAwRCMseTdaGaninKEwkGbPthYdoAAGncfGLpCE995r2k5JF3vjh2nEAzAfoXNQqMzbgiDskErfJ2opQxfxSa0ogDhTMOAVG2eJSf7Yvlx44dzzG0NU0XMJLcUIG9uM9iAzZezI9lipqUFNsbbtDIdhKqRj8M4SNyP1Gv+5WISIgAroBmoBqABvkHoJXcQd6Y7cOf8aVVXkkwY7ENJmlB8cC/HGYbmR/1Co/rz5P185vz15sWboGQ9FFaLHvXEUepJl+RY+XoweI4+1Ow+5DffRhBBVXMOUjRupGBnaB10gBlG3cRn0KR21+NQsH8y7y744r16MB2C18ytPdHBuP/Rwk4kuTvStVmRitEBPjjtTQbl0j5U+UARoNJ2ASrJg2Y6rBRpaauQe/312mNSwaDkF9S9brc4ofU+pJJmRlJSggOmCdaDsZ7ujQAFBmorAMERmtLEAJwVw4ZLqjZFDmfc48WKpFh6pr4d8aMpqnkecI6iIssSO/FLnZskMhyUOD4Cqtmx/D9JXPn3tkdDFVt+0okF0ovj0t/hoLJh/69vsLQzqGuFeW8q1tSlhVQlQCEi6arDEERCFvitp83H//6r+cTHgAJEPJ1wMtJBsYcVrAGod4bzSCZgzcVaCmEG8dNlkpgoJtOfBITtFgIh3nP/0I6IGq51tmuGMwicAKphIkBVciNH2buVABsHPmnLsjoP60zU4PrwEcO6Dbd0BSJHcOWaoTdW1OdHXcgLb99KLrMhoEmr+UxrMDd0CUP983dDSSNF95BkEpN6do2u6DC0hKR7TMzJUoe9sawVGmgF/aF0ATFxdR1+HeOMT4PDR6wFuGLe87mUqqyVvIj4B5i/Q12D1MEDP6Gr7sNlbD72dvoUwkdJW+U75UfBYHF6+uRc/IvaYNwJXxCfA96MHb74dnUKKvnG+wicaItqel/ij/vG//rn6F86CoIChfl+ZDAw3Pl7whxrUcpZCQoDH2UVTc8F8sKZdDMDa+BJYAoq5gavXfifIMasqsrcBIABBEYxxsA7So8zxp5h5xsKPTNKJPp7SgAwdJawhBTl/zCNek0Dz0Y9n9R2P1gfUwblUywQslPZaM/ARIlZYmNlgkt45NocxnymfPrq510iVIuZvBYMveh2xaAx9C0Akx+850f4iw2DBj7//dXUTYv8GZwf3oekJsOx6qM/6agXOBqUmUH+a3qxD8xI+AbZ/ZypU7oD0pRmxJ/C4DVnH1DVwCKzpXvPOom24w3Q7Pg1BOkvgg4PkuYwwazTRI08OznKUqx3D3o7tVROimGec5bA7o1TN56KwssCamidPB10SButn0pmuOwEhsWOiOIzHP31EAVmEsg9VxNL10Vy26ZDDbrNmkviMsD48VjU2pE3wbLOliv1+6UyIHcO93Fdm2R1Qs/mwQwcoAGIlka+TMSV354z08mY3t+4nggt1dcxw9yLU76MJZw5MoQKNyNWzicmbfry1rtahQeyk2h0nSih3Z+bax0gvFyJEPylNF4cH1NU1cp+E6C3qnnP4AMt2YS6fvwi8o3NPHaZde5SMLwpSPV1QzdYn3bMOHyl/OXz++ZZJmmcgB1/gpbC415rl0YwVPNgKYnJESYvDqXWlC7Y/FvZHxMOFfV56M3Legsi90hjjpeSCeFseHeSAEzscKoydFOUKibZOckqeK/ACrs3kkq3ConA5tCegAgr1jOyHHJJ8EPtfmsMziFQr3fTCYUfaarUSg+LAZj9qnmuMw8qSUJLruPBC4bBhrLyR86jQSMV8yiHJJULDZfVs9Y/bf7y1aQL2+1ByhgHnpaeLya2fPyP2v2BB5AosOgw28hTBVjPlUvARstJWm7iUWiUuwB7g5zcO39aV6pdECx7C4hOBRU+KSepAdQe55yqGix15ve7aPfbTDjDXkZjY76dDaenkptQmXiGq9CvQCRmGLSny7U5DbHanbcoKANNigiQDcuypOwbXuMUViZ5iC49a/OUHvWbu/HHU/3Cj7574JMGVQ4ktns8TE1+wUrY2Z3OyUKkoP+yR0OF1QZuewDuYbbsF17S1es0MPxtE/X7CrjAk6JGJF+/zt+2wLfK2vMAdjfE67A6qLUjVlmiXxDUrC0ALO1T95tZfEtGAr+OkUz5vZoZ/MHzKyqLDts1QtQwL4E8Dc9d4kB9j1HtUdrgt4W3dKO/ah5EPG34d43c4ppx0Shc09SVOpKGEBif1yfMfCg99Tfy2fULwcCLxihaSOhUptkMFLYK+FllWAcoZK5wDb2oB0AXCgMup4pwK9vnkZFi2ylhHQG+rjJI0ha5gcWtT8ReF4QMziB84yZ22wWdCyzhR2PbbTxMLCFKhp3Cjglkr/ZDuj0psKn0/W/wiBy5tWLaSJFF+UzIW5ImtpDLu6LWRw/b/s2i9RwnFE9DhPA8Ri75yC7rYCxS8ePYJ37zBAr4Uz05IviZrnudEpUOHI+6aVZ8y2iVrcc0y8BW+v1GJxX9effmYqNRsSnxBtEtWsLLpDGDV2ka24Joi4o265yjqDHYcIqFVXi7f5+hh1eDjgip9wWd9M+sBCxGaxOSP2tiiqnAxINU835OurvsT2LLDISGLRgeRuukunEuQ8feFoDnGy2PmdldIp0U1a48LyloSOYeWpS1rca5OOSk2H0qReXSEhBjFsHhl6u7u+xJkXnOFId5oyc/PRe7MVjQ4bi/fVc8WtcrlTlFeouB75vKhBJnssNxeBY336dqQfSx4kiORLhfPJwqaQn0Kap3xYtzluxpxjVicmWUrqu91l+9LkfFfF8q1Y1C/71bX9XrMf+y3DV1/rBmRfRh2D6+w4AWCHPD+ZSIMUwSOXPDwx+3bv10tLv62Pc2k3ao4PdQHi65GCY3Z1kqrYkCsVx+SFAdejMzYE0hcE6/blCjoN8jI2B3IS3yV4RNdJinuK40vqMAbNSmWnwyWcKPEeKP4PEg3hZeJBYS4G+XzAfN29WsIFLFXmhnbtCdyrqxO2/7nbDEKcs1QkcRr9fPJzGLxgr0Lu98exTXuuMaLl63j4nKKVW31PC3t8ddqQdPqNNTaFufcdHG5mZpYPLF9e2mTVXGlqas57pps2thHo8yquEw33mWHc7XkOZCBD6sFb37/efUEsYCMjL2pidW1PtbNMWxePc0Yd1rG3mJvz8AdiLGTAwhPKrqkylAMd+KamkWbLL5x/spdDapGySTXOIJMU7/kBSgAg76+gb1NRRHNAKLLcCgE/DRz9N+LAhCO5OqFeDMNUaX/U5xlwNr9PDNPsD1vzO64oQm25w5U6dPwFcLbtdZQlXEpKHgjhWHYtRD1+wGGKpdS8g94G6pu3i/aXOPN6NkoO3yJQgQqWeuREM8T854VoldiY1/9AQoNr6s41NpUg8jHP9AwSL5xJPF4KJmuslO2ZTOFTF4f5XtJT1W1PJfn3cXE+WB22yUm6vd/FZ27v3DJwn+PPT0Xp0pfNW31oHTx/FubqlEEnbz406Gr/8yfn7x9seDH7fM11R5UpgO2aYN5DoQC5PBZtXcN8FbsQFJT2cZzXfX7dSb4l5oeAmJt4qLPUfPRIAqnm04jXX5iiAfUJzQoycBZBlNxYwX/gCo6Ysx54zsNA1QPBDVeUqVA8S9uzqPSSOtTkx5ommCmqM6IMKVnrrdqgD2ceal15JIejv4ABdjMxLt5AVQDEFm3FnsuM9HUupszcUPTwODuq8S7pRpqoaAaYAELbkwErleiUMLtuPfMqRrk0+2fb2hqqpltLU7DNfM+Xf3zH8RGPp1KvKFloIEY7JEToKuePpQKLxw9XIXLtCd6roODcPxpKM8kpecyiZQ2e6sO0sVpaFLXQBjnpjNICzp0ecJTMN4oeQ224bBVecd6zQEkYAgtAOliPW0Ktv5GKLi8MFOHdEfPflazBpSc7S9foPJxwbIBXz8biAyh7CEjVYSms7IJErXbEugiltp086J8MGwh7HgBhYTNt2+DHR3OqB3QAvR1qUr8y0bYkps1laEZHu4WCQDButGR57MK1BDUeHU1Al4ruFu22CFnY12R4O4NCLTesWd6SLGjSh+n1YsQaod3C64gAgqgR3GatijQJPa3V7/cwhbp5z9hfgOg+sfZv7FV1ozsSzIDALt0jzPSTroGyIR7muC8/VSgNU1XK3k1tAA1ZY34FkJAQihDslUZwfGM9iQfDez697JDEeimQcxYCteR04CjHBoXA1AAQNWY4phsOZLiyHebkoD4MmtvKTBAVvuVcwRNQQfdOrvzlFQDhp8mALKGtPmxZ256eHOvpRvboMTposRGSwv1g/0T8BmZYNFIEekT3rFlWmoQdlKgH4CBwN6FAYeMrT90K+XmSQnEIOIO/Pk7QQn7kuOCd1MjAlhnEqw2E+cjsdFVYOCuqeoxzNNjzMEL1lYipYfDHcRUwAMAI6DLlSbs9WFvYutC64Kn6ymh8Dk1+GIh6t6xI5dj9f73ASDKdvi9qkaWccQDwFQndJFMAy1sr15+W62mS7SnQIDDeMwastMG1Do/Ww62Fx4AkAlwx4tAy0bbyZxXLkZA+v8IY9Q80J5xDS2TtSuTpIQHoM/YFMSvM2wbMobYjPMT8Ui+3HqVE4+H09QPDwDmK+vaYHf8JAYeACPCnxWEKhwjt0V/HPsXZMeFeADuxOkxnKZtCzSB3V6W84V4a7b/+RUPwOIff5x9jIk62aWvCRoecN94AAiv1fcHwCRity9E23mo7H+OAhRywaF2nMIDVSCJ1of+UtLe4kNGVmqIFUpWUKH4pQ4UYD5w6hxzx7zDtOPv72EaKYqzss3pmLfvsSH3kch4AOIxk61+fjWCokQsYHeeIvEAHC2MW4SY+bHfCOZASAweAJhWL7Kp39njlROeWDSuWYZZzAZYC081iHS1la40BW2QEE4Ch07O6HsTGa0PSLszWArfxaDf4e0DFCBeU18n2jMHXG8FjbSJ8z5kpKQYaHrC9G3flo/zFvTZkBrBW2aIlTgnXck2ukSVvpYB+fgKjrU1lWJ0nf/hXVyA4aUO2fVcJhhfvLnuAG+96zFjP/0QF1BHBPyZhm7vjq5BK4Di2SGOT4SJya1/El98UsMHaa0Vsu7UvDDO0E5FoI3TEw4o0BndcRy3QibD6JJv0noFBmPbFq65k6Ji3ipR52niMzKLvT7Uhmydx5mETq+wsSx4o66BhvFJQaiPBrl5vQXxCbrg06nqVZlk5dBVvGmwZEinW7wuqTDwacgZX8ugkNbX129Uh3vrV+6G+/+C/2AEAR5FfIfxYDRIXpZR/OUfIMk/vbn6D56Dn38U/r2J+EB92H5XK5pEEArQ9eX5QFILC63y6QGr00vJGsvSip+f0NCA3+zlXS0DAx8bQbSLZjRpY2r6ehKNtmqq2KyAxnA6a1XxgEwjbWz1P1BjyMiVc/YTr219dsIBEo1ufo+D0zda8/rApgfzkheve1WckUdRBBJ6YD1D1fLd6DG4KwLu3OH+Ci6M6qWi4I06ANtcFOiA8B962iJrPVnD5MbuauDAyKEl1btPU9HMBqoB+NF+zZyT5oiEna5sf6BsQz6xQoCvjfm3QDXA8ubf2JF4Y7WmhiexADpd58GbQNQnUOTqgpNyJooFCKoBU9WdQfJIuLdWPGDBF7X6EN6f6kqTyPgoFpLLrvbjjWOya8PdNfm+/MHL2ME5+nqMDhcarhn0b/yjq+4XRy+PTvfCJ8t9PYroxE4RyWWXtL+uzgqu6ProNzknOt8sMVvpayFqDRPTsr2Ighf54bFBf2yPxtHrX6bgnltlIWFPmZsP+VrwkpYa6wRZWFms8MGmiVVda436fQt0nZRYt9qyRAPYNBFV+vqRpYecJf57zUpW+tpiH2mvkG5h5Yt95DR+z0G5/GQ9rqGsHX46NnLs7bn7vy53lF2rMW9OspCgft/lVY4z582tTcnnZ4tnAab+MzFR8MIz7e+Hzih48bGOcrZK3O0TuSfVubhP16w5iWWFMkOf3Szn4pZ4M5sy52rsCV0qLJyrd7iYgULMK6PY20VZsCVHjOX7HS146PVvDvKS2e5aK9/i+H3Rpu0WKHgx9uu09ZJ1hBlPVjoXt5tsuvUGyf6VYvO9gSxujF2IXr6vv+OzusLXRwf9n4YUKmbbiiptjAtqWezEabn5ZIqFKFvHZ3UTSyLZY2Z2JIfFy8pzJWHRgWfEfgM5LFFnmPGZdlZ1v40ZcU01QTXImRXA07fgjXOi1fNIn91XJcUtTubUMmeR7xnzcOKN6sBda/OFCcs+ttWLpIJIexFYBtOinCarpHibSk5SIMIYndx6jDPdvx7lf/BtY8ZiKkwnmuhHEMvPX+S2RjS6PAFV+qKEKlZUOSWYl+Xbf9NlQth/xerF9vfO1Yck5zU9Mey0owIFDGlU6feoXOBmNSaMd6EydIbfGg6pqMqx/ox1LTcb4RhjeNuy2GUaS5METfUspOYTLbLYMXkKZdyWlNRJ105ufxK7ouBiYHFLTvDWAvDbyiQDKF5hR3mlk3qwgGwkUKY8fLPYLXmKAB4ULf91wy+yC+jSDIGLscq2yLQgSdBOmOcwoh6q/rxAqwz1+5Iv278V5zRVv1lmkMJJIhaAWFRfYq3LzRxeC6s9Oj4JC5Ccyjhi5dwCGUarXfjmYc6eyFPFqS1WLQU2lVgAoA8VnHpQoV0nLayyWNmKdjGcoGyLleZTEiwgKVMJo3Cl4+W1HbyUJElt/MWHnEPOD/9eNsEpC2IPmK1gyaos0pm5GGsv+M51z7EdAU7IVajnZqX4YtGixnx2rfWZ1OokVv9FjKjtWLQx5vIsVjp1aZAgCBqXK0pbW9hZebhrLampK0pgj7wC+Prfs4I3s1+Tlx0S4ppTLs+t2FHsPt3QdE4Mal/tt8gSqvhVuXQ47RKKxkna9veEMeZ5pnknKovnuWjoHt/rMHAilC6X8y3Cyw0XdR2WXraHMb+nOBvtXMM/zQi8Q1RVuv8Qjm6uYdqZo0of9VVnUaVfUpq8/VbiVc94zdX//OnwPhKNDRpC8B9Nnc4GCeiuDD2YUA9izz/cnSDLldOJa7bYZ9L8rBNTzazJoScmHG5GaqllRAvTjUPxj2UcnBGp248TqABamNiW7RRG1i055XDEOJNmnMl7GGkN4kmW9KRYHaXBgnx054efreeQXBXUd45Lf9kwHHdnw+BIIQg8OHDaZ99D9mnmVvoURHuueyNFta8y0vlN61bP376uv3jxdk21yCMOAyWlBvHWzjkFxIupcNiTAZKPlqA9Mh5lLU1CGx+teZGPiaQ9LFepPN14vFFbHA6vNWLIw/19w8U0FHuB5YiacJKgzzWP5nQ2nUM319ZeOy49uBanbGLfxFA/qm7kN4dv2xdoZiwVpfhZ24Qez5LuMofDRlUQs7Pcu2ZbNlcF3ppVk0AF2FFyN4/xnazJzasGHJ5n6GpEelb3RxbQ8rDorcYKFFcbYcwq3LVV9Vx1VxLckGAdeBosW+Y8u3pTMlpXHV5tWgCmgqDex9MgoqQJLmcdCHzSLPNc7+HNjSIjsHLNCVSAEYIhct8hJzrM6RVIzevDysayQTpfcWdMzCqKUYDek2OxikpIzQd3IAISd+fjWFevukrAhsG3mA/orhVFq4iCwUwWWXne4h//uXJoXTT+n7+vbsLkBFs9AtAkmt10gj1dBRlqHAXjpH4zqLEUBexh+SpKVJxwln231YeiSp/wt5ekrgRA1dS6IQGnlerMWDTjIUJjnxUE6Cq4vizYplDZX1TrQ9QB7rc1p6si6z72MVbViCEeqDxLV4CJ/Nivbnpwbc1c26yoomr0iG+HrXj08foKM2T2PZ+/XIdcgKlZ4HskaZAL+PpPMrxwnmAdYJN1vKnluCkKN76HISAVfT3lEg2P/8rU49FaMMzloEJQS3PdRFmJiT6ZqsIH4Qux/zVVayk61MxxLzERbDiestuajPQ6uNE0vLYQLJqpDXdY3wlTkrLW4lmUn2pFnyiLgj+LvHSFhZiGbP7OsalwQyNGWEMjqv2Q1AFplqni3TWzxt5GmapuCj4CKAkZOAq2UWLm7gcqAGQs9CbmEa6jzsa1FGgPoc5bYQucD1RuJDwh6NYhnEM/rjtfgQEHFYKBJTYk6DtEb6IeDvCLdvZqK4Fg1qvCICnA6bUSJDOSTxbhM8IRvgcoa6g5bEsHAAzENJm2kpI6U+yI9hlLtzuvR2IZ6LaPPfYx1kjpOzearABygdVF/XlwlJ1/44JJDSdReA3KVJ/A2gJU6Id1jIRjtxMHbnQN6nns84uQKkN9juyROnL9keeT/OgI1qx0RhYDRimLzjxlXUx3vu6G2pgbj122U4EjLyZbTAUq4KQMaDnc6uCsMPAS7Lbwc1UgIA2PvB7WI9xhjsY0dTQY+T8DAiuge82abqa2itG4DPwAyGX9cNchEXQKuggAyxCQItDgvwxiUPJiGBATHyMEQzYrSzfTIPgIEIPAHsdIi0031boBUyScap7OX27hX9305usmsIWbsQBoTXGFy2PcFQGXHmJnYq8Pp1eFHxbt1wm0HOJQxKK11RngRrtSlfW1Hic+XrxYC5v7JGtMNqFHnDFEILRg2xCurU6yrnC0Z2JqACw7E8yywmtt7nS8mEkriI0Q6/pbrKlKRrFwlIG7TsECCqioAYpKICY0dZrViv+DZeMBADc6GQPBfKACrNX0lSN2s5ZSdRQU7fgrMXky3auCQwyBfqPIxlXUSWTTjbZDYgTIjldUPiBaMf3Y9B4KYv9BSWi6ZeYq+tuTaOqKB4IPbzZcuGTD28HrRPvMTq9nw0wlXHP+AWxNSk4SHSC1kSc8dCMZBy5/z26fv1jNdH3qbkwrdGyKDtDRQ9V17EksAypTVdsBDP3NmWynZjLg5u1RZxXVTQsmWatoFHTaAhWA4tvjDQkgun+/Bj2rlEszqH9RomQa+Q8TwZoDRa1nQXQvv+wFwiUiiYMfcashBwdDQtZWDeEbDgfAtTWDRl2EMFT9w5C+gp5dcdyUZOqzxwIeK3BNLPbizAFJ+683kvG0LptdgKS9zemmpAcmyqah0c4l0GxMPj38Bq6zjc9KJO1RCHqD9ff25AXJn/78SmjTCnb+0BwBRLgQtZFGojmdZJlTFPC+OU5j9qOLp7FofITt5D/LpaCFOSp7vY2+5rxbsyjFVQMufwJdwxoFK1jHaXQSbb3vSldToKB3p2ykgyopZp/EPe7dBnI8XYEWqiPxg/QU/eB8xVmKimHds5HNDJysbLPd62ODnF9n8AFFJIfkbJsIVDZ/evPmBjQuTwMJyPFaySDHl0BRxqJP28A4dzxnr7WpkuLOg0V4c5nq4f4qdgxSqF+nFAewCq6TEsFunwj4D77X4ouHuIlD4p5wlWxpVJ5fj/0Wzhj80Pd/OCo4XG5nJ2+VLmfKlYwnrTi7jZv9nHCNErwRzwWJ4BOnLXjo8ObWsgizAaHvSbm2u6KjoENeExvyQXjB0F3bfpcHqvSbCdNFkI6LjtkrIXu/vYox+hmqnJx6XDulqWfMSGZnvDjTITXlIaPSNlg/1j7z4E2JVeR2a6RVscM1a7dwvHaJFcSMYOHB8tga905ho3eIUeETLy52FeGxVdI1eiGW3c88ZG+7LWNz26RZsEr47BY6T4oVXG0CpZ3hTsQCKk3NUBZhJdxBJO2vOHzWdAGopzjxeaSOtX6lQ9JquEZeSJ3fp2llbLWQVqTdugVUwMP52+elva8WfEvTtXaKkQb1yI0K57iyIePMMFKwFMEWJ/sGqSNMMfaPfAWH5Xa57qPSbIpYyXXSg3vEp3TZLfTiz18GHDY8Y/jtGv1SmFVCzSqkjmd8lDO2sgQNfk7h8iiHbJUQo7X7RaIpcY9fZrZDfnN8qPFuocV4oWXdokbh02GEkzulKPEkmZ/kC6ZD3GKx6Gxlgo9QXA0SdXzpeYdDEQWekVj0igytyOhUaUVBKOIwDilbM5rNT/oTUIjw8BiHGCM5aYot29/qn0VH8Hyvber3VvkYdsW9YG7nlFf9vVZu8K5s1vRJX9lHZOMXfhDN/Nrou38/2/9yq38UrUzQsicn5cy0aGwc16B4p/aU1deLGAb2VM6eWsHirez0jzGa4V571uj47LL/yLNRfiuliKjST9gKr9nNPsmOi+hWaeBn077X77OmJlkeU61WTRp9wpjLCQnjc7LBZ+AyM4t46PUPftTBa3xybWSLd4JoC+xqDBCsxxHuH+fL5p56Vbmh3QZB/fEtMt/xfP5B7yJu5z7b5b24Zjyb3XDGgjuwQ5JOz+K27Wq03X+Z77+/SpZFy+ZgAYHvv8EReSWxdit8Y7vZldG1gtSb5xO/vZ8VfHtR/TkZvrH3LyVfvlQnvjpU/CYZNOpXs4EXB3i+u4LYHY9gfGtg15tiAbuKLLaM28r2dfBjmJhMxo86YgH8oRZJFK2IUzXESr34QnD1/fnqF8SigWSwyRJU3gSSYa/EY6rCqikacs+ewMDJKQ+vXVXfF9C6zyv4ZCc3YRfmpDMolJmGPjYquvZk+djb3+AbO+ifrxLEzdrvm/AEb9R4jBUWIJx4Jem/WIs6pjL2wE1W8akdVmWaTcKymw+djxwBLWwi8ZBBmSBrKNBx1zR0mHyvVhKnSp5r7x0kxPOU5zcg4jaYhZpNBguzFcJzw6u4VivNncRDtoKZ4Tvn/jXDPfrH/Tt1W/icg+417o+ypanRaMnvFHm83hwrR5V+u7LLstJDQsDPQs1WstBeH1auN8M5+kfXcNfHY9xfCnPtH2ULK039rPMqIMOs8/S5GSjtC7V2QmU/Ub/vc8RCmIVafNM+YeBW19yQLWweHF+FjwAfUA0pDz/I89i3eVH3b0cFM7Gx5UZV3JFxuZN4Ci9mOLZuCeADAXW57tMybgcC/veQw9cOD89t5crmNteI99oKY0IjXHRiBLZPumtCvi8gV/4IVfr3XPP8Kqo50GhdbmIBJL+CpVmc6i+bVqd9mXX4fGv7JpMr0tn3m279/KJa+Of2ZZv+/uqQaoDCl4niYoBJYLEUpquEoT1HYIUMk3ifLWe0bjiEGSRwfFQYizcKLybP7Ey9NJgmtoOMWAyux/a/cqRXdAsKQrMEkj0lERm7JcIW66XWpunCwMf4tTtEnI6QmpAnbcI27XA7p6hij31ra9bu9xXG5MZCh+MO/nF/uOvtIPfphuEQ7zWCxl57UA1koi11NWLcgTINF1ANBCI0/JjtuSq9stozXqtPOrsnwzPtW6JwIj7CJfm89OFWs6UFFTzedGFs4XgRCTZqBtNI7kHKIyNP3pcEgzHN76QMeUomA1X6Z+F1WDVleylgIWIWx4hUTMClqqJL3qqKdnZWup7IoB/IrrrubUTx22p1Y54JvihzTpXYwAzSELiezgz44RwBBViy5Nzomn8bMmhOqNKPUENlTPvEDaTzXW5KjpPJJMoBiyPHkfZd1eCIUn6kZKyirWmK3tfz11xHZj+XKaurYSoSVfowTAXc/23kJ0tEka+PXF6L13a29ei7gLi42xv8f8Cpv/d1lN1hx5LbKzNXB3VgY0rHzl7VXvMpi/VUFEhsZF3uQmHEpdHlPxky6T1ymYod8Q3ch53LApP4rVYnSPjOXR+4A9uCHyEWEriEBTdwZoRjw38OfYVDPvnWrcRST8Jk3d5y2pRMCycC/jRIUoENZ2kk+raGsZ/i3Az1dsoelRvixcy0XVdEMU6zh1MzIEd3v058ghdp+1+zn9Q0UDdncQQHuCbfA/5AGptZGXhig/GgKf0AwVwLkBXWMBm0jQkHd3rredsP8Q8Yxi1ZeA75uoWgDfyyHBRu1ZpCWQBMdorX11x7F6en6GRqZQzCbfTpVKAcqKYnjrDumpgAHirZExmtlnxjAts1ZYPVqxPVImDX25g9g32AYU0IqQ18MwQsZLt6UGhoXJYupuoo9UyyVYhMPbb+4dhCO3WMlAcsQi525O3tRYsC3KsAzDJSUr+HKn1s2F2z8+0RYsjcK8E2FKmVlzs88d8SwCyKkeWS2wAsIxC0AZQwQ20ci8tO6iDZ71N5iMiygBAdoayM0DmCIcowHCIfT4WVjCTZq0tVYIbEtLljj69y0h9gaOS7g0dDVPXi7rwduQNUs2XsyJZwIvbfmhBi6IYmyGO//gv85sKgdHMkalR2ySgkiDR+KE5kqhjlTltY4wfTUJw4DDULCyj0xov5vgtWwNb/TRqAcJ57JMpkkjrNJ7XWc8Hi+b+/uLoMAyIoYdAPFi/e/uYrPDYwkyU+VkMtKWYXzBTqdkP+KtBTqNaBnWEkVMJ2DobA1mQJH5idKuadmCK8MwrNZ2T3FDB4RJ4/lEZQu77MlkJ0UoawA6qBCagGhF0LNTPovMHhSVO2PUx2oIQhUwT0dHAVHiXV3C0sOyTqf7g/8vEcRA48APchx1nG+WOwBsEM806cpXrPLhmVqgP+cWqFH02HGg9KGMLzJqXOryLUUCRzqN8FWs2CHxMRodJBgf81uKkgPpCCwpFwIQJDRhguzYkqfQWK0kmvGkM9vOeVA9YIJtltGSsMQJxjw+Bvty0x2o62IUSvRFJg2eB1RxunZ7mSdTGtsCIMtBDWf3gq4n+q9I0p0ArLvS7XYCYrrGrbyVSB/Y1PIaHS9DjmYIxBRMA/Gr7KktSGpRjRCgb6S3CqYLqUdVFLjUSX50PZQ2Ln0TFLPAe9O5d/qINqcue3sfsL8Uh1Oe4DnNk75OnybkN41IZRgwraAE4v7LEXR8A/k6qsFu0a3BmuqM7M3QdpEg8ASnJj4wA3IPLx6sAhsu4pKZFAWUvKgMKDvlhP6Jc045Qd8SaLIaYhGjYPg+LVv36HYrRp4vOm5AWEgGSihuA9+mKNaSSG0S6vckMVaFD9DU4wftlNp4Bc5maYi3YtBhDhLenmNAy8NBbifeB0tE+4JCN/9VdOAc40bErQFwsIyvdFk9BzxboIfLmNcVKQfa8ekHbHLAP0AFtb3grHJMNuzlZsSACcx96eI1D+v4A3ghty+9gTFRWj3rUxM134lxEny9TQVwYUoDOcghjUKywAT3Jazp4IzQXJ2/88jwXMxwKSlanALAbNILADniPJSxxGI7nuks5tBs95s23CJUwtq6alvVDkw8W8ptOhNs3bqrixdXFxGxYJDnejHmzncv51HAasGpIOncACjrMqTxNV+gNSg0gw21dzDiGpWHqjqdhPDLGBIpzeqedtty3YC+QApbP7CRon1dpYUn+22UD3bq0UhSfKBZ6CFsRAM1c1FcN2hlZm6akbajhBTLHdCW7L5jngRA0Nh7v817xbhNznL5w7535Y2F3Dab2k11tzfY2sezgOAUzpvs2WOORydDyA5N3xldKTrsqoWhEFIfdptLNKsNSPShdrCw5et/Su2ZwtOxtOIZ1YId27CnriiZz+9aHRyje+SS+WUClh1tymu6XJt24cEgBSjC476Yt/AKy4cX523bJkZJZxRqgWXXCCXXk6lJy5c1po2a1KD8vjJp3WjW5ehYB/GMOtTlGImmza0rsPWcfzTJtX7ZVOAn9TkGHVfnc1erFfSDUj1TTjdQUtD5ppPRuDqkEoIAECuvuEjk3oKkffnbmG/7NoFdXyENmFdzW9RpsPCmq68Q1wn/v03/8JQsHMMQJ9gKjt3GZA4Df7Jlwnzjy3SE/iz6rADIvONNW9cUh4C2cCmzSFtUjE3vrna+J2hL8ADn1Vomtqt9Or8XoN0yhknISEgatukEW66IJe4WvHC2NIXJmW2WZzobR0ssqsclYc3xWcAAsYmj9sgzzqFXfu9y1KkG1Zqx7EQkJe32c3v4wFocKmPqddcOgWFJbz1VdvAlwb2M+tMO7J56cTyW8Qfh1xjRJRpZ/ebDzALmOh4v5if04loL2eE1bt1RAqdjmmpBZX+JQmscuKz5PNiWv8IT+ucbwgismtez12DcHpzb9eaLzg8XTDnQ9ea/wbe9dePrq80eNwFyLYazwuWAJR3OboP2VOKcsp48YstcbvYVtMmp8MJqr0w+yq+EEy4hrH+hTRtFinSdJenK2A2FC9BXtlycXzzl8FTUvlnexsq5zH695jAYKJtNVvqs9zXj5e9/xqim/1qXWaV2bbBe1aGQPsdpZk7/GTRWNtotFYeStxzc3Im6n9lbxO+XCVV5ConmYG3HAOr8GYmp2TXRyU6bND0g5FJ+Nxf85XIUz7E5L/WXRCY3B1h31PDCub204TH8nBG7VvLSPIFzX/mXJ46UYGn21+sjyhTfSh687TsRnE3f/96/I1F/gfz90eTbgmu6CKrNQFR/7cTsU232xuUqgfqMBY9ImbD3MeCrGAQ1btxVjAl9mXVwUvfp7/2eq8oF3Xddq2zZa/f21vmy8pEvNMYDZl55OjaJWf67rzQZTASsq03zU40nh0l7FuEzfYq9UOLa2OCUWPdqq2eRT5ToMCIDvq+z9V+ilQJKxbilPYb+ate26VCLrDpnlElT46XE5VWwRWnjluGiwKZjXI5Z2iBNs+5ZIVgZKUwJVmeVnFqZImXbMhCSvw5ft1+mXcYFaFtc9uUWBgZfSJ6BRRve10CBgTjY4xRpufOfKLGn/rGq7yKBocvb3hrdfg0aInBLa7yLajrhAvpvHawu7eRv/lY3MhIQd5CV5BgAHaslJ895aExvCCvaqczKdkto7B93aqZnsU2XaKXTt5qRbtmpEI2FT+T/1+v6Rv3ro9EnaC4wrj0L7vC4h8heWAIpFcWdwP6cavghsIXve6v69W97OeR0Zg0RYtPYCt2x5N2L9Kp6+43znKz7jBw/FoW+9mRr2oUrJjU1ptcSqrj3p80laSmnMk0hPYa3ZL6SZMlFdfQvpo59bbPo21n5aNOWbfM3/UaBVsi7jbQVGwbZDK2l05kgTHy5uHZ0RFtlWx3W+9xpZfQMPHNf8LRz/++98f+Y1H1yz8CbU8RWNzhcPENUnNx2+y2Fi0a2YSN8W5ZTXBi7iaejHS5KvgYeILyJ/Cq2B/rLuYSvwe+9wqXuPgTA1JM96a03lWXdHoeoz/9WH0BXgL967SVjR6d7TxuhGNfHxIqGiOPHm3f/4lPUO9Swe57nImIxb1+9sA9jndx4ZWQwTV90Tic/LT1a//3MLG+RUoJoT8Xp2EOhPS+qhqM2s6JSxP0LBKV1N/fbYFSMok163Sx5FqGktP55z/tDhZ7XSDIDOMii+H6qwHuja6p7NE9nb4BqkRoJWLqXd9+dFztwMCup8In2wGbOi6V9B1N4D7kbQvV2Xm7uT9cm6hodG7Gf+uWFXVEG3h0ColWuaBYMf1EQb6q4aESF3S7TbKgg6oeKse6ODKwxUpYX5I2uOw7wYWsJRGcTUVgo9gUvogtXIjzAZ3jwhtMtQ0l91IfAOOzLwbL4p90I3tVyAYOK6Maz47n4A4b3wGn+zAJVzyLTqgYko+fkSo7Een550VjeJrRmVjVHUkkqcupcJTd3VooevLck5ERIPtANK15vxb/8x+/QRZ4cYpQU1dgHfuZtHoJSAWLuV77Mz1VnXXFq48q443t9IRrIMlXc+EvYWWAWAqzODj/1/nXnPvo5Th3DnRL+dAG8Ciu/9v0VSb0PUJCdsyTckn9kpN1pkkw5xx5a6+Cb51BLe2wwDxu+DPfxaY6J9u8j9rx1Q0VxQ+61ZFM158zsqlZKKIfDlmJLcAIz4Bv+qtu5bvDm40Cjd6KKjfL2zsAAxINXyLI4BPqjAHzRF+nLDa9hJETqhkZ5N58KL8/PnQJtj3tW6ylpkQtIHUU0tpOCVvAGNJAeMQayhUWcvALysb6g8c9LgG+LHI9kPbf1ys2TxkEa6I+rzIwN0RGqgBHEjBNdhWeY1jHlF0z78GxhLq7vhMHP4HdC8/GGII0tzlEaBu1BXLBz8OI9Y7/BRaih7gFHxcA5kuJsjYAJyxrWxQYRXoxpUHkTgBKmDQnYG+mjDbI54LMOxNVGILhsGDdVEfyCWz9CYzKDqlN1kR0fr6hDkInfaoYHyZFq2jo2FtMZQJ9SJ+osyVjsp5GpumDprr2jYQvxCHwjU2JPVe85TD5arq9IKBh2kYIkE9I1DNpn4tZbCQ4Uc603XUkDT4eujn+Vpqq/dY5BoS2+qxLbEBGHg7jhZC60BjyK5mKhxESUFrCZ7zH8csiTHn3IWn35sffxsDdh2wurGPdwDdCznY6A6IGNOIfwYvCfXxMfY0XX3l76gAghv9Yhn+8/dvV3+eD23oZ1jikEooqK3HXpXY+T/RUyWpqS27+sqTDBkm6iiGCbwc/3FtMNEK16yRU1Bxv4KN43WAzRIOhivqqdpN25ZDpYOs8L1E1BpikJoy9vFWW7UW4Becf7MJ1YVaeySEN0kTaSJrKqZIYOLQFglI2R5P2OnMYorw/pF0tlolawHGnHb+DVry9TOH+HYMdIoSmDhloBZ2pIbRdMkkbf/9Rnip9tfWbFiyaCGGI4oSQShoHEWKBEl7CH3qeHRtt5Trgdx88GgIHgB1I/9xIz0Me0Hprspw192UUEnwN5qh9AgYiPItI7GG4GDbWeyOwEve/md/ho2OLtlUNon5U8OnrMkMbABco6VGoPJgrkLM5ta3q6s1dZWhk07ZKZCofujJwd+EOkZaJXUjQ/flMVgeBCQ2nFfaqu5g4yki9bXjJVHeA9bBX6v1lal+Se0ZMPUpb5WYKujCtvf1zc+APXseYTlBYQsYHjwcG+eGBYzVqeKBVmIPNVN1yGhOdUc4ZuGv/ksWYvi/v/wDgag4hzF44Q9QZcZe30HALuRgghwjhoIiFq2iwrQPSjdGQK308SwEDmzJH04sg6MMC7iFByB5NdQsZEoKsoLNFTG90jAGq5AMtD7NftmkqaGxvmLsOpLpRnJRr5xOBNWDDtDIpn42InM7VUPmJcdOEBW9iaQ9rFAK29j7zekUgCJTTmtA1rTmKbsk//jjp/NvbphoJgMvsG6eiYHyetuBVTQSZdu013VVRTrpuNXNSMT/T7fUI8JPWxpRXbosGWjj828+mWhG47R8Ww8dVjJU6duoaZ4YsN2oQNbI3Ckbt/dWpF/Kv4B44ZJhPZGTE4XBuBQ8+o5oAN0vAz+FpnCAv2Ubg8m81OF4icFQVCn06C0MiAt4tyb9gClQX9HVBRFqZNr6/taNdKZ39+VjP7mhj+WS/54TNgYQdh4+0FDWCPUT0cUMRdPTZX2nEbgv2FqdVook192XL/7BA/APkbQH9HGjbL89Do62VcHhzGTY2Ym0neiM3kvZMQcYFJrxpOh4M01R9frg4c00xApPXSWSlr//k/g33lyb9S3tD0xQ9BKBBZhqoBL40Kf5JgaQIs6qGMa5vRt53YW3/t3hQRjYFHuOW231sQEOOyYbiaq4OjePOwRT4d/LP/yb6Hv5zf/doiVxi84d+wgztuH1g2OXQHJoFnt41wFycCkoHWdpGp4m1dtXg24AVMANTdyQL7P4KkPzzuxf/+D87XRUwgE6PGrWPEo4g5Q2/6s08VsapBueKN8oXP4ogRN8GeX8ozxZFNFEz+cU3bMvh9PFaxpN9Ftk3HRTPzFO9B2niFNUokrfJWOrrzDwPQ5I3wgTJzyXbXpuJfyKRL9+upDdEJZnPi3j5auWh9lUCnOO+BSYEVX6TuGuIEOn4oz19yvC4j+XLYvcQ1Tp+1nrlgmdkbR3GeBxg0g+1vcQrR8ydwpv5clQPtP1zJETPGnmhDAG/2ld7Np9uMZU7KeTzbGdluciWCGKUQ/HXorb+LbrdtcHLGCpNWw3gv7HaS4RTQL2gLi8++Mx0bW4+/ct2zgWuyM9XV4UFzfpWBufceSg9M/JOktQPRFfkLHXWdB/0dhat0+Y+Ofvv//8rVrw2cAatSQC3ylxHjaQIpBj7U/ixeyyjx2u4soqrAtKhliC+q1mfj1r8EZZR0SewjXIHvz4UOr8KiPep6KYB7RX2s1AARbgufqKtHoCatleNje9t67ObQ138HUXeLL+HvnafmZn+oU5zzOsw4hFlw+jeYd34Y9z9++P8kZe37//799GRGsCuusWXeOOfayLRRxGFKMQ5ncmhRM8Xlju3srzb7VzMtvjLMSit9+6IrSqTfOEiUl4PjktzeC80PnLdhw3c3kxzdagSQsS0Ed6SPjyv74lPnxuIZpWSmc1ZHGCjNCPMsfnX74XbLG7/X/q96dFjk+eJTRebuR29sTIKlq59Yr7vOpXskQr6WWSHU3oVkGq6FSx1Z6Lqc5foJYsQIXnDkHgxT0WKVMposOISHRECSqVoZpM8UUrTev500GCPq3a6ivfoB/+9ZL1CkGXnir/KFTpR+9hPXyVw20gQQGJ4rSpTKNKnyXb39s2+HGGm29XgSp9ke3JXQkJc0XcimbABFoFKZR9vkX7fLGAbHZHFDeo5vXItcte/P2PUKUPuUd3ovrNjuKcFStsHeeWe/xye9Trl194RfSVrP5XzsWnDMokWHR6TwcraKUVe8/FFNTvc1pCszyyGrhX//5rdvbbVeGLeX2JFfB+UVayEPu3mqKUsaYRabIDpWDO32vyTErOq/OCFt0Wq6wBbsKj/YGpR0Ch1vxc/eKQsD/5W2L7SmePKdNgqx1XhE2ZneymU8Wzf/0dmLOynttaA9nnMK8xDiDrt43+r92C2BVJwvMm3xLLVkJw815uO3eNNwokx4e3IIz92rj8twsevwxX8Z+CKB33dnD5HOAORkHshixBusphrzVz/GPPApb7TiERVDqR2ARmwUXM40f6BbVYQG2toF9zt+Thl9nq3TS4y1A+2gx2NEmA5vZbtw45JIXZqbvuEnkg0RZSk+/Q4Z5rJJ8S5iiboX6/Ubplbc1w4WFptl24kvwki7PLXL08PIuo39ePfF9cje18gW4Z8OoRui6npIFaLvPSkl9Kj5Toe/pUOKSXD6O93os7WaJsXdDikOW3lGQ8xHWORjp/3nmHP4EkSNst7UeVvj0jQThVoh8RX+tQFm+t43rSX3RvrVF5eL4D9Cq9ume8EVW5gp9OvcNucxUn8bQwuMePamYaKNxj1hxeftAhJixMyXWXh8eTtSqxwzPSpyF2PebI1JOMlV00v+fjm40bpG3Dd5Z0xY3xftupkGc94fDG01PfbAVP9shcKdwpyKHCLELfeEoYqGOGgH+K9Eja4lvb/3T4utpFK+MMnzPpquSUl4UFWEM757HvrdUrz10j7VjbE2p2RBqo76NvZtovHLJXyQsbcCjzTNNa9ziRc3OdVponAv5iOwWzPQJJtCujvKfNgVCgXRqkwSr2RiGqCYK5zW6xIQcdrtXd1rOftOKuKNHavqzJoTUk1rLwMm/QbcMP9+9cE6Kpxq37o/DC7Q3wVY9xnnVBA8ai5eVGa8c9PO7hhsTmS5/evw2UPcdXwUzZRxmLjtTNDGuQ1oeCXW9jIdgTqR/vecjhTVqBgvEKntXWEoAMkkhv1oEKRTTR69Bh+wjK2gn9JbaXT6RHoKUMGMNE4TrluBP7J+bmkV1ONBJYw9kbUZWtEOqsr4aI/acrh/5JBpQKUAANZEtuPDzloonswqlUNFojO8M6WRNg6b25Kn29zfcT7wiY3mGIqC0hQFaPr65Lxm7xeOBzH/hKzBsSCDFI2Yx9Bng42tl8lFmo4ADZP0yBAfT08oM7aUiCrMg5TldALN92r7UGOhp2VD7ATEGR8ymZFICpiUyzXsAiw2MhFCqVti14AE4L5OMD7xogA7zK63KsoRtqZpZfR7CWHC+BiUUNLpCWVTQlit0jPjzWBGB5t48NtmArHdcbzNM0WXf1MYCpmifg6ECWVmEpO1OHDPxPetQ2+DBynxFUA5LNg4evIm10aK6IBBO1miXOFyNgibs70fcAX8i6Ov526sgnP2ivXaUIYtUuC/CETAzO+k6Ffc80B2OV2L7xvYcDjOjHk5oeRCMMQWbbqRB60vKnXUvAPf5tDF3fboZdg2/hdendiQUgYK3qzqeoMFQQ5I7ZBjBbjeGx7iWoSbne2GFvqmzqR0SCYRpbZTHpZIpa8tb2u9FUsnKERKuUDAUsvWUV0t66ZqR2zwXIO8ASVaqjruqOfDxAVrHjMnVtdSWGuW9rOYVEWKLCKPjHXP5Uno4u3Tw/2JiqA+paItG4snj71yvbif4aZOrJ8IVtv/pimYYygFk5LhrYj+pKhuz0oAXk15vRFXT1LyZeJPhzGZVJBQBalT6fLQUoi4z2lHgME34VvrAm4fBcth+WKIY4PZtIj2ROetB0iFj+0So5VV9j6UpYr0gYFOHpAkwuDVX6VF30KnpM9igRs8uFQlUwCcZldJK+GlnsGBVG0lGOb2AhkqFPXorKGCaSLVUJYkUFtLFbrdDV0qealfVlkBXUcy/7q2A7TfbxrXAhg97V4BWGJ1ajVPK8VAtM3qRKY9xb9OQQfUZU4/oYZMJVcufYPXDEoYd0h4uygmI4fGCYnJS1ZtFKSaX6NLUbU9RJmY9kjxDggQ8sS04IO1Pspcp4beEWDdYkddXyVl/ISiQlFf/xWD1tGuJQaHYhZe6yooPERnTe1C0Bn/rjyB1wyuPKgXJgQgEbTXBXVYUfCUU/StoUoNHsQSNz+80frA4Qr8dw13QUnBq8kB/XIYPtFk4AtqP6faigkcG9h6AQcMtBrhpa+mo2pL5IpGMM0J+kpaxA2RaUtQ21+G5PcC0Beg/ucEeRf8GR1ON4ABTX2hKfACiNyj6LcDtRv68FdesfDP+IopVuzQHaC+31D2GkxAiNziUCSuFjscvOEGH9qnS4LaH/OJfCbWlyo702EpWmEStySgABR5X+Svw1R1vvDj4LKQ+Z+kc9DL3esy1B8EAxmjVYecpkdcVtRRWu0bgTQ7b4o1bTzHj5fFnyvGQE/NG4gg5Ylqk6Q9t7w0w+OlxA22AVkDXUolcFd5rT0eM6FQi8CfgZgfvDmej1by1bBY8kaSmLqkOFMtV0KCNaiVnz60gIRQE2t8oGHxtM7lOOZ5Gpt8nIuUmwBUtqy44j9k8KZZNI37EggAJApBm3MIY50eZu6m6gtGniacLKStKIvPrYE5eWtKRv69WDkHXMTUVBx2ZVWSu0woDYcbReUXVoZx2nICApyhsqVxmAPhHm9ciIAUJBTBMmJ6qSIt8OPkriE6CbeAAIBexfiwJ2+g7l4feYd9bDEgf7K5/Wo6hCIWAuIK8jDjUcAOT5u+Ud7r3qjPJ9Y7CYKtHWDr7NBbLb/mDZKlN1JSUnFhmWRbBQgHLAvL2MVP04bXFpBqr0S0Kprgoyll1hQGzIKGHZ1hE/4jTKwynW8e3SSXv1TAT8Y8yd6GI7R9TvkyMydjjURt5Cgr0YTuT5t9KSHFZGas3b9F563qdAzcXlvPSiManZeKVD/tpcVXc7W5GCmBTqUwH3cqmWi2Z1zjIXtQjYz/auUscXkrDMr8DAJaJScM9e26gQUAD7XG/3HpZHjznFyRVQgAxdBdeT3FTreAPPgiDpUIl+KWrxP2/fbrJ99UMBAv66yMdHmdsx6xYd48fWGdrZH3TYfUJX2ewMJyEsjG4nT5fezMA1e6RB4JjJnRy5NFeSk3mDQ6trJt2YbOVc6kPJrRuVzq1VVzLeKqgPC6M4hWULx+G3NjvikJQRoeYTGsglu5IyXQdQTxdKNrMRWdiVe+fa5ztMrVJS8Hksbbe2Jlv7FQlPmiv97zUaZpkWHiohAcObOxxeb1ZRcDXlOsbWBdyuy5cOmSso2I8L0+VOtPDwYMGZjHmlkbsdqsydcAdYVkrmlB7zgw5b1hpZhnjzjtZt+GHDuRnhrz/9sKjwsjTdLF6jIC+BY+qqkGl+GIt2YspV/Pk1dXHDXU9Rabdw0f04XmNILHO4bo3w2WYjo8Jx4czm2Li64QSeoj3TyL4BnvM82Oc9nCN8NCI8J0h9gr4I1O8PePBXhLZIssq4rahYKurkJZzRSed3BPMaXAesPh8SlKnfK/Lt8JJMiQ/yUdkfA2p5Tm218/tbV4rffBVOLPsy218rePl4/vnEiUDegDXsVy2C7J57wbiGvb+8lV11jZe/dG9gagUsZ4g311YKJwqOOJ+f4FTSqO3sAV/ebqL1ETNI7qNGxw4W/3LsqH9WHyfLb8i2v6I656IutrEI6MfvZpdlCfpNkr8mImb9bdmf1Z9Rj1hKLEDC2l8+6jW6hjcast+3vpUXuFU3nd0Jaxswd+lZnEqDi/2SHTmyfZBuYvK5MU67Uhw7ZKxJpySrLHSq+O1zbHvqkfBIO519MFg0HYLho4qbrW5TyapgJx4BZK0JW+ulK3wdK6qdb0YkyaLg2LLfZ1vUyk0xJZdZVQRyB3ywaGRWms8EW1RIrI7ER/lHBXFmYjE9HZaNPcqNYbfC2la4zze7lVvEVGwbPDxmNS2HfywLcLzHD3N2WLH3FqBdMp2TFY5KTUgnT2ryvZ5ibrn/cezaU48LiwLabDttRbvT8GKSBOmZk445OxLZQ3ZV7KogQPjeJlz4xX/5D/85M/bLBY8O99eDa0Z5bZYBF8YOO/Lf3v9lsAp4M7wYx04sOi9GElXGyfJ5zkolZVy04PJr433ysrhW9WdcXYe8ZI7TcnkPoIBBSu7wWHn4HnGJjE7heYHYjFJVdtEuc/GkLY8NucfzjaD6K6bdV4nFzt/S0kzOC4CYSHPZIRKl7jF2vZcgsq0qrwtp9fCv3+Ve+MyX5wy5JzSIa1UW7RP5yioxcLeLD62MC661HxpeE4naVOKa1nJ0TXnw2x6Zuw6xRBYD1j66VzhWnzHIvkrkBR7xydDsx+/5/eff/yyuvvrX9k1gWrBqrcOcsnj8tt7Cwsu2HnBZGzenc9npCsALeMhS5syNTYOLJU2eGdadHuzGXfKQZ44iAIzcw7N4/pjefY5IRL5bQupqgkT8IAX3wi3+/glz9nLFRpFXVqZfQS3Xqn+FT8kKCx4LE39pH8eq3QYNr3wPx2l7e/UyrqRP3yd+By/x5fMMs5MpPHTFWltnodf/ntx+fNDDEUyF2HwRP10RHAa+zHFfiDs0Na+ZRV3o5WU37jd3PZNaTMC8I1pwzUlj3AEP38Mh4T1BIuAi6rrnvI4dfbthA6pwR/JVwvxqi6tfvo/MuJjDlfy5Os3zEJfd1htSd9lWlvB6w/3/nPEfG/3Xufsf+ezGtxu6DZd7DH64XVf31H/kwh9d3aguGusoF+fFcGXtW33M0AvFOhVJMii9m3jkhIaBGlGlrwRUQCzvkTsR1m/PxnmXd8gjbpg1drIbvVoPMBQVd26RHegh+poTj9zVQG79UODdBXA5LRYkpyF4f/frFXS4JK+7WeyTR6OoHOAfvGQYF3f9MP+AApNpt020B0F16vqkfnSeaLgoc/QL4P/amJK0nkqjnB3iIZ1P10aV/iXDgIDrT0d+0vNmOpkV38zA0dyDK19vwJ+VpsnRLTCAy+nloU/ECd2r6n9+n29SesNq93o62vhbR67rGXrnyrlnXOlU0sbsogNKDIb5I154uCJdYaPtxAMy5oJ9sp12TMOaSx44PWQwDkT5btShKntGFN+z9zYMuJ594RJFNW7DE15IOZOhcn3k4AE6WeN0gxVaqamhJ3h7SgxQM3Po4QMdKh3pfIrcm6m9MbgJ3ILokhVcl2WghK5nVaxHfvP0AJgKFAYCtZfXMmCui0m4ZMRguqtwLQGk1nt3dOYnywDvnZfBR6DTlR5ITuEEVQN8hNPKVNpS4AXsKXT6xvQirMewMIAXO6yKYmvHqgNUssaNV9WbbiWbrP6U+A0iGqChFpcsDQ1jC3kEUudf/15zDW0zS7r+4N0his5/GsPx8ZK4nz76o0Fhye2fZB+7DCm0jVmBD9QMouNDi7dGapK0DDyROdZAEGqikvDwqCqyx3u+Z46D/IiYxThfnYa0iDgB5ip1CoLWYYSwE8FaGaGBrV5LJYIoYMzOXtQn4FefoQXgEPq9sw4NBDIci5cbusXFHnYMR90H4kN7mrGD8iHqFDE+XETSHt4x47IsZN0Veobg4dHBlOc7HWu5cMmdX452gQCnqOP8fh7oZy5Nn9PmY1p9PGuAdIVJ2tc/f8YD8PuXq7fg1pq/LAesaW1mObQABpQCFf8VCLdTXYPWuCsCuzzuz1BQgBiUMhFPppKctthiS6QXEOs1henEUB5FlGDqqmlKJtWNjBj26SDo6lne/u2YpaEe/jGh04kEw8puW6SViKT981I1LSz6vBkVViJT9j1sxYmeHD8i5LGX7alJgARSB6xJRFL8e6Qei95vB24BsMHm0KAsgQ3GphBq1mgdcuRO+7xqmCpKpi4vTyH9TQ7rTC0wwFvSzB5XIWFLGZMuZ0LWgjsMjf3AqVWFUfW1SolFz4dCdfUbcb7vWZsAVLfekrhjTxYR1rtrM//+138Spf8//PCf4DmCj/ADnEPozF+CtPydEUSo1FFj/BWSjT7ZRrJVV400TxMPwLLvnUHBxAOgp8Q+qaRAPABNZqaI/Y/zVWhYkHlCZzkTw/I0JjU8HvE5e0PVoJZM1JdofjdKQUwjHoBDBIZ79XvnULq2kXdhwuHYACChDzuKISDhvdjbTMLIlFTmEw3t0EQSjQfABg8AIlXfuds0SG0FgdOxcd8fAKKZk4EHAOKSRkbT501EI8rfswYaxEs9//8egLScaSdFFTwAjSHQ+5jaeADUdGliPADgYWs/4yOARGCXX2C6g70NsAs8AOUjU7kYT8tbcY0SSkQlW78/AEEQdozcFv6G4laE6LFodFaSlzb4Ah+tb4AHYDUaZ31a2s3IAJXbsB/hAVAMATeapquss4IF8VnXpgAPAB1vVIejXBF3PpN/WQU4ceskjLTfweHeMHEFdF8YxbSqjZ6cWEMjJRs8ADgeoYV19sMmSohO4zBo0sRJ6WKKujoBDleH2uPeGBUGtBweAIJxgEbYb7/jQfCsDbanKBktWYQHYBHKhq9BM4ZWCEAGaPn/+W88AJARhl8PhhAMgtuDH2sQPbOe+LoJ+huZzD6DByB5dUY1HFiamg8Osdb3MJnhTpwzrlRTInS+nkSnnJ3kOIXRoK7zR9+BJbPtMKr06bSlJ7hHjqvZkE8nBZ4uTZ6PpP3jdcju3yWS9iYL1r0X5IUperu98//wTi8OH+ce25wodCdzLiRrisL6psAH+gYaPhqCaDMoEhsd01HzT141xHW3A5f/rFXnpYC4JT89PYYKau9wa857CEjKp6+8/ARdbtNjdMQsAIYm5wrhr/3nS/H2W4tNPE9UN2ykKDIOVB27ZATqSS5nEq+NtLGsEeQA5tpHHJwY0oAXOPRAX4O8bZp3NpfhHdst2rKToah9qcrrOhCXfksFZ+xVDY2uN7ZdNwpY8tOv3OHhAMOaA6yobep08ukG0dlMoORKil+B16KMRT/QhXVBBzOLoqL6gYT0jQo0SPBgKtDIoetlFRvxjbOtU7bNSZFRbs8d2kYHDrsvdaMK/A3eHG93BtPt3di1d3oBqtv28QrL6dTmE4m1+HoCYQZUGg1ygZgLwzNdaX1ZykZ1iuLaXo6luyK9B0wF4qvz7qviTfgIuPVz8YvvFIAJ/voeCrPuDvdJV1yc27kLF/6NhmYsADZ+PAIjH4iitndbRN34s7pzzuP1dQaN+uBQzl2tZE2fZs7WDANS2l9WiQg/R+qXoX5/UhzW4MG3qLA2w67PAjsSKBLOtg3GrpO2MttrqnK7GA9HdJCYT7HZFi0Rxjpl1azUx5u2vyhOnJ3wzEAfCwu7i/iJYpbtSvFa+HgcZ9y6Y2c8fBP2h9jv4/Nto5Ya0+q5SDuXQHtyZnWGm590FLHKokviW0So3zcz24/6/fyaukUzqLj/ratun4TNwg+OriyefYlE/4viWecd29Mu5hTPnv+RQFvPzn5Jy9jLlljE9MhV0nm2wc+6C6dlfNsKdAwGiyyK7onl6PX3bRC7rghMZJWp+SzN4ln4ToHjNMIfhE9IPUhkW/QMeAEPFvaE9r1FssE27+66p7APva6re+brYRGjYg5is63jkKvrlETCSvLMIGPR/TczfDA34RrxvQQP22yKuV8t1yKwIUw8aSGziFEyXhrDy3EcEtvPYdFVdub0MhFSNnI4+EccD8cWYjeGhpoutOgMjm0Ri4dYVqykZnFPEI+VutfMdSWb79uaa08JFuEO2OOawTEws+45erDKNMyWJhU7X/2yKe1LdXHim9WbFn8uRoWmfeHHYyNjT+90xV3wH0Orzf1f/AdRl3Puj8ZjYzMLN9welQ0efduF4hqvsdFcc5123OnHkQUDHs7OtS6kfmGSy8VKVktxzuNlEBBSigdcV6SmtnAqlZcmSVosrF5FPmfVoxfTSSnIK0pmMd5NVOlzq8T3gm2zMCvGA7P2kvNi0/OrqUmcMjKuybKQTYlXWmQjHDMMQ99B/tgT9w6v/Dbeh8JHwYEtxakI+EuSHEW7S/b6Bsdw2vV1myQtzol77Vey2vswAjEvDI76j/2KwWWmDRytydRAvBiTW2+Kr1wt3pH2yhm1+J8Xz/9cfaW6GgF/q/Z2QZafTb1tFRpQ/Tq98ot4nfbjKY4t3HqaE4YqXzjs5nzrmzDsKvexszArug6wgzArFqJIJgoNqPKOkZlGlNCMJ6Rk8drchmf4o2P+c2v3DbYRsyIl3SJK5rXLvoOVXgYkN2SfFm7qVpcJq6bU4gbz/Y7BWZgV7fL5UVi06xFWdhAkIlo2v0UE0gV+TxH3YOGjxrEoXqNieBU7H7rY5rcJy2egV7nlj4wOer3dPG0RFMTJyjMts6jysJg0q5AE1fMOmo8HJ8CwRc+L8s+H3NP11rE+BndABwtgs/ekofMUBLvf/+53PgQQWHwFP7/I45euJ42NHzAr3h4d/HD02Edgx9aMeszccbs2+MFr8LfuLSPX1ogO1gUQi069SNzp/uIdkXsCc0iJJpFquidWOuyI1FqQ5inJ8YmP9syoddhrpks1JnPaM5aZeJohH2+soA2iZNRZO+9Y96Me4eUMcJ0dps9mUn10rQIz0kxWr5twmHRVUDJX5KSfzfUONw/iMNZaLrz/q/TpT4u8YwvH/IcLvY1w9nKkBHwk5OPNgZ08nuXweJ2+ckm0sG9dqU1BRjuHBKvF5t+kT7vhkij05cvDTHVx4PQqAyfOi4v7161OXr3pjcPfm2Dl+Zuo0oftLLhYx5javGrIofOsCsL6fAuxGDyzToe9x3VI5krcop3lYNvESFGlD3VGmnQcpEfjYFF5CIpk9jlM7zTyrqs7NtZdZ1izttVhcqeenrs2tw0GZrud1wSq7uqIMmLRTgA/JojywuihGaccTmWUarqUJr4E56Vn7UHUmKmo29MFfaucaNau2QKqGZVkvMKhFgYwa+tAWVg502htg8PUWRWmvEeUYF9uONw9KnzStcitzltwDV5eO/s2rgpM6ub7pZ2rMul+frZ8eTi92bzDYa+5EhAJvGDz3N7cnfnCe/ZKCq5nAAWI0FyW1l88b/v8BQTV4HgoNbzcaxBkzEXdHdJnXZgAbosu/HR7yR2gHJacW+jW9UQ4+m4YTTiNHmguXbR5n8NuGPNcPK2upuHWFgyQrqShRwK95FBuAL9qSsqASKN1kWVtivjIif4dy5LBSzqSWmKqpK4ott3vxDAiKmNQca+uoMSiKyFGvCo9qwTso9KbOdZ0OKQ2Hz1cHuDmXb4lYa03CvM2jPw2HACUWBX4sESGgo3ve+SGsqvE0J6W3gRIQB+I2dRX3491T6WcsFHQDrgz8oRgva7ND7I31UW1Po6PYWxfd74Wry351l9XfyaQxptwFIzuBJ+ByuOw/NOdWCcRxu41T0o6joo/o3ss9PCAeF3fKQd52G4qMAOiE2GRD9VQjjZrLdrWC098zbFeVUwpP10bvb9kkarKGZYfRV2bsu1oA5QPSi5xkgpuq6vFZA/o1cT5N02BrKXljCkH5IArhzJMFehGz0ZCoFZRVgEKQENxSEPKCU19mFBYN0s1lG2Ms9IRrFJXooJqgBPobdlVQCxYxr4dRHE7qszH9mEHyCzvaER4SYUBEkImBcRrLJpOAgSLFYrZCCSETjGyxnaXfc1NdXCC7zvlRNYnALfrEFrRjGDZNCuAXp0/081UIQIUw9jqBWxY/suGuB+W3Hk7hg0gaLtAOYBDG/KhrRtmPsUelikaWg1K+nCAP49M94MYhIZ7JcCS8VYbuHzuyzCYh228hKSAXx+fOrH9x/ma8QMWeTSkLQBLDscQUzjT2L3EDTkE2ckedSUg35KMqbpqpc8luiQ8AIWDT+uQWhl+6hsSBwfTIv/Lw3p6qnVozlyCJpSTVtEYBclmlVlihrpS5pHZ1fPQahGfs2MZFKm0F4EFVHU9t0X+47nAjxWuyRZj31762CpaGQkX5OPjNUFZ+zJ7CzBcjEGncI2mX5Uj0CEouLGaVAEtTowqfcCzMyetyDoKYF8ktEJxQ2WMM5xRWNfsqwhlHTWfrAS5N2x2QFzX6OnF3V9zDSeoRk5DEpzyw2Dm2OqHO5572BaZHD3KUvaUk7aRKgjRGOuATk58jFeavP38mwy08de89a9hqivQ/Gw78yBihXUGxpugMgZiEGGyM04qwhynrnTGypSEeh5xcL47fmLsx2O349wWBcSOHI7Vc7OsO+hI5J+MVP0v2yEC4r4GHan6+rorrDB7qWN4jQongZ+2hZ/3PULFn3YCGDgeXG9kmXSpVitClYwMCy+sKQQJIXfc3w3/F7fh6FPkx+JuvyYiVIjMEFxvSxT9NCJiguHV6kwzanF92q8AcoAcDKmvBIlxJT+2ji7yQ3evJJ2OVtP03Mo2R6bJ9EH/t00wbJYc8d1IV2cwzvLH5Uy9uHejF4gEnFG5vwpR5Ave+zYaiRxxkX2crmoZ8O7o6278r4Vbxt7FLUKaCAF/b73e66PXkGVB4SrbTpuOEH0ZGPHqNOsVzutM0OD/IPA5FmQSuaP/tKmSql43vzfXW8/wOiEHK1FDyZJ4fZPFyQ/O197QVNNMe09k9mA/u7rHhZBpOytP21A1dEE1cKKg/D+JqNKn9tAkZiT8PR1o7NhGUUW0LueugZaBJq6JtyEbHK+o36hoFLDozjG3GqaqIT4BfloCVvc9tiuZDCdWSsNxGp7rKd8DvYaqiqv44+EA428ezQZinawbgUdWExr454kbBsr02F+P7cQbRQT8xfg4tJ9OBeAd/V2SrUCj4MAlCB0xjJ4etp0CHYyAotadWFbIs5F3BAf7+uCcPaT3bmCxvdG9uhmLZuAV56/ZZoqJkyyxJmAd64MrVtkok/2GLACsh1TtNSQ2VY4+UVF5N3meAdVPohFKV+m9FDNznSii7T3W7RbnFvfv5a/PLVkU0PUWEvIiaEMjuGuqBBTgQK+KooI1UA4ElgEoBxN95WYxSQB7RbhTi0N2aIEuyrR5Q8bNZuQyaVV5eKbPgHAWQJ3IrY5SJFZjY1ulwUYhCOGMcN/eXzRcky8NcgrLNEcT/S5xs7VNvUOUPPZ212vOoHe3m/u9BMHrrkWxw0+FbUbuKu7jx3hvz/1rw6J86UxseY/5FNdjEkX+0f0OLWhAcamV5iSnaW16f1U6YJzpFD4qXa5tr1d4WcbdX2gURkpHLb7n6ozdAqubyNTjmollq2+tnpAGRmfoR95kCQd8IpDplbb1EFQDEXfITNdPId0hyc+uR76F6/XIXsX9Xr+0tiAiPgIBf1T2wyUmPOLaEzs8Kr2GF2M/5yH7dYOlPSNbmlUQjzSJkLXVGDwdR2mnuV15eIW0Ua/OMmScz5ky78E5sAMit3D2c6r3ZOiGMduko3KnpWGdQot77tryk75SaF2eyw45VOqYKbhfZnPnCvXkKjHSGKAPxFM89rO1KiGGbdKnXbdjQzqEjvfsjQoBEtjSdfvO7VFhm4pYyXivB+6Abrxyn0PT0nhdswaOZDIDTpNKBywgNK9V6kg31jHGAnZHrvaMaHFoDw3rke/38LgsVpJrB0mr6m7fvv9WNPhH16LugOUoLb19585TYbC2uEc+7sXZYq6CEhqHslDr0IxXxdV7S5QjbdJJFTzfe9N8tMoXo37f+UitIJjWys7H2fKWycDAPX3CKwawXe2TeT1D6ubZBd6HRdcGP36UNcahj2VXCrcT9fv7IG7QoiT5+/myy88SgschOhjGsDvn/Aefzfmu+QNbeWbbyNxrj+VLgBj49ajHlkcJtkNRnDJTwLb2JFa/esUK3HNF2Jf8ubr2VDFrErgAFNu0KrZ5benkNvZ2soNW5BQPrEjN2ZslKKNlsaumwKNDQn9Pu6DJoMxqoIGXs2I3G9dwK06CMIZSGNMKScwKC9GW8YSEZ1WcIEo+O+pItWTvEeeHe9o5WaawQw1wA+8dHrn2K7b/9+pt556K2pitbCyAd2RFoO/eJE6TDaBeK61Yu/Z5FY238Q7GXfDa0sF1fNQpKduTI3jx+OXsKzCjDfBi9rNlU3sDHYeCOPnMGEkFfs/7U1aI/XOi6G0jr+H26u3wj3l2VDR9D4sG0UBvlH/wNzDsnjkG78LIwLzm1bFPNvbH28Frv8LiZlMpwQJStkLu2cPinrqZarsXdDDcgaiViVZ7nrNSVsDiZton6dwNdvApSdkKEA3OBHvtO8gNpnXy85+N+X/8dfnyPz7wri2q8np6mT3y7O1Y0bM2ThYt3evwNO50A7tvRSp34Pud5tTbTEhiSD7NQcKx/eZ2rlMe3KilBQXKqMV/hIR6B9djAObGiznSdIo8t3yUM/h2w+2u3wZ5H+7c2XB/htP4zB5tTDxuRXiuOwPX3JMT9ftsdDS533MUxDDk+AsTjL29f7v7Mp8Lrkfd7RnOcuAFuvZ5/DdNZx3XZrpn8RAjBE0gEJJAIAQSgoTgVlyKa3Fa3LW4FBjcYbACLbTUqAt1d9nKrbt7p9OZ6XRkd+7I7nm7u/ef++m9fSHPm7fJ83vOOd8DuJ1DOL3KvHOrVSTYcjW/bVq96e8z5p+Xb0JZrLl8rzisdEHBrXaICNfoEIbsco+MGi7hVRbmu5slEvX7Lv7rhYrTm1avueMqTCb5++fHCoG5c5jdhwVkFfqqlAurNrg3uR/mgdhcC06cMIMeHumWLWTvyfSy2sAXtOjb+ucHC51frrvXu8+TdxAfW8suCRtOWeeLuzmiYf8myVNnYQ7Zt8k/G73+Hib4zOatrI2z7AsWpu3NLAM9XIDPIDczLOCcdZZtN0fWKMkXn/MTBJNsE7zem0tfZZZlwu+5Mm4sjpkhTN1gWdv7TuT5Ig7FmhOcSz7199a94PK3hDpYzvkJYplo8l/JSUR1cdE+GQeFMoUqneZpd6LK3HZwSir9w3y3PjEvNxOHJawXJp32jcTHF7Fo20jcKOAFrOZFGCIjLHVzhMUvPcYevRMFvHv0nxfiJzg3Autr8a557/PI89jPEhSYVOQ5xAqdR60irY7wSuoiE/wZ4Bacc8RJ50aExHyY1J0Hj15BWUKruyelwtik/wqS9qjFdzNViPu0VPtvHv2Cb5T4Cx+mfgeDFbH/P+rVUT4WXbWRYmycl+dpUoGg+pWMAqKlTfJQ5qiLP36ceodrAnvejaBXBtHGY7/A3G98c+UEGlfIrV5JkZEqmtq3Lh76kcB2/p3034sJxPH1PcftNFNuDfsdoKKyH0n7CDr4OMkwZAFXzfREAZsG42xV3QNTnDwvsM/q0bEA73lrgqnTlbrRjETWtyLwAlTGlRs3PvowtRwoMsc+Ok3zbGr7Wngp3PeiSp+OY0P+1R588W8+2Pwxfmn8olBPhgtdJWZjRjI6+ilxwAtgwAHvp2sbRden94eR7wCcpa1i3wHJzBRJ+wcppkatLp6t6Oi3W5uTDUaQme0pmbUSDY5v+NpjtI2O70ZtnioitNIN/hQTn5vVHd/BzR8XJ4uDKW3Fdx3VN42Rd5kL2KaBXdV3IxBpEAUGV4hOVlOLUlxO17ZIeXDo2tkYtNupKWzDyJoxj4fWg1Bg5IZF0/C3HrNeZRqpgNIEYz6JoTEr88lTxw9GZ348Cl3iA+ptArUYB4AXoKhTHEdZ5yno2tvI2i+OUbF7UEfsmxhZ/gqaCxVQABfvLXmqquqW1c2hYFShjXCOgMmGdgRbM0h6yEiQdA2wuU988QjphHXvph59Aw4zZIUK0J4laKJXN7Ax6Q94bmOCH1EcS1iVHPYH9GkwUR8/9QXZhUX1h0cAHPxmKVAB95B7Di0o9tDSIJG2KrYaqqgYbUJGAns6pOZxxL0YaN4dCWS15YOv/fwZANsyA/a7AL2F1DwhrYD4RYGphSquavNFlcvqPSD1YqZwgVFKHVpAe2o4TUlPRQV7Y6IvfmaG0IaACqDACUV3T62WACLnsBvALGUoR94/4LUZgHsMzx0iRzKEcVRUxDkIhpB0a+cCkEdCzsa5PRyTYdzhkfpAE11yGPtIJEIEcIdFoY6D9FB2Dl40wh0moSIZtFcaRjYkUM07QErTKewescSmWymLvTdL18Cm/sRED2aiRb8E+IBusaKHKM5E5cltPjrRDQJDR76MGSDfddA5gg5bncUZ4OgslqS/70RfCaGamYHjDErYobuLiUJQFmDZhCUOeAH0+dYNIXIEmkLAXJ8GfvDMjR7E5JfBHWZgoMuAhBeB7aHD7tx8KlNV3QUdkigrhexnRcZUR5eeg7uOxEBqvhZOOcuDEyhZUmaYIGmPO1I0U+BIJwI8fAdjoiu1GcMlNvUfjl74Bh36j0Y+1MLpJYkuXsXQhXB6DPl0gCyCsz360ZMz5w35T4numPilPh7d6e8SNxvD0XYfLbKwZHpUd8zi9yiZsdUQvzFK/3wIoybRhHIXzwFY0z8T2ITB00OlxHifz9rVp6vLEGfPzPZ/LVTVpeCFixuiQZXWBF4A9k3Y3fz25aljgjoY4m4HubGVdVkPOtxsQeysOkBjT/l9DBL8bM3dwGKrIxomoZsY+HiMfLgP3TQUi47/1zcrFh17SMIJAVpkkUhTNXh5DHA/Ig/XKIETFHk4In5Ft83d2wQnoW10eSkeADKJbaeHOco6I1tCIZH17rASYnRQ3Prkt0FMHIWNqdZUDIj58l1MXag/6Mkh0BHxxzCZgWx46RP+GL/sKm4UBvnQqXfI9+FIIFFipkcAyjFqgrTw/toawMl0Lru2kqGAAS+ACJVR5EJuujYoAJlBRyIhPvruqEI4T5+WxX/K1FX16blxo1cL3IfnWAAY8I4h3RIKAnZb/Kz7TWx8KvxGs2jweEY3uNspKasDCgFKAlnswDm4GR2vSNqHVlCVUaV/G+dwcR+nnKFmaJyfNn/agzexx/MGjpfu/f6F9/vv/wmdifPi4yLjRQdyZO7+NCUAPT/0GBiPbfZOPI9HbecWoZkVeA/uvBM3a1Gav5J3f92KpY+WCQ9vNvCpPVDMB3MUECzzvaWYd9acefLf/0aC5rX5t9uhcd0VvL9Vhr7qlhIvqLdiO/M9q5joXU703hahrkFU6VsDbHhSUb4qzE7vZJ1QxYoBYZ5TvRN9+1eCef62NOzfiaQ9PX+js9/5PGODzfuACtBj5G2WZWzO87H5+Ilj4hEYWFTLOfgR6/k4I9sMmWQdqvRXqcREngxKO55Psen5QehTpOpTUSQKPuDA6DtQzXGw1NJyJwkrzzMZWRvLFaWR2oYEXuA4qCPbvFNX5TNIJ0/jtBFC5XbBtR9Xm5adbePmg3WATugupFtrb054bwbroOel+R/rbNQrbh6b6K1F5vWwUN0SD3AFt3qzCQWoAK6tv4oaDixf45bc/fHJ9TVephYwv02WwrwXlXTxv++mGGLR2ulLTDeVCbOPh2nqPxiocUOpU+lW8y07VbXibk5Nbc4zXtR72/yhowYlwtEzg+jFPtAuYDqqwu4vqFyVRe3bmKOQgO+Kd+32TmVSYTQvJ7H5+ea5EbTKd0lcCkQzUzPx6344NtXht8+RWszN8T5xb9072URH8x+P/pwYX3n03e+/fwm4MdHx57o5b1YOH5V6wajfv2HQe1vm3ABOLqXYM5idHOlbyQ0JOfqSwA3fcP6C3LlsZmqi33E/X47mmN7aGV6GfQY583TJ9TdnfvsJHYcXk9Bz8ZfwSe6bZ6WTuTW/JqG6D4RfefnTnVf59jnyLY4aGbwM72CSpJGXFhK097hdak2nNNsFelVDasjTzXN+7BzWsG1WLDdH3hlzfNpTXi6fLzLoEAXLW8Ksifp9kIoDmwNu2B8c6/0k6kjElvSl88iM3+76sRO8DL8Mu8w9InmIfHrW4JLsBoLTRV2eIWi1sT6VKMvgtyMHwW3wa3g6u5/PAoHLV3+AUy7PILlPy/xCco+4m1WVdCpaytLhi7t+/XvkzhU57LqEhDZujnPOUyJDnmO/e7Z2Bjf3hglB6y12vrqzHzfKu9pB0i6aaA6Zc9wVJM1hVRZGtgh/TXrzX8gjnflVejpKG0AC1wGd9B2cN2/O/IxsN7dcAbwAIidBqRtK77gm4Ua5oYSm3L5Da/NtvjPetc2LsGjvgj7rRlFqiN+o49NETywATk9RMejGO6/KWTny3R4OsdwMvxkKiS0dnc0DTxkg8M1XnUP4zih4OoHG+xf12Lw1eCZC8uxIPBrwrufRF+eOgBO//77i0qWjU7/8fv/TVIdndb5k1C+E7Te3WTV25KjnCw/3RnmI54Tx7KmGIDmvURLejR8cu2gdZpMR9PqbFNiDK+1ieTuxOABDMGNAnlZSl779ddIbwZPF6c/euMLmt31wvSJNcE0H1Os0qSuy7rG4ZmWF9RbnZnbiQ2tqjjyNN+wPDEIIr9wu8/KQH2QYa4dq+2Zesovjfuc0tnzSXSmYlcrNtrU6Yt9MECGoOX6psi09676MTMiCl134paN5yvtDT9xK/HHl/XUfEou9pzCgB7PwYhKAB2+WTQT2+lw6mohu2ohueQgvQ9kdSSRv/qjYpZpYQL543j4NYPOTtAz7VF53RHgjq4r3JGXNs6Hr17EAsB+GSgZaj0NTY7P3zxKLFq2smN2HG3X0ea/NDedEUbdH6GH89kvxm58WO/sBg1F/0L6B25IFeWlIeubvn/7rc8l14aHBNZC+at48i9K+KIUQhhulGCq5CELBmzNnan4mimSGUEKz5lVukAJkduUCvxDRp7GiLX4TARM+m8F+cPbc7e5fycICNBx3hRwdZ98ucom2bxYVOOBGNfOd54haHlKau4s6c7Zf+Me6+MDaK1MTgNcb9PwguNezYunYZlnBNqaPyZV2Ue8YPifvcz5AbL7w+40RBNW/efSn8PlOHFNfGck5wNTS2LkFWXcfoiOm+qaNutLZ7JrMQmC0TAS3b9qs+M/fL019t8xYy3GX8JSEgk8q70tXmGZ6qxoFkQna2tt/Kvnrv5engONf89+QujelmP98i6CyDL15EGlGst4lpBapQp0JmLnCpGqc7+b4o4AlP4Gz4zHJLGxtsPQ8auEkVAIKoG5yIDVxbZiZ0vEFoUqpil3+NlnBTQN8dRxE/f7Sb9aNcb58hD/muxvHPt5fatPbD6stEqc3pybwdaZ6flqo4ou6eKskLCBw2XefoKFrqUdkCXZvUya3bsyxP9BkpmR9SrjLnUbOOpvbeVbfTu/8bkG+hEL1t6pZT9AGfjwEg0KKdpSK8MhxEqAADUFn+6gARgv7e+ON87bxL9008cHnPqfCUssYjgRCJmMeiMWXUOCKXmPh/CoSPp6r3vy4HF+FP5t/u8bIdPWmpGu3LAisjGAQSdq7qwU7Hlgs/vd/X0v6cXWKduZW8+/X6MSEPU4beuAVQ9q2T2jQG2ictzngxHeL8K4d5DpiT2nbJGjcqEHpOzDD32aipevxVLhrVtWn9soI3ml1Dck5UgYOy01UTY79YmAAvu6NgtBAHCc+H7+HSLJx0dGuPC1sTt4BEoUNzCP8w4fP6MKnS4+WwmC09Fg/0iPUoksnirSY8I6N1/pgpyRGPl5Lg5aAfDx2ZOpx2PnFL1rx6NPMo3gbVSU7Np2qi0B8x0oPcIyaRuVNMTo6RMvI3eVAzL5+sh0TYUqZ6z8WhNHn0DV0npCVn/KZcEZRZovbIxiou5yX29KxhUwIeutFgr2pMgTOfz06k39KGXqVI6AA2BTrbSXqX4BCaj6I8VTZYd9IESoEgau+fQ//1fNpogcu+2WLjv25bBnks5kTqKE06NvgGhmjQrKzSu12UDeIH3s3FWpsokqJ8N5voqGE8HyOtRkJ8gLrIc0QhKdyNIZgv7lB7gJNg26VNtxkhGKP3978tNhCDdahST0adlfZA1ZmoGL7HIuHKuNT1AExyARthwioQ4qqn3p3L1CVEt4NKABufS0BBYBzLfka7gFR/bnYQgcggYvrASoialIG/y/gP0hQDV7/mm6qBpqx62UdHTU7q5b32BeSNObgYzIx0CpqfhGKUEnclhFLihJASfL5JlSyWq4EGQuTmgb/oS7I2rMzKPphkshhwMRpQZLQCni+zMYgsH5mph7b1GV/HEMiHRNb4kFLDLMRuzEGoR7o3jgYVZgAUBkDWsPSeLTPIC7ikVNQpIV5e/8xPFFwv/l1RygrkxNQpY9xS90Es9+yRQQmjngANE5J7UjKqj4e6AxCn2fTXtdIC4SL4G9bvfxbdPkQmXrkVM58b4E/bn//GUqlnsZcgDHEEi3H5mpLPAAu85jj4JhDmgiCH8M/OhXTHUDI7F19GlB/AAUgA5a2QUomgHOSxJUVGATiAAVA4W38GDH7fbNi3acJHEhgtAn4BWrFUohBPVBnTPazSdB3GBLMfhjcMPvh2dGg9oGEoAwURkGDBPKc7lPZw1aQA9AZZAswBnpyTIBOpvv7DSPZogYoQDqRUmkNGM0CF842tlyMZ1X3eUAg7ml870Q1CmIJMSgOY5bx2Mi7+7glFQedLdWBHWcGbMjCsqxaPiNnBfNb0mJMAinpQ+vdwNq4+zMqY1DIBAVs9XKQniAGaRuCZ614VqZmqBk1MBCloqTL3BWgqkqksI5+AtFfN2L3eAXGbZT2HImkQVmubrZmaGC2lT3UBew5tCPWUUtXiUYjdVxRNY6PqxCpjuEo4mMHGsDwT+RP2Xf/WgoY49ThzVrgEu8ehx1M3aQ34OUjnAFcWDnxEWn2sTERTn8olCvFBR9xqeOcbLMuYfqV71kFweXBaflaqqoxc9bz+aMVsHiduAS0oU8eU5SfZcZQv9JcfYCiShEvJOGzHi5f17drFsPl+/oNdJ6U1WuSLqP/9Nsfr3U+1gShgCIKRXOR+oHE9gN0Kqr02Wf1aQyNbewjpTFks7OVzgAsM/okIkYEavEPBINqQDPzfyhy7GPQiZOcm8ZoGr3Nv2ITH7/sY8AfGEdWXPhEcBbjx+o9F9XHo1ps5sTvK1YsLXrqeR51ZJQDft3nEeHbudv7gDKV3rpKsUHCAFixGhVmFGpEnKeDi50m0NPZa2M0zRxfBvTqUtSVD8gbV5mR7U4Oy9cikKR/3POl9dfjq/KNFAo9wsYzDqgXNFit/Ajnce8HBPzjQdvh//DdinjjK91+wCWou1iKTgHXZnZ24NqDFG3TwZSaQXg+tR88Wf/A6GvA/xZg+RY/nnm1ZjFOy9Y/gTdN0yuhRrNQkwzPdMtaEB0qnoqsmXBUf5x6cbNfHXhP/k0DLSDfQKayo5kRVAOMtC6gGmD0VL/SEUvct3xbEregAh6lCe7US4+8vJUy3qde7IuauZfgWFJF/f4WDwfH3d6cDhvL8IcdXP7VR496vvBxTYXHXDHHb5elS360iNdVVEH0+hfTfRPUMrjw+hAldoIBZlxRfw4X+62x+hfjIhwh178M4TifE6Pm35PXFRpnOZ0rfJKS7qZ9DbX4QAX8lWT+efXgpmdDgKim3119qEbQVljouzeRc/R5UQUz29MTQ4pkHvX7ZH9/RgZH8RY1/5VstAna+m5o4NjPzVZEtMtQ4OciHk3kwOsTwSzgeR4Gs/X2FKdD1aPIZ0bkTZADvowjcl1f/8sl3tQvPffuvTiG7MUjnHBwQsz8w3VjebxhdwfHw3JBRp9EfKocGFsx0KoB3IKIPEdi0ZNWhZFtOAP3bXLfl8iZ6PeIoATzsN+y9R92FWYgeL+1nOO9X4yUc5IA6Fur/c3cxOc99Ui6eH6pJ14M95JNPXiyPP4PvRUeXXxOcF94+Klirvd+iX9Tdg02f15R378R5v6zfVDnfQl8O+BtnTH/Va0QnFdB0s+gzb5OQiDfzXdDlUD+9cXUcKLBR9gPssNTjziDAk/P3dYOkt1yQYdBRTh4yFJgGfy72Zzkpnx3yCz2u6zz8qo9uZUSB8fRNNIueI4QUq+FT2mLfTFlP9/7hxsj78Zmvlbp27zzdN5f7DeKUpguyD0mB3mXPhxtnpuTe+6G3NOXzAmGj8tsX4D37Qz5FiaEirqkAX0oLa/SWAtb03hdKB91aOdduo2R65eRgNvABLgEC5KhPanvk43fzmHtMQLeGGgBtR2CNz9fR2r+OmcH0AI6aM087frk2YJUdATKhwk40Lv5Hbr7PO3ni+Xz9BBOZbs0Wb9OkDofFDS5FVJRsiK6r4AbjKTO0/0B7PkBdldfMLd6N7o70XV6dWLqqnEzt6uLf2LsBQ85/Obnv0zJ3p3wfjEGkPUPU5eW/uE98mFmnFhAdCMrWLmxxm80xH6UAa0rWtqmB9VkOsiZWPQWLCAvVtDS6Ir6fQV7GhhtZge3vZudodzIc55PtceiucNteDHRnM49oEPfYYsaW9hdtbHcE++8c4xvs0dud4zctoG8hESQAxhotxP99j8EBxqykkM1J2daPvTsVVLN6c6kHRZwfe1Iumh6muv6akj68+Ingrq6pBad9bhRmDPv5JacTlbUhbVxBo6wqrbuZQfsC2Y19mVwqoHRZm4R+c2H4EbhXYPGlQV9bNovbcMGeU1jMrs9K5ZDvNP9AFnPd3g3klwct5jnGISqemjZc6+GMh08DjqduDdm0/tcFPBwdll9aKz5QY8I5uxVgTMd6Pe4YuG+UBMX90anHGV/kjudD/VVycFjpVN1Xp7J7C6uAqiABK/PTq/dIvWQtE/V8jApWnRUcLv33r11X8xnvlbps1G/b5DnUe1UHZGvl3mHg/p9i8G7qMXffndJ+lvzNJxzpKsFCY9klkWW1jllhPnrFvXLPHd5qFY4AhXg4KBsvYsz/lCskuBF1O+HIRdo3qAUTrLW8BPcLjLJwwJiHcJxoCULeBlqEBda4HSwfmwRUvNTxqEGoQ4Nwh96ak1msWiTUJsidW/ey3VL763DoivylB2fYtHWzLzwYKduyzy0HQv96O56VlmJ5tPiPubsbvNLtaHGoVre3FGxcr5/tlNbvi2A7Tz2KXcl/6Ycp2Fbr7LSafNUBA/FrWnmgO+Du+I00Bqh7Ehli3CE5WKZ7QSJCDeXN97vqGEZ12F+2NGlz3raPEQpXMOSFCQ4ElU26Lbe6fPq9OWb/ikp+Zrof+/UNnh3yZoFAWurr076atyoTastUPEcol9Ik1DtBaPurfnW7U4FDi4IUIoUG6yVw/3BOvDPB8OO46zloRzuEmLeaBVJ8BGKlSOUJAw5Fz3NFZJopwKXcMI3Zb8/zke1f2dX8wEUiWhU8LVMCPXnRsFOCkBM/cc8VKEN7QxpRE25etFtP5g0SGbHcydtyfp2qyqLN5opUXGNKq6hns8A+maJ6epnZ+A2oSFpv9uxH/EAmKv6gULqHZ/DYSyFKIzoNwHBF3UfdD27x+XrgWpGycR1eEMsTI+nvUVu2DTq9BCi9TS6mHWuia5M2QZvCAMqg3JAhK668sMDxQeRT45B/T6as1WMTgbt9TdDdAGFETA9GYfyKQ7QhnpP3ABrGk0s/FAAmCg7i1/spMActH9ksw/CEdvG91eAWzB7cILQuBaNYQHqqPGOxaKZ6kAF4OAMTRQhjY4MnP1O+53FBEDZ5r0rnIK+hfacAxRdqlI+G0fyKkAFZK+CytR0jmWlDdjv47RG1F2a+e5Ju2WKceEka2sTGdauaDReqJBbW9kOwJyhZGLlTvyk2jlvR4oSvvjTprFbpIsbU88aGaI21PWyFwFeeD/wIIZMNlSTuukstzB63FkJonbKdhhiUpZog6kwGk74VrpDIEUxwEeguFCV7FYlJ581U6JnMfjhShBNYIhBBTwlYtQethIVs/P2+3ENSiaKb8YvUkVhBGDLKGh0YW2pAHK4ojoR7CgNpha40djVb740Y0lBiOGqTJeJ6SE8rZIoqwR2GQUvaHhxnW6iqSAjgSEM41e/DCfR6PrsvPYTBJ2vlTE6ECqC2hHwZ8Z1gcyGdlIT1O9rIPxd0GCtjh/8XNbPhEiD9pQEKB93gVD+GvOW7yhEKt+tLgjFjBi7ZKNNwD9IgnOsQVHoO+fJgBiEkEc24QOLPMLPR8pbs5A1XEhWUpe0I4CiC5C4DJQwwIRvzPQGLrMx2SWD/4aJZEs1qis1wnd7o78GJZ/8LRWLDGCUOroOmhDEoJcOWkp0Sc6Mh6oGgQogFJUVoYBlk4B1Hs4tJENkaGIfaSLTwDAO8TD+6vQC3ddQLaozVoyxpGmvFDIO1LrcSlv83YQduYMpOoYgYuwNM0S5Z8tFKzJoCVsV5wiyWGhzAQFOc5hnZzEgx9nKG9H/A8C2H/5VgRwuRYJGT8XtWmcmJhr9y0lGUJfUooayfTXVcKOkqy2w9XeRH8aIri5BTw5iSkp415hAU1gNDBDjaRYUMOh6mGhWhmrp6ubt9nah4T/5rPl8DEyO1Ud7ly4yMemXvTRRRWnUKr/9CMv0e3Q3bGN8JcBR+9ShTd4owB/Vob8QuS7G+ZBhMR0Py3TQcToEJHf5JF6ymXt7DvGXVGv5SlCXzEqvvf/pv6Ds/XN9e4qait3xoUaky9Qt5xN39hvgtRL2Sszz1RmAa2BeOQamH5OyKqcu00jN9O6z3DXaNP2Yk2nTkAHtEk6nroIYbWbpfaoVv+d4dvDOftxzBsuFRENPSnGl2E6fjNIoojCJftzvCOHAknSFnGeAaTc23l+7AiTdEyfWBcIj58Mn6mnp5xuGJQzoIvvxEUbIJCNX81RtAAvBRGOCQfGYsQnI7iiN2umjq7Xol3FMaDghaN4tMSNpJhwB7QStM0AFRGrqYdEd6FxSV9J3BeUOovS17ON0QPC2stwAZzc9ObTHFniBhD1paxbr6OCay5EAmaw5dO2WKXgZhq76hjTd/s0d7bP9CNrtkovx0QJUALHoGDcsmkhhhfNPZaERxzq7ZZWZIQQfdhhBVSm9CKaCmung97kAL+jRZ533RahjOO5qPm+mq6VVcayfieWtSo4l7pvyQ5Y/JryHq0K6MKKrR4z6EXVaDGu4enH7HPGxh+MQg7Fj4FWQlK03mAdbRqBCPJH7UKKUtWo3UvMuFI/aAG9mOMPFsdpp2ppJQfvlUKQtPd+q3HzSHX7rUfMWf1t6uIsfj2GpjG9HVOk30azUas58CxWDaK/fXqaCKv0QW/wlSbFgbtbExHqvU5vEQd0jz15EtVSv7T3sdNgjT3VWmSfX99UchNv7VWYrSbxBWB4ejumkSnDKWk/v+LxTNvGDw1ieqJ5xsa50gvKALzFuWpM/uck9FpV2fRpYwABInv7hiZxTjsp9O287Hey9t/TR/fFjy3ptiK/3LR59ShIzTlpTON1FEizcb62hYb3LPNYxQrWop5kH2cdk5xang6EODHeSgq0bql7b88n8w7pFyx4Fcosj/OlNUZ3mk1Z6KJRxailMAAXAT0Sx1uhzBx8h/e7i7YtLWGESRlNpstNbfDdHYdEJ+EsJF4Xfb7LQgZJzKCoSdZFnSlLS1cBUgP0+jDKry/NzsKS4uIOpYBWmJJkjFq3i5jYkOGetwZzFoiUOVEsHbwVdrBl5HIu2CiO72wmCvNyMvNyuOS2U6inhfBTvmk8F8a65a5jA7d3umM+QZMkClKzITdbRuFGtJHczTkjcmE+FR4b5LkdlZQLwIHGhSyKcefEwjPe+czo4G0Eya+BE53hvkbRzqyqlGVnn/LiVqfK94WiKrGYjnc9id/slon6fk92iqLTawwuqZJVTGWAvN7Aa/StLGirZsX2n/Dy7U+33JqC9/hqay38uqfnrzJtnFp3CQyB9+Tfy/Lr5HVR6Iq6Rz1se5BW3B8Q6zKFCNCRxLiKWG4wq/cJXNQpU6Z8jIX2B3SzkntRufjDpHE7aG3KP+GcLOrOlSPTLPbvTnHe5wEoVK2u3PZIk78K2XxlB9xz2HnE3LwTX9D1MFXV1JH7o+SSaAS0AaRh+l3PirvwMTnKyrDJ8N1Lh8gYzxJOqO7yRzvfseOFdUPvU2bOr2Hl/eDZnoI0d7bDf2/vL0Ynn9wDoKmB1hzfyguqknWZmqZzoBvYehMWLQRhwOScveR10/W+g8cpxTfi8Qvr6zJNnOp2C5GuKHbaYhOqSLmpffiOoq0Kv/yHhr4dqroGgWlOXFjTpgoGljd0umfd0rWRVndMjFs0eLtxRklbHztB4mig62GC/Lzyak4MZBM1yuLlpk1ktWICiLuF0jWudtCqG3MCpDgbwt1sU0s0K7sM13Q1+o/7AnUVDH9vPZ3fbp+7KyuAUFHgfrt8n8+uWFzOoDdxoqECSbt4EwjBjzxM9u0Kc50lwk7lL9iV6KhrF4fQMgOvCrHx35Irk+x0lp4rZvGiXcJdoOc+ZIAekKmp22PqDAM5rIIvdp/08ZdMSd1zDi3WQoH4fuIjtP/19vUSI7P7dQwrB9X/SS/emKUTDVuHKyWxup567eLefJ3+fo4SeESA6EedR0eUnst8l9p2sUnDXuxVGElX6DyXWo84yz0ZrCBXAADItIS+JcOZjFdPA5hXk++dXynlBG8TiO08UJQQUANeg/clq3hlHFtYS3Rm+aMYEAX9n2ciHerTcjss+1ddXHLTnBZ0TiydTPUXt/uIs/OAGM4nH7UQZ/4ee3vgZb1GwiYdlo73Ida+v77kGtqg6rr7+4JSs+c/e0KshMs9uq0x9LAD1+1bT9knSeUsJvYPFhfQ3CEgFa8FXfC5EVrPeiyBzl6Sey4xawKJ3uLnptEg5F7Xd3E67liS9Td+ecjGppCUyIaGOhQVYoZZHxouGhSyZXTJk5+4+HZRUsyPKFzIWL9iEqML1ZI1aWj/MkXLbXByxAJHzHLAMaUkluFFeLVK8axLHq0dlst3WEgpxDROSlFzkfZV41wJE2fn+X9+1hx5Ff0zwZV2O4X0FLF4xVWI97ywL2FeEih1vz9haS0m3nNS5VoOBjxuumdgM9c1VA2vJNDurDVyxA5WmdMW7+wCdzjjfKFurRKW4HK9BwJ+qfqUgFZl6RrgyV1lCR2NySCxq4DSPb6hZs5roVjnzF1HN/ePrM/+93FQz0rfmTqkdjbw2eOgsjUEPZ3D7IqgIVDoXfPRR19q5n7eqDy3ZZ6V7Hhtpkte2ex9Qoqi7hPNOWVOMVQ9kdOIgjWZlVxIGkIDe2iDUs5Hpq46IjkdqaiIf//MtO2AMQDUgSqpduA89KHQmAv4fYa2Yfc4rQrpz0YWRF79/syJw524F6P7ksOOi+VU0Mn1jW9paGkO9opbr0xsPTufEDAij1FUbuL6RRkb6G0E1QJH/d++OXfgG+thm0dVZBu5MS+oBCp3mr8QlodRZ+UpI8lntlMWb/q4BMAbF1q7DD4ga6teuZ/VR2V/Kncw0AnGhpeoBOGPpKSWrt6ekWDx+cgit1EalCzXHWzU19dYq9hxXM9I8W8c6C05WYWHJszVGdkoHciZuqmoZh/bzKiqImn/77LWoGP/4g6y3Vl2972TS2zWaZPLj9UEblamq9+7xHrozqLpXijtwSkl3P8cLjVOlMm/at280A3Fhj2xjn7rP2DpPoOTpjI1tzld0cZRZy9UKDVwRj0XfBN/UNouUk09RhmEmYKseTZ/si/p4TUSdAQgGEovqkfgiDnsIl8Ygf7qyBuJDC2FKTIqkukFCI4ow2IT+QpXkxIrpSqSsUdcy08U40Ed7/WIUbYCVuxgUKi/XBX1N1KCDlQtMnP4p9kP4s6iWxdHYnao6jPLzadjf2AbtATiLjOJEiZkSU8vk2Eskg7TckxHyIJFVLkuNDDEYWFVFh+PXhh1B8yOi6Nuhi+DnJ9QNZcbog7LF3mXChDAxg4wERoyXfBN4ooiQzO/foMFji72/naGhZqEcWGxDmu36Kl+gD1R9Ap4bECSuS2h+/EpFbiWABf7O3XnI2aAj9dEK6Adx3rfzwCOWZBc7qmNj/ZB9ioTtNRZtpY0z+r9d9TVpKDoN2uGlg7q+HUGFRti1RbougCxmlJDcCWlAR+fZmZQlmA+iLralmyKd8sq1DLqBJhYdaQT1cUdaFFkPUGPpHUCeaeLgjlBjg6UgRMcbMLH3Con2Vwcq/APEDFVdhi0Ix0StZnRqOFUVG9xjQDlAAQu+EUqF+2wuANkYplbo0YMS1ETm77GPoGCVceP78pT0sIAGCYVYNFEfjxrXS7H4S/oqJFJGhLoy3hL2OT2yYUzmtZaoGGw8J1nKmC2IB6DexkbXYTfuH1ExmrsXuhJkhWLsjYFWZp9TwtRgndPmTwbmbD+rbDmgYWjbvItl/u8DoKZd5vp9GYxfCQQtGz8YaiBJSRkPQHWoFkaMUXm+naFOTCEeADJRF0ogwpnGi1ClbwCdDA+AJjQvPACa4GxnVkWjUQgPQG6CpgWkQzwAwLd51Q25aauA3MaaY0Ka/F8jIDxdfIN4dOqsmwBTfZlN3ha/CE38ZXDRwwwNyYWo0icaJo35T6GDBuJeOIJO1wcuOkYwM6iBBFb83g9HCfvrirHx23m6GloV1XgANPDWs08RmSn3nDZbDK9AYZRp4xrfJzsGCe7hjjRfBPyJB0AHvy79UGcmXjkeAOAYMDNfRM4KL/zV9dXIqRnZ2u/xAm0goXLIFw0yRmWud/S+pomCiwIX/es/8QCoopfWEVAAionNvQ8jY8Yoe7UNAllMnx5eWUXUuAIK8BJgd7rlDB4AxKHm+Fi5iTEeAEsqiZ51xK/CB7E1kBAcSCr0iOgGMYMJ+17AQ10oRhCD/GMgJeqTmiGyUyVKglPu5BjDx0OdZw21taPucGwLAQXYGHDwu0XG6hu7Pc+WadLzxdzpVQCaHIj120hCswtZYCdm0DWIKn0VMhgvnITtX+nIr39cYmrxoA6SNdr43QSvgFUxfDwwtFZFW7vUDFX6FArzylTBRyaFcn6eC3MVAv5Jw2cZDBQLsNci0R8Xx/2jV0tdY2P50FlDIzD2Bfpu2tplZ+WoMqWRT+4pKQ0jkPslp28ZGVncOgSQs5GmbRiq9AludHHxFVUf1c0vOWNjxsbLvhv/9DsMf1d2e25r1UaosmTPSRUAqVvk0JPUK3Q5T4uMjW0ABbiiRaGt2sXxh7SStVYKGI661ndfjv3+n0vj7/XwrvYYA9ASO0UQr93pHLo7nUZQDXCjlqx5xUkfNAI8hlg0YMyvZfiqUUtI4Cys0UYdwOehtfgEi3omRCu3pv7ZoPc/wv34lWrw7berS5N23DKKUXm83hV1OWpukYI7JwliTkPzx0Ur/vX7Ci7q52AlG88+oO5j890Pnh/zqFSXVbwtO+lk5Y1tuRsNAuPrl2HRVIbexuaOAxoUhuMuTl4cvtKuHFt5RZdKOjvsubmWQgNwZst5up3exlh7iFsUS2XBKUufQObG1IHHOmjEMSV5Tp1yD++yRxO9bdTWKteaKqMor/VsadIeK/Eo2utv1IY6xKJKH1ud6SA57DzW1Ax7Tyg6hajShzXH/VSVXNRAtsqvZimSfv7pp5/PnBFcW7LJYkBac+b7zITTuajfj4yK6ZTWpF1e47XDm+XZBXRSs73nJaZ1fjZLior7qCOo0k/Oh49H7hk0VxS6JXEq4GCF48NyuShta2ZCnSsbhniryVQ5L0fDPQy9/tK9vtt/vi7ltJStWf5ZWuP6DC35chav0l98rtzes5mC0g0/7wAE/FGxGHDiXk9tgZzN35vp9vY6XkxCqWa5aw2KCSsO+417doWGPi22FxWrO8Irw1ccsbLConnBDh4mJ6b4U79cePSheUp2cKw+cMaP8BbBIMQSDduKAQLjVWlGrT7ERkjFrXRvkCusOcSik1h3fBNOs1xL1if4ml48U5N6Dr3+MDrtcMu8M8Qqubhk0933Sci1/7T9ba4rp8XLV2WAlQRFh7iGW1foG9Mg95yIf3ThXfMU/11R/fPiEVGwAex0R8fHr3o47ku1FxW4SJQyWEl+cx4eW6a8Pbv9rbY2eIsaqI55B0e8A/bV1881j3gG94FqwJdhTwjKqx/2hFZ04l07hd0l3umu0KKHISzeRW1sW5NIJsGc5AZ7ook+KFmRXGZUxUkOQi4BVfot0srwc36o3y83ikwWlJez97iPslnRGLVagUwbyt0LJLYfRqB8egg3237o2aa/hG9+Lfnr338nlbxXXDQdfC8c6HQ94vu/9furLS4KW9KCRsWNopACjE39zaJs+6rLbusFnQOKHb6TRP1+BsOlgFfQ4Xe754cAv2h2rAMJQ1Wa36R4mBuCZlL/c86iaHkV8AKcTqglbgvSpEM1vy5f/lnYUoUOlz0ie/AAXBjFvOoQkLMPe3acGPny6M+jspV+Def8MeGVK35LX2Cz2wD1KisXxMKVV7RFNlXNj46gNvCinRPnLNGTikW7n7PHNR2BcdWiEzemfiAaalaOnDDJm+GdKPbbK4YjERAEf7MhzqHcNGIBF7GA9O/P1BxSXEwZBDj7ovQ02mZYbUnXlmuXc5LTgvYCSp7WkrTe7VkQ5xAr7Z+7h8x/BUka1yS1uZZrAmTeUgVB/G0NC+9Alm6H56eOiT8vwIa5cvxFPWASn5pv/OvCC1Fw8Pi7ol1yVjU/gxzWIgjGUG09r5AnJyU3MRp41YnNv/R8ERUXeB8Mfegnisaw65/NDQ723rJzP9u1jRXblzXAKWjw22/d6JlYzW5LsAvBAp4skEwcH5qjiZ7q4NjA1SvVVMs8ApYjEvAJUpZtOBy+XU773fU0M9VQpe9Fzj+eDFSAHg0mVFTpG3llpta0IlN9fNppOLPMNP1uzZl/g+Ty019Of6/R13FTEZSLiTb+AWFM1BK1zDvm2Ujn+zs6yxwi1G16tjhNi8u0E7ySgtLdcNwRbQ4vn26RAWdmZ5xP3OYOjrpEQ6l00qnyeBYD9fvscAmj7/xuHJzog9pYk+bmht9+yIkodfwJqIBMr5TB0oYSkruysvVV8xebFwXWrxsZX/do6b2ew06j7nDvt3Kr8JfKTiajG0xPLWqrOQCWIAc0iJjWFCZQAV2zDpRwW7a3vz8ta1W3+dWdBlr193iX1t0PHFt3ghPfY6A6+xT1+y5kW/GQKMufrFf61um3NWUpm7CABDfwEf5yepW+RNvNVNiZPpiyOuqacPH25RZYQLQ4EpbeIIWXG1KjvzmdXnMX1Wo1b7bjL6055DQJF1qpkXAgCmF98BHIVkqqm38x/3Lh/jf3e6aO3b8fv2zdO/M/iI6Y+54TPfWBtTujzZ9ak0hWW81brJro+SerBGq+5Nbjo+aHewAFCPUm+AhZq4ad5t1bieGu2NpB3WFVrPCpowakIvMCkD5dZptFfeDR4l17nb6aZEBx9Nubz8BesrsBSXs0/rnGqADMdbwldhVFA1WPfBfk1U3X/Loj3RS03Wm/42Z62Cnlfk8glH0BUAV/FFZ8aBY6KZs+4ygY//n7zE+mKgA541SUwDvvScsEiNbOP3eylTg+ju7AYSxiCywSkL+maz6vj9JW0wzbIPc3U2b69B7d8tUif/joLMGM8pcju6BER2p+lqKLMg1WmKYmXltnXWYMNoDfXyccREAFvPUysjAtHA5ZZYata96x54sQR8BR8IWl38Qb9PNdaGAQHG+oBJsKrIM3UTGI2FuhSp+CyHb3xDYAzVRx/o2mDlBjC3Bmymg95Z3nY2IQf2HicFG8TTz2g+sCbVSpHuOj+Rh4S6OBylXB63Bdshz+rDXX2jJNEQkmzr8XL0cuYE8C4sODp59gx2eh7ZY7qa+pY7rm0ABqvBFyd9UBVCsls/OvTYuXLC9byC2N0bbQXvPkrRd+ROEw+AhQCtaN/wnP5YqeE+jJAf13xTjRFPPNuo4XPcY2Wnn7/cCnVkLtIFIqcEQNV520o9E08/k+8HD5zMbGuiP/r3eOhcwPRLTmbqg/FJdRZ2xzIXVg0XSoZgeLv7J+9V1hMyPBbundmE/CPjc61ZfAO8coNrQSLIKcDGuKnkrrfhlO+cmm29+gfESNnN+Y609R1tXNYiOWgCEsOcQdA5WGGRDKhghFXAQ3Goa235KW66joqyUEISSjpoIzogT8Fy2MvRAG7UkSWwxVxsTkoeJUq56Kdvqvh9xQdxhGMKCVNIzvjxyuwDa+otsPqGZDFWX2fhdlAHVjO4rQZJl1SgFjlArZKhXFo+jzf3vmLgxkpoNABUB3sY12DqdhMDUOeLnIYNk3F27MPPrXNza1czKanhom3LT1hej89NrjiuELzGnWtAsxjlQftWR8bU7dEAaYV2l5sCUEsb5RmYaqjc2KCzBXQU6ofzdyH0OZVi1/HreVXNgWImHgWJ9ABSxfTnTeuBmpqBEK2HK4dX663m2rQlNxe/21pUW77Myr1UvU1Da9v0iw1C2eJW01JFgHVYcGgb3zOiL1UkPmg+jJ0cbIXJdmxWCiIfTYH2iHXNpzowMz2NfKGERxltYfXVlkzFSO2MKH00uZXMjC5ESihken4tMIM7T05b1lBuqWGQPETK5/R8HQxYQmSY2WIBXjAjGIrgSNiHUkH/8Vnp2IpnvwlrGAb0nQZ+1HoaZSt3VXgQ2gqe8rZWQRfwyOvYLASxOdbQ0snOmtod/WaBuaue9FJTB6Wc7LJxNQfHuyrmEj5B4NF2lrq6Z2yq1r7/+bSPn815lNOiqwKqWdRlGOndURv7NGmpoqx1kb/BkgcEQjaa+rapMny8+CwnLr83pC9PQ/x99GoWr0I084S2H6zO52XgvSOtma/xAfQERqHvFCrT5ldgJmSVQP16HeN4VABRASMvACUTFQjAhlFKwDjwCfOGPiE+AGQkzxtepsiZIK2e5s1Y6TRjqmbgvyB0ZqOjFr5aMSugZ128HmA3RddV1LNrmVTot53BK7kYoolRnbEXIV8Qmws98msP6HKfQTg3iN0noqye5kXfE2OkjrCVId9EBi0YceGBkarf7nzKYlS7DJf7MHJ18xmT+/+REPp3am6z/bU4g8IWDtainL756JLEPB8gN0J8P85nbH9RZA0aa33rxdAw0883TaWoZu/IpHx1bAehf/8QTRnQw7YUA95tFA4PJ7fZTNwnd5ox9Hw2wt9m106MzdVbhRZLIVWwskFura5BYo17QwM7ZYWR3LC+nehpIb1H9DMybI8ZCQSfTz7Q34o6Za+hmLu9+SkEswTzVDIP4cm9Po65Vgm+yUQbJVsh7loSFHN7y1HLX4LmDjCFl3MvWt7PzMK/3zHMKjnVKNfPVLJxXcaWuTCJdYpwG9wrKot4Kav7eD5vPE6ZBXZJjVsHnu5VKSOCZIOGzbFFaY7VTMsNa13uXJ3edoEhcXa57cahsmPiJQLPjqWymFmKPrxMXjsDDxuYfB5n57TqN/VpN/NFG/3+qOKv3bHsAYIPavZ6tvNS1g31mDEeaN0/pIr7KoSvMn59yVJKf4nMbwPocIcAtU6wHY9gzAd+e6sUvm1XkRTMdGIWtSrOJrlGZe5xbplVBpHnJKrOt4is3dLXbIy4t1ylCSIJRcIhq1zArPKnaKzsur7XknmHrqYVLvMyXoCr03Ftpu3kB11yMWja7NwqYWpxYVt7LMV4KkBWSGtbFoYAzSXzvlXga34LKr+evBu4NubU6/pqA7YqGm5G2U/uDyz04thvjjW4Hi1fblm0yfOKFip4y45tmmJWu2ugqHw03G1n0SYtP3Te9LT8/bHrVjtTPmJ2rr7xXt43i/DO1zZyQK28MjHKzbzRHZYFqeYgv2WIXZ+ic7BRuEQnAr4U1bYQHl5m1N4UzH3UL5nKOSmO4sbPdvygrHoh9KgD1ic3ZLwrzAOvi8fDtpnq3YC9HBLEeQvDc36M4env0u5NwfhnAPIhv/tJsbsiGHv/scUh7digGjFuG1O2ny/aMy6UJbEq7hZO+1T3y6G4fbwdLKrUHC178l/frsL0HqnSrpnkkWbw9y7oxYQfAu56DRaXCNs2XRDFTp7/cLeYgSGtTvV8JC1d0o7dzaxmnYgF3tBr7s9kE2UvPcgquJzhvmFd5XUSRjViWIHrUPefj/Vfr23OHTSRefvRde/B45d9Tvj7azsymQiPb7pe2aF8l3FfBfBHaIXnyYmvnmi+fE8xvjW547i3Z38TPobYLyyVTWkQVF0kK0rI0OC9VVP6JK335DMLv7YSqnco9rgx0sVBugj71Eh2cXP1gdtLC5EOe5qwGs0WhZtl2nAItOnRzm+u0KltZtTRPsABDgMnABWPTpO1Lu6fU111LAO/g+9/oCNK5XLTVtRmjReeuathUdLt9jfnmWy9lxOunXb2F8W3hy5ufvwUjANYuvCVoWgvzmbgOR9mnky1L4xm4jidTFS9wV7H2YWMBuVgYVEhGG6Ntz/IDboHarY4QbDfLbMC2y3x8bcPBhqqBuj2vVuXZu81wOu/GUn2gLfH30ZE4GhuiFvTLpKOp/GHjXQDSYPC1wfXUt6RBJkG3b5G+WI0yLKYWNsaakUeJg+bUW3zLPAX1I+wCXINrrbfPDSS1C12fpZb6NbEGlbROsj8IQBlyaXZ683e591miv77QYHCSKoxasmkqnWcLspoRCzQyB/TmJg6RRxqkMd3E/VSxsYFij158n2u3o4LEhzTwjKyI8C1X6o+5ZknlvYXZFBSyW+IdXVIt6Ui7AJEVPG8wbaOEOEbhm3tHFcpezMDir0E3tvXnS92tAWWcLqiUV8HsKEp9aO0R0eXK7rF08nhYLLy2qv3f/i+exP9bdu/DHUc7KijxLZoHAe4N7vnujVJhd2GT9NEcY0l8fh0pTbqO7iwSLLtdPAHZDoJi2asKnpqA6riJCI1gAt2le6BY+p9sywvphOT4urfIRR+PudsyzxgLKDd0SIpOxaN/IzCMsYVuCV3rKZ/Prz6Ii03eIBHVuq9MvV5kPmboNetWVlICEkP59kPm1Mrd0i2vmSa/WlKX/fMb8/SCuueiUu9UqzKpRJnr3COXINziXDJDox6K3OPYhyCOMdYiIaE0W8DdIHEL3jXMOojDKJ1iY+BDVXcNYgHUfFmB+Uc23MCyb47kvtNZx1F5YkFcRx4wVsjaAuLBHKsA7IMGi8Xnf5F9ZI4AFb9Pfb0iocqHTW/0Vek2aRqaPryWj9d+n4qlsJxNFbIQtnAoP1D75WgZav49LJzO1tWPWRjesNYPB2AUOaYY69eal6iv9CB6ckpZaaBPfZ6dL0V6/qtEP0o2m3irZOTiJKAcKCMSOep6Jp0MfYX6uisa3nbrlhoBtyhSK1gHveUf8vzu7nKH+UEw2B/QjSNl/pWDmY7+xcYWGZ3gWDM1XQtrh91BHuHAbcvg6t1z/3mSkYvd4R+IVLYMVy+pl6nGQl27OxB5Ar1weRVa0bMWiFb9PfPkucNFSdO1dMEZa9soxlN1he9OO3jdUrFTITOCF7z+QEQuuACX8nKLUUBvE1KDTJ+3I9G1bxgmJSGkVexeIs5Qr1cXwgVH6shRNxALWdmZv61elhp9jowsbu52gtyftgN46HbSWrKa9ZFPSs3RY4x8ndz5evNwosiwpQd8I+4CLf/2Yom0UtSB9oKZtCpDAW4R/U27teAJL3HJck+JlpGZ3IHbmAgF9/s+AnlotdfrGxEriXjuO8sEbJaucZY1aAelEUA0wlph4yCgRFGAMgmPxnW5XaKfI1DEik9emdu30MfHZuc8bopa67jb2pJURNkrYroHO1OfgqZxFhl2vHMeSAI6mk8rz4XbSt5NugCBhlFneIqaomiAfb0KEjeuPfsId0iJ8YHQSNpHs6UgdHU3/bGz9lZHVhg8MYpBHB+xNYFRdZesZWeC8PaiSgDIDlowNkwquGe1TVla3LJgIhQ0QsOSnSujgdLuY7EtT/pqPhzvMOHS8q0KLSWQkiJ9kYBPwoVYVOLobl3pUVUEWk9GV4JuShETjUdLN28J3YJDUlqy+/tugJtpgAEtWXYQ9c8DcokUQdmawjUfyBWGSZQTHApXzeAAe/YBtPP7vimP7HNRhSqsOsVRHdubruIDmx45geLqUWxfO6AA6YJoeVJeAcFF41ziRXaGBEoZ2SiwgxB1/RGXMVj0Cc9aZLPmabGG3okcG5rfhfJo+0jD2/mQdSARnXiGdRChg6Smwb21VxBjqGBLzznZTHc2wI66R2jo6pl65O1YvgX7w+kk6MT0QaRgYv6yCO3q/AeP1m2PIZehSJYnZtoSwc4SVz9BT0WyCGES0jLQngv1rgwV8FUAsMzLcaTTDsjsKWMcINavdkhikDo9HoFcV5rfpMB0LbcwumA8AHpOdyoKZL6oTfZ3L8ftJLWjWR7qdBTFIRVMcHGutDjvcS4JijaG8GQF/Gy3k4y0JYri/fC98ezHi6GJrOijMunyKqq4SZeelag8qAQWQN9kZorI/dZi4fy67EyGxkejh3rv61HVhQ5vpNSYK/o9p4XFDX+z6KE0SxWQOghXC+kVTGP5NiOF/pxaaYcfGX9qAnFdUcKMHnSewNynjGjPr4nZsYbVqR+0lZvoITb35eVCTFlNYGeLYvwiD8vgvi5YuBS37RpEWNLGn3rWBy4gH4EUoIkFA5iEQgmgYfGBaJkDmFTtSdaG18EF7hvltJtYdU3LYHYIlh1j+0A4vIxVN2y3OjhQQoW1zR7EAzItwJeqi9IYdo4P8WOlAm5ihwQibzC0kGqyshhrz6UgrDaeKQdnDXPpMHxxs37bPm0x1LAxjXLW1oYvhxCM9RUctcm8uDgpAWg/6+W4K2OOvh6IINAqgACBoo1c1uAhT339+M/6vQA24txoqbc30SU0L9vgnCH6B/TRSPtSI7uadQA0ShGhdqIHE8I9J2vCZ6+oUHT07q6puS6qyVt4WZ2ti+Bfb70WDlZFvXbG7GQkjPZ+upGJoCtAhiOHaRmUkub8LQ9l9g/ne8yTNsPP2iVcA+EYTfX+oqnpovegExKDazdWccAlVyZ0urHygYxR2viFgmwNAAldxXMakOGwen/gYhxz+YSFDgvtly00G8TjrfCzPAx39EnXh7s0mqLhvHv/uXvyyng/mc9aw86Yrfv3Ry05p20EhOlVQZ8KtRia1tjdWtLneWLXXR0hk3Ws3Hx3ZjN9zft78nDtJJUGsyDnfRzHY3C7IEqth1BD+9WMZThAzPHeOrfjm9xXCD7//65v//G7q6HdjPsydWMDm+BX318lmbhLSygvu/XUIhy7jvLgJ9MHNjoDNFeqqs3Pm+8/jq2ybfSJg1n2rhs0vRyGMNVjS8kDfLux8NDdCwtCzshMOn1emO2zDovO0dOGFmzwJkECmtOq8CyML12hmaqr4NnHa1mYxss4nl/gWahIB/x0P9M3CTg65rsFxWeaC0wKqqN0Q8L+1GpnXOqF+phFgo4JDP1qg7OBaTSZyf5ueOf28xkI7cpXzyM17S/914Q/hLzs1GOHWWHSTXdb5SmGYFY3sqyeoXKtn1rctw3MWt7znF/N9eG0u5/1Qkx2jX3oaddw6moW+NcHbmBTm+WhOvi2Z6q+Jd60sxutkp+w8DgOOT5ovgDawepPrk1vAGLi9IgWJGkOZwfwMXoeSeFreMeV9tSewY+oS70ReRNf4jDeyMy+bQ1BxaAnzTQYPis5ev4ZEz8PWSsH2GTCiWO/2m5ka/2OdT8dUBy/aIbySnSGT3yndkJjYAACvS7R3sCeyyredO47yf1j3zQ3nGV6wXuYOhNqTXp081eBXzFuJQouRmYDE570vjxZPgHlbWz0yA3UGcepiP9m0OyNDnsNFHfwO106Afnc+LU6Es8nt7qGaiyVvLkOGCQnxfLfuX5+Onjh24sLvfyRemjr2w05Khl8HryAObJoZ/sjL7/68NHHJ88WjRy9GbgRMBPYgD94csGVWN9Y7g1uuYtUIXkHAqDW9PAjYscHB19LOpNw7JzekpjZAXmpqk5bzQsxWYQhBgGYnM1iewR0wTP9N8asU1zxskFcJDg26VbLLk/zOnd+VmFpVUukbhsp+zlDMySOsodya02tMO10vCgYMM4elFxVJf2/658n1i5w2L6/1iosl1/9ZsxD05EnJ63SL90kXBb+mRB2RTzjjRq240XxDFOsiHmZ18OWjJ8+F+DVwsm3zo9kZotRzJ/c6hySKumZrTzgHc8vJVtPyhlzIWDGdLCzAK2GHtJxtD9pAYloVPFMu2dLymidbTy7kVqUiMKQcjBfTqbMJVaFnkl5lbr2oIFk1ihKnMhizT4/KQvy2FIGUPTF1onbnLnt+YuJcb1yBZ8fIwbjZLeBnN586rnmx5Amr0dKym+dsn0N3fJiIa2733sc1zidqgUHwTkzc5ZiVUZLKinZBs6tzKqr0jSfwE1FngkKbozdMdp4KUqShwPTue06VPNvF8ar3SPPE880GeE78Xtxf9y7g6NFLCLc3ezbY73aMqET9PiAMqN8fsl/IjEzmNdtXu1gdSZJef/P3piWdJansyghMC83NN7Btmhm5gZ4UmAGJ+v2dc37ezYlXi2qxgMQXCH6NH524BHzeTMCE3+EeAC8S/XLo1qfSkobkX6v0E+XJYSf3ShVBud9n6reUDLGi862xaPuqrVZ2DaIQeWM4xp1E5wzGqnN+SU+wAK82bqo8NizzlUIaFHSnVC+D1+DdHuHeKAqybzhXajpUk4oOXK/XnKAzn5eAgJiUlnsk06tF8ASM7zVHpK4Q3NYsR6+/tM7NbUfJ9eu/Ptv+zxvc3N2hoV/fgW8evbRnpwbttc4r4Fax28JKXyWx0lIhl+TwQtCBa7lbNOU8Ez97Lk2UmjttBUD7kOuAIXgR0rSgBStQPhpY2WGlRxRyv5ANJ8mdvCrWDlsswNkvR3vTP7k1T84AY3CIM8Rq0SGpuFhyuw7ogldyI2DzGFheS4UfelW1TK4khlypNbbp/SCwISrugQo4kGWmcmu9oNAFcfxwTuMqJbrygWDWttrApY/ihX9sRm/7FefiKyYgY00LlSTqwCJ7rkQMkkja99yHTXsd5weYALLWll+/hc6TqMuo31dXr705cum7ZYEGvQReYAUQxyJ0DOC3V3vOOmhpWSsLpvF7sg4U22/MN4NkL3xoraTpdUv6+ce7pjonhwWRtgz1uB7Ri69w/E9Q8FesqFcVjp7XVQf7PxEJePWdV4Xx6xAMvoBPiHvxSy984dbXxweO1XO7NjMpGhsJvABKBSjCUXyyl916M3RrNYArR4Q0Cfpetnkmr9XXVFlbyXV3oWp5VHAO79RF88CA661BU+3Sc1gAzWj1rdyL+M6jnZ8XmDhSqPnHRdlrW+0MH6yvgdXByM1LeJoI+N/qvP4gUlMt6pn5s3SAvx7ndj4uS1n+42mhvpuR6eCakvW3lsBGd4h30kFLtWiZ4HYPuvsONPitzacSru1zVipGkQ+kA2f16UprGzlNtjRqhDX34E0DcBiSFcebNCHWCV9FqdkBFZD2OMxMedt+QHrI+IKUtuDFqDyu5ID/R4+QcIbPquHXXjsDBM3y9K3mC5kWJDW7iJF5By0Tn9CDSM1DdFh67JdFNjaBgER5+KC4/vkxvBYD7Ae70CGpOfjzmwRQixkR3nvDaAhNVxfvjIcIEQ9IlC62eh0nPEBrYs55Y6+1KHDd0S/3V2Bj9sPRnvivhSV/LCK4um2f1yAyQbNztVPS0O0HKqAHv6D2qncc8Zd6CF4SiF+o0tdCXiPPe1eWkjIlFGKQugkBfEJVi4rRmovr0U2oGfkqNwFwaeOeqR/urcCO78vEhaU2NsZ9/FOtJF2t0NhYR4quktIpvokBwtk9RAfn0v/dD9qYaNWPfLgXb6Ie0d7gSMHv02BvVdEBAvjae0heamWTrDCqiWq/R+KwP11fM6zRz50Boapi/GotQkXh2Z2lMQjnk9lmhJrldi05KkYFWQzE/pkIqKcS+0Fa4XCa2Ay5oTDWHX38YLAOMu30Mf25GuHKmMzO7ARTCwv9hete2HemuAXt8UpZDkdZqhVDF5rDsZdfkVsFUGOUwDpgk8gYLn2rMJ3glHfe3hbbdrrEbwsmKIp/JchYKv+HCkCbSUtLqRk8V+dYWQw9bBqrKvMhx4UdCfI1UyFR/OULkZoQqtZf3PTtt8tNdVxTMAWoaYKyBkyxcRFi/98g/v/NsV+WAWUbCgIx3pFlLwMWGRgAZ3D0xZiqEs3rt+uDaip6gHNPh6nokfyzm0MDIVgYw12HfbtjR0EodL7aD8fAQkOBDYGJwxv/ZaoHcfz4e8eumihBHEy+CIVAn3ROGqPEJFABJ3rjDXQdbh+rBa4rfmzkS5wBBoGuqSLjRbD1BVztU8Jru3HpK6HglJRO0icGqrZCFJBGvnKNJEPGGhvZMob39tGLo4/iVQG8Y28II2mgeDTYnYYM0wa2ugEQyj1HP+EBWHYfE+EKDFD3xn/Af6taYiLErARi2jOLxfCzfb6Wjg072Hj6VCSdJM6VRFSnqdEeaSKmau2x27UGX9l4vppQtzAR6oML59aZHKWmQuq7egyDmYl6hXMXZnOa7XCQLVlNn1DACOC52/uLbpqoO7qsiNEngk9VyW6YBCKPwEcJcXAwd3gQuoFbXZotHdMJ2HgAblDciTiUnqH+ZSkeNJ0YFI8WaqogDsWCCESi412LwEsEH0GMH6xClt7BA6DmO5AhZpCUsjawgSnHP9DUdglVl5LfKMc6lChNrCNhKtCeDqEyZjmkq6R/liwhoeafPW/NoPbf/HT0wr8IAIhsKVTo+I8zN74jOitXePYsCzQO/A6hcy0lsyg00VsYaZLWSvdmxtBQpd8MHKLxvXpPkzwtdcrNjhPfGcNv9lzWszQe1MIRwCVRXfXDOCr7jQ16A3ZZ0lWQmq9CRz+5KYwXZquORH/xiZs+WlRr4AWgfAaiSh/Sa+DHL+AsGhubzHq+9NAyDvxYcOlCvLFPnK4oH3qwNpiJj7XhXPtecUsFqIAr3ls2x8fHf/di6rtALXQjiuyw+2WcbRl4jJeYTxdJ8owJiPWnj/GLAr/7cOyjjQ26VY59QCjQ+Ep76kYqFcxEnun2/wKS4PO1W9oWMf4xSWJ0o1E3+g2vBRvg/Dz/CiRqk5sBL3sDDbS2RVet1QRR26tGxwsHOg8uJj+OIdMlT2X43DbWujIOpoI6DsJyz6rAYngScVkjoo/n4mMjtRivspqwJjtAHy+2PY6BqjmpuKUDDRl0zFumapqrhqG0UbF/9zwnZsDwnJwDu7VdIY1n24QW1LWp0WfxI3COdJZEpSrhXVvFIIGPkLZWUxMSXpJpuqmR0dqM4CsgXNpi0Q4UdfUrU+0HKAY+5+fZsE4zNPCunbTTNLr1F4Sqb1EZXvPt9sWkKJUGgXejla31YU/Zyv/8/fdvJngTfzy6v+6TaPzLhQu//3lUNPNnDzhaXO/DES7ir030bgkxVULWnsx8yy6RDBTYnj9R2b8LJ7wreYhcj6G5jzez4tH9sRsc1OIDXsz3PGETWh9I1O+7FybUcWrawhJ8J4MEVZO+tvltHPbBighrcHqDfXruI4wx9cOj+73vAkSAm3r4NHMSr/aO1R8U8T/hB7/041RNRiXAQoNa/EFYaIQXY/z9STkC+y2hFUSV/gmbOI+nIYK0vaUI73J42KCLd8k5Iacc4+IKsIDQuN4Px3gzxkXrvpnhHv1w4X79YREvWS9cci5NGPTqp3/ffS+sgbxUOirnFJ+ShDsEc+RoUXfcwhbFGsd5GHfgmt44624er601PR0LCPo+fXDwkCCprtDWfb83DxTYUBis7JF4st6t4GaQbX1jUoW5b9MjC+sEJYfK0qPu5BKLRhiAg5BKvvs8W3Dxcvr25ReF0tO+TTBLcVv0JJJTIQL7aXF+eDRXFO3ggB2wAIsubEoWSOsSvOA1EpSjb1S5XMDaE+UVNczjthi6uV0mFrDJyzaaK2t3iJBMygUNu9wj8ohFF4317mNzy2MK/XGNfI9voW+dQHDt23//9M91c9Qukto4Q2bTrlXz9rJ9NjemPrwQnbgPpvMH7/FfvrnU/McJ2YsLL8ZXvpMd9ZlzThxNFfyFspb169FE//bM12tUL41vOcE7cQ+iw7zM+/mfyOJf4q0c+zT+4p0nrkks/tAse7fsxPjhg7wcpUZW8bS05m0MAjYt4DpUKlr2iFwnz6X6zaNbJW6l96cvns0r/jh66Y+jsneLZvhd7dwOJrpOPnjzP6y4NHL7Bie2FfLSaR7rzp0g1tshwV9L3idFA65sNi9v3gflgznD3w21hDQsLT8iTXp1+cmZ0yihaa2TFhz2dH4OdvTtYtGL2hP8F19EHUs/HL3xBzhaDKgmBYIBlR01v/5WkvT9syeuexA1yoLsg8j/06tTIbdDRIcXnfDuOsjtWPTDyKXb3opps3L2Dhje9EE2OI1rLqflThdz2mvBgT4swqKnEPvnNeoNKCqzhZ2apxUXX0l5b1OGFKcHcE2ltGVPDWvynDOx6Oiw5KRD64VvUl65Dk374ZoMaXe0oFwfC5hmS/eaQR8L/t9FD/PkGyaDcl8NCdartcjauzmpdoBfv4Xgplau2JEs7NR5XfP5rYJ9tb/Yfl8Gp60VCaHdIiz6aPOHCdHBPqSKKrnNDMAEplk1v30L695n81+//avmCYlzxEoPcRWngqKxZRf+DDi29Pd/Pbp/wvzLuvs4jeBNgAm5zqZY+APQ70WHzRu8NiG3fkawsEbHy6vNqcCjQrXopSc//tHSMZNgp66iZct6rnKOLutZ+uibCeFVGLIIKMC6dcvW/Tkuel6kkW/b5tRWmKDnPspl21mR/bM6iNhbn2RamMgMja83ThRc7VkGgof5ifv3FxU9DRABZFYBqjuoJRiLeN6oLPbVbyAsa6vTT5s/sUjXSTfNFY5at+b7txNV+szZOZkIWEjbyAGnOjforG+FuSi+8VWpMt9SVJvnsdu8Y6zIpidwhPvHIxTy4vd4QCjeJVKcslJxW/35P/7avros/ZUwSElMkiiHmG9xZOYVvTPviBtbtA7XzG22Gauodirwt9WzusNVbMV9M+xEPnB1mNURobOSh0GRTbPwau8ynD+YZ0SE61ltlZbcKTUc9Ep2SnbzQnMxhx3jq1Kon+O0wxdh/WlhKpxlvka55j9vWrI6fb3TgK2tfulWKe9cqaEXrokW5+PciSMH4N7W8KLTaV99fRTWDJW5GWbaBQEKQAI/2qnFthDDX03N1lK1wdVYtDhvUdF+jr2ymByu1GC+27G2tmiLsKPCUtn9oTcH+cD8/GynFq+7SLQISv7+6dufvv1MGgBpR9PQlq0FG9U3v9848RH79vt/jj8CPQmGCByv/WsFqCY3A9Fxsc17MhIQ4zXrP99abKFpGMnWBenYB1l3nLMa1z7kzxrDcP7d0R9A3yW2/miIICpjfgGTN/67lTM3ibqCMNdIPZivNuZEw35GR9rvPIOoeUCVPn5/z5dmokphBSxR9+JRpXAChRFMY8Qf7i9b+k3gx4mD5+kgL43KH8BcBdHpVboR0gI7qtaijEHZku9TS9QiFMSeZ5A0y4xc4cCD0jK0g7Ck+O4lIsHQR8Y/jBF7kxeXsDcB6O7YokVaqsBiZ5+3o6mVgWqQYgrNZqhRwkB2ZZ8zQsxQF8ZfjgWCeL3y0s1+VJ+4BDBJND27tQPZq9BTEXn5etRXEkLatDteas+7o/hLulqz/FP5DJSitw2chXNNp0waqQb/3OPOOgT8YwpRma5JRJz95v01MRDsGLpFHMq7ucaAAWx0EpXpdmqoHXG1VYL4dKCh8rgZkGgLube0dUAbCFrw0tSzOz7cAJC3ioqvK7mVTLZ73NJyMgbJghhXsKKY/duqhq3s9FB/7neermViDCwDALBggUOO01BWsmWrLYEK9OO1Q/DuwFBJ6oR0A3aA56lam2XfPLo0U49D5nt/BGAiW7bi0dEvF4CDqz+MEQ0tNy7s6TA19HYe+hXQWhyIe55S1jAwni2+0btiqU3c1QAD/CcQW3+iqmbsxRSeIfyQgA/EA9B7YgJcBl1lEKJJGHQsQ5JtEf93mQ9wIJC24fJuF+aiFWBPFkGzQWXMH/cwifbe6MBQabDoecBSvFvxRc3V1kAb509/1VK0V7v+hnkEIZk0QqTRVZUhTYQaz0sdGJ0IXQR/BwftT9YnGOlgG8/Pp4DLEHfs3RgUg3UrJ8C5wwMONBrEoKKOYODHaJELCqgxxBl9ZTghXHbZW6pifozj/4CHJrDoxES9KmIXD0EJQ34DhGh3mr5h5IK0jBiK/IO6AWQwxpkmUcuiwWQDKkyiucc2WCEYhK3/OX0VjGhVbQDBYusvhaCjRA2HE09FTbOwLsgND8ASbcVCmRoEpIwcMZqJVt9RmGngRnkktqGFSiVyjyuCJ0iRgBBNU6IRW3+aHt41uPfQMAkoQCZSN6iZASwOPzhtvZsm0nKNLDj9iNllC6pItKCA4bnWULJTXF6O7e5X995yAOlILWJYiGhN/H6m8TKieLIXbqqxP8friabJ7ybePQLluf62806whvut7SfDNNVM8Qnw3ykWGHz4gDXo9u8Mrt6JiS3u+XiRMQbCdUffESSu3ndHvwskINPjv9xbgUdp5UwveMtKJDZsgWi8z6kr1dSnOuwaLwJrkL7KedpBC9arL82bjSHp1Y//CS3Xp/fEzGaKLsSh8ft4HOM/dhyEs5HqMhpUGmMIm+Wbv1drq5i5DzeDHAC8hfdTpjqC9wUF2+h6KvoxruB6gx1StQNRHbumvX7WFBN8pox8GIM2dOHFJYR+iDYdYwxu/ZtnCmCzZIRtvY77Bj176LSvmRKoBlOgGtjE4xMAXbbxvZ8u9VJ0oZDxlfU08YMHso8TuOo714EyhDFraDqcoeFTtOUoXgyQbPLLrQwls1XRAydRwKOmzw4j05TsTnbWieG5i7yTm4lbbrcqbRoDvZl4eAj2tuUpbqytZQRTITl4lZ0OdvuuTVRlKPHFlVb4PZELb9IXL7cACwVlRMglwb8LMD6ADw+VKMr0ky3J+ASA6uiaoIIB8XjVDthsyfgEOE4Hxs9xHCQEk37H9vJVyNCRI111lhO9y58PoXcSDm6S5ykxDfQYRMVrbeoXBXjH1cffQz7+h55FNr1/cicePfrmfv0l4Rx6/SGEJIsLjTYtvy5YHGUE74JTl3UryZri6Z1XFBjXW20O8Myynuecjp77K+rrL3F+6TVY1PvBfGXvGKrMpjxNPLTyLLtRdJal4agukkf60lwsC8znNjOZyLrnWFcEjsVNcPo3G5j0/vD1mqK48YBaDwoBLfrhAiyS8aJEyEsOkmBAplXKohacPrt5qfnnp3L6Q3WZlqAaODqoh9rwAxBdabKKdoJFQkl8jpPqn0+2tR1APl6VqNK/URQXv+5+swjj7T3k47t21mpZ6sr4eZbUfKs2pyPHwwzXPBMOJRTSLS1zhGiEM8ACTmweg141JVJ1VDeZ7XIaLo0kZxrV5DbZaka6HXJ6u6ZMD1SDhvBwakVcjuDprC5RqJcszqeG98lrwB6NtKp0Gl7Vp2QVUxJU6GsUmdDitHBST99q0rxc7E+XhIcItkbBWnraKRs/2IrEVpB81Yjivkb3LACVuGmFCWpuXtec/t60fEn6gvm1qARGOBZtJyaHgdSERWtZkqRS/Uy1BN/1TnuOt+qLtwrSvNK1E2wzYLRXBn3WvGBnnHGogzPXrpQW5jvstH77v7/96b9Kzizf/u2///0XKYMz4HUnza+b7T0XV+39aeb/muhlzT7MGfvDEwE/PHo3HkxU6UP5GGZ5Trv9VfIZUYzIyTTU78snkbVuz+EdDL091XFQFGK8bGbkxVHPd0WHvQtWcmdq+yemDnsHXO096L0yllMQdzU1pFskR3s9v72BU+k/7Y1rin1UM+TdzqItaKQ8gWtMnk4cfTfu/aEeQwHoYBWg2h7mN/95H/vwDlG3ZLd3RzWUFqOL0tfXa/YUAk8Qy4nNO5Xo18Xn74+o9l4ZzKm23Jtb1Y4tfF8Guz2R1+3fyC6P5hRrABl82E92u/6Fd/VKUUEcihYPB3jvcigIqM7hVodP54ZUctPO6Zcr6oJKhsPhH4tGOr2/Y+rLCP9qPRZwApw4IIO7RazJsBZFNLAKtthTrxc82UouZ1em8Rqtu7xjgVXoO4eDd6li2j+a3ZYhSE4Y9cM1fqdcgEEI4dQV7mE31GFusStnVdqDpgxaWAGnfMk/b+TDbPbeQrToIHQTucB6UlcTdI4Jz1kqpy79tPTiIfMni7/9VVHHqtnj387GNRmtG1L9ugPkV+OqsQBBW+SCvAr1P0C/SithU0uHJtQmaFBiFNt32QfcDj3Ij00WBDdNBgW9rjnz991rJe9/FR66+9uZXJIVGnnYdf7WEdki7w6f+t4P47JEaELLwNQrMOjtecdHlX6opRlq8duabEFHSHry/fZNd3JrWJXhlnkFInbHU0vL295or+/1YHbgGhMPqDMydMWGIvxjv3KsPvSgJ7/jeWjonJ/n1JfQCpdgHjuD4iiBF9Fviwd+j6d3ARPs5AB+8ct65GA8vduRzl8p8770S8+6lyOefl0VaJuRjQdDnd4X4Ol8u8gDSSQ20vnpdTxF6n5rS6K8tT3co6JaFJDTHwp5ydN+ODw8K4MHC50EiSeF37SVlVkDjx+dV+TR7Ynf09MDOsJIV1xRRRuPnfPUHeWtIvvdEjEph8vOIPv6Nso8U0etLRkhWEBcfc8LGX/ieX39LtAMDkb4hyVzpeV2YvE8WxS0J9NNrYErDW71d2/0lIVcdbR8msiDDENgwqUhBJKAxfPusrR0icXvoYOpIBUFTQOwj2sIumGlCDfK2vpUUIm0rdDWNpurqCJ6/Vk1LOAF9DO47AEj4AVqanLfum0CJw46EhZdo0jdIJGgctf7YIUleH/8nFNWvnvZNbnD/mKl8hL2gIpvJnHNK1/frXjXYAuz7PYMaJ6TiDfY8+R1CW6DLZwaaE+bXiWVuP62iWSk/yBpz3EqKu7bp5BMVx0b4/WHqmsZ3+y4BC90fP1zbkSeOkP/bG7dYzUcIp1OulVmSsQ5p1dRKWhCmQL/WKvCgRvYE0+hX2kORsySClycxIWiZXPT++AVYxzjHQ4AshK2AtEfj+KNtQ7EHj2goUWR6HLRpRwIfuaNm8ZAif7huW4sMNDmJr9rmzqueTGO7Sc+pkVzs1rIx880X6FoaXlo8Wrr40EOcG57rG2kfWtBhFJPKvOAbPdOClpggBdQ1dKKC+WdE4NFsDYHnE7EOc24+f7wpm20z96oZay+bV7WS3A6b8r2bYZham22/QENmpmLC/eppRaFvrZzYC2DwXA/xcMC1DUOeH/6qIrX9g5sz0Ath22ifduodPLatrSz4HKFu3AZVqh0WxuSgcNE6uycaDaPwlDeyKpcSyZrnh2WIvNJbzrO279TS0v1SiyKoEGV1uMqR2hRlDemtpwlo1dmlGfdR6X0PT5zGuXRONVjPcahbpOYO1mqaaS5dqDqrPZiHNYJVicYaS95EHTogbap9q0jScez6OiSDtgCMrTxx4P2B0hGRpGFJVg0nXG2vBMN00ZRl0u8vDTVDM8GZW/Eaeu2ec+dDgwcMYrmj2saaT9ue/NAzcgUzoetUaaQMyJz9zQpaajHrWwuMlbFfioAoXPAZGduIIthYrIrQIOCvWNCWl0CJoDB33KBKSZyFfMu6DqBflCPmn9dasAviwyUzSQ5BURnet9+NnbKGj6Wzl0VgQZEfTw62U1Ul41/uAefk2V2MVH/wuwPIMob4x9hioyHCeqP8f9EvYyxpV+ji7IJeiePQpj4Fzwvc7U4hfWIzSC2sCZPA4BdtjH2aF6PLAb20yi0JKJAflvyIEWFtyPvQNCngF2Gf8m3JUNMVVJq3cBWgn4ABnSlRB1j3LR9ReAyHNmPoyZFA6jhEDGSTiQquMcGBhTxQDBIacqtG/hM0KfQuPJiDOfSY+8QzjbRYOTz9wJZRkZ9PHaJOKwHHwHEPHFOgQTZktqrKOlQgtaV1m1LHNmDlaxpiMALa78J+uI9CnLgQtNQOsfGLAnEQkObLwIBYaN8F5zZI/V9mpDW8ivToowQ/9dnI0KlD2HnWnoKzEL/nFmsrYLUQNX6Qk1YyI7II8nKTOO48S1juH2h7YnuZEMoE66oVgFpLmPAF4qR4R0pAidqMYVDlf5Kykr50+MRqL5Rd5BPh2kSpf8XIV/pLNGWEvXxekZeua8iQVmLO9jcGwhwlzL7lMb/PgCh6Lo3mOMzMWZpRg3VJcDtBB72oCmmr3z5qIuGiWpodXFRoAEYc6AOwC/lnlPgSARrJll4AEiYR7oqUIkZd3jKEkZD0Lv+wEQYGHoiRwKcAdPnGFEktOLRpU+PlqKE6I9x5HgWGXs4H85D/8/XBwBOv0XHXppA8hAnD+AaXdXn/ECiDdWjIdpXTQVpInm+GQHCHoEwRjwAIdZUiEE2x+aYSkpmEMaIEtHWc2wlMnJqvlWVEjyc+XgAjBcxEYfal6cLzaYuxMqOpEem8p8vQk+OdUYs2HgaWbv4TIoy4cjrigNIC+Dweh8IRgQgA1a/hLYGq68PQMBT8NnoeAAQLlKFAlYLggTA4Y22uPdeO56kI8UEcPh+iFiYInM8fODfexiAycJAy7o8G6VHhmGj3sinmVDwAESqgBZXmeZrpAa0HHtXFl6TVTIegG/BjT6z3MIQfOqL6xPIhtqRR3ILQdEIjBv5AZ03NnEHq9zNME3iGia0SPeMlkxtFRUISDh/wMQ+VFdIA99u2j6cAvNbhf2+LDVDIzc8AASP0Ei6VUWNRPeKqjl9SwUA5+rxj7U+WpYunLlZdQrzZvHETYOvSXuHCCpN/4Fr22MLSMm/1awp09ZscuRNn6dQgQqwv2JDoXjoch5KGDSljYkg4mupn58UQH4mt55F0l4L3uIXqNIHyKyH98cFMJo/3vDb2EqjWxpzjHu+WfrNhaM3LoBA/d0fot+BZKm9IntxUxUqxsGA7/61Yun9HqJKn0w+W56KTgJ1j37OInzu2VyxT15raKR5cporzqfAO+bZiA869QPR/ANMH+AFOC83q1OUNpZXrSVRqO6nOGGFRqY6j1nJa5XNyMf3iGZrfShI2u/eRqGTHx+Sr20F+aWP87x3RbzJgZDiA6hIBYo0wlJLve8Av/qKlo/xzS+yj3EUqot7yZHjZDu1By1Ba1uB1VHlPLWm05U2pmYcUKZobZ7jgrXGwKIr16ppa//4OgmWK5Rbl+zbaYymmhvO4DBQLCkc9aL4QIMrzsEb9WM0j+8tkeT5GOedTdoBeAxtbZ30rL6pqVshZ/95BkNpY8bQg+UY1P4R6iTgHX6Q2wLfgdrJPVyrfJggbnq+u/CvFYFXolkbWzXVEiIFu2bV1VUPlFedtUgxzZwUWAwamS7/0TX5gSGd/ngP73yelk/cTt6WjZraOo+Tcx8bamom6AsuZ2qSxAhJSFu8xH0znn7Nc47WjTKW98E8R0qzzC+nH0l7WIGwPbrDSmKht+TuNYEU4kbpKJ8NO49EOUMkb35J7Prk9t3+4lOpnn4dVMeIaJ5cfjrTdzJXIY/VDcVO0S91v4fHPu/xRFTc21zyhGVGHE5U6cOa82dzwNSNby6s+xQwNfHHBcIGY19Q69EX6zky8cujdT94j/vBZmOG3VjDUw/Hr1X6ob2/JHrKc8iZXsncXMhL2PUFeMdmWTKDRd4hc6GhWwK8nbEARkiNK7oAI7Brzx12c3uWiwWQ3MPauHLn2x6WoyyZPLtPrFdekps6KZbslnn7dY31+DR42uc8dYxoF3n77Xb02OUns481Kao9IZtqvmoN6UbKagvLNOzkslI3iP0bZd5YtPupVJF9DtL5Kz3t/XaHu2+QK1gthmvKrglcc1+lp/+sCLBvryiyuSTzK35e5NHoiUXX92IL6p1hZlXYxrPHRrhojp/k2hJmFZaBXv+FdLe3SVJ5dL6Y3MBjDf2z/ae/BGdchxMyLwfVSMs1fbG7ZAVNAxA1cmzq038+qg0WydEc47sniQ0/kiMF11RdRpcIVyr9LX3TP641rtcMxVnJWPR+j9D9fL59dliUWjkWMJnpO5zk6lqXQGrgtLldHnJtE6U+tGznx4ZwuxF3SMzmFqtWVPOr/WRbHPfZE/X7Xmrl0kMlMLW9TursRJU+DH3RoqNPLQ96n2j23I3oQkgbZsU8ZP+9pUSVfueAsKXJLMd7ZYD9LkcMOx28F+t+6Ti60rO5v6Kdn53quQUNNRMreTPLxk6MfIKt8MKHoydOoFuFkmNf7en3svfLyIkZzxeoxUeVfgg1Dy8mUYasu3PxCd6MCWkAOX/pglUjKyeDmx1OLZZHg38Q3u1dUAwOOVG/z22IiWxjZ9uLjpQecR1CpKnM8Bo7GyU0MAEGZ3Cjw0812GfzUL9fp0gOgcNuV2pItSiHmVdALHoei86J5cZW2NwYWcn3e9nzxTujHHPf1lR5W4nzOdtqdjLmvtn9frhROcoOuMY+YN/svLwhg9MSadTp2lbjupBep7j2q6Dd8flE4krPicC4g6hbEu3e/PLoRDVvhtnXws5mK+atG1kdM9y2QoAhsnm5z9wgLw1x6qIm0/ySOUPag+9L3l8X/JZ+RJ6Kd6DM4pq0jc0GoYCVkYFpfcXM0RcBiQ8llezkKm6lGI7EbNDPwpIVLddhRfz5zJNrSKCoDWDR/P2Ou+XBHTB2YpZv42IB0bIWYK1L76TlkqRkK82yNW9xVpGFUwmWvSSCmuXebr5/lmnjocHt2OZAzxIHC818VSA6OL3f9O//+mn7kxqvBM3WVfNOWzYvii8aC5jaHIekfTsOWzSUrRmCjFXIoIvLhUalNJJkzrx9Wx/crc6yUHRK97xz2rfTwNjDwTNxZwW8wivNn/csXbYunnPiwn8uffT7Dd69HgOm9ajTwZ21gfXIx69D/zWIkrdnmeqWTNHE5jxq3s5qYX8RU6n0nLBgVZNZvriBmyWmaawadeo+n0WLiPP2dsSOc7bbaf8qfbJYr6SqNEEzMqrFHEBqi/Rn5m0nw+gu7lW8/HBqq/u80+moMiO3MLa9e4SWA67ZNaurbE3ldKDgK88xWIBzpWUoxvmEiEaFdaoIw0QYMvWNuFGWDjJnaxcgW6KJEyaDemNO8LY8dRdxjkAzShtJQKe60rKUwQR7mUuE1qJ1WDRMaT33App34rirZ6XwlyJdku9WYUtpmF2CVTlHmbBcjzrV4cWkD16Xurlp65fucHqbvmT5T/8leLJ9talXaTIqySyWrLlsHouCHBfLYl5czwp0+Jl/6TGhhvuzWFa25FbrbqdRa5Kmr5rgYtTg4rvbP8N+ZqFitcE8+7yJVoQkkZcloWqsOuK0Z1UWzTZSGiQGkDO8kdRiBUyTaZmrtr4eev2DY1cxiI0T3wFCCGVbSFcEXcmucDrtuB18LJm539/FKeL2vz5js0ojafABKoJMcmNlL9HQucsbm3uQiFMbwxnYDAMKYAembIX3HHIVDMfqS5sDl6ErkY9JE13cqIxB2qL25Qh8P4R3DE0eEGfeTcAMwqQClcpEkSHy8WjbxP99bBHGEcrmiYNFFCV1h/0joWAf2Yn99rlAlRF3h0BWgkGG/1AZR6cA3M72I+37EOkRYAxwFAyElJHXq6CoFDhgNuUuwEJEF1cWn6eiOyOLhaWrGZ0MzoaSQ8k6J3f4uoCQ3R4+MIvNO8/6ECnzkT/ugS0sic4BEppEamUR3vr+nR3VxLl03wbvCNwo482JuyMoynYJe4ZKET02KszdEGZkkVKanXGeYrDom/hjBvAixX936VMRztnvYdE+GiTNzCdHCPWncLhqFQM7dH/W5TJwBdYceh8Fo5aOqetdpEX+66df/0K4WDtyb1CpEbxjmUH78rTgVOou7o0nGuLH/1zEBFM2ORnn0uTWU5gpSIYxJy/ucEtBRvu3N3D+q9m52486qII31g6UgzIVC7AD5YoINrhDG1J2IXV6aQJybJp0R4+kTBPnBCNzTGrdq6ApIfSD9pQK1M4kDAPMpaKv4iV9VUYcH7//1U0FmDjoIgY4LO+5dKNeVUPZ5TbaNnH0HGHfDZgXmbBE0UBvMwm4WsvUxRw3EUoEQ0CIJhSj+gmYB1V1827zaw3ALIOAVL8UIs2LKSDS8LNk+6ERGffemLkAJQL5eHi4cJDfXO0BUQPJIPScKgOwvNsBqSz/6lR/FKsrUWUbsoixZCbYAwVDfRsUNCR2yIUYXjEueJ1mRZouAaDrzFsvQBWQj3fUMjExARRAH/A4q5xgCYWp3LpXhktgd0SwBrpiRJd3OApeVtxH540qDGZtIUT6hvCBkTCEFRXHEtCwvlF2n7oGok0jXRHAOxdWBhWSafpEHKpVzULbN7lBomWw7F9/BvgsJaS1iRP1NstgSuPXMhE5SsgdToBc4VbnFw5cgi5JOhlmaGGafq0zHR0xAAlg/48H4MkhCG86kUgTqREcOtbuCKRkwqOJZNAim8AAzEi6Wo4ZGWJA1sImZepKeoaaICEM4uH5919n7ppiPmxiT+fpKhNiEFAomGUU51pJaDnqRAZMWY9mRxpAQn2JRfoZFbSw2gF9vjYGCSQ7thhPO5JpXbNUxGCOvHkA2yP9OOtO+mKgIP+6eEsbm/x8NtOEqN+fqd7MINHyT/FXMYBRu+I8jdomuvuRtLVmSDHNHns+RtTighGP3s7a2oAKE1VIyB3VRK9/3MtjPYGQin6ful0UCCTGl0SkDKkkd/ZTjII+35248TvqVu+tOFaPjw0f5ON3UpDrujq+GVt+gmpAVLms6g45G6OpSbIMUHehEFX6sduQI8w3k1rRaErIIA4j52dm9Sr3QQoegP++vuCmCT5+O3J+JlomFWylMNSFnh1oW0vHlH8qwBpKL/1A6m4oOv0e+5wP9Bug1xd6trEG43x0OSHtlnkpvPTpiAp2RONDBNlAFs7D1PuvOM9LzPBxtBuLJgGuwT9lqwlyfFvGtn6DFfeWBtxbRrjRLh28aYyn/RdveMZI5MfwicegAXQ4dS0o3CQx267JzND0waEBvNTFq5ec2b4cat1///rXfy9eou27N/ekpqaa0Vn5fksKFtDdfMXHIH5RERYNyx8WTdQ8h9mxHZVBXDibumMT8e/0N3DlkdY8zpqMoBKQ++Ir/QZazAh2a5gdzY5YNLJGemKS4PSassHVLU5Ixur7TvN4e33L3DTLndpsbVvDGwX8U2K90q3I1Jei17/dPM100/Ltf9eY/7ymrDAr1ik4bsyg/qpItsu91cqs3CkbGXTJboH8nBUJx5vmw+59DnntwgkYJTbPoVnCsc/SpMA8Nq/CxGMfz3OXtUn91yr9+/cfveM499d/s+4XZ+Fux778JoAETCqY9X8c8/zjwn8+unfDvCAvos9yC5f/1IPpSCk2P2jtgFoIYRodffsbvIV7SvUTsgrMOxD/nd1P1O/rwSXmlJxQmIUFsLda6bufSiNoOKvvHnIK0rbSkOzyFkw7Int7wjwnyz9MPF3D2yvOEjNyzKPDXYgFeD8NVQ19nijsQjof9fsdS4uY1hukgj3otdAZcBrwss2ynueJJq01JNRi4hqXiC5koHGjzjmbd4uzXByqzRv0fA1Rgc7ZN2tw/94J8xNj99DmKQp4vtmmPv6SebulQ5btDvPcrb7QhOTCRneAEtqcGvT89TOPJHGORFlsJ0ACiFpvfy1M+n7TkqiYVKc6IBZsAQXwceyz3iUXbJk1qR+rxgLCmdb7ZaL9eAdo5U4FES5NtsMC6bPt/wVor9P6TXcHI+vMU6nuyo5zfA4aJePwDuSEJRj6HuESN6rULoP0uuT6nR2KzgVgjbciOY8elq3rk1oWXHnTG/yCRpMFGXYtSXXTIvb+eXnVJHLucBO9/kuYe3mYnbEr0fNd4ITz7XZOsVm2NBsH6tNQPubQqWIGqNe0iD+3z74DzTyfAi+N3z7MTXyIYWDOGVX6IX774dxSh9zzxzj/wx9Hi1/e4J6A7erwFrCD4Rvb0MA96HNp6geE+/8Ff9pLZ1HjrlTimgz1an77fjb7KhADuzKIKn3FMKr0NzSykJrndfVPjM+3c1JjsLHfC9Vkg5/faKxgwA52qLc1Sa9+PvPm+4uCNjOQpRHuf7ibjwVwu0+F8LHoKrtodsF+b899u5yn9sdybtic4HffDpCjfv8SFrBSPYc9jHD/M9iuvg/iDJ9LlM9DXqKCqzDK95zHovejCYfewu6e5rE2zHsX72oQ1AGN1zjMTez/Mn7iOW7U8+LED2jcsVnJ//TSWzY6Kk8chVRkhwU01sgnG9mdk6ATgNO3p5KTdnl90sD3riW/fX/9zM+gIKQcUmRPK6S4JmRXMLeAAUYC4fZ6NzIzhwVgY49FV5lVSmP323vOb0jz29si/PztZ8H7n2FXe+s6dKeTk03NwM31TOyHc29DGqcSY9+r9cKqrdnSFlJ62YB57oLbYPrPJZz1kehxvGg+dMfNy3cYVfoJYVZbg8w7jRISCrOF/Gmi1z/J/Nq///3TkmvmaZPuDkU/BMhejOVFoEq/4RQi9t0cRSNS8+fshRk02ybbbMHIh57/fPSHNw89KZZZGUKQ2Bwct3iibNPF365K2OGz7v6jL7zxH3pQWzXFObEoNM+FqOyX5DveDhC9WHcfHlEO4jx51nu4RM7M+mmIsKPfwyHiIIc175jnMccSthgmEOl8v/2Otajf5x2scAnXyDFP3eDrlUkswL8Jc7oQhkivwUPmSUjDrJlkCZL1cU0LrnFvtd6HkqmmSDejKvOqU6jH6uLKGi0dIC9xbqhaRlRUc0Y+PLrX89KbW51VmI5/ldf/3rQ66nQJt842359eLCw/Z5VvTSza2sX9XJAwmCqB6U1oP2qd5b5XIWgDuEMjQxjysnfR5n2enod70KDcIejorx8r6ubIdqPbaoNcGEzyB/zZPPeIb2TpkSQBdCRbvU7ztDuZXm47BIK/frq76dkb84tbE8Js6wT8LY4OjvjXH6ts6+9QIEh8WV/rsc+zJNrFIVwpx7wKHAbLLi6atZp88a79+s9P6N0SSvdYNVlt4HNgsR27d0KQeNU6y+pIDWe9F5AEv5oj90QyUnvs+ioKQfUfXw890EZcNCpJzUtb02xjRstjU7UYN6OkKEP4jtemdm+j6Nllvr3+3/CTLLklvWNF1/X5+GnigrE6XT9BoeyCjRiS9tu0DCj+p2TH9fFldMD5HdHHggrajz66DNKqgDlLfGsfQNKejqRLk6dDHHw5v1/6RJwP9jwP6LFRpdA32u/BHELZ/AWgVjiKvgv4E9/AZmfbcgAsojroeubVqmpRbhavJKrWLCelDwDdxbfpvKO6ls/mrsQrFCpD19rTzpawUSdnYBdCd6F42hqCX/Rg6PWtxaYx4r2ss2SEM86y9sJPb7btYMhG1LKt9lWouKAg78pM8kaGOqXCJ6DXBLTVA85fvotfFth7e/wKQ83025/O/I20r9GD9Q1rAebKcvDMaoL9fGNO21psr8NPyVYpMwgr+e5tMIOcbLRfS6YzlM+z5zyIAp6VHR+JWMo9mYODcaDWgeLqA3QlM9tJ6TYNZLUf5+7BVsXu5Omgs2T0PJQqLidgd/Dg0Ocfif6VJUnbVxvhHahqvwJXneV+9ioymaZ+c/w2PFb927pTUdpD0ZV40tEHje3AzAGKklmhadKm5d8uTnnwpO6xGeSKvd4H1AlV69iHULwDj+uGHsdop1gMJpFt6SRDzTDWHhSRqw2uf+JmpEPscyfLLNQ0fcsHkF3QAW8KQQkVsn9auwRQ4YTT11djd7qkzPVIEyIZ9SsnelWZyOooLgPXS5EUJ0u0THSzRtl6ZBxmS5y/3Ef95NjhkVAiaZ8VsM9FT49uHdsgJqup6Z9TnDJZhq3/xMqeFYuW3ftwLM7ARpcRbj8MehehBRCo5n/969gfYwZM1ClCS9FgmszJ+k0MkO8mBgKmrss0K4ysD8awvNEB1iGPg0ikK6PcU7ohjIBLZ2RIIAYxQQlD+76RW9p6hC/UmhpZhZo6KsSicS2ZgGwRmo2mYjILBTqhl4AK0NBFZYyJrjLRuHIw1MbGIO6wfQTN0OLbf5/5eTWa2wvbUL+PNpuHsnN6+ihPKU62omlouOxnZ1GhoUT4wR1GQjDEz58OqQADgYMuk+JR0NETj67S57KnuiYI/TRkY1YmwNcO2LhrYiBoAl4AWgCMcjSy4ZmvfGW3gc+bsHW1eKYwRf+OmSSkmhhwMAXlk/X1gABGpF73azCEjsGUgaIfJixxwTOOFNSX3FGYfu2dfFJHxNcRDHGhqEKWOwZuNKFmDcExidEP75oSSUUz3H40H0azwjokdoiWG9etatrQEd63RAH4oLeVFYnsuZl1SHc4Q5cRNp2WmQK+VTq40VQoRisv9fbrKqmouJqqkZWpqNK3Ro9N3wZ5PhmpeetE4AWI2L+zI6r0zVCl3weytiS6PBOSB7jRNGWTRZgiV9bHw5D6YXwMCTGKtTOSVUrqY4eb0U6KtA/cYapMhns2VDoIff3HbFQxRBRNtKODU71vbxBUGczBflsQcVev6GqepWIQ7QPrAAhy96/RMC2Tp/wsTTUdaCmvN327xDRyOghHNfCJBi00MfTI/pUNJzXRpqPiGqOHpD2OEdwhL5m89M6DcMRwDOlC2Sv4CH7iGFgpf0I/hBoADNHlYoKPoMyik1XwQGe0iem66O30dqDqMvtnExsjKCQ48lKJiiIsekMWFTn/6EtQ2qDH8KFWmfRb52T7k0E+32sfgVnMKDNtOv/r6JyKJhwVu0jXf3QQPIo6dG2NETyFW1l6kNbMZicOEmcnebdHKhh6+mYeIz+AH00HH8GaGL76+A+ZmPZDb8RibiPrbwXEGk2jURcrfem6FBT9SCgAfoSOjGaR8XsqO6PALzdScd2qTwM1zkWAwzp66+PyGrcEI5XMO05vM4F7/+/rQaUAJRw/ArImHhJHUfA2B4YSQueRYJ67qaFKX5dqgqR9EQpW3SfNj5zUYzjs9E7chv7Y843mD92pFEk4r2An8mvnszn4xmS404Td51vtws42uEZ5GRkCHLrX2iTwHqr0b8YZL/rusDCw3tinIoLbtqqVwTxQwAsNXbGiN174bp0BxWVbove2CC3VnVfN4U0DRzSgY3MtKADdQpKYRA2N46zEaWPfthlPjwqKMsine07qmbkccPaD4ctm8z7zDUC/eEUldSJQWva4TqjiBk6LvrBuVZ9Z2NlyT6tCFezFsQAVs/ydU6lABaj27jNHCJUaYUksmtK3NlsQ6QZA/WLz12vKYiLXFkvFLuqAbZmPrgJHb5U8dRVWuXO3kGqJXmwPXizxYg5kE3gBWilZOHy8leGyMYQ/i+cDC4AHDs0L7KqTXnbgOQspmNx8CzlYtFnr4xaeP6wLpTHmv2Xqx0SeTLueCYj6yb3mGyQkM5fZgBxgGZg7DwqYErxrFZyVyL5mnc0QWUcwqNanzPeBw+Bwc8oZyr/SqmmwDnSw6JqB41kgrEYLsiRaWo4Ogsrj+jH6j8sVOCpcUnrZ/EipGimiklec2vzQepKF/PoON/0WAfLs6Cotcf1V+taX1sDLYCe3uqOapDlxbvZhqiyDDVNJG+drlf7VkfFLSHG7BHNzWAM093mZc7HfPkfQejPkBS7WIIwRaXGwqmCZKgThtyqo4RQi2F9/j065oJMVrFr0LiCxw/n2TuMJzxm/lXFFB3nNqakbVu2yR2V/dyhovZcSLwXuHGWNdKB+n5khCpYHKzse9kxEwcvO/hDPYFZ2vuVBUUdiyK5VG+TsDLhvHAq45bmdZtb7Avxy/PZBhhFlsFr0o3aUvHlz/RXq92s6Feu9EogXU3Xu+CSLjdfmVjYg6Mwtj7GalhH1+7PGqN8nbEpdopBE5/2rzqUllUvX30Vs6NfrT55lLrD4OfxGD4dgboZ9BkkMRDEKXma1inFNdB5xTQixaGcsoN02MpnTGdQZc3wvW17OahQrBfNmpgqYErToVCH5Ta/CeqrzJJXcEOfUDe4bchU5/Hb/MFzDuhhTekTKQi0P9CpuhjxWw3G3CIu+OvsUi5ajxqVdVJzYPHcei87hd0kcYnkdfpfUHffxnTvwYjRyeDmuLWrInael+o0SelUOOzoioprX4Fe1tXSvq7RTumNTWQt+T7k2ic8eleRHe4egAgVN9E+SXO9k6lw780b41+pNp6VDopCns0+L/QBHKIp74VzsGawK1SSNJV1wz1vpXIxuld6rziFsv13upK9V+pYeu+UNoirG7MNiPz/PRrFLOz+ENwCeYFqQq3QhquyQPLXk0Oo1P7u+qQEcgZzhh94aD4/d9sWexeo7Udk/xd83G9Eur+IOtDruTw3xHp/bvOgEfu2nOI8t9s2y1Kez9HK5s+iwo2UXrulQ3fm02dketfgO0fwqbnCWGJIUH82opGDvEBFEuH3OxbKQ/p2MYnkQeN2DrxVP0OES9exJEEs2bxXZxqriJkdmvrr+hgCbkzJYaVBLit45f63f9+lwTgx4NxuOUp+STnxcvbmeVPPzptXvFUOwBjru82sO8AOqPdg+jVtpG757pFg24TPb35HoLNtiGdHujX82fdDU0gi9KiuWNcTJzgd9I1WR9rR36Q0/Z153uLhrHIumOj4sTnQO2GLtEM1OxQKsdzmnsrxHrfRbWGkl2f7W8/ZVirRTjlqXnBNlh0NDD9s3iHJ0Z0+FOMul89YgdoRwY7OsR7FokMyUku0Tee2WHlv8imXNT91jLrJyuaetJAflIbwcEipjnb35+yRN2azUkuTI0gX5kySQzHSuKUjO+GhSsn4qnDxpiKx70K+3ymIAMjRfvGn5Yq/SpOwDqHbb1s4DkSSwfoyzZbNBvMnGHNbjSDqz97nw+axxYO02efGBPjo+dQR92ABUWPOiNyrjMzxatCqfxvDXEx45qQbb2cVcBOKXRE0Kt65ZYnr3v898RqmAyqpGDqhwWhGOvIPwERh8PCHDJ7uuJUU4vYqEtoIQ5ysmPja9c8LAHmNK3s6AYHgCNM4Pcywr1KkRodwX8CuYoH5/J1wM1mbmC8fJ5KxtqSEHmBg4RgU2RVpaqNIvALBAY20lBw5io/QywQ4C6//jNdfHaJ0B8XqyFEUEP775FdUG+sePCFvd/49qsAjetJWinjgfqr++8DSGI50fL57579UpiEWZb7BW98k7YF+8sQ97/N1At9CpFTtFK2/a+NjcrBZti1CnWjIF8+d1KVlnq4LORmrSTt4xvywmk5uOu2ZsNAlc9vGwAN+I9HAP3sEDTFQnFATcrKBS8AU5v02DytwW4gx9X+X4XqGdFcaebezgtcpaBpu7uABFwzdNoBwozAPBMghutNIYIb6E8N3njEUTLB0hyZ0C55qs4AqToX+rrgQOYtWKPE7XeSAW1g7wt7nQaeJz5neO0wASCCJ4NUvW3CHNVPigF1KZdQ5WJKOogffpRogzAzeEXSRoz93hiKcQkKh+A0AWxq8uWvqNjySacMRgT3HMBywxCjZB0A+oWRtYWVRs0JCP92cgV7HbGYEDZFpYC9iOIEwCKMASC7UYtp2OBXrwfz1ECBVwxOTB6IPd9hb0g8M6dNSDwsRXJGtDH8xV1sjHqxtAP4CWYoMmlOL2ClV4uubtK+Ct6Q8duQ2flnFFdzOcawbqWazLhiokM0lsLEIeJOWHx/AeqvbPNh+swOyCfDyqXPAqcl95EaX8hCMGIoA+MvVI7Ky5BmCWhbbhJCuLpgHM+NGuOPjA4rZMQXRS1hy8/v1qUzCgD13cnmIBnNcZIyVdE5/ZjgIJwiStk6xIdKmohyYejkOiOu5womW/qq5WBczGkBPc23LEmogIa0tNgRa2E5dXW6raxNfu944AYgGL3p2Hgs64ruZeH11dah9rl4kqk2odmyHW1CPpnWOTaKSvkKhwdQNj7Pygiy4LLBqBjwnOnvYqMQPTgyGoBjQwoIODJXToVFtZrXRlVYpjCPGukb2waDMNA3jHbjtQlMi2dXjXsFtUYm+FRQ5iEN6BxcsX65AuYbUYJ6CL6Otrul1776ZtqLP6eynw11Az0trDqRpfm+hVkRu6P/4BEY34UFR/UjXAdoARUBWUcegiFKIzCMQ0iAMSv24XUGpduoNssRBymfTVaguQF95f3L54iY7hVmmMGm7jT7++xx8Nwxb48HIxGbb2hwEF+F9MHBOCRcD+PmVddRCiHdVVbRa9DPBZZgBAIDEGgeu9xbsWipFWHMYgE1zTnuiBB0CLwt7VqkKjQgyS4LUx5wJwoQ3aU9ohUSJYk+ulrbN8+WpXzH54Dtb/uilFB0g7xTMdrDL98zW8GAv9OwHo+gcZY6o7Qoswso2g1UbPaLXrz/+GMW/7+1+x+UUlTtJlPUIM6vjqfszai8yHkjJMaVjAohWIQxF8BGMD/odadNa6x5aLycBvX1YQHaIqYsx+6qrGefv4eRhpKeH2uyswY9bD/Ab0gRYTqpmJKsU6uDyTpqGsR0ABlKF8hESjpdS4Yt/4PRwjoL/m3ZgBxpKvs5++mpHijiGZRrYCFICGNMykVIWsjNhVaqU/RZfU1JhrS0cyKM97n4OyMs0fVAMyIfDITqH5huZb3gJdB/Mc6dLNwECtvAoRwxZ1YY873z8gTn8uJ2WWodDorP3weboSBcxEIlP/r9+P/XIBGPObqNJnoETMwXNZnBbcW8UFiKTTrDYoVvVpqTJRpb+Noo6mMTnMsTS9qKR/cONMf3z/648QNSL1eZGR2tA4nhz6McVUs3RBtlNXXZ20lrUFfDitnV1+G6noxrL2fBjO0Oq/EtxxBWyAMR/P0DhjitbNxJUACWjtvB1wk5gFb/Jvb0ZY/8DBKYAEtBwsRXR/TU3qzZlg4kdU9Is8QDVAlf5BnA1pZr5yfaBmmmJxS7Fwkqyp/WA92IyAuSHgP2iKgP/n9z+Cz+G71dOxTx0NMiNYgC6x6CsaDJphVNLfP0GY+/HQrw9MtVOQqddPoGtBmTpxgEGhWG/wPK5HQ4uO97teYwhHX0a+C7SB7UH2vD7QmLoxtngjmRwTqVYz6AUiwsaQ6LVwX8/uD7higpe8jb+lN35F4Hdfpi7glS4q8vSpN9bSuhJcfhb0zfyYGtsmBrFoCEgQRq8e++4b/AcnOT0+WpQDlc4bicBYQo2plyYh7LSsNSPbFW5Nioqkq2sd8KtcS1Wmr5pmrVVSVwd286ojVclsbXbqWUjh+bYiDRc68U633CIYAdtJvBNjY5ZzExz5pBiKRI1gfYKt1UKQcGirrT+tpaRmGEH13X6cmUX1vfE3PEc+XHjU08XiFDhEOKKJ3vllUUVetQw0Lexx/AQhlNAxk1iRbItHnmWjnJOhZ2u7tUqAzjwwsWqE71cPut1JFQRd3vTTvz8LBOvTvcDEEhSrW6JGkCfb7YEdNF+QEYY+lmIOqvSx0WXzVoaOoQKFm/jUo2LRShkKXiqQQOF24JjW+AaPva93LLTLm1NQW2F5qljAumNlm18t41ZLIhyvokrfp6hiUTVOYEMdfE+7CjuRnLErJyiwIBQkCd+XeWVODgmv38lMiDxUIli//a7bkSBBM8OxwqCA53nY0QHdKpwM/ULfrZ0Cognnp79qhC1eXkCrCq8/E8dh0WggzLeex6Lp/oW0YJ4Mu+T6d1PcE/furzOe4Y1/KKqIqFRw2goLM3E3cwEFCEsWcbtxXr5lipOj6uGhHswNuN07BhQ998RYfc8vHdwR3M24dgUnO9zBen+qIG2rVX5fgUhEBPyx6JlvENI6IQq4jdfWxeYkh9laTVYJXO+UuuRn13DA+wXIXfjksm+4biyX1yi2FTd6c3I0Kjz6g3n8fZbh/pVSQXJTvniyihNEEAqw6EN37/70myvpZSJRi3/QJZaTsUc6dPlVknQ6R3papVzQNgwP2ukS+/kqv9vGE6IvL7xXPvriOfPh6NGXc/bENd1owCzY4l1MIar0y9mNtHLuysPeN2oPixJvQ+45lVYynK1o0zkk6DzCSnv2vaLk9ICiruya8Nrrmiff/lZz5i2UDxoAdF0BsbrgQO8L8du7NYizA+GY1myiSj/k6Zx3wO0b419qgzkFW0ZmlqFI5naH89XACd7BblaBSZeo+CpIZk8R8s9W1Omj1WbaO+QhWjPng1m7TRBxAlpg6Q8y531VrCNGQ4LKaGlyWLSg6gigXs9Y3OFkvBgUvGDRzyAV/dwpHW7N4VSDDs3c4um8r8F+b0wap269oq0MoZzfzlz//ntX7ulrNX8tvyZsQTxJa5+CNY9xkFTMia6UBmt0YdETR/9YOiF798l7ZdxK3qV9fqlbJ9miPQNJr3VwzWlpp92RGtZ0A2sLs5jb3s2ONeniNV9tPvrHn4hSHfQGH4EbvM8+5NQoXzafwW5UglS0h51D2eI5crVj5MOiDs8vX0ZW1qIfdd7ZecMpe+7pZMV6LHpgmoV3TSadxjX6xLuG5p1GnvxIlXweBa9dBwNO1B7kFu/zS9uwa0TUmCyt7IM+RiwaBa+//Zr0mlRbtBtV+h6QNr3RXq8zmLneKTkyXa30ck3SBisE1Qec2i1rbXquCo7G93xz4f6EECDi2lkk7R0slS1Rpb9f0tqE2H9yYZOe5BSP/7zXJi5uxrw7wkFZPC90NkPjvV6a8IhvGaRNp06d9CWbLicJ/gaMY/AQgQrQd9/FHX9uqeyfn2PeZRmmX/rWfEgtkyxW8hPOO5rUFnU5xY7VMyWnFLLnvfAIVzt9un/Ppvcl1w8gSw/U7wPGYYKjnipypk6UWq5gr4SZ59juFOwSYdDrIwv4ZR2CjQVO7bZNelZ7hUFmYiWxfpX5sK9XGer3O/XddKJiWJwjbjqrtx9yagnzV7I+x2M/9DAZwwK6IsIMS6eFfmZWOtuXvyG6kMuidjhdBKByTQy7BN4xl/Bsp7b8fDDsuOxT1sqWFcEobSGYCoIQg3oDD5NE4bxYP0w87FSuk26Rfjmp5E6mSqRbMq5x0ZjdwOGfsgb+Psf8cNG9fz36QdixrN6mSNVZMCrJcpG0O2U0+ZPEW5N4k2LdCI8C84MEoeAX3tEVPSaWDsXmjZKsLDFQATqZapk0OfGueYkrnZLz/fVLz4kU6E+2LWxxAuNQ2fEqdPZQOPCahbvFWQ4APJS3SrQs6Sy0mlkQFc/X7m4imfTDWoGDaeRsqx6DZqPm5kouw7f2A0ROv4bO2e4Azxp/bP6yLn7pN48+TN30MYAG4X0VvRWgFhdvtNMjw3WCI3kSHUHhzf0mWnnP+Y7qTBR2p+5B/EHb90jacSNs/Tddf7YaIKZNf31GMn2xRZm0TJ8GBnTHyp0MDXrTBj7q2FRiHjyZxkG7Gar0YdJAFoj/fCxQlbqtYIbwUgAVMAZAauB3HQc3+5jATzKO+DCTsnNkHh14plE7qs6aoUI9nM9wgDek98QJQI6WLgvkWyrTANMJGT6Ojn7bvUEn8ZpMb+XuRXAc14Ddg/q0dKlaGJ1oyTiB5RnX9h/zoNAQ1RlqdIdJI/3tmx9TwHqNIgaCJWjJKN/Wr0xVdmGTSPjBMNGcx9hT+/xYb+AikBCO7sbI5BO6xXkjHduDVaytkaiTuLX+2gPcTZUw1ya4juhny6PRE053mPPujQcZ6QKYCoE2xkWHj16BoEOVsE410fRiTia3PDYDc02VH8GEIebjpRfrjFXVI/bLV4ENYETwEbRV7MTDX2s+UBhhRtRvrI2NBUQB3hBXfxoZUIDmrp1UJq4ZgUAFUwgO/alwh1V2PtZeApnpDCwnJBNKPspH0JLvmz3kC13EEO6wsiVLTKM6B6JA4oIYRAIYWrVo6lM9NJt1X0MyupjU9sUZwOlVEGIFs5i+HeEzUqJ4EEYpXV2H/WxdJoBZEvsdbojco37fzQgbaGgp/0YiGY6y7UBUWVxO2qqnBApzQ4EEcfmmaWkYmXBV5Xb7KykhI+HnT1NG+jzgapyNqrpHbAcCKCa1z78yoJeua64GelrDYd8xaBtwoXnvdkHQJX39E18kQQzJsl0Ik1DqZ2bWEYailzJYCJWp7qnR/lAkkJqPVINU5OUKBQxJp0NDvmRY4rCfxrE4enJu9MK4aHI1ACwDZaptUJ0tGSmf09cxRMAOJH3rBVXBNjkEDAKUiHqiJ0eF5l4cC6FKvfZqQC0yH6qhI90uiKfkddvjf9UgUAGtCPtEvb+YbqqDKQg3CqGfzKpYK7gqHeYDam0Mli19NPXuPohoRQedQ1WZ2KPLRlsNDdWiBsp9aUwmc86TqDlFIehKtK3qRsyz0X6KV+76290lagQfwVcNyoqaYkMWEGzuUMBoenCHKaB0KTEsU9stGcpYtDfqQdGEwp/OV9JQDifeaR1YDJP+Wb6YpEtgJxKAqvCt7DwZowcHpSvGHQuj0pZDmXh0DbeyCmnK+FfWfLjIxyYemL0eH8gkYvlcnBaGFlxjipvQysYtZlK2BUfPUjSoWafk1loGBv3b8AmgrWMET2mp6ZLF0FL+QaUYOsU+/5iyBE8AO4tEgwczZ+UqO5DIN+SW2mH4P552xB9wDd89qYQHk+rh/bRWS5eyk2BNGxiDNX0P7ynsle3WDA0qKsgd7SDHbHPe50LWSUnfcfEkXRnYdNZTICCJT4ALwB4uCzw2Fmiiyzjf0I3hlWoLe2UMiWSXmbvglQJ+3+vO4/SvTVmaUFzMzgefAKEg0OC595gqZvNVVad98QFXOB10MgbNLqXyO5FwepXWwR+KOFkWi2h8NVqVUT3L0KXkPfdGZyk+GxN3+5N1Kf5HEjFL6PZbyjc0kYFhX39tzWILqFDsMBW0az0ojz6piXzVBrk1RRXIEphiA218PA7jSAD5rnD+uTD8pahDLcfpkI4oLBdlLV2zbRMHHfH5kI8FEPATgo8AbVrc3bAqBgj3BFczproS8AKxuJswy7omaMLthkXjjIaWv9fvPEMXlcr2e6G0MfCuweSL2JorfgBJ12qv+TU3L+1C2zTO1lKaftRpp/VuXlBLFFKVKLXBKKTmxVnK1k85zXGhgffW3RC+DFVqXbXX6URRhbrEJahka6ZK2PFhp3ZrB1UPDZF3lhg28myn+VDgBR4KGxLctN0KG4STmUuWb//N6dpPcJX/G1X6URar17x26nbPYkiUeX5ZVnRbMVGl30pC0r4c40dCQpXgnAQ1//ucopG3qYjzlql6aNX2vnB69+jeinWLRIl5lup5swXm+8X6eu6o0o/IRy9ommCrWKlVvMep2tEBA8mxY//6/V/3170w/+HRMqYHlRMSIaE6uGcAL0DSy1wwH0jwAsjzDSdGTIrMHHaqIzr6+2TetUXxcbCr3w7FJ9g5wVCCLc3Wqtx8UqxHEu91SvZNULO1DeLaiUmtx3GNW5l2lCHP3sGSkjdbbb7Pkak7+1BYbFvICPdvEJyy1mDOjhLXgAx9vQbNMWVr6pwqS73UooxK5PqFmglY9KijicHmXwQz9WPGFY7FnOehGlknjzi1+UZqu3m5KmgS9drNBwlUAMmdwXV2kTBsfQfMX6VbWKz53unzoJd2Qngq55SVTlnmHqdo93yKZZaUTbIih5XWEY537Uw7TqpLOM1WkmG+39HAZHaXebA/uAW2fiUxmWr6xxvhRI8kURoE6y8qTrtBkWhnD4RtzS1ZPyTfG3lIMIDtuNcrhWLYL/FcXwa3usC7q/eHgKNfRnLMyCHc9pyRfSharIJ9rPWcvag70Xku7wQno02R3bRXyh62b35eO8PNDpYiqF4SVMkqN/32jfDQm6Tf7h4SDh1Kel92x7WmMtV5EsNHbDa6J6cVRJX+Vr1yQfaA9GuVfiU7mPk0ldveIN9nuZLX0c4vcNlvf+zdBILaoJKBFhC6L2Cky77BjEZU6XvvTnjNebJeMdB6Lq2krspvv8dK0czB8RcXfhkZ/2Gi45eKYO4JzDoe8Jx1s6piYoY40Z2ue2xBGAO1q3VrLrcyTb6XKFqsxhb+Kp9/2Ln5ORNJffRI2jaK/ECDZlBDuNEoz/RHuyQsZ/jE4tUFXX9FNEW2BbRH7Od7d6EJh3mJGx3MHvYHYaybn6NMCeG1Y9ZxWy+8uL6mxet715q6tKA7kbimRbG+8IiCNWxf/FQ3h7cydnyLB+Sebu8ZJUxC65+wjhS2ccqzZQV5c/YBXc5pk02ghQHF4H8kyfX1mSeXtauEh/CuFQ7z8K5lGF7GAlLleyNWcjOikTRfkCoqc4O+18ECknFNowiMgI5AY1DJIEmFwzRXpxgouxzEqwRYmCQqNkOpam6SYloigduMl2GYnjAsr2HvtbI6F6IoSU5AEz0LtIVQVOnzAw731tcWEFX6Egk6+tnTVlEx5VJAESQRXX4iVKBaXa5S8KLhWFo5jgiQtXhvUE3NjgTf1haF4Mm32zF2lqBqNV27U1HSEhYe3m2Psh53dJ1IcY1vUxubi67YqFdvksDPLtRr4fNy9KzEjUGe/FFHycMcNq9gDMzpKRnI4qFzxXzZi6JQhHK4VWbWsPAmiU6npxsNsLkZela2jX6e9lfre/+8MRLw6cKFC1+cPY8+L6qfC5GJusMlfQXskio7se+RIJFij1hMy2BzB/QzC4flIvuroaG/XOKLqiMs89q9RWmXozIX0hS84XD/rFg+r5ghtsI17C3uYjpuVGyWr1eda4nr91FW54rZiDSBjc7nJT61tB4NUogaLR010Oufoxzue/p6jQKLNu1UEF2xtpWsGvmdKLdnT5LQL+tPXNNMCQ29nSqT7ba0VGphl2BW2vQbq0aKd+BUDt+zusIR+hgPN0q8IcSzps4tfXWLgvNk8aZNP1/nwY1mrZyhKMloFYd/XbSj9akGKTQuTPpJJUGXrcQbUhW8bgnsuN6iYopEMh0kkh7xzTTqxDV9YqtKFmnigBJZzausxE5M5BEbgg/ArWM1yRU3kWmta1l1j8lk+vlG9jacXRFV+sjUax0oSN1IotMjdLnK4TRN2saqlo2wQlnv56EX1E7/LLt7I4NBOdDFv6lKJTdZYfxR09Q82/IELWqLt6eU6CQQ8cS05LN0Bm3VKG8ViJxZG2W7N1Ip1LWVrLM62kZebiX/bEoBwXSgExBMslUM1wVnV8oH/KIPaMHW9IMMHQbGJjtlt3FGRjlQbb9RGXpSPvccUdm/tjxnI41GFp/ielT4BC79ferF7yiTuICAv4FxfN550b7z6KQ5kO2MBWgWRpbY+ZLppLUNA2c11eyOb4Dk9ZVQ0E0c8p1vRFJTUzOytGbvKjqZdiA28QCJRg9X4ipFoNf/SgiOP+nkzAVkZY1oWQcCum4aa1E3drM2KtPNwny5k6sYuFHBIWjZJkeZllgMpiCe+iQZiFS7k9O8k5FqRmW3kvY80KTTN1bKkUelOPhzz1lT6bSz5dihIyC6taTQlk5TujKy8jucD56fV6xtpaGQwPPIcSNto1uHrv+4fHHK9tUlW30ZFOW1ndfO0ugUx6c8S6AclNYC5YD6nx9/S3pQpokwEw8LwBtSMHVFl0LJD8OiER1/fLFlLZ1M9m0lXYIYqK+iKUUTCnaNGbEeVD1a2CRbiUGCXya1PZ+MzerukTikOtDk8QNQbOgqbJDQlZSV6ajS14MZPicZSRBa6ygLgwAwbmndaCqhunT5hcN3TmsiqvRVVBIOfQaeFsWaZ0xVyBheGtCEgmllLwtOPMSI7HdHqBpoRXQ7+8cYwpMk/X7JEkOyb0u5L5DMhpelRGUM1TIkWgJ+dO3t8ThYh7TyxrfUmuCa9kSi6hH0qV1h2PvAB+aOPErWrgBjbMnj1x19QUSO7v8wHqdqsEw1XD7vQDSTrGz2oGMDR8SjVUgM8UCLryaCNRsC4DmCmoX6eHi5mvbY43AcxG3WQhbeRSyaELdMjANOYW9PCb0ELUCJpr/XtUxTDx0u4JgYY9zqcpbQ9QmT3f4sJQ2KZUGOFRmbrctnvl0CzcHtYpstjabmBSMb6L4xXm9Oh3215wz5U5hgQrMnwzAuEFAACFXozEclP6xkzZ96bEx0Xebl+VQNKCzy6SYyRpj1T7ajdxLK1J0yPSUsYMDNSF+ZuSsAbGwE1IdeJ5DVltz9LdcLd9PIizXdpKKCBTQ7wiFH0pReNlQDbvkaFg1BjESayVNHQITmupWEOQ5QAA+qEglQBWU6HgBx4sFwmp6yA3QRPABQA29jvqL7Zxc7MvBem7EfKiOHjyp9fzM9WtYoq4mOzJFtWmMEbGEOjWn4XxEfgRoIvtn/PgDLl6RIjcgkiHbF2bZ0ZTwAchdg4hj+focrjA0wOqWKibBWmevfy5foEIAEKFPEA4CJSY8uqYoOV8chw+3xikAbvIsjW2oNiAeAUBB1qcoBu1ppSH21INqEleziG8B7hTTRC6hoS+//4AfNc5GPg/d8ni4TlTsToVQS2uyll/X1wNz6+gDQWjewmCgSUscD4IKf1LTHD5WcmKhYC614vsPhA7Mjaaj6IIKG/XTRpROE/xBPsNfXB8C5MQKQOpdG53A73NVWPABEPgQPgKY+xKAzizENf30AgBfw2stqssOz6vZmTyTm0YTKISuGBvEA3CE6Mf/vATC87AoxEJ67CSCubVQd5uUuyI9RHOzn80kkTbfXv27/djEeAellNUN9YgGZmvpKzF0EyuHrA4C015K7P+e6YdjT9soF3E8NC4CEh3/qRtLLxIsB47xQ25Cmok9qvmJCZYQrCfABRDH42HzpJoVKcdzPkbjgK+AAu/0Ag6F7oNsTXwGBYK/c3kankTYGO19RNkOVvoBqTaVqHEjN2EgyY5wf5UryabTIxwqifl99Y6X0bBiNbmvLWTiJgeTxtSc/Lv/WdNMzgaYVmdy60S8YH9zUVUcA4leHgu15+Kaqj8GBaDCNtU29vAR/b1+covO489cHajHk0suCMjcjtbC1uclrKT7qm9+JemuNjeM2e265AhnrSrX3FaaWlqUDh0Ck4DusYaMeUSzAyYtQR+2A98qPNoErPh4WbUM+Pg9V+tuo+KKLHbnSRydHqQm2ujPwx8Tys2juX7WfE46/ZHKAHb2WbEc+W6k420qmNVlxjxynEc0IaWv1aOqOVA7VWhXfE4kzV5jqlFULJVZNNJrJFdnwRi0tZSz6MVqVCm05o6sAhls7MPRYHx+zl4XL043wvReUvJYMqR+LBjYu8lbN8FnQBh5nSx/rm1H9mziT+A7TP9s5BHyLWtQdQZgtmW7ycfzThaWBqtsaeQQXxuU8qAZUusqDQ9dvLYdCuVxwuZRMVtoY0rAWX0/nsegKLTjY2OsfGBkt+fF1zUnArEEogNuNTNqYDKoBTTPKSHB5DSqqHjwpB/KHlqlNIgLG4Y323qLuinrjS1OyjsCiioMjOFB3F08m2ouCmY7MAvsAOeLl+5zRSg4I29cmeklFlz3a68NRBegnKqZaO1Tb87EnLN2bJufFOjj2JSMnPwkqUhCLm20rtuuUlrz556ft68+cqRm2wmbGG0lsD5dsuVQ2Lba8GjLiWVAbqhor9wyaLPU9zZIK/tq+KeWia03a1tLCShY76XRUJvoeuTlK+D1Tx7yvFvVcTfTzrI4r0g22lzk/LQrd7cfitYdLTjXIRdjfFUbL+bItCPin5opmmLO1K0f48v2O1vPO9qJotB9lyD2dz4kLd7BYxPboabGcF2JnBVcUGzKW9f7EXG6Gvq9hC0vKHxVb7cklFiChYNFpp6zDsWhIUkSvv2eOQX1EtDxAOu9oeTURi+5zV45lJbkuRCXskbtyUThi1sniPXm2JqHOVYpFW00OyXnlJHF+tpzNnheLF3BnkrOs1AakNa7PMv0b5Szuejdfs3IWsREuxDW8PVaWL4unAm7c660twDV7JdajWECBi7tK+Rm0zWza/vrMGfiRxFg0r8rMPaLd3jtgX33RXGJuyYAaSmikSexXbm5vsYC2plJyDjhYW0sTdrDYNa+3b382xKqpivFtWp9EuneCG9vghwC559TK8U/3Azs8Vx5tfh56kNeQzO62nnP2rLbP6Y9o4xBN9EW3+fxo71gTZgYH9fu4RpQWy66u6A/hVTujlBSNmwNSBNXtA6rl5WZNSBUVs5DOV7AQQNFZctH8Glx58Kk5x7Kjw5+GiFb6hZyzyuaUB49/mZ0b4a+0z6C6BAtaGlCl/3PNmfdgYml3ctrS0ibFw6jfV9QBic3Lti/2KWrnXroxsiV0zp7f7h2sWlvAK+hw3ud+xNM+m52dTwfwIChtUgLVJFZa53sODy0W4FHNzcjhA2OABfCDW/vQuFmVOy3GhFfAz26KqeK0+aVusKrkNqDN1OpOLq/NtSrGtk0w0AmM9wIWwI/t68Oiq+z3z8KRiHhSHFptViaGPPQ4yOuI9e4ST8oVbfzyGK/3wmsXXfdkoqwlmt2ir3ZR+B6jlu8wNzVWmm17Lo2b7dd8Kryak5Mh3eE76S1rk3am3EXNKPQq8RGA2NixYUYXBclpfncyd3BSMXn3gKDxybn4oQQLyOA3Ol7ls6PZ5cuXQFND6Wj66Ro5IAhNZuhRSmx+XtQlmjjBb/cFTOKQ9Ndng4eEnZ1IhixIpW3SDD1IRS1DuXuthkuuv6855GU0xGmzH/qetHRdv/DE5lqKi3WDaFHP0qU9VxE6r/WpsOSPe1hS+7Yhae8Itb+P27EzzyfuZoHAp8jGZvNT8+pZF0aEY2JNlqOxyfl5p8OOfXR/f1mQrS0163il06S4lSbWE3RGRRp5lQ4IY0DEwdHFIWyZ3TLTFPlI485ucdrt3krzz1ckFo1p5fUCL4BafLEdUaWPQ51OgemmJRZRd5wqT0aSC6NyFZFIKZQOE6dSVMsKVOnfA0JspfB5kYnxZh8sIILicL68RAkw2eN7nSqPt9rZiuWuhQkqrauI1Lwy1dGB12CNv7QtVnhKTILsY558ssku4WRVTStwrplHwH/00ixMkMoLEzTLcEi1txSxYT1OZ2YkBoEWIU6LaOKt5tnHwTpwTBT1wQ0ye9tpy85a4/r6gKnQCCy6zulOqYpalKnwc/qgtlfmNaEpzPdr7jitP9lE97cKUoTB83+y0WnLLDYhEZ6pVgmoVos2Rwfy8k0pwoHSJnr+yXIBWaxiiJax9VGRdraZuWyHohX3et6Bj9BH9cgTNTtG+NTuzEaDjCHBOsCx2rerM6u4ShKyvvt+p8M99+LHNo97W4aTCbzAq02Iw1sIGsSFZk0nW2DtNtRZcxmLdiEnrHlSsgS7q9JXTsOZZaSlKzaPXI0zNqFKDk70orNjBQCqBqpwU8UWbO4H8esUkvaEK735cKjxohX3fphahw6IQDTwOVDRj9Jefp5ioktlwu6O/SdyAQTCFOYqWzMSjnVTfxtMgcP8dFomeEnam67/gz4enIoOrKLqwlHE1yAhwr8qB63oJlq1c94SOv7o7vx2EIH4wdNDiMnrGBEAVW2QCQ4NrEmxWKITw9ZXI0SnjhfrVuCY/4+RnkAExzdP3a7Qwh4cSXs6zsObWKf6qCAqx7ZkIsahZ8bPp8II41jcLaEADrXPD7tEmplV0N4mup6db2XDcVj+TVfjVBRZDLTpEb9n+TNWYQz8ayerTqebAvR05Ekmij5ifOWTYWgNtapD0p44+uZjKME5LvgIqKYJAzVWG2CuzCe4Bj/w5ydrTAGJSsidBDUWwYaBk0ZQG5SwOUUCCXgBdzt9hsuGXDcitp7+5m0CTu5t91ThxaBW4vqzMhV9Mytwo7WWEX08sNpD2EEuQN3EOG+/vbuZnlrKpjdQVhYvTqgMOQ/Riebg7bNoESgUJwpmMXyBGjtItFGuudhtbQYM8qugNaZqFilRQTgKBiTq9cU1YJSpAQqBMWAp3vEtBAtLUn20Hnd1WTwROkcbYUcwLFFAvsmUleF685g66IEWmPvvxteh1dAm7tgPcYQVKjvE0Qchmqey5yYYjtzLW6wQw/FakLYq4Q75B71evQRGrNcQg3TQynnm7WrU2mS2NIgpeACeyh5qKGFz31AQirP6vH0BJvg99HD7HYO454Ov37iBjkzGRFimAy1loDOd2EnfUdip6OuRPZpXEjrP/Q/j2OMvwnSyuwIsOcvoNH9iYCRLd4FKDKPUNWhQOtBFaEp4LCAGhSvr6ubt5rsw0NrSxJrOVwZlIDvVSk3NwmJx0rMy8LM2fb62KQWy1fcKQzUoRAlBdYOLLdQKCT4CcXbORhxKiYRgTZSmErGA54tsFgFzdqM3kEmKfHUGNjrU9gWBSbFkyerX19PV0KFfdmZvk5IeQwJuNDbdrac8+w0grXk0Z4tpqFedlsIwib98fQcQwFQoYLZqalDgFAv6ejSV8OAcSy2bpfd+CfDRxQPwv3EoVSSDXEhKKgQs+y7mqoQ6ZwlVT1+PghbURVBrZ4IdifEUySDMXKYJadERVCWy1+nrg9pqwAu4ToNPre126IkbOkYh++FBI32DZpcPPZAidnZNIMm3YlF9gHEtFJ0DsQUHqGDXMQIcldHKf+Vo104tkNw/jHwHaEN8r/ccHg8GETr3MTE2qQiwqSVKbDMQk9MjJ2x1xTAO2kDa6TWYVjf9/OaBthHUVNdnXjEAWGTnoKOf0ufCNmHiF2zLqYbOox6+i7+NSoK9ye8tSMdGqNJ/DGmaXOq6NUETqbm2a7e+xY3SkSagoIt+ZeIF2CErHv0y/l18PGgDI7fh36Q4NiaiZ5dEs2JTUC5r9zj5PZL22mEqUn8lGppqqipP2iG9NipfSwdW7bh8fzj6do9XhpyF5GUxeGbJalM10x+vwR2mbbo6RRqFdxPVNKejTFXsrKaDHiNOqHmSNekPRfl4XcNZO6Av4gJAL1mEbp2VH/t1GQmXpaDQoBwGi4bfLP3nN7dMtXU0sQBbOtjw2eX4PSphWexaG2MQ6nOqz9sBdT7pehIIyJRbb35eYwfKMzRwOxVUELteJpxe57OByzeJH1sUUKELFejmxKfN/UyfuF3e2xgkFdP/vv4zYVVbsyPkQL8GRb3oWOAYKP0XTsTiXSOHaUrdLEyxgKrhVaDNR73KxbIIDXw03IwWc6vu11uQtw3dzhjqG5HQp2g+Ed9js/m5N++HR/fG4k6Yz+hGoLCaK0MTg39rjnm1Q4SDxxbByJzHsnUrjgoO19+713vQvLg/lOn4MoC7r752LK7AvMDAUkk8j2vclf31Qsyj821brYbN7e9sWrL9mav5DjevSNQbDGlnqqB+nzfv0RfuEmwOiinTep7Dn6s3sCYR17g0+VaaB11Gan4rSzhsGxlZ2OZUjo6IUqJ+f5PF4OpOJ8SBWx33ccZ/ebRs3TcTghf1cbWhXcLm/iKT2Yd8TqNvmC3cKR0a/nCAlJS8WqOTEFYOD4YtuhbMWWj3E9v5mVfahqEnHVX6Vnqlk1LOnoQwr9XXUKWP+omfBTWvovQTdC46HVo9WBY1bJ47KVaSmNkLKxO+LiDETKJhvUHBnXbvqyAWbTOG2D/32MtZZoReldMhL68yN1zzbJPOGiwa7dyDboj908NxjYiLcLVtU4b5iUVjJrP7OPxdYshBqebrIwdXb3rtdP2ZlZ743P8uGtdcjPElue8Xieatv7pTCvoimKH7OPCMgbidaN7u3xSZ/heiymh8+EfKORxaO1a/0vwGejrW/eHpud8atIFOuHrcsAAha9Kq1SomyHz99sFBlFJUPZRoiO8kATzlVRjZ4jSgEkX6Y+TYh4Pe1cawUP1xdOLPH2RTc7HsbgrS9vu8i09VckLmcuRbnvp57oaJybiaF/uy2fnDB773/mh2NbWDu/Kqc/Mv7zyd5wr4qN8v6d7CL39YyWnY0MCa3iXnHalMumZ6zRyZetbCEQV7b1tSm3YVJ3oUO2GoJXOx/K5Tzryud+MzPtWczskq1vQGtmi6XZbMCBYEj/oF3TnCc90L41NMlWD9K+mTZ68Fb77/nLTjnB/v8LuRG4s+iW78eWnqw0t+wNUu/gl1+Mb2+wVNHkG3CugEdqjSP31m6HIdJ3EXnFsbcrnDOxQDMcmCzoU01pG9CsVedKrYwUK1Vx40ebrEdWGgZv0zxGFOK4a21gnSvv816fQd9LHA7cWAWW4DlJa9Ctne6IBoag4nGnSwh0jbvyzgd/k08w7v8+6gR2PRVdI9d1x5e9bXXEvBov++fubvn2uko9kyXINFy1O3DvMS5254H36eKDq8m1Vulo0yIEhFC4qS3/5KSjaDB4xY9Nsa6QJg1GZgJOyThzzs4mEBrMaHU6ItW7xn1DFAbBhiTS8gpvK+5Np//SpM3u+c+PJ2wNQfK8dfGBfzDs6zGvCupW7oZA8/c+Wc/t9Fl995c+btK0XSq2xZtlmOIPkVK2hyD1e+MCBdT+J9Wne/J35GMIHgR/2XAM93vXmWc83CHA3LCIdojgI5fMv9U4ICB5cIjVjByPOi2qJ3fM5BDwfJw3JhCKVorB5dTVtC80LnUoXBff4OLtkc6ah7luU+P2F2vq2/5jVz1382rUZVqaBS3GS1tco8lS5xyevmiabd84n6/Yy+iLi4ag5q0cNKp/kCZN0l1GABxvQs1OJzKsX5YlxTpZkAX6mAezr9a/1+sAOy7p+4U788urfuh3FOe0VtqFaGEGcTLsQ1w1ZNmLnNO3XcvAbbBDz8HvdRP2FyU2GhfouQdSfKy3ePQrg+IdI3ptw8LcaqybaSxzmdGZm58ASOr02Dqw8J0Os/uOkVyxyQEfg9hfa7JPniRragXeJi2d+BTxuP2oouEfDmyyAvCWdMKuLyogXSvWIE711xjdemlM/m14lFv64RVlrl43BC2ED3z7etK+FNe9TWzyUKY/Pi8vraBOwF3zCrabbw0ODd7SnlwqCtVuCG1Ajwcel2ucq8GIjFiHau5xZHF8v9zrimAngPgeukVWTmHlyz/e5P//WrU+5lsQswjbwtPWO9z4uFHTYeDi7RXM9596zShVzzgTKvQZ0WoesdX6/035KEkPmJRafG+HolVHJLhjO9ou4MkWY+rlgUf68+4Jt7MFnfvHTiow9TPe65zFGZwUATSuN5ClN95+3xAxAblLex54p88AVWPXGFTqVkNXn2ufjEB4L3c4UKF/8p2TZlsILW2u85bkfS2rzFfi0dMtOapH+2pyyBq7rzMb7lwsoUTU0MBv1AcfRGOzCN77iuUiLazbznj9uRNVc1Oh9gKFN1Z2VPw2FzPpucsRGbkXyaojAMiOMHv75Gs0JK5l7+NrjrV1wAWZBolTiIlhZ0xVnKKC7wtaE2DZVupoMpSVE6pmr4Qt5x3Ixm575PDn82iQQoAPhmZmfrhh6YWoD3k2QIyQuu6uSzaPtPf6aIsjDVRhfN6QemAHIdyX2gDcbScekGMTL1G6uLN2LRtbWyvDhjlMNh0T4oyHsZcNMETYUb7RuxaPqqPUFnY0wXL/7vpGeD2Afcet951kyPnt/q6YDSVbu1DdFrKarqjrvY57Ww69kon7bSpKH+Je0x/DFL1iQZJRCQ6eQBGPONEjQ9LU3gA7sS0g5fidbsKB/HqzhfZS1EEXY9BPxTvv2vb7cnaTcxlHxuzoC3beMT1y/bbKOqRT2Q2LUNw0rmW9Zj3AqLW9Lv0400TX/869cHRojF53vqRWqSYQtPfmyKDtMEBEPiF2F7H/DLMgNddY+OGQ9VVQ3U76PcA9N/WiWCIV+b6KH+wAKDXIouUaUP2xHi39JzykwbVY+cWGv8v8hIQIqg0fztK20xNeCgEDKCvg6q9O8usUjZ1NKZSUbgZavCDl4auntDmz8ZmOpp1zAGfmKFfaMLCFzYBUswHxDFiS5KYOW2lIPuixZMRQwKGo2ihtZjMAAsmY+MrI3N/ZEf1i1dZBwKKIA6EYxGPl5DlwFLlBXZcInFP0lLLHSw300DK1ePnL9bDqQciYbiRC+oC/7ZQ5lfG2UUW/XgnLIqhxagolK2cAaZeTXt9KA61LsTW38vtMHA7DTvokRiSAoaxHRlXQOfgOc2BqhZnSjwCFxkU3uVv0gV5jdQDWzxC/KHg3ztdJYsx6LLLCyQsL+YCUmndasMognyG6iMUWcqu8zzHbSAvXOw35Ogog+yWJpbyhL85jMLqJzHjNQZBcua3jlZvyoaTR1Doi3V4QObBgEOk4ALKmMslsD8NhRluhichqTJViUAwNDxCZAe3jUbJCYoHontlnQ9bP2J2QX9qq5vy1RAiD405BajT9ajy859ra7sfJ+eguWSSTfqfQxM4pce81mkiqR9cIEj7rnGHLLu0HmsUrvxAGhV7HOWmBE6j3y/C+qHJNBFUD5CIrHoCIhRHDOyMdNCQQS5WR9CX2qjCwOchN2p7mb68FpdX1iNZzaqrbwU19AABaDR9O2syrPRa6SJ+n1skTX6PZynXciGKvndqe6Ec6l2/KWJOn578gB6/TFNuBqq6WBv3FnnhgHRa8E+gsoEV2Dqw/0VQE93NYMCABsa/yEMeAxxcrIvqqSQbSuDpKKdWVVZSFii5v0QvNc3sw1aiDTS0bSt67SKUUFkxxVPFiJbLclWMYYqKI26m7JEJ2XTkx0JRobk/Ok0RKkwl3rvJyyF1tU57gwm0zj+mI8Bwl8Y5HEsgtTSOE4gTCjuqXuaNFUIKECpnT5i2XCPEvIf0ReLfyl0vrK6EtJYnXAlKjOyRu3xnuJeO08DUYEI7xCOHgyNBl3v6JFhzEseyDQDou8pn4k3HpUxGP6Z6g7z9mKChOBufyTSiDCyXYwiXJ0Wrlv18P444sgmEI/l82O1Pqjb3dzcZUnTVwMc0QquOrJ/0EIYGcN/XWdmDJ4HPRZ6SDFmDRzCA4C+etKIB+TU3l+EVzcz6U2r7FNRi4/MIwL+NLKtPy94Yx8i6dVcF18VGqr0K0+2AoHfIM1MsNM/vgH5eA3QMllVJ8GQKN1hboQBLiGBGwuUMnNbQYm/raahb4z5jltlRl63hljH8TyWLphPrtJTc8tUVD3GNQ92IOBPZkhcONmPDY0iVwXz3MMpJpuNhe968WJOpuUez2eQTh4xvxOFJ8lXUf5gdUrZyToBGmrA3eS8+G4RDsaCRe5Qo3FKtw/ZyvyTQUHEi8l8C7ImmZxQWJOxsY+CfDzHBbkhK5Kw8qy+duSDi4pSWzMYuol8fExCaW7qWjh3b+1w+ucnKCx3S97jFbeerwYwWl3JnSHs2qYLIHVDAFABqjvnzF/2mqjn7eRPfATQ4uZhoSqgABLbkuSzZab6x5O5sJCp+W7Fog0R8B9ilTaZ6R0fNd81q0QuzFQ0rG0yw9HkV6qBxIETfVbfaPWP10o2DZqiVhoETz3U/KfZr3LwAdWAIBRoRVjKZm7mUbNW1SGECihiq2D9Ax3T1bc6kzKBjl/zzOntcV2tvG1+zjfvxS/r3WLevzl+RX2o58zGVnAF2jggFDDclYTd2yC8nuxUZIKSWXrHfKFUxS6hlJX2wAtQ01ckxCqsdQucZ0SXNMR7WA1ygH7pOX453GSMZKwcWdCu2VOJqeg6SYjEuXXJUIzVkdyqoJrTpSpEr39Gq9UeVidbgSb6KtZFokq/TlquCNqwagOq9LmwzCWzy0uGjEpRpR8k2hNlVM7CNXpuOxQXEZzOvDwkb+Biq4jDbVHQ5ZN30lITeV0ekG5mPDvUHadzq3KxVSSXu3aCk+u2Q5rDdv1+zeVUP2x16+s/jdzgNz/fPOcckgrmLeLUGaIODetpVohccaTUCGl/TnKWfyU7h43g9FyIM87KbRGNLuelbl2zkDsUxN3jrhTMKud06kTtce2Uy45EXb545lfh538jAnSRUGc2JB5F32JoXjY/2LO4f/PVqQbiRmkE2weLZkwQaO+wH//Qiwx5Di8bRn52jiLoctSdoLShkkpAAYgbpSk+Iq8K4u3JVBuQZ/CCs9yHpZ2u7L2lW6v8GjjZhf6V/Axcs+b762/eCF6nG7YoOksayKVvWQ32in3YlDtf4gY3SYA19h6ZczxX5YfhCYgFdnnNk8tRr66nEaBfwwFpJ6dcazOwxn78D+viZ6ZmRCfuPfpiP8OXTx7fMIT4frvEodo7QxTyEC6lKlwjJuEaQadhKd5pluLVmpSLSaRQlGr6ZajPPkxUpKKMtDAb3fmxfY67vNlpaXvds4J5zfw6W6u3NblBQ5czjX5FT/0OW9tKbhCrnFy6NSgpjfUqyuuQIM21pSwTogPq9xE654awYPHaw8u9PnTuuFkI2uuHicrYINdysvWuIKJ+f1NZMicNSR33UT4rLe1OlE45t4pV6S/Z7ens3OGzub9ZVow+WzTUpLIG8K/DNelN7oJVEwDK0rZ81MyONBc/X7doxrPYHkn7YZ6fvNPO+mGIZ4j9bnfbaM4T12sqpXfkbMARrMEqb7avdrCeB/U85NRxlYslT868TnfbUeMXVG53cmtQDZpCSwvbBE/OXFv80981NZjdNllcE6Sxo/PggHROLH7qSMmRTYwc9rDsFqXaZ9AdHzqzm533eeRVi5r9qvNmIS85p0H6yCgZYtd5RZ0WBQU1XI4yHSIW7YtFv3EdoFnP+clS7aejIokFJLcC0O6alrZBrNLJGVKs377pt5Lc3IspUVtTRRgKrfzbRc3OBTazG+TSIb/9s9C6QqBXiadluUGpG06qdXKrgNvwHeYF5V7UztyaKpvAi4l7IZuYOrEMpMXxiea53tpYXgjIEzv3sf0SG55aM8p5DfLucP8dvDR5OfgIQbw01h5wxwVvkq4tJlEiLLnd23QZGgdiFdCPjTK1zfeuIlFMDiSmno20U1k1KqSLaWSvW0nJj8sAoH/NSYDh2LdQsOOBfkzZg2tn1qBKH8rEQiY+pR8HVX0tyz8i1LNS0fZaU3PoMQaDtXVcq0JNNbfVwt8eKCM138m6VYbfc9n8TimJ3rdRXv64zAgYfEFWOIMRPksk7Y2JpL21C4OOD+0jx/VN7966GHQyjEwunTS/nEkD/YU/89EGovxhjkM4FY7ikrqT+nTdKwWe511oZF9tc2RlYsLWVqVtRB3D7FUhUkQUB+AFtvWZ6T/YIRgcRK+/L6dylRJd78GA4lakptGaFPO/0aJ297/fPEGz/pI1b4VkCcVnbLOs4KZNv8aVg6L6CngOKjiN55VwZ4KPAc6itfM5asXg0Tjg17A2zIy0alqoEmWkWXiSl71R39TicXaNVaGRUUIZFq3HYF7JkZ9v0sSjbA6HHL4RXTtx+9RunRYu+WlxyuqoEuKT3fBsm8iqiU71MBH8sFmV0rexIWijAwVEDshXQB+cZ2WsbTXTP9vIcbElkwt9Oa8fGMbobYwN2FyhZbxuqeCP75YtvXdhYuLCvUDVnfuFlNBA47xtshvgIyitHeb4hzPotv6c4bOGKToPBqQPiHd6q/nfmxaTlKkR9vMO6soMy/aLvgjRo1X+HLDBFMvgZDTiaOpv4PfBHIQ9eGWh0fJvV78NIqL1MQmw1avAWPTXxU2LLRD6OJNC7KqjriVjR7tE5w4L2w7EsJ+cLqRj770nDTs+nF5f/16fAvtPW7lvjAo8Ua4xhDlIXJ5N/BHmoHyGMgLxU+9Q7bei/nCihIGdUhYLDGOdxemHBkrtsHndiv0gwWUqPhiqamPssM8eEFQlM/+gt5E0Za24gyESM6QuyojYP+GtAVgK26mHx0CexkFxczvhUSt7+2aTqaGaaaH9dJOSEjnhKxkLG+sz/xBh6Z8+v//pv75dbnHHtZWhYWLscbQr1MaEEvFuqqifyfTJ8x4l0GiW1Zdg39fQ8kHXIvgIHh3ZYiyEQAVoG+qZWaV1uahYLEloTLNClkAT+8EydNnDHYY9saFFilRbDambNZ3r000NNcu+v74dyDWINHu8jIjBA6lv+I1MvJ8bUCBgFmS4U3V1dR+ySCR9fbp1Q7sEoZ++UXsJUgkxtkGvIjX1GJYHmzGaG6z41/if3yz6ZumFEycexaPv/yXK+JcZ9DuGvAj1UVVHYwiBLGP42+9tIutoY9FR2hYQZ6RYMoyA4d5bXIhEVfRQFO4FQjIbYO6juue0+MKyhtA58NgqxEDlBeHq7m/X8VIJuvgrLzWw1w79CgMTKMaKZxaEdtfZgl4ZC+AFDNVo4JwF7SikEcQ0e38ybG5ABYRhUrNN7vTV1NMjJkIS4lewB1rBCwdzVRYDiZMIv8NjoAfWv5gCU5BE05eiT1PN1K2l3AocNVwTAyIC3syVRFMNkvYu0OGQJmoEkkAXE6EjnaRERpU+JBbtzIEBdxT/9M2x0TaExadGQ4/VHPwZughResT/CuZKWP//xLRny4nU0ufPP327RE3/jhSeRyb6aw6O2SCNdXikHroYPZ+FfTuJHhHdDNK1yf9OhEyqR0csmkbBRwAqQIUYg7tdgF7DoonmGCz6e338c5LEFkuQxQAq4LIaMSD+eihdW00l8pXr3W8XLzd1yx2O1IGOVOfsTwFvjABsa2HaCs6RYEjuOyW1o+EBgCcS2DvUv8ihdCgzXFA8SlJG0c9RvMWgmh/75d7SpWj+vNFjDIb7ywDjRRiSe48eHDNmKgMTl4+fRHXhT7vQMHkSmDjwEUyRDLIgoecqYN95OvpvK9POIkRfllBjZ0tHe/3AAKiF5EIjVOkz1LQfBL2+ZboE8Kgzt5Css/gx6XscqRghaf9YTUWzLIG3ZHuKWgzwAiAQmqY/S1qjA7bx49wdD+xoZqumvTfSUHFfmnRHTFVnrG1D2y+D3hTGa22yw/FIZzYAy3T3XZ7nYRJTvjn+DjoPirpGblJpZP3MpMtuqMV/3NK5kUGj5xvWRDYBTXAlpPqKsYHP7FXZNqY6lXaWvW+zj7EPkvY3qQxGq1gU46ttmvK4ZQCgSEYEg1cYZqaicjatDsc92mv+PvMAxzu0texRazpNEwt4AERAmVtNyt2vfZqff1ysbeR7TiTuo6hrXfE7eMVHl7pty7GbulSy4UnFQqmmit3G6JAr6mgnu++5bMwY1MqO2APqaCfbmoRvKTr1gP3wWWLRjXJYjY10biXd8aVTGQcKig/QaHaFhjWrgSRIufXroQc4jSm9k/Tfy5ebqj1m7Sk1gtg0bH9Ay9jYYLMn8ENU+sbYnAMUdUq4ssi2iUxm3GyO3ob7dnxUtk2DAQoAH0wFZDZfTH00DjS+d0G2Yt3SFYEfb8x89AmMvx/vWY/nYcXvRz999NFirJpmb9SAl/lAwH5HBtKM0alnjQjrXY32oBFJTC3+WlePvVRNsuFg+tY0ISwshdhLidbbFlrtdRU0nJIUItUt3TEIblSN4LNp+qaUJ+aup6OacLpZk6xvW3o5SPjm7+2D2AzWrE8YTH+VJPz1mW+h4QCuKURQ3ZObge8suyGhfNo9wrGby8tGxf2GIE4VkAQJyRx2e3iE5Sifm/PQMsLkBnfqBzj5fwjwLFCN8MeLyX3lBhmGw2tr8nefvC4cQlmLSwGH3W2J1DyfN9PvaKmcw5l6V3Rv3TtcoyyxPoVo/d5Mr8H1nKTspkIxyNBDRCC+RaDYkRCZ/luNoDwmwZdWLrCft3Sx2lFS0lLm5UYsAJHlf78Xlhwa9Crdy+I0nLOWwDcEApcL9l+iYIaEgNvmHilNwNGxZ3VtnuPzo9yJOY+IvGpuQHdFhPWoVNBwztYf17CGEwqt9oi4wWTfqJQnwtxpawfLblzjEO4+mWv+5vv0wdXvhTV1hYUwS+FGubmpdQpZp90isbHjxRqMFfU3C/z2il38o7m4Js96lz0nZNIqP+IEj9/tny+ZR/KBHm6p2sHxu90b1/NOJlt5r77eeIKHip379St5Ae0VY71/TIku/fno0aOVvJHDFRGO8wpuBjUiQh3XbLF2EeMgPlbFLQqLTlsoJWVzQ+joOpmXixppaKJvEZYb7pAOHFEEjKIf5Ug5yLrR7OxhTu6z76/nvg0SvLZARp6osTwtrToCIHMMcvWoMyHa638rUXz/LMj1NGxQyw8ltQ1zgrYusNKOpJXs0Ceq9AUXjU6zc/bBt0bN8d4SK4h16GYHN/JcJ8+lElX67bXVAe1doub4P45e+gWFpctueO+OFnQaIVe/R5r0amsVuzFD0KJTJ03ew5Of2uXsfLWDdxANNQdBo1O/OgJUgOzdohl+VzWnQwNVoW+TFAtbh9h7IPe0RiuSh0ty7yygfv+J8C+L90l1dZwQKpjOWPQeIywgWXgNC7j4W0nN3/88cX1bzgGhQJHdyPU7td8vdT6V18UMZncDLWD0lt0wDSQ2tcN+SwG4Dof5sVtk3i+fh/jty+G06SQr2uD9erg3N20aI5ceFt0mHDI9zS6f58v2UXK8G4Nxo/6qufabIOnv79+w9kDjWvK+pg3aUwxxo4K4jcrB/MMruR1KAANMs2WjlGL5FiSCsrCA3Z72T18m+o2Cp9AXK63s5jX7oHHnamLAD/dujLxbKbpx74eRGx+O8a/2F/vdviH6dOHF+CfkuP58fhTgBW43UfDajkUT77S3aDejXDEMx55epbSTVLLgrtSE+v1k/3w9KzTRP8s0LAxrcWp3b9K3mhbYk0vJYlTp74lCZT/y8avddNb8kyT8e/tyL6826J+RhlELJUlboywGLT47/ZVeVpb+m3nu4u1L0o3SzI9k6kN2dfpc5oajESlMr2peTdFOK+uBi9/F41MdtSr6yp2GfcOyvlbpWxoUaSUKrvYsu3/hB+GJC4+WrvvlmOgUNFOolm0JXoCvc1h2mYa2+p1Ow+I+F+vdwuK8UJzCIFNvzawtemFeEDoGdUbmCdZ7RH4yEXsrw26epVlK89erMm8sLVvtdtr8osUmhPVZuEbDJSLaKTbchVQ6yRNdjlJzgyQMUIhF+ithLrlUzZcWYj7tnuVi2WWek2epJHkoJxYQWZgNkH4TyXpOdMy41ybUJNipyzHPJPS2ILXVyjBTM024D+QA20qnnKZC/VIs+s4aHbfINqdojwqmx/4SqVEmaAO/Ov0FPsL238yf6LhZpKfkmr8q1Y8srHQaiLRVsn7I93zqSCpsSnaKlrgwQ69yx9UlJFv9BvPd1g61HrvNG5D1szLz41wtWnQv9KD5iXWP/vXoz4CAFetQiXzC/KAHXsxVztH//P333/91SQjS9b36w+bFEPKsH+YCPqDsEI5F++fjPIinOCUhWeklk1rQxU1WCmer6BMFCy3JD2JommHnWBLwR+nnExtLzUgMSHvHtbURSMUJp7Zayn8j3gvej84gzs4RMbh1bT3Ek8Wrifp9NbL2j29+TocPI3NP2mNTFRIcHc9wjdGDNkLjILf28QF7VqVuzFm5sx9x5Q3oQSBj++E3L6EgvHr46MdAAIJ/H//mP8Ei+nhiBg0RjDBD10IV1B0+6Kw7Cb9Z4aQcuosGdZvfbUTEYWNpRvmDQXwRv782cJHx5tgCsGspfWauhYi/aD8Y2lEao2LmDyiA9ldDxAJEmpQ1rzvPPkQ3okOAMpwWZuhOOIlFe6WcQT8zkEFPTmPQMfKddj6P3+OzGcQvvIrz1TlwdJBJTewwfQTvr1xaCRKCat5Lb0eqOvSxqd3IytBBNTjQDzfVKta5Jjt9u+PZGWe1Ueuux85nGqsyNpbXZeJG3f3nOpwc6N1489YtBl3sO4ZumaqoqVixt5YZIZ9cEEvUn4fR2PlKVI3+mxMvNjP07Ar3ylcxIEQg4O+PELN1d/MBn2UrwP5dce+br1v/7wINAscCj4WqKzP7bza/+/0/f//PC38c/R3bafS3XwVWjXq+snytnR5VKZ8NvJgKFDCCakAlZZI+DyK0jID/nTJktd1zoKXoYyaTKmEbTEFlDNH7EtElz9dEBH01YMkWOik/fQVm6eg8S3pmoYNJ4GKLmynqWF6dWbIEtrr03NdeMNO47ZAXauqTYIkCJQwKS8tF4AxIradkTzWYgKE1FDiqK6PFUQo4HRom5Y0RypiVDk4VEYBgEKL/81//WtE70+GhaqLRepkQg1QwiLbZYjAAITqfhhcXLt+dB3AFmjNDfYguRtlcrQ0YC5cuFWnpaqAyRlMN++qoJ+vdYMuJ3MNC/T7O6F3fDmIIgy7i+7USRzbH1NCgE2IQDXzdhaQl4BakpL95vd0Us9KwNzb3TIPagHkXZUS2Y0PE+Dei/NDzlJ4SwAjFBaFIntSCKq1qQpAQhomGzvBuP/SD4n9h723CXxYnN7iTETk653lKWQPSWlWy2xL4zX4+8+/FkPLuXv9tEGwKr9dvMEgBIoZ3AI2c4owcMQ2q0AaFmYYu0xhQgHpddL7vcW1COaVqhXdjE1mPgcoYa9Vly+De+2PZomUremZmehEjr52T6SojTFJ09MWF//zP/3z0w/g6PABL7x3bUqtKTN+pVrjXJFANCEq2b2cwwS9QNiMBkYbn3svVCP5AxrbYAkc7lBRuZYH1B8RHVSPyUNSIeT8E4r+WRiGSnoLSKMgXpkvunsE91THFJ0AmfHR4sMFeMzRC/X66kQqoGmkn7YhREFgQU3x4rP+8Rhu/XomFzJQuZXNHtTUDVZyTgAKAErJzaksEA+S8rqO9mGHwzP75L3wC9J6Y6fXBMQbZ1UtTBSbPzkoIIpS8q/bWdJg8z/uNuqgbaIV2TYDpgVGN329gbNK/M7ZgZ7+qepYZhnK8mAcXd6QTPLBXb9ak4MMqKvd7QqaNqus8iaIpdQcWQxeNOKuC207akRhhW103Lf52+eIfn/wGapyp7bzzNh8DgKnHd2VBZ7ZuzwF6A3hrvoayOrN/Z0a0I35h7dx4TzxOClal7inEj7DckriNrrosvsj7VB8NPzg6Ay5VrJeVRQYc+3j5+k2LUeb093XkujByvvl59eLl2m6/Dd0yIhJCIDdr4i8lt5QaGWJOZTehb8pnc/GLHh9lcuRCUCkDpsttfnsT7IimrIZt/TY2+AToNzHGX7pxYjMFqaanrHAaCZbZCVRKIhD5YQpMFxTxjKCBSRdWVkAB9GikfBaUQpLdgwHIfggShZNK/tn+7d1NO+BE9qIRVfoOVpqFvm1O06uUldzPCULC/ekOlhnmG9z19H2POL1PX226ffEZweI12kTAH+xkfInVuJalpxCYnZ/X6OtZTQqr3BLUvLwuCi9boeb/ldMhXOOmc71kcRQty70Svf5ZJEd1kX14OKPQN9lpIVNfyXJOmGPtQrfNb+D0b7ZZ1vOD+acL91f01HrLautt4iwrnXZElalYmXHT/P3pEaGx5rtWKSlLNphnSCK0PCqaucabDUwcdzu1b86jWDL5AXkeFBdJNJGPN8zcynkymG46OPjZfGGNoSFezDW8mHSvII6RFblVstup0jqL7K6kYDWFM1ys2px+3v5vsECFT7bfXexlmyOcK7JZVnTbPNY9nx7e58dTtqTmW3c5dc3WGnhQRHIXS62KomrzD48WMa0nhZ2+tvQIyxzBQ2vje+tum1c7upCssuxFGpYUQJMR8PfS8bXj5q7Gvf7ps9PfayyW//S306/bt6ekDz4RXs5U0UfAv80qTCXKUKrQj1Iri6pzaty5yMajn3e0vgK4hAGnve7KGo77zQd8m2i+TYkc6qzBot536NfLMw41CeDnOWo5AI407d5Ksn7Onbhw4V8XLtwQPl/3DZ4D81jHCPXwprQSOyzavdGpWxyp4quZxALVICKinfRZ+Hk5Nvh1iCPnV/Ojc7jR/pBhKrnOp0io34fSAkVipprTQILcs8O15u3goZLPn82vrf4+N/d1jev3q9/XrK8Srh/8+cwQUaWvUs6uC+LugHRzDakEtctQDqQ1Pw+uT3oPUJYt9tTdnva7iC0ptv3+e1yr1nOGYmg59l0okonAUBDNnYn7ZeLou5GRP+pX8lfe4K5c99K5ubIk95khXkwDt1uyxTunndvAoJezuoM8t4AsV1DAnXGA3NPF9t6fn82uBslAste+oZ0bdBlqSXuqYEfCjqSLhwRValurpHWsry+mpUWIKn1n524Ff7IpG/X76ISclletF1z/Z/nFpL+uC14PDrODq7kdtT4dfl1y2Tzknmxsxx0wfGABc0Q9JrbjHvtGOro8J3xQKNPux2u0RiNONTd40Z8dU4fB5Q2H5yyYG+uCQhlcM1nWIouuEv5197ekXw8Jn6Sk/Jr0lyusea+TBpKF5fp3nuTuUEj3JiQrsuEM83qVO1QpmnqeF8t/AUlKvEfa2cYJYaAes1teMx1eKU0GViHu+UTzl2Pec/XVfGLRFaN+xQdFaaeYsd4vMETh3/+NT7xL976ZcT48AoBxe0BssqAlawOxANadMvyecpRnztsnktKfsUqk673S0VLJ7uiXQGkRyYdtxcqo30edie+wpyzxalEoJYSoxS90q+MmPfn7p5/+di05s37Qrey9AE30m9xeKdBEvz1d+2KJ4pqhbcLrkqSgV27pz96UKA6VuXlhIB96lu4Gi5182F/Sl4wqfTN3x9t81O8nZGp2ctmIhTl24ffsd5ecQq//CwywqOzveF6EeTZg6rCHWH+gRFFODpfslnqmzVtaUxu4bEgq/qjFL35ZX/Q0jSdvR6K/midDcY3l1XFP+y5LSVZGiWKAJBHvUYhyf053Mx0qkeLFJODk4s33UW4QRFiQVMKSudKcpxL3UTYPlf3pSy4Kaj4vRuaqJsl5n6VH/4TMfmWch6RdFNCwyxIDucgekkoTrik3E0v28WXofQ0Fjtw7VlksbiQWIHEEwtxv5VhoxUoRO+ScBNfgboZbOgTjGro48+evlf3pphcFSdeW/7T9dUlN2kImBnKu9NBgemQbVzF0Wew+yqph7fDNDAPgL1gd8Ge2p980Ev1VPH5BFnh/PAW0J/G5VE9nFPHeXynzvuTjUfRhXOa8JTS0FtfEGvQ8+uB9bOKPnp7AYtnIp3s9od14MbscxZP2Ir+D4eL8WK6iwUyCEwWRfI+YpF32gAiqY4u83g/9xlSXcO65Uk3AL4uRtCfHlJ7jVVQY+zAP2EdvZJA1T+5R/Lgcqsmamre3sK9+cOgNEVT3Wl2Ssunb5dqPL157gEFg0/clbqguXnLL9fUtZN1v/XYGEpE2kbQ/SaYxNiYnbtSja42ZcGkQNUhrU2OvoPV/dj/P0YWKOuqALxewAfj9y7GPNqpA0oj+6PFhqJxtGXqsomImNuNCMaJqbExrI/pYzu/37FkW6MM8r2jcBr/UtnY50vkUZFif7jRWpxzIadiorEVxP1US6WVkhGhm22MjTbUHe5J+vKutvfpB0jQg1kaP1wfhGrq/bcnlKMJ2dhEDjqn2mstcotTZ5ruRgx/jjdXP75YB64wMq2j0PI4n17YhJ0qmhTtwUQatrnqzeeaKFoNuvYtn6UCnMg/wX3wEzOtKV8DGVjq97zxvdBWDQt2YnIr8pqabBWfJJm0jnQdP3v9I5Da+rykN09Q0fCw9fcvUVPvBDtcHhmb0LCvuJGLltI0ZDQeUqVQJg9tkSwb6IK3gAJ1GPn6kpjSShuCu7B0q91ZceDHy3TJkZet5z+vj421uduRcCVyx9MIK3qP7gYEGH6c+fbciPnDnFtlOBy1q2CrP2zupNEBDg9YqURi2TcSXAgnbj9zpJgI7tb5KTEEPBoN9Tk9Nn4YicisyojuTARrqiF9bJ3ZXqOurRTYGuSE6Y1p2/VWZmgX2079uQkrZIuXMsyWYDNM/v3czAnPr+zMWptiCYT89qIm55/UbghOM1PzeMMSwbdvgrVFmqj5lP8RmnmpZnG2phZjAKJxeyjCljRy+j9r4R1+Ohqqj5GTZsT/gVKKhST1KDSfD59gQjLBbBHWXCifEvvE4YyYThqwtwCHTbSsT3ekaiF0QGQkTdcvgYEdkz5m72DQyOmEKh9YnIKs9+DbXCwOBaULukUh0OxauB0FXBYIFkuJEZf/Ae8yyamWTbEgyJjhKf1EfaKCb3+gnoaJPJA7UXV0lLKBBDO+T0kP2Q11dQKw7CjzUiQQNv5UMKIAEUXctXaACpuDLIpH6+KNZykoYIjqt8CpULktN1ZAfj7qIPkgoK69coZqhKyZo2AvqxWDdEzeEzemt7P19UGP8kzuAkFImnWPTCBiVL+LxZDi8XuVGasKuh0VHIKjR86IZjTvQT489x/y0omhmJtR46Tf/+uXYN8tMmOpFiMfD8hkHthvmKXqTfD6fhluRHQKvkB5NU3oORj9oEPL5LBUYKf+qsmJA3aKwz+kjqC7OSMYDQNK746r/FYeceLCCoqKDByDBSA0DFetVJK75vwdgScqZyxaYJTZ9fp+OwVfne9fVKRZADj/Z4aW2ZPG/X7/5aTGIZk2s0TBDfTP/thwJ/G2o0geHGp3AxdGWWrrKWaP8fAYGxArnL+u+PgCJoeiYjb937A+Aoun+yQNRMSpkMLRxPIGgVUM0QTF3wAOAmY8S4bfFgUSgFkIsqUyA9fh4AGyM62/gXqgyTU6Bu409eCaq9DUhWxAPANyCkbmvCBieF8DhyI/RyDBX6cOqBlq6qZoKlL0+dQP8iKMvxmwMKHgA/Onw3oGPgAcA2OWvDwANgAwlomeo40SRlrJS335IoFDcwp27HCggmB2ecsQqaX38vWG412LCEodxe6uUkIQwOoPVjTvzNwvtsXpmtvgy1MREuOPrA8BoZe3qU9Zg+CaDlq4EHyWbDgEJ9rZodGFpl73KLQSF287WftpF3cTmPh6AeBQzqfJ/ISan+pkb9dj63/vlGBpYmVq9Ey/q41HIhAfAx0CXno93mkyD6BRiBYccFv0/LZ13WJPnGsYDGYQwwpCVBMImiUAMEPaeArIpU5S9BAEFWRYoGxHwgCAiiAgIgoCCKKioiIio1IF74K5WbU9bT0+vnran5/7w+M930fISni8heZ/3ue/ffVlelWTgPMM6PiPLVL4zZfskUU5hu1ilLwud4KHi4kMaTMkLd+HOl6StRunLm8vO7cmfKWFqNwZtfTsjqf3VnXc3f/xq/TaYEKGBgAD16U931jKZCeMc58aN+GzhFT5R3rj+7z/z/763MQS0mI4LkuZU4AX65SFVonPIjq4YUFh3XZeH035A3SxNTs7mlABNLLLEXihdL3DVefCY9fv3XhSJ/mQ47ZmA3XOId11Gv3fodVUKff4k66BYAYEyujX9kkzJQ8GKeKeWCwhQeTnopeNw5WrmB7w5Zjzi1HsQb7OK0U+08KF1gtXdqa3tnJA/++M2SBcAW1mrrB2hxenTB9/mkO/CwzXa1Pk+FZsAAJw/nNv3IdyVcmin7gGQm1PrdE+OytGocNrjl2G6SXIu65Mp8tfPdn3QpICPoOLhQaaX9yvlDstRKMOnBYNiGbk0I/XxC1S48+Nj57S0ZU3MOeYm0iFrHnov4VNx298/b02AUK58TpQ7J22w7WHhpTvOklQbD5XJeQpF4lBOTL+EOdPkMkfDzgC4hJToOS18Ur9VzwqUNQ+c0d3ZT5bT+bDv3AeHcC+kAnzGR+emD21t3zsgaue5CsOIIufwfeu+7x3CN135zqkuTEfO5gD4CDQqdS46haDfmJVzLlrKkbpf8USK0RoJsgsc29g+I+OjAkVh4RZ7Wh7LNu9aFsY9trYjbiZ9RJQ+wygtOl/oPuEW9EpEROkHbVvgIIzRDvoanu3rxriNT/NtF7SDnHu32qbMxgXdVRSxG9YeubfEibr5Ks6tg6ekWBGIfEuWou9Fe6OdTi7gqiAKUNAcT3YMCGYJvTtMjccslNz3/Xblt/OC5tKXu3a9b23GH2EG8liEeUP20OS4uE9vyHgWI7DwkcMaXQuoYTBHUnIJ9XNTa8gXxrTrGx1XcsH26PGmq57WV73qimoErdY7zUz6vHWRj9KdHb3V9uZbOxQQxStDU/algIRZFg9JOFkhTSggxATjHqHF0YyMl/s93dMdMsShui7WLaaOyy7s5h1iI1KOum3s3Sy3EZYtZDYQIuFxXB2NK1lC9+NGRn0WAmEowxFrLCJvWBp3KLGFwWn2lGQWCnDDuMcWuicT+Nxtq7W7G6dUbL07sjB7EimWreles4QvPwa5dQiUiDWGvvmKvpcTInKxZqQxbiWFBdZaXOMUbu4rt6wJJYFikthSr0vXvbQnAztFFH3l399UCfaj6F0vBM3uxx0PPo/03H/eoe7BJ9zN90WOLUpK7jvqjaSS1VNi2kHScmJbnHYkNXGmnK/lKVaop6xEFPJCfVk1yC0hkugls99FVQjz3ya8vZRXxvGxkeuy2IFWywiTlmpOhdnlvJQpzpuVTjRVGPfYQdv2jlutlV0mmrKNeptwhr3QwCnzk6wWTW299Nc/X0ct5ank2vfFeFeAfxBRwQtF3zfaE1maru5TkJoONgCms8eFyT7IY1FALP65s5+LplvPA5B85Y+2s/t0M+k2gMlFCo5CnFd1nnUrTPOWyw4X9qTpcRefeE6Sv3m1YgXL+7J/rqgsj1Wz63Nb2wvPq5se7ENk/7kf6t43F0erxJeo5YimRErjdr9GVS/AjLHylPcOfd8//4wqa9o6EvQxxZvoFSHoq1CMOmM/YFGVrh6aKuPTXOkJZ8hORZ8qVuWG55nuwZAV2vVGRceojyS0u0cmqVdphp132eHOPmkJcR4KwNDNYp+ne48luNNodo2RahPM8qWlgVUdyzrhNuHtG81JltYq403xIEU8oZQDmNuWkDzeFJrqOLiKmjiFJu2x7hUqeSERFaIp6C/dIKkEdyBbdilqSsQbR4+d06CS5GFYbBHsZP3IsVYxtJhVM/iytO2F4Gp4GIrGiGjXsntyOuv8/c23rD+17v8d2Y2hVSrBRrtRgK710JZgpeiYrXvsxyKtSVEGcDMHnbEaScD5YImn0ChAzsa00qplRk02zoBT3d25sfHIEj9EX4KR8ZwfPC+mpLk9ZQVCK5I1a/Xrka+2xQWKvPXNmJ3dvVYfg2TXwB9fHdSoXaKfzGViK5vw0erPv++tP9aYIjLzkCwHm/DMBey1/KKaYNZPHd3Bf5Yho2pJ5oQOi+X8TZNVpIzl1h3+zP/l+71ee4uazx1GfPhh+ONH6+lGerqlg2FAw+zgej3e7LBrNzd9WIxTlsytGiaS2VnjViMXEulugbaKRmFfAwvG/wPB04/v61698iB878Forrm9BClhhR+dFchsPPJ063rQao/8bPX67/+sj3MWpbhFGKAAAgoga0JVqc4KNE8z9eEoWKpibsXfMVxPNdOP0bWxVCCoBjuRrWOXHeWuH8H000/ij1nKy2xQUOka3a6z/WCViqqljObBHv7pUT25MEdrgb8/RW/0uFXHvDzdP1E3Rn9LSMmFCkiuQQEY4pYdKGFGJFRzZBOgY35FJP1uPHbv0qXGCGh4a62ga1MO0lBvCgpk+gW9QwoYNLwoICEb1BdfFoCc5SBX1gzrkf392UL7AFeHXb/wP1/ZtK5oM6tq114dsWkoJ/ww/MKfuZ++vx/+YFcpC0DOVSzDvB/TrESQgk+feuPjpHdx2L7LBiqGaFCRxe0TCp4qWfWR0AZWCYPuppFjUCwd+/lNgrmE6m7H1km4b77449UkmWtsMQIAO7mhwsQQgq+Vm8cgNDfofjoLg3/Ilp0xwJGiEwAfFnCwoN6GCzCqk0hK8LKTcCoabEph6BTcsEBUP4M+b41tPJHY7ju/G4OdB62fEbeus+v8rSubvoWu5ZyeHPJJBttOZwDjGvYehAIgoHftXwbeiqZfm4ejU3j4cZIKwHJCWbSpK+ZJ37T++1sYyK+0/fL4awedgAFvgkPL7MZRsDa2rq//ReCq/3Hv0kaAywwSGqKxQQO8WDHCHDaBmZjZCKYa1WNg/yBZnkExspish4jCfkfyDI515RiKVC1lQKaXKrJgswi8K/TH9pBuGTm93cvBy3E6cpCsB1J0aw+SUHZbBsfP04mNLltVRhXjq+Rgexys28AXQKNiVBTbYUNDaORsE2IUkaliu7LWAIOqqXew8stCMJdtoAws7cLrOG1gwT6CDwshVvebcWfMD0A1IEC62FbDcYKZXWgocTfXfW59sAlnv4fbXmRABxZwcn9dOBBpj/f/fj8cHNrKTBiFpbBFhtcCJOqyiixtINJsSNWN67dhGATWsBSS6JPj0fBIiHs8JUBrY9p5/3lv29qvOn+92SiJCYjY86SYYIcl+UKbpKZxLWqFuH8YBiVIail3/nVpG9EPNKa8vvcVMUuxQNOCgcylv/6DE4Kgsmo3SZg8LgOWLCFPNfFNR4cTHrbMTpXRZBDDIBt5GamA0+4BOusAXfBENA0iZ291Pd70zWaHl4Ld8hiEYC6S8fUmh70/oMxvNn39oPXodgk8T4AlQ6O2KmRDk+S2FG8MMdRvf5z77Vv8gyKmzktPJmDnzUZZNQnpRgyDlNca2H2hrG0DLBkmeuWgakC2ZLd1jvOgVASdDs4gacKlghZDniFV7zmAngzOIF99cyoJUIChbCJmBhMwaTXpwHGeGhxBhA5sNTOoBjEzeg4o4EYqEiztozPtKZhMPRLsdtBkKAAKgOxNRupJpXqShho9wKUmQIrI6/SOU14Dl0fUR2c01kENP8XBKIRJG5pVWdmEpqkjeH07nwBaTgvNF4G41pI1Q94phJoa0qKxcgJzFo92AWOrHs9vNmGOWnf2E+ak8HO5hK3b/O23j8/9cB+hvB4VRMIk+lSny/VSEtIo2k4Zg0oaqeGOwVptDTOeWj1FCiktobCiUVJdPe2lmZLMJ09/JbqVYzD4Y2ZDnmeP2RhSMePIHKaBA+J8CQFMGJ4sYZaipdyIcfA/MEvBOPiIAWAUJ2LnDGUNDLptV+7hTeRhRQ489VQ/P55fOeG0Sw6eJyP3p8dlVE5Vjt7vPoA7RTOtiQRtQHNd3bk/CNPPh/O3PuhsDt+8zjNAgqzpislo3dfffHP499bvv9m0GVSDG46gAFzIzZvTBpDBjof4fVAAyqL7dzt889u351bfAf7d9kudK9ARLSl3lFHPjzc/xmGMdef1wo+Yx64/dumre0jNubMEmxxeuUO2WUwAI+eaZhNCtJj2A9bXMVgG770vzRBj2srkfox76sUCv2xlKOSqex+GIAlsyBbQZ6rhsPVRcN+9Bo9GYjKF5vzc81Q5sLOD409R5On1mp5hDuv0dG63VQ7T5V1RNMFaI19vPmlJljK8MPv0jgGA9ccuGTQqK2+8826JIGp2Kl+Kw6RN+8lC4R1l5PhOpMyEMIEsQcx3iHTITK3vIXMAx9x4tERCVecTegjuzNTd7Dq8+X2Ntz1Q9HdvWHa/7rUJQ6HWlxuIkOHc4lNoT+UDBKR6soT5k4aph2iHtdxInJHu7DjnaKucRI96x2Vd3RsZmo4yV62SzLb4RYxwL/33yFfIrwbi2G/LlmB+jLRbuX67EgdDB3htrao74zoRMZnfrq8RpLxgBccqYiH4l1a61xxZ8ebvMcludO7lNxkgMOEjT6VDv9xNzceqocSs3H6AJeqzZBjRi/nBHmmJ/rVcd5qpqj1Sx49mFOzd+4nb9eDwuoweT9aNQYcMh1v8UJuAzXXLLPbnx99e2XSV/6LuPkzJnLMKlvIQWXFPJGTD02tVXe6hlnUmX73F0uHxt+e5n64c/u3xe91WV3jqnyF+H4QCu16rN8p2gBVd4s4e2fbPbUuwA//zP8d+3rp1HLqNkGorBLwEmu3h2l7LUrN/FMmtyRDb2KBoqglmXJ4q0IcEiEP5KEAj6ARRdLkRrRhilUA/j50cd526TXXP93OnMwrC7n/ithUUORTdYKsvZ+gFMAAS2Lu3YMNJlqDHVN6RnMmvNBanbpjmWJONpUwvp/Bng5ydO99ZLayxQ3TjVs7PYCp8VW31rrExO26WIxoyUbO/mMfPNVmlGnhru2kFtQu5J9w07IhnTSMiO2tCl9ViqmqsGs/fseE+DNPqLs8sVS2fRfJrMvYinp1bui5DM6OHzTmaoZcqTrdqSPQvNzmjno+iE4ZySLnqN1dGRMl9MPc/y7RYPs1qcz3N3jHG1j1xNyXlIzafymVRvW/BDn7LQxI9t8I8h7cTyZdDCJT5mMIZWXl66W0vp9iwIurdK1H+24+2Nz8u8QEFiCo8o2s7fsLWtw8w6msLvJ212P7DbT/mrr6nL8aiBT53WpJoalyk2zFhEdMHAhdAxbUDTs3Pl5u7/riq+2J3psvyNKtUB+OeHmvdo8/bzvZA+LT5U+uL9wACAEvwsks9nRyvVLOTpXh3VpTzJX5f6UShevFuyKH+OMt+/0db6ed9LB85jG7OQCGGAsZRgHZ11OsRlZsrr/P/9ddN7p//fRP185+ISAIAekKR1dHn7T0OljMNZOllz9aeAaFvO+L3DZGIs2er91CNS9fLSNaeoVhhyw71HEqwIGmCp3tmwjt2MlT9/Dfn2bUnBRYvl5urPqOATV3Ny9O6vq7TLukvEbz5LNJicp96Mj1YEDx5zvPGy/1tPT4o2oddc5wlbJ+N+tfHp5zCa01Rv/7JfbryZ37DuCLnVwzcJtJV4hUw42rh8SbGFWPaYe4H53fPia0p12ajFj6+4RQOIRyGUHsBpz1m4bT8vPTsWJKKDzldKbdFwO55v//q5y7dfa5dLtPTGC9Ns+PHrLfmQu3X0ctt2tgrKiNFZDfwbyLf0r7DiYVoEmStcgHkLjDao8IaiXDGoIJfrQx3PhG/H5cd9JHHgeWKwHu4j8OsP7tVpbfROcHcl+87ZNcZV8hhjRxpDFpJ4f+kHBEREc1X7DCyMW0RcKL9tpip5fC9243E9ifUWZUBqcaUPH7xUFwjQNqinfrlJkSUvoS/GJH9+98/hpqFrb6jIAySK8TvFyGhRlfw3eGwovA2lVtf1+11rFRhA0ng2NPKCZXwSPMr4wsnTAJNOpxUgku2eEglc9s+40d8p+sJtnyRayTXBxjGiApu1Gxcdve4Evfd2rgIjQZ+yl/HEJrE4b77z70jG5sQpa9fYl+r4rTHDPH77twuhQ1hRftUXAb0/UwmlCAsNDPza+BH9mQUDJ7UVc8NSLWUy+RmPrIvMcnlgNicugEa0fMyAQEooPlG0f3Hv7fqfvrtwYP7tzilLzcUHDyqC0y12Jjuyy2+7C/e8EK99YddYRt63Dnpesb+aaFc4RnczVdRCHI6dmzbAv/p3W7noNecrYURNo5kX0482RhaLo4S3kTt+9jcMg0zCOX4Ka/iOrvf6qqAqeBPzeEWv9wgdpzW9fwlQ2x0MYYbDyRBwA6V1h8O38enpso+h7CwsHROzKRpvf0Z1tbCkpII5X9ZPV1xI2EGAXcXU9LwQOXZD+EIZcgQuIYhsPtQPGjCVEOzkKggaUlZ5TtPX//9D2xSXwkPId5fYk6pPWjj+n/82IswNVmmn4eTGgJYEMA2dWcjjELXREFrZOHO994zj4/C+eMpc0zEJNy5tBJhKGU4l5TZTwFWtURUgkNZzF8qniDvxe4aD04dBZ0PzT9cgRro8Hf7byvIKTCACnDUkXG9ff7q9+EQPX3j+fjBunCdU8X7TpFhyehhD8N7KzkHsa45khtqY07RSXRVS4FO0debIJTq+uCl6Zoq5+RYz5TUftL0+sf1KGDc9sdt2kztO7av4tZvwynlU2wH1t87EiVbQpGj9MeH9tNwcv9IcFBPZx2CHGrmzanAOwsPUak00gXbMUcEylzfV3zdVVOBEeAkZUODyDon/dRuhkLRH+cOa8rJKdzeP73LFckxP+wHpnoTDhOfO1IUwFSoQrYeLTFRFFhOkVP4UPXpewIv0OO5SxOS8kPeHTPa+N1GAFNCsmm36JodkD533uU8MVd13a4nCGCQ6YZE6pwhfBQtSnNqdJr0EzxrBtDa5Ub206To5fZO5FRwkm7funUbwKI0mpNRIo1Evx6JyRQ4Vu9bv/9aRif8w7lJnE9DHdb0RBm46riotc4hJDiEFd82ympRA3ac3QCTMSGuIiIsTXLijaDAQhL9GlkNLYMjb3qPATzWOSs0o6vKk+C0z8bO9QiMIYSizFCA9BQt7I2X4HRZmz2uhBwhdALeuf4g6IprvSNktdZ+Bdd8IAlH6aGZpqD7wvZ/DW4iNBFTdjCTZL+CBEZVT2dv8y84Cg7fC2MIjYRNq9KkGP8141ZVBtEffPYEo26zl6PvDmMFGWRIsmFXh+82ZdYZVGmzYACzQO/CMGjz5k2EUGoDvklvTECXIKRJT3vjIFVrnL2JOQWutm+d4Tg5NoWGgMhPFPXVyzPk7JPhJpJSTb3hiTmUA2YBlf6Ilo+YFcLgAtqa7clUTQARzrchHQi5OYKLaKioRkRODqwZ78/dD5fBbKj5xV4vTc0Hv+xHXgkii869L5BB3ks68MSAol0WDZGkZHTq2s4X4V4XnAQqQF6CbmOxM016DXBq3hFMWeJGfez8ao32kaUcE5q8jOZLz90I0wReIAmnL9S0M4ppZCkpSeebs/gmWbvCGBSNXhA5OesYFEsfoiGQKu/jQfIGbl/kpzpw1B6gcwrXhIKolciQpICPAKEcWk0RuNGktdpu3q+ytaVp209nDsLyLsNgP9dThdO+DNwHWHOGIMjSkN0Y96/XxzYiZ+htbBaNIWXobzGejRQYhLB240dRSdAZySJdaWnq2D+2GRCcQMIalhWzk0hQFRMuKbiHgArAXAT4u+QDNHDcDG0N0NquuqRg+8++K/RA/L5r0f4f8ALwQoosqBMkmo1wrJ7MwP3rGoTwS0/nHE62HVwPZlYaE675SQv0VfKG+havnJVXh0EHiGikgnPPHRw2hw+mhx7EN6leVCynUrW0gxZeo2rtwFdviDZrNUVWWkP7CEJE0RD+Y60tJnuqFHucg2Aiuu450kkdHHTgtPeXlNYOPBHrZg5cglnKZAFwahv2XT3sBYS3AptOIgCE8cC3aWo6/N5630uPsXtD5C9F4XoyD747ewXNCLI+Mc3SUyja0TUKJDT4CNKSEngBXAUcEfVMrnrbaEiRTWNCa/e6KcFQeu1GZ9sVJNmGxL1rQD4oQw+oADLoDOAjuElSqTawhhHsBrs3P6NFVwYn0BIccXoi+5mepirdMjTadDeDLHWRXU9WlTI0LUXntE7zPoJ+QE/3qmu+AfM/bQusYZjWMrVs4QQjGdhpcHsfapgnDscLNuz9etOuR/zlUSlwib1jD5SAAnCCPwSjZ+ORrT/9jX7ux15OoAdyraS4hQ/XrL/340IUsJiSB/r4J+elmYFBN592QzX4EGvc8Bfprx49j6dvOEklzYOpbKfMH7lQbh44l6c0Y0aWH+7DySGekKBLTbDja8zs4dKMKHTjDNYnnAIWXE9nGfmTKaZk7vF5BDIN+7qMblfQ2/We/7IOZ0GDnsmjYkp9P+G0xxu2jUrFBS1zv7kylj6mdljzXR2Qlrcjm0cD5BjzA4iIxsw7KH/pIfE4hVwN2DOD1nALZ9RCsn/8KR+6rG1HVvgdB9BIzXtbjxaQGbu+4z9DLnbRLqf4C84AOCdx/DzoFHsN7ulBB6/Nt6vOHd4brglUQMsMkr/mhTHzYrLe7aNcnQx0to6s8x82Y460j/Xg8Leb6jbjl9F0Lbjd5jIqJqvOT/AnLpAoBF4Asy690RqunKMCBQWkH3A26Pzx3dZAM2nprBD+bFZ2SODDp+Aj0ORHJ/ntOD3dYiKqnoF7briWK2GCSY4zd+rvbQbOc/FOluBNmD7inxzUw1zM2n0U4HUCL3AQYP9RQReCsDd9/0L9fpFO+OH7KpXz9fT6Jz9FBTkry2bdtXp7ZBupsZfTlNI0NNOOJHrh9K4H51nJFlUUwk5dLOzIgmAnGaMiOwC63sA4vZKy9SdRsL9/sHqxRdO17r9EogXRiB20K0SUvsmJfO8827dB2nlbc3hTgfag9UbG9B1AlH4y1DewDS3czBuCh1wRuSVGUj7qObZLsllYE6P4KiEkj5WsmJQGa3RbZunLwR53Tx9hrXFAunqydTLM7UrCYuFRR4aPro9FqF7GUaezbdaTphcjWQ2AA/tDIob4fRTAy0FYS1o662pkl1fdDUTpux+1VE3G45RJJ2AP3+QNd36sbjys61t6Ob7IdcwavxT1LxSwZolTrZhMszwqcM9E/L5ClZOPSzoaNSffGO/xhKFYJ8Tve3gkqRRbZ+4+/Htza1czXmK3WMnCBqr9cSf3PGHL6hrY0B1rdH19S1/WfT577lbziwcP9jl1nb0KvIBL81WLaUtVougGSayxLrZeHgVuGGtSjWFtiYFF/qNtVLWo0CwtWqVauBAyM8ET5gg79CXiiTVrgvawYvMsWg7COO/DriCQWU033/y3+26KZ7zF9Ibt6awq66tkywEU4L5ct+4qblS6puVOp9K2szcGn5cqdbUSTAWnKuu8izMtirxqpZEgBMosXFpYTxKJYPCvIFLlS/RbrDNb9/eYSvhY+GKnjklLEyvG8IBhsdBb/ddj9/7MR/z++iN3Y6yFiDPxq7B9ynmXndAhjBVZ9IzKf4nSz5rlNeU3GSRcLvZ2B687oJKdlw84AhGlHzUelP2OF4vQU6MBixiR++UZZo5iLCvXzG2PUlO+r+HMxWJ3byfEwVYKM3VDxQfHYiKFrWMHxekukeB1Z3VY+CpFPjtIT7aIdJrelTHtkpe/EIJUG3cLJRjbiCh9qMQm3GOUXHpGHc7vBxzB2PKoha9TzEV97YUU7/yRoIhcti8LwPGLvrEEBqMkSSlPJRp9AQoA4xschxgUjchYsAlcDz5KtrYWTRt75NrmseLlLcdiYhR5E/b1O6zbnPbtHbwR2ca2HjtAXV2DAiwyBZlI7Mi0Bk7PyL/Sok1wa+/j56Wl0DbWhe1oLtX9VJSx7O4rcO9L2FgtjAWk3GOnRaZTptygTpW1u+eAvVkhr4mzhJEG/hzYE1l+0cJIVrCN/oBLnpP1UEJIte0b9RE3/1phqdNVzYMXY7wxcAtqnIp6Cp3i6I3ITBf3nlHNUGJNgOXJ/W2epa67dK5GRgqmMzbUuGfqxjNGe0pL97NvZNRXKOaB/WEynhIbZfvxyLafokhvuiHjB9Tk7gVJGO+t2z7g4H34JFfVVA7zY92KQxohanOFW+0Q+XjsP9xfMf3PnsthHyoxB8efv9Ita+j3JCWTyMEfPc6pN6JKRpiwKp7IKms8qWAdwB7ZqJ7TMaMV4jeXl/IQJ2jd4zD4M6mJBxTj+xNpWg9nOSVuTKT6qhceUjOU6q9wGkbYhDGFOzAvQU/s97U+VU+WAqHA0B7++GFPCAcoqsM1KtvDFBS2+6vkgrOf2O/Dm/czpxgZcicPkLAmMrKf4epw+D1XwZJOtRkWRB8i0TQeFqpE2Gkr2/lxYPCHaiseUfp0qv1Fbh9kYYFElP4a7TUXOrjypmQyit5xW1NB83ol62AAneaBNcMM14JTVSlzCMQ4+Jz7eZeXTsF1i6rrqnSJA8c5iR40xHKx9l2XITOuB6NoOtlYFQb/deGbb2daf4CoYbCH67rLyzV1mB3f7xey9s4eTpo/XdLfWL1yWJ7scHuVakB10+aeeahl7vwkxro/0VDCFFgGewotbeZS2SE1cxTAsbNjMrd4qNQgiKd8DlQDZ4QKDHEnhxXw+RJZertAR2Z0mStlT1YIGxSch0TA4cMLFoZnCsapKjuHoZK53XXudhgUckP4QJHUDryQsvAQ54/dd0lLjQYw+GgoDcF9TTeNDzVWQA/Q41KAWHeafkxtmiy0XCegA8PReePNvzqh+3ELziS4zkxZ3kZZNSnDrIYkKHwY4jGsIWkAErUngomgktlYNwDBKNtdJjXATA6qqA5ShhDHgAfBDZDQOcGwHkHunhIRogUKc+xOM5oazb820pIuBYwSu68cEDKT0Hh7Gja4lzFAgk7mYOa+7RCNhS0TXCYM17zPBEpKkAMq80CskqLUsy+iZ6A43sI2Xi/c4TlbniwBT71vpQdOrQFLjiCMIREpA/UUeazJtMS2iqLKfqQmK70apY9+VGNMEf9THmSs6b1e67zCju53JDZoZsKWep3NXht25OgbSsmrugKlDUrYwaokYzIRrSK0gYGC2MVBB6YQUAMSwqp1u4chg97l/NWDZAbA2+fC1yFt1RIxKUjy6BwXmoFoSze13pkmISUTVgMhm5oGomnaEb4qaRK9mn8vf5EtRcHOzy2vEDgmFJBipwwhlpkFtvEYPeTmJQA8SwUZi8GQkUPOCxJd0C6w6+kSxMzhRdG6zev2Lu9HpwGGtkWLjRTsIp/aADlQpRDaJyo8HktTCSFIwfQj5QQSHQFT1KchK0sQ0/ThQClAG6QJaJhHbC5oblTYy7dsxP2DMwh8YqY/hkF0kpbWUNSKNAmjiMxofboqscZBBtMZf/c9aPpknUdAiIbpR8xuIcYXdmULAEZrrV2J2kiw1/R9kwhPPeJCnZkYOpkJ9yAJhWx82toIzzigAO1+aiSmiU8yEf9SfllAI2Fzb+q7D3hi1YLlc9jlMBCfcyKQKkH3CI4BLR1PPa89UUretajLx5jMIEwykOmRDD1idgRQ1GQJWDLQ07jJHQAtUwKCfU0pUhD5CcYSicidnCUCcqAxyUNivzzVzP0ThIDhYdPNhNRPIlGpxUZvs45xEhST4EE8EjxbpwlUXnG0Pw0xMxNK9ejJMDKsBUCP7F/rbaeN8iDq04Mu0DK9zRGSNb3nnq4MwPCM8ircZNeikbL1oxH4MRRNB4Ov0tqfKg2qOa8d5jxAAapMkfvC6BFgFw+ARVMvYHVUv7e2gRA0gmpwvASefRTtj0QSogA9wmcVD7ifpqbmmADOG1WyqXXldvTMYUehmEQDImYT/A+Fon2+lmTCCiQaKscMyq26zIwAYEuSGmakmUznCJ5kBLrkh0tlD0F53L7bM8NBBuciMTvnDWHCGfA+JKsM+P2lj+CBMPuDM0/hz6q8RCS7BWcQp6rST+F1vuE5e1CPQqL1W+88gLHchdk3IAfQJA549gVpIxK4ohrYRe3ObVH3nOEGBDNxGNZ3+z7bOzBwSc95d6CBowzvtAbPkaqWxbvoAa/WIYAi8ThbqAL/egpw1aWnb2Owk/He5bYmtH6nXCaA06DN1/qekqRSGEY8wwAFnBiFhl7frUD2p3ga19NBr46pHaZTtbvf3ryDZlVtRrEFEzH6oVzffqT9pm4XKBCY+VPx0U8wKfJ4pGSfKEHCmmn0TF67TjbfViDLyc8rjhnJabqe2pGDNWQbG4HedjkS7VAOdMnS5mbtSgfwFynR7358lKwK2rP3QwNtpsYFRFDLgSuQXkX8xgEMgVgMvN6h6l4Egv3jyLjtDAn/+i2gkCNR5mtjoL5mlhspXTTDC7o/tOuUnAJZLCcwTlVQpT7JKySmTfoTinMSeEeYFw7oUwHYrvW9TpYi6zkqISUZz0BX6HUFhsJ2isA+EVwBgCIHXWVcB5ebrzPQ2w6zJ8HakLt+uhjHZLTENB4pDVdwvfsNMc3yIPGTEsu3DOUtet917uzsteK/dvYL6GlerHINK9ALtmIN+NcHtDgtRks6d67/aVH0V2d24AmOVWVivc1F38XYyzb14lo+Z3p7QdjL5sWrCuJEiSQr3YE0v4gz+Ytl0iU2tJxFxXHnQL89XKtecEv/e3PxzUqEH0zCKsfFjLBJxcXqjZ2NsmWLuh02jIABdasKDWfnkOJFi7E0v5I9XH5hoF9Eu/ti8SOxWFxppX40bHPRS/biLZkCUFMXnVr8GalH1a2CyxMDyJmL7i/3bg6r4XNrUhlmWJP5SGxTH2ylPmDjF/g2f7GBWWJDbVhUmgxITEMBwYnisN2Zi5GfH2xOPc3n7ikpsRmzWEx+lJYoH2yle6PIIeyG5+J5ho2YEr+oOJmql3pcxSrYryTtcuSi70WzQL9CK+4eP+eICdvFZEM/Z8nQRaeT4sSSM6zFd191OhtUo4AAPZudXP6LsIKwZ5GLkY/EiX69VpwR5+x7f/EWGwxt0iSiF3XPRASadahbJSUmpj1KXrToS0vEGm5NQQEcKIuZOvcLEpOsVE5sCUxrUVr0kRcX6IUu8iZwo46yrCoLUre7Vi26E2tqsEZcL+7BjTJMKynHs3YylbEdBaSrim3IPouek2bl4qMooBwFEM+aWXlaLW6UTWJaizVpETcy12oR/6Y+RhEX2/ZQ4kvu9A0nXHAjq4iLyokRPnFdGvcmLrzJSuKbrIL72MSX+5+fX11TM6BOfFncnre6ZqCGS1zL2lfXiManiItV74SIuFo/Sycu/NezHOKaczGTuKif+fI40e0pq49zN3r1cU7fEBBflv5xa/UHHz2qQlzjH5USF93JGmKN1b7PzbjgRkYTF37tpC5xzeurJi6cjuOrj+NzMYa4ON14sbrmxXMX4kthX/qXNQMsXPDyv0pc1Ae+rAl9trpG1BK8+stUTPCIL1Pulq2uGTmhsnqjLhevPs7Pr/mray66E5dzPV9uVO6Xor0//kRcuMcHVtcs3G0iLqyB2i9rxiyIS2vPDmINf7pn9RmIbW/4UvRJdVzwKvUlLoKe6dUCKtqFqwWMpa+uye1YLcD3kc+XNV8KiL8c+aWA3P8/a4q44FWKG/U/EAKwSRcWgysAAAAASUVORK5CYII="},493:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAACMCAYAAAAk0zJ7AAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAH0KADAAQAAAABAAAAjAAAAAAFjz2hAAATkUlEQVR4Ae3ZMRHAMAwEQSc4wp+mc2MGrrVioJ3v7tnf2ssRIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIHhAu/w/71PgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSOgIBuCAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIJCCgmwEBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEEhAQDcDAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCQgIBuBgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIJCCgmwEBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEEhAQDcDAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCQgIBuBgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIJCCgmwEBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEEhAQDcDAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCQgIBuBgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIJCCgmwEBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEEhAQDcDAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCQgIBuBgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBK4EfvocCaqQzXvsAAAAASUVORK5CYII="},4171:function(t){"use strict";t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB9AAAACMCAYAAAAk0zJ7AAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAH0KADAAQAAAABAAAAjAAAAAAFjz2hAAATkUlEQVR4Ae3ZMRHAMAwEQSf8KQSrc2MGrrVioJ3v7tnf2ssRIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAIHhAu/w/71PgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSOgIBuCAQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIJCCgmwEBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEEhAQDcDAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCQgIBuBgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIJCCgmwEBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEEhAQDcDAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCQgIBuBgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIJCCgmwEBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEEhAQDcDAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCQgIBuBgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIJCCgmwEBAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEEhAQDcDAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECCQgIBuBgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAIAEB3QwIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgEACAroZECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBBAR0MyBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgkI6GZAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQSENDNgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgACBK4EfHFMC6+XG9+8AAAAASUVORK5CYII="},2494:function(t){"use strict";t.exports=n(2494)},7874:function(t){"use strict";t.exports=n(5733)},5644:function(t){"use strict";t.exports=n(5644)},5456:function(t){"use strict";t.exports=n(1217)},6209:function(t){"use strict";t.exports=n(1764)},6530:function(t){"use strict";t.exports=n(9471)},907:function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{Z:function(){return i}})},7326:function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{Z:function(){return i}})},5861:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(i,r)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,l,"next",t)}function l(t){i(a,r,o,s,l,"throw",t)}s(void 0)}))}}n.d(e,{Z:function(){return r}})},5671:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return i}})},3144:function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.d(e,{Z:function(){return r}})},3668:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var i=n(1120),r=n(8814);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}var a=n(7326);function s(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(t)}function l(t){var e=(0,r.Z)();return function(){var n,r=(0,i.Z)(t);if(e){var o=(0,i.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}},4942:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return i}})},1752:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(1120);function r(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=(0,i.Z)(t)););return t}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},o.apply(this,arguments)}},1120:function(t,e,n){"use strict";function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}n.d(e,{Z:function(){return i}})},136:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(9611);function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&(0,i.Z)(t,e)}},8814:function(t,e,n){"use strict";function i(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}n.d(e,{Z:function(){return i}})},1413:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(4942);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},4925:function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}n.d(e,{Z:function(){return i}})},9611:function(t,e,n){"use strict";function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}n.d(e,{Z:function(){return i}})},2982:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(907),r=n(181);function o(t){return function(t){if(Array.isArray(t))return(0,i.Z)(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||(0,r.Z)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},181:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(907);function r(t,e){if(t){if("string"==typeof t)return(0,i.Z)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.Z)(t,e):void 0}}}},i={};function o(t){var n=i[t];if(void 0!==n)return n.exports;var r=i[t]={id:t,exports:{}};return e[t](r,r.exports,o),r.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};(function(){"use strict";o.r(a),o.d(a,{Area:function(){return Yt},AttackShield:function(){return ke},BuildingImg:function(){return De},BuildingImgLoader:function(){return Fe},BuildingLoader:function(){return Ge},CrossPiece:function(){return tn},Css2dBind:function(){return ve},GLTFModel:function(){return an},Image:function(){return Xe},Line:function(){return Ut},MeshLine:function(){return p},MeshLineMaterial:function(){return m},MeshLineRaycast:function(){return f},Nodes:function(){return fe},PolygonGeometry:function(){return G},RippleWall:function(){return Ue},Scan3:function(){return qt},Shield2:function(){return we},Shield3:function(){return Se},SpriteImage:function(){return qe},SpriteVideo:function(){return Je},Star:function(){return ne},StarArcGroup:function(){return le},StarLine:function(){return ae},StarRing:function(){return re},StarRingGroup:function(){return ue},Text:function(){return Ye},Video:function(){return Qe},ZipLine:function(){return on},getExtrudeMesh:function(){return Bt}});var t={};o.r(t),o.d(t,{ArcCurve:function(){return ct},CatmullRomCurve3:function(){return gt},CubicBezierCurve:function(){return bt},CubicBezierCurve3:function(){return xt},EllipseCurve:function(){return lt},LineCurve:function(){return wt},LineCurve3:function(){return _t},QuadraticBezierCurve:function(){return Ct},QuadraticBezierCurve3:function(){return At},SplineCurve:function(){return It}});var e=o(3144),i=o(5671),s=o(7326),l=o(136),c=o(3668),u=o(5644),h="\n    ".concat(u.ShaderChunk.logdepthbuf_pars_vertex,"\n    ").concat(u.ShaderChunk.fog_pars_vertex,"\n    attribute vec3 previous;\n    attribute vec3 next;\n    attribute float side;\n    attribute float width;\n    attribute float counters;\n\n    uniform vec2 resolution;\n    uniform float lineWidth;\n    uniform vec3 color;\n    uniform float opacity;\n    uniform float sizeAttenuation;\n    uniform vec2 offset;\n    uniform float time;\n    uniform vec3 lightColor;\n    uniform vec2 uCenter;\n    uniform float size;\n    uniform float speed;\n    uniform float lightWidth;\n    uniform float lineLightAnimation;\n\n    varying vec2 vUV;\n    varying vec4 vColor;\n    varying float vCounters;\n\n    vec2 fix(vec4 i,float aspect){\n\n        vec2 res=i.xy/i.w;\n        res.x*=aspect;\n        vCounters=counters;\n        return res;\n\n    }\n\n    void main(){\n\n        float aspect=resolution.x/resolution.y;\n        float pixelWidthRatio=1./(resolution.x*projectionMatrix[0][0]);\n\n        if (lineLightAnimation == 1.0) {\n          vec2 vWorld=position.xy;\n          float r_time=mod(time/(speed*size),2.);\n          float l=distance(vWorld, uCenter)/size;\n          float r_opacity=smoothstep(r_time-lightWidth*2.,r_time-lightWidth,l)-smoothstep(r_time-lightWidth,r_time,l);\n          vColor=vec4(mix(color,lightColor,r_opacity),opacity);\n        } else {\n          vColor=vec4(color,opacity);\n        }\n\n\n        vUV=uv+offset;\n\n        mat4 m=projectionMatrix*modelViewMatrix;\n        vec4 finalPosition=m*vec4(position,1.);\n        vec4 prevPos=m*vec4(previous,1.);\n        vec4 nextPos=m*vec4(next,1.);\n\n        vec2 currentP=fix(finalPosition,aspect);\n        vec2 prevP=fix(prevPos,aspect);\n        vec2 nextP=fix(nextPos,aspect);\n\n        float pixelWidth=finalPosition.w*pixelWidthRatio;\n        float w=1.8*pixelWidth*lineWidth*width;\n\n        if(sizeAttenuation==1.){\n            w=1.8*lineWidth*width;\n        }\n\n        vec2 dir;\n        if(nextP==currentP)dir=normalize(currentP-prevP);\n        else if(prevP==currentP)dir=normalize(nextP-currentP);\n        else{\n            vec2 dir1=normalize(currentP-prevP);\n            vec2 dir2=normalize(nextP-currentP);\n            dir=normalize(dir1+dir2);\n\n            vec2 perp=vec2(-dir1.y,dir1.x);\n            vec2 miter=vec2(-dir.y,dir.x);\n            //w = clamp( w / dot( miter, perp ), 0., 4. * lineWidth * width );\n\n        }\n\n        //vec2 normal = ( cross( vec3( dir, 0. ), vec3( 0., 0., 1. ) ) ).xy;\n        vec2 normal=vec2(-dir.y,dir.x);\n        normal.x/=aspect;\n        normal*=.5*w;\n\n        vec4 offset=vec4(normal*side,0.,1.);\n        finalPosition.xy+=offset.xy;\n\n        gl_Position=finalPosition;\n        ").concat(u.ShaderChunk.logdepthbuf_vertex,"\n        vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n        ").concat(u.ShaderChunk.fog_vertex,"\n    }\n"),d="\n".concat(u.ShaderChunk.fog_pars_fragment,"\n").concat(u.ShaderChunk.logdepthbuf_pars_fragment,"\n\n\nuniform sampler2D map;\nuniform sampler2D alphaMap;\nuniform float useMap;\nuniform float useAlphaMap;\nuniform float useDash;\nuniform float dashArray;\nuniform float dashOffset;\nuniform float dashRatio;\nuniform float visibility;\nuniform float alphaTest;\nuniform vec2 repeat;\n\nvarying vec2 vUV;\nvarying vec4 vColor;\nvarying float vCounters;\n\nvoid main() {\n  ").concat(u.ShaderChunk.logdepthbuf_fragment,"\n    vec4 c = vColor;\n    if( useMap == 1. ) c *= texture2D( map, vUV * repeat );\n    if( useAlphaMap == 1. ) c.a *= texture2D( alphaMap, vUV * repeat ).a;\n    if( c.a < alphaTest ) discard;\n    if( useDash == 1. ){\n        c.a *= ceil(mod(vCounters + dashOffset, dashArray) - (dashArray * dashRatio));\n    }\n    gl_FragColor = c;\n    gl_FragColor.a *= step(vCounters, visibility);\n    ").concat(u.ShaderChunk.fog_fragment,"\n}\n"),p=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t;return(0,i.Z)(this,r),(t=n.call(this)).isMeshLine=!0,t.type="MeshLine",t.positions=[],t.previous=[],t.next=[],t.side=[],t.width=[],t.indices_array=[],t.uvs=[],t.counters=[],t._points=[],t._geom=null,t.widthCallback=null,t.matrixWorld=new u.Matrix4,Object.defineProperties((0,s.Z)(t),{geometry:{enumerable:!0,get:function(){return this}},geom:{enumerable:!0,get:function(){return this._geom},set:function(t){this.setGeometry(t,this.widthCallback)}},points:{enumerable:!0,get:function(){return this._points},set:function(t){this.setPoints(t,this.widthCallback)}}}),t}return(0,e.Z)(r)}(u.BufferGeometry);function f(t,e){var n=new u.Matrix4,i=new u.Ray,r=new u.Sphere,o=new u.Vector3,a=this.geometry;if(a.boundingSphere||a.computeBoundingSphere(),r.copy(a.boundingSphere),r.applyMatrix4(this.matrixWorld),!1!==t.ray.intersectSphere(r,o)){n.copy(this.matrixWorld).invert(),i.copy(t.ray).applyMatrix4(n);var s=new u.Vector3,l=new u.Vector3,c=new u.Vector3,h=this instanceof u.LineSegments?2:1,d=a.index,p=a.attributes;if(null!==d)for(var f=d.array,g=p.position.array,m=p.width.array,v=0,y=f.length-1;v<y;v+=h){var b=f[v],x=f[v+1];s.fromArray(g,3*b),l.fromArray(g,3*x);var w=void 0!==m[Math.floor(v/3)]?m[Math.floor(v/3)]:1,_=t.params.Line.threshold+this.material.lineWidth*w/2,C=_*_;if(!(i.distanceSqToSegment(s,l,o,c)>C)){o.applyMatrix4(this.matrixWorld);var A=t.ray.origin.distanceTo(o);A<t.near||A>t.far||(e.push({distance:A,point:c.clone().applyMatrix4(this.matrixWorld),index:v,face:null,faceIndex:null,object:this}),v=y)}}}}function g(t,e,n,i,r){var o;if(t=t.subarray||t.slice?t:t.buffer,n=n.subarray||n.slice?n:n.buffer,t=e?t.subarray?t.subarray(e,r&&e+r):t.slice(e,r&&e+r):t,n.set)n.set(t,i);else for(o=0;o<t.length;o++)n[o+i]=t[o];return n}p.prototype.setMatrixWorld=function(t){this.matrixWorld=t},p.prototype.setGeometry=function(t,e){this._geometry=t,this.setPoints(t.getAttribute("position").array,e)},p.prototype.setPoints=function(t,e){if(t instanceof Float32Array||t instanceof Array){if(this._points=t,this.widthCallback=e,this.positions=[],this.counters=[],t.length&&t[0]instanceof u.Vector3)for(var n=0;n<t.length;n++){var i=t[n],r=n/t.length;this.positions.push(i.x,i.y,i.z),this.positions.push(i.x,i.y,i.z),this.counters.push(r),this.counters.push(r)}else for(n=0;n<t.length;n+=3)r=n/t.length,this.positions.push(t[n],t[n+1],t[n+2]),this.positions.push(t[n],t[n+1],t[n+2]),this.counters.push(r),this.counters.push(r);this.process()}else console.error("ERROR: The BufferArray of points is not instancied correctly.")},p.prototype.raycast=f,p.prototype.compareV3=function(t,e){var n=6*t,i=6*e;return this.positions[n]===this.positions[i]&&this.positions[n+1]===this.positions[i+1]&&this.positions[n+2]===this.positions[i+2]},p.prototype.copyV3=function(t){var e=6*t;return[this.positions[e],this.positions[e+1],this.positions[e+2]]},p.prototype.process=function(){var t,e,n=this.positions.length/6;this.previous=[],this.next=[],this.side=[],this.width=[],this.indices_array=[],this.uvs=[],e=this.compareV3(0,n-1)?this.copyV3(n-2):this.copyV3(0),this.previous.push(e[0],e[1],e[2]),this.previous.push(e[0],e[1],e[2]);for(var i=0;i<n;i++){if(this.side.push(1),this.side.push(-1),t=this.widthCallback?this.widthCallback(i/(n-1)):1,this.width.push(t),this.width.push(t),this.uvs.push(i/(n-1),0),this.uvs.push(i/(n-1),1),i<n-1){e=this.copyV3(i),this.previous.push(e[0],e[1],e[2]),this.previous.push(e[0],e[1],e[2]);var r=2*i;this.indices_array.push(r,r+1,r+2),this.indices_array.push(r+2,r+1,r+3)}i>0&&(e=this.copyV3(i),this.next.push(e[0],e[1],e[2]),this.next.push(e[0],e[1],e[2]))}e=this.compareV3(n-1,0)?this.copyV3(1):this.copyV3(n-1),this.next.push(e[0],e[1],e[2]),this.next.push(e[0],e[1],e[2]),this._attributes&&this._attributes.position.count===this.positions.length?(this._attributes.position.copyArray(new Float32Array(this.positions)),this._attributes.position.needsUpdate=!0,this._attributes.previous.copyArray(new Float32Array(this.previous)),this._attributes.previous.needsUpdate=!0,this._attributes.next.copyArray(new Float32Array(this.next)),this._attributes.next.needsUpdate=!0,this._attributes.side.copyArray(new Float32Array(this.side)),this._attributes.side.needsUpdate=!0,this._attributes.width.copyArray(new Float32Array(this.width)),this._attributes.width.needsUpdate=!0,this._attributes.uv.copyArray(new Float32Array(this.uvs)),this._attributes.uv.needsUpdate=!0,this._attributes.index.copyArray(new Uint16Array(this.indices_array)),this._attributes.index.needsUpdate=!0):this._attributes={position:new u.BufferAttribute(new Float32Array(this.positions),3),previous:new u.BufferAttribute(new Float32Array(this.previous),3),next:new u.BufferAttribute(new Float32Array(this.next),3),side:new u.BufferAttribute(new Float32Array(this.side),1),width:new u.BufferAttribute(new Float32Array(this.width),1),uv:new u.BufferAttribute(new Float32Array(this.uvs),2),index:new u.BufferAttribute(new Uint16Array(this.indices_array),1),counters:new u.BufferAttribute(new Float32Array(this.counters),1)},this.setAttribute("position",this._attributes.position),this.setAttribute("previous",this._attributes.previous),this.setAttribute("next",this._attributes.next),this.setAttribute("side",this._attributes.side),this.setAttribute("width",this._attributes.width),this.setAttribute("uv",this._attributes.uv),this.setAttribute("counters",this._attributes.counters),this.setIndex(this._attributes.index),this.computeBoundingSphere(),this.computeBoundingBox()},p.prototype.advance=function(t){var e=this._attributes.position.array,n=this._attributes.previous.array,i=this._attributes.next.array,r=e.length;g(e,0,n,0,r),g(e,6,e,0,r-6),e[r-6]=t.x,e[r-5]=t.y,e[r-4]=t.z,e[r-3]=t.x,e[r-2]=t.y,e[r-1]=t.z,g(e,6,i,0,r-6),i[r-6]=t.x,i[r-5]=t.y,i[r-4]=t.z,i[r-3]=t.x,i[r-2]=t.y,i[r-1]=t.z,this._attributes.position.needsUpdate=!0,this._attributes.previous.needsUpdate=!0,this._attributes.next.needsUpdate=!0},u.ShaderChunk.meshline_vert=h,u.ShaderChunk.meshline_frag=d;var m=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this,{uniforms:Object.assign({},u.UniformsLib.fog,{lineWidth:{value:1},map:{value:null},useMap:{value:0},alphaMap:{value:null},useAlphaMap:{value:0},color:{value:new u.Color(16777215)},opacity:{value:1},resolution:{value:new u.Vector2(1,1)},sizeAttenuation:{value:1},dashArray:{value:0},dashOffset:{value:0},dashRatio:{value:.5},useDash:{value:0},visibility:{value:1},alphaTest:{value:0},repeat:{value:new u.Vector2(1,1)},offset:{value:new u.Vector2(1,1)},lineLightAnimation:{value:1},time:{value:0},size:{value:300},speed:{value:.3},lightWidth:{value:.1},uCenter:{value:new u.Vector2(0,0)},lightColor:{value:new u.Color(16777215)}}),vertexShader:u.ShaderChunk.meshline_vert,fragmentShader:u.ShaderChunk.meshline_frag,depthWrite:void 0===t.depthWrite||t.depthWrite})).isMeshLineMaterial=!0,e.type="MeshLineMaterial",Object.defineProperties((0,s.Z)(e),{lineWidth:{enumerable:!0,get:function(){return this.uniforms.lineWidth.value},set:function(t){this.uniforms.lineWidth.value=t}},lineLightAnimation:{enumerable:!0,get:function(){return this.uniforms.lineLightAnimation.value},set:function(t){this.uniforms.lineLightAnimation.value=t}},map:{enumerable:!0,get:function(){return this.uniforms.map.value},set:function(t){this.uniforms.map.value=t}},useMap:{enumerable:!0,get:function(){return this.uniforms.useMap.value},set:function(t){this.uniforms.useMap.value=t}},alphaMap:{enumerable:!0,get:function(){return this.uniforms.alphaMap.value},set:function(t){this.uniforms.alphaMap.value=t}},useAlphaMap:{enumerable:!0,get:function(){return this.uniforms.useAlphaMap.value},set:function(t){this.uniforms.useAlphaMap.value=t}},color:{enumerable:!0,get:function(){return this.uniforms.color.value},set:function(t){this.uniforms.color.value=t}},lightColor:{enumerable:!0,get:function(){return this.uniforms.lightColor.value},set:function(t){this.uniforms.lightColor.value=t}},time:{enumerable:!0,get:function(){return this.uniforms.time.value},set:function(t){this.uniforms.time.value=t}},uCenter:{enumerable:!0,get:function(){return this.uniforms.uCenter.value},set:function(t){this.uniforms.uCenter.value=t}},size:{enumerable:!0,get:function(){return this.uniforms.size.value},set:function(t){this.uniforms.size.value=t}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(t){this.uniforms.resolution.value.copy(t)}},sizeAttenuation:{enumerable:!0,get:function(){return this.uniforms.sizeAttenuation.value},set:function(t){this.uniforms.sizeAttenuation.value=t}},dashArray:{enumerable:!0,get:function(){return this.uniforms.dashArray.value},set:function(t){this.uniforms.dashArray.value=t,this.useDash=0!==t?1:0}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(t){this.uniforms.dashOffset.value=t}},dashRatio:{enumerable:!0,get:function(){return this.uniforms.dashRatio.value},set:function(t){this.uniforms.dashRatio.value=t}},useDash:{enumerable:!0,get:function(){return this.uniforms.useDash.value},set:function(t){this.uniforms.useDash.value=t}},visibility:{enumerable:!0,get:function(){return this.uniforms.visibility.value},set:function(t){this.uniforms.visibility.value=t}},alphaTest:{enumerable:!0,get:function(){return this.uniforms.alphaTest.value},set:function(t){this.uniforms.alphaTest.value=t}},repeat:{enumerable:!0,get:function(){return this.uniforms.repeat.value},set:function(t){this.uniforms.repeat.value.copy(t)}},offset:{enumerable:!0,get:function(){return this.uniforms.offset.value},set:function(t){this.uniforms.offset.value.copy(t)}}}),e.setValues(t),e}return(0,e.Z)(r)}(u.ShaderMaterial);m.prototype.copy=function(t){return u.ShaderMaterial.prototype.copy.call(this,t),this.lineWidth=t.lineWidth,this.map=t.map,this.useMap=t.useMap,this.alphaMap=t.alphaMap,this.useAlphaMap=t.useAlphaMap,this.color.copy(t.color),this.opacity=t.opacity,this.resolution.copy(t.resolution),this.sizeAttenuation=t.sizeAttenuation,this.dashArray.copy(t.dashArray),this.dashOffset.copy(t.dashOffset),this.dashRatio.copy(t.dashRatio),this.useDash=t.useDash,this.visibility=t.visibility,this.alphaTest=t.alphaTest,this.repeat.copy(t.repeat),this.offset.copy(t.offset),this};var v=o(1413),y=o(181);function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,e)||(0,y.Z)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x=n(691),w=n(9187),_=o.n(w);function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=(90-e)*Math.PI/180,r=(90-t)*Math.PI/180;return[n*Math.sin(i)*Math.cos(r),n*Math.cos(i),n*Math.sin(i)*Math.sin(r)]}var A=n(3809),I=o.n(A),S=o(2982),M=n(5246),k=o.n(M),E=n(8147),T=o.n(E),O=n(1700),P=n(501),j=n(5180);function L(t,e){return t.map((function(t){var n,i=[];return t.forEach((function(t){if(n){var r=180*(0,O.geoDistance)(t,n)/Math.PI;if(r>e)for(var o=(0,O.geoInterpolate)(n,t),a=1/Math.ceil(r/e),s=a;s<1;)i.push(o(s)),s+=a}i.push(n=t)})),i}))}function D(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?(0,O.geoContains)(e,t):T()(t,e)}function R(t,e){var n={type:"Polygon",coordinates:t},i=b((0,O.geoBounds)(n),2),r=b(i[0],2),o=r[0],a=r[1],s=b(i[1],2),l=s[0],c=s[1];if(Math.min(Math.abs(l-o),Math.abs(c-a))<e)return[];var u=o>l||c>=89||a<=-89;return function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minLng,i=e.maxLng,r=e.minLat,o=e.maxLat,a=Math.round(Math.pow(360/t,2)/Math.PI),s=(1+Math.sqrt(5))/2,l=function(t){return t/s*360%360-180},c=function(t){return Math.acos(2*t/a-1)/Math.PI*180-90},u=function(t){return a*(Math.cos((t+90)*Math.PI/180)+1)/2},h=[void 0!==o?Math.ceil(u(o)):0,void 0!==r?Math.floor(u(r)):a-1],d=void 0===n&&void 0===i?function(){return!0}:void 0===n?function(t){return t<=i}:void 0===i?function(t){return t>=n}:i>=n?function(t){return t>=n&&t<=i}:function(t){return t>=n||t<=i},p=[],f=h[0];f<=h[1];f++){var g=l(f);d(g)&&p.push([g,c(f)])}return p}(e,{minLng:o,maxLng:l,minLat:a,maxLat:c}).filter((function(t){return D(t,n,u)}))}var B=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.resolution,i=void 0===n?1/0:n,r=L(t,i),o=(0,x.merge)(r),a=R(t,i),s=[].concat((0,S.Z)(o),(0,S.Z)(a)),l={type:"Polygon",coordinates:t},c=(0,O.geoBounds)(l),u=b(c,2),h=b(u[0],2),d=h[0],p=h[1],f=b(u[1],2),g=f[0],m=f[1],v=d>g||m>=89||p<=-89,y=[];if(v){var w=(0,P.geoVoronoi)(s).triangles(),C=new Map(s.map((function(t,e){var n=b(t,2),i=n[0],r=n[1];return["".concat(i,"-").concat(r),e]})));w.features.forEach((function(t){var e,n=t.geometry.coordinates[0].slice(0,3).reverse(),i=[];if(n.forEach((function(t){var e=b(t,2),n=e[0],r=e[1],o="".concat(n,"-").concat(r);C.has(o)&&i.push(C.get(o))})),3===i.length){if(i.some((function(t){return t<o.length}))&&!D(t.properties.circumcenter,l,v))return;(e=y).push.apply(e,i)}}))}else if(a.length)(function(){for(var t=k().from(s),e=function(e,n){var i,r=[2,1,0].map((function(n){return t.triangles[e+n]})),a=r.map((function(t){return s[t]}));if(r.some((function(t){return t<o.length}))&&!D([0,1].map((function(t){return(0,x.mean)(a,(function(e){return e[t]}))})),l,v))return"continue";(i=y).push.apply(i,(0,S.Z)(r))},n=0,i=t.triangles.length;n<i;n+=3)e(n)})();else{var A=_().flatten(r),I=A.vertices,M=A.holes,E=void 0===M?[]:M;y=_()(I,E,2)}var T=(0,j.scaleLinear)((0,x.extent)(s,(function(t){return t[0]})),[0,1]),B=(0,j.scaleLinear)((0,x.extent)(s,(function(t){return t[1]})),[0,1]),N=s.map((function(t){var e=b(t,2),n=e[0],i=e[1];return[T(n),B(i)]})),F={points:s,indices:y,uvs:N};return{contour:r,triangles:F}},N=(new u.BufferGeometry).setAttribute?"setAttribute":"addAttribute";function F(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.map((function(t){return t.map((function(t){var i=b(t,2),r=i[0],o=i[1];return n?C(r,o,e):[r,o,e]}))}));return _().flatten(i)}function z(t,e,n){for(var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=F(t,e,i),o=r.vertices,a=r.holes,s=F(t,n,i),l=s.vertices,c=(0,x.merge)([l,o]),u=Math.round(l.length/3),h=new Set(a),d=0,p=[],f=0;f<u;f++){var g=f+1;if(g===u)g=d;else if(h.has(g)){var m=g;g=d,d=m}p.push(f,f+u,g+u),p.push(g+u,g,f)}for(var v=[],y=1;y>=0;y--)for(var b=0;b<u;b+=1)v.push(b/(u-1),y);return{indices:p,vertices:c,uvs:v,topVerts:l}}function V(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return{indices:i?t.indices:t.indices.slice().reverse(),vertices:F([t.points],e,r).vertices,uvs:n}}var G=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Z)(this,r),(e=n.call(this)).type="PolygonBufferGeometry",e.parameters=(0,v.Z)((0,v.Z)({},{polygonGeoJson:t,startHeight:0,endHeight:1,closedBottom:!0,closedTop:!0,includeSides:!0,curvatureResolution:5,cartesian:!0,userDataRsoOffset:0}),o);var a=e.parameters,s=a.startHeight,l=a.endHeight,c=a.closedBottom,h=a.closedTop,d=a.includeSides,p=a.curvatureResolution,f=a.cartesian,g=a.userDataRsoOffset;I()(t[0])||t[0].reverse();var m=B(t,{resolution:p}),y=m.contour,b=m.triangles,w=(0,x.merge)(b.uvs),_=[],C=[],A=[],S=0,M=function(t){var n=Math.round(_.length/3),i=A.length;_=_.concat(t.vertices),C=C.concat(t.uvs),A=A.concat(n?t.indices.map((function(t){return t+n})):t.indices),e.addGroup(i,A.length-i,S++)};if(d){var k=z(y,s,l,f);M(k),e.userData.rso=g?z(y,s,l+g,f):k}return c&&M(V(b,s,w,!1,f)),h&&M(V(b,l,w,!0,f)),e.setIndex(A),e[N]("position",new u.Float32BufferAttribute(_,3)),e[N]("uv",new u.Float32BufferAttribute(C,2)),e.computeVertexNormals(),e}return(0,e.Z)(r)}(u.BufferGeometry),H=o(1752),W=o(1120);const U=[];for(let n=0;n<256;n++)U[n]=(n<16?"0":"")+n.toString(16);function Z(){const t=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(U[255&t]+U[t>>8&255]+U[t>>16&255]+U[t>>24&255]+"-"+U[255&e]+U[e>>8&255]+"-"+U[e>>16&15|64]+U[e>>24&255]+"-"+U[63&n|128]+U[n>>8&255]+"-"+U[n>>16&255]+U[n>>24&255]+U[255&i]+U[i>>8&255]+U[i>>16&255]+U[i>>24&255]).toUpperCase()}function Y(t,e,n){return Math.max(e,Math.min(n,t))}class X{constructor(t=0,e=0){this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6],this.y=i[1]*e+i[4]*n+i[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,o=this.y-t.y;return this.x=r*n-o*i+t.x,this.y=r*i+o*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}X.prototype.isVector2=!0;class q{constructor(t=0,e=0,n=0,i=1){this._x=t,this._y=e,this._z=n,this._w=i}static slerp(t,e,n,i){return console.warn("THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead."),n.slerpQuaternions(t,e,i)}static slerpFlat(t,e,n,i,r,o,a){let s=n[i+0],l=n[i+1],c=n[i+2],u=n[i+3];const h=r[o+0],d=r[o+1],p=r[o+2],f=r[o+3];if(0===a)return t[e+0]=s,t[e+1]=l,t[e+2]=c,void(t[e+3]=u);if(1===a)return t[e+0]=h,t[e+1]=d,t[e+2]=p,void(t[e+3]=f);if(u!==f||s!==h||l!==d||c!==p){let t=1-a;const e=s*h+l*d+c*p+u*f,n=e>=0?1:-1,i=1-e*e;if(i>Number.EPSILON){const r=Math.sqrt(i),o=Math.atan2(r,e*n);t=Math.sin(t*o)/r,a=Math.sin(a*o)/r}const r=a*n;if(s=s*t+h*r,l=l*t+d*r,c=c*t+p*r,u=u*t+f*r,t===1-a){const t=1/Math.sqrt(s*s+l*l+c*c+u*u);s*=t,l*=t,c*=t,u*=t}}t[e]=s,t[e+1]=l,t[e+2]=c,t[e+3]=u}static multiplyQuaternionsFlat(t,e,n,i,r,o){const a=n[i],s=n[i+1],l=n[i+2],c=n[i+3],u=r[o],h=r[o+1],d=r[o+2],p=r[o+3];return t[e]=a*p+c*u+s*d-l*h,t[e+1]=s*p+c*h+l*u-a*d,t[e+2]=l*p+c*d+a*h-s*u,t[e+3]=c*p-a*u-s*h-l*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");const n=t._x,i=t._y,r=t._z,o=t._order,a=Math.cos,s=Math.sin,l=a(n/2),c=a(i/2),u=a(r/2),h=s(n/2),d=s(i/2),p=s(r/2);switch(o){case"XYZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"YXZ":this._x=h*c*u+l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"ZXY":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u-h*d*p;break;case"ZYX":this._x=h*c*u-l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u+h*d*p;break;case"YZX":this._x=h*c*u+l*d*p,this._y=l*d*u+h*c*p,this._z=l*c*p-h*d*u,this._w=l*c*u-h*d*p;break;case"XZY":this._x=h*c*u-l*d*p,this._y=l*d*u-h*c*p,this._z=l*c*p+h*d*u,this._w=l*c*u+h*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],i=e[4],r=e[8],o=e[1],a=e[5],s=e[9],l=e[2],c=e[6],u=e[10],h=n+a+u;if(h>0){const t=.5/Math.sqrt(h+1);this._w=.25/t,this._x=(c-s)*t,this._y=(r-l)*t,this._z=(o-i)*t}else if(n>a&&n>u){const t=2*Math.sqrt(1+n-a-u);this._w=(c-s)/t,this._x=.25*t,this._y=(i+o)/t,this._z=(r+l)/t}else if(a>u){const t=2*Math.sqrt(1+a-n-u);this._w=(r-l)/t,this._x=(i+o)/t,this._y=.25*t,this._z=(s+c)/t}else{const t=2*Math.sqrt(1+u-n-a);this._w=(o-i)/t,this._x=(r+l)/t,this._y=(s+c)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return n<Number.EPSILON?(n=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Y(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const i=Math.min(1,e/n);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,i=t._y,r=t._z,o=t._w,a=e._x,s=e._y,l=e._z,c=e._w;return this._x=n*c+o*a+i*l-r*s,this._y=i*c+o*s+r*a-n*l,this._z=r*c+o*l+n*s-i*a,this._w=o*c-n*a-i*s-r*l,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,i=this._y,r=this._z,o=this._w;let a=o*t._w+n*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;const s=1-a*a;if(s<=Number.EPSILON){const t=1-e;return this._w=t*o+e*this._w,this._x=t*n+e*this._x,this._y=t*i+e*this._y,this._z=t*r+e*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(s),c=Math.atan2(l,a),u=Math.sin((1-e)*c)/l,h=Math.sin(e*c)/l;return this._w=o*u+this._w*h,this._x=n*u+this._x*h,this._y=i*u+this._y*h,this._z=r*u+this._z*h,this._onChangeCallback(),this}slerpQuaternions(t,e,n){this.copy(t).slerp(e,n)}random(){const t=Math.random(),e=Math.sqrt(1-t),n=Math.sqrt(t),i=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(e*Math.cos(i),n*Math.sin(r),n*Math.cos(r),e*Math.sin(i))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}}q.prototype.isQuaternion=!0;class K{constructor(t=0,e=0,n=0){this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(J.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(J.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=t.elements,o=1/(r[3]*e+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*n+r[8]*i+r[12])*o,this.y=(r[1]*e+r[5]*n+r[9]*i+r[13])*o,this.z=(r[2]*e+r[6]*n+r[10]*i+r[14])*o,this}applyQuaternion(t){const e=this.x,n=this.y,i=this.z,r=t.x,o=t.y,a=t.z,s=t.w,l=s*e+o*i-a*n,c=s*n+a*e-r*i,u=s*i+r*n-o*e,h=-r*e-o*n-a*i;return this.x=l*s+h*-r+c*-a-u*-o,this.y=c*s+h*-o+u*-r-l*-a,this.z=u*s+h*-a+l*-o-c*-r,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,i=t.y,r=t.z,o=e.x,a=e.y,s=e.z;return this.x=i*s-r*a,this.y=r*o-n*s,this.z=n*a-i*o,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return Q.copy(this).projectOnVector(t),this.sub(Q)}reflect(t){return this.sub(Q.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Y(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const i=Math.sin(e)*t;return this.x=i*Math.sin(n),this.y=Math.cos(e)*t,this.z=i*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=2*(Math.random()-.5),e=Math.random()*Math.PI*2,n=Math.sqrt(1-r(t,2));return this.x=n*Math.cos(e),this.y=n*Math.sin(e),this.z=t,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}K.prototype.isVector3=!0;const Q=new K,J=new q;class ${constructor(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}set(t,e,n,i,r,o,a,s,l,c,u,h,d,p,f,g){const m=this.elements;return m[0]=t,m[4]=e,m[8]=n,m[12]=i,m[1]=r,m[5]=o,m[9]=a,m[13]=s,m[2]=l,m[6]=c,m[10]=u,m[14]=h,m[3]=d,m[7]=p,m[11]=f,m[15]=g,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new $).fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,i=1/tt.setFromMatrixColumn(t,0).length(),r=1/tt.setFromMatrixColumn(t,1).length(),o=1/tt.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=0,e[4]=n[4]*r,e[5]=n[5]*r,e[6]=n[6]*r,e[7]=0,e[8]=n[8]*o,e[9]=n[9]*o,e[10]=n[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");const e=this.elements,n=t.x,i=t.y,r=t.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r);if("XYZ"===t.order){const t=o*c,n=o*u,i=a*c,r=a*u;e[0]=s*c,e[4]=-s*u,e[8]=l,e[1]=n+i*l,e[5]=t-r*l,e[9]=-a*s,e[2]=r-t*l,e[6]=i+n*l,e[10]=o*s}else if("YXZ"===t.order){const t=s*c,n=s*u,i=l*c,r=l*u;e[0]=t+r*a,e[4]=i*a-n,e[8]=o*l,e[1]=o*u,e[5]=o*c,e[9]=-a,e[2]=n*a-i,e[6]=r+t*a,e[10]=o*s}else if("ZXY"===t.order){const t=s*c,n=s*u,i=l*c,r=l*u;e[0]=t-r*a,e[4]=-o*u,e[8]=i+n*a,e[1]=n+i*a,e[5]=o*c,e[9]=r-t*a,e[2]=-o*l,e[6]=a,e[10]=o*s}else if("ZYX"===t.order){const t=o*c,n=o*u,i=a*c,r=a*u;e[0]=s*c,e[4]=i*l-n,e[8]=t*l+r,e[1]=s*u,e[5]=r*l+t,e[9]=n*l-i,e[2]=-l,e[6]=a*s,e[10]=o*s}else if("YZX"===t.order){const t=o*s,n=o*l,i=a*s,r=a*l;e[0]=s*c,e[4]=r-t*u,e[8]=i*u+n,e[1]=u,e[5]=o*c,e[9]=-a*c,e[2]=-l*c,e[6]=n*u+i,e[10]=t-r*u}else if("XZY"===t.order){const t=o*s,n=o*l,i=a*s,r=a*l;e[0]=s*c,e[4]=-u,e[8]=l*c,e[1]=t*u+r,e[5]=o*c,e[9]=n*u-i,e[2]=i*u-n,e[6]=a*c,e[10]=r*u+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(nt,t,it)}lookAt(t,e,n){const i=this.elements;return at.subVectors(t,e),0===at.lengthSq()&&(at.z=1),at.normalize(),rt.crossVectors(n,at),0===rt.lengthSq()&&(1===Math.abs(n.z)?at.x+=1e-4:at.z+=1e-4,at.normalize(),rt.crossVectors(n,at)),rt.normalize(),ot.crossVectors(at,rt),i[0]=rt.x,i[4]=ot.x,i[8]=at.x,i[1]=rt.y,i[5]=ot.y,i[9]=at.y,i[2]=rt.z,i[6]=ot.z,i[10]=at.z,this}multiply(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,o=n[0],a=n[4],s=n[8],l=n[12],c=n[1],u=n[5],h=n[9],d=n[13],p=n[2],f=n[6],g=n[10],m=n[14],v=n[3],y=n[7],b=n[11],x=n[15],w=i[0],_=i[4],C=i[8],A=i[12],I=i[1],S=i[5],M=i[9],k=i[13],E=i[2],T=i[6],O=i[10],P=i[14],j=i[3],L=i[7],D=i[11],R=i[15];return r[0]=o*w+a*I+s*E+l*j,r[4]=o*_+a*S+s*T+l*L,r[8]=o*C+a*M+s*O+l*D,r[12]=o*A+a*k+s*P+l*R,r[1]=c*w+u*I+h*E+d*j,r[5]=c*_+u*S+h*T+d*L,r[9]=c*C+u*M+h*O+d*D,r[13]=c*A+u*k+h*P+d*R,r[2]=p*w+f*I+g*E+m*j,r[6]=p*_+f*S+g*T+m*L,r[10]=p*C+f*M+g*O+m*D,r[14]=p*A+f*k+g*P+m*R,r[3]=v*w+y*I+b*E+x*j,r[7]=v*_+y*S+b*T+x*L,r[11]=v*C+y*M+b*O+x*D,r[15]=v*A+y*k+b*P+x*R,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],i=t[8],r=t[12],o=t[1],a=t[5],s=t[9],l=t[13],c=t[2],u=t[6],h=t[10],d=t[14];return t[3]*(+r*s*u-i*l*u-r*a*h+n*l*h+i*a*d-n*s*d)+t[7]*(+e*s*d-e*l*h+r*o*h-i*o*d+i*l*c-r*s*c)+t[11]*(+e*l*u-e*a*d-r*o*u+n*o*d+r*a*c-n*l*c)+t[15]*(-i*a*c-e*s*u+e*a*h+i*o*u-n*o*h+n*s*c)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const i=this.elements;return t.isVector3?(i[12]=t.x,i[13]=t.y,i[14]=t.z):(i[12]=t,i[13]=e,i[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],h=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15],v=u*g*l-f*h*l+f*s*d-a*g*d-u*s*m+a*h*m,y=p*h*l-c*g*l-p*s*d+o*g*d+c*s*m-o*h*m,b=c*f*l-p*u*l+p*a*d-o*f*d-c*a*m+o*u*m,x=p*u*s-c*f*s-p*a*h+o*f*h+c*a*g-o*u*g,w=e*v+n*y+i*b+r*x;if(0===w)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const _=1/w;return t[0]=v*_,t[1]=(f*h*r-u*g*r-f*i*d+n*g*d+u*i*m-n*h*m)*_,t[2]=(a*g*r-f*s*r+f*i*l-n*g*l-a*i*m+n*s*m)*_,t[3]=(u*s*r-a*h*r-u*i*l+n*h*l+a*i*d-n*s*d)*_,t[4]=y*_,t[5]=(c*g*r-p*h*r+p*i*d-e*g*d-c*i*m+e*h*m)*_,t[6]=(p*s*r-o*g*r-p*i*l+e*g*l+o*i*m-e*s*m)*_,t[7]=(o*h*r-c*s*r+c*i*l-e*h*l-o*i*d+e*s*d)*_,t[8]=b*_,t[9]=(p*u*r-c*f*r-p*n*d+e*f*d+c*n*m-e*u*m)*_,t[10]=(o*f*r-p*a*r+p*n*l-e*f*l-o*n*m+e*a*m)*_,t[11]=(c*a*r-o*u*r-c*n*l+e*u*l+o*n*d-e*a*d)*_,t[12]=x*_,t[13]=(c*f*i-p*u*i+p*n*h-e*f*h-c*n*g+e*u*g)*_,t[14]=(p*a*i-o*f*i-p*n*s+e*f*s+o*n*g-e*a*g)*_,t[15]=(o*u*i-c*a*i+c*n*s-e*u*s-o*n*h+e*a*h)*_,this}scale(t){const e=this.elements,n=t.x,i=t.y,r=t.z;return e[0]*=n,e[4]*=i,e[8]*=r,e[1]*=n,e[5]*=i,e[9]*=r,e[2]*=n,e[6]*=i,e[10]*=r,e[3]*=n,e[7]*=i,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,i))}makeTranslation(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),i=Math.sin(e),r=1-n,o=t.x,a=t.y,s=t.z,l=r*o,c=r*a;return this.set(l*o+n,l*a-i*s,l*s+i*a,0,l*a+i*s,c*a+n,c*s-i*o,0,l*s-i*a,c*s+i*o,r*s*s+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,i,r,o){return this.set(1,n,r,0,t,1,o,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){const i=this.elements,r=e._x,o=e._y,a=e._z,s=e._w,l=r+r,c=o+o,u=a+a,h=r*l,d=r*c,p=r*u,f=o*c,g=o*u,m=a*u,v=s*l,y=s*c,b=s*u,x=n.x,w=n.y,_=n.z;return i[0]=(1-(f+m))*x,i[1]=(d+b)*x,i[2]=(p-y)*x,i[3]=0,i[4]=(d-b)*w,i[5]=(1-(h+m))*w,i[6]=(g+v)*w,i[7]=0,i[8]=(p+y)*_,i[9]=(g-v)*_,i[10]=(1-(h+f))*_,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,n){const i=this.elements;let r=tt.set(i[0],i[1],i[2]).length();const o=tt.set(i[4],i[5],i[6]).length(),a=tt.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],et.copy(this);const s=1/r,l=1/o,c=1/a;return et.elements[0]*=s,et.elements[1]*=s,et.elements[2]*=s,et.elements[4]*=l,et.elements[5]*=l,et.elements[6]*=l,et.elements[8]*=c,et.elements[9]*=c,et.elements[10]*=c,e.setFromRotationMatrix(et),n.x=r,n.y=o,n.z=a,this}makePerspective(t,e,n,i,r,o){void 0===o&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");const a=this.elements,s=2*r/(e-t),l=2*r/(n-i),c=(e+t)/(e-t),u=(n+i)/(n-i),h=-(o+r)/(o-r),d=-2*o*r/(o-r);return a[0]=s,a[4]=0,a[8]=c,a[12]=0,a[1]=0,a[5]=l,a[9]=u,a[13]=0,a[2]=0,a[6]=0,a[10]=h,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(t,e,n,i,r,o){const a=this.elements,s=1/(e-t),l=1/(n-i),c=1/(o-r),u=(e+t)*s,h=(n+i)*l,d=(o+r)*c;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-u,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-h,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let i=0;i<16;i++)if(e[i]!==n[i])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}$.prototype.isMatrix4=!0;const tt=new K,et=new $,nt=new K(0,0,0),it=new K(1,1,1),rt=new K,ot=new K,at=new K;class st{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,i=this.getPoint(0),r=0;e.push(0);for(let o=1;o<=t;o++)n=this.getPoint(o/t),r+=n.distanceTo(i),e.push(r),i=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let i=0;const r=n.length;let o;o=e||t*n[r-1];let a,s=0,l=r-1;for(;s<=l;)if(i=Math.floor(s+(l-s)/2),a=n[i]-o,a<0)s=i+1;else{if(!(a>0)){l=i;break}l=i-1}if(i=l,n[i]===o)return i/(r-1);const c=n[i];return(i+(o-c)/(n[i+1]-c))/(r-1)}getTangent(t,e){let n=t-1e-4,i=t+1e-4;n<0&&(n=0),i>1&&(i=1);const r=this.getPoint(n),o=this.getPoint(i),a=e||(r.isVector2?new X:new K);return a.copy(o).sub(r).normalize(),a}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new K,i=[],r=[],o=[],a=new K,s=new $;for(let d=0;d<=t;d++){const e=d/t;i[d]=this.getTangentAt(e,new K)}r[0]=new K,o[0]=new K;let l=Number.MAX_VALUE;const c=Math.abs(i[0].x),u=Math.abs(i[0].y),h=Math.abs(i[0].z);c<=l&&(l=c,n.set(1,0,0)),u<=l&&(l=u,n.set(0,1,0)),h<=l&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],a),o[0].crossVectors(i[0],r[0]);for(let d=1;d<=t;d++){if(r[d]=r[d-1].clone(),o[d]=o[d-1].clone(),a.crossVectors(i[d-1],i[d]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(Y(i[d-1].dot(i[d]),-1,1));r[d].applyMatrix4(s.makeRotationAxis(a,t))}o[d].crossVectors(i[d],r[d])}if(!0===e){let e=Math.acos(Y(r[0].dot(r[t]),-1,1));e/=t,i[0].dot(a.crossVectors(r[0],r[t]))>0&&(e=-e);for(let n=1;n<=t;n++)r[n].applyMatrix4(s.makeRotationAxis(i[n],e*n)),o[n].crossVectors(i[n],r[n])}return{tangents:i,normals:r,binormals:o}}clone(){return(new this.constructor).copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class lt extends st{constructor(t=0,e=0,n=1,i=1,r=0,o=2*Math.PI,a=!1,s=0){super(),this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s}getPoint(t,e){const n=e||new X,i=2*Math.PI;let r=this.aEndAngle-this.aStartAngle;const o=Math.abs(r)<Number.EPSILON;for(;r<0;)r+=i;for(;r>i;)r-=i;r<Number.EPSILON&&(r=o?0:i),!0!==this.aClockwise||o||(r===i?r=-i:r-=i);const a=this.aStartAngle+t*r;let s=this.aX+this.xRadius*Math.cos(a),l=this.aY+this.yRadius*Math.sin(a);if(0!==this.aRotation){const t=Math.cos(this.aRotation),e=Math.sin(this.aRotation),n=s-this.aX,i=l-this.aY;s=n*t-i*e+this.aX,l=n*e+i*t+this.aY}return n.set(s,l)}copy(t){return super.copy(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}toJSON(){const t=super.toJSON();return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t}fromJSON(t){return super.fromJSON(t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this}}lt.prototype.isEllipseCurve=!0;class ct extends lt{constructor(t,e,n,i,r,o){super(t,e,n,n,i,r,o),this.type="ArcCurve"}}function ut(){let t=0,e=0,n=0,i=0;function r(r,o,a,s){t=r,e=a,n=-3*r+3*o-2*a-s,i=2*r-2*o+a+s}return{initCatmullRom:function(t,e,n,i,o){r(e,n,o*(n-t),o*(i-e))},initNonuniformCatmullRom:function(t,e,n,i,o,a,s){let l=(e-t)/o-(n-t)/(o+a)+(n-e)/a,c=(n-e)/a-(i-e)/(a+s)+(i-n)/s;l*=a,c*=a,r(e,n,l,c)},calc:function(r){const o=r*r;return t+e*r+n*o+i*(o*r)}}}ct.prototype.isArcCurve=!0;const ht=new K,dt=new ut,pt=new ut,ft=new ut;class gt extends st{constructor(t=[],e=!1,n="centripetal",i=.5){super(),this.type="CatmullRomCurve3",this.points=t,this.closed=e,this.curveType=n,this.tension=i}getPoint(t,e=new K){const n=e,i=this.points,r=i.length,o=(r-(this.closed?0:1))*t;let a,s,l=Math.floor(o),c=o-l;this.closed?l+=l>0?0:(Math.floor(Math.abs(l)/r)+1)*r:0===c&&l===r-1&&(l=r-2,c=1),this.closed||l>0?a=i[(l-1)%r]:(ht.subVectors(i[0],i[1]).add(i[0]),a=ht);const u=i[l%r],h=i[(l+1)%r];if(this.closed||l+2<r?s=i[(l+2)%r]:(ht.subVectors(i[r-1],i[r-2]).add(i[r-1]),s=ht),"centripetal"===this.curveType||"chordal"===this.curveType){const t="chordal"===this.curveType?.5:.25;let e=Math.pow(a.distanceToSquared(u),t),n=Math.pow(u.distanceToSquared(h),t),i=Math.pow(h.distanceToSquared(s),t);n<1e-4&&(n=1),e<1e-4&&(e=n),i<1e-4&&(i=n),dt.initNonuniformCatmullRom(a.x,u.x,h.x,s.x,e,n,i),pt.initNonuniformCatmullRom(a.y,u.y,h.y,s.y,e,n,i),ft.initNonuniformCatmullRom(a.z,u.z,h.z,s.z,e,n,i)}else"catmullrom"===this.curveType&&(dt.initCatmullRom(a.x,u.x,h.x,s.x,this.tension),pt.initCatmullRom(a.y,u.y,h.y,s.y,this.tension),ft.initCatmullRom(a.z,u.z,h.z,s.z,this.tension));return n.set(dt.calc(c),pt.calc(c),ft.calc(c)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new K).fromArray(n))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this}}function mt(t,e,n,i,r){const o=.5*(i-e),a=.5*(r-n),s=t*t;return(2*n-2*i+o+a)*(t*s)+(-3*n+3*i-2*o-a)*s+o*t+n}function vt(t,e,n,i){return function(t,e){const n=1-t;return n*n*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,n)+function(t,e){return t*t*e}(t,i)}function yt(t,e,n,i,r){return function(t,e){const n=1-t;return n*n*n*e}(t,e)+function(t,e){const n=1-t;return 3*n*n*t*e}(t,n)+function(t,e){return 3*(1-t)*t*t*e}(t,i)+function(t,e){return t*t*t*e}(t,r)}gt.prototype.isCatmullRomCurve3=!0;class bt extends st{constructor(t=new X,e=new X,n=new X,i=new X){super(),this.type="CubicBezierCurve",this.v0=t,this.v1=e,this.v2=n,this.v3=i}getPoint(t,e=new X){const n=e,i=this.v0,r=this.v1,o=this.v2,a=this.v3;return n.set(yt(t,i.x,r.x,o.x,a.x),yt(t,i.y,r.y,o.y,a.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}bt.prototype.isCubicBezierCurve=!0;class xt extends st{constructor(t=new K,e=new K,n=new K,i=new K){super(),this.type="CubicBezierCurve3",this.v0=t,this.v1=e,this.v2=n,this.v3=i}getPoint(t,e=new K){const n=e,i=this.v0,r=this.v1,o=this.v2,a=this.v3;return n.set(yt(t,i.x,r.x,o.x,a.x),yt(t,i.y,r.y,o.y,a.y),yt(t,i.z,r.z,o.z,a.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this}}xt.prototype.isCubicBezierCurve3=!0;class wt extends st{constructor(t=new X,e=new X){super(),this.type="LineCurve",this.v1=t,this.v2=e}getPoint(t,e=new X){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}getTangent(t,e){const n=e||new X;return n.copy(this.v2).sub(this.v1).normalize(),n}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}wt.prototype.isLineCurve=!0;class _t extends st{constructor(t=new K,e=new K){super(),this.type="LineCurve3",this.isLineCurve3=!0,this.v1=t,this.v2=e}getPoint(t,e=new K){const n=e;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n}getPointAt(t,e){return this.getPoint(t,e)}copy(t){return super.copy(t),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}class Ct extends st{constructor(t=new X,e=new X,n=new X){super(),this.type="QuadraticBezierCurve",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new X){const n=e,i=this.v0,r=this.v1,o=this.v2;return n.set(vt(t,i.x,r.x,o.x),vt(t,i.y,r.y,o.y)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}Ct.prototype.isQuadraticBezierCurve=!0;class At extends st{constructor(t=new K,e=new K,n=new K){super(),this.type="QuadraticBezierCurve3",this.v0=t,this.v1=e,this.v2=n}getPoint(t,e=new K){const n=e,i=this.v0,r=this.v1,o=this.v2;return n.set(vt(t,i.x,r.x,o.x),vt(t,i.y,r.y,o.y),vt(t,i.z,r.z,o.z)),n}copy(t){return super.copy(t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this}toJSON(){const t=super.toJSON();return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t}fromJSON(t){return super.fromJSON(t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this}}At.prototype.isQuadraticBezierCurve3=!0;class It extends st{constructor(t=[]){super(),this.type="SplineCurve",this.points=t}getPoint(t,e=new X){const n=e,i=this.points,r=(i.length-1)*t,o=Math.floor(r),a=r-o,s=i[0===o?o:o-1],l=i[o],c=i[o>i.length-2?i.length-1:o+1],u=i[o>i.length-3?i.length-1:o+2];return n.set(mt(a,s.x,l.x,c.x,u.x),mt(a,s.y,l.y,c.y,u.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push(n.clone())}return this}toJSON(){const t=super.toJSON();t.points=[];for(let e=0,n=this.points.length;e<n;e++){const n=this.points[e];t.points.push(n.toArray())}return t}fromJSON(t){super.fromJSON(t),this.points=[];for(let e=0,n=t.points.length;e<n;e++){const n=t.points[e];this.points.push((new X).fromArray(n))}return this}}It.prototype.isSplineCurve=!0;var St=u.BufferGeometry,Mt=u.Vector2,kt=u.Vector3,Et=u.Float32BufferAttribute,Tt=u.ShapeUtils,Ot=function(n){(0,l.Z)(o,n);var r=(0,c.Z)(o);function o(t,e){var n;(0,i.Z)(this,o),(n=r.call(this)).type="ExtrudeGeometry",n.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];for(var a=(0,s.Z)(n),l=[],c=[],u=0,h=t.length;u<h;u++)d(t[u]);function d(t){var n=[],i=void 0!==e.curveSegments?e.curveSegments:12,r=void 0!==e.steps?e.steps:1,o=void 0!==e.depth?e.depth:100,s=void 0===e.bevelEnabled||e.bevelEnabled,u=void 0!==e.bevelThickness?e.bevelThickness:6,h=void 0!==e.bevelSize?e.bevelSize:u-2,d=void 0!==e.bevelOffset?e.bevelOffset:0,p=void 0!==e.bevelSegments?e.bevelSegments:3,f=e.extrudePath,g=void 0!==e.UVGenerator?e.UVGenerator:Pt;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),o=e.amount);var m,v,y,b,x,w=!1;f&&(m=f.getSpacedPoints(r),w=!0,s=!1,v=f.computeFrenetFrames(r,!1),y=new kt,b=new kt,x=new kt),s||(p=0,u=0,h=0,d=0);var _=t.extractPoints(i),C=_.shape,A=_.holes;if(!Tt.isClockWise(C)){C=C.reverse();for(var I=0,S=A.length;I<S;I++){var M=A[I];Tt.isClockWise(M)&&(A[I]=M.reverse())}}for(var k=Tt.triangulateShape(C,A),E=C,T=0,O=A.length;T<O;T++){var P=A[T];C=C.concat(P)}function j(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}var L=C.length,D=k.length;function R(t,e,n){var i,r,o,a=t.x-e.x,s=t.y-e.y,l=n.x-t.x,c=n.y-t.y,u=a*a+s*s,h=a*c-s*l;if(Math.abs(h)>Number.EPSILON){var d=Math.sqrt(u),p=Math.sqrt(l*l+c*c),f=e.x-s/d,g=e.y+a/d,m=((n.x-c/p-f)*c-(n.y+l/p-g)*l)/(a*c-s*l),v=(i=f+a*m-t.x)*i+(r=g+s*m-t.y)*r;if(v<=2)return new Mt(i,r);o=Math.sqrt(v/2)}else{var y=!1;a>Number.EPSILON?l>Number.EPSILON&&(y=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(y=!0):Math.sign(s)===Math.sign(c)&&(y=!0),y?(i=-s,r=a,o=Math.sqrt(u)):(i=a,r=s,o=Math.sqrt(u/2))}return new Mt(i/o,r/o)}for(var B=[],N=0,F=E.length,z=F-1,V=N+1;N<F;N++,z++,V++)z===F&&(z=0),V===F&&(V=0),B[N]=R(E[N],E[z],E[V]);for(var G,H=[],W=B.concat(),U=0,Z=A.length;U<Z;U++){var Y=A[U];G=[];for(var X=0,q=Y.length,K=q-1,Q=X+1;X<q;X++,K++,Q++)K===q&&(K=0),Q===q&&(Q=0),G[X]=R(Y[X],Y[K],Y[Q]);H.push(G),W=W.concat(G)}for(var J=0;J<p;J++){for(var $=J/p,tt=u*Math.cos($*Math.PI/2),et=h*Math.sin($*Math.PI/2)+d,nt=0,it=E.length;nt<it;nt++){var rt=j(E[nt],B[nt],et);Dt(rt.x,rt.y,-tt)}for(var ot=0,at=A.length;ot<at;ot++){var st=A[ot];G=H[ot];for(var lt=0,ct=st.length;lt<ct;lt++){var ut=j(st[lt],G[lt],et);Dt(ut.x,ut.y,-tt)}}}for(var ht=h+d,dt=0;dt<L;dt++){var pt=s?j(C[dt],W[dt],ht):C[dt];w?(b.copy(v.normals[0]).multiplyScalar(pt.x),y.copy(v.binormals[0]).multiplyScalar(pt.y),x.copy(m[0]).add(b).add(y),Dt(x.x,x.y,x.z)):Dt(pt.x,pt.y,0)}for(var ft=1;ft<=r;ft++)for(var gt=0;gt<L;gt++){var mt=s?j(C[gt],W[gt],ht):C[gt];w?(b.copy(v.normals[ft]).multiplyScalar(mt.x),y.copy(v.binormals[ft]).multiplyScalar(mt.y),x.copy(m[ft]).add(b).add(y),Dt(x.x,x.y,x.z)):Dt(mt.x,mt.y,o/r*ft)}for(var vt=p-1;vt>=0;vt--){for(var yt=vt/p,bt=u*Math.cos(yt*Math.PI/2),xt=h*Math.sin(yt*Math.PI/2)+d,wt=0,_t=E.length;wt<_t;wt++){var Ct=j(E[wt],B[wt],xt);Dt(Ct.x,Ct.y,o+bt)}for(var At=0,It=A.length;At<It;At++){var St=A[At];G=H[At];for(var Et=0,Ot=St.length;Et<Ot;Et++){var jt=j(St[Et],G[Et],xt);w?Dt(jt.x,jt.y+m[r-1].y,m[r-1].x+bt):Dt(jt.x,jt.y,o+bt)}}}function Lt(t,e){for(var n=t.length;--n>=0;){var i=n,o=n-1;o<0&&(o=t.length-1);for(var a=0,s=r+2*p;a<s;a++){var l=L*a,c=L*(a+1);Bt(e+i+l,e+o+l,e+o+c,e+i+c)}}}function Dt(t,e,i){n.push(t),n.push(e),n.push(i)}function Rt(t,e,n){Nt(t),Nt(e),Nt(n);var i=l.length/3,r=g.generateTopUV(a,l,i-3,i-2,i-1);Ft(r[0]),Ft(r[1]),Ft(r[2])}function Bt(t,e,n,i){Nt(t),Nt(e),Nt(i),Nt(e),Nt(n),Nt(i);var r=l.length/3,o=g.generateSideWallUV(a,l,r-6,r-3,r-2,r-1);Ft(o[0]),Ft(o[1]),Ft(o[3]),Ft(o[1]),Ft(o[2]),Ft(o[3])}function Nt(t){l.push(n[3*t+0]),l.push(n[3*t+1]),l.push(n[3*t+2])}function Ft(t){c.push(t.x),c.push(t.y)}(function(){var t=l.length/3;if(s)for(var e=L*(r+2*p),n=0;n<D;n++){var i=k[n];Rt(i[0]+e,i[1]+e,i[2]+e)}else for(var o=0;o<D;o++){var c=k[o];Rt(c[0]+L*r,c[1]+L*r,c[2]+L*r)}a.addGroup(t,l.length/3-t,0)})(),function(){var t=l.length/3;if(s)for(var e=0*L,n=0;n<D;n++){var i=k[n];Rt(i[2]+e,i[1]+e,i[0]+e)}else for(var r=0;r<D;r++){var o=k[r];Rt(o[2],o[1],o[0])}a.addGroup(t,l.length/3-t,0)}(),function(){var t=l.length/3,e=0;Lt(E,e),e+=E.length;for(var n=0,i=A.length;n<i;n++){var r=A[n];Lt(r,e),e+=r.length}a.addGroup(t,l.length/3-t,1)}()}return n.setAttribute("position",new Et(l,3)),n.setAttribute("uv",new Et(c,2)),n.computeVertexNormals(),n}return(0,e.Z)(o,[{key:"toJSON",value:function(){var t=(0,H.Z)((0,W.Z)(o.prototype),"toJSON",this).call(this);return function(t,e,n){if(n.shapes=[],Array.isArray(t))for(var i=0,r=t.length;i<r;i++){var o=t[i];n.shapes.push(o.uuid)}else n.shapes.push(t.uuid);return void 0!==e.extrudePath&&(n.options.extrudePath=e.extrudePath.toJSON()),n}(this.parameters.shapes,this.parameters.options,t)}}],[{key:"fromJSON",value:function(e,n){for(var i=[],r=0,a=e.shapes.length;r<a;r++){var s=n[e.shapes[r]];i.push(s)}var l=e.options.extrudePath;return void 0!==l&&(e.options.extrudePath=(new t[l.type]).fromJSON(l)),new o(i,e.options)}}]),o}(St),Pt={generateTopUV:function(t,e,n,i,r){var o=e[3*n],a=e[3*n+1],s=e[3*i],l=e[3*i+1],c=e[3*r],u=e[3*r+1];return[new Mt(o,a),new Mt(s,l),new Mt(c,u)]},generateSideWallUV:function(t,e,n,i,r,o){var a=e[3*n],s=e[3*n+1],l=e[3*n+2],c=e[3*i],u=e[3*i+1],h=e[3*i+2],d=e[3*r],p=e[3*r+1],f=e[3*r+2],g=e[3*o],m=e[3*o+1],v=e[3*o+2];return Math.abs(s-u)<Math.abs(a-c)?[new Mt(a,1-l),new Mt(c,1-h),new Mt(d,1-f),new Mt(g,1-v)]:[new Mt(s,1-l),new Mt(u,1-h),new Mt(p,1-f),new Mt(m,1-v)]}};function jt(t,e,n,i,r){t.setAttribute(e,new u.BufferAttribute(new Float32Array(i[e].array.slice(n.start*r,(n.start+n.count)*r)),r))}function Lt(t,e){var n=new u.BufferGeometry;return jt(n,"position",t,e,3),jt(n,"normal",t,e,3),jt(n,"uv",t,e,2),n}var Dt={generateTopUV:function(t,e,n,i,r){return[new u.Vector2(e[3*n],e[3*n+1]),new u.Vector2(e[3*i],e[3*i+1]),new u.Vector2(e[3*r],e[3*r+1])]},generateSideWallUV:function(t,e,n,i,r,o){var a=e[3*n],s=e[3*n+1],l=e[3*i],c=e[3*i+1],h=e[3*r],d=e[3*r+1],p=e[3*o],f=e[3*o+1];if(Math.abs(s-c)<Math.abs(a-l)){var g=Math.max(a,l,h,p);return[new u.Vector2(a/g,0),new u.Vector2(l/g,0),new u.Vector2(h/g,1),new u.Vector2(p/g,1)]}var m=Math.max(s,c,d,f);return[new u.Vector2(s/m,0),new u.Vector2(c/m,0),new u.Vector2(d/m,1),new u.Vector2(f/m,1)]}},Rt=["top","bottom","wall"];function Bt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=new Ot(e,{steps:1,bevelSegments:0,depth:n,bevelEnabled:!0,bevelThickness:0,bevelSize:0,bevelOffset:0,UVGenerator:Dt}),r=Rt.indexOf(t);return-1===r?new u.BufferGeometry:Lt(i.groups[r],i.attributes)}var Nt=o(4925),Ft=o(2494),zt=o.n(Ft),Vt=o(7516),Gt=["nodes","duration","delay","setPointWidth","onComplete","onRepeat","animationRepeat","repeatLength"],Ht={nodes:[],color:new u.Color("red"),lineWidth:3,sizeAttenuation:0},Wt=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),(t=n.call(this)).options=void 0,t.tween=void 0,t.material=void 0,t.geometry=new u.BufferGeometry,t.meshline=new p,t.options=(0,v.Z)((0,v.Z)({},Ht),e),t}return(0,e.Z)(r,[{key:"create",value:function(){var t=this.options,e=t.nodes,n=(t.duration,t.delay,t.setPointWidth),i=(t.onComplete,t.onRepeat,t.animationRepeat,t.repeatLength,(0,Nt.Z)(t,Gt)),r=this.pencil.getSize(),o=r.width,a=r.height;delete i.key,this.geometry.setFromPoints(e),this.meshline.setGeometry(this.geometry,n);var s=new m((0,v.Z)((0,v.Z)({},i),{},{resolution:new u.Vector2(o,a)}));this.material=s,this.createMesh(this.meshline,s)}},{key:"resize",value:function(t,e){this.material.uniforms.resolution.value.set(t,e)}},{key:"animate",value:function(){var t=this.options,e=t.duration,n=t.delay,i=t.onComplete,r=t.onRepeat,o=t.onUpdate,a=t.animationRepeat,s=t.repeatLength,l=this.material.uniforms.offset,c=new(zt().Tween)(l.value).to({x:l.value.x-(s||1)},null!=e?e:1e3).delay(null!=n?n:0).repeat("number"==typeof a?a:1/0);i&&c.onComplete(i),r&&c.onRepeat(r),o&&c.onUpdate(o),c.start(),this.tween=c}},{key:"dispose",value:function(){this.tween&&zt().remove(this.tween)}}]),r}(Vt.BaseObject),Ut=Wt,Zt={geojson:[[[]]],startHeight:0,height:5,cartesian:!1,closedBottom:!0,closedTop:!0,curvatureResolution:5,material:new u.MeshBasicMaterial({color:new u.Color("#ccc"),side:u.DoubleSide})},Yt=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),(t=n.call(this)).options=void 0,t.options=(0,v.Z)((0,v.Z)({},Zt),e),t}return(0,e.Z)(r,[{key:"create",value:function(){var t=new G(this.options.geojson,{cartesian:this.options.cartesian,startHeight:this.options.startHeight,endHeight:this.options.startHeight+this.options.height,closedBottom:this.options.closedBottom,closedTop:this.options.closedTop,curvatureResolution:this.options.curvatureResolution});this.createMesh(t,this.options.material)}}]),r}(Vt.BaseObject),Xt={texture:new u.Texture,color:new u.Color(5140210),opacity:1,speed:1,size:10},qt=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),(t=n.call(this)).options=void 0,t.geometry=new u.CylinderGeometry(2,2,1,64,1,!0),t.material=new u.MeshBasicMaterial({transparent:!0,side:u.DoubleSide}),t.options=(0,v.Z)((0,v.Z)({},Xt),e),t.createMesh(t.geometry,t.material),t}return(0,e.Z)(r,[{key:"create",value:function(){this.material.map=this.options.texture,this.material.color=this.options.color,this.material.opacity=this.options.opacity}},{key:"update",value:function(t,e){e*=this.options.speed,e%=this.options.size,e*=.5*e,this.object3d.scale.setScalar(e),this.object3d.position.y=e/2}}]),r}(Vt.BaseObject),Kt=o(5861),Qt=o(7757),Jt=o.n(Qt),$t=o(5587),te=o(7673),ee={pointColor:new u.Color("#00FFAB"),nodesNum:16,nodeSize:8,scale:1,randomRotate:!0,debugger:!1},ne=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),(t=n.call(this)).options=void 0,t.time={value:0},t.direction=["x","y","z"][Math.round(2*Math.random())],t.options=(0,v.Z)((0,v.Z)({},ee),e),t.createGroup(),t}return(0,e.Z)(r,[{key:"init",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=new u.ShaderMaterial({uniforms:{time:this.time,noiseSize:{value:3},speed:{value:.004},size:{value:100*this.options.nodeSize},pointColor:{value:this.options.pointColor}},fragmentShader:$t,vertexShader:te,transparent:!0,depthWrite:!1}),n=new u.BufferGeometry,i=[],new Array(this.options.nodesNum).fill(0).forEach((function(){i.push(Math.random()-.5,Math.random()-.5,Math.random()-.5)})),n.setAttribute("position",new u.Float32BufferAttribute(i,3)),(r=new u.Points(n,e)).scale.multiplyScalar(.2*this.options.scale),this.object3d.add(r),this.options.debugger&&(o=new u.SphereGeometry(1,32,16),a=new u.MeshBasicMaterial({color:16776960,transparent:!0,depthWrite:!1,depthTest:!0,opacity:.07}),(s=new u.Mesh(o,a)).scale.multiplyScalar(.2*this.options.scale),this.object3d.add(s));case 9:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(){this.time.value+=1,this.options.randomRotate&&(this.object3d.rotation[this.direction]+=.01)}}]),r}(Vt.BaseObject),ie={pointColor:new u.Color(.3,.7,1),nodesNum:50,nodeSize:8,scale:1,debugger:!0,position:new u.Vector3(0,0,0)},re=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),(t=n.call(this)).time={value:0},t.options=void 0,t.options=(0,v.Z)((0,v.Z)({},ie),e),t.createGroup(),t}return(0,e.Z)(r,[{key:"init",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c,h,d,p,f,g,m,v;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.options,n=e.nodeSize,i=e.pointColor,r=e.nodesNum,o=e.position,a=e.scale,s=e.debugger,l=new u.ShaderMaterial({uniforms:{time:this.time,noiseSize:{value:3+Math.random()},speed:{value:.004},size:{value:100*n},pointColor:{value:i}},fragmentShader:$t,vertexShader:te,transparent:!0,depthWrite:!1}),c=new u.BufferGeometry,h=360/r,d=Math.PI/180,p=[],new Array(r).fill(0).forEach((function(t,e){p.push(1*Math.sin(h*e*d),0,1*Math.cos(h*e*d))})),c.setAttribute("position",new u.Float32BufferAttribute(p,3)),(f=new u.Points(c,l)).scale.multiplyScalar(.2*a),this.object3d.add(f),this.object3d.position.copy(o),s&&(g=new u.CircleGeometry(1,r),m=new u.MeshBasicMaterial({color:16776960,transparent:!0,depthWrite:!1,depthTest:!0,opacity:.07}),(v=new u.Mesh(g,m)).rotation.x=-Math.PI/2,v.scale.multiplyScalar(.2*a),this.object3d.add(v));case 14:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(){this.time.value+=1}}]),r}(Vt.BaseObject),oe={pointColor:new u.Color(.3,.7,1),nodes:[[0,0],[1,1]],nodesNum:50,nodeSize:8,scale:1,debugger:!0,position:new u.Vector3(0,0,0)},ae=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),(t=n.call(this)).time={value:0},t.options=void 0,t.options=(0,v.Z)((0,v.Z)({},oe),e),t.createGroup(),t}return(0,e.Z)(r,[{key:"init",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c,h,d,p,f,g,m,v,y,x,w,_,C,A,I,S,M,k,E;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=this.options,n=e.nodes,i=e.nodeSize,r=e.pointColor,o=e.nodesNum,a=e.position,s=e.scale,l=e.debugger,c=new u.ShaderMaterial({uniforms:{time:this.time,noiseSize:{value:3+Math.random()},speed:{value:.004},size:{value:100*i},pointColor:{value:r}},fragmentShader:$t,vertexShader:te,transparent:!0,depthWrite:!1}),h=b(n,2),d=b(h[0],2),p=d[0],f=d[1],g=b(h[1],2),m=g[0],v=g[1],y=new u.Vector3(p,f,0),x=new u.Vector3(m,v,0),w=y.distanceTo(x),_=new u.Vector3(0,0,w),C=new u.QuadraticBezierCurve3(y,_,x),A=C.getPoints(o),I=(new u.BufferGeometry).setFromPoints(A),(S=new u.Points(I,c)).scale.multiplyScalar(.2*s),this.object3d.add(S),this.object3d.position.copy(a),l&&(M=new u.CircleGeometry(1,o),k=new u.MeshBasicMaterial({color:16776960,transparent:!0,depthWrite:!1,depthTest:!0,opacity:.07}),(E=new u.Mesh(M,k)).rotation.x=-Math.PI/2,E.scale.multiplyScalar(.2*this.options.scale),this.object3d.add(E));case 15:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(){this.time.value+=1}}]),r}(Vt.BaseObject),se=Math.PI/2,le=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).time={value:0},e.starList=[],e.line=new u.Shape,e.sizeLine=new u.Shape,e.options=void 0,e.options=(0,v.Z)((0,v.Z)({},r.options),t),e}return(0,e.Z)(r,[{key:"init",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c,h=this;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.createGroup(),e=this.options,n=e.line,i=e.sizeLine,r=e.scale,o=e.color,a=e.length,s=e.nodeSize,l=e.rotation,c=e.debugger,this.line=n,this.sizeLine=i,t.next=6,Promise.all(new Array(a).fill(0).map((function(){return h.pencil.draw("Star",{scale:r,position:new u.Vector3(0,0,0),debugger:c,nodeSize:s,nodesNum:16,pointColor:o},h)})));case 6:this.starList=t.sent,l&&this.object3d.rotation.copy(l);case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(){var t=this,e=this.options,n=e.reverse,i=e.length;this.time.value+=1;var r=Math.abs(this.time.value)%300/300;this.starList.length&&this.starList.forEach((function(e,o){var a=Math.sin((o*(se/i)+r*se)%se);n&&(a=1-a);var s=t.line.getPoint(a);e.object3d.position.set(s.x,s.y,0);var l=t.sizeLine.getPoint(a).x;e.object3d.scale.set(l,l,l)}))}}]),r}(Vt.BaseObject);le.options={line:new u.Shape,sizeLine:new u.Shape,rotation:new u.Euler(0,0,0),scale:50,nodeSize:600,color:new u.Color("#00FFAB"),length:50,reverse:!1,debugger:!1};var ce=Math.PI/2,ue=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).time={value:0},e.ringStarList=[],e.options=void 0,e.options=(0,v.Z)((0,v.Z)({},r.options),t),e}return(0,e.Z)(r,[{key:"init",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a=this;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.createGroup(),e=this.options,n=e.color,i=e.length,r=e.nodeSize,o=e.position,t.next=4,Promise.all(new Array(i).fill(0).map((function(){return a.pencil.draw("StarRing",{scale:1,position:new u.Vector3(0,0,0),debugger:!1,nodeSize:r,pointColor:n},a)})));case 4:this.ringStarList=t.sent,this.object3d.position.copy(o);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(){var t=this.options,e=t.center,n=t.reverse,i=t.radius,r=t.length,o=t.height,a=t.position;this.time.value+=1;var s=Math.abs(this.time.value)%300/300;this.ringStarList.length&&this.ringStarList.forEach((function(t,l){var c=Math.sin((l*(ce/r)+s*ce)%ce);n&&(c=1-c),t.object3d.position.set(a.x,c*o,a.z);var u=1-Math.sin(ce+c*ce);t.object3d.scale.set(e+u*i,e+u*i,e+u*i)}))}}]),r}(Vt.BaseObject);ue.options={position:new u.Vector3(0,0,0),center:0,radius:30,nodeSize:10,height:130,color:new u.Color("#00FFAB"),length:20,reverse:!1};var he=o(8171),de=o(8678),pe={nodes:[],color:(new u.Color).setRGB(.8314,.7059,.149),nodeSize:30,speed:1},fe=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),(t=n.call(this)).options=void 0,t.terrainScene=null,t.time={value:0},t.options=(0,v.Z)((0,v.Z)({},pe),e),t.createGroup(),t}return(0,e.Z)(r,[{key:"create",value:function(){var t=[];this.options.nodes.forEach((function(e){var n=b(e,2),i=n[0],r=n[1];t.push(i,0,r)}));var e=new u.BufferAttribute(new Float32Array(t),3),n=new u.BufferGeometry;n.setAttribute("position",e);var i=new u.ShaderMaterial({uniforms:{time:this.time,color:{value:this.options.color},nodeSize:{value:this.options.nodeSize},speed:{value:this.options.speed}},fragmentShader:he,vertexShader:de,transparent:!0}),r=new u.Points(n,i);this.object3d.add(r)}},{key:"update",value:function(t,e){this.time.value=e}}]),r}(Vt.BaseObject),ge=o(6209),me={position:new u.Vector3(0,0,0),onClick:void 0},ve=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;(0,i.Z)(this,r),(e=n.call(this)).options=void 0,e.options=(0,v.Z)((0,v.Z)({},me),t);var o=document.createElement("div");o.addEventListener("click",(function(t){var n,i;null===(n=(i=e.options).onClick)||void 0===n||n.call(i,e.key,t)})),e.options.children&&o.appendChild(e.options.children);var a=new ge.CSS2DObject(o);return a.position.copy(e.options.position),e.options.zIndexFix&&(a.userData.zIndexFix=e.options.zIndexFix),e.object3d=a,e}return(0,e.Z)(r)}(Vt.BaseObject),ye=o(2997),be=o(251),xe={color:new u.Color(15542312),speed:1,radius:5,phiStart:0,phiLength:2*Math.PI,thetaStart:0,thetaLength:Math.PI/2},we=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;(0,i.Z)(this,r),t=(0,v.Z)((0,v.Z)({},xe),t),(e=n.call(this,t)).options=void 0,e.offset={value:0},e.glowColor={value:new u.Color(15542312)},e.guiParams=function(){return{shield:{radius:{value:e.options.radius,min:1,max:100,step:1,onChange:function(t){e.options.radius=t,e.refresh()}},phiStart:{value:e.options.phiStart,min:0,max:2*Math.PI,step:.01,onChange:function(t){e.options.phiStart=t,e.refresh()}},phiLength:{value:e.options.phiLength,min:0,max:2*Math.PI,step:.01,onChange:function(t){e.options.phiLength=t,e.refresh()}},thetaStart:{value:e.options.thetaStart,min:0,max:2*Math.PI,step:.01,onChange:function(t){e.options.thetaStart=t,e.refresh()}},thetaLength:{value:e.options.thetaLength,min:0,max:Math.PI,step:.01,onChange:function(t){e.options.thetaLength=t,e.refresh()}}}}},e.options=t;var o=e.options,a=o.color,l=o.radius,c=o.phiStart,h=o.phiLength,d=o.thetaStart,p=o.thetaLength,f=(0,s.Z)(e),g=f.offset,m=f.glowColor;m.value=a;var y=new u.SphereGeometry(l,36,36,c,h,d,p),b=new u.ShaderMaterial({uniforms:{offset:g,glowColor:m},vertexShader:ye,fragmentShader:be,side:u.DoubleSide,depthWrite:!1,transparent:!0}),x=new u.Mesh(y,b);return e.object3d=x,e}return(0,e.Z)(r,[{key:"refresh",value:function(){var t=this.options,e=t.radius,n=t.phiStart,i=t.phiLength,r=t.thetaStart,o=t.thetaLength;this.object3d.geometry=new u.SphereGeometry(e,36,36,n,i,r,o)}},{key:"update",value:function(){this.offset.value+=.1*this.options.speed}}]),r}(Vt.BaseObject),_e=o(5006),Ce=o(1089),Ae=o(5705),Ie={position:new u.Vector3(0,0,0),radius:16,color:new u.Color("#1be4fc"),isTop:!0,fresnelWidth:1.05,fresnelExponent:3,animateDuration:1e3,phiStart:0,phiLength:2*Math.PI,thetaStart:0,thetaLength:Math.PI},Se=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options=void 0,e.material=void 0,e.guiParams=function(){return{shield:{fresnelColor:{value:"#ffffff",onChange:function(t){e.material.uniforms.fresnelColor.value=new u.Color(t)}},fresnelWidth:{value:1.2,min:0,max:10,step:.001,onChange:function(t){e.material.uniforms.fresnelWidth.value=t}},fresnelExponent:{value:2.5,min:0,max:100,step:1,onChange:function(t){e.material.uniforms.fresnelExponent.value=t}},radius:{value:e.options.radius,min:1,max:100,step:1,onChange:function(t){e.options.radius=t,e.refresh()}},phiStart:{value:e.options.phiStart,min:0,max:2*Math.PI,step:.01,onChange:function(t){e.options.phiStart=t,e.refresh()}},phiLength:{value:e.options.phiLength,min:0,max:2*Math.PI,step:.01,onChange:function(t){e.options.phiLength=t,e.refresh()}},thetaStart:{value:e.options.thetaStart,min:0,max:2*Math.PI,step:.01,onChange:function(t){e.options.thetaStart=t,e.refresh()}},thetaLength:{value:e.options.thetaLength,min:0,max:Math.PI,step:.01,onChange:function(t){e.options.thetaLength=t,e.refresh()}}}}},e.options=(0,v.Z)((0,v.Z)({},Ie),t),e}return(0,e.Z)(r,[{key:"init",value:function(){var t=this.options,e=t.color,n=t.radius,i=t.isTop,r=t.fresnelWidth,a=t.fresnelExponent,s=(new u.TextureLoader).load(o(9576));s.magFilter=u.NearestFilter,s.wrapS=u.RepeatWrapping,s.wrapT=u.RepeatWrapping;var l=new u.ShaderMaterial({uniforms:{fresnelWidth:{value:r},fresnelExponent:{value:a},fresnelColor:{value:e},alphaMap:{value:s},fw:{value:1e-4},isTop:{value:i},radius:{value:n}},transparent:!0,vertexShader:Ce,fragmentShader:Ae,side:u.FrontSide,blending:u.AdditiveBlending});this.material=l}},{key:"create",value:function(){var t=this.options,e=t.position,n=t.radius,i=t.phiStart,r=t.phiLength,o=t.thetaStart,a=t.thetaLength,s=new u.SphereGeometry(n,64,64,i,r,o,a),l=new u.Mesh(s,this.material);this.object3d=l,this.object3d.position.copy(e)}},{key:"render",value:function(){if(this.pencil.options.isdev&&this.pencil.gui){var t=this.pencil.gui,e={animateIn:this.animateIn.bind(this),animateOut:this.animateOut.bind(this)},n=t.findFolder("shield");n&&Object.keys(e).forEach((function(t){n.addButton({title:t}).on("click",(function(){e[t]()}))}))}}},{key:"refresh",value:function(){var t=this.options,e=t.radius,n=t.phiStart,i=t.phiLength,r=t.thetaStart,o=t.thetaLength;this.object3d.geometry=new u.SphereGeometry(e,64,64,n,i,r,o)}},{key:"animateIn",value:function(){var t=(0,_e.makePromiseCreator)(),e=t.promise,n=t.resolve,i=this.options,r=i.radius,o=i.animateDuration;return new(zt().Tween)(this.material.uniforms.fw).to({value:2*r},o).onComplete((function(){n()})).start(),e}},{key:"animateOut",value:function(){var t=(0,_e.makePromiseCreator)(),e=t.promise,n=t.resolve,i=this.options.animateDuration;return new(zt().Tween)(this.material.uniforms.fw).to({value:0},i).onComplete(n).start(),e}}]),r}(Vt.BaseObject),Me={position:new u.Vector3(0,0,0),radius:16,baseColor:new u.Color("#00ff00"),baseVideoTexturePath:""},ke=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options=void 0,e.baseMesh=void 0,e.attackVideoDuration=void 0,e.needAttack=void 0,e.guiParams=function(){return{shield:{color:{value:"#ffffff",onChange:function(t){e.baseMesh.material.color=new u.Color(t)}}}}},e.options=(0,v.Z)((0,v.Z)({},Me),t),e.createGroup(),e}return(0,e.Z)(r,[{key:"create",value:function(){this.object3d.position.copy(this.options.position);var t=this.createVideoTexture(this.options.baseVideoTexturePath,!0).texture,e=new u.MeshBasicMaterial({color:this.options.baseColor,alphaMap:t,transparent:!0,blending:u.AdditiveBlending}),n=this.createSphereGeoUv(this.options.radius,1);this.baseMesh=new u.Mesh(n,e),this.object3d.add(this.baseMesh)}},{key:"showAttack",value:function(t,e,n,i,r){var o=this.createSphereGeoUv(1.05*this.options.radius,i),a=this.createVideoTexture(n,!0),s=a.texture,l=a.videoDom,c=new u.MeshBasicMaterial({color:e,alphaMap:s,transparent:!0,blending:u.AdditiveBlending}),h=new u.Mesh(o,c);h.quaternion.set(0,0,0,1);var d=new u.Vector3(0,1,0);t.normalize();var p=new u.Vector3(0,0,0).crossVectors(d,t).normalize(),f=d.angleTo(t);h.setRotationFromAxisAngle(p,f),this.object3d.add(h);var g=function(){h.removeFromParent(),s.image=null,s.dispose(),o.dispose(),l.onended=null,g=null};return r||(l.onended=g),g}},{key:"showAttackByPoint",value:function(t,e,n,i,r){return this.showAttack(t,e,n,i,r)}},{key:"showAttackByCurve",value:function(t,e,n,i,r){var o=this,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2e3,s=t.getPointAt(0);if(s.distanceTo(this.options.position)<1.05*this.options.radius)throw new Error("曲线起点在防护罩内");var l=t.getPointAt(1);if(l.distanceTo(this.options.position)>1.05*this.options.radius)throw new Error("曲线终点在防护罩外");var c=.5,u=0,h=function e(n,i){if((u+=1)>100)throw new Error("曲线计算迭代次数过多");var r=.5*n+.5*i,a=t.getPointAt(r).distanceTo(o.options.position);Math.abs(a-1.05*o.options.radius)<o.options.radius/1e3?c=r:a>1.05*o.options.radius?e(r,i):e(n,r)};h(0,1),console.log("曲线迭代次数",u);var d=t.getPointAt(c).sub(this.options.position),p=this.showAttack(d.clone(),e,n,i,r),f=t.getSpacedPoints(a),g=f.slice(0,Math.floor(a*c));return{points:g,dispose:p}}},{key:"createSphereGeoUv",value:function(t,e){for(var n=new u.SphereGeometry(t,32,32,0,2*Math.PI,0,e*Math.PI/2),i=new u.Vector3(0,1,0),r=n.attributes.uv.count,o=n.attributes.uv.array,a=n.attributes.normal.array,s=0;s<r;s+=1){var l=new u.Vector3(a[3*s],a[3*s+1],a[3*s+2]),c=l.angleTo(i)/(Math.PI*e),h=0===l.x?0:Math.abs(l.z/l.x),d=c/Math.sqrt(1+h*h),p=0===l.x?.5:l.x/Math.abs(l.x)*d+.5,f=0===l.z?.5:l.z/Math.abs(l.z)*h*d+.5;o[2*s]=p<0?p+1:p,o[2*s+1]=f<0?f+1:f}return n}},{key:"createVideoTexture",value:function(t,e){var n=document.createElement("video");n.autoplay=!0,n.muted=!0,e&&(n.loop=!0),n.preload="auto";var i=new u.VideoTexture(n);return n.onloadstart=function(){i.wrapS=u.RepeatWrapping,i.wrapT=u.RepeatWrapping,i.format=u.RGBAFormat,i.encoding=u.LinearEncoding,i.needsUpdate=!0,n.play()},n.src=t,{texture:i,videoDom:n}}}]),r}(Vt.BaseObject),Ee=o(5456),Te=(n(7011),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"string";return new Promise((function(n){(new u.FileLoader).setResponseType(e).load(t,n)}))}),Oe=function(t){return new Promise((function(e){(new u.TextureLoader).load(t,e,void 0,(function(){return e(void 0)}))}))},Pe=function(t){return(new Ee.GLTFLoader).loadAsync(t)},je={texturesUrl:"",distance:100,color:"#ff0000",size:[1,1],chunk:[1,1]},Le=function(t){return new Promise((function(e){setTimeout((function(){e("")}),t)}))},De=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),(t=n.call(this)).options=void 0,t.loaded=!1,t.textureQueue=[],t.color=new u.Color,t.options=(0,v.Z)((0,v.Z)({},je),e),t.options.color&&t.color.set(t.options.color),t.createGroup(),t}return(0,e.Z)(r,[{key:"create",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.registerInit();case 2:return t.next=4,Promise.all([this.textureLoad(),this.textureLoad(),this.textureLoad(),this.textureLoad()]);case 4:this.loaded=!0;case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setColor",value:function(t){var e=this;this.color.set(t),this.object3d.traverse((function(t){t instanceof u.Mesh&&(t.material.color=e.color.clone())}))}},{key:"registerTexutre",value:function(t,e,n,i){var r=this;return(0,Kt.Z)(Jt().mark((function o(){var a,s,l,c,h,d,p,f,g,m,y,x,w,_,C,A;return Jt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(s=null!==(a=r.options.materialConfig)&&void 0!==a?a:{},l=b(r.options.size,2),c=l[0],h=l[1],d=b(r.options.chunk,2),p=d[0],f=d[1],g=c/p,m=h/f,y=r.options.texturesUrl,!n.includes("building_texture_".concat(t,"_").concat(e,".png"))){o.next=14;break}return o.next=9,(0,_e.getCache)("".concat(y,"_").concat(t,"_").concat(e,".png"),{version:"1"});case 9:return w=o.sent,_=w.url,o.next=13,Oe(_);case 13:x=o.sent;case 14:if(x&&(C=new u.MeshBasicMaterial((0,v.Z)({side:u.FrontSide,color:r.color.clone(),map:x,transparent:!0},s)),(A=new u.Mesh(i,C)).rotation.x=Math.PI/-2,A.position.x=g*t+g/2-c/2,A.position.z=m*e+m/2-h/2,r.object3d.add(A)),x){o.next=17;break}return o.abrupt("return",!1);case 17:return o.abrupt("return",!0);case 18:case"end":return o.stop()}}),o)})))}},{key:"registerInit",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c,h,d,p,f=this;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=b(this.options.size,2),n=e[0],i=e[1],r=b(this.options.chunk,2),o=r[0],a=r[1],s=n/o,l=i/a,c=this.options.texturesUrl,h=new u.PlaneGeometry(s,l),t.next=8,Te("".concat(c,"_map.txt"));case 8:d=t.sent,p=d.split(","),new Array(o).fill(0).forEach((function(t,e){new Array(a).fill(0).forEach((function(t,n){f.textureQueue.push(f.registerTexutre(e,n,p,h.clone()))}))}));case 11:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"textureLoad",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.textureQueue,n=e[0]){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,n();case 6:if(!t.sent){t.next=10;break}return t.next=10,Le(0);case 10:return e.shift(),t.next=13,this.textureLoad();case 13:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"dispose",value:function(){this.textureQueue.length=0}}]),r}(Vt.BaseObject),Re="true"===new URLSearchParams(window.location.search).get("debugger"),Be={texturesUrl:"",distance:100,color:"#ff0000",size:[1,1],chunk:[1,1]},Ne=function(t){return new Promise((function(e){setTimeout((function(){e("")}),t)}))},Fe=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)(this,r),(t=n.call(this)).options=void 0,t.guiParams={BuildingImgLoader:{color:{value:"#fff",onChange:function(e){t.object3d.traverse((function(t){t instanceof u.Mesh&&t.geometry instanceof u.PlaneGeometry&&(t.material.color=new u.Color(e))}))}}}},t.loaded=!1,t.textureQueue=[],t.buildingQueue=[],t.positionMap=[],t.options=(0,v.Z)((0,v.Z)({},Be),e),t.createGroup(),t}return(0,e.Z)(r,[{key:"create",value:function(){var t=this;this.registerInit().then((0,Kt.Z)(Jt().mark((function e(){return Jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([t.textureLoad(),t.textureLoad(),t.textureLoad(),t.textureLoad()]);case 2:t.loaded=!0;case 3:case"end":return e.stop()}}),e)}))))}},{key:"registerTexutre",value:function(t,e,n,i){var r=this;return(0,Kt.Z)(Jt().mark((function o(){var a,s,l,c,h,d,p,f,g,m,y,x,w,_;return Jt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(s=null!==(a=r.options.materialConfig)&&void 0!==a?a:{},l=b(r.options.size,2),c=l[0],h=l[1],d=b(r.options.chunk,2),p=d[0],f=d[1],g=c/p,m=h/f,y=r.options.texturesUrl,!n.includes("building_texture_".concat(t,"_").concat(e,".png"))){o.next=10;break}return o.next=9,Oe("".concat(y,"_").concat(t,"_").concat(e,".png"));case 9:x=o.sent;case 10:if(x&&(w=new u.MeshBasicMaterial((0,v.Z)({side:u.FrontSide,color:new u.Color(r.options.color),map:x,transparent:!0},s)),(_=new u.Mesh(i,w)).rotation.x=Math.PI/-2,_.position.x=g*t+g/2-c/2,_.position.z=m*e+m/2-h/2,r.object3d.add(_)),x){o.next=13;break}return o.abrupt("return",!1);case 13:return o.abrupt("return",!0);case 14:case"end":return o.stop()}}),o)})))}},{key:"registerInit",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c,h,d,p,f=this;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=b(this.options.size,2),n=e[0],i=e[1],r=b(this.options.chunk,2),o=r[0],a=r[1],s=n/o,l=i/a,c=this.options.texturesUrl,h=new u.PlaneGeometry(s,l),t.next=8,Te("".concat(c,"_map.txt"));case 8:d=t.sent,p=d.split(","),new Array(o).fill(0).forEach((function(t,e){f.positionMap[e]=[],new Array(a).fill(0).forEach((function(t,r){var o=new u.Object3D;o.position.x=s*e+s/2-n/2,o.position.z=l*r+l/2-i/2,f.positionMap[e][r]=o,f.object3d.add(o),f.textureQueue.push(f.registerTexutre(e,r,p,h.clone()))}))}));case 11:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"textureLoad",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.textureQueue,n=e[0]){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,n();case 6:if(!t.sent){t.next=10;break}return t.next=10,Ne(0);case 10:return e.shift(),t.next=13,this.textureLoad();case 13:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(t,e){var n=this;if(this.loaded&&this.visible){var i=this.options.distance;if(this.children.forEach((function(t){var e=b(t.mapIndex.split("_"),2),r=e[0],o=e[1],a=n.positionMap[parseInt(r,10)][parseInt(o,10)];if(a){var s,l=a.getWorldPosition(new u.Vector3).distanceTo(null===(s=n.pencil.control)||void 0===s?void 0:s.target);l<(i=Re&&window.distance?window.distance:i)&&!t.isShow&&n.buildingQueue.push(t),t.isShow=l<i,!0===window.ssss&&(t.isShow=!0)}})),this.buildingQueue.length){var r=this.buildingQueue[0];r.loaded?this.buildingQueue.shift():r.loading||r.load()}}}},{key:"dispose",value:function(){this.textureQueue.length=0,this.buildingQueue.length=0}}]),r}(Vt.BaseObject),ze=o(4811),Ve={buildingUrl:"",key:"",scale:1,version:"1",topMaterial:new u.MeshBasicMaterial({color:"#fff",name:"top"}),wallMaterial:new u.MeshBasicMaterial({color:"#fff",name:"wall"})},Ge=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,r),(t=n.call(this)).options=void 0,t.building=void 0,t.isShow=!1,t.loaded=!1,t.loading=!1,t.mapIndex="",t.options=(0,v.Z)((0,v.Z)({},Ve),e),t.createGroup();var o=t.options.key.split("_"),a=b(o,3),s=(a[0],a[1]),l=a[2];return t.mapIndex="".concat(s,"_").concat(l),t}return(0,e.Z)(r,[{key:"create",value:function(){}},{key:"load",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c,h;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.loading){t.next=2;break}return t.abrupt("return");case 2:return this.loading=!0,t.next=5,(0,ze.lJ)(this.options.buildingUrl,{version:this.options.version});case 5:return e=t.sent,n=e.url,t.next=9,Pe(n);case 9:i=t.sent,URL.revokeObjectURL(n),r=this.options,o=r.topMaterial,a=r.wallMaterial,(s=i.scene.children[0]||new u.Object3D).traverse((function(t){t instanceof u.Mesh&&"Top"===t.name&&(t.material=o),t instanceof u.Mesh&&"Wall"===t.name&&(t.material=a)})),this.building=s,s&&(s.rotation.x=-Math.PI/2,s.scale.multiplyScalar(this.options.scale),s.scale.z*=2,l=(new u.Box3).expandByObject(s),c=l.min.clone().add(l.max.clone().sub(l.min).divideScalar(2)),(h=new u.Group).add(s),h.position.copy(c),s.position.copy(c.clone().multiplyScalar(-1)),this.object3d.add(h),this.loaded=!0);case 16:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(t,e){this.isShow?this.loaded&&(this.object3d.scale.y<1?(!0!==this.object3d.visible&&(this.object3d.visible=!0),this.object3d.scale.y+=.01):1!==this.object3d.scale.y&&(this.object3d.scale.y=1)):this.object3d.scale.y>0?this.object3d.scale.y-=.01:0!==this.object3d.scale.y&&(this.object3d.scale.y=0,!1!==this.object3d.visible&&(this.object3d.visible=!1))}}]),r}(Vt.BaseObject),He=o(6612),We=o(8961),Ue=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).offset=new u.Vector2(0,0),e.guiParams={rippleWall:{texture:{value:"red",items:[{text:"red",value:"red"},{text:"yellow",value:"yellow"}],onChange:function(t){e.material.uniforms.uTexture.value=e.textureMap[t]}}}},e.options={type:"red",scale:1,repeat:10,opacity:1,depth:40},e.material=void 0,e.textureMap=void 0,e.options=(0,v.Z)((0,v.Z)({},e.options),t),e}return(0,e.Z)(r,[{key:"getTexture",value:function(t){var e=(0,_e.makePromiseCreator)(),n=e.promise,i=e.resolve;return(new u.TextureLoader).load(o(9995)("./".concat(t,".png")),(function(t){t.encoding=u.sRGBEncoding,t.wrapT=u.RepeatWrapping,t.magFilter=u.NearestFilter,t.minFilter=u.NearestFilter,i(t)})),n}},{key:"init",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c,h,d,p,f,g,m;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.pencil.cacheController.get("ripple-wall-texture")){t.next=9;break}return this.pencil.cacheController.init("ripple-wall-texture"),t.next=4,Promise.all([this.getTexture("red"),this.getTexture("yellow")]);case 4:e=t.sent,n=b(e,2),i=n[0],r=n[1],this.pencil.cacheController.set("ripple-wall-texture",{red:i,yellow:r});case 9:return o=this.options,a=o.type,s=o.scale,l=o.repeat,c=o.opacity,h=o.depth,t.next=12,this.pencil.cacheController.get("ripple-wall-texture");case 12:d=t.sent,this.textureMap=d,p=d[a],f=this.createExtrudeGeometry(h),g=new u.ShaderMaterial({uniforms:{uTexture:{value:p},uOffset:{value:this.offset},uRepeat:{value:l},uOpacity:{value:c}},fragmentShader:He,vertexShader:We,transparent:!0}),(m=new u.Mesh(f,g)).rotateX(-Math.PI/2),this.object3d=m,s&&this.object3d.scale.multiplyScalar(s),this.material=g;case 22:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(){this.offset.y-=.025}},{key:"createExtrudeGeometry",value:function(t){var e=new u.Shape;return e.moveTo(-25,20),e.lineTo(25,20),e.lineTo(25,-20),e.lineTo(-25,-20),Bt("wall",e,t)}}]),r}(Vt.BaseObject),Ze=o(8031),Ye=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options=void 0,e.width=0,e.canvas=void 0,e.options=(0,v.Z)((0,v.Z)({},{scale:.5,fontSize:28,fontFamily:"system-ui,-apple-system,BlinkMacSystemFont,sans-serif",fontWeight:"normal",flipX:!1,sprite:!1,sizeAttenuation:!0}),t),e}return(0,e.Z)(r,[{key:"init",value:function(){var t=document.createElement("canvas");this.canvas=t}},{key:"create",value:function(){var t=this.options,e=t.position,n=t.lookAt,i=t.sprite,r=t.text,o=t.sizeAttenuation;if(i){var a=new u.Sprite(new u.SpriteMaterial({transparent:!0,sizeAttenuation:o}));this.object3d=a}else{var s=new u.MeshBasicMaterial({side:u.DoubleSide,transparent:!0}),l=new u.PlaneGeometry(1,1,1,1);this.createMesh(l,s)}this.object3d.position.copy(e),n&&this.object3d.lookAt(n),this.setText(r)}},{key:"setText",value:function(t,e){var n=(0,v.Z)((0,v.Z)({},this.options),{},{text:t},e||{}),i=n.text,r=n.fontSize,o=n.fontFamily,a=n.fontWeight,s=n.flipX,l=n.scale,c=this.canvas;c.width=r*i.length*2,c.height=r;var h=c.getContext("2d");h.font="".concat(a," ").concat(r,"px/1 ").concat(o);var d=h.measureText(i).width;c.width=d,this.width=d,(h=c.getContext("2d")).clearRect(0,0,c.width,c.height),s&&h.scale(-1,1),h.font="".concat(a," ").concat(r,"px/1 ").concat(o),h.textBaseline="middle",h.fillStyle="#ffffff",h.fillText(i,s?-1*d:0,c.height/2),h.restore();var p=new u.Texture(c);p.anisotropy=16,p.needsUpdate=!0;var f=this.object3d;f.material.map&&f.material.map.dispose(),f.material.map=p,f.material.needsUpdate=!0,f.scale.set(p.image.width*l,p.image.height*l,1)}}]),r}(Ze.ZP),Xe=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options=void 0,e.texture=void 0,e.options=t,e}return(0,e.Z)(r,[{key:"getMaterial",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.options,n=e.transparent,i=e.blending,r=e.src,o=e.depthWrite,a=e.alphaTest,t.next=3,(new u.TextureLoader).loadAsync(r);case 3:return s=t.sent,l=new u.MeshBasicMaterial({map:s,transparent:null!=n&&n,blending:null!=i?i:u.NormalBlending,depthWrite:null==o||o,alphaTest:null!=a?a:0}),t.abrupt("return",l);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"create",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.pencil,n=this.options,i=n.scale,r=n.position,o=n.src,!(a=n.cache)||e.cacheController.get(o)){t.next=8;break}return e.cacheController.init(o),t.next=6,this.getMaterial();case 6:s=t.sent,e.cacheController.set(o,s);case 8:if(!a){t.next=14;break}return t.next=11,e.cacheController.get(o);case 11:t.t0=t.sent,t.next=17;break;case 14:return t.next=16,this.getMaterial();case 16:t.t0=t.sent;case 17:l=t.t0,this.texture=l.map,c=new u.PlaneBufferGeometry(l.map.image.width,l.map.image.height),this.createMesh(c,l),i&&this.object3d.scale.set(i,i,1),r&&this.object3d.position.copy(r);case 23:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),r}(Ze.ZP),qe=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options=void 0,e.texture=void 0,e.options=t,e}return(0,e.Z)(r,[{key:"init",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.options.src,t.next=3,(new u.TextureLoader).loadAsync(e);case 3:n=t.sent,this.texture=n;case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"create",value:function(){var t=this.texture,e=this.options,n=e.scale,i=e.position,r=e.blending,o=e.transparent,a=e.depthWrite,s=e.alphaTest,l=e.sizeAttenuation,c=new u.Sprite(new u.SpriteMaterial({map:t,transparent:null==o||o,blending:null!=r?r:u.NormalBlending,depthWrite:null==a||a,alphaTest:null!=s?s:0,sizeAttenuation:null==l||l}));n&&c.scale.set(t.image.width*n,t.image.height*n,1),i&&c.position.copy(i),this.object3d=c}}]),r}(Ze.ZP),Ke=o(1270),Qe=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options=void 0,e.video=void 0,e.options=(0,v.Z)((0,v.Z)({},{autoPlay:!0,loop:!0}),t),e}return(0,e.Z)(r,[{key:"getMaterial",value:function(){var t=this.options,e=t.src,n=t.transparent,i=t.blending,r=t.depthWrite,o=t.format,a=t.autoPlay,s=t.loop,l=t.alphaTest,c=t.encoding,h=t.indexedDB,d=(0,Ke.Z)(),p=document.createElement("video");return p.addEventListener("loadedmetadata",(function(){var t=new u.VideoTexture(p);t.format=null!=o?o:u.RGBAFormat,t.encoding=null!=c?c:u.LinearEncoding,t.needsUpdate=!0;var e=new u.MeshBasicMaterial({map:t,transparent:null==n||n,blending:null!=i?i:u.AdditiveBlending,depthWrite:null==r||r,alphaTest:null!=l?l:0});d.resolve(e)}),!1),h?(0,_e.getCache)(e,{version:"1"}).then((function(t){var e=t.url;p.src=e})):p.src=e,p.muted=!0,p.autoplay=a,p.loop=s,p.preload="auto",d.promise}},{key:"create",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.pencil,n=this.options,i=n.scale,r=n.position,o=n.src,!(a=n.cache)||e.cacheController.get(o)){t.next=8;break}return e.cacheController.init(o),t.next=6,this.getMaterial();case 6:s=t.sent,e.cacheController.set(o,s);case 8:if(!a){t.next=14;break}return t.next=11,e.cacheController.get(o);case 11:t.t0=t.sent,t.next=17;break;case 14:return t.next=16,this.getMaterial();case 16:t.t0=t.sent;case 17:l=t.t0,this.video=l.map.image,c=new u.PlaneBufferGeometry(this.video.videoWidth,this.video.videoHeight),this.createMesh(c,l),i&&this.object3d.scale.set(i,i,1),r&&this.object3d.position.copy(r);case 23:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){this.options.autoPlay&&this.video.play()}},{key:"dispose",value:function(){this.video.pause(),this.video.src="",this.video.load(),(0,H.Z)((0,W.Z)(r.prototype),"dispose",this).call(this)}}]),r}(Ze.ZP),Je=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options=void 0,e.video=void 0,e.options=(0,v.Z)((0,v.Z)({},{autoPlay:!0,loop:!0}),t),e}return(0,e.Z)(r,[{key:"getMaterial",value:function(){var t=this.options,e=t.src,n=t.transparent,i=t.blending,r=t.depthWrite,o=t.autoPlay,a=t.loop,s=t.alphaTest,l=t.format,c=t.encoding,h=(0,Ke.Z)(),d=document.createElement("video");return d.addEventListener("loadedmetadata",(function(){var t=new u.VideoTexture(d);t.format=null!=l?l:u.RGBAFormat,t.encoding=null!=c?c:u.LinearEncoding,t.needsUpdate=!0;var e=new u.SpriteMaterial({map:t,transparent:null==n||n,blending:null!=i?i:u.AdditiveBlending,depthWrite:null==r||r,alphaTest:null!=s?s:0});h.resolve(e)}),!1),d.src=e,d.muted=!0,d.autoplay=o,d.loop=a,d.preload="auto",h.promise}},{key:"create",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.pencil,n=this.options,i=n.scale,r=n.position,o=n.src,!(a=n.cache)||e.cacheController.get(o)){t.next=8;break}return e.cacheController.init(o),t.next=6,this.getMaterial();case 6:s=t.sent,e.cacheController.set(o,s);case 8:if(!a){t.next=14;break}return t.next=11,e.cacheController.get(o);case 11:t.t0=t.sent,t.next=17;break;case 14:return t.next=16,this.getMaterial();case 16:t.t0=t.sent;case 17:l=t.t0,this.video=l.map.image,c=new u.Sprite(l),i&&c.scale.set(this.video.videoWidth*i,this.video.videoHeight*i,1),r&&c.position.copy(r),this.object3d=c;case 23:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"render",value:function(){this.options.autoPlay&&this.video.play()}},{key:"dispose",value:function(){this.video.pause(),this.video.src="",this.video.load(),(0,H.Z)((0,W.Z)(r.prototype),"dispose",this).call(this)}}]),r}(Ze.ZP),$e={segments:50,radian:50,size:10},tn=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options=void 0,e.xSize=void 0,e.zSize=void 0,e.options=(0,v.Z)((0,v.Z)({},$e),t),e}return(0,e.Z)(r,[{key:"generateHorizontalPos",value:function(t,e){var n=this.options,i=n.start,r=n.end,o=this.xSize,a=this.zSize;return i.x===r.x?[t.x-o,t.y,t.z,e.x-o,e.y,e.z,e.x+o,e.y,e.z,t.x+o,t.y,t.z]:i.z===r.z?[t.x,t.y,t.z-a,e.x,e.y,e.z-a,e.x,e.y,e.z+a,t.x,t.y,t.z+a]:i.z<r.z?i.x<r.x?[t.x-o,t.y,t.z+a,e.x-o,e.y,e.z+a,e.x+o,e.y,e.z-a,t.x+o,t.y,t.z-a]:[t.x-o,t.y,t.z-a,e.x-o,e.y,e.z-a,e.x+o,e.y,e.z+a,t.x+o,t.y,t.z+a]:i.x<r.x?[t.x-o,t.y,t.z-a,e.x-o,e.y,e.z-a,e.x+o,e.y,e.z+a,t.x+o,t.y,t.z+a]:[t.x+o,t.y,t.z-a,e.x+o,e.y,e.z-a,e.x-o,e.y,e.z+a,t.x-o,t.y,t.z+a]}},{key:"generateAttributes",value:function(t,e,n,i){var r=this,o=this.options,a=o.start,s=o.end,l=new Float32Array(4*e*3),c=new Float32Array(4*e*2),u=[],h=a.clone().setY(0),d=s.clone().setY(0).distanceTo(h),p=0,f=0,g=0;return t.forEach((function(e,o){if(o<t.length-1){var a=t[o+1],s="vertical"===i?[e.x,e.y-n,e.z,a.x,a.y-n,a.z,a.x,a.y+n,a.z,e.x,e.y+n,e.z]:r.generateHorizontalPos(e,a);l.set(s,p),p+=12;var m=e.clone().setY(0).distanceTo(h)/d,v=a.clone().setY(0).distanceTo(h)/d,y=[m,0,v,0,m,1,v,1];c.set(y,f),f+=8,u.push(g,g+1,g+2,g+2,g+3,g),g+=4}})),{position:l,indices:u,uv:c}}},{key:"createPath",value:function(){var t=this.options,e=t.start,n=t.end,i=t.radian,r=new u.Vector3(.5*(e.x+n.x),i,.5*(e.z+n.z));return new u.QuadraticBezierCurve3(e,r,n)}},{key:"createGeometry",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,r=new u.BufferGeometry,o=this.generateAttributes(t,i,n,e),a=o.position,s=o.indices,l=o.uv;return r.setAttribute("position",new u.BufferAttribute(a,3)),r.setAttribute("uv",new u.BufferAttribute(l,2)),r.setIndex(s),r}},{key:"create",value:function(){this.createGroup();var t=this.options,e=t.start,n=t.end,i=t.segments,r=t.material,o=t.size/2,a=this.createPath().getPoints(i),s=this.createGeometry(a,"vertical",o,i),l=new u.Vector3(n.x-e.x,0,e.z),c=new u.Vector3(n.x-e.x,0,n.z),h=Math.PI/2-c.angleTo(l);this.zSize=o*Math.sin(h),this.xSize=o*Math.cos(h);var d=this.createGeometry(a,"horizontal",o,i),p=new u.Mesh(s,r),f=new u.Mesh(d,r);this.object3d.add(p),this.object3d.add(f)}}]),r}(Ze.ZP),en=o(7874),nn=o.n(en),rn=function(){var t=(0,Kt.Z)(Jt().mark((function t(e,n){var i,r,o,a,s,l=arguments;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=l.length>2&&void 0!==l[2]?l[2]:"float32",t.next=3,e.async("blob");case 3:return r=t.sent,t.next=6,r.arrayBuffer();case 6:return o=t.sent,"float32"===i?a=new Float32Array(o):"int32"===i?a=new Int32Array(o):"uint32"===i?a=new Uint32Array(o):"uint16"===i&&(a=new Uint16Array(o)),s=new u.BufferAttribute(a,n,!1),t.abrupt("return",s);case 10:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),on=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options={url:"",textureUrl:"",lineSpeed:1,indexType:"uint32",lineOptions:{}},e.offset=new u.Vector2(0,0),e.material=void 0,e.mesh=void 0,e.uuid=Z(),e.options=(0,v.Z)((0,v.Z)({},e.options),t),e}return(0,e.Z)(r,[{key:"precreate",value:function(){var t=this.options,e=t.url,n=t.textureUrl,i=t.map,r="".concat(this.uuid,"_texture"),o="".concat(this.uuid,"_zip"),a=this.pencil.assetController;a&&(a.register({name:o,url:e,loader:"file",cache:!0,type:"blob"}),n&&!i&&a.register({name:r,url:n,loader:"texture2",cache:!0}))}},{key:"create",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c,h,d,p,f,g,y,b,x,w,_,C,A,I,S,M,k,E,T,O,P;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.createGroup(),e=this.pencil.getSize(),n=e.width,i=e.height,r=this.pencil.assetController,o=this.options,a=o.url,s=o.textureUrl,l=o.indexType,c=this.options.map,d="".concat(this.uuid,"_texture"),p="".concat(this.uuid,"_zip"),!r){t.next=18;break}if(!s||c){t.next=13;break}return t.next=11,r.get(d);case 11:(c=t.sent)&&(c.wrapS=u.RepeatWrapping,c.wrapT=u.RepeatWrapping);case 13:return t.next=15,r.get(p);case 15:h=t.sent,t.next=34;break;case 18:if(!s||c){t.next=34;break}return t.next=21,(0,_e.getCache)(s,{version:"1"});case 21:return f=t.sent,g=f.url,t.next=25,Oe(g);case 25:return(c=t.sent)&&(c.wrapS=u.RepeatWrapping,c.wrapT=u.RepeatWrapping),t.next=29,(0,_e.getCache)(a,{version:"1"});case 29:return y=t.sent,b=y.url,t.next=33,Te(b,"blob");case 33:h=t.sent;case 34:return this.material=new m((0,v.Z)({color:new u.Color("#ffffff"),map:c,offset:this.offset,useMap:1,lineWidth:15,transparent:!0,sizeAttenuation:0,resolution:new u.Vector2(n,i)},this.options.lineOptions)),t.next=37,(new(nn())).loadAsync(h);case 37:return x=t.sent,w=x.files,_=new u.BufferGeometry,t.next=42,rn(w["next.bin"],3);case 42:return C=t.sent,_.setAttribute("next",C),t.next=46,rn(w["counters.bin"],1);case 46:return A=t.sent,_.setAttribute("counters",A),t.next=50,rn(w["position.bin"],3);case 50:return I=t.sent,_.setAttribute("position",I),t.next=54,rn(w["uv.bin"],2);case 54:return S=t.sent,_.setAttribute("uv",S),t.next=58,rn(w["previous.bin"],3);case 58:return M=t.sent,_.setAttribute("previous",M),t.next=62,rn(w["index.bin"],1,l);case 62:for(k=t.sent,_.setIndex(k),(E=new Float32Array(_.attributes.counters.array.length)).fill(1),_.setAttribute("width",new u.BufferAttribute(E,1,!1)),T=new Float32Array(_.attributes.counters.array.length),O=0;O<T.length;O+=1)T[O]=O%2===0?1:-1;_.setAttribute("side",new u.BufferAttribute(T,1,!1)),P=new u.Mesh(_,this.material),this.object3d.add(P);case 72:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(t){this.material&&(this.material.offset.y-=t/2*this.options.lineSpeed,this.material.offset.x-=t/2*this.options.lineSpeed)}},{key:"dispose",value:function(){(0,_e.disposeMesh)(this.object3d)}}]),r}(Ze.ZP),an=function(t){(0,l.Z)(r,t);var n=(0,c.Z)(r);function r(t){var e;return(0,i.Z)(this,r),(e=n.call(this)).options={url:"",materialMap:{},draco:!1,version:"0.0.1"},e.gltf=void 0,e.uuid=Z(),e.name="".concat(e.uuid,"_model"),e.map=void 0,e.options=(0,v.Z)((0,v.Z)({},e.options),t),e}return(0,e.Z)(r,[{key:"create",value:function(){var t=(0,Kt.Z)(Jt().mark((function t(){var e,n,i,r,o,a,s,l,c;return Jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.createGroup(),e=this.pencil.assetController,n=this.options,i=n.url,r=n.materialMap,o=this.name,!e){t.next=10;break}return t.next=7,e.get(o);case 7:a=t.sent,t.next=17;break;case 10:return t.next=12,(0,_e.getCache)(i,{version:"1"});case 12:return s=t.sent,l=s.url,t.next=16,Pe(l);case 16:a=t.sent.scene;case 17:Object.keys(r).forEach((function(t){var e=r[t],n=a.getObjectByName(t);n instanceof u.Mesh&&(n.material=e)})),c=new Map,a.traverse((function(t){t.name&&c.set(t.name,t)})),this.map=c,this.gltf=a,this.object3d.add(a);case 23:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"precreate",value:function(){var t=this.pencil.assetController,e=this.options,n=e.url,i=e.draco,r=e.version,o=this.name;t&&t.register({name:o,url:n,loader:"gltf",cache:!0,draco:i,version:r})}},{key:"dispose",value:function(){(0,_e.disposeMesh)(this.object3d)}}]),r}(Ze.ZP)})(),t.exports=a})()},6558:function(t,e,n){(function(){var e={7757:function(t,e,n){t.exports=n(5666)},4811:function(t,e,i){"use strict";i.d(e,{eK:function(){return h},LK:function(){return u},lJ:function(){return d}});var r=i(4942),o=i(5861),a=i(7757),s=i.n(a),l=n(4678),c=i(203),u=l.del,h=l.clear,d=function(){var t=(0,o.Z)(s().mark((function t(e,n){var i,o,a,u,h;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n.version,t.next=3,(0,l.get)(e);case 3:if(!(a=t.sent)||!a[i]){t.next=8;break}o=a[i],t.next=14;break;case 8:return t.next=10,(0,c.Z)(fetch(e).then((function(t){if(t.ok)return t.blob();throw new Error})));case 10:u=t.sent,h=u.res,u.err||(o=h,(0,l.set)(e,(0,r.Z)({},i,h)));case 14:return t.abrupt("return",o?{url:URL.createObjectURL(o)}:{url:e});case 15:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},306:function(t,e,n){"use strict";n.d(e,{U:function(){return r},v:function(){return i}});var i=function(t){for(var e=t.offsetLeft,n=t.offsetParent;null!==n;)e+=n.offsetLeft,n=n.offsetParent;return e-("BackCompat"===document.compatMode||0===document.documentElement.scrollTop?document.body.scrollLeft:document.documentElement.scrollLeft)},r=function(t){for(var e=t.offsetTop,n=t.offsetParent;null!==n;)e+=n.offsetTop,n=n.offsetParent;return e-("BackCompat"===document.compatMode||0===document.documentElement.scrollTop?document.body.scrollTop:document.documentElement.scrollTop)}},1270:function(t,e,n){"use strict";var i=n(203);e.Z=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return n.promise=new Promise((function(t,e){n.resolve=t,n.reject=e})),t&&(n.promise=(0,i.Z)(n.promise,e)),n}},327:function(t,e,n){"use strict";function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=(90-e)*Math.PI/180,r=(90-t)*Math.PI/180;return[n*Math.sin(i)*Math.cos(r),n*Math.cos(i),n*Math.sin(i)*Math.sin(r)]}n.d(e,{Z:function(){return i}})},5413:function(t,e,n){"use strict";n.d(e,{Z:function(){return a}});var i=n(5671),r=n(3144),o=function(){function t(e){(0,i.Z)(this,t),this.onTick_=e,this.cancelPending_=void 0,this.cancelPending_=null}return(0,r.Z)(t,[{key:"tickAfter",value:function(t){var e=this;this.stop();var n,i=!0;return this.cancelPending_=function(){clearTimeout(n),i=!1},n=window.setTimeout((function(){i&&e.onTick_()}),t),this}},{key:"stop",value:function(){this.cancelPending_&&(this.cancelPending_(),this.cancelPending_=null)}}]),t}(),a=function(){function t(e){(0,i.Z)(this,t),this.onTick_=e,this.ticker_=void 0,this.ticker_=null}return(0,r.Z)(t,[{key:"tickNow",value:function(){return this.stop(),this.onTick_(),this}},{key:"tickAfter",value:function(t){var e=this;return this.stop(),this.ticker_=new o((function(){e.onTick_()})).tickAfter(t),this}},{key:"tickEvery",value:function(t){var e=this;return this.stop(),this.ticker_=new o((function(){var n;null===(n=e.ticker_)||void 0===n||n.tickAfter(t),e.onTick_()})).tickAfter(t),this}},{key:"stop",value:function(){this.ticker_&&(this.ticker_.stop(),this.ticker_=null)}}]),t}()},203:function(t,e,n){"use strict";var i=n(1413);e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.then((function(t){return(0,i.Z)({err:null,res:t},e)})).catch((function(t){return(0,i.Z)({err:t,res:void 0},e)}))}},5666:function(t){var e=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(O){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var r=e&&e.prototype instanceof m?e:m,o=Object.create(r.prototype),a=new k(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw o;return T()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=u(t,e,n);if("normal"===l.type){if(i=n.done?f:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=f,n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}t.wrap=c;var h="suspendedStart",d="suspendedYield",p="executing",f="completed",g={};function m(){}function v(){}function y(){}var b={};l(b,o,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(E([])));w&&w!==n&&i.call(w,o)&&(b=w);var _=y.prototype=m.prototype=Object.create(b);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function n(r,o,a,s){var l=u(t[r],t,o);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}}function I(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return v.prototype=y,l(_,"constructor",y),l(y,"constructor",v),v.displayName=l(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},C(A.prototype),l(A.prototype,a,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new A(c(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(_),l(_,s,"Generator"),l(_,o,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=E,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:E(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},5644:function(t){"use strict";t.exports=n(5644)},5861:function(t,e,n){"use strict";function i(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(i,r)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(t){i(a,r,o,s,l,"next",t)}function l(t){i(a,r,o,s,l,"throw",t)}s(void 0)}))}}n.d(e,{Z:function(){return r}})},5671:function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{Z:function(){return i}})},3144:function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.d(e,{Z:function(){return r}})},4942:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return i}})},1413:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(4942);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}}},i={};function r(t){var n=i[t];if(void 0!==n)return n.exports;var o=i[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(function(){"use strict";r.r(o),r.d(o,{Chain:function(){return d},Timer:function(){return i.Z},clearAllCache:function(){return b.eK},clearCache:function(){return b.LK},colorCorrection:function(){return m},disposeMesh:function(){return f},exportOBJ:function(){return _},getCache:function(){return b.lJ},getElementViewLeft:function(){return x.v},getElementViewTop:function(){return x.U},isPlainObject:function(){return y},makePromiseCreator:function(){return t.Z},polar2Cartesian:function(){return p.Z},to:function(){return e.Z}});var t=r(1270),e=r(203),i=r(5413),a=r(5861),s=r(1413),l=r(5671),c=r(3144),u=r(7757),h=r.n(u),d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.Z)(this,t),this.options=void 0,this.index=0,this.repeatCount=0,this.repeatNum=0,this.isPlaying=!1,this.chainedList=[],this.children=[],this.options=(0,s.Z)((0,s.Z)({},{isdev:!1}),e)}return(0,c.Z)(t,[{key:"start",value:function(){return this.isPlaying?this:(this.index=0,this.isPlaying=!0,this.play())}},{key:"stop1",value:function(){return this.isPlaying?(this.isPlaying=!1,this.repeatCount=0,this):this}},{key:"stop",value:function(){return this.traverse((function(t){return t.stop1()})),this}},{key:"dispose",value:function(){return this.stop(),this.chainedList=[],this.children=[],this}},{key:"play",value:function(){var t=(0,a.Z)(h().mark((function t(){var e,n=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this.chainedList[this.index])||!this.isPlaying){t.next=9;break}return t.next=4,Promise.all(e.map((function(t){return"function"==typeof t?t(n.repeatCount):t.start()})));case 4:return this.index+=1,t.next=7,this.play();case 7:t.next=17;break;case 9:if(!(!e&&this.isPlaying&&this.repeatCount<this.repeatNum)){t.next=16;break}return this.repeatCount+=1,this.index=0,t.next=14,this.play();case 14:t.next=17;break;case 16:!e&&this.isPlaying&&this.repeatCount===this.repeatNum&&this.stop();case 17:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"chain",value:function(){for(var e=this,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return[].concat(i).forEach((function(n){n instanceof t&&e.children.push(n)})),this.chainedList.push([].concat(i)),this}},{key:"repeat",value:function(t){return this.repeatNum=t,this}},{key:"timeout",value:function(t){return this.chain((function(){return new Promise((function(e){return setTimeout(e,t)}))})),this}},{key:"traverse",value:function(t){t(this),this.children.forEach((function(e){e.traverse(t)}))}}]),t}(),p=r(327);function f(t){t.geometry&&t.geometry.dispose(),t.material&&(Array.isArray(t.material)?t.material:[t.material]).forEach((function(t){var e,n,i,r,o,a,s,l,c,u,h,d,p;null===(e=t.map)||void 0===e||e.dispose(),null===(n=t.lightMap)||void 0===n||n.dispose(),null===(i=t.bumpMap)||void 0===i||i.dispose(),null===(r=t.normalMap)||void 0===r||r.dispose(),null===(o=t.specularMap)||void 0===o||o.dispose(),null===(a=t.envMap)||void 0===a||a.dispose(),null===(s=t.alphaMap)||void 0===s||s.dispose(),null===(l=t.aoMap)||void 0===l||l.dispose(),null===(c=t.displacementMap)||void 0===c||c.dispose(),null===(u=t.emissiveMap)||void 0===u||u.dispose(),null===(h=t.gradientMap)||void 0===h||h.dispose(),null===(d=t.metalnessMap)||void 0===d||d.dispose(),null===(p=t.roughnessMap)||void 0===p||p.dispose(),t.dispose()}))}var g=r(5644);function m(t){t.material&&(Array.isArray(t.material)?t.material:[t.material]).forEach((function(t){var e,n;null===(e=t.color)||void 0===e||e.convertSRGBToLinear(),null===(n=t.emissive)||void 0===n||n.convertSRGBToLinear(),t.map&&(t.map.encoding=g.sRGBEncoding),t.emissiveMap&&(t.emissiveMap.encoding=g.sRGBEncoding)}))}function v(t){return"[object Object]"===Object.prototype.toString.call(t)}function y(t){if(!1===v(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!1!==v(n)&&!1!==n.hasOwnProperty("isPrototypeOf")}var b=r(4811),x=r(306),w=n(3053);function _(t){(function(t){var e=document.createElement("a");e.href=URL.createObjectURL(new Blob([t],{type:"text/plain"})),e.download="mesh.obj",e.click()})((new w.OBJExporter).parse(t))}})(),t.exports=o})()},1433:function(t,e){(function(t,n){n(e)})(0,(function(t){"use strict";const e="tp";function n(t){return(n,i)=>[e,"-",t,"v",n?`_${n}`:"",i?`-${i}`:""].join("")}function i(t,e){const n=Object.keys(e).reduce((n,i)=>{if(void 0===n)return;const r=e[i],o=r(t[i]);return o.succeeded?Object.assign(Object.assign({},n),{[i]:o.value}):void 0},{});return n}function r(t,e){return t.reduce((t,n)=>{if(void 0===t)return;const i=e(n);return i.succeeded&&void 0!==i.value?[...t,i.value]:void 0},[])}function o(t){return null!==t&&"object"==typeof t}function a(t){return e=>n=>{if(!e&&void 0===n)return{succeeded:!1,value:void 0};if(e&&void 0===n)return{succeeded:!0,value:void 0};const i=t(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function s(t){return{custom:e=>a(e)(t),boolean:a(t=>"boolean"==typeof t?t:void 0)(t),number:a(t=>"number"==typeof t?t:void 0)(t),string:a(t=>"string"==typeof t?t:void 0)(t),function:a(t=>"function"==typeof t?t:void 0)(t),constant:e=>a(t=>t===e?e:void 0)(t),raw:a(t=>t)(t),object:e=>a(t=>{if(o(t))return i(t,e)})(t),array:e=>a(t=>{if(Array.isArray(t))return r(t,e)})(t)}}const l={optional:s(!0),required:s(!1)};function c(t,e){const n=l.required.object(e)(t);return n.succeeded?n.value:void 0}function u(t){return e=>e.toFixed(Math.max(Math.min(t,20),0))}u(0);function h(t){return[t[0],t[1],t[2]]}function d(t,e){const n=u("float"===e?2:0);return`rgb(${h(t.getComponents("rgb",e)).map(t=>n(t)).join(", ")})`}function p(t){return e=>d(e,t)}function f(t,e){const n=u(2),i=u("float"===e?2:0);return`rgba(${t.getComponents("rgb",e).map((t,e)=>(3===e?n:i)(t)).join(", ")})`}function g(t){return e=>f(e,t)}function m(t,e){const n=u("float"===e?2:0),i=["r","g","b"];return`{${h(t.getComponents("rgb",e)).map((t,e)=>`${i[e]}: ${n(t)}`).join(", ")}}`}function v(t){return e=>m(e,t)}function y(t,e){const n=u(2),i=u("float"===e?2:0),r=["r","g","b","a"];return`{${t.getComponents("rgb",e).map((t,e)=>{const o=3===e?n:i;return`${r[e]}: ${o(t)}`}).join(", ")}}`}function b(t){return e=>y(e,t)}function x(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i.throw(t))}catch(e){o(e)}}function l(t){t.done?n(t.value):r(t.value).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function w(){const t=document.createElement("canvas");t.width=128,t.height=64;const e=t.getContext("2d");return e.fillStyle="#222",e.fillRect(0,0,t.width,t.height),e.fillStyle="#ddd",e.font="monospaced",e.textAlign="center",e.textBaseline="middle",e.fillText("No image",.5*t.width,.5*t.height),new Promise(e=>{t.toBlob(t=>{const n=new Image;n.src=URL.createObjectURL(t),n.onload=()=>{e(n)}})})}function _(t){return x(this,void 0,void 0,(function*(){const e=new Image;return e.crossOrigin="anonymous",new Promise(n=>{e.src=t,e.onload=()=>{n(e)}})}))}function C(t){const e=document.createElement("canvas");e.width=t.width,e.height=t.height,e.getContext("2d").drawImage(t,0,0);const n=new Image;return new Promise(t=>{e.toBlob(e=>{n.src=URL.createObjectURL(e),n.onload=()=>{t(n)}})})}["int","float"].reduce((t,e)=>[...t,{format:{alpha:!1,mode:"rgb",notation:"func",type:e},stringifier:p(e)},{format:{alpha:!0,mode:"rgb",notation:"func",type:e},stringifier:g(e)},{format:{alpha:!1,mode:"rgb",notation:"object",type:e},stringifier:v(e)},{format:{alpha:!0,mode:"rgb",notation:"object",type:e},stringifier:b(e)}],[]);const A=n("img");class I{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(A()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(A("row")),this.url=t.createElement("input"),this.url.classList.add(A("url")),this.url.setAttribute("type","text"),n.appendChild(this.url);const i=t.createElement("label");i.classList.add(A("label")),i.textContent="上传",n.appendChild(i),this.input=t.createElement("input"),this.input.classList.add(A("input")),this.input.setAttribute("type","file"),this.input.setAttribute("accept",e.extensions.join(",")),i.appendChild(this.input),this.element.appendChild(n);const r=t.createElement("div");r.classList.add(A("image_wrapper")),this.imageWrapper=r,this.image_=t.createElement("img"),this.image_.classList.add(A("image")),this.image_.classList.add(A(`image_${e.imageFit}`)),r.appendChild(this.image_),this.element.classList.add(A("area_root")),this.element.appendChild(this.imageWrapper)}changeImage(t){this.image_.src=t,this.url.value=t}changeDraggingState(t){const e=this.imageWrapper;t?null==e||e.classList.add(A("area_dragging")):null==e||e.classList.remove(A("area_dragging"))}}class S{constructor(t,e){this.placeholderImage=null,this.value=e.value,this.viewProps=e.viewProps,this.view=new I(t,{viewProps:this.viewProps,extensions:e.extensions,imageFit:e.imageFit}),this.onFile=this.onFile.bind(this),this.onUrl=this.onUrl.bind(this),this.onDrop=this.onDrop.bind(this),this.onDragOver=this.onDragOver.bind(this),this.onDragLeave=this.onDragLeave.bind(this),this.view.input.addEventListener("change",this.onFile),this.view.element.addEventListener("drop",this.onDrop),this.view.element.addEventListener("dragover",this.onDragOver),this.view.element.addEventListener("dragleave",this.onDragLeave),this.view.url.addEventListener("change",this.onUrl),this.viewProps.handleDispose(()=>{this.view.input.removeEventListener("change",this.onFile),this.view.input.removeEventListener("drop",this.onDrop),this.view.input.removeEventListener("dragover",this.onDragOver),this.view.input.removeEventListener("dragleave",this.onDragLeave),this.view.url.removeEventListener("change",this.onUrl)}),this.value.emitter.on("change",this.handleValueChange.bind(this,!0)),this.handleValueChange(!1)}onUrl(t){const e=t.target.value;this.setValue(e),this.updateImage(e)}onFile(t){const e=(null==t?void 0:t.target).files;if(!e||!e.length)return;const n=e[0],i=URL.createObjectURL(n);this.setValue(i),this.updateImage(i)}onDrop(t){return x(this,void 0,void 0,(function*(){t.preventDefault();try{const{dataTransfer:e}=t,n=null==e?void 0:e.files[0];if(n){const t=URL.createObjectURL(n);this.updateImage(t),this.setValue(t)}else{const t=null==e?void 0:e.getData("url");if(!t)throw new Error("No url");_(t).then(t=>x(this,void 0,void 0,(function*(){const e=yield C(t);this.updateImage(e.src),this.setValue(e)})))}}catch(e){console.error("Could not parse the dropped image",e)}finally{this.view.changeDraggingState(!1)}}))}onDragOver(t){t.preventDefault(),this.view.changeDraggingState(!0)}onDragLeave(){this.view.changeDraggingState(!1)}handleImage(t,e){return x(this,void 0,void 0,(function*(){if(t instanceof HTMLImageElement)C(t).then(t=>{this.updateImage(t.src)});else if("string"==typeof t){let i="",r=!1;try{if("placeholder"===t)throw new Error("placeholder");const n=new URL(t,window.location.origin);i=(yield _(n.href)).src}catch(n){i=(yield this.handlePlaceholderImage()).src,r=!0}finally{this.updateImage(i),e&&!r&&this.setValue(i)}}}))}updateImage(t){this.view.changeImage(t)}setValue(t){return x(this,void 0,void 0,(function*(){t instanceof HTMLImageElement?this.value.setRawValue(t):t?this.value.setRawValue(yield _(t)):this.value.setRawValue(yield this.handlePlaceholderImage())}))}handleValueChange(t){this.handleImage(this.value.rawValue,t)}handlePlaceholderImage(){return x(this,void 0,void 0,(function*(){return this.placeholderImage||(this.placeholderImage=yield w()),this.placeholderImage}))}}const M=[".jpg",".png",".gif"],k={id:"input-image",type:"input",css:".tp-imgv_label,.tp-imgv,.tp-imgv_url{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-imgv_label{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-imgv_label:hover{background-color:var(--btn-bg-h)}.tp-imgv_label:focus{background-color:var(--btn-bg-f)}.tp-imgv_label:active{background-color:var(--btn-bg-a)}.tp-imgv_label:disabled{opacity:0.5}.tp-imgv,.tp-imgv_url{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-imgv:hover,.tp-imgv_url:hover{background-color:var(--in-bg-h)}.tp-imgv:focus,.tp-imgv_url:focus{background-color:var(--in-bg-f)}.tp-imgv:active,.tp-imgv_url:active{background-color:var(--in-bg-a)}.tp-imgv:disabled,.tp-imgv_url:disabled{opacity:0.5}:root{--tp-plugin-image-dragging-color: hsla(230, 100%, 66%, 1.00)}.tp-imgv{cursor:pointer;display:flex;flex-direction:column;height:calc(var(--bld-us) * 3);overflow:hidden;position:relative}.tp-imgv.tp-v-disabled{opacity:0.5}.tp-imgv_row{display:flex;align-items:center;padding:0 4px;height:var(--bld-us)}.tp-imgv_label{display:inline-block;height:100%;width:30px;text-align:center;position:relative}.tp-imgv_url{flex:1;margin-right:6px}.tp-imgv_input{position:absolute;width:100%;height:100%;opacity:0;top:0;left:0;z-index:-1}.tp-imgv_image{height:100%;width:100%;border:0}.tp-imgv_image_contain{-o-object-fit:contain;object-fit:contain}.tp-imgv_image_cover{-o-object-fit:cover;object-fit:cover}.tp-imgv_area_root{transition:opacity 0.16s ease-in-out}.tp-imgv_image_wrapper{width:100%;height:calc(var(--bld-us) * 2 - 2px);margin-top:2px;overflow:hidden;box-sizing:border-box}.tp-imgv_area_dragging{border:2px dashed var(--tp-plugin-image-dragging-color);border-radius:6px;opacity:0.6}",accept(t,e){if(!(t instanceof HTMLImageElement||"string"==typeof t))return null;const n=l,i=c(e,{view:n.required.constant("input-image"),acceptUrl:n.optional.boolean,imageFit:n.optional.custom(t=>"contain"===t||"cover"===t?t:void 0),extensions:n.optional.array(n.required.string)});return i?{initialValue:t,params:i}:null},binding:{reader(t){return t=>t instanceof HTMLImageElement?""===t.src?"placeholder":t.src:"string"==typeof t?t:"placeholder"},writer(t){return(t,e)=>{t.write(e)}}},controller(t){var e,n;return new S(t.document,{value:t.value,imageFit:null!==(e=t.params.imageFit)&&void 0!==e?e:"cover",viewProps:t.viewProps,extensions:null!==(n=t.params.extensions)&&void 0!==n?n:M})}};t.plugin=k,Object.defineProperty(t,"__esModule",{value:!0})}))},3809:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(611);function r(t){for(var e,n,r=i.getCoords(t),o=0,a=1;a<r.length;)e=n||r[0],n=r[a],o+=(n[0]-e[0])*(n[1]+e[1]),a++;return o>0}e.default=r},8147:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(611);function r(t,e,n){if(void 0===n&&(n={}),!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var r=i.getCoord(t),s=i.getGeom(e),l=s.type,c=e.bbox,u=s.coordinates;if(c&&!1===a(r,c))return!1;"Polygon"===l&&(u=[u]);for(var h=!1,d=0;d<u.length&&!h;d++)if(o(r,u[d][0],n.ignoreBoundary)){for(var p=!1,f=1;f<u[d].length&&!p;)o(r,u[d][f],!n.ignoreBoundary)&&(p=!0),f++;p||(h=!0)}return h}function o(t,e,n){var i=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var r=0,o=e.length-1;r<e.length;o=r++){var a=e[r][0],s=e[r][1],l=e[o][0],c=e[o][1],u=t[1]*(a-l)+s*(l-t[0])+c*(t[0]-a)===0&&(a-t[0])*(l-t[0])<=0&&(s-t[1])*(c-t[1])<=0;if(u)return!n;var h=s>t[1]!=c>t[1]&&t[0]<(l-a)*(t[1]-s)/(c-s)+a;h&&(i=!i)}return i}function a(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}e.default=r},4102:function(t,e){"use strict";function n(t,e,n){void 0===n&&(n={});var i={type:"Feature"};return(0===n.id||n.id)&&(i.id=n.id),n.bbox&&(i.bbox=n.bbox),i.properties=e||{},i.geometry=t,i}function i(t,e,n){switch(void 0===n&&(n={}),t){case"Point":return r(e).geometry;case"LineString":return l(e).geometry;case"Polygon":return a(e).geometry;case"MultiPoint":return d(e).geometry;case"MultiLineString":return h(e).geometry;case"MultiPolygon":return p(e).geometry;default:throw new Error(t+" is invalid")}}function r(t,e,i){if(void 0===i&&(i={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!A(t[0])||!A(t[1]))throw new Error("coordinates must contain numbers");var r={type:"Point",coordinates:t};return n(r,e,i)}function o(t,e,n){return void 0===n&&(n={}),u(t.map((function(t){return r(t,e)})),n)}function a(t,e,i){void 0===i&&(i={});for(var r=0,o=t;r<o.length;r++){var a=o[r];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var s=0;s<a[a.length-1].length;s++)if(a[a.length-1][s]!==a[0][s])throw new Error("First and last Position are not equivalent.")}var l={type:"Polygon",coordinates:t};return n(l,e,i)}function s(t,e,n){return void 0===n&&(n={}),u(t.map((function(t){return a(t,e)})),n)}function l(t,e,i){if(void 0===i&&(i={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var r={type:"LineString",coordinates:t};return n(r,e,i)}function c(t,e,n){return void 0===n&&(n={}),u(t.map((function(t){return l(t,e)})),n)}function u(t,e){void 0===e&&(e={});var n={type:"FeatureCollection"};return e.id&&(n.id=e.id),e.bbox&&(n.bbox=e.bbox),n.features=t,n}function h(t,e,i){void 0===i&&(i={});var r={type:"MultiLineString",coordinates:t};return n(r,e,i)}function d(t,e,i){void 0===i&&(i={});var r={type:"MultiPoint",coordinates:t};return n(r,e,i)}function p(t,e,i){void 0===i&&(i={});var r={type:"MultiPolygon",coordinates:t};return n(r,e,i)}function f(t,e,i){void 0===i&&(i={});var r={type:"GeometryCollection",geometries:t};return n(r,e,i)}function g(t,e){if(void 0===e&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n}function m(t,n){void 0===n&&(n="kilometers");var i=e.factors[n];if(!i)throw new Error(n+" units is invalid");return t*i}function v(t,n){void 0===n&&(n="kilometers");var i=e.factors[n];if(!i)throw new Error(n+" units is invalid");return t/i}function y(t,e){return x(v(t,e))}function b(t){var e=t%360;return e<0&&(e+=360),e}function x(t){var e=t%(2*Math.PI);return 180*e/Math.PI}function w(t){var e=t%360;return e*Math.PI/180}function _(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return m(v(t,e),n)}function C(t,n,i){if(void 0===n&&(n="meters"),void 0===i&&(i="kilometers"),!(t>=0))throw new Error("area must be a positive number");var r=e.areaFactors[n];if(!r)throw new Error("invalid original units");var o=e.areaFactors[i];if(!o)throw new Error("invalid final units");return t/r*o}function A(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function I(t){return!!t&&t.constructor===Object}function S(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!A(t))throw new Error("bbox must only contain numbers")}))}function M(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}Object.defineProperty(e,"__esModule",{value:!0}),e.earthRadius=6371008.8,e.factors={centimeters:100*e.earthRadius,centimetres:100*e.earthRadius,degrees:e.earthRadius/111325,feet:3.28084*e.earthRadius,inches:39.37*e.earthRadius,kilometers:e.earthRadius/1e3,kilometres:e.earthRadius/1e3,meters:e.earthRadius,metres:e.earthRadius,miles:e.earthRadius/1609.344,millimeters:1e3*e.earthRadius,millimetres:1e3*e.earthRadius,nauticalmiles:e.earthRadius/1852,radians:1,yards:1.0936*e.earthRadius},e.unitsFactors={centimeters:100,centimetres:100,degrees:8982708286548395e-21,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:.0006213711922373339,millimeters:1e3,millimetres:1e3,nauticalmiles:.0005399568034557236,radians:1/e.earthRadius,yards:1.0936133},e.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},e.feature=n,e.geometry=i,e.point=r,e.points=o,e.polygon=a,e.polygons=s,e.lineString=l,e.lineStrings=c,e.featureCollection=u,e.multiLineString=h,e.multiPoint=d,e.multiPolygon=p,e.geometryCollection=f,e.round=g,e.radiansToLength=m,e.lengthToRadians=v,e.lengthToDegrees=y,e.bearingToAzimuth=b,e.radiansToDegrees=x,e.degreesToRadians=w,e.convertLength=_,e.convertArea=C,e.isNumber=A,e.isObject=I,e.validateBBox=S,e.validateId=M},611:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4102);function r(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function o(t){if(Array.isArray(t))return t;if("Feature"===t.type){if(null!==t.geometry)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function a(t){if(t.length>1&&i.isNumber(t[0])&&i.isNumber(t[1]))return!0;if(Array.isArray(t[0])&&t[0].length)return a(t[0]);throw new Error("coordinates must only contain numbers")}function s(t,e,n){if(!e||!n)throw new Error("type and name required");if(!t||t.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.type)}function l(t,e,n){if(!t)throw new Error("No feature passed");if(!n)throw new Error(".featureOf() requires a name");if(!t||"Feature"!==t.type||!t.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!t.geometry||t.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+t.geometry.type)}function c(t,e,n){if(!t)throw new Error("No featureCollection passed");if(!n)throw new Error(".collectionOf() requires a name");if(!t||"FeatureCollection"!==t.type)throw new Error("Invalid input to "+n+", FeatureCollection required");for(var i=0,r=t.features;i<r.length;i++){var o=r[i];if(!o||"Feature"!==o.type||!o.geometry)throw new Error("Invalid input to "+n+", Feature with geometry required");if(!o.geometry||o.geometry.type!==e)throw new Error("Invalid input to "+n+": must be a "+e+", given "+o.geometry.type)}}function u(t){return"Feature"===t.type?t.geometry:t}function h(t,e){return"FeatureCollection"===t.type?"FeatureCollection":"GeometryCollection"===t.type?"GeometryCollection":"Feature"===t.type&&null!==t.geometry?t.geometry.type:t.type}e.getCoord=r,e.getCoords=o,e.containsNumber=a,e.geojsonType=s,e.featureOf=l,e.collectionOf=c,e.getGeom=u,e.getType=h},6041:function(t,e){(function(t,n){n(e)})(0,(function(t){"use strict";class e{constructor(t){this.controller_=t}get element(){return this.controller_.view.element}get disabled(){return this.controller_.viewProps.get("disabled")}set disabled(t){this.controller_.viewProps.set("disabled",t)}get hidden(){return this.controller_.viewProps.get("hidden")}set hidden(t){this.controller_.viewProps.set("hidden",t)}dispose(){this.controller_.viewProps.set("disposed",!0)}}class n{constructor(t){this.target=t}}class i extends n{constructor(t,e,n,i){super(t),this.value=e,this.presetKey=n,this.last=null==i||i}}function r(t){return null==t}const o={alreadydisposed:()=>"View has been already disposed",invalidparams:t=>`Invalid parameters for '${t.name}'`,nomatchingcontroller:t=>`No matching controller for '${t.key}'`,nomatchingview:t=>`No matching view for '${JSON.stringify(t.params)}'`,notbindable:()=>"Value is not bindable",propertynotfound:t=>`Property '${t.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class a{constructor(t){var e;this.message=null!==(e=o[t.type](t.context))&&void 0!==e?e:"Unexpected error",this.name=this.constructor.name,this.stack=new Error(this.message).stack,this.type=t.type}static alreadyDisposed(){return new a({type:"alreadydisposed"})}static notBindable(){return new a({type:"notbindable"})}static propertyNotFound(t){return new a({type:"propertynotfound",context:{name:t}})}static shouldNeverHappen(){return new a({type:"shouldneverhappen"})}}class s{constructor(){this.observers_={}}on(t,e){let n=this.observers_[t];return n||(n=this.observers_[t]=[]),n.push({handler:e}),this}off(t,e){const n=this.observers_[t];return n&&(this.observers_[t]=n.filter(t=>t.handler!==e)),this}emit(t,e){const n=this.observers_[t];!n||n.forEach(t=>{t.handler(e)})}}const l="tp";function c(t){return(e,n)=>[l,"-",t,"v",e?`_${e}`:"",n?`-${n}`:""].join("")}function u(t,e){return n=>e(t(n))}function h(t){return t.rawValue}function d(t,e){t.emitter.on("change",u(h,e)),e(t.rawValue)}function p(t,e,n){d(t.value(e),n)}function f(t,e,n){n?t.classList.add(e):t.classList.remove(e)}function g(t,e){return n=>{f(t,e,n)}}function m(t,e){d(t,t=>{e.textContent=null!=t?t:""})}const v=c("btn");class y{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(v()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("button");n.classList.add(v("b")),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;const i=t.createElement("div");i.classList.add(v("t")),m(e.props.value("title"),i),this.buttonElement.appendChild(i)}}class b{constructor(t,e){this.emitter=new s,this.onClick_=this.onClick_.bind(this),this.props=e.props,this.viewProps=e.viewProps,this.view=new y(t,{props:this.props,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class x{constructor(t,e){var n;this.constraint_=null==e?void 0:e.constraint,this.equals_=null!==(n=null==e?void 0:e.equals)&&void 0!==n?n:(t,e)=>t===e,this.emitter=new s,this.rawValue_=t}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!=e?e:{forceEmit:!1,last:!0},i=this.constraint_?this.constraint_.constrain(t):t,r=this.rawValue_;this.equals_(r,i)&&!n.forceEmit||(this.emitter.emit("beforechange",{sender:this}),this.rawValue_=i,this.emitter.emit("change",{options:n,previousRawValue:r,rawValue:i,sender:this}))}}class w{constructor(t){this.emitter=new s,this.value_=t}get rawValue(){return this.value_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!=e?e:{forceEmit:!1,last:!0},i=this.value_;i===t&&!n.forceEmit||(this.emitter.emit("beforechange",{sender:this}),this.value_=t,this.emitter.emit("change",{options:n,previousRawValue:i,rawValue:this.value_,sender:this}))}}function _(t,e){const n=null==e?void 0:e.constraint,i=null==e?void 0:e.equals;return n||i?new x(t,e):new w(t)}class C{constructor(t){this.emitter=new s,this.valMap_=t;for(const e in this.valMap_)this.valMap_[e].emitter.on("change",()=>{this.emitter.emit("change",{key:e,sender:this})})}static createCore(t){return Object.keys(t).reduce((e,n)=>Object.assign(e,{[n]:_(t[n])}),{})}static fromObject(t){const e=this.createCore(t);return new C(e)}get(t){return this.valMap_[t].rawValue}set(t,e){this.valMap_[t].rawValue=e}value(t){return this.valMap_[t]}}function A(t,e){const n=Object.keys(e).reduce((n,i)=>{if(void 0===n)return;const r=e[i],o=r(t[i]);return o.succeeded?Object.assign(Object.assign({},n),{[i]:o.value}):void 0},{});return n}function I(t,e){return t.reduce((t,n)=>{if(void 0===t)return;const i=e(n);return i.succeeded&&void 0!==i.value?[...t,i.value]:void 0},[])}function S(t){return null!==t&&"object"==typeof t}function M(t){return e=>n=>{if(!e&&void 0===n)return{succeeded:!1,value:void 0};if(e&&void 0===n)return{succeeded:!0,value:void 0};const i=t(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function k(t){return{custom:e=>M(e)(t),boolean:M(t=>"boolean"==typeof t?t:void 0)(t),number:M(t=>"number"==typeof t?t:void 0)(t),string:M(t=>"string"==typeof t?t:void 0)(t),function:M(t=>"function"==typeof t?t:void 0)(t),constant:e=>M(t=>t===e?e:void 0)(t),raw:M(t=>t)(t),object:e=>M(t=>{if(S(t))return A(t,e)})(t),array:e=>M(t=>{if(Array.isArray(t))return I(t,e)})(t)}}const E={optional:k(!0),required:k(!1)};function T(t,e){const n=E.required.object(e)(t);return n.succeeded?n.value:void 0}function O(t){console.warn([`Missing '${t.key}' of ${t.target} in ${t.place}.`,"Please rebuild plugins with the latest core package."].join(" "))}function P(t){return t&&t.parentElement&&t.parentElement.removeChild(t),null}class j{constructor(t){this.value_=t}static create(t){return[new j(t),(e,n)=>{t.setRawValue(e,n)}]}get emitter(){return this.value_.emitter}get rawValue(){return this.value_.rawValue}}const L=c("");function D(t,e){return g(t,L(void 0,e))}class R extends C{constructor(t){var e;super(t),this.onDisabledChange_=this.onDisabledChange_.bind(this),this.onParentChange_=this.onParentChange_.bind(this),this.onParentGlobalDisabledChange_=this.onParentGlobalDisabledChange_.bind(this),[this.globalDisabled_,this.setGlobalDisabled_]=j.create(_(this.getGlobalDisabled_())),this.value("disabled").emitter.on("change",this.onDisabledChange_),this.value("parent").emitter.on("change",this.onParentChange_),null===(e=this.get("parent"))||void 0===e||e.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_)}static create(t){var e,n,i;const r=null!=t?t:{};return new R(C.createCore({disabled:null!==(e=r.disabled)&&void 0!==e&&e,disposed:!1,hidden:null!==(n=r.hidden)&&void 0!==n&&n,parent:null!==(i=r.parent)&&void 0!==i?i:null}))}get globalDisabled(){return this.globalDisabled_}bindClassModifiers(t){d(this.globalDisabled_,D(t,"disabled")),p(this,"hidden",D(t,"hidden"))}bindDisabled(t){d(this.globalDisabled_,e=>{t.disabled=e})}bindTabIndex(t){d(this.globalDisabled_,e=>{t.tabIndex=e?-1:0})}handleDispose(t){this.value("disposed").emitter.on("change",e=>{e&&t()})}getGlobalDisabled_(){const t=this.get("parent");return!!t&&t.globalDisabled.rawValue||this.get("disabled")}updateGlobalDisabled_(){this.setGlobalDisabled_(this.getGlobalDisabled_())}onDisabledChange_(){this.updateGlobalDisabled_()}onParentGlobalDisabledChange_(){this.updateGlobalDisabled_()}onParentChange_(t){var e;const n=t.previousRawValue;null==n||n.globalDisabled.emitter.off("change",this.onParentGlobalDisabledChange_),null===(e=this.get("parent"))||void 0===e||e.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_),this.updateGlobalDisabled_()}}function B(){return["veryfirst","first","last","verylast"]}const N=c(""),F={veryfirst:"vfst",first:"fst",last:"lst",verylast:"vlst"};class z{constructor(t){this.parent_=null,this.blade=t.blade,this.view=t.view,this.viewProps=t.viewProps;const e=this.view.element;this.blade.value("positions").emitter.on("change",()=>{B().forEach(t=>{e.classList.remove(N(void 0,F[t]))}),this.blade.get("positions").forEach(t=>{e.classList.add(N(void 0,F[t]))})}),this.viewProps.handleDispose(()=>{P(e)})}get parent(){return this.parent_}set parent(t){this.parent_=t,"parent"in this.viewProps.valMap_?this.viewProps.set("parent",this.parent_?this.parent_.viewProps:null):O({key:"parent",target:R.name,place:"BladeController.parent"})}}const V="http://www.w3.org/2000/svg";function G(t){t.offsetHeight}function H(t,e){const n=t.style.transition;t.style.transition="none",e(),t.style.transition=n}function W(t){return void 0!==t.ontouchstart}function U(t){for(;t.childNodes.length>0;)t.removeChild(t.childNodes[0])}function Z(t){return t.relatedTarget?t.relatedTarget:"explicitOriginalTarget"in t?t.explicitOriginalTarget:null}const Y=c("lbl");function X(t,e){const n=t.createDocumentFragment();return e.split("\n").map(e=>t.createTextNode(e)).forEach((e,i)=>{i>0&&n.appendChild(t.createElement("br")),n.appendChild(e)}),n}class q{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Y()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Y("l")),p(e.props,"label",e=>{r(e)?this.element.classList.add(Y(void 0,"nol")):(this.element.classList.remove(Y(void 0,"nol")),U(n),n.appendChild(X(t,e)))}),this.element.appendChild(n),this.labelElement=n;const i=t.createElement("div");i.classList.add(Y("v")),this.element.appendChild(i),this.valueElement=i}}class K extends z{constructor(t,e){const n=e.valueController.viewProps;super(Object.assign(Object.assign({},e),{view:new q(t,{props:e.props,viewProps:n}),viewProps:n})),this.props=e.props,this.valueController=e.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}}class Q extends z{constructor(t){super(t),this.value=t.value}}class J extends C{constructor(t){super(t)}static create(t){const e={completed:!0,expanded:t,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null},n=C.createCore(e);return new J(n)}get styleExpanded(){var t;return null!==(t=this.get("temporaryExpanded"))&&void 0!==t?t:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";const t=this.get("expandedHeight");return this.get("shouldFixHeight")&&!r(t)?`${t}px`:"auto"}bindExpandedClass(t,e){const n=()=>{this.styleExpanded?t.classList.add(e):t.classList.remove(e)};p(this,"expanded",n),p(this,"temporaryExpanded",n)}cleanUpTransition(){this.set("shouldFixHeight",!1),this.set("expandedHeight",null),this.set("completed",!0)}}function $(t){return J.create(t)}function tt(t,e){let n=0;return H(e,()=>{t.set("expandedHeight",null),t.set("temporaryExpanded",!0),G(e),n=e.clientHeight,t.set("temporaryExpanded",null),G(e)}),n}function et(t,e){e.style.height=t.styleHeight}function nt(t,e){t.value("expanded").emitter.on("beforechange",()=>{t.set("completed",!1),r(t.get("expandedHeight"))&&t.set("expandedHeight",tt(t,e)),t.set("shouldFixHeight",!0),G(e)}),t.emitter.on("change",()=>{et(t,e)}),et(t,e),e.addEventListener("transitionend",e=>{"height"===e.propertyName&&t.cleanUpTransition()})}class it{constructor(t,e){const n=c(e.viewName);this.element=t.createElement("div"),this.element.classList.add(n()),e.viewProps.bindClassModifiers(this.element)}}class rt extends Q{constructor(t,e){const n=e.valueController.viewProps;super(Object.assign(Object.assign({},e),{value:e.valueController.value,view:new q(t,{props:e.props,viewProps:n}),viewProps:n})),this.props=e.props,this.valueController=e.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}}class ot{constructor(){this.disabled=!1,this.emitter=new s}dispose(){}tick(){this.disabled||this.emitter.emit("tick",{sender:this})}}class at{constructor(t,e){this.disabled_=!1,this.timerId_=null,this.onTick_=this.onTick_.bind(this),this.doc_=t,this.emitter=new s,this.interval_=e,this.setTimer_()}get disabled(){return this.disabled_}set disabled(t){this.disabled_=t,this.disabled_?this.clearTimer_():this.setTimer_()}dispose(){this.clearTimer_()}clearTimer_(){if(null===this.timerId_)return;const t=this.doc_.defaultView;t&&t.clearInterval(this.timerId_),this.timerId_=null}setTimer_(){if(this.clearTimer_(),this.interval_<=0)return;const t=this.doc_.defaultView;t&&(this.timerId_=t.setInterval(this.onTick_,this.interval_))}onTick_(){this.disabled_||this.emitter.emit("tick",{sender:this})}}class st{constructor(t){this.constraints=t}constrain(t){return this.constraints.reduce((t,e)=>e.constrain(t),t)}}function lt(t,e){if(t instanceof e)return t;if(t instanceof st){const n=t.constraints.reduce((t,n)=>t||(n instanceof e?n:null),null);if(n)return n}return null}class ct{constructor(t){this.values=C.fromObject({max:t.max,min:t.min})}constrain(t){const e=this.values.get("max"),n=this.values.get("min");return Math.min(Math.max(t,n),e)}}class ut{constructor(t){this.values=C.fromObject({max:t.max,min:t.min})}get maxValue(){return this.values.get("max")}get minValue(){return this.values.get("min")}constrain(t){const e=this.values.get("max"),n=this.values.get("min");let i=t;return r(n)||(i=Math.max(i,n)),r(e)||(i=Math.min(i,e)),i}}class ht{constructor(t,e=0){this.step=t,this.origin=e}constrain(t){const e=this.origin%this.step,n=Math.round((t-e)/this.step);return e+n*this.step}}const dt=c("pop");class pt{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(dt()),e.viewProps.bindClassModifiers(this.element),d(e.shows,g(this.element,dt(void 0,"v")))}}class ft{constructor(t,e){this.shows=_(!1),this.viewProps=e.viewProps,this.view=new pt(t,{shows:this.shows,viewProps:this.viewProps})}}const gt=c("txt");class mt{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(gt()),e.viewProps.bindClassModifiers(this.element),this.props_=e.props,this.props_.emitter.on("change",this.onChange_);const n=t.createElement("input");n.classList.add(gt("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,e.value.emitter.on("change",this.onChange_),this.value_=e.value,this.refresh()}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value_.rawValue)}onChange_(){this.refresh()}}class vt{constructor(t,e){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=e.parser,this.props=e.props,this.value=e.value,this.viewProps=e.viewProps,this.view=new mt(t,{props:e.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(t){const e=t.currentTarget.value,n=this.parser_(e);r(n)||(this.value.rawValue=n),this.view.refresh()}}function yt(t){return"false"!==t&&!!t}class bt{constructor(t){this.text=t}evaluate(){return Number(this.text)}toString(){return this.text}}const xt={"**":(t,e)=>Math.pow(t,e),"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"&":(t,e)=>t&e,"^":(t,e)=>t^e,"|":(t,e)=>t|e};class wt{constructor(t,e,n){this.left=e,this.operator=t,this.right=n}evaluate(){const t=xt[this.operator];if(!t)throw new Error(`unexpected binary operator: '${this.operator}`);return t(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}const _t={"+":t=>t,"-":t=>-t,"~":t=>~t};class Ct{constructor(t,e){this.operator=t,this.expression=e}evaluate(){const t=_t[this.operator];if(!t)throw new Error(`unexpected unary operator: '${this.operator}`);return t(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function At(t){return(e,n)=>{for(let i=0;i<t.length;i++){const r=t[i](e,n);if(""!==r)return r}return""}}function It(t,e){var n;const i=t.substr(e).match(/^\s+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function St(t,e){const n=t.substr(e,1);return n.match(/^[1-9]$/)?n:""}function Mt(t,e){var n;const i=t.substr(e).match(/^[0-9]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function kt(t,e){const n=Mt(t,e);if(""!==n)return n;const i=t.substr(e,1);if(e+=1,"-"!==i&&"+"!==i)return"";const r=Mt(t,e);return""===r?"":i+r}function Et(t,e){const n=t.substr(e,1);if(e+=1,"e"!==n.toLowerCase())return"";const i=kt(t,e);return""===i?"":n+i}function Tt(t,e){const n=t.substr(e,1);if("0"===n)return n;const i=St(t,e);return e+=i.length,""===i?"":i+Mt(t,e)}function Ot(t,e){const n=Tt(t,e);if(e+=n.length,""===n)return"";const i=t.substr(e,1);if(e+=i.length,"."!==i)return"";const r=Mt(t,e);return e+=r.length,n+i+r+Et(t,e)}function Pt(t,e){const n=t.substr(e,1);if(e+=n.length,"."!==n)return"";const i=Mt(t,e);return e+=i.length,""===i?"":n+i+Et(t,e)}function jt(t,e){const n=Tt(t,e);return e+=n.length,""===n?"":n+Et(t,e)}const Lt=At([Ot,Pt,jt]);function Dt(t,e){var n;const i=t.substr(e).match(/^[01]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Rt(t,e){const n=t.substr(e,2);if(e+=n.length,"0b"!==n.toLowerCase())return"";const i=Dt(t,e);return""===i?"":n+i}function Bt(t,e){var n;const i=t.substr(e).match(/^[0-7]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Nt(t,e){const n=t.substr(e,2);if(e+=n.length,"0o"!==n.toLowerCase())return"";const i=Bt(t,e);return""===i?"":n+i}function Ft(t,e){var n;const i=t.substr(e).match(/^[0-9a-f]+/i);return null!==(n=i&&i[0])&&void 0!==n?n:""}function zt(t,e){const n=t.substr(e,2);if(e+=n.length,"0x"!==n.toLowerCase())return"";const i=Ft(t,e);return""===i?"":n+i}const Vt=At([Rt,Nt,zt]),Gt=At([Vt,Lt]);function Ht(t,e){const n=Gt(t,e);return e+=n.length,""===n?null:{evaluable:new bt(n),cursor:e}}function Wt(t,e){const n=t.substr(e,1);if(e+=n.length,"("!==n)return null;const i=Kt(t,e);if(!i)return null;e=i.cursor,e+=It(t,e).length;const r=t.substr(e,1);return e+=r.length,")"!==r?null:{evaluable:i.evaluable,cursor:e}}function Ut(t,e){var n;return null!==(n=Ht(t,e))&&void 0!==n?n:Wt(t,e)}function Zt(t,e){const n=Ut(t,e);if(n)return n;const i=t.substr(e,1);if(e+=i.length,"+"!==i&&"-"!==i&&"~"!==i)return null;const r=Zt(t,e);return r?(e=r.cursor,{cursor:e,evaluable:new Ct(i,r.evaluable)}):null}function Yt(t,e,n){n+=It(e,n).length;const i=t.filter(t=>e.startsWith(t,n))[0];return i?(n+=i.length,n+=It(e,n).length,{cursor:n,operator:i}):null}function Xt(t,e){return(n,i)=>{const r=t(n,i);if(!r)return null;i=r.cursor;let o=r.evaluable;for(;;){const r=Yt(e,n,i);if(!r)break;i=r.cursor;const a=t(n,i);if(!a)return null;i=a.cursor,o=new wt(r.operator,o,a.evaluable)}return o?{cursor:i,evaluable:o}:null}}const qt=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((t,e)=>Xt(t,e),Zt);function Kt(t,e){return e+=It(t,e).length,qt(t,e)}function Qt(t){const e=Kt(t,0);return e&&e.cursor+It(t,e.cursor).length===t.length?e.evaluable:null}function Jt(t){var e;const n=Qt(t);return null!==(e=null==n?void 0:n.evaluate())&&void 0!==e?e:null}function $t(t){if("number"==typeof t)return t;if("string"==typeof t){const e=Jt(t);if(!r(e))return e}return 0}function te(t){return e=>e.toFixed(Math.max(Math.min(t,20),0))}te(0);function ee(t){return String(t)}function ne(t,e){for(;t.length<e;)t.push(void 0)}function ie(t){const e=[];return ne(e,t),_(e)}function re(t){const e=t.indexOf(void 0);return e<0?t:t.slice(0,e)}function oe(t,e){const n=[...re(t),e];return n.length>t.length?n.splice(0,n.length-t.length):ne(n,t.length),n}function ae({primary:t,secondary:e,forward:n,backward:i}){let r=!1;function o(t){r||(r=!0,t(),r=!1)}t.emitter.on("change",i=>{o(()=>{e.setRawValue(n(t,e),i.options)})}),e.emitter.on("change",r=>{o(()=>{t.setRawValue(i(t,e),r.options)}),o(()=>{e.setRawValue(n(t,e),r.options)})}),o(()=>{e.setRawValue(n(t,e),{forceEmit:!1,last:!0})})}function se(t,e){const n=t*(e.altKey?.1:1)*(e.shiftKey?10:1);return e.upKey?+n:e.downKey?-n:0}function le(t){return{altKey:t.altKey,downKey:"ArrowDown"===t.key,shiftKey:t.shiftKey,upKey:"ArrowUp"===t.key}}function ce(t){return{altKey:t.altKey,downKey:"ArrowLeft"===t.key,shiftKey:t.shiftKey,upKey:"ArrowRight"===t.key}}function ue(t){return"ArrowUp"===t||"ArrowDown"===t}function he(t){return ue(t)||"ArrowLeft"===t||"ArrowRight"===t}function de(t,e){var n,i;const r=e.ownerDocument.defaultView,o=e.getBoundingClientRect();return{x:t.pageX-((null!==(n=r&&r.scrollX)&&void 0!==n?n:0)+o.left),y:t.pageY-((null!==(i=r&&r.scrollY)&&void 0!==i?i:0)+o.top)}}class pe{constructor(t){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=t,this.emitter=new s,t.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),t.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),t.addEventListener("touchend",this.onTouchEnd_),t.addEventListener("mousedown",this.onMouseDown_)}computePosition_(t){const e=this.elem_.getBoundingClientRect();return{bounds:{width:e.width,height:e.height},point:t?{x:t.x,y:t.y}:null}}onMouseDown_(t){var e;t.preventDefault(),null===(e=t.currentTarget)||void 0===e||e.focus();const n=this.elem_.ownerDocument;n.addEventListener("mousemove",this.onDocumentMouseMove_),n.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(de(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseMove_(t){this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(de(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseUp_(t){const e=this.elem_.ownerDocument;e.removeEventListener("mousemove",this.onDocumentMouseMove_),e.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(de(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onTouchStart_(t){t.preventDefault();const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchMove_(t){const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchEnd_(t){var e;const n=null!==(e=t.targetTouches.item(0))&&void 0!==e?e:this.lastTouch_,i=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(n?{x:n.clientX-i.left,y:n.clientY-i.top}:void 0),sender:this,shiftKey:t.shiftKey})}}function fe(t,e,n,i,r){const o=(t-e)/(n-e);return i+o*(r-i)}function ge(t){return String(t.toFixed(10)).split(".")[1].replace(/0+$/,"").length}function me(t,e,n){return Math.min(Math.max(t,e),n)}const ve=c("txt");class ye{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.props_=e.props,this.props_.emitter.on("change",this.onChange_),this.element=t.createElement("div"),this.element.classList.add(ve(),ve(void 0,"num")),e.arrayPosition&&this.element.classList.add(ve(void 0,e.arrayPosition)),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("input");n.classList.add(ve("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=e.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(ve()),this.inputElement.classList.add(ve("i"));const i=t.createElement("div");i.classList.add(ve("k")),this.element.appendChild(i),this.knobElement=i;const r=t.createElementNS(V,"svg");r.classList.add(ve("g")),this.knobElement.appendChild(r);const o=t.createElementNS(V,"path");o.classList.add(ve("gb")),r.appendChild(o),this.guideBodyElem_=o;const a=t.createElementNS(V,"path");a.classList.add(ve("gh")),r.appendChild(a),this.guideHeadElem_=a;const s=t.createElement("div");s.classList.add(c("tt")()),this.knobElement.appendChild(s),this.tooltipElem_=s,e.value.emitter.on("change",this.onChange_),this.value=e.value,this.refresh()}onDraggingChange_(t){if(null===t.rawValue)return void this.element.classList.remove(ve(void 0,"drg"));this.element.classList.add(ve(void 0,"drg"));const e=t.rawValue/this.props_.get("draggingScale"),n=e+(e>0?-1:e<0?1:0),i=me(-n,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",[`M ${n+i},0 L${n},4 L${n+i},8`,`M ${e},-1 L${e},9`].join(" ")),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${e},4`);const r=this.props_.get("formatter");this.tooltipElem_.textContent=r(this.value.rawValue),this.tooltipElem_.style.left=`${e}px`}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value.rawValue)}onChange_(){this.refresh()}}class be{constructor(t,e){var n;this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.parser_=e.parser,this.props=e.props,this.sliderProps_=null!==(n=e.sliderProps)&&void 0!==n?n:null,this.value=e.value,this.viewProps=e.viewProps,this.dragging_=_(null),this.view=new ye(t,{arrayPosition:e.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);const i=new pe(this.view.knobElement);i.emitter.on("down",this.onPointerDown_),i.emitter.on("move",this.onPointerMove_),i.emitter.on("up",this.onPointerUp_)}constrainValue_(t){var e,n;const i=null===(e=this.sliderProps_)||void 0===e?void 0:e.get("minValue"),r=null===(n=this.sliderProps_)||void 0===n?void 0:n.get("maxValue");let o=t;return void 0!==i&&(o=Math.max(o,i)),void 0!==r&&(o=Math.min(o,r)),o}onInputChange_(t){const e=t.currentTarget.value,n=this.parser_(e);r(n)||(this.value.rawValue=this.constrainValue_(n)),this.view.refresh()}onInputKeyDown_(t){const e=se(this.baseStep_,le(t));0!==e&&this.value.setRawValue(this.constrainValue_(this.value.rawValue+e),{forceEmit:!1,last:!1})}onInputKeyUp_(t){0!==se(this.baseStep_,le(t))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(t){if(!t.point)return null;const e=t.point.x-t.bounds.width/2;return this.constrainValue_(this.originRawValue_+e*this.props.get("draggingScale"))}onPointerMove_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_)}onPointerUp_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null)}}function xe(t,e){t.write(e)}function we(t){const e=t?lt(t,ht):null;return e?e.step:null}function _e(t,e){const n=t&&lt(t,ht);return n?ge(n.step):Math.max(ge(e),2)}function Ce(t){const e=we(t);return null!=e?e:1}function Ae(t,e){var n;const i=t&&lt(t,ht),r=Math.abs(null!==(n=null==i?void 0:i.step)&&void 0!==n?n:e);return 0===r?.1:Math.pow(10,Math.floor(Math.log10(r))-1)}function Ie(t){return[t[0],t[1],t[2]]}function Se(t,e){const n=te("float"===e?2:0);return`rgb(${Ie(t.getComponents("rgb",e)).map(t=>n(t)).join(", ")})`}function Me(t){return e=>Se(e,t)}function ke(t,e){const n=te(2),i=te("float"===e?2:0);return`rgba(${t.getComponents("rgb",e).map((t,e)=>(3===e?n:i)(t)).join(", ")})`}function Ee(t){return e=>ke(e,t)}function Te(t,e){const n=te("float"===e?2:0),i=["r","g","b"];return`{${Ie(t.getComponents("rgb",e)).map((t,e)=>`${i[e]}: ${n(t)}`).join(", ")}}`}function Oe(t){return e=>Te(e,t)}function Pe(t,e){const n=te(2),i=te("float"===e?2:0),r=["r","g","b","a"];return`{${t.getComponents("rgb",e).map((t,e)=>{const o=3===e?n:i;return`${r[e]}: ${o(t)}`}).join(", ")}}`}function je(t){return e=>Pe(e,t)}["int","float"].reduce((t,e)=>[...t,{format:{alpha:!1,mode:"rgb",notation:"func",type:e},stringifier:Me(e)},{format:{alpha:!0,mode:"rgb",notation:"func",type:e},stringifier:Ee(e)},{format:{alpha:!1,mode:"rgb",notation:"object",type:e},stringifier:Oe(e)},{format:{alpha:!0,mode:"rgb",notation:"object",type:e},stringifier:je(e)}],[]);class Le{constructor(t){this.components=t.components,this.asm_=t.assembly}constrain(t){const e=this.asm_.toComponents(t).map((t,e)=>{var n,i;return null!==(i=null===(n=this.components[e])||void 0===n?void 0:n.constrain(t))&&void 0!==i?i:t});return this.asm_.fromComponents(e)}}const De=c("pndtxt");class Re{constructor(t,e){this.textViews=e.textViews,this.element=t.createElement("div"),this.element.classList.add(De()),this.textViews.forEach(e=>{const n=t.createElement("div");n.classList.add(De("a")),n.appendChild(e.element),this.element.appendChild(n)})}}function Be(t,e,n){return new be(t,{arrayPosition:0===n?"fst":n===e.axes.length-1?"lst":"mid",baseStep:e.axes[n].baseStep,parser:e.parser,props:e.axes[n].textProps,value:_(0,{constraint:e.axes[n].constraint}),viewProps:e.viewProps})}class Ne{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.acs_=e.axes.map((n,i)=>Be(t,e,i)),this.acs_.forEach((t,n)=>{ae({primary:this.value,secondary:t.value,forward:t=>e.assembly.toComponents(t.rawValue)[n],backward:(t,i)=>{const r=e.assembly.toComponents(t.rawValue);return r[n]=i.rawValue,e.assembly.fromComponents(r)}})}),this.view=new Re(t,{textViews:this.acs_.map(t=>t.view)})}}function Fe(t,e){return"step"in t&&!r(t.step)?new ht(t.step,e):null}function ze(t){return r(t.max)||r(t.min)?r(t.max)&&r(t.min)?null:new ut({max:t.max,min:t.min}):new ct({max:t.max,min:t.min})}const Ve={monitor:{defaultInterval:200,defaultLineCount:3}},Ge=c("grl");class He{constructor(t,e){this.onCursorChange_=this.onCursorChange_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.element=t.createElement("div"),this.element.classList.add(Ge()),e.viewProps.bindClassModifiers(this.element),this.formatter_=e.formatter,this.props_=e.props,this.cursor_=e.cursor,this.cursor_.emitter.on("change",this.onCursorChange_);const n=t.createElementNS(V,"svg");n.classList.add(Ge("g")),n.style.height=`calc(var(--bld-us) * ${e.lineCount})`,this.element.appendChild(n),this.svgElem_=n;const i=t.createElementNS(V,"polyline");this.svgElem_.appendChild(i),this.lineElem_=i;const r=t.createElement("div");r.classList.add(Ge("t"),c("tt")()),this.element.appendChild(r),this.tooltipElem_=r,e.value.emitter.on("change",this.onValueUpdate_),this.value=e.value,this.update_()}get graphElement(){return this.svgElem_}update_(){const t=this.svgElem_.getBoundingClientRect(),e=this.value.rawValue.length-1,n=this.props_.get("minValue"),i=this.props_.get("maxValue"),r=[];this.value.rawValue.forEach((o,a)=>{if(void 0===o)return;const s=fe(a,0,e,0,t.width),l=fe(o,n,i,t.height,0);r.push([s,l].join(","))}),this.lineElem_.setAttributeNS(null,"points",r.join(" "));const o=this.tooltipElem_,a=this.value.rawValue[this.cursor_.rawValue];if(void 0===a)return void o.classList.remove(Ge("t","a"));const s=fe(this.cursor_.rawValue,0,e,0,t.width),l=fe(a,n,i,t.height,0);o.style.left=`${s}px`,o.style.top=`${l}px`,o.textContent=`${this.formatter_(a)}`,o.classList.contains(Ge("t","a"))||(o.classList.add(Ge("t","a"),Ge("t","in")),G(o),o.classList.remove(Ge("t","in")))}onValueUpdate_(){this.update_()}onCursorChange_(){this.update_()}}class We{constructor(t,e){if(this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphPointerDown_=this.onGraphPointerDown_.bind(this),this.onGraphPointerMove_=this.onGraphPointerMove_.bind(this),this.onGraphPointerUp_=this.onGraphPointerUp_.bind(this),this.props_=e.props,this.value=e.value,this.viewProps=e.viewProps,this.cursor_=_(-1),this.view=new He(t,{cursor:this.cursor_,formatter:e.formatter,lineCount:e.lineCount,props:this.props_,value:this.value,viewProps:this.viewProps}),W(t)){const t=new pe(this.view.element);t.emitter.on("down",this.onGraphPointerDown_),t.emitter.on("move",this.onGraphPointerMove_),t.emitter.on("up",this.onGraphPointerUp_)}else this.view.element.addEventListener("mousemove",this.onGraphMouseMove_),this.view.element.addEventListener("mouseleave",this.onGraphMouseLeave_)}onGraphMouseLeave_(){this.cursor_.rawValue=-1}onGraphMouseMove_(t){const e=this.view.element.getBoundingClientRect();this.cursor_.rawValue=Math.floor(fe(t.offsetX,0,e.width,0,this.value.rawValue.length))}onGraphPointerDown_(t){this.onGraphPointerMove_(t)}onGraphPointerMove_(t){t.data.point?this.cursor_.rawValue=Math.floor(fe(t.data.point.x,0,t.data.bounds.width,0,this.value.rawValue.length)):this.cursor_.rawValue=-1}onGraphPointerUp_(){this.cursor_.rawValue=-1}}class Ue{constructor(t){this.controller_=t}get disabled(){return this.controller_.viewProps.get("disabled")}set disabled(t){this.controller_.viewProps.set("disabled",t)}get title(){var t;return null!==(t=this.controller_.props.get("title"))&&void 0!==t?t:""}set title(t){this.controller_.props.set("title",t)}on(t,e){const i=e.bind(this);return this.controller_.emitter.on(t,()=>{i(new n(this))}),this}}class Ze extends n{constructor(t,e,n){super(t),this.cell=e,this.index=n}}class Ye extends e{constructor(t){super(t),this.cellToApiMap_=new Map,this.emitter_=new s;const e=this.controller_.valueController;e.cellControllers.forEach((t,n)=>{const i=new Ue(t);this.cellToApiMap_.set(t,i),t.emitter.on("click",()=>{const t=n%e.size[0],r=Math.floor(n/e.size[0]);this.emitter_.emit("click",{event:new Ze(this,i,[t,r])})})})}cell(t,e){const n=this.controller_.valueController,i=n.cellControllers[e*n.size[0]+t];return this.cellToApiMap_.get(i)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}class Xe{constructor(t,e){this.size=e.size;const[n,i]=this.size,r=[];for(let o=0;o<i;o++)for(let i=0;i<n;i++){const n=new b(t,{props:C.fromObject(Object.assign({},e.cellConfig(i,o))),viewProps:R.create()});r.push(n)}this.cellCs_=r,this.viewProps=R.create(),this.viewProps.handleDispose(()=>{this.cellCs_.forEach(t=>{t.viewProps.set("disposed",!0)})}),this.view=new it(t,{viewProps:this.viewProps,viewName:"btngrid"}),this.view.element.style.gridTemplateColumns=`repeat(${n}, 1fr)`,this.cellCs_.forEach(t=>{this.view.element.appendChild(t.view.element)})}get cellControllers(){return this.cellCs_}}const qe={id:"buttongrid",type:"blade",css:'.tp-cbzgv,.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-radv_b:hover,.tp-rslv_k:hover,.tp-cbzv_b:hover{background-color:var(--btn-bg-h)}.tp-radv_b:focus,.tp-rslv_k:focus,.tp-cbzv_b:focus{background-color:var(--btn-bg-f)}.tp-radv_b:active,.tp-rslv_k:active,.tp-cbzv_b:active{background-color:var(--btn-bg-a)}.tp-radv_b:disabled,.tp-rslv_k:disabled,.tp-cbzv_b:disabled{opacity:.5}.tp-cbzgv{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-cbzgv:hover{background-color:var(--in-bg-h)}.tp-cbzgv:focus{background-color:var(--in-bg-f)}.tp-cbzgv:active{background-color:var(--in-bg-a)}.tp-cbzgv:disabled{opacity:.5}.tp-btngridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-btngridv.tp-v-disabled{opacity:.5}.tp-btngridv .tp-btnv_b:disabled{opacity:1}.tp-btngridv .tp-btnv_b:disabled .tp-btnv_t{opacity:.5}.tp-btngridv .tp-btnv_b{border-radius:0}.tp-cbzv{position:relative}.tp-cbzv_h{display:flex}.tp-cbzv_b{margin-right:4px;position:relative;width:var(--bld-us)}.tp-cbzv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-cbzv_b svg path{stroke:var(--bs-bg);stroke-width:2}.tp-cbzv_t{flex:1}.tp-cbzv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-cbzv.tp-cbzv-expanded .tp-cbzv_p{margin-top:var(--bld-s);opacity:1}.tp-cbzv.tp-cbzv-cpl .tp-cbzv_p{overflow:visible}.tp-cbzv .tp-popv{left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-cbzpv_t{margin-top:var(--bld-s)}.tp-cbzgv{height:auto;overflow:hidden;position:relative}.tp-cbzgv.tp-v-disabled{opacity:.5}.tp-cbzgv_p{left:16px;position:absolute;right:16px;top:0}.tp-cbzgv_g{cursor:pointer;display:block;height:calc(var(--bld-us)*5);width:100%}.tp-cbzgv_u{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_l{fill:rgba(0,0,0,0);stroke:var(--in-fg)}.tp-cbzgv_v{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_h{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;pointer-events:none;position:absolute;width:4px}.tp-cbzgv:focus .tp-cbzgv_h-sel{background-color:var(--in-fg);border-width:0}.tp-cbzprvv{cursor:pointer;height:4px;padding:4px 0;position:relative}.tp-cbzprvv_g{display:block;height:100%;overflow:visible;width:100%}.tp-cbzprvv_t{opacity:.5;stroke:var(--mo-fg)}.tp-cbzprvv_m{background-color:var(--mo-fg);border-radius:50%;height:4px;margin-left:-2px;margin-top:-2px;opacity:0;position:absolute;top:50%;transition:opacity .2s ease-out;width:4px}.tp-cbzprvv_m.tp-cbzprvv_m-a{opacity:1}.tp-fpsv{position:relative}.tp-fpsv_l{bottom:4px;color:var(--mo-fg);line-height:1;right:4px;pointer-events:none;position:absolute}.tp-fpsv_u{margin-left:.2em;opacity:.7}.tp-rslv{cursor:pointer;padding-left:8px;padding-right:8px}.tp-rslv.tp-v-disabled{opacity:.5}.tp-rslv_t{height:calc(var(--bld-us));position:relative}.tp-rslv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:-4px;right:-4px}.tp-rslv_b{bottom:0;top:0;position:absolute}.tp-rslv_b::before{background-color:var(--in-fg);content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}.tp-rslv_k{height:calc(var(--bld-us) - 8px);margin-top:calc((var(--bld-us) - 8px)/-2);position:absolute;top:50%;width:8px}.tp-rslv_k.tp-rslv_k-min{margin-left:-8px}.tp-rslv_k.tp-rslv_k-max{margin-left:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-min{border-bottom-right-radius:0;border-top-right-radius:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-max{border-bottom-left-radius:0;border-top-left-radius:0}.tp-rsltxtv{display:flex}.tp-rsltxtv_s{flex:1}.tp-rsltxtv_t{flex:1;margin-left:4px}.tp-radv_l{display:block;position:relative}.tp-radv_i{left:0;opacity:0;position:absolute;top:0}.tp-radv_b{opacity:.5}.tp-radv_i:hover+.tp-radv_b{background-color:var(--btn-bg-h)}.tp-radv_i:focus+.tp-radv_b{background-color:var(--btn-bg-f)}.tp-radv_i:active+.tp-radv_b{background-color:var(--btn-bg-a)}.tp-radv_i:checked+.tp-radv_b{opacity:1}.tp-radv_t{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0}.tp-radv_i:disabled+.tp-radv_b>.tp-radv_t{opacity:.5}.tp-radgridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-radgridv.tp-v-disabled{opacity:.5}.tp-radgridv .tp-radv_b{border-radius:0}',accept(t){const e=E,n=T(t,{cells:e.required.function,size:e.required.array(e.required.number),view:e.required.constant("buttongrid"),label:e.optional.string});return n?{params:n}:null},controller(t){return new K(t.document,{blade:t.blade,props:C.fromObject({label:t.params.label}),valueController:new Xe(t.document,{cellConfig:t.params.cells,size:t.params.size})})},api(t){return t.controller instanceof K&&t.controller.valueController instanceof Xe?new Ye(t.controller):null}};class Ke extends e{get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get value(){return this.controller_.valueController.value.rawValue}set value(t){this.controller_.valueController.value.rawValue=t}on(t,e){const n=e.bind(this);return this.controller_.valueController.value.emitter.on(t,t=>{n(new i(this,t.rawValue,void 0,t.options.last))}),this}}function Qe(t,e,n){return t*(1-n)+e*n}const Je=20,$e=.001,tn=100;function en(t,e){let n=.25,i=.5,r=-1;for(let o=0;o<Je;o++){const[o,a]=t.curve(i);if(i+=n*(o<e?1:-1),r=a,n*=.5,Math.abs(e-o)<$e)break}return r}class nn{constructor(t=0,e=0,n=1,i=1){this.cache_=[],this.comps_=[t,e,n,i]}get x1(){return this.comps_[0]}get y1(){return this.comps_[1]}get x2(){return this.comps_[2]}get y2(){return this.comps_[3]}static isObject(t){return!(r(t)||!Array.isArray(t))&&("number"==typeof t[0]&&"number"==typeof t[1]&&"number"==typeof t[2]&&"number"==typeof t[3])}static equals(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2}curve(t){const e=Qe(0,this.x1,t),n=Qe(0,this.y1,t),i=Qe(this.x1,this.x2,t),r=Qe(this.y1,this.y2,t),o=Qe(this.x2,1,t),a=Qe(this.y2,1,t),s=Qe(e,i,t),l=Qe(n,r,t),c=Qe(i,o,t),u=Qe(r,a,t);return[Qe(s,c,t),Qe(l,u,t)]}y(t){if(0===this.cache_.length){const t=[];for(let e=0;e<tn;e++)t.push(en(this,fe(e,0,tn-1,0,1)));this.cache_=t}return this.cache_[Math.round(fe(me(t,0,1),0,1,0,tn-1))]}toObject(){return[this.comps_[0],this.comps_[1],this.comps_[2],this.comps_[3]]}}const rn={toComponents:t=>t.toObject(),fromComponents:t=>new nn(...t)};function on(t){const e=te(2);return`cubic-bezier(${t.toObject().map(t=>e(t)).join(", ")})`}const an=[0,.5,.5,1];function sn(t){const e=t.match(/^cubic-bezier\s*\(\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)\s*,\s*([0-9.]+)\s*\)$/);if(!e)return new nn(...an);const n=[e[1],e[2],e[3],e[4]].reduce((t,e)=>{if(!t)return null;const n=Number(e);return isNaN(n)?null:[...t,n]},[]);return new nn(...null!=n?n:an)}const ln=c("cbz");class cn{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(ln()),e.viewProps.bindClassModifiers(this.element),e.foldable.bindExpandedClass(this.element,ln(void 0,"expanded")),p(e.foldable,"completed",g(this.element,ln(void 0,"cpl")));const n=t.createElement("div");n.classList.add(ln("h")),this.element.appendChild(n);const i=t.createElement("button");i.classList.add(ln("b")),e.viewProps.bindDisabled(i);const r=t.createElementNS(V,"svg");r.innerHTML='<path d="M2 13C8 13 8 3 14 3"/>',i.appendChild(r),n.appendChild(i),this.buttonElement=i;const o=t.createElement("div");if(o.classList.add(ln("t")),n.appendChild(o),this.textElement=o,"inline"===e.pickerLayout){const e=t.createElement("div");e.classList.add(ln("p")),this.element.appendChild(e),this.pickerElement=e}else this.pickerElement=null}}const un=c("cbzp");class hn{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(un()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(un("g")),this.element.appendChild(n),this.graphElement=n;const i=t.createElement("div");i.classList.add(un("t")),this.element.appendChild(i),this.textElement=i}}function dn(t,e){const n=new MutationObserver(t=>{for(const i of t)"childList"===i.type&&i.addedNodes.forEach(t=>{!t.contains(t)||(e(),n.disconnect())})}),i=t.ownerDocument;n.observe(i.body,{attributes:!0,childList:!0,subtree:!0})}const pn=c("cbzg");function fn(t,e){return n=>e(t(n))}class gn{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(pn()),e.viewProps.bindClassModifiers(this.element),e.viewProps.bindTabIndex(this.element);const n=t.createElement("div");n.classList.add(pn("p")),this.element.appendChild(n),this.previewElement=n;const i=t.createElementNS(V,"svg");i.classList.add(pn("g")),this.element.appendChild(i),this.svgElem_=i;const r=t.createElementNS(V,"path");r.classList.add(pn("u")),this.svgElem_.appendChild(r),this.guideElem_=r;const o=t.createElementNS(V,"polyline");o.classList.add(pn("l")),this.svgElem_.appendChild(o),this.lineElem_=o,this.handleElems_=[t.createElement("div"),t.createElement("div")],this.handleElems_.forEach(t=>{t.classList.add(pn("h")),this.element.appendChild(t)}),this.vectorElems_=[t.createElementNS(V,"line"),t.createElementNS(V,"line")],this.vectorElems_.forEach(t=>{t.classList.add(pn("v")),this.svgElem_.appendChild(t)}),this.value_=e.value,this.value_.emitter.on("change",this.onValueChange_.bind(this)),this.sel_=e.selection,this.handleElems_.forEach((t,e)=>{d(this.sel_,fn(t=>t===e,g(t,pn("h","sel"))))}),dn(this.element,()=>{this.refresh()})}getVertMargin_(t){return.25*t}valueToPosition(t,e){const n=this.element.getBoundingClientRect(),i=n.width,r=n.height,o=this.getVertMargin_(r);return{x:fe(t,0,1,0,i),y:fe(e,0,1,r-o,o)}}positionToValue(t,e){const n=this.element.getBoundingClientRect(),i=n.width,r=n.height,o=this.getVertMargin_(r);return{x:me(fe(t,0,i,0,1),0,1),y:fe(e,r-o,o,0,1)}}refresh(){this.guideElem_.setAttributeNS(null,"d",[0,1].map(t=>{const e=this.valueToPosition(0,t),n=this.valueToPosition(1,t);return[`M ${e.x},${e.y}`,`L ${n.x},${n.y}`].join(" ")}).join(" "));const t=this.value_.rawValue,e=[];let n=0;for(;;){const i=this.valueToPosition(...t.curve(n));if(e.push([i.x,i.y].join(",")),n>=1)break;n=Math.min(n+.05,1)}this.lineElem_.setAttributeNS(null,"points",e.join(" "));const i=t.toObject();[0,1].forEach(t=>{const e=this.valueToPosition(t,t),n=this.valueToPosition(i[2*t],i[2*t+1]),r=this.vectorElems_[t];r.setAttributeNS(null,"x1",String(e.x)),r.setAttributeNS(null,"y1",String(e.y)),r.setAttributeNS(null,"x2",String(n.x)),r.setAttributeNS(null,"y2",String(n.y));const o=this.handleElems_[t];o.style.left=`${n.x}px`,o.style.top=`${n.y}px`})}onValueChange_(){this.refresh()}}const mn=24,vn=400,yn=1e3,bn=c("cbzprv");class xn{constructor(t,e){this.stopped_=!0,this.startTime_=-1,this.onDispose_=this.onDispose_.bind(this),this.onTimer_=this.onTimer_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(bn()),e.viewProps.bindClassModifiers(this.element);const n=t.createElementNS(V,"svg");n.classList.add(bn("g")),this.element.appendChild(n),this.svgElem_=n;const i=t.createElementNS(V,"path");i.classList.add(bn("t")),this.svgElem_.appendChild(i),this.ticksElem_=i;const r=t.createElement("div");r.classList.add(bn("m")),this.element.appendChild(r),this.markerElem_=r,this.value_=e.value,this.value_.emitter.on("change",this.onValueChange_),e.viewProps.handleDispose(this.onDispose_),dn(this.element,()=>{this.refresh()})}play(){this.stop(),this.updateMarker_(0),this.markerElem_.classList.add(bn("m","a")),this.startTime_=(new Date).getTime()+vn,this.stopped_=!1,requestAnimationFrame(this.onTimer_)}stop(){this.stopped_=!0,this.markerElem_.classList.remove(bn("m","a"))}onDispose_(){this.stop()}updateMarker_(t){const e=this.value_.rawValue.y(me(t,0,1));this.markerElem_.style.left=`${100*e}%`}refresh(){const t=this.svgElem_.getBoundingClientRect(),e=t.width,n=t.height,i=[],r=this.value_.rawValue;for(let o=0;o<mn;o++){const t=fe(o,0,mn-1,0,1),a=fe(r.y(t),0,1,0,e);i.push(`M ${a},0 v${n}`)}this.ticksElem_.setAttributeNS(null,"d",i.join(" "))}onTimer_(){if(null===this.startTime_)return;const t=(new Date).getTime()-this.startTime_,e=t/yn;this.updateMarker_(e),t>yn+vn&&this.stop(),this.stopped_||requestAnimationFrame(this.onTimer_)}onValueChange_(){this.refresh(),this.play()}}function wn(t,e,n,i){const r=n-t,o=i-e;return Math.sqrt(r*r+o*o)}function _n(t,e,n,i){const r=wn(t,e,n,i),o=Math.atan2(i-e,n-t),a=Math.round(o/(Math.PI/4))*Math.PI/4;return{x:t+Math.cos(a)*r,y:e+Math.sin(a)*r}}class Cn{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.value=e.value,this.sel_=_(0),this.viewProps=e.viewProps,this.view=new gn(t,{selection:this.sel_,value:this.value,viewProps:this.viewProps}),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_),this.prevView_=new xn(t,{value:this.value,viewProps:this.viewProps}),this.prevView_.element.addEventListener("mousedown",t=>{t.stopImmediatePropagation(),t.preventDefault(),this.prevView_.play()}),this.view.previewElement.appendChild(this.prevView_.element);const n=new pe(this.view.element);n.emitter.on("down",this.onPointerDown_),n.emitter.on("move",this.onPointerMove_),n.emitter.on("up",this.onPointerUp_)}refresh(){this.view.refresh(),this.prevView_.refresh(),this.prevView_.play()}updateValue_(t,e,n){const i=this.sel_.rawValue,r=this.value.rawValue.toObject(),o=this.view.positionToValue(t.x,t.y),a=e?_n(i,i,o.x,o.y):o;r[2*i]=a.x,r[2*i+1]=a.y,this.value.setRawValue(new nn(...r),n)}onPointerDown_(t){const e=t.data;if(!e.point)return;const n=this.value.rawValue,i=this.view.valueToPosition(n.x1,n.y1),r=wn(e.point.x,e.point.y,i.x,i.y),o=this.view.valueToPosition(n.x2,n.y2),a=wn(e.point.x,e.point.y,o.x,o.y);this.sel_.rawValue=r<=a?0:1,this.updateValue_(e.point,t.shiftKey,{forceEmit:!1,last:!1})}onPointerMove_(t){const e=t.data;!e.point||this.updateValue_(e.point,t.shiftKey,{forceEmit:!1,last:!1})}onPointerUp_(t){const e=t.data;!e.point||this.updateValue_(e.point,t.shiftKey,{forceEmit:!0,last:!0})}onKeyDown_(t){he(t.key)&&t.preventDefault();const e=this.sel_.rawValue,n=this.value.rawValue.toObject();n[2*e]+=se(this.baseStep_,ce(t)),n[2*e+1]+=se(this.baseStep_,le(t)),this.value.setRawValue(new nn(...n),{forceEmit:!1,last:!1})}onKeyUp_(t){he(t.key)&&t.preventDefault();const e=se(this.baseStep_,ce(t)),n=se(this.baseStep_,le(t));0===e&&0===n||this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class An{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new hn(t,{viewProps:this.viewProps}),this.gc_=new Cn(t,{baseStep:e.axis.baseStep,value:this.value,viewProps:this.viewProps}),this.view.graphElement.appendChild(this.gc_.view.element);const n=Object.assign(Object.assign({},e.axis),{constraint:new ut({max:1,min:0})}),i=Object.assign(Object.assign({},e.axis),{constraint:void 0});this.tc_=new Ne(t,{assembly:rn,axes:[n,i,n,i],parser:Jt,value:this.value,viewProps:this.viewProps}),this.view.textElement.appendChild(this.tc_.view.element)}get allFocusableElements(){return[this.gc_.view.element,...this.tc_.view.textViews.map(t=>t.inputElement)]}refresh(){this.gc_.refresh()}}class In{constructor(t,e){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.foldable_=$(e.expanded),this.view=new cn(t,{foldable:this.foldable_,pickerLayout:e.pickerLayout,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("blur",this.onButtonBlur_),this.view.buttonElement.addEventListener("click",this.onButtonClick_),this.tc_=new vt(t,{parser:sn,props:C.fromObject({formatter:on}),value:this.value,viewProps:this.viewProps}),this.view.textElement.appendChild(this.tc_.view.element),this.popC_="popup"===e.pickerLayout?new ft(t,{viewProps:this.viewProps}):null;const n=new An(t,{axis:e.axis,value:this.value,viewProps:this.viewProps});n.allFocusableElements.forEach(t=>{t.addEventListener("blur",this.onPopupChildBlur_),t.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=n,this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(this.pickerC_.view.element),d(this.popC_.shows,t=>{t&&n.refresh()}),ae({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:t=>t.rawValue,backward:(t,e)=>e.rawValue})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),nt(this.foldable_,this.view.pickerElement))}onButtonBlur_(t){if(!this.popC_)return;const e=t.relatedTarget;(!e||!this.popC_.view.element.contains(e))&&(this.popC_.shows.rawValue=!1)}onButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.allFocusableElements[0].focus()}onPopupChildBlur_(t){if(!this.popC_)return;const e=this.popC_.view.element,n=Z(t);n&&e.contains(n)||n&&n===this.view.buttonElement&&!W(e.ownerDocument)||(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(t){!this.popC_||"Escape"===t.key&&(this.popC_.shows.rawValue=!1)}}function Sn(){return new Le({assembly:rn,components:[0,1,2,3].map(t=>t%2===0?new ut({min:0,max:1}):void 0)})}const Mn={id:"cubic-bezier",type:"blade",css:'.tp-cbzgv,.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-radv_b:hover,.tp-rslv_k:hover,.tp-cbzv_b:hover{background-color:var(--btn-bg-h)}.tp-radv_b:focus,.tp-rslv_k:focus,.tp-cbzv_b:focus{background-color:var(--btn-bg-f)}.tp-radv_b:active,.tp-rslv_k:active,.tp-cbzv_b:active{background-color:var(--btn-bg-a)}.tp-radv_b:disabled,.tp-rslv_k:disabled,.tp-cbzv_b:disabled{opacity:.5}.tp-cbzgv{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-cbzgv:hover{background-color:var(--in-bg-h)}.tp-cbzgv:focus{background-color:var(--in-bg-f)}.tp-cbzgv:active{background-color:var(--in-bg-a)}.tp-cbzgv:disabled{opacity:.5}.tp-btngridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-btngridv.tp-v-disabled{opacity:.5}.tp-btngridv .tp-btnv_b:disabled{opacity:1}.tp-btngridv .tp-btnv_b:disabled .tp-btnv_t{opacity:.5}.tp-btngridv .tp-btnv_b{border-radius:0}.tp-cbzv{position:relative}.tp-cbzv_h{display:flex}.tp-cbzv_b{margin-right:4px;position:relative;width:var(--bld-us)}.tp-cbzv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-cbzv_b svg path{stroke:var(--bs-bg);stroke-width:2}.tp-cbzv_t{flex:1}.tp-cbzv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-cbzv.tp-cbzv-expanded .tp-cbzv_p{margin-top:var(--bld-s);opacity:1}.tp-cbzv.tp-cbzv-cpl .tp-cbzv_p{overflow:visible}.tp-cbzv .tp-popv{left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-cbzpv_t{margin-top:var(--bld-s)}.tp-cbzgv{height:auto;overflow:hidden;position:relative}.tp-cbzgv.tp-v-disabled{opacity:.5}.tp-cbzgv_p{left:16px;position:absolute;right:16px;top:0}.tp-cbzgv_g{cursor:pointer;display:block;height:calc(var(--bld-us)*5);width:100%}.tp-cbzgv_u{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_l{fill:rgba(0,0,0,0);stroke:var(--in-fg)}.tp-cbzgv_v{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_h{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;pointer-events:none;position:absolute;width:4px}.tp-cbzgv:focus .tp-cbzgv_h-sel{background-color:var(--in-fg);border-width:0}.tp-cbzprvv{cursor:pointer;height:4px;padding:4px 0;position:relative}.tp-cbzprvv_g{display:block;height:100%;overflow:visible;width:100%}.tp-cbzprvv_t{opacity:.5;stroke:var(--mo-fg)}.tp-cbzprvv_m{background-color:var(--mo-fg);border-radius:50%;height:4px;margin-left:-2px;margin-top:-2px;opacity:0;position:absolute;top:50%;transition:opacity .2s ease-out;width:4px}.tp-cbzprvv_m.tp-cbzprvv_m-a{opacity:1}.tp-fpsv{position:relative}.tp-fpsv_l{bottom:4px;color:var(--mo-fg);line-height:1;right:4px;pointer-events:none;position:absolute}.tp-fpsv_u{margin-left:.2em;opacity:.7}.tp-rslv{cursor:pointer;padding-left:8px;padding-right:8px}.tp-rslv.tp-v-disabled{opacity:.5}.tp-rslv_t{height:calc(var(--bld-us));position:relative}.tp-rslv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:-4px;right:-4px}.tp-rslv_b{bottom:0;top:0;position:absolute}.tp-rslv_b::before{background-color:var(--in-fg);content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}.tp-rslv_k{height:calc(var(--bld-us) - 8px);margin-top:calc((var(--bld-us) - 8px)/-2);position:absolute;top:50%;width:8px}.tp-rslv_k.tp-rslv_k-min{margin-left:-8px}.tp-rslv_k.tp-rslv_k-max{margin-left:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-min{border-bottom-right-radius:0;border-top-right-radius:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-max{border-bottom-left-radius:0;border-top-left-radius:0}.tp-rsltxtv{display:flex}.tp-rsltxtv_s{flex:1}.tp-rsltxtv_t{flex:1;margin-left:4px}.tp-radv_l{display:block;position:relative}.tp-radv_i{left:0;opacity:0;position:absolute;top:0}.tp-radv_b{opacity:.5}.tp-radv_i:hover+.tp-radv_b{background-color:var(--btn-bg-h)}.tp-radv_i:focus+.tp-radv_b{background-color:var(--btn-bg-f)}.tp-radv_i:active+.tp-radv_b{background-color:var(--btn-bg-a)}.tp-radv_i:checked+.tp-radv_b{opacity:1}.tp-radv_t{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0}.tp-radv_i:disabled+.tp-radv_b>.tp-radv_t{opacity:.5}.tp-radgridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-radgridv.tp-v-disabled{opacity:.5}.tp-radgridv .tp-radv_b{border-radius:0}',accept(t){const e=E,n=T(t,{value:e.required.array(e.required.number),view:e.required.constant("cubicbezier"),expanded:e.optional.boolean,label:e.optional.string,picker:e.optional.custom(t=>"inline"===t||"popup"===t?t:void 0)});return n?{params:n}:null},controller(t){var e,n;const i=new nn(...t.params.value),r=_(i,{constraint:Sn(),equals:nn.equals}),o=new In(t.document,{axis:{baseStep:.1,textProps:C.fromObject({draggingScale:.01,formatter:te(2)})},expanded:null!==(e=t.params.expanded)&&void 0!==e&&e,pickerLayout:null!==(n=t.params.picker)&&void 0!==n?n:"popup",value:r,viewProps:t.viewProps});return new rt(t.document,{blade:t.blade,props:C.fromObject({label:t.params.label}),valueController:o})},api(t){return t.controller instanceof rt&&t.controller.valueController instanceof In?new Ke(t.controller):null}};class kn extends e{begin(){this.controller_.valueController.begin()}end(){this.controller_.valueController.end()}}const En=20;class Tn{constructor(){this.start_=null,this.duration_=0,this.fps_=null,this.frameCount_=0,this.timestamps_=[]}get duration(){return this.duration_}get fps(){return this.fps_}begin(t){this.start_=t.getTime()}calculateFps_(t){if(0===this.timestamps_.length)return null;const e=this.timestamps_[0];return 1e3*(this.frameCount_-e.frameCount)/(t-e.time)}compactTimestamps_(){if(this.timestamps_.length<=En)return;const t=this.timestamps_.length-En;this.timestamps_.splice(0,t);const e=this.timestamps_[0].frameCount;this.timestamps_.forEach(t=>{t.frameCount-=e}),this.frameCount_-=e}end(t){if(null===this.start_)return;const e=t.getTime();this.duration_=e-this.start_,this.start_=null,this.fps_=this.calculateFps_(e),this.timestamps_.push({frameCount:this.frameCount_,time:e}),++this.frameCount_,this.compactTimestamps_()}}const On=c("fps");class Pn{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(On()),e.viewProps.bindClassModifiers(this.element),this.graphElement=t.createElement("div"),this.graphElement.classList.add(On("g")),this.element.appendChild(this.graphElement);const n=t.createElement("div");n.classList.add(On("l")),this.element.appendChild(n);const i=t.createElement("span");i.classList.add(On("v")),i.textContent="--",n.appendChild(i),this.valueElement=i;const r=t.createElement("span");r.classList.add(On("u")),r.textContent="FPS",n.appendChild(r)}}class jn{constructor(t,e){this.stopwatch_=new Tn,this.onTick_=this.onTick_.bind(this),this.ticker_=e.ticker,this.ticker_.emitter.on("tick",this.onTick_),this.value_=e.value,this.viewProps=e.viewProps,this.view=new Pn(t,{viewProps:this.viewProps}),this.graphC_=new We(t,{formatter:te(0),lineCount:e.lineCount,props:C.fromObject({maxValue:e.maxValue,minValue:e.minValue}),value:this.value_,viewProps:this.viewProps}),this.view.graphElement.appendChild(this.graphC_.view.element),this.viewProps.handleDispose(()=>{this.graphC_.viewProps.set("disposed",!0),this.ticker_.dispose()})}begin(){this.stopwatch_.begin(new Date)}end(){this.stopwatch_.end(new Date)}onTick_(){const t=this.stopwatch_.fps;if(null!==t){const e=this.value_.rawValue;this.value_.rawValue=oe(e,t),this.view.valueElement.textContent=t.toFixed(0)}}}function Ln(t,e){return 0===e?new ot:new at(t,null!=e?e:Ve.monitor.defaultInterval)}const Dn={id:"fpsgraph",type:"blade",accept(t){const e=E,n=T(t,{view:e.required.constant("fpsgraph"),interval:e.optional.number,label:e.optional.string,lineCount:e.optional.number,max:e.optional.number,min:e.optional.number});return n?{params:n}:null},controller(t){var e,n,i,r;const o=null!==(e=t.params.interval)&&void 0!==e?e:500;return new K(t.document,{blade:t.blade,props:C.fromObject({label:t.params.label}),valueController:new jn(t.document,{lineCount:null!==(n=t.params.lineCount)&&void 0!==n?n:2,maxValue:null!==(i=t.params.max)&&void 0!==i?i:90,minValue:null!==(r=t.params.min)&&void 0!==r?r:0,ticker:Ln(t.document,o),value:ie(80),viewProps:t.viewProps})})},api(t){return t.controller instanceof K&&t.controller.valueController instanceof jn?new kn(t.controller):null}};class Rn{constructor(t,e){this.min=t,this.max=e}static isObject(t){if("object"!=typeof t||null===t)return!1;const e=t.min,n=t.max;return!("number"!=typeof e||"number"!=typeof n)}static equals(t,e){return t.min===e.min&&t.max===e.max}get length(){return this.max-this.min}toObject(){return{min:this.min,max:this.max}}}const Bn={fromComponents:t=>new Rn(t[0],t[1]),toComponents:t=>[t.min,t.max]};class Nn{constructor(t){this.edge=t}constrain(t){var e,n,i,r,o,a,s,l;if(t.min<=t.max)return new Rn(null!==(n=null===(e=this.edge)||void 0===e?void 0:e.constrain(t.min))&&void 0!==n?n:t.min,null!==(r=null===(i=this.edge)||void 0===i?void 0:i.constrain(t.max))&&void 0!==r?r:t.max);const c=(t.min+t.max)/2;return new Rn(null!==(a=null===(o=this.edge)||void 0===o?void 0:o.constrain(c))&&void 0!==a?a:c,null!==(l=null===(s=this.edge)||void 0===s?void 0:s.constrain(c))&&void 0!==l?l:c)}}const Fn=c("rsltxt");class zn{constructor(t,e){this.sliderView_=e.sliderView,this.textView_=e.textView,this.element=t.createElement("div"),this.element.classList.add(Fn());const n=t.createElement("div");n.classList.add(Fn("s")),n.appendChild(this.sliderView_.element),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(Fn("t")),i.appendChild(this.textView_.element),this.element.appendChild(i)}}const Vn=c("rsl");class Gn{constructor(t,e){this.onSliderPropsChange_=this.onSliderPropsChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.sliderProps_=e.sliderProps,this.sliderProps_.emitter.on("change",this.onSliderPropsChange_),this.element=t.createElement("div"),this.element.classList.add(Vn()),e.viewProps.bindClassModifiers(this.element),this.value_=e.value,this.value_.emitter.on("change",this.onValueChange_);const n=t.createElement("div");n.classList.add(Vn("t")),this.element.appendChild(n),this.trackElement=n;const i=t.createElement("div");i.classList.add(Vn("b")),n.appendChild(i),this.barElement=i;const r=["min","max"].map(e=>{const i=t.createElement("div");return i.classList.add(Vn("k"),Vn("k",e)),n.appendChild(i),i});this.knobElements=[r[0],r[1]],this.update_()}valueToX_(t){const e=this.sliderProps_.get("minValue"),n=this.sliderProps_.get("maxValue");return 100*me(fe(t,e,n,0,1),0,1)}update_(){const t=this.value_.rawValue;0===t.length?this.element.classList.add(Vn(void 0,"zero")):this.element.classList.remove(Vn(void 0,"zero"));const e=[this.valueToX_(t.min),this.valueToX_(t.max)];this.barElement.style.left=`${e[0]}%`,this.barElement.style.right=`${100-e[1]}%`,this.knobElements.forEach((t,n)=>{t.style.left=`${e[n]}%`})}onSliderPropsChange_(){this.update_()}onValueChange_(){this.update_()}}class Hn{constructor(t,e){this.grabbing_=null,this.grabOffset_=0,this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.sliderProps=e.sliderProps,this.viewProps=e.viewProps,this.value=e.value,this.view=new Gn(t,{sliderProps:this.sliderProps,value:this.value,viewProps:e.viewProps});const n=new pe(this.view.trackElement);n.emitter.on("down",this.onPointerDown_),n.emitter.on("move",this.onPointerMove_),n.emitter.on("up",this.onPointerUp_)}ofs_(){return"min"===this.grabbing_?this.view.knobElements[0].getBoundingClientRect().width/2:"max"===this.grabbing_?-this.view.knobElements[1].getBoundingClientRect().width/2:0}valueFromData_(t){if(!t.point)return null;const e=(t.point.x+this.ofs_())/t.bounds.width,n=this.sliderProps.get("minValue"),i=this.sliderProps.get("maxValue");return fe(e,0,1,n,i)}onPointerDown_(t){if(!t.data.point)return;const e=t.data.point.x/t.data.bounds.width,n=this.value.rawValue,i=this.sliderProps.get("minValue"),r=this.sliderProps.get("maxValue"),o=fe(n.min,i,r,0,1),a=fe(n.max,i,r,0,1);Math.abs(a-e)<=.025?this.grabbing_="max":Math.abs(o-e)<=.025?this.grabbing_="min":e>=o&&e<=a?(this.grabbing_="length",this.grabOffset_=fe(e-o,0,1,0,r-i)):e<o?(this.grabbing_="min",this.onPointerMove_(t)):e>a&&(this.grabbing_="max",this.onPointerMove_(t))}applyPointToValue_(t,e){const n=this.valueFromData_(t);if(null===n)return;const i=this.sliderProps.get("minValue"),r=this.sliderProps.get("maxValue");if("min"===this.grabbing_)this.value.setRawValue(new Rn(n,this.value.rawValue.max),e);else if("max"===this.grabbing_)this.value.setRawValue(new Rn(this.value.rawValue.min,n),e);else if("length"===this.grabbing_){const t=this.value.rawValue.length;let o=n-this.grabOffset_,a=o+t;o<i?(o=i,a=i+t):a>r&&(o=r-t,a=r),this.value.setRawValue(new Rn(o,a),e)}}onPointerMove_(t){this.applyPointToValue_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.applyPointToValue_(t.data,{forceEmit:!0,last:!0}),this.grabbing_=null}}class Wn{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.sc_=new Hn(t,e);const n={baseStep:e.baseStep,constraint:e.constraint,textProps:C.fromObject({draggingScale:e.draggingScale,formatter:e.formatter})};this.tc_=new Ne(t,{assembly:Bn,axes:[n,n],parser:e.parser,value:this.value,viewProps:e.viewProps}),this.view=new zn(t,{sliderView:this.sc_.view,textView:this.tc_.view})}get textController(){return this.tc_}}function Un(t){return Rn.isObject(t)?new Rn(t.min,t.max):new Rn(0,0)}function Zn(t,e){t.writeProperty("max",e.max),t.writeProperty("min",e.min)}function Yn(t){const e=[],n=ze(t);n&&e.push(n);const i=Fe(t);return i&&e.push(i),new Nn(new st(e))}const Xn={id:"input-interval",type:"input",css:'.tp-cbzgv,.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-radv_b,.tp-rslv_k,.tp-cbzv_b{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-radv_b:hover,.tp-rslv_k:hover,.tp-cbzv_b:hover{background-color:var(--btn-bg-h)}.tp-radv_b:focus,.tp-rslv_k:focus,.tp-cbzv_b:focus{background-color:var(--btn-bg-f)}.tp-radv_b:active,.tp-rslv_k:active,.tp-cbzv_b:active{background-color:var(--btn-bg-a)}.tp-radv_b:disabled,.tp-rslv_k:disabled,.tp-cbzv_b:disabled{opacity:.5}.tp-cbzgv{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-cbzgv:hover{background-color:var(--in-bg-h)}.tp-cbzgv:focus{background-color:var(--in-bg-f)}.tp-cbzgv:active{background-color:var(--in-bg-a)}.tp-cbzgv:disabled{opacity:.5}.tp-btngridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-btngridv.tp-v-disabled{opacity:.5}.tp-btngridv .tp-btnv_b:disabled{opacity:1}.tp-btngridv .tp-btnv_b:disabled .tp-btnv_t{opacity:.5}.tp-btngridv .tp-btnv_b{border-radius:0}.tp-cbzv{position:relative}.tp-cbzv_h{display:flex}.tp-cbzv_b{margin-right:4px;position:relative;width:var(--bld-us)}.tp-cbzv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-cbzv_b svg path{stroke:var(--bs-bg);stroke-width:2}.tp-cbzv_t{flex:1}.tp-cbzv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-cbzv.tp-cbzv-expanded .tp-cbzv_p{margin-top:var(--bld-s);opacity:1}.tp-cbzv.tp-cbzv-cpl .tp-cbzv_p{overflow:visible}.tp-cbzv .tp-popv{left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-cbzpv_t{margin-top:var(--bld-s)}.tp-cbzgv{height:auto;overflow:hidden;position:relative}.tp-cbzgv.tp-v-disabled{opacity:.5}.tp-cbzgv_p{left:16px;position:absolute;right:16px;top:0}.tp-cbzgv_g{cursor:pointer;display:block;height:calc(var(--bld-us)*5);width:100%}.tp-cbzgv_u{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_l{fill:rgba(0,0,0,0);stroke:var(--in-fg)}.tp-cbzgv_v{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-cbzgv_h{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;pointer-events:none;position:absolute;width:4px}.tp-cbzgv:focus .tp-cbzgv_h-sel{background-color:var(--in-fg);border-width:0}.tp-cbzprvv{cursor:pointer;height:4px;padding:4px 0;position:relative}.tp-cbzprvv_g{display:block;height:100%;overflow:visible;width:100%}.tp-cbzprvv_t{opacity:.5;stroke:var(--mo-fg)}.tp-cbzprvv_m{background-color:var(--mo-fg);border-radius:50%;height:4px;margin-left:-2px;margin-top:-2px;opacity:0;position:absolute;top:50%;transition:opacity .2s ease-out;width:4px}.tp-cbzprvv_m.tp-cbzprvv_m-a{opacity:1}.tp-fpsv{position:relative}.tp-fpsv_l{bottom:4px;color:var(--mo-fg);line-height:1;right:4px;pointer-events:none;position:absolute}.tp-fpsv_u{margin-left:.2em;opacity:.7}.tp-rslv{cursor:pointer;padding-left:8px;padding-right:8px}.tp-rslv.tp-v-disabled{opacity:.5}.tp-rslv_t{height:calc(var(--bld-us));position:relative}.tp-rslv_t::before{background-color:var(--in-bg);border-radius:1px;content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:-4px;right:-4px}.tp-rslv_b{bottom:0;top:0;position:absolute}.tp-rslv_b::before{background-color:var(--in-fg);content:"";height:2px;margin-top:-1px;position:absolute;top:50%;left:0;right:0}.tp-rslv_k{height:calc(var(--bld-us) - 8px);margin-top:calc((var(--bld-us) - 8px)/-2);position:absolute;top:50%;width:8px}.tp-rslv_k.tp-rslv_k-min{margin-left:-8px}.tp-rslv_k.tp-rslv_k-max{margin-left:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-min{border-bottom-right-radius:0;border-top-right-radius:0}.tp-rslv.tp-rslv-zero .tp-rslv_k.tp-rslv_k-max{border-bottom-left-radius:0;border-top-left-radius:0}.tp-rsltxtv{display:flex}.tp-rsltxtv_s{flex:1}.tp-rsltxtv_t{flex:1;margin-left:4px}.tp-radv_l{display:block;position:relative}.tp-radv_i{left:0;opacity:0;position:absolute;top:0}.tp-radv_b{opacity:.5}.tp-radv_i:hover+.tp-radv_b{background-color:var(--btn-bg-h)}.tp-radv_i:focus+.tp-radv_b{background-color:var(--btn-bg-f)}.tp-radv_i:active+.tp-radv_b{background-color:var(--btn-bg-a)}.tp-radv_i:checked+.tp-radv_b{opacity:1}.tp-radv_t{bottom:0;color:inherit;left:0;overflow:hidden;position:absolute;right:0;text-align:center;text-overflow:ellipsis;top:0}.tp-radv_i:disabled+.tp-radv_b>.tp-radv_t{opacity:.5}.tp-radgridv{border-radius:var(--elm-br);display:grid;overflow:hidden;gap:2px}.tp-radgridv.tp-v-disabled{opacity:.5}.tp-radgridv .tp-radv_b{border-radius:0}',accept:(t,e)=>{if(!Rn.isObject(t))return null;const n=E,i=T(e,{format:n.optional.function,max:n.optional.number,min:n.optional.number,step:n.optional.number});return i?{initialValue:new Rn(t.min,t.max),params:i}:null},binding:{reader:t=>Un,constraint:t=>Yn(t.params),equals:Rn.equals,writer:t=>Zn},controller(t){var e;const n=t.value,i=t.constraint;if(!(i instanceof Nn))throw a.shouldNeverHappen();const r=(n.rawValue.min+n.rawValue.max)/2,o=null!==(e=t.params.format)&&void 0!==e?e:te(_e(i.edge,r)),s=i.edge&&lt(i.edge,ct);if(s)return new Wn(t.document,{baseStep:Ce(i.edge),constraint:i.edge,draggingScale:Ae(i.edge,r),formatter:o,parser:Jt,sliderProps:new C({maxValue:s.values.value("max"),minValue:s.values.value("min")}),value:n,viewProps:t.viewProps});const l={baseStep:Ce(i.edge),constraint:i.edge,textProps:C.fromObject({draggingScale:r,formatter:o})};return new Ne(t.document,{assembly:Bn,axes:[l,l],parser:Jt,value:n,viewProps:t.viewProps})}};class qn{constructor(t){this.controller_=t}get disabled(){return this.controller_.viewProps.get("disabled")}set disabled(t){this.controller_.viewProps.set("disabled",t)}get title(){var t;return null!==(t=this.controller_.props.get("title"))&&void 0!==t?t:""}set title(t){this.controller_.props.set("title",t)}}class Kn extends i{constructor(t,e,n,i,r){super(t,i,r),this.cell=e,this.index=n}}class Qn extends e{constructor(t){super(t),this.cellToApiMap_=new Map,this.controller_.valueController.cellControllers.forEach(t=>{const e=new qn(t);this.cellToApiMap_.set(t,e)})}get value(){return this.controller_.value}cell(t,e){const n=this.controller_.valueController,i=n.cellControllers[e*n.size[0]+t];return this.cellToApiMap_.get(i)}on(t,e){const n=e.bind(this);this.controller_.value.emitter.on(t,t=>{const e=this.controller_.valueController,i=e.findCellByValue(t.rawValue);if(!i)return;const r=this.cellToApiMap_.get(i);if(!r)return;const o=e.cellControllers.indexOf(i);n(new Kn(this,r,[o%e.size[0],Math.floor(o/e.size[0])],t.rawValue,void 0))})}}const Jn=c("rad");class $n{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Jn()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("label");n.classList.add(Jn("l")),this.element.appendChild(n);const i=t.createElement("input");i.classList.add(Jn("i")),i.name=e.name,i.type="radio",e.viewProps.bindDisabled(i),n.appendChild(i),this.inputElement=i;const r=t.createElement("div");r.classList.add(Jn("b")),n.appendChild(r);const o=t.createElement("div");o.classList.add(Jn("t")),r.appendChild(o),p(e.props,"title",t=>{o.textContent=t})}}class ti{constructor(t,e){this.props=e.props,this.viewProps=e.viewProps,this.view=new $n(t,{name:e.name,props:this.props,viewProps:this.viewProps})}}class ei{constructor(t,e){this.cellCs_=[],this.cellValues_=[],this.onCellInputChange_=this.onCellInputChange_.bind(this),this.size=e.size;const[n,i]=this.size;for(let r=0;r<i;r++)for(let i=0;i<n;i++){const n=new ti(t,{name:e.groupName,props:C.fromObject(Object.assign({},e.cellConfig(i,r))),viewProps:R.create()});this.cellCs_.push(n),this.cellValues_.push(e.cellConfig(i,r).value)}this.value=e.value,d(this.value,t=>{const e=this.findCellByValue(t);!e||(e.view.inputElement.checked=!0)}),this.viewProps=R.create(),this.view=new it(t,{viewProps:this.viewProps,viewName:"radgrid"}),this.view.element.style.gridTemplateColumns=`repeat(${n}, 1fr)`,this.cellCs_.forEach(t=>{t.view.inputElement.addEventListener("change",this.onCellInputChange_),this.view.element.appendChild(t.view.element)})}get cellControllers(){return this.cellCs_}findCellByValue(t){const e=this.cellValues_.findIndex(e=>e===t);return e<0?null:this.cellCs_[e]}onCellInputChange_(t){const e=t.currentTarget,n=this.cellCs_.findIndex(t=>t.view.inputElement===e);n<0||(this.value.rawValue=this.cellValues_[n])}}const ni=function(){return{id:"radiogrid",type:"blade",accept(t){const e=E,n=T(t,{cells:e.required.function,groupName:e.required.string,size:e.required.array(e.required.number),value:e.required.raw,view:e.required.constant("radiogrid"),label:e.optional.string});return n?{params:n}:null},controller(t){return new rt(t.document,{blade:t.blade,props:C.fromObject({label:t.params.label}),valueController:new ei(t.document,{groupName:t.params.groupName,cellConfig:t.params.cells,size:t.params.size,value:_(t.params.value)})})},api(t){return t.controller instanceof rt&&t.controller.valueController instanceof ei?new Qn(t.controller):null}}}();function ii(t){return{id:"input-radiogrid",type:"input",accept(e,n){if(!t.isType(e))return null;const i=E,r=T(n,{cells:i.required.function,groupName:i.required.string,size:i.required.array(i.required.number),view:i.required.constant("radiogrid")});return r?{initialValue:e,params:r}:null},binding:t.binding,controller:t=>new ei(t.document,{cellConfig:t.params.cells,groupName:t.params.groupName,size:t.params.size,value:t.value})}}const ri=ii({isType:t=>"number"==typeof t,binding:{reader:t=>$t,writer:t=>xe}}),oi=ii({isType:t=>"string"==typeof t,binding:{reader:t=>ee,writer:t=>xe}}),ai=ii({isType:t=>"boolean"==typeof t,binding:{reader:t=>yt,writer:t=>xe}}),si=[qe,Mn,Dn,Xn,ni,ai,ri,oi];t.ButtonCellApi=Ue,t.ButtonGridApi=Ye,t.ButtonGridController=Xe,t.CubicBezier=nn,t.CubicBezierApi=Ke,t.CubicBezierAssembly=rn,t.CubicBezierController=In,t.CubicBezierGraphController=Cn,t.CubicBezierGraphView=gn,t.CubicBezierPickerController=An,t.CubicBezierPickerView=hn,t.CubicBezierPreviewView=xn,t.CubicBezierView=cn,t.FpsGraphBladeApi=kn,t.FpsGraphController=jn,t.FpsView=Pn,t.Fpswatch=Tn,t.Interval=Rn,t.IntervalAssembly=Bn,t.IntervalConstraint=Nn,t.RadioCellApi=qn,t.RadioController=ti,t.RadioGridApi=Qn,t.RadioGridController=ei,t.RadioView=$n,t.RangeSliderController=Hn,t.RangeSliderTextController=Wn,t.RangeSliderTextView=zn,t.RangeSliderView=Gn,t.TpRadioGridChangeEvent=Kn,t.plugins=si,Object.defineProperty(t,"__esModule",{value:!0})}))},9996:function(t){"use strict";var e=function(t){return n(t)&&!i(t)};function n(t){return!!t&&"object"==typeof t}function i(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||a(t)}var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103;function a(t){return t.$$typeof===o}function s(t){return Array.isArray(t)?[]:{}}function l(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m(s(t),t,e):t}function c(t,e,n){return t.concat(e).map((function(t){return l(t,n)}))}function u(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"==typeof n?n:m}function h(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}function d(t){return Object.keys(t).concat(h(t))}function p(t,e){try{return e in t}catch(n){return!1}}function f(t,e){return p(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function g(t,e,n){var i={};return n.isMergeableObject(t)&&d(t).forEach((function(e){i[e]=l(t[e],n)})),d(e).forEach((function(r){f(t,r)||(p(t,r)&&n.isMergeableObject(e[r])?i[r]=u(r,n)(t[r],e[r],n):i[r]=l(e[r],n))})),i}function m(t,n,i){i=i||{},i.arrayMerge=i.arrayMerge||c,i.isMergeableObject=i.isMergeableObject||e,i.cloneUnlessOtherwiseSpecified=l;var r=Array.isArray(n),o=Array.isArray(t),a=r===o;return a?r?i.arrayMerge(t,n,i):g(t,n,i):l(n,i)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return m(t,n,e)}),{})};var v=m;t.exports=v},9187:function(t){"use strict";function e(t,e,i){i=i||2;var o,a,s,l,u,h,d,p=e&&e.length,f=p?e[0]*i:t.length,g=n(t,0,f,i,!0),m=[];if(!g||g.next===g.prev)return m;if(p&&(g=c(t,e,g,i)),t.length>80*i){o=s=t[0],a=l=t[1];for(var v=i;v<f;v+=i)u=t[v],h=t[v+1],u<o&&(o=u),h<a&&(a=h),u>s&&(s=u),h>l&&(l=h);d=Math.max(s-o,l-a),d=0!==d?32767/d:0}return r(g,m,i,o,a,d,0),m}function n(t,e,n,i,r){var o,a;if(r===P(t,e,n,i)>0)for(o=e;o<n;o+=i)a=E(o,t[o],t[o+1],a);else for(o=n-i;o>=e;o-=i)a=E(o,t[o],t[o+1],a);return a&&w(a,a.next)&&(T(a),a=a.next),a}function i(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!w(i,i.next)&&0!==x(i.prev,i,i.next))i=i.next;else{if(T(i),i=e=i.prev,i===i.next)break;n=!0}}while(n||i!==e);return e}function r(t,e,n,c,u,h,d){if(t){!d&&h&&f(t,c,u,h);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,h?a(t,c,u,h):o(t))e.push(p.i/n|0),e.push(t.i/n|0),e.push(g.i/n|0),T(t),t=g.next,m=g.next;else if(t=g,t===m){d?1===d?(t=s(i(t),e,n),r(t,e,n,c,u,h,2)):2===d&&l(t,e,n,c,u,h):r(i(t),e,n,c,u,h,1);break}}}function o(t){var e=t.prev,n=t,i=t.next;if(x(e,n,i)>=0)return!1;for(var r=e.x,o=n.x,a=i.x,s=e.y,l=n.y,c=i.y,u=r<o?r<a?r:a:o<a?o:a,h=s<l?s<c?s:c:l<c?l:c,d=r>o?r>a?r:a:o>a?o:a,p=s>l?s>c?s:c:l>c?l:c,f=i.next;f!==e;){if(f.x>=u&&f.x<=d&&f.y>=h&&f.y<=p&&y(r,s,o,l,a,c,f.x,f.y)&&x(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}function a(t,e,n,i){var r=t.prev,o=t,a=t.next;if(x(r,o,a)>=0)return!1;for(var s=r.x,l=o.x,c=a.x,u=r.y,h=o.y,d=a.y,p=s<l?s<c?s:c:l<c?l:c,f=u<h?u<d?u:d:h<d?h:d,g=s>l?s>c?s:c:l>c?l:c,v=u>h?u>d?u:d:h>d?h:d,b=m(p,f,e,n,i),w=m(g,v,e,n,i),_=t.prevZ,C=t.nextZ;_&&_.z>=b&&C&&C.z<=w;){if(_.x>=p&&_.x<=g&&_.y>=f&&_.y<=v&&_!==r&&_!==a&&y(s,u,l,h,c,d,_.x,_.y)&&x(_.prev,_,_.next)>=0||(_=_.prevZ,C.x>=p&&C.x<=g&&C.y>=f&&C.y<=v&&C!==r&&C!==a&&y(s,u,l,h,c,d,C.x,C.y)&&x(C.prev,C,C.next)>=0))return!1;C=C.nextZ}for(;_&&_.z>=b;){if(_.x>=p&&_.x<=g&&_.y>=f&&_.y<=v&&_!==r&&_!==a&&y(s,u,l,h,c,d,_.x,_.y)&&x(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;C&&C.z<=w;){if(C.x>=p&&C.x<=g&&C.y>=f&&C.y<=v&&C!==r&&C!==a&&y(s,u,l,h,c,d,C.x,C.y)&&x(C.prev,C,C.next)>=0)return!1;C=C.nextZ}return!0}function s(t,e,n){var r=t;do{var o=r.prev,a=r.next.next;!w(o,a)&&_(o,r,r.next,a)&&S(o,a)&&S(a,o)&&(e.push(o.i/n|0),e.push(r.i/n|0),e.push(a.i/n|0),T(r),T(r.next),r=t=a),r=r.next}while(r!==t);return i(r)}function l(t,e,n,o,a,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&b(l,c)){var u=k(l,c);return l=i(l,l.next),u=i(u,u.next),r(l,e,n,o,a,s,0),void r(u,e,n,o,a,s,0)}c=c.next}l=l.next}while(l!==t)}function c(t,e,i,r){var o,a,s,l,c,d=[];for(o=0,a=e.length;o<a;o++)s=e[o]*r,l=o<a-1?e[o+1]*r:t.length,c=n(t,s,l,r,!1),c===c.next&&(c.steiner=!0),d.push(v(c));for(d.sort(u),o=0;o<d.length;o++)i=h(d[o],i);return i}function u(t,e){return t.x-e.x}function h(t,e){var n=d(t,e);if(!n)return e;var r=k(n,t);return i(r,r.next),i(n,n.next)}function d(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>a&&(a=s,n=i.x<i.next.x?i:i.next,s===r))return n}i=i.next}while(i!==e);if(!n)return null;var l,c=n,u=n.x,h=n.y,d=1/0;i=n;do{r>=i.x&&i.x>=u&&r!==i.x&&y(o<h?r:a,o,u,h,o<h?a:r,o,i.x,i.y)&&(l=Math.abs(o-i.y)/(r-i.x),S(i,t)&&(l<d||l===d&&(i.x>n.x||i.x===n.x&&p(n,i)))&&(n=i,d=l)),i=i.next}while(i!==c);return n}function p(t,e){return x(t.prev,t,e.prev)<0&&x(e.next,t,t.next)<0}function f(t,e,n,i){var r=t;do{0===r.z&&(r.z=m(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,g(r)}function g(t){var e,n,i,r,o,a,s,l,c=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,i=n,s=0,e=0;e<c&&(s++,i=i.nextZ,i);e++);for(l=c;s>0||l>0&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,c*=2}while(a>1);return t}function m(t,e,n,i,r){return t=(t-n)*r|0,e=(e-i)*r|0,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1}function v(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function y(t,e,n,i,r,o,a,s){return(r-a)*(e-s)>=(t-a)*(o-s)&&(t-a)*(i-s)>=(n-a)*(e-s)&&(n-a)*(o-s)>=(r-a)*(i-s)}function b(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!I(t,e)&&(S(t,e)&&S(e,t)&&M(t,e)&&(x(t.prev,t,e.prev)||x(t,e.prev,e))||w(t,e)&&x(t.prev,t,t.next)>0&&x(e.prev,e,e.next)>0)}function x(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function w(t,e){return t.x===e.x&&t.y===e.y}function _(t,e,n,i){var r=A(x(t,e,n)),o=A(x(t,e,i)),a=A(x(n,i,t)),s=A(x(n,i,e));return!!(r!==o&&a!==s||0===r&&C(t,n,e)||0===o&&C(t,i,e)||0===a&&C(n,t,i)||0===s&&C(n,e,i))}function C(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function A(t){return t>0?1:t<0?-1:0}function I(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&_(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function S(t,e){return x(t.prev,t,t.next)<0?x(t,e,t.next)>=0&&x(t,t.prev,e)>=0:x(t,e,t.prev)<0||x(t,t.next,e)<0}function M(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}function k(t,e){var n=new O(t.i,t.x,t.y),i=new O(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function E(t,e,n,i){var r=new O(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function T(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function O(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function P(t,e,n,i){for(var r=0,o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}t.exports=e,t.exports.default=e,e.deviation=function(t,e,n,i){var r=e&&e.length,o=r?e[0]*n:t.length,a=Math.abs(P(t,0,o,n));if(r)for(var s=0,l=e.length;s<l;s++){var c=e[s]*n,u=s<l-1?e[s+1]*n:t.length;a-=Math.abs(P(t,c,u,n))}var h=0;for(s=0;s<i.length;s+=3){var d=i[s]*n,p=i[s+1]*n,f=i[s+2]*n;h+=Math.abs((t[d]-t[f])*(t[p+1]-t[d+1])-(t[d]-t[p])*(t[f+1]-t[d+1]))}return 0===a&&0===h?0:Math.abs((h-a)/a)},e.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r<t.length;r++){for(var o=0;o<t[r].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[r][o][a]);r>0&&(i+=t[r-1].length,n.holes.push(i))}return n}},5733:function(t,n,r){
/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/
(function(e){t.exports=e()})((function(){return function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){var l=void 0;if(!s&&l)return require(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){var n=e[a][1][t];return r(n||t)}),u,u.exports,t,e,n,i)}return n[a].exports}for(var o=void 0,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,r,a,s,l,c,u=[],h=0,d=t.length,p=d,f="string"!==i.getTypeOf(t);h<t.length;)p=d-h,r=f?(e=t[h++],n=h<d?t[h++]:0,h<d?t[h++]:0):(e=t.charCodeAt(h++),n=h<d?t.charCodeAt(h++):0,h<d?t.charCodeAt(h++):0),a=e>>2,s=(3&e)<<4|n>>4,l=1<p?(15&n)<<2|r>>6:64,c=2<p?63&r:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(t){var e,n,i,a,s,l,c=0,u=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&p--,t.charAt(t.length-2)===o.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=r.uint8array?new Uint8Array(0|p):new Array(0|p);c<t.length;)e=o.indexOf(t.charAt(c++))<<2|(a=o.indexOf(t.charAt(c++)))>>4,n=(15&a)<<4|(s=o.indexOf(t.charAt(c++)))>>2,i=(3&s)<<6|(l=o.indexOf(t.charAt(c++))),d[u++]=e,64!==s&&(d[u++]=n),64!==l&&(d[u++]=i);return d}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),a=t("./stream/DataLengthProbe");function s(t,e,n,i,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=r}s.prototype={getContentWorker:function(){var t=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new o).pipe(new a("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s<a;s++)t=t>>>8^o[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),o=t("./utils"),a=t("./stream/GenericWorker"),s=i?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function r(t,e,n,r,a,u){var h,d,p=t.file,f=t.compression,g=u!==s.utf8encode,m=o.transformTo("string",u(p.name)),v=o.transformTo("string",s.utf8encode(p.name)),y=p.comment,b=o.transformTo("string",u(y)),x=o.transformTo("string",s.utf8encode(y)),w=v.length!==p.name.length,_=x.length!==y.length,C="",A="",I="",S=p.dir,M=p.date,k={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(k.crc32=t.crc32,k.compressedSize=t.compressedSize,k.uncompressedSize=t.uncompressedSize);var E=0;e&&(E|=8),g||!w&&!_||(E|=2048);var T=0,O=0;S&&(T|=16),"UNIX"===a?(O=798,T|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(p.unixPermissions,S)):(O=20,T|=function(t){return 63&(t||0)}(p.dosPermissions)),h=M.getUTCHours(),h<<=6,h|=M.getUTCMinutes(),h<<=5,h|=M.getUTCSeconds()/2,d=M.getUTCFullYear()-1980,d<<=4,d|=M.getUTCMonth()+1,d<<=5,d|=M.getUTCDate(),w&&(A=i(1,1)+i(l(m),4)+v,C+="up"+i(A.length,2)+A),_&&(I=i(1,1)+i(l(b),4)+x,C+="uc"+i(I.length,2)+I);var P="";return P+="\n\0",P+=i(E,2),P+=f.magic,P+=i(h,2),P+=i(d,2),P+=i(k.crc32,4),P+=i(k.compressedSize,4),P+=i(k.uncompressedSize,4),P+=i(m.length,2),P+=i(C.length,2),{fileRecord:c.LOCAL_FILE_HEADER+P+m+C,dirRecord:c.CENTRAL_FILE_HEADER+i(O,2)+P+i(b.length,2)+"\0\0\0\0"+i(T,4)+i(r,4)+m+C+b}}var o=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),c=t("../signature");function u(t,e,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,a),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return c.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(t,e,n,r,a){var s=o.transformTo("string",a(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(i){}return!0},u.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),r=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var o=new r(e.streamFiles,n,e.platform,e.encodeFileName),a=0;try{t.forEach((function(t,n){a++;var r=function(t,e){var n=t||e,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,s).withStreamInfo("file",{name:t,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(s){o.error(s)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./external"),o=t("./utf8"),a=t("./zipEntries"),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function c(t){return new r.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new s);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new a(e);return n.load(t),n})).then((function(t){var n=[r.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var o=0;o<i.length;o++)n.push(c(i[o]));return r.Promise.all(n)})).then((function(t){for(var r=t.shift(),o=r.files,a=0;a<o.length;a++){var s=o[a],l=s.fileNameStr,c=i.resolve(s.fileNameStr);n.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(c).unsafeOriginalName=l)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../stream/GenericWorker");function o(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(o,r),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function r(t,e,n){i.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),n&&n(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,n,i){"use strict";n.exports={isNode:"undefined"!=typeof e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,r=o.getTypeOf(e),s=o.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=g(t)),s.createFolders&&(i=f(t))&&m.call(this,i,!0);var h="string"===r&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!h),(e instanceof c&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",r="string");var v=null;v=e instanceof c||e instanceof a?e:d.isNode&&d.isStream(e)?new p(t,e):o.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var y=new u(t,v,s);this.files[t]=y}var r=t("./utf8"),o=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),c=t("./compressedObject"),u=t("./zipObject"),h=t("./generate"),d=t("./nodejsUtils"),p=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function v(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(v(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(v(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=h.generateWorker(this,n,i)}catch(l){(e=new a("error")).error(l)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../support"),o=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new s(t):r.uint8array?new l(i.transformTo("uint8array",t)):new o(i.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../utils");function o(t){i.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(o,i),o.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,i),o.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(o,r),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,n,i){"use strict";var r=t("../utils"),o=t("./ConvertWorker"),a=t("./GenericWorker"),s=t("../base64"),l=t("../support"),c=t("../external"),u=null;if(l.nodestream)try{u=t("../nodejs/NodejsStreamOutputAdapter")}catch(p){}function h(t,n){return new c.Promise((function(i,o){var a=[],l=t._internalType,c=t._outputType,u=t._mimeType;t.on("data",(function(t,e){a.push(t),n&&n(e)})).on("error",(function(t){a=[],o(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return r.transformTo(t,e)}}(c,function(t,n){var i,r=0,o=null,a=0;for(i=0;i<n.length;i++)a+=n[i].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(o=new Uint8Array(a),i=0;i<n.length;i++)o.set(n[i],r),r+=n[i].length;return o;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(l,a),u);i(t)}catch(n){o(n)}a=[]})).resume()}))}function d(t,e,n){var i=e;switch(e){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=e,this._mimeType=n,r.checkSupport(i),this._worker=t.pipe(new o(i)),t.lock()}catch(s){this._worker=new a("error"),this._worker.error(s)}}d.prototype={accumulate:function(t){return h(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){r.delay(e,arguments,n)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof e,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var r=new ArrayBuffer(0);try{i.blob=0===new Blob([r],{type:"application/zip"}).size}catch(a){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),i.blob=0===o.getBlob("application/zip").size}catch(s){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(a){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),r=t("./support"),o=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,i,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e}(t)},n.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,o,a=t.length,l=new Array(2*a);for(e=n=0;e<a;)if((r=t[e++])<128)l[n++]=r;else if(4<(o=s[r]))l[n++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&e<a;)r=r<<6|63&t[e++],o--;1<o?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(c,a),c.prototype.processChunk=function(t){var e=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),l=e;a!==e.length&&(r.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,i.inherits(u,a),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),r=t("./base64"),o=t("./nodejsUtils"),a=t("./external");function s(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch(r){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(e)}catch(o){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],r=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,i=n.getTypeOf(t),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return c.stringifyByChunk(t,i,e)}catch(o){e=Math.floor(e/2)}return c.stringifyByChar(t)}function h(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=u;var d={};d.string={string:s,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return d.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},d.array={string:u,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},d.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},d.uint8array={string:u,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return o.newBufferFrom(t)}},d.nodebuffer={string:u,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return d.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return d[i][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++){var r=e[i];"."===r||""===r&&0!==i&&i!==e.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&o.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,o,s,c){return a.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new a.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(c?e=r.decode(e):o&&!0!==s&&(e=function(t){return l(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):a.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),a=t("./zipEntry"),s=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),c=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,i,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(r)},handleUTF8:function(){var t=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(e=e.pipe(new a.Utf8EncodeWorker)),!o&&i&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(s){(e=new l("error")).error(s)}return new r(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<c.length;h++)i.prototype[c[h]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,n){(function(t){"use strict";var n,i,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var o=0,a=new r(u),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var t,e;i=!0;for(var n=c.length;n;){for(e=c,c=[],t=-1;++t<n;)e[t]();n=c.length}i=!1}e.exports=function(t){1!==c.push(t)||i||n()}}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function r(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&p(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(t,e,n){i((function(){var i;try{i=e(n)}catch(r){return o.reject(t,r)}i===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,i)}))}function d(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function i(e){n||(n=!0,o.reject(t,e))}function r(e){n||(n=!0,o.resolve(t,e))}var a=f((function(){e(r,i)}));"error"===a.status&&i(a.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(i){n.status="error",n.value=i}return n}(e.exports=c).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var n=new this.constructor(r);return this.state!==l?h(n,this.state===s?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){h(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){o.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){h(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=f(d,e);if("error"===n.status)return o.reject(t,n.value);var i=n.value;if(i)p(t,i);else{t.state=s,t.outcome=e;for(var r=-1,a=t.queue.length;++r<a;)t.queue[r].callFulfilled(e)}return t},o.reject=function(t,e){t.state=a,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},c.resolve=function(t){return t instanceof this?t:o.resolve(new this(r),t)},c.reject=function(t){var e=new this(r);return o.reject(e,t)},c.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(r);++l<n;)u(t[l],l);return c;function u(t,r){e.resolve(t).then((function(t){a[r]=t,++s!==n||i||(i=!0,o.resolve(c,a))}),(function(t){i||(i=!0,o.reject(c,t))}))}},c.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n,i=t.length,a=!1;if(!i)return this.resolve([]);for(var s=-1,l=new this(r);++s<i;)n=t[s],e.resolve(n).then((function(t){a||(a=!0,o.resolve(l,t))}),(function(t){a||(a=!0,o.reject(l,t))}));return l}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,h=0,d=8;function p(t){if(!(this instanceof p))return new p(t);this.options=r.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==c)throw new Error(a[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=i.deflateSetDictionary(this.strm,f))!==c)throw new Error(a[n]);this._dict_set=!0}}function f(t,e){var n=new p(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}p.prototype.push=function(t,e){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new r.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=i.deflate(s,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(s.output,s.next_out))):this.onData(r.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},p.prototype.onData=function(t){this.chunks.push(t)},p.prototype.onEnd=function(t){t===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=p,n.deflate=f,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),r=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),c=t("./zlib/gzheader"),u=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}h.prototype.push=function(t,e){var n,s,l,c,h,d,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?p.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?p.input=new Uint8Array(t):p.input=t,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(f),p.next_out=0,p.avail_out=f),(n=i.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(d="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,d)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==a.Z_STREAM_END&&(0!==p.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),c=p.next_out-l,h=o.buf2string(p.output,l),p.next_out=c,p.avail_out=f-c,c&&r.arraySet(p.output,p.output,l,c,0),this.onData(h)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(p.avail_out=0))},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=h,n.inflate=d,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,a;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(a=new Uint8Array(i),e=r=0,n=t.length;e<n;e++)o=t[e],a.set(o,r),r+=o.length;return a}},o={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(c){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){o=!1}for(var a=new i.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,n.string2buf=function(t){var e,n,r,o,a,s=t.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,o,s=e||t.length,c=new Array(2*s);for(n=i=0;n<s;)if((r=t[n++])<128)c[i++]=r;else if(4<(o=a[r]))c[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&n<s;)r=r<<6|63&t[n++],o--;1<o?c[i++]=65533:r<65536?c[i++]=r:(r-=65536,c[i++]=55296|r>>10&1023,c[i++]=56320|1023&r)}return l(c,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(r=r+e[i++]|0)|0,--a;);r%=65521,o%=65521}return r|o<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var o=i,a=r+n;t^=-1;for(var s=r;s<a;s++)t=t>>>8^o[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var i,r=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),c=0,u=4,h=0,d=-2,p=-1,f=4,g=2,m=8,v=9,y=286,b=30,x=19,w=2*y+1,_=15,C=3,A=258,I=A+C+1,S=42,M=113,k=1,E=2,T=3,O=4;function P(t,e){return t.msg=l[e],e}function j(t){return(t<<1)-(4<t?9:0)}function L(t){for(var e=t.length;0<=--e;)t[e]=0}function D(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function R(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,D(t.strm)}function B(t,e){t.pending_buf[t.pending++]=e}function N(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function F(t,e){var n,i,r=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-I?t.strstart-(t.w_size-I):0,c=t.window,u=t.w_mask,h=t.prev,d=t.strstart+A,p=c[o+a-1],f=c[o+a];t.prev_length>=t.good_match&&(r>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===f&&c[n+a-1]===p&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<d);if(i=A-(d-o),o=d-A,a<i){if(t.match_start=e,s<=(a=i))break;p=c[o+a-1],f=c[o+a]}}}while((e=h[e&u])>l&&0!=--r);return a<=t.lookahead?a:t.lookahead}function z(t){var e,n,i,o,l,c,u,h,d,p,f=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-I)){for(r.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;i=t.head[--e],t.head[e]=f<=i?i-f:0,--n;);for(e=n=f;i=t.prev[--e],t.prev[e]=f<=i?i-f:0,--n;);o+=f}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,h=t.strstart+t.lookahead,d=o,p=void 0,p=c.avail_in,d<p&&(p=d),n=0===p?0:(c.avail_in-=p,r.arraySet(u,c.input,c.next_in,p,h),1===c.state.wrap?c.adler=a(c.adler,u,p,h):2===c.state.wrap&&(c.adler=s(c.adler,u,p,h)),c.next_in+=p,c.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=C)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+C-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<C)););}while(t.lookahead<I&&0!==t.strm.avail_in)}function V(t,e){for(var n,i;;){if(t.lookahead<I){if(z(t),t.lookahead<I&&e===c)return k;if(0===t.lookahead)break}if(n=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-I&&(t.match_length=F(t,n)),t.match_length>=C)if(i=o._tr_tally(t,t.strstart-t.match_start,t.match_length-C),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=C){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(R(t,!1),0===t.strm.avail_out))return k}return t.insert=t.strstart<C-1?t.strstart:C-1,e===u?(R(t,!0),0===t.strm.avail_out?T:O):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?k:E}function G(t,e){for(var n,i,r;;){if(t.lookahead<I){if(z(t),t.lookahead<I&&e===c)return k;if(0===t.lookahead)break}if(n=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=C-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-I&&(t.match_length=F(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===C&&4096<t.strstart-t.match_start)&&(t.match_length=C-1)),t.prev_length>=C&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-C,i=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-C),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=C-1,t.strstart++,i&&(R(t,!1),0===t.strm.avail_out))return k}else if(t.match_available){if((i=o._tr_tally(t,0,t.window[t.strstart-1]))&&R(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return k}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<C-1?t.strstart:C-1,e===u?(R(t,!0),0===t.strm.avail_out?T:O):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?k:E}function H(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*w),this.dyn_dtree=new r.Buf16(2*(2*b+1)),this.bl_tree=new r.Buf16(2*(2*x+1)),L(this.dyn_ltree),L(this.dyn_dtree),L(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(_+1),this.heap=new r.Buf16(2*y+1),L(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*y+1),L(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function U(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=g,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?S:M,t.adler=2===e.wrap?0:1,e.last_flush=c,o._tr_init(e),h):P(t,d)}function Z(t){var e=U(t);return e===h&&function(t){t.window_size=2*t.w_size,L(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=C-1,t.match_available=0,t.ins_h=0}(t.state),e}function Y(t,e,n,i,o,a){if(!t)return d;var s=1;if(e===p&&(e=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),o<1||v<o||n!==m||i<8||15<i||e<0||9<e||a<0||f<a)return P(t,d);8===i&&(i=9);var l=new W;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+C-1)/C),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=n,Z(t)}i=[new H(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(z(t),0===t.lookahead&&e===c)return k;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,R(t,!1),0===t.strm.avail_out)||t.strstart-t.block_start>=t.w_size-I&&(R(t,!1),0===t.strm.avail_out))return k}return t.insert=0,e===u?(R(t,!0),0===t.strm.avail_out?T:O):(t.strstart>t.block_start&&(R(t,!1),t.strm.avail_out),k)})),new H(4,4,8,4,V),new H(4,5,16,8,V),new H(4,6,32,32,V),new H(4,4,16,16,G),new H(8,16,32,32,G),new H(8,16,128,128,G),new H(8,32,128,256,G),new H(32,128,258,1024,G),new H(32,258,258,4096,G)],n.deflateInit=function(t,e){return Y(t,e,m,15,8,0)},n.deflateInit2=Y,n.deflateReset=Z,n.deflateResetKeep=U,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?d:(t.state.gzhead=e,h):d},n.deflate=function(t,e){var n,r,a,l;if(!t||!t.state||5<e||e<0)return t?P(t,d):d;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&e!==u)return P(t,0===t.avail_out?-5:d);if(r.strm=t,n=r.last_flush,r.last_flush=e,r.status===S)if(2===r.wrap)t.adler=0,B(r,31),B(r,139),B(r,8),r.gzhead?(B(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),B(r,255&r.gzhead.time),B(r,r.gzhead.time>>8&255),B(r,r.gzhead.time>>16&255),B(r,r.gzhead.time>>24&255),B(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),B(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(B(r,255&r.gzhead.extra.length),B(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=s(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(B(r,0),B(r,0),B(r,0),B(r,0),B(r,0),B(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),B(r,3),r.status=M);else{var p=m+(r.w_bits-8<<4)<<8;p|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(p|=32),p+=31-p%31,r.status=M,N(r,p),0!==r.strstart&&(N(r,t.adler>>>16),N(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),D(t),a=r.pending,r.pending!==r.pending_buf_size));)B(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),D(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,B(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),D(t),a=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,B(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>a&&(t.adler=s(t.adler,r.pending_buf,r.pending-a,a)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&D(t),r.pending+2<=r.pending_buf_size&&(B(r,255&t.adler),B(r,t.adler>>8&255),t.adler=0,r.status=M)):r.status=M),0!==r.pending){if(D(t),0===t.avail_out)return r.last_flush=-1,h}else if(0===t.avail_in&&j(e)<=j(n)&&e!==u)return P(t,-5);if(666===r.status&&0!==t.avail_in)return P(t,-5);if(0!==t.avail_in||0!==r.lookahead||e!==c&&666!==r.status){var f=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(z(t),0===t.lookahead)){if(e===c)return k;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(R(t,!1),0===t.strm.avail_out))return k}return t.insert=0,e===u?(R(t,!0),0===t.strm.avail_out?T:O):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?k:E}(r,e):3===r.strategy?function(t,e){for(var n,i,r,a,s=t.window;;){if(t.lookahead<=A){if(z(t),t.lookahead<=A&&e===c)return k;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=C&&0<t.strstart&&(i=s[r=t.strstart-1])===s[++r]&&i===s[++r]&&i===s[++r]){a=t.strstart+A;do{}while(i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&i===s[++r]&&r<a);t.match_length=A-(a-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=C?(n=o._tr_tally(t,1,t.match_length-C),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(R(t,!1),0===t.strm.avail_out))return k}return t.insert=0,e===u?(R(t,!0),0===t.strm.avail_out?T:O):t.last_lit&&(R(t,!1),0===t.strm.avail_out)?k:E}(r,e):i[r.level].func(r,e);if(f!==T&&f!==O||(r.status=666),f===k||f===T)return 0===t.avail_out&&(r.last_flush=-1),h;if(f===E&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(L(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),D(t),0===t.avail_out))return r.last_flush=-1,h}return e!==u?h:r.wrap<=0?1:(2===r.wrap?(B(r,255&t.adler),B(r,t.adler>>8&255),B(r,t.adler>>16&255),B(r,t.adler>>24&255),B(r,255&t.total_in),B(r,t.total_in>>8&255),B(r,t.total_in>>16&255),B(r,t.total_in>>24&255)):(N(r,t.adler>>>16),N(r,65535&t.adler)),D(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?h:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==S&&69!==e&&73!==e&&91!==e&&103!==e&&e!==M&&666!==e?P(t,d):(t.state=null,e===M?P(t,-3):h):d},n.deflateSetDictionary=function(t,e){var n,i,o,s,l,c,u,p,f=e.length;if(!t||!t.state||2===(s=(n=t.state).wrap)||1===s&&n.status!==S||n.lookahead)return d;for(1===s&&(t.adler=a(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(L(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new r.Buf8(n.w_size),r.arraySet(p,e,f-n.w_size,n.w_size,0),e=p,f=n.w_size),l=t.avail_in,c=t.next_in,u=t.input,t.avail_in=f,t.next_in=0,t.input=e,z(n);n.lookahead>=C;){for(i=n.strstart,o=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+C-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=C-1,z(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,t.next_in=c,t.input=u,t.avail_in=l,n.wrap=s,h},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,r,o,a,s,l,c,u,h,d,p,f,g,m,v,y,b,x,w,_,C,A,I,S;n=t.state,i=t.next_in,I=t.input,r=i+(t.avail_in-5),o=t.next_out,S=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,h=n.wnext,d=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{f<15&&(p+=I[i++]<<f,f+=8,p+=I[i++]<<f,f+=8),b=g[p&v];e:for(;;){if(p>>>=x=b>>>24,f-=x,0===(x=b>>>16&255))S[o++]=65535&b;else{if(!(16&x)){if(0==(64&x)){b=g[(65535&b)+(p&(1<<x)-1)];continue e}if(32&x){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&b,(x&=15)&&(f<x&&(p+=I[i++]<<f,f+=8),w+=p&(1<<x)-1,p>>>=x,f-=x),f<15&&(p+=I[i++]<<f,f+=8,p+=I[i++]<<f,f+=8),b=m[p&y];n:for(;;){if(p>>>=x=b>>>24,f-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=m[(65535&b)+(p&(1<<x)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(_=65535&b,f<(x&=15)&&(p+=I[i++]<<f,(f+=8)<x&&(p+=I[i++]<<f,f+=8)),l<(_+=p&(1<<x)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=x,f-=x,(x=o-a)<_){if(u<(x=_-x)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(A=d,(C=0)===h){if(C+=c-x,x<w){for(w-=x;S[o++]=d[C++],--x;);C=o-_,A=S}}else if(h<x){if(C+=c+h-x,(x-=h)<w){for(w-=x;S[o++]=d[C++],--x;);if(C=0,h<w){for(w-=x=h;S[o++]=d[C++],--x;);C=o-_,A=S}}}else if(C+=h-x,x<w){for(w-=x;S[o++]=d[C++],--x;);C=o-_,A=S}for(;2<w;)S[o++]=A[C++],S[o++]=A[C++],S[o++]=A[C++],w-=3;w&&(S[o++]=A[C++],1<w&&(S[o++]=A[C++]))}else{for(C=o-_;S[o++]=S[C++],S[o++]=S[C++],S[o++]=S[C++],2<(w-=3););w&&(S[o++]=S[C++],1<w&&(S[o++]=S[C++]))}break}}break}}while(i<r&&o<s);i-=w=f>>3,p&=(1<<(f-=w<<3))-1,t.next_in=i,t.next_out=o,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=f}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),r=t("./adler32"),o=t("./crc32"),a=t("./inffast"),s=t("./inftrees"),l=1,c=2,u=0,h=-2,d=1,p=852,f=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=d,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(p),e.distcode=e.distdyn=new i.Buf32(f),e.sane=1,e.back=-1,u):h}function y(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,v(t)):h}function b(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?h:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,y(t))):h}function x(t,e){var n,i;return t?(i=new m,(t.state=i).window=null,(n=b(t,e))!==u&&(t.state=null),n):h}var w,_,C=!0;function A(t){if(C){var e;for(w=new i.Buf32(512),_=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(l,t.lens,0,288,w,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(c,t.lens,0,32,_,0,t.work,{bits:5}),C=!1}t.lencode=w,t.lenbits=9,t.distcode=_,t.distbits=5}function I(t,e,n,r){var o,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),r>=a.wsize?(i.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(r<(o=a.wsize-a.wnext)&&(o=r),i.arraySet(a.window,e,n-r,o,a.wnext),(r-=o)?(i.arraySet(a.window,e,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=y,n.inflateReset2=b,n.inflateResetKeep=v,n.inflateInit=function(t){return x(t,15)},n.inflateInit2=x,n.inflate=function(t,e){var n,p,f,m,v,y,b,x,w,_,C,S,M,k,E,T,O,P,j,L,D,R,B,N,F=0,z=new i.Buf8(4),V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(n=t.state).mode&&(n.mode=13),v=t.next_out,f=t.output,b=t.avail_out,m=t.next_in,p=t.input,y=t.avail_in,x=n.hold,w=n.bits,_=y,C=b,R=u;t:for(;;)switch(n.mode){case d:if(0===n.wrap){n.mode=13;break}for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(2&n.wrap&&35615===x){z[n.check=0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0),w=x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&x)<<8)+(x>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&x)){t.msg="unknown compression method",n.mode=30;break}if(w-=4,D=8+(15&(x>>>=4)),0===n.wbits)n.wbits=D;else if(D>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<D,t.adler=n.check=1,n.mode=512&x?10:12,w=x=0;break;case 2:for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(n.flags=x,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=x>>8&1),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),w=x=0,n.mode=3;case 3:for(;w<32;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.head&&(n.head.time=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,z[2]=x>>>16&255,z[3]=x>>>24&255,n.check=o(n.check,z,4,0)),w=x=0,n.mode=4;case 4:for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.head&&(n.head.xflags=255&x,n.head.os=x>>8),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),w=x=0,n.mode=5;case 5:if(1024&n.flags){for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.length=x,n.head&&(n.head.extra_len=x),512&n.flags&&(z[0]=255&x,z[1]=x>>>8&255,n.check=o(n.check,z,2,0)),w=x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(S=n.length)&&(S=y),S&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,p,m,S,D)),512&n.flags&&(n.check=o(n.check,p,S,m)),y-=S,m+=S,n.length-=S),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break t;for(S=0;D=p[m+S++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D)),D&&S<y;);if(512&n.flags&&(n.check=o(n.check,p,S,m)),y-=S,m+=S,D)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===y)break t;for(S=0;D=p[m+S++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D)),D&&S<y;);if(512&n.flags&&(n.check=o(n.check,p,S,m)),y-=S,m+=S,D)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;w<16;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(x!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}w=x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;w<32;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}t.adler=n.check=g(x),w=x=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=v,t.avail_out=b,t.next_in=m,t.avail_in=y,n.hold=x,n.bits=w,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){x>>>=7&w,w-=7&w,n.mode=27;break}for(;w<3;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}switch(n.last=1&x,w-=1,3&(x>>>=1)){case 0:n.mode=14;break;case 1:if(A(n),n.mode=20,6!==e)break;x>>>=2,w-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}x>>>=2,w-=2;break;case 14:for(x>>>=7&w,w-=7&w;w<32;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if((65535&x)!=(x>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&x,w=x=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(S=n.length){if(y<S&&(S=y),b<S&&(S=b),0===S)break t;i.arraySet(f,p,m,S,v),y-=S,m+=S,b-=S,v+=S,n.length-=S;break}n.mode=12;break;case 17:for(;w<14;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(n.nlen=257+(31&x),x>>>=5,w-=5,n.ndist=1+(31&x),x>>>=5,w-=5,n.ncode=4+(15&x),x>>>=4,w-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;w<3;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.lens[V[n.have++]]=7&x,x>>>=3,w-=3}for(;n.have<19;)n.lens[V[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,B={bits:n.lenbits},R=s(0,n.lens,0,19,n.lencode,0,n.work,B),n.lenbits=B.bits,R){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;T=(F=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&F,!((E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(O<16)x>>>=E,w-=E,n.lens[n.have++]=O;else{if(16===O){for(N=E+2;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(x>>>=E,w-=E,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}D=n.lens[n.have-1],S=3+(3&x),x>>>=2,w-=2}else if(17===O){for(N=E+3;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}w-=E,D=0,S=3+(7&(x>>>=E)),x>>>=3,w-=3}else{for(N=E+7;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}w-=E,D=0,S=11+(127&(x>>>=E)),x>>>=7,w-=7}if(n.have+S>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=D}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,B={bits:n.lenbits},R=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,B),n.lenbits=B.bits,R){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,B={bits:n.distbits},R=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,B),n.distbits=B.bits,R){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=y&&258<=b){t.next_out=v,t.avail_out=b,t.next_in=m,t.avail_in=y,n.hold=x,n.bits=w,a(t,C),v=t.next_out,f=t.output,b=t.avail_out,m=t.next_in,p=t.input,y=t.avail_in,x=n.hold,w=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;T=(F=n.lencode[x&(1<<n.lenbits)-1])>>>16&255,O=65535&F,!((E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(T&&0==(240&T)){for(P=E,j=T,L=O;T=(F=n.lencode[L+((x&(1<<P+j)-1)>>P)])>>>16&255,O=65535&F,!(P+(E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}x>>>=P,w-=P,n.back+=P}if(x>>>=E,w-=E,n.back+=E,n.length=O,0===T){n.mode=26;break}if(32&T){n.back=-1,n.mode=12;break}if(64&T){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&T,n.mode=22;case 22:if(n.extra){for(N=n.extra;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.length+=x&(1<<n.extra)-1,x>>>=n.extra,w-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;T=(F=n.distcode[x&(1<<n.distbits)-1])>>>16&255,O=65535&F,!((E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(0==(240&T)){for(P=E,j=T,L=O;T=(F=n.distcode[L+((x&(1<<P+j)-1)>>P)])>>>16&255,O=65535&F,!(P+(E=F>>>24)<=w);){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}x>>>=P,w-=P,n.back+=P}if(x>>>=E,w-=E,n.back+=E,64&T){t.msg="invalid distance code",n.mode=30;break}n.offset=O,n.extra=15&T,n.mode=24;case 24:if(n.extra){for(N=n.extra;w<N;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}n.offset+=x&(1<<n.extra)-1,x>>>=n.extra,w-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===b)break t;if(S=C-b,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}M=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),k=n.window}else k=f,M=v-n.offset,S=n.length;for(b<S&&(S=b),b-=S,n.length-=S;f[v++]=k[M++],--S;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break t;f[v++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;w<32;){if(0===y)break t;y--,x|=p[m++]<<w,w+=8}if(C-=b,t.total_out+=C,n.total+=C,C&&(t.adler=n.check=n.flags?o(n.check,f,C,v-C):r(n.check,f,C,v-C)),C=b,(n.flags?x:g(x))!==n.check){t.msg="incorrect data check",n.mode=30;break}w=x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;w<32;){if(0===y)break t;y--,x+=p[m++]<<w,w+=8}if(x!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}w=x=0}n.mode=29;case 29:R=1;break t;case 30:R=-3;break t;case 31:return-4;case 32:default:return h}return t.next_out=v,t.avail_out=b,t.next_in=m,t.avail_in=y,n.hold=x,n.bits=w,(n.wsize||C!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&I(t,t.output,t.next_out,C-t.avail_out)?(n.mode=31,-4):(_-=t.avail_in,C-=t.avail_out,t.total_in+=_,t.total_out+=C,n.total+=C,n.wrap&&C&&(t.adler=n.check=n.flags?o(n.check,f,C,t.next_out-C):r(n.check,f,C,t.next_out-C)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==_&&0===C||4===e)&&R===u&&(R=-5),R)},n.inflateEnd=function(t){if(!t||!t.state)return h;var e=t.state;return e.window&&(e.window=null),t.state=null,u},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?h:((n.head=e).done=!1,u):h},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?h:11===n.mode&&r(1,e,i,0)!==n.check?-3:I(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,u):h},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,c,u,h,d){var p,f,g,m,v,y,b,x,w,_=d.bits,C=0,A=0,I=0,S=0,M=0,k=0,E=0,T=0,O=0,P=0,j=null,L=0,D=new i.Buf16(16),R=new i.Buf16(16),B=null,N=0;for(C=0;C<=15;C++)D[C]=0;for(A=0;A<l;A++)D[e[n+A]]++;for(M=_,S=15;1<=S&&0===D[S];S--);if(S<M&&(M=S),0===S)return c[u++]=20971520,c[u++]=20971520,d.bits=1,0;for(I=1;I<S&&0===D[I];I++);for(M<I&&(M=I),C=T=1;C<=15;C++)if(T<<=1,(T-=D[C])<0)return-1;if(0<T&&(0===t||1!==S))return-1;for(R[1]=0,C=1;C<15;C++)R[C+1]=R[C]+D[C];for(A=0;A<l;A++)0!==e[n+A]&&(h[R[e[n+A]]++]=A);if(y=0===t?(j=B=h,19):1===t?(j=r,L-=257,B=o,N-=257,256):(j=a,B=s,-1),C=I,v=u,E=A=P=0,g=-1,m=(O=1<<(k=M))-1,1===t&&852<O||2===t&&592<O)return 1;for(;;){for(b=C-E,w=h[A]<y?(x=0,h[A]):h[A]>y?(x=B[N+h[A]],j[L+h[A]]):(x=96,0),p=1<<C-E,I=f=1<<k;c[v+(P>>E)+(f-=p)]=b<<24|x<<16|w|0,0!==f;);for(p=1<<C-1;P&p;)p>>=1;if(0!==p?(P&=p-1,P+=p):P=0,A++,0==--D[C]){if(C===S)break;C=e[n+h[A]]}if(M<C&&(P&m)!==g){for(0===E&&(E=M),v+=I,T=1<<(k=C-E);k+E<S&&!((T-=D[k+E])<=0);)k++,T<<=1;if(O+=1<<k,1===t&&852<O||2===t&&592<O)return 1;c[g=P&m]=M<<24|k<<16|v-u|0}}return 0!==P&&(c[v+P]=4194304|C-E<<24),d.bits=M,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common"),r=0,o=1;function a(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,l=29,c=256,u=c+1+l,h=30,d=19,p=2*u+1,f=15,g=16,m=7,v=256,y=16,b=17,x=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],_=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],I=new Array(2*(u+2));a(I);var S=new Array(2*h);a(S);var M=new Array(512);a(M);var k=new Array(256);a(k);var E=new Array(l);a(E);var T,O,P,j=new Array(h);function L(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function D(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function R(t){return t<256?M[t]:M[256+(t>>>7)]}function B(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function N(t,e,n){t.bi_valid>g-n?(t.bi_buf|=e<<t.bi_valid&65535,B(t,t.bi_buf),t.bi_buf=e>>g-t.bi_valid,t.bi_valid+=n-g):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function F(t,e,n){N(t,n[2*e],n[2*e+1])}function z(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function V(t,e,n){var i,r,o=new Array(f+1),a=0;for(i=1;i<=f;i++)o[i]=a=a+n[i-1]<<1;for(r=0;r<=e;r++){var s=t[2*r+1];0!==s&&(t[2*r]=z(o[s]++,s))}}function G(t){var e;for(e=0;e<u;e++)t.dyn_ltree[2*e]=0;for(e=0;e<h;e++)t.dyn_dtree[2*e]=0;for(e=0;e<d;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*v]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function H(t){8<t.bi_valid?B(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function W(t,e,n,i){var r=2*e,o=2*n;return t[r]<t[o]||t[r]===t[o]&&i[e]<=i[n]}function U(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&W(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!W(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function Z(t,e,n){var i,r,o,a,s=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],r=t.pending_buf[t.l_buf+s],s++,0===i?F(t,r,e):(F(t,(o=k[r])+c+1,e),0!==(a=w[o])&&N(t,r-=E[o],a),F(t,o=R(--i),n),0!==(a=_[o])&&N(t,i-=j[o],a)),s<t.last_lit;);F(t,v,e)}function Y(t,e){var n,i,r,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=p,n=0;n<l;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[r]=0,t.opt_len--,s&&(t.static_len-=a[2*r+1]);for(e.max_code=c,n=t.heap_len>>1;1<=n;n--)U(t,o,n);for(r=l;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,o,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,o[2*r]=o[2*n]+o[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,o[2*n+1]=o[2*i+1]=r,t.heap[1]=r++,U(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,o,a,s,l=e.dyn_tree,c=e.max_code,u=e.stat_desc.static_tree,h=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,m=e.stat_desc.max_length,v=0;for(o=0;o<=f;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<p;n++)m<(o=l[2*l[2*(i=t.heap[n])+1]+1]+1)&&(o=m,v++),l[2*i+1]=o,c<i||(t.bl_count[o]++,a=0,g<=i&&(a=d[i-g]),s=l[2*i],t.opt_len+=s*(o+a),h&&(t.static_len+=s*(u[2*i+1]+a)));if(0!==v){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,v-=2}while(0<v);for(o=m;0!==o;o--)for(i=t.bl_count[o];0!==i;)c<(r=t.heap[--n])||(l[2*r+1]!==o&&(t.opt_len+=(o-l[2*r+1])*l[2*r],l[2*r+1]=o),i--)}}(t,e),V(o,c,t.bl_count)}function X(t,e,n){var i,r,o=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=a,a=e[2*(i+1)+1],++s<l&&r===a||(s<c?t.bl_tree[2*r]+=s:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[2*y]++):s<=10?t.bl_tree[2*b]++:t.bl_tree[2*x]++,o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4))}function q(t,e,n){var i,r,o=-1,a=e[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),i=0;i<=n;i++)if(r=a,a=e[2*(i+1)+1],!(++s<l&&r===a)){if(s<c)for(;F(t,r,t.bl_tree),0!=--s;);else 0!==r?(r!==o&&(F(t,r,t.bl_tree),s--),F(t,y,t.bl_tree),N(t,s-3,2)):s<=10?(F(t,b,t.bl_tree),N(t,s-3,3)):(F(t,x,t.bl_tree),N(t,s-11,7));o=r,c=(s=0)===a?(l=138,3):r===a?(l=6,3):(l=7,4)}}a(j);var K=!1;function Q(t,e,n,r){N(t,(s<<1)+(r?1:0),3),function(t,e,n,r){H(t),r&&(B(t,n),B(t,~n)),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}n._tr_init=function(t){K||(function(){var t,e,n,i,r,o=new Array(f+1);for(i=n=0;i<l-1;i++)for(E[i]=n,t=0;t<1<<w[i];t++)k[n++]=i;for(k[n-1]=i,i=r=0;i<16;i++)for(j[i]=r,t=0;t<1<<_[i];t++)M[r++]=i;for(r>>=7;i<h;i++)for(j[i]=r<<7,t=0;t<1<<_[i]-7;t++)M[256+r++]=i;for(e=0;e<=f;e++)o[e]=0;for(t=0;t<=143;)I[2*t+1]=8,t++,o[8]++;for(;t<=255;)I[2*t+1]=9,t++,o[9]++;for(;t<=279;)I[2*t+1]=7,t++,o[7]++;for(;t<=287;)I[2*t+1]=8,t++,o[8]++;for(V(I,u+1,o),t=0;t<h;t++)S[2*t+1]=5,S[2*t]=z(t,5);T=new L(I,w,c+1,u,f),O=new L(S,_,0,h,f),P=new L(new Array(0),C,0,d,m)}(),K=!0),t.l_desc=new D(t.dyn_ltree,T),t.d_desc=new D(t.dyn_dtree,O),t.bl_desc=new D(t.bl_tree,P),t.bi_buf=0,t.bi_valid=0,G(t)},n._tr_stored_block=Q,n._tr_flush_block=function(t,e,n,i){var a,s,l=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return r;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return o;for(e=32;e<c;e++)if(0!==t.dyn_ltree[2*e])return o;return r}(t)),Y(t,t.l_desc),Y(t,t.d_desc),l=function(t){var e;for(X(t,t.dyn_ltree,t.l_desc.max_code),X(t,t.dyn_dtree,t.d_desc.max_code),Y(t,t.bl_desc),e=d-1;3<=e&&0===t.bl_tree[2*A[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),a=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==e?Q(t,e,n,i):4===t.strategy||s===a?(N(t,2+(i?1:0),3),Z(t,I,S)):(N(t,4+(i?1:0),3),function(t,e,n,i){var r;for(N(t,e-257,5),N(t,n-1,5),N(t,i-4,4),r=0;r<i;r++)N(t,t.bl_tree[2*A[r]+1],3);q(t,t.dyn_ltree,e-1),q(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,l+1),Z(t,t.dyn_ltree,t.dyn_dtree)),G(t),i&&H(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(k[n]+c+1)]++,t.dyn_dtree[2*R(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){N(t,2,3),F(t,v,I),function(t){16===t.bi_valid?(B(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,n){(function(t){(function(t,e){"use strict";if(!t.setImmediate){var n,r,o,a,s=1,l={},c=!1,u=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,n="[object process]"==={}.toString.call(t.process)?function(t){i.nextTick((function(){p(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(a="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",f,!1):t.attachEvent("onmessage",f),function(e){t.postMessage(a+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},function(t){o.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(t){var e=u.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(p,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var r={callback:t,args:e};return l[s]=r,n(s),s++},h.clearImmediate=d}function d(t){delete l[t]}function p(t){if(c)setTimeout(p,0,t);else{var n=l[t];if(n){c=!0;try{(function(t){var n=t.callback,i=t.args;switch(i.length){case 0:n();break;case 1:n(i[0]);break;case 2:n(i[0],i[1]);break;case 3:n(i[0],i[1],i[2]);break;default:n.apply(e,i)}})(n)}finally{d(t),c=!1}}}}function f(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))}})("undefined"==typeof self?void 0===t?this:t:self)}).call(this,"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))},7637:function(t,e,n){"use strict";n.r(e),n.d(e,{BooleanController:function(){return r},ColorController:function(){return h},Controller:function(){return i},FunctionController:function(){return d},GUI:function(){return b},NumberController:function(){return p},OptionController:function(){return f},StringController:function(){return g}});
/**
 * lil-gui
 * https://lil-gui.georgealways.com
 * @version 0.17.0
 * @author George Michael Brower
 * @license MIT
 */
class i{constructor(t,e,n,r,o="div"){this.parent=t,this.object=e,this.property=n,this._disabled=!1,this._hidden=!1,this.initialValue=this.getValue(),this.domElement=document.createElement("div"),this.domElement.classList.add("controller"),this.domElement.classList.add(r),this.$name=document.createElement("div"),this.$name.classList.add("name"),i.nextNameID=i.nextNameID||0,this.$name.id=`lil-gui-name-${++i.nextNameID}`,this.$widget=document.createElement(o),this.$widget.classList.add("widget"),this.$disable=this.$widget,this.domElement.appendChild(this.$name),this.domElement.appendChild(this.$widget),this.parent.children.push(this),this.parent.controllers.push(this),this.parent.$children.appendChild(this.domElement),this._listenCallback=this._listenCallback.bind(this),this.name(n)}name(t){return this._name=t,this.$name.innerHTML=t,this}onChange(t){return this._onChange=t,this}_callOnChange(){this.parent._callOnChange(this),void 0!==this._onChange&&this._onChange.call(this,this.getValue()),this._changed=!0}onFinishChange(t){return this._onFinishChange=t,this}_callOnFinishChange(){this._changed&&(this.parent._callOnFinishChange(this),void 0!==this._onFinishChange&&this._onFinishChange.call(this,this.getValue())),this._changed=!1}reset(){return this.setValue(this.initialValue),this._callOnFinishChange(),this}enable(t=!0){return this.disable(!t)}disable(t=!0){return t===this._disabled?this:(this._disabled=t,this.domElement.classList.toggle("disabled",t),this.$disable.toggleAttribute("disabled",t),this)}show(t=!0){return this._hidden=!t,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}options(t){const e=this.parent.add(this.object,this.property,t);return e.name(this._name),this.destroy(),e}min(t){return this}max(t){return this}step(t){return this}decimals(t){return this}listen(t=!0){return this._listening=t,void 0!==this._listenCallbackID&&(cancelAnimationFrame(this._listenCallbackID),this._listenCallbackID=void 0),this._listening&&this._listenCallback(),this}_listenCallback(){this._listenCallbackID=requestAnimationFrame(this._listenCallback);const t=this.save();t!==this._listenPrevValue&&this.updateDisplay(),this._listenPrevValue=t}getValue(){return this.object[this.property]}setValue(t){return this.object[this.property]=t,this._callOnChange(),this.updateDisplay(),this}updateDisplay(){return this}load(t){return this.setValue(t),this._callOnFinishChange(),this}save(){return this.getValue()}destroy(){this.listen(!1),this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.controllers.splice(this.parent.controllers.indexOf(this),1),this.parent.$children.removeChild(this.domElement)}}class r extends i{constructor(t,e,n){super(t,e,n,"boolean","label"),this.$input=document.createElement("input"),this.$input.setAttribute("type","checkbox"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$input.addEventListener("change",()=>{this.setValue(this.$input.checked),this._callOnFinishChange()}),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.checked=this.getValue(),this}}function o(t){let e,n;return(e=t.match(/(#|0x)?([a-f0-9]{6})/i))?n=e[2]:(e=t.match(/rgb\(\s*(\d*)\s*,\s*(\d*)\s*,\s*(\d*)\s*\)/))?n=parseInt(e[1]).toString(16).padStart(2,0)+parseInt(e[2]).toString(16).padStart(2,0)+parseInt(e[3]).toString(16).padStart(2,0):(e=t.match(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i))&&(n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),!!n&&"#"+n}const a={isPrimitive:!0,match:t=>"string"==typeof t,fromHexString:o,toHexString:o},s={isPrimitive:!0,match:t=>"number"==typeof t,fromHexString:t=>parseInt(t.substring(1),16),toHexString:t=>"#"+t.toString(16).padStart(6,0)},l={isPrimitive:!1,match:Array.isArray,fromHexString(t,e,n=1){const i=s.fromHexString(t);e[0]=(i>>16&255)/255*n,e[1]=(i>>8&255)/255*n,e[2]=(255&i)/255*n},toHexString([t,e,n],i=1){i=255/i;const r=t*i<<16^e*i<<8^n*i<<0;return s.toHexString(r)}},c=[a,s,l,{isPrimitive:!1,match:t=>Object(t)===t,fromHexString(t,e,n=1){const i=s.fromHexString(t);e.r=(i>>16&255)/255*n,e.g=(i>>8&255)/255*n,e.b=(255&i)/255*n},toHexString({r:t,g:e,b:n},i=1){i=255/i;const r=t*i<<16^e*i<<8^n*i<<0;return s.toHexString(r)}}];function u(t){return c.find(e=>e.match(t))}class h extends i{constructor(t,e,n,i){super(t,e,n,"color"),this.$input=document.createElement("input"),this.$input.setAttribute("type","color"),this.$input.setAttribute("tabindex",-1),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$text=document.createElement("input"),this.$text.setAttribute("type","text"),this.$text.setAttribute("spellcheck","false"),this.$text.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this.$display.appendChild(this.$input),this.$widget.appendChild(this.$display),this.$widget.appendChild(this.$text),this._format=u(this.initialValue),this._rgbScale=i,this._initialValueHexString=this.save(),this._textFocused=!1,this.$input.addEventListener("input",()=>{this._setValueFromHexString(this.$input.value)}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$text.addEventListener("input",()=>{const t=o(this.$text.value);t&&this._setValueFromHexString(t)}),this.$text.addEventListener("focus",()=>{this._textFocused=!0,this.$text.select()}),this.$text.addEventListener("blur",()=>{this._textFocused=!1,this.updateDisplay(),this._callOnFinishChange()}),this.$disable=this.$text,this.updateDisplay()}reset(){return this._setValueFromHexString(this._initialValueHexString),this}_setValueFromHexString(t){if(this._format.isPrimitive){const e=this._format.fromHexString(t);this.setValue(e)}else this._format.fromHexString(t,this.getValue(),this._rgbScale),this._callOnChange(),this.updateDisplay()}save(){return this._format.toHexString(this.getValue(),this._rgbScale)}load(t){return this._setValueFromHexString(t),this._callOnFinishChange(),this}updateDisplay(){return this.$input.value=this._format.toHexString(this.getValue(),this._rgbScale),this._textFocused||(this.$text.value=this.$input.value.substring(1)),this.$display.style.backgroundColor=this.$input.value,this}}class d extends i{constructor(t,e,n){super(t,e,n,"function"),this.$button=document.createElement("button"),this.$button.appendChild(this.$name),this.$widget.appendChild(this.$button),this.$button.addEventListener("click",t=>{t.preventDefault(),this.getValue().call(this.object)}),this.$button.addEventListener("touchstart",()=>{},{passive:!0}),this.$disable=this.$button}}class p extends i{constructor(t,e,n,i,r,o){super(t,e,n,"number"),this._initInput(),this.min(i),this.max(r);const a=void 0!==o;this.step(a?o:this._getImplicitStep(),a),this.updateDisplay()}decimals(t){return this._decimals=t,this.updateDisplay(),this}min(t){return this._min=t,this._onUpdateMinMax(),this}max(t){return this._max=t,this._onUpdateMinMax(),this}step(t,e=!0){return this._step=t,this._stepExplicit=e,this}updateDisplay(){const t=this.getValue();if(this._hasSlider){let e=(t-this._min)/(this._max-this._min);e=Math.max(0,Math.min(e,1)),this.$fill.style.width=100*e+"%"}return this._inputFocused||(this.$input.value=void 0===this._decimals?t:t.toFixed(this._decimals)),this}_initInput(){this.$input=document.createElement("input"),this.$input.setAttribute("type","number"),this.$input.setAttribute("step","any"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$widget.appendChild(this.$input),this.$disable=this.$input;const t=()=>{let t=parseFloat(this.$input.value);isNaN(t)||(this._stepExplicit&&(t=this._snap(t)),this.setValue(this._clamp(t)))},e=t=>{const e=parseFloat(this.$input.value);isNaN(e)||(this._snapClampSetValue(e+t),this.$input.value=this.getValue())},n=t=>{"Enter"===t.code&&this.$input.blur(),"ArrowUp"===t.code&&(t.preventDefault(),e(this._step*this._arrowKeyMultiplier(t))),"ArrowDown"===t.code&&(t.preventDefault(),e(this._step*this._arrowKeyMultiplier(t)*-1))},i=t=>{this._inputFocused&&(t.preventDefault(),e(this._step*this._normalizeMouseWheel(t)))};let r,o,a,s,l,c=!1;const u=5,h=t=>{r=t.clientX,o=a=t.clientY,c=!0,s=this.getValue(),l=0,window.addEventListener("mousemove",d),window.addEventListener("mouseup",p)},d=t=>{if(c){const e=t.clientX-r,n=t.clientY-o;Math.abs(n)>u?(t.preventDefault(),this.$input.blur(),c=!1,this._setDraggingStyle(!0,"vertical")):Math.abs(e)>u&&p()}c||(l-=(t.clientY-a)*this._step*this._arrowKeyMultiplier(t),s+l>this._max?l=this._max-s:s+l<this._min&&(l=this._min-s),this._snapClampSetValue(s+l)),a=t.clientY},p=()=>{this._setDraggingStyle(!1,"vertical"),this._callOnFinishChange(),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p)},f=()=>{this._inputFocused=!0},g=()=>{this._inputFocused=!1,this.updateDisplay(),this._callOnFinishChange()};this.$input.addEventListener("input",t),this.$input.addEventListener("keydown",n),this.$input.addEventListener("wheel",i,{passive:!1}),this.$input.addEventListener("mousedown",h),this.$input.addEventListener("focus",f),this.$input.addEventListener("blur",g)}_initSlider(){this._hasSlider=!0,this.$slider=document.createElement("div"),this.$slider.classList.add("slider"),this.$fill=document.createElement("div"),this.$fill.classList.add("fill"),this.$slider.appendChild(this.$fill),this.$widget.insertBefore(this.$slider,this.$input),this.domElement.classList.add("hasSlider");const t=(t,e,n,i,r)=>(t-e)/(n-e)*(r-i)+i,e=e=>{const n=this.$slider.getBoundingClientRect();let i=t(e,n.left,n.right,this._min,this._max);this._snapClampSetValue(i)},n=t=>{this._setDraggingStyle(!0),e(t.clientX),window.addEventListener("mousemove",i),window.addEventListener("mouseup",r)},i=t=>{e(t.clientX)},r=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",r)};let o,a,s=!1;const l=t=>{t.preventDefault(),this._setDraggingStyle(!0),e(t.touches[0].clientX),s=!1},c=t=>{t.touches.length>1||(this._hasScrollBar?(o=t.touches[0].clientX,a=t.touches[0].clientY,s=!0):l(t),window.addEventListener("touchmove",u,{passive:!1}),window.addEventListener("touchend",h))},u=t=>{if(s){const e=t.touches[0].clientX-o,n=t.touches[0].clientY-a;Math.abs(e)>Math.abs(n)?l(t):(window.removeEventListener("touchmove",u),window.removeEventListener("touchend",h))}else t.preventDefault(),e(t.touches[0].clientX)},h=()=>{this._callOnFinishChange(),this._setDraggingStyle(!1),window.removeEventListener("touchmove",u),window.removeEventListener("touchend",h)},d=this._callOnFinishChange.bind(this),p=400;let f;const g=t=>{if(Math.abs(t.deltaX)<Math.abs(t.deltaY)&&this._hasScrollBar)return;t.preventDefault();const e=this._normalizeMouseWheel(t)*this._step;this._snapClampSetValue(this.getValue()+e),this.$input.value=this.getValue(),clearTimeout(f),f=setTimeout(d,p)};this.$slider.addEventListener("mousedown",n),this.$slider.addEventListener("touchstart",c,{passive:!1}),this.$slider.addEventListener("wheel",g,{passive:!1})}_setDraggingStyle(t,e="horizontal"){this.$slider&&this.$slider.classList.toggle("active",t),document.body.classList.toggle("lil-gui-dragging",t),document.body.classList.toggle(`lil-gui-${e}`,t)}_getImplicitStep(){return this._hasMin&&this._hasMax?(this._max-this._min)/1e3:.1}_onUpdateMinMax(){!this._hasSlider&&this._hasMin&&this._hasMax&&(this._stepExplicit||this.step(this._getImplicitStep(),!1),this._initSlider(),this.updateDisplay())}_normalizeMouseWheel(t){let{deltaX:e,deltaY:n}=t;return Math.floor(t.deltaY)!==t.deltaY&&t.wheelDelta&&(e=0,n=-t.wheelDelta/120,n*=this._stepExplicit?1:10),e+-n}_arrowKeyMultiplier(t){let e=this._stepExplicit?1:10;return t.shiftKey?e*=10:t.altKey&&(e/=10),e}_snap(t){const e=Math.round(t/this._step)*this._step;return parseFloat(e.toPrecision(15))}_clamp(t){return t<this._min&&(t=this._min),t>this._max&&(t=this._max),t}_snapClampSetValue(t){this.setValue(this._clamp(this._snap(t)))}get _hasScrollBar(){const t=this.parent.root.$children;return t.scrollHeight>t.clientHeight}get _hasMin(){return void 0!==this._min}get _hasMax(){return void 0!==this._max}}class f extends i{constructor(t,e,n,i){super(t,e,n,"option"),this.$select=document.createElement("select"),this.$select.setAttribute("aria-labelledby",this.$name.id),this.$display=document.createElement("div"),this.$display.classList.add("display"),this._values=Array.isArray(i)?i:Object.values(i),this._names=Array.isArray(i)?i:Object.keys(i),this._names.forEach(t=>{const e=document.createElement("option");e.innerHTML=t,this.$select.appendChild(e)}),this.$select.addEventListener("change",()=>{this.setValue(this._values[this.$select.selectedIndex]),this._callOnFinishChange()}),this.$select.addEventListener("focus",()=>{this.$display.classList.add("focus")}),this.$select.addEventListener("blur",()=>{this.$display.classList.remove("focus")}),this.$widget.appendChild(this.$select),this.$widget.appendChild(this.$display),this.$disable=this.$select,this.updateDisplay()}updateDisplay(){const t=this.getValue(),e=this._values.indexOf(t);return this.$select.selectedIndex=e,this.$display.innerHTML=-1===e?t:this._names[e],this}}class g extends i{constructor(t,e,n){super(t,e,n,"string"),this.$input=document.createElement("input"),this.$input.setAttribute("type","text"),this.$input.setAttribute("aria-labelledby",this.$name.id),this.$input.addEventListener("input",()=>{this.setValue(this.$input.value)}),this.$input.addEventListener("keydown",t=>{"Enter"===t.code&&this.$input.blur()}),this.$input.addEventListener("blur",()=>{this._callOnFinishChange()}),this.$widget.appendChild(this.$input),this.$disable=this.$input,this.updateDisplay()}updateDisplay(){return this.$input.value=this.getValue(),this}}const m='.lil-gui {\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n  line-height: 1;\n  font-weight: normal;\n  font-style: normal;\n  text-align: left;\n  background-color: var(--background-color);\n  color: var(--text-color);\n  user-select: none;\n  -webkit-user-select: none;\n  touch-action: manipulation;\n  --background-color: #1f1f1f;\n  --text-color: #ebebeb;\n  --title-background-color: #111111;\n  --title-text-color: #ebebeb;\n  --widget-color: #424242;\n  --hover-color: #4f4f4f;\n  --focus-color: #595959;\n  --number-color: #2cc9ff;\n  --string-color: #a2db3c;\n  --font-size: 11px;\n  --input-font-size: 11px;\n  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;\n  --font-family-mono: Menlo, Monaco, Consolas, "Droid Sans Mono", monospace;\n  --padding: 4px;\n  --spacing: 4px;\n  --widget-height: 20px;\n  --name-width: 45%;\n  --slider-knob-width: 2px;\n  --slider-input-width: 27%;\n  --color-input-width: 27%;\n  --slider-input-min-width: 45px;\n  --color-input-min-width: 45px;\n  --folder-indent: 7px;\n  --widget-padding: 0 0 0 3px;\n  --widget-border-radius: 2px;\n  --checkbox-size: calc(0.75 * var(--widget-height));\n  --scrollbar-width: 5px;\n}\n.lil-gui, .lil-gui * {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n}\n.lil-gui.root {\n  width: var(--width, 245px);\n  display: flex;\n  flex-direction: column;\n}\n.lil-gui.root > .title {\n  background: var(--title-background-color);\n  color: var(--title-text-color);\n}\n.lil-gui.root > .children {\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n.lil-gui.root > .children::-webkit-scrollbar {\n  width: var(--scrollbar-width);\n  height: var(--scrollbar-width);\n  background: var(--background-color);\n}\n.lil-gui.root > .children::-webkit-scrollbar-thumb {\n  border-radius: var(--scrollbar-width);\n  background: var(--focus-color);\n}\n@media (pointer: coarse) {\n  .lil-gui.allow-touch-styles {\n    --widget-height: 28px;\n    --padding: 6px;\n    --spacing: 6px;\n    --font-size: 13px;\n    --input-font-size: 16px;\n    --folder-indent: 10px;\n    --scrollbar-width: 7px;\n    --slider-input-min-width: 50px;\n    --color-input-min-width: 65px;\n  }\n}\n.lil-gui.force-touch-styles {\n  --widget-height: 28px;\n  --padding: 6px;\n  --spacing: 6px;\n  --font-size: 13px;\n  --input-font-size: 16px;\n  --folder-indent: 10px;\n  --scrollbar-width: 7px;\n  --slider-input-min-width: 50px;\n  --color-input-min-width: 65px;\n}\n.lil-gui.autoPlace {\n  max-height: 100%;\n  position: fixed;\n  top: 0;\n  right: 15px;\n  z-index: 1001;\n}\n\n.lil-gui .controller {\n  display: flex;\n  align-items: center;\n  padding: 0 var(--padding);\n  margin: var(--spacing) 0;\n}\n.lil-gui .controller.disabled {\n  opacity: 0.5;\n}\n.lil-gui .controller.disabled, .lil-gui .controller.disabled * {\n  pointer-events: none !important;\n}\n.lil-gui .controller > .name {\n  min-width: var(--name-width);\n  flex-shrink: 0;\n  white-space: pre;\n  padding-right: var(--spacing);\n  line-height: var(--widget-height);\n}\n.lil-gui .controller .widget {\n  position: relative;\n  display: flex;\n  align-items: center;\n  width: 100%;\n  min-height: var(--widget-height);\n}\n.lil-gui .controller.string input {\n  color: var(--string-color);\n}\n.lil-gui .controller.boolean .widget {\n  cursor: pointer;\n}\n.lil-gui .controller.color .display {\n  width: 100%;\n  height: var(--widget-height);\n  border-radius: var(--widget-border-radius);\n  position: relative;\n}\n@media (hover: hover) {\n  .lil-gui .controller.color .display:hover:before {\n    content: " ";\n    display: block;\n    position: absolute;\n    border-radius: var(--widget-border-radius);\n    border: 1px solid #fff9;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n  }\n}\n.lil-gui .controller.color input[type=color] {\n  opacity: 0;\n  width: 100%;\n  height: 100%;\n  cursor: pointer;\n}\n.lil-gui .controller.color input[type=text] {\n  margin-left: var(--spacing);\n  font-family: var(--font-family-mono);\n  min-width: var(--color-input-min-width);\n  width: var(--color-input-width);\n  flex-shrink: 0;\n}\n.lil-gui .controller.option select {\n  opacity: 0;\n  position: absolute;\n  width: 100%;\n  max-width: 100%;\n}\n.lil-gui .controller.option .display {\n  position: relative;\n  pointer-events: none;\n  border-radius: var(--widget-border-radius);\n  height: var(--widget-height);\n  line-height: var(--widget-height);\n  max-width: 100%;\n  overflow: hidden;\n  word-break: break-all;\n  padding-left: 0.55em;\n  padding-right: 1.75em;\n  background: var(--widget-color);\n}\n@media (hover: hover) {\n  .lil-gui .controller.option .display.focus {\n    background: var(--focus-color);\n  }\n}\n.lil-gui .controller.option .display.active {\n  background: var(--focus-color);\n}\n.lil-gui .controller.option .display:after {\n  font-family: "lil-gui";\n  content: "↕";\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding-right: 0.375em;\n}\n.lil-gui .controller.option .widget,\n.lil-gui .controller.option select {\n  cursor: pointer;\n}\n@media (hover: hover) {\n  .lil-gui .controller.option .widget:hover .display {\n    background: var(--hover-color);\n  }\n}\n.lil-gui .controller.number input {\n  color: var(--number-color);\n}\n.lil-gui .controller.number.hasSlider input {\n  margin-left: var(--spacing);\n  width: var(--slider-input-width);\n  min-width: var(--slider-input-min-width);\n  flex-shrink: 0;\n}\n.lil-gui .controller.number .slider {\n  width: 100%;\n  height: var(--widget-height);\n  background-color: var(--widget-color);\n  border-radius: var(--widget-border-radius);\n  padding-right: var(--slider-knob-width);\n  overflow: hidden;\n  cursor: ew-resize;\n  touch-action: pan-y;\n}\n@media (hover: hover) {\n  .lil-gui .controller.number .slider:hover {\n    background-color: var(--hover-color);\n  }\n}\n.lil-gui .controller.number .slider.active {\n  background-color: var(--focus-color);\n}\n.lil-gui .controller.number .slider.active .fill {\n  opacity: 0.95;\n}\n.lil-gui .controller.number .fill {\n  height: 100%;\n  border-right: var(--slider-knob-width) solid var(--number-color);\n  box-sizing: content-box;\n}\n\n.lil-gui-dragging .lil-gui {\n  --hover-color: var(--widget-color);\n}\n.lil-gui-dragging * {\n  cursor: ew-resize !important;\n}\n\n.lil-gui-dragging.lil-gui-vertical * {\n  cursor: ns-resize !important;\n}\n\n.lil-gui .title {\n  --title-height: calc(var(--widget-height) + var(--spacing) * 1.25);\n  height: var(--title-height);\n  line-height: calc(var(--title-height) - 4px);\n  font-weight: 600;\n  padding: 0 var(--padding);\n  -webkit-tap-highlight-color: transparent;\n  cursor: pointer;\n  outline: none;\n  text-decoration-skip: objects;\n}\n.lil-gui .title:before {\n  font-family: "lil-gui";\n  content: "▾";\n  padding-right: 2px;\n  display: inline-block;\n}\n.lil-gui .title:active {\n  background: var(--title-background-color);\n  opacity: 0.75;\n}\n@media (hover: hover) {\n  body:not(.lil-gui-dragging) .lil-gui .title:hover {\n    background: var(--title-background-color);\n    opacity: 0.85;\n  }\n  .lil-gui .title:focus {\n    text-decoration: underline var(--focus-color);\n  }\n}\n.lil-gui.root > .title:focus {\n  text-decoration: none !important;\n}\n.lil-gui.closed > .title:before {\n  content: "▸";\n}\n.lil-gui.closed > .children {\n  transform: translateY(-7px);\n  opacity: 0;\n}\n.lil-gui.closed:not(.transition) > .children {\n  display: none;\n}\n.lil-gui.transition > .children {\n  transition-duration: 300ms;\n  transition-property: height, opacity, transform;\n  transition-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1);\n  overflow: hidden;\n  pointer-events: none;\n}\n.lil-gui .children:empty:before {\n  content: "Empty";\n  padding: 0 var(--padding);\n  margin: var(--spacing) 0;\n  display: block;\n  height: var(--widget-height);\n  font-style: italic;\n  line-height: var(--widget-height);\n  opacity: 0.5;\n}\n.lil-gui.root > .children > .lil-gui > .title {\n  border: 0 solid var(--widget-color);\n  border-width: 1px 0;\n  transition: border-color 300ms;\n}\n.lil-gui.root > .children > .lil-gui.closed > .title {\n  border-bottom-color: transparent;\n}\n.lil-gui + .controller {\n  border-top: 1px solid var(--widget-color);\n  margin-top: 0;\n  padding-top: var(--spacing);\n}\n.lil-gui .lil-gui .lil-gui > .title {\n  border: none;\n}\n.lil-gui .lil-gui .lil-gui > .children {\n  border: none;\n  margin-left: var(--folder-indent);\n  border-left: 2px solid var(--widget-color);\n}\n.lil-gui .lil-gui .controller {\n  border: none;\n}\n\n.lil-gui input {\n  -webkit-tap-highlight-color: transparent;\n  border: 0;\n  outline: none;\n  font-family: var(--font-family);\n  font-size: var(--input-font-size);\n  border-radius: var(--widget-border-radius);\n  height: var(--widget-height);\n  background: var(--widget-color);\n  color: var(--text-color);\n  width: 100%;\n}\n@media (hover: hover) {\n  .lil-gui input:hover {\n    background: var(--hover-color);\n  }\n  .lil-gui input:active {\n    background: var(--focus-color);\n  }\n}\n.lil-gui input:disabled {\n  opacity: 1;\n}\n.lil-gui input[type=text],\n.lil-gui input[type=number] {\n  padding: var(--widget-padding);\n}\n.lil-gui input[type=text]:focus,\n.lil-gui input[type=number]:focus {\n  background: var(--focus-color);\n}\n.lil-gui input::-webkit-outer-spin-button,\n.lil-gui input::-webkit-inner-spin-button {\n  -webkit-appearance: none;\n  margin: 0;\n}\n.lil-gui input[type=number] {\n  -moz-appearance: textfield;\n}\n.lil-gui input[type=checkbox] {\n  appearance: none;\n  -webkit-appearance: none;\n  height: var(--checkbox-size);\n  width: var(--checkbox-size);\n  border-radius: var(--widget-border-radius);\n  text-align: center;\n  cursor: pointer;\n}\n.lil-gui input[type=checkbox]:checked:before {\n  font-family: "lil-gui";\n  content: "✓";\n  font-size: var(--checkbox-size);\n  line-height: var(--checkbox-size);\n}\n@media (hover: hover) {\n  .lil-gui input[type=checkbox]:focus {\n    box-shadow: inset 0 0 0 1px var(--focus-color);\n  }\n}\n.lil-gui button {\n  -webkit-tap-highlight-color: transparent;\n  outline: none;\n  cursor: pointer;\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n  color: var(--text-color);\n  width: 100%;\n  height: var(--widget-height);\n  text-transform: none;\n  background: var(--widget-color);\n  border-radius: var(--widget-border-radius);\n  border: 1px solid var(--widget-color);\n  text-align: center;\n  line-height: calc(var(--widget-height) - 4px);\n}\n@media (hover: hover) {\n  .lil-gui button:hover {\n    background: var(--hover-color);\n    border-color: var(--hover-color);\n  }\n  .lil-gui button:focus {\n    border-color: var(--focus-color);\n  }\n}\n.lil-gui button:active {\n  background: var(--focus-color);\n}\n\n@font-face {\n  font-family: "lil-gui";\n  src: url("data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAAUsAAsAAAAACJwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAH4AAADAImwmYE9TLzIAAAGIAAAAPwAAAGBKqH5SY21hcAAAAcgAAAD0AAACrukyyJBnbHlmAAACvAAAAF8AAACEIZpWH2hlYWQAAAMcAAAAJwAAADZfcj2zaGhlYQAAA0QAAAAYAAAAJAC5AHhobXR4AAADXAAAABAAAABMAZAAAGxvY2EAAANsAAAAFAAAACgCEgIybWF4cAAAA4AAAAAeAAAAIAEfABJuYW1lAAADoAAAASIAAAIK9SUU/XBvc3QAAATEAAAAZgAAAJCTcMc2eJxVjbEOgjAURU+hFRBK1dGRL+ALnAiToyMLEzFpnPz/eAshwSa97517c/MwwJmeB9kwPl+0cf5+uGPZXsqPu4nvZabcSZldZ6kfyWnomFY/eScKqZNWupKJO6kXN3K9uCVoL7iInPr1X5baXs3tjuMqCtzEuagm/AAlzQgPAAB4nGNgYRBlnMDAysDAYM/gBiT5oLQBAwuDJAMDEwMrMwNWEJDmmsJwgCFeXZghBcjlZMgFCzOiKOIFAB71Bb8AeJy1kjFuwkAQRZ+DwRAwBtNQRUGKQ8OdKCAWUhAgKLhIuAsVSpWz5Bbkj3dEgYiUIszqWdpZe+Z7/wB1oCYmIoboiwiLT2WjKl/jscrHfGg/pKdMkyklC5Zs2LEfHYpjcRoPzme9MWWmk3dWbK9ObkWkikOetJ554fWyoEsmdSlt+uR0pCJR34b6t/TVg1SY3sYvdf8vuiKrpyaDXDISiegp17p7579Gp3p++y7HPAiY9pmTibljrr85qSidtlg4+l25GLCaS8e6rRxNBmsnERunKbaOObRz7N72ju5vdAjYpBXHgJylOAVsMseDAPEP8LYoUHicY2BiAAEfhiAGJgZWBgZ7RnFRdnVJELCQlBSRlATJMoLV2DK4glSYs6ubq5vbKrJLSbGrgEmovDuDJVhe3VzcXFwNLCOILB/C4IuQ1xTn5FPilBTj5FPmBAB4WwoqAHicY2BkYGAA4sk1sR/j+W2+MnAzpDBgAyEMQUCSg4EJxAEAwUgFHgB4nGNgZGBgSGFggJMhDIwMqEAYAByHATJ4nGNgAIIUNEwmAABl3AGReJxjYAACIQYlBiMGJ3wQAEcQBEV4nGNgZGBgEGZgY2BiAAEQyQWEDAz/wXwGAAsPATIAAHicXdBNSsNAHAXwl35iA0UQXYnMShfS9GPZA7T7LgIu03SSpkwzYTIt1BN4Ak/gKTyAeCxfw39jZkjymzcvAwmAW/wgwHUEGDb36+jQQ3GXGot79L24jxCP4gHzF/EIr4jEIe7wxhOC3g2TMYy4Q7+Lu/SHuEd/ivt4wJd4wPxbPEKMX3GI5+DJFGaSn4qNzk8mcbKSR6xdXdhSzaOZJGtdapd4vVPbi6rP+cL7TGXOHtXKll4bY1Xl7EGnPtp7Xy2n00zyKLVHfkHBa4IcJ2oD3cgggWvt/V/FbDrUlEUJhTn/0azVWbNTNr0Ens8de1tceK9xZmfB1CPjOmPH4kitmvOubcNpmVTN3oFJyjzCvnmrwhJTzqzVj9jiSX911FjeAAB4nG3HMRKCMBBA0f0giiKi4DU8k0V2GWbIZDOh4PoWWvq6J5V8If9NVNQcaDhyouXMhY4rPTcG7jwYmXhKq8Wz+p762aNaeYXom2n3m2dLTVgsrCgFJ7OTmIkYbwIbC6vIB7WmFfAAAA==") format("woff");\n}';function v(t){const e=document.createElement("style");e.innerHTML=t;const n=document.querySelector("head link[rel=stylesheet], head style");n?document.head.insertBefore(e,n):document.head.appendChild(e)}let y=!1;class b{constructor({parent:t,autoPlace:e=void 0===t,container:n,width:i,title:r="Controls",injectStyles:o=!0,touchStyles:a=!0}={}){if(this.parent=t,this.root=t?t.root:this,this.children=[],this.controllers=[],this.folders=[],this._closed=!1,this._hidden=!1,this.domElement=document.createElement("div"),this.domElement.classList.add("lil-gui"),this.$title=document.createElement("div"),this.$title.classList.add("title"),this.$title.setAttribute("role","button"),this.$title.setAttribute("aria-expanded",!0),this.$title.setAttribute("tabindex",0),this.$title.addEventListener("click",()=>this.openAnimated(this._closed)),this.$title.addEventListener("keydown",t=>{("Enter"===t.code||"Space"===t.code)&&(t.preventDefault(),this.$title.click())}),this.$title.addEventListener("touchstart",()=>{},{passive:!0}),this.$children=document.createElement("div"),this.$children.classList.add("children"),this.domElement.appendChild(this.$title),this.domElement.appendChild(this.$children),this.title(r),a&&this.domElement.classList.add("allow-touch-styles"),this.parent)return this.parent.children.push(this),this.parent.folders.push(this),void this.parent.$children.appendChild(this.domElement);this.domElement.classList.add("root"),!y&&o&&(v(m),y=!0),n?n.appendChild(this.domElement):e&&(this.domElement.classList.add("autoPlace"),document.body.appendChild(this.domElement)),i&&this.domElement.style.setProperty("--width",i+"px"),this.domElement.addEventListener("keydown",t=>t.stopPropagation()),this.domElement.addEventListener("keyup",t=>t.stopPropagation())}add(t,e,n,i,o){if(Object(n)===n)return new f(this,t,e,n);const a=t[e];switch(typeof a){case"number":return new p(this,t,e,n,i,o);case"boolean":return new r(this,t,e);case"string":return new g(this,t,e);case"function":return new d(this,t,e)}console.error("gui.add failed\n\tproperty:",e,"\n\tobject:",t,"\n\tvalue:",a)}addColor(t,e,n=1){return new h(this,t,e,n)}addFolder(t){return new b({parent:this,title:t})}load(t,e=!0){return t.controllers&&this.controllers.forEach(e=>{e instanceof d||e._name in t.controllers&&e.load(t.controllers[e._name])}),e&&t.folders&&this.folders.forEach(e=>{e._title in t.folders&&e.load(t.folders[e._title])}),this}save(t=!0){const e={controllers:{},folders:{}};return this.controllers.forEach(t=>{if(!(t instanceof d)){if(t._name in e.controllers)throw new Error(`Cannot save GUI with duplicate property "${t._name}"`);e.controllers[t._name]=t.save()}}),t&&this.folders.forEach(t=>{if(t._title in e.folders)throw new Error(`Cannot save GUI with duplicate folder "${t._title}"`);e.folders[t._title]=t.save()}),e}open(t=!0){return this._closed=!t,this.$title.setAttribute("aria-expanded",!this._closed),this.domElement.classList.toggle("closed",this._closed),this}close(){return this.open(!1)}show(t=!0){return this._hidden=!t,this.domElement.style.display=this._hidden?"none":"",this}hide(){return this.show(!1)}openAnimated(t=!0){return this._closed=!t,this.$title.setAttribute("aria-expanded",!this._closed),requestAnimationFrame(()=>{const e=this.$children.clientHeight;this.$children.style.height=e+"px",this.domElement.classList.add("transition");const n=t=>{t.target===this.$children&&(this.$children.style.height="",this.domElement.classList.remove("transition"),this.$children.removeEventListener("transitionend",n))};this.$children.addEventListener("transitionend",n);const i=t?this.$children.scrollHeight:0;this.domElement.classList.toggle("closed",!t),requestAnimationFrame(()=>{this.$children.style.height=i+"px"})}),this}title(t){return this._title=t,this.$title.innerHTML=t,this}reset(t=!0){return(t?this.controllersRecursive():this.controllers).forEach(t=>t.reset()),this}onChange(t){return this._onChange=t,this}_callOnChange(t){this.parent&&this.parent._callOnChange(t),void 0!==this._onChange&&this._onChange.call(this,{object:t.object,property:t.property,value:t.getValue(),controller:t})}onFinishChange(t){return this._onFinishChange=t,this}_callOnFinishChange(t){this.parent&&this.parent._callOnFinishChange(t),void 0!==this._onFinishChange&&this._onFinishChange.call(this,{object:t.object,property:t.property,value:t.getValue(),controller:t})}destroy(){this.parent&&(this.parent.children.splice(this.parent.children.indexOf(this),1),this.parent.folders.splice(this.parent.folders.indexOf(this),1)),this.domElement.parentElement&&this.domElement.parentElement.removeChild(this.domElement),Array.from(this.children).forEach(t=>t.destroy())}controllersRecursive(){let t=Array.from(this.controllers);return this.folders.forEach(e=>{t=t.concat(e.controllersRecursive())}),t}foldersRecursive(){let t=Array.from(this.folders);return this.folders.forEach(e=>{t=t.concat(e.foldersRecursive())}),t}}e.default=b},6498:function(t,e){/*! Tweakpane 3.1.7 (c) 2016 cocopon, licensed under the MIT license. */(function(t,n){n(e)})(0,(function(t){"use strict";class e{constructor(t){const[e,n]=t.split("-"),i=e.split(".");this.major=parseInt(i[0],10),this.minor=parseInt(i[1],10),this.patch=parseInt(i[2],10),this.prerelease=null!=n?n:null}toString(){const t=[this.major,this.minor,this.patch].join(".");return null!==this.prerelease?[t,this.prerelease].join("-"):t}}class n{constructor(t){this.controller_=t}get element(){return this.controller_.view.element}get disabled(){return this.controller_.viewProps.get("disabled")}set disabled(t){this.controller_.viewProps.set("disabled",t)}get hidden(){return this.controller_.viewProps.get("hidden")}set hidden(t){this.controller_.viewProps.set("hidden",t)}dispose(){this.controller_.viewProps.set("disposed",!0)}}class i{constructor(t){this.target=t}}class r extends i{constructor(t,e,n,i){super(t),this.value=e,this.presetKey=n,this.last=null==i||i}}class o extends i{constructor(t,e,n){super(t),this.value=e,this.presetKey=n}}class a extends i{constructor(t,e){super(t),this.expanded=e}}class s extends i{constructor(t,e){super(t),this.index=e}}function l(t){return null==t}function c(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function u(t,e){let n=t;do{const t=Object.getOwnPropertyDescriptor(n,e);if(t&&(void 0!==t.set||!0===t.writable))return!0;n=Object.getPrototypeOf(n)}while(null!==n);return!1}const h={alreadydisposed:()=>"View has been already disposed",invalidparams:t=>`Invalid parameters for '${t.name}'`,nomatchingcontroller:t=>`No matching controller for '${t.key}'`,nomatchingview:t=>`No matching view for '${JSON.stringify(t.params)}'`,notbindable:()=>"Value is not bindable",propertynotfound:t=>`Property '${t.name}' not found`,shouldneverhappen:()=>"This error should never happen"};class d{static alreadyDisposed(){return new d({type:"alreadydisposed"})}static notBindable(){return new d({type:"notbindable"})}static propertyNotFound(t){return new d({type:"propertynotfound",context:{name:t}})}static shouldNeverHappen(){return new d({type:"shouldneverhappen"})}constructor(t){var e;this.message=null!==(e=h[t.type](t.context))&&void 0!==e?e:"Unexpected error",this.name=this.constructor.name,this.stack=new Error(this.message).stack,this.type=t.type}}class p{constructor(t,e,n){this.obj_=t,this.key_=e,this.presetKey_=null!=n?n:e}static isBindable(t){return!(null===t||"object"!=typeof t)}get key(){return this.key_}get presetKey(){return this.presetKey_}read(){return this.obj_[this.key_]}write(t){this.obj_[this.key_]=t}writeProperty(t,e){const n=this.read();if(!p.isBindable(n))throw d.notBindable();if(!(t in n))throw d.propertyNotFound(t);n[t]=e}}class f extends n{get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get title(){var t;return null!==(t=this.controller_.valueController.props.get("title"))&&void 0!==t?t:""}set title(t){this.controller_.valueController.props.set("title",t)}on(t,e){const n=e.bind(this);return this.controller_.valueController.emitter.on(t,()=>{n(new i(this))}),this}}class g{constructor(){this.observers_={}}on(t,e){let n=this.observers_[t];return n||(n=this.observers_[t]=[]),n.push({handler:e}),this}off(t,e){const n=this.observers_[t];return n&&(this.observers_[t]=n.filter(t=>t.handler!==e)),this}emit(t,e){const n=this.observers_[t];!n||n.forEach(t=>{t.handler(e)})}}const m="tp";function v(t){return(e,n)=>[m,"-",t,"v",e?`_${e}`:"",n?`-${n}`:""].join("")}function y(t,e){return n=>e(t(n))}function b(t){return t.rawValue}function x(t,e){t.emitter.on("change",y(b,e)),e(t.rawValue)}function w(t,e,n){x(t.value(e),n)}function _(t,e,n){n?t.classList.add(e):t.classList.remove(e)}function C(t,e){return n=>{_(t,e,n)}}function A(t,e){x(t,t=>{e.textContent=null!=t?t:""})}const I=v("btn");class S{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(I()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("button");n.classList.add(I("b")),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;const i=t.createElement("div");i.classList.add(I("t")),A(e.props.value("title"),i),this.buttonElement.appendChild(i)}}class M{constructor(t,e){this.emitter=new g,this.onClick_=this.onClick_.bind(this),this.props=e.props,this.viewProps=e.viewProps,this.view=new S(t,{props:this.props,viewProps:this.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class k{constructor(t,e){var n;this.constraint_=null==e?void 0:e.constraint,this.equals_=null!==(n=null==e?void 0:e.equals)&&void 0!==n?n:(t,e)=>t===e,this.emitter=new g,this.rawValue_=t}get constraint(){return this.constraint_}get rawValue(){return this.rawValue_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!=e?e:{forceEmit:!1,last:!0},i=this.constraint_?this.constraint_.constrain(t):t,r=this.rawValue_;this.equals_(r,i)&&!n.forceEmit||(this.emitter.emit("beforechange",{sender:this}),this.rawValue_=i,this.emitter.emit("change",{options:n,previousRawValue:r,rawValue:i,sender:this}))}}class E{constructor(t){this.emitter=new g,this.value_=t}get rawValue(){return this.value_}set rawValue(t){this.setRawValue(t,{forceEmit:!1,last:!0})}setRawValue(t,e){const n=null!=e?e:{forceEmit:!1,last:!0},i=this.value_;i===t&&!n.forceEmit||(this.emitter.emit("beforechange",{sender:this}),this.value_=t,this.emitter.emit("change",{options:n,previousRawValue:i,rawValue:this.value_,sender:this}))}}function T(t,e){const n=null==e?void 0:e.constraint,i=null==e?void 0:e.equals;return n||i?new k(t,e):new E(t)}class O{constructor(t){this.emitter=new g,this.valMap_=t;for(const e in this.valMap_)this.valMap_[e].emitter.on("change",()=>{this.emitter.emit("change",{key:e,sender:this})})}static createCore(t){return Object.keys(t).reduce((e,n)=>Object.assign(e,{[n]:T(t[n])}),{})}static fromObject(t){const e=this.createCore(t);return new O(e)}get(t){return this.valMap_[t].rawValue}set(t,e){this.valMap_[t].rawValue=e}value(t){return this.valMap_[t]}}function P(t,e){const n=Object.keys(e).reduce((n,i)=>{if(void 0===n)return;const r=e[i],o=r(t[i]);return o.succeeded?Object.assign(Object.assign({},n),{[i]:o.value}):void 0},{});return n}function j(t,e){return t.reduce((t,n)=>{if(void 0===t)return;const i=e(n);return i.succeeded&&void 0!==i.value?[...t,i.value]:void 0},[])}function L(t){return null!==t&&"object"==typeof t}function D(t){return e=>n=>{if(!e&&void 0===n)return{succeeded:!1,value:void 0};if(e&&void 0===n)return{succeeded:!0,value:void 0};const i=t(n);return void 0!==i?{succeeded:!0,value:i}:{succeeded:!1,value:void 0}}}function R(t){return{custom:e=>D(e)(t),boolean:D(t=>"boolean"==typeof t?t:void 0)(t),number:D(t=>"number"==typeof t?t:void 0)(t),string:D(t=>"string"==typeof t?t:void 0)(t),function:D(t=>"function"==typeof t?t:void 0)(t),constant:e=>D(t=>t===e?e:void 0)(t),raw:D(t=>t)(t),object:e=>D(t=>{if(L(t))return P(t,e)})(t),array:e=>D(t=>{if(Array.isArray(t))return j(t,e)})(t)}}const B={optional:R(!0),required:R(!1)};function N(t,e){const n=B.required.object(e)(t);return n.succeeded?n.value:void 0}function F(t){console.warn([`Missing '${t.key}' of ${t.target} in ${t.place}.`,"Please rebuild plugins with the latest core package."].join(" "))}function z(t){return t&&t.parentElement&&t.parentElement.removeChild(t),null}class V{constructor(t){this.value_=t}static create(t){return[new V(t),(e,n)=>{t.setRawValue(e,n)}]}get emitter(){return this.value_.emitter}get rawValue(){return this.value_.rawValue}}const G=v("");function H(t,e){return C(t,G(void 0,e))}class W extends O{constructor(t){var e;super(t),this.onDisabledChange_=this.onDisabledChange_.bind(this),this.onParentChange_=this.onParentChange_.bind(this),this.onParentGlobalDisabledChange_=this.onParentGlobalDisabledChange_.bind(this),[this.globalDisabled_,this.setGlobalDisabled_]=V.create(T(this.getGlobalDisabled_())),this.value("disabled").emitter.on("change",this.onDisabledChange_),this.value("parent").emitter.on("change",this.onParentChange_),null===(e=this.get("parent"))||void 0===e||e.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_)}static create(t){var e,n,i;const r=null!=t?t:{};return new W(O.createCore({disabled:null!==(e=r.disabled)&&void 0!==e&&e,disposed:!1,hidden:null!==(n=r.hidden)&&void 0!==n&&n,parent:null!==(i=r.parent)&&void 0!==i?i:null}))}get globalDisabled(){return this.globalDisabled_}bindClassModifiers(t){x(this.globalDisabled_,H(t,"disabled")),w(this,"hidden",H(t,"hidden"))}bindDisabled(t){x(this.globalDisabled_,e=>{t.disabled=e})}bindTabIndex(t){x(this.globalDisabled_,e=>{t.tabIndex=e?-1:0})}handleDispose(t){this.value("disposed").emitter.on("change",e=>{e&&t()})}getGlobalDisabled_(){const t=this.get("parent");return!!t&&t.globalDisabled.rawValue||this.get("disabled")}updateGlobalDisabled_(){this.setGlobalDisabled_(this.getGlobalDisabled_())}onDisabledChange_(){this.updateGlobalDisabled_()}onParentGlobalDisabledChange_(){this.updateGlobalDisabled_()}onParentChange_(t){var e;const n=t.previousRawValue;null==n||n.globalDisabled.emitter.off("change",this.onParentGlobalDisabledChange_),null===(e=this.get("parent"))||void 0===e||e.globalDisabled.emitter.on("change",this.onParentGlobalDisabledChange_),this.updateGlobalDisabled_()}}function U(){return["veryfirst","first","last","verylast"]}const Z=v(""),Y={veryfirst:"vfst",first:"fst",last:"lst",verylast:"vlst"};class X{constructor(t){this.parent_=null,this.blade=t.blade,this.view=t.view,this.viewProps=t.viewProps;const e=this.view.element;this.blade.value("positions").emitter.on("change",()=>{U().forEach(t=>{e.classList.remove(Z(void 0,Y[t]))}),this.blade.get("positions").forEach(t=>{e.classList.add(Z(void 0,Y[t]))})}),this.viewProps.handleDispose(()=>{z(e)})}get parent(){return this.parent_}set parent(t){this.parent_=t,"parent"in this.viewProps.valMap_?this.viewProps.set("parent",this.parent_?this.parent_.viewProps:null):F({key:"parent",target:W.name,place:"BladeController.parent"})}}const q="http://www.w3.org/2000/svg";function K(t){t.offsetHeight}function Q(t,e){const n=t.style.transition;t.style.transition="none",e(),t.style.transition=n}function J(t){return void 0!==t.ontouchstart}function $(){return globalThis}function tt(){return $().document}function et(t){const e=t.ownerDocument.defaultView;return e&&"document"in e?t.getContext("2d",{willReadFrequently:!0}):null}const nt={check:'<path d="M2 8l4 4l8 -8"/>',dropdown:'<path d="M5 7h6l-3 3 z"/>',p2dpad:'<path d="M8 4v8"/><path d="M4 8h8"/><circle cx="12" cy="12" r="1.2"/>'};function it(t,e){const n=t.createElementNS(q,"svg");return n.innerHTML=nt[e],n}function rt(t,e,n){t.insertBefore(e,t.children[n])}function ot(t){t.parentElement&&t.parentElement.removeChild(t)}function at(t){for(;t.children.length>0;)t.removeChild(t.children[0])}function st(t){for(;t.childNodes.length>0;)t.removeChild(t.childNodes[0])}function lt(t){return t.relatedTarget?t.relatedTarget:"explicitOriginalTarget"in t?t.explicitOriginalTarget:null}const ct=v("lbl");function ut(t,e){const n=t.createDocumentFragment();return e.split("\n").map(e=>t.createTextNode(e)).forEach((e,i)=>{i>0&&n.appendChild(t.createElement("br")),n.appendChild(e)}),n}class ht{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(ct()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(ct("l")),w(e.props,"label",e=>{l(e)?this.element.classList.add(ct(void 0,"nol")):(this.element.classList.remove(ct(void 0,"nol")),st(n),n.appendChild(ut(t,e)))}),this.element.appendChild(n),this.labelElement=n;const i=t.createElement("div");i.classList.add(ct("v")),this.element.appendChild(i),this.valueElement=i}}class dt extends X{constructor(t,e){const n=e.valueController.viewProps;super(Object.assign(Object.assign({},e),{view:new ht(t,{props:e.props,viewProps:n}),viewProps:n})),this.props=e.props,this.valueController=e.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}}const pt={id:"button",type:"blade",accept(t){const e=B,n=N(t,{title:e.required.string,view:e.required.constant("button"),label:e.optional.string});return n?{params:n}:null},controller(t){return new dt(t.document,{blade:t.blade,props:O.fromObject({label:t.params.label}),valueController:new M(t.document,{props:O.fromObject({title:t.params.title}),viewProps:t.viewProps})})},api(t){return t.controller instanceof dt&&t.controller.valueController instanceof M?new f(t.controller):null}};class ft extends X{constructor(t){super(t),this.value=t.value}}function gt(){return new O({positions:T([],{equals:c})})}class mt extends O{constructor(t){super(t)}static create(t){const e={completed:!0,expanded:t,expandedHeight:null,shouldFixHeight:!1,temporaryExpanded:null},n=O.createCore(e);return new mt(n)}get styleExpanded(){var t;return null!==(t=this.get("temporaryExpanded"))&&void 0!==t?t:this.get("expanded")}get styleHeight(){if(!this.styleExpanded)return"0";const t=this.get("expandedHeight");return this.get("shouldFixHeight")&&!l(t)?`${t}px`:"auto"}bindExpandedClass(t,e){const n=()=>{this.styleExpanded?t.classList.add(e):t.classList.remove(e)};w(this,"expanded",n),w(this,"temporaryExpanded",n)}cleanUpTransition(){this.set("shouldFixHeight",!1),this.set("expandedHeight",null),this.set("completed",!0)}}function vt(t,e){let n=0;return Q(e,()=>{t.set("expandedHeight",null),t.set("temporaryExpanded",!0),K(e),n=e.clientHeight,t.set("temporaryExpanded",null),K(e)}),n}function yt(t,e){e.style.height=t.styleHeight}function bt(t,e){t.value("expanded").emitter.on("beforechange",()=>{if(t.set("completed",!1),l(t.get("expandedHeight"))){const n=vt(t,e);n>0&&t.set("expandedHeight",n)}t.set("shouldFixHeight",!0),K(e)}),t.emitter.on("change",()=>{yt(t,e)}),yt(t,e),e.addEventListener("transitionend",e=>{"height"===e.propertyName&&t.cleanUpTransition()})}class xt extends n{constructor(t,e){super(t),this.rackApi_=e}}function wt(t,e){return t.addBlade(Object.assign(Object.assign({},e),{view:"button"}))}function _t(t,e){return t.addBlade(Object.assign(Object.assign({},e),{view:"folder"}))}function Ct(t,e){const n=null!=e?e:{};return t.addBlade(Object.assign(Object.assign({},n),{view:"separator"}))}function At(t,e){return t.addBlade(Object.assign(Object.assign({},e),{view:"tab"}))}class It{constructor(t){this.emitter=new g,this.items_=[],this.cache_=new Set,this.onSubListAdd_=this.onSubListAdd_.bind(this),this.onSubListRemove_=this.onSubListRemove_.bind(this),this.extract_=t}get items(){return this.items_}allItems(){return Array.from(this.cache_)}find(t){for(const e of this.allItems())if(t(e))return e;return null}includes(t){return this.cache_.has(t)}add(t,e){if(this.includes(t))throw d.shouldNeverHappen();const n=void 0!==e?e:this.items_.length;this.items_.splice(n,0,t),this.cache_.add(t);const i=this.extract_(t);i&&(i.emitter.on("add",this.onSubListAdd_),i.emitter.on("remove",this.onSubListRemove_),i.allItems().forEach(t=>{this.cache_.add(t)})),this.emitter.emit("add",{index:n,item:t,root:this,target:this})}remove(t){const e=this.items_.indexOf(t);if(e<0)return;this.items_.splice(e,1),this.cache_.delete(t);const n=this.extract_(t);n&&(n.emitter.off("add",this.onSubListAdd_),n.emitter.off("remove",this.onSubListRemove_)),this.emitter.emit("remove",{index:e,item:t,root:this,target:this})}onSubListAdd_(t){this.cache_.add(t.item),this.emitter.emit("add",{index:t.index,item:t.item,root:this,target:t.target})}onSubListRemove_(t){this.cache_.delete(t.item),this.emitter.emit("remove",{index:t.index,item:t.item,root:this,target:t.target})}}class St extends n{constructor(t){super(t),this.onBindingChange_=this.onBindingChange_.bind(this),this.emitter_=new g,this.controller_.binding.emitter.on("change",this.onBindingChange_)}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}refresh(){this.controller_.binding.read()}onBindingChange_(t){const e=t.sender.target.read();this.emitter_.emit("change",{event:new r(this,e,this.controller_.binding.target.presetKey,t.options.last)})}}class Mt extends dt{constructor(t,e){super(t,e),this.binding=e.binding}}class kt extends n{constructor(t){super(t),this.onBindingUpdate_=this.onBindingUpdate_.bind(this),this.emitter_=new g,this.controller_.binding.emitter.on("update",this.onBindingUpdate_)}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}refresh(){this.controller_.binding.read()}onBindingUpdate_(t){const e=t.sender.target.read();this.emitter_.emit("update",{event:new o(this,e,this.controller_.binding.target.presetKey)})}}class Et extends dt{constructor(t,e){super(t,e),this.binding=e.binding,this.viewProps.bindDisabled(this.binding.ticker),this.viewProps.handleDispose(()=>{this.binding.dispose()})}}function Tt(t){return t instanceof jt?t.apiSet_:t instanceof xt?t.rackApi_.apiSet_:null}function Ot(t,e){const n=t.find(t=>t.controller_===e);if(!n)throw d.shouldNeverHappen();return n}function Pt(t,e,n){if(!p.isBindable(t))throw d.notBindable();return new p(t,e,n)}class jt extends n{constructor(t,e){super(t),this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this),this.onRackInputChange_=this.onRackInputChange_.bind(this),this.onRackMonitorUpdate_=this.onRackMonitorUpdate_.bind(this),this.emitter_=new g,this.apiSet_=new It(Tt),this.pool_=e;const n=this.controller_.rack;n.emitter.on("add",this.onRackAdd_),n.emitter.on("remove",this.onRackRemove_),n.emitter.on("inputchange",this.onRackInputChange_),n.emitter.on("monitorupdate",this.onRackMonitorUpdate_),n.children.forEach(t=>{this.setUpApi_(t)})}get children(){return this.controller_.rack.children.map(t=>Ot(this.apiSet_,t))}addInput(t,e,n){const i=null!=n?n:{},r=this.controller_.view.element.ownerDocument,o=this.pool_.createInput(r,Pt(t,e,i.presetKey),i),a=new St(o);return this.add(a,i.index)}addMonitor(t,e,n){const i=null!=n?n:{},r=this.controller_.view.element.ownerDocument,o=this.pool_.createMonitor(r,Pt(t,e),i),a=new kt(o);return this.add(a,i.index)}addFolder(t){return _t(this,t)}addButton(t){return wt(this,t)}addSeparator(t){return Ct(this,t)}addTab(t){return At(this,t)}add(t,e){this.controller_.rack.add(t.controller_,e);const n=this.apiSet_.find(e=>e.controller_===t.controller_);return n&&this.apiSet_.remove(n),this.apiSet_.add(t),t}remove(t){this.controller_.rack.remove(t.controller_)}addBlade(t){const e=this.controller_.view.element.ownerDocument,n=this.pool_.createBlade(e,t),i=this.pool_.createBladeApi(n);return this.add(i,t.index)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}setUpApi_(t){this.apiSet_.find(e=>e.controller_===t)||this.apiSet_.add(this.pool_.createBladeApi(t))}onRackAdd_(t){this.setUpApi_(t.bladeController)}onRackRemove_(t){if(t.isRoot){const e=Ot(this.apiSet_,t.bladeController);this.apiSet_.remove(e)}}onRackInputChange_(t){const e=t.bladeController;if(e instanceof Mt){const n=Ot(this.apiSet_,e),i=e.binding;this.emitter_.emit("change",{event:new r(n,i.target.read(),i.target.presetKey,t.options.last)})}else if(e instanceof ft){const n=Ot(this.apiSet_,e);this.emitter_.emit("change",{event:new r(n,e.value.rawValue,void 0,t.options.last)})}}onRackMonitorUpdate_(t){if(!(t.bladeController instanceof Et))throw d.shouldNeverHappen();const e=Ot(this.apiSet_,t.bladeController),n=t.bladeController.binding;this.emitter_.emit("update",{event:new o(e,n.target.read(),n.target.presetKey)})}}class Lt extends xt{constructor(t,e){super(t,new jt(t.rackController,e)),this.emitter_=new g,this.controller_.foldable.value("expanded").emitter.on("change",t=>{this.emitter_.emit("fold",{event:new a(this,t.sender.rawValue)})}),this.rackApi_.on("change",t=>{this.emitter_.emit("change",{event:t})}),this.rackApi_.on("update",t=>{this.emitter_.emit("update",{event:t})})}get expanded(){return this.controller_.foldable.get("expanded")}set expanded(t){this.controller_.foldable.set("expanded",t)}get title(){return this.controller_.props.get("title")}set title(t){this.controller_.props.set("title",t)}get children(){return this.rackApi_.children}addInput(t,e,n){return this.rackApi_.addInput(t,e,n)}addMonitor(t,e,n){return this.rackApi_.addMonitor(t,e,n)}addFolder(t){return this.rackApi_.addFolder(t)}addButton(t){return this.rackApi_.addButton(t)}addSeparator(t){return this.rackApi_.addSeparator(t)}addTab(t){return this.rackApi_.addTab(t)}add(t,e){return this.rackApi_.add(t,e)}remove(t){this.rackApi_.remove(t)}addBlade(t){return this.rackApi_.addBlade(t)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}class Dt extends X{constructor(t){super({blade:t.blade,view:t.view,viewProps:t.rackController.viewProps}),this.rackController=t.rackController}}class Rt{constructor(t,e){const n=v(e.viewName);this.element=t.createElement("div"),this.element.classList.add(n()),e.viewProps.bindClassModifiers(this.element)}}function Bt(t,e){for(let n=0;n<t.length;n++){const i=t[n];if(i instanceof Mt&&i.binding===e)return i}return null}function Nt(t,e){for(let n=0;n<t.length;n++){const i=t[n];if(i instanceof Et&&i.binding===e)return i}return null}function Ft(t,e){for(let n=0;n<t.length;n++){const i=t[n];if(i instanceof ft&&i.value===e)return i}return null}function zt(t){return t instanceof Ht?t.rack:t instanceof Dt?t.rackController.rack:null}function Vt(t){const e=zt(t);return e?e.bcSet_:null}class Gt{constructor(t){var e,n;this.onBladePositionsChange_=this.onBladePositionsChange_.bind(this),this.onSetAdd_=this.onSetAdd_.bind(this),this.onSetRemove_=this.onSetRemove_.bind(this),this.onChildDispose_=this.onChildDispose_.bind(this),this.onChildPositionsChange_=this.onChildPositionsChange_.bind(this),this.onChildInputChange_=this.onChildInputChange_.bind(this),this.onChildMonitorUpdate_=this.onChildMonitorUpdate_.bind(this),this.onChildValueChange_=this.onChildValueChange_.bind(this),this.onChildViewPropsChange_=this.onChildViewPropsChange_.bind(this),this.onDescendantLayout_=this.onDescendantLayout_.bind(this),this.onDescendantInputChange_=this.onDescendantInputChange_.bind(this),this.onDescendantMonitorUpdate_=this.onDescendantMonitorUpdate_.bind(this),this.emitter=new g,this.blade_=null!==(e=t.blade)&&void 0!==e?e:null,null===(n=this.blade_)||void 0===n||n.value("positions").emitter.on("change",this.onBladePositionsChange_),this.viewProps=t.viewProps,this.bcSet_=new It(Vt),this.bcSet_.emitter.on("add",this.onSetAdd_),this.bcSet_.emitter.on("remove",this.onSetRemove_)}get children(){return this.bcSet_.items}add(t,e){var n;null===(n=t.parent)||void 0===n||n.remove(t),u(t,"parent")?t.parent=this:(t.parent_=this,F({key:"parent",target:"BladeController",place:"BladeRack.add"})),this.bcSet_.add(t,e)}remove(t){u(t,"parent")?t.parent=null:(t.parent_=null,F({key:"parent",target:"BladeController",place:"BladeRack.remove"})),this.bcSet_.remove(t)}find(t){return this.bcSet_.allItems().filter(e=>e instanceof t)}onSetAdd_(t){this.updatePositions_();const e=t.target===t.root;if(this.emitter.emit("add",{bladeController:t.item,index:t.index,isRoot:e,sender:this}),!e)return;const n=t.item;if(n.viewProps.emitter.on("change",this.onChildViewPropsChange_),n.blade.value("positions").emitter.on("change",this.onChildPositionsChange_),n.viewProps.handleDispose(this.onChildDispose_),n instanceof Mt)n.binding.emitter.on("change",this.onChildInputChange_);else if(n instanceof Et)n.binding.emitter.on("update",this.onChildMonitorUpdate_);else if(n instanceof ft)n.value.emitter.on("change",this.onChildValueChange_);else{const t=zt(n);if(t){const e=t.emitter;e.on("layout",this.onDescendantLayout_),e.on("inputchange",this.onDescendantInputChange_),e.on("monitorupdate",this.onDescendantMonitorUpdate_)}}}onSetRemove_(t){this.updatePositions_();const e=t.target===t.root;if(this.emitter.emit("remove",{bladeController:t.item,isRoot:e,sender:this}),!e)return;const n=t.item;if(n instanceof Mt)n.binding.emitter.off("change",this.onChildInputChange_);else if(n instanceof Et)n.binding.emitter.off("update",this.onChildMonitorUpdate_);else if(n instanceof ft)n.value.emitter.off("change",this.onChildValueChange_);else{const t=zt(n);if(t){const e=t.emitter;e.off("layout",this.onDescendantLayout_),e.off("inputchange",this.onDescendantInputChange_),e.off("monitorupdate",this.onDescendantMonitorUpdate_)}}}updatePositions_(){const t=this.bcSet_.items.filter(t=>!t.viewProps.get("hidden")),e=t[0],n=t[t.length-1];this.bcSet_.items.forEach(t=>{const i=[];t===e&&(i.push("first"),(!this.blade_||this.blade_.get("positions").includes("veryfirst"))&&i.push("veryfirst")),t===n&&(i.push("last"),(!this.blade_||this.blade_.get("positions").includes("verylast"))&&i.push("verylast")),t.blade.set("positions",i)})}onChildPositionsChange_(){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildViewPropsChange_(t){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onChildDispose_(){this.bcSet_.items.filter(t=>t.viewProps.get("disposed")).forEach(t=>{this.bcSet_.remove(t)})}onChildInputChange_(t){const e=Bt(this.find(Mt),t.sender);if(!e)throw d.alreadyDisposed();this.emitter.emit("inputchange",{bladeController:e,options:t.options,sender:this})}onChildMonitorUpdate_(t){const e=Nt(this.find(Et),t.sender);if(!e)throw d.alreadyDisposed();this.emitter.emit("monitorupdate",{bladeController:e,sender:this})}onChildValueChange_(t){const e=Ft(this.find(ft),t.sender);if(!e)throw d.alreadyDisposed();this.emitter.emit("inputchange",{bladeController:e,options:t.options,sender:this})}onDescendantLayout_(t){this.updatePositions_(),this.emitter.emit("layout",{sender:this})}onDescendantInputChange_(t){this.emitter.emit("inputchange",{bladeController:t.bladeController,options:t.options,sender:this})}onDescendantMonitorUpdate_(t){this.emitter.emit("monitorupdate",{bladeController:t.bladeController,sender:this})}onBladePositionsChange_(){this.updatePositions_()}}class Ht extends X{constructor(t,e){super(Object.assign(Object.assign({},e),{view:new Rt(t,{viewName:"brk",viewProps:e.viewProps})})),this.onRackAdd_=this.onRackAdd_.bind(this),this.onRackRemove_=this.onRackRemove_.bind(this);const n=new Gt({blade:e.root?void 0:e.blade,viewProps:e.viewProps});n.emitter.on("add",this.onRackAdd_),n.emitter.on("remove",this.onRackRemove_),this.rack=n,this.viewProps.handleDispose(()=>{for(let t=this.rack.children.length-1;t>=0;t--)this.rack.children[t].viewProps.set("disposed",!0)})}onRackAdd_(t){!t.isRoot||rt(this.view.element,t.bladeController.view.element,t.index)}onRackRemove_(t){!t.isRoot||ot(t.bladeController.view.element)}}const Wt=v("cnt");class Ut{constructor(t,e){var n;this.className_=v(null!==(n=e.viewName)&&void 0!==n?n:"fld"),this.element=t.createElement("div"),this.element.classList.add(this.className_(),Wt()),e.viewProps.bindClassModifiers(this.element),this.foldable_=e.foldable,this.foldable_.bindExpandedClass(this.element,this.className_(void 0,"expanded")),w(this.foldable_,"completed",C(this.element,this.className_(void 0,"cpl")));const i=t.createElement("button");i.classList.add(this.className_("b")),w(e.props,"title",t=>{l(t)?this.element.classList.add(this.className_(void 0,"not")):this.element.classList.remove(this.className_(void 0,"not"))}),e.viewProps.bindDisabled(i),this.element.appendChild(i),this.buttonElement=i;const r=t.createElement("div");r.classList.add(this.className_("i")),this.element.appendChild(r);const o=t.createElement("div");o.classList.add(this.className_("t")),A(e.props.value("title"),o),this.buttonElement.appendChild(o),this.titleElement=o;const a=t.createElement("div");a.classList.add(this.className_("m")),this.buttonElement.appendChild(a);const s=e.containerElement;s.classList.add(this.className_("c")),this.element.appendChild(s),this.containerElement=s}}class Zt extends Dt{constructor(t,e){var n;const i=mt.create(null===(n=e.expanded)||void 0===n||n),r=new Ht(t,{blade:e.blade,root:e.root,viewProps:e.viewProps});super(Object.assign(Object.assign({},e),{rackController:r,view:new Ut(t,{containerElement:r.view.element,foldable:i,props:e.props,viewName:e.root?"rot":void 0,viewProps:e.viewProps})})),this.onTitleClick_=this.onTitleClick_.bind(this),this.props=e.props,this.foldable=i,bt(this.foldable,this.view.containerElement),this.rackController.rack.emitter.on("add",()=>{this.foldable.cleanUpTransition()}),this.rackController.rack.emitter.on("remove",()=>{this.foldable.cleanUpTransition()}),this.view.buttonElement.addEventListener("click",this.onTitleClick_)}get document(){return this.view.element.ownerDocument}onTitleClick_(){this.foldable.set("expanded",!this.foldable.get("expanded"))}}const Yt={id:"folder",type:"blade",accept(t){const e=B,n=N(t,{title:e.required.string,view:e.required.constant("folder"),expanded:e.optional.boolean});return n?{params:n}:null},controller(t){return new Zt(t.document,{blade:t.blade,expanded:t.params.expanded,props:O.fromObject({title:t.params.title}),viewProps:t.viewProps})},api(t){return t.controller instanceof Zt?new Lt(t.controller,t.pool):null}};class Xt extends ft{constructor(t,e){const n=e.valueController.viewProps;super(Object.assign(Object.assign({},e),{value:e.valueController.value,view:new ht(t,{props:e.props,viewProps:n}),viewProps:n})),this.props=e.props,this.valueController=e.valueController,this.view.valueElement.appendChild(this.valueController.view.element)}}class qt extends n{}const Kt=v("spr");class Qt{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Kt()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("hr");n.classList.add(Kt("r")),this.element.appendChild(n)}}class Jt extends X{constructor(t,e){super(Object.assign(Object.assign({},e),{view:new Qt(t,{viewProps:e.viewProps})}))}}const $t={id:"separator",type:"blade",accept(t){const e=N(t,{view:B.required.constant("separator")});return e?{params:e}:null},controller(t){return new Jt(t.document,{blade:t.blade,viewProps:t.viewProps})},api(t){return t.controller instanceof Jt?new qt(t.controller):null}},te=v("tbi");class ee{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(te()),e.viewProps.bindClassModifiers(this.element),w(e.props,"selected",t=>{t?this.element.classList.add(te(void 0,"sel")):this.element.classList.remove(te(void 0,"sel"))});const n=t.createElement("button");n.classList.add(te("b")),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.buttonElement=n;const i=t.createElement("div");i.classList.add(te("t")),A(e.props.value("title"),i),this.buttonElement.appendChild(i),this.titleElement=i}}class ne{constructor(t,e){this.emitter=new g,this.onClick_=this.onClick_.bind(this),this.props=e.props,this.viewProps=e.viewProps,this.view=new ee(t,{props:e.props,viewProps:e.viewProps}),this.view.buttonElement.addEventListener("click",this.onClick_)}onClick_(){this.emitter.emit("click",{sender:this})}}class ie{constructor(t,e){this.onItemClick_=this.onItemClick_.bind(this),this.ic_=new ne(t,{props:e.itemProps,viewProps:W.create()}),this.ic_.emitter.on("click",this.onItemClick_),this.cc_=new Ht(t,{blade:gt(),viewProps:W.create()}),this.props=e.props,w(this.props,"selected",t=>{this.itemController.props.set("selected",t),this.contentController.viewProps.set("hidden",!t)})}get itemController(){return this.ic_}get contentController(){return this.cc_}onItemClick_(){this.props.set("selected",!0)}}class re{constructor(t,e){this.controller_=t,this.rackApi_=e}get title(){var t;return null!==(t=this.controller_.itemController.props.get("title"))&&void 0!==t?t:""}set title(t){this.controller_.itemController.props.set("title",t)}get selected(){return this.controller_.props.get("selected")}set selected(t){this.controller_.props.set("selected",t)}get children(){return this.rackApi_.children}addButton(t){return this.rackApi_.addButton(t)}addFolder(t){return this.rackApi_.addFolder(t)}addSeparator(t){return this.rackApi_.addSeparator(t)}addTab(t){return this.rackApi_.addTab(t)}add(t,e){this.rackApi_.add(t,e)}remove(t){this.rackApi_.remove(t)}addInput(t,e,n){return this.rackApi_.addInput(t,e,n)}addMonitor(t,e,n){return this.rackApi_.addMonitor(t,e,n)}addBlade(t){return this.rackApi_.addBlade(t)}}class oe extends xt{constructor(t,e){super(t,new jt(t.rackController,e)),this.onPageAdd_=this.onPageAdd_.bind(this),this.onPageRemove_=this.onPageRemove_.bind(this),this.onSelect_=this.onSelect_.bind(this),this.emitter_=new g,this.pageApiMap_=new Map,this.rackApi_.on("change",t=>{this.emitter_.emit("change",{event:t})}),this.rackApi_.on("update",t=>{this.emitter_.emit("update",{event:t})}),this.controller_.tab.selectedIndex.emitter.on("change",this.onSelect_),this.controller_.pageSet.emitter.on("add",this.onPageAdd_),this.controller_.pageSet.emitter.on("remove",this.onPageRemove_),this.controller_.pageSet.items.forEach(t=>{this.setUpPageApi_(t)})}get pages(){return this.controller_.pageSet.items.map(t=>{const e=this.pageApiMap_.get(t);if(!e)throw d.shouldNeverHappen();return e})}addPage(t){const e=this.controller_.view.element.ownerDocument,n=new ie(e,{itemProps:O.fromObject({selected:!1,title:t.title}),props:O.fromObject({selected:!1})});this.controller_.add(n,t.index);const i=this.pageApiMap_.get(n);if(!i)throw d.shouldNeverHappen();return i}removePage(t){this.controller_.remove(t)}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}setUpPageApi_(t){const e=this.rackApi_.apiSet_.find(e=>e.controller_===t.contentController);if(!e)throw d.shouldNeverHappen();const n=new re(t,e);this.pageApiMap_.set(t,n)}onPageAdd_(t){this.setUpPageApi_(t.item)}onPageRemove_(t){if(!this.pageApiMap_.get(t.item))throw d.shouldNeverHappen();this.pageApiMap_.delete(t.item)}onSelect_(t){this.emitter_.emit("select",{event:new s(this,t.rawValue)})}}const ae=-1;class se{constructor(){this.onItemSelectedChange_=this.onItemSelectedChange_.bind(this),this.empty=T(!0),this.selectedIndex=T(ae),this.items_=[]}add(t,e){const n=null!=e?e:this.items_.length;this.items_.splice(n,0,t),t.emitter.on("change",this.onItemSelectedChange_),this.keepSelection_()}remove(t){const e=this.items_.indexOf(t);e<0||(this.items_.splice(e,1),t.emitter.off("change",this.onItemSelectedChange_),this.keepSelection_())}keepSelection_(){if(0===this.items_.length)return this.selectedIndex.rawValue=ae,void(this.empty.rawValue=!0);const t=this.items_.findIndex(t=>t.rawValue);t<0?(this.items_.forEach((t,e)=>{t.rawValue=0===e}),this.selectedIndex.rawValue=0):(this.items_.forEach((e,n)=>{e.rawValue=n===t}),this.selectedIndex.rawValue=t),this.empty.rawValue=!1}onItemSelectedChange_(t){if(t.rawValue){const e=this.items_.findIndex(e=>e===t.sender);this.items_.forEach((t,n)=>{t.rawValue=n===e}),this.selectedIndex.rawValue=e}else this.keepSelection_()}}const le=v("tab");class ce{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(le(),Wt()),e.viewProps.bindClassModifiers(this.element),x(e.empty,C(this.element,le(void 0,"nop")));const n=t.createElement("div");n.classList.add(le("t")),this.element.appendChild(n),this.itemsElement=n;const i=t.createElement("div");i.classList.add(le("i")),this.element.appendChild(i);const r=e.contentsElement;r.classList.add(le("c")),this.element.appendChild(r),this.contentsElement=r}}class ue extends Dt{constructor(t,e){const n=new Ht(t,{blade:e.blade,viewProps:e.viewProps}),i=new se;super({blade:e.blade,rackController:n,view:new ce(t,{contentsElement:n.view.element,empty:i.empty,viewProps:e.viewProps})}),this.onPageAdd_=this.onPageAdd_.bind(this),this.onPageRemove_=this.onPageRemove_.bind(this),this.pageSet_=new It(()=>null),this.pageSet_.emitter.on("add",this.onPageAdd_),this.pageSet_.emitter.on("remove",this.onPageRemove_),this.tab=i}get pageSet(){return this.pageSet_}add(t,e){this.pageSet_.add(t,e)}remove(t){this.pageSet_.remove(this.pageSet_.items[t])}onPageAdd_(t){const e=t.item;rt(this.view.itemsElement,e.itemController.view.element,t.index),e.itemController.viewProps.set("parent",this.viewProps),this.rackController.rack.add(e.contentController,t.index),this.tab.add(e.props.value("selected"))}onPageRemove_(t){const e=t.item;ot(e.itemController.view.element),e.itemController.viewProps.set("parent",null),this.rackController.rack.remove(e.contentController),this.tab.remove(e.props.value("selected"))}}const he={id:"tab",type:"blade",accept(t){const e=B,n=N(t,{pages:e.required.array(e.required.object({title:e.required.string})),view:e.required.constant("tab")});return n&&0!==n.pages.length?{params:n}:null},controller(t){const e=new ue(t.document,{blade:t.blade,viewProps:t.viewProps});return t.params.pages.forEach(n=>{const i=new ie(t.document,{itemProps:O.fromObject({selected:!1,title:n.title}),props:O.fromObject({selected:!1})});e.add(i)}),e},api(t){return t.controller instanceof ue?new oe(t.controller,t.pool):null}};function de(t,e){const n=t.accept(e.params);if(!n)return null;const i=B.optional.boolean(e.params.disabled).value,r=B.optional.boolean(e.params.hidden).value;return t.controller({blade:gt(),document:e.document,params:Object.assign(Object.assign({},n.params),{disabled:i,hidden:r}),viewProps:W.create({disabled:i,hidden:r})})}class pe{constructor(){this.disabled=!1,this.emitter=new g}dispose(){}tick(){this.disabled||this.emitter.emit("tick",{sender:this})}}class fe{constructor(t,e){this.disabled_=!1,this.timerId_=null,this.onTick_=this.onTick_.bind(this),this.doc_=t,this.emitter=new g,this.interval_=e,this.setTimer_()}get disabled(){return this.disabled_}set disabled(t){this.disabled_=t,this.disabled_?this.clearTimer_():this.setTimer_()}dispose(){this.clearTimer_()}clearTimer_(){if(null===this.timerId_)return;const t=this.doc_.defaultView;t&&t.clearInterval(this.timerId_),this.timerId_=null}setTimer_(){if(this.clearTimer_(),this.interval_<=0)return;const t=this.doc_.defaultView;t&&(this.timerId_=t.setInterval(this.onTick_,this.interval_))}onTick_(){this.disabled_||this.emitter.emit("tick",{sender:this})}}class ge{constructor(t){this.onValueChange_=this.onValueChange_.bind(this),this.reader=t.reader,this.writer=t.writer,this.emitter=new g,this.value=t.value,this.value.emitter.on("change",this.onValueChange_),this.target=t.target,this.read()}read(){const t=this.target.read();void 0!==t&&(this.value.rawValue=this.reader(t))}write_(t){this.writer(this.target,t)}onValueChange_(t){this.write_(t.rawValue),this.emitter.emit("change",{options:t.options,rawValue:t.rawValue,sender:this})}}function me(t,e){for(;t.length<e;)t.push(void 0)}function ve(t){const e=[];return me(e,t),T(e)}function ye(t){const e=t.indexOf(void 0);return e<0?t:t.slice(0,e)}function be(t,e){const n=[...ye(t),e];return n.length>t.length?n.splice(0,n.length-t.length):me(n,t.length),n}class xe{constructor(t){this.onTick_=this.onTick_.bind(this),this.reader_=t.reader,this.target=t.target,this.emitter=new g,this.value=t.value,this.ticker=t.ticker,this.ticker.emitter.on("tick",this.onTick_),this.read()}dispose(){this.ticker.dispose()}read(){const t=this.target.read();if(void 0===t)return;const e=this.value.rawValue,n=this.reader_(t);this.value.rawValue=be(e,n),this.emitter.emit("update",{rawValue:n,sender:this})}onTick_(t){this.read()}}class we{constructor(t){this.constraints=t}constrain(t){return this.constraints.reduce((t,e)=>e.constrain(t),t)}}function _e(t,e){if(t instanceof e)return t;if(t instanceof we){const n=t.constraints.reduce((t,n)=>t||(n instanceof e?n:null),null);if(n)return n}return null}class Ce{constructor(t){this.values=O.fromObject({max:t.max,min:t.min})}constrain(t){const e=this.values.get("max"),n=this.values.get("min");return Math.min(Math.max(t,n),e)}}class Ae{constructor(t){this.values=O.fromObject({options:t})}get options(){return this.values.get("options")}constrain(t){const e=this.values.get("options");return 0===e.length||e.filter(e=>e.value===t).length>0?t:e[0].value}}class Ie{constructor(t){this.values=O.fromObject({max:t.max,min:t.min})}get maxValue(){return this.values.get("max")}get minValue(){return this.values.get("min")}constrain(t){const e=this.values.get("max"),n=this.values.get("min");let i=t;return l(n)||(i=Math.max(i,n)),l(e)||(i=Math.min(i,e)),i}}class Se{constructor(t,e=0){this.step=t,this.origin=e}constrain(t){const e=this.origin%this.step,n=Math.round((t-e)/this.step);return e+n*this.step}}const Me=v("lst");class ke{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.props_=e.props,this.element=t.createElement("div"),this.element.classList.add(Me()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("select");n.classList.add(Me("s")),w(this.props_,"options",e=>{at(n),e.forEach((e,i)=>{const r=t.createElement("option");r.dataset.index=String(i),r.textContent=e.text,r.value=String(e.value),n.appendChild(r)})}),e.viewProps.bindDisabled(n),this.element.appendChild(n),this.selectElement=n;const i=t.createElement("div");i.classList.add(Me("m")),i.appendChild(it(t,"dropdown")),this.element.appendChild(i),e.value.emitter.on("change",this.onValueChange_),this.value_=e.value,this.update_()}update_(){this.selectElement.value=String(this.value_.rawValue)}onValueChange_(){this.update_()}}class Ee{constructor(t,e){this.onSelectChange_=this.onSelectChange_.bind(this),this.props=e.props,this.value=e.value,this.viewProps=e.viewProps,this.view=new ke(t,{props:this.props,value:this.value,viewProps:this.viewProps}),this.view.selectElement.addEventListener("change",this.onSelectChange_)}onSelectChange_(t){const e=t.currentTarget.selectedOptions.item(0);if(!e)return;const n=Number(e.dataset.index);this.value.rawValue=this.props.get("options")[n].value}}const Te=v("pop");class Oe{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Te()),e.viewProps.bindClassModifiers(this.element),x(e.shows,C(this.element,Te(void 0,"v")))}}class Pe{constructor(t,e){this.shows=T(!1),this.viewProps=e.viewProps,this.view=new Oe(t,{shows:this.shows,viewProps:this.viewProps})}}const je=v("txt");class Le{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(je()),e.viewProps.bindClassModifiers(this.element),this.props_=e.props,this.props_.emitter.on("change",this.onChange_);const n=t.createElement("input");n.classList.add(je("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,e.value.emitter.on("change",this.onChange_),this.value_=e.value,this.refresh()}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value_.rawValue)}onChange_(){this.refresh()}}class De{constructor(t,e){this.onInputChange_=this.onInputChange_.bind(this),this.parser_=e.parser,this.props=e.props,this.value=e.value,this.viewProps=e.viewProps,this.view=new Le(t,{props:e.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(t){const e=t.currentTarget.value,n=this.parser_(e);l(n)||(this.value.rawValue=n),this.view.refresh()}}function Re(t){return String(t)}function Be(t){return"false"!==t&&!!t}function Ne(t){return Re(t)}class Fe{constructor(t){this.text=t}evaluate(){return Number(this.text)}toString(){return this.text}}const ze={"**":(t,e)=>Math.pow(t,e),"*":(t,e)=>t*e,"/":(t,e)=>t/e,"%":(t,e)=>t%e,"+":(t,e)=>t+e,"-":(t,e)=>t-e,"<<":(t,e)=>t<<e,">>":(t,e)=>t>>e,">>>":(t,e)=>t>>>e,"&":(t,e)=>t&e,"^":(t,e)=>t^e,"|":(t,e)=>t|e};class Ve{constructor(t,e,n){this.left=e,this.operator=t,this.right=n}evaluate(){const t=ze[this.operator];if(!t)throw new Error(`unexpected binary operator: '${this.operator}`);return t(this.left.evaluate(),this.right.evaluate())}toString(){return["b(",this.left.toString(),this.operator,this.right.toString(),")"].join(" ")}}const Ge={"+":t=>t,"-":t=>-t,"~":t=>~t};class He{constructor(t,e){this.operator=t,this.expression=e}evaluate(){const t=Ge[this.operator];if(!t)throw new Error(`unexpected unary operator: '${this.operator}`);return t(this.expression.evaluate())}toString(){return["u(",this.operator,this.expression.toString(),")"].join(" ")}}function We(t){return(e,n)=>{for(let i=0;i<t.length;i++){const r=t[i](e,n);if(""!==r)return r}return""}}function Ue(t,e){var n;const i=t.substr(e).match(/^\s+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Ze(t,e){const n=t.substr(e,1);return n.match(/^[1-9]$/)?n:""}function Ye(t,e){var n;const i=t.substr(e).match(/^[0-9]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function Xe(t,e){const n=Ye(t,e);if(""!==n)return n;const i=t.substr(e,1);if(e+=1,"-"!==i&&"+"!==i)return"";const r=Ye(t,e);return""===r?"":i+r}function qe(t,e){const n=t.substr(e,1);if(e+=1,"e"!==n.toLowerCase())return"";const i=Xe(t,e);return""===i?"":n+i}function Ke(t,e){const n=t.substr(e,1);if("0"===n)return n;const i=Ze(t,e);return e+=i.length,""===i?"":i+Ye(t,e)}function Qe(t,e){const n=Ke(t,e);if(e+=n.length,""===n)return"";const i=t.substr(e,1);if(e+=i.length,"."!==i)return"";const r=Ye(t,e);return e+=r.length,n+i+r+qe(t,e)}function Je(t,e){const n=t.substr(e,1);if(e+=n.length,"."!==n)return"";const i=Ye(t,e);return e+=i.length,""===i?"":n+i+qe(t,e)}function $e(t,e){const n=Ke(t,e);return e+=n.length,""===n?"":n+qe(t,e)}const tn=We([Qe,Je,$e]);function en(t,e){var n;const i=t.substr(e).match(/^[01]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function nn(t,e){const n=t.substr(e,2);if(e+=n.length,"0b"!==n.toLowerCase())return"";const i=en(t,e);return""===i?"":n+i}function rn(t,e){var n;const i=t.substr(e).match(/^[0-7]+/);return null!==(n=i&&i[0])&&void 0!==n?n:""}function on(t,e){const n=t.substr(e,2);if(e+=n.length,"0o"!==n.toLowerCase())return"";const i=rn(t,e);return""===i?"":n+i}function an(t,e){var n;const i=t.substr(e).match(/^[0-9a-f]+/i);return null!==(n=i&&i[0])&&void 0!==n?n:""}function sn(t,e){const n=t.substr(e,2);if(e+=n.length,"0x"!==n.toLowerCase())return"";const i=an(t,e);return""===i?"":n+i}const ln=We([nn,on,sn]),cn=We([ln,tn]);function un(t,e){const n=cn(t,e);return e+=n.length,""===n?null:{evaluable:new Fe(n),cursor:e}}function hn(t,e){const n=t.substr(e,1);if(e+=n.length,"("!==n)return null;const i=vn(t,e);if(!i)return null;e=i.cursor,e+=Ue(t,e).length;const r=t.substr(e,1);return e+=r.length,")"!==r?null:{evaluable:i.evaluable,cursor:e}}function dn(t,e){var n;return null!==(n=un(t,e))&&void 0!==n?n:hn(t,e)}function pn(t,e){const n=dn(t,e);if(n)return n;const i=t.substr(e,1);if(e+=i.length,"+"!==i&&"-"!==i&&"~"!==i)return null;const r=pn(t,e);return r?(e=r.cursor,{cursor:e,evaluable:new He(i,r.evaluable)}):null}function fn(t,e,n){n+=Ue(e,n).length;const i=t.filter(t=>e.startsWith(t,n))[0];return i?(n+=i.length,n+=Ue(e,n).length,{cursor:n,operator:i}):null}function gn(t,e){return(n,i)=>{const r=t(n,i);if(!r)return null;i=r.cursor;let o=r.evaluable;for(;;){const r=fn(e,n,i);if(!r)break;i=r.cursor;const a=t(n,i);if(!a)return null;i=a.cursor,o=new Ve(r.operator,o,a.evaluable)}return o?{cursor:i,evaluable:o}:null}}const mn=[["**"],["*","/","%"],["+","-"],["<<",">>>",">>"],["&"],["^"],["|"]].reduce((t,e)=>gn(t,e),pn);function vn(t,e){return e+=Ue(t,e).length,mn(t,e)}function yn(t){const e=vn(t,0);return e&&e.cursor+Ue(t,e.cursor).length===t.length?e.evaluable:null}function bn(t){var e;const n=yn(t);return null!==(e=null==n?void 0:n.evaluate())&&void 0!==e?e:null}function xn(t){if("number"==typeof t)return t;if("string"==typeof t){const e=bn(t);if(!l(e))return e}return 0}function wn(t){return String(t)}function _n(t){return e=>e.toFixed(Math.max(Math.min(t,20),0))}const Cn=_n(0);function An(t){return Cn(t)+"%"}function In(t){return String(t)}function Sn(t){return t}function Mn({primary:t,secondary:e,forward:n,backward:i}){let r=!1;function o(t){r||(r=!0,t(),r=!1)}t.emitter.on("change",i=>{o(()=>{e.setRawValue(n(t,e),i.options)})}),e.emitter.on("change",r=>{o(()=>{t.setRawValue(i(t,e),r.options)}),o(()=>{e.setRawValue(n(t,e),r.options)})}),o(()=>{e.setRawValue(n(t,e),{forceEmit:!1,last:!0})})}function kn(t,e){const n=t*(e.altKey?.1:1)*(e.shiftKey?10:1);return e.upKey?+n:e.downKey?-n:0}function En(t){return{altKey:t.altKey,downKey:"ArrowDown"===t.key,shiftKey:t.shiftKey,upKey:"ArrowUp"===t.key}}function Tn(t){return{altKey:t.altKey,downKey:"ArrowLeft"===t.key,shiftKey:t.shiftKey,upKey:"ArrowRight"===t.key}}function On(t){return"ArrowUp"===t||"ArrowDown"===t}function Pn(t){return On(t)||"ArrowLeft"===t||"ArrowRight"===t}function jn(t,e){var n,i;const r=e.ownerDocument.defaultView,o=e.getBoundingClientRect();return{x:t.pageX-((null!==(n=r&&r.scrollX)&&void 0!==n?n:0)+o.left),y:t.pageY-((null!==(i=r&&r.scrollY)&&void 0!==i?i:0)+o.top)}}class Ln{constructor(t){this.lastTouch_=null,this.onDocumentMouseMove_=this.onDocumentMouseMove_.bind(this),this.onDocumentMouseUp_=this.onDocumentMouseUp_.bind(this),this.onMouseDown_=this.onMouseDown_.bind(this),this.onTouchEnd_=this.onTouchEnd_.bind(this),this.onTouchMove_=this.onTouchMove_.bind(this),this.onTouchStart_=this.onTouchStart_.bind(this),this.elem_=t,this.emitter=new g,t.addEventListener("touchstart",this.onTouchStart_,{passive:!1}),t.addEventListener("touchmove",this.onTouchMove_,{passive:!0}),t.addEventListener("touchend",this.onTouchEnd_),t.addEventListener("mousedown",this.onMouseDown_)}computePosition_(t){const e=this.elem_.getBoundingClientRect();return{bounds:{width:e.width,height:e.height},point:t?{x:t.x,y:t.y}:null}}onMouseDown_(t){var e;t.preventDefault(),null===(e=t.currentTarget)||void 0===e||e.focus();const n=this.elem_.ownerDocument;n.addEventListener("mousemove",this.onDocumentMouseMove_),n.addEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(jn(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseMove_(t){this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(jn(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onDocumentMouseUp_(t){const e=this.elem_.ownerDocument;e.removeEventListener("mousemove",this.onDocumentMouseMove_),e.removeEventListener("mouseup",this.onDocumentMouseUp_),this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(jn(t,this.elem_)),sender:this,shiftKey:t.shiftKey})}onTouchStart_(t){t.preventDefault();const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("down",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchMove_(t){const e=t.targetTouches.item(0),n=this.elem_.getBoundingClientRect();this.emitter.emit("move",{altKey:t.altKey,data:this.computePosition_(e?{x:e.clientX-n.left,y:e.clientY-n.top}:void 0),sender:this,shiftKey:t.shiftKey}),this.lastTouch_=e}onTouchEnd_(t){var e;const n=null!==(e=t.targetTouches.item(0))&&void 0!==e?e:this.lastTouch_,i=this.elem_.getBoundingClientRect();this.emitter.emit("up",{altKey:t.altKey,data:this.computePosition_(n?{x:n.clientX-i.left,y:n.clientY-i.top}:void 0),sender:this,shiftKey:t.shiftKey})}}function Dn(t,e,n,i,r){const o=(t-e)/(n-e);return i+o*(r-i)}function Rn(t){return String(t.toFixed(10)).split(".")[1].replace(/0+$/,"").length}function Bn(t,e,n){return Math.min(Math.max(t,e),n)}function Nn(t,e){return(t%e+e)%e}const Fn=v("txt");class zn{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.props_=e.props,this.props_.emitter.on("change",this.onChange_),this.element=t.createElement("div"),this.element.classList.add(Fn(),Fn(void 0,"num")),e.arrayPosition&&this.element.classList.add(Fn(void 0,e.arrayPosition)),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("input");n.classList.add(Fn("i")),n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,this.onDraggingChange_=this.onDraggingChange_.bind(this),this.dragging_=e.dragging,this.dragging_.emitter.on("change",this.onDraggingChange_),this.element.classList.add(Fn()),this.inputElement.classList.add(Fn("i"));const i=t.createElement("div");i.classList.add(Fn("k")),this.element.appendChild(i),this.knobElement=i;const r=t.createElementNS(q,"svg");r.classList.add(Fn("g")),this.knobElement.appendChild(r);const o=t.createElementNS(q,"path");o.classList.add(Fn("gb")),r.appendChild(o),this.guideBodyElem_=o;const a=t.createElementNS(q,"path");a.classList.add(Fn("gh")),r.appendChild(a),this.guideHeadElem_=a;const s=t.createElement("div");s.classList.add(v("tt")()),this.knobElement.appendChild(s),this.tooltipElem_=s,e.value.emitter.on("change",this.onChange_),this.value=e.value,this.refresh()}onDraggingChange_(t){if(null===t.rawValue)return void this.element.classList.remove(Fn(void 0,"drg"));this.element.classList.add(Fn(void 0,"drg"));const e=t.rawValue/this.props_.get("draggingScale"),n=e+(e>0?-1:e<0?1:0),i=Bn(-n,-4,4);this.guideHeadElem_.setAttributeNS(null,"d",[`M ${n+i},0 L${n},4 L${n+i},8`,`M ${e},-1 L${e},9`].join(" ")),this.guideBodyElem_.setAttributeNS(null,"d",`M 0,4 L${e},4`);const r=this.props_.get("formatter");this.tooltipElem_.textContent=r(this.value.rawValue),this.tooltipElem_.style.left=`${e}px`}refresh(){const t=this.props_.get("formatter");this.inputElement.value=t(this.value.rawValue)}onChange_(){this.refresh()}}class Vn{constructor(t,e){var n;this.originRawValue_=0,this.onInputChange_=this.onInputChange_.bind(this),this.onInputKeyDown_=this.onInputKeyDown_.bind(this),this.onInputKeyUp_=this.onInputKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.parser_=e.parser,this.props=e.props,this.sliderProps_=null!==(n=e.sliderProps)&&void 0!==n?n:null,this.value=e.value,this.viewProps=e.viewProps,this.dragging_=T(null),this.view=new zn(t,{arrayPosition:e.arrayPosition,dragging:this.dragging_,props:this.props,value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_),this.view.inputElement.addEventListener("keydown",this.onInputKeyDown_),this.view.inputElement.addEventListener("keyup",this.onInputKeyUp_);const i=new Ln(this.view.knobElement);i.emitter.on("down",this.onPointerDown_),i.emitter.on("move",this.onPointerMove_),i.emitter.on("up",this.onPointerUp_)}constrainValue_(t){var e,n;const i=null===(e=this.sliderProps_)||void 0===e?void 0:e.get("minValue"),r=null===(n=this.sliderProps_)||void 0===n?void 0:n.get("maxValue");let o=t;return void 0!==i&&(o=Math.max(o,i)),void 0!==r&&(o=Math.min(o,r)),o}onInputChange_(t){const e=t.currentTarget.value,n=this.parser_(e);l(n)||(this.value.rawValue=this.constrainValue_(n)),this.view.refresh()}onInputKeyDown_(t){const e=kn(this.baseStep_,En(t));0!==e&&this.value.setRawValue(this.constrainValue_(this.value.rawValue+e),{forceEmit:!1,last:!1})}onInputKeyUp_(t){0!==kn(this.baseStep_,En(t))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}onPointerDown_(){this.originRawValue_=this.value.rawValue,this.dragging_.rawValue=0}computeDraggingValue_(t){if(!t.point)return null;const e=t.point.x-t.bounds.width/2;return this.constrainValue_(this.originRawValue_+e*this.props.get("draggingScale"))}onPointerMove_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!1,last:!1}),this.dragging_.rawValue=this.value.rawValue-this.originRawValue_)}onPointerUp_(t){const e=this.computeDraggingValue_(t.data);null!==e&&(this.value.setRawValue(e,{forceEmit:!0,last:!0}),this.dragging_.rawValue=null)}}const Gn=v("sld");class Hn{constructor(t,e){this.onChange_=this.onChange_.bind(this),this.props_=e.props,this.props_.emitter.on("change",this.onChange_),this.element=t.createElement("div"),this.element.classList.add(Gn()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Gn("t")),e.viewProps.bindTabIndex(n),this.element.appendChild(n),this.trackElement=n;const i=t.createElement("div");i.classList.add(Gn("k")),this.trackElement.appendChild(i),this.knobElement=i,e.value.emitter.on("change",this.onChange_),this.value=e.value,this.update_()}update_(){const t=Bn(Dn(this.value.rawValue,this.props_.get("minValue"),this.props_.get("maxValue"),0,100),0,100);this.knobElement.style.width=`${t}%`}onChange_(){this.update_()}}class Wn{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDownOrMove_=this.onPointerDownOrMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.baseStep_=e.baseStep,this.value=e.value,this.viewProps=e.viewProps,this.props=e.props,this.view=new Hn(t,{props:this.props,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Ln(this.view.trackElement),this.ptHandler_.emitter.on("down",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("move",this.onPointerDownOrMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.trackElement.addEventListener("keydown",this.onKeyDown_),this.view.trackElement.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(t,e){!t.point||this.value.setRawValue(Dn(Bn(t.point.x,0,t.bounds.width),0,t.bounds.width,this.props.get("minValue"),this.props.get("maxValue")),e)}onPointerDownOrMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onKeyDown_(t){const e=kn(this.baseStep_,Tn(t));0!==e&&this.value.setRawValue(this.value.rawValue+e,{forceEmit:!1,last:!1})}onKeyUp_(t){0!==kn(this.baseStep_,Tn(t))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}const Un=v("sldtxt");class Zn{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Un());const n=t.createElement("div");n.classList.add(Un("s")),this.sliderView_=e.sliderView,n.appendChild(this.sliderView_.element),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(Un("t")),this.textView_=e.textView,i.appendChild(this.textView_.element),this.element.appendChild(i)}}class Yn{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.sliderC_=new Wn(t,{baseStep:e.baseStep,props:e.sliderProps,value:e.value,viewProps:this.viewProps}),this.textC_=new Vn(t,{baseStep:e.baseStep,parser:e.parser,props:e.textProps,sliderProps:e.sliderProps,value:e.value,viewProps:e.viewProps}),this.view=new Zn(t,{sliderView:this.sliderC_.view,textView:this.textC_.view})}get sliderController(){return this.sliderC_}get textController(){return this.textC_}}function Xn(t,e){t.write(e)}function qn(t){const e=B;return Array.isArray(t)?e.required.array(e.required.object({text:e.required.string,value:e.required.raw}))(t).value:"object"==typeof t?e.required.raw(t).value:void 0}function Kn(t){if("inline"===t||"popup"===t)return t}function Qn(t){const e=B;return e.required.object({max:e.optional.number,min:e.optional.number,step:e.optional.number})(t).value}function Jn(t){if(Array.isArray(t))return t;const e=[];return Object.keys(t).forEach(n=>{e.push({text:n,value:t[n]})}),e}function $n(t){return l(t)?null:new Ae(Jn(t))}function ti(t){const e=t?_e(t,Se):null;return e?e.step:null}function ei(t,e){const n=t&&_e(t,Se);return n?Rn(n.step):Math.max(Rn(e),2)}function ni(t){const e=ti(t);return null!=e?e:1}function ii(t,e){var n;const i=t&&_e(t,Se),r=Math.abs(null!==(n=null==i?void 0:i.step)&&void 0!==n?n:e);return 0===r?.1:Math.pow(10,Math.floor(Math.log10(r))-1)}const ri=v("ckb");class oi{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.element=t.createElement("div"),this.element.classList.add(ri()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("label");n.classList.add(ri("l")),this.element.appendChild(n);const i=t.createElement("input");i.classList.add(ri("i")),i.type="checkbox",n.appendChild(i),this.inputElement=i,e.viewProps.bindDisabled(this.inputElement);const r=t.createElement("div");r.classList.add(ri("w")),n.appendChild(r);const o=it(t,"check");r.appendChild(o),e.value.emitter.on("change",this.onValueChange_),this.value=e.value,this.update_()}update_(){this.inputElement.checked=this.value.rawValue}onValueChange_(){this.update_()}}class ai{constructor(t,e){this.onInputChange_=this.onInputChange_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.view=new oi(t,{value:this.value,viewProps:this.viewProps}),this.view.inputElement.addEventListener("change",this.onInputChange_)}onInputChange_(t){const e=t.currentTarget;this.value.rawValue=e.checked}}function si(t){const e=[],n=$n(t.options);return n&&e.push(n),new we(e)}const li={id:"input-bool",type:"input",accept:(t,e)=>{if("boolean"!=typeof t)return null;const n=N(e,{options:B.optional.custom(qn)});return n?{initialValue:t,params:n}:null},binding:{reader:t=>Be,constraint:t=>si(t.params),writer:t=>Xn},controller:t=>{const e=t.document,n=t.value,i=t.constraint,r=i&&_e(i,Ae);return r?new Ee(e,{props:new O({options:r.values.value("options")}),value:n,viewProps:t.viewProps}):new ai(e,{value:n,viewProps:t.viewProps})}},ci=v("col");class ui{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(ci()),e.foldable.bindExpandedClass(this.element,ci(void 0,"expanded")),w(e.foldable,"completed",C(this.element,ci(void 0,"cpl")));const n=t.createElement("div");n.classList.add(ci("h")),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(ci("s")),n.appendChild(i),this.swatchElement=i;const r=t.createElement("div");if(r.classList.add(ci("t")),n.appendChild(r),this.textElement=r,"inline"===e.pickerLayout){const e=t.createElement("div");e.classList.add(ci("p")),this.element.appendChild(e),this.pickerElement=e}else this.pickerElement=null}}function hi(t,e,n){const i=Bn(t/255,0,1),r=Bn(e/255,0,1),o=Bn(n/255,0,1),a=Math.max(i,r,o),s=Math.min(i,r,o),l=a-s;let c=0,u=0;const h=(s+a)/2;return 0!==l&&(u=l/(1-Math.abs(a+s-1)),c=i===a?(r-o)/l:r===a?2+(o-i)/l:4+(i-r)/l,c=c/6+(c<0?1:0)),[360*c,100*u,100*h]}function di(t,e,n){const i=(t%360+360)%360,r=Bn(e/100,0,1),o=Bn(n/100,0,1),a=(1-Math.abs(2*o-1))*r,s=a*(1-Math.abs(i/60%2-1)),l=o-a/2;let c,u,h;return[c,u,h]=i>=0&&i<60?[a,s,0]:i>=60&&i<120?[s,a,0]:i>=120&&i<180?[0,a,s]:i>=180&&i<240?[0,s,a]:i>=240&&i<300?[s,0,a]:[a,0,s],[255*(c+l),255*(u+l),255*(h+l)]}function pi(t,e,n){const i=Bn(t/255,0,1),r=Bn(e/255,0,1),o=Bn(n/255,0,1),a=Math.max(i,r,o),s=Math.min(i,r,o),l=a-s;let c;c=0===l?0:a===i?((r-o)/l%6+6)%6*60:a===r?60*((o-i)/l+2):60*((i-r)/l+4);const u=0===a?0:l/a,h=a;return[c,100*u,100*h]}function fi(t,e,n){const i=Nn(t,360),r=Bn(e/100,0,1),o=Bn(n/100,0,1),a=o*r,s=a*(1-Math.abs(i/60%2-1)),l=o-a;let c,u,h;return[c,u,h]=i>=0&&i<60?[a,s,0]:i>=60&&i<120?[s,a,0]:i>=120&&i<180?[0,a,s]:i>=180&&i<240?[0,s,a]:i>=240&&i<300?[s,0,a]:[a,0,s],[255*(c+l),255*(u+l),255*(h+l)]}function gi(t,e,n){const i=n+e*(100-Math.abs(2*n-100))/200;return[t,0!==i?e*(100-Math.abs(2*n-100))/i:0,n+e*(100-Math.abs(2*n-100))/200]}function mi(t,e,n){const i=100-Math.abs(n*(200-e)/100-100);return[t,0!==i?e*n/i:0,n*(200-e)/200]}function vi(t){return[t[0],t[1],t[2]]}function yi(t,e){return[t[0],t[1],t[2],e]}const bi={hsl:{hsl:(t,e,n)=>[t,e,n],hsv:gi,rgb:di},hsv:{hsl:mi,hsv:(t,e,n)=>[t,e,n],rgb:fi},rgb:{hsl:hi,hsv:pi,rgb:(t,e,n)=>[t,e,n]}};function xi(t,e){return["float"===e?1:"rgb"===t?255:360,"float"===e?1:"rgb"===t?255:100,"float"===e?1:"rgb"===t?255:100]}function wi(t,e){return t===e?e:Nn(t,e)}function _i(t,e,n){var i;const r=xi(e,n);return["rgb"===e?Bn(t[0],0,r[0]):wi(t[0],r[0]),Bn(t[1],0,r[1]),Bn(t[2],0,r[2]),Bn(null!==(i=t[3])&&void 0!==i?i:1,0,1)]}function Ci(t,e,n,i){const r=xi(e,n),o=xi(e,i);return t.map((t,e)=>t/r[e]*o[e])}function Ai(t,e,n){const i=Ci(t,e.mode,e.type,"int"),r=bi[e.mode][n.mode](...i);return Ci(r,n.mode,"int",n.type)}function Ii(t,e){return"object"==typeof t&&!l(t)&&(e in t&&"number"==typeof t[e])}class Si{static black(t="int"){return new Si([0,0,0],"rgb",t)}static fromObject(t,e="int"){const n="a"in t?[t.r,t.g,t.b,t.a]:[t.r,t.g,t.b];return new Si(n,"rgb",e)}static toRgbaObject(t,e="int"){return t.toRgbaObject(e)}static isRgbColorObject(t){return Ii(t,"r")&&Ii(t,"g")&&Ii(t,"b")}static isRgbaColorObject(t){return this.isRgbColorObject(t)&&Ii(t,"a")}static isColorObject(t){return this.isRgbColorObject(t)}static equals(t,e){if(t.mode!==e.mode)return!1;const n=t.comps_,i=e.comps_;for(let r=0;r<n.length;r++)if(n[r]!==i[r])return!1;return!0}constructor(t,e,n="int"){this.mode=e,this.type=n,this.comps_=_i(t,e,n)}getComponents(t,e="int"){return yi(Ai(vi(this.comps_),{mode:this.mode,type:this.type},{mode:null!=t?t:this.mode,type:e}),this.comps_[3])}toRgbaObject(t="int"){const e=this.getComponents("rgb",t);return{r:e[0],g:e[1],b:e[2],a:e[3]}}}const Mi=v("colp");class ki{constructor(t,e){this.alphaViews_=null,this.element=t.createElement("div"),this.element.classList.add(Mi()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Mi("hsv"));const i=t.createElement("div");i.classList.add(Mi("sv")),this.svPaletteView_=e.svPaletteView,i.appendChild(this.svPaletteView_.element),n.appendChild(i);const r=t.createElement("div");r.classList.add(Mi("h")),this.hPaletteView_=e.hPaletteView,r.appendChild(this.hPaletteView_.element),n.appendChild(r),this.element.appendChild(n);const o=t.createElement("div");if(o.classList.add(Mi("rgb")),this.textView_=e.textView,o.appendChild(this.textView_.element),this.element.appendChild(o),e.alphaViews){this.alphaViews_={palette:e.alphaViews.palette,text:e.alphaViews.text};const n=t.createElement("div");n.classList.add(Mi("a"));const i=t.createElement("div");i.classList.add(Mi("ap")),i.appendChild(this.alphaViews_.palette.element),n.appendChild(i);const r=t.createElement("div");r.classList.add(Mi("at")),r.appendChild(this.alphaViews_.text.element),n.appendChild(r),this.element.appendChild(n)}}get allFocusableElements(){const t=[this.svPaletteView_.element,this.hPaletteView_.element,this.textView_.modeSelectElement,...this.textView_.textViews.map(t=>t.inputElement)];return this.alphaViews_&&t.push(this.alphaViews_.palette.element,this.alphaViews_.text.inputElement),t}}function Ei(t){return"int"===t?"int":"float"===t?"float":void 0}function Ti(t){const e=B;return N(t,{alpha:e.optional.boolean,color:e.optional.object({alpha:e.optional.boolean,type:e.optional.custom(Ei)}),expanded:e.optional.boolean,picker:e.optional.custom(Kn)})}function Oi(t){return t?.1:1}function Pi(t){var e;return null===(e=t.color)||void 0===e?void 0:e.type}function ji(t,e){return t.alpha===e.alpha&&t.mode===e.mode&&t.notation===e.notation&&t.type===e.type}function Li(t,e){const n=t.match(/^(.+)%$/);return Math.min(n?.01*parseFloat(n[1])*e:parseFloat(t),e)}const Di={deg:t=>t,grad:t=>360*t/400,rad:t=>360*t/(2*Math.PI),turn:t=>360*t};function Ri(t){const e=t.match(/^([0-9.]+?)(deg|grad|rad|turn)$/);if(!e)return parseFloat(t);const n=parseFloat(e[1]),i=e[2];return Di[i](n)}function Bi(t){const e=t.match(/^rgb\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!e)return null;const n=[Li(e[1],255),Li(e[2],255),Li(e[3],255)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function Ni(t){return e=>{const n=Bi(e);return n?new Si(n,"rgb",t):null}}function Fi(t){const e=t.match(/^rgba\(\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!e)return null;const n=[Li(e[1],255),Li(e[2],255),Li(e[3],255),Li(e[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function zi(t){return e=>{const n=Fi(e);return n?new Si(n,"rgb",t):null}}function Vi(t){const e=t.match(/^hsl\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!e)return null;const n=[Ri(e[1]),Li(e[2],100),Li(e[3],100)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function Gi(t){return e=>{const n=Vi(e);return n?new Si(n,"hsl",t):null}}function Hi(t){const e=t.match(/^hsla\(\s*([0-9A-Fa-f.]+(?:deg|grad|rad|turn)?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*,\s*([0-9A-Fa-f.]+%?)\s*\)$/);if(!e)return null;const n=[Ri(e[1]),Li(e[2],100),Li(e[3],100),Li(e[4],1)];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function Wi(t){return e=>{const n=Hi(e);return n?new Si(n,"hsl",t):null}}function Ui(t){const e=t.match(/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(e)return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)];const n=t.match(/^(?:#|0x)([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null}function Zi(t){const e=Ui(t);return e?new Si(e,"rgb","int"):null}function Yi(t){const e=t.match(/^#?([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/);if(e)return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),Dn(parseInt(e[4]+e[4],16),0,255,0,1)];const n=t.match(/^(?:#|0x)?([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),Dn(parseInt(n[4],16),0,255,0,1)]:null}function Xi(t){const e=Yi(t);return e?new Si(e,"rgb","int"):null}function qi(t){const e=t.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!e)return null;const n=[parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])?null:n}function Ki(t){return e=>{const n=qi(e);return n?new Si(n,"rgb",t):null}}function Qi(t){const e=t.match(/^\{\s*r\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*g\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*b\s*:\s*([0-9A-Fa-f.]+%?)\s*,\s*a\s*:\s*([0-9A-Fa-f.]+%?)\s*\}$/);if(!e)return null;const n=[parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]),parseFloat(e[4])];return isNaN(n[0])||isNaN(n[1])||isNaN(n[2])||isNaN(n[3])?null:n}function Ji(t){return e=>{const n=Qi(e);return n?new Si(n,"rgb",t):null}}const $i=[{parser:Ui,result:{alpha:!1,mode:"rgb",notation:"hex"}},{parser:Yi,result:{alpha:!0,mode:"rgb",notation:"hex"}},{parser:Bi,result:{alpha:!1,mode:"rgb",notation:"func"}},{parser:Fi,result:{alpha:!0,mode:"rgb",notation:"func"}},{parser:Vi,result:{alpha:!1,mode:"hsl",notation:"func"}},{parser:Hi,result:{alpha:!0,mode:"hsl",notation:"func"}},{parser:qi,result:{alpha:!1,mode:"rgb",notation:"object"}},{parser:Qi,result:{alpha:!0,mode:"rgb",notation:"object"}}];function tr(t){return $i.reduce((e,{parser:n,result:i})=>e||(n(t)?i:null),null)}function er(t,e="int"){const n=tr(t);return n?"hex"===n.notation&&"float"!==e?Object.assign(Object.assign({},n),{type:"int"}):"func"===n.notation?Object.assign(Object.assign({},n),{type:e}):null:null}const nr={int:[Zi,Xi,Ni("int"),zi("int"),Gi("int"),Wi("int"),Ki("int"),Ji("int")],float:[Ni("float"),zi("float"),Gi("float"),Wi("float"),Ki("float"),Ji("float")]};function ir(t){const e=nr[t];return n=>{if("string"!=typeof n)return Si.black(t);const i=e.reduce((t,e)=>t||e(n),null);return null!=i?i:Si.black(t)}}function rr(t){const e=nr[t];return t=>e.reduce((e,n)=>e||n(t),null)}function or(t){const e=Bn(Math.floor(t),0,255).toString(16);return 1===e.length?`0${e}`:e}function ar(t,e="#"){const n=vi(t.getComponents("rgb")).map(or).join("");return`${e}${n}`}function sr(t,e="#"){const n=t.getComponents("rgb"),i=[n[0],n[1],n[2],255*n[3]].map(or).join("");return`${e}${i}`}function lr(t,e){const n=_n("float"===e?2:0);return`rgb(${vi(t.getComponents("rgb",e)).map(t=>n(t)).join(", ")})`}function cr(t){return e=>lr(e,t)}function ur(t,e){const n=_n(2),i=_n("float"===e?2:0);return`rgba(${t.getComponents("rgb",e).map((t,e)=>(3===e?n:i)(t)).join(", ")})`}function hr(t){return e=>ur(e,t)}function dr(t){const e=[_n(0),An,An];return`hsl(${vi(t.getComponents("hsl")).map((t,n)=>e[n](t)).join(", ")})`}function pr(t){const e=[_n(0),An,An,_n(2)];return`hsla(${t.getComponents("hsl").map((t,n)=>e[n](t)).join(", ")})`}function fr(t,e){const n=_n("float"===e?2:0),i=["r","g","b"];return`{${vi(t.getComponents("rgb",e)).map((t,e)=>`${i[e]}: ${n(t)}`).join(", ")}}`}function gr(t){return e=>fr(e,t)}function mr(t,e){const n=_n(2),i=_n("float"===e?2:0),r=["r","g","b","a"];return`{${t.getComponents("rgb",e).map((t,e)=>{const o=3===e?n:i;return`${r[e]}: ${o(t)}`}).join(", ")}}`}function vr(t){return e=>mr(e,t)}const yr=[{format:{alpha:!1,mode:"rgb",notation:"hex",type:"int"},stringifier:ar},{format:{alpha:!0,mode:"rgb",notation:"hex",type:"int"},stringifier:sr},{format:{alpha:!1,mode:"hsl",notation:"func",type:"int"},stringifier:dr},{format:{alpha:!0,mode:"hsl",notation:"func",type:"int"},stringifier:pr},...["int","float"].reduce((t,e)=>[...t,{format:{alpha:!1,mode:"rgb",notation:"func",type:e},stringifier:cr(e)},{format:{alpha:!0,mode:"rgb",notation:"func",type:e},stringifier:hr(e)},{format:{alpha:!1,mode:"rgb",notation:"object",type:e},stringifier:gr(e)},{format:{alpha:!0,mode:"rgb",notation:"object",type:e},stringifier:vr(e)}],[])];function br(t){return yr.reduce((e,n)=>e||(ji(n.format,t)?n.stringifier:null),null)}const xr=v("apl");class wr{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.value=e.value,this.value.emitter.on("change",this.onValueChange_),this.element=t.createElement("div"),this.element.classList.add(xr()),e.viewProps.bindClassModifiers(this.element),e.viewProps.bindTabIndex(this.element);const n=t.createElement("div");n.classList.add(xr("b")),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(xr("c")),n.appendChild(i),this.colorElem_=i;const r=t.createElement("div");r.classList.add(xr("m")),this.element.appendChild(r),this.markerElem_=r;const o=t.createElement("div");o.classList.add(xr("p")),this.markerElem_.appendChild(o),this.previewElem_=o,this.update_()}update_(){const t=this.value.rawValue,e=t.getComponents("rgb"),n=new Si([e[0],e[1],e[2],0],"rgb"),i=new Si([e[0],e[1],e[2],255],"rgb"),r=["to right",ur(n),ur(i)];this.colorElem_.style.background=`linear-gradient(${r.join(",")})`,this.previewElem_.style.backgroundColor=ur(t);const o=Dn(e[3],0,1,0,100);this.markerElem_.style.left=`${o}%`}onValueChange_(){this.update_()}}class _r{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.view=new wr(t,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Ln(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(t,e){if(!t.point)return;const n=t.point.x/t.bounds.width,i=this.value.rawValue,[r,o,a]=i.getComponents("hsv");this.value.setRawValue(new Si([r,o,a,n],"hsv"),e)}onPointerDown_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onKeyDown_(t){const e=kn(Oi(!0),Tn(t));if(0===e)return;const n=this.value.rawValue,[i,r,o,a]=n.getComponents("hsv");this.value.setRawValue(new Si([i,r,o,a+e],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(t){0!==kn(Oi(!0),Tn(t))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}const Cr=v("coltxt");function Ar(t){const e=t.createElement("select"),n=[{text:"RGB",value:"rgb"},{text:"HSL",value:"hsl"},{text:"HSV",value:"hsv"}];return e.appendChild(n.reduce((e,n)=>{const i=t.createElement("option");return i.textContent=n.text,i.value=n.value,e.appendChild(i),e},t.createDocumentFragment())),e}class Ir{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(Cr()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Cr("m")),this.modeElem_=Ar(t),this.modeElem_.classList.add(Cr("ms")),n.appendChild(this.modeSelectElement),e.viewProps.bindDisabled(this.modeElem_);const i=t.createElement("div");i.classList.add(Cr("mm")),i.appendChild(it(t,"dropdown")),n.appendChild(i),this.element.appendChild(n);const r=t.createElement("div");r.classList.add(Cr("w")),this.element.appendChild(r),this.textsElem_=r,this.textViews_=e.textViews,this.applyTextViews_(),x(e.colorMode,t=>{this.modeElem_.value=t})}get modeSelectElement(){return this.modeElem_}get textViews(){return this.textViews_}set textViews(t){this.textViews_=t,this.applyTextViews_()}applyTextViews_(){at(this.textsElem_);const t=this.element.ownerDocument;this.textViews_.forEach(e=>{const n=t.createElement("div");n.classList.add(Cr("c")),n.appendChild(e.element),this.textsElem_.appendChild(n)})}}function Sr(t){return _n("float"===t?2:0)}function Mr(t,e,n){const i=xi(t,e)[n];return new Ce({min:0,max:i})}function kr(t,e,n){return new Vn(t,{arrayPosition:0===n?"fst":2===n?"lst":"mid",baseStep:Oi(!1),parser:e.parser,props:O.fromObject({draggingScale:"float"===e.colorType?.01:1,formatter:Sr(e.colorType)}),value:T(0,{constraint:Mr(e.colorMode,e.colorType,n)}),viewProps:e.viewProps})}class Er{constructor(t,e){this.onModeSelectChange_=this.onModeSelectChange_.bind(this),this.colorType_=e.colorType,this.parser_=e.parser,this.value=e.value,this.viewProps=e.viewProps,this.colorMode=T(this.value.rawValue.mode),this.ccs_=this.createComponentControllers_(t),this.view=new Ir(t,{colorMode:this.colorMode,textViews:[this.ccs_[0].view,this.ccs_[1].view,this.ccs_[2].view],viewProps:this.viewProps}),this.view.modeSelectElement.addEventListener("change",this.onModeSelectChange_)}createComponentControllers_(t){const e={colorMode:this.colorMode.rawValue,colorType:this.colorType_,parser:this.parser_,viewProps:this.viewProps},n=[kr(t,e,0),kr(t,e,1),kr(t,e,2)];return n.forEach((t,e)=>{Mn({primary:this.value,secondary:t.value,forward:t=>t.rawValue.getComponents(this.colorMode.rawValue,this.colorType_)[e],backward:(t,n)=>{const i=this.colorMode.rawValue,r=t.rawValue.getComponents(i,this.colorType_);return r[e]=n.rawValue,new Si(yi(vi(r),r[3]),i,this.colorType_)}})}),n}onModeSelectChange_(t){const e=t.currentTarget;this.colorMode.rawValue=e.value,this.ccs_=this.createComponentControllers_(this.view.element.ownerDocument),this.view.textViews=[this.ccs_[0].view,this.ccs_[1].view,this.ccs_[2].view]}}const Tr=v("hpl");class Or{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.value=e.value,this.value.emitter.on("change",this.onValueChange_),this.element=t.createElement("div"),this.element.classList.add(Tr()),e.viewProps.bindClassModifiers(this.element),e.viewProps.bindTabIndex(this.element);const n=t.createElement("div");n.classList.add(Tr("c")),this.element.appendChild(n);const i=t.createElement("div");i.classList.add(Tr("m")),this.element.appendChild(i),this.markerElem_=i,this.update_()}update_(){const t=this.value.rawValue,[e]=t.getComponents("hsv");this.markerElem_.style.backgroundColor=lr(new Si([e,100,100],"hsv"));const n=Dn(e,0,360,0,100);this.markerElem_.style.left=`${n}%`}onValueChange_(){this.update_()}}class Pr{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.view=new Or(t,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Ln(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(t,e){if(!t.point)return;const n=Dn(Bn(t.point.x,0,t.bounds.width),0,t.bounds.width,0,360),i=this.value.rawValue,[,r,o,a]=i.getComponents("hsv");this.value.setRawValue(new Si([n,r,o,a],"hsv"),e)}onPointerDown_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onKeyDown_(t){const e=kn(Oi(!1),Tn(t));if(0===e)return;const n=this.value.rawValue,[i,r,o,a]=n.getComponents("hsv");this.value.setRawValue(new Si([i+e,r,o,a],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(t){0!==kn(Oi(!1),Tn(t))&&this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}const jr=v("svp"),Lr=64;class Dr{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),this.value=e.value,this.value.emitter.on("change",this.onValueChange_),this.element=t.createElement("div"),this.element.classList.add(jr()),e.viewProps.bindClassModifiers(this.element),e.viewProps.bindTabIndex(this.element);const n=t.createElement("canvas");n.height=Lr,n.width=Lr,n.classList.add(jr("c")),this.element.appendChild(n),this.canvasElement=n;const i=t.createElement("div");i.classList.add(jr("m")),this.element.appendChild(i),this.markerElem_=i,this.update_()}update_(){const t=et(this.canvasElement);if(!t)return;const e=this.value.rawValue.getComponents("hsv"),n=this.canvasElement.width,i=this.canvasElement.height,r=t.getImageData(0,0,n,i),o=r.data;for(let l=0;l<i;l++)for(let t=0;t<n;t++){const r=Dn(t,0,n,0,100),a=Dn(l,0,i,100,0),s=fi(e[0],r,a),c=4*(l*n+t);o[c]=s[0],o[c+1]=s[1],o[c+2]=s[2],o[c+3]=255}t.putImageData(r,0,0);const a=Dn(e[1],0,100,0,100);this.markerElem_.style.left=`${a}%`;const s=Dn(e[2],0,100,100,0);this.markerElem_.style.top=`${s}%`}onValueChange_(){this.update_()}}class Rr{constructor(t,e){this.onKeyDown_=this.onKeyDown_.bind(this),this.onKeyUp_=this.onKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.view=new Dr(t,{value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Ln(this.view.element),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.element.addEventListener("keydown",this.onKeyDown_),this.view.element.addEventListener("keyup",this.onKeyUp_)}handlePointerEvent_(t,e){if(!t.point)return;const n=Dn(t.point.x,0,t.bounds.width,0,100),i=Dn(t.point.y,0,t.bounds.height,100,0),[r,,,o]=this.value.rawValue.getComponents("hsv");this.value.setRawValue(new Si([r,n,i,o],"hsv"),e)}onPointerDown_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onKeyDown_(t){Pn(t.key)&&t.preventDefault();const[e,n,i,r]=this.value.rawValue.getComponents("hsv"),o=Oi(!1),a=kn(o,Tn(t)),s=kn(o,En(t));0===a&&0===s||this.value.setRawValue(new Si([e,n+a,i+s,r],"hsv"),{forceEmit:!1,last:!1})}onKeyUp_(t){const e=Oi(!1),n=kn(e,Tn(t)),i=kn(e,En(t));0===n&&0===i||this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class Br{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.hPaletteC_=new Pr(t,{value:this.value,viewProps:this.viewProps}),this.svPaletteC_=new Rr(t,{value:this.value,viewProps:this.viewProps}),this.alphaIcs_=e.supportsAlpha?{palette:new _r(t,{value:this.value,viewProps:this.viewProps}),text:new Vn(t,{parser:bn,baseStep:.1,props:O.fromObject({draggingScale:.01,formatter:_n(2)}),value:T(0,{constraint:new Ce({min:0,max:1})}),viewProps:this.viewProps})}:null,this.alphaIcs_&&Mn({primary:this.value,secondary:this.alphaIcs_.text.value,forward:t=>t.rawValue.getComponents()[3],backward:(t,e)=>{const n=t.rawValue.getComponents();return n[3]=e.rawValue,new Si(n,t.rawValue.mode)}}),this.textC_=new Er(t,{colorType:e.colorType,parser:bn,value:this.value,viewProps:this.viewProps}),this.view=new ki(t,{alphaViews:this.alphaIcs_?{palette:this.alphaIcs_.palette.view,text:this.alphaIcs_.text.view}:null,hPaletteView:this.hPaletteC_.view,supportsAlpha:e.supportsAlpha,svPaletteView:this.svPaletteC_.view,textView:this.textC_.view,viewProps:this.viewProps})}get textController(){return this.textC_}}const Nr=v("colsw");class Fr{constructor(t,e){this.onValueChange_=this.onValueChange_.bind(this),e.value.emitter.on("change",this.onValueChange_),this.value=e.value,this.element=t.createElement("div"),this.element.classList.add(Nr()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Nr("sw")),this.element.appendChild(n),this.swatchElem_=n;const i=t.createElement("button");i.classList.add(Nr("b")),e.viewProps.bindDisabled(i),this.element.appendChild(i),this.buttonElement=i,this.update_()}update_(){const t=this.value.rawValue;this.swatchElem_.style.backgroundColor=sr(t)}onValueChange_(){this.update_()}}class zr{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new Fr(t,{value:this.value,viewProps:this.viewProps})}}class Vr{constructor(t,e){this.onButtonBlur_=this.onButtonBlur_.bind(this),this.onButtonClick_=this.onButtonClick_.bind(this),this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.foldable_=mt.create(e.expanded),this.swatchC_=new zr(t,{value:this.value,viewProps:this.viewProps});const n=this.swatchC_.view.buttonElement;n.addEventListener("blur",this.onButtonBlur_),n.addEventListener("click",this.onButtonClick_),this.textC_=new De(t,{parser:e.parser,props:O.fromObject({formatter:e.formatter}),value:this.value,viewProps:this.viewProps}),this.view=new ui(t,{foldable:this.foldable_,pickerLayout:e.pickerLayout}),this.view.swatchElement.appendChild(this.swatchC_.view.element),this.view.textElement.appendChild(this.textC_.view.element),this.popC_="popup"===e.pickerLayout?new Pe(t,{viewProps:this.viewProps}):null;const i=new Br(t,{colorType:e.colorType,supportsAlpha:e.supportsAlpha,value:this.value,viewProps:this.viewProps});i.view.allFocusableElements.forEach(t=>{t.addEventListener("blur",this.onPopupChildBlur_),t.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=i,this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(i.view.element),Mn({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:t=>t.rawValue,backward:(t,e)=>e.rawValue})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),bt(this.foldable_,this.view.pickerElement))}get textController(){return this.textC_}onButtonBlur_(t){if(!this.popC_)return;const e=this.view.element,n=t.relatedTarget;(!n||!e.contains(n))&&(this.popC_.shows.rawValue=!1)}onButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(t){if(!this.popC_)return;const e=this.popC_.view.element,n=lt(t);n&&e.contains(n)||n&&n===this.swatchC_.view.buttonElement&&!J(e.ownerDocument)||(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(t){this.popC_?"Escape"===t.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===t.key&&this.swatchC_.view.buttonElement.focus()}}function Gr(t,e){return Si.isColorObject(t)?Si.fromObject(t,e):Si.black(e)}function Hr(t){return vi(t.getComponents("rgb")).reduce((t,e)=>t<<8|255&Math.floor(e),0)}function Wr(t){return t.getComponents("rgb").reduce((t,e,n)=>{const i=255&Math.floor(3===n?255*e:e);return t<<8|i},0)>>>0}function Ur(t){return new Si([t>>16&255,t>>8&255,255&t],"rgb")}function Zr(t){return new Si([t>>24&255,t>>16&255,t>>8&255,Dn(255&t,0,255,0,1)],"rgb")}function Yr(t){return"number"!=typeof t?Si.black():Ur(t)}function Xr(t){return"number"!=typeof t?Si.black():Zr(t)}function qr(t){const e=br(t);return e?(t,n)=>{Xn(t,e(n))}:null}function Kr(t){const e=t?Wr:Hr;return(t,n)=>{Xn(t,e(n))}}function Qr(t,e,n){const i=e.toRgbaObject(n);t.writeProperty("r",i.r),t.writeProperty("g",i.g),t.writeProperty("b",i.b),t.writeProperty("a",i.a)}function Jr(t,e,n){const i=e.toRgbaObject(n);t.writeProperty("r",i.r),t.writeProperty("g",i.g),t.writeProperty("b",i.b)}function $r(t,e){return(n,i)=>{t?Qr(n,i,e):Jr(n,i,e)}}function to(t){var e;return!!((null==t?void 0:t.alpha)||(null===(e=null==t?void 0:t.color)||void 0===e?void 0:e.alpha))}function eo(t){return t?t=>sr(t,"0x"):t=>ar(t,"0x")}function no(t){return"color"in t||"view"in t&&"color"===t.view}const io={id:"input-color-number",type:"input",accept:(t,e)=>{if("number"!=typeof t||!no(e))return null;const n=Ti(e);return n?{initialValue:t,params:n}:null},binding:{reader:t=>to(t.params)?Xr:Yr,equals:Si.equals,writer:t=>Kr(to(t.params))},controller:t=>{const e=to(t.params),n="expanded"in t.params?t.params.expanded:void 0,i="picker"in t.params?t.params.picker:void 0;return new Vr(t.document,{colorType:"int",expanded:null!=n&&n,formatter:eo(e),parser:rr("int"),pickerLayout:null!=i?i:"popup",supportsAlpha:e,value:t.value,viewProps:t.viewProps})}};function ro(t){return Si.isRgbaColorObject(t)}function oo(t){return e=>Gr(e,t)}function ao(t,e){return n=>t?mr(n,e):fr(n,e)}const so={id:"input-color-object",type:"input",accept:(t,e)=>{if(!Si.isColorObject(t))return null;const n=Ti(e);return n?{initialValue:t,params:n}:null},binding:{reader:t=>oo(Pi(t.params)),equals:Si.equals,writer:t=>$r(ro(t.initialValue),Pi(t.params))},controller:t=>{var e;const n=Si.isRgbaColorObject(t.initialValue),i="expanded"in t.params?t.params.expanded:void 0,r="picker"in t.params?t.params.picker:void 0,o=null!==(e=Pi(t.params))&&void 0!==e?e:"int";return new Vr(t.document,{colorType:o,expanded:null!=i&&i,formatter:ao(n,o),parser:rr(o),pickerLayout:null!=r?r:"popup",supportsAlpha:n,value:t.value,viewProps:t.viewProps})}},lo={id:"input-color-string",type:"input",accept:(t,e)=>{if("string"!=typeof t||"view"in e&&"text"===e.view)return null;const n=er(t,Pi(e));if(!n||!br(n))return null;const i=Ti(e);return i?{initialValue:t,params:i}:null},binding:{reader:t=>{var e;return ir(null!==(e=Pi(t.params))&&void 0!==e?e:"int")},equals:Si.equals,writer:t=>{const e=er(t.initialValue,Pi(t.params));if(!e)throw d.shouldNeverHappen();const n=qr(e);if(!n)throw d.notBindable();return n}},controller:t=>{const e=er(t.initialValue,Pi(t.params));if(!e)throw d.shouldNeverHappen();const n=br(e);if(!n)throw d.shouldNeverHappen();const i="expanded"in t.params?t.params.expanded:void 0,r="picker"in t.params?t.params.picker:void 0;return new Vr(t.document,{colorType:e.type,expanded:null!=i&&i,formatter:n,parser:rr(e.type),pickerLayout:null!=r?r:"popup",supportsAlpha:e.alpha,value:t.value,viewProps:t.viewProps})}};class co{constructor(t){this.components=t.components,this.asm_=t.assembly}constrain(t){const e=this.asm_.toComponents(t).map((t,e)=>{var n,i;return null!==(i=null===(n=this.components[e])||void 0===n?void 0:n.constrain(t))&&void 0!==i?i:t});return this.asm_.fromComponents(e)}}const uo=v("pndtxt");class ho{constructor(t,e){this.textViews=e.textViews,this.element=t.createElement("div"),this.element.classList.add(uo()),this.textViews.forEach(e=>{const n=t.createElement("div");n.classList.add(uo("a")),n.appendChild(e.element),this.element.appendChild(n)})}}function po(t,e,n){return new Vn(t,{arrayPosition:0===n?"fst":n===e.axes.length-1?"lst":"mid",baseStep:e.axes[n].baseStep,parser:e.parser,props:e.axes[n].textProps,value:T(0,{constraint:e.axes[n].constraint}),viewProps:e.viewProps})}class fo{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.acs_=e.axes.map((n,i)=>po(t,e,i)),this.acs_.forEach((t,n)=>{Mn({primary:this.value,secondary:t.value,forward:t=>e.assembly.toComponents(t.rawValue)[n],backward:(t,i)=>{const r=e.assembly.toComponents(t.rawValue);return r[n]=i.rawValue,e.assembly.fromComponents(r)}})}),this.view=new ho(t,{textViews:this.acs_.map(t=>t.view)})}}function go(t,e){return"step"in t&&!l(t.step)?new Se(t.step,e):null}function mo(t){return l(t.max)||l(t.min)?l(t.max)&&l(t.min)?null:new Ie({max:t.max,min:t.min}):new Ce({max:t.max,min:t.min})}function vo(t){const e=_e(t,Ce);if(e)return[e.values.get("min"),e.values.get("max")];const n=_e(t,Ie);return n?[n.minValue,n.maxValue]:[void 0,void 0]}function yo(t,e){const n=[],i=go(t,e);i&&n.push(i);const r=mo(t);r&&n.push(r);const o=$n(t.options);return o&&n.push(o),new we(n)}const bo={id:"input-number",type:"input",accept:(t,e)=>{if("number"!=typeof t)return null;const n=B,i=N(e,{format:n.optional.function,max:n.optional.number,min:n.optional.number,options:n.optional.custom(qn),step:n.optional.number});return i?{initialValue:t,params:i}:null},binding:{reader:t=>xn,constraint:t=>yo(t.params,t.initialValue),writer:t=>Xn},controller:t=>{var e;const n=t.value,i=t.constraint,r=i&&_e(i,Ae);if(r)return new Ee(t.document,{props:new O({options:r.values.value("options")}),value:n,viewProps:t.viewProps});const o=null!==(e="format"in t.params?t.params.format:void 0)&&void 0!==e?e:_n(ei(i,n.rawValue)),a=i&&_e(i,Ce);return a?new Yn(t.document,{baseStep:ni(i),parser:bn,sliderProps:new O({maxValue:a.values.value("max"),minValue:a.values.value("min")}),textProps:O.fromObject({draggingScale:ii(i,n.rawValue),formatter:o}),value:n,viewProps:t.viewProps}):new Vn(t.document,{baseStep:ni(i),parser:bn,props:O.fromObject({draggingScale:ii(i,n.rawValue),formatter:o}),value:n,viewProps:t.viewProps})}};class xo{constructor(t=0,e=0){this.x=t,this.y=e}getComponents(){return[this.x,this.y]}static isObject(t){if(l(t))return!1;const e=t.x,n=t.y;return!("number"!=typeof e||"number"!=typeof n)}static equals(t,e){return t.x===e.x&&t.y===e.y}toObject(){return{x:this.x,y:this.y}}}const wo={toComponents:t=>t.getComponents(),fromComponents:t=>new xo(...t)},_o=v("p2d");class Co{constructor(t,e){this.element=t.createElement("div"),this.element.classList.add(_o()),e.viewProps.bindClassModifiers(this.element),x(e.expanded,C(this.element,_o(void 0,"expanded")));const n=t.createElement("div");n.classList.add(_o("h")),this.element.appendChild(n);const i=t.createElement("button");i.classList.add(_o("b")),i.appendChild(it(t,"p2dpad")),e.viewProps.bindDisabled(i),n.appendChild(i),this.buttonElement=i;const r=t.createElement("div");if(r.classList.add(_o("t")),n.appendChild(r),this.textElement=r,"inline"===e.pickerLayout){const e=t.createElement("div");e.classList.add(_o("p")),this.element.appendChild(e),this.pickerElement=e}else this.pickerElement=null}}const Ao=v("p2dp");class Io{constructor(t,e){this.onFoldableChange_=this.onFoldableChange_.bind(this),this.onValueChange_=this.onValueChange_.bind(this),this.invertsY_=e.invertsY,this.maxValue_=e.maxValue,this.element=t.createElement("div"),this.element.classList.add(Ao()),"popup"===e.layout&&this.element.classList.add(Ao(void 0,"p")),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("div");n.classList.add(Ao("p")),e.viewProps.bindTabIndex(n),this.element.appendChild(n),this.padElement=n;const i=t.createElementNS(q,"svg");i.classList.add(Ao("g")),this.padElement.appendChild(i),this.svgElem_=i;const r=t.createElementNS(q,"line");r.classList.add(Ao("ax")),r.setAttributeNS(null,"x1","0"),r.setAttributeNS(null,"y1","50%"),r.setAttributeNS(null,"x2","100%"),r.setAttributeNS(null,"y2","50%"),this.svgElem_.appendChild(r);const o=t.createElementNS(q,"line");o.classList.add(Ao("ax")),o.setAttributeNS(null,"x1","50%"),o.setAttributeNS(null,"y1","0"),o.setAttributeNS(null,"x2","50%"),o.setAttributeNS(null,"y2","100%"),this.svgElem_.appendChild(o);const a=t.createElementNS(q,"line");a.classList.add(Ao("l")),a.setAttributeNS(null,"x1","50%"),a.setAttributeNS(null,"y1","50%"),this.svgElem_.appendChild(a),this.lineElem_=a;const s=t.createElement("div");s.classList.add(Ao("m")),this.padElement.appendChild(s),this.markerElem_=s,e.value.emitter.on("change",this.onValueChange_),this.value=e.value,this.update_()}get allFocusableElements(){return[this.padElement]}update_(){const[t,e]=this.value.rawValue.getComponents(),n=this.maxValue_,i=Dn(t,-n,+n,0,100),r=Dn(e,-n,+n,0,100),o=this.invertsY_?100-r:r;this.lineElem_.setAttributeNS(null,"x2",`${i}%`),this.lineElem_.setAttributeNS(null,"y2",`${o}%`),this.markerElem_.style.left=`${i}%`,this.markerElem_.style.top=`${o}%`}onValueChange_(){this.update_()}onFoldableChange_(){this.update_()}}function So(t,e,n){return[kn(e[0],Tn(t)),kn(e[1],En(t))*(n?1:-1)]}class Mo{constructor(t,e){this.onPadKeyDown_=this.onPadKeyDown_.bind(this),this.onPadKeyUp_=this.onPadKeyUp_.bind(this),this.onPointerDown_=this.onPointerDown_.bind(this),this.onPointerMove_=this.onPointerMove_.bind(this),this.onPointerUp_=this.onPointerUp_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.baseSteps_=e.baseSteps,this.maxValue_=e.maxValue,this.invertsY_=e.invertsY,this.view=new Io(t,{invertsY:this.invertsY_,layout:e.layout,maxValue:this.maxValue_,value:this.value,viewProps:this.viewProps}),this.ptHandler_=new Ln(this.view.padElement),this.ptHandler_.emitter.on("down",this.onPointerDown_),this.ptHandler_.emitter.on("move",this.onPointerMove_),this.ptHandler_.emitter.on("up",this.onPointerUp_),this.view.padElement.addEventListener("keydown",this.onPadKeyDown_),this.view.padElement.addEventListener("keyup",this.onPadKeyUp_)}handlePointerEvent_(t,e){if(!t.point)return;const n=this.maxValue_,i=Dn(t.point.x,0,t.bounds.width,-n,+n),r=Dn(this.invertsY_?t.bounds.height-t.point.y:t.point.y,0,t.bounds.height,-n,+n);this.value.setRawValue(new xo(i,r),e)}onPointerDown_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerMove_(t){this.handlePointerEvent_(t.data,{forceEmit:!1,last:!1})}onPointerUp_(t){this.handlePointerEvent_(t.data,{forceEmit:!0,last:!0})}onPadKeyDown_(t){Pn(t.key)&&t.preventDefault();const[e,n]=So(t,this.baseSteps_,this.invertsY_);0===e&&0===n||this.value.setRawValue(new xo(this.value.rawValue.x+e,this.value.rawValue.y+n),{forceEmit:!1,last:!1})}onPadKeyUp_(t){const[e,n]=So(t,this.baseSteps_,this.invertsY_);0===e&&0===n||this.value.setRawValue(this.value.rawValue,{forceEmit:!0,last:!0})}}class ko{constructor(t,e){var n,i;this.onPopupChildBlur_=this.onPopupChildBlur_.bind(this),this.onPopupChildKeydown_=this.onPopupChildKeydown_.bind(this),this.onPadButtonBlur_=this.onPadButtonBlur_.bind(this),this.onPadButtonClick_=this.onPadButtonClick_.bind(this),this.value=e.value,this.viewProps=e.viewProps,this.foldable_=mt.create(e.expanded),this.popC_="popup"===e.pickerLayout?new Pe(t,{viewProps:this.viewProps}):null;const r=new Mo(t,{baseSteps:[e.axes[0].baseStep,e.axes[1].baseStep],invertsY:e.invertsY,layout:e.pickerLayout,maxValue:e.maxValue,value:this.value,viewProps:this.viewProps});r.view.allFocusableElements.forEach(t=>{t.addEventListener("blur",this.onPopupChildBlur_),t.addEventListener("keydown",this.onPopupChildKeydown_)}),this.pickerC_=r,this.textC_=new fo(t,{assembly:wo,axes:e.axes,parser:e.parser,value:this.value,viewProps:this.viewProps}),this.view=new Co(t,{expanded:this.foldable_.value("expanded"),pickerLayout:e.pickerLayout,viewProps:this.viewProps}),this.view.textElement.appendChild(this.textC_.view.element),null===(n=this.view.buttonElement)||void 0===n||n.addEventListener("blur",this.onPadButtonBlur_),null===(i=this.view.buttonElement)||void 0===i||i.addEventListener("click",this.onPadButtonClick_),this.popC_?(this.view.element.appendChild(this.popC_.view.element),this.popC_.view.element.appendChild(this.pickerC_.view.element),Mn({primary:this.foldable_.value("expanded"),secondary:this.popC_.shows,forward:t=>t.rawValue,backward:(t,e)=>e.rawValue})):this.view.pickerElement&&(this.view.pickerElement.appendChild(this.pickerC_.view.element),bt(this.foldable_,this.view.pickerElement))}onPadButtonBlur_(t){if(!this.popC_)return;const e=this.view.element,n=t.relatedTarget;(!n||!e.contains(n))&&(this.popC_.shows.rawValue=!1)}onPadButtonClick_(){this.foldable_.set("expanded",!this.foldable_.get("expanded")),this.foldable_.get("expanded")&&this.pickerC_.view.allFocusableElements[0].focus()}onPopupChildBlur_(t){if(!this.popC_)return;const e=this.popC_.view.element,n=lt(t);n&&e.contains(n)||n&&n===this.view.buttonElement&&!J(e.ownerDocument)||(this.popC_.shows.rawValue=!1)}onPopupChildKeydown_(t){this.popC_?"Escape"===t.key&&(this.popC_.shows.rawValue=!1):this.view.pickerElement&&"Escape"===t.key&&this.view.buttonElement.focus()}}class Eo{constructor(t=0,e=0,n=0){this.x=t,this.y=e,this.z=n}getComponents(){return[this.x,this.y,this.z]}static isObject(t){if(l(t))return!1;const e=t.x,n=t.y,i=t.z;return!("number"!=typeof e||"number"!=typeof n||"number"!=typeof i)}static equals(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z}toObject(){return{x:this.x,y:this.y,z:this.z}}}const To={toComponents:t=>t.getComponents(),fromComponents:t=>new Eo(...t)};function Oo(t){return Eo.isObject(t)?new Eo(t.x,t.y,t.z):new Eo}function Po(t,e){t.writeProperty("x",e.x),t.writeProperty("y",e.y),t.writeProperty("z",e.z)}function jo(t,e){return new co({assembly:To,components:[ga("x"in t?t.x:void 0,e.x),ga("y"in t?t.y:void 0,e.y),ga("z"in t?t.z:void 0,e.z)]})}function Lo(t,e){return{baseStep:ni(e),constraint:e,textProps:O.fromObject({draggingScale:ii(e,t),formatter:_n(ei(e,t))})}}const Do={id:"input-point3d",type:"input",accept:(t,e)=>{if(!Eo.isObject(t))return null;const n=B,i=N(e,{x:n.optional.custom(Qn),y:n.optional.custom(Qn),z:n.optional.custom(Qn)});return i?{initialValue:t,params:i}:null},binding:{reader:t=>Oo,constraint:t=>jo(t.params,t.initialValue),equals:Eo.equals,writer:t=>Po},controller:t=>{const e=t.value,n=t.constraint;if(!(n instanceof co))throw d.shouldNeverHappen();return new fo(t.document,{assembly:To,axes:[Lo(e.rawValue.x,n.components[0]),Lo(e.rawValue.y,n.components[1]),Lo(e.rawValue.z,n.components[2])],parser:bn,value:e,viewProps:t.viewProps})}};class Ro{constructor(t=0,e=0,n=0,i=0){this.x=t,this.y=e,this.z=n,this.w=i}getComponents(){return[this.x,this.y,this.z,this.w]}static isObject(t){if(l(t))return!1;const e=t.x,n=t.y,i=t.z,r=t.w;return!("number"!=typeof e||"number"!=typeof n||"number"!=typeof i||"number"!=typeof r)}static equals(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z&&t.w===e.w}toObject(){return{x:this.x,y:this.y,z:this.z,w:this.w}}}const Bo={toComponents:t=>t.getComponents(),fromComponents:t=>new Ro(...t)};function No(t){return Ro.isObject(t)?new Ro(t.x,t.y,t.z,t.w):new Ro}function Fo(t,e){t.writeProperty("x",e.x),t.writeProperty("y",e.y),t.writeProperty("z",e.z),t.writeProperty("w",e.w)}function zo(t,e){return new co({assembly:Bo,components:[ga("x"in t?t.x:void 0,e.x),ga("y"in t?t.y:void 0,e.y),ga("z"in t?t.z:void 0,e.z),ga("w"in t?t.w:void 0,e.w)]})}function Vo(t,e){return{baseStep:ni(e),constraint:e,textProps:O.fromObject({draggingScale:ii(e,t),formatter:_n(ei(e,t))})}}const Go={id:"input-point4d",type:"input",accept:(t,e)=>{if(!Ro.isObject(t))return null;const n=B,i=N(e,{x:n.optional.custom(Qn),y:n.optional.custom(Qn),z:n.optional.custom(Qn),w:n.optional.custom(Qn)});return i?{initialValue:t,params:i}:null},binding:{reader:t=>No,constraint:t=>zo(t.params,t.initialValue),equals:Ro.equals,writer:t=>Fo},controller:t=>{const e=t.value,n=t.constraint;if(!(n instanceof co))throw d.shouldNeverHappen();return new fo(t.document,{assembly:Bo,axes:e.rawValue.getComponents().map((t,e)=>Vo(t,n.components[e])),parser:bn,value:e,viewProps:t.viewProps})}};function Ho(t){const e=[],n=$n(t.options);return n&&e.push(n),new we(e)}const Wo={id:"input-string",type:"input",accept:(t,e)=>{if("string"!=typeof t)return null;const n=N(e,{options:B.optional.custom(qn)});return n?{initialValue:t,params:n}:null},binding:{reader:t=>In,constraint:t=>Ho(t.params),writer:t=>Xn},controller:t=>{const e=t.document,n=t.value,i=t.constraint,r=i&&_e(i,Ae);return r?new Ee(e,{props:new O({options:r.values.value("options")}),value:n,viewProps:t.viewProps}):new De(e,{parser:t=>t,props:O.fromObject({formatter:Sn}),value:n,viewProps:t.viewProps})}},Uo={monitor:{defaultInterval:200,defaultLineCount:3}},Zo=v("mll");class Yo{constructor(t,e){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=e.formatter,this.element=t.createElement("div"),this.element.classList.add(Zo()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("textarea");n.classList.add(Zo("i")),n.style.height=`calc(var(--bld-us) * ${e.lineCount})`,n.readOnly=!0,e.viewProps.bindDisabled(n),this.element.appendChild(n),this.textareaElem_=n,e.value.emitter.on("change",this.onValueUpdate_),this.value=e.value,this.update_()}update_(){const t=this.textareaElem_,e=t.scrollTop===t.scrollHeight-t.clientHeight,n=[];this.value.rawValue.forEach(t=>{void 0!==t&&n.push(this.formatter_(t))}),t.textContent=n.join("\n"),e&&(t.scrollTop=t.scrollHeight)}onValueUpdate_(){this.update_()}}class Xo{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new Yo(t,{formatter:e.formatter,lineCount:e.lineCount,value:this.value,viewProps:this.viewProps})}}const qo=v("sgl");class Ko{constructor(t,e){this.onValueUpdate_=this.onValueUpdate_.bind(this),this.formatter_=e.formatter,this.element=t.createElement("div"),this.element.classList.add(qo()),e.viewProps.bindClassModifiers(this.element);const n=t.createElement("input");n.classList.add(qo("i")),n.readOnly=!0,n.type="text",e.viewProps.bindDisabled(n),this.element.appendChild(n),this.inputElement=n,e.value.emitter.on("change",this.onValueUpdate_),this.value=e.value,this.update_()}update_(){const t=this.value.rawValue,e=t[t.length-1];this.inputElement.value=void 0!==e?this.formatter_(e):""}onValueUpdate_(){this.update_()}}class Qo{constructor(t,e){this.value=e.value,this.viewProps=e.viewProps,this.view=new Ko(t,{formatter:e.formatter,value:this.value,viewProps:this.viewProps})}}const Jo={id:"monitor-bool",type:"monitor",accept:(t,e)=>{if("boolean"!=typeof t)return null;const n=N(e,{lineCount:B.optional.number});return n?{initialValue:t,params:n}:null},binding:{reader:t=>Be},controller:t=>{var e;return 1===t.value.rawValue.length?new Qo(t.document,{formatter:Ne,value:t.value,viewProps:t.viewProps}):new Xo(t.document,{formatter:Ne,lineCount:null!==(e=t.params.lineCount)&&void 0!==e?e:Uo.monitor.defaultLineCount,value:t.value,viewProps:t.viewProps})}},$o=v("grl");class ta{constructor(t,e){this.onCursorChange_=this.onCursorChange_.bind(this),this.onValueUpdate_=this.onValueUpdate_.bind(this),this.element=t.createElement("div"),this.element.classList.add($o()),e.viewProps.bindClassModifiers(this.element),this.formatter_=e.formatter,this.props_=e.props,this.cursor_=e.cursor,this.cursor_.emitter.on("change",this.onCursorChange_);const n=t.createElementNS(q,"svg");n.classList.add($o("g")),n.style.height=`calc(var(--bld-us) * ${e.lineCount})`,this.element.appendChild(n),this.svgElem_=n;const i=t.createElementNS(q,"polyline");this.svgElem_.appendChild(i),this.lineElem_=i;const r=t.createElement("div");r.classList.add($o("t"),v("tt")()),this.element.appendChild(r),this.tooltipElem_=r,e.value.emitter.on("change",this.onValueUpdate_),this.value=e.value,this.update_()}get graphElement(){return this.svgElem_}update_(){const t=this.svgElem_.getBoundingClientRect(),e=this.value.rawValue.length-1,n=this.props_.get("minValue"),i=this.props_.get("maxValue"),r=[];this.value.rawValue.forEach((o,a)=>{if(void 0===o)return;const s=Dn(a,0,e,0,t.width),l=Dn(o,n,i,t.height,0);r.push([s,l].join(","))}),this.lineElem_.setAttributeNS(null,"points",r.join(" "));const o=this.tooltipElem_,a=this.value.rawValue[this.cursor_.rawValue];if(void 0===a)return void o.classList.remove($o("t","a"));const s=Dn(this.cursor_.rawValue,0,e,0,t.width),l=Dn(a,n,i,t.height,0);o.style.left=`${s}px`,o.style.top=`${l}px`,o.textContent=`${this.formatter_(a)}`,o.classList.contains($o("t","a"))||(o.classList.add($o("t","a"),$o("t","in")),K(o),o.classList.remove($o("t","in")))}onValueUpdate_(){this.update_()}onCursorChange_(){this.update_()}}class ea{constructor(t,e){if(this.onGraphMouseMove_=this.onGraphMouseMove_.bind(this),this.onGraphMouseLeave_=this.onGraphMouseLeave_.bind(this),this.onGraphPointerDown_=this.onGraphPointerDown_.bind(this),this.onGraphPointerMove_=this.onGraphPointerMove_.bind(this),this.onGraphPointerUp_=this.onGraphPointerUp_.bind(this),this.props_=e.props,this.value=e.value,this.viewProps=e.viewProps,this.cursor_=T(-1),this.view=new ta(t,{cursor:this.cursor_,formatter:e.formatter,lineCount:e.lineCount,props:this.props_,value:this.value,viewProps:this.viewProps}),J(t)){const t=new Ln(this.view.element);t.emitter.on("down",this.onGraphPointerDown_),t.emitter.on("move",this.onGraphPointerMove_),t.emitter.on("up",this.onGraphPointerUp_)}else this.view.element.addEventListener("mousemove",this.onGraphMouseMove_),this.view.element.addEventListener("mouseleave",this.onGraphMouseLeave_)}onGraphMouseLeave_(){this.cursor_.rawValue=-1}onGraphMouseMove_(t){const e=this.view.element.getBoundingClientRect();this.cursor_.rawValue=Math.floor(Dn(t.offsetX,0,e.width,0,this.value.rawValue.length))}onGraphPointerDown_(t){this.onGraphPointerMove_(t)}onGraphPointerMove_(t){t.data.point?this.cursor_.rawValue=Math.floor(Dn(t.data.point.x,0,t.data.bounds.width,0,this.value.rawValue.length)):this.cursor_.rawValue=-1}onGraphPointerUp_(){this.cursor_.rawValue=-1}}function na(t){return"format"in t&&!l(t.format)?t.format:_n(2)}function ia(t){var e;return 1===t.value.rawValue.length?new Qo(t.document,{formatter:na(t.params),value:t.value,viewProps:t.viewProps}):new Xo(t.document,{formatter:na(t.params),lineCount:null!==(e=t.params.lineCount)&&void 0!==e?e:Uo.monitor.defaultLineCount,value:t.value,viewProps:t.viewProps})}function ra(t){var e,n,i;return new ea(t.document,{formatter:na(t.params),lineCount:null!==(e=t.params.lineCount)&&void 0!==e?e:Uo.monitor.defaultLineCount,props:O.fromObject({maxValue:null!==(n="max"in t.params?t.params.max:null)&&void 0!==n?n:100,minValue:null!==(i="min"in t.params?t.params.min:null)&&void 0!==i?i:0}),value:t.value,viewProps:t.viewProps})}function oa(t){return"view"in t&&"graph"===t.view}const aa={id:"monitor-number",type:"monitor",accept:(t,e)=>{if("number"!=typeof t)return null;const n=B,i=N(e,{format:n.optional.function,lineCount:n.optional.number,max:n.optional.number,min:n.optional.number,view:n.optional.string});return i?{initialValue:t,params:i}:null},binding:{defaultBufferSize:t=>oa(t)?64:1,reader:t=>xn},controller:t=>oa(t.params)?ra(t):ia(t)},sa={id:"monitor-string",type:"monitor",accept:(t,e)=>{if("string"!=typeof t)return null;const n=B,i=N(e,{lineCount:n.optional.number,multiline:n.optional.boolean});return i?{initialValue:t,params:i}:null},binding:{reader:t=>In},controller:t=>{var e;const n=t.value;return n.rawValue.length>1||"multiline"in t.params&&t.params.multiline?new Xo(t.document,{formatter:Sn,lineCount:null!==(e=t.params.lineCount)&&void 0!==e?e:Uo.monitor.defaultLineCount,value:n,viewProps:t.viewProps}):new Qo(t.document,{formatter:Sn,value:n,viewProps:t.viewProps})}};function la(t,e){var n;const i=t.accept(e.target.read(),e.params);if(l(i))return null;const r=B,o={target:e.target,initialValue:i.initialValue,params:i.params},a=t.binding.reader(o),s=t.binding.constraint?t.binding.constraint(o):void 0,c=T(a(i.initialValue),{constraint:s,equals:t.binding.equals}),u=new ge({reader:a,target:e.target,value:c,writer:t.binding.writer(o)}),h=r.optional.boolean(e.params.disabled).value,d=r.optional.boolean(e.params.hidden).value,p=t.controller({constraint:s,document:e.document,initialValue:i.initialValue,params:i.params,value:u.value,viewProps:W.create({disabled:h,hidden:d})});return new Mt(e.document,{binding:u,blade:gt(),props:O.fromObject({label:"label"in e.params?null!==(n=r.optional.string(e.params.label).value)&&void 0!==n?n:null:e.target.key}),valueController:p})}function ca(t,e){return 0===e?new pe:new fe(t,null!=e?e:Uo.monitor.defaultInterval)}function ua(t,e){var n,i,r;const o=B,a=t.accept(e.target.read(),e.params);if(l(a))return null;const s={target:e.target,initialValue:a.initialValue,params:a.params},c=t.binding.reader(s),u=null!==(i=null!==(n=o.optional.number(e.params.bufferSize).value)&&void 0!==n?n:t.binding.defaultBufferSize&&t.binding.defaultBufferSize(a.params))&&void 0!==i?i:1,h=o.optional.number(e.params.interval).value,d=new xe({reader:c,target:e.target,ticker:ca(e.document,h),value:ve(u)}),p=o.optional.boolean(e.params.disabled).value,f=o.optional.boolean(e.params.hidden).value,g=t.controller({document:e.document,params:a.params,value:d.value,viewProps:W.create({disabled:p,hidden:f})});return new Et(e.document,{binding:d,blade:gt(),props:O.fromObject({label:"label"in e.params?null!==(r=o.optional.string(e.params.label).value)&&void 0!==r?r:null:e.target.key}),valueController:g})}class ha{constructor(){this.pluginsMap_={blades:[],inputs:[],monitors:[]}}getAll(){return[...this.pluginsMap_.blades,...this.pluginsMap_.inputs,...this.pluginsMap_.monitors]}register(t){"blade"===t.type?this.pluginsMap_.blades.unshift(t):"input"===t.type?this.pluginsMap_.inputs.unshift(t):"monitor"===t.type&&this.pluginsMap_.monitors.unshift(t)}createInput(t,e,n){const i=e.read();if(l(i))throw new d({context:{key:e.key},type:"nomatchingcontroller"});const r=this.pluginsMap_.inputs.reduce((i,r)=>null!=i?i:la(r,{document:t,target:e,params:n}),null);if(r)return r;throw new d({context:{key:e.key},type:"nomatchingcontroller"})}createMonitor(t,e,n){const i=this.pluginsMap_.monitors.reduce((i,r)=>null!=i?i:ua(r,{document:t,params:n,target:e}),null);if(i)return i;throw new d({context:{key:e.key},type:"nomatchingcontroller"})}createBlade(t,e){const n=this.pluginsMap_.blades.reduce((n,i)=>null!=n?n:de(i,{document:t,params:e}),null);if(!n)throw new d({type:"nomatchingview",context:{params:e}});return n}createBladeApi(t){if(t instanceof Mt)return new St(t);if(t instanceof Et)return new kt(t);if(t instanceof Ht)return new jt(t,this);const e=this.pluginsMap_.blades.reduce((e,n)=>null!=e?e:n.api({controller:t,pool:this}),null);if(!e)throw d.shouldNeverHappen();return e}}function da(){const t=new ha;return[wa,Do,Go,Wo,bo,lo,so,io,li,Jo,sa,aa,pt,Yt,$t,he].forEach(e=>{t.register(e)}),t}function pa(t){return xo.isObject(t)?new xo(t.x,t.y):new xo}function fa(t,e){t.writeProperty("x",e.x),t.writeProperty("y",e.y)}function ga(t,e){if(!t)return;const n=[],i=go(t,e);i&&n.push(i);const r=mo(t);return r&&n.push(r),new we(n)}function ma(t,e){return new co({assembly:wo,components:[ga("x"in t?t.x:void 0,e.x),ga("y"in t?t.y:void 0,e.y)]})}function va(t,e){const[n,i]=t?vo(t):[];if(!l(n)||!l(i))return Math.max(Math.abs(null!=n?n:0),Math.abs(null!=i?i:0));const r=ni(t);return Math.max(10*Math.abs(r),10*Math.abs(e))}function ya(t,e){const n=e instanceof co?e.components[0]:void 0,i=e instanceof co?e.components[1]:void 0,r=va(n,t.x),o=va(i,t.y);return Math.max(r,o)}function ba(t,e){return{baseStep:ni(e),constraint:e,textProps:O.fromObject({draggingScale:ii(e,t),formatter:_n(ei(e,t))})}}function xa(t){if(!("y"in t))return!1;const e=t.y;return!!(e&&"inverted"in e)&&!!e.inverted}const wa={id:"input-point2d",type:"input",accept:(t,e)=>{if(!xo.isObject(t))return null;const n=B,i=N(e,{expanded:n.optional.boolean,picker:n.optional.custom(Kn),x:n.optional.custom(Qn),y:n.optional.object({inverted:n.optional.boolean,max:n.optional.number,min:n.optional.number,step:n.optional.number})});return i?{initialValue:t,params:i}:null},binding:{reader:t=>pa,constraint:t=>ma(t.params,t.initialValue),equals:xo.equals,writer:t=>fa},controller:t=>{const e=t.document,n=t.value,i=t.constraint;if(!(i instanceof co))throw d.shouldNeverHappen();const r="expanded"in t.params?t.params.expanded:void 0,o="picker"in t.params?t.params.picker:void 0;return new ko(e,{axes:[ba(n.rawValue.x,i.components[0]),ba(n.rawValue.y,i.components[1])],expanded:null!=r&&r,invertsY:xa(t.params),maxValue:ya(n.rawValue,i),parser:bn,pickerLayout:null!=o?o:"popup",value:n,viewProps:t.viewProps})}};class _a extends n{constructor(t){super(t),this.emitter_=new g,this.controller_.valueController.value.emitter.on("change",t=>{this.emitter_.emit("change",{event:new r(this,t.rawValue)})})}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get options(){return this.controller_.valueController.props.get("options")}set options(t){this.controller_.valueController.props.set("options",t)}get value(){return this.controller_.valueController.value.rawValue}set value(t){this.controller_.valueController.value.rawValue=t}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}class Ca extends n{constructor(t){super(t),this.emitter_=new g,this.controller_.valueController.value.emitter.on("change",t=>{this.emitter_.emit("change",{event:new r(this,t.rawValue)})})}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get maxValue(){return this.controller_.valueController.sliderController.props.get("maxValue")}set maxValue(t){this.controller_.valueController.sliderController.props.set("maxValue",t)}get minValue(){return this.controller_.valueController.sliderController.props.get("minValue")}set minValue(t){this.controller_.valueController.sliderController.props.set("minValue",t)}get value(){return this.controller_.valueController.value.rawValue}set value(t){this.controller_.valueController.value.rawValue=t}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}class Aa extends n{constructor(t){super(t),this.emitter_=new g,this.controller_.valueController.value.emitter.on("change",t=>{this.emitter_.emit("change",{event:new r(this,t.rawValue)})})}get label(){return this.controller_.props.get("label")}set label(t){this.controller_.props.set("label",t)}get formatter(){return this.controller_.valueController.props.get("formatter")}set formatter(t){this.controller_.valueController.props.set("formatter",t)}get value(){return this.controller_.valueController.value.rawValue}set value(t){this.controller_.valueController.value.rawValue=t}on(t,e){const n=e.bind(this);return this.emitter_.on(t,t=>{n(t.event)}),this}}const Ia=function(){return{id:"list",type:"blade",accept(t){const e=B,n=N(t,{options:e.required.custom(qn),value:e.required.raw,view:e.required.constant("list"),label:e.optional.string});return n?{params:n}:null},controller(t){const e=new Ae(Jn(t.params.options)),n=T(t.params.value,{constraint:e}),i=new Ee(t.document,{props:new O({options:e.values.value("options")}),value:n,viewProps:t.viewProps});return new Xt(t.document,{blade:t.blade,props:O.fromObject({label:t.params.label}),valueController:i})},api(t){return t.controller instanceof Xt&&t.controller.valueController instanceof Ee?new _a(t.controller):null}}}();function Sa(t){return t.reduce((t,e)=>Object.assign(t,{[e.presetKey]:e.read()}),{})}function Ma(t,e){t.forEach(t=>{const n=e[t.target.presetKey];void 0!==n&&t.writer(t.target,t.reader(n))})}class ka extends Lt{constructor(t,e){super(t,e)}get element(){return this.controller_.view.element}importPreset(t){const e=this.controller_.rackController.rack.find(Mt).map(t=>t.binding);Ma(e,t),this.refresh()}exportPreset(){const t=this.controller_.rackController.rack.find(Mt).map(t=>t.binding.target);return Sa(t)}refresh(){this.controller_.rackController.rack.find(Mt).forEach(t=>{t.binding.read()}),this.controller_.rackController.rack.find(Et).forEach(t=>{t.binding.read()})}}class Ea extends Zt{constructor(t,e){super(t,{expanded:e.expanded,blade:e.blade,props:e.props,root:!0,viewProps:e.viewProps})}}const Ta={id:"slider",type:"blade",accept(t){const e=B,n=N(t,{max:e.required.number,min:e.required.number,view:e.required.constant("slider"),format:e.optional.function,label:e.optional.string,value:e.optional.number});return n?{params:n}:null},controller(t){var e,n;const i=null!==(e=t.params.value)&&void 0!==e?e:0,r=new Ce({max:t.params.max,min:t.params.min}),o=new Yn(t.document,{baseStep:1,parser:bn,sliderProps:new O({maxValue:r.values.value("max"),minValue:r.values.value("min")}),textProps:O.fromObject({draggingScale:ii(void 0,i),formatter:null!==(n=t.params.format)&&void 0!==n?n:wn}),value:T(i,{constraint:r}),viewProps:t.viewProps});return new Xt(t.document,{blade:t.blade,props:O.fromObject({label:t.params.label}),valueController:o})},api(t){return t.controller instanceof Xt&&t.controller.valueController instanceof Yn?new Ca(t.controller):null}},Oa=function(){return{id:"text",type:"blade",accept(t){const e=B,n=N(t,{parse:e.required.function,value:e.required.raw,view:e.required.constant("text"),format:e.optional.function,label:e.optional.string});return n?{params:n}:null},controller(t){var e;const n=new De(t.document,{parser:t.params.parse,props:O.fromObject({formatter:null!==(e=t.params.format)&&void 0!==e?e:t=>String(t)}),value:T(t.params.value),viewProps:t.viewProps});return new Xt(t.document,{blade:t.blade,props:O.fromObject({label:t.params.label}),valueController:n})},api(t){return t.controller instanceof Xt&&t.controller.valueController instanceof De?new Aa(t.controller):null}}}();function Pa(t){const e=t.createElement("div");return e.classList.add(v("dfw")()),t.body&&t.body.appendChild(e),e}function ja(t,e,n){if(t.querySelector(`style[data-tp-style=${e}]`))return;const i=t.createElement("style");i.dataset.tpStyle=e,i.textContent=n,t.head.appendChild(i)}class La extends ka{constructor(t){var e,n;const i=null!=t?t:{},r=null!==(e=i.document)&&void 0!==e?e:tt(),o=da(),a=new Ea(r,{expanded:i.expanded,blade:gt(),props:O.fromObject({title:i.title}),viewProps:W.create()});super(a,o),this.pool_=o,this.containerElem_=null!==(n=i.container)&&void 0!==n?n:Pa(r),this.containerElem_.appendChild(this.element),this.doc_=r,this.usesDefaultWrapper_=!i.container,this.setUpDefaultPlugins_()}get document(){if(!this.doc_)throw d.alreadyDisposed();return this.doc_}dispose(){const t=this.containerElem_;if(!t)throw d.alreadyDisposed();if(this.usesDefaultWrapper_){const e=t.parentElement;e&&e.removeChild(t)}this.containerElem_=null,this.doc_=null,super.dispose()}registerPlugin(t){("plugin"in t?[t.plugin]:"plugins"in t?t.plugins:[]).forEach(t=>{this.pool_.register(t),this.embedPluginStyle_(t)})}embedPluginStyle_(t){t.css&&ja(this.document,`plugin-${t.id}`,t.css)}setUpDefaultPlugins_(){ja(this.document,"default",'.tp-tbiv_b,.tp-coltxtv_ms,.tp-ckbv_i,.tp-rotv_b,.tp-fldv_b,.tp-mllv_i,.tp-sglv_i,.tp-grlv_g,.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw,.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;font-family:inherit;font-size:inherit;font-weight:inherit;margin:0;outline:none;padding:0}.tp-p2dv_b,.tp-btnv_b,.tp-lstv_s{background-color:var(--btn-bg);border-radius:var(--elm-br);color:var(--btn-fg);cursor:pointer;display:block;font-weight:bold;height:var(--bld-us);line-height:var(--bld-us);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tp-p2dv_b:hover,.tp-btnv_b:hover,.tp-lstv_s:hover{background-color:var(--btn-bg-h)}.tp-p2dv_b:focus,.tp-btnv_b:focus,.tp-lstv_s:focus{background-color:var(--btn-bg-f)}.tp-p2dv_b:active,.tp-btnv_b:active,.tp-lstv_s:active{background-color:var(--btn-bg-a)}.tp-p2dv_b:disabled,.tp-btnv_b:disabled,.tp-lstv_s:disabled{opacity:.5}.tp-txtv_i,.tp-p2dpv_p,.tp-colswv_sw{background-color:var(--in-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--in-fg);font-family:inherit;height:var(--bld-us);line-height:var(--bld-us);min-width:0;width:100%}.tp-txtv_i:hover,.tp-p2dpv_p:hover,.tp-colswv_sw:hover{background-color:var(--in-bg-h)}.tp-txtv_i:focus,.tp-p2dpv_p:focus,.tp-colswv_sw:focus{background-color:var(--in-bg-f)}.tp-txtv_i:active,.tp-p2dpv_p:active,.tp-colswv_sw:active{background-color:var(--in-bg-a)}.tp-txtv_i:disabled,.tp-p2dpv_p:disabled,.tp-colswv_sw:disabled{opacity:.5}.tp-mllv_i,.tp-sglv_i,.tp-grlv_g{background-color:var(--mo-bg);border-radius:var(--elm-br);box-sizing:border-box;color:var(--mo-fg);height:var(--bld-us);scrollbar-color:currentColor rgba(0,0,0,0);scrollbar-width:thin;width:100%}.tp-mllv_i::-webkit-scrollbar,.tp-sglv_i::-webkit-scrollbar,.tp-grlv_g::-webkit-scrollbar{height:8px;width:8px}.tp-mllv_i::-webkit-scrollbar-corner,.tp-sglv_i::-webkit-scrollbar-corner,.tp-grlv_g::-webkit-scrollbar-corner{background-color:rgba(0,0,0,0)}.tp-mllv_i::-webkit-scrollbar-thumb,.tp-sglv_i::-webkit-scrollbar-thumb,.tp-grlv_g::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:currentColor;border:rgba(0,0,0,0) solid 2px;border-radius:4px}.tp-rotv{--font-family: var(--tp-font-family, Roboto Mono, Source Code Pro, Menlo, Courier, monospace);--bs-br: var(--tp-base-border-radius, 6px);--cnt-h-p: var(--tp-container-horizontal-padding, 4px);--cnt-v-p: var(--tp-container-vertical-padding, 4px);--elm-br: var(--tp-element-border-radius, 2px);--bld-s: var(--tp-blade-spacing, 4px);--bld-us: var(--tp-blade-unit-size, 20px);--bs-bg: var(--tp-base-background-color, hsl(230, 7%, 17%));--bs-sh: var(--tp-base-shadow-color, rgba(0, 0, 0, 0.2));--btn-bg: var(--tp-button-background-color, hsl(230, 7%, 70%));--btn-bg-a: var(--tp-button-background-color-active, #d6d7db);--btn-bg-f: var(--tp-button-background-color-focus, #c8cad0);--btn-bg-h: var(--tp-button-background-color-hover, #bbbcc4);--btn-fg: var(--tp-button-foreground-color, hsl(230, 7%, 17%));--cnt-bg: var(--tp-container-background-color, rgba(187, 188, 196, 0.1));--cnt-bg-a: var(--tp-container-background-color-active, rgba(187, 188, 196, 0.25));--cnt-bg-f: var(--tp-container-background-color-focus, rgba(187, 188, 196, 0.2));--cnt-bg-h: var(--tp-container-background-color-hover, rgba(187, 188, 196, 0.15));--cnt-fg: var(--tp-container-foreground-color, hsl(230, 7%, 75%));--in-bg: var(--tp-input-background-color, rgba(187, 188, 196, 0.1));--in-bg-a: var(--tp-input-background-color-active, rgba(187, 188, 196, 0.25));--in-bg-f: var(--tp-input-background-color-focus, rgba(187, 188, 196, 0.2));--in-bg-h: var(--tp-input-background-color-hover, rgba(187, 188, 196, 0.15));--in-fg: var(--tp-input-foreground-color, hsl(230, 7%, 75%));--lbl-fg: var(--tp-label-foreground-color, rgba(187, 188, 196, 0.7));--mo-bg: var(--tp-monitor-background-color, rgba(0, 0, 0, 0.2));--mo-fg: var(--tp-monitor-foreground-color, rgba(187, 188, 196, 0.7));--grv-fg: var(--tp-groove-foreground-color, rgba(187, 188, 196, 0.1))}.tp-rotv_c>.tp-cntv.tp-v-lst,.tp-tabv_c .tp-brkv>.tp-cntv.tp-v-lst,.tp-fldv_c>.tp-cntv.tp-v-lst{margin-bottom:calc(-1*var(--cnt-v-p))}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-tabv_c .tp-brkv>.tp-fldv.tp-v-lst .tp-fldv_c,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_c{border-bottom-left-radius:0}.tp-rotv_c>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-tabv_c .tp-brkv>.tp-fldv.tp-v-lst .tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-v-lst .tp-fldv_b{border-bottom-left-radius:0}.tp-rotv_c>*:not(.tp-v-fst),.tp-tabv_c .tp-brkv>*:not(.tp-v-fst),.tp-fldv_c>*:not(.tp-v-fst){margin-top:var(--bld-s)}.tp-rotv_c>.tp-sprv:not(.tp-v-fst),.tp-tabv_c .tp-brkv>.tp-sprv:not(.tp-v-fst),.tp-fldv_c>.tp-sprv:not(.tp-v-fst),.tp-rotv_c>.tp-cntv:not(.tp-v-fst),.tp-tabv_c .tp-brkv>.tp-cntv:not(.tp-v-fst),.tp-fldv_c>.tp-cntv:not(.tp-v-fst){margin-top:var(--cnt-v-p)}.tp-rotv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-tabv_c .tp-brkv>.tp-sprv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-sprv+*:not(.tp-v-hidden),.tp-rotv_c>.tp-cntv+*:not(.tp-v-hidden),.tp-tabv_c .tp-brkv>.tp-cntv+*:not(.tp-v-hidden),.tp-fldv_c>.tp-cntv+*:not(.tp-v-hidden){margin-top:var(--cnt-v-p)}.tp-rotv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-tabv_c .tp-brkv>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-fldv_c>.tp-sprv:not(.tp-v-hidden)+.tp-sprv,.tp-rotv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-tabv_c .tp-brkv>.tp-cntv:not(.tp-v-hidden)+.tp-cntv,.tp-fldv_c>.tp-cntv:not(.tp-v-hidden)+.tp-cntv{margin-top:0}.tp-tabv_c .tp-brkv>.tp-cntv,.tp-fldv_c>.tp-cntv{margin-left:4px}.tp-tabv_c .tp-brkv>.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-fldv>.tp-fldv_b{border-top-left-radius:var(--elm-br);border-bottom-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv>.tp-fldv.tp-fldv-expanded>.tp-fldv_b,.tp-fldv_c>.tp-fldv.tp-fldv-expanded>.tp-fldv_b{border-bottom-left-radius:0}.tp-tabv_c .tp-brkv .tp-fldv>.tp-fldv_c,.tp-fldv_c .tp-fldv>.tp-fldv_c{border-bottom-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv>.tp-cntv+.tp-fldv>.tp-fldv_b,.tp-fldv_c>.tp-cntv+.tp-fldv>.tp-fldv_b{border-top-left-radius:0}.tp-tabv_c .tp-brkv>.tp-cntv+.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-cntv+.tp-tabv>.tp-tabv_t{border-top-left-radius:0}.tp-tabv_c .tp-brkv>.tp-tabv>.tp-tabv_t,.tp-fldv_c>.tp-tabv>.tp-tabv_t{border-top-left-radius:var(--elm-br)}.tp-tabv_c .tp-brkv .tp-tabv>.tp-tabv_c,.tp-fldv_c .tp-tabv>.tp-tabv_c{border-bottom-left-radius:var(--elm-br)}.tp-rotv_b,.tp-fldv_b{background-color:var(--cnt-bg);color:var(--cnt-fg);cursor:pointer;display:block;height:calc(var(--bld-us) + 4px);line-height:calc(var(--bld-us) + 4px);overflow:hidden;padding-left:var(--cnt-h-p);padding-right:calc(4px + var(--bld-us) + var(--cnt-h-p));position:relative;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%;transition:border-radius .2s ease-in-out .2s}.tp-rotv_b:hover,.tp-fldv_b:hover{background-color:var(--cnt-bg-h)}.tp-rotv_b:focus,.tp-fldv_b:focus{background-color:var(--cnt-bg-f)}.tp-rotv_b:active,.tp-fldv_b:active{background-color:var(--cnt-bg-a)}.tp-rotv_b:disabled,.tp-fldv_b:disabled{opacity:.5}.tp-rotv_m,.tp-fldv_m{background:linear-gradient(to left, var(--cnt-fg), var(--cnt-fg) 2px, transparent 2px, transparent 4px, var(--cnt-fg) 4px);border-radius:2px;bottom:0;content:"";display:block;height:6px;right:calc(var(--cnt-h-p) + (var(--bld-us) + 4px - 6px)/2 - 2px);margin:auto;opacity:.5;position:absolute;top:0;transform:rotate(90deg);transition:transform .2s ease-in-out;width:6px}.tp-rotv.tp-rotv-expanded .tp-rotv_m,.tp-fldv.tp-fldv-expanded>.tp-fldv_b>.tp-fldv_m{transform:none}.tp-rotv_c,.tp-fldv_c{box-sizing:border-box;height:0;opacity:0;overflow:hidden;padding-bottom:0;padding-top:0;position:relative;transition:height .2s ease-in-out,opacity .2s linear,padding .2s ease-in-out}.tp-rotv.tp-rotv-cpl:not(.tp-rotv-expanded) .tp-rotv_c,.tp-fldv.tp-fldv-cpl:not(.tp-fldv-expanded)>.tp-fldv_c{display:none}.tp-rotv.tp-rotv-expanded .tp-rotv_c,.tp-fldv.tp-fldv-expanded>.tp-fldv_c{opacity:1;padding-bottom:var(--cnt-v-p);padding-top:var(--cnt-v-p);transform:none;overflow:visible;transition:height .2s ease-in-out,opacity .2s linear .2s,padding .2s ease-in-out}.tp-lstv,.tp-coltxtv_m{position:relative}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m,.tp-coltxtv_mm{bottom:0;margin:auto;pointer-events:none;position:absolute;right:2px;top:0}.tp-lstv_m svg,.tp-coltxtv_mm svg{bottom:0;height:16px;margin:auto;position:absolute;right:0;top:0;width:16px}.tp-lstv_m svg path,.tp-coltxtv_mm svg path{fill:currentColor}.tp-pndtxtv,.tp-coltxtv_w{display:flex}.tp-pndtxtv_a,.tp-coltxtv_c{width:100%}.tp-pndtxtv_a+.tp-pndtxtv_a,.tp-coltxtv_c+.tp-pndtxtv_a,.tp-pndtxtv_a+.tp-coltxtv_c,.tp-coltxtv_c+.tp-coltxtv_c{margin-left:2px}.tp-btnv_b{width:100%}.tp-btnv_t{text-align:center}.tp-ckbv_l{display:block;position:relative}.tp-ckbv_i{left:0;opacity:0;position:absolute;top:0}.tp-ckbv_w{background-color:var(--in-bg);border-radius:var(--elm-br);cursor:pointer;display:block;height:var(--bld-us);position:relative;width:var(--bld-us)}.tp-ckbv_w svg{bottom:0;display:block;height:16px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;width:16px}.tp-ckbv_w svg path{fill:none;stroke:var(--in-fg);stroke-width:2}.tp-ckbv_i:hover+.tp-ckbv_w{background-color:var(--in-bg-h)}.tp-ckbv_i:focus+.tp-ckbv_w{background-color:var(--in-bg-f)}.tp-ckbv_i:active+.tp-ckbv_w{background-color:var(--in-bg-a)}.tp-ckbv_i:checked+.tp-ckbv_w svg{opacity:1}.tp-ckbv.tp-v-disabled .tp-ckbv_w{opacity:.5}.tp-colv{position:relative}.tp-colv_h{display:flex}.tp-colv_s{flex-grow:0;flex-shrink:0;width:var(--bld-us)}.tp-colv_t{flex:1;margin-left:4px}.tp-colv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-colv.tp-colv-cpl .tp-colv_p{overflow:visible}.tp-colv.tp-colv-expanded .tp-colv_p{margin-top:var(--bld-s);opacity:1}.tp-colv .tp-popv{left:calc(-1*var(--cnt-h-p));right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-colpv_h,.tp-colpv_ap{margin-left:6px;margin-right:6px}.tp-colpv_h{margin-top:var(--bld-s)}.tp-colpv_rgb{display:flex;margin-top:var(--bld-s);width:100%}.tp-colpv_a{display:flex;margin-top:var(--cnt-v-p);padding-top:calc(var(--cnt-v-p) + 2px);position:relative}.tp-colpv_a::before{background-color:var(--grv-fg);content:"";height:2px;left:calc(-1*var(--cnt-h-p));position:absolute;right:calc(-1*var(--cnt-h-p));top:0}.tp-colpv.tp-v-disabled .tp-colpv_a::before{opacity:.5}.tp-colpv_ap{align-items:center;display:flex;flex:3}.tp-colpv_at{flex:1;margin-left:4px}.tp-svpv{border-radius:var(--elm-br);outline:none;overflow:hidden;position:relative}.tp-svpv.tp-v-disabled{opacity:.5}.tp-svpv_c{cursor:crosshair;display:block;height:calc(var(--bld-us)*4);width:100%}.tp-svpv_m{border-radius:100%;border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;filter:drop-shadow(0 0 1px rgba(0, 0, 0, 0.3));height:12px;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;width:12px}.tp-svpv:focus .tp-svpv_m{border-color:#fff}.tp-hplv{cursor:pointer;height:var(--bld-us);outline:none;position:relative}.tp-hplv.tp-v-disabled{opacity:.5}.tp-hplv_c{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAABCAYAAABubagXAAAAQ0lEQVQoU2P8z8Dwn0GCgQEDi2OK/RBgYHjBgIpfovFh8j8YBIgzFGQxuqEgPhaDOT5gOhPkdCxOZeBg+IDFZZiGAgCaSSMYtcRHLgAAAABJRU5ErkJggg==);background-position:left top;background-repeat:no-repeat;background-size:100% 100%;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;position:absolute;top:50%;width:100%}.tp-hplv_m{border-radius:var(--elm-br);border:rgba(255,255,255,.75) solid 2px;box-shadow:0 0 2px rgba(0,0,0,.1);box-sizing:border-box;height:12px;left:50%;margin-left:-6px;margin-top:-6px;pointer-events:none;position:absolute;top:50%;width:12px}.tp-hplv:focus .tp-hplv_m{border-color:#fff}.tp-aplv{cursor:pointer;height:var(--bld-us);outline:none;position:relative;width:100%}.tp-aplv.tp-v-disabled{opacity:.5}.tp-aplv_b{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:4px 4px;background-position:0 0,2px 2px;border-radius:2px;display:block;height:4px;left:0;margin-top:-2px;overflow:hidden;position:absolute;top:50%;width:100%}.tp-aplv_c{bottom:0;left:0;position:absolute;right:0;top:0}.tp-aplv_m{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:12px 12px;background-position:0 0,6px 6px;border-radius:var(--elm-br);box-shadow:0 0 2px rgba(0,0,0,.1);height:12px;left:50%;margin-left:-6px;margin-top:-6px;overflow:hidden;pointer-events:none;position:absolute;top:50%;width:12px}.tp-aplv_p{border-radius:var(--elm-br);border:rgba(255,255,255,.75) solid 2px;box-sizing:border-box;bottom:0;left:0;position:absolute;right:0;top:0}.tp-aplv:focus .tp-aplv_p{border-color:#fff}.tp-colswv{background-color:#fff;background-image:linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%),linear-gradient(to top right, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);background-size:10px 10px;background-position:0 0,5px 5px;border-radius:var(--elm-br);overflow:hidden}.tp-colswv.tp-v-disabled{opacity:.5}.tp-colswv_sw{border-radius:0}.tp-colswv_b{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:rgba(0,0,0,0);border-width:0;cursor:pointer;display:block;height:var(--bld-us);left:0;margin:0;outline:none;padding:0;position:absolute;top:0;width:var(--bld-us)}.tp-colswv_b:focus::after{border:rgba(255,255,255,.75) solid 2px;border-radius:var(--elm-br);bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.tp-coltxtv{display:flex;width:100%}.tp-coltxtv_m{margin-right:4px}.tp-coltxtv_ms{border-radius:var(--elm-br);color:var(--lbl-fg);cursor:pointer;height:var(--bld-us);line-height:var(--bld-us);padding:0 18px 0 4px}.tp-coltxtv_ms:hover{background-color:var(--in-bg-h)}.tp-coltxtv_ms:focus{background-color:var(--in-bg-f)}.tp-coltxtv_ms:active{background-color:var(--in-bg-a)}.tp-coltxtv_mm{color:var(--lbl-fg)}.tp-coltxtv.tp-v-disabled .tp-coltxtv_mm{opacity:.5}.tp-coltxtv_w{flex:1}.tp-dfwv{position:absolute;top:8px;right:8px;width:256px}.tp-fldv{position:relative}.tp-fldv.tp-fldv-not .tp-fldv_b{display:none}.tp-fldv_t{padding-left:4px}.tp-fldv_b:disabled .tp-fldv_m{display:none}.tp-fldv_c{padding-left:4px}.tp-fldv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--bld-us) + 4px);width:var(--bs-br)}.tp-fldv_i::before{background-color:currentColor;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.tp-fldv_b:hover+.tp-fldv_i{color:var(--cnt-bg-h)}.tp-fldv_b:focus+.tp-fldv_i{color:var(--cnt-bg-f)}.tp-fldv_b:active+.tp-fldv_i{color:var(--cnt-bg-a)}.tp-fldv.tp-v-disabled>.tp-fldv_i{opacity:.5}.tp-grlv{position:relative}.tp-grlv_g{display:block;height:calc(var(--bld-us)*3)}.tp-grlv_g polyline{fill:none;stroke:var(--mo-fg);stroke-linejoin:round}.tp-grlv_t{margin-top:-4px;transition:left .05s,top .05s;visibility:hidden}.tp-grlv_t.tp-grlv_t-a{visibility:visible}.tp-grlv_t.tp-grlv_t-in{transition:none}.tp-grlv.tp-v-disabled .tp-grlv_g{opacity:.5}.tp-grlv .tp-ttv{background-color:var(--mo-fg)}.tp-grlv .tp-ttv::before{border-top-color:var(--mo-fg)}.tp-lblv{align-items:center;display:flex;line-height:1.3;padding-left:var(--cnt-h-p);padding-right:var(--cnt-h-p)}.tp-lblv.tp-lblv-nol{display:block}.tp-lblv_l{color:var(--lbl-fg);flex:1;-webkit-hyphens:auto;hyphens:auto;overflow:hidden;padding-left:4px;padding-right:16px}.tp-lblv.tp-v-disabled .tp-lblv_l{opacity:.5}.tp-lblv.tp-lblv-nol .tp-lblv_l{display:none}.tp-lblv_v{align-self:flex-start;flex-grow:0;flex-shrink:0;width:160px}.tp-lblv.tp-lblv-nol .tp-lblv_v{width:100%}.tp-lstv_s{padding:0 20px 0 4px;width:100%}.tp-lstv_m{color:var(--btn-fg)}.tp-sglv_i{padding:0 4px}.tp-sglv.tp-v-disabled .tp-sglv_i{opacity:.5}.tp-mllv_i{display:block;height:calc(var(--bld-us)*3);line-height:var(--bld-us);padding:0 4px;resize:none;white-space:pre}.tp-mllv.tp-v-disabled .tp-mllv_i{opacity:.5}.tp-p2dv{position:relative}.tp-p2dv_h{display:flex}.tp-p2dv_b{height:var(--bld-us);margin-right:4px;position:relative;width:var(--bld-us)}.tp-p2dv_b svg{display:block;height:16px;left:50%;margin-left:-8px;margin-top:-8px;position:absolute;top:50%;width:16px}.tp-p2dv_b svg path{stroke:currentColor;stroke-width:2}.tp-p2dv_b svg circle{fill:currentColor}.tp-p2dv_t{flex:1}.tp-p2dv_p{height:0;margin-top:0;opacity:0;overflow:hidden;transition:height .2s ease-in-out,opacity .2s linear,margin .2s ease-in-out}.tp-p2dv.tp-p2dv-expanded .tp-p2dv_p{margin-top:var(--bld-s);opacity:1}.tp-p2dv .tp-popv{left:calc(-1*var(--cnt-h-p));right:calc(-1*var(--cnt-h-p));top:var(--bld-us)}.tp-p2dpv{padding-left:calc(var(--bld-us) + 4px)}.tp-p2dpv_p{cursor:crosshair;height:0;overflow:hidden;padding-bottom:100%;position:relative}.tp-p2dpv.tp-v-disabled .tp-p2dpv_p{opacity:.5}.tp-p2dpv_g{display:block;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.tp-p2dpv_ax{opacity:.1;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_l{opacity:.5;stroke:var(--in-fg);stroke-dasharray:1}.tp-p2dpv_m{border:var(--in-fg) solid 1px;border-radius:50%;box-sizing:border-box;height:4px;margin-left:-2px;margin-top:-2px;position:absolute;width:4px}.tp-p2dpv_p:focus .tp-p2dpv_m{background-color:var(--in-fg);border-width:0}.tp-popv{background-color:var(--bs-bg);border-radius:6px;box-shadow:0 2px 4px var(--bs-sh);display:none;max-width:168px;padding:var(--cnt-v-p) var(--cnt-h-p);position:absolute;visibility:hidden;z-index:1000}.tp-popv.tp-popv-v{display:block;visibility:visible}.tp-sprv_r{background-color:var(--grv-fg);border-width:0;display:block;height:2px;margin:0;width:100%}.tp-sprv.tp-v-disabled .tp-sprv_r{opacity:.5}.tp-sldv.tp-v-disabled{opacity:.5}.tp-sldv_t{box-sizing:border-box;cursor:pointer;height:var(--bld-us);margin:0 6px;outline:none;position:relative}.tp-sldv_t::before{background-color:var(--in-bg);border-radius:1px;bottom:0;content:"";display:block;height:2px;left:0;margin:auto;position:absolute;right:0;top:0}.tp-sldv_k{height:100%;left:0;position:absolute;top:0}.tp-sldv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";display:block;height:2px;left:0;margin-bottom:auto;margin-top:auto;position:absolute;right:0;top:0}.tp-sldv_k::after{background-color:var(--btn-bg);border-radius:var(--elm-br);bottom:0;content:"";display:block;height:12px;margin-bottom:auto;margin-top:auto;position:absolute;right:-6px;top:0;width:12px}.tp-sldv_t:hover .tp-sldv_k::after{background-color:var(--btn-bg-h)}.tp-sldv_t:focus .tp-sldv_k::after{background-color:var(--btn-bg-f)}.tp-sldv_t:active .tp-sldv_k::after{background-color:var(--btn-bg-a)}.tp-sldtxtv{display:flex}.tp-sldtxtv_s{flex:2}.tp-sldtxtv_t{flex:1;margin-left:4px}.tp-tabv{position:relative}.tp-tabv_t{align-items:flex-end;color:var(--cnt-bg);display:flex;overflow:hidden;position:relative}.tp-tabv_t:hover{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus){color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active){color:var(--cnt-bg-a)}.tp-tabv_t::before{background-color:currentColor;bottom:0;content:"";height:2px;left:0;pointer-events:none;position:absolute;right:0}.tp-tabv.tp-v-disabled .tp-tabv_t::before{opacity:.5}.tp-tabv.tp-tabv-nop .tp-tabv_t{height:calc(var(--bld-us) + 4px);position:relative}.tp-tabv.tp-tabv-nop .tp-tabv_t::before{background-color:var(--cnt-bg);bottom:0;content:"";height:2px;left:0;position:absolute;right:0}.tp-tabv_c{padding-bottom:var(--cnt-v-p);padding-left:4px;padding-top:var(--cnt-v-p)}.tp-tabv_i{bottom:0;color:var(--cnt-bg);left:0;overflow:hidden;position:absolute;top:calc(var(--bld-us) + 4px);width:var(--bs-br)}.tp-tabv_i::before{background-color:currentColor;bottom:0;content:"";left:0;position:absolute;top:0;width:4px}.tp-tabv_t:hover+.tp-tabv_i{color:var(--cnt-bg-h)}.tp-tabv_t:has(*:focus)+.tp-tabv_i{color:var(--cnt-bg-f)}.tp-tabv_t:has(*:active)+.tp-tabv_i{color:var(--cnt-bg-a)}.tp-tabv.tp-v-disabled>.tp-tabv_i{opacity:.5}.tp-tbiv{flex:1;min-width:0;position:relative}.tp-tbiv+.tp-tbiv{margin-left:2px}.tp-tbiv+.tp-tbiv.tp-v-disabled::before{opacity:.5}.tp-tbiv_b{display:block;padding-left:calc(var(--cnt-h-p) + 4px);padding-right:calc(var(--cnt-h-p) + 4px);position:relative;width:100%}.tp-tbiv_b:disabled{opacity:.5}.tp-tbiv_b::before{background-color:var(--cnt-bg);bottom:2px;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.tp-tbiv_b:hover::before{background-color:var(--cnt-bg-h)}.tp-tbiv_b:focus::before{background-color:var(--cnt-bg-f)}.tp-tbiv_b:active::before{background-color:var(--cnt-bg-a)}.tp-tbiv_t{color:var(--cnt-fg);height:calc(var(--bld-us) + 4px);line-height:calc(var(--bld-us) + 4px);opacity:.5;overflow:hidden;text-overflow:ellipsis}.tp-tbiv.tp-tbiv-sel .tp-tbiv_t{opacity:1}.tp-txtv{position:relative}.tp-txtv_i{padding:0 4px}.tp-txtv.tp-txtv-fst .tp-txtv_i{border-bottom-right-radius:0;border-top-right-radius:0}.tp-txtv.tp-txtv-mid .tp-txtv_i{border-radius:0}.tp-txtv.tp-txtv-lst .tp-txtv_i{border-bottom-left-radius:0;border-top-left-radius:0}.tp-txtv.tp-txtv-num .tp-txtv_i{text-align:right}.tp-txtv.tp-txtv-drg .tp-txtv_i{opacity:.3}.tp-txtv_k{cursor:pointer;height:100%;left:-3px;position:absolute;top:0;width:12px}.tp-txtv_k::before{background-color:var(--in-fg);border-radius:1px;bottom:0;content:"";height:calc(var(--bld-us) - 4px);left:50%;margin-bottom:auto;margin-left:-1px;margin-top:auto;opacity:.1;position:absolute;top:0;transition:border-radius .1s,height .1s,transform .1s,width .1s;width:2px}.tp-txtv_k:hover::before,.tp-txtv.tp-txtv-drg .tp-txtv_k::before{opacity:1}.tp-txtv.tp-txtv-drg .tp-txtv_k::before{border-radius:50%;height:4px;transform:translateX(-1px);width:4px}.tp-txtv_g{bottom:0;display:block;height:8px;left:50%;margin:auto;overflow:visible;pointer-events:none;position:absolute;top:0;visibility:hidden;width:100%}.tp-txtv.tp-txtv-drg .tp-txtv_g{visibility:visible}.tp-txtv_gb{fill:none;stroke:var(--in-fg);stroke-dasharray:1}.tp-txtv_gh{fill:none;stroke:var(--in-fg)}.tp-txtv .tp-ttv{margin-left:6px;visibility:hidden}.tp-txtv.tp-txtv-drg .tp-ttv{visibility:visible}.tp-ttv{background-color:var(--in-fg);border-radius:var(--elm-br);color:var(--bs-bg);padding:2px 4px;pointer-events:none;position:absolute;transform:translate(-50%, -100%)}.tp-ttv::before{border-color:var(--in-fg) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);border-style:solid;border-width:2px;box-sizing:border-box;content:"";font-size:.9em;height:4px;left:50%;margin-left:-2px;position:absolute;top:100%;width:4px}.tp-rotv{background-color:var(--bs-bg);border-radius:var(--bs-br);box-shadow:0 2px 4px var(--bs-sh);font-family:var(--font-family);font-size:11px;font-weight:500;line-height:1;text-align:left}.tp-rotv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br);border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br);padding-left:calc(4px + var(--bld-us) + var(--cnt-h-p));text-align:center}.tp-rotv.tp-rotv-expanded .tp-rotv_b{border-bottom-left-radius:0;border-bottom-right-radius:0}.tp-rotv.tp-rotv-not .tp-rotv_b{display:none}.tp-rotv_b:disabled .tp-rotv_m{display:none}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst>.tp-fldv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv_c>.tp-fldv.tp-v-lst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c .tp-fldv.tp-v-vlst:not(.tp-fldv-expanded)>.tp-fldv_b{border-bottom-right-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst{margin-top:calc(-1*var(--cnt-v-p))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-fldv.tp-v-fst>.tp-fldv_b{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_c{border-bottom-left-radius:var(--bs-br);border-bottom-right-radius:var(--bs-br)}.tp-rotv_c>.tp-tabv.tp-v-lst>.tp-tabv_i{border-bottom-left-radius:var(--bs-br)}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst{margin-top:calc(-1*var(--cnt-v-p))}.tp-rotv.tp-rotv-not .tp-rotv_c>.tp-tabv.tp-v-fst>.tp-tabv_t{border-top-left-radius:var(--bs-br);border-top-right-radius:var(--bs-br)}.tp-rotv.tp-v-disabled,.tp-rotv .tp-v-disabled{pointer-events:none}.tp-rotv.tp-v-hidden,.tp-rotv .tp-v-hidden{display:none}'),this.pool_.getAll().forEach(t=>{this.embedPluginStyle_(t)}),this.registerPlugin({plugins:[Ta,Ia,he,Oa]})}}const Da=new e("3.1.7");t.BladeApi=n,t.ButtonApi=f,t.FolderApi=Lt,t.InputBindingApi=St,t.ListApi=_a,t.MonitorBindingApi=kt,t.Pane=La,t.SeparatorApi=qt,t.SliderApi=Ca,t.TabApi=oe,t.TabPageApi=re,t.TextApi=Aa,t.TpChangeEvent=r,t.VERSION=Da,Object.defineProperty(t,"__esModule",{value:!0})}))},7476:function(t,e,n){var i,r;(function(o,a,s){t.exports?t.exports=s():(i=s,r="function"==typeof i?i.call(e,n,e,t):i,void 0!==r&&(t.exports=r))})(0,0,(function(){var t={defaultRadius:40,defaultRenderer:"canvas2d",defaultGradient:{.25:"rgb(0,0,255)",.55:"rgb(0,255,0)",.85:"yellow",1:"rgb(255,0,0)"},defaultMaxOpacity:1,defaultMinOpacity:0,defaultBlur:.85,defaultXField:"x",defaultYField:"y",defaultValueField:"value",plugins:{}},e=function(){var e=function(t){this._coordinator={},this._data=[],this._radi=[],this._min=10,this._max=1,this._xField=t.xField||t.defaultXField,this._yField=t.yField||t.defaultYField,this._valueField=t.valueField||t.defaultValueField,t.radius&&(this._cfgRadius=t.radius)},n=t.defaultRadius;return e.prototype={_organiseData:function(t,e){var i=t[this._xField],r=t[this._yField],o=this._radi,a=this._data,s=this._max,l=this._min,c=t[this._valueField]||1,u=t.radius||this._cfgRadius||n;a[i]||(a[i]=[],o[i]=[]),a[i][r]?a[i][r]+=c:(a[i][r]=c,o[i][r]=u);var h=a[i][r];return h>s?(e?this.setDataMax(h):this._max=h,!1):h<l?(e?this.setDataMin(h):this._min=h,!1):{x:i,y:r,value:c,radius:u,min:l,max:s}},_unOrganizeData:function(){var t=[],e=this._data,n=this._radi;for(var i in e)for(var r in e[i])t.push({x:i,y:r,radius:n[i][r],value:e[i][r]});return{min:this._min,max:this._max,data:t}},_onExtremaChange:function(){this._coordinator.emit("extremachange",{min:this._min,max:this._max})},addData:function(){if(arguments[0].length>0)for(var t=arguments[0],e=t.length;e--;)this.addData.call(this,t[e]);else{var n=this._organiseData(arguments[0],!0);n&&(0===this._data.length&&(this._min=this._max=n.value),this._coordinator.emit("renderpartial",{min:this._min,max:this._max,data:[n]}))}return this},setData:function(t){var e=t.data,n=e.length;this._data=[],this._radi=[];for(var i=0;i<n;i++)this._organiseData(e[i],!1);return this._max=t.max,this._min=t.min||0,this._onExtremaChange(),this._coordinator.emit("renderall",this._getInternalData()),this},removeData:function(){},setDataMax:function(t){return this._max=t,this._onExtremaChange(),this._coordinator.emit("renderall",this._getInternalData()),this},setDataMin:function(t){return this._min=t,this._onExtremaChange(),this._coordinator.emit("renderall",this._getInternalData()),this},setCoordinator:function(t){this._coordinator=t},_getInternalData:function(){return{max:this._max,min:this._min,data:this._data,radi:this._radi}},getData:function(){return this._unOrganizeData()}},e}(),n=function(){var t=function(t){var n=t.container,i=this.shadowCanvas=document.createElement("canvas"),r=this.canvas=t.canvas||document.createElement("canvas"),o=(this._renderBoundaries=[1e4,1e4,0,0],getComputedStyle(t.container)||{});r.className="heatmap-canvas",this._width=r.width=i.width=t.width||+o.width.replace(/px/,""),this._height=r.height=i.height=t.height||+o.height.replace(/px/,""),this.shadowCtx=i.getContext("2d"),this.ctx=r.getContext("2d"),r.style.cssText=i.style.cssText="position:absolute;left:0;top:0;",n.style.position="relative",n.appendChild(r),this._palette=e(t),this._templates={},this._setStyles(t)},e=function(t){var e=t.gradient||t.defaultGradient,n=document.createElement("canvas"),i=n.getContext("2d");n.width=256,n.height=1;var r=i.createLinearGradient(0,0,256,1);for(var o in e)r.addColorStop(o,e[o]);return i.fillStyle=r,i.fillRect(0,0,256,1),i.getImageData(0,0,256,1).data},n=function(t,e){var n=document.createElement("canvas"),i=n.getContext("2d"),r=t,o=t;if(n.width=n.height=2*t,1==e)i.beginPath(),i.arc(r,o,t,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{var a=i.createRadialGradient(r,o,t*e,r,o,t);a.addColorStop(0,"rgba(0,0,0,1)"),a.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=a,i.fillRect(0,0,2*t,2*t)}return n},i=function(t){for(var e=[],n=t.min,i=t.max,r=t.radi,o=(t=t.data,Object.keys(t)),a=o.length;a--;)for(var s=o[a],l=Object.keys(t[s]),c=l.length;c--;){var u=l[c],h=t[s][u],d=r[s][u];e.push({x:s,y:u,value:h,radius:d})}return{min:n,max:i,data:e}};return t.prototype={renderPartial:function(t){t.data.length>0&&(this._drawAlpha(t),this._colorize())},renderAll:function(t){this._clear(),t.data.length>0&&(this._drawAlpha(i(t)),this._colorize())},_updateGradient:function(t){this._palette=e(t)},updateConfig:function(t){t.gradient&&this._updateGradient(t),this._setStyles(t)},setDimensions:function(t,e){this._width=t,this._height=e,this.canvas.width=this.shadowCanvas.width=t,this.canvas.height=this.shadowCanvas.height=e},_clear:function(){this.shadowCtx.clearRect(0,0,this._width,this._height),this.ctx.clearRect(0,0,this._width,this._height)},_setStyles:function(t){this._blur=0==t.blur?0:t.blur||t.defaultBlur,t.backgroundColor&&(this.canvas.style.backgroundColor=t.backgroundColor),this._width=this.canvas.width=this.shadowCanvas.width=t.width||this._width,this._height=this.canvas.height=this.shadowCanvas.height=t.height||this._height,this._opacity=255*(t.opacity||0),this._maxOpacity=255*(t.maxOpacity||t.defaultMaxOpacity),this._minOpacity=255*(t.minOpacity||t.defaultMinOpacity),this._useGradientOpacity=!!t.useGradientOpacity},_drawAlpha:function(t){for(var e=this._min=t.min,i=this._max=t.max,r=(t=t.data||[],t.length),o=1-this._blur;r--;){var a,s=t[r],l=s.x,c=s.y,u=s.radius,h=Math.min(s.value,i),d=l-u,p=c-u,f=this.shadowCtx;this._templates[u]?a=this._templates[u]:this._templates[u]=a=n(u,o);var g=(h-e)/(i-e);f.globalAlpha=g<.01?.01:g,f.drawImage(a,d,p),d<this._renderBoundaries[0]&&(this._renderBoundaries[0]=d),p<this._renderBoundaries[1]&&(this._renderBoundaries[1]=p),d+2*u>this._renderBoundaries[2]&&(this._renderBoundaries[2]=d+2*u),p+2*u>this._renderBoundaries[3]&&(this._renderBoundaries[3]=p+2*u)}},_colorize:function(){var t=this._renderBoundaries[0],e=this._renderBoundaries[1],n=this._renderBoundaries[2]-t,i=this._renderBoundaries[3]-e,r=this._width,o=this._height,a=this._opacity,s=this._maxOpacity,l=this._minOpacity,c=this._useGradientOpacity;t<0&&(t=0),e<0&&(e=0),t+n>r&&(n=r-t),e+i>o&&(i=o-e);for(var u=this.shadowCtx.getImageData(t,e,n,i),h=u.data,d=h.length,p=this._palette,f=3;f<d;f+=4){var g,m=h[f],v=4*m;if(v)g=a>0?a:m<s?m<l?l:m:s,h[f-3]=p[v],h[f-2]=p[v+1],h[f-1]=p[v+2],h[f]=c?p[v+3]:g}this.ctx.putImageData(u,t,e),this._renderBoundaries=[1e3,1e3,0,0]},getValueAt:function(t){var e,n=this.shadowCtx,i=n.getImageData(t.x,t.y,1,1),r=i.data[3],o=this._max,a=this._min;return e=Math.abs(o-a)*(r/255)>>0,e},getDataURL:function(){return this.canvas.toDataURL()}},t}(),i=function(){var e=!1;return"canvas2d"===t.defaultRenderer&&(e=n),e}(),r={merge:function(){for(var t={},e=arguments.length,n=0;n<e;n++){var i=arguments[n];for(var r in i)t[r]=i[r]}return t}},o=function(){var n=function(){var n=this._config=r.merge(t,arguments[0]||{});if(this._coordinator=new o,n.plugin){var s=n.plugin;if(!t.plugins[s])throw new Error("Plugin '".concat(s,"' not found. Maybe it was not registered."));var l=t.plugins[s];this._renderer=new l.renderer(n),this._store=new l.store(n)}else this._renderer=new i(n),this._store=new e(n);a(this)},o=function(){var t=function(){this.cStore={}};return t.prototype={on:function(t,e,n){var i=this.cStore;i[t]||(i[t]=[]),i[t].push((function(t){return e.call(n,t)}))},emit:function(t,e){var n=this.cStore;if(n[t])for(var i=n[t].length,r=0;r<i;r++){var o=n[t][r];o(e)}}},t}(),a=function(t){var e=t._renderer,n=t._coordinator,i=t._store;n.on("renderpartial",e.renderPartial,e),n.on("renderall",e.renderAll,e),n.on("extremachange",(function(e){t._config.onExtremaChange&&t._config.onExtremaChange({min:e.min,max:e.max,gradient:t._config.gradient||t._config.defaultGradient})})),i.setCoordinator(n)};return n.prototype={addData:function(){return this._store.addData.apply(this._store,arguments),this},removeData:function(){return this._store.removeData&&this._store.removeData.apply(this._store,arguments),this},setData:function(){return this._store.setData.apply(this._store,arguments),this},setDataMax:function(){return this._store.setDataMax.apply(this._store,arguments),this},setDataMin:function(){return this._store.setDataMin.apply(this._store,arguments),this},configure:function(t){return this._config=r.merge(this._config,t),this._renderer.updateConfig(this._config),this._coordinator.emit("renderall",this._store._getInternalData()),this},repaint:function(){return this._coordinator.emit("renderall",this._store._getInternalData()),this},getData:function(){return this._store.getData()},getDataURL:function(){return this._renderer.getDataURL()},getValueAt:function(t){return this._store.getValueAt?this._store.getValueAt(t):this._renderer.getValueAt?this._renderer.getValueAt(t):null}},n}(),a={create:function(t){return new o(t)},register:function(e,n){t.plugins[e]=n}};return a}))},2494:function(t){"use strict";t.exports=n("22b5")},1700:function(t){"use strict";t.exports=n("a128")},5644:function(t){"use strict";t.exports=n("5a89")},9434:function(t,e,n){"use strict";n.r(e),n.d(e,{directoryOpen:function(){return l},directoryOpenLegacy:function(){return _},directoryOpenModern:function(){return m},fileOpen:function(){return a},fileOpenLegacy:function(){return x},fileOpenModern:function(){return d},fileSave:function(){return u},fileSaveLegacy:function(){return A},fileSaveModern:function(){return y},supported:function(){return i}});const i=(()=>{if("undefined"==typeof self)return!1;if("top"in self&&self!==top);else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1})(),r=i?Promise.resolve().then((function(){return p})):Promise.resolve().then((function(){return w}));function a(...t){return o(this,null,(function*(){return(yield r).default(...t)}))}const s=i?Promise.resolve().then((function(){return v})):Promise.resolve().then((function(){return C}));function l(...t){return o(this,null,(function*(){return(yield s).default(...t)}))}const c=i?Promise.resolve().then((function(){return b})):Promise.resolve().then((function(){return I}));function u(...t){return o(this,null,(function*(){return(yield c).default(...t)}))}const h=t=>o(this,null,(function*(){const e=yield t.getFile();return e.handle=t,e}));var d=(...t)=>o(this,[...t],(function*(t=[{}]){Array.isArray(t)||(t=[t]);const e=[];t.forEach((t,n)=>{e[n]={description:t.description||"Files",accept:{}},t.mimeTypes?t.mimeTypes.map(i=>{e[n].accept[i]=t.extensions||[]}):e[n].accept["*/*"]=t.extensions||[]});const n=yield window.showOpenFilePicker({id:t[0].id,startIn:t[0].startIn,types:e,multiple:t[0].multiple||!1,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1}),i=yield Promise.all(n.map(h));return t[0].multiple?i:i[0]})),p={__proto__:null,default:d};function f(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return f=function(t){this.s=t,this.n=t.next},f.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):e(n.apply(this.s,arguments))}},new f(t)}const g=(t,e,...n)=>o(this,[t,e,...n],(function*(t,e,n=t.name,i){const r=[],o=[];var a,s=!1,l=!1;try{for(var c,u=function(t){var e,n,i,r=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);r--;){if(n&&null!=(e=t[n]))return e.call(t);if(i&&null!=(e=t[i]))return new f(e.call(t));n="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}(t.values());s=!(c=yield u.next()).done;s=!1){const a=c.value,s=`${n}/${a.name}`;"file"===a.kind?o.push(a.getFile().then(e=>(e.directoryHandle=t,e.handle=a,Object.defineProperty(e,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>s})))):"directory"!==a.kind||!e||i&&i(a)||r.push(g(a,e,s,i))}}catch(h){l=!0,a=h}finally{try{s&&null!=u.return&&(yield u.return())}finally{if(l)throw a}}return[...(yield Promise.all(r)).flat(),...yield Promise.all(o)]}));var m=(...t)=>o(this,[...t],(function*(t={}){t.recursive=t.recursive||!1,t.mode=t.mode||"read";const e=yield window.showDirectoryPicker({id:t.id,startIn:t.startIn,mode:t.mode});return g(e,t.recursive,void 0,t.skipDirectory)})),v={__proto__:null,default:m},y=(t,...e)=>o(this,[t,...e],(function*(t,e=[{}],n=null,i=!1,r=null){Array.isArray(e)||(e=[e]),e[0].fileName=e[0].fileName||"Untitled";const o=[];let a=null;if(t instanceof Blob&&t.type?a=t.type:t.headers&&t.headers.get("content-type")&&(a=t.headers.get("content-type")),e.forEach((t,e)=>{o[e]={description:t.description||"Files",accept:{}},t.mimeTypes?(0===e&&a&&t.mimeTypes.push(a),t.mimeTypes.map(n=>{o[e].accept[n]=t.extensions||[]})):a?o[e].accept[a]=t.extensions||[]:o[e].accept["*/*"]=t.extensions||[]}),n)try{yield n.getFile()}catch(c){if(n=null,i)throw c}const s=n||(yield window.showSaveFilePicker({suggestedName:e[0].fileName,id:e[0].id,startIn:e[0].startIn,types:o,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}));!n&&r&&r(s);const l=yield s.createWritable();return"stream"in t?(yield t.stream().pipeTo(l),s):"body"in t?(yield t.body.pipeTo(l),s):(yield l.write(yield t),yield l.close(),s)})),b={__proto__:null,default:y},x=(...t)=>o(this,[...t],(function*(t=[{}]){return Array.isArray(t)||(t=[t]),new Promise((e,n)=>{const i=document.createElement("input");i.type="file";const r=[...t.map(t=>t.mimeTypes||[]),...t.map(t=>t.extensions||[])].join();i.multiple=t[0].multiple||!1,i.accept=r||"",i.style.display="none",document.body.append(i);const o=t=>{"function"==typeof a&&a(),e(t)},a=t[0].legacySetup&&t[0].legacySetup(o,()=>a(n),i),s=()=>{window.removeEventListener("focus",s),i.remove()};i.addEventListener("click",()=>{window.addEventListener("focus",s)}),i.addEventListener("change",()=>{window.removeEventListener("focus",s),i.remove(),o(i.multiple?Array.from(i.files):i.files[0])}),"showPicker"in HTMLInputElement.prototype?i.showPicker():i.click()})})),w={__proto__:null,default:x},_=(...t)=>o(this,[...t],(function*(t=[{}]){return Array.isArray(t)||(t=[t]),t[0].recursive=t[0].recursive||!1,new Promise((e,n)=>{const i=document.createElement("input");i.type="file",i.webkitdirectory=!0;const r=t=>{"function"==typeof o&&o(),e(t)},o=t[0].legacySetup&&t[0].legacySetup(r,()=>o(n),i);i.addEventListener("change",()=>{let e=Array.from(i.files);t[0].recursive?t[0].recursive&&t[0].skipDirectory&&(e=e.filter(e=>e.webkitRelativePath.split("/").every(e=>!t[0].skipDirectory({name:e,kind:"directory"})))):e=e.filter(t=>2===t.webkitRelativePath.split("/").length),r(e)}),"showPicker"in HTMLInputElement.prototype?i.showPicker():i.click()})})),C={__proto__:null,default:_},A=(t,...e)=>o(this,[t,...e],(function*(t,e={}){Array.isArray(e)&&(e=e[0]);const n=document.createElement("a");let i=t;"body"in t&&(i=yield function(t,e){return o(this,null,(function*(){const n=t.getReader(),i=new ReadableStream({start:t=>(function e(){return o(this,null,(function*(){return n.read().then(({done:n,value:i})=>{if(!n)return t.enqueue(i),e();t.close()})}))})()}),r=new Response(i),a=yield r.blob();return n.releaseLock(),new Blob([a],{type:e})}))}(t.body,t.headers.get("content-type"))),n.download=e.fileName||"Untitled",n.href=URL.createObjectURL(yield i);const r=()=>{"function"==typeof a&&a()},a=e.legacySetup&&e.legacySetup(r,()=>a(),n);return n.addEventListener("click",()=>{setTimeout(()=>URL.revokeObjectURL(n.href),3e4),r()}),n.click(),null})),I={__proto__:null,default:A}},9757:function(t,e,n){"use strict";function i(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}n.d(e,{Z:function(){return i}})},2461:function(t,e,n){"use strict";n.d(e,{Nw:function(){return l},ZR:function(){return c},ml:function(){return s}});var i=n(9757),r=n(477),o=n(9215);const a=(0,r.Z)(i.Z),s=a.right,l=a.left,c=(0,r.Z)(o.Z).center;e.ZP=s},477:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var i=n(9757),r=n(8837);function o(t){let e,n,o;function s(t,i,r=0,o=t.length){if(r<o){if(0!==e(i,i))return o;do{const e=r+o>>>1;n(t[e],i)<0?r=e+1:o=e}while(r<o)}return r}function l(t,i,r=0,o=t.length){if(r<o){if(0!==e(i,i))return o;do{const e=r+o>>>1;n(t[e],i)<=0?r=e+1:o=e}while(r<o)}return r}function c(t,e,n=0,i=t.length){const r=s(t,e,n,i-1);return r>n&&o(t[r-1],e)>-o(t[r],e)?r-1:r}return 2!==t.length?(e=i.Z,n=(e,n)=>(0,i.Z)(t(e),n),o=(e,n)=>t(e)-n):(e=t===i.Z||t===r.Z?t:a,n=t,o=t),{left:s,center:c,right:l}}function a(){return 0}},8837:function(t,e,n){"use strict";function i(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}n.d(e,{Z:function(){return i}})},9089:function(t,e,n){"use strict";function i(t,e){let n,i;if(void 0===e)for(const r of t)null!=r&&(void 0===n?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(void 0===n?o>=o&&(n=i=o):(n>o&&(n=o),i<o&&(i=o)))}return[n,i]}n.d(e,{Z:function(){return i}})},2682:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(9757);function r(t,e=i.Z){let n,r=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(r?(0,i.Z)(t,o)>0:0===(0,i.Z)(t,t))&&(n=a,o=t,r=!0)}}else for(const i of t)(r?e(i,n)>0:0===e(i,i))&&(n=i,r=!0);return n}},691:function(t,e,n){"use strict";n.r(e),n.d(e,{Adder:function(){return S},InternMap:function(){return E.L},InternSet:function(){return E.H},ascending:function(){return r.Z},bin:function(){return K},bisect:function(){return i.ZP},bisectCenter:function(){return i.ZR},bisectLeft:function(){return i.Nw},bisectRight:function(){return i.ml},bisector:function(){return o.Z},blur:function(){return a},blur2:function(){return s},blurImage:function(){return l},count:function(){return g},cross:function(){return x},cumsum:function(){return w},descending:function(){return _.Z},deviation:function(){return A},difference:function(){return jt},disjoint:function(){return Lt},every:function(){return Mt},extent:function(){return I.Z},fcumsum:function(){return k},filter:function(){return Et},flatGroup:function(){return L},flatRollup:function(){return D},fsum:function(){return M},greatest:function(){return yt.Z},greatestIndex:function(){return bt},group:function(){return O},groupSort:function(){return H},groups:function(){return P},histogram:function(){return K},index:function(){return N},indexes:function(){return F},intersection:function(){return Dt},least:function(){return mt},leastIndex:function(){return vt},map:function(){return Tt},max:function(){return tt.Z},maxIndex:function(){return et.Z},mean:function(){return nt},median:function(){return it},medianIndex:function(){return rt},merge:function(){return at},min:function(){return st.Z},minIndex:function(){return lt.Z},mode:function(){return ct},nice:function(){return X},pairs:function(){return ut},permute:function(){return dt.Z},quantile:function(){return Q.ZP},quantileIndex:function(){return Q.Cr},quantileSorted:function(){return Q.s7},quickselect:function(){return pt.Z},range:function(){return ft.Z},rank:function(){return gt},reduce:function(){return Ot},reverse:function(){return Pt},rollup:function(){return R},rollups:function(){return B},scan:function(){return xt},shuffle:function(){return wt},shuffler:function(){return _t},some:function(){return kt},sort:function(){return G.ZP},subset:function(){return Ft},sum:function(){return Ct},superset:function(){return Bt},thresholdFreedmanDiaconis:function(){return J},thresholdScott:function(){return $},thresholdSturges:function(){return q},tickIncrement:function(){return Y.G9},tickStep:function(){return Y.ly},ticks:function(){return Y.ZP},transpose:function(){return At},union:function(){return zt},variance:function(){return C},zip:function(){return St}});var i=n(2461),r=n(9757),o=n(477);function a(t,e){if(!((e=+e)>=0))throw new RangeError("invalid r");let n=t.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!e)return t;const i=p(e),r=t.slice();return i(t,r,0,n,1),i(r,t,0,n,1),i(t,r,0,n,1),t}const s=c(p),l=c(d);function c(t){return function(e,n,i=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((i=+i)>=0))throw new RangeError("invalid ry");let{data:r,width:o,height:a}=e;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");if(!((a=Math.floor(void 0!==a?a:r.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!n&&!i)return e;const s=n&&t(n),l=i&&t(i),c=r.slice();return s&&l?(u(s,c,r,o,a),u(s,r,c,o,a),u(s,c,r,o,a),h(l,r,c,o,a),h(l,c,r,o,a),h(l,r,c,o,a)):s?(u(s,r,c,o,a),u(s,c,r,o,a),u(s,r,c,o,a)):l&&(h(l,r,c,o,a),h(l,c,r,o,a),h(l,r,c,o,a)),e}}function u(t,e,n,i,r){for(let o=0,a=i*r;o<a;)t(e,n,o,o+=i,1)}function h(t,e,n,i,r){for(let o=0,a=i*r;o<i;++o)t(e,n,o,o+a,i)}function d(t){const e=p(t);return(t,n,i,r,o)=>{i<<=2,r<<=2,o<<=2,e(t,n,i+0,r+0,o),e(t,n,i+1,r+1,o),e(t,n,i+2,r+2,o),e(t,n,i+3,r+3,o)}}function p(t){const e=Math.floor(t);if(e===t)return f(t);const n=t-e,i=2*t+1;return(t,r,o,a,s)=>{if(!((a-=s)>=o))return;let l=e*r[o];const c=s*e,u=c+s;for(let e=o,n=o+c;e<n;e+=s)l+=r[Math.min(a,e)];for(let e=o,h=a;e<=h;e+=s)l+=r[Math.min(a,e+c)],t[e]=(l+n*(r[Math.max(o,e-u)]+r[Math.min(a,e+u)]))/i,l-=r[Math.max(o,e-c)]}}function f(t){const e=2*t+1;return(n,i,r,o,a)=>{if(!((o-=a)>=r))return;let s=t*i[r];const l=a*t;for(let t=r,e=r+l;t<e;t+=a)s+=i[Math.min(o,t)];for(let t=r,c=o;t<=c;t+=a)s+=i[Math.min(o,t+l)],n[t]=s/e,s-=i[Math.max(r,t-l)]}}function g(t,e){let n=0;if(void 0===e)for(let i of t)null!=i&&(i=+i)>=i&&++n;else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(r=+r)>=r&&++n}return n}function m(t){return 0|t.length}function v(t){return!(t>0)}function y(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function b(t){return e=>t(...e)}function x(...t){const e="function"==typeof t[t.length-1]&&b(t.pop());t=t.map(y);const n=t.map(m),i=t.length-1,r=new Array(i+1).fill(0),o=[];if(i<0||n.some(v))return o;for(;;){o.push(r.map((e,n)=>t[n][e]));let a=i;for(;++r[a]===n[a];){if(0===a)return e?o.map(e):o;r[a--]=0}}}function w(t,e){var n=0,i=0;return Float64Array.from(t,void 0===e?t=>n+=+t||0:r=>n+=+e(r,i++,t)||0)}var _=n(8837);function C(t,e){let n,i=0,r=0,o=0;if(void 0===e)for(let a of t)null!=a&&(a=+a)>=a&&(n=a-r,r+=n/++i,o+=n*(a-r));else{let a=-1;for(let s of t)null!=(s=e(s,++a,t))&&(s=+s)>=s&&(n=s-r,r+=n/++i,o+=n*(s-r))}if(i>1)return o/(i-1)}function A(t,e){const n=C(t,e);return n&&Math.sqrt(n)}var I=n(9089);class S{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const e=this._partials;let n=0;for(let i=0;i<this._n&&i<32;i++){const r=e[i],o=t+r,a=Math.abs(t)<Math.abs(r)?t-(o-r):r-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}valueOf(){const t=this._partials;let e,n,i,r=this._n,o=0;if(r>0){for(o=t[--r];r>0&&(e=o,n=t[--r],o=e+n,i=n-(o-e),!i););r>0&&(i<0&&t[r-1]<0||i>0&&t[r-1]>0)&&(n=2*i,e=o+n,n==e-o&&(o=e))}return o}}function M(t,e){const n=new S;if(void 0===e)for(let i of t)(i=+i)&&n.add(i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&n.add(r)}return+n}function k(t,e){const n=new S;let i=-1;return Float64Array.from(t,void 0===e?t=>n.add(+t||0):r=>n.add(+e(r,++i,t)||0))}var E=n(909);function T(t){return t}function O(t,...e){return V(t,T,T,e)}function P(t,...e){return V(t,Array.from,T,e)}function j(t,e){for(let n=1,i=e.length;n<i;++n)t=t.flatMap(t=>t.pop().map(([e,n])=>[...t,e,n]));return t}function L(t,...e){return j(P(t,...e),e)}function D(t,e,...n){return j(B(t,e,...n),n)}function R(t,e,...n){return V(t,T,e,n)}function B(t,e,...n){return V(t,Array.from,e,n)}function N(t,...e){return V(t,T,z,e)}function F(t,...e){return V(t,Array.from,z,e)}function z(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function V(t,e,n,i){return function t(r,o){if(o>=i.length)return n(r);const a=new E.L,s=i[o++];let l=-1;for(const e of r){const t=s(e,++l,r),n=a.get(t);n?n.push(e):a.set(t,[e])}for(const[e,n]of a)a.set(e,t(n,o));return e(a)}(t,0)}var G=n(5978);function H(t,e,n){return(2!==e.length?(0,G.ZP)(R(t,e,n),([t,e],[n,i])=>(0,r.Z)(e,i)||(0,r.Z)(t,n)):(0,G.ZP)(O(t,n),([t,n],[i,o])=>e(n,o)||(0,r.Z)(t,i))).map(([t])=>t)}var W=Array.prototype,U=W.slice;W.map;function Z(t){return()=>t}var Y=n(3896);function X(t,e,n){let i;for(;;){const r=(0,Y.G9)(t,e,n);if(r===i||0===r||!isFinite(r))return[t,e];r>0?(t=Math.floor(t/r)*r,e=Math.ceil(e/r)*r):r<0&&(t=Math.ceil(t*r)/r,e=Math.floor(e*r)/r),i=r}}function q(t){return Math.ceil(Math.log(g(t))/Math.LN2)+1}function K(){var t=T,e=I.Z,n=q;function r(r){Array.isArray(r)||(r=Array.from(r));var o,a,s,l=r.length,c=new Array(l);for(o=0;o<l;++o)c[o]=t(r[o],o,r);var u=e(c),h=u[0],d=u[1],p=n(c,h,d);if(!Array.isArray(p)){const t=d,n=+p;if(e===I.Z&&([h,d]=X(h,d,n)),p=(0,Y.ZP)(h,d,n),p[0]<=h&&(s=(0,Y.G9)(h,d,n)),p[p.length-1]>=d)if(t>=d&&e===I.Z){const t=(0,Y.G9)(h,d,n);isFinite(t)&&(t>0?d=(Math.floor(d/t)+1)*t:t<0&&(d=(Math.ceil(d*-t)+1)/-t))}else p.pop()}for(var f=p.length;p[0]<=h;)p.shift(),--f;for(;p[f-1]>d;)p.pop(),--f;var g,m=new Array(f+1);for(o=0;o<=f;++o)g=m[o]=[],g.x0=o>0?p[o-1]:h,g.x1=o<f?p[o]:d;if(isFinite(s)){if(s>0)for(o=0;o<l;++o)null!=(a=c[o])&&h<=a&&a<=d&&m[Math.min(f,Math.floor((a-h)/s))].push(r[o]);else if(s<0)for(o=0;o<l;++o)if(null!=(a=c[o])&&h<=a&&a<=d){const t=Math.floor((h-a)*s);m[Math.min(f,t+(p[t]<=a))].push(r[o])}}else for(o=0;o<l;++o)null!=(a=c[o])&&h<=a&&a<=d&&m[(0,i.ZP)(p,a,0,f)].push(r[o]);return m}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:Z(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:Z([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Z(U.call(t)):Z(t),r):n},r}var Q=n(6057);function J(t,e,n){return Math.ceil((n-e)/(2*((0,Q.ZP)(t,.75)-(0,Q.ZP)(t,.25))*Math.pow(g(t),-.3333333333333333)))}function $(t,e,n){return Math.ceil((n-e)*Math.cbrt(g(t))/(3.49*A(t)))}var tt=n(8776),et=n(9671);function nt(t,e){let n=0,i=0;if(void 0===e)for(let r of t)null!=r&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(o=+o)>=o&&(++n,i+=o)}if(n)return i/n}function it(t,e){return(0,Q.ZP)(t,.5,e)}function rt(t,e){return(0,Q.Cr)(t,.5,e)}function*ot(t){for(const e of t)yield*e}function at(t){return Array.from(ot(t))}var st=n(8398),lt=n(2677);function ct(t,e){const n=new E.L;if(void 0===e)for(let o of t)null!=o&&o>=o&&n.set(o,(n.get(o)||0)+1);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&r>=r&&n.set(r,(n.get(r)||0)+1)}let i,r=0;for(const[o,a]of n)a>r&&(r=a,i=o);return i}function ut(t,e=ht){const n=[];let i,r=!1;for(const o of t)r&&n.push(e(i,o)),i=o,r=!0;return n}function ht(t,e){return[t,e]}var dt=n(2355),pt=n(8534),ft=n(5162);function gt(t,e=r.Z){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");let n=Array.from(t);const i=new Float64Array(n.length);2!==e.length&&(n=n.map(e),e=r.Z);const o=(t,i)=>e(n[t],n[i]);let a,s;return Uint32Array.from(n,(t,e)=>e).sort(e===r.Z?(t,e)=>(0,G.Wv)(n[t],n[e]):(0,G.di)(o)).forEach((t,e)=>{const n=o(t,void 0===a?t:a);n>=0?((void 0===a||n>0)&&(a=t,s=e),i[t]=s):i[t]=NaN}),i}function mt(t,e=r.Z){let n,i=!1;if(1===e.length){let o;for(const a of t){const t=e(a);(i?(0,r.Z)(t,o)<0:0===(0,r.Z)(t,t))&&(n=a,o=t,i=!0)}}else for(const r of t)(i?e(r,n)<0:0===e(r,r))&&(n=r,i=!0);return n}function vt(t,e=r.Z){if(1===e.length)return(0,lt.Z)(t,e);let n,i=-1,o=-1;for(const r of t)++o,(i<0?0===e(r,r):e(r,n)<0)&&(n=r,i=o);return i}var yt=n(2682);function bt(t,e=r.Z){if(1===e.length)return(0,et.Z)(t,e);let n,i=-1,o=-1;for(const r of t)++o,(i<0?0===e(r,r):e(r,n)>0)&&(n=r,i=o);return i}function xt(t,e){const n=vt(t,e);return n<0?void 0:n}var wt=_t(Math.random);function _t(t){return function(e,n=0,i=e.length){let r=i-(n=+n);for(;r;){const i=t()*r--|0,o=e[r+n];e[r+n]=e[i+n],e[i+n]=o}return e}}function Ct(t,e){let n=0;if(void 0===e)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function At(t){if(!(r=t.length))return[];for(var e=-1,n=(0,st.Z)(t,It),i=new Array(n);++e<n;)for(var r,o=-1,a=i[e]=new Array(r);++o<r;)a[o]=t[o][e];return i}function It(t){return t.length}function St(){return At(arguments)}function Mt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const i of t)if(!e(i,++n,t))return!1;return!0}function kt(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");let n=-1;for(const i of t)if(e(i,++n,t))return!0;return!1}function Et(t,e){if("function"!=typeof e)throw new TypeError("test is not a function");const n=[];let i=-1;for(const r of t)e(r,++i,t)&&n.push(r);return n}function Tt(t,e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof e)throw new TypeError("mapper is not a function");return Array.from(t,(n,i)=>e(n,i,t))}function Ot(t,e,n){if("function"!=typeof e)throw new TypeError("reducer is not a function");const i=t[Symbol.iterator]();let r,o,a=-1;if(arguments.length<3){if(({done:r,value:n}=i.next()),r)return;++a}for(;({done:r,value:o}=i.next()),!r;)n=e(n,o,++a,t);return n}function Pt(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function jt(t,...e){t=new E.H(t);for(const n of e)for(const e of n)t.delete(e);return t}function Lt(t,e){const n=e[Symbol.iterator](),i=new E.H;for(const r of t){if(i.has(r))return!1;let t,e;for(;({value:t,done:e}=n.next())&&!e;){if(Object.is(r,t))return!1;i.add(t)}}return!0}function Dt(t,...e){t=new E.H(t),e=e.map(Rt);t:for(const n of t)for(const i of e)if(!i.has(n)){t.delete(n);continue t}return t}function Rt(t){return t instanceof E.H?t:new E.H(t)}function Bt(t,e){const n=t[Symbol.iterator](),i=new Set;for(const r of e){const t=Nt(r);if(i.has(t))continue;let e,o;for(;({value:e,done:o}=n.next());){if(o)return!1;const n=Nt(e);if(i.add(n),Object.is(t,n))break}}return!0}function Nt(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Ft(t,e){return Bt(e,t)}function zt(...t){const e=new E.H;for(const n of t)for(const t of n)e.add(t);return e}},8776:function(t,e,n){"use strict";function i(t,e){let n;if(void 0===e)for(const i of t)null!=i&&(n<i||void 0===n&&i>=i)&&(n=i);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}n.d(e,{Z:function(){return i}})},9671:function(t,e,n){"use strict";function i(t,e){let n,i=-1,r=-1;if(void 0===e)for(const o of t)++r,null!=o&&(n<o||void 0===n&&o>=o)&&(n=o,i=r);else for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o,i=r);return i}n.d(e,{Z:function(){return i}})},8398:function(t,e,n){"use strict";function i(t,e){let n;if(void 0===e)for(const i of t)null!=i&&(n>i||void 0===n&&i>=i)&&(n=i);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}n.d(e,{Z:function(){return i}})},2677:function(t,e,n){"use strict";function i(t,e){let n,i=-1,r=-1;if(void 0===e)for(const o of t)++r,null!=o&&(n>o||void 0===n&&o>=o)&&(n=o,i=r);else for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o,i=r);return i}n.d(e,{Z:function(){return i}})},9215:function(t,e,n){"use strict";function i(t){return null===t?NaN:+t}function*r(t,e){if(void 0===e)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(i=+i)>=i&&(yield i)}}n.d(e,{K:function(){return r},Z:function(){return i}})},2355:function(t,e,n){"use strict";function i(t,e){return Array.from(e,e=>t[e])}n.d(e,{Z:function(){return i}})},6057:function(t,e,n){"use strict";n.d(e,{Cr:function(){return p},ZP:function(){return h},s7:function(){return d}});var i=n(8776),r=n(9671),o=n(8398),a=n(2677),s=n(8534),l=n(9215),c=n(5978),u=n(2682);function h(t,e,n){if(t=Float64Array.from((0,l.K)(t,n)),r=t.length){if((e=+e)<=0||r<2)return(0,o.Z)(t);if(e>=1)return(0,i.Z)(t);var r,a=(r-1)*e,c=Math.floor(a),u=(0,i.Z)((0,s.Z)(t,c).subarray(0,c+1)),h=(0,o.Z)(t.subarray(c+1));return u+(h-u)*(a-c)}}function d(t,e,n=l.Z){if(i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,o=Math.floor(r),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(r-o)}}function p(t,e,n){if(t=Float64Array.from((0,l.K)(t,n)),i=t.length){if((e=+e)<=0||i<2)return(0,a.Z)(t);if(e>=1)return(0,r.Z)(t);var i,o=Math.floor((i-1)*e),h=(e,n)=>(0,c.Wv)(t[e],t[n]),d=(0,s.Z)(Uint32Array.from(t,(t,e)=>e),o,0,i-1,h);return(0,u.Z)(d.subarray(0,o+1),e=>t[e])}}},8534:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(5978);function r(t,e,n=0,a=t.length-1,s){for(s=void 0===s?i.Wv:(0,i.di)(s);a>n;){if(a-n>600){const i=a-n+1,o=e-n+1,l=Math.log(i),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(i-c)/i)*(o-i/2<0?-1:1),h=Math.max(n,Math.floor(e-o*c/i+u)),d=Math.min(a,Math.floor(e+(i-o)*c/i+u));r(t,e,h,d,s)}const i=t[e];let l=n,c=a;for(o(t,n,e),s(t[a],i)>0&&o(t,n,a);l<c;){for(o(t,l,c),++l,--c;s(t[l],i)<0;)++l;for(;s(t[c],i)>0;)--c}0===s(t[n],i)?o(t,n,c):(++c,o(t,c,a)),c<=e&&(n=c+1),e<=c&&(a=c-1)}return t}function o(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}},5162:function(t,e,n){"use strict";function i(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(r);++i<r;)o[i]=t+i*n;return o}n.d(e,{Z:function(){return i}})},5978:function(t,e,n){"use strict";n.d(e,{Wv:function(){return s},ZP:function(){return o},di:function(){return a}});var i=n(9757),r=n(2355);function o(t,...e){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&2!==n.length||e.length>1){const i=Uint32Array.from(t,(t,e)=>e);return e.length>1?(e=e.map(e=>t.map(e)),i.sort((t,n)=>{for(const i of e){const e=s(i[t],i[n]);if(e)return e}})):(n=t.map(n),i.sort((t,e)=>s(n[t],n[e]))),(0,r.Z)(t,i)}return t.sort(a(n))}function a(t=i.Z){if(t===i.Z)return s;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const i=t(e,n);return i||0===i?i:(0===t(n,n))-(0===t(e,e))}}function s(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}},3896:function(t,e,n){"use strict";n.d(e,{G9:function(){return s},ZP:function(){return a},ly:function(){return l}});var i=Math.sqrt(50),r=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){var i,r,o,a,l=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=s(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),i=Math.round(e/a);for(n*a<t&&++n,i*a>e&&--i,o=new Array(r=i-n+1);++l<r;)o[l]=(n+l)*a}else{a=-a;let n=Math.round(t*a),i=Math.round(e*a);for(n/a<t&&++n,i/a>e&&--i,o=new Array(r=i-n+1);++l<r;)o[l]=(n+l)/a}return i&&o.reverse(),o}function s(t,e,n){var a=(e-t)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),l=a/Math.pow(10,s);return s>=0?(l>=i?10:l>=r?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=i?10:l>=r?5:l>=o?2:1)}function l(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=i?s*=10:l>=r?s*=5:l>=o&&(s*=2),e<t?-s:s}},6535:function(t,e,n){"use strict";n.d(e,{WU:function(){return g},jH:function(){return m}});var i=n(5368);function r(t,e){return function(n,i){for(var r=n.length,o=[],a=0,s=t[0],l=0;r>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),o.push(n.substring(r-=s,r+s)),!((l+=s+1)>i));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function o(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}var a=n(2035);function s(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(e+1):t}var l,c=n(8613);function u(t,e){var n=(0,c.V)(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(l=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+(0,c.V)(t,Math.max(0,e+o-1))[0]}function h(t,e){var n=(0,c.V)(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}var d={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:c.Z,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>h(100*t,e),r:h,s:u,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function p(t){return t}var f,g,m,v=Array.prototype.map,y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function b(t){var e=void 0===t.grouping||void 0===t.thousands?p:r(v.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",c=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",h=void 0===t.numerals?p:o(v.call(t.numerals,String)),f=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"−":t.minus+"",m=void 0===t.nan?"NaN":t.nan+"";function b(t){t=(0,a.Z)(t);var i=t.fill,r=t.align,o=t.sign,p=t.symbol,v=t.zero,b=t.width,x=t.comma,w=t.precision,_=t.trim,C=t.type;"n"===C?(x=!0,C="g"):d[C]||(void 0===w&&(w=12),_=!0,C="g"),(v||"0"===i&&"="===r)&&(v=!0,i="0",r="=");var A="$"===p?n:"#"===p&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",I="$"===p?c:/[%p]/.test(C)?f:"",S=d[C],M=/[defgprs%]/.test(C);function k(t){var n,a,c,d=A,p=I;if("c"===C)p=S(t)+p,t="";else{t=+t;var f=t<0||1/t<0;if(t=isNaN(t)?m:S(Math.abs(t),w),_&&(t=s(t)),f&&0==+t&&"+"!==o&&(f=!1),d=(f?"("===o?o:g:"-"===o||"("===o?"":o)+d,p=("s"===C?y[8+l/3]:"")+p+(f&&"("===o?")":""),M)for(n=-1,a=t.length;++n<a;)if(c=t.charCodeAt(n),48>c||c>57){p=(46===c?u+t.slice(n+1):t.slice(n))+p,t=t.slice(0,n);break}}x&&!v&&(t=e(t,1/0));var k=d.length+t.length+p.length,E=k<b?new Array(b-k+1).join(i):"";switch(x&&v&&(t=e(E+t,E.length?b-p.length:1/0),E=""),r){case"<":t=d+t+p+E;break;case"=":t=d+E+t+p;break;case"^":t=E.slice(0,k=E.length>>1)+d+t+p+E.slice(k);break;default:t=E+d+t+p;break}return h(t)}return w=void 0===w?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),k.toString=function(){return t+""},k}function x(t,e){var n=b((t=(0,a.Z)(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),o=Math.pow(10,-r),s=y[8+r/3];return function(t){return n(o*t)+s}}return{format:b,formatPrefix:x}}function x(t){return f=b(t),g=f.format,m=f.formatPrefix,f}x({thousands:",",grouping:[3],currency:["$",""]})},5368:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(8613);function r(t){return t=(0,i.V)(Math.abs(t)),t?t[1]:NaN}},8613:function(t,e,n){"use strict";function i(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function r(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}n.d(e,{V:function(){return r},Z:function(){return i}})},2035:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function r(t){if(!(e=i.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}r.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},501:function(t,e,n){"use strict";n.r(e),n.d(e,{geoContour:function(){return ut},geoDelaunay:function(){return F},geoVoronoi:function(){return Q}});var i=n(5246);const o=1e-6;class a{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){t=+t,e=+e,n=+n;const i=t+n,r=e;if(n<0)throw new Error("negative radius");null===this._x1?this._+=`M${i},${r}`:(Math.abs(this._x1-i)>o||Math.abs(this._y1-r)>o)&&(this._+="L"+i+","+r),n&&(this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=i},${this._y1=r}`)}rect(t,e,n,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+i}h${-n}Z`}value(){return this._||null}}class s{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class l{constructor(t,[e,n,i,r]=[0,0,960,500]){if(!((i=+i)>=(e=+e))||!((r=+r)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=i,this.xmin=e,this.ymax=r,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:i}=this,r=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let d,p,f=0,g=0,m=n.length;f<m;f+=3,g+=2){const e=2*n[f],i=2*n[f+1],o=2*n[f+2],a=t[e],s=t[e+1],l=t[i],c=t[i+1],u=t[o],h=t[o+1],m=l-a,v=c-s,y=u-a,b=h-s,x=2*(m*b-v*y);if(Math.abs(x)<1e-9){let e=1e9;const i=2*n[0];e*=Math.sign((t[i]-a)*b-(t[i+1]-s)*y),d=(a+u)/2-e*b,p=(s+h)/2+e*y}else{const t=1/x,e=m*m+v*v,n=y*y+b*b;d=a+(b*e-v*n)*t,p=s+(m*n-y*e)*t}r[g]=d,r[g+1]=p}let o,a,s,l=e[e.length-1],c=4*l,u=t[2*l],h=t[2*l+1];i.fill(0);for(let d=0;d<e.length;++d)l=e[d],o=c,a=u,s=h,c=4*l,u=t[2*l],h=t[2*l+1],i[o+2]=i[c]=s-h,i[o+3]=i[c+1]=u-a}render(t){const e=null==t?t=new a:void 0,{delaunay:{halfedges:n,inedges:i,hull:r},circumcenters:o,vectors:s}=this;if(r.length<=1)return null;for(let a=0,u=n.length;a<u;++a){const e=n[a];if(e<a)continue;const i=2*Math.floor(a/3),r=2*Math.floor(e/3),s=o[i],l=o[i+1],c=o[r],u=o[r+1];this._renderSegment(s,l,c,u,t)}let l,c=r[r.length-1];for(let a=0;a<r.length;++a){l=c,c=r[a];const e=2*Math.floor(i[c]/3),n=o[e],u=o[e+1],h=4*l,d=this._project(n,u,s[h+2],s[h+3]);d&&this._renderSegment(n,u,d[0],d[1],t)}return e&&e.value()}renderBounds(t){const e=null==t?t=new a:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),e&&e.value()}renderCell(t,e){const n=null==e?e=new a:void 0,i=this._clip(t);if(null===i||!i.length)return;e.moveTo(i[0],i[1]);let r=i.length;for(;i[0]===i[r-2]&&i[1]===i[r-1]&&r>1;)r-=2;for(let o=2;o<r;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&e.lineTo(i[o],i[o+1]);return e.closePath(),n&&n.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let e=0,n=t.length/2;e<n;++e){const t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){const e=new s;return this.renderCell(t,e),e.value()}_renderSegment(t,e,n,i,r){let o;const a=this._regioncode(t,e),s=this._regioncode(n,i);0===a&&0===s?(r.moveTo(t,e),r.lineTo(n,i)):(o=this._clipSegment(t,e,n,i,a,s))&&(r.moveTo(o[0],o[1]),r.lineTo(o[2],o[3]))}contains(t,e,n){return e=+e,e===e&&(n=+n,n===n)&&this.delaunay._step(t,e,n)===t}*neighbors(t){const e=this._clip(t);if(e)for(const n of this.delaunay.neighbors(t)){const t=this._clip(n);if(t)t:for(let i=0,r=e.length;i<r;i+=2)for(let o=0,a=t.length;o<a;o+=2)if(e[i]==t[o]&&e[i+1]==t[o+1]&&e[(i+2)%r]==t[(o+a-2)%a]&&e[(i+3)%r]==t[(o+a-1)%a]){yield n;break t}}}_cell(t){const{circumcenters:e,delaunay:{inedges:n,halfedges:i,triangles:r}}=this,o=n[t];if(-1===o)return null;const a=[];let s=o;do{const n=Math.floor(s/3);if(a.push(e[2*n],e[2*n+1]),s=s%3===2?s-2:s+1,r[s]!==t)break;s=i[s]}while(s!==o&&-1!==s);return a}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const e=this._cell(t);if(null===e)return null;const{vectors:n}=this,i=4*t;return n[i]||n[i+1]?this._clipInfinite(t,e,n[i],n[i+1],n[i+2],n[i+3]):this._clipFinite(t,e)}_clipFinite(t,e){const n=e.length;let i,r,o,a,s=null,l=e[n-2],c=e[n-1],u=this._regioncode(l,c),h=0;for(let d=0;d<n;d+=2)if(i=l,r=c,l=e[d],c=e[d+1],o=u,u=this._regioncode(l,c),0===o&&0===u)a=h,h=0,s?s.push(l,c):s=[l,c];else{let e,n,d,p,f;if(0===o){if(null===(e=this._clipSegment(i,r,l,c,o,u)))continue;[n,d,p,f]=e}else{if(null===(e=this._clipSegment(l,c,i,r,u,o)))continue;[p,f,n,d]=e,a=h,h=this._edgecode(n,d),a&&h&&this._edge(t,a,h,s,s.length),s?s.push(n,d):s=[n,d]}a=h,h=this._edgecode(p,f),a&&h&&this._edge(t,a,h,s,s.length),s?s.push(p,f):s=[p,f]}if(s)a=h,h=this._edgecode(s[0],s[1]),a&&h&&this._edge(t,a,h,s,s.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return s}_clipSegment(t,e,n,i,r,o){for(;;){if(0===r&&0===o)return[t,e,n,i];if(r&o)return null;let a,s,l=r||o;8&l?(a=t+(n-t)*(this.ymax-e)/(i-e),s=this.ymax):4&l?(a=t+(n-t)*(this.ymin-e)/(i-e),s=this.ymin):2&l?(s=e+(i-e)*(this.xmax-t)/(n-t),a=this.xmax):(s=e+(i-e)*(this.xmin-t)/(n-t),a=this.xmin),r?(t=a,e=s,r=this._regioncode(t,e)):(n=a,i=s,o=this._regioncode(n,i))}}_clipInfinite(t,e,n,i,r,o){let a,s=Array.from(e);if((a=this._project(s[0],s[1],n,i))&&s.unshift(a[0],a[1]),(a=this._project(s[s.length-2],s[s.length-1],r,o))&&s.push(a[0],a[1]),s=this._clipFinite(t,s))for(let l,c=0,u=s.length,h=this._edgecode(s[u-2],s[u-1]);c<u;c+=2)l=h,h=this._edgecode(s[c],s[c+1]),l&&h&&(c=this._edge(t,l,h,s,c),u=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,e,n,i,r){for(;e!==n;){let n,o;switch(e){case 5:e=4;continue;case 4:e=6,n=this.xmax,o=this.ymin;break;case 6:e=2;continue;case 2:e=10,n=this.xmax,o=this.ymax;break;case 10:e=8;continue;case 8:e=9,n=this.xmin,o=this.ymax;break;case 9:e=1;continue;case 1:e=5,n=this.xmin,o=this.ymin;break}(i[r]!==n||i[r+1]!==o)&&this.contains(t,n,o)&&(i.splice(r,0,n,o),r+=2)}if(i.length>4)for(let o=0;o<i.length;o+=2){const t=(o+2)%i.length,e=(o+4)%i.length;(i[o]===i[t]&&i[t]===i[e]||i[o+1]===i[t+1]&&i[t+1]===i[e+1])&&(i.splice(t,2),o-=2)}return r}_project(t,e,n,i){let r,o,a,s=1/0;if(i<0){if(e<=this.ymin)return null;(r=(this.ymin-e)/i)<s&&(a=this.ymin,o=t+(s=r)*n)}else if(i>0){if(e>=this.ymax)return null;(r=(this.ymax-e)/i)<s&&(a=this.ymax,o=t+(s=r)*n)}if(n>0){if(t>=this.xmax)return null;(r=(this.xmax-t)/n)<s&&(o=this.xmax,a=e+(s=r)*i)}else if(n<0){if(t<=this.xmin)return null;(r=(this.xmin-t)/n)<s&&(o=this.xmin,a=e+(s=r)*i)}return[o,a]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}}const c=2*Math.PI,u=Math.pow;function h(t){return t[0]}function d(t){return t[1]}function p(t){const{triangles:e,coords:n}=t;for(let i=0;i<e.length;i+=3){const t=2*e[i],r=2*e[i+1],o=2*e[i+2];if((n[o]-n[t])*(n[r+1]-n[t+1])-(n[r]-n[t])*(n[o+1]-n[t+1])>1e-10)return!1}return!0}function f(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class g{static from(t,e=h,n=d,i){return new g("length"in t?m(t,e,n,i):Float64Array.from(v(t,e,n,i)))}constructor(t){this._delaunator=new i.default(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&p(t)){this.collinear=Int32Array.from({length:e.length/2},(t,e)=>e).sort((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]);const t=this.collinear[0],n=this.collinear[this.collinear.length-1],r=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],o=1e-8*Math.hypot(r[3]-r[1],r[2]-r[0]);for(let i=0,a=e.length/2;i<a;++i){const t=f(e[2*i],e[2*i+1],o);e[2*i]=t[0],e[2*i+1]=t[1]}this._delaunator=new i.default(e)}else delete this.collinear;const n=this.halfedges=this._delaunator.halfedges,r=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let i=0,l=n.length;i<l;++i){const t=o[i%3===2?i-2:i+1];(-1===n[i]||-1===a[t])&&(a[t]=i)}for(let i=0,l=r.length;i<l;++i)s[r[i]]=i;r.length<=2&&r.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=r[0],a[r[0]]=1,2===r.length&&(a[r[1]]=0,this.triangles[1]=r[1],this.triangles[2]=r[1]))}voronoi(t){return new l(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:i,halfedges:r,triangles:o,collinear:a}=this;if(a){const e=a.indexOf(t);return e>0&&(yield a[e-1]),void(e<a.length-1&&(yield a[e+1]))}const s=e[t];if(-1===s)return;let l=s,c=-1;do{if(yield c=o[l],l=l%3===2?l-2:l+1,o[l]!==t)return;if(l=r[l],-1===l){const e=n[(i[t]+1)%n.length];return void(e!==c&&(yield e))}}while(l!==s)}find(t,e,n=0){if(t=+t,t!==t||(e=+e,e!==e))return-1;const i=n;let r;for(;(r=this._step(n,t,e))>=0&&r!==n&&r!==i;)n=r;return r}_step(t,e,n){const{inedges:i,hull:r,_hullIndex:o,halfedges:a,triangles:s,points:l}=this;if(-1===i[t]||!l.length)return(t+1)%(l.length>>1);let c=t,h=u(e-l[2*t],2)+u(n-l[2*t+1],2);const d=i[t];let p=d;do{let i=s[p];const d=u(e-l[2*i],2)+u(n-l[2*i+1],2);if(d<h&&(h=d,c=i),p=p%3===2?p-2:p+1,s[p]!==t)break;if(p=a[p],-1===p){if(p=r[(o[t]+1)%r.length],p!==i&&u(e-l[2*p],2)+u(n-l[2*p+1],2)<h)return p;break}}while(p!==d);return c}render(t){const e=null==t?t=new a:void 0,{points:n,halfedges:i,triangles:r}=this;for(let o=0,a=i.length;o<a;++o){const e=i[o];if(e<o)continue;const a=2*r[o],s=2*r[e];t.moveTo(n[a],n[a+1]),t.lineTo(n[s],n[s+1])}return this.renderHull(t),e&&e.value()}renderPoints(t,e){void 0===e&&(!t||"function"!=typeof t.moveTo)&&(e=t,t=null),e=null==e?2:+e;const n=null==t?t=new a:void 0,{points:i}=this;for(let r=0,o=i.length;r<o;r+=2){const n=i[r],o=i[r+1];t.moveTo(n+e,o),t.arc(n,o,e,0,c)}return n&&n.value()}renderHull(t){const e=null==t?t=new a:void 0,{hull:n,points:i}=this,r=2*n[0],o=n.length;t.moveTo(i[r],i[r+1]);for(let a=1;a<o;++a){const e=2*n[a];t.lineTo(i[e],i[e+1])}return t.closePath(),e&&e.value()}hullPolygon(){const t=new s;return this.renderHull(t),t.value()}renderTriangle(t,e){const n=null==e?e=new a:void 0,{points:i,triangles:r}=this,o=2*r[t*=3],s=2*r[t+1],l=2*r[t+2];return e.moveTo(i[o],i[o+1]),e.lineTo(i[s],i[s+1]),e.lineTo(i[l],i[l+1]),e.closePath(),n&&n.value()}*trianglePolygons(){const{triangles:t}=this;for(let e=0,n=t.length/3;e<n;++e)yield this.trianglePolygon(e)}trianglePolygon(t){const e=new s;return this.renderTriangle(t,e),e.value()}}function m(t,e,n,i){const r=t.length,o=new Float64Array(2*r);for(let a=0;a<r;++a){const r=t[a];o[2*a]=e.call(i,r,a,t),o[2*a+1]=n.call(i,r,a,t)}return o}function*v(t,e,n,i){let r=0;for(const o of t)yield e.call(i,o,r,t),yield n.call(i,o,r,t),++r}var y=n(1700),b=n(9089);const x=Math.PI,w=x/2,_=180/x,C=x/180,A=(Math.abs,Math.atan,Math.atan2),I=Math.cos,S=(Math.ceil,Math.exp,Math.floor,Math.log,Math.max),M=Math.min,k=(Math.pow,Math.sin),E=Math.sign||function(t){return t>0?1:t<0?-1:0},T=Math.sqrt;Math.tan;function O(t){return t>1?w:t<-1?-w:Math.asin(t)}function P(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function j(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function L(t,e){return[t[0]+e[0],t[1]+e[1],t[2]+e[2]]}function D(t){var e=T(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);return[t[0]/e,t[1]/e,t[2]/e]}function R(t){return[A(t[1],t[0])*_,O(S(-1,M(1,t[2])))*_]}function B(t){const e=t[0]*C,n=t[1]*C,i=I(n);return[i*I(e),i*k(e),k(n)]}function N(t){return t=t.map(t=>B(t)),P(t[0],j(t[2],t[1]))}function F(t){const e=V(t),n=H(e),i=G(n,t),r=U(n,t.length),o=z(r,t),a=W(n,t),{polygons:s,centers:l}=Z(a,n,t),c=X(s),u=K(n,t),h=q(i,n);return{delaunay:e,edges:i,triangles:n,centers:l,neighbors:r,polygons:s,mesh:c,hull:u,urquhart:h,find:o}}function z(t,e){function n(t,e){let n=t[0]-e[0],i=t[1]-e[1],r=t[2]-e[2];return n*n+i*i+r*r}return function(i,r,o){void 0===o&&(o=0);let a,s,l=o;const c=B([i,r]);do{a=o,o=null,s=n(c,B(e[a])),t[a].forEach(t=>{let i=n(c,B(e[t]));if(i<s)return s=i,o=t,void(l=t)})}while(null!==o);return l}}function V(t){if(t.length<2)return{};let e=0;for(;isNaN(t[e][0]+t[e][1])&&e++<t.length;);const n=(0,y.geoRotation)(t[e]),i=(0,y.geoStereographic)().translate([0,0]).scale(1).rotate(n.invert([180,0]));t=t.map(i);const o=[];let a=1;for(let p=0,f=t.length;p<f;p++){let e=r(t[p][0],2)+r(t[p][1],2);!isFinite(e)||e>1e32?o.push(p):e>a&&(a=e)}const s=1e6*T(a);o.forEach(e=>t[e]=[s,0]),t.push([0,s]),t.push([-s,0]),t.push([0,-s]);const l=g.from(t);l.projection=i;const{triangles:c,halfedges:u,inedges:h}=l,d=[];for(let r=0,p=u.length;r<p;r++)if(u[r]<0){const t=r%3==2?r-2:r+1,n=r%3==0?r+2:r-1,i=u[t],o=u[n];u[i]=o,u[o]=i,u[t]=u[n]=-1,c[r]=c[t]=c[n]=e,h[c[i]]=i%3==0?i+2:i-1,h[c[o]]=o%3==0?o+2:o-1,d.push(Math.min(r,t,n)),r+=2-r%3}else c[r]>t.length-3-1&&(c[r]=e);return l}function G(t,e){const n=new Set;return 2===e.length?[[0,1]]:(t.forEach(t=>{if(t[0]!==t[1]&&!(N(t.map(t=>e[t]))<0))for(let e,i=0;i<3;i++)e=(i+1)%3,n.add((0,b.Z)([t[i],t[e]]).join("-"))}),Array.from(n,t=>t.split("-").map(Number)))}function H(t){const{triangles:e}=t;if(!e)return[];const n=[];for(let i=0,r=e.length/3;i<r;i++){const t=e[3*i],r=e[3*i+1],o=e[3*i+2];t!==r&&r!==o&&n.push([t,o,r])}return n}function W(t,e){return t.map(t=>{const n=t.map(t=>e[t]).map(B),i=L(L(j(n[1],n[0]),j(n[2],n[1])),j(n[0],n[2]));return R(D(i))})}function U(t,e){const n=[];return t.forEach(t=>{for(let e=0;e<3;e++){const i=t[e],r=t[(e+1)%3];n[i]=n[i]||[],n[i].push(r)}}),0===t.length&&(2===e?(n[0]=[1],n[1]=[0]):1===e&&(n[0]=[])),n}function Z(t,e,n){const i=[],r=t.slice();if(0===e.length){if(n.length<2)return{polygons:i,centers:r};if(2===n.length){const t=B(n[0]),e=B(n[1]),o=D(L(t,e)),s=D(j(t,e)),l=j(o,s),c=[o,j(o,l),j(j(o,l),l),j(j(j(o,l),l),l)].map(R).map(a);return i.push(c),i.push(c.slice().reverse()),{polygons:i,centers:r}}}e.forEach((t,e)=>{for(let n=0;n<3;n++){const r=t[n],o=t[(n+1)%3],a=t[(n+2)%3];i[r]=i[r]||[],i[r].push([o,a,e,[r,o,a]])}});const o=i.map(t=>{const e=[t[0][2]];let i=t[0][1];for(let n=1;n<t.length;n++)for(let r=0;r<t.length;r++)if(t[r][0]==i){i=t[r][1],e.push(t[r][2]);break}if(e.length>2)return e;if(2==e.length){const i=Y(n[t[0][3][0]],n[t[0][3][1]],r[e[0]]),o=Y(n[t[0][3][2]],n[t[0][3][0]],r[e[0]]),s=a(i),l=a(o);return[e[0],l,e[1],s]}});function a(t){let n=-1;return r.slice(e.length,1/0).forEach((i,r)=>{i[0]===t[0]&&i[1]===t[1]&&(n=r+e.length)}),n<0&&(n=r.length,r.push(t)),n}return{polygons:o,centers:r}}function Y(t,e,n){t=B(t),e=B(e),n=B(n);const i=E(P(j(e,t),n));return R(D(L(t,e)).map(t=>i*t))}function X(t){const e=[];return t.forEach(t=>{if(!t)return;let n=t[t.length-1];for(let i of t)i>n&&e.push([n,i]),n=i}),e}function q(t,e){return function(n){const i=new Map,r=new Map;return t.forEach((t,e)=>{const o=t.join("-");i.set(o,n[e]),r.set(o,!0)}),e.forEach(t=>{let e=0,n=-1;for(let r=0;r<3;r++){let o=(0,b.Z)([t[r],t[(r+1)%3]]).join("-");i.get(o)>e&&(e=i.get(o),n=o)}r.set(n,!1)}),t.map(t=>r.get(t.join("-")))}}function K(t,e){const n=new Set,i=[];t.map(t=>{if(!(N(t.map(t=>e[t>e.length?0:t]))>1e-12))for(let e=0;e<3;e++){let i=[t[e],t[(e+1)%3]],r=`${i[0]}-${i[1]}`;n.has(r)?n.delete(r):n.add(`${i[1]}-${i[0]}`)}});const r=new Map;let o;if(n.forEach(t=>{t=t.split("-").map(Number),r.set(t[0],t[1]),o=t[0]}),void 0===o)return i;let a=o;do{i.push(a);let t=r.get(a);r.set(a,-1),a=t}while(a>-1&&a!==o);return i}function Q(t){const e=function(t){if(e.delaunay=null,e._data=t,"object"==typeof e._data&&"FeatureCollection"===e._data.type&&(e._data=e._data.features),"object"==typeof e._data){const t=e._data.map(t=>[e._vx(t),e._vy(t),t]).filter(t=>isFinite(t[0]+t[1]));e.points=t.map(t=>[t[0],t[1]]),e.valid=t.map(t=>t[2]),e.delaunay=F(e.points)}return e};return e._vx=function(t){return"object"==typeof t&&"type"in t?(0,y.geoCentroid)(t)[0]:0 in t?t[0]:void 0},e._vy=function(t){return"object"==typeof t&&"type"in t?(0,y.geoCentroid)(t)[1]:1 in t?t[1]:void 0},e.x=function(t){return t?(e._vx=t,e):e._vx},e.y=function(t){return t?(e._vy=t,e):e._vy},e.polygons=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;const n={type:"FeatureCollection",features:[]};return 0===e.valid.length||(e.delaunay.polygons.forEach((t,i)=>n.features.push({type:"Feature",geometry:t?{type:"Polygon",coordinates:[[...t,t[0]].map(t=>e.delaunay.centers[t])]}:null,properties:{site:e.valid[i],sitecoordinates:e.points[i],neighbours:e.delaunay.neighbors[i]}})),1===e.valid.length&&n.features.push({type:"Feature",geometry:{type:"Sphere"},properties:{site:e.valid[0],sitecoordinates:e.points[0],neighbours:[]}})),n},e.triangles=function(t){return void 0!==t&&e(t),!!e.delaunay&&{type:"FeatureCollection",features:e.delaunay.triangles.map((t,n)=>(t=t.map(t=>e.points[t]),t.center=e.delaunay.centers[n],t)).filter(t=>N(t)>0).map(t=>({type:"Feature",properties:{circumcenter:t.center},geometry:{type:"Polygon",coordinates:[[...t,t[0]]]}}))}},e.links=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;const n=e.delaunay.edges.map(t=>(0,y.geoDistance)(e.points[t[0]],e.points[t[1]])),i=e.delaunay.urquhart(n);return{type:"FeatureCollection",features:e.delaunay.edges.map((t,r)=>({type:"Feature",properties:{source:e.valid[t[0]],target:e.valid[t[1]],length:n[r],urquhart:!!i[r]},geometry:{type:"LineString",coordinates:[e.points[t[0]],e.points[t[1]]]}}))}},e.mesh=function(t){return void 0!==t&&e(t),!!e.delaunay&&{type:"MultiLineString",coordinates:e.delaunay.edges.map(t=>[e.points[t[0]],e.points[t[1]]])}},e.cellMesh=function(t){if(void 0!==t&&e(t),!e.delaunay)return!1;const{centers:n,polygons:i}=e.delaunay,r=[];for(const e of i)if(e)for(let t=e.length,i=e[t-1],o=e[0],a=0;a<t;i=o,o=e[++a])o>i&&r.push([n[i],n[o]]);return{type:"MultiLineString",coordinates:r}},e._found=void 0,e.find=function(t,n,i){if(e._found=e.delaunay.find(t,n,e._found),!i||(0,y.geoDistance)([t,n],e.points[e._found])<i)return e._found},e.hull=function(t){void 0!==t&&e(t);const n=e.delaunay.hull,i=e.points;return 0===n.length?null:{type:"Polygon",coordinates:[[...n.map(t=>i[t]),i[n[0]]]]}},t?e(t):e}var J=n(5036);function $(t){let e,n;for(const i of t)null!=i&&(void 0===e?i>=i&&(e=n=i):(e>i&&(e=i),n<i&&(n=i)));return[e,n]}function*tt(t){for(const e of t)yield*e}function et(t){return Array.from(tt(t))}function nt(t,e){const n=e.length;let i=-1;for(;++i<n;){const n=it(t,e[i]);if(n)return n}return 0}function it(t,e){let n=e[0],i=e[1],r=-1;for(let o=0,a=t.length,s=a-1;o<a;s=o++){const a=t[o],l=a[0],c=a[1],u=t[s],h=u[0],d=u[1];if(rt(a,u,e))return 0;c>i!=d>i&&n<(h-l)*(i-c)/(d-c)+l&&(r=-r)}return r}function rt(t,e,n){let i;return ot(t,e,n)&&at(t[i=+(t[0]===e[0])],n[i],e[i])}function ot(t,e,n){return(e[0]-t[0])*(n[1]-t[1])===(n[0]-t[0])*(e[1]-t[1])}function at(t,e,n){return t<=e&&e<=n||n<=e&&e<=t}function st(t){let e=0,n=t.length,i=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];for(;++e<n;)i+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1];return i}function lt(t){const e=[],n=[];for(const i of t)st(i)>0?e.push([i]):n.push(i);return n.forEach((function(t){for(let n,i=0,r=e.length;i<r;++i)if(-1!==nt((n=e[i])[0],t))return void n.push(t)})),e}function ct(){let t,e,n,i=t=>t[0],r=t=>t[1],o=t=>isFinite(+t[2])?+t[2]:0,a=g.from,s=(t,e,i)=>{const{points:r}=n,o=[r[2*t],r[2*t+1]],a=[r[2*e],r[2*e+1]];return[i*a[0]+(1-i)*o[0],i*a[1]+(1-i)*o[1]]},l=lt;function c(s){n=a(s,i,r),e=Array.from(s,o),"object"!=typeof t&&(t=(0,J.Z)().domain($(e)).nice().ticks(t))}function*u(i){c(i);for(const r of t){const t=v(n,e,r);yield{type:"MultiPolygon",coordinates:t,value:r}}}function h(t,i){return c(t),{type:"MultiPolygon",coordinates:v(n,e,i),value:i}}function*d(i){let r,o,a;c(i);for(const s of t)o&&(r=o),o=et(v(n,e,s)),r&&(yield{type:"MultiPolygon",coordinates:l(r.concat(o.map(t=>t.slice().reverse()))),value:a,valueMax:s}),a=s}const p=function(t){return[...u(t)]};return p.x=t=>t?(i=t,p):i,p.y=t=>t?(r=t,p):r,p.value=t=>t?(o=t,p):o,p.thresholds=e=>e?(t=e,p):t,p.triangulate=t=>t?(a=t,p):a,p.pointInterpolate=t=>t?(s=t,p):s,p.ringsort=t=>t?(l=t,p):l,p.contours=u,p.contour=h,p.isobands=d,p._values=()=>e,p._triangulation=()=>n,p;function f(t){return t%3===2?t-2:t+1}function m(t){return t%3===0?t+2:t-1}function v(t,e,n=0){for(const s of e)if(!isFinite(s))throw["Invalid value",s];const{halfedges:i,hull:r,inedges:o,triangles:a}=t,c=e.length;function u(t){return h(a[t],a[f(t)])}function h(t,i){const r=e[t],o=e[i];if(r<=n&&o>=n&&r<o)return(n-r)/(o-r)}const d=[],p=new Uint8Array(i.length).fill(0);let g,v,y,b,x;for(b=0;b<i.length;b++)if(!p[b]){for(v=b,g=[];(x=u(v))>0;){const[t,s]=[a[v],a[y=f(v)]];if(g.length&&t===g[0].ti&&s===g[0].tj||g.length>2*c)break;if(p[v]=1,g.push({ti:t,tj:s,a:x}),(y=i[v])>-1){if(u(y=f(y))>0){v=y;continue}if(u(y=f(y))>0){v=y;continue}}else{let t=(r.indexOf(a[v])+1)%r.length;for(;e[r[t]]<n;)t=(t+1)%r.length;for(;e[r[t]]>=n;)g.push({ti:r[t],tj:r[t],a:0}),t=(t+1)%r.length;if(y=o[r[t]],g.push({ti:r[t],tj:a[y],a:h(r[t],a[y])}),u(v=f(y))>0||u(v=m(y))>0)continue}}g.length&&(g.push(g[0]),d.push(g.map(({ti:t,tj:e,a:n})=>s(t,e,n))))}return r.every(t=>e[t]>=n)&&d.unshift(Array.from(r).concat([r[0]]).map(t=>s(t,t,0))),l(d)}}function ut(){let t;return ct().triangulate((e,n,i)=>(t=F(e.map(t=>[n(t),i(t)])),t.delaunay)).pointInterpolate((e,n,i)=>{const{points:r,projection:o}=t.delaunay,a=o.invert([r[2*e],r[2*e+1]]),s=o.invert([r[2*n],r[2*n+1]]);return(0,y.geoInterpolate)(a,s)(i)}).ringsort(t=>(t.length&&!t[0].reversed&&(t.forEach(t=>t.reverse()),t[0].reversed=!0),[t]))}},8063:function(t,e,n){"use strict";function i(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}n.d(e,{Z:function(){return i}})},4635:function(t,e,n){"use strict";function i(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}n.d(e,{Z:function(){return i}})},4872:function(t,e,n){"use strict";function i(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function r(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function o(){}n.d(e,{Z:function(){return ct}});var a=.7,s=1/a,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,d=new RegExp(`^rgb\\(${l},${l},${l}\\)$`),p=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),f=new RegExp(`^rgba\\(${l},${l},${l},${c}\\)$`),g=new RegExp(`^rgba\\(${u},${u},${u},${c}\\)$`),m=new RegExp(`^hsl\\(${c},${u},${u}\\)$`),v=new RegExp(`^hsla\\(${c},${u},${u},${c}\\)$`),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function x(){return this.rgb().formatHex8()}function w(){return R(this).formatHsl()}function _(){return this.rgb().formatRgb()}function C(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?A(e):3===n?new k(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?I(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?I(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=d.exec(t))?new k(e[1],e[2],e[3],1):(e=p.exec(t))?new k(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?I(e[1],e[2],e[3],e[4]):(e=g.exec(t))?I(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=m.exec(t))?D(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?D(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?A(y[t]):"transparent"===t?new k(NaN,NaN,NaN,0):null}function A(t){return new k(t>>16&255,t>>8&255,255&t,1)}function I(t,e,n,i){return i<=0&&(t=e=n=NaN),new k(t,e,n,i)}function S(t){return t instanceof o||(t=C(t)),t?(t=t.rgb(),new k(t.r,t.g,t.b,t.opacity)):new k}function M(t,e,n,i){return 1===arguments.length?S(t):new k(t,e,n,null==i?1:i)}function k(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function E(){return`#${L(this.r)}${L(this.g)}${L(this.b)}`}function T(){return`#${L(this.r)}${L(this.g)}${L(this.b)}${L(255*(isNaN(this.opacity)?1:this.opacity))}`}function O(){const t=P(this.opacity);return`${1===t?"rgb(":"rgba("}${j(this.r)}, ${j(this.g)}, ${j(this.b)}${1===t?")":`, ${t})`}`}function P(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function j(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function L(t){return t=j(t),(t<16?"0":"")+t.toString(16)}function D(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new N(t,e,n,i)}function R(t){if(t instanceof N)return new N(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=C(t)),!t)return new N;if(t instanceof N)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),s=NaN,l=a-r,c=(a+r)/2;return l?(s=e===a?(n-i)/l+6*(n<i):n===a?(i-e)/l+2:(e-n)/l+4,l/=c<.5?a+r:2-a-r,s*=60):l=c>0&&c<1?0:s,new N(s,l,c,t.opacity)}function B(t,e,n,i){return 1===arguments.length?R(t):new N(t,e,n,null==i?1:i)}function N(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function F(t){return t=(t||0)%360,t<0?t+360:t}function z(t){return Math.max(0,Math.min(1,t||0))}function V(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function G(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}function H(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=i<e-1?t[i+2]:2*o-r;return G((n-i/e)*e,a,r,o,s)}}function W(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return G((n-i/e)*e,r,o,a,s)}}i(o,C,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:b,formatHex:b,formatHex8:x,formatHsl:w,formatRgb:_,toString:_}),i(k,M,r(o,{brighter(t){return t=null==t?s:Math.pow(s,t),new k(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?a:Math.pow(a,t),new k(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new k(j(this.r),j(this.g),j(this.b),P(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatHex8:T,formatRgb:O,toString:O})),i(N,B,r(o,{brighter(t){return t=null==t?s:Math.pow(s,t),new N(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?a:Math.pow(a,t),new N(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new k(V(t>=240?t-240:t+120,r,i),V(t,r,i),V(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new N(F(this.h),z(this.s),z(this.l),P(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=P(this.opacity);return`${1===t?"hsl(":"hsla("}${F(this.h)}, ${100*z(this.s)}%, ${100*z(this.l)}%${1===t?")":`, ${t})`}`}}));var U=t=>()=>t;function Z(t,e){return function(n){return t+n*e}}function Y(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function X(t){return 1==(t=+t)?q:function(e,n){return n-e?Y(e,n,t):U(isNaN(e)?n:e)}}function q(t,e){var n=e-t;return n?Z(t,n):U(isNaN(t)?e:t)}var K=function t(e){var n=X(e);function i(t,e){var i=n((t=M(t)).r,(e=M(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=q(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function Q(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=M(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}Q(H),Q(W);function J(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=ct(t[n],e[n]);for(;n<i;++n)a[n]=e[n];return function(t){for(n=0;n<r;++n)a[n]=o[n](t);return a}}function $(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}var tt=n(8063);function et(t,e){var n,i={},r={};for(n in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)n in t?i[n]=ct(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}var nt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,it=new RegExp(nt.source,"g");function rt(t){return function(){return t}}function ot(t){return function(e){return t(e)+""}}function at(t,e){var n,i,r,o=nt.lastIndex=it.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=nt.exec(t))&&(i=it.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:(0,tt.Z)(n,i)})),o=it.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?l[0]?ot(l[0].x):rt(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)s[(n=l[i]).i]=n.x(t);return s.join("")})}function st(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}}function lt(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function ct(t,e){var n,i=typeof e;return null==e||"boolean"===i?U(e):("number"===i?tt.Z:"string"===i?(n=C(e))?(e=n,K):at:e instanceof C?K:e instanceof Date?$:lt(e)?st:Array.isArray(e)?J:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?et:tt.Z)(t,e)}},8565:function(t,e,n){"use strict";n.d(e,{JG:function(){return g},ZP:function(){return v},yR:function(){return u},l4:function(){return m}});var i=n(2461),r=n(4872),o=n(8063),a=n(4635);function s(t){return function(){return t}}var l=n(6938),c=[0,1];function u(t){return t}function h(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:s(isNaN(e)?NaN:.5)}function d(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function p(t,e,n){var i=t[0],r=t[1],o=e[0],a=e[1];return r<i?(i=h(r,i),o=n(a,o)):(i=h(i,r),o=n(o,a)),function(t){return o(i(t))}}function f(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),a=new Array(r),s=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<r;)o[s]=h(t[s],t[s+1]),a[s]=n(e[s],e[s+1]);return function(e){var n=(0,i.ZP)(t,e,1,r)-1;return a[n](o[n](e))}}function g(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function m(){var t,e,n,i,s,h,g=c,m=c,v=r.Z,y=u;function b(){var t=Math.min(g.length,m.length);return y!==u&&(y=d(g[0],g[t-1])),i=t>2?f:p,s=h=null,x}function x(e){return null==e||isNaN(e=+e)?n:(s||(s=i(g.map(t),m,v)))(t(y(e)))}return x.invert=function(n){return y(e((h||(h=i(m,g.map(t),o.Z)))(n)))},x.domain=function(t){return arguments.length?(g=Array.from(t,l.Z),b()):g.slice()},x.range=function(t){return arguments.length?(m=Array.from(t),b()):m.slice()},x.rangeRound=function(t){return m=Array.from(t),v=a.Z,b()},x.clamp=function(t){return arguments.length?(y=!!t||u,b()):y!==u},x.interpolate=function(t){return arguments.length?(v=t,b()):v},x.unknown=function(t){return arguments.length?(n=t,x):n},function(n,i){return t=n,e=i,b()}}function v(){return m()(u,u)}},5180:function(t,e,n){"use strict";n.r(e),n.d(e,{scaleBand:function(){return l},scaleDiverging:function(){return Fn},scaleDivergingLog:function(){return zn},scaleDivergingPow:function(){return Gn},scaleDivergingSqrt:function(){return Hn},scaleDivergingSymlog:function(){return Vn},scaleIdentity:function(){return p},scaleImplicit:function(){return a},scaleLinear:function(){return h.Z},scaleLog:function(){return k},scaleOrdinal:function(){return s},scalePoint:function(){return u},scalePow:function(){return B},scaleQuantile:function(){return U},scaleQuantize:function(){return Z},scaleRadial:function(){return V},scaleSequential:function(){return On},scaleSequentialLog:function(){return Pn},scaleSequentialPow:function(){return Ln},scaleSequentialQuantile:function(){return Rn},scaleSequentialSqrt:function(){return Dn},scaleSequentialSymlog:function(){return jn},scaleSqrt:function(){return N},scaleSymlog:function(){return P},scaleThreshold:function(){return Y},scaleTime:function(){return In},scaleUtc:function(){return Sn},tickFormat:function(){return Wn.Z}});var i=n(5162),r=n(4182),o=n(909);const a=Symbol("implicit");function s(){var t=new o.L,e=[],n=[],i=a;function l(r){let o=t.get(r);if(void 0===o){if(i!==a)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}return l.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new o.L;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return l},l.range=function(t){return arguments.length?(n=Array.from(t),l):n.slice()},l.unknown=function(t){return arguments.length?(i=t,l):i},l.copy=function(){return s(e,n).unknown(i)},r.o.apply(l,arguments),l}function l(){var t,e,n=s().unknown(void 0),o=n.domain,a=n.range,c=0,u=1,h=!1,d=0,p=0,f=.5;function g(){var n=o().length,r=u<c,s=r?u:c,l=r?c:u;t=(l-s)/Math.max(1,n-d+2*p),h&&(t=Math.floor(t)),s+=(l-s-t*(n-d))*f,e=t*(1-d),h&&(s=Math.round(s),e=Math.round(e));var g=(0,i.Z)(n).map((function(e){return s+t*e}));return a(r?g.reverse():g)}return delete n.unknown,n.domain=function(t){return arguments.length?(o(t),g()):o()},n.range=function(t){return arguments.length?([c,u]=t,c=+c,u=+u,g()):[c,u]},n.rangeRound=function(t){return[c,u]=t,c=+c,u=+u,h=!0,g()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(h=!!t,g()):h},n.padding=function(t){return arguments.length?(d=Math.min(1,p=+t),g()):d},n.paddingInner=function(t){return arguments.length?(d=Math.min(1,t),g()):d},n.paddingOuter=function(t){return arguments.length?(p=+t,g()):p},n.align=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),g()):f},n.copy=function(){return l(o(),[c,u]).round(h).paddingInner(d).paddingOuter(p).align(f)},r.o.apply(g(),arguments)}function c(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return c(e())},t}function u(){return c(l.apply(null,arguments).paddingInner(1))}var h=n(5036),d=n(6938);function p(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,d.Z),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return p(t).unknown(e)},t=arguments.length?Array.from(t,d.Z):[0,1],(0,h.Q)(n)}var f=n(3896),g=n(2035),m=n(6535);function v(t,e){t=t.slice();var n,i=0,r=t.length-1,o=t[i],a=t[r];return a<o&&(n=i,i=r,r=n,n=o,o=a,a=n),t[i]=e.floor(o),t[r]=e.ceil(a),t}var y=n(8565);function b(t){return Math.log(t)}function x(t){return Math.exp(t)}function w(t){return-Math.log(-t)}function _(t){return-Math.exp(-t)}function C(t){return isFinite(t)?+("1e"+t):t<0?0:t}function A(t){return 10===t?C:t===Math.E?Math.exp:e=>Math.pow(t,e)}function I(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function S(t){return(e,n)=>-t(-e,n)}function M(t){const e=t(b,x),n=e.domain;let i,r,o=10;function a(){return i=I(o),r=A(o),n()[0]<0?(i=S(i),r=S(r),t(w,_)):t(b,x),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],s=e[e.length-1];const l=s<a;l&&([a,s]=[s,a]);let c,u,h=i(a),d=i(s);const p=null==t?10:+t;let g=[];if(!(o%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),a>0){for(;h<=d;++h)for(c=1;c<o;++c)if(u=h<0?c/r(-h):c*r(h),!(u<a)){if(u>s)break;g.push(u)}}else for(;h<=d;++h)for(c=o-1;c>=1;--c)if(u=h>0?c/r(-h):c*r(h),!(u<a)){if(u>s)break;g.push(u)}2*g.length<p&&(g=(0,f.ZP)(a,s,p))}else g=(0,f.ZP)(h,d,Math.min(d-h,p)).map(r);return l?g.reverse():g},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(!(o%1)&&null==(n=(0,g.Z)(n)).precision&&(n.trim=!0),n=(0,m.WU)(n)),t===1/0)return n;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/r(Math.round(i(t)));return e*o<o-.5&&(e*=o),e<=a?n(t):""}},e.nice=()=>n(v(n(),{floor:t=>r(Math.floor(i(t))),ceil:t=>r(Math.ceil(i(t)))})),e}function k(){const t=M((0,y.l4)()).domain([1,10]);return t.copy=()=>(0,y.JG)(t,k()).base(t.base()),r.o.apply(t,arguments),t}function E(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function T(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function O(t){var e=1,n=t(E(e),T(e));return n.constant=function(n){return arguments.length?t(E(e=+n),T(e)):e},(0,h.Q)(n)}function P(){var t=O((0,y.l4)());return t.copy=function(){return(0,y.JG)(t,P()).constant(t.constant())},r.o.apply(t,arguments)}function j(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function L(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function D(t){return t<0?-t*t:t*t}function R(t){var e=t(y.yR,y.yR),n=1;function i(){return 1===n?t(y.yR,y.yR):.5===n?t(L,D):t(j(n),j(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,i()):n},(0,h.Q)(e)}function B(){var t=R((0,y.l4)());return t.copy=function(){return(0,y.JG)(t,B()).exponent(t.exponent())},r.o.apply(t,arguments),t}function N(){return B.apply(null,arguments).exponent(.5)}function F(t){return Math.sign(t)*t*t}function z(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function V(){var t,e=(0,y.ZP)(),n=[0,1],i=!1;function o(n){var r=z(e(n));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(t){return e.invert(F(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((n=Array.from(t,d.Z)).map(F)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return V(e.domain(),n).round(i).clamp(e.clamp()).unknown(t)},r.o.apply(o,arguments),(0,h.Q)(o)}var G=n(6057),H=n(2461),W=n(9757);function U(){var t,e=[],n=[],i=[];function o(){var t=0,r=Math.max(1,n.length);for(i=new Array(r-1);++t<r;)i[t-1]=(0,G.s7)(e,t/r);return a}function a(e){return null==e||isNaN(e=+e)?t:n[(0,H.ZP)(i,e)]}return a.invertExtent=function(t){var r=n.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:e[0],r<i.length?i[r]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null!=n&&!isNaN(n=+n)&&e.push(n);return e.sort(W.Z),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return U().domain(e).range(n).unknown(t)},r.o.apply(a,arguments)}function Z(){var t,e=0,n=1,i=1,o=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[(0,H.ZP)(o,e,0,i)]:t}function l(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*n-(t-i)*e)/(i+1);return s}return s.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,l()):[e,n]},s.range=function(t){return arguments.length?(i=(a=Array.from(t)).length-1,l()):a.slice()},s.invertExtent=function(t){var r=a.indexOf(t);return r<0?[NaN,NaN]:r<1?[e,o[0]]:r>=i?[o[i-1],n]:[o[r-1],o[r]]},s.unknown=function(e){return arguments.length&&(t=e),s},s.thresholds=function(){return o.slice()},s.copy=function(){return Z().domain([e,n]).range(a).unknown(t)},r.o.apply((0,h.Q)(s),arguments)}function Y(){var t,e=[.5],n=[0,1],i=1;function o(r){return null!=r&&r<=r?n[(0,H.ZP)(e,r,0,i)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),i=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var i=n.indexOf(t);return[e[i-1],e[i]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return Y().domain(e).range(n).unknown(t)},r.o.apply(o,arguments)}var X=n(477);const q=1e3,K=60*q,Q=60*K,J=24*Q,$=7*J,tt=30*J,et=365*J;var nt=new Date,it=new Date;function rt(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,o){var a,s=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i)||!(o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<i);return s},r.filter=function(n){return rt((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return nt.setTime(+e),it.setTime(+i),t(nt),t(it),Math.floor(n(nt,it))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t===0}:function(e){return r.count(0,e)%t===0}):r:null}),r}var ot=rt((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));ot.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?rt((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):ot:null};var at=ot,st=(ot.range,rt((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*q)}),(function(t,e){return(e-t)/q}),(function(t){return t.getUTCSeconds()}))),lt=st,ct=(st.range,rt((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*q)}),(function(t,e){t.setTime(+t+e*K)}),(function(t,e){return(e-t)/K}),(function(t){return t.getMinutes()}))),ut=ct,ht=(ct.range,rt((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*q-t.getMinutes()*K)}),(function(t,e){t.setTime(+t+e*Q)}),(function(t,e){return(e-t)/Q}),(function(t){return t.getHours()}))),dt=ht,pt=(ht.range,rt(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*K)/J,t=>t.getDate()-1)),ft=pt;pt.range;function gt(t){return rt((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*K)/$}))}var mt=gt(0),vt=gt(1),yt=gt(2),bt=gt(3),xt=gt(4),wt=gt(5),_t=gt(6),Ct=(mt.range,vt.range,yt.range,bt.range,xt.range,wt.range,_t.range,rt((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),At=Ct,It=(Ct.range,rt((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));It.every=function(t){return isFinite(t=Math.floor(t))&&t>0?rt((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var St=It,Mt=(It.range,rt((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*K)}),(function(t,e){return(e-t)/K}),(function(t){return t.getUTCMinutes()}))),kt=Mt,Et=(Mt.range,rt((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Q)}),(function(t,e){return(e-t)/Q}),(function(t){return t.getUTCHours()}))),Tt=Et,Ot=(Et.range,rt((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/J}),(function(t){return t.getUTCDate()-1}))),Pt=Ot;Ot.range;function jt(t){return rt((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/$}))}var Lt=jt(0),Dt=jt(1),Rt=jt(2),Bt=jt(3),Nt=jt(4),Ft=jt(5),zt=jt(6),Vt=(Lt.range,Dt.range,Rt.range,Bt.range,Nt.range,Ft.range,zt.range,rt((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),Gt=Vt,Ht=(Vt.range,rt((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Ht.every=function(t){return isFinite(t=Math.floor(t))&&t>0?rt((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Wt=Ht;Ht.range;function Ut(t,e,n,i,r,o){const a=[[lt,1,q],[lt,5,5*q],[lt,15,15*q],[lt,30,30*q],[o,1,K],[o,5,5*K],[o,15,15*K],[o,30,30*K],[r,1,Q],[r,3,3*Q],[r,6,6*Q],[r,12,12*Q],[i,1,J],[i,2,2*J],[n,1,$],[e,1,tt],[e,3,3*tt],[t,1,et]];function s(t,e,n){const i=e<t;i&&([t,e]=[e,t]);const r=n&&"function"==typeof n.range?n:l(t,e,n),o=r?r.range(t,+e+1):[];return i?o.reverse():o}function l(e,n,i){const r=Math.abs(n-e)/i,o=(0,X.Z)(([,,t])=>t).right(a,r);if(o===a.length)return t.every((0,f.ly)(e/et,n/et,i));if(0===o)return at.every(Math.max((0,f.ly)(e,n,i),1));const[s,l]=a[r/a[o-1][2]<a[o][2]/r?o-1:o];return s.every(l)}return[s,l]}const[Zt,Yt]=Ut(Wt,Gt,Lt,Pt,Tt,kt),[Xt,qt]=Ut(St,At,mt,ft,dt,ut);function Kt(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Qt(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Jt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function $t(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=ce(r),u=ue(r),h=ce(o),d=ue(o),p=ce(a),f=ue(a),g=ce(s),m=ue(s),v=ce(l),y=ue(l),b={a:j,A:L,b:D,B:R,c:null,d:Oe,e:Oe,f:Re,g:Ye,G:qe,H:Pe,I:je,j:Le,L:De,m:Be,M:Ne,p:B,q:N,Q:bn,s:xn,S:Fe,u:ze,U:Ve,V:He,w:We,W:Ue,x:null,X:null,y:Ze,Y:Xe,Z:Ke,"%":yn},x={a:F,A:z,b:V,B:G,c:null,d:Qe,e:Qe,f:nn,g:fn,G:mn,H:Je,I:$e,j:tn,L:en,m:rn,M:on,p:H,q:W,Q:bn,s:xn,S:an,u:sn,U:ln,V:un,w:hn,W:dn,x:null,X:null,y:pn,Y:gn,Z:vn,"%":yn},w={a:S,A:M,b:k,B:E,c:T,d:we,e:we,f:Me,g:ve,G:me,H:Ce,I:Ce,j:_e,L:Se,m:xe,M:Ae,p:I,q:be,Q:Ee,s:Te,S:Ie,u:de,U:pe,V:fe,w:he,W:ge,x:O,X:P,y:ve,Y:me,Z:ye,"%":ke};function _(t,e){return function(n){var i,r,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(r=ie[i=t.charAt(++s)])?i=t.charAt(++s):r="e"===i?" ":"0",(o=e[i])&&(i=o(n,r)),a.push(i),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function C(t,e){return function(n){var i,r,o=Jt(1900,void 0,1),a=A(o,t,n+="",0);if(a!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=Qt(Jt(o.y,0,1)),r=i.getUTCDay(),i=r>4||0===r?Dt.ceil(i):Dt(i),i=Pt.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(i=Kt(Jt(o.y,0,1)),r=i.getDay(),i=r>4||0===r?vt.ceil(i):vt(i),i=ft.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?Qt(Jt(o.y,0,1)).getUTCDay():Kt(Jt(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Qt(o)):Kt(o)}}function A(t,e,n,i){for(var r,o,a=0,s=e.length,l=n.length;a<s;){if(i>=l)return-1;if(r=e.charCodeAt(a++),37===r){if(r=e.charAt(a++),o=w[r in ie?e.charAt(a++):r],!o||(i=o(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}function I(t,e,n){var i=c.exec(e.slice(n));return i?(t.p=u.get(i[0].toLowerCase()),n+i[0].length):-1}function S(t,e,n){var i=p.exec(e.slice(n));return i?(t.w=f.get(i[0].toLowerCase()),n+i[0].length):-1}function M(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=d.get(i[0].toLowerCase()),n+i[0].length):-1}function k(t,e,n){var i=v.exec(e.slice(n));return i?(t.m=y.get(i[0].toLowerCase()),n+i[0].length):-1}function E(t,e,n){var i=g.exec(e.slice(n));return i?(t.m=m.get(i[0].toLowerCase()),n+i[0].length):-1}function T(t,n,i){return A(t,e,n,i)}function O(t,e,i){return A(t,n,e,i)}function P(t,e,n){return A(t,i,e,n)}function j(t){return a[t.getDay()]}function L(t){return o[t.getDay()]}function D(t){return l[t.getMonth()]}function R(t){return s[t.getMonth()]}function B(t){return r[+(t.getHours()>=12)]}function N(t){return 1+~~(t.getMonth()/3)}function F(t){return a[t.getUTCDay()]}function z(t){return o[t.getUTCDay()]}function V(t){return l[t.getUTCMonth()]}function G(t){return s[t.getUTCMonth()]}function H(t){return r[+(t.getUTCHours()>=12)]}function W(t){return 1+~~(t.getUTCMonth()/3)}return b.x=_(n,b),b.X=_(i,b),b.c=_(e,b),x.x=_(n,x),x.X=_(i,x),x.c=_(e,x),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=C(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=C(t+="",!0);return e.toString=function(){return t},e}}}var te,ee,ne,ie={"-":"",_:" ",0:"0"},re=/^\s*\d+/,oe=/^%/,ae=/[\\^$*+?|[\]().{}]/g;function se(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function le(t){return t.replace(ae,"\\$&")}function ce(t){return new RegExp("^(?:"+t.map(le).join("|")+")","i")}function ue(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function he(t,e,n){var i=re.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function de(t,e,n){var i=re.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function pe(t,e,n){var i=re.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function fe(t,e,n){var i=re.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function ge(t,e,n){var i=re.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function me(t,e,n){var i=re.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function ve(t,e,n){var i=re.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function ye(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function be(t,e,n){var i=re.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function xe(t,e,n){var i=re.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function we(t,e,n){var i=re.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function _e(t,e,n){var i=re.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Ce(t,e,n){var i=re.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Ae(t,e,n){var i=re.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Ie(t,e,n){var i=re.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Se(t,e,n){var i=re.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Me(t,e,n){var i=re.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function ke(t,e,n){var i=oe.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Ee(t,e,n){var i=re.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Te(t,e,n){var i=re.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Oe(t,e){return se(t.getDate(),e,2)}function Pe(t,e){return se(t.getHours(),e,2)}function je(t,e){return se(t.getHours()%12||12,e,2)}function Le(t,e){return se(1+ft.count(St(t),t),e,3)}function De(t,e){return se(t.getMilliseconds(),e,3)}function Re(t,e){return De(t,e)+"000"}function Be(t,e){return se(t.getMonth()+1,e,2)}function Ne(t,e){return se(t.getMinutes(),e,2)}function Fe(t,e){return se(t.getSeconds(),e,2)}function ze(t){var e=t.getDay();return 0===e?7:e}function Ve(t,e){return se(mt.count(St(t)-1,t),e,2)}function Ge(t){var e=t.getDay();return e>=4||0===e?xt(t):xt.ceil(t)}function He(t,e){return t=Ge(t),se(xt.count(St(t),t)+(4===St(t).getDay()),e,2)}function We(t){return t.getDay()}function Ue(t,e){return se(vt.count(St(t)-1,t),e,2)}function Ze(t,e){return se(t.getFullYear()%100,e,2)}function Ye(t,e){return t=Ge(t),se(t.getFullYear()%100,e,2)}function Xe(t,e){return se(t.getFullYear()%1e4,e,4)}function qe(t,e){var n=t.getDay();return t=n>=4||0===n?xt(t):xt.ceil(t),se(t.getFullYear()%1e4,e,4)}function Ke(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+se(e/60|0,"0",2)+se(e%60,"0",2)}function Qe(t,e){return se(t.getUTCDate(),e,2)}function Je(t,e){return se(t.getUTCHours(),e,2)}function $e(t,e){return se(t.getUTCHours()%12||12,e,2)}function tn(t,e){return se(1+Pt.count(Wt(t),t),e,3)}function en(t,e){return se(t.getUTCMilliseconds(),e,3)}function nn(t,e){return en(t,e)+"000"}function rn(t,e){return se(t.getUTCMonth()+1,e,2)}function on(t,e){return se(t.getUTCMinutes(),e,2)}function an(t,e){return se(t.getUTCSeconds(),e,2)}function sn(t){var e=t.getUTCDay();return 0===e?7:e}function ln(t,e){return se(Lt.count(Wt(t)-1,t),e,2)}function cn(t){var e=t.getUTCDay();return e>=4||0===e?Nt(t):Nt.ceil(t)}function un(t,e){return t=cn(t),se(Nt.count(Wt(t),t)+(4===Wt(t).getUTCDay()),e,2)}function hn(t){return t.getUTCDay()}function dn(t,e){return se(Dt.count(Wt(t)-1,t),e,2)}function pn(t,e){return se(t.getUTCFullYear()%100,e,2)}function fn(t,e){return t=cn(t),se(t.getUTCFullYear()%100,e,2)}function gn(t,e){return se(t.getUTCFullYear()%1e4,e,4)}function mn(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Nt(t):Nt.ceil(t),se(t.getUTCFullYear()%1e4,e,4)}function vn(){return"+0000"}function yn(){return"%"}function bn(t){return+t}function xn(t){return Math.floor(+t/1e3)}function wn(t){return te=$t(t),ee=te.format,te.parse,ne=te.utcFormat,te.utcParse,te}function _n(t){return new Date(t)}function Cn(t){return t instanceof Date?+t:+new Date(+t)}function An(t,e,n,i,r,o,a,s,l,c){var u=(0,y.ZP)(),h=u.invert,d=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),b=c("%a %d"),x=c("%b %d"),w=c("%B"),_=c("%Y");function C(t){return(l(t)<t?p:s(t)<t?f:a(t)<t?g:o(t)<t?m:i(t)<t?r(t)<t?b:x:n(t)<t?w:_)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,Cn)):d().map(_n)},u.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?C:c(e)},u.nice=function(t){var n=d();return(!t||"function"!=typeof t.range)&&(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(v(n,t)):u},u.copy=function(){return(0,y.JG)(u,An(t,e,n,i,r,o,a,s,l,c))},u}function In(){return r.o.apply(An(Xt,qt,St,At,mt,ft,dt,ut,lt,ee).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Sn(){return r.o.apply(An(Zt,Yt,Wt,Gt,Lt,Pt,Tt,kt,lt,ne).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}wn({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Mn=n(4872),kn=n(4635);function En(){var t,e,n,i,r,o=0,a=1,s=y.yR,l=!1;function c(e){return null==e||isNaN(e=+e)?r:s(0===n?.5:(e=(i(e)-t)*n,l?Math.max(0,Math.min(1,e)):e))}function u(t){return function(e){var n,i;return arguments.length?([n,i]=e,s=t(n,i),c):[s(0),s(1)]}}return c.domain=function(r){return arguments.length?([o,a]=r,t=i(o=+o),e=i(a=+a),n=t===e?0:1/(e-t),c):[o,a]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=u(Mn.Z),c.rangeRound=u(kn.Z),c.unknown=function(t){return arguments.length?(r=t,c):r},function(r){return i=r,t=r(o),e=r(a),n=t===e?0:1/(e-t),c}}function Tn(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function On(){var t=(0,h.Q)(En()(y.yR));return t.copy=function(){return Tn(t,On())},r.O.apply(t,arguments)}function Pn(){var t=M(En()).domain([1,10]);return t.copy=function(){return Tn(t,Pn()).base(t.base())},r.O.apply(t,arguments)}function jn(){var t=O(En());return t.copy=function(){return Tn(t,jn()).constant(t.constant())},r.O.apply(t,arguments)}function Ln(){var t=R(En());return t.copy=function(){return Tn(t,Ln()).exponent(t.exponent())},r.O.apply(t,arguments)}function Dn(){return Ln.apply(null,arguments).exponent(.5)}function Rn(){var t=[],e=y.yR;function n(n){if(null!=n&&!isNaN(n=+n))return e(((0,H.ZP)(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null!=n&&!isNaN(n=+n)&&t.push(n);return t.sort(W.Z),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map((n,i)=>e(i/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(n,i)=>(0,G.ZP)(t,i/e))},n.copy=function(){return Rn(e).domain(t)},r.O.apply(n,arguments)}function Bn(t,e){void 0===e&&(e=t,t=Mn.Z);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return function(t){var e=Math.max(0,Math.min(i-1,Math.floor(t*=i)));return o[e](t-e)}}function Nn(){var t,e,n,i,r,o,a,s=0,l=.5,c=1,u=1,h=y.yR,d=!1;function p(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(u*t<u*e?i:r),h(d?Math.max(0,Math.min(1,t)):t))}function f(t){return function(e){var n,i,r;return arguments.length?([n,i,r]=e,h=Bn(t,[n,i,r]),p):[h(0),h(.5),h(1)]}}return p.domain=function(a){return arguments.length?([s,l,c]=a,t=o(s=+s),e=o(l=+l),n=o(c=+c),i=t===e?0:.5/(e-t),r=e===n?0:.5/(n-e),u=e<t?-1:1,p):[s,l,c]},p.clamp=function(t){return arguments.length?(d=!!t,p):d},p.interpolator=function(t){return arguments.length?(h=t,p):h},p.range=f(Mn.Z),p.rangeRound=f(kn.Z),p.unknown=function(t){return arguments.length?(a=t,p):a},function(a){return o=a,t=a(s),e=a(l),n=a(c),i=t===e?0:.5/(e-t),r=e===n?0:.5/(n-e),u=e<t?-1:1,p}}function Fn(){var t=(0,h.Q)(Nn()(y.yR));return t.copy=function(){return Tn(t,Fn())},r.O.apply(t,arguments)}function zn(){var t=M(Nn()).domain([.1,1,10]);return t.copy=function(){return Tn(t,zn()).base(t.base())},r.O.apply(t,arguments)}function Vn(){var t=O(Nn());return t.copy=function(){return Tn(t,Vn()).constant(t.constant())},r.O.apply(t,arguments)}function Gn(){var t=R(Nn());return t.copy=function(){return Tn(t,Gn()).exponent(t.exponent())},r.O.apply(t,arguments)}function Hn(){return Gn.apply(null,arguments).exponent(.5)}var Wn=n(563)},4182:function(t,e,n){"use strict";function i(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function r(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e);break}return this}n.d(e,{O:function(){return r},o:function(){return i}})},5036:function(t,e,n){"use strict";n.d(e,{Q:function(){return s},Z:function(){return l}});var i=n(3896),r=n(8565),o=n(4182),a=n(563);function s(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,i.ZP)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return(0,a.Z)(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,a=e(),s=0,l=a.length-1,c=a[s],u=a[l],h=10;for(u<c&&(o=c,c=u,u=o,o=s,s=l,l=o);h-- >0;){if(o=(0,i.G9)(c,u,n),o===r)return a[s]=c,a[l]=u,e(a);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return t},t}function l(){var t=(0,r.ZP)();return t.copy=function(){return(0,r.JG)(t,l())},o.o.apply(t,arguments),s(t)}},6938:function(t,e,n){"use strict";function i(t){return+t}n.d(e,{Z:function(){return i}})},563:function(t,e,n){"use strict";n.d(e,{Z:function(){return u}});var i=n(3896),r=n(2035),o=n(5368);function a(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(e)/3)))-(0,o.Z)(Math.abs(t)))}var s=n(6535);function l(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,o.Z)(e)-(0,o.Z)(t))+1}function c(t){return Math.max(0,-(0,o.Z)(Math.abs(t)))}function u(t,e,n,o){var u,h=(0,i.ly)(t,e,n);switch(o=(0,r.Z)(null==o?",f":o),o.type){case"s":var d=Math.max(Math.abs(t),Math.abs(e));return null==o.precision&&!isNaN(u=a(h,d))&&(o.precision=u),(0,s.jH)(o,d);case"":case"e":case"g":case"p":case"r":null==o.precision&&!isNaN(u=l(h,Math.max(Math.abs(t),Math.abs(e))))&&(o.precision=u-("e"===o.type));break;case"f":case"%":null==o.precision&&!isNaN(u=c(h))&&(o.precision=u-2*("%"===o.type));break}return(0,s.WU)(o)}},5246:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return w}});const i=11102230246251565e-32,r=134217729,o=(3+8*i)*i;function a(t,e,n,i,r){let o,a,s,l,c=e[0],u=i[0],h=0,d=0;u>c==u>-c?(o=c,c=e[++h]):(o=u,u=i[++d]);let p=0;if(h<t&&d<n)for(u>c==u>-c?(a=c+o,s=o-(a-c),c=e[++h]):(a=u+o,s=o-(a-u),u=i[++d]),o=a,0!==s&&(r[p++]=s);h<t&&d<n;)u>c==u>-c?(a=o+c,l=a-o,s=o-(a-l)+(c-l),c=e[++h]):(a=o+u,l=a-o,s=o-(a-l)+(u-l),u=i[++d]),o=a,0!==s&&(r[p++]=s);for(;h<t;)a=o+c,l=a-o,s=o-(a-l)+(c-l),c=e[++h],o=a,0!==s&&(r[p++]=s);for(;d<n;)a=o+u,l=a-o,s=o-(a-l)+(u-l),u=i[++d],o=a,0!==s&&(r[p++]=s);return(0!==o||0===p)&&(r[p++]=o),p}function s(t,e){let n=e[0];for(let i=1;i<t;i++)n+=e[i];return n}function l(t){return new Float64Array(t)}const c=(3+16*i)*i,u=(2+12*i)*i,h=(9+64*i)*i*i,d=l(4),p=l(8),f=l(12),g=l(16),m=l(4);function v(t,e,n,i,l,c,v){let y,b,x,w,_,C,A,I,S,M,k,E,T,O,P,j,L,D;const R=t-l,B=n-l,N=e-c,F=i-c;O=R*F,C=r*R,A=C-(C-R),I=R-A,C=r*F,S=C-(C-F),M=F-S,P=I*M-(O-A*S-I*S-A*M),j=N*B,C=r*N,A=C-(C-N),I=N-A,C=r*B,S=C-(C-B),M=B-S,L=I*M-(j-A*S-I*S-A*M),k=P-L,_=P-k,d[0]=P-(k+_)+(_-L),E=O+k,_=E-O,T=O-(E-_)+(k-_),k=T-j,_=T-k,d[1]=T-(k+_)+(_-j),D=E+k,_=D-E,d[2]=E-(D-_)+(k-_),d[3]=D;let z=s(4,d),V=u*v;if(z>=V||-z>=V||(_=t-R,y=t-(R+_)+(_-l),_=n-B,x=n-(B+_)+(_-l),_=e-N,b=e-(N+_)+(_-c),_=i-F,w=i-(F+_)+(_-c),0===y&&0===b&&0===x&&0===w)||(V=h*v+o*Math.abs(z),z+=R*w+F*y-(N*x+B*b),z>=V||-z>=V))return z;O=y*F,C=r*y,A=C-(C-y),I=y-A,C=r*F,S=C-(C-F),M=F-S,P=I*M-(O-A*S-I*S-A*M),j=b*B,C=r*b,A=C-(C-b),I=b-A,C=r*B,S=C-(C-B),M=B-S,L=I*M-(j-A*S-I*S-A*M),k=P-L,_=P-k,m[0]=P-(k+_)+(_-L),E=O+k,_=E-O,T=O-(E-_)+(k-_),k=T-j,_=T-k,m[1]=T-(k+_)+(_-j),D=E+k,_=D-E,m[2]=E-(D-_)+(k-_),m[3]=D;const G=a(4,d,4,m,p);O=R*w,C=r*R,A=C-(C-R),I=R-A,C=r*w,S=C-(C-w),M=w-S,P=I*M-(O-A*S-I*S-A*M),j=N*x,C=r*N,A=C-(C-N),I=N-A,C=r*x,S=C-(C-x),M=x-S,L=I*M-(j-A*S-I*S-A*M),k=P-L,_=P-k,m[0]=P-(k+_)+(_-L),E=O+k,_=E-O,T=O-(E-_)+(k-_),k=T-j,_=T-k,m[1]=T-(k+_)+(_-j),D=E+k,_=D-E,m[2]=E-(D-_)+(k-_),m[3]=D;const H=a(G,p,4,m,f);O=y*w,C=r*y,A=C-(C-y),I=y-A,C=r*w,S=C-(C-w),M=w-S,P=I*M-(O-A*S-I*S-A*M),j=b*x,C=r*b,A=C-(C-b),I=b-A,C=r*x,S=C-(C-x),M=x-S,L=I*M-(j-A*S-I*S-A*M),k=P-L,_=P-k,m[0]=P-(k+_)+(_-L),E=O+k,_=E-O,T=O-(E-_)+(k-_),k=T-j,_=T-k,m[1]=T-(k+_)+(_-j),D=E+k,_=D-E,m[2]=E-(D-_)+(k-_),m[3]=D;const W=a(H,f,4,m,g);return g[W-1]}function y(t,e,n,i,r,o){const a=(e-o)*(n-r),s=(t-r)*(i-o),l=a-s;if(0===a||0===s||a>0!=s>0)return l;const u=Math.abs(a+s);return Math.abs(l)>=c*u?l:-v(t,e,n,i,r,o,u)}l(4),l(4),l(4),l(4),l(4),l(4),l(4),l(4),l(4),l(8),l(8),l(8),l(4),l(8),l(8),l(8),l(12);l(192),l(192);l(4),l(4),l(4),l(4),l(4),l(4),l(4),l(4),l(8),l(8),l(8),l(8),l(8),l(8),l(8),l(8),l(8),l(4),l(4),l(4),l(8),l(16),l(16),l(16),l(32),l(32),l(48),l(64);l(1152),l(1152);l(4),l(4),l(4),l(4),l(4),l(4),l(4),l(4),l(4),l(4),l(24),l(24),l(24),l(24),l(24),l(24),l(24),l(24),l(24),l(24),l(1152),l(1152),l(1152),l(1152),l(1152),l(2304),l(2304),l(3456),l(5760),l(8),l(8),l(8),l(16),l(24),l(48),l(48),l(96),l(192),l(384),l(384),l(384),l(768);l(96),l(96),l(96),l(1152);const b=Math.pow(2,-52),x=new Uint32Array(512);class w{static from(t,e=E,n=T){const i=t.length,r=new Float64Array(2*i);for(let o=0;o<i;o++){const i=t[o];r[2*o]=e(i),r[2*o+1]=n(i)}return new w(r)}constructor(t){const e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:i,_hullHash:r}=this,o=t.length>>1;let a=1/0,s=1/0,l=-1/0,c=-1/0;for(let y=0;y<o;y++){const e=t[2*y],n=t[2*y+1];e<a&&(a=e),n<s&&(s=n),e>l&&(l=e),n>c&&(c=n),this._ids[y]=y}const u=(a+l)/2,h=(s+c)/2;let d,p,f,g=1/0;for(let y=0;y<o;y++){const e=C(u,h,t[2*y],t[2*y+1]);e<g&&(d=y,g=e)}const m=t[2*d],v=t[2*d+1];g=1/0;for(let y=0;y<o;y++){if(y===d)continue;const e=C(m,v,t[2*y],t[2*y+1]);e<g&&e>0&&(p=y,g=e)}let x=t[2*p],w=t[2*p+1],_=1/0;for(let y=0;y<o;y++){if(y===d||y===p)continue;const e=I(m,v,x,w,t[2*y],t[2*y+1]);e<_&&(f=y,_=e)}let A=t[2*f],k=t[2*f+1];if(_===1/0){for(let i=0;i<o;i++)this._dists[i]=t[2*i]-t[0]||t[2*i+1]-t[1];M(this._ids,this._dists,0,o-1);const e=new Uint32Array(o);let n=0;for(let t=0,i=-1/0;t<o;t++){const r=this._ids[t];this._dists[r]>i&&(e[n++]=r,i=this._dists[r])}return this.hull=e.subarray(0,n),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(y(m,v,x,w,A,k)<0){const t=p,e=x,n=w;p=f,x=A,w=k,f=t,A=e,k=n}const E=S(m,v,x,w,A,k);this._cx=E.x,this._cy=E.y;for(let y=0;y<o;y++)this._dists[y]=C(t[2*y],t[2*y+1],E.x,E.y);M(this._ids,this._dists,0,o-1),this._hullStart=d;let T=3;n[d]=e[f]=p,n[p]=e[d]=f,n[f]=e[p]=d,i[d]=0,i[p]=1,i[f]=2,r.fill(-1),r[this._hashKey(m,v)]=d,r[this._hashKey(x,w)]=p,r[this._hashKey(A,k)]=f,this.trianglesLen=0,this._addTriangle(d,p,f,-1,-1,-1);for(let C,I,S=0;S<this._ids.length;S++){const o=this._ids[S],a=t[2*o],s=t[2*o+1];if(S>0&&Math.abs(a-C)<=b&&Math.abs(s-I)<=b||(C=a,I=s,o===d||o===p||o===f))continue;let l=0;for(let t=0,e=this._hashKey(a,s);t<this._hashSize&&(l=r[(e+t)%this._hashSize],-1===l||l===n[l]);t++);l=e[l];let c,u=l;for(;c=n[u],y(a,s,t[2*u],t[2*u+1],t[2*c],t[2*c+1])>=0;)if(u=c,u===l){u=-1;break}if(-1===u)continue;let h=this._addTriangle(u,o,n[u],-1,-1,i[u]);i[o]=this._legalize(h+2),i[u]=h,T++;let g=n[u];for(;c=n[g],y(a,s,t[2*g],t[2*g+1],t[2*c],t[2*c+1])<0;)h=this._addTriangle(g,o,c,i[o],-1,i[g]),i[o]=this._legalize(h+2),n[g]=g,T--,g=c;if(u===l)for(;c=e[u],y(a,s,t[2*c],t[2*c+1],t[2*u],t[2*u+1])<0;)h=this._addTriangle(c,o,u,-1,i[u],i[c]),this._legalize(h+2),i[c]=h,n[u]=u,T--,u=c;this._hullStart=e[o]=u,n[u]=e[g]=o,n[o]=g,r[this._hashKey(a,s)]=o,r[this._hashKey(t[2*u],t[2*u+1])]=u}this.hull=new Uint32Array(T);for(let y=0,b=this._hullStart;y<T;y++)this.hull[y]=b,b=n[b];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(_(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:e,_halfedges:n,coords:i}=this;let r=0,o=0;for(;;){const a=n[t],s=t-t%3;if(o=s+(t+2)%3,-1===a){if(0===r)break;t=x[--r];continue}const l=a-a%3,c=s+(t+1)%3,u=l+(a+2)%3,h=e[o],d=e[t],p=e[c],f=e[u];if(A(i[2*h],i[2*h+1],i[2*d],i[2*d+1],i[2*p],i[2*p+1],i[2*f],i[2*f+1])){e[t]=f,e[a]=h;const i=n[u];if(-1===i){let e=this._hullStart;do{if(this._hullTri[e]===u){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,i),this._link(a,n[o]),this._link(o,u);const s=l+(a+1)%3;r<x.length&&(x[r++]=s)}else{if(0===r)break;t=x[--r]}}return o}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,n,i,r,o){const a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,i),this._link(a+1,r),this._link(a+2,o),this.trianglesLen+=3,a}}function _(t,e){const n=t/(Math.abs(t)+Math.abs(e));return(e>0?3-n:1+n)/4}function C(t,e,n,i){const r=t-n,o=e-i;return r*r+o*o}function A(t,e,n,i,r,o,a,s){const l=t-a,c=e-s,u=n-a,h=i-s,d=r-a,p=o-s,f=l*l+c*c,g=u*u+h*h,m=d*d+p*p;return l*(h*m-g*p)-c*(u*m-g*d)+f*(u*p-h*d)<0}function I(t,e,n,i,r,o){const a=n-t,s=i-e,l=r-t,c=o-e,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l),p=(c*u-s*h)*d,f=(a*h-l*u)*d;return p*p+f*f}function S(t,e,n,i,r,o){const a=n-t,s=i-e,l=r-t,c=o-e,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l),p=t+(c*u-s*h)*d,f=e+(a*h-l*u)*d;return{x:p,y:f}}function M(t,e,n,i){if(i-n<=20)for(let r=n+1;r<=i;r++){const i=t[r],o=e[i];let a=r-1;for(;a>=n&&e[t[a]]>o;)t[a+1]=t[a--];t[a+1]=i}else{const r=n+i>>1;let o=n+1,a=i;k(t,r,o),e[t[n]]>e[t[i]]&&k(t,n,i),e[t[o]]>e[t[i]]&&k(t,o,i),e[t[n]]>e[t[o]]&&k(t,n,o);const s=t[o],l=e[s];for(;;){do{o++}while(e[t[o]]<l);do{a--}while(e[t[a]]>l);if(a<o)break;k(t,o,a)}t[n+1]=t[a],t[a]=s,i-o+1>=a-n?(M(t,e,o,i),M(t,e,n,a-1)):(M(t,e,n,a-1),M(t,e,o,i))}}function k(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function E(t){return t[0]}function T(t){return t[1]}},4678:function(t,e,n){"use strict";function i(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function r(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=i(n);return(t,n)=>r.then(i=>n(i.transaction(e,t).objectStore(e)))}let o;function a(){return o||(o=r("keyval-store","keyval")),o}function s(t,e=a()){return e("readonly",e=>i(e.get(t)))}function l(t,e,n=a()){return n("readwrite",n=>(n.put(e,t),i(n.transaction)))}function c(t,e=a()){return e("readwrite",e=>(t.forEach(t=>e.put(t[1],t[0])),i(e.transaction)))}function u(t,e=a()){return e("readonly",e=>Promise.all(t.map(t=>i(e.get(t)))))}function h(t,e,n=a()){return n("readwrite",n=>new Promise((r,o)=>{n.get(t).onsuccess=function(){try{n.put(e(this.result),t),r(i(n.transaction))}catch(a){o(a)}}}))}function d(t,e=a()){return e("readwrite",e=>(e.delete(t),i(e.transaction)))}function p(t,e=a()){return e("readwrite",e=>(t.forEach(t=>e.delete(t)),i(e.transaction)))}function f(t=a()){return t("readwrite",t=>(t.clear(),i(t.transaction)))}function g(t,e){return t.openCursor().onsuccess=function(){!this.result||(e(this.result),this.result.continue())},i(t.transaction)}function m(t=a()){return t("readonly",t=>{if(t.getAllKeys)return i(t.getAllKeys());const e=[];return g(t,t=>e.push(t.key)).then(()=>e)})}function v(t=a()){return t("readonly",t=>{if(t.getAll)return i(t.getAll());const e=[];return g(t,t=>e.push(t.value)).then(()=>e)})}function y(t=a()){return t("readonly",e=>{if(e.getAll&&e.getAllKeys)return Promise.all([i(e.getAllKeys()),i(e.getAll())]).then(([t,e])=>t.map((t,n)=>[t,e[n]]));const n=[];return t("readonly",t=>g(t,t=>n.push([t.key,t.value])).then(()=>n))})}n.r(e),n.d(e,{clear:function(){return f},createStore:function(){return r},del:function(){return d},delMany:function(){return p},entries:function(){return y},get:function(){return s},getMany:function(){return u},keys:function(){return m},promisifyRequest:function(){return i},set:function(){return l},setMany:function(){return c},update:function(){return h},values:function(){return v}})},909:function(t,e,n){"use strict";n.d(e,{H:function(){return r},L:function(){return i}});class i extends Map{constructor(t,e=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(a(this,t),e)}delete(t){return super.delete(s(this,t))}}class r extends Set{constructor(t,e=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(o(this,t))}add(t){return super.add(a(this,t))}delete(t){return super.delete(s(this,t))}}function o({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function a({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function s({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function l(t){return null!==t&&"object"==typeof t?t.valueOf():t}},9365:function(t,e,n){"use strict";n.r(e),n.d(e,{MapControls:function(){return l},OrbitControls:function(){return s}});var i=n(5644);const r={type:"change"},o={type:"start"},a={type:"end"};class s extends i.EventDispatcher{constructor(t,e){super(),void 0===e&&console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'),e===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),this.object=t,this.domElement=e,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:i.MOUSE.ROTATE,MIDDLE:i.MOUSE.DOLLY,RIGHT:i.MOUSE.PAN},this.touches={ONE:i.TOUCH.ROTATE,TWO:i.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return u.phi},this.getAzimuthalAngle=function(){return u.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(t){t.addEventListener("keydown",at),this._domElementKeyEvents=t},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(r),n.update(),l=s.NONE},this.update=function(){const e=new i.Vector3,o=(new i.Quaternion).setFromUnitVectors(t.up,new i.Vector3(0,1,0)),a=o.clone().invert(),g=new i.Vector3,m=new i.Quaternion,v=2*Math.PI;return function(){const t=n.object.position;e.copy(t).sub(n.target),e.applyQuaternion(o),u.setFromVector3(e),n.autoRotate&&l===s.NONE&&k(S()),n.enableDamping?(u.theta+=h.theta*n.dampingFactor,u.phi+=h.phi*n.dampingFactor):(u.theta+=h.theta,u.phi+=h.phi);let i=n.minAzimuthAngle,y=n.maxAzimuthAngle;return isFinite(i)&&isFinite(y)&&(i<-Math.PI?i+=v:i>Math.PI&&(i-=v),y<-Math.PI?y+=v:y>Math.PI&&(y-=v),u.theta=i<=y?Math.max(i,Math.min(y,u.theta)):u.theta>(i+y)/2?Math.max(i,u.theta):Math.min(y,u.theta)),u.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,u.phi)),u.makeSafe(),u.radius*=d,u.radius=Math.max(n.minDistance,Math.min(n.maxDistance,u.radius)),!0===n.enableDamping?n.target.addScaledVector(p,n.dampingFactor):n.target.add(p),e.setFromSpherical(u),e.applyQuaternion(a),t.copy(n.target).add(e),n.object.lookAt(n.target),!0===n.enableDamping?(h.theta*=1-n.dampingFactor,h.phi*=1-n.dampingFactor,p.multiplyScalar(1-n.dampingFactor)):(h.set(0,0,0),p.set(0,0,0)),d=1,!!(f||g.distanceToSquared(n.object.position)>c||8*(1-m.dot(n.object.quaternion))>c)&&(n.dispatchEvent(r),g.copy(n.object.position),m.copy(n.object.quaternion),f=!1,!0)}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",ct),n.domElement.removeEventListener("pointerdown",$),n.domElement.removeEventListener("pointercancel",nt),n.domElement.removeEventListener("wheel",ot),n.domElement.removeEventListener("pointermove",tt),n.domElement.removeEventListener("pointerup",et),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",at)};const n=this,s={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=s.NONE;const c=1e-6,u=new i.Spherical,h=new i.Spherical;let d=1;const p=new i.Vector3;let f=!1;const g=new i.Vector2,m=new i.Vector2,v=new i.Vector2,y=new i.Vector2,b=new i.Vector2,x=new i.Vector2,w=new i.Vector2,_=new i.Vector2,C=new i.Vector2,A=[],I={};function S(){return 2*Math.PI/60/60*n.autoRotateSpeed}function M(){return Math.pow(.95,n.zoomSpeed)}function k(t){h.theta-=t}function E(t){h.phi-=t}const T=function(){const t=new i.Vector3;return function(e,n){t.setFromMatrixColumn(n,0),t.multiplyScalar(-e),p.add(t)}}(),O=function(){const t=new i.Vector3;return function(e,i){!0===n.screenSpacePanning?t.setFromMatrixColumn(i,1):(t.setFromMatrixColumn(i,0),t.crossVectors(n.object.up,t)),t.multiplyScalar(e),p.add(t)}}(),P=function(){const t=new i.Vector3;return function(e,i){const r=n.domElement;if(n.object.isPerspectiveCamera){const o=n.object.position;t.copy(o).sub(n.target);let a=t.length();a*=Math.tan(n.object.fov/2*Math.PI/180),T(2*e*a/r.clientHeight,n.object.matrix),O(2*i*a/r.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(T(e*(n.object.right-n.object.left)/n.object.zoom/r.clientWidth,n.object.matrix),O(i*(n.object.top-n.object.bottom)/n.object.zoom/r.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function j(t){n.object.isPerspectiveCamera?d/=t:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom*t)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function L(t){n.object.isPerspectiveCamera?d*=t:n.object.isOrthographicCamera?(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/t)),n.object.updateProjectionMatrix(),f=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function D(t){g.set(t.clientX,t.clientY)}function R(t){w.set(t.clientX,t.clientY)}function B(t){y.set(t.clientX,t.clientY)}function N(t){m.set(t.clientX,t.clientY),v.subVectors(m,g).multiplyScalar(n.rotateSpeed);const e=n.domElement;k(2*Math.PI*v.x/e.clientHeight),E(2*Math.PI*v.y/e.clientHeight),g.copy(m),n.update()}function F(t){_.set(t.clientX,t.clientY),C.subVectors(_,w),C.y>0?j(M()):C.y<0&&L(M()),w.copy(_),n.update()}function z(t){b.set(t.clientX,t.clientY),x.subVectors(b,y).multiplyScalar(n.panSpeed),P(x.x,x.y),y.copy(b),n.update()}function V(t){t.deltaY<0?L(M()):t.deltaY>0&&j(M()),n.update()}function G(t){let e=!1;switch(t.code){case n.keys.UP:P(0,n.keyPanSpeed),e=!0;break;case n.keys.BOTTOM:P(0,-n.keyPanSpeed),e=!0;break;case n.keys.LEFT:P(n.keyPanSpeed,0),e=!0;break;case n.keys.RIGHT:P(-n.keyPanSpeed,0),e=!0;break}e&&(t.preventDefault(),n.update())}function H(){if(1===A.length)g.set(A[0].pageX,A[0].pageY);else{const t=.5*(A[0].pageX+A[1].pageX),e=.5*(A[0].pageY+A[1].pageY);g.set(t,e)}}function W(){if(1===A.length)y.set(A[0].pageX,A[0].pageY);else{const t=.5*(A[0].pageX+A[1].pageX),e=.5*(A[0].pageY+A[1].pageY);y.set(t,e)}}function U(){const t=A[0].pageX-A[1].pageX,e=A[0].pageY-A[1].pageY,n=Math.sqrt(t*t+e*e);w.set(0,n)}function Z(){n.enableZoom&&U(),n.enablePan&&W()}function Y(){n.enableZoom&&U(),n.enableRotate&&H()}function X(t){if(1==A.length)m.set(t.pageX,t.pageY);else{const e=pt(t),n=.5*(t.pageX+e.x),i=.5*(t.pageY+e.y);m.set(n,i)}v.subVectors(m,g).multiplyScalar(n.rotateSpeed);const e=n.domElement;k(2*Math.PI*v.x/e.clientHeight),E(2*Math.PI*v.y/e.clientHeight),g.copy(m)}function q(t){if(1===A.length)b.set(t.pageX,t.pageY);else{const e=pt(t),n=.5*(t.pageX+e.x),i=.5*(t.pageY+e.y);b.set(n,i)}x.subVectors(b,y).multiplyScalar(n.panSpeed),P(x.x,x.y),y.copy(b)}function K(t){const e=pt(t),i=t.pageX-e.x,r=t.pageY-e.y,o=Math.sqrt(i*i+r*r);_.set(0,o),C.set(0,Math.pow(_.y/w.y,n.zoomSpeed)),j(C.y),w.copy(_)}function Q(t){n.enableZoom&&K(t),n.enablePan&&q(t)}function J(t){n.enableZoom&&K(t),n.enableRotate&&X(t)}function $(t){!1!==n.enabled&&(0===A.length&&(n.domElement.setPointerCapture(t.pointerId),n.domElement.addEventListener("pointermove",tt),n.domElement.addEventListener("pointerup",et)),ut(t),"touch"===t.pointerType?st(t):it(t))}function tt(t){!1!==n.enabled&&("touch"===t.pointerType?lt(t):rt(t))}function et(t){ht(t),0===A.length&&(n.domElement.releasePointerCapture(t.pointerId),n.domElement.removeEventListener("pointermove",tt),n.domElement.removeEventListener("pointerup",et)),n.dispatchEvent(a),l=s.NONE}function nt(t){ht(t)}function it(t){let e;switch(t.button){case 0:e=n.mouseButtons.LEFT;break;case 1:e=n.mouseButtons.MIDDLE;break;case 2:e=n.mouseButtons.RIGHT;break;default:e=-1}switch(e){case i.MOUSE.DOLLY:if(!1===n.enableZoom)return;R(t),l=s.DOLLY;break;case i.MOUSE.ROTATE:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===n.enablePan)return;B(t),l=s.PAN}else{if(!1===n.enableRotate)return;D(t),l=s.ROTATE}break;case i.MOUSE.PAN:if(t.ctrlKey||t.metaKey||t.shiftKey){if(!1===n.enableRotate)return;D(t),l=s.ROTATE}else{if(!1===n.enablePan)return;B(t),l=s.PAN}break;default:l=s.NONE}l!==s.NONE&&n.dispatchEvent(o)}function rt(t){if(!1!==n.enabled)switch(l){case s.ROTATE:if(!1===n.enableRotate)return;N(t);break;case s.DOLLY:if(!1===n.enableZoom)return;F(t);break;case s.PAN:if(!1===n.enablePan)return;z(t);break}}function ot(t){!1===n.enabled||!1===n.enableZoom||l!==s.NONE||(t.preventDefault(),n.dispatchEvent(o),V(t),n.dispatchEvent(a))}function at(t){!1===n.enabled||!1===n.enablePan||G(t)}function st(t){switch(dt(t),A.length){case 1:switch(n.touches.ONE){case i.TOUCH.ROTATE:if(!1===n.enableRotate)return;H(),l=s.TOUCH_ROTATE;break;case i.TOUCH.PAN:if(!1===n.enablePan)return;W(),l=s.TOUCH_PAN;break;default:l=s.NONE}break;case 2:switch(n.touches.TWO){case i.TOUCH.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;Z(),l=s.TOUCH_DOLLY_PAN;break;case i.TOUCH.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;Y(),l=s.TOUCH_DOLLY_ROTATE;break;default:l=s.NONE}break;default:l=s.NONE}l!==s.NONE&&n.dispatchEvent(o)}function lt(t){switch(dt(t),l){case s.TOUCH_ROTATE:if(!1===n.enableRotate)return;X(t),n.update();break;case s.TOUCH_PAN:if(!1===n.enablePan)return;q(t),n.update();break;case s.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;Q(t),n.update();break;case s.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;J(t),n.update();break;default:l=s.NONE}}function ct(t){!1!==n.enabled&&t.preventDefault()}function ut(t){A.push(t)}function ht(t){delete I[t.pointerId];for(let e=0;e<A.length;e++)if(A[e].pointerId==t.pointerId)return void A.splice(e,1)}function dt(t){let e=I[t.pointerId];void 0===e&&(e=new i.Vector2,I[t.pointerId]=e),e.set(t.pageX,t.pageY)}function pt(t){const e=t.pointerId===A[0].pointerId?A[1]:A[0];return I[e.pointerId]}n.domElement.addEventListener("contextmenu",ct),n.domElement.addEventListener("pointerdown",$),n.domElement.addEventListener("pointercancel",nt),n.domElement.addEventListener("wheel",ot,{passive:!1}),this.update()}}class l extends s{constructor(t,e){super(t,e),this.screenSpacePanning=!1,this.mouseButtons.LEFT=i.MOUSE.PAN,this.mouseButtons.RIGHT=i.MOUSE.ROTATE,this.touches.ONE=i.TOUCH.PAN,this.touches.TWO=i.TOUCH.DOLLY_ROTATE}}},2327:function(t,e,n){"use strict";n.r(e),n.d(e,{TransformControls:function(){return p},TransformControlsGizmo:function(){return L},TransformControlsPlane:function(){return D}});var i=n(5644);const r=new i.Raycaster,o=new i.Vector3,a=new i.Vector3,s=new i.Quaternion,l={X:new i.Vector3(1,0,0),Y:new i.Vector3(0,1,0),Z:new i.Vector3(0,0,1)},c={type:"change"},u={type:"mouseDown"},h={type:"mouseUp",mode:null},d={type:"objectChange"};class p extends i.Object3D{constructor(t,e){super(),void 0===e&&(console.warn('THREE.TransformControls: The second parameter "domElement" is now mandatory.'),e=document),this.visible=!1,this.domElement=e,this.domElement.style.touchAction="none";const n=new L;this._gizmo=n,this.add(n);const r=new D;this._plane=r,this.add(r);const o=this;function a(t,e){let i=e;Object.defineProperty(o,t,{get:function(){return void 0!==i?i:e},set:function(e){i!==e&&(i=e,r[t]=e,n[t]=e,o.dispatchEvent({type:t+"-changed",value:e}),o.dispatchEvent(c))}}),o[t]=e,r[t]=e,n[t]=e}a("camera",t),a("object",void 0),a("enabled",!0),a("axis",null),a("mode","translate"),a("translationSnap",null),a("rotationSnap",null),a("scaleSnap",null),a("space","world"),a("size",1),a("dragging",!1),a("showX",!0),a("showY",!0),a("showZ",!0);const s=new i.Vector3,l=new i.Vector3,u=new i.Quaternion,h=new i.Quaternion,d=new i.Vector3,p=new i.Quaternion,b=new i.Vector3,x=new i.Vector3,w=new i.Vector3,_=0,C=new i.Vector3;a("worldPosition",s),a("worldPositionStart",l),a("worldQuaternion",u),a("worldQuaternionStart",h),a("cameraPosition",d),a("cameraQuaternion",p),a("pointStart",b),a("pointEnd",x),a("rotationAxis",w),a("rotationAngle",_),a("eye",C),this._offset=new i.Vector3,this._startNorm=new i.Vector3,this._endNorm=new i.Vector3,this._cameraScale=new i.Vector3,this._parentPosition=new i.Vector3,this._parentQuaternion=new i.Quaternion,this._parentQuaternionInv=new i.Quaternion,this._parentScale=new i.Vector3,this._worldScaleStart=new i.Vector3,this._worldQuaternionInv=new i.Quaternion,this._worldScale=new i.Vector3,this._positionStart=new i.Vector3,this._quaternionStart=new i.Quaternion,this._scaleStart=new i.Vector3,this._getPointer=f.bind(this),this._onPointerDown=m.bind(this),this._onPointerHover=g.bind(this),this._onPointerMove=v.bind(this),this._onPointerUp=y.bind(this),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointermove",this._onPointerHover),this.domElement.addEventListener("pointerup",this._onPointerUp)}updateMatrixWorld(){void 0!==this.object&&(this.object.updateMatrixWorld(),null===this.object.parent?console.error("TransformControls: The attached 3D object must be a part of the scene graph."):this.object.parent.matrixWorld.decompose(this._parentPosition,this._parentQuaternion,this._parentScale),this.object.matrixWorld.decompose(this.worldPosition,this.worldQuaternion,this._worldScale),this._parentQuaternionInv.copy(this._parentQuaternion).invert(),this._worldQuaternionInv.copy(this.worldQuaternion).invert()),this.camera.updateMatrixWorld(),this.camera.matrixWorld.decompose(this.cameraPosition,this.cameraQuaternion,this._cameraScale),this.eye.copy(this.cameraPosition).sub(this.worldPosition).normalize(),super.updateMatrixWorld(this)}pointerHover(t){if(void 0===this.object||!0===this.dragging)return;r.setFromCamera(t,this.camera);const e=b(this._gizmo.picker[this.mode],r);this.axis=e?e.object.name:null}pointerDown(t){if(void 0!==this.object&&!0!==this.dragging&&0===t.button&&null!==this.axis){r.setFromCamera(t,this.camera);const e=b(this._plane,r,!0);e&&(this.object.updateMatrixWorld(),this.object.parent.updateMatrixWorld(),this._positionStart.copy(this.object.position),this._quaternionStart.copy(this.object.quaternion),this._scaleStart.copy(this.object.scale),this.object.matrixWorld.decompose(this.worldPositionStart,this.worldQuaternionStart,this._worldScaleStart),this.pointStart.copy(e.point).sub(this.worldPositionStart)),this.dragging=!0,u.mode=this.mode,this.dispatchEvent(u)}}pointerMove(t){const e=this.axis,n=this.mode,i=this.object;let u=this.space;if("scale"===n?u="local":("E"===e||"XYZE"===e||"XYZ"===e)&&(u="world"),void 0===i||null===e||!1===this.dragging||-1!==t.button)return;r.setFromCamera(t,this.camera);const h=b(this._plane,r,!0);if(h){if(this.pointEnd.copy(h.point).sub(this.worldPositionStart),"translate"===n)this._offset.copy(this.pointEnd).sub(this.pointStart),"local"===u&&"XYZ"!==e&&this._offset.applyQuaternion(this._worldQuaternionInv),-1===e.indexOf("X")&&(this._offset.x=0),-1===e.indexOf("Y")&&(this._offset.y=0),-1===e.indexOf("Z")&&(this._offset.z=0),"local"===u&&"XYZ"!==e?this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale):this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale),i.position.copy(this._offset).add(this._positionStart),this.translationSnap&&("local"===u&&(i.position.applyQuaternion(s.copy(this._quaternionStart).invert()),-1!==e.search("X")&&(i.position.x=Math.round(i.position.x/this.translationSnap)*this.translationSnap),-1!==e.search("Y")&&(i.position.y=Math.round(i.position.y/this.translationSnap)*this.translationSnap),-1!==e.search("Z")&&(i.position.z=Math.round(i.position.z/this.translationSnap)*this.translationSnap),i.position.applyQuaternion(this._quaternionStart)),"world"===u&&(i.parent&&i.position.add(o.setFromMatrixPosition(i.parent.matrixWorld)),-1!==e.search("X")&&(i.position.x=Math.round(i.position.x/this.translationSnap)*this.translationSnap),-1!==e.search("Y")&&(i.position.y=Math.round(i.position.y/this.translationSnap)*this.translationSnap),-1!==e.search("Z")&&(i.position.z=Math.round(i.position.z/this.translationSnap)*this.translationSnap),i.parent&&i.position.sub(o.setFromMatrixPosition(i.parent.matrixWorld))));else if("scale"===n){if(-1!==e.search("XYZ")){let t=this.pointEnd.length()/this.pointStart.length();this.pointEnd.dot(this.pointStart)<0&&(t*=-1),a.set(t,t,t)}else o.copy(this.pointStart),a.copy(this.pointEnd),o.applyQuaternion(this._worldQuaternionInv),a.applyQuaternion(this._worldQuaternionInv),a.divide(o),-1===e.search("X")&&(a.x=1),-1===e.search("Y")&&(a.y=1),-1===e.search("Z")&&(a.z=1);i.scale.copy(this._scaleStart).multiply(a),this.scaleSnap&&(-1!==e.search("X")&&(i.scale.x=Math.round(i.scale.x/this.scaleSnap)*this.scaleSnap||this.scaleSnap),-1!==e.search("Y")&&(i.scale.y=Math.round(i.scale.y/this.scaleSnap)*this.scaleSnap||this.scaleSnap),-1!==e.search("Z")&&(i.scale.z=Math.round(i.scale.z/this.scaleSnap)*this.scaleSnap||this.scaleSnap))}else if("rotate"===n){this._offset.copy(this.pointEnd).sub(this.pointStart);const t=20/this.worldPosition.distanceTo(o.setFromMatrixPosition(this.camera.matrixWorld));"E"===e?(this.rotationAxis.copy(this.eye),this.rotationAngle=this.pointEnd.angleTo(this.pointStart),this._startNorm.copy(this.pointStart).normalize(),this._endNorm.copy(this.pointEnd).normalize(),this.rotationAngle*=this._endNorm.cross(this._startNorm).dot(this.eye)<0?1:-1):"XYZE"===e?(this.rotationAxis.copy(this._offset).cross(this.eye).normalize(),this.rotationAngle=this._offset.dot(o.copy(this.rotationAxis).cross(this.eye))*t):("X"===e||"Y"===e||"Z"===e)&&(this.rotationAxis.copy(l[e]),o.copy(l[e]),"local"===u&&o.applyQuaternion(this.worldQuaternion),this.rotationAngle=this._offset.dot(o.cross(this.eye).normalize())*t),this.rotationSnap&&(this.rotationAngle=Math.round(this.rotationAngle/this.rotationSnap)*this.rotationSnap),"local"===u&&"E"!==e&&"XYZE"!==e?(i.quaternion.copy(this._quaternionStart),i.quaternion.multiply(s.setFromAxisAngle(this.rotationAxis,this.rotationAngle)).normalize()):(this.rotationAxis.applyQuaternion(this._parentQuaternionInv),i.quaternion.copy(s.setFromAxisAngle(this.rotationAxis,this.rotationAngle)),i.quaternion.multiply(this._quaternionStart).normalize())}this.dispatchEvent(c),this.dispatchEvent(d)}}pointerUp(t){0===t.button&&(this.dragging&&null!==this.axis&&(h.mode=this.mode,this.dispatchEvent(h)),this.dragging=!1,this.axis=null)}dispose(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerHover),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.traverse((function(t){t.geometry&&t.geometry.dispose(),t.material&&t.material.dispose()}))}attach(t){return this.object=t,this.visible=!0,this}detach(){return this.object=void 0,this.visible=!1,this.axis=null,this}reset(){!this.enabled||this.dragging&&(this.object.position.copy(this._positionStart),this.object.quaternion.copy(this._quaternionStart),this.object.scale.copy(this._scaleStart),this.dispatchEvent(c),this.dispatchEvent(d),this.pointStart.copy(this.pointEnd))}getRaycaster(){return r}getMode(){return this.mode}setMode(t){this.mode=t}setTranslationSnap(t){this.translationSnap=t}setRotationSnap(t){this.rotationSnap=t}setScaleSnap(t){this.scaleSnap=t}setSize(t){this.size=t}setSpace(t){this.space=t}update(){console.warn("THREE.TransformControls: update function has no more functionality and therefore has been deprecated.")}}function f(t){if(this.domElement.ownerDocument.pointerLockElement)return{x:0,y:0,button:t.button};{const e=this.domElement.getBoundingClientRect();return{x:(t.clientX-e.left)/e.width*2-1,y:-(t.clientY-e.top)/e.height*2+1,button:t.button}}}function g(t){if(this.enabled)switch(t.pointerType){case"mouse":case"pen":this.pointerHover(this._getPointer(t));break}}function m(t){!this.enabled||(document.pointerLockElement||this.domElement.setPointerCapture(t.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.pointerHover(this._getPointer(t)),this.pointerDown(this._getPointer(t)))}function v(t){!this.enabled||this.pointerMove(this._getPointer(t))}function y(t){!this.enabled||(this.domElement.releasePointerCapture(t.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.pointerUp(this._getPointer(t)))}function b(t,e,n){const i=e.intersectObject(t,!0);for(let r=0;r<i.length;r++)if(i[r].object.visible||n)return i[r];return!1}p.prototype.isTransformControls=!0;const x=new i.Euler,w=new i.Vector3(0,1,0),_=new i.Vector3(0,0,0),C=new i.Matrix4,A=new i.Quaternion,I=new i.Quaternion,S=new i.Vector3,M=new i.Matrix4,k=new i.Vector3(1,0,0),E=new i.Vector3(0,1,0),T=new i.Vector3(0,0,1),O=new i.Vector3,P=new i.Vector3,j=new i.Vector3;class L extends i.Object3D{constructor(){super(),this.type="TransformControlsGizmo";const t=new i.MeshBasicMaterial({depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1,transparent:!0}),e=new i.LineBasicMaterial({depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1,transparent:!0}),n=t.clone();n.opacity=.15;const r=e.clone();r.opacity=.5;const o=t.clone();o.color.setHex(16711680);const a=t.clone();a.color.setHex(65280);const s=t.clone();s.color.setHex(255);const l=t.clone();l.color.setHex(16711680),l.opacity=.5;const c=t.clone();c.color.setHex(65280),c.opacity=.5;const u=t.clone();u.color.setHex(255),u.opacity=.5;const h=t.clone();h.opacity=.25;const d=t.clone();d.color.setHex(16776960),d.opacity=.25,t.clone().color.setHex(16776960);const p=t.clone();p.color.setHex(7895160);const f=new i.CylinderGeometry(0,.04,.1,12);f.translate(0,.05,0);const g=new i.BoxGeometry(.08,.08,.08);g.translate(0,.04,0);const m=new i.BufferGeometry;m.setAttribute("position",new i.Float32BufferAttribute([0,0,0,1,0,0],3));const v=new i.CylinderGeometry(.0075,.0075,.5,3);function y(t,e){const n=new i.TorusGeometry(t,.0075,3,64,e*Math.PI*2);return n.rotateY(Math.PI/2),n.rotateX(Math.PI/2),n}function b(){const t=new i.BufferGeometry;return t.setAttribute("position",new i.Float32BufferAttribute([0,0,0,1,1,1],3)),t}v.translate(0,.25,0);const x={X:[[new i.Mesh(f,o),[.5,0,0],[0,0,-Math.PI/2]],[new i.Mesh(f,o),[-.5,0,0],[0,0,Math.PI/2]],[new i.Mesh(v,o),[0,0,0],[0,0,-Math.PI/2]]],Y:[[new i.Mesh(f,a),[0,.5,0]],[new i.Mesh(f,a),[0,-.5,0],[Math.PI,0,0]],[new i.Mesh(v,a)]],Z:[[new i.Mesh(f,s),[0,0,.5],[Math.PI/2,0,0]],[new i.Mesh(f,s),[0,0,-.5],[-Math.PI/2,0,0]],[new i.Mesh(v,s),null,[Math.PI/2,0,0]]],XYZ:[[new i.Mesh(new i.OctahedronGeometry(.1,0),h.clone()),[0,0,0]]],XY:[[new i.Mesh(new i.BoxGeometry(.15,.15,.01),u.clone()),[.15,.15,0]]],YZ:[[new i.Mesh(new i.BoxGeometry(.15,.15,.01),l.clone()),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new i.Mesh(new i.BoxGeometry(.15,.15,.01),c.clone()),[.15,0,.15],[-Math.PI/2,0,0]]]},w={X:[[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[.3,0,0],[0,0,-Math.PI/2]],[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[-.3,0,0],[0,0,Math.PI/2]]],Y:[[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[0,.3,0]],[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[0,-.3,0],[0,0,Math.PI]]],Z:[[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[0,0,.3],[Math.PI/2,0,0]],[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[0,0,-.3],[-Math.PI/2,0,0]]],XYZ:[[new i.Mesh(new i.OctahedronGeometry(.2,0),n)]],XY:[[new i.Mesh(new i.BoxGeometry(.2,.2,.01),n),[.15,.15,0]]],YZ:[[new i.Mesh(new i.BoxGeometry(.2,.2,.01),n),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new i.Mesh(new i.BoxGeometry(.2,.2,.01),n),[.15,0,.15],[-Math.PI/2,0,0]]]},_={START:[[new i.Mesh(new i.OctahedronGeometry(.01,2),r),null,null,null,"helper"]],END:[[new i.Mesh(new i.OctahedronGeometry(.01,2),r),null,null,null,"helper"]],DELTA:[[new i.Line(b(),r),null,null,null,"helper"]],X:[[new i.Line(m,r.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]],Y:[[new i.Line(m,r.clone()),[0,-1e3,0],[0,0,Math.PI/2],[1e6,1,1],"helper"]],Z:[[new i.Line(m,r.clone()),[0,0,-1e3],[0,-Math.PI/2,0],[1e6,1,1],"helper"]]},C={XYZE:[[new i.Mesh(y(.5,1),p),null,[0,Math.PI/2,0]]],X:[[new i.Mesh(y(.5,.5),o)]],Y:[[new i.Mesh(y(.5,.5),a),null,[0,0,-Math.PI/2]]],Z:[[new i.Mesh(y(.5,.5),s),null,[0,Math.PI/2,0]]],E:[[new i.Mesh(y(.75,1),d),null,[0,Math.PI/2,0]]]},A={AXIS:[[new i.Line(m,r.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]]},I={XYZE:[[new i.Mesh(new i.SphereGeometry(.25,10,8),n)]],X:[[new i.Mesh(new i.TorusGeometry(.5,.1,4,24),n),[0,0,0],[0,-Math.PI/2,-Math.PI/2]]],Y:[[new i.Mesh(new i.TorusGeometry(.5,.1,4,24),n),[0,0,0],[Math.PI/2,0,0]]],Z:[[new i.Mesh(new i.TorusGeometry(.5,.1,4,24),n),[0,0,0],[0,0,-Math.PI/2]]],E:[[new i.Mesh(new i.TorusGeometry(.75,.1,2,24),n)]]},S={X:[[new i.Mesh(g,o),[.5,0,0],[0,0,-Math.PI/2]],[new i.Mesh(v,o),[0,0,0],[0,0,-Math.PI/2]],[new i.Mesh(g,o),[-.5,0,0],[0,0,Math.PI/2]]],Y:[[new i.Mesh(g,a),[0,.5,0]],[new i.Mesh(v,a)],[new i.Mesh(g,a),[0,-.5,0],[0,0,Math.PI]]],Z:[[new i.Mesh(g,s),[0,0,.5],[Math.PI/2,0,0]],[new i.Mesh(v,s),[0,0,0],[Math.PI/2,0,0]],[new i.Mesh(g,s),[0,0,-.5],[-Math.PI/2,0,0]]],XY:[[new i.Mesh(new i.BoxGeometry(.15,.15,.01),u),[.15,.15,0]]],YZ:[[new i.Mesh(new i.BoxGeometry(.15,.15,.01),l),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new i.Mesh(new i.BoxGeometry(.15,.15,.01),c),[.15,0,.15],[-Math.PI/2,0,0]]],XYZ:[[new i.Mesh(new i.BoxGeometry(.1,.1,.1),h.clone())]]},M={X:[[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[.3,0,0],[0,0,-Math.PI/2]],[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[-.3,0,0],[0,0,Math.PI/2]]],Y:[[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[0,.3,0]],[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[0,-.3,0],[0,0,Math.PI]]],Z:[[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[0,0,.3],[Math.PI/2,0,0]],[new i.Mesh(new i.CylinderGeometry(.2,0,.6,4),n),[0,0,-.3],[-Math.PI/2,0,0]]],XY:[[new i.Mesh(new i.BoxGeometry(.2,.2,.01),n),[.15,.15,0]]],YZ:[[new i.Mesh(new i.BoxGeometry(.2,.2,.01),n),[0,.15,.15],[0,Math.PI/2,0]]],XZ:[[new i.Mesh(new i.BoxGeometry(.2,.2,.01),n),[.15,0,.15],[-Math.PI/2,0,0]]],XYZ:[[new i.Mesh(new i.BoxGeometry(.2,.2,.2),n),[0,0,0]]]},k={X:[[new i.Line(m,r.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]],Y:[[new i.Line(m,r.clone()),[0,-1e3,0],[0,0,Math.PI/2],[1e6,1,1],"helper"]],Z:[[new i.Line(m,r.clone()),[0,0,-1e3],[0,-Math.PI/2,0],[1e6,1,1],"helper"]]};function E(t){const e=new i.Object3D;for(const n in t)for(let i=t[n].length;i--;){const r=t[n][i][0].clone(),o=t[n][i][1],a=t[n][i][2],s=t[n][i][3],l=t[n][i][4];r.name=n,r.tag=l,o&&r.position.set(o[0],o[1],o[2]),a&&r.rotation.set(a[0],a[1],a[2]),s&&r.scale.set(s[0],s[1],s[2]),r.updateMatrix();const c=r.geometry.clone();c.applyMatrix4(r.matrix),r.geometry=c,r.renderOrder=1/0,r.position.set(0,0,0),r.rotation.set(0,0,0),r.scale.set(1,1,1),e.add(r)}return e}this.gizmo={},this.picker={},this.helper={},this.add(this.gizmo.translate=E(x)),this.add(this.gizmo.rotate=E(C)),this.add(this.gizmo.scale=E(S)),this.add(this.picker.translate=E(w)),this.add(this.picker.rotate=E(I)),this.add(this.picker.scale=E(M)),this.add(this.helper.translate=E(_)),this.add(this.helper.rotate=E(A)),this.add(this.helper.scale=E(k)),this.picker.translate.visible=!1,this.picker.rotate.visible=!1,this.picker.scale.visible=!1}updateMatrixWorld(t){const e="local"===("scale"===this.mode?"local":this.space)?this.worldQuaternion:I;this.gizmo.translate.visible="translate"===this.mode,this.gizmo.rotate.visible="rotate"===this.mode,this.gizmo.scale.visible="scale"===this.mode,this.helper.translate.visible="translate"===this.mode,this.helper.rotate.visible="rotate"===this.mode,this.helper.scale.visible="scale"===this.mode;let n=[];n=n.concat(this.picker[this.mode].children),n=n.concat(this.gizmo[this.mode].children),n=n.concat(this.helper[this.mode].children);for(let i=0;i<n.length;i++){const t=n[i];let r;t.visible=!0,t.rotation.set(0,0,0),t.position.copy(this.worldPosition),(r=this.camera.isOrthographicCamera?(this.camera.top-this.camera.bottom)/this.camera.zoom:this.worldPosition.distanceTo(this.cameraPosition)*Math.min(1.9*Math.tan(Math.PI*this.camera.fov/360)/this.camera.zoom,7),t.scale.set(1,1,1).multiplyScalar(r*this.size/4),"helper"!==t.tag)?(t.quaternion.copy(e),"translate"===this.mode||"scale"===this.mode?("X"===t.name&&Math.abs(w.copy(k).applyQuaternion(e).dot(this.eye))>.99&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"Y"===t.name&&Math.abs(w.copy(E).applyQuaternion(e).dot(this.eye))>.99&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"Z"===t.name&&Math.abs(w.copy(T).applyQuaternion(e).dot(this.eye))>.99&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"XY"===t.name&&Math.abs(w.copy(T).applyQuaternion(e).dot(this.eye))<.2&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"YZ"===t.name&&Math.abs(w.copy(k).applyQuaternion(e).dot(this.eye))<.2&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1),"XZ"===t.name&&Math.abs(w.copy(E).applyQuaternion(e).dot(this.eye))<.2&&(t.scale.set(1e-10,1e-10,1e-10),t.visible=!1)):"rotate"===this.mode&&(A.copy(e),w.copy(this.eye).applyQuaternion(s.copy(e).invert()),-1!==t.name.search("E")&&t.quaternion.setFromRotationMatrix(C.lookAt(this.eye,_,E)),"X"===t.name&&(s.setFromAxisAngle(k,Math.atan2(-w.y,w.z)),s.multiplyQuaternions(A,s),t.quaternion.copy(s)),"Y"===t.name&&(s.setFromAxisAngle(E,Math.atan2(w.x,w.z)),s.multiplyQuaternions(A,s),t.quaternion.copy(s)),"Z"===t.name&&(s.setFromAxisAngle(T,Math.atan2(w.y,w.x)),s.multiplyQuaternions(A,s),t.quaternion.copy(s))),t.visible=t.visible&&(-1===t.name.indexOf("X")||this.showX),t.visible=t.visible&&(-1===t.name.indexOf("Y")||this.showY),t.visible=t.visible&&(-1===t.name.indexOf("Z")||this.showZ),t.visible=t.visible&&(-1===t.name.indexOf("E")||this.showX&&this.showY&&this.showZ),t.material._color=t.material._color||t.material.color.clone(),t.material._opacity=t.material._opacity||t.material.opacity,t.material.color.copy(t.material._color),t.material.opacity=t.material._opacity,this.enabled&&this.axis&&(t.name===this.axis||this.axis.split("").some((function(e){return t.name===e})))&&(t.material.color.setHex(16776960),t.material.opacity=1)):(t.visible=!1,"AXIS"===t.name?(t.position.copy(this.worldPositionStart),t.visible=!!this.axis,"X"===this.axis&&(s.setFromEuler(x.set(0,0,0)),t.quaternion.copy(e).multiply(s),Math.abs(w.copy(k).applyQuaternion(e).dot(this.eye))>.9&&(t.visible=!1)),"Y"===this.axis&&(s.setFromEuler(x.set(0,0,Math.PI/2)),t.quaternion.copy(e).multiply(s),Math.abs(w.copy(E).applyQuaternion(e).dot(this.eye))>.9&&(t.visible=!1)),"Z"===this.axis&&(s.setFromEuler(x.set(0,Math.PI/2,0)),t.quaternion.copy(e).multiply(s),Math.abs(w.copy(T).applyQuaternion(e).dot(this.eye))>.9&&(t.visible=!1)),"XYZE"===this.axis&&(s.setFromEuler(x.set(0,Math.PI/2,0)),w.copy(this.rotationAxis),t.quaternion.setFromRotationMatrix(C.lookAt(_,w,E)),t.quaternion.multiply(s),t.visible=this.dragging),"E"===this.axis&&(t.visible=!1)):"START"===t.name?(t.position.copy(this.worldPositionStart),t.visible=this.dragging):"END"===t.name?(t.position.copy(this.worldPosition),t.visible=this.dragging):"DELTA"===t.name?(t.position.copy(this.worldPositionStart),t.quaternion.copy(this.worldQuaternionStart),o.set(1e-10,1e-10,1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1),o.applyQuaternion(this.worldQuaternionStart.clone().invert()),t.scale.copy(o),t.visible=this.dragging):(t.quaternion.copy(e),this.dragging?t.position.copy(this.worldPositionStart):t.position.copy(this.worldPosition),this.axis&&(t.visible=-1!==this.axis.search(t.name))))}super.updateMatrixWorld(t)}}L.prototype.isTransformControlsGizmo=!0;class D extends i.Mesh{constructor(){super(new i.PlaneGeometry(1e5,1e5,2,2),new i.MeshBasicMaterial({visible:!1,wireframe:!0,side:i.DoubleSide,transparent:!0,opacity:.1,toneMapped:!1})),this.type="TransformControlsPlane"}updateMatrixWorld(t){let e=this.space;switch(this.position.copy(this.worldPosition),"scale"===this.mode&&(e="local"),O.copy(k).applyQuaternion("local"===e?this.worldQuaternion:I),P.copy(E).applyQuaternion("local"===e?this.worldQuaternion:I),j.copy(T).applyQuaternion("local"===e?this.worldQuaternion:I),w.copy(P),this.mode){case"translate":case"scale":switch(this.axis){case"X":w.copy(this.eye).cross(O),S.copy(O).cross(w);break;case"Y":w.copy(this.eye).cross(P),S.copy(P).cross(w);break;case"Z":w.copy(this.eye).cross(j),S.copy(j).cross(w);break;case"XY":S.copy(j);break;case"YZ":S.copy(O);break;case"XZ":w.copy(j),S.copy(P);break;case"XYZ":case"E":S.set(0,0,0);break}break;case"rotate":default:S.set(0,0,0)}0===S.length()?this.quaternion.copy(this.cameraQuaternion):(M.lookAt(o.set(0,0,0),S,w),this.quaternion.setFromRotationMatrix(M)),super.updateMatrixWorld(t)}}D.prototype.isTransformControlsPlane=!0},3053:function(t,e,n){"use strict";n.r(e),n.d(e,{OBJExporter:function(){return r}});var i=n(5644);class r{parse(t){let e="",n=0,r=0,o=0;const a=new i.Vector3,s=new i.Color,l=new i.Vector3,c=new i.Vector2,u=[];function h(t){let s=0,h=0,d=0;const p=t.geometry,f=new i.Matrix3;if(!0!==p.isBufferGeometry)throw new Error("THREE.OBJExporter: Geometry is not of type THREE.BufferGeometry.");const g=p.getAttribute("position"),m=p.getAttribute("normal"),v=p.getAttribute("uv"),y=p.getIndex();if(e+="o "+t.name+"\n",t.material&&t.material.name&&(e+="usemtl "+t.material.name+"\n"),void 0!==g)for(let n=0,i=g.count;n<i;n++,s++)a.x=g.getX(n),a.y=g.getY(n),a.z=g.getZ(n),a.applyMatrix4(t.matrixWorld),e+="v "+a.x+" "+a.y+" "+a.z+"\n";if(void 0!==v)for(let n=0,i=v.count;n<i;n++,d++)c.x=v.getX(n),c.y=v.getY(n),e+="vt "+c.x+" "+c.y+"\n";if(void 0!==m){f.getNormalMatrix(t.matrixWorld);for(let t=0,n=m.count;t<n;t++,h++)l.x=m.getX(t),l.y=m.getY(t),l.z=m.getZ(t),l.applyMatrix3(f).normalize(),e+="vn "+l.x+" "+l.y+" "+l.z+"\n"}if(null!==y)for(let i=0,a=y.count;i<a;i+=3){for(let t=0;t<3;t++){const e=y.getX(i+t)+1;u[t]=n+e+(m||v?"/"+(v?r+e:"")+(m?"/"+(o+e):""):"")}e+="f "+u.join(" ")+"\n"}else for(let i=0,a=g.count;i<a;i+=3){for(let t=0;t<3;t++){const e=i+t+1;u[t]=n+e+(m||v?"/"+(v?r+e:"")+(m?"/"+(o+e):""):"")}e+="f "+u.join(" ")+"\n"}n+=s,r+=d,o+=h}function d(t){let i=0;const r=t.geometry,o=t.type;if(!0!==r.isBufferGeometry)throw new Error("THREE.OBJExporter: Geometry is not of type THREE.BufferGeometry.");const s=r.getAttribute("position");if(e+="o "+t.name+"\n",void 0!==s)for(let n=0,l=s.count;n<l;n++,i++)a.x=s.getX(n),a.y=s.getY(n),a.z=s.getZ(n),a.applyMatrix4(t.matrixWorld),e+="v "+a.x+" "+a.y+" "+a.z+"\n";if("Line"===o){e+="l ";for(let t=1,i=s.count;t<=i;t++)e+=n+t+" ";e+="\n"}if("LineSegments"===o)for(let a=1,l=a+1,c=s.count;a<c;a+=2,l=a+1)e+="l "+(n+a)+" "+(n+l)+"\n";n+=i}function p(t){let i=0;const r=t.geometry;if(!0!==r.isBufferGeometry)throw new Error("THREE.OBJExporter: Geometry is not of type THREE.BufferGeometry.");const o=r.getAttribute("position"),l=r.getAttribute("color");if(e+="o "+t.name+"\n",void 0!==o)for(let n=0,c=o.count;n<c;n++,i++)a.fromBufferAttribute(o,n),a.applyMatrix4(t.matrixWorld),e+="v "+a.x+" "+a.y+" "+a.z,void 0!==l&&(s.fromBufferAttribute(l,n),e+=" "+s.r+" "+s.g+" "+s.b),e+="\n";e+="p ";for(let a=1,s=o.count;a<=s;a++)e+=n+a+" ";e+="\n",n+=i}return t.traverse((function(t){!0===t.isMesh&&h(t),!0===t.isLine&&d(t),!0===t.isPoints&&p(t)})),e}}},6543:function(t,e,n){"use strict";n.r(e),n.d(e,{SelectionBox:function(){return _}});var i=n(5644);const r=new i.Frustum,o=new i.Vector3,a=new i.Vector3,s=new i.Vector3,l=new i.Vector3,c=new i.Vector3,u=new i.Vector3,h=new i.Vector3,d=new i.Vector3,p=new i.Vector3,f=new i.Vector3,g=new i.Vector3,m=new i.Vector3,v=new i.Vector3,y=new i.Vector3,b=new i.Matrix4,x=new i.Quaternion,w=new i.Vector3;class _{constructor(t,e,n=Number.MAX_VALUE){this.camera=t,this.scene=e,this.startPoint=new i.Vector3,this.endPoint=new i.Vector3,this.collection=[],this.instances={},this.deep=n}select(t,e){return this.startPoint=t||this.startPoint,this.endPoint=e||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(r,this.scene),this.collection}updateFrustum(t,e){if(t=t||this.startPoint,e=e||this.endPoint,t.x===e.x&&(e.x+=Number.EPSILON),t.y===e.y&&(e.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){a.copy(t),a.x=Math.min(t.x,e.x),a.y=Math.max(t.y,e.y),e.x=Math.max(t.x,e.x),e.y=Math.min(t.y,e.y),s.setFromMatrixPosition(this.camera.matrixWorld),l.copy(a),c.set(e.x,a.y,0),u.copy(e),h.set(a.x,e.y,0),l.unproject(this.camera),c.unproject(this.camera),u.unproject(this.camera),h.unproject(this.camera),m.copy(l).sub(s),v.copy(c).sub(s),y.copy(u).sub(s),m.normalize(),v.normalize(),y.normalize(),m.multiplyScalar(this.deep),v.multiplyScalar(this.deep),y.multiplyScalar(this.deep),m.add(s),v.add(s),y.add(s);const n=r.planes;n[0].setFromCoplanarPoints(s,l,c),n[1].setFromCoplanarPoints(s,c,u),n[2].setFromCoplanarPoints(u,h,s),n[3].setFromCoplanarPoints(h,l,s),n[4].setFromCoplanarPoints(c,u,h),n[5].setFromCoplanarPoints(y,v,m),n[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const n=Math.min(t.x,e.x),i=Math.max(t.y,e.y),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y);l.set(n,i,-1),c.set(o,i,-1),u.set(o,a,-1),h.set(n,a,-1),d.set(n,i,1),p.set(o,i,1),f.set(o,a,1),g.set(n,a,1),l.unproject(this.camera),c.unproject(this.camera),u.unproject(this.camera),h.unproject(this.camera),d.unproject(this.camera),p.unproject(this.camera),f.unproject(this.camera),g.unproject(this.camera);const s=r.planes;s[0].setFromCoplanarPoints(l,d,p),s[1].setFromCoplanarPoints(c,p,f),s[2].setFromCoplanarPoints(f,g,h),s[3].setFromCoplanarPoints(g,d,l),s[4].setFromCoplanarPoints(c,u,h),s[5].setFromCoplanarPoints(f,p,d),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(t,e){if(e.isMesh||e.isLine||e.isPoints)if(e.isInstancedMesh){this.instances[e.uuid]=[];for(let n=0;n<e.count;n++)e.getMatrixAt(n,b),b.decompose(o,x,w),o.applyMatrix4(e.matrixWorld),t.containsPoint(o)&&this.instances[e.uuid].push(n)}else null===e.geometry.boundingSphere&&e.geometry.computeBoundingSphere(),o.copy(e.geometry.boundingSphere.center),o.applyMatrix4(e.matrixWorld),t.containsPoint(o)&&this.collection.push(e);if(e.children.length>0)for(let n=0;n<e.children.length;n++)this.searchChildInFrustum(t,e.children[n])}}},5079:function(t,e,n){"use strict";n.r(e);var i=function(){var t=0,e=document.createElement("div");function n(t){return e.appendChild(t.dom),t}function r(n){for(var i=0;i<e.children.length;i++)e.children[i].style.display=i===n?"block":"none";t=n}e.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",(function(n){n.preventDefault(),r(++t%e.children.length)}),!1);var o=(performance||Date).now(),a=o,s=0,l=n(new i.Panel("FPS","#0ff","#002")),c=n(new i.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var u=n(new i.Panel("MB","#f08","#201"));return r(0),{REVISION:16,dom:e,addPanel:n,showPanel:r,begin:function(){o=(performance||Date).now()},end:function(){s++;var t=(performance||Date).now();if(c.update(t-o,200),t>=a+1e3&&(l.update(1e3*s/(t-a),100),a=t,s=0,u)){var e=performance.memory;u.update(e.usedJSHeapSize/1048576,e.jsHeapSizeLimit/1048576)}return t},update:function(){o=this.end()},domElement:e,setMode:r}};i.Panel=function(t,e,n){var i=1/0,r=0,o=Math.round,a=o(window.devicePixelRatio||1),s=80*a,l=48*a,c=3*a,u=2*a,h=3*a,d=15*a,p=74*a,f=30*a,g=document.createElement("canvas");g.width=s,g.height=l,g.style.cssText="width:80px;height:48px";var m=g.getContext("2d");return m.font="bold "+9*a+"px Helvetica,Arial,sans-serif",m.textBaseline="top",m.fillStyle=n,m.fillRect(0,0,s,l),m.fillStyle=e,m.fillText(t,c,u),m.fillRect(h,d,p,f),m.fillStyle=n,m.globalAlpha=.9,m.fillRect(h,d,p,f),{dom:g,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),m.fillStyle=n,m.globalAlpha=1,m.fillRect(0,0,s,d),m.fillStyle=e,m.fillText(o(l)+" "+t+" ("+o(i)+"-"+o(r)+")",c,u),m.drawImage(g,h+a,d,p-a,f,h,d,p-a,f),m.fillRect(h+p-a,d,a,f),m.fillStyle=n,m.globalAlpha=.9,m.fillRect(h+p-a,d,a,o((1-l/v)*f))}}},e.default=i},2854:function(t,e,n){"use strict";n.r(e),n.d(e,{DRACOLoader:function(){return o}});var i=n(5644);const r=new WeakMap;class o extends i.Loader{constructor(t){super(t),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(t){return this.decoderPath=t,this}setDecoderConfig(t){return this.decoderConfig=t,this}setWorkerLimit(t){return this.workerLimit=t,this}load(t,e,n,r){const o=new i.FileLoader(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,t=>{const n={attributeIDs:this.defaultAttributeIDs,attributeTypes:this.defaultAttributeTypes,useUniqueIDs:!1};this.decodeGeometry(t,n).then(e).catch(r)},n,r)}decodeDracoFile(t,e,n,i){const r={attributeIDs:n||this.defaultAttributeIDs,attributeTypes:i||this.defaultAttributeTypes,useUniqueIDs:!!n};this.decodeGeometry(t,r).then(e)}decodeGeometry(t,e){for(const r in e.attributeTypes){const t=e.attributeTypes[r];void 0!==t.BYTES_PER_ELEMENT&&(e.attributeTypes[r]=t.name)}const n=JSON.stringify(e);if(r.has(t)){const e=r.get(t);if(e.key===n)return e.promise;if(0===t.byteLength)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let i;const o=this.workerNextTaskID++,a=t.byteLength,s=this._getWorker(o,a).then(n=>(i=n,new Promise((n,r)=>{i._callbacks[o]={resolve:n,reject:r},i.postMessage({type:"decode",id:o,taskConfig:e,buffer:t},[t])}))).then(t=>this._createGeometry(t.geometry));return s.catch(()=>!0).then(()=>{i&&o&&this._releaseTask(i,o)}),r.set(t,{key:n,promise:s}),s}_createGeometry(t){const e=new i.BufferGeometry;t.index&&e.setIndex(new i.BufferAttribute(t.index.array,1));for(let n=0;n<t.attributes.length;n++){const r=t.attributes[n],o=r.name,a=r.array,s=r.itemSize;e.setAttribute(o,new i.BufferAttribute(a,s))}return e}_loadLibrary(t,e){const n=new i.FileLoader(this.manager);return n.setPath(this.decoderPath),n.setResponseType(e),n.setWithCredentials(this.withCredentials),new Promise((e,i)=>{n.load(t,e,void 0,i)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const t="object"!=typeof WebAssembly||"js"===this.decoderConfig.type,e=[];return t?e.push(this._loadLibrary("draco_decoder.js","text")):(e.push(this._loadLibrary("draco_wasm_wrapper.js","text")),e.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(e).then(e=>{const n=e[0];t||(this.decoderConfig.wasmBinary=e[1]);const i=a.toString(),r=["/* draco decoder */",n,"","/* worker */",i.substring(i.indexOf("{")+1,i.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([r]))}),this.decoderPending}_getWorker(t,e){return this._initDecoder().then(()=>{if(this.workerPool.length<this.workerLimit){const t=new Worker(this.workerSourceURL);t._callbacks={},t._taskCosts={},t._taskLoad=0,t.postMessage({type:"init",decoderConfig:this.decoderConfig}),t.onmessage=function(e){const n=e.data;switch(n.type){case"decode":t._callbacks[n.id].resolve(n);break;case"error":t._callbacks[n.id].reject(n);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+n.type+'"')}},this.workerPool.push(t)}else this.workerPool.sort((function(t,e){return t._taskLoad>e._taskLoad?-1:1}));const n=this.workerPool[this.workerPool.length-1];return n._taskCosts[t]=e,n._taskLoad+=e,n})}_releaseTask(t,e){t._taskLoad-=t._taskCosts[e],delete t._callbacks[e],delete t._taskCosts[e]}debug(){console.log("Task load: ",this.workerPool.map(t=>t._taskLoad))}dispose(){for(let t=0;t<this.workerPool.length;++t)this.workerPool[t].terminate();return this.workerPool.length=0,this}}function a(){let t,e;function n(t,e,n,o){const a=o.attributeIDs,s=o.attributeTypes;let l,c;const u=e.GetEncodedGeometryType(n);if(u===t.TRIANGULAR_MESH)l=new t.Mesh,c=e.DecodeBufferToMesh(n,l);else{if(u!==t.POINT_CLOUD)throw new Error("THREE.DRACOLoader: Unexpected geometry type.");l=new t.PointCloud,c=e.DecodeBufferToPointCloud(n,l)}if(!c.ok()||0===l.ptr)throw new Error("THREE.DRACOLoader: Decoding failed: "+c.error_msg());const h={index:null,attributes:[]};for(const i in a){const n=self[s[i]];let c,u;if(o.useUniqueIDs)u=a[i],c=e.GetAttributeByUniqueId(l,u);else{if(u=e.GetAttributeId(l,t[a[i]]),-1===u)continue;c=e.GetAttribute(l,u)}h.attributes.push(r(t,e,l,i,n,c))}return u===t.TRIANGULAR_MESH&&(h.index=i(t,e,l)),t.destroy(l),h}function i(t,e,n){const i=3*n.num_faces(),r=4*i,o=t._malloc(r);e.GetTrianglesUInt32Array(n,r,o);const a=new Uint32Array(t.HEAPF32.buffer,o,i).slice();return t._free(o),{array:a,itemSize:1}}function r(t,e,n,i,r,a){const s=a.num_components(),l=n.num_points()*s,c=l*r.BYTES_PER_ELEMENT,u=o(t,r),h=t._malloc(c);e.GetAttributeDataArrayForAllPoints(n,a,u,c,h);const d=new r(t.HEAPF32.buffer,h,l).slice();return t._free(h),{name:i,array:d,itemSize:s}}function o(t,e){switch(e){case Float32Array:return t.DT_FLOAT32;case Int8Array:return t.DT_INT8;case Int16Array:return t.DT_INT16;case Int32Array:return t.DT_INT32;case Uint8Array:return t.DT_UINT8;case Uint16Array:return t.DT_UINT16;case Uint32Array:return t.DT_UINT32}}onmessage=function(i){const r=i.data;switch(r.type){case"init":t=r.decoderConfig,e=new Promise((function(e){t.onModuleLoaded=function(t){e({draco:t})},DracoDecoderModule(t)}));break;case"decode":const i=r.buffer,o=r.taskConfig;e.then(t=>{const e=t.draco,a=new e.Decoder,s=new e.DecoderBuffer;s.Init(new Int8Array(i),i.byteLength);try{const t=n(e,a,s,o),i=t.attributes.map(t=>t.array.buffer);t.index&&i.push(t.index.array.buffer),self.postMessage({type:"decode",id:r.id,geometry:t},i)}catch(l){console.error(l),self.postMessage({type:"error",id:r.id,error:l.message})}finally{e.destroy(s),e.destroy(a)}});break}}}},1217:function(t,e,n){"use strict";n.r(e),n.d(e,{GLTFLoader:function(){return r}});var i=n(5644);class r extends i.Loader{constructor(t){super(t),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register((function(t){return new c(t)})),this.register((function(t){return new g(t)})),this.register((function(t){return new m(t)})),this.register((function(t){return new u(t)})),this.register((function(t){return new h(t)})),this.register((function(t){return new d(t)})),this.register((function(t){return new p(t)})),this.register((function(t){return new f(t)})),this.register((function(t){return new s(t)})),this.register((function(t){return new v(t)}))}load(t,e,n,r){const o=this;let a;a=""!==this.resourcePath?this.resourcePath:""!==this.path?this.path:i.LoaderUtils.extractUrlBase(t),this.manager.itemStart(t);const s=function(e){r?r(e):console.error(e),o.manager.itemError(t),o.manager.itemEnd(t)},l=new i.FileLoader(this.manager);l.setPath(this.path),l.setResponseType("arraybuffer"),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(t,(function(n){try{o.parse(n,a,(function(n){e(n),o.manager.itemEnd(t)}),s)}catch(i){s(i)}}),n,s)}setDRACOLoader(t){return this.dracoLoader=t,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(t){return this.ktx2Loader=t,this}setMeshoptDecoder(t){return this.meshoptDecoder=t,this}register(t){return-1===this.pluginCallbacks.indexOf(t)&&this.pluginCallbacks.push(t),this}unregister(t){return-1!==this.pluginCallbacks.indexOf(t)&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(t),1),this}parse(t,e,n,r){let o;const s={},c={};if("string"==typeof t)o=t;else if(i.LoaderUtils.decodeText(new Uint8Array(t,0,4))===y){try{s[a.KHR_BINARY_GLTF]=new w(t)}catch(d){return void(r&&r(d))}o=s[a.KHR_BINARY_GLTF].content}else o=i.LoaderUtils.decodeText(new Uint8Array(t));const u=JSON.parse(o);if(void 0===u.asset||u.asset.version[0]<2)return void(r&&r(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported.")));const h=new Y(u,{path:e||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});h.fileLoader.setRequestHeader(this.requestHeader);for(let i=0;i<this.pluginCallbacks.length;i++){const t=this.pluginCallbacks[i](h);c[t.name]=t,s[t.name]=!0}if(u.extensionsUsed)for(let i=0;i<u.extensionsUsed.length;++i){const t=u.extensionsUsed[i],e=u.extensionsRequired||[];switch(t){case a.KHR_MATERIALS_UNLIT:s[t]=new l;break;case a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:s[t]=new I;break;case a.KHR_DRACO_MESH_COMPRESSION:s[t]=new _(u,this.dracoLoader);break;case a.KHR_TEXTURE_TRANSFORM:s[t]=new C;break;case a.KHR_MESH_QUANTIZATION:s[t]=new S;break;default:e.indexOf(t)>=0&&void 0===c[t]&&console.warn('THREE.GLTFLoader: Unknown extension "'+t+'".')}}h.setExtensions(s),h.setPlugins(c),h.parse(n,r)}parseAsync(t,e){const n=this;return new Promise((function(i,r){n.parse(t,e,i,r)}))}}function o(){let t={};return{get:function(e){return t[e]},add:function(e,n){t[e]=n},remove:function(e){delete t[e]},removeAll:function(){t={}}}}const a={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:"KHR_materials_pbrSpecularGlossiness",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression"};class s{constructor(t){this.parser=t,this.name=a.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const t=this.parser,e=this.parser.json.nodes||[];for(let n=0,i=e.length;n<i;n++){const i=e[n];i.extensions&&i.extensions[this.name]&&void 0!==i.extensions[this.name].light&&t._addNodeRef(this.cache,i.extensions[this.name].light)}}_loadLight(t){const e=this.parser,n="light:"+t;let r=e.cache.get(n);if(r)return r;const o=e.json,a=((o.extensions&&o.extensions[this.name]||{}).lights||[])[t];let s;const l=new i.Color(16777215);void 0!==a.color&&l.fromArray(a.color);const c=void 0!==a.range?a.range:0;switch(a.type){case"directional":s=new i.DirectionalLight(l),s.target.position.set(0,0,-1),s.add(s.target);break;case"point":s=new i.PointLight(l),s.distance=c;break;case"spot":s=new i.SpotLight(l),s.distance=c,a.spot=a.spot||{},a.spot.innerConeAngle=void 0!==a.spot.innerConeAngle?a.spot.innerConeAngle:0,a.spot.outerConeAngle=void 0!==a.spot.outerConeAngle?a.spot.outerConeAngle:Math.PI/4,s.angle=a.spot.outerConeAngle,s.penumbra=1-a.spot.innerConeAngle/a.spot.outerConeAngle,s.target.position.set(0,0,-1),s.add(s.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+a.type)}return s.position.set(0,0,0),s.decay=2,void 0!==a.intensity&&(s.intensity=a.intensity),s.name=e.createUniqueName(a.name||"light_"+t),r=Promise.resolve(s),e.cache.add(n,r),r}createNodeAttachment(t){const e=this,n=this.parser,i=n.json.nodes[t],r=(i.extensions&&i.extensions[this.name]||{}).light;return void 0===r?null:this._loadLight(r).then((function(t){return n._getNodeRef(e.cache,r,t)}))}}class l{constructor(){this.name=a.KHR_MATERIALS_UNLIT}getMaterialType(){return i.MeshBasicMaterial}extendParams(t,e,n){const r=[];t.color=new i.Color(1,1,1),t.opacity=1;const o=e.pbrMetallicRoughness;if(o){if(Array.isArray(o.baseColorFactor)){const e=o.baseColorFactor;t.color.fromArray(e),t.opacity=e[3]}void 0!==o.baseColorTexture&&r.push(n.assignTexture(t,"map",o.baseColorTexture))}return Promise.all(r)}}class c{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_CLEARCOAT}getMaterialType(t){const e=this.parser.json.materials[t];return e.extensions&&e.extensions[this.name]?i.MeshPhysicalMaterial:null}extendMaterialParams(t,e){const n=this.parser,r=n.json.materials[t];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const o=[],a=r.extensions[this.name];if(void 0!==a.clearcoatFactor&&(e.clearcoat=a.clearcoatFactor),void 0!==a.clearcoatTexture&&o.push(n.assignTexture(e,"clearcoatMap",a.clearcoatTexture)),void 0!==a.clearcoatRoughnessFactor&&(e.clearcoatRoughness=a.clearcoatRoughnessFactor),void 0!==a.clearcoatRoughnessTexture&&o.push(n.assignTexture(e,"clearcoatRoughnessMap",a.clearcoatRoughnessTexture)),void 0!==a.clearcoatNormalTexture&&(o.push(n.assignTexture(e,"clearcoatNormalMap",a.clearcoatNormalTexture)),void 0!==a.clearcoatNormalTexture.scale)){const t=a.clearcoatNormalTexture.scale;e.clearcoatNormalScale=new i.Vector2(t,t)}return Promise.all(o)}}class u{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_SHEEN}getMaterialType(t){const e=this.parser.json.materials[t];return e.extensions&&e.extensions[this.name]?i.MeshPhysicalMaterial:null}extendMaterialParams(t,e){const n=this.parser,r=n.json.materials[t];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const o=[];e.sheenColor=new i.Color(0,0,0),e.sheenRoughness=0,e.sheen=1;const a=r.extensions[this.name];return void 0!==a.sheenColorFactor&&e.sheenColor.fromArray(a.sheenColorFactor),void 0!==a.sheenRoughnessFactor&&(e.sheenRoughness=a.sheenRoughnessFactor),void 0!==a.sheenColorTexture&&o.push(n.assignTexture(e,"sheenColorMap",a.sheenColorTexture)),void 0!==a.sheenRoughnessTexture&&o.push(n.assignTexture(e,"sheenRoughnessMap",a.sheenRoughnessTexture)),Promise.all(o)}}class h{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_TRANSMISSION}getMaterialType(t){const e=this.parser.json.materials[t];return e.extensions&&e.extensions[this.name]?i.MeshPhysicalMaterial:null}extendMaterialParams(t,e){const n=this.parser,i=n.json.materials[t];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const r=[],o=i.extensions[this.name];return void 0!==o.transmissionFactor&&(e.transmission=o.transmissionFactor),void 0!==o.transmissionTexture&&r.push(n.assignTexture(e,"transmissionMap",o.transmissionTexture)),Promise.all(r)}}class d{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_VOLUME}getMaterialType(t){const e=this.parser.json.materials[t];return e.extensions&&e.extensions[this.name]?i.MeshPhysicalMaterial:null}extendMaterialParams(t,e){const n=this.parser,r=n.json.materials[t];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const o=[],a=r.extensions[this.name];e.thickness=void 0!==a.thicknessFactor?a.thicknessFactor:0,void 0!==a.thicknessTexture&&o.push(n.assignTexture(e,"thicknessMap",a.thicknessTexture)),e.attenuationDistance=a.attenuationDistance||0;const s=a.attenuationColor||[1,1,1];return e.attenuationColor=new i.Color(s[0],s[1],s[2]),Promise.all(o)}}class p{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_IOR}getMaterialType(t){const e=this.parser.json.materials[t];return e.extensions&&e.extensions[this.name]?i.MeshPhysicalMaterial:null}extendMaterialParams(t,e){const n=this.parser.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const i=n.extensions[this.name];return e.ior=void 0!==i.ior?i.ior:1.5,Promise.resolve()}}class f{constructor(t){this.parser=t,this.name=a.KHR_MATERIALS_SPECULAR}getMaterialType(t){const e=this.parser.json.materials[t];return e.extensions&&e.extensions[this.name]?i.MeshPhysicalMaterial:null}extendMaterialParams(t,e){const n=this.parser,r=n.json.materials[t];if(!r.extensions||!r.extensions[this.name])return Promise.resolve();const o=[],a=r.extensions[this.name];e.specularIntensity=void 0!==a.specularFactor?a.specularFactor:1,void 0!==a.specularTexture&&o.push(n.assignTexture(e,"specularIntensityMap",a.specularTexture));const s=a.specularColorFactor||[1,1,1];return e.specularColor=new i.Color(s[0],s[1],s[2]),void 0!==a.specularColorTexture&&o.push(n.assignTexture(e,"specularColorMap",a.specularColorTexture).then((function(t){t.encoding=i.sRGBEncoding}))),Promise.all(o)}}class g{constructor(t){this.parser=t,this.name=a.KHR_TEXTURE_BASISU}loadTexture(t){const e=this.parser,n=e.json,i=n.textures[t];if(!i.extensions||!i.extensions[this.name])return null;const r=i.extensions[this.name],o=n.images[r.source],a=e.options.ktx2Loader;if(!a){if(n.extensionsRequired&&n.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return e.loadTextureImage(t,o,a)}}class m{constructor(t){this.parser=t,this.name=a.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(t){const e=this.name,n=this.parser,i=n.json,r=i.textures[t];if(!r.extensions||!r.extensions[e])return null;const o=r.extensions[e],a=i.images[o.source];let s=n.textureLoader;if(a.uri){const t=n.options.manager.getHandler(a.uri);null!==t&&(s=t)}return this.detectSupport().then((function(r){if(r)return n.loadTextureImage(t,a,s);if(i.extensionsRequired&&i.extensionsRequired.indexOf(e)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return n.loadTexture(t)}))}detectSupport(){return this.isSupported||(this.isSupported=new Promise((function(t){const e=new Image;e.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",e.onload=e.onerror=function(){t(1===e.height)}}))),this.isSupported}}class v{constructor(t){this.name=a.EXT_MESHOPT_COMPRESSION,this.parser=t}loadBufferView(t){const e=this.parser.json,n=e.bufferViews[t];if(n.extensions&&n.extensions[this.name]){const t=n.extensions[this.name],i=this.parser.getDependency("buffer",t.buffer),r=this.parser.options.meshoptDecoder;if(!r||!r.supported){if(e.extensionsRequired&&e.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return Promise.all([i,r.ready]).then((function(e){const n=t.byteOffset||0,i=t.byteLength||0,o=t.count,a=t.byteStride,s=new ArrayBuffer(o*a),l=new Uint8Array(e[0],n,i);return r.decodeGltfBuffer(new Uint8Array(s),o,a,l,t.mode,t.filter),s}))}return null}}const y="glTF",b=12,x={JSON:1313821514,BIN:5130562};class w{constructor(t){this.name=a.KHR_BINARY_GLTF,this.content=null,this.body=null;const e=new DataView(t,0,b);if(this.header={magic:i.LoaderUtils.decodeText(new Uint8Array(t.slice(0,4))),version:e.getUint32(4,!0),length:e.getUint32(8,!0)},this.header.magic!==y)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const n=this.header.length-b,r=new DataView(t,b);let o=0;for(;o<n;){const e=r.getUint32(o,!0);o+=4;const n=r.getUint32(o,!0);if(o+=4,n===x.JSON){const n=new Uint8Array(t,b+o,e);this.content=i.LoaderUtils.decodeText(n)}else if(n===x.BIN){const n=b+o;this.body=t.slice(n,n+e)}o+=e}if(null===this.content)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class _{constructor(t,e){if(!e)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=a.KHR_DRACO_MESH_COMPRESSION,this.json=t,this.dracoLoader=e,this.dracoLoader.preload()}decodePrimitive(t,e){const n=this.json,i=this.dracoLoader,r=t.extensions[this.name].bufferView,o=t.extensions[this.name].attributes,a={},s={},l={};for(const c in o){const t=D[c]||c.toLowerCase();a[t]=o[c]}for(const c in t.attributes){const e=D[c]||c.toLowerCase();if(void 0!==o[c]){const i=n.accessors[t.attributes[c]],r=O[i.componentType];l[e]=r,s[e]=!0===i.normalized}}return e.getDependency("bufferView",r).then((function(t){return new Promise((function(e){i.decodeDracoFile(t,(function(t){for(const e in t.attributes){const n=t.attributes[e],i=s[e];void 0!==i&&(n.normalized=i)}e(t)}),a,l)}))}))}}class C{constructor(){this.name=a.KHR_TEXTURE_TRANSFORM}extendTexture(t,e){return void 0!==e.texCoord&&console.warn('THREE.GLTFLoader: Custom UV sets in "'+this.name+'" extension not yet supported.'),void 0===e.offset&&void 0===e.rotation&&void 0===e.scale||(t=t.clone(),void 0!==e.offset&&t.offset.fromArray(e.offset),void 0!==e.rotation&&(t.rotation=e.rotation),void 0!==e.scale&&t.repeat.fromArray(e.scale),t.needsUpdate=!0),t}}class A extends i.MeshStandardMaterial{constructor(t){super(),this.isGLTFSpecularGlossinessMaterial=!0;const e=["#ifdef USE_SPECULARMAP","\tuniform sampler2D specularMap;","#endif"].join("\n"),n=["#ifdef USE_GLOSSINESSMAP","\tuniform sampler2D glossinessMap;","#endif"].join("\n"),r=["vec3 specularFactor = specular;","#ifdef USE_SPECULARMAP","\tvec4 texelSpecular = texture2D( specularMap, vUv );","\ttexelSpecular = sRGBToLinear( texelSpecular );","\t// reads channel RGB, compatible with a glTF Specular-Glossiness (RGBA) texture","\tspecularFactor *= texelSpecular.rgb;","#endif"].join("\n"),o=["float glossinessFactor = glossiness;","#ifdef USE_GLOSSINESSMAP","\tvec4 texelGlossiness = texture2D( glossinessMap, vUv );","\t// reads channel A, compatible with a glTF Specular-Glossiness (RGBA) texture","\tglossinessFactor *= texelGlossiness.a;","#endif"].join("\n"),a=["PhysicalMaterial material;","material.diffuseColor = diffuseColor.rgb * ( 1. - max( specularFactor.r, max( specularFactor.g, specularFactor.b ) ) );","vec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );","float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );","material.roughness = max( 1.0 - glossinessFactor, 0.0525 ); // 0.0525 corresponds to the base mip of a 256 cubemap.","material.roughness += geometryRoughness;","material.roughness = min( material.roughness, 1.0 );","material.specularColor = specularFactor;"].join("\n"),s={specular:{value:(new i.Color).setHex(16777215)},glossiness:{value:1},specularMap:{value:null},glossinessMap:{value:null}};this._extraUniforms=s,this.onBeforeCompile=function(t){for(const e in s)t.uniforms[e]=s[e];t.fragmentShader=t.fragmentShader.replace("uniform float roughness;","uniform vec3 specular;").replace("uniform float metalness;","uniform float glossiness;").replace("#include <roughnessmap_pars_fragment>",e).replace("#include <metalnessmap_pars_fragment>",n).replace("#include <roughnessmap_fragment>",r).replace("#include <metalnessmap_fragment>",o).replace("#include <lights_physical_fragment>",a)},Object.defineProperties(this,{specular:{get:function(){return s.specular.value},set:function(t){s.specular.value=t}},specularMap:{get:function(){return s.specularMap.value},set:function(t){s.specularMap.value=t,t?this.defines.USE_SPECULARMAP="":delete this.defines.USE_SPECULARMAP}},glossiness:{get:function(){return s.glossiness.value},set:function(t){s.glossiness.value=t}},glossinessMap:{get:function(){return s.glossinessMap.value},set:function(t){s.glossinessMap.value=t,t?(this.defines.USE_GLOSSINESSMAP="",this.defines.USE_UV=""):(delete this.defines.USE_GLOSSINESSMAP,delete this.defines.USE_UV)}}}),delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this.setValues(t)}copy(t){return super.copy(t),this.specularMap=t.specularMap,this.specular.copy(t.specular),this.glossinessMap=t.glossinessMap,this.glossiness=t.glossiness,delete this.metalness,delete this.roughness,delete this.metalnessMap,delete this.roughnessMap,this}}class I{constructor(){this.name=a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS,this.specularGlossinessParams=["color","map","lightMap","lightMapIntensity","aoMap","aoMapIntensity","emissive","emissiveIntensity","emissiveMap","bumpMap","bumpScale","normalMap","normalMapType","displacementMap","displacementScale","displacementBias","specularMap","specular","glossinessMap","glossiness","alphaMap","envMap","envMapIntensity","refractionRatio"]}getMaterialType(){return A}extendParams(t,e,n){const r=e.extensions[this.name];t.color=new i.Color(1,1,1),t.opacity=1;const o=[];if(Array.isArray(r.diffuseFactor)){const e=r.diffuseFactor;t.color.fromArray(e),t.opacity=e[3]}if(void 0!==r.diffuseTexture&&o.push(n.assignTexture(t,"map",r.diffuseTexture)),t.emissive=new i.Color(0,0,0),t.glossiness=void 0!==r.glossinessFactor?r.glossinessFactor:1,t.specular=new i.Color(1,1,1),Array.isArray(r.specularFactor)&&t.specular.fromArray(r.specularFactor),void 0!==r.specularGlossinessTexture){const e=r.specularGlossinessTexture;o.push(n.assignTexture(t,"glossinessMap",e)),o.push(n.assignTexture(t,"specularMap",e))}return Promise.all(o)}createMaterial(t){const e=new A(t);return e.fog=!0,e.color=t.color,e.map=void 0===t.map?null:t.map,e.lightMap=null,e.lightMapIntensity=1,e.aoMap=void 0===t.aoMap?null:t.aoMap,e.aoMapIntensity=1,e.emissive=t.emissive,e.emissiveIntensity=1,e.emissiveMap=void 0===t.emissiveMap?null:t.emissiveMap,e.bumpMap=void 0===t.bumpMap?null:t.bumpMap,e.bumpScale=1,e.normalMap=void 0===t.normalMap?null:t.normalMap,e.normalMapType=i.TangentSpaceNormalMap,t.normalScale&&(e.normalScale=t.normalScale),e.displacementMap=null,e.displacementScale=1,e.displacementBias=0,e.specularMap=void 0===t.specularMap?null:t.specularMap,e.specular=t.specular,e.glossinessMap=void 0===t.glossinessMap?null:t.glossinessMap,e.glossiness=t.glossiness,e.alphaMap=null,e.envMap=void 0===t.envMap?null:t.envMap,e.envMapIntensity=1,e.refractionRatio=.98,e}}class S{constructor(){this.name=a.KHR_MESH_QUANTIZATION}}class M extends i.Interpolant{constructor(t,e,n,i){super(t,e,n,i)}copySampleValue_(t){const e=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=t*i*3+i;for(let o=0;o!==i;o++)e[o]=n[r+o];return e}}M.prototype.beforeStart_=M.prototype.copySampleValue_,M.prototype.afterEnd_=M.prototype.copySampleValue_,M.prototype.interpolate_=function(t,e,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=2*a,l=3*a,c=i-e,u=(n-e)/c,h=u*u,d=h*u,p=t*l,f=p-l,g=-2*d+3*h,m=d-h,v=1-g,y=m-h+u;for(let b=0;b!==a;b++){const t=o[f+b+a],e=o[f+b+s]*c,n=o[p+b+a],i=o[p+b]*c;r[b]=v*t+y*e+g*n+m*i}return r};const k=new i.Quaternion;class E extends M{interpolate_(t,e,n,i){const r=super.interpolate_(t,e,n,i);return k.fromArray(r).normalize().toArray(r),r}}const T={FLOAT:5126,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,LINEAR:9729,REPEAT:10497,SAMPLER_2D:35678,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,UNSIGNED_BYTE:5121,UNSIGNED_SHORT:5123},O={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},P={9728:i.NearestFilter,9729:i.LinearFilter,9984:i.NearestMipmapNearestFilter,9985:i.LinearMipmapNearestFilter,9986:i.NearestMipmapLinearFilter,9987:i.LinearMipmapLinearFilter},j={33071:i.ClampToEdgeWrapping,33648:i.MirroredRepeatWrapping,10497:i.RepeatWrapping},L={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},D={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv2",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},R={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},B={CUBICSPLINE:void 0,LINEAR:i.InterpolateLinear,STEP:i.InterpolateDiscrete},N={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function F(t){return void 0===t.DefaultMaterial&&(t.DefaultMaterial=new i.MeshStandardMaterial({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:i.FrontSide})),t.DefaultMaterial}function z(t,e,n){for(const i in n.extensions)void 0===t[i]&&(e.userData.gltfExtensions=e.userData.gltfExtensions||{},e.userData.gltfExtensions[i]=n.extensions[i])}function V(t,e){void 0!==e.extras&&("object"==typeof e.extras?Object.assign(t.userData,e.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+e.extras))}function G(t,e,n){let i=!1,r=!1;for(let s=0,l=e.length;s<l;s++){const t=e[s];if(void 0!==t.POSITION&&(i=!0),void 0!==t.NORMAL&&(r=!0),i&&r)break}if(!i&&!r)return Promise.resolve(t);const o=[],a=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(i){const e=void 0!==l.POSITION?n.getDependency("accessor",l.POSITION):t.attributes.position;o.push(e)}if(r){const e=void 0!==l.NORMAL?n.getDependency("accessor",l.NORMAL):t.attributes.normal;a.push(e)}}return Promise.all([Promise.all(o),Promise.all(a)]).then((function(e){const n=e[0],o=e[1];return i&&(t.morphAttributes.position=n),r&&(t.morphAttributes.normal=o),t.morphTargetsRelative=!0,t}))}function H(t,e){if(t.updateMorphTargets(),void 0!==e.weights)for(let n=0,i=e.weights.length;n<i;n++)t.morphTargetInfluences[n]=e.weights[n];if(e.extras&&Array.isArray(e.extras.targetNames)){const n=e.extras.targetNames;if(t.morphTargetInfluences.length===n.length){t.morphTargetDictionary={};for(let e=0,i=n.length;e<i;e++)t.morphTargetDictionary[n[e]]=e}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function W(t){const e=t.extensions&&t.extensions[a.KHR_DRACO_MESH_COMPRESSION];let n;return n=e?"draco:"+e.bufferView+":"+e.indices+":"+U(e.attributes):t.indices+":"+U(t.attributes)+":"+t.mode,n}function U(t){let e="";const n=Object.keys(t).sort();for(let i=0,r=n.length;i<r;i++)e+=n[i]+":"+t[n[i]]+";";return e}function Z(t){switch(t){case Int8Array:return.007874015748031496;case Uint8Array:return.00392156862745098;case Int16Array:return 3051850947599719e-20;case Uint16Array:return 15259021896696422e-21;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}class Y{constructor(t={},e={}){this.json=t,this.extensions={},this.plugins={},this.options=e,this.cache=new o,this.associations=new Map,this.primitiveCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.textureCache={},this.nodeNamesUsed={},"undefined"!=typeof createImageBitmap&&!1===/Firefox|Safari/.test(navigator.userAgent)?this.textureLoader=new i.ImageBitmapLoader(this.options.manager):this.textureLoader=new i.TextureLoader(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new i.FileLoader(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),"use-credentials"===this.options.crossOrigin&&this.fileLoader.setWithCredentials(!0)}setExtensions(t){this.extensions=t}setPlugins(t){this.plugins=t}parse(t,e){const n=this,i=this.json,r=this.extensions;this.cache.removeAll(),this._invokeAll((function(t){return t._markDefs&&t._markDefs()})),Promise.all(this._invokeAll((function(t){return t.beforeRoot&&t.beforeRoot()}))).then((function(){return Promise.all([n.getDependencies("scene"),n.getDependencies("animation"),n.getDependencies("camera")])})).then((function(e){const o={scene:e[0][i.scene||0],scenes:e[0],animations:e[1],cameras:e[2],asset:i.asset,parser:n,userData:{}};z(r,o,i),V(o,i),Promise.all(n._invokeAll((function(t){return t.afterRoot&&t.afterRoot(o)}))).then((function(){t(o)}))})).catch(e)}_markDefs(){const t=this.json.nodes||[],e=this.json.skins||[],n=this.json.meshes||[];for(let i=0,r=e.length;i<r;i++){const n=e[i].joints;for(let e=0,i=n.length;e<i;e++)t[n[e]].isBone=!0}for(let i=0,r=t.length;i<r;i++){const e=t[i];void 0!==e.mesh&&(this._addNodeRef(this.meshCache,e.mesh),void 0!==e.skin&&(n[e.mesh].isSkinnedMesh=!0)),void 0!==e.camera&&this._addNodeRef(this.cameraCache,e.camera)}}_addNodeRef(t,e){void 0!==e&&(void 0===t.refs[e]&&(t.refs[e]=t.uses[e]=0),t.refs[e]++)}_getNodeRef(t,e,n){if(t.refs[e]<=1)return n;const i=n.clone(),r=(t,e)=>{const n=this.associations.get(t);null!=n&&this.associations.set(e,n);for(const[i,o]of t.children.entries())r(o,e.children[i])};return r(n,i),i.name+="_instance_"+t.uses[e]++,i}_invokeOne(t){const e=Object.values(this.plugins);e.push(this);for(let n=0;n<e.length;n++){const i=t(e[n]);if(i)return i}return null}_invokeAll(t){const e=Object.values(this.plugins);e.unshift(this);const n=[];for(let i=0;i<e.length;i++){const r=t(e[i]);r&&n.push(r)}return n}getDependency(t,e){const n=t+":"+e;let i=this.cache.get(n);if(!i){switch(t){case"scene":i=this.loadScene(e);break;case"node":i=this.loadNode(e);break;case"mesh":i=this._invokeOne((function(t){return t.loadMesh&&t.loadMesh(e)}));break;case"accessor":i=this.loadAccessor(e);break;case"bufferView":i=this._invokeOne((function(t){return t.loadBufferView&&t.loadBufferView(e)}));break;case"buffer":i=this.loadBuffer(e);break;case"material":i=this._invokeOne((function(t){return t.loadMaterial&&t.loadMaterial(e)}));break;case"texture":i=this._invokeOne((function(t){return t.loadTexture&&t.loadTexture(e)}));break;case"skin":i=this.loadSkin(e);break;case"animation":i=this.loadAnimation(e);break;case"camera":i=this.loadCamera(e);break;default:throw new Error("Unknown type: "+t)}this.cache.add(n,i)}return i}getDependencies(t){let e=this.cache.get(t);if(!e){const n=this,i=this.json[t+("mesh"===t?"es":"s")]||[];e=Promise.all(i.map((function(e,i){return n.getDependency(t,i)}))),this.cache.add(t,e)}return e}loadBuffer(t){const e=this.json.buffers[t],n=this.fileLoader;if(e.type&&"arraybuffer"!==e.type)throw new Error("THREE.GLTFLoader: "+e.type+" buffer type is not supported.");if(void 0===e.uri&&0===t)return Promise.resolve(this.extensions[a.KHR_BINARY_GLTF].body);const r=this.options;return new Promise((function(t,o){n.load(i.LoaderUtils.resolveURL(e.uri,r.path),t,void 0,(function(){o(new Error('THREE.GLTFLoader: Failed to load buffer "'+e.uri+'".'))}))}))}loadBufferView(t){const e=this.json.bufferViews[t];return this.getDependency("buffer",e.buffer).then((function(t){const n=e.byteLength||0,i=e.byteOffset||0;return t.slice(i,i+n)}))}loadAccessor(t){const e=this,n=this.json,r=this.json.accessors[t];if(void 0===r.bufferView&&void 0===r.sparse)return Promise.resolve(null);const o=[];return void 0!==r.bufferView?o.push(this.getDependency("bufferView",r.bufferView)):o.push(null),void 0!==r.sparse&&(o.push(this.getDependency("bufferView",r.sparse.indices.bufferView)),o.push(this.getDependency("bufferView",r.sparse.values.bufferView))),Promise.all(o).then((function(t){const o=t[0],a=L[r.type],s=O[r.componentType],l=s.BYTES_PER_ELEMENT,c=l*a,u=r.byteOffset||0,h=void 0!==r.bufferView?n.bufferViews[r.bufferView].byteStride:void 0,d=!0===r.normalized;let p,f;if(h&&h!==c){const t=Math.floor(u/h),n="InterleavedBuffer:"+r.bufferView+":"+r.componentType+":"+t+":"+r.count;let c=e.cache.get(n);c||(p=new s(o,t*h,r.count*h/l),c=new i.InterleavedBuffer(p,h/l),e.cache.add(n,c)),f=new i.InterleavedBufferAttribute(c,a,u%h/l,d)}else p=null===o?new s(r.count*a):new s(o,u,r.count*a),f=new i.BufferAttribute(p,a,d);if(void 0!==r.sparse){const e=L.SCALAR,n=O[r.sparse.indices.componentType],l=r.sparse.indices.byteOffset||0,c=r.sparse.values.byteOffset||0,u=new n(t[1],l,r.sparse.count*e),h=new s(t[2],c,r.sparse.count*a);null!==o&&(f=new i.BufferAttribute(f.array.slice(),f.itemSize,f.normalized));for(let t=0,i=u.length;t<i;t++){const e=u[t];if(f.setX(e,h[t*a]),a>=2&&f.setY(e,h[t*a+1]),a>=3&&f.setZ(e,h[t*a+2]),a>=4&&f.setW(e,h[t*a+3]),a>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return f}))}loadTexture(t){const e=this.json,n=this.options,i=e.textures[t],r=e.images[i.source];let o=this.textureLoader;if(r.uri){const t=n.manager.getHandler(r.uri);null!==t&&(o=t)}return this.loadTextureImage(t,r,o)}loadTextureImage(t,e,n){const r=this,o=this.json,a=this.options,s=o.textures[t],l=(e.uri||e.bufferView)+":"+s.sampler;if(this.textureCache[l])return this.textureCache[l];const c=self.URL||self.webkitURL;let u=e.uri||"",h=!1;if(void 0!==e.bufferView)u=r.getDependency("bufferView",e.bufferView).then((function(t){h=!0;const n=new Blob([t],{type:e.mimeType});return u=c.createObjectURL(n),u}));else if(void 0===e.uri)throw new Error("THREE.GLTFLoader: Image "+t+" is missing URI and bufferView");const d=Promise.resolve(u).then((function(t){return new Promise((function(e,r){let o=e;!0===n.isImageBitmapLoader&&(o=function(t){const n=new i.Texture(t);n.needsUpdate=!0,e(n)}),n.load(i.LoaderUtils.resolveURL(t,a.path),o,void 0,r)}))})).then((function(e){!0===h&&c.revokeObjectURL(u),e.flipY=!1,s.name&&(e.name=s.name);const n=(o.samplers||{})[s.sampler]||{};return e.magFilter=P[n.magFilter]||i.LinearFilter,e.minFilter=P[n.minFilter]||i.LinearMipmapLinearFilter,e.wrapS=j[n.wrapS]||i.RepeatWrapping,e.wrapT=j[n.wrapT]||i.RepeatWrapping,r.associations.set(e,{textures:t}),e})).catch((function(){return console.error("THREE.GLTFLoader: Couldn't load texture",u),null}));return this.textureCache[l]=d,d}assignTexture(t,e,n){const i=this;return this.getDependency("texture",n.index).then((function(r){if(void 0!==n.texCoord&&0!=n.texCoord&&!("aoMap"===e&&1==n.texCoord)&&console.warn("THREE.GLTFLoader: Custom UV set "+n.texCoord+" for texture "+e+" not yet supported."),i.extensions[a.KHR_TEXTURE_TRANSFORM]){const t=void 0!==n.extensions?n.extensions[a.KHR_TEXTURE_TRANSFORM]:void 0;if(t){const e=i.associations.get(r);r=i.extensions[a.KHR_TEXTURE_TRANSFORM].extendTexture(r,t),i.associations.set(r,e)}}return t[e]=r,r}))}assignFinalMaterial(t){const e=t.geometry;let n=t.material;const r=void 0===e.attributes.tangent,o=void 0!==e.attributes.color,a=void 0===e.attributes.normal;if(t.isPoints){const t="PointsMaterial:"+n.uuid;let e=this.cache.get(t);e||(e=new i.PointsMaterial,i.Material.prototype.copy.call(e,n),e.color.copy(n.color),e.map=n.map,e.sizeAttenuation=!1,this.cache.add(t,e)),n=e}else if(t.isLine){const t="LineBasicMaterial:"+n.uuid;let e=this.cache.get(t);e||(e=new i.LineBasicMaterial,i.Material.prototype.copy.call(e,n),e.color.copy(n.color),this.cache.add(t,e)),n=e}if(r||o||a){let t="ClonedMaterial:"+n.uuid+":";n.isGLTFSpecularGlossinessMaterial&&(t+="specular-glossiness:"),r&&(t+="derivative-tangents:"),o&&(t+="vertex-colors:"),a&&(t+="flat-shading:");let e=this.cache.get(t);e||(e=n.clone(),o&&(e.vertexColors=!0),a&&(e.flatShading=!0),r&&(e.normalScale&&(e.normalScale.y*=-1),e.clearcoatNormalScale&&(e.clearcoatNormalScale.y*=-1)),this.cache.add(t,e),this.associations.set(e,this.associations.get(n))),n=e}n.aoMap&&void 0===e.attributes.uv2&&void 0!==e.attributes.uv&&e.setAttribute("uv2",e.attributes.uv),t.material=n}getMaterialType(){return i.MeshStandardMaterial}loadMaterial(t){const e=this,n=this.json,r=this.extensions,o=n.materials[t];let s;const l={},c=o.extensions||{},u=[];if(c[a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]){const t=r[a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];s=t.getMaterialType(),u.push(t.extendParams(l,o,e))}else if(c[a.KHR_MATERIALS_UNLIT]){const t=r[a.KHR_MATERIALS_UNLIT];s=t.getMaterialType(),u.push(t.extendParams(l,o,e))}else{const n=o.pbrMetallicRoughness||{};if(l.color=new i.Color(1,1,1),l.opacity=1,Array.isArray(n.baseColorFactor)){const t=n.baseColorFactor;l.color.fromArray(t),l.opacity=t[3]}void 0!==n.baseColorTexture&&u.push(e.assignTexture(l,"map",n.baseColorTexture)),l.metalness=void 0!==n.metallicFactor?n.metallicFactor:1,l.roughness=void 0!==n.roughnessFactor?n.roughnessFactor:1,void 0!==n.metallicRoughnessTexture&&(u.push(e.assignTexture(l,"metalnessMap",n.metallicRoughnessTexture)),u.push(e.assignTexture(l,"roughnessMap",n.metallicRoughnessTexture))),s=this._invokeOne((function(e){return e.getMaterialType&&e.getMaterialType(t)})),u.push(Promise.all(this._invokeAll((function(e){return e.extendMaterialParams&&e.extendMaterialParams(t,l)}))))}!0===o.doubleSided&&(l.side=i.DoubleSide);const h=o.alphaMode||N.OPAQUE;if(h===N.BLEND?(l.transparent=!0,l.depthWrite=!1):(l.format=i.RGBFormat,l.transparent=!1,h===N.MASK&&(l.alphaTest=void 0!==o.alphaCutoff?o.alphaCutoff:.5)),void 0!==o.normalTexture&&s!==i.MeshBasicMaterial&&(u.push(e.assignTexture(l,"normalMap",o.normalTexture)),l.normalScale=new i.Vector2(1,1),void 0!==o.normalTexture.scale)){const t=o.normalTexture.scale;l.normalScale.set(t,t)}return void 0!==o.occlusionTexture&&s!==i.MeshBasicMaterial&&(u.push(e.assignTexture(l,"aoMap",o.occlusionTexture)),void 0!==o.occlusionTexture.strength&&(l.aoMapIntensity=o.occlusionTexture.strength)),void 0!==o.emissiveFactor&&s!==i.MeshBasicMaterial&&(l.emissive=(new i.Color).fromArray(o.emissiveFactor)),void 0!==o.emissiveTexture&&s!==i.MeshBasicMaterial&&u.push(e.assignTexture(l,"emissiveMap",o.emissiveTexture)),Promise.all(u).then((function(){let n;return n=s===A?r[a.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(l):new s(l),o.name&&(n.name=o.name),n.map&&(n.map.encoding=i.sRGBEncoding),n.emissiveMap&&(n.emissiveMap.encoding=i.sRGBEncoding),V(n,o),e.associations.set(n,{materials:t}),o.extensions&&z(r,n,o),n}))}createUniqueName(t){const e=i.PropertyBinding.sanitizeNodeName(t||"");let n=e;for(let i=1;this.nodeNamesUsed[n];++i)n=e+"_"+i;return this.nodeNamesUsed[n]=!0,n}loadGeometries(t){const e=this,n=this.extensions,r=this.primitiveCache;function o(t){return n[a.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(t,e).then((function(n){return K(n,t,e)}))}const s=[];for(let l=0,c=t.length;l<c;l++){const n=t[l],c=W(n),u=r[c];if(u)s.push(u.promise);else{let t;t=n.extensions&&n.extensions[a.KHR_DRACO_MESH_COMPRESSION]?o(n):K(new i.BufferGeometry,n,e),r[c]={primitive:n,promise:t},s.push(t)}}return Promise.all(s)}loadMesh(t){const e=this,n=this.json,r=this.extensions,o=n.meshes[t],a=o.primitives,s=[];for(let i=0,l=a.length;i<l;i++){const t=void 0===a[i].material?F(this.cache):this.getDependency("material",a[i].material);s.push(t)}return s.push(e.loadGeometries(a)),Promise.all(s).then((function(n){const s=n.slice(0,n.length-1),l=n[n.length-1],c=[];for(let h=0,d=l.length;h<d;h++){const n=l[h],u=a[h];let d;const p=s[h];if(u.mode===T.TRIANGLES||u.mode===T.TRIANGLE_STRIP||u.mode===T.TRIANGLE_FAN||void 0===u.mode)d=!0===o.isSkinnedMesh?new i.SkinnedMesh(n,p):new i.Mesh(n,p),!0===d.isSkinnedMesh&&!d.geometry.attributes.skinWeight.normalized&&d.normalizeSkinWeights(),u.mode===T.TRIANGLE_STRIP?d.geometry=Q(d.geometry,i.TriangleStripDrawMode):u.mode===T.TRIANGLE_FAN&&(d.geometry=Q(d.geometry,i.TriangleFanDrawMode));else if(u.mode===T.LINES)d=new i.LineSegments(n,p);else if(u.mode===T.LINE_STRIP)d=new i.Line(n,p);else if(u.mode===T.LINE_LOOP)d=new i.LineLoop(n,p);else{if(u.mode!==T.POINTS)throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+u.mode);d=new i.Points(n,p)}Object.keys(d.geometry.morphAttributes).length>0&&H(d,o),d.name=e.createUniqueName(o.name||"mesh_"+t),V(d,o),u.extensions&&z(r,d,u),e.assignFinalMaterial(d),c.push(d)}for(let i=0,r=c.length;i<r;i++)e.associations.set(c[i],{meshes:t,primitives:i});if(1===c.length)return c[0];const u=new i.Group;e.associations.set(u,{meshes:t});for(let t=0,e=c.length;t<e;t++)u.add(c[t]);return u}))}loadCamera(t){let e;const n=this.json.cameras[t],r=n[n.type];if(r)return"perspective"===n.type?e=new i.PerspectiveCamera(i.MathUtils.radToDeg(r.yfov),r.aspectRatio||1,r.znear||1,r.zfar||2e6):"orthographic"===n.type&&(e=new i.OrthographicCamera(-r.xmag,r.xmag,r.ymag,-r.ymag,r.znear,r.zfar)),n.name&&(e.name=this.createUniqueName(n.name)),V(e,n),Promise.resolve(e);console.warn("THREE.GLTFLoader: Missing camera parameters.")}loadSkin(t){const e=this.json.skins[t],n={joints:e.joints};return void 0===e.inverseBindMatrices?Promise.resolve(n):this.getDependency("accessor",e.inverseBindMatrices).then((function(t){return n.inverseBindMatrices=t,n}))}loadAnimation(t){const e=this.json.animations[t],n=[],r=[],o=[],a=[],s=[];for(let i=0,l=e.channels.length;i<l;i++){const t=e.channels[i],l=e.samplers[t.sampler],c=t.target,u=void 0!==c.node?c.node:c.id,h=void 0!==e.parameters?e.parameters[l.input]:l.input,d=void 0!==e.parameters?e.parameters[l.output]:l.output;n.push(this.getDependency("node",u)),r.push(this.getDependency("accessor",h)),o.push(this.getDependency("accessor",d)),a.push(l),s.push(c)}return Promise.all([Promise.all(n),Promise.all(r),Promise.all(o),Promise.all(a),Promise.all(s)]).then((function(n){const r=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=[];for(let t=0,e=r.length;t<e;t++){const e=r[t],n=o[t],u=a[t],h=s[t],d=l[t];if(void 0===e)continue;let p;switch(e.updateMatrix(),e.matrixAutoUpdate=!0,R[d.path]){case R.weights:p=i.NumberKeyframeTrack;break;case R.rotation:p=i.QuaternionKeyframeTrack;break;case R.position:case R.scale:default:p=i.VectorKeyframeTrack;break}const f=e.name?e.name:e.uuid,g=void 0!==h.interpolation?B[h.interpolation]:i.InterpolateLinear,m=[];R[d.path]===R.weights?e.traverse((function(t){t.morphTargetInfluences&&m.push(t.name?t.name:t.uuid)})):m.push(f);let v=u.array;if(u.normalized){const t=Z(v.constructor),e=new Float32Array(v.length);for(let n=0,i=v.length;n<i;n++)e[n]=v[n]*t;v=e}for(let t=0,r=m.length;t<r;t++){const e=new p(m[t]+"."+R[d.path],n.array,v,g);"CUBICSPLINE"===h.interpolation&&(e.createInterpolant=function(t){const e=this instanceof i.QuaternionKeyframeTrack?E:M;return new e(this.times,this.values,this.getValueSize()/3,t)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0),c.push(e)}}const u=e.name?e.name:"animation_"+t;return new i.AnimationClip(u,void 0,c)}))}createNodeMesh(t){const e=this.json,n=this,i=e.nodes[t];return void 0===i.mesh?null:n.getDependency("mesh",i.mesh).then((function(t){const e=n._getNodeRef(n.meshCache,i.mesh,t);return void 0!==i.weights&&e.traverse((function(t){if(t.isMesh)for(let e=0,n=i.weights.length;e<n;e++)t.morphTargetInfluences[e]=i.weights[e]})),e}))}loadNode(t){const e=this.json,n=this.extensions,r=this,o=e.nodes[t],a=o.name?r.createUniqueName(o.name):"";return function(){const e=[],n=r._invokeOne((function(e){return e.createNodeMesh&&e.createNodeMesh(t)}));return n&&e.push(n),void 0!==o.camera&&e.push(r.getDependency("camera",o.camera).then((function(t){return r._getNodeRef(r.cameraCache,o.camera,t)}))),r._invokeAll((function(e){return e.createNodeAttachment&&e.createNodeAttachment(t)})).forEach((function(t){e.push(t)})),Promise.all(e)}().then((function(e){let s;if(s=!0===o.isBone?new i.Bone:e.length>1?new i.Group:1===e.length?e[0]:new i.Object3D,s!==e[0])for(let t=0,n=e.length;t<n;t++)s.add(e[t]);if(o.name&&(s.userData.name=o.name,s.name=a),V(s,o),o.extensions&&z(n,s,o),void 0!==o.matrix){const t=new i.Matrix4;t.fromArray(o.matrix),s.applyMatrix4(t)}else void 0!==o.translation&&s.position.fromArray(o.translation),void 0!==o.rotation&&s.quaternion.fromArray(o.rotation),void 0!==o.scale&&s.scale.fromArray(o.scale);return r.associations.has(s)||r.associations.set(s,{}),r.associations.get(s).nodes=t,s}))}loadScene(t){const e=this.json,n=this.extensions,r=this.json.scenes[t],o=this,a=new i.Group;r.name&&(a.name=o.createUniqueName(r.name)),V(a,r),r.extensions&&z(n,a,r);const s=r.nodes||[],l=[];for(let i=0,c=s.length;i<c;i++)l.push(X(s[i],a,e,o));return Promise.all(l).then((function(){const t=t=>{const e=new Map;for(const[n,r]of o.associations)(n instanceof i.Material||n instanceof i.Texture)&&e.set(n,r);return t.traverse(t=>{const n=o.associations.get(t);null!=n&&e.set(t,n)}),e};return o.associations=t(a),a}))}}function X(t,e,n,r){const o=n.nodes[t];return r.getDependency("node",t).then((function(t){if(void 0===o.skin)return t;let e;return r.getDependency("skin",o.skin).then((function(t){e=t;const n=[];for(let i=0,o=e.joints.length;i<o;i++)n.push(r.getDependency("node",e.joints[i]));return Promise.all(n)})).then((function(n){return t.traverse((function(t){if(!t.isMesh)return;const r=[],o=[];for(let a=0,s=n.length;a<s;a++){const t=n[a];if(t){r.push(t);const n=new i.Matrix4;void 0!==e.inverseBindMatrices&&n.fromArray(e.inverseBindMatrices.array,16*a),o.push(n)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',e.joints[a])}t.bind(new i.Skeleton(r,o),t.matrixWorld)})),t}))})).then((function(t){e.add(t);const i=[];if(o.children){const e=o.children;for(let o=0,a=e.length;o<a;o++){const a=e[o];i.push(X(a,t,n,r))}}return Promise.all(i)}))}function q(t,e,n){const r=e.attributes,o=new i.Box3;if(void 0===r.POSITION)return;{const t=n.json.accessors[r.POSITION],e=t.min,a=t.max;if(void 0===e||void 0===a)return void console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");if(o.set(new i.Vector3(e[0],e[1],e[2]),new i.Vector3(a[0],a[1],a[2])),t.normalized){const e=Z(O[t.componentType]);o.min.multiplyScalar(e),o.max.multiplyScalar(e)}}const a=e.targets;if(void 0!==a){const t=new i.Vector3,e=new i.Vector3;for(let i=0,r=a.length;i<r;i++){const r=a[i];if(void 0!==r.POSITION){const i=n.json.accessors[r.POSITION],o=i.min,a=i.max;if(void 0!==o&&void 0!==a){if(e.setX(Math.max(Math.abs(o[0]),Math.abs(a[0]))),e.setY(Math.max(Math.abs(o[1]),Math.abs(a[1]))),e.setZ(Math.max(Math.abs(o[2]),Math.abs(a[2]))),i.normalized){const t=Z(O[i.componentType]);e.multiplyScalar(t)}t.max(e)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}o.expandByVector(t)}t.boundingBox=o;const s=new i.Sphere;o.getCenter(s.center),s.radius=o.min.distanceTo(o.max)/2,t.boundingSphere=s}function K(t,e,n){const i=e.attributes,r=[];function o(e,i){return n.getDependency("accessor",e).then((function(e){t.setAttribute(i,e)}))}for(const a in i){const e=D[a]||a.toLowerCase();e in t.attributes||r.push(o(i[a],e))}if(void 0!==e.indices&&!t.index){const i=n.getDependency("accessor",e.indices).then((function(e){t.setIndex(e)}));r.push(i)}return V(t,e),q(t,e,n),Promise.all(r).then((function(){return void 0!==e.targets?G(t,e.targets,n):t}))}function Q(t,e){let n=t.getIndex();if(null===n){const e=[],i=t.getAttribute("position");if(void 0===i)return console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),t;for(let t=0;t<i.count;t++)e.push(t);t.setIndex(e),n=t.getIndex()}const r=n.count-2,o=[];if(e===i.TriangleFanDrawMode)for(let i=1;i<=r;i++)o.push(n.getX(0)),o.push(n.getX(i)),o.push(n.getX(i+1));else for(let i=0;i<r;i++)i%2===0?(o.push(n.getX(i)),o.push(n.getX(i+1)),o.push(n.getX(i+2))):(o.push(n.getX(i+2)),o.push(n.getX(i+1)),o.push(n.getX(i)));o.length/3!==r&&console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const a=t.clone();return a.setIndex(o),a}},7011:function(t,e,n){"use strict";n.r(e),n.d(e,{OBJLoader:function(){return f}});var i=n(5644);const r=/^[og]\s*(.+)?/,o=/^mtllib /,a=/^usemtl /,s=/^usemap /,l=new i.Vector3,c=new i.Vector3,u=new i.Vector3,h=new i.Vector3,d=new i.Vector3;function p(){const t={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(t,e){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=t,void(this.object.fromDeclaration=!1!==e);const n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:t||"",fromDeclaration:!1!==e,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(t,e){const n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);const i={index:this.materials.length,name:t||"",mtllib:Array.isArray(e)&&e.length>0?e[e.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(t){const e={index:"number"==typeof t?t:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return e.clone=this.clone.bind(e),e}};return this.materials.push(i),i},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){const e=this.currentMaterial();if(e&&-1===e.groupEnd&&(e.groupEnd=this.geometry.vertices.length/3,e.groupCount=e.groupEnd-e.groupStart,e.inherited=!1),t&&this.materials.length>1)for(let n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return t&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),e}},n&&n.name&&"function"==typeof n.clone){const t=n.clone(0);t.inherited=!0,this.object.materials.push(t)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(t,e){const n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseNormalIndex:function(t,e){const n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseUVIndex:function(t,e){const n=parseInt(t,10);return 2*(n>=0?n-1:n+e/2)},addVertex:function(t,e,n){const i=this.vertices,r=this.object.geometry.vertices;r.push(i[t+0],i[t+1],i[t+2]),r.push(i[e+0],i[e+1],i[e+2]),r.push(i[n+0],i[n+1],i[n+2])},addVertexPoint:function(t){const e=this.vertices;this.object.geometry.vertices.push(e[t+0],e[t+1],e[t+2])},addVertexLine:function(t){const e=this.vertices;this.object.geometry.vertices.push(e[t+0],e[t+1],e[t+2])},addNormal:function(t,e,n){const i=this.normals,r=this.object.geometry.normals;r.push(i[t+0],i[t+1],i[t+2]),r.push(i[e+0],i[e+1],i[e+2]),r.push(i[n+0],i[n+1],i[n+2])},addFaceNormal:function(t,e,n){const i=this.vertices,r=this.object.geometry.normals;l.fromArray(i,t),c.fromArray(i,e),u.fromArray(i,n),d.subVectors(u,c),h.subVectors(l,c),d.cross(h),d.normalize(),r.push(d.x,d.y,d.z),r.push(d.x,d.y,d.z),r.push(d.x,d.y,d.z)},addColor:function(t,e,n){const i=this.colors,r=this.object.geometry.colors;void 0!==i[t]&&r.push(i[t+0],i[t+1],i[t+2]),void 0!==i[e]&&r.push(i[e+0],i[e+1],i[e+2]),void 0!==i[n]&&r.push(i[n+0],i[n+1],i[n+2])},addUV:function(t,e,n){const i=this.uvs,r=this.object.geometry.uvs;r.push(i[t+0],i[t+1]),r.push(i[e+0],i[e+1]),r.push(i[n+0],i[n+1])},addDefaultUV:function(){const t=this.object.geometry.uvs;t.push(0,0),t.push(0,0),t.push(0,0)},addUVLine:function(t){const e=this.uvs;this.object.geometry.uvs.push(e[t+0],e[t+1])},addFace:function(t,e,n,i,r,o,a,s,l){const c=this.vertices.length;let u=this.parseVertexIndex(t,c),h=this.parseVertexIndex(e,c),d=this.parseVertexIndex(n,c);if(this.addVertex(u,h,d),this.addColor(u,h,d),void 0!==a&&""!==a){const t=this.normals.length;u=this.parseNormalIndex(a,t),h=this.parseNormalIndex(s,t),d=this.parseNormalIndex(l,t),this.addNormal(u,h,d)}else this.addFaceNormal(u,h,d);if(void 0!==i&&""!==i){const t=this.uvs.length;u=this.parseUVIndex(i,t),h=this.parseUVIndex(r,t),d=this.parseUVIndex(o,t),this.addUV(u,h,d),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(t){this.object.geometry.type="Points";const e=this.vertices.length;for(let n=0,i=t.length;n<i;n++){const i=this.parseVertexIndex(t[n],e);this.addVertexPoint(i),this.addColor(i)}},addLineGeometry:function(t,e){this.object.geometry.type="Line";const n=this.vertices.length,i=this.uvs.length;for(let r=0,o=t.length;r<o;r++)this.addVertexLine(this.parseVertexIndex(t[r],n));for(let r=0,o=e.length;r<o;r++)this.addUVLine(this.parseUVIndex(e[r],i))}};return t.startObject("",!1),t}class f extends i.Loader{constructor(t){super(t),this.materials=null}load(t,e,n,r){const o=this,a=new i.FileLoader(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(t,(function(n){try{e(o.parse(n))}catch(i){r?r(i):console.error(i),o.manager.itemError(t)}}),n,r)}setMaterials(t){return this.materials=t,this}parse(t){const e=new p;-1!==t.indexOf("\r\n")&&(t=t.replace(/\r\n/g,"\n")),-1!==t.indexOf("\\\n")&&(t=t.replace(/\\\n/g,""));const n=t.split("\n");let l="",c="",u=0,h=[];const d="function"==typeof"".trimLeft;for(let i=0,p=n.length;i<p;i++)if(l=n[i],l=d?l.trimLeft():l.trim(),u=l.length,0!==u&&(c=l.charAt(0),"#"!==c))if("v"===c){const t=l.split(/\s+/);switch(t[0]){case"v":e.vertices.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3])),t.length>=7?e.colors.push(parseFloat(t[4]),parseFloat(t[5]),parseFloat(t[6])):e.colors.push(void 0,void 0,void 0);break;case"vn":e.normals.push(parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3]));break;case"vt":e.uvs.push(parseFloat(t[1]),parseFloat(t[2]));break}}else if("f"===c){const t=l.substr(1).trim().split(/\s+/),n=[];for(let e=0,r=t.length;e<r;e++){const i=t[e];if(i.length>0){const t=i.split("/");n.push(t)}}const i=n[0];for(let r=1,o=n.length-1;r<o;r++){const t=n[r],o=n[r+1];e.addFace(i[0],t[0],o[0],i[1],t[1],o[1],i[2],t[2],o[2])}}else if("l"===c){const t=l.substring(1).trim().split(" ");let n=[];const i=[];if(-1===l.indexOf("/"))n=t;else for(let e=0,r=t.length;e<r;e++){const r=t[e].split("/");""!==r[0]&&n.push(r[0]),""!==r[1]&&i.push(r[1])}e.addLineGeometry(n,i)}else if("p"===c){const t=l.substr(1).trim().split(" ");e.addPointGeometry(t)}else if(null!==(h=r.exec(l))){const t=(" "+h[0].substr(1).trim()).substr(1);e.startObject(t)}else if(a.test(l))e.object.startMaterial(l.substring(7).trim(),e.materialLibraries);else if(o.test(l))e.materialLibraries.push(l.substring(7).trim());else if(s.test(l))console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');else if("s"===c){if(h=l.split(" "),h.length>1){const t=h[1].trim().toLowerCase();e.object.smooth="0"!==t&&"off"!==t}else e.object.smooth=!0;const t=e.object.currentMaterial();t&&(t.smooth=e.object.smooth)}else{if("\0"===l)continue;console.warn('THREE.OBJLoader: Unexpected line: "'+l+'"')}e.finalize();const f=new i.Group;if(f.materialLibraries=[].concat(e.materialLibraries),!0===!(1===e.objects.length&&0===e.objects[0].geometry.vertices.length))for(let r=0,o=e.objects.length;r<o;r++){const t=e.objects[r],n=t.geometry,o=t.materials,a="Line"===n.type,s="Points"===n.type;let l=!1;if(0===n.vertices.length)continue;const c=new i.BufferGeometry;c.setAttribute("position",new i.Float32BufferAttribute(n.vertices,3)),n.normals.length>0&&c.setAttribute("normal",new i.Float32BufferAttribute(n.normals,3)),n.colors.length>0&&(l=!0,c.setAttribute("color",new i.Float32BufferAttribute(n.colors,3))),!0===n.hasUVIndices&&c.setAttribute("uv",new i.Float32BufferAttribute(n.uvs,2));const u=[];for(let r=0,d=o.length;r<d;r++){const t=o[r],n=t.name+"_"+t.smooth+"_"+l;let c=e.materials[n];if(null!==this.materials)if(c=this.materials.create(t.name),!a||!c||c instanceof i.LineBasicMaterial){if(s&&c&&!(c instanceof i.PointsMaterial)){const t=new i.PointsMaterial({size:10,sizeAttenuation:!1});i.Material.prototype.copy.call(t,c),t.color.copy(c.color),t.map=c.map,c=t}}else{const t=new i.LineBasicMaterial;i.Material.prototype.copy.call(t,c),t.color.copy(c.color),c=t}void 0===c&&(c=a?new i.LineBasicMaterial:s?new i.PointsMaterial({size:1,sizeAttenuation:!1}):new i.MeshPhongMaterial,c.name=t.name,c.flatShading=!t.smooth,c.vertexColors=l,e.materials[n]=c),u.push(c)}let h;if(u.length>1){for(let t=0,e=o.length;t<e;t++){const e=o[t];c.addGroup(e.groupStart,e.groupCount,t)}h=a?new i.LineSegments(c,u):s?new i.Points(c,u):new i.Mesh(c,u)}else h=a?new i.LineSegments(c,u[0]):s?new i.Points(c,u[0]):new i.Mesh(c,u[0]);h.name=t.name,f.add(h)}else if(e.vertices.length>0){const t=new i.PointsMaterial({size:1,sizeAttenuation:!1}),n=new i.BufferGeometry;n.setAttribute("position",new i.Float32BufferAttribute(e.vertices,3)),e.colors.length>0&&void 0!==e.colors[0]&&(n.setAttribute("color",new i.Float32BufferAttribute(e.colors,3)),t.vertexColors=!0);const r=new i.Points(n,t);f.add(r)}return f}}},6634:function(t,e,n){"use strict";n.r(e),n.d(e,{ReflectorForSSRPass:function(){return r}});var i=n(5644);class r extends i.Mesh{constructor(t,e={}){super(t),this.type="ReflectorForSSRPass";const n=this,o=void 0!==e.color?new i.Color(e.color):new i.Color(8355711),a=e.textureWidth||512,s=e.textureHeight||512,l=e.clipBias||0,c=e.shader||r.ReflectorShader,u=!0===e.useDepthTexture,h=new i.Vector3(0,1,0),d=new i.Vector3,p=new i.Vector3;n.needsUpdate=!1,n.maxDistance=r.ReflectorShader.uniforms.maxDistance.value,n.opacity=r.ReflectorShader.uniforms.opacity.value,n.color=o,n.resolution=e.resolution||new i.Vector2(window.innerWidth,window.innerHeight),n._distanceAttenuation=r.ReflectorShader.defines.DISTANCE_ATTENUATION,Object.defineProperty(n,"distanceAttenuation",{get(){return n._distanceAttenuation},set(t){n._distanceAttenuation!==t&&(n._distanceAttenuation=t,n.material.defines.DISTANCE_ATTENUATION=t,n.material.needsUpdate=!0)}}),n._fresnel=r.ReflectorShader.defines.FRESNEL,Object.defineProperty(n,"fresnel",{get(){return n._fresnel},set(t){n._fresnel!==t&&(n._fresnel=t,n.material.defines.FRESNEL=t,n.material.needsUpdate=!0)}});const f=new i.Vector3,g=new i.Vector3,m=new i.Vector3,v=new i.Matrix4,y=new i.Vector3(0,0,-1),b=new i.Vector3,x=new i.Vector3,w=new i.Matrix4,_=new i.PerspectiveCamera;let C;u&&(C=new i.DepthTexture,C.type=i.UnsignedShortType,C.minFilter=i.NearestFilter,C.magFilter=i.NearestFilter);const A={minFilter:i.LinearFilter,magFilter:i.LinearFilter,format:i.RGBFormat,depthTexture:u?C:null},I=new i.WebGLRenderTarget(a,s,A);(!i.MathUtils.isPowerOfTwo(a)||!i.MathUtils.isPowerOfTwo(s))&&(I.texture.generateMipmaps=!1);const S=new i.ShaderMaterial({transparent:u,defines:Object.assign({},r.ReflectorShader.defines,{useDepthTexture:u}),uniforms:i.UniformsUtils.clone(c.uniforms),fragmentShader:c.fragmentShader,vertexShader:c.vertexShader});S.uniforms.tDiffuse.value=I.texture,S.uniforms.color.value=n.color,S.uniforms.textureMatrix.value=w,u&&(S.uniforms.tDepth.value=I.depthTexture),this.material=S;const M=[new i.Plane(new i.Vector3(0,1,0),l)];this.doRender=function(t,e,i){if(S.uniforms.maxDistance.value=n.maxDistance,S.uniforms.color.value=n.color,S.uniforms.opacity.value=n.opacity,d.copy(i.position).normalize(),p.copy(d).reflect(h),S.uniforms.fresnelCoe.value=(d.dot(p)+1)/2,g.setFromMatrixPosition(n.matrixWorld),m.setFromMatrixPosition(i.matrixWorld),v.extractRotation(n.matrixWorld),f.set(0,0,1),f.applyMatrix4(v),b.subVectors(g,m),b.dot(f)>0)return;b.reflect(f).negate(),b.add(g),v.extractRotation(i.matrixWorld),y.set(0,0,-1),y.applyMatrix4(v),y.add(m),x.subVectors(g,y),x.reflect(f).negate(),x.add(g),_.position.copy(b),_.up.set(0,1,0),_.up.applyMatrix4(v),_.up.reflect(f),_.lookAt(x),_.far=i.far,_.updateMatrixWorld(),_.projectionMatrix.copy(i.projectionMatrix),S.uniforms.virtualCameraNear.value=i.near,S.uniforms.virtualCameraFar.value=i.far,S.uniforms.virtualCameraMatrixWorld.value=_.matrixWorld,S.uniforms.virtualCameraProjectionMatrix.value=i.projectionMatrix,S.uniforms.virtualCameraProjectionMatrixInverse.value=i.projectionMatrixInverse,S.uniforms.resolution.value=n.resolution,w.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),w.multiply(_.projectionMatrix),w.multiply(_.matrixWorldInverse),w.multiply(n.matrixWorld),I.texture.encoding=t.outputEncoding;const r=t.getRenderTarget(),o=t.xr.enabled,a=t.shadowMap.autoUpdate,s=t.clippingPlanes;t.xr.enabled=!1,t.shadowMap.autoUpdate=!1,t.clippingPlanes=M,t.setRenderTarget(I),t.state.buffers.depth.setMask(!0),!1===t.autoClear&&t.clear(),t.render(e,_),t.xr.enabled=o,t.shadowMap.autoUpdate=a,t.clippingPlanes=s,t.setRenderTarget(r);const l=i.viewport;void 0!==l&&t.state.viewport(l)},this.getRenderTarget=function(){return I}}}r.prototype.isReflectorForSSRPass=!0,r.ReflectorShader={defines:{DISTANCE_ATTENUATION:!0,FRESNEL:!0},uniforms:{color:{value:null},tDiffuse:{value:null},tDepth:{value:null},textureMatrix:{value:new i.Matrix4},maxDistance:{value:180},opacity:{value:.5},fresnelCoe:{value:null},virtualCameraNear:{value:null},virtualCameraFar:{value:null},virtualCameraProjectionMatrix:{value:new i.Matrix4},virtualCameraMatrixWorld:{value:new i.Matrix4},virtualCameraProjectionMatrixInverse:{value:new i.Matrix4},resolution:{value:new i.Vector2}},vertexShader:"\n\t\tuniform mat4 textureMatrix;\n\t\tvarying vec4 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = textureMatrix * vec4( position, 1.0 );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\t\tuniform vec3 color;\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform sampler2D tDepth;\n\t\tuniform float maxDistance;\n\t\tuniform float opacity;\n\t\tuniform float fresnelCoe;\n\t\tuniform float virtualCameraNear;\n\t\tuniform float virtualCameraFar;\n\t\tuniform mat4 virtualCameraProjectionMatrix;\n\t\tuniform mat4 virtualCameraProjectionMatrixInverse;\n\t\tuniform mat4 virtualCameraMatrixWorld;\n\t\tuniform vec2 resolution;\n\t\tvarying vec4 vUv;\n\t\t#include <packing>\n\t\tfloat blendOverlay( float base, float blend ) {\n\t\t\treturn( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\t\t}\n\t\tvec3 blendOverlay( vec3 base, vec3 blend ) {\n\t\t\treturn vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\t\t}\n\t\tfloat getDepth( const in vec2 uv ) {\n\t\t\treturn texture2D( tDepth, uv ).x;\n\t\t}\n\t\tfloat getViewZ( const in float depth ) {\n\t\t\treturn perspectiveDepthToViewZ( depth, virtualCameraNear, virtualCameraFar );\n\t\t}\n\t\tvec3 getViewPosition( const in vec2 uv, const in float depth/*clip space*/, const in float clipW ) {\n\t\t\tvec4 clipPosition = vec4( ( vec3( uv, depth ) - 0.5 ) * 2.0, 1.0 );//ndc\n\t\t\tclipPosition *= clipW; //clip\n\t\t\treturn ( virtualCameraProjectionMatrixInverse * clipPosition ).xyz;//view\n\t\t}\n\t\tvoid main() {\n\t\t\tvec4 base = texture2DProj( tDiffuse, vUv );\n\t\t\t#ifdef useDepthTexture\n\t\t\t\tvec2 uv=(gl_FragCoord.xy-.5)/resolution.xy;\n\t\t\t\tuv.x=1.-uv.x;\n\t\t\t\tfloat depth = texture2DProj( tDepth, vUv ).r;\n\t\t\t\tfloat viewZ = getViewZ( depth );\n\t\t\t\tfloat clipW = virtualCameraProjectionMatrix[2][3] * viewZ+virtualCameraProjectionMatrix[3][3];\n\t\t\t\tvec3 viewPosition=getViewPosition( uv, depth, clipW );\n\t\t\t\tvec3 worldPosition=(virtualCameraMatrixWorld*vec4(viewPosition,1)).xyz;\n\t\t\t\tif(worldPosition.y>maxDistance) discard;\n\t\t\t\tfloat op=opacity;\n\t\t\t\t#ifdef DISTANCE_ATTENUATION\n\t\t\t\t\tfloat ratio=1.-(worldPosition.y/maxDistance);\n\t\t\t\t\tfloat attenuation=ratio*ratio;\n\t\t\t\t\top=opacity*attenuation;\n\t\t\t\t#endif\n\t\t\t\t#ifdef FRESNEL\n\t\t\t\t\top*=fresnelCoe;\n\t\t\t\t#endif\n\t\t\t\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), op );\n\t\t\t#else\n\t\t\t\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\t\t\t#endif\n\t\t}\n\t"}},5786:function(t,e,n){"use strict";n.r(e),n.d(e,{EffectComposer:function(){return c},FullScreenQuad:function(){return p},Pass:function(){return u}});var i=n(5644),r=n(1154),o=n(7531),a=n(8304);class s extends a.Pass{constructor(t,e){super(),this.scene=t,this.camera=e,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(t,e,n){const i=t.getContext(),r=t.state;let o,a;r.buffers.color.setMask(!1),r.buffers.depth.setMask(!1),r.buffers.color.setLocked(!0),r.buffers.depth.setLocked(!0),this.inverse?(o=0,a=1):(o=1,a=0),r.buffers.stencil.setTest(!0),r.buffers.stencil.setOp(i.REPLACE,i.REPLACE,i.REPLACE),r.buffers.stencil.setFunc(i.ALWAYS,o,4294967295),r.buffers.stencil.setClear(a),r.buffers.stencil.setLocked(!0),t.setRenderTarget(n),this.clear&&t.clear(),t.render(this.scene,this.camera),t.setRenderTarget(e),this.clear&&t.clear(),t.render(this.scene,this.camera),r.buffers.color.setLocked(!1),r.buffers.depth.setLocked(!1),r.buffers.stencil.setLocked(!1),r.buffers.stencil.setFunc(i.EQUAL,1,4294967295),r.buffers.stencil.setOp(i.KEEP,i.KEEP,i.KEEP),r.buffers.stencil.setLocked(!0)}}class l extends a.Pass{constructor(){super(),this.needsSwap=!1}render(t){t.state.buffers.stencil.setLocked(!1),t.state.buffers.stencil.setTest(!1)}}class c{constructor(t,e){if(this.renderer=t,void 0===e){const n={minFilter:i.LinearFilter,magFilter:i.LinearFilter,format:i.RGBAFormat},r=t.getSize(new i.Vector2);this._pixelRatio=t.getPixelRatio(),this._width=r.width,this._height=r.height,e=new i.WebGLRenderTarget(this._width*this._pixelRatio,this._height*this._pixelRatio,n),e.texture.name="EffectComposer.rt1"}else this._pixelRatio=1,this._width=e.width,this._height=e.height;this.renderTarget1=e,this.renderTarget2=e.clone(),this.renderTarget2.texture.name="EffectComposer.rt2",this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],void 0===r.CopyShader&&console.error("THREE.EffectComposer relies on CopyShader"),void 0===o.ShaderPass&&console.error("THREE.EffectComposer relies on ShaderPass"),this.copyPass=new o.ShaderPass(r.CopyShader),this.clock=new i.Clock}swapBuffers(){const t=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=t}addPass(t){this.passes.push(t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(t,e){this.passes.splice(e,0,t),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(t){const e=this.passes.indexOf(t);-1!==e&&this.passes.splice(e,1)}isLastEnabledPass(t){for(let e=t+1;e<this.passes.length;e++)if(this.passes[e].enabled)return!1;return!0}render(t){void 0===t&&(t=this.clock.getDelta());const e=this.renderer.getRenderTarget();let n=!1;for(let i=0,r=this.passes.length;i<r;i++){const e=this.passes[i];if(!1!==e.enabled){if(e.renderToScreen=this.renderToScreen&&this.isLastEnabledPass(i),e.render(this.renderer,this.writeBuffer,this.readBuffer,t,n),e.needsSwap){if(n){const e=this.renderer.getContext(),n=this.renderer.state.buffers.stencil;n.setFunc(e.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,t),n.setFunc(e.EQUAL,1,4294967295)}this.swapBuffers()}void 0!==s&&(e instanceof s?n=!0:e instanceof l&&(n=!1))}}this.renderer.setRenderTarget(e)}reset(t){if(void 0===t){const e=this.renderer.getSize(new i.Vector2);this._pixelRatio=this.renderer.getPixelRatio(),this._width=e.width,this._height=e.height,t=this.renderTarget1.clone(),t.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=t,this.renderTarget2=t.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2}setSize(t,e){this._width=t,this._height=e;const n=this._width*this._pixelRatio,i=this._height*this._pixelRatio;this.renderTarget1.setSize(n,i),this.renderTarget2.setSize(n,i);for(let r=0;r<this.passes.length;r++)this.passes[r].setSize(n,i)}setPixelRatio(t){this._pixelRatio=t,this.setSize(this._width,this._height)}}class u{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const h=new i.OrthographicCamera(-1,1,1,-1,0,1),d=new i.BufferGeometry;d.setAttribute("position",new i.Float32BufferAttribute([-1,3,0,-1,-1,0,3,-1,0],3)),d.setAttribute("uv",new i.Float32BufferAttribute([0,2,0,0,2,0],2));class p{constructor(t){this._mesh=new i.Mesh(d,t)}dispose(){this._mesh.geometry.dispose()}render(t){t.render(this._mesh,h)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}}},8939:function(t,e,n){"use strict";n.r(e),n.d(e,{OutlinePass:function(){return a}});var i=n(5644),r=n(8304),o=n(1154);class a extends r.Pass{constructor(t,e,n,a){super(),this.renderScene=e,this.renderCamera=n,this.selectedObjects=void 0!==a?a:[],this.visibleEdgeColor=new i.Color(1,1,1),this.hiddenEdgeColor=new i.Color(.1,.04,.02),this.edgeGlow=0,this.usePatternTexture=!1,this.edgeThickness=1,this.edgeStrength=3,this.downSampleRatio=2,this.pulsePeriod=0,this._visibilityCache=new Map,this.resolution=void 0!==t?new i.Vector2(t.x,t.y):new i.Vector2(256,256);const s={minFilter:i.LinearFilter,magFilter:i.LinearFilter,format:i.RGBAFormat},l=Math.round(this.resolution.x/this.downSampleRatio),c=Math.round(this.resolution.y/this.downSampleRatio);this.maskBufferMaterial=new i.MeshBasicMaterial({color:16777215}),this.maskBufferMaterial.side=i.DoubleSide,this.renderTargetMaskBuffer=new i.WebGLRenderTarget(this.resolution.x,this.resolution.y,s),this.renderTargetMaskBuffer.texture.name="OutlinePass.mask",this.renderTargetMaskBuffer.texture.generateMipmaps=!1,this.depthMaterial=new i.MeshDepthMaterial,this.depthMaterial.side=i.DoubleSide,this.depthMaterial.depthPacking=i.RGBADepthPacking,this.depthMaterial.blending=i.NoBlending,this.prepareMaskMaterial=this.getPrepareMaskMaterial(),this.prepareMaskMaterial.side=i.DoubleSide,this.prepareMaskMaterial.fragmentShader=p(this.prepareMaskMaterial.fragmentShader,this.renderCamera),this.renderTargetDepthBuffer=new i.WebGLRenderTarget(this.resolution.x,this.resolution.y,s),this.renderTargetDepthBuffer.texture.name="OutlinePass.depth",this.renderTargetDepthBuffer.texture.generateMipmaps=!1,this.renderTargetMaskDownSampleBuffer=new i.WebGLRenderTarget(l,c,s),this.renderTargetMaskDownSampleBuffer.texture.name="OutlinePass.depthDownSample",this.renderTargetMaskDownSampleBuffer.texture.generateMipmaps=!1,this.renderTargetBlurBuffer1=new i.WebGLRenderTarget(l,c,s),this.renderTargetBlurBuffer1.texture.name="OutlinePass.blur1",this.renderTargetBlurBuffer1.texture.generateMipmaps=!1,this.renderTargetBlurBuffer2=new i.WebGLRenderTarget(Math.round(l/2),Math.round(c/2),s),this.renderTargetBlurBuffer2.texture.name="OutlinePass.blur2",this.renderTargetBlurBuffer2.texture.generateMipmaps=!1,this.edgeDetectionMaterial=this.getEdgeDetectionMaterial(),this.renderTargetEdgeBuffer1=new i.WebGLRenderTarget(l,c,s),this.renderTargetEdgeBuffer1.texture.name="OutlinePass.edge1",this.renderTargetEdgeBuffer1.texture.generateMipmaps=!1,this.renderTargetEdgeBuffer2=new i.WebGLRenderTarget(Math.round(l/2),Math.round(c/2),s),this.renderTargetEdgeBuffer2.texture.name="OutlinePass.edge2",this.renderTargetEdgeBuffer2.texture.generateMipmaps=!1;const u=4,h=4;this.separableBlurMaterial1=this.getSeperableBlurMaterial(u),this.separableBlurMaterial1.uniforms.texSize.value.set(l,c),this.separableBlurMaterial1.uniforms.kernelRadius.value=1,this.separableBlurMaterial2=this.getSeperableBlurMaterial(h),this.separableBlurMaterial2.uniforms.texSize.value.set(Math.round(l/2),Math.round(c/2)),this.separableBlurMaterial2.uniforms.kernelRadius.value=h,this.overlayMaterial=this.getOverlayMaterial(),void 0===o.CopyShader&&console.error("THREE.OutlinePass relies on CopyShader");const d=o.CopyShader;function p(t,e){var n=e.isPerspectiveCamera?"perspective":"orthographic";return t.replace(/DEPTH_TO_VIEW_Z/g,n+"DepthToViewZ")}this.copyUniforms=i.UniformsUtils.clone(d.uniforms),this.copyUniforms.opacity.value=1,this.materialCopy=new i.ShaderMaterial({uniforms:this.copyUniforms,vertexShader:d.vertexShader,fragmentShader:d.fragmentShader,blending:i.NoBlending,depthTest:!1,depthWrite:!1,transparent:!0}),this.enabled=!0,this.needsSwap=!1,this._oldClearColor=new i.Color,this.oldClearAlpha=1,this.fsQuad=new r.FullScreenQuad(null),this.tempPulseColor1=new i.Color,this.tempPulseColor2=new i.Color,this.textureMatrix=new i.Matrix4}dispose(){this.renderTargetMaskBuffer.dispose(),this.renderTargetDepthBuffer.dispose(),this.renderTargetMaskDownSampleBuffer.dispose(),this.renderTargetBlurBuffer1.dispose(),this.renderTargetBlurBuffer2.dispose(),this.renderTargetEdgeBuffer1.dispose(),this.renderTargetEdgeBuffer2.dispose()}setSize(t,e){this.renderTargetMaskBuffer.setSize(t,e),this.renderTargetDepthBuffer.setSize(t,e);let n=Math.round(t/this.downSampleRatio),i=Math.round(e/this.downSampleRatio);this.renderTargetMaskDownSampleBuffer.setSize(n,i),this.renderTargetBlurBuffer1.setSize(n,i),this.renderTargetEdgeBuffer1.setSize(n,i),this.separableBlurMaterial1.uniforms.texSize.value.set(n,i),n=Math.round(n/2),i=Math.round(i/2),this.renderTargetBlurBuffer2.setSize(n,i),this.renderTargetEdgeBuffer2.setSize(n,i),this.separableBlurMaterial2.uniforms.texSize.value.set(n,i)}changeVisibilityOfSelectedObjects(t){const e=this._visibilityCache;function n(n){n.isMesh&&(!0===t?n.visible=e.get(n):(e.set(n,n.visible),n.visible=t))}for(let i=0;i<this.selectedObjects.length;i++)this.selectedObjects[i].traverse(n)}changeVisibilityOfNonSelectedObjects(t){const e=this._visibilityCache,n=[];function i(t){t.isMesh&&n.push(t)}for(let o=0;o<this.selectedObjects.length;o++)this.selectedObjects[o].traverse(i);function r(i){if(i.isMesh||i.isSprite){let r=!1;for(let t=0;t<n.length;t++)if(n[t].id===i.id){r=!0;break}if(!1===r){const n=i.visible;(!1===t||!0===e.get(i))&&(i.visible=t),e.set(i,n)}}else(i.isPoints||i.isLine)&&(!0===t?i.visible=e.get(i):(e.set(i,i.visible),i.visible=t))}this.renderScene.traverse(r)}updateTextureMatrix(){this.textureMatrix.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),this.textureMatrix.multiply(this.renderCamera.projectionMatrix),this.textureMatrix.multiply(this.renderCamera.matrixWorldInverse)}render(t,e,n,i,r){if(this.selectedObjects.length>0){t.getClearColor(this._oldClearColor),this.oldClearAlpha=t.getClearAlpha();const e=t.autoClear;t.autoClear=!1,r&&t.state.buffers.stencil.setTest(!1),t.setClearColor(16777215,1),this.changeVisibilityOfSelectedObjects(!1);const i=this.renderScene.background;if(this.renderScene.background=null,this.renderScene.overrideMaterial=this.depthMaterial,t.setRenderTarget(this.renderTargetDepthBuffer),t.clear(),t.render(this.renderScene,this.renderCamera),this.changeVisibilityOfSelectedObjects(!0),this._visibilityCache.clear(),this.updateTextureMatrix(),this.changeVisibilityOfNonSelectedObjects(!1),this.renderScene.overrideMaterial=this.prepareMaskMaterial,this.prepareMaskMaterial.uniforms.cameraNearFar.value.set(this.renderCamera.near,this.renderCamera.far),this.prepareMaskMaterial.uniforms.depthTexture.value=this.renderTargetDepthBuffer.texture,this.prepareMaskMaterial.uniforms.textureMatrix.value=this.textureMatrix,t.setRenderTarget(this.renderTargetMaskBuffer),t.clear(),t.render(this.renderScene,this.renderCamera),this.renderScene.overrideMaterial=null,this.changeVisibilityOfNonSelectedObjects(!0),this._visibilityCache.clear(),this.renderScene.background=i,this.fsQuad.material=this.materialCopy,this.copyUniforms.tDiffuse.value=this.renderTargetMaskBuffer.texture,t.setRenderTarget(this.renderTargetMaskDownSampleBuffer),t.clear(),this.fsQuad.render(t),this.tempPulseColor1.copy(this.visibleEdgeColor),this.tempPulseColor2.copy(this.hiddenEdgeColor),this.pulsePeriod>0){const t=.625+.75*Math.cos(.01*performance.now()/this.pulsePeriod)/2;this.tempPulseColor1.multiplyScalar(t),this.tempPulseColor2.multiplyScalar(t)}this.fsQuad.material=this.edgeDetectionMaterial,this.edgeDetectionMaterial.uniforms.maskTexture.value=this.renderTargetMaskDownSampleBuffer.texture,this.edgeDetectionMaterial.uniforms.texSize.value.set(this.renderTargetMaskDownSampleBuffer.width,this.renderTargetMaskDownSampleBuffer.height),this.edgeDetectionMaterial.uniforms.visibleEdgeColor.value=this.tempPulseColor1,this.edgeDetectionMaterial.uniforms.hiddenEdgeColor.value=this.tempPulseColor2,t.setRenderTarget(this.renderTargetEdgeBuffer1),t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.separableBlurMaterial1,this.separableBlurMaterial1.uniforms.colorTexture.value=this.renderTargetEdgeBuffer1.texture,this.separableBlurMaterial1.uniforms.direction.value=a.BlurDirectionX,this.separableBlurMaterial1.uniforms.kernelRadius.value=this.edgeThickness,t.setRenderTarget(this.renderTargetBlurBuffer1),t.clear(),this.fsQuad.render(t),this.separableBlurMaterial1.uniforms.colorTexture.value=this.renderTargetBlurBuffer1.texture,this.separableBlurMaterial1.uniforms.direction.value=a.BlurDirectionY,t.setRenderTarget(this.renderTargetEdgeBuffer1),t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.separableBlurMaterial2,this.separableBlurMaterial2.uniforms.colorTexture.value=this.renderTargetEdgeBuffer1.texture,this.separableBlurMaterial2.uniforms.direction.value=a.BlurDirectionX,t.setRenderTarget(this.renderTargetBlurBuffer2),t.clear(),this.fsQuad.render(t),this.separableBlurMaterial2.uniforms.colorTexture.value=this.renderTargetBlurBuffer2.texture,this.separableBlurMaterial2.uniforms.direction.value=a.BlurDirectionY,t.setRenderTarget(this.renderTargetEdgeBuffer2),t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.overlayMaterial,this.overlayMaterial.uniforms.maskTexture.value=this.renderTargetMaskBuffer.texture,this.overlayMaterial.uniforms.edgeTexture1.value=this.renderTargetEdgeBuffer1.texture,this.overlayMaterial.uniforms.edgeTexture2.value=this.renderTargetEdgeBuffer2.texture,this.overlayMaterial.uniforms.patternTexture.value=this.patternTexture,this.overlayMaterial.uniforms.edgeStrength.value=this.edgeStrength,this.overlayMaterial.uniforms.edgeGlow.value=this.edgeGlow,this.overlayMaterial.uniforms.usePatternTexture.value=this.usePatternTexture,r&&t.state.buffers.stencil.setTest(!0),t.setRenderTarget(n),this.fsQuad.render(t),t.setClearColor(this._oldClearColor,this.oldClearAlpha),t.autoClear=e}this.renderToScreen&&(this.fsQuad.material=this.materialCopy,this.copyUniforms.tDiffuse.value=n.texture,t.setRenderTarget(null),this.fsQuad.render(t))}getPrepareMaskMaterial(){return new i.ShaderMaterial({uniforms:{depthTexture:{value:null},cameraNearFar:{value:new i.Vector2(.5,.5)},textureMatrix:{value:null}},vertexShader:"#include <morphtarget_pars_vertex>\n\t\t\t\t#include <skinning_pars_vertex>\n\n\t\t\t\tvarying vec4 projTexCoord;\n\t\t\t\tvarying vec4 vPosition;\n\t\t\t\tuniform mat4 textureMatrix;\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\t#include <skinbase_vertex>\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <morphtarget_vertex>\n\t\t\t\t\t#include <skinning_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t\tvPosition = mvPosition;\n\t\t\t\t\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\n\t\t\t\t\tprojTexCoord = textureMatrix * worldPosition;\n\n\t\t\t\t}",fragmentShader:"#include <packing>\n\t\t\t\tvarying vec4 vPosition;\n\t\t\t\tvarying vec4 projTexCoord;\n\t\t\t\tuniform sampler2D depthTexture;\n\t\t\t\tuniform vec2 cameraNearFar;\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tfloat depth = unpackRGBAToDepth(texture2DProj( depthTexture, projTexCoord ));\n\t\t\t\t\tfloat viewZ = - DEPTH_TO_VIEW_Z( depth, cameraNearFar.x, cameraNearFar.y );\n\t\t\t\t\tfloat depthTest = (-vPosition.z > viewZ) ? 1.0 : 0.0;\n\t\t\t\t\tgl_FragColor = vec4(0.0, depthTest, 1.0, 1.0);\n\n\t\t\t\t}"})}getEdgeDetectionMaterial(){return new i.ShaderMaterial({uniforms:{maskTexture:{value:null},texSize:{value:new i.Vector2(.5,.5)},visibleEdgeColor:{value:new i.Vector3(1,1,1)},hiddenEdgeColor:{value:new i.Vector3(1,1,1)}},vertexShader:"varying vec2 vUv;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"varying vec2 vUv;\n\n\t\t\t\tuniform sampler2D maskTexture;\n\t\t\t\tuniform vec2 texSize;\n\t\t\t\tuniform vec3 visibleEdgeColor;\n\t\t\t\tuniform vec3 hiddenEdgeColor;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvec2 invSize = 1.0 / texSize;\n\t\t\t\t\tvec4 uvOffset = vec4(1.0, 0.0, 0.0, 1.0) * vec4(invSize, invSize);\n\t\t\t\t\tvec4 c1 = texture2D( maskTexture, vUv + uvOffset.xy);\n\t\t\t\t\tvec4 c2 = texture2D( maskTexture, vUv - uvOffset.xy);\n\t\t\t\t\tvec4 c3 = texture2D( maskTexture, vUv + uvOffset.yw);\n\t\t\t\t\tvec4 c4 = texture2D( maskTexture, vUv - uvOffset.yw);\n\t\t\t\t\tfloat diff1 = (c1.r - c2.r)*0.5;\n\t\t\t\t\tfloat diff2 = (c3.r - c4.r)*0.5;\n\t\t\t\t\tfloat d = length( vec2(diff1, diff2) );\n\t\t\t\t\tfloat a1 = min(c1.g, c2.g);\n\t\t\t\t\tfloat a2 = min(c3.g, c4.g);\n\t\t\t\t\tfloat visibilityFactor = min(a1, a2);\n\t\t\t\t\tvec3 edgeColor = 1.0 - visibilityFactor > 0.001 ? visibleEdgeColor : hiddenEdgeColor;\n\t\t\t\t\tgl_FragColor = vec4(edgeColor, 1.0) * vec4(d);\n\t\t\t\t}"})}getSeperableBlurMaterial(t){return new i.ShaderMaterial({defines:{MAX_RADIUS:t},uniforms:{colorTexture:{value:null},texSize:{value:new i.Vector2(.5,.5)},direction:{value:new i.Vector2(.5,.5)},kernelRadius:{value:1}},vertexShader:"varying vec2 vUv;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"#include <common>\n\t\t\t\tvarying vec2 vUv;\n\t\t\t\tuniform sampler2D colorTexture;\n\t\t\t\tuniform vec2 texSize;\n\t\t\t\tuniform vec2 direction;\n\t\t\t\tuniform float kernelRadius;\n\n\t\t\t\tfloat gaussianPdf(in float x, in float sigma) {\n\t\t\t\t\treturn 0.39894 * exp( -0.5 * x * x/( sigma * sigma))/sigma;\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvec2 invSize = 1.0 / texSize;\n\t\t\t\t\tfloat weightSum = gaussianPdf(0.0, kernelRadius);\n\t\t\t\t\tvec4 diffuseSum = texture2D( colorTexture, vUv) * weightSum;\n\t\t\t\t\tvec2 delta = direction * invSize * kernelRadius/float(MAX_RADIUS);\n\t\t\t\t\tvec2 uvOffset = delta;\n\t\t\t\t\tfor( int i = 1; i <= MAX_RADIUS; i ++ ) {\n\t\t\t\t\t\tfloat w = gaussianPdf(uvOffset.x, kernelRadius);\n\t\t\t\t\t\tvec4 sample1 = texture2D( colorTexture, vUv + uvOffset);\n\t\t\t\t\t\tvec4 sample2 = texture2D( colorTexture, vUv - uvOffset);\n\t\t\t\t\t\tdiffuseSum += ((sample1 + sample2) * w);\n\t\t\t\t\t\tweightSum += (2.0 * w);\n\t\t\t\t\t\tuvOffset += delta;\n\t\t\t\t\t}\n\t\t\t\t\tgl_FragColor = diffuseSum/weightSum;\n\t\t\t\t}"})}getOverlayMaterial(){return new i.ShaderMaterial({uniforms:{maskTexture:{value:null},edgeTexture1:{value:null},edgeTexture2:{value:null},patternTexture:{value:null},edgeStrength:{value:1},edgeGlow:{value:1},usePatternTexture:{value:0}},vertexShader:"varying vec2 vUv;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvUv = uv;\n\t\t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\t\t\t\t}",fragmentShader:"varying vec2 vUv;\n\n\t\t\t\tuniform sampler2D maskTexture;\n\t\t\t\tuniform sampler2D edgeTexture1;\n\t\t\t\tuniform sampler2D edgeTexture2;\n\t\t\t\tuniform sampler2D patternTexture;\n\t\t\t\tuniform float edgeStrength;\n\t\t\t\tuniform float edgeGlow;\n\t\t\t\tuniform bool usePatternTexture;\n\n\t\t\t\tvoid main() {\n\t\t\t\t\tvec4 edgeValue1 = texture2D(edgeTexture1, vUv);\n\t\t\t\t\tvec4 edgeValue2 = texture2D(edgeTexture2, vUv);\n\t\t\t\t\tvec4 maskColor = texture2D(maskTexture, vUv);\n\t\t\t\t\tvec4 patternColor = texture2D(patternTexture, 6.0 * vUv);\n\t\t\t\t\tfloat visibilityFactor = 1.0 - maskColor.g > 0.0 ? 1.0 : 0.5;\n\t\t\t\t\tvec4 edgeValue = edgeValue1 + edgeValue2 * edgeGlow;\n\t\t\t\t\tvec4 finalColor = edgeStrength * maskColor.r * edgeValue;\n\t\t\t\t\tif(usePatternTexture)\n\t\t\t\t\t\tfinalColor += + visibilityFactor * (1.0 - maskColor.r) * (1.0 - patternColor.r);\n\t\t\t\t\tgl_FragColor = finalColor;\n\t\t\t\t}",blending:i.AdditiveBlending,depthTest:!1,depthWrite:!1,transparent:!0})}}a.BlurDirectionX=new i.Vector2(1,0),a.BlurDirectionY=new i.Vector2(0,1)},8304:function(t,e,n){"use strict";n.r(e),n.d(e,{FullScreenQuad:function(){return s},Pass:function(){return r}});var i=n(5644);class r{constructor(){this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error("THREE.Pass: .render() must be implemented in derived pass.")}}const o=new i.OrthographicCamera(-1,1,1,-1,0,1),a=new i.BufferGeometry;a.setAttribute("position",new i.Float32BufferAttribute([-1,3,0,-1,-1,0,3,-1,0],3)),a.setAttribute("uv",new i.Float32BufferAttribute([0,2,0,0,2,0],2));class s{constructor(t){this._mesh=new i.Mesh(a,t)}dispose(){this._mesh.geometry.dispose()}render(t){t.render(this._mesh,o)}get material(){return this._mesh.material}set material(t){this._mesh.material=t}}},4458:function(t,e,n){"use strict";n.r(e),n.d(e,{RenderPass:function(){return o}});var i=n(5644),r=n(8304);class o extends r.Pass{constructor(t,e,n,r,o){super(),this.scene=t,this.camera=e,this.overrideMaterial=n,this.clearColor=r,this.clearAlpha=void 0!==o?o:0,this.clear=!0,this.clearDepth=!1,this.needsSwap=!1,this._oldClearColor=new i.Color}render(t,e,n){const i=t.autoClear;let r,o;t.autoClear=!1,void 0!==this.overrideMaterial&&(o=this.scene.overrideMaterial,this.scene.overrideMaterial=this.overrideMaterial),this.clearColor&&(t.getClearColor(this._oldClearColor),r=t.getClearAlpha(),t.setClearColor(this.clearColor,this.clearAlpha)),this.clearDepth&&t.clearDepth(),t.setRenderTarget(this.renderToScreen?null:n),this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),t.render(this.scene,this.camera),this.clearColor&&t.setClearColor(this._oldClearColor,r),void 0!==this.overrideMaterial&&(this.scene.overrideMaterial=o),t.autoClear=i}}},9707:function(t,e,n){"use strict";n.r(e),n.d(e,{SMAAPass:function(){return l}});var i=n(5644),r=n(8304);const o={defines:{SMAA_THRESHOLD:"0.1"},uniforms:{tDiffuse:{value:null},resolution:{value:new i.Vector2(1/1024,1/512)}},vertexShader:"\n\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 3 ];\n\n\t\tvoid SMAAEdgeDetectionVS( vec2 texcoord ) {\n\t\t\tvOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0,  1.0 ); // WebGL port note: Changed sign in W component\n\t\t\tvOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4(  1.0, 0.0, 0.0, -1.0 ); // WebGL port note: Changed sign in W component\n\t\t\tvOffset[ 2 ] = texcoord.xyxy + resolution.xyxy * vec4( -2.0, 0.0, 0.0,  2.0 ); // WebGL port note: Changed sign in W component\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tSMAAEdgeDetectionVS( vUv );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 3 ];\n\n\t\tvec4 SMAAColorEdgeDetectionPS( vec2 texcoord, vec4 offset[3], sampler2D colorTex ) {\n\t\t\tvec2 threshold = vec2( SMAA_THRESHOLD, SMAA_THRESHOLD );\n\n\t\t\t// Calculate color deltas:\n\t\t\tvec4 delta;\n\t\t\tvec3 C = texture2D( colorTex, texcoord ).rgb;\n\n\t\t\tvec3 Cleft = texture2D( colorTex, offset[0].xy ).rgb;\n\t\t\tvec3 t = abs( C - Cleft );\n\t\t\tdelta.x = max( max( t.r, t.g ), t.b );\n\n\t\t\tvec3 Ctop = texture2D( colorTex, offset[0].zw ).rgb;\n\t\t\tt = abs( C - Ctop );\n\t\t\tdelta.y = max( max( t.r, t.g ), t.b );\n\n\t\t\t// We do the usual threshold:\n\t\t\tvec2 edges = step( threshold, delta.xy );\n\n\t\t\t// Then discard if there is no edge:\n\t\t\tif ( dot( edges, vec2( 1.0, 1.0 ) ) == 0.0 )\n\t\t\t\tdiscard;\n\n\t\t\t// Calculate right and bottom deltas:\n\t\t\tvec3 Cright = texture2D( colorTex, offset[1].xy ).rgb;\n\t\t\tt = abs( C - Cright );\n\t\t\tdelta.z = max( max( t.r, t.g ), t.b );\n\n\t\t\tvec3 Cbottom  = texture2D( colorTex, offset[1].zw ).rgb;\n\t\t\tt = abs( C - Cbottom );\n\t\t\tdelta.w = max( max( t.r, t.g ), t.b );\n\n\t\t\t// Calculate the maximum delta in the direct neighborhood:\n\t\t\tfloat maxDelta = max( max( max( delta.x, delta.y ), delta.z ), delta.w );\n\n\t\t\t// Calculate left-left and top-top deltas:\n\t\t\tvec3 Cleftleft  = texture2D( colorTex, offset[2].xy ).rgb;\n\t\t\tt = abs( C - Cleftleft );\n\t\t\tdelta.z = max( max( t.r, t.g ), t.b );\n\n\t\t\tvec3 Ctoptop = texture2D( colorTex, offset[2].zw ).rgb;\n\t\t\tt = abs( C - Ctoptop );\n\t\t\tdelta.w = max( max( t.r, t.g ), t.b );\n\n\t\t\t// Calculate the final maximum delta:\n\t\t\tmaxDelta = max( max( maxDelta, delta.z ), delta.w );\n\n\t\t\t// Local contrast adaptation in action:\n\t\t\tedges.xy *= step( 0.5 * maxDelta, delta.xy );\n\n\t\t\treturn vec4( edges, 0.0, 0.0 );\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tgl_FragColor = SMAAColorEdgeDetectionPS( vUv, vOffset, tDiffuse );\n\n\t\t}"},a={defines:{SMAA_MAX_SEARCH_STEPS:"8",SMAA_AREATEX_MAX_DISTANCE:"16",SMAA_AREATEX_PIXEL_SIZE:"( 1.0 / vec2( 160.0, 560.0 ) )",SMAA_AREATEX_SUBTEX_SIZE:"( 1.0 / 7.0 )"},uniforms:{tDiffuse:{value:null},tArea:{value:null},tSearch:{value:null},resolution:{value:new i.Vector2(1/1024,1/512)}},vertexShader:"\n\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 3 ];\n\t\tvarying vec2 vPixcoord;\n\n\t\tvoid SMAABlendingWeightCalculationVS( vec2 texcoord ) {\n\t\t\tvPixcoord = texcoord / resolution;\n\n\t\t\t// We will use these offsets for the searches later on (see @PSEUDO_GATHER4):\n\t\t\tvOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.25, 0.125, 1.25, 0.125 ); // WebGL port note: Changed sign in Y and W components\n\t\t\tvOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.125, 0.25, -0.125, -1.25 ); // WebGL port note: Changed sign in Y and W components\n\n\t\t\t// And these for the searches, they indicate the ends of the loops:\n\t\t\tvOffset[ 2 ] = vec4( vOffset[ 0 ].xz, vOffset[ 1 ].yw ) + vec4( -2.0, 2.0, -2.0, 2.0 ) * resolution.xxyy * float( SMAA_MAX_SEARCH_STEPS );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tSMAABlendingWeightCalculationVS( vUv );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\t#define SMAASampleLevelZeroOffset( tex, coord, offset ) texture2D( tex, coord + float( offset ) * resolution, 0.0 )\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform sampler2D tArea;\n\t\tuniform sampler2D tSearch;\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[3];\n\t\tvarying vec2 vPixcoord;\n\n\t\t#if __VERSION__ == 100\n\t\tvec2 round( vec2 x ) {\n\t\t\treturn sign( x ) * floor( abs( x ) + 0.5 );\n\t\t}\n\t\t#endif\n\n\t\tfloat SMAASearchLength( sampler2D searchTex, vec2 e, float bias, float scale ) {\n\t\t\t// Not required if searchTex accesses are set to point:\n\t\t\t// float2 SEARCH_TEX_PIXEL_SIZE = 1.0 / float2(66.0, 33.0);\n\t\t\t// e = float2(bias, 0.0) + 0.5 * SEARCH_TEX_PIXEL_SIZE +\n\t\t\t//     e * float2(scale, 1.0) * float2(64.0, 32.0) * SEARCH_TEX_PIXEL_SIZE;\n\t\t\te.r = bias + e.r * scale;\n\t\t\treturn 255.0 * texture2D( searchTex, e, 0.0 ).r;\n\t\t}\n\n\t\tfloat SMAASearchXLeft( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {\n\t\t\t/**\n\t\t\t\t* @PSEUDO_GATHER4\n\t\t\t\t* This texcoord has been offset by (-0.25, -0.125) in the vertex shader to\n\t\t\t\t* sample between edge, thus fetching four edges in a row.\n\t\t\t\t* Sampling with different offsets in each direction allows to disambiguate\n\t\t\t\t* which edges are active from the four fetched ones.\n\t\t\t\t*/\n\t\t\tvec2 e = vec2( 0.0, 1.0 );\n\n\t\t\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for\n\t\t\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;\n\t\t\t\ttexcoord -= vec2( 2.0, 0.0 ) * resolution;\n\t\t\t\tif ( ! ( texcoord.x > end && e.g > 0.8281 && e.r == 0.0 ) ) break;\n\t\t\t}\n\n\t\t\t// We correct the previous (-0.25, -0.125) offset we applied:\n\t\t\ttexcoord.x += 0.25 * resolution.x;\n\n\t\t\t// The searches are bias by 1, so adjust the coords accordingly:\n\t\t\ttexcoord.x += resolution.x;\n\n\t\t\t// Disambiguate the length added by the last step:\n\t\t\ttexcoord.x += 2.0 * resolution.x; // Undo last step\n\t\t\ttexcoord.x -= resolution.x * SMAASearchLength(searchTex, e, 0.0, 0.5);\n\n\t\t\treturn texcoord.x;\n\t\t}\n\n\t\tfloat SMAASearchXRight( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {\n\t\t\tvec2 e = vec2( 0.0, 1.0 );\n\n\t\t\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for\n\t\t\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;\n\t\t\t\ttexcoord += vec2( 2.0, 0.0 ) * resolution;\n\t\t\t\tif ( ! ( texcoord.x < end && e.g > 0.8281 && e.r == 0.0 ) ) break;\n\t\t\t}\n\n\t\t\ttexcoord.x -= 0.25 * resolution.x;\n\t\t\ttexcoord.x -= resolution.x;\n\t\t\ttexcoord.x -= 2.0 * resolution.x;\n\t\t\ttexcoord.x += resolution.x * SMAASearchLength( searchTex, e, 0.5, 0.5 );\n\n\t\t\treturn texcoord.x;\n\t\t}\n\n\t\tfloat SMAASearchYUp( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {\n\t\t\tvec2 e = vec2( 1.0, 0.0 );\n\n\t\t\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for\n\t\t\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;\n\t\t\t\ttexcoord += vec2( 0.0, 2.0 ) * resolution; // WebGL port note: Changed sign\n\t\t\t\tif ( ! ( texcoord.y > end && e.r > 0.8281 && e.g == 0.0 ) ) break;\n\t\t\t}\n\n\t\t\ttexcoord.y -= 0.25 * resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y -= resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y -= 2.0 * resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y += resolution.y * SMAASearchLength( searchTex, e.gr, 0.0, 0.5 ); // WebGL port note: Changed sign\n\n\t\t\treturn texcoord.y;\n\t\t}\n\n\t\tfloat SMAASearchYDown( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {\n\t\t\tvec2 e = vec2( 1.0, 0.0 );\n\n\t\t\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for\n\t\t\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;\n\t\t\t\ttexcoord -= vec2( 0.0, 2.0 ) * resolution; // WebGL port note: Changed sign\n\t\t\t\tif ( ! ( texcoord.y < end && e.r > 0.8281 && e.g == 0.0 ) ) break;\n\t\t\t}\n\n\t\t\ttexcoord.y += 0.25 * resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y += resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y += 2.0 * resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y -= resolution.y * SMAASearchLength( searchTex, e.gr, 0.5, 0.5 ); // WebGL port note: Changed sign\n\n\t\t\treturn texcoord.y;\n\t\t}\n\n\t\tvec2 SMAAArea( sampler2D areaTex, vec2 dist, float e1, float e2, float offset ) {\n\t\t\t// Rounding prevents precision errors of bilinear filtering:\n\t\t\tvec2 texcoord = float( SMAA_AREATEX_MAX_DISTANCE ) * round( 4.0 * vec2( e1, e2 ) ) + dist;\n\n\t\t\t// We do a scale and bias for mapping to texel space:\n\t\t\ttexcoord = SMAA_AREATEX_PIXEL_SIZE * texcoord + ( 0.5 * SMAA_AREATEX_PIXEL_SIZE );\n\n\t\t\t// Move to proper place, according to the subpixel offset:\n\t\t\ttexcoord.y += SMAA_AREATEX_SUBTEX_SIZE * offset;\n\n\t\t\treturn texture2D( areaTex, texcoord, 0.0 ).rg;\n\t\t}\n\n\t\tvec4 SMAABlendingWeightCalculationPS( vec2 texcoord, vec2 pixcoord, vec4 offset[ 3 ], sampler2D edgesTex, sampler2D areaTex, sampler2D searchTex, ivec4 subsampleIndices ) {\n\t\t\tvec4 weights = vec4( 0.0, 0.0, 0.0, 0.0 );\n\n\t\t\tvec2 e = texture2D( edgesTex, texcoord ).rg;\n\n\t\t\tif ( e.g > 0.0 ) { // Edge at north\n\t\t\t\tvec2 d;\n\n\t\t\t\t// Find the distance to the left:\n\t\t\t\tvec2 coords;\n\t\t\t\tcoords.x = SMAASearchXLeft( edgesTex, searchTex, offset[ 0 ].xy, offset[ 2 ].x );\n\t\t\t\tcoords.y = offset[ 1 ].y; // offset[1].y = texcoord.y - 0.25 * resolution.y (@CROSSING_OFFSET)\n\t\t\t\td.x = coords.x;\n\n\t\t\t\t// Now fetch the left crossing edges, two at a time using bilinear\n\t\t\t\t// filtering. Sampling at -0.25 (see @CROSSING_OFFSET) enables to\n\t\t\t\t// discern what value each edge has:\n\t\t\t\tfloat e1 = texture2D( edgesTex, coords, 0.0 ).r;\n\n\t\t\t\t// Find the distance to the right:\n\t\t\t\tcoords.x = SMAASearchXRight( edgesTex, searchTex, offset[ 0 ].zw, offset[ 2 ].y );\n\t\t\t\td.y = coords.x;\n\n\t\t\t\t// We want the distances to be in pixel units (doing this here allow to\n\t\t\t\t// better interleave arithmetic and memory accesses):\n\t\t\t\td = d / resolution.x - pixcoord.x;\n\n\t\t\t\t// SMAAArea below needs a sqrt, as the areas texture is compressed\n\t\t\t\t// quadratically:\n\t\t\t\tvec2 sqrt_d = sqrt( abs( d ) );\n\n\t\t\t\t// Fetch the right crossing edges:\n\t\t\t\tcoords.y -= 1.0 * resolution.y; // WebGL port note: Added\n\t\t\t\tfloat e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 1, 0 ) ).r;\n\n\t\t\t\t// Ok, we know how this pattern looks like, now it is time for getting\n\t\t\t\t// the actual area:\n\t\t\t\tweights.rg = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.y ) );\n\t\t\t}\n\n\t\t\tif ( e.r > 0.0 ) { // Edge at west\n\t\t\t\tvec2 d;\n\n\t\t\t\t// Find the distance to the top:\n\t\t\t\tvec2 coords;\n\n\t\t\t\tcoords.y = SMAASearchYUp( edgesTex, searchTex, offset[ 1 ].xy, offset[ 2 ].z );\n\t\t\t\tcoords.x = offset[ 0 ].x; // offset[1].x = texcoord.x - 0.25 * resolution.x;\n\t\t\t\td.x = coords.y;\n\n\t\t\t\t// Fetch the top crossing edges:\n\t\t\t\tfloat e1 = texture2D( edgesTex, coords, 0.0 ).g;\n\n\t\t\t\t// Find the distance to the bottom:\n\t\t\t\tcoords.y = SMAASearchYDown( edgesTex, searchTex, offset[ 1 ].zw, offset[ 2 ].w );\n\t\t\t\td.y = coords.y;\n\n\t\t\t\t// We want the distances to be in pixel units:\n\t\t\t\td = d / resolution.y - pixcoord.y;\n\n\t\t\t\t// SMAAArea below needs a sqrt, as the areas texture is compressed\n\t\t\t\t// quadratically:\n\t\t\t\tvec2 sqrt_d = sqrt( abs( d ) );\n\n\t\t\t\t// Fetch the bottom crossing edges:\n\t\t\t\tcoords.y -= 1.0 * resolution.y; // WebGL port note: Added\n\t\t\t\tfloat e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 0, 1 ) ).g;\n\n\t\t\t\t// Get the area for this direction:\n\t\t\t\tweights.ba = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.x ) );\n\t\t\t}\n\n\t\t\treturn weights;\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tgl_FragColor = SMAABlendingWeightCalculationPS( vUv, vPixcoord, vOffset, tDiffuse, tArea, tSearch, ivec4( 0.0 ) );\n\n\t\t}"},s={uniforms:{tDiffuse:{value:null},tColor:{value:null},resolution:{value:new i.Vector2(1/1024,1/512)}},vertexShader:"\n\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 2 ];\n\n\t\tvoid SMAANeighborhoodBlendingVS( vec2 texcoord ) {\n\t\t\tvOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 ); // WebGL port note: Changed sign in W component\n\t\t\tvOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( 1.0, 0.0, 0.0, -1.0 ); // WebGL port note: Changed sign in W component\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tSMAANeighborhoodBlendingVS( vUv );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform sampler2D tColor;\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 2 ];\n\n\t\tvec4 SMAANeighborhoodBlendingPS( vec2 texcoord, vec4 offset[ 2 ], sampler2D colorTex, sampler2D blendTex ) {\n\t\t\t// Fetch the blending weights for current pixel:\n\t\t\tvec4 a;\n\t\t\ta.xz = texture2D( blendTex, texcoord ).xz;\n\t\t\ta.y = texture2D( blendTex, offset[ 1 ].zw ).g;\n\t\t\ta.w = texture2D( blendTex, offset[ 1 ].xy ).a;\n\n\t\t\t// Is there any blending weight with a value greater than 0.0?\n\t\t\tif ( dot(a, vec4( 1.0, 1.0, 1.0, 1.0 )) < 1e-5 ) {\n\t\t\t\treturn texture2D( colorTex, texcoord, 0.0 );\n\t\t\t} else {\n\t\t\t\t// Up to 4 lines can be crossing a pixel (one through each edge). We\n\t\t\t\t// favor blending by choosing the line with the maximum weight for each\n\t\t\t\t// direction:\n\t\t\t\tvec2 offset;\n\t\t\t\toffset.x = a.a > a.b ? a.a : -a.b; // left vs. right\n\t\t\t\toffset.y = a.g > a.r ? -a.g : a.r; // top vs. bottom // WebGL port note: Changed signs\n\n\t\t\t\t// Then we go in the direction that has the maximum weight:\n\t\t\t\tif ( abs( offset.x ) > abs( offset.y )) { // horizontal vs. vertical\n\t\t\t\t\toffset.y = 0.0;\n\t\t\t\t} else {\n\t\t\t\t\toffset.x = 0.0;\n\t\t\t\t}\n\n\t\t\t\t// Fetch the opposite color and lerp by hand:\n\t\t\t\tvec4 C = texture2D( colorTex, texcoord, 0.0 );\n\t\t\t\ttexcoord += sign( offset ) * resolution;\n\t\t\t\tvec4 Cop = texture2D( colorTex, texcoord, 0.0 );\n\t\t\t\tfloat s = abs( offset.x ) > abs( offset.y ) ? abs( offset.x ) : abs( offset.y );\n\n\t\t\t\t// WebGL port note: Added gamma correction\n\t\t\t\tC.xyz = pow(C.xyz, vec3(2.2));\n\t\t\t\tCop.xyz = pow(Cop.xyz, vec3(2.2));\n\t\t\t\tvec4 mixed = mix(C, Cop, s);\n\t\t\t\tmixed.xyz = pow(mixed.xyz, vec3(1.0 / 2.2));\n\n\t\t\t\treturn mixed;\n\t\t\t}\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tgl_FragColor = SMAANeighborhoodBlendingPS( vUv, vOffset, tColor, tDiffuse );\n\n\t\t}"};class l extends r.Pass{constructor(t,e){super(),this.edgesRT=new i.WebGLRenderTarget(t,e,{depthBuffer:!1,generateMipmaps:!1,minFilter:i.LinearFilter,format:i.RGBFormat}),this.edgesRT.texture.name="SMAAPass.edges",this.weightsRT=new i.WebGLRenderTarget(t,e,{depthBuffer:!1,generateMipmaps:!1,minFilter:i.LinearFilter,format:i.RGBAFormat}),this.weightsRT.texture.name="SMAAPass.weights";const n=this,l=new Image;l.src=this.getAreaTexture(),l.onload=function(){n.areaTexture.needsUpdate=!0},this.areaTexture=new i.Texture,this.areaTexture.name="SMAAPass.area",this.areaTexture.image=l,this.areaTexture.format=i.RGBFormat,this.areaTexture.minFilter=i.LinearFilter,this.areaTexture.generateMipmaps=!1,this.areaTexture.flipY=!1;const c=new Image;c.src=this.getSearchTexture(),c.onload=function(){n.searchTexture.needsUpdate=!0},this.searchTexture=new i.Texture,this.searchTexture.name="SMAAPass.search",this.searchTexture.image=c,this.searchTexture.magFilter=i.NearestFilter,this.searchTexture.minFilter=i.NearestFilter,this.searchTexture.generateMipmaps=!1,this.searchTexture.flipY=!1,void 0===o&&console.error("THREE.SMAAPass relies on SMAAShader"),this.uniformsEdges=i.UniformsUtils.clone(o.uniforms),this.uniformsEdges.resolution.value.set(1/t,1/e),this.materialEdges=new i.ShaderMaterial({defines:Object.assign({},o.defines),uniforms:this.uniformsEdges,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader}),this.uniformsWeights=i.UniformsUtils.clone(a.uniforms),this.uniformsWeights.resolution.value.set(1/t,1/e),this.uniformsWeights.tDiffuse.value=this.edgesRT.texture,this.uniformsWeights.tArea.value=this.areaTexture,this.uniformsWeights.tSearch.value=this.searchTexture,this.materialWeights=new i.ShaderMaterial({defines:Object.assign({},a.defines),uniforms:this.uniformsWeights,vertexShader:a.vertexShader,fragmentShader:a.fragmentShader}),this.uniformsBlend=i.UniformsUtils.clone(s.uniforms),this.uniformsBlend.resolution.value.set(1/t,1/e),this.uniformsBlend.tDiffuse.value=this.weightsRT.texture,this.materialBlend=new i.ShaderMaterial({uniforms:this.uniformsBlend,vertexShader:s.vertexShader,fragmentShader:s.fragmentShader}),this.needsSwap=!1,this.fsQuad=new r.FullScreenQuad(null)}render(t,e,n){this.uniformsEdges.tDiffuse.value=n.texture,this.fsQuad.material=this.materialEdges,t.setRenderTarget(this.edgesRT),this.clear&&t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.materialWeights,t.setRenderTarget(this.weightsRT),this.clear&&t.clear(),this.fsQuad.render(t),this.uniformsBlend.tColor.value=n.texture,this.fsQuad.material=this.materialBlend,this.renderToScreen?(t.setRenderTarget(null),this.fsQuad.render(t)):(t.setRenderTarget(e),this.clear&&t.clear(),this.fsQuad.render(t))}setSize(t,e){this.edgesRT.setSize(t,e),this.weightsRT.setSize(t,e),this.materialEdges.uniforms.resolution.value.set(1/t,1/e),this.materialWeights.uniforms.resolution.value.set(1/t,1/e),this.materialBlend.uniforms.resolution.value.set(1/t,1/e)}getAreaTexture(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAIwCAIAAACOVPcQAACBeklEQVR42u39W4xlWXrnh/3WWvuciIzMrKxrV8/0rWbY0+SQFKcb4owIkSIFCjY9AC1BT/LYBozRi+EX+cV+8IMsYAaCwRcBwjzMiw2jAWtgwC8WR5Q8mDFHZLNHTarZGrLJJllt1W2qKrsumZWZcTvn7L3W54e1vrXX3vuciLPPORFR1XE2EomorB0nVuz//r71re/y/1eMvb4Cb3N11xV/PP/2v4UBAwJG/7H8urx6/25/Gf8O5hypMQ0EEEQwAqLfoN/Z+97f/SW+/NvcgQk4sGBJK6H7N4PFVL+K+e0N11yNfkKvwUdwdlUAXPHHL38oa15f/i/46Ih6SuMSPmLAYAwyRKn7dfMGH97jaMFBYCJUgotIC2YAdu+LyW9vvubxAP8kAL8H/koAuOKP3+q6+xGnd5kdYCeECnGIJViwGJMAkQKfDvB3WZxjLKGh8VSCCzhwEWBpMc5/kBbjawT4HnwJfhr+pPBIu7uu+OOTo9vsmtQcniMBGkKFd4jDWMSCRUpLjJYNJkM+IRzQ+PQvIeAMTrBS2LEiaiR9b/5PuT6Ap/AcfAFO4Y3dA3DFH7/VS+M8k4baEAQfMI4QfbVDDGIRg7GKaIY52qAjTAgTvGBAPGIIghOCYAUrGFNgzA7Q3QhgCwfwAnwe5vDejgG44o/fbm1C5ZlYQvQDARPAIQGxCWBM+wWl37ZQESb4gImexGMDouhGLx1Cst0Saa4b4AqO4Hk4gxo+3DHAV/nx27p3JziPM2pVgoiia5MdEzCGULprIN7gEEeQ5IQxEBBBQnxhsDb5auGmAAYcHMA9eAAz8PBol8/xij9+C4Djlim4gJjWcwZBhCBgMIIYxGAVIkH3ZtcBuLdtRFMWsPGoY9rN+HoBji9VBYdwD2ZQg4cnO7OSq/z4rU5KKdwVbFAjNojCQzTlCLPFSxtamwh2jMUcEgg2Wm/6XgErIBhBckQtGN3CzbVacERgCnfgLswhnvqf7QyAq/z4rRZm1YglYE3affGITaZsdIe2FmMIpnOCap25I6jt2kCwCW0D1uAD9sZctNGXcQIHCkINDQgc78aCr+zjtw3BU/ijdpw3zhCwcaONwBvdeS2YZKkJNJsMPf2JKEvC28RXxxI0ASJyzQCjCEQrO4Q7sFArEzjZhaFc4cdv+/JFdKULM4px0DfUBI2hIsy06BqLhGTQEVdbfAIZXYMPesq6VoCHICzUyjwInO4Y411//LYLs6TDa9wvg2CC2rElgAnpTBziThxaL22MYhzfkghz6GAs2VHbbdM91VZu1MEEpupMMwKyVTb5ij9+u4VJG/5EgEMMmFF01cFai3isRbKbzb+YaU/MQbAm2XSMoUPAmvZzbuKYRIFApbtlrfFuUGd6vq2hXNnH78ZLh/iFhsQG3T4D1ib7k5CC6vY0DCbtrohgLEIClXiGtl10zc0CnEGIhhatLBva7NP58Tvw0qE8yWhARLQ8h4+AhQSP+I4F5xoU+VilGRJs6wnS7ruti/4KvAY/CfdgqjsMy4pf8fodQO8/gnuX3f/3xi3om1/h7THr+co3x93PP9+FBUfbNUjcjEmhcrkT+8K7ml7V10Jo05mpIEFy1NmCJWx9SIKKt+EjAL4Ez8EBVOB6havuT/rByPvHXK+9zUcfcbb254+9fydJknYnRr1oGfdaiAgpxu1Rx/Rek8KISftx3L+DfsLWAANn8Hvw0/AFeAGO9DFV3c6D+CcWbL8Dj9e7f+T1k8AZv/d7+PXWM/Z+VvdCrIvuAKO09RpEEQJM0Ci6+B4xhTWr4cZNOvhktabw0ta0rSJmqz3Yw5/AKXwenod7cAhTmBSPKf6JBdvH8IP17h95pXqw50/+BFnj88fev4NchyaK47OPhhtI8RFSvAfDSNh0Ck0p2gLxGkib5NJj/JWCr90EWQJvwBzO4AHcgztwAFN1evHPUVGwfXON+0debT1YeGON9Yy9/63X+OguiwmhIhQhD7l4sMqlG3D86Suc3qWZ4rWjI1X7u0Ytw6x3rIMeIOPDprfe2XzNgyj6PahhBjO4C3e6puDgXrdg+/5l948vF3bqwZetZ+z9Rx9zdIY5pInPK4Nk0t+l52xdK2B45Qd87nM8fsD5EfUhIcJcERw4RdqqH7Yde5V7m1vhNmtedkz6EDzUMF/2jJYWbC+4fzzA/Y+/8PPH3j9dcBAPIRP8JLXd5BpAu03aziOL3VVHZzz3CXWDPWd+SH2AnxIqQoTZpo9Ckc6HIrFbAbzNmlcg8Ag8NFDDAhbJvTBZXbC94P7t68EXfv6o+21gUtPETU7bbkLxvNKRFG2+KXzvtObonPP4rBvsgmaKj404DlshFole1Glfh02fE7bYR7dZ82oTewIBGn1Md6CG6YUF26X376oevOLzx95vhUmgblI6LBZwTCDY7vMq0op5WVXgsObOXJ+1x3qaBl9j1FeLxbhU9w1F+Wiba6s1X/TBz1LnUfuYDi4r2C69f1f14BWfP+p+W2GFKuC9phcELMYRRLur9DEZTUdEH+iEqWdaM7X4WOoPGI+ZYD2+wcQ+y+ioHUZ9dTDbArzxmi/bJI9BND0Ynd6lBdve/butBw8+f/T9D3ABa3AG8W3VPX4hBin+bj8dMMmSpp5pg7fJ6xrBFE2WQQEWnV8Qg3FbAWzYfM1rREEnmvkN2o1+acG2d/9u68GDzx91v3mAjb1zkpqT21OipPKO0b9TO5W0nTdOmAQm0TObts3aBKgwARtoPDiCT0gHgwnbArzxmtcLc08HgF1asN0C4Ms/fvD5I+7PhfqyXE/b7RbbrGyRQRT9ARZcwAUmgdoz0ehJ9Fn7QAhUjhDAQSw0bV3T3WbNa59jzmiP6GsWbGXDX2ytjy8+f9T97fiBPq9YeLdBmyuizZHaqXITnXiMUEEVcJ7K4j3BFPurtB4bixW8wTpweL8DC95szWMOqucFYGsWbGU7p3TxxxefP+r+oTVktxY0v5hbq3KiOKYnY8ddJVSBxuMMVffNbxwIOERShst73HZ78DZrHpmJmH3K6sGz0fe3UUj0eyRrSCGTTc+rjVNoGzNSv05srAxUBh8IhqChiQgVNIIBH3AVPnrsnXQZbLTm8ammv8eVXn/vWpaTem5IXRlt+U/LA21zhSb9cye6jcOfCnOwhIAYXAMVTUNV0QhVha9xjgA27ODJbLbmitt3tRN80lqG6N/khgot4ZVlOyO4WNg3OIMzhIZQpUEHieg2im6F91hB3I2tubql6BYNN9Hj5S7G0G2tahslBWKDnOiIvuAEDzakDQKDNFQT6gbn8E2y4BBubM230YIpBnDbMa+y3dx0n1S0BtuG62lCCXwcY0F72T1VRR3t2ONcsmDjbmzNt9RFs2LO2hQNyb022JisaI8rAWuw4HI3FuAIhZdOGIcdjLJvvObqlpqvWTJnnQbyi/1M9O8UxWhBs//H42I0q1Yb/XPGONzcmm+ri172mHKvZBpHkJaNJz6v9jxqiklDj3U4CA2ugpAaYMWqNXsdXbmJNd9egCnJEsphXNM+MnK3m0FCJ5S1kmJpa3DgPVbnQnPGWIDspW9ozbcO4K/9LkfaQO2KHuqlfFXSbdNzcEcwoqNEFE9zcIXu9/6n/ym/BC/C3aJLzEKPuYVlbFnfhZ8kcWxV3dbv4bKl28566wD+8C53aw49lTABp9PWbsB+knfc/Li3eVizf5vv/xmvnPKg5ihwKEwlrcHqucuVcVOxEv8aH37E3ZqpZypUulrHEtIWKUr+txHg+ojZDGlwnqmkGlzcVi1dLiNSJiHjfbRNOPwKpx9TVdTn3K05DBx4psIk4Ei8aCkJahRgffk4YnEXe07T4H2RR1u27E6wfQsBDofUgjFUFnwC2AiVtA+05J2zpiDK2Oa0c5fmAecN1iJzmpqFZxqYBCYhFTCsUNEmUnIcZ6aEA5rQVhEywG6w7HSW02XfOoBlQmjwulOFQAg66SvJblrTEX1YtJ3uG15T/BH1OfOQeuR8g/c0gdpT5fx2SKbs9EfHTKdM8A1GaJRHLVIwhcGyydZsbifAFVKl5EMKNU2Hryo+06BeTgqnxzYjThVySDikbtJPieco75lYfKAJOMEZBTjoITuWHXXZVhcUDIS2hpiXHV9Ku4u44bN5OYLDOkJo8w+xJSMbhBRHEdEs9JZUCkQrPMAvaHyLkxgkEHxiNkx/x2YB0mGsQ8EUWj/stW5YLhtS5SMu+/YBbNPDCkGTUybN8krRLBGPlZkVOA0j+a1+rkyQKWGaPHPLZOkJhioQYnVZ2hS3zVxMtgC46KuRwbJNd9nV2PHgb36F194ecf/Yeu2vAFe5nm/bRBFrnY4BauE8ERmZRFUn0k8hbftiVYSKMEme2dJCJSCGYAlNqh87bXOPdUkGy24P6d1ll21MBqqx48Fvv8ZHH8HZFY7j/uAq1xMJUFqCSUlJPmNbIiNsmwuMs/q9CMtsZsFO6SprzCS1Z7QL8xCQClEelpjTduDMsmWD8S1PT152BtvmIGvUeDA/yRn83u/x0/4qxoPHjx+PXY9pqX9bgMvh/Nz9kpP4pOe1/fYf3axUiMdHLlPpZCNjgtNFAhcHEDxTumNONhHrBduW+vOyY++70WWnPXj98eA4kOt/mj/5E05l9+O4o8ePx67HFqyC+qSSnyselqjZGaVK2TadbFLPWAQ4NBhHqDCCV7OTpo34AlSSylPtIdd2AJZlyzYQrDJ5lcWGNceD80CunPLGGzsfD+7wRb95NevJI5docQ3tgCyr5bGnyaPRlmwNsFELViOOx9loebGNq2moDOKpHLVP5al2cymWHbkfzGXL7kfRl44H9wZy33tvt+PB/Xnf93e+nh5ZlU18wCiRUa9m7kib9LYuOk+hudQNbxwm0AQqbfloimaB2lM5fChex+ylMwuTbfmXQtmWlenZljbdXTLuOxjI/fDDHY4Hjx8/Hrse0zXfPFxbUN1kKqSCCSk50m0Ajtx3ub9XHBKHXESb8iO6E+qGytF4nO0OG3SXzbJlhxBnKtKyl0NwybjvYCD30aMdjgePHz8eu56SVTBbgxJMliQ3Oauwg0QHxXE2Ez/EIReLdQj42Gzb4CLS0YJD9xUx7bsi0vJi5mUbW1QzL0h0PFk17rtiIPfJk52MB48fPx67npJJwyrBa2RCCQRTbGZSPCxTPOiND4G2pYyOQ4h4jINIJh5wFU1NFZt+IsZ59LSnDqBjZ2awbOku+yInunLcd8VA7rNnOxkPHj9+PGY9B0MWJJNozOJmlglvDMXDEozdhQWbgs/U6oBanGzLrdSNNnZFjOkmbi5bNt1lX7JLLhn3vXAg9/h4y/Hg8ePHI9dzQMEkWCgdRfYykYKnkP7D4rIujsujaKPBsB54vE2TS00ccvFY/Tth7JXeq1hz+qgVy04sAJawTsvOknHfCwdyT062HA8eP348Zj0vdoXF4pilKa2BROed+9fyw9rWRXeTFXESMOanvDZfJuJaSXouQdMdDJZtekZcLLvEeK04d8m474UDuaenW44Hjx8/Xns9YYqZpszGWB3AN/4VHw+k7WSFtJ3Qicuqb/NlVmgXWsxh570xg2UwxUw3WfO6B5nOuO8aA7lnZxuPB48fPx6znm1i4bsfcbaptF3zNT78eFPtwi1OaCNOqp1x3zUGcs/PN++AGD1+fMXrSVm2baTtPhPahbPhA71wIHd2bXzRa69nG+3CraTtPivahV/55tXWg8fyRY/9AdsY8VbSdp8V7cKrrgdfM//z6ILQFtJ2nxHtwmuoB4/kf74+gLeRtvvMaBdeSz34+vifx0YG20jbfTa0C6+tHrwe//NmOG0L8EbSdp8R7cLrrQe/996O+ai3ujQOskpTNULa7jOjXXj99eCd8lHvoFiwsbTdZ0a78PrrwTvlo966pLuRtB2fFe3Cm6oHP9kNH/W2FryxtN1nTLvwRurBO+Kj3pWXHidtx2dFu/Bm68Fb81HvykuPlrb7LGkX3mw9eGs+6h1Y8MbSdjegXcguQLjmevDpTQLMxtJ2N6NdyBZu9AbrwVvwUW+LbteULUpCdqm0HTelXbhNPe8G68Gb8lFvVfYfSNuxvrTdTWoXbozAzdaDZzfkorOj1oxVxlIMlpSIlpLrt8D4hrQL17z+c3h6hU/wv4Q/utps4+bm+6P/hIcf0JwQ5oQGPBL0eKPTYEXTW+eL/2DKn73J9BTXYANG57hz1cEMviVf/4tf5b/6C5pTQkMIWoAq7hTpOJjtAM4pxKu5vg5vXeUrtI09/Mo/5H+4z+Mp5xULh7cEm2QbRP2tFIKR7WM3fPf/jZ3SWCqLM2l4NxID5zB72HQXv3jj/8mLR5xXNA5v8EbFQEz7PpRfl1+MB/hlAN65qgDn3wTgH13hK7T59bmP+NIx1SHHU84nLOITt3iVz8mNO+lPrjGAnBFqmioNn1mTyk1ta47R6d4MrX7tjrnjYUpdUbv2rVr6YpVfsGG58AG8Ah9eyUN8CX4WfgV+G8LVWPDGb+Zd4cU584CtqSbMKxauxTg+dyn/LkVgA+IR8KHtejeFKRtTmLLpxN6mYVLjYxwXf5x2VofiZcp/lwKk4wGOpYDnoIZPdg/AAbwMfx0+ge9dgZvYjuqKe4HnGnykYo5TvJbG0Vj12JagRhwKa44H95ShkZa5RyLGGdfYvG7aw1TsF6iapPAS29mNS3NmsTQZCmgTzFwgL3upCTgtBTRwvGMAKrgLn4evwin8+afJRcff+8izUGUM63GOOuAs3tJkw7J4kyoNreqrpO6cYLQeFUd7TTpr5YOTLc9RUUogUOVJQ1GYJaFLAW0oTmKyYS46ZooP4S4EON3xQ5zC8/CX4CnM4c1PE8ApexpoYuzqlP3d4S3OJP8ZDK7cKWNaTlqmgDiiHwl1YsE41w1zT4iRTm3DBqxvOUsbMKKDa/EHxagtnta072ejc3DOIh5ojvh8l3tk1JF/AV6FU6jh3U8HwEazLgdCLYSQ+MYiAI2ltomkzttUb0gGHdSUUgsIYjTzLG3mObX4FBRaYtpDVNZrih9TgTeYOBxsEnN1gOCTM8Bsw/ieMc75w9kuAT6A+/AiHGvN/+Gn4KRkiuzpNNDYhDGFndWRpE6SVfm8U5bxnSgVV2jrg6JCKmneqey8VMFgq2+AM/i4L4RUbfSi27lNXZ7R7W9RTcq/q9fk4Xw3AMQd4I5ifAZz8FcVtm9SAom/dyN4lczJQW/kC42ZrHgcCoIf1oVMKkVItmMBi9cOeNHGLqOZk+QqQmrbc5YmYgxELUUN35z2iohstgfLIFmcMV7s4CFmI74L9+EFmGsi+tGnAOD4Yk9gIpo01Y4cA43BWGygMdr4YZekG3OBIUXXNukvJS8tqa06e+lSDCtnqqMFu6hWHXCF+WaYt64m9QBmNxi7Ioy7D+fa1yHw+FMAcPt7SysFLtoG4PXAk7JOA3aAxBRqUiAdU9Yp5lK3HLSRFtOim0sa8euEt08xvKjYjzeJ2GU7YawexrnKI9tmobInjFXCewpwriY9+RR4aaezFhMhGCppKwom0ChrgFlKzyPKkGlTW1YQrE9HJqu8hKGgMc6hVi5QRq0PZxNfrYNgE64utmRv6KKHRpxf6VDUaOvNP5jCEx5q185My/7RKz69UQu2im5k4/eownpxZxNLwiZ1AZTO2ZjWjkU9uaB2HFn6Q3u0JcsSx/qV9hTEApRzeBLDJQXxYmTnq7bdLa3+uqFrxLJ5w1TehnNHx5ECvCh2g2c3hHH5YsfdaSKddztfjQ6imKFGSyFwlLzxEGPp6r5IevVjk1AMx3wMqi1NxDVjLBiPs9tbsCkIY5we5/ML22zrCScFxnNtzsr9Wcc3CnD+pYO+4VXXiDE0oc/vQQ/fDK3oPESJMYXNmJa/DuloJZkcTpcYE8lIH8Dz8DJMiynNC86Mb2lNaaqP/+L7f2fcE/yP7/Lde8xfgSOdMxvOixZf/9p3+M4hT1+F+zApxg9XfUvYjc8qX2lfOOpK2gNRtB4flpFu9FTKCp2XJRgXnX6olp1zyYjTKJSkGmLE2NjUr1bxFM4AeAAHBUFIeSLqXR+NvH/M9fOnfHzOD2vCSyQJKzfgsCh+yi/Mmc35F2fUrw7miW33W9hBD1vpuUojFphIyvg7aTeoymDkIkeW3XLHmguMzbIAJejN6B5MDrhipE2y6SoFRO/AK/AcHHZHNIfiWrEe/C6cr3f/yOvrQKB+zMM55/GQdLDsR+ifr5Fiuu+/y+M78LzOE5dsNuXC3PYvYWd8NXvphLSkJIasrlD2/HOqQ+RjcRdjKTGWYhhVUm4yxlyiGPuMsZR7sMCHUBeTuNWA7if+ifXgc/hovftHXs/DV+Fvwe+f8shzMiMcweFgBly3//vwJfg5AN4450fn1Hd1Rm1aBLu22Dy3y3H2+OqMemkbGZ4jozcDjJf6596xOLpC0eMTHbKnxLxH27uZ/bMTGs2jOaMOY4m87CfQwF0dw53oa1k80JRuz/XgS+8fX3N9Af4qPIMfzKgCp4H5TDGe9GGeFPzSsZz80SlPTxXjgwJmC45njzgt2vbQ4b4OAdUK4/vWhO8d8v6EE8fMUsfakXbPpFJeLs2ubM/qdm/la3WP91uWhxXHjoWhyRUq2iJ/+5mA73zwIIo+LoZ/SgvIRjAd1IMvvn98PfgOvAJfhhm8scAKVWDuaRaK8aQ9f7vuPDH6Bj47ZXau7rqYJ66mTDwEDU6lLbCjCK0qTXyl5mnDoeNRxanj3FJbaksTk0faXxHxLrssgPkWB9LnA/MFleXcJozzjwsUvUG0X/QCve51qkMDXp9mtcyOy3rwBfdvVJK7D6/ACSzg3RoruIq5UDeESfEmVclDxnniU82vxMLtceD0hGZWzBNPMM/jSPne2OVatiTKUpY5vY7gc0LdUAWeWM5tH+O2I66AOWw9xT2BuyRVLGdoDHUsVRXOo/c+ZdRXvFfnxWyIV4upFLCl9eAL7h8Zv0QH8Ry8pA2cHzQpGesctVA37ZtklBTgHjyvdSeKY/RZw/kJMk0Y25cSNRWSigQtlULPTw+kzuJPeYEkXjQRpoGZobYsLF79pyd1dMRHInbgFTZqNLhDqiIsTNpoex2WLcy0/X6rHcdMMQvFSd5dWA++4P7xv89deACnmr36uGlL69bRCL6BSZsS6c0TU2TKK5gtWCzgAOOwQcurqk9j8whvziZSMLcq5hbuwBEsYjopUBkqw1yYBGpLA97SRElEmx5MCInBY5vgLk94iKqSWmhIGmkJ4Bi9m4L645J68LyY4wsFYBfUg5feP/6gWWm58IEmKQM89hq7KsZNaKtP5TxxrUZZVkNmMJtjbKrGxLNEbHPJxhqy7lAmbC32ZqeF6lTaknRWcYaFpfLUBh/rwaQycCCJmW15Kstv6jRHyJFry2C1ahkkIW0LO75s61+owxK1y3XqweX9m5YLM2DPFeOjn/iiqCKJ+yKXF8t5Yl/kNsqaSCryxPq5xWTFIaP8KSW0RYxqupaUf0RcTNSSdJZGcKYdYA6kdtrtmyBckfKXwqk0pHpUHlwWaffjNRBYFPUDWa8e3Lt/o0R0CdisKDM89cX0pvRHEfM8ca4t0s2Xx4kgo91MPQJ/0c9MQYq0co8MBh7bz1fio0UUHLR4aAIOvOmoYO6kwlEVODSSTliWtOtH6sPkrtctF9ZtJ9GIerBskvhdVS5cFNv9s1BU0AbdUgdK4FG+dRnjFmDTzniRMdZO1QhzMK355vigbdkpz9P6qjUGE5J2qAcXmwJ20cZUiAD0z+pGMx6xkzJkmEf40Hr4qZfVg2XzF9YOyoV5BjzVkUJngKf8lgNYwKECEHrCNDrWZzMlflS3yBhr/InyoUgBc/lKT4pxVrrC6g1YwcceK3BmNxZcAtz3j5EIpqguh9H6wc011YN75cKDLpFDxuwkrPQmUwW4KTbj9mZTwBwLq4aQMUZbHm1rylJ46dzR0dua2n3RYCWZsiHROeywyJGR7mXKlpryyCiouY56sFkBWEnkEB/raeh/Sw4162KeuAxMQpEkzy5alMY5wamMsWKKrtW2WpEWNnReZWONKWjrdsKZarpFjqCslq773PLmEhM448Pc3+FKr1+94vv/rfw4tEcu+lKTBe4kZSdijBrykwv9vbCMPcLQTygBjzVckSLPRVGslqdunwJ4oegtFOYb4SwxNgWLCmD7T9kVjTv5YDgpo0XBmN34Z/rEHp0sgyz7lngsrm4lvMm2Mr1zNOJYJ5cuxuQxwMGJq/TP5emlb8fsQBZviK4t8hFL+zbhtlpwaRSxQRWfeETjuauPsdGxsBVdO7nmP4xvzSoT29pRl7kGqz+k26B3Oy0YNV+SXbbQas1ctC/GarskRdFpKczVAF1ZXnLcpaMuzVe6lZ2g/1ndcvOVgRG3sdUAY1bKD6achijMPdMxV4muKVorSpiDHituH7rSTs7n/4y5DhRXo4FVBN4vO/zbAcxhENzGbHCzU/98Mcx5e7a31kWjw9FCe/zNeYyQjZsWb1uc7U33pN4Mji6hCLhivqfa9Ss6xLg031AgfesA/l99m9fgvnaF9JoE6bYKmkGNK3aPbHB96w3+DnxFm4hs0drLsk7U8kf/N/CvwQNtllna0rjq61sH8L80HAuvwH1tvBy2ChqWSCaYTaGN19sTvlfzFD6n+iKTbvtayfrfe9ueWh6GJFoxLdr7V72a5ZpvHcCPDzma0wTO4EgbLyedxstO81n57LYBOBzyfsOhUKsW1J1BB5vr/tz8RyqOFylQP9Tvst2JALsC5lsH8PyQ40DV4ANzYa4dedNiKNR1s+x2wwbR7q4/4cTxqEk4LWDebfisuo36JXLiWFjOtLrlNWh3K1rRS4xvHcDNlFnNmWBBAl5SWaL3oPOfnvbr5pdjVnEaeBJSYjuLEkyLLsWhKccadmOphZkOPgVdalj2QpSmfOsADhMWE2ZBu4+EEJI4wKTAuCoC4xwQbWXBltpxbjkXJtKxxabo9e7tyhlgb6gNlSbUpMh+l/FaqzVwewGu8BW1Zx7pTpQDJUjb8tsUTW6+GDXbMn3mLbXlXJiGdggxFAoUrtPS3wE4Nk02UZG2OOzlk7fRs7i95QCLo3E0jtrjnM7SR3uS1p4qtS2nJ5OwtQVHgOvArLBFijZUV9QtSl8dAY5d0E0hM0w3HS2DpIeB6m/A1+HfhJcGUq4sOxH+x3f5+VO+Ds9rYNI7zPXOYWPrtf8bYMx6fuOAX5jzNR0PdsuON+X1f7EERxMJJoU6GkTEWBvVolVlb5lh3tKCg6Wx1IbaMDdJ+9sUCc5KC46hKGCk3IVOS4TCqdBNfUs7Kd4iXf2RjnT/LLysJy3XDcHLh/vde3x8DoGvwgsa67vBk91G5Pe/HbOe7xwym0NXbtiuuDkGO2IJDh9oQvJ4cY4vdoqLDuoH9Zl2F/ofsekn8lkuhIlhQcffUtSjytFyp++p6NiE7Rqx/lodgKVoceEp/CP4FfjrquZaTtj2AvH5K/ywpn7M34K/SsoYDAdIN448I1/0/wveW289T1/lX5xBzc8N5IaHr0XMOQdHsIkDuJFifj20pBm5jzwUv9e2FhwRsvhAbalCIuIw3bhJihY3p6nTFFIZgiSYjfTf3aXuOjmeGn4bPoGvwl+CFzTRczBIuHBEeImHc37/lGfwZR0cXzVDOvaKfNHvwe+suZ771K/y/XcBlsoN996JpBhoE2toYxOznNEOS5TJc6Id5GEXLjrWo+LEWGNpPDU4WAwsIRROu+1vM+0oW37z/MBN9kqHnSArwPfgFJ7Cq/Ai3Ie7g7ncmI09v8sjzw9mzOAEXoIHxURueaAce5V80f/DOuuZwHM8vsMb5wBzOFWM7wymTXPAEvm4vcFpZ2ut0VZRjkiP2MlmLd6DIpbGSiHOjdnUHN90hRYmhTnmvhzp1iKDNj+b7t5hi79lWGwQ+HN9RsfFMy0FXbEwhfuczKgCbyxYwBmcFhhvo/7a44v+i3XWcwDP86PzpGQYdWh7csP5dBvZ1jNzdxC8pBGuxqSW5vw40nBpj5JhMwvOzN0RWqERHMr4Lv1kWX84xLR830G3j6yqZ1a8UstTlW+qJPOZ+sZ7xZPKTJLhiNOAFd6tk+jrTH31ncLOxid8+nzRb128HhUcru/y0Wn6iT254YPC6FtVSIMoW2sk727AhvTtrWKZTvgsmckfXYZWeNRXx/3YQ2OUxLDrbHtN11IwrgXT6c8dATDwLniYwxzO4RzuQqTKSC5gAofMZ1QBK3zQ4JWobFbcvJm87FK+6JXrKahLn54m3p+McXzzYtP8VF/QpJuh1OwieElEoI1pRxPS09FBrkq2tWCU59+HdhNtTIqKm8EBrw2RTOEDpG3IKo2Y7mFdLm3ZeVjYwVw11o/oznceMve4CgMfNym/utA/d/ILMR7gpXzRy9eDsgLcgbs8O2Va1L0zzIdwGGemTBuwROHeoMShkUc7P+ISY3KH5ZZeWqO8mFTxQYeXTNuzvvK5FGPdQfuu00DwYFY9dyhctEt+OJDdnucfpmyhzUJzfsJjr29l8S0bXBfwRS9ZT26tmMIdZucch5ZboMz3Nio3nIOsYHCGoDT4kUA9MiXEp9Xsui1S8th/kbWIrMBxDGLodWUQIWcvnXy+9M23xPiSMOiRPqM+YMXkUN3gXFrZJwXGzUaMpJfyRS9ZT0lPe8TpScuRlbMHeUmlaKDoNuy62iWNTWNFYjoxFzuJs8oR+RhRx7O4SVNSXpa0ZJQ0K1LAHDQ+D9IepkMXpcsq5EVCvClBUIzDhDoyKwDw1Lc59GbTeORivugw1IcuaEOaGWdNm+Ps5fQ7/tm0DjMegq3yM3vb5j12qUId5UZD2oxDSEWOZMSqFl/W+5oynWDa/aI04tJRQ2eTXusg86SQVu/nwSYwpW6wLjlqIzwLuxGIvoAvul0PS+ZNz0/akp/pniO/8JDnGyaCkzbhl6YcqmK/69prxPqtpx2+Km9al9sjL+rwMgHw4jE/C8/HQ3m1vBuL1fldbzd8mOueVJ92syqdEY4KJjSCde3mcRw2TA6szxedn+zwhZMps0XrqEsiUjnC1hw0TELC2Ek7uAAdzcheXv1BYLagspxpzSAoZZUsIzIq35MnFQ9DOrlNB30jq3L4pkhccKUAA8/ocvN1Rzx9QyOtERs4CVsJRK/DF71kPYrxYsGsm6RMh4cps5g1DOmM54Ly1ii0Hd3Y/BMk8VWFgBVmhqrkJCPBHAolwZaWzLR9Vb7bcWdX9NyUYE+uB2BKfuaeBUcjDljbYVY4DdtsVWvzRZdWnyUzDpjNl1Du3aloAjVJTNDpcIOVVhrHFF66lLfJL1zJr9PQ2nFJSBaKoDe+sAvLufZVHVzYh7W0h/c6AAZ+7Tvj6q9j68G/cTCS/3n1vLKHZwNi+P+pS0WkZNMBMUl+LDLuiE4omZy71r3UFMwNJV+VJ/GC5ixVUkBStsT4gGKh0Gm4Oy3qvq7Lbmq24nPdDuDR9deR11XzP4vFu3TYzfnIyiSVmgizUYGqkIXNdKTY9pgb9D2Ix5t0+NHkVzCdU03suWkkVZAoCONCn0T35gAeW38de43mf97sMOpSvj4aa1KYUm58USI7Wxxes03bAZdRzk6UtbzMaCQ6IxO0dy7X+XsjoD16hpsBeGz9dfzHj+R/Hp8nCxZRqkEDTaCKCSywjiaoMJ1TITE9eg7Jqnq8HL6gDwiZb0u0V0Rr/rmvqjxKuaLCX7ZWXTvAY+uvm3z8CP7nzVpngqrJpZKwWnCUjIviYVlirlGOzPLI3SMVyp/elvBUjjDkNhrtufFFErQ8pmdSlbK16toBHlt/HV8uHMX/vEGALkV3RJREiSlopxwdMXOZPLZ+ix+kAHpMKIk8UtE1ygtquttwxNhphrIZ1IBzjGF3IIGxGcBj6q8bHJBG8T9vdsoWrTFEuebEZuVxhhClH6P5Zo89OG9fwHNjtNQTpD0TG9PJLEYqvEY6Rlxy+ZZGfL0Aj62/bnQCXp//eeM4KzfQVJbgMQbUjlMFIm6TpcfWlZje7NBSV6IsEVmumWIbjiloUzQX9OzYdo8L1wjw2PrrpimONfmfNyzKklrgnEkSzT5QWYQW40YShyzqsRmMXbvVxKtGuYyMKaU1ugenLDm5Ily4iT14fP11Mx+xJv+zZ3MvnfdFqxU3a1W/FTB4m3Qfsyc1XUcdVhDeUDZXSFHHLQj/Y5jtC7ZqM0CXGwB4bP11i3LhOvzPGygYtiUBiwQV/4wFO0majijGsafHyRLu0yG6q35cL1rOpVxr2s5cM2jJYMCdc10Aj6q/blRpWJ//+dmm5psMl0KA2+AFRx9jMe2WbC4jQxnikd4DU8TwUjRVacgdlhmr3bpddzuJ9zXqr2xnxJfzP29RexdtjDVZqzkqa6PyvcojGrfkXiJ8SEtml/nYskicv0ivlxbqjemwUjMw5evdg8fUX9nOiC/lf94Q2i7MURk9nW1MSj5j8eAyV6y5CN2S6qbnw3vdA1Iwq+XOSCl663udN3IzLnrt+us25cI1+Z83SXQUldqQq0b5XOT17bGpLd6ssN1VMPf8c+jG8L3NeCnMdF+Ra3fRa9dft39/LuZ/3vwHoHrqGmQFafmiQw6eyzMxS05K4bL9uA+SKUQzCnSDkqOGokXyJvbgJ/BHI+qvY69//4rl20NsmK2ou2dTsyIALv/91/8n3P2Aao71WFGi8KKv1fRC5+J67Q/507/E/SOshqN5TsmYIjVt+kcjAx98iz/4SaojbIV1rexE7/C29HcYD/DX4a0rBOF5VTu7omsb11L/AWcVlcVZHSsqGuXLLp9ha8I//w3Mv+T4Ew7nTBsmgapoCrNFObIcN4pf/Ob/mrvHTGqqgAupL8qWjWPS9m/31jAe4DjA+4+uCoQoT/zOzlrNd3qd4SdphFxsUvYwGWbTWtISc3wNOWH+kHBMfc6kpmpwPgHWwqaSUG2ZWWheYOGQGaHB+eQ/kn6b3pOgLV+ODSn94wDvr8Bvb70/LLuiPPEr8OGVWfDmr45PZyccEmsVXZGe1pRNX9SU5+AVQkNTIVPCHF/jGmyDC9j4R9LfWcQvfiETmgMMUCMN1uNCakkweZsowdYobiMSlnKA93u7NzTXlSfe+SVbfnPQXmg9LpYAQxpwEtONyEyaueWM4FPjjyjG3uOaFmBTWDNgBXGEiQpsaWhnAqIijB07Dlsy3fUGeP989xbWkyf+FF2SNEtT1E0f4DYYVlxFlbaSMPIRMk/3iMU5pME2SIWJvjckciebkQuIRRyhUvkHg/iUljG5kzVog5hV7vIlCuBrmlhvgPfNHQM8lCf+FEGsYbMIBC0qC9a0uuy2wLXVbLBaP5kjHokCRxapkQyzI4QEcwgYHRZBp+XEFTqXFuNVzMtjXLJgX4gAid24Hjwc4N3dtVSe+NNiwTrzH4WVUOlDobUqr1FuAgYllc8pmzoVrELRHSIW8ViPxNy4xwjBpyR55I6J220qQTZYR4guvUICJiSpr9gFFle4RcF/OMB7BRiX8sSfhpNSO3lvEZCQfLUVTKT78Ek1LRLhWN+yLyTnp8qWUZ46b6vxdRGXfHVqx3eI75YaLa4iNNiK4NOW7wPW6lhbSOF9/M9qw8e/aoB3d156qTzxp8pXx5BKAsYSTOIIiPkp68GmTq7sZtvyzBQaRLNxIZ+paozHWoLFeExIhRBrWitHCAHrCF7/thhD8JhYz84wg93QRV88wLuLY8zF8sQ36qF1J455bOlgnELfshKVxYOXKVuKx0jaj22sczTQqPqtV/XDgpswmGTWWMSDw3ssyUunLLrVPGjYRsH5ggHeHSWiV8kT33ycFSfMgkoOK8apCye0J6VW6GOYvffgU9RWsukEi2kUV2nl4dOYUzRik9p7bcA4ggdJ53LxKcEe17B1R8eqAd7dOepV8sTXf5lhejoL85hUdhDdknPtKHFhljOT+bdq0hxbm35p2nc8+Ja1Iw+tJykgp0EWuAAZYwMVwac5KzYMslhvgHdHRrxKnvhTYcfKsxTxtTETkjHO7rr3zjoV25lAQHrqpV7bTiy2aXMmUhTBnKS91jhtR3GEoF0oLnWhWNnYgtcc4N0FxlcgT7yz3TgNIKkscx9jtV1ZKpWW+Ub1tc1eOv5ucdgpx+FJy9pgbLE7xDyXb/f+hLHVGeitHOi6A7ybo3sF8sS7w7cgdk0nJaOn3hLj3uyD0Zp5pazFIUXUpuTTU18d1EPkDoX8SkmWTnVIozEdbTcZjoqxhNHf1JrSS/AcvHjZ/SMHhL/7i5z+POsTUh/8BvNfYMTA8n+yU/MlTZxSJDRStqvEuLQKWwDctMTQogUDyQRoTQG5Kc6oQRE1yV1jCA7ri7jdZyK0sYTRjCR0Hnnd+y7nHxNgTULqw+8wj0mQKxpYvhjm9uSUxg+TTy7s2GtLUGcywhXSKZN275GsqlclX90J6bRI1aouxmgL7Q0Nen5ziM80SqMIo8cSOo+8XplT/5DHNWsSUr/6lLN/QQ3rDyzLruEW5enpf7KqZoShEduuSFOV7DLX7Ye+GmXb6/hnNNqKsVXuMDFpb9Y9eH3C6NGEzuOuI3gpMH/I6e+zDiH1fXi15t3vA1czsLws0TGEtmPEJdiiFPwlwKbgLHAFk4P6ZyPdymYYHGE0dutsChQBl2JcBFlrEkY/N5bQeXQ18gjunuMfMfsBlxJSx3niO485fwO4fGD5T/+3fPQqkneWVdwnw/3bMPkW9Wbqg+iC765Zk+xcT98ibKZc2EdgHcLoF8cSOo/Oc8fS+OyEULF4g4sJqXVcmfMfsc7A8v1/yfGXmL9I6Fn5pRwZhsPv0TxFNlAfZCvG+Oohi82UC5f/2IsJo0cTOm9YrDoKhFPEUr/LBYTUNht9zelHXDqwfPCIw4owp3mOcIQcLttWXFe3VZ/j5H3cIc0G6oPbCR+6Y2xF2EC5cGUm6wKC5tGEzhsWqw5hNidUiKX5gFWE1GXh4/Qplw4sVzOmx9QxU78g3EF6wnZlEN4FzJ1QPSLEZz1KfXC7vd8ssGdIbNUYpVx4UapyFUHzJoTOo1McSkeNn1M5MDQfs4qQuhhX5vQZFw8suwWTcyYTgioISk2YdmkhehG4PkE7w51inyAGGaU+uCXADabGzJR1fn3lwkty0asIo8cROm9Vy1g0yDxxtPvHDAmpu+PKnM8Ix1wwsGw91YJqhteaWgjYBmmQiebmSpwKKzE19hx7jkzSWOm66oPbzZ8Yj6kxVSpYjVAuvLzYMCRo3oTQecOOjjgi3NQ4l9K5/hOGhNTdcWVOTrlgYNkEXINbpCkBRyqhp+LdRB3g0OU6rMfW2HPCFFMV9nSp+uB2woepdbLBuJQyaw/ZFysXrlXwHxI0b0LovEkiOpXGA1Ijagf+KUNC6rKNa9bQnLFqYNkEnMc1uJrg2u64ELPBHpkgWbmwKpJoDhMwNbbGzAp7Yg31wS2T5rGtzit59PrKhesWG550CZpHEzpv2NGRaxlNjbMqpmEIzygJqQfjypycs2pg2cS2RY9r8HUqkqdEgKTWtWTKoRvOBPDYBltja2SO0RGjy9UHtxwRjA11ujbKF+ti5cIR9eCnxUg6owidtyoU5tK4NLji5Q3HCtiyF2IqLGYsHViOXTXOYxucDqG0HyttqYAKqYo3KTY1ekyDXRAm2AWh9JmsVh/ccg9WJ2E8YjG201sPq5ULxxX8n3XLXuMInbft2mk80rRGjCGctJ8/GFdmEQ9Ug4FlE1ll1Y7jtiraqm5Fe04VV8lvSVBL8hiPrfFVd8+7QH3Qbu2ipTVi8cvSGivc9cj8yvH11YMHdNSERtuOslM97feYFOPKzGcsI4zW0YGAbTAOaxCnxdfiYUmVWslxiIblCeAYr9VYR1gM7GmoPrilunSxxeT3DN/2eBQ9H11+nk1adn6VK71+5+Jfct4/el10/7KBZfNryUunWSCPxPECk1rdOv1WVSrQmpC+Tl46YD3ikQYcpunSQgzVB2VHFhxHVGKDgMEY5GLlQnP7FMDzw7IacAWnO6sBr12u+XanW2AO0wQ8pknnFhsL7KYIqhkEPmEXFkwaN5KQphbkUmG72wgw7WSm9RiL9QT925hkjiVIIhphFS9HKI6/8QAjlpXqg9W2C0apyaVDwKQwrwLY3j6ADR13ZyUNByQXHQu6RY09Hu6zMqXRaNZGS/KEJs0cJEe9VH1QdvBSJv9h09eiRmy0V2uJcqHcShcdvbSNg5fxkenkVprXM9rDVnX24/y9MVtncvbKY706anNl3ASll9a43UiacVquXGhvq4s2FP62NGKfQLIQYu9q1WmdMfmUrDGt8eDS0cXozH/fjmUH6Jruvm50hBDSaEU/2Ru2LEN/dl006TSc/g7tfJERxGMsgDUEr104pfWH9lQaN+M4KWQjwZbVc2rZVNHsyHal23wZtIs2JJqtIc/WLXXRFCpJkfE9jvWlfFbsNQ9pP5ZBS0zKh4R0aMFj1IjTcTnvi0Zz2rt7NdvQb2mgbju1plsH8MmbnEk7KbK0b+wC2iy3aX3szW8xeZvDwET6hWZYwqTXSSG+wMETKum0Dq/q+x62gt2ua2ppAo309TRk9TPazfV3qL9H8z7uhGqGqxNVg/FKx0HBl9OVUORn8Q8Jx9gFttGQUDr3tzcXX9xGgN0EpzN9mdZ3GATtPhL+CjxFDmkeEU6x56kqZRusLzALXVqkCN7zMEcqwjmywDQ6OhyUe0Xao1Qpyncrg6wKp9XfWDsaZplElvQ/b3sdweeghorwBDlHzgk1JmMc/wiERICVy2VJFdMjFuLQSp3S0W3+sngt2njwNgLssFGVQdJ0tu0KH4ky1LW4yrbkuaA6Iy9oz/qEMMXMMDWyIHhsAyFZc2peV9hc7kiKvfULxCl9iddfRK1f8kk9qvbdOoBtOg7ZkOZ5MsGrSHsokgLXUp9y88smniwWyuFSIRVmjplga3yD8Uij5QS1ZiM4U3Qw5QlSm2bXjFe6jzzBFtpg+/YBbLAWG7OPynNjlCw65fukGNdkJRf7yM1fOxVzbxOJVocFoYIaGwH22mIQkrvu1E2nGuebxIgW9U9TSiukPGU+Lt++c3DJPKhyhEEbXCQLUpae2exiKy6tMPe9mDRBFCEMTWrtwxN8qvuGnt6MoihKWS5NSyBhbH8StXoAz8PLOrRgLtOT/+4vcu+7vDLnqNvztOq7fmd8sMmY9Xzn1zj8Dq8+XVdu2Nv0IIySgEdQo3xVHps3Q5i3fLFsV4aiqzAiBhbgMDEd1uh8qZZ+lwhjkgokkOIv4xNJmyncdfUUzgB4oFMBtiu71Xumpz/P+cfUP+SlwFExwWW62r7b+LSPxqxn/gvMZ5z9C16t15UbNlq+jbGJtco7p8wbYlL4alSyfWdeuu0j7JA3JFNuVAwtst7F7FhWBbPFNKIUORndWtLraFLmMu7KFVDDOzqkeaiN33YAW/r76wR4XDN/yN1z7hejPau06EddkS/6XThfcz1fI/4K736fO48vlxt2PXJYFaeUkFS8U15XE3428xdtn2kc8GQlf1vkIaNRRnOMvLTWrZbElEHeLWi1o0dlKPAh1MVgbbVquPJ5+Cr8LU5/H/+I2QlHIU2ClXM9G8v7Rr7oc/hozfUUgsPnb3D+I+7WF8kNO92GY0SNvuxiE+2Bt8prVJTkzE64sfOstxuwfxUUoyk8VjcTlsqe2qITSFoSj6Epd4KsT6BZOWmtgE3hBfir8IzZDwgV4ZTZvD8VvPHERo8v+vL1DASHTz/i9OlKueHDjK5Rnx/JB1Vb1ioXdBra16dmt7dgik10yA/FwJSVY6XjA3oy4SqM2frqDPPSRMex9qs3XQtoWxMj7/Er8GWYsXgjaVz4OYumP2+9kbxvny/6kvWsEBw+fcb5bInc8APdhpOSs01tEqIkoiZjbAqKMruLbJYddHuHFRIyJcbdEdbl2sVLaySygunutBg96Y2/JjKRCdyHV+AEFtTvIpbKIXOamknYSiB6KV/0JetZITgcjjk5ZdaskBtWO86UF0ap6ozGXJk2WNiRUlCPFir66lzdm/SLSuK7EUdPz8f1z29Skq6F1fXg8+5UVR6bszncP4Tn4KUkkdJ8UFCY1zR1i8RmL/qQL3rlei4THG7OODlnKko4oI01kd3CaM08Ia18kC3GNoVaO9iDh+hWxSyTXFABXoau7Q6q9OxYg/OVEMw6jdbtSrJ9cBcewGmaZmg+bvkUnUUaGr+ZfnMH45Ivevl61hMcXsxYLFTu1hTm2zViCp7u0o5l+2PSUh9bDj6FgYypufBDhqK2+oXkiuHFHR3zfj+9PtA8oR0xnqX8qn+sx3bFODSbbF0X8EUvWQ8jBIcjo5bRmLOljDNtcqNtOe756h3l0VhKa9hDd2l1eqmsnh0MNMT/Cqnx6BInumhLT8luljzQ53RiJeA/0dxe5NK0o2fA1+GLXr6eNQWHNUOJssQaTRlGpLHKL9fD+IrQzTOMZS9fNQD4AnRNVxvTdjC+fJdcDDWQcyB00B0t9BDwTxXgaAfzDZ/DBXzRnfWMFRwuNqocOmX6OKNkY63h5n/fFcB28McVHqnXZVI27K0i4rDLNE9lDKV/rT+udVbD8dFFu2GGZ8mOt0kAXcoX3ZkIWVtw+MNf5NjR2FbivROHmhV1/pj2egv/fMGIOWTIWrV3Av8N9imV9IWml36H6cUjqEWNv9aNc+veb2sH46PRaHSuMBxvtW+twxctq0z+QsHhux8Q7rCY4Ct8lqsx7c6Sy0dl5T89rIeEuZKoVctIk1hNpfavER6yyH1Vvm3MbsUHy4ab4hWr/OZPcsRBphnaV65/ZcdYPNNwsjN/djlf9NqCw9U5ExCPcdhKxUgLSmfROpLp4WSUr8ojdwbncbvCf+a/YzRaEc6QOvXcGO256TXc5Lab9POvB+AWY7PigWYjzhifbovuunzRawsO24ZqQQAqguBtmpmPB7ysXJfyDDaV/aPGillgz1MdQg4u5MYaEtBNNHFjkRlSpd65lp4hd2AVPTfbV7FGpyIOfmNc/XVsPfg7vzaS/3nkvLL593ANLvMuRMGpQIhiF7kUEW9QDpAUbTWYBcbp4WpacHHY1aacqQyjGZS9HI3yCBT9kUZJhVOD+zUDvEH9ddR11fzPcTDQ5TlgB0KwqdXSavk9BC0pKp0WmcuowSw07VXmXC5guzSa4p0UvRw2lbDiYUx0ExJJRzWzi6Gm8cnEkfXXsdcG/M/jAJa0+bmCgdmQ9CYlNlSYZOKixmRsgiFxkrmW4l3KdFKv1DM8tk6WxPYJZhUUzcd8Kdtgrw/gkfXXDT7+avmfVak32qhtkg6NVdUS5wgkru1YzIkSduTW1FDwVWV3JQVJVuieTc0y4iDpFwc7/BvSalvKdQM8sv662cevz/+8sQVnjVAT0W2wLllw1JiMhJRxgDjCjLQsOzSFSgZqx7lAW1JW0e03yAD3asC+GD3NbQhbe+mN5GXH1F83KDOM4n/e5JIuH4NpdQARrFPBVptUNcjj4cVMcFSRTE2NpR1LEYbYMmfWpXgP9KejaPsLUhuvLCsVXznAG9dfx9SR1ud/3hZdCLHb1GMdPqRJgqDmm76mHbvOXDtiO2QPUcKo/TWkQ0i2JFXpBoo7vij1i1Lp3ADAo+qvG3V0rM//vFnnTE4hxd5Ka/Cor5YEdsLVJyKtDgVoHgtW11pWSjolPNMnrlrVj9Fv2Qn60twMwKPqr+N/wvr8z5tZcDsDrv06tkqyzESM85Ycv6XBWA2birlNCXrI6VbD2lx2L0vQO0QVTVVLH4SE67fgsfVXv8n7sz7/85Z7cMtbE6f088wSaR4kCkCm10s6pKbJhfqiUNGLq+0gLWC6eUAZFPnLjwqtKd8EwGvWX59t7iPW4X/eAN1svgRVSY990YZg06BD1ohLMtyFTI4pKTJsS9xREq9EOaPWiO2gpms7397x6nQJkbh+Fz2q/rqRROX6/M8bJrqlVW4l6JEptKeUFuMYUbtCQ7CIttpGc6MY93x1r1vgAnRXvY5cvwWPqb9uWQm+lP95QxdNMeWhOq1x0Db55C7GcUv2ZUuN6n8iKzsvOxibC//Yfs9Na8r2Rlz02vXXDT57FP/zJi66/EJSmsJKa8QxnoqW3VLQ+jZVUtJwJ8PNX1NQCwfNgdhhHD9on7PdRdrdGPF28rJr1F+3LBdeyv+8yYfLoMYet1vX4upNAjVvwOUWnlNXJXlkzk5Il6kqeoiL0C07qno+/CYBXq/+utlnsz7/Mzvy0tmI4zm4ag23PRN3t/CWryoUVJGm+5+K8RJ0V8Hc88/XHUX/HfiAq7t+BH+x6v8t438enWmdJwFA6ZINriLGKv/95f8lT9/FnyA1NMVEvQyaXuu+gz36f/DD73E4pwqpLcvm/o0Vle78n//+L/NPvoefp1pTJye6e4A/D082FERa5/opeH9zpvh13cNm19/4v/LDe5xMWTi8I0Ta0qKlK27AS/v3/r+/x/2GO9K2c7kVMonDpq7//jc5PKCxeNPpFVzaRr01wF8C4Pu76hXuX18H4LduTr79guuFD3n5BHfI+ZRFhY8w29TYhbbLi/bvBdqKE4fUgg1pBKnV3FEaCWOWyA+m3WpORZr/j+9TKJtW8yBTF2/ZEODI9/QavHkVdGFp/Pjn4Q+u5hXapsP5sOH+OXXA1LiKuqJxiMNbhTkbdJTCy4llEt6NnqRT4dhg1V3nbdrm6dYMecA1yTOL4PWTE9L5VzPFlLBCvlG58AhehnN4uHsAYinyJ+AZ/NkVvELbfOBUuOO5syBIEtiqHU1k9XeISX5bsimrkUUhnGDxourN8SgUsCZVtKyGbyGzHXdjOhsAvOAswSRyIBddRdEZWP6GZhNK/yjwew9ehBo+3jEADu7Ay2n8mDc+TS7awUHg0OMzR0LABhqLD4hJEh/BEGyBdGlSJoXYXtr+3HS4ijzVpgi0paWXtdruGTknXBz+11qT1Q2inxaTzQCO46P3lfLpyS4fou2PH/PupwZgCxNhGlj4IvUuWEsTkqMWm6i4xCSMc9N1RDQoCVcuGItJ/MRWefais+3synowi/dESgJjkilnWnBTGvRWmaw8oR15257t7CHmCf8HOn7cwI8+NQBXMBEmAa8PMRemrNCEhLGEhDQKcGZWS319BX9PFBEwGTbRBhLbDcaV3drFcDqk5kCTd2JF1Wp0HraqBx8U0wwBTnbpCadwBA/gTH/CDrcCs93LV8E0YlmmcyQRQnjBa8JESmGUfIjK/7fkaDJpmD2QptFNVJU1bbtIAjjWQizepOKptRjbzR9Kag6xZmMLLjHOtcLT3Tx9o/0EcTT1XN3E45u24AiwEypDJXihKjQxjLprEwcmRKclaDNZCVqr/V8mYWyFADbusiY5hvgFoU2vio49RgJLn5OsReRFN6tabeetiiy0V7KFHT3HyZLx491u95sn4K1QQSPKM9hNT0wMVvAWbzDSVdrKw4zRjZMyJIHkfq1VAVCDl/bUhNKlGq0zGr05+YAceXVPCttVk0oqjVwMPt+BBefx4yPtGVkUsqY3CHDPiCM5ngupUwCdbkpd8kbPrCWHhkmtIKLEetF2499eS1jZlIPGYnlcPXeM2KD9vLS0bW3ktYNqUllpKLn5ZrsxlIzxvDu5eHxzGLctkZLEY4PgSOg2IUVVcUONzUDBEpRaMoXNmUc0tFZrTZquiLyKxrSm3DvIW9Fil+AkhXu5PhEPx9mUNwqypDvZWdKlhIJQY7vn2OsnmBeOWnYZ0m1iwbbw1U60by5om47iHRV6fOgzjMf/DAZrlP40Z7syxpLK0lJ0gqaAK1c2KQKu7tabTXkLFz0sCftuwX++MyNeNn68k5Buq23YQhUh0SNTJa1ioQ0p4nUG2y0XilF1JqODqdImloPS4Bp111DEWT0jJjVv95uX9BBV7eB3bUWcu0acSVM23YZdd8R8UbQUxJ9wdu3oMuhdt929ME+mh6JXJ8di2RxbTi6TbrDquqV4aUKR2iwT6aZbyOwEXN3DUsWr8Hn4EhwNyHuXHh7/pdaUjtR7vnDh/d8c9xD/s5f501eQ1+CuDiCvGhk1AN/4Tf74RfxPwD3toLarR0zNtsnPzmS64KIRk861dMWCU8ArasG9T9H0ZBpsDGnjtAOM2+/LuIb2iIUGXNgl5ZmKD/Tw8TlaAuihaFP5yrw18v4x1898zIdP+DDAX1bM3GAMvPgRP/cJn3zCW013nrhHkrITyvYuwOUkcHuKlRSW5C6rzIdY4ppnF7J8aAJbQepgbJYBjCY9usGXDKQxq7RZfh9eg5d1UHMVATRaD/4BHK93/1iAgYZ/+jqPn8Dn4UExmWrpa3+ZOK6MvM3bjwfzxNWA2dhs8+51XHSPJiaAhGSpWevEs5xHLXcEGFXYiCONySH3fPWq93JIsBiSWvWyc3CAN+EcXoT7rCSANloPPoa31rt/5PUA/gp8Q/jDD3hyrjzlR8VkanfOvB1XPubt17vzxAfdSVbD1pzAnfgyF3ycadOTOTXhpEUoLC1HZyNGW3dtmjeXgr2r56JNmRwdNNWaQVBddd6rh4MhviEB9EFRD/7RGvePvCbwAL4Mx/D6M541hHO4D3e7g6PafdcZVw689z7NGTwo5om7A8sPhccT6qKcl9NJl9aM/9kX+e59Hh1yPqGuCCZxuITcsmNaJ5F7d0q6J3H48TO1/+M57085q2icdu2U+W36Ldllz9Agiv4YGljoEN908EzvDOrBF98/vtJwCC/BF2AG75xxEmjmMIcjxbjoaxqOK3/4hPOZzhMPBpYPG44CM0dTVm1LjLtUWWVz1Bcf8tEx0zs8O2A2YVHRxKYOiy/aOVoAaMu0i7ubu43njjmd4ibMHU1sIDHaQNKrZND/FZYdk54oCXetjq7E7IVl9eAL7t+oHnwXXtLx44czzoRFHBztYVwtH1d+NOMkupZ5MTM+gUmq90X+Bh9zjRlmaQ+m7YMqUL/veemcecAtOJ0yq1JnVlN27di2E0+Klp1tAJ4KRw1eMI7aJjsO3R8kPSI3fUFXnIOfdQe86sIIVtWDL7h//Ok6vj8vwDk08NEcI8zz7OhBy+WwalzZeZ4+0XniRfst9pAJqQHDGLzVQ2pheZnnv1OWhwO43/AgcvAEXEVVpa4db9sGvNK8wjaENHkfFQ4Ci5i7dqnQlPoLQrHXZDvO3BIXZbJOBrOaEbML6sFL798I4FhKihjHMsPjBUZYCMFr6nvaArxqXPn4lCa+cHfSa2cP27g3Z3ziYTRrcbQNGLQmGF3F3cBdzzzX7AILx0IB9rbwn9kx2G1FW3Inic+ZLIsVvKR8Zwfj0l1fkqo8LWY1M3IX14OX3r9RKTIO+d9XzAI8qRPGPn/4NC2n6o4rN8XJ82TOIvuVA8zLKUHRFgBCetlDZlqR1gLKjS39xoE7Bt8UvA6BxuEDjU3tFsEijgA+615tmZkXKqiEENrh41iLDDZNq4pKTWR3LZfnos81LOuNa15cD956vLMsJd1rqYp51gDUQqMYm2XsxnUhD2jg1DM7SeuJxxgrmpfISSXVIJIS5qJJSvJPEQ49DQTVIbYWJ9QWa/E2+c/oPK1drmC7WSfJRNKBO5Yjvcp7Gc3dmmI/Xh1kDTEuiSnWqQf37h+fTMhGnDf6dsS8SQfQWlqqwXXGlc/PEZ/SC5mtzIV0nAshlQdM/LvUtYutrEZ/Y+EAFtq1k28zQhOwLr1AIeANzhF8t9qzTdZf2qRKO6MWE9ohBYwibbOmrFtNmg3mcS+tB28xv2uKd/agYCvOP+GkSc+0lr7RXzyufL7QbkUpjLjEWFLqOIkAGu2B0tNlO9Eau2W1qcOUvVRgKzypKIQZ5KI3q0MLzqTNRYqiZOqmtqloIRlmkBHVpHmRYV6/HixbO6UC47KOFJnoMrVyr7wYz+SlW6GUaghYbY1I6kkxA2W1fSJokUdSh2LQ1GAimRGm0MT+uu57H5l7QgOWxERpO9moLRPgTtquWCfFlGlIjQaRly9odmzMOWY+IBO5tB4sW/0+VWGUh32qYk79EidWKrjWuiLpiVNGFWFRJVktyeXWmbgBBzVl8anPuXyNJlBJOlKLTgAbi/EYHVHxWiDaVR06GnHQNpJcWcK2jJtiCfG2sEHLzuI66sGrMK47nPIInPnu799935aOK2cvmvubrE38ZzZjrELCmXM2hM7UcpXD2oC3+ECVp7xtIuxptJ0jUr3sBmBS47TVxlvJ1Sqb/E0uLdvLj0lLr29ypdd/eMX3f6lrxGlKwKQxEGvw0qHbkbwrF3uHKwVENbIV2wZ13kNEF6zD+x24aLNMfDTCbDPnEikZFyTNttxWBXDaBuM8KtI2rmaMdUY7cXcUPstqTGvBGSrFWIpNMfbdea990bvAOC1YX0qbc6smDS1mPxSJoW4fwEXvjMmhlijDRq6qale6aJEuFGoppYDoBELQzLBuh/mZNx7jkinv0EtnUp50lO9hbNK57lZaMAWuWR5Yo9/kYwcYI0t4gWM47Umnl3YmpeBPqSyNp3K7s2DSAS/39KRuEN2bS4xvowV3dFRMx/VFcp2Yp8w2nTO9hCXtHG1kF1L4KlrJr2wKfyq77R7MKpFKzWlY9UkhYxyHWW6nBWPaudvEAl3CGcNpSXPZ6R9BbBtIl6cHL3gIBi+42CYXqCx1gfGWe7Ap0h3luyXdt1MKy4YUT9xSF01G16YEdWsouW9mgDHd3veyA97H+Ya47ZmEbqMY72oPztCGvK0onL44AvgC49saZKkWRz4veWljE1FHjbRJaWv6ZKKtl875h4CziFCZhG5rx7tefsl0aRT1bMHZjm8dwL/6u7wCRysaQblQoG5yAQN5zpatMNY/+yf8z+GLcH/Qn0iX2W2oEfXP4GvwQHuIL9AYGnaO3zqAX6946nkgqZNnUhx43DIdQtMFeOPrgy/y3Yd85HlJWwjLFkU3kFwq28xPnuPhMWeS+tDLV9Otllq7pQCf3uXJDN9wFDiUTgefHaiYbdfi3b3u8+iY6TnzhgehI1LTe8lcd7s1wJSzKbahCRxKKztTLXstGAiu3a6rPuQs5pk9TWAan5f0BZmGf7Ylxzzk/A7PAs4QPPPAHeFQ2hbFHszlgZuKZsJcUmbDC40sEU403cEjczstOEypa+YxevL4QBC8oRYqWdK6b7sK25tfE+oDZgtOQ2Jg8T41HGcBE6fTWHn4JtHcu9S7uYgU5KSCkl/mcnq+5/YBXOEr6lCUCwOTOM1taOI8mSxx1NsCXBEmLKbMAg5MkwbLmpBaFOPrNSlO2HnLiEqW3tHEwd8AeiQLmn+2gxjC3k6AxREqvKcJbTEzlpLiw4rNZK6oJdidbMMGX9FULKr0AkW+2qDEPBNNm5QAt2Ik2nftNWHetubosHLo2nG4vQA7GkcVCgVCgaDixHqo9UUn1A6OshapaNR/LPRYFV8siT1cCtJE0k/3WtaNSuUZYKPnsVIW0xXWnMUxq5+En4Kvw/MqQmVXnAXj9Z+9zM98zM/Agy7F/qqj2Nh67b8HjFnPP3iBn/tkpdzwEJX/whIcQUXOaikeliCRGUk7tiwF0rItwMEhjkZ309hikFoRAmLTpEXWuHS6y+am/KB/fM50aLEhGnSMwkpxzOov4H0AvgovwJ1iGzDLtJn/9BU+fAINfwUe6FHSLhu83viV/+/HrOePX+STT2B9uWGbrMHHLldRBlhS/CJQmcRxJFqZica01XixAZsYiH1uolZxLrR/SgxVIJjkpQP4PE9sE59LKLr7kltSBogS5tyszzH8Fvw8/AS8rNOg0xUS9fIaHwb+6et8Q/gyvKRjf5OusOzGx8evA/BP4IP11uN/grca5O0lcsPLJ5YjwI4QkJBOHa0WdMZYGxPbh2W2nR9v3WxEWqgp/G3+6VZbRLSAAZ3BhdhAaUL33VUSw9yjEsvbaQ9u4A/gGXwZXoEHOuU1GSj2chf+Mo+f8IcfcAxfIKVmyunRbYQVnoevwgfw3TXXcw++xNuP4fhyueEUNttEduRVaDttddoP0eSxLe2LENk6itYxlrxBNBYrNNKSQmeaLcm9c8UsaB5WyO6675yyQIAWSDpBVoA/gxmcwEvwoDv0m58UE7gHn+fJOa8/Ywan8EKRfjsopF83eCglX/Sfr7OeaRoQfvt1CGvIDccH5BCvw1sWIzRGC/66t0VTcLZQZtm6PlAasbOJ9iwWtUo7biktTSIPxnR24jxP1ZKaqq+2RcXM9OrBAm/AAs7hDJ5bNmGb+KIfwCs8a3jnjBrOFeMjHSCdbKr+2uOLfnOd9eiA8Hvvwwq54VbP2OqwkB48Ytc4YEOiH2vTXqodabfWEOzso4qxdbqD5L6tbtNPECqbhnA708DZH4QOJUXqScmUlks7Ot6FBuZw3n2mEbaUX7kDzxHOOQk8nKWMzAzu6ZZ8sOFw4RK+6PcuXo9tB4SbMz58ApfKDXf3szjNIIbGpD5TKTRxGkEMLjLl+K3wlWXBsCUxIDU+jbOiysESqAy1MGUJpXgwbTWzNOVEziIXZrJ+VIztl1PUBxTSo0dwn2bOmfDRPD3TRTGlfbCJvO9KvuhL1hMHhB9wPuPRLGHcdOWG2xc0U+5bQtAJT0nRTewXL1pgk2+rZAdeWmz3jxAqfNQQdzTlbF8uJ5ecEIWvTkevAHpwz7w78QujlD/Lr491bD8/1vhM2yrUQRrWXNQY4fGilfctMWYjL72UL/qS9eiA8EmN88nbNdour+PBbbAjOjIa4iBhfFg6rxeKdEGcL6p3EWR1Qq2Qkhs2DrnkRnmN9tG2EAqmgPw6hoL7Oza7B+3SCrR9tRftko+Lsf2F/mkTndN2LmzuMcKTuj/mX2+4Va3ki16+nnJY+S7MefpkidxwnV+4wkXH8TKnX0tsYzYp29DOOoSW1nf7nTh2akYiWmcJOuTidSaqESrTYpwjJJNVGQr+rLI7WsqerHW6Kp/oM2pKuV7T1QY9gjqlZp41/WfKpl56FV/0kvXQFRyeQ83xaTu5E8p5dNP3dUF34ihyI3GSpeCsywSh22ZJdWto9winhqifb7VRvgktxp13vyjrS0EjvrRfZ62uyqddSWaWYlwTPAtJZ2oZ3j/Sgi/mi+6vpzesfAcWNA0n8xVyw90GVFGuZjTXEQy+6GfLGLMLL523f5E0OmxVjDoOuRiH91RKU+vtoCtH7TgmvBLvtFXWLW15H9GTdVw8ow4IlRLeHECN9ym1e9K0I+Cbnhgv4Yu+aD2HaQJ80XDqOzSGAV4+4yCqBxrsJAX6ZTIoX36QnvzhhzzMfFW2dZVLOJfo0zbce5OvwXMFaZ81mOnlTVXpDZsQNuoYWveketKb5+6JOOsgX+NTm7H49fUTlx+WLuWL7qxnOFh4BxpmJx0p2gDzA/BUARuS6phR+pUsY7MMboAHx5xNsSVfVZcYSwqCKrqon7zM+8ecCkeS4nm3rINuaWvVNnMRI1IRpxTqx8PZUZ0Br/UEduo3B3hNvmgZfs9gQPj8vIOxd2kndir3awvJ6BLvoUuOfFWNYB0LR1OQJoUySKb9IlOBx74q1+ADC2G6rOdmFdJcD8BkfualA+BdjOOzP9uUhGUEX/TwhZsUduwRr8wNuXKurCixLBgpQI0mDbJr9dIqUuV+92ngkJZ7xduCk2yZKbfWrH1VBiTg9VdzsgRjW3CVXCvAwDd+c1z9dWw9+B+8MJL/eY15ZQ/HqvTwVdsZn5WQsgRRnMaWaecu3jFvMBEmgg+FJFZsnSl0zjB9OqPYaBD7qmoVyImFvzi41usesV0julaAR9dfR15Xzv9sEruRDyk1nb+QaLU67T885GTls6YgcY+UiMa25M/pwGrbCfzkvR3e0jjtuaFtnwuagHTSb5y7boBH119HXhvwP487jJLsLJ4XnUkHX5sLbS61dpiAXRoZSCrFJ+EjpeU3puVfitngYNo6PJrAigKktmwjyQdZpfq30mmtulaAx9Zfx15Xzv+cyeuiBFUs9zq8Kq+XB9a4PVvph3GV4E3y8HENJrN55H1X2p8VyqSKwVusJDKzXOZzplWdzBUFK9e+B4+uv468xvI/b5xtSAkBHQaPvtqWzllVvEOxPbuiE6+j2pvjcKsbvI7txnRErgfH7LdXqjq0IokKzga14GzQ23SSbCQvO6r+Or7SMIr/efOkkqSdMnj9mBx2DRsiY29Uj6+qK9ZrssCKaptR6HKURdwUYeUWA2kPzVKQO8ku2nU3Anhs/XWkBx3F/7wJtCTTTIKftthue1ty9xvNYLY/zo5KSbIuKbXpbEdSyeRyYdAIwKY2neyoc3+k1XUaufYga3T9daMUx/r8z1s10ITknIO0kuoMt+TB8jK0lpayqqjsJ2qtXAYwBU932zinimgmd6mTRDnQfr88q36NAI+tv24E8Pr8zxtasBqx0+xHH9HhlrwsxxNUfKOHQaZBITNf0uccj8GXiVmXAuPEAKSdN/4GLHhs/XWj92dN/uetNuBMnVR+XWDc25JLjo5Mg5IZIq226tmCsip2zZliL213YrTlL2hcFjpCduyim3M7/eB16q/blQsv5X/esDRbtJeabLIosWy3ycavwLhtxdWzbMmHiBTiVjJo6lCLjXZsi7p9PEPnsq6X6wd4bP11i0rD5fzPm/0A6brrIsllenZs0lCJlU4abakR59enZKrKe3BZihbTxlyZ2zl1+g0wvgmA166/bhwDrcn/7Ddz0eWZuJvfSESug6NzZsox3Z04FIxz0mUjMwVOOVTq1CQ0AhdbBGVdjG/CgsfUX7esJl3K/7ytWHRv683praW/8iDOCqWLLhpljDY1ZpzK75QiaZoOTpLKl60auHS/97oBXrv+umU9+FL+5+NtLFgjqVLCdbmj7pY5zPCPLOHNCwXGOcLquOhi8CmCWvbcuO73XmMUPab+ug3A6/A/78Bwe0bcS2+tgHn4J5pyS2WbOck0F51Vq3LcjhLvZ67p1ABbaL2H67bg78BfjKi/jr3+T/ABV3ilLmNXTI2SpvxWBtt6/Z//D0z/FXaGbSBgylzlsEGp+5//xrd4/ae4d8DUUjlslfIYS3t06HZpvfQtvv0N7AHWqtjP2pW08QD/FLy//da38vo8PNlKHf5y37Dxdfe/oj4kVIgFq3koLReSR76W/bx//n9k8jonZxzWTANVwEniDsg87sOSd/z7//PvMp3jQiptGVWFX2caezzAXwfgtzYUvbr0iozs32c3Uge7varH+CNE6cvEYmzbPZ9hMaYDdjK4V2iecf6EcEbdUDVUARda2KzO/JtCuDbNQB/iTeL0EG1JSO1jbXS+nLxtPMDPw1fh5+EPrgSEKE/8Gry5A73ui87AmxwdatyMEBCPNOCSKUeRZ2P6Myb5MRvgCHmA9ywsMifU+AYXcB6Xa5GibUC5TSyerxyh0j6QgLVpdyhfArRTTLqQjwe4HOD9s92D4Ap54odXAPBWLAwB02igG5Kkc+piN4lvODIFGAZgT+EO4Si1s7fjSR7vcQETUkRm9O+MXyo9OYhfe4xt9STQ2pcZRLayCV90b4D3jR0DYAfyxJ+eywg2IL7NTMXna7S/RpQ63JhWEM8U41ZyQGjwsVS0QBrEKLu8xwZsbi4wLcCT+OGidPIOCe1PiSc9Qt+go+vYqB7cG+B9d8cAD+WJPz0Am2gxXgU9IneOqDpAAXOsOltVuMzpdakJXrdPCzXiNVUpCeOos5cxnpQT39G+XVLhs1osQVvJKPZyNq8HDwd4d7pNDuWJPxVX7MSzqUDU6gfadKiNlUFTzLeFHHDlzO4kpa7aiKhBPGKwOqxsBAmYkOIpipyXcQSPlRTf+Tii0U3EJGaZsDER2qoB3h2hu0qe+NNwUooYU8y5mILbJe6OuX+2FTKy7bieTDAemaQyQ0CPthljSWO+xmFDIYiESjM5xKd6Ik5lvLq5GrQ3aCMLvmCA9wowLuWJb9xF59hVVP6O0CrBi3ZjZSNOvRy+I6klNVRJYRBaEzdN+imiUXQ8iVF8fsp+W4JXw7WISW7fDh7lptWkCwZ4d7QTXyBPfJMYK7SijjFppGnlIVJBJBYj7eUwtiP1IBXGI1XCsjNpbjENVpSAJ2hq2LTywEly3hUYazt31J8w2+aiLx3g3fohXixPfOMYm6zCGs9LVo9MoW3MCJE7R5u/WsOIjrqBoHUO0bJE9vxBpbhsd3+Nb4/vtPCZ4oZYCitNeYuC/8UDvDvy0qvkiW/cgqNqRyzqSZa/s0mqNGjtKOoTm14zZpUauiQgVfqtQiZjq7Q27JNaSK5ExRcrGCXO1FJYh6jR6CFqK7bZdQZ4t8g0rSlPfP1RdBtqaa9diqtzJkQ9duSryi2brQXbxDwbRUpFMBHjRj8+Nt7GDKgvph9okW7LX47gu0SpGnnFQ1S1lYldOsC7hYteR574ZuKs7Ei1lBsfdz7IZoxzzCVmmVqaSySzQbBVAWDek+N4jh9E/4VqZrJjPwiv9BC1XcvOWgO8275CVyBPvAtTVlDJfZkaZGU7NpqBogAj/xEHkeAuJihWYCxGN6e8+9JtSegFXF1TrhhLGP1fak3pebgPz192/8gB4d/6WT7+GdYnpH7hH/DJzzFiYPn/vjW0SgNpTNuPIZoAEZv8tlGw4+RLxy+ZjnKa5NdFoC7UaW0aduoYse6+bXg1DLg6UfRYwmhGEjqPvF75U558SANrElK/+MdpXvmqBpaXOa/MTZaa1DOcSiLaw9j0NNNst3c+63c7EKTpkvKHzu6bPbP0RkuHAVcbRY8ijP46MIbQeeT1mhA+5PV/inyDdQipf8LTvMXbwvoDy7IruDNVZKTfV4CTSRUYdybUCnGU7KUTDxLgCknqUm5aAW6/1p6eMsOYsphLzsHrE0Y/P5bQedx1F/4yPHnMB3/IOoTU9+BL8PhtjuFKBpZXnYNJxTuv+2XqolKR2UQgHhS5novuxVySJhBNRF3SoKK1XZbbXjVwWNyOjlqWJjrWJIy+P5bQedyldNScP+HZ61xKSK3jyrz+NiHG1hcOLL/+P+PDF2gOkekKGiNWKgJ+8Z/x8Iv4DdQHzcpZyF4v19I27w9/yPGDFQvmEpKtqv/TLiWMfn4sofMm9eAH8Ao0zzh7h4sJqYtxZd5/D7hkYPneDzl5idlzNHcIB0jVlQ+8ULzw/nc5/ojzl2juE0apD7LRnJxe04dMz2iOCFNtGFpTuXA5AhcTRo8mdN4kz30nVjEC4YTZQy4gpC7GlTlrePKhGsKKgeXpCYeO0MAd/GH7yKQUlXPLOasOH3FnSphjHuDvEu4gB8g66oNbtr6eMbFIA4fIBJkgayoXriw2XEDQPJrQeROAlY6aeYOcMf+IVYTU3XFlZufMHinGywaW3YLpObVBAsbjF4QJMsVUSayjk4voPsHJOQfPWDhCgDnmDl6XIRerD24HsGtw86RMHOLvVSHrKBdeVE26gKB5NKHzaIwLOmrqBWJYZDLhASG16c0Tn+CdRhWDgWXnqRZUTnPIHuMJTfLVpkoYy5CzylHVTGZMTwkGAo2HBlkQplrJX6U+uF1wZz2uwS1SQ12IqWaPuO4baZaEFBdukksJmkcTOm+YJSvoqPFzxFA/YUhIvWxcmSdPWTWwbAKVp6rxTtPFUZfKIwpzm4IoMfaYQLWgmlG5FME2gdBgm+J7J+rtS/XBbaVLsR7bpPQnpMFlo2doWaVceHk9+MkyguZNCJ1He+kuHTWyQAzNM5YSUg/GlTk9ZunAsg1qELVOhUSAK0LABIJHLKbqaEbHZLL1VA3VgqoiOKXYiS+HRyaEKgsfIqX64HYWbLRXy/qWoylIV9gudL1OWBNgBgTNmxA6b4txDT4gi3Ri7xFSLxtXpmmYnzAcWDZgY8d503LFogz5sbonDgkKcxGsWsE1OI+rcQtlgBBCSOKD1mtqYpIU8cTvBmAT0yZe+zUzeY92fYjTtGipXLhuR0ePoHk0ofNWBX+lo8Z7pAZDk8mEw5L7dVyZZoE/pTewbI6SNbiAL5xeygW4xPRuLCGbhcO4RIeTMFYHEJkYyEO9HmJfXMDEj/LaH781wHHZEtqSQ/69UnGpzH7LKIAZEDSPJnTesJTUa+rwTepI9dLJEawYV+ZkRn9g+QirD8vF8Mq0jFQ29js6kCS3E1+jZIhgPNanHdHFqFvPJLHqFwQqbIA4jhDxcNsOCCQLDomaL/dr5lyJaJU6FxPFjO3JOh3kVMcROo8u+C+jo05GjMF3P3/FuDLn5x2M04xXULPwaS6hBYki+MrMdZJSgPHlcB7nCR5bJ9Kr5ACUn9jk5kivdd8tk95SOGrtqu9lr2IhK65ZtEl7ZKrp7DrqwZfRUSN1el7+7NJxZbywOC8neNKTch5vsTEMNsoCCqHBCqIPRjIPkm0BjvFODGtto99rCl+d3wmHkW0FPdpZtC7MMcVtGFQjJLX5bdQ2+x9ypdc313uj8xlsrfuLgWXz1cRhZvJYX0iNVBRcVcmCXZs6aEf3RQF2WI/TcCbKmGU3IOoDJGDdDub0+hYckt6PlGu2BcxmhbTdj/klhccLGJMcqRjMJP1jW2ETqLSWJ/29MAoORluJ+6LPffBZbi5gqi5h6catQpmOT7/OFf5UorRpLzCqcMltBLhwd1are3kztrSzXO0LUbXRQcdLh/RdSZ+swRm819REDrtqzC4es6Gw4JCKlSnjYVpo0xeq33PrADbFLL3RuCmObVmPN+24kfa+AojDuM4umKe2QwCf6EN906HwjujaitDs5o0s1y+k3lgbT2W2i7FJdnwbLXhJUBq/9liTctSmFC/0OqUinb0QddTWamtjbHRFuWJJ6NpqZ8vO3fZJ37Db+2GkaPYLGHs7XTTdiFQJ68SkVJFVmY6McR5UycflNCsccHFaV9FNbR4NttLxw4pQ7wJd066Z0ohVbzihaxHVExd/ay04oxUKWt+AsdiQ9OUyZ2krzN19IZIwafSTFgIBnMV73ADj7V/K8u1MaY2sJp2HWm0f41tqwajEvdHWOJs510MaAqN4aoSiPCXtN2KSi46dUxHdaMquar82O1x5jqhDGvqmoE9LfxcY3zqA7/x3HA67r9ZG4O6Cuxu12/+TP+eLP+I+HErqDDCDVmBDO4larujNe7x8om2rMug0MX0rL1+IWwdwfR+p1TNTyNmVJ85ljWzbWuGv8/C7HD/izjkHNZNYlhZcUOKVzKFUxsxxN/kax+8zPWPSFKw80rJr9Tizyj3o1gEsdwgWGoxPezDdZ1TSENE1dLdNvuKL+I84nxKesZgxXVA1VA1OcL49dFlpFV5yJMhzyCmNQ+a4BqusPJ2bB+xo8V9u3x48VVIEPS/mc3DvAbXyoYr6VgDfh5do5hhHOCXMqBZUPhWYbWZECwVJljLgMUWOCB4MUuMaxGNUQDVI50TQ+S3kFgIcu2qKkNSHVoM0SHsgoZxP2d5HH8B9woOk4x5bPkKtAHucZsdykjxuIpbUrSILgrT8G7G5oCW+K0990o7E3T6AdW4TilH5kDjds+H64kS0mz24grtwlzDHBJqI8YJQExotPvoC4JBq0lEjjQkyBZ8oH2LnRsQ4Hu1QsgDTJbO8fQDnllitkxuVskoiKbRF9VwzMDvxHAdwB7mD9yCplhHFEyUWHx3WtwCbSMMTCUCcEmSGlg4gTXkHpZXWQ7kpznK3EmCHiXInqndkQjunG5kxTKEeGye7jWz9cyMR2mGiFQ15ENRBTbCp+Gh86vAyASdgmJq2MC6hoADQ3GosP0QHbnMHjyBQvQqfhy/BUbeHd5WY/G/9LK/8Ka8Jd7UFeNWEZvzPb458Dn8DGLOe3/wGL/4xP+HXlRt+M1PE2iLhR8t+lfgxsuh7AfO2AOf+owWhSZRYQbd622hbpKWKuU+XuvNzP0OseRDa+mObgDHJUSc/pKx31QdKffQ5OIJpt8GWjlgTwMc/w5MPCR/yl1XC2a2Yut54SvOtMev55Of45BOat9aWG27p2ZVORRvnEk1hqWMVUmqa7S2YtvlIpspuF1pt0syuZS2NV14mUidCSfzQzg+KqvIYCMljIx2YK2AO34fX4GWdu5xcIAb8MzTw+j/lyWM+Dw/gjs4GD6ehNgA48kX/AI7XXM/XAN4WHr+9ntywqoCakCqmKP0rmQrJJEErG2Upg1JObr01lKQy4jskWalKYfJ/EDLMpjNSHFEUAde2fltaDgmrNaWQ9+AAb8I5vKjz3L1n1LriB/BXkG/wwR9y/oRX4LlioHA4LzP2inzRx/DWmutRweFjeP3tNeSGlaE1Fde0OS11yOpmbIp2u/jF1n2RRZviJM0yBT3IZl2HWImKjQOxIyeU325b/qWyU9Moj1o07tS0G7qJDoGHg5m8yeCxMoEH8GU45tnrNM84D2l297DQ9t1YP7jki/7RmutRweEA77/HWXOh3HCxkRgldDQkAjNTMl2Iloc1qN5JfJeeTlyTRzxURTdn1Ixv2uKjs12AbdEWlBtmVdk2k7FFwj07PCZ9XAwW3dG+8xKzNFr4EnwBZpy9Qzhh3jDXebBpYcpuo4fQ44u+fD1dweEnHzI7v0xuuOALRUV8rXpFyfSTQYkhd7IHm07jpyhlkCmI0ALYqPTpUxXS+z4jgDj1Pflvmz5ecuItpIBxyTHpSTGWd9g1ApfD/bvwUhL4nT1EzqgX7cxfCcNmb3mPL/qi9SwTHJ49oj5ZLjccbTG3pRmlYi6JCG0mQrAt1+i2UXTZ2dv9IlQpN5naMYtviaXlTrFpoMsl3bOAFEa8sqPj2WCMrx3Yjx99qFwO59Aw/wgx+HlqNz8oZvA3exRDvuhL1jMQHPaOJ0+XyA3fp1OfM3qObEVdhxjvynxNMXQV4+GJyvOEFqeQBaIbbO7i63rpxCltdZShPFxkjM2FPVkn3TG+Rp9pO3l2RzFegGfxGDHIAh8SteR0C4HopXzRF61nheDw6TFN05Ebvq8M3VKKpGjjO6r7nhudTEGMtYM92HTDaR1FDMXJ1eThsbKfywyoWwrzRSXkc51flG3vIid62h29bIcFbTGhfV+faaB+ohj7dPN0C2e2lC96+XouFByen9AsunLDJZ9z7NExiUc0OuoYW6UZkIyx2YUR2z6/TiRjyKMx5GbbjLHvHuf7YmtKghf34LJfx63Yg8vrvN2zC7lY0x0tvKezo4HmGYDU+Gab6dFL+KI761lDcNifcjLrrr9LWZJctG1FfU1uwhoQE22ObjdfkSzY63CbU5hzs21WeTddH2BaL11Gi7lVdlxP1nkxqhnKhVY6knS3EPgVGg1JpN5cP/hivujOelhXcPj8HC/LyI6MkteVjlolBdMmF3a3DbsuAYhL44dxzthWSN065xxUd55Lmf0wRbOYOqH09/o9WbO2VtFdaMb4qBgtFJoT1SqoN8wPXMoXLb3p1PUEhxfnnLzGzBI0Ku7FxrKsNJj/8bn/H8fPIVOd3rfrklUB/DOeO+nkghgSPzrlPxluCMtOnDL4Yml6dK1r3vsgMxgtPOrMFUZbEUbTdIzii5beq72G4PD0DKnwjmBULUVFmy8t+k7fZ3pKc0Q4UC6jpVRqS9Umv8bxw35flZVOU1X7qkjnhZlsMbk24qQ6Hz7QcuL6sDC0iHHki96Uh2UdvmgZnjIvExy2TeJdMDZNSbdZyAHe/Yd1xsQhHiKzjh7GxQ4yqMPaywPkjMamvqrYpmO7Knad+ZQC5msCuAPWUoxrxVhrGv7a+KLXFhyONdTMrZ7ke23qiO40ZJUyzgYyX5XyL0mV7NiUzEs9mjtbMN0dERqwyAJpigad0B3/zRV7s4PIfXSu6YV/MK7+OrYe/JvfGMn/PHJe2fyUdtnFrKRNpXV0Y2559aWPt/G4BlvjTMtXlVIWCnNyA3YQBDmYIodFz41PvXPSa6rq9lWZawZ4dP115HXV/M/tnFkkrBOdzg6aP4pID+MZnTJ1SuuB6iZlyiox4HT2y3YBtkUKWooacBQUDTpjwaDt5poBHl1/HXltwP887lKKXxNUEyPqpGTyA699UqY/lt9yGdlUKra0fFWS+36iylVWrAyd7Uw0CZM0z7xKTOduznLIjG2Hx8cDPLb+OvK6Bv7n1DYci4CxUuRxrjBc0bb4vD3rN5Zz36ntLb83eVJIB8LiIzCmn6SMPjlX+yNlTjvIGjs+QzHPf60Aj62/jrzG8j9vYMFtm1VoRWCJdmw7z9N0t+c8cxZpPeK4aTRicS25QhrVtUp7U578chk4q04Wx4YoQSjFryUlpcQ1AbxZ/XVMknIU//OGl7Q6z9Zpxi0+3yFhSkjUDpnCIUhLWVX23KQ+L9vKvFKI0ZWFQgkDLvBoylrHNVmaw10zwCPrr5tlodfnf94EWnQ0lFRWy8pW9LbkLsyUVDc2NSTHGDtnD1uMtchjbCeb1mpxFP0YbcClhzdLu6lfO8Bj6q+bdT2sz/+8SZCV7VIxtt0DUn9L7r4cLYWDSXnseEpOGFuty0qbOVlS7NNzs5FOGJUqQpl2Q64/yBpZf90sxbE+//PGdZ02HSipCbmD6NItmQ4Lk5XUrGpDMkhbMm2ZVheNYV+VbUWTcv99+2NyX1VoafSuC+AN6q9bFIMv5X/eagNWXZxEa9JjlMwNWb00akGUkSoepp1/yRuuqHGbUn3UdBSTxBU6SEVklzWRUkPndVvw2PrrpjvxOvzPmwHc0hpmq82npi7GRro8dXp0KXnUQmhZbRL7NEVp1uuZmO45vuzKsHrktS3GLWXODVjw+vXXLYx4Hf7njRPd0i3aoAGX6W29GnaV5YdyDj9TFkakje7GHYzDoObfddHtOSpoi2SmzJHrB3hM/XUDDEbxP2/oosszcRlehWXUvzHv4TpBVktHqwenFo8uLVmy4DKLa5d3RtLrmrM3aMFr1183E4sewf+85VWeg1c5ag276NZrM9IJVNcmLEvDNaV62aq+14IAOGFsBt973Ra8Xv11YzXwNfmft7Jg2oS+XOyoC8/cwzi66Dhmgk38kUmP1CUiYWOX1bpD2zWXt2FCp7uq8703APAa9dfNdscR/M/bZLIyouVxqJfeWvG9Je+JVckHQ9+CI9NWxz+blX/KYYvO5n2tAP/vrlZ7+8/h9y+9qeB/Hnt967e5mevX10rALDWK//FaAT5MXdBXdP0C/BAes792c40H+AiAp1e1oH8HgH94g/Lttx1gp63op1eyoM/Bvw5/G/7xFbqJPcCXnmBiwDPb/YKO4FX4OjyCb289db2/Noqicw4i7N6TVtoz8tNwDH+8x/i6Ae7lmaQVENzJFb3Di/BFeAwz+Is9SjeQySpPqbLFlNmyz47z5a/AF+AYFvDmHqibSXTEzoT4Gc3OALaqAP4KPFUJ6n+1x+rGAM6Zd78bgJ0a8QN4GU614vxwD9e1Amy6CcskNrczLx1JIp6HE5UZD/DBHrFr2oNlgG4Odv226BodoryjGJ9q2T/AR3vQrsOCS0ctXZi3ruLlhpFDJYl4HmYtjQCP9rhdn4suySLKDt6wLcC52h8xPlcjju1fn+yhuw4LZsAGUuo2b4Fx2UwQu77uqRHXGtg92aN3tQCbFexc0uk93vhTXbct6y7MulLycoUljx8ngDMBg1tvJjAazpEmOtxlzclvj1vQf1Tx7QlPDpGpqgtdSKz/d9/hdy1vTfFHSmC9dGDZbLiezz7Ac801HirGZsWjydfZyPvHXL/Y8Mjzg8BxTZiuwKz4Eb8sBE9zznszmjvFwHKPIWUnwhqfVRcd4Ck0K6ate48m1oOfrX3/yOtvAsJ8zsPAM89sjnddmuLuDPjX9Bu/L7x7xpMzFk6nWtyQfPg278Gn4Aekz2ZgOmU9eJ37R14vwE/BL8G3aibCiWMWWDQ0ZtkPMnlcGeAu/Ag+8ZyecU5BPuy2ILD+sQqyZhAKmn7XZd+jIMTN9eBL7x95xVLSX4On8EcNlXDqmBlqS13jG4LpmGbkF/0CnOi3H8ETOIXzmnmtb0a16Tzxj1sUvQCBiXZGDtmB3KAefPH94xcUa/6vwRn80GOFyjEXFpba4A1e8KQfFF+259tx5XS4egYn8fQsLGrqGrHbztr+uByTahWuL1NUGbDpsnrwBfePPwHHIf9X4RnM4Z2ABWdxUBlqQ2PwhuDxoS0vvqB1JzS0P4h2nA/QgTrsJFn+Y3AOjs9JFC07CGWX1oNX3T/yHOzgDjwPn1PM3g9Jk9lZrMEpxnlPmBbjyo2+KFXRU52TJM/2ALcY57RUzjObbjqxVw++4P6RAOf58pcVsw9Daje3htriYrpDOonre3CudSe6bfkTEgHBHuDiyu5MCsc7BHhYDx7ePxLjqigXZsw+ijMHFhuwBmtoTPtOxOrTvYJDnC75dnUbhfwu/ZW9AgYd+peL68HD+0emKquiXHhWjJg/UrkJYzuiaL3E9aI/ytrCvAd4GcYZMCkSQxfUg3v3j8c4e90j5ZTPdvmJJGHnOCI2nHS8081X013pHuBlV1gB2MX1YNmWLHqqGN/TWmG0y6clJWthxNUl48q38Bi8vtMKyzzpFdSDhxZ5WBA5ZLt8Jv3895DduBlgbPYAj8C4B8hO68FDkoh5lydC4FiWvBOVqjYdqjiLv92t8yPDjrDaiHdUD15qkSURSGmXJwOMSxWAXYwr3zaAufJ66l+94vv3AO+vPcD7aw/w/toDvL/2AO+vPcD7aw/wHuD9tQd4f+0B3l97gPfXHuD9tQd4f+0B3l97gG8LwP8G/AL8O/A5OCq0Ys2KIdv/qOIXG/4mvFAMF16gZD+2Xvu/B8as5+8bfllWyg0zaNO5bfXj6vfhhwD86/Aq3NfRS9t9WPnhfnvCIw/CT8GLcFTMnpntdF/z9V+PWc/vWoIH+FL3Znv57PitcdGP4R/C34avw5fgRVUInCwbsn1yyA8C8zm/BH8NXoXnVE6wVPjdeCI38kX/3+Ct9dbz1pTmHFRu+Hm4O9Ch3clr99negxfwj+ER/DR8EV6B5+DuQOnTgUw5rnkY+FbNU3gNXh0o/JYTuWOvyBf9FvzX663HH/HejO8LwAl8Hl5YLTd8q7sqA3wbjuExfAFegQdwfyDoSkWY8swzEf6o4Qyewefg+cHNbqMQruSL/u/WWc+E5g7vnnEXgDmcDeSGb/F4cBcCgT+GGRzDU3hZYburAt9TEtHgbM6JoxJ+6NMzzTcf6c2bycv2+KK/f+l6LBzw5IwfqZJhA3M472pWT/ajKxnjv4AFnMEpnBTPND6s2J7qHbPAqcMK74T2mZ4VGB9uJA465It+/eL1WKhYOD7xHOkr1ajK7d0C4+ke4Hy9qXZwpgLr+Znm/uNFw8xQOSy8H9IzjUrd9+BIfenYaylf9FsXr8fBAadnPIEDna8IBcwlxnuA0/Wv6GAWPd7dDIKjMdSWueAsBj4M7TOd06qBbwDwKr7oleuxMOEcTuEZTHWvDYUO7aHqAe0Bbq+HEFRzOz7WVoTDQkVds7A4sIIxfCQdCefFRoIOF/NFL1mPab/nvOakSL/Q1aFtNpUb/nFOVX6gzyg/1nISyDfUhsokIzaBR9Kxm80s5mK+6P56il1jXic7nhQxsxSm3OwBHl4fFdLqi64nDQZvqE2at7cWAp/IVvrN6/BFL1mPhYrGMBfOi4PyjuSGf6wBBh7p/FZTghCNWGgMzlBbrNJoPJX2mW5mwZfyRffXo7OFi5pZcS4qZUrlViptrXtw+GQoyhDPS+ANjcGBNRiLCQDPZPMHuiZfdFpPSTcQwwKYdRNqpkjm7AFeeT0pJzALgo7g8YYGrMHS0iocy+YTm2vyRUvvpXCIpQ5pe666TJrcygnScUf/p0NDs/iAI/nqDHC8TmQT8x3NF91l76oDdQGwu61Z6E0ABv7uO1dbf/37Zlv+Zw/Pbh8f1s4Avur6657/+YYBvur6657/+YYBvur6657/+YYBvur6657/+aYBvuL6657/+VMA8FXWX/f8zzcN8BXXX/f8zzcNMFdbf93zP38KLPiK6697/uebtuArrr/u+Z9vGmCusP6653/+1FjwVdZf9/zPN7oHX339dc//fNMu+irrr3v+50+Bi+Zq6697/uebA/jz8Pudf9ht/fWv517J/XUzAP8C/BAeX9WCDrUpZ3/dEMBxgPcfbtTVvsYV5Yn32u03B3Ac4P3b8I+vxNBKeeL9dRMAlwO83959qGO78sT769oB7g3w/vGVYFzKE++v6wV4OMD7F7tckFkmT7y/rhHgpQO8b+4Y46XyxPvrugBeNcB7BRiX8sT767oAvmCA9woAHsoT76+rBJjLBnh3txOvkifeX1dswZcO8G6N7sXyxPvr6i340gHe3TnqVfLE++uKAb50gHcXLnrX8sR7gNdPRqwzwLu7Y/FO5Yn3AK9jXCMGeHdgxDuVJ75VAI8ljP7PAb3/RfjcZfePHBB+79dpfpH1CanN30d+mT1h9GqAxxJGM5LQeeQ1+Tb+EQJrElLb38VHQ94TRq900aMIo8cSOo+8Dp8QfsB8zpqE1NO3OI9Zrj1h9EV78PqE0WMJnUdeU6E+Jjyk/hbrEFIfeWbvId8H9oTRFwdZaxJGvziW0Hn0gqYB/wyZ0PwRlxJST+BOw9m77Amj14ii1yGM/txYQudN0qDzGe4EqfA/5GJCagsHcPaEPWH0esekSwmjRxM6b5JEcZ4ww50ilvAOFxBSx4yLW+A/YU8YvfY5+ALC6NGEzhtmyZoFZoarwBLeZxUhtY4rc3bKnjB6TKJjFUHzJoTOozF2YBpsjcyxDgzhQ1YRUse8+J4wenwmaylB82hC5w0zoRXUNXaRBmSMQUqiWSWkLsaVqc/ZE0aPTFUuJWgeTei8SfLZQeMxNaZSIzbII4aE1Nmr13P2hNHjc9E9guYNCZ032YlNwESMLcZiLQHkE4aE1BFg0yAR4z1h9AiAGRA0jyZ03tyIxWMajMPWBIsxYJCnlITU5ShiHYdZ94TR4wCmSxg9jtB5KyPGYzymAYexWEMwAPIsAdYdV6aObmNPGD0aYLoEzaMJnTc0Ygs+YDw0GAtqxBjkuP38bMRWCHn73xNGjz75P73WenCEJnhwyVe3AEe8TtKdJcYhBl97wuhNAObK66lvD/9J9NS75v17wuitAN5fe4D31x7g/bUHeH/tAd5fe4D3AO+vPcD7aw/w/toDvL/2AO+vPcD7aw/w/toDvAd4f/24ABzZ8o+KLsSLS+Pv/TqTb3P4hKlQrTGh+fbIBT0Axqznnb+L/V2mb3HkN5Mb/nEHeK7d4IcDld6lmDW/iH9E+AH1MdOw/Jlu2T1xNmY98sv4wHnD7D3uNHu54WUuOsBTbQuvBsPT/UfzNxGYzwkP8c+Yz3C+r/i6DcyRL/rZ+utRwWH5PmfvcvYEt9jLDS/bg0/B64DWKrQM8AL8FPwS9beQCe6EMKNZYJol37jBMy35otdaz0Bw2H/C2Smc7+WGB0HWDELBmOByA3r5QONo4V+DpzR/hFS4U8wMW1PXNB4TOqYz9urxRV++ntWCw/U59Ty9ebdWbrgfRS9AYKKN63ZokZVygr8GZ/gfIhZXIXPsAlNjPOLBby5c1eOLvmQ9lwkOy5x6QV1j5TYqpS05JtUgUHUp5toHGsVfn4NX4RnMCe+AxTpwmApTYxqMxwfCeJGjpXzRF61nbcHhUBPqWze9svwcHJ+S6NPscKrEjug78Dx8Lj3T8D4YxGIdxmJcwhi34fzZUr7olevZCw5vkOhoClq5zBPZAnygD/Tl9EzDh6kl3VhsHYcDEb+hCtJSvuiV69kLDm+WycrOTArHmB5/VYyP6jOVjwgGawk2zQOaTcc1L+aLXrKeveDwZqlKrw8U9Y1p66uK8dEzdYwBeUQAY7DbyYNezBfdWQ97weEtAKYQg2xJIkuveAT3dYeLGH+ShrWNwZgN0b2YL7qznr3g8JYAo5bQBziPjx7BPZ0d9RCQp4UZbnFdzBddor4XHN4KYMrB2qHFRIzzcLAHQZ5the5ovui94PCWAPefaYnxIdzRwdHCbuR4B+tbiy96Lzi8E4D7z7S0mEPd+eqO3cT53Z0Y8SV80XvB4Z0ADJi/f7X113f+7p7/+UYBvur6657/+YYBvur6657/+aYBvuL6657/+aYBvuL6657/+aYBvuL6657/+aYBvuL6657/+VMA8FXWX/f8z58OgK+y/rrnf75RgLna+uue//lTA/CV1V/3/M837aKvvv6653++UQvmauuve/7nTwfAV1N/3fM/fzr24Cuuv+75nz8FFnxl9dc9//MOr/8/glixwRuUfM4AAAAASUVORK5CYII="}getSearchTexture(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAhCAAAAABIXyLAAAAAOElEQVRIx2NgGAWjYBSMglEwEICREYRgFBZBqDCSLA2MGPUIVQETE9iNUAqLR5gIeoQKRgwXjwAAGn4AtaFeYLEAAAAASUVORK5CYII="}}},4033:function(t,e,n){"use strict";n.r(e),n.d(e,{SSAARenderPass:function(){return a}});var i=n(5644),r=n(8304),o=n(1154);class a extends r.Pass{constructor(t,e,n,a){super(),this.scene=t,this.camera=e,this.sampleLevel=4,this.unbiased=!0,this.clearColor=void 0!==n?n:0,this.clearAlpha=void 0!==a?a:0,this._oldClearColor=new i.Color,void 0===o.CopyShader&&console.error("THREE.SSAARenderPass relies on CopyShader");const s=o.CopyShader;this.copyUniforms=i.UniformsUtils.clone(s.uniforms),this.copyMaterial=new i.ShaderMaterial({uniforms:this.copyUniforms,vertexShader:s.vertexShader,fragmentShader:s.fragmentShader,premultipliedAlpha:!0,transparent:!0,blending:i.AdditiveBlending,depthTest:!1,depthWrite:!1}),this.fsQuad=new r.FullScreenQuad(this.copyMaterial)}dispose(){this.sampleRenderTarget&&(this.sampleRenderTarget.dispose(),this.sampleRenderTarget=null)}setSize(t,e){this.sampleRenderTarget&&this.sampleRenderTarget.setSize(t,e)}render(t,e,n){this.sampleRenderTarget||(this.sampleRenderTarget=new i.WebGLRenderTarget(n.width,n.height,{minFilter:i.LinearFilter,magFilter:i.LinearFilter,format:i.RGBAFormat}),this.sampleRenderTarget.texture.name="SSAARenderPass.sample");const r=s[Math.max(0,Math.min(this.sampleLevel,5))],o=t.autoClear;t.autoClear=!1,t.getClearColor(this._oldClearColor);const a=t.getClearAlpha(),l=1/r.length,c=1/32;this.copyUniforms.tDiffuse.value=this.sampleRenderTarget.texture;const u={fullWidth:n.width,fullHeight:n.height,offsetX:0,offsetY:0,width:n.width,height:n.height},h=Object.assign({},this.camera.view);h.enabled&&Object.assign(u,h);for(let i=0;i<r.length;i++){const n=r[i];this.camera.setViewOffset&&this.camera.setViewOffset(u.fullWidth,u.fullHeight,u.offsetX+.0625*n[0],u.offsetY+.0625*n[1],u.width,u.height);let o=l;if(this.unbiased){const t=(i+.5)/r.length-.5;o+=c*t}this.copyUniforms.opacity.value=o,t.setClearColor(this.clearColor,this.clearAlpha),t.setRenderTarget(this.sampleRenderTarget),t.clear(),t.render(this.scene,this.camera),t.setRenderTarget(this.renderToScreen?null:e),0===i&&(t.setClearColor(0,0),t.clear()),this.fsQuad.render(t)}this.camera.setViewOffset&&h.enabled?this.camera.setViewOffset(h.fullWidth,h.fullHeight,h.offsetX,h.offsetY,h.width,h.height):this.camera.clearViewOffset&&this.camera.clearViewOffset(),t.autoClear=o,t.setClearColor(this._oldClearColor,a)}}const s=[[[0,0]],[[4,4],[-4,-4]],[[-2,-6],[6,-2],[-6,2],[2,6]],[[1,-3],[-1,3],[5,1],[-3,-5],[-5,5],[-7,-1],[3,7],[7,-7]],[[1,1],[-1,-3],[-3,2],[4,-1],[-5,-2],[2,5],[5,3],[3,-5],[-2,6],[0,-7],[-4,-6],[-6,4],[-8,0],[7,-4],[6,7],[-7,-8]],[[-4,-7],[-7,-5],[-3,-5],[-5,-4],[-1,-4],[-2,-2],[-6,-1],[-4,0],[-7,1],[-1,2],[-6,3],[-3,3],[-7,6],[-3,6],[-5,7],[-1,7],[5,-7],[1,-6],[6,-5],[4,-4],[2,-3],[7,-2],[1,-1],[4,-1],[2,1],[6,2],[0,4],[4,4],[2,5],[7,5],[5,6],[3,7]]]},5171:function(t,e,n){"use strict";n.r(e),n.d(e,{SSRPass:function(){return c}});var i=n(5644),r=n(8304),o={defines:{MAX_STEP:0,PERSPECTIVE_CAMERA:!0,DISTANCE_ATTENUATION:!0,FRESNEL:!0,INFINITE_THICK:!1,SELECTIVE:!1},uniforms:{tDiffuse:{value:null},tNormal:{value:null},tMetalness:{value:null},tDepth:{value:null},cameraNear:{value:null},cameraFar:{value:null},resolution:{value:new i.Vector2},cameraProjectionMatrix:{value:new i.Matrix4},cameraInverseProjectionMatrix:{value:new i.Matrix4},opacity:{value:.5},maxDistance:{value:180},cameraRange:{value:0},thickness:{value:.018}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}\n\n\t",fragmentShader:'\n\t\t// precision highp float;\n\t\tprecision highp sampler2D;\n\t\tvarying vec2 vUv;\n\t\tuniform sampler2D tDepth;\n\t\tuniform sampler2D tNormal;\n\t\tuniform sampler2D tMetalness;\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform float cameraRange;\n\t\tuniform vec2 resolution;\n\t\tuniform float opacity;\n\t\tuniform float cameraNear;\n\t\tuniform float cameraFar;\n\t\tuniform float maxDistance;\n\t\tuniform float thickness;\n\t\tuniform mat4 cameraProjectionMatrix;\n\t\tuniform mat4 cameraInverseProjectionMatrix;\n\t\t#include <packing>\n\t\tfloat pointToLineDistance(vec3 x0, vec3 x1, vec3 x2) {\n\t\t\t//x0: point, x1: linePointA, x2: linePointB\n\t\t\t//https://mathworld.wolfram.com/Point-LineDistance3-Dimensional.html\n\t\t\treturn length(cross(x0-x1,x0-x2))/length(x2-x1);\n\t\t}\n\t\tfloat pointPlaneDistance(vec3 point,vec3 planePoint,vec3 planeNormal){\n\t\t\t// https://mathworld.wolfram.com/Point-PlaneDistance.html\n\t\t\t//// https://en.wikipedia.org/wiki/Plane_(geometry)\n\t\t\t//// http://paulbourke.net/geometry/pointlineplane/\n\t\t\tfloat a=planeNormal.x,b=planeNormal.y,c=planeNormal.z;\n\t\t\tfloat x0=point.x,y0=point.y,z0=point.z;\n\t\t\tfloat x=planePoint.x,y=planePoint.y,z=planePoint.z;\n\t\t\tfloat d=-(a*x+b*y+c*z);\n\t\t\tfloat distance=(a*x0+b*y0+c*z0+d)/sqrt(a*a+b*b+c*c);\n\t\t\treturn distance;\n\t\t}\n\t\tfloat getDepth( const in vec2 uv ) {\n\t\t\treturn texture2D( tDepth, uv ).x;\n\t\t}\n\t\tfloat getViewZ( const in float depth ) {\n\t\t\t#ifdef PERSPECTIVE_CAMERA\n\t\t\t\treturn perspectiveDepthToViewZ( depth, cameraNear, cameraFar );\n\t\t\t#else\n\t\t\t\treturn orthographicDepthToViewZ( depth, cameraNear, cameraFar );\n\t\t\t#endif\n\t\t}\n\t\tvec3 getViewPosition( const in vec2 uv, const in float depth/*clip space*/, const in float clipW ) {\n\t\t\tvec4 clipPosition = vec4( ( vec3( uv, depth ) - 0.5 ) * 2.0, 1.0 );//ndc\n\t\t\tclipPosition *= clipW; //clip\n\t\t\treturn ( cameraInverseProjectionMatrix * clipPosition ).xyz;//view\n\t\t}\n\t\tvec3 getViewNormal( const in vec2 uv ) {\n\t\t\treturn unpackRGBToNormal( texture2D( tNormal, uv ).xyz );\n\t\t}\n\t\tvec2 viewPositionToXY(vec3 viewPosition){\n\t\t\tvec2 xy;\n\t\t\tvec4 clip=cameraProjectionMatrix*vec4(viewPosition,1);\n\t\t\txy=clip.xy;//clip\n\t\t\tfloat clipW=clip.w;\n\t\t\txy/=clipW;//NDC\n\t\t\txy=(xy+1.)/2.;//uv\n\t\t\txy*=resolution;//screen\n\t\t\treturn xy;\n\t\t}\n\t\tvoid main(){\n\t\t\t#ifdef SELECTIVE\n\t\t\t\tfloat metalness=texture2D(tMetalness,vUv).r;\n\t\t\t\tif(metalness==0.) return;\n\t\t\t#endif\n\n\t\t\tfloat depth = getDepth( vUv );\n\t\t\tfloat viewZ = getViewZ( depth );\n\t\t\tif(-viewZ>=cameraFar) return;\n\n\t\t\tfloat clipW = cameraProjectionMatrix[2][3] * viewZ+cameraProjectionMatrix[3][3];\n\t\t\tvec3 viewPosition=getViewPosition( vUv, depth, clipW );\n\n\t\t\tvec2 d0=gl_FragCoord.xy;\n\t\t\tvec2 d1;\n\n\t\t\tvec3 viewNormal=getViewNormal( vUv );\n\n\t\t\t#ifdef PERSPECTIVE_CAMERA\n\t\t\t\tvec3 viewIncidentDir=normalize(viewPosition);\n\t\t\t\tvec3 viewReflectDir=reflect(viewIncidentDir,viewNormal);\n\t\t\t#else\n\t\t\t\tvec3 viewIncidentDir=vec3(0,0,-1);\n\t\t\t\tvec3 viewReflectDir=reflect(viewIncidentDir,viewNormal);\n\t\t\t#endif\n\n\t\t\tfloat maxReflectRayLen=maxDistance/dot(-viewIncidentDir,viewNormal);\n\t\t\t// dot(a,b)==length(a)*length(b)*cos(theta) // https://www.mathsisfun.com/algebra/vectors-dot-product.html\n\t\t\t// if(a.isNormalized&&b.isNormalized) dot(a,b)==cos(theta)\n\t\t\t// maxDistance/maxReflectRayLen=cos(theta)\n\t\t\t// maxDistance/maxReflectRayLen==dot(a,b)\n\t\t\t// maxReflectRayLen==maxDistance/dot(a,b)\n\n\t\t\tvec3 d1viewPosition=viewPosition+viewReflectDir*maxReflectRayLen;\n\t\t\t#ifdef PERSPECTIVE_CAMERA\n\t\t\t\tif(d1viewPosition.z>-cameraNear){\n\t\t\t\t\t//https://tutorial.math.lamar.edu/Classes/CalcIII/EqnsOfLines.aspx\n\t\t\t\t\tfloat t=(-cameraNear-viewPosition.z)/viewReflectDir.z;\n\t\t\t\t\td1viewPosition=viewPosition+viewReflectDir*t;\n\t\t\t\t}\n\t\t\t#endif\n\t\t\td1=viewPositionToXY(d1viewPosition);\n\n\t\t\tfloat totalLen=length(d1-d0);\n\t\t\tfloat xLen=d1.x-d0.x;\n\t\t\tfloat yLen=d1.y-d0.y;\n\t\t\tfloat totalStep=max(abs(xLen),abs(yLen));\n\t\t\tfloat xSpan=xLen/totalStep;\n\t\t\tfloat ySpan=yLen/totalStep;\n\t\t\tfor(float i=0.;i<float(MAX_STEP);i++){\n\t\t\t\tif(i>=totalStep) break;\n\t\t\t\tvec2 xy=vec2(d0.x+i*xSpan,d0.y+i*ySpan);\n\t\t\t\tif(xy.x<0.||xy.x>resolution.x||xy.y<0.||xy.y>resolution.y) break;\n\t\t\t\tfloat s=length(xy-d0)/totalLen;\n\t\t\t\tvec2 uv=xy/resolution;\n\n\t\t\t\tfloat d = getDepth(uv);\n\t\t\t\tfloat vZ = getViewZ( d );\n\t\t\t\tif(-vZ>=cameraFar) continue;\n\t\t\t\tfloat cW = cameraProjectionMatrix[2][3] * vZ+cameraProjectionMatrix[3][3];\n\t\t\t\tvec3 vP=getViewPosition( uv, d, cW );\n\n\t\t\t\t#ifdef PERSPECTIVE_CAMERA\n\t\t\t\t\t// https://comp.nus.edu.sg/~lowkl/publications/lowk_persp_interp_techrep.pdf\n\t\t\t\t\tfloat recipVPZ=1./viewPosition.z;\n\t\t\t\t\tfloat viewReflectRayZ=1./(recipVPZ+s*(1./d1viewPosition.z-recipVPZ));\n\t\t\t\t#else\n\t\t\t\t\tfloat viewReflectRayZ=viewPosition.z+s*(d1viewPosition.z-viewPosition.z);\n\t\t\t\t#endif\n\n\t\t\t\t// if(viewReflectRayZ>vZ) continue; // will cause "npm run make-screenshot webgl_postprocessing_ssr" high probability hang.\n\t\t\t\t// https://github.com/mrdoob/three.js/pull/21539#issuecomment-821061164\n\t\t\t\tif(viewReflectRayZ<=vZ){\n\n\t\t\t\t\tbool hit;\n\t\t\t\t\t#ifdef INFINITE_THICK\n\t\t\t\t\t\thit=true;\n\t\t\t\t\t#else\n\t\t\t\t\t\tfloat away=pointToLineDistance(vP,viewPosition,d1viewPosition);\n\n\t\t\t\t\t\tfloat minThickness;\n\t\t\t\t\t\tvec2 xyNeighbor=xy;\n\t\t\t\t\t\txyNeighbor.x+=1.;\n\t\t\t\t\t\tvec2 uvNeighbor=xyNeighbor/resolution;\n\t\t\t\t\t\tvec3 vPNeighbor=getViewPosition(uvNeighbor,d,cW);\n\t\t\t\t\t\tminThickness=vPNeighbor.x-vP.x;\n\t\t\t\t\t\tminThickness*=3.;\n\t\t\t\t\t\tfloat tk=max(minThickness,thickness);\n\n\t\t\t\t\t\thit=away<=tk;\n\t\t\t\t\t#endif\n\n\t\t\t\t\tif(hit){\n\t\t\t\t\t\tvec3 vN=getViewNormal( uv );\n\t\t\t\t\t\tif(dot(viewReflectDir,vN)>=0.) continue;\n\t\t\t\t\t\tfloat distance=pointPlaneDistance(vP,viewPosition,viewNormal);\n\t\t\t\t\t\tif(distance>maxDistance) break;\n\t\t\t\t\t\tfloat op=opacity;\n\t\t\t\t\t\t#ifdef DISTANCE_ATTENUATION\n\t\t\t\t\t\t\tfloat ratio=1.-(distance/maxDistance);\n\t\t\t\t\t\t\tfloat attenuation=ratio*ratio;\n\t\t\t\t\t\t\top=opacity*attenuation;\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#ifdef FRESNEL\n\t\t\t\t\t\t\tfloat fresnelCoe=(dot(viewIncidentDir,viewReflectDir)+1.)/2.;\n\t\t\t\t\t\t\top*=fresnelCoe;\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\tvec4 reflectColor=texture2D(tDiffuse,uv);\n\t\t\t\t\t\tgl_FragColor.xyz=reflectColor.xyz;\n\t\t\t\t\t\tgl_FragColor.a=op;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t'},a={defines:{PERSPECTIVE_CAMERA:1},uniforms:{tDepth:{value:null},cameraNear:{value:null},cameraFar:{value:null}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}\n\n\t",fragmentShader:"\n\n\t\tuniform sampler2D tDepth;\n\n\t\tuniform float cameraNear;\n\t\tuniform float cameraFar;\n\n\t\tvarying vec2 vUv;\n\n\t\t#include <packing>\n\n\t\tfloat getLinearDepth( const in vec2 uv ) {\n\n\t\t\t#if PERSPECTIVE_CAMERA == 1\n\n\t\t\t\tfloat fragCoordZ = texture2D( tDepth, uv ).x;\n\t\t\t\tfloat viewZ = perspectiveDepthToViewZ( fragCoordZ, cameraNear, cameraFar );\n\t\t\t\treturn viewZToOrthographicDepth( viewZ, cameraNear, cameraFar );\n\n\t\t\t#else\n\n\t\t\t\treturn texture2D( tDepth, uv ).x;\n\n\t\t\t#endif\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tfloat depth = getLinearDepth( vUv );\n\t\t\tfloat d = 1.0 - depth;\n\t\t\t// d=(d-.999)*1000.;\n\t\t\tgl_FragColor = vec4( vec3( d ), 1.0 );\n\n\t\t}\n\n\t"},s={uniforms:{tDiffuse:{value:null},resolution:{value:new i.Vector2},opacity:{value:.5}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}\n\n\t",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform vec2 resolution;\n\t\tvarying vec2 vUv;\n\t\tvoid main() {\n\t\t\t//reverse engineering from PhotoShop blur filter, then change coefficient\n\n\t\t\tvec2 texelSize = ( 1.0 / resolution );\n\n\t\t\tvec4 c=texture2D(tDiffuse,vUv);\n\n\t\t\tvec2 offset;\n\n\t\t\toffset=(vec2(-1,0))*texelSize;\n\t\t\tvec4 cl=texture2D(tDiffuse,vUv+offset);\n\n\t\t\toffset=(vec2(1,0))*texelSize;\n\t\t\tvec4 cr=texture2D(tDiffuse,vUv+offset);\n\n\t\t\toffset=(vec2(0,-1))*texelSize;\n\t\t\tvec4 cb=texture2D(tDiffuse,vUv+offset);\n\n\t\t\toffset=(vec2(0,1))*texelSize;\n\t\t\tvec4 ct=texture2D(tDiffuse,vUv+offset);\n\n\t\t\t// float coeCenter=.5;\n\t\t\t// float coeSide=.125;\n\t\t\tfloat coeCenter=.2;\n\t\t\tfloat coeSide=.2;\n\t\t\tfloat a=c.a*coeCenter+cl.a*coeSide+cr.a*coeSide+cb.a*coeSide+ct.a*coeSide;\n\t\t\tvec3 rgb=(c.rgb*c.a*coeCenter+cl.rgb*cl.a*coeSide+cr.rgb*cr.a*coeSide+cb.rgb*cb.a*coeSide+ct.rgb*ct.a*coeSide)/a;\n\t\t\tgl_FragColor=vec4(rgb,a);\n\n\t\t}\n\t"},l=n(1154);class c extends r.Pass{constructor({renderer:t,scene:e,camera:n,width:c,height:u,selects:h,bouncing:d=!1,groundReflector:p}){super(),this.width=void 0!==c?c:512,this.height=void 0!==u?u:512,this.clear=!0,this.renderer=t,this.scene=e,this.camera=n,this.groundReflector=p,this.opacity=o.uniforms.opacity.value,this.output=0,this.maxDistance=o.uniforms.maxDistance.value,this.thickness=o.uniforms.thickness.value,this.tempColor=new i.Color,this._selects=h,this.selective=Array.isArray(this._selects),Object.defineProperty(this,"selects",{get(){return this._selects},set(t){this._selects!==t&&(this._selects=t,Array.isArray(t)?(this.selective=!0,this.ssrMaterial.defines.SELECTIVE=!0,this.ssrMaterial.needsUpdate=!0):(this.selective=!1,this.ssrMaterial.defines.SELECTIVE=!1,this.ssrMaterial.needsUpdate=!0))}}),this._bouncing=d,Object.defineProperty(this,"bouncing",{get(){return this._bouncing},set(t){this._bouncing!==t&&(this._bouncing=t,this.ssrMaterial.uniforms.tDiffuse.value=t?this.prevRenderTarget.texture:this.beautyRenderTarget.texture)}}),this.blur=!0,this._distanceAttenuation=o.defines.DISTANCE_ATTENUATION,Object.defineProperty(this,"distanceAttenuation",{get(){return this._distanceAttenuation},set(t){this._distanceAttenuation!==t&&(this._distanceAttenuation=t,this.ssrMaterial.defines.DISTANCE_ATTENUATION=t,this.ssrMaterial.needsUpdate=!0)}}),this._fresnel=o.defines.FRESNEL,Object.defineProperty(this,"fresnel",{get(){return this._fresnel},set(t){this._fresnel!==t&&(this._fresnel=t,this.ssrMaterial.defines.FRESNEL=t,this.ssrMaterial.needsUpdate=!0)}}),this._infiniteThick=o.defines.INFINITE_THICK,Object.defineProperty(this,"infiniteThick",{get(){return this._infiniteThick},set(t){this._infiniteThick!==t&&(this._infiniteThick=t,this.ssrMaterial.defines.INFINITE_THICK=t,this.ssrMaterial.needsUpdate=!0)}});const f=new i.DepthTexture;f.type=i.UnsignedShortType,f.minFilter=i.NearestFilter,f.magFilter=i.NearestFilter,this.beautyRenderTarget=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.NearestFilter,magFilter:i.NearestFilter,format:i.RGBAFormat,depthTexture:f,depthBuffer:!0}),this.prevRenderTarget=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.NearestFilter,magFilter:i.NearestFilter,format:i.RGBAFormat}),this.normalRenderTarget=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.NearestFilter,magFilter:i.NearestFilter,format:i.RGBAFormat,type:i.HalfFloatType}),this.metalnessRenderTarget=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.NearestFilter,magFilter:i.NearestFilter,format:i.RGBAFormat}),this.ssrRenderTarget=new i.WebGLRenderTarget(this.width,this.height,{minFilter:i.NearestFilter,magFilter:i.NearestFilter,format:i.RGBAFormat}),this.blurRenderTarget=this.ssrRenderTarget.clone(),this.blurRenderTarget2=this.ssrRenderTarget.clone(),void 0===o&&console.error("THREE.SSRPass: The pass relies on SSRShader."),this.ssrMaterial=new i.ShaderMaterial({defines:Object.assign({},o.defines,{MAX_STEP:Math.sqrt(this.width*this.width+this.height*this.height)}),uniforms:i.UniformsUtils.clone(o.uniforms),vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,blending:i.NoBlending}),this.ssrMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.ssrMaterial.uniforms.tNormal.value=this.normalRenderTarget.texture,this.ssrMaterial.defines.SELECTIVE=this.selective,this.ssrMaterial.needsUpdate=!0,this.ssrMaterial.uniforms.tMetalness.value=this.metalnessRenderTarget.texture,this.ssrMaterial.uniforms.tDepth.value=this.beautyRenderTarget.depthTexture,this.ssrMaterial.uniforms.cameraNear.value=this.camera.near,this.ssrMaterial.uniforms.cameraFar.value=this.camera.far,this.ssrMaterial.uniforms.thickness.value=this.thickness,this.ssrMaterial.uniforms.resolution.value.set(this.width,this.height),this.ssrMaterial.uniforms.cameraProjectionMatrix.value.copy(this.camera.projectionMatrix),this.ssrMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse),this.normalMaterial=new i.MeshNormalMaterial,this.normalMaterial.blending=i.NoBlending,this.metalnessOnMaterial=new i.MeshBasicMaterial({color:"white"}),this.metalnessOffMaterial=new i.MeshBasicMaterial({color:"black"}),this.blurMaterial=new i.ShaderMaterial({defines:Object.assign({},s.defines),uniforms:i.UniformsUtils.clone(s.uniforms),vertexShader:s.vertexShader,fragmentShader:s.fragmentShader}),this.blurMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.blurMaterial.uniforms.resolution.value.set(this.width,this.height),this.blurMaterial2=new i.ShaderMaterial({defines:Object.assign({},s.defines),uniforms:i.UniformsUtils.clone(s.uniforms),vertexShader:s.vertexShader,fragmentShader:s.fragmentShader}),this.blurMaterial2.uniforms.tDiffuse.value=this.blurRenderTarget.texture,this.blurMaterial2.uniforms.resolution.value.set(this.width,this.height),this.depthRenderMaterial=new i.ShaderMaterial({defines:Object.assign({},a.defines),uniforms:i.UniformsUtils.clone(a.uniforms),vertexShader:a.vertexShader,fragmentShader:a.fragmentShader,blending:i.NoBlending}),this.depthRenderMaterial.uniforms.tDepth.value=this.beautyRenderTarget.depthTexture,this.depthRenderMaterial.uniforms.cameraNear.value=this.camera.near,this.depthRenderMaterial.uniforms.cameraFar.value=this.camera.far,this.copyMaterial=new i.ShaderMaterial({uniforms:i.UniformsUtils.clone(l.CopyShader.uniforms),vertexShader:l.CopyShader.vertexShader,fragmentShader:l.CopyShader.fragmentShader,transparent:!0,depthTest:!1,depthWrite:!1,blendSrc:i.SrcAlphaFactor,blendDst:i.OneMinusSrcAlphaFactor,blendEquation:i.AddEquation,blendSrcAlpha:i.SrcAlphaFactor,blendDstAlpha:i.OneMinusSrcAlphaFactor,blendEquationAlpha:i.AddEquation}),this.fsQuad=new r.FullScreenQuad(null),this.originalClearColor=new i.Color}dispose(){this.beautyRenderTarget.dispose(),this.prevRenderTarget.dispose(),this.normalRenderTarget.dispose(),this.metalnessRenderTarget.dispose(),this.ssrRenderTarget.dispose(),this.blurRenderTarget.dispose(),this.blurRenderTarget2.dispose(),this.normalMaterial.dispose(),this.metalnessOnMaterial.dispose(),this.metalnessOffMaterial.dispose(),this.blurMaterial.dispose(),this.blurMaterial2.dispose(),this.copyMaterial.dispose(),this.depthRenderMaterial.dispose(),this.fsQuad.dispose()}render(t,e){switch(t.setRenderTarget(this.beautyRenderTarget),t.clear(),this.groundReflector&&(this.groundReflector.visible=!1,this.groundReflector.doRender(this.renderer,this.scene,this.camera),this.groundReflector.visible=!0),t.render(this.scene,this.camera),this.groundReflector&&(this.groundReflector.visible=!1),this.renderOverride(t,this.normalMaterial,this.normalRenderTarget,0,0),this.selective&&this.renderMetalness(t,this.metalnessOnMaterial,this.metalnessRenderTarget,0,0),this.ssrMaterial.uniforms.opacity.value=this.opacity,this.ssrMaterial.uniforms.maxDistance.value=this.maxDistance,this.ssrMaterial.uniforms.thickness.value=this.thickness,this.renderPass(t,this.ssrMaterial,this.ssrRenderTarget),this.blur&&(this.renderPass(t,this.blurMaterial,this.blurRenderTarget),this.renderPass(t,this.blurMaterial2,this.blurRenderTarget2)),this.output){case c.OUTPUT.Default:this.bouncing?(this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=i.NoBlending,this.renderPass(t,this.copyMaterial,this.prevRenderTarget),this.blur?this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.copyMaterial.blending=i.NormalBlending,this.renderPass(t,this.copyMaterial,this.prevRenderTarget),this.copyMaterial.uniforms.tDiffuse.value=this.prevRenderTarget.texture,this.copyMaterial.blending=i.NoBlending,this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e)):(this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=i.NoBlending,this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e),this.blur?this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.copyMaterial.blending=i.NormalBlending,this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e));break;case c.OUTPUT.SSR:this.blur?this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.copyMaterial.blending=i.NoBlending,this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e),this.bouncing&&(this.blur?this.copyMaterial.uniforms.tDiffuse.value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=i.NoBlending,this.renderPass(t,this.copyMaterial,this.prevRenderTarget),this.copyMaterial.uniforms.tDiffuse.value=this.ssrRenderTarget.texture,this.copyMaterial.blending=i.NormalBlending,this.renderPass(t,this.copyMaterial,this.prevRenderTarget));break;case c.OUTPUT.Beauty:this.copyMaterial.uniforms.tDiffuse.value=this.beautyRenderTarget.texture,this.copyMaterial.blending=i.NoBlending,this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e);break;case c.OUTPUT.Depth:this.renderPass(t,this.depthRenderMaterial,this.renderToScreen?null:e);break;case c.OUTPUT.Normal:this.copyMaterial.uniforms.tDiffuse.value=this.normalRenderTarget.texture,this.copyMaterial.blending=i.NoBlending,this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e);break;case c.OUTPUT.Metalness:this.copyMaterial.uniforms.tDiffuse.value=this.metalnessRenderTarget.texture,this.copyMaterial.blending=i.NoBlending,this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e);break;default:console.warn("THREE.SSRPass: Unknown output type.")}}renderPass(t,e,n,i,r){this.originalClearColor.copy(t.getClearColor(this.tempColor));const o=t.getClearAlpha(this.tempColor),a=t.autoClear;t.setRenderTarget(n),t.autoClear=!1,null!=i&&(t.setClearColor(i),t.setClearAlpha(r||0),t.clear()),this.fsQuad.material=e,this.fsQuad.render(t),t.autoClear=a,t.setClearColor(this.originalClearColor),t.setClearAlpha(o)}renderOverride(t,e,n,i,r){this.originalClearColor.copy(t.getClearColor(this.tempColor));const o=t.getClearAlpha(this.tempColor),a=t.autoClear;t.setRenderTarget(n),t.autoClear=!1,i=e.clearColor||i,r=e.clearAlpha||r,null!=i&&(t.setClearColor(i),t.setClearAlpha(r||0),t.clear()),this.scene.overrideMaterial=e,t.render(this.scene,this.camera),this.scene.overrideMaterial=null,t.autoClear=a,t.setClearColor(this.originalClearColor),t.setClearAlpha(o)}renderMetalness(t,e,n,i,r){this.originalClearColor.copy(t.getClearColor(this.tempColor));const o=t.getClearAlpha(this.tempColor),a=t.autoClear;t.setRenderTarget(n),t.autoClear=!1,i=e.clearColor||i,r=e.clearAlpha||r,null!=i&&(t.setClearColor(i),t.setClearAlpha(r||0),t.clear()),this.scene.traverseVisible(t=>{t._SSRPassBackupMaterial=t.material,this._selects.includes(t)?t.material=this.metalnessOnMaterial:t.material=this.metalnessOffMaterial}),t.render(this.scene,this.camera),this.scene.traverseVisible(t=>{t.material=t._SSRPassBackupMaterial}),t.autoClear=a,t.setClearColor(this.originalClearColor),t.setClearAlpha(o)}setSize(t,e){this.width=t,this.height=e,this.ssrMaterial.defines.MAX_STEP=Math.sqrt(t*t+e*e),this.ssrMaterial.needsUpdate=!0,this.beautyRenderTarget.setSize(t,e),this.prevRenderTarget.setSize(t,e),this.ssrRenderTarget.setSize(t,e),this.normalRenderTarget.setSize(t,e),this.metalnessRenderTarget.setSize(t,e),this.blurRenderTarget.setSize(t,e),this.blurRenderTarget2.setSize(t,e),this.ssrMaterial.uniforms.resolution.value.set(t,e),this.ssrMaterial.uniforms.cameraProjectionMatrix.value.copy(this.camera.projectionMatrix),this.ssrMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse),this.blurMaterial.uniforms.resolution.value.set(t,e),this.blurMaterial2.uniforms.resolution.value.set(t,e)}}c.OUTPUT={Default:0,SSR:1,Beauty:3,Depth:4,Normal:5,Metalness:7}},7531:function(t,e,n){"use strict";n.r(e),n.d(e,{ShaderPass:function(){return o}});var i=n(5644),r=n(8304);class o extends r.Pass{constructor(t,e){super(),this.textureID=void 0!==e?e:"tDiffuse",t instanceof i.ShaderMaterial?(this.uniforms=t.uniforms,this.material=t):t&&(this.uniforms=i.UniformsUtils.clone(t.uniforms),this.material=new i.ShaderMaterial({defines:Object.assign({},t.defines),uniforms:this.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader})),this.fsQuad=new r.FullScreenQuad(this.material)}render(t,e,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this.fsQuad.material=this.material,this.renderToScreen?(t.setRenderTarget(null),this.fsQuad.render(t)):(t.setRenderTarget(e),this.clear&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),this.fsQuad.render(t))}}},1764:function(t,e,n){"use strict";n.r(e),n.d(e,{CSS2DObject:function(){return r},CSS2DRenderer:function(){return u}});var i=n(5644);class r extends i.Object3D{constructor(t=document.createElement("div")){super(),this.element=t,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.addEventListener("removed",(function(){this.traverse((function(t){t.element instanceof Element&&null!==t.element.parentNode&&t.element.parentNode.removeChild(t.element)}))}))}copy(t,e){return super.copy(t,e),this.element=t.element.cloneNode(!0),this}}r.prototype.isCSS2DObject=!0;const o=new i.Vector3,a=new i.Matrix4,s=new i.Matrix4,l=new i.Vector3,c=new i.Vector3;class u{constructor(t={}){const e=this;let n,i,r,u;const h={objects:new WeakMap},d=void 0!==t.element?t.element:document.createElement("div");function p(t,n,i){if(t.isCSS2DObject){t.onBeforeRender(e,n,i),o.setFromMatrixPosition(t.matrixWorld),o.applyMatrix4(s);const a=t.element;/apple/i.test(navigator.vendor)?a.style.transform="translate(-50%,-50%) translate("+Math.round(o.x*r+r)+"px,"+Math.round(-o.y*u+u)+"px)":a.style.transform="translate(-50%,-50%) translate("+(o.x*r+r)+"px,"+(-o.y*u+u)+"px)",a.style.display=t.visible&&o.z>=-1&&o.z<=1?"":"none";const l={distanceToCameraSquared:f(i,t)};h.objects.set(t,l),a.parentNode!==d&&d.appendChild(a),t.onAfterRender(e,n,i)}for(let e=0,r=t.children.length;e<r;e++)p(t.children[e],n,i)}function f(t,e){return l.setFromMatrixPosition(t.matrixWorld),c.setFromMatrixPosition(e.matrixWorld),l.distanceToSquared(c)}function g(t){const e=[];return t.traverse((function(t){t.isCSS2DObject&&e.push(t)})),e}function m(t){const e=g(t).sort((function(t,e){const n=h.objects.get(t).distanceToCameraSquared,i=h.objects.get(e).distanceToCameraSquared;return n-i})),n=e.length;for(let i=0,r=e.length;i<r;i++)e[i].element.style.zIndex=n-i}d.style.overflow="hidden",this.domElement=d,this.getSize=function(){return{width:n,height:i}},this.render=function(t,e){!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),a.copy(e.matrixWorldInverse),s.multiplyMatrices(e.projectionMatrix,a),p(t,t,e),m(t)},this.setSize=function(t,e){n=t,i=e,r=n/2,u=i/2,d.style.width=t+"px",d.style.height=e+"px"}}}},9471:function(t,e,n){"use strict";n.r(e),n.d(e,{CSS3DObject:function(){return s},CSS3DRenderer:function(){return h},CSS3DSprite:function(){return l}});var i=n(5644);const r=new i.Vector3,o=new i.Quaternion,a=new i.Vector3;class s extends i.Object3D{constructor(t=document.createElement("div")){super(),this.element=t,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.addEventListener("removed",(function(){this.traverse((function(t){t.element instanceof Element&&null!==t.element.parentNode&&t.element.parentNode.removeChild(t.element)}))}))}copy(t,e){return super.copy(t,e),this.element=t.element.cloneNode(!0),this}}s.prototype.isCSS3DObject=!0;class l extends s{constructor(t){super(t),this.rotation2D=0}copy(t,e){return super.copy(t,e),this.rotation2D=t.rotation2D,this}}l.prototype.isCSS3DSprite=!0;const c=new i.Matrix4,u=new i.Matrix4;class h{constructor(t={}){const e=this;let n,i,s,l;const h={camera:{fov:0,style:""},objects:new WeakMap},d=void 0!==t.element?t.element:document.createElement("div");d.style.overflow="hidden",this.domElement=d;const p=document.createElement("div");function f(t){return Math.abs(t)<1e-10?0:t}function g(t){const e=t.elements;return"matrix3d("+f(e[0])+","+f(-e[1])+","+f(e[2])+","+f(e[3])+","+f(e[4])+","+f(-e[5])+","+f(e[6])+","+f(e[7])+","+f(e[8])+","+f(-e[9])+","+f(e[10])+","+f(e[11])+","+f(e[12])+","+f(-e[13])+","+f(e[14])+","+f(e[15])+")"}function m(t){const e=t.elements,n="matrix3d("+f(e[0])+","+f(e[1])+","+f(e[2])+","+f(e[3])+","+f(-e[4])+","+f(-e[5])+","+f(-e[6])+","+f(-e[7])+","+f(e[8])+","+f(e[9])+","+f(e[10])+","+f(e[11])+","+f(e[12])+","+f(e[13])+","+f(e[14])+","+f(e[15])+")";return"translate(-50%,-50%)"+n}function v(t,n,i,s){if(t.isCSS3DObject){let s;t.onBeforeRender(e,n,i),t.isCSS3DSprite?(c.copy(i.matrixWorldInverse),c.transpose(),0!==t.rotation2D&&c.multiply(u.makeRotationZ(t.rotation2D)),t.matrixWorld.decompose(r,o,a),c.setPosition(r),c.scale(a),c.elements[3]=0,c.elements[7]=0,c.elements[11]=0,c.elements[15]=1,s=m(c)):s=m(t.matrixWorld);const l=t.element,d=h.objects.get(t);if(void 0===d||d.style!==s){l.style.transform=s;const e={style:s};h.objects.set(t,e)}l.style.display=t.visible?"":"none",l.parentNode!==p&&p.appendChild(l),t.onAfterRender(e,n,i)}for(let e=0,r=t.children.length;e<r;e++)v(t.children[e],n,i,s)}p.style.transformStyle="preserve-3d",p.style.pointerEvents="none",d.appendChild(p),this.getSize=function(){return{width:n,height:i}},this.render=function(t,e){const n=e.projectionMatrix.elements[5]*l;let i,r;h.camera.fov!==n&&(d.style.perspective=e.isPerspectiveCamera?n+"px":"",h.camera.fov=n),!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),e.isOrthographicCamera&&(i=-(e.right+e.left)/2,r=(e.top+e.bottom)/2);const o=e.isOrthographicCamera?"scale("+n+")translate("+f(i)+"px,"+f(r)+"px)"+g(e.matrixWorldInverse):"translateZ("+n+"px)"+g(e.matrixWorldInverse),a=o+"translate("+s+"px,"+l+"px)";h.camera.style!==a&&(p.style.transform=a,h.camera.style=a),v(t,t,e,o)},this.setSize=function(t,e){n=t,i=e,s=n/2,l=i/2,d.style.width=t+"px",d.style.height=e+"px",p.style.width=t+"px",p.style.height=e+"px"}}}},1154:function(t,e,n){"use strict";n.r(e),n.d(e,{CopyShader:function(){return i}});var i={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\t\t}"}},185:function(t,e,n){"use strict";n.r(e),n.d(e,{FXAAShader:function(){return r}});var i=n(5644);const r={uniforms:{tDiffuse:{value:null},resolution:{value:new i.Vector2(1/1024,1/512)}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:'\n\n\t\tprecision highp float;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\n\t\t#define FXAA_PC 1\n\t\t#define FXAA_GLSL_100 1\n\t\t#define FXAA_QUALITY_PRESET 12\n\n\t\t#define FXAA_GREEN_AS_LUMA 1\n\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_PC_CONSOLE\n\t\t\t\t//\n\t\t\t\t// The console algorithm for PC is included\n\t\t\t\t// for developers targeting really low spec machines.\n\t\t\t\t// Likely better to just run FXAA_PC, and use a really low preset.\n\t\t\t\t//\n\t\t\t\t#define FXAA_PC_CONSOLE 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_GLSL_120\n\t\t\t\t#define FXAA_GLSL_120 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_GLSL_130\n\t\t\t\t#define FXAA_GLSL_130 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_HLSL_3\n\t\t\t\t#define FXAA_HLSL_3 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_HLSL_4\n\t\t\t\t#define FXAA_HLSL_4 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_HLSL_5\n\t\t\t\t#define FXAA_HLSL_5 0\n\t\t#endif\n\t\t/*==========================================================================*/\n\t\t#ifndef FXAA_GREEN_AS_LUMA\n\t\t\t\t//\n\t\t\t\t// For those using non-linear color,\n\t\t\t\t// and either not able to get luma in alpha, or not wanting to,\n\t\t\t\t// this enables FXAA to run using green as a proxy for luma.\n\t\t\t\t// So with this enabled, no need to pack luma in alpha.\n\t\t\t\t//\n\t\t\t\t// This will turn off AA on anything which lacks some amount of green.\n\t\t\t\t// Pure red and blue or combination of only R and B, will get no AA.\n\t\t\t\t//\n\t\t\t\t// Might want to lower the settings for both,\n\t\t\t\t//\t\tfxaaConsoleEdgeThresholdMin\n\t\t\t\t//\t\tfxaaQualityEdgeThresholdMin\n\t\t\t\t// In order to insure AA does not get turned off on colors\n\t\t\t\t// which contain a minor amount of green.\n\t\t\t\t//\n\t\t\t\t// 1 = On.\n\t\t\t\t// 0 = Off.\n\t\t\t\t//\n\t\t\t\t#define FXAA_GREEN_AS_LUMA 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_EARLY_EXIT\n\t\t\t\t//\n\t\t\t\t// Controls algorithm\'s early exit path.\n\t\t\t\t// On PS3 turning this ON adds 2 cycles to the shader.\n\t\t\t\t// On 360 turning this OFF adds 10ths of a millisecond to the shader.\n\t\t\t\t// Turning this off on console will result in a more blurry image.\n\t\t\t\t// So this defaults to on.\n\t\t\t\t//\n\t\t\t\t// 1 = On.\n\t\t\t\t// 0 = Off.\n\t\t\t\t//\n\t\t\t\t#define FXAA_EARLY_EXIT 1\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_DISCARD\n\t\t\t\t//\n\t\t\t\t// Only valid for PC OpenGL currently.\n\t\t\t\t// Probably will not work when FXAA_GREEN_AS_LUMA = 1.\n\t\t\t\t//\n\t\t\t\t// 1 = Use discard on pixels which don\'t need AA.\n\t\t\t\t//\t\t For APIs which enable concurrent TEX+ROP from same surface.\n\t\t\t\t// 0 = Return unchanged color on pixels which don\'t need AA.\n\t\t\t\t//\n\t\t\t\t#define FXAA_DISCARD 0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_FAST_PIXEL_OFFSET\n\t\t\t\t//\n\t\t\t\t// Used for GLSL 120 only.\n\t\t\t\t//\n\t\t\t\t// 1 = GL API supports fast pixel offsets\n\t\t\t\t// 0 = do not use fast pixel offsets\n\t\t\t\t//\n\t\t\t\t#ifdef GL_EXT_gpu_shader4\n\t\t\t\t\t\t#define FXAA_FAST_PIXEL_OFFSET 1\n\t\t\t\t#endif\n\t\t\t\t#ifdef GL_NV_gpu_shader5\n\t\t\t\t\t\t#define FXAA_FAST_PIXEL_OFFSET 1\n\t\t\t\t#endif\n\t\t\t\t#ifdef GL_ARB_gpu_shader5\n\t\t\t\t\t\t#define FXAA_FAST_PIXEL_OFFSET 1\n\t\t\t\t#endif\n\t\t\t\t#ifndef FXAA_FAST_PIXEL_OFFSET\n\t\t\t\t\t\t#define FXAA_FAST_PIXEL_OFFSET 0\n\t\t\t\t#endif\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#ifndef FXAA_GATHER4_ALPHA\n\t\t\t\t//\n\t\t\t\t// 1 = API supports gather4 on alpha channel.\n\t\t\t\t// 0 = API does not support gather4 on alpha channel.\n\t\t\t\t//\n\t\t\t\t#if (FXAA_HLSL_5 == 1)\n\t\t\t\t\t\t#define FXAA_GATHER4_ALPHA 1\n\t\t\t\t#endif\n\t\t\t\t#ifdef GL_ARB_gpu_shader5\n\t\t\t\t\t\t#define FXAA_GATHER4_ALPHA 1\n\t\t\t\t#endif\n\t\t\t\t#ifdef GL_NV_gpu_shader5\n\t\t\t\t\t\t#define FXAA_GATHER4_ALPHA 1\n\t\t\t\t#endif\n\t\t\t\t#ifndef FXAA_GATHER4_ALPHA\n\t\t\t\t\t\t#define FXAA_GATHER4_ALPHA 0\n\t\t\t\t#endif\n\t\t#endif\n\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tFXAA QUALITY - TUNING KNOBS\n\t\t------------------------------------------------------------------------------\n\t\tNOTE the other tuning knobs are now in the shader function inputs!\n\t\t============================================================================*/\n\t\t#ifndef FXAA_QUALITY_PRESET\n\t\t\t\t//\n\t\t\t\t// Choose the quality preset.\n\t\t\t\t// This needs to be compiled into the shader as it effects code.\n\t\t\t\t// Best option to include multiple presets is to\n\t\t\t\t// in each shader define the preset, then include this file.\n\t\t\t\t//\n\t\t\t\t// OPTIONS\n\t\t\t\t// -----------------------------------------------------------------------\n\t\t\t\t// 10 to 15 - default medium dither (10=fastest, 15=highest quality)\n\t\t\t\t// 20 to 29 - less dither, more expensive (20=fastest, 29=highest quality)\n\t\t\t\t// 39\t\t\t - no dither, very expensive\n\t\t\t\t//\n\t\t\t\t// NOTES\n\t\t\t\t// -----------------------------------------------------------------------\n\t\t\t\t// 12 = slightly faster then FXAA 3.9 and higher edge quality (default)\n\t\t\t\t// 13 = about same speed as FXAA 3.9 and better than 12\n\t\t\t\t// 23 = closest to FXAA 3.9 visually and performance wise\n\t\t\t\t//\t_ = the lowest digit is directly related to performance\n\t\t\t\t// _\t= the highest digit is directly related to style\n\t\t\t\t//\n\t\t\t\t#define FXAA_QUALITY_PRESET 12\n\t\t#endif\n\n\n\t\t/*============================================================================\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t FXAA QUALITY - PRESETS\n\n\t\t============================================================================*/\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t\t FXAA QUALITY - MEDIUM DITHER PRESETS\n\t\t============================================================================*/\n\t\t#if (FXAA_QUALITY_PRESET == 10)\n\t\t\t\t#define FXAA_QUALITY_PS 3\n\t\t\t\t#define FXAA_QUALITY_P0 1.5\n\t\t\t\t#define FXAA_QUALITY_P1 3.0\n\t\t\t\t#define FXAA_QUALITY_P2 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 11)\n\t\t\t\t#define FXAA_QUALITY_PS 4\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 3.0\n\t\t\t\t#define FXAA_QUALITY_P3 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 12)\n\t\t\t\t#define FXAA_QUALITY_PS 5\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 4.0\n\t\t\t\t#define FXAA_QUALITY_P4 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 13)\n\t\t\t\t#define FXAA_QUALITY_PS 6\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 4.0\n\t\t\t\t#define FXAA_QUALITY_P5 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 14)\n\t\t\t\t#define FXAA_QUALITY_PS 7\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 4.0\n\t\t\t\t#define FXAA_QUALITY_P6 12.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 15)\n\t\t\t\t#define FXAA_QUALITY_PS 8\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 4.0\n\t\t\t\t#define FXAA_QUALITY_P7 12.0\n\t\t#endif\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t\t FXAA QUALITY - LOW DITHER PRESETS\n\t\t============================================================================*/\n\t\t#if (FXAA_QUALITY_PRESET == 20)\n\t\t\t\t#define FXAA_QUALITY_PS 3\n\t\t\t\t#define FXAA_QUALITY_P0 1.5\n\t\t\t\t#define FXAA_QUALITY_P1 2.0\n\t\t\t\t#define FXAA_QUALITY_P2 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 21)\n\t\t\t\t#define FXAA_QUALITY_PS 4\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 22)\n\t\t\t\t#define FXAA_QUALITY_PS 5\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 23)\n\t\t\t\t#define FXAA_QUALITY_PS 6\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 24)\n\t\t\t\t#define FXAA_QUALITY_PS 7\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 3.0\n\t\t\t\t#define FXAA_QUALITY_P6 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 25)\n\t\t\t\t#define FXAA_QUALITY_PS 8\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 4.0\n\t\t\t\t#define FXAA_QUALITY_P7 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 26)\n\t\t\t\t#define FXAA_QUALITY_PS 9\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 4.0\n\t\t\t\t#define FXAA_QUALITY_P8 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 27)\n\t\t\t\t#define FXAA_QUALITY_PS 10\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 2.0\n\t\t\t\t#define FXAA_QUALITY_P8 4.0\n\t\t\t\t#define FXAA_QUALITY_P9 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 28)\n\t\t\t\t#define FXAA_QUALITY_PS 11\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 2.0\n\t\t\t\t#define FXAA_QUALITY_P8 2.0\n\t\t\t\t#define FXAA_QUALITY_P9 4.0\n\t\t\t\t#define FXAA_QUALITY_P10 8.0\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_QUALITY_PRESET == 29)\n\t\t\t\t#define FXAA_QUALITY_PS 12\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.5\n\t\t\t\t#define FXAA_QUALITY_P2 2.0\n\t\t\t\t#define FXAA_QUALITY_P3 2.0\n\t\t\t\t#define FXAA_QUALITY_P4 2.0\n\t\t\t\t#define FXAA_QUALITY_P5 2.0\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 2.0\n\t\t\t\t#define FXAA_QUALITY_P8 2.0\n\t\t\t\t#define FXAA_QUALITY_P9 2.0\n\t\t\t\t#define FXAA_QUALITY_P10 4.0\n\t\t\t\t#define FXAA_QUALITY_P11 8.0\n\t\t#endif\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t\t FXAA QUALITY - EXTREME QUALITY\n\t\t============================================================================*/\n\t\t#if (FXAA_QUALITY_PRESET == 39)\n\t\t\t\t#define FXAA_QUALITY_PS 12\n\t\t\t\t#define FXAA_QUALITY_P0 1.0\n\t\t\t\t#define FXAA_QUALITY_P1 1.0\n\t\t\t\t#define FXAA_QUALITY_P2 1.0\n\t\t\t\t#define FXAA_QUALITY_P3 1.0\n\t\t\t\t#define FXAA_QUALITY_P4 1.0\n\t\t\t\t#define FXAA_QUALITY_P5 1.5\n\t\t\t\t#define FXAA_QUALITY_P6 2.0\n\t\t\t\t#define FXAA_QUALITY_P7 2.0\n\t\t\t\t#define FXAA_QUALITY_P8 2.0\n\t\t\t\t#define FXAA_QUALITY_P9 2.0\n\t\t\t\t#define FXAA_QUALITY_P10 4.0\n\t\t\t\t#define FXAA_QUALITY_P11 8.0\n\t\t#endif\n\n\n\n\t\t/*============================================================================\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAPI PORTING\n\n\t\t============================================================================*/\n\t\t#if (FXAA_GLSL_100 == 1) || (FXAA_GLSL_120 == 1) || (FXAA_GLSL_130 == 1)\n\t\t\t\t#define FxaaBool bool\n\t\t\t\t#define FxaaDiscard discard\n\t\t\t\t#define FxaaFloat float\n\t\t\t\t#define FxaaFloat2 vec2\n\t\t\t\t#define FxaaFloat3 vec3\n\t\t\t\t#define FxaaFloat4 vec4\n\t\t\t\t#define FxaaHalf float\n\t\t\t\t#define FxaaHalf2 vec2\n\t\t\t\t#define FxaaHalf3 vec3\n\t\t\t\t#define FxaaHalf4 vec4\n\t\t\t\t#define FxaaInt2 ivec2\n\t\t\t\t#define FxaaSat(x) clamp(x, 0.0, 1.0)\n\t\t\t\t#define FxaaTex sampler2D\n\t\t#else\n\t\t\t\t#define FxaaBool bool\n\t\t\t\t#define FxaaDiscard clip(-1)\n\t\t\t\t#define FxaaFloat float\n\t\t\t\t#define FxaaFloat2 float2\n\t\t\t\t#define FxaaFloat3 float3\n\t\t\t\t#define FxaaFloat4 float4\n\t\t\t\t#define FxaaHalf half\n\t\t\t\t#define FxaaHalf2 half2\n\t\t\t\t#define FxaaHalf3 half3\n\t\t\t\t#define FxaaHalf4 half4\n\t\t\t\t#define FxaaSat(x) saturate(x)\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_GLSL_100 == 1)\n\t\t\t#define FxaaTexTop(t, p) texture2D(t, p, 0.0)\n\t\t\t#define FxaaTexOff(t, p, o, r) texture2D(t, p + (o * r), 0.0)\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_GLSL_120 == 1)\n\t\t\t\t// Requires,\n\t\t\t\t//\t#version 120\n\t\t\t\t// And at least,\n\t\t\t\t//\t#extension GL_EXT_gpu_shader4 : enable\n\t\t\t\t//\t(or set FXAA_FAST_PIXEL_OFFSET 1 to work like DX9)\n\t\t\t\t#define FxaaTexTop(t, p) texture2DLod(t, p, 0.0)\n\t\t\t\t#if (FXAA_FAST_PIXEL_OFFSET == 1)\n\t\t\t\t\t\t#define FxaaTexOff(t, p, o, r) texture2DLodOffset(t, p, 0.0, o)\n\t\t\t\t#else\n\t\t\t\t\t\t#define FxaaTexOff(t, p, o, r) texture2DLod(t, p + (o * r), 0.0)\n\t\t\t\t#endif\n\t\t\t\t#if (FXAA_GATHER4_ALPHA == 1)\n\t\t\t\t\t\t// use #extension GL_ARB_gpu_shader5 : enable\n\t\t\t\t\t\t#define FxaaTexAlpha4(t, p) textureGather(t, p, 3)\n\t\t\t\t\t\t#define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)\n\t\t\t\t\t\t#define FxaaTexGreen4(t, p) textureGather(t, p, 1)\n\t\t\t\t\t\t#define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)\n\t\t\t\t#endif\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_GLSL_130 == 1)\n\t\t\t\t// Requires "#version 130" or better\n\t\t\t\t#define FxaaTexTop(t, p) textureLod(t, p, 0.0)\n\t\t\t\t#define FxaaTexOff(t, p, o, r) textureLodOffset(t, p, 0.0, o)\n\t\t\t\t#if (FXAA_GATHER4_ALPHA == 1)\n\t\t\t\t\t\t// use #extension GL_ARB_gpu_shader5 : enable\n\t\t\t\t\t\t#define FxaaTexAlpha4(t, p) textureGather(t, p, 3)\n\t\t\t\t\t\t#define FxaaTexOffAlpha4(t, p, o) textureGatherOffset(t, p, o, 3)\n\t\t\t\t\t\t#define FxaaTexGreen4(t, p) textureGather(t, p, 1)\n\t\t\t\t\t\t#define FxaaTexOffGreen4(t, p, o) textureGatherOffset(t, p, o, 1)\n\t\t\t\t#endif\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_HLSL_3 == 1)\n\t\t\t\t#define FxaaInt2 float2\n\t\t\t\t#define FxaaTex sampler2D\n\t\t\t\t#define FxaaTexTop(t, p) tex2Dlod(t, float4(p, 0.0, 0.0))\n\t\t\t\t#define FxaaTexOff(t, p, o, r) tex2Dlod(t, float4(p + (o * r), 0, 0))\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_HLSL_4 == 1)\n\t\t\t\t#define FxaaInt2 int2\n\t\t\t\tstruct FxaaTex { SamplerState smpl; Texture2D tex; };\n\t\t\t\t#define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)\n\t\t\t\t#define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)\n\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t#if (FXAA_HLSL_5 == 1)\n\t\t\t\t#define FxaaInt2 int2\n\t\t\t\tstruct FxaaTex { SamplerState smpl; Texture2D tex; };\n\t\t\t\t#define FxaaTexTop(t, p) t.tex.SampleLevel(t.smpl, p, 0.0)\n\t\t\t\t#define FxaaTexOff(t, p, o, r) t.tex.SampleLevel(t.smpl, p, 0.0, o)\n\t\t\t\t#define FxaaTexAlpha4(t, p) t.tex.GatherAlpha(t.smpl, p)\n\t\t\t\t#define FxaaTexOffAlpha4(t, p, o) t.tex.GatherAlpha(t.smpl, p, o)\n\t\t\t\t#define FxaaTexGreen4(t, p) t.tex.GatherGreen(t.smpl, p)\n\t\t\t\t#define FxaaTexOffGreen4(t, p, o) t.tex.GatherGreen(t.smpl, p, o)\n\t\t#endif\n\n\n\t\t/*============================================================================\n\t\t\t\t\t\t\t\t\t\t\t GREEN AS LUMA OPTION SUPPORT FUNCTION\n\t\t============================================================================*/\n\t\t#if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\tFxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.w; }\n\t\t#else\n\t\t\t\tFxaaFloat FxaaLuma(FxaaFloat4 rgba) { return rgba.y; }\n\t\t#endif\n\n\n\n\n\t\t/*============================================================================\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t FXAA3 QUALITY - PC\n\n\t\t============================================================================*/\n\t\t#if (FXAA_PC == 1)\n\t\t/*--------------------------------------------------------------------------*/\n\t\tFxaaFloat4 FxaaPixelShader(\n\t\t\t\t//\n\t\t\t\t// Use noperspective interpolation here (turn off perspective interpolation).\n\t\t\t\t// {xy} = center of pixel\n\t\t\t\tFxaaFloat2 pos,\n\t\t\t\t//\n\t\t\t\t// Used only for FXAA Console, and not used on the 360 version.\n\t\t\t\t// Use noperspective interpolation here (turn off perspective interpolation).\n\t\t\t\t// {xy_} = upper left of pixel\n\t\t\t\t// {_zw} = lower right of pixel\n\t\t\t\tFxaaFloat4 fxaaConsolePosPos,\n\t\t\t\t//\n\t\t\t\t// Input color texture.\n\t\t\t\t// {rgb_} = color in linear or perceptual color space\n\t\t\t\t// if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\t//\t\t {__a} = luma in perceptual color space (not linear)\n\t\t\t\tFxaaTex tex,\n\t\t\t\t//\n\t\t\t\t// Only used on the optimized 360 version of FXAA Console.\n\t\t\t\t// For everything but 360, just use the same input here as for "tex".\n\t\t\t\t// For 360, same texture, just alias with a 2nd sampler.\n\t\t\t\t// This sampler needs to have an exponent bias of -1.\n\t\t\t\tFxaaTex fxaaConsole360TexExpBiasNegOne,\n\t\t\t\t//\n\t\t\t\t// Only used on the optimized 360 version of FXAA Console.\n\t\t\t\t// For everything but 360, just use the same input here as for "tex".\n\t\t\t\t// For 360, same texture, just alias with a 3nd sampler.\n\t\t\t\t// This sampler needs to have an exponent bias of -2.\n\t\t\t\tFxaaTex fxaaConsole360TexExpBiasNegTwo,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Quality.\n\t\t\t\t// This must be from a constant/uniform.\n\t\t\t\t// {x_} = 1.0/screenWidthInPixels\n\t\t\t\t// {_y} = 1.0/screenHeightInPixels\n\t\t\t\tFxaaFloat2 fxaaQualityRcpFrame,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// This must be from a constant/uniform.\n\t\t\t\t// This effects sub-pixel AA quality and inversely sharpness.\n\t\t\t\t//\t Where N ranges between,\n\t\t\t\t//\t\t N = 0.50 (default)\n\t\t\t\t//\t\t N = 0.33 (sharper)\n\t\t\t\t// {x__} = -N/screenWidthInPixels\n\t\t\t\t// {_y_} = -N/screenHeightInPixels\n\t\t\t\t// {_z_} =\tN/screenWidthInPixels\n\t\t\t\t// {__w} =\tN/screenHeightInPixels\n\t\t\t\tFxaaFloat4 fxaaConsoleRcpFrameOpt,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// Not used on 360, but used on PS3 and PC.\n\t\t\t\t// This must be from a constant/uniform.\n\t\t\t\t// {x__} = -2.0/screenWidthInPixels\n\t\t\t\t// {_y_} = -2.0/screenHeightInPixels\n\t\t\t\t// {_z_} =\t2.0/screenWidthInPixels\n\t\t\t\t// {__w} =\t2.0/screenHeightInPixels\n\t\t\t\tFxaaFloat4 fxaaConsoleRcpFrameOpt2,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// Only used on 360 in place of fxaaConsoleRcpFrameOpt2.\n\t\t\t\t// This must be from a constant/uniform.\n\t\t\t\t// {x__} =\t8.0/screenWidthInPixels\n\t\t\t\t// {_y_} =\t8.0/screenHeightInPixels\n\t\t\t\t// {_z_} = -4.0/screenWidthInPixels\n\t\t\t\t// {__w} = -4.0/screenHeightInPixels\n\t\t\t\tFxaaFloat4 fxaaConsole360RcpFrameOpt2,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Quality.\n\t\t\t\t// This used to be the FXAA_QUALITY_SUBPIX define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// Choose the amount of sub-pixel aliasing removal.\n\t\t\t\t// This can effect sharpness.\n\t\t\t\t//\t 1.00 - upper limit (softer)\n\t\t\t\t//\t 0.75 - default amount of filtering\n\t\t\t\t//\t 0.50 - lower limit (sharper, less sub-pixel aliasing removal)\n\t\t\t\t//\t 0.25 - almost off\n\t\t\t\t//\t 0.00 - completely off\n\t\t\t\tFxaaFloat fxaaQualitySubpix,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Quality.\n\t\t\t\t// This used to be the FXAA_QUALITY_EDGE_THRESHOLD define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// The minimum amount of local contrast required to apply algorithm.\n\t\t\t\t//\t 0.333 - too little (faster)\n\t\t\t\t//\t 0.250 - low quality\n\t\t\t\t//\t 0.166 - default\n\t\t\t\t//\t 0.125 - high quality\n\t\t\t\t//\t 0.063 - overkill (slower)\n\t\t\t\tFxaaFloat fxaaQualityEdgeThreshold,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Quality.\n\t\t\t\t// This used to be the FXAA_QUALITY_EDGE_THRESHOLD_MIN define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// Trims the algorithm from processing darks.\n\t\t\t\t//\t 0.0833 - upper limit (default, the start of visible unfiltered edges)\n\t\t\t\t//\t 0.0625 - high quality (faster)\n\t\t\t\t//\t 0.0312 - visible limit (slower)\n\t\t\t\t// Special notes when using FXAA_GREEN_AS_LUMA,\n\t\t\t\t//\t Likely want to set this to zero.\n\t\t\t\t//\t As colors that are mostly not-green\n\t\t\t\t//\t will appear very dark in the green channel!\n\t\t\t\t//\t Tune by looking at mostly non-green content,\n\t\t\t\t//\t then start at zero and increase until aliasing is a problem.\n\t\t\t\tFxaaFloat fxaaQualityEdgeThresholdMin,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// This used to be the FXAA_CONSOLE_EDGE_SHARPNESS define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// This does not effect PS3, as this needs to be compiled in.\n\t\t\t\t//\t Use FXAA_CONSOLE_PS3_EDGE_SHARPNESS for PS3.\n\t\t\t\t//\t Due to the PS3 being ALU bound,\n\t\t\t\t//\t there are only three safe values here: 2 and 4 and 8.\n\t\t\t\t//\t These options use the shaders ability to a free *|/ by 2|4|8.\n\t\t\t\t// For all other platforms can be a non-power of two.\n\t\t\t\t//\t 8.0 is sharper (default!!!)\n\t\t\t\t//\t 4.0 is softer\n\t\t\t\t//\t 2.0 is really soft (good only for vector graphics inputs)\n\t\t\t\tFxaaFloat fxaaConsoleEdgeSharpness,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// This used to be the FXAA_CONSOLE_EDGE_THRESHOLD define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// This does not effect PS3, as this needs to be compiled in.\n\t\t\t\t//\t Use FXAA_CONSOLE_PS3_EDGE_THRESHOLD for PS3.\n\t\t\t\t//\t Due to the PS3 being ALU bound,\n\t\t\t\t//\t there are only two safe values here: 1/4 and 1/8.\n\t\t\t\t//\t These options use the shaders ability to a free *|/ by 2|4|8.\n\t\t\t\t// The console setting has a different mapping than the quality setting.\n\t\t\t\t// Other platforms can use other values.\n\t\t\t\t//\t 0.125 leaves less aliasing, but is softer (default!!!)\n\t\t\t\t//\t 0.25 leaves more aliasing, and is sharper\n\t\t\t\tFxaaFloat fxaaConsoleEdgeThreshold,\n\t\t\t\t//\n\t\t\t\t// Only used on FXAA Console.\n\t\t\t\t// This used to be the FXAA_CONSOLE_EDGE_THRESHOLD_MIN define.\n\t\t\t\t// It is here now to allow easier tuning.\n\t\t\t\t// Trims the algorithm from processing darks.\n\t\t\t\t// The console setting has a different mapping than the quality setting.\n\t\t\t\t// This only applies when FXAA_EARLY_EXIT is 1.\n\t\t\t\t// This does not apply to PS3,\n\t\t\t\t// PS3 was simplified to avoid more shader instructions.\n\t\t\t\t//\t 0.06 - faster but more aliasing in darks\n\t\t\t\t//\t 0.05 - default\n\t\t\t\t//\t 0.04 - slower and less aliasing in darks\n\t\t\t\t// Special notes when using FXAA_GREEN_AS_LUMA,\n\t\t\t\t//\t Likely want to set this to zero.\n\t\t\t\t//\t As colors that are mostly not-green\n\t\t\t\t//\t will appear very dark in the green channel!\n\t\t\t\t//\t Tune by looking at mostly non-green content,\n\t\t\t\t//\t then start at zero and increase until aliasing is a problem.\n\t\t\t\tFxaaFloat fxaaConsoleEdgeThresholdMin,\n\t\t\t\t//\n\t\t\t\t// Extra constants for 360 FXAA Console only.\n\t\t\t\t// Use zeros or anything else for other platforms.\n\t\t\t\t// These must be in physical constant registers and NOT immediates.\n\t\t\t\t// Immediates will result in compiler un-optimizing.\n\t\t\t\t// {xyzw} = float4(1.0, -1.0, 0.25, -0.25)\n\t\t\t\tFxaaFloat4 fxaaConsole360ConstDir\n\t\t) {\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat2 posM;\n\t\t\t\tposM.x = pos.x;\n\t\t\t\tposM.y = pos.y;\n\t\t\t\t#if (FXAA_GATHER4_ALPHA == 1)\n\t\t\t\t\t\t#if (FXAA_DISCARD == 0)\n\t\t\t\t\t\t\t\tFxaaFloat4 rgbyM = FxaaTexTop(tex, posM);\n\t\t\t\t\t\t\t\t#if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\t\t\t\t\t\t\t#define lumaM rgbyM.w\n\t\t\t\t\t\t\t\t#else\n\t\t\t\t\t\t\t\t\t\t#define lumaM rgbyM.y\n\t\t\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\t\t\t\t\tFxaaFloat4 luma4A = FxaaTexAlpha4(tex, posM);\n\t\t\t\t\t\t\t\tFxaaFloat4 luma4B = FxaaTexOffAlpha4(tex, posM, FxaaInt2(-1, -1));\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\t\tFxaaFloat4 luma4A = FxaaTexGreen4(tex, posM);\n\t\t\t\t\t\t\t\tFxaaFloat4 luma4B = FxaaTexOffGreen4(tex, posM, FxaaInt2(-1, -1));\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#if (FXAA_DISCARD == 1)\n\t\t\t\t\t\t\t\t#define lumaM luma4A.w\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#define lumaE luma4A.z\n\t\t\t\t\t\t#define lumaS luma4A.x\n\t\t\t\t\t\t#define lumaSE luma4A.y\n\t\t\t\t\t\t#define lumaNW luma4B.w\n\t\t\t\t\t\t#define lumaN luma4B.z\n\t\t\t\t\t\t#define lumaW luma4B.x\n\t\t\t\t#else\n\t\t\t\t\t\tFxaaFloat4 rgbyM = FxaaTexTop(tex, posM);\n\t\t\t\t\t\t#if (FXAA_GREEN_AS_LUMA == 0)\n\t\t\t\t\t\t\t\t#define lumaM rgbyM.w\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\t\t#define lumaM rgbyM.y\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#if (FXAA_GLSL_100 == 1)\n\t\t\t\t\t\t\tFxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0, 1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 0.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 0.0,-1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 0.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\tFxaaFloat lumaS = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0, 1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaN = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 0,-1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t#endif\n\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat maxSM = max(lumaS, lumaM);\n\t\t\t\tFxaaFloat minSM = min(lumaS, lumaM);\n\t\t\t\tFxaaFloat maxESM = max(lumaE, maxSM);\n\t\t\t\tFxaaFloat minESM = min(lumaE, minSM);\n\t\t\t\tFxaaFloat maxWN = max(lumaN, lumaW);\n\t\t\t\tFxaaFloat minWN = min(lumaN, lumaW);\n\t\t\t\tFxaaFloat rangeMax = max(maxWN, maxESM);\n\t\t\t\tFxaaFloat rangeMin = min(minWN, minESM);\n\t\t\t\tFxaaFloat rangeMaxScaled = rangeMax * fxaaQualityEdgeThreshold;\n\t\t\t\tFxaaFloat range = rangeMax - rangeMin;\n\t\t\t\tFxaaFloat rangeMaxClamped = max(fxaaQualityEdgeThresholdMin, rangeMaxScaled);\n\t\t\t\tFxaaBool earlyExit = range < rangeMaxClamped;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tif(earlyExit)\n\t\t\t\t\t\t#if (FXAA_DISCARD == 1)\n\t\t\t\t\t\t\t\tFxaaDiscard;\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\t\treturn rgbyM;\n\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t#if (FXAA_GATHER4_ALPHA == 0)\n\t\t\t\t\t\t#if (FXAA_GLSL_100 == 1)\n\t\t\t\t\t\t\tFxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0,-1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0, 1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2( 1.0,-1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaFloat2(-1.0, 1.0), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t#else\n\t\t\t\t\t\t\tFxaaFloat lumaNW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1,-1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaSE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1, 1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2( 1,-1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t\tFxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\t#endif\n\t\t\t\t#else\n\t\t\t\t\t\tFxaaFloat lumaNE = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(1, -1), fxaaQualityRcpFrame.xy));\n\t\t\t\t\t\tFxaaFloat lumaSW = FxaaLuma(FxaaTexOff(tex, posM, FxaaInt2(-1, 1), fxaaQualityRcpFrame.xy));\n\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat lumaNS = lumaN + lumaS;\n\t\t\t\tFxaaFloat lumaWE = lumaW + lumaE;\n\t\t\t\tFxaaFloat subpixRcpRange = 1.0/range;\n\t\t\t\tFxaaFloat subpixNSWE = lumaNS + lumaWE;\n\t\t\t\tFxaaFloat edgeHorz1 = (-2.0 * lumaM) + lumaNS;\n\t\t\t\tFxaaFloat edgeVert1 = (-2.0 * lumaM) + lumaWE;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat lumaNESE = lumaNE + lumaSE;\n\t\t\t\tFxaaFloat lumaNWNE = lumaNW + lumaNE;\n\t\t\t\tFxaaFloat edgeHorz2 = (-2.0 * lumaE) + lumaNESE;\n\t\t\t\tFxaaFloat edgeVert2 = (-2.0 * lumaN) + lumaNWNE;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat lumaNWSW = lumaNW + lumaSW;\n\t\t\t\tFxaaFloat lumaSWSE = lumaSW + lumaSE;\n\t\t\t\tFxaaFloat edgeHorz4 = (abs(edgeHorz1) * 2.0) + abs(edgeHorz2);\n\t\t\t\tFxaaFloat edgeVert4 = (abs(edgeVert1) * 2.0) + abs(edgeVert2);\n\t\t\t\tFxaaFloat edgeHorz3 = (-2.0 * lumaW) + lumaNWSW;\n\t\t\t\tFxaaFloat edgeVert3 = (-2.0 * lumaS) + lumaSWSE;\n\t\t\t\tFxaaFloat edgeHorz = abs(edgeHorz3) + edgeHorz4;\n\t\t\t\tFxaaFloat edgeVert = abs(edgeVert3) + edgeVert4;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat subpixNWSWNESE = lumaNWSW + lumaNESE;\n\t\t\t\tFxaaFloat lengthSign = fxaaQualityRcpFrame.x;\n\t\t\t\tFxaaBool horzSpan = edgeHorz >= edgeVert;\n\t\t\t\tFxaaFloat subpixA = subpixNSWE * 2.0 + subpixNWSWNESE;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tif(!horzSpan) lumaN = lumaW;\n\t\t\t\tif(!horzSpan) lumaS = lumaE;\n\t\t\t\tif(horzSpan) lengthSign = fxaaQualityRcpFrame.y;\n\t\t\t\tFxaaFloat subpixB = (subpixA * (1.0/12.0)) - lumaM;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat gradientN = lumaN - lumaM;\n\t\t\t\tFxaaFloat gradientS = lumaS - lumaM;\n\t\t\t\tFxaaFloat lumaNN = lumaN + lumaM;\n\t\t\t\tFxaaFloat lumaSS = lumaS + lumaM;\n\t\t\t\tFxaaBool pairN = abs(gradientN) >= abs(gradientS);\n\t\t\t\tFxaaFloat gradient = max(abs(gradientN), abs(gradientS));\n\t\t\t\tif(pairN) lengthSign = -lengthSign;\n\t\t\t\tFxaaFloat subpixC = FxaaSat(abs(subpixB) * subpixRcpRange);\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat2 posB;\n\t\t\t\tposB.x = posM.x;\n\t\t\t\tposB.y = posM.y;\n\t\t\t\tFxaaFloat2 offNP;\n\t\t\t\toffNP.x = (!horzSpan) ? 0.0 : fxaaQualityRcpFrame.x;\n\t\t\t\toffNP.y = ( horzSpan) ? 0.0 : fxaaQualityRcpFrame.y;\n\t\t\t\tif(!horzSpan) posB.x += lengthSign * 0.5;\n\t\t\t\tif( horzSpan) posB.y += lengthSign * 0.5;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat2 posN;\n\t\t\t\tposN.x = posB.x - offNP.x * FXAA_QUALITY_P0;\n\t\t\t\tposN.y = posB.y - offNP.y * FXAA_QUALITY_P0;\n\t\t\t\tFxaaFloat2 posP;\n\t\t\t\tposP.x = posB.x + offNP.x * FXAA_QUALITY_P0;\n\t\t\t\tposP.y = posB.y + offNP.y * FXAA_QUALITY_P0;\n\t\t\t\tFxaaFloat subpixD = ((-2.0)*subpixC) + 3.0;\n\t\t\t\tFxaaFloat lumaEndN = FxaaLuma(FxaaTexTop(tex, posN));\n\t\t\t\tFxaaFloat subpixE = subpixC * subpixC;\n\t\t\t\tFxaaFloat lumaEndP = FxaaLuma(FxaaTexTop(tex, posP));\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tif(!pairN) lumaNN = lumaSS;\n\t\t\t\tFxaaFloat gradientScaled = gradient * 1.0/4.0;\n\t\t\t\tFxaaFloat lumaMM = lumaM - lumaNN * 0.5;\n\t\t\t\tFxaaFloat subpixF = subpixD * subpixE;\n\t\t\t\tFxaaBool lumaMLTZero = lumaMM < 0.0;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tlumaEndN -= lumaNN * 0.5;\n\t\t\t\tlumaEndP -= lumaNN * 0.5;\n\t\t\t\tFxaaBool doneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\tFxaaBool doneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P1;\n\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P1;\n\t\t\t\tFxaaBool doneNP = (!doneN) || (!doneP);\n\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P1;\n\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P1;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tif(doneNP) {\n\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P2;\n\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P2;\n\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P2;\n\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P2;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 3)\n\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P3;\n\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P3;\n\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P3;\n\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P3;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 4)\n\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P4;\n\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P4;\n\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P4;\n\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P4;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 5)\n\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P5;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P5;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P5;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P5;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 6)\n\t\t\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P6;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P6;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P6;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P6;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 7)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P7;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P7;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P7;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P7;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t#if (FXAA_QUALITY_PS > 8)\n\t\t\t\tif(doneNP) {\n\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P8;\n\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P8;\n\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P8;\n\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P8;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 9)\n\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P9;\n\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P9;\n\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P9;\n\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P9;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 10)\n\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P10;\n\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P10;\n\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P10;\n\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P10;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 11)\n\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P11;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P11;\n\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P11;\n\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P11;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t#if (FXAA_QUALITY_PS > 12)\n\t\t\t\t\t\t\t\t\t\t\t\tif(doneNP) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = FxaaLuma(FxaaTexTop(tex, posN.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = FxaaLuma(FxaaTexTop(tex, posP.xy));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) lumaEndN = lumaEndN - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) lumaEndP = lumaEndP - lumaNN * 0.5;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneN = abs(lumaEndN) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneP = abs(lumaEndP) >= gradientScaled;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.x -= offNP.x * FXAA_QUALITY_P12;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneN) posN.y -= offNP.y * FXAA_QUALITY_P12;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdoneNP = (!doneN) || (!doneP);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.x += offNP.x * FXAA_QUALITY_P12;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(!doneP) posP.y += offNP.y * FXAA_QUALITY_P12;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t}\n\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t\t\t}\n\t\t\t\t\t\t#endif\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\t}\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat dstN = posM.x - posN.x;\n\t\t\t\tFxaaFloat dstP = posP.x - posM.x;\n\t\t\t\tif(!horzSpan) dstN = posM.y - posN.y;\n\t\t\t\tif(!horzSpan) dstP = posP.y - posM.y;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaBool goodSpanN = (lumaEndN < 0.0) != lumaMLTZero;\n\t\t\t\tFxaaFloat spanLength = (dstP + dstN);\n\t\t\t\tFxaaBool goodSpanP = (lumaEndP < 0.0) != lumaMLTZero;\n\t\t\t\tFxaaFloat spanLengthRcp = 1.0/spanLength;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaBool directionN = dstN < dstP;\n\t\t\t\tFxaaFloat dst = min(dstN, dstP);\n\t\t\t\tFxaaBool goodSpan = directionN ? goodSpanN : goodSpanP;\n\t\t\t\tFxaaFloat subpixG = subpixF * subpixF;\n\t\t\t\tFxaaFloat pixelOffset = (dst * (-spanLengthRcp)) + 0.5;\n\t\t\t\tFxaaFloat subpixH = subpixG * fxaaQualitySubpix;\n\t\t/*--------------------------------------------------------------------------*/\n\t\t\t\tFxaaFloat pixelOffsetGood = goodSpan ? pixelOffset : 0.0;\n\t\t\t\tFxaaFloat pixelOffsetSubpix = max(pixelOffsetGood, subpixH);\n\t\t\t\tif(!horzSpan) posM.x += pixelOffsetSubpix * lengthSign;\n\t\t\t\tif( horzSpan) posM.y += pixelOffsetSubpix * lengthSign;\n\t\t\t\t#if (FXAA_DISCARD == 1)\n\t\t\t\t\t\treturn FxaaTexTop(tex, posM);\n\t\t\t\t#else\n\t\t\t\t\t\treturn FxaaFloat4(FxaaTexTop(tex, posM).xyz, lumaM);\n\t\t\t\t#endif\n\t\t}\n\t\t/*==========================================================================*/\n\t\t#endif\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = FxaaPixelShader(\n\t\t\t\tvUv,\n\t\t\t\tvec4(0.0),\n\t\t\t\ttDiffuse,\n\t\t\t\ttDiffuse,\n\t\t\t\ttDiffuse,\n\t\t\t\tresolution,\n\t\t\t\tvec4(0.0),\n\t\t\t\tvec4(0.0),\n\t\t\t\tvec4(0.0),\n\t\t\t\t0.75,\n\t\t\t\t0.166,\n\t\t\t\t0.0833,\n\t\t\t\t0.0,\n\t\t\t\t0.0,\n\t\t\t\t0.0,\n\t\t\t\tvec4(0.0)\n\t\t\t);\n\n\t\t\t// TODO avoid querying texture twice for same texel\n\t\t\tgl_FragColor.a = texture2D(tDiffuse, vUv).a;\n\t\t}'}},2448:function(t,e,n){"use strict";n.r(e),n.d(e,{GammaCorrectionShader:function(){return i}});const i={uniforms:{tDiffuse:{value:null}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 tex = texture2D( tDiffuse, vUv );\n\n\t\t\tgl_FragColor = LinearTosRGB( tex );\n\n\t\t}"}},1928:function(t,e,n){"use strict";n.r(e),n.d(e,{LuminosityHighPassShader:function(){return r}});var i=n(5644);const r={shaderID:"luminosityHighPass",uniforms:{tDiffuse:{value:null},luminosityThreshold:{value:1},smoothWidth:{value:1},defaultColor:{value:new i.Color(0)},defaultOpacity:{value:0}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform vec3 defaultColor;\n\t\tuniform float defaultOpacity;\n\t\tuniform float luminosityThreshold;\n\t\tuniform float smoothWidth;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\n\t\t\tvec3 luma = vec3( 0.299, 0.587, 0.114 );\n\n\t\t\tfloat v = dot( texel.xyz, luma );\n\n\t\t\tvec4 outputColor = vec4( defaultColor.rgb, defaultOpacity );\n\n\t\t\tfloat alpha = smoothstep( luminosityThreshold, luminosityThreshold + smoothWidth, v );\n\n\t\t\tgl_FragColor = mix( outputColor, texel, alpha );\n\n\t\t}"}}},s={};function l(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return a[t].call(n.exports,n,n.exports,l),n.exports}(function(){l.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return l.d(e,{a:e}),e}})(),function(){l.d=function(t,e){for(var n in e)l.o(e,n)&&!l.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}()}(),function(){l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){l.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}();var c={};(function(){"use strict";function t(t,e,n,i,r,o,a){try{var s=t[o](a),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(i,r)}function e(e){return function(){var n=this,i=arguments;return new Promise((function(r,o){var a=e.apply(n,i);function s(e){t(a,r,o,s,l,"next",e)}function l(e){t(a,r,o,s,l,"throw",e)}s(void 0)}))}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){return r(t,e)}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),i.forEach((function(e){s(t,e,n[e])}))}return t}function h(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function p(t){return d(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return t&&t.constructor===Symbol?"symbol":typeof t}function m(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?f(t):e}function v(t){var e=h();return function(){var n,i=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return m(this,n)}}l.r(c),l.d(c,{World:function(){return Et},default:function(){return Tt}});function y(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;Object.create;var b=n("6945"),x=l.n(b),w=l(5644),_=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),this.eventHandlers={},e.classList.add("q-vis-city"),this.container=e,this.options=u({staticPath:"/static"},n)}var e=t.prototype;return e.addListener=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e in this.eventHandlers||(this.eventHandlers[e]=[]),this.eventHandlers[e].push({node:t,handler:n,capture:i}),t.addEventListener(e,n,i)},e.removeListener=function(t,e){this.eventHandlers[e].filter((function(e){var n=e.node;return!t||n===t})).forEach((function(t){var n=t.node,i=t.handler,r=t.capture;return n.removeEventListener(e,i,r)})),this.eventHandlers[e]=this.eventHandlers[e].filter((function(e){var n=e.node;return!!t&&n!==t}))},e.removeAllListeners=function(){var t=this;Object.keys(this.eventHandlers).forEach((function(e){t.removeListener("",e)})),this.eventHandlers={}},t}(),C=l(6558);class A extends w.DataTextureLoader{constructor(t){super(t),this.type=w.HalfFloatType}parse(t){const e=function(t,e){switch(t){case 1:console.error("THREE.RGBELoader Read Error: "+(e||""));break;case 2:console.error("THREE.RGBELoader Write Error: "+(e||""));break;case 3:console.error("THREE.RGBELoader Bad File Format: "+(e||""));break;default:case 4:console.error("THREE.RGBELoader: Error: "+(e||""))}return-1},n="\n",i=function(t,e,i){e=e||1024;let r=t.pos,o=-1,a=0,s="",l=String.fromCharCode.apply(null,new Uint16Array(t.subarray(r,r+128)));for(;0>(o=l.indexOf(n))&&a<e&&r<t.byteLength;)s+=l,a+=l.length,r+=128,l+=String.fromCharCode.apply(null,new Uint16Array(t.subarray(r,r+128)));return-1<o&&(!1!==i&&(t.pos+=a+o+1),s+l.slice(0,o))},r=function(t){const n=/^#\?(\S+)/,r=/^\s*GAMMA\s*=\s*(\d+(\.\d+)?)\s*$/,o=/^\s*EXPOSURE\s*=\s*(\d+(\.\d+)?)\s*$/,a=/^\s*FORMAT=(\S+)\s*$/,s=/^\s*\-Y\s+(\d+)\s+\+X\s+(\d+)\s*$/,l={valid:0,string:"",comments:"",programtype:"RGBE",format:"",gamma:1,exposure:1,width:0,height:0};let c,u;if(t.pos>=t.byteLength||!(c=i(t)))return e(1,"no header found");if(!(u=c.match(n)))return e(3,"bad initial token");for(l.valid|=1,l.programtype=u[1],l.string+=c+"\n";c=i(t),!1!==c;)if(l.string+=c+"\n","#"!==c.charAt(0)){if((u=c.match(r))&&(l.gamma=parseFloat(u[1],10)),(u=c.match(o))&&(l.exposure=parseFloat(u[1],10)),(u=c.match(a))&&(l.valid|=2,l.format=u[1]),(u=c.match(s))&&(l.valid|=4,l.height=parseInt(u[1],10),l.width=parseInt(u[2],10)),2&l.valid&&4&l.valid)break}else l.comments+=c+"\n";return 2&l.valid?4&l.valid?l:e(3,"missing image size specifier"):e(3,"missing format specifier")},o=function(t,n,i){const r=n;if(r<8||r>32767||2!==t[0]||2!==t[1]||128&t[2])return new Uint8Array(t);if(r!==(t[2]<<8|t[3]))return e(3,"wrong scanline width");const o=new Uint8Array(4*n*i);if(!o.length)return e(4,"unable to allocate buffer space");let a=0,s=0;const l=4*r,c=new Uint8Array(4),u=new Uint8Array(l);let h=i;for(;h>0&&s<t.byteLength;){if(s+4>t.byteLength)return e(1);if(c[0]=t[s++],c[1]=t[s++],c[2]=t[s++],c[3]=t[s++],2!=c[0]||2!=c[1]||(c[2]<<8|c[3])!=r)return e(3,"bad rgbe scanline format");let n,i=0;for(;i<l&&s<t.byteLength;){n=t[s++];const r=n>128;if(r&&(n-=128),0===n||i+n>l)return e(3,"bad scanline data");if(r){const e=t[s++];for(let t=0;t<n;t++)u[i++]=e}else u.set(t.subarray(s,s+n),i),i+=n,s+=n}const d=r;for(let t=0;t<d;t++){let e=0;o[a]=u[t+e],e+=r,o[a+1]=u[t+e],e+=r,o[a+2]=u[t+e],e+=r,o[a+3]=u[t+e],a+=4}h--}return o},a=function(t,e,n,i){const r=t[e+3],o=Math.pow(2,r-128)/255;n[i+0]=t[e+0]*o,n[i+1]=t[e+1]*o,n[i+2]=t[e+2]*o},s=function(t,e,n,i){const r=t[e+3],o=Math.pow(2,r-128)/255;n[i+0]=w.DataUtils.toHalfFloat(Math.min(t[e+0]*o,65504)),n[i+1]=w.DataUtils.toHalfFloat(Math.min(t[e+1]*o,65504)),n[i+2]=w.DataUtils.toHalfFloat(Math.min(t[e+2]*o,65504))},l=new Uint8Array(t);l.pos=0;const c=r(l);if(-1!==c){const t=c.width,e=c.height,n=o(l.subarray(l.pos),t,e);if(-1!==n){let i,r,o,l;switch(this.type){case w.FloatType:l=n.length/4;const t=new Float32Array(3*l);for(let i=0;i<l;i++)a(n,4*i,t,3*i);i=t,r=w.RGBFormat,o=w.FloatType;break;case w.HalfFloatType:l=n.length/4;const e=new Uint16Array(3*l);for(let i=0;i<l;i++)s(n,4*i,e,3*i);i=e,r=w.RGBFormat,o=w.HalfFloatType;break;default:console.error("THREE.RGBELoader: unsupported type: ",this.type);break}return{width:t,height:e,data:i,header:c.string,gamma:c.gamma,exposure:c.exposure,format:r,type:o}}}return null}setDataType(t){return this.type=t,this}load(t,e,n,i){function r(t,n){switch(t.type){case w.FloatType:t.encoding=w.LinearEncoding,t.minFilter=w.LinearFilter,t.magFilter=w.LinearFilter,t.generateMipmaps=!1,t.flipY=!0;break;case w.HalfFloatType:t.encoding=w.LinearEncoding,t.minFilter=w.LinearFilter,t.magFilter=w.LinearFilter,t.generateMipmaps=!1,t.flipY=!0;break}e&&e(t,n)}return super.load(t,r,n,i)}}function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function S(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):I(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})),t}function M(t){if(Array.isArray(t))return t}function k(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function O(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}}function P(t,e){return M(t)||k(t,e)||O(t,e)||E()}var j=n("cffa"),L=l.n(j),D=function(t){return new Promise((function(e){setTimeout((function(){e("")}),t)}))},R=(function(){var t=e((function(t,e,n,i){var r,o,a;return y(this,(function(s){switch(s.label){case 0:return r=t,e?[4,(0,C.getCache)(t,{version:n})]:[3,2];case 1:o=s.sent(),a=o.url,r=a,s.label=2;case 2:return[2,new Promise((function(t){return(new w.TextureLoader).load(r,t,void 0,(function(e){t(void 0),i&&i()}))}))]}}))}))}(),function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return new Promise((function(a){return L().to(t,S(u({},e),{duration:n,ease:o,onUpdate:i,onComplete:function(){null==r||r(),a()}}))}))}),B=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return L().to(t,S(u({},e),{duration:n,ease:i,yoyo:!0,repeat:1/0}))},N=function(){var t=document.createElement("canvas"),e=new w.CanvasTexture(t);return e.wrapS=w.RepeatWrapping,e.wrapT=w.RepeatWrapping,e.repeat.set(3,1),e},F=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:90,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"earth",i=P(t,2),r=i[0],o=i[1],a=("plane"===n?r+180:r)/360,s=(o+e)/(2*e);return[a>.5?a-.5:a-.5+1,1-s]},z=l(8349),V=function(t){a(n,t);var e=v(n);function n(){var t;return i(this,n),t=e.apply(this,arguments),t.lights=[],t.guiParams={light1:{x:{value:0,min:-1e3,max:1e3,step:.01,onChange:function(e){var n=t.lights[0],i=n.light,r=n.helper;i.position.x=e,r.update()}},y:{value:50,min:-1e3,max:1e3,step:.01,onChange:function(e){var n=t.lights[0],i=n.light,r=n.helper;i.position.y=e,r.update()}},z:{value:-150,min:-1e3,max:1e3,step:.01,onChange:function(e){var n=t.lights[0],i=n.light,r=n.helper;i.position.z=e,r.update()}},intensity:{value:1.09,min:0,max:10,step:.01,target:function(){return t.lights[0].light}},color:{value:"#fff",target:function(){return t.lights[0].light}}}},t}var r=n.prototype;return r.create=function(){this.createGroup(),this.createDirLight({position:new w.Vector3(this.guiParams.light1.x.value,this.guiParams.light1.y.value,this.guiParams.light1.z.value),color:"#ffffff",intensity:this.guiParams.light1.intensity.value})},r.createDirLight=function(t){var e=t.position,n=t.color,i=t.intensity,r=new w.DirectionalLight(n,i);if(r.position.copy(e),this.add(r),this.add(r.target),this.pencil.options.isdev){var o=new w.DirectionalLightHelper(r,5);this.add(o),this.lights.push({light:r,helper:o})}},n}(b.BaseObject),G=l(7981),H=l(7476),W=l.n(H),U="varying vec2 vUv;\nvoid main() {\n  vUv = uv;\n  gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}",Z="uniform sampler2D heatMap;\nuniform sampler2D baseMap;\nuniform vec2 uRepeat;\n\nvarying vec2 vUv;\n\nvoid main() {\n  // repeat\n  vec2 vUvRepeat = vUv * uRepeat;\n\n  vec4 heatColor = texture2D(heatMap, vUvRepeat);\n  vec4 heatmapColor = heatColor;\n  vec4 colorV = texture2D(baseMap, vUvRepeat);\n  gl_FragColor = vec4(mix(colorV.xyz, heatmapColor.xyz, heatmapColor.a), heatmapColor.a);\n}";n("a026");function Y(t,e,n,i){var r,o,a,s,l,c,u,h=.3086*(1-i),d=.6094*(1-i),p=.082*(1-i),f=e<<2;for(a=0;a<n;a+=1)for(s=a*f,o=0;o<e;o+=1)r=s+(o<<2),l=t[r],c=t[r+1],u=t[r+2],t[r]=(h+i)*l+d*c+p*u,t[r+1]=h*l+(d+i)*c+p*u,t[r+2]=h*l+d*c+(p+i)*u}function X(t,e,n,i,r){var o=new Uint8Array(e*n*4);q(t,o,e,n,i),Q(o,t,e,n,i),K(t,o,e,n,i),J(o,t,e,n,i),void 0!==r&&1!==r&&Y(t,e,n,r)}function q(t,e,n,i,r){var o,a,s,l,c,u,h,d,p,f=r<<2,g=n<<2;for(a=0;a<i;a+=1){for(u=0,h=0,d=0,p=0,s=a*g,o=0;o<r;o+=1)l=s+(o<<2),u+=t[l],h+=t[l+1],d+=t[l+2],p+=t[l+3],e[l]=u/(o+1)|0,e[l+1]=h/(o+1)|0,e[l+2]=d/(o+1)|0,e[l+3]=p/(o+1)|0;for(;o<n;o+=1)l=s+(o<<2),c=l-f,e[l]=u/r|0,e[l+1]=h/r|0,e[l+2]=d/r|0,e[l+3]=p/r|0,u+=t[l]-t[c],h+=t[l+1]-t[c+1],d+=t[l+2]-t[c+2],p+=t[l+3]-t[c+3]}}function K(t,e,n,i,r){var o,a,s,l,c,u,h,d,p,f=r<<2,g=n<<2;for(a=0;a<i;a+=1){for(u=0,h=0,d=0,p=0,s=a*g,o=n-1;o>=n-r;o-=1)l=s+(o<<2),u+=t[l],h+=t[l+1],d+=t[l+2],p+=t[l+3],e[l]=u/(n-o)|0,e[l+1]=h/(n-o)|0,e[l+2]=d/(n-o)|0,e[l+3]=p/(n-o)|0;for(;o>=0;o-=1)l=s+(o<<2),c=l+f,e[l]=u/r|0,e[l+1]=h/r|0,e[l+2]=d/r|0,e[l+3]=p/r|0,u+=t[l]-t[c],h+=t[l+1]-t[c+1],d+=t[l+2]-t[c+2],p+=t[l+3]-t[c+3]}}function Q(t,e,n,i,r){var o,a,s,l,c,u,h,d,p,f=n<<2,g=f*r;for(o=0;o<n;o+=1){for(u=0,h=0,d=0,p=0,s=o<<2,a=0;a<r;a+=1)l=s+a*f,u+=t[l],h+=t[l+1],d+=t[l+2],p+=t[l+3],e[l]=u/(a+1)|0,e[l+1]=h/(a+1)|0,e[l+2]=d/(a+1)|0,e[l+3]=p/(a+1)|0;for(;a<i;a+=1)l=s+a*f,c=l-g,e[l]=u/r|0,e[l+1]=h/r|0,e[l+2]=d/r|0,e[l+3]=p/r|0,u+=t[l]-t[c],h+=t[l+1]-t[c+1],d+=t[l+2]-t[c+2],p+=t[l+3]-t[c+3]}}function J(t,e,n,i,r){var o,a,s,l,c,u,h,d,p,f=n<<2,g=f*r;for(o=0;o<n;o+=1){for(u=0,h=0,d=0,p=0,s=o<<2,a=i-1;a>=i-r;a-=1)l=s+a*f,u+=t[l],h+=t[l+1],d+=t[l+2],p+=t[l+3],e[l]=u/(i-a)|0,e[l+1]=h/(i-a)|0,e[l+2]=d/(i-a)|0,e[l+3]=p/(i-a)|0;for(;a>=0;a-=1)l=s+a*f,c=l+g,e[l]=u/r|0,e[l+1]=h/r|0,e[l+2]=d/r|0,e[l+3]=p/r|0,u+=t[l]-t[c],h+=t[l+1]-t[c+1],d+=t[l+2]-t[c+2],p+=t[l+3]-t[c+3]}}function $(t,e,n,i,r,o,a){var s=t.getContext("2d"),l=0|i,c=0|r,u=0|e,h=0|n,d=document.createElement("canvas");d.width=t.width,d.height=t.height;var p=d.getContext("2d");o=32*(0|o),o=Math.min(Math.max(o,32),256);var f=Math.max(0,Math.log(o)/Math.log(2)-3|0),g=o>>>f,m=t.width>>>f,v=t.height>>>f,y=document.createElement("canvas");y.width=m,y.height=v;var b=y.getContext("2d");b.drawImage(t,0,0,m,v);var x=b.getImageData(0,0,m,v);return X(x.data,m,v,g,a),b.putImageData(x,0,0),p.drawImage(y,0,0,m,v,0,0,t.width,t.height),s.clearRect(u,h,l,c),s.drawImage(d,u,h,l,c),d.remove(),y.remove(),s}var tt=$,et=4096,nt=4096,it=function(){function t(e){i(this,t),this.baseMap={value:null},this.heatMap={value:null},this.canvasBox=document.createElement("div"),this.options={blur:0,radius:20,randomPos:50,randomNumber:5,newHeatmapTime:3e3,maxOpacity:1,texture:new w.Texture,gradient:{.5:"rgba(44,234,129,0)",.6:"#2CEA81",.7:"#FCFF00",.8:"#FF9C00",1:"#ff0000"},speed:1,color:new w.Color("#0c7362"),blurPlus:!1,blurPlusOptions:{blur:0,sv:0},repeat:{x:1,y:1}},this.options=u({},this.options,e),this.baseMap.value=this.options.texture,this.init()}var n=t.prototype;return n.setData=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:95,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"earth";this.heatMap.value&&(this.heatMap.value.dispose(),this.heatMap.value=null);var i=t.map((function(t){var i=t.position,r=t.value,o=P(F([+i[0],+i[1]],e,n),2),a=o[0],s=o[1];return{x:Math.round(a*et),y:Math.round(s*nt),value:r}})),r=this.getHeatMap(i);r.wrapS=w.RepeatWrapping,r.wrapT=w.RepeatWrapping,r.minFilter=w.LinearFilter,r.magFilter=w.LinearFilter,this.heatMap.value=r},n.getHeatMap=function(t){var e,n,i=this.canvasBox,r=W().create({container:i,radius:this.options.radius,minOpacity:0,maxOpacity:this.options.maxOpacity,blur:this.options.blur,backgroundColor:"rgba(0, 0, 0, 0)",gradient:this.options.gradient});(r.setData({max:100,data:t}),window.blurRect=tt,this.options.blurPlus)&&tt(r._renderer.canvas,0,0,et,nt,(null===(e=this.options.blurPlusOptions)||void 0===e?void 0:e.blur)||0,(null===(n=this.options.blurPlusOptions)||void 0===n?void 0:n.sv)||0);return new w.CanvasTexture(r._renderer.canvas)},n.init=function(){var t=this;return e((function(){var e;return y(this,(function(n){return t.material=new w.ShaderMaterial({uniforms:{heatMap:t.heatMap,baseMap:t.baseMap,uRepeat:{value:new w.Vector2(t.options.repeat.x,t.options.repeat.y)}},depthWrite:!1,transparent:!0,vertexShader:U,fragmentShader:Z}),e=t.canvasBox,e&&(document.body.appendChild(e),e.style.width="".concat(et,"px"),e.style.height="".concat(nt,"px"),e.style.position="absolute",e.style.display="none",e.style.top="".concat(5e4,"px")),[2]}))}))()},n.dispose=function(){var t;this.canvasBox&&(document.body.removeChild(this.canvasBox),this.canvasBox=null),this.baseMap.value&&(this.baseMap.value.dispose(),this.baseMap.value=null),this.heatMap.value&&(this.heatMap.value.dispose(),this.heatMap.value=null),null===(t=this.material)||void 0===t||t.dispose(),this.material=null},t}(),rt=452.8,ot=213.9,at=["#FFFA00","#00FFE6","#FF9D00"],st=new w.PlaneGeometry(.1,400,1,1),lt=function(t){a(r,t);var n=v(r);function r(t){var e;return i(this,r),e=n.call(this),e.lines=[],e.guiParams={plane:{x:{value:120,min:-500,max:500,step:1,target:function(){return e.object3d.position}},y:{value:0,min:-500,max:500,step:1,target:function(){return e.object3d.position}},z:{value:33,min:-500,max:500,step:1,target:function(){return e.object3d.position}}}},e.options=u({},t),e}var o=r.prototype;return o.create=function(){var t=this;return e((function(){var e,n,i,r,o,a,s,l,c;return y(this,(function(h){switch(h.label){case 0:return t.createGroup(),i=null===(e=t.pencil)||void 0===e?void 0:e.assetController,[4,null==i?void 0:i.get("world")];case 1:return r=h.sent(),r.wrapS=w.RepeatWrapping,r.wrapT=w.RepeatWrapping,r.encoding=w.sRGBEncoding,r.repeat.set(3,1),[4,null==i?void 0:i.get("line")];case 2:return o=h.sent(),o.wrapS=w.RepeatWrapping,o.wrapT=w.RepeatWrapping,t.lineTexture=o,t.heatmap=new it(S(u({},t.options.heatmap),{repeat:{x:3,y:1},texture:N()})),a=new w.Mesh(new w.PlaneGeometry(9999999,9999999),new w.MeshBasicMaterial({color:new w.Color("#0a252d").convertSRGBToLinear()})),a.rotation.x=-Math.PI/2,a.position.y=0,s=new w.Mesh(new w.PlaneGeometry(3*rt,1.1*ot),new w.MeshBasicMaterial({map:r})),s.position.y=.8,s.rotation.x=-Math.PI/2,l=new w.Mesh(new w.PlaneGeometry(3*rt,1.1*ot),t.heatmap.material),l.rotation.x=-Math.PI/2,l.position.y=1.2,null===(n=t.object3d)||void 0===n||n.add(a,s,l),t.object3d.position.set(t.guiParams.plane.x.value,t.guiParams.plane.y.value,t.guiParams.plane.z.value),t.object3d.visible=!1,c=new G.Bloom(t,{include:[l]}),t.bloom=c,[2]}}))}))()},o.update=function(){var t=this;this.object3d.visible&&this.lines.forEach((function(e){var n,i;null!==(n=e.material.map)&&void 0!==n&&null!==(i=n.offset)&&void 0!==i&&i.y&&(e.material.map.offset.y-=t.options.lineSpeed||.005)}))},o.animateIn=function(){var t;this.object3d.visible=!0,null===(t=this.bloom)||void 0===t||t.enable()},o.animateOut=function(){var t;this.object3d.visible=!1,null===(t=this.bloom)||void 0===t||t.disable()},o.setData=function(t){var e;null===(e=this.heatmap)||void 0===e||e.setData(t,85,"plane")},o.drawLines=function(t){var n=this;return e((function(){var e;return y(this,(function(i){return n.lines.length&&(n.lines.forEach((function(t){(0,C.disposeMesh)(t),n.object3d.remove(t)})),n.lines.length=0),e=new Array(300).fill(0).map((function(){var e=Math.floor(Math.random()*t.length),n=P(F([+t[e].position[0],+t[e].position[1]],85,"plane"),2),i=n[0],r=n[1];return[rt*i-rt/2,ot*r-ot/2]})),e.forEach((function(t,e){var i=P(t,2),r=i[0],o=i[1],a=new w.Mesh(st.clone(),new w.MeshBasicMaterial({color:new w.Color(at[e%at.length]),transparent:!0,map:n.lineTexture.clone()}));a.material.map.needsUpdate=!0,a.material.map.offset.y=-Math.random(),n.lines.push(a),a.position.x=r,a.position.z=o,a.position.y=200,n.object3d.add(a)})),[2]}))}))()},o.drawCircle=function(t){var e=P(F([+t.position[0],+t.position[1]],85,"plane"),2),n=e[0],i=e[1];return St.draw("Ripple",{position:new w.Vector3(rt*n-rt/2,1,ot*i-ot/2),rotation:new w.Euler(-Math.PI/2,0,0)},this)},o.dispose=function(){var t,e,n;this.lines.length=0,null===(t=this.bloom)||void 0===t||t.disable(),this.bloom=void 0,null===(e=this.heatmap)||void 0===e||e.dispose(),this.heatmap=void 0,null===(n=this.object3d)||void 0===n||n.traverse((function(t){(0,C.disposeMesh)(t)}))},r}(b.BaseObject);function ct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function ut(t,e,n){return ut=ct()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=Function.bind.apply(t,i),a=new r;return n&&o(a,n.prototype),a},ut.apply(null,arguments)}function ht(t,e,n){return ut.apply(null,arguments)}function dt(t){if(Array.isArray(t))return T(t)}function pt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ft(t){return dt(t)||k(t)||O(t)||pt()}var gt="varying vec3 vWorldPos;\nvarying vec3 vNormal;\n\nvoid main() {\n    vWorldPos = (modelMatrix * vec4(position, 1.0)).xyz;\n    vNormal = normalize(normalMatrix * normal);\n    gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}",mt="uniform vec3 glowColor;\nuniform float coeficient;\nuniform float power;\n\nvarying vec3 vNormal;\nvarying vec3 vWorldPos;\n\nvoid main() {\n    vec3 worldCameraToVertex = cameraPosition - vWorldPos;\n    vec3 viewCameraToVertex = (viewMatrix * vec4(worldCameraToVertex, 0.0)).xyz;\n    viewCameraToVertex = normalize(viewCameraToVertex);\n    float intensity = pow(coeficient + dot(vNormal, viewCameraToVertex), power);\n    if (intensity > 0.22) {\n      discard;\n    }\n    gl_FragColor = vec4(glowColor, intensity);\n}";function vt(t,e){for(var n=t.length,i=n%e===0?n/e:Math.floor(n/e+1),r=[],o=0;o<i;o++){var a=t.slice(o*e,o*e+e);r.push(a)}return r}var yt=30,bt=function(t){a(r,t);var n=v(r);function r(t){var e;return i(this,r),e=n.call(this),e.guiParams={earth:{rotateY:{value:0,min:-2,max:2,step:.01,onChange:function(t){e.object3d.children[0].children.forEach((function(e){e.rotation.y=t*Math.PI}))}},rotate:{view:"euler",target:function(){return e.object3d}},color:{value:"#fff",onChange:function(t){e.earthMaterial.color=new w.Color(t).convertSRGBToLinear()}},emissivecolor:{paramMap:"emissive",value:"#000000",target:function(){return e.earthMaterial}},emissiveIntensity:{value:1,min:0,max:5,step:.01,target:function(){return e.earthMaterial}},normalScale:{value:.5,min:0,max:1,step:.01,onChange:function(t){e.earthMaterial.normalScale.set(t,t)}},metalness:{value:.45,min:0,max:3,step:.01,target:function(){return e.earthMaterial}},roughness:{value:.3,min:0,max:3,step:.01,target:function(){return e.earthMaterial}},envMapIntensity:{value:3.04,min:0,max:10,step:.01,target:function(){return e.earthMaterial}},scale:{value:50,min:0,max:100,step:1,onChange:function(t){e.glowSphere.scale.set(t,t,1)}},x:{value:0,min:0,max:500,step:1,target:function(){return e.glowSphere.position}},y:{value:0,min:0,max:500,step:1,target:function(){return e.glowSphere.position}},z:{value:0,min:0,max:500,step:1,target:function(){return e.glowSphere.position}},spritecolor:{value:"#fff",onChange:function(t){e.glowSphere.material.color=new w.Color(t).convertSRGBToLinear()}},opacity:{value:1,min:0,max:1,step:.01,target:function(){return e.glowSphere.material}}}},e.options=u({},t),e}var o=r.prototype;return o.create=function(){var t=this;return e((function(){var e,n,i,r,o,a,s,l,c,h,d,p,f,g,m,v;return y(this,(function(y){switch(y.label){case 0:return t.createGroup(),i=t.guiParams.earth,r=t.pencil.options.staticPath,t.heatmap=new it(S(u({},t.options.heatmap),{repeat:{x:1,y:1},texture:N()})),o=(new w.TextureLoader).load("".concat(r,"/nerve/bg.jpeg")),o.encoding=w.sRGBEncoding,o.magFilter=w.NearestFilter,o.minFilter=w.NearestFilter,o.repeat.set(4,4),o.wrapS=w.RepeatWrapping,o.wrapT=w.RepeatWrapping,a=new w.Mesh(new w.SphereGeometry(100),new w.MeshBasicMaterial({map:o,side:w.BackSide})),[4,null===(e=t.pencil.assetController)||void 0===e?void 0:e.get("world-sphere")];case 1:return s=y.sent(),s.magFilter=w.NearestFilter,s.minFilter=w.NearestFilter,s.encoding=w.sRGBEncoding,[4,null===(n=t.pencil.assetController)||void 0===n?void 0:n.get("world-normal")];case 2:return l=y.sent(),c=new w.MeshStandardMaterial({map:s,metalness:i.metalness.value,roughness:i.roughness.value,normalMap:l,normalScale:new w.Vector2(i.normalScale.value,i.normalScale.value),envMapIntensity:i.envMapIntensity.value}),t.earthMaterial=c,h=new w.Mesh(new w.SphereGeometry(yt,32,32),c),h.receiveShadow=!0,h.castShadow=!0,h.renderOrder=1,h.rotation.y=-.5*Math.PI,d=new w.ShaderMaterial({uniforms:{glowColor:{value:new w.Color("#254b66").convertSRGBToLinear()},coeficient:{value:0},power:{value:2}},transparent:!0,blending:w.AdditiveBlending,depthWrite:!1,vertexShader:gt,fragmentShader:mt}),new w.Mesh(new w.SphereGeometry(yt+4,32,32),d),p=new w.Mesh(new w.SphereGeometry(yt+.01,32,32),t.heatmap.material),p.renderOrder=2,p.rotation.y=-.5*Math.PI,f=(new w.TextureLoader).load("".concat(r,"/nerve/球光.png")),f.encoding=w.sRGBEncoding,g=new w.SpriteMaterial({map:f,transparent:!0,opacity:.8,fog:!1,depthTest:!1,depthWrite:!1,side:w.FrontSide,sizeAttenuation:!0,blending:w.NormalBlending}),m=new w.Sprite(g),m.scale.set(2*yt+2.2,2*yt+2.2,1),t.glowSphere=m,v=new w.Group,v.add(h,p,m),t.sphereGroup=v,t.add(v,a),t.bloom=new G.Bloom(t,{include:[p]}),t.bloom.enable(),[2]}}))}))()},o.update=function(){if(this.object3d.visible&&!this.pencil.options.isdev){var t=P(this.object3d.children,2),e=t[0],n=t[1];e.rotation.y+=.002,n.rotation.y+=5e-4}},o.animateIn=function(){var t;this.sphereGroup.rotation.y=0,St.getAllObject("Flyline").forEach((function(t){return t.start()})),this.object3d.visible=!0,null===(t=this.bloom)||void 0===t||t.enable()},o.animateOut=function(){var t;St.getAllObject("Flyline").forEach((function(t){return t.stop()})),this.object3d.visible=!1,null===(t=this.bloom)||void 0===t||t.disable()},o.setData=function(t){var e;null===(e=this.heatmap)||void 0===e||e.setData(t)},o.drawCircle=function(t){var e=this,n=ht(w.Vector3,ft(C.polar2Cartesian.apply(void 0,ft(t.position).concat([yt])))),i=(new w.Quaternion).setFromUnitVectors(new w.Vector3(0,0,1),n.clone().normalize());return St.draw("Ripple",{position:n,rotation:(new w.Euler).setFromQuaternion(i.normalize()),scale:8}).then((function(t){e.sphereGroup.add(t.object3d)}))},o.drawLines=function(t){var n=this;return e((function(){var e,i;return y(this,(function(r){return e=St.getAllObject("Flyline"),e.forEach((function(t){return n.sphereGroup.remove(t.object3d)})),St.erase("Flyline"),i=new Array(150).fill(0).map((function(){var e=Math.floor(Math.random()*t.length);return t[e]})),[2,Promise.all(i.map((function(t,e){var i=t.position,r=ht(w.Vector3,ft((0,C.polar2Cartesian)(i[0],i[1],yt))),o=ht(w.Vector3,ft((0,C.polar2Cartesian)(i[0],i[1],100))),a=new w.LineCurve3(r,o);return St.draw("Flyline",{nodes:a.getPoints(100),length:w.MathUtils.randFloat(.1,.2),duration:1e3*Math.random()+1500,opacity:.8}).then((function(t){n.object3d.visible||t.stop(),n.sphereGroup.add(t.object3d)}))})))]}))}))()},o.createArea=function(t,e){var n=new z.PolygonGeometry(t,{startHeight:30,endHeight:32,closedBottom:!1,closedTop:!0,includeSides:!0,curvatureResolution:1,cartesian:!1}),i=new w.Mesh(n,this.meshMaterial),r=n.userData.rso;i.userData.properties=e,i.userData.coords=t;var o=vt(r.topVerts,3).map((function(t){var e=P(t,3),n=e[0],i=e[1],r=e[2];return new w.Vector3(n,i,r)})),a=(new w.BufferGeometry).setFromPoints(o),s=new z.MeshLine;s.setGeometry(a);var l=new w.Mesh(s,this.lineMaterial);return{mesh:i,line:l}},o.dispose=function(){var t,e,n,i;null===(t=this.control)||void 0===t||t.dispose(),this.control=void 0,null===(e=this.bloom)||void 0===e||e.disable(),this.bloom=void 0,null===(n=this.heatmap)||void 0===n||n.dispose(),this.heatmap=void 0,null===(i=this.object3d)||void 0===i||i.traverse((function(t){(0,C.disposeMesh)(t)}))},r}(b.BaseObject),xt=["#FFFA00","#00FFE6","#FF9D00"],wt=function(t){a(r,t);var n=v(r);function r(t){var e;return i(this,r),e=n.call(this),e.options=t,e}var o=r.prototype;return o.create=function(){var t=this;return e((function(){var e,n,i,r,o,a,s,l,c,u;return y(this,(function(h){switch(h.label){case 0:return i=t.options,r=i.position,o=i.rotation,t.createGroup(),[4,null===(e=t.pencil.assetController)||void 0===e?void 0:e.get("椭圆形")];case 1:return a=h.sent(),[4,null===(n=t.pencil.assetController)||void 0===n?void 0:n.get("椭圆形2")];case 2:return s=h.sent(),l=new w.Color(xt[Math.floor(Math.random()*xt.length)]),c=new w.Mesh(new w.PlaneGeometry(.5,.5,1,1),new w.MeshBasicMaterial({color:l,transparent:!0,map:a,opacity:0,depthTest:!1})),u=new w.Mesh(new w.PlaneGeometry(.5,.5,1,1),new w.MeshBasicMaterial({color:l,transparent:!0,map:s,opacity:0,depthTest:!1})),t.add(c),t.add(u),t.object3d.rotation.copy(o),t.object3d.position.copy(r),[2]}}))}))()},o.render=function(){var t=this;return e((function(){var e,n,i,r,o,a;return y(this,(function(s){switch(s.label){case 0:return e=t.options,n=e.scale,i=void 0===n?20:n,r=P(t.object3d.children,2),o=r[0],a=r[1],[4,Promise.all([R(o.material,{opacity:1},1),R(a.material,{opacity:1},1)])];case 1:return s.sent(),[4,Promise.all([R(o.scale,{x:i,y:i,z:i},3),R(o.material,{opacity:0},3)])];case 2:return s.sent(),t.object3d.remove(o),o.geometry.dispose(),o.material.dispose(),[4,D(3e3)];case 3:return s.sent(),[4,Promise.all([R(a.material,{opacity:0},3)])];case 4:return s.sent(),t.object3d.remove(a),a.geometry.dispose(),a.material.dispose(),St.erase(t),[2]}}))}))()},r}(b.BaseObject),_t=["255,250,0","0,255,230","255,157,0"],Ct=function(t,e,n){var i=document.createElement("canvas");i.width=256,i.height=1;var r=i.getContext("2d"),o=r.createLinearGradient(0,0,256,1);o.addColorStop(0,e),o.addColorStop(t,n),o.addColorStop(t,e),o.addColorStop(1,e),r.fillStyle=o,r.fillRect(0,0,256,1);var a=new w.Texture(i);return a.needsUpdate=!0,a.anisotropy=16,a.wrapS=w.RepeatWrapping,a.wrapT=w.RepeatWrapping,a},At=_t.map((function(t){return Ct(.2,"rgba(".concat(t,", 0)"),"rgba(".concat(t,", 1)"))})),It=function(t){a(r,t);var n=v(r);function r(t){var e;return i(this,r),e=n.call(this),e.options={color:"255, 255, 255",duration:2e3,delay:0,opacity:1,lineWidth:3,depthTest:!0,length:.5},e.options=u({},e.options,t),e}var o=r.prototype;return o.init=function(){var t=this;return e((function(){var e,n,i,r,o,a,s,l;return y(this,(function(c){switch(c.label){case 0:return e=t.options,n=e.nodes,i=e.duration,r=e.delay,o=e.lineWidth,a=e.opacity,s=e.depthTest,l=e.setPointWidth,t.createGroup(),[4,St.draw("Line",{nodes:n,color:new w.Color("#fff"),map:At[w.MathUtils.randInt(0,At.length-1)],useMap:1,lineWidth:o,duration:i,delay:r,opacity:a,depthTest:s,setPointWidth:l,transparent:!0,key:"".concat(t.key,"-flyline")},t).then((function(t){t.animate()}))];case 1:return c.sent(),[2]}}))}))()},o.stop=function(){var t=St.getObject("Line",{key:"".concat(this.key,"-flyline")});t.tween.stop(),t.hide()},o.start=function(){var t=St.getObject("Line",{key:"".concat(this.key,"-flyline")});t.show(),t.tween.start()},o.animateOut=function(){var t=this,e=St.getObject("Line",{key:"".concat(this.key,"-flyline")}),n=(0,C.makePromiseCreator)(),i=n.promise,r=n.resolve;return L().to(e.material,{opacity:0,duration:1,onComplete:function(){t.stop(),r()}}),i},o.animateIn=function(){var t=this,e=St.getObject("Line",{key:"".concat(this.key,"-flyline")}),n=(0,C.makePromiseCreator)(),i=n.promise,r=n.resolve;return L().to(e.material,{opacity:1,duration:1,onStart:function(){t.start()},onComplete:function(){r()}}),i},o.dispose=function(){var t;null===(t=St.getObject("Line",{key:"".concat(this.key,"-flyline")}))||void 0===t||t.dispose(),this.object3d.traverse((function(t){(0,C.disposeMesh)(t)}))},r}(b.BaseObject),St=new b.DrawController({Light:V,Line:z.Line,Flyline:It,Plane:lt,Earth:bt,Ripple:wt}),Mt=new URLSearchParams(window.location.search).has("dev"),kt={plane:{camera:new w.Vector3(0,242,123),target:new w.Vector3(0,0,0)},earth:{camera:new w.Vector3(93,46,0),target:new w.Vector3(0,0,0)}},Et=function(t){a(r,t);var n=v(r);function r(t,e){var o;i(this,r),o=n.call(this,t,e),o.isAnimating=!1,o.mode="earth",o.bloomTween=null;var a=new(x())({isdev:Mt,stats:Mt,gui:Mt,axesHelper:Mt,container:o.container,control:!0,light:!0,camera:{near:80,far:3e3,fov:40,aspect:1.7},bloom:!0,bloomParams:u({strength:1.5,threshold:.12,radius:.6},o.options.bloomParams),multisampling:parseFloat(localStorage.getItem("multisampling")||"4"),renderer:{devicePixelRatio:parseFloat(localStorage.getItem("devicePixelRatio")||"1"),outputEncoding:w.sRGBEncoding,antialias:"msaa"},css2DRenderer:!0,staticPath:o.options.staticPath},St);Mt&&(window.pencil=a),"high"===o.options.preferConfig?a.composerController.active=!0:a.composerController.active=!1;var s=a.renderer;return s.shadowMap.enabled=!0,s.shadowMap.type=w.PCFSoftShadowMap,s.physicallyCorrectLights=!0,o.pencil=a,o.mode=(null==e?void 0:e.mode)||"earth",o}var o=r.prototype;return o.loadEnvMap=function(){var t=this;return e((function(){var e,n,i,r;return y(this,(function(o){return t.pencil.renderer?(e=(0,C.makePromiseCreator)(),n=e.promise,i=e.resolve,r=new w.PMREMGenerator(t.pencil.renderer),r.compileEquirectangularShader(),(new A).load(t.getPath("nerve/env.hdr"),(function(t){var e=r.fromEquirectangular(t).texture;r.dispose(),i(e)})),[2,n]):[2]}))}))()},o.changeView=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.pencil,i=n.camera,r=n.control;if(i&&r){"earth"===t?(i.near=10,r.mouseButtons={LEFT:w.MOUSE.ROTATE,MIDDLE:w.MOUSE.DOLLY,RIGHT:w.MOUSE.PAN},r.enabled=!0,r.enablePan=!1,r.enableRotate=!0,r.minDistance=103,r.maxDistance=108):(i.near=80,r.mouseButtons={LEFT:w.MOUSE.PAN,MIDDLE:w.MOUSE.DOLLY,RIGHT:w.MOUSE.ROTATE},r.enabled=!0,r.enablePan=!0,r.enableRotate=!1,r.minDistance=150,r.maxDistance=370),r.enableDamping=!0,r.dampingFactor=.1,i.updateProjectionMatrix();var o=kt[t],a=o.camera,s=o.target;if(e)return Promise.all([R(i.position,a,1.5),R(r.target,s,1.5)]);i.position.copy(a),r.target.copy(s)}},o.changeMode=function(t){this.mode=t;var e=St.getObject("Earth"),n=St.getObject("Plane");"earth"===t?(null==e||e.animateIn(),null==n||n.animateOut()):(null==e||e.animateOut(),null==n||n.animateIn()),this.changeView(t,!0)},o.getPath=function(t){var e=this.options.staticPath;return e?"".concat(e,"/").concat(t):t},o.init=function(){var t=this;return e((function(){var e,n,i,r,o;return y(this,(function(a){switch(a.label){case 0:return n=t.pencil.assetController,n.register({loader:"texture",url:t.getPath("nerve/world.png"),name:"world"}),n.register({loader:"texture",url:t.getPath("nerve/world2.png"),name:"world-sphere"}),n.register({loader:"texture",url:t.getPath("nerve/normal.png"),name:"world-normal"}),n.register({loader:"texture",url:t.getPath("nerve/line.png"),name:"line"}),n.register({loader:"texture",url:t.getPath("nerve/椭圆形.png"),name:"椭圆形"}),n.register({loader:"texture",url:t.getPath("nerve/椭圆形2.png"),name:"椭圆形2"}),[4,null==n?void 0:n.load()];case 1:return a.sent(),[4,t.loadEnvMap()];case 2:return i=a.sent(),t.pencil.scene.environment=i,[4,St.draw("Earth",{heatmap:t.options.heatmap})];case 3:return a.sent(),[4,St.draw("Plane",{heatmap:t.options.heatmap,lineSpeed:t.options.lineSpeed})];case 4:return a.sent(),[4,St.draw("Light")];case 5:return a.sent(),[4,Promise.all(St.objectsPromise)];case 6:return a.sent(),null===(e=t.pencil)||void 0===e||e.start(),t.changeMode(t.mode),Mt&&(r=t.pencil.gui,o=null==r?void 0:r.addFolder("mode").addBlade({view:"list",label:"mode",options:[{text:"earth",value:"earth"},{text:"plane",value:"plane"}],value:"earth"}),o.on("change",(function(e){var n=e.value;t.changeMode(n)}))),[2]}}))}))()},o.drawCircle=function(t){"plane"===this.mode?St.getObject("Plane").drawCircle(t):St.getObject("Earth").drawCircle(t)},o.drawLine=function(t){var e,n;null===(e=St.getObject("Plane"))||void 0===e||e.drawLines(t),null===(n=St.getObject("Earth"))||void 0===n||n.drawLines(t)},o.setHeatmapData=function(t){return e((function(){var e,n;return y(this,(function(i){return null===(e=St.getObject("Plane"))||void 0===e||e.setData(t),null===(n=St.getObject("Earth"))||void 0===n||n.setData(t),[2]}))}))()},o.animateIn=function(){var t=this;return e((function(){var e;return y(this,(function(n){return t.container.animate([{opacity:0},{opacity:1}],{duration:1200,fill:"both",delay:150}),t.bloomTween=B(null===(e=t.pencil.bloom)||void 0===e?void 0:e.bloomPass,{strength:t.options.bloomAnimationStrength||3,radius:1},2),[2]}))}))()},o.setSetting=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"low";this.options.preferConfig=t,"high"===this.options.preferConfig?this.pencil.composerController.active=!0:this.pencil.composerController.active=!1},o.dispose=function(){this.bloomTween&&(this.bloomTween.kill(),this.bloomTween=null),this.pencil.dispose(),this.removeAllListeners(),this.pencil=void 0},r}(_),Tt=Et})(),t.exports=c})()}).call(this,n("b639").Buffer,n("4362"))},e317:function(t,e,n){"use strict";e["a"]=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}},e360:function(t,e,n){"use strict";var i=n("166a");function r(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}var o=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i<e-1?t[i+2]:2*a-o;return r((n-i/e)*e,s,o,a,l)}},a=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),o=t[(i+e-1)%e],a=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,o,a,s,l)}},s=n("c698");function l(t,e){return function(n){return t+n*e}}function c(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function u(t){return 1===(t=+t)?h:function(e,n){return n-e?c(e,n,t):Object(s["a"])(isNaN(e)?n:e)}}function h(t,e){var n=e-t;return n?l(t,n):Object(s["a"])(isNaN(t)?e:t)}e["a"]=function t(e){var n=u(e);function r(t,e){var r=n((t=Object(i["b"])(t)).r,(e=Object(i["b"])(e)).r),o=n(t.g,e.g),a=n(t.b,e.b),s=h(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=a(e),t.opacity=s(e),t+""}}return r.gamma=t,r}(1);function d(t){return function(e){var n,r,o=e.length,a=new Array(o),s=new Array(o),l=new Array(o);for(n=0;n<o;++n)r=Object(i["b"])(e[n]),a[n]=r.r||0,s[n]=r.g||0,l[n]=r.b||0;return a=t(a),s=t(s),l=t(l),r.opacity=1,function(t){return r.r=a(t),r.g=s(t),r.b=l(t),r+""}}}d(o),d(a)},e37f:function(t,e,n){t.exports=n.p+"assets/img/scenario-map-1-blue.2b8b6f40.png"},e3ad:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("1d5c"),r=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){var e=i.default(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a<e.length;a++){var s=e[a][0];if(r.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break}}if(!n)return e;var l=[],c=0,u=0,h=0,d=0,p=0,f=e[0];"M"!==f[0]&&"m"!==f[0]||(c=+f[1],u=+f[2],h=c,d=u,p++,l[0]=["M",c,u]);a=p;for(var g=e.length;a<g;a++){var m=e[a],v=l[a-1],y=[],b=(s=m[0],s.toUpperCase());if(s!==b)switch(y[0]=b,b){case"A":y[1]=m[1],y[2]=m[2],y[3]=m[3],y[4]=m[4],y[5]=m[5],y[6]=+m[6]+c,y[7]=+m[7]+u;break;case"V":y[1]=+m[1]+u;break;case"H":y[1]=+m[1]+c;break;case"M":h=+m[1]+c,d=+m[2]+u;break;default:for(var x=1,w=m.length;x<w;x++)y[x]=+m[x]+(x%2?c:u)}else y=e[a];switch(b){case"Z":c=+h,u=+d;break;case"H":c=y[1],y=["L",c,u];break;case"V":u=y[1],y=["L",c,u];break;case"T":c=y[1],u=y[2];var _=o([v[1],v[2]],[v[3],v[4]]);y=["Q",_[0],_[1],c,u];break;case"S":c=y[y.length-2],u=y[y.length-1];var C=v.length,A=o([v[C-4],v[C-3]],[v[C-2],v[C-1]]);y=["C",A[0],A[1],y[1],y[2],c,u];break;case"M":h=y[y.length-2],d=y[y.length-1];break;default:c=y[y.length-2],u=y[y.length-1]}l.push(y)}return l}e.default=a},e4c9:function(t,e,n){"use strict";var i=n("3219f"),r=n.n(i);r.a},e52d:function(t,e,n){t.exports=n.p+"assets/img/google.6134863a.png"},e58c:function(t,e,n){"use strict";var i=n("2ba4"),r=n("fc6a"),o=n("5926"),a=n("07fa"),s=n("a640"),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,h=s("lastIndexOf"),d=u||!h;t.exports=d?function(t){if(u)return i(c,this,arguments)||0;var e=r(this),n=a(e),s=n-1;for(arguments.length>1&&(s=l(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},e59e:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tag-dialog"},[n("IocDialog",{attrs:{dialogConfig:t.dialogConfig,exportLoading:t.addTagLoading},on:{cancelDialog:t.onCancelDialog,sureDialog:t.onSureDialog},scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticClass:"tag-title"},[t._v(t._s(t.getTitle))])]},proxy:!0}])},[t.judgeIfAddOfEdit?[t.tagReachLimit?n("div",{staticClass:"warm-tip"},[t._v(t._s(t.$t("search.tag_class.upper_limit_tip")))]):t._e(),n("el-form",{ref:"tagForm",attrs:{model:t.tagForm,rules:t.addTagRules}},[n("div",{staticClass:"tag-main"},[n("el-form-item",{staticStyle:{width:"30%"},attrs:{prop:"tagType"}},[n("el-select",{attrs:{placeholder:t.$t("search.tag_class.tag_type_tip")},on:{change:t.handleChangeTagType},model:{value:t.tagForm.tagType,callback:function(e){t.$set(t.tagForm,"tagType",e)},expression:"tagForm.tagType"}},t._l(t.tagTypeList,(function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),n("el-form-item",{staticStyle:{width:"65%"},attrs:{prop:"tagContent"}},[t.tagReachLimit?n("el-select",{attrs:{placeholder:"请选择标签内容"},model:{value:t.tagForm.tagContent,callback:function(e){t.$set(t.tagForm,"tagContent",e)},expression:"tagForm.tagContent"}},t._l(t.tagNameList,(function(t){return n("el-option",{key:t.id,attrs:{label:t.tag_name,value:t.tag_name}})})),1):[t.isOnlyCanCreate?n("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入标签内容"},model:{value:t.tagForm.tagContent,callback:function(e){t.$set(t.tagForm,"tagContent",e)},expression:"tagForm.tagContent"}}):n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:t.$t("search.tag_class.select_create_tip"),filterable:"","default-first-option":"","allow-create":"",clearable:"","no-data-text":t.$t("search.tag_class.select_tag_type_first")},model:{value:t.tagForm.tagContent,callback:function(e){t.$set(t.tagForm,"tagContent",e)},expression:"tagForm.tagContent"}},t._l(t.tagNameList,(function(t){return n("el-option",{key:t.id,attrs:{label:t.tag_name,value:t.tag_name}})})),1)]],2)],1)])]:[n("div",{staticClass:"tag-dialog-main"},[n("div",{staticClass:"tag-tip-wrap"},[n("span",{staticClass:"tag-tip-img"}),n("span",[t._v("确认删除 ["+t._s(t.tagName)+"] 的标签吗？")])])])]],2)],1)},r=[],o=(n("a4d3"),n("4de4"),n("4160"),n("d81d"),n("b0c0"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("498a"),n("159b"),n("ade3")),a=(n("96cf"),n("2909")),s=n("e581"),l=n("1956"),c=n("cf45");function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d={name:"TagDialog",mixins:[l["a"]],props:{allTagParams:{type:Object},dialogType:{type:String,default:"add"},targetId:{type:String}},data:function(){return{dialogConfig:{title:"添加标签",width:"500px",dialogVisible:!1,isShowFooter:!0,dialogType:""},addTagLoading:!1,tagForm:{tagType:"",tagContent:""},options:[{label:"方式",value:"fangshi"}],dialogVisible:!1,curTargetId:"",curTagId:"",tagName:"",addTagRules:{tagType:[{required:!0,message:"请选择标签类别",trigger:"change"}],tagContent:[{required:!0,message:"请输入标签内容",trigger:"blur"}]},tagReachLimit:!1,tagNameList:[],targetTags:[]}},computed:{isOnlyCanCreate:function(){return"personal"===this.$route.name},getTitle:function(){return"add"===this.dialogConfig.dialogType?"添加标签":"edit"===this.dialogConfig.dialogType?"编辑标签":"Quake提醒您"},judgeIfAddOfEdit:function(){return"add"===this.dialogConfig.dialogType||"edit"===this.dialogConfig.dialogType},judgeIfAllowDataTag:function(){return Object(c["i"])(window.Config)}},watch:{dialogType:function(t){this.dialogConfig.dialogType=t},allTagParams:{handler:function(t){this.curTargetId=t.targetId,this.curTagId=t.tagId,this.tagName=t.tagName},deep:!0}},mounted:function(){this.watchShowAddTagDialog(),this.judgeIfAllowDataTag&&(this.ajaxGetAllowTagType(),this.ajaxGetSelfTagList())},methods:{watchShowAddTagDialog:function(){var t=this,e=this.$bus.$busNames.showAddTagDialog;this.$bus.$on(e,(function(e){var n=e.docId,i=e.type,r=void 0===i?"add":i,o=e.tagId,a=void 0===o?"":o,s=e.tagName,l=void 0===s?"":s,c=e.tagType,u=void 0===c?"":c;r&&(t.tagForm.tagType=u,t.tagForm.tagContent=l,t.dialogConfig.dialogType=r,t.curTargetId=n,t.curTagId=a,t.tagName=l,t.dialogConfig.dialogVisible=!0,t.judgeIfAllowDataTag&&t.judgeIfAddOfEdit&&t.ajaxGetTagsAggregation())}))},handleChangeTagType:function(){var t=this,e=this.targetTags.filter((function(e){return e.tag_type===t.tagForm.tagType})).map((function(t){return t.tag_list}));this.tagNameList=Array.isArray(e)&&e.length?Object(a["a"])(e[0]):[]},refreshData:function(){var t=this;clearTimeout(this.tagTimer),this.tagTimer=setTimeout((function(){t.$emit("refreshDataOfTag"),t.$emit("refreshPageOfTag")}),2e3)},refreshPage:function(){var t=this;clearTimeout(this.tagTimer),this.tagTimer=setTimeout((function(){t.$emit("refreshPageOfTag")}),2e3)},onCancelDialog:function(){this.dialogConfig.dialogVisible=!1},ajaxGetSelfTagDetail:function(){var t;return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,regeneratorRuntime.awrap(Object(s["M"])(this.curTagId));case 2:t=e.sent,t&&(this.tagForm.tagType=t.tag_type,this.tagForm.tagContent=t.tag_name);case 4:case"end":return e.stop()}}),null,this)},ajaxGetTagsAggregation:function(){var t,e,n=arguments;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},i.next=3,regeneratorRuntime.awrap(Object(s["P"])(t));case 3:e=i.sent,0===e.code&&(this.targetTags=e.data);case 5:case"end":return i.stop()}}),null,this)},ajaxGetSelfTagList:function(){var t,e;return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:return t={start:0,size:1},n.next=3,regeneratorRuntime.awrap(Object(s["N"])(t));case 3:e=n.sent,0===e.code&&(this.tagReachLimit=e.meta.tag_reach_limit);case 5:case"end":return n.stop()}}),null,this)},ajaxDeleteTag:function(t){var e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:if(this.addTagLoading=!0,!this.curTargetId){i.next=7;break}return i.next=4,regeneratorRuntime.awrap(Object(s["f"])(t));case 4:i.t0=i.sent,i.next=10;break;case 7:return i.next=9,regeneratorRuntime.awrap(Object(s["e"])(t));case 9:i.t0=i.sent;case 10:e=i.t0,this.addTagLoading=!1,0===e.code&&this.$message.success("删除成功"),this.dialogConfig.dialogVisible=!1,n=this.$route.query.refresh,"y"===n?this.refreshPage():this.refreshData();case 16:case"end":return i.stop()}}),null,this)},ajaxUpdateSelfTag:function(t,e){var n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(Object(s["db"])(t,e));case 2:n=i.sent,0===n.code&&this.$message.success("修改成功"),this.dialogConfig.dialogVisible=!1,this.refreshData();case 6:case"end":return i.stop()}}),null,this)},addTag:function(){var t=this;this.$refs.tagForm.validate((function(e){if(e){var n=t.curTargetId?{doc_id:t.curTargetId}:{},i=h({tag_type:t.tagForm.tagType,tag_name:t.tagForm.tagContent.trim()},n);return"add"===t.dialogConfig.dialogType?t.ajaxAddTags(i):t.ajaxUpdateSelfTag(t.curTagId,i),!0}return!1}))},onSureDialog:function(){this.judgeIfAddOfEdit?this.addTag():this.ajaxDeleteTag({oid:this.curTagId,doc_id:this.curTargetId})},ajaxAddTags:function(t){var e;return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:return this.addTagLoading=!0,n.next=3,regeneratorRuntime.awrap(Object(s["a"])(t));case 3:e=n.sent,this.addTagLoading=!1,0===e.code?(this.dialogConfig.dialogVisible=!1,this.$message.success("添加标签成功"),this.refreshData()):this.dialogConfig.dialogVisible=!1;case 6:case"end":return n.stop()}}),null,this)}}},p=d,f=(n("b1aec"),n("2877")),g=Object(f["a"])(p,i,r,!1,null,"0f500203",null);e["a"]=g.exports},e632:function(t,e,n){"use strict";(function(t){var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n}return t}();e.BrowserInfo=i;var r=function(){function e(e){this.version=e,this.name="node",this.os=t.platform}return e}();e.NodeInfo=r;var o=function(){function t(){this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}();e.BotInfo=o;var a=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,s=/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/,l=3,c=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([0-9\.]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",a]],u=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/],["Search Bot",s]];function h(t){return t?d(t):"undefined"!==typeof navigator?d(navigator.userAgent):f()}function d(t){var e=""!==t&&c.reduce((function(e,n){var i=n[0],r=n[1];if(e)return e;var o=r.exec(t);return!!o&&[i,o]}),!1);if(!e)return null;var r=e[0],a=e[1];if("searchbot"===r)return new o;var s=a[1]&&a[1].split(/[._]/).slice(0,3);return s?s.length<l&&(s=n(s,g(l-s.length))):s=[],new i(r,s.join("."),p(t))}function p(t){for(var e=0,n=u.length;e<n;e++){var i=u[e],r=i[0],o=i[1],a=o.test(t);if(a)return r}return null}function f(){var e="undefined"!==typeof t&&t.version;return e?new r(t.version.slice(1)):null}function g(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}e.detect=h,e.parseUserAgent=d,e.detectOS=p,e.getNodeVersion=f}).call(this,n("4362"))},e67d:function(t,e){function n(t){return"function"===typeof t.value||(console.warn("[Vue-click-outside:] provided expression",t.expression,"is not a function."),!1)}function i(t,e){if(!t||!e)return!1;for(var n=0,i=e.length;n<i;n++)try{if(t.contains(e[n]))return!0;if(e[n].contains(t))return!1}catch(r){return!1}return!1}function r(t){return"undefined"!==typeof t.componentInstance&&t.componentInstance.$isServer}t.exports={bind:function(t,e,o){if(!n(e))return;function a(e){if(o.context){var n=e.path||e.composedPath&&e.composedPath();n&&n.length>0&&n.unshift(e.target),t.contains(e.target)||i(o.context.popupItem,n)||t.__vueClickOutside__.callback(e)}}t.__vueClickOutside__={handler:a,callback:e.value};const s="ontouchstart"in document.documentElement?"touchstart":"click";!r(o)&&document.addEventListener(s,a)},update:function(t,e){n(e)&&(t.__vueClickOutside__.callback=e.value)},unbind:function(t,e,n){const i="ontouchstart"in document.documentElement?"touchstart":"click";!r(n)&&t.__vueClickOutside__&&document.removeEventListener(i,t.__vueClickOutside__.handler),delete t.__vueClickOutside__}}},e77f:function(t,e,n){},e7ea:function(t,e,n){t.exports=n.p+"assets/img/earth.dfa7dd8e.png"},e7ec:function(t,e,n){"use strict";n.r(e);var i=n("5a89"),r=n("1b53"),o={defines:{MAX_STEP:0,PERSPECTIVE_CAMERA:!0,DISTANCE_ATTENUATION:!0,FRESNEL:!0,INFINITE_THICK:!1,SELECTIVE:!1},uniforms:{tDiffuse:{value:null},tNormal:{value:null},tMetalness:{value:null},tDepth:{value:null},cameraNear:{value:null},cameraFar:{value:null},resolution:{value:new i["Vector2"]},cameraProjectionMatrix:{value:new i["Matrix4"]},cameraInverseProjectionMatrix:{value:new i["Matrix4"]},opacity:{value:.5},maxDistance:{value:180},cameraRange:{value:0},thickness:{value:.018}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}\n\n\t",fragmentShader:'\n\t\t// precision highp float;\n\t\tprecision highp sampler2D;\n\t\tvarying vec2 vUv;\n\t\tuniform sampler2D tDepth;\n\t\tuniform sampler2D tNormal;\n\t\tuniform sampler2D tMetalness;\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform float cameraRange;\n\t\tuniform vec2 resolution;\n\t\tuniform float opacity;\n\t\tuniform float cameraNear;\n\t\tuniform float cameraFar;\n\t\tuniform float maxDistance;\n\t\tuniform float thickness;\n\t\tuniform mat4 cameraProjectionMatrix;\n\t\tuniform mat4 cameraInverseProjectionMatrix;\n\t\t#include <packing>\n\t\tfloat pointToLineDistance(vec3 x0, vec3 x1, vec3 x2) {\n\t\t\t//x0: point, x1: linePointA, x2: linePointB\n\t\t\t//https://mathworld.wolfram.com/Point-LineDistance3-Dimensional.html\n\t\t\treturn length(cross(x0-x1,x0-x2))/length(x2-x1);\n\t\t}\n\t\tfloat pointPlaneDistance(vec3 point,vec3 planePoint,vec3 planeNormal){\n\t\t\t// https://mathworld.wolfram.com/Point-PlaneDistance.html\n\t\t\t//// https://en.wikipedia.org/wiki/Plane_(geometry)\n\t\t\t//// http://paulbourke.net/geometry/pointlineplane/\n\t\t\tfloat a=planeNormal.x,b=planeNormal.y,c=planeNormal.z;\n\t\t\tfloat x0=point.x,y0=point.y,z0=point.z;\n\t\t\tfloat x=planePoint.x,y=planePoint.y,z=planePoint.z;\n\t\t\tfloat d=-(a*x+b*y+c*z);\n\t\t\tfloat distance=(a*x0+b*y0+c*z0+d)/sqrt(a*a+b*b+c*c);\n\t\t\treturn distance;\n\t\t}\n\t\tfloat getDepth( const in vec2 uv ) {\n\t\t\treturn texture2D( tDepth, uv ).x;\n\t\t}\n\t\tfloat getViewZ( const in float depth ) {\n\t\t\t#ifdef PERSPECTIVE_CAMERA\n\t\t\t\treturn perspectiveDepthToViewZ( depth, cameraNear, cameraFar );\n\t\t\t#else\n\t\t\t\treturn orthographicDepthToViewZ( depth, cameraNear, cameraFar );\n\t\t\t#endif\n\t\t}\n\t\tvec3 getViewPosition( const in vec2 uv, const in float depth/*clip space*/, const in float clipW ) {\n\t\t\tvec4 clipPosition = vec4( ( vec3( uv, depth ) - 0.5 ) * 2.0, 1.0 );//ndc\n\t\t\tclipPosition *= clipW; //clip\n\t\t\treturn ( cameraInverseProjectionMatrix * clipPosition ).xyz;//view\n\t\t}\n\t\tvec3 getViewNormal( const in vec2 uv ) {\n\t\t\treturn unpackRGBToNormal( texture2D( tNormal, uv ).xyz );\n\t\t}\n\t\tvec2 viewPositionToXY(vec3 viewPosition){\n\t\t\tvec2 xy;\n\t\t\tvec4 clip=cameraProjectionMatrix*vec4(viewPosition,1);\n\t\t\txy=clip.xy;//clip\n\t\t\tfloat clipW=clip.w;\n\t\t\txy/=clipW;//NDC\n\t\t\txy=(xy+1.)/2.;//uv\n\t\t\txy*=resolution;//screen\n\t\t\treturn xy;\n\t\t}\n\t\tvoid main(){\n\t\t\t#ifdef SELECTIVE\n\t\t\t\tfloat metalness=texture2D(tMetalness,vUv).r;\n\t\t\t\tif(metalness==0.) return;\n\t\t\t#endif\n\n\t\t\tfloat depth = getDepth( vUv );\n\t\t\tfloat viewZ = getViewZ( depth );\n\t\t\tif(-viewZ>=cameraFar) return;\n\n\t\t\tfloat clipW = cameraProjectionMatrix[2][3] * viewZ+cameraProjectionMatrix[3][3];\n\t\t\tvec3 viewPosition=getViewPosition( vUv, depth, clipW );\n\n\t\t\tvec2 d0=gl_FragCoord.xy;\n\t\t\tvec2 d1;\n\n\t\t\tvec3 viewNormal=getViewNormal( vUv );\n\n\t\t\t#ifdef PERSPECTIVE_CAMERA\n\t\t\t\tvec3 viewIncidentDir=normalize(viewPosition);\n\t\t\t\tvec3 viewReflectDir=reflect(viewIncidentDir,viewNormal);\n\t\t\t#else\n\t\t\t\tvec3 viewIncidentDir=vec3(0,0,-1);\n\t\t\t\tvec3 viewReflectDir=reflect(viewIncidentDir,viewNormal);\n\t\t\t#endif\n\n\t\t\tfloat maxReflectRayLen=maxDistance/dot(-viewIncidentDir,viewNormal);\n\t\t\t// dot(a,b)==length(a)*length(b)*cos(theta) // https://www.mathsisfun.com/algebra/vectors-dot-product.html\n\t\t\t// if(a.isNormalized&&b.isNormalized) dot(a,b)==cos(theta)\n\t\t\t// maxDistance/maxReflectRayLen=cos(theta)\n\t\t\t// maxDistance/maxReflectRayLen==dot(a,b)\n\t\t\t// maxReflectRayLen==maxDistance/dot(a,b)\n\n\t\t\tvec3 d1viewPosition=viewPosition+viewReflectDir*maxReflectRayLen;\n\t\t\t#ifdef PERSPECTIVE_CAMERA\n\t\t\t\tif(d1viewPosition.z>-cameraNear){\n\t\t\t\t\t//https://tutorial.math.lamar.edu/Classes/CalcIII/EqnsOfLines.aspx\n\t\t\t\t\tfloat t=(-cameraNear-viewPosition.z)/viewReflectDir.z;\n\t\t\t\t\td1viewPosition=viewPosition+viewReflectDir*t;\n\t\t\t\t}\n\t\t\t#endif\n\t\t\td1=viewPositionToXY(d1viewPosition);\n\n\t\t\tfloat totalLen=length(d1-d0);\n\t\t\tfloat xLen=d1.x-d0.x;\n\t\t\tfloat yLen=d1.y-d0.y;\n\t\t\tfloat totalStep=max(abs(xLen),abs(yLen));\n\t\t\tfloat xSpan=xLen/totalStep;\n\t\t\tfloat ySpan=yLen/totalStep;\n\t\t\tfor(float i=0.;i<float(MAX_STEP);i++){\n\t\t\t\tif(i>=totalStep) break;\n\t\t\t\tvec2 xy=vec2(d0.x+i*xSpan,d0.y+i*ySpan);\n\t\t\t\tif(xy.x<0.||xy.x>resolution.x||xy.y<0.||xy.y>resolution.y) break;\n\t\t\t\tfloat s=length(xy-d0)/totalLen;\n\t\t\t\tvec2 uv=xy/resolution;\n\n\t\t\t\tfloat d = getDepth(uv);\n\t\t\t\tfloat vZ = getViewZ( d );\n\t\t\t\tif(-vZ>=cameraFar) continue;\n\t\t\t\tfloat cW = cameraProjectionMatrix[2][3] * vZ+cameraProjectionMatrix[3][3];\n\t\t\t\tvec3 vP=getViewPosition( uv, d, cW );\n\n\t\t\t\t#ifdef PERSPECTIVE_CAMERA\n\t\t\t\t\t// https://comp.nus.edu.sg/~lowkl/publications/lowk_persp_interp_techrep.pdf\n\t\t\t\t\tfloat recipVPZ=1./viewPosition.z;\n\t\t\t\t\tfloat viewReflectRayZ=1./(recipVPZ+s*(1./d1viewPosition.z-recipVPZ));\n\t\t\t\t#else\n\t\t\t\t\tfloat viewReflectRayZ=viewPosition.z+s*(d1viewPosition.z-viewPosition.z);\n\t\t\t\t#endif\n\n\t\t\t\t// if(viewReflectRayZ>vZ) continue; // will cause "npm run make-screenshot webgl_postprocessing_ssr" high probability hang.\n\t\t\t\t// https://github.com/mrdoob/three.js/pull/21539#issuecomment-821061164\n\t\t\t\tif(viewReflectRayZ<=vZ){\n\n\t\t\t\t\tbool hit;\n\t\t\t\t\t#ifdef INFINITE_THICK\n\t\t\t\t\t\thit=true;\n\t\t\t\t\t#else\n\t\t\t\t\t\tfloat away=pointToLineDistance(vP,viewPosition,d1viewPosition);\n\n\t\t\t\t\t\tfloat minThickness;\n\t\t\t\t\t\tvec2 xyNeighbor=xy;\n\t\t\t\t\t\txyNeighbor.x+=1.;\n\t\t\t\t\t\tvec2 uvNeighbor=xyNeighbor/resolution;\n\t\t\t\t\t\tvec3 vPNeighbor=getViewPosition(uvNeighbor,d,cW);\n\t\t\t\t\t\tminThickness=vPNeighbor.x-vP.x;\n\t\t\t\t\t\tminThickness*=3.;\n\t\t\t\t\t\tfloat tk=max(minThickness,thickness);\n\n\t\t\t\t\t\thit=away<=tk;\n\t\t\t\t\t#endif\n\n\t\t\t\t\tif(hit){\n\t\t\t\t\t\tvec3 vN=getViewNormal( uv );\n\t\t\t\t\t\tif(dot(viewReflectDir,vN)>=0.) continue;\n\t\t\t\t\t\tfloat distance=pointPlaneDistance(vP,viewPosition,viewNormal);\n\t\t\t\t\t\tif(distance>maxDistance) break;\n\t\t\t\t\t\tfloat op=opacity;\n\t\t\t\t\t\t#ifdef DISTANCE_ATTENUATION\n\t\t\t\t\t\t\tfloat ratio=1.-(distance/maxDistance);\n\t\t\t\t\t\t\tfloat attenuation=ratio*ratio;\n\t\t\t\t\t\t\top=opacity*attenuation;\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\t#ifdef FRESNEL\n\t\t\t\t\t\t\tfloat fresnelCoe=(dot(viewIncidentDir,viewReflectDir)+1.)/2.;\n\t\t\t\t\t\t\top*=fresnelCoe;\n\t\t\t\t\t\t#endif\n\t\t\t\t\t\tvec4 reflectColor=texture2D(tDiffuse,uv);\n\t\t\t\t\t\tgl_FragColor.xyz=reflectColor.xyz;\n\t\t\t\t\t\tgl_FragColor.a=op;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t'},a={defines:{PERSPECTIVE_CAMERA:1},uniforms:{tDepth:{value:null},cameraNear:{value:null},cameraFar:{value:null}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}\n\n\t",fragmentShader:"\n\n\t\tuniform sampler2D tDepth;\n\n\t\tuniform float cameraNear;\n\t\tuniform float cameraFar;\n\n\t\tvarying vec2 vUv;\n\n\t\t#include <packing>\n\n\t\tfloat getLinearDepth( const in vec2 uv ) {\n\n\t\t\t#if PERSPECTIVE_CAMERA == 1\n\n\t\t\t\tfloat fragCoordZ = texture2D( tDepth, uv ).x;\n\t\t\t\tfloat viewZ = perspectiveDepthToViewZ( fragCoordZ, cameraNear, cameraFar );\n\t\t\t\treturn viewZToOrthographicDepth( viewZ, cameraNear, cameraFar );\n\n\t\t\t#else\n\n\t\t\t\treturn texture2D( tDepth, uv ).x;\n\n\t\t\t#endif\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tfloat depth = getLinearDepth( vUv );\n\t\t\tfloat d = 1.0 - depth;\n\t\t\t// d=(d-.999)*1000.;\n\t\t\tgl_FragColor = vec4( vec3( d ), 1.0 );\n\n\t\t}\n\n\t"},s={uniforms:{tDiffuse:{value:null},resolution:{value:new i["Vector2"]},opacity:{value:.5}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}\n\n\t",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform vec2 resolution;\n\t\tvarying vec2 vUv;\n\t\tvoid main() {\n\t\t\t//reverse engineering from PhotoShop blur filter, then change coefficient\n\n\t\t\tvec2 texelSize = ( 1.0 / resolution );\n\n\t\t\tvec4 c=texture2D(tDiffuse,vUv);\n\n\t\t\tvec2 offset;\n\n\t\t\toffset=(vec2(-1,0))*texelSize;\n\t\t\tvec4 cl=texture2D(tDiffuse,vUv+offset);\n\n\t\t\toffset=(vec2(1,0))*texelSize;\n\t\t\tvec4 cr=texture2D(tDiffuse,vUv+offset);\n\n\t\t\toffset=(vec2(0,-1))*texelSize;\n\t\t\tvec4 cb=texture2D(tDiffuse,vUv+offset);\n\n\t\t\toffset=(vec2(0,1))*texelSize;\n\t\t\tvec4 ct=texture2D(tDiffuse,vUv+offset);\n\n\t\t\t// float coeCenter=.5;\n\t\t\t// float coeSide=.125;\n\t\t\tfloat coeCenter=.2;\n\t\t\tfloat coeSide=.2;\n\t\t\tfloat a=c.a*coeCenter+cl.a*coeSide+cr.a*coeSide+cb.a*coeSide+ct.a*coeSide;\n\t\t\tvec3 rgb=(c.rgb*c.a*coeCenter+cl.rgb*cl.a*coeSide+cr.rgb*cr.a*coeSide+cb.rgb*cb.a*coeSide+ct.rgb*ct.a*coeSide)/a;\n\t\t\tgl_FragColor=vec4(rgb,a);\n\n\t\t}\n\t"},l=n("e9d2");n.d(e,"SSRPass",(function(){return c}));class c extends r["Pass"]{constructor({renderer:t,scene:e,camera:n,width:c,height:u,selects:h,bouncing:d=!1,groundReflector:p}){super(),this.width=void 0!==c?c:512,this.height=void 0!==u?u:512,this.clear=!0,this.renderer=t,this.scene=e,this.camera=n,this.groundReflector=p,this.opacity=o.uniforms.opacity.value,this.output=0,this.maxDistance=o.uniforms.maxDistance.value,this.thickness=o.uniforms.thickness.value,this.tempColor=new i["Color"],this._selects=h,this.selective=Array.isArray(this._selects),Object.defineProperty(this,"selects",{get(){return this._selects},set(t){this._selects!==t&&(this._selects=t,Array.isArray(t)?(this.selective=!0,this.ssrMaterial.defines.SELECTIVE=!0,this.ssrMaterial.needsUpdate=!0):(this.selective=!1,this.ssrMaterial.defines.SELECTIVE=!1,this.ssrMaterial.needsUpdate=!0))}}),this._bouncing=d,Object.defineProperty(this,"bouncing",{get(){return this._bouncing},set(t){this._bouncing!==t&&(this._bouncing=t,this.ssrMaterial.uniforms["tDiffuse"].value=t?this.prevRenderTarget.texture:this.beautyRenderTarget.texture)}}),this.blur=!0,this._distanceAttenuation=o.defines.DISTANCE_ATTENUATION,Object.defineProperty(this,"distanceAttenuation",{get(){return this._distanceAttenuation},set(t){this._distanceAttenuation!==t&&(this._distanceAttenuation=t,this.ssrMaterial.defines.DISTANCE_ATTENUATION=t,this.ssrMaterial.needsUpdate=!0)}}),this._fresnel=o.defines.FRESNEL,Object.defineProperty(this,"fresnel",{get(){return this._fresnel},set(t){this._fresnel!==t&&(this._fresnel=t,this.ssrMaterial.defines.FRESNEL=t,this.ssrMaterial.needsUpdate=!0)}}),this._infiniteThick=o.defines.INFINITE_THICK,Object.defineProperty(this,"infiniteThick",{get(){return this._infiniteThick},set(t){this._infiniteThick!==t&&(this._infiniteThick=t,this.ssrMaterial.defines.INFINITE_THICK=t,this.ssrMaterial.needsUpdate=!0)}});const f=new i["DepthTexture"];f.type=i["UnsignedShortType"],f.minFilter=i["NearestFilter"],f.magFilter=i["NearestFilter"],this.beautyRenderTarget=new i["WebGLRenderTarget"](this.width,this.height,{minFilter:i["NearestFilter"],magFilter:i["NearestFilter"],format:i["RGBAFormat"],depthTexture:f,depthBuffer:!0}),this.prevRenderTarget=new i["WebGLRenderTarget"](this.width,this.height,{minFilter:i["NearestFilter"],magFilter:i["NearestFilter"],format:i["RGBAFormat"]}),this.normalRenderTarget=new i["WebGLRenderTarget"](this.width,this.height,{minFilter:i["NearestFilter"],magFilter:i["NearestFilter"],format:i["RGBAFormat"],type:i["HalfFloatType"]}),this.metalnessRenderTarget=new i["WebGLRenderTarget"](this.width,this.height,{minFilter:i["NearestFilter"],magFilter:i["NearestFilter"],format:i["RGBAFormat"]}),this.ssrRenderTarget=new i["WebGLRenderTarget"](this.width,this.height,{minFilter:i["NearestFilter"],magFilter:i["NearestFilter"],format:i["RGBAFormat"]}),this.blurRenderTarget=this.ssrRenderTarget.clone(),this.blurRenderTarget2=this.ssrRenderTarget.clone(),void 0===o&&console.error("THREE.SSRPass: The pass relies on SSRShader."),this.ssrMaterial=new i["ShaderMaterial"]({defines:Object.assign({},o.defines,{MAX_STEP:Math.sqrt(this.width*this.width+this.height*this.height)}),uniforms:i["UniformsUtils"].clone(o.uniforms),vertexShader:o.vertexShader,fragmentShader:o.fragmentShader,blending:i["NoBlending"]}),this.ssrMaterial.uniforms["tDiffuse"].value=this.beautyRenderTarget.texture,this.ssrMaterial.uniforms["tNormal"].value=this.normalRenderTarget.texture,this.ssrMaterial.defines.SELECTIVE=this.selective,this.ssrMaterial.needsUpdate=!0,this.ssrMaterial.uniforms["tMetalness"].value=this.metalnessRenderTarget.texture,this.ssrMaterial.uniforms["tDepth"].value=this.beautyRenderTarget.depthTexture,this.ssrMaterial.uniforms["cameraNear"].value=this.camera.near,this.ssrMaterial.uniforms["cameraFar"].value=this.camera.far,this.ssrMaterial.uniforms["thickness"].value=this.thickness,this.ssrMaterial.uniforms["resolution"].value.set(this.width,this.height),this.ssrMaterial.uniforms["cameraProjectionMatrix"].value.copy(this.camera.projectionMatrix),this.ssrMaterial.uniforms["cameraInverseProjectionMatrix"].value.copy(this.camera.projectionMatrixInverse),this.normalMaterial=new i["MeshNormalMaterial"],this.normalMaterial.blending=i["NoBlending"],this.metalnessOnMaterial=new i["MeshBasicMaterial"]({color:"white"}),this.metalnessOffMaterial=new i["MeshBasicMaterial"]({color:"black"}),this.blurMaterial=new i["ShaderMaterial"]({defines:Object.assign({},s.defines),uniforms:i["UniformsUtils"].clone(s.uniforms),vertexShader:s.vertexShader,fragmentShader:s.fragmentShader}),this.blurMaterial.uniforms["tDiffuse"].value=this.ssrRenderTarget.texture,this.blurMaterial.uniforms["resolution"].value.set(this.width,this.height),this.blurMaterial2=new i["ShaderMaterial"]({defines:Object.assign({},s.defines),uniforms:i["UniformsUtils"].clone(s.uniforms),vertexShader:s.vertexShader,fragmentShader:s.fragmentShader}),this.blurMaterial2.uniforms["tDiffuse"].value=this.blurRenderTarget.texture,this.blurMaterial2.uniforms["resolution"].value.set(this.width,this.height),this.depthRenderMaterial=new i["ShaderMaterial"]({defines:Object.assign({},a.defines),uniforms:i["UniformsUtils"].clone(a.uniforms),vertexShader:a.vertexShader,fragmentShader:a.fragmentShader,blending:i["NoBlending"]}),this.depthRenderMaterial.uniforms["tDepth"].value=this.beautyRenderTarget.depthTexture,this.depthRenderMaterial.uniforms["cameraNear"].value=this.camera.near,this.depthRenderMaterial.uniforms["cameraFar"].value=this.camera.far,this.copyMaterial=new i["ShaderMaterial"]({uniforms:i["UniformsUtils"].clone(l["CopyShader"].uniforms),vertexShader:l["CopyShader"].vertexShader,fragmentShader:l["CopyShader"].fragmentShader,transparent:!0,depthTest:!1,depthWrite:!1,blendSrc:i["SrcAlphaFactor"],blendDst:i["OneMinusSrcAlphaFactor"],blendEquation:i["AddEquation"],blendSrcAlpha:i["SrcAlphaFactor"],blendDstAlpha:i["OneMinusSrcAlphaFactor"],blendEquationAlpha:i["AddEquation"]}),this.fsQuad=new r["FullScreenQuad"](null),this.originalClearColor=new i["Color"]}dispose(){this.beautyRenderTarget.dispose(),this.prevRenderTarget.dispose(),this.normalRenderTarget.dispose(),this.metalnessRenderTarget.dispose(),this.ssrRenderTarget.dispose(),this.blurRenderTarget.dispose(),this.blurRenderTarget2.dispose(),this.normalMaterial.dispose(),this.metalnessOnMaterial.dispose(),this.metalnessOffMaterial.dispose(),this.blurMaterial.dispose(),this.blurMaterial2.dispose(),this.copyMaterial.dispose(),this.depthRenderMaterial.dispose(),this.fsQuad.dispose()}render(t,e){switch(t.setRenderTarget(this.beautyRenderTarget),t.clear(),this.groundReflector&&(this.groundReflector.visible=!1,this.groundReflector.doRender(this.renderer,this.scene,this.camera),this.groundReflector.visible=!0),t.render(this.scene,this.camera),this.groundReflector&&(this.groundReflector.visible=!1),this.renderOverride(t,this.normalMaterial,this.normalRenderTarget,0,0),this.selective&&this.renderMetalness(t,this.metalnessOnMaterial,this.metalnessRenderTarget,0,0),this.ssrMaterial.uniforms["opacity"].value=this.opacity,this.ssrMaterial.uniforms["maxDistance"].value=this.maxDistance,this.ssrMaterial.uniforms["thickness"].value=this.thickness,this.renderPass(t,this.ssrMaterial,this.ssrRenderTarget),this.blur&&(this.renderPass(t,this.blurMaterial,this.blurRenderTarget),this.renderPass(t,this.blurMaterial2,this.blurRenderTarget2)),this.output){case c.OUTPUT.Default:this.bouncing?(this.copyMaterial.uniforms["tDiffuse"].value=this.beautyRenderTarget.texture,this.copyMaterial.blending=i["NoBlending"],this.renderPass(t,this.copyMaterial,this.prevRenderTarget),this.blur?this.copyMaterial.uniforms["tDiffuse"].value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms["tDiffuse"].value=this.ssrRenderTarget.texture,this.copyMaterial.blending=i["NormalBlending"],this.renderPass(t,this.copyMaterial,this.prevRenderTarget),this.copyMaterial.uniforms["tDiffuse"].value=this.prevRenderTarget.texture,this.copyMaterial.blending=i["NoBlending"],this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e)):(this.copyMaterial.uniforms["tDiffuse"].value=this.beautyRenderTarget.texture,this.copyMaterial.blending=i["NoBlending"],this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e),this.blur?this.copyMaterial.uniforms["tDiffuse"].value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms["tDiffuse"].value=this.ssrRenderTarget.texture,this.copyMaterial.blending=i["NormalBlending"],this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e));break;case c.OUTPUT.SSR:this.blur?this.copyMaterial.uniforms["tDiffuse"].value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms["tDiffuse"].value=this.ssrRenderTarget.texture,this.copyMaterial.blending=i["NoBlending"],this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e),this.bouncing&&(this.blur?this.copyMaterial.uniforms["tDiffuse"].value=this.blurRenderTarget2.texture:this.copyMaterial.uniforms["tDiffuse"].value=this.beautyRenderTarget.texture,this.copyMaterial.blending=i["NoBlending"],this.renderPass(t,this.copyMaterial,this.prevRenderTarget),this.copyMaterial.uniforms["tDiffuse"].value=this.ssrRenderTarget.texture,this.copyMaterial.blending=i["NormalBlending"],this.renderPass(t,this.copyMaterial,this.prevRenderTarget));break;case c.OUTPUT.Beauty:this.copyMaterial.uniforms["tDiffuse"].value=this.beautyRenderTarget.texture,this.copyMaterial.blending=i["NoBlending"],this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e);break;case c.OUTPUT.Depth:this.renderPass(t,this.depthRenderMaterial,this.renderToScreen?null:e);break;case c.OUTPUT.Normal:this.copyMaterial.uniforms["tDiffuse"].value=this.normalRenderTarget.texture,this.copyMaterial.blending=i["NoBlending"],this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e);break;case c.OUTPUT.Metalness:this.copyMaterial.uniforms["tDiffuse"].value=this.metalnessRenderTarget.texture,this.copyMaterial.blending=i["NoBlending"],this.renderPass(t,this.copyMaterial,this.renderToScreen?null:e);break;default:console.warn("THREE.SSRPass: Unknown output type.")}}renderPass(t,e,n,i,r){this.originalClearColor.copy(t.getClearColor(this.tempColor));const o=t.getClearAlpha(this.tempColor),a=t.autoClear;t.setRenderTarget(n),t.autoClear=!1,void 0!==i&&null!==i&&(t.setClearColor(i),t.setClearAlpha(r||0),t.clear()),this.fsQuad.material=e,this.fsQuad.render(t),t.autoClear=a,t.setClearColor(this.originalClearColor),t.setClearAlpha(o)}renderOverride(t,e,n,i,r){this.originalClearColor.copy(t.getClearColor(this.tempColor));const o=t.getClearAlpha(this.tempColor),a=t.autoClear;t.setRenderTarget(n),t.autoClear=!1,i=e.clearColor||i,r=e.clearAlpha||r,void 0!==i&&null!==i&&(t.setClearColor(i),t.setClearAlpha(r||0),t.clear()),this.scene.overrideMaterial=e,t.render(this.scene,this.camera),this.scene.overrideMaterial=null,t.autoClear=a,t.setClearColor(this.originalClearColor),t.setClearAlpha(o)}renderMetalness(t,e,n,i,r){this.originalClearColor.copy(t.getClearColor(this.tempColor));const o=t.getClearAlpha(this.tempColor),a=t.autoClear;t.setRenderTarget(n),t.autoClear=!1,i=e.clearColor||i,r=e.clearAlpha||r,void 0!==i&&null!==i&&(t.setClearColor(i),t.setClearAlpha(r||0),t.clear()),this.scene.traverseVisible(t=>{t._SSRPassBackupMaterial=t.material,this._selects.includes(t)?t.material=this.metalnessOnMaterial:t.material=this.metalnessOffMaterial}),t.render(this.scene,this.camera),this.scene.traverseVisible(t=>{t.material=t._SSRPassBackupMaterial}),t.autoClear=a,t.setClearColor(this.originalClearColor),t.setClearAlpha(o)}setSize(t,e){this.width=t,this.height=e,this.ssrMaterial.defines.MAX_STEP=Math.sqrt(t*t+e*e),this.ssrMaterial.needsUpdate=!0,this.beautyRenderTarget.setSize(t,e),this.prevRenderTarget.setSize(t,e),this.ssrRenderTarget.setSize(t,e),this.normalRenderTarget.setSize(t,e),this.metalnessRenderTarget.setSize(t,e),this.blurRenderTarget.setSize(t,e),this.blurRenderTarget2.setSize(t,e),this.ssrMaterial.uniforms["resolution"].value.set(t,e),this.ssrMaterial.uniforms["cameraProjectionMatrix"].value.copy(this.camera.projectionMatrix),this.ssrMaterial.uniforms["cameraInverseProjectionMatrix"].value.copy(this.camera.projectionMatrixInverse),this.blurMaterial.uniforms["resolution"].value.set(t,e),this.blurMaterial2.uniforms["resolution"].value.set(t,e)}}c.OUTPUT={Default:0,SSR:1,Beauty:3,Depth:4,Normal:5,Metalness:7}},e83a:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("4160"),n("b64b"),n("159b");var i=n("53ca"),r=function t(e,n,r){return n=n?"".concat(n,"."):"",Object.keys(e).forEach((function(o){e[o]&&"object"===Object(i["a"])(e[o])?t(e[o],n+o,r):r[n+o]=e[o]})),r},o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(t,"",e)}},e897:function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"leftTranslate",(function(){return s})),n.d(i,"leftRotate",(function(){return l})),n.d(i,"leftScale",(function(){return c})),n.d(i,"transform",(function(){return h})),n.d(i,"direction",(function(){return d})),n.d(i,"angleTo",(function(){return p})),n.d(i,"vertical",(function(){return f}));var r=n("1f05"),o=n("6711"),a=n("9fe7");function s(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromTranslation(i,n),r.multiply(t,i,e)}function l(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromRotation(i,n),r.multiply(t,i,e)}function c(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.fromScaling(i,n),r.multiply(t,i,e)}function u(t,e,n){return r.multiply(t,n,e)}function h(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],i=0,r=e.length;i<r;i++){var o=e[i];switch(o[0]){case"t":s(n,n,[o[1],o[2]]);break;case"s":c(n,n,[o[1],o[2]]);break;case"r":l(n,n,o[1]);break;case"m":u(n,n,o[1]);break;default:break}}return n}function d(t,e){return t[0]*e[1]-e[0]*t[1]}function p(t,e,n){var i=o.angle(t,e),r=d(t,e)>=0;return n?r?2*Math.PI-i:i:r?i:2*Math.PI-i}function f(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return i}))},e91f:function(t,e,n){"use strict";var i=n("ebb5"),r=n("4d64").indexOf,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("indexOf",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},e955:function(t,e,n){"use strict";var i=function(){var t=this,e=this,n=e.$createElement,i=e._self._c||n;return i("div",[i("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.shutDownHistory,expression:"shutDownHistory"}],staticClass:"search-input-wrapper"},[e.pageName===e.getIndexPathName?i("svg-icon",{staticClass:"prepend-svg",class:{"mobile-svg":e.isMobile},attrs:{"icon-class":"search"}}):e._e(),i("span",{staticClass:"append-btn",class:{"append-index-btn":e.pageName===e.getIndexPathName,"append-result-btn":"searchResult"===e.pageName||"imgSearch"===e.pageName,"mobile-btn":e.isMobile,"btn-disable":e.role<3&&"quake_image"===e.searchList.selectIndex},on:{click:e.onSearch}},[e._v(" "+e._s(e.$t("global.search"))+" ")]),i("el-input",{ref:"input",staticClass:"search-input",class:{"index-input":e.pageName===e.getIndexPathName,"index-input-temporary":e.pageName===e.getIndexPathName&&!e.role,"result-input":"searchResult"===e.pageName||"imgSearch"===e.pageName,"result-input2":"searchResult"===e.pageName,"result-input-temporary":"searchResult"===e.pageName&&!e.role,"result-input-two-other":"searchResult"===e.pageName&&"quake_service"!==e.searchList.selectIndex&&!e.isQuakeTippingPoint&&!e.role,"result-input-two-other1":"searchResult"===e.pageName&&"quake_service"!==e.searchList.selectIndex&&!e.isQuakeTippingPoint&&e.role,"mobile-input":e.isMobile,"result-tool-bar-input-search":!0,"padding-left":e.isQuakeCertificate,"result-input-tipping-point":e.isQuakeTippingPoint,"result-input-certificate":e.isQuakeCertificate},attrs:{clearable:"",placeholder:'port:"8080" OR service:"http"'},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)}},model:{value:e.searchList.searchVal,callback:function(t){e.$set(e.searchList,"searchVal",t)},expression:"searchList.searchVal"}}),e.isQuakeCertificate?i("el-dropdown",{staticClass:"common-syntax",attrs:{trigger:"click",placement:"bottom-start"},on:{"visible-change":e.handleCommonSyntaxVisibleChange,command:e.handleCommandCommonSyntax}},[i("span",{staticClass:"common-syntax-text"},[e._v(" 常用语法"),i("i",{class:["arrow-right","el-icon-caret-bottom",{rotate:e.commonSyntaxVisible}]})]),i("el-dropdown-menu",{staticClass:"certificate-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.commonSyntax,(function(t){return i("el-dropdown-item",{key:t.value,attrs:{command:t.value}},[e._v(" "+e._s(t.dec)+" ")])})),1)],1):e._e(),e.isQuakeCertificate?[!e.searchHistoryConfig.isShowHistory||"searchResult"!==e.pageName&&e.pageName!==e.getIndexPathName?e._e():i("transition",{attrs:{name:"fade"}},[e.isMobile||e.toolBarComprehensiveConfig.isShowPermissionTip||!(e.searchHistoryConfig.historyLoading||!e.searchList.searchVal&&e.searchHistoryConfig.searchHistoryList.length||e.searchList.searchVal&&e.searchHistoryConfig.certificateList.length)?e._e():i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.searchHistoryConfig.historyLoading,expression:"searchHistoryConfig.historyLoading"}],staticClass:"search-suggest-container",class:{"search-index-suggest-container":e.pageName===e.getIndexPathName,"search-result-suggest-container":"searchResult"===e.pageName},style:{height:e.searchHistoryConfig.historyLoading?"80px":""}},[e.searchList.searchVal?i("div",{staticClass:"suggest-list certificate-suggest-list"},[i("div",{staticClass:"body"},[i("el-collapse",{on:{change:e.handleChangeCollapse},model:{value:e.activeSuggestAppVersions,callback:function(t){e.activeSuggestAppVersions=t},expression:"activeSuggestAppVersions"}},e._l(e.searchHistoryConfig.certificateList,(function(t,n){return i("el-collapse-item",{key:n,staticClass:"suggest-collapse-item",attrs:{name:t.name}},[i("template",{slot:"title"},[i("div",{staticClass:"suggest-item",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.handleTriggerCertificateSuggestion(t)}}},[i("span",{domProps:{innerHTML:e._s(e.emptyStringFormater(e.highlightFormater(e.numberFormater(e.xssFormater(t.name,!0),!1),e.searchList.searchVal,!0)))}}),i("span",{staticStyle:{"margin-left":"20px"}},[e._v(e._s(t.value))])])])],2)})),1)],1)]):i("div",[i("div",{staticClass:"history-top-line"},[i("span",[i("span",[e._v(e._s(e.$t("search.result_toolbar.recent_search_record")))]),i("span",{staticClass:"clear",on:{click:function(t){return e.onTriggerDialog("close")}}},[e._v(e._s(e.$t("global.close")))]),i("span",{staticClass:"clear",on:{click:function(t){return e.onTriggerDialog("delete")}}},[e._v(e._s(e.$t("global.clear")))])]),i("span",{staticClass:"view",on:{click:function(t){return e.onTriggerDialog("more")}}},[e._v(e._s(e.$t("search.view_all"))),i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"more"}})],1)]),e._l(e.searchHistoryConfig.searchHistoryList,(function(t,n){return[t.original_query_string&&t.original_query_string.trim()?i("div",{key:n,staticClass:"history-item"},[i("el-tag",{nativeOn:{click:function(n){return e.onTriggerSuggestion(t)}}},[e._v(" "+e._s(e.xss(t.original_query_string))+" ")])],1):e._e()]}))],2)])])]:[!e.searchHistoryConfig.isShowHistory||"searchResult"!==e.pageName&&e.pageName!==e.getIndexPathName?e._e():i("transition",{attrs:{name:"fade"}},[e.isMobile||e.toolBarComprehensiveConfig.isShowPermissionTip||!(e.searchHistoryConfig.historyLoading||!e.searchList.searchVal&&e.searchHistoryConfig.searchHistoryList.length||e.searchList.searchVal&&e.searchHistoryConfig.appList.length)?e._e():i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.searchHistoryConfig.historyLoading,expression:"searchHistoryConfig.historyLoading"}],staticClass:"search-suggest-container",class:{"search-index-suggest-container":e.pageName===e.getIndexPathName,"search-result-suggest-container":"searchResult"===e.pageName},style:{height:e.searchHistoryConfig.historyLoading?"80px":""}},[e.searchList.searchVal?i("div",{staticClass:"suggest-list"},[i("div",{staticClass:"head"},e._l(e.suggestTable,(function(t,n){return i("span",{key:n,style:{width:100*t.width+"%"}},[e._v(e._s(t.label))])})),0),i("div",{staticClass:"body"},[i("el-collapse",{on:{change:e.handleChangeCollapse},model:{value:e.activeSuggestAppVersions,callback:function(t){e.activeSuggestAppVersions=t},expression:"activeSuggestAppVersions"}},e._l(e.searchHistoryConfig.appList.filter((function(t){return t.product_name||t.vendor_name})),(function(t,n){return i("el-collapse-item",{key:t.product_name+n,staticClass:"suggest-collapse-item",attrs:{name:t.product_name}},[i("template",{slot:"title"},[i("div",{staticClass:"suggest-item",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.onTriggerSuggestion(t)}}},e._l(e.suggestTable,(function(n,r){return i("span",{key:r,staticClass:"column",style:{width:100*n.width+"%"}},[n.icon&&t.is_hot?i("svg-icon",{staticClass:"hot-icon",attrs:{"icon-class":"hot"}}):e._e(),0===r?i("el-tooltip",{attrs:{effect:"dark",content:t[n.key],placement:"top"}},[i("span",{staticClass:"ellipsis-suggest"},[i("span",{staticClass:"ellipse-text",class:{number:n.number},domProps:{innerHTML:e._s(e.emptyStringFormater(e.highlightFormater(e.numberFormater(e.xssFormater(t[n.key],n.xss),n.number),e.searchList.searchVal,n.highlight)))},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.onTriggerSuggestion(t)}}})])]):i("span",{class:{number:n.number},domProps:{innerHTML:e._s(e.emptyStringFormater(e.highlightFormater(e.numberFormater(e.xssFormater(t[n.key],n.xss),n.number),e.searchList.searchVal,n.highlight)))},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.onTriggerSuggestion(t)}}}),n.icon&&t.is_competitive?i("span",{staticClass:"competitive-icon"},[e._v("精品")]):e._e(),i("i",{directives:[{name:"show",rawName:"v-show",value:t.product_versions_info&&t.product_versions_info.length&&0===r,expression:"item.product_versions_info && item.product_versions_info.length && suggestIndex === 0"}],staticClass:"el-icon-arrow-right transition-time",class:{"rotate-arrow":e.activeSuggestAppVersions.includes(t[n.key])},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.handleExpandOrCollapse(t)}}})],1)})),0)]),e._l(t.product_versions_info,(function(n){return i("div",{key:n.version,staticClass:"suggest-item",on:{click:function(i){return i.preventDefault(),i.stopPropagation(),e.handleSearchAppVersion(t.product_name,n.version)}}},e._l(e.suggestTable,(function(r,o){return i("span",{key:o,staticClass:"column",style:{width:100*r.width+"%"}},[0===o?i("span",{staticStyle:{"margin-left":"50px"}},[e._v(" "+e._s(t.product_name+" "+n.version)+" ")]):i("span",{class:{number:r.number},domProps:{innerHTML:e._s(e.emptyStringFormater(e.highlightFormater(e.numberFormater(e.xssFormater(n[r.subKey],r.xss),r.number),e.searchList.searchVal,r.highlight)))}})])})),0)}))],2)})),1)],1)]):i("div",[i("div",{staticClass:"history-top-line"},[i("span",[i("span",[e._v(e._s(e.$t("search.result_toolbar.recent_search_record")))]),i("span",{staticClass:"clear",on:{click:function(t){return e.onTriggerDialog("close")}}},[e._v(e._s(e.$t("global.close")))]),i("span",{staticClass:"clear",on:{click:function(t){return e.onTriggerDialog("delete")}}},[e._v(e._s(e.$t("global.clear")))])]),i("span",{staticClass:"view",on:{click:function(t){return e.onTriggerDialog("more")}}},[e._v(e._s(e.$t("search.view_all"))),i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"more"}})],1)]),e._l(e.searchHistoryConfig.searchHistoryList,(function(t,n){return[t.original_query_string&&t.original_query_string.trim()?i("div",{key:n,staticClass:"history-item"},[i("el-tag",{nativeOn:{click:function(n){return e.onTriggerSuggestion(t)}}},[e._v(" "+e._s(e.xss(t.original_query_string))+" ")])],1):e._e()]}))],2)])])],e.toolBarComprehensiveConfig.isShowPermissionTip?i("div",{staticClass:"permission-tip",class:{"permission-result-tip":"searchResult"===e.pageName,"permission-normal-tip":"imgSearch"===e.pageName}},[e._m(0),e.toolBarComprehensiveConfig.errMsg?i("div",{staticClass:"des-tip"},[i("span",[e._v("你所检索的语法 "+e._s(e.toolBarComprehensiveConfig.includesFiled)+"， "),i("span",[e._v(" 需升级"),i("span",{staticStyle:{color:"#4279FD",cursor:"pointer"},on:{click:e.onGoMemeber}},[e._v("终身会员")]),e._v("使用 ")])])]):i("div",{staticClass:"des-tip"},[i("span",[e._v("你所检索的语法 "+e._s(e.toolBarComprehensiveConfig.includesFiled)+"， "),e.role?i("span",[e._v(" 需升级"),i("span",{staticStyle:{color:"#4279FD",cursor:"pointer"},on:{click:e.onGoMemeber}},[e._v("会员")]),e._v("使用 ")]):i("span",[e._v("需"),i("span",{staticStyle:{color:"#4279FD",cursor:"pointer"},on:{click:e.onLogin}},[e._v("登录")]),e._v("使用")])])]),i("div",{staticClass:"des-tip",staticStyle:{"margin-top":"15px"}},[i("span",{staticStyle:{color:"#4279FD",cursor:"pointer"},on:{click:e.onBackModify}},[e._v("返回修改")])]),i("i",{staticClass:"el-icon-close close",staticStyle:{cursor:"pointer"},on:{click:e.onClosePermissionTip}})]):e._e(),i("div",{staticClass:"favicon",class:{"favicon-index":e.pageName===e.getIndexPathName}},[e._t("favicon")],2),i("IocDialog",{attrs:{dialogConfig:e.searchHistoryConfig.dialogConfig},on:{cancelDialog:e.onCancelDialog,sureDialog:e.onSureDialog}},[[i("div",{staticStyle:{"max-height":"650px","font-size":"16px","line-height":"30px"}},["关闭历史"===e.searchHistoryConfig.dialogConfig.title?i("span",[e._v(" 关闭后，将不再记录您的搜素行为，当前历史也将删除，可在 "),i("span",{staticStyle:{color:"#4279FD"}},[e._v("个人中心-搜索记录")]),e._v("重新开启 ")]):e._e(),"删除历史"===e.searchHistoryConfig.dialogConfig.title?i("span",[e._v("确定删除您之前的搜索历史？")]):e._e()])]],2)],2),"searchResult"===e.pageName?i("div",{staticClass:"des-container"},[i("span",["en"===e.localLanguage?i("span",[e._v("Total results ")]):e._e(),"zh"===e.localLanguage?i("span",[e._v("共 ")]):e._e(),e.loading?i("i",{staticClass:"el-icon-loading"}):i("span",{staticClass:"number"},[e._v(e._s(e.localNumToString(e.paginationConfig.total.value)))]),"zh"===e.localLanguage?i("span",[e._v(" 条")]):e._e(),e._v(", "),"quake_host"===e.searchList.selectIndex||e.isQuakeCertificate?e._e():i("span",["en"===e.localLanguage?i("span",[e._v("including ")]):e._e(),"zh"===e.localLanguage?i("span",[e._v("含 ")]):e._e(),e.toolBarComprehensiveConfig.uniqueIpLoading?i("i",{staticClass:"el-icon-loading"}):i("span",[e._v(e._s(e.localNumToString(e.toolBarComprehensiveConfig.uniqueIpNumber)))]),"en"===e.localLanguage?i("span",[e._v(" independent IP")]):e._e(),"zh"===e.localLanguage?i("span",[e._v(" 个独立IP")]):e._e(),e._v(", ")]),i("span",{staticClass:"time"},["en"===e.localLanguage?i("span",[e._v("in ")]):e._e(),"zh"===e.localLanguage?i("span",[e._v("用时 ")]):e._e(),e.loading?i("i",{staticClass:"el-icon-loading"}):i("span",[e._v(e._s(e.toolBarComprehensiveConfig.queryTime))]),"en"===e.localLanguage?i("span",[e._v(" seconds")]):e._e(),"zh"===e.localLanguage?i("span",[e._v(" 秒")]):e._e()]),"quake_service"!==e.searchList.selectIndex&&"quake_host"!==e.searchList.selectIndex&&"quake_tipping_point"!==e.searchList.selectIndex||!e.fastScanEnable?e._e():i("span",{staticClass:"number refresh",on:{click:e.onRescanIp}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"refresh"}}),e._v(e._s(e.$t("search.rescan")))],1),"quake_service"===e.searchList.selectIndex&&e.window&&e.window.Config&&e.window.Config.permission&&e.window.Config.permission.includes("front.concern.asset")?i("el-button",{staticClass:"add-monitor result-tool-bar-donot-click",attrs:{disabled:"quake_service"===e.searchList.selectIndex&&e.searchList.latest,type:"text"},on:{click:e.onAddAsset}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"add"}}),i("el-tooltip",{attrs:{content:"可对“全量数据”的查询语句添加监测。",placement:"top"}},[i("span",{staticClass:"add-monitor-text"},[e._v(e._s(e.$t("search.add_to_monitor")))])])],1):e._e()],1),e.isQuakeTippingPoint?e._e():i("span",{staticClass:"switch-container"},["searchResult"!==e.pageName||!e.role||"quake_service"!==e.searchList.selectIndex&&"quake_image"!==e.searchList.selectIndex?e._e():i("span",{staticClass:"el-dropdown-link latest-or-full-date"},[i("el-tooltip",{attrs:{content:e.$t("tool_bar.latest_data_tip"),placement:"bottom"}},[i("el-switch",{staticClass:"filter-asset-switch",attrs:{"active-text":e.$t("tool_bar.latest_data")},on:{change:e.changeSwitch},model:{value:e.fullNewDate,callback:function(t){e.fullNewDate=t},expression:"fullNewDate"}})],1)],1),e._l("quake_image"===e.searchList.selectIndex&&e.role<3?[]:e.shortcutSwitch.outside,(function(t,n){return i("span",{key:n,staticClass:"switch",class:{active:t.is_new}},[t.description?i("el-tooltip",{attrs:{effect:"dark",content:e.$t("search."+t.name+"_des")||t.description,placement:"top"}},[i("span",{staticClass:"label"},[e._v(e._s(e.$t("search."+t.name)))])]):i("span",{staticClass:"label"},[e._v(e._s(e.$t("search."+t.name)))]),i("el-switch",{staticClass:"right-side-divider",on:{change:e.onSearch},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"item.value"}})],1)})),"quake_image"===e.searchList.selectIndex||e.isQuakeCertificate||e.isQuakeTippingPoint?e._e():i("el-dropdown",{attrs:{trigger:"click","hide-on-click":!1}},[i("span",{staticClass:"el-dropdown-link right-side-divider",on:{click:function(){t.isShowRightSide=!t.isShowRightSide}}},[e._v(" "+e._s(e.$t("tool_bar.more_tools"))+" "),i("i",{staticClass:"el-icon-arrow-down caret",class:{active:e.isShowRightSide,"no-active":!e.isShowRightSide},style:{color:"var(--theme_primary_color)"}})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._l("quake_image"===e.searchList.selectIndex&&e.role<3?[]:e.shortcutSwitch.insideOfMore,(function(t,n){return i("el-dropdown-item",{key:n},[i("div",{staticClass:"switch-inside",class:{active:t.is_new}},[t.description?i("el-tooltip",{attrs:{effect:"dark",content:t.description,placement:"top"}},[i("span",{staticClass:"inside-text"},[e._v(e._s(e.$t("search."+t.name)))])]):i("span",{staticClass:"inside-text"},[e._v(e._s(e.$t("search."+t.name)))]),i("el-switch",{on:{change:e.onSearch},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"item.value"}})],1)])})),"quake_service"!==e.searchList.selectIndex?i("el-dropdown-item",[i("div",{staticClass:"switch-inside"},[i("span",{staticClass:"inside-text"},[e._v(e._s(e.$t("search.最新数据")))]),i("el-switch",{on:{change:e.onSearch},model:{value:e.searchList.ignore_cache,callback:function(t){e.$set(e.searchList,"ignore_cache",t)},expression:"searchList.ignore_cache"}})],1)]):e._e()],2)],1),"searchResult"!==e.pageName||!e.role||e.isQuakeCertificate||e.isQuakeTippingPoint?e._e():i("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.hideClickOut,expression:"hideClickOut"}],staticClass:"switch ip-list",class:{"has-ip-list":e.searchList.rule},on:{click:e.onTriggerIpList}},[i("span",{staticClass:"label"},[e._v(" "+e._s(e.searchList.rule?e.searchList.rule:e.$t("search.collection_list"))+" ")]),i("i",{staticClass:"el-icon-arrow-down caret",class:{active:e.isShowIpList},staticStyle:{"margin-top":"-2px"},style:{color:"var(--theme_primary_color)"}}),i("i",{staticClass:"el-icon-arrow-up clear",staticStyle:{"margin-top":"-2px"},style:{color:"var(--theme_primary_color)"},on:{click:function(t){t.stopPropagation(),e.searchList.rule="",e.isShowIpList=!1,e.onSearch()}}}),e.isShowIpList?i("div",{staticClass:"ip-collect-list"},[e.ipCollectList.length?[e._l(e.ipCollectList.slice(0,5),(function(t,n){return i("div",{key:n,staticClass:"ip-item",on:{click:function(n){return e.onSearchCollect(t.name,t)}}},[e._v(e._s(t.name))])})),i("div",{staticClass:"more-data",on:{click:e.onViewAll}},[e._v("查看全部")])]:[i("div",{staticClass:"more-data"},[e._v("暂无数据")])]],2):e._e()]),!e.judgeIfAllowFnTag||e.searchList.latest||"quake_host"===e.searchList.selectIndex||e.isQuakeCertificate?e._e():i("el-dropdown",{attrs:{trigger:"click","hide-on-click":!1}},[i("span",{staticClass:"el-dropdown-link left-side-divider"},[e._v(" "+e._s(e.$t("search.tag_class.filter_tag"))),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("div",{staticClass:"filter-tags"},[i("el-input",{attrs:{placeholder:"请输入","prefix-icon":"el-icon-search",clearable:""},on:{input:e.handleFilterTags},model:{value:e.filterTagText,callback:function(t){e.filterTagText=t},expression:"filterTagText"}}),i("div",{staticClass:"tags-type-wrap"},e._l(e.targetTags,(function(t){return i("div",{key:t.tag_type,staticClass:"tags-type-item"},[i("div",{staticClass:"tags-type"},[e._v(e._s(t.tag_type+"("+t.count+")"))]),e._l(t.tag_list,(function(n){return i("div",{key:n.id,staticClass:"tags-content-item"},[i("TagLabel",{attrs:{tag:{type_name_cn:t.tag_type,tag_name:n.tag_name}},nativeOn:{click:function(i){return e.onSearchMore("tag_new",Object.assign({},n,{tag_type:t.tag_type}))}}})],1)}))],2)})),0)],1)])],1)],2)]):e._e(),"imgSearch"===e.pageName?i("div",{staticClass:"des-container"},[i("span",[e._v(" 共 "),e.loading?i("i",{staticClass:"el-icon-loading"}):i("span",{staticClass:"number"},[e._v(e._s(e.localNumToString(e.paginationConfig.total.value)))]),e._v(" 条, "),i("span",{staticClass:"time"},[e._v("用时"),e.loading?i("i",{staticClass:"el-icon-loading"}):i("span",[e._v(e._s(e.toolBarComprehensiveConfig.queryTime))]),e._v("秒")])]),e._e()]):e._e(),i("el-dialog",{attrs:{title:"有输入不完整的括号，请调整后再试",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("span",{domProps:{innerHTML:e._s(e.xssWhite.process(e.invalidBracket))}}),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("确 定")])],1)]),i("el-dialog",{staticClass:"tip-dialog",attrs:{visible:e.isShowSearchTip,width:"638px","before-close":e.handleCloseSearchTip},on:{"update:visible":function(t){e.isShowSearchTip=t}}},[i("div",{staticClass:"header-title",attrs:{slot:"title"},slot:"title"},[i("div",{staticClass:"title-flex"},[i("span",{staticClass:"title-icon"},[e._v("!")]),i("span",{staticClass:"title-desc"},[e._v(e._s(e.$t("search.not_support_grammar_tip")))])])]),i("div",{staticClass:"search-table"},[e._l(e.searchTipData[e.searchTipIdx],(function(t,n){return i("div",{key:n,staticClass:"tip-item",style:{width:t.width?t.width+"px":"200px"},on:{click:function(n){return e.handleCompleteGrammar(t)}}},[i("span",[e._v(e._s(t.descText[e.localLanguage]))]),i("span",{staticClass:"grammar-code"},[e._v(e._s(t.grammarCode))])])})),i("div",{staticClass:"change-line"},[i("div",{staticClass:"change-another",on:{click:function(t){return t.stopPropagation(),e.handleChangeAnother(t)}}},[i("svg-icon",{staticClass:"change-icon",attrs:{"icon-class":"refresh_change"}}),i("span",{staticClass:"change-text"},[e._v(e._s(e.$t("search.change_for_another")))])],1)])],2)]),i("AddAsset",{ref:"addAsset",attrs:{data:{},"is-whole":!0,queryGrammar:e.searchList.searchVal}})],1)},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"title"},[n("i",{staticClass:"el-icon-warning warning"}),n("span",[t._v("检索提示")])])}],o=(n("a4d3"),n("99af"),n("4de4"),n("c740"),n("4160"),n("caad"),n("d81d"),n("fb6a"),n("b0c0"),n("4ec9"),n("a9e3"),n("9129"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("2532"),n("3ca3"),n("5319"),n("498a"),n("159b"),n("ddb0"),n("2909")),a=(n("96cf"),n("ade3")),s=n("2f62"),l=n("5e38"),c=n.n(l),u=n("e67d"),h=n.n(u),d=n("e581"),p=n("651f"),f=[[{descText:{zh:"搜ip/网段",en:"search ip/ns"},grammarCode:'ip:""'},{descText:{zh:"搜端口",en:"search port"},grammarCode:'port:""'},{descText:{zh:"搜域名",en:"search domain"},grammarCode:'domain:""'},{descText:{zh:"搜服务",en:"search service"},grammarCode:'service:""'},{descText:{zh:"搜端口响应",en:"search response"},grammarCode:'response:""'},{descText:{zh:"搜产品",en:"search app"},grammarCode:'app:""'}],[{descText:{zh:"搜证书",en:"search cert"},grammarCode:'cert:""'},{descText:{zh:"搜应用类型",en:"search type"},grammarCode:'type:""'},{descText:{zh:"搜自治域归属组织",en:"search org"},grammarCode:'org:""'},{descText:{zh:"搜自治域号码",en:"search asn"},grammarCode:'asn:""'},{descText:{zh:"搜厂商",en:"search vendor"},grammarCode:'vendor:""'},{descText:{zh:"搜应用层级",en:"search level"},grammarCode:'level:""'}],[{descText:{zh:"搜国家（中文）",en:"search chinese country"},grammarCode:'country_cn:""',width:300},{descText:{zh:"搜国家（英文）",en:"search country"},grammarCode:'country:""',width:300},{descText:{zh:"搜省份（中文）",en:"search chinese province"},grammarCode:'province_cn:""',width:300},{descText:{zh:"搜省份（英文）",en:"search province"},grammarCode:'province:""',width:300},{descText:{zh:"搜城市（中文）",en:"search chinese city"},grammarCode:'city_cn:""',width:300},{descText:{zh:"搜城市（英文）",en:"search city"},grammarCode:'city:""',width:300}]],g=n("670e"),m=n("2ef0"),v=n.n(m),y=n("bcfe"),b=n("bb8b"),x=n("cf45"),w=n("bb30"),_=n("6899");function C(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var I={props:{loading:{type:Boolean,default:!1},indices:{type:Array,default:function(){return[]}},searchList:{type:Object,default:function(){}},toolBarComprehensiveConfig:{type:Object,default:function(){}},paginationConfig:{type:Object,default:function(){}},isMobile:{type:Boolean,default:!1}},components:{AddAsset:y["a"],TagLabel:b["default"]},directives:{ClickOutside:h.a},data:function(){return{xss:c.a,xssWhite:new c.a.FilterXSS({whiteList:{span:["style","class"]}}),searchTipData:f,searchTipIdx:0,pageName:this.$route.name,shortcutSwitch:{outside:[],insideOfMore:[]},ipCollectList:[],isShowIpList:!1,fastScanEnable:window.Config&&window.Config.permission&&window.Config.permission.includes("front.query.fast_scan"),dialogVisible:!1,searchTipVisible:this.isShowSearchTip,invalidBracket:"",completeSearchTipGrammar:"",searchHistoryConfig:{historyLoading:!1,isShowHistory:!1,hasRequertSearchHistoryList:!1,searchHistoryList:[],appList:[],certificateList:[],dialogConfig:{title:"",width:"600px",dialogVisible:!1}},filterTagText:"",targetTags:[],hashMapTags:new Map,fullNewDate:!0,isShowRightSide:!1,activeSuggestAppVersions:[],sourceSearchHistory:[],commonSyntax:[{dec:"检索具有特定主体备用名称（SAN）的证书",value:'certificates_subjectAltName=" "'},{dec:"检索具有特定颁发者名称的证书",value:'certificates_issuer=" "'},{dec:"检索具有特定公钥算法的证书",value:'certificates_publicKeyAlgorithm=" "'},{dec:"检索具有特定证书有效期的证书",value:'certificates_notBefore:">=" AND certificates_notAfter:"<="'}],commonSyntaxVisible:!1}},computed:A({},Object(s["e"])("site",["role","userInfo","isShowSearchTip","localLanguage","tagsFilterList","themeClassName"]),{},Object(s["c"])("site",["loginType"]),{enterpriseHeaderStyle:function(){return{color:"theme-dark-green"===this.themeClassName?"#9DA6B2":"#fff",greenColor:"theme-dark-green"===this.themeClassName?"#00AB7A":"#fff"}},isQuakeTippingPoint:function(){return this.searchList.selectIndex===w["d"]},isQuakeCertificate:function(){return this.searchList.selectIndex===w["b"]},getIndexPathName:function(){return"enterprise"===this.loginType&&"searchResult"!==this.pageName&&"imgSearch"!==this.pageName?this.pageName:"home"},judgeIfAllowFnTag:function(){return Object(x["g"])(window.Config)},judgeIfAllDataTag:function(){return Object(x["i"])(window.Config)},suggestTable:function(){return[{label:this.$t("search.result_toolbar.product_name"),key:"product_name",subKey:"product_name",highlight:!0,xss:!0,icon:!0,width:.35},{label:this.$t("search.result_toolbar.vendor_name"),key:"vendor_name",subKey:"vendor_name",highlight:!0,xss:!0,width:.35},{label:this.$t("search.result_toolbar.total_data_count"),key:"ip_count",subKey:"search_count",number:!0,width:.15},{label:this.$t("search.result_toolbar.related_vul_count"),key:"vul_count",subKey:"vul_count",number:!0,width:.15}]},localNumToString:function(){return function(t){return t?t.toLocaleString():0}}}),created:function(){!this.$route.query.latest||!0!==this.$route.query.latest&&"true"!==this.$route.query.latest?!this.$route.query.latest||!1!==this.$route.query.latest&&"false"!==this.$route.query.latest||(this.fullNewDate=!1):this.fullNewDate=!0,this.role&&"searchResult"===this.pageName&&(this.getShortcuts(),this.getIpListRecord()),this.judgeIfAllDataTag&&this.ajaxGetTagsAggregation(),this.initState()},methods:A({},Object(s["b"])("site",["updateUserInfo","toggleMultiDialog","changeIsShowSearchTip","toggleSearchByHands"]),{},Object(s["d"])("site",["SET_TAGS_FILTER_LIST"]),{handleCommandCommonSyntax:function(t){var e=this.searchList.searchVal;this.searchList.searchVal=e?"".concat(e," AND ").concat(t):t},handleCommonSyntaxVisibleChange:function(t){this.commonSyntaxVisible=t},handleSearchAppVersion:function(t,e){this.shutDownHistory(),this.$router.push({name:"searchResult",query:{searchVal:'app: "'.concat(t,'" AND app_version: "').concat(e,'"'),selectIndex:this.searchList.selectIndex,latest:void 0===this.searchList.latest||this.searchList.latest}})},onAddAsset:function(){var t=this.$router.resolve({name:"MonitorAdd",path:"/monitorAdd",query:{show:!1,type:"检索语句",name:this.searchList.searchVal}}),e=t.href;window.open(e,"_blank")},onSearchMore:function(t,e){this.$emit("onSearchMore",t,e)},handleFilterTags:function(t){this._.throttle((function(){var e=t?{tag_name:t.trim()}:{};this.ajaxGetTagsAggregation(e)}),300).call(this)},handleFilterTags1:v.a.throttle((function(t){var e=t?{tag_name:t.trim()}:{};this.ajaxGetTagsAggregation(e)}),300),getTagsHashMap:function(t){if(t&&Array.isArray(t)){var e=new Map;t.forEach((function(t){t.tag_list&&Array.isArray(t.tag_list)&&t.tag_list.length&&t.tag_list.forEach((function(n){e.set(n.id,{id:n.id,tag_name:n.tag_name,tag_type:t.tag_type})}))})),this.hashMapTags=e}},updateTagsFilterList:function(){var t=this,e=this.tagsFilterList.map((function(e){return t.hashMapTags.has(e.id)?t.hashMapTags.get(e.id):e}));this.SET_TAGS_FILTER_LIST(e)},ajaxGetTagsAggregation:function(){var t,e,n=arguments;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},i.next=3,regeneratorRuntime.awrap(Object(d["P"])(t));case 3:e=i.sent,0===e.code&&(this.targetTags=e.data,this.getTagsHashMap(e.data),this.updateTagsFilterList());case 5:case"end":return i.stop()}}),null,this)},getShortcuts:function(){var t,e,n,i,r,o,a=this;return regeneratorRuntime.async((function(s){while(1)switch(s.prev=s.next){case 0:if("searchResult"!==this.pageName||this.isQuakeTippingPoint){s.next=9;break}return t="",e=this.$route.query.selectIndex,"quake_host"===e||"quake_vulnerability"===e?t=e:(n={quake_service:"quake_service_unique",quake_image:"quake_image_unique"},t=this.fullNewDate?n[e]:e),s.next=6,regeneratorRuntime.awrap(Object(d["O"])(t));case 6:i=s.sent,r=i.code,o=i.data,0===r&&(o.forEach((function(t){a.$set(t,"value",!1)})),this.shortcutSwitch.insideOfMore=o.filter((function(t){return t.put_more_tools})),this.shortcutSwitch.outside=o.filter((function(t){return!t.put_more_tools})),this.$route.query&&this.$route.query.shortcuts&&Object.keys(this.shortcutSwitch).forEach((function(t){if("string"===typeof a.$route.query.shortcuts){var e=a.shortcutSwitch[t].findIndex((function(t){return t.id===a.$route.query.shortcuts}));e>=0&&(a.shortcutSwitch[t][e].value=!0)}else a.shortcutSwitch[t].forEach((function(t){a.$route.query.shortcuts.includes(t.id)&&a.$set(t,"value",!0)}))})));case 9:case"end":return s.stop()}}),null,this)},initState:function(){this.completeSearchTipGrammar="",this.markSearchByHands(!1),this.changeIsShowSearchTip(!1)},handleCompleteGrammar:function(t){var e=t.grammarCode,n=void 0===e?"":e;this.searchList.searchVal="".concat(this.searchList.searchVal," AND ").concat(n)},handleChangeAnother:function(){this.searchTipIdx=this.searchTipIdx<this.searchTipData.length-1?this.searchTipIdx+1:0},handleCloseSearchTip:function(){this.changeIsShowSearchTip(!1)},markSearchByHands:function(t){this.toggleSearchByHands(t)},validateSearchVal:function(){if(this.completeSearchTipGrammar="",!this.searchList.searchVal)return!0;var t=this.searchList.searchVal,e=Object(p["c"])(t);return!e||(this.invalidBracket=e,this.dialogVisible=!0,!1)},onSearch:function(){if(this.role<3&&"quake_image"===this.searchList.selectIndex)return!1;if(!this.validateSearchVal())return!1;if("imgSearch"===this.pageName&&this.role<2)return this.searchList.ignore_cache=!1,this.toggleMultiDialog("unVip"),!1;var t=[];return[].concat(Object(o["a"])(this.shortcutSwitch.insideOfMore),Object(o["a"])(this.shortcutSwitch.outside)).forEach((function(e){e.value&&t.push(e.id)})),this.searchList.shortcuts=t,this.searchHistoryConfig.hasRequertSearchHistoryList=!1,this.$emit("onSearch"),!0},onFocus:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:if(this.searchHistoryConfig.isShowHistory=!0,this.searchList.searchVal||!this.role){t.next=6;break}return t.next=4,regeneratorRuntime.awrap(this.getSearchHistory());case 4:t.next=7;break;case 6:this.onInputSearchApp();case 7:case"end":return t.stop()}}),null,this)},shutDownHistory:function(){this.searchHistoryConfig.isShowHistory=!1,this.activeSuggestAppVersions=[]},onBlur:function(){},onInput:v.a.debounce((function(){this.onInputSearchApp()}),300),onInputSearchApp:function(){var t,e,n,i,r,o;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:if(this.searchList.searchVal){a.next=2;break}return a.abrupt("return");case 2:if("quake_service"!==this.searchList.selectIndex){a.next=13;break}return this.searchHistoryConfig.historyLoading=!0,this.searchHistoryConfig.appList=[],a.next=7,regeneratorRuntime.awrap(Object(d["K"])({app_name:this.searchList.searchVal}));case 7:t=a.sent,e=t.code,n=t.data,0===e&&(this.searchHistoryConfig.appList=n),this.searchHistoryConfig.historyLoading=!1,a.next=22;break;case 13:if(!this.isQuakeCertificate){a.next=22;break}return this.searchHistoryConfig.historyLoading=!0,this.searchHistoryConfig.appList=[],a.next=18,regeneratorRuntime.awrap(Object(_["c"])({search_content:this.searchList.searchVal}));case 18:i=a.sent,r=i.code,o=i.data,0===r&&(this.searchHistoryConfig.certificateList=this.formatCertificateAssociation(o)),this.searchHistoryConfig.historyLoading=!1;case 22:case"end":return a.stop()}}),null,this)},formatCertificateAssociation:function(t){var e=[];return Object.keys(t).forEach((function(n){e.push({name:n,value:t[n]})})),e},onSearchCollect:function(t){this.searchList.searchVal='rule:"'.concat(t,'"'),this.searchList.latest=!1,this.$emit("onSearchCollect")},handleSearchSuggest:function(t,e){var n,i,r;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(!this.searchList.selectIndex){o.next=23;break}if(!t){o.next=10;break}if("quake_service"!==this.searchList.selectIndex){o.next=8;break}return o.next=5,regeneratorRuntime.awrap(Object(d["K"])({app_name:t}));case 5:n=o.sent,i=n.code,r=n.data,0===i&&e(r);case 8:o.next=21;break;case 10:if(!this.role){o.next=20;break}if(!this.searchHistoryConfig.hasRequertSearchHistoryList){o.next=15;break}e(this.searchHistoryConfig.searchHistoryList),o.next=18;break;case 15:return o.next=17,regeneratorRuntime.awrap(this.getSearchHistory());case 17:e(this.searchHistoryConfig.searchHistoryList);case 18:o.next=21;break;case 20:e([]);case 21:o.next=24;break;case 23:e([]);case 24:case"end":return o.stop()}}),null,this)},handleExpandOrCollapse:function(t){var e=t.product_name,n=this.activeSuggestAppVersions;n.includes(e)?this.activeSuggestAppVersions=n.filter((function(t){return t!==e})):this.activeSuggestAppVersions.push(e)},handleChangeCollapse:function(){this.activeSuggestAppVersions=[]},handleTriggerCertificateSuggestion:function(t){this.shutDownHistory(),this.$emit("onResetTabChangeStatus"),this.searchList.searchVal="".concat(t.name,': ""')},onTriggerSuggestion:function(t){this.shutDownHistory(),this.$emit("onResetTabChangeStatus"),t.original_index_name?"空行"!==t.original_index_name&&this.$router.push({name:"searchResult",query:{searchVal:t.original_query_string,selectIndex:t.index,latest:void 0===this.searchList.latest||this.searchList.latest}}):this.$router.push({name:"searchResult",query:{searchVal:'app:"'.concat(t.product_name,'"'),selectIndex:this.searchList.selectIndex,latest:void 0===this.searchList.latest||this.searchList.latest}})},updateValidSearchHistory:function(t){var e=this;if(t&&Array.isArray(t)&&t.length){var n=[],i=this.searchList.selectIndex;n=t.filter((function(t){return!0===t.searchable})),n="quake_host"===i?n.filter((function(t){return"主机数据"===t.original_index_name})):"quake_vulnerability"===i?n.filter((function(t){return"漏洞数据"===t.original_index_name})):"quake_tipping_point"===i?n.filter((function(t){return"Tipping Point"===t.original_index_name})):i===w["b"]?n.filter((function(t){return"证书数据"===t.original_index_name})):n.filter((function(t){return"服务数据"===t.original_index_name})),n.forEach((function(t){"主机数据"===t.original_index_name&&e.$set(t,"index","quake_host"),"服务数据"===t.original_index_name&&e.$set(t,"index","quake_service"),"漏洞数据"===t.original_index_name&&e.$set(t,"index","quake_vulnerability"),"Tipping Point"===t.original_index_name&&e.$set(t,"index","quake_tipping_point"),"证书数据"===t.original_index_name&&e.$set(t,"index",w["b"])})),n.length?(n.push({original_index_name:"空行"}),n.length>6&&(n=n.slice(0,6)),this.searchHistoryConfig.searchHistoryList=n):this.searchHistoryConfig.searchHistoryList=[]}else this.searchHistoryConfig.searchHistoryList=[]},resetHasRequertSearchHistoryList:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.searchHistoryConfig.hasRequertSearchHistoryList=t},getSearchHistory:function(){var t,e,n,i,r,o=arguments;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:if(t=o.length>0&&void 0!==o[0]&&o[0],!this.searchHistoryConfig.hasRequertSearchHistoryList||t){a.next=3;break}return a.abrupt("return");case 3:return this.searchHistoryConfig.hasRequertSearchHistoryList=!0,this.searchHistoryConfig.historyLoading=!0,e={size:30,query_type:"Query",collapse:!0,index:["quake_host","quake_service","quake_vulnerability","quake_tipping_point",w["b"]]},a.next=8,regeneratorRuntime.awrap(Object(g["r"])(e));case 8:n=a.sent,i=n.code,r=n.data,0===i&&(this.sourceSearchHistory=r,this.updateValidSearchHistory(this.sourceSearchHistory)),this.searchHistoryConfig.historyLoading=!1;case 12:case"end":return a.stop()}}),null,this)},onCancelDialog:function(){this.searchHistoryConfig.dialogConfig.dialogVisible=!1},onSureDialog:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:if(this.searchHistoryConfig.dialogConfig.dialogVisible=!1,"关闭历史"!==this.searchHistoryConfig.dialogConfig.title){t.next=4;break}return t.next=4,regeneratorRuntime.awrap(this.putUpdateUserInfo(!0));case 4:if("删除历史"!==this.searchHistoryConfig.dialogConfig.title){t.next=9;break}return t.next=7,regeneratorRuntime.awrap(this.putUpdateUserInfo(!0));case 7:return t.next=9,regeneratorRuntime.awrap(this.putUpdateUserInfo(!1));case 9:case"end":return t.stop()}}),null,this)},onTriggerDialog:function(t){"close"===t&&(this.searchHistoryConfig.dialogConfig.title="关闭历史",this.searchHistoryConfig.dialogConfig.dialogVisible=!0),"delete"===t&&(this.searchHistoryConfig.dialogConfig.title="删除历史",this.searchHistoryConfig.dialogConfig.dialogVisible=!0),"more"===t&&this.$router.push({name:"personal",query:{tab:"searchHistory"}})},putUpdateUserInfo:function(t){var e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.searchHistoryConfig.searchHistoryList=[],e={privacy_log:{quake_log_status:t}},r.next=4,regeneratorRuntime.awrap(Object(g["Q"])(e));case 4:n=r.sent,i=n.code,0===i&&t&&(this.$message({type:"success",message:"操作成功!"}),this.userInfo.privacy_log.status=t,this.updateUserInfo(this.userInfo));case 7:case"end":return r.stop()}}),null,this)},onLogin:function(){window.location.href="/quake/login"},onGoMemeber:function(){this.$router.push("/member")},onBackModify:function(){this.toolBarComprehensiveConfig.isShowPermissionTip=!1,this.$refs.input&&this.$refs.input.focus(),this.$refs.input1&&this.$refs.input1.focus()},onClosePermissionTip:function(){this.toolBarComprehensiveConfig.isShowPermissionTip=!1},onRescanIp:function(){this.$emit("onRescanIp")},getIpListRecord:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(Object(g["s"])());case 2:t=i.sent,e=t.code,n=t.data,0===e&&(this.ipCollectList=n);case 5:case"end":return i.stop()}}),null,this)},onTriggerIpList:function(){this.isShowIpList=!this.isShowIpList},hideClickOut:function(){this.isShowIpList=!1},onViewAll:function(){this.$router.push({name:"personal",query:{tab:"subscribe"}})},xssFormater:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?c()(t):t},numberFormater:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?"number"!==typeof Number(t)||Number.isNaN(Number(t))?t:Number(t).toLocaleString():t},highlightFormater:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n){var i=e.toLowerCase(),r=new RegExp("(".concat(i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),")"),"ig");return t.replace(r,"<b>$1</b>")}return t},emptyStringFormater:function(t){return""===t?"-":t},changeSwitch:function(){this.SET_TAGS_FILTER_LIST([]),this.getShortcuts(),this.$emit("changeFullNewDateSwitch",this.fullNewDate)},resetFullNewDateSwitch:function(){this.fullNewDate=!0},resetFullNewDateFalseSwitch:function(){this.fullNewDate=!1}})},S=I,M=(n("fd07"),n("8641"),n("2877")),k=Object(M["a"])(S,i,r,!1,null,"4c2170d6",null);e["a"]=k.exports},e9d2:function(t,e,n){"use strict";n.r(e),n.d(e,"CopyShader",(function(){return i}));var i={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:"\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform float opacity;\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvec4 texel = texture2D( tDiffuse, vUv );\n\t\t\tgl_FragColor = opacity * texel;\n\n\t\t}"}},ea1d:function(t,e,n){"use strict";var i=n("166a"),r=n("e360"),o=n("6730"),a=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},s=n("e317"),l=function(t,e){var n,i={},r={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?i[n]=d(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}},c=n("90ef"),u=n("c698"),h=n("51de"),d=e["a"]=function(t,e){var n,d=typeof e;return null==e||"boolean"===d?Object(u["a"])(e):("number"===d?s["a"]:"string"===d?(n=Object(i["a"])(e))?(e=n,r["a"]):c["a"]:e instanceof i["a"]?r["a"]:e instanceof Date?a:Object(h["b"])(e)?h["a"]:Array.isArray(e)?o["b"]:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?l:s["a"])(t,e)}},eac5:function(t,e,n){var i=n("861d"),r=Math.floor;t.exports=Number.isInteger||function(t){return!i(t)&&isFinite(t)&&r(t)===t}},eb71:function(t,e){t.exports={indexOf:function(t,e){var n,i;if(Array.prototype.indexOf)return t.indexOf(e);for(n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},forEach:function(t,e,n){var i,r;if(Array.prototype.forEach)return t.forEach(e,n);for(i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,n=e.exec(t);return n?n.index:-1}}},eb87:function(t,e,n){"use strict";var i=n("45a9"),r=n.n(i);r.a},ebb5:function(t,e,n){"use strict";var i,r,o,a=n("4b11"),s=n("83ab"),l=n("da84"),c=n("1626"),u=n("861d"),h=n("1a2d"),d=n("f5df"),p=n("0d51"),f=n("9112"),g=n("cb2d"),m=n("edd0"),v=n("3a9b"),y=n("e163"),b=n("d2bb"),x=n("b622"),w=n("90e3"),_=n("69f3"),C=_.enforce,A=_.get,I=l.Int8Array,S=I&&I.prototype,M=l.Uint8ClampedArray,k=M&&M.prototype,E=I&&y(I),T=S&&y(S),O=Object.prototype,P=l.TypeError,j=x("toStringTag"),L=w("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",R=a&&!!b&&"Opera"!==d(l.opera),B=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},z=function(t){if(!u(t))return!1;var e=d(t);return"DataView"===e||h(N,e)||h(F,e)},V=function(t){var e=y(t);if(u(e)){var n=A(e);return n&&h(n,D)?n[D]:V(e)}},G=function(t){if(!u(t))return!1;var e=d(t);return h(N,e)||h(F,e)},H=function(t){if(G(t))return t;throw P("Target is not a typed array")},W=function(t){if(c(t)&&(!b||v(E,t)))return t;throw P(p(t)+" is not a typed array constructor")},U=function(t,e,n,i){if(s){if(n)for(var r in N){var o=l[r];if(o&&h(o.prototype,t))try{delete o.prototype[t]}catch(a){try{o.prototype[t]=e}catch(c){}}}T[t]&&!n||g(T,t,n?e:R&&S[t]||e,i)}},Z=function(t,e,n){var i,r;if(s){if(b){if(n)for(i in N)if(r=l[i],r&&h(r,t))try{delete r[t]}catch(o){}if(E[t]&&!n)return;try{return g(E,t,n?e:R&&E[t]||e)}catch(o){}}for(i in N)r=l[i],!r||r[t]&&!n||g(r,t,e)}};for(i in N)r=l[i],o=r&&r.prototype,o?C(o)[D]=r:R=!1;for(i in F)r=l[i],o=r&&r.prototype,o&&(C(o)[D]=r);if((!R||!c(E)||E===Function.prototype)&&(E=function(){throw P("Incorrect invocation")},R))for(i in N)l[i]&&b(l[i],E);if((!R||!T||T===O)&&(T=E.prototype,R))for(i in N)l[i]&&b(l[i].prototype,T);if(R&&y(k)!==T&&b(k,T),s&&!h(T,j))for(i in B=!0,m(T,j,{configurable:!0,get:function(){return u(this)?this[L]:void 0}}),N)l[i]&&f(l[i],L,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:B&&L,aTypedArray:H,aTypedArrayConstructor:W,exportTypedArrayMethod:U,exportTypedArrayStaticMethod:Z,getTypedArrayConstructor:V,isView:z,isTypedArray:G,TypedArray:E,TypedArrayPrototype:T}},ebda:function(t,e,n){"use strict";var i=n("0acc"),r=n.n(i);r.a},ec15:function(t,e,n){},ecfb:function(t,e,n){"use strict";var i=n("0bd8"),r=n.n(i);r.a},ed58:function(t,e,n){"use strict";var i=n("b24f"),r=n.n(i);r.a},ee78:function(t,e,n){t.exports=n.p+"assets/img/qiyeBanner.24f02ed8.png"},eea8:function(t,e,n){"use strict";var i=n("34c6"),r=n.n(i);r.a},ef20:function(t,e,n){"use strict";n.r(e);var i=function(){var t=0,e=document.createElement("div");function n(t){return e.appendChild(t.dom),t}function r(n){for(var i=0;i<e.children.length;i++)e.children[i].style.display=i===n?"block":"none";t=n}e.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",(function(n){n.preventDefault(),r(++t%e.children.length)}),!1);var o=(performance||Date).now(),a=o,s=0,l=n(new i.Panel("FPS","#0ff","#002")),c=n(new i.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var u=n(new i.Panel("MB","#f08","#201"));return r(0),{REVISION:16,dom:e,addPanel:n,showPanel:r,begin:function(){o=(performance||Date).now()},end:function(){s++;var t=(performance||Date).now();if(c.update(t-o,200),t>=a+1e3&&(l.update(1e3*s/(t-a),100),a=t,s=0,u)){var e=performance.memory;u.update(e.usedJSHeapSize/1048576,e.jsHeapSizeLimit/1048576)}return t},update:function(){o=this.end()},domElement:e,setMode:r}};i.Panel=function(t,e,n){var i=1/0,r=0,o=Math.round,a=o(window.devicePixelRatio||1),s=80*a,l=48*a,c=3*a,u=2*a,h=3*a,d=15*a,p=74*a,f=30*a,g=document.createElement("canvas");g.width=s,g.height=l,g.style.cssText="width:80px;height:48px";var m=g.getContext("2d");return m.font="bold "+9*a+"px Helvetica,Arial,sans-serif",m.textBaseline="top",m.fillStyle=n,m.fillRect(0,0,s,l),m.fillStyle=e,m.fillText(t,c,u),m.fillRect(h,d,p,f),m.fillStyle=n,m.globalAlpha=.9,m.fillRect(h,d,p,f),{dom:g,update:function(l,v){i=Math.min(i,l),r=Math.max(r,l),m.fillStyle=n,m.globalAlpha=1,m.fillRect(0,0,s,d),m.fillStyle=e,m.fillText(o(l)+" "+t+" ("+o(i)+"-"+o(r)+")",c,u),m.drawImage(g,h+a,d,p-a,f,h,d,p-a,f),m.fillRect(h+p-a,d,a,f),m.fillStyle=n,m.globalAlpha=.9,m.fillRect(h+p-a,d,a,o((1-l/v)*f))}}},e["default"]=i},f105:function(t,e,n){"use strict";function i(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},f149:function(t,e,n){"use strict";n.r(e),n.d(e,"ReflectorForSSRPass",(function(){return r}));var i=n("5a89");class r extends i["Mesh"]{constructor(t,e={}){super(t),this.type="ReflectorForSSRPass";const n=this,o=void 0!==e.color?new i["Color"](e.color):new i["Color"](8355711),a=e.textureWidth||512,s=e.textureHeight||512,l=e.clipBias||0,c=e.shader||r.ReflectorShader,u=!0===e.useDepthTexture,h=new i["Vector3"](0,1,0),d=new i["Vector3"],p=new i["Vector3"];n.needsUpdate=!1,n.maxDistance=r.ReflectorShader.uniforms.maxDistance.value,n.opacity=r.ReflectorShader.uniforms.opacity.value,n.color=o,n.resolution=e.resolution||new i["Vector2"](window.innerWidth,window.innerHeight),n._distanceAttenuation=r.ReflectorShader.defines.DISTANCE_ATTENUATION,Object.defineProperty(n,"distanceAttenuation",{get(){return n._distanceAttenuation},set(t){n._distanceAttenuation!==t&&(n._distanceAttenuation=t,n.material.defines.DISTANCE_ATTENUATION=t,n.material.needsUpdate=!0)}}),n._fresnel=r.ReflectorShader.defines.FRESNEL,Object.defineProperty(n,"fresnel",{get(){return n._fresnel},set(t){n._fresnel!==t&&(n._fresnel=t,n.material.defines.FRESNEL=t,n.material.needsUpdate=!0)}});const f=new i["Vector3"],g=new i["Vector3"],m=new i["Vector3"],v=new i["Matrix4"],y=new i["Vector3"](0,0,-1),b=new i["Vector3"],x=new i["Vector3"],w=new i["Matrix4"],_=new i["PerspectiveCamera"];let C;u&&(C=new i["DepthTexture"],C.type=i["UnsignedShortType"],C.minFilter=i["NearestFilter"],C.magFilter=i["NearestFilter"]);const A={minFilter:i["LinearFilter"],magFilter:i["LinearFilter"],format:i["RGBFormat"],depthTexture:u?C:null},I=new i["WebGLRenderTarget"](a,s,A);i["MathUtils"].isPowerOfTwo(a)&&i["MathUtils"].isPowerOfTwo(s)||(I.texture.generateMipmaps=!1);const S=new i["ShaderMaterial"]({transparent:u,defines:Object.assign({},r.ReflectorShader.defines,{useDepthTexture:u}),uniforms:i["UniformsUtils"].clone(c.uniforms),fragmentShader:c.fragmentShader,vertexShader:c.vertexShader});S.uniforms["tDiffuse"].value=I.texture,S.uniforms["color"].value=n.color,S.uniforms["textureMatrix"].value=w,u&&(S.uniforms["tDepth"].value=I.depthTexture),this.material=S;const M=new i["Plane"](new i["Vector3"](0,1,0),l),k=[M];this.doRender=function(t,e,i){if(S.uniforms["maxDistance"].value=n.maxDistance,S.uniforms["color"].value=n.color,S.uniforms["opacity"].value=n.opacity,d.copy(i.position).normalize(),p.copy(d).reflect(h),S.uniforms["fresnelCoe"].value=(d.dot(p)+1)/2,g.setFromMatrixPosition(n.matrixWorld),m.setFromMatrixPosition(i.matrixWorld),v.extractRotation(n.matrixWorld),f.set(0,0,1),f.applyMatrix4(v),b.subVectors(g,m),b.dot(f)>0)return;b.reflect(f).negate(),b.add(g),v.extractRotation(i.matrixWorld),y.set(0,0,-1),y.applyMatrix4(v),y.add(m),x.subVectors(g,y),x.reflect(f).negate(),x.add(g),_.position.copy(b),_.up.set(0,1,0),_.up.applyMatrix4(v),_.up.reflect(f),_.lookAt(x),_.far=i.far,_.updateMatrixWorld(),_.projectionMatrix.copy(i.projectionMatrix),S.uniforms["virtualCameraNear"].value=i.near,S.uniforms["virtualCameraFar"].value=i.far,S.uniforms["virtualCameraMatrixWorld"].value=_.matrixWorld,S.uniforms["virtualCameraProjectionMatrix"].value=i.projectionMatrix,S.uniforms["virtualCameraProjectionMatrixInverse"].value=i.projectionMatrixInverse,S.uniforms["resolution"].value=n.resolution,w.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),w.multiply(_.projectionMatrix),w.multiply(_.matrixWorldInverse),w.multiply(n.matrixWorld),I.texture.encoding=t.outputEncoding;const r=t.getRenderTarget(),o=t.xr.enabled,a=t.shadowMap.autoUpdate,s=t.clippingPlanes;t.xr.enabled=!1,t.shadowMap.autoUpdate=!1,t.clippingPlanes=k,t.setRenderTarget(I),t.state.buffers.depth.setMask(!0),!1===t.autoClear&&t.clear(),t.render(e,_),t.xr.enabled=o,t.shadowMap.autoUpdate=a,t.clippingPlanes=s,t.setRenderTarget(r);const l=i.viewport;void 0!==l&&t.state.viewport(l)},this.getRenderTarget=function(){return I}}}r.prototype.isReflectorForSSRPass=!0,r.ReflectorShader={defines:{DISTANCE_ATTENUATION:!0,FRESNEL:!0},uniforms:{color:{value:null},tDiffuse:{value:null},tDepth:{value:null},textureMatrix:{value:new i["Matrix4"]},maxDistance:{value:180},opacity:{value:.5},fresnelCoe:{value:null},virtualCameraNear:{value:null},virtualCameraFar:{value:null},virtualCameraProjectionMatrix:{value:new i["Matrix4"]},virtualCameraMatrixWorld:{value:new i["Matrix4"]},virtualCameraProjectionMatrixInverse:{value:new i["Matrix4"]},resolution:{value:new i["Vector2"]}},vertexShader:"\n\t\tuniform mat4 textureMatrix;\n\t\tvarying vec4 vUv;\n\n\t\tvoid main() {\n\n\t\t\tvUv = textureMatrix * vec4( position, 1.0 );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\t\tuniform vec3 color;\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform sampler2D tDepth;\n\t\tuniform float maxDistance;\n\t\tuniform float opacity;\n\t\tuniform float fresnelCoe;\n\t\tuniform float virtualCameraNear;\n\t\tuniform float virtualCameraFar;\n\t\tuniform mat4 virtualCameraProjectionMatrix;\n\t\tuniform mat4 virtualCameraProjectionMatrixInverse;\n\t\tuniform mat4 virtualCameraMatrixWorld;\n\t\tuniform vec2 resolution;\n\t\tvarying vec4 vUv;\n\t\t#include <packing>\n\t\tfloat blendOverlay( float base, float blend ) {\n\t\t\treturn( base < 0.5 ? ( 2.0 * base * blend ) : ( 1.0 - 2.0 * ( 1.0 - base ) * ( 1.0 - blend ) ) );\n\t\t}\n\t\tvec3 blendOverlay( vec3 base, vec3 blend ) {\n\t\t\treturn vec3( blendOverlay( base.r, blend.r ), blendOverlay( base.g, blend.g ), blendOverlay( base.b, blend.b ) );\n\t\t}\n\t\tfloat getDepth( const in vec2 uv ) {\n\t\t\treturn texture2D( tDepth, uv ).x;\n\t\t}\n\t\tfloat getViewZ( const in float depth ) {\n\t\t\treturn perspectiveDepthToViewZ( depth, virtualCameraNear, virtualCameraFar );\n\t\t}\n\t\tvec3 getViewPosition( const in vec2 uv, const in float depth/*clip space*/, const in float clipW ) {\n\t\t\tvec4 clipPosition = vec4( ( vec3( uv, depth ) - 0.5 ) * 2.0, 1.0 );//ndc\n\t\t\tclipPosition *= clipW; //clip\n\t\t\treturn ( virtualCameraProjectionMatrixInverse * clipPosition ).xyz;//view\n\t\t}\n\t\tvoid main() {\n\t\t\tvec4 base = texture2DProj( tDiffuse, vUv );\n\t\t\t#ifdef useDepthTexture\n\t\t\t\tvec2 uv=(gl_FragCoord.xy-.5)/resolution.xy;\n\t\t\t\tuv.x=1.-uv.x;\n\t\t\t\tfloat depth = texture2DProj( tDepth, vUv ).r;\n\t\t\t\tfloat viewZ = getViewZ( depth );\n\t\t\t\tfloat clipW = virtualCameraProjectionMatrix[2][3] * viewZ+virtualCameraProjectionMatrix[3][3];\n\t\t\t\tvec3 viewPosition=getViewPosition( uv, depth, clipW );\n\t\t\t\tvec3 worldPosition=(virtualCameraMatrixWorld*vec4(viewPosition,1)).xyz;\n\t\t\t\tif(worldPosition.y>maxDistance) discard;\n\t\t\t\tfloat op=opacity;\n\t\t\t\t#ifdef DISTANCE_ATTENUATION\n\t\t\t\t\tfloat ratio=1.-(worldPosition.y/maxDistance);\n\t\t\t\t\tfloat attenuation=ratio*ratio;\n\t\t\t\t\top=opacity*attenuation;\n\t\t\t\t#endif\n\t\t\t\t#ifdef FRESNEL\n\t\t\t\t\top*=fresnelCoe;\n\t\t\t\t#endif\n\t\t\t\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), op );\n\t\t\t#else\n\t\t\t\tgl_FragColor = vec4( blendOverlay( base.rgb, color ), 1.0 );\n\t\t\t#endif\n\t\t}\n\t"}},f183:function(t,e,n){var i=n("23e7"),r=n("e330"),o=n("d012"),a=n("861d"),s=n("1a2d"),l=n("9bf2").f,c=n("241c"),u=n("057f"),h=n("4fad"),d=n("90e3"),p=n("bb2f"),f=!1,g=d("meta"),m=0,v=function(t){l(t,g,{value:{objectID:"O"+m++,weakData:{}}})},y=function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,g)){if(!h(t))return"F";if(!e)return"E";v(t)}return t[g].objectID},b=function(t,e){if(!s(t,g)){if(!h(t))return!0;if(!e)return!1;v(t)}return t[g].weakData},x=function(t){return p&&f&&h(t)&&!s(t,g)&&v(t),t},w=function(){_.enable=function(){},f=!0;var t=c.f,e=r([].splice),n={};n[g]=1,t(n).length&&(c.f=function(n){for(var i=t(n),r=0,o=i.length;r<o;r++)if(i[r]===g){e(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},_=t.exports={enable:w,fastKey:y,getWeakData:b,onFreeze:x};o[g]=!0},f1bf:function(t,e,n){},f1d9:function(t){t.exports=JSON.parse('{"name":"@antv/g-svg","version":"0.4.7","description":"A canvas library which providing 2d","main":"lib/index.js","module":"esm/index.js","unpkg":"dist/g.min.js","types":"lib/index.d.ts","files":["package.json","esm","lib","dist","LICENSE","README.md"],"scripts":{"build":"npm run clean && run-p build:*","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","build:umd":"webpack --config webpack.config.js --mode production","clean":"rm -rf esm lib dist","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage","test":"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts","tsc":"tsc --noEmit","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/antvis/g.git"},"keywords":["util","antv","g"],"publishConfig":{"access":"public"},"author":"https://github.com/orgs/antvis/people","license":"ISC","bugs":{"url":"https://github.com/antvis/g/issues"},"devDependencies":{"@antv/torch":"^1.0.0","less":"^3.9.0","npm-run-all":"^4.1.5","webpack":"^4.39.3","webpack-cli":"^3.3.7"},"homepage":"https://github.com/antvis/g#readme","dependencies":{"@antv/g-base":"^0.4.7","@antv/g-math":"^0.1.3","@antv/util":"~2.0.0","detect-browser":"^4.6.0"},"__npminstall_done":false,"gitHead":"eb6a2503cb7bb8154697592b10680939d954a31a"}')},f1e5:function(t,e,n){"use strict";var i=n("3087"),r=n.n(i);r.a},f2fb:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"default",(function(){return Z})),n.d(i,"assign",(function(){return A})),n.d(i,"format",(function(){return H})),n.d(i,"parse",(function(){return W})),n.d(i,"defaultI18n",(function(){return E})),n.d(i,"setGlobalDateI18n",(function(){return O})),n.d(i,"setGlobalDateMasks",(function(){return G}));var r=n("8937"),o={};function a(t){return o[t]}function s(t,e){o[t]=e}var l=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(r["assign"])(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(r["map"])(this.ticks,(function(e,n){return Object(r["isObject"])(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return Object(r["isNil"])(i)||!Object(r["isFunction"])(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(r["assign"])(this,this.__cfg__),this.setDomain(),Object(r["isEmpty"])(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(r["isString"])(t)){var n=a(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(r["isFunction"])(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return Object(r["head"])(this.range)},t.prototype.rangeMax=function(){return Object(r["last"])(this.range)},t.prototype.calcPercent=function(t,e,n){return Object(r["isNumber"])(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),c=l,u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},u(t,e)};function h(t,e){function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function d(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}Object.create;var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return h(e,t),e.prototype.translate=function(t){var e=Object(r["indexOf"])(this.values,t);return-1===e?Object(r["isNumber"])(t)?t:NaN:e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),i=Math.round(e*n)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=e;return Object(r["isNumber"])(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,d([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(r["isNil"])(this.getConfig("min"))&&(this.min=0),Object(r["isNil"])(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}},e}(c),f=p,g=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,m="\\d\\d?",v="\\d\\d",y="\\d{3}",b="\\d{4}",x="[^\\s]+",w=/\[([^]*?)\]/gm;function _(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}var C=function(t){return function(e,n){var i=n[t].map((function(t){return t.toLowerCase()})),r=i.indexOf(e.toLowerCase());return r>-1?r:null}};function A(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o=r[i];for(var a in o)t[a]=o[a]}return t}var I=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],S=["January","February","March","April","May","June","July","August","September","October","November","December"],M=_(S,3),k=_(I,3),E={dayNamesShort:k,dayNames:I,monthNamesShort:M,monthNames:S,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},T=A({},E),O=function(t){return T=A(T,t)},P=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},j=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length<e)t="0"+t;return t},L={D:function(t){return String(t.getDate())},DD:function(t){return j(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return j(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return j(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return j(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return j(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return j(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return j(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return j(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return j(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return j(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return j(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+j(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+j(Math.floor(Math.abs(e)/60),2)+":"+j(Math.abs(e)%60,2)}},D=function(t){return+t-1},R=[null,m],B=[null,x],N=["isPm",x,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],z={D:["day",m],DD:["day",v],Do:["day",m+x,function(t){return parseInt(t,10)}],M:["month",m,D],MM:["month",v,D],YY:["year",v,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",m,void 0,"isPm"],hh:["hour",v,void 0,"isPm"],H:["hour",m],HH:["hour",v],m:["minute",m],mm:["minute",v],s:["second",m],ss:["second",v],YYYY:["year",b],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",v,function(t){return 10*+t}],SSS:["millisecond",y],d:R,dd:R,ddd:B,dddd:B,MMM:["month",x,C("monthNamesShort")],MMMM:["month",x,C("monthNames")],a:N,A:N,ZZ:F,Z:F},V={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},G=function(t){return A(V,t)},H=function(t,e,n){if(void 0===e&&(e=V["default"]),void 0===n&&(n={}),"number"===typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=V[e]||e;var i=[];e=e.replace(w,(function(t,e){return i.push(e),"@@@"}));var r=A(A({},T),n);return e=e.replace(g,(function(e){return L[e](t,r)})),e.replace(/@@@/g,(function(){return i.shift()}))};function W(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=V[e]||e,t.length>1e3)return null;var i=new Date,r={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],a=[],s=e.replace(w,(function(t,e){return a.push(P(e)),"@@@"})),l={},c={};s=P(s).replace(g,(function(t){var e=z[t],n=e[0],i=e[1],r=e[3];if(l[n])throw new Error("Invalid format. "+n+" specified twice in format");return l[n]=!0,r&&(c[r]=!0),o.push(e),"("+i+")"})),Object.keys(c).forEach((function(t){if(!l[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return a.shift()}));var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var h,d=A(A({},T),n),p=1;p<u.length;p++){var f=o[p-1],m=f[0],v=f[2],y=v?v(u[p],d):+u[p];if(null==y)return null;r[m]=y}if(1===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:0===r.isPm&&12===+r.hour&&(r.hour=0),null==r.timezoneOffset){h=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond);for(var b=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],x=(p=0,b.length);p<x;p++)if(l[b[p][0]]&&r[b[p][0]]!==h[b[p][1]]())return null}else if(h=new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond)),r.month>11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return h}var U={format:H,parse:W,defaultI18n:E,setGlobalDateI18n:O,setGlobalDateMasks:G},Z=U,Y=function(t){return function(e,n,i,o){var a=Object(r["isNil"])(i)?0:i,s=Object(r["isNil"])(o)?e.length:o;while(a<s){var l=a+s>>>1;t(e[l])>n?s=l:a=l+1}return a}},X="format";function q(t,e){var n=i[X]||Z[X];return n(t,e)}function K(t){return Object(r["isString"])(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r["isDate"])(t)&&(t=t.getTime()),t}var Q=1e3,J=60*Q,$=60*J,tt=24*$,et=31*tt,nt=365*tt,it=[["HH:mm:ss",Q],["HH:mm:ss",10*Q],["HH:mm:ss",30*Q],["HH:mm",J],["HH:mm",10*J],["HH:mm",30*J],["HH",$],["HH",6*$],["HH",12*$],["YYYY-MM-DD",tt],["YYYY-MM-DD",4*tt],["YYYY-WW",7*tt],["YYYY-MM",et],["YYYY-MM",4*et],["YYYY-MM",6*et],["YYYY",380*tt]];function rt(t,e,n){var i=(e-t)/n,o=Y((function(t){return t[1]}))(it,i)-1,a=it[o];return o<0?a=it[0]:o>=it.length&&(a=Object(r["last"])(it)),a}var ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return h(e,t),e.prototype.translate=function(t){t=K(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(r["isNumber"])(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var i=this.values[n],r=this.formatter;return i=r?r(i,e):q(i,this.mask),i}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(r["each"])(e,(function(t,n){e[n]=K(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(f),at=ot,st=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return h(e,t),e.prototype.scale=function(t){if(Object(r["isNil"])(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),i=this.max,o=this.min;if(i===o)return e;var a=this.getScalePercent(t);return e+a*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(r["head"])(e),i=Object(r["last"])(e);n<this.min&&(this.min=n),i>this.max&&(this.max=i),Object(r["isNil"])(this.minLimit)||(this.min=n),Object(r["isNil"])(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=Object(r["getRange"])(this.values),e=t.min,n=t.max;Object(r["isNil"])(this.min)&&(this.min=e),Object(r["isNil"])(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(r["filter"])(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(c),lt=st,ct=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return h(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(lt),ut=ct;function ht(t,e){var n,i=Math.E;return n=e>=0?Math.pow(i,Math.log(e)/t):-1*Math.pow(i,Math.log(-e)/t),n}function dt(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function pt(t,e,n){Object(r["isNil"])(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r["each"])(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i}var ft=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return h(e,t),e.prototype.invert=function(t){var e,n=this.base,i=dt(n,this.max),r=this.rangeMin(),o=this.rangeMax()-r,a=this.positiveMin;if(a){if(0===t)return 0;e=dt(n,a/n);var s=1/(i-e)*o;if(t<s)return t/s*a}else e=dt(n,this.min);var l=(t-r)/o,c=l*(i-e)+e;return Math.pow(n,c)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=pt(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var i,r=this.base,o=this.positiveMin;return o&&(n=1*o/r),i=t<o?t/o/(dt(r,e)-dt(r,n)):(dt(r,t)-dt(r,n))/(dt(r,e)-dt(r,n)),i},e}(lt),gt=ft,mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return h(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,i=ht(n,this.max),r=ht(n,this.min),o=e*(i-r)+r,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var i=this.exponent,r=(ht(i,t)-ht(i,n))/(ht(i,e)-ht(i,n));return r},e}(lt),vt=mt,yt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return h(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):q(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(r["isString"])(n)||Object(r["isDate"])(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return K(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(r["isNil"])(e)&&Object(r["isNumber"])(e)||(this.min=this.translate(this.min)),Object(r["isNil"])(n)&&Object(r["isNumber"])(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],o=1/0,a=o,s=0;Object(r["each"])(t,(function(t){var e=K(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),s<e&&(s=e),i.push(e)})),t.length>1&&(this.minTickInterval=a-o),Object(r["isNil"])(e)&&(this.min=o),Object(r["isNil"])(n)&&(this.max=s)}},e}(ut),bt=yt,xt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return h(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),o=Math.floor(i*(n-1));if(o>=n-1)return Object(r["last"])(e);if(o<0)return Object(r["head"])(e);var a=e[o],s=e[o+1],l=o/(n-1),c=(o+1)/(n-1);return a+(i-l)/(c-l)*(s-a)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(r["last"])(e)!==this.max&&e.push(this.max),Object(r["head"])(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(r["head"])(e))return 0;if(t>Object(r["last"])(e))return 1;var n=0;return Object(r["each"])(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(lt),wt=xt,_t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return h(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(wt),Ct=_t,At={};function It(t){return At[t]}function St(t,e){if(It(t))throw new Error("type '"+t+"' existed.");At[t]=e}var Mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return h(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(r["isNumber"])(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(c),kt=Mt,Et=[1,5,2,2.5,4,3],Tt=100*Number.EPSILON;function Ot(t,e){return(t%e+e)%e}function Pt(t,e,n,i,o,a){var s=Object(r["size"])(e),l=Object(r["indexOf"])(e,t),c=0,u=Ot(i,a);return(u<Tt||a-u<Tt)&&i<=0&&o>=0&&(c=1),1-l/(s-1)-n+c}function jt(t,e,n){var i=Object(r["size"])(e),o=Object(r["indexOf"])(e,t),a=1;return 1-o/(i-1)-n+a}function Lt(t,e,n,i,r,o){var a=(t-1)/(o-r),s=(e-1)/(Math.max(o,i)-Math.min(n,r));return 2-Math.max(a/s,s/a)}function Dt(t,e){return t>=e?2-(t-1)/(e-1):1}function Rt(t,e,n,i){var r=e-t;return 1-.5*(Math.pow(e-i,2)+Math.pow(t-n,2))/Math.pow(.1*r,2)}function Bt(t,e,n){var i=e-t;if(n>i){var r=(n-i)/2;return 1-Math.pow(r,2)/Math.pow(.1*i,2)}return 1}function Nt(){return 1}function Ft(t,e,n,i,o,a){if(void 0===n&&(n=5),void 0===i&&(i=!0),void 0===o&&(o=Et),void 0===a&&(a=[.25,.2,.5,.05]),t===e||1===n)return{min:t,max:e,ticks:[t]};var s={score:-2,lmin:0,lmax:0,lstep:0},l=1;while(l<1/0){for(var c=0,u=o;c<u.length;c++){var h=u[c],d=jt(h,o,l);if(Number.isNaN(d))throw new Error("NaN");if(a[0]*d+a[1]+a[2]+a[3]<s.score){l=1/0;break}var p=2;while(p<1/0){var f=Dt(p,n);if(a[0]*d+a[1]+a[2]*f+a[3]<s.score)break;var g=(e-t)/(p+1)/l/h,m=Math.ceil(Math.log10(g));while(m<1/0){var v=l*h*Math.pow(10,m),y=Bt(t,e,v*(p-1));if(a[0]*d+a[1]*y+a[2]*f+a[3]<s.score)break;var b=Math.floor(e/v)*l-(p-1)*l,x=Math.ceil(t/v)*l;if(b>x)m+=1;else{for(var w=b;w<=x;w+=1){var _=w*(v/l),C=_+v*(p-1),A=v,I=Pt(h,o,l,_,C,A),S=Rt(t,e,_,C),M=Lt(p,n,t,e,_,C),k=Nt(),E=a[0]*I+a[1]*S+a[2]*M+a[3]*k;E>s.score&&(!i||_<=t&&C>=e)&&(s.lmin=_,s.lmax=C,s.lstep=A,s.score=E)}m+=1}}p+=1}}l+=1}for(var T=Number.isInteger(s.lstep)?0:Math.ceil(Math.abs(Math.log10(s.lstep))),O=[],P=s.lmin;P<=s.lmax;P+=s.lstep)O.push(P);var j=T?Object(r["map"])(O,(function(t){return Number.parseFloat(t.toFixed(T))})):O;return{min:Math.min(t,Object(r["head"])(j)),max:Math.max(e,Object(r["last"])(j)),ticks:j}}function zt(t){var e=t.values,n=t.tickInterval,i=t.tickCount,o=e;if(Object(r["isNumber"])(n))return Object(r["filter"])(o,(function(t,e){return e%n===0}));var a=t.min,s=t.max;if(Object(r["isNil"])(a)&&(a=0),Object(r["isNil"])(s)&&(s=e.length-1),Object(r["isNumber"])(i)&&i<s-a){var l=Ft(a,s,i,!1,[1,2,5,3,4,7,6,8,9]).ticks,c=Object(r["filter"])(l,(function(t){return t>=a&&t<=s}));return c.map((function(t){return e[t]}))}return e.slice(a,s+1)}function Vt(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,o=new Zt;return o.domain([e,n]),i&&o.nice(r),o.ticks(r)}var Gt=5,Ht=Math.sqrt(50),Wt=Math.sqrt(10),Ut=Math.sqrt(2),Zt=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=Gt);var i,r=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],l=this._domain[a];return l<s&&(e=[l,s],s=e[0],l=e[1],n=[a,o],o=n[0],a=n[1]),i=Xt(s,l,t),i>0?(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,i=Xt(s,l,t)):i<0&&(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,i=Xt(s,l,t)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(l/i)*i,this.domain(r)):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(l*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=Gt),Yt(this._domain[0],this._domain[this._domain.length-1],t||Gt)},t}();function Yt(t,e,n){var i,r,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=Xt(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(r=Math.ceil(e-t+1));while(++s<r)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(r=Math.ceil(t-e+1));while(++s<r)o[s]=(t-s)/a}return i&&o.reverse(),o}function Xt(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=Ht?10:o>=Wt?5:o>=Ut?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=Ht?10:o>=Wt?5:o>=Ut?2:1)}function qt(t,e,n){var i;return i="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e),i*e}function Kt(t,e,n){var i=qt(t,n,"floor"),o=qt(e,n,"ceil");i=Object(r["fixedBase"])(i,n),o=Object(r["fixedBase"])(o,n);for(var a=[],s=i;s<=o;s+=n){var l=Object(r["fixedBase"])(s,n);a.push(l)}return{min:i,max:o,ticks:a}}function Qt(t,e,n){var i,o=t.minLimit,a=t.maxLimit,s=t.min,l=t.max,c=t.tickCount,u=void 0===c?5:c,h=Object(r["isNil"])(o)?Object(r["isNil"])(e)?s:e:o,d=Object(r["isNil"])(a)?Object(r["isNil"])(n)?l:n:a;if(h>d&&(i=[h,d],d=i[0],h=i[1]),u<=2)return[h,d];for(var p=(d-h)/(u-1),f=[],g=0;g<u;g++)f.push(h+p*g);return f}function Jt(t){var e=t.min,n=t.max,i=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=Vt(t);return Object(r["isNil"])(o)&&Object(r["isNil"])(a)?i?Kt(e,n,i).ticks:s:Qt(t,Object(r["head"])(s),Object(r["last"])(s))}function $t(t){var e=t.min,n=t.max,i=t.tickCount,o=t.nice,a=t.tickInterval,s=t.minLimit,l=t.maxLimit,c=Ft(e,n,i,o).ticks;return Object(r["isNil"])(s)&&Object(r["isNil"])(l)?a?Kt(e,n,a).ticks:c:Qt(t,Object(r["head"])(c),Object(r["last"])(c))}function te(t){var e,n=t.base,i=t.tickCount,r=t.min,o=t.max,a=t.values,s=dt(n,o);if(r>0)e=Math.floor(dt(n,r));else{var l=pt(a,n,o);e=Math.floor(dt(n,l))}for(var c=s-e,u=Math.ceil(c/i),h=[],d=e;d<s+u;d+=u)h.push(Math.pow(n,d));return r<=0&&h.unshift(0),h}function ee(t,e,n){void 0===n&&(n=5);var i={max:0,min:0,ticks:[]},r=1.5,o=.5+1.5*r,a=e-t,s=a/n,l=Math.pow(10,Math.floor(Math.log10(s))),c=l<1?Math.ceil(Math.abs(Math.log10(l))):0,u=l;2*l-s<r*(s-u)&&(u=2*l,5*l-s<o*(s-u)&&(u=5*l,10*l-s<r*(s-u)&&(u=10*l)));var h=Math.ceil(e/u),d=Math.floor(t/u);i.max=Math.max(h*u,e),i.min=Math.min(d*u,t);var p=Number.parseFloat((d*u).toFixed(c));while(p<e)i.ticks.push(p),p+=u,c&&(p=Number.parseFloat(p.toFixed(c)));return i.ticks.push(p),i}function ne(t){var e=t.exponent,n=t.tickCount,i=Math.ceil(ht(e,t.max)),r=Math.floor(ht(e,t.min)),o=ee(r,i,n).ticks;return o.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}function ie(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function re(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),r=[],o=0;o<e;o++){var a=o/(e-1);r.push(ie(i,a))}return r}function oe(t){var e=t.min,n=t.max,i=t.tickCount,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,l=ee(e,n,i).ticks;return Object(r["isNil"])(a)&&Object(r["isNil"])(s)?o?Kt(e,n,o).ticks:l:Qt(t,Object(r["head"])(l),Object(r["last"])(l))}function ae(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,o=t.tickCount;if(r)o=Math.ceil((n-e)/r);else{r=rt(e,n,o)[1];var a=(n-e)/r,s=a/o;s>1&&(r*=Math.ceil(s)),i&&r<i&&(r=i)}for(var l=[],c=e;c<n+r;c+=r)l.push(c);return l}function se(t){var e=zt(t),n=Object(r["last"])(t.values);return n!==Object(r["last"])(e)&&e.push(n),e}function le(t){return new Date(t).getFullYear()}function ce(t){return new Date(t,0,1).getTime()}function ue(t){return new Date(t).getMonth()}function he(t,e){var n=le(t),i=le(e),r=ue(t),o=ue(e);return 12*(i-n)+(o-r)%12}function de(t,e){return new Date(t,e,1).getTime()}function pe(t,e){return Math.ceil((e-t)/tt)}function fe(t,e){return Math.ceil((e-t)/$)}function ge(t,e){return Math.ceil((e-t)/6e4)}function me(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,o=t.tickCount,a=[];r||(r=(n-e)/o,i&&r<i&&(r=i));var s=le(e);if(r>nt)for(var l=le(n),c=Math.ceil(r/nt),u=s;u<=l+c;u+=c)a.push(ce(u));else if(r>et){var h=Math.ceil(r/et),d=ue(e),p=he(e,n);for(u=0;u<=p+h;u+=h)a.push(de(s,u+d))}else if(r>tt){var f=new Date(e),g=f.getFullYear(),m=f.getMonth(),v=f.getDate(),y=Math.ceil(r/tt),b=pe(e,n);for(u=0;u<b+y;u+=y)a.push(new Date(g,m,v+u).getTime())}else if(r>$){f=new Date(e),g=f.getFullYear(),m=f.getMonth(),y=f.getDate();var x=f.getHours(),w=Math.ceil(r/$),_=fe(e,n);for(u=0;u<=_+w;u+=w)a.push(new Date(g,m,y,x+u).getTime())}else if(r>J){var C=ge(e,n),A=Math.ceil(r/J);for(u=0;u<=C+A;u+=A)a.push(e+u*J)}else{var I=r;I<Q&&(I=Q);var S=Math.floor(e/Q)*Q,M=Math.ceil((n-e)/Q),k=Math.ceil(I/Q);for(u=0;u<M+k;u+=k)a.push(S+u*Q)}return a}s("cat",zt),s("time-cat",se),s("wilkinson-extended",$t),s("r-pretty",oe),s("time",ae),s("time-pretty",me),s("log",te),s("pow",ne),s("quantile",re),s("d3-linear",Jt),n.d(e,"Category",(function(){return f})),n.d(e,"Identity",(function(){return kt})),n.d(e,"Linear",(function(){return ut})),n.d(e,"Log",(function(){return gt})),n.d(e,"Pow",(function(){return vt})),n.d(e,"Time",(function(){return bt})),n.d(e,"TimeCat",(function(){return at})),n.d(e,"Quantile",(function(){return Ct})),n.d(e,"Quantize",(function(){return wt})),n.d(e,"Scale",(function(){return c})),n.d(e,"getScale",(function(){return It})),n.d(e,"registerScale",(function(){return St})),n.d(e,"getTickMethod",(function(){return a})),n.d(e,"registerTickMethod",(function(){return s})),St("cat",f),St("category",f),St("identity",kt),St("linear",ut),St("log",gt),St("pow",vt),St("time",bt),St("timeCat",at),St("quantize",wt),St("quantile",Ct)},f3f4:function(t,e,n){"use strict";n.r(e);var i={};n.r(i),n.d(i,"Line",(function(){return Jn})),n.d(i,"Text",(function(){return ti})),n.d(i,"Arc",(function(){return ni})),n.d(i,"Region",(function(){return ri})),n.d(i,"Image",(function(){return ai})),n.d(i,"DataMarker",(function(){return li})),n.d(i,"DataRegion",(function(){return ui})),n.d(i,"RegionFilter",(function(){return di}));var r={};n.r(r),n.d(r,"getDefault",(function(){return vi})),n.d(r,"ellipsisHead",(function(){return yi})),n.d(r,"ellipsisTail",(function(){return bi})),n.d(r,"ellipsisMiddle",(function(){return xi}));var o={};n.r(o),n.d(o,"getDefault",(function(){return Ai})),n.d(o,"reserveFirst",(function(){return Ii})),n.d(o,"reserveLast",(function(){return Si})),n.d(o,"reserveBoth",(function(){return Mi})),n.d(o,"equidistance",(function(){return ki}));var a={};n.r(a),n.d(a,"getDefault",(function(){return Oi})),n.d(a,"fixedAngle",(function(){return Pi})),n.d(a,"unfixedAngle",(function(){return ji}));var s={};n.r(s),n.d(s,"autoHide",(function(){return o})),n.d(s,"autoRotate",(function(){return a})),n.d(s,"autoEllipsis",(function(){return r}));var l={};n.r(l),n.d(l,"Line",(function(){return Ri})),n.d(l,"Circle",(function(){return Ni})),n.d(l,"Base",(function(){return gi}));var c={};n.r(c),n.d(c,"Line",(function(){return Gi})),n.d(c,"Circle",(function(){return Wi})),n.d(c,"Base",(function(){return zi})),n.d(c,"Html",(function(){return Ji}));var u={};n.r(u),n.d(u,"Base",(function(){return tr})),n.d(u,"Circle",(function(){return rr})),n.d(u,"Line",(function(){return ar}));var h={};n.r(h),n.d(h,"Category",(function(){return ur})),n.d(h,"Continuous",(function(){return fr})),n.d(h,"Base",(function(){return lr}));var d={};n.r(d),n.d(d,"CONTAINER_CLASS",(function(){return gr})),n.d(d,"TITLE_CLASS",(function(){return mr})),n.d(d,"LIST_CLASS",(function(){return vr})),n.d(d,"LIST_ITEM_CLASS",(function(){return yr})),n.d(d,"MARKER_CLASS",(function(){return br})),n.d(d,"VALUE_CLASS",(function(){return xr})),n.d(d,"NAME_CLASS",(function(){return wr})),n.d(d,"CROSSHAIR_X",(function(){return _r})),n.d(d,"CROSSHAIR_Y",(function(){return Cr}));var p={};n.r(p),n.d(p,"Html",(function(){return Tr}));var f={};n.r(f),n.d(f,"Base",(function(){return gc})),n.d(f,"Circle",(function(){return vc})),n.d(f,"Dom",(function(){return bc})),n.d(f,"Ellipse",(function(){return wc})),n.d(f,"Image",(function(){return Cc})),n.d(f,"Line",(function(){return Mc})),n.d(f,"Marker",(function(){return Oc})),n.d(f,"Path",(function(){return jc})),n.d(f,"Polygon",(function(){return Dc})),n.d(f,"Polyline",(function(){return Fc})),n.d(f,"Rect",(function(){return Gc})),n.d(f,"Text",(function(){return qc}));var g={};n.r(g),n.d(g,"version",(function(){return xu})),n.d(g,"Event",(function(){return fe["e"]})),n.d(g,"Canvas",(function(){return yu})),n.d(g,"Group",(function(){return dc})),n.d(g,"Shape",(function(){return f}));var m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"search-wrapper"},[n("el-row",{staticClass:"tool-container",attrs:{type:"flex",justify:"center"}},[n("el-col",{attrs:{span:22}},["enterprise"!==t.loginType?n("div",{staticClass:"select-container"},t._l(t.indices,(function(e,i){return n("span",{key:i,staticClass:"item",class:{active:t.searchList.selectIndex===e.name},on:{click:function(n){return t.onChangeSelectType(e.name,e)}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":t.iconMapping[e.name]}}),n("span",[t._v(t._s(t.$t("search."+e.display)))])],1)})),0):t._e(),n("ResultToolBar",{ref:"toolBar",style:{"margin-top":"enterprise"===t.loginType?"20px":0},attrs:{loading:t.loading,searchList:t.searchList,toolBarComprehensiveConfig:t.toolBarComprehensiveConfig,paginationConfig:t.paginationConfig},on:{onSearchCollect:t.onSearchCollect,onSearchMore:t.onSearchMore,onSearch:t.onSearch,onRescanIp:t.onRescanIp,onResetTabChangeStatus:t.onResetTabChangeStatus,changeFullNewDateSwitch:t.changeFullNewDateSwitch},scopedSlots:t._u([{key:"favicon",fn:function(){return[!t.role||t.isQuakeCertificate||t.isQuakeTippingPoint?t._e():n("el-tooltip",{attrs:{content:"可对“全量数据”的查询语句收藏订阅。",placement:"top"}},[t.role?n("el-button",{staticClass:"add-collect search-result-donot-click",attrs:{disabled:("quake_service"===t.searchList.selectIndex||"quake_image"===t.searchList.selectIndex)&&t.searchList.latest,type:"text"},on:{click:t.onQueryCollect}},[n("svg-icon",{attrs:{"icon-class":"addIpCollect"}}),t._v(" "+t._s(t.$t("search.collect_query"))+" ")],1):t._e()],1),t.role&&!t.isQuakeCertificate?n("IpListCollect",{attrs:{indices:t.indices,selectIndex:t.searchList.selectIndex,from:"searchResult",data:{ipList:t.searchList.ip_list}},on:{triggerCollect:t.triggerIpListCollect,triggerSearchNow:t.triggerIpListSearchNow}}):t._e(),n("SearchSyntax",{attrs:{selectIndex:t.searchList.selectIndex},on:{onTriggerSyntax:t.onTriggerSyntax}}),"quake_service"===t.searchList.selectIndex||"quake_image"===t.searchList.selectIndex?n("Favicon",{attrs:{from:"searchResult"},on:{onSearchFavicon:t.onSearchFavicon}}):t._e()]},proxy:!0}])})],1)],1),n("el-row",{attrs:{type:"flex",justify:"center"}},[n("el-col",{attrs:{span:22}},["quake_service"===t.searchList.selectIndex||"quake_image"===t.searchList.selectIndex?n("div",[n("RelatedFavicon",{attrs:{timeRange:t.searchList.timeRange,faviconList:t.relationFaviconConfig.faviconList,isRelatedIcon:t.relationFaviconConfig.isRelatedIcon,isShowMoreFavicon:t.relationFaviconConfig.isShowMoreFavicon,faviconLoading:t.relationFaviconConfig.faviconLoading},on:{onSearchFavicon:t.onSearchFavicon,onSearchMoreFavicon:t.onSearchMoreFavicon,"update:faviconList":function(e){return t.$set(t.relationFaviconConfig,"faviconList",e)},"update:favicon-list":function(e){return t.$set(t.relationFaviconConfig,"faviconList",e)},"update:isRelatedIcon":function(e){return t.$set(t.relationFaviconConfig,"isRelatedIcon",e)},"update:is-related-icon":function(e){return t.$set(t.relationFaviconConfig,"isRelatedIcon",e)},"update:isShowMoreFavicon":function(e){return t.$set(t.relationFaviconConfig,"isShowMoreFavicon",e)},"update:is-show-more-favicon":function(e){return t.$set(t.relationFaviconConfig,"isShowMoreFavicon",e)},"update:faviconLoading":function(e){return t.$set(t.relationFaviconConfig,"faviconLoading",e)},"update:favicon-loading":function(e){return t.$set(t.relationFaviconConfig,"faviconLoading",e)}}}),n("TagFilterCondition",{on:{closeTag:t.closeTag,onSearch:t.onSearch}})],1):t._e(),t.isQuakeTippingPoint?n("div",{staticClass:"inform-label"},[n("span",[t._v("情报标签")]),n("el-checkbox",{attrs:{indeterminate:t.isInformationTagIndeterminate},on:{change:t.handleInformationTagCheckAllChange},model:{value:t.informationTagCheckAll,callback:function(e){t.informationTagCheckAll=e},expression:"informationTagCheckAll"}},[t._v("全选")]),n("el-checkbox-group",{staticClass:"inform-label-group",on:{change:t.handleInformationTagCheckedChange},model:{value:t.checkedInformationTag,callback:function(e){t.checkedInformationTag=e},expression:"checkedInformationTag"}},t._l(t.informationTagOptions,(function(e){return n("el-checkbox",{key:e.id,attrs:{label:e}},[t._v(t._s(e.name))])})),1)],1):t._e(),n("div",{staticClass:"content-container"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.leftLoading,expression:"leftLoading"}],staticClass:"left",style:{height:t.leftLoading?"256px":"auto",minWidth:"traceroute"===t.tabMenuConfig.activeName?"350px":""}},["quake_service"!==t.searchList.selectIndex&&"quake_image"!==t.searchList.selectIndex||"traceroute"!==t.tabMenuConfig.activeName?t.isQuakeTippingPoint?n("div",{staticClass:"tipping-point-aggregations"},[n("div",{staticClass:"q-tabs"},[n("div",{staticClass:"q-tabs-item",class:{active:"RecentHot"===t.tippingPointActiveTab},on:{click:function(e){return t.handleChangeTippingPointActive("RecentHot")}}},[t._v("近期热点")]),n("div",{staticClass:"q-tabs-item",class:{active:"ServiceFeature"===t.tippingPointActiveTab},on:{click:function(e){return t.handleChangeTippingPointActive("ServiceFeature")}}},[t._v("服务特征")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:"RecentHot"===t.tippingPointActiveTab,expression:"tippingPointActiveTab === 'RecentHot'"}],staticClass:"recent-hot"},t._l(t.tippingPointRecentHot,(function(e){return n("div",{key:e.id,staticClass:"recent-hot-item"},[n("span",{staticStyle:{cursor:"pointer"},on:{click:function(n){return t.onSearchByQueryString(e.query_string)}}},[t._v(t._s(e.name))])])})),0),n("Aggregations",{directives:[{name:"show",rawName:"v-show",value:"ServiceFeature"===t.tippingPointActiveTab,expression:"tippingPointActiveTab === 'ServiceFeature'"}],ref:"aggregationsRef",attrs:{leftLoading:t.leftLoading,selectIndex:t.searchList.selectIndex,activeName:t.tabMenuConfig.activeName,aggregationsSingleLoading:t.aggregationsSingleLoading,aggregationsSingleKey:t.aggregationsSingleKey,aggregationsListLabel:t.aggregationsListLabel,aggregationsData:t.aggregationsData,analysisAggregationsData:t.analysisConfig.analysisAggregationsData},on:{onSearchMore:t.onSearchMore,onSelectAmount:t.onSelectAmount,triggerPostAggregationsList:t.triggerPostAggregationsList}})],1):n("Aggregations",{ref:"aggregationsRef",attrs:{leftLoading:t.leftLoading,selectIndex:t.searchList.selectIndex,activeName:t.tabMenuConfig.activeName,aggregationsSingleLoading:t.aggregationsSingleLoading,aggregationsSingleKey:t.aggregationsSingleKey,aggregationsListLabel:t.aggregationsListLabel,aggregationsData:t.aggregationsData,analysisAggregationsData:t.analysisConfig.analysisAggregationsData},on:{onSearchMore:t.onSearchMore,onSelectAmount:t.onSelectAmount,triggerPostAggregationsList:t.triggerPostAggregationsList}}):n("TracerouteDetail",{attrs:{loading:t.tracerouteConfig.tracerouteDetailLoading,baseInfo:t.tracerouteConfig.tracerouteDetail}})],1),n("div",{staticClass:"right"},[n("div",{staticClass:"tab-container"},["quake_service"!==t.searchList.selectIndex&&"quake_image"!==t.searchList.selectIndex&&!t.isQuakeTippingPoint||"all"!==t.tabMenuConfig.activeName?t._e():n("div",{staticClass:"model-box"},[n("span",{class:{active:"normal"===t.dataModel},on:{click:function(e){return t.onChangeDataModel("normal")}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"modalClassic"}}),n("span",[t._v(t._s(t.$t("search.classic_mode")))])],1),n("span",{class:{active:"list"===t.dataModel},on:{click:function(e){return t.onChangeDataModel("list")}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"modalList"}}),n("span",[t._v(t._s(t.$t("search.list_mode.list_mode")))])],1)]),n("div",{staticClass:"tab-box"},["quake_image"===t.searchList.selectIndex&&t.role?n("div",{staticClass:"tab",class:{active:"img"===t.tabMenuConfig.activeName},on:{click:function(e){return t.onChangeTab("img")}}},[t._v(" "+t._s(t.$t("search.search_result"))+" ")]):t._e(),"quake_image"!==t.searchList.selectIndex?n("div",{staticClass:"tab",class:{active:"all"===t.tabMenuConfig.activeName},on:{click:function(e){return t.onChangeTab("all")}}},[t._v(" "+t._s(t.$t("search.search_result"))+" ")]):t._e(),t.isQuakeTippingPoint||t.isQuakeCertificate?t._e():n("div",{staticClass:"tab",class:{active:"statistics"===t.tabMenuConfig.activeName},on:{click:function(e){return t.onChangeTab("statistics")}}},[t._v(t._s(t.$t("search.statistics_chart")))]),"quake_service"!==t.searchList.selectIndex&&"quake_image"!==t.searchList.selectIndex||!t.role?t._e():n("div",{staticClass:"tab",class:{active:"analysis"===t.tabMenuConfig.activeName},on:{click:function(e){return t.onChangeTab("analysis")}}},[t._v(" "+t._s(t.$t("search.cluster_analysis"))+" ")])]),n("div",{staticClass:"picker-box"},[n("el-date-picker",{ref:"picker",staticClass:"date-picker",staticStyle:{width:"240px"},attrs:{type:"daterange","picker-options":t.pickerOptions,"unlink-panels":"",align:"right",clearable:!1,"range-separator":t.$t("global.to"),"start-placeholder":t.$t("global.start_date"),"end-placeholder":t.$t("global.end_date"),"value-format":"yyyy-MM-dd HH:mm:ss","popper-class":"date-picker-popper"},on:{change:t.onChangePickerDate},model:{value:t.searchList.timeRange,callback:function(e){t.$set(t.searchList,"timeRange",e)},expression:"searchList.timeRange"}}),n("div",{staticStyle:{width:"56px","margin-left":"20px",display:"inline-block"}},["quake_image"!==t.searchList.selectIndex||"analysis"===t.tabMenuConfig.activeName?n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onExport(t.tabMenuConfig.activeName)}}},[t._v(" "+t._s(t.$t("search.export"))+" ")]):t._e()],1),t.datePickerMapping[t.datePickerType]?n("div",{staticClass:"date-picker-model",on:{click:t.onPickerModel}},[t._v(t._s(t.$t("search."+t.datePickerMapping[t.datePickerType])))]):t._e(),t.timeRangeEnable?t._e():n("div",{staticClass:"date-picker-model-intercept",on:{click:t.onPickerModel}})],1)]),"img"===t.tabMenuConfig.activeName?n("div",[n("ImgList",{attrs:{loading:t.loading,searchResultList:t.searchResultList,searchList:t.searchList,paginationConfig:t.paginationConfig,oldSelectIndex:t.oldSelectIndex},on:{onSearchMore:t.onSearchMore,getTableData:t.getTableData}})],1):t._e(),"analysis"===t.tabMenuConfig.activeName?n("div",{style:{height:t.analysisConfig.analysisLoading?"400px":"auto"}},[n("Analysis",{attrs:{analysisConfig:t.analysisConfig,searchList:t.searchList},on:{postAggregationAnalysis:t.postAggregationAnalysis,onExport:t.onExport}})],1):n("div",["all"===t.tabMenuConfig.activeName?["quake_service"!==t.searchList.selectIndex&&"quake_image"!==t.searchList.selectIndex&&!t.isQuakeTippingPoint||"list"!==t.dataModel?n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],style:{height:t.loading?"200px":"auto"}},[t.loading?t._e():n("div",[t.searchResultList.length?[n("Result",{attrs:{searchList:t.searchList,searchResultList:t.searchResultList,paginationConfig:t.paginationConfig},on:{onSearchMore:t.onSearchMore,onSearchByQueryString:t.onSearchByQueryString,onShowAll:t.onShowAll,onShowAllTippingPoint:t.onShowAllTippingPoint,openTippingPointVulProve:t.onShowAllTippingPoint,onSearchGrammar:t.onSearchGrammar}})]:n("div",[n("NoData",["quake_vulnerability"!==t.searchList.selectIndex&&t.fastScanEnable&&t.scanForm.ip?n("div",{staticStyle:{color:"#676F77"}},[t.isScaning?n("span",[t._v("重新扫描中，稍后请在消息中心查看结果")]):n("span",[t._v("暂无详细数据，我们还可为您提供"),n("span",{staticClass:"nodata-tip",on:{click:t.onRescanIp}},[t._v("重新扫描")])])]):n("div",[t.searchList.timeRange[0]&&t.timeRangeEnable?n("div",[t._v(" "+t._s(t.$t("search.no_data_for_current_peroid"))+"，"+t._s(t.$t("search.try"))+" "),n("span",{staticClass:"nodata-tip",on:{click:function(e){return t.triggerDate(["",""],"all")}}},[t._v(t._s(t.$t("search.no_time_limit_search")))])]):n("span",{staticStyle:{color:"#676F77"}},[t._v("暂无数据，试试其他检索条件吧～")])])])],1)],2)]):n("ListModel",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"listModel",attrs:{data:t.searchResultList,paginationConfig:t.paginationConfig},on:{onChangeType:t.onChangeListType,onSearchMore:t.onSearchMore,onSearchMoreAnti:t.onSearchMoreAnti,openTippingPointVulProve:t.onShowAllTippingPoint,onShowAll:t.onShowAll}})]:t._e(),"statistics"===t.tabMenuConfig.activeName?n("div",[n("Statistics",{attrs:{aggregationsWorldData:t.aggregationsWorldData,aggregationsData:t.aggregationsStatisticsData,activeName:t.tabMenuConfig.activeName,statisticsIndexLoading:t.statisticsIndexLoading,statisticsLoading:t.statisticsLoading,selectIndex:t.searchList.selectIndex},on:{loadMoreKeyList:t.postStatisticsAggregationsList}})],1):t._e(),"traceroute"===t.tabMenuConfig.activeName?n("div",[n("Traceroute",{attrs:{tracerouteConfig:t.tracerouteConfig}})],1):t._e()],2)])]),n("ExportData",{attrs:{activeNameType:t.tabMenuConfig.activeName,exportDialogConfig:t.exportDialogConfig,searchList:t.searchList,searchResultList:t.searchResultList,timeRange:t.searchList.timeRange,analysisKeys:t.analysisConfig.analysisParams.keys,total:t.paginationConfig.total.value},on:{changeExportDialogVisible:t.changeExportDialogVisible}}),n("IocDialog",{attrs:{dialogConfig:t.noticeDialogConfig,exportLoading:t.scanLoading},on:{cancelDialog:t.onCancelNoticeDialog,sureDialog:t.onSureNoticeDialog}},[[n("div",{staticClass:"quake-tip"},[n("div",{staticStyle:{"margin-bottom":"12px"}},[t._v("请输入要重新扫描的内容")]),n("el-form",{ref:"scanForm",attrs:{model:t.scanForm,rules:t.scanRules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"类型"}},[n("el-radio-group",{on:{change:t.handleChangeScanType},model:{value:t.scanType,callback:function(e){t.scanType=e},expression:"scanType"}},[n("el-radio",{attrs:{label:"IP/域名"}}),n("el-radio",{attrs:{label:"查询语句"}})],1)],1),"IP/域名"===t.scanType?n("el-form-item",{attrs:{label:"详情",prop:"ip"}},[n("div",{staticClass:"scan-ip-input"},[n("el-input",{attrs:{type:"textarea",rows:6,placeholder:t.scanIpPlaceholder},model:{value:t.scanForm.ip,callback:function(e){t.$set(t.scanForm,"ip",e)},expression:"scanForm.ip"}}),n("div",{staticClass:"scan-ip-input-count",class:{error:t.currentScanIpCount>t.scanIpMaxCount}},[t._v(t._s(t.currentScanIpCount)+"/"+t._s(t.scanIpMaxCount))])],1)]):n("el-form-item",{attrs:{label:"详情",prop:"query"}},[n("div",{staticClass:"scan-ip-input"},[n("el-input",{attrs:{type:"textarea",rows:6,placeholder:t.scanQueryPlaceholder},model:{value:t.scanForm.query,callback:function(e){t.$set(t.scanForm,"query",e)},expression:"scanForm.query"}})],1)]),n("el-form-item",{attrs:{label:"端口",prop:"port"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:t.scanPortPlaceholder},model:{value:t.scanForm.port,callback:function(e){t.$set(t.scanForm,"port",e)},expression:"scanForm.port"}})],1),n("el-form-item",{attrs:{label:"扫描模式",prop:"dns_fast"}},[n("el-radio",{attrs:{label:!0},model:{value:t.scanForm.dns_fast,callback:function(e){t.$set(t.scanForm,"dns_fast",e)},expression:"scanForm.dns_fast"}},[t._v(" 快速扫描 "),n("el-tooltip",{attrs:{effect:"dark",content:"使用该域名最快响应的一条DNS记录中的IP地址"}},[n("i",{staticClass:"el-icon-question"})])],1),n("el-radio",{attrs:{label:!1},model:{value:t.scanForm.dns_fast,callback:function(e){t.$set(t.scanForm,"dns_fast",e)},expression:"scanForm.dns_fast"}},[t._v(" 全量扫描 "),n("el-tooltip",{attrs:{effect:"dark",content:"尽可能获取该域名的全部DNS记录，使用IP地址集合"}},[n("i",{staticClass:"el-icon-question"})])],1)],1)],1),n("div",[t._v("扫描完成后会在消息中心通知您，请留意！")])],1)]],2),n("el-dialog",{staticClass:"detail-dialog",attrs:{visible:t.showAllDialogConfig.dialogVisible,width:"70%"},on:{"update:visible":function(e){return t.$set(t.showAllDialogConfig,"dialogVisible",e)}}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("DialogTitle",{attrs:{showAllData:t.tabConfig.showAllData,selectIndex:t.searchList.selectIndex}})],1),n("DialogBody",{attrs:{showAllData:t.tabConfig.showAllData,selectIndex:t.searchList.selectIndex,tabIndex:t.tabConfig.tabIndex,visible:t.showAllDialogConfig.dialogVisible,btnType:t.showAllDialogConfig.btnType},on:{onSearchSplitWord:t.onSearchSplitWord,onSearchGrammar:t.onSearchGrammar}})],1)],1)],1),!t.role&&t.isShowGuideTip?n("el-row",{staticClass:"guide-tip-container",attrs:{type:"flex",justify:"center"}},[n("el-col",{attrs:{span:22}},[n("span",[t._v("登录以查看新手引导")]),n("span",{staticClass:"btn",on:{click:t.onLogin}},[t._v("立即登录")]),n("i",{staticClass:"el-icon-close close",on:{click:function(e){t.isShowGuideTip=!1}}})])],1):t._e(),n("QueryCollect",{attrs:{queryCollectDialogVisible:t.queryCollectConfig.dialogVisible,selectIndex:t.searchList.selectIndex,searchVal:t.searchList.searchVal,indices:t.indices},on:{changeQueryCollectDialogVisible:t.changeQueryCollectDialogVisible}}),n("HelpTip",{attrs:{isShowHelpTip:t.isShowHelpTip},on:{onChangeHelpCollapse:t.onChangeHelpCollapse}}),n("TagDialog",{ref:"tagDialog",on:{refreshDataOfTag:t.refreshDataOfTag,refreshPageOfTag:t.refreshPageOfTag}}),n("AllMsgTippingPoint",{attrs:{"show-tipping-point":t.tippingPointDrawer.visible,data:t.tippingPointDrawer.data},on:{"update:showTippingPoint":function(e){return t.$set(t.tippingPointDrawer,"visible",e)},"update:show-tipping-point":function(e){return t.$set(t.tippingPointDrawer,"visible",e)}}})],1)},v=[],y=(n("a4d3"),n("99af"),n("4de4"),n("7db0"),n("4160"),n("a630"),n("caad"),n("c975"),n("a15b"),n("d81d"),n("26e9"),n("fb6a"),n("0d03"),n("b0c0"),n("a9e3"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("4d63"),n("ac1f"),n("25f0"),n("6062"),n("2532"),n("3ca3"),n("466d"),n("5319"),n("1276"),n("498a"),n("159b"),n("ddb0"),n("3835")),b=(n("96cf"),n("2909")),x=n("ade3"),w=n("2f62"),C=n("5a0c"),A=n.n(C),I=n("e581"),S=n("651f"),M=["nexgen-aux","qvr","admind","cvc_hostd","pluribus","ls3bcast","periscope","dvapps","tcc-http","msdts1","corel_vncadmin","vrts-tdd","ampr-rcmd","videotex","gnunet","synchronet-upd","netbios-dgm","joost","octopus","rcp","florence","secrmmsafecopya","magenta-logic","openmailpxy","ff-lr-port","optilogic","relief","tl1-telnet","opsec-cvp","mobilip-mn","sdhelp","noadmin","nm-asses-admin","mvel-lm","blp5","nimcontroller","pay-per-view","magicom","navisphere","nsjtp-data","virtual-time","xns-courier","xbox","tentacle","jmact6","ping-pong","and-lm","ailith","secure-aux-bus","feitianrockey","lam","opennl","pptconference","nati-logos","pop3","sip-tls","powerexchange","3com-webview","mqe-agent","cops","proofd","ndmps","socks","lsdp","tempo","sgi-eventmond","d-fence","onehome-remote","jdl-dbkitchen","ipfix","cba8","metaedit-ws","perrla","cssc","iclpv-nls","armtechdaemon","lavenir-lm","bmc-onekey","eyelink","ibridge-data","device","gtrack-ne","dict-lookup","suncacao-jmxmp","wfc","reversion","trap-daemon","sdfunc","bdp","abr-api","nsp","mysql","cardifftec-back","bbn-mmx","ff-annunc","asgcypresstcps","ecmp","pana","valisys-lm","webmail-2","cloanto-lm","mck-ivpip","rich-cp","owms","cti-redwood","memcachedb","fazzt-admin","c3","kca-service","alljoyn","optiwave-lm","sctp-tunneling","datascaler-ctl","intellistor-lm","netaspi","klogin","jdmn-port","ecwcfg","qsnet-trans","rlm","gcmonitor","smc-admin","pafec-lm","wsmans","dls","nuauth","vxlan","hiq","nbt-pc","dbcontrol-oms","sum","mcs-messaging","ovwdb","gppitnp","ewctsp","slinterbase","facsys-router","drip","facelink","zephyr-hm","ncr_ccl","boscap","vytalvaultbrtp","exp2","menandmice-lpm","apsolab-tags","mfserver","afs3-bos","nicetec-nmsvc","dnox","lm-webwatcher","apple-licman","wifree","indx-dds","ias-auth","vision_elmd","sna-cs","toad","cp-spxsvr","soap-http","jini-discovery","microtalon-com","apollo-data","centerline","martalk","sometimes-rpc18","fxaengine-net","netplan","pvaccess","mercantile","maybe-veritas","nlg-data","opsession-clnt","cdbroker","svrloc","nattyserver","bxp","nusrp","rrdp","nod-client","ifsf-hb-port","frc-mp","nokia-ann-ch1","mzca-alert","qmvideo","vslmp","icl-twobase1","alta-smp","biff","g2tag","appserv-https","dec_dlm","rrirtr","neteh-ext","vfbp","statsci1-lm","webster","direcpc-dll","gamesmith-port","honyaku","sns-agent","jaleosnd","watilapp","apollo-gms","dbdb","n2nremote","ultrex","slm-api","jetcmeserver","c-h-it-port","ciphire-data","optika-emedia","sunlps-http","sftu","aipn-reg","zicom","rcip-itu","3gpp-monp","dbreporter","intelliadm-disc","cisco-tdp","netware-csp","palace-6","xecp-node","resource_mgr","dka","priv-term-l","sns-protocol","eppc","pvsw-inet","neto-dcs","dynamid","sixxsconfig","securitychase","topflow","microsoft-ds","p2p-sip","editbench","ss7ns","3gpp-cbsp","dbsa-lm","elpro_tunnel","wsdapi","nani","sercomm-wlink","ccp","amp","distinct32","nim-vdrshell","ansyslmd","strexec-s","pc-mta-addrmap","irdmi2","mgcp-gateway","msmq","coord-svr","sometimes-rpc4","stx","ordinox-server","tig","storman","vspread","denali-server","kerberos","optima-vnet","lazy-ptop","shrewd-control","route","gadgetgate1way","ipx","asoki-sma","scipticslsrvr","hpnpd","print-srv","us-srv","telefinder","pwdgen","cvmmon","zymed-zpp","sm-pas-3","gbmt-stars","lv-frontpanel","newheights","thermo-calc","ctxs-vpp","mdnsresponder","jlicelmd","sabams","palace-1","ayiya","graphics","vpjp","alta-ana-lm","light","lotusmtap","idmgratm","vnwk-prapi","atc-lm","syam-agent","netrjs-4","ndl-als","rs-rmi","efb-aci","omserv","crestron-cip","pssc","sxmp","omnivisionesx","concomp1","winrm","igrid","cpq-wbem","tsb","timed","dsmcc-ccp","abcvoice-port","bex-webadmin","wnn6-ds","surf","timbuktu-srv1","xdmcp","nmsserver","wap-wsp-wtp-s","rfx-lm","entextnetwk","llm-pass","dn6-smm-red","icmpd","lanmessenger","iqrm","lmsocialserver","novar-global","fse","proxim","trivnet2","emc-xsw-dconfig","cadkey-licman","urbisnet","ieee11073-20701","redstone-cpss","tcpnethaspsrv","talon-webserver","wmedistribution","tributary","sossecollector","ttl-publisher","tn-timing","altova-lm","apc-7845","intv","emsd-port","buddy-draw","lot105-ds-upd","insis","iua","elcn","ivsd","pon-ictp","med-fsp-rx","fujitsu-dtc","cpdi-pidas-cm","pxc-splr","extensis","symb-sb-port","equationbuilder","bzr","rfmp","amt-soap-https","symantec-sfdb","ris-cm","ep-nsp","mailq","flcrs","icl-twobase10","stanag-5066","nowcontact","vtu-comms","snmpssh","nmsigport","anynetgateway","ss-idi-disc","mstmg-sstp","xmcp","febooti-aw","odi-port","smakynet","bveapi","ms-s-sideshow","csi-lfap","pwgwims","osm-oev","bmc-ar","legent-2","shivasound","isis","livestats","odette-ftps","powwow-client","musiconline","oidsr","nvd","cluster-disc","datalens","dpm","newoak","bmc_ctd_ldap","ehome-ms","lonworks2","wired","pcoip","ncd-pref","ascomalarm","servstat","repcmd","vmnet","altav-tunnel","pulsonixnls","listcrt-port-2","mpm-snd","sun-sr-iiop-aut","sagxtsds","h323hostcall","itach","glogger","ideesrv","udrive","fj-hdnet","pnbs","zfirm-shiprush3","pehelp","silverpeakpeer","ivocalize","bmc-perf-agent","hydra","gwha","cableport-ax","verismart","lorica-in-sec","raid-am","prnstatus","brutus","abacus-remote","lds-dump","bytex","oraclenames","otpatch","hillrserv","psmond","sco-sysmgr","csregagent","solaris-audit","iso-ip","lpcp","pirp","attachmate-uts","va-pacbase","capioverlan","vpvd","minilock","dxmessagebase2","3par-mgmt","scriptview","ohsc","snmpdtls","accord-mgc","cpq-tasksmart","isoipsigport-1","cpscomm","pmdfmgt","xingcsm","MOS-lower","net2display","tellumat-nms","netlabs-lm","windb","necp","atsc-mh-ssc","zserv","jute","tram","drp","lcm-server","slscc","statsrv","cs-auth-svr","us-gv","gxtelmd","iec-104-sec","tnp","bv-smcsrv","adobeserver-4","creativeserver","gf","issd","cd3o-protocol","doceri-ctl","sma-spw","elan","m2ua","apollo-status","nicelink","scrabble","bears-01","wincim","entexthigh","tcoregagent","tiepie","cl-db-remote","bmcpatrolrnvu","tell","sunscalar-svc","gs-realtime","qbdb","kastenchasepad","pvuniwien","conspiracy","ccmail","skip-cert-send","custix","serverview-asn","vpa-disc","badm_pub","zephyr-clt","pn-requester2","zixi-transport","spdy","wap-vcal-s","sdbproxy","vrts-at-port","conference","quaddb","corba-iiop","afore-vdp-disc","fmsas","quest-data-hub","codaauth2","lumimgrd","synapse-nhttps","profinet-rtm","nm-assessor","vaprtm","worldscores","ora-lm","upnotifyp","nsc-posa","sco-websrvrmgr","radmin-port","netbill-cred","iRAPP","sep","ncu-2","iims","cim-rs","BackOrifice","fcopys-server","dcs","shiva_confsrvr","dey-sapi","sgi-storman","g5m","qtp","intuitive-edge","vrace","tesla-sys-msg","cmtp-mgt","vnetd","genisar-port","priv-rje","hypercube-lm","openmailns","ramp","hpstgmgr2","slc-systemlog","msync","bo2k","ipt-anri-anri","primaserver","sagectlpanel","altalink","dnp","sunclustermgr","gpsd","argis-ds","pmip6-data","anet-b","watchdoc","simple-push","X11","smaclmgr","gbs-stp","cimtrak","arns","ibm-mgr","tsb2","talarian-mcast3","cns-srv-port","ccss-qmm","mshvlm","eq3-update","kofax-svr","gerhcs","fsr","apc-7846","geognosisman","cspclmulti","bb","cyborg-systems","xserveraid","nss","mtcevrunqman","ms-olap1","p-net-local","prchat-user","pando-sec","cognex-insight","s3db","infotos","kitim","nimspooler","netspeak-acd","ads","owserver","tidp","rapidmq-reg","ecomm","config-port","foresyte-sec","aegate","opcua-udp","mysql-cluster","syncserverssl","pk","gcm-app","neckar","hfcs-manager","hkp","ariliamulti","fuscript","emc-pp-mgmtsvc","entextmed","bvcontrol","programmar","onpsocket","patrol","ovladmgr","imqtunnels","d2k-datamover2","tmi","ieee-mms-ssl","ntz-tracker","plato-lm","pcmk-remote","csdmbase","groupwise","optimanet","amt-blc-port","can-ferret-ssl","ndtp","axon-tunnel","coldfusion-auth","mfcobol","tgp","bcs-broker","versa-tek","aes-discovery","entp","openqueue","pds","roboeda","lcs-ap","sbook","avian","rrifmm","qip-audup","jt400","cbp","cbserver","sophia-lm","scotty-disc","pictrography","bittorrent-tracker","servergraph","cadsisvr","garmin-marine","corerjd","serverview-as","net-steward","hpstgmgr","mbg-ctrl","traceroute","acctopus-st","ca-audit-da","apollo-relay","omnisky","scoremgr","irtrans","netwkpathengine","fjippol-polsvr","oracle-vp2","agcat","confluent","psdbserver","netinfo-local","homesteadglory","jetstream","ansoft-lm-2","pcptcpservice","csvr-sslproxy","trim-event","ibm-mqseries","ibm-abtact","sd-data","nicetec-mgmt","bmc-net-adm","md-cg-http","sor-update","eportcommdata","hpvroom","nmap","utcd","iso-tp0s","kpop","wins","everydayrc","childkey-notif","fiorano-rtrsvc","acms","octopustentacle","ufmp","netbios-ssn","parsec-game","netiq-voipa","lockd","ldap","aes-x170","opc-job-start","aria","icl-twobase3","nvc","x25-svc-port","nced","compaqdiag","securid","pyrrho","rrp","jvl-mactalk","iclcnet_svinfo","dberegister","icl-twobase5","jtag-server","sco-peer-tta","mpnjsc","smartsdp","htuilsrv","appleqtcsrvr","globe","vt-ssl","intel_rci","ms-olap3","client-wakeup","ssslic-mgr","sstp-2","zarkov","cybercash","opi-sock","xdtp","analogx","diamondport","ice-srouter","hpe-dp-bura","nvcnet","sgi-soap","wap-pushsecure","mc-appserver","igrs","tor-trans","monp","prodigy-intrnet","netrix-sftm","wlcp","stun-p3","xqosd","predatar-comms","sos","kme-trap-port","tl-ipcproxy","xmapi","dcap","tec5-sdctp","sur-meas","expresspay","msrpc","ssdtp","direcpc-video","dlep","pando-pub","moldflow-lm","vestasdlp","tdp-suite","dpkeyserv","privateark","concurrent-lm","netserialext2","jvserver","etcd-client","cruise-swroute","trim-ice","xcap-control","syslog-tls","desktop-dna","redstorm_find","sso-control","interserver","imprs","hippad","policyserver","trip","nhci","pktcablemmcops","fronet","psrserver","agps-port","tcoflashagent","xyplex-mux","edm-stager","scp-config","ftsrv","xns-ch","npmp-trap","oceansoft-lm","quest-vista","ansysli","isakmp","diagmond","tn-tl-w2","apwi-rxserver","philips-vc","nlogin","mesavistaco","eudora-set","a1-msc","gdrive-sync","jerand-lm","sruth","xmlrpc-beep","idmaps","cdc","acp-port","telnetcpcd","neto-wol-server","kv-server","bmap","msft-gc","menandmice-dns","glishd","netops-broker","wta-wsp-wtp-s","ccproxy-http","traversal","mediaspace","netbill-keyrep","juxml-port","bts-x73","hacl-test","zigbee-ip","apertus-ldp","sgsap","utime","avt-profile-1","drm-production","hmmp-op","rtsclient","dddp","ideafarm-door","isis-bcast","mapx","pvxplusio","symantec-av","mni-prot-rout","camac","indigo-vbcp","vchat","jmact5","tr-rsrb-p3","time","efi-lm","pscl-mgt","prosharerequest","documentum","cvmon","dwr","qnts-orb","PowerAlert-nsa","amx-icsp","boinc","itm-mcell-u","zenginkyo-1","aspcoordination","ub-dns-control","doip-data","cisco-redu","ctsd","notify_srvr","elfiq-repl","keyserver","acp-proto","emfis-cntl","swtp-port1","accelenet-data","dvt-data","minecraft","airsync","pharmasoft","beeyond-media","splitlock-gw","netviewdm1","seaview","XmlIpcRegSvc","wv-csp-sms-cir","ida-discover2","athand-mmp","imip","cockroach","fotogcad","avenyo","p-net-remote","pinghgl","kftp","aruba-server","dwmsgserver","nbx-dir","http-rpc-epmap","vsnm-agent","prosharedata","novar-alarm","isa100-gci","cimplex","finle-lm","sometimes-rpc16","uucp-rlogin","namp","ndsp","ccag-pib","iden-ralp","http-wmap","discp-client","splitlock","atc-appserver","csvr","vmware-fdm","ultrabac","smartpackets","ws-discovery","apc-3052","pk-electronics","pt2-discover","openmath","optech-port1-lm","emp-server2","orion","pkt-krb-ipsec","filenet-powsrm","m3ua","qaz","retp","qsoft","asci-val","dayliteserver","ulp","efidiningport","inovaport1","supermon","puparp","msfrs","auditd","spw-dialer","unisys-eportal","interpathpanel","mpls-pm","metaedit-mu","interactionweb","cpdlc","ewnn","autocueds","msp","ontobroker","isoft-p2p","trendchip-dcp","sysscanner","globmsgsvc","eor-game","dcs-config","crestron-ctps","texai","vpp","silc","ncpm-pm","compressnet","danf-ak2","senomix07","genie-lm","etebac5","edb-server2","connection","xoraya","dawn","amt-redir-tls","notify","santak-ups","trc-netpoll","rmtserver","activesync-notify","infowave","ibprotocol","icslap","ace-svr-prop","cnckadserver","evtp-data","flexlm10","cs-live","lms","gemini-lm","boe-cms","vpvc","d2000webserver","aigairserver","apwi-disc","multip-msg","legent-1","emwin","icg-swp","hexen2","mgcs-mfp-port","deskshare","swdtp-sv","dzdaemon","apx500api-2","bpdbm","imap4-ssl","xw-control","iadt-disc","suncacao-rmi","gprs-cube","ininmessaging","interact","svn","icon-discover","gtrack-server","appss-lm","tvbus","system-monitor","notateit-disc","mctfeed","dt-vra","netsupport","ea","hpvirtctrl","hncp-dtls-port","opsec-lea","serverstart","m4-network-as","iclpv-sc","esl-lm","ipdd","unikeypro","vsaiport","nmea-onenet","lsi-raid-mgmt","subntbcst_tftp","wmc-log-svc","dwf","unicontrol","lansource","netserialext4","ncd-diag-tcp","xic","dctp","sdserver","elanlm","interhdl_elmd","charsetmgr","caspssl","icp","vipera","tunstall-pnc","ticf-2","scoi2odialog","contamac_icm","b2-runtime","lnvalarm","ms-licensing","e-dpnet","ft-role","netxms-sync","elm-momentum","eforward","trident-data","uucp-path","ferrari-foam","tekpls","rpcbind","rbt-wanopt","prnrequest","global-wlink","l3-ranger","dmt","borland-dsj","palace-4","ito-e-gui","ibm-mqseries2","jwserver","fjsvmpor","lvision-lm","cosmocall","almobile-system","unisql-java","acd-pm","dpserveadmin","hp-webadmin","pcoip-mgmt","turbonote-1","fdtracks","csoft1","mynahautostart","ivs-video","elvin_client","sns-admin","ssp","d2dconfig","msg-icp","kermit","synotics-broker","kshell","docstor","directplaysrvr","PS-Capture-Pro","abr-secure","irdmi","multicast-ping","inovaport2","heretic2","ktelnet","tambora","swa-4","ibm-cics","gap","swr-port","asipregistry","snews","snmpdtls-trap","apc-5456","at-zis","mobile-p2p","newacct","dnp-sec","atm-zip-office","swift-rvf","rap","pcia-rxp-b","LiebDevMgmt_A","quickbooksrds","idrs","mirrtex","bhmds","mmcal","treehopper","msiccp","iwg1","netopia-vo4","winpoplanmess","dcutility","directplay8","vts-rpc","lsp-ping","ip-qsig","whosockami","brf-gw","scte104","casrmagent","oracle-ms-ens","hpvmmagent","bsfsvr-zn-ssl","hacl-cfg","dbase","exp1","varadero-0","i-zipqd","kastenxpipe","rdp","nbx-au","de-cache-query","pctrader","olsr","rets-ssl","msfw-control","rfb","dslremote-mgmt","smc-http","lan900_remote","nim","fcmsys","rmonitor_secure","td-postman","dns2go","ndn","d-data","cdn","surfpass","pdrncs","sgi-arrayd","acp-policy","vfmobile","ctx-bridge","a16-an-an","gte-samp","ms-sql-m","www-dev","netbios-ns","senomix06","npep-messaging","cops-tls","ccss-qsm","nta-ds","npqes-test","pcanywhere","at-5","bip","barracuda-bbs","iatp-normalpri","elektron-admin","rmonitor","hcp-wismar","ardusmul","ttcmremotectrl","iiop","vmrdp","spdp","spocp","s1-control","backburner","mpidcmgr","npds-tracker","yak-chat","mib-streaming","rna-lm","3par-rcopy","profilemac","fagordnc","dsom-server","bilobit","entrustmanager","hnm","telesis-licman","rrimwm","kjtsiteserver","apc-5455","cqg-netlan-1","acp-discovery","teredo","mao","talon-engine","epl-slp","npsp","zmp","silkp4","adi-gxp-srvprt","wpages","orbixd","aja-ntv4-disc","business","fodms","opsec-omi","cichlid","tip-app-server","atmtcp","priv-mail","3d-nfsd","tsdos390","ild","tomato-springs","icad-el","iuhsctpassoc","covia","netop-rc","srvc_registry","urld-port","xpra","p2pevolvenet","hes-clip","excerpt","domaintime","conclave-cpp","mylxamport","gcp-rphy","grubd","micromuse-ncpw","swrmi","opsec-uaa","acl-manager","courier","apsolab-tag","metasage","sdo-tls","isbconference2","dnsix","ubroker","ecsqdmn","gsmp","surfcontrolcpa","proactivesrvr","display","cuelink-disc","netrjs-1","tolfab","altcp","mysql-cm-agent","snmp","ariel1","watcom-sql","broker_service","jms","mcntp","willy","vp2p","ovbus","xmquery","kerberos_master","rapi","rbakcup1","zabbix-agent","arkivio","med-supp","kftp-data","bhfhs","cnrp","dialpad-voice2","nucleus","ibm-mqisdp","innosys-acl","nasmanager","ibus","ds-clnt","mvx-lm","diagd","LiebDevMgmt_DM","hpssmgmt","tnp-discover","sps-tunnel","meregister","sas-2","netsc-dev","ddi-udp-2","dvr-esm","hp-alarm-mgr","wv-csp-sms","voispeed-port","gld","xaapi","smc-jmx","mcagent","mcp-port","ique","frc-lp","prism-deploy","xpanel","client-ctrl","capwap-data","eyetv","5afe-dir","palace-2","nameserver","vrt","ibm-pps","synchromesh","dsETOS","edm-std-notify","vad","snapenetio","mpp","ecnp","interintelli","icl-twobase7","direct","utsftp","enrp-sctp-tls","samd","cma","matrix_vnet","tip2","lhtp","ka0wuc","h263-video","wap-push-http","tabula","can-ferret","jaugsremotec-2","xrl","easyengine","surveyinst","i-net-2000-npr","sstp-1","t2-drm","find","ilss","wta-wsp-s","bmc-perf-mgrd","enl-name","tscchat","cvc","hpppssvr","jcp","stun-port","tl1-lv","gtegsc-lm","hyperwave-isp","vopied","flirtmitmir","oap","vipremoteagent","net-projection","rusb-sys-port","ill","proaxess","gandalf-lm","mit-ml-dev","menandmice_noh","acas","mortgageware","svs-omagent","beeyond","pnet-enc","patrol-snmp","faxstfx-port","utmpcd","hp-sci","nms-dpnss","snac","nifty-hmi","newbay-snc-mc","checksum","1ci-smcs","pov-ray","ipr-dglt","lipsinc1","nettest","dsf","powerschool","xmms2","xsmsvc","rblcheckd","vocaltec-hos","epc","orbix-loc-ssl","dmod-workspace","iw-mmogame","pcep","ncd-diag","rocrail","crmsbits","mpshrsv","ntp","iracinghelper","dsx_monitor","afs3-rmtsys","ionixnetmon","pda-data","adobeserver-1","cc-tracking","alesquery","sapv1","sitewatch","notezilla-lan","dicom","efr","talarian-mcast4","igo-incognito","symantec-sim","imagepump","caci-lm","srp-feedback","nimhub","optocontrol","ftrapid-2","downtools-disc","opswmanager","ias-reg","ispipes","nesh-broker","banyan-rpc","iwb-whiteboard","vofr-gateway","item","dzoglserver","3comnetman","citynl","haipe-otnk","bioserver","miami-bcast","pe-mike","empowerid","masqdialer","centra","sds-admin","lispworks-orb","wago-service","idtp","fcis-disc","veracity","bsfserver-zn","mtp","ccmcomm","pm-cmdsvr","apsolab-col","intecourier","cresco-control","prRegister","otp","serverview-gf","hpvirtgrp","dell-rm-port","talikaserver","ridgeway1","twrpc","ipdtp-port","menandmice-mon","fc-ser","postgresql","aviva-sna","dtpt","idp-infotrieve","messageasap","quasar-server","sixchat","noteit","avocent-adsap","tinc","xinupageserver","mc-comm","scpi-raw","solera-epmap","apex-mesh","WibuKey","scenccs","dfoxserver","jaxer-manager","L2TP","smartcard-port","seclayer-tls","pgbouncer","agslb","wdbrpc","vrmg-ip","pt-tls","sns-gateway","simplement-tie","nfapi","pegboard","tsilb","bpjava-msvc","smip","padl2sim","hncp-udp-port","audit","opsmessaging","ovsessionmgr","nsc-ccs","etb4j","clusterxl","cbos-ip-port","svbackup","aibkup","rbr-discovery","xxnetserver","oc-lm","piranha1","awg-proxy","cl-1","pcle-infex","pqsp","ftrapid-1","bears-02","sm-pas-2","rwp","suncacao-websvc","a3-sdunode","clever-tcpip","sgi-dgl","ftp-data","ipcd3","saiseh","x-bone-ctl","ripng","fcip-port","pscribe","fc-cli","flexlm","phrelaydbg","sunfm-port","hmmp-ind","dls-monitor","tr-rsrb-p2","cm","openit","canon-bjnp3","ceph","eis","paycash-online","winfs","warehouse-sss","dhe","rdrmshc","funk-dialout","ntalk","pcihreq","commtact-http","wnn6_Cn","speedtrace","axio-disc","ttc-ssl","dialog-port","pktcable-cops","oap-admin","e-mdu","tor-control","csnet-ns","https-wmap","atls","ap","xadmin","applix","ads-c","ftranhc","copy","gss-http","f5-globalsite","ca-2","workflow","comotionback","synchronet-rtc","ftnmtp","redis","ms-olap2","bf-game","3com-njack-1","dlip","decvms-sysmgt","radsec","pxc-pin","newlixengine","photuris","submission","iwec","wnn6_Tw","cisco-aqos","srdp","dhcp-failover2","tenfold","ddt","ans-console","pmdmgr","sphinxql","aztec","datacaptor","uohost","netvenuechat","palcom-disc","dyniplookup","texar","skip-mc-gikreq","tempest-port","proxy-gateway","decbsrv","anoto-rendezv","adtech-test","spmp","ka-sddp","cymtec-port","rightbrain","swismgr1","supdup","cognima","irc","actifioudsagent","cds","lonewolf-lm","nirp","vqp","msg-auth","itose","apani2","ora-oap","connect-client","telelpathattack","wacp","fjappmgrbulk","bnet","sitaraserver","directvdata","fintrx","emc-vcas-udp","jeol-nsddp-2","ridgeway2","emce","epncdp2","corelccam","peocoll","websm","gdomap","fjicl-tep-b","lecroy-vicp","apc-6547","cacp","rmpp","skytelnet","git","infoexch","h248-binary","ep-pcp","sdr","ftsync","sdlog","ncd-pref-tcp","vrts-registry","rbsystem","sacred","cisco-wafs","rsisysaccess","atmp","alphatech-lm","hp-nnm-data","ljk-login","galaxy7-data","srcp","personal-link","dlsrpn","netview-aix-7","sgmp","imqtunnel","radius","lanyon-lantern","udpradio","boks","nfoldman","vatata","ibridge-mgmt","auris","recipe","aftmux","ssr-servermgr","sflow","fjitsuappmgr","tl1-raw-ssl","banyan-vip","ewdgs","oma-ulp","snpp","konshus-lm","eq-office-4941","acis","sfmsso","ias-neighbor","enpc","esimport","timelot","llm-csv","sd-capacity","salient-mux","cncp","nls-tl","pawserv","yo-main","vcnet-link-v10","netbus","choiceview-agt","mumps","nbx-cc","powerclientcsf","puppet","rscs","repsvc","eicon-slp","start-network","boe-resssvr3","senomix05","authentx","astromed-main","tcpdataserver","adtempusclient","ov-nnm-websrv","tile-ml","dirgis","z39.50","cisco-fna","ndm-server","vop","responselogic","wsm-server","isdc","xingmpeg","mosaicsyssvc1","xsync","io-dist-group","routematch","bounzza","mcs-fastmail","dxadmind","mimer","pumpkindb","nrpe","dvl-activemail","thingkit","cvd","corba-iiop-ssl","jboss-iiop-ssl","bitspeer","orbix-cfg-ssl","unix-status","l2c-data","jeol-nsddp-1","sychrond","gkrellm","messageservice","ms-sna-server","itap-ddtp","rds-ib","chimera-hwm","xnds","sse-app-config","dbisamserver2","spike","signal","mcftp","global-dtserv","netopia-vo1","jaugsremotec-1","synapsis-edge","cis","serialgateway","jpegmpeg","siebel-ns","rbakcup2","secureidprop","nsstp","raid-cs","fxuptp","dns-llq","contentserver","cisco-net-mgmt","e-net","sg-lm","resorcs","nssagentmgr","daqstream","tw-auth-key","mpnjsomg","ctdp","ndm-requester","qcp","cmc-port","ocbinder","rkinit","nupaper-ss","wimd","diagnose-proc","fast-rem-serv","hsrp","janus-disc","zion-lm","dtp-net","gaia","prm-sm","xtgui","bmc-ea","hp-clic","brcd","passwrd-policy","goldleaf-licman","webmachine","ncadg-ip-udp","ml-svnet","odette-ftp","wwiotalk","twsdss","efi-mg","fatserv","mtportmon","embl-ndt","qsnet-workst","at-echo","cardax","aimpp-hello","ddm-rdb","eftp","alpha-sms","pda-sys","rtps-discovery","metricadbc","gsi","icabrowser","3com-njack-2","wherehoo","mxomss","kpdp","adapt-sna","newgenpay","vtr-emulator","clever-ctrace","l3t-at-an","lansurveyorxml","virtualuser","crip","lm-x","sdclient","bnetfile","hpoms-dps-lstn","aimpp-port-req","hughes-ap","agriserver","jesmsjc","m3ap","tcim-control","uniport","teedtap","csi-sgwp","davsrc","mapper-nodemgr","kali","amx-axbnet","netarx","pacerforum","cadabra-lm","index-pc-wb","jetdirect","j-link","itactionserver2","qtms-bootstrap","vmpwscs","espeech-rtp","lansurveyor","cs-services","purenoise","ipulse-ics","vpps-qua","dyna-lm","ariel3","tsa","timestenbroker","oma-rlp","mobileip-agent","p25cai","profinet-cm","semantix","entrust-aams","bootserver","pclemultimedia","mountd","sixnetudr","gist","cybro-a-bus","iwserver","kpn-icw","upstriggervsw","dandv-tester","nuxsl","fjicl-tep-c","bh611","attachmate-g32","ipether232port","upnp","vsi-omega","jmact3","realsecure","smpte","intu-ec-client","talarian-mcast5","smsp","findviatv","bacula-fd","l2c-disc","autotrac-acp","ibm-dial-out","cal","hde-lcesrvr-1","hotu-chat","rdmnet-ctrl","inova-ip-disco","fw1-or-bgmp","twcss","ehs-ssl","td-service","cisco-ipsla","ii-admin","dsmcc-config","br-channel","hpvmmdata","hnmp","pnet-conn","sometimes-rpc10","inovaport5","agentx","cqg-netlan","beorl","hhb-gateway","spcsdlobby","edtools","rancher","dhcpv6-client","apsolab-data","netiq-qcheck","ums","press","noaaport","epicon","ms-sql2000","azeti-bd","afp","ttlpriceproxy","com-bardac-dw","dbm","playsta2-app","raxa-mgmt","4-tieropmcli","sybasedbsynch","cautcpd","ems","mbus","doglms","emp-server1","msgclnt","smntubootstrap","pdap","rt-viewer","herodotus-net","dfserver","wcbackup","worldfusion1","digital-vrc","chevinservices","ohimsrv","ibm_wrless_lan","wap-wsp","coaps","fiorano-msgsvc","gvcp","mercury-disc","blp3","caps-lm","rtcm-sc104","asip-webadmin","codima-rtp","opsec-sam","roketz","opencm","visitview","essweb-gw","qip-qdhcp","cedros_fds","hacl-hb","domiq","unet","ldap-admin","radio-bc","slnp","ironstorm","sun-mc-grp","solera-lpn","powerchuteplus","bvtsonar","weandsf","fs-agent","fmwp","mpfwsas","t2-brm","ntz-p2p-storage","amqps","xss-port","asnaacceler8db","ohmtrigger","kar2ouche","dpm-agent","vemmi","brlp-2","cscp","arepa-raft","natdataservice","ambit-lm","prm-nm-np","netspeak-cps","openmail","webmethods-b2b","isnetserv","evm","elipse-rec","ulistserv","xnm-ssl","axon-lm","spiral-admin","vvr-control","mm-admin","exbit-escp","streetperfect","myblast","pftp","distcc","ccu-comm-1","ncp","intersys-cache","streettalk","iris-xpc","halflife","mxi","xpilot","montage-lm","eicon-server","ncacn-ip-tcp","vpps-via","an-signaling","mle","mon","ms-rome","radacct","z-wave-s","sane-port","vision_server","listmgr-port","webobjects","opus-services","rescap","vat-control","h323hostcallsc","hagel-dump","aamp","sun-as-nodeagt","memcached","nucleus-sand","edbsrvr","netview-aix-11","ravehd","serverdocs","boosterware","jediserver","microsan","mdm","sonar","citriximaclient","mobile-file-dl","drwcs","mindfilesys","ocs_cmu","fg-gip","xact-backup","openstack-id","board-voip","innosys","netiq-ncap","ice-slocation","pdnet","swa-2","nbdb","synctest","h225gatedisc","tsp","opentrac","icshostsvc","sysinfo-sp","sncp","ipluminary","wap-vcal","noteshare","netxms-mgmt","serverviewdbms","cleverdetect","sntp-heartbeat","lockstep","caerpc","biolink-auth","actnet","eicon-x25","osp","PS-Server","fpitp","navegaweb-port","telindus","pptp","pop2","armi-server","sco-inetmgr","wg-netforce","dossier","ottp","shaperai","isbconference1","bspne-pcc","acmaint_dbd","seaodbc","vytalvaultvsmp","polipo","etlservicemgr","lv-ffx","gtp-user","ewcappsrv","aesop","brain","whoami","wiegand","mice","sgi-lk","gc-config","wbem-http","hpidsadmin","armcenterhttps","shofarplayer","hp-sco","netprowler-manager","ds-mail","rsf-1","watchdoc-pod","ptp-event","teamviewer","ampl-tableproxy","xns-mail","jetformpreview","iad1","icl-twobase8","osu-nms","nomad","spsc","sms-rcinfo","llrp","jwclient","iceedcp_rx","u-dbap","dey-keyneg","swxadmin","fjinvmgr","sometimes-rpc8","zenginkyo-2","pmd","afs3-vlserver","pciarray","caaclang2","uis","iqnet-port","remcap","mptn","bim-pem","fjmpjps","sdp-portmapper","cyc","ms-alerter","iso-tp0","precise-comm","src","hp-3000-telnet","anet","infocrypt","nmmp","idps","ogs-client","patrolview","commplex-link","e-design-web","web2host","hddtemp","cmadmin","irisa","senip","dyn-site","netobjects2","hybrid","first-defense","firepower","entrust-aaas","dvbservdsc","http-alt","grcmp","asdis","continuus","pxc-sapxom","blp2","icl-twobase4","xn-control","cisco-tna","cst-port","fjmpcm","s-bfd","epmd","bintec-capi","officelink2000","rfio","hp-sessmon","netcabinet-com","bluelance","ttntspauto","ezproxy-2","lanschool","senomix03","madcap","tibsd","galaxy-network","trim","ppcontrol","EtherNetIP-2","sometimes-rpc2","webtie","bmc-net-svc","intrinsa","eapol-relay","tns-cml","windlm","ksysguard","intu-ec-svcdisc","dhcp-failover","ndmp","gridgen-elmd","wkars","bullant-srap","xfr","njenet-ssl","zep","cl-db-request","fortisphere-vm","asa","emc-gateway","impera","csvr-proxy","pxc-splr-ft","l-acoustics","xmpp","cddbp-alt","qke-llc-v3","onscreen","netcomm2","ms-sideshow","ars-vista","tmesis-upshot","mppolicy-mgr","limnerpressure","pulseaudio","canon-bjnp4","bpcd","pdp","filenet-rpc","calltrax","taiclock","omabcastltkm","productinfo","childkey-ctrl","printer","edm-mgr-sync","dialogic-elmd","eklogin","ssm-cssps","fcp-srvr-inst1","ncpm-ft","compaq-wcp","jaus","iee-qfx","bsquare-voip","qpasa-agent","pxc-spvr-ft","iss-mgmt-ssl","bts-appserver","compaq-scp","emcads","rds-ip","picodbc","ovalarmsrv","faxportwinport","cleanerliverc","vlsi-lm","bmdss","smallchat","k-block","uucp","lm-dta","jt400-ssl","apwi-imserver","pmcs","mylex-mapd","privilege","trap-port","cert-responder","combox-web-acc","dl_agent","ehs","hp-status","j-ac","prsvp","mxit","xybrid-cloud","cucme-4","assoc-disc","systat","spremotetablet","sdnskmp","gammafetchsvr","3l-l1","giga-pocket","mcns-tel-ret","aap","quartus-tcl","sometimes-rpc26","compx-lockview","cft-6","ttc-etap-ds","piranha2","elxmgmt","uaac","backupedge","pangolin-laser","visinet-gui","vx-auth-port","tnETOS","cesdcdman","multiplex","scp","adaptecmgr","canon-mfnp","iphone-sync","msql","dlswpn","z-wave","matip-type-b","sdp-id-port","prismiq-plugin","is99c","ezmeeting-2","exapt-lmgr","monitor","smartcard-tls","ucs-isc","netrcs","tlisrv","rexecj","dei-icda","fsc-port","ni-ftp","smpnameres","rwhois","bprd","de-noc","emcrmirccd","v-one-spp","us-cli","fjhpjp","tl1-raw","meter","onep-tls","softpc","palace-5","sd-elmd","media-agent","fjmpss","klio","msfw-s-storage","svnetworks","mbap-s","turbonote-2","newton-dock","uadtc","nhserver","nssocketport","hp-collector","ovtopmd","ssh-mgmt","ci3-software-1","lnvmailmon","es-elmd","cl-db-attach","pammrpc","iclpv-wsm","uma","balour","emprise-lls","subseven","hpssd","upnotifyps","ardusuni","sentinel","pammratc","delos-dms","atul","geolocate","qotd","icl-twobase2","simple-push-s","repscmd","cdid","sm-pas-1","sdserv","oma-ilp","itm-mccs","appliance-cfg","netsc-prod","pim-rp-disc","raid-sf","amicon-fpsu-ra","msnp","di-traceware","qsnet-cond","incognitorv","simslink","vunknown","sns-query","ssdispatch","xtrm","waascluster","aker-cdp","fsportmap","kademlia","snifferserver","ldp","ncube-lm","hivep","nati-dstp","jaxflow","apani5","bf-master","niprobe","ibm-app","t1distproc","deviceshare","mount","aodv","proactivate","badm_priv","ida-discover1","3com-amp3","esps-portal","sia-ctrl-plane","ltcudp","di-ase","virtualtape","dpsi","unisys-lm","maitrd","shadowstream","xpl","gnutella","inovaport3","caevms","hacl-probe","univision","mailprox","dsm-scm-target","mma-discovery","ent-engine","cart-o-rama","cumulus-admin","domain","audio-activmail","launchbird-lm","unify-adapter","zieto-sock","joaJewelSuite","sun-dr","dsp3270","fujitsu-mmpdc","dmidi","eoss","atex_elmd","csd-monitor","dtn-bundle-udp","pdefmns","na-localise","plato","neon24x7","controlone-con","simbaexpress","ctp","synoptics-trap","nbx-ser","shiprush-d-ch","fac-restore","simba-cs","nss-routing","omnivision","websphere-snmp","synapse","npp","call-logging","gamelobby","mindarray-ca","startron","datex-asn","lmdp","veritas_pbx","hb-engine","noteza","excerpts","spt-automation","inspider","facilityview","mphlpdmc","cycleserv2","rt-labtracker","vacdsm-app","datusorb","stel","udrawgraph","hp-managed-node","keysrvr","eq-office-4942","kerberos-sec","svcloud","netiq-endpt","vmsvc","daylitetouch","dhct-alerts","efcp","fcp-udp","precise-sft","camp","vtp","ssm-cvs","instantia","anet-l","filemq","metalbend","netviewdm3","beserver-msg-q","netapp-sync","sharp-server","su-mit-tg","rxmon","sophos","vpac","seagull-ais","vseconnector","oma-mlp","gdoi","spugna","hylafax","ddi-udp-6","ctt-broker","roboer","esp-lm","touchnetplus","netiq-mc","ivcollector","accu-lmgr","mdc-portmapper","ibm-rsyscon","veritas-vis1","glrpc","remotefs","ncl","tnos-sp","rjcdb-vcards","swdtp","bones","lanrevagent","mit-dov","rvs-isdn-dcp","answersoft-lm","ratl","openremote-ctrl","irdg-post","msp-os","saphostctrl","worldwire","qbikgdp","caacws","ftp","priv-dial","qsm-remote","scc-security","gradecam","ansoft-lm-1","chromagrafx","at-nbp","sercomm-scadmin","monkeycom","mpsysrmsvr","pmsm-webrctl","b-novative-ls","mdbs_daemon","vcrp","galileolog","nimreg","xmltec-xmlmail","astrolink","rmiactivation","hpss-ndapi","mini-sql","nburn_id","tunalyzer","e1-interface","acter","discovery-port","netconf-beep","netperf","ibar","osvr","sauterdongle","omasgport","qft","neteh","capwap-control","stat-results","conferencetalk","bintec-tapi","amc","sgcip","fjdocdist","d-data-control","abb-escp","odbcpathway","scan-change","inovaport6","ffserver","re-conn-proto","rxapi","loaprobe","osdcp","dsx-agent","brlp-0","ddns-v3","citrixuppg","unify","salient-dtasrv","biotic","ivmanager","netplay-port2","mmaeds","personalos-001","isis-am","ginad","questdb2-lnchr","autodesk-lm","canon-bjnp2","ajp12","itu-bicc-stc","informatik-lm","ufastro-instr","cequint-cityid","timeflies","silverpeakcomm","citrixadmin","acme","nod-provider","cctv-port","psl-management","sim-control","dhct-status","webpush","mpm-flags","cspmulti","gotodevice","pmcp","unizensus","sonus","netblox","ieee-mms","pichat","ergolight","ncdloadbalance","idware-router","telelpathstart","glbp","pkix-cmc","infiniswitchcl","hp-hcip-gwy","fxp","sbi-agent","whosells","sns-dispatcher","slp","pnrp-port","reftek","ftp-agent","clp","xfer","oms","invision-ag","sua","warmspotMgmt","xlog","bfd-lag","plethora","hicp","grf-port","priority-e-com","event_listener","netscript","sd","sometimes-rpc20","b2-license","rtelnet","hrd-ncs","reachout","altovacentral","funk-logger","groove-dpp","iatp-highpri","erunbook_agent","sysorb","nntp","pwgippfax","jtnetd-server","ovhpas","lnvpoller","iniserve-port","filex-lport","slp-notify","nds_sso","audionews","trap-port-mom","msrp","tunatic","svnet","apc-9950","lorica-out","RDCenter","fmpro-v6","swarm","streamcomm-ds","sfs-smp-net","nqs","x2-control","sftp","instl_boots","mbl-battd","otv","smwan","gt-proxy","linktest","aol","adcp","ndm-agent-port","localinfosrvr","identify","wysdma","sdo","sunproxyadmin","zephyr-srv","cps","delta-mcp","omstopology","apogeex-port","smile","LiebDevMgmt_C","bctp","gsiftp","sgi-esphttp","classic","is99s","wanscaler","trp","citrix-ica","easy-soft-mux","oemcacao-jmxmp","resacommunity","winddlb","scientia-sdb","aol-2","vsat-control","boe-processsvr","psi-ptt","max","f1-control","pegasus","ssowatch","stun","voxelstorm","h2250-annex-g","wsmlb","dyna-access","securenetpro-sensor","mtport-regist","elvin_server","flashmsg","tserver","wcr-remlib","btprjctrl","encrypted-llrp","mgxswitch","nimbusdb","lorica-out-sec","netopia-vo2","daishi","kdnet","ibp","idfp","j-lan-p","uarps","unihub-server","iec-104","hid","pkix-3-ca-ra","entrust-ash","priv-print","zigbee-ips","iris-lwz","cvspserver","ventoso","erunbook_server","veritas-udp1","acp","bcinameservice","mnet-discovery","whois","tbrpf","d2ddatatrans","mac-srvr-admin","tinyfw","vcom-tunnel","winpharaoh","ua-secureagent","nnsp","nkd","gw-log","monetra","amt-cnf-prot","sops","opencore","fcp-addr-srvr2","dxspider","veronica","ironmail","rasadv","mil-2045-47001","crinis-hb","Trinoo_Register","winqedit","symplex","dts","ivs-insertion","xiostatus","ca-web-update","imip-channels","bv-queryengine","sasp","nimsh","indi","acr-nema","ucentric-ds","cplscrambler-lg","armcenterhttp","scpi-telnet","autocuesmi","snap","cernsysmgmtagt","xoms","bfd-echo","pnbscada","iascontrol-oms","genie","fjippol-cnsl","triquest-lm","ipdr-sp","lmp","semaphore","remote-collab","cs-remote-db","itm-mcell-s","egs","sky-transport","wsdapi-s","tve-announce","novell-lu6.2","mipi-debug","jwalkserver","microcom-sbp","boe-filesvr","bfd-multi-ctl","areaguard-neo","ssh","rmiregistry","vista-4gl","mpm","ultraseek-http","www-ldap-gw","jvclient","watershed-lm","ipass","icpps","pxc-epmap","neod1","ekshell","codemeter-cmwan","hacl-local","wrspice","rsap","iclcnet-locate","hp-server","consul-insight","peerbook-port","nimgtw","senomix08","arcpd","partimage","d2k-datamover1","smsd","l5nas-parchan","beacon-port-2","vnc-http-1","dnc-port","skronk","truckstar","CardWeb-IO","cpudpencap","ldss","ns","cogitate","emc-xsw-dcache","rockwell-csp1","shivadiscovery","gsmtap","mrip","getty-focus","ethoscan","mcp","hems","3com-tsmux","sstsys-lm","sde-discovery","tetrinet","pmip6-cntl","mailbox-lm","boxp","locus-disc","xns-auth","directplay","zannet","direcpc-si","systemics-sox","privoxy","surebox","ismc","connect-proxy","parliant","jps","xkotodrcp","sqlexec-ssl","iapp","ovsdb","hart-ip","aequus-alt","profinet-rt","tgcconnect","ccowcmr","pslicser","swispol","mcns-sec","xmp","dragonfly","openport","csoft-plusclnt","fksp-audit","4-tieropmgw","x11","swismgr2","bess","sai_sentlm","index-net","mctp","sbl","husky","vmodem","tvpm","xprtld","eisp","daap","pfu-prcallback","dtspcd","vinainstall","aplx","twds","hpvmmcontrol","palace-3","vettcp","metasys","opcon-xps","sw-orion","raqmon-pdu","mnp-exchange","sometimes-rpc28","edm-mgr-cntrl","lsi-bobcat","filesphere","micromuse-ncps","amt-redir-tcp","radius-dynauth","cinegrfx-elmd","citrix-rtmp","magpie","rt-event","locus-con","tn-tl-fd1","raid-cc","netrockey6","via-ftp","aurp","maxim-asics","ifsp","solid-mux","abarsd","pn-requester","vcscmd","arepa-cas","bis-sync","stmf","opsmgr","fjippol-port2","ctisystemmsg","firemonrcc","hl7","unite","tripwire","opequus-server","driveappserver","cadview-3d","incp","bvcdaemon-port","iad3","rpi","oa-system","netbill-prod","passgo","ecmport","fly","watchdog-nt","font-service","adobeserver-5","heartbeat","td-replica","pxc-ntfy","sftsrv","guttersnex","sec-t4net-clt","aura","radmind","creativepartnr","inst-discovery","pgps","femis","sugp","osxwebadmin","rugameonline","appiq-mgmt","caiccipc","dpcp","wlanauth","mosaixcc","citysearch","hri-port","tacacs-ds","crs","autopac","ms-la","ct2nmcs","directv-web","rap-ip","rsync","sdtvwcam","bpcp-poll","farenet","airshot","ninaf","bpmd","m2ap","ctiprogramload","qptlmd","uuidgen","printopia","imtc-mcs","igcp","omid","manyone-xml","batman","litecoin","pc-telecommute","ni-mail","h323callsigalt","nsiiops","sm-pas-5","wsdl-event","mctet-jserv","swx","tivoli-npm","commtact-https","iconp","pdps","cgn-config","scientia-ssdb","dhcpc","mobrien-chat","tunstall-lwp","fmp","transact","banyan-net","vocaltec-phone","nati-vi-server","wago-io-system","tsaf","satvid-datalnk","gntp","sun-sr-jms","iccrushmore","shockwave","tl1-ssh","hpdevms","enfs","exlm-agent","socorfs","aci","pspserver","ns-server","ivs-database","ncld","npmp-gui","rtsp-alt","aurora-balaena","nomdb","lnvmaps","xmpp-client","3exmp","matahari","univ-appserver","fmpro-fdal","elad","msi-selectplay","ms-ilm","compaq-https","mles","videobeans","dcsoftware","itv-control","marathontp","asi","oi-2000","netprowler-sensor","catalyst","hdl-srv","bingbang","hp-san-mgmt","omhs","ups","murx","vrtl-vmf-sa","backroomnet","tdaccess","wbem-https","9pfs","sddp","connected","purityrpc","talk","stuns","nas-metering","netconf-ch-ssh","xribs","suitjd","bacula-dir","firefox","ccm-port","shrinkwrap","dn6-nlm-aud","passgo-tivoli","win-rpc","sieve","pss","sun-as-iiops","dls-mon","simon","pcttunnell","sitaramgmt","adws","lisp-data","sentinel-ent","jamserverport","oracle-oms","db-lsp-disc","oirtgsvc","paycash-wbp","samsung-unidex","miva-mqs","shareapp","tr-rsrb-p1","spc","avauthsrvprtcl","intelsync","remoteanything","alpes","dfn","oma-rlp-s","miles-apart","mipv6tls","d2k-tapestry2","zented","citadel","decladebug","cas-mapi","idig_mux","cspuni","dgi-serv","apw-registry","etftp","nav-port","ati-ip-to-ncpe","at-rtmp","monetra-admin","wap-push-https","ezmessagesrv","d-s-n","icg-iprelay","netx-server","objectmanager","dasp","capfast-lmd","asap-tcp","apocd","mentaserver","CodeMeter","mcer-port","os-licman","fdt-rcatp","tunnel","mtrace","appworxsrv","rbr-debug","gsigatekeeper","npmp","lsp-self-ping","mlsn","syserverremote","infomover","comotionmaster","iclpv-dm","aspeclmd","wap-vcard","sysopt","talarian-udp","nut","tmo-icon-sync","vytalvaultpipe","mmpft","sms-chat","prolink","iris-xpcs","sunwebadmin","sns-quote","carrius-rshell","ctdhercules","galaxy4d","rpki-rtr-tls","prosharenotify","davsrcs","winshadow","hislip","profile","dec-mbadmin-h","npdbgmngr","wag-service","goahead-fldup","networklens","stonefalls","cp-spxrpts","exasoftport1","scaleft","tht-treasure","trnsprntproxy","qfp","lxi-evntsvc","netconf-ssh","oms-nonsecure","tdmoip","newlixreg","sentlm-srv2srv","enguity-xccetp","varadero-1","bandwiz-system","amx-rms","xmpp-bosh","targus-getdata1","exoconfig","spw-dnspreload","talarian-mcast2","pxc-spvr","tclprodebugger","unglue","c1222-acse","qsnet-assist","stat-scanner","imagequery","ipcs-command","panasas","scol","frc-hicp","hks-lm","evb-elm","apc-2260","ema-sent-lm","dpap","iclpv-pm","cvsup","iclpv-nlc","accessbuilder","optohost003","ctlptc","tarp","ncu-1","qsnet-nucl","MOS-upper","vnc-http-3","ls3","ctcd","ita-manager","event-port","4talk","darcorp-lm","mcs-mailsvr","novar-dbase","allpeers","qip-login","robot-remote","icg-bridge","smpp","tftp","eenet","esinstall","trap","msfw-storage","gre-udp-dtls","qubes","marcam-lm","mindprint","914c-g","pd-admin","qsm-gui","udp-sr-port","submitserver","dhcpv6-server","hostname","swa-3","plbserve-port","omfs","adrep","qsm-proxy","vdmplay","spice","delibo","avtp","samsung-disc","sun-sr-admin","cp-spxdpy","dmdocbroker","docker","cgms","excw","simbaservices","ismserver","MOS-soap","frcs","netbill-auth","password-chg","data-port","libelle","venus-se","iph-policy-adm","dbref","dtp-dia","tick-port","hyper-g","stgxfws","s102","mxxrlogin","esnm-zoning","nsrp","altbsdp","kana","remctl","ms-shuttle","netview-aix-10","netbookmark","icq","appleqtc","idcp","sweetware-apps","nec-raidplus","ianywhere-dbns","mysql-proxy","sitaradir","dsdn","jdp-disc","video-activmail","mtsserver","sanavigator","gpfs","vnyx","t128-gateway","high-criteria","nacagent","odeumservlink","citrixupp","blockade-bpsp","geognosis","an-pcp","sybaseanywhere","isomair","lds-distrib","mmcals","infoman","ssmpp","vdmmesh","gv-us","quosa","bv-is","pxc-roid","netview-aix-4","pcnfs","coap","onmux","isode-dua","busycal","spg","scinet","shadowserver","sms-xfer","citrixima","nmea-0183","msfw-replica","itm-lm","updog","storageos","omviserver","osm-appsrvr","ardus-trns","wininstall-ipc","opsession-srvr","hyperip","ircs","taurus-wh","writesrv","nuts_dem","soagateway","fibotrader-com","a14","cp-cluster","imdocsvc","applusservice","must-backplane","groove","menandmice-upg","netport-id","wap-push","rsvp-encap-1","3Com-nsd","msdp","gnmi-gnoi","minivend","munin","repliweb","svdrp","osmosis-aeea","trdp-md","aeroflight-ads","apple-sasl","eli","pda-gate","silkp1","csdm","suncacao-csa","alarm-clock-c","redstorm_join","checkoutdb","peoctlr","bmpp","syslog","cuillamartin","jeol-nsddp-3","siipat","netview-aix-1","privatechat","varadero-2","cadencecontrol","fcopy-server","ipcd","vs-server","indy","hip-nat-t","universe_suite","outlaws","t1-e1-over-ip","winport","imqstomp","netuitive","rndc","qotps","csoftragent","smart-lm","MaxumSP","ggz","gds-adppiw-db","qdb2service","houston","pago-services1","lutcp","cslistener","openvpn","rtps-dd-mt","nmsp","prm-sm-np","jbroker","documentum_s","wcpp","pwrsevent","omviagent","powergemplus","dsmeter_iatc","pacom","community","xmpv7","remographlm","nextstep","tam","topflow-ssl","ddi-udp-4","pmwebapi","rets","trinity-dist","cambertx-lm","cesdinv","wnn6","odsi","cyaserv","pushns","cnap","bbn-mmc","opsession-prxy","man","avanti_cdp","unitary","salient-usrmgr","clvm-cfg","xds","gds_db","oracle","amt-esd-prot","cloudsignaling","espeech","msft-gc-ssl","pwdis","isqlplus","omginitialrefs","ddm-ssl","socp-t","isi-irp","sphinxapi","tag-pm","vnsstr","xnm-clear-text","mtqp","kerberos-adm","idac","kis","talarian-mcast1","skip-cert-recv","carracho","idxp","mdap-port","opc-job-track","optohost002","exce","nfs","MobilitySrv","pslserver","mc-gt-srv","ipcserver","flukeserver","cnhrp","lionhead","nokia-ann-ch2","can-nds-ssl","metastorm","ipfixs","caupc-remote","fg-fps","sabarsd","famdc","parsec-peer","pcsync-http","opsec-ufp","kmscontrol","nexgen","redstorm_diag","em7-secom","ock","raadmin","aspen-services","rnmap","cefd-vmp","napster","sas-3","armagetronad","boldsoft-lm","hpidsagent","radan-http","egptlm","nip","proshare1","panagolin-ident","scohelp","cardbox-http","intersan","sometimes-rpc24","fs-rh-srv","wmereporting","bccp","cytel-lm","3comfaxrpc","mainsoft-lm","autonoc","foresyte-clear","hassle","jmb-cds2","ctf","labrat","close-combat","spramsd","cadis-2","3par-mgmt-ssl","pharos","siemensgsm","sgcp","ns-cfg-server","caicci","v5ua","h323gatestat","avt-profile-2","aicc-cmi","ggf-ncp","qwave","encore","boe-pagesvr","aiagent","imink","snmpssh-trap","rmlnk","health-trap","gw-call-port","robotraconteur","ms-sna-base","wpl-analytics","compaq-evm","haipe-discover","binderysupport","sage-best-com2","sybasesrvmon","ssql","mmcc","veritas-ucl","pvxpluscs","wspipe","stars","ehp-backup","ismaeasdaqlive","visweather","pra_elmd","powwow-server","here-lm","dbbrowse","t5-straton","descent3","rda","hhb-handheld","silkmeter","netconf-tls","lanner-lm","iafserver","ticf-1","ciscocsdb","sscan","nping-echo","mpnjsosv","softcm","netmount","netapp-icdata","Trinoo_Master","brightcore","pacmand","decauth","dic-aida","essp","apc-5454","webdata","xgrid","lpdg","csccredir","rplay","accuracer","sometimes-rpc14","talnet","imap","mctet-master","ifor-protocol","canocentral0","e-woa","ttc-etap","cadkey-tablet","bwnfs","suncacao-snmp","senomix01","mentaclient","scintilla","http-mgmt","ibm-db2","msims","fs-server","nms","must-p2p","nettgain-nms","nta-us","giop","sxuptp","tmosms1","slush","rmt","avsecuremgmt","volley","vxcrnbuport","optohost004","micromuse-lm","ice-router","portgate-auth","genrad-mux","intraintra","servserv","acmsoda","roce","sun-as-jmxrmi","MOS-soap-opt","netconfsoaphttp","netiq","netgw","vnc-3","mloadd","asgenf","sbcap","ddgn","cimple","ife_icorp","nfa","hermes","lorica-in","cadlock","pdb","netrjs-3","hiperscan-id","soap-beep","cis-secure","alfin","cognex-dataman","lbc-sync","ocs_amu","radpdf","sun-manageconsole","racf","flamenco-proxy","responsenet","imtc-map","dellwebadmin-1","onesaf","fujitsu-neat","isis-ambc","netrisk","tnp1-port","netserialext1","ptk-alink","fmsascon","apm-link","cylink-c","dpi-proxy","apx500api-1","syslog-conn","llmnr","cesdcdtrn","rellpack","edm-manager","hivestor","swiftnet","amx-weblinx","fastlynx","rsc-robot","scservp","srssend","galaxy-server","videte-cipc","vrml-multi-use","brcd-vr-req","lrs-paging","cruise-config","dtserver-port","scup-disc","netsupport2","winshadow-hd","wap-wsp-s","tapestry","knet-cmp","apwi-rxspooler","hybrid-pop","radware-rpm","arbortext-lm","fjswapsnp","opswagent","supercell","slingshot","tn-tl-fd2","dist-upgrade","mira","biimenu","weblogin","IIS","vitalanalysis","iclpv-sas","digivote","apc-6548","directnet","autobuild","sshell","undo-lm","mgcp-callagent","gamegen1","device2","ias-admind","alchemy","dicom-tls","pjlink","ricardo-lm","jstel","xinuexpansion1","office-tools","rmc","new-rwho","powerguardian","lgtomapper","bcslogc","genstat","corelvideo","acap","amqp","synotics-relay","bv-agent","kingdomsonline","pnaconsult-lm","grid-alt","seraph","rtip","nas","tmosms0","can-dch","cft-5","squid-ipc","sm-pas-4","brcm-comm-port","ms-smlbiz","tenebris_nts","qb-db-server","cadis-1","sun-as-jpda","cgn-stat","ovalarmsrv-cmd","simp-all","netrek","iconstructsrv","sometimes-rpc6","srmp","xinuexpansion2","ipdcesgbs","xmlblaster","med-ci","cisco-snat","nfsrdma","appman-server","priv-term","aironetddp","dsp","wap-vcard-s","unidata-ldm","intrastar","ansys-lm","squid-snmp","lontalk-norm","nm-game-admin","boxbackupstore","apc-2160","patrol-coll","mpnjsomb","sdl-ets","islc","funkproxy","integra-sme","ndsauth","rebol","sdt-lmd","mdtp","lontalk-urgnt","safetynetp","oma-mlp-s","apex-edge","fhsp","asf-rmcp","roverlog","boks_clntd","faximum","dtag-ste-sb","prchat-server","q55-pcc","gadugadu","ici","starfish","guibase","tungsten-https","bmc-perf-sd","vsixml","sis-emt","hacl-gs","csoauth","qmqp","ups-engine","ds-slp","iscape","dhcps","paragent","synchronet-db","rt-helper","netattachsdmp","ldoms-mgmt","simctlp","mc-client","sgmp-traps","appserv-http","tigv2","nitrogen","iasd","alaris-disc","nsdeepfreezectl","sah-lm","dcp","amx-webadmin","nmasoverip","wfm","ghvpn","bues_service","fujitsu-dev","dnap","strexec-d","sync-em7","ctdb","sdt","rtps-dd-ut","taep-as-svc","sec-pc2fax-srv","lv-auth","agentview","gbjd816","parsec-master","vnc-2","opendeploy","informer","bzflag","diameters","stryker-com","starbot","s8-client-port","dccm","manyone-http","muse","cfdptkt","fcp-cics-gw1","cft-7","virtual-places","netdb-export","cft-1","interbase","senomix04","dcsl-backup","parallel","sun-sea-port","netxms-agent","iscsi","ice-location","cisco-sys","daytime","paradym-31","a15","sec-t4net-srv","e-design-net","flex-lm","oap-s","priv-file","emfis-data","multiling-http","quantastor","alljoyn-stm","ndl-ahp-svc","datasurfsrvsec","nm-game-server","onbase-dds","smauth-port","jeol-nsddp-4","realm-rusd","myq-termlink","rpki-rtr","sonus-logging","intecom-ps1","iop","bl-idm","ea1","medevolve","nufw","dtn1","tal-pod","ff-fms","taserver","lpsrecommender","globecast-id","wysdmc","pace-licensed","apani1","mtl8000-matrix","qnxnetman","ip-blf","jtnetd-status","cnrprotocol","erp-scale","bolt","tr-rsrb-port","ats","ita-agent","lm-sserver","macbak","sttunnel","dta-systems","fcp-srvr-inst2","netplay-port1","netview-aix-5","directv-tick","fg-sysupdate","rcts","senomix02","serverwsd2","nexstorindltd","infobright","cecsvc","icl-twobase9","cft-3","pip","iba-cfg","apollo-admin","appleugcontrol","perfd","stun-p2","xnmp","acptsys","sds","tripe","3com-net-mgmt","transmit-port","edonkey","opsec-ela","jboss-iiop","pfcp","ipfltbcst","freezexservice","sun-lm","opalis-robot","data-insurance","dellpwrappks","emb-proj-cmd","amdsched","newlixconfig","remote-as","rrh","health-polling","wip-port","sesi-lm","afrog","kryptolan","seagulllms","bluectrlproxy","comcam-io","mgesupervision","eisport","wbem-exp-https","olsv","ldgateway","aol-3","mt-scaleserver","astergate-disc","megaregsvrport","hmip-routing","cmip-man","qo-secure","ampr-info","pcc-image-port","hap","aeroflight-ret","wafs","rimsl","fs-qos","markem-dcp","futrix","accuracer-dbms","afs3-errors","visicron-vs","ardus-cntl","m3da","utmpsd","dwnmshttp","grcp","swa-1","wsscomfrmwk","ssslog-mgr","nsesrvr","interwise","beacon-port","concert","dsfgw","syscomlan","hlserver","jwpc-bin","metatude-mds","quicksuite","arena-server","jibe-eb","fjsv-gssagt","bis-web","armadp","hp-dataprotect","bdir_priv","ies-lm","af","quotad","lbf","smart-install","swtp-port2","telops-lmd","vpnz","blaze","tams","ezmeeting","autocuetime","mcidas","aruba-papi","cpqrpm-server","saris","auth","dccp-udp","celatalk","pipes","ncd-conf-tcp","gsakmp","apc-9951","netopia-vo3","raventdm","abatjss","sun-user-https","rmopagt","overnet","ldoms-migr","at-8","slmap","ca-1","sas-1","aritts","natuslink","composit-server","caids-sensor","sge_execd","intel-rci-mp","embrace-dp-c","vvr-data","solid-e-engine","tarantella","wkstn-mon","idp","publiqare-sync","k3software-cli","tipc","kpasswd5","ms-theater","pserver","dssiapi","gsms","pns","cplscrambler-al","k3software-svr","psbserver","ssports-bcast","aol-1","rise","tsepisp","sftdst-port","lanserver","smart-diagnose","persona","personnel","nacnl","vnc-http-2","lisp-control","amt","rid","xybrid-rt","smux","sent-lm","at-3","discp-server","atm-uhas","ccu-comm-2","ktickets-rest","asr","silkp2","adobeserver-3","rapido-ip","activememory","nnp","ss-idi","quakeworld","base","ets","radec-corp","lbc-measure","ewall","eserver-pap","gbs-smp","pwgpsi","synchronite","bridgecontrol","damewaremobgtwy","sst","rtnt-1","apc-9952","wimaxasncp","ndnp","gmrupdateserv","snifferdata","3link","netwall","raventbs","dynamic3d","netcelera","livelan","hrpd-ith-at-an","megardsvr-port","silkp3","tappi-boxnet","rib-slm","csrpc","pkix-timestamp","softaudit","isysg-lm","acmaint_transd","xinuexpansion4","prp","tnos-dp","statusd","wmereceiving","nei-management","ispmmgr","triomotion","search-agent","vstat","oidocsvc","blueberry-lm","espeasy-p2p","bootclient","burp","actifioreplic","wormux","asterix","openmailg","gcsp","asmps","aairnet-2","minger","quest-disc","bbars","ms-lsa","kdm","nfsd-keepalive","radclientport","nuts_bootp","invision","griffin","pythonds","dlsrap","amiganetfs","mciautoreg","ecp","d2k-tapestry1","netmo-default","d-cinema-csp","jdatastore","netangel","canocentral1","spectardb","privatewire","afs3-callback","sqlsrv","rsh-spx","fjicl-tep-a","tnmpv2","iafdbase","netobjects1","travsoft-ipx-t","commandport","dialpad-voice1","nsw-fe","peport","bakbonenetvault","icap","observium-agent","chshell","canex-watch","wap-wsp-wtp","mti-tcs-comm","d-star","indura","registrar","masc","rrilwm","tolteces","silverplatter","openvms-sysipc","pqsflows","deploymentmap","mgemanagement","colubris","spramsca","toruxserver","scscp","ontime","ept-machine","board-roar","csms","landmarks","a21-an-1xbs","freeciv","ddm-dfm","conductor","ibm3494","rsqlserver","omad","amberon","vidigo","ansatrader","unify-debug","socalia","bftp","listcrt-port","wsicopy","stss","pcs-pcw","casanswmgmt","uacs","asap-tcp-tls","vid","unot","rtnt-2","cryptoadmin","csms2","sun-sr-iiops","magaya-network","iso-tsap-c2","pmcdproxy","asc-slmd","essbase","cmmdriver","netcheque","truecm","vipera-ssl","hinp","wso2esb-console","radware-rpm-s","ddi-udp-7","finger","stun-p1","novell-ipx-cmd","itinternet","lbc-control","robcad-lm","sasggprs","kuang2","airs","evtp","santools","ansanotify","flr_agent","rsmtp","inetfs","aminet","ciscopop","msdfsr","keyshadow","snagas","rrisat","trinket-agent","movaz-ssc","xrpc-registry","echonet","aipn-auth","opsview-envoy","fmtp","altav-remmgt","wms-messenger","funk-license","dpserve","zen-pawn","csoft-prev","mpls-udp","a4-sdunode","mxodbc-connect","sitewatch-s","hp-hcip","nsrexecd","loreji-panel","msss","iqobject","sicct-sdp","orbix-locator","ng-umds","hacl-monitor","chip-lm","upsnotifyprot","rfa","qt-serveradmin","h2gf-w-2m","nest-protocol","vrts-ipcserver","permabit-cs","simple-tx-rx","sec-ntb-clnt","targus-getdata","mtcevrunqss","kiosk","cera-bcm","ph","ssad","insitu-conf","dx-instrument","netapp-icmgmt","healthd","bnt-manager","xmpcr-interface","iso-ill","ni-visa-remote","can-nds","ds-srvr","msl_lmd","storview","dj-ilm","msi-cps-rm","cindycollab","accel","netchat","xprint-server","easl","odn-castraq","rdb-dbs-disp","net-device","nerv","hlibmgr","rdgs","krb524","suucp","hp-sca","dna","xap-ha","ddi-udp-5","helix","worldfusion2","eims-admin","aas","e3consultants","midnight-tech","proshareaudio","l3-exprt","actifio-c2c","circle-x","jmq-daemon-1","watcomdebug","smc-https","mapper-ws_ethd","a1-bs","kentrox-prot","ttc-etap-ns","applus","sossd-collect","wusage","remote-kis","taskmaster2000","vaultbase","ibm-diradm-ssl","bpcp-trap","prospero","lnvstatus","bgp","osaut","rnm","fnet-remote-ui","tor-socks","smcluster","kingfisher","boe-was","apdap","vcs-app","omscontact","phonex-port","bacula-sd","trispen-sra","els","aic-np","hppronetman","netview-aix-2","topx","cwmp","gprs-sig","bitforestsrv","tragic","enpp","xmlink-connect","afs3-kaserver","echo","elatelink","odnsp","sac","tacticalauth","dsmipv6","pcs-sf-ui-man","ttg-protocol","houdini-lm","active-net","MOS-aux","owamp-control","redwood-chat","sun-sr-iiop","hao","polestar","idotdist","pkagent","presonus-ucnet","b2n","unifyadmin","gre-in-udp","xs-openstorage","re101","icpp","drizzle","wbem-rmi","rprt","fc-faultnotify","acplt","imqbrokerd","etc-control","rgtp","oemcacao-websvc","i3-sessionmgr","prgp","canto-roboflow","isoipsigport-2","rp-reputation","peerenabler","callwaveiam","bfd-control","rootd","westec-connect","ratio-adp","rfe","kink","mapper-mapethd","alarm-clock-s","apparenet-as","vsamredirector","ebinsite","webemshttp","lotusnotes","firewall1-rdp","pixelpusher","sflm","sqlnet","n2receive","sanity","sixtrak","virprot-lm","vrcommerce","sometimes-rpc1","sdsc-lm","apparenet-ui","track","ip-provision","ampr-inter","hosts2-ns","prat","SunVTS-RMI","trdp-pd","qadmifoper","netview-aix-8","csc_proxy","ds-srv","mongod","bmc-data-coll","cppdp","leecoposserver","tns-adv","rsom","assuria-ins","wizard","blizwow","backup-express","sqlserv","netserialext3","ttc","oraclenet8cman","ltp-deepspace","opcua-tls","infi-async","fryeserv","dali-port","rje","dlms-cosem","screencast","nav-data-cmd","asihpi","dis","apc-3506","jmb-cds1","amt-soap-http","cft-0","iph-policy-cli","cr-websystems","itwo-server","slc-ctrlrloops","adobeserver-2","cumulus","devbasic","ipp","tag-ups-1","talarian-mqs","netrjs-2","vocaltec-admin","docent","noagent","appswitch-emp","s-net","topovista-data","ibm-ssd","ups-onlinet","sentinel-lm","wsman","netiq-endpoint","dellwebadmin-2","jmq-daemon-2","ecolor-imager","tksocket","peerwire","commonspace","sometimes-rpc12","venus","oma-dcdocbs","miroconnect","mediacntrlnfsd","fs-mgmt","controlit","ccs-software","aic-oncrpc","clearcase","quest-agent","esp","oce-snmp-trap","fln-spx","ewinstaller","xinuexpansion3","openhpid","net8-cman","m2pa","unisql","fatpipe","vmsvc-2","fhc","ubxd","precise-i3","dict","spandataport","blockade","rdm-tfs","infoseek","ssrip","ris","bflckmgr","llsurfup-http","spamtrap","restconf-ch-tls","stone-design-1","capmux","simco","sms-remctrl","prelude","tivoconnect","swistrap","stdptc","noit-transport","harp","n1-fwp","objective-dbc","networklenss","mediabox","vergencecm","apollo-cc","proxima-lm","vscp","wrs_registry","vulture","ovsam-d-agent","bmc-grx","enl","crestron-ctp","oem-agent","rtraceroute","princity-agent","med-ltp","netadmin","biap-mp","k-patentssensor","ac-cluster","siam","swldy-sias","rt-classmanager","lstp","gw-asv","iceedcp_tx","msr-plugin-port","soniqsync","axysbridge","xtrms","cfg-cloud","radix","ddrepl","thrp","itscomm-ns","netspeak-cs","ott","bmc-reporting","sfs-config","rkb-oscs","clariion-evr01","flashfiler","iad2","tvdumtray-port","dserver","ms-cluster-net","ssm-els","trusted-web","sysrqd","metaagent","pmas","fpo-fns","avinstalldisc","mcreport","bacnet","fisa-svc","rcst","ctxlic","presence","logcabin","zsecure","taskman-port","metagram","viziblebrowser","cacsambroker","playsta2-lob","windows-icfw","rsvp-encap-2","x2e-disc","lnvconsole","pdap-np","doc1lm","ms-streaming","sun-sr-jmx","mc2studios","phoenix-rpc","ttnrepository","otmp","dayna","ci3-software-2","kz-migr","iqserver","perf-port","gdbremote","hpocbus","audit-transfer","syam-smc","gog-multiplayer","rome","mkm-discovery","tcoaddressbook","pdtp","mqe-broker","krb5gatekeeper","ndl-aps","spearway","ldaps","apc-necmp","iclid","artifact-msg","generalsync","gris","dmaf-caster","raven-rdp","plysrv-http","msantipiracy","eristwoguns","nilinkanalyst","tftp-mcast","avenue","server-find","grid","journee","aed-512","omnilink-port","cas","cucme-1","sage-best-com1","iiimsf","DragonIDSConsole","bngsync","sgi-dmfmgr","ardt","taligent-lm","phrelay","smtp","cruise-update","park-agent","sdmmp","jacobus-lm","admins-lms","l3-hawk","piccolo","mctet-gateway","sun-sr-https","netconfsoapbeep","ioc-sea-lm","prizma","trisoap","saft","ncconfig","vieo-fe","vns-tp","converge","jprinter","a26-fap-fgw","webaccess","ldxp","rsip","dbabble","indigo-vrmi","novastorbakcup","eye2eye","arcp","bmc-messaging","tasp-net","intermapper","IISrpc-or-vat","estamp","ias-paging","gsidcap","imoguia-port","blocks","neveroffline","dbcontrol_agent","stat-cc","pago-services2","ovobs","mmacomm","netclip","timbuktu-srv2","sype-transport","cycleserv","BESApi","wmlserver","terminaldb","sql-net","retrospect","emcsymapiport","ace-proxy","bmc-jmx-port","mtrgtrans","f5-iquery","2ping","iwlistener","mpnjsocl","ms-ilm-sts","pim-port","spamassassin","ortec-disc","Trinoo_Bcast","service-ctrl","ulpnet","ezrelay","pvsw","nat-pmp","savant","odmr","cbt","qip-msgd","found","ac-tech","netagent","foliocorp","tungsten-http","ms-rule-engine","ada-cip","yawn","qsc","mondex","rtmp-port","radwiz-nms-srv","ttat3lb","exoline-udp","btpp2sectrans","directv-catlg","quake2","apri-lm","connect","pearldoc-xact","orion-rmi-reg","trustestablish","facsys-ntp","remote-winsock","imsldoc","tnos-dps","tl1","stvp","ciphire-serv","dif-port","isrp-port","btrieve","apsolab-rpc","afs3-prserver","stm_pproc","sas-remote-hlp","kyoceranetdev","mftp","maytagshuffle","ajp13","ms-olap4","ha-cluster","patrol-mq-gm","cfengine","array-manager","arcisdms","pscupd","go-login","servicetags","inspect","csnotify","vrxpservman","rdlap","medimageportal","smap","xtreamx","diameter","phonebook","secure-ts","rtsserv","supfilesrv","car","kmip","aprigo-cs","radio","cft-4","slslavemon","gv-pf","rfid-rp1","sns-channels","rapidmq-center","datascaler-db","alarm","attachmate-s2s","netx-agent","brp","collaborator","nxlmd","ccmad","netware-ip","jwpc","landesk-cba","sun-sr-http","rap-listen","ms-v-worlds","netmpi","sunwebadmins","upgrade","finisar","rs-status","unimobilectrl","kfserver","na-er-tip","gat-lmd","targus-getdata3","ndl-aas","laes-bf","netboot-pxe","spectardata","ctp-state","asam","eba","argis-te","mysqlx","rads","vpm-udp","lpar2rrd","maincontrol","adap","entrusttime","brlp-3","cabsm-comm","ps-ams","cisco-vpath-tun","solve","matip-type-a","cxtp","proshare2","stt","sco-websrvrmg3","hp-webqosdb","icl-twobase6","cloudcheck","ideafarm-panic","sygatefw","DMExpress","ev-services","vdab","uorb","cucme-3","cichild-lm","hacl-qs","cspmlockmgr","stresstester","ecovisiong6-1","micom-pfs","bre","udt_os","iax","remotedeploy","sqlexec","saphostctrls","fjippol-swrly","mpfoncl","patrol-mq-nm","plysrv-https","galileo","qrh","cruise-diags","vpad","csbphonemaster","elcsd","fjcp","apsolab-cols","sdproxy","m-oap","eq-office-4940","iso-tsap","sf-lm","dbisamserver1","av-emb-config","rtc-pm-port","kwtc","corbaloc","dsc","lm-instmgr","asprovatalk","dca","inovaport4","tsspmap","epnsdp","influence","orbiter","decap","d3winosfi","deskview","nssalertmgr","condor","ncdmirroring","timbuktu","x500ms","rtsps","hs-port","netstat","metaedit-se","blackboard","edm-adm-notify","winpcs","catchpole","minirem","gadgetgate2way","opalis-rbt-ipc","rlp","itactionserver1","ibm-dt-2","acc-raid","ccmrmi","gss-xlicen","zeroconf","oma-ilp-s","op-probe","hp-device-disc","snip-slave","hctl","netwave-ap-mgmt","whisker","802-11-iapp","aero","netwatcher-mon","ctechlicensing","rbt-smc","nvm-express","macromedia-fcs","connendp","orbplus-iiop","kfxaclicensing","sabp-signal","awacs-ice","netview-aix-9","at-7","distinct","snmptrap","versatalk","nimbusdbctrl","seclayer-tcp","socp-c","lv-not","ste-smsc","tpdu","ms-sql-s","ospf-lite","p2pcommunity","manage-exec","hexarc","heathview","umm-port","rt-devicemapper","t1distproc60","brvread","cogsys-lm","printer_agent","emwavemsg","sqdr","macon","tapeware","watchme-7272","ordinox-dbase","bullant-rap","namemunge","blackjack","hello","xiip","ars-master","integral","grasp","quake","msft-dpm-cert","myrtle","bmc-gms","res","silhouette","integrius-stp","sunscalar-dns","chipper","nbt-wol","hpiod","gxs-data-port","tqdata","winjaserver","ethercat","dproxy","qencp","sasg","raid-ac","ieee-mih","vce","esip","rothaga","tvnetworkvideo","ace-client","opalis-rdv","servistaitsm","cloanto-net-1","teleniumdaemon","oracle-vp1","agri-gateway","news","anet-h","mpl-gprs-port","usicontentpush","sbackup","lv-jc","vistium-share","xns-time","abbaccuray","snapd","zoomcp","ds-user","smsqp","enrp","a25-fap-fgw","ncpm-hip","fasttrack","imgames","ca-idms","plex","streletz","rdc-wh-eos","p4p-portal","synapse-nhttp","nsjtp-ctrl","world-lm","nms_topo_serv","hydap","madge-ltd","mediat","mrm","geneous","rs-pias","bnetgame","molly","ace-server","italk","anet-m","sun-as-iiops-ca","dhanalakshmi","bmc_patroldb","lkcmserver","qadmifevent","as-debug","pduncs","leoip","meta-corp","ca-audit-ds","minotaur-sa","qmtps","canditv","csccfirewall","rockwell-csp2","xdas","m2mservices","dec-notes","canon-cpp-disc","3ds-lm","toad-bi-appsrvr","ultimad","rna","p2pgroup","netspeak-is","canon-bjnp1","v2g-secc","vnas","netviewdm2","aurora","cfs","lrp","netcp","imqstomps","cdfunc","umeter","deos","cora","perimlan","umsp","gnutella2","ptcnameservice","olhost","timbuktu-srv4","coauthor","quake3","rimf-ps","nq-ap","lofr-lm","objcall","itelserverport","pcanywherestat","niobserver","geneve","rtimeviewer","snss","smar-se-port2","ddi-udp-1","raven-rmp","workflowdir","escp-ip","etcd-server","novation","nat-t-ike","avdecc","abbs","mediavault-gui","apple-vpns-rp","auriga-router","inedo","netview-aix-3","a13-an","serverview-icc","avantageb2b","swgps","tonidods","imsp","fprams","entextlow","syncserver","trivnet1","esmmanager","sdadmind","afs3-update","nmsd","ds-admin","msgsrvr","mppolicy-v5","netop-school","spectraport","d-cinema-rrp","oracle-em2","aal-lm","rt-event-s","ucontrol","ptp","kopek-httphead","as-servermap","patrol-ism","n1-rmgmt","csd-mgmt-port","msfw-array","cifs","pcmail-srv","l3-hbmon","xmsg","statsci2-lm","paging-port","sslp","emgmsg","crestron-cips","jmevt2","pro-ed","thrtx","dtk","oemcacao-rmi","frc-hp","sti-envision","webyast","ufsd","ivecon-port","hsl-storm","procos-lm","entextxid","licensedaemon","plcy-net-svcs","mvs-capacity","wimsic","smbdirect","casp","connect-server","hdap","empire-empuma","int-rcv-cntrl","traingpsdata","magicnotes","candrp","amandaidx","filemaker","cssp","hacl-poll","ics","sigma-port","wssauthsvc","vpsipport","domain-s","seispoc","hbci","unieng","giop-ssl","x9-icue","apparenet-tps","propel-msgsys","theta-lm","canon-capt","llsurfup-https","nrcabq-lm","mc-brk-srv","tsrmagt","de-server","afs3-fileserver","rcc-host","assuria-slm","mcs-calypsoicf","poweronnud","la-maint","caldsoft-backup","lbm","rap-service","mc3ss","navisphere-sec","serialnumberd","mrssrendezvous","microtalon-dis","commlinx-avl","infolibria","boe-resssvr1","secure-mqtt","blp4","exonet","nessus","tpmd","geniuslm","ccnx","nexus-portal","arca-api","lm-perfworks","cajo-discovery","sdo-ssh","s-openmail","cfw","rmiaux","homeportal-web","ptp-general","edb-server1","ibm-res","ifcp-port","pegasus-ctl","apcupsd","nati-svrloc","amanda","audiojuggler","mtn","apc-2161","novell-zen","cpqrpm-agent","commerce","manet","lutap","mikey","cert-initiator","vids-avtp","amidxtape","eapsp","serverview-rm","avocent-proxy","cab-protocol","konspire2b","cplscrambler-in","drmsmc","unbind-cluster","kvm-via-ip","linx","aurora-cmgr","netassistant","isns","instl_bootc","candp","cronus","ezproxy","link","aises","vsiadmin","fujitsu-dtcns","igi-lm","picknfs","afesc-mc","rapidbase","dkmessenger","aocp","progistics","esri_sde","abb-hw","prm-nm","murray","isg-uda-server","psprserver","unicall","dixie","send","cadsi-lm","emprise-lsc","rtsp","xvttp","mps-raft","copycat","affiliate","collaber","dtv-chan-req","agpolicy","ndsconnect","tn-tl-r2","simplifymedia","intecom-ps2","netnews","linkname","rscd","rxe","scotty-ft","sip","vrtstrapserver","sentinelsrm","x-bone-api","nim-wan","n2h2server","med-ovw","juka","gdp-port","wsynch","visionpyramid","rushd","nexentamv","vhd","boe-resssvr2","esp-encap","ads-s","scenidm","signacert-agent","pq-lic-mgmt","neoiface","vtsas","sccip-media","mpc-lifenet","telnet","ltp","aspentec-lm","binkp","bintec-admin","boe-cachesvr","res-sap","fiveacross","tmophl7mts","robix","fazzt-ptp","hp-pdl-datastr","avi-nms","tcp-id-port","iberiagames","boks_servc","winddx","couchdb","clearvisn","dsmcc-download","xss-srv-port","warehouse","rsvd","lipsinc","mpls-udp-dtls","pop3s","cgi-starapi","indigo-server","chargen","who","westell-stats","pipe_server","about","ogs-server","bex-xr","locus-map","netmap_lm","isi-gl","cft-2","scte30","dsmcc-passthru","nessus-xmlrpc","bv-ds","vsinet","ircu","razor","caistoragemgr","amahi-anywhere","icms","irp","escvpnet","m-wnn","boomerang","tns-server","ncxcp","dsmcc-session","epp","ppactivation","donnyworld","omsdk","gmmp","netml","bctp-server","axis-wimp-port","aequus","wv-csp-udp-cir","nimaux","ischat","att-mt-sms","proshare-mc-2","urm","sunclustergeo","cpsp","msgsys","kv-agent","tritium-can","dsatp","ff-sm","imyx","xdsxdm","bcs","vantronix-mgmt","quailnet","scanstat-1","supportassist","xtlserv","vacdsm-sws","dab-sti-c","iris-beep","targus-getdata2","immedianet-bcn","fjippol-port1","ovsam-mgmt","vfo","e-builder","aries-kfinder","popup-reminders","sossd-disc","signet-ctf","rds2","mysql-im","six-degrees","disclose","xo-wave","tacacs","synel-data","sfm-db-server","dicom-iscl","vcmp","xandros-cms","queueadm","hsrpv6","snapp","doom","ingreslock","wsm-server-ssl","opennl-voice","httpx","oftep-rpc","veritas-vis2","ng-control","ipcore","orbix-config","starquiz-port","snifferclient","ariel2","gwen-sonya","set","vrtp","ingres-net","user-manager","timbuktu-srv3","firstcall42","sift-uft","checkpoint-rtm","dai-shell","proremote","wello","lyskom","crusecontrol","nst","apani3","gue","gtaua","npmp-local","datasurfsrv","ftps-data","msexch-routing","servicemeter","netmon","origo-sync","call-sig-trans","cslg","p2pq","xmpp-server","smpppd","megaco-h248","fcp","twamp-control","jaxer-web","comscm","work-sol","hello-port","syam-webserver","dell-eql-asm","acnet","z-wave-tunnel","directv-soft","swx-gate","med-net-svc","ppsms","afs3-volser","webphone","interworld","rpc2portmap","ssp-client","snare","ppsuitemsg","doc-server","dlpx-sp","mupdate","sco-aip","mevent","cucme-2","sometimes-rpc22","smar-se-port1","qftest-lookup","advant-lm","suitcase","ampify","de-spot","ehtp","netwatcher-db","nat-pmp-status","vrts-auth-port","oracle-em1","fairview","liberty-lm","jetform","fjdmimgr","d2000kernel","netsteward","wxbrief","lbc-watchdog","zabbix-trapper","ew-disc-cmd","pmcd","dmp","hde-lcesrvr-2","imap3","ias-session","coherence","sntlkeyssrvr","brdptc","smip-agent","bhevent","questnotify","mobileanalyzer","msolap-ptp2","bmcpatrolagent","pcc-mfp","stargatealerts","ardus-mtrns","g-talk","amicon-fpsu-s","choiceview-clt","softrack-meter","edix","rt-sound","rds","wilkenlistener","availant-mgr","sdxauthd","powerburst","lmcs","sptx","aws-brf","dvcprov-port","hp-pxpib","xcap-portal","cardbox","metrics-pas","atlinks","sonuscallsig","assyst-dr","http","magbind","ssmd","kwdb-commn","tpcsrvr","dpm-acm","recvr-rc","castorproxy","starschool","spss","tinymessage","cisco-sccp","pads","idonix-metanet","cawas","wpgs","naap","boe-resssvr4","norton-lambert","apparenet-ts","hub-open-net","cisco-avp","weave","mns-mail","wlbs","softdataphone","newwavesearch","netview-aix-6","talon-disc","mccwebsvr-port","street-stream","sso-service","ofsd","neod2","contclientms","precise-vip","ddi-udp-3","accessnetwork","linktest-s","dt-mgmtsvc","re-mail-ck","vatp","openwebnet","dbsyncarbiter","openflow","slim-devices","boe-eventsrv","netprowler-manager2","med-fsp-tx","oveadmgr","esmagent","gilatskysurfer","jaxflow-data","scx-proxy","netopia-vo5","bitcoin","connlcli","esbroker","neo4j","emperion","spock","ocserver","a17-an-an","hawk","lm-mon","derby-repli","cruise-enum","sco-dtmgr","babel","nw-license","dec-mbadmin","digital-notary","allstorcns","mbap","iiw-port","htrust","gearman","asctrl-agent","drmsfsd","alias","caller9","sceanics","rrac","lanrevserver","beyond-remote","pentbox-sim","erpc","intrepid-ssl","mecomm","rlm-admin","global-cd-port","anthony-data","con","linogridengine","murmur","obrpd","payrouter","clutild","embrace-dp-s","cosir","teradataordbms","iascontrol","jamlink","shockwave2","dna-cml","snmp-tcp-port","gopher","proxy-plus","plgproxy","codasrv-se","antidotemgrsvr","wfremotertm","izm","slinkysearch","cinegrfx-lm","faxcomservice","lv-pici","vxlan-gpe","fyre-messanger","ndl-tcp-ois-gw","redstorm_info","ibm-diradm","metaconsole","bruce","remoteware-un","buschtrommel","autodesk-nlm","pjj-player","vocaltec-gold","vrpn","mpidcagt","nimrod-agent","initlsmsad","blwnkl-port","raw-serial","prex-tcp","ah-esp-encap","brlp-1","netmo-http","snaresecure","afs","miteksys-lm","etp","uec","sonardata","3m-image-lm","dashpas-port","laplink","codasrv","rhp-iibp","lonworks","isdd","nbd","vnc-http","discard","raid-cd","onehome-help","lupa","bdir_pub","3par-evts","aairnet-1","amcs","rsvp_tunnel","q3ade","iadt-tls","netbackup","bosswave","saratoga","tacnews","esro-emsdp","di-drm","ams","rsftp","pcanywheredata","a27-ran-ran","moy-corp","btpp2audctr1","vnc-1","uaiact","dbstar","ampl-lic","magiccontrol","golem","ccu-comm-3","netmagic","ovrimosdbman","dtp","avesterra","dxmessagebase1","visd","altserviceboot","gtp-control","proshare-mc-1","encrypted_admin","p6ssmc","nmc-disc","bcs-lmserver","iposplanet","tcpmux","sge_qmaster","secure-cfg-svr","o2server-port","kti-icad-srvr","rnrp","apani4","teamcoherence","squid-htcp","acp-conduit","di-msg","dj-ice","pit-vpn","tpip","spss-lm","cdl-server","hyperscsi-port","hpoms-ci-lstn","otlp","opentable","ismaeasdaqtest","hecmtl-db","netconf-ch-tls","prosharevideo","abatemgr","mpsserver","social-alarm","netview-aix-12","nppmp","cxws","chmd","jomamqmonitor","dgpf-exchg","vrtl-vmf-ds","digiman","hfcs","navbuddy","netbill-trans","fis","pconnectmgr"],k=n("4702"),E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"all-msg-tipping-point"},[n("el-drawer",{attrs:{title:"全部信息",visible:t.tippingPointDrawerVisible,direction:"rtl",size:"50%","before-close":t.handleCloseTippingPointDrawer},on:{"update:visible":function(e){t.tippingPointDrawerVisible=e}}},[n("div",{staticClass:"all-msg-tipping-point-body"},[t.validTabOptionList&&t.validTabOptionList.length?n("div",{staticClass:"safe-msg"},[n("h3",[t._v("安全情报")]),n("header",{staticClass:"safe-msg-header"},t._l(t.validTabOptionList,(function(e){return n("span",{key:e.key,staticClass:"header-item",class:{active:t.activeTab===e.key},on:{click:function(n){return t.scrollToView(e.key)}}},[t._v(t._s(e.name))])})),0),n("main",{ref:"safeMsgMain",staticClass:"safe-msg-main"},t._l(t.validTabOptionList,(function(e){return n("div",{key:e.key,ref:e.key,refInFor:!0,staticClass:"main-item"},[n("div",{staticClass:"main-item-title"},[t._v(t._s(e.name))]),n("ul",{staticClass:"main-item-body"},t._l(t.safeInformData[0][e.key],(function(e,i){return n("li",{key:i,staticClass:"main-item-body-li"},[n("div",{staticClass:"left"},[n("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{effect:"dark",content:e,placement:"top"}},[n("span",{staticClass:"main-item-body-li-text"},[n("span",{staticClass:"ellipse-text"},[t._v(t._s(e))])])])],1),n("svg-icon",{staticClass:"main-item-body-li-svg",attrs:{"icon-class":"search"},on:{click:function(n){return t.searchVulProve(e)}}}),n("svg-icon",{staticClass:"main-item-body-li-svg",attrs:{"icon-class":"copy"},on:{click:function(n){return t.copyText(e)}}})],1)})),0)])})),0)]):t._e(),n("div",{staticClass:"vul-prove",class:{"vul-prove100":!t.validTabOptionList||!t.validTabOptionList.length}},[n("div",{staticClass:"vul-prove-header"},[n("h3",[t._v("漏洞证明")]),n("div",{staticClass:"highlight-input"},[n("span",{staticClass:"find-btn-box"},[n("span",{staticClass:"number"},[t._v(t._s(t.total?t.highlightWordIndex+1:0)+"/"+t._s(t.total))]),n("svg-icon",{staticClass:"svg first",attrs:{"icon-class":"arrow"},on:{click:t.onPreSelector}}),n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"arrow"},on:{click:t.onNextSelector}})],1),n("el-input",{staticClass:"search-input",attrs:{placeholder:"请输入","prefix-icon":"el-icon-search",clearable:""},on:{input:t.handleSearchKeyword},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)]),n("div",{staticClass:"vul-prove-main"},[n("div",{staticClass:"vul-prove-operate"},[n("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},[n("span",{staticClass:"copy-btn",attrs:{id:"vulProve","data-clipboard-text":t.showAllDataClone},on:{click:function(e){return t.handleCopy("vulProve","rightTab")}}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1)])],1),n("div",{staticClass:"text-area"},[n("code",[n("pre",{domProps:{innerHTML:t._s(t.xss.process(t.showAllDataClone))}})])])])])])])],1)},T=[],O=(n("e01a"),n("d28b"),n("13d5"),n("4e82"),n("5e38")),P=n.n(O),j=n("74a0"),L=n.n(j),D=n("b311"),R=n.n(D),B={IP:"ipv4_list",DOMAIN:"domain_list",EMAIL:"email_list",ACCOUNT:"username_list",URL:"url_list",FILE:"file_list"},N=[{name:"IP地址",key:B.IP},{name:"域名",key:B.DOMAIN},{name:"账号",key:B.ACCOUNT},{name:"邮箱",key:B.EMAIL},{name:"文件名称",key:B.FILE},{name:"URL",key:B.URL}],F={props:{showTippingPoint:{type:Boolean,default:!1},data:{type:Object,default:function(){}}},data:function(){return{xss:new P.a.FilterXSS({whiteList:{selfelement:["style","class"]}}),responseSelectorList:[],tippingPointDrawerVisible:!1,activeTab:B.EMAIL,TAB_OPTION:B,tabOptionList:N,scrollTimer:null,keyword:"",total:0,highlightWordIndex:0,showAllDataClone:"",safeInformData:[],validTabOptionList:[]}},computed:{},watch:{showTippingPoint:{handler:function(t){var e=this;this.tippingPointDrawerVisible=t,t&&(this.showAllDataClone=this._.cloneDeep(this.data.vulProve.data),this.safeInformData=this._.cloneDeep(this.data.vuls),this.getValidTabOptionList(),this.data.query&&this.searchVulProve(this.data.query),this.$nextTick((function(){e.$refs.safeMsgMain&&e.$refs.safeMsgMain.addEventListener("scroll",e._.debounce(e.handleScroll,300))})))},immediate:!0}},mounted:function(){},methods:{searchVulProve:function(t){t&&(this.keyword=t.trim(),this.handleSearchKeyword())},getValidTabOptionList:function(){var t=this.safeInformData;t&&t.length?this.validTabOptionList=this.tabOptionList.filter((function(e){return t[0][e.key]&&t[0][e.key].length})):this.validTabOptionList=[]},copyText:function(t){var e=this;this.$copyText(t).then((function(){e.$message({message:e.$t("global.copy_success"),type:"success"})}))},handleCopy:function(t,e){clearTimeout(this.copyTimer),e&&(new R.a("#".concat(t)),this.isCopyInit?this.isCopyInit=!1:this.$message({message:this.$t("global.copy_success"),type:"success"}))},handleSearchKeyword:function(){var t=this;this.total=0,this.highlightWordIndex=0,this.showAllDataClone=this._.cloneDeep(this.data.vulProve.data);var e=this.showAllDataClone,n=L()(e);if(this.keyword&&this.keyword.trim()){var i=["&lt;","&gt;","&quot;"];n=n.replace(/\?/gm,"---999");var r=n.match(new RegExp(L()(this.keyword.trim().replace(/\?/gm,"---999")),"gim"));r&&(this.total=r.length,r=Object(b["a"])(new Set(r)).sort().reverse(),r.forEach((function(t){n=n.replace(new RegExp(t,"gm"),'<selfelement class="quake-highlight" style="background-color:yellow">'.concat(t,"</selfelement>"))}))),n=n.replace(new RegExp("---999","gm"),"?"),i.includes(L()(this.keyword.trim()))&&(n=n.replace(new RegExp(L()(this.keyword.trim()),"gm"),'<selfelement class="quake-highlight" style="background-color:yellow">'.concat(L()(this.keyword.trim()),"</selfelement>"))),this.showAllDataClone=n,this.$nextTick((function(){t.responseSelectorList=document.querySelectorAll(".quake-highlight"),t.total=t.responseSelectorList.length,t.responseSelectorList.forEach((function(e){t.$set(e.style,"backgroundColor","yellow")})),t.responseSelectorList&&t.responseSelectorList.length&&(t.responseSelectorList[0].scrollIntoView(),t.responseSelectorList[0].style.backgroundColor="#F7AB4F")}))}else this.showAllDataClone=n,this.responseSelectorList=[]},onPreSelector:function(){var t=this;this.responseSelectorList&&this.responseSelectorList.length&&(this.highlightWordIndex=this.highlightWordIndex-1<0?this.responseSelectorList.length-1:this.highlightWordIndex-1,this.responseSelectorList.forEach((function(e){t.$set(e.style,"backgroundColor","yellow")})),this.responseSelectorList[this.highlightWordIndex].style.backgroundColor="#F7AB4F",this.responseSelectorList[this.highlightWordIndex].scrollIntoView())},onNextSelector:function(){var t=this;this.responseSelectorList&&this.responseSelectorList.length&&(this.highlightWordIndex=this.highlightWordIndex+1>this.responseSelectorList.length-1?0:this.highlightWordIndex+1,this.responseSelectorList.forEach((function(e){t.$set(e.style,"backgroundColor","yellow")})),this.responseSelectorList[this.highlightWordIndex].style.backgroundColor="#F7AB4F",this.responseSelectorList[this.highlightWordIndex].scrollIntoView())},scrollToView:function(t){var e=this;this.activeTab=t,this.activeByClick=!0,this.$refs[t][0].scrollIntoView({behavior:"smooth"}),clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout((function(){e.activeByClick=!1}),1e3)},getClientHeightList:function(){var t=[],e=!0,n=!1,i=void 0;try{for(var r,o=this.validTabOptionList[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var a=r.value,s=this.$refs[a.key][0];s&&t.push(s.clientHeight)}}catch(c){n=!0,i=c}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}var l=t.map((function(e,n){return t.slice(0,n+1).reduce((function(t,e){return t+e}))}));return{clientHeightList:t,resClientHeight:l}},handleScroll:function(){if(!this.activeByClick){var t=this.$refs.safeMsgMain.scrollTop,e=this.getClientHeightList(),n=e.resClientHeight;e.clientHeightList;if(n.length)for(var i=0;i<n.length;i++){if(t<n[i]){this.activeTab=this.validTabOptionList[i].key;break}i===n.length-1&&(this.activeTab=this.validTabOptionList[i+1]?this.validTabOptionList[i+1].key:this.validTabOptionList[i].key)}}},handleScroll2:function(){if(!this.activeByClick){var t=this.$refs.safeMsgMain,e=t.scrollTop,n=(t.clientHeight,t.scrollHeight,this.$refs[B.EMAIL].clientHeight),i=this.$refs[B.ACCOUNT].clientHeight;this.activeTab=e<n?B.EMAIL:e>=n&&e<n+i?B.ACCOUNT:B.URL}},handleCloseTippingPointDrawer:function(){this.keyword="",this.$emit("update:showTippingPoint",!1)}}},z=F,V=(n("9f75"),n("2877")),G=Object(V["a"])(z,E,T,!1,null,"10b256d6",null),H=G.exports,W=n("d3e3"),U=n("b37b"),Z=n("09e7"),Y=n("b414"),X=n("e955"),q=n("bc48"),K=n("9e17"),Q=n("925c"),J=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.faviconLoading||t.faviconList.length?n("div",{staticClass:"related-favicon-wrapper",class:"theme-dark-green"===t.themeClassName?"dark-time":"daytime"},[n("div",{staticClass:"left"},[t._v(t._s(t.$t("search.relevant_icon"))+" "),t.faviconLoading?n("i",{staticClass:"el-icon-loading"}):n("span",[t._v("("+t._s(t.faviconList.length)+")")])]),n("div",{staticClass:"right"},[t.faviconLoading?n("i",{staticClass:"el-icon-loading"}):[t._l(t.faviconList,(function(e,i){return n("div",{key:i,staticClass:"icon-box",on:{mouseenter:function(e){return t.onMouseenter(i)},mouseleave:function(e){return t.onMouseleave()}}},[e.data?n("img",{staticClass:"icon",attrs:{src:"data:image/png;base64,"+e.data},on:{click:function(n){return t.onSearchFavicon(e.key)}}}):e.s3_url?n("img",{staticClass:"icon",attrs:{src:e.s3_url},on:{click:function(n){return t.onSearchFavicon(e.key)}}}):t._e(),i<10?n("span",{staticClass:"number"},[t._v(t._s(t._f("numberFilter")(e.doc_count)))]):t._e(),t.hoverIndex===i?n("span",{staticClass:"number"},[t._v(t._s(t._f("numberFilter")(e.doc_count)))]):t._e(),t.isTriggerSelectMore?n("span",{staticClass:"check-box",on:{click:function(n){return n.preventDefault(),t.onCheck(e.key)}}},[t.checkList.includes(e.key)?n("el-checkbox",{attrs:{value:!0}}):n("el-checkbox",{attrs:{value:!1}})],1):t._e()])})),n("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.search_similar_icon"),placement:"top"}},[1===t.faviconList.length?n("div",{on:{click:t.openSearchRelatedDialog}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"similarIcon"}})],1):t._e()]),t.isShowMoreFavicon&&t.window&&t.window.Config&&t.window.Config.permission&&t.window.Config.permission.includes("front.query.icon.more")&&t.faviconList.length>9?n("span",{staticClass:"more normal-more",on:{click:t.onSearchMoreFavicon}},[t._v(t._s(t.$t("search.more"))+" "),n("svg-icon",{attrs:{"icon-class":"more"}})],1):t._e(),t.faviconList.length>2?n("span",{staticClass:"more"},[t.isTriggerSelectMore?n("span",[n("span",{staticStyle:{margin:"0 10px"},on:{click:t.onSureSelectMore}},[t._v(t._s(t.$t("global.confirm")))]),n("span",{staticStyle:{color:"#676F77"},on:{click:t.onCancelSelectMore}},[t._v(t._s(t.$t("global.cancel")))])]):n("span",{staticStyle:{margin:"0 10px"},on:{click:t.onTriggerSelectMore}},[t._v(t._s(t.$t("search.multi_select")))])]):t._e()]],2),n("RelatedRangeSlider",{attrs:{visible:t.relatedRangeDialogVisible},on:{"update:visible":function(e){t.relatedRangeDialogVisible=e},sure:t.onSelectRange}})],1):t._e()},$=[],tt=(n("c740"),n("a434"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-dialog",{attrs:{"custom-class":"related-range-dialog",title:t.$t("search.swipe_to_select_similarity"),visible:t.visible,"close-on-click-modal":t.defaultConfig.closeOnClickModal,"lock-scroll":t.defaultConfig.lockScroll,width:t.defaultConfig.width,center:"","append-to-body":"",top:"30vh"},on:{"update:visible":function(e){t.visible=e},closed:t.onCloseDialog}},[n("span",{staticClass:"el-dialog__title",attrs:{slot:"title"},slot:"title"},[n("i",{staticClass:"el-icon-warning"}),t._v(" "+t._s(t.$t("search.swipe_to_select_similarity"))+" ")]),n("div",{staticClass:"dialog-content"},[n("el-slider",{class:"current-"+((t.data.range-80)/5+1),attrs:{"tooltip-class":"custom-related-tooltip","format-tooltip":t.formatTooltip,"show-tooltip":t.visible,"show-stops":"",step:5,min:80,max:100,marks:t.defaultConfig.marks},model:{value:t.data.range,callback:function(e){t.$set(t.data,"range",e)},expression:"data.range"}})],1),t.defaultConfig.isShowFooter?n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticStyle:{width:"100px",height:"40px","font-size":"18px"},on:{click:t.onCancelDialog}},[t._v(t._s(t.$t("global.cancel")))]),n("el-button",{staticStyle:{color:"#fff",width:"100px",height:"40px","font-size":"18px"},attrs:{type:"primary"},on:{click:function(e){return t.onSureDialog()}}},[t._v(t._s(t.$t("global.confirm")))])],1):t._e()])],1)}),et=[],nt={range:90},it={props:{visible:{type:Boolean,default:!1}},data:function(){return{defaultConfig:{width:"575px",closeOnClickModal:!1,lockScroll:!0,isShowFooter:!0,marks:{80:"80",85:"85",90:"90",95:"95",100:"100"}},data:nt}},watch:{visible:function(t){t&&(this.data=this._.cloneDeep(nt))}},methods:{closeDialog:function(){this.$emit("update:visible",!1)},onCancelDialog:function(){this.closeDialog()},onSureDialog:function(){this.$emit("sure",this.data),this.closeDialog()},onCloseDialog:function(){this.closeDialog()},formatTooltip:function(t){return"".concat(t,"%")}}},rt=it,ot=(n("fc60"),n("8628"),Object(V["a"])(rt,tt,et,!1,null,"34ec8a67",null)),at=ot.exports;function st(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function lt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?st(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ct={components:{RelatedRangeSlider:at},props:{faviconList:{type:Array,default:function(){return[]}},isShowMoreFavicon:{type:Boolean,default:!0},isRelatedIcon:{type:Boolean,default:!1},faviconLoading:{type:Boolean,default:!1},timeRange:{type:Array,default:function(){return[]}}},filters:{numberFilter:function(t){var e,n=String(t),i=n.length;if(i<=3&&(e=n),i>3&&i<=6){var r=n.substring(0,i-3);e="".concat(r,"K")}if(i>6&&i<=9){var o=n.substring(0,i-6);e="".concat(o,"M")}if(i>9){var a=n.substring(0,i-9);e="".concat(a,"B")}return e}},data:function(){return{isShowMore:!1,loading:!0,hoverIndex:-1,relatedRangeDialogVisible:!1,isTriggerSelectMore:!1,checkList:[]}},computed:lt({},Object(w["e"])("site",["role","themeClassName"])),methods:lt({},Object(w["b"])("site",["toggleMultiDialog"]),{onSearchMoreFavicon:function(){this.role?this.$emit("onSearchMoreFavicon"):this.toggleMultiDialog("unLogin")},onSearchFavicon:function(t,e){this.role?e?this.$emit("onSearchFavicon",t,!1):this.$emit("onSearchFavicon",'favicon: "'.concat(t,'"'),!this.isRelatedIcon):this.toggleMultiDialog("unLogin")},onMouseenter:function(t){t>=10&&(this.hoverIndex=t)},onMouseleave:function(){this.hoverIndex=-1},openSearchRelatedDialog:function(){this.role?1===this.role?this.toggleMultiDialog("unVip"):this.relatedRangeDialogVisible=!0:this.toggleMultiDialog("unLogin")},onSelectRange:function(t){var e,n,i,r,o,a;return regeneratorRuntime.async((function(s){while(1)switch(s.prev=s.next){case 0:return e=t.range,this.$emit("update:faviconLoading",!0),this.$emit("update:isShowMoreFavicon",!1),n={favicon_hash:this.faviconList[0].key,similar:e/100,size:50},this.timeRange[0]&&this.timeRange[1]&&(i=Object(y["a"])(this.timeRange,2),r=i[0],o=i[1],n.start_time=this.dayjs(r).add((new Date).getTimezoneOffset()/60,"hour").format("YYYY-MM-DD HH:mm:ss"),n.end_time=this.dayjs(o).add((new Date).getTimezoneOffset()/60,"hour").add(86399,"second").format("YYYY-MM-DD HH:mm:ss")),s.next=7,regeneratorRuntime.awrap(Object(I["Y"])(lt({},n,{latest:this.$route.query.latest})));case 7:a=s.sent,0===a.code&&(this.$emit("update:isRelatedIcon",!0),this.$emit("update:faviconList",a.data)),this.$emit("update:faviconLoading",!1);case 10:case"end":return s.stop()}}),null,this)},onTriggerSelectMore:function(){this.isTriggerSelectMore=!0},onSureSelectMore:function(){if(this.checkList.length){var t="";this.checkList.forEach((function(e,n){t+=n?' OR favicon:"'.concat(e,'"'):'favicon:"'.concat(e,'"')}));var e="(".concat(t,")");this.isTriggerSelectMore=!1,this.checkList=[],this.onSearchFavicon(e,!0)}else this.$message.warning("您尚未选中任何favicon！")},onCancelSelectMore:function(){this.checkList=[],this.isTriggerSelectMore=!1},onCheck:function(t){if(this.checkList.includes(t)){var e=this.checkList.findIndex((function(e){return e===t}));this.checkList.splice(e,1)}else this.checkList.push(t)}})},ut=ct,ht=(n("4134"),Object(V["a"])(ut,J,$,!1,null,"54f47c20",null)),dt=ht.exports,pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("IocDialog",{attrs:{dialogConfig:t.exportDialogConfig},on:{cancelDialog:t.onCancelDialog,sureDialog:t.onExportSureDialog},scopedSlots:t._u([{key:"footer",fn:function(){return[n("div",[n("span",{on:{click:t.onExportCancelDialog}},[t.step>1&&!t.isQuakeCertificate?n("el-button",{staticStyle:{"margin-right":"20px"}},[t._v("上一步")]):n("el-button",{staticStyle:{"margin-right":"20px"}},[t._v("取消")])],1),(t.isQuakeTippingPoint?t.step<2:t.step<3)?n("el-button",{attrs:{type:"primary"},on:{click:t.onExportSureDialog}},[t._v("下一步")]):"analysis"===t.exportDialogConfig.exportDialogType?n("el-button",{attrs:{disabled:t.userInfo.month_remaining_credit+t.userInfo.constant_credit<parseInt(t.computedAnalysisTotal*t.unitPoint*t.unitRate),type:"primary"},on:{click:function(e){return t.onExportSureDialog("analysis")}}},[t._v(" 确定 ")]):"quake_service"===t.searchList.selectIndex&&"analysis"!==t.activeNameType?n("el-dropdown",{staticClass:"export-data-el-dropdown",attrs:{"split-button":"",trigger:"click",loading:t.exportLoading,disabled:"",type:"primary"},on:{command:t.saveTemplateExport}},[n("el-button",{staticStyle:{padding:"0px",margin:"0px",background:"none",border:"none",color:"#fff"},attrs:{disabled:t.userInfo.month_remaining_credit+t.userInfo.constant_credit<t.number},on:{click:t.onExportSureDialog}},[t._v("导出")]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{staticClass:"clearfix",attrs:{disabled:t.userInfo.month_remaining_credit+t.userInfo.constant_credit<t.number}},[t._v("保存为模板并导出")])],1)],1):n("el-button",{attrs:{loading:t.exportLoading,disabled:t.userInfo.month_remaining_credit+t.userInfo.constant_credit<t.number,type:"primary"},on:{click:t.onExportSureDialog}},[t._v("确定")])],1)]},proxy:!0}])},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.isShowProgress?n("div",{staticClass:"step-line"},[n("div",{staticClass:"line-item",class:{active:t.step}},[n("div",{staticClass:"name"},[t._v("步骤一")]),n("div",{staticClass:"dot"},[t.step>1?n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultRight"}}):t._e()],1),n("div",{staticClass:"des"},["analysis"!==t.exportDialogConfig.exportDialogType?n("span",[t._v("选择需要统计的字段")]):n("span",[t._v("字段选择")])])]),"analysis"===t.exportDialogConfig.exportDialogType||t.isQuakeTippingPoint?t._e():n("div",{staticClass:"line-item",class:{active:t.step>1}},[n("div",{staticClass:"name"},[t._v("步骤二")]),n("div",{staticClass:"dot"},[t.step>2?n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultRight"}}):t._e()],1),"quake_service"===t.searchList.selectIndex||"quake_vulnerability"===t.searchList.selectIndex?n("div",{staticClass:"des"},[t._v("数据去重")]):n("div",{staticClass:"des"},[t._v("端口配置")])]),n("div",{staticClass:"line-item",class:{active:t.step>2}},[n("div",{staticClass:"name"},["analysis"===t.exportDialogConfig.exportDialogType||t.isQuakeTippingPoint?n("span",[t._v("步骤二")]):n("span",[t._v("步骤三")])]),n("div",{staticClass:"dot"}),n("div",{staticClass:"des"},["analysis"!==t.exportDialogConfig.exportDialogType||t.isQuakeTippingPoint?n("span",[t._v("选择需要统计的格式和数量")]):n("span",[t._v("格式及数量选择")])])])]):t._e(),1===t.step&&"quake_host"!==t.searchList.selectIndex&&"quake_service"!==t.searchList.selectIndex?n("div",{staticClass:"step-content"},[t._l(t.exportFields,(function(e,i){return n("div",{key:i,staticClass:"item-fields"},[n("div",{staticClass:"title"},[n("el-checkbox",{attrs:{indeterminate:t.itemArr[i].isIndeterminate},on:{change:function(e){return t.handleCheckAllChange(i)}},model:{value:t.itemArr[i].checkAll,callback:function(e){t.$set(t.itemArr[i],"checkAll",e)},expression:"itemArr[index].checkAll"}},[t._v(t._s(e.title))])],1),n("div",{staticClass:"checkbox-group"},[n("el-checkbox-group",{on:{change:function(e){return t.handleCheckedItemChange(i,e)}},model:{value:t.itemArr[i].includesFields,callback:function(e){t.$set(t.itemArr[i],"includesFields",e)},expression:"itemArr[index].includesFields"}},t._l(e.fields,(function(e,i){return n("el-checkbox",{key:i,attrs:{label:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1)],1)])})),n("div",{staticClass:"check-all"},[n("el-checkbox",{on:{change:t.onSelectAll},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("以上全选")]),t.isEmpty?n("span",{staticClass:"tip"},[t._v("请选择导出字段")]):t._e()],1)],2):t._e(),1===t.step&&"quake_host"===t.searchList.selectIndex?n("div",{staticClass:"step-content"},[t._l(t.exportFields,(function(e,i){return n("div",{key:i,staticClass:"item-fields"},["服务数据"!==e.title?[n("div",{staticClass:"title"},[n("el-checkbox",{attrs:{indeterminate:t.itemArr[i].isIndeterminate},on:{change:function(e){return t.handleCheckAllChange(i)}},model:{value:t.itemArr[i].checkAll,callback:function(e){t.$set(t.itemArr[i],"checkAll",e)},expression:"itemArr[index].checkAll"}},[t._v(t._s(e.title))])],1),n("div",{staticClass:"checkbox-group"},[n("el-checkbox-group",{on:{change:function(e){return t.handleCheckedItemChange(i)}},model:{value:t.itemArr[i].includesFields,callback:function(e){t.$set(t.itemArr[i],"includesFields",e)},expression:"itemArr[index].includesFields"}},t._l(e.fields,(function(e,i){return n("el-checkbox",{key:i,attrs:{label:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1)],1)]:t._e()],2)})),n("div",{staticClass:"check-all"},[n("el-checkbox",{on:{change:t.onHostSelectAll},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("以上全选")]),t.isEmpty?n("span",{staticClass:"tip"},[t._v("请选择导出字段")]):t._e()],1)],2):t._e(),1===t.step&&"quake_service"===t.searchList.selectIndex?n("div",{staticClass:"step-content"},[t._l(t.exportFields,(function(e,i){return n("div",{key:i,staticClass:"item-fields"},[n("div",{staticClass:"title"},[n("el-checkbox",{attrs:{indeterminate:t.itemArr[i].isIndeterminate},on:{change:function(e){return t.handleCheckAllChange(i)}},model:{value:t.itemArr[i].checkAll,callback:function(e){t.$set(t.itemArr[i],"checkAll",e)},expression:"itemArr[index].checkAll"}},[t._v(t._s(e.title))])],1),n("div",{staticClass:"checkbox-group"},[n("el-checkbox-group",{on:{change:function(e){return t.handleCheckedItemChange(i,e)}},model:{value:t.itemArr[i].includesFields,callback:function(e){t.$set(t.itemArr[i],"includesFields",e)},expression:"itemArr[index].includesFields"}},t._l(e.fields,(function(e,i){return n("el-checkbox",{key:i,attrs:{label:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1)],1)])})),n("div",{staticClass:"check-all"},[n("el-checkbox",{on:{change:t.onSelectAll},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("以上全选")]),t.isEmpty?n("span",{staticClass:"tip"},[t._v("请选择导出字段")]):t._e(),"quake_service"===t.searchList.selectIndex&&"analysis"!==t.activeNameType?n("el-select",{staticClass:"export-data-template-select",attrs:{clearable:"",placeholder:t.selectPlaceholder,"popper-class":"export-data-template-select-options"},on:{change:t.selsectChange},model:{value:t.exportTemplate,callback:function(e){t.exportTemplate=e},expression:"exportTemplate"}},[t._l(t.cities,(function(e){return n("el-option",{key:e.template_name,attrs:{label:e.template_name,value:e.template_name}},[n("p",{staticClass:"text-truncate",staticStyle:{float:"left",margin:"0",padding:"0",width:"107px"}},[t._v(t._s(e.template_name))]),n("i",{staticClass:"el-icon-delete",staticStyle:{float:"right","line-height":"20px"},on:{click:function(n){return n.stopPropagation(),t.delTelementName(e)}}})])})),n("div",{staticClass:"export-data-template-select-empty",attrs:{slot:"empty"},slot:"empty"},[n("div",{staticClass:"no-data-select-slot"},[t._v("不选择模版")]),n("div",[t._v("暂未添加模板，可在步骤三将本次所选字段保存为模板哦，方便下次使用")])])],2):t._e()],1)],2):t._e(),2===t.step&&"quake_host"===t.searchList.selectIndex?n("div",{staticClass:"step-content"},[n("div",{staticClass:"item-fields"},[n("div",{staticClass:"title before"},[t._v("端口扫描范围")]),n("div",{staticClass:"checkbox-group"},[n("el-radio-group",{model:{value:t.time_range,callback:function(e){t.time_range=e},expression:"time_range"}},[n("el-radio",{attrs:{label:"-1M"}},[t._v("近一月")]),n("el-radio",{attrs:{label:"-3M"}},[t._v("近三月")]),n("el-radio",{attrs:{label:"-6M"}},[t._v("近半年")]),n("el-radio",{attrs:{label:"-1Y"}},[t._v("近一年")]),n("el-radio",{attrs:{label:""}},[t._v("全部")])],1)],1)]),t._l(t.exportFields,(function(e,i){return n("div",{key:i,staticClass:"item-fields"},["服务数据"===e.title?[n("div",{staticClass:"title"},[n("el-checkbox",{attrs:{indeterminate:t.itemArr[i].isIndeterminate},on:{change:function(e){return t.handleCheckAllChange(i)}},model:{value:t.itemArr[i].checkAll,callback:function(e){t.$set(t.itemArr[i],"checkAll",e)},expression:"itemArr[index].checkAll"}},[t._v(t._s(e.title))])],1),n("div",{staticClass:"checkbox-group"},[n("el-checkbox-group",{on:{change:function(e){return t.handleCheckedItemChange(i)}},model:{value:t.itemArr[i].includesFields,callback:function(e){t.$set(t.itemArr[i],"includesFields",e)},expression:"itemArr[index].includesFields"}},t._l(e.fields,(function(e,i){return n("el-checkbox",{key:i,attrs:{label:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1)],1)]:t._e()],2)}))],2):t._e(),2!==t.step||"quake_host"===t.searchList.selectIndex||t.isQuakeTippingPoint?t._e():n("div",{staticClass:"step-content"},[0===t.duplicateOption.length?[n("div",{staticClass:"item-fields"},[n("div",{staticClass:"title"},[n("el-checkbox",{attrs:{disabled:"",indeterminate:t.setConfig.isIndeterminate},on:{change:t.handleSetAllChange},model:{value:t.setConfig.checkAll,callback:function(e){t.$set(t.setConfig,"checkAll",e)},expression:"setConfig.checkAll"}},[t._v("数据去重选择")])],1),n("div",{staticClass:"checkbox-group"},[n("el-checkbox-group",{attrs:{disabled:""},on:{change:t.handleSetItemChange},model:{value:t.removeDuplicateFields,callback:function(e){t.removeDuplicateFields=e},expression:"removeDuplicateFields"}},[t._l(t.itemArr,(function(e){return[t._l(e.fields,(function(i){return[t.duplicateOptionAll.includes(i.value)?n("el-checkbox",{key:i.value,attrs:{label:i.value}},[t._v(" "+t._s(t.getLabel(e.fields,i.value))+" ")]):t._e()]}))]}))],2)],1)]),n("div",{staticClass:"notice"},[n("svg-icon",{staticClass:"icon",attrs:{"icon-class":"tip"}}),t._v(" 当前数据字段不支持去重，请返回上一步重新选择字段或跳过该步骤 ")],1)]:[n("div",{staticClass:"item-fields"},[n("div",{staticClass:"title"},[n("el-checkbox",{attrs:{indeterminate:t.setConfig.isIndeterminate},on:{change:t.handleSetAllChange},model:{value:t.setConfig.checkAll,callback:function(e){t.$set(t.setConfig,"checkAll",e)},expression:"setConfig.checkAll"}},[t._v("数据去重选择")])],1),n("div",{staticClass:"checkbox-group"},[n("el-checkbox-group",{on:{change:t.handleSetItemChange},model:{value:t.removeDuplicateFields,callback:function(e){t.removeDuplicateFields=e},expression:"removeDuplicateFields"}},[t._l(t.itemArr,(function(e){return[t._l(e.includesFields,(function(i){return[t.duplicateOption.includes(i)?n("el-checkbox",{key:i.value,attrs:{label:i}},[t._v(" "+t._s(t.getLabel(e.fields,i))+" ")]):t._e()]}))]}))],2)],1)])]],2),3===t.step||2===t.step&&t.isQuakeTippingPoint?n("div",{staticClass:"step-content"},["quake_host"===t.searchList.selectIndex?n("div",{staticClass:"item-fields"},[n("div",{staticClass:"title before"},[t._v("导出样式选择")]),n("div",{staticClass:"checkbox-group"},[n("el-radio-group",{model:{value:t.flatten,callback:function(e){t.flatten=e},expression:"flatten"}},[n("el-radio",{attrs:{label:!0}},[t._v("数据平铺")]),n("el-radio",{attrs:{label:!1}},[t._v("数据合并")])],1)],1)]):t._e(),n("div",{staticClass:"item-fields"},[n("div",{staticClass:"title before"},[t._v("导出格式选择")]),n("div",{staticClass:"checkbox-group"},[n("el-radio-group",{model:{value:t.fileType,callback:function(e){t.fileType=e},expression:"fileType"}},[n("el-radio",{attrs:{label:"json"}},[t._v("JSON")]),t.flatten?n("el-radio",{attrs:{label:"xlsx"}},[t._v("EXCEL")]):t._e()],1)],1)]),n("div",{staticClass:"item-fields"},[n("div",{staticClass:"title before"},[t._v("数量选择")]),n("div",{staticClass:"checkbox-group"},[n("div",{staticClass:"number-des"},["theme-quake"===t.themeClassName?n("svg-icon",{staticClass:"icon",attrs:{"icon-class":"quakeTip"}}):n("svg-icon",{staticClass:"icon",attrs:{"icon-class":"quakeTip1"}}),"analysis"===t.exportDialogConfig.exportDialogType?n("span",[t._v("请选择导出字段的数量")]):n("span",[t._v("当前共有 "),n("span",{staticClass:"number"},[n("span",[t._v(t._s(t.total.toLocaleString()))])]),t._v(" 条搜索结果")])],1),n("div",{staticClass:"number-tip"},["analysis"===t.exportDialogConfig.exportDialogType?[n("div",t._l(t.itemArr,(function(e,i){return n("div",{key:i,staticStyle:{"margin-bottom":"8px"}},[e.includesFields.length?[n("div",{staticStyle:{display:"inline-block",color:"#36383B","font-weight":"bold"}},[t._v(t._s(t.exportFields[i].title))]),t._l(e.includesFields,(function(i,r){return n("div",{key:r,staticStyle:{"margin-bottom":"6px",color:"#36383B"}},[n("span",{staticStyle:{display:"inline-block",width:"110px"}},[t._v(t._s(t.getFieldsLabel(i,e.fields)))]),n("span",[t._v("统计前")]),n("el-input-number",{staticStyle:{width:"160px",margin:"0 6px"},attrs:{min:1,step:1,max:t.limitNumber},model:{value:e.amount[r],callback:function(n){t.$set(e.amount,r,n)},expression:"item.amount[i]"}}),n("span",[t._v("条")])],1)}))]:t._e()],2)})),0),t.userInfo.month_remaining_credit+t.userInfo.constant_credit<parseInt(t.computedAnalysisTotal*t.unitPoint*t.unitRate)?n("span",[n("svg-icon",{staticClass:"icon",staticStyle:{"margin-left":"0"},attrs:{"icon-class":"tip"}}),t._v(" 当前积分不支持导出此数量的数据 ")],1):t._e()]:[n("el-input-number",{staticStyle:{width:"160px"},attrs:{min:1,step:1,max:t.computedLimitNumber},model:{value:t.number,callback:function(e){t.number=e},expression:"number"}}),t.userInfo.month_remaining_credit+t.userInfo.constant_credit<t.number?n("span",[n("svg-icon",{staticClass:"icon",attrs:{"icon-class":"tip"}}),t._v(" 当前积分不支持导出此数量的数据 ")],1):t._e()]],2)])]),"quake_host"===t.searchList.selectIndex&&t.selectIncludesFields.length>0?n("div",{staticClass:"item-fields"},[n("div",{staticClass:"title before"},[t._v("效果预览 ")]),"xlsx"===t.fileType?n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.searchResultListFlat,border:"",height:400}},[t.selectIncludesFields.includes("ip")?n("el-table-column",{attrs:{prop:"ip",width:"180",label:"IP地址"}}):t._e(),t.selectIncludesFields.includes("port")?n("el-table-column",{attrs:{prop:"port",label:"端口号"}}):t._e(),t.selectIncludesFields.includes("transport")?n("el-table-column",{attrs:{width:"100",prop:"transport",label:"传输层协议"}}):t._e(),t.selectIncludesFields.includes("name")?n("el-table-column",{attrs:{prop:"name",label:"服务名称"}}):t._e(),t.selectIncludesFields.includes("product")?n("el-table-column",{attrs:{prop:"product",label:"服务产品"}}):t._e(),t.selectIncludesFields.includes("version")?n("el-table-column",{attrs:{prop:"version",label:"服务版本"}}):t._e(),t.selectIncludesFields.includes("time")?n("el-table-column",{attrs:{width:"140",prop:"time",label:"测绘时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.dayjs(e.row.time).format("YYYY-MM-DD HH:mm:ss"))+" ")]}}],null,!1,2895157984)}):t._e(),t.selectIncludesFields.includes("cert")?n("el-table-column",{attrs:{prop:"cert",label:"证书信息"}}):t._e(),t.selectIncludesFields.includes("product_name_cn")?n("el-table-column",{attrs:{prop:"product_name_cn",width:"120",label:"应用名称（中文）"}}):t._e(),t.selectIncludesFields.includes("product_name_en")?n("el-table-column",{attrs:{prop:"product_name_en",width:"120",label:"应用名称（英文）"}}):t._e(),t.selectIncludesFields.includes("product_catalog")?n("el-table-column",{attrs:{prop:"product_catalog",label:"应用类别"}}):t._e(),t.selectIncludesFields.includes("product_type")?n("el-table-column",{attrs:{prop:"product_type",label:"应用类型"}}):t._e(),t.selectIncludesFields.includes("product_level")?n("el-table-column",{attrs:{prop:"product_level",label:"应用层级"}}):t._e(),t.selectIncludesFields.includes("product_vendor")?n("el-table-column",{attrs:{prop:"product_vendor",width:"120",label:"应用生产厂商"}}):t._e(),t.selectIncludesFields.includes("hostname")?n("el-table-column",{attrs:{prop:"hostname",width:"140",label:"主机名"}}):t._e(),t.selectIncludesFields.includes("asn")?n("el-table-column",{attrs:{prop:"asn",width:"100",label:"自治域号码"}}):t._e(),t.selectIncludesFields.includes("org")?n("el-table-column",{attrs:{prop:"org",width:"180",label:"自治域归属组织"}}):t._e(),t.selectIncludesFields.includes("isp")?n("el-table-column",{attrs:{prop:"isp",label:"运营商"}}):t._e(),t.selectIncludesFields.includes("country_cn")?n("el-table-column",{attrs:{prop:"country_cn",width:"120",label:"国家（中文）"}}):t._e(),t.selectIncludesFields.includes("province_cn")?n("el-table-column",{attrs:{prop:"province_cn",width:"120",label:"省份（中文）"}}):t._e(),t.selectIncludesFields.includes("city_cn")?n("el-table-column",{attrs:{prop:"city_cn",width:"120",label:"城市（中文）"}}):t._e(),t.selectIncludesFields.includes("country_en")?n("el-table-column",{attrs:{prop:"country_en",width:"120",label:"国家（英文）"}}):t._e(),t.selectIncludesFields.includes("province_en")?n("el-table-column",{attrs:{prop:"province_en",width:"120",label:"省份（英文）"}}):t._e(),t.selectIncludesFields.includes("city_en")?n("el-table-column",{attrs:{prop:"city_en",width:"120",label:"城市（英文）"}}):t._e(),t.selectIncludesFields.includes("street_cn")?n("el-table-column",{attrs:{prop:"street_cn",width:"120",label:"街道（中文）"}}):t._e(),t.selectIncludesFields.includes("street_en")?n("el-table-column",{attrs:{prop:"street_en",width:"120",label:"街道（英文）"}}):t._e(),t.selectIncludesFields.includes("gps")?n("el-table-column",{attrs:{prop:"gps",width:"120",label:"GPS坐标"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.gps?e.row.gps.join(" - "):"--")+" ")]}}],null,!1,4263160280)}):t._e(),t.selectIncludesFields.includes("owner")?n("el-table-column",{attrs:{prop:"owner",width:"120",label:"IP归属单位"}}):t._e()],1):n("json-viewer",{attrs:{value:t.flatten?t.flatFilter(t.searchResultListFlat):t.listFilter(t.searchResultList),"expand-depth":2,copyable:"",boxed:"",sort:""}})],1):t._e(),n("div",{staticClass:"item-fields points",class:["theme-quake"===t.themeClassName?"points1":"points2"]},[n("div",{staticClass:"title pt before"},[t._v("我的积分 "),0===t.removeDuplicateFields.length?n("span",{staticClass:"tips"},[n("svg-icon",{staticClass:"previewIcon",attrs:{"icon-class":"tip"}}),"analysis"===t.exportDialogConfig.exportDialogType?n("span",[t._v("共"+t._s(t.computedAnalysisTotal)+"条数据，本次导出将消费"+t._s(parseInt(t.computedAnalysisTotal*t.unitPoint*t.unitRate))+"积分 ")]):n("span",[t._v("共"+t._s(t.number)+"条数据，本次导出将消费"+t._s(t.number)+"积分")])],1):n("span",{staticClass:"tips"},[n("svg-icon",{staticClass:"previewIcon",attrs:{"icon-class":"tip"}}),t._v(" 本次导出将根据去重后的结果消费积分，详情可在 "),n("span",{staticClass:"consumeLink",on:{click:t.consumeLink}},[t._v("个人中心-消费记录")]),t._v(" 中查看 ")],1)]),n("div",{staticClass:"pt-content"},[n("div",{staticClass:"month"},[n("img",{attrs:{src:t.monthScoreSrc,alt:""}}),n("div",{staticClass:"des"},[n("div",[t._v(" 月度剩余积分 "),n("el-tooltip",{attrs:{content:"月度积分于每月初重置"+t.creditPoint,placement:"top"}},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"tip"}})],1)],1),n("div",{staticClass:"amount"},[t._v(t._s(t.userInfo.month_remaining_credit&&t.userInfo.month_remaining_credit.toLocaleString()))])])]),n("div",{staticClass:"month"},[n("img",{attrs:{src:t.longScoreSrc,alt:""}}),n("div",{staticClass:"des"},[n("div",[t._v("长效积分")]),n("div",{staticClass:"amount",staticStyle:{color:"#00AB7A"}},[t._v(t._s(t.userInfo.constant_credit&&t.userInfo.constant_credit.toLocaleString()))])])]),n("div",{staticClass:"moreContainer"},[n("div",{staticClass:"more",on:{click:t.onSkipMember}},[t._v("获取更多积分")])])])])]):t._e()])])],1)},ft=[],gt=(n("a623"),n("2b19"),n("670e")),mt=n("349e"),vt=n.n(mt),yt=n("bb30"),bt=n("6899");function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _t={quake_host:{type:["json"],duplicate:[]},quake_service:{type:["json","xlsx"],duplicate:["ip","port","service.http.host","transport","service.name","service.product"]},quake_tipping_point:{type:["json","xlsx"],duplicate:["ip","port","service.http.host","transport","service.name","service.product"]},quake_vulnerability:{type:["json","xlsx"],duplicate:["ip","port","vulnerability.name"]}},Ct={props:{exportDialogConfig:{type:Object,default:function(){}},searchList:{type:Object,default:function(){}},searchResultList:{type:Array,default:function(){return[]}},timeRange:{type:Array,default:function(){return[]}},total:{type:Number,default:0},analysisKeys:{type:Array,default:function(){return[]}},activeNameType:{type:String,default:function(){return"all"}}},components:{JsonViewer:vt.a},watch:{"exportDialogConfig.dialogVisible":{handler:function(t){if(t){if(this.number=this.total,this.exportDialogConfig.title="导出数据",this.isQuakeCertificate)return this.step=3,this.getExportLimit(),void this.getUserInfo();this.step=1,"quake_service"===this.searchList.selectIndex?"analysis"===this.exportDialogConfig.exportDialogType?(this.exportDialogConfig.title="导出统计结果",this.defaultIncludeFields=this.analysisKeys):1===this.role?this.defaultIncludeFields=["ip","port","location.country_cn","location.province_cn","location.city_cn"]:this.defaultIncludeFields=["ip","port","service.name","service.product","location.country_cn","location.province_cn","location.city_cn"]:this.defaultIncludeFields=["ip","port","location.country_cn","vulnerability.name","services.port"],this.getGetExportTemplate("quake_service"),this.getExportLimit(),this.getUserInfo(),this.getExportFields(this.exportDialogConfig.exportDialogType)}}},itemArr:{handler:function(t){var e=t.find((function(t){return t.includesFields.length}));this.isEmpty=!e},deep:!0},total:{handler:function(t){this.number=t||0}},flatten:function(){!1===this.flatten&&(this.fileType="json")}},computed:wt({},Object(w["e"])("site",["userInfo","role","themeClassName","tippingPointInformTag"]),{isShowProgress:function(){return!this.isQuakeCertificate},informTagQuery:function(){return this.searchList.searchVal?this.tippingPointInformTag.length?" AND (".concat(this.tippingPointInformTag.map((function(t){return t.query_tp})).join(" OR "),")"):"":this.tippingPointInformTag.length?"".concat(this.tippingPointInformTag.map((function(t){return t.query_tp})).join(" OR ")):""},isQuakeCertificate:function(){return this.$route.query.selectIndex===yt["b"]},isQuakeTippingPoint:function(){return this.$route.query.selectIndex===yt["d"]},getNotifyColor:function(){return"theme-dark-green"===this.themeClassName?"#9DA6B2":"#26323E"},duplicateOption:function(){var t=_t[this.searchList.selectIndex].duplicate,e=[];return this.itemArr.forEach((function(n){n.includesFields.forEach((function(n){t.includes(n)&&e.push(n)}))})),e},duplicateOptionAll:function(){var t=_t[this.searchList.selectIndex].duplicate;return t},selectIncludesFields:function(){if("quake_host"!==this.searchList.selectIndex)return[];var t=["ip"];return this.itemArr.forEach((function(e){e.includesFields.forEach((function(e){if("ip"!==e){var n=e;n=n.replace("services.components.",""),n=n.replace("services.",""),n=n.replace("location.",""),t.push(n)}}))})),t},searchResultListFlat:function(){var t=[];this.searchResultList.forEach((function(e){e.services&&e.services.forEach((function(n){var i=Object.assign({},wt({},e),wt({},e.location),wt({},n));delete i.location,delete i.services,t.push(i)}))}));var e=this.number>30?30:this.number;return t.slice(0,e)},computedLimitNumber:function(){return Math.min(this.limitNumber,this.total)},computedAnalysisTotal:function(){var t=0;return this.itemArr.forEach((function(e){e.amount.forEach((function(e){t+=e}))})),t}}),data:function(){return{loading:!1,exportLoading:!1,creditPoint:0,exportFields:[],step:1,itemArr:[],allFileds:[],defaultIncludeFields:[],checkAll:!1,isEmpty:!1,fileType:"json",flatten:!0,time_range:"-1M",removeDuplicateFields:[],setConfig:{isIndeterminate:!1,checkAll:!1},number:0,limitNumber:0,unitPoint:0,unitRate:0,monthScoreSrc:n("b09b"),longScoreSrc:n("d2d8"),exportTemplate:"",oldExportTemplate:"",cities:[],selectPlaceholder:"请选择导出模板",oldTemplateInfo:{}}},mounted:function(){},methods:wt({},Object(w["b"])("site",["updateUserInfo"]),{getFieldsLabel:function(t,e){var n=e.filter((function(e){return e.value===t}));return n[0].label},getUserInfo:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(Object(gt["z"])());case 2:t=r.sent,e=t.code,n=t.data,0===e&&(n.role.sort((function(t,e){return e.priority-t.priority})),i=n.role.findIndex((function(t){return t.credit>0})),this.creditPoint=i>-1?n.role[i].credit:0,this.updateUserInfo(n));case 5:case"end":return r.stop()}}),null,this)},handleCheckAllChange:function(t){if(this.itemArr[t].isIndeterminate=!1,this.itemArr[t].checkAll){var e=[];this.itemArr[t].fields.forEach((function(t){e.push(t.value)})),this.itemArr[t].includesFields=e}else this.itemArr[t].includesFields=[];this.updateDuplicateFields()},handleCheckedItemChange:function(t,e){e&&e.includes("url")&&(this.itemArr[t].includesFields.includes("ip")||(this.itemArr[t].includesFields.push("ip"),this.$message({type:"warning",message:"您已勾选URL，则IP、端口必选！"})),this.itemArr[t].includesFields.includes("port")||(this.itemArr[t].includesFields.push("port"),this.$message({type:"warning",message:"您已勾选URL，则IP、端口必选！"})));var n=this.itemArr[t].fields.length,i=this.itemArr[t].includesFields.length;this.itemArr[t].checkAll=i===n,this.itemArr[t].isIndeterminate=i>0&&i<n,this.updateDuplicateFields()},onSelectAll:function(t){var e=this;t?this.itemArr.forEach((function(t){e.$set(t,"checkAll",!0),e.$set(t,"isIndeterminate",!1);var n=[];t.fields.forEach((function(t){n.push(t.value)})),e.$set(t,"includesFields",n)})):this.itemArr.forEach((function(t){e.$set(t,"checkAll",!1),e.$set(t,"isIndeterminate",!1),e.$set(t,"includesFields",[])})),this.updateDuplicateFields()},updateDuplicateFields:function(){var t=this,e=[];this.itemArr.forEach((function(t){e=e.concat(t.includesFields)})),this.removeDuplicateFields=this.removeDuplicateFields.filter((function(t){return e.includes(t)}));var n=e.filter((function(e){return t.duplicateOption.includes(e)}));0!==n.length?(this.setConfig.checkAll=n.length===this.removeDuplicateFields.length,this.setConfig.isIndeterminate=n.length>0&&n.length<this.removeDuplicateFields.length):this.setConfig.checkAll=!1},onHostSelectAll:function(t){var e=this;t?this.itemArr.forEach((function(t,n){if(1!==n){e.$set(t,"checkAll",!0),e.$set(t,"isIndeterminate",!1);var i=[];t.fields.forEach((function(t){i.push(t.value)})),e.$set(t,"includesFields",i)}})):this.itemArr.forEach((function(t,n){1!==n&&(e.$set(t,"checkAll",!1),e.$set(t,"isIndeterminate",!1),e.$set(t,"includesFields",[]))}))},getLabel:function(t,e){var n=t.find((function(t){return t.value===e}));return n.label},handleSetAllChange:function(t){var e=this;if(this.setConfig.isIndeterminate=!1,t){var n=[];this.itemArr.forEach((function(t){n=n.concat(t.includesFields)})),this.removeDuplicateFields=n.filter((function(t){return e.duplicateOption.includes(t)}))}else this.removeDuplicateFields=[]},handleSetItemChange:function(){var t=this,e=[];this.itemArr.forEach((function(t){e=e.concat(t.includesFields)}));var n=e.filter((function(e){return t.duplicateOption.includes(e)}));this.setConfig.checkAll=n.length===this.removeDuplicateFields.length,this.setConfig.isIndeterminate=this.removeDuplicateFields.length>0&&this.removeDuplicateFields.length<n.length},getExportLimit:function(){var t,e,n,i,r=this;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:return t="quake_service"===this.searchList.selectIndex?"analysis"===this.exportDialogConfig.exportDialogType?"query.aggregation.web.size_limit":"query.index.quake_service.web.export_limit":"quake_host"===this.searchList.selectIndex?"query.index.quake_host.web.export_limit":"quake_certificate"===this.searchList.selectIndex?"query.index.quake_certificate.web.export_limit":"query.index.quake_vulnerability.web.export_limit","analysis"===this.exportDialogConfig.exportDialogType&&(Object(I["o"])("query.aggregation.export.credit_each").then((function(t){var e=t.code,n=t.data;0===e&&(r.unitRate=n)})),Object(I["o"])("query.index.quake_service.export.credit_each").then((function(t){var e=t.code,n=t.data;0===e&&(r.unitPoint=n)}))),o.next=4,regeneratorRuntime.awrap(Object(I["o"])(t));case 4:e=o.sent,n=e.code,i=e.data,0===n&&(this.limitNumber=i);case 7:case"end":return o.stop()}}),null,this)},onSkipMember:function(){var t=this.$router.resolve({name:"member",query:{type:"recharge"}}),e=t.href;window.open(e,"_blank")},getExportCacheFields:function(t){var e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.removeDuplicateFields=[],r.next=3,regeneratorRuntime.awrap(Object(I["l"])("analysis"===t?"aggregations_".concat(this.searchList.selectIndex):this.searchList.selectIndex));case 3:e=r.sent,n=e.code,i=e.data,this.exportTemplate=i.template_name,this.oldTemplateInfo=i,0===n&&i.export_fields&&(this.defaultIncludeFields="analysis"===t?Object.keys(i.export_fields):i.export_fields,this.removeDuplicateFields=i.deduplicate_fields);case 8:case"end":return r.stop()}}),null,this)},getExportFields:function(t){var e,n,i,r,o,a=this;return regeneratorRuntime.async((function(s){while(1)switch(s.prev=s.next){case 0:return this.loading=!0,s.next=3,regeneratorRuntime.awrap(this.getExportCacheFields(t));case 3:return s.next=5,regeneratorRuntime.awrap(Object(I["n"])(this.searchList.selectIndex,t,{latest:this.$route.query.latest}));case 5:e=s.sent,n=e.code,i=e.data,0===n&&(r=[],o=[],this.exportFields=i,this.exportFields.forEach((function(t,e){o.push({checkAll:!1,isIndeterminate:!0,fields:[],includesFields:[]}),t.fields.forEach((function(t){r.push(t.value),o[e].fields.push(t),a.defaultIncludeFields.includes(t.value)&&o[e].includesFields.push(t.value)}))})),this.allFileds=r,this.itemArr=o,this.checkAll=!1,this.setConfig.checkAll=!1,this.flatten=!0,this.time_range="-1M",this.loading=!1);case 8:case"end":return s.stop()}}),null,this)},isArrEqual:function(t,e){return t.length===e.length&&t.every((function(t,n){return Object.is(t,e[n])}))},ajaxExportCertificateData:function(){var t,e,n,i,r,o;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return this.exportLoading=!0,t={size:this.number,extension:this.fileType},e=this.getNotifyColor,n='\n          <p style="color:'.concat(e,';font-size: 16px;">导出任务已提交！</p>\n                   <p style="color:').concat(e,';font-size: 16px;">可在文件中心查看导出进度。</p>\n                   <p style="color:#4279FD;font-size:14px;cursor: pointer;float:right;margin-top: 10px;transform: translateX(50px);">立即查看</p>\n          '),a.next=6,regeneratorRuntime.awrap(Object(bt["a"])(t));case 6:i=a.sent,r=i.code,this.exportLoading=!1,0===r&&(this.$emit("changeExportDialogVisible",!1),o=this,this.$notify({dangerouslyUseHTMLString:!0,message:n,onClick:o.checkFileCenter}));case 10:case"end":return a.stop()}}),null,this)},getExportData:function(t,e,n){var i,r,o,a,s,l,c,u,h,d,p,f,g=this;return regeneratorRuntime.async((function(m){while(1)switch(m.prev=m.next){case 0:if(this.exportLoading=!0,i=this.time_range?{extension:this.fileType,flatten:this.flatten,time_range:this.time_range}:{extension:this.fileType,flatten:this.flatten},r="quake_host"===this.searchList.selectIndex?i:{extension:this.fileType},this.isQuakeTippingPoint?r.query=this.searchList.searchVal?"".concat(this.searchList.searchVal).concat(this.informTagQuery):"".concat(this.informTagQuery):r.query=this.searchList.searchVal,r.start=0,r.shortcuts=this.searchList.shortcuts,this.isQuakeTippingPoint||(r.deduplicate_fields=this.removeDuplicateFields),"analysis"===this.exportDialogConfig.exportDialogType?(r.size=this.computedAnalysisTotal,r.export_fields={},this.itemArr.forEach((function(t){t.includesFields.forEach((function(e,n){r.export_fields[e]=t.amount[n]}))}))):(r.size=this.number,r.export_fields=[],this.itemArr.forEach((function(t){var e;(e=r.export_fields).push.apply(e,Object(b["a"])(t.includesFields))}))),this.timeRange[0]&&this.timeRange[1]&&(o=Object(y["a"])(this.timeRange,2),a=o[0],s=o[1],r.start_time=this.dayjs(a).add((new Date).getTimezoneOffset()/60,"hour").format("YYYY-MM-DD HH:mm:ss"),r.end_time=this.dayjs(s).add((new Date).getTimezoneOffset()/60,"hour").add(86399,"second").format("YYYY-MM-DD HH:mm:ss")),this.searchList.rule&&(r.rule=this.searchList.rule),"string"===typeof this.searchList.ip_list&&this.searchList.ip_list.length&&(r.ip_list=[this.searchList.ip_list]),Array.isArray(this.searchList.ip_list)&&this.searchList.ip_list.length&&(r.ip_list=this.searchList.ip_list),l=this.searchList.selectIndex,c=r,u=this.getNotifyColor,h='\n          <p style="color:'.concat(u,';font-size: 16px;">导出任务已提交！</p>\n                   <p style="color:').concat(u,';font-size: 16px;">可在文件中心查看导出进度。</p>\n                   <p style="color:#4279FD;font-size:14px;cursor: pointer;float:right;margin-top: 10px;transform: translateX(50px);">立即查看</p>\n          '),"quake_service"===this.searchList.selectIndex&&"analysis"!==this.activeNameType&&(this.exportTemplate?(r.template_name=this.exportTemplate,!0===e&&(r.template_name=n),this.oldTemplateInfo.extension===c.extension&&this.isArrEqual(this.oldTemplateInfo.export_fields,c.export_fields)&&this.isArrEqual(this.oldTemplateInfo.deduplicate_fields,c.deduplicate_fields)?(c=wt({},r,{},this.oldTemplateInfo),h='\n                <p style="color:'.concat(u,';font-size: 16px;">').concat(!0===e?"请勿重复保存模版,":"",'导出任务已提交！</p>\n                        <p style="color:').concat(u,';font-size: 16px;">可在文件中心查看导出进度。</p>\n                        <p style="color:#4279FD;font-size:14px;cursor: pointer;float:right;margin-top: 10px;transform: translateX(50px);">立即查看</p>\n                ')):(h='\n                <p style="color:'.concat(u,';font-size: 16px;">').concat(!0===e?"模版已保存":"模版中的字段已同步更新",',导出任务已提交！</p>\n                        <p style="color:').concat(u,';font-size: 16px;">可在文件中心查看导出进度。</p>\n                        <p style="color:#4279FD;font-size:14px;cursor: pointer;float:right;margin-top: 10px;transform: translateX(50px);">立即查看</p>\n                '),!0!==e&&this.cities.forEach((function(t){c.extension===t.extension&&g.isArrEqual(c.export_fields,t.export_fields)&&g.isArrEqual(c.deduplicate_fields,t.deduplicate_fields)&&(c=wt({},r,{},t))})))):(!0===e&&(c.template_name=n),h='\n              <p style="color:'.concat(u,';font-size: 16px;">').concat(!0===e?"模版已保存,":"",'导出任务已提交！</p>\n                      <p style="color:').concat(u,';font-size: 16px;">可在文件中心查看导出进度。</p>\n                      <p style="color:#4279FD;font-size:14px;cursor: pointer;float:right;margin-top: 10px;transform: translateX(50px);">立即查看</p>\n              '),this.cities.forEach((function(t){c.extension===t.extension&&g.isArrEqual(c.export_fields,t.export_fields)&&g.isArrEqual(c.deduplicate_fields,t.deduplicate_fields)&&(c=wt({},r,{},t),h='\n                <p style="color:'.concat(u,';font-size: 16px;">1、此模版未保存</p>\n                <p style="color:').concat(u,';font-size: 12px;">因包含的字段与“').concat(t.template_name,'”重复，请您知晓。</p>\n                <p style="color:').concat(u,';font-size: 16px;">2、导出任务已提交，可在文件中心查看导出进度。</p>\n                <p style="color:#4279FD;font-size:14px;cursor: pointer;float:right;margin-top: 10px;transform: translateX(50px);">立即查看</p>\n              '))})))),"analysis"!==t){m.next=23;break}return m.next=20,regeneratorRuntime.awrap(Object(I["m"])(wt({},c,{latest:this.searchList.latest}),l,t));case 20:m.t0=m.sent,m.next=26;break;case 23:return m.next=25,regeneratorRuntime.awrap(Object(I["m"])(wt({},c,{latest:this.searchList.latest}),l));case 25:m.t0=m.sent;case 26:d=m.t0,p=d.code,0===p&&(this.$emit("changeExportDialogVisible",!1),f=this,this.$notify({dangerouslyUseHTMLString:!0,message:h,onClick:f.checkFileCenter})),this.exportLoading=!1;case 30:case"end":return m.stop()}}),null,this)},checkFileCenter:function(){this.$notify.closeAll();var t=this.$router.resolve({name:"personal",query:{tab:"file"}}),e=t.href;window.open(e,"_blank")},onCancelDialog:function(){this.$emit("changeExportDialogVisible",!1)},onExportCancelDialog:function(){if(this.step>1&&!this.isQuakeCertificate){var t=1;"analysis"===this.exportDialogConfig.exportDialogType&&(t=2),this.step=this.step-t}else this.$emit("changeExportDialogVisible",!1)},onExportSureDialog:_.debounce((function(t,e,n){var i=this;if(1===this.step){if(!this.isEmpty){var r=1;"analysis"===this.exportDialogConfig.exportDialogType&&(r=2,this.itemArr.forEach((function(t){i.$set(t,"amount",[]),t.includesFields.forEach((function(){t.amount.push(i.limitNumber)}))}))),this.step=this.step+r}}else 2===this.step?(this.isQuakeTippingPoint&&this.getExportData(t,e,n),this.step=this.step+1):this.getExportData(t,e,n)}),300),consumeLink:function(){var t=this.$router.resolve({name:"personal",query:{tab:"payLog"}}),e=t.href;window.open(e,"_blank")},flatFilter:function(t){var e=this,n=this._.clone(t);if(!n)return[];var i=["ip"];this.itemArr.forEach((function(t){t.includesFields.forEach((function(t){"ip"!==t&&i.push(t)}))}));var r=this.selectIncludesFields;return n.map((function(t){var n={};return r.forEach((function(r){var o=i.filter((function(t){var e=t;return e=e.replace("services.components.",""),e=e.replace("services.",""),e=e.replace("location.",""),e===r}))[0];e._.set(n,o,t[r])})),n})).slice(0,this.number)},listFilter:function(t){var e=this,n=this._.clone(t);if(!n)return[];var i=["ip"];return this.itemArr.forEach((function(t){t.includesFields.forEach((function(t){if("ip"!==t){var e=t;e=e.replace("services.components.",""),e=e.replace("services.",""),i.push(e)}}))})),n.map((function(t){var n={};return i.forEach((function(i){var r=e._.get(t,i);(r||""===r)&&e._.set(n,i,r),t.services.forEach((function(t,r){var o=e._.get(t,i);o&&e._.set(n,"services[".concat(r,"].").concat(i),o),t&&t.components&&Array.isArray(t.components)&&t.components.forEach((function(t,o){var a=e._.get(t,i);a&&e._.set(n,"services[".concat(r,"].components[").concat(o,"]").concat(i),a)}))}))})),n}))},getGetExportTemplate:function(t){var e,n,i,r=this;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:return this.selectPlaceholder="请选择导出模板",this.cities=[],o.next=4,regeneratorRuntime.awrap(Object(I["p"])(t));case 4:e=o.sent,n=e.code,i=e.data,0===n&&(i.forEach((function(t){""!==t.template_name&&r.cities.push(t)})),0===this.cities.length&&(this.selectPlaceholder="不选择模版"));case 7:case"end":return o.stop()}}),null,this)},infoGetGetExportTemplate:function(t){var e,n,i,r,o=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return e=[],a.next=3,regeneratorRuntime.awrap(Object(I["A"])(t));case 3:n=a.sent,i=n.code,r=n.data,this.exportTemplate=r[0].template_name,this.oldTemplateInfo=wt({},r[0]),0===i&&(this.defaultIncludeFields=r[0].export_fields,this.removeDuplicateFields=r[0].deduplicate_fields,this.exportFields.forEach((function(t,n){e.push({checkAll:!1,isIndeterminate:!0,fields:[],includesFields:[]}),t.fields.forEach((function(t){e[n].fields.push(t),o.defaultIncludeFields.includes(t.value)&&e[n].includesFields.push(t.value)}))})),this.itemArr=e);case 8:case"end":return a.stop()}}),null,this)},selsectChange:function(t){this.infoGetGetExportTemplate({template_name:t})},delTelementName:function(t){var e=this;this.$confirm("确定删除此模版吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var n=Object(I["d"])(t.id),i=n.code;0===i&&(e.$message({type:"success",message:"删除成功!"}),e.getGetExportTemplate("quake_service"))})).catch((function(){}))},saveTemplateExport:function(){var t=this;this.$prompt("请输入模板名称","新建模板",{confirmButtonText:"确定并导出",cancelButtonText:"取消",inputPattern:/\S/,inputErrorMessage:"请输入模板名称"}).then((function(e){var n=e.value;t.onExportSureDialog(null,!0,n)})).catch((function(){}))}})},At=Ct,It=(n("eea8"),n("b639e"),Object(V["a"])(At,pt,ft,!1,null,"67a47711",null)),St=It.exports,Mt=n("2bed"),kt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{},[n("div",{staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsLoading,expression:"statisticsLoading"}],staticClass:"chart-item",staticStyle:{"margin-right":"0",width:"60%","border-top-right-radius":"0","border-bottom-right-radius":"0"}},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.world_statistics")))]),n("CustomizeAreaMap",{ref:"worldMap",staticStyle:{width:"100%"},attrs:{id:"wolrd-map"},on:{updateMapTheme:t.updateMapTheme}})],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&0===t.lastIndex,expression:"statisticsIndexLoading && lastIndex === 0"}],staticClass:"chart-item",staticStyle:{width:"40%","border-top-left-radius":"0","border-bottom-left-radius":"0"}},[n("div",{staticClass:"title"}),t.aggregationsData.country&&t.aggregationsData.country.length?n("div",{staticClass:"china-container"},[n("div",t._l(t.worldData1.rows,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<8&&e.country?[n("span",{staticClass:"name"},[t._v(t._s(e.country))])]:t._e()],2)})),0),n("div",{staticClass:"second-column"},t._l(t.worldData1.rows,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<8&&e.country?[n("div",{staticClass:"progress"},[n("el-progress",{staticClass:"pro",attrs:{"stroke-width":9,color:"#75A0EE",percentage:parseInt(100*e.total/t.worldTotal),"show-text":!1}})],1)]:t._e()],2)})),0),n("div",{staticClass:"third-column"},t._l(t.worldData1.rows,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<8&&e.country?[n("span",{staticClass:"number"},[t._v(t._s(t.formatDotNumber(e.total)))])]:t._e()],2)})),0)]):n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))])])]),n("div",{staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsLoading,expression:"statisticsLoading"}],staticClass:"chart-item",staticStyle:{"margin-right":"0",width:"60%","border-top-right-radius":"0","border-bottom-right-radius":"0"}},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.china_statistics")))]),n("CustomizeAreaMap",{ref:"chinaMap",staticStyle:{width:"100%"},attrs:{id:"china-map"},on:{updateChinaMapTheme:t.updateChinaMapTheme}})],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&0===t.lastIndex,expression:"statisticsIndexLoading && lastIndex === 0"}],staticClass:"chart-item",staticStyle:{width:"40%","border-top-left-radius":"0","border-bottom-left-radius":"0"}},[n("div",{staticClass:"title"}),t.aggregationsData.province_of_china&&t.aggregationsData.province_of_china.province&&t.aggregationsData.province_of_china.province.length?n("div",{staticClass:"china-container"},[n("div",t._l(t.aggregationsData.province_of_china.province,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<8?[n("span",{staticClass:"name"},[t._v(t._s(e.key))])]:t._e()],2)})),0),t.aggregationsData.province_of_china&&t.aggregationsData.province_of_china.province?n("div",{staticClass:"second-column"},t._l(t.aggregationsData.province_of_china.province,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<8?[n("div",{staticClass:"progress"},[n("el-progress",{staticClass:"pro",attrs:{"stroke-width":9,color:"#75A0EE",percentage:parseInt(100*e.doc_count/t.chinaTotal),"show-text":!1}})],1)]:t._e()],2)})),0):t._e(),t.aggregationsData.province_of_china&&t.aggregationsData.province_of_china.province?n("div",{staticClass:"third-column"},t._l(t.aggregationsData.province_of_china.province,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<8?[n("span",{staticClass:"number"},[t._v(t._s(t.formatDotNumber(e.doc_count)))])]:t._e()],2)})),0):t._e()]):n("span",{staticClass:"no-data"},[t._v(" "+t._s(t.$t("search.no_asset"))+" ")])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("meta_keywords")<t.lastIndex,expression:"loadMoreKeyList.indexOf('meta_keywords') < lastIndex"}],staticClass:"chart-row",staticStyle:{height:"auto"}},[n("div",{staticClass:"chart-item",staticStyle:{"margin-right":"0",width:"100%"}},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.website_statistics")))]),n("el-row",[n("el-col",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"meta_keywords"===t.startKey,expression:"statisticsIndexLoading && startKey === 'meta_keywords'"}],staticClass:"web-data-item",attrs:{span:12}},[n("div",{staticClass:"inner-title"},[t._v(t._s(t.$t("search.keyword_statistics")))]),t.metaKeywordsData.rows&&t.metaKeywordsData.rows.length?n("ve-bar",{attrs:{id:"keyword_statistics",data:t.metaKeywordsData,"theme-name":t.getVEchartsTheme,height:"400px","legend-visible":!1,colors:["#75A0EE"],extend:t.vendor.extend,events:t.chartEvents}}):n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))])],1),n("el-col",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"meta_keywords"===t.startKey,expression:"statisticsIndexLoading && startKey === 'meta_keywords'"}],staticClass:"web-data-item",attrs:{span:12}},[n("div",{staticClass:"inner-title"},[t._v(t._s(t.$t("search.website_type_statistics")))]),t.pageTypeData.rows&&t.pageTypeData.rows.length?n("ve-histogram",{attrs:{data:t.pageTypeData,height:"400px","theme-name":t.getVEchartsTheme,"legend-visible":!1,colors:["#75A0EE"],extend:t.level.extend,events:t.chartEvents}}):n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))])],1)],1),n("el-row",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("status_code")<t.lastIndex,expression:"loadMoreKeyList.indexOf('status_code') < lastIndex"}]},[n("el-col",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"status_code"===t.startKey,expression:"statisticsIndexLoading && startKey === 'status_code'"}],staticClass:"web-data-item",attrs:{span:12}},[n("div",{staticClass:"inner-title"},[t._v(t._s(t.$t("search.status_code_statistics")))]),t.statusCodeData.rows&&t.statusCodeData.rows.length?n("ve-bar",{attrs:{id:"status_code_statistics",data:t.statusCodeData,height:"400px","theme-name":t.getVEchartsTheme,"legend-visible":!1,colors:["#75A0EE"],extend:t.vendor.extend,events:t.chartEvents}}):n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))])],1),n("el-col",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"status_code"===t.startKey,expression:"statisticsIndexLoading && startKey === 'status_code'"}],staticClass:"web-data-item",attrs:{span:12}},[n("div",{staticClass:"inner-title"},[t._v(t._s(t.$t("search.website_dev_language_statistics")))]),t.aggregationsData.powered_by&&t.aggregationsData.powered_by.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"list-container"},t._l(t.aggregationsData.powered_by,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<6?[n("div",{staticClass:"top"},[n("span",[t._v(t._s(e.key))]),n("span",[t._v(t._s(e.doc_count))])]),n("div",[n("el-progress",{attrs:{"stroke-width":9,percentage:parseInt(100*e.doc_count/t.poweredByMax),"show-text":!1}})],1)]:t._e()],2)})),0)])],1)],1)]),"quake_vulnerability"===t.selectIndex?[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("vul_type")<t.lastIndex,expression:"loadMoreKeyList.indexOf('vul_type') < lastIndex"}],staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"vul_type"===t.startKey,expression:"statisticsIndexLoading && startKey === 'vul_type'"}],staticClass:"chart-item"},[t.aggregationsData.vul_type&&t.aggregationsData.vul_type.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v("漏洞类型统计")]),t.vulTypeData.rows&&t.vulTypeData.rows.length?n("ve-histogram",{attrs:{data:t.vulTypeData,height:"400px","theme-name":t.getVEchartsTheme,title:t.vulType.title,"legend-visible":!1,extend:t.vulType.extend,colors:["#75A0EE"]}}):t._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"vul_type"===t.startKey,expression:"statisticsIndexLoading && startKey === 'vul_type'"}],staticClass:"chart-item"},[n("div",{staticClass:"title"},[t._v("漏洞统计")]),t.aggregationsData.vul_name&&t.aggregationsData.vul_name.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"list-container"},t._l(t.aggregationsData.vul_name,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<6?[n("div",{staticClass:"top"},[n("span",[t._v(t._s(e.key))]),n("span",[t._v(t._s(e.doc_count))])]),n("div",[n("el-progress",{attrs:{"stroke-width":9,percentage:parseInt(100*e.doc_count/t.vulTypeTotal),"show-text":!1}})],1)]:t._e()],2)})),0)])])]:"quake_service"===t.selectIndex?[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("port")<t.lastIndex,expression:"loadMoreKeyList.indexOf('port') < lastIndex"}],staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"port"===t.startKey,expression:"statisticsIndexLoading && startKey === 'port'"}],staticClass:"chart-item",staticStyle:{height:"470px","margin-right":"0",width:"60%"}},[t.aggregationsData.port&&t.aggregationsData.port.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.port_statistics")))]),n("div",{staticStyle:{padding:"40px 0 20px 40px"},attrs:{id:"con"}})]),n("div",{staticClass:"chart-item",staticStyle:{width:"40%",height:"470px"}},[n("div",{staticClass:"title"}),n("div",{staticClass:"deep-port-des",staticStyle:{padding:"40px 0 20px 40px"}},[n("div",{staticClass:"port-title"},[t._v(t._s(t.$t("search.port_deep_statistics")))]),n("div",{staticClass:"port-des-item"},[n("div",{staticClass:"des"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultStatisticsPort1"}}),n("div",[n("div",[t._v(t._s(t.$t("search.total_port_until_now")))]),n("div",{staticClass:"date"},[t._v(t._s(t.time))])])],1),n("div",{staticClass:"size"},[t._v("待定")])]),n("div",{staticClass:"port-des-item"},[n("div",{staticClass:"des"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultStatisticsPort2"}}),n("div",[n("div",[t._v(t._s(t.$t("search.core_port_about_important_asset")))]),n("div",{staticClass:"date"},[t._v(t._s(t.time))])])],1),n("div",{staticClass:"size"},[t._v("待定")])]),n("div",{staticClass:"port-des-item"},[n("div",{staticClass:"des"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultStatisticsPort3"}}),n("div",[n("div",[t._v(t._s(t.$t("search.abnormal_port_with_security_issue")))]),n("div",{staticClass:"date"},[t._v(t._s(t.time))])])],1),n("div",{staticClass:"size"},[t._v("待定")])])])])])]:[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("port")<t.lastIndex,expression:"loadMoreKeyList.indexOf('port') < lastIndex"}],staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"port"===t.startKey,expression:"statisticsIndexLoading && startKey === 'port'"}],staticClass:"chart-item"},[t.aggregationsData.port&&t.aggregationsData.port.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.port_statistics")))]),t.portData.rows&&t.portData.rows.length?n("ve-histogram",{attrs:{data:t.portData,height:"400px","theme-name":t.getVEchartsTheme,title:t.port.title,"legend-visible":!1,extend:t.port.extend,colors:["#75A0EE"]}}):t._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"port"===t.startKey,expression:"statisticsIndexLoading && startKey === 'port'"}],staticClass:"chart-item"},[t.aggregationsData.app&&t.aggregationsData.app.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.product_statistics")))]),n("div",{staticClass:"list-container"},t._l(t.aggregationsData.app,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<6?[n("div",{staticClass:"top"},[n("span",[t._v(t._s(e.key))]),n("span",[t._v(t._s(e.doc_count))])]),n("div",[n("el-progress",{attrs:{"stroke-width":9,percentage:parseInt(100*e.doc_count/t.productTotal),"show-text":!1}})],1)]:t._e()],2)})),0)])])],"quake_vulnerability"===t.selectIndex?[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("port")<t.lastIndex,expression:"loadMoreKeyList.indexOf('port') < lastIndex"}],staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"port"===t.startKey,expression:"statisticsIndexLoading && startKey === 'port'"}],staticClass:"chart-item"},[t.aggregationsData.port&&t.aggregationsData.port.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.port_statistics")))]),t.portData.rows&&t.portData.rows.length?n("ve-histogram",{attrs:{data:t.portData,height:"400px","theme-name":t.getVEchartsTheme,title:t.port.title,"legend-visible":!1,extend:t.port.extend,colors:["#75A0EE"]}}):t._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"port"===t.startKey,expression:"statisticsIndexLoading && startKey === 'port'"}],staticClass:"chart-item"},[t.aggregationsData.vul_level&&t.aggregationsData.vul_level.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v("漏洞等级统计")]),t.aggregationsData.vul_level&&t.aggregationsData.vul_level.length?n("ve-ring",{attrs:{data:t.vulLevelData,"theme-name":t.getVEchartsTheme,height:"400px",title:t.vulLevel.title,"legend-visible":!0,colors:["#75A0EE","#E87688","#52A6EF","#8BD5F3","#53CAC6","#30C5E5","#E1AB85","#B3D899","#FBD75B"],settings:t.vulLevel.setting,extend:t.vulLevel.extend}}):t._e()],1)])]:[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("os")<t.lastIndex,expression:"loadMoreKeyList.indexOf('os') < lastIndex"}],staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"os"===t.startKey,expression:"statisticsIndexLoading && startKey === 'os'"}],staticClass:"chart-item",staticStyle:{position:"relative"}},[n("div",{staticClass:"tipname hide",attrs:{id:"tip"}}),t.aggregationsData.os&&t.aggregationsData.os.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.os_statistics")))]),t.osData.rows&&t.osData.rows.length?n("ve-bar",{attrs:{id:"os_statistics",data:t.osData,height:"400px","theme-name":t.getVEchartsTheme,title:t.os.title,"legend-visible":!1,colors:["#75A0EE"],extend:t.os.extend,events:t.chartEvents}}):t._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"os"===t.startKey,expression:"statisticsIndexLoading && startKey === 'os'"}],staticClass:"chart-item"},[t.aggregationsData.service&&t.aggregationsData.service.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.service_statistics")))]),t.aggregationsData.service&&t.aggregationsData.service.length?n("ve-ring",{attrs:{data:t.serviceData,height:"400px","theme-name":t.getVEchartsTheme,title:t.service.title,"legend-visible":!0,colors:["#75A0EE","#E87688","#52A6EF","#8BD5F3","#53CAC6","#30C5E5","#E1AB85","#B3D899","#FBD75B"],settings:t.service.setting,extend:t.service.extend}}):t._e()],1)])],"quake_service"===t.selectIndex?[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("vendor")<t.lastIndex,expression:"loadMoreKeyList.indexOf('vendor') < lastIndex"}],staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"vendor"===t.startKey,expression:"statisticsIndexLoading && startKey === 'vendor'"}],staticClass:"chart-item",staticStyle:{position:"relative"}},[n("div",{staticClass:"tipname hide",attrs:{id:"tip"}}),t.aggregationsData.vendor&&t.aggregationsData.vendor.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.verndor_statistics")))]),t.vendorData.rows&&t.vendorData.rows.length?n("ve-bar",{attrs:{id:"verndor_statistics",data:t.vendorData,height:"400px","theme-name":t.getVEchartsTheme,title:t.vendor.title,"legend-visible":!1,colors:["#75A0EE"],extend:t.vendor.extend,events:t.chartEvents}}):t._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"vendor"===t.startKey,expression:"statisticsIndexLoading && startKey === 'vendor'"}],staticClass:"chart-item"},[t.aggregationsData.app&&t.aggregationsData.app.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.product_statistics")))]),n("div",{staticClass:"list-container"},t._l(t.aggregationsData.app,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<6?[n("div",{staticClass:"top"},[n("span",[t._v(t._s(e.key))]),n("span",[t._v(t._s(e.doc_count))])]),n("div",[n("el-progress",{attrs:{"stroke-width":9,percentage:parseInt(100*e.doc_count/t.productTotal),"show-text":!1}})],1)]:t._e()],2)})),0)])])]:t._e(),"quake_service"===t.selectIndex?[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("level")<t.lastIndex,expression:"loadMoreKeyList.indexOf('level') < lastIndex"}],staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"level"===t.startKey,expression:"statisticsIndexLoading && startKey === 'level'"}],staticClass:"chart-item"},[t.aggregationsData.level&&t.aggregationsData.level.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.level_statistics")))]),t.levelData.rows&&t.levelData.rows.length?n("ve-histogram",{attrs:{data:t.levelData,height:"400px","theme-name":t.getVEchartsTheme,title:t.level.title,"legend-visible":!1,extend:t.level.extend,colors:["#75A0EE"]}}):t._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"level"===t.startKey,expression:"statisticsIndexLoading && startKey === 'level'"}],staticClass:"chart-item"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.app_statistics")))]),t.aggregationsData.app&&t.aggregationsData.app.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"list-container"},t._l(t.aggregationsData.app,(function(e,i){return n("div",{key:i,staticClass:"list-item"},[i<6?[n("div",{staticClass:"top"},[n("span",[t._v(t._s(e.key))]),n("span",[t._v(t._s(e.doc_count))])]),n("div",[n("el-progress",{attrs:{"stroke-width":9,percentage:parseInt(100*e.doc_count/t.appTotal),"show-text":!1}})],1)]:t._e()],2)})),0)])])]:t._e(),"quake_service"===t.selectIndex?[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loadMoreKeyList.indexOf("catalog")<t.lastIndex,expression:"loadMoreKeyList.indexOf('catalog') < lastIndex"}],staticClass:"chart-row"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"catalog"===t.startKey,expression:"statisticsIndexLoading && startKey === 'catalog'"}],staticClass:"chart-item"},[t.aggregationsData.catalog&&t.aggregationsData.catalog.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.catelog_statistics")))]),t.aggregationsData.catalog&&t.aggregationsData.catalog.length?n("ve-pie",{attrs:{data:t.catalogData,"theme-name":t.getVEchartsTheme,height:"400px",title:t.catalog.title,"legend-visible":!1,extend:t.catalog.extend,colors:["#E87688","#52A6EF","#8BD5F3","#53CAC6","#30C5E5","#FBD75B","#E1AB85","#B3D899"]}}):t._e()],1),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.statisticsIndexLoading&&"catalog"===t.startKey,expression:"statisticsIndexLoading && startKey === 'catalog'"}],staticClass:"chart-item"},[t.aggregationsData.type&&t.aggregationsData.type.length?t._e():n("span",{staticClass:"no-data"},[t._v(t._s(t.$t("search.no_asset")))]),n("div",{staticClass:"title"},[t._v(t._s(t.$t("search.type_statistics")))]),t.aggregationsData.type&&t.aggregationsData.type.length?n("ve-pie",{attrs:{data:t.typeData,"theme-name":t.getVEchartsTheme,height:"400px",title:t.type.title,"legend-visible":!1,extend:t.type.extend,colors:["#E87688","#52A6EF","#8BD5F3","#53CAC6","#30C5E5","#FBD75B","#E1AB85","#B3D899"]}}):t._e()],1)])]:t._e(),n("div",{staticClass:"load-more"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.lastIndex>=t.loadMoreKeyList.length,expression:"lastIndex >= loadMoreKeyList.length"}]},[t._v(t._s(t.$t("global.no_more")))]),n("el-button",{directives:[{name:"show",rawName:"v-show",value:t.lastIndex<t.loadMoreKeyList.length,expression:"lastIndex < loadMoreKeyList.length"}],attrs:{type:"primary"},on:{click:t.handleLoadMoreKeyList}},[t._v(t._s(t.$t("search.result_info.view_more")))])],1)],2)},Et=[],Tt=(n("4ec9"),n("e25e"),n("2ef0")),Ot=n.n(Tt),Pt=function(t,e){return Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Pt(t,e)};function jt(t,e){function n(){this.constructor=t}Pt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Lt=function(){return Lt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Lt.apply(this,arguments)};function Dt(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}Object.create;function Rt(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}Object.create;var Bt,Nt,Ft,zt=n("8937");(function(t){t["FORE"]="fore",t["MID"]="mid",t["BG"]="bg"})(Bt||(Bt={})),function(t){t["TOP"]="top",t["TOP_LEFT"]="top-left",t["TOP_RIGHT"]="top-right",t["RIGHT"]="right",t["RIGHT_TOP"]="right-top",t["RIGHT_BOTTOM"]="right-bottom",t["LEFT"]="left",t["LEFT_TOP"]="left-top",t["LEFT_BOTTOM"]="left-bottom",t["BOTTOM"]="bottom",t["BOTTOM_LEFT"]="bottom-left",t["BOTTOM_RIGHT"]="bottom-right",t["RADIUS"]="radius",t["CIRCLE"]="circle",t["NONE"]="none"}(Nt||(Nt={})),function(t){t["AXIS"]="axis",t["GRID"]="grid",t["LEGEND"]="legend",t["TOOLTIP"]="tooltip",t["ANNOTATION"]="annotation",t["OTHER"]="other"}(Ft||(Ft={}));var Vt,Gt,Ht,Wt={FORE:3,MID:2,BG:1};(function(t){t["BEFORE_RENDER"]="beforerender",t["AFTER_RENDER"]="afterrender",t["BEFORE_PAINT"]="beforepaint",t["AFTER_PAINT"]="afterpaint",t["BEFORE_CHANGE_DATA"]="beforechangedata",t["AFTER_CHANGE_DATA"]="afterchangedata",t["BEFORE_CLEAR"]="beforeclear",t["AFTER_CLEAR"]="afterclear",t["BEFORE_DESTROY"]="beforedestroy"})(Vt||(Vt={})),function(t){t["MOUSE_ENTER"]="plot:mouseenter",t["MOUSE_DOWN"]="plot:mousedown",t["MOUSE_MOVE"]="plot:mousemove",t["MOUSE_UP"]="plot:mouseup",t["MOUSE_LEAVE"]="plot:mouseleave",t["TOUCH_START"]="plot:touchstart",t["TOUCH_MOVE"]="plot:touchmove",t["TOUCH_END"]="plot:touchend",t["TOUCH_CANCEL"]="plot:touchcancel",t["CLICK"]="plot:click",t["DBLCLICK"]="plot:dblclick",t["CONTEXTMENU"]="plot:contextmenu",t["LEAVE"]="plot:leave",t["ENTER"]="plot:enter"}(Gt||(Gt={})),function(t){t["ACTIVE"]="active",t["INACTIVE"]="inactive",t["SELECTED"]="selected",t["DEFAULT"]="default"}(Ht||(Ht={}));var Ut,Zt,Yt,Xt,qt=["color","shape","size"],Kt="_origin",Qt=1,Jt=1,$t=.25,te={};function ee(t){var e=te[t];if(!e)throw new Error("G engine '"+t+"' is not exist, please register it at first.");return e}function ne(t,e){te[t]=e}function ie(t,e,n){if(t){if("function"===typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"===typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}function re(){Ut=document.createElement("table"),Zt=document.createElement("tr"),Yt=/^\s*<(\w+|!)[^>]*>/,Xt={tr:document.createElement("tbody"),tbody:Ut,thead:Ut,tfoot:Ut,td:Zt,th:Zt,"*":document.createElement("div")}}function oe(t){Ut||re();var e=Yt.test(t)&&RegExp.$1;e&&e in Xt||(e="*");var n=Xt[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}function ae(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}function se(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function le(t){return"number"===typeof t&&!isNaN(t)}function ce(t,e,n,i){var r=n,o=i;if(e){var a=se(t);r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(le(r)?r:Qt,Qt),height:Math.max(le(o)?o:Jt,Jt)}}function ue(t){var e=t.parentNode;e&&e.removeChild(t)}var he=n("7fa2"),de=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=e.visible,r=void 0===i||i;return n.visible=r,n}return jt(e,t),e.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},e.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(he["a"]),pe=de,fe=n("6855"),ge=(n("dc4d"),n("050e"),function(t,e){return Object(zt["isString"])(e)?e:t.invert(t.scale(e))}),me=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,i)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),i=e*t-n,r=this.values[n],o=n===e?r:this.values[n+1];return r+(o-r)*i},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r+=1)i.push(e[r]);return i},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var i=t.scales[n];return"identity"===i.type?i.values[0]:t._getAttributeValue(i,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,r=t.names,o=void 0===r?[]:r,a=t.scales,s=void 0===a?[]:a,l=t.values,c=void 0===l?[]:l,u=t.callback;this.type=i,this.scales=s,this.values=c,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(u){var i=u.apply(void 0,t);if(!Object(zt["isNil"])(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var i=t.scale(e);return this.getLinearValue(i)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(zt["isArray"])(t)?t.map((function(t){return ge(e,t)})):ge(e,t)},t}(),ve=me,ye=n("9ab4"),be=/rgba?\(([\s.,0-9]+)\)/,xe=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,we=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,_e=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,Ce=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},Ae=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t},Ie=function(t,e,n,i){return t[i]+(e[i]-t[i])*n};function Se(t){return"#"+Ee(t[0])+Ee(t[1])+Ee(t[2])}var Me,ke=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},Ee=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},Te=function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),i=t.length-1,r=Math.floor(i*n),o=i*n-r,a=t[r],s=r===i?a:t[r+1];return Se([Ie(a,s,o,0),Ie(a,s,o,1),Ie(a,s,o,2)])},Oe=function(t){if("#"===t[0]&&7===t.length)return t;Me||(Me=Ae()),Me.style.color=t;var e=document.defaultView.getComputedStyle(Me,"").getPropertyValue("color"),n=be.exec(e),i=n[1].split(/\s*,\s*/).map((function(t){return Number(t)}));return e=Se(i),e},Pe=function(t){var e=Object(zt["isString"])(t)?t.split("-"):t,n=Object(zt["map"])(e,(function(t){return ke(-1===t.indexOf("#")?Oe(t):t)}));return function(t){return Te(n,t)}},je=function(t){if(Ce(t)){var e,n=void 0;if("l"===t[0]){var i=xe.exec(t),r=+i[1]+90;n=i[2],e="linear-gradient("+r+"deg, "}else if("r"===t[0]){e="radial-gradient(";i=we.exec(t);n=i[4]}var o=n.match(_e);return Object(zt["each"])(o,(function(t,n){var i=t.split(":");e+=i[1]+" "+100*i[0]+"%",n!==o.length-1&&(e+=", ")})),e+=")",e}return t},Le={rgb2arr:ke,gradient:Pe,toRGB:Object(zt["memoize"])(Oe),toCSSGradient:je},De=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(zt["isString"])(n.values)&&(n.linear=!0),n.gradient=Le.gradient(n.values),n}return Object(ye["__extends"])(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(ve),Re=De,Be=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(ye["__extends"])(e,t),e}(ve),Ne=Be,Fe=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(ye["__extends"])(e,t),e.prototype.mapping=function(t,e){var n=this.scales,i=n[0],r=n[1];return Object(zt["isNil"])(t)||Object(zt["isNil"])(e)?[]:[Object(zt["isArray"])(t)?t.map((function(t){return i.scale(t)})):i.scale(t),Object(zt["isArray"])(e)?e.map((function(t){return r.scale(t)})):r.scale(e)]},e}(ve),ze=Fe,Ve=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(ye["__extends"])(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(ve),Ge=Ve,He=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(ye["__extends"])(e,t),e}(ve),We=He,Ue=n("f2fb"),Ze={},Ye=function(t){return Ze[t.toLowerCase()]},Xe=function(t,e){if(Ye(t))throw new Error("Attribute type '"+t+"' existed.");Ze[t.toLowerCase()]=e};Xe("Color",Re),Xe("Opacity",Ne),Xe("Position",ze),Xe("Shape",Ge),Xe("Size",We);var qe=n("e897"),Ke=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,r=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=r,this.originalMatrix=Object(ye["__spreadArrays"])(r),this.isTransposed=a}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Object(zt["assign"])(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(n=[o,r],r=n[0],o=n[1]),r+t*(o-r)},t.prototype.invertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(n=[o,r],r=n[0],o=n[1]),(t-r)/(o-r)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=[t,e,n];return qe["d"].transformMat3(r,r,i),r},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=qe["b"].invert([0,0,0,0,0,0,0,0,0],i),o=[t,e,n];return r&&qe["d"].transformMat3(o,o,r),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return qe["a"].leftTranslate(e,e,[-n.x,-n.y]),qe["a"].leftRotate(e,e,t),qe["a"].leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,i=this.center;return qe["a"].leftTranslate(n,n,[-i.x,-i.y]),qe["a"].leftScale(n,n,[t,e]),qe["a"].leftTranslate(n,n,[i.x,i.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return qe["a"].leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||Object(ye["__spreadArrays"])(this.originalMatrix)},t}(),Qe=Ke,Je=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(ye["__extends"])(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;return this.isTransposed&&(e=[i,n],n=e[0],i=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(i,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),i=this.invertDim(t.y,"y");return this.isTransposed&&(e=[i,n],n=e[0],i=e[1]),{x:n,y:i}},e}(Qe),$e=Je,tn=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var i=e.startAngle,r=void 0===i?1.25*Math.PI:i,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,l=void 0===s?0:s,c=e.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=l,n.radius=c,n.initial(),n}return Object(ye["__extends"])(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;this.isTransposed&&(e=[i,n],n=e[0],i=e[1]);var r=this.convertDim(n,"x"),o=this.a*r,a=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(o+a),y:this.center.y+Math.sin(r)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,i=qe["c"].subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=qe["a"].angleTo(i,[1,0],!0),o=r*this.a;qe["c"].length(i)<o&&(o=qe["c"].length(i));var a=Math.floor((qe["c"].length(i)-o)/n);r=2*a*Math.PI+r;var s=this.a*r,l=qe["c"].length(i)-s;l=Object(zt["isNumberEqual"])(l,0)?0:l;var c=this.invertDim(r,"x"),u=this.invertDim(l,"y");return c=Object(zt["isNumberEqual"])(c,0)?0:c,u=Object(zt["isNumberEqual"])(u,0)?0:u,this.isTransposed&&(e=[u,c],c=e[0],u=e[1]),{x:c,y:u}},e}(Qe),en=tn,nn=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var i=e.startAngle,r=void 0===i?-Math.PI/2:i,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,l=void 0===s?0:s,c=e.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=l,n.radius=c,n.initial(),n}return Object(ye["__extends"])(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);while(this.endAngle<this.startAngle)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),i=n.maxX-n.minX,r=n.maxY-n.minY,o=Math.abs(n.minX)/i,a=Math.abs(n.minY)/r;this.height/r>this.width/i?(e=this.width/i,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-o)*e*i,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),i=t.x,r=t.y;return this.isTransposed&&(e=[r,i],i=e[0],r=e[1]),i=this.convertDim(i,"x"),r=this.convertDim(r,"y"),{x:n.x+Math.cos(i)*r,y:n.y+Math.sin(i)*r}},e.prototype.invertPoint=function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],i=[1,0,0,0,1,0,0,0,1];qe["a"].leftRotate(i,i,this.startAngle);var r=[1,0,0];qe["d"].transformMat3(r,r,i);var o=[r[0],r[1]],a=qe["a"].angleTo(o,n,this.endAngle<this.startAngle);Object(zt["isNumberEqual"])(a,2*Math.PI)&&(a=0);var s=qe["c"].length(n),l=a/(this.endAngle-this.startAngle);l=this.endAngle-this.startAngle>0?l:-l;var c=this.invertDim(s,"y"),u={x:0,y:0};return u.x=this.isTransposed?c:l,u.y=this.isTransposed?l:c,u},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r<Math.max(t,e);r+=Math.PI/18)n.push(Math.cos(r)),i.push(Math.sin(r));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}},e}(Qe),rn=nn,on={},an=function(t){return on[t.toLowerCase()]},sn=function(t,e){on[t.toLowerCase()]=e};sn("rect",$e),sn("cartesian",$e),sn("polar",rn),sn("helix",en);var ln=n("9332"),cn=n.n(ln);function un(t,e,n){var i=new cn.a(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);var r=t.getParent();while(r)r.emitDelegation(e,i),i.propagationPath.push(r),r=r.getParent()}var hn=[1,0,0,0,1,0,0,0,1];function dn(t,e,n){if(void 0===n&&(n=hn),!e)return null;var i=qe["a"].transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]);return i}function pn(t,e){return t.x||t.y?qe["a"].transform(e||hn,[["t",t.x,t.y]]):null}function fn(t,e){var n=[0,0];return qe["c"].transformMat3(n,e,t),n}function gn(t,e){var n=fn(t,[e.minX,e.minY]),i=fn(t,[e.maxX,e.minY]),r=fn(t,[e.minX,e.maxY]),o=fn(t,[e.maxX,e.maxY]),a=Math.min(n[0],i[0],r[0],o[0]),s=Math.max(n[0],i[0],r[0],o[0]),l=Math.min(n[1],i[1],r[1],o[1]),c=Math.max(n[1],i[1],r[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:c,width:s-a,height:c-l}}function mn(t,e,n,i){if(e){var r=dn({x:n,y:i},e,t.getMatrix());t.setMatrix(r)}}function vn(t,e,n){var i=pn({x:e,y:n});t.attr("matrix",i)}function yn(t){var e=0,n=0,i=0,r=0;return Object(zt["isNumber"])(t)?e=n=i=r=t:Object(zt["isArray"])(t)&&(e=t[0],i=Object(zt["isNil"])(t[1])?t[0]:t[1],r=Object(zt["isNil"])(t[2])?t[0]:t[2],n=Object(zt["isNil"])(t[3])?i:t[3]),[e,i,r,n]}function bn(t){for(var e=t.childNodes,n=e.length,i=n-1;i>=0;i--)t.removeChild(e[i])}function xn(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function wn(t){var e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function _n(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),i=Math.min.apply(Math,e),r=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function Cn(t,e,n,i){return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:t+n,maxY:e+i}}function An(t,e,n){return(1-n)*t+e*n}function In(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function Sn(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}function Mn(t,e){var n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Cn(n,i,r-n,o-i)}function kn(t){var e,n=t.getClip(),i=n&&n.getBBox();if(t.isGroup()){var r=1/0,o=-1/0,a=1/0,s=-1/0,l=t.getChildren();l.length>0?Object(zt["each"])(l,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=kn(t),n=t.applyToMatrix([e.minX,e.minY,1]),i=t.applyToMatrix([e.minX,e.maxY,1]),l=t.applyToMatrix([e.maxX,e.minY,1]),c=t.applyToMatrix([e.maxX,e.maxY,1]),u=Math.min(n[0],i[0],l[0],c[0]),h=Math.max(n[0],i[0],l[0],c[0]),d=Math.min(n[1],i[1],l[1],c[1]),p=Math.max(n[1],i[1],l[1],c[1]);u<r&&(r=u),h>o&&(o=h),d<a&&(a=d),p>s&&(s=p)}})):(r=0,o=0,a=0,s=0),e=Cn(r,a,o-r,s-a)}else e=t.getBBox();return i?Mn(e,i):e}function En(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var i={type:n.get("type"),attrs:n.attr()};t.setClip(i)}else t.setClip(null)}}function Tn(t){return t+"px"}function On(t,e,n,i){var r=Sn(t,e),o=i/r,a=0;return"start"===n?a=0-o:"end"===n&&(a=1+o),{x:An(t.x,e.x,a),y:An(t.y,e.y,a)}}var Pn={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},jn=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg");Object(zt["each"])(t,(function(t,i){var r=e.get(i),o=t;r!==t&&(Object(zt["isObject"])(t)&&n[i]&&(o=Object(zt["deepMix"])({},n[i],t)),e.set(i,o))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(zt["hasKey"])(t,"visible")&&(t.visible?this.show():this.hide()),Object(zt["hasKey"])(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(ye["__assign"])({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),i=Pn[n];return Object(zt["each"])(i,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(zt["each"])(e,(function(e,n){var i=t.get(n);if(Object(zt["isObject"])(i)){var r=Object(zt["deepMix"])({},e,i);t.set(n,r)}}))},e}(fe["d"]),Ln=jn,Dn="update_status",Rn=["visible","tip","delegateObject"],Bn=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n=e&&e.get("component");return n},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(zt["each"])(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.get("group");e.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=gn(n,e)),e},e.prototype.on=function(t,e,n){var i=this.get("group");return i.on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){var n=this.get("group");n.emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),un(n,t,e)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),e=t.getGroupBase(),n=new e({delegateObject:this.getDelegateObject()});return n},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",kn(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,r=Object(ye["__rest"])(e,["id","component"]),o=new i(Object(ye["__assign"])(Object(ye["__assign"])({},r),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var e=this.get("id"),n=this.get("name");return e+"-"+n+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=pn(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var i=e.attr("opacity");Object(zt["isNil"])(i)&&(i=1),e.attr("opacity",0),e.animate({opacity:i},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,i){e.animate(n,i)},e.prototype.updateElements=function(t,e){var n,i=this,r=this.get("animate"),o=this.get("animateOption"),a=t.getChildren().slice(0);Object(zt["each"])(a,(function(t){var a=t.get("id"),s=i.getElementById(a),l=t.get("name");if(s)if(t.get("isComponent")){var c=t.get("component"),u=s.get("component"),h=Object(zt["pick"])(c.cfg,Object(zt["difference"])(Object(zt["keys"])(c.cfg),Bn));u.update(h),s.set(Dn,"update")}else{var d=i.getReplaceAttrs(s,t);r&&o.update?i.updateAnimation(l,s,d,o.update):s.attr(d),t.isGroup()&&i.updateElements(t,s),Object(zt["each"])(Rn,(function(e){s.set(e,t.get(e))})),En(s,t),n=s,s.set(Dn,"update")}else{e.add(t);var p=e.getChildren();if(p.splice(p.length-1,1),n){var f=p.indexOf(n);p.splice(f+1,0,t)}else p.unshift(t);if(i.registerElement(t),t.set(Dn,"add"),t.get("isComponent")){c=t.get("component");c.set("container",e)}else t.isGroup()&&i.registerNewGroup(t);if(n=t,r){var g=i.get("isInit")?o.appear:o.enter;g&&i.addAnimation(l,t,g)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(zt["each"])(e,(function(t){t.set(Dn,null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,e=this.get("name"),n=(t={},t[e]=this,t.component=this,t);return n},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(zt["mix"])(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return Object(zt["each"])(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(zt["each"])(n,(function(t){e.registerElement(t),t.set(Dn,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(zt["each"])(e,(function(t,e){!t.get(Dn)||t.destroyed?n.push([e,t]):t.set(Dn,null)}));var i=this.get("animate"),r=this.get("animateOption");Object(zt["each"])(n,(function(n){var o=n[0],a=n[1];if(!a.destroyed){var s=a.get("name");if(i&&r.leave){var l=Object(zt["mix"])({callback:function(){t.removeElement(a)}},r.leave);t.removeAnimation(s,a,l)}else t.removeElement(a)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(Ln),Fn=Nn,zn="…";function Vn(t){for(var e=0,n=0;n<t.length;n++)e+=Gn(t,n);return e}function Gn(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function Hn(t,e,n){void 0===n&&(n="tail");var i=t.length,r="";if("tail"===n){for(var o=0,a=0;o<e;){var s=Gn(t,a);if(!(o+s<=e))break;r+=t[a],o+=Gn(t,a),a++}r+=zn}else if("head"===n){for(o=0,a=i-1;o<e;){s=Gn(t,a);if(!(o+s<=e))break;r+=t[a],o+=Gn(t,a),a--}r=zn+r}else{for(var l="",c="",u=(o=0,0),h=i-1;o<e;){var d=Gn(t,u),p=!1;d+o<=e&&(l+=t[u],u++,o+=d,p=!0);var f=Gn(t,h);if(f+o<=e&&(c=t[h]+c,o+=f,h--,p=!0),!p)break}r=l+zn+c}return r}var Wn="…",Un=2;function Zn(t){var e=0;return Object(zt["each"])(t,(function(t){var n=t.getBBox(),i=n.width;e<i&&(e=i)})),e}function Yn(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}function Xn(t,e,n,i){void 0===i&&(i="tail");var r=e.attr("text"),o=Yn(t,e),a=Vn(r),s=!1;if(n<o){var l=Math.floor(n/o*a)-Un,c=void 0;c=l>=0?Hn(r,l,i):Wn,c&&(e.attr("text",c),s=!0)}return s?e.set("tip",r):e.set("tip",null),s}function qn(t,e){var n=e.x,i=e.y,r=e.content,o=e.style,a=e.id,s=e.name,l=e.rotate,c=e.maxLength,u=e.autoEllipsis,h=e.isVertical,d=e.ellipsisPosition,p=e.background,f=t.addGroup({id:a+"-group",name:s+"-group",attrs:{x:n,y:i}}),g=f.addShape({type:"text",id:a,name:s,attrs:Object(ye["__assign"])({x:0,y:0,text:r},o)}),m=yn(Object(zt["get"])(p,"padding",0));if(c&&u){var v=c-(m[1]+m[3]);Xn(!h,g,v,d)}if(p){var y=Object(zt["get"])(p,"style",{}),b=g.getCanvasBBox(),x=b.minX,w=b.minY,_=b.width,C=b.height,A=f.addShape("rect",{id:a+"-bg",name:a+"-bg",attrs:Object(ye["__assign"])({x:x-m[3],y:w-m[0],width:_+m[1]+m[3],height:C+m[0]+m[2]},y)});A.toBack()}vn(f,n,i),mn(f,l,n,i)}var Kn={fontFamily:'\n  "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n  Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n  SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4},Qn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Kn.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:Kn.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Kn.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(ye["__assign"])({x1:e.x,y1:e.y,x2:n.x,y2:n.y},i)})},e.prototype.getLabelPoint=function(t,e,n){var i;return i="start"===n?0:"center"===n?.5:Object(zt["isString"])(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(zt["isNumber"])(n)?n:1,(i>1||i<0)&&(i=1),{x:An(t.x,e.x,i),y:An(t.y,e.y,i)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),i=this.get("end"),r=e.position,o=e.content,a=e.style,s=e.offsetX,l=e.offsetY,c=e.autoRotate,u=e.maxLength,h=e.autoEllipsis,d=e.ellipsisPosition,p=e.background,f=e.isVertical,g=void 0!==f&&f,m=this.getLabelPoint(n,i,r),v=m.x+s,y=m.y+l,b={id:this.getElementId("line-text"),name:"annotation-line-text",x:v,y:y,content:o,style:a,maxLength:u,autoEllipsis:h,ellipsisPosition:d,background:p,isVertical:g};if(c){var x=[i.x-n.x,i.y-n.y];b.rotate=Math.atan2(x[1],x[0])}qn(t,b)},e}(Fn),Jn=Qn,$n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Kn.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Kn.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("content"),o=this.get("style"),a=this.getElementId("text"),s=this.get("name")+"-text",l=this.get("maxLength"),c=this.get("autoEllipsis"),u=this.get("isVertical"),h=this.get("ellipsisPosition"),d=this.get("background"),p=this.get("rotate"),f={id:a,name:s,x:n,y:i,content:r,style:o,maxLength:l,autoEllipsis:c,isVertical:u,ellipsisPosition:h,background:d,rotate:p};qn(t,f)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("rotate");vn(t,n,i),mn(t,r,n,i)}},e}(Fn),ti=$n,ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,o=In(e,n,i),a=In(e,n,r),s=r-i>Math.PI?1:0,l=[["M",o.x,o.y]];if(r-i===2*Math.PI){var c=In(e,n,i+Math.PI);l.push(["A",n,n,0,s,1,c.x,c.y]),l.push(["A",n,n,0,s,1,a.x,a.y])}else l.push(["A",n,n,0,s,1,a.x,a.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(ye["__assign"])({path:e},n)})},e}(Fn),ni=ei,ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Kn.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style"),r=wn({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(ye["__assign"])({x:r.x,y:r.y,width:r.width,height:r.height},i)})},e}(Fn),ri=ii,oi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),i=wn({start:t,end:e}),r=this.get("src");return Object(ye["__assign"])({x:i.x,y:i.y,img:r,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(Fn),ai=oi,si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Kn.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Kn.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Kn.fontFamily}}}})},e.prototype.renderInner=function(t){Object(zt["get"])(this.get("line"),"display")&&this.renderLine(t),Object(zt["get"])(this.get("text"),"display")&&this.renderText(t),Object(zt["get"])(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,i=e.y,r=e.text,o=Object(ye["__rest"])(e,["x","y","text"]),a=this.get("text"),s=a.background,l=a.maxLength,c=a.autoEllipsis,u=a.isVertival,h=a.ellipsisPosition,d={x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:r,style:o,background:s,maxLength:l,autoEllipsis:c,isVertival:u,ellipsisPosition:h};qn(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),i=this.get("y"),r=Object(zt["get"])(this.get("line"),"length",0),o=this.get("coordinateBBox"),a=t.getBBox(),s=a.minX,l=a.maxX,c=a.minY,u=a.maxY,h=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),p=t.findById(this.getElementId("line"));if(o){if(h){if(n+s<=o.minX){var f=o.minX-(n+s);vn(h,h.attr("x")+f,h.attr("y"))}if(n+l>=o.maxX){f=n+l-o.maxX;vn(h,h.attr("x")-f,h.attr("y"))}}if("upward"===e&&i+c<=o.minY||"upward"!==e&&i+u>=o.maxY){var g=void 0,m=void 0;"upward"===e&&i+c<=o.minY?(g="top",m=1):(g="bottom",m=-1),d.attr("textBaseline",g),p&&p.attr("path",[["M",0,0],["L",0,r*m]]),vn(h,h.attr("x"),(r+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=Object(zt["get"])(this.get("line"),"display"),e=Object(zt["get"])(this.get("point"),"style",{}),n=Object(zt["get"])(this.get("line"),"style",{}),i=Object(zt["get"])(this.get("text"),"style",{}),r=this.get("direction"),o=t?Object(zt["get"])(this.get("line"),"length",0):0,a="upward"===r?-1:1;return{point:Object(ye["__assign"])({x:0,y:0},e),line:Object(ye["__assign"])({path:[["M",0,0],["L",0,o*a]]},n),text:Object(ye["__assign"])({x:0,y:(o+2)*a,text:Object(zt["get"])(this.get("text"),"content",""),textBaseline:"upward"===r?"bottom":"top"},i)}},e}(Fn),li=si,ci=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Kn.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Kn.textColor,fontFamily:Kn.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(zt["get"])(this.get("region"),"style",{}),n=(Object(zt["get"])(this.get("text"),"style",{}),this.get("lineLength")||0),i=this.get("points");if(i.length){var r=_n(i),o=[];o.push(["M",i[0].x,r.minY-n]),i.forEach((function(t){o.push(["L",t.x,t.y])})),o.push(["L",i[i.length-1].x,i[i.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(ye["__assign"])({path:o},e)});var a=Object(ye["__assign"])({id:this.getElementId("text"),name:"annotation-text",x:(r.minX+r.maxX)/2,y:r.minY-n},this.get("text"));qn(t,a)}},e}(Fn),ui=ci,hi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),i=this.get("end"),r=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(zt["each"])(this.get("shapes"),(function(t,n){var i=t.get("type"),o=Object(zt["clone"])(t.attr());e.adjustShapeAttrs(o),e.addShape(r,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:o})}));var o=wn({start:n,end:i});r.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(Fn),di=hi;function pi(t,e,n){var i=e+"Style",r=null;return Object(zt["each"])(n,(function(e,n){t[n]&&e[i]&&(r||(r={}),Object(zt["mix"])(r,e[i]))})),r}var fi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Kn.lineColor}},tickLine:{style:{lineWidth:1,stroke:Kn.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Kn.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Kn.textColor,textBaseline:"middle",fontFamily:Kn.fontFamily,fontWeight:"normal"},offset:10},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Kn.textColor,textBaseline:"middle",fontFamily:Kn.fontFamily,textAlign:"center"}},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Kn.uncheckedColor}}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Object(zt["mix"])(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(zt["each"])(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(zt["each"])(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(zt["filter"])(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this,i=n.getSideVector(e,t);return{x:t.x+i[0],y:t.y+i[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(zt["isNumberEqual"])(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(zt["mix"])({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],i=this.get("tickLine"),r=i.alignTick,o=i.length,a=1,s=t.length;return s>=2&&(a=t[1].value-t[0].value),Object(zt["each"])(t,(function(t){var i=t.point;r||(i=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(i,o);n.push({startPoint:i,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),i=n.count,r=t.length;if(r>=2)for(var o=0;o<r-1;o++)for(var a=t[o],s=t[o+1],l=0;l<i;l++){var c=(l+1)/(i+1),u=(1-c)*a.tickValue+c*s.tickValue,h=this.getTickPoint(u),d=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:d,tickValue:u,id:"sub-"+a.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e){var n=this.get(e).style,i=t.startPoint,r=t.endPoint,o=Object(zt["mix"])({x1:i.x,y1:i.y,x2:r.x,y2:r.y},n);return o},e.prototype.drawTick=function(t,e,n){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),i=this.get("subTickLine"),r=this.getTickLineItems(n),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if(Object(zt["each"])(r,(function(n){if(a.displayWithLabel){var i=e.getElementId("label-"+n.tickId);t.findById(i)&&e.drawTick(n,o,"tickLine")}else e.drawTick(n,o,"tickLine")})),i){var s=this.getSubTickLineItems(r);Object(zt["each"])(s,(function(t){e.drawTick(t,o,"subTickLine")}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(zt["each"])(e,(function(e){e.point=t.getTickPoint(e.value),Object(zt["isNil"])(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");Object(zt["each"])(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.getLabelAttrs=function(t,e){var n=this.get("label"),i=n.offset,r=n.style,o=n.rotate,a=n.formatter,s=this.getSidePoint(t.point,i),l=this.getSideVector(i,s),c=a?a(t.name,t,e):t.name,u=Object(zt["mix"])({x:s.x,y:s.y,text:c,textAlign:this.getTextAnchor(l)},r);return o&&(u.matrix=dn(s,o)),u},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),i=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(zt["each"])(n,(function(t,n){e.addShape(i,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,n),delegateObject:{tick:t,item:t,index:n}})})),this.processOverlap(i)},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,i=t.offset,r=t.spacing,o=void 0===r?0:r,a=t.autoRotate,s=e.fontSize,l=.5;"start"===n?l=0:"end"===n&&(l=1);var c=this.getTickPoint(l),u=this.getSidePoint(c,i||o+s/2),h=Object(zt["mix"])({x:u.x,y:u.y,text:t.text},e),d=t.rotate,p=d;if(Object(zt["isNil"])(d)&&a){var f=this.getAxisVector(c),g=[1,0];p=qe["a"].angleTo(f,g,!0)}if(p){var m=dn(u,p);h.matrix=m}return h},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){var n=this.getItemStates(t);if(n.length){var i=this.get("tickStates"),r=this.getElementId("label-"+t.id),o=e.findById(r);if(o){var a=pi(t,"label",i);a&&o.attr(a)}var s=this.getElementId("tickline-"+t.id),l=e.findById(s);if(l){var c=pi(t,"tickLine",i);c&&l.attr(c)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),i=this.get("label"),r=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=pi(t,"label",n);s&&r.attr(s)}if(a){var l=pi(t,"tickLine",n);l&&a.attr(l)}}else r&&r.attr(i.style),a&&a.attr(o.style)},e}(Fn),gi=fi;function mi(t,e,n,i){var r=e.getChildren(),o=!1;return Object(zt["each"])(r,(function(e){var r=Xn(t,e,n,i);o=o||r})),o}function vi(){return bi}function yi(t,e,n){return mi(t,e,n,"head")}function bi(t,e,n){return mi(t,e,n,"tail")}function xi(t,e,n){return mi(t,e,n,"middle")}function wi(t){var e=t.attr("matrix");return e&&1!==e[0]}function _i(t,e,n,i,r){void 0===r&&(r=!1);var o=!1;if(t)o=Math.abs(n.y-i.y)<n.height;else if(e){var a=r?i.height:n.height;o=Math.abs(n.x-i.x)<a}else{var s=r?i.width:n.width;o=Math.abs(n.x-i.x)<s}return o}function Ci(t,e,n){var i=e.getChildren().slice();if(!i.length)return!1;var r=!1;n&&i.reverse();for(var o=i.length,a=i[0],s=wi(a),l=a.getBBox(),c=1;c<o;c++){var u=i[c],h=u.getBBox(),d=_i(t,s,l,h,n);d?(u.hide(),r=!0):l=h}return r}function Ai(){return ki}function Ii(t,e){return Ci(t,e,!1)}function Si(t,e){return Ci(t,e,!0)}function Mi(t,e){var n=e.getChildren().slice();if(n.length<=2)return!1;for(var i=!1,r=n.length,o=n[0],a=n[r-1],s=wi(o),l=o.getBBox(),c=o,u=1;u<r-1;u++){var h=n[u],d=h.getBBox(),p=_i(t,s,l,d);p?(h.hide(),i=!0):(l=d,c=h)}var f=a.getBBox(),g=_i(t,s,l,f);return g&&(c.hide(),i=!0),i}function ki(t,e){var n=e.getChildren().slice();if(n.length<2)return!1;var i=!1,r=n[0],o=r.getBBox(),a=n[1],s=wi(r),l=n.length,c=0;if(t){var u=Math.abs(a.attr("y")-r.attr("y"));c=o.height/u}else if(s){u=Math.abs(a.attr("x")-r.attr("x"));c=o.width/u}else{var h=Zn(n);u=Math.abs(a.attr("x")-r.attr("x"));c=h/u}if(c>1){c=Math.ceil(c);for(var d=0;d<l;d++)d%c!==0&&(n[d].hide(),i=!0)}return i}function Ei(t,e){Object(zt["each"])(t,(function(t){var n=t.attr("x"),i=t.attr("y"),r=dn({x:n,y:i},e);t.attr("matrix",r)}))}function Ti(t,e,n,i){var r=e.getChildren();if(!r.length)return!1;if(!t&&r.length<2)return!1;var o=Zn(r),a=!1;if(t)a=!!n&&o>n;else{var s=Math.abs(r[1].attr("x")-r[0].attr("x"));a=o>s}if(a){var l=i(n,o);Ei(r,l)}return a}function Oi(){return Pi}function Pi(t,e,n){return Ti(t,e,n,(function(){return t?Kn.verticalAxisRotate:Kn.horizontalAxisRotate}))}function ji(t,e,n){return Ti(t,e,n,(function(e,n){if(!e)return t?Kn.verticalAxisRotate:Kn.horizontalAxisRotate;if(t)return-Math.acos(e/n);var i=0;return e>n?i=Math.PI/4:(i=Math.asin(e/n),i>Math.PI/4&&(i=Math.PI/4)),i}))}var Li,Di=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),i=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,n.x,i.x),o=Math.min(e.y,n.y,i.y),a=Math.max(e.x,n.x,i.maxX),s=Math.max(e.y,n.y,i.maxY);return{x:r,y:o,minX:r,minY:o,maxX:a,maxY:s,width:a-r,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(zt["isNumberEqual"])(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(zt["isNumberEqual"])(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this,n=e.get("start"),i=e.get("end"),r=i.x-n.x,o=i.y-n.y;return{x:n.x+r*t,y:n.y+o*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=qe["c"].normalize([0,0],e),i=this.get("verticalFactor"),r=[n[1],-1*n[0]];return qe["c"].scale([0,0],r,t*i)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),i=this.isHorizontal();if(n||i){var r=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),s=r.offset,l=a,c=0,u=0;o&&(c=o.style.fontSize,u=o.spacing),l&&(l=l-s-u-c);var h=this.get("overlapOrder");if(Object(zt["each"])(h,(function(n){r[n]&&e.autoProcessOverlap(n,r[n],t,l)})),o){var d=t.getBBox(),p=n?d.width:d.height;Object(zt["isNil"])(o.offset)&&(o.offset=s+p+u+c/2)}}},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,o=this.isVertical(),a=!1,l=s[t];if(!0===e?a=l.getDefault()(o,n,i):Object(zt["isFunction"])(e)?a=e(o,n,i):l[e]&&(a=l[e](o,n,i)),"autoRotate"===t){if(a){var c=n.getChildren(),u=this.get("verticalFactor");Object(zt["each"])(c,(function(t){var e=t.attr("textAlign");if("center"===e){var n=u>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);Object(zt["each"])(h,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(gi),Ri=Di,Bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",e,n-r],["A",i,r,0,1,1,e,n+r],["A",i,r,0,1,1,e,n-r],["Z"]];else{var l=this.getCirclePoint(o),c=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,h=o>a?0:1;s=[["M",e,n],["L",l.x,l.y],["A",i,r,0,u,h,c.x,c.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=this.get("endAngle"),i=e+(n-e)*t;return this.getCirclePoint(i)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y],r=this.get("verticalFactor"),o=qe["c"].length(i);return qe["c"].scale(i,i,r*t/o),i},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e}(gi),Ni=Bi,Fi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Kn.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Kn.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Kn.fontFamily}},textBackground:{padding:5,style:{stroke:Kn.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,i=e.autoRotate,r=e.content;if(!Object(zt["isNil"])(r)){var o=this.getTextPoint(),a=null;if(i){var s=this.getRotateAngle();a=dn(o,s)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(ye["__assign"])(Object(ye["__assign"])(Object(ye["__assign"])({},o),{text:r,matrix:a}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line"),i=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(ye["__assign"])({path:e},i)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var r=n.getBBox(),o=yn(i.padding),a=i.style,s=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(ye["__assign"])({x:r.x-o[3],y:r.y-o[0],width:r.width+o[1]+o[3],height:r.height+o[0]+o[2],matrix:n.attr("matrix")},a)});s.toBack()}},e}(Fn),zi=Fi,Vi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text").position,r=Math.atan2(n.y-e.y,n.x-e.x),o="start"===i?r-Math.PI/2:r+Math.PI/2;return o},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,o=i.offset;return On(e,n,r,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(zi),Gi=Vi,Hi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle,i=this.get("text").position,r="start"===i?e+Math.PI/2:n-Math.PI/2;return r},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,i=this.getLocation(),r=i.center,o=i.radius,a=i.startAngle,s=i.endAngle,l="start"===e?a:s,c=this.getRotateAngle()-Math.PI,u=In(r,o,l),h=Math.cos(c)*n,d=Math.sin(c)*n;return{x:u.x+h,y:u.y+d}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,o=null;if(r-i===2*Math.PI){var a=e.x,s=e.y;o=[["M",a,s-n],["A",n,n,0,1,1,a,s+n],["A",n,n,0,1,1,a,s-n],["Z"]]}else{var l=In(e,n,i),c=In(e,n,r),u=Math.abs(r-i)>Math.PI?1:0,h=i>r?0:1;o=[["M",l.x,l.y],["A",n,n,0,u,h,c.x,c.y]]}return o},e}(zi),Wi=Hi,Ui=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Cn(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");bn(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(zt["isNil"])(t)){t=this.createDom();var e=this.get("parent");Object(zt["isString"])(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else Object(zt["isString"])(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(zt["deepMix"])({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&xn(e,n)){var i=t[n];ae(e,i)}}},e.prototype.applyChildrenStyles=function(t,e){Object(zt["each"])(e,(function(e,n){var i=t.getElementsByClassName(n);Object(zt["each"])(i,(function(t){ae(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");ae(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return oe(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(zt["hasKey"])(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(Ln),Zi=Ui,Yi="g2-crosshair",Xi=Yi+"-line",qi=Yi+"-text",Ki=(Li={},Li[""+Yi]={position:"relative"},Li[""+Xi]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},Li[""+qi]={position:"absolute",color:Kn.textColor,fontFamily:Kn.fontFamily},Li),Qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+Yi+'"></div>',crosshairTpl:'<div class="'+Xi+'"></div>',textTpl:'<span class="'+qi+'">{content}</span>',domStyles:null,containerClassName:Yi,defaultStyles:Ki,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=oe(e);t.appendChild(n),this.applyStyle(Xi,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,o=i.offset;return On(e,n,r,o)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var i=this.getContainer(),r=Object(zt["substitute"])(this.get("textTpl"),t);e=oe(r),i.appendChild(e),this.applyStyle(qi,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),i=Math.min(e.x,n.x),r=Math.min(e.y,n.y);this.isVertical(e,n)?ae(t,{width:"1px",height:Tn(Math.abs(n.y-e.y))}):ae(t,{height:"1px",width:Tn(Math.abs(n.x-e.x))}),ae(t,{top:Tn(r),left:Tn(i)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,i=this.getTextPoint();switch(e){case"center":i.x=i.x-n/2;break;case"right":i.x=i.x-n;case"left":break}ae(t,{top:Tn(i.y),left:Tn(i.x)})}},e.prototype.updateInner=function(e){Object(zt["hasKey"])(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(Zi),Ji=Qi,$i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Kn.lineColor}}}})},e.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),i=e.slice(0).reverse(),r=this.getGridPath(i,!0),o=this.get("closed");return o?n=n.concat(r):(r[0][0]="L",n=n.concat(r),n.push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),i=this.get("items"),r=this.get("alternateColor"),o=null;Object(zt["each"])(i,(function(i,a){var s=i.id||a;if(n){var l=e.getPathStyle(),c=e.getElementId("line-"+s),u=e.getGridPath(i.points);e.addShape(t,{type:"path",name:"grid-line",id:c,attrs:Object(zt["mix"])({path:u},l)})}if(r&&a>0){var h=e.getElementId("region-"+s),d=a%2===0;if(Object(zt["isString"])(r))d&&e.drawAlternateRegion(h,t,o.points,i.points,r);else{var p=d?r[1]:r[0];e.drawAlternateRegion(h,t,o.points,i.points,p)}}o=i}))},e.prototype.drawAlternateRegion=function(t,e,n,i,r){var o=this.getAlternatePath(n,i);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:r}})},e}(Fn),tr=$i;function er(t,e,n,i){var r=n-t,o=i-e;return Math.sqrt(r*r+o*o)}var nr,ir=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),i=this.get("closed"),r=[];if(t.length)if("circle"===n){var o=this.get("center"),a=t[0],s=er(o.x,o.y,a.x,a.y),l=e?0:1;i?(r.push(["M",o.x,o.y-s]),r.push(["A",s,s,0,0,l,o.x,o.y+s]),r.push(["A",s,s,0,0,l,o.x,o.y-s]),r.push(["Z"])):Object(zt["each"])(t,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["A",s,s,0,0,l,t.x,t.y])}))}else Object(zt["each"])(t,(function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])})),i&&r.push(["Z"]);return r},e}(tr),rr=ir,or=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(zt["each"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(tr),ar=or,sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("x"),i=this.get("y"),r=this.get("offsetX"),o=this.get("offsetY"),a=this.get("maxWidth"),s=this.get("maxHeight"),l=n+r,c=i+o,u=e.maxX-l,h=e.maxY-c;return a&&(u=Math.min(u,a)),s&&(h=Math.min(h,s)),Cn(l,c,u,h)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+i})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),i=yn(e.padding),r=Object(ye["__assign"])({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style),o=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:r});o.toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,r=n.style,o=n.text,a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(ye["__assign"])({text:o,x:e.x,y:e.y},r)}),s=a.getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=yn(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(Fn),lr=sr,cr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"legend",type:"category",itemSpacing:24,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},items:[],itemStates:{},itemBackground:{},defaultCfg:{title:{spacing:5,style:{fill:Kn.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:Kn.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},itemName:{spacing:16,style:{fill:Kn.textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:{fill:Kn.textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:Kn.uncheckedColor},markerStyle:{fill:Kn.uncheckedColor,stroke:Kn.uncheckedColor}},inactive:{nameStyle:{fill:Kn.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){Object(zt["mix"])(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var i=this.getElementByLocalId("item-"+t.id);if(i){var r=this.getItems(),o=r.indexOf(t),a=this.createOffScreenGroup(),s=this.drawItem(t,o,this.getItemHeight(),a);this.updateElements(s,i),this.clearUpdateStatus(i)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return Object(zt["each"])(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(zt["each"])(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(zt["filter"])(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");Object(zt["each"])(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),i=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),r=this.getItemHeight(),o=this.get("itemWidth"),a=this.get("itemSpacing"),s=this.get("currentPoint"),l=s.x,c=s.y,u=this.get("layout"),h=this.get("items"),d=!1,p=0,f=this.get("maxWidth"),g=this.get("maxHeight");Object(zt["each"])(h,(function(t,n){var h=e.drawItem(t,n,r,i),m=h.getBBox(),v=o||m.width;v>p&&(p=v),"horizontal"===u?(f&&f<s.x+v-l&&(d=!0,s.x=l,s.y+=r),e.moveElementTo(h,s),s.x+=v+a):(g&&g<s.y+r-c&&(d=!0,s.x+=p+a,s.y=c,p=0),e.moveElementTo(h,s),s.y+=r)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=l,this.startY=c,this.adjustNavigation(t,i))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=this.get("itemName");e&&(t=e.style.fontSize+8)}return t},e.prototype.drawMarker=function(t,e,n,i){var r=Object(ye["__assign"])(Object(ye["__assign"])(Object(ye["__assign"])({x:0,y:i/2},e.style),{symbol:Object(zt["get"])(n.marker,"symbol","circle")}),Object(zt["get"])(n.marker,"style",{})),o=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:r}),a=o.getBBox();o.attr("x",a.width/2);var s=o.attr(),l=s.stroke,c=s.fill;return l&&o.set("isStroke",!0),c&&o.set("isFill",!0),o},e.prototype.drawItemText=function(t,e,n,i,r,o,a){var s=n.formatter,l=Object(ye["__assign"])({x:o,y:r/2,text:s?s(i[e],i,a):i[e]},n.style);return this.addShape(t,{type:"text",id:this.getElementId("item-"+i.id+"-"+e),name:"legend-item-"+e,attrs:l})},e.prototype.drawItem=function(t,e,n,i){var r="item-"+t.id,o=this.addGroup(i,{name:"legend-item-container",id:this.getElementId("item-container-"+r),delegateObject:{item:t,index:e}}),a=this.addGroup(o,{name:"legend-item",id:this.getElementId(r),delegateObject:{item:t,index:e}}),s=this.get("marker"),l=this.get("itemName"),c=this.get("itemValue"),u=this.get("itemBackground"),h=this.getLimitItemWidth(),d=0;if(s){var p=this.drawMarker(a,s,t,n);d=p.getBBox().maxX+s.spacing}if(l){var f=this.drawItemText(a,"name",l,t,n,d,e);h&&Xn(!0,f,Object(zt["clamp"])(h-d,0,h)),d=f.getBBox().maxX+l.spacing}if(c){var g=this.drawItemText(a,"value",c,t,n,d,e);h&&(c.alignRight?(g.attr({textAlign:"right",x:h}),Xn(!0,g,Object(zt["clamp"])(h-d,0,h),"head")):Xn(!0,g,Object(zt["clamp"])(h-d,0,h)))}if(u){var m=a.getBBox(),v=this.addShape(a,{type:"rect",name:"legend-item-background",id:this.getElementId(r+"-background"),attrs:Object(ye["__assign"])({x:0,y:0,width:m.width,height:n},u.style)});v.toBack()}return this.applyItemStates(t,a),a},e.prototype.adjustNavigation=function(t,e){var n=this,i=this.startX,r=this.startY,o=this.get("layout"),a=e.findAll((function(t){return"legend-item"===t.get("name")})),s=this.get("maxWidth"),l=this.get("maxHeight"),c=this.get("itemWidth"),u=this.get("itemSpacing"),h=this.getItemHeight(),d=this.drawNavigation(t,o,"00/00",12),p=d.getBBox(),f={x:i,y:r},g=1,m=0,v=0,y=0;if("horizontal"===o)this.pageHeight=h,Object(zt["each"])(a,(function(t){var e=t.getBBox(),r=c||e.width;(m&&m<f.x+r+u||s<f.x+r+u+p.width)&&(1===g&&(m=f.x+u,n.pageWidth=m,n.moveElementTo(d,{x:s-u-p.width-p.minX,y:f.y+h/2-p.height/2-p.minY})),g+=1,f.x=i,f.y+=h),n.moveElementTo(t,f),t.getParent().setClip({type:"rect",attrs:{x:f.x,y:f.y,width:r+u,height:h}}),f.x+=r+u}));else{Object(zt["each"])(a,(function(t){var e=t.getBBox();e.width>v&&(v=e.width)})),y=v,v+=u,s&&(v=Math.min(s,v),y=Math.min(s,y)),this.pageWidth=v,this.pageHeight=l-Math.max(p.height,h);var b=Math.floor(this.pageHeight/h);Object(zt["each"])(a,(function(t,e){0!==e&&e%b===0&&(g+=1,f.x+=v,f.y=r),n.moveElementTo(t,f),t.getParent().setClip({type:"rect",attrs:{x:f.x,y:f.y,width:v,height:h}}),f.y+=h})),this.totalPagesCnt=g,this.moveElementTo(d,{x:i+y/2-p.width/2-p.minX,y:l-p.height-p.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),this.totalPagesCnt=g,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(d),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,i){var r={x:0,y:0},o=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),a=this.drawArrow(o,r,"navigation-arrow-left","horizontal"===e?"up":"left",i);a.on("click",this.onNavigationBack);var s=a.getBBox();r.x+=s.width+2;var l=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:{x:r.x,y:r.y+i/2,text:n,fontSize:12,fill:"#ccc",textBaseline:"middle"}}),c=l.getBBox();r.x+=c.width+2;var u=this.drawArrow(o,r,"navigation-arrow-right","horizontal"===e?"down":"right",i);return u.on("click",this.onNavigationAfter),o},e.prototype.updateNavigation=function(t){var e=this.currentPageIndex+"/"+this.totalPagesCnt,n=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),i=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),r=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),o=n.getBBox();n.attr("text",e);var a=n.getBBox();n.attr("x",n.attr("x")-(a.width-o.width)/2),i.attr("opacity",1===this.currentPageIndex?.45:1),i.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),r.attr("opacity",this.currentPageIndex===this.totalPagesCnt?.45:1),r.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,i,r){var o=e.x,a=e.y,s={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},l=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:{path:[["M",o+r/2,a],["L",o,a+r],["L",o+r,a+r],["Z"]],fill:"#000",cursor:"pointer"}});return l.attr("matrix",dn({x:o+r/2,y:a+r/2},s[i])),l},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,i=t.pageHeight,r=this.get("layout"),o="horizontal"===r?{x:0,y:i*(1-e)}:{x:n*(1-e),y:0};return pn(o)},e.prototype.applyItemStates=function(t,e){var n=this.getItemStates(t),i=n.length>0;if(i){var r=e.getChildren(),o=this.get("itemStates");Object(zt["each"])(r,(function(e){var n=e.get("name"),i=n.split("-")[2],r=pi(t,i,o);r&&(e.attr(r),"marker"!==i||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(lr),ur=cr,hr=1.4,dr=.4,pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Kn.textColor,textBaseline:"middle",fontFamily:Kn.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Kn.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue(),r=i[1];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue(),r=i[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var i=e.getValueByCanvasPoint(n.x,n.y),r=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),l=r-i;l<0?o[0]+l>s.min?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.min,s.min+a]):l>0&&(l>0&&o[1]+l<s.max?e.setValue([o[0]+l,o[1]+l]):e.setValue([s.max-a,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),i=n.style,r=n.align,o=this.get(t),a=this.getLabelAlignAttrs(t,r),s="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(s),name:"legend-label-"+t,attrs:Object(ye["__assign"])(Object(ye["__assign"])({x:0,y:0,text:o},i),a)})},e.prototype.getLabelAlignAttrs=function(t,e){var n=this.isVertical(),i="center",r="middle";return n?(i="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",i="min"===t?"start":"end"):(i="start",r="middle"),{textAlign:i,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,i){var r=this.get("rail"),o=r.size,a=r.defaultLength,s=r.type,l=this.isVertical(),c=a,u=n,h=i;u||(u=l?o:c),h||(h=l?c:o);var d=[];return"color"===s?(d.push(["M",t,e]),d.push(["L",t+u,e]),d.push(["L",t+u,e+h]),d.push(["L",t,e+h]),d.push(["Z"])):(d.push(["M",t+u,e]),d.push(["L",t+u,e+h]),d.push(["L",t,e+h]),d.push(["Z"])),d},e.prototype.drawRail=function(t){var e=this.get("rail"),n=e.style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(ye["__assign"])({path:this.getRailPath(0,0)},n)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var i=0;i<n;i++){var r=i/(n-1);e+=" "+r+":"+t[i]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t),n=e.attr("path");return Object(zt["clone"])(n)},e.prototype.getClipTrackAttrs=function(t){var e,n,i,r,o=this.getCurrentValue(),a=o[0],s=o[1],l=this.getRailBBox(t),c=this.getPointByValue(a,t),u=this.getPointByValue(s,t),h=this.isVertical();return h?(e=l.minX,n=c.y,i=l.width,r=u.y-c.y):(e=c.x,n=l.minY,i=u.x-c.x,r=l.height),{x:e,y:n,width:i,height:r}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),i=this.getTrackPath(t);return Object(zt["mix"])({path:i,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),i=e.findById(n),r=i.getClip(),o=this.getClipTrackAttrs(t);r?r.attr(o):i.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),i=this.getTrackAttrs(t);n?n.attr(i):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:i})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),i=n.min,r=n.max,o=(t-i)/(r-i),a=this.getRailBBox(e),s=this.isVertical(),l={x:0,y:0};return s?(l.x=a.minX+a.width/2,l.y=An(a.minY,a.maxY,o)):(l.x=An(a.minX,a.maxX,o),l.y=a.minY+a.height/2),l},e.prototype.getRailShape=function(t){var e=t||this.get("group");return e.findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){var e=this.getRailShape(t),n=e.getBBox();return n},e.prototype.getRailCanvasBBox=function(){var t=this.get("group"),e=t.findById(this.getElementId("rail")),n=e.getCanvasBBox();return n},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,i=this.getRange(),r=i.min,o=i.max,a=this.getRailCanvasBBox(),s=this.isVertical(),l=this.get("step");n=s?(e-a.minY)/a.height:(t-a.minX)/a.width;var c=An(r,o,n);if(l){var u=Math.round((c-r)/l);c=r+u*l}return c>o&&(c=o),c<r&&(c=r),c},e.prototype.getCurrentValue=function(){var t=this.get("value");return t||(t=[this.get("min"),this.get("max")]),t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],i=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",i)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),i=[],r=t.size,o=e.x,a=e.y,s=r*hr,l=r/2,c=r/6;if(n){var u=o+s*dr;i.push(["M",o,a]),i.push(["L",u,a+l]),i.push(["L",o+s,a+l]),i.push(["L",o+s,a-l]),i.push(["L",u,a-l]),i.push(["Z"]),i.push(["M",u,a+c]),i.push(["L",o+s-2,a+c]),i.push(["M",u,a-c]),i.push(["L",o+s-2,a-c])}else{var h=a+s*dr;i.push(["M",o,a]),i.push(["L",o-l,h]),i.push(["L",o-l,a+s]),i.push(["L",o+l,a+s]),i.push(["L",o+l,h]),i.push(["Z"]),i.push(["M",o-c,h]),i.push(["L",o-c,a+s-2]),i.push(["M",o+c,h]),i.push(["L",o+c,a+s-2])}return i},e.prototype.resetHandler=function(t,e,n){var i=this.getPointByValue(n,t),r=this.get("handler"),o=this.getHandlerPath(r,i),a=this.getElementId("handler-"+e),s=t.findById(a),l=this.isVertical();s?s.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:a,attrs:Object(ye["__assign"])(Object(ye["__assign"])({path:o},r.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),i=t.findById(this.getElementId("label-max")),r=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,i,e,r):this.fixedHorizontal(n,i,e,r)},e.prototype.fitRailLength=function(t,e,n,i){var r=this.isVertical(),o=r?"height":"width",a=this.get("label"),s=a.align,l=a.spacing,c=this.get("max"+Object(zt["upperFirst"])(o));if(c){var u="rail"===s?n[o]+t[o]+e[o]+2*l:n[o],h=u-c;h>0&&this.changeRailLength(i,o,n[o]-h)}},e.prototype.changeRailLength=function(t,e,n){var i,r=t.getBBox();i="height"===e?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height),t.attr("path",i)},e.prototype.changeRailPosition=function(t,e,n){var i=t.getBBox(),r=this.getRailPath(e,n,i.width,i.height);t.attr("path",r)},e.prototype.fixedHorizontal=function(t,e,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),l=t.getBBox(),c=e.getBBox(),u=s.height;this.fitRailLength(l,c,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:i.x,y:i.y+u/2}),this.changeRailPosition(n,i.x+l.width+a,i.y),e.attr({x:i.x+l.width+s.width+2*a,y:i.y+u/2})):"top"===o?(t.attr({x:i.x,y:i.y}),e.attr({x:i.x+s.width,y:i.y}),this.changeRailPosition(n,i.x,i.y+l.height+a)):(this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x,y:i.y+s.height+a}),e.attr({x:i.x+s.width,y:i.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),l=t.getBBox(),c=e.getBBox();if(this.fitRailLength(l,c,s,n),s=n.getBBox(),"rail"===o)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+l.height+a),e.attr({x:i.x,y:i.y+l.height+s.height+2*a});else if("right"===o)t.attr({x:i.x+s.width+a,y:i.y}),this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x+s.width+a,y:i.y+s.height});else{var u=Math.max(l.width,c.width);t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x+u+a,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(lr),fr=pr,gr="g2-tooltip",mr="g2-tooltip-title",vr="g2-tooltip-list",yr="g2-tooltip-list-item",br="g2-tooltip-marker",xr="g2-tooltip-value",wr="g2-tooltip-name",_r="g2-tooltip-crosshair-x",Cr="g2-tooltip-crosshair-y",Ar=(nr={},nr[""+gr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Kn.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},nr[""+mr]={marginBottom:"4px"},nr[""+vr]={margin:"0px",listStyleType:"none",padding:"0px"},nr[""+yr]={listStyleType:"none",marginBottom:"4px"},nr[""+br]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},nr[""+xr]={display:"inline-block",float:"right",marginLeft:"30px"},nr[""+_r]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},nr[""+Cr]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},nr);function Ir(t,e,n,i,r){var o={left:t<r.x,right:t+n>r.x+r.width,top:e<r.y,bottom:e+i>r.y+r.height};return o}function Sr(t,e,n,i,r,o){var a=t,s=e;switch(o){case"left":a=t-i-n,s=e-r/2;break;case"right":a=t+n,s=e-r/2;break;case"top":a=t-i/2,s=e-r-n;break;case"bottom":a=t-i/2,s=e+n;break;default:a=t+n,s=e-r-n;break}return{x:a,y:s}}function Mr(t,e,n,i,r,o,a){var s=Sr(t,e,n,i,r,o);if(a){var l=Ir(s.x,s.y,i,r,a);"auto"===o?(l.right&&(s.x=Math.max(0,t-i-n)),l.top&&(s.y=Math.max(0,e-r-n))):"top"===o||"bottom"===o?(l.left&&(s.x=a.x),l.right&&(s.x=a.x+a.width-i),"top"===o&&l.top&&(s.y=e+n),"bottom"===o&&l.bottom&&(s.y=e-r-n)):(l.top&&(s.y=a.y),l.bottom&&(s.y=a.y+a.height-r),"left"===o&&l.left&&(s.x=t+n),"right"===o&&l.right&&(s.x=t-i-n))}return s}function kr(t,e){var n=!1;return Object(zt["each"])(e,(function(e){if(Object(zt["hasKey"])(t,e))return n=!0,!1})),n}var Er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+gr+'"><div class="'+mr+'"></div><ul class="'+vr+'"></ul></div>',itemTpl:'<li class="'+yr+'" data-index={index}>\n          <span class="'+br+'" style="background:{color}"></span>\n          <span class="'+wr+'">{name}</span>:\n          <span class="'+xr+'">{value}</span>\n        </li>',xCrosshairTpl:'<div class="'+_r+'"></div>',yCrosshairTpl:'<div class="'+Cr+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:gr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:Ar})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),ae(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),ae(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");n&&ae(n,{display:e}),i&&ae(i,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){this.get("customContent")?this.renderCustomContent():(kr(e,["title","showTitle"])&&this.resetTitle(),Object(zt["hasKey"])(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),i=this.get("offset"),r=this.getOffset(),o=r.offsetX,a=r.offsetY,s=this.get("position"),l=this.get("region"),c=this.getContainer(),u=this.getBBox(),h=u.width,d=u.height;l&&(t=wn(l));var p=Mr(e,n,i,h,d,s,t);ae(c,{left:Tn(p.x+o),top:Tn(p.y+a)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=Object(zt["isElement"])(n)?n:oe(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(mr)[0],n=t.getElementsByClassName(vr)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),e=this.get("showTitle");e&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=wn(t),i=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),i=this.get(t);ae(n,"x"===t?{left:Tn(i),top:Tn(e.y),height:Tn(e.height)}:{top:Tn(i),left:Tn(e.x),width:Tn(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",i="CROSSHAIR_"+t.toUpperCase(),r=d[i],o=this.get(e),a=this.get("parent");return o||(o=oe(this.get(n)),this.applyStyle(r,o),a.appendChild(o),this.set(e,o)),o},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(zt["each"])(t,(function(t){var i=Le.toCSSGradient(t.color),r=Object(ye["__assign"])(Object(ye["__assign"])({},t),{color:i}),o=Object(zt["substitute"])(e,r),a=oe(o);n.appendChild(a)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&bn(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(Zi),Tr=Er,Or={opacity:0},Pr={stroke:"#C5C5C5",strokeOpacity:.85},jr={fill:"#CACED4",opacity:.85},Lr=(n("72fb"),n("01f9")),Dr=n.n(Lr);n("61d8");function Rr(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?o[3]={x:+t[0],y:+t[1]}:r-2===i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}n("91de");var Br="\t\n\v\f\r   ᠎             　\u2028\u2029",Nr=new RegExp("([a-z])["+Br+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Br+"]*,?["+Br+"]*)+)","ig"),Fr=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Br+"]*,?["+Br+"]*","ig");function zr(t){if(!t)return null;if(Dr()(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(Nr,(function(t,i,r){var o=[],a=i.toLowerCase();if(r.replace(Fr,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([i].concat(o.splice(0,2))),a="l",i="m"===i?"l":"L"),"o"===a&&1===o.length&&n.push([i,o[0]]),"r"===a)n.push([i].concat(o));else while(o.length>=e[a])if(n.push([i].concat(o.splice(0,e[a]))),!e[a])break;return""})),n}n("df01"),n("3753");function Vr(t){return Object(zt["map"])(t,(function(t,e){var n=0===e?"M":"L",i=t[0],r=t[1];return[n,i,r]}))}function Gr(t){return Vr(t)}function Hr(t){if(t.length<=2)return Gr(t);var e=[];Object(zt["each"])(t,(function(t){Object(zt["isEqual"])(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Rr(e,!1),i=Object(zt["head"])(t),r=i[0],o=i[1];return n.unshift(["M",r,o]),n}function Wr(t,e,n,i){void 0===i&&(i=!0);var r=new Ue["Linear"]({values:t}),o=new Ue["Category"]({values:Object(zt["map"])(t,(function(t,e){return e}))}),a=Object(zt["map"])(t,(function(t,i){return[o.scale(i)*e,n-r.scale(t)*n]}));return i?Hr(a):Gr(a)}function Ur(t,e,n){var i=Object(ye["__spreadArrays"])(t);return i.push(["L",e,0]),i.push(["L",0,n]),i.push(["Z"]),i}var Zr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:Or,lineStyle:Pr,areaStyle:jr})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.data,o=e.smooth,a=e.isArea,s=e.backgroundStyle,l=e.lineStyle,c=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(ye["__assign"])({x:0,y:0,width:n,height:i},s)});var u=Wr(r,n,i,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(ye["__assign"])({path:u},l)}),a){var h=Ur(u,n,i);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(ye["__assign"])({path:h},c)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(Fn),Yr={fill:"#416180",opacity:.05},Xr={fill:"#5B8FF9",opacity:.15,cursor:"move"},qr=10,Kr={width:qr,height:24},Qr={textBaseline:"middle",fill:"#000",opacity:.45},Jr="sliderchange",$r={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"handler",x:0,y:0,width:10,height:24,style:$r})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.style,o=r.fill,a=r.stroke,s=r.radius,l=r.opacity,c=r.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:i,fill:o,stroke:a,radius:s,opacity:l,cursor:c}});var u=1/3*n,h=2/3*n,d=.25*i,p=.75*i;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:d,x2:u,y2:p,stroke:a,cursor:c}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:d,x2:h,y2:p,stroke:a,cursor:c}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(Fn),eo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var i=n.originalEvent;i.stopPropagation(),i.preventDefault(),e.prevX=Object(zt["get"])(i,"touches.0.pageX",i.pageX),e.prevY=Object(zt["get"])(i,"touches.0.pageY",i.pageY);var r=e.getContainerDOM();r.addEventListener("mousemove",e.onMouseMove),r.addEventListener("mouseup",e.onMouseUp),r.addEventListener("mouseleave",e.onMouseUp),r.addEventListener("touchmove",e.onMouseMove),r.addEventListener("touchend",e.onMouseUp),r.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,i=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var r=Object(zt["get"])(t,"touches.0.pageX",t.pageX),o=Object(zt["get"])(t,"touches.0.pageY",t.pageY),a=r-e.prevX,s=e.adjustOffsetRange(a/n);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=r,e.prevY=o,e.draw(),e.emit(Jr,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:i,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(ye["__extends"])(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),i=this.get("end"),r=Object(zt["clamp"])(n,t,e),o=Object(zt["clamp"])(i,t,e);this.get("isInit")||n===r&&i===o||this.setValue([r,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(Object(zt["isArray"])(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(zt["clamp"])(t[0],e.min,e.max),end:Object(zt["clamp"])(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:Yr,foregroundStyle:Xr,handlerStyle:Kr,textStyle:Qr}})},e.prototype.update=function(e){var n=e.start,i=e.end,r=Object(ye["__assign"])({},e);Object(zt["isNil"])(n)||(r.start=Object(zt["clamp"])(n,0,1)),Object(zt["isNil"])(i)||(r.end=Object(zt["clamp"])(i,0,1)),t.prototype.update.call(this,r),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler"))},e.prototype.init=function(){this.set("start",Object(zt["clamp"])(this.get("start"),0,1)),this.set("end",Object(zt["clamp"])(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),i=e.height,r=e.trendCfg,o=void 0===r?{}:r,a=e.minText,s=e.maxText,l=e.backgroundStyle,c=void 0===l?{}:l,u=e.foregroundStyle,h=void 0===u?{}:u,d=e.textStyle,p=void 0===d?{}:d,f=e.handlerStyle,g=void 0===f?{}:f;Object(zt["size"])(Object(zt["get"])(o,"data"))&&this.addComponent(t,Object(ye["__assign"])({component:Zr,id:this.getElementId("trend"),x:0,y:0,width:n,height:i},o)),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(ye["__assign"])({x:0,y:0,width:n,height:i},c)});var m=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(ye["__assign"])({y:i/2,textAlign:"right",text:a,silent:!1},p)}),v=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(ye["__assign"])({y:i/2,textAlign:"left",text:s,silent:!1},p)}),y=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(ye["__assign"])({y:0,height:i},h)}),b=Object(zt["get"])(g,"height",24);this.minHandler=this.addComponent(t,Object(ye["__assign"])({component:to,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(i-b)/2,width:n,height:b,cursor:"ew-resize"},g)),this.maxHandler=this.addComponent(t,Object(ye["__assign"])({component:to,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(i-b)/2,width:n,height:b,cursor:"ew-resize"},g)),this.updateUI(y,m,v)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var i=this.cfg,r=i.start,o=i.end,a=i.width,s=i.minText,l=i.maxText,c=i.handlerStyle,u=r*a,h=o*a;t.attr("x",u),t.attr("width",h-u);var d=Object(zt["get"])(c,"width",qr);e.attr("text",s),n.attr("text",l);var p=this._dodgeText([u,h],e,n),f=p[0],g=p[1];this.minHandler&&(this.minHandler.update({x:u-d/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(zt["each"])(f,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:h-d/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(zt["each"])(g,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":var r=0-n,o=1-n;return Math.min(o,Math.max(r,t));case"maxHandler":r=0-i,o=1-i;return Math.min(o,Math.max(r,t));case"foreground":r=0-n,o=1-i;return Math.min(o,Math.max(r,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":i+=t;break;case"foreground":n+=t,i+=t;break}this.set("start",n),this.set("end",i)},e.prototype._dodgeText=function(t,e,n){var i,r,o=this.cfg,a=o.handlerStyle,s=o.width,l=2,c=Object(zt["get"])(a,"width",qr),u=t[0],h=t[1],d=!1;u>h&&(i=[h,u],u=i[0],h=i[1],r=[n,e],e=r[0],n=r[1],d=!0);var p=e.getBBox(),f=n.getBBox(),g=p.width>u-l?{x:u+c/2+l,textAlign:"left"}:{x:u-c/2-l,textAlign:"right"},m=f.width>s-h-l?{x:h-c/2-l,textAlign:"right"}:{x:h+c/2+l,textAlign:"left"};return d?[m,g]:[g,m]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(Fn),no={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},io={default:no,hover:{thumbColor:"rgba(0,0,0,0.2)"}},ro=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=zt["noop"],e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var i=t?Object(zt["get"])(n.originalEvent,"touches.0.clientX"):n.clientX,r=t?Object(zt["get"])(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?i:r,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[ie(t,"touchmove",e.onMouseMove),ie(t,"touchend",e.onMouseUp),ie(t,"touchcancel",e.onMouseUp)]:[ie(t,"mousemove",e.onMouseMove),ie(t,"mouseup",e.onMouseUp),ie(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,i=n.isHorizontal,r=n.thumbOffset;t.preventDefault();var o=e.isMobile?Object(zt["get"])(t,"touches.0.clientX"):t.clientX,a=e.isMobile?Object(zt["get"])(t,"touches.0.clientY"):t.clientY,s=i?o:a,l=s-e.startPos;e.startPos=s,e.updateThumbOffset(r+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,i=n.isHorizontal,r=n.x,o=n.y,a=n.thumbLen,s=e.getContainerDOM(),l=s.getBoundingClientRect(),c=t.clientX,u=t.clientY,h=i?c-l.left-r-a/2:u-l.top-o-a/2,d=e.validateRange(h);e.updateThumbOffset(d)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}Object(ye["__extends"])(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),i=Object(zt["clamp"])(n,t,e);n===i||this.get("isInit")||this.setValue(i)},e.prototype.getRange=function(){var t=this.get("minLimit")||0,e=this.get("maxLimit")||1;return{min:t,max:e}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(zt["clamp"])(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(zt["clamp"])(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:io})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,i=e.theme,r=void 0===i?{default:{}}:i,o=r.default,a=o.lineCap,s=o.trackColor,l=o.size,c=this.get("isHorizontal")?{x1:0+l/2,y1:l/2,x2:n-l/2,y2:l/2,lineWidth:l,stroke:s,lineCap:a}:{x1:l/2,y1:0+l/2,x2:l/2,y2:n-l/2,lineWidth:l,stroke:s,lineCap:a};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:c})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,i=e.thumbLen,r=e.theme,o=void 0===r?{default:{}}:r,a=o.default,s=a.size,l=a.lineCap,c=a.thumbColor,u=this.get("isHorizontal")?{x1:n+s/2,y1:s/2,x2:n+i-s/2,y2:s/2,lineWidth:s,stroke:c,lineCap:l,cursor:"default"}:{x1:s/2,y1:n+s/2,x2:s/2,y2:n+i-s/2,lineWidth:s,stroke:c,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:u})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var e=t.findById(this.getElementId("track"));e.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,i=e.trackLen,r=t;return t+n>i?r=i-n:t+n<n&&(r=0),r},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,i=e.isHorizontal,r=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==n){var s=this.getElementByLocalId("thumb");i?s.attr({x1:a+o/2,x2:a+r-o/2}):s.attr({y1:a+o/2,y2:a+r-o/2}),this.emitOffsetChange(a)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,i=e.trackLen,r=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:Object(zt["clamp"])(t/(i-r),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})}}(Fn),l.Line),oo=l.Circle,ao=u.Line,so=u.Circle,lo=h.Category,co=h.Continuous,uo=p.Html,ho=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function po(t){var e="linear";return ho.test(t)?e="time":Object(zt["isString"])(t)&&(e="cat"),e}function fo(t,e,n){var i=e||[];if(Object(zt["isNumber"])(t)||Object(zt["isNil"])(Object(zt["firstValue"])(i,t))&&Object(zt["isEmpty"])(n)){var r=Object(Ue["getScale"])("identity");return new r({field:t.toString(),values:[t]})}var o=Object(zt["valuesOfKey"])(i,t),a=Object(zt["get"])(n,"type",po(o[0])),s=Object(Ue["getScale"])(a);return new s(Lt({field:t,values:o},n))}function go(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);t.change(n)}}function mo(t){return t.alias||t.field}function vo(t){var e,n;switch(t){case Nt.TOP:e={x:0,y:1},n={x:1,y:1};break;case Nt.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case Nt.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case Nt.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function yo(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function bo(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=vo(e):t.isPolar&&(n=yo(t));var i=n.start,r=n.end;return{start:t.convert(i),end:t.convert(r)}}function xo(t){var e=t.start,n=t.end;return e.x===n.x}function wo(t,e){var n=t.start,i=t.end,r=xo(t);return r?(n.y-i.y)*(e.x-n.x)>0?1:-1:(i.x-n.x)*(n.y-e.y)>0?-1:1}function _o(t,e){return Object(zt["get"])(t,["components","axis",e],{})}function Co(t){var e=t.x,n=t.y,i=t.circleCenter,r=n.start>n.end,o=t.isTransposed?t.convert({x:r?0:1,y:0}):t.convert({x:0,y:r?0:1}),a=[o.x-i.x,o.y-i.y],s=[1,0],l=o.y>i.y?qe["c"].angle(a,s):-1*qe["c"].angle(a,s),c=l+(e.end-e.start),u=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2));return{center:i,radius:u,startAngle:l,endAngle:c}}function Ao(t,e){return Object(zt["isBoolean"])(t)?!1!==t&&{}:Object(zt["get"])(t,[e])}function Io(t,e){return Object(zt["get"])(t,"position",e)}function So(t,e){return Object(zt["get"])(e,["title","text"],mo(t))}var Mo=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(zt["deepMix"])({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,i=t.padding,r=void 0===i?this.cfg.padding:i,o=this.view.createView({region:e,padding:r});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){var t=this.view.getLayer(Bt.FORE);return t.addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(zt["each"])(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return Object(zt["each"])(t,(function(t){var r=t[e];Object(zt["isNil"])(r)||i[r]||(n.push(r),i[r]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=1/(0===e?1:e),o=1/(0===t?1:t),a={x:r*n,y:o*i},s={x:r*(n+1),y:o*(i+1)};return{start:a,end:s}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){var t=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:t}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),i=n.coordinate,r=t.geometries,o=Object(zt["get"])(i,"type","rect");if("rect"===o&&r.length){Object(zt["isNil"])(n.axes)&&(n.axes={});var a=n.axes,s=r[0].getXYFields(),l=s[0],c=s[1],u=Ao(a,l),h=Ao(a,c);!1!==u&&(n.axes[l]=this.getXAxisOption(l,a,u,e)),!1!==h&&(n.axes[c]=this.getYAxisOption(c,a,h,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(zt["every"])(t,(function(t){var n=t.field,i=t.value;return!(!Object(zt["isNil"])(i)&&n)||e[n]===i}))}},t}(),ko={},Eo=function(t){return ko[Object(zt["lowerCase"])(t)]},To=function(t,e){ko[Object(zt["lowerCase"])(t)]=e},Oo=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(zt["assign"])(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Po=Oo,jo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(Po),Lo=jo,Do={};function Ro(t,e){var n=Do[t],i=null;if(n){var r=n.ActionClass,o=n.cfg;i=new r(e,o),i.name=t,i.init()}return i}function Bo(t,e,n){Do[t]={ActionClass:e,cfg:n}}function No(t,e){var n=new Lo(e);return n.callback=t,n.name="callback",n}function Fo(t){if(Object(zt["isEmpty"])(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return Object(zt["each"])(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,r=r<t.y?t.y:r})),{minX:e,maxX:n,minY:i,maxY:r,centerX:(e+n)/2,centerY:(i+r)/2}}function zo(t,e,n,i){return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}function Vo(t,e,n,i,r,o){void 0===o&&(o=0);var a=zo(t,e,n,i),s=zo(t,e,n,r),l=zo(t,e,o,i),c=zo(t,e,o,r);if(r-i===2*Math.PI){var u=zo(t,e,n,i+Math.PI),h=zo(t,e,o,i+Math.PI),d=[["M",a.x,a.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["M",l.x,l.y]];return o&&(d.push(["A",o,o,0,1,0,h.x,h.y]),d.push(["A",o,o,0,1,0,c.x,c.y])),d.push(["M",a.x,a.y]),d.push(["Z"]),d}var p=r-i<=Math.PI?0:1,f=[["M",a.x,a.y],["A",n,n,0,p,1,s.x,s.y],["L",c.x,c.y]];return o&&f.push(["A",o,o,0,p,0,l.x,l.y]),f.push(["L",a.x,a.y]),f.push(["Z"]),f}function Go(t,e,n,i,r){var o=zo(t,e,n,i),a=zo(t,e,n,r);if(Object(zt["isNumberEqual"])(r-i,2*Math.PI)){var s=zo(t,e,n,i+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var l=r-i<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,l,1,a.x,a.y]]}function Ho(t,e){var n,i,r=t.points,o=Fo(r),a=e.startAngle,s=e.endAngle,l=s-a;return e.isTransposed?(n=o.maxY*l,i=o.minY*l):(n=o.maxX*l,i=o.minX*l),n+=a,i+=a,{startAngle:i,endAngle:n}}function Wo(t,e){if(Object(zt["isNumber"])(t)&&Object(zt["isNumber"])(e))return[t,e];var n,i,r=-1,o=0,a=0,s=t.length-1,l=0;while(++r<t.length)n=s,s=r,l+=i=t[n]*e[s]-t[s]*e[n],o+=(t[n]+t[s])*i,a+=(e[n]+e[s])*i;return l*=3,[o/l,a/l]}function Uo(t,e){var n=t.attr(),i=e.attr();return Object(zt["each"])(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}function Zo(t,e,n){var i=Math.min(e,n),r=Math.max(e,n);return t>=i&&t<=r}function Yo(t,e,n){if(Object(zt["isString"])(t))return t.padEnd(e,n);if(Object(zt["isArray"])(t)){var i=t.length;if(i<e)for(var r=e-i,o=0;o<r;o++)t.push(n)}return t}function Xo(t,e){return e.forEach((function(e){delete t[e]})),t}function qo(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={});for(var i=0,r=t;i<r.length;i++){var o=r[i];n[o]||(e.push(o),n[o]=!0)}return e}function Ko(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Qo(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function Jo(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function $o(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=Zo(e.x,i.x,r.x)&&Zo(e.y,i.y,r.y)}else{var o=t.invert(e);n=Zo(o.x,0,1)&&Zo(o.y,0,1)}return n}function ta(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function ea(t,e){void 0===e&&(e=0);var n,i=t.start,r=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var s=t.startAngle,l=t.endAngle,c=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:Vo(c.x,c.y,u+e,s,s)},endState:function(t){var n=(l-s)*t+s,i=Vo(c.x,c.y,u+e,s,n);return{path:i}},attrs:{path:Vo(c.x,c.y,u+e,s,l)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:i.x-e,y:r.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:i.x-e,y:r.y-e,width:o+2*e,height:a+2*e}}}function na(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i<r;i+=1){var o=t[i];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}function ia(t,e){for(var n=[t[0]],i=1,r=t.length;i<r;i+=2){var o=e.convert({x:t[i],y:t[i+1]});n.push(o.x,o.y)}return n}function ra(t,e,n){var i=n.isTransposed,r=n.startAngle,o=n.endAngle,a={x:t[1],y:t[2]},s={x:e[1],y:e[2]},l=[],c=i?"y":"x",u=Math.abs(s[c]-a[c])*(o-r),h=s[c]>=a[c]?1:0,d=u>Math.PI?1:0,p=n.convert(s),f=Jo(n,p);if(f>=.5)if(u===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.y)/2},m=n.convert(g);l.push(["A",f,f,0,d,h,m.x,m.y]),l.push(["A",f,f,0,d,h,p.x,p.y])}else l.push(["A",f,f,0,d,h,p.x,p.y]);return l}function oa(t){Object(zt["each"])(t,(function(e,n){var i=e;if("a"===i[0].toLowerCase()){var r=t[n-1],o=t[n+1];o&&"a"===o[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}}))}var aa=function(t,e,n,i){var r,o,a,s,l=[],c=!!i;if(c){a=[1/0,1/0],s=[-1/0,-1/0];for(var u=0,h=t.length;u<h;u++){var d=t[u];a=qe["c"].min([0,0],a,d),s=qe["c"].max([0,0],s,d)}a=qe["c"].min([0,0],a,i[0]),s=qe["c"].max([0,0],s,i[1])}u=0;for(var p=t.length;u<p;u++){d=t[u];if(n)r=t[u?u-1:p-1],o=t[(u+1)%p];else{if(0===u||u===p-1){l.push(d);continue}r=t[u-1],o=t[u+1]}var f=[0,0];f=qe["c"].sub(f,o,r),f=qe["c"].scale(f,f,e);var g=qe["c"].distance(d,r),m=qe["c"].distance(d,o),v=g+m;0!==v&&(g/=v,m/=v);var y=qe["c"].scale([0,0],f,-g),b=qe["c"].scale([0,0],f,m),x=qe["c"].add([0,0],d,y),w=qe["c"].add([0,0],d,b);c&&(x=qe["c"].max([0,0],x,a),x=qe["c"].min([0,0],x,s),w=qe["c"].max([0,0],w,a),w=qe["c"].min([0,0],w,s)),l.push(x),l.push(w)}return n&&l.push(l.shift()),l};function sa(t,e,n){for(var i=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,l,c,u=aa(r,.4,i,n),h=r.length,d=[];for(o=0;o<h-1;o++)s=u[2*o],l=u[2*o+1],c=r[o+1],d.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]]);return i&&(s=u[h],l=u[h+1],c=r[0],d.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]])),d}function la(t,e){return na(t,e)}function ca(t,e,n){var i=[],r=t[0],o=null;if(t.length<=2)return la(t,e);for(var a=0,s=t.length;a<s;a++){var l=t[a];o&&o.x===l.x&&o.y===l.y||(i.push(l.x),i.push(l.y),o=l)}var c=n||[[0,0],[1,1]],u=sa(i,e,c);return u.unshift(["M",r.x,r.y]),u}function ua(t,e){var n=[];return Object(zt["each"])(e,(function(e){var i=e[0];switch(i.toLowerCase()){case"m":case"l":case"c":n.push(ia(e,t));break;case"z":default:n.push(e);break}})),n}function ha(t,e){var n,i,r,o,a=[];return Object(zt["each"])(e,(function(s,l){var c=s[0];switch(c.toLowerCase()){case"m":case"c":case"q":a.push(ia(s,t));break;case"l":n=e[l-1],i=s,r=t.isTransposed,o=r?n[n.length-2]===i[1]:n[n.length-1]===i[2],o?a=a.concat(ra(n,i,t)):a.push(ia(s,t));break;case"z":default:a.push(s);break}})),oa(a),a}var da=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=t,this.y=e,this.height=i,this.width=n}return t.fromRange=function(e,n,i,r){return new t(e,n,i-e,r-n)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(zt["each"])(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(zt["each"])(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var i=e.width,r=e.height;switch(n){case Nt.TOP:case Nt.TOP_LEFT:case Nt.TOP_RIGHT:return t.fromRange(this.minX,this.minY+r,this.maxX,this.maxY);case Nt.RIGHT:case Nt.RIGHT_TOP:case Nt.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-i,this.maxY);case Nt.BOTTOM:case Nt.BOTTOM_LEFT:case Nt.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-r);case Nt.LEFT:case Nt.LEFT_TOP:case Nt.LEFT_BOTTOM:return t.fromRange(this.minX+i,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=e[0],i=e[1],r=e[2],o=e[3];return new t(this.x+o,this.y+n,this.width-o-i,this.height-n-r)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.size=function(){return this.width*this.height},t}();function pa(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}var fa=n("d301"),ga=n.n(fa);function ma(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?r:null}function va(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?i.attr("path"):null}function ya(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}function ba(t){var e,n=t.event,i=n.target;return i&&(e=i.get("delegateObject")),e}function xa(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function wa(t){return t&&t.component&&t.component.isList()}function _a(t){return t&&t.component&&t.component.isSlider()}function Ca(t){var e=t.event,n=e.target;return n&&"mask"===n.get("name")}function Aa(t,e){var n=t.event.target;if("path"===n.get("type")){var i=va(t,e);if(!i)return;return ja(t.view,i)}var r=ma(t,e);return r?Oa(t.view,r):null}function Ia(t,e,n){var i=ma(t,n);if(!i)return null;var r=t.view,o=za(r,e,{x:i.x,y:i.y}),a=za(r,e,{x:i.maxX,y:i.maxY}),s={minX:o.x,minY:o.y,maxX:a.x,maxY:a.y};return Oa(e,s)}function Sa(t){var e=t.geometries,n=[];return Object(zt["each"])(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(zt["each"])(t.views,(function(t){n=n.concat(Sa(t))})),n}function Ma(t,e,n){var i=Sa(t);return i.filter((function(t){return Ea(t,e)===n}))}function ka(t,e){var n=t.geometries,i=[];return Object(zt["each"])(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function Ea(t,e){var n,i=t.getModel(),r=i.data;return n=Object(zt["isArray"])(r)?r[0][e]:r[e],n}function Ta(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function Oa(t,e){var n=Sa(t),i=[];return Object(zt["each"])(n,(function(t){var n=t.shape,r=n.getCanvasBBox();Ta(e,r)&&i.push(t)})),i}function Pa(t){var e=[];return Object(zt["each"])(t,(function(t){var n=t[0];if("A"!==n)for(var i=1;i<t.length;i+=2)e.push([t[i],t[i+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function ja(t,e){var n=Sa(t),i=Pa(e),r=n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=Pa(n.attr("path"));else{var r=n.getCanvasBBox();e=pa(r)}return ga()(i,e)}));return r}function La(t){return t.getComponents().map((function(t){return t.component}))}function Da(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}function Ra(t,e){if(t.length<=2)return la(t,!1);var n=t[0],i=[];Object(zt["each"])(t,(function(t){i.push(t.x),i.push(t.y)}));var r=sa(i,e,null);return r.unshift(["M",n.x,n.y]),r}function Ba(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function Na(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function Fa(t,e){var n=t.getCoordinate();return n.invert(e)}function za(t,e,n){var i=Fa(t,n);return e.getCoordinate().convert(i)}function Va(t,e,n,i){var r=!1;return Object(zt["each"])(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return r=!0,!1})),r}function Ga(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(zt["each"])(t.views,(function(t){if(n=Ga(t,e),n)return!1})),n}var Ha=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;if(t){if(t.target instanceof HTMLElement){var e=this.view.getCanvas(),n=e.getPointByClient(t.clientX,t.clientY);return n}return{x:t.x,y:t.y}}return null},t.prototype.getCurrentShape=function(){return Object(zt["get"])(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=La(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&Ba(i,n):Ba(i,n)}))},t.prototype.destroy=function(){this.view=null,this.event=null,Object(zt["each"])(this.actions.slice(),(function(t){t.destroy()})),this.actions=null,this.cacheMap=null},t}(),Wa=Ha,Ua=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}(),Za=Ua;function Ya(t,e){var n=t.split(":"),i=n[0],r=e.getAction(i)||Ro(i,e);if(!r)throw new Error("There is no action named "+i);var o=n[1];return{action:r,methodName:o}}function Xa(t){var e=t.action,n=t.methodName;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n]()}var qa={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},Ka=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return jt(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Object(zt["each"])(this.steps,(function(e,n){Object(zt["each"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)}))}))},e.prototype.clearEvents=function(){var t=this;Object(zt["each"])(this.steps,(function(e,n){Object(zt["each"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.offEvent(e.trigger,i)}))}))},e.prototype.initContext=function(){var t=this.view,e=new Wa(t);this.context=e;var n=this.steps;Object(zt["each"])(n,(function(t){Object(zt["each"])(t,(function(t){if(Object(zt["isFunction"])(t.action))t.actionObject={action:No(t.action,e),methodName:"execute"};else if(Object(zt["isString"])(t.action))t.actionObject=Ya(t.action,e);else if(Object(zt["isArray"])(t.action)){var n=t.action;t.actionObject=[],Object(zt["each"])(n,(function(n){t.actionObject.push(Ya(n,e))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===qa.SHOW_ENABLE)return!0;if(t===qa.PROCESSING)return e===qa.START;if(t===qa.START)return e!==qa.PROCESSING;if(t===qa.END)return e===qa.PROCESSING||e===qa.START;if(t===qa.ROLLBACK){if(n[qa.END])return e===qa.END;if(e===qa.START)return!0}return!1},e.prototype.isAllowExcute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==qa.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,i=this.context,r=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!r[a]){var s=function(r){i.event=r,n.isAllowExcute(t,e)?(Object(zt["isArray"])(o)?Object(zt["each"])(o,(function(t){i.event=r,Xa(t)})):(i.event=r,Xa(o)),n.afterExecute(t,e),e.callback&&(i.event=r,e.callback(i))):i.event=null};e.debounce?r[a]=Object(zt["debounce"])(s,e.debounce.wait,e.debounce.immediate):e.throttle?r[a]=Object(zt["throttle"])(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):r[a]=s}return r[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(Za),Qa=Ka,Ja={};function $a(t){return Ja[Object(zt["lowerCase"])(t)]}function ts(t,e){Ja[Object(zt["lowerCase"])(t)]=e}function es(t,e,n){var i=$a(t);if(!i)return null;if(Object(zt["isPlainObject"])(i)){var r=Object(zt["mix"])(Object(zt["clone"])(i),n);return new Qa(e,r)}var o=i;return new o(e,n)}var ns=n("9e49");function is(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},i={title:{autoRotate:!0,position:"center",style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},label:{autoRotate:!0,autoEllipsis:!0,autoHide:!0,offset:16,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0},r={line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},o={title:null,marker:{symbol:"circle",style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},flipPage:!0,animate:!1,maxItemWidth:.2};return{background:t.backgroundColor,defaultColor:t.brandColor,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var i=Ho(t.getModel(),e),r=i.startAngle,o=i.endAngle,a=(r+o)/2,s=7.5,l=s*Math.cos(a),c=s*Math.sin(a);return{matrix:qe["a"].transform(null,[["t",l,c]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:Lt(Lt({},n.line.default),{lineDash:[1,1]})},active:{style:Lt(Lt({},n.line.active),{lineDash:[1,1]})},inactive:{style:Lt(Lt({},n.line.inactive),{lineDash:[1,1]})},selected:{style:Lt(Lt({},n.line.selected),{lineDash:[1,1]})}},dash:{default:{style:Lt(Lt({},n.line.default),{lineDash:[5.5,1]})},active:{style:Lt(Lt({},n.line.active),{lineDash:[5.5,1]})},inactive:{style:Lt(Lt({},n.line.inactive),{lineDash:[5.5,1]})},selected:{style:Lt(Lt({},n.line.selected),{lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}}},components:{axis:{top:Object(zt["deepMix"])({},i,{position:"top",grid:null,title:null,verticalLimitLength:.5}),bottom:Object(zt["deepMix"])({},i,{position:"bottom",grid:null,title:null,verticalLimitLength:.5}),left:Object(zt["deepMix"])({},i,{position:"left",label:{offset:8},title:null,line:null,tickLine:null,grid:r,verticalLimitLength:1/3}),right:Object(zt["deepMix"])({},i,{position:"right",label:{offset:8},title:null,line:null,tickLine:null,grid:r,verticalLimitLength:1/3}),circle:Object(zt["deepMix"])({},i,{title:null,label:{offset:8},grid:Object(zt["deepMix"])({},r,{line:{type:"line"}})}),radius:Object(zt["deepMix"])({},i,{title:null,label:{offset:8},grid:Object(zt["deepMix"])({},r,{line:{type:"circle"}})})},legend:{right:Object(zt["deepMix"])({},o,{layout:"vertical"}),left:Object(zt["deepMix"])({},o,{layout:"vertical"}),top:Object(zt["deepMix"])({},o,{layout:"horizontal"}),bottom:Object(zt["deepMix"])({},o,{layout:"horizontal"}),continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0},margin:[0,0,0,0]},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e[""+ns["CONTAINER_CLASS"]]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:t.tooltipContainerBorderRadius+"px",color:t.tooltipTextFillColor,fontSize:t.tooltipTextFontSize+"px",fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},e[""+ns["TITLE_CLASS"]]={marginBottom:"12px",marginTop:"12px"},e[""+ns["LIST_CLASS"]]={margin:0,listStyleType:"none",padding:0},e[""+ns["LIST_ITEM_CLASS"]]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e[""+ns["MARKER_CLASS"]]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e[""+ns["VALUE_CLASS"]]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},pieLabels:{labelHeight:14,offset:30,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var rs={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},os={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},as=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],ss=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],ls={backgroundColor:"transparent",brandColor:as[0],paletteQualitative10:as,paletteQualitative20:ss,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",fontFamily:'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n  "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n  "Noto Color Emoji"',axisLineBorderColor:rs[25],axisLineBorder:.5,axisLineDash:null,axisTitleTextFillColor:rs[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTickLineBorderColor:rs[25],axisTickLineLength:4,axisTickLineBorder:.5,axisSubTickLineBorderColor:rs[15],axisSubTickLineLength:2,axisSubTickLineBorder:.5,axisLabelFillColor:rs[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisGridBorderColor:rs[15],axisGridBorder:.5,axisGridLineDash:null,legendTitleTextFillColor:rs[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:as[0],legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:rs[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",sliderRailFillColor:rs[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:rs[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:rs[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:rs[25],annotationArcBorderColor:rs[15],annotationArcBorder:.5,annotationLineBorderColor:rs[25],annotationLineBorder:.5,annotationLineDash:null,annotationTextFillColor:rs[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:os[95],annotationTextBorder:1.5,annotationRegionFillColor:rs[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:rs[25],tooltipCrosshairsBorder:.5,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:rs[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:rs[65],labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:os[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,labelLineBorder:.5,labelLineBorderColor:rs[25],pointFillColor:as[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:os[100],pointBorderOpacity:1,pointActiveBorderColor:rs[100],pointSelectedBorder:2,pointSelectedBorderColor:rs[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:as[0],hollowPointBorderOpacity:.95,hollowPointFillColor:os[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:rs[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:rs[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:as[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:as[0],areaFillOpacity:.25,areaActiveFillColor:as[0],areaActiveFillOpacity:.5,areaSelectedFillColor:as[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:as[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:rs[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:rs[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:as[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:rs[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:rs[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:as[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:os[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:rs[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:rs[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3},cs=is(ls),us={default:cs};function hs(t){return Object(zt["get"])(us,Object(zt["lowerCase"])(t),us.default)}function ds(t,e){us[Object(zt["lowerCase"])(t)]=Object(zt["deepMix"])({},us.default,e)}function ps(t,e,n){var i=n.translate(t),r=n.translate(e);return Object(zt["isNumberEqual"])(i,r)}function fs(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,o=r[r.length-1],a=r[0],s=n.invert(t),l=s.x;return n.isPolar&&l>(1+o)/2&&(l=a),i.translate(i.invert(l))}function gs(t,e,n){var i=n.coordinate,r=n.getYScale(),o=r.field,a=i.invert(e),s=r.invert(a.y),l=Object(zt["find"])(t,(function(t){var e=t[Kt];return e[o][0]<=s&&e[o][1]>=s}));return l||t[t.length-1]}var ms=Object(zt["memoize"])((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,o=0;o<n;o++){var a=e[o],s=t.translate(a);s<i&&(i=s),s>r&&(r=s)}return(r-i)/(n-1)}));function vs(t,e,n){var i=n;if(!n){var r=e.getAttribute("position"),o=r.getFields();i=o[0]}var a=e.scales;return a[i]?a[i].getText(t[i]):Object(zt["hasKey"])(t,i)?t[i]:i}function ys(t){var e=Object(zt["values"])(t.attributes);return Object(zt["filter"])(e,(function(t){return Object(zt["contains"])(qt,t.type)}))}function bs(t){for(var e,n=ys(t),i=0,r=n;i<r.length;i++){var o=r[i],a=o.getScale(o.type);if(a&&a.isLinear){e=a;break}}var s=t.getXScale(),l=t.getYScale();return e||l||s}function xs(t,e){var n=e.field,i=t[n];if(Object(zt["isArray"])(i)){var r=i.map((function(t){return e.getText(t)}));return r.join("-")}return e.getText(i)}function ws(t,e){var n,i=e.getGroupScales();if(i.length&&(n=i[0]),n){var r=n.field;return n.getText(t[r])}var o=bs(e);return mo(o)}function _s(t,e,n){if(0===e.length)return null;var i=n.type,r=n.getXScale(),o=n.getYScale(),a=r.field,s=o.field,l=null;if("heatmap"===i||"point"===i){for(var c=n.coordinate,u=c.invert(t),h=r.invert(u.x),d=o.invert(u.y),p=1/0,f=0;f<e.length;f++){var g=e[f],m=g[Kt],v=Math.pow(m[a]-h,2)+Math.pow(m[s]-d,2);v<p&&(p=v,l=g)}return l}var y=e[0],b=e[e.length-1],x=fs(t,n),w=y[Kt][a],_=y[Kt][s],C=b[Kt][a],A=o.isLinear&&Object(zt["isArray"])(_);if(Object(zt["isArray"])(w)){for(f=0;f<e.length;f++){var I=e[f];m=I[Kt];if(r.translate(m[a][0])<=x&&r.translate(m[a][1])>=x){if(!A){l=I;break}Object(zt["isArray"])(l)||(l=[]),l.push(I)}}Object(zt["isArray"])(l)&&(l=gs(l,t,n))}else{var S=void 0;if(r.isLinear||"timeCat"===r.type){if((x>r.translate(C)||x<r.translate(w))&&(x>r.max||x<r.min))return null;var M=0,k=e.length-1,E=void 0;while(M<=k){E=Math.floor((M+k)/2);var T=e[E][Kt][a];if(ps(T,x,r))return e[E];r.translate(T)<=r.translate(x)?(M=E+1,b=e[E],S=e[E+1]):(0===k&&(b=e[0]),k=E-1)}}else{for(f=0;f<e.length;f++){I=e[f],m=I[Kt];if(ps(m[a],x,r)){if(!A){l=I;break}Object(zt["isArray"])(l)||(l=[]),l.push(I)}else r.translate(m[a])<=x&&(b=I,S=e[f+1])}Object(zt["isArray"])(l)&&(l=gs(l,t,n))}b&&S&&Math.abs(r.translate(b[Kt][a])-x)>Math.abs(r.translate(S[Kt][a])-x)&&(b=S)}var O=ms(n.getXScale());return!l&&Math.abs(r.translate(b[Kt][a])-x)<=O/2&&(l=b),l}function Cs(t,e,n){void 0===n&&(n="");var i,r,o=t[Kt],a=vs(o,e,n),s=e.tooltipOption,l=e.theme.defaultColor,c=[];function u(e,n){if(!Object(zt["isNil"])(n)&&""!==n){var i={title:a,data:o,mappingData:t,name:e,value:n,color:t.color||l,marker:!0};c.push(i)}}if(Object(zt["isObject"])(s)){var h=s.fields,d=s.callback;if(d){var p=h.map((function(e){return t[Kt][e]})),f=d.apply(void 0,p),g=Lt({data:t[Kt],mappingData:t,title:a,color:t.color||l,marker:!0},f);c.push(g)}else for(var m=e.scales,v=0,y=h;v<y.length;v++){var b=y[v];if(!Object(zt["isNil"])(o[b])){var x=m[b];i=mo(x),r=x.getText(o[b]),u(i,r)}}}else{var w=bs(e);Object(zt["isNil"])(o[w.field])||(r=xs(o,w),i=ws(o,e),u(i,r))}return c}var As={};function Is(t,e){As[t]=e}function Ss(){return Object.keys(As)}function Ms(t){return As[t]}var ks=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return Object(zt["some"])(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,r=n.cfg,o="theta"===i,a=Lt({start:t,end:e},r),s=an(o?"polar":i);return this.coordinate=new s(a),this.coordinate.type=i,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return Lt({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(zt["each"])(n,(function(n){var i,r=n[0],o=n.slice(1),a=!!Object(zt["isNil"])(t)||t.includes(r);a&&(i=e.coordinate)[r].apply(i,o)}))},t}(),Es=ks,Ts=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}(),Os=Ts;function Ps(t){return!Object(zt["isNumber"])(t)&&!Object(zt["isArray"])(t)}function js(t){void 0===t&&(t=0);var e=Object(zt["isArray"])(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Rt(e,e);break;case 3:e=Rt(e,[e[1]]);break;default:e=e.slice(0,4);break}return e}var Ls=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.top=t,this.right=e,this.bottom=n,this.left=i}return t.prototype.shrink=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return this.top+=e,this.right+=n,this.bottom+=i,this.left+=r,this},t.prototype.inc=function(t,e){var n=t.width,i=t.height;switch(e){case Nt.TOP:case Nt.TOP_LEFT:case Nt.TOP_RIGHT:this.top+=i;break;case Nt.RIGHT:case Nt.RIGHT_TOP:case Nt.RIGHT_BOTTOM:this.right+=n;break;case Nt.BOTTOM:case Nt.BOTTOM_LEFT:case Nt.BOTTOM_RIGHT:this.bottom+=i;break;case Nt.LEFT:case Nt.LEFT_TOP:case Nt.LEFT_BOTTOM:this.left+=n;break;default:break}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t}();function Ds(t){var e=t.padding;if(!Ps(e))return js(e);var n=t.viewBBox,i=t.autoPadding,r=new Ls;Object(zt["each"])(t.getComponents(),(function(t){var e=t.component,i=t.type;if(i!==Ft.GRID&&i!==Ft.TOOLTIP){var o=e.getLayoutBBox(),a=new da(o.x,o.y,o.width,o.height);if(i===Ft.AXIS){var s=a.exceed(n);r.shrink(s)}else{var l=t.direction;r.inc(a,l)}}}));var o=r.getPadding();if(i){var a=js(t.appendPadding);return[Math.max(i[0]-a[0],o[0]),Math.max(i[1]-a[1],o[1]),Math.max(i[2]-a[2],o[2]),Math.max(i[3]-a[3],o[3])]}return o}function Rs(t){var e=t.getController("axis"),n=t.getController("legend"),i=t.getController("annotation"),r=t.getController("slider"),o=Ds(t);t.coordinateBBox=t.viewBBox.shrink(o).shrink(js(t.appendPadding)),t.adjustCoordinate(),[e,r,n,i].forEach((function(t){t&&t.layout()}))}var Bs=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,i){var r=n,o=this.getScaleMeta(i);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),r=Object(zt["deepMix"])(s,o.scaleDef,n)}var l=fo(t,e,r);return this.cacheScale(l,n,i),l},t.prototype.sync=function(){var t=this;this.syncScales.forEach((function(e,n){var i=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,o=[];Object(zt["each"])(e,(function(e){var n=t.getScale(e);r=Object(zt["isNumber"])(n.max)?Math.max(r,n.max):r,i=Object(zt["isNumber"])(n.min)?Math.min(i,n.min):i,Object(zt["each"])(n.values,(function(t){o.includes(t)||o.push(t)}))})),Object(zt["each"])(e,(function(e){var n=t.getScale(e);n.isContinuous?n.change({min:i,max:r,values:o}):n.isCategory&&n.change({values:o})}))}))},t.prototype.cacheScale=function(t,e,n){var i=this.getScaleMeta(n);i&&i.scale.type===t.type?(go(i.scale,t),i.scaleDef=e):(i={key:n,scale:t,scaleDef:e},this.scales.set(n,i));var r=this.getSyncKey(i);if(i.syncKey=r,this.removeFromSyncScales(n),r){var o=this.syncScales.get(r);o||(o=[],this.syncScales.set(r,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(zt["last"])(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,i=this.syncScales.get(n);if(i&&i.length){var r=i.indexOf(t);-1!==r&&i.splice(r,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,i){var r=n.indexOf(t);if(-1!==r)return n.splice(r,1),0===n.length&&e.syncScales.delete(i),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,r=Object(zt["get"])(n,["sync"]);return!0===r?i:!1===r?void 0:r},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),Ns=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.id=Object(zt["uniqueId"])("view"),n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Ss(),n.scalePool=new Bs,n.layoutFunc=Rs,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var i=n.createViewEvent(t);n.doPlotEvent(i),n.emit(e,i)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var i=n.createViewEvent(t);n.emit(e,i)}};var i=e.parent,r=e.canvas,o=e.backgroundGroup,a=e.middleGroup,s=e.foregroundGroup,l=e.region,c=void 0===l?{start:{x:0,y:0},end:{x:1,y:1}}:l,u=e.padding,h=e.appendPadding,d=e.theme,p=e.options,f=e.limitInPlot;return n.parent=i,n.canvas=r,n.backgroundGroup=o,n.middleGroup=a,n.foregroundGroup=s,n.region=c,n.padding=u,n.appendPadding=h,n.options=Lt(Lt({},n.options),p),n.limitInPlot=f,n.themeObject=Object(zt["isObject"])(d)?Object(zt["deepMix"])({},hs("default"),d):hs(d),n.init(),n}return jt(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.coordinateController=new Es(this.options.coordinate),this.initOptions();for(var t=this.views,e=0;e<t.length;e++)t[e].init()},e.prototype.render=function(t){void 0===t&&(t=!1),this.emit(Vt.BEFORE_RENDER),this.paint(t),this.emit(Vt.AFTER_RENDER),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(Vt.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear();this.geometries=[];var i=this.controllers;for(n=0;n<i.length;n++)i[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var r=this.views;for(n=0;n<r.length;n++)r[n].clear();this.emit(Vt.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(Vt.BEFORE_DESTROY);var e=this.interactions;Object(zt["each"])(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,i=0,r=n.length;i<r;i++){var o=n[i];o.destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,i=0,r=n.length;i<r;i++){var o=n[i];o.changeVisible(e)}var a=this.controllers;for(i=0,r=a.length;i<r;i++){var s=a[i];s.changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Object(zt["set"])(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return Object(zt["isFunction"])(e)?(Object(zt["set"])(this.options,["filters",t],e),this):(!e&&Object(zt["get"])(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(zt["isBoolean"])(t)?Object(zt["set"])(this.options,["axes"],t):Object(zt["set"])(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(zt["isBoolean"])(t)?Object(zt["set"])(this.options,["legends"],t):Object(zt["isString"])(t)?Object(zt["set"])(this.options,["legends",t],e):Object(zt["set"])(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(zt["isString"])(t)?Object(zt["set"])(this.options,["scales",t],e):Object(zt["isObject"])(t)&&Object(zt["each"])(t,(function(t,e){Object(zt["set"])(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(zt["set"])(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return Object(zt["isString"])(t)?Object(zt["set"])(this.options,"coordinate",{type:t,cfg:e}):Object(zt["set"])(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=Eo(t);if(!n)throw new Error("facet '"+t+"' is not exist!");return this.facetInstance=new n(this,Lt(Lt({},e),{type:t})),this},e.prototype.animate=function(t){return Object(zt["set"])(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(zt["mix"])(this.options,t),this.initOptions(),this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \""+t+'", please change another one.');return Object(zt["set"])(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(zt["isObject"])(t)?Object(zt["deepMix"])({},this.themeObject,t):hs(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var i=es(t,this,e);return i&&(i.init(),this.interactions[t]=i),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(Vt.BEFORE_CHANGE_DATA),this.data(t),this.paint(!0);for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.changeData(t)}this.emit(Vt.AFTER_CHANGE_DATA)},e.prototype.createView=function(t){var n={data:this.options.data,scales:Object(zt["clone"])(this.options.scales),axes:Object(zt["clone"])(this.options.axes),coordinate:Object(zt["clone"])(this.coordinateController.getOption()),tooltip:Object(zt["clone"])(this.options.tooltip),legends:Object(zt["clone"])(this.options.legends),animate:this.options.animate,visible:this.visible},i=new e(Lt(Lt({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:Wt.BG}),middleGroup:this.middleGroup.addGroup({zIndex:Wt.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:Wt.FORE}),theme:this.themeObject,padding:this.padding},t),{options:Lt(Lt({},n),Object(zt["get"])(t,"options",{}))}));return this.views.push(i),i},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=Object(zt["remove"])(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={};return this.geometries.map((function(e){var n=e.getYScale(),i=n.field;if(!t[i])return t[i]=!0,n}))},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},i=0,r=e.length;i<r;i++){var o=e[i],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScaleByField=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getLayer=function(t){return t===Bt.BG?this.backgroundGroup:t===Bt.MID?this.middleGroup:(Bt.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return $o(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(zt["flatten"])(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return qo(Object(zt["flatten"])(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){var t=this;while(1){if(!t.parent)break;t=t.parent}return t},e.prototype.getXY=function(t){var e,n,i=this.getCoordinate(),r=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(Object(zt["each"])(t,(function(t,i){r[i]&&(e=r[i].scale(t)),o[i]&&(n=o[i].scale(t))})),!Object(zt["isNil"])(e)&&!Object(zt["isNil"])(n))return i.convert({x:e,y:n})},e.prototype.getController=function(t){return Object(zt["find"])(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],i=0,r=e.length;i<r;i++){var o=e[i],a=o.dataArray;o.sort(a);for(var s=void 0,l=0,c=a.length;l<c;l++){var u=a[l];s=_s(t,u,o),s&&n.push(s)}}var h=this.views;for(i=0,r=h.length;i<r;i++){var d=h[i],p=d.getSnapRecords(t);n=n.concat(p)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,i=e.length;n<i;n++){var r=e[n];t=t.concat(r.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(zt["size"])(e)?t:Object(zt["filter"])(t,(function(t,n){var i=Object.keys(e);return i.every((function(i){var r=e[i];return r(t[i],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,i=Object(zt["get"])(n,t);return Object(zt["isUndefined"])(i)?e:e.filter((function(e,n){return i(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,i=this.coordinateBBox.bl,r=this.coordinateBBox.tr;Object(zt["isEqual"])(e,i)&&Object(zt["isEqual"])(n,r)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(i,r))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(Vt.BEFORE_PAINT),this.renderBackgroundStyleShape(),this.renderLayoutRecursive(t),this.renderPaintRecursive(t),this.emit(Vt.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(zt["get"])(this.themeObject,"background");if(t){this.backgruondStyleRectShape||(this.backgruondStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{zIndex:-1}}));var e=this.viewBBox,n=e.x,i=e.y,r=e.width,o=e.height;this.backgruondStyleRectShape.attr({fill:t,x:n,y:i,width:r,height:o})}else this.backgruondStyleRectShape&&(this.backgruondStyleRectShape.remove(!0),this.backgruondStyleRectShape=void 0)}},e.prototype.renderLayoutRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.doLayout();var e=this.viewBBox,n=this.coordinateBBox;Ps(this.padding)&&(this.autoPadding=[n.tl.y-e.tl.y,e.tr.x-n.tr.x,e.bl.y-n.bl.y,n.tl.x-e.tl.x]);for(var i=this.views,r=0,o=i.length;r<o;r++){var a=i[r];a.renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){if(this.limitInPlot){var e=this.middleGroup,n=ea(this.coordinateInstance),i=n.type,r=n.attrs;e.setClip({type:i,attrs:r})}this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,s=o.length;a<s;a++){var l=o[a];l.renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,i){var r=Object(zt["get"])(this.options.scales,[t]),o=Lt(Lt({},r),n);return this.parent?this.parent.createScale(t,e,o,i):this.scalePool.createScale(t,e,o,i)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,i;if(this.parent){var r=this.parent.coordinateBBox;t=r.x,e=r.y,n=r.width,i=r.height}else t=0,e=0,n=this.canvas.get("width"),i=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,l=new da(t+n*a.x,e+i*a.y,n*(s.x-a.x),i*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new da(t+n*a.x,e+i*a.y,n*(s.x-a.x),i*(s.y-a.y)),this.coordinateBBox=this.viewBBox)},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var i=t[e],r=Ms(i);r&&this.controllers.push(new r(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,i=e?e.get("origin"):null,r=new Os(this,t,i);return r.type=n,r},e.prototype.doPlotEvent=function(t){var e=t.type,n=t.x,i=t.y,r={x:n,y:i},o=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(o.includes(e)){var a=this.isPointInPlot(r);if(a){var s="plot:"+e;t.type=s,this.emit(s,t),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!a?("mousemove"===e&&(t.type=Gt.MOUSE_LEAVE,this.emit(Gt.MOUSE_LEAVE,t)),t.type=Gt.LEAVE,this.emit(Gt.LEAVE,t)):!this.isPreMouseInPlot&&a&&("mousemove"===e&&(t.type=Gt.MOUSE_ENTER,this.emit(Gt.MOUSE_ENTER,t)),t.type=Gt.ENTER,this.emit(Gt.ENTER,t)),this.isPreMouseInPlot=a):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(t.type=Gt.MOUSE_LEAVE,this.emit(Gt.MOUSE_LEAVE,t)),t.type=Gt.LEAVE,this.emit(Gt.LEAVE,t),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(zt["get"])(this.options,"scales",{}),i=this.geometries,r=0,o=i.length;r<o;r++){var a=i[r];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),i=n.data,r=n.scales,o=void 0===r?{}:r,a=this.filteredData,s=0,l=t.length;s<l;s++){var c=t[s],u=o[c],h=this.getScaleKey(c);this.createScale(c,e.includes(c)?i:a,u,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync()},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var i=t[n];e[i]=this.getScaleByField(i)}return e},e.prototype.getScaleFields=function(){for(var t=[],e={},n=this.geometries,i=0;i<n.length;i++){var r=n[i],o=r.getScaleFields();qo(o,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e={},n=this.geometries,i=0;i<n.length;i++){var r=n[i],o=r.getGroupFields();qo(o,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=Rt([this.getXScale()],this.getYScales()).filter((function(t){return!!t})),n=this.getCoordinate(),i=this.options.scales;Object(zt["each"])(e,(function(e){var r=e.field,o=e.values,a=e.isCategory,s=e.isIdentity;if((a||s)&&o&&!Object(zt["get"])(i,[r,"range"])){var l=o.length,c=void 0;if(1===l)c=[.5,1];else{var u=1,h=0;Qo(n)?n.isTransposed?(u=Object(zt["get"])(t.theme,"widthRatio.multiplePie",1/1.3),h=1/l*u,c=[h/2,1-h/2]):c=[0,1-1/l]:(h=1/l/2,c=[h,1-h])}e.range=c}}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var i=e[n];t?i.update():(i.clear(),i.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),i={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},r=this.geometries,o=0;o<r.length;o++){var a=r[o];a.coordinate=n,a.canvasRegion=i,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){var n=this.getComponents()[e];n.component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){for(var t=this.options,e=t.geometries,n=void 0===e?[]:e,i=t.interactions,r=void 0===i?[]:i,o=t.views,a=void 0===o?[]:o,s=t.annotations,l=void 0===s?[]:s,c=0;c<n.length;c++){var u=n[c];this.createGeometry(u)}for(var h=0;h<r.length;h++){var d=r[h],p=d.type,f=d.cfg;this.interaction(p,f)}for(var g=0;g<a.length;g++){var m=a[g];this.createView(m)}for(var v=this.getController("annotation"),y=0;y<l.length;y++){var b=l[y];v.annotation(b)}},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,i=void 0===n?{}:n;if(this[e]){var r=this[e](i);Object(zt["each"])(t,(function(t,e){Object(zt["isFunction"])(r[e])&&r[e](t)}))}},e.prototype.getScaleKey=function(t){return this.id+"-"+t},e}(pe);function Fs(t,e){Ns.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=Lt({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}}var zs=Ns,Vs=function(t){function e(e){var n=this,i=e.container,r=e.width,o=e.height,a=e.autoFit,s=void 0!==a&&a,l=e.padding,c=e.appendPadding,u=e.renderer,h=void 0===u?"canvas":u,d=e.pixelRatio,p=e.localRefresh,f=void 0===p||p,g=e.visible,m=void 0===g||g,v=e.defaultInteractions,y=void 0===v?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:v,b=e.options,x=e.limitInPlot,w=e.theme,_=Object(zt["isString"])(i)?document.getElementById(i):i,C=oe('<div style="position:relative;"></div>');_.appendChild(C);var A=ce(_,s,r,o),I=ee(h),S=new I.Canvas(Lt({container:C,pixelRatio:d,localRefresh:f},A));return n=t.call(this,{parent:null,canvas:S,backgroundGroup:S.addGroup({zIndex:Wt.BG}),middleGroup:S.addGroup({zIndex:Wt.MID}),foregroundGroup:S.addGroup({zIndex:Wt.FORE}),padding:l,appendPadding:c,visible:m,options:b,limitInPlot:x,theme:w})||this,n.onResize=Object(zt["debounce"])((function(){n.forceFit()}),300),n.ele=_,n.canvas=S,n.width=A.width,n.height=A.height,n.autoFit=s,n.localRefresh=f,n.renderer=h,n.wrapperElement=C,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(y),n}return jt(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(zt["each"])(t,(function(t){e.interaction(t)}))},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e?this:(this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),ue(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=ce(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){ae(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(zs),Gs=Vs,Hs=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(){Object(zt["each"])(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}(),Ws=0,Us=.5,Zs=.5,Ys=.05,Xs=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames,r=void 0===i?["x","y"]:i;this.adjustNames=r,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===a?0:a-1],r=n[a===s-1?s-1:a+1],0!==a?i+=(e-i)/2:i-=(r-e)/2,a!==s-1?r-=(r-e)/2:r+=(e-n[s-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);zt["each"](t,(function(t,e){zt["each"](i,(function(i,r){n.adjustDim(r,i,t,e)}))}))},t.prototype.groupData=function(t,e){return zt["each"](t,(function(t){void 0===t[e]&&(t[e]=Ws)})),zt["groupBy"](t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,i=e.yField,r={},o=[];if(n&&this.isAdjust("x")&&o.push(n),i&&this.isAdjust("y")&&o.push(i),o.forEach((function(e){r[e]=zt["valuesOfKey"](t,e).sort((function(t,e){return t-e}))})),!i&&this.isAdjust("y")){var a="y";r[a]=[Ws,1]}return r},t}(),qs=Xs,Ks={},Qs=function(t){return Ks[t.toLowerCase()]},Js=function(t,e){if(Qs(t))throw new Error("Adjust type '"+t+"' existed.");Ks[t.toLowerCase()]=e},$s=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var i=e.marginRatio,r=void 0===i?Us:i,o=e.dodgeRatio,a=void 0===o?Zs:o,s=e.dodgeBy;return n.marginRatio=r,n.dodgeRatio=a,n.dodgeBy=s,n}return Object(ye["__extends"])(e,t),e.prototype.process=function(t){var e=zt["clone"](t),n=zt["flatten"](e),i=this.dodgeBy,r=i?zt["group"](n,i):e;return this.cacheMap={},this.adjustDataArray=r,this.mergeData=n,this.adjustData(r,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,i){var r=this,o=this.getDistribution(t),a=this.groupData(n,t);return zt["each"](a,(function(n,a){var s;s=1===e.length?{pre:e[0]-1,next:e[0]+1}:r.getAdjustRange(t,parseFloat(a),e),zt["each"](n,(function(e){var n=e[t],a=o[n],l=a.indexOf(i);e[t]=r.getDodgeOffset(s,l,a.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i=this,r=i.dodgeRatio,o=i.marginRatio,a=t.pre,s=t.next,l=s-a,c=l*r/n,u=o*c,h=.5*(l-n*c-(n-1)*u)+((e+1)*c+e*u)-.5*c-.5*l;return(a+s)/2+h},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,i=n[t];return i||(i={},zt["each"](e,(function(e,n){var r=zt["valuesOfKey"](e,t);r.length||r.push(0),zt["each"](r,(function(t){i[t]||(i[t]=[]),i[t].push(n)}))})),n[t]=i),i},e}(qs),tl=$s;function el(t,e){return(e-t)*Math.random()+t}var nl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.process=function(t){var e=zt["clone"](t),n=zt["flatten"](e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var i=this,r=this.groupData(n,t);return zt["each"](r,(function(n,r){return i.adjustGroup(n,t,parseFloat(r),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,i=(n-e)*Ys;return el(e+i,n-i)},e.prototype.adjustGroup=function(t,e,n,i){var r=this,o=this.getAdjustRange(e,n,i);return zt["each"](t,(function(t){t[e]=r.getAdjustOffset(o)})),t},e}(qs),il=nl,rl=zt["Cache"],ol=function(t){function e(e){var n=t.call(this,e)||this,i=e.adjustNames,r=void 0===i?["y"]:i,o=e.height,a=void 0===o?NaN:o,s=e.size,l=void 0===s?10:s,c=e.reverseOrder,u=void 0!==c&&c;return n.adjustNames=r,n.height=a,n.size=l,n.reverseOrder=u,n}return Object(ye["__extends"])(e,t),e.prototype.process=function(t){var e=this,n=e.yField,i=e.reverseOrder,r=n?this.processStack(t):this.processOneDimStack(t);return i?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,i=e.yField,r=e.reverseOrder,o=r?this.reverse(t):t,a=new rl,s=new rl;return o.map((function(t){return t.map((function(t){var e,r=zt["get"](t,n,0),o=zt["get"](t,i),l=r.toString();if(o=zt["isArray"](o)?o[1]:o,!zt["isNil"](o)){var c=o>=0?a:s;c.has(l)||c.set(l,0);var u=c.get(l),h=o+u;return c.set(l,h),Object(ye["__assign"])(Object(ye["__assign"])({},t),(e={},e[i]=[u,h],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,i=n.xField,r=n.height,o=n.reverseOrder,a="y",s=o?this.reverse(t):t,l=new rl;return s.map((function(t){return t.map((function(t){var n,o=e.size,s=t[i],c=2*o/r;l.has(s)||l.set(s,c/2);var u=l.get(s);return l.set(s,u+c),Object(ye["__assign"])(Object(ye["__assign"])({},t),(n={},n[a]=u,n))}))}))},e}(qs),al=ol,sl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.process=function(t){var e=zt["flatten"](t),n=this,i=n.xField,r=n.yField,o=this.getXValuesMaxMap(e),a=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return zt["map"](t,(function(t){return zt["map"](t,(function(t){var e,n,s=t[r],l=t[i];if(zt["isArray"](s)){var c=(a-o[l])/2;return Object(ye["__assign"])(Object(ye["__assign"])({},t),(e={},e[r]=zt["map"](s,(function(t){return c+t})),e))}var u=(a-s)/2;return Object(ye["__assign"])(Object(ye["__assign"])({},t),(n={},n[r]=[u,s+u],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,i=n.xField,r=n.yField,o=zt["groupBy"](t,(function(t){return t[i]}));return zt["mapValues"](o,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=zt["map"](t,(function(t){return zt["get"](t,e,[])})),i=zt["flatten"](n);return Math.max.apply(Math,i)},e}(qs),ll=sl;Js("Dodge",tl),Js("Jitter",il),Js("Stack",al),Js("Symmetric",ll);var cl={};function ul(t){return cl[t.toLowerCase()]}function hl(t,e){cl[t.toLowerCase()]=e}var dl={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},pl={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},fl={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){var e;return e=t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy",{animation:e}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function gl(t,e){return{delay:Object(zt["isFunction"])(t.delay)?t.delay(e):t.delay,easing:Object(zt["isFunction"])(t.easing)?t.easing(e):t.easing,duration:Object(zt["isFunction"])(t.duration)?t.duration(e):t.duration,callback:t.callback}}function ml(t,e,n){var i=pl[t];return i&&(Object(zt["isFunction"])(i)&&(i=i(e)),i=Object(zt["deepMix"])({},dl,i),n)?i[n]:i}function vl(t,e,n){var i=Object(zt["get"])(t.get("origin"),"data",Kt),r=e.animation,o=gl(e,i);if(r){var a=ul(r);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}function yl(t,e,n,i,r){if(fl[n]){var o=fl[n](i),a=ul(Object(zt["get"])(o,"animation",""));if(a){var s=Lt(Lt(Lt({},dl.appear),o),e);t.stopAnimate(),a(t,s,{coordinate:i,minYPoint:r,toAttrs:null})}}}var bl=n("0fe1"),xl=function(t){function e(e){var n=t.call(this,e)||this;n.states=[];var i=e.shapeFactory,r=e.container,o=e.offscreenGroup,a=e.visible,s=void 0===a||a;return n.shapeFactory=i,n.container=r,n.offscreenGroup=o,n.visible=s,n}return jt(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this,n=e.shapeFactory,i=e.shape;if(i){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(i,t);var r=this.getOffscreenGroup(),o=n.drawShape(this.shapeType,t,r);o.cfg.data=this.data,o.cfg.origin=t,this.syncShapeStyle(i,o,"",this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this,n=e.shapeFactory,i=e.shape;if(i){var r=this.getAnimateCfg("leave");r?vl(i,r,{coordinate:n.coordinate,toAttrs:Lt({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,i=this,r=i.states,o=i.shapeFactory,a=i.model,s=i.shape,l=i.shapeType,c=r.indexOf(t);if(e){if(c>-1)return;r.push(t),"active"!==t&&"selected"!==t||s.toFront()}else{if(-1===c)return;r.splice(c,1),"active"!==t&&"selected"!==t||s.toBack()}var u=o.drawShape(l,a,this.getOffscreenGroup());r.length?r.forEach((function(t){n.syncShapeStyle(s,u,t,null)})):this.syncShapeStyle(s,u,"reset",null),u.remove(!0);var h={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",h),Object(bl["propagationDelegate"])(this.shape,"statechange",h)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(zt["each"])(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this,e=t.shape,n=t.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(i=e.getCanvasBBox()),n&&n.forEach((function(t){var e=t.getCanvasBBox();i.x=Math.min(e.x,i.x),i.y=Math.min(e.y,i.y),i.minX=Math.min(e.minX,i.minX),i.minY=Math.min(e.minY,i.minY),i.maxX=Math.max(e.maxX,i.maxX),i.maxY=Math.max(e.maxY,i.maxY)})),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,i=t.shapeFactory,r=n.stateOption,o=i.defaultShapeType,a=i.theme[e]||i.theme[o];this.statesStyle=Object(zt["deepMix"])({},a,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=Object(zt["get"])(n,[t,"style"],{}),r=i[e]||i;return Object(zt["isFunction"])(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this.animate;return e?e[t]:null},e.prototype.drawShape=function(t,e){void 0===e&&(e=!1);var n=this,i=n.shapeFactory,r=n.container,o=n.shapeType;if(this.shape=i.drawShape(o,t,r),this.shape){this.setShapeInfo(this.shape,t);var a=this.shape.cfg.name;a?Object(zt["isString"])(a)&&(this.shape.cfg.name=["element",a]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var s=e?"enter":"appear",l=this.getAnimateCfg(s);l&&vl(this.shape,l,{coordinate:i.coordinate,toAttrs:Lt({},this.shape.attr())})}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;if(t.cfg.origin=e,t.cfg.element=this,t.isGroup()){var i=t.get("children");i.forEach((function(t){n.setShapeInfo(t,e)}))}},e.prototype.syncShapeStyle=function(t,e,n,i,r){if(void 0===n&&(n=""),void 0===r&&(r=0),t.isGroup())for(var o=t.get("children"),a=e.get("children"),s=0;s<o.length;s++)this.syncShapeStyle(o[s],a[s],n,i,r+s);else{if(n&&"reset"!==n){var l=t.get("name");Object(zt["isArray"])(l)&&(l=l[1]);var c=this.getStateStyle(n,l||r);e.attr(c)}var u=Uo(t,e);this.animate?i?vl(t,i,{coordinate:this.shapeFactory.coordinate,toAttrs:u,shapeModel:this.model}):n?(t.stopAnimate(),t.animate(u,{duration:300})):t.attr(u):t.attr(u)}},e.prototype.getShapeType=function(t){var e=Object(zt["get"])(t,"shape");return Object(zt["isArray"])(e)?e[0]:e},e}(pe),wl=xl,_l={},Cl={};function Al(t){return _l[t.toLowerCase()]}function Il(t,e){_l[t.toLowerCase()]=e}function Sl(t){return Cl[t.toLowerCase()]}function Ml(t,e){Cl[t.toLowerCase()]=e}var kl={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var i=this.defaultShapeType;n=this.getShape(i)}var r=this.theme,o=Object(zt["get"])(r,[t,"default"],{}),a=n.getMarker(e);return Object(zt["deepMix"])({},o,a)},drawShape:function(t,e,n){var i=this.getShape(t);return i.draw(e,n)}},El={coordinate:null,parsePath:function(t){var e=this.coordinate,n=zr(t);return n=e.isPolar?ha(e,n):ua(e,n),n},parsePoint:function(t){var e=this.coordinate;return e.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},Tl={};function Ol(t,e){var n=Object(zt["upperFirst"])(t),i=Lt(Lt(Lt({},kl),e),{geometryType:t});return Tl[n]=i,i}function Pl(t,e,n){var i=Object(zt["upperFirst"])(t),r=Tl[i],o=Lt(Lt({},El),n);return r[e]=o,o}function jl(t){var e=Object(zt["upperFirst"])(t);return Tl[e]}function Ll(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=Object(zt["groupToMap"])(t,e),r=[];if(1===e.length&&n[e[0]])for(var o=n[e[0]],a=0,s=o;a<s.length;a++){var l=s[a],c=i["_"+l];c&&r.push(c)}else for(var u in i)if(i.hasOwnProperty(u)){var h=i[u];r.push(h)}return r}function Dl(t,e){return Object(zt["some"])(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(zt["isEqual"])(t[n],e[n])}))}function Rl(t){return Object(zt["isArray"])(t)?t:t.split("*")}function Bl(t,e){var n=[];return Object(zt["each"])(e,(function(e,i){var r=i.split(" ")[0];r===t&&n.push(e)})),n}var Nl=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var i=e.container,r=e.labelsContainer,o=e.coordinate,a=e.data,s=e.sortable,l=void 0!==s&&s,c=e.visible,u=void 0===c||c,h=e.theme,d=e.scales,p=void 0===d?{}:d,f=e.scaleDefs,g=void 0===f?{}:f;return n.container=i,n.labelsContainer=r,n.coordinate=o,n.data=a,n.sortable=l,n.visible=u,n.userTheme=h,n.scales=p,n.scaleDefs=g,n}return jt(e,t),e.prototype.position=function(t){var e=t;Object(zt["isPlainObject"])(t)||(e={fields:Rl(t)});var n=Object(zt["get"])(e,"fields");return 1===n.length&&(n.unshift("1"),Object(zt["set"])(e,"fields",n)),Object(zt["set"])(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(Object(zt["isString"])(t)||Object(zt["isPlainObject"])(t))&&(e=[t]),Object(zt["each"])(e,(function(t,n){Object(zt["isObject"])(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(zt["isString"])(t)){var n=Rl(t);this.styleOption={fields:n,callback:e}}else{var i=t,r=(n=i.fields,i.callback),o=i.cfg;this.styleOption=n||r||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(zt["isString"])(t)){var n=Rl(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(Object(zt["isString"])(t)){var i={},r=Rl(t);i.fields=r,Object(zt["isFunction"])(e)?i.callback=e:Object(zt["isPlainObject"])(e)&&(i.cfg=e),n&&(i.cfg=n),this.labelOption=i}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,i=t.isCoordinateChanged,r=this,o=r.attributeOption,a=r.lastAttributeOption;Object(zt["isEqual"])(o,a)?!e||!n&&Object(zt["isEqual"])(e,this.data)?this.setCfg(t):(this.setCfg(t),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=i},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(zt["deepMix"])({},ml(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elements=[],this.elementsMap={};var n=this.getOffscreenGroup();n.clear();for(var i=this.beforeMappingData,r=this.beforeMapping(i),o=[],a=0,s=r.length;a<s;a++){var l=r[a],c=this.mapping(l);o.push(c),this.createElements(c,a,t)}if(this.canDoGroupAnimation(t)){var u=this.container,h=this.type,d=this.coordinate,p=Object(zt["get"])(this.animateOption,"appear"),f=this.getYScale(),g=d.convert({x:0,y:f.scale(this.getYMinValue())});yl(u,p,h,d,g)}this.labelOption&&this.renderLabels(Object(zt["flatten"])(o),t),this.dataArray=o,Object(zt["each"])(this.lastElementsMap,(function(t){t.animate=e.animateOption,t.destroy()})),this.lastElementsMap=this.elementsMap,this.lastAttributeOption=Lt({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,i=t.offscreenGroup;e&&e.clear(),n&&n.clear(),i&&i.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear();var e=this.container;e.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return Object(zt["each"])(this.attributes,(function(e){qt.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(zt["isEmpty"])(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],i=t.scales,r=0,o=i.length;r<o;r++){var a=i[r],s=a.field;a.isIdentity?n.push(a.values):n.push(e[s])}return t.mapping.apply(t,n)},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getShapeMarker=function(t,e){var n=this.getShapeFactory();return n.getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElementId=function(t){t=Object(zt["isArray"])(t)?t[0]:t;var e=t[Kt];if(this.idFields.length){for(var n=e[this.idFields[0]],i=1;i<this.idFields.length;i++)n+="-"+e[this.idFields[i]];return n}var r,o,a=this.type,s=this.getXScale(),l=this.getYScale(),c=s.field||"x",u=l.field||"y",h=e[u];r="identity"===s.type?s.values[0]:e[c],o="interval"===a||"schema"===a?r:"line"===a||"area"===a||"path"===a?a:r+"-"+h;for(var d=this.groupScales,p=(i=0,d.length);i<p;i++){var f=d[i],g=f.field;o=o+"-"+e[g]}var m=this.getAdjust("dodge");if(m){var v=m.dodgeBy;v&&(o=o+"-"+e[v])}return this.getAdjust("jitter")&&(o=o+"-"+t.x+"-"+t.y),o},e.prototype.getScaleFields=function(){var t=[],e={},n=this,i=n.attributeOption,r=n.labelOption,o=n.tooltipOption;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];s.fields?qo(s.fields,t,e):s.values&&qo(s.values,t,e)}return r&&r.fields&&qo(r.fields,t,e),Object(zt["isObject"])(o)&&o.fields&&qo(o.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,i=0,r=n.length;i<r;i++){var o=n[i];o.changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getGroupFields=function(){for(var t=[],e={},n=0,i=qt.length;n<i;n++){var r=qt[n],o=this.attributeOption[r];o&&o.fields&&qo(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=this.attributeOption.position.fields,e=t[0],n=t[1];return[e,n]},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,i=0;i<t.length;i++){var r=t[i];r.sort((function(t,i){return e.translate(t[Kt][n])-e.translate(i[Kt][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(jl(t))return this.shapeFactory||(this.shapeFactory=Object(zt["clone"])(jl(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e,n=this.getXScale(),i=this.getYScale(),r=this.normalizeValues(t[n.field],n);return e=i?this.normalizeValues(t[i.field],i):t.y?t.y:.1,{x:r,y:e,y0:i?i.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e){void 0===e&&(e=!1);var n=this.container,i=this.getDrawCfg(t),r=this.getShapeFactory(),o=new wl({shapeFactory:r,container:n,offscreenGroup:this.getOffscreenGroup()});return o.animate=this.animateOption,o.geometry=this,o.draw(i,e),o},e.prototype.getDrawCfg=function(t){var e=t[Kt],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar},i=t.shape;!i&&this.getShapeFactory()&&(i=this.getShapeFactory().defaultShapeType),n.shape=i;var r=this.theme.geometries[this.shapeType];n.defaultStyle=Object(zt["get"])(r,[i,"default"],{}).style;var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);for(var i=this,r=i.lastElementsMap,o=i.elementsMap,a=i.elements,s=0,l=t.length;s<l;s++){var c=t[s],u=this.getElementId(c);o[u]&&(u=u+"-"+e+"-"+s);var h=r[u];if(h){var d=this.getDrawCfg(c),p=h.getModel();(this.isCoordinateChanged||Dl(d,p))&&(h.animate=this.animateOption,h.update(d)),delete r[u]}else h=this.createElement(c,n);a.push(h),o[u]=h}return a},e.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,i=t.type,r=n.type,o=Object(zt["get"])(e,["cfg","type"]);return o||(o="polar"===r?"polar":"theta"===r?"pie":"interval"===i||"polygon"===i?"interval":"base"),o},e.prototype.getYMinValue=function(){var t,e=this.getYScale(),n=e.min,i=e.max;return t=n>=0?n:i<=0?i:0,t},e.prototype.createAttrOption=function(t,e,n){if(Object(zt["isNil"])(e)||Object(zt["isObject"])(e))Object(zt["isObject"])(e)&&Object(zt["isEqual"])(Object.keys(e),["values"])?Object(zt["set"])(this.attributeOption,t,{fields:e.values}):Object(zt["set"])(this.attributeOption,t,e);else{var i={};Object(zt["isNumber"])(e)?i.values=[e]:i.fields=Rl(e),n&&(Object(zt["isFunction"])(n)?i.callback=n:i.values=n),Object(zt["set"])(this.attributeOption,t,i)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,i=e.attributeOption,r=e.theme,o=e.shapeType;this.groupScales=[];var a={},s=function(e){if(i.hasOwnProperty(e)){var s=i[e];if(!s)return{value:void 0};var l=Lt({},s),c=l.callback,u=l.values,h=l.fields,d=void 0===h?[]:h,p=d.map((function(n){var i=t.scales[n];return i.isCategory&&!a[n]&&qt.includes(e)&&(t.groupScales.push(i),a[n]=!0),i}));l.scales=p,"position"!==e&&1===p.length&&"identity"===p[0].type?l.values=p[0].values:c||u||("size"===e?l.values=r.sizes:"shape"===e?l.values=r.shapes[o]||[]:"color"===e&&(p.length?l.values=p[0].values.length<=10?r.colors10:r.colors20:l.values=r.colors10));var f=Ye(e);n[e]=new f(l)}};for(var l in i){var c=s(l);if("object"===typeof c)return c.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales,n=e.filter((function(t){return t.isCategory})),i=this.groupData(t),r=[],o=0,a=i.length;o<a;o++){for(var s=i[o],l=[],c=0,u=s.length;c<u;c++){var h=s[c],d={};for(var p in h)d[p]=h[p];d[Kt]=h;for(var f=0,g=n;f<g.length;f++){var m=g[f],v=m.field;d[v]=m.translate(d[v])}l.push(d)}r.push(l)}var y=this.adjustData(r);return this.beforeMappingData=y,y},e.prototype.adjustData=function(t){var e=this.adjustOption,n=t;if(e)for(var i=this.getXScale(),r=this.getYScale(),o=i.field,a=r?r.field:null,s=0,l=e.length;s<l;s++){var c=e[s],u=Lt({xField:o,yField:a},c),h=c.type;if("dodge"===h){var d=[];if(i.isCategory||"identity"===i.type)d.push("x");else{if(r)throw new Error("dodge is not support linear attribute, please use category attribute!");d.push("y")}u.adjustNames=d,u.dodgeRatio=this.theme.columnWidthRatio}else if("stack"===h){var p=this.coordinate;if(!r){u.height=p.getHeight();var f=this.getDefaultValue("size")||3;u.size=f}!p.isTransposed&&Object(zt["isNil"])(u.reverseOrder)&&(u.reverseOrder=!0)}var g=Qs(h),m=new g(u);n=m.process(n),this.adjusts[h]=m}return n},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,i={},r=[],o=0;o<e.length;o++){var a=e[o],s=a.field;r.push(s),Object(zt["get"])(n,[s,"values"])&&(i[s]=n[s].values)}return Ll(t,r,i)},e.prototype.updateStackRange=function(t,e){for(var n=Object(zt["flatten"])(e),i=t.field,r=t.min,o=t.max,a=0;a<n.length;a++){var s=n[a],l=Math.min.apply(null,s[i]),c=Math.max.apply(null,s[i]);l<r&&(r=l),c>o&&(o=c)}var u=this.scaleDefs,h={};r<t.min&&!Object(zt["get"])(u,[i,"min"])&&(h.min=r),o>t.max&&!Object(zt["get"])(u,[i,"max"])&&(h.max=o),t.change(h)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,i=e.length;n<i;n++){var r=e[n];this.generateShapePoints(r);var o=e[n+1];o&&(this.generateShapePoints(o),r[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),i=0;i<t.length;i++){var r=t[i],o=this.createShapePointsCfg(r),a=n?this.getAttributeValues(n,r):null,s=e.getShapePoints(a,o);r.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(zt["isArray"])(t))for(var i=0;i<t.length;i++){var r=t[i];n.push(e.scale(r))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],i=0;i<t.length;i++){var r=t[i],o={_origin:r[Kt],points:r.points,nextPoints:r.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],l=s.names,c=this.getAttributeValues(s,r);if(l.length>1)for(var u=0;u<c.length;u+=1){var h=c[u],d=l[u];o[d]=Object(zt["isArray"])(h)&&1===h.length?h[0]:h}else o[l[0]]=1===c.length?c[0]:c}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e,n,i,r=t.x,o=t.y,a=this.coordinate;if(Object(zt["isArray"])(r)&&Object(zt["isArray"])(o)){e=[],n=[];for(var s=0,l=0,c=r.length,u=o.length;s<c&&l<u;s+=1,l+=1)i=a.convert({x:r[s],y:o[l]}),e.push(i.x),n.push(i.y)}else if(Object(zt["isArray"])(o)){n=[];for(var h=0;h<o.length;h++){var d=o[h];i=a.convert({x:r,y:d}),e&&e!==i.x?(Object(zt["isArray"])(e)||(e=[e]),e.push(i.x)):e=i.x,n.push(i.y)}}else if(Object(zt["isArray"])(r)){e=[];for(h=0;h<r.length;h++){var p=r[h];i=a.convert({x:p,y:o}),n&&n!==i.y?(Object(zt["isArray"])(n)||(n=[n]),n.push(i.y)):n=i.y,e.push(i.x)}}else{var f=a.convert({x:r,y:o});e=f.x,n=f.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,i=void 0===n?[]:n,r=t.callback,o=t.cfg;if(o)return o;var a=i.map((function(t){return e[t]}));return r.apply(void 0,a)},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,i=t.data,r=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),i&&(this.data=i),o&&(this.scaleDefs=o,this.idFields=[],Object(zt["each"])(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),r&&(this.theme=this.userTheme?Object(zt["deepMix"])({},r,this.userTheme):r)},e.prototype.renderLabels=function(t,e){void 0===e&&(e=!1);var n=this.geometryLabel;if(!n){var i=this.getLabelType(),r=Al(i);n=new r(this),this.geometryLabel=n}n.render(t,e);var o=n.labelsRenderer.shapesMap;Object(zt["each"])(this.elementsMap,(function(t,e){var n=Bl(e,o);if(n.length){t.labelShape=n;for(var i=0;i<n.length;i++)for(var r=n[i],a=r.getChildren(),s=0;s<a.length;s++){var l=a[s];l.cfg.name=["element","label"],l.cfg.element=t}}}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(zt["get"])(this.animateOption,"appear")||Object(zt["get"])(this.animateOption,"appear")&&void 0===Object(zt["get"])(this.animateOption,["appear","animation"]))},e}(pe),Fl=Nl,zl=qe["a"].transform;function Vl(t,e,n){var i=zl(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)}function Gl(t,e){var n=t.attr(),i=n.x,r=n.y,o=zl(t.getMatrix(),[["t",-i,-r],["r",e],["t",i,r]]);t.setMatrix(o)}var Hl=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){var i=this;void 0===n&&(n=!1),this.shapesMap={};var r=this.container,o=this.createOffscreenGroup();if(t.length){for(var a=0,s=t;a<s.length;a++){var l=s[a];l&&this.renderLabel(l,o)}this.doLayout(t,e),this.renderLabelLine(t),this.adjustLabel(t)}var c=this.lastShapesMap,u=this.shapesMap;Object(zt["each"])(u,(function(t,e){if(t.destroyed)delete u[e];else{if(c[e]){var o=t.get("data"),a=t.get("origin"),s=t.get("coordinate"),l=c[e],h=t.get("animateCfg");l.set("data",o),l.set("origin",a),l.set("animateCfg",h),l.set("coordinate",s);var d=Object(zt["get"])(h,"update"),p=l.getChildren();t.getChildren().map((function(t,e){var n=p[e];n.set("data",o),n.set("origin",a),n.set("animateCfg",h),n.set("coordinate",s);var i=Uo(n,t);d?vl(n,d,{toAttrs:i,coordinate:s}):n.attr(i)})),i.shapesMap[e]=l}else{r.add(t);var f=Object(zt["get"])(t.get("animateCfg"),n?"enter":"appear");f&&vl(t,f,{toAttrs:Lt({},t.attr()),coordinate:t.get("coordinate")})}delete c[e]}})),Object(zt["each"])(c,(function(t){var e=Object(zt["get"])(t.get("animateCfg"),"leave");e?vl(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.lastShapesMap=u,o.destroy()},t.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},t.prototype.renderLabel=function(t,e){var n,i=t.id,r=t.data,o=t.mappingData,a=t.coordinate,s=t.animate,l=t.content,c={id:i,data:r,origin:o,coordinate:a},u=e.addGroup(Lt({name:"label",animateCfg:!1!==this.animate&&null!==s&&!1!==s&&Object(zt["deepMix"])({},this.animate,s)},c));if(l.isGroup&&l.isGroup()||l.isShape&&l.isShape()){var h=l.getCanvasBBox(),d=h.width,p=h.height,f=Object(zt["get"])(t,"textAlign","left"),g=t.x,m=t.y-p/2;"center"===f?g-=d/2:"right"!==f&&"end"!==f||(g-=d),Vl(l,g,m),n=l,u.add(l)}else n=u.addShape("text",Lt({attrs:Lt({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(zt["get"])(t,"textBaseline","middle"),text:t.content},t.style)},c));t.rotate&&Gl(n,t.rotate),this.shapesMap[i]=u},t.prototype.doLayout=function(t,e){var n=this;if(this.layout){var i=Object(zt["isArray"])(this.layout)?this.layout:[this.layout];Object(zt["each"])(i,(function(i){var r=Sl(Object(zt["get"])(i,"type",""));if(r){var o=[],a=[];Object(zt["each"])(n.shapesMap,(function(t,n){o.push(t),a.push(e[n])})),r(t,o,a,n.region,i.cfg)}}))}},t.prototype.renderLabelLine=function(t){var e=this;Object(zt["each"])(t,(function(t){var n=Object(zt["get"])(t,"coordinate");if(t&&n){var i=n.getCenter(),r=n.getRadius();if(t.labelLine){var o=Object(zt["get"])(t,"labelLine",{}),a=t.id,s=o.path;if(!s){var l=zo(i.x,i.y,r,t.angle);s=[["M",l.x,l.y],["L",t.x,t.y]]}var c=e.shapesMap[a];c.destroyed||c.addShape("path",{capture:!1,attrs:Lt({path:s,stroke:t.color?t.color:Object(zt["get"])(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.createOffscreenGroup=function(){var t=this.container,e=t.getGroupBase(),n=new e({});return n},t.prototype.adjustLabel=function(t){var e=this;Object(zt["each"])(t,(function(t){if(t){var n=t.id,i=e.shapesMap[n];if(!i.destroyed){var r=i.find((function(t){return"text"===t.get("type")}));r&&(t.offsetX&&r.attr("x",r.attr("x")+t.offsetX),t.offsetY&&r.attr("y",r.attr("y")+t.offsetY))}}}))},t}(),Wl=Hl;function Ul(t){var e=0;return Object(zt["each"])(t,(function(t){e+=t})),e/t.length}var Zl=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],i=this.getLabelCfgs(t);return Object(zt["each"])(t,(function(t,r){var o=i[r];if(!o||Object(zt["isNil"])(t.x)||Object(zt["isNil"])(t.y))n.push(null);else{var a=Object(zt["isArray"])(o.content)?o.content:[o.content];o.content=a;var s=a.length;Object(zt["each"])(a,(function(i,r){if(Object(zt["isNil"])(i)||""===i)n.push(null);else{var a=Lt(Lt({},o),e.getLabelPoint(o,t,r));a.textAlign||(a.textAlign=e.getLabelAlign(a,r,s)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){void 0===e&&(e=!1);var n=this.getLabelItems(t),i=this.getLabelsRenderer(),r=this.getGeometryShapes();i.render(n,r,e)},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(){return Object(zt["get"])(this.geometry.theme,"labels",{})},t.prototype.setLabelPosition=function(t,e,n,i){},t.prototype.getDefaultOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffset=function(t,e,n){var i=this.getDefaultOffset(t.offset),r=this.getCoordinate(),o=r.isTransposed,a=o?"x":"y",s=o?1:-1,l={x:0,y:0};return l[a]=e>0||1===n?i*s:i*s*-1,l},t.prototype.getLabelPoint=function(t,e,n){var i=this.getCoordinate(),r=t.content.length;function o(e,n){var i=e;return Object(zt["isArray"])(i)&&(i=1===t.content.length?i.length<=2?i[e.length-1]:Ul(i):i[n]),i}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"};if(e&&"polygon"===this.geometry.type){var s=Wo(e.x,e.y);a.x=s[0],a.y=s[1]}else a.x=o(e.x,n),a.y=o(e.y,n);var l=Object(zt["isArray"])(e.shape)?e.shape[0]:e.shape;if("funnel"===l||"pyramid"===l){var c=Object(zt["get"])(e,"nextPoints"),u=Object(zt["get"])(e,"points");if(c){var h=i.convert(u[1]),d=i.convert(c[1]);a.x=(h.x+d.x)/2,a.y=(h.y+d.y)/2}else if("pyramid"===l){h=i.convert(u[1]),d=i.convert(u[2]);a.x=(h.x+d.x)/2,a.y=(h.y+d.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var p=this.getLabelOffset(t,n,r);return a.start={x:a.x,y:a.y},a.x+=p.x,a.y+=p.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var i="center",r=this.getCoordinate();if(r.isTransposed){var o=this.getDefaultOffset(t.offset);i=o<0?"right":0===o?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,i=e.getXScale(),r=e.getYScale(),o=t[Kt],a=e.getElementId(t);return"line"===n||"area"===n?a+=" "+o[i.field]:"path"===n&&(a+=" "+o[i.field]+"-"+o[r.field]),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,i=t.canvasRegion,r=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new Wl({container:e,layout:Object(zt["get"])(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=i,a.animate=!!r&&ml("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,i=this.getDefaultLabelCfg(),r=n.type,o=n.theme,a=n.labelOption,s=n.scales,l=n.coordinate,c=a,u=c.fields,h=c.callback,d=c.cfg,p=u.map((function(t){return s[t]})),f=[];return Object(zt["each"])(t,(function(t,n){var a,s=t[Kt],c=e.getLabelText(s,p);if(h){var g=u.map((function(t){return s[t]}));if(a=h.apply(void 0,g),Object(zt["isNil"])(a))return void f.push(null)}var m=Lt(Lt({id:e.getLabelId(t),data:s,mappingData:t,coordinate:l},d),a),v=m.content;Object(zt["isFunction"])(v)?m.content=v(s,t,n):Object(zt["isUndefined"])(v)&&(m.content=c[0]),Object(zt["isFunction"])(m.position)&&(m.position=m.position(s,t,n)),m="polygon"===r||m.offset<0&&!["line","point","path"].includes(r)?Object(zt["deepMix"])({},i,o.innerLabels,m):Object(zt["deepMix"])({},i,o.labels,m),f.push(m)})),f},t.prototype.getLabelText=function(t,e){var n=[];return Object(zt["each"])(e,(function(e){var i=t[e.field];i=Object(zt["isArray"])(i)?i.map((function(t){return e.getText(t)})):e.getText(i),Object(zt["isNil"])(i)||""===i?n.push(null):n.push(i)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate();return e.isTransposed?e.applyMatrix(t,0):e.applyMatrix(0,t)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(zt["each"])(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(zt["each"])(t.getOffscreenGroup().getChildren(),(function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n})),e},t}(),Yl=Zl,Xl=(n("5977"),{100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"}),ql={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Kl=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Ql=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Jl={backgroundColor:"#141414",brandColor:Kl[0],paletteQualitative10:Kl,paletteQualitative20:Ql,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",fontFamily:'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n  "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n  "Noto Color Emoji"',axisLineBorderColor:ql[25],axisLineBorder:.5,axisLineDash:null,axisTitleTextFillColor:ql[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTickLineBorderColor:ql[25],axisTickLineLength:4,axisTickLineBorder:.5,axisSubTickLineBorderColor:ql[15],axisSubTickLineLength:2,axisSubTickLineBorder:.5,axisLabelFillColor:ql[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisGridBorderColor:ql[15],axisGridBorder:.5,axisGridLineDash:null,legendTitleTextFillColor:ql[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Kl[0],legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:ql[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",sliderRailFillColor:ql[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:ql[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Xl[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Xl[25],annotationArcBorderColor:ql[15],annotationArcBorder:.5,annotationLineBorderColor:ql[25],annotationLineBorder:.5,annotationLineDash:null,annotationTextFillColor:ql[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:Xl[95],annotationTextBorder:1.5,annotationRegionFillColor:ql[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:ql[25],tooltipCrosshairsBorder:.5,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:ql[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:ql[65],labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Xl[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,labelLineBorder:.5,labelLineBorderColor:ql[25],pointFillColor:Kl[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Xl[100],pointBorderOpacity:1,pointActiveBorderColor:ql[100],pointSelectedBorder:2,pointSelectedBorderColor:ql[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Kl[0],hollowPointBorderOpacity:.95,hollowPointFillColor:Xl[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:ql[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ql[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Kl[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Kl[0],areaFillOpacity:.25,areaActiveFillColor:Kl[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Kl[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Kl[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ql[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ql[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Kl[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ql[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ql[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Kl[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Xl[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ql[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ql[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3},$l=n("53c8"),tc={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},ec={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function nc(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function ic(t){var e=tc[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var i=nc(e);if(t.get("id")&&(i.id=t.get("id")),t.set("el",i),t.set("attrs",{}),n){var r=n.get("el");r?r.appendChild(i):(r=n.createDom(),n.set("el",r),r.appendChild(i))}return i}function rc(t,e){var n=t.get("el"),i=Object(zt["toArray"])(n.children).sort(e),r=document.createDocumentFragment();i.forEach((function(t){r.appendChild(t)})),n.appendChild(r)}function oc(t,e){var n=t.parentNode,i=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),r=i[e],o=i.indexOf(t);if(r){if(o>e)n.insertBefore(t,r);else if(o<e){var a=i[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}function ac(t,e){var n=t.cfg.el,i=t.attr(),r={dx:i.shadowOffsetX,dy:i.shadowOffsetY,blur:i.shadowBlur,color:i.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=e.find("filter",r);o||(o=e.addShadow(r)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function sc(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);i=i.join(","),-1===i.indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)}}function lc(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){ic(n),n.createPath(e);var r=e.addClip(n);i.setAttribute("clip-path","url(#"+r+")")}}else i.removeAttribute("clip-path")}function cc(t,e){e.forEach((function(e){e.draw(t)}))}function uc(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context"),r=t.getParent(),o=r?r.getChildren():[n],a=t.get("el");if("remove"===e){var s=t.get("isClipShape");if(s){var l=a&&a.parentNode,c=l&&l.parentNode;l&&c&&c.removeChild(l)}else a&&a.parentNode&&a.parentNode.removeChild(a)}else if("show"===e)a.setAttribute("visibility","visible");else if("hide"===e)a.setAttribute("visibility","hidden");else if("zIndex"===e)oc(a,o.indexOf(t));else if("sort"===e){var u=t.get("children");u&&u.length&&rc(t,(function(t,e){return u.indexOf(t)-u.indexOf(e)?1:0}))}else"clear"===e?a&&(a.innerHTML=""):"matrix"===e?sc(t):"clip"===e?lc(t,i):"attr"===e||"add"===e&&t.draw(i)}}var hc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye["__extends"])(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=nc("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n?n.appendChild(t):(n=e.createDom(),e.set("el",n),n.appendChild(t))}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.createPath(i,e)}},e.prototype.onCanvasChange=function(t){uc(this,t)},e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),lc(this,t),this.createPath(t),e.length&&cc(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(zt["each"])(e||n,(function(t,e){ec[e]&&i.setAttribute(ec[e],t)})),sc(this)},e}(fe["b"]),dc=hc,pc=n("1322"),fc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.draw(i,e)}},e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return dc},e.prototype.onCanvasChange=function(t){uc(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(pc["getBBoxMethod"])(this.get("type"));n&&(e=n(this))}if(e){var i=e.x,r=e.y,o=e.width,a=e.height,s=this.getHitLineWidth(),l=s/2,c=i-l,u=r-l,h=i+o+l,d=r+a+l;return{x:c,y:u,minX:c,minY:u,maxX:h,maxY:d,width:o+s,height:a+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||ic(this),lc(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),i=n.fill,r=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,c=n.lineWidth,u=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",i):"fillStyle"in n&&this._setColor(t,"fill",r):this._setColor(t,"fill",i||r),s&&u.setAttribute(ec["fillOpacity"],s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),l&&u.setAttribute(ec["strokeOpacity"],l),c&&u.setAttribute(ec["lineWidth"],c))},e.prototype._setColor=function(t,e,n){var i=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var r=t.find("gradient",n);r||(r=t.addGradient(n)),i.setAttribute(ec[e],"url(#"+r+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){r=t.find("pattern",n);r||(r=t.addPattern(n)),i.setAttribute(ec[e],"url(#"+r+")")}else i.setAttribute(ec[e],n);else i.setAttribute(ec[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),i=e||n,r=i.shadowOffsetX,o=i.shadowOffsetY,a=i.shadowBlur,s=i.shadowColor;(r||o||a||s)&&ac(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&sc(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),i=this.get("canvas"),r=i.get("el").getBoundingClientRect(),o=t+r.left,a=e+r.top,s=document.elementFromPoint(o,a);return!(!s||!s.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(fe["c"]),gc=fc,mc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(zt["each"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):ec[e]&&i.setAttribute(ec[e],t)}))},e}(gc),vc=mc,yc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return Object(ye["__extends"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(zt["each"])(e||n,(function(t,e){ec[e]&&i.setAttribute(ec[e],t)})),i.innerHTML=n["html"]},e}(gc),bc=yc,xc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(zt["each"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):ec[e]&&i.setAttribute(ec[e],t)}))},e}(gc),wc=xc,_c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(zt["each"])(e||i,(function(t,e){"img"===e?n._setImage(i.img):ec[e]&&r.setAttribute(ec[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(zt["isString"])(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(zt["isString"])(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",i.toDataURL())}},e}(gc),Cc=_c,Ac=n("c3e2"),Ic=n.n(Ac),Sc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(zt["each"])(e||n,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var o=Object(zt["isObject"])(e)?t.addArrow(n,ec[r]):t.getDefaultArrow(n,ec[r]);i.setAttribute(ec[r],"url(#"+o+")")}else i.removeAttribute(ec[r]);else ec[r]&&i.setAttribute(ec[r],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return Ic.a.length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2;return Ic.a.pointAt(n,i,r,o,t)},e}(gc),Mc=Sc,kc={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},triangleDown:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},Ec={get:function(t){return kc[t]},register:function(t,e){kc[t]=e},remove:function(t){delete kc[t]},getAll:function(){return kc}},Tc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(ye["__extends"])(e,t),e.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(zt["isArray"])(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,i=e.y,r=e.r||e.radius,o=e.symbol||"circle";return t=Object(zt["isFunction"])(o)?o:Ec.get(o),t?t(n,i,r):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=Ec,e}(gc),Oc=Tc,Pc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(zt["each"])(e||i,(function(e,o){if("path"===o&&Object(zt["isArray"])(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(zt["isObject"])(e)?t.addArrow(i,ec[o]):t.getDefaultArrow(i,ec[o]);r.setAttribute(ec[o],"url(#"+a+")")}else r.removeAttribute(ec[o]);else ec[o]&&r.setAttribute(ec[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength(),i=e?e.getPointAtLength(t*n):null;return i?{x:i.x,y:i.y}:null},e}(gc),jc=Pc,Lc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(ye["__extends"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(zt["each"])(e||n,(function(t,e){"points"===e&&Object(zt["isArray"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):ec[e]&&i.setAttribute(ec[e],t)}))},e}(gc),Dc=Lc,Rc=n("d6a3"),Bc=n.n(Rc),Nc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(zt["each"])(e||n,(function(t,e){"points"===e&&Object(zt["isArray"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):ec[e]&&i.setAttribute(ec[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(zt["isNil"])(e)?(this.set("totalLength",Bc.a.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),Object(zt["each"])(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),Ic.a.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,o=[];Object(zt["each"])(t,(function(a,s){t[s+1]&&(n=[],n[0]=r/e,i=Ic.a.length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(gc),Fc=Nc;function zc(t){var e=0,n=0,i=0,r=0;return Object(zt["isArray"])(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}}var Vc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el"),o=!1,a=["x","y","width","height","radius"];Object(zt["each"])(e||i,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&ec[e]&&r.setAttribute(ec[e],t):(r.setAttribute("d",n._assembleRect(i)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var a=zc(o);Object(zt["isArray"])(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o;var s=[["M "+(e+a.r1)+","+n],["l "+(i-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(r-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-i)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-r)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]];return s.join(" ")},e}(gc),Gc=Vc,Hc=n("e632"),Wc=.3,Uc={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Zc={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},Yc={left:"left",start:"left",center:"middle",right:"end",end:"end"},Xc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return Object(ye["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(ye["__assign"])(Object(ye["__assign"])({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");this._setFont(),Object(zt["each"])(e||i,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?sc(n):ec[e]&&r.setAttribute(ec[e],t)})),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,i=e.textAlign,r=Object(Hc["detect"])();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",Zc[n]||"alphabetic"):t.setAttribute("alignment-baseline",Uc[n]||"baseline"),t.setAttribute("text-anchor",Yc[i]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),i=n.x,r=n.textBaseline,o=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,l="";Object(zt["each"])(a,(function(t,e){0===e?"alphabetic"===o?l+='<tspan x="'+i+'" dy="'+-s+'em">'+t+"</tspan>":"top"===o?l+='<tspan x="'+i+'" dy="0.9em">'+t+"</tspan>":"middle"===o?l+='<tspan x="'+i+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===o?l+='<tspan x="'+i+'" dy="-'+(s+Wc)+'em">'+t+"</tspan>":"hanging"===o&&(l+='<tspan x="'+i+'" dy="'+(-(s-1)-Wc)+'em">'+t+"</tspan>"):l+='<tspan x="'+i+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}else e.innerHTML=t;else e.innerHTML=""},e}(gc),qc=Xc,Kc=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Qc=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Jc=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function $c(t){var e=t.match(Jc);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(zt["each"])(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function tu(t,e){var n,i,r=Kc.exec(t),o=Object(zt["mod"])(Object(zt["toRadian"])(parseFloat(r[1])),2*Math.PI),a=r[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var s=Math.tan(o),l=s*s,c=(i.x-n.x+s*(i.y-n.y))/(l+1)+n.x,u=s*(i.x-n.x+s*(i.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",c),e.setAttribute("y2",u),e.innerHTML=$c(a)}function eu(t,e){var n=Qc.exec(t),i=parseFloat(n[1]),r=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",i),e.setAttribute("cy",r),e.setAttribute("r",o),e.innerHTML=$c(a)}var nu=function(){function t(t){this.cfg={};var e=null,n=Object(zt["uniqueId"])("gradient_");return"l"===t.toLowerCase()[0]?(e=nc("linearGradient"),tu(t,e)):(e=nc("radialGradient"),eu(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),iu=nu,ru={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},ou={x:"-40%",y:"-40%",width:"200%",height:"200%"},au=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=nc("filter");return Object(zt["each"])(ou,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(zt["uniqueId"])("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return Object(zt["each"])(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[ru[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n      dx="'+(t.dx||0)+'"\n      dy="'+(t.dy||0)+'"\n      stdDeviation="'+(t.blur?t.blur/10:0)+'"\n      flood-color="'+(t.color?t.color:"#000")+'"\n      flood-opacity="'+(t.opacity?t.opacity:1)+'"\n      />';e.innerHTML=n},t}(),su=au,lu=function(){function t(t,e){this.cfg={};var n=nc("marker"),i=Object(zt["uniqueId"])("marker_");n.setAttribute("id",i);var r=nc("path");r.setAttribute("stroke",t.stroke||"none"),r.setAttribute("fill",t.fill||"none"),n.appendChild(r),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=r,this.id=i;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,r):(this.cfg=o,this._setMarker(t.lineWidth,r)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,r=this.cfg.d;Object(zt["isArray"])(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),r&&n.setAttribute("refX",""+r/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),cu=lu,uu=function(){function t(t){this.type="clip",this.cfg={};var e=nc("clipPath");this.el=e,this.id=Object(zt["uniqueId"])("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),hu=uu,du=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,pu=function(){function t(t){this.cfg={};var e=nc("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=nc("image");e.appendChild(n);var i=Object(zt["uniqueId"])("pattern_");e.id=i,this.el=e,this.id=i,this.cfg=t;var r=du.exec(t),o=r[2];n.setAttribute("href",o);var a=new Image;function s(){e.setAttribute("width",""+a.width),e.setAttribute("height",""+a.height)}return o.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=o,a.complete?s():(a.onload=s,a.src=a.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),fu=pu,gu=function(){function t(t){var e=nc("defs"),n=Object(zt["uniqueId"])("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,i=null,r=0;r<n.length;r++)if(n[r].match(t,e)){i=n[r].id;break}return i},t.prototype.findById=function(t){for(var e=this.children,n=null,i=0;i<e.length;i++)if(e[i].id===t){n=e[i];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new cu(t,e);return this.defaultArrow[n]=i,this.el.appendChild(i.el),this.add(i),i.id},t.prototype.addGradient=function(t){var e=new iu(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new cu(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new su(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new fu(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new hu(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),mu=gu,vu=function(t){function e(e){return t.call(this,Object(ye["__assign"])(Object(ye["__assign"])({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(ye["__extends"])(e,t),e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return dc},e.prototype.getShape=function(t,e,n){var i=n.target||n.srcElement;if(!tc[i.tagName]){var r=i.parentNode;while(r&&!tc[r.tagName])r=r.parentNode;i=r}return this.find((function(t){return t.get("el")===i}))},e.prototype.createDom=function(){var t=nc("svg"),e=new mu(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var i=this.get("children");i&&i.length&&rc(this,(function(t,e){return i.indexOf(t)-i.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var r=e.el;r.innerHTML="",n.appendChild(r)}}else"matrix"===t?sc(this):"clip"===t?lc(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();lc(this,t),e.length&&cc(t,e)},e}(fe["a"]),yu=vu,bu=n("f1d9"),xu=bu.version;function wu(t){return!t&&(null===t||void 0===t||isNaN(t))}function _u(t){if(Object(zt["isArray"])(t))return wu(t[1].y);var e=t.y;return Object(zt["isArray"])(e)?wu(e[0]):wu(e)}function Cu(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var i=[],r=0,o=t.length;r<o;r++){var a=t[r];_u(a)||i.push(a)}return[i]}var s=[],l=[];for(r=0,o=t.length;r<o;r++){a=t[r];_u(a)?l.length&&((1!==l.length||n)&&s.push(l),l=[]):l.push(a)}return l.length&&s.push(l),s}function Au(t,e,n,i){void 0===i&&(i="");var r=t.style,o=void 0===r?{}:r,a=t.defaultStyle,s=t.color,l=t.size,c=Lt(Lt({},a),o);return s&&(e&&(o.stroke||(c.stroke=s)),n&&(o.fill||(c.fill=s))),i&&Object(zt["isNil"])(o[i])&&!Object(zt["isNil"])(l)&&(c[i]=l),c}function Iu(t){var e=t.x,n=Object(zt["isArray"])(t.y)?t.y:[t.y];return n.map((function(t,n){return{x:Object(zt["isArray"])(e)?e[n]:e,y:t}}))}var Su={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function Mu(t,e){var n=t.color;return{symbol:Su[e],style:{lineWidth:2,r:6,stroke:n}}}function ku(t,e,n){for(var i=t.isStack,r=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=Au(t,!0,!1,"lineWidth"),l=Cu(t.points,r,a),c=[],u=0,h=l.length;u<h;u++){var d=l[u];c=c.concat(Ou(d,o,i,e,n,s))}return s.path=c,s}function Eu(t,e,n,i,r){return 1===t.length?[["M",t[0].x,t[0].y-r.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+r.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=ca(t,!1,i)):(o=la(t,!1),e&&o.push(["Z"])),o);var o}function Tu(t,e,n,i,r,o){var a=[],s=[];Object(zt["each"])(t,(function(t){var e=Iu(t);a.push(e[1]),s.push(e[0])}));var l=Eu(a,e,i,r,o),c=Eu(s,e,i,r,o);return n?l:l.concat(c)}function Ou(t,e,n,i,r,o){if(t.length){var a=t[0];return Object(zt["isArray"])(a.y)?Tu(t,e,n,i,r,o):Eu(t,e,i,r,o)}return[]}Ol("line",{defaultShapeType:"line"});Object(zt["each"])(["line","dot","dash","smooth"],(function(t){Pl("line",t,{draw:function(e,n){var i,r="smooth"===t;if(r){var o=this.coordinate,a=o.start,s=o.end;i=[[a.x,s.y],[s.x,a.y]]}var l=ku(e,r,i),c=n.addShape({type:"path",attrs:l,name:"line"});return c},getMarker:function(e){return Mu(e,t)}})}));var Pu=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var i=e.connectNulls,r=void 0!==i&&i,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=r,n.showSinglePoint=a,n}return jt(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var i=this,r=i.lastElementsMap,o=i.elementsMap,a=i.elements,s=i.container,l=this.getElementId(t),c=this.getShapeInfo(t),u=r[l];if(u){var h=u.getModel();(this.isCoordinateChanged||Dl(h,c))&&(u.animate=this.animateOption,u.update(c)),delete r[l]}else{var d=this.getShapeFactory();u=new wl({shapeFactory:d,container:s,offscreenGroup:this.getOffscreenGroup()}),u.geometry=this,u.animate=this.animateOption,u.draw(c,n)}return a.push(u),o[l]=u,a},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var o=t[i];e.push({x:o.x,y:o.y}),n.push(o[Kt])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),i=n.points,r=n.data;return e.mappingData=t,e.data=r,e.isStack=!!this.getAdjust("stack"),e.points=i,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(Fl),ju=Pu;function Lu(t,e,n,i,r){var o=[];if(t.length){for(var a=[],s=[],l=0,c=t.length;l<c;l++){var u=t[l];a.push(u[1]),s.push(u[0])}s=s.reverse(),Object(zt["each"])([a,s],(function(t,l){var c=[],u=i.parsePoints(t),h=u[0];1===a.length&&1===s.length?c=0===l?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&u.push({x:h.x,y:h.y}),c=n?ca(u,!1,r):la(u,!1),l>0&&(c[0][0]="L")),o=o.concat(c)})),o.push(["Z"])}return o}function Du(t,e,n,i,r){for(var o=Au(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,l=t.points,c=t.showSinglePoint,u=Cu(l,a,c),h=[],d=0,p=u.length;d<p;d++){var f=u[d];h=h.concat(Lu(f,s,n,i,r))}return o.path=h,o}function Ru(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}Ol("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0,i=Object(zt["isArray"])(t.y)?t.y:[n,t.y];return i.map((function(t){return{x:e,y:t}}))}});Pl("area","area",{draw:function(t,e){var n=Du(t,!1,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}});var Bu=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var i=e.startOnZero,r=void 0===i||i,o=e.sortable,a=void 0===o||o,s=e.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=r,n.sortable=a,n.showSinglePoint=l,n}return jt(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var o=t[i];e.push(o.points),n.push(o[Kt])}return{points:e,data:n}},e.prototype.getYMinValue=function(){if(this.startOnZero)return t.prototype.getYMinValue.call(this);var e=this.getYScale();return e.min},e}(ju),Nu=Bu;Ol("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return Iu(t)}});Pl("edge","line",{draw:function(t,e){var n=Au(t,!0,!1,"lineWidth"),i=la(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:Lt(Lt({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Fu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return jt(e,t),e}(Fl),zu=Fu,Vu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return jt(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var i=this.prepareRange(t),r=this.prepareSize(),o=Object(zt["get"])(this.styleOption,["style","shadowBlur"]);return Object(zt["isNumber"])(o)||(o=r/2),this.prepareGreyScaleBlurredCircle(r,o),this.drawWithRange(t,i,r,o),null},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color"),n=e.getFields()[0],i=1/0,r=-1/0;return t.forEach((function(t){var e=t[Kt][n];e>r&&(r=e),e<i&&(i=e)})),i===r&&(i=r-1),[i,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(zt["isNumber"])(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),i=t+e,r=n.getContext("2d");n.width=n.height=2*i,r.clearRect(0,0,n.width,n.height),r.shadowOffsetX=r.shadowOffsetY=2*i,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-i,-i,t,0,2*Math.PI,!0),r.closePath(),r.fill()},e.prototype.drawWithRange=function(t,e,n,i){var r=this.coordinate,o=r.start,a=r.end,s=this.coordinate.getWidth(),l=this.coordinate.getHeight(),c=this.getAttribute("color"),u=c.getFields()[0];this.clearShadowCanvasCtx();var h=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[Kt][u]<=e[1]&&t[Kt][u]>=e[0]})));for(var d=this.scales[u],p=0,f=t;p<f.length;p++){var g=f[p],m=this.getDrawCfg(g),v=m.x,y=m.y,b=d.scale(g[Kt][u]);this.drawGrayScaleBlurredCircle(v-o.x,y-a.y,n+i,b,h)}var x=h.getImageData(0,0,s,l);this.clearShadowCanvasCtx(),this.colorize(x),h.putImageData(x,0,0);var w=this.getImageShape();w.attr("x",o.x),w.attr("y",a.y),w.attr("width",s),w.attr("height",l),w.attr("img",h.canvas),w.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,i,r){var o=this.getGrayScaleBlurredCanvas();r.globalAlpha=i,r.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,i=this.paletteCache,r=3;r<n.length;r+=4){var o=n[r];if(Object(zt["isNumber"])(o)){var a=i[o]?i[o]:Le.rgb2arr(e.gradient(o/256));n[r-3]=a[0],n[r-2]=a[1],n[r-1]=a[2],n[r]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;if(t)return t;var e=this.container;return t=e.addShape({type:"image",attrs:{}}),this.imageShape=t,t},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]);return Lt(Lt({},e),{mappingData:t,data:this.getData(t)})},e.prototype.getData=function(t){return t.map((function(t){return t[Kt]}))},e}(Fl),Gu=Vu;function Hu(t,e){void 0===e&&(e=!1);var n,i,r,o,a=t.x,s=t.y,l=t.y0,c=t.size;Object(zt["isArray"])(s)?(n=s[0],i=s[1]):(n=l,i=s),Object(zt["isArray"])(a)?(r=a[0],o=a[1]):(r=a-c/2,o=a+c/2);var u=[{x:r,y:n},{x:r,y:i}];return e?u.push({x:o,y:(i+n)/2}):u.push({x:o,y:i},{x:o,y:n}),u}function Wu(t,e){void 0===e&&(e=!0);var n=[],i=t[0];n.push(["M",i.x,i.y]);for(var r=1,o=t.length;r<o;r++)n.push(["L",t[r].x,t[r].y]);return e&&(n.push(["L",i.x,i.y]),n.push(["z"])),n}function Uu(t,e,n){var i=[];return Object(zt["isNil"])(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[2].x,t[2].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i}Ol("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Hu(t)}});Pl("interval","rect",{draw:function(t,e){var n=Au(t,!1,!0),i=this.parsePath(Wu(t.points)),r=e.addShape("path",{attrs:Lt(Lt({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});function Zu(t,e){var n=t.length,i=t;Object(zt["isString"])(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var r=i[1]-i[0],o=2;o<n;o++){var a=i[o]-i[o-1];r>a&&(r=a)}return r}function Yu(t,e){if(e){var n=Object(zt["flatten"])(t),i=Object(zt["valuesOfKey"])(n,e);return i.length}return t.length}function Xu(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,o=t.beforeMappingData,a=r.length;if(i.isLinear&&r.length>1){r.sort();var s=Zu(r,i);a=(i.max-i.min)/s,r.length>a&&(a=r.length)}var l=i.range,c=1/a,u=1;if(n.isPolar?u=n.isTransposed&&a>1?e.multiplePieWidthRatio:e.roseWidthRatio:(i.isLinear&&(c*=l[1]-l[0]),u=e.columnWidthRatio),c*=u,t.getAdjust("dodge")){var h=t.getAdjust("dodge"),d=h.dodgeBy,p=Yu(o,d);c/=p}var f=e.maxColumnWidth,g=e.minColumnWidth,m=Ko(t.coordinate);if(f){var v=f/m;c>v&&(c=v)}if(g){var y=g/m;c<y&&(c=y)}return c}var qu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e}return jt(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var o=this.coordinate,a=Ko(o);n/=a}else this.defaultSize||(this.defaultSize=Xu(this)),n=this.defaultSize;return i.size=n,i},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Math.max(Math.max.apply(null,e.values),e.max)});else{var n=this.scaleDefs,i=e.field,r=e.min,o=e.max,a=e.type;"time"!==a&&(r>0&&!Object(zt["get"])(n,[i,"min"])&&e.change({min:0}),o<=0&&!Object(zt["get"])(n,[i,"max"])&&e.change({max:0}))}},e}(Fl),Ku=qu,Qu=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var i=e.sortable,r=void 0===i||i;return n.sortable=r,n}return jt(e,t),e}(ju),Ju=Qu,$u={hexagon:function(t,e,n){var i=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]},bowtie:function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},th=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],eh=["cross","tick","plus","hyphen","line"];function nh(t,e,n,i,r){var o=Au(e,r,!r,"r"),a=t.parsePoints(e.points),s=a[0];if(e.isStack)s=a[1];else if(a.length>1){for(var l=n.addGroup(),c=0,u=a;c<u.length;c++){var h=u[c];l.addShape({type:"marker",attrs:Lt(Lt(Lt({},o),{symbol:$u[i]||i}),h)})}return l}return n.addShape({type:"marker",attrs:Lt(Lt(Lt({},o),{symbol:$u[i]||i}),s)})}Ol("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return Iu(t)}});Object(zt["each"])(th,(function(t){Pl("point","hollow-"+t,{draw:function(e,n){return nh(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:$u[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var ih=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return jt(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Lt(Lt({},n),{isStack:!!this.getAdjust("stack")})},e}(Fl),rh=ih;function oh(t){var e=t[0],n=1,i=[["M",e.x,e.y]];while(n<t.length){var r=t[n];r.x===t[n-1].x&&r.y===t[n-1].y||(i.push(["L",r.x,r.y]),r.x===e.x&&r.y===e.y&&n<t.length-1&&(e=t[n+1],i.push(["Z"]),i.push(["M",e.x,e.y]),n++)),n++}return Object(zt["isEqual"])(Object(zt["last"])(i),e)||i.push(["L",e.x,e.y]),i.push(["Z"]),i}Ol("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(zt["each"])(t.x,(function(n,i){var r=t.y[i];e.push({x:n,y:r})})),e}});Pl("polygon","polygon",{draw:function(t,e){if(!Object(zt["isEmpty"])(t.points)){var n=Au(t,!0,!0),i=this.parsePath(oh(t.points));return e.addShape("path",{attrs:Lt(Lt({},n),{path:i}),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}});var ah=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return jt(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=i.x,o=i.y;if(!Object(zt["isArray"])(r)||!Object(zt["isArray"])(o)){var a=this.getXScale(),s=this.getYScale(),l=a.values.length,c=s.values.length,u=.5/l,h=.5/c;a.isCategory&&s.isCategory?(r=[r-u,r-u,r+u,r+u],o=[o-h,o+h,o+h,o-h]):Object(zt["isArray"])(r)?(n=r,r=[n[0],n[0],n[1],n[1]],o=[o-h/2,o+h/2,o+h/2,o-h/2]):Object(zt["isArray"])(o)&&(n=o,o=[n[0],n[1],n[1],n[0]],r=[r-u/2,r-u/2,r+u/2,r+u/2]),i.x=r,i.y=o}return i},e}(Fl),sh=ah,lh=(Ol("schema",{defaultShapeType:""}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return jt(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var o=this.coordinate,a=Ko(o);n/=a}else this.defaultSize||(this.defaultSize=Xu(this)),n=this.defaultSize;return i.size=n,i},e}(Fl)),ch=lh;function uh(t,e){var n=[];n.push({x:t.x,y:1*t.y/2+1*e.y/2}),n.push({x:e.x,y:1*t.y/2+1*e.y/2}),n.push(e);var i=["C"];return Object(zt["each"])(n,(function(t){i.push(t.x,t.y)})),i}function hh(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return Object(zt["each"])(n,(function(t){i.push(t.x,t.y)})),i}function dh(t,e,n){var i=hh(e,n),r=[["M",t.x,t.y]];return r.push(i),r}function ph(t,e){var n=hh(t[1],e),i=hh(t[3],e),r=[["M",t[0].x,t[0].y]];return r.push(i),r.push(["L",t[3].x,t[3].y]),r.push(["L",t[2].x,t[2].y]),r.push(n),r.push(["L",t[1].x,t[1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]),r}function fh(t,e){var n=uh(t,e),i=[["M",t.x,t.y]];return i.push(n),i}Pl("area","line",{draw:function(t,e){var n=Du(t,!0,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),Pl("area","smooth",{draw:function(t,e){var n=this.coordinate,i=Du(t,!1,!0,this,Ru(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}}),Pl("area","smooth-line",{draw:function(t,e){var n=this.coordinate,i=Du(t,!0,!0,this,Ru(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),Pl("edge","arc",{draw:function(t,e){var n,i=Au(t,!0,!1,"lineWidth"),r=t.points,o=r.length>2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?n=dh(r[0],r[1],a):(i.fill=i.stroke,n=ph(r,a)),n=this.parsePath(n),e.addShape("path",{attrs:Lt(Lt({},i),{path:n})})}if("normal"===o)return r=this.parsePoints(r),n=Go((r[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:Lt(Lt({},i),{path:n})});var s=uh(r[1],r[3]),l=uh(r[2],r[0]);return n=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]],n=this.parsePath(n),i.fill=i.stroke,e.addShape("path",{attrs:Lt(Lt({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Pl("edge","smooth",{draw:function(t,e){var n=Au(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(fh(i[0],i[1]));return e.addShape("path",{attrs:Lt(Lt({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var gh=1/3;function mh(t,e){var n=[];n.push({x:t.x,y:t.y*(1-gh)+e.y*gh}),n.push({x:e.x,y:t.y*(1-gh)+e.y*gh}),n.push(e);var i=[["M",t.x,t.y]];return Object(zt["each"])(n,(function(t){i.push(["L",t.x,t.y])})),i}function vh(t){var e=t.x,n=t.y,i=t.y0;return Object(zt["isArray"])(n)?n.map((function(t,n){return{x:Object(zt["isArray"])(e)?e[n]:e,y:t}})):[{x:e,y:i},{x:e,y:n}]}function yh(t){var e,n,i=t.x,r=t.y,o=t.y0,a=t.size;Object(zt["isArray"])(r)?(e=r[0],n=r[1]):(e=o,n=r);var s=i+a/2,l=i-a/2;return[{x:i,y:e},{x:i,y:n},{x:l,y:e},{x:s,y:e},{x:l,y:n},{x:s,y:n}]}function bh(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]]}Pl("edge","vhv",{draw:function(t,e){var n=Au(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(mh(i[0],i[1]));return e.addShape("path",{attrs:Lt(Lt({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Pl("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Hu(t)},draw:function(t,e){var n=Au(t,!1,!0),i=this.parsePath(Uu(t.points,t.nextPoints,!1)),r=e.addShape("path",{attrs:Lt(Lt({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Pl("interval","hollow-rect",{draw:function(t,e){var n=Au(t,!0,!1),i=this.parsePath(Wu(t.points)),r=e.addShape("path",{attrs:Lt(Lt({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Pl("interval","line",{getPoints:function(t){return vh(t)},draw:function(t,e){var n=Au(t,!0,!1,"lineWidth"),i=this.parsePath(Wu(t.points,!1)),r=e.addShape("path",{attrs:Lt(Lt({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:e}}}}),Pl("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Hu(t,!0)},draw:function(t,e){var n=Au(t,!1,!0),i=this.parsePath(Uu(t.points,t.nextPoints,!0)),r=e.addShape("path",{attrs:Lt(Lt({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Pl("interval","tick",{getPoints:function(t){return yh(t)},draw:function(t,e){var n=Au(t,!0,!1),i=this.parsePath(bh(t.points)),r=e.addShape("path",{attrs:Lt(Lt({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:e}}}});var xh=function(t,e,n){var i,r=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":i=[{x:a,y:o}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var l=(a+r)/2;i=[{x:l,y:o},{x:l,y:s}];break;case"vhv":var c=(o+s)/2;i=[{x:r,y:c},{x:a,y:c}];break;default:break}return i};function wh(t,e){var n=[];return Object(zt["each"])(t,(function(i,r){var o=t[r+1];if(n.push(i),o){var a=xh(i,o,e);n=n.concat(a)}})),n}function _h(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function Ch(t,e){var n=Cu(t.points,t.connectNulls,t.showSinglePoint),i=[];return Object(zt["each"])(n,(function(t){var n=wh(t,e);i=i.concat(_h(n))})),Lt(Lt({},Au(t,!0,!1,"lineWidth")),{path:i})}function Ah(t){var e=Object(zt["isArray"])(t)?t:[t],n=e[0],i=e[e.length-1],r=e.length>1?e[1]:n,o=e.length>3?e[3]:i,a=e.length>2?e[2]:r;return{min:n,max:i,min1:r,max1:o,median:a}}function Ih(t,e,n){var i,r=n/2;if(Object(zt["isArray"])(e)){var o=Ah(e),a=o.min,s=o.max,l=o.median,c=o.min1,u=o.max1,h=t-r,d=t+r;i=[[h,s],[d,s],[t,s],[t,u],[h,c],[h,u],[d,u],[d,c],[t,c],[t,a],[h,a],[d,a],[h,l],[d,l]]}else{e=Object(zt["isNil"])(e)?.5:e;var p=Ah(t),f=(a=p.min,s=p.max,l=p.median,c=p.min1,u=p.max1,e-r),g=e+r;i=[[a,f],[a,g],[a,e],[c,e],[c,f],[c,g],[u,g],[u,f],[u,e],[s,e],[s,f],[s,g],[l,f],[l,g]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function Sh(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}function Mh(t){var e=Object(zt["isArray"])(t)?t:[t],n=e.sort((function(t,e){return e-t}));return Yo(n,4,n[n.length-1])}function kh(t,e,n){var i=Mh(e);return[{x:t,y:i[0]},{x:t,y:i[1]},{x:t-n/2,y:i[2]},{x:t-n/2,y:i[1]},{x:t+n/2,y:i[1]},{x:t+n/2,y:i[2]},{x:t,y:i[2]},{x:t,y:i[3]}]}function Eh(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}function Th(t,e){var n=Math.abs(t[0].x-t[2].x),i=Math.abs(t[0].y-t[2].y),r=Math.min(n,i);e&&(r=Object(zt["clamp"])(e,0,Math.min(n,i))),r/=2;var o=(t[0].x+t[2].x)/2,a=(t[0].y+t[2].y)/2;return{x:o-r,y:a-r,width:2*r,height:2*r}}Object(zt["each"])(["hv","vh","hvh","vhv"],(function(t){Pl("line",t,{draw:function(e,n){var i=Ch(e,t),r=n.addShape({type:"path",attrs:i,name:"line"});return r},getMarker:function(e){return Mu(e,t)}})})),Object(zt["each"])(eh,(function(t){Pl("point",t,{draw:function(e,n){return nh(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:$u[t],style:{r:4.5,stroke:n,fill:null}}}})})),Pl("point","image",{draw:function(t,e){var n=Au(t,!1,!1,"r").r,i=this.parsePoints(t.points),r=i[0];if(t.isStack)r=i[1];else if(i.length>1){for(var o=e.addGroup(),a=0,s=i;a<s.length;a++){var l=s[a];o.addShape("image",{attrs:{x:l.x-n/2,y:l.y-n,width:n,height:n,img:t.shape[1]}})}return o}return e.addShape("image",{attrs:{x:r.x-n/2,y:r.y-n,width:n,height:n,img:t.shape[1]}})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4.5,fill:e}}}}),Object(zt["each"])(th,(function(t){Pl("point",t,{draw:function(e,n){return nh(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:$u[t]||t,style:{r:4.5,fill:n}}}})})),Pl("schema","box",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return Ih(e,n,i)},draw:function(t,e){var n=Au(t,!0,!1),i=this.parsePath(Sh(t.points)),r=e.addShape("path",{attrs:Lt(Lt({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e-6,e-3,e,e+3,e+6],r=Ih(t,i,n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:e}}}}),Pl("schema","candle",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return kh(e,n,i)},draw:function(t,e){var n=Au(t,!0,!0),i=this.parsePath(Eh(t.points)),r=e.addShape("path",{attrs:Lt(Lt({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e+7.5,e+3,e-3,e-7.5],r=kh(t,i,n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),Pl("polygon","square",{draw:function(t,e){if(!Object(zt["isEmpty"])(t.points)){var n=Au(t,!0,!0),i=this.parsePoints(t.points);return e.addShape("rect",{attrs:Lt(Lt({},n),Th(i,t.size)),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}});var Oh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.setLabelPosition=function(t,e,n,i){var r=this.getCoordinate(),o=r.isTransposed,a=e.points,s=r.convert(a[0]),l=r.convert(a[2]),c=o?-1:1,u=(s.x-l.x)/2*c,h=(s.y-l.y)/2*c;switch(i){case"right":o||(t.x-=u,t.y+=h),t.textAlign=Object(zt["get"])(t,"textAlign","left");break;case"left":o?t.x-=2*u:(t.x+=u,t.y+=h),t.textAlign=Object(zt["get"])(t,"textAlign","right");break;case"bottom":o?(t.x-=u,t.y-=h):t.y+=2*h,t.textAlign=Object(zt["get"])(t,"textAlign","center"),t.textBaseline=Object(zt["get"])(t,"textBaseline","top");break;case"middle":o?t.x-=u:t.y+=h,t.textAlign=Object(zt["get"])(t,"textAlign","center");break;case"top":o&&(t.x-=u,t.y+=h),t.textAlign=Object(zt["get"])(t,"textAlign","center"),t.textBaseline=Object(zt["get"])(t,"textBaseline","bottom");break;default:break}},e}(Yl),Ph=Oh,jh=Math.PI/2,Lh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=this.getDefaultOffset(t.offset);e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var i,r=1,o=t.content[n];this.isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(r=-1),i=this.getArcPoint(e,n));var a=this.getDefaultOffset(t.offset)*r,s=this.getPointAngle(i),l=t.labelEmit,c=this.getCirclePoint(s,a,i,l);return 0===c.r?c.content="":(c.content=o,c.angle=s,c.color=e.color),c.rotate=t.autoRotate?this.getLabelRotate(s,a,l):t.rotate,c.start={x:i.x,y:i.y},c},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(zt["isArray"])(t.x)||Object(zt["isArray"])(t.y)?{x:Object(zt["isArray"])(t.x)?t.x[e]:t.x,y:Object(zt["isArray"])(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return ta(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),o=r.getCenter(),a=Jo(r,n);if(0===a)return Lt(Lt({},o),{r:a});var s=t;if(r.isTransposed&&a>e&&!i){var l=Math.asin(e/(2*a));s=t+2*l}else a+=e;return{x:o.x+a*Math.cos(s),y:o.y+a*Math.sin(s),r:a}},e.prototype.getLabelRotate=function(t,e,n){var i=t+jh;return n&&(i-=jh),i&&(i>jh?i-=Math.PI:i<-jh&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return Object(zt["each"])(t,(function(t){i.x+=t.x,i.y+=t.y})),i.x/=n,i.y/=n,i=e.convert(i),i},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(Yl),Dh=Lh,Rh=function(t){function e(e){var n=t.call(this,e)||this;return n.defaultLayout="distribute",n}return jt(e,t),e.prototype.getDefaultLabelCfg=function(){return Object(zt["get"])(this.geometry.theme,"pieLabels",{})},e.prototype.getDefaultOffset=function(t){return t||0},e.prototype.getLabelRotate=function(t,e,n){var i;return e<0&&(i=t,i>Math.PI/2&&(i-=Math.PI),i<-Math.PI/2&&(i+=Math.PI)),i},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate(),i=n.getCenter();e=t.angle<=Math.PI/2&&t.x>=i.x?"left":"right";var r=this.getDefaultOffset(t.offset);return r<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),i={x:Object(zt["isArray"])(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(zt["isArray"])(t.x)?t.x[1]:t.x,y:t.y[1]},o=ta(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=ta(n,r);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e,n){var i=this.getCoordinate(),r=i.getCenter(),o=i.getRadius()+e;return Lt(Lt({},zo(r.x,r.y,o,t)),{angle:t,r:o})},e}(Dh),Bh=Rh,Nh=4;function Fh(t,e,n,i,r,o){var a,s=!0,l=i.start,c=i.end,u=Math.min(l.y,c.y),h=Math.abs(l.y-c.y),d=0,p=Number.MIN_VALUE,f=e.map((function(t){return t.y>d&&(d=t.y),t.y<p&&(p=t.y),{size:n,targets:[t.y-u]}}));p-=u,d-u>h&&(h=d-u);while(s){f.forEach((function(t){var e=(Math.min.apply(p,t.targets)+Math.max.apply(p,t.targets))/2;t.pos=Math.min(Math.max(p,e-t.size/2),h-t.size)})),s=!1,a=f.length;while(a--)if(a>0){var g=f[a-1],m=f[a];g.pos+g.size>m.pos&&(g.size+=m.size,g.targets=g.targets.concat(m.targets),g.pos+g.size>h&&(g.pos=h-g.size),f.splice(a,1),s=!0)}}a=0,f.forEach((function(t){var i=u+n/2;t.targets.forEach((function(){e[a].y=t.pos+i,i+=n,a++}))}));for(var v={},y=0,b=t;y<b.length;y++){var x=b[y];v[x.get("id")]=x}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var i=Math.sqrt(e-n);t.x=o?r.x+i:r.x-i}var a=v[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=Object(zt["find"])(a.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}function zh(t,e,n,i){var r=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(r>0){var l=14,c=a+r,u=2*c+2*l,h={start:o.start,end:o.end},d=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?d[0].push(t):d[1].push(t))})),d.forEach((function(t,n){var i=u/l;t.length>i&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(i,t.length-i)),t.sort((function(t,e){return t.y-e.y})),Fh(e,t,l,h,s,n)}))}Object(zt["each"])(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=zo(s.x,s.y,a,n),r=zo(s.x,s.y,a+e/2,n),o=t.x+Object(zt["get"])(t,"offsetX",0),l=t.y+Object(zt["get"])(t,"offsetY",0),c={x:o-Math.cos(n)*Nh,y:l-Math.sin(n)*Nh};Object(zt["isObject"])(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M "+i.x,i.y+" Q"+r.x,r.y+" "+c.x,c.y].join(",")}}))}var Vh=4;function Gh(t,e,n,i,r,o,a){e.sort((function(t,e){return t.y-e.y}));var s,l=i.start,c=i.end,u=Math.min(l.y,c.y),h=Math.max(l.y,c.y),d=e.map((function(t){return{content:t.content,size:n,pos:t.y,targets:[t.y]}})),p=Math.max.apply(Math,d.map((function(t){return t.pos}))),f=Math.min.apply(Math,d.map((function(t){return t.pos})));if(a){var g=Math.min(f,h-(d.length-1)*n),m=Math.max(g+d.length*n,p+n),v=!0;while(v){v=!1,s=d.length;while(s--)if(s>0){var y=d[s-1],b=d[s];y.pos+y.size>b.pos&&(b.pos+s*n<m?(y.size+=b.size,y.targets=y.targets.concat(b.targets),d.splice(s,1)):y.pos=b.pos-y.size,v=!0)}}}else{m=Math.max(u+(d.length-1)*n,p),g=Math.min(f,m-(d.length-1)*n),v=!0;while(v){v=!1,s=d.length;while(s--)if(s>0){y=d[s-1],b=d[s];y.pos+y.size>b.pos&&(y.pos-g>s*n?y.pos-=y.size:(y.size+=b.size,y.targets=y.targets.concat(b.targets),d.splice(s,1)),v=!0)}}}s=0,d.forEach((function(t){var i=t.pos;t.targets.forEach((function(){e[s].y=i,i+=n,s++}))}));for(var x={},w=0,_=t;w<_.length;w++){var C=_[w];x[C.get("id")]=C}var A=(Math.max.apply(Math,e.map((function(t){return t.y})))-Math.min.apply(Math,e.map((function(t){return t.y}))))/2;A=Math.max(A,o),e.forEach((function(t){var e=x[t.id],n=e.find((function(t){return"text"===t.get("type")}));if(n&&n.attr("y")!==t.y){var i=A*A,o=Math.pow(Math.abs(t.y-r.y),2);if(i<o)t.x=r.x;else{var s=Math.sqrt(i-o);t.x=a?r.x+s:r.x-s}}e.attr("x",t.x),e.attr("y",t.y),n&&(n.attr("y",t.y),n.attr("x",t.x))}))}function Hh(t,e,n,i){var r=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(r>0){var l=Object(zt["get"])(t[0],"labelHeight",14),c=a+r,u=2*c+2*l,h={start:o.start,end:o.end},d=[[],[]];t.forEach((function(t){t&&(t.x<s.x?d[0].push(t):d[1].push(t))})),d.forEach((function(t,n){var i=u/l;if(t.length>i){t.sort((function(t,e){return e["data.percent"]-t["data.percent"]}));var r=t.splice(i,t.length-i+1);r.forEach((function(t){var n=e.findIndex((function(e){return e.get("id")===t.id}));e[n]&&(e[n].remove(!0),e.splice(n,1))}))}Gh(e,t,l,h,s,c,1===n)}))}Object(zt["each"])(t,(function(t){if(t&&t.labelLine){var e=t.angle,n=zo(s.x,s.y,a,e),i=t.x+Object(zt["get"])(t,"offsetX",0)*(Math.cos(e)>0?1:-1),o=t.y+Object(zt["get"])(t,"offsetY",0)*(Math.sin(e)>0?1:-1),l={x:i-Math.cos(e)*Vh,y:o-Math.sin(e)*Vh},c=t.labelLine.smooth,u=[],h=l.x-s.x,d=l.y-s.y,p=Math.atan(d/h);if(h<0&&(p+=Math.PI),!1===c){Object(zt["isObject"])(t.labelLine)||(t.labelLine={});var f=0;(e<0&&e>-Math.PI/2||e>1.5*Math.PI)&&l.y>n.y&&(f=1),e>=0&&e<Math.PI/2&&l.y>n.y&&(f=1),e>=Math.PI/2&&e<Math.PI&&n.y>l.y&&(f=1),(e<-Math.PI/2||e>=Math.PI&&e<1.5*Math.PI)&&n.y>l.y&&(f=1);var g=r/2>4?4:Math.max(r/2-1,0),m=zo(s.x,s.y,a+g,e),v=zo(s.x,s.y,a+r/2,p),y=0;u.push("M "+n.x+" "+n.y),u.push("L "+m.x+" "+m.y),u.push("A "+s.x+" "+s.y+" 0 "+y+" "+f+" "+v.x+" "+v.y),u.push("L "+l.x+" "+l.y)}else{m=zo(s.x,s.y,a+(r/2>4?4:Math.max(r/2-1,0)),e);var b=n.x<s.x?1:-1;u.push("M "+l.x+" "+l.y);var x=(n.y-s.y)/(n.x-s.x),w=(l.y-s.y)/(l.x-s.x);Math.abs(x-w)>Math.pow(Math.E,-16)&&u.push.apply(u,["C",l.x+4*b,l.y,2*m.x-n.x,2*m.y-n.y,n.x,n.y]),u.push("L "+n.x+" "+n.y)}t.labelLine.path=u.join(" ")}}))}function Wh(t,e,n,i){Object(zt["each"])(e,(function(t){var e=i.minX,n=i.minY,r=i.maxX,o=i.maxY,a=t.getCanvasBBox(),s=a.minX,l=a.minY,c=a.maxX,u=a.maxY,h=a.x,d=a.y,p=a.width,f=a.height,g=h,m=d;(s<e||c<e)&&(g=e),(l<n||u<n)&&(m=n),s>r?g=r-p:c>r&&(g-=c-r),l>o?m=o-f:u>o&&(m-=u-o),g===h&&m===d||Vl(t,g-h,m-d)}))}function Uh(t,e,n,i){Object(zt["each"])(e,(function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minX<r.minX||i.minY<r.minY||i.maxX>r.maxX||i.maxY>r.maxY)&&t.remove(!0)}))}var Zh=100,Yh=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,i=t.yGap,r=void 0===i?8:i;this.xGap=n,this.yGap=r}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.round(t.minX),r=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var l=o;l<=a;l++)if(n[s][l]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),i=Math.round(t.maxX),r=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=i;a+=1)e[a]||(e[a]={});for(a=n;a<=i;a+=this.xGap){for(var s=r;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=r;a<=o;a+=1)e[n][a]=!0,e[i][a]=!0;if(1!==this.xGap)for(a=n;a<=i;a+=1)e[a][r]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function Xh(t,e,n){void 0===n&&(n=Zh);var i,r=-1,o=t.attr(),a=o.x,s=o.y,l=t.getCanvasBBox(),c=Math.sqrt(l.width*l.width+l.height*l.height),u=-r,h=0,d=0,p=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(l))return e.fillGap(l),!0;var f=!1,g=0,m={};while(Math.min(Math.abs(h),Math.abs(d))<c&&g<n)if(i=p(u+=r),h=~~i[0],d=~~i[1],(h||d)&&!m[h+"-"+d]&&(t.attr({x:a+h,y:s+d}),h+d<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),f=!0,m[h+"-"+d]=!0;break}return f}function qh(t,e,n,i){var r=t.getCanvasBBox(),o=r.width,a=r.height,s={x:e,y:n,textAlign:"center"};switch(i){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right";break;default:break}return t.attr(s),t.getCanvasBBox()}function Kh(t,e,n,i){var r=new Yh;Object(zt["each"])(e,(function(t){var e=t.find((function(t){return"text"===t.get("type")}));Xh(e,r)||t.remove(!0)})),r.destroy()}function Qh(t,e,n,i){var r=new Yh;Object(zt["each"])(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),i=n.x,o=n.y,a=!1,s=0;s<=8;s++){var l=qh(e,i,o,s);if(r.hasGap(l)){r.fillGap(l),a=!0;break}}a||t.remove(!0)})),r.destroy()}function Jh(t,e,n){var i={fillOpacity:Object(zt["isNil"])(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(zt["isNil"])(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(zt["isNil"])(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function $h(t,e,n){var i={fillOpacity:0,strokeOpacity:0,opacity:0},r=e.easing,o=e.duration,a=e.delay;t.animate(i,o,r,(function(){t.remove(!0)}),a)}function td(t,e,n){var i,r=e[0],o=e[1];return t.applyToMatrix([r,o,1]),"x"===n?(t.setMatrix(qe["a"].transform(t.getMatrix(),[["t",-r,-o],["s",.01,1],["t",r,o]])),i=qe["a"].transform(t.getMatrix(),[["t",-r,-o],["s",100,1],["t",r,o]])):"y"===n?(t.setMatrix(qe["a"].transform(t.getMatrix(),[["t",-r,-o],["s",1,.01],["t",r,o]])),i=qe["a"].transform(t.getMatrix(),[["t",-r,-o],["s",1,100],["t",r,o]])):"xy"===n&&(t.setMatrix(qe["a"].transform(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])),i=qe["a"].transform(t.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])),i}function ed(t,e,n,i,r){var o,a,s=n.start,l=n.end,c=n.getWidth(),u=n.getHeight();"y"===r?(o=s.x+c/2,a=i.y<s.y?i.y:s.y):"x"===r?(o=i.x>s.x?i.x:s.x,a=s.y+u/2):"xy"===r&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(s.x+l.x)/2,a=(s.y+l.y)/2));var h=td(t,[o,a],r);t.animate({matrix:h},e)}function nd(t,e,n){var i=n.coordinate,r=n.minYPoint;ed(t,e,i,r,"x")}function id(t,e,n){var i=n.coordinate,r=n.minYPoint;ed(t,e,i,r,"y")}function rd(t,e,n){var i=n.coordinate,r=n.minYPoint;ed(t,e,i,r,"xy")}function od(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}function ad(t,e,n){var i=n.toAttrs,r=i.x,o=i.y;delete i.x,delete i.y,t.attr(i),t.animate({x:r,y:o},e)}function sd(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,o=r.points,a=o[0].y-o[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([a,s,1]);var l=qe["a"].transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(l),t.animate({matrix:qe["a"].transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)}function ld(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,a=r.points,s=a[0].y-a[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,s,1]);var l=qe["a"].transform(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(l),t.animate({matrix:qe["a"].transform(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)}var cd=n("9351"),ud=n.n(cd);function hd(t,e){var n,i=ud()(t,e),r=i.startAngle,o=i.endAngle;return!Object(zt["isNumberEqual"])(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!Object(zt["isNumberEqual"])(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(n=[o,r],r=n[0],o=n[1]),Object(zt["isNumberEqual"])(r,1.5*Math.PI)&&(r=-.5*Math.PI),Object(zt["isNumberEqual"])(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function dd(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function pd(t){var e,n,i,r=t.filter((function(t){return"A"===t[0]||"a"===t[0]})),o=r[0],a=r.length>1?r[1]:r[0],s=t.indexOf(o),l=t.indexOf(a),c=dd(t[s-1]),u=dd(t[l-1]),h=hd(c,o),d=h.startAngle,p=h.endAngle,f=hd(u,a),g=f.startAngle,m=f.endAngle;Object(zt["isNumberEqual"])(d,g)&&Object(zt["isNumberEqual"])(p,m)?(n=d,i=p):(n=Math.min(d,g),i=Math.max(p,m));var v=o[1],y=r[r.length-1][1];return v<y?(e=[y,v],v=e[0],y=e[1]):v===y&&(y=0),{startAngle:n,endAngle:i,radius:v,innerRadius:y}}function fd(t,e,n){var i=n.toAttrs,r=n.coordinate,o=i.path,a=o.map((function(t){return t[0]})),s=pd(o),l=s.startAngle,c=s.endAngle,u=s.radius,h=s.innerRadius,d=pd(t.attr("path")),p=d.startAngle,f=d.endAngle,g=r.getCenter(),m=l-p,v=c-f;t.animate((function(t){var e=p+t*m,n=f+t*v;return Lt(Lt({},i),{path:Object(zt["isEqual"])(a,["M","A","A","Z"])?Go(g.x,g.y,u,e,n):Vo(g.x,g.y,u,e,n,h)})}),Lt(Lt({},e),{callback:function(){t.attr("path",o)}}))}function gd(t,e,n){var i=ea(n.coordinate,20),r=i.type,o=i.startState,a=i.endState,s=t.setClip({type:r,attrs:o});s.animate(a,Lt(Lt({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),s.remove(!0)}}))}function md(t,e,n){if(t.isGroup())Object(zt["each"])(t.getChildren(),(function(t){md(t,e,n)}));else{var i=t.getBBox(),r=(i.minX+i.maxX)/2,o=(i.minY+i.maxY)/2;if(t.applyToMatrix([r,o,1]),"zoomIn"===n){var a=qe["a"].transform(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]]);t.setMatrix(a),t.animate({matrix:qe["a"].transform(t.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])},e)}else t.animate({matrix:qe["a"].transform(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])},Lt(Lt({},e),{callback:function(){t.remove(!0)}}))}}function vd(t,e,n){md(t,e,"zoomIn")}function yd(t,e,n){md(t,e,"zoomOut")}function bd(t){return[Nt.TOP,Nt.BOTTOM].includes(t)?{offsetX:0,offsetY:t===Nt.TOP?-8:8,style:{textAlign:"center",textBaseline:t===Nt.TOP?"bottom":"top"}}:[Nt.LEFT,Nt.RIGHT].includes(t)?{offsetX:t===Nt.LEFT?-8:8,offsetY:0,style:{textAlign:t===Nt.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function xd(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var wd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.getDefaultCfg=function(){return Object(zt["deepMix"])({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=.5,i={x:.5,y:.5},r=2*Math.PI/t,o=-1*Math.PI/2+r*e,a=n/(1+1/Math.sin(r/2)),s=xd(i,n-a,o),l=5*Math.PI/4,c=1*Math.PI/4;return{start:xd(s,a,l),end:xd(s,a,c)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,i=n.fields,r=n.type,o=i[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),s=a.length,l=[];return a.forEach((function(n,i){var c=[{field:o,value:n,values:a}],u=Object(zt["filter"])(t,e.getFacetDataFilter(c)),h={type:r,data:u,region:e.getRegion(s,i),columnValue:n,columnField:o,columnIndex:i,columnValuesLength:s,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};l.push(h)})),l},e.prototype.getXAxisOption=function(t,e,n,i){return n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;Object(zt["each"])(this.facets,(function(e){var n=e.columnValue,i=e.view,r=Object(zt["get"])(t.cfg.title,"formatter"),o=Object(zt["deepMix"])({position:["50%","0%"],content:r?r(n):n},bd(Nt.TOP),t.cfg.title);i.annotation().text(o)}))},e}(Mo),_d=wd,Cd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.getDefaultCfg=function(){return Object(zt["deepMix"])({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=this.cfg.cols,r=n[0];if(!r)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,r),a=o.length;i=i||a;var s=this.getPageCount(a,i),l=[];return o.forEach((function(n,c){var u=e.getRowCol(c,i),h=u.row,d=u.col,p=[{field:r,value:n,values:o}],f=Object(zt["filter"])(t,e.getFacetDataFilter(p)),g={type:e.cfg.type,data:f,region:e.getRegion(s,i,d,h),columnValue:n,rowValue:n,columnField:r,rowField:null,columnIndex:d,rowIndex:h,columnValuesLength:i,rowValuesLength:s,total:a};l.push(g)})),l},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?Lt(Lt({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Lt(Lt({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(zt["each"])(this.facets,(function(e){var n=e.columnValue,i=e.view,r=Object(zt["get"])(t.cfg.title,"formatter"),o=Object(zt["deepMix"])({position:["50%","0%"],content:r?r(n):n},bd(Nt.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){var n=Math.floor(t/e),i=t%e;return{row:n,col:i}},e}(Mo),Ad=Cd,Id=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.getDefaultCfg=function(){return Object(zt["deepMix"])({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:Lt({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Lt({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,i=e.type,r=n.length,o=r,a=[],s=0;s<o;s++)for(var l=n[s],c=0;c<r;c++){var u=n[c],h={type:i,data:t,region:this.getRegion(r,o,s,c),columnValue:l,rowValue:u,columnField:l,rowField:u,columnIndex:s,rowIndex:c,columnValuesLength:o,rowValuesLength:r};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Lt(Lt({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Lt(Lt({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(zt["each"])(this.facets,(function(e,n){var i=e.columnIndex,r=e.rowIndex,o=e.columnValuesLength,a=(e.rowValuesLength,e.columnValue),s=e.rowValue,l=e.view;if(0===r){var c=Object(zt["get"])(t.cfg.columnTitle,"formatter"),u=Object(zt["deepMix"])({position:["50%","0%"],content:c?c(a):a},bd(Nt.TOP),t.cfg.columnTitle);l.annotation().text(u)}if(i===o-1){c=Object(zt["get"])(t.cfg.rowTitle,"formatter"),u=Object(zt["deepMix"])({position:["100%","50%"],content:c?c(s):s},bd(Nt.RIGHT),t.cfg.rowTitle);l.annotation().text(u)}}))},e}(Mo),Sd=Id,Md=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.getDefaultCfg=function(){return Object(zt["deepMix"])({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2===0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!==0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,i=this,r=this.cfg.fields[0],o=[],a=1,s=1,l=[""],c=[""];return this.cfg.transpose?(e=r,l=this.getFieldValues(t,e).slice(0,2),a=l.length):(n=r,c=this.getFieldValues(t,n).slice(0,2),s=c.length),l.forEach((function(r,u){c.forEach((function(h,d){var p=[{field:e,value:r,values:l},{field:n,value:h,values:c}],f=Object(zt["filter"])(t,i.getFacetDataFilter(p)),g={type:i.cfg.type,data:f,region:i.getRegion(s,a,u,d),columnValue:r,rowValue:h,columnField:e,rowField:n,columnIndex:u,rowIndex:d,columnValuesLength:a,rowValuesLength:s};o.push(g)}))})),o},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?Lt(Lt({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;Object(zt["each"])(this.facets,(function(e,n){var i=e.columnValue,r=e.rowValue,o=e.view,a=Object(zt["get"])(t.cfg.title,"formatter");if(t.cfg.transpose){var s=Object(zt["deepMix"])({position:["50%","0%"],content:a?a(i):i},bd(Nt.TOP),t.cfg.title);o.annotation().text(s)}else{s=Object(zt["deepMix"])({position:["100%","50%"],content:a?a(r):r},bd(Nt.RIGHT),t.cfg.title);o.annotation().text(s)}}))},e}(Mo),kd=Md,Ed=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(zt["deepMix"])({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:Lt({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Lt({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=n[0],r=n[1],o=[],a=1,s=1,l=[""],c=[""];return i&&(l=this.getFieldValues(t,i),a=l.length),r&&(c=this.getFieldValues(t,r),s=c.length),l.forEach((function(n,u){c.forEach((function(h,d){var p=[{field:i,value:n,values:l},{field:r,value:h,values:c}],f=Object(zt["filter"])(t,e.getFacetDataFilter(p)),g={type:e.cfg.type,data:f,region:e.getRegion(s,a,u,d),columnValue:n,rowValue:h,columnField:i,rowField:r,columnIndex:u,rowIndex:d,columnValuesLength:a,rowValuesLength:s};o.push(g)}))})),o},e.prototype.renderTitle=function(){var t=this;Object(zt["each"])(this.facets,(function(e,n){var i=e.columnIndex,r=e.rowIndex,o=e.columnValuesLength,a=e.columnValue,s=e.rowValue,l=e.view;if(0===r){var c=Object(zt["get"])(t.cfg.columnTitle,"formatter"),u=Object(zt["deepMix"])({position:["50%","0%"],content:c?c(a):a},bd(Nt.TOP),t.cfg.columnTitle);l.annotation().text(u)}if(i===o-1){c=Object(zt["get"])(t.cfg.rowTitle,"formatter"),u=Object(zt["deepMix"])({position:["100%","50%"],content:c?c(s):s},bd(Nt.RIGHT),t.cfg.rowTitle);l.annotation().text(u)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Lt(Lt({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?Lt(Lt({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Lt(Lt({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?Lt(Lt({},n),{title:null}):n},e}(Mo),Td=Ed,Od=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return jt(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(Vt.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(zt["deepMix"])({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){var e=this.cfg.fields;if(!e.length)throw new Error("Please specify for the fields for rootFacet!");var n=[],i={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return n.push(i),i.children=this.getChildFacets(t,1,n),this.setRegion(n),n},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,i){var r=1/e,o=1/t,a={x:r*n,y:o*i},s={x:a.x+r,y:a.y+2*o/3};return{start:a,end:s}},e.prototype.forceColIndex=function(t){var e=this,n=[],i=0;t.forEach((function(t){e.isLeaf(t)&&(n.push(t),t.columnIndex=i,i++)})),n.forEach((function(t){t.columnValuesLength=n.length}));for(var r=this.cfg.fields.length,o=r-1;o>=0;o--)for(var a=this.getFacetsByLevel(t,o),s=0,l=a;s<l.length;s++){var c=l[s];this.isLeaf(c)||(c.originColIndex=c.columnIndex,c.columnIndex=this.getRegionIndex(c.children),c.columnValuesLength=n.length)}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0],n=t[t.length-1];return(n.columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var i=this,r=this.cfg.fields,o=r.length;if(!(o<e)){var a=[],s=r[e-1],l=this.getFieldValues(t,s);return l.forEach((function(r,o){var c=[{field:s,value:r,values:l}],u=t.filter(i.getFacetDataFilter(c));if(u.length){var h={type:i.cfg.type,data:u,region:null,columnValue:r,rowValue:"",columnField:s,rowField:"",columnIndex:o,rowValuesLength:i.getRows(),columnValuesLength:1,rowIndex:e,children:i.getChildFacets(u,e+1,n)};a.push(h),n.push(h)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(zt["each"])(this.facets,(function(e){var n=e.columnValue,i=e.view,r=Object(zt["get"])(t.cfg.title,"formatter"),o=Object(zt["deepMix"])({position:["50%","0%"],content:r?r(n):n},bd(Nt.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,i=t.view,r=i.coordinateBBox,o={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,i={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},r={x:o.x,y:o.y+(i.y-o.y)/2},a={x:i.x,y:r.y};n.drawLine([o,r,a,i])}))},e.prototype.getPath=function(t){var e=[],n=this.cfg.line.smooth;return n?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:Object(zt["assign"])({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Lt(Lt({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?Lt(Lt({},n),{title:null,label:null}):n},e}(Mo),Pd=Od,jd=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(Bt.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(Bt.BG).addGroup(),n.option=[],n}return jt(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){var t=this,e=this.getComponents(),n=function(e){var n=e.component,i=e.extra,r=i.type,o=t.getAnnotationTheme(r);n.update(t.getAnnotationCfg(r,i,o))},i=function(e){var n=t.createAnnotation(e);n&&(n.component.init(),"regionFilter"===e.type&&n.component.render(),t.cache.set(e,n))};e.length?Object(zt["each"])(e,(function(e){var i=e.component;"regionFilter"===i.get("type")?t.view.getRootView().once(Vt.AFTER_RENDER,(function(){n(e)})):n(e)})):Object(zt["each"])(this.option,(function(e){"regionFilter"===e.type?t.view.getRootView().once(Vt.AFTER_RENDER,(function(){i(e)})):i(e)}))},e.prototype.render=function(){},e.prototype.update=function(){var t=this,e=new WeakMap,n=function(n){var i=n.type,r=t.getAnnotationTheme(i),o=t.getAnnotationCfg(i,n,r),a=t.cache.get(n);if(a)Xo(o,["container"]),a.component.update(o),e.set(n,!0);else{var s=t.createAnnotation(n);s&&(s.component.init(),"regionFilter"===n.type&&s.component.render(),t.cache.set(n,s),e.set(n,!0))}};this.view.once(Vt.AFTER_RENDER,(function(){Object(zt["each"])(t.option,(function(t){"regionFilter"===t.type&&n(t)}));var i=new Map;t.cache.forEach((function(t,n){e.has(n)?i.set(n,t):t.component.destroy()})),t.cache=i})),Object(zt["each"])(this.option,(function(t){"regionFilter"!==t.type&&n(t)}))},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.cache.clear(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.createAnnotation=function(t){var e=t.type,n=i[Object(zt["upperFirst"])(e)];if(n){var r=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,r),a=new n(o);return{component:a,layer:this.isTop(o)?Bt.FORE:Bt.BG,direction:Nt.NONE,type:Ft.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(Lt({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(Lt({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(Lt({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(Lt({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(Lt({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(Lt({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(Lt({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(Lt({type:"regionFilter"},t))},e.prototype.parsePosition=function(t){var e=this.view.getXScale(),n=this.view.getScalesByDim("y"),i=Object(zt["isFunction"])(t)?t.call(null,e,n):t,r=0,o=0;if(Object(zt["isArray"])(i)){var a=i[0],s=i[1];if(Object(zt["isString"])(a)&&-1!==a.indexOf("%")&&!isNaN(a.slice(0,-1)))return this.parsePercentPosition(i);r=this.getNormalizedValue(a,e),o=this.getNormalizedValue(s,Object.values(n)[0])}else if(!Object(zt["isNil"])(i))for(var l=0,c=Object(zt["keys"])(i);l<c.length;l++){var u=c[l],h=i[u];u===e.field&&(r=this.getNormalizedValue(h,e)),n[u]&&(o=this.getNormalizedValue(h,n[u]))}return this.view.getCoordinate().convert({x:r,y:o})},e.prototype.getRegionPoints=function(t,e){var n,i=this,r=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=r.field,l=this.view.getData(),c=Object(zt["isArray"])(t)?t[0]:t[s],u=Object(zt["isArray"])(e)?e[0]:e[s],h=[];return Object(zt["each"])(l,(function(t,e){if(t[s]===c&&(n=e),e>=n){var r=i.parsePosition([t[s],t[a.field]]);r&&h.push(r)}if(t[s]===u)return!1})),h},e.prototype.getNormalizedValue=function(t,e){var n,i;switch(t){case"start":n=0;break;case"end":n=1;break;case"median":i=e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2,n=e.scale(i);break;case"min":case"max":i=e.isCategory?"min"===t?0:e.values.length-1:e[t],n=e.scale(i);break;default:n=e.scale(t)}return n},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,i=this.view.getCoordinate(),r=i.start,o=i.end,a={x:Math.min(r.x,o.x),y:Math.min(r.y,o.y)},s=i.getWidth()*e+a.x,l=i.getHeight()*n+a.y;return{x:s,y:l}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,i=t.getWidth(),r=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+i,maxY:o.y+r,width:i,height:r}},e.prototype.getAnnotationCfg=function(t,e,n){var i=this.view.getCoordinate(),r={};if(Object(zt["isNil"])(e))return null;if("arc"===t){var o=e,a=o.start,s=o.end,l=this.parsePosition(a),c=this.parsePosition(s),u=ta(i,l),h=ta(i,c);u>h&&(h=2*Math.PI+h),r={center:i.getCenter(),radius:Jo(i,l),startAngle:u,endAngle:h}}else if("image"===t){var d=e;a=d.start,s=d.end;r={start:this.parsePosition(a),end:this.parsePosition(s),src:e.src}}else if("line"===t){var p=e;a=p.start,s=p.end;r={start:this.parsePosition(a),end:this.parsePosition(s),text:Object(zt["get"])(e,"text",null)}}else if("region"===t){var f=e;a=f.start,s=f.end;r={start:this.parsePosition(a),end:this.parsePosition(s)}}else if("text"===t){var g=this.view.getData(),m=e,v=m.position,y=m.content,b=Dt(m,["position","content"]),x=y;Object(zt["isFunction"])(y)&&(x=y(g)),r=Lt(Lt(Lt({},this.parsePosition(v)),b),{content:x})}else if("dataMarker"===t){var w=e,_=(v=w.position,w.point),C=w.line,A=w.text,I=w.autoAdjust,S=w.direction;r=Lt(Lt({},this.parsePosition(v)),{coordinateBBox:this.getCoordinateBBox(),point:_,line:C,text:A,autoAdjust:I,direction:S})}else if("dataRegion"===t){var M=e,k=(a=M.start,s=M.end,M.region),E=(A=M.text,M.lineLength);r={points:this.getRegionPoints(a,s),region:k,text:A,lineLength:E}}else if("regionFilter"===t){var T=e,O=(a=T.start,s=T.end,T.apply),P=T.color,j=this.view.geometries,L=[],D=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return D(t)})):L.push(t))};Object(zt["each"])(j,(function(t){O?Object(zt["contains"])(O,t.type)&&Object(zt["each"])(t.elements,(function(t){D(t.shape)})):Object(zt["each"])(t.elements,(function(t){D(t.shape)}))})),r={color:P,shapes:L,start:this.parsePosition(a),end:this.parsePosition(s)}}var R=Object(zt["deepMix"])({},n,Lt(Lt({},r),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return R.container=this.getComponentContainer(R),R.animate=this.view.getOptions().animate&&R.animate&&Object(zt["get"])(e,"animate",R.animate),R.animateOption=Object(zt["deepMix"])({},dl,R.animateOption,e.animateOption),R},e.prototype.isTop=function(t){return Object(zt["get"])(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(zt["get"])(this.view.getTheme(),["components","annotation",t],{})},e}(Hs),Ld=jd;function Dd(t,e){return Object(zt["get"])(t,["components","axis",e,"grid"],{})}function Rd(t,e,n,i){var r=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(i)r.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var l=e.value,c=(l+s)/2;r.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]})}return o}),o[0]),r}function Bd(t,e,n,i,r){var o=e.values.length,a=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,l=n.value,c=(s+l)/2;return"x"===r?a.push({points:[t.convert({x:i?l:c,y:0}),t.convert({x:i?l:c,y:1})]}):a.push({points:Object(zt["map"])(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?l:c})}))}),n}),s[0]),a}function Nd(t,e){var n=Object(zt["get"])(e,"grid");if(null===n)return!1;var i=Object(zt["get"])(t,"grid");return!(void 0===n&&null===i)}var Fd=["container"],zd=Lt(Lt({},dl),{appear:null}),Vd=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(Bt.BG).addGroup(),n.axisContainer=n.view.getLayer(Bt.BG).addGroup(),n}return jt(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();Object(zt["each"])(this.getComponents(),(function(n){var i,r=n.component,o=n.direction,a=n.type,s=n.extra,l=s.dim,c=s.scale,u=s.alignTick;if(a===Ft.AXIS)e.isPolar?"x"===l?i=e.isTransposed?bo(e,o):Co(e):"y"===l&&(i=e.isTransposed?Co(e):bo(e,o)):i=bo(e,o);else if(a===Ft.GRID)if(e.isPolar){var h=void 0;h=e.isTransposed?"x"===l?Bd(e,t.view.getYScales()[0],c,u,l):Rd(e,c,l,u):"x"===l?Rd(e,c,l,u):Bd(e,t.view.getXScale(),c,u,l),i={items:h,center:t.view.getCoordinate().getCenter()}}else i={items:Rd(e,c,l,u)};r.update(i)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,i){t.has(i)?e.set(i,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.axisContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.axisContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=Ao(this.option,e.field);if(!1!==n){var i=Io(n,Nt.BOTTOM),r=Bt.BG,o="x",a=this.view.getCoordinate(),s=this.getId("axis",e.field),l=this.getId("grid",e.field);if(a.isRect){var c=this.cache.get(s);if(c){var u=this.getLineAxisCfg(e,n,i);Xo(u,Fd),c.component.update(u),t.set(s,c)}else c=this.createLineAxis(e,n,r,i,o),this.cache.set(s,c),t.set(s,c);var h=this.cache.get(l);if(h){u=this.getLineGridCfg(e,n,i,o);Xo(u,Fd),h.component.update(u),t.set(l,h)}else h=this.createLineGrid(e,n,r,i,o),h&&(this.cache.set(l,h),t.set(l,h))}else if(a.isPolar){c=this.cache.get(s);if(c){u=a.isTransposed?this.getLineAxisCfg(e,n,Nt.RADIUS):this.getCircleAxisCfg(e,n,i);Xo(u,Fd),c.component.update(u),t.set(s,c)}else{if(a.isTransposed){if(Object(zt["isUndefined"])(n))return;c=this.createLineAxis(e,n,r,Nt.RADIUS,o)}else c=this.createCircleAxis(e,n,r,i,o);this.cache.set(s,c),t.set(s,c)}h=this.cache.get(l);if(h){u=a.isTransposed?this.getCircleGridCfg(e,n,Nt.RADIUS,o):this.getLineGridCfg(e,n,Nt.CIRCLE,o);Xo(u,Fd),h.component.update(u),t.set(l,h)}else{if(a.isTransposed){if(Object(zt["isUndefined"])(n))return;h=this.createCircleGrid(e,n,r,Nt.RADIUS,o)}else h=this.createLineGrid(e,n,r,Nt.CIRCLE,o);h&&(this.cache.set(l,h),t.set(l,h))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(zt["each"])(n,(function(n,i){if(n&&!n.isIdentity){var r=n.field,o=Ao(e.option,r);if(!1!==o){var a=Bt.BG,s="y",l=e.getId("axis",r),c=e.getId("grid",r),u=e.view.getCoordinate();if(u.isRect){var h=Io(o,0===i?Nt.LEFT:Nt.RIGHT),d=e.cache.get(l);if(d){var p=e.getLineAxisCfg(n,o,h);Xo(p,Fd),d.component.update(p),t.set(l,d)}else d=e.createLineAxis(n,o,a,h,s),e.cache.set(l,d),t.set(l,d);var f=e.cache.get(c);if(f){p=e.getLineGridCfg(n,o,h,s);Xo(p,Fd),f.component.update(p),t.set(c,f)}else f=e.createLineGrid(n,o,a,h,s),f&&(e.cache.set(c,f),t.set(c,f))}else if(u.isPolar){d=e.cache.get(l);if(d){p=u.isTransposed?e.getCircleAxisCfg(n,o,Nt.CIRCLE):e.getLineAxisCfg(n,o,Nt.RADIUS);Xo(p,Fd),d.component.update(p),t.set(l,d)}else{if(u.isTransposed){if(Object(zt["isUndefined"])(o))return;d=e.createCircleAxis(n,o,a,Nt.CIRCLE,s)}else d=e.createLineAxis(n,o,a,Nt.RADIUS,s);e.cache.set(l,d),t.set(l,d)}f=e.cache.get(c);if(f){p=u.isTransposed?e.getLineGridCfg(n,o,Nt.CIRCLE,s):e.getCircleGridCfg(n,o,Nt.RADIUS,s);Xo(p,Fd),f.component.update(p),t.set(c,f)}else{if(u.isTransposed){if(Object(zt["isUndefined"])(o))return;f=e.createLineGrid(n,o,a,Nt.CIRCLE,s)}else f=e.createCircleGrid(n,o,a,Nt.RADIUS,s);f&&(e.cache.set(c,f),t.set(c,f))}}}}}))},e.prototype.createLineAxis=function(t,e,n,i,r){var o={component:new ro(this.getLineAxisCfg(t,e,i)),layer:n,direction:i===Nt.RADIUS?Nt.NONE:i,type:Ft.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,i,r){var o=this.getLineGridCfg(t,e,i,r);if(o){var a={component:new ao(o),layer:n,direction:Nt.NONE,type:Ft.GRID,extra:{dim:r,scale:t,alignTick:Object(zt["get"])(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,i,r){var o={component:new oo(this.getCircleAxisCfg(t,e,i)),layer:n,direction:i,type:Ft.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,i,r){var o=this.getCircleGridCfg(t,e,i,r);if(o){var a={component:new so(o),layer:n,direction:Nt.NONE,type:Ft.GRID,extra:{dim:r,scale:t,alignTick:Object(zt["get"])(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var i=this.axisContainer,r=this.view.getCoordinate(),o=bo(r,n),a=So(t,e),s=_o(this.view.getTheme(),n),l=Object(zt["get"])(e,["title"])?Object(zt["deepMix"])({title:{style:{text:a}}},e):e,c=Object(zt["deepMix"])(Lt(Lt({container:i},o),{ticks:t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*wo(o,r.getCenter()):wo(o,r.getCenter())}),s,l),u=this.getAnimateCfg(c),h=u.animate,d=u.animateOption;c.animateOption=d,c.animate=h;var p=xo(o),f=Object(zt["get"])(c,"verticalLimitLength",p?1/3:.5);if(f<=1){var g=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");c.verticalLimitLength=f*(p?g:m)}return c},e.prototype.getLineGridCfg=function(t,e,n,i){if(Nd(_o(this.view.getTheme(),n),e)){var r=Dd(this.view.getTheme(),n),o=Object(zt["deepMix"])({container:this.gridContainer},r,Object(zt["get"])(e,"grid"),this.getAnimateCfg(e));return o.items=Rd(this.view.getCoordinate(),t,i,Object(zt["get"])(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=this.axisContainer,r=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}}));t.isCategory||Math.abs(r.endAngle-r.startAngle)!==2*Math.PI||o.pop();var a=So(t,e),s=_o(this.view.getTheme(),Nt.CIRCLE),l=Object(zt["get"])(e,["title"])?Object(zt["deepMix"])({title:{style:{text:a}}},e):e,c=Object(zt["deepMix"])(Lt(Lt({container:i},Co(this.view.getCoordinate())),{ticks:o,verticalFactor:1}),s,l),u=this.getAnimateCfg(c),h=u.animate,d=u.animateOption;return c.animate=h,c.animateOption=d,c},e.prototype.getCircleGridCfg=function(t,e,n,i){if(Nd(_o(this.view.getTheme(),n),e)){var r=Dd(this.view.getTheme(),Nt.RADIUS),o=Object(zt["deepMix"])({container:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,Object(zt["get"])(e,"grid"),this.getAnimateCfg(e)),a=Object(zt["get"])(o,"alignTick",!0),s="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=Bd(this.view.getCoordinate(),s,t,a,i),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return t+"-"+e+"-"+n.type},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(zt["get"])(t,"animate"),animateOption:t&&t.animateOption?Object(zt["deepMix"])({},zd,t.animateOption):zd}},e}(Hs),Gd=Vd;function Hd(t,e,n){return n===Nt.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===Nt.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===Nt.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===Nt.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===Nt.TOP_LEFT||n===Nt.LEFT_TOP?[t.tl.x,t.tl.y]:n===Nt.TOP_RIGHT||n===Nt.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===Nt.BOTTOM_LEFT||n===Nt.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===Nt.BOTTOM_RIGHT||n===Nt.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function Wd(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var r=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,Rt([e],r)).join("")}else i=t.mapping(e).join("");return i||n}function Ud(t){var e=t.symbol;Object(zt["isString"])(e)&&$u[e]&&(t.symbol=$u[e])}function Zd(t){return t.startsWith(Nt.LEFT)||t.startsWith(Nt.RIGHT)?"vertical":"horizontal"}function Yd(t,e,n,i,r){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,s=e.getAttribute("color"),l=e.getAttribute("shape"),c=t.getTheme().defaultColor,u=e.coordinate.isPolar;return o.getTicks().map((function(n){var h,d=n.text,p=n.value,f=d,g=o.invert(p),m=0===t.filterFieldData(a,[(h={},h[a]=g,h)]).length,v=Wd(s,g,c),y=Wd(l,g,"point"),b=e.getShapeMarker(y,{color:v,isInPolar:u});return b=Object(zt["deepMix"])({},i,b,r),Ud(b),{id:g,name:f,value:g,marker:b,unchecked:m}}))}return[]}function Xd(t,e,n){return n.map((function(n){var i=Object(zt["deepMix"])({},t,e,n.marker);return Ud(i),n.marker=i,n}))}function qd(t,e){return Object(zt["isBoolean"])(t)?!1!==t&&{}:Object(zt["get"])(t,[e],t)}function Kd(t){return Object(zt["get"])(t,"position",Nt.BOTTOM)}var Qd=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(Bt.FORE).addGroup(),n}return jt(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){var t=this;this.option=this.view.getOptions().legends;var e=function(e,n,i){var r=t.createFieldLegend(e,n,i);r&&(r.component.init(),t.components.push(r))};if(Object(zt["get"])(this.option,"custom")){var n=this.createCustomLegend(void 0,void 0,void 0,this.option);if(n){n.init();var i=Bt.FORE,r=Kd(this.option);this.components.push({id:"global-custom",component:n,layer:i,direction:r,type:Ft.LEGEND,extra:void 0})}}else this.loopLegends(e)},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox;var e=Object(zt["get"])(this.view.getTheme(),["components","legend","margin"],[0,0,0,0]);Object(zt["each"])(this.components,(function(n){var i=n.component,r=n.direction,o=Zd(r),a=t.getCategoryLegendSizeCfg(o),s=i.get("maxWidth"),l=i.get("maxHeight");i.update({maxWidth:Math.min(a.maxWidth,s||0),maxHeight:Math.min(a.maxHeight,l||0)});var c=i.getLayoutBBox(),u=new da(c.x,c.y,c.width,c.height),h=Hd(t.view.viewBBox,u,r),d=h[0],p=h[1],f=Hd(t.layoutBBox,u,r),g=f[0],m=f[1],v=0,y=0;r.startsWith("top")||r.startsWith("bottom")?(v=d,y=m):(v=g,y=p),r.indexOf("left")>=0&&(v+=e[3]),r.indexOf("right")>=0&&(v-=e[1]),r.indexOf("top")>=0&&(y+=e[0]),r.indexOf("bottom")>=0&&(y-=e[2]),i.update({x:v,y:y}),t.layoutBBox=t.layoutBBox.cut(u,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={},n=function(n,i,r){var o=t.getId(r.field),a=t.getComponentById(o);if(a){var s=void 0,l=qd(t.option,r.field);!1!==l&&(Object(zt["get"])(l,"custom")?s=t.getCategoryCfg(n,i,r,l,!0):r.isLinear?s=t.getContinuousCfg(n,i,r,l):r.isCategory&&(s=t.getCategoryCfg(n,i,r,l))),s&&(Xo(s,["container"]),a.direction=Kd(l),a.component.update(s),e[o]=!0)}else{var c=t.createFieldLegend(n,i,r);c&&(c.component.init(),t.components.push(c),e[o]=!0)}};if(Object(zt["get"])(this.option,"custom")){var i="global-custom",r=this.getComponentById(i);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Xo(o,["container"]),r.component.update(o),e[i]=!0}else{var a=this.createCustomLegend(void 0,void 0,void 0,this.option);if(a){a.init();var s=Bt.FORE,l=Kd(this.option);this.components.push({id:i,component:a,layer:s,direction:l,type:Ft.LEGEND,extra:void 0}),e[i]=!0}}}else this.loopLegends(n);var c=[];Object(zt["each"])(this.getComponents(),(function(t){e[t.id]?c.push(t):t.component.destroy()})),this.components=c},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Object(zt["each"])(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){var e=this.view.getRootView()===this.view;if(e){var n=this.getGeometries(this.view),i={};Object(zt["each"])(n,(function(e){var n=e.getGroupAttributes();Object(zt["each"])(n,(function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(t(e,n,r),i[r.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var i,r=qd(this.option,n.field),o=Bt.FORE,a=Kd(r);if(!1!==r&&(Object(zt["get"])(r,"custom")?i=this.createCustomLegend(t,e,n,r):n.isLinear?i=this.createContinuousLegend(t,e,n,r):n.isCategory&&(i=this.createCategoryLegend(t,e,n,r))),i)return i.set("field",n.field),{id:this.getId(n.field),component:i,layer:o,direction:a,type:Ft.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i,!0);return new lo(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,i);return new co(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new lo(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var r=n.getTicks(),o=Object(zt["find"])(r,(function(t){return 0===t.value})),a=Object(zt["find"])(r,(function(t){return 1===t.value})),s=r.map((function(t){var i=t.value,r=t.tickValue,o=e.mapping(n.invert(i)).join("");return{value:r,attrValue:o,color:o,scaleValue:i}}));o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var l={min:Object(zt["head"])(s).value,max:Object(zt["last"])(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=s.map((function(t){return t.attrValue})));var c=this.container,u=Kd(i),h=Zd(u),d=Object(zt["get"])(i,"title");return d&&(d=Object(zt["deepMix"])({text:mo(n)},d)),l.container=c,l.layout=h,l.title=d,l.animateOption=dl,this.mergeLegendCfg(l,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,r){var o=this.container,a=Object(zt["get"])(i,"position",Nt.BOTTOM),s=Object(zt["get"])(this.view.getTheme(),["components","legend",a,"marker"]),l=Object(zt["get"])(i,"marker"),c=Zd(a),u=r?Xd(s,l,i.items):Yd(this.view,t,e,s,l),h=Object(zt["get"])(i,"title");h&&(h=Object(zt["deepMix"])({text:n?mo(n):""},h));var d=this.getCategoryLegendSizeCfg(c);d.container=o,d.layout=c,d.items=u,d.title=h,d.animateOption=dl;var p=this.mergeLegendCfg(d,i,a);p.reversed&&p.items.reverse();var f=Object(zt["get"])(p,"maxItemWidth");return f&&f<=1&&(p.maxItemWidth=this.view.viewBBox.width*f),p},e.prototype.mergeLegendCfg=function(t,e,n){var i=n.split("-")[0],r=Object(zt["get"])(this.view.getTheme(),["components","legend",i],{});return Object(zt["deepMix"])({},r,t,e)},e.prototype.getId=function(t){return this.name+"-"+t},e.prototype.getComponentById=function(t){return Object(zt["find"])(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t){var e=this.view.viewBBox,n=e.width,i=e.height;return"vertical"===t?{maxWidth:n*$t,maxHeight:i}:{maxWidth:n,maxHeight:i*$t}},e}(Hs),Jd=Qd,$d=function(t){function e(e){var n=t.call(this,e)||this;return n.onValueChanged=function(t){var e=t[0],i=t[1];n.updateMinMaxText(e,i),n.view.render(!0)},n.container=n.view.getLayer(Bt.FORE).addGroup(),n}return jt(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){if(this.option=this.view.getOptions().slider,this.option){this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onValueChanged));var t=this.slider.component.get("start")||0,e=this.slider.component.get("end")||1;this.updateMinMaxText(t,e)}else this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){if(this.slider){var t=this.view.coordinateBBox.width,e=this.slider.component.getLayoutBBox(),n=new da(e.x,e.y,Math.min(e.width,t),e.height),i=Hd(this.view.viewBBox,n,Nt.BOTTOM),r=(i[0],i[1]),o=Hd(this.view.coordinateBBox,n,Nt.BOTTOM),a=o[0];o[1];this.slider.component.update({x:a,y:r,width:t})}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new eo(Lt({container:this.container},t));return e.init(),{component:e,layer:Bt.FORE,direction:Nt.BOTTOM,type:Ft.OTHER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();return Xo(t,["x","y","width","start","end","minText","maxText"]),this.slider.component.update(t),this.slider},e.prototype.getSliderCfg=function(){if(Object(zt["isObject"])(this.option)){var t=Lt({data:this.getData()},Object(zt["get"])(this.option,"trendCfg",{})),e=0,n=0,i=this.view.coordinateBBox.width,r=Object(zt["deepMix"])({},{x:e,y:n,width:i},this.option);return Lt(Lt({},r),{trendCfg:t})}return{}},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var i=n[0],r=i.field,o=i.ticks;return t.reduce((function(t,n){return n[r]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.updateMinMaxText=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=Object(zt["size"])(n);if(i&&r){var o=i.field,a=n.reduce((function(t,e){return t.includes(e[o])||t.push(e[o]),t}),[]),s=Object(zt["size"])(a),l=Math.floor(t*(s-1)),c=Math.floor(e*(s-1)),u=Object(zt["get"])(a,[l]),h=Object(zt["get"])(a,[c]),d=this.getSliderCfg().formatter;d&&(u=d(u,n[l],l),h=d(h,n[c],c)),this.slider.component.update({minText:u,maxText:h,start:t,end:e}),this.view.filter(i.field,(function(t,e){var n=a.indexOf(t);return!(n>-1)||Zo(n,l,c)}))}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e}(Hs),tp=$d;function ep(t){for(var e=[],n=function(n){var i=t[n],r=Object(zt["find"])(e,(function(t){return t.color===i.color&&t.name===i.name&&t.value===i.value&&t.title===i.title}));r||e.push(i)},i=0;i<t.length;i++)n(i);return e}var np=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return jt(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){var t=this.view.getOptions().tooltip;return!1!==t},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var i=this.getTitle(n),r={x:n[0].x,y:n[0].y};e.emit("tooltip:show",Lt({items:n,title:i},t));var o=this.getTooltipCfg(),a=o.follow,s=o.showMarkers,l=o.showCrosshairs,c=o.showContent,u=o.marker,h=this.items,d=this.title;if(Object(zt["isEqual"])(d,i)&&Object(zt["isEqual"])(h,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",Lt({items:n,title:i},t)),c&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(zt["mix"])({},o,{items:n,title:i},a?t:{})),this.tooltip.show()),s&&this.renderTooltipMarkers(n,u)),this.items=n,this.title=i,l){var p=Object(zt["get"])(o,["crosshairs","follow"],!1);this.renderCrosshairs(p?t:r,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){var t=this.getTooltipCfg().follow;if(t){var e=this.tooltipMarkersGroup;e&&e.hide();var n=this.xCrosshair,i=this.yCrosshair;n&&n.hide(),i&&i.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",{}),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this,e=t.tooltip,n=t.xCrosshair,i=t.yCrosshair,r=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),i&&i.clear(),r&&r.clear()},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,n=e.tooltip,i=e.tooltipMarkersGroup,r=e.xCrosshair,o=e.yCrosshair;t?(n&&n.show(),i&&i.show(),r&&r.show(),o&&o.show()):(n&&n.hide(),i&&i.hide(),r&&r.hide(),o&&o.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){e=Object(zt["flatten"])(e);for(var n=0,i=e;n<i.length;n++)for(var r=i[n],o=0,a=r;o<a.length;o++){var s=a[o],l=s.mappingData,c=l.x,u=l.y;s.x=Object(zt["isArray"])(c)?c[c.length-1]:c,s.y=Object(zt["isArray"])(u)?u[u.length-1]:u}var h=this.getTooltipCfg().shared;if(!1===h&&e.length>1){for(var d=e[0],p=Math.abs(t.y-d[0].y),f=0,g=e;f<g.length;f++){var m=g[f],v=Math.abs(t.y-m[0].y);v<=p&&(d=m,p=v)}e=[d]}return ep(Object(zt["flatten"])(e))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=t.getTheme(),i=Object(zt["get"])(n,["components","tooltip"],{}),r=Object(zt["isUndefined"])(Object(zt["get"])(e,"enterable"))?i.enterable:Object(zt["get"])(e,"enterable");return Object(zt["deepMix"])({},i,e,{capture:!(!r&&!this.isLocked)})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new uo(Lt(Lt({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0,r=t;i<r.length;i++){var o=r[i],a=o.x,s=o.y,l=Lt(Lt({fill:o.color,symbol:"circle",shadowColor:o.color},e),{x:a,y:s});n.addShape("marker",{attrs:l})}},e.prototype.renderCrosshairs=function(t,e){var n=Object(zt["get"])(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if($o(n,t)){var i,r;if(n.isRect)n.isTransposed?(i={x:n.start.x,y:t.y},r={x:n.end.x,y:t.y}):(i={x:t.x,y:n.end.y},r={x:t.x,y:n.start.y});else{var o=ta(n,t),a=n.getCenter(),s=n.getRadius();r=zo(a.x,a.y,s,o),i=a}var l=Object(zt["deepMix"])({start:i,end:r,container:this.getTooltipCrosshairsGroup()},Object(zt["get"])(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new c.Line(l),u.init()),u.render(),u.show(),this.xCrosshair=u}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if($o(n,t)){var i,r;if(n.isRect){var o=void 0,a=void 0;n.isTransposed?(o={x:t.x,y:n.end.y},a={x:t.x,y:n.start.y}):(o={x:n.start.x,y:t.y},a={x:n.end.x,y:t.y}),i={start:o,end:a},r="Line"}else i={center:n.getCenter(),radius:Jo(n,t),startAngle:n.startAngle,endAngle:n.endAngle},r="Circle";i=Object(zt["deepMix"])({container:this.getTooltipCrosshairsGroup()},i,Object(zt["get"])(e,"crosshairs",{}),this.getCrosshairsText("y",t,e)),delete i.type;var s=this.yCrosshair;s?n.isRect&&"circle"===s.get("type")||!n.isRect&&"line"===s.get("type")?(s=new c[r](i),s.init()):s.update(i):(s=new c[r](i),s.init()),s.render(),s.show(),this.yCrosshair=s}},e.prototype.getCrosshairsText=function(t,e,n){var i=Object(zt["get"])(n,["crosshairs","text"]),r=Object(zt["get"])(n,["crosshairs","follow"]),o=this.items;if(i){var a=this.getViewWithGeometry(this.view),s=o[0],l=a.getXScale(),c=a.getYScales()[0],u=void 0,h=void 0;if(r){var d=this.view.getCoordinate().invert(e);u=l.invert(d.x),h=c.invert(d.y)}else u=s.data[l.field],h=s.data[c.field];var p="x"===t?u:h;return Object(zt["isFunction"])(i)?i=i(t,p,o,e):i.content=p,{text:i}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.getTooltipItemsByHitShape=function(t,e,n){var i=[],r=t.container,o=r.getShape(e.x,e.y);if(o&&o.get("visible")&&o.get("origin")){var a=o.get("origin").mappingData,s=Cs(a,t,n);s.length&&i.push(s)}return i},e.prototype.getTooltipItemsByFindData=function(t,e,n){var i=[],r=t.dataArray;t.sort(r);for(var o=0,a=r;o<a.length;o++){var s=a[o],l=_s(e,s,t);if(l){var c=t.getElementId(l),u=t.elementsMap[c];if("heatmap"===t.type||u.visible){var h=Cs(l,t,n);h.length&&i.push(h)}}}return i},e.prototype.findItemsFromView=function(t,e){if(!1===t.getOptions().tooltip)return[];for(var n=[],i=t.geometries,r=this.getTooltipCfg(),o=r.shared,a=r.title,s=0,l=i;s<l.length;s++){var c=l[s];if(c.visible&&!1!==c.tooltipOption){var u=c.type,h=void 0;h=["point","edge","polygon"].includes(u)?this.getTooltipItemsByHitShape(c,e,a):["area","line","path","heatmap"].includes(u)?this.getTooltipItemsByFindData(c,e,a):!1!==o?this.getTooltipItemsByFindData(c,e,a):this.getTooltipItemsByHitShape(c,e,a),h.length&&n.push(h)}}for(var d=0,p=t.views;d<p.length;d++){var f=p[d];n=n.concat(this.findItemsFromView(f,e))}return n},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(zt["find"])(t.views,(function(t){return e.getViewWithGeometry(t)}))},e}(Hs),ip=np,rp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.show=function(){var t=this.context.view,e=this.context.event,n=t.getTooltipItems({x:e.x,y:e.y});if(!Object(zt["isEqual"])(n,this.items)&&(this.items=n,n.length)){var i=t.getXScale().field,r=n[0].data[i],o=[],a=t.geometries;if(Object(zt["each"])(a,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e=t.getData();return e[i]===r}));o=o.concat(e)}})),o.length){var s=t.getCoordinate(),l=o[0].shape.getCanvasBBox(),c=o[0].shape.getCanvasBBox(),u=l;Object(zt["each"])(o,(function(t){var e=t.shape.getCanvasBBox();s.isTransposed?(e.minY<l.minY&&(l=e),e.maxY>c.maxY&&(c=e)):(e.minX<l.minX&&(l=e),e.maxX>c.maxX&&(c=e)),u.x=Math.min(e.minX,u.minX),u.y=Math.min(e.minY,u.minY),u.width=Math.max(e.maxX,u.maxX)-u.x,u.height=Math.max(e.maxY,u.maxY)-u.y}));var h=t.backgroundGroup,d=t.coordinateBBox,p=void 0;if(s.isRect){var f=t.getXScale(),g=f.isLinear?0:.25,m=void 0,v=void 0,y=void 0,b=void 0;s.isTransposed?(m=d.minX,v=Math.min(c.minY,l.minY)-g*c.height,y=d.width,b=u.height+2*g*c.height):(m=Math.min(l.minX,c.minX)-g*l.width,v=Math.min(d.minY,l.minY),y=u.width+2*g*l.width,b=d.height),p=[["M",m,v],["L",m+y,v],["L",m+y,v+b],["L",m,v+b],["Z"]]}else{var x=Object(zt["head"])(o),w=Object(zt["last"])(o),_=Ho(x.getModel(),s).startAngle,C=Ho(w.getModel(),s).endAngle,A=s.getCenter(),I=s.getRadius(),S=s.innerRadius*I;p=Vo(A.x,A.y,I,_,C,S)}this.regionPath?(this.regionPath.attr("path",p),this.regionPath.show()):this.regionPath=h.addShape({type:"path",name:"active-region",capture:!1,attrs:{path:p,fill:"#CCD6EC",opacity:.3}})}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(Po),op=rp,ap=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return jt(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view,i=n.isTooltipLocked();if(!i){var r=this.timeStamp,o=+new Date;if(o-r>16){var a=this.location,s={x:e.x,y:e.y};a&&Object(zt["isEqual"])(a,s)||this.showTooltip(n,s),this.timeStamp=o,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.isTooltipLocked();e||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Po),sp=ap,lp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.showTooltip=function(t,e){var n=Na(t);Object(zt["each"])(n,(function(n){var i=za(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=Na(t);Object(zt["each"])(e,(function(t){t.hideTooltip()}))},e}(sp),cp=lp,up=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return jt(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date;if(i-n>16){var r=this.location,o={x:e.x,y:e.y};r&&Object(zt["isEqual"])(r,o)||this.showTooltip(o),this.timeStamp=i,this.location=o}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,i=n.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var r=i.get("tip");this.tooltip.update(Lt({title:r},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t=this.context.view,e=t.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},i=t.getTheme(),r=Object(zt["get"])(i,["components","tooltip","domStyles"],{}),o=new uo({parent:e.get("el").parentNode,region:n,visible:!1,crosshairs:null,domStyles:r});o.init(),o.setCapture(!1),this.tooltip=o},e}(Po),hp=up,dp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return jt(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=ka(t,this.stateName);Object(zt["each"])(n,(function(t){e.setElementState(t,!1)}))},e}(Po),pp=dp;function fp(t){return Object(zt["get"])(t.get("delegateObject"),"item")}var gp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return jt(e,t),e.prototype.isItemIgnore=function(t,e){var n=this.ignoreListItemStates,i=n.filter((function(n){return e.hasState(t,n)}));return!!i.length},e.prototype.setStateByComponent=function(t,e,n){var i=this.context.view,r=t.get("field"),o=Sa(i);this.setElementsStateByItem(o,r,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var i=this.context.view,r=Ga(i,e),o=Ea(t,e);return!Object(zt["isNil"])(o)&&n.name===r.getText(o)},e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;Object(zt["each"])(t,(function(t){r.isMathItem(t,e,n)&&t.setState(r.stateName,i)}))},e.prototype.setStateEnable=function(t){var e=ya(this.context);if(e)xa(this.context)&&this.setStateByElement(e,t);else{var n=ba(this.context);if(wa(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&fp(o.fromShape)===fp(o.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=ya(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(pp),mp=gp,vp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return jt(e,t),e.prototype.active=function(){this.setState()},e}(mp),yp=vp,bp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return jt(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");if(!n)return null;var i=t.getScaleByField(n.getFields()[0]);return i},e.prototype.getLinkPath=function(t,e){var n=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox(),r=[["M",n.maxX,n.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",n.maxX,n.maxY],["Z"]];return r},e.prototype.addLinkShape=function(t,e,n){t.addShape({type:"path",attrs:{opacity:.4,fill:e.shape.attr("fill"),path:this.getLinkPath(e,n)}})},e.prototype.linkByElement=function(t){var e=this,n=this.context.view,i=this.getColorScale(n,t);if(i){var r=Ea(t,i.field);if(!this.cache[r]){var o=Ma(n,i.field,r),a=this.linkGroup,s=a.addGroup();this.cache[r]=s;var l=o.length;Object(zt["each"])(o,(function(t,n){if(n<l-1){var i=o[n+1];e.addLinkShape(s,t,i)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=Ea(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(){var t=this.context;this.linkGroup||(this.linkGroup=t.view.foregroundGroup.addGroup({capture:!1}));var e=ya(t);e&&this.linkByElement(e)},e.prototype.unlink=function(){var t=ya(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(Po),xp=bp,wp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return jt(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(Ca(this.context))t=Aa(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var i={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},r=this.context.view;t=Oa(r,i)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=Sa(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,i=this.context.view,r=Na(i),o=t.map((function(t){return t.getModel().data})),a=i.getXScale().field,s=i.getYScales()[0].field;Object(zt["each"])(r,(function(t){var i=Sa(t),r=i.filter((function(t){var e=t.getModel().data;return Va(o,e,a,s)}));n.setElementsState(r,e,i)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,i=Na(n);Ca(this.context)&&Object(zt["each"])(i,(function(n){var i=Sa(n),r=Ia(e.context,n,10);r&&r.length?e.setElementsState(r,t,i):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var i=this;Object(zt["each"])(n,(function(n){t.includes(n)?i.setElementState(n,e):i.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=Na(e);Object(zt["each"])(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(pp),_p=wp,Cp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return jt(e,t),e.prototype.active=function(){this.setState()},e}(_p),Ap=Cp,Ip=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.setStateEnable=function(t){var e=ya(this.context);if(e){if(!xa(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=ya(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(pp),Sp=Ip,Mp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return jt(e,t),e.prototype.active=function(){this.setState()},e}(Sp),kp=Mp,Ep="inactive",Tp="active";function Op(t){var e=Sa(t);Object(zt["each"])(e,(function(t){t.hasState(Tp)&&t.setState(Tp,!1),t.hasState(Ep)&&t.setState(Ep,!1)}))}function Pp(t,e,n){Object(zt["each"])(t,(function(t){e(t)?(t.hasState(Ep)&&t.setState(Ep,!1),t.setState(Tp,n)):(t.hasState(Tp)&&t.setState(Tp,!1),t.setState(Ep,n))}))}var jp=Ht.INACTIVE,Lp=Ht.ACTIVE,Dp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Lp,e}return jt(e,t),e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this,o=function(t){return r.isMathItem(t,e,n)};this.setHighlightBy(t,o,i)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(jp)&&t.setState(jp,!1),t.setState(Lp,!0)):t.hasState(Lp)||t.setState(jp,!0)},e.prototype.setHighlightBy=function(t,e,n){var i=this;if(n)Object(zt["each"])(t,(function(t){i.setElementHighlight(t,e)}));else{var r=ka(this.context.view,Lp),o=!0;Object(zt["each"])(r,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(zt["each"])(t,(function(t){e(t)&&(t.hasState(Lp)&&t.setState(Lp,!1),t.setState(jp,!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Sa(n);this.setHighlightBy(i,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;Op(t)},e}(mp),Rp=Dp,Bp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=t.geometry.getAttribute("color");if(i){var r=n.getScaleByField(i.getFields()[0]),o=Ea(t,r.field),a=Sa(n),s=a.filter((function(t){return Ea(t,r.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)}},e}(Rp),Np=Bp,Fp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(jp)&&t.setState(jp,!1),t.setState(Lp,!0)):(t.setState(jp,!0),t.hasState(Lp)&&t.setState(Lp,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=n.getXScale(),r=Ea(t,i.field),o=Sa(n),a=o.filter((function(t){return Ea(t,i.field)===r}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=ya(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(Rp),zp=Fp,Vp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return jt(e,t),e.prototype.clearViewState=function(t){Op(t)},e.prototype.highlight=function(){this.setState()},e.prototype.setElementsState=function(t,e,n){Pp(n,(function(e){return t.indexOf(e)>=0}),e)},e}(_p),Gp=Vp,Hp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return jt(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Sa(n);Pp(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;Op(t)},e}(Sp),Wp=Hp,Up=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return jt(e,t),e.prototype.selected=function(){this.setState()},e}(_p),Zp=Up,Yp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return jt(e,t),e.prototype.selected=function(){this.setState()},e}(mp),Xp=Yp,qp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return jt(e,t),e.prototype.selected=function(){this.setState()},e}(Sp),Kp=qp,Qp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return jt(e,t),e.prototype.getTriggerListInfo=function(){var t=ba(this.context),e=null;return wa(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=La(e),i=[];return Object(zt["each"])(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&i.push(e)})),i},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(zt["each"])(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var i=this.context.view,r=Ga(i,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;if(n.length){var i=n.filter((function(n){return e.hasState(t,n)}));return 0===i.length}return!0},e.prototype.setStateByElement=function(t,e,n){var i=t.get("field"),r=this.context.view,o=Ga(r,i),a=Ea(e,i),s=o.getText(a);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=ya(this.context);if(n){var i=this.getAllowComponents();Object(zt["each"])(i,(function(i){e.setStateByElement(i,n,t)}))}else{var r=ba(this.context);if(wa(r)){var o=r.item,a=r.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var i=this,r=t.getItems();Object(zt["each"])(r,(function(r){r.name===e&&i.setItemState(t,r,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=this.hasState(e,n);this.setItemState(e,n,!i)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Po),Jp=Qp,$p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return jt(e,t),e.prototype.active=function(){this.setState()},e}(Jp),tf=$p,ef="inactive",nf="active";function rf(t){var e=t.getItems();Object(zt["each"])(e,(function(e){t.hasState(e,nf)&&t.setItemState(e,nf,!1),t.hasState(e,ef)&&t.setItemState(e,ef,!1)}))}var of="inactive",af="active",sf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=af,e.ignoreItemStates=["unchecked"],e}return jt(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var i=t.getItems();if(n)Object(zt["each"])(i,(function(n){e(n)?(t.hasState(n,of)&&t.setItemState(n,of,!1),t.setItemState(n,af,!0)):t.hasState(n,af)||t.setItemState(n,of,!0)}));else{var r=t.getItemsByState(af),o=!0;Object(zt["each"])(r,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(zt["each"])(i,(function(n){e(n)&&(t.hasState(n,af)&&t.setItemState(n,af,!1),t.setItemState(n,of,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)rf(t.list);else{var e=this.getAllowComponents();Object(zt["each"])(e,(function(t){t.clearItemsState(af),t.clearItemsState(of)}))}},e}(Jp),lf=sf,cf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return jt(e,t),e.prototype.selected=function(){this.setState()},e}(Jp),uf=cf,hf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return jt(e,t),e.prototype.unchecked=function(){this.setState()},e}(Jp),df=hf,pf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return jt(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:"+t,n=this.context.view,i=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Lt({fill:"#C5D4EB",opacity:.3},e)});return n},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,i=t.y-e.y,r=this.points;Object(zt["each"])(r,(function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(){var t=this.getMaskAttrs();this.maskShape.attr(t)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(Po),ff=pf,gf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return jt(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(zt["last"])(this.points),n=0,i=0,r=0;if(t.length){var o=t[0];n=Da(o,e)/2,i=(e.x+o.x)/2,r=(e.y+o.y)/2}return{x:i,y:r,r:n}},e}(ff),mf=gf,vf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return jt(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(zt["head"])(t),end:Object(zt["last"])(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),o=Math.abs(n.x-e.x),a=Math.abs(n.y-e.y);return{x:i,y:r,width:o,height:a}},e}(ff),yf=vf;function bf(t){t.x=Object(zt["clamp"])(t.x,0,1),t.y=Object(zt["clamp"])(t.y,0,1)}var xf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return jt(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,i=this.dim,r=this.context.view.getCoordinate(),o=r.invert(Object(zt["head"])(n)),a=r.invert(Object(zt["last"])(n));return this.inPlot&&(bf(o),bf(a)),"x"===i?(t=r.convert({x:o.x,y:0}),e=r.convert({x:a.x,y:1})):(t=r.convert({x:0,y:o.y}),e=r.convert({x:1,y:a.y})),{start:t,end:e}},e}(yf),wf=xf,_f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(zt["each"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(ff),Cf=_f,Af=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.getMaskPath=function(){var t=this.points;return Ra(t,!0)},e}(Cf),If=Af,Sf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.setCursor=function(t){var e=this.context.view;e.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(Po),Mf=Sf,kf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.filterView=function(t,e,n){var i=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(zt["each"])(t.views,(function(t){i.filterView(t,e,n)}))},e.prototype.filter=function(){var t=ba(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(wa(t)){if(i){var r=n.getItemsByState("unchecked"),o=Ga(e,i),a=r.map((function(t){return t.name}));a.length?this.filterView(e,i,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(_a(t)){var s=n.getValue(),l=s[0],c=s[1];this.filterView(e,i,(function(t){return t>=l&&t<=c})),e.render(!0)}}},e}(Po),Ef=kf;function Tf(t,e,n,i){var r=Math.min(n[e],i[e]),o=Math.max(n[e],i[e]),a=t.range,s=a[0],l=a[1];if(r<s&&(r=s),o>l&&(o=l),r===l&&o===l)return null;var c=t.invert(r),u=t.invert(o);if(t.isCategory){var h=t.values.indexOf(c),d=t.values.indexOf(u),p=t.values.slice(h,d+1);return function(t){return p.includes(t)}}return function(t){return t>=c&&t<=u}}var Of=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return jt(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(Ca(this.context)){var n=this.context.event.target,i=n.getCanvasBBox();t={x:i.x,y:i.y},e={x:i.maxX,y:i.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context.view,o=r.getCoordinate(),a=o.invert(e),s=o.invert(t);if(this.hasDim("x")){var l=r.getXScale(),c=Tf(l,"x",a,s);this.filterView(r,l.field,c)}if(this.hasDim("y")){var u=r.getYScales()[0];c=Tf(u,"y",a,s);this.filterView(r,u.field,c)}this.reRender(r)}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t)},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t){t.render(!0)},e}(Po),Pf=Of,jf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.filterView=function(t,e,n){var i=Na(t);Object(zt["each"])(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Na(t);Object(zt["each"])(e,(function(t){t.render(!0)}))},e}(Pf),Lf=jf,Df=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jt(e,t),e.prototype.filter=function(){var t=ba(this.context),e=this.context.view,n=Sa(e);if(Ca(this.context)){var i=Aa(this.context,10);i&&Object(zt["each"])(n,(function(t){i.includes(t)?t.show():t.hide()}))}else if(t){var r=t.component,o=r.get("field");if(wa(t)){if(o){var a=r.getItemsByState("unchecked"),s=Ga(e,o),l=a.map((function(t){return t.name}));Object(zt["each"])(n,(function(t){var e=Ea(t,o),n=s.getText(e);l.indexOf(n)>=0?t.hide():t.show()}))}}else if(_a(t)){var c=r.getValue(),u=c[0],h=c[1];Object(zt["each"])(n,(function(t){var e=Ea(t,o);e>=u&&e<=h?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=Sa(this.context.view);Object(zt["each"])(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(Po),Rf=Df,Bf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return jt(e,t),e.prototype.filter=function(){Ca(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Aa(this.context,10);if(e){var n=t.getXScale().field,i=t.getYScales()[0].field,r=e.map((function(t){return t.getModel().data})),o=Na(t);Object(zt["each"])(o,(function(t){var e=Sa(t);Object(zt["each"])(e,(function(t){var e=t.getModel().data;Va(r,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=Na(e);Object(zt["each"])(n,(function(e){var n=Ia(t.context,e,10),i=Sa(e);n&&Object(zt["each"])(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Na(this.context.view);Object(zt["each"])(t,(function(t){var e=Sa(t);Object(zt["each"])(e,(function(t){t.show()}))}))},e}(Po),Nf=Bf,Ff=10,zf=5,Vf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return jt(e,t),e.prototype.getButtonCfg=function(){return Object(zt["deepMix"])(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:Lt({text:t.text},t.textStyle)}),i=n.getBBox(),r=js(t.padding),o=e.addShape({type:"rect",name:"button-rect",attrs:Lt({x:i.x-r[3],y:i.y-r[0],width:i.width+r[1]+r[3],height:i.height+r[0]+r[2]},t.style)});o.toBack(),e.on("mouseenter",(function(){o.attr(t.activeStyle)})),e.on("mouseleave",(function(){o.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),i=this.buttonGroup,r=i.getBBox(),o=qe["a"].transform(null,[["t",n.x-r.width-Ff,n.y+r.height+zf]]);i.setMatrix(o)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Po),Gf=Vf,Hf=4,Wf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return jt(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):Da(t,this.startPoint)>Hf&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(Po),Uf=Wf,Zf=5,Yf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return jt(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint(),n=Da(t,e);if(n>Zf&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,r=qe["a"].transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);i.backgroundGroup.setMatrix(r),i.foregroundGroup.setMatrix(r),i.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(Po),Xf=Yf,qf="x",Kf="y",Qf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[qf,Kf],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return jt(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim(qf),this.resetDim(Kf);var t=this.context.view;t.render(!0)},e}(Po),Jf=Qf,$f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return jt(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(zt["each"])(e,(function(e){var n=t.getScale(e),i=n.min,r=n.max,o=n.values;t.startCache[e]={min:i,max:r,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),i=this.context.getCurrentPoint(),r=n.invert(e),o=n.invert(i),a=o.x-r.x,s=o.y-r.y,l=this.context.view,c=this.dims;Object(zt["each"])(c,(function(e){t.translateDim(e,{x:-1*a,y:-1*s})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var i=this.context.view,r=this.startCache[t],o=r.min,a=r.max,s=a-o,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),i.scale(e.field,{nice:!1,min:o+l,max:a+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Jf),tg=$f,eg=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return jt(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(zt["each"])(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var i=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],o=r.max-r.min,a=e.min,s=e.max,l=n*o,c=a-l,u=s+l,h=u-c,d=h/o;u>c&&d<100&&d>.01&&i.scale(e.field,{nice:!1,min:a-l,max:s+l})},e}(Jf),ng=eg;function ig(t){return t.isInPlot()}function rg(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}ds("dark",is(Jl)),ne("canvas",$l),ne("svg",g),Fs("Polygon",sh),Fs("Interval",Ku),Fs("Schema",ch),Fs("Path",ju),Fs("Point",rh),Fs("Line",Ju),Fs("Area",Nu),Fs("Edge",zu),Fs("Heatmap",Gu),Il("base",Yl),Il("interval",Ph),Il("pie",Bh),Il("polar",Dh),Ml("overlap",Qh),Ml("distribute",zh),Ml("fixed-overlap",Kh),Ml("limit-in-shape",Uh),Ml("limit-in-canvas",Wh),Ml("pie-outer",Hh),hl("fade-in",Jh),hl("fade-out",$h),hl("grow-in-x",nd),hl("grow-in-xy",rd),hl("grow-in-y",id),hl("scale-in-x",sd),hl("scale-in-y",ld),hl("wave-in",gd),hl("zoom-in",vd),hl("zoom-out",yd),hl("position-update",ad),hl("sector-path-update",fd),hl("path-in",od),To("rect",Td),To("mirror",kd),To("list",Ad),To("matrix",Sd),To("circle",_d),To("tree",Pd),Is("axis",Gd),Is("legend",Jd),Is("tooltip",ip),Is("annotation",Ld),Is("slider",tp),Bo("tooltip",sp),Bo("sibling-tooltip",cp),Bo("ellipsis-text",hp),Bo("element-active",yp),Bo("element-single-active",kp),Bo("element-range-active",Ap),Bo("element-highlight",Rp),Bo("element-highlight-by-x",zp),Bo("element-highlight-by-color",Np),Bo("element-single-highlight",Wp),Bo("element-range-highlight",Gp),Bo("element-sibling-highlight",Gp,{effectSiblings:!0,effectByRecord:!0}),Bo("element-selected",Xp),Bo("element-single-selected",Kp),Bo("element-range-selected",Zp),Bo("element-link-by-color",xp),Bo("active-region",op),Bo("list-active",tf),Bo("list-selected",uf),Bo("list-highlight",lf),Bo("list-unchecked",df),Bo("legend-item-highlight",lf,{componentNames:["legend"]}),Bo("axis-label-highlight",lf,{componentNames:["axis"]}),Bo("rect-mask",yf),Bo("x-rect-mask",wf,{dim:"x"}),Bo("y-rect-mask",wf,{dim:"y"}),Bo("circle-mask",mf),Bo("path-mask",Cf),Bo("smooth-path-mask",If),Bo("cursor",Mf),Bo("data-filter",Ef),Bo("brush",Pf),Bo("brush-x",Pf,{dims:["x"]}),Bo("brush-y",Pf,{dims:["y"]}),Bo("sibling-filter",Lf),Bo("sibling-x-filter",Lf),Bo("sibling-y-filter",Lf),Bo("element-filter",Rf),Bo("element-sibling-filter",Nf),Bo("element-sibling-filter-record",Nf,{byRecord:!0}),Bo("view-drag",Uf),Bo("view-move",Xf),Bo("scale-translate",tg),Bo("scale-zoom",ng),Bo("reset-button",Gf,{name:"reset-button",text:"reset"}),ts("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),ts("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),ts("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),ts("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),ts("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),ts("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),ts("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),ts("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),ts("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),ts("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),ts("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),ts("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),ts("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ig,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ig,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ig,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),ts("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),ts("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ig,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ig,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ig,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),ts("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ig,action:"path-mask:start"},{trigger:"mousedown",isEnable:ig,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),ts("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),ts("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),ts("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),ts("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),ts("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),ts("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),ts("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return rg(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!rg(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),ts("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});var og=n("7104"),ag=n.n(og),sg=n("0573"),lg=n("c705"),cg=n("da31"),ug=n("62b5"),hg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{height:"400px",width:"100%"},attrs:{id:t.id}})},dg=[],pg=n("9cd1");function fg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function gg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fg(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var mg={props:{id:{type:String,default:""}},data:function(){return{myChart:null}},computed:gg({},Object(w["e"])("site",["themeClassName"]),{getEchartsTheme:function(){return"theme-dark-green"===this.themeClassName?"chalk":"light"},option:function(){return{visualMap:{type:"continuous",left:40,min:0,max:1e6,itemHeight:80,formatter:function(t){return t>1e4?"".concat(t/1e4,"w"):t},inRange:{color:["#d3f6fc","#8ab5de","#5295d5","#0071de"]},text:["High","Low"],textStyle:{color:"theme-dark-green"===this.themeClassName?"#9DA6B2":""},calculable:!0},tooltip:{trigger:"item",axisPointer:{type:"shadow"},textStyle:{color:"#fff"},backgroundColor:"#000",formatter:function(t){return t.value?"城市: ".concat(t.name,"<br />数量: ").concat(t.value):""}},series:[{type:"map",map:"China",roam:!0,label:{show:!1},aspectScale:.75,scaleLimit:{min:.75,max:5},itemStyle:{areaColor:"#eeeeee",borderColor:"#999"},data:[]}]}}}),watch:{themeClassName:function(){this.destroyMap(),this.$emit("updateMapTheme"),this.$emit("updateChinaMapTheme")}},mounted:function(){},destroyed:function(){var t=this;t.destroyMap()},methods:{destroyMap:function(){var t=this;t.myChart&&t.myChart.dispose(),window.removeEventListener("resize",t.resize),t.myChart=null},resize:function(){this.myChart&&this.myChart.resize()},initMap:function(t,e,n){this.option.series[0].data=t,this.option.series[0].map=e,this.option.visualMap.max=t.length?t[0].total:100,this.myChart=pg["a"](document.getElementById(this.id),this.getEchartsTheme),pg["b"](e,n),this.myChart.setOption(this.option),window.addEventListener("resize",this.resize)}}},vg=mg,yg=Object(V["a"])(vg,hg,dg,!1,null,null,null),bg=yg.exports;function xg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function wg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xg(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _g={props:{activeName:{type:String,default:""},selectIndex:{type:String,default:""},statisticsIndexLoading:{type:Boolean,default:!1},statisticsLoading:{type:Boolean,default:!1},aggregationsData:{type:Object,default:function(){return{}}}},computed:wg({},Object(w["e"])("site",["themeClassName"]),{getVEchartsTheme:function(){return"theme-dark-green"===this.themeClassName?"chalk":"light"},getEchartsTheme:function(){return"theme-dark-green"===this.themeClassName?"dark":"light"},loadMoreKeyList:function(){var t=["meta_keywords","page_type","status_code","powered_by"];return t="quake_service"===this.selectIndex?[].concat(Object(b["a"])(t),["port",null,"os","service","vendor","app","level","app","catalog","type"]):"quake_vulnerability"===this.selectIndex?[].concat(Object(b["a"])(t),["vul_type","vul_name","port","vul_level"]):[].concat(Object(b["a"])(t),["port","app","os","service"]),t},poweredByMax:function(){return Math.max.apply(Math,Object(b["a"])(this.aggregationsData.powered_by.map((function(t){return t.doc_count}))))||0},worldTotal:function(){if(this.aggregationsData&&this.aggregationsData.country&&this.aggregationsData.country.length){var t=parseInt(1.05*this.aggregationsData.country[0].doc_count,10);return t}return 0},chinaTotal:function(){if(this.aggregationsData.province_of_china&&this.aggregationsData.province_of_china.province&&this.aggregationsData.province_of_china.province.length){var t=parseInt(1.05*this.aggregationsData.province_of_china.province[0].doc_count,10);return t}return 0},worldData1:function(){var t=this;if(this.aggregationsData&&this.aggregationsData.country&&this.aggregationsData.country.length){for(var e=[],n=this.aggregationsData.country.length>8?8:this.aggregationsData.country.length,i=function(n){var i=t.countryMapping.find((function(e){return t.aggregationsWorldData&&t.aggregationsWorldData.country&&t.aggregationsWorldData.country[n]&&t.aggregationsWorldData.country[n].key?t.aggregationsWorldData.country[n].key===e.country_en:{}}));if(t.aggregationsWorldData&&t.aggregationsWorldData.country&&t.aggregationsWorldData.country[n]){var r=Object.assign({},t.aggregationsWorldData.country[n],i);e.push(r)}},r=0;r<n;r++)i(r);return{columns:["china","total"],rows:e.map((function(t){return{country:t.country_cn,total:t.doc_count}}))}}return[]},portData:function(){return this.aggregationsData.port?{columns:["port","total"],rows:this.aggregationsData.port.map((function(t){return{port:t.key,total:t.doc_count}}))}:[]},levelData:function(){return this.aggregationsData.level?{columns:["level","total"],rows:this.aggregationsData.level.map((function(t){return{level:t.key,total:t.doc_count}}))}:[]},catalogData:function(){return this.aggregationsData.catalog?{columns:["catalog","total"],rows:this.aggregationsData.catalog.map((function(t){return{catalog:t.key,total:t.doc_count}}))}:[]},typeData:function(){return this.aggregationsData.type?{columns:["type","total"],rows:this.aggregationsData.type.map((function(t){return{type:t.key,total:t.doc_count}}))}:[]},productTotal:function(){if(this.aggregationsData.app&&this.aggregationsData.app.length){var t=parseInt(1.05*this.aggregationsData.app[0].doc_count,10);return t}return 0},appTotal:function(){if(this.aggregationsData.app&&this.aggregationsData.app.length){var t=parseInt(1.05*this.aggregationsData.app[0].doc_count,10);return t}return 0},osData:function(){if(this.aggregationsData.os){var t=Ot.a.cloneDeep(this.aggregationsData.os);return{columns:["os","total"],rows:t.map((function(t){return{os:t.key,total:t.doc_count}}))}}return{}},pageTypeData:function(){if(this.aggregationsData.page_type){var t=Ot.a.cloneDeep(this.aggregationsData.page_type);return{columns:["page_type","total"],rows:t.map((function(t){return{page_type:t.key,total:t.doc_count}}))}}return{}},statusCodeData:function(){if(this.aggregationsData.status_code){var t=Ot.a.cloneDeep(this.aggregationsData.status_code);return{columns:["status_code","total"],rows:t.map((function(t){return{status_code:t.key,total:t.doc_count}}))}}return{}},metaKeywordsData:function(){if(this.aggregationsData.meta_keywords){var t=Ot.a.cloneDeep(this.aggregationsData.meta_keywords);return{columns:["meta_keywords","total"],rows:t.map((function(t){return{meta_keywords:t.key,total:t.doc_count}}))}}return{}},vendorData:function(){if(this.aggregationsData.vendor){var t=Ot.a.cloneDeep(this.aggregationsData.vendor);return{columns:["vendor","total"],rows:t.map((function(t){return{vendor:t.key,total:t.doc_count}}))}}return{}},serviceData:function(){return this.aggregationsData.service?{columns:["service","total"],rows:this.aggregationsData.service.map((function(t){return{service:t.key,total:t.doc_count}}))}:[]},vulTypeData:function(){return this.aggregationsData.vul_type?{columns:["type","total"],rows:this.aggregationsData.vul_type.map((function(t){return{type:t.key,total:t.doc_count}}))}:[]},vulTypeTotal:function(){if(this.aggregationsData.vul_type&&this.aggregationsData.vul_type.length){var t=parseInt(1.05*this.aggregationsData.vul_type[0].doc_count,10);return t}return 0},vulLevelData:function(){return this.aggregationsData.vul_level?{columns:["level","total"],rows:this.aggregationsData.vul_level.map((function(t){return{level:t.key,total:t.doc_count}}))}:[]},getPort:function(){return this.aggregationsData.port}}),components:{CustomizeAreaMap:bg},data:function(){var t=this;return this.chartEvents={mouseover:function(t){if("yAxis"===t.componentType){var e=document.getElementById("tip");e.innerHTML=t.value,e.style.left="".concat(t.event.offsetX+20,"px"),e.style.top="".concat(t.event.offsetY-20,"px"),e.style.display="block"}},mouseout:function(){var t=document.getElementById("tip");t.style.display="none"}},{chinaData:[],aggregationsWorldData:{},startKey:"",lastIndex:0,formatDotNumber:sg["a"],chart:null,time:A()().format("YYYY-MM-DD"),countryMapping:lg,world:{title:{text:"世界统计",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},afterConfig:function(e){var n=t;e.setOption({visualMap:{max:n.worldData.rows&&n.worldData.rows.length?n.worldData.rows[0].total:1e4,formatter:function(t){return t>1e4?"".concat(parseInt(t/1e4),"w"):t}}})},setting:{position:"world",beforeRegisterMap:function(){return cg},aspectScale:.75,roam:!0,scaleLimit:{min:.75,max:5},label:{show:!1},itemStyle:{areaColor:"#eeeeee",borderColor:"#999"}},extend:{visualMap:{left:40,min:0,max:1e5,itemHeight:80,formatter:function(t){return t>1e4?"".concat(t/1e4,"w"):t},inRange:{color:["#d3f6fc","#8ab5de","#5295d5","#0071de"]},text:["High","Low"],calculable:!0},tooltip:{trigger:"item",axisPointer:{type:"shadow"},backgroundColor:"#000",formatter:function(t){return t.value?"国家: ".concat(t.name,"<br />数量: ").concat(t.value):""}}}},china:{title:{text:"国内统计",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},afterConfig:function(e){var n=t;e.setOption({visualMap:{max:n.chinaData.rows&&n.chinaData.rows.length?n.chinaData.rows[0].total:100,formatter:function(t){return t>1e4?"".concat(parseInt(t/1e4),"w"):t}}})},setting:{position:"china",aspectScale:.75,roam:!0,scaleLimit:{min:.75,max:5},label:{show:!1},itemStyle:{areaColor:"#eeeeee",borderColor:"#999"}},extend:{visualMap:{left:40,min:0,max:1e6,itemHeight:80,formatter:function(t){return t>1e4?"".concat(t/1e4,"w"):t},inRange:{color:["#d3f6fc","#8ab5de","#5295d5","#0071de"]},text:["High","Low"],calculable:!0},tooltip:{trigger:"item",axisPointer:{type:"shadow"},backgroundColor:"#000",formatter:function(t){return t.value?"城市: ".concat(t.name,"<br />数量: ").concat(t.value):""}}}},port:{title:{text:"端口统计",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},extend:{xAxis:{axisTick:{show:!0,lineStyle:{color:"#d3d7da"}},axisLine:{show:!0,lineStyle:{color:["#999999"],width:1}},splitLine:{show:!1},axisLabel:{interval:0,rotate:45,margin:10,textStyle:{color:"#707070"}}},yAxis:{position:"left",minInterval:1,axisLine:{show:!0,lineStyle:{color:["#999999"],width:1}},axisLabel:{textStyle:{color:"#707070"},formatter:function(t){return t>1e4?"".concat(t/1e4,"w"):t}},splitLine:{lineStyle:{color:["#d3d7da"],width:.5}}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"#000",formatter:"端口: {b0}<br />端口数: {c0}"},series:{type:"bar",emphasis:{itemStyle:{color:"#0071de"}}}}},level:{title:{text:"层级统计",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},extend:{xAxis:{axisTick:{show:!0,lineStyle:{color:"#d3d7da"}},axisLine:{show:!0,lineStyle:{color:["#999999"],width:1}},axisLabel:{interval:0,rotate:0,margin:10,textStyle:{color:"#707070"}}},yAxis:{position:"left",minInterval:1,axisLine:{show:!0,onZero:!0,lineStyle:{color:["#999999"],width:1}},axisLabel:{textStyle:{color:"#707070"},formatter:function(t){return t>1e4?"".concat(t/1e4,"w"):t}},splitLine:{show:!0,lineStyle:{color:["#E0E8ED"],width:.5,opacity:.5}}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"#000",formatter:"层级: {b0}<br />数量: {c0}"},series:{type:"bar",emphasis:{itemStyle:{color:"#0071de"}}}}},catalog:{title:{text:"类别统计",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},extend:{tooltip:{trigger:"item",backgroundColor:"#000",formatter:"类别: {b0}<br />比例: {d0}%"},legend:{orient:"horizontal",bottom:10,show:!0},series:{roseType:"radius",label:{show:!0},labelLine:{show:!0},center:["40%","50%"],radius:[30,90],itemStyle:{borderWidth:1,borderColor:"#fff"}}}},type:{title:{text:"类型统计",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},extend:{tooltip:{trigger:"item",backgroundColor:"#000",formatter:"类型: {b0}<br />比例: {d0}%"},legend:{orient:"horizontal",bottom:10,show:!0},series:{roseType:"radius",label:{show:!0},labelLine:{show:!0},center:["40%","50%"],radius:[30,90],itemStyle:{borderWidth:1,borderColor:"#fff"}}}},os:{title:{text:"操作系统统计",left:"left",top:"top",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},extend:{encode:{x:"",y:""},series:{type:"bar",barWidth:16,emphasis:{itemStyle:{color:"#0071de"}}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"#000",formatter:"系统: {b0}<br />数量: {c0}"},xAxis:{position:"bottom",minInterval:1,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:["#999999"],width:1}},splitLine:{show:!1},axisLabel:{interval:0,rotate:45,margin:10,textStyle:{color:"#707070"},formatter:function(t){return t>1e4?"".concat(t/1e4,"w"):t}}},yAxis:{position:"left",triggerEvent:!0,splitLine:{show:!0,lineStyle:{color:["#E0E8ED"],width:.5,opacity:.5}},axisLabel:{textStyle:{color:"#707070"},formatter:function(t){var e=t;return e.length>15&&(e="".concat(e.substring(0,15),"..")),e}},axisLine:{show:!0,lineStyle:{color:["#999999"],width:1}}}}},vendor:{title:{text:"厂商统计",left:"left",top:"top",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},colors:["#3398DB"],extend:{encode:{x:"",y:""},series:{type:"bar",barWidth:16,emphasis:{itemStyle:{color:"#0071de"}}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"#000",formatter:"厂商: {b0}<br />数量: {c0}"},xAxis:{position:"bottom",minInterval:1,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:["#999999"],width:1}},splitLine:{show:!1},axisLabel:{interval:0,rotate:45,margin:10,textStyle:{color:"#707070"},formatter:function(t){return t>1e4?"".concat(t/1e4,"w"):t}}},yAxis:{position:"left",triggerEvent:!0,axisLabel:{textStyle:{color:"#707070"},formatter:function(t){for(var e=t,n=0,i=0;i<e.length;i+=1)if(e.charCodeAt(i)>127||94===e.charCodeAt(i)?n+=2:n+=1,n>15)return"".concat(e.substring(0,i),"..");return e}},splitLine:{show:!0,lineStyle:{color:["#E0E8ED"],width:.5,opacity:.5}},axisLine:{show:!0,lineStyle:{color:["#999999"],width:1}}}}},service:{title:{text:"服务统计",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},extend:{tooltip:{trigger:"item",backgroundColor:"#000",formatter:"服务: {b0}<br />比例: {d0}%"},legend:{orient:"vertical",right:40,top:80},series:{label:{show:!0},itemStyle:{borderWidth:1,borderColor:"#fff"},labelLine:{show:!0},center:["40%","50%"],radius:[70,100]}}},vulType:{title:{text:"漏洞类型统计",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},extend:{xAxis:{axisTick:{show:!0,lineStyle:{color:"#d3d7da"}},axisLine:{show:!0,lineStyle:{color:["#999999"],width:1}},axisLabel:{interval:0,rotate:45,margin:10,textStyle:{color:"#707070"}}},yAxis:{position:"left",minInterval:1,axisLine:{show:!0,lineStyle:{color:["#999999"],width:1}},axisLabel:{textStyle:{color:"#707070"},formatter:function(t){return t>1e4?"".concat(t/1e4,"w"):t}},splitLine:{lineStyle:{color:["#d3d7da"],width:.5}}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},backgroundColor:"#000",formatter:"端口: {b0}<br />端口数: {c0}"},series:{type:"bar",emphasis:{itemStyle:{color:"#0071de"}}}}},vulLevel:{title:{text:"漏洞等级统计",show:!1,textStyle:{fontWeight:"normal",color:"#333",fontSize:14}},extend:{tooltip:{trigger:"item",backgroundColor:"#000",formatter:"等级: {b0}<br />比例: {d0}%"},legend:{orient:"vertical",right:40,top:"30%"},series:{label:{show:!0},itemStyle:{borderWidth:1,borderColor:"#fff"},labelLine:{show:!0},center:["40%","50%"],radius:[45,70]}}}}},mounted:function(){},watch:{themeClassName:function(){},aggregationsData:{handler:function(t){if(t){var e=t.country,n=t.province_of_china;this.aggregationsWorldData={country:e,province_of_china:n}}},deep:!0},getPort:{handler:function(t){var e=this;t&&Array.isArray(t)&&this.$nextTick((function(){t.length&&"quake_service"===e.selectIndex?e.portG2():e.chart&&e.chart.hide()}))},deep:!0},aggregationsWorldData:{handler:function(t){var e={columns:["china","total"],rows:[]};t.province_of_china&&t.province_of_china.province&&t.province_of_china.province.length&&(e={columns:["china","total"],rows:t.province_of_china.province.map((function(t){var e=new Map([["内蒙古自治区","内蒙古"],["广西壮族自治区","广西"],["新疆维吾尔自治区","新疆"],["宁夏回族自治区","宁夏"],["西藏自治区","西藏"]]),n=t.key;return(n.includes("省")||n.includes("市"))&&(n=n.slice(0,n.length-1)),e.has(n)&&(n=e.get(n)),{china:n,total:t.doc_count,name:n,value:t.doc_count}}))}),e.rows.push({name:"南海诸岛",label:{show:!0,fontSize:10}}),e.rows.length>1&&this.$refs.chinaMap.initMap(e.rows,"China",ug);var n={columns:["country","total","name"],rows:[]};t.country&&t.country.length&&(n={columns:["country","total"],rows:t.country.map((function(t){return{country:t.key,total:t.doc_count,name:t.key,value:t.doc_count}}))}),this.$refs.worldMap.initMap(n.rows,"world",cg)},deep:!0}},methods:{updateChinaMapTheme:function(){var t=this.aggregationsWorldData,e={columns:["china","total"],rows:[]};t.province_of_china&&t.province_of_china.province&&t.province_of_china.province.length&&(e={columns:["china","total"],rows:t.province_of_china.province.map((function(t){var e=new Map([["内蒙古自治区","内蒙古"],["广西壮族自治区","广西"],["新疆维吾尔自治区","新疆"],["宁夏回族自治区","宁夏"],["西藏自治区","西藏"]]),n=t.key;return(n.includes("省")||n.includes("市"))&&(n=n.slice(0,n.length-1)),e.has(n)&&(n=e.get(n)),{china:n,total:t.doc_count,name:n,value:t.doc_count}}))}),e.rows.push({name:"南海诸岛",label:{show:!0,fontSize:10}}),this.$refs.chinaMap.initMap(e.rows,"China",ug)},updateMapTheme:function(){var t=this.aggregationsWorldData,e={columns:["country","total","name"],rows:[]};t.country&&t.country.length&&(e={columns:["country","total"],rows:t.country.map((function(t){return{country:t.key,total:t.doc_count,name:t.key,value:t.doc_count}}))}),this.$refs.worldMap.initMap(e.rows,"world",cg)},handleLoadMoreKeyList:function(){this.lastIndex+=2,this.startKey=this.loadMoreKeyList[this.lastIndex-2],this.$emit("loadMoreKeyList",{aggregation_list:this.loadMoreKeyList.slice(this.lastIndex-2,this.lastIndex).filter((function(t){return t}))})},portG2:function(){var t=this,e=ag.a.DataView,n={key:"root",children:this.aggregationsData.port},i=new e;i.source(n,{type:"hierarchy"}).transform({field:"doc_count",type:"hierarchy.treemap",tile:"treemapResquarify",as:["x","y"]});for(var r=[],o=i.getAllNodes(),a=0;a<o.length;a++){var s=o[a];if("root"!==s.data.key){var l={name:s.data.key,x:s.x,y:s.y,value:s.data.doc_count};r.push(l)}}var c=["#75A0EE","#D1DFFC","#8CD6F4","#53CAC6","#E1AB85","#B3D899","#CED5DF","#D6EFF8","#30C5E5","#E87688","#FBE7E7"];if(r.forEach((function(e,n){t.$set(e,"color",c[n])})),this.chart)this.chart.changeData(r);else{var u=new Gs({container:"con",autoFit:!0,height:300,theme:this.getEchartsTheme});this.chart=u,this.chart.theme(this.getEchartsTheme),u.data(r),u.scale({x:{nice:!0},y:{nice:!0}}),u.axis(!1),u.legend(!1),u.tooltip({showTitle:!1,showMarkers:!1,itemTpl:'<li style="list-style: none;height: 40px"><span style="background-color:{color};" class="g2-tooltip-marker"></span>端口：{name}<br/><span style="padding-left: 16px;line-height: 24px !important">数量：{count}</span><br/></li>'}),u.polygon().position("x*y").color("color",(function(t){return t})).tooltip("name*value",(function(t,e){return{name:t,count:e}})).style({lineWidth:1,stroke:"#fff"}).label("name",{offset:0,style:{textBaseline:"middle"},content:function(t){if("root"!==t.name)return t.name}}),u.interaction("element-active"),u.render()}}}},Cg=_g,Ag=(n("cb6f"),n("ebda"),Object(V["a"])(Cg,kt,Et,!1,null,"091ec244",null)),Ig=Ag.exports,Sg=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{},[i("IocTable",{attrs:{tableHeaderConfig:t.tableHeaderConfig,paginationConfig:t.paginationConfig}},t._l(t.searchResultList,(function(e,r){return i("div",{key:r,staticClass:"item-container"},[i("div",{staticClass:"item-top-line"},[t.isQuakeCertificate?i("div",{staticClass:"top-left",staticStyle:{"font-size":"20px"}},[t._v(" "+t._s(t._.get(e,"parsed.subject.common_name[0]")||t._.get(e,"parsed.serial_number"))+" ")]):i("div",{staticClass:"top-left"},[e.service&&e.service.http&&e.service.http.favicon&&(e.service.http.favicon.data||e.service.http.favicon.s3_url)?i("div",{staticStyle:{height:"22px",display:"inline-block"}},[e.service.http.favicon.data?i("img",{attrs:{src:"data:image/png;base64,"+e.service.http.favicon.data},on:{click:function(n){return t.onSearchMore("favicon",e.service.http.favicon.hash)}}}):e.service.http.favicon.s3_url?i("img",{attrs:{src:e.service.http.favicon.s3_url},on:{click:function(n){return t.onSearchMore("favicon",e.service.http.favicon.hash)}}}):t._e()]):t._e(),i("div",{staticClass:"ip"},[e.service&&e.service.http&&e.service.http.host&&!t.checkIp(e.service.http.host)?i("span",{staticClass:"copy_btn",attrs:{"data-clipboard-text":e.service.http.host},on:{click:function(n){return t.onSearchMore("domain",e.service.http.host)},dblclick:function(n){return t.copy("copy_btn",e.service.http.host)}}},[t._v(" "+t._s(e.service.http.host)+" ")]):i("span",{staticClass:"copy_btn",attrs:{"data-clipboard-text":e.ip+(e.port?":"+e.port:"")},on:{click:function(n){return t.onSearchMore("ip",e.ip)},dblclick:function(n){return t.copy("copy_btn",e.ip)}}},[t._v(" "+t._s(e.ip)+" ")])]),e.ip.includes("*")?t._e():i("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.view_detail"),placement:"top"}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"detail"},on:{click:function(n){return t.onSkipIpDetail(e.ip,"",e)}}})],1),!e.ip.includes("*")&&e.service&&e.service.name?i("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.open_link"),placement:"top"}},[i("a",{attrs:{target:"_blank",href:t.ipv4OrIpv6OrDomainHref(e),rel:t.ipv4OrIpv6OrDomainHref(e).includes(t.quakeDomain)?"":"noreferrer noopener nofollow"}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"forward"}})],1)]):t._e(),"quake_service"===t.searchList.selectIndex&&t.role?i("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.query_ip_class_c"),placement:"top"}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"ipC"},on:{click:function(n){return t.onSearchMore("ip",e.ip+"/24","ipC")}}})],1):t._e(),e.service&&e.service.http&&t.filterHuntingMenu.length>0?i("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.one_key_hunting"),placement:"top"}},[i("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommandHunting}},[i("div",{staticClass:"icon-container"},[i("svg-icon",{staticClass:"svg svg-hunting",attrs:{"icon-class":"hunting"}})],1),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.filterHuntingMenu(e),(function(e,n){return i("el-dropdown-item",{key:n,attrs:{command:e}},[t._v(" "+t._s(t.$t("search.menuItem."+e.grammar))+" ")])})),1)],1)],1):t._e(),t.judgeIfAllowFnTag&&!t.searchList.latest&&"quake_host"!==t.searchList.selectIndex?i("el-tooltip",{attrs:{content:t.$t("search.add_tags"),placement:"top"}},[i("div",{staticClass:"icon-container",on:{click:function(n){return t.handleShowAddTag(e.id)}}},[i("svg-icon",{staticClass:"svg add-tags-icon",attrs:{"icon-class":"add_tags"}}),i("svg-icon",{staticClass:"new-tag-icon",attrs:{"icon-class":"newTag"}})],1)]):t._e(),"quake_host"!==t.searchList.selectIndex&&e.location?i("div",{staticClass:"country-container",class:{"active-country":e.location.district_cn}},[e.location&&e.location.district_cn?i("span",{staticClass:"hight-precision"},[t._v("高精")]):t._e(),i("i",{class:[t.formatFlagClass(e.location.country_code),"flag",t.getClassRuishi(e.location.country_cn)]}),i("span",{staticClass:"address"},[e.location.country_cn?i("span",{on:{click:function(n){return t.onSearchMore("country_cn",e.location.country_cn)}}},[t._v(" "+t._s(e.location.country_cn)+" ")]):t._e(),e.location.province_cn?i("span",{on:{click:function(n){return t.onSearchMore("province_cn",e.location.province_cn)}}},[t._v(" "+t._s(e.location.province_cn)+" ")]):t._e(),e.location.city_cn?i("span",{on:{click:function(n){return t.onSearchMore("city_cn",e.location.city_cn)}}},[t._v(" "+t._s(e.location.city_cn)+" ")]):t._e()])]):t._e(),"quake_host"!==t.searchList.selectIndex&&e.tags&&e.tags.length?i("div",{staticClass:"type-tags type-tag-result"},[i("div",[i("TagLabel",{attrs:{tag:e.tags[0],"has-close":!0},on:{closeTag:function(n){return t.handleDeleteTag(e.tags[0],e.id)}},nativeOn:{click:function(n){return t.onSearchMore("tag_new",e.tags[0])}}})],1),e.tags.length>1?i("el-popover",{staticClass:"popover-container",attrs:{placement:"bottom",offset:-50,width:"600",trigger:"click"}},[i("div",{staticClass:"tag-popover"},t._l(e.tags.slice(1),(function(n){return i("div",{key:n.id,staticClass:"tag-label-wrap",staticStyle:{width:"32%"}},[i("TagLabel",{attrs:{tag:n,"bind-show-tip":"disable",width:"width-100","has-close":!0},on:{closeTag:function(i){return t.handleDeleteTag(n,e.id)}},nativeOn:{click:function(e){return t.onSearchMore("tag_new",n)}}})],1)})),0),i("span",{staticClass:"tags-more",attrs:{slot:"reference"},slot:"reference"},[t._v("+"+t._s(e.tags.length-1))])]):t._e()],1):t._e()],1),i("div",{staticClass:"time"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"outlineClock"}}),i("span",[t._v(t._s(t.dayjs(e.time).format("YYYY-MM-DD HH:mm:ss")))])],1)]),i("div",{staticClass:"item-container-content"},[t.isQuakeCertificate?i("div",{staticClass:"left-abstract",style:{width:"50%"}},[i("div",{staticClass:"certificate-label"},t._l(e.labels,(function(e){return i("span",{key:e,staticClass:"certificate-label-item",class:{untrust:"untrusted"===e,trust:"trusted"===e,valid:"unexpired"===e,expired:"expired"===e},on:{click:function(n){return t.onSearchMore("labels",t.certificateLabel[e]||e)}}},[t._v(t._s(t.certificateLabel[e]||e))])})),0),i("div",{staticClass:"item-content-bottom"},[i("div",{staticClass:"content-bottom-left content-bottom-common",style:{width:"100%"}},[i("div",{staticClass:"item",on:{click:function(n){t.onSearchMore("parsed.subject_dn",t._.get(e,"parsed.subject_dn"))}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.subject_info")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:t._.get(e,"parsed.subject_dn"),placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":t._.get(e,"parsed.subject_dn")||""},on:{dblclick:function(n){t.copy("copy_btn",t._.get(e,"parsed.subject_dn"))}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(t._.get(e,"parsed.subject_dn")||"--"))])])])],1),i("div",{staticClass:"item",on:{click:function(n){t.onSearchMore("parsed.issuer_dn",t._.get(e,"parsed.issuer_dn"))}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.issuer_info")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:t._.get(e,"parsed.issuer_dn"),placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":t._.get(e,"parsed.issuer_dn")||""},on:{dblclick:function(n){t.copy("copy_btn",t._.get(e,"parsed.issuer_dn"))}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(t._.get(e,"parsed.issuer_dn","--")))])])])],1),i("div",{staticClass:"item",on:{click:function(n){t.onSearchByQueryString(t.getValidTimeGrammar(e))}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.validity_period_certificate")))]),t._.get(e,"parsed.validity_period.not_before")?i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:t.formatCertificateValidateTime(e),disabled:!t._.get(e,"parsed.validity_period.not_before"),placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":t.formatCertificateValidateTime(e)||""},on:{dblclick:function(n){t.copy("copy_btn",t.formatCertificateValidateTime(e))}}},[i("span",{staticClass:"ellipse-text"},[t._v(" "+t._s(t.formatCertificateValidateTime(e))+" ")])])]):i("span",[t._v("--")])],1),i("div",{staticClass:"item",on:{click:function(n){t.onSearchMore("parsed.serial_number",t._.get(e,"parsed.serial_number"))}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.serial_number")))]),t._.get(e,"parsed.serial_number")?i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:t._.get(e,"parsed.serial_number"),disabled:!t._.get(e,"parsed.serial_number"),placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":t._.get(e,"parsed.serial_number")||""},on:{dblclick:function(n){t.copy("copy_btn",t._.get(e,"parsed.serial_number"))}}},[i("span",{staticClass:"ellipse-text"},[t._v(" "+t._s(t._.get(e,"parsed.serial_number")||"--")+" ")])])]):t._e()],1)])])]):i("div",{staticClass:"left-abstract",style:{width:"quake_host"!==t.searchList.selectIndex?"50%":"30%"}},[i("div",{staticClass:"port-line"},[i("span",{staticClass:"port-line-left"},["quake_host"===t.searchList.selectIndex&&e.location?i("div",{staticClass:"country-container",class:{"active-country":e.location.district_cn}},[e.location&&e.location.district_cn?i("span",{staticClass:"hight-precision"},[t._v("高精")]):t._e(),i("i",{class:[t.formatFlagClass(e.location.country_code),"flag",t.getClassRuishi(e.location.country_cn)]}),i("span",{staticClass:"address"},[e.location.country_cn?i("span",{on:{click:function(n){return t.onSearchMore("country_cn",e.location.country_cn)}}},[t._v(" "+t._s(e.location.country_cn)+" ")]):t._e(),e.location.province_cn?i("span",{on:{click:function(n){return t.onSearchMore("province_cn",e.location.province_cn)}}},[t._v(" "+t._s(e.location.province_cn)+" ")]):t._e(),e.location.city_cn?i("span",{on:{click:function(n){return t.onSearchMore("city_cn",e.location.city_cn)}}},[t._v(" "+t._s(e.location.city_cn)+" ")]):t._e()])]):[e.port?i("span",{staticClass:"port common-tag margin-right8",on:{click:function(n){return t.onSearchMore("port",e.port)}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"port"}}),t._v(" "+t._s(e.port)+" ")],1):t._e(),e.service&&e.service.name?i("span",{staticClass:"server-protocol common-tag margin-right8",on:{click:function(n){return t.onSearchMore("service",e.service.name)}}},[t._v(" "+t._s(e.service.name)+" ")]):t._e(),t.judgeHasCert(e.service)?i("span",{staticClass:"margin-right8"},[t.judgeIsTrustCert(e.service)?i("span",{staticClass:"common-tag trust-cert"},[i("svg-icon",{attrs:{"icon-class":"trust"}}),i("span",{staticClass:"trust-cert-text"},[t._v("证书可信")])],1):i("span",{staticClass:"common-tag distrust-cert"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"not_trust"}}),i("span",{staticClass:"distrust-cert-text"},[t._v("证书不可信")])],1)]):t._e(),e.sys_tag&&e.sys_tag.length?i("span",t._l(e.sys_tag,(function(e){return i("span",{key:e,staticClass:"common-tag cdn-tag margin-right8",class:{"allow-click":t.role>=2},on:{click:function(n){return t.handleJudgeCdnSearch("sys_tag",e)}}},[i("svg-icon",{staticClass:"svg cdn-icon",attrs:{"icon-class":t.getCdnIcon.get(e)}}),i("span",[t._v(t._s(e))])],1)})),0):t._e()],e.threat&&e.threat.tags&&e.threat.tags.length>0?i("div",{staticClass:"port-line-center"},[t._l(e.threat.tags,(function(e,n){return i("el-tooltip",{key:n,attrs:{placement:"top",content:String(e)}},[0===n||1===n?i("div",{staticClass:"port-line-center-result-div",on:{click:function(n){return t.onSearchMore("sys_tag",e)}}},[i("span",[t._v(t._s(e))])]):t._e()])})),e.threat.tags.length>2?i("el-popover",{attrs:{placement:"bottom",trigger:"click","popper-class":"popover-port-line-center-result-div"}},[i("div",{staticClass:"popover-port-line-center-result-tootip-div"},t._l(e.threat.tags,(function(e,n){return i("el-tooltip",{key:n,attrs:{placement:"top",content:String(e)}},[0!==n&&1!==n?i("div",{staticClass:"port-line-center-result-div",on:{click:function(n){return t.onSearchMore("sys_tag",e)}}},[i("span",[t._v(t._s(e))])]):t._e()])})),1),i("span",{staticClass:"component-box-count-num",staticStyle:{background:"none","vertical-align":"top"},attrs:{slot:"reference"},slot:"reference"},[t._v("+"+t._s(e.threat.tags.length-2))])]):t._e()],2):t._e()],2),i("span",{staticClass:"port-line-right"},[e.transport?i("span",{staticClass:"port-line-right-item",on:{click:function(n){return t.onSearchMore("transport",e.transport)}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultTcp"}}),i("span",[t._v(t._s(e.transport))])],1):t._e(),e.service&&e.service.http&&e.service.http.host&&!t.checkIp(e.service.http.host)?i("span",{staticClass:"port-line-right-item ml-10 copy_btn",attrs:{"data-clipboard-text":e.ip+(e.port?":"+e.port:"")},on:{click:function(n){return t.onSearchMore("ip",e.ip)},dblclick:function(n){return t.copy("copy_btn",e.ip)}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"domain"}}),i("span",[t._v(t._s(e.ip))])],1):t._e()])]),e.cdn&&e.cdn.is_cdn&&e.cdn.domain?i("div",[i("div",{staticClass:"title-line"},[i("span",{staticClass:"svg-container"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultLink"}})],1),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.cdn.domain,placement:"top-start"}},[i("span",{staticClass:"title copy_btn",attrs:{"data-clipboard-text":e.cdn.domain},on:{dblclick:function(n){return t.copy("copy_btn",e.cdn.domain)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.cdn.domain))])])])],1)]):e.cdn&&e.cdn.is_cdn&&!e.cdn.domain?i("div",[i("div",{staticClass:"title-line"},[i("span",{staticClass:"svg-container"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultLink"}})],1),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:"自动更新未成功",placement:"top-start"}},[i("span",{staticClass:"title copy_btn",attrs:{"data-clipboard-text":"自动更新未成功"},on:{dblclick:function(e){return t.copy("copy_btn","自动更新未成功")}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s("自动更新未成功"))])])])],1)]):i("div",[e.service&&e.service.http&&e.service.http.title?i("div",{staticClass:"title-line",on:{click:function(n){return t.onSearchMore("title",e.service.http.title)}}},[i("span",{staticClass:"svg-container"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultLink"}})],1),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.service.http.title,placement:"top-start"}},[i("span",{staticClass:"title copy_btn common-ellipse",attrs:{"data-clipboard-text":e.service.http.title},on:{dblclick:function(n){return t.copy("copy_btn",e.service.http.title)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.service.http.title))])])])],1):t._e()]),e.vulnerability&&e.vulnerability.name?i("div",{staticClass:"title-line",on:{click:function(n){return t.onSearchMore("vul_name",e.vulnerability.name)}}},[i("span",{staticClass:"svg-container"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"searchResultLink"}})],1),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.vulnerability.name,placement:"top-start"}},[i("span",{staticClass:"title copy_btn",attrs:{"data-clipboard-text":e.vulnerability.name},on:{dblclick:function(n){return t.copy("copy_btn",e.vulnerability.name)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.vulnerability.name))])])])],1):t._e(),i("div",{staticClass:"item-content-bottom"},[i("div",{staticClass:"content-bottom-left content-bottom-common",style:{width:"quake_host"!==t.searchList.selectIndex?"50%":"100%"}},["quake_host"===t.searchList.selectIndex?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("hostname",e.hostname)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.hostname")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.hostname,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.hostname||""},on:{dblclick:function(n){return t.copy("copy_btn",e.hostname)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.hostname||"--"))])])])],1):t._e(),e.unicode_domain?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("unicode_domain",e.unicode_domain)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.chn_domain")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:String(e.unicode_domain),placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.unicode_domain||""},on:{dblclick:function(n){return t.copy("copy_btn",e.unicode_domain)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.unicode_domain||"--"))])])])],1):t._e(),i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("asn",e.asn)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.asn")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:String(e.asn),placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.asn||""},on:{dblclick:function(n){return t.copy("copy_btn",e.asn)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.asn||"--"))])])])],1),i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("org",e.org)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.org")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.org,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.org||""},on:{dblclick:function(n){return t.copy("copy_btn",e.org)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.org||"--"))])])])],1),i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("isp",e.location.isp)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.isp")))]),e.location?i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.location.isp,disabled:!e.location.isp,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.location.isp||""},on:{dblclick:function(n){return t.copy("copy_btn",e.location.isp)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.location.isp||"--"))])])]):t._e()],1),i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("owner",e.location.owner)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.owner")))]),e.location&&e.location?i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.location.owner,disabled:!e.location.owner,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.location.owner||""},on:{dblclick:function(n){return t.copy("copy_btn",e.location.owner)}}},[i("span",{staticClass:"ellipse-text"},[t._v(" "+t._s(e.location.owner||"--")+" ")])])]):t._e()],1)]),"quake_host"!==t.searchList.selectIndex?i("div",{staticClass:"content-bottom-right content-bottom-common"},["quake_vulnerability"===t.searchList.selectIndex?[e.vulnerability&&e.vulnerability.number?i("div",{staticClass:"item"},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.vul_number")))]),i("span",{staticClass:"vul-number-box"},[t._l(e.vulnerability.number,(function(e,n){return[i("span",{key:n,staticClass:"value"},[i("el-tooltip",{attrs:{content:e,placement:"top-start"}},[i("span",{staticClass:"copy_btn",attrs:{"data-clipboard-text":e||""},on:{click:function(n){return t.onSearchMore("vul",e)},dblclick:function(n){return t.copy("copy_btn",e)}}},[t._v(" "+t._s(e)+" ")])]),e.includes("QH")?i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"forward"},on:{click:function(n){return t.onSkipVulDetail(e)}}}):t._e()],1)]}))],2)]):t._e(),e.vulnerability&&e.vulnerability.type?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("vul_type",e.vulnerability.type)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.vul_type")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.vulnerability.type,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.vulnerability.type||""},on:{dblclick:function(n){return t.copy("copy_btn",e.vulnerability.type)}}},[i("span",{staticClass:"ellipse-text"},[t._v(" "+t._s(e.vulnerability.type)+" ")])])])],1):t._e(),e.vulnerability&&e.vulnerability.level?i("div",{staticClass:"item vul-level",on:{click:function(n){return t.onSearchMore("vul_level",e.vulnerability.level)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.vul_level")))]),i("span",{staticClass:"value copy_btn",style:{color:t.levelColorMapping.get(e.vulnerability.level)},attrs:{"data-clipboard-text":e.vulnerability.level||""},on:{dblclick:function(n){return t.copy("copy_btn",e.vulnerability.level)}}},[i("span",{staticClass:"ellipse-text"},[t._v(" "+t._s(e.vulnerability.level)+" ")])])]):t._e()]:t._e(),"quake_service"===t.searchList.selectIndex||t.isQuakeTippingPoint?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("server",e.service&&e.service.http&&e.service.http.server)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.server")))]),e.service&&e.service.http&&e.service.http.server?i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.service.http.server.substring(0,100),disabled:!e.service.http.server,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.service.http.server||""},on:{dblclick:function(n){return t.copy("copy_btn",e.service.http.server)}}},[i("span",{staticClass:"ellipse-text"},[t._v(" "+t._s(e.service.http.server)+" ")])])]):i("span",{staticClass:"value"},[t._v("--")])],1):t._e(),"quake_service"===t.searchList.selectIndex||t.isQuakeTippingPoint?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("powered_by",e.service&&e.service.http&&e.service.http.x_powered_by)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.powered_by")))]),e.service&&e.service.http&&e.service.http.x_powered_by?i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.service.http.x_powered_by,disabled:!e.service.http.x_powered_by,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.service.http.x_powered_by||""},on:{dblclick:function(n){return t.copy("copy_btn",e.service.http.x_powered_by)}}},[i("span",{staticClass:"ellipse-text"},[t._v(" "+t._s(e.service.http.x_powered_by)+" ")])])]):i("span",{staticClass:"value"},[t._v("--")])],1):t._e(),"quake_service"===t.searchList.selectIndex||t.isQuakeTippingPoint?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("http_path",e.service&&e.service.http&&e.service.http.path)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.http_path")))]),e.service&&e.service.http&&e.service.http.path?i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.service.http.path,disabled:!e.service.http.path,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.service.http.path||""},on:{dblclick:function(n){return t.copy("copy_btn",e.service.http.path)}}},[i("span",{staticClass:"ellipse-text"},[t._v(" "+t._s(e.service.http.path)+" ")])])]):i("span",{staticClass:"value"},[t._v("--")])],1):t._e(),"quake_service"===t.searchList.selectIndex||t.isQuakeTippingPoint?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("hostname",e.hostname)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.hostname")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.hostname,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.hostname||""},on:{dblclick:function(n){return t.copy("copy_btn",e.hostname)}}},[i("span",{staticClass:"ellipse-text"},[t._v(" "+t._s(e.hostname||"--")+" ")])])])],1):t._e()],2):t._e()]),"quake_service"==t.searchList.selectIndex&&e.hasSubject?i("div",{staticClass:"item-content-bottom-other"},[e.O?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("cert",e.O)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.cert_application_unit")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.O,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.O||""},on:{dblclick:function(n){return t.copy("copy_btn",e.O)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.O))])])])],1):t._e(),e.OU?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("cert",e.OU)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.cert_application_department")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.OU,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.OU||""},on:{dblclick:function(n){return t.copy("copy_btn",e.OU)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.OU))])])])],1):t._e(),e.CN?i("div",{staticClass:"item",on:{click:function(n){return t.onSearchMore("cert",e.CN)}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.cert_application_common_name")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:e.CN,placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":e.CN||""},on:{dblclick:function(n){return t.copy("copy_btn",e.CN)}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(e.CN))])])])],1):t._e(),t.getEmailAddress(e)?i("div",{staticClass:"item",on:{click:function(n){t.onSearchMore("cert",t.getEmailAddress(e))}}},[i("span",{staticClass:"label"},[t._v(t._s(t.$t("search.result_detail.cert_application_email")))]),i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{content:t.getEmailAddress(e),placement:"top-start"}},[i("span",{staticClass:"value copy_btn",attrs:{"data-clipboard-text":t.getEmailAddress(e)||""},on:{dblclick:function(n){t.copy("copy_btn",t.getEmailAddress(e))}}},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(t.getEmailAddress(e)))])])])],1):t._e()]):t._e(),e.components&&e.components.length?i("div",{staticClass:"compontent-container"},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.view_all"),placement:"top"}},[i("div",{staticClass:"svg-box",class:t.getThemeClass,on:{click:function(n){return t.onViewComponentDialog(e.components)}}},[i("svg-icon",{attrs:{"icon-class":"component"}})],1)]),i("div",{staticClass:"component-box"},[t._l(e.components,(function(e,n){return i("span",{key:n,staticClass:"component-item",style:{display:n>3&&3!==n?"none":"inline-block"},on:{click:function(n){return t.onSearchMore("app",e.product_name_cn)}}},[i("SpanImageComponent",{staticClass:"component-logo",attrs:{src:t.productLogoPrefix+e.product_name_cn}}),i("el-tooltip",{attrs:{effect:"dark",content:e.product_name_cn,placement:"top"}},[i("span",{staticClass:"js-app-component"},[i("span",{staticClass:"content ellipse-text"},[t._v(t._s(e.product_name_cn))])])])],1)})),e.components.length>4&&4!==e.components.length?i("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"component-box-count-num",on:{click:function(n){return t.onViewComponentDialog(e.components)}}},[t._v("+"+t._s(e.components.length-4))])]):t._e()],2)],1):t._e()]),i("div",{staticClass:"right-detail"},["quake_service"===t.searchList.selectIndex?[i("ResultRightPanel",{on:{"tab-click":function(e){return t.onClickTab(e,r)}},scopedSlots:t._u([{key:"tab",fn:function(){return[t.role&&e.images&&e.images.length&&e.currentImg&&e.currentImg.data||e.service&&"undefined"!==typeof e.service.response?i("el-tab-pane",{attrs:{label:t.$t("search.port_response"),name:"port_response"}},[i("el-row",[e.images&&e.images.length?i("el-col",{attrs:{span:12}},[t.role&&e.currentImg.isShow?i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},[i("span",{staticClass:"copy-btn",class:"copy"+r+1,attrs:{"data-clipboard-text":JSON.stringify(e.images)},on:{click:function(e){return t.copy("copy"+r+1,"rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1)]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAll(e,"image")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),e.currentImg.isShow?i("div",{staticClass:"code-area img-area"},[i("div",{staticClass:"detail-container"},[e.currentImg&&e.currentImg.data?[i("el-image",{staticClass:"post-img",attrs:{src:"data:"+e.currentImg.mime+";base64,"+e.currentImg.data,"preview-src-list":["data:"+e.currentImg.mime+";base64,"+e.currentImg.data]}}),i("div",{staticClass:"tag-container"},[t._l(e.currentImg.tags,(function(e,n){return[n<3?i("span",{key:n,staticClass:"tag"},[t._v(t._s(e))]):t._e()]}))],2)]:e.currentImg&&e.currentImg.s3_url?[i("el-image",{staticClass:"post-img",attrs:{src:e.currentImg.s3_url,"preview-src-list":[e.currentImg.s3_url]}}),i("div",{staticClass:"tag-container"},[t._l(e.currentImg.tags,(function(e,n){return[n<3?i("span",{key:n,staticClass:"tag"},[t._v(t._s(e))]):t._e()]}))],2)]:t._e()],2),e.images.length>1?i("div",{staticClass:"history-img-container"},t._l(e.images,(function(e,n){return i("div",{key:n,staticClass:"item-img-box",on:{click:function(n){return t.onChangeHistory(e,r)}}},[i("img",{attrs:{src:"data:"+e.mime+";base64,"+e.data,alt:"暂无图片"}}),e.time?i("div",{staticClass:"date-line"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"clock"}}),i("span",[t._v(t._s(t.dayjs(e.time).format("YYYY-MM-DD HH:mm:ss")))])],1):t._e()])})),0):t._e()]):t._e()]):t._e(),t.role?t._e():i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onLogin}},[t._v("登录")])])]):t._e(),i("el-col",{attrs:{span:e.images&&e.images.length&&e.currentImg.isShow?12:24}},[e.service&&""!==e.service.response?i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box complex-operat-box-response",class:t.getThemeClass},[e.redirectTimes?i("div",{staticClass:"redirect-times"},[t._v(" 跳转次数("+t._s(e.redirectTimes)+") ")]):t._e(),i("div",{staticClass:"operat-bottom",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},["暂无权限"!==e.service.response?i("span",{staticClass:"copy-btn",class:"copy"+r+"0",attrs:{"data-clipboard-text":e.service.response},on:{click:function(e){return t.copy("copy"+r+"0","rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1):t._e()]),e.service&&e.service.http&&e.service.http.body&&null!==e.service.http.body&&""!==e.service.http.body&&void 0!==e.service.http.body?i("el-tooltip",{attrs:{content:t.$t("search.see_all_main_body"),placement:"top"}},[t.role&&"暂无权限"!==e.service.response?i("span",{staticClass:"copy-btn",staticStyle:{right:"85px"},on:{click:function(n){return t.onSeeMainBody(e,"response","service.response")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"查看正文@1x"}})],1):t._e()]):t._e(),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAll(e,"response")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1)]),"暂无权限"!==e.service.response?i("div",{staticClass:"code-area"},[i("code",[i("pre",{domProps:{innerHTML:t._s(t.xss.process(e.service.response))}})])]):t.role?t.isNameVerified?t._e():i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onCertificate}},[t._v("实名认证")])]):i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onLogin}},[t._v("登录")])])]):i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("NoData",{attrs:{noDataConfig:t.noDataConfig}})],1)])],1)],1):t._e(),t.hasRecommend?i("el-tab-pane",{attrs:{label:t.$t("search.grammar_referral"),name:"grammar_referral"}},[i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"item.loading"}],staticClass:"feature-table",attrs:{data:e.feature,border:"","show-header":!0,"max-height":e.height?e.height-20:100,"header-cell-style":t.getHeaderCeilStyleByTheme,"cell-style":t.getHeaderCeilStyleByTheme}},[i("el-table-column",{attrs:{width:"50",type:"index",label:t.$t("search.result_detail.name")}}),i("el-table-column",{attrs:{prop:"grammar",width:"auto",label:t.$t("search.result_detail.grammar")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.grammar?i("span",{staticStyle:{cursor:"pointer"},on:{click:function(n){return t.onSearchGrammar(e.row.grammar)}}},[t._v(t._s(e.row.grammar))]):i("span",[t._v("-")])]}}],null,!0)},[i("template",{slot:"header"},[i("div",{staticClass:"feature-wrap"},[i("span",[t._v("特征")]),i("div",{staticClass:"gpt-recommend",on:{click:function(n){return t.handleShowFeatureRecommend(e,r)}}},[i("img",{staticClass:"gpt-earth",attrs:{src:n("02db"),alt:""}}),i("span",[t._v(t._s(t.$t("search.gpt_intelligent_recommend")))])])])])],2),i("el-table-column",{attrs:{width:"120px",prop:"amount",label:t.$t("search.result_detail.data_count")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.loading?i("i",{staticClass:"el-icon-loading"}):i("span",[t._v(t._s(e.row.amount&&e.row.amount.toLocaleString()))])]}}],null,!0)})],1)],1)]):t._e(),t.role>=2&&("unknown/ssl"===e.service.name||"unknown"===e.service.name)?i("el-tab-pane",{attrs:{label:"AI协议识别",name:"AI协议识别"}},[i("div",{staticClass:"port-response",staticStyle:{overflow:"auto"},style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},[i("span",{staticClass:"copy-btn",class:"copy"+r+1,on:{click:function(n){return t.copyText(e.aiAgreements)}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1)]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAll(e,"ai")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"item.loading"}],staticStyle:{size:"14px","line-height":"20px",padding:"12px 13px",background:"rgba(234, 237, 242, 0.3)","white-space":"pre-wrap"},style:{height:e.height-45+"px"}},[i("div",[t._v(t._s(e.aiAgreements))])])])]):t._e(),e.service&&e.service.cert?i("el-tab-pane",{attrs:{label:t.$t("search.ssl_cert"),name:"证书"}},[i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},["暂无权限"!==e.service.cert?i("span",{staticClass:"copy-btn",class:"copy"+r+"2",attrs:{"data-clipboard-text":e.service.cert},on:{click:function(e){return t.copy("copy"+r+"2","rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1):t._e()]),i("el-tooltip",{attrs:{content:"分词",placement:"top"}},["暂无权限"!==e.service.cert?i("span",{staticClass:"copy-btn",staticStyle:{right:"85px"},on:{click:function(n){return t.onSplitWord(e,"cert","service.cert")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"splitWord"}})],1):t._e()]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAll(e,"cert")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),"暂无权限"!==e.service.cert?i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.service.cert,expression:"item.service.cert"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.service.cert},on:{input:function(n){n.target.composing||t.$set(e.service,"cert",n.target.value)}}}):t.role?t.isNameVerified?t._e():i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onCertificate}},[t._v("实名认证")])]):i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onLogin}},[t._v("登录")])])])]):t._e(),e.service?t._l(e.service.protocalList,(function(n,o){return i("el-tab-pane",{key:o,attrs:{label:n,name:r+n}},[i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},[JSON.stringify(e.service).includes("暂无权限")?t._e():i("span",{staticClass:"copy-btn",class:"copy"+r+n,attrs:{"data-clipboard-text":JSON.stringify(e.service[n])},on:{click:function(e){return t.copy("copy"+r+n,"rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1)]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(i){return t.onShowAll(e,n)}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),JSON.stringify(e.service).includes("暂无权限")?t.role?t.isNameVerified?t._e():i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onCertificate}},[t._v("实名认证")])]):i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onLogin}},[t._v("登录")])]):i("VJsoneditor",{attrs:{options:t.jsonEditorOptions,plus:!1,height:e.height-42+"px"},model:{value:e.service[n],callback:function(i){t.$set(e.service,n,i)},expression:"item.service[p]"}})],1)])})):t._e(),t.role>1&&e.service&&e.service.http&&e.service.http.robots?i("el-tab-pane",{attrs:{label:"robots",name:"robots"}},[e.service.http.robots?i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},["暂无权限"!==e.service.http.robots?i("span",{staticClass:"copy-btn",class:"copy"+r+"3",attrs:{"data-clipboard-text":e.service.http.robots},on:{click:function(e){return t.copy("copy"+r+"3","rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1):t._e()]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAll(e,"robots")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),"暂无权限"!==e.service.http.robots?i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.service.http.robots,expression:"item.service.http.robots"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.service.http.robots},on:{input:function(n){n.target.composing||t.$set(e.service.http,"robots",n.target.value)}}}):t.isNameVerified?t._e():i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onCertificate}},[t._v("实名认证")])])]):i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("NoData",{attrs:{noDataConfig:t.noDataConfig}})],1)]):t._e(),t.role>1&&e.service&&e.service.http&&e.service.http.sitemap?i("el-tab-pane",{attrs:{label:"sitemap",name:"sitemap"}},[e.service.http.sitemap?i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},["暂无权限"!==e.service.http.sitemap?i("span",{staticClass:"copy-btn",class:"copy"+r+"4",attrs:{"data-clipboard-text":e.service.http.sitemap},on:{click:function(e){return t.copy("copy"+r+"4","rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1):t._e()]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAll(e,"sitemap")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),"暂无权限"!==e.service.http.sitemap?i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.service.http.sitemap,expression:"item.service.http.sitemap"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.service.http.sitemap},on:{input:function(n){n.target.composing||t.$set(e.service.http,"sitemap",n.target.value)}}}):t.isNameVerified?t._e():i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onCertificate}},[t._v("实名认证")])])]):i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("NoData",{attrs:{noDataConfig:t.noDataConfig}})],1)]):t._e(),t.role>1&&e.service&&e.service.http&&e.service.http.security_text?i("el-tab-pane",{attrs:{label:"security_text",name:"security_text"}},[e.service.http.security_text?i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},["暂无权限"!==e.service.http.security_text?i("span",{staticClass:"copy-btn",class:"copy"+r+"5",attrs:{"data-clipboard-text":e.service.http.security_text},on:{click:function(e){return t.copy("copy"+r+"5","rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1):t._e()]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAll(e,"security_text")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),"暂无权限"!==e.service.http.security_text?i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.service.http.security_text,expression:"item.service.http.security_text"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.service.http.security_text},on:{input:function(n){n.target.composing||t.$set(e.service.http,"security_text",n.target.value)}}}):t.isNameVerified?t._e():i("div",{staticClass:"no-data"},[t._v(" 暂无权限，请前往"),i("span",{staticClass:"emphasize-txt",on:{click:t.onCertificate}},[t._v("实名认证")])])]):i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("NoData",{attrs:{noDataConfig:t.noDataConfig}})],1)]):t._e()]},proxy:!0}],null,!0)})]:"quake_host"===t.searchList.selectIndex?[i("IocTable",{staticClass:"host-table",attrs:{tableData:e.services,tableConfig:t.hostTableConfig,tableHeaderConfig:t.hostTableHeaderConfig},scopedSlots:t._u([{key:"status",fn:function(n){return["port"===n.prop?i("span",[n.props?i("span",{staticClass:"common port",on:{click:function(e){return t.onSearchMore("port",n.props)}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"port"}}),t._v(" "+t._s(n.props)+" ")],1):i("span",[t._v("-")])]):t._e(),"name"===n.prop?i("span",[n.props?i("span",{staticClass:"common transport",on:{click:function(e){return t.onSearchMore("service",n.props)}}},[t._v(" "+t._s(n.props)+" ")]):i("span",[t._v("-")])]):t._e(),"cert"===n.prop?i("span",{on:{click:function(n){return t.onSkipIpDetail(e.ip,"Cert",e)}}},[n.props?i("svg-icon",{staticClass:"cert",attrs:{"icon-class":"cert"}}):i("span",[t._v("-")])],1):t._e(),"product"===n.prop?i("span",[n.row.components&&n.row.components.length?i("div",{staticClass:"compontent-container"},[i("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.view_all"),placement:"top"}},[i("div",{staticClass:"svg-box",class:t.getThemeClass,on:{click:function(e){return t.onViewComponentDialog(n.row.components)}}},[i("svg-icon",{attrs:{"icon-class":"component"}})],1)]),i("div",{staticClass:"component-box"},t._l(n.row.components,(function(e,n){return i("span",{key:n,staticClass:"component-item",on:{click:function(n){return t.onSearchMore("app",e.product_name_cn)}}},[i("span",{staticClass:"content"},[t._v(" "+t._s(e.product_name_cn)+" ")])])})),0)],1):n.props?i("span",{staticClass:"product",on:{click:function(e){return t.onSearchMore("product",n.props)}}},[t._v(t._s(n.props))]):i("span",[t._v("-")])]):t._e()]}}],null,!0)})]:t.isQuakeTippingPoint?[i("ResultRightPanel",{on:{"tab-click":function(n){t.onClickTippingPointTab(n,r,t.tippingPointSafeInformationPdf(e))}},scopedSlots:t._u([{key:"tab",fn:function(){return[t.tippingPointSafeInform6Tab(e)?i("el-tab-pane",{attrs:{label:"安全情报",name:"安全情报"}},[i("el-row",[t._.get(t.tippingPointSafeInform(e),"filename")?i("el-col",{attrs:{span:12}},[i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"code-area img-area"},[i("div",{staticClass:"detail-container"},[[i("el-image",{staticClass:"post-img",attrs:{src:t._.get(e,"vuls[0].tipping_point").filter((function(t){return!!t.filename}))[0].filename,"preview-src-list":[t._.get(e,"vuls[0].tipping_point").filter((function(t){return!!t.filename}))[0].filename]}})]],2)])])]):t._e(),i("el-col",{attrs:{span:t._.get(t.tippingPointSafeInform(e),"filename")?12:24}},[i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("ResultRightPanel",{staticClass:"safe-inform-sub-tab",scopedSlots:t._u([{key:"tab",fn:function(){return[t._l(t.tabOptionList,(function(n,o){return[t._.get(e,"vuls[0]."+n.key)&&t._.get(e,"vuls[0]."+n.key).length?i("el-tab-pane",{key:o,attrs:{label:n.name,name:n.name}},[i("div",{staticClass:"complex-operat-box complex-operat-box-safe-inform",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},[i("span",{staticClass:"copy-btn",class:"copy"+r+"0",on:{click:function(i){t.copyText(JSON.stringify(t._.get(e,"vuls[0]."+n.key)))}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1)]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAllTippingPoint(e,"response")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),i("ul",{staticClass:"main-item-body main-item-window",class:e[n.key+"Expand"]?"auto":"hidden"},t._l(t._.get(e,"vuls[0]."+n.key),(function(r,o){return i("li",{key:o,staticClass:"main-item-body-li"},[t._.get(e,"vuls[0]."+n.key).length>5&&4===o&&!e[n.key+"Expand"]?[i("div",{staticClass:"expand-li"},[i("span",{on:{click:function(i){return t.handleExpandSafeInformTabItem(e,n.key+"Expand")}}},[t._v("...")])])]:[i("div",{staticClass:"left"},[i("el-tooltip",{directives:[{name:"showtip",rawName:"v-showtip"}],attrs:{effect:"dark",content:r,placement:"top"}},[i("span",{staticClass:"main-item-body-li-text"},[i("span",{staticClass:"ellipse-text"},[t._v(t._s(r))])])])],1),i("svg-icon",{staticClass:"main-item-body-li-svg",attrs:{"icon-class":"search"},on:{click:function(n){return t.handleOpenTippingPointVulProve(e,r)}}}),i("svg-icon",{staticClass:"main-item-body-li-svg",attrs:{"icon-class":"copy"},on:{click:function(e){return t.copyText(r)}}})]],2)})),0)]):t._e()]}))]},proxy:!0}],null,!0)})],1)])],1)],1):t._e(),t._.get(e,"vuls[0].name")?i("el-tab-pane",{attrs:{label:"相关漏洞",name:"相关漏洞"}},[i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"related-vul-body"},[i("div",{staticClass:"related-vul-item"},[i("span",{staticClass:"related-vul-item-tag",class:t.riskLevel[t._.get(e,"vuls[0].level")]},[t._v(t._s(t._.get(e,"vuls[0].level")))]),i("span",[t._v(t._s(t._.get(e,"vuls[0].name")))]),t._.get(e,"vuls[0].number[0]")?i("el-link",{attrs:{target:"_blank",type:"primary",href:"/quake/#/vulDetail/"+t._.get(e,"vuls[0].number[0]")+"/front"}},[t._v(" 查看详情 ")]):t._e()],1),i("div",{staticClass:"related-vul-item"},[i("span",[t._v("漏洞类型")]),i("span",[t._v(t._s(t._.get(e,"vuls[0].type")))])]),i("div",{staticClass:"related-vul-item"},[i("span",[t._v("漏洞编号")]),i("span",[t._v(t._s(t._.get(e,"vuls[0].number[0]")))])]),t._.get(e,"vuls[0].time")?i("div",{staticClass:"related-vul-item"},[i("span",[t._v("漏洞扫描时间")]),i("span",[t._v(t._s(t.dayjs(t._.get(e,"vuls[0].time")).format("YYYY-MM-DD HH:mm:ss")))])]):t._e()])])]):t._e(),i("el-tab-pane",{attrs:{label:"漏洞证明",name:"漏洞证明"}},[t._.get(e,"service.tipping_point.data")?i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},["暂无权限"!==e.service.tipping_point?i("span",{staticClass:"copy-btn",class:"copy"+r+"0",attrs:{"data-clipboard-text":e.service.tipping_point.data},on:{click:function(e){return t.copy("copy"+r+"0","rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1):t._e()]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAllTippingPoint(e,"response")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.service.tipping_point.data,expression:"item.service.tipping_point.data"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.service.tipping_point.data},on:{input:function(n){n.target.composing||t.$set(e.service.tipping_point,"data",n.target.value)}}})]):i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("NoData",{attrs:{noDataConfig:t.noDataConfig}})],1)]),t.tippingPointSafeInformationPdf(e).length?i("el-tab-pane",{directives:[{name:"loading",rawName:"v-loading",value:e.activeTippingPointPdfLoading,expression:"item.activeTippingPointPdfLoading"}],attrs:{label:"相关报告",name:"相关报告"}},[i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[1===t.tippingPointSafeInformationPdf(e).length?i("div",{staticClass:"related-report-body"},[i("el-row",[i("el-col",{attrs:{span:12}},[e.activeTippingPointPdfLoading?t._e():i("iframe",{ref:"pdfIframe",refInFor:!0,class:"js-pdf-iframe"+r,staticStyle:{height:"222px"},attrs:{loading:"lazy",src:"/quake/static/index/pdf64/web/viewframe.html?source=searchResult&sourceIndex="+r},on:{load:function(e){return t.handleLoadPdfIframe(r)}}})]),i("el-col",{attrs:{span:12}},[i("div",{staticClass:"port-response"},[i("div",[t._v("报告更新时间："+t._s(t.tippingPointSafeInformationPdf(e)[0].update_time)+" ")]),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.handlePrevPdfSingle(r)}}},[t._v("在线预览 ")]),i("el-button",{attrs:{type:"text"},on:{click:function(n){t.downLoadPdfSingle(r,t.tippingPointSafeInformationPdf(e)[0])}}},[t._v(" 下载报告 ")])],1)])],1)],1):i("div",{staticClass:"related-report-body"},[i("el-table",{staticStyle:{width:"100%","padding-bottom":"60px"},attrs:{height:"210",data:t.tippingPointSafeInformationPdf(e)}},[i("el-table-column",{attrs:{width:"50",type:"index",label:t.$t("search.result_detail.name")}}),i("el-table-column",{attrs:{prop:"filename",label:"报告名称",width:"180"}}),i("el-table-column",{attrs:{prop:"update_time",label:"报告更新时间",width:"180"}}),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",loading:e.row.loading},on:{click:function(n){return t.handlePrevPdf(e.row)}}},[t._v("在线预览 ")]),i("el-button",{attrs:{type:"text",loading:e.row.downloading},on:{click:function(n){return t.downLoadPdf(e.row)}}},[t._v("下载报告 ")])]}}],null,!0)})],1)],1)])]):t._e()]},proxy:!0}],null,!0)})]:t.isQuakeCertificate?[i("ResultRightPanel",{on:{"tab-click":function(n){return t.onClickCertificateTab(n,e,r)}},scopedSlots:t._u([{key:"tab",fn:function(){return[i("el-tab-pane",{attrs:{label:"Fingerprint",name:"Fingerprint"}},[i("div",{staticClass:"port-response"},[i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("SHA-256")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(t._s(t._.get(e,"fingerprint_sha256","--")))])]),i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("SHA-1")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(t._s(t._.get(e,"fingerprint_sha1","--")))])]),i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("MD5")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(t._s(t._.get(e,"fingerprint_md5","--")))])])])]),i("el-tab-pane",{attrs:{label:"Public Key",name:"Public Key"}},[i("div",{staticClass:"port-response",staticStyle:{"overflow-y":"auto"}},[i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("Key Type")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(t._s(t._.get(e,"parsed.subject_key_info.key_algorithm.name","--")))])]),i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("Modulus")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(t._s(t._.get(e,"parsed.subject_key_info.rsa_public_key.modulus","--")))])]),i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("SPKI SHA-256")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(t._s(t._.get(e,"parsed.subject_key_info.fingerprint_sha256","--")))])])])]),i("el-tab-pane",{attrs:{label:"Signature",name:"Signature"}},[i("div",{staticClass:"port-response",staticStyle:{"overflow-y":"auto"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAllCertificate(e,"signature")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("Algorithm")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(" "+t._s(t._.get(e,"parsed.signature.signature_algorithm.name")+"("+t._.get(e,"parsed.signature.signature_algorithm.oid")+")")+" ")])]),i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("Signature")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(t._s(t._.get(e,"parsed.signature.value","--")))])])])]),i("el-tab-pane",{attrs:{label:"Extensions",name:"Extensions"}},[i("div",{staticClass:"port-response",staticStyle:{"overflow-y":"auto"}},[i("div",{staticClass:"complex-operat-box",class:t.getThemeClass},[i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAllCertificate(e,"extensions")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),i("extensions",{attrs:{item:e},on:{onSearchMore:t.onSearchMore}})],1)]),i("el-tab-pane",{attrs:{label:t.$t("search.related_assets"),name:"related_assets"}},[i("div",{staticClass:"port-response",staticStyle:{height:"200px"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"item.loading"}],staticClass:"certificate-related-table",staticStyle:{"padding-bottom":"60px"},attrs:{data:e.feature,"show-header":!0,height:"180","header-cell-style":t.getHeaderCeilStyleByTheme,"cell-style":t.getHeaderCeilStyleByTheme}},[i("el-table-column",{attrs:{width:"50",type:"index",label:t.$t("search.result_detail.name")}}),i("el-table-column",{attrs:{prop:"ip",width:"auto",label:t.$t("search.result_detail.ip_domain")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.domain||e.row.ip?i("span",{staticStyle:{cursor:"pointer"},on:{click:function(n){return t.onSearchCertificateGrammar(e.row)}}},[t._v(t._s(e.row.domain||e.row.ip))]):i("span",[t._v("-")])]}}],null,!0)},[i("template",{slot:"header"},[i("div",{staticClass:"feature-wrap"},[i("span",[t._v(t._s(t.$t("search.result_detail.ip_domain")))]),i("div",{staticClass:"gpt-recommend",on:{click:function(n){return t.handleShowResFeatureRecommend(e,r)}}},[i("img",{staticClass:"gpt-earth",attrs:{src:n("02db"),alt:""}}),i("span",{staticClass:"gpt-related-asset"},[t._v(t._s(t.$t("search.gpt_related_asset")))])])])])],2),i("el-table-column",{attrs:{width:"200px",prop:"time",label:t.$t("search.result_detail.mapping_time")},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.loading?i("i",{staticClass:"el-icon-loading"}):i("span",[t._v(t._s(t.dayjs(e.row.time).format("YYYY-MM-DD HH:mm:ss")))])]}}],null,!0)})],1)],1)])]},proxy:!0}],null,!0)})]:[i("ResultRightPanel",{scopedSlots:t._u([{key:"tab",fn:function(){return[i("el-tab-pane",{attrs:{label:"漏洞证明",name:"漏洞证明"}},[e.vulnerability&&e.vulnerability.evidence_str?i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box"},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},["暂无权限"!==e.vulnerability.evidence_str?i("span",{staticClass:"copy-btn",class:"copy"+r+"0",attrs:{"data-clipboard-text":e.vulnerability.evidence_str},on:{click:function(e){return t.copy("copy"+r+"0","rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1):t._e()]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(n){return t.onShowAll(e,"response")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.vulnerability.evidence_str,expression:"item.vulnerability.evidence_str"}],staticClass:"code-area",attrs:{disabled:""},domProps:{value:e.vulnerability.evidence_str},on:{input:function(n){n.target.composing||t.$set(e.vulnerability,"evidence_str",n.target.value)}}})]):i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("NoData",{attrs:{noDataConfig:t.noDataConfig}})],1)]),t._l(t.vulTabs,(function(n,o){return[e.vulnerability&&e.vulnerability.evidence&&!t._.isEmpty(e.vulnerability.evidence[n.key])?i("el-tab-pane",{key:o,attrs:{label:n.name,name:n.key}},[i("div",{staticClass:"port-response",style:{height:e.height+"px"}},[i("div",{staticClass:"complex-operat-box"},[i("el-tooltip",{attrs:{content:t.$t("search.copy"),placement:"top"}},["暂无权限"!==e.vulnerability.evidence_str?i("span",{staticClass:"copy-btn",class:"copy"+r+n,attrs:{"data-clipboard-text":JSON.stringify(e.vulnerability.evidence[n.key])},on:{click:function(e){return t.copy("copy"+r+n,"rightTab")}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"copy"}})],1):t._e()]),i("el-tooltip",{attrs:{content:t.$t("search.view_all"),placement:"top"}},[i("span",{staticClass:"copy-btn",on:{click:function(i){return t.onShowAll(e,n)}}},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"viewAll"}})],1)])],1),i("VJsoneditor",{attrs:{options:t.jsonEditorOptions,plus:!1},model:{value:e.vulnerability.evidence[n.key],callback:function(i){t.$set(e.vulnerability.evidence,n.key,i)},expression:"item.vulnerability.evidence[tab.key]"}})],1)]):t._e()]}))]},proxy:!0}],null,!0)})]],2)])])})),0),i("ViewComponent",{attrs:{componentsList:t.componentsConfig.componentsList,viewComponentDialogVisible:t.componentsConfig.viewComponentDialogVisible},on:{changeViewComponentDialogVisible:t.changeViewComponentDialogVisible,onSeachComponent:t.onSearchMore}}),i("AddAsset",{ref:"addAsset",attrs:{data:t.addAssetData}}),i("SimilarAssetSlider",{attrs:{visible:t.similarAssetDialogVisible},on:{"update:visible":function(e){t.similarAssetDialogVisible=e}}}),i("FeatureRecommend",{attrs:{visible:t.featureRecommendData.visible,latest:t.featureRecommendData.latest,data:t.featureRecommendData.data,detail:t.featureRecommendData.detail},on:{searchByFeatureRecommend:t.searchByFeatureRecommend,"update:visible":function(e){return t.$set(t.featureRecommendData,"visible",e)}}}),i("ResFeatureRecommend",{attrs:{title:t.$t("search.gpt_related_asset"),visible:t.resFeatureRecommendData.visible,latest:t.resFeatureRecommendData.latest,data:t.resFeatureRecommendData.data,"table-columns":t.resFeatureRecommendData.tableColumns,"table-header-config":t.resFeatureRecommendData.tableHeaderConfig},on:{"update:visible":function(e){return t.$set(t.resFeatureRecommendData,"visible",e)},searchByFeatureRecommend:t.searchByFeatureRecommend},scopedSlots:t._u([{key:"header",fn:function(){return[i("div",[t._.get(t.resFeatureRecommendData.detail,"parsed.subject.common_name[0]")?i("div",{staticClass:"related-certificate-header"},[t._v(" "+t._s(t._.get(t.resFeatureRecommendData.detail,"parsed.subject.common_name[0]"))+" ")]):t._e(),i("div",{staticClass:"certificate-label"},t._l(t.resFeatureRecommendData.detail.labels,(function(e){return i("span",{key:e,staticClass:"certificate-label-item",class:{untrust:"untrusted"===e,trust:"trusted"===e,valid:"unexpired"===e,expired:"expired"===e}},[t._v(t._s(t.certificateLabel[e]||e))])})),0)])]},proxy:!0}])}),i("CertificateTabDialog",{attrs:{"certificate-label":t.certificateLabel,"dialog-visible":t.certificateDialog.visible,"current-view-all-tab":t.currentViewAllTab,data:t.certificateDialog.data},on:{"update:dialogVisible":function(e){return t.$set(t.certificateDialog,"visible",e)},"update:dialog-visible":function(e){return t.$set(t.certificateDialog,"visible",e)}}},[i("div",{staticClass:"certificate-dialog-content"},["extensions"===t.currentViewAllTab?i("extensions",{attrs:{id:"certificateDialog",item:t.certificateDialog.data},on:{onSearchMore:t.onSearchMore}}):"signature"===t.currentViewAllTab?i("div",{attrs:{id:"certificateDialog"}},[i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("Algorithm")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(" "+t._s(t._.get(t.certificateDialog.data,"parsed.signature.signature_algorithm.name")+"("+t._.get(t.certificateDialog.data,"parsed.signature.signature_algorithm.oid")+")")+" ")])]),i("div",{staticClass:"fingerprint-item"},[i("span",{staticClass:"fingerprint-item-title"},[t._v("Signature")]),i("div",{staticClass:"fingerprint-item-content"},[t._v(t._s(t._.get(t.certificateDialog.data,"parsed.signature.value","--")))])])]):t._e()],1)])],1)},Mg=[],kg=(n("45fc"),n("07ac"),n("4d90"),n("bcb2")),Eg=n.n(kg),Tg=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-drawer",{staticClass:"feature-recommend-container",attrs:{"append-to-body":!0,"custom-class":"feature-recommend-custom",modal:!1,"show-close":!1,size:"32%",direction:"rtl",visible:t.showDrawer},on:{close:t.handleCloseFeatureRecommendDrawer,"update:visible":function(e){t.showDrawer=e}},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticClass:"header"},[i("div",{staticClass:"left"},[i("img",{staticClass:"gpt-img",attrs:{src:n("02db"),alt:""}}),i("span",{staticClass:"title"},[t._v("大模型智能推荐")])]),i("img",{staticClass:"icon-gpt-close",staticStyle:{width:"24px",cursor:"pointer"},attrs:{src:n("46ad"),alt:""},on:{click:t.handleCloseFeatureRecommendDrawer}})])]},proxy:!0}])},[i("div",{staticClass:"feature-recommend-body"},[i("div",{staticClass:"detail"},[i("div",{staticClass:"detail-item"},[t.detail&&t.detail.ip?i("span",{staticClass:"ip"},[t._v(t._s(t.detail.ip))]):t._e(),t.detail&&t.detail.domain?i("span",{staticClass:"domain"},[t._v(t._s(t.detail.domain))]):t._e()]),i("div",{staticClass:"detail-item"},[t.detail&&t.detail.time?i("div",{staticClass:"time"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"outlineClock"}}),i("span",[t._v(t._s(t.dayjs(t.detail.time).format("YYYY-MM-DD HH:mm:ss")))])],1):t._e(),t.detail&&t.detail.port?i("span",{staticClass:"port common-tag margin-right8"},[i("svg-icon",{staticClass:"svg",attrs:{"icon-class":"port"}}),t._v(" "+t._s(t.detail.port)+" ")],1):t._e(),t.detail&&t.detail.service&&t.detail.service.name?i("span",{staticClass:"server-protocol common-tag margin-right8"},[t._v(" "+t._s(t.detail.service.name)+" ")]):t._e()])]),i("div",{staticClass:"table-tabs"},[i("div",{class:{active:"智能推荐"===t.tab},on:{click:function(e){return t.scrollInto("智能推荐")}}},[t._v("智能推荐")]),i("div",{class:{active:"常用推荐"===t.tab},on:{click:function(e){return t.scrollInto("常用推荐")}}},[t._v("常用推荐")])]),i("div",{ref:"tableContainer",staticClass:"table-container"},[i("el-table",{ref:"intelRecommendTable",staticClass:"custom-feature-table",staticStyle:{width:"100%"},attrs:{border:!0,"row-key":t.getRowKey,"row-class-name":t.rowClassName,"tree-props":{children:"children"},stripe:!1,data:t.intellData,"tooltip-effect":"dark"},on:{"selection-change":function(e){return t.handleSelectionChange(e,"intel")}}},[i("el-table-column",{attrs:{"class-name":"selection-table",align:"left",width:"50"},scopedSlots:t._u([{key:"header",fn:function(e){return[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleHeaderSelectionChange},model:{value:t.isAllSelected,callback:function(e){t.isAllSelected=e},expression:"isAllSelected"}})]}},{key:"default",fn:function(e){return[i("el-checkbox",{on:{change:function(n){return t.rowCheckedChanged(n,e.row)}},model:{value:t.checkedList[e.row.id],callback:function(n){t.$set(t.checkedList,e.row.id,n)},expression:"checkedList[scope.row.id]"}})]}}])}),i("el-table-column",{attrs:{label:"序号",width:"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.isChild?t._e():[i("span",[t._v(t._s(e.row.idx))])]]}}])}),i("el-table-column",{attrs:{label:"特征",align:"left","class-name":"feature-intel",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.children&&e.row.children.length?i("span",{staticStyle:{"margin-right":"16px"},on:{click:function(n){return t.toggleRow(e)}}},[i("i",{staticClass:"el-icon el-icon-arrow-right arrow-expand",class:{"is-expanded":t.expandList[e.$index+1]}})]):t._e(),i("span",[t._v(t._s(e.row.key))])]}}])}),i("el-table-column",{attrs:{label:"内容",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.value)+" ")]}}])}),i("el-table-column",{attrs:{prop:"amount",width:"60",label:"数据量","show-overflow-tooltip":""}})],1),i("div",{staticClass:"divider"}),i("el-table",{ref:"commonRecommendTable",staticClass:"custom-feature-table",staticStyle:{width:"100%"},attrs:{border:!0,"row-key":t.getRowKey,"row-class-name":t.rowClassName,"tree-props":{children:"children"},stripe:!1,data:t.commonData,"tooltip-effect":"dark"},on:{"selection-change":function(e){return t.handleSelectionChange(e,"common")}}},[i("el-table-column",{attrs:{align:"left",type:"selection",width:"50"}}),i("el-table-column",{attrs:{label:"序号",width:"60",prop:"idx"}}),i("el-table-column",{attrs:{label:"常用推荐",prop:"grammar","show-overflow-tooltip":""}}),i("el-table-column",{attrs:{prop:"amount",width:"60",label:"数据量","show-overflow-tooltip":""}})],1)],1),i("div",{staticClass:"input-generate"},[i("div",{staticClass:"generate-line"},[i("el-button",{attrs:{type:"primary",disabled:!t.selection.subIntelSelection.length&&!t.selection["common"].length&&!t.selection["intel"].length},on:{click:t.handleGenerateGrammar}},[t._v("生成语句")])],1),i("div",{staticClass:"input-search-line"},[i("el-input",{staticClass:"feature-textarea",attrs:{type:"textarea",autosize:{minRows:1,maxRows:8},placeholder:"您可勾选多条特征语句进行检索，不同特征之间默认用'AND'拼接","suffix-icon":"el-icon-search"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch(e)}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}}),i("el-button",{attrs:{type:"primary"},on:{click:t.handleSearch}},[t._v("搜索")])],1)])])])},Og=[],Pg=(n("cb29"),n("e1bd"));function jg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Lg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jg(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Dg={name:"FeatureRecommend",props:{visible:{type:Boolean,default:!1},latest:{type:Boolean,required:!0},detail:{type:Object,required:!0},data:{type:Array,default:function(){return[]}}},data:function(){return{showDrawer:!1,selection:{common:[],intel:[],subIntelSelection:[]},query:"",featureLoading:!1,expandList:[],checkedList:{},tab:"智能推荐",isAllSelected:!1,isIndeterminate:!1,activeByClick:!1}},watch:{visible:function(t){var e=this;this.showDrawer=this.visible,this.resetInitData(),t?this.$nextTick((function(){e.$refs.tableContainer.addEventListener("scroll",e.handleScroll),e.tab="智能推荐",e.expandList=new Array(e.data.length).fill(!1)})):this.$refs.tableContainer.removeEventListener("scroll",this.handleScroll)}},computed:{intellData:function(){var t=this;return this.collectRepeatTableData(this.data.filter((function(t){return"intelligent_recommend"===t.type})).map((function(e,n){var i=t.splitGrammar(e.grammar),r=Object(y["a"])(i,2),o=r[0],a=r[1];return Lg({},e,{key:o,value:a,id:Object(Pg["a"])(),index:n})})))},allLength:function(){var t=0;return this.intellData.forEach((function(e){e.children&&(t+=e.children.length)})),t+this.intellData.length},commonData:function(){return this.data.filter((function(t){return"common_recommend"===t.type})).map((function(t,e){return Lg({},t,{idx:e+1})}))},getMaxTableHeight:function(){var t=document.body;return t?.6*(t.clientHeight-60):0}},mounted:function(){},methods:{resetInitData:function(){var t=this;this.query="",this.selection.intel=[],this.selection.common=[],this.selection.subIntelSelection=[],this.checkedList={},this.intellData.forEach((function(e){t.$set(t.checkedList,e.id,!1),e.children&&e.children.length&&e.children.forEach((function(e){t.$set(t.checkedList,e.id,!1)}))})),this.isIndeterminate=!1,this.isAllSelected=!1,this.$nextTick((function(){t.$refs.intelRecommendTable&&t.$refs.intelRecommendTable.clearSelection(),t.$refs.commonRecommendTable&&t.$refs.commonRecommendTable.clearSelection()}))},updateIsIndeterminate:function(){var t=this.selection.intel.length;this.isIndeterminate=t>0&&t<this.allLength},updateIsAllSelected:function(){this.isAllSelected=this.selection.intel.length===this.allLength},rowCheckedChanged:function(t,e){t?this.selection.intel.push(e):this.selection.intel=this.selection.intel.filter((function(t){return t.id!==e.id})),this.updateIsIndeterminate(),this.updateIsAllSelected()},handleHeaderSelectionChange:function(t){var e=this;this.selection.intel=[],this.intellData.forEach((function(n){e.$set(e.checkedList,n.id,t),t&&e.selection.intel.push(n),n.children&&n.children.length&&n.children.forEach((function(n){e.$set(e.checkedList,n.id,t),t&&e.selection.intel.push(n)}))})),this.updateIsIndeterminate(),this.updateIsAllSelected()},arraySpanMethod:function(t){var e=t.row,n=(t.column,t.rowIndex,t.columnIndex);if(e.isChild){if(0===n)return[1,2];if(1===n)return[0,0]}},handleChangeSubSelect:function(t,e){t?this.selection.subIntelSelection.push(e):this.selection.subIntelSelection=this.selection.subIntelSelection.filter((function(t){return t.id!==e.id}))},handleScroll:function(){if(!this.activeByClick){var t=this.$refs.tableContainer,e=t.scrollTop,n=t.clientHeight,i=t.scrollHeight;e>this.$refs.intelRecommendTable.$el.clientHeight||e+n>=i?this.tab="常用推荐":this.tab="智能推荐"}},scrollInto:function(t){var e=this;this.tab=t,this.activeByClick=!0,"智能推荐"===t?this.$refs.intelRecommendTable.$el.scrollIntoView({behavior:"smooth"}):"常用推荐"===t&&this.$refs.commonRecommendTable.$el.scrollIntoView({behavior:"smooth"}),clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout((function(){e.activeByClick=!1}),1e3)},toggleRow:function(t){this.$set(this.expandList,t.$index+1,!this.expandList[t.$index+1]),this.$refs.intelRecommendTable.toggleRowExpansion(t.row)},rowClassName:function(t){var e=t.row;return e.isChild?"hide-selection":"real-now"},getRowKey:function(t){return"".concat(t.idx,"-").concat(t.value||t.grammar)},collectRepeatTableData:function(t){if(!t||!Array.isArray(t)||!t.length)return[];var e=[],n=new Map;t.forEach((function(t){n.has(t.key)?n.set(t.key,[].concat(Object(b["a"])(n.get(t.key)),[t])):n.set(t.key,[t])}));for(var i=Array.from(n.values()),r=0;r<i.length;r++){var o=i[r];if(1===o.length)e.push(o[0]);else{var a=this._.cloneDeep(o[0]);o.splice(0,1),a.children=o.map((function(t){return Lg({},t,{isChild:!0,checked:!1})})),e.push(a)}}return e.map((function(t,e){return Lg({},t,{idx:e+1})}))},splitGrammar:function(t){var e=t.split('"');return[e[0].split(":")[0],e[1]]},handleSearch:function(){this.query?this.$emit("searchByFeatureRecommend",this.query.trim()):this.$message.warning("请您选择特征语法")},initFeatureDrag:function(t){this.startY=t.clientY,this.startHeight=parseInt(document.defaultView.getComputedStyle(this.$refs.textarea).height,10),document.documentElement.addEventListener("mousemove",this.doDrag),document.documentElement.addEventListener("mouseup",this.stopDrag)},doDrag:function(t){this.$refs.textarea.style.height="".concat(this.startHeight+t.clientY-this.startY,"px")},stopDrag:function(){document.documentElement.removeEventListener("mousemove",this.doDrag),document.documentElement.removeEventListener("mouseup",this.stopDrag)},ajaxPostFeatures:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return this.featureLoading=!0,i.next=3,regeneratorRuntime.awrap(Object(I["V"])({data:this.detail,latest:this.latest,index:this.$route.query.selectIndex}));case 3:t=i.sent,e=t.code,n=t.data,0===e&&(this.tableData=n);case 7:case"end":return i.stop()}}),null,this)},handleGenerateGrammar:function(){var t=this;this.query=Object.keys(this.selection).filter((function(e){return t.selection[e].length})).map((function(e){return t.selection[e].map((function(t){return t.grammar.includes(" AND ")?"(".concat(t.grammar,")"):t.grammar})).join(" AND ")})).join(" AND ")},handleSelectAll:function(t){var e=this;this.isAllSelected?this.$refs.intelRecommendTable.clearSelection():(this.intellData.forEach((function(t){e.$refs.intelRecommendTable.toggleRowSelection(t,!0)})),t.forEach((function(t){t.children&&t.children.length&&t.children.forEach((function(t){e.$refs.intelRecommendTable.toggleRowSelection(t,!0)}))}))),this.isAllSelected=!this.isAllSelected},handleSelectionChange:function(t,e){this.selection[e]=t},watchDrawTableScroll:function(){var t=this.$refs.intelRecommendTable.bodyWrapper;t&&(this.tableBodyWrapper=t,t.addEventListener("scroll",this._.debounce(this.whenTableScrollBottom,300)))},whenTableScrollBottom:function(){var t=this.tableBodyWrapper,e=t.scrollTop,n=t.scrollHeight,i=t.clientHeight;e+i>=n&&console.log("到底了~")},handleCloseFeatureRecommendDrawer:function(){this.$emit("update:visible",!1)}}},Rg=Dg,Bg=(n("97049"),Object(V["a"])(Rg,Tg,Og,!1,null,"97481a60",null)),Ng=Bg.exports,Fg=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-drawer",{staticClass:"feature-recommend-container",staticStyle:{height:"100%"},attrs:{"append-to-body":!0,"custom-class":"feature-recommend-custom",modal:!1,"show-close":!1,size:760,direction:"rtl",visible:t.showDrawer},on:{close:t.handleCloseFeatureRecommendDrawer,"update:visible":function(e){t.showDrawer=e}},scopedSlots:t._u([{key:"title",fn:function(){return[i("div",{staticClass:"header"},[i("div",{staticClass:"left"},[i("img",{staticClass:"gpt-img",attrs:{src:n("02db"),alt:""}}),i("span",{staticClass:"title"},[t._v(t._s(t.title))])]),i("img",{staticClass:"icon-gpt-close",staticStyle:{width:"24px",cursor:"pointer"},attrs:{src:n("46ad"),alt:""},on:{click:t.handleCloseFeatureRecommendDrawer}})])]},proxy:!0}])},[i("div",{staticClass:"feature-recommend-body"},[t._t("header"),i("div",{ref:"tableContainer",staticClass:"table-container"},[i("el-table",{ref:"intelRecommendTable",staticClass:"custom-feature-table",staticStyle:{width:"100%"},attrs:{height:"100%","header-cell-style":t.headerCellStyle,"row-key":t.getRowKey,"row-class-name":t.rowClassName,"tree-props":{children:"children"},stripe:!1,data:t.intelData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[t.tableHeaderConfig&&t.tableHeaderConfig.type&&t.tableHeaderConfig.type.includes("selection")?i("el-table-column",{attrs:{align:"center",type:"selection",width:"55"}}):t._e(),i("el-table-column",{attrs:{label:"序号",width:"60"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.isChild?t._e():[i("span",[t._v(t._s(e.row.idx))])]]}}])}),t._l(t.tableColumns,(function(e,n){return i("el-table-column",{key:n,attrs:{label:e.name,"min-width":e.width,sortable:e.sortable,resizable:e.resizable,align:"left","class-name":e.className||""},scopedSlots:t._u([{key:"default",fn:function(n){return["or"===e.type?[i("span",{staticClass:"click-link",on:{click:function(i){return t.onSearchOrGrammar(n.row,e.property)}}},[t._v(" "+t._s(n.row[e.property[0]]||n.row[e.property[1]])+" ")])]:["time"===e.type?i("span",[t._v(t._s(t.dayjs(n.row[e.property]).format("YYYY-MM-DD HH:mm:ss")))]):i("span",[t._v(t._s(n.row[e.property]))])]]}}],null,!0)})}))],2)],1),i("IocPagination",{attrs:{type:"full",total:t.paginationConfig.total&&t.paginationConfig.total.value,currentPage:t.paginationConfig.page&&t.paginationConfig.page.value,pageSize:t.paginationConfig.size&&t.paginationConfig.size.value},on:{"size-change":t.paginationConfig.sizeChange.value,"current-change":t.paginationConfig.currentChange.value}}),i("div",{staticClass:"input-generate"},[i("div",{staticClass:"generate-line"},[i("el-button",{attrs:{type:"primary",disabled:!t.selection.subIntelSelection.length&&!t.selection["common"].length&&!t.selection["intel"].length},on:{click:t.handleGenerateGrammar}},[t._v("生成语句")])],1),i("div",{staticClass:"input-search-line"},[i("el-input",{staticClass:"feature-textarea",attrs:{type:"textarea",autosize:{minRows:3,maxRows:8},placeholder:"您可勾选多条特征语句进行检索，不同特征之间默认用'AND'拼接","suffix-icon":"el-icon-search"},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch(e)}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}}),i("div",{staticClass:"custom-icon",on:{click:t.handleSearch}},[i("svg-icon",{staticClass:"send-icon",attrs:{"icon-class":"send"}})],1)],1)])],2)])},zg=[];function Vg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Gg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vg(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Hg={name:"FeatureRecommend",props:{visible:{type:Boolean,default:!1},data:{type:Array,required:!0},tableHeaderConfig:{type:Object,default:function(){return{}}},title:{type:String,default:"大模型智能推荐"},tableColumns:{type:Array,required:!0}},data:function(){return{currentData:[],paginationConfig:{page:{type:"number",defaultValue:1,value:1},size:{type:"number",defaultValue:10,value:10},count:{type:"hide",defaultValue:0,value:0},total:{type:"hide",defaultValue:0,value:0},sizeChange:{type:"hide",value:this.handleSizeChange},currentChange:{type:"hide",value:this.handleCurrentChange}},showDrawer:!1,selection:{common:[],intel:[],subIntelSelection:[]},query:"",featureLoading:!1,expandList:[],checkedList:{},tab:"智能推荐",isAllSelected:!1,isIndeterminate:!1,activeByClick:!1}},watch:{visible:function(t){this.showDrawer=t,t&&(this.query="",this.initPageData(),this.$refs.intelRecommendTable&&this.$refs.intelRecommendTable.clearSelection())},isAllSelected:function(t){}},computed:Gg({},Object(w["e"])("site",["themeClassName"]),{getWidthByScreen:function(){return window.screen.width>=1280?"36%":"48%"},headerCellStyle:function(){return"theme-dark-green"===this.themeClassName?{background:"#2C2F3B",color:"#C3CCD9",fontSize:"14px"}:{background:"#F3F5F9",color:"#182131",fontSize:"14px"}},intelData:function(){return this.currentData&&this.currentData.length?this.currentData.map((function(t,e){return Gg({},t,{idx:e+1})})):[]},allLength:function(){var t=0;return this.intelData.forEach((function(e){e.children&&(t+=e.children.length)})),t+this.intelData.length}}),mounted:function(){},methods:{initPageData:function(){this.currentData=this.data.slice(0,this.paginationConfig.size.value),this.paginationConfig.total.value=this.data.length},handleSizeChange:function(t){this.paginationConfig.page.value=1,this.paginationConfig.size.value=t;var e=this.paginationConfig.page.value;this.currentData=this.data.slice((e-1)*t,(e-1)*t+t)},handleCurrentChange:function(t){var e=this.paginationConfig.size.value;this.paginationConfig.page.value=t,this.currentData=this.data.slice((t-1)*e,(t-1)*e+e)},onSearchOrGrammar:function(t,e){this.onSearchGrammar("".concat(t[e[0]]?e[0]:e[1],': "').concat(t[e[0]]||t[e[1]],'"'))},onSearchGrammar:function(t){if(t&&t.trim()){var e=this.$router.resolve({name:"searchResult",query:{selectIndex:"quake_service",searchVal:t,latest:!0}}),n=e.href;window.open(n,"_blank")}},rowClassName:function(t){var e=t.row;return e.isChild?"hide-selection":"real-now"},getRowKey:function(t){return"".concat(t.idx,"-").concat(t.domain||t.id)},handleSearch:function(){this.query?this.onSearchGrammar(this.query.trim()):this.$message.warning("请您选择特征语法")},initFeatureDrag:function(t){this.startY=t.clientY,this.startHeight=parseInt(document.defaultView.getComputedStyle(this.$refs.textarea).height,10),document.documentElement.addEventListener("mousemove",this.doDrag),document.documentElement.addEventListener("mouseup",this.stopDrag)},doDrag:function(t){this.$refs.textarea.style.height="".concat(this.startHeight+t.clientY-this.startY,"px")},stopDrag:function(){document.documentElement.removeEventListener("mousemove",this.doDrag),document.documentElement.removeEventListener("mouseup",this.stopDrag)},handleGenerateGrammar:function(){this.query=this.query?"".concat(this.query," AND ").concat(this.selection.intel.map((function(t){return t.grammar})).join(" AND ")):"".concat(this.selection.intel.map((function(t){return t.grammar})).join(" AND "))},handleSelectionChange:function(t){this.selection.intel=t},handleCloseFeatureRecommendDrawer:function(){this.$emit("update:visible",!1)}}},Wg=Hg,Ug=(n("ae57"),Object(V["a"])(Wg,Fg,zg,!1,null,"4194bb37",null)),Zg=Ug.exports,Yg=n("6fb9"),Xg=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticClass:"certificate-all-dialog",attrs:{"append-to-body":"",visible:t.visible,width:"43%","before-close":t.handleClose},on:{"update:visible":function(e){t.visible=e}}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("span",{staticClass:"certificate-dialog-title"},[t._v("k2nc stg-plus-pingfed-runtimestaging.cloud.thingworx.com")]),n("div",{staticClass:"certificate-label"},t._l(t.data.labels,(function(e){return n("span",{key:e,staticClass:"certificate-label-item",class:{untrust:"untrusted"===e,trust:"trusted"===e,valid:"unexpired"===e,expired:"expired"===e}},[t._v(t._s(t.certificateLabel[e]||e))])})),0)]),n("div",{staticClass:"response-tab-line"},[n("span",{staticClass:"copy",attrs:{"data-clipboard-text":t.data},on:{click:t.handleCopyText}},[n("svg-icon",{attrs:{"icon-class":"copy"}}),t._v(" "+t._s(t.$t("search.copy"))+" ")],1),n("search-input",{ref:"searchInput",attrs:{"dom-container":"#certificateDialog"}})],1),t._t("default")],2)},qg=[],Kg=n("0781"),Qg={components:{SearchInput:Kg["default"]},props:{currentViewAllTab:{type:String,required:!0},dialogVisible:{type:Boolean,default:!1},data:{type:Object,default:function(){}},certificateLabel:{type:Object,required:!0}},data:function(){return{visible:!1,copyData:""}},computed:{},watch:{dialogVisible:function(t){var e=this;this.visible=t,t&&this.$nextTick((function(){var t=document.querySelector("#certificateDialog");e.copyData=t.innerText}))}},mounted:function(){},methods:{handleCopyText:function(){var t=this;this.$copyText(this.copyData).then((function(){t.$message({message:t.$t("global.copy_success"),type:"success"})}))},handleClose:function(){this.$emit("update:dialogVisible",!1)}}},Jg=Qg,$g=(n("f1e5"),Object(V["a"])(Jg,Xg,qg,!1,null,"19b7c164",null)),tm=$g.exports,em=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"certificate-extensions"},t._l(t.certificateExtensions,(function(e,i){return n("div",{key:i,staticClass:"fingerprint-item",class:{"fingerprint-item-hover":e.hover},on:{click:function(n){return t.handleExtensionClick(e,t.item,"line")}}},[n("span",{staticClass:"fingerprint-item-title"},[t._v(t._s(e.label))]),"string"===typeof e.key?n("div",{staticClass:"fingerprint-item-content fingerprint-item-extension",class:{"fingerprint-item-link":e.link&&"string"===typeof t._.get(t.item,e.key)},on:{click:function(n){return n.preventDefault(),t.handleExtensionClick(e,t.item,"target")}}},["string"===typeof t._.get(t.item,e.key,"--")?n("span",[t._v(t._s(t._.get(t.item,e.key,"--")))]):Array.isArray(t._.get(t.item,e.key,"--"))?t._l(t._.get(t.item,e.key),(function(i,r){return n("div",{key:r},[n("span",{class:{"fingerprint-item-link":e.link},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),t.handleExtensionSubClick(e,e.subKey?i[e.subKey]:i)}}},[t._v(" "+t._s(e.subKey?i[e.subKey]:i)+" ")]),e.subKey2?n("span",[t._v(" "+t._s("("+("time"===e.subKey2_type?t.dayjs(1e3*i[e.subKey2]).format("YYYY-MM-DD HH:mm:ss"):i[e.subKey2])+")")+" ")]):t._e()])})):n("span",[t._v("--")])],2):Array.isArray(e.key)?n("div",{staticClass:"fingerprint-item-content fingerprint-item-extension"},[n("span",[t._v(t._s(""+e.key.filter((function(e){return t._.get(t.item,e)})).map((function(t){return t.split(".")[t.split(".").length-1]})).join(", ")))])]):n("div",{staticClass:"fingerprint-item-content fingerprint-item-extension"},t._l(e.key,(function(i,r){return n("div",{key:r,staticClass:"fingerprint-item-content-sub"},[n("span",{staticClass:"title"},[t._v(t._s(r)+":")]),"open"===e.clickActon?n("a",{class:{"fingerprint-item-link":e.link},attrs:{target:"_blank",href:t.getSanUrlsFromArrOrStr(t._.get(t.item,i)),rel:"noreferrer noopener nofollow"}},[t._v(" "+t._s(t.getSanUrlsFromArrOrStr(t._.get(t.item,i)))+" ")]):n("span",{class:{"fingerprint-item-link":e.link}},[t._v(t._s(t.getSanUrlsFromArrOrStr(t._.get(t.item,i))))])])})),0)])})),0)},nm=[],im=[{label:"Auth Key ID",key:"parsed.extensions.authority_key_id",hover:!0,clickActon:"search"},{label:"Subject Key ID",key:"parsed.extensions.subject_key_id",hover:!0,clickActon:"search"},{label:"Key Usage",key:["parsed.extensions.key_usage.digital_signature","parsed.extensions.key_usage.key_encipherment"]},{label:"Ext. Key Usage",key:["parsed.extensions.extended_key_usage.client_auth","parsed.extensions.extended_key_usage.server_auth"]},{label:"CRL Paths",key:"parsed.extensions.crl_distribution_points",link:!0,clickActon:"download"},{label:"Policies",key:"parsed.extensions.certificate_policies",subKey:"id"},{label:"AIA Paths",key:{OCSP:"parsed.extensions.authority_info_access.ocsp_urls",Issuer:"parsed.extensions.authority_info_access.issuer_urls"},link:!0,clickActon:"open"},{label:"SANs",key:"names",link:!0,clickActon:"search"},{label:"SCTs",key:"parsed.extensions.signed_certificate_timestamps",subKey:"signature",subKey2:"timestamp",subKey2_type:"time"}],rm={name:"Extensions",props:{item:{type:Object,required:!0}},data:function(){return{certificateExtensions:im}},mounted:function(){},methods:{getSanUrlsFromArrOrStr:function(t){return Array.isArray(t)?t[0]:t},handleExtensionSubClick:function(t,e){"download"===t.clickActon&&this.downloadByA(e),"search"===t.clickActon&&this.$emit("onSearchMore",t.key,e)},downloadByA:function(t){var e=document.createElement("a");e.href=t,e.download=e.href.split("/")[e.href.split("/").length-1],document.body.appendChild(e),e.click(),document.body.removeChild(e)},handleExtensionClick:function(t,e,n){if("line"!==n)"search"===t.clickActon?Array.isArray(this._.get(e,t.key))||this.$emit("onSearchMore",t.key,this._.get(e,t.key)):"download"===t.clickActon&&this.downloadByA(this._.get(e,t.key));else{if(!t.hover)return;this.$emit("onSearchMore",t.key,this._.get(e,t.key))}}}},om=rm,am=(n("1aeb"),Object(V["a"])(om,em,nm,!1,null,"2da0714a",null)),sm=am.exports,lm=n("d4e8"),cm=n("873b"),um=n("3d5e"),hm=n("1666"),dm=n("bcfe"),pm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-dialog",{attrs:{"custom-class":"related-range-dialog",title:t.defaultConfig.title,visible:t.visible,"close-on-click-modal":t.defaultConfig.closeOnClickModal,"lock-scroll":t.defaultConfig.lockScroll,width:t.defaultConfig.width,center:"","append-to-body":"",top:"30vh"},on:{"update:visible":function(e){t.visible=e},closed:t.onCloseDialog}},[n("span",{staticClass:"el-dialog__title",attrs:{slot:"title"},slot:"title"},[n("i",{staticClass:"el-icon-warning"}),t._v(" "+t._s(t.defaultConfig.title)+" ")]),n("div",{staticClass:"dialog-content"},[n("el-slider",{class:"current-"+((t.data.range-80)/5+1),attrs:{"tooltip-class":"custom-related-tooltip","format-tooltip":t.formatTooltip,"show-tooltip":t.visible,"show-stops":"",step:5,min:80,max:100,marks:t.defaultConfig.marks},model:{value:t.data.range,callback:function(e){t.$set(t.data,"range",e)},expression:"data.range"}})],1),t.defaultConfig.isShowFooter?n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticStyle:{width:"100px",height:"40px","font-size":"18px"},on:{click:t.onCancelDialog}},[t._v("取消")]),n("el-button",{staticStyle:{"background-color":"rgba(63,113,190,1)",color:"#fff",width:"100px",height:"40px","font-size":"18px"},attrs:{type:"primary"},on:{click:function(e){return t.onSureDialog()}}},[t._v("确定")])],1):t._e()])],1)},fm=[],gm={range:90},mm={props:{visible:{type:Boolean,default:!1}},data:function(){return{defaultConfig:{title:"相似资产",width:"575px",closeOnClickModal:!1,lockScroll:!0,isShowFooter:!0,marks:{80:"80",85:"85",90:"90",95:"95",100:"100"}},data:gm}},watch:{visible:function(t){t&&(this.data=this._.cloneDeep(gm))}},methods:{closeDialog:function(){this.$emit("update:visible",!1)},onCancelDialog:function(){this.closeDialog()},onSureDialog:function(){this.$emit("sure",this.data),this.closeDialog()},onCloseDialog:function(){this.closeDialog()},formatTooltip:function(t){return"".concat(t,"%")}}},vm=mm,ym=(n("f596"),n("0fb0"),Object(V["a"])(vm,pm,fm,!1,null,"570a1901",null)),bm=ym.exports,xm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"right-panel"},[n("el-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[t._t("tab")],2)],1)},wm=[],_m={name:"ResultRightPanel",data:function(){return{active:""}},watch:{active:{handler:function(t){""!==this.val&&this.$emit("tab-click",t)},immediate:!0}},mounted:function(){var t=this;this.$nextTick((function(){var e=t.$slots.tab;"undefined"!==typeof e&&(e=e.filter((function(t){return"undefined"!==typeof t.tag})),e.length&&(t.active=e[0].componentOptions.propsData.name||""))}))}},Cm=_m,Am=Object(V["a"])(Cm,xm,wm,!1,null,"6b83e3c3",null),Im=Am.exports,Sm=n("bb8b"),Mm=n("cf45"),km=n("8572"),Em=n("c1fb"),Tm=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(Em["a"])({url:"/search/tipping_point_label",method:"get",params:t})},Om=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(Em["a"])({url:"/search/tipping_point",method:"get",params:t})},Pm=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(Em["a"])({url:"/hot/tipping_point",method:"get",params:t})};function jm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Lm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jm(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Dm={props:{searchList:{type:Object,default:function(){}},searchResultList:{type:Array,default:function(){return[]}},paginationConfig:{type:Object,default:function(){}}},mixins:[km["a"],cm["a"],um["a"]],components:{Extensions:sm,VJsoneditor:Eg.a,ViewComponent:hm["a"],AddAsset:dm["a"],SimilarAssetSlider:bm,ResultRightPanel:Im,TagLabel:Sm["default"],SpanImageComponent:lm["default"],FeatureRecommend:Ng,CertificateTabDialog:tm,ResFeatureRecommend:Zg},data:function(){return{certificateLabel:{untrusted:"不可信",trusted:"可信",expired:"已过期",unexpired:"有效期内"},currentViewAllTab:"",certificateDialog:{data:{},visible:!1,copyData:""},tabOptionList:N,currentPdfBase64:"",riskLevel:{"严重":"serious","高危":"high-risk","中危":"middle-risk","低危":"low-risk"},QUAKE_DATA:{QUAKE_CERTIFICATE:yt["b"]},noDataConfig:{top:25,width:65,size:14},checkIp:Z["a"],checkIpv6:Z["c"],tableHeaderConfig:{showOther:!0},levelColorMapping:new Map([["严重","#E46B64"],["高危","#F49763"],["中危","#F7B500"],["低危","#5790E6"]]),componentsConfig:{componentsList:[],viewComponentDialogVisible:!1},jsonEditorOptions:{mainMenuBar:!1,mode:"code",onEditable:function(){}},hostTableConfig:{border:!1,stripe:!1,size:"mini",height:208,isHiddenPagination:!0},vulTabs:[{key:"web",name:"网站信息"},{key:"login_credentials",name:"密码凭证"},{key:"databases",name:"数据库"},{key:"files",name:"文件信息"},{key:"commands",name:"命令执行结果"},{key:"images",name:"图形图像"}],addAssetData:{},copyTimer:null,isCopyInit:!0,similarAssetDialogVisible:!1,xss:new P.a.FilterXSS({whiteList:{selfelement:["style","class"]}}),featureRecommendData:{data:[],allData:{},detail:{},visible:!1,latest:!0},resFeatureRecommendData:{data:[],allData:{},detail:{},visible:!1,latest:!0,tableHeaderConfig:{type:["selection"]},tableColumns:[{name:this.$t("search.result_detail.ip_domain"),property:["domain","ip"],type:"or",query:"ip",width:150},{name:this.$t("search.result_detail.mapping_time"),property:"time",type:"time",width:150}]}}},watch:{searchResultList:{handler:function(){},deep:!0,immediate:!0}},mounted:function(){},computed:Lm({},Object(w["e"])("site",["role","productLogoPrefix","themeClassName"]),{},Object(w["c"])("site",["loginType"]),{hasRecommend:function(){return window.Config.permission.includes("front.query.feature.recommend")},isQuakeCertificate:function(){return this.searchList.selectIndex===yt["b"]},isQuakeTippingPoint:function(){return this.searchList.selectIndex===yt["d"]},getHeaderCeilStyleByTheme:function(){var t={fontWeight:"normal",fontSize:"14px"};return"theme-dark-green"===this.themeClassName?Lm({},t,{color:"#C3CCD9"}):Lm({},t,{color:"#5d6166"})},getCeilStyleByTheme:function(){return"theme-dark-green"===this.themeClassName?{color:"#9DA6B2",fontSize:"14px"}:{color:"#5d6166",fontSize:"14px"}},judgeIfAllowFnTag:function(){return Object(Mm["g"])(window.Config)},currentRole:function(){return(window.Config||{}).role||[]},isNameVerified:function(){return this._.intersection(this.currentRole,["role.real_name_verified","role.advance_user","role.lifetime_user"]).length>0},hostTableHeaderConfig:function(){return{type:[],headerConfig:[{name:this.$t("search.result_detail.scan_time"),property:"time",sortable:!0,width:100,customFormater:function(t,e){return A()(t.row[e.property]).format("YYYY-MM-DD")}},{name:this.$t("search.result_detail.transport"),property:"transport",width:80},{name:this.$t("search.result_detail.port"),property:"port",width:100,type:"status"},{name:this.$t("search.result_detail.service"),property:"name",width:120,type:"status"},{name:this.$t("search.result_detail.cert"),property:"cert",width:80,type:"status"},{name:this.$t("search.result_detail.product_application"),property:"product",type:"status"}]}},filterHuntingMenu:function(){return function(t){var e=[];return t.service.http?(t.service.http.html_hash&&e.push({grammar:"html_hash",value:t.service.http.html_hash}),t.service.http.dom_tree&&t.service.http.dom_tree.dom_hash&&e.push({grammar:"dom_hash",value:t.service.http.dom_tree.dom_hash}),t.service.http.favicon&&t.service.http.favicon.hash&&e.push({grammar:"favicon",value:t.service.http.favicon.hash}),e):[]}},getEmailAddress:function(){var t=this;return function(e){if(!t._.get(e,"service.tls.handshake_log.server_certificates.certificate.parsed.issuer.email_address"))return!1;var n=e.service.tls.handshake_log.server_certificates.certificate.parsed.issuer.email_address;return!!Array.isArray(n)&&n[0]}}}),created:function(){var t=this;this.dayjs=A.a,this.$nextTick((function(){t.copy("copy_btn","value")}))},beforeDestroy:function(){this.copyTimer=null},methods:Lm({},Object(w["b"])("site",["toggleMultiDialog"]),{},Object(w["d"])("site",["SET_HUNTING_DETAIL"]),{onShowAllCertificate:function(t,e){this.certificateDialog.data=t,this.certificateDialog.visible=!0,this.currentViewAllTab=e},getValidTimeGrammar:function(t){var e=this.getFormatCertificateValidateTime(t),n=e.start,i=e.end;return'certificates_notBefore:">='.concat(n,'" AND certificates_notAfter:"<=').concat(i,'"')},getFormatCertificateValidateTime:function(t){var e=this._.get(t,"parsed.validity_period.not_before"),n=this._.get(t,"parsed.validity_period.not_after"),i=this.formatDuration(this._.get(t,"parsed.validity_period.length_seconds"));return{start:this.dayjs(e).format("YYYY-MM-DD HH:mm:ss"),end:this.dayjs(n).format("YYYY-MM-DD HH:mm:ss"),duration:i}},formatCertificateValidateTime:function(t){var e=this.getFormatCertificateValidateTime(t),n=e.start,i=e.end,r=e.duration;return"".concat(n," To ").concat(i,"(").concat(r,")")},formatDuration:function(t){var e=Math.floor(t/86400),n=t%86400,i=Math.floor(n/3600),r=n%3600,o=Math.floor(r/60),a=r%60,s="".concat(e,"days ").concat(String(i).padStart(2,"0"),":").concat(String(o).padStart(2,"0"),":").concat(String(a).padStart(2,"0"));return s},handleExpandSafeInformTabItem:function(t){this.handleOpenTippingPointVulProve(t)},handleLoadPdfIframe:function(t){var e=this,n=document.querySelector(".js-pdf-iframe".concat(t)),i=n.contentDocument||n.contentWindow.document;if(i){var r=i.getElementById("mainContainer");r.style.cursor="pointer",r.addEventListener("click",(function(){e.handlePrevPdfSingle(t)}))}},handleOpenTippingPointVulProve:function(t,e){this.$emit("openTippingPointVulProve",Lm({},t,{query:e}))},handlePrevPdfSingle:function(t){window.open("/quake/static/index/pdf64/web/viewer.html?source=searchResult&sourceIndex=".concat(t))},downLoadPdfSingle:function(t,e){var n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.$set(e,"loading",!0),r.next=3,regeneratorRuntime.awrap(Object(Yg["get"])("searchResult"));case 3:n=r.sent,i=document.createElement("a"),i.href=n[t],i.download=e.filename,document.body.appendChild(i),i.click(),document.body.removeChild(i),this.$set(e,"loading",!1);case 11:case"end":return r.stop()}}),null,this)},onClickTippingPointTab:function(t,e,n){var i,r,o;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:if(t&&n&&Array.isArray(n)&&n.length&&!(n.length>1)){a.next=2;break}return a.abrupt("return");case 2:if("相关报告"!==t){a.next=19;break}return this.$set(this.searchResultList[e],"activeTippingPointPdfLoading",!0),a.next=6,regeneratorRuntime.awrap(this.getPdfBase64(n[0].filename));case 6:return i="data:application/pdf;base64,".concat(this.currentPdfBase64),r=Object(x["a"])({},e,i),a.next=10,regeneratorRuntime.awrap(Object(Yg["get"])("searchResult"));case 10:if(o=a.sent,o){a.next=16;break}return a.next=14,regeneratorRuntime.awrap(Object(Yg["set"])("searchResult",r));case 14:a.next=18;break;case 16:return a.next=18,regeneratorRuntime.awrap(Object(Yg["update"])("searchResult",(function(){return Object.assign(o,r)})));case 18:this.$set(this.searchResultList[e],"activeTippingPointPdfLoading",!1);case 19:case"end":return a.stop()}}),null,this)},handlePrevPdf:function(t){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:return this.$set(t,"loading",!0),e.next=3,regeneratorRuntime.awrap(this.getPdfBase64(t.filename));case 3:return this.$set(t,"loading",!1),e.next=6,regeneratorRuntime.awrap(this.getPdfFile(this.currentPdfBase64));case 6:case"end":return e.stop()}}),null,this)},getPdfBase64:function(t){var e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(Om({filename:t}));case 2:e=r.sent,n=e.code,i=e.data,0===n&&(this.currentPdfBase64=i.report);case 6:case"end":return r.stop()}}),null,this)},downLoadPdf:function(t){var e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return e=t.filename,this.$set(t,"downloading",!0),i.next=4,regeneratorRuntime.awrap(this.getPdfBase64(e));case 4:this.$set(t,"downloading",!1),n=document.createElement("a"),n.href="data:application/pdf;base64,".concat(this.currentPdfBase64),n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n);case 11:case"end":return i.stop()}}),null,this)},copyText:function(t){var e=this;this.$copyText(t).then((function(){e.$message({message:e.$t("global.copy_success"),type:"success"})}))},tippingPointSafeInformationPdf:function(t){var e=this._.get(t,"vuls[0].tipping_point");return e&&e.length&&e.filter((function(t){return Array.isArray(t)}))[0]||[]},getAllTippingPointSafeInform:function(t){var e=this._.get(t,"vuls[0]");if(!e)return{};var n={};return Object.values(B).forEach((function(i){e[t]&&(n[t]=e[i])})),n},tippingPointSafeInform6Tab:function(t){var e=this._.get(t,"vuls[0]");if(!e)return!1;var n=N.some((function(t){return e[t.key]&&e[t.key].length>0}));return n},tippingPointSafeInform:function(t){var e=this._;return e.get(t,"vuls[0].tipping_point")&&e.get(t,"vuls[0].tipping_point").filter((function(t){return"截图"===t.type}))[0]},hasTippingPointSafeInformationImg:function(t){var e=this._;return e.get(t,"vuls[0].tipping_point")&&e.get(t,"vuls[0].tipping_point").map((function(t){return t.type})).includes("截图")&&e.get(t,"vuls[0].tipping_point").filter((function(t){return!!t.filename})).length},getPdfFile:function(t){var e;return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:return e="data:application/pdf;base64,".concat(t),n.next=3,regeneratorRuntime.awrap(Object(Yg["set"])("_imgUrl",e));case 3:window.open("/quake/static/index/pdf64/web/viewer.html");case 4:case"end":return n.stop()}}))},onShowAllTippingPoint:function(t){this.$emit("onShowAllTippingPoint",t)},handleShowResFeatureRecommend:function(t,e){this.resFeatureRecommendData.visible=!0,this.resFeatureRecommendData.detail=t,this.resFeatureRecommendData.data=this.resFeatureRecommendData.allData[e].map((function(t){return Lm({},t,{grammar:"".concat(t.domain?"domain":"ip",': "').concat(t.domain||t.ip,'"')})})),this.resFeatureRecommendData.latest=this.searchList.latest},handleShowFeatureRecommend:function(t,e){this.featureRecommendData.visible=!0,this.featureRecommendData.detail=t,this.featureRecommendData.data=this.featureRecommendData.allData[e],this.featureRecommendData.latest=this.searchList.latest},ajaxGetTagLimit:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}))},onCertificate:function(){this.$router.push({name:"personal",query:{tab:"message",from:"certified"}})},onLogin:function(){window.location.href="/quake/login"},onSearchByQueryString:function(t){this.$emit("onSearchByQueryString",t)},onSearchMore:function(t,e,n){var i=this;clearTimeout(this.copyTimer),this.copyTimer=setTimeout((function(){e&&("ip"===t?i.$emit("onSearchMore",t,e,n,void 0,i.searchList.latest):i.$emit("onSearchMore",t,e,n))}),500)},searchByFeatureRecommend:function(t){this.$emit("onSearchGrammar",t)},formatFlagClass:function(t){return-1!==["CN","HK","TW","MO"].indexOf(t)?"cn":t&&t.toLowerCase()},getClassRuishi:function(t){var e="";return"瑞士"===t&&(e="ruishi"),e},copy:function(t,e){clearTimeout(this.copyTimer),e&&(new R.a(".".concat(t)),this.isCopyInit?this.isCopyInit=!1:this.$message({message:this.$t("global.copy_success"),type:"success"}))},onSplitWord:function(t,e){return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:this.$emit("onShowAll",t,e,"splitWord");case 1:case"end":return n.stop()}}),null,this)},onSeeMainBody:function(t,e){return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:this.$emit("onShowAll",t,e,"mainBody");case 1:case"end":return n.stop()}}),null,this)},onSkipIpDetail:function(t,e,n){if(this.role){this.SET_HUNTING_DETAIL(n);var i=this.$router.resolve({name:"ipDetail",query:{ip:t,tab:e}}),r=i.href;window.open(r,"_blank")}else this.toggleMultiDialog("unLogin")},onSkipVulDetail:function(t){var e=this.$router.resolve({name:"vulDetail",params:{id:t,state:"front"}}),n=e.href;window.open(n,"_blank")},onShowAll:function(t,e){this.$emit("onShowAll",t,e)},changeViewComponentDialogVisible:function(t){this.componentsConfig.viewComponentDialogVisible=t},onViewComponentDialog:function(t){this.componentsConfig.componentsList=t,this.componentsConfig.viewComponentDialogVisible=!0},onGoMemeber:function(){this.$router.push("/member")},onChangeHistory:function(t,e){this.searchResultList[e].currentImg=t},onClickCertificateTab:function(t,e,n){var i,r,o,a,s;return regeneratorRuntime.async((function(l){while(1)switch(l.prev=l.next){case 0:if(i=this._.get(e,"parsed.serial_number"),i){l.next=3;break}return l.abrupt("return");case 3:if("related_assets"!==t){l.next=14;break}if(this.searchResultList[n].feature){l.next=14;break}return this.$set(this.searchResultList[n],"loading",!1),this.searchResultList[n].loading=!0,r={serial_number:i,start:0,size:10},l.next=10,regeneratorRuntime.awrap(Object(bt["b"])(r));case 10:o=l.sent,a=o.code,s=o.data,0===a&&(this.$set(this.searchResultList[n],"feature",s.slice(0,5)),this.resFeatureRecommendData.allData[n]=s),this.searchResultList[n].loading=!1;case 14:case"end":return l.stop()}}),null,this)},onClickTab:function(t,e){var n,i,r,o,a,s,l,c;return regeneratorRuntime.async((function(u){while(1)switch(u.prev=u.next){case 0:if("AI协议识别"!==t){u.next=12;break}if(this.$set(this.searchResultList[e],"loading",!1),this.searchResultList[e].aiAgreements){u.next=10;break}return this.searchResultList[e].loading=!0,n={data:this.searchResultList[e]},u.next=7,regeneratorRuntime.awrap(Object(I["h"])(n));case 7:i=u.sent,r=i.code,o=i.data,0===r&&(this.$set(this.searchResultList[e],"aiAgreements",o),this.searchResultList[e].loading=!1);case 10:u.next=23;break;case 12:if("grammar_referral"!==t){u.next=23;break}if(this.$set(this.searchResultList[e],"loading",!1),this.searchResultList[e].feature){u.next=23;break}return this.searchResultList[e].loading=!0,a={data:this.searchResultList[e],latest:this.searchList.latest,index:this.searchList.selectIndex},u.next=19,regeneratorRuntime.awrap(Object(I["V"])(a));case 19:s=u.sent,l=s.code,c=s.data,0===l&&(this.$set(this.searchResultList[e],"feature",c.filter((function(t){return"intelligent_recommend"===t.type})).slice(0,5)),this.featureRecommendData.allData[e]=c),this.searchResultList[e].loading=!1;case 23:case"end":return u.stop()}}),null,this)},getItemFeaturesAmount:function(t){var e,n,i,r,o;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:e=0;case 1:if(!(e<this.searchResultList[t].feature.length)){a.next=12;break}return n={query:this.searchResultList[t].feature[e].grammar,size:0,latest:this.searchList.latest},a.next=5,regeneratorRuntime.awrap(Object(I["X"])(n,"quake_service"));case 5:i=a.sent,r=i.code,o=i.meta,0===r&&(this.searchResultList[t].feature[e].amount=o.pagination.total),this.searchResultList[t].feature[e].loading=!1;case 9:e++,a.next=1;break;case 12:case"end":return a.stop()}}),null,this)},onSearchCertificateGrammar:function(t){this.onSearchGrammar("".concat(t.domain?"domain":"ip",': "').concat(t.domain||t.ip,'"'))},onSearchGrammar:function(t){if(t&&t.trim()){var e=this.$router.resolve({name:"searchResult",query:{selectIndex:"quake_service",searchVal:t,latest:this.searchList.latest}}),n=e.href;window.open(n,"_blank")}},handleCommandHunting:function(t){this.onSearchMore(t.grammar,t.value)},onAddAsset:function(t){var e=t.service&&t.service.http&&t.service.http.host&&!Object(Z["a"])(t.service.http.host),n=this.$router.resolve({name:"MonitorAdd",path:"/monitorAdd",query:{show:!1,type:e?"域名":"ip",name:e?t.service.http.host:t.ip}}),i=n.href;window.open(i,"_blank")},openSimilarAssetDialog:function(){this.similarAssetDialogVisible=!0}})},Rm=Dm,Bm=(n("8610"),n("629d"),Object(V["a"])(Rm,Sg,Mg,!1,null,"04297143",null)),Nm=Bm.exports,Fm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.analysisConfig.analysisLoading,expression:"analysisConfig.analysisLoading"}],staticClass:"analysis-wrapper"},[n("div",{staticClass:"analysis-tool"},[n("div",{staticClass:"analysis-title"},[t._v(t._s(t.$t("search.data_statistics_analysis_tool"))),t.role>1?n("span",[t._v(" > "+t._s(t.analysisConfig.analysisParams&&t.analysisConfig.analysisParams.title))]):t._e()]),t.role>1?n("div",[n("el-input",{staticStyle:{width:"200px",margin:"0 12px"},attrs:{clearable:"","prefix-icon":"el-icon-search",placeholder:t.$t("search.input_placeholder")},model:{value:t.analysisConfig.analysisKeyword,callback:function(e){t.$set(t.analysisConfig,"analysisKeyword",e)},expression:"analysisConfig.analysisKeyword"}})],1):t._e()]),"quake_image"===t.searchList.selectIndex&&t.role>2||"quake_service"===t.searchList.selectIndex&&t.role||t.isQuakeCertificate&&t.role?[n("div",{staticClass:"analysis-top-line"},[n("span",{staticClass:"analysis-top-left"},[n("span",{staticClass:"txt"},[t._v(t._s(t.$t("search.type_statistics")))]),n("span",{domProps:{innerHTML:t._s(t.$t("search.total_type_count",{count:t.getAnalysisUniqueTotal(t.analysisConfig)}))}})]),t.role>1?n("span",{staticClass:"analysis-number"},[n("span",[t._v(t._s(t.$t("search.only_view_top_")))]),n("el-select",{staticStyle:{width:"140px",margin:"0 6px"},attrs:{filterable:"","allow-create":"","default-first-option":"",placeholder:"请选择或输入"},on:{change:t.onChangeAnalysisNumber},model:{value:t.analysisConfig.analysisParams.analysisNumber,callback:function(e){t.$set(t.analysisConfig.analysisParams,"analysisNumber",e)},expression:"analysisConfig.analysisParams.analysisNumber"}},t._l([20,50,100],(function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})})),1),n("span",[t._v(t._s(t.$t("search._data_count")))])],1):t._e()]),t.analysisConfig.analysisList&&t.analysisConfig.analysisList.length?[n("div",{staticClass:"chart"},[n("AnalysisGraph",{attrs:{data:t.analysisData},on:{search:t.onSearch}})],1)]:t.analysisConfig.analysisLoading?t._e():[n("NoData",{staticStyle:{"padding-bottom":"100px"}})]]:[n("div",{staticClass:"analysis-tip"},["theme-quake"===t.themeClassName?n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"quakeTip"}}):n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"quakeTip1"}}),n("span",{staticClass:"tip"},[n("div",[t._v("相关数据仅对 "),n("span",{staticClass:"emphasize-txt",on:{click:t.onGoMemeber}},["quake_service"===t.searchList.selectIndex?n("span",[t._v("高级会员&")]):t._e(),t._v("终身会员")]),t._v(" 开放查看&导出权限")]),n("div",{staticClass:"more",on:{click:t.onGoMemeber}},[t._v("了解更多"),n("svg-icon",{attrs:{"icon-class":"more"}})],1)])],1)]],2)},zm=[],Vm=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"graph"},[n("div",{staticClass:"tick"},t._l(t.tick,(function(e,i){return n("div",{key:i,staticClass:"tick-item"},[t._v(" "+t._s(t.formatNumber(e))+" ")])})),0),n("VuePerfectScrollbar",[n("div",{staticClass:"item-container"},t._l(t.sortedData,(function(e,i){return n("div",{key:e.doc_count+"-"+i,staticClass:"item"},[n("div",{staticClass:"title",style:{color:t.config.color[i>2?"":"top"+(i+1)]},on:{click:function(n){return t.search(e.key)}}},[t._v(t._s(e.key))]),n("div",{staticClass:"bar-container"},[n("el-tooltip",{attrs:{effect:"dark",content:e.key+"："+e.doc_count}},[n("div",{staticClass:"bar",style:{width:e.doc_count/t.maxValue*100+"%",backgroundColor:t.config.color[i>2?"normal":"top"+(i+1)]}},[n("span",{staticClass:"count"},[t._v(t._s(Number(e.doc_count).toLocaleString()))])])]),n("div",{staticClass:"bar-bottom-layer"},[n("span",{staticClass:"count"},[t._v(t._s(Number(e.doc_count).toLocaleString()))])])],1)])})),0)])],1)},Gm=[],Hm=n("9d63"),Wm=n.n(Hm),Um={name:"AnalysisGraph",props:{data:{type:Array,required:!0,default:function(){return[]}}},components:{VuePerfectScrollbar:Wm.a},data:function(){return{config:{color:{top1:"#FFB076",top2:"#6F83FF",top3:"#37C1E3",normal:"#7AB3FD"}}}},computed:{sortedData:function(){return(this.data||[]).sort((function(t,e){return t.doc_count<e.doc_count?1:-1}))},maxValue:function(){var t=Math.max.apply(Math,Object(b["a"])(this.data.map((function(t){return t.doc_count}))))||0;if(t<10)return 10;var e=t.toString(),n=e.length;return Math.ceil(t/Math.pow(10,n-1))*Math.pow(10,n-1)},tick:function(){for(var t=10,e=this.maxValue/t,n=[0],i=1;i<=10;i+=1)n.push(e*i);return n}},methods:{search:function(t){this.$emit("search",t)},formatNumber:function(t){return t>9999?"".concat(t/1e4,"w"):t>999?"".concat(t/1e3,"k"):t}}},Zm=Um,Ym=(n("ffe2"),Object(V["a"])(Zm,Vm,Gm,!1,null,"143f8758",null)),Xm=Ym.exports;function qm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Km(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qm(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Qm={props:{analysisConfig:{type:Object,default:function(){}},searchList:{type:Object,default:function(){}}},components:{AnalysisGraph:Xm},data:function(){return{}},computed:Km({},Object(w["e"])("site",["role","themeClassName"]),{isQuakeCertificate:function(){return this.searchList.selectIndex===yt["b"]},getAnalysisUniqueTotal:function(){return function(t){return t&&t.analysisUniqueTotal?t.analysisUniqueTotal.toLocaleString():0}},analysisData:function(){var t=this.analysisConfig.analysisKeyword.toLowerCase().trim();return this.analysisConfig.analysisList.filter((function(e){return""===t||e.key.toString().toLowerCase().trim().includes(t)}))},height:function(){var t=0;return this.analysisConfig.analysisData&&this.analysisConfig.analysisData.rows&&(t=80*this.analysisConfig.analysisData.rows.length),"".concat(t,"px")}}),methods:{onChangeAnalysisNumber:function(){this.$emit("postAggregationAnalysis",{aggregation_list:this.analysisConfig.analysisParams.keys,size:this.analysisConfig.analysisParams.analysisNumber})},onGoMemeber:function(){this.$router.push("/member")},onExport:function(){this.$emit("onExport","analysis")},onSearch:function(t){var e=this.searchList.searchVal,n="";n=e?"(".concat(e,") AND ").concat(this.analysisConfig.analysisParams.keys[0],': "').concat(t,'"'):"".concat(this.analysisConfig.analysisParams.keys[0],': "').concat(t,'"');var i=this.$router.resolve({name:"searchResult",query:{searchVal:n,selectIndex:this.searchList.selectIndex}}),r=i.href;window.open(r,"_blank")}}},Jm=Qm,$m=(n("660a"),Object(V["a"])(Jm,Fm,zm,!1,null,"64e72fe4",null)),tv=$m.exports,ev=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"list-model-container"},[n("div",{staticClass:"tool-line"},[n("el-button",{staticClass:"copy-btn",attrs:{type:"primary"},on:{click:t.copyTable}},[t._v(" "+t._s(t.$t("search.list_mode.copy_all"))+" ")]),n("div",{staticClass:"filter"},[t.isQuakeTippingPoint?t._e():n("el-select",{staticClass:"mr-15",staticStyle:{width:"225px"},attrs:{clearable:"",placeholder:t.$t("search.select_placeholder")},on:{clear:t.handleFilterTypeClear},model:{value:t.filter.type,callback:function(e){t.$set(t.filter,"type",e)},expression:"filter.type"}},t._l(t.options.constType.list,(function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.name}},[n("span",{staticClass:"custom-option"},[n("span",{staticClass:"name float-left"},[t._v(t._s(e.name))])])])})),1),n("el-input",{staticStyle:{width:"258px"},attrs:{clearable:"","prefix-icon":"el-icon-search",placeholder:t.$t("search.input_placeholder")},model:{value:t.filter.query,callback:function(e){t.$set(t.filter,"query",e)},expression:"filter.query"}}),t.role?n("ColumnEdit",{attrs:{visible:t.dialog.customColumn.visible,data:t.dialog.customColumn.data},on:{"update:visible":function(e){return t.$set(t.dialog.customColumn,"visible",e)},change:t.handleTableColumnChange,closeCustomColumnDialog:t.closeCustomColumnDialog,updateCustomTemplate:t.getCustomTemplate}},[n("el-button",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeCustomColumnDialog,expression:"closeCustomColumnDialog"}],ref:"tableHeaderBtn",staticClass:"custom-table-btn ml-15",attrs:{slot:"action",type:"primary",id:"tableHeaderBtn",plain:"",icon:"custom-icon-extend custom-icon-extend-table-config"},on:{click:t.toggleCustomColumnDialog},slot:"action"})],1):t._e()],1)],1),n("div",{staticClass:"content"},[n("el-table",{ref:"listTable",staticClass:"custom-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",border:"",size:"small"}},[t._l(t.currentTable.labels,(function(e,i){return n("el-table-column",{key:e.property+i,attrs:{label:e.name,sortable:e.sortable,"min-width":e.width,fixed:0===i&&"left",resizable:e.resizable},scopedSlots:t._u([{key:"default",fn:function(i){return[n("div",{staticClass:"custom-table-column"},["link"==e.type?[t._l(t.toArray(e.property),(function(r,o){return n("span",{key:r,staticClass:"table-link",class:t.getThemeClass,on:{click:function(n){t._.get(i.row,r)&&t.onSearchMore(t.toArray(e.query)[o],t._.get(i.row,r))}}},[t._v(" "+t._s(t._.get(i.row,r))+" ")])})),i.row.sys_tag&&i.row.sys_tag.length?n("span",t._l(i.row.sys_tag,(function(e){return n("el-tooltip",{key:e,attrs:{content:e,placement:"top"}},[n("svg-icon",{staticClass:"cdn-icon",attrs:{"icon-class":t.getCdnIcon.get(e)},on:{click:function(n){return t.handleJudgeCdnSearch("sys_tag",e)}}})],1)})),1):t._e(),e.antiBtn&&t.toArray(e.property).length?n("span",[n("el-tooltip",{attrs:{content:t.$t("search.list_model.anti_search"),placement:"top"}},[n("svg-icon",{staticClass:"cdn-icon",attrs:{"icon-class":"anti_btn"},on:{click:function(n){t.onSearchMoreAnti(t.toArray(e.query)[0],t._.get(i.row,t.toArray(e.property)[0]))}}})],1)],1):t._e()]:"host"==e.type?[i.row.is_domain||t.isDomain(t._.get(i.row,e.property))||"unicode_domain"===e.property?n("span",{staticClass:"table-link",on:{click:function(n){t.onSearchMore(e.query,t._.get(i.row,e.property))}}},[t._v(" "+t._s(t._.get(i.row,e.property,"--"))+" ")]):n("span",[t._v("--")]),e.antiBtn&&(i.row.is_domain||t.isDomain(t._.get(i.row,e.property)))?n("span",[n("el-tooltip",{attrs:{content:t.$t("search.list_model.anti_search"),placement:"top"}},[n("svg-icon",{staticClass:"cdn-icon",attrs:{"icon-class":"anti_btn"},on:{click:function(n){t.onSearchMoreAnti(e.query,t._.get(i.row,e.property))}}})],1)],1):t._e()]:"icon"==e.type?[n("el-image",{staticClass:"fav-icon",class:{"cursor-pointer":t._.get(i.row,e.property[0])},attrs:{src:t._.get(i.row,e.property[0])?"data:image/png;base64,"+t._.get(i.row,e.property[0]):t._.get(i.row,"service.http.favicon.s3_url"),fit:"cover"},on:{click:function(n){t.onSearchMore("favicon",t._.get(i.row,e.queryValue))}}},[n("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"})]),t._v(" | "),n("span",{staticStyle:{cursor:"pointer"},on:{click:function(n){t.onSearchMore(e.query[1],t._.get(i.row,e.property[1]))}}},[t._v(t._s(t._.get(i.row,e.property[1])))])]:"tags"===e.type?[i.row.tags&&i.row.tags.length?n("div",{staticClass:"type-tags type-tags-list"},[n("TagLabel",{attrs:{tag:i.row.tags[0],"has-close":!0},on:{closeTag:function(e){return t.handleDeleteTag(i.row.tags[0],i.row.id)}},nativeOn:{click:function(e){return t.onSearchMore("tag_new",i.row.tags[0])}}}),i.row.tags.length>1?n("el-popover",{staticClass:"popover-container",attrs:{placement:"bottom",offset:-50,width:"600",trigger:"click"}},[n("div",{staticClass:"tag-popover"},t._l(i.row.tags.slice(1),(function(i){return n("div",{key:i.id,staticClass:"tag-label-wrap",staticStyle:{width:"32%"}},[n("TagLabel",{attrs:{tag:i,"bind-show-tip":"disable",width:"width-100","has-close":!0},on:{closeTag:function(n){return t.handleDeleteTag(i,e.id)}},nativeOn:{click:function(e){return t.onSearchMore("tag_new",i)}}})],1)})),0),n("span",{staticClass:"tags-more",attrs:{slot:"reference"},slot:"reference"},[t._v("+"+t._s(i.row.tags.length-1))])]):t._e()],1):n("span",[t._v("--")])]:"components"==e.type?[i.row.components&&i.row.components.length?n("div",{staticClass:"compontent-container"},[n("el-tooltip",{attrs:{effect:"dark",content:"查看全部",placement:"top"}},[n("div",{staticClass:"svg-wrapper"},[n("div",{staticClass:"svg-box",on:{click:function(e){return t.openComponentsDialog(i.row.components)}}},[n("svg-icon",{attrs:{"icon-class":"component"}})],1)])]),n("div",{staticClass:"component-box"},[n("span",{staticClass:"component-item",on:{click:function(e){return t.onSearchMore("app",i.row.components[0].product_name_cn)}}},[n("span",{staticClass:"content"},[t.productLogoPrefix?n("ImageComponent",{staticClass:"logo",attrs:{src:t.productLogoPrefix+i.row.components[0].product_name_cn}}):t._e(),t._v(" "+t._s(i.row.components[0].product_name_cn)+" ")],1)]),i.row.components.length>1?n("span",{staticClass:"component-item",on:{click:function(e){return t.openComponentsDialog(i.row.components)}}},[n("span",{staticClass:"content"},[t._v("+"+t._s(i.row.components.length-1))])]):t._e()])],1):t._e()]:"location"==e.type?[n("span",{staticClass:"location"},[n("i",{class:[t.formatFlagClass(i.row.location.country_code),"flag"]}),t._l(t.toArray(e.property),(function(r,o){return n("span",{key:r,staticClass:"cursor-pointer mr-5",on:{click:function(n){t._.get(i.row,r)&&t.onSearchMore(t.toArray(e.query)[o],t._.get(i.row,r))}}},[t._v(" "+t._s(t._.get(i.row,r)||"--")+" ")])}))],2)]:"boolean"==e.type?[n("span",{staticClass:"boolean",class:e.booleanClass[t._.get(i.row,e.property)?0:1]},[t._v(t._s(e.booleanLabel[t._.get(i.row,e.property)?0:1]))])]:"status_code_and_response"==e.type?[n("span",{staticClass:"cursor-pointer status-code",class:["status-code-"+(t._.get(i.row,"service.http.status_code")||"")],on:{click:function(e){t.onSearchMore("status_code",t._.get(i.row,"service.http.status_code"))}}},[t._v(" "+t._s(t._.get(i.row,"service.http.status_code")||"--")+" ")]),n("i",{staticClass:"response-icon el-icon-arrow-right",on:{click:function(e){return t.onShowAll(i.row,"response")}}})]:"tls_validity"==e.type?[t._.get(i.row,e.property)?n("span",{staticClass:"dot-container",class:[t.isAfterNow(t._.get(i.row,e.property))?"success":"error"]},[n("span",{staticClass:"dot"}),t._v(" "+t._s(t.isAfterNow(t._.get(i.row,e.property))?"有效":"失效")+" ")]):t._e()]:"tippingPointSafeInform"===e.type?[t._.get(i.row,"vuls[0].ipv4_list")&&t._.get(i.row,"vuls[0].ipv4_list").length?n("div",{staticClass:"tipping-point-label-i"},[n("span",[t._v("IP地址")]),n("el-button",{staticStyle:{"margin-left":"6px"},attrs:{type:"text"},on:{click:function(e){return t.handleOpenTippingPointVulProve(i.row)}}},[t._v(" +"+t._s(t._.get(i.row,"vuls[0].ipv4_list").length)+" ")])],1):t._e(),t._.get(i.row,"vuls[0].domain_list")&&t._.get(i.row,"vuls[0].domain_list").length?n("div",{staticClass:"tipping-point-label-i"},[n("span",[t._v("域名")]),n("el-button",{staticStyle:{"margin-left":"6px"},attrs:{type:"text"},on:{click:function(e){return t.handleOpenTippingPointVulProve(i.row)}}},[t._v(" +"+t._s(t._.get(i.row,"vuls[0].domain_list").length)+" ")])],1):t._e(),t._.get(i.row,"vuls[0].username_list")&&t._.get(i.row,"vuls[0].username_list").length?n("div",{staticClass:"tipping-point-label-i"},[n("span",[t._v("账号")]),n("el-button",{staticStyle:{"margin-left":"6px"},attrs:{type:"text"},on:{click:function(e){return t.handleOpenTippingPointVulProve(i.row)}}},[t._v(" +"+t._s(t._.get(i.row,"vuls[0].username_list").length)+" ")])],1):t._e(),t._.get(i.row,"vuls[0].email_list")&&t._.get(i.row,"vuls[0].email_list").length?n("div",{staticClass:"tipping-point-label-i"},[n("span",[t._v("邮箱")]),n("el-button",{staticStyle:{"margin-left":"6px"},attrs:{type:"text"},on:{click:function(e){return t.handleOpenTippingPointVulProve(i.row)}}},[t._v(" +"+t._s(t._.get(i.row,"vuls[0].email_list").length)+" ")])],1):t._e(),t._.get(i.row,"vuls[0].file_list")&&t._.get(i.row,"vuls[0].file_list").length?n("div",{staticClass:"tipping-point-label-i"},[n("span",[t._v("文件名称")]),n("el-button",{staticStyle:{"margin-left":"6px"},attrs:{type:"text"},on:{click:function(e){return t.handleOpenTippingPointVulProve(i.row)}}},[t._v(" +"+t._s(t._.get(i.row,"vuls[0].file_list").length)+" ")])],1):t._e(),t._.get(i.row,"vuls[0].url_list")&&t._.get(i.row,"vuls[0].url_list").length?n("div",{staticClass:"tipping-point-label-i"},[n("span",[t._v("URL")]),n("el-button",{staticStyle:{"margin-left":"6px"},attrs:{type:"text"},on:{click:function(e){return t.handleOpenTippingPointVulProve(i.row)}}},[t._v(" +"+t._s(t._.get(i.row,"vuls[0].url_list").length)+" ")])],1):t._e()]:"utcTime"===e.type?[n("span",[t._v(t._s(t.dayjs(t._.get(i.row,e.property)).format("YYYY-MM-DD HH:mm:ss")))])]:n("span",t._l(t.toArray(e.property),(function(r,o){return n("span",{key:r,class:{"cursor-pointer":e.query},on:{click:function(n){e.query&&t._.get(i.row,r)&&t.onSearchMore(t.toArray(e.query)[o],t._.get(i.row,r))}}},[t._v(" "+t._s(t.toArray(t._.get(i.row,r)).join(", ")||"--")+" "),e.antiBtn&&t.toArray(t._.get(i.row,t.toArray(e.property)[0])).join(", ")?n("span",[n("el-tooltip",{attrs:{content:t.$t("search.list_model.anti_search"),placement:"top"}},[n("svg-icon",{staticClass:"cdn-icon",attrs:{"icon-class":"anti_btn"},on:{click:function(n){n.stopPropagation(),t.onSearchMoreAnti(t.toArray(e.query)[o],t._.get(i.row,r))}}})],1)],1):t._e(),o+1<t.toArray(e.property).length?n("span",[t._v("｜")]):t._e()])})),0)],2)]}}],null,!0)})})),n("el-table-column",{attrs:{align:"left",fixed:"right",resizable:!1,label:"操作",width:180},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"custom-action-btns"},[n("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.view_detail"),placement:"top"}},[t.role&&t._.get(e.row,"ip")&&!t._.get(e.row,"ip").includes("*")?n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"detail"},on:{click:function(n){return t.onSkipIpDetail(e.row)}}}):t._e()],1),n("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.query_ip_class_c"),placement:"top"}},[t.role&&t._.get(e.row,"ip")?n("svg-icon",{attrs:{"icon-class":"ipC"},on:{click:function(n){t.onSearchMore("ip",t._.get(e.row,"ip")+"/24","ipC")}}}):t._e()],1),n("el-tooltip",{attrs:{effect:"dark",content:t.$t("search.open_link"),placement:"top"}},[t._.get(e.row,"ip")&&!t._.get(e.row,"ip").includes("*")&&t._.get(e.row,"service")&&t._.get(e.row,"service.name")?n("a",{attrs:{target:"_blank",rel:t.getUrl(e.row).includes(t.quakeDomain)?"":"noreferrer noopener nofollow",href:t.getUrl(e.row)}},[n("svg-icon",{attrs:{"icon-class":"forward"}})],1):t._e()]),n("el-dropdown",{attrs:{trigger:"click","hide-on-click":!1}},[n("el-button",{attrs:{type:"primary",round:"",size:"mini"}},[t._v(" 更多"),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.isQuakeTippingPoint?n("el-dropdown-item",[n("div",{on:{click:function(n){return t.handleOpenTippingPointVulProve(e.row)}}},[t._v("查看漏洞证明")])]):t._e(),!1===t.$route.query.latest||"false"===t.$route.query.latest?n("el-dropdown-item",[t.window&&t.window.Config&&t.window.Config.permission&&t.window.Config.permission.includes("front.concern.asset")?n("div",{staticClass:"icon-container",on:{click:function(n){return t.openAddAssetDialog(e.row)}}},[n("svg-icon",{attrs:{"icon-class":"add"}}),n("span",{staticClass:"icon-desc"},[t._v(t._s(t.$t("search.add_to_monitor")))])],1):t._e()]):t._e(),n("el-dropdown-item",[e.row.service&&e.row.service.http&&t.filterHuntingMenu.length>0?n("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommandHunting}},[n("div",{staticClass:"icon-container"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"hunting"}}),n("span",{staticClass:"icon-desc"},[t._v(t._s(t.$t("search.one_key_hunting")))])],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.filterHuntingMenu(e.row),(function(e,i){return n("el-dropdown-item",{key:i,attrs:{command:e}},[t._v(" "+t._s(t.$t("search.menuItem."+e.grammar))+" ")])})),1)],1):t._e()],1),"quake_service"===t.$route.query.selectIndex||t.isQuakeTippingPoint?t._e():n("el-dropdown-item",[n("div",{staticClass:"icon-container",on:{click:function(n){return t.handleShowAddTag(e.row.id)}}},[n("svg-icon",{staticClass:"svg add-tags-icon",attrs:{"icon-class":"add_tags"}}),n("span",{staticClass:"icon-desc"},[t._v(" "+t._s(t.$t("search.add_tags"))+" "),n("svg-icon",{staticClass:"new-tag-icon",attrs:{"icon-class":"newTag"}})],1)],1)])],1)],1)],1)]}}])})],2),n("div",{staticClass:"pagination mt-15"},[n("IocPagination",{attrs:{type:"full",total:t.paginationConfig.total&&t.paginationConfig.total.value,currentPage:t.paginationConfig.page&&t.paginationConfig.page.value,pageSize:t.paginationConfig.size&&t.paginationConfig.size.value},on:{"size-change":t.paginationConfig.sizeChange.value,"current-change":t.paginationConfig.currentChange.value}})],1),n("AddAsset",{ref:"addAsset",attrs:{data:t.addAssetData}}),n("ViewComponent",{attrs:{componentsList:t.dialog.components.data,viewComponentDialogVisible:t.dialog.components.visible},on:{changeViewComponentDialogVisible:t.changeComponentsDialogVisible,onSeachComponent:t.onSearchMore}}),n("CustomTableDialog",{ref:"customTableDialog",attrs:{visible:t.dialog.customTable.visible,data:t.dialog.customTable.data,options:t.dialog.customTable.options,type:t.dialog.customTable.type},on:{"update:visible":function(e){return t.$set(t.dialog.customTable,"visible",e)},success:t.handleCustomTable}})],1)])},nv=[],iv=(n("baa5"),n("e67d")),rv=n.n(iv),ov=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-popover",{attrs:{placement:"bottom-end",width:"254","visible-arrow":!1,"popper-class":"reset-popper",trigger:"manual",id:"resetPopper"},on:{show:t.handleShowPopover},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("div",{staticClass:"field-container"},[n("div",{staticClass:"title clearfix"},[t._v(" 表头配置 ")]),n("div",{staticClass:"body"},[n("div",{staticClass:"content-scroll-wrapper"},[n("el-checkbox-group",{model:{value:t.activeData,callback:function(e){t.activeData=e},expression:"activeData"}},t._l(t.allData,(function(e,i){return n("div",{key:e.name+i,staticClass:"check-item"},[n("el-checkbox",{attrs:{disabled:e.disabled,label:e.name}},[t._v(" "+t._s(e.name)+" ")])],1)})),0)],1)]),n("span",{staticClass:"footer-border"}),n("div",{staticClass:"footer-btn",class:{"flex-between":t.hadChangedSelect}},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.hadChangedSelect,expression:"hadChangedSelect"}],staticClass:"unsaved-tip"},[t._v("字段已变更")]),n("div",{staticClass:"footer-right"},[n("el-button",{on:{click:t.handleCancelConfigTable}},[t._v("取消")]),n("el-button",{attrs:{type:"primary",disabled:!t.hadChangedSelect,loading:t.confirmLoading,size:"mini"},on:{click:t.submitForm}},[t._v(t._s(t.$t("global.confirm")))])],1)])]),n("span",{attrs:{slot:"reference"},slot:"reference"},[t._t("action",[n("el-button",{staticClass:"custom-button",attrs:{type:"primary"}},[t._v(" 自定义表头 ")])])],2),n("CustomTableDialog",{ref:"customTableDialog",attrs:{visible:t.dialog.customTable.visible,data:t.dialog.customTable.data,options:t.dialog.customTable.options,type:t.dialog.customTable.type},on:{"update:visible":function(e){return t.$set(t.dialog.customTable,"visible",e)},success:t.handleCustomTable}})],1)},av=[],sv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:t.title,visible:t.visible,width:"444px","close-on-click-modal":!1,"custom-class":"custom-dialog","append-to-body":""},on:{close:t.closeDialog,closed:t.resetForm}},[n("div",{staticClass:"body"},[n("el-form",{ref:t.form.ref,staticClass:"mt-5",attrs:{model:t.form.data,rules:t.form.rules,"label-width":t.form.config.labelWidth},nativeOn:{submit:function(t){t.preventDefault()}}},[n("el-form-item",{attrs:{label:"模板",prop:"template"}},[n("el-select",{staticStyle:{width:"225px"},attrs:{placeholder:"请选择模板"},on:{change:t.handleTemplateChange},model:{value:t.form.data.template,callback:function(e){t.$set(t.form.data,"template",e)},expression:"form.data.template"}},t._l(t.form.options.template,(function(t){return n("el-option",{key:t.name,attrs:{label:t.name,value:t.name}})})),1)],1),n("el-form-item",{attrs:{label:"名称",prop:"name"}},[n("el-input",{attrs:{size:"small",placeholder:"请输入"},model:{value:t.form.data.name,callback:function(e){t.$set(t.form.data,"name",e)},expression:"form.data.name"}})],1),n("el-form-item",{attrs:{label:"字段",prop:"labels"}},[n("div",{staticClass:"labels-container"},[n("el-checkbox-group",{model:{value:t.form.data.labels,callback:function(e){t.$set(t.form.data,"labels",e)},expression:"form.data.labels"}},[n("draggable",{staticClass:"list-group",attrs:{list:t.currentTemplate}},t._l(t.currentTemplate,(function(e,i){return n("div",{key:e.name+i,staticClass:"check-item"},[n("el-checkbox",{attrs:{label:e.name}},[t._v(" "+t._s(e.name)+" ")])],1)})),0)],1)],1)])],1),n("div",{staticClass:"tip"},[t._v("执行保存操作后请在配置模板中调用")])],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{staticClass:"mr-5",staticStyle:{width:"100px"},attrs:{type:"default",size:"small"},on:{click:t.closeDialog}},[t._v("取消")]),n("el-button",{staticStyle:{width:"100px"},attrs:{type:"primary",size:"small"},on:{click:t.submitForm}},[t._v("保存")])],1)])},lv=[],cv=n("b76a"),uv=n.n(cv),hv={id:"",template:"",name:"",labels:[]},dv={name:"CustomTableDialog",components:{draggable:uv.a},props:{type:{type:String,default:"create"},visible:{type:Boolean,default:!1},data:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return{}}}},watch:{visible:function(t){var e=this;t&&this.$nextTick((function(){e.form.data=e._.assign(e._.cloneDeep(hv),e.data),e.form.options=e._.assign(e.form.options,e.options),e.getCurrentTemplate(),e.$nextTick((function(){e.resetFormLabels()}))}))}},computed:{},data:function(){return{title:"自定义表格配置",dragging:!1,form:{ref:"createForm",config:{labelWidth:"50px"},data:hv,options:{template:[]},rules:{name:[{required:!0,message:"名称不能为空",trigger:"blur"}],labels:[{required:!0,message:"字段不能为空",trigger:"change"}]}},currentTemplate:[]}},mounted:function(){},beforeDestroy:function(){this.getCurrentTemplate()},methods:{getCurrentTemplate:function(){var t=this,e=this._.flatten(this.form.options.template.map((function(t){return t.table})));e=this._.uniqBy(e,"name");var n=this.form.options.template.find((function(e){return e.name===t.form.data.template})),i=n?n.table:e;this.currentTemplate="WEB服务"===this.form.data.template?i:i.filter((function(t){return"ICP备案单位"!==t.name}))},closeDialog:function(){this.$emit("update:visible",!1)},resetForm:function(){this.$refs[this.form.ref].resetFields()},submitForm:function(){var t=this;this.$refs[this.form.ref].validate((function(e){e&&(t.form.data.labels=t.currentTemplate.filter((function(e){return t.form.data.labels.includes(e.name)})).map((function(t){return t.name})),t.$emit("success",{type:t.type,data:t.form.data}))}))},resetFormLabels:function(){this.$refs[this.form.ref].clearValidate("labels"),"WEB服务"===this.form.data.template&&(this.form.data.labels=["网站title"])},handleTemplateChange:function(){var t=this;this.form.data.labels=[],this.$nextTick((function(){t.resetFormLabels(),t.getCurrentTemplate()}))}}},pv=dv,fv=(n("fada"),Object(V["a"])(pv,sv,lv,!1,null,"64255d05",null)),gv=fv.exports,mv={web:[{name:"IP地址",property:"ip",query:"ip",type:"link",antiBtn:!0,width:150,disabled:!0},{name:"端口｜协议",property:["port","service.name"],query:["port","service"],width:130,antiBtn:!0,disabled:!0},{name:"域名",property:"service.http.host",query:"domain",type:"host",antiBtn:!0,width:150},{name:"国际化域名",property:"unicode_domain",query:"unicode_domain",type:"host",width:150,defaultHide:!0},{name:"传输层",property:"transport",query:"transport",width:60},{name:"响应码｜详情",property:["service.http.status_code","service.response"],query:["status_code","response"],type:"status_code_and_response",width:140},{name:"网站图标｜网站title",property:["service.http.favicon.data","service.http.title"],queryValue:"service.http.favicon.hash",query:["favicon","title"],type:"icon",width:240},{name:"产品应用｜版本",property:["components.product_catalog","components.product_level","components.product_name_cn","components.product_name_en","components.product_type","components.product_vendor","components.version"],type:"components",width:146},{name:"ICP备案单位",property:"service.http.icp.main_licence.unit",query:"icp_keywords",width:140,antiBtn:!0},{name:"ICP备案编号",property:"service.http.icp.licence",query:"icp",width:140},{name:"发现时间",property:"time",width:139,type:"utcTime"},{name:"网站服务器",property:"service.http.server",query:"server",width:97},{name:"地理位置",property:["location.country_cn","location.province_cn","location.city_cn"],query:["country_cn","province_cn","city_cn"],type:"location",width:230},{name:"标签",property:"tags.tag_name",query:"tags",type:"tags",width:240},{name:"运营商",property:"location.isp",query:"isp",width:146},{name:"自治域",property:"org",query:"org",width:146},{name:"自治域编号",property:"asn",query:"asn",width:90},{name:"网站编程语言",property:"service.http.x_powered_by",query:"x_powered_by",width:97},{name:"网站路径",property:"service.http.path",query:"http_path",width:146},{name:"主机名",property:"hostname",query:"hostname",width:146}],cert:[{name:"IP地址",property:"ip",query:"ip",type:"link",width:123,antiBtn:!0,disabled:!0},{name:"端口｜协议",property:["port","service.name"],query:["port","service"],width:115,antiBtn:!0,disabled:!0},{name:"域名",property:"service.http.host",query:"domain",type:"host",width:150,antiBtn:!0},{name:"证书申请部门",property:"service.tls.handshake_log.server_certificates.certificate.parsed.subject.organization",query:"tls_subject_organization",sortable:!0,width:146},{name:"证书申请公用名称",property:"service.tls.handshake_log.server_certificates.certificate.parsed.subject.common_name",query:"tls_subject_common_name",sortable:!0,width:146},{name:"证书申请国家",property:"service.tls.handshake_log.server_certificates.certificate.parsed.subject.country",query:"tls_subject_country",sortable:!0,width:123},{name:"证书颁发部门",property:"service.tls.handshake_log.server_certificates.certificate.parsed.issuer.organization",query:"tls_issuer_organization",sortable:!0,width:146},{name:"证书颁发公用名称",property:"service.tls.handshake_log.server_certificates.certificate.parsed.issuer.common_name",query:"tls_issuer_common_name",sortable:!0,width:146},{name:"证书颁发国家",property:"service.tls.handshake_log.server_certificates.certificate.parsed.issuer.country",query:"tls_issuer_country",sortable:!0,width:123},{name:"是否可信",property:"service.tls.handshake_log.server_certificates.certificate.parsed.signature.self_signed",type:"boolean",booleanLabel:["不可信","可信"],booleanClass:["error","success"],sortable:!0,width:100},{name:"证书版本号",property:"service.tls.handshake_log.server_certificates.certificate.parsed.version",sortable:!0,width:105},{name:"证书状态",property:"service.tls.handshake_log.server_certificates.certificate.parsed.validity.end",sortable:!0,type:"tls_validity",width:150},{name:"证书序列号",property:"service.tls.handshake_log.server_certificates.certificate.parsed.serial_number",query:"tls_serial_number",sortable:!0,width:52},{name:"证书类型",property:"service.tls.handshake_log.server_certificates.certificate.parsed.validation_level",sortable:!0,width:139},{name:"证书开始时间",property:"service.tls.handshake_log.server_certificates.certificate.parsed.validity.start",sortable:!0,width:139,type:"utcTime"},{name:"证书到期时间",property:"service.tls.handshake_log.server_certificates.certificate.parsed.validity.end",sortable:!0,width:139,type:"utcTime"},{name:"签名算法",property:"service.tls.handshake_log.server_certificates.certificate.parsed.signature.signature_algorithm.name",sortable:!0,width:123}],tippingPointUnIncludeWeb:["ICP备案单位","ICP备案编号","标签"],tippingPointInsert:[{name:"漏洞名称",property:"vuls[0].name",type:"tippingPoint",width:150},{name:"漏洞等级",property:"vuls[0].level",type:"tippingPoint",width:150},{name:"安全情报",property:"",type:"tippingPointSafeInform",width:150}]},vv={name:"ColumnEdit",props:{visible:{type:Boolean},data:{type:Object,default:function(){return{}}}},components:{CustomTableDialog:gv},data:function(){return{allData:[],activeData:[],originalData:[],template:"",dialog:{customTable:{data:{},options:{},visible:!1,type:"create"}},confirmLoading:!1}},computed:{selectIndex:function(){return this.$route.query.selectIndex||"quake_service"},hadChangedSelect:function(){var t=new Map,e=!0,n=!1,i=void 0;try{for(var r,o=this.originalData[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var a=r.value;t.set(a,t.has(a)?t.get(a)+1:1)}}catch(p){n=!0,i=p}finally{try{e||null==o.return||o.return()}finally{if(n)throw i}}var s=!0,l=!1,c=void 0;try{for(var u,h=this.activeData[Symbol.iterator]();!(s=(u=h.next()).done);s=!0){var d=u.value;t.set(d,t.has(d)?t.get(d)-1:1)}}catch(p){l=!0,c=p}finally{try{s||null==h.return||h.return()}finally{if(l)throw c}}return!Array.from(t.values()).every((function(t){return 0===t}))}},watch:{visible:function(t){return regeneratorRuntime.async((function(e){while(1)switch(e.prev=e.next){case 0:t&&this.$nextTick((function(){}));case 1:case"end":return e.stop()}}),null,this)}},methods:{handleCancelConfigTable:function(){this.$emit("closeCustomColumnDialog")},ajaxUpdateListModelTableConfig:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return this.confirmLoading=!0,t={index:this.selectIndex,template_name:this.data.activeTemplate,template_fields:this.activeData},i.next=4,regeneratorRuntime.awrap(Object(I["cb"])(t));case 4:e=i.sent,n=e.code,e.data,0===n&&this.$message.success("修改成功"),this.confirmLoading=!1;case 9:case"end":return i.stop()}}),null,this)},handleShowPopover:function(){var t=this;this.$nextTick((function(){window.suitPopOver(),t.template=t.data.activeTemplate,t.allData=t.data.allData||[],t.activeData=t.data.active||[],t.originalData=t.data.original||[]}))},submitForm:function(){return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(this.ajaxUpdateListModelTableConfig());case 2:this.$emit("change",{active:this.activeData,unsaved:this.hadChangedSelect}),this.$emit("update:visible",!1);case 4:case"end":return t.stop()}}),null,this)},openCreateCustomTableDialog:function(){this.dialog.customTable.type="create",this.dialog.customTable.data={template:this.template,labels:this.activeData},this.dialog.customTable.options={template:this.data.template},this.dialog.customTable.visible=!0},handleCustomTable:function(t){var e=this,n=t.data;Object(I["b"])("quake_service",{name:n.name,labels:n.labels,template:n.template}).then((function(t){var n=t.code;0===n&&(e.$refs.customTableDialog.closeDialog(),e.$emit("updateCustomTemplate"),e.$message({message:"创建成功！",type:"success"}))}))}}},yv=vv,bv=(n("569b"),Object(V["a"])(yv,ov,av,!1,null,"9379a160",null)),xv=bv.exports,wv=n("b3f1");function _v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Cv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_v(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Av={components:{ColumnEdit:xv,CustomTableDialog:gv,ViewComponent:hm["a"],AddAsset:dm["a"],TagLabel:Sm["default"],ImageComponent:wv["default"]},mixins:[km["a"],cm["a"],um["a"]],props:{data:{type:Array,default:function(){return[]}},paginationConfig:{type:Object,default:function(){}}},directives:{ClickOutside:rv.a},data:function(){this.$route.query.selectIndex;return{isFirstInit:!0,filter:{query:"",type:"全部网络服务"},options:{constType:{name:"推荐配置",list:[],emptyDefault:"全部网络服务"},customType:{name:"自定义配置",list:[]},template:[],permissionFields:[]},dialog:{customColumn:{data:{},visible:!1},customTable:{data:{},options:{},visible:!1,type:"create"},components:{data:[],visible:!1}},defaultPinType:"WEB服务",pinType:"",pinTypeKey:"listModelpinTypeKey",addAssetData:{},currentTable:{labels:[],originalLabels:[],table:[],template:"全部网络服务"}}},watch:{"filter.type":{handler:function(t){var e,n=this;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:if(this.filter.query="",this.closeCustomColumnDialog(),!this.isFirstInit){i.next=6;break}return i.next=5,regeneratorRuntime.awrap(this.getCustomTemplate());case 5:this.isFirstInit=!1;case 6:this.ajaxGetListModelTableConfig("watch"),e=this.findType(t),this.$emit("onChangeType",((e||{}).template||{}).extra_query||""),this.role||this.options.constType.list.find((function(e){return e.name===t}))&&this.$notify({dangerouslyUseHTMLString:!0,message:'配置模板中可能含有您权限以外的字段，前往<span style="cursor: pointer; color:#4279FD;">升级会员</span>使用效果更佳哦。',onClick:function(){n.$notify.closeAll(),n.$router.push({name:"member"})}});case 10:case"end":return i.stop()}}),null,this)},immediate:!0}},computed:Cv({},Object(w["e"])("site",["role","productLogoPrefix"]),{allData:function(){if(!this.options.constType.list.length)return[];if(this.isQuakeTippingPoint){var t=this.filterLabelByFetch(mv.web.filter((function(t){return!mv.tippingPointUnIncludeWeb.includes(t.name)}))),e=this._.cloneDeep(t);return e.splice.apply(e,[3,0].concat(Object(b["a"])(mv.tippingPointInsert))),e}return"证书"===this.filter.type?this.filterLabelByFetch(mv.cert):this.filterLabelByFetch(mv.web)},allDataOfName:function(){return this.allData.map((function(t){return t.name}))},selectIndex:function(){return this.$route.query.selectIndex||"quake_service"},isQuakeTippingPoint:function(){return this.$route.query.selectIndex===yt["d"]},judgeIfAllowFnTag:function(){return Object(Mm["g"])(window.Config)},currentTable1:function(){var t={labels:[],originalLabels:[],table:[],template:""};if(!this.filter.type)return t;var e=this.findType(this.filter.type);if(!e)return t;var n,i=this._.cloneDeep(this.constTemplate.find((function(t){return t.name===e.template.name})));this.isQuakeTippingPoint&&(n=i.table).splice.apply(n,[3,0].concat(Object(b["a"])(mv.tippingPointInsert)));var r=mv.web.map((function(t){return t.name})).filter((function(t){return!mv.tippingPointUnIncludeWeb.includes(t)}));r.splice.apply(r,[3,0].concat(Object(b["a"])(mv.tippingPointInsert.map((function(t){return t.name})))));for(var o=this.isQuakeTippingPoint?r:e.labels,a=[],s=[],l=!1,c=0;c<o.length;c++)for(var u=o[c],h=0;h<i.table.length;h++){var d=i.table[h],p=d.name===u;"网站图标 | 网站title"===d.name&&p?l||(a.push(Cv({},d,{resizable:"IP地址"!==d.name})),l=!0):p&&a.push(Cv({},d,{resizable:"IP地址"!==d.name}))}l=!1;for(var f=0;f<e.originalLabels.length;f++)for(var g=e.originalLabels[f],m=0;m<i.table.length;m++){var v=i.table[m];"网站图标 | 网站title"===v.name&&v.name.includes(g)?l||(s.push(v),l=!0):v.name===g&&s.push(v)}return{labels:a,originalLabels:s,table:i.table,template:i}},tableData:function(){var t=this,e=this.data.sort((function(e,n){return t.ipSort(e.ip,n.ip)})),n=this.filter.query.trim();return""!==n?e.filter((function(t){return JSON.stringify(t).includes(n)})):e},constTemplate:function(){return[{name:"",value:"",table:this.filterTable(mv.web),extra_query:""},{name:"WEB服务",value:"web",table:this.filterTable(mv.web),extra_query:""},{name:"非WEB服务",value:"non_web",table:this.filterTable(mv.web),extra_query:""},{name:"证书",value:"cert",table:this.filterTable(mv.cert),extra_query:""}]},filterHuntingMenu:function(){return function(t){var e=[];return t.service?(t.service.http.html_hash&&e.push({grammar:"html_hash",value:t.service.http.html_hash}),t.service.http.dom_tree&&t.service.http.dom_tree.dom_hash&&e.push({grammar:"dom_hash",value:t.service.http.dom_tree.dom_hash}),t.service.http.favicon.hash&&e.push({grammar:"favicon",value:t.service.http.favicon.hash}),e):[]}}}),created:function(){},mounted:function(){},methods:Cv({},Object(w["d"])("site",["SET_HUNTING_DETAIL"]),{getTableheaderBtnStyle:function(){},filterLabelByFetch:function(t){var e=this.options.constType.list,n="证书"===this.filter.type?"证书":"全部网络服务",i=e.filter((function(t){return t.name===n}))[0].labels;return t.filter((function(t){return i.includes(t.name)}))},getTableColumnLabels:function(t){return this.allData.filter((function(e){return t.includes(e.name)}))},ajaxGetListModelTableConfig:function(t){var e,n,i,r;return regeneratorRuntime.async((function(t){while(1)switch(t.prev=t.next){case 0:return e={index:this.selectIndex,template_name:this.filter.type},t.next=3,regeneratorRuntime.awrap(Object(I["I"])(e));case 3:n=t.sent,i=n.code,r=n.data,0===i?(this.currentTable.labels=this.getTableColumnLabels(r.length?r:this.allDataOfName),this.currentTable.originalLabels=this.getTableColumnLabels(r.length?r:this.allDataOfName)):(this.currentTable.labels=this.getTableColumnLabels(this.allDataOfName),this.currentTable.originalLabels=this.getTableColumnLabels(this.allDataOfName)),this.currentTable.table=this.allData,this.currentTable.template=this.filter.type;case 9:case"end":return t.stop()}}),null,this)},onSearchMoreAnti:function(t,e){this.$emit("onSearchMoreAnti",t,e)},handleOpenTippingPointVulProve:function(t){this.$emit("openTippingPointVulProve",t)},handleCommandHunting:function(t){this.onSearchMore(t.grammar,t.value)},getTemplate:function(){var t=this;Object(I["j"])("quake_service").then((function(e){var n=e.code,i=e.data;0===n&&(t.options.template=i)}))},getCustomTemplate:function(){var t,e,n,i,r;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,regeneratorRuntime.awrap(Object(I["k"])("quake_service",{size:9999}));case 2:t=o.sent,e=t.code,n=t.data,0===e&&(i=this.constTemplate.map((function(t){return t.name})),r=(n||[]).filter((function(t){return i.includes(t.template.name)})).map((function(t){return Cv({},t,{originalLabels:t.labels,unsaved:!1})})),this.options.constType.list=r.filter((function(t){return t.public})),this.options.customType.list=r.filter((function(t){return!t.public})),this.filter.type||this.setPinType([].concat(Object(b["a"])(this.options.constType.list),Object(b["a"])(this.options.customType.list))));case 5:case"end":return o.stop()}}),null,this)},getAllOptions:function(){var t=this;Object(I["i"])("quake_service").then((function(e){var n=e.code,i=e.data;0===n&&(t.options.permissionFields=i)}))},getTableColumn:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"｜",r="",o=this._.isArray(e)?e:[e];return r=o.map((function(e){return n._.get(t,e)||"--"})).filter((function(t){return""!==t})).join(i),r},onShowAll:function(t,e){this.$emit("onShowAll",t,e)},onSearchMore:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e&&this.$emit("onSearchMore",t,e,n,null,null,i)},doCopy:function(t){var e=this;this.$copyText(t).then((function(){e.$message({message:e.$t("global.copy_success"),type:"success"})}))},copyTable:function(){var t='<div class="el-table__fixed-right"',e=this.$refs.listTable.$el.innerHTML,n=e.lastIndexOf(t),i=e.lastIndexOf(t)>-1?e.substr(0,n):e;this.doCopy(i)},filterTable:function(t){var e=this,n=this.options.permissionFields.map((function(t){return t.field}));return t.filter((function(t){var i=e._.isArray(t.property)?t.property:[t.property];return e._.intersection(i,n).length>0}))},ipSort:function(t,e){for(var n=t.split("."),i=e.split("."),r=0;r<t.length;r+=1){if(n[r]=parseInt(n[r],10),i[r]=parseInt(i[r],10),n[r]<i[r])return-1;if(n[r]>i[r])return 1}return 0},formatFlagClass:function(t){return-1!==["CN","HK","TW","MO"].indexOf(t)?"cn":t.toLowerCase()},findType:function(t){var e=[].concat(Object(b["a"])(this.options.constType.list),Object(b["a"])(this.options.customType.list));return e.find((function(e){return e.name===t}))},toggleCustomColumnDialog:function(){this.dialog.customColumn.visible?this.closeCustomColumnDialog():this.openCustomColumnDialog()},openCustomColumnDialog:function(){this.dialog.customColumn.data={active:this.currentTable.labels.map((function(t){return t.name})),allData:this.currentTable.table,original:this.currentTable.originalLabels.map((function(t){return t.name})),currentTemplate:this.currentTable.template,activeTemplate:this.filter.type},this.dialog.customColumn.visible=!0},closeCustomColumnDialog:function(){this.dialog.customColumn.visible=!1},handleTableColumnChange:function(t){this.currentTable.labels=this.allData.filter((function(e){return t.active.includes(e.name)})),this.currentTable.originalLabels=this.currentTable.labels},handleTableColumnChange1:function(t){var e=this.findType(this.filter.type);e&&(this.$set(e,"labels",t.active),this.$set(e,"unsaved",t.unsaved))},openCreateCustomTableDialog:function(){this.dialog.customTable.type="create",this.dialog.customTable.data={};var t=this.options.template.map((function(t){return t.name}));this.dialog.customTable.options={template:this.constTemplate.filter((function(e){return t.includes(e.name)}))},this.dialog.customTable.visible=!0},openUpdateCustomTableDialog:function(t){var e=this.findType(t);this.dialog.customTable.type="update",this.dialog.customTable.data={id:e.id,name:t,template:e.template.name,labels:e.labels};var n=this.options.template.map((function(t){return t.name}));this.dialog.customTable.options={template:this.constTemplate.filter((function(t){return n.includes(t.name)}))},this.dialog.customTable.visible=!0},handleCustomTable:function(t){"create"===t.type?this.handleCreateCustomTable(t.data):this.handleUpdateCustomTable(t.data)},handleCreateCustomTable:function(t){var e=this;Object(I["b"])("quake_service",{name:t.name,labels:t.labels,template:t.template}).then((function(t){var n=t.code;0===n&&(e.$refs.customTableDialog.closeDialog(),e.getCustomTemplate(),e.$message({message:"创建成功！",type:"success"}))}))},handleUpdateCustomTable:function(t){var e=this;Object(I["bb"])("quake_service",t.id,{name:t.name,labels:t.labels,template:t.template}).then((function(t){var n=t.code;0===n&&(e.$refs.customTableDialog.closeDialog(),e.getCustomTemplate(),e.$message({message:"创建成功！",type:"success"}))}))},handleDeleteCustomTable:function(t){var e=this;this.$confirm("确定要删除该模板","操作提示",{type:"warning"}).then((function(){Object(I["c"])("quake_service",t).then((function(n){var i=n.code;if(0===i){e.$refs.customTableDialog.closeDialog(),e.getCustomTemplate();var r=[].concat(Object(b["a"])(e.options.constType.list),Object(b["a"])(e.options.customType.list)).filter((function(e){return e.id!==t}));r.length&&(e.filter.type=r[0].name),e.$message({message:"删除成功！",type:"success"})}}))}))},handleFilterTypeClear:function(){this.options.constType.list.map((function(t){return t.name})).includes(this.options.constType.emptyDefault)&&(this.filter.type=this.options.constType.emptyDefault)},handleTogglePinType:function(t){this.pinType=t,window.localStorage.setItem(this.pinTypeKey,this.pinType)},changeComponentsDialogVisible:function(t){this.dialog.components.visible=t},openComponentsDialog:function(t){this.dialog.components.data=t,this.dialog.components.visible=!0},setPinType:function(t){if(t.length){var e=window.localStorage.getItem(this.pinTypeKey)||this.defaultPinType,n="";n=t.find((function(t){return t.name===e}))?e:t[0].name,this.pinType=n,this.filter.type=n}},getUrl:function(t){var e=this._.get(t,"service.name"),n=this._.get(t,"service.http"),i=this._.get(t,"service.http.host"),r=this._.get(t,"ip"),o=this._.get(t,"port");return(e.includes("https")||e.includes("ssl")||e.includes("tls")?"https://":"".concat(e,"://"))+(n&&i?i:Object(Z["c"])(r)?"[".concat(r,"]"):r)+(o?":".concat(o):"")},onSkipIpDetail:function(t){var e=t.ip;this.SET_HUNTING_DETAIL(t);var n=this.$router.resolve({name:"ipDetail",query:{ip:e}}),i=n.href;window.open(i,"_blank")},openAddAssetDialog:function(t){this.addAssetData=t,this.$refs.addAsset.dialogConfig.dialogVisible=!0},isAfterNow:function(t){return this.dayjs(t).isAfter(this.dayjs())},toArray:function(t){return this._.isArray(t)?t:[t]},isDomain:function(t){var e=/^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?$/;return e.test(t)}})},Iv=Av,Sv=(n("a5e8"),n("3318"),Object(V["a"])(Iv,ev,nv,!1,null,"223e7f58",null)),Mv=Sv.exports,kv=n("7791"),Ev=n("955b"),Tv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("IocDialog",{attrs:{dialogConfig:t.dialogConfig,exportLoading:t.exportLoading},on:{cancelDialog:t.onCancelDialog,sureDialog:t.onSureDialog}},[[n("div",{staticStyle:{"max-height":"650px"}},[n("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:t.$t("search.rule_name"),prop:"name"}},[n("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入",clearable:""},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),[n("el-form-item",{attrs:{label:t.$t("search.query_string"),prop:"query"}},[n("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",placeholder:"请输入",clearable:""},model:{value:t.form.query,callback:function(e){t.$set(t.form,"query",e)},expression:"form.query"}})],1)],n("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[n("el-form-item",{attrs:{label:t.$t("search.asset_source"),prop:"index"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:t.form.index,callback:function(e){t.$set(t.form,"index",e)},expression:"form.index"}},t._l(t.indices,(function(e){return n("el-option",{key:e.display,attrs:{label:t.$t("search."+e.display),value:e.name}})})),1)],1),n("el-form-item",{attrs:{label:t.$t("search.subscription"),prop:"form"}},[n("el-switch",{model:{value:t.form.enable,callback:function(e){t.$set(t.form,"enable",e)},expression:"form.enable"}})],1)],1),t.form.enable?[n("el-form-item",{attrs:{label:t.$t("search.frequency"),prop:"frequency"}},[n("el-radio-group",{model:{value:t.form.frequency,callback:function(e){t.$set(t.form,"frequency",e)},expression:"form.frequency"}},[n("el-radio",{attrs:{label:"day"}},[t._v(t._s(t.$t("search.daily")))]),n("el-radio",{attrs:{label:"week"}},[t._v(t._s(t.$t("search.weekly")))]),n("el-radio",{attrs:{label:"month"}},[t._v(t._s(t.$t("search.monthly")))])],1)],1),n("el-form-item",{attrs:{label:t.$t("search.receive_type"),prop:"way"}},[n("el-checkbox-group",{model:{value:t.form.way,callback:function(e){t.$set(t.form,"way",e)},expression:"form.way"}},[n("el-checkbox",{attrs:{label:"message",name:"way"}},[t._v(t._s(t.$t("search.system_notification")))]),n("el-checkbox",{attrs:{label:"email",name:"way"}},[t._v(t._s(t.$t("search.email")))])],1)],1),n("el-form-item",{attrs:{label:"","label-width":"0",prop:"ignore_no_changes"}},[n("el-checkbox",{staticStyle:{"white-space":"normal"},model:{value:t.form.ignore_no_changes,callback:function(e){t.$set(t.form,"ignore_no_changes",e)},expression:"form.ignore_no_changes"}},[t._v(" "+t._s(t.$t("search.ignore_notification_tip"))+" ")])],1)]:t._e()],2)],1)]],2)},Ov=[];n("841c");function Pv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function jv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pv(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Lv={props:{queryCollectDialogVisible:{type:Boolean,default:!1},selectIndex:{type:String,default:""},searchVal:{type:String,default:""},indices:{type:Array,default:function(){return[]}}},watch:{queryCollectDialogVisible:{handler:function(){this.form.query=this.searchVal,this.form.index=this.selectIndex},immediate:!0}},computed:jv({},Object(w["c"])("site",["loginType"]),{dialogConfig:function(){return{title:this.$t("search.add_collection"),width:"470px",dialogVisible:this.queryCollectDialogVisible,isShowFooter:!0}}}),data:function(){return{exportLoading:!1,frequencyMapping:{day:"每日更新",week:"每周更新",month:"每月更新"},formOrigin:{name:"",query:"",index:"",enable:!1,frequency:"",way:[],ignore_no_changes:!1},form:{},rules:{name:[{required:!0,message:"请输入规则名称",trigger:"blur"}],query:[{required:!0,message:"请输入查询语句",trigger:"blur"}],index:[{required:!0,message:"请选择数据源",trigger:"change"}],frequency:[{required:!0,message:"请选择频率",trigger:"change"}],way:[{type:"array",required:!0,message:"请选择接收方式",trigger:"change"}]},indexMapping:{quake_service:"服务数据",quake_host:"主机数据",quake_vulnerability:"漏洞数据"}}},mounted:function(){this.form=this._.cloneDeep(this.formOrigin)},methods:{postCreateSubscribe:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.exportLoading=!0,t=this.processParams(),r.next=4,regeneratorRuntime.awrap(Object(gt["F"])(t));case 4:e=r.sent,n=e.code,0===n&&(i="enterprise"===this.loginType?"企业中心":"个人中心",this.$message({type:"success",dangerouslyUseHTMLString:!0,message:'\n            <span style="color: #707070">添加收藏成功，可在\n            <a href="/#/personal?tab=subscribe" target="_blank" style="color: #007AFF; cursor: pointer">'.concat(i,"-收藏订阅</a>\n            中查看您的历史收藏并进行订阅配置。</span>\n          ")}),this.onCancelDialog()),this.exportLoading=!1;case 8:case"end":return r.stop()}}),null,this)},processParams:function(){var t=this.form,e=t.name,n=t.query,i=t.index,r=t.enable,o=t.frequency,a=t.way,s=t.ignore_no_changes,l={name:e,index:i,enable:r,ignore_no_changes:!!s};return l.enable&&(l.frequency=o,l.message=!1,l.email=!1,a.forEach((function(t){"message"===t&&(l.message=!0),"email"===t&&(l.email=!0)}))),l.search={name:"UserBookmarkQueryStringEmbedded",data:n},l},onCancelDialog:function(){this.form=this._.cloneDeep(this.formOrigin),this.$refs.form.resetFields(),this.$emit("changeQueryCollectDialogVisible",!1)},onSureDialog:function(){var t=this;this.$refs.form.validate((function(e){return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:if(!e){n.next=3;break}return n.next=3,regeneratorRuntime.awrap(t.postCreateSubscribe());case 3:case"end":return n.stop()}}))}))}}},Dv=Lv,Rv=Object(V["a"])(Dv,Tv,Ov,!1,null,"09eba0ae",null),Bv=Rv.exports,Nv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"content-container"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.tracerouteConfig.tracerouteLoading,expression:"tracerouteConfig.tracerouteLoading"}],staticClass:"traceroute-right"},[t.tracerouteConfig.tracerouteLoading||t.tracerouteList.length?[n("div",{staticClass:"tool-container"},[n("div",[n("div",{staticClass:"tool-line"},[n("span",{staticClass:"label"},[t._v("展示")]),n("el-select",{staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"请选择"},on:{change:t.onChangeShow},model:{value:t.showValue,callback:function(e){t.showValue=e},expression:"showValue"}},t._l(t.showOptions,(function(t,e){return n("el-option",{key:e,attrs:{label:"以<"+t.label+">展示",value:t.value}})})),1)],1),n("div",{staticClass:"tool-line"},[n("span",{staticClass:"label"},[t._v("时延")]),n("el-select",{staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"请选择"},model:{value:t.delayLabel,callback:function(e){t.delayLabel=e},expression:"delayLabel"}},t._l(t.delayOptions,(function(e,i){return n("el-option",{key:i,attrs:{label:"时延>"+e+"ms，路径高亮显示",value:e}},[n("el-slider",{staticStyle:{width:"300px"},attrs:{min:0,max:300},on:{change:t.onChangeDelay},model:{value:t.delayValue,callback:function(e){t.delayValue=e},expression:"delayValue"}})],1)})),1)],1)]),n("div",{staticClass:"slider-box"},[n("span",[t._v("源端跳数")]),n("el-slider",{staticClass:"range-slider",staticStyle:{width:"280px"},attrs:{range:"",min:1,max:t.maxLen,"format-tooltip":t.formatTooltip},on:{change:t.onChangeRangeSlider},model:{value:t.rangeStep,callback:function(e){t.rangeStep=e},expression:"rangeStep"}}),n("span",[t._v("目的端跳数")])],1)]),n("div",{attrs:{id:"mountNode"}})]:n("NoData",{attrs:{noDataConfig:t.noDataConfig}}),t.tracerouteList.length?n("div",{staticClass:"legend"},[t.isShowLegend?n("div",{staticClass:"mark-box"},[t._m(0),t._m(1),t._m(2),t._m(3),t._m(4),n("div",[n("span",{staticClass:"mark9"},[n("svg-icon",{staticStyle:{width:"12px",height:"12px",position:"absolute",left:"10px",top:"-6px"},attrs:{"icon-class":"close"}})],1),t._v(" 不可达路径 ")]),n("div",[n("span",{staticClass:"mark6"},[n("svg-icon",{staticStyle:{width:"12px",height:"12px",position:"absolute",left:"10px",top:"-6px"},attrs:{"icon-class":"close"}})],1),t._v(" 不可达的聚合路径 ")]),t._m(5),t._m(6)]):t._e(),n("div",{staticClass:"name",on:{click:function(e){t.isShowLegend=!t.isShowLegend}}},[t._v("图例")])]):t._e()],2)])},Fv=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",{staticClass:"mark1"}),t._v("探测节点")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",{staticClass:"mark2"}),t._v("中间节点")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",{staticClass:"mark3"}),t._v("目标IP")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",{staticClass:"mark4"}),t._v("正常路径")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",{staticClass:"mark5"}),t._v("聚合路径(数字代表聚合的路径数量)")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",{staticClass:"mark7"}),t._v("时延大于某数值的高亮路径")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("span",{staticClass:"mark8"}),t._v("包含有高亮路径的聚合路径")])}],zv=n("30d1"),Vv=n.n(zv),Gv={name:"Traceroute",props:{data:{type:Object,default:function(){return{}}},tracerouteConfig:{type:Object,default:function(){return{}}}},data:function(){return{isShowLegend:!1,tracerouteList:[],detailLoading:!1,queryData:[{key:"data.query",alias:"query"}],baseInfo:{},rangeStep:[0,0],showValue:"addr",showOptions:[{value:"addr",label:"IP地址"},{value:"asn",label:"AS域"},{value:"location",label:"地理位置"}],delayLabel:"时延>100ms，路径高亮显示",delayValue:100,delayOptions:[100],nodesData:{},nodesCloneData:{},graph:null,width:1920,height:1080,maxLen:1,hopsLengthArr:[],nameMap:{},noDataConfig:{top:100,bottom:100,width:65,size:14,txt:"暂无网络拓扑，请输入具体IP地址查看网络拓扑"}}},mounted:function(){var t=this;this.width=document.body.clientWidth-580,this.height=document.body.clientHeight-400,this.tracerouteList=this._.cloneDeep(this.tracerouteConfig.tracerouteList),this.$nextTick((function(){t.initGraph()}))},watch:{tracerouteConfig:{handler:function(){var t=this;this.tracerouteList=this._.cloneDeep(this.tracerouteConfig.tracerouteList),this.$nextTick((function(){t.initGraph()}))},deep:!0}},beforeDestroy:function(){window.onresize=null,this.graph&&this.graph.destroy()},methods:{getDetail:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.baseInfo={},this.detailLoading=!0,t={ip:this.data.query},r.next=5,regeneratorRuntime.awrap(this.$api.QUAKE_SERVICE_TRACEROUTE_DETAIL(t));case 5:e=r.sent,n=e.code,i=e.data,0===n&&(this.baseInfo=i),this.detailLoading=!1;case 9:case"end":return r.stop()}}),null,this)},formatFlagClass:function(t){return-1!==["CN","HK","TW","MO"].indexOf(t)?"cn":t.toLowerCase()},onChangeShow:function(){var t=this;this.nodesData.nodes.forEach((function(e){t.showValue in e&&("location"!==t.showValue?e.label=e[t.showValue]:e.label="".concat(e[t.showValue].country_cn," ").concat(e[t.showValue].province_cn," ").concat(e[t.showValue].city_cn))})),this.graph.changeData(this.nodesData)},onChangeDelay:function(){var t=this;this.delayLabel="时延>".concat(this.delayValue,"ms，路径高亮显示"),this.nodesData.edges.forEach((function(e,n,i){if(n){var r=i[n-1].target,o=i[n].source;r===o&&(Math.abs(i[n].rtt-i[n-1].rtt)>t.delayValue?e.style.stroke="red":e.style.stroke="#000")}})),this.graph.refresh()},onChangeRangeSlider:function(t){var e=this,n=this._.cloneDeep(this.tracerouteList);n.forEach((function(n){var i=Object(y["a"])(t,2),r=i[0],o=i[1],a=r===o?o+1:o;e.rangeStep=[r,a];var s=n.hops.length-1-(r+e.maxLen-a);s>0&&n.hops.splice(t[0],s-1)})),this.transformData(n),this.graph.changeData(this.nodesData),this.graph.refresh()},formatTooltip:function(t){return t===this.rangeStep[0]?t:t===this.rangeStep[1]?t===this.maxLen?1:this.maxLen-t+1:t},initGraph:function(){var t=this;if(this.tracerouteList.length){this.transformData(this.tracerouteList,"init"),this.registerEdge();var e=this.tooltip(),n=new Vv.a.Graph({container:"mountNode",width:this.width,height:this.height,fitView:!0,fitViewPadding:20,plugins:[e],modes:{default:["drag-canvas","zoom-canvas"]},defaultNode:{size:30,style:{fill:"#4279FD"},labelCfg:{position:"bottom",style:{fontSize:8,fill:"#000"}}},defaultEdge:{style:{opacity:1,stroke:"#000",lineWidth:.3},labelCfg:{autoRotate:!0,refY:10}}});this.graph=n,n.data(this.nodesData),n.render(),window.onresize=function(){t.graph.changeSize(document.body.clientWidth-580,document.body.clientHeight-400),t.graph.render()}}},transformData:function(t,e){var n=this,i=[],r=[];"init"===e&&(this.hopsLengthArr=[],t.forEach((function(t){n.hopsLengthArr.push(t.hops.length)})),this.maxLen=Math.max.apply(Math,Object(b["a"])(this.hopsLengthArr))-1,this.rangeStep=[this.maxLen-1,this.maxLen]);var o=[];t.forEach((function(t){o.push(t.hops.length)})),t.forEach((function(t,e){var a={id:"".concat(e,"-0"),label:n.tracerouteConfig.monitor[t.monitor],x:n.width-100*o[e]-100,y:50+100*e,type:"rect",style:{fill:"yellow"}};i.push(a);for(var s=0;s<t.hops.length;s++)if(s<t.hops.length-1){var l={id:"".concat(e,"-").concat(s+1),label:t.hops[s].addr,x:n.width-100*(t.hops.length-s),y:50+100*e};"location"!==n.showValue?l.label=t.hops[s][n.showValue]:l.label="".concat(t.hops[s][n.showValue].country_cn," ").concat(t.hops[s][n.showValue].province_cn," ").concat(t.hops[s][n.showValue].city_cn);var c={source:"".concat(e,"-").concat(s),target:"".concat(e,"-").concat(s+1)};s>0&&t.hops[s].ttl-t.hops[s-1].ttl>1&&(c.style={lineDash:[5]},c.label=t.hops[s].ttl-t.hops[s-1].ttl-1),s>0&&Math.abs(t.hops[s].rtt-t.hops[s-1].rtt)>n.delayValue&&(c.style?c.style.stroke="red":c.style={stroke:"red"}),i.push(Object.assign({},l,t.hops[s])),r.push(Object.assign({},c,t.hops[s]))}else{var u={source:"".concat(e,"-").concat(s),target:"dst"};s>0&&t.hops[s].ttl-t.hops[s-1].ttl>1&&(u.style={lineDash:[5]},u.label=t.hops[s].ttl-t.hops[s-1].ttl-1),s>0&&t.hops[s].rtt>0&&Math.abs(t.hops[s].rtt-t.hops[s-1].rtt)>n.delayValue&&(u.style?u.style.stroke="red":u.style={stroke:"red"}),t.hops[s].rtt<0&&(u.type="extra-shape-edge"),r.push(Object.assign({},u,t.hops[s]))}}));var a=t[0].hops.length,s={id:"dst",label:t[0].hops[a-1].addr,x:this.width,y:50+(100*t.length-100)/2,style:{fill:"lightgreen"}};i.push(Object.assign({},s,t[0].hops[a-1])),this.nodesData={nodes:i,edges:r},this.nodesCloneData=this._.cloneDeep(this.nodesData)},registerEdge:function(){Vv.a.registerEdge("extra-shape-edge",{afterDraw:function(t,e){var i=e.get("children")[0],r=i.getPoint(.5);e.addShape("image",{attrs:{width:10,height:10,x:r.x-5,y:r.y-5,img:n("8eeb")}})}},"line")},tooltip:function(){var t=this;return new Vv.a.Tooltip({offsetX:30,offsetY:-50,itemTypes:["node"],getContent:function(e){var n=document.createElement("div");n.style.width="fit-content",n.style.padding="0px";var i="";if(e.item.getModel().id.includes("-0")){var r=t.tracerouteConfig.monitorList.filter((function(t){return t.friendly_name===e.item.getModel().label}));i='\n              <div style="line-height: 24px">\n                <div v-if="e.item.getType() === \'node\'" style="font-weight: bold">探测机</div>\n                <div>名称: '.concat(e.item.getModel().label,"</div>\n                <div>ASN: ").concat(r[0].asn,"</div>\n                <div>运营商: ").concat(r[0].isp,"</div>\n              </div>\n            ")}else i="dst"===e.item.getModel().id?'\n              <div style="line-height: 24px">\n                <div v-if="e.item.getType() === \'node\'" style="font-weight: bold">目标IP</div>\n                <div>IP: '.concat(e.item.getModel().addr,"</div>\n                <div>ASN: ").concat(e.item.getModel().asn,"</div>\n                <div>运营商: ").concat(e.item.getModel().location.isp,"</div>\n                <div>地理位置: ").concat(e.item.getModel().location.country_cn," ").concat(e.item.getModel().location.city_cn," ").concat(e.item.getModel().location.province_cn,"</div>\n              </div>\n            "):'\n              <div style="line-height: 24px">\n                <div v-if="e.item.getType() === \'node\'" style="font-weight: bold">中间节点</div>\n                <div>IP: '.concat(e.item.getModel().addr,"</div>\n                <div>ASN: ").concat(e.item.getModel().asn,"</div>\n                <div>运营商: ").concat(e.item.getModel().location.isp,"</div>\n                <div>地理位置: ").concat(e.item.getModel().location.country_cn," ").concat(e.item.getModel().location.city_cn," ").concat(e.item.getModel().location.province_cn,"</div>\n              </div>\n            ");return n.innerHTML=i,n}})}}},Hv=Gv,Wv=(n("eb87"),Object(V["a"])(Hv,Nv,Fv,!1,null,"2066d4b8",null)),Uv=Wv.exports,Zv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"traceroute-detail-container"},[n("div",{staticClass:"title"},[t._v("基本信息")]),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.tracerouteDetailLoading,expression:"tracerouteDetailLoading"}],staticStyle:{"min-height":"300px"}},[t.baseInfo.document?[n("div",{staticClass:"ip"},[n("svg-icon",{staticStyle:{"margin-right":"6px"},attrs:{"icon-class":"domain"}}),n("span",[t._v(t._s(t.baseInfo.document.ip))])],1),t.baseInfo.document.location?n("div",{staticClass:"location"},[n("i",{class:[t.formatFlagClass("cn"),"flag"]}),n("span",[t._v(t._s(t.baseInfo.document.location.country_cn)+" "+t._s(t.baseInfo.document.location.province_cn)+" "+t._s(t.baseInfo.document.location.city_cn))]),n("span",[n("svg-icon",{staticStyle:{margin:"0 6px 0 12px"},attrs:{"icon-class":"searchResultIpv4"}}),n("span",[t._v(t._s(t.baseInfo.document.is_ipv6?"ipv6":"ipv4"))])],1)]):t._e(),n("div",[n("div",[t._v("自治域编号："+t._s(t.baseInfo.document.asn||"--"))]),n("div",[t._v("自治域："+t._s(t.baseInfo.document.org||"--"))]),n("div",[t._v("运营商："+t._s(t.baseInfo.document.location&&t.baseInfo.document.location.isp||"--"))]),t.baseInfo.document.location&&t.baseInfo.document.location.gsp?[n("div",[t._v("经度："+t._s(t.baseInfo.document.location.gsp[0]||"--"))]),n("div",[t._v("纬度："+t._s(t.baseInfo.document.location.gsp[1]||"--"))])]:t._e()],2),t.baseInfo.service_history_list&&t.baseInfo.service_history_list.length?n("div",{staticClass:"list-container"},t._l(t.baseInfo.service_history_list,(function(e,i){return n("div",{key:i,staticClass:"list"},[n("span",{staticClass:"time"},[t._v(t._s(t.dayjs(e.time).format("YYYY-MM-DD")))]),n("span",{staticClass:"tcp"},[n("svg-icon",{staticClass:"hightlight",attrs:{"icon-class":"searchResultTcp"}}),n("span",[t._v(t._s(e.transport))])],1),n("span",{staticClass:"port"},[n("svg-icon",{staticClass:"hightlight",attrs:{"icon-class":"port"}}),n("span",[t._v(t._s(e.port))])],1),n("span",[t._v(t._s(e.name))])])})),0):t._e()]:n("div",{staticStyle:{"line-height":"42px"}},[n("NoData")],1)],2)])},Yv=[],Xv={props:{tracerouteDetailLoading:{type:Boolean,default:!1},baseInfo:{type:Object,default:function(){}}},data:function(){return{}},methods:{formatFlagClass:function(t){return-1!==["CN","HK","TW","MO"].indexOf(t)?"cn":t.toLowerCase()}}},qv=Xv,Kv=(n("4f53"),Object(V["a"])(qv,Zv,Yv,!1,null,"cbf859e8",null)),Qv=Kv.exports,Jv=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"help-tip-container"},[n("div",{staticClass:"help-box",class:["theme-dark-green"===t.themeClassName?"dark-time":"daytime",{active:t.isCollapse}]},[n("div",{staticClass:"arrow-box",on:{click:t.onCollapse}},[n("svg-icon",{staticClass:"arrow-svg",attrs:{"icon-class":"more"}})],1),n("div",{staticClass:"top-box"},[n("div",{staticClass:"tip"},[n("svg-icon",{staticClass:"svg",attrs:{"icon-class":"tip"}}),n("span",[t._v(t._s(t.$t("help.help_tip"))+"👇")])],1),n("a",{attrs:{href:"#/help?id=5ed99cbe6c609402b5df7aed&title=协议深度识别"}},[t._v(t._s(t.$t("help.protocol_identification")))]),n("br"),n("a",{attrs:{href:"#/help?id=5e77423bcb9954d2f8a01656&title=使用说明"}},[t._v(t._s(t.$t("help.api_documentation")))]),n("br"),n("a",{attrs:{href:"#/help?id=5eb24b4610d2e850d5c6b0d2&title=FAQ"}},[t._v(t._s(t.$t("help.faq")))]),n("br"),n("a",{attrs:{href:"#/dynamic"}},[t._v(t._s(t.$t("help.changelog")))]),n("br")]),t._m(0)])])},$v=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"bottom-box"},[n("div",[t._v("如果您有什么意见或建议，欢迎发送至：")]),n("div",[t._v("quake@360.cn")])])}];function ty(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ey(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ty(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var ny={props:{isShowHelpTip:{type:Boolean,default:!1}},data:function(){return{isCollapse:!0}},watch:{isShowHelpTip:{handler:function(t){this.isCollapse=!t}}},computed:ey({},Object(w["e"])("site",["themeClassName"])),methods:ey({},Object(w["b"])("site",["changeGuideStatus"]),{onCollapse:function(){localStorage.setItem("quake_search_error_time",0),this.$emit("onChangeHelpCollapse",this.isCollapse)},onGuide:function(){this.changeGuideStatus(!1)},onSynax:function(){this.$router.push({name:"help",query:{id:"5eb238f110d2e850d5c6aec8",title:"检索关键词"}})},onApi:function(){this.$router.push({name:"help",query:{id:"5e77423bcb9954d2f8a01656",title:"使用说明"}})}})},iy=ny,ry=(n("535d"),Object(V["a"])(iy,Jv,$v,!1,null,"4b886bb7",null)),oy=ry.exports,ay=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.tagsFilterList.length?n("div",{staticClass:"tag-filter-condition"},[n("div",{staticClass:"tag-title"},[t._v("相关标签（"+t._s(t.tagsFilterList.length)+"）")]),n("div",{staticClass:"tag-filter-content"},[t._l(t.tagsFilterList,(function(e){return n("div",{key:e.id},[n("TagLabel",{attrs:{"has-close":!0,tag:e},on:{closeTag:function(n){return t.closeTag(e)}}})],1)})),n("el-tooltip",{attrs:{content:t.$t("search.tag_class.clear_all_tags")}},[n("svg-icon",{staticClass:"tag-clear-all",attrs:{"icon-class":"tag_clear_all"},on:{click:t.handleResetTagsFilter}})],1)],2)]):t._e()},sy=[];function ly(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function cy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ly(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ly(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var uy={name:"TagFilterCondition",components:{TagLabel:Sm["default"]},props:{condition:{type:Array}},computed:cy({},Object(w["e"])("site",["tagsFilterList"])),data:function(){return{}},watch:{},methods:cy({},Object(w["d"])("site",["SET_TAGS_FILTER_LIST"]),{closeTag:function(t){var e=this.tagsFilterList.length&&this.tagsFilterList.filter((function(e){return e.id!==t.id}));this.SET_TAGS_FILTER_LIST(e),this.$emit("closeTag",t.id)},handleResetTagsFilter:function(){var t=this;this.$confirm(this.$t("search.tag_class.reset_confirm"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.SET_TAGS_FILTER_LIST([]),t.$emit("onSearch")})).catch((function(){}))}})},hy=uy,dy=(n("f881"),Object(V["a"])(hy,ay,sy,!1,null,"3f0d4b45",null)),py=dy.exports,fy=n("e59e");function gy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function my(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gy(Object(n),!0).forEach((function(e){Object(x["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var vy=function(){return n.e("chunk-e8a0a4a2").then(n.bind(null,"2792"))},yy={mixins:[k["a"],U["a"]],components:{TagFilterCondition:py,ResultToolBar:X["a"],IpListCollect:q["a"],SearchSyntax:K["a"],Favicon:Q["a"],RelatedFavicon:dt,ExportData:St,Aggregations:Mt["a"],Statistics:Ig,Result:Nm,Analysis:tv,ListModel:Mv,DialogTitle:kv["a"],DialogBody:Ev["a"],QueryCollect:Bv,Traceroute:Uv,TracerouteDetail:Qv,HelpTip:oy,ImgList:vy,TagDialog:fy["a"],AllMsgTippingPoint:H},data:function(){var t=this,e=function(e,n,i){t.currentScanIpCount>t.scanIpMaxCount?i(new Error("IP或域名不允许超过".concat(t.scanIpMaxCount,"行"))):i()};return{tippingPointDrawer:{visible:!1,data:{vulProve:{},vuls:{}}},informationTagOptions:[],tippingPointActiveTab:"RecentHot",tippingPointRecentHot:[],informationTagCheckAll:!1,checkedInformationTag:[],iconMapping:Object(x["a"])({quake_service:"service",quake_host:"host",quake_image:"synaxImgInfo",quake_vulnerability:"research_vul",quake_certificate:"service"},yt["d"],yt["d"]),isShowHelpTip:!1,isShowGuideTip:!0,checkIp:Z["a"],dayjs:A.a,indices:[],isInitPage:!0,isChangeTab1:!1,isChangeTab2:!1,isChangeTab3:!1,timeRangeEnable:window.Config&&window.Config.configuration&&window.Config.configuration["query.time_range.enable"],fastScanEnable:window.Config&&window.Config.permission&&window.Config.permission.includes("front.query.fast_scan"),ipGeoPrecisionEnable:window.Config&&window.Config.permission&&window.Config.permission.includes("front.data_exploration.ip_geo_precision_app"),queryCollectConfig:{dialogVisible:!1},exportDialogConfig:{exportDialogType:"",title:"导出数据",dialogVisible:!1,width:window.innerWidth<1660?"70%":"50%"},tabMenuConfig:{activeName:"all"},dataModel:"normal",searchResultList:[],oldSelectIndex:"",searchList:{searchVal:this.$route.query.query,selectIndex:this.$route.query.selectIndex||"quake_service",rule:this.$route.query.rule||"",ip_list:[],ignore_cache:!1,shortcuts:[],timeRange:["",""],latest:this.$route.query.latest,real_index:""},tableHeaderConfig:{showOther:!0},toolBarComprehensiveConfig:{isShowPermissionTip:!1,includesFiled:"",uniqueIpLoading:!1,uniqueIpNumber:0,queryTime:0,errMsg:""},relationFaviconConfig:{faviconList:[],isRelatedIcon:!1,isShowMoreFavicon:!0,faviconLoading:!1},showAllDialogConfig:{dialogVisible:!1,btnType:""},tabConfig:{showAllData:{},tabIndex:"response"},leftLoading:!1,aggregationsSingleLoading:!1,aggregationsSingleKey:"",aggregationsCommonData:{},aggregationsData:{},analysisConfig:{analysisLoading:!1,isHasRequestAnalysisKeys:!1,analysisKeyword:"",analysisCloneList:[],analysisList:[],analysisData:{},analysisAggregationsData:{},analysisUniqueTotal:0,analysispaginationConfig:{currentPage:1,pageSize:20},analysisParams:{title:"端口(port)",keys:["port","unique_port"],analysisNumber:20}},tracerouteConfig:{tracerouteLoading:!1,tracerouteDetailLoading:!1,tracerouteList:[],tracerouteDetail:{},monitor:{},monitorList:[]},statisticsLoading:!1,statisticsIndexLoading:!1,aggregationsStatisticsData:{},aggregationsWorldData:{},isScaning:!1,noticeDialogConfig:{title:"Quake提醒您",width:"476px",dialogVisible:!1},scanLoading:!1,scanType:"IP/域名",scanForm:{ip:"",port:"",dns_fast:!0,query:""},scanRules:{ip:[{required:!0,message:"请输入IP或域名",trigger:"blur"},{validator:e,trigger:"change"}],dns_fast:[{required:!0,message:"请选择扫描模式",trigger:"change"}],query:[{required:!0,message:"请输入查询语句",trigger:"blur"}]},scanIpPlaceholder:"请输入IP(段)/域名，每行一个，多个请换行输入，最多不超过1000个，如：\r\n1.1.1.1\r\n2.2.2.2/24\r\nwww.baidu.com",scanQueryPlaceholder:'请输入Quake查询语句，如：port:"8080" OR service:"https"',scanPortPlaceholder:"如：80, 22, 80-90",scanIpMaxCount:1e3,isTriggerDatePicker:!1,datePickerMapping:{week:"last_week",month1:"last_month",month3:"last_3_months",year:"last_year"},datePickerType:"",extraPrams:"",clickShowAggregation:!1,showAggBtn:!0,aggExample:["端口","产品","服务协议","操作系统","国家","省份","城市"],tagDialogType:"add",allTagParams:{targetId:"",tagId:""},isLatest:!0}},computed:my({},Object(w["e"])("site",["role","userInfo","themeClassName","tagsFilterList","isChatgpt","tippingPointInformTag"]),{},Object(w["c"])("site",["loginType"]),{bannerSrc:function(){return"theme-dark-green"===this.themeClassName?n("a9b7"):n("ee78")},queryOfSearchValAndOther:function(){return this.isQuakeTippingPoint&&this.tippingPointInformTag.length?"".concat(this.searchList.searchVal," AND (").concat(this.tippingPointInformTag.map((function(t){return t.query_tp})).join(" OR "),")"):this.searchList.searchVal},informTagQuery:function(){return this.searchList.searchVal?this.tippingPointInformTag.length?" AND (".concat(this.tippingPointInformTag.map((function(t){return t.query_tp})).join(" OR "),")"):"":this.tippingPointInformTag.length?"".concat(this.tippingPointInformTag.map((function(t){return t.query_tp})).join(" OR ")):""},isInformationTagIndeterminate:function(){return this.checkedInformationTag.length>0&&this.checkedInformationTag.length<this.informationTagOptions.length},isQuakeTippingPoint:function(){return this.searchList.selectIndex===yt["d"]},isQuakeCertificate:function(){return this.searchList.selectIndex===yt["b"]},hasGptPermission:function(){return window.Config.permission.includes("front.help.chat_bot")&&!this.isChatgpt},judgeShowAggSlot:function(){return!("quake_image"===this.searchList.selectIndex&&this.role<3)},getLeftHeight:function(){return this.leftLoading?"256px":this.clickShowAggregation?"auto":"100%"},currentScanIpCount:function(){return this.scanForm.ip.replace(/\r\n/g,"\n").split("\n").filter((function(t){return""!==t.trim()})).length},currentSeachIP:function(){return[].concat(Object(b["a"])(this.getSearchIp(this.searchList.searchVal).ip||[]),Object(b["a"])(this.searchList.ip_list))},pickerOptions:function(){var t=this;return{disabledDate:function(t){return t.getTime()>Date.now()},shortcuts:[{text:this.$t("search.last_week"),onClick:function(e){t.onChangeDatePicker("week");var n=A()(A()().format("YYYY-MM-DD")).add((new Date).getTimezoneOffset()/60,"hour").subtract(7,"day").format("YYYY-MM-DD HH:mm:ss"),i=A()(A()().format("YYYY-MM-DD")).add(86399,"second").add((new Date).getTimezoneOffset()/60,"hour").format("YYYY-MM-DD HH:mm:ss");e.$emit("pick",[n,i])}},{text:this.$t("search.last_month"),onClick:function(e){t.onChangeDatePicker("month1");var n=A()(A()().format("YYYY-MM-DD")).add((new Date).getTimezoneOffset()/60,"hour").subtract(1,"month").format("YYYY-MM-DD HH:mm:ss"),i=A()(A()().format("YYYY-MM-DD")).add(86399,"second").add((new Date).getTimezoneOffset()/60,"hour").format("YYYY-MM-DD HH:mm:ss");e.$emit("pick",[n,i])}},{text:this.$t("search.last_3_months"),onClick:function(e){t.onChangeDatePicker("month3");var n=A()(A()().format("YYYY-MM-DD")).add((new Date).getTimezoneOffset()/60,"hour").subtract(3,"month").format("YYYY-MM-DD HH:mm:ss"),i=A()(A()().format("YYYY-MM-DD")).add(86399,"second").add((new Date).getTimezoneOffset()/60,"hour").format("YYYY-MM-DD HH:mm:ss");e.$emit("pick",[n,i])}},{text:this.$t("search.last_year"),onClick:function(e){t.onChangeDatePicker("year");var n=A()(A()().format("YYYY-MM-DD")).add((new Date).getTimezoneOffset()/60,"hour").subtract(1,"year").format("YYYY-MM-DD HH:mm:ss"),i=A()(A()().format("YYYY-MM-DD")).add(86399,"second").add((new Date).getTimezoneOffset()/60,"hour").format("YYYY-MM-DD HH:mm:ss");e.$emit("pick",[n,i])}},{text:this.$t("search.any_time"),onClick:function(e){t.onChangeDatePicker("other"),e.$emit("pick",["",""])}}]}},aggregationsListLabel:function(){return[{key:"parsed.issuer.common_name",label:"证书颁发者",amount:5},{key:"parsed.issuer.country",label:"证书颁发者所属国家",amount:5},{key:"parsed.subject.country",label:"证书持有者所属国家",amount:5},{key:"validation_level",label:"证书验证类型",amount:5},{key:"labels",label:"证书是否可信",amount:5},{key:"validity_period",label:"证书是否过期",amount:5},{key:"vul_name",label:"漏洞名称",amount:5},{key:"vul_type",label:"漏洞类型",amount:5},{key:"vul_level",label:"漏洞等级",amount:5},{key:"port",label:this.$t("search.result_info.port"),amount:5},{key:"service",label:this.$t("search.result_info.service"),amount:5,nomore:!0},{key:"service_and_version",label:this.$t("search.result_info.service"),amount:5,nomore:!0},{key:"isp",label:this.$t("search.result_info.isp"),amount:5},{key:"os",label:this.$t("search.result_info.os"),amount:5,nomore:!0},{key:"country_extra",alias:"country",label:this.$t("search.result_info.country"),amount:5},{key:"province",label:this.$t("search.result_info.province"),amount:5},{key:"city",label:this.$t("search.result_info.city"),amount:5},{key:"asn",label:this.$t("search.result_info.asn"),amount:5},{key:"org",label:this.$t("search.result_info.org"),amount:5},{key:"server",label:this.$t("search.result_info.server"),amount:5},{key:"title",label:this.$t("search.result_info.title"),amount:5},{key:"app_and_version",label:this.$t("search.result_info.app"),amount:5,judgeLatest:!0},{key:"catalog",label:this.$t("search.result_info.catalog"),amount:5},{key:"type",label:this.$t("search.result_info.type"),amount:5},{key:"level",label:this.$t("search.result_info.level"),amount:5},{key:"vendor",label:this.$t("search.result_info.vendor"),amount:5},{key:"analysisBaseInfo",label:"基本信息",amount:0},{key:"analysisIssuerInfo",label:"证书颁发者信息",amount:0},{key:"analysisSubjectInfo",label:"证书持有者信息",amount:0},{key:"analysisVerifyType",label:"证书验证类型",amount:0},{key:"analysisTrustStatus",label:"证书可信状态",amount:0},{key:"analysisValidStatus",label:"证书有效状态",amount:0},{key:"analysisService",label:"服务数据",amount:0},{key:"analysisIsp",label:"自治域与运营商",amount:0},{key:"analysisLocation",label:"IP地理定位",amount:0},{key:"analysisProtocal",label:"协议深度识别",amount:0},{key:"analysisComponent",label:"组件",amount:0}]}}),created:function(){var t=this;this.getIndices(),this.initTimeRange(),window.addEventListener("popstate",(function(){t.initTimeRange()}))},mounted:function(){var t=this;"quake_image"===this.$route.query.selectIndex&&(this.clickShowAggregation=!1,this.showAggBtn=!1),W["a"].$on("knowItAllSearch",(function(e){t.searchList.searchVal=e,t.onSearchByGpt(e)}))},watch:{"noticeDialogConfig.dialogVisible":{handler:function(t){t&&this.searchList&&(this.scanForm.query=this.searchList.searchVal)}}},methods:my({},Object(w["b"])("site",["toggleMultiDialog","updateUserInfo","setTippingPointInformTag"]),{},Object(w["d"])("site",["SET_TAGS_FILTER_LIST"]),{judgeInformationTagCheckAll:function(){this.informationTagCheckAll=this.checkedInformationTag.length===this.informationTagOptions.length},ajaxGetTippingPointInformLabel:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(Tm());case 2:t=i.sent,e=t.code,n=t.data,0===e&&(this.informationTagOptions=n.map((function(t){return my({},t,{query_tp:'tp_tag:"'.concat(t.name,'"')})})),this.judgeUpdateInformLabel());case 6:case"end":return i.stop()}}),null,this)},judgeUpdateInformLabel:function(){var t=this;this.checkedInformationTag=this.informationTagOptions.filter((function(e){return t.tippingPointInformTag.map((function(t){return t.query_tp})).includes(e.query_tp)})),this.judgeInformationTagCheckAll()},onShowAllTippingPoint:function(t){this.tippingPointDrawer.data.vulProve=this._.get(t,"service.tipping_point"),this.tippingPointDrawer.data.vuls=this._.get(t,"vuls")||[],this.tippingPointDrawer.data.query=t.query||"",this.tippingPointDrawer.visible=!0},watchAndRemoveUnCheckedLabel:function(){var t=Array.from(new Set(this.checkedInformationTag.map((function(t){return t.query_tp})))),e=this.informationTagOptions.map((function(t){return t.query_tp})).filter((function(e){return!t.includes(e.trim())})),n=this.searchList.searchVal,i=t.filter((function(t){return!n||!n.includes(t)}));if(n){var r=n.replace(/and/gi,"AND").split("AND").filter((function(t){return!e.includes(t.trim())})).join("AND").trim();this.searchList.searchVal=i.length?"".concat(r," AND ").concat(i.join(" OR ")):r}else this.searchList.searchVal=t.join(" AND ")},handleInformationTagCheckedChange:function(t){this.judgeInformationTagCheckAll(),this.setTippingPointInformTag(t)},handleInformationTagCheckAllChange:function(t){this.checkedInformationTag=t?this.informationTagOptions:[],this.setTippingPointInformTag(this.checkedInformationTag)},handleChangeTippingPointActive:function(t){this.tippingPointActiveTab=t,this.$refs.aggregationsRef.resetCollapse("all"),"RecentHot"===t?this.ajaxGetTippingPointRecentHot():this.postAggregationsList()},judgeActiveTabByRealIndex:function(t){return this.searchList.real_index?this.searchList.real_index===t.real_index:!t.real_index&&t.name===this.searchList.selectIndex},refreshDataOfTag:function(){this.onSearch(),this.$refs.toolBar.ajaxGetTagsAggregation()},closeTag:function(t){this.searchList.tag_id_list=Array.isArray(this.searchList.tag_id_list)&&this.searchList.tag_id_list.filter((function(e){return e!==t})),this.onSearch()},handleChangeScanType:function(){this.scanForm={ip:"",port:this.searchList.searchVal&&this.searchList.searchVal.includes("port")?this.scanForm.port:"",dns_fast:this.scanForm.dns_fast,query:"查询语句"===this.scanType?this.searchList.searchVal:""}},onChangeHelpCollapse:function(t){this.isShowHelpTip=t},initTimeRange:function(){var t=this,e=["",""];!0!==this.$route.query.latest&&"true"!==this.$route.query.latest||(e=["",""]),this.$nextTick((function(){!1!==t.$route.query.latest&&"false"!==t.$route.query.latest||t.$refs.toolBar.resetFullNewDateFalseSwitch()})),this.searchList.timeRange=this.$route.query.timeRange||e,this.judgeDatePickerTypeByTimeRange(this.searchList.timeRange)},judgeDatePickerTypeByTimeRange:function(t){var e=Object(y["a"])(t,2),n=e[0],i=e[1],r=new Date(i),o=A()(A()(r).format("YYYY-MM-DD")).subtract(8,"day").format("YYYY-MM-DD HH:mm:ss"),a=A()(A()(A()(r).format("YYYY-MM-DD")).subtract(1,"month")).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),s=A()(A()(A()(r).format("YYYY-MM-DD")).subtract(3,"month")).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),l=A()(A()(r).format("YYYY-MM-DD")).subtract(1,"year").format("YYYY-MM-DD HH:mm:ss"),c=n.split(" ")[0];c===o.split(" ")[0]?this.datePickerType="week":c===a.split(" ")[0]?this.datePickerType="month1":c===s.split(" ")[0]?this.datePickerType="month3":c===l.split(" ")[0]?this.datePickerType="year":this.datePickerType=""},onLogin:function(){window.location.href="/quake/login"},triggerDate:function(t,e){this.role?this.timeRangeEnable?(this.searchList.timeRange=t,this.datePickerType=e,this.onSearch()):this.toggleMultiDialog("unVip"):this.toggleMultiDialog("unLogin")},onQueryCollect:function(){this.queryCollectConfig.dialogVisible=!0},changeQueryCollectDialogVisible:function(t){this.queryCollectConfig.dialogVisible=t},onChangeDatePicker:function(t){this.isTriggerDatePicker=!0,this.datePickerType=t},onPickerModel:function(){this.role?"quake_image"===this.searchList.selectIndex&&this.role<3?this.toggleMultiDialog("unVip"):this.timeRangeEnable?this.$refs.picker.focus():this.toggleMultiDialog("unVip"):this.toggleMultiDialog("unLogin")},onChangePickerDate:function(){this.isTriggerDatePicker?this.isTriggerDatePicker=!1:this.datePickerType="other",this.onSearch()},onShowAll:function(t,e,n){this.tabConfig.showAllData=t,this.tabConfig.tabIndex=e,this.showAllDialogConfig.btnType="splitWord"===n||"mainBody"===n?n:"",this.showAllDialogConfig.dialogVisible=!0},onSearchSplitWord:function(t,e){this.showAllDialogConfig.dialogVisible=!1,this.onSearchMore(t,e)},getIndices:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,regeneratorRuntime.awrap(Object(I["z"])());case 2:t=i.sent,e=t.code,n=t.data,0===e&&(this.indices=n);case 5:case"end":return i.stop()}}),null,this)},resetSearchQuery:function(t){this.searchList={searchVal:"",selectIndex:this.searchList.selectIndex,rule:this.$route.query.rule||"",ip_list:[],ignore_cache:!1,shortcuts:[],timeRange:["",""]},"quake_service"!==t&&"quake_image"!==t&&t!==yt["d"]||(this.searchList.latest=!0)},onChangeSelectType:function(t,e){return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:if(Y["a"].cancel(""),this.SET_TAGS_FILTER_LIST([]),this.$refs.toolBar.resetFullNewDateSwitch(),this.$refs.toolBar.resetHasRequertSearchHistoryList(!1),this.searchList.timeRange=["",""],this.filterParams.timeRange=["",""],this.isLatest=!0,"quake_service"!==t&&"quake_image"!==t&&t!==yt["d"]||(this.searchList.latest=!0),this.tippingPointActiveTab="RecentHot",this.oldSelectIndex=this.searchList.selectIndex,this.searchList.selectIndex=t,this.tabMenuConfig.activeName="quake_image"===t?"img":"all",this.isChangeTab1=!1,this.isChangeTab2=!1,this.isChangeTab3=!1,this.dataModel="normal",this.datePickerType="",this.paginationConfig.total.value=0,this.toolBarComprehensiveConfig={isShowPermissionTip:!1,includesFiled:"",uniqueIpLoading:!1,uniqueIpNumber:0,queryTime:0},this.relationFaviconConfig={faviconList:[],isRelatedIcon:!1,isShowMoreFavicon:!0,faviconLoading:!1},this.relationFaviconConfig.faviconList=[],!("quake_image"===t&&this.role<3)){n.next=27;break}this.filterParams.selectIndex="quake_image",this.$router.push({name:this.$route.name,query:this.filterParams}),this.aggregationsData={app_and_version:[],asn:[],catalog:[],city:[],country_code:[],country_extra:[],isp:[],level:[],meta_keywords:[],org:[],os:[],page_type:[],port:[],powered_by:[],product:[],province:[],province_of_china:{province:[]},server:[],service:[],service_and_version:[],status_code:[],title:[],type:[],vendor:[]},n.next=31;break;case 27:return"quake_service"===this.oldSelectIndex&&"quake_image"===t||"quake_image"===this.oldSelectIndex&&"quake_service"===t||this.resetSearchQuery(t,e),n.next=30,regeneratorRuntime.awrap(this.onSearch());case 30:this.$refs.toolBar.getShortcuts();case 31:this.$refs.aggregationsRef.resetCollapse("all");case 32:case"end":return n.stop()}}),null,this)},onChangeTab:function(t,e){if(this.tabMenuConfig.activeName=t,this.clickShowAggregation="analysis"===t,this.aggregationsData="analysis"===t?this._.cloneDeep(this.analysisConfig.analysisAggregationsData):this._.cloneDeep(this.aggregationsCommonData),"statistics"===t&&(this.clickShowAggregation=!1,this.isChangeTab1=!0,this.aggregationsStatisticsData={},this.aggregationsWorldData={},this.role<3&&"quake_image"===this.searchList.selectIndex||this.postAggregationsListWord()),"analysis"===t&&(e||!this.isChangeTab2)){this.analysisConfig.analysisParams.analysisNumber=20,this.analysisConfig.analysispaginationConfig={currentPage:1,pageSize:20},this.isChangeTab2=!0;var n={};this.postAggregationAnalysis(n,"unique"),e?this.onSearchMore("analysis","".concat(e.label,"(").concat(e.key,")")):(this.isQuakeCertificate&&(this.analysisConfig.analysisParams.keys=["issuer_common_name","unique_issuer_common_name"],this.analysisConfig.analysisParams.title="证书颁发者"),this.postAggregationAnalysis({aggregation_list:this.analysisConfig.analysisParams.keys,size:this.analysisConfig.analysisParams.analysisNumber}))}if("traceroute"===t&&!this.isChangeTab3){if(this.tracerouteConfig.tracerouteList=[],this.tracerouteConfig.tracerouteDetail={},this.searchList.searchVal){var i=Object(Z["b"])(this.searchList.searchVal),r=i.isIp,o=i.ip;this.searchList.searchVal&&r&&(this.postTracerouteList(o),this.getTracerouteDetail(o))}this.isChangeTab3=!0}this.$refs.aggregationsRef.resetCollapse(t)},postTracerouteList:function(t){var e,n,i,r;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:if(this.tracerouteConfig.tracerouteLoading=!0,!this.tracerouteConfig.monitor||Object.keys(this.tracerouteConfig.monitor).length){o.next=4;break}return o.next=4,regeneratorRuntime.awrap(this.getTracerouteMonitor());case 4:return e={ip:t,monitors:Object.keys(this.tracerouteConfig.monitor)},o.next=7,regeneratorRuntime.awrap(Object(I["ab"])(e));case 7:n=o.sent,i=n.code,r=n.data,0===i&&(this.tracerouteConfig.tracerouteList=r),this.tracerouteConfig.tracerouteLoading=!1;case 11:case"end":return o.stop()}}),null,this)},getTracerouteMonitor:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(Object(I["Q"])());case 2:t=r.sent,e=t.code,n=t.data,0===e&&(this.tracerouteConfig.monitorList=n,i={},n.forEach((function(t){i[t.name]=t.friendly_name})),this.tracerouteConfig.monitor=i);case 5:case"end":return r.stop()}}),null,this)},getTracerouteDetail:function(t){var e,n,i,r;return regeneratorRuntime.async((function(o){while(1)switch(o.prev=o.next){case 0:return this.tracerouteConfig.tracerouteDetailLoading=!0,e={ip:t},o.next=4,regeneratorRuntime.awrap(Object(I["B"])(e));case 4:n=o.sent,i=n.code,r=n.data,0===i&&(this.tracerouteConfig.tracerouteDetail=r),this.tracerouteConfig.tracerouteDetailLoading=!1;case 8:case"end":return o.stop()}}),null,this)},onSearchByGpt:function(t){t&&(this.searchList.searchVal=t,this.onSearch())},getResQuery:function(){var t=this.filterParams;return this.isQuakeTippingPoint&&(t.latest=!0),t},onSearch:function(){this.clickShowAggregation=!1,this.showAggBtn="quake_image"!==this.$route.query.selectIndex,this.isInitPage=!0,this.toolBarComprehensiveConfig.includesFiled=this.fieldsSearchPermission(this.role,this.searchList.selectIndex,this.searchList.searchVal),this.toolBarComprehensiveConfig.includesFiled?this.toolBarComprehensiveConfig.isShowPermissionTip=!0:(this.toolBarComprehensiveConfig.isShowPermissionTip=!1,this.paginationConfig.page.value=1,this.searchResultList=[],this.aggregationsData={},this.aggregationsWorldData={},this.aggregationsStatisticsData={},this.relationFaviconConfig.faviconList=[],this.paginationConfig.total.value=0,this.toolBarComprehensiveConfig.queryTime=0,this.toolBarComprehensiveConfig.uniqueIpNumber=0,this.filterParams.t=(new Date).getTime(),this.$refs.aggregationsRef.resetCollapse("all"),this.$router.push({name:this.$route.name,query:this.getResQuery()}))},onTriggerSyntax:function(t){var e=this.searchList.searchVal;this.searchList.searchVal=e?"".concat(e," AND ").concat(t):t},onSearchCollect:function(){var t=this;this.searchList.ip_list.length?this.$confirm("当前检索已有IP批量查询条件, 进行本操作将会清除已有IP批量条件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.searchList.searchVal="",t.searchList.ip_list=[],t.$nextTick((function(){!1!==t.$route.query.latest&&"false"!==t.$route.query.latest||(t.$refs.toolBar.resetFullNewDateFalseSwitch(),t.judgeDatePickerTypeByTimeRange(t.searchList.timeRange))})),t.onSearch()})).catch((function(){t.searchList.rule=""})):(this.$nextTick((function(){!1!==t.$route.query.latest&&"false"!==t.$route.query.latest||(t.$refs.toolBar.resetFullNewDateFalseSwitch(),t.judgeDatePickerTypeByTimeRange(t.searchList.timeRange))})),this.onSearch(),this.searchList.searchVal="")},triggerIpListCollect:function(t){var e=this;this.searchList.ip_list.length?this.$confirm("当前检索已有IP批量查询条件, 进行本操作将会清除已有IP批量条件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.searchList.searchVal="",e.searchList.ip_list=[],e.searchList.rule=t,e.searchList.latest=!1,e.$refs.toolBar.resetFullNewDateFalseSwitch(),e.searchList.timeRange=[A()(A()().format("YYYY-MM-DD")).subtract(1,"year").format("YYYY-MM-DD HH:mm:ss"),A()(A()().format("YYYY-MM-DD")).format("YYYY-MM-DD HH:mm:ss")],e.judgeDatePickerTypeByTimeRange(e.searchList.timeRange),e.$refs.toolBar.getIpListRecord(),e.onSearch()})).catch((function(){e.searchList.rule=""})):(this.searchList.searchVal="",this.searchList.rule=t,this.searchList.latest=!1,this.$refs.toolBar.resetFullNewDateFalseSwitch(),this.searchList.timeRange=[A()(A()().format("YYYY-MM-DD")).subtract(1,"year").format("YYYY-MM-DD HH:mm:ss"),A()(A()().format("YYYY-MM-DD")).format("YYYY-MM-DD HH:mm:ss")],this.judgeDatePickerTypeByTimeRange(this.searchList.timeRange),this.$refs.toolBar.getIpListRecord(),this.onSearch())},triggerIpListSearchNow:function(t){var e=this;this.searchList.rule?this.$confirm("当前检索已有IP批量查询条件, 进行本操作将会清除已有IP批量条件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.searchList.searchVal="",e.searchList.rule="",e.searchList.ip_list=t,e.onSearch()})).catch((function(){e.searchList.ip_list=[]})):(this.searchList.searchVal="",this.searchList.ip_list=t,this.onSearch())},onClearIpListSearch:function(){this.searchList.ip_list=[],this.onSearch()},onResetTabChangeStatus:function(){this.isChangeTab1=!1,this.isChangeTab2=!1,this.isChangeTab3=!1},postFaviconList:function(){var t,e,n,i,r,o=arguments;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:30,50!==t&&(this.relationFaviconConfig.isShowMoreFavicon=!0),this.relationFaviconConfig.faviconLoading=!0,e={query:this.searchList.searchVal,size:window&&window.Config&&window.Config.permission&&window.Config.permission.includes("front.query.icon.more")?t:10,ignore_cache:this.searchList.ignore_cache,shortcuts:this.searchList.shortcuts},e=this.processSpecialParams(e),this.isQuakeTippingPoint&&(e.query=this.searchList.searchVal?"".concat(this.searchList.searchVal).concat(this.informTagQuery):"".concat(this.informTagQuery)),a.next=8,regeneratorRuntime.awrap(Object(I["U"])(my({},e,{latest:this.$route.query.latest})));case 8:n=a.sent,i=n.code,r=n.data,0===i&&(this.relationFaviconConfig.faviconList=r),this.relationFaviconConfig.isRelatedIcon=!1,this.relationFaviconConfig.faviconLoading=!1;case 13:case"end":return a.stop()}}),null,this)},onSearchMoreFavicon:function(){var t=50;this.relationFaviconConfig.isShowMoreFavicon=!1,this.postFaviconList(t)},onSearchFavicon:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e){var n=this.searchList.searchVal;n?((n.includes("OR")||n.includes("||")||n.includes("app")||n.includes("NOT"))&&(n="(".concat(n,")")),n.includes("favicon")?this.searchList.searchVal="".concat(n," OR ").concat(t):this.searchList.searchVal="".concat(n," AND ").concat(t)):this.searchList.searchVal=t}else this.searchList.searchVal=t},validateGrammar:function(){var t=this.searchList.searchVal,e=!1,n=Object(S["b"])(t);n&&(this.searchList.searchVal=n,e=!0,this.$message.warning("语法拼写错误，已为您自动更正"));var i=Object(S["a"])(this.searchList.searchVal);i&&(this.searchList.searchVal=i,e||this.$message.warning("检测到有中文状态的输入，已为您自动更正"));var r=/^(?:(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}(?:[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2]\d|3[0-2]))?$/;r.test(t.trim())&&Object(Z["a"])(t.trim())&&(this.searchList.searchVal='ip: "'.concat(t.trim(),'"'));var o=M.find((function(e){return e===t.trim()}));o&&(this.searchList.searchVal='service: "'.concat(t.trim(),'"'))},ajaxGetTippingPointRecentHot:function(){var t,e,n;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:return this.leftLoading=!0,this.getAggregationUniqueIp(),i.next=4,regeneratorRuntime.awrap(Pm());case 4:t=i.sent,e=t.code,n=t.data,0===e&&(this.tippingPointRecentHot=n),this.leftLoading=!1;case 9:case"end":return i.stop()}}),null,this)},getTableData:function(){var t,e,n,i,r,o,a,s,l,c,u,h,d,p=this;return regeneratorRuntime.async((function(f){while(1)switch(f.prev=f.next){case 0:if(this.isQuakeTippingPoint&&this.ajaxGetTippingPointInformLabel(),this.tabMenuConfig.activeName="quake_image"===this.searchList.selectIndex&&this.role?"img":"all",!(this.role<3&&"quake_image"===this.searchList.selectIndex)){f.next=5;break}return this.aggregationsData={app:[],asn:[],catalog:[],city:[],country_code:[],country_extra:[],isp:[],level:[],meta_keywords:[],org:[],os:[],page_type:[],port:[],powered_by:[],product:[],province:[],province_of_china:{province:[]},server:[],service:[],service_and_version:[],status_code:[],title:[],type:[],vendor:[]},f.abrupt("return",!1);case 5:return this.searchList.searchVal&&(t=this.searchList.searchVal,e=/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/g,n=e.test(t.trim()),n&&!Object(Z["a"])(t.trim())&&(this.searchList.searchVal='domain: "'.concat(t.trim(),'"')),this.validateGrammar()),this.isRequestOtherData&&(this.isQuakeTippingPoint&&"RecentHot"===this.tippingPointActiveTab?this.ajaxGetTippingPointRecentHot():this.postAggregationsList(),this.clickShowAggregation=!1,this.showAggBtn="quake_image"!==this.$route.query.selectIndex,"quake_service"===this.searchList.selectIndex&&this.postFaviconList(),this.paginationConfig.page.value<2&&"quake_image"===this.searchList.selectIndex&&this.postFaviconList()),this.isInitPage&&(this.isInitPage=!1,this.isChangeTab1=!1,this.isChangeTab2=!1,this.isChangeTab3=!1),this.loading=!0,i={},i.latest=this.searchList.latest,i.ignore_cache=this.searchList.ignore_cache,i.shortcuts=this.searchList.shortcuts,this.searchList.searchVal&&(i.query=this.searchList.searchVal),this.tagsFilterList&&this.tagsFilterList.length&&(i.tag_id_list=this.tagsFilterList.map((function(t){return t.id}))),i.start=(this.paginationConfig.page.value-1)*("quake_image"===this.searchList.selectIndex?9:this.paginationConfig.size.value),9===this.paginationConfig.size.value&&(this.paginationConfig.size.value=10),i.size="quake_image"===this.searchList.selectIndex?9:this.paginationConfig.size.value,i=this.processSpecialParams(i),r=(new Date).getTime(),this.isQuakeTippingPoint&&(i.query=this.searchList.searchVal?"".concat(this.searchList.searchVal).concat(this.informTagQuery):"".concat(this.informTagQuery)),f.next=23,regeneratorRuntime.awrap(Object(I["X"])(my({},i,{latest:this.$route.query.latest}),this.searchList.selectIndex));case 23:return o=f.sent,a=(new Date).getTime(),this.toolBarComprehensiveConfig.queryTime=(a-r)/1e3,s=o.code,l=o.data,c=o.meta,this.loading=!1,u=!1,0===s&&(u=!0,h=null,clearTimeout(h),h=setTimeout((function(){p.$refs.toolBar.getSearchHistory(!!p.searchList.searchVal)}),800),"quake_image"===this.searchList.selectIndex?this.searchResultList=this.searchResultList.concat(l):this.searchResultList=l,this.searchList.searchVal&&0===l.length&&this.searchList.selectIndex,"quake_service"===this.searchList.selectIndex&&this.searchResultList.forEach((function(t){var e=148;if(t.service&&t.service.http&&t.service.http.title&&(e+=28),t.components&&t.components.length&&(e+=34),p.$set(t,"height",e),t.images&&t.images.length?p.$set(t,"currentImg",my({},t.images[0],{isShow:""!==t.images[0].data||""!==t.images[0].s3_url})):p.$set(t,"currentImg",{}),t.service){if(t.service.cert){var n=t.service.cert.split("Subject:");if(n.length>1){var i=n[1].split("Subject Public Key Info:")[0].trim(),r=i.split(","),o=["O","OU","CN"],a=0;r.forEach((function(e){var n=e.trim().split("=");o.includes(n[0])&&(a+=1,p.$set(t,n[0],n[1]))})),a&&p.$set(t,"hasSubject",!0)}}p.$set(t.service,"protocalList",[]),Object.keys(t.service).forEach((function(e){if("response"===e){var n=[],i=["Http","HTML","Javascript"],r=/(Http Redirect To|HTML Redirect To|Javascript Redirect To)(\s\S*).:/g,o=t.service[e].match(r);if(o&&o.length){p.$set(t,"redirectTimes",o.length);var a=[],s=t.service[e];p._.cloneDeep(o).reverse().forEach((function(t){var e=s.split(t),n=Object(y["a"])(e,2),i=n[0],r=n[1];s=i,a.unshift(r)})),o.forEach((function(t,e){var r=i.find((function(e){return t.includes(e)})),o=t.slice(t.indexOf("To ")+3,t.indexOf(" :")),s={name:r,url:o,record:1,content:a[e],isCollapse:!!e};n.push(s)})),p.$set(t,"redirectList",n)}else p.$set(t,"redirectTimes",0),p.$set(t,"redirectList",[]);t.service.responseLength=t.service[e].length,t.service[e]=t.service[e].substr(0,5e4)}if(!["name","product","version","banner","response","cert","protocalList"].includes(e)&&(t.service.protocalList.push(e),t.service[e].response)){var l=t.service[e].response.replace(/\n/g,"");t.service[e].response=l}}))}})),"quake_image"===this.searchList.selectIndex?(this.paginationConfig.page.value+=1,this.showAggBtn="quake_image"!==this.$route.query.selectIndex):this.paginationConfig.page.value=c.pagination.page_index,this.paginationConfig.size.value=c.pagination.page_size,this.paginationConfig.count.value=c.pagination.count,this.paginationConfig.total.value=c.pagination.total),"q3015"!==s&&"u3017"!==s||!this.role||(d=localStorage.getItem("quake_search_error_time"),d?this.isShowHelpTip||(Number(d)+1>2?(this.isShowHelpTip=!0,localStorage.setItem("quake_search_error_time",0)):localStorage.setItem("quake_search_error_time",Number(d)+1)):localStorage.setItem("quake_search_error_time",1)),"q3019"===s&&(this.searchResultList=[],this.aggregationsData={},this.relationFaviconConfig.faviconList=[],this.toolBarComprehensiveConfig.uniqueIpNumber=0,this.paginationConfig.total.value=0),"u3024"===s&&(this.toolBarComprehensiveConfig.isShowPermissionTip=!0,this.toolBarComprehensiveConfig.errMsg=o.message),this.isRequestOtherData=!0,"quake_host"===this.searchList.selectIndex&&!this.searchResultList.length&&u&&(this.$message("您搜索的内容暂无主机数据，已为您自动跳转至服务数据"),this.searchList.latest=!0,this.filterParams.selectIndex="quake_service",this.$router.push({name:this.$route.name,query:my({},this.filterParams,{latest:!0})})),f.abrupt("return",!0);case 36:case"end":return f.stop()}}),null,this)},handleSendAjaxAgg:function(){this.postAggregationsList()},triggerPostAggregationsList:function(){var t=this,e=this.tagsFilterList&&this.tagsFilterList.length?{tag_id_list:this.tagsFilterList.map((function(t){return t.id}))}:{};this.clickShowAggregation=!0,this.showAggBtn="quake_image"!==this.$route.query.selectIndex;var n=this.getAggregationListParams(),i=n.aggregation_list,r=my({query:this.searchList.searchVal,ignore_cache:this.searchList.ignore_cache,shortcuts:this.searchList.shortcuts,start:0,size:5,aggregation_list:i},e,{latest:this.searchList.latest});return r=this.processSpecialParams(r),this.leftLoading=!0,this.toolBarComprehensiveConfig.uniqueIpLoading=!0,Object(I["T"])(r,this.searchList.selectIndex).then((function(e){var n=e.code,r=e.data;if(0===n){var o={};i.forEach((function(t){o[t]=[]})),o=my({},o,{},r),t.aggregationsCommonData=t._.cloneDeep(o),t.aggregationsData=o,t.toolBarComprehensiveConfig.uniqueIpLoading=!1}t.leftLoading=!1})),this.aggregationsListLabel.forEach((function(t){5!==t.amount&&(t.amount=5)})),!0},getAggregationUniqueIp:function(){var t,e,n=this;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:this.toolBarComprehensiveConfig.uniqueIpLoading=!0,t=this.tagsFilterList&&this.tagsFilterList.length?{tag_id_list:this.tagsFilterList.map((function(t){return t.id}))}:{},yt["a"].includes(this.searchList.selectIndex)||(e=my({query:this.searchList.searchVal,ignore_cache:this.searchList.ignore_cache,shortcuts:this.searchList.shortcuts,start:0,size:1,aggregation_list:["unique_ip"]},t,{latest:this.searchList.latest}),e=this.processSpecialParams(e),Object(I["T"])(e,this.searchList.selectIndex).then((function(t){0===t.code&&(n.toolBarComprehensiveConfig.uniqueIpNumber=n._.get(t,"data.unique_ip.value")),n.toolBarComprehensiveConfig.uniqueIpLoading=!1})));case 3:case"end":return i.stop()}}),null,this)},postAggregationsList:function(){var t,e,n,i,r,o=this;return regeneratorRuntime.async((function(a){while(1)switch(a.prev=a.next){case 0:return t=this.tagsFilterList&&this.tagsFilterList.length?{tag_id_list:this.tagsFilterList.map((function(t){return t.id}))}:{},this.clickShowAggregation=!0,this.showAggBtn="quake_image"!==this.$route.query.selectIndex,e=this.getAggregationListParams(),n=e.aggregation_list,i=e.params_aggregation_list,r=my({query:this.searchList.searchVal,ignore_cache:this.searchList.ignore_cache,shortcuts:this.searchList.shortcuts,start:0,size:5,aggregation_list:i},t,{latest:this.searchList.latest}),r=this.processSpecialParams(r),this.leftLoading=!0,Object(I["T"])(r,this.searchList.selectIndex).then((function(t){var e=t.code,i=t.data;if(0===e){var r={};n.forEach((function(t){r[t]=[]})),r=my({},r,{},i),o.aggregationsCommonData=o._.cloneDeep(r),o.aggregationsData=r}o.leftLoading=!1})),this.getAggregationUniqueIp(),this.aggregationsListLabel.forEach((function(t){5!==t.amount&&(t.amount=5)})),a.abrupt("return",!0);case 11:case"end":return a.stop()}}),null,this)},onSelectAmount:function(t,e,n,i){var r=this;if("more"===e&&this.onChangeTab("analysis",n),"number"===typeof e){var o=this.aggregationsListLabel[t],a=o.key,s=o.amount;if(s!==e||i){this.aggregationsSingleLoading=!0,this.aggregationsSingleKey=a,this.aggregationsListLabel[t].amount=e;var l={query:this.searchList.searchVal,ignore_cache:this.searchList.ignore_cache,shortcuts:this.searchList.shortcuts,start:0,size:e,aggregation_list:["country_extra"===a?"country_code":a],latest:this.searchList.latest};l=this.processSpecialParams(l),Object(I["T"])(l,this.searchList.selectIndex).then((function(t){r.aggregationsSingleLoading=!1;var e=t.code,n=t.data;0===e&&(r.aggregationsData[a]=n[a])}))}}},postAggregationAnalysis:function(t,e){var n,i,r,o,a,s,l,c,u,h,d,p,f;return regeneratorRuntime.async((function(g){while(1)switch(g.prev=g.next){case 0:if(this.clickShowAggregation=!0,this.showAggBtn="quake_image"!==this.$route.query.selectIndex,"unique"!==e){g.next=14;break}if(this.isHasRequestAnalysisKeys){g.next=12;break}return this.leftLoading=!0,g.next=7,regeneratorRuntime.awrap(Object(I["g"])({},this.searchList.selectIndex));case 7:n=g.sent,i=n.code,r=n.data,0===i&&(o=[],o=this.isQuakeCertificate?[{key:"analysisIssuerInfo",children:[{key:"unique_issuer_common_name",label:"证书颁发者"},{key:"unique_issuer_country",label:"证书颁发者所属国家"}]},{key:"analysisSubjectInfo",children:[{key:"unique_subject_country",label:"证书持有者所属国家"}]},{key:"analysisVerifyType",children:[{key:"unique_validation_level",label:"证书验证类型"}]}]:[{key:"analysisBaseInfo",children:[{key:"unique_port",label:"端口(port)"}]},{key:"analysisIsp",children:[{key:"unique_asn",label:"自治域编号(asn)"},{key:"unique_org",label:"自治域名称(org)"},{key:"unique_isp",label:"运营商(isp)"}]},{key:"analysisLocation",children:[{key:"unique_country",label:"国家(country)"},{key:"unique_province",label:"省份(province)"},{key:"unique_city",label:"城市(city)"}]},{key:"analysisProtocal",children:[{key:"unique_server",label:"网站服务器(server)"},{key:"unique_title",label:"网站标题(title)"}]},{key:"analysisComponent",children:[{key:"unique_app",label:"应用(app)"},{key:"unique_catalog",label:"类别(catalog)"},{key:"unique_type",label:"类型(type)"},{key:"unique_level",label:"层级(level)"},{key:"unique_vendor",label:"厂商(vendor)"}]}],a={},o.forEach((function(t){a[t.key]=[],t.children.forEach((function(e){var n={key:e.label,doc_count:r[e.key].value,paramsKey:e.key};a[t.key].push(n)}))})),this.analysisConfig.analysisAggregationsData=a),this.leftLoading=!1,this.isHasRequestAnalysisKeys=!0;case 12:g.next=34;break;case 14:if(!(this.role<3&&"quake_image"===this.searchList.selectIndex||this.role<2&&"quake_service"===this.searchList.selectIndex)){g.next=16;break}return g.abrupt("return");case 16:return this.analysisConfig.analysisKeyword="",this.analysisConfig.analysisUniqueTotal=0,this.analysisConfig.analysisList=[],this.analysisConfig.analysisCloneList=[],this.analysisConfig.analysisData={columns:["key","value"],rows:[]},this.analysisConfig.analysispaginationConfig={currentPage:1,pageSize:20},this.analysisConfig.analysisLoading=!0,t.aggregation_list.includes("app_and_version")&&(t.aggregation_list=["app","unique_app"]),s={query:this.searchList.searchVal,ignore_cache:this.searchList.ignore_cache,shortcuts:this.searchList.shortcuts,start:0,aggregation_list:t.aggregation_list},t.size&&(s.size=t.size),this.tagsFilterList&&this.tagsFilterList.length&&(s.tag_id_list=this.tagsFilterList.map((function(t){return t.id}))),s=this.processSpecialParams(s),g.next=30,regeneratorRuntime.awrap(Object(I["S"])(my({},s,{latest:this.searchList.latest}),this.searchList.selectIndex));case 30:l=g.sent,c=l.code,u=l.data,0===c&&(h=this.analysisConfig.analysispaginationConfig,d=h.currentPage,p=h.pageSize,f=Object.keys(u)[0].includes("unique")?Object.keys(u)[1]:Object.keys(u)[0],this.analysisConfig.analysisCloneList=this._.cloneDeep(u[f]),this.analysisConfig.analysisUniqueTotal=u["unique_".concat(f)].value,this.analysisConfig.analysisList=u[f],this.analysisConfig.analysisData={columns:["key","value"],rows:this.analysisConfig.analysisList.slice((d-1)*p,d*p).map((function(t){return{key:t.key,value:t.doc_count}}))}),this.analysisConfig.analysisLoading=!1;case 34:case"end":return g.stop()}}),null,this)},postStatisticsAggregationsList:function(t){var e,n=this;return regeneratorRuntime.async((function(i){while(1)switch(i.prev=i.next){case 0:this.statisticsIndexLoading=!0,e={query:this.searchList.searchVal,ignore_cache:this.searchList.ignore_cache,shortcuts:this.searchList.shortcuts,start:0,size:8,aggregation_list:t&&t.aggregation_list?t.aggregation_list:["country_code","province_of_china"],latest:this.searchList.latest},this.tagsFilterList&&this.tagsFilterList.length&&(e.tag_id_list=this.tagsFilterList.map((function(t){return t.id}))),e=this.processSpecialParams(e),Object(I["T"])(e,this.searchList.selectIndex).then((function(t){var e=t.code,i=t.data;0===e&&(n.aggregationsStatisticsData=my({},n.aggregationsStatisticsData,{},i)),n.statisticsIndexLoading=!1}));case 5:case"end":return i.stop()}}),null,this)},postAggregationsListWord:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.statisticsLoading=!0,t={query:this.searchList.searchVal,ignore_cache:this.searchList.ignore_cache,shortcuts:this.searchList.shortcuts,start:0,size:250,aggregation_list:["country","province_of_china"],latest:this.searchList.latest},this.tagsFilterList&&this.tagsFilterList.length&&(t.tag_id_list=this.tagsFilterList.map((function(t){return t.id}))),t=this.processSpecialParams(t),r.next=6,regeneratorRuntime.awrap(Object(I["T"])(t,this.searchList.selectIndex));case 6:e=r.sent,n=e.code,i=e.data,0===n&&(this.aggregationsStatisticsData=i),this.statisticsLoading=!1;case 10:case"end":return r.stop()}}),null,this)},setTagList:function(t){var e=this.tagsFilterList&&this.tagsFilterList.length?this.tagsFilterList:[],n=e.map((function(t){return t.id}));return!n.includes(t.id)&&(this.SET_TAGS_FILTER_LIST([].concat(Object(b["a"])(e),[t])),!0)},onSearchMoreAnti:function(t,e){var n=this.searchList.searchVal,i="".concat(t,": ").concat(e);this.searchList.searchVal=n?"".concat(n," AND NOT (").concat(i,")"):"NOT ".concat(i),this.onSearch()},onSearchMore:function(t,e,n,i,r,o){if(this.clickShowAggregation=!1,this.showAggBtn="quake_image"!==this.$route.query.selectIndex,t.includes("analysis")){if(this.role>1){if(this.analysisConfig.analysisKeyword="",this.analysisConfig.analysispaginationConfig={currentPage:1,pageSize:20},this.analysisConfig.analysisParams.analysisNumber=20,this.analysisConfig.analysisParams.title=e,this.isQuakeCertificate)this.analysisConfig.analysisParams.keys=[n,n.replace("unique_","")];else{var a=e.match(/\((\S*)\)/)[1];a="country_extra"===a?"country":a,this.analysisConfig.analysisParams.keys=[a,"unique_".concat(a)]}this.postAggregationAnalysis({aggregation_list:this.analysisConfig.analysisParams.keys,size:20})}return!1}if(String(e).includes("暂无权限"))return this.toggleMultiDialog("unAuth"),!1;if("ipC"===n){void 0!==r&&(this.searchList.latest=r),this.searchList.searchVal="".concat(t,': "').concat(e,'"');var s=this.$router.resolve({name:"searchResult",query:{searchVal:this.searchList.searchVal,selectIndex:i?"quake_image":"quake_service",latest:r}}),l=s.href;return window.open(l,"_blank"),!1}var c=Object.keys(yt["e"]);if(this.searchList.searchVal){var u=this.searchList.searchVal;if((u.includes("OR")||u.includes("||")||u.includes("app")||u.includes("NOT"))&&(u="(".concat(u,")")),"is_ipv6"===t)e.indexOf(":")>0?this.searchList.searchVal="".concat(u," AND ").concat(t,": true"):this.searchList.searchVal="".concat(u," AND ").concat(t,": false");else if(c.includes(t))this.searchList.searchVal="".concat(u," AND (").concat(yt["e"][t].grammarKey1,': "').concat(n,'" AND ').concat(yt["e"][t].grammarKey2,': "').concat(e,'")');else if("app_version3"===t)this.searchList.searchVal="".concat(u,' AND app: "').concat(n,'" AND ').concat(t,': "').concat(e,'"');else if("version"===t)this.searchList.searchVal="".concat(u,' AND service: "').concat(n,'" AND ').concat(t,': "').concat(e,'"');else if("tag_new"===t){if(!this.setTagList(e))return!1}else this.searchList.searchVal=o?"".concat(u," AND NOT ").concat(t,': "').concat(e,'"'):"".concat(u," AND ").concat(t,': "').concat(e,'"')}else if(c.includes(t))this.searchList.searchVal="(".concat(yt["e"][t].grammarKey1,': "').concat(n,'" AND ').concat(yt["e"][t].grammarKey2,': "').concat(e,'")');else if("is_ipv6"===t)e.indexOf(":")>=0?this.searchList.searchVal="".concat(t,": true"):this.searchList.searchVal="".concat(t,": false");else if("app_version3"===t)this.searchList.searchVal='app: "'.concat(n,'" AND ').concat(t,': "').concat(e,'"');else if("tag_new"===t){if(!this.setTagList(e))return!1}else this.searchList.searchVal="".concat(t,': "').concat(e,'"');return this.onSearch(),!0},onSearchByQueryString:function(t){var e=this.searchList.searchVal;this.searchList.searchVal=e?"".concat(e," AND ").concat(t):t,this.onSearch()},onSearchGrammar:function(t){this.showAllDialogConfig.dialogVisible=!1,this.searchList.searchVal=t,this.onSearch()},onExport:function(t){this.exportDialogConfig.exportDialogType="",this.role||this.toggleMultiDialog("unLogin"),this.role<3&&"analysis"===this.tabMenuConfig.activeName?this.toggleMultiDialog("unVip"):(this.exportDialogConfig.exportDialogType="analysis"===t?t:"",this.exportDialogConfig.dialogVisible=!0)},changeExportDialogVisible:function(t){this.exportDialogConfig.dialogVisible=t},processSpecialParams:function(t){var e=t;if(this.searchList.timeRange&&this.searchList.timeRange[0]){var n=Object(y["a"])(this.searchList.timeRange,2),i=n[0],r=n[1];e.start_time=A()(i).add((new Date).getTimezoneOffset()/60,"hour").format("YYYY-MM-DD HH:mm:ss"),e.end_time=A()(r).add((new Date).getTimezoneOffset()/60,"hour").add(86399,"second").format("YYYY-MM-DD HH:mm:ss")}return this.searchList.rule&&(e.rule=this.searchList.rule),"string"===typeof this.searchList.ip_list&&this.searchList.ip_list.length&&(e.ip_list=[this.searchList.ip_list]),Array.isArray(this.searchList.ip_list)&&this.searchList.ip_list.length&&(e.ip_list=this.searchList.ip_list),"quake_service"!==this.searchList.selectIndex&&"quake_image"!==this.searchList.selectIndex||"all"!==this.tabMenuConfig.activeName||"list"!==this.dataModel||("undefined"===typeof e.query&&(e.query=""),e.query=[e.query,this.extraPrams].filter((function(t){return""!==t})).join(" AND ")),this.isQuakeTippingPoint&&(e.query=this.searchList.searchVal?"".concat(this.searchList.searchVal).concat(this.informTagQuery):"".concat(this.informTagQuery)),e},getAggregationListParams:function(){var t=[],e=[],n=this.searchList.selectIndex;return this.role?("quake_service"!==this.searchList.selectIndex&&"quake_image"!==this.searchList.selectIndex||(t=["asn","city","country_code","org","isp","os","port","product","province","province_of_china","service_and_version","server","title","app_and_version","catalog","type","level","vendor"],e=["port","service_and_version"]),this.isQuakeTippingPoint&&(t=["asn","city","country_code","org","isp","os","port","product","province","province_of_china","service","server","title","app_and_version","catalog","type","level","vendor"],e=["port","service"]),"quake_host"===this.searchList.selectIndex&&(t=["asn","city","country_code","org","isp","os","port","product","province","province_of_china","service"],e=["port","service"]),"quake_vulnerability"===this.searchList.selectIndex&&(t=["asn","city","country_code","org","isp","port","province","province_of_china","vul_name","vul_type","vul_level"]),n===yt["b"]&&(t=["parsed.issuer.common_name","parsed.issuer.country","parsed.subject.country","validation_level","labels","validity_period"],e=["parsed.issuer.common_name","parsed.issuer.country"])):("quake_service"!==this.searchList.selectIndex&&"quake_image"!==this.searchList.selectIndex||(t=["asn","city","country_code","org","isp","os","port","product","province","service","server","title"],e=["port","service"]),"quake_host"===this.searchList.selectIndex&&(t=["asn","city","country_code","org","isp","os","port","product","province","service"]),"quake_vulnerability"===this.searchList.selectIndex&&(t=["asn","city","country_code","org","isp","port","province"]),n===yt["b"]&&(t=["parsed.issuer.common_name","parsed.issuer.country","parsed.subject.country","validation_level","labels","validity_period"])),n!==yt["b"]&&(t=[].concat(Object(b["a"])(t),["status_code","powered_by","meta_keywords","page_type"])),{aggregation_list:t,params_aggregation_list:e}},requestPostIpScan:function(){var t,e,n,i;return regeneratorRuntime.async((function(r){while(1)switch(r.prev=r.next){case 0:return this.scanLoading=!0,t={ip:this.scanForm.ip&&this.scanForm.ip.replace(/\r\n/g,"\n").split("\n").filter((function(t){return""!==t.trim()})),port:this.scanForm.port&&this.scanForm.port.join(","),dns_fast:this.scanForm.dns_fast,query:this.scanForm.query&&this.scanForm.query.trim()},r.next=4,regeneratorRuntime.awrap(Object(I["W"])(t));case 4:e=r.sent,n=e.code,i=e.message,0===n&&(this.isScaning=!0,this.onCancelNoticeDialog(),this.$message({type:"success",message:i})),this.scanLoading=!1;case 8:case"end":return r.stop()}}),null,this)},onCancelNoticeDialog:function(){this.noticeDialogConfig.dialogVisible=!1},onSureNoticeDialog:function(){var t=this;this.$refs.scanForm.validate((function(e){return regeneratorRuntime.async((function(n){while(1)switch(n.prev=n.next){case 0:if(!e){n.next=3;break}return n.next=3,regeneratorRuntime.awrap(t.requestPostIpScan());case 3:case"end":return n.stop()}}))}))},onRescanIp:function(){var t=this.getSearchIp(this.searchList.searchVal);this.scanForm.ip=Object(b["a"])(new Set([].concat(Object(b["a"])(t.ip),Object(b["a"])(this.searchList.ip_list)))).join("\r\n"),this.scanForm.port=t.port,this.noticeDialogConfig.dialogVisible=!0},getSearchIp:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.trim(),n={ip:'ip:\\s?"(.*?)"',port:'port:\\s?"(.*?)"'},i={ip:Z["a"],port:Z["d"]},r={ip:[],port:[]};if(e){var o=function(t){var o=e.match(new RegExp(n[t],"gi"));o&&(r[t]=o.map((function(e){return e.match(new RegExp(n[t],"i"))[1]})).filter((function(e){return i[t](e)})),r[t]=Object(b["a"])(new Set(r[t])))};for(var a in r)o(a)}return r},onChangeDataModel:function(t){this.dataModel=t,"list"!==t&&this.onSearch()},onChangeListType:function(t){this.extraPrams=t,this.getTableData()},changeFullNewDateSwitch:function(t){this.isLatest=t,this.searchList.latest=t,this.searchList.shortcuts=[],t?(this.datePickerType="other",this.searchList=my({},this.searchList,{timeRange:["",""]})):(this.searchList=my({},this.searchList,{timeRange:[A()(A()().format("YYYY-MM-DD")).subtract(1,"year").format("YYYY-MM-DD HH:mm:ss"),A()(A()().format("YYYY-MM-DD")).format("YYYY-MM-DD HH:mm:ss")]}),this.judgeDatePickerTypeByTimeRange(this.searchList.timeRange)),this.$refs.aggregationsRef.resetCollapse("all"),this.onSearch()}})},by=yy,xy=(n("b8f5"),Object(V["a"])(by,m,v,!1,null,"55fd9bc4",null));e["default"]=xy.exports},f495:function(t,e,n){var i=n("c04e"),r=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw r("Can't convert number to bigint");return BigInt(e)}},f4c83:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=null;function r(){if(!i){var t=document.createElement("canvas");t.width=1,t.height=1,i=t.getContext("2d")}return i}e.getOffScreenContext=r},f596:function(t,e,n){"use strict";var i=n("992c"),r=n.n(i);r.a},f5e5:function(t,e,n){"use strict";var i=n("8937"),r=n("af40"),o=n("7326");function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function s(t,e){return a(t)*a(e)?(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e)):1}function l(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(s(t,e))}function c(t,e){var n=e[1],i=e[2],r=Object(o["m"])(Object(o["o"])(e[3]),2*Math.PI),a=e[4],c=e[5],u=t[0],h=t[1],d=e[6],p=e[7],f=Math.cos(r)*(u-d)/2+Math.sin(r)*(h-p)/2,g=-1*Math.sin(r)*(u-d)/2+Math.cos(r)*(h-p)/2,m=f*f/(n*n)+g*g/(i*i);m>1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var v=n*n*(g*g)+i*i*(f*f),y=v?Math.sqrt((n*n*(i*i)-v)/v):1;a===c&&(y*=-1),isNaN(y)&&(y=0);var b=i?y*n*g/i:0,x=n?y*-i*f/n:0,w=(u+d)/2+Math.cos(r)*b-Math.sin(r)*x,_=(h+p)/2+Math.sin(r)*b+Math.cos(r)*x,C=[(f-b)/n,(g-x)/i],A=[(-1*f-b)/n,(-1*g-x)/i],I=l([1,0],C),S=l(C,A);return s(C,A)<=-1&&(S=Math.PI),s(C,A)>=1&&(S=0),0===c&&S>0&&(S-=2*Math.PI),1===c&&S<0&&(S+=2*Math.PI),{cx:w,cy:_,rx:Object(o["j"])(t,[d,p])?0:n,ry:Object(o["j"])(t,[d,p])?0:i,startAngle:I,endAngle:I+S,xRotation:r,arcFlag:a,sweepFlag:c}}var u=n("9f27");n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return f})),n.d(e,"f",(function(){return g})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return y}));var h={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function d(t,e){var n=e.attr();for(var o in n){var a=n[o],s=h[o]?h[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(i["isArray"])(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(r["b"])(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function p(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];r.get("visible")?r.draw(t,n):r.skipDraw()}}function f(t,e,n,i){var r=n.path,o=n.startArrow,a=n.endArrow,s=[0,0],l=[0,0],h={dx:0,dy:0};e.beginPath();for(var d=0;d<r.length;d++){var p=r[d],f=p[0];if(0===d&&o&&o.d){var g=t.getStartTangent();h=u["c"](g[0][0],g[0][1],g[1][0],g[1][1],o.d)}else if(d===r.length-2&&"Z"===r[d+1][0]&&a&&a.d){var m=r[d+1];if("Z"===m[0]){g=t.getEndTangent();h=u["c"](g[0][0],g[0][1],g[1][0],g[1][1],a.d)}}else if(d===r.length-1&&a&&a.d&&"Z"!==r[0]){g=t.getEndTangent();h=u["c"](g[0][0],g[0][1],g[1][0],g[1][1],a.d)}var v=h.dx,y=h.dy;switch(f){case"M":e.moveTo(p[1]-v,p[2]-y),l=[p[1],p[2]];break;case"L":e.lineTo(p[1]-v,p[2]-y);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-v,p[4]-y);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-v,p[6]-y);break;case"A":var b=void 0;i?(b=i[d],b||(b=c(s,p),i[d]=b)):b=c(s,p);var x=b.cx,w=b.cy,_=b.rx,C=b.ry,A=b.startAngle,I=b.endAngle,S=b.xRotation,M=b.sweepFlag;if(e.ellipse)e.ellipse(x,w,_,C,S,A,I,1-M);else{var k=_>C?_:C,E=_>C?1:_/C,T=_>C?C/_:1;e.translate(x,w),e.rotate(S),e.scale(E,T),e.arc(0,0,k,A,I,1-M),e.scale(1/E,1/T),e.rotate(-S),e.translate(-x,-w)}break;case"Z":e.closePath();break;default:break}if("Z"===f)s=l;else{var O=p.length;s=[p[O-2],p[O-1]]}}}function g(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw(),t.set("hasChanged",!0)))}function m(t){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),i=n&&!(!n.width||!n.height),r=t.getCanvasBBox(),a=r&&!(!r.width||!r.height);i&&a?e=Object(o["l"])(n,r):i?e=n:a&&(e=r)}return e}function v(t){if(!t.length)return null;var e=[],n=[],r=[],o=[];return Object(i["each"])(t,(function(t){var i=m(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),o.push(i.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,r),maxY:Math.max.apply(null,o)}}function y(t,e){return t&&e&&Object(o["f"])(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},f5e9:function(t,e,n){"use strict";var i=n("f8a6"),r=n.n(i);r.a},f62a:function(t,e,n){"use strict";var i=n("1a4d"),r=n.n(i);r.a},f702:function(t,e,n){},f7dd:function(t,e,n){"use strict";n.r(e);var i=n("5a89"),r=n("1b53");const o={defines:{SMAA_THRESHOLD:"0.1"},uniforms:{tDiffuse:{value:null},resolution:{value:new i["Vector2"](1/1024,1/512)}},vertexShader:"\n\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 3 ];\n\n\t\tvoid SMAAEdgeDetectionVS( vec2 texcoord ) {\n\t\t\tvOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0,  1.0 ); // WebGL port note: Changed sign in W component\n\t\t\tvOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4(  1.0, 0.0, 0.0, -1.0 ); // WebGL port note: Changed sign in W component\n\t\t\tvOffset[ 2 ] = texcoord.xyxy + resolution.xyxy * vec4( -2.0, 0.0, 0.0,  2.0 ); // WebGL port note: Changed sign in W component\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tSMAAEdgeDetectionVS( vUv );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 3 ];\n\n\t\tvec4 SMAAColorEdgeDetectionPS( vec2 texcoord, vec4 offset[3], sampler2D colorTex ) {\n\t\t\tvec2 threshold = vec2( SMAA_THRESHOLD, SMAA_THRESHOLD );\n\n\t\t\t// Calculate color deltas:\n\t\t\tvec4 delta;\n\t\t\tvec3 C = texture2D( colorTex, texcoord ).rgb;\n\n\t\t\tvec3 Cleft = texture2D( colorTex, offset[0].xy ).rgb;\n\t\t\tvec3 t = abs( C - Cleft );\n\t\t\tdelta.x = max( max( t.r, t.g ), t.b );\n\n\t\t\tvec3 Ctop = texture2D( colorTex, offset[0].zw ).rgb;\n\t\t\tt = abs( C - Ctop );\n\t\t\tdelta.y = max( max( t.r, t.g ), t.b );\n\n\t\t\t// We do the usual threshold:\n\t\t\tvec2 edges = step( threshold, delta.xy );\n\n\t\t\t// Then discard if there is no edge:\n\t\t\tif ( dot( edges, vec2( 1.0, 1.0 ) ) == 0.0 )\n\t\t\t\tdiscard;\n\n\t\t\t// Calculate right and bottom deltas:\n\t\t\tvec3 Cright = texture2D( colorTex, offset[1].xy ).rgb;\n\t\t\tt = abs( C - Cright );\n\t\t\tdelta.z = max( max( t.r, t.g ), t.b );\n\n\t\t\tvec3 Cbottom  = texture2D( colorTex, offset[1].zw ).rgb;\n\t\t\tt = abs( C - Cbottom );\n\t\t\tdelta.w = max( max( t.r, t.g ), t.b );\n\n\t\t\t// Calculate the maximum delta in the direct neighborhood:\n\t\t\tfloat maxDelta = max( max( max( delta.x, delta.y ), delta.z ), delta.w );\n\n\t\t\t// Calculate left-left and top-top deltas:\n\t\t\tvec3 Cleftleft  = texture2D( colorTex, offset[2].xy ).rgb;\n\t\t\tt = abs( C - Cleftleft );\n\t\t\tdelta.z = max( max( t.r, t.g ), t.b );\n\n\t\t\tvec3 Ctoptop = texture2D( colorTex, offset[2].zw ).rgb;\n\t\t\tt = abs( C - Ctoptop );\n\t\t\tdelta.w = max( max( t.r, t.g ), t.b );\n\n\t\t\t// Calculate the final maximum delta:\n\t\t\tmaxDelta = max( max( maxDelta, delta.z ), delta.w );\n\n\t\t\t// Local contrast adaptation in action:\n\t\t\tedges.xy *= step( 0.5 * maxDelta, delta.xy );\n\n\t\t\treturn vec4( edges, 0.0, 0.0 );\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tgl_FragColor = SMAAColorEdgeDetectionPS( vUv, vOffset, tDiffuse );\n\n\t\t}"},a={defines:{SMAA_MAX_SEARCH_STEPS:"8",SMAA_AREATEX_MAX_DISTANCE:"16",SMAA_AREATEX_PIXEL_SIZE:"( 1.0 / vec2( 160.0, 560.0 ) )",SMAA_AREATEX_SUBTEX_SIZE:"( 1.0 / 7.0 )"},uniforms:{tDiffuse:{value:null},tArea:{value:null},tSearch:{value:null},resolution:{value:new i["Vector2"](1/1024,1/512)}},vertexShader:"\n\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 3 ];\n\t\tvarying vec2 vPixcoord;\n\n\t\tvoid SMAABlendingWeightCalculationVS( vec2 texcoord ) {\n\t\t\tvPixcoord = texcoord / resolution;\n\n\t\t\t// We will use these offsets for the searches later on (see @PSEUDO_GATHER4):\n\t\t\tvOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.25, 0.125, 1.25, 0.125 ); // WebGL port note: Changed sign in Y and W components\n\t\t\tvOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.125, 0.25, -0.125, -1.25 ); // WebGL port note: Changed sign in Y and W components\n\n\t\t\t// And these for the searches, they indicate the ends of the loops:\n\t\t\tvOffset[ 2 ] = vec4( vOffset[ 0 ].xz, vOffset[ 1 ].yw ) + vec4( -2.0, 2.0, -2.0, 2.0 ) * resolution.xxyy * float( SMAA_MAX_SEARCH_STEPS );\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tSMAABlendingWeightCalculationVS( vUv );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\t#define SMAASampleLevelZeroOffset( tex, coord, offset ) texture2D( tex, coord + float( offset ) * resolution, 0.0 )\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform sampler2D tArea;\n\t\tuniform sampler2D tSearch;\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[3];\n\t\tvarying vec2 vPixcoord;\n\n\t\t#if __VERSION__ == 100\n\t\tvec2 round( vec2 x ) {\n\t\t\treturn sign( x ) * floor( abs( x ) + 0.5 );\n\t\t}\n\t\t#endif\n\n\t\tfloat SMAASearchLength( sampler2D searchTex, vec2 e, float bias, float scale ) {\n\t\t\t// Not required if searchTex accesses are set to point:\n\t\t\t// float2 SEARCH_TEX_PIXEL_SIZE = 1.0 / float2(66.0, 33.0);\n\t\t\t// e = float2(bias, 0.0) + 0.5 * SEARCH_TEX_PIXEL_SIZE +\n\t\t\t//     e * float2(scale, 1.0) * float2(64.0, 32.0) * SEARCH_TEX_PIXEL_SIZE;\n\t\t\te.r = bias + e.r * scale;\n\t\t\treturn 255.0 * texture2D( searchTex, e, 0.0 ).r;\n\t\t}\n\n\t\tfloat SMAASearchXLeft( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {\n\t\t\t/**\n\t\t\t\t* @PSEUDO_GATHER4\n\t\t\t\t* This texcoord has been offset by (-0.25, -0.125) in the vertex shader to\n\t\t\t\t* sample between edge, thus fetching four edges in a row.\n\t\t\t\t* Sampling with different offsets in each direction allows to disambiguate\n\t\t\t\t* which edges are active from the four fetched ones.\n\t\t\t\t*/\n\t\t\tvec2 e = vec2( 0.0, 1.0 );\n\n\t\t\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for\n\t\t\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;\n\t\t\t\ttexcoord -= vec2( 2.0, 0.0 ) * resolution;\n\t\t\t\tif ( ! ( texcoord.x > end && e.g > 0.8281 && e.r == 0.0 ) ) break;\n\t\t\t}\n\n\t\t\t// We correct the previous (-0.25, -0.125) offset we applied:\n\t\t\ttexcoord.x += 0.25 * resolution.x;\n\n\t\t\t// The searches are bias by 1, so adjust the coords accordingly:\n\t\t\ttexcoord.x += resolution.x;\n\n\t\t\t// Disambiguate the length added by the last step:\n\t\t\ttexcoord.x += 2.0 * resolution.x; // Undo last step\n\t\t\ttexcoord.x -= resolution.x * SMAASearchLength(searchTex, e, 0.0, 0.5);\n\n\t\t\treturn texcoord.x;\n\t\t}\n\n\t\tfloat SMAASearchXRight( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {\n\t\t\tvec2 e = vec2( 0.0, 1.0 );\n\n\t\t\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for\n\t\t\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;\n\t\t\t\ttexcoord += vec2( 2.0, 0.0 ) * resolution;\n\t\t\t\tif ( ! ( texcoord.x < end && e.g > 0.8281 && e.r == 0.0 ) ) break;\n\t\t\t}\n\n\t\t\ttexcoord.x -= 0.25 * resolution.x;\n\t\t\ttexcoord.x -= resolution.x;\n\t\t\ttexcoord.x -= 2.0 * resolution.x;\n\t\t\ttexcoord.x += resolution.x * SMAASearchLength( searchTex, e, 0.5, 0.5 );\n\n\t\t\treturn texcoord.x;\n\t\t}\n\n\t\tfloat SMAASearchYUp( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {\n\t\t\tvec2 e = vec2( 1.0, 0.0 );\n\n\t\t\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for\n\t\t\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;\n\t\t\t\ttexcoord += vec2( 0.0, 2.0 ) * resolution; // WebGL port note: Changed sign\n\t\t\t\tif ( ! ( texcoord.y > end && e.r > 0.8281 && e.g == 0.0 ) ) break;\n\t\t\t}\n\n\t\t\ttexcoord.y -= 0.25 * resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y -= resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y -= 2.0 * resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y += resolution.y * SMAASearchLength( searchTex, e.gr, 0.0, 0.5 ); // WebGL port note: Changed sign\n\n\t\t\treturn texcoord.y;\n\t\t}\n\n\t\tfloat SMAASearchYDown( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) {\n\t\t\tvec2 e = vec2( 1.0, 0.0 );\n\n\t\t\tfor ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for\n\t\t\t\te = texture2D( edgesTex, texcoord, 0.0 ).rg;\n\t\t\t\ttexcoord -= vec2( 0.0, 2.0 ) * resolution; // WebGL port note: Changed sign\n\t\t\t\tif ( ! ( texcoord.y < end && e.r > 0.8281 && e.g == 0.0 ) ) break;\n\t\t\t}\n\n\t\t\ttexcoord.y += 0.25 * resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y += resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y += 2.0 * resolution.y; // WebGL port note: Changed sign\n\t\t\ttexcoord.y -= resolution.y * SMAASearchLength( searchTex, e.gr, 0.5, 0.5 ); // WebGL port note: Changed sign\n\n\t\t\treturn texcoord.y;\n\t\t}\n\n\t\tvec2 SMAAArea( sampler2D areaTex, vec2 dist, float e1, float e2, float offset ) {\n\t\t\t// Rounding prevents precision errors of bilinear filtering:\n\t\t\tvec2 texcoord = float( SMAA_AREATEX_MAX_DISTANCE ) * round( 4.0 * vec2( e1, e2 ) ) + dist;\n\n\t\t\t// We do a scale and bias for mapping to texel space:\n\t\t\ttexcoord = SMAA_AREATEX_PIXEL_SIZE * texcoord + ( 0.5 * SMAA_AREATEX_PIXEL_SIZE );\n\n\t\t\t// Move to proper place, according to the subpixel offset:\n\t\t\ttexcoord.y += SMAA_AREATEX_SUBTEX_SIZE * offset;\n\n\t\t\treturn texture2D( areaTex, texcoord, 0.0 ).rg;\n\t\t}\n\n\t\tvec4 SMAABlendingWeightCalculationPS( vec2 texcoord, vec2 pixcoord, vec4 offset[ 3 ], sampler2D edgesTex, sampler2D areaTex, sampler2D searchTex, ivec4 subsampleIndices ) {\n\t\t\tvec4 weights = vec4( 0.0, 0.0, 0.0, 0.0 );\n\n\t\t\tvec2 e = texture2D( edgesTex, texcoord ).rg;\n\n\t\t\tif ( e.g > 0.0 ) { // Edge at north\n\t\t\t\tvec2 d;\n\n\t\t\t\t// Find the distance to the left:\n\t\t\t\tvec2 coords;\n\t\t\t\tcoords.x = SMAASearchXLeft( edgesTex, searchTex, offset[ 0 ].xy, offset[ 2 ].x );\n\t\t\t\tcoords.y = offset[ 1 ].y; // offset[1].y = texcoord.y - 0.25 * resolution.y (@CROSSING_OFFSET)\n\t\t\t\td.x = coords.x;\n\n\t\t\t\t// Now fetch the left crossing edges, two at a time using bilinear\n\t\t\t\t// filtering. Sampling at -0.25 (see @CROSSING_OFFSET) enables to\n\t\t\t\t// discern what value each edge has:\n\t\t\t\tfloat e1 = texture2D( edgesTex, coords, 0.0 ).r;\n\n\t\t\t\t// Find the distance to the right:\n\t\t\t\tcoords.x = SMAASearchXRight( edgesTex, searchTex, offset[ 0 ].zw, offset[ 2 ].y );\n\t\t\t\td.y = coords.x;\n\n\t\t\t\t// We want the distances to be in pixel units (doing this here allow to\n\t\t\t\t// better interleave arithmetic and memory accesses):\n\t\t\t\td = d / resolution.x - pixcoord.x;\n\n\t\t\t\t// SMAAArea below needs a sqrt, as the areas texture is compressed\n\t\t\t\t// quadratically:\n\t\t\t\tvec2 sqrt_d = sqrt( abs( d ) );\n\n\t\t\t\t// Fetch the right crossing edges:\n\t\t\t\tcoords.y -= 1.0 * resolution.y; // WebGL port note: Added\n\t\t\t\tfloat e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 1, 0 ) ).r;\n\n\t\t\t\t// Ok, we know how this pattern looks like, now it is time for getting\n\t\t\t\t// the actual area:\n\t\t\t\tweights.rg = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.y ) );\n\t\t\t}\n\n\t\t\tif ( e.r > 0.0 ) { // Edge at west\n\t\t\t\tvec2 d;\n\n\t\t\t\t// Find the distance to the top:\n\t\t\t\tvec2 coords;\n\n\t\t\t\tcoords.y = SMAASearchYUp( edgesTex, searchTex, offset[ 1 ].xy, offset[ 2 ].z );\n\t\t\t\tcoords.x = offset[ 0 ].x; // offset[1].x = texcoord.x - 0.25 * resolution.x;\n\t\t\t\td.x = coords.y;\n\n\t\t\t\t// Fetch the top crossing edges:\n\t\t\t\tfloat e1 = texture2D( edgesTex, coords, 0.0 ).g;\n\n\t\t\t\t// Find the distance to the bottom:\n\t\t\t\tcoords.y = SMAASearchYDown( edgesTex, searchTex, offset[ 1 ].zw, offset[ 2 ].w );\n\t\t\t\td.y = coords.y;\n\n\t\t\t\t// We want the distances to be in pixel units:\n\t\t\t\td = d / resolution.y - pixcoord.y;\n\n\t\t\t\t// SMAAArea below needs a sqrt, as the areas texture is compressed\n\t\t\t\t// quadratically:\n\t\t\t\tvec2 sqrt_d = sqrt( abs( d ) );\n\n\t\t\t\t// Fetch the bottom crossing edges:\n\t\t\t\tcoords.y -= 1.0 * resolution.y; // WebGL port note: Added\n\t\t\t\tfloat e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 0, 1 ) ).g;\n\n\t\t\t\t// Get the area for this direction:\n\t\t\t\tweights.ba = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.x ) );\n\t\t\t}\n\n\t\t\treturn weights;\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tgl_FragColor = SMAABlendingWeightCalculationPS( vUv, vPixcoord, vOffset, tDiffuse, tArea, tSearch, ivec4( 0.0 ) );\n\n\t\t}"},s={uniforms:{tDiffuse:{value:null},tColor:{value:null},resolution:{value:new i["Vector2"](1/1024,1/512)}},vertexShader:"\n\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 2 ];\n\n\t\tvoid SMAANeighborhoodBlendingVS( vec2 texcoord ) {\n\t\t\tvOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 ); // WebGL port note: Changed sign in W component\n\t\t\tvOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( 1.0, 0.0, 0.0, -1.0 ); // WebGL port note: Changed sign in W component\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvUv = uv;\n\n\t\t\tSMAANeighborhoodBlendingVS( vUv );\n\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\t\t}",fragmentShader:"\n\n\t\tuniform sampler2D tDiffuse;\n\t\tuniform sampler2D tColor;\n\t\tuniform vec2 resolution;\n\n\t\tvarying vec2 vUv;\n\t\tvarying vec4 vOffset[ 2 ];\n\n\t\tvec4 SMAANeighborhoodBlendingPS( vec2 texcoord, vec4 offset[ 2 ], sampler2D colorTex, sampler2D blendTex ) {\n\t\t\t// Fetch the blending weights for current pixel:\n\t\t\tvec4 a;\n\t\t\ta.xz = texture2D( blendTex, texcoord ).xz;\n\t\t\ta.y = texture2D( blendTex, offset[ 1 ].zw ).g;\n\t\t\ta.w = texture2D( blendTex, offset[ 1 ].xy ).a;\n\n\t\t\t// Is there any blending weight with a value greater than 0.0?\n\t\t\tif ( dot(a, vec4( 1.0, 1.0, 1.0, 1.0 )) < 1e-5 ) {\n\t\t\t\treturn texture2D( colorTex, texcoord, 0.0 );\n\t\t\t} else {\n\t\t\t\t// Up to 4 lines can be crossing a pixel (one through each edge). We\n\t\t\t\t// favor blending by choosing the line with the maximum weight for each\n\t\t\t\t// direction:\n\t\t\t\tvec2 offset;\n\t\t\t\toffset.x = a.a > a.b ? a.a : -a.b; // left vs. right\n\t\t\t\toffset.y = a.g > a.r ? -a.g : a.r; // top vs. bottom // WebGL port note: Changed signs\n\n\t\t\t\t// Then we go in the direction that has the maximum weight:\n\t\t\t\tif ( abs( offset.x ) > abs( offset.y )) { // horizontal vs. vertical\n\t\t\t\t\toffset.y = 0.0;\n\t\t\t\t} else {\n\t\t\t\t\toffset.x = 0.0;\n\t\t\t\t}\n\n\t\t\t\t// Fetch the opposite color and lerp by hand:\n\t\t\t\tvec4 C = texture2D( colorTex, texcoord, 0.0 );\n\t\t\t\ttexcoord += sign( offset ) * resolution;\n\t\t\t\tvec4 Cop = texture2D( colorTex, texcoord, 0.0 );\n\t\t\t\tfloat s = abs( offset.x ) > abs( offset.y ) ? abs( offset.x ) : abs( offset.y );\n\n\t\t\t\t// WebGL port note: Added gamma correction\n\t\t\t\tC.xyz = pow(C.xyz, vec3(2.2));\n\t\t\t\tCop.xyz = pow(Cop.xyz, vec3(2.2));\n\t\t\t\tvec4 mixed = mix(C, Cop, s);\n\t\t\t\tmixed.xyz = pow(mixed.xyz, vec3(1.0 / 2.2));\n\n\t\t\t\treturn mixed;\n\t\t\t}\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tgl_FragColor = SMAANeighborhoodBlendingPS( vUv, vOffset, tColor, tDiffuse );\n\n\t\t}"};n.d(e,"SMAAPass",(function(){return l}));class l extends r["Pass"]{constructor(t,e){super(),this.edgesRT=new i["WebGLRenderTarget"](t,e,{depthBuffer:!1,generateMipmaps:!1,minFilter:i["LinearFilter"],format:i["RGBFormat"]}),this.edgesRT.texture.name="SMAAPass.edges",this.weightsRT=new i["WebGLRenderTarget"](t,e,{depthBuffer:!1,generateMipmaps:!1,minFilter:i["LinearFilter"],format:i["RGBAFormat"]}),this.weightsRT.texture.name="SMAAPass.weights";const n=this,l=new Image;l.src=this.getAreaTexture(),l.onload=function(){n.areaTexture.needsUpdate=!0},this.areaTexture=new i["Texture"],this.areaTexture.name="SMAAPass.area",this.areaTexture.image=l,this.areaTexture.format=i["RGBFormat"],this.areaTexture.minFilter=i["LinearFilter"],this.areaTexture.generateMipmaps=!1,this.areaTexture.flipY=!1;const c=new Image;c.src=this.getSearchTexture(),c.onload=function(){n.searchTexture.needsUpdate=!0},this.searchTexture=new i["Texture"],this.searchTexture.name="SMAAPass.search",this.searchTexture.image=c,this.searchTexture.magFilter=i["NearestFilter"],this.searchTexture.minFilter=i["NearestFilter"],this.searchTexture.generateMipmaps=!1,this.searchTexture.flipY=!1,void 0===o&&console.error("THREE.SMAAPass relies on SMAAShader"),this.uniformsEdges=i["UniformsUtils"].clone(o.uniforms),this.uniformsEdges["resolution"].value.set(1/t,1/e),this.materialEdges=new i["ShaderMaterial"]({defines:Object.assign({},o.defines),uniforms:this.uniformsEdges,vertexShader:o.vertexShader,fragmentShader:o.fragmentShader}),this.uniformsWeights=i["UniformsUtils"].clone(a.uniforms),this.uniformsWeights["resolution"].value.set(1/t,1/e),this.uniformsWeights["tDiffuse"].value=this.edgesRT.texture,this.uniformsWeights["tArea"].value=this.areaTexture,this.uniformsWeights["tSearch"].value=this.searchTexture,this.materialWeights=new i["ShaderMaterial"]({defines:Object.assign({},a.defines),uniforms:this.uniformsWeights,vertexShader:a.vertexShader,fragmentShader:a.fragmentShader}),this.uniformsBlend=i["UniformsUtils"].clone(s.uniforms),this.uniformsBlend["resolution"].value.set(1/t,1/e),this.uniformsBlend["tDiffuse"].value=this.weightsRT.texture,this.materialBlend=new i["ShaderMaterial"]({uniforms:this.uniformsBlend,vertexShader:s.vertexShader,fragmentShader:s.fragmentShader}),this.needsSwap=!1,this.fsQuad=new r["FullScreenQuad"](null)}render(t,e,n){this.uniformsEdges["tDiffuse"].value=n.texture,this.fsQuad.material=this.materialEdges,t.setRenderTarget(this.edgesRT),this.clear&&t.clear(),this.fsQuad.render(t),this.fsQuad.material=this.materialWeights,t.setRenderTarget(this.weightsRT),this.clear&&t.clear(),this.fsQuad.render(t),this.uniformsBlend["tColor"].value=n.texture,this.fsQuad.material=this.materialBlend,this.renderToScreen?(t.setRenderTarget(null),this.fsQuad.render(t)):(t.setRenderTarget(e),this.clear&&t.clear(),this.fsQuad.render(t))}setSize(t,e){this.edgesRT.setSize(t,e),this.weightsRT.setSize(t,e),this.materialEdges.uniforms["resolution"].value.set(1/t,1/e),this.materialWeights.uniforms["resolution"].value.set(1/t,1/e),this.materialBlend.uniforms["resolution"].value.set(1/t,1/e)}getAreaTexture(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAIwCAIAAACOVPcQAACBeklEQVR42u39W4xlWXrnh/3WWvuciIzMrKxrV8/0rWbY0+SQFKcb4owIkSIFCjY9AC1BT/LYBozRi+EX+cV+8IMsYAaCwRcBwjzMiw2jAWtgwC8WR5Q8mDFHZLNHTarZGrLJJllt1W2qKrsumZWZcTvn7L3W54e1vrXX3vuciLPPORFR1XE2EomorB0nVuz//r71re/y/1eMvb4Cb3N11xV/PP/2v4UBAwJG/7H8urx6/25/Gf8O5hypMQ0EEEQwAqLfoN/Z+97f/SW+/NvcgQk4sGBJK6H7N4PFVL+K+e0N11yNfkKvwUdwdlUAXPHHL38oa15f/i/46Ih6SuMSPmLAYAwyRKn7dfMGH97jaMFBYCJUgotIC2YAdu+LyW9vvubxAP8kAL8H/koAuOKP3+q6+xGnd5kdYCeECnGIJViwGJMAkQKfDvB3WZxjLKGh8VSCCzhwEWBpMc5/kBbjawT4HnwJfhr+pPBIu7uu+OOTo9vsmtQcniMBGkKFd4jDWMSCRUpLjJYNJkM+IRzQ+PQvIeAMTrBS2LEiaiR9b/5PuT6Ap/AcfAFO4Y3dA3DFH7/VS+M8k4baEAQfMI4QfbVDDGIRg7GKaIY52qAjTAgTvGBAPGIIghOCYAUrGFNgzA7Q3QhgCwfwAnwe5vDejgG44o/fbm1C5ZlYQvQDARPAIQGxCWBM+wWl37ZQESb4gImexGMDouhGLx1Cst0Saa4b4AqO4Hk4gxo+3DHAV/nx27p3JziPM2pVgoiia5MdEzCGULprIN7gEEeQ5IQxEBBBQnxhsDb5auGmAAYcHMA9eAAz8PBol8/xij9+C4Djlim4gJjWcwZBhCBgMIIYxGAVIkH3ZtcBuLdtRFMWsPGoY9rN+HoBji9VBYdwD2ZQg4cnO7OSq/z4rU5KKdwVbFAjNojCQzTlCLPFSxtamwh2jMUcEgg2Wm/6XgErIBhBckQtGN3CzbVacERgCnfgLswhnvqf7QyAq/z4rRZm1YglYE3affGITaZsdIe2FmMIpnOCap25I6jt2kCwCW0D1uAD9sZctNGXcQIHCkINDQgc78aCr+zjtw3BU/ijdpw3zhCwcaONwBvdeS2YZKkJNJsMPf2JKEvC28RXxxI0ASJyzQCjCEQrO4Q7sFArEzjZhaFc4cdv+/JFdKULM4px0DfUBI2hIsy06BqLhGTQEVdbfAIZXYMPesq6VoCHICzUyjwInO4Y411//LYLs6TDa9wvg2CC2rElgAnpTBziThxaL22MYhzfkghz6GAs2VHbbdM91VZu1MEEpupMMwKyVTb5ij9+u4VJG/5EgEMMmFF01cFai3isRbKbzb+YaU/MQbAm2XSMoUPAmvZzbuKYRIFApbtlrfFuUGd6vq2hXNnH78ZLh/iFhsQG3T4D1ib7k5CC6vY0DCbtrohgLEIClXiGtl10zc0CnEGIhhatLBva7NP58Tvw0qE8yWhARLQ8h4+AhQSP+I4F5xoU+VilGRJs6wnS7ruti/4KvAY/CfdgqjsMy4pf8fodQO8/gnuX3f/3xi3om1/h7THr+co3x93PP9+FBUfbNUjcjEmhcrkT+8K7ml7V10Jo05mpIEFy1NmCJWx9SIKKt+EjAL4Ez8EBVOB6havuT/rByPvHXK+9zUcfcbb254+9fydJknYnRr1oGfdaiAgpxu1Rx/Rek8KISftx3L+DfsLWAANn8Hvw0/AFeAGO9DFV3c6D+CcWbL8Dj9e7f+T1k8AZv/d7+PXWM/Z+VvdCrIvuAKO09RpEEQJM0Ci6+B4xhTWr4cZNOvhktabw0ta0rSJmqz3Yw5/AKXwenod7cAhTmBSPKf6JBdvH8IP17h95pXqw50/+BFnj88fev4NchyaK47OPhhtI8RFSvAfDSNh0Ck0p2gLxGkib5NJj/JWCr90EWQJvwBzO4AHcgztwAFN1evHPUVGwfXON+0debT1YeGON9Yy9/63X+OguiwmhIhQhD7l4sMqlG3D86Suc3qWZ4rWjI1X7u0Ytw6x3rIMeIOPDprfe2XzNgyj6PahhBjO4C3e6puDgXrdg+/5l948vF3bqwZetZ+z9Rx9zdIY5pInPK4Nk0t+l52xdK2B45Qd87nM8fsD5EfUhIcJcERw4RdqqH7Yde5V7m1vhNmtedkz6EDzUMF/2jJYWbC+4fzzA/Y+/8PPH3j9dcBAPIRP8JLXd5BpAu03aziOL3VVHZzz3CXWDPWd+SH2AnxIqQoTZpo9Ckc6HIrFbAbzNmlcg8Ag8NFDDAhbJvTBZXbC94P7t68EXfv6o+21gUtPETU7bbkLxvNKRFG2+KXzvtObonPP4rBvsgmaKj404DlshFole1Glfh02fE7bYR7dZ82oTewIBGn1Md6CG6YUF26X376oevOLzx95vhUmgblI6LBZwTCDY7vMq0op5WVXgsObOXJ+1x3qaBl9j1FeLxbhU9w1F+Wiba6s1X/TBz1LnUfuYDi4r2C69f1f14BWfP+p+W2GFKuC9phcELMYRRLur9DEZTUdEH+iEqWdaM7X4WOoPGI+ZYD2+wcQ+y+ioHUZ9dTDbArzxmi/bJI9BND0Ynd6lBdve/butBw8+f/T9D3ABa3AG8W3VPX4hBin+bj8dMMmSpp5pg7fJ6xrBFE2WQQEWnV8Qg3FbAWzYfM1rREEnmvkN2o1+acG2d/9u68GDzx91v3mAjb1zkpqT21OipPKO0b9TO5W0nTdOmAQm0TObts3aBKgwARtoPDiCT0gHgwnbArzxmtcLc08HgF1asN0C4Ms/fvD5I+7PhfqyXE/b7RbbrGyRQRT9ARZcwAUmgdoz0ehJ9Fn7QAhUjhDAQSw0bV3T3WbNa59jzmiP6GsWbGXDX2ytjy8+f9T97fiBPq9YeLdBmyuizZHaqXITnXiMUEEVcJ7K4j3BFPurtB4bixW8wTpweL8DC95szWMOqucFYGsWbGU7p3TxxxefP+r+oTVktxY0v5hbq3KiOKYnY8ddJVSBxuMMVffNbxwIOERShst73HZ78DZrHpmJmH3K6sGz0fe3UUj0eyRrSCGTTc+rjVNoGzNSv05srAxUBh8IhqChiQgVNIIBH3AVPnrsnXQZbLTm8ammv8eVXn/vWpaTem5IXRlt+U/LA21zhSb9cye6jcOfCnOwhIAYXAMVTUNV0QhVha9xjgA27ODJbLbmitt3tRN80lqG6N/khgot4ZVlOyO4WNg3OIMzhIZQpUEHieg2im6F91hB3I2tubql6BYNN9Hj5S7G0G2tahslBWKDnOiIvuAEDzakDQKDNFQT6gbn8E2y4BBubM230YIpBnDbMa+y3dx0n1S0BtuG62lCCXwcY0F72T1VRR3t2ONcsmDjbmzNt9RFs2LO2hQNyb022JisaI8rAWuw4HI3FuAIhZdOGIcdjLJvvObqlpqvWTJnnQbyi/1M9O8UxWhBs//H42I0q1Yb/XPGONzcmm+ri172mHKvZBpHkJaNJz6v9jxqiklDj3U4CA2ugpAaYMWqNXsdXbmJNd9egCnJEsphXNM+MnK3m0FCJ5S1kmJpa3DgPVbnQnPGWIDspW9ozbcO4K/9LkfaQO2KHuqlfFXSbdNzcEcwoqNEFE9zcIXu9/6n/ym/BC/C3aJLzEKPuYVlbFnfhZ8kcWxV3dbv4bKl28566wD+8C53aw49lTABp9PWbsB+knfc/Li3eVizf5vv/xmvnPKg5ihwKEwlrcHqucuVcVOxEv8aH37E3ZqpZypUulrHEtIWKUr+txHg+ojZDGlwnqmkGlzcVi1dLiNSJiHjfbRNOPwKpx9TVdTn3K05DBx4psIk4Ei8aCkJahRgffk4YnEXe07T4H2RR1u27E6wfQsBDofUgjFUFnwC2AiVtA+05J2zpiDK2Oa0c5fmAecN1iJzmpqFZxqYBCYhFTCsUNEmUnIcZ6aEA5rQVhEywG6w7HSW02XfOoBlQmjwulOFQAg66SvJblrTEX1YtJ3uG15T/BH1OfOQeuR8g/c0gdpT5fx2SKbs9EfHTKdM8A1GaJRHLVIwhcGyydZsbifAFVKl5EMKNU2Hryo+06BeTgqnxzYjThVySDikbtJPieco75lYfKAJOMEZBTjoITuWHXXZVhcUDIS2hpiXHV9Ku4u44bN5OYLDOkJo8w+xJSMbhBRHEdEs9JZUCkQrPMAvaHyLkxgkEHxiNkx/x2YB0mGsQ8EUWj/stW5YLhtS5SMu+/YBbNPDCkGTUybN8krRLBGPlZkVOA0j+a1+rkyQKWGaPHPLZOkJhioQYnVZ2hS3zVxMtgC46KuRwbJNd9nV2PHgb36F194ecf/Yeu2vAFe5nm/bRBFrnY4BauE8ERmZRFUn0k8hbftiVYSKMEme2dJCJSCGYAlNqh87bXOPdUkGy24P6d1ll21MBqqx48Fvv8ZHH8HZFY7j/uAq1xMJUFqCSUlJPmNbIiNsmwuMs/q9CMtsZsFO6SprzCS1Z7QL8xCQClEelpjTduDMsmWD8S1PT152BtvmIGvUeDA/yRn83u/x0/4qxoPHjx+PXY9pqX9bgMvh/Nz9kpP4pOe1/fYf3axUiMdHLlPpZCNjgtNFAhcHEDxTumNONhHrBduW+vOyY++70WWnPXj98eA4kOt/mj/5E05l9+O4o8ePx67HFqyC+qSSnyselqjZGaVK2TadbFLPWAQ4NBhHqDCCV7OTpo34AlSSylPtIdd2AJZlyzYQrDJ5lcWGNceD80CunPLGGzsfD+7wRb95NevJI5docQ3tgCyr5bGnyaPRlmwNsFELViOOx9loebGNq2moDOKpHLVP5al2cymWHbkfzGXL7kfRl44H9wZy33tvt+PB/Xnf93e+nh5ZlU18wCiRUa9m7kib9LYuOk+hudQNbxwm0AQqbfloimaB2lM5fChex+ylMwuTbfmXQtmWlenZljbdXTLuOxjI/fDDHY4Hjx8/Hrse0zXfPFxbUN1kKqSCCSk50m0Ajtx3ub9XHBKHXESb8iO6E+qGytF4nO0OG3SXzbJlhxBnKtKyl0NwybjvYCD30aMdjgePHz8eu56SVTBbgxJMliQ3Oauwg0QHxXE2Ez/EIReLdQj42Gzb4CLS0YJD9xUx7bsi0vJi5mUbW1QzL0h0PFk17rtiIPfJk52MB48fPx67npJJwyrBa2RCCQRTbGZSPCxTPOiND4G2pYyOQ4h4jINIJh5wFU1NFZt+IsZ59LSnDqBjZ2awbOku+yInunLcd8VA7rNnOxkPHj9+PGY9B0MWJJNozOJmlglvDMXDEozdhQWbgs/U6oBanGzLrdSNNnZFjOkmbi5bNt1lX7JLLhn3vXAg9/h4y/Hg8ePHI9dzQMEkWCgdRfYykYKnkP7D4rIujsujaKPBsB54vE2TS00ccvFY/Tth7JXeq1hz+qgVy04sAJawTsvOknHfCwdyT062HA8eP348Zj0vdoXF4pilKa2BROed+9fyw9rWRXeTFXESMOanvDZfJuJaSXouQdMdDJZtekZcLLvEeK04d8m474UDuaenW44Hjx8/Xns9YYqZpszGWB3AN/4VHw+k7WSFtJ3Qicuqb/NlVmgXWsxh570xg2UwxUw3WfO6B5nOuO8aA7lnZxuPB48fPx6znm1i4bsfcbaptF3zNT78eFPtwi1OaCNOqp1x3zUGcs/PN++AGD1+fMXrSVm2baTtPhPahbPhA71wIHd2bXzRa69nG+3CraTtPivahV/55tXWg8fyRY/9AdsY8VbSdp8V7cKrrgdfM//z6ILQFtJ2nxHtwmuoB4/kf74+gLeRtvvMaBdeSz34+vifx0YG20jbfTa0C6+tHrwe//NmOG0L8EbSdp8R7cLrrQe/996O+ai3ujQOskpTNULa7jOjXXj99eCd8lHvoFiwsbTdZ0a78PrrwTvlo966pLuRtB2fFe3Cm6oHP9kNH/W2FryxtN1nTLvwRurBO+Kj3pWXHidtx2dFu/Bm68Fb81HvykuPlrb7LGkX3mw9eGs+6h1Y8MbSdjegXcguQLjmevDpTQLMxtJ2N6NdyBZu9AbrwVvwUW+LbteULUpCdqm0HTelXbhNPe8G68Gb8lFvVfYfSNuxvrTdTWoXbozAzdaDZzfkorOj1oxVxlIMlpSIlpLrt8D4hrQL17z+c3h6hU/wv4Q/utps4+bm+6P/hIcf0JwQ5oQGPBL0eKPTYEXTW+eL/2DKn73J9BTXYANG57hz1cEMviVf/4tf5b/6C5pTQkMIWoAq7hTpOJjtAM4pxKu5vg5vXeUrtI09/Mo/5H+4z+Mp5xULh7cEm2QbRP2tFIKR7WM3fPf/jZ3SWCqLM2l4NxID5zB72HQXv3jj/8mLR5xXNA5v8EbFQEz7PpRfl1+MB/hlAN65qgDn3wTgH13hK7T59bmP+NIx1SHHU84nLOITt3iVz8mNO+lPrjGAnBFqmioNn1mTyk1ta47R6d4MrX7tjrnjYUpdUbv2rVr6YpVfsGG58AG8Ah9eyUN8CX4WfgV+G8LVWPDGb+Zd4cU584CtqSbMKxauxTg+dyn/LkVgA+IR8KHtejeFKRtTmLLpxN6mYVLjYxwXf5x2VofiZcp/lwKk4wGOpYDnoIZPdg/AAbwMfx0+ge9dgZvYjuqKe4HnGnykYo5TvJbG0Vj12JagRhwKa44H95ShkZa5RyLGGdfYvG7aw1TsF6iapPAS29mNS3NmsTQZCmgTzFwgL3upCTgtBTRwvGMAKrgLn4evwin8+afJRcff+8izUGUM63GOOuAs3tJkw7J4kyoNreqrpO6cYLQeFUd7TTpr5YOTLc9RUUogUOVJQ1GYJaFLAW0oTmKyYS46ZooP4S4EON3xQ5zC8/CX4CnM4c1PE8ApexpoYuzqlP3d4S3OJP8ZDK7cKWNaTlqmgDiiHwl1YsE41w1zT4iRTm3DBqxvOUsbMKKDa/EHxagtnta072ejc3DOIh5ojvh8l3tk1JF/AV6FU6jh3U8HwEazLgdCLYSQ+MYiAI2ltomkzttUb0gGHdSUUgsIYjTzLG3mObX4FBRaYtpDVNZrih9TgTeYOBxsEnN1gOCTM8Bsw/ieMc75w9kuAT6A+/AiHGvN/+Gn4KRkiuzpNNDYhDGFndWRpE6SVfm8U5bxnSgVV2jrg6JCKmneqey8VMFgq2+AM/i4L4RUbfSi27lNXZ7R7W9RTcq/q9fk4Xw3AMQd4I5ifAZz8FcVtm9SAom/dyN4lczJQW/kC42ZrHgcCoIf1oVMKkVItmMBi9cOeNHGLqOZk+QqQmrbc5YmYgxELUUN35z2iohstgfLIFmcMV7s4CFmI74L9+EFmGsi+tGnAOD4Yk9gIpo01Y4cA43BWGygMdr4YZekG3OBIUXXNukvJS8tqa06e+lSDCtnqqMFu6hWHXCF+WaYt64m9QBmNxi7Ioy7D+fa1yHw+FMAcPt7SysFLtoG4PXAk7JOA3aAxBRqUiAdU9Yp5lK3HLSRFtOim0sa8euEt08xvKjYjzeJ2GU7YawexrnKI9tmobInjFXCewpwriY9+RR4aaezFhMhGCppKwom0ChrgFlKzyPKkGlTW1YQrE9HJqu8hKGgMc6hVi5QRq0PZxNfrYNgE64utmRv6KKHRpxf6VDUaOvNP5jCEx5q185My/7RKz69UQu2im5k4/eownpxZxNLwiZ1AZTO2ZjWjkU9uaB2HFn6Q3u0JcsSx/qV9hTEApRzeBLDJQXxYmTnq7bdLa3+uqFrxLJ5w1TehnNHx5ECvCh2g2c3hHH5YsfdaSKddztfjQ6imKFGSyFwlLzxEGPp6r5IevVjk1AMx3wMqi1NxDVjLBiPs9tbsCkIY5we5/ML22zrCScFxnNtzsr9Wcc3CnD+pYO+4VXXiDE0oc/vQQ/fDK3oPESJMYXNmJa/DuloJZkcTpcYE8lIH8Dz8DJMiynNC86Mb2lNaaqP/+L7f2fcE/yP7/Lde8xfgSOdMxvOixZf/9p3+M4hT1+F+zApxg9XfUvYjc8qX2lfOOpK2gNRtB4flpFu9FTKCp2XJRgXnX6olp1zyYjTKJSkGmLE2NjUr1bxFM4AeAAHBUFIeSLqXR+NvH/M9fOnfHzOD2vCSyQJKzfgsCh+yi/Mmc35F2fUrw7miW33W9hBD1vpuUojFphIyvg7aTeoymDkIkeW3XLHmguMzbIAJejN6B5MDrhipE2y6SoFRO/AK/AcHHZHNIfiWrEe/C6cr3f/yOvrQKB+zMM55/GQdLDsR+ifr5Fiuu+/y+M78LzOE5dsNuXC3PYvYWd8NXvphLSkJIasrlD2/HOqQ+RjcRdjKTGWYhhVUm4yxlyiGPuMsZR7sMCHUBeTuNWA7if+ifXgc/hovftHXs/DV+Fvwe+f8shzMiMcweFgBly3//vwJfg5AN4450fn1Hd1Rm1aBLu22Dy3y3H2+OqMemkbGZ4jozcDjJf6596xOLpC0eMTHbKnxLxH27uZ/bMTGs2jOaMOY4m87CfQwF0dw53oa1k80JRuz/XgS+8fX3N9Af4qPIMfzKgCp4H5TDGe9GGeFPzSsZz80SlPTxXjgwJmC45njzgt2vbQ4b4OAdUK4/vWhO8d8v6EE8fMUsfakXbPpFJeLs2ubM/qdm/la3WP91uWhxXHjoWhyRUq2iJ/+5mA73zwIIo+LoZ/SgvIRjAd1IMvvn98PfgOvAJfhhm8scAKVWDuaRaK8aQ9f7vuPDH6Bj47ZXau7rqYJ66mTDwEDU6lLbCjCK0qTXyl5mnDoeNRxanj3FJbaksTk0faXxHxLrssgPkWB9LnA/MFleXcJozzjwsUvUG0X/QCve51qkMDXp9mtcyOy3rwBfdvVJK7D6/ACSzg3RoruIq5UDeESfEmVclDxnniU82vxMLtceD0hGZWzBNPMM/jSPne2OVatiTKUpY5vY7gc0LdUAWeWM5tH+O2I66AOWw9xT2BuyRVLGdoDHUsVRXOo/c+ZdRXvFfnxWyIV4upFLCl9eAL7h8Zv0QH8Ry8pA2cHzQpGesctVA37ZtklBTgHjyvdSeKY/RZw/kJMk0Y25cSNRWSigQtlULPTw+kzuJPeYEkXjQRpoGZobYsLF79pyd1dMRHInbgFTZqNLhDqiIsTNpoex2WLcy0/X6rHcdMMQvFSd5dWA++4P7xv89deACnmr36uGlL69bRCL6BSZsS6c0TU2TKK5gtWCzgAOOwQcurqk9j8whvziZSMLcq5hbuwBEsYjopUBkqw1yYBGpLA97SRElEmx5MCInBY5vgLk94iKqSWmhIGmkJ4Bi9m4L645J68LyY4wsFYBfUg5feP/6gWWm58IEmKQM89hq7KsZNaKtP5TxxrUZZVkNmMJtjbKrGxLNEbHPJxhqy7lAmbC32ZqeF6lTaknRWcYaFpfLUBh/rwaQycCCJmW15Kstv6jRHyJFry2C1ahkkIW0LO75s61+owxK1y3XqweX9m5YLM2DPFeOjn/iiqCKJ+yKXF8t5Yl/kNsqaSCryxPq5xWTFIaP8KSW0RYxqupaUf0RcTNSSdJZGcKYdYA6kdtrtmyBckfKXwqk0pHpUHlwWaffjNRBYFPUDWa8e3Lt/o0R0CdisKDM89cX0pvRHEfM8ca4t0s2Xx4kgo91MPQJ/0c9MQYq0co8MBh7bz1fio0UUHLR4aAIOvOmoYO6kwlEVODSSTliWtOtH6sPkrtctF9ZtJ9GIerBskvhdVS5cFNv9s1BU0AbdUgdK4FG+dRnjFmDTzniRMdZO1QhzMK355vigbdkpz9P6qjUGE5J2qAcXmwJ20cZUiAD0z+pGMx6xkzJkmEf40Hr4qZfVg2XzF9YOyoV5BjzVkUJngKf8lgNYwKECEHrCNDrWZzMlflS3yBhr/InyoUgBc/lKT4pxVrrC6g1YwcceK3BmNxZcAtz3j5EIpqguh9H6wc011YN75cKDLpFDxuwkrPQmUwW4KTbj9mZTwBwLq4aQMUZbHm1rylJ46dzR0dua2n3RYCWZsiHROeywyJGR7mXKlpryyCiouY56sFkBWEnkEB/raeh/Sw4162KeuAxMQpEkzy5alMY5wamMsWKKrtW2WpEWNnReZWONKWjrdsKZarpFjqCslq773PLmEhM448Pc3+FKr1+94vv/rfw4tEcu+lKTBe4kZSdijBrykwv9vbCMPcLQTygBjzVckSLPRVGslqdunwJ4oegtFOYb4SwxNgWLCmD7T9kVjTv5YDgpo0XBmN34Z/rEHp0sgyz7lngsrm4lvMm2Mr1zNOJYJ5cuxuQxwMGJq/TP5emlb8fsQBZviK4t8hFL+zbhtlpwaRSxQRWfeETjuauPsdGxsBVdO7nmP4xvzSoT29pRl7kGqz+k26B3Oy0YNV+SXbbQas1ctC/GarskRdFpKczVAF1ZXnLcpaMuzVe6lZ2g/1ndcvOVgRG3sdUAY1bKD6achijMPdMxV4muKVorSpiDHituH7rSTs7n/4y5DhRXo4FVBN4vO/zbAcxhENzGbHCzU/98Mcx5e7a31kWjw9FCe/zNeYyQjZsWb1uc7U33pN4Mji6hCLhivqfa9Ss6xLg031AgfesA/l99m9fgvnaF9JoE6bYKmkGNK3aPbHB96w3+DnxFm4hs0drLsk7U8kf/N/CvwQNtllna0rjq61sH8L80HAuvwH1tvBy2ChqWSCaYTaGN19sTvlfzFD6n+iKTbvtayfrfe9ueWh6GJFoxLdr7V72a5ZpvHcCPDzma0wTO4EgbLyedxstO81n57LYBOBzyfsOhUKsW1J1BB5vr/tz8RyqOFylQP9Tvst2JALsC5lsH8PyQ40DV4ANzYa4dedNiKNR1s+x2wwbR7q4/4cTxqEk4LWDebfisuo36JXLiWFjOtLrlNWh3K1rRS4xvHcDNlFnNmWBBAl5SWaL3oPOfnvbr5pdjVnEaeBJSYjuLEkyLLsWhKccadmOphZkOPgVdalj2QpSmfOsADhMWE2ZBu4+EEJI4wKTAuCoC4xwQbWXBltpxbjkXJtKxxabo9e7tyhlgb6gNlSbUpMh+l/FaqzVwewGu8BW1Zx7pTpQDJUjb8tsUTW6+GDXbMn3mLbXlXJiGdggxFAoUrtPS3wE4Nk02UZG2OOzlk7fRs7i95QCLo3E0jtrjnM7SR3uS1p4qtS2nJ5OwtQVHgOvArLBFijZUV9QtSl8dAY5d0E0hM0w3HS2DpIeB6m/A1+HfhJcGUq4sOxH+x3f5+VO+Ds9rYNI7zPXOYWPrtf8bYMx6fuOAX5jzNR0PdsuON+X1f7EERxMJJoU6GkTEWBvVolVlb5lh3tKCg6Wx1IbaMDdJ+9sUCc5KC46hKGCk3IVOS4TCqdBNfUs7Kd4iXf2RjnT/LLysJy3XDcHLh/vde3x8DoGvwgsa67vBk91G5Pe/HbOe7xwym0NXbtiuuDkGO2IJDh9oQvJ4cY4vdoqLDuoH9Zl2F/ofsekn8lkuhIlhQcffUtSjytFyp++p6NiE7Rqx/lodgKVoceEp/CP4FfjrquZaTtj2AvH5K/ywpn7M34K/SsoYDAdIN448I1/0/wveW289T1/lX5xBzc8N5IaHr0XMOQdHsIkDuJFifj20pBm5jzwUv9e2FhwRsvhAbalCIuIw3bhJihY3p6nTFFIZgiSYjfTf3aXuOjmeGn4bPoGvwl+CFzTRczBIuHBEeImHc37/lGfwZR0cXzVDOvaKfNHvwe+suZ771K/y/XcBlsoN996JpBhoE2toYxOznNEOS5TJc6Id5GEXLjrWo+LEWGNpPDU4WAwsIRROu+1vM+0oW37z/MBN9kqHnSArwPfgFJ7Cq/Ai3Ie7g7ncmI09v8sjzw9mzOAEXoIHxURueaAce5V80f/DOuuZwHM8vsMb5wBzOFWM7wymTXPAEvm4vcFpZ2ut0VZRjkiP2MlmLd6DIpbGSiHOjdnUHN90hRYmhTnmvhzp1iKDNj+b7t5hi79lWGwQ+HN9RsfFMy0FXbEwhfuczKgCbyxYwBmcFhhvo/7a44v+i3XWcwDP86PzpGQYdWh7csP5dBvZ1jNzdxC8pBGuxqSW5vw40nBpj5JhMwvOzN0RWqERHMr4Lv1kWX84xLR830G3j6yqZ1a8UstTlW+qJPOZ+sZ7xZPKTJLhiNOAFd6tk+jrTH31ncLOxid8+nzRb128HhUcru/y0Wn6iT254YPC6FtVSIMoW2sk727AhvTtrWKZTvgsmckfXYZWeNRXx/3YQ2OUxLDrbHtN11IwrgXT6c8dATDwLniYwxzO4RzuQqTKSC5gAofMZ1QBK3zQ4JWobFbcvJm87FK+6JXrKahLn54m3p+McXzzYtP8VF/QpJuh1OwieElEoI1pRxPS09FBrkq2tWCU59+HdhNtTIqKm8EBrw2RTOEDpG3IKo2Y7mFdLm3ZeVjYwVw11o/oznceMve4CgMfNym/utA/d/ILMR7gpXzRy9eDsgLcgbs8O2Va1L0zzIdwGGemTBuwROHeoMShkUc7P+ISY3KH5ZZeWqO8mFTxQYeXTNuzvvK5FGPdQfuu00DwYFY9dyhctEt+OJDdnucfpmyhzUJzfsJjr29l8S0bXBfwRS9ZT26tmMIdZucch5ZboMz3Nio3nIOsYHCGoDT4kUA9MiXEp9Xsui1S8th/kbWIrMBxDGLodWUQIWcvnXy+9M23xPiSMOiRPqM+YMXkUN3gXFrZJwXGzUaMpJfyRS9ZT0lPe8TpScuRlbMHeUmlaKDoNuy62iWNTWNFYjoxFzuJs8oR+RhRx7O4SVNSXpa0ZJQ0K1LAHDQ+D9IepkMXpcsq5EVCvClBUIzDhDoyKwDw1Lc59GbTeORivugw1IcuaEOaGWdNm+Ps5fQ7/tm0DjMegq3yM3vb5j12qUId5UZD2oxDSEWOZMSqFl/W+5oynWDa/aI04tJRQ2eTXusg86SQVu/nwSYwpW6wLjlqIzwLuxGIvoAvul0PS+ZNz0/akp/pniO/8JDnGyaCkzbhl6YcqmK/69prxPqtpx2+Km9al9sjL+rwMgHw4jE/C8/HQ3m1vBuL1fldbzd8mOueVJ92syqdEY4KJjSCde3mcRw2TA6szxedn+zwhZMps0XrqEsiUjnC1hw0TELC2Ek7uAAdzcheXv1BYLagspxpzSAoZZUsIzIq35MnFQ9DOrlNB30jq3L4pkhccKUAA8/ocvN1Rzx9QyOtERs4CVsJRK/DF71kPYrxYsGsm6RMh4cps5g1DOmM54Ly1ii0Hd3Y/BMk8VWFgBVmhqrkJCPBHAolwZaWzLR9Vb7bcWdX9NyUYE+uB2BKfuaeBUcjDljbYVY4DdtsVWvzRZdWnyUzDpjNl1Du3aloAjVJTNDpcIOVVhrHFF66lLfJL1zJr9PQ2nFJSBaKoDe+sAvLufZVHVzYh7W0h/c6AAZ+7Tvj6q9j68G/cTCS/3n1vLKHZwNi+P+pS0WkZNMBMUl+LDLuiE4omZy71r3UFMwNJV+VJ/GC5ixVUkBStsT4gGKh0Gm4Oy3qvq7Lbmq24nPdDuDR9deR11XzP4vFu3TYzfnIyiSVmgizUYGqkIXNdKTY9pgb9D2Ix5t0+NHkVzCdU03suWkkVZAoCONCn0T35gAeW38de43mf97sMOpSvj4aa1KYUm58USI7Wxxes03bAZdRzk6UtbzMaCQ6IxO0dy7X+XsjoD16hpsBeGz9dfzHj+R/Hp8nCxZRqkEDTaCKCSywjiaoMJ1TITE9eg7Jqnq8HL6gDwiZb0u0V0Rr/rmvqjxKuaLCX7ZWXTvAY+uvm3z8CP7nzVpngqrJpZKwWnCUjIviYVlirlGOzPLI3SMVyp/elvBUjjDkNhrtufFFErQ8pmdSlbK16toBHlt/HV8uHMX/vEGALkV3RJREiSlopxwdMXOZPLZ+ix+kAHpMKIk8UtE1ygtquttwxNhphrIZ1IBzjGF3IIGxGcBj6q8bHJBG8T9vdsoWrTFEuebEZuVxhhClH6P5Zo89OG9fwHNjtNQTpD0TG9PJLEYqvEY6Rlxy+ZZGfL0Aj62/bnQCXp//eeM4KzfQVJbgMQbUjlMFIm6TpcfWlZje7NBSV6IsEVmumWIbjiloUzQX9OzYdo8L1wjw2PrrpimONfmfNyzKklrgnEkSzT5QWYQW40YShyzqsRmMXbvVxKtGuYyMKaU1ugenLDm5Ily4iT14fP11Mx+xJv+zZ3MvnfdFqxU3a1W/FTB4m3Qfsyc1XUcdVhDeUDZXSFHHLQj/Y5jtC7ZqM0CXGwB4bP11i3LhOvzPGygYtiUBiwQV/4wFO0majijGsafHyRLu0yG6q35cL1rOpVxr2s5cM2jJYMCdc10Aj6q/blRpWJ//+dmm5psMl0KA2+AFRx9jMe2WbC4jQxnikd4DU8TwUjRVacgdlhmr3bpddzuJ9zXqr2xnxJfzP29RexdtjDVZqzkqa6PyvcojGrfkXiJ8SEtml/nYskicv0ivlxbqjemwUjMw5evdg8fUX9nOiC/lf94Q2i7MURk9nW1MSj5j8eAyV6y5CN2S6qbnw3vdA1Iwq+XOSCl663udN3IzLnrt+us25cI1+Z83SXQUldqQq0b5XOT17bGpLd6ssN1VMPf8c+jG8L3NeCnMdF+Ra3fRa9dft39/LuZ/3vwHoHrqGmQFafmiQw6eyzMxS05K4bL9uA+SKUQzCnSDkqOGokXyJvbgJ/BHI+qvY69//4rl20NsmK2ou2dTsyIALv/91/8n3P2Aao71WFGi8KKv1fRC5+J67Q/507/E/SOshqN5TsmYIjVt+kcjAx98iz/4SaojbIV1rexE7/C29HcYD/DX4a0rBOF5VTu7omsb11L/AWcVlcVZHSsqGuXLLp9ha8I//w3Mv+T4Ew7nTBsmgapoCrNFObIcN4pf/Ob/mrvHTGqqgAupL8qWjWPS9m/31jAe4DjA+4+uCoQoT/zOzlrNd3qd4SdphFxsUvYwGWbTWtISc3wNOWH+kHBMfc6kpmpwPgHWwqaSUG2ZWWheYOGQGaHB+eQ/kn6b3pOgLV+ODSn94wDvr8Bvb70/LLuiPPEr8OGVWfDmr45PZyccEmsVXZGe1pRNX9SU5+AVQkNTIVPCHF/jGmyDC9j4R9LfWcQvfiETmgMMUCMN1uNCakkweZsowdYobiMSlnKA93u7NzTXlSfe+SVbfnPQXmg9LpYAQxpwEtONyEyaueWM4FPjjyjG3uOaFmBTWDNgBXGEiQpsaWhnAqIijB07Dlsy3fUGeP989xbWkyf+FF2SNEtT1E0f4DYYVlxFlbaSMPIRMk/3iMU5pME2SIWJvjckciebkQuIRRyhUvkHg/iUljG5kzVog5hV7vIlCuBrmlhvgPfNHQM8lCf+FEGsYbMIBC0qC9a0uuy2wLXVbLBaP5kjHokCRxapkQyzI4QEcwgYHRZBp+XEFTqXFuNVzMtjXLJgX4gAid24Hjwc4N3dtVSe+NNiwTrzH4WVUOlDobUqr1FuAgYllc8pmzoVrELRHSIW8ViPxNy4xwjBpyR55I6J220qQTZYR4guvUICJiSpr9gFFle4RcF/OMB7BRiX8sSfhpNSO3lvEZCQfLUVTKT78Ek1LRLhWN+yLyTnp8qWUZ46b6vxdRGXfHVqx3eI75YaLa4iNNiK4NOW7wPW6lhbSOF9/M9qw8e/aoB3d156qTzxp8pXx5BKAsYSTOIIiPkp68GmTq7sZtvyzBQaRLNxIZ+paozHWoLFeExIhRBrWitHCAHrCF7/thhD8JhYz84wg93QRV88wLuLY8zF8sQ36qF1J455bOlgnELfshKVxYOXKVuKx0jaj22sczTQqPqtV/XDgpswmGTWWMSDw3ssyUunLLrVPGjYRsH5ggHeHSWiV8kT33ycFSfMgkoOK8apCye0J6VW6GOYvffgU9RWsukEi2kUV2nl4dOYUzRik9p7bcA4ggdJ53LxKcEe17B1R8eqAd7dOepV8sTXf5lhejoL85hUdhDdknPtKHFhljOT+bdq0hxbm35p2nc8+Ja1Iw+tJykgp0EWuAAZYwMVwac5KzYMslhvgHdHRrxKnvhTYcfKsxTxtTETkjHO7rr3zjoV25lAQHrqpV7bTiy2aXMmUhTBnKS91jhtR3GEoF0oLnWhWNnYgtcc4N0FxlcgT7yz3TgNIKkscx9jtV1ZKpWW+Ub1tc1eOv5ucdgpx+FJy9pgbLE7xDyXb/f+hLHVGeitHOi6A7ybo3sF8sS7w7cgdk0nJaOn3hLj3uyD0Zp5pazFIUXUpuTTU18d1EPkDoX8SkmWTnVIozEdbTcZjoqxhNHf1JrSS/AcvHjZ/SMHhL/7i5z+POsTUh/8BvNfYMTA8n+yU/MlTZxSJDRStqvEuLQKWwDctMTQogUDyQRoTQG5Kc6oQRE1yV1jCA7ri7jdZyK0sYTRjCR0Hnnd+y7nHxNgTULqw+8wj0mQKxpYvhjm9uSUxg+TTy7s2GtLUGcywhXSKZN275GsqlclX90J6bRI1aouxmgL7Q0Nen5ziM80SqMIo8cSOo+8XplT/5DHNWsSUr/6lLN/QQ3rDyzLruEW5enpf7KqZoShEduuSFOV7DLX7Ye+GmXb6/hnNNqKsVXuMDFpb9Y9eH3C6NGEzuOuI3gpMH/I6e+zDiH1fXi15t3vA1czsLws0TGEtmPEJdiiFPwlwKbgLHAFk4P6ZyPdymYYHGE0dutsChQBl2JcBFlrEkY/N5bQeXQ18gjunuMfMfsBlxJSx3niO485fwO4fGD5T/+3fPQqkneWVdwnw/3bMPkW9Wbqg+iC765Zk+xcT98ibKZc2EdgHcLoF8cSOo/Oc8fS+OyEULF4g4sJqXVcmfMfsc7A8v1/yfGXmL9I6Fn5pRwZhsPv0TxFNlAfZCvG+Oohi82UC5f/2IsJo0cTOm9YrDoKhFPEUr/LBYTUNht9zelHXDqwfPCIw4owp3mOcIQcLttWXFe3VZ/j5H3cIc0G6oPbCR+6Y2xF2EC5cGUm6wKC5tGEzhsWqw5hNidUiKX5gFWE1GXh4/Qplw4sVzOmx9QxU78g3EF6wnZlEN4FzJ1QPSLEZz1KfXC7vd8ssGdIbNUYpVx4UapyFUHzJoTOo1McSkeNn1M5MDQfs4qQuhhX5vQZFw8suwWTcyYTgioISk2YdmkhehG4PkE7w51inyAGGaU+uCXADabGzJR1fn3lwkty0asIo8cROm9Vy1g0yDxxtPvHDAmpu+PKnM8Ix1wwsGw91YJqhteaWgjYBmmQiebmSpwKKzE19hx7jkzSWOm66oPbzZ8Yj6kxVSpYjVAuvLzYMCRo3oTQecOOjjgi3NQ4l9K5/hOGhNTdcWVOTrlgYNkEXINbpCkBRyqhp+LdRB3g0OU6rMfW2HPCFFMV9nSp+uB2woepdbLBuJQyaw/ZFysXrlXwHxI0b0LovEkiOpXGA1Ijagf+KUNC6rKNa9bQnLFqYNkEnMc1uJrg2u64ELPBHpkgWbmwKpJoDhMwNbbGzAp7Yg31wS2T5rGtzit59PrKhesWG550CZpHEzpv2NGRaxlNjbMqpmEIzygJqQfjypycs2pg2cS2RY9r8HUqkqdEgKTWtWTKoRvOBPDYBltja2SO0RGjy9UHtxwRjA11ujbKF+ti5cIR9eCnxUg6owidtyoU5tK4NLji5Q3HCtiyF2IqLGYsHViOXTXOYxucDqG0HyttqYAKqYo3KTY1ekyDXRAm2AWh9JmsVh/ccg9WJ2E8YjG201sPq5ULxxX8n3XLXuMInbft2mk80rRGjCGctJ8/GFdmEQ9Ug4FlE1ll1Y7jtiraqm5Fe04VV8lvSVBL8hiPrfFVd8+7QH3Qbu2ipTVi8cvSGivc9cj8yvH11YMHdNSERtuOslM97feYFOPKzGcsI4zW0YGAbTAOaxCnxdfiYUmVWslxiIblCeAYr9VYR1gM7GmoPrilunSxxeT3DN/2eBQ9H11+nk1adn6VK71+5+Jfct4/el10/7KBZfNryUunWSCPxPECk1rdOv1WVSrQmpC+Tl46YD3ikQYcpunSQgzVB2VHFhxHVGKDgMEY5GLlQnP7FMDzw7IacAWnO6sBr12u+XanW2AO0wQ8pknnFhsL7KYIqhkEPmEXFkwaN5KQphbkUmG72wgw7WSm9RiL9QT925hkjiVIIhphFS9HKI6/8QAjlpXqg9W2C0apyaVDwKQwrwLY3j6ADR13ZyUNByQXHQu6RY09Hu6zMqXRaNZGS/KEJs0cJEe9VH1QdvBSJv9h09eiRmy0V2uJcqHcShcdvbSNg5fxkenkVprXM9rDVnX24/y9MVtncvbKY706anNl3ASll9a43UiacVquXGhvq4s2FP62NGKfQLIQYu9q1WmdMfmUrDGt8eDS0cXozH/fjmUH6Jruvm50hBDSaEU/2Ru2LEN/dl006TSc/g7tfJERxGMsgDUEr104pfWH9lQaN+M4KWQjwZbVc2rZVNHsyHal23wZtIs2JJqtIc/WLXXRFCpJkfE9jvWlfFbsNQ9pP5ZBS0zKh4R0aMFj1IjTcTnvi0Zz2rt7NdvQb2mgbju1plsH8MmbnEk7KbK0b+wC2iy3aX3szW8xeZvDwET6hWZYwqTXSSG+wMETKum0Dq/q+x62gt2ua2ppAo309TRk9TPazfV3qL9H8z7uhGqGqxNVg/FKx0HBl9OVUORn8Q8Jx9gFttGQUDr3tzcXX9xGgN0EpzN9mdZ3GATtPhL+CjxFDmkeEU6x56kqZRusLzALXVqkCN7zMEcqwjmywDQ6OhyUe0Xao1Qpyncrg6wKp9XfWDsaZplElvQ/b3sdweeghorwBDlHzgk1JmMc/wiERICVy2VJFdMjFuLQSp3S0W3+sngt2njwNgLssFGVQdJ0tu0KH4ky1LW4yrbkuaA6Iy9oz/qEMMXMMDWyIHhsAyFZc2peV9hc7kiKvfULxCl9iddfRK1f8kk9qvbdOoBtOg7ZkOZ5MsGrSHsokgLXUp9y88smniwWyuFSIRVmjplga3yD8Uij5QS1ZiM4U3Qw5QlSm2bXjFe6jzzBFtpg+/YBbLAWG7OPynNjlCw65fukGNdkJRf7yM1fOxVzbxOJVocFoYIaGwH22mIQkrvu1E2nGuebxIgW9U9TSiukPGU+Lt++c3DJPKhyhEEbXCQLUpae2exiKy6tMPe9mDRBFCEMTWrtwxN8qvuGnt6MoihKWS5NSyBhbH8StXoAz8PLOrRgLtOT/+4vcu+7vDLnqNvztOq7fmd8sMmY9Xzn1zj8Dq8+XVdu2Nv0IIySgEdQo3xVHps3Q5i3fLFsV4aiqzAiBhbgMDEd1uh8qZZ+lwhjkgokkOIv4xNJmyncdfUUzgB4oFMBtiu71Xumpz/P+cfUP+SlwFExwWW62r7b+LSPxqxn/gvMZ5z9C16t15UbNlq+jbGJtco7p8wbYlL4alSyfWdeuu0j7JA3JFNuVAwtst7F7FhWBbPFNKIUORndWtLraFLmMu7KFVDDOzqkeaiN33YAW/r76wR4XDN/yN1z7hejPau06EddkS/6XThfcz1fI/4K736fO48vlxt2PXJYFaeUkFS8U15XE3428xdtn2kc8GQlf1vkIaNRRnOMvLTWrZbElEHeLWi1o0dlKPAh1MVgbbVquPJ5+Cr8LU5/H/+I2QlHIU2ClXM9G8v7Rr7oc/hozfUUgsPnb3D+I+7WF8kNO92GY0SNvuxiE+2Bt8prVJTkzE64sfOstxuwfxUUoyk8VjcTlsqe2qITSFoSj6Epd4KsT6BZOWmtgE3hBfir8IzZDwgV4ZTZvD8VvPHERo8v+vL1DASHTz/i9OlKueHDjK5Rnx/JB1Vb1ioXdBra16dmt7dgik10yA/FwJSVY6XjA3oy4SqM2frqDPPSRMex9qs3XQtoWxMj7/Er8GWYsXgjaVz4OYumP2+9kbxvny/6kvWsEBw+fcb5bInc8APdhpOSs01tEqIkoiZjbAqKMruLbJYddHuHFRIyJcbdEdbl2sVLaySygunutBg96Y2/JjKRCdyHV+AEFtTvIpbKIXOamknYSiB6KV/0JetZITgcjjk5ZdaskBtWO86UF0ap6ozGXJk2WNiRUlCPFir66lzdm/SLSuK7EUdPz8f1z29Skq6F1fXg8+5UVR6bszncP4Tn4KUkkdJ8UFCY1zR1i8RmL/qQL3rlei4THG7OODlnKko4oI01kd3CaM08Ia18kC3GNoVaO9iDh+hWxSyTXFABXoau7Q6q9OxYg/OVEMw6jdbtSrJ9cBcewGmaZmg+bvkUnUUaGr+ZfnMH45Ivevl61hMcXsxYLFTu1hTm2zViCp7u0o5l+2PSUh9bDj6FgYypufBDhqK2+oXkiuHFHR3zfj+9PtA8oR0xnqX8qn+sx3bFODSbbF0X8EUvWQ8jBIcjo5bRmLOljDNtcqNtOe756h3l0VhKa9hDd2l1eqmsnh0MNMT/Cqnx6BInumhLT8luljzQ53RiJeA/0dxe5NK0o2fA1+GLXr6eNQWHNUOJssQaTRlGpLHKL9fD+IrQzTOMZS9fNQD4AnRNVxvTdjC+fJdcDDWQcyB00B0t9BDwTxXgaAfzDZ/DBXzRnfWMFRwuNqocOmX6OKNkY63h5n/fFcB28McVHqnXZVI27K0i4rDLNE9lDKV/rT+udVbD8dFFu2GGZ8mOt0kAXcoX3ZkIWVtw+MNf5NjR2FbivROHmhV1/pj2egv/fMGIOWTIWrV3Av8N9imV9IWml36H6cUjqEWNv9aNc+veb2sH46PRaHSuMBxvtW+twxctq0z+QsHhux8Q7rCY4Ct8lqsx7c6Sy0dl5T89rIeEuZKoVctIk1hNpfavER6yyH1Vvm3MbsUHy4ab4hWr/OZPcsRBphnaV65/ZcdYPNNwsjN/djlf9NqCw9U5ExCPcdhKxUgLSmfROpLp4WSUr8ojdwbncbvCf+a/YzRaEc6QOvXcGO256TXc5Lab9POvB+AWY7PigWYjzhifbovuunzRawsO24ZqQQAqguBtmpmPB7ysXJfyDDaV/aPGillgz1MdQg4u5MYaEtBNNHFjkRlSpd65lp4hd2AVPTfbV7FGpyIOfmNc/XVsPfg7vzaS/3nkvLL593ANLvMuRMGpQIhiF7kUEW9QDpAUbTWYBcbp4WpacHHY1aacqQyjGZS9HI3yCBT9kUZJhVOD+zUDvEH9ddR11fzPcTDQ5TlgB0KwqdXSavk9BC0pKp0WmcuowSw07VXmXC5guzSa4p0UvRw2lbDiYUx0ExJJRzWzi6Gm8cnEkfXXsdcG/M/jAJa0+bmCgdmQ9CYlNlSYZOKixmRsgiFxkrmW4l3KdFKv1DM8tk6WxPYJZhUUzcd8Kdtgrw/gkfXXDT7+avmfVak32qhtkg6NVdUS5wgkru1YzIkSduTW1FDwVWV3JQVJVuieTc0y4iDpFwc7/BvSalvKdQM8sv662cevz/+8sQVnjVAT0W2wLllw1JiMhJRxgDjCjLQsOzSFSgZqx7lAW1JW0e03yAD3asC+GD3NbQhbe+mN5GXH1F83KDOM4n/e5JIuH4NpdQARrFPBVptUNcjj4cVMcFSRTE2NpR1LEYbYMmfWpXgP9KejaPsLUhuvLCsVXznAG9dfx9SR1ud/3hZdCLHb1GMdPqRJgqDmm76mHbvOXDtiO2QPUcKo/TWkQ0i2JFXpBoo7vij1i1Lp3ADAo+qvG3V0rM//vFnnTE4hxd5Ka/Cor5YEdsLVJyKtDgVoHgtW11pWSjolPNMnrlrVj9Fv2Qn60twMwKPqr+N/wvr8z5tZcDsDrv06tkqyzESM85Ycv6XBWA2birlNCXrI6VbD2lx2L0vQO0QVTVVLH4SE67fgsfVXv8n7sz7/85Z7cMtbE6f088wSaR4kCkCm10s6pKbJhfqiUNGLq+0gLWC6eUAZFPnLjwqtKd8EwGvWX59t7iPW4X/eAN1svgRVSY990YZg06BD1ohLMtyFTI4pKTJsS9xREq9EOaPWiO2gpms7397x6nQJkbh+Fz2q/rqRROX6/M8bJrqlVW4l6JEptKeUFuMYUbtCQ7CIttpGc6MY93x1r1vgAnRXvY5cvwWPqb9uWQm+lP95QxdNMeWhOq1x0Db55C7GcUv2ZUuN6n8iKzsvOxibC//Yfs9Na8r2Rlz02vXXDT57FP/zJi66/EJSmsJKa8QxnoqW3VLQ+jZVUtJwJ8PNX1NQCwfNgdhhHD9on7PdRdrdGPF28rJr1F+3LBdeyv+8yYfLoMYet1vX4upNAjVvwOUWnlNXJXlkzk5Il6kqeoiL0C07qno+/CYBXq/+utlnsz7/Mzvy0tmI4zm4ag23PRN3t/CWryoUVJGm+5+K8RJ0V8Hc88/XHUX/HfiAq7t+BH+x6v8t438enWmdJwFA6ZINriLGKv/95f8lT9/FnyA1NMVEvQyaXuu+gz36f/DD73E4pwqpLcvm/o0Vle78n//+L/NPvoefp1pTJye6e4A/D082FERa5/opeH9zpvh13cNm19/4v/LDe5xMWTi8I0Ta0qKlK27AS/v3/r+/x/2GO9K2c7kVMonDpq7//jc5PKCxeNPpFVzaRr01wF8C4Pu76hXuX18H4LduTr79guuFD3n5BHfI+ZRFhY8w29TYhbbLi/bvBdqKE4fUgg1pBKnV3FEaCWOWyA+m3WpORZr/j+9TKJtW8yBTF2/ZEODI9/QavHkVdGFp/Pjn4Q+u5hXapsP5sOH+OXXA1LiKuqJxiMNbhTkbdJTCy4llEt6NnqRT4dhg1V3nbdrm6dYMecA1yTOL4PWTE9L5VzPFlLBCvlG58AhehnN4uHsAYinyJ+AZ/NkVvELbfOBUuOO5syBIEtiqHU1k9XeISX5bsimrkUUhnGDxourN8SgUsCZVtKyGbyGzHXdjOhsAvOAswSRyIBddRdEZWP6GZhNK/yjwew9ehBo+3jEADu7Ay2n8mDc+TS7awUHg0OMzR0LABhqLD4hJEh/BEGyBdGlSJoXYXtr+3HS4ijzVpgi0paWXtdruGTknXBz+11qT1Q2inxaTzQCO46P3lfLpyS4fou2PH/PupwZgCxNhGlj4IvUuWEsTkqMWm6i4xCSMc9N1RDQoCVcuGItJ/MRWefais+3synowi/dESgJjkilnWnBTGvRWmaw8oR15257t7CHmCf8HOn7cwI8+NQBXMBEmAa8PMRemrNCEhLGEhDQKcGZWS319BX9PFBEwGTbRBhLbDcaV3drFcDqk5kCTd2JF1Wp0HraqBx8U0wwBTnbpCadwBA/gTH/CDrcCs93LV8E0YlmmcyQRQnjBa8JESmGUfIjK/7fkaDJpmD2QptFNVJU1bbtIAjjWQizepOKptRjbzR9Kag6xZmMLLjHOtcLT3Tx9o/0EcTT1XN3E45u24AiwEypDJXihKjQxjLprEwcmRKclaDNZCVqr/V8mYWyFADbusiY5hvgFoU2vio49RgJLn5OsReRFN6tabeetiiy0V7KFHT3HyZLx491u95sn4K1QQSPKM9hNT0wMVvAWbzDSVdrKw4zRjZMyJIHkfq1VAVCDl/bUhNKlGq0zGr05+YAceXVPCttVk0oqjVwMPt+BBefx4yPtGVkUsqY3CHDPiCM5ngupUwCdbkpd8kbPrCWHhkmtIKLEetF2499eS1jZlIPGYnlcPXeM2KD9vLS0bW3ktYNqUllpKLn5ZrsxlIzxvDu5eHxzGLctkZLEY4PgSOg2IUVVcUONzUDBEpRaMoXNmUc0tFZrTZquiLyKxrSm3DvIW9Fil+AkhXu5PhEPx9mUNwqypDvZWdKlhIJQY7vn2OsnmBeOWnYZ0m1iwbbw1U60by5om47iHRV6fOgzjMf/DAZrlP40Z7syxpLK0lJ0gqaAK1c2KQKu7tabTXkLFz0sCftuwX++MyNeNn68k5Buq23YQhUh0SNTJa1ioQ0p4nUG2y0XilF1JqODqdImloPS4Bp111DEWT0jJjVv95uX9BBV7eB3bUWcu0acSVM23YZdd8R8UbQUxJ9wdu3oMuhdt929ME+mh6JXJ8di2RxbTi6TbrDquqV4aUKR2iwT6aZbyOwEXN3DUsWr8Hn4EhwNyHuXHh7/pdaUjtR7vnDh/d8c9xD/s5f501eQ1+CuDiCvGhk1AN/4Tf74RfxPwD3toLarR0zNtsnPzmS64KIRk861dMWCU8ArasG9T9H0ZBpsDGnjtAOM2+/LuIb2iIUGXNgl5ZmKD/Tw8TlaAuihaFP5yrw18v4x1898zIdP+DDAX1bM3GAMvPgRP/cJn3zCW013nrhHkrITyvYuwOUkcHuKlRSW5C6rzIdY4ppnF7J8aAJbQepgbJYBjCY9usGXDKQxq7RZfh9eg5d1UHMVATRaD/4BHK93/1iAgYZ/+jqPn8Dn4UExmWrpa3+ZOK6MvM3bjwfzxNWA2dhs8+51XHSPJiaAhGSpWevEs5xHLXcEGFXYiCONySH3fPWq93JIsBiSWvWyc3CAN+EcXoT7rCSANloPPoa31rt/5PUA/gp8Q/jDD3hyrjzlR8VkanfOvB1XPubt17vzxAfdSVbD1pzAnfgyF3ycadOTOTXhpEUoLC1HZyNGW3dtmjeXgr2r56JNmRwdNNWaQVBddd6rh4MhviEB9EFRD/7RGvePvCbwAL4Mx/D6M541hHO4D3e7g6PafdcZVw689z7NGTwo5om7A8sPhccT6qKcl9NJl9aM/9kX+e59Hh1yPqGuCCZxuITcsmNaJ5F7d0q6J3H48TO1/+M57085q2icdu2U+W36Ldllz9Agiv4YGljoEN908EzvDOrBF98/vtJwCC/BF2AG75xxEmjmMIcjxbjoaxqOK3/4hPOZzhMPBpYPG44CM0dTVm1LjLtUWWVz1Bcf8tEx0zs8O2A2YVHRxKYOiy/aOVoAaMu0i7ubu43njjmd4ibMHU1sIDHaQNKrZND/FZYdk54oCXetjq7E7IVl9eAL7t+oHnwXXtLx44czzoRFHBztYVwtH1d+NOMkupZ5MTM+gUmq90X+Bh9zjRlmaQ+m7YMqUL/veemcecAtOJ0yq1JnVlN27di2E0+Klp1tAJ4KRw1eMI7aJjsO3R8kPSI3fUFXnIOfdQe86sIIVtWDL7h//Ok6vj8vwDk08NEcI8zz7OhBy+WwalzZeZ4+0XniRfst9pAJqQHDGLzVQ2pheZnnv1OWhwO43/AgcvAEXEVVpa4db9sGvNK8wjaENHkfFQ4Ci5i7dqnQlPoLQrHXZDvO3BIXZbJOBrOaEbML6sFL798I4FhKihjHMsPjBUZYCMFr6nvaArxqXPn4lCa+cHfSa2cP27g3Z3ziYTRrcbQNGLQmGF3F3cBdzzzX7AILx0IB9rbwn9kx2G1FW3Inic+ZLIsVvKR8Zwfj0l1fkqo8LWY1M3IX14OX3r9RKTIO+d9XzAI8qRPGPn/4NC2n6o4rN8XJ82TOIvuVA8zLKUHRFgBCetlDZlqR1gLKjS39xoE7Bt8UvA6BxuEDjU3tFsEijgA+615tmZkXKqiEENrh41iLDDZNq4pKTWR3LZfnos81LOuNa15cD956vLMsJd1rqYp51gDUQqMYm2XsxnUhD2jg1DM7SeuJxxgrmpfISSXVIJIS5qJJSvJPEQ49DQTVIbYWJ9QWa/E2+c/oPK1drmC7WSfJRNKBO5Yjvcp7Gc3dmmI/Xh1kDTEuiSnWqQf37h+fTMhGnDf6dsS8SQfQWlqqwXXGlc/PEZ/SC5mtzIV0nAshlQdM/LvUtYutrEZ/Y+EAFtq1k28zQhOwLr1AIeANzhF8t9qzTdZf2qRKO6MWE9ohBYwibbOmrFtNmg3mcS+tB28xv2uKd/agYCvOP+GkSc+0lr7RXzyufL7QbkUpjLjEWFLqOIkAGu2B0tNlO9Eau2W1qcOUvVRgKzypKIQZ5KI3q0MLzqTNRYqiZOqmtqloIRlmkBHVpHmRYV6/HixbO6UC47KOFJnoMrVyr7wYz+SlW6GUaghYbY1I6kkxA2W1fSJokUdSh2LQ1GAimRGm0MT+uu57H5l7QgOWxERpO9moLRPgTtquWCfFlGlIjQaRly9odmzMOWY+IBO5tB4sW/0+VWGUh32qYk79EidWKrjWuiLpiVNGFWFRJVktyeXWmbgBBzVl8anPuXyNJlBJOlKLTgAbi/EYHVHxWiDaVR06GnHQNpJcWcK2jJtiCfG2sEHLzuI66sGrMK47nPIInPnu799935aOK2cvmvubrE38ZzZjrELCmXM2hM7UcpXD2oC3+ECVp7xtIuxptJ0jUr3sBmBS47TVxlvJ1Sqb/E0uLdvLj0lLr29ypdd/eMX3f6lrxGlKwKQxEGvw0qHbkbwrF3uHKwVENbIV2wZ13kNEF6zD+x24aLNMfDTCbDPnEikZFyTNttxWBXDaBuM8KtI2rmaMdUY7cXcUPstqTGvBGSrFWIpNMfbdea990bvAOC1YX0qbc6smDS1mPxSJoW4fwEXvjMmhlijDRq6qale6aJEuFGoppYDoBELQzLBuh/mZNx7jkinv0EtnUp50lO9hbNK57lZaMAWuWR5Yo9/kYwcYI0t4gWM47Umnl3YmpeBPqSyNp3K7s2DSAS/39KRuEN2bS4xvowV3dFRMx/VFcp2Yp8w2nTO9hCXtHG1kF1L4KlrJr2wKfyq77R7MKpFKzWlY9UkhYxyHWW6nBWPaudvEAl3CGcNpSXPZ6R9BbBtIl6cHL3gIBi+42CYXqCx1gfGWe7Ap0h3luyXdt1MKy4YUT9xSF01G16YEdWsouW9mgDHd3veyA97H+Ya47ZmEbqMY72oPztCGvK0onL44AvgC49saZKkWRz4veWljE1FHjbRJaWv6ZKKtl875h4CziFCZhG5rx7tefsl0aRT1bMHZjm8dwL/6u7wCRysaQblQoG5yAQN5zpatMNY/+yf8z+GLcH/Qn0iX2W2oEfXP4GvwQHuIL9AYGnaO3zqAX6946nkgqZNnUhx43DIdQtMFeOPrgy/y3Yd85HlJWwjLFkU3kFwq28xPnuPhMWeS+tDLV9Otllq7pQCf3uXJDN9wFDiUTgefHaiYbdfi3b3u8+iY6TnzhgehI1LTe8lcd7s1wJSzKbahCRxKKztTLXstGAiu3a6rPuQs5pk9TWAan5f0BZmGf7Ylxzzk/A7PAs4QPPPAHeFQ2hbFHszlgZuKZsJcUmbDC40sEU403cEjczstOEypa+YxevL4QBC8oRYqWdK6b7sK25tfE+oDZgtOQ2Jg8T41HGcBE6fTWHn4JtHcu9S7uYgU5KSCkl/mcnq+5/YBXOEr6lCUCwOTOM1taOI8mSxx1NsCXBEmLKbMAg5MkwbLmpBaFOPrNSlO2HnLiEqW3tHEwd8AeiQLmn+2gxjC3k6AxREqvKcJbTEzlpLiw4rNZK6oJdidbMMGX9FULKr0AkW+2qDEPBNNm5QAt2Ik2nftNWHetubosHLo2nG4vQA7GkcVCgVCgaDixHqo9UUn1A6OshapaNR/LPRYFV8siT1cCtJE0k/3WtaNSuUZYKPnsVIW0xXWnMUxq5+En4Kvw/MqQmVXnAXj9Z+9zM98zM/Agy7F/qqj2Nh67b8HjFnPP3iBn/tkpdzwEJX/whIcQUXOaikeliCRGUk7tiwF0rItwMEhjkZ309hikFoRAmLTpEXWuHS6y+am/KB/fM50aLEhGnSMwkpxzOov4H0AvgovwJ1iGzDLtJn/9BU+fAINfwUe6FHSLhu83viV/+/HrOePX+STT2B9uWGbrMHHLldRBlhS/CJQmcRxJFqZica01XixAZsYiH1uolZxLrR/SgxVIJjkpQP4PE9sE59LKLr7kltSBogS5tyszzH8Fvw8/AS8rNOg0xUS9fIaHwb+6et8Q/gyvKRjf5OusOzGx8evA/BP4IP11uN/grca5O0lcsPLJ5YjwI4QkJBOHa0WdMZYGxPbh2W2nR9v3WxEWqgp/G3+6VZbRLSAAZ3BhdhAaUL33VUSw9yjEsvbaQ9u4A/gGXwZXoEHOuU1GSj2chf+Mo+f8IcfcAxfIKVmyunRbYQVnoevwgfw3TXXcw++xNuP4fhyueEUNttEduRVaDttddoP0eSxLe2LENk6itYxlrxBNBYrNNKSQmeaLcm9c8UsaB5WyO6675yyQIAWSDpBVoA/gxmcwEvwoDv0m58UE7gHn+fJOa8/Ywan8EKRfjsopF83eCglX/Sfr7OeaRoQfvt1CGvIDccH5BCvw1sWIzRGC/66t0VTcLZQZtm6PlAasbOJ9iwWtUo7biktTSIPxnR24jxP1ZKaqq+2RcXM9OrBAm/AAs7hDJ5bNmGb+KIfwCs8a3jnjBrOFeMjHSCdbKr+2uOLfnOd9eiA8Hvvwwq54VbP2OqwkB48Ytc4YEOiH2vTXqodabfWEOzso4qxdbqD5L6tbtNPECqbhnA708DZH4QOJUXqScmUlks7Ot6FBuZw3n2mEbaUX7kDzxHOOQk8nKWMzAzu6ZZ8sOFw4RK+6PcuXo9tB4SbMz58ApfKDXf3szjNIIbGpD5TKTRxGkEMLjLl+K3wlWXBsCUxIDU+jbOiysESqAy1MGUJpXgwbTWzNOVEziIXZrJ+VIztl1PUBxTSo0dwn2bOmfDRPD3TRTGlfbCJvO9KvuhL1hMHhB9wPuPRLGHcdOWG2xc0U+5bQtAJT0nRTewXL1pgk2+rZAdeWmz3jxAqfNQQdzTlbF8uJ5ecEIWvTkevAHpwz7w78QujlD/Lr491bD8/1vhM2yrUQRrWXNQY4fGilfctMWYjL72UL/qS9eiA8EmN88nbNdour+PBbbAjOjIa4iBhfFg6rxeKdEGcL6p3EWR1Qq2Qkhs2DrnkRnmN9tG2EAqmgPw6hoL7Oza7B+3SCrR9tRftko+Lsf2F/mkTndN2LmzuMcKTuj/mX2+4Va3ki16+nnJY+S7MefpkidxwnV+4wkXH8TKnX0tsYzYp29DOOoSW1nf7nTh2akYiWmcJOuTidSaqESrTYpwjJJNVGQr+rLI7WsqerHW6Kp/oM2pKuV7T1QY9gjqlZp41/WfKpl56FV/0kvXQFRyeQ83xaTu5E8p5dNP3dUF34ihyI3GSpeCsywSh22ZJdWto9winhqifb7VRvgktxp13vyjrS0EjvrRfZ62uyqddSWaWYlwTPAtJZ2oZ3j/Sgi/mi+6vpzesfAcWNA0n8xVyw90GVFGuZjTXEQy+6GfLGLMLL523f5E0OmxVjDoOuRiH91RKU+vtoCtH7TgmvBLvtFXWLW15H9GTdVw8ow4IlRLeHECN9ym1e9K0I+Cbnhgv4Yu+aD2HaQJ80XDqOzSGAV4+4yCqBxrsJAX6ZTIoX36QnvzhhzzMfFW2dZVLOJfo0zbce5OvwXMFaZ81mOnlTVXpDZsQNuoYWveketKb5+6JOOsgX+NTm7H49fUTlx+WLuWL7qxnOFh4BxpmJx0p2gDzA/BUARuS6phR+pUsY7MMboAHx5xNsSVfVZcYSwqCKrqon7zM+8ecCkeS4nm3rINuaWvVNnMRI1IRpxTqx8PZUZ0Br/UEduo3B3hNvmgZfs9gQPj8vIOxd2kndir3awvJ6BLvoUuOfFWNYB0LR1OQJoUySKb9IlOBx74q1+ADC2G6rOdmFdJcD8BkfualA+BdjOOzP9uUhGUEX/TwhZsUduwRr8wNuXKurCixLBgpQI0mDbJr9dIqUuV+92ngkJZ7xduCk2yZKbfWrH1VBiTg9VdzsgRjW3CVXCvAwDd+c1z9dWw9+B+8MJL/eY15ZQ/HqvTwVdsZn5WQsgRRnMaWaecu3jFvMBEmgg+FJFZsnSl0zjB9OqPYaBD7qmoVyImFvzi41usesV0julaAR9dfR15Xzv9sEruRDyk1nb+QaLU67T885GTls6YgcY+UiMa25M/pwGrbCfzkvR3e0jjtuaFtnwuagHTSb5y7boBH119HXhvwP487jJLsLJ4XnUkHX5sLbS61dpiAXRoZSCrFJ+EjpeU3puVfitngYNo6PJrAigKktmwjyQdZpfq30mmtulaAx9Zfx15Xzv+cyeuiBFUs9zq8Kq+XB9a4PVvph3GV4E3y8HENJrN55H1X2p8VyqSKwVusJDKzXOZzplWdzBUFK9e+B4+uv468xvI/b5xtSAkBHQaPvtqWzllVvEOxPbuiE6+j2pvjcKsbvI7txnRErgfH7LdXqjq0IokKzga14GzQ23SSbCQvO6r+Or7SMIr/efOkkqSdMnj9mBx2DRsiY29Uj6+qK9ZrssCKaptR6HKURdwUYeUWA2kPzVKQO8ku2nU3Anhs/XWkBx3F/7wJtCTTTIKftthue1ty9xvNYLY/zo5KSbIuKbXpbEdSyeRyYdAIwKY2neyoc3+k1XUaufYga3T9daMUx/r8z1s10ITknIO0kuoMt+TB8jK0lpayqqjsJ2qtXAYwBU932zinimgmd6mTRDnQfr88q36NAI+tv24E8Pr8zxtasBqx0+xHH9HhlrwsxxNUfKOHQaZBITNf0uccj8GXiVmXAuPEAKSdN/4GLHhs/XWj92dN/uetNuBMnVR+XWDc25JLjo5Mg5IZIq226tmCsip2zZliL213YrTlL2hcFjpCduyim3M7/eB16q/blQsv5X/esDRbtJeabLIosWy3ycavwLhtxdWzbMmHiBTiVjJo6lCLjXZsi7p9PEPnsq6X6wd4bP11i0rD5fzPm/0A6brrIsllenZs0lCJlU4abakR59enZKrKe3BZihbTxlyZ2zl1+g0wvgmA166/bhwDrcn/7Ddz0eWZuJvfSESug6NzZsox3Z04FIxz0mUjMwVOOVTq1CQ0AhdbBGVdjG/CgsfUX7esJl3K/7ytWHRv683praW/8iDOCqWLLhpljDY1ZpzK75QiaZoOTpLKl60auHS/97oBXrv+umU9+FL+5+NtLFgjqVLCdbmj7pY5zPCPLOHNCwXGOcLquOhi8CmCWvbcuO73XmMUPab+ug3A6/A/78Bwe0bcS2+tgHn4J5pyS2WbOck0F51Vq3LcjhLvZ67p1ABbaL2H67bg78BfjKi/jr3+T/ABV3ilLmNXTI2SpvxWBtt6/Z//D0z/FXaGbSBgylzlsEGp+5//xrd4/ae4d8DUUjlslfIYS3t06HZpvfQtvv0N7AHWqtjP2pW08QD/FLy//da38vo8PNlKHf5y37Dxdfe/oj4kVIgFq3koLReSR76W/bx//n9k8jonZxzWTANVwEniDsg87sOSd/z7//PvMp3jQiptGVWFX2caezzAXwfgtzYUvbr0iozs32c3Uge7varH+CNE6cvEYmzbPZ9hMaYDdjK4V2iecf6EcEbdUDVUARda2KzO/JtCuDbNQB/iTeL0EG1JSO1jbXS+nLxtPMDPw1fh5+EPrgSEKE/8Gry5A73ui87AmxwdatyMEBCPNOCSKUeRZ2P6Myb5MRvgCHmA9ywsMifU+AYXcB6Xa5GibUC5TSyerxyh0j6QgLVpdyhfArRTTLqQjwe4HOD9s92D4Ap54odXAPBWLAwB02igG5Kkc+piN4lvODIFGAZgT+EO4Si1s7fjSR7vcQETUkRm9O+MXyo9OYhfe4xt9STQ2pcZRLayCV90b4D3jR0DYAfyxJ+eywg2IL7NTMXna7S/RpQ63JhWEM8U41ZyQGjwsVS0QBrEKLu8xwZsbi4wLcCT+OGidPIOCe1PiSc9Qt+go+vYqB7cG+B9d8cAD+WJPz0Am2gxXgU9IneOqDpAAXOsOltVuMzpdakJXrdPCzXiNVUpCeOos5cxnpQT39G+XVLhs1osQVvJKPZyNq8HDwd4d7pNDuWJPxVX7MSzqUDU6gfadKiNlUFTzLeFHHDlzO4kpa7aiKhBPGKwOqxsBAmYkOIpipyXcQSPlRTf+Tii0U3EJGaZsDER2qoB3h2hu0qe+NNwUooYU8y5mILbJe6OuX+2FTKy7bieTDAemaQyQ0CPthljSWO+xmFDIYiESjM5xKd6Ik5lvLq5GrQ3aCMLvmCA9wowLuWJb9xF59hVVP6O0CrBi3ZjZSNOvRy+I6klNVRJYRBaEzdN+imiUXQ8iVF8fsp+W4JXw7WISW7fDh7lptWkCwZ4d7QTXyBPfJMYK7SijjFppGnlIVJBJBYj7eUwtiP1IBXGI1XCsjNpbjENVpSAJ2hq2LTywEly3hUYazt31J8w2+aiLx3g3fohXixPfOMYm6zCGs9LVo9MoW3MCJE7R5u/WsOIjrqBoHUO0bJE9vxBpbhsd3+Nb4/vtPCZ4oZYCitNeYuC/8UDvDvy0qvkiW/cgqNqRyzqSZa/s0mqNGjtKOoTm14zZpUauiQgVfqtQiZjq7Q27JNaSK5ExRcrGCXO1FJYh6jR6CFqK7bZdQZ4t8g0rSlPfP1RdBtqaa9diqtzJkQ9duSryi2brQXbxDwbRUpFMBHjRj8+Nt7GDKgvph9okW7LX47gu0SpGnnFQ1S1lYldOsC7hYteR574ZuKs7Ei1lBsfdz7IZoxzzCVmmVqaSySzQbBVAWDek+N4jh9E/4VqZrJjPwiv9BC1XcvOWgO8275CVyBPvAtTVlDJfZkaZGU7NpqBogAj/xEHkeAuJihWYCxGN6e8+9JtSegFXF1TrhhLGP1fak3pebgPz192/8gB4d/6WT7+GdYnpH7hH/DJzzFiYPn/vjW0SgNpTNuPIZoAEZv8tlGw4+RLxy+ZjnKa5NdFoC7UaW0aduoYse6+bXg1DLg6UfRYwmhGEjqPvF75U558SANrElK/+MdpXvmqBpaXOa/MTZaa1DOcSiLaw9j0NNNst3c+63c7EKTpkvKHzu6bPbP0RkuHAVcbRY8ijP46MIbQeeT1mhA+5PV/inyDdQipf8LTvMXbwvoDy7IruDNVZKTfV4CTSRUYdybUCnGU7KUTDxLgCknqUm5aAW6/1p6eMsOYsphLzsHrE0Y/P5bQedx1F/4yPHnMB3/IOoTU9+BL8PhtjuFKBpZXnYNJxTuv+2XqolKR2UQgHhS5novuxVySJhBNRF3SoKK1XZbbXjVwWNyOjlqWJjrWJIy+P5bQedyldNScP+HZ61xKSK3jyrz+NiHG1hcOLL/+P+PDF2gOkekKGiNWKgJ+8Z/x8Iv4DdQHzcpZyF4v19I27w9/yPGDFQvmEpKtqv/TLiWMfn4sofMm9eAH8Ao0zzh7h4sJqYtxZd5/D7hkYPneDzl5idlzNHcIB0jVlQ+8ULzw/nc5/ojzl2juE0apD7LRnJxe04dMz2iOCFNtGFpTuXA5AhcTRo8mdN4kz30nVjEC4YTZQy4gpC7GlTlrePKhGsKKgeXpCYeO0MAd/GH7yKQUlXPLOasOH3FnSphjHuDvEu4gB8g66oNbtr6eMbFIA4fIBJkgayoXriw2XEDQPJrQeROAlY6aeYOcMf+IVYTU3XFlZufMHinGywaW3YLpObVBAsbjF4QJMsVUSayjk4voPsHJOQfPWDhCgDnmDl6XIRerD24HsGtw86RMHOLvVSHrKBdeVE26gKB5NKHzaIwLOmrqBWJYZDLhASG16c0Tn+CdRhWDgWXnqRZUTnPIHuMJTfLVpkoYy5CzylHVTGZMTwkGAo2HBlkQplrJX6U+uF1wZz2uwS1SQ12IqWaPuO4baZaEFBdukksJmkcTOm+YJSvoqPFzxFA/YUhIvWxcmSdPWTWwbAKVp6rxTtPFUZfKIwpzm4IoMfaYQLWgmlG5FME2gdBgm+J7J+rtS/XBbaVLsR7bpPQnpMFlo2doWaVceHk9+MkyguZNCJ1He+kuHTWyQAzNM5YSUg/GlTk9ZunAsg1qELVOhUSAK0LABIJHLKbqaEbHZLL1VA3VgqoiOKXYiS+HRyaEKgsfIqX64HYWbLRXy/qWoylIV9gudL1OWBNgBgTNmxA6b4txDT4gi3Ri7xFSLxtXpmmYnzAcWDZgY8d503LFogz5sbonDgkKcxGsWsE1OI+rcQtlgBBCSOKD1mtqYpIU8cTvBmAT0yZe+zUzeY92fYjTtGipXLhuR0ePoHk0ofNWBX+lo8Z7pAZDk8mEw5L7dVyZZoE/pTewbI6SNbiAL5xeygW4xPRuLCGbhcO4RIeTMFYHEJkYyEO9HmJfXMDEj/LaH781wHHZEtqSQ/69UnGpzH7LKIAZEDSPJnTesJTUa+rwTepI9dLJEawYV+ZkRn9g+QirD8vF8Mq0jFQ29js6kCS3E1+jZIhgPNanHdHFqFvPJLHqFwQqbIA4jhDxcNsOCCQLDomaL/dr5lyJaJU6FxPFjO3JOh3kVMcROo8u+C+jo05GjMF3P3/FuDLn5x2M04xXULPwaS6hBYki+MrMdZJSgPHlcB7nCR5bJ9Kr5ACUn9jk5kivdd8tk95SOGrtqu9lr2IhK65ZtEl7ZKrp7DrqwZfRUSN1el7+7NJxZbywOC8neNKTch5vsTEMNsoCCqHBCqIPRjIPkm0BjvFODGtto99rCl+d3wmHkW0FPdpZtC7MMcVtGFQjJLX5bdQ2+x9ypdc313uj8xlsrfuLgWXz1cRhZvJYX0iNVBRcVcmCXZs6aEf3RQF2WI/TcCbKmGU3IOoDJGDdDub0+hYckt6PlGu2BcxmhbTdj/klhccLGJMcqRjMJP1jW2ETqLSWJ/29MAoORluJ+6LPffBZbi5gqi5h6catQpmOT7/OFf5UorRpLzCqcMltBLhwd1are3kztrSzXO0LUbXRQcdLh/RdSZ+swRm819REDrtqzC4es6Gw4JCKlSnjYVpo0xeq33PrADbFLL3RuCmObVmPN+24kfa+AojDuM4umKe2QwCf6EN906HwjujaitDs5o0s1y+k3lgbT2W2i7FJdnwbLXhJUBq/9liTctSmFC/0OqUinb0QddTWamtjbHRFuWJJ6NpqZ8vO3fZJ37Db+2GkaPYLGHs7XTTdiFQJ68SkVJFVmY6McR5UycflNCsccHFaV9FNbR4NttLxw4pQ7wJd066Z0ohVbzihaxHVExd/ay04oxUKWt+AsdiQ9OUyZ2krzN19IZIwafSTFgIBnMV73ADj7V/K8u1MaY2sJp2HWm0f41tqwajEvdHWOJs510MaAqN4aoSiPCXtN2KSi46dUxHdaMquar82O1x5jqhDGvqmoE9LfxcY3zqA7/x3HA67r9ZG4O6Cuxu12/+TP+eLP+I+HErqDDCDVmBDO4larujNe7x8om2rMug0MX0rL1+IWwdwfR+p1TNTyNmVJ85ljWzbWuGv8/C7HD/izjkHNZNYlhZcUOKVzKFUxsxxN/kax+8zPWPSFKw80rJr9Tizyj3o1gEsdwgWGoxPezDdZ1TSENE1dLdNvuKL+I84nxKesZgxXVA1VA1OcL49dFlpFV5yJMhzyCmNQ+a4BqusPJ2bB+xo8V9u3x48VVIEPS/mc3DvAbXyoYr6VgDfh5do5hhHOCXMqBZUPhWYbWZECwVJljLgMUWOCB4MUuMaxGNUQDVI50TQ+S3kFgIcu2qKkNSHVoM0SHsgoZxP2d5HH8B9woOk4x5bPkKtAHucZsdykjxuIpbUrSILgrT8G7G5oCW+K0990o7E3T6AdW4TilH5kDjds+H64kS0mz24grtwlzDHBJqI8YJQExotPvoC4JBq0lEjjQkyBZ8oH2LnRsQ4Hu1QsgDTJbO8fQDnllitkxuVskoiKbRF9VwzMDvxHAdwB7mD9yCplhHFEyUWHx3WtwCbSMMTCUCcEmSGlg4gTXkHpZXWQ7kpznK3EmCHiXInqndkQjunG5kxTKEeGye7jWz9cyMR2mGiFQ15ENRBTbCp+Gh86vAyASdgmJq2MC6hoADQ3GosP0QHbnMHjyBQvQqfhy/BUbeHd5WY/G/9LK/8Ka8Jd7UFeNWEZvzPb458Dn8DGLOe3/wGL/4xP+HXlRt+M1PE2iLhR8t+lfgxsuh7AfO2AOf+owWhSZRYQbd622hbpKWKuU+XuvNzP0OseRDa+mObgDHJUSc/pKx31QdKffQ5OIJpt8GWjlgTwMc/w5MPCR/yl1XC2a2Yut54SvOtMev55Of45BOat9aWG27p2ZVORRvnEk1hqWMVUmqa7S2YtvlIpspuF1pt0syuZS2NV14mUidCSfzQzg+KqvIYCMljIx2YK2AO34fX4GWdu5xcIAb8MzTw+j/lyWM+Dw/gjs4GD6ehNgA48kX/AI7XXM/XAN4WHr+9ntywqoCakCqmKP0rmQrJJEErG2Upg1JObr01lKQy4jskWalKYfJ/EDLMpjNSHFEUAde2fltaDgmrNaWQ9+AAb8I5vKjz3L1n1LriB/BXkG/wwR9y/oRX4LlioHA4LzP2inzRx/DWmutRweFjeP3tNeSGlaE1Fde0OS11yOpmbIp2u/jF1n2RRZviJM0yBT3IZl2HWImKjQOxIyeU325b/qWyU9Moj1o07tS0G7qJDoGHg5m8yeCxMoEH8GU45tnrNM84D2l297DQ9t1YP7jki/7RmutRweEA77/HWXOh3HCxkRgldDQkAjNTMl2Iloc1qN5JfJeeTlyTRzxURTdn1Ixv2uKjs12AbdEWlBtmVdk2k7FFwj07PCZ9XAwW3dG+8xKzNFr4EnwBZpy9Qzhh3jDXebBpYcpuo4fQ44u+fD1dweEnHzI7v0xuuOALRUV8rXpFyfSTQYkhd7IHm07jpyhlkCmI0ALYqPTpUxXS+z4jgDj1Pflvmz5ecuItpIBxyTHpSTGWd9g1ApfD/bvwUhL4nT1EzqgX7cxfCcNmb3mPL/qi9SwTHJ49oj5ZLjccbTG3pRmlYi6JCG0mQrAt1+i2UXTZ2dv9IlQpN5naMYtviaXlTrFpoMsl3bOAFEa8sqPj2WCMrx3Yjx99qFwO59Aw/wgx+HlqNz8oZvA3exRDvuhL1jMQHPaOJ0+XyA3fp1OfM3qObEVdhxjvynxNMXQV4+GJyvOEFqeQBaIbbO7i63rpxCltdZShPFxkjM2FPVkn3TG+Rp9pO3l2RzFegGfxGDHIAh8SteR0C4HopXzRF61nheDw6TFN05Ebvq8M3VKKpGjjO6r7nhudTEGMtYM92HTDaR1FDMXJ1eThsbKfywyoWwrzRSXkc51flG3vIid62h29bIcFbTGhfV+faaB+ohj7dPN0C2e2lC96+XouFByen9AsunLDJZ9z7NExiUc0OuoYW6UZkIyx2YUR2z6/TiRjyKMx5GbbjLHvHuf7YmtKghf34LJfx63Yg8vrvN2zC7lY0x0tvKezo4HmGYDU+Gab6dFL+KI761lDcNifcjLrrr9LWZJctG1FfU1uwhoQE22ObjdfkSzY63CbU5hzs21WeTddH2BaL11Gi7lVdlxP1nkxqhnKhVY6knS3EPgVGg1JpN5cP/hivujOelhXcPj8HC/LyI6MkteVjlolBdMmF3a3DbsuAYhL44dxzthWSN065xxUd55Lmf0wRbOYOqH09/o9WbO2VtFdaMb4qBgtFJoT1SqoN8wPXMoXLb3p1PUEhxfnnLzGzBI0Ku7FxrKsNJj/8bn/H8fPIVOd3rfrklUB/DOeO+nkghgSPzrlPxluCMtOnDL4Yml6dK1r3vsgMxgtPOrMFUZbEUbTdIzii5beq72G4PD0DKnwjmBULUVFmy8t+k7fZ3pKc0Q4UC6jpVRqS9Umv8bxw35flZVOU1X7qkjnhZlsMbk24qQ6Hz7QcuL6sDC0iHHki96Uh2UdvmgZnjIvExy2TeJdMDZNSbdZyAHe/Yd1xsQhHiKzjh7GxQ4yqMPaywPkjMamvqrYpmO7Knad+ZQC5msCuAPWUoxrxVhrGv7a+KLXFhyONdTMrZ7ke23qiO40ZJUyzgYyX5XyL0mV7NiUzEs9mjtbMN0dERqwyAJpigad0B3/zRV7s4PIfXSu6YV/MK7+OrYe/JvfGMn/PHJe2fyUdtnFrKRNpXV0Y2559aWPt/G4BlvjTMtXlVIWCnNyA3YQBDmYIodFz41PvXPSa6rq9lWZawZ4dP115HXV/M/tnFkkrBOdzg6aP4pID+MZnTJ1SuuB6iZlyiox4HT2y3YBtkUKWooacBQUDTpjwaDt5poBHl1/HXltwP887lKKXxNUEyPqpGTyA699UqY/lt9yGdlUKra0fFWS+36iylVWrAyd7Uw0CZM0z7xKTOduznLIjG2Hx8cDPLb+OvK6Bv7n1DYci4CxUuRxrjBc0bb4vD3rN5Zz36ntLb83eVJIB8LiIzCmn6SMPjlX+yNlTjvIGjs+QzHPf60Aj62/jrzG8j9vYMFtm1VoRWCJdmw7z9N0t+c8cxZpPeK4aTRicS25QhrVtUp7U578chk4q04Wx4YoQSjFryUlpcQ1AbxZ/XVMknIU//OGl7Q6z9Zpxi0+3yFhSkjUDpnCIUhLWVX23KQ+L9vKvFKI0ZWFQgkDLvBoylrHNVmaw10zwCPrr5tlodfnf94EWnQ0lFRWy8pW9LbkLsyUVDc2NSTHGDtnD1uMtchjbCeb1mpxFP0YbcClhzdLu6lfO8Bj6q+bdT2sz/+8SZCV7VIxtt0DUn9L7r4cLYWDSXnseEpOGFuty0qbOVlS7NNzs5FOGJUqQpl2Q64/yBpZf90sxbE+//PGdZ02HSipCbmD6NItmQ4Lk5XUrGpDMkhbMm2ZVheNYV+VbUWTcv99+2NyX1VoafSuC+AN6q9bFIMv5X/eagNWXZxEa9JjlMwNWb00akGUkSoepp1/yRuuqHGbUn3UdBSTxBU6SEVklzWRUkPndVvw2PrrpjvxOvzPmwHc0hpmq82npi7GRro8dXp0KXnUQmhZbRL7NEVp1uuZmO45vuzKsHrktS3GLWXODVjw+vXXLYx4Hf7njRPd0i3aoAGX6W29GnaV5YdyDj9TFkakje7GHYzDoObfddHtOSpoi2SmzJHrB3hM/XUDDEbxP2/oosszcRlehWXUvzHv4TpBVktHqwenFo8uLVmy4DKLa5d3RtLrmrM3aMFr1183E4sewf+85VWeg1c5ag276NZrM9IJVNcmLEvDNaV62aq+14IAOGFsBt973Ra8Xv11YzXwNfmft7Jg2oS+XOyoC8/cwzi66Dhmgk38kUmP1CUiYWOX1bpD2zWXt2FCp7uq8703APAa9dfNdscR/M/bZLIyouVxqJfeWvG9Je+JVckHQ9+CI9NWxz+blX/KYYvO5n2tAP/vrlZ7+8/h9y+9qeB/Hnt967e5mevX10rALDWK//FaAT5MXdBXdP0C/BAes792c40H+AiAp1e1oH8HgH94g/Lttx1gp63op1eyoM/Bvw5/G/7xFbqJPcCXnmBiwDPb/YKO4FX4OjyCb289db2/Noqicw4i7N6TVtoz8tNwDH+8x/i6Ae7lmaQVENzJFb3Di/BFeAwz+Is9SjeQySpPqbLFlNmyz47z5a/AF+AYFvDmHqibSXTEzoT4Gc3OALaqAP4KPFUJ6n+1x+rGAM6Zd78bgJ0a8QN4GU614vxwD9e1Amy6CcskNrczLx1JIp6HE5UZD/DBHrFr2oNlgG4Odv226BodoryjGJ9q2T/AR3vQrsOCS0ctXZi3ruLlhpFDJYl4HmYtjQCP9rhdn4suySLKDt6wLcC52h8xPlcjju1fn+yhuw4LZsAGUuo2b4Fx2UwQu77uqRHXGtg92aN3tQCbFexc0uk93vhTXbct6y7MulLycoUljx8ngDMBg1tvJjAazpEmOtxlzclvj1vQf1Tx7QlPDpGpqgtdSKz/d9/hdy1vTfFHSmC9dGDZbLiezz7Ac801HirGZsWjydfZyPvHXL/Y8Mjzg8BxTZiuwKz4Eb8sBE9zznszmjvFwHKPIWUnwhqfVRcd4Ck0K6ate48m1oOfrX3/yOtvAsJ8zsPAM89sjnddmuLuDPjX9Bu/L7x7xpMzFk6nWtyQfPg278Gn4Aekz2ZgOmU9eJ37R14vwE/BL8G3aibCiWMWWDQ0ZtkPMnlcGeAu/Ag+8ZyecU5BPuy2ILD+sQqyZhAKmn7XZd+jIMTN9eBL7x95xVLSX4On8EcNlXDqmBlqS13jG4LpmGbkF/0CnOi3H8ETOIXzmnmtb0a16Tzxj1sUvQCBiXZGDtmB3KAefPH94xcUa/6vwRn80GOFyjEXFpba4A1e8KQfFF+259tx5XS4egYn8fQsLGrqGrHbztr+uByTahWuL1NUGbDpsnrwBfePPwHHIf9X4RnM4Z2ABWdxUBlqQ2PwhuDxoS0vvqB1JzS0P4h2nA/QgTrsJFn+Y3AOjs9JFC07CGWX1oNX3T/yHOzgDjwPn1PM3g9Jk9lZrMEpxnlPmBbjyo2+KFXRU52TJM/2ALcY57RUzjObbjqxVw++4P6RAOf58pcVsw9Daje3htriYrpDOonre3CudSe6bfkTEgHBHuDiyu5MCsc7BHhYDx7ePxLjqigXZsw+ijMHFhuwBmtoTPtOxOrTvYJDnC75dnUbhfwu/ZW9AgYd+peL68HD+0emKquiXHhWjJg/UrkJYzuiaL3E9aI/ytrCvAd4GcYZMCkSQxfUg3v3j8c4e90j5ZTPdvmJJGHnOCI2nHS8081X013pHuBlV1gB2MX1YNmWLHqqGN/TWmG0y6clJWthxNUl48q38Bi8vtMKyzzpFdSDhxZ5WBA5ZLt8Jv3895DduBlgbPYAj8C4B8hO68FDkoh5lydC4FiWvBOVqjYdqjiLv92t8yPDjrDaiHdUD15qkSURSGmXJwOMSxWAXYwr3zaAufJ66l+94vv3AO+vPcD7aw/w/toDvL/2AO+vPcD7aw/wHuD9tQd4f+0B3l97gPfXHuD9tQd4f+0B3l97gG8LwP8G/AL8O/A5OCq0Ys2KIdv/qOIXG/4mvFAMF16gZD+2Xvu/B8as5+8bfllWyg0zaNO5bfXj6vfhhwD86/Aq3NfRS9t9WPnhfnvCIw/CT8GLcFTMnpntdF/z9V+PWc/vWoIH+FL3Znv57PitcdGP4R/C34avw5fgRVUInCwbsn1yyA8C8zm/BH8NXoXnVE6wVPjdeCI38kX/3+Ct9dbz1pTmHFRu+Hm4O9Ch3clr99negxfwj+ER/DR8EV6B5+DuQOnTgUw5rnkY+FbNU3gNXh0o/JYTuWOvyBf9FvzX663HH/HejO8LwAl8Hl5YLTd8q7sqA3wbjuExfAFegQdwfyDoSkWY8swzEf6o4Qyewefg+cHNbqMQruSL/u/WWc+E5g7vnnEXgDmcDeSGb/F4cBcCgT+GGRzDU3hZYburAt9TEtHgbM6JoxJ+6NMzzTcf6c2bycv2+KK/f+l6LBzw5IwfqZJhA3M472pWT/ajKxnjv4AFnMEpnBTPND6s2J7qHbPAqcMK74T2mZ4VGB9uJA465It+/eL1WKhYOD7xHOkr1ajK7d0C4+ke4Hy9qXZwpgLr+Znm/uNFw8xQOSy8H9IzjUrd9+BIfenYaylf9FsXr8fBAadnPIEDna8IBcwlxnuA0/Wv6GAWPd7dDIKjMdSWueAsBj4M7TOd06qBbwDwKr7oleuxMOEcTuEZTHWvDYUO7aHqAe0Bbq+HEFRzOz7WVoTDQkVds7A4sIIxfCQdCefFRoIOF/NFL1mPab/nvOakSL/Q1aFtNpUb/nFOVX6gzyg/1nISyDfUhsokIzaBR9Kxm80s5mK+6P56il1jXic7nhQxsxSm3OwBHl4fFdLqi64nDQZvqE2at7cWAp/IVvrN6/BFL1mPhYrGMBfOi4PyjuSGf6wBBh7p/FZTghCNWGgMzlBbrNJoPJX2mW5mwZfyRffXo7OFi5pZcS4qZUrlViptrXtw+GQoyhDPS+ANjcGBNRiLCQDPZPMHuiZfdFpPSTcQwwKYdRNqpkjm7AFeeT0pJzALgo7g8YYGrMHS0iocy+YTm2vyRUvvpXCIpQ5pe666TJrcygnScUf/p0NDs/iAI/nqDHC8TmQT8x3NF91l76oDdQGwu61Z6E0ABv7uO1dbf/37Zlv+Zw/Pbh8f1s4Avur6657/+YYBvur6657/+YYBvur6657/+YYBvur6657/+aYBvuL6657/+VMA8FXWX/f8zzcN8BXXX/f8zzcNMFdbf93zP38KLPiK6697/uebtuArrr/u+Z9vGmCusP6653/+1FjwVdZf9/zPN7oHX339dc//fNMu+irrr3v+50+Bi+Zq6697/uebA/jz8Pudf9ht/fWv517J/XUzAP8C/BAeX9WCDrUpZ3/dEMBxgPcfbtTVvsYV5Yn32u03B3Ac4P3b8I+vxNBKeeL9dRMAlwO83959qGO78sT769oB7g3w/vGVYFzKE++v6wV4OMD7F7tckFkmT7y/rhHgpQO8b+4Y46XyxPvrugBeNcB7BRiX8sT767oAvmCA9woAHsoT76+rBJjLBnh3txOvkifeX1dswZcO8G6N7sXyxPvr6i340gHe3TnqVfLE++uKAb50gHcXLnrX8sR7gNdPRqwzwLu7Y/FO5Yn3AK9jXCMGeHdgxDuVJ75VAI8ljP7PAb3/RfjcZfePHBB+79dpfpH1CanN30d+mT1h9GqAxxJGM5LQeeQ1+Tb+EQJrElLb38VHQ94TRq900aMIo8cSOo+8Dp8QfsB8zpqE1NO3OI9Zrj1h9EV78PqE0WMJnUdeU6E+Jjyk/hbrEFIfeWbvId8H9oTRFwdZaxJGvziW0Hn0gqYB/wyZ0PwRlxJST+BOw9m77Amj14ii1yGM/txYQudN0qDzGe4EqfA/5GJCagsHcPaEPWH0esekSwmjRxM6b5JEcZ4ww50ilvAOFxBSx4yLW+A/YU8YvfY5+ALC6NGEzhtmyZoFZoarwBLeZxUhtY4rc3bKnjB6TKJjFUHzJoTOozF2YBpsjcyxDgzhQ1YRUse8+J4wenwmaylB82hC5w0zoRXUNXaRBmSMQUqiWSWkLsaVqc/ZE0aPTFUuJWgeTei8SfLZQeMxNaZSIzbII4aE1Nmr13P2hNHjc9E9guYNCZ032YlNwESMLcZiLQHkE4aE1BFg0yAR4z1h9AiAGRA0jyZ03tyIxWMajMPWBIsxYJCnlITU5ShiHYdZ94TR4wCmSxg9jtB5KyPGYzymAYexWEMwAPIsAdYdV6aObmNPGD0aYLoEzaMJnTc0Ygs+YDw0GAtqxBjkuP38bMRWCHn73xNGjz75P73WenCEJnhwyVe3AEe8TtKdJcYhBl97wuhNAObK66lvD/9J9NS75v17wuitAN5fe4D31x7g/bUHeH/tAd5fe4D3AO+vPcD7aw/w/toDvL/2AO+vPcD7aw/w/toDvAd4f/24ABzZ8o+KLsSLS+Pv/TqTb3P4hKlQrTGh+fbIBT0Axqznnb+L/V2mb3HkN5Mb/nEHeK7d4IcDld6lmDW/iH9E+AH1MdOw/Jlu2T1xNmY98sv4wHnD7D3uNHu54WUuOsBTbQuvBsPT/UfzNxGYzwkP8c+Yz3C+r/i6DcyRL/rZ+utRwWH5PmfvcvYEt9jLDS/bg0/B64DWKrQM8AL8FPwS9beQCe6EMKNZYJol37jBMy35otdaz0Bw2H/C2Smc7+WGB0HWDELBmOByA3r5QONo4V+DpzR/hFS4U8wMW1PXNB4TOqYz9urxRV++ntWCw/U59Ty9ebdWbrgfRS9AYKKN63ZokZVygr8GZ/gfIhZXIXPsAlNjPOLBby5c1eOLvmQ9lwkOy5x6QV1j5TYqpS05JtUgUHUp5toHGsVfn4NX4RnMCe+AxTpwmApTYxqMxwfCeJGjpXzRF61nbcHhUBPqWze9svwcHJ+S6NPscKrEjug78Dx8Lj3T8D4YxGIdxmJcwhi34fzZUr7olevZCw5vkOhoClq5zBPZAnygD/Tl9EzDh6kl3VhsHYcDEb+hCtJSvuiV69kLDm+WycrOTArHmB5/VYyP6jOVjwgGawk2zQOaTcc1L+aLXrKeveDwZqlKrw8U9Y1p66uK8dEzdYwBeUQAY7DbyYNezBfdWQ97weEtAKYQg2xJIkuveAT3dYeLGH+ShrWNwZgN0b2YL7qznr3g8JYAo5bQBziPjx7BPZ0d9RCQp4UZbnFdzBddor4XHN4KYMrB2qHFRIzzcLAHQZ5the5ovui94PCWAPefaYnxIdzRwdHCbuR4B+tbiy96Lzi8E4D7z7S0mEPd+eqO3cT53Z0Y8SV80XvB4Z0ADJi/f7X113f+7p7/+UYBvur6657/+YYBvur6657/+aYBvuL6657/+aYBvuL6657/+aYBvuL6657/+aYBvuL6657/+VMA8FXWX/f8z58OgK+y/rrnf75RgLna+uue//lTA/CV1V/3/M837aKvvv6653++UQvmauuve/7nTwfAV1N/3fM/fzr24Cuuv+75nz8FFnxl9dc9//MOr/8/glixwRuUfM4AAAAASUVORK5CYII="}getSearchTexture(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAhCAAAAABIXyLAAAAAOElEQVRIx2NgGAWjYBSMglEwEICREYRgFBZBqDCSLA2MGPUIVQETE9iNUAqLR5gIeoQKRgwXjwAAGn4AtaFeYLEAAAAASUVORK5CYII="}}},f813:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("f2fb");e.Scale=i.Scale},f881:function(t,e,n){"use strict";var i=n("dca1"),r=n.n(i);r.a},f8a6:function(t,e,n){},f8cd:function(t,e,n){var i=n("5926"),r=RangeError;t.exports=function(t){var e=i(t);if(e<0)throw r("The argument can't be less than 0");return e}},f9e9:function(t,e,n){"use strict";n.r(e),n.d(e,"SSAARenderPass",(function(){return a}));var i=n("5a89"),r=n("1b53"),o=n("e9d2");class a extends r["Pass"]{constructor(t,e,n,a){super(),this.scene=t,this.camera=e,this.sampleLevel=4,this.unbiased=!0,this.clearColor=void 0!==n?n:0,this.clearAlpha=void 0!==a?a:0,this._oldClearColor=new i["Color"],void 0===o["CopyShader"]&&console.error("THREE.SSAARenderPass relies on CopyShader");const s=o["CopyShader"];this.copyUniforms=i["UniformsUtils"].clone(s.uniforms),this.copyMaterial=new i["ShaderMaterial"]({uniforms:this.copyUniforms,vertexShader:s.vertexShader,fragmentShader:s.fragmentShader,premultipliedAlpha:!0,transparent:!0,blending:i["AdditiveBlending"],depthTest:!1,depthWrite:!1}),this.fsQuad=new r["FullScreenQuad"](this.copyMaterial)}dispose(){this.sampleRenderTarget&&(this.sampleRenderTarget.dispose(),this.sampleRenderTarget=null)}setSize(t,e){this.sampleRenderTarget&&this.sampleRenderTarget.setSize(t,e)}render(t,e,n){this.sampleRenderTarget||(this.sampleRenderTarget=new i["WebGLRenderTarget"](n.width,n.height,{minFilter:i["LinearFilter"],magFilter:i["LinearFilter"],format:i["RGBAFormat"]}),this.sampleRenderTarget.texture.name="SSAARenderPass.sample");const r=s[Math.max(0,Math.min(this.sampleLevel,5))],o=t.autoClear;t.autoClear=!1,t.getClearColor(this._oldClearColor);const a=t.getClearAlpha(),l=1/r.length,c=1/32;this.copyUniforms["tDiffuse"].value=this.sampleRenderTarget.texture;const u={fullWidth:n.width,fullHeight:n.height,offsetX:0,offsetY:0,width:n.width,height:n.height},h=Object.assign({},this.camera.view);h.enabled&&Object.assign(u,h);for(let i=0;i<r.length;i++){const n=r[i];this.camera.setViewOffset&&this.camera.setViewOffset(u.fullWidth,u.fullHeight,u.offsetX+.0625*n[0],u.offsetY+.0625*n[1],u.width,u.height);let o=l;if(this.unbiased){const t=(i+.5)/r.length-.5;o+=c*t}this.copyUniforms["opacity"].value=o,t.setClearColor(this.clearColor,this.clearAlpha),t.setRenderTarget(this.sampleRenderTarget),t.clear(),t.render(this.scene,this.camera),t.setRenderTarget(this.renderToScreen?null:e),0===i&&(t.setClearColor(0,0),t.clear()),this.fsQuad.render(t)}this.camera.setViewOffset&&h.enabled?this.camera.setViewOffset(h.fullWidth,h.fullHeight,h.offsetX,h.offsetY,h.width,h.height):this.camera.clearViewOffset&&this.camera.clearViewOffset(),t.autoClear=o,t.setClearColor(this._oldClearColor,a)}}const s=[[[0,0]],[[4,4],[-4,-4]],[[-2,-6],[6,-2],[-6,2],[2,6]],[[1,-3],[-1,3],[5,1],[-3,-5],[-5,5],[-7,-1],[3,7],[7,-7]],[[1,1],[-1,-3],[-3,2],[4,-1],[-5,-2],[2,5],[5,3],[3,-5],[-2,6],[0,-7],[-4,-6],[-6,4],[-8,0],[7,-4],[6,7],[-7,-8]],[[-4,-7],[-7,-5],[-3,-5],[-5,-4],[-1,-4],[-2,-2],[-6,-1],[-4,0],[-7,1],[-1,2],[-6,3],[-3,3],[-7,6],[-3,6],[-5,7],[-1,7],[5,-7],[1,-6],[6,-5],[4,-4],[2,-3],[7,-2],[1,-1],[4,-1],[2,1],[6,2],[0,4],[4,4],[2,5],[7,5],[5,6],[3,7]]]},fada:function(t,e,n){"use strict";var i=n("fdf6"),r=n.n(i);r.a},fb77:function(t,e,n){"use strict";function i(t){return+t}function r(t){return t*t}function o(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}n.r(e);var s=n("8921"),l=3,c=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(l),u=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(l),h=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(l),d=Math.PI,p=d/2;function f(t){return 1===+t?1:1-Math.cos(t*p)}function g(t){return Math.sin(t*p)}function m(t){return(1-Math.cos(d*t))/2}function v(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function y(t){return v(1-+t)}function b(t){return 1-v(t)}function x(t){return((t*=2)<=1?v(1-t):2-v(t-1))/2}function w(t){return 1-Math.sqrt(1-t*t)}function _(t){return Math.sqrt(1- --t*t)}function C(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var A=4/11,I=6/11,S=8/11,M=.75,k=9/11,E=10/11,T=.9375,O=21/22,P=63/64,j=1/A/A;function L(t){return 1-D(1-t)}function D(t){return(t=+t)<A?j*t*t:t<S?j*(t-=I)*t+M:t<E?j*(t-=k)*t+T:j*(t-=O)*t+P}function R(t){return((t*=2)<=1?1-D(1-t):D(t-1)+1)/2}var B=1.70158,N=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(B),F=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(B),z=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(B),V=2*Math.PI,G=1,H=.3,W=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=V);function r(t){return e*v(- --t)*Math.sin((i-t)/n)}return r.amplitude=function(e){return t(e,n*V)},r.period=function(n){return t(e,n)},r}(G,H),U=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=V);function r(t){return 1-e*v(t=+t)*Math.sin((t+i)/n)}return r.amplitude=function(e){return t(e,n*V)},r.period=function(n){return t(e,n)},r}(G,H),Z=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=V);function r(t){return((t=2*t-1)<0?e*v(-t)*Math.sin((i-t)/n):2-e*v(t)*Math.sin((i+t)/n))/2}return r.amplitude=function(e){return t(e,n*V)},r.period=function(n){return t(e,n)},r}(G,H);n.d(e,"easeLinear",(function(){return i})),n.d(e,"easeQuad",(function(){return a})),n.d(e,"easeQuadIn",(function(){return r})),n.d(e,"easeQuadOut",(function(){return o})),n.d(e,"easeQuadInOut",(function(){return a})),n.d(e,"easeCubic",(function(){return s["b"]})),n.d(e,"easeCubicIn",(function(){return s["a"]})),n.d(e,"easeCubicOut",(function(){return s["c"]})),n.d(e,"easeCubicInOut",(function(){return s["b"]})),n.d(e,"easePoly",(function(){return h})),n.d(e,"easePolyIn",(function(){return c})),n.d(e,"easePolyOut",(function(){return u})),n.d(e,"easePolyInOut",(function(){return h})),n.d(e,"easeSin",(function(){return m})),n.d(e,"easeSinIn",(function(){return f})),n.d(e,"easeSinOut",(function(){return g})),n.d(e,"easeSinInOut",(function(){return m})),n.d(e,"easeExp",(function(){return x})),n.d(e,"easeExpIn",(function(){return y})),n.d(e,"easeExpOut",(function(){return b})),n.d(e,"easeExpInOut",(function(){return x})),n.d(e,"easeCircle",(function(){return C})),n.d(e,"easeCircleIn",(function(){return w})),n.d(e,"easeCircleOut",(function(){return _})),n.d(e,"easeCircleInOut",(function(){return C})),n.d(e,"easeBounce",(function(){return D})),n.d(e,"easeBounceIn",(function(){return L})),n.d(e,"easeBounceOut",(function(){return D})),n.d(e,"easeBounceInOut",(function(){return R})),n.d(e,"easeBack",(function(){return z})),n.d(e,"easeBackIn",(function(){return N})),n.d(e,"easeBackOut",(function(){return F})),n.d(e,"easeBackInOut",(function(){return z})),n.d(e,"easeElastic",(function(){return U})),n.d(e,"easeElasticIn",(function(){return W})),n.d(e,"easeElasticOut",(function(){return U})),n.d(e,"easeElasticInOut",(function(){return Z}))},fc60:function(t,e,n){"use strict";var i=n("95c4"),r=n.n(i);r.a},fc76:function(t,e,n){"use strict";var i=function(t){return r(t)&&!o(t)};function r(t){return!!t&&"object"===typeof t}function o(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||l(t)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(t){return t.$$typeof===s}function c(t){return Array.isArray(t)?[]:{}}function u(t,e){return!1!==e.clone&&e.isMergeableObject(t)?y(c(t),t,e):t}function h(t,e,n){return t.concat(e).map((function(t){return u(t,n)}))}function d(t,e){if(!e.customMerge)return y;var n=e.customMerge(t);return"function"===typeof n?n:y}function p(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}function f(t){return Object.keys(t).concat(p(t))}function g(t,e){try{return e in t}catch(_){return!1}}function m(t,e){return g(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function v(t,e,n){var i={};return n.isMergeableObject(t)&&f(t).forEach((function(e){i[e]=u(t[e],n)})),f(e).forEach((function(r){m(t,r)||(g(t,r)&&n.isMergeableObject(e[r])?i[r]=d(r,n)(t[r],e[r],n):i[r]=u(e[r],n))})),i}function y(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||h,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=u;var r=Array.isArray(e),o=Array.isArray(t),a=r===o;return a?r?n.arrayMerge(t,e,n):v(t,e,n):u(e,n)}y.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return y(t,n,e)}),{})};var b=y;t.exports=b},fd07:function(t,e,n){"use strict";var i=n("f702"),r=n.n(i);r.a},fdd0:function(t,e,n){"use strict";var i=n("2d95"),r=n.n(i);r.a},fdf6:function(t,e,n){},ff17:function(t,e,n){"use strict";function i(t){return null!==t&&"object"===typeof t&&"constructor"in t&&t.constructor===Object}function r(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach((function(n){"undefined"===typeof t[n]?t[n]=e[n]:i(e[n])&&i(t[n])&&Object.keys(e[n]).length>0&&r(t[n],e[n])}))}n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return l}));var o={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){var t="undefined"!==typeof document?document:{};return r(t,o),t}var s={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return"undefined"===typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){"undefined"!==typeof setTimeout&&clearTimeout(t)}};function l(){var t="undefined"!==typeof window?window:{};return r(t,s),t}},ff8c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,n){return t>=e&&t<=n};function r(t,e,n,r){var o=.001,a={x:n.x-t.x,y:n.y-t.y},s={x:e.x-t.x,y:e.y-t.y},l={x:r.x-n.x,y:r.y-n.y},c=s.x*l.y-s.y*l.x,u=c*c,h=s.x*s.x+s.y*s.y,d=l.x*l.x+l.y*l.y,p=null;if(u>o*h*d){var f=(a.x*l.y-a.y*l.x)/c,g=(a.x*s.y-a.y*s.x)/c;i(f,0,1)&&i(g,0,1)&&(p={x:t.x+f*s.x,y:t.y+f*s.y})}return p}e.default=r},ffe2:function(t,e,n){"use strict";var i=n("11b3"),r=n.n(i);r.a}}]);